@unbrained/pm-cli 2026.8.11 → 2026.8.13
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 +2 -2
- package/CHANGELOG.md +74 -21
- package/dist/cli/commander-usage.js +37 -11
- package/dist/cli/error-guidance.d.ts +2 -0
- package/dist/cli/error-guidance.js +82 -19
- package/dist/cli/main.js +35 -19
- package/dist/cli/register-annotations.js +56 -3
- package/dist/cli/register-assurance.js +28 -17
- package/dist/cli/register-list-query.js +10 -7
- package/dist/cli/register-operations.js +16 -6
- package/dist/cli-bundle/bundle-manifest.json +163 -163
- package/dist/cli-bundle/chunks/chunk-3ZMOWAFM.js +2 -0
- package/dist/cli-bundle/chunks/chunk-DEDU3DG7.js +196 -0
- package/dist/cli-bundle/chunks/chunk-DL5M5J3V.js +13 -0
- package/dist/cli-bundle/chunks/chunk-F7FJYGK3.js +8 -0
- package/dist/cli-bundle/chunks/chunk-HIUZVCMN.js +5 -0
- package/dist/cli-bundle/chunks/chunk-IMGIN7R6.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-A2SJGHSI.js → chunk-Q47C67TQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WMEZHCFI.js → chunk-QGTUPEU5.js} +62 -54
- package/dist/cli-bundle/chunks/chunk-TF3TPKPR.js +34 -0
- package/dist/cli-bundle/chunks/{chunk-ZU34C3LH.js → chunk-YLBAPY22.js} +50 -50
- package/dist/cli-bundle/chunks/register-list-query-4HIZ7EA3.js +10 -0
- package/dist/cli-bundle/chunks/register-mutation-W64FZ5HN.js +20 -0
- package/dist/cli-bundle/chunks/register-operations-C44ET7R5.js +2 -0
- package/dist/cli-bundle/chunks/{register-setup-NOCOOWQY.js → register-setup-634MFRXU.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-27N23W6M.js +31 -0
- package/dist/cli-bundle/focused-chunks/{chunk-4H5IA6AV.js → chunk-2JP7W7GO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-2RI2FESN.js +4 -0
- package/dist/cli-bundle/focused-chunks/chunk-3BNVU6LC.js +8 -0
- package/dist/cli-bundle/focused-chunks/{chunk-2DL3MRTD.js → chunk-3DJSGWVB.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-6MLIRBLV.js +5 -0
- package/dist/cli-bundle/focused-chunks/chunk-6XYLENDV.js +155 -0
- package/dist/cli-bundle/focused-chunks/chunk-CP4K4WFS.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-TL5M2PAY.js → chunk-E3AVJ655.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-EBTNSFYE.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-J5EKAIVD.js → chunk-HC2OL2H2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-BKPIY34S.js → chunk-I75MANL7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-IIS2FRKL.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-NFHFZH2Z.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-OGC4XSBC.js +17 -0
- package/dist/cli-bundle/focused-chunks/{chunk-UDAZWT25.js → chunk-OOYYKQWX.js} +4 -4
- package/dist/cli-bundle/focused-chunks/{chunk-23FTGO3W.js → chunk-PKPOZXLL.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-QDZUABWL.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-QQX5TDFT.js +16 -0
- package/dist/cli-bundle/focused-chunks/{chunk-55BIB6DV.js → chunk-TEZIXMTH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-WEH6NSL6.js +18 -0
- package/dist/cli-bundle/main.js +13 -13
- 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 +42 -41
- 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 +1 -1
- 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/checkpoint/checkpoint-gc.js +7 -12
- package/dist/core/extensions/activation-summary-markdown.js +5 -4
- package/dist/core/extensions/activation-summary.d.ts +2 -0
- package/dist/core/extensions/activation-summary.js +6 -2
- package/dist/core/extensions/capability-usage.d.ts +1 -1
- package/dist/core/extensions/capability-usage.js +4 -3
- package/dist/core/extensions/contribution-inventory.d.ts +1 -0
- package/dist/core/extensions/contribution-inventory.js +6 -2
- package/dist/core/extensions/extension-registries.js +3 -2
- package/dist/core/extensions/extension-types.d.ts +83 -1
- package/dist/core/extensions/extension-types.js +3 -2
- package/dist/core/extensions/loader.d.ts +2 -8
- package/dist/core/extensions/loader.js +53 -144
- package/dist/core/extensions/registration-values.d.ts +43 -0
- package/dist/core/extensions/registration-values.js +210 -0
- package/dist/core/extensions/reserved-host-flags.js +3 -2
- package/dist/core/extensions/runtime-registrations.d.ts +3 -1
- package/dist/core/extensions/runtime-registrations.js +12 -2
- package/dist/core/fs/fs-utils.d.ts +2 -0
- package/dist/core/fs/fs-utils.js +7 -3
- package/dist/core/history/drift-cache.js +4 -3
- package/dist/core/history/drift-scan.js +16 -17
- package/dist/core/history/history.d.ts +8 -0
- package/dist/core/history/history.js +57 -7
- package/dist/core/history/replay.d.ts +9 -1
- package/dist/core/history/replay.js +48 -13
- package/dist/core/lock/lock-gc.js +8 -13
- package/dist/core/lock/lock.js +5 -4
- package/dist/core/output/output.d.ts +2 -0
- package/dist/core/output/output.js +46 -14
- package/dist/core/search/vector-stores.js +6 -11
- package/dist/core/shared/command-types.d.ts +2 -0
- package/dist/core/shared/command-types.js +2 -2
- package/dist/core/shared/errors.d.ts +5 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/store/item-metadata-cache.d.ts +1 -1
- package/dist/core/store/item-metadata-cache.js +16 -9
- package/dist/core/telemetry/runtime.d.ts +6 -0
- package/dist/core/telemetry/runtime.js +101 -30
- package/dist/sdk/agent/command-recovery.d.ts +2 -0
- package/dist/sdk/agent/command-recovery.js +10 -2
- package/dist/sdk/annotations.js +4 -4
- package/dist/sdk/cli-bootstrap.d.ts +2 -0
- package/dist/sdk/cli-bootstrap.js +6 -2
- package/dist/sdk/cli-contracts/completeness.js +10 -3
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +9 -3
- package/dist/sdk/cli-contracts/registration-helpers.d.ts +20 -3
- package/dist/sdk/cli-contracts/registration-helpers.js +18 -12
- package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +40 -6
- package/dist/sdk/cli-contracts/schemas/assurance-definition.js +27 -3
- package/dist/sdk/cli-contracts/tool-option-contracts.js +3 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +55 -5
- package/dist/sdk/cli-contracts/tool-schema.d.ts +2 -2
- package/dist/sdk/cli-contracts/tool-schema.js +22 -4
- package/dist/sdk/cli-program.js +3 -2
- package/dist/sdk/comments.js +4 -3
- package/dist/sdk/compile-cache.js +4 -3
- package/dist/sdk/completion.js +16 -7
- package/dist/sdk/compose.d.ts +3 -1
- package/dist/sdk/compose.js +16 -2
- package/dist/sdk/context-intent-contracts.js +45 -4
- package/dist/sdk/context-signal-store.js +4 -3
- package/dist/sdk/core.d.ts +1 -0
- package/dist/sdk/core.js +3 -2
- package/dist/sdk/extension/install-runtime.js +4 -4
- package/dist/sdk/extension/managed-state.js +4 -3
- package/dist/sdk/extension-contracts.d.ts +1 -1
- package/dist/sdk/flag-invocation-contracts.js +5 -6
- package/dist/sdk/generated/generated-error-code-catalog-part-1.d.ts +8 -0
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1597 -0
- package/dist/sdk/generated/generated-error-code-catalog-part-2.d.ts +8 -0
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1608 -0
- package/dist/sdk/generated-error-code-catalog.js +6 -3140
- package/dist/sdk/governance/assurance-action.d.ts +27 -3
- package/dist/sdk/governance/assurance-action.js +117 -31
- package/dist/sdk/governance/assurance-mutation-error.d.ts +14 -0
- package/dist/sdk/governance/assurance-mutation-error.js +58 -0
- package/dist/sdk/governance/assurance-presets.d.ts +54 -0
- package/dist/sdk/governance/assurance-presets.js +136 -0
- package/dist/sdk/governance/assurance-runtime.d.ts +4 -0
- package/dist/sdk/governance/assurance-runtime.js +118 -14
- package/dist/sdk/governance/assurance.d.ts +51 -6
- package/dist/sdk/governance/assurance.js +321 -67
- package/dist/sdk/governance/gc.js +5 -11
- package/dist/sdk/governance/health.d.ts +3 -1
- package/dist/sdk/governance/health.js +24 -7
- package/dist/sdk/governance/validate-item-reader.js +3 -3
- package/dist/sdk/governance/validate.d.ts +2 -0
- package/dist/sdk/governance/validate.js +15 -5
- package/dist/sdk/graph/durable-cache.d.ts +1 -1
- package/dist/sdk/graph/durable-cache.js +156 -29
- package/dist/sdk/graph/governance-contracts.d.ts +12 -0
- package/dist/sdk/graph/governance-contracts.js +27 -0
- package/dist/sdk/graph/governance.d.ts +44 -2
- package/dist/sdk/graph/governance.js +156 -12
- package/dist/sdk/guide.js +4 -4
- package/dist/sdk/index.d.ts +3 -2
- package/dist/sdk/index.js +5 -4
- package/dist/sdk/lifecycle/claim.js +10 -3
- package/dist/sdk/linked-artifacts.d.ts +2 -0
- package/dist/sdk/linked-artifacts.js +29 -4
- package/dist/sdk/merge/driver.d.ts +2 -2
- package/dist/sdk/merge/driver.js +3 -3
- package/dist/sdk/merge/install.js +5 -4
- package/dist/sdk/merge/receipts.d.ts +6 -4
- package/dist/sdk/merge/receipts.js +7 -5
- package/dist/sdk/merge/three-way.d.ts +2 -2
- package/dist/sdk/merge/three-way.js +3 -3
- package/dist/sdk/output-projection.d.ts +9 -1
- package/dist/sdk/output-projection.js +45 -9
- package/dist/sdk/query/activity.d.ts +49 -2
- package/dist/sdk/query/activity.js +185 -38
- package/dist/sdk/query/get.js +19 -2
- package/dist/sdk/read-output-contracts.d.ts +5 -1
- package/dist/sdk/read-output-contracts.js +17 -2
- package/dist/sdk/read-output-session.d.ts +2 -0
- package/dist/sdk/read-output-session.js +12 -5
- package/dist/sdk/relationship-history.js +5 -5
- package/dist/sdk/runtime-primitives.d.ts +3 -3
- package/dist/sdk/runtime-primitives.js +5 -5
- package/dist/sdk/runtime-stats-options.js +3 -2
- package/dist/sdk/runtime.js +5 -9
- package/dist/sdk/schema-migration.js +4 -4
- package/dist/sdk/stats.d.ts +36 -3
- package/dist/sdk/stats.js +55 -15
- package/dist/sdk/test/execution.d.ts +4 -0
- package/dist/sdk/test/execution.js +88 -23
- package/dist/sdk/workspace-memory.js +4 -4
- package/dist/sdk/workspace-snapshot.js +8 -14
- package/dist/sdk/workspace-transaction-gc.js +4 -9
- package/dist/sdk/workspace-transaction.js +4 -4
- package/dist/sdk/workspace.js +4 -3
- package/dist/types.d.ts +2 -0
- package/dist/types.js +2 -2
- package/docs/ASSURANCE.md +170 -14
- package/docs/COMMANDS.md +29 -8
- package/docs/CONFIGURATION.md +9 -0
- package/docs/DEPENDENCY_KIND_CONTRACT.md +10 -8
- package/docs/EXTENSIONS.md +11 -12
- package/docs/MERGE_SAFETY.md +3 -1
- package/docs/OUTPUT_PROJECTION_CONTRACTS.md +26 -13
- package/docs/README.md +2 -0
- package/docs/READ_OUTPUT_CONTRACTS.md +17 -2
- package/docs/RELATIONSHIP_GRAPH.md +15 -0
- package/docs/SDK.md +17 -3
- package/docs/SDK_AGENT_SESSION_CONTEXT.md +12 -1
- package/docs/SDK_CONTEXT_EVIDENCE_CONTRACTS.md +53 -0
- package/docs/SDK_CONTEXT_INTEGRITY.md +28 -1
- package/docs/TESTING.md +24 -15
- package/docs/TRUSTWORTHY_CONTEXT_EVIDENCE.md +106 -0
- package/docs/performance/sdk-entrypoint-import-costs.md +6 -2
- package/marketplace.json +2 -2
- package/package.json +6 -6
- 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-codex/.codex-plugin/plugin.json +1 -1
- package/sdk/public-surface.json +384 -83
- package/dist/cli-bundle/chunks/chunk-2OOU2AFH.js +0 -8
- package/dist/cli-bundle/chunks/chunk-2RA2YTHJ.js +0 -33
- package/dist/cli-bundle/chunks/chunk-DSKYD4LG.js +0 -13
- package/dist/cli-bundle/chunks/chunk-HC3GM6YY.js +0 -194
- package/dist/cli-bundle/chunks/chunk-IUNRVDAI.js +0 -2
- package/dist/cli-bundle/chunks/chunk-W7CPZGSB.js +0 -2
- package/dist/cli-bundle/chunks/chunk-ZXOC6HG5.js +0 -5
- package/dist/cli-bundle/chunks/register-list-query-HAUXVUPY.js +0 -10
- package/dist/cli-bundle/chunks/register-mutation-7Y5U7ABT.js +0 -20
- package/dist/cli-bundle/chunks/register-operations-EQX3DLAZ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-3AYKXMYX.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-4AHEC74N.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-4SV3ZKG3.js +0 -16
- package/dist/cli-bundle/focused-chunks/chunk-6JW6Z2P5.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-D4PIWE6D.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-DPO7TEFX.js +0 -31
- package/dist/cli-bundle/focused-chunks/chunk-E3KCL7AY.js +0 -5
- package/dist/cli-bundle/focused-chunks/chunk-ERAAFLPS.js +0 -153
- package/dist/cli-bundle/focused-chunks/chunk-F6E4JZKG.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-FPSYO5ZG.js +0 -18
- package/dist/cli-bundle/focused-chunks/chunk-KDH5OX3D.js +0 -4
- package/dist/cli-bundle/focused-chunks/chunk-OJ3LVVIS.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-VABB4L5Y.js +0 -17
|
@@ -73,6 +73,9 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
73
73
|
equals: {
|
|
74
74
|
type: string[];
|
|
75
75
|
};
|
|
76
|
+
state: {
|
|
77
|
+
enum: string[];
|
|
78
|
+
};
|
|
76
79
|
dependency_kind?: undefined;
|
|
77
80
|
operation?: undefined;
|
|
78
81
|
parameters?: undefined;
|
|
@@ -81,7 +84,6 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
81
84
|
harness?: undefined;
|
|
82
85
|
model?: undefined;
|
|
83
86
|
link?: undefined;
|
|
84
|
-
state?: undefined;
|
|
85
87
|
provider?: undefined;
|
|
86
88
|
key?: undefined;
|
|
87
89
|
expression?: undefined;
|
|
@@ -103,6 +105,7 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
103
105
|
tags?: undefined;
|
|
104
106
|
field?: undefined;
|
|
105
107
|
equals?: undefined;
|
|
108
|
+
state?: undefined;
|
|
106
109
|
operation?: undefined;
|
|
107
110
|
parameters?: undefined;
|
|
108
111
|
op?: undefined;
|
|
@@ -110,7 +113,6 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
110
113
|
harness?: undefined;
|
|
111
114
|
model?: undefined;
|
|
112
115
|
link?: undefined;
|
|
113
|
-
state?: undefined;
|
|
114
116
|
provider?: undefined;
|
|
115
117
|
key?: undefined;
|
|
116
118
|
expression?: undefined;
|
|
@@ -138,13 +140,13 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
138
140
|
types?: undefined;
|
|
139
141
|
tags?: undefined;
|
|
140
142
|
equals?: undefined;
|
|
143
|
+
state?: undefined;
|
|
141
144
|
dependency_kind?: undefined;
|
|
142
145
|
op?: undefined;
|
|
143
146
|
author?: undefined;
|
|
144
147
|
harness?: undefined;
|
|
145
148
|
model?: undefined;
|
|
146
149
|
link?: undefined;
|
|
147
|
-
state?: undefined;
|
|
148
150
|
provider?: undefined;
|
|
149
151
|
key?: undefined;
|
|
150
152
|
expression?: undefined;
|
|
@@ -176,11 +178,11 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
176
178
|
tags?: undefined;
|
|
177
179
|
field?: undefined;
|
|
178
180
|
equals?: undefined;
|
|
181
|
+
state?: undefined;
|
|
179
182
|
dependency_kind?: undefined;
|
|
180
183
|
operation?: undefined;
|
|
181
184
|
parameters?: undefined;
|
|
182
185
|
link?: undefined;
|
|
183
|
-
state?: undefined;
|
|
184
186
|
provider?: undefined;
|
|
185
187
|
key?: undefined;
|
|
186
188
|
expression?: undefined;
|
|
@@ -241,6 +243,7 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
241
243
|
tags?: undefined;
|
|
242
244
|
field?: undefined;
|
|
243
245
|
equals?: undefined;
|
|
246
|
+
state?: undefined;
|
|
244
247
|
dependency_kind?: undefined;
|
|
245
248
|
operation?: undefined;
|
|
246
249
|
op?: undefined;
|
|
@@ -248,7 +251,6 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
248
251
|
harness?: undefined;
|
|
249
252
|
model?: undefined;
|
|
250
253
|
link?: undefined;
|
|
251
|
-
state?: undefined;
|
|
252
254
|
expression?: undefined;
|
|
253
255
|
};
|
|
254
256
|
allOf?: undefined;
|
|
@@ -269,6 +271,7 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
269
271
|
tags?: undefined;
|
|
270
272
|
field?: undefined;
|
|
271
273
|
equals?: undefined;
|
|
274
|
+
state?: undefined;
|
|
272
275
|
dependency_kind?: undefined;
|
|
273
276
|
operation?: undefined;
|
|
274
277
|
parameters?: undefined;
|
|
@@ -277,7 +280,6 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
277
280
|
harness?: undefined;
|
|
278
281
|
model?: undefined;
|
|
279
282
|
link?: undefined;
|
|
280
|
-
state?: undefined;
|
|
281
283
|
provider?: undefined;
|
|
282
284
|
key?: undefined;
|
|
283
285
|
};
|
|
@@ -301,6 +303,7 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
301
303
|
negative_control?: undefined;
|
|
302
304
|
assertion_ids?: undefined;
|
|
303
305
|
triggers?: undefined;
|
|
306
|
+
provider_policy?: undefined;
|
|
304
307
|
};
|
|
305
308
|
oneOf?: undefined;
|
|
306
309
|
allOf?: undefined;
|
|
@@ -461,6 +464,7 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
461
464
|
source?: undefined;
|
|
462
465
|
assertion_ids?: undefined;
|
|
463
466
|
triggers?: undefined;
|
|
467
|
+
provider_policy?: undefined;
|
|
464
468
|
};
|
|
465
469
|
} | {
|
|
466
470
|
type: string;
|
|
@@ -489,6 +493,36 @@ export declare const ASSURANCE_DEFINITION_SCHEMA: {
|
|
|
489
493
|
enum: string[];
|
|
490
494
|
};
|
|
491
495
|
};
|
|
496
|
+
provider_policy: {
|
|
497
|
+
type: string;
|
|
498
|
+
additionalProperties: boolean;
|
|
499
|
+
required: string[];
|
|
500
|
+
properties: {
|
|
501
|
+
allowed_providers: {
|
|
502
|
+
type: string;
|
|
503
|
+
items: {
|
|
504
|
+
type: string;
|
|
505
|
+
minLength: number;
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
triggers: {
|
|
509
|
+
type: string;
|
|
510
|
+
additionalProperties: {
|
|
511
|
+
type: string;
|
|
512
|
+
additionalProperties: boolean;
|
|
513
|
+
required: string[];
|
|
514
|
+
properties: {
|
|
515
|
+
max_cost_class: {
|
|
516
|
+
enum: string[];
|
|
517
|
+
};
|
|
518
|
+
allow_network: {
|
|
519
|
+
type: string;
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
492
526
|
max_cost?: undefined;
|
|
493
527
|
source?: undefined;
|
|
494
528
|
measurement_id?: undefined;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Defines the strict JSON Schema accepted by assurance definition mutations.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
7
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="19a97f60-3b6e-5653-a652-02aebaf5afdd")}catch(e){}}();
|
|
8
8
|
const ASSURANCE_VALUE_SCHEMA = {
|
|
9
9
|
oneOf: [{ type: "number" }, { type: "array", items: { type: "string" } }],
|
|
10
10
|
};
|
|
@@ -14,7 +14,7 @@ const ITEMS_FIELD_CONDITIONAL_SCHEMA = {
|
|
|
14
14
|
// Keep the JSON Schema keyword visible while avoiding unicorn/no-thenable,
|
|
15
15
|
// which intentionally rejects object literals with a `then` property.
|
|
16
16
|
Reflect.set(ITEMS_FIELD_CONDITIONAL_SCHEMA, "then", {
|
|
17
|
-
required: ["equals"],
|
|
17
|
+
oneOf: [{ required: ["equals"] }, { required: ["state"] }],
|
|
18
18
|
});
|
|
19
19
|
/** JSON Schema for measurement, assertion, and gate assurance definitions. */
|
|
20
20
|
export const ASSURANCE_DEFINITION_SCHEMA = {
|
|
@@ -41,6 +41,7 @@ export const ASSURANCE_DEFINITION_SCHEMA = {
|
|
|
41
41
|
tags: { type: "array", items: { type: "string" } },
|
|
42
42
|
field: { type: "string" },
|
|
43
43
|
equals: { type: ["string", "number", "boolean", "null"] },
|
|
44
|
+
state: { enum: ["present", "missing"] },
|
|
44
45
|
},
|
|
45
46
|
},
|
|
46
47
|
{
|
|
@@ -243,9 +244,32 @@ export const ASSURANCE_DEFINITION_SCHEMA = {
|
|
|
243
244
|
],
|
|
244
245
|
},
|
|
245
246
|
},
|
|
247
|
+
provider_policy: {
|
|
248
|
+
type: "object",
|
|
249
|
+
additionalProperties: false,
|
|
250
|
+
required: ["allowed_providers", "triggers"],
|
|
251
|
+
properties: {
|
|
252
|
+
allowed_providers: {
|
|
253
|
+
type: "array",
|
|
254
|
+
items: { type: "string", minLength: 1 },
|
|
255
|
+
},
|
|
256
|
+
triggers: {
|
|
257
|
+
type: "object",
|
|
258
|
+
additionalProperties: {
|
|
259
|
+
type: "object",
|
|
260
|
+
additionalProperties: false,
|
|
261
|
+
required: ["max_cost_class", "allow_network"],
|
|
262
|
+
properties: {
|
|
263
|
+
max_cost_class: { enum: ["low", "medium", "high"] },
|
|
264
|
+
allow_network: { type: "boolean" },
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
},
|
|
246
270
|
},
|
|
247
271
|
},
|
|
248
272
|
],
|
|
249
273
|
};
|
|
250
274
|
//# sourceMappingURL=assurance-definition.js.map
|
|
251
|
-
//# debugId=
|
|
275
|
+
//# debugId=19a97f60-3b6e-5653-a652-02aebaf5afdd
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Returns fresh option contract objects so exported arrays cannot share mutable entries. */
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e2028eff-b29e-5850-87b1-4a3e06f28964")}catch(e){}}();
|
|
4
4
|
function cloneOptionContracts(contracts) {
|
|
5
5
|
return contracts.map((contract) => ({ ...contract }));
|
|
6
6
|
}
|
|
@@ -351,6 +351,7 @@ export const TOOL_ACTIVITY_OPTION_CONTRACTS = [
|
|
|
351
351
|
{ param: "limit", flag: "--limit" },
|
|
352
352
|
{ param: "unbounded", flag: "--unbounded" },
|
|
353
353
|
{ param: "compact", flag: "--compact" },
|
|
354
|
+
{ param: "raw", flag: "--raw" },
|
|
354
355
|
{ param: "full", flag: "--full" },
|
|
355
356
|
{ param: "provenance", flag: "--provenance" },
|
|
356
357
|
{ param: "provenanceSummary", flag: "--provenance-summary" },
|
|
@@ -423,4 +424,4 @@ export const TOOL_GRAPH_OPTION_CONTRACTS = [
|
|
|
423
424
|
{ param: "summary", flag: "--summary" },
|
|
424
425
|
];
|
|
425
426
|
//# sourceMappingURL=tool-option-contracts.js.map
|
|
426
|
-
//# debugId=
|
|
427
|
+
//# debugId=e2028eff-b29e-5850-87b1-4a3e06f28964
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Defines SDK command-contract metadata for Tool Parameter Tables.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
7
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9a679120-6f16-5588-b4d4-91c90a2fe385")}catch(e){}}();
|
|
8
8
|
import { PLAN_HARNESS_VALUES, PLAN_MODE_VALUES, PLAN_STEP_LINK_KIND_VALUES, PLAN_STEP_STATUS_VALUES, } from "../../types/index.js";
|
|
9
9
|
import { PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS } from "../read-output-session.js";
|
|
10
10
|
import { ASSURANCE_DEFINITION_SCHEMA } from "./schemas/assurance-definition.js";
|
|
@@ -55,6 +55,7 @@ export const PM_TOOL_PARAMETER_PROPERTIES = {
|
|
|
55
55
|
},
|
|
56
56
|
],
|
|
57
57
|
},
|
|
58
|
+
outputRowContract: { type: "boolean" },
|
|
58
59
|
path: { type: "string" },
|
|
59
60
|
pmExecutable: { type: "string" },
|
|
60
61
|
timeoutMs: { type: "number" },
|
|
@@ -218,6 +219,8 @@ export const PM_TOOL_PARAMETER_PROPERTIES = {
|
|
|
218
219
|
acceptanceCriteria: { type: "string" },
|
|
219
220
|
author: { type: "string" },
|
|
220
221
|
message: { type: "string" },
|
|
222
|
+
owner: { type: "string" },
|
|
223
|
+
enforcement: { type: "string" },
|
|
221
224
|
assignee: { type: "string" },
|
|
222
225
|
assigneeFilter: { type: "string", enum: ["assigned", "unassigned"] },
|
|
223
226
|
parent: { type: "string" },
|
|
@@ -260,8 +263,10 @@ export const PM_TOOL_PARAMETER_PROPERTIES = {
|
|
|
260
263
|
semanticWeight: { anyOf: [{ type: "string" }, { type: "number" }] },
|
|
261
264
|
op: { type: "string" },
|
|
262
265
|
compact: { type: "boolean" },
|
|
266
|
+
raw: { type: "boolean" },
|
|
263
267
|
brief: { type: "boolean" },
|
|
264
268
|
full: { type: "boolean" },
|
|
269
|
+
includeEmpty: { type: "boolean" },
|
|
265
270
|
view: { type: "string", enum: ["agenda", "day", "week", "month"] },
|
|
266
271
|
date: { type: "string" },
|
|
267
272
|
from: { type: "string" },
|
|
@@ -370,6 +375,10 @@ export const PM_TOOL_PARAMETER_PROPERTIES = {
|
|
|
370
375
|
verboseAuthorEvents: { type: "boolean" },
|
|
371
376
|
match: { type: "string" },
|
|
372
377
|
onlyIndex: { anyOf: [{ type: "string" }, { type: "number" }] },
|
|
378
|
+
removeIndex: {
|
|
379
|
+
type: "array",
|
|
380
|
+
items: { anyOf: [{ type: "string" }, { type: "number" }] },
|
|
381
|
+
},
|
|
373
382
|
onlyLast: { type: "boolean" },
|
|
374
383
|
envSet: { type: "array", items: { type: "string" } },
|
|
375
384
|
envClear: { type: "array", items: { type: "string" } },
|
|
@@ -639,8 +648,24 @@ export const PM_TOOL_ACTION_SCOPED_PARAMETER_PROPERTIES = {
|
|
|
639
648
|
},
|
|
640
649
|
subcommand: {
|
|
641
650
|
type: "string",
|
|
642
|
-
enum: [
|
|
651
|
+
enum: [
|
|
652
|
+
"list",
|
|
653
|
+
"show",
|
|
654
|
+
"put",
|
|
655
|
+
"remove",
|
|
656
|
+
"run",
|
|
657
|
+
"verdicts",
|
|
658
|
+
"presets",
|
|
659
|
+
"apply",
|
|
660
|
+
"derive",
|
|
661
|
+
"promote",
|
|
662
|
+
],
|
|
643
663
|
},
|
|
664
|
+
preset: {
|
|
665
|
+
type: "string",
|
|
666
|
+
enum: ["software-delivery", "research", "agent-evaluation", "operations"],
|
|
667
|
+
},
|
|
668
|
+
enforcement: { type: "string", enum: ["warn", "block"] },
|
|
644
669
|
limit: { type: "integer", minimum: 1, maximum: 1000 },
|
|
645
670
|
},
|
|
646
671
|
activity: {
|
|
@@ -934,6 +959,9 @@ export const PM_TOOL_PARAMETER_METADATA = {
|
|
|
934
959
|
},
|
|
935
960
|
],
|
|
936
961
|
},
|
|
962
|
+
outputRowContract: {
|
|
963
|
+
description: "Include the row selector and TOON row-encoding contract on a read result.",
|
|
964
|
+
},
|
|
937
965
|
profile: {
|
|
938
966
|
description: "Emit deterministic timing diagnostics to stderr.",
|
|
939
967
|
},
|
|
@@ -960,6 +988,14 @@ export const PM_TOOL_PARAMETER_METADATA = {
|
|
|
960
988
|
description: "Stable assurance gate id used to filter durable verdict history.",
|
|
961
989
|
examples: ["release-readiness"],
|
|
962
990
|
},
|
|
991
|
+
owner: {
|
|
992
|
+
description: "pm item that owns preset or observation-derived assurance assertions.",
|
|
993
|
+
examples: ["pm-a1b2"],
|
|
994
|
+
},
|
|
995
|
+
enforcement: {
|
|
996
|
+
description: "Explicit next assurance enforcement level.",
|
|
997
|
+
examples: ["warn", "block"],
|
|
998
|
+
},
|
|
963
999
|
runId: {
|
|
964
1000
|
description: "Background test run identifier.",
|
|
965
1001
|
examples: ["tr-kq9x3f-93acde"],
|
|
@@ -1299,6 +1335,10 @@ export const PM_TOOL_PARAMETER_METADATA = {
|
|
|
1299
1335
|
description: "Run only the 1-based linked-test index from pm test <id> --list order.",
|
|
1300
1336
|
examples: [1, "2"],
|
|
1301
1337
|
},
|
|
1338
|
+
removeIndex: {
|
|
1339
|
+
description: "Remove linked tests by their 1-based positions from pm test <id> --list order; repeatable and lossless for commands containing commas or equals signs.",
|
|
1340
|
+
examples: [[1], ["2", "4"]],
|
|
1341
|
+
},
|
|
1302
1342
|
onlyLast: {
|
|
1303
1343
|
description: "Run only the most recently added linked-test entry.",
|
|
1304
1344
|
},
|
|
@@ -1656,6 +1696,9 @@ export const PM_TOOL_PARAMETER_METADATA = {
|
|
|
1656
1696
|
compact: {
|
|
1657
1697
|
description: "Render compact projection output for search and list-family actions.",
|
|
1658
1698
|
},
|
|
1699
|
+
raw: {
|
|
1700
|
+
description: "For activity, restore the compact per-event stream instead of the default item digest.",
|
|
1701
|
+
},
|
|
1659
1702
|
brief: {
|
|
1660
1703
|
description: "Emit compact low-token output for commands that support terse projections or health details.",
|
|
1661
1704
|
examples: [true],
|
|
@@ -1663,6 +1706,9 @@ export const PM_TOOL_PARAMETER_METADATA = {
|
|
|
1663
1706
|
full: {
|
|
1664
1707
|
description: "Enable command-specific full/detail output mode when supported, such as deep item reads for get or full payload mode for search/history.",
|
|
1665
1708
|
},
|
|
1709
|
+
includeEmpty: {
|
|
1710
|
+
description: "For stats, restore zero-count registered type and lifecycle-status buckets.",
|
|
1711
|
+
},
|
|
1666
1712
|
fields: {
|
|
1667
1713
|
description: "Comma-separated projection fields for get, search, list-family, or context outputs. Valid field names are command-specific (e.g. score/matched_fields apply to search; context projects focus-row fields such as priority/deadline/completion_pct).",
|
|
1668
1714
|
examples: [
|
|
@@ -1830,8 +1876,8 @@ export const PM_TOOL_PARAMETER_METADATA = {
|
|
|
1830
1876
|
export const PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA = {
|
|
1831
1877
|
assurance: {
|
|
1832
1878
|
subcommand: {
|
|
1833
|
-
description: "Assurance operation: list, show, put, remove, run, or
|
|
1834
|
-
examples: ["list", "run", "
|
|
1879
|
+
description: "Assurance operation: list, show, put, remove, run, verdicts, presets, apply, derive, or promote.",
|
|
1880
|
+
examples: ["list", "run", "derive", "promote"],
|
|
1835
1881
|
},
|
|
1836
1882
|
kind: {
|
|
1837
1883
|
description: "Assurance declaration kind for registry operations: measurement, assertion, or gate.",
|
|
@@ -1845,6 +1891,10 @@ export const PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA = {
|
|
|
1845
1891
|
description: "Maximum number of newest assurance verdicts returned.",
|
|
1846
1892
|
examples: [10, 25],
|
|
1847
1893
|
},
|
|
1894
|
+
preset: {
|
|
1895
|
+
description: "Built-in assurance project shape to preview or apply.",
|
|
1896
|
+
examples: ["software-delivery", "agent-evaluation"],
|
|
1897
|
+
},
|
|
1848
1898
|
},
|
|
1849
1899
|
update: {
|
|
1850
1900
|
acceptanceCriteria: {
|
|
@@ -1999,4 +2049,4 @@ export const PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA = {
|
|
|
1999
2049
|
},
|
|
2000
2050
|
};
|
|
2001
2051
|
//# sourceMappingURL=tool-parameter-tables.js.map
|
|
2002
|
-
//# debugId=
|
|
2052
|
+
//# debugId=9a679120-6f16-5588-b4d4-91c90a2fe385
|
|
@@ -90,8 +90,8 @@ export interface PmActionToolInputSchemaOptions {
|
|
|
90
90
|
* `PM_TOOL_PARAMETERS_SCHEMA`, eliminating a hand-maintained MCP schema table.
|
|
91
91
|
*/
|
|
92
92
|
export declare function buildPmActionToolInputSchema(action: PmToolAction, options?: PmActionToolInputSchemaOptions): Record<string, unknown>;
|
|
93
|
-
/** Canonical version of the action-scoped strict MCP tool-parameters schema (`PM_TOOL_PARAMETERS_SCHEMA`). Exported as the single source of truth so the MCP server, the `pm contracts` command, SDK consumers, and
|
|
94
|
-
export declare const PM_TOOL_PARAMETERS_SCHEMA_VERSION: "4.
|
|
93
|
+
/** Canonical version of the action-scoped strict MCP tool-parameters schema (`PM_TOOL_PARAMETERS_SCHEMA`). Exported as the single source of truth so the MCP server, the `pm contracts` command, SDK consumers, and contract tests bind to one version constant. Bump the patch/minor for additive, backward-compatible schema changes; bump the MAJOR for breaking changes — the major also drives the `$id` `tool-parameters-v{major}` slug, so the two never drift. */
|
|
94
|
+
export declare const PM_TOOL_PARAMETERS_SCHEMA_VERSION: "4.7.0";
|
|
95
95
|
/**
|
|
96
96
|
* Major component of {@link PM_TOOL_PARAMETERS_SCHEMA_VERSION}, used to build the
|
|
97
97
|
* schema `$id` slug so a breaking version bump renames the document in lockstep.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* consumers from a single source of truth.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
10
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d4550d60-3907-528e-b984-c8ca90b7a4e8")}catch(e){}}();
|
|
11
11
|
import { normalizeUniqueStringList } from "./string-lists.js";
|
|
12
12
|
import { PM_TOOL_ACTIONS } from "./enum-contracts.js";
|
|
13
13
|
import { TOOL_CREATE_OPTION_CONTRACTS, TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS, TOOL_UPDATE_OPTION_CONTRACTS, TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS, TOOL_CONTEXT_OPTION_CONTRACTS, TOOL_ACTIVITY_OPTION_CONTRACTS, TOOL_LIST_FILTER_OPTION_CONTRACTS, TOOL_AGGREGATE_OPTION_CONTRACTS, TOOL_SEARCH_FILTER_OPTION_CONTRACTS, TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS, } from "./tool-option-contracts.js";
|
|
@@ -31,6 +31,7 @@ const PM_TOOL_READ_OUTPUT_PARAMETER_KEYS = [
|
|
|
31
31
|
"outputBudget",
|
|
32
32
|
"outputFormat",
|
|
33
33
|
"outputSession",
|
|
34
|
+
"outputRowContract",
|
|
34
35
|
];
|
|
35
36
|
/** Canonical top-level MCP properties that take precedence over runtime custom fields. */
|
|
36
37
|
export const PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES = new Set([
|
|
@@ -959,6 +960,7 @@ const PM_TOOL_ACTION_SCHEMA_CONTRACTS = {
|
|
|
959
960
|
"add",
|
|
960
961
|
"addJson",
|
|
961
962
|
"remove",
|
|
963
|
+
"removeIndex",
|
|
962
964
|
"run",
|
|
963
965
|
"match",
|
|
964
966
|
"onlyIndex",
|
|
@@ -1027,6 +1029,7 @@ const PM_TOOL_ACTION_SCHEMA_CONTRACTS = {
|
|
|
1027
1029
|
},
|
|
1028
1030
|
stats: {
|
|
1029
1031
|
optional: [
|
|
1032
|
+
"includeEmpty",
|
|
1030
1033
|
"storage",
|
|
1031
1034
|
"metadataCoverage",
|
|
1032
1035
|
"fieldUtilization",
|
|
@@ -1116,6 +1119,10 @@ const PM_TOOL_ACTION_SCHEMA_CONTRACTS = {
|
|
|
1116
1119
|
"dryRun",
|
|
1117
1120
|
"author",
|
|
1118
1121
|
"message",
|
|
1122
|
+
"preset",
|
|
1123
|
+
"owner",
|
|
1124
|
+
"apply",
|
|
1125
|
+
"enforcement",
|
|
1119
1126
|
],
|
|
1120
1127
|
conditionalRequired: [
|
|
1121
1128
|
{ property: "subcommand", value: "list", required: ["kind"] },
|
|
@@ -1127,6 +1134,17 @@ const PM_TOOL_ACTION_SCHEMA_CONTRACTS = {
|
|
|
1127
1134
|
},
|
|
1128
1135
|
{ property: "subcommand", value: "remove", required: ["kind", "id"] },
|
|
1129
1136
|
{ property: "subcommand", value: "run", required: ["id", "trigger"] },
|
|
1137
|
+
{
|
|
1138
|
+
property: "subcommand",
|
|
1139
|
+
value: "apply",
|
|
1140
|
+
required: ["preset", "owner"],
|
|
1141
|
+
},
|
|
1142
|
+
{ property: "subcommand", value: "derive", required: ["owner"] },
|
|
1143
|
+
{
|
|
1144
|
+
property: "subcommand",
|
|
1145
|
+
value: "promote",
|
|
1146
|
+
required: ["id", "enforcement"],
|
|
1147
|
+
},
|
|
1130
1148
|
],
|
|
1131
1149
|
},
|
|
1132
1150
|
gc: { optional: ["dryRun", "gcScope"] },
|
|
@@ -1472,8 +1490,8 @@ function createLazyContractSchema(build) {
|
|
|
1472
1490
|
},
|
|
1473
1491
|
});
|
|
1474
1492
|
}
|
|
1475
|
-
/** Canonical version of the action-scoped strict MCP tool-parameters schema (`PM_TOOL_PARAMETERS_SCHEMA`). Exported as the single source of truth so the MCP server, the `pm contracts` command, SDK consumers, and
|
|
1476
|
-
export const PM_TOOL_PARAMETERS_SCHEMA_VERSION = "4.
|
|
1493
|
+
/** Canonical version of the action-scoped strict MCP tool-parameters schema (`PM_TOOL_PARAMETERS_SCHEMA`). Exported as the single source of truth so the MCP server, the `pm contracts` command, SDK consumers, and contract tests bind to one version constant. Bump the patch/minor for additive, backward-compatible schema changes; bump the MAJOR for breaking changes — the major also drives the `$id` `tool-parameters-v{major}` slug, so the two never drift. */
|
|
1494
|
+
export const PM_TOOL_PARAMETERS_SCHEMA_VERSION = "4.7.0";
|
|
1477
1495
|
/**
|
|
1478
1496
|
* Major component of {@link PM_TOOL_PARAMETERS_SCHEMA_VERSION}, used to build the
|
|
1479
1497
|
* schema `$id` slug so a breaking version bump renames the document in lockstep.
|
|
@@ -1555,4 +1573,4 @@ export const _testOnlyCliContracts = {
|
|
|
1555
1573
|
withFlagAliasMetadata,
|
|
1556
1574
|
};
|
|
1557
1575
|
//# sourceMappingURL=tool-schema.js.map
|
|
1558
|
-
//# debugId=
|
|
1576
|
+
//# debugId=d4550d60-3907-528e-b984-c8ca90b7a4e8
|
package/dist/sdk/cli-program.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Builds the reusable Commander root that embeds pm's universal global contracts.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
7
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b799c7c2-21b8-5c19-8565-7166e6f06a90")}catch(e){}}();
|
|
8
8
|
import { Command } from "commander";
|
|
9
9
|
import { writeStdout } from "../core/output/output.js";
|
|
10
10
|
/** Create a fresh pm root program suitable for one-shot CLI or embedded hosts. */
|
|
@@ -30,6 +30,7 @@ export function createPmCliProgram(version) {
|
|
|
30
30
|
.option("--output-budget <tokens>", "Bound estimated tokens in read output")
|
|
31
31
|
.option("--output-format <toon|json>", "Select the read-output encoding")
|
|
32
32
|
.option("--output-session <state>", "Carry a JSON session budget and served-item ledger across read calls")
|
|
33
|
+
.option("--output-row-contract", "Include the machine-readable row selector and TOON encoding contract")
|
|
33
34
|
.option("--quiet", "Suppress stdout output")
|
|
34
35
|
.option("--no-changed-fields", "Omit the changed_fields array from mutation output (keeps changed_field_count)")
|
|
35
36
|
.option("--full-changed-fields", "Restore the legacy full mutation envelope and changed_fields array")
|
|
@@ -44,4 +45,4 @@ export function createPmCliProgram(version) {
|
|
|
44
45
|
.exitOverride();
|
|
45
46
|
}
|
|
46
47
|
//# sourceMappingURL=cli-program.js.map
|
|
47
|
-
//# debugId=
|
|
48
|
+
//# debugId=b799c7c2-21b8-5c19-8565-7166e6f06a90
|
package/dist/sdk/comments.js
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* Implements the pm comments command surface and its agent-facing runtime behavior.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
7
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a7687052-a04e-536e-ace5-a665ebd477e3")}catch(e){}}();
|
|
8
|
+
import { isFileAbsentError } from "../core/fs/fs-utils.js";
|
|
8
9
|
import { readFile } from "node:fs/promises";
|
|
9
10
|
import { EXIT_CODE, PmCliError, createStdinTokenResolver, } from "./runtime-primitives.js";
|
|
10
11
|
import { isErrnoError, parseAnnotationTextInput, runAnnotationCommand, } from "./annotations.js";
|
|
@@ -36,7 +37,7 @@ async function resolveCommentTextSource(options, stdinResolver) {
|
|
|
36
37
|
return { value: fileInput, emptyFlag: "--file" };
|
|
37
38
|
}
|
|
38
39
|
catch (error) {
|
|
39
|
-
if (isErrnoError(error) && error
|
|
40
|
+
if (isErrnoError(error) && isFileAbsentError(error)) {
|
|
40
41
|
throw new PmCliError(`--file path not found: ${filePath}`, EXIT_CODE.USAGE);
|
|
41
42
|
}
|
|
42
43
|
const detail = error instanceof Error ? error.message : String(error);
|
|
@@ -122,4 +123,4 @@ export async function runComments(id, options, global) {
|
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
125
|
//# sourceMappingURL=comments.js.map
|
|
125
|
-
//# debugId=
|
|
126
|
+
//# debugId=a7687052-a04e-536e-ace5-a665ebd477e3
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* compile-cache generations.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
8
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="611e9aba-d08e-5c1a-89c9-c7fda0cc9bc9")}catch(e){}}();
|
|
9
|
+
import { isFileMissingError } from "../core/fs/fs-utils.js";
|
|
9
10
|
import fs from "node:fs";
|
|
10
11
|
import path from "node:path";
|
|
11
12
|
const COMPILE_CACHE_CONCURRENT_GRACE_MS = 5 * 60 * 1000;
|
|
@@ -44,7 +45,7 @@ export function pruneCompileCacheGenerations(cacheRoot, currentGeneration) {
|
|
|
44
45
|
catch (error) {
|
|
45
46
|
if (error instanceof Error &&
|
|
46
47
|
"code" in error &&
|
|
47
|
-
error
|
|
48
|
+
isFileMissingError(error)) {
|
|
48
49
|
return [];
|
|
49
50
|
}
|
|
50
51
|
throw error;
|
|
@@ -70,4 +71,4 @@ export function pruneCompileCacheGenerations(cacheRoot, currentGeneration) {
|
|
|
70
71
|
return { retained: normalizedGeneration, removed };
|
|
71
72
|
}
|
|
72
73
|
//# sourceMappingURL=compile-cache.js.map
|
|
73
|
-
//# debugId=
|
|
74
|
+
//# debugId=611e9aba-d08e-5c1a-89c9-c7fda0cc9bc9
|