@unbrained/pm-cli 2026.11.9 → 2026.11.10
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 +16 -0
- package/dist/cli/error-guidance.js +4 -4
- package/dist/cli/main.js +1 -1
- package/dist/cli/public.d.ts +1 -1
- package/dist/cli/register-history-maintenance.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-G6Q4VQSI.js → chunk-4AASUCHO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-EZRLW4R6.js → chunk-4FLAKTZW.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-5CAMQHEW.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-3BMIAI4P.js → chunk-7NAAW5EX.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-BSJSGDA3.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-XKY4LUXN.js → chunk-CZETQYKO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ASJZMYKM.js → chunk-D727C4RO.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-6V4PGJBZ.js → chunk-EHDGHFMJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GZVOOHTO.js → chunk-F6FBGLR7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-O2M3TNFY.js → chunk-F7P2NZEG.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-YK5GAWOT.js → chunk-FYD6LSJA.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-L4WWG2H6.js +6 -0
- package/dist/cli-bundle/chunks/{chunk-YV5ALMG2.js → chunk-NNE63MSM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Z3QEEOAM.js → chunk-NZAFLDSH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MSJ7IHMJ.js → chunk-OJ2KEDUX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ELNWRSGZ.js → chunk-T2MNRM3S.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VATZTJE3.js → chunk-TBBWPEF5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GDQ2T2OR.js → chunk-U7LILCUN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-BLUCQ4T4.js → chunk-UFPLZ6LZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JK7O7MFO.js → chunk-UL64P6MR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GCPP37N6.js → chunk-WNEUWDUE.js} +46 -46
- package/dist/cli-bundle/chunks/{chunk-5VRJPPUC.js → chunk-X7NM5HVQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IGT252ES.js → chunk-YSWD2NXB.js} +2 -2
- package/dist/cli-bundle/chunks/{item-revision-Y5CE3EIN.js → item-revision-M7KXLQXF.js} +2 -2
- package/dist/cli-bundle/chunks/item-transaction-4N5P34GO.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-admission-TAQN2AKK.js → mutation-admission-374UR7NI.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-XMQYFUFI.js → register-list-query-GSB7PP5P.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-OBVCFLDK.js → register-mutation-ZBF6ITYK.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-CGNFZ6DR.js → register-operations-PWF6GOHE.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-LFB5ERXH.js → register-setup-QDZ2Y3CI.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-NQHF6JPC.js → stage-67WGPKPH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-HNFY3XLC.js → chunk-2Y4H4LIX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UIKLNSW3.js → chunk-3DWNH72D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-3K2MYE7R.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-CUGJ2DY2.js → chunk-56MIAFEN.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{chunk-Q45LDP7P.js → chunk-67M7E2Z3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-XLSTFUXM.js → chunk-BE2GK2G7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-C3DO4ZGZ.js → chunk-HTMQDNVC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QWUWNFQO.js → chunk-LY3JXL25.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IS5FLEZW.js → chunk-PAGW6A2X.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-4FWMXQN3.js → chunk-QCHCEFTO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-AH5IST3V.js → chunk-QHGGO7SY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-QK7FX4O5.js +44 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RNZUORGI.js → chunk-RFMKS7VD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-MYBKRV5R.js → chunk-U7HWWEJ2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-UIZVD36C.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-J7PWHKZK.js → chunk-WJHDUON5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-LDMBNTOG.js → chunk-WK773UVA.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-ZBOCYFBE.js +82 -0
- package/dist/cli-bundle/focused-chunks/{item-revision-M6FOLME2.js → item-revision-XC4ZJ7MY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{item-transaction-H6VA5JGB.js → item-transaction-CVGK4RJP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-PRTQWQK6.js → mutation-admission-N27D5H64.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-7T77PSJD.js → stage-KPK2UHVO.js} +2 -2
- package/dist/cli-bundle/main.js +26 -26
- 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 +1 -1
- 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 +51 -51
- 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 +1 -1
- package/dist/core/checkpoint/mutation-checkpoint.d.ts +12 -20
- package/dist/core/config/nested-settings.d.ts +14 -45
- package/dist/core/config/nested-settings.js +1 -1
- package/dist/core/config/positional-value.d.ts +11 -14
- package/dist/core/config/positional-value.js +1 -1
- package/dist/core/extensions/activation-summary-markdown.d.ts +4 -5
- package/dist/core/extensions/activation-summary.d.ts +7 -15
- package/dist/core/extensions/capability-usage.d.ts +7 -23
- package/dist/core/extensions/command-hook-context.d.ts +4 -7
- package/dist/core/extensions/command-metadata-contract.d.ts +2 -2
- package/dist/core/extensions/contribution-inventory.d.ts +3 -25
- package/dist/core/extensions/extension-capability-aliases.d.ts +7 -10
- package/dist/core/extensions/extension-hook-runtime.d.ts +2 -2
- package/dist/core/extensions/extension-policy.d.ts +12 -47
- package/dist/core/extensions/extension-registries.d.ts +2 -2
- package/dist/core/extensions/extension-types.d.ts +332 -545
- package/dist/core/extensions/flag-definition-validation.d.ts +11 -13
- package/dist/core/extensions/flag-value-types.d.ts +11 -13
- package/dist/core/extensions/index.d.ts +15 -20
- package/dist/core/extensions/item-field-types.d.ts +5 -5
- package/dist/core/extensions/item-fields.d.ts +4 -7
- package/dist/core/extensions/loader.d.ts +5 -69
- package/dist/core/extensions/manifest-parser.d.ts +3 -3
- package/dist/core/extensions/manifest-schema.d.ts +10 -13
- package/dist/core/extensions/registration-contracts.d.ts +2 -4
- package/dist/core/extensions/registration-validation.d.ts +1 -1
- package/dist/core/extensions/registration-values.d.ts +5 -7
- package/dist/core/extensions/runtime-registrations.d.ts +6 -6
- package/dist/core/extensions/version-compat.d.ts +9 -10
- package/dist/core/fs/fs-utils.d.ts +4 -6
- package/dist/core/fs/host-environment-errors.d.ts +8 -10
- package/dist/core/governance/content-fields.d.ts +10 -14
- package/dist/core/governance/issue-codes.d.ts +12 -18
- package/dist/core/governance/metadata-coverage.d.ts +24 -34
- package/dist/core/history/digest.d.ts +3 -3
- package/dist/core/history/event-classification.d.ts +5 -5
- package/dist/core/history/event-index.d.ts +14 -35
- package/dist/core/history/history-compact-bulk.d.ts +10 -13
- package/dist/core/history/history-diff.d.ts +6 -11
- package/dist/core/history/history-rewrite.d.ts +24 -40
- package/dist/core/history/history-storage-stats.d.ts +9 -17
- package/dist/core/history/history-stream-policy.d.ts +8 -11
- package/dist/core/history/history.d.ts +10 -44
- package/dist/core/history/identity.d.ts +4 -5
- package/dist/core/history/operation-contract.d.ts +5 -15
- package/dist/core/history/projection.d.ts +10 -14
- package/dist/core/history/read.d.ts +6 -7
- package/dist/core/history/replay.d.ts +16 -37
- package/dist/core/history/workspace-history.d.ts +27 -60
- package/dist/core/io/body-file.d.ts +2 -2
- package/dist/core/io/bulk-ids-input.d.ts +7 -8
- package/dist/core/item/actionability.d.ts +16 -22
- package/dist/core/item/dependency-reference.d.ts +2 -2
- package/dist/core/item/id.d.ts +5 -9
- package/dist/core/item/item-format-version.d.ts +11 -13
- package/dist/core/item/item-format.d.ts +11 -59
- package/dist/core/item/item-record.d.ts +2 -2
- package/dist/core/item/literal-mutation-input.d.ts +2 -2
- package/dist/core/item/parent-reference-policy.d.ts +4 -7
- package/dist/core/item/parse.d.ts +10 -26
- package/dist/core/item/plan-lifecycle.d.ts +3 -3
- package/dist/core/item/priority.d.ts +2 -2
- package/dist/core/item/sprint-release-format.d.ts +3 -7
- package/dist/core/item/status-filter.d.ts +5 -7
- package/dist/core/item/status.d.ts +3 -4
- package/dist/core/item/type-registry.d.ts +17 -24
- package/dist/core/item/type-synonyms.d.ts +1 -1
- package/dist/core/lock/lock-owner.d.ts +8 -10
- package/dist/core/lock/lock.d.ts +19 -67
- package/dist/core/output/output-control.d.ts +5 -6
- package/dist/core/output/output.d.ts +10 -19
- package/dist/core/output/tabular.d.ts +2 -2
- package/dist/core/packages/manifest.d.ts +13 -17
- package/dist/core/packages/root.d.ts +3 -3
- package/dist/core/policy/workflow-policy-schema.d.ts +2 -310
- package/dist/core/policy/workflow-policy-store.d.ts +5 -14
- package/dist/core/policy/workflow-policy.d.ts +25 -52
- package/dist/core/profile/profile-describe.d.ts +8 -11
- package/dist/core/profile/profile-lint.d.ts +11 -13
- package/dist/core/profile/profile-plan.d.ts +30 -49
- package/dist/core/profile/profile-presets.d.ts +25 -36
- package/dist/core/reproducibility/context.d.ts +6 -7
- package/dist/core/schema/fields-file.d.ts +14 -21
- package/dist/core/schema/item-types-file.d.ts +16 -22
- package/dist/core/schema/runtime-field-filters.d.ts +2 -2
- package/dist/core/schema/runtime-field-values.d.ts +6 -13
- package/dist/core/schema/runtime-schema.d.ts +19 -31
- package/dist/core/schema/status-defs-file.d.ts +15 -25
- package/dist/core/schema/status-token.d.ts +1 -1
- package/dist/core/schema/type-inference.d.ts +6 -8
- package/dist/core/schema/type-presets.d.ts +5 -5
- package/dist/core/schema/type-workflows.d.ts +11 -16
- package/dist/core/search/background-refresh.d.ts +6 -12
- package/dist/core/search/bm25.d.ts +11 -19
- package/dist/core/search/cache.d.ts +19 -41
- package/dist/core/search/corpus.d.ts +16 -19
- package/dist/core/search/embedding-batches.d.ts +12 -17
- package/dist/core/search/eval-thresholds.d.ts +3 -3
- package/dist/core/search/eval.d.ts +16 -34
- package/dist/core/search/http-client.d.ts +14 -18
- package/dist/core/search/providers.d.ts +22 -39
- package/dist/core/search/relevance.d.ts +14 -19
- package/dist/core/search/semantic-defaults.d.ts +4 -5
- package/dist/core/search/vector-stores.d.ts +35 -57
- package/dist/core/search/vectorization-metadata.d.ts +9 -11
- package/dist/core/sentry/helpers.d.ts +6 -31
- package/dist/core/sentry/instrument.d.ts +6 -59
- package/dist/core/session/session-state.d.ts +12 -32
- package/dist/core/shared/agent-session-context.d.ts +10 -17
- package/dist/core/shared/author.d.ts +48 -69
- package/dist/core/shared/command-line.d.ts +3 -3
- package/dist/core/shared/command-types.d.ts +3 -4
- package/dist/core/shared/constants.d.ts +14 -32
- package/dist/core/shared/error-details.d.ts +5 -18
- package/dist/core/shared/errors.d.ts +42 -83
- package/dist/core/shared/html-entity-decode.d.ts +1 -1
- package/dist/core/shared/item-metadata-contract.d.ts +2 -2
- package/dist/core/shared/lazy-module.d.ts +1 -1
- package/dist/core/shared/levenshtein.d.ts +1 -1
- package/dist/core/shared/numeric-parsers.d.ts +1 -1
- package/dist/core/shared/option-alias-visibility.d.ts +2 -2
- package/dist/core/shared/output-unicode.d.ts +1 -1
- package/dist/core/shared/primitives.d.ts +10 -10
- package/dist/core/shared/secret-rules.d.ts +7 -93
- package/dist/core/shared/serial-queue.d.ts +7 -9
- package/dist/core/shared/serialization.d.ts +1 -1
- package/dist/core/shared/split-comma-list.d.ts +4 -5
- package/dist/core/shared/text-normalization.d.ts +1 -1
- package/dist/core/shared/time.d.ts +6 -20
- package/dist/core/store/item-format-migration.d.ts +4 -5
- package/dist/core/store/item-metadata-cache.d.ts +22 -27
- package/dist/core/store/item-metadata-query-index.d.ts +20 -61
- package/dist/core/store/item-metadata-read-work.d.ts +3 -7
- package/dist/core/store/item-mutation-precondition.d.ts +19 -35
- package/dist/core/store/item-store.d.ts +18 -141
- package/dist/core/store/paths.d.ts +5 -10
- package/dist/core/store/settings-read-cache.d.ts +7 -9
- package/dist/core/store/settings-sections.d.ts +15 -19
- package/dist/core/store/settings-validator.d.ts +27 -143
- package/dist/core/store/settings-validator.js +1 -1
- package/dist/core/store/settings.d.ts +19 -94
- package/dist/core/store/sqlite-runtime.d.ts +3 -3
- package/dist/core/store/tracker-preflight.d.ts +2 -2
- package/dist/core/telemetry/consent.d.ts +2 -2
- package/dist/core/telemetry/observability.d.ts +8 -19
- package/dist/core/telemetry/policy.d.ts +8 -23
- package/dist/core/telemetry/runtime.d.ts +44 -254
- package/dist/core/test/background-runs.d.ts +35 -79
- package/dist/core/test/run-selectors.d.ts +10 -12
- package/dist/core/validate/fix-planning.d.ts +19 -28
- package/dist/core/validate/missing-by-type.d.ts +3 -4
- package/dist/core/validate/missing-link-owners.d.ts +12 -16
- package/dist/core/validate/stale-file-classification.d.ts +5 -6
- package/dist/mcp/tool-definitions.d.ts +7 -30
- package/dist/sdk/actionability.d.ts +1 -1
- package/dist/sdk/agent/closed-domain-contracts.d.ts +4 -5
- package/dist/sdk/agent/command-recovery.d.ts +9 -13
- package/dist/sdk/agent/command-suggestions.d.ts +2 -2
- package/dist/sdk/agent/create-option-policy.d.ts +2 -2
- package/dist/sdk/agent/identity-config.d.ts +13 -18
- package/dist/sdk/agent/item-addressing.d.ts +4 -5
- package/dist/sdk/agent/linked-resource-recovery.d.ts +3 -4
- package/dist/sdk/agent/refusal-closure-census.d.ts +13 -25
- package/dist/sdk/agent/refusal-closure.d.ts +8 -11
- package/dist/sdk/agent/refusal-corpus-contracts.d.ts +15 -21
- package/dist/sdk/agent/refusal-reachability.d.ts +38 -52
- package/dist/sdk/agent/subcommand-recovery.d.ts +7 -15
- package/dist/sdk/agent/task-transcript-contracts.d.ts +12 -15
- package/dist/sdk/agent/tracker-preflight-contracts.d.ts +13 -17
- package/dist/sdk/agent-capability-contracts.d.ts +19 -32
- package/dist/sdk/agent-session-context.d.ts +1 -1
- package/dist/sdk/annotations.d.ts +32 -68
- package/dist/sdk/author-attribution.d.ts +22 -33
- package/dist/sdk/authoring.d.ts +1 -19
- package/dist/sdk/cli-bootstrap.d.ts +22 -59
- package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +31 -57
- package/dist/sdk/cli-contracts/command-aliases.d.ts +7 -8
- package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +19 -65
- package/dist/sdk/cli-contracts/commander-mutation-options.d.ts +2 -2
- package/dist/sdk/cli-contracts/commander-types.d.ts +6 -11
- package/dist/sdk/cli-contracts/completeness.d.ts +11 -15
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +25 -37
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +16 -20
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +14 -19
- package/dist/sdk/cli-contracts/grammar-contracts.d.ts +29 -47
- package/dist/sdk/cli-contracts/runtime-contracts.d.ts +44 -265
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +11 -564
- package/dist/sdk/cli-contracts/tool-schema.d.ts +18 -51
- package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +18 -37
- package/dist/sdk/cli-contracts.d.ts +1 -16
- package/dist/sdk/cli-program.d.ts +2 -2
- package/dist/sdk/command-line.d.ts +3 -4
- package/dist/sdk/comments.d.ts +6 -10
- package/dist/sdk/compile-cache.d.ts +4 -5
- package/dist/sdk/completion/bash.d.ts +2 -2
- package/dist/sdk/completion/fish.d.ts +2 -2
- package/dist/sdk/completion/shared.d.ts +10 -77
- package/dist/sdk/completion/shared.js +1 -1
- package/dist/sdk/completion/zsh.d.ts +2 -2
- package/dist/sdk/completion.d.ts +2 -6
- package/dist/sdk/compose.d.ts +49 -74
- package/dist/sdk/config.d.ts +18 -94
- package/dist/sdk/config.js +1 -1
- package/dist/sdk/context/recency.d.ts +2 -2
- package/dist/sdk/context/semantic-session-attribution.d.ts +6 -25
- package/dist/sdk/context/usage-ledger.d.ts +9 -21
- package/dist/sdk/context-intent-contracts.d.ts +24 -35
- package/dist/sdk/context-intent-runtime.d.ts +7 -9
- package/dist/sdk/context-packing.d.ts +16 -34
- package/dist/sdk/context-relevance.d.ts +58 -93
- package/dist/sdk/context-signal-store.d.ts +29 -60
- package/dist/sdk/context-usage.d.ts +22 -69
- package/dist/sdk/contracts.d.ts +1 -24
- package/dist/sdk/core-governance.d.ts +1 -5
- package/dist/sdk/core.d.ts +1 -27
- package/dist/sdk/corpus-shape.d.ts +16 -28
- package/dist/sdk/define.d.ts +10 -14
- package/dist/sdk/dependencies.d.ts +32 -50
- package/dist/sdk/dependency-provenance.d.ts +19 -23
- package/dist/sdk/docs.d.ts +6 -10
- package/dist/sdk/duplicates.d.ts +8 -15
- package/dist/sdk/environment/agent-environment.d.ts +60 -101
- package/dist/sdk/environment/host-environment-errors.d.ts +1 -1
- package/dist/sdk/environment/project-runtime-compatibility.d.ts +15 -29
- package/dist/sdk/environment/source-context.d.ts +6 -7
- package/dist/sdk/environment/tracker-preflight.d.ts +1 -1
- package/dist/sdk/error-code-catalog.d.ts +9 -26
- package/dist/sdk/error-runtime.d.ts +6 -8
- package/dist/sdk/errors.d.ts +10 -17
- package/dist/sdk/eval.d.ts +11 -21
- package/dist/sdk/extension/command-options.d.ts +14 -26
- package/dist/sdk/extension/describe.d.ts +14 -19
- package/dist/sdk/extension/doctor.d.ts +8 -48
- package/dist/sdk/extension/install-plan.d.ts +12 -26
- package/dist/sdk/extension/install-runtime.d.ts +10 -11
- package/dist/sdk/extension/install-sources.d.ts +22 -104
- package/dist/sdk/extension/managed-state.d.ts +13 -18
- package/dist/sdk/extension/migrations.d.ts +22 -37
- package/dist/sdk/extension/output-ownership.d.ts +3 -30
- package/dist/sdk/extension/shared.d.ts +9 -15
- package/dist/sdk/extension/source-resolution.d.ts +13 -18
- package/dist/sdk/extension/static-inventory.d.ts +17 -21
- package/dist/sdk/extension/update-check.d.ts +7 -11
- package/dist/sdk/extension-command-context.d.ts +2 -3
- package/dist/sdk/extension-contracts.d.ts +11 -14
- package/dist/sdk/extension.d.ts +31 -192
- package/dist/sdk/files.d.ts +27 -68
- package/dist/sdk/flag-invocation-contracts.d.ts +13 -17
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated-error-code-catalog.d.ts +1 -1
- package/dist/sdk/governance/artifact-ledgers.d.ts +9 -16
- package/dist/sdk/governance/assurance-action-contracts.d.ts +1 -1
- package/dist/sdk/governance/assurance-action.d.ts +13 -45
- package/dist/sdk/governance/assurance-mutation-error.d.ts +12 -17
- package/dist/sdk/governance/assurance-presets.d.ts +10 -21
- package/dist/sdk/governance/assurance-runtime.d.ts +5 -6
- package/dist/sdk/governance/assurance.d.ts +97 -154
- package/dist/sdk/governance/boundary-fixtures.d.ts +17 -23
- package/dist/sdk/governance/closure-timestamps.d.ts +5 -15
- package/dist/sdk/governance/coverage-assurance.d.ts +5 -6
- package/dist/sdk/governance/defect-recurrence-coverage.d.ts +13 -23
- package/dist/sdk/governance/defect-recurrence-graph.d.ts +9 -13
- package/dist/sdk/governance/defect-recurrence.d.ts +43 -67
- package/dist/sdk/governance/extension-host-version.d.ts +8 -10
- package/dist/sdk/governance/gc.d.ts +12 -20
- package/dist/sdk/governance/health/projection.d.ts +8 -23
- package/dist/sdk/governance/health.d.ts +23 -167
- package/dist/sdk/governance/hierarchy-validation.d.ts +2 -18
- package/dist/sdk/governance/linked-file-report.d.ts +6 -10
- package/dist/sdk/governance/merge-receipt-history.d.ts +12 -16
- package/dist/sdk/governance/provenance-health.d.ts +17 -23
- package/dist/sdk/governance/reindex.d.ts +13 -116
- package/dist/sdk/governance/reliability.d.ts +13 -17
- package/dist/sdk/governance/stale-work.d.ts +8 -11
- package/dist/sdk/governance/status-role-diagnostics.d.ts +4 -6
- package/dist/sdk/governance/storage-integrity.d.ts +16 -23
- package/dist/sdk/governance/upgrade.d.ts +17 -57
- package/dist/sdk/governance/validate-item-reader.d.ts +3 -11
- package/dist/sdk/governance/validate-normalization.d.ts +2 -2
- package/dist/sdk/governance/validate.d.ts +29 -175
- package/dist/sdk/governance/workflow-completeness.d.ts +5 -17
- package/dist/sdk/governance/workflow-policy.d.ts +8 -16
- package/dist/sdk/governance/workspace-position.d.ts +12 -43
- package/dist/sdk/governance.d.ts +1 -39
- package/dist/sdk/graph/adapter.d.ts +23 -41
- package/dist/sdk/graph/analytics.d.ts +20 -31
- package/dist/sdk/graph/assembly.d.ts +24 -35
- package/dist/sdk/graph/cache.d.ts +13 -25
- package/dist/sdk/graph/cardinality-integrity.d.ts +4 -6
- package/dist/sdk/graph/centrality.d.ts +14 -20
- package/dist/sdk/graph/conformance.d.ts +12 -19
- package/dist/sdk/graph/deadline-scheduling.d.ts +14 -20
- package/dist/sdk/graph/durable-cache.d.ts +11 -14
- package/dist/sdk/graph/governance-contracts.d.ts +2 -2
- package/dist/sdk/graph/governance.d.ts +22 -36
- package/dist/sdk/graph/hierarchy-integrity.d.ts +18 -26
- package/dist/sdk/graph/index.d.ts +1 -17
- package/dist/sdk/graph/lifecycle-coverage.d.ts +8 -12
- package/dist/sdk/graph/mutation-advisory.d.ts +5 -16
- package/dist/sdk/graph/query-contracts.d.ts +1 -2
- package/dist/sdk/graph/remediation.d.ts +11 -18
- package/dist/sdk/graph/run.d.ts +73 -115
- package/dist/sdk/graph/scheduling.d.ts +8 -15
- package/dist/sdk/graph/traversal.d.ts +9 -15
- package/dist/sdk/graph/workspace-relationship-kind-registry.d.ts +2 -2
- package/dist/sdk/graph.d.ts +1 -12
- package/dist/sdk/guide-topics.d.ts +7 -10
- package/dist/sdk/guide.d.ts +21 -43
- package/dist/sdk/history/attestation-command.d.ts +7 -10
- package/dist/sdk/history/attestation-contract.d.ts +19 -34
- package/dist/sdk/history/attestation.d.ts +2 -3
- package/dist/sdk/history/maintenance.d.ts +17 -27
- package/dist/sdk/history/salvage.d.ts +5 -22
- package/dist/sdk/history/subject.d.ts +5 -11
- package/dist/sdk/history-analytics.d.ts +28 -59
- package/dist/sdk/history-compact.d.ts +25 -66
- package/dist/sdk/history-provenance.d.ts +16 -33
- package/dist/sdk/history-read.d.ts +9 -16
- package/dist/sdk/history-redact.d.ts +19 -74
- package/dist/sdk/history-redact.js +1 -1
- package/dist/sdk/history-repair.d.ts +26 -71
- package/dist/sdk/improvement-ledger-validation.d.ts +2 -2
- package/dist/sdk/improvement-ledger.d.ts +20 -39
- package/dist/sdk/index.d.ts +1 -268
- package/dist/sdk/init-agent-guidance.d.ts +13 -68
- package/dist/sdk/init.d.ts +24 -94
- package/dist/sdk/invocation-author.d.ts +1 -1
- package/dist/sdk/item-children.d.ts +10 -13
- package/dist/sdk/item-metadata-index.d.ts +1 -2
- package/dist/sdk/item-schedule.d.ts +8 -9
- package/dist/sdk/item-transaction.d.ts +46 -90
- package/dist/sdk/learnings.d.ts +6 -10
- package/dist/sdk/lifecycle/append.d.ts +7 -9
- package/dist/sdk/lifecycle/claim.d.ts +26 -42
- package/dist/sdk/lifecycle/cli-input.d.ts +1 -1
- package/dist/sdk/lifecycle/close-many.d.ts +14 -65
- package/dist/sdk/lifecycle/close.d.ts +10 -26
- package/dist/sdk/lifecycle/copy.d.ts +6 -10
- package/dist/sdk/lifecycle/create.d.ts +15 -83
- package/dist/sdk/lifecycle/delete.d.ts +7 -9
- package/dist/sdk/lifecycle/focus.d.ts +9 -11
- package/dist/sdk/lifecycle/item-revision.d.ts +25 -45
- package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +4 -5
- package/dist/sdk/lifecycle/mutation-command-options.d.ts +6 -9
- package/dist/sdk/lifecycle/plan-mutation-receipt.d.ts +5 -13
- package/dist/sdk/lifecycle/plan.d.ts +34 -74
- package/dist/sdk/lifecycle/reopen.d.ts +8 -14
- package/dist/sdk/lifecycle/restore.d.ts +9 -38
- package/dist/sdk/lifecycle/shared-unset-fields.d.ts +23 -614
- package/dist/sdk/lifecycle/start-blockers.d.ts +7 -27
- package/dist/sdk/lifecycle/structured-mutation-plan.d.ts +8 -16
- package/dist/sdk/lifecycle/task-composition.d.ts +6 -14
- package/dist/sdk/lifecycle/update-many.d.ts +15 -65
- package/dist/sdk/lifecycle/update.d.ts +21 -104
- package/dist/sdk/lifecycle/workflow-transition.d.ts +2 -11
- package/dist/sdk/lifecycle-completion.d.ts +11 -14
- package/dist/sdk/lifecycle-policy.d.ts +23 -32
- package/dist/sdk/linked-artifacts.d.ts +31 -41
- package/dist/sdk/mcp/apps.d.ts +12 -27
- package/dist/sdk/mcp/authorization.d.ts +30 -63
- package/dist/sdk/mcp/discovery.d.ts +23 -52
- package/dist/sdk/mcp/executable.d.ts +3 -10
- package/dist/sdk/mcp/interactions.d.ts +25 -47
- package/dist/sdk/mcp/protocol.d.ts +32 -64
- package/dist/sdk/mcp/skills.d.ts +21 -71
- package/dist/sdk/mcp/subscriptions.d.ts +14 -28
- package/dist/sdk/mcp/tasks.d.ts +21 -55
- package/dist/sdk/mcp/transport.d.ts +7 -15
- package/dist/sdk/merge/driver.d.ts +13 -37
- package/dist/sdk/merge/index.d.ts +1 -6
- package/dist/sdk/merge/install.d.ts +27 -55
- package/dist/sdk/merge/receipt-operation.d.ts +5 -6
- package/dist/sdk/merge/receipt-schema.d.ts +6 -9
- package/dist/sdk/merge/receipts.d.ts +29 -79
- package/dist/sdk/merge/reconcile.d.ts +9 -18
- package/dist/sdk/merge/three-way.d.ts +21 -30
- package/dist/sdk/merge.d.ts +1 -5
- package/dist/sdk/mutation-events.d.ts +21 -53
- package/dist/sdk/mutation-guard.d.ts +15 -135
- package/dist/sdk/notes.d.ts +6 -10
- package/dist/sdk/output/fit-envelope.d.ts +21 -28
- package/dist/sdk/output/list-envelope.d.ts +1 -1
- package/dist/sdk/output/table-rows.d.ts +8 -12
- package/dist/sdk/output-contracts.d.ts +11 -14
- package/dist/sdk/output-projection.d.ts +18 -130
- package/dist/sdk/output-token-accounting.d.ts +8 -15
- package/dist/sdk/output.d.ts +10 -15
- package/dist/sdk/ownership-source.d.ts +4 -5
- package/dist/sdk/package-import-adapters.d.ts +27 -37
- package/dist/sdk/package-migrations.d.ts +2 -2
- package/dist/sdk/package-runtime-options.d.ts +3 -3
- package/dist/sdk/pagination.d.ts +12 -24
- package/dist/sdk/profile.d.ts +25 -42
- package/dist/sdk/provenance.d.ts +21 -32
- package/dist/sdk/query/activity.d.ts +24 -77
- package/dist/sdk/query/aggregate.d.ts +20 -95
- package/dist/sdk/query/calendar.d.ts +26 -74
- package/dist/sdk/query/complete-list.d.ts +19 -35
- package/dist/sdk/query/context.d.ts +69 -240
- package/dist/sdk/query/declared-blockers.d.ts +2 -9
- package/dist/sdk/query/duplicate-candidates.d.ts +3 -5
- package/dist/sdk/query/get.d.ts +13 -55
- package/dist/sdk/query/history.d.ts +18 -29
- package/dist/sdk/query/item-filter-options.d.ts +7 -12
- package/dist/sdk/query/list-filter-shared.d.ts +4 -8
- package/dist/sdk/query/list.d.ts +44 -168
- package/dist/sdk/query/multi-value-filters.d.ts +7 -9
- package/dist/sdk/query/next-ranking-policy.d.ts +4 -10
- package/dist/sdk/query/next-ready-budget.d.ts +4 -5
- package/dist/sdk/query/next.d.ts +27 -86
- package/dist/sdk/query/parsers.d.ts +4 -6
- package/dist/sdk/query/projection-contracts.d.ts +12 -21
- package/dist/sdk/query/search/corpus.d.ts +5 -20
- package/dist/sdk/query/search/filters.d.ts +5 -17
- package/dist/sdk/query/search/input.d.ts +4 -9
- package/dist/sdk/query/search/lexical.d.ts +5 -9
- package/dist/sdk/query/search/response.d.ts +5 -22
- package/dist/sdk/query/search/semantic.d.ts +24 -170
- package/dist/sdk/query/search/types.d.ts +19 -73
- package/dist/sdk/query/search-contracts.d.ts +24 -34
- package/dist/sdk/query/search-pagination.d.ts +5 -24
- package/dist/sdk/query/search-rendering.d.ts +8 -32
- package/dist/sdk/query/search.d.ts +3 -63
- package/dist/sdk/query/workspace-contracts.d.ts +2 -2
- package/dist/sdk/query.d.ts +1 -43
- package/dist/sdk/read-output/continuation.d.ts +5 -6
- package/dist/sdk/read-output/options.d.ts +3 -8
- package/dist/sdk/read-output/session-result.d.ts +2 -33
- package/dist/sdk/read-output/tail-retention.d.ts +6 -8
- package/dist/sdk/read-output-budget.d.ts +14 -16
- package/dist/sdk/read-output-contracts.d.ts +59 -103
- package/dist/sdk/read-output-rows.d.ts +5 -9
- package/dist/sdk/read-output-session.d.ts +11 -14
- package/dist/sdk/relationship-analytics.d.ts +17 -37
- package/dist/sdk/relationship-context.d.ts +15 -33
- package/dist/sdk/relationship-history.d.ts +29 -50
- package/dist/sdk/relationship-kinds/contract.d.ts +11 -12
- package/dist/sdk/relationship-migration.d.ts +6 -10
- package/dist/sdk/relationships.d.ts +22 -34
- package/dist/sdk/reproducibility/process.d.ts +7 -11
- package/dist/sdk/runtime/context.d.ts +6 -22
- package/dist/sdk/runtime/schema-preview.d.ts +1 -1
- package/dist/sdk/runtime-input.d.ts +9 -20
- package/dist/sdk/runtime-primitives.d.ts +3 -82
- package/dist/sdk/runtime-public-contracts.d.ts +30 -50
- package/dist/sdk/runtime.d.ts +77 -302
- package/dist/sdk/scheduling-shortcuts.d.ts +8 -12
- package/dist/sdk/schema-migration.d.ts +18 -80
- package/dist/sdk/schema.d.ts +89 -192
- package/dist/sdk/search-refresh-worker.d.ts +1 -1
- package/dist/sdk/similarity-scoring.d.ts +6 -8
- package/dist/sdk/similarity.d.ts +33 -64
- package/dist/sdk/start-task-status.d.ts +2 -2
- package/dist/sdk/stats.d.ts +13 -48
- package/dist/sdk/structured-mutations.d.ts +18 -26
- package/dist/sdk/telemetry-flush.d.ts +1 -1
- package/dist/sdk/telemetry.d.ts +14 -20
- package/dist/sdk/templates.d.ts +14 -35
- package/dist/sdk/test/batch.d.ts +10 -25
- package/dist/sdk/test/execution.d.ts +44 -209
- package/dist/sdk/test/json-path.d.ts +2 -5
- package/dist/sdk/test/linked-command-detection.d.ts +10 -25
- package/dist/sdk/test/measurements.d.ts +10 -13
- package/dist/sdk/test/parsers.d.ts +16 -20
- package/dist/sdk/test/prerequisites.d.ts +2 -3
- package/dist/sdk/test/runs.d.ts +19 -52
- package/dist/sdk/test/trust.d.ts +8 -12
- package/dist/sdk/test/update.d.ts +9 -25
- package/dist/sdk/testing.d.ts +97 -206
- package/dist/sdk/traceability/source-traceability.d.ts +25 -56
- package/dist/sdk/tracker-root-discovery.d.ts +1 -1
- package/dist/sdk/workspace-contracts-cache.d.ts +2 -2
- package/dist/sdk/workspace-contracts.d.ts +8 -14
- package/dist/sdk/workspace-memory.d.ts +24 -42
- package/dist/sdk/workspace-recipe.d.ts +10 -14
- package/dist/sdk/workspace-snapshot.d.ts +26 -53
- package/dist/sdk/workspace-transaction-gc.d.ts +12 -16
- package/dist/sdk/workspace-transaction.d.ts +26 -40
- package/dist/sdk/workspace.d.ts +8 -10
- package/dist/types/index.d.ts +1 -1
- package/dist/types.d.ts +210 -353
- package/docs/COMMANDS.md +8 -0
- package/docs/CONFIGURATION.md +17 -0
- package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +28 -9
- package/docs/RELEASING.md +25 -0
- package/docs/SDK.md +17 -2
- package/docs/TESTING.md +11 -0
- package/marketplace.json +1 -1
- package/package.json +1 -1
- 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/scripts/finalize-build.mjs +41 -4
- package/dist/cli-bundle/chunks/chunk-JYQXIC6C.js +0 -3
- package/dist/cli-bundle/chunks/chunk-LVDFPGD7.js +0 -3
- package/dist/cli-bundle/chunks/chunk-UFIM5ZC5.js +0 -6
- package/dist/cli-bundle/chunks/item-transaction-XBIN4KYM.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-HLQOGAWG.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-IB6TCE7N.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-JU62TKJP.js +0 -82
- package/dist/cli-bundle/focused-chunks/chunk-NUFO3OR6.js +0 -44
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type{LinkedTest}from "../../types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Pure selection logic for `pm test --run` selectors (pm-p86h / GitHub #194).
|
|
4
4
|
*
|
|
@@ -7,22 +7,21 @@ import type { LinkedTest } from "../../types.js";
|
|
|
7
7
|
* - `--only-index <n>`: 1-based index into the `--list` order.
|
|
8
8
|
* - `--only-last`: most recently added entry (last in `--list` order).
|
|
9
9
|
*/
|
|
10
|
-
export type LinkedTestSelectorKind
|
|
10
|
+
export type LinkedTestSelectorKind="match"|"only-index"|"only-last";
|
|
11
11
|
/** Documents the linked test run selector payload exchanged by command, SDK, and package integrations. */
|
|
12
|
-
export interface LinkedTestRunSelector
|
|
12
|
+
export interface LinkedTestRunSelector{
|
|
13
13
|
/** Value that configures or reports match for this contract. */
|
|
14
14
|
match?:string;
|
|
15
15
|
/** Value that configures or reports only index for this contract. */
|
|
16
16
|
onlyIndex?:number;
|
|
17
17
|
/** Value that configures or reports only last for this contract. */
|
|
18
|
-
onlyLast?:boolean;
|
|
19
|
-
}
|
|
18
|
+
onlyLast?:boolean;}
|
|
20
19
|
/** Documents the linked test run selection payload exchanged by command, SDK, and package integrations. */
|
|
21
|
-
export interface LinkedTestRunSelection
|
|
20
|
+
export interface LinkedTestRunSelection{
|
|
22
21
|
/** Value that configures or reports selector for this contract. */
|
|
23
|
-
selector:LinkedTestSelectorKind
|
|
22
|
+
selector:LinkedTestSelectorKind|null;
|
|
24
23
|
/** Value that configures or reports requested for this contract. */
|
|
25
|
-
requested:string
|
|
24
|
+
requested:string|null;
|
|
26
25
|
/** Value that configures or reports selected for this contract. */
|
|
27
26
|
selected:LinkedTest[];
|
|
28
27
|
/** 1-based positions of selected entries in the original `--list` order. */
|
|
@@ -30,11 +29,10 @@ selected_indexes:number[];
|
|
|
30
29
|
/** Number of selected entries represented by this result. */
|
|
31
30
|
selected_count:number;
|
|
32
31
|
/** Number of skipped entries represented by this result. */
|
|
33
|
-
skipped_count:number;
|
|
34
|
-
}
|
|
32
|
+
skipped_count:number;}
|
|
35
33
|
/** Implements parse only index value for the public runtime surface of this module. */
|
|
36
|
-
export declare function parseOnlyIndexValue(raw:string
|
|
34
|
+
export declare function parseOnlyIndexValue(raw:string|number,optionName?:string):number;
|
|
37
35
|
/** Implements describe linked test entries for the public runtime surface of this module. */
|
|
38
36
|
export declare function describeLinkedTestEntries(tests:LinkedTest[]):string;
|
|
39
37
|
/** Implements resolve linked test run selection for the public runtime surface of this module. */
|
|
40
|
-
export declare function resolveLinkedTestRunSelection(tests:LinkedTest[],selector:LinkedTestRunSelector):LinkedTestRunSelection;
|
|
38
|
+
export declare function resolveLinkedTestRunSelection(tests:LinkedTest[],selector:LinkedTestRunSelector):LinkedTestRunSelection;
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
* explicitly granted.
|
|
17
17
|
*/
|
|
18
18
|
/** Restricts validate fix check values accepted by command, SDK, and storage contracts. */
|
|
19
|
-
export type ValidateFixCheck
|
|
19
|
+
export type ValidateFixCheck="metadata"|"resolution"|"lifecycle"|"files";
|
|
20
20
|
/** Restricts validate fix kind values accepted by command, SDK, and storage contracts. */
|
|
21
|
-
export type ValidateFixKind
|
|
21
|
+
export type ValidateFixKind="set_resolution"|"set_close_reason"|"set_estimate"|"set_closed_at"|"reparent"|"unset_parent"|"prune_file_link"|"prune_doc_link";
|
|
22
22
|
/** Restricts validate fix scope values accepted by command, SDK, and storage contracts. */
|
|
23
|
-
export type ValidateFixScope
|
|
23
|
+
export type ValidateFixScope="metadata"|"resolution"|"estimates"|"timestamps"|"lifecycle";
|
|
24
24
|
/** Scopes auto-applied without an explicit `--fix-scope` (safe field backfills). */
|
|
25
25
|
export declare const DEFAULT_GRANTED_FIX_SCOPES:readonly ValidateFixScope[];
|
|
26
26
|
/** Scopes accepted by `--fix-scope`. Estimates are heuristic, timestamps require verified historical replay, and lifecycle changes are structural; all three require explicit opt-in. */
|
|
27
27
|
export declare const SUPPORTED_FIX_SCOPES:readonly ValidateFixScope[];
|
|
28
28
|
/** Documents the validate fix record payload exchanged by command, SDK, and package integrations. */
|
|
29
|
-
export interface ValidateFixRecord
|
|
29
|
+
export interface ValidateFixRecord{
|
|
30
30
|
/** Item the fix targets. */
|
|
31
31
|
item_id:string;
|
|
32
32
|
/** Validate check the finding came from. */
|
|
@@ -44,39 +44,35 @@ path?:string;
|
|
|
44
44
|
/** Target parent id for reparent fixes. */
|
|
45
45
|
parent_id?:string;
|
|
46
46
|
/** Fix scope the `--fix-scope` allowlist must grant for the fix to be applied. Every `--auto-fix` record carries one (the granted default is metadata+resolution; lifecycle must be named explicitly). Absent only on `--prune-missing` records, which are governed by their own flag. */
|
|
47
|
-
gate?:ValidateFixScope;
|
|
48
|
-
}
|
|
47
|
+
gate?:ValidateFixScope;}
|
|
49
48
|
/** Documents the resolution backfill row payload exchanged by command, SDK, and package integrations. */
|
|
50
|
-
export interface ResolutionBackfillRow
|
|
49
|
+
export interface ResolutionBackfillRow{
|
|
51
50
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
52
51
|
id:string;
|
|
53
52
|
/** Resolution-check missing field keys for this closed item. */
|
|
54
53
|
missing_fields:readonly string[];
|
|
55
54
|
/** The item's close_reason, when present (preferred derivation source). */
|
|
56
|
-
close_reason?:string;
|
|
57
|
-
}
|
|
55
|
+
close_reason?:string;}
|
|
58
56
|
/** Plan resolution backfills for closed items flagged by the resolution check. Only the `resolution` field is mechanical enough to auto-fix: it derives from the item's own `close_reason` when present and falls back to the `"completed"` default. `expected_result` / `actual_result` stay hint-only — no deterministic source text exists for them. */
|
|
59
57
|
export declare function planResolutionBackfillFixes(rows:readonly ResolutionBackfillRow[]):ValidateFixRecord[];
|
|
60
58
|
/** Documents the close reason backfill row payload exchanged by command, SDK, and package integrations. */
|
|
61
|
-
export interface CloseReasonBackfillRow
|
|
59
|
+
export interface CloseReasonBackfillRow{
|
|
62
60
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
63
61
|
id:string;
|
|
64
62
|
/** The item's resolution, when present (the only derivation source). */
|
|
65
|
-
resolution?:string;
|
|
66
|
-
}
|
|
63
|
+
resolution?:string;}
|
|
67
64
|
/** Plan close_reason backfills for closed items flagged by the metadata check. Only derivable when the item already carries a resolution; items missing both stay hint-only (any synthesized reason would be fabricated, not derived). */
|
|
68
65
|
export declare function planCloseReasonBackfillFixes(rows:readonly CloseReasonBackfillRow[]):ValidateFixRecord[];
|
|
69
66
|
/** Documents the estimate backfill row payload exchanged by command, SDK, and package integrations. */
|
|
70
|
-
export interface EstimateBackfillRow
|
|
67
|
+
export interface EstimateBackfillRow{
|
|
71
68
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
72
69
|
id:string;
|
|
73
70
|
/** Item type, used to resolve the per-type default estimate. */
|
|
74
|
-
type?:string;
|
|
75
|
-
}
|
|
71
|
+
type?:string;}
|
|
76
72
|
/** Plan estimate backfills for items flagged by the metadata check as missing `estimated_minutes` (GH-212). The value is a config-driven per-type default (overrides > built-in map > fallback), never a derived fact — so these fixes carry `gate: "estimates"`, an opt-in scope that is NOT granted by default. `overrides` is the already-normalized `validation.estimate_defaults_by_type` map; pass `undefined`/`{}` to use the built-in defaults. */
|
|
77
73
|
export declare function planEstimateBackfillFixes(rows:readonly EstimateBackfillRow[],overrides?:Readonly<Record<string,number>>):ValidateFixRecord[];
|
|
78
74
|
/** Documents the terminal parent fix row payload exchanged by command, SDK, and package integrations. */
|
|
79
|
-
export interface TerminalParentFixRow
|
|
75
|
+
export interface TerminalParentFixRow{
|
|
80
76
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
81
77
|
id:string;
|
|
82
78
|
/** Value that configures or reports parent id for this contract. */
|
|
@@ -84,29 +80,24 @@ parent_id:string;
|
|
|
84
80
|
/** The terminal parent's own parent, when one exists. */
|
|
85
81
|
grandparent_id?:string;
|
|
86
82
|
/** True when the grandparent exists and is NOT terminal (safe reparent target). */
|
|
87
|
-
grandparent_active?:boolean;
|
|
88
|
-
}
|
|
83
|
+
grandparent_active?:boolean;}
|
|
89
84
|
/** Plan lifecycle fixes for active items whose parent is terminal (pm-8jss / GH-168). When the terminal parent has an active grandparent, the child is reparented one level up (it stays inside the same hierarchy); otherwise the parent link is cleared so the item surfaces as unparented active work. Either way the item itself is never closed or mutated beyond `parent` — and every fix carries `gate: "lifecycle"` so it is only applied under an explicit `--fix-scope lifecycle`. */
|
|
90
85
|
export declare function planTerminalParentFixes(rows:readonly TerminalParentFixRow[]):ValidateFixRecord[];
|
|
91
86
|
/** Documents the stale link prune row payload exchanged by command, SDK, and package integrations. */
|
|
92
|
-
export interface StaleLinkPruneRow
|
|
87
|
+
export interface StaleLinkPruneRow{
|
|
93
88
|
/** Value that configures or reports item id for this contract. */
|
|
94
89
|
item_id:string;
|
|
95
90
|
/** Filesystem path used for path resolution. */
|
|
96
91
|
path:string;
|
|
97
92
|
/** Value that configures or reports link kind for this contract. */
|
|
98
|
-
link_kind:"files"
|
|
93
|
+
link_kind:"files"|"docs";
|
|
99
94
|
/** Value that configures or reports classification for this contract. */
|
|
100
|
-
classification:"moved"
|
|
101
|
-
}
|
|
95
|
+
classification:"moved"|"deleted"|"malformed";}
|
|
102
96
|
/** Plan link prunes for `--prune-missing` (pm-0v2m / GH-184). Only links whose stale path classified as `deleted` are pruned; `moved` links keep their relink candidates in the files-check details instead of being dropped, so recoverable link information is never destroyed. Link removal only — real files are never touched. */
|
|
103
97
|
export declare function planStaleLinkPruneFixes(rows:readonly StaleLinkPruneRow[]):ValidateFixRecord[];
|
|
104
98
|
/** Resolve the granted `--fix-scope` set (repeatable and/or comma-separated). With no explicit scopes the safe field-backfill scopes (metadata, resolution) are granted; lifecycle must always be named explicitly. Unknown values fail fast with the supported list. */
|
|
105
|
-
export declare function resolveGrantedFixScopes(rawScopes:readonly string[]
|
|
99
|
+
export declare function resolveGrantedFixScopes(rawScopes:readonly string[]|undefined):Set<ValidateFixScope>;
|
|
106
100
|
/** Split a fix plan into the records that may be applied under the granted scopes and the gated records that were withheld. `--fix-scope` is an exact allowlist: every `--auto-fix` record requires its gate scope in `granted`. Ungated records (`--prune-missing` link prunes, governed by their own flag) are always applicable. */
|
|
107
|
-
export declare function partitionFixesByGrant(fixes:readonly ValidateFixRecord[],granted:ReadonlySet<ValidateFixScope>):{
|
|
108
|
-
applicable:ValidateFixRecord[];
|
|
109
|
-
gated:ValidateFixRecord[];
|
|
110
|
-
};
|
|
101
|
+
export declare function partitionFixesByGrant(fixes:readonly ValidateFixRecord[],granted:ReadonlySet<ValidateFixScope>):{applicable:ValidateFixRecord[];gated:ValidateFixRecord[];};
|
|
111
102
|
/** Compact serialization of a fix for planned/applied output rows. */
|
|
112
|
-
export declare function toFixOutputRow(fix:ValidateFixRecord):Record<string,unknown>;
|
|
103
|
+
export declare function toFixOutputRow(fix:ValidateFixRecord):Record<string,unknown>;
|
|
@@ -8,11 +8,10 @@
|
|
|
8
8
|
* `{ Task: { close_reason: 3, reviewer: 1 } }`.
|
|
9
9
|
*/
|
|
10
10
|
/** One missing required metadata field observed on an item of a specific type. */
|
|
11
|
-
export interface MissingFieldOccurrence
|
|
11
|
+
export interface MissingFieldOccurrence{
|
|
12
12
|
/** Item type name as stored in item metadata (e.g. "Task"). */
|
|
13
13
|
item_type:string;
|
|
14
14
|
/** Required metadata field that is missing on the item. */
|
|
15
|
-
field:string;
|
|
16
|
-
}
|
|
15
|
+
field:string;}
|
|
17
16
|
/** Aggregate missing-field occurrences into `{ type: { field: count } }` with both levels sorted lexicographically for stable, diff-friendly output. Zero counts never appear (only observed occurrences are aggregated). */
|
|
18
|
-
export declare function buildMissingByTypeCounts(occurrences:Iterable<MissingFieldOccurrence>):Record<string,Record<string,number>>;
|
|
17
|
+
export declare function buildMissingByTypeCounts(occurrences:Iterable<MissingFieldOccurrence>):Record<string,Record<string,number>>;
|
|
@@ -13,20 +13,19 @@
|
|
|
13
13
|
* the already-collected stale-link rows plus a metadata `lookup` closure.
|
|
14
14
|
*/
|
|
15
15
|
/** Classification assigned to a stale linked path during files validation. */
|
|
16
|
-
export type StaleLinkClassification
|
|
16
|
+
export type StaleLinkClassification="moved"|"deleted"|"malformed";
|
|
17
17
|
/** Documents the stale link owner input payload exchanged by command, SDK, and package integrations. */
|
|
18
|
-
export interface StaleLinkOwnerInput
|
|
18
|
+
export interface StaleLinkOwnerInput{
|
|
19
19
|
/** Value that configures or reports item id for this contract. */
|
|
20
20
|
item_id:string;
|
|
21
21
|
/** Normalized workspace-relative path that no longer resolves. */
|
|
22
22
|
path:string;
|
|
23
23
|
/** Which link list of the owning item the path lives in. */
|
|
24
|
-
link_kind:"files"
|
|
24
|
+
link_kind:"files"|"docs";
|
|
25
25
|
/** Value that configures or reports classification for this contract. */
|
|
26
|
-
classification:StaleLinkClassification;
|
|
27
|
-
}
|
|
26
|
+
classification:StaleLinkClassification;}
|
|
28
27
|
/** Documents the missing linked path owner payload exchanged by command, SDK, and package integrations. */
|
|
29
|
-
export interface MissingLinkedPathOwner
|
|
28
|
+
export interface MissingLinkedPathOwner{
|
|
30
29
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
31
30
|
id:string;
|
|
32
31
|
/** Owning item type, `"Unknown"` if metadata is absent. */
|
|
@@ -36,26 +35,23 @@ title:string;
|
|
|
36
35
|
/** Owning item status, `""` if absent. */
|
|
37
36
|
status:string;
|
|
38
37
|
/** The link list the path lives in (= the input `link_kind`). */
|
|
39
|
-
field:"files"
|
|
40
|
-
}
|
|
38
|
+
field:"files"|"docs";}
|
|
41
39
|
/** Documents the missing linked path row payload exchanged by command, SDK, and package integrations. */
|
|
42
|
-
export interface MissingLinkedPathRow
|
|
40
|
+
export interface MissingLinkedPathRow{
|
|
43
41
|
/** Filesystem path used for path resolution. */
|
|
44
42
|
path:string;
|
|
45
43
|
/** Value that configures or reports classification for this contract. */
|
|
46
44
|
classification:StaleLinkClassification;
|
|
47
45
|
/** Value that configures or reports items for this contract. */
|
|
48
|
-
items:MissingLinkedPathOwner[];
|
|
49
|
-
}
|
|
46
|
+
items:MissingLinkedPathOwner[];}
|
|
50
47
|
/** Documents the owner item metadata payload exchanged by command, SDK, and package integrations. */
|
|
51
|
-
export interface OwnerItemMetadata
|
|
48
|
+
export interface OwnerItemMetadata{
|
|
52
49
|
/** Schema type that determines the shape and validation rules for this value. */
|
|
53
50
|
type?:string;
|
|
54
51
|
/** Value that configures or reports title for this contract. */
|
|
55
52
|
title?:string;
|
|
56
53
|
/** Lifecycle state reported for status. */
|
|
57
|
-
status?:string;
|
|
58
|
-
}
|
|
54
|
+
status?:string;}
|
|
59
55
|
/**
|
|
60
56
|
* Group stale-link owner inputs by linked path and attach owning-item metadata.
|
|
61
57
|
*
|
|
@@ -65,7 +61,7 @@ status?:string;
|
|
|
65
61
|
* - `classification` per path follows {@link preferClassification} (moved wins).
|
|
66
62
|
* - Missing metadata falls back: type `"Unknown"`, title `""`, status `""`.
|
|
67
63
|
*/
|
|
68
|
-
export declare function buildMissingLinkedPathRows(rows:readonly StaleLinkOwnerInput[],lookup:(itemId:string)
|
|
64
|
+
export declare function buildMissingLinkedPathRows(rows:readonly StaleLinkOwnerInput[],lookup:(itemId:string)=> OwnerItemMetadata|undefined):MissingLinkedPathRow[];
|
|
69
65
|
/**
|
|
70
66
|
* Token-efficient one-line-per-owner serialization for the files-check details
|
|
71
67
|
* (compact text counterpart to the full {@link MissingLinkedPathRow} objects).
|
|
@@ -75,4 +71,4 @@ export declare function buildMissingLinkedPathRows(rows:readonly StaleLinkOwnerI
|
|
|
75
71
|
* render (`status=` and `title=""`). Order follows
|
|
76
72
|
* {@link buildMissingLinkedPathRows} output order.
|
|
77
73
|
*/
|
|
78
|
-
export declare function summarizeMissingLinkedPathRows(rows:readonly MissingLinkedPathRow[]):string[];
|
|
74
|
+
export declare function summarizeMissingLinkedPathRows(rows:readonly MissingLinkedPathRow[]):string[];
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* already-collected candidate file list from the files check scan.
|
|
15
15
|
*/
|
|
16
16
|
/** Classification labels for linked paths that no longer exist on disk. */
|
|
17
|
-
export type StaleLinkedPathClassification
|
|
17
|
+
export type StaleLinkedPathClassification="moved"|"deleted"|"malformed";
|
|
18
18
|
/** Documents the classified stale linked path payload exchanged by command, SDK, and package integrations. */
|
|
19
|
-
export interface ClassifiedStaleLinkedPath
|
|
19
|
+
export interface ClassifiedStaleLinkedPath{
|
|
20
20
|
/** Normalized workspace-relative stale linked path. */
|
|
21
21
|
path:string;
|
|
22
22
|
/** Value that configures or reports classification for this contract. */
|
|
@@ -24,11 +24,10 @@ classification:StaleLinkedPathClassification;
|
|
|
24
24
|
/** Candidate new locations (same basename, different path), sorted and capped at `candidateLimit`. Empty for `deleted` and `malformed`. */
|
|
25
25
|
candidates:string[];
|
|
26
26
|
/** True when more candidates existed than `candidateLimit` allowed. */
|
|
27
|
-
candidates_truncated:boolean;
|
|
28
|
-
}
|
|
27
|
+
candidates_truncated:boolean;}
|
|
29
28
|
/** Fallback stale path candidate limit used when callers do not provide an override. */
|
|
30
|
-
export declare const DEFAULT_STALE_PATH_CANDIDATE_LIMIT
|
|
29
|
+
export declare const DEFAULT_STALE_PATH_CANDIDATE_LIMIT=3;
|
|
31
30
|
/** Classify each stale (missing) linked path as `moved`, `deleted`, or `malformed` by matching its basename against the candidate file list. Output preserves the input order of `stalePaths` (callers pass an already-sorted unique list). A candidate equal to the stale path itself never matches (the path is known missing; an identical candidate would be self-referential noise). */
|
|
32
31
|
export declare function classifyStaleLinkedPaths(stalePaths:readonly string[],candidateFiles:readonly string[],candidateLimit?:number):ClassifiedStaleLinkedPath[];
|
|
33
32
|
/** Render compact `<path>:moved:<top-candidate>` / `<path>:deleted` rows for the files check details (token-efficient counterpart to the full classification objects). */
|
|
34
|
-
export declare function summarizeStaleLinkedPathClassifications(classified:readonly ClassifiedStaleLinkedPath[]):string[];
|
|
33
|
+
export declare function summarizeStaleLinkedPathClassifications(classified:readonly ClassifiedStaleLinkedPath[]):string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type{PmToolAction}from "../sdk/cli-contracts/enum-contracts.js";
|
|
2
2
|
/**
|
|
3
3
|
* Static MCP tool surface for the pm MCP server.
|
|
4
4
|
*
|
|
@@ -7,7 +7,7 @@ import type { PmToolAction } from "../sdk/cli-contracts/enum-contracts.js";
|
|
|
7
7
|
* golden file (pm-4os2) without importing the full MCP server runtime, and so
|
|
8
8
|
* the server itself stays the single consumer of the dispatch handlers.
|
|
9
9
|
*/
|
|
10
|
-
export interface ToolDefinition
|
|
10
|
+
export interface ToolDefinition{
|
|
11
11
|
/** Value that configures or reports name for this contract. */
|
|
12
12
|
name:string;
|
|
13
13
|
/** Value that configures or reports description for this contract. */
|
|
@@ -15,31 +15,9 @@ description:string;
|
|
|
15
15
|
/** Value that configures or reports input schema for this contract. */
|
|
16
16
|
inputSchema:Record<string,unknown>;
|
|
17
17
|
/** Optional negotiated extension metadata projected during tools/list. */
|
|
18
|
-
_meta?:Record<string,unknown>;
|
|
19
|
-
}
|
|
18
|
+
_meta?:Record<string,unknown>;}
|
|
20
19
|
/** MCP transport parameters layered over every canonical action schema. */
|
|
21
|
-
export declare const TOOL_SCHEMA_BASE:{
|
|
22
|
-
readonly type:"object";
|
|
23
|
-
readonly properties:{
|
|
24
|
-
readonly cwd:{
|
|
25
|
-
readonly type:"string";
|
|
26
|
-
readonly description:"Workspace directory to run the native pm operation in. Defaults to the MCP server process cwd.";
|
|
27
|
-
};
|
|
28
|
-
readonly path:{
|
|
29
|
-
readonly type:"string";
|
|
30
|
-
readonly description:"Optional pm data root, equivalent to PM_PATH/global --path. Leave unset for real repository tracking.";
|
|
31
|
-
};
|
|
32
|
-
readonly author:{
|
|
33
|
-
readonly type:"string";
|
|
34
|
-
readonly description:"Optional mutation author override. Otherwise pm uses PM_AUTHOR, project settings, or detected harness identity.";
|
|
35
|
-
};
|
|
36
|
-
readonly tokenAccounting:{
|
|
37
|
-
readonly type:"boolean";
|
|
38
|
-
readonly description:"Attach the same bounded per-section token-cost receipt emitted by CLI --token-accounting.";
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
readonly additionalProperties:true;
|
|
42
|
-
};
|
|
20
|
+
export declare const TOOL_SCHEMA_BASE:{readonly type:"object";readonly properties:{readonly cwd:{readonly type:"string";readonly description:"Workspace directory to run the native pm operation in. Defaults to the MCP server process cwd.";};readonly path:{readonly type:"string";readonly description:"Optional pm data root, equivalent to PM_PATH/global --path. Leave unset for real repository tracking.";};readonly author:{readonly type:"string";readonly description:"Optional mutation author override. Otherwise pm uses PM_AUTHOR, project settings, or detected harness identity.";};readonly tokenAccounting:{readonly type:"boolean";readonly description:"Attach the same bounded per-section token-cost receipt emitted by CLI --token-accounting.";};};readonly additionalProperties:true;};
|
|
43
21
|
/** Canonical SDK action backing each dedicated MCP tool schema. */
|
|
44
22
|
export declare const NARROW_TOOL_ACTIONS:Readonly<Record<string,PmToolAction>>;
|
|
45
23
|
/**
|
|
@@ -49,7 +27,7 @@ export declare const NARROW_TOOL_ACTIONS:Readonly<Record<string,PmToolAction>>;
|
|
|
49
27
|
*/
|
|
50
28
|
export declare const TOOLS:ToolDefinition[];
|
|
51
29
|
/** Stable projection of one MCP tool definition for the contract golden file (pm-4os2): tool name, description, required top-level fields, and the full inputSchema shape. Any drift (typo'd property, dropped required field, changed TOOL_SCHEMA_BASE) shows up in `pnpm contracts:check`. */
|
|
52
|
-
export interface McpToolContract
|
|
30
|
+
export interface McpToolContract{
|
|
53
31
|
/** Value that configures or reports name for this contract. */
|
|
54
32
|
name:string;
|
|
55
33
|
/** Value that configures or reports description for this contract. */
|
|
@@ -57,7 +35,6 @@ description:string;
|
|
|
57
35
|
/** Value that configures or reports required for this contract. */
|
|
58
36
|
required:string[];
|
|
59
37
|
/** Value that configures or reports input schema for this contract. */
|
|
60
|
-
input_schema:Record<string,unknown>;
|
|
61
|
-
}
|
|
38
|
+
input_schema:Record<string,unknown>;}
|
|
62
39
|
/** Implements build mcp tool contracts for the public runtime surface of this module. */
|
|
63
|
-
export declare function buildMcpToolContracts():McpToolContract[];
|
|
40
|
+
export declare function buildMcpToolContracts():McpToolContract[];
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* blocker or ready-work classifications without storage or rendering side
|
|
8
8
|
* effects.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export{ACTIONABILITY_ORDERING_KINDS,collectBlockedByIds,collectBlockedByIdsFromCorpus,collectDependencyBlockedIds,computeActionabilityReport,indexBlockedByIds,resolveItemBlockers,resolveItemExecutionRole,selectActionableEntries,type ActionabilitySelectionOptions,type ActionabilityReport,type ActionableEntry,type ResolvedBlocker,}from "../core/item/actionability.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** A closed-domain refusal that can be executed and recovered automatically. */
|
|
2
|
-
export interface PmClosedDomainContract
|
|
2
|
+
export interface PmClosedDomainContract{
|
|
3
3
|
/** Stable assurance identity. */
|
|
4
4
|
probe_id:string;
|
|
5
5
|
/** Public command accepting the constrained flag. */
|
|
@@ -15,11 +15,10 @@ allowed_values:readonly string[];
|
|
|
15
15
|
/** Exact argv expected in the refusal's executable recovery. */
|
|
16
16
|
suggested_retry_args:readonly string[];
|
|
17
17
|
/** Stable machine-readable error code that owns the refusal. */
|
|
18
|
-
error_code:"package_upgrade_modes_mutually_exclusive"
|
|
18
|
+
error_code:"package_upgrade_modes_mutually_exclusive"|"projection_options_mutually_exclusive"|"unknown_context_intent"|"unknown_field_projection";
|
|
19
19
|
/** Whether a complete accepted-value domain is required in the refusal. */
|
|
20
|
-
allowed_values_required?:boolean;
|
|
21
|
-
}
|
|
20
|
+
allowed_values_required?:boolean;}
|
|
22
21
|
/** Return the complete stable core refusal corpus shared by every public surface. */
|
|
23
22
|
export declare function listCoreClosedDomainContracts():PmClosedDomainContract[];
|
|
24
23
|
/** Render a compact but complete core-domain description for command help. */
|
|
25
|
-
export declare function renderPmClosedDomainHelp(command:string,flag:"--fields"
|
|
24
|
+
export declare function renderPmClosedDomainHelp(command:string,flag:"--fields"|"--for"):string;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{resolveLinkedResourcePositionalRecovery}from "./linked-resource-recovery.js";
|
|
2
2
|
/** Explain unsupported lifecycle verbs using declared mutation flags, without authorizing or executing a guessed mutation. */
|
|
3
|
-
export declare function resolveLifecycleVerbRecovery(verb:string,availablePaths:readonly string[]):{
|
|
4
|
-
examples:string[][];
|
|
5
|
-
nextSteps:string[];
|
|
6
|
-
} | undefined;
|
|
3
|
+
export declare function resolveLifecycleVerbRecovery(verb:string,availablePaths:readonly string[]):{examples:string[][];nextSteps:string[];}|undefined;
|
|
7
4
|
/** Completeness controls one read command declares, derived from its read-output surface and flag contracts. */
|
|
8
|
-
export interface ReadCompletenessControls
|
|
5
|
+
export interface ReadCompletenessControls{
|
|
9
6
|
/** Canonical read-output surface. */
|
|
10
7
|
command:string;
|
|
11
8
|
/** Projection modes the command spells as boolean `--<mode>` flags. */
|
|
@@ -13,21 +10,20 @@ modes:string[];
|
|
|
13
10
|
/** Closed `--depth` value domain, empty when the command declares no detail depth. */
|
|
14
11
|
depth_values:string[];
|
|
15
12
|
/** Every declared flag spelling, used to refuse corrections for options the command already accepts. */
|
|
16
|
-
declared_flags:string[];
|
|
17
|
-
}
|
|
13
|
+
declared_flags:string[];}
|
|
18
14
|
/** Resolve the completeness spellings a read command accepts, so recovery never guesses from another command's vocabulary. */
|
|
19
|
-
export declare function resolveReadCompletenessControls(commandName:string):ReadCompletenessControls
|
|
15
|
+
export declare function resolveReadCompletenessControls(commandName:string):ReadCompletenessControls|undefined;
|
|
20
16
|
/** Render one command's completeness controls as the flags an agent can type on that same command. */
|
|
21
17
|
export declare function describeReadCompletenessControls(controls:ReadCompletenessControls):string;
|
|
22
18
|
/** Derive a same-command read retry for known completeness and encoding mistakes without discarding intent. */
|
|
23
|
-
export declare function resolveReadOptionRetryArgs(commandName:string,invocationArgv:readonly string[],unknownOption:string):string[]
|
|
19
|
+
export declare function resolveReadOptionRetryArgs(commandName:string,invocationArgv:readonly string[],unknownOption:string):string[]|undefined;
|
|
24
20
|
/** Identify presentation intent that must not be silently dropped from an unknown-option retry. */
|
|
25
21
|
export declare function isReadProjectionRecoveryFlag(flag:string):boolean;
|
|
26
22
|
/** Keep lexical corrections within read projection or mutation receipt semantics. */
|
|
27
23
|
export declare function isCompatibleRecoveryFlag(requested:string,candidate:string):boolean;
|
|
28
24
|
/** Resolve a recovery command without interpreting global option values as command tokens. */
|
|
29
|
-
export declare function resolveRecoveryCommandName(invocationArgv:string[]
|
|
25
|
+
export declare function resolveRecoveryCommandName(invocationArgv:string[]|undefined):string|undefined;
|
|
30
26
|
/** Resolve the truthful placeholder for a missing flag from its contract. */
|
|
31
|
-
export declare function resolveMissingOptionPlaceholder(commandName:string,missingLabel:string):string
|
|
27
|
+
export declare function resolveMissingOptionPlaceholder(commandName:string,missingLabel:string):string|null|undefined;
|
|
32
28
|
/** Preserve an attempted argv vector and insert each missing option before `--`. */
|
|
33
|
-
export declare function renderMissingOptionRetry(invocationArgv:string[],commandName:string,missingLabels:string[]):string
|
|
29
|
+
export declare function renderMissingOptionRetry(invocationArgv:string[],commandName:string,missingLabels:string[]):string|undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Resolve the longest exact misplaced suffix under registered namespaces only when one canonical command owns it. */
|
|
2
|
-
export declare function resolveMisnestedCommandPath(unknownPath:string,availablePaths:readonly string[]):string
|
|
2
|
+
export declare function resolveMisnestedCommandPath(unknownPath:string,availablePaths:readonly string[]):string|undefined;
|
|
3
3
|
/** Score one command path for a guessed command token; lower is better. */
|
|
4
4
|
export declare function scoreCommandPathMatch(commandPath:string,queryToken:string):number;
|
|
5
5
|
/** Rank available command paths for one guessed token. */
|
|
@@ -9,4 +9,4 @@ export declare function rankCommandPaths(commandPaths:string[],queryToken:string
|
|
|
9
9
|
* A query token prefers known semantic matches over weaker spelling guesses after
|
|
10
10
|
* unavailable replacements have been removed.
|
|
11
11
|
*/
|
|
12
|
-
export declare function canonicalizeCommandSuggestions(candidates:readonly string[],availablePaths:readonly string[],queryToken?:string):string[];
|
|
12
|
+
export declare function canonicalizeCommandSuggestions(candidates:readonly string[],availablePaths:readonly string[],queryToken?:string):string[];
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
* truthful answer that the collection is intentionally empty.
|
|
8
8
|
*/
|
|
9
9
|
/** Return the explicit-empty flag for a repeatable create option. */
|
|
10
|
-
export declare function resolveCreateExplicitEmptyFlag(optionKey:string):string
|
|
10
|
+
export declare function resolveCreateExplicitEmptyFlag(optionKey:string):string|undefined;
|
|
11
11
|
/** Return whether a create option can be satisfied by an explicit empty set. */
|
|
12
|
-
export declare function supportsCreateExplicitEmpty(optionKey:string):boolean;
|
|
12
|
+
export declare function supportsCreateExplicitEmpty(optionKey:string):boolean;
|
|
@@ -6,23 +6,21 @@
|
|
|
6
6
|
* spellings, so config discovery is useful without leaking historical names.
|
|
7
7
|
*/
|
|
8
8
|
/** Persisted legacy-author interpretation vocabulary. */
|
|
9
|
-
export interface AgentIdentityVocabulary
|
|
9
|
+
export interface AgentIdentityVocabulary{
|
|
10
10
|
/** Monotonic interpretation revision. */
|
|
11
11
|
version:number;
|
|
12
12
|
/** Exact legacy author spelling to canonical harness namespace. */
|
|
13
|
-
aliases:Record<string,string>;
|
|
14
|
-
}
|
|
13
|
+
aliases:Record<string,string>;}
|
|
15
14
|
/** Privacy-safe vocabulary projection used by config get/list/export. */
|
|
16
|
-
export interface AgentIdentityVocabularySummary
|
|
15
|
+
export interface AgentIdentityVocabularySummary{
|
|
17
16
|
/** Current interpretation revision. */
|
|
18
17
|
version:number;
|
|
19
18
|
/** Number of exact legacy spellings configured. */
|
|
20
|
-
alias_count:number;
|
|
21
|
-
}
|
|
19
|
+
alias_count:number;}
|
|
22
20
|
/** Supported vocabulary mutations. */
|
|
23
|
-
export type AgentIdentityVocabularyOperation
|
|
21
|
+
export type AgentIdentityVocabularyOperation="add"|"remove"|"clear";
|
|
24
22
|
/** One typed vocabulary mutation and optional residual-coverage census. */
|
|
25
|
-
export interface AgentIdentityVocabularyMutationInput
|
|
23
|
+
export interface AgentIdentityVocabularyMutationInput{
|
|
26
24
|
/** Exact operation applied to the vocabulary. */
|
|
27
25
|
operation:AgentIdentityVocabularyOperation;
|
|
28
26
|
/** Exact legacy spelling required by add/remove. */
|
|
@@ -30,10 +28,9 @@ legacy_author?:string;
|
|
|
30
28
|
/** Canonical lowercase harness namespace required by add. */
|
|
31
29
|
canonical_harness?:string;
|
|
32
30
|
/** Optional bounded author census used only to count still-unmapped values. */
|
|
33
|
-
observed_authors?:readonly string[];
|
|
34
|
-
}
|
|
31
|
+
observed_authors?:readonly string[];}
|
|
35
32
|
/** Privacy-safe dry-run or committed mutation preview. */
|
|
36
|
-
export interface AgentIdentityVocabularyMutationPreview
|
|
33
|
+
export interface AgentIdentityVocabularyMutationPreview{
|
|
37
34
|
/** Operation that was evaluated. */
|
|
38
35
|
operation:AgentIdentityVocabularyOperation;
|
|
39
36
|
/** Whether persistence would change. */
|
|
@@ -45,19 +42,17 @@ version_after:number;
|
|
|
45
42
|
/** Alias count after the operation. */
|
|
46
43
|
alias_count:number;
|
|
47
44
|
/** Unique non-canonical authors not covered after the operation. */
|
|
48
|
-
residual_author_count:number;
|
|
49
|
-
}
|
|
45
|
+
residual_author_count:number;}
|
|
50
46
|
/** Planned vocabulary plus a privacy-safe result preview. */
|
|
51
|
-
export interface AgentIdentityVocabularyMutationPlan
|
|
47
|
+
export interface AgentIdentityVocabularyMutationPlan{
|
|
52
48
|
/** Complete value suitable for settings persistence. */
|
|
53
49
|
vocabulary:AgentIdentityVocabulary;
|
|
54
50
|
/** Public mutation result with no alias spellings. */
|
|
55
|
-
preview:AgentIdentityVocabularyMutationPreview;
|
|
56
|
-
}
|
|
51
|
+
preview:AgentIdentityVocabularyMutationPreview;}
|
|
57
52
|
/** Return only the revision and count suitable for config discovery surfaces. */
|
|
58
|
-
export declare function summarizeAgentIdentityVocabulary(vocabulary:AgentIdentityVocabulary
|
|
53
|
+
export declare function summarizeAgentIdentityVocabulary(vocabulary:AgentIdentityVocabulary|undefined):AgentIdentityVocabularySummary;
|
|
59
54
|
/**
|
|
60
55
|
* Validate and plan one exact mutation. A real change increments the revision
|
|
61
56
|
* exactly once; identical adds and absent removes are idempotent.
|
|
62
57
|
*/
|
|
63
|
-
export declare function planAgentIdentityVocabularyMutation(current:AgentIdentityVocabulary
|
|
58
|
+
export declare function planAgentIdentityVocabularyMutation(current:AgentIdentityVocabulary|undefined,input:AgentIdentityVocabularyMutationInput):AgentIdentityVocabularyMutationPlan;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Result of normalizing one item-addressed invocation. */
|
|
2
|
-
export interface ItemAddressInvocationResult
|
|
2
|
+
export interface ItemAddressInvocationResult{
|
|
3
3
|
/** Canonical argv with an `--id` value moved into positional-id location. */
|
|
4
4
|
argv:string[];
|
|
5
5
|
/** Whether argv changed. */
|
|
@@ -7,13 +7,12 @@ changed:boolean;
|
|
|
7
7
|
/** Whether both positional and named item ids were supplied. */
|
|
8
8
|
conflict:boolean;
|
|
9
9
|
/** Resolved named item id when one was present. */
|
|
10
|
-
itemId?:string;
|
|
11
|
-
}
|
|
10
|
+
itemId?:string;}
|
|
12
11
|
/** Return whether a command participates in the shared item-id alias contract. */
|
|
13
|
-
export declare function supportsItemIdAlias(commandName:string
|
|
12
|
+
export declare function supportsItemIdAlias(commandName:string|undefined):boolean;
|
|
14
13
|
/**
|
|
15
14
|
* Normalize `pm <command> --id <value>` to the command's positional id form.
|
|
16
15
|
* The transformation is lossless for every other argument and reports a
|
|
17
16
|
* conflict instead of guessing when both forms are present.
|
|
18
17
|
*/
|
|
19
|
-
export declare function normalizeItemAddressInvocation(argv:string[]):ItemAddressInvocationResult;
|
|
18
|
+
export declare function normalizeItemAddressInvocation(argv:string[]):ItemAddressInvocationResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Recovery retains supplied values; missing test commands never become executable placeholders. */
|
|
2
|
-
export interface LinkedResourcePositionalRecovery
|
|
2
|
+
export interface LinkedResourcePositionalRecovery{
|
|
3
3
|
/** Item operand retained in templates when the actual test command is missing. */
|
|
4
4
|
itemId:string;
|
|
5
5
|
/** Misplaced path, command or metadata value. */
|
|
@@ -7,7 +7,6 @@ value:string;
|
|
|
7
7
|
/** Exact retry, absent when the caller must supply the actual test command. */
|
|
8
8
|
retryArgs?:string[];
|
|
9
9
|
/** Original-scope template whose actual-command placeholder must be filled before replay. */
|
|
10
|
-
templateArgs?:string[];
|
|
11
|
-
}
|
|
10
|
+
templateArgs?:string[];}
|
|
12
11
|
/** Repair object-first resource syntax without guessing command names or combining mutations. */
|
|
13
|
-
export declare function resolveLinkedResourcePositionalRecovery(command:string
|
|
12
|
+
export declare function resolveLinkedResourcePositionalRecovery(command:string|undefined,argv:readonly string[]):LinkedResourcePositionalRecovery|undefined;
|
|
@@ -5,26 +5,23 @@
|
|
|
5
5
|
* corpus. Missing proof remains an explicit row; no catalog code disappears
|
|
6
6
|
* merely because it has not yet received a probe.
|
|
7
7
|
*/
|
|
8
|
-
import type
|
|
9
|
-
import type { PmClosedDomainContract } from "./closed-domain-contracts.js";
|
|
10
|
-
import type { PmGrammarRefusalContract } from "./refusal-corpus-contracts.js";
|
|
8
|
+
import type{PmErrorCodeContract}from "../error-code-catalog.js";import type{PmClosedDomainContract}from "./closed-domain-contracts.js";import type{PmGrammarRefusalContract}from "./refusal-corpus-contracts.js";
|
|
11
9
|
/** Evidence family that makes an error code executable. */
|
|
12
|
-
export type PmRefusalEvidenceKind
|
|
10
|
+
export type PmRefusalEvidenceKind="owned_state"|"closed_domain"|"grammar";
|
|
13
11
|
/** One complete-catalog closure row. */
|
|
14
|
-
export interface PmRefusalClosureCensusRow
|
|
12
|
+
export interface PmRefusalClosureCensusRow{
|
|
15
13
|
/** Declared machine-readable error code. */
|
|
16
14
|
code:string;
|
|
17
15
|
/** Canonical compatibility-group code. */
|
|
18
16
|
canonical_code:string;
|
|
19
17
|
/** Whether at least one executable probe reaches the compatibility group. */
|
|
20
|
-
disposition:"executable"
|
|
18
|
+
disposition:"executable"|"uncovered";
|
|
21
19
|
/** Evidence families contributing executable probes. */
|
|
22
20
|
evidence_kinds:PmRefusalEvidenceKind[];
|
|
23
21
|
/** Stable executable probe identities. */
|
|
24
|
-
probe_ids:string[];
|
|
25
|
-
}
|
|
22
|
+
probe_ids:string[];}
|
|
26
23
|
/** Full emitted-vocabulary refusal closure receipt. */
|
|
27
|
-
export interface PmRefusalClosureCensusReport
|
|
24
|
+
export interface PmRefusalClosureCensusReport{
|
|
28
25
|
/** True only when every catalog code belongs to a probed compatibility group. */
|
|
29
26
|
ok:boolean;
|
|
30
27
|
/** Number of emitted codes in the catalog. */
|
|
@@ -42,29 +39,20 @@ grammar_probe_count:number;
|
|
|
42
39
|
/** Stable complete list of codes without executable evidence. */
|
|
43
40
|
uncovered_error_codes:string[];
|
|
44
41
|
/** Exactly one row for every catalog code. */
|
|
45
|
-
rows:PmRefusalClosureCensusRow[];
|
|
46
|
-
}
|
|
42
|
+
rows:PmRefusalClosureCensusRow[];}
|
|
47
43
|
/** @deprecated Historical v1 floor retained for SDK compatibility. */
|
|
48
|
-
export declare const PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE
|
|
44
|
+
export declare const PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE=16;
|
|
49
45
|
/** @deprecated Historical v1 identities retained for SDK compatibility. */
|
|
50
|
-
export declare const PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE:readonly
|
|
46
|
+
export declare const PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE:readonly["bulk_ids_input_empty","bulk_ids_input_missing_path","bulk_ids_input_unreadable","invalid_argument_value","missing_lifecycle_target","missing_required_argument","projection_options_mutually_exclusive","tracker_not_initialized","tracker_root_missing","tracker_root_not_directory","tracker_root_unreadable","unknown_context_intent","unknown_field_projection","unknown_option","unknown_subcommand"];
|
|
51
47
|
/** Reviewed v2 floor of 18 catalog rows across 17 canonical groups. */
|
|
52
|
-
export declare const PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE_V2
|
|
48
|
+
export declare const PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE_V2=18;
|
|
53
49
|
/** V2 canonical identities that must retain executable evidence. */
|
|
54
50
|
export declare const PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE_V2:readonly string[];
|
|
55
51
|
/** Ratchet receipt that prevents catalog growth from erasing proven closure. */
|
|
56
|
-
export declare function verifyPmRefusalClosureRatchet(report:PmRefusalClosureCensusReport,baseline?:number):{
|
|
57
|
-
ok:boolean;
|
|
58
|
-
baseline:number;
|
|
59
|
-
actual:number;
|
|
60
|
-
};
|
|
52
|
+
export declare function verifyPmRefusalClosureRatchet(report:PmRefusalClosureCensusReport,baseline?:number):{ok:boolean;baseline:number;actual:number;};
|
|
61
53
|
/** Ratchet canonical compatibility-group identities independently from counts. */
|
|
62
|
-
export declare function verifyPmRefusalClosureIdentityRatchet(report:PmRefusalClosureCensusReport,requiredCanonicalCodes?:readonly string[]):{
|
|
63
|
-
ok:boolean;
|
|
64
|
-
required_canonical_codes:string[];
|
|
65
|
-
missing_required_canonical_codes:string[];
|
|
66
|
-
};
|
|
54
|
+
export declare function verifyPmRefusalClosureIdentityRatchet(report:PmRefusalClosureCensusReport,requiredCanonicalCodes?:readonly string[]):{ok:boolean;required_canonical_codes:string[];missing_required_canonical_codes:string[];};
|
|
67
55
|
/** Build the complete closure join without silently omitting uncovered codes. */
|
|
68
56
|
export declare function buildPmRefusalClosureCensus(catalog:readonly PmErrorCodeContract[],closedDomains:readonly PmClosedDomainContract[],grammar:readonly PmGrammarRefusalContract[]):PmRefusalClosureCensusReport;
|
|
69
57
|
/** Render the complete census for generated documentation and review evidence. */
|
|
70
|
-
export declare function renderPmRefusalClosureCensusMarkdown(report:PmRefusalClosureCensusReport):string;
|
|
58
|
+
export declare function renderPmRefusalClosureCensusMarkdown(report:PmRefusalClosureCensusReport):string;
|