@unbrained/pm-cli 2026.10.17 → 2026.10.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +35 -0
- package/dist/cli/help-content.js +2 -2
- package/dist/cli/register-list-query.js +2 -2
- package/dist/cli/register-mutation.js +2 -2
- package/dist/cli/register-setup.js +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-4CXQSRSP.js +126 -0
- package/dist/cli-bundle/chunks/{chunk-EA2CG7UM.js → chunk-4ICKT4GH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-W3KZ22DW.js → chunk-4MJ6WBMA.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-4XFVAXA4.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-6ZDKKOKM.js → chunk-5GZSX5HU.js} +72 -66
- package/dist/cli-bundle/chunks/{chunk-3QKI3XNX.js → chunk-6DS5CAN2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-B5QVGCZX.js → chunk-D3EDNAN7.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-DMFM5R4G.js +3 -0
- package/dist/cli-bundle/chunks/chunk-H3XYP24A.js +70 -0
- package/dist/cli-bundle/chunks/chunk-LBEMB3BW.js +6 -0
- package/dist/cli-bundle/chunks/chunk-NX7Q4LGN.js +8 -0
- package/dist/cli-bundle/chunks/chunk-O2ZRRLAP.js +8 -0
- package/dist/cli-bundle/chunks/chunk-OEJ3G7XT.js +20 -0
- package/dist/cli-bundle/chunks/{chunk-O4YBC3OM.js → chunk-QBNEZII5.js} +30 -30
- package/dist/cli-bundle/chunks/chunk-QG4LMU7A.js +112 -0
- package/dist/cli-bundle/chunks/chunk-QKAAZWGC.js +3 -0
- package/dist/cli-bundle/chunks/chunk-RUKSEZE7.js +2 -0
- package/dist/cli-bundle/chunks/chunk-TK3G3GAP.js +2 -0
- package/dist/cli-bundle/chunks/chunk-VS565KBX.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-JS3B2M4D.js → chunk-XH7C3A5N.js} +2 -2
- package/dist/cli-bundle/chunks/indexed-receipt-blobs-BVSHK4WQ.js +4 -0
- package/dist/cli-bundle/chunks/{register-list-query-RU3QZSAQ.js → register-list-query-WQUVDJIH.js} +7 -7
- package/dist/cli-bundle/chunks/register-mutation-IWIBQIO3.js +20 -0
- package/dist/cli-bundle/chunks/register-operations-SUWOZNDU.js +2 -0
- package/dist/cli-bundle/chunks/register-setup-QGM5YJW7.js +2 -0
- package/dist/cli-bundle/chunks/settlement-hook-UNFMCKKQ.js +7 -0
- package/dist/cli-bundle/chunks/stage-7DELI4Z5.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-LDKX4KYJ.js → chunk-2IEWB6MB.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-3TEIACFU.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-5YTOYBTZ.js +65 -0
- package/dist/cli-bundle/focused-chunks/chunk-AK2CI2GI.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-BJMPRB7A.js +91 -0
- package/dist/cli-bundle/focused-chunks/chunk-ENZMATOY.js +20 -0
- package/dist/cli-bundle/focused-chunks/chunk-EOQ6W25I.js +8 -0
- package/dist/cli-bundle/focused-chunks/{chunk-FTUZ3JF2.js → chunk-FEN7WOOP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-FOA7XKWP.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-GWTV45SB.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-SIGIGZCG.js → chunk-H6BVQ63U.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-RBLSY6ML.js → chunk-HYMYAGSY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-JBJJW2WL.js +6 -0
- package/dist/cli-bundle/focused-chunks/chunk-JCLC6HKT.js +8 -0
- package/dist/cli-bundle/focused-chunks/{chunk-2IOHHNRT.js → chunk-JDBO7SMR.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UNTQE37U.js → chunk-KLJN44VY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-L4PL3GZR.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-OV2WVLUR.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-PXDR77TO.js +78 -0
- package/dist/cli-bundle/focused-chunks/chunk-RLRMNFLF.js +3 -0
- package/dist/cli-bundle/focused-chunks/{chunk-E33QA7PK.js → chunk-SKYLOPU2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-VVRXF4JO.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-WZTEFFQI.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-Y54ONBEX.js +25 -0
- package/dist/cli-bundle/focused-chunks/indexed-receipt-blobs-QW2VWWJE.js +4 -0
- package/dist/cli-bundle/focused-chunks/settlement-hook-X4FNHTOD.js +7 -0
- package/dist/cli-bundle/focused-chunks/stage-MZSVQYO4.js +2 -0
- package/dist/cli-bundle/main.js +3 -3
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +29 -23
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +66 -52
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +2 -2
- package/dist/core/history/event-index.d.ts +8 -1
- package/dist/core/history/event-index.js +19 -18
- package/dist/core/item/item-format.js +1 -1
- package/dist/core/lock/lock.d.ts +8 -1
- package/dist/core/lock/lock.js +3 -3
- package/dist/core/output/output.js +2 -2
- package/dist/core/store/paths.js +1 -1
- package/dist/core/telemetry/policy.d.ts +2 -0
- package/dist/core/telemetry/policy.js +1 -1
- package/dist/core/telemetry/runtime.d.ts +5 -3
- package/dist/core/telemetry/runtime.js +3 -3
- package/dist/sdk/cli-contracts/bootstrap-command-scanner.js +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
- package/dist/sdk/cli-contracts/runtime-contracts.d.ts +1 -0
- package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/extension/install-sources.js +3 -3
- package/dist/sdk/extension/shared.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
- package/dist/sdk/governance/health/projection.d.ts +37 -0
- package/dist/sdk/governance/health/projection.js +2 -0
- package/dist/sdk/governance/health.d.ts +7 -18
- package/dist/sdk/governance/health.js +2 -2
- package/dist/sdk/history-repair.js +1 -1
- package/dist/sdk/merge/driver.js +7 -1
- package/dist/sdk/merge/indexed-receipt-blobs.d.ts +2 -0
- package/dist/sdk/merge/indexed-receipt-blobs.js +4 -0
- package/dist/sdk/merge/install.d.ts +8 -0
- package/dist/sdk/merge/install.js +3 -3
- package/dist/sdk/merge/receipts.d.ts +6 -0
- package/dist/sdk/merge/receipts.js +2 -2
- package/dist/sdk/merge/reconcile.d.ts +6 -0
- package/dist/sdk/merge/reconcile.js +1 -1
- package/dist/sdk/merge/settlement-hook.d.ts +12 -0
- package/dist/sdk/merge/settlement-hook.js +7 -0
- package/dist/sdk/merge/stage.d.ts +13 -0
- package/dist/sdk/merge/stage.js +2 -0
- package/dist/sdk/mutation-events.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/list.d.ts +2 -0
- package/dist/sdk/query/list.js +1 -1
- package/dist/sdk/runtime-extended-actions.js +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.js +1 -1
- package/docs/COMMANDS.md +39 -0
- package/docs/CONFIGURATION.md +36 -1
- package/docs/DEVELOPMENT_DEPENDENCY_SECURITY.md +22 -3
- package/docs/MERGE_SAFETY.md +88 -5
- package/docs/OUTPUT_PROJECTION_CONTRACTS.md +10 -0
- package/docs/RELEASING.md +8 -1
- package/docs/SDK.md +26 -0
- package/docs/SDK_CONTEXT_COORDINATION.md +71 -7
- package/docs/SDK_STORAGE_LIFECYCLE.md +24 -2
- package/docs/TESTING.md +15 -0
- package/docs/examples/ci/github-actions-pm-extension-gate.yml +1 -1
- package/docs/examples/ci/gitlab-ci-pm-extension-gate.yml +1 -1
- package/docs/examples/ci/jenkins-pm-extension-gate.Jenkinsfile +1 -1
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +2 -2
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +6 -3
- package/marketplace.json +1 -1
- package/node_modules/@opentelemetry/core/package.json +2 -1
- package/node_modules/@opentelemetry/instrumentation/package.json +2 -1
- package/node_modules/@opentelemetry/resources/package.json +2 -1
- package/node_modules/@opentelemetry/sdk-trace/package.json +2 -1
- package/node_modules/@opentelemetry/sdk-trace-base/package.json +2 -1
- package/node_modules/@sentry/core/build/cjs/client.js +5 -4
- package/node_modules/@sentry/core/build/cjs/tracing/ai/gen-ai-attributes.js +0 -4
- package/node_modules/@sentry/core/build/cjs/tracing/ai/utils.js +33 -23
- package/node_modules/@sentry/core/build/cjs/tracing/anthropic-ai/index.js +7 -6
- package/node_modules/@sentry/core/build/cjs/tracing/anthropic-ai/streaming.js +3 -1
- package/node_modules/@sentry/core/build/cjs/tracing/google-genai/index.js +13 -14
- package/node_modules/@sentry/core/build/cjs/tracing/google-genai/streaming.js +6 -1
- package/node_modules/@sentry/core/build/cjs/tracing/langchain/utils.js +71 -21
- package/node_modules/@sentry/core/build/cjs/tracing/langgraph/utils.js +23 -33
- package/node_modules/@sentry/core/build/cjs/tracing/openai/streaming.js +6 -0
- package/node_modules/@sentry/core/build/cjs/tracing/openai/utils.js +11 -0
- package/node_modules/@sentry/core/build/cjs/tracing/workers-ai/utils.js +1 -1
- package/node_modules/@sentry/core/build/cjs/utils/eventUtils.js +4 -0
- package/node_modules/@sentry/core/build/cjs/utils/prepareEvent.js +2 -2
- package/node_modules/@sentry/core/build/cjs/utils/version.js +1 -1
- package/node_modules/@sentry/core/build/esm/client.js +6 -5
- package/node_modules/@sentry/core/build/esm/package.json +1 -1
- package/node_modules/@sentry/core/build/esm/tracing/ai/gen-ai-attributes.js +1 -3
- package/node_modules/@sentry/core/build/esm/tracing/ai/utils.js +34 -24
- package/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/index.js +8 -7
- package/node_modules/@sentry/core/build/esm/tracing/anthropic-ai/streaming.js +3 -1
- package/node_modules/@sentry/core/build/esm/tracing/google-genai/index.js +15 -16
- package/node_modules/@sentry/core/build/esm/tracing/google-genai/streaming.js +6 -1
- package/node_modules/@sentry/core/build/esm/tracing/langchain/utils.js +73 -24
- package/node_modules/@sentry/core/build/esm/tracing/langgraph/utils.js +24 -34
- package/node_modules/@sentry/core/build/esm/tracing/openai/streaming.js +6 -0
- package/node_modules/@sentry/core/build/esm/tracing/openai/utils.js +11 -0
- package/node_modules/@sentry/core/build/esm/tracing/workers-ai/utils.js +2 -2
- package/node_modules/@sentry/core/build/esm/utils/eventUtils.js +4 -1
- package/node_modules/@sentry/core/build/esm/utils/prepareEvent.js +2 -2
- package/node_modules/@sentry/core/build/esm/utils/version.js +1 -1
- package/node_modules/@sentry/core/build/types/tracing/ai/utils.d.ts +3 -7
- package/node_modules/@sentry/core/build/types/tracing/anthropic-ai/types.d.ts +2 -2
- package/node_modules/@sentry/core/build/types/tracing/langchain/types.d.ts +15 -0
- package/node_modules/@sentry/core/build/types/tracing/langchain/utils.d.ts +1 -0
- package/node_modules/@sentry/core/build/types/tracing/langgraph/utils.d.ts +2 -0
- package/node_modules/@sentry/core/build/types/tracing/openai/types.d.ts +2 -0
- package/node_modules/@sentry/core/build/types/utils/eventUtils.d.ts +2 -1
- package/node_modules/@sentry/core/build/types-ts3.8/tracing/ai/utils.d.ts +3 -7
- package/node_modules/@sentry/core/build/types-ts3.8/tracing/anthropic-ai/types.d.ts +2 -2
- package/node_modules/@sentry/core/build/types-ts3.8/tracing/langchain/types.d.ts +15 -0
- package/node_modules/@sentry/core/build/types-ts3.8/tracing/langchain/utils.d.ts +1 -0
- package/node_modules/@sentry/core/build/types-ts3.8/tracing/langgraph/utils.d.ts +2 -0
- package/node_modules/@sentry/core/build/types-ts3.8/tracing/openai/types.d.ts +2 -0
- package/node_modules/@sentry/core/build/types-ts3.8/utils/eventUtils.d.ts +2 -1
- package/node_modules/@sentry/core/package.json +1 -1
- package/node_modules/@sentry/node/build/esm/package.json +1 -1
- package/node_modules/@sentry/node/package.json +5 -5
- package/node_modules/@sentry/node-core/build/cjs/integrations/anr/index.js +1 -1
- package/node_modules/@sentry/node-core/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/anr/index.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/anr/worker-script.js +2 -2
- package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/local-variables-async.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/worker-script.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/package.json +1 -1
- package/node_modules/@sentry/node-core/package.json +10 -4
- package/node_modules/@sentry/opentelemetry/build/esm/package.json +1 -1
- package/node_modules/@sentry/opentelemetry/package.json +5 -2
- package/node_modules/@sentry/server-utils/build/THIRD-PARTY-LICENSES.txt +55 -55
- package/node_modules/@sentry/server-utils/build/esm/package.json +1 -1
- package/node_modules/@sentry/server-utils/package.json +2 -2
- package/node_modules/@toon-format/toon/README.md +10 -41
- package/node_modules/@toon-format/toon/dist/index.d.mts +12 -36
- package/node_modules/@toon-format/toon/dist/index.mjs +134 -202
- package/node_modules/@toon-format/toon/package.json +2 -2
- package/node_modules/debug/package.json +3 -0
- package/node_modules/fdir/package.json +3 -0
- package/node_modules/has-flag/index.d.ts +39 -0
- package/node_modules/has-flag/index.js +8 -0
- package/node_modules/has-flag/license +9 -0
- package/node_modules/has-flag/package.json +46 -0
- package/node_modules/has-flag/readme.md +89 -0
- package/node_modules/supports-color/browser.js +5 -0
- package/node_modules/supports-color/index.js +135 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +53 -0
- package/node_modules/supports-color/readme.md +76 -0
- package/package.json +4 -4
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-4PNPDT2N.js +0 -236
- package/dist/cli-bundle/chunks/chunk-HY7FQ7QX.js +0 -2
- package/dist/cli-bundle/chunks/chunk-J4LPQCET.js +0 -8
- package/dist/cli-bundle/chunks/chunk-OZCSXX4D.js +0 -80
- package/dist/cli-bundle/chunks/chunk-VMCSTFSO.js +0 -2
- package/dist/cli-bundle/chunks/chunk-X2ONXFBP.js +0 -3
- package/dist/cli-bundle/chunks/chunk-X53HM753.js +0 -20
- package/dist/cli-bundle/chunks/register-mutation-EQYMT32A.js +0 -20
- package/dist/cli-bundle/chunks/register-operations-VXBGE4XI.js +0 -2
- package/dist/cli-bundle/chunks/register-setup-UUDEGFRO.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-5JEFDEL3.js +0 -166
- package/dist/cli-bundle/focused-chunks/chunk-AH6NX6GM.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-JXR6UKFM.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-MBQF6HT6.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-NZO7GOXD.js +0 -20
- package/dist/cli-bundle/focused-chunks/chunk-PYC7BF6Z.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-QOSVJDOO.js +0 -75
- package/dist/cli-bundle/focused-chunks/chunk-RHTH5ILM.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-TRFVAWF2.js +0 -26
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//#region src/constants.d.ts
|
|
2
|
-
declare const DELIMITERS: {
|
|
2
|
+
export declare const DELIMITERS: {
|
|
3
3
|
readonly comma: ",";
|
|
4
4
|
readonly tab: "\t";
|
|
5
5
|
readonly pipe: "|";
|
|
6
6
|
};
|
|
7
7
|
type DelimiterKey = keyof typeof DELIMITERS;
|
|
8
8
|
type Delimiter = typeof DELIMITERS[DelimiterKey];
|
|
9
|
-
declare const DEFAULT_DELIMITER: Delimiter;
|
|
9
|
+
export declare const DEFAULT_DELIMITER: Delimiter;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/types.d.ts
|
|
12
12
|
type JsonPrimitive = string | number | boolean | null;
|
|
@@ -110,7 +110,7 @@ type JsonStreamEvent = {
|
|
|
110
110
|
* Extends `SyntaxError` so existing `instanceof SyntaxError` checks keep working.
|
|
111
111
|
* Adds structured location fields for programmatic consumers and richer CLI output.
|
|
112
112
|
*/
|
|
113
|
-
declare class ToonDecodeError extends SyntaxError {
|
|
113
|
+
export declare class ToonDecodeError extends SyntaxError {
|
|
114
114
|
/** 1-based line number where the error was detected, if known. */
|
|
115
115
|
readonly line?: number;
|
|
116
116
|
/** Raw source line (including indentation) where the error was detected, if known. */
|
|
@@ -150,7 +150,7 @@ declare class RawString {
|
|
|
150
150
|
* // age: "30"
|
|
151
151
|
* ```
|
|
152
152
|
*/
|
|
153
|
-
declare function rawString(value: string): RawString;
|
|
153
|
+
export declare function rawString(value: string): RawString;
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/shared/string-utils.d.ts
|
|
156
156
|
/**
|
|
@@ -159,16 +159,12 @@ declare function rawString(value: string): RawString;
|
|
|
159
159
|
* @remarks
|
|
160
160
|
* Control characters outside `\n`, `\r`, `\t`, `\\`, and `"` are emitted as `\uXXXX`.
|
|
161
161
|
*/
|
|
162
|
-
declare function escapeString(value: string): string;
|
|
162
|
+
export declare function escapeString(value: string): string;
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/index.d.ts
|
|
165
165
|
/**
|
|
166
166
|
* Encodes a JavaScript value into TOON format string.
|
|
167
167
|
*
|
|
168
|
-
* @param input Any JavaScript value (objects, arrays, primitives)
|
|
169
|
-
* @param options Optional encoding configuration
|
|
170
|
-
* @returns TOON formatted string
|
|
171
|
-
*
|
|
172
168
|
* @example
|
|
173
169
|
* ```ts
|
|
174
170
|
* encode({ name: 'Ada', age: 30 })
|
|
@@ -186,14 +182,10 @@ declare function escapeString(value: string): string;
|
|
|
186
182
|
* encode(data, { indentSize: 4 })
|
|
187
183
|
* ```
|
|
188
184
|
*/
|
|
189
|
-
declare function encode(input: unknown, options?: EncodeOptions): string;
|
|
185
|
+
export declare function encode(input: unknown, options?: EncodeOptions): string;
|
|
190
186
|
/**
|
|
191
187
|
* Decodes a TOON format string into a JavaScript value.
|
|
192
188
|
*
|
|
193
|
-
* @param input TOON formatted string
|
|
194
|
-
* @param options Optional decoding configuration
|
|
195
|
-
* @returns Parsed JavaScript value (object, array, or primitive)
|
|
196
|
-
*
|
|
197
189
|
* @example
|
|
198
190
|
* ```ts
|
|
199
191
|
* decode('name: Ada\nage: 30')
|
|
@@ -208,17 +200,13 @@ declare function encode(input: unknown, options?: EncodeOptions): string;
|
|
|
208
200
|
* decode(toonString, { strict: false })
|
|
209
201
|
* ```
|
|
210
202
|
*/
|
|
211
|
-
declare function decode(input: string, options?: DecodeOptions): JsonValue;
|
|
203
|
+
export declare function decode(input: string, options?: DecodeOptions): JsonValue;
|
|
212
204
|
/**
|
|
213
205
|
* Encodes a JavaScript value into TOON format as a sequence of lines.
|
|
214
206
|
*
|
|
215
207
|
* This function yields TOON lines one at a time without building the full string,
|
|
216
208
|
* making it suitable for streaming large outputs to files, HTTP responses, or process stdout.
|
|
217
209
|
*
|
|
218
|
-
* @param input Any JavaScript value (objects, arrays, primitives)
|
|
219
|
-
* @param options Optional encoding configuration
|
|
220
|
-
* @returns Iterable of TOON lines (without trailing newlines)
|
|
221
|
-
*
|
|
222
210
|
* @example
|
|
223
211
|
* ```ts
|
|
224
212
|
* // Stream to stdout
|
|
@@ -233,17 +221,13 @@ declare function decode(input: string, options?: DecodeOptions): JsonValue;
|
|
|
233
221
|
* const toonString = Array.from(encodeLines(data, options)).join('\n')
|
|
234
222
|
* ```
|
|
235
223
|
*/
|
|
236
|
-
declare function encodeLines(input: unknown, options?: EncodeOptions): Iterable<string>;
|
|
224
|
+
export declare function encodeLines(input: unknown, options?: EncodeOptions): Iterable<string>;
|
|
237
225
|
/**
|
|
238
226
|
* Decodes TOON format from pre-split lines into a JavaScript value.
|
|
239
227
|
*
|
|
240
228
|
* Convenience wrapper around the streaming decoder that builds the full
|
|
241
229
|
* value in memory.
|
|
242
230
|
*
|
|
243
|
-
* @param lines Iterable of TOON lines (without newlines)
|
|
244
|
-
* @param options Optional decoding configuration
|
|
245
|
-
* @returns Parsed JavaScript value (object, array, or primitive)
|
|
246
|
-
*
|
|
247
231
|
* @example
|
|
248
232
|
* ```ts
|
|
249
233
|
* const lines = ['name: Ada', 'age: 30']
|
|
@@ -251,17 +235,13 @@ declare function encodeLines(input: unknown, options?: EncodeOptions): Iterable<
|
|
|
251
235
|
* // { name: 'Ada', age: 30 }
|
|
252
236
|
* ```
|
|
253
237
|
*/
|
|
254
|
-
declare function decodeFromLines(lines: Iterable<string>, options?: DecodeOptions): JsonValue;
|
|
238
|
+
export declare function decodeFromLines(lines: Iterable<string>, options?: DecodeOptions): JsonValue;
|
|
255
239
|
/**
|
|
256
240
|
* Synchronously decodes TOON lines into a stream of JSON events.
|
|
257
241
|
*
|
|
258
242
|
* Yields structured events (startObject, endObject, startArray, endArray, key,
|
|
259
243
|
* primitive) that represent the JSON data model without building the full value tree.
|
|
260
244
|
*
|
|
261
|
-
* @param lines Iterable of TOON lines (without newlines)
|
|
262
|
-
* @param options Optional decoding configuration
|
|
263
|
-
* @returns Iterable of JSON stream events
|
|
264
|
-
*
|
|
265
245
|
* @example
|
|
266
246
|
* ```ts
|
|
267
247
|
* const lines = ['name: Ada', 'age: 30']
|
|
@@ -274,7 +254,7 @@ declare function decodeFromLines(lines: Iterable<string>, options?: DecodeOption
|
|
|
274
254
|
* }
|
|
275
255
|
* ```
|
|
276
256
|
*/
|
|
277
|
-
declare function decodeStreamSync(lines: Iterable<string>, options?: DecodeStreamOptions): Iterable<JsonStreamEvent>;
|
|
257
|
+
export declare function decodeStreamSync(lines: Iterable<string>, options?: DecodeStreamOptions): Iterable<JsonStreamEvent>;
|
|
278
258
|
/**
|
|
279
259
|
* Asynchronously decodes TOON lines into a stream of JSON events.
|
|
280
260
|
*
|
|
@@ -282,10 +262,6 @@ declare function decodeStreamSync(lines: Iterable<string>, options?: DecodeStrea
|
|
|
282
262
|
* primitive) that represent the JSON data model without building the full value tree.
|
|
283
263
|
* Supports both sync and async iterables.
|
|
284
264
|
*
|
|
285
|
-
* @param source Async or sync iterable of TOON lines (without newlines)
|
|
286
|
-
* @param options Optional decoding configuration
|
|
287
|
-
* @returns Async iterable of JSON stream events
|
|
288
|
-
*
|
|
289
265
|
* @example
|
|
290
266
|
* ```ts
|
|
291
267
|
* const fileStream = createReadStream('data.toon', 'utf-8')
|
|
@@ -300,6 +276,6 @@ declare function decodeStreamSync(lines: Iterable<string>, options?: DecodeStrea
|
|
|
300
276
|
* }
|
|
301
277
|
* ```
|
|
302
278
|
*/
|
|
303
|
-
declare function decodeStream(source: AsyncIterable<string> | Iterable<string>, options?: DecodeStreamOptions): AsyncIterable<JsonStreamEvent>;
|
|
279
|
+
export declare function decodeStream(source: AsyncIterable<string> | Iterable<string>, options?: DecodeStreamOptions): AsyncIterable<JsonStreamEvent>;
|
|
304
280
|
//#endregion
|
|
305
|
-
export {
|
|
281
|
+
export type { DecodeOptions, DecodeStreamOptions, Delimiter, DelimiterKey, EncodeOptions, EncodeReplacer, JsonArray, JsonObject, JsonPrimitive, JsonStreamEvent, JsonValue, RawString, ResolvedDecodeOptions, ResolvedEncodeOptions };
|