diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53965b7..f0efc2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -154,7 +154,9 @@ jobs: # (`pnpm check:docs-content`, script-utils' `cosyte-docs-content`: the sidebar, each page's kind, # the one limitations page in Reference, page ids, held at the counts its ratchet records, and, # with cosyte-docs-content.config.json, no README or page sample that prints a value identifying - # a person). `documents` is a required context: the `ci-required-checks` ruleset in the banner + # a person), and the generated API reference in docs-content/api/ against what + # `cosyte-docs-reference` writes from the source (`pnpm check:docs-reference`, from + # @cosyte/process). `documents` is a required context: the `ci-required-checks` ruleset in the banner # above names it. documents: runs-on: ubuntu-latest @@ -177,3 +179,5 @@ jobs: run: pnpm check:process - name: docs-content follows the docs-content standard, and no sample prints an identifying value run: pnpm check:docs-content + - name: The generated API reference in docs-content/api matches the source + run: pnpm check:docs-reference diff --git a/AGENTS.md b/AGENTS.md index f5fe649..d7a8fe5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -60,6 +60,7 @@ pnpm check:claude-card pnpm check:catalog pnpm check:process pnpm check:docs-content +pnpm check:docs-reference # no-emdash and no-internal-refs pnpm check:no-emdash pnpm check:no-internal-refs @@ -76,6 +77,8 @@ pnpm check:no-internal-refs name what the caller chose (a command, flag, format, or path), never what the input held. `--unsafe-show-values` is the one opt-in, off by default. A change to an output path adds a test that a planted synthetic value does not appear without that flag. +- After a change to an export or its TSDoc, run `pnpm docs:reference` and commit the pages in + `docs-content/api/` with it: `pnpm check:docs-reference` fails on a stale page. - After an intended change to the export surface, run `pnpm build` and then `pnpm api-surface --all --write`, and commit `release/public-api.json` and `release/public-api-mcp.json` with it: a test fails when a fresh build differs from the record. diff --git a/docs-content/api/src.md b/docs-content/api/src.md index 4bb1dda..b3af994 100644 --- a/docs-content/api/src.md +++ b/docs-content/api/src.md @@ -277,6 +277,67 @@ How many parse warnings the round-trip surfaced (value-free count only). *** +### OutputSink + +The stdout side of the `cosyte` bin, from [createOutputSink](#createoutputsink): every chunk of the data channel +goes through [OutputSink.write](#write), which waits for the consumer and keeps count of what it was +owed. + +#### Properties + +##### delivered + +> `readonly` **delivered**: `boolean` + +Whether every write was acknowledged without an error and the stream is still open. + +##### open + +> `readonly` **open**: `boolean` + +Whether the stream is still open: no error and no close seen. + +##### produced + +> `readonly` **produced**: `boolean` + +Whether anything was written (or attempted) at all. + +#### Methods + +##### flushed() + +> **flushed**(): `Promise`\<`void`\> + +Resolve once every queued write has been acknowledged or has failed, or the stream has closed. + +###### Returns + +`Promise`\<`void`\> + +##### write() + +> **write**(`chunk`): `Promise`\<`void`\> \| `undefined` + +Queue `chunk` on the stream. Returns a promise when the stream's buffer is full, which settles +when the stream drains (or closes, or fails): the caller writes nothing more until then. + +###### Parameters + +###### chunk + +`string` + +###### Returns + +`Promise`\<`void`\> \| `undefined` + +###### Throws + +When the stream has already closed or failed: nothing more can be delivered. + +*** + ### ParseResult The result of wrapping a parser's `parse`: the library's parsed model + its value-free warnings. @@ -442,12 +503,18 @@ Read all of stdin's bytes. ##### writeStdout? -> `readonly` `optional` **writeStdout?**: (`chunk`) => `void` +> `readonly` `optional` **writeStdout?**: (`chunk`) => `unknown` -Optional: write one piece of the data channel **as it is produced**. When present, a multi-record -`parse` writes each record's NDJSON line through here instead of accumulating them, and the -returned result's `stdout` is empty because the output has already been delivered. May throw (a -consumer that closed the pipe); the caller turns that into a value-free +Optional: write one piece of the data channel **as it is produced**. When present, `parse` writes +its output through here instead of returning it: each record's NDJSON line on a multi-record +input, and a single message's JSON in bounded pieces, and the returned result's `stdout` is empty +because the output has already been delivered. + +Returning a promise says the consumer is behind (the stream's buffer is full): no more output is +produced, and no more input read for it, until the promise settles. [createOutputSink](#createoutputsink) +returns one exactly when the stream asks for a `drain`. Any other return value is ignored, so a +sink written as `(chunk) => lines.push(chunk)` still fits. May throw, or return a promise that +rejects (a consumer that closed the pipe); the caller turns either into a value-free `CLI_OUTPUT_WRITE_FAILED`. ###### Parameters @@ -458,7 +525,7 @@ consumer that closed the pipe); the caller turns that into a value-free ###### Returns -`void` +`unknown` *** @@ -888,6 +955,14 @@ process.exitCode = EXIT.OK; // => 0 *** +### JSON\_CHUNK\_CHARS + +> `const` **JSON\_CHUNK\_CHARS**: `number` + +The piece size [jsonChunks](#jsonchunks) aims for: 64 Ki characters, a pipe buffer's worth or so. + +*** + ### KNOWN\_FORMATS > `const` **KNOWN\_FORMATS**: readonly [`CosyteFormat`](#cosyteformat)[] @@ -978,7 +1053,7 @@ The default, safe posture: no value ever reaches a secondary surface. ### VERSION -> `const` **VERSION**: `string` = `"0.1.7"` +> `const` **VERSION**: `string` = `"0.1.13"` The `@cosyte/cli` version. On the uniform `v0.0.x-until-first-alpha` ladder. @@ -1228,6 +1303,48 @@ convertOutcome([{ code: "TRANSFORM_ELEMENT_DROPPED", severity: "information", lo *** +### createOutputSink() + +> **createOutputSink**(`stream`): [`OutputSink`](#outputsink) + +Wrap a writable stream (`process.stdout` in the bin) as an [OutputSink](#outputsink) that honours +back-pressure: when `stream.write` says its buffer is full, the write hands back a promise that +settles on `drain`, so the producer stops instead of queueing its whole output in memory. + +It also answers the delivery question a closed pipe raises. A consumer that closes the pipe makes +a later write fail, which the stream reports asynchronously, so a run whose writes were all queued +before that report would look delivered. Every chunk is therefore owed an acknowledgement, and +[OutputSink.delivered](#delivered) is true only when each one came back clean. + +#### Parameters + +##### stream + +`WritableStream` + +The stream to write to. + +#### Returns + +[`OutputSink`](#outputsink) + +The sink. + +#### Example + +```ts +import { PassThrough } from "node:stream"; +import { createOutputSink } from "@cosyte/cli"; + +const out = new PassThrough(); +const sink = createOutputSink(out); +await sink.write("{}\n"); +await sink.flushed(); +sink.delivered; // => true +``` + +*** + ### deframeMllp() > **deframeMllp**(`bytes`): `Promise`\<\{ `payloads`: `Buffer`\<`ArrayBufferLike`\>[]; `warningCount`: `number`; \}\> @@ -1993,6 +2110,61 @@ isDeidCovered("x12"); // => true *** +### jsonChunks() + +> **jsonChunks**(`value`, `space?`, `size?`): `Generator`\<`string`\> + +Write `value` as JSON, a piece at a time: the pieces joined are exactly +`JSON.stringify(value, null, space)`. + +Each piece is at least `size` characters (but the last) and rarely much more: one escaped slice of +a long string, or one short scalar, past it. A piece is handed out as soon as it is full, so a +consumer that writes each one before asking for the next never holds more than a piece of the +text at once. + +#### Parameters + +##### value + +`unknown` + +The value to write. A value `JSON.stringify` would write as `undefined` writes + nothing. + +##### space? + +`number` + +The indentation, as `JSON.stringify` takes it: a number of spaces (at most 10), or + none for compact output. + +##### size? + +`number` = `JSON_CHUNK_CHARS` + +The piece size to aim for. Defaults to [JSON\_CHUNK\_CHARS](#json_chunk_chars). + +#### Returns + +`Generator`\<`string`\> + +The text's pieces, in order. + +#### Throws + +Where `JSON.stringify` throws: a cycle, or a `BigInt`. + +#### Example + +```ts +import { jsonChunks } from "@cosyte/cli"; + +[...jsonChunks({ resourceType: "Patient", active: true })].join(""); +// => '{"resourceType":"Patient","active":true}' +``` + +*** + ### loadOptional() > **loadOptional**\<`T`\>(`format`, `load`): `Promise`\<`T`\> diff --git a/package.json b/package.json index 088cb0e..da2d77e 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,8 @@ "check:claude-card": "cosyte-claude-card", "check:catalog": "cosyte-catalog", "check:docs-content": "cosyte-docs-content", + "check:docs-reference": "cosyte-docs-reference --check", + "docs:reference": "cosyte-docs-reference", "check:process": "cosyte-process check", "lint": "cosyte-process lint", "lint:fix": "cosyte-process lint --fix", @@ -122,7 +124,7 @@ "pack:docs": "cosyte-process pack-docs", "attw": "cosyte-attw", "api-surface": "cosyte-api-surface", - "version": "changeset version && node scripts/sync-version.mjs && cosyte-process format", + "version": "changeset version && node scripts/sync-version.mjs && cosyte-docs-reference && cosyte-process format", "release": "changeset publish", "prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm attw", "prepare": "command -v simple-git-hooks >/dev/null 2>&1 && simple-git-hooks 1>&2 || true" @@ -135,7 +137,8 @@ "esbuild@>=0.27.3 <0.28.2": "0.28.2", "js-yaml@>=4.0.0 <4.3.2": "4.3.2", "js-yaml@>=3.0.0 <3.15.2": "3.15.2", - "minimatch@>=10.0.0 <11.0.1": "11.0.1" + "minimatch@>=10.0.0 <11.0.1": "11.0.1", + "typedoc>minimatch": "10.2.6" } }, "devDependencies": { @@ -144,7 +147,7 @@ "@cosyte/bench": "^0.1.1", "@cosyte/eslint-config": "^0.1.4", "@cosyte/prettier-config": "^0.1.2", - "@cosyte/process": "^0.1.7", + "@cosyte/process": "^0.1.10", "@cosyte/script-utils": "^0.1.16", "@cosyte/synth": "^0.1.5", "@cosyte/test-utils": "^0.1.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 11b96c6..09679bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,6 +9,7 @@ overrides: js-yaml@>=4.0.0 <4.3.2: 4.3.2 js-yaml@>=3.0.0 <3.15.2: 3.15.2 minimatch@>=10.0.0 <11.0.1: 11.0.1 + typedoc>minimatch: 10.2.6 importers: @@ -37,8 +38,8 @@ importers: specifier: ^0.1.2 version: 0.1.2 '@cosyte/process': - specifier: ^0.1.7 - version: 0.1.7(@types/node@22.20.1)(postcss@8.5.32)(tsx@4.23.15)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)) + specifier: ^0.1.10 + version: 0.1.10(@types/node@22.20.1)(postcss@8.5.32)(tsx@4.23.15)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1))(yaml@2.9.1) '@cosyte/script-utils': specifier: ^0.1.16 version: 0.1.16 @@ -53,10 +54,10 @@ importers: version: 0.1.2 '@cosyte/tsup-config': specifier: ^0.1.3 - version: 0.1.3(tsup@9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3)) + version: 0.1.3(tsup@9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3)(yaml@2.9.1)) '@cosyte/vitest-config': specifier: ^0.1.8 - version: 0.1.8(@cosyte/script-utils@0.1.16)(@stryker-mutator/core@10.1.1(@types/node@22.20.1))(@stryker-mutator/vitest-runner@10.1.1(@stryker-mutator/core@10.1.1(@types/node@22.20.1))(vitest@5.1.0))(@vitest/coverage-v8@5.1.0)(typescript@5.9.3)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15))(vitest@5.1.0) + version: 0.1.8(@cosyte/script-utils@0.1.16)(@stryker-mutator/core@10.1.1(@types/node@22.20.1))(@stryker-mutator/vitest-runner@10.1.1(@stryker-mutator/core@10.1.1(@types/node@22.20.1))(vitest@5.1.0))(@vitest/coverage-v8@5.1.0)(typescript@5.9.3)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1))(vitest@5.1.0) '@stryker-mutator/core': specifier: 10.1.1 version: 10.1.1(@types/node@22.20.1) @@ -80,10 +81,10 @@ importers: version: 5.9.3 vite: specifier: 8.3.6 - version: 8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15) + version: 8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1) vitest: specifier: 5.1.0 - version: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)) + version: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1)) optionalDependencies: '@cosyte/astm': specifier: ^0.1.7 @@ -506,8 +507,8 @@ packages: '@cosyte/prettier-config@0.1.2': resolution: {integrity: sha512-bpcOjNAU+IBscFxZk7CBODgd7VRwOirg8LlffJLAQUTobI1JunbvAZa98u1BNv+/m5ILMGVNFopGW9HPNA2H5Q==} - '@cosyte/process@0.1.7': - resolution: {integrity: sha512-TvgwpJrS+SEjGghbKLOIlCIM8gHZDw+MKdDXPVi4UpUsFLZrEF3aUOZbZ8O5hRRoQQ3nIHYIemB6EPYuR/Yagg==} + '@cosyte/process@0.1.10': + resolution: {integrity: sha512-2DXlwW+XDA87UlqcWxsEWh+sxXPJrmPjJYIBhoRNP/F6kP00xQqZQdhdHcP7V7+or00yUQnDVuW3LgNMfKfA0A==} engines: {node: '>=22.22.2'} hasBin: true @@ -814,6 +815,9 @@ packages: resolution: {integrity: sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} + '@gerrit0/mini-shiki@3.23.0': + resolution: {integrity: sha512-bEMORlG0cqdjVyCEuU0cDQbORWX+kYCeo0kV1lbxF5bt4r7SID2l9bqsxJEM0zndaxpOUT7riCyIVEuqq/Ynxg==} + '@hono/node-server@2.1.6': resolution: {integrity: sha512-p/KH9MnfNcsm3sR6x4lNgm5j+QN4Et8srKredl9DZfXiyZ1UQ3aQ2YVpFLbqktYN5JI+DB+VZFKM2PqE5hLKjQ==} engines: {node: '>=20'} @@ -1290,6 +1294,21 @@ packages: '@sec-ant/readable-stream@0.4.1': resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} + '@shikijs/engine-oniguruma@3.23.0': + resolution: {integrity: sha512-1nWINwKXxKKLqPibT5f4pAFLej9oZzQTsby8942OTlsJzOBZ0MWKiwzMsd+jhzu8YPCHAswGnnN1YtQfirL35g==} + + '@shikijs/langs@3.23.0': + resolution: {integrity: sha512-2Ep4W3Re5aB1/62RSYQInK9mM3HsLeB91cHqznAJMuylqjzNVAVCMnNWRHFtcNHXsoNRayP9z1qj4Sq3nMqYXg==} + + '@shikijs/themes@3.23.0': + resolution: {integrity: sha512-5qySYa1ZgAT18HR/ypENL9cUSGOeI2x+4IvYJu4JgVJdizn6kG4ia5Q1jDEOi7gTbN4RbuYtmHh0W3eccOrjMA==} + + '@shikijs/types@3.23.0': + resolution: {integrity: sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ==} + + '@shikijs/vscode-textmate@10.1.0': + resolution: {integrity: sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==} + '@sindresorhus/base62@1.0.0': resolution: {integrity: sha512-TeheYy0ILzBEI/CO55CP6zJCSdSWeRtGnHy8U8dWSUH4I68iqTsy7HkMktR4xakThc9jotkPQUXT4ITdbV7cHA==} engines: {node: '>=18'} @@ -1343,6 +1362,9 @@ packages: '@types/gensync@1.0.5': resolution: {integrity: sha512-MbsRCT7mTikHwKZ0X+LVUTLRrZZRLipTuXEO9qOYO+zmjMVk81axyClMROf6uoPD9MRVu46bx8zoR0Ad9q3NAg==} + '@types/hast@3.0.5': + resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==} + '@types/jsesc@2.5.1': resolution: {integrity: sha512-9VN+6yxLOPLOav+7PwjZbxiID2bVaeq0ED4qSQmdQTdjnXJSaCVKTR58t15oqH1H5t8Ng2ZX1SabJVoN9Q34bw==} @@ -1355,6 +1377,9 @@ packages: '@types/node@22.20.1': resolution: {integrity: sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q==} + '@types/unist@3.0.3': + resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + '@typescript-eslint/eslint-plugin@8.72.1': resolution: {integrity: sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1755,6 +1780,10 @@ packages: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} engines: {node: '>=8.6'} + entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + environment@1.1.0: resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==} engines: {node: '>=18'} @@ -2293,6 +2322,9 @@ packages: lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + linkify-it@5.0.2: + resolution: {integrity: sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==} + load-tsconfig@0.2.5: resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -2315,6 +2347,9 @@ packages: resolution: {integrity: sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==} engines: {node: 20 || >=22} + lunr@2.3.9: + resolution: {integrity: sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==} + magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} @@ -2324,6 +2359,10 @@ packages: magicast@0.5.5: resolution: {integrity: sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA==} + markdown-it@14.3.3: + resolution: {integrity: sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg==} + hasBin: true + marked-terminal@7.3.0: resolution: {integrity: sha512-t4rBvPsHc57uE/2nJOLmMbZCQ4tgAccAED3ngXQqW6g+TxA488JzJ+FK3lQkzBQOI1mRV/r/Kq+1ZlJ4D0owQw==} engines: {node: '>=16.0.0'} @@ -2339,6 +2378,9 @@ packages: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} engines: {node: '>= 0.4'} + mdurl@2.1.0: + resolution: {integrity: sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==} + media-typer@1.1.0: resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==} engines: {node: '>= 0.8'} @@ -2366,6 +2408,10 @@ packages: minimalistic-assert@1.0.1: resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} + minimatch@11.0.1: resolution: {integrity: sha512-t+Vn6DX4wPCxS23y03C0uhF7S1jpi1GfqPrnlEipCJaA2ykiNbMkVlDutZtmvLfRcUN6R8AYVlzTsQrT4RZoLQ==} engines: {node: 18 || 20 || >=22} @@ -2603,6 +2649,10 @@ packages: resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==} engines: {node: '>= 0.10'} + punycode.js@2.3.1: + resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} + engines: {node: '>=6'} + punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -2910,6 +2960,19 @@ packages: resolution: {integrity: sha512-k4kX5Up6qA68D0Cby2AK+6+vM5k3qTxe+/3FqhnHRExjY5cfbOnzjQZbP/LXleF8hVoDvDqxlgk9KK83HoBZlQ==} engines: {node: '>= 16.0.0'} + typedoc-plugin-markdown@4.14.1: + resolution: {integrity: sha512-24XX0oqyBsjBIBNoSH4wbgQkouci/CmgmO1ZBSaVkrcflqXFL2PQ5zFOpkz+Ewow5xQ3q2You+wrcmilNepRKg==} + engines: {node: '>= 18'} + peerDependencies: + typedoc: 0.28.x + + typedoc@0.28.20: + resolution: {integrity: sha512-uSKqkh8Cr48vllnEy+jdaAgOeR6Y+QCBW7usgUsKj7gJEfR7stw9U/fE49LBnj2tPRKPY0c0EBJSWe9Appmplg==} + engines: {node: '>= 18', pnpm: '>= 10'} + hasBin: true + peerDependencies: + typescript: 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x || 6.0.x + typescript-eslint@8.72.1: resolution: {integrity: sha512-3Li9FfPmQp45nxEtFD1ZCrYFI3cYK5kpyNtmm1H7lMagm8u9sy6PTjy3ytwQZs7KNukOyKFHAZ6z6GjYFeaeXw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -2927,6 +2990,9 @@ packages: engines: {node: '>=14.17'} hasBin: true + uc.micro@2.1.0: + resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} + ufo@1.6.4: resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==} @@ -3085,6 +3151,11 @@ packages: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} + yaml@2.9.1: + resolution: {integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==} + engines: {node: '>= 14.6'} + hasBin: true + yargs-parser@20.2.9: resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} engines: {node: '>=10'} @@ -3613,14 +3684,16 @@ snapshots: '@cosyte/prettier-config@0.1.2': {} - '@cosyte/process@0.1.7(@types/node@22.20.1)(postcss@8.5.32)(tsx@4.23.15)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15))': + '@cosyte/process@0.1.10(@types/node@22.20.1)(postcss@8.5.32)(tsx@4.23.15)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1))(yaml@2.9.1)': dependencies: '@vitest/coverage-v8': 5.1.0(vitest@5.1.0) eslint: 10.14.0 prettier: 3.9.10 - tsup: 9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3) + tsup: 9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3)(yaml@2.9.1) + typedoc: 0.28.20(typescript@5.9.3) + typedoc-plugin-markdown: 4.14.1(typedoc@0.28.20(typescript@5.9.3)) typescript: 5.9.3 - vitest: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)) + vitest: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1)) transitivePeerDependencies: - '@edge-runtime/vm' - '@microsoft/api-extractor' @@ -3669,15 +3742,15 @@ snapshots: '@cosyte/tsconfig@0.1.2': {} - '@cosyte/tsup-config@0.1.3(tsup@9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3))': + '@cosyte/tsup-config@0.1.3(tsup@9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3)(yaml@2.9.1))': dependencies: - tsup: 9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3) + tsup: 9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3)(yaml@2.9.1) - '@cosyte/vitest-config@0.1.8(@cosyte/script-utils@0.1.16)(@stryker-mutator/core@10.1.1(@types/node@22.20.1))(@stryker-mutator/vitest-runner@10.1.1(@stryker-mutator/core@10.1.1(@types/node@22.20.1))(vitest@5.1.0))(@vitest/coverage-v8@5.1.0)(typescript@5.9.3)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15))(vitest@5.1.0)': + '@cosyte/vitest-config@0.1.8(@cosyte/script-utils@0.1.16)(@stryker-mutator/core@10.1.1(@types/node@22.20.1))(@stryker-mutator/vitest-runner@10.1.1(@stryker-mutator/core@10.1.1(@types/node@22.20.1))(vitest@5.1.0))(@vitest/coverage-v8@5.1.0)(typescript@5.9.3)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1))(vitest@5.1.0)': dependencies: '@vitest/coverage-v8': 5.1.0(vitest@5.1.0) - vite: 8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15) - vitest: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)) + vite: 8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1) + vitest: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1)) optionalDependencies: '@cosyte/script-utils': 0.1.16 '@stryker-mutator/core': 10.1.1(@types/node@22.20.1) @@ -3828,6 +3901,14 @@ snapshots: '@eslint/core': 1.2.1 levn: 0.4.1 + '@gerrit0/mini-shiki@3.23.0': + dependencies: + '@shikijs/engine-oniguruma': 3.23.0 + '@shikijs/langs': 3.23.0 + '@shikijs/themes': 3.23.0 + '@shikijs/types': 3.23.0 + '@shikijs/vscode-textmate': 10.1.0 + '@hono/node-server@2.1.6(hono@4.13.16)': dependencies: hono: 4.13.16 @@ -4189,6 +4270,26 @@ snapshots: '@sec-ant/readable-stream@0.4.1': {} + '@shikijs/engine-oniguruma@3.23.0': + dependencies: + '@shikijs/types': 3.23.0 + '@shikijs/vscode-textmate': 10.1.0 + + '@shikijs/langs@3.23.0': + dependencies: + '@shikijs/types': 3.23.0 + + '@shikijs/themes@3.23.0': + dependencies: + '@shikijs/types': 3.23.0 + + '@shikijs/types@3.23.0': + dependencies: + '@shikijs/vscode-textmate': 10.1.0 + '@types/hast': 3.0.5 + + '@shikijs/vscode-textmate@10.1.0': {} + '@sindresorhus/base62@1.0.0': {} '@sindresorhus/is@4.6.0': {} @@ -4259,7 +4360,7 @@ snapshots: '@stryker-mutator/util': 10.1.1 semver: 7.8.6 tslib: 2.8.1 - vitest: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)) + vitest: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1)) '@types/chai@5.2.3': dependencies: @@ -4276,6 +4377,10 @@ snapshots: '@types/gensync@1.0.5': {} + '@types/hast@3.0.5': + dependencies: + '@types/unist': 3.0.3 + '@types/jsesc@2.5.1': {} '@types/json-schema@7.0.15': {} @@ -4286,6 +4391,8 @@ snapshots: dependencies: undici-types: 6.21.0 + '@types/unist@3.0.3': {} + '@typescript-eslint/eslint-plugin@8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.14.0)(typescript@5.9.3))(eslint@10.14.0)(typescript@5.9.3)': dependencies: '@eslint-community/regexpp': 4.12.2 @@ -4387,7 +4494,7 @@ snapshots: obug: 3.0.0 std-env: 4.3.0 tinyrainbow: 3.2.0 - vitest: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)) + vitest: 5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1)) '@vitest/istanbul-lib-coverage@2.1.0': {} @@ -4395,14 +4502,14 @@ snapshots: dependencies: '@vitest/istanbul-lib-coverage': 2.1.0 - '@vitest/mocker@5.1.0(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15))': + '@vitest/mocker@5.1.0(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1))': dependencies: '@jridgewell/trace-mapping': 0.3.31 '@vitest/spy': 5.1.0 estree-walker: 3.0.3 magic-string: 1.4.5 optionalDependencies: - vite: 8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15) + vite: 8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1) '@vitest/spy@5.1.0': {} @@ -4688,6 +4795,8 @@ snapshots: ansi-colors: 4.1.3 strip-ansi: 6.0.1 + entities@4.5.0: {} + environment@1.1.0: {} es-define-property@1.0.1: {} @@ -4769,7 +4878,7 @@ snapshots: eslint-scope@9.1.2: dependencies: '@types/esrecurse': 4.3.1 - '@types/estree': 1.0.9 + '@types/estree': 1.0.10 esrecurse: 4.3.0 estraverse: 5.3.0 @@ -4788,7 +4897,7 @@ snapshots: '@humanfs/node': 0.16.8 '@humanwhocodes/module-importer': 1.0.1 '@humanwhocodes/retry': 0.4.3 - '@types/estree': 1.0.9 + '@types/estree': 1.0.10 ajv: 6.15.0 cross-spawn: 7.0.6 debug: 4.4.3 @@ -5256,6 +5365,10 @@ snapshots: lines-and-columns@1.2.4: {} + linkify-it@5.0.2: + dependencies: + uc.micro: 2.1.0 + load-tsconfig@0.2.5: {} locate-path@5.0.0: @@ -5272,6 +5385,8 @@ snapshots: lru-cache@11.5.2: {} + lunr@2.3.9: {} + magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.6.0 @@ -5286,6 +5401,15 @@ snapshots: '@babel/types': 7.29.7 source-map-js: 1.2.2 + markdown-it@14.3.3: + dependencies: + argparse: 2.0.1 + entities: 4.5.0 + linkify-it: 5.0.2 + mdurl: 2.1.0 + punycode.js: 2.3.1 + uc.micro: 2.1.0 + marked-terminal@7.3.0(marked@9.1.6): dependencies: ansi-escapes: 7.3.0 @@ -5301,6 +5425,8 @@ snapshots: math-intrinsics@1.1.0: {} + mdurl@2.1.0: {} + media-typer@1.1.0: optional: true @@ -5324,6 +5450,10 @@ snapshots: minimalistic-assert@1.0.1: {} + minimatch@10.2.6: + dependencies: + brace-expansion: 5.0.12 + minimatch@11.0.1: dependencies: '@isaacs/nonrecursive-glob-match': 1.1.0 @@ -5489,12 +5619,13 @@ snapshots: mlly: 1.8.2 pathe: 2.0.3 - postcss-load-config@6.0.1(postcss@8.5.32)(tsx@4.23.15): + postcss-load-config@6.0.1(postcss@8.5.32)(tsx@4.23.15)(yaml@2.9.1): dependencies: lilconfig: 3.1.3 optionalDependencies: postcss: 8.5.32 tsx: 4.23.15 + yaml: 2.9.1 postcss@8.5.32: dependencies: @@ -5520,6 +5651,8 @@ snapshots: ipaddr.js: 1.9.1 optional: true + punycode.js@2.3.1: {} + punycode@2.3.1: {} pure-rand@8.4.2: {} @@ -5828,7 +5961,7 @@ snapshots: tslib@2.8.1: {} - tsup@9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3): + tsup@9.0.0(postcss@8.5.32)(tsx@4.23.15)(typescript@5.9.3)(yaml@2.9.1): dependencies: bundle-require: 5.1.0(esbuild@0.28.2) cac: 7.1.0 @@ -5839,7 +5972,7 @@ snapshots: joycon: 3.1.1 obug: 3.0.0 picocolors: 1.1.1 - postcss-load-config: 6.0.1(postcss@8.5.32)(tsx@4.23.15) + postcss-load-config: 6.0.1(postcss@8.5.32)(tsx@4.23.15)(yaml@2.9.1) resolve-from: 5.0.0 rollup: 4.68.0 source-map-js: 1.2.2 @@ -5884,6 +6017,19 @@ snapshots: tunnel: 0.0.6 underscore: 1.13.8 + typedoc-plugin-markdown@4.14.1(typedoc@0.28.20(typescript@5.9.3)): + dependencies: + typedoc: 0.28.20(typescript@5.9.3) + + typedoc@0.28.20(typescript@5.9.3): + dependencies: + '@gerrit0/mini-shiki': 3.23.0 + lunr: 2.3.9 + markdown-it: 14.3.3 + minimatch: 10.2.6 + typescript: 5.9.3 + yaml: 2.9.1 + typescript-eslint@8.72.1(eslint@10.14.0)(typescript@5.9.3): dependencies: '@typescript-eslint/eslint-plugin': 8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.14.0)(typescript@5.9.3))(eslint@10.14.0)(typescript@5.9.3) @@ -5899,6 +6045,8 @@ snapshots: typescript@5.9.3: {} + uc.micro@2.1.0: {} + ufo@1.6.4: {} underscore@1.13.8: {} @@ -5931,7 +6079,7 @@ snapshots: verkit@0.5.0: {} - vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15): + vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1): dependencies: lightningcss: 1.33.0 picomatch: 4.0.7 @@ -5943,11 +6091,12 @@ snapshots: esbuild: 0.28.2 fsevents: 2.3.3 tsx: 4.23.15 + yaml: 2.9.1 - vitest@5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)): + vitest@5.1.0(@types/node@22.20.1)(@vitest/coverage-v8@5.1.0)(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1)): dependencies: '@types/chai': 5.2.3 - '@vitest/mocker': 5.1.0(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)) + '@vitest/mocker': 5.1.0(vite@8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1)) chai: 6.3.0 es-module-lexer: 2.3.2 expect-type: 1.4.0 @@ -5958,7 +6107,7 @@ snapshots: tinybench: 6.2.3 tinyexec: 1.3.1 tinyglobby: 0.2.17 - vite: 8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15) + vite: 8.3.6(@types/node@22.20.1)(esbuild@0.28.2)(tsx@4.23.15)(yaml@2.9.1) why-is-node-running: 3.2.1 optionalDependencies: '@types/node': 22.20.1 @@ -5987,6 +6136,8 @@ snapshots: y18n@5.0.8: {} + yaml@2.9.1: {} + yargs-parser@20.2.9: {} yargs@16.2.2: