@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
package/dist/sdk/completion.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type{CompletionResult,CompletionRuntimeConfig}from "./completion/shared.js";
|
|
2
2
|
/** Implements run completion for the public runtime surface of this module. */
|
|
3
|
-
export declare function runCompletion(shell:string,itemTypes?:string[],tags?:string[],eagerTagExpansion?:boolean,runtime?:CompletionRuntimeConfig):CompletionResult;
|
|
4
|
-
export { generateBashScript } from "./completion/bash.js";
|
|
5
|
-
export { generateFishScript } from "./completion/fish.js";
|
|
6
|
-
export type { CompletionResult,CompletionRuntimeConfig,CompletionShell } from "./completion/shared.js";
|
|
7
|
-
export { generateZshScript } from "./completion/zsh.js";
|
|
3
|
+
export declare function runCompletion(shell:string,itemTypes?:string[],tags?:string[],eagerTagExpansion?:boolean,runtime?:CompletionRuntimeConfig):CompletionResult;export{generateBashScript}from "./completion/bash.js";export{generateFishScript}from "./completion/fish.js";export type{CompletionResult,CompletionRuntimeConfig,CompletionShell}from "./completion/shared.js";export{generateZshScript}from "./completion/zsh.js";
|
package/dist/sdk/compose.d.ts
CHANGED
|
@@ -25,15 +25,7 @@
|
|
|
25
25
|
* declarative (`composeExtension`) authoring styles live together. Both are
|
|
26
26
|
* re-exported from the SDK barrel, so the public API is unchanged.
|
|
27
27
|
*/
|
|
28
|
-
import type
|
|
29
|
-
import type { ExtensionActivationSummary } from "../core/extensions/activation-summary.js";
|
|
30
|
-
import type { ProjectProfileRegistrationInput } from "../core/profile/profile-presets.js";
|
|
31
|
-
import type { PmMaxVersionExceededMode } from "../core/extensions/extension-types.js";
|
|
32
|
-
import type { RelationshipKindDefinition } from "./relationships.js";
|
|
33
|
-
import { type PmVersionBoundKind } from "../core/extensions/version-compat.js";
|
|
34
|
-
import { inspectExtensionManifestSchema,lintExtensionManifestSchema,type ExtensionManifestSchemaFinding,type ExtensionManifestSchemaInspection,type ExtensionManifestSchemaLintResult } from "../core/extensions/manifest-schema.js";
|
|
35
|
-
export { inspectExtensionManifestSchema,lintExtensionManifestSchema };
|
|
36
|
-
export type { ExtensionManifestSchemaFinding,ExtensionManifestSchemaInspection,ExtensionManifestSchemaLintResult,};
|
|
28
|
+
import type{AfterCommandHook,BeforeCommandHook,BeforeMutationHook,CommandDefinition,CommandOverride,ExtensionApi,ExtensionCapability,ExtensionManifest,ExtensionServiceName,Exporter,ExporterRegistrationOptions,FlagDefinition,ImportExportRegistrationOptions,Importer,OnIndexHook,OnReadHook,OnWriteHook,OutputRendererFormat,ParserOverride,PreflightOverride,ScopedPreflightOverrideDefinition,RendererOverride,ScopedRendererOverrideDefinition,SchemaFieldDefinition,SchemaItemTypeDefinition,SchemaMigrationDefinition,SearchProviderDefinition,ServiceOverride,VectorStoreAdapterDefinition,AssuranceMeasurementProviderDefinition}from "../core/extensions/loader.js";import type{ExtensionActivationSummary}from "../core/extensions/activation-summary.js";import type{ProjectProfileRegistrationInput}from "../core/profile/profile-presets.js";import type{PmMaxVersionExceededMode}from "../core/extensions/extension-types.js";import type{RelationshipKindDefinition}from "./relationships.js";import{type PmVersionBoundKind}from "../core/extensions/version-compat.js";import{inspectExtensionManifestSchema,lintExtensionManifestSchema,type ExtensionManifestSchemaFinding,type ExtensionManifestSchemaInspection,type ExtensionManifestSchemaLintResult}from "../core/extensions/manifest-schema.js";export{inspectExtensionManifestSchema,lintExtensionManifestSchema};export type{ExtensionManifestSchemaFinding,ExtensionManifestSchemaInspection,ExtensionManifestSchemaLintResult,};
|
|
37
29
|
/**
|
|
38
30
|
* Documents the extension module payload exchanged by command, SDK, and package integrations.
|
|
39
31
|
*
|
|
@@ -42,7 +34,7 @@ export type { ExtensionManifestSchemaFinding,ExtensionManifestSchemaInspection,E
|
|
|
42
34
|
* via {@link defineExtension} for the imperative style, or via
|
|
43
35
|
* {@link composeExtension} for the declarative style.
|
|
44
36
|
*/
|
|
45
|
-
export interface ExtensionModule
|
|
37
|
+
export interface ExtensionModule{
|
|
46
38
|
/**
|
|
47
39
|
* Optional in-module metadata mirror.
|
|
48
40
|
*
|
|
@@ -53,10 +45,9 @@ export interface ExtensionModule {
|
|
|
53
45
|
*/
|
|
54
46
|
manifest?:ExtensionManifest;
|
|
55
47
|
/** Registers this package's commands, actions, and runtime hooks with the host. */
|
|
56
|
-
activate(api:ExtensionApi):void
|
|
48
|
+
activate(api:ExtensionApi):void|Promise<void>;
|
|
57
49
|
/** Optional teardown lifecycle hook (VS Code-style `deactivate`). Invoked by the host on shutdown/reload to release resources opened during `activate`. */
|
|
58
|
-
deactivate?():void
|
|
59
|
-
}
|
|
50
|
+
deactivate?():void|Promise<void>;}
|
|
60
51
|
/**
|
|
61
52
|
* Typed identity helper for extension module exports.
|
|
62
53
|
*
|
|
@@ -71,33 +62,31 @@ export declare function defineExtension<TModule extends ExtensionModule>(module:
|
|
|
71
62
|
* A single importer registration entry for an {@link ExtensionBlueprint}, mirroring
|
|
72
63
|
* the positional arguments of `api.registerImporter(name, importer, options?)`.
|
|
73
64
|
*/
|
|
74
|
-
export interface ExtensionBlueprintImporter
|
|
65
|
+
export interface ExtensionBlueprintImporter{
|
|
75
66
|
/** Registered importer name; the `<name> import` command path is derived from it. */
|
|
76
67
|
name:string;
|
|
77
68
|
/** The importer handler that bridges an external system into the pm context graph. */
|
|
78
69
|
importer:Importer;
|
|
79
70
|
/** Optional command metadata (description/flags/intent/examples) for the derived command. */
|
|
80
|
-
options?:ImportExportRegistrationOptions;
|
|
81
|
-
}
|
|
71
|
+
options?:ImportExportRegistrationOptions;}
|
|
82
72
|
/**
|
|
83
73
|
* A single exporter registration entry for an {@link ExtensionBlueprint}, mirroring
|
|
84
74
|
* the positional arguments of `api.registerExporter(name, exporter, options?)`.
|
|
85
75
|
*/
|
|
86
|
-
export interface ExtensionBlueprintExporter
|
|
76
|
+
export interface ExtensionBlueprintExporter{
|
|
87
77
|
/** Registered exporter name; the `<name> export` command path is derived from it. */
|
|
88
78
|
name:string;
|
|
89
79
|
/** The exporter handler that bridges the pm context graph out to an external system. */
|
|
90
80
|
exporter:Exporter;
|
|
91
81
|
/** Optional command metadata and artifact-output delivery policy for the derived command. */
|
|
92
|
-
options?:ExporterRegistrationOptions;
|
|
93
|
-
}
|
|
82
|
+
options?:ExporterRegistrationOptions;}
|
|
94
83
|
/**
|
|
95
84
|
* The lifecycle hooks an {@link ExtensionBlueprint} can register, one array per
|
|
96
85
|
* kind. Each entry is registered through the matching `api.hooks.*` method in
|
|
97
86
|
* the canonical order `before_command → after_command → on_write → on_read →
|
|
98
87
|
* on_index`.
|
|
99
88
|
*/
|
|
100
|
-
export interface ExtensionBlueprintHooks
|
|
89
|
+
export interface ExtensionBlueprintHooks{
|
|
101
90
|
/** Hooks fired before a command runs (`api.hooks.beforeCommand`). */
|
|
102
91
|
beforeCommand?:BeforeCommandHook[];
|
|
103
92
|
/** Transactional guards fired before item and history persistence (`api.hooks.beforeMutation`). */
|
|
@@ -109,8 +98,7 @@ onWrite?:OnWriteHook[];
|
|
|
109
98
|
/** Hooks fired when an item is read (`api.hooks.onRead`). */
|
|
110
99
|
onRead?:OnReadHook[];
|
|
111
100
|
/** Hooks fired during index/search refresh (`api.hooks.onIndex`). */
|
|
112
|
-
onIndex?:OnIndexHook[];
|
|
113
|
-
}
|
|
101
|
+
onIndex?:OnIndexHook[];}
|
|
114
102
|
/**
|
|
115
103
|
* A declarative description of everything an extension registers at activation.
|
|
116
104
|
*
|
|
@@ -124,7 +112,7 @@ onIndex?:OnIndexHook[];
|
|
|
124
112
|
* Record-keyed fields map a routing key (command name, output format, or service
|
|
125
113
|
* name) to its handler, mirroring the two-argument `api.register*` overloads.
|
|
126
114
|
*/
|
|
127
|
-
export interface ExtensionBlueprint
|
|
115
|
+
export interface ExtensionBlueprint{
|
|
128
116
|
/** Optional in-module manifest mirror, copied onto the produced module verbatim. */
|
|
129
117
|
manifest?:ExtensionManifest;
|
|
130
118
|
/** Full command definitions registered via `api.registerCommand(definition)`. */
|
|
@@ -136,11 +124,11 @@ flags?:Record<string,FlagDefinition[]>;
|
|
|
136
124
|
/** Parser overrides keyed by command name, registered via `api.registerParser(command, override)`. */
|
|
137
125
|
parsers?:Record<string,ParserOverride>;
|
|
138
126
|
/** Output renderer overrides keyed by format, registered via `api.registerRenderer(format, renderer)`. */
|
|
139
|
-
renderers?:Partial<Record<OutputRendererFormat,RendererOverride
|
|
127
|
+
renderers?:Partial<Record<OutputRendererFormat,RendererOverride|ScopedRendererOverrideDefinition>>;
|
|
140
128
|
/** Service overrides keyed by service name, registered via `api.registerService(service, override)`. */
|
|
141
129
|
services?:Partial<Record<ExtensionServiceName,ServiceOverride>>;
|
|
142
130
|
/** Preflight overrides registered via `api.registerPreflight(override)`. */
|
|
143
|
-
preflights?:Array<PreflightOverride
|
|
131
|
+
preflights?:Array<PreflightOverride|ScopedPreflightOverrideDefinition>;
|
|
144
132
|
/** Custom item types registered in a single `api.registerItemTypes(types)` call. */
|
|
145
133
|
itemTypes?:SchemaItemTypeDefinition[];
|
|
146
134
|
/** Custom item-metadata fields registered in a single `api.registerItemFields(fields)` call. */
|
|
@@ -164,10 +152,9 @@ exporters?:ExtensionBlueprintExporter[];
|
|
|
164
152
|
/** Lifecycle hooks registered through `api.hooks.*`. */
|
|
165
153
|
hooks?:ExtensionBlueprintHooks;
|
|
166
154
|
/** Optional imperative escape hatch run *after* every declarative registration, for the rare wiring the blueprint cannot express. Receives the same `api`. */
|
|
167
|
-
activate?:(api:ExtensionApi)
|
|
155
|
+
activate?:(api:ExtensionApi)=> void|Promise<void>;
|
|
168
156
|
/** Optional teardown hook copied onto the produced module verbatim. */
|
|
169
|
-
deactivate?:()
|
|
170
|
-
}
|
|
157
|
+
deactivate?:()=> void|Promise<void>;}
|
|
171
158
|
/**
|
|
172
159
|
* Typed identity helper for a (partial) {@link ExtensionBlueprint} authored as its
|
|
173
160
|
* own module — the typed entry point of the modular declarative-authoring loop.
|
|
@@ -278,7 +265,7 @@ export declare function deriveExtensionCapabilities(blueprint:ExtensionBlueprint
|
|
|
278
265
|
*/
|
|
279
266
|
export declare function describeExtensionBlueprint(blueprint:ExtensionBlueprint):ExtensionActivationSummary;
|
|
280
267
|
/** Severity of an {@link ExtensionBlueprintLintFinding}: a hard `error` (activation will fail) or an advisory `warning`. */
|
|
281
|
-
export type ExtensionBlueprintLintSeverity
|
|
268
|
+
export type ExtensionBlueprintLintSeverity="error"|"warning";
|
|
282
269
|
/**
|
|
283
270
|
* Machine-readable kind of an {@link ExtensionBlueprintLintFinding}.
|
|
284
271
|
*
|
|
@@ -295,11 +282,11 @@ export type ExtensionBlueprintLintSeverity = "error" | "warning";
|
|
|
295
282
|
* - `manifest_capabilities_absent` (warning): the blueprint exercises capabilities
|
|
296
283
|
* but offers no declared set to reconcile against.
|
|
297
284
|
*/
|
|
298
|
-
export type ExtensionBlueprintLintCode
|
|
285
|
+
export type ExtensionBlueprintLintCode="capability_undeclared"|"capability_unused"|"duplicate_command"|"command_override_conflict"|"empty_surface"|"host_owned_flag_collision"|"malformed_long_flag"|"reserved_item_field"|"manifest_capabilities_absent";
|
|
299
286
|
/**
|
|
300
287
|
* A single author-time issue {@link lintExtensionBlueprint} found in a blueprint.
|
|
301
288
|
*/
|
|
302
|
-
export interface ExtensionBlueprintLintFinding
|
|
289
|
+
export interface ExtensionBlueprintLintFinding{
|
|
303
290
|
/** The machine-readable {@link ExtensionBlueprintLintCode} for programmatic handling. */
|
|
304
291
|
code:ExtensionBlueprintLintCode;
|
|
305
292
|
/** Whether the finding blocks activation (`error`) or is advisory (`warning`). */
|
|
@@ -311,19 +298,17 @@ capability?:ExtensionCapability;
|
|
|
311
298
|
/** The normalized command path involved, for command findings. */
|
|
312
299
|
command?:string;
|
|
313
300
|
/** The blueprint field involved, for `empty_surface` findings. */
|
|
314
|
-
field?:string;
|
|
315
|
-
}
|
|
301
|
+
field?:string;}
|
|
316
302
|
/**
|
|
317
303
|
* Options for {@link lintExtensionBlueprint} and {@link ../sdk/testing.js#assertExtensionBlueprint}.
|
|
318
304
|
*/
|
|
319
|
-
export interface LintExtensionBlueprintOptions
|
|
305
|
+
export interface LintExtensionBlueprintOptions{
|
|
320
306
|
/** The capabilities the package's `manifest.json` declares (or will), used to reconcile against the surfaces the blueprint exercises. Overrides `blueprint.manifest.capabilities` when both are present. Omit both to lint without a capability reconciliation (only the structural checks run). */
|
|
321
|
-
declaredCapabilities?:readonly string[];
|
|
322
|
-
}
|
|
307
|
+
declaredCapabilities?:readonly string[];}
|
|
323
308
|
/**
|
|
324
309
|
* The structured result of {@link lintExtensionBlueprint}.
|
|
325
310
|
*/
|
|
326
|
-
export interface ExtensionBlueprintLintResult
|
|
311
|
+
export interface ExtensionBlueprintLintResult{
|
|
327
312
|
/** `true` when no `error`-severity finding is present (warnings still allow activation). */
|
|
328
313
|
ok:boolean;
|
|
329
314
|
/** Every finding, in detection order (capability drift, duplicates, conflicts, empty surfaces). */
|
|
@@ -331,8 +316,7 @@ findings:ExtensionBlueprintLintFinding[];
|
|
|
331
316
|
/** The least-privilege capability set the blueprint exercises (from {@link deriveExtensionCapabilities}). */
|
|
332
317
|
used:ExtensionCapability[];
|
|
333
318
|
/** The normalized declared capability set reconciled against, or `null` when none was provided. */
|
|
334
|
-
declared:ExtensionCapability[]
|
|
335
|
-
}
|
|
319
|
+
declared:ExtensionCapability[]|null;}
|
|
336
320
|
/**
|
|
337
321
|
* Preflight a declarative {@link ExtensionBlueprint} at author time, returning the
|
|
338
322
|
* structured issues that would otherwise only surface at activation.
|
|
@@ -369,10 +353,9 @@ export declare function lintExtensionBlueprint(blueprint:ExtensionBlueprint,opti
|
|
|
369
353
|
* (engines, permissions, provenance, version floors/ceilings, sandbox profile,
|
|
370
354
|
* manifest version, activation, legacy aliases) are the author's to supply here.
|
|
371
355
|
*/
|
|
372
|
-
export interface SynthesizeExtensionManifestIdentity extends Omit<ExtensionManifest,"capabilities">
|
|
356
|
+
export interface SynthesizeExtensionManifestIdentity extends Omit<ExtensionManifest,"capabilities">{
|
|
373
357
|
/** Extra capabilities to grant beyond the blueprint's derived set, for surfaces registered through the blueprint's imperative `activate` escape hatch that static derivation cannot see (e.g. a renderer wired in `activate`). Each is legacy-alias resolved and normalized like a declared manifest capability; unknown names are dropped (the synthesized manifest is validated at load). */
|
|
374
|
-
additionalCapabilities?:readonly string[];
|
|
375
|
-
}
|
|
358
|
+
additionalCapabilities?:readonly string[];}
|
|
376
359
|
/**
|
|
377
360
|
* Generate a complete, least-privilege {@link ExtensionManifest} from a
|
|
378
361
|
* declarative {@link ExtensionBlueprint} and the author's identity fields.
|
|
@@ -399,7 +382,7 @@ export declare function synthesizeExtensionManifest(blueprint:ExtensionBlueprint
|
|
|
399
382
|
* The two generated halves of a shippable extension package, returned by
|
|
400
383
|
* {@link composeExtensionPackage}.
|
|
401
384
|
*/
|
|
402
|
-
export interface ExtensionPackage
|
|
385
|
+
export interface ExtensionPackage{
|
|
403
386
|
/**
|
|
404
387
|
* The runtime {@link ExtensionModule} to export as the package entry's default
|
|
405
388
|
* export. Its `manifest` mirror is set to the same {@link ExtensionPackage.manifest}
|
|
@@ -410,8 +393,7 @@ module:ExtensionModule;
|
|
|
410
393
|
* The complete least-privilege {@link ExtensionManifest} to write as the
|
|
411
394
|
* package's `manifest.json`, with `capabilities` derived from the blueprint.
|
|
412
395
|
*/
|
|
413
|
-
manifest:ExtensionManifest;
|
|
414
|
-
}
|
|
396
|
+
manifest:ExtensionManifest;}
|
|
415
397
|
/**
|
|
416
398
|
* Assemble both halves of a shippable extension package from one declarative
|
|
417
399
|
* {@link ExtensionBlueprint} and the author's identity fields — the author-once
|
|
@@ -437,12 +419,11 @@ export declare function composeExtensionPackage(blueprint:ExtensionBlueprint,ide
|
|
|
437
419
|
* The target a {@link checkExtensionManifestCompatibility} call evaluates a
|
|
438
420
|
* manifest's version bounds against.
|
|
439
421
|
*/
|
|
440
|
-
export interface ExtensionManifestCompatibilityTarget
|
|
422
|
+
export interface ExtensionManifestCompatibilityTarget{
|
|
441
423
|
/** The pm CLI version to check the manifest against, e.g. the running CLI's `version` or a version floor a package commits to supporting. Plain dotted-numeric (`2026.6.23`) or `v`-prefixed values are compared; anything uninterpretable yields an `unchecked` finding rather than a false verdict. */
|
|
442
424
|
pmVersion:string;
|
|
443
425
|
/** How a `pm_max_version` overrun is treated, mirroring the runtime `extensions.policy.pm_max_version_exceeded_mode`. `"block"` (the default) reports an exceeded upper bound as a blocking incompatibility; `"warn"` reports it as a non-blocking advisory, matching an operator who relaxed the gate during a CLI upgrade window. */
|
|
444
|
-
pmMaxVersionExceededMode?:PmMaxVersionExceededMode;
|
|
445
|
-
}
|
|
426
|
+
pmMaxVersionExceededMode?:PmMaxVersionExceededMode;}
|
|
446
427
|
/**
|
|
447
428
|
* The manifest fields {@link checkExtensionManifestCompatibility} evaluates.
|
|
448
429
|
*
|
|
@@ -450,12 +431,11 @@ pmMaxVersionExceededMode?:PmMaxVersionExceededMode;
|
|
|
450
431
|
* preflight the same malformed blank/non-string bounds (e.g. read from a JSON
|
|
451
432
|
* manifest) the loader's manifest parser rejects as `extension_manifest_invalid`.
|
|
452
433
|
*/
|
|
453
|
-
export interface ExtensionManifestCompatibilityManifest
|
|
434
|
+
export interface ExtensionManifestCompatibilityManifest{
|
|
454
435
|
/** Inclusive lower pm CLI version bound from `manifest.json`. */
|
|
455
436
|
pm_min_version?:unknown;
|
|
456
437
|
/** Inclusive upper pm CLI version bound from `manifest.json`. */
|
|
457
|
-
pm_max_version?:unknown;
|
|
458
|
-
}
|
|
438
|
+
pm_max_version?:unknown;}
|
|
459
439
|
/**
|
|
460
440
|
* The machine-readable kind of an {@link ExtensionManifestCompatibilityFinding},
|
|
461
441
|
* one per `<bound>_<outcome>` the loader can reach. Each mirrors a loader
|
|
@@ -463,18 +443,18 @@ pm_max_version?:unknown;
|
|
|
463
443
|
* load, while `*_unchecked`/`*_exceeded_warn` are advisory (the extension still
|
|
464
444
|
* loads).
|
|
465
445
|
*/
|
|
466
|
-
export type ExtensionManifestCompatibilityCode
|
|
446
|
+
export type ExtensionManifestCompatibilityCode="pm_min_version_invalid"|"pm_min_version_unchecked"|"pm_min_version_unmet"|"pm_max_version_invalid"|"pm_max_version_unchecked"|"pm_max_version_exceeded"|"pm_max_version_exceeded_warn"|"manifest_unknown_key"|"no_version_bounds_declared";
|
|
467
447
|
/**
|
|
468
448
|
* A single version-bound issue {@link checkExtensionManifestCompatibility} found
|
|
469
449
|
* when evaluating a manifest against a target pm version.
|
|
470
450
|
*/
|
|
471
|
-
export interface ExtensionManifestCompatibilityFinding
|
|
451
|
+
export interface ExtensionManifestCompatibilityFinding{
|
|
472
452
|
/** The machine-readable {@link ExtensionManifestCompatibilityCode} for programmatic handling. */
|
|
473
453
|
code:ExtensionManifestCompatibilityCode;
|
|
474
454
|
/** `error` when the bound blocks the load against the target version, `warning` when it is advisory. */
|
|
475
|
-
severity:"error"
|
|
455
|
+
severity:"error"|"warning";
|
|
476
456
|
/** Which manifest bound produced the finding. */
|
|
477
|
-
constraint:PmVersionBoundKind
|
|
457
|
+
constraint:PmVersionBoundKind|"manifest";
|
|
478
458
|
/** The declared bound value, verbatim. */
|
|
479
459
|
required:string;
|
|
480
460
|
/** The target pm version the bound was evaluated against. */
|
|
@@ -484,19 +464,17 @@ message:string;
|
|
|
484
464
|
/** JSON-style manifest location responsible for a schema-level finding. */
|
|
485
465
|
path?:string;
|
|
486
466
|
/** Canonical manifest key that replaces a recognized legacy or mistaken spelling. */
|
|
487
|
-
suggested_key?:"pm_min_version"
|
|
488
|
-
}
|
|
467
|
+
suggested_key?:"pm_min_version"|"pm_max_version";}
|
|
489
468
|
/**
|
|
490
469
|
* The structured result of {@link checkExtensionManifestCompatibility}.
|
|
491
470
|
*/
|
|
492
|
-
export interface ExtensionManifestCompatibilityResult
|
|
471
|
+
export interface ExtensionManifestCompatibilityResult{
|
|
493
472
|
/** `true` when no `error`-severity finding blocks the load against the target version. */
|
|
494
473
|
compatible:boolean;
|
|
495
474
|
/** Every schema and bound finding in stable evaluation order. */
|
|
496
475
|
findings:ExtensionManifestCompatibilityFinding[];
|
|
497
476
|
/** The target pm version the manifest was checked against, echoed back for messaging. */
|
|
498
|
-
pmVersion:string;
|
|
499
|
-
}
|
|
477
|
+
pmVersion:string;}
|
|
500
478
|
/**
|
|
501
479
|
* Check, without loading anything, whether an extension manifest's declared
|
|
502
480
|
* version bounds permit it to load on a given pm CLI version.
|
|
@@ -526,7 +504,7 @@ export declare function checkExtensionManifestCompatibility(manifest:ExtensionMa
|
|
|
526
504
|
* each one a check enables, so an author opts into exactly the stages whose
|
|
527
505
|
* inputs they can supply.
|
|
528
506
|
*/
|
|
529
|
-
export interface PreflightExtensionOptions
|
|
507
|
+
export interface PreflightExtensionOptions{
|
|
530
508
|
/**
|
|
531
509
|
* The author-supplied identity fields the blueprint cannot determine
|
|
532
510
|
* (`name`/`version`/`entry`/`priority`, version bounds, etc.). Provide them to
|
|
@@ -551,30 +529,28 @@ target?:ExtensionManifestCompatibilityTarget;
|
|
|
551
529
|
* `blueprint.manifest.capabilities`, so the blueprint's in-module mirror is
|
|
552
530
|
* linted by default.
|
|
553
531
|
*/
|
|
554
|
-
declaredCapabilities?:readonly string[];
|
|
555
|
-
}
|
|
532
|
+
declaredCapabilities?:readonly string[];}
|
|
556
533
|
/** Which preflight stage produced an {@link ExtensionPreflightFinding}. */
|
|
557
|
-
export type ExtensionPreflightFindingSource
|
|
534
|
+
export type ExtensionPreflightFindingSource="blueprint"|"compatibility";
|
|
558
535
|
/**
|
|
559
536
|
* A single finding in an {@link ExtensionPreflightReport}, flattened from one of
|
|
560
537
|
* the underlying stages and tagged with its {@link ExtensionPreflightFindingSource}
|
|
561
538
|
* so a consolidated report stays traceable to the check that raised it.
|
|
562
539
|
*/
|
|
563
|
-
export interface ExtensionPreflightFinding
|
|
540
|
+
export interface ExtensionPreflightFinding{
|
|
564
541
|
/** The stage that produced the finding: blueprint lint or version compatibility. */
|
|
565
542
|
source:ExtensionPreflightFindingSource;
|
|
566
543
|
/** Whether the finding blocks publish/activation (`error`) or is advisory (`warning`). */
|
|
567
544
|
severity:ExtensionBlueprintLintSeverity;
|
|
568
545
|
/** The underlying stage's machine-readable code, for programmatic handling. */
|
|
569
|
-
code:ExtensionBlueprintLintCode
|
|
546
|
+
code:ExtensionBlueprintLintCode|ExtensionManifestCompatibilityCode;
|
|
570
547
|
/** The underlying stage's human-readable explanation, verbatim. */
|
|
571
|
-
message:string;
|
|
572
|
-
}
|
|
548
|
+
message:string;}
|
|
573
549
|
/**
|
|
574
550
|
* The consolidated result of {@link preflightExtension}: every author-time stage's
|
|
575
551
|
* structured output plus a flattened, source-tagged finding list.
|
|
576
552
|
*/
|
|
577
|
-
export interface ExtensionPreflightReport
|
|
553
|
+
export interface ExtensionPreflightReport{
|
|
578
554
|
/** `true` when no `error`-severity finding appears across any stage (warnings still pass). */
|
|
579
555
|
ok:boolean;
|
|
580
556
|
/** The least-privilege capability set the blueprint exercises (from {@link deriveExtensionCapabilities}). */
|
|
@@ -582,12 +558,11 @@ capabilities:ExtensionCapability[];
|
|
|
582
558
|
/** The full {@link lintExtensionBlueprint} result (structural + capability-drift findings). */
|
|
583
559
|
blueprint:ExtensionBlueprintLintResult;
|
|
584
560
|
/** The manifest synthesized from `options.identity`, or `null` when no identity was supplied. */
|
|
585
|
-
manifest:ExtensionManifest
|
|
561
|
+
manifest:ExtensionManifest|null;
|
|
586
562
|
/** The {@link checkExtensionManifestCompatibility} result, or `null` when no `options.target` was supplied. */
|
|
587
|
-
compatibility:ExtensionManifestCompatibilityResult
|
|
563
|
+
compatibility:ExtensionManifestCompatibilityResult|null;
|
|
588
564
|
/** Every finding from all stages, blueprint-lint findings before compatibility findings, each tagged by `source`. This is the consolidated, curated view: when `options.identity` synthesizes the manifest without an explicit `declaredCapabilities` set, capability-drift findings the lint raised against the blueprint's now-superseded in-module `manifest` mirror are omitted here (the raw `blueprint` result still carries them). */
|
|
589
|
-
findings:ExtensionPreflightFinding[];
|
|
590
|
-
}
|
|
565
|
+
findings:ExtensionPreflightFinding[];}
|
|
591
566
|
/**
|
|
592
567
|
* Preflight a declarative {@link ExtensionBlueprint} through every author-time
|
|
593
568
|
* check in one call, returning a single consolidated {@link ExtensionPreflightReport}.
|
|
@@ -619,4 +594,4 @@ findings:ExtensionPreflightFinding[];
|
|
|
619
594
|
* `report.findings` (the raw `report.blueprint` result still reports them). Pair it
|
|
620
595
|
* with {@link ../sdk/testing.js#assertExtensionPreflight} to fail CI in one line.
|
|
621
596
|
*/
|
|
622
|
-
export declare function preflightExtension(blueprint:ExtensionBlueprint,options?:PreflightExtensionOptions):ExtensionPreflightReport;
|
|
597
|
+
export declare function preflightExtension(blueprint:ExtensionBlueprint,options?:PreflightExtensionOptions):ExtensionPreflightReport;
|
package/dist/sdk/config.d.ts
CHANGED
|
@@ -3,37 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Implements the pm config command surface and its agent-facing runtime behavior.
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import type { GlobalOptions } from "../core/shared/command-types.js";
|
|
9
|
-
import { type AgentIdentityVocabularyMutationPreview,type AgentIdentityVocabularySummary } from "./agent/identity-config.js";
|
|
10
|
-
import type { GovernanceCloseValidationDefault,GovernanceCreateModeDefault,GovernanceOwnershipEnforcement,GovernancePreset,GovernanceWorkflowEnforcement,ItemFormat,ParentReferencePolicy,SprintReleaseFormatPolicy,ValidateMetadataProfile,ValidateMetadataRequiredField } from "../types/index.js";
|
|
11
|
-
declare const CONFIG_SCOPE_VALUES:readonly ["project","global"];
|
|
12
|
-
type ConfigScope = (typeof CONFIG_SCOPE_VALUES)[number];
|
|
13
|
-
type ConfigAction = "get" | "set" | "list" | "export";
|
|
14
|
-
type HistoryMissingStreamPolicy = "auto_create" | "strict_error";
|
|
15
|
-
type TestResultTrackingPolicy = "enabled" | "disabled";
|
|
16
|
-
type TelemetryTrackingPolicy = "enabled" | "disabled";
|
|
17
|
-
type GovernanceForceRequiredForStaleLockPolicy = "enabled" | "disabled";
|
|
18
|
-
type GovernanceRequireCloseReasonPolicy = "enabled" | "disabled";
|
|
19
|
-
type ConfigValue = string | string[] | ItemFormat | HistoryMissingStreamPolicy | SprintReleaseFormatPolicy | ParentReferencePolicy | ValidateMetadataProfile | GovernancePreset | GovernanceOwnershipEnforcement | GovernanceCreateModeDefault | GovernanceCloseValidationDefault | GovernanceRequireCloseReasonPolicy | GovernanceWorkflowEnforcement | GovernanceForceRequiredForStaleLockPolicy | TestResultTrackingPolicy | TelemetryTrackingPolicy | AgentIdentityVocabularySummary | ContextConfigValue;
|
|
20
|
-
interface ContextConfigValue {
|
|
21
|
-
default_depth:string;
|
|
22
|
-
activity_limit:number;
|
|
23
|
-
stale_threshold_days:number;
|
|
24
|
-
next_ranking_policy:string;
|
|
25
|
-
sections:Record<string,boolean>;
|
|
26
|
-
}
|
|
27
|
-
interface ConfigKeyDescriptor {
|
|
28
|
-
key:ConfigKey;
|
|
29
|
-
aliases:string[];
|
|
30
|
-
value_kind:"string_array" | "enum" | "object";
|
|
31
|
-
set_flags:string[];
|
|
32
|
-
summary:string;
|
|
33
|
-
value:ConfigValue;
|
|
34
|
-
}
|
|
6
|
+
import{type ConfigKey}from "../core/config/positional-value.js";import{type NestedSettingDescriptor}from "../core/config/nested-settings.js";import type{GlobalOptions}from "../core/shared/command-types.js";import{type AgentIdentityVocabularyMutationPreview,type AgentIdentityVocabularySummary}from "./agent/identity-config.js";import type{GovernanceCloseValidationDefault,GovernanceCreateModeDefault,GovernanceOwnershipEnforcement,GovernancePreset,GovernanceWorkflowEnforcement,ItemFormat,ParentReferencePolicy,SprintReleaseFormatPolicy,ValidateMetadataProfile,ValidateMetadataRequiredField}from "../types/index.js";declare const CONFIG_SCOPE_VALUES:readonly["project","global"];type ConfigScope=(typeof CONFIG_SCOPE_VALUES)[number];type ConfigAction="get"|"set"|"list"|"export";type HistoryMissingStreamPolicy="auto_create"|"strict_error";type TestResultTrackingPolicy="enabled"|"disabled";type TelemetryTrackingPolicy="enabled"|"disabled";type GovernanceForceRequiredForStaleLockPolicy="enabled"|"disabled";type GovernanceRequireCloseReasonPolicy="enabled"|"disabled";type ConfigValue=string|string[]|ItemFormat|HistoryMissingStreamPolicy|SprintReleaseFormatPolicy|ParentReferencePolicy|ValidateMetadataProfile|GovernancePreset|GovernanceOwnershipEnforcement|GovernanceCreateModeDefault|GovernanceCloseValidationDefault|GovernanceRequireCloseReasonPolicy|GovernanceWorkflowEnforcement|GovernanceForceRequiredForStaleLockPolicy|TestResultTrackingPolicy|TelemetryTrackingPolicy|AgentIdentityVocabularySummary|ContextConfigValue;interface ContextConfigValue{default_depth:string;activity_limit:number;stale_threshold_days:number;next_ranking_policy:string;sections:Record<string,boolean>;}
|
|
7
|
+
interface ConfigKeyDescriptor{key:ConfigKey;aliases:string[];value_kind:"string_array"|"enum"|"object";set_flags:string[];summary:string;value:ConfigValue;}
|
|
35
8
|
/** Documents the config command options payload exchanged by command, SDK, and package integrations. */
|
|
36
|
-
export interface ConfigCommandOptions
|
|
9
|
+
export interface ConfigCommandOptions{
|
|
37
10
|
/** Value that configures or reports criterion for this contract. */
|
|
38
11
|
criterion?:string[];
|
|
39
12
|
/** Value that configures or reports format for this contract. */
|
|
@@ -65,10 +38,9 @@ sectionWorkload?:string;
|
|
|
65
38
|
/** Value that configures or reports section staleness for this contract. */
|
|
66
39
|
sectionStaleness?:string;
|
|
67
40
|
/** Value that configures or reports section tests for this contract. */
|
|
68
|
-
sectionTests?:string;
|
|
69
|
-
}
|
|
41
|
+
sectionTests?:string;}
|
|
70
42
|
/** Documents the nested setting result value payload exchanged by command, SDK, and package integrations. */
|
|
71
|
-
export interface NestedSettingResultValue
|
|
43
|
+
export interface NestedSettingResultValue{
|
|
72
44
|
/** Value that configures or reports key for this contract. */
|
|
73
45
|
key:string;
|
|
74
46
|
/** Preferred kebab-case CLI spelling for copy/paste-safe configuration. */
|
|
@@ -78,7 +50,7 @@ path:string;
|
|
|
78
50
|
/** Value that configures or reports kind for this contract. */
|
|
79
51
|
kind:NestedSettingDescriptor["kind"];
|
|
80
52
|
/** Value that configures or reports value for this contract. */
|
|
81
|
-
value:string
|
|
53
|
+
value:string|number|boolean|null;
|
|
82
54
|
/** Short operator-facing explanation of the setting. */
|
|
83
55
|
summary?:string;
|
|
84
56
|
/** Closed value domain when the setting accepts a fixed vocabulary. */
|
|
@@ -86,20 +58,19 @@ choices?:string[];
|
|
|
86
58
|
/** Inclusive numeric lower bound when one is declared. */
|
|
87
59
|
min?:number;
|
|
88
60
|
/** Inclusive numeric upper bound when one is declared. */
|
|
89
|
-
max?:number;
|
|
90
|
-
}
|
|
61
|
+
max?:number;}
|
|
91
62
|
/** Documents the config result payload exchanged by command, SDK, and package integrations. */
|
|
92
|
-
export interface ConfigResult
|
|
63
|
+
export interface ConfigResult{
|
|
93
64
|
/** Value that configures or reports scope for this contract. */
|
|
94
65
|
scope:ConfigScope;
|
|
95
66
|
/** Value that configures or reports key for this contract. */
|
|
96
|
-
key?:ConfigKey
|
|
67
|
+
key?:ConfigKey|string;
|
|
97
68
|
/** Value that configures or reports criteria for this contract. */
|
|
98
69
|
criteria?:string[];
|
|
99
70
|
/** Value that configures or reports format for this contract. */
|
|
100
71
|
format?:ItemFormat;
|
|
101
72
|
/** Value that configures or reports policy for this contract. */
|
|
102
|
-
policy?:HistoryMissingStreamPolicy
|
|
73
|
+
policy?:HistoryMissingStreamPolicy|SprintReleaseFormatPolicy|ParentReferencePolicy|ValidateMetadataProfile|GovernancePreset|GovernanceOwnershipEnforcement|GovernanceCreateModeDefault|GovernanceCloseValidationDefault|GovernanceRequireCloseReasonPolicy|GovernanceWorkflowEnforcement|GovernanceForceRequiredForStaleLockPolicy|TestResultTrackingPolicy|TelemetryTrackingPolicy|string;
|
|
103
74
|
/** Value that configures or reports nested setting for this contract. */
|
|
104
75
|
nested_setting?:NestedSettingResultValue;
|
|
105
76
|
/** Configuration controlling nested behavior. */
|
|
@@ -119,66 +90,19 @@ vocabulary_mutation?:AgentIdentityVocabularyMutationPreview;
|
|
|
119
90
|
/** Whether explicit item format applies to this operation. */
|
|
120
91
|
has_explicit_item_format?:boolean;
|
|
121
92
|
/** Value that configures or reports migration for this contract. */
|
|
122
|
-
migration?:{
|
|
123
|
-
target_format:ItemFormat;
|
|
124
|
-
scanned:number;
|
|
125
|
-
migrated:string[];
|
|
126
|
-
removed:string[];
|
|
127
|
-
warnings:string[];
|
|
128
|
-
};
|
|
93
|
+
migration?:{target_format:ItemFormat;scanned:number;migrated:string[];removed:string[];warnings:string[];};
|
|
129
94
|
/** Filesystem path used for settings resolution. */
|
|
130
95
|
settings_path:string;
|
|
131
96
|
/** Value that configures or reports changed for this contract. */
|
|
132
97
|
changed:boolean;
|
|
133
98
|
/** Value that configures or reports warnings for this contract. */
|
|
134
|
-
warnings?:string[];
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
declare function
|
|
138
|
-
declare function normalizeKey(value:string):ConfigKey;
|
|
139
|
-
declare function normalizeCriteria(values:string[] | undefined,clearCriteria:boolean | undefined):string[];
|
|
140
|
-
declare function normalizeItemFormat(value:string | undefined):ItemFormat;
|
|
141
|
-
declare function normalizeHistoryMissingStreamPolicy(value:string | undefined):HistoryMissingStreamPolicy;
|
|
142
|
-
declare function normalizeTestResultTrackingPolicy(value:string | undefined):TestResultTrackingPolicy;
|
|
143
|
-
declare function normalizeTelemetryTrackingPolicy(value:string | undefined):TelemetryTrackingPolicy;
|
|
144
|
-
declare function normalizeValidateMetadataProfile(value:string | undefined):ValidateMetadataProfile;
|
|
145
|
-
declare function normalizeGovernancePreset(value:string | undefined):GovernancePreset;
|
|
146
|
-
declare function normalizeGovernanceOwnershipEnforcement(value:string | undefined):GovernanceOwnershipEnforcement;
|
|
147
|
-
declare function normalizeGovernanceCreateModeDefault(value:string | undefined):GovernanceCreateModeDefault;
|
|
148
|
-
declare function normalizeGovernanceCloseValidationDefault(value:string | undefined):GovernanceCloseValidationDefault;
|
|
149
|
-
declare function normalizeGovernanceWorkflowEnforcement(value:unknown,key?:string):GovernanceWorkflowEnforcement;
|
|
150
|
-
declare function normalizeGovernanceForceRequiredForStaleLockPolicy(value:string | undefined):GovernanceForceRequiredForStaleLockPolicy;
|
|
151
|
-
declare function normalizeGovernanceRequireCloseReasonPolicy(value:string | undefined):GovernanceRequireCloseReasonPolicy;
|
|
152
|
-
declare function normalizePolicyForConflict(key:ConfigKey | undefined,value:string):string;
|
|
153
|
-
declare function normalizeMetadataRequiredFields(values:string[] | undefined,clearCriteria:boolean | undefined):ValidateMetadataRequiredField[];
|
|
154
|
-
declare function normalizeWarnings(values:string[]):string[];
|
|
99
|
+
warnings?:string[];}
|
|
100
|
+
declare function normalizeScope(value:string):ConfigScope;declare function normalizeAction(value:string):ConfigAction;
|
|
101
|
+
/** Resolve owned aliases or refuse with bounded typo suggestions, a complete scoped SDK domain, and a tracker-preserving inventory command. */
|
|
102
|
+
declare function normalizeKey(value:string,scope?:ConfigScope,global?:GlobalOptions):ConfigKey;declare function normalizeCriteria(values:string[]|undefined,clearCriteria:boolean|undefined):string[];declare function normalizeItemFormat(value:string|undefined):ItemFormat;declare function normalizeHistoryMissingStreamPolicy(value:string|undefined):HistoryMissingStreamPolicy;declare function normalizeTestResultTrackingPolicy(value:string|undefined):TestResultTrackingPolicy;declare function normalizeTelemetryTrackingPolicy(value:string|undefined):TelemetryTrackingPolicy;declare function normalizeValidateMetadataProfile(value:string|undefined):ValidateMetadataProfile;declare function normalizeGovernancePreset(value:string|undefined):GovernancePreset;declare function normalizeGovernanceOwnershipEnforcement(value:string|undefined):GovernanceOwnershipEnforcement;declare function normalizeGovernanceCreateModeDefault(value:string|undefined):GovernanceCreateModeDefault;declare function normalizeGovernanceCloseValidationDefault(value:string|undefined):GovernanceCloseValidationDefault;declare function normalizeGovernanceWorkflowEnforcement(value:unknown,key?:string):GovernanceWorkflowEnforcement;declare function normalizeGovernanceForceRequiredForStaleLockPolicy(value:string|undefined):GovernanceForceRequiredForStaleLockPolicy;declare function normalizeGovernanceRequireCloseReasonPolicy(value:string|undefined):GovernanceRequireCloseReasonPolicy;declare function normalizePolicyForConflict(key:ConfigKey|undefined,value:string):string;declare function normalizeMetadataRequiredFields(values:string[]|undefined,clearCriteria:boolean|undefined):ValidateMetadataRequiredField[];declare function normalizeWarnings(values:string[]):string[];
|
|
155
103
|
/** Route an intuitive `pm config set <key> <value>` positional value onto the typed flag it belongs to (--format/--policy/--criterion), applying enabled/disabled synonyms. Returns the (possibly augmented) options. The typed-flag forms keep working exactly as before: a positional value is only injected when its flag was not already supplied, and a conflicting explicit flag is a clear error. */
|
|
156
|
-
declare function applyPositionalValue(action:ConfigAction,keyValue:string
|
|
157
|
-
declare function hasGovernanceValidationMirrorChange<T extends ParentReferencePolicy | ValidateMetadataProfile>(governanceValue:T,validationValue:T,nextPolicy:T):boolean;
|
|
104
|
+
declare function applyPositionalValue(action:ConfigAction,keyValue:string|undefined,normalizedKey:ConfigKey|undefined,nestedSetting:NestedSettingDescriptor|undefined,valueValue:string|undefined,options:ConfigCommandOptions):ConfigCommandOptions;declare function hasGovernanceValidationMirrorChange<T extends ParentReferencePolicy|ValidateMetadataProfile>(governanceValue:T,validationValue:T,nextPolicy:T):boolean;
|
|
158
105
|
/** Implements run config for the public runtime surface of this module. */
|
|
159
|
-
export declare function runConfig(scopeValue:string,actionValue:string,keyValue:string
|
|
106
|
+
export declare function runConfig(scopeValue:string,actionValue:string,keyValue:string|undefined,options:ConfigCommandOptions,global:GlobalOptions,valueValue?:string):Promise<ConfigResult>;
|
|
160
107
|
/** Public contract for test only config command, shared by SDK and presentation-layer consumers. */
|
|
161
|
-
export declare const _testOnlyConfigCommand:{
|
|
162
|
-
hasGovernanceValidationMirrorChange:typeof hasGovernanceValidationMirrorChange;
|
|
163
|
-
applyPositionalValue:typeof applyPositionalValue;
|
|
164
|
-
normalizeAction:typeof normalizeAction;
|
|
165
|
-
normalizeCriteria:typeof normalizeCriteria;
|
|
166
|
-
normalizeGovernanceCloseValidationDefault:typeof normalizeGovernanceCloseValidationDefault;
|
|
167
|
-
normalizeGovernanceCreateModeDefault:typeof normalizeGovernanceCreateModeDefault;
|
|
168
|
-
normalizeGovernanceForceRequiredForStaleLockPolicy:typeof normalizeGovernanceForceRequiredForStaleLockPolicy;
|
|
169
|
-
normalizeGovernanceOwnershipEnforcement:typeof normalizeGovernanceOwnershipEnforcement;
|
|
170
|
-
normalizeGovernancePreset:typeof normalizeGovernancePreset;
|
|
171
|
-
normalizeGovernanceRequireCloseReasonPolicy:typeof normalizeGovernanceRequireCloseReasonPolicy;
|
|
172
|
-
normalizeGovernanceWorkflowEnforcement:typeof normalizeGovernanceWorkflowEnforcement;
|
|
173
|
-
normalizeHistoryMissingStreamPolicy:typeof normalizeHistoryMissingStreamPolicy;
|
|
174
|
-
normalizeItemFormat:typeof normalizeItemFormat;
|
|
175
|
-
normalizeKey:typeof normalizeKey;
|
|
176
|
-
normalizeMetadataRequiredFields:typeof normalizeMetadataRequiredFields;
|
|
177
|
-
normalizePolicyForConflict:typeof normalizePolicyForConflict;
|
|
178
|
-
normalizeScope:typeof normalizeScope;
|
|
179
|
-
normalizeTelemetryTrackingPolicy:typeof normalizeTelemetryTrackingPolicy;
|
|
180
|
-
normalizeTestResultTrackingPolicy:typeof normalizeTestResultTrackingPolicy;
|
|
181
|
-
normalizeValidateMetadataProfile:typeof normalizeValidateMetadataProfile;
|
|
182
|
-
normalizeWarnings:typeof normalizeWarnings;
|
|
183
|
-
};
|
|
184
|
-
export {};
|
|
108
|
+
export declare const _testOnlyConfigCommand:{hasGovernanceValidationMirrorChange:typeof hasGovernanceValidationMirrorChange;applyPositionalValue:typeof applyPositionalValue;normalizeAction:typeof normalizeAction;normalizeCriteria:typeof normalizeCriteria;normalizeGovernanceCloseValidationDefault:typeof normalizeGovernanceCloseValidationDefault;normalizeGovernanceCreateModeDefault:typeof normalizeGovernanceCreateModeDefault;normalizeGovernanceForceRequiredForStaleLockPolicy:typeof normalizeGovernanceForceRequiredForStaleLockPolicy;normalizeGovernanceOwnershipEnforcement:typeof normalizeGovernanceOwnershipEnforcement;normalizeGovernancePreset:typeof normalizeGovernancePreset;normalizeGovernanceRequireCloseReasonPolicy:typeof normalizeGovernanceRequireCloseReasonPolicy;normalizeGovernanceWorkflowEnforcement:typeof normalizeGovernanceWorkflowEnforcement;normalizeHistoryMissingStreamPolicy:typeof normalizeHistoryMissingStreamPolicy;normalizeItemFormat:typeof normalizeItemFormat;normalizeKey:typeof normalizeKey;normalizeMetadataRequiredFields:typeof normalizeMetadataRequiredFields;normalizePolicyForConflict:typeof normalizePolicyForConflict;normalizeScope:typeof normalizeScope;normalizeTelemetryTrackingPolicy:typeof normalizeTelemetryTrackingPolicy;normalizeTestResultTrackingPolicy:typeof normalizeTestResultTrackingPolicy;normalizeValidateMetadataProfile:typeof normalizeValidateMetadataProfile;normalizeWarnings:typeof normalizeWarnings;};export{};
|