@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
|
@@ -3,71 +3,51 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Implements extension runtime contracts and governance for Extension Types.
|
|
5
5
|
*/
|
|
6
|
-
import type
|
|
7
|
-
import type { GlobalOptions } from "../shared/command-types.js";
|
|
8
|
-
import type { ProjectProfileDefinition,ProjectProfileRegistrationInput } from "../profile/profile-presets.js";
|
|
9
|
-
import type { RelationshipEdge,RelationshipGraph,RelationshipKindDefinition,RelationshipQueryOptions } from "../../sdk/relationships.js";
|
|
10
|
-
import type { RelationshipImpactAnalysis } from "../../sdk/relationship-analytics.js";
|
|
11
|
-
import type { ReadSettingsSectionOptions,SettingsSectionReadResult,SettingsSectionWriteResult,WriteSettingsSectionOptions } from "../store/settings-sections.js";
|
|
12
|
-
import type { PmClient } from "../../sdk/runtime.js";
|
|
13
|
-
import type { GetItemAtResult } from "../../sdk/history-read.js";
|
|
14
|
-
import type { fitOutputEnvelope } from "../../sdk/output/fit-envelope.js";
|
|
15
|
-
import type { RelationshipEvent,RelationshipEventInput,RelationshipEventStore } from "../../sdk/relationship-history.js";
|
|
16
|
-
import type { CommitWorkspaceTransactionOptions,WorkspaceTransactionCommitResult } from "../../sdk/workspace-transaction.js";
|
|
17
|
-
import type { KnownItemFieldType } from "./item-field-types.js";
|
|
18
|
-
import type { ExtensionCommandCapabilityFamily } from "./command-metadata-contract.js";
|
|
19
|
-
export type { ExtensionCommandCapabilityFamily } from "./command-metadata-contract.js";
|
|
6
|
+
import type{ExtensionPolicyOverrideSettings,ExtensionPolicySettings,ItemDocument,ItemMetadata,ItemStatus,PmSettings}from "../../types/index.js";import type{GlobalOptions}from "../shared/command-types.js";import type{ProjectProfileDefinition,ProjectProfileRegistrationInput}from "../profile/profile-presets.js";import type{RelationshipEdge,RelationshipGraph,RelationshipKindDefinition,RelationshipQueryOptions}from "../../sdk/relationships.js";import type{RelationshipImpactAnalysis}from "../../sdk/relationship-analytics.js";import type{ReadSettingsSectionOptions,SettingsSectionReadResult,SettingsSectionWriteResult,WriteSettingsSectionOptions}from "../store/settings-sections.js";import type{PmClient}from "../../sdk/runtime.js";import type{GetItemAtResult}from "../../sdk/history-read.js";import type{fitOutputEnvelope}from "../../sdk/output/fit-envelope.js";import type{RelationshipEvent,RelationshipEventInput,RelationshipEventStore}from "../../sdk/relationship-history.js";import type{CommitWorkspaceTransactionOptions,WorkspaceTransactionCommitResult}from "../../sdk/workspace-transaction.js";import type{KnownItemFieldType}from "./item-field-types.js";import type{ExtensionCommandCapabilityFamily}from "./command-metadata-contract.js";export type{ExtensionCommandCapabilityFamily}from "./command-metadata-contract.js";
|
|
20
7
|
/** Public contract for known extension capabilities, shared by SDK and presentation-layer consumers. */
|
|
21
|
-
export declare const KNOWN_EXTENSION_CAPABILITIES:readonly
|
|
8
|
+
export declare const KNOWN_EXTENSION_CAPABILITIES:readonly["commands","renderers","hooks","schema","importers","search","parser","preflight","services"];
|
|
22
9
|
/** Restricts extension capability values accepted by command, SDK, and storage contracts. */
|
|
23
|
-
export type ExtensionCapability
|
|
10
|
+
export type ExtensionCapability=(typeof KNOWN_EXTENSION_CAPABILITIES)[number];
|
|
24
11
|
/** Public contract for extension capability contract version, shared by SDK and presentation-layer consumers. */
|
|
25
|
-
export declare const EXTENSION_CAPABILITY_CONTRACT_VERSION
|
|
12
|
+
export declare const EXTENSION_CAPABILITY_CONTRACT_VERSION=2;
|
|
26
13
|
/** Public contract for extension capability legacy aliases, shared by SDK and presentation-layer consumers. */
|
|
27
14
|
export declare const EXTENSION_CAPABILITY_LEGACY_ALIASES:Readonly<Record<string,ExtensionCapability>>;
|
|
28
15
|
/** Public contract for extension capability contract, shared by SDK and presentation-layer consumers. */
|
|
29
|
-
export declare const EXTENSION_CAPABILITY_CONTRACT:Readonly<{
|
|
30
|
-
version:2;
|
|
31
|
-
capabilities:("search" | "schema" | "commands" | "importers" | "renderers" | "hooks" | "parser" | "preflight" | "services")[];
|
|
32
|
-
legacy_aliases:{
|
|
33
|
-
[x:string]:"search" | "schema" | "commands" | "importers" | "renderers" | "hooks" | "parser" | "preflight" | "services";
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
16
|
+
export declare const EXTENSION_CAPABILITY_CONTRACT:Readonly<{version:2;capabilities:("search"|"schema"|"commands"|"importers"|"renderers"|"hooks"|"parser"|"preflight"|"services")[];legacy_aliases:{[x:string]:"search"|"schema"|"commands"|"importers"|"renderers"|"hooks"|"parser"|"preflight"|"services";};}>;
|
|
36
17
|
/** Public contract for known extension policy modes, shared by SDK and presentation-layer consumers. */
|
|
37
|
-
export declare const KNOWN_EXTENSION_POLICY_MODES:readonly
|
|
18
|
+
export declare const KNOWN_EXTENSION_POLICY_MODES:readonly["off","warn","enforce"];
|
|
38
19
|
/** Restricts extension policy mode values accepted by command, SDK, and storage contracts. */
|
|
39
|
-
export type ExtensionPolicyMode
|
|
20
|
+
export type ExtensionPolicyMode=(typeof KNOWN_EXTENSION_POLICY_MODES)[number];
|
|
40
21
|
/** Public contract for known extension trust modes, shared by SDK and presentation-layer consumers. */
|
|
41
|
-
export declare const KNOWN_EXTENSION_TRUST_MODES:readonly
|
|
22
|
+
export declare const KNOWN_EXTENSION_TRUST_MODES:readonly["off","warn","enforce"];
|
|
42
23
|
/** Restricts extension trust mode values accepted by command, SDK, and storage contracts. */
|
|
43
|
-
export type ExtensionTrustMode
|
|
24
|
+
export type ExtensionTrustMode=(typeof KNOWN_EXTENSION_TRUST_MODES)[number];
|
|
44
25
|
/** Public contract for known extension sandbox profiles, shared by SDK and presentation-layer consumers. */
|
|
45
|
-
export declare const KNOWN_EXTENSION_SANDBOX_PROFILES:readonly
|
|
26
|
+
export declare const KNOWN_EXTENSION_SANDBOX_PROFILES:readonly["none","restricted","strict"];
|
|
46
27
|
/** Restricts extension sandbox profile values accepted by command, SDK, and storage contracts. */
|
|
47
|
-
export type ExtensionSandboxProfile
|
|
28
|
+
export type ExtensionSandboxProfile=(typeof KNOWN_EXTENSION_SANDBOX_PROFILES)[number];
|
|
48
29
|
/** Public contract for known pm max version exceeded modes, shared by SDK and presentation-layer consumers. */
|
|
49
|
-
export declare const KNOWN_PM_MAX_VERSION_EXCEEDED_MODES:readonly
|
|
30
|
+
export declare const KNOWN_PM_MAX_VERSION_EXCEEDED_MODES:readonly["block","warn"];
|
|
50
31
|
/** How a `pm_max_version` violation is handled for an extension layer. */
|
|
51
|
-
export type PmMaxVersionExceededMode
|
|
32
|
+
export type PmMaxVersionExceededMode=(typeof KNOWN_PM_MAX_VERSION_EXCEEDED_MODES)[number];
|
|
52
33
|
/** Optional per-layer override map for `extensions.policy.pm_max_version_exceeded_mode`. */
|
|
53
|
-
export interface PmMaxVersionExceededModeByLayer
|
|
34
|
+
export interface PmMaxVersionExceededModeByLayer{
|
|
54
35
|
/** Value that configures or reports global for this contract. */
|
|
55
36
|
global?:PmMaxVersionExceededMode;
|
|
56
37
|
/** Value that configures or reports project for this contract. */
|
|
57
|
-
project?:PmMaxVersionExceededMode;
|
|
58
|
-
}
|
|
38
|
+
project?:PmMaxVersionExceededMode;}
|
|
59
39
|
/** Settings value for `extensions.policy.pm_max_version_exceeded_mode`: either a single mode applied to both layers, or a per-layer override map. Unset (and any unset layer key) defaults to `"block"`. */
|
|
60
|
-
export type PmMaxVersionExceededModeSetting
|
|
40
|
+
export type PmMaxVersionExceededModeSetting=PmMaxVersionExceededMode|PmMaxVersionExceededModeByLayer;
|
|
61
41
|
/** Public contract for known extension policy surfaces, shared by SDK and presentation-layer consumers. */
|
|
62
|
-
export declare const KNOWN_EXTENSION_POLICY_SURFACES:readonly
|
|
42
|
+
export declare const KNOWN_EXTENSION_POLICY_SURFACES:readonly["commands.override","commands.handler","hooks.beforecommand","hooks.beforemutation","hooks.aftercommand","hooks.onwrite","hooks.onread","hooks.onindex","schema.flags","schema.itemfields","schema.itemtypes","schema.relationshipkinds","schema.migrations","schema.profiles","parser.override","preflight.override","services.override","renderers.override","importers.importer","importers.exporter","search.provider","search.vectorstore","services.assuranceprovider"];
|
|
63
43
|
/** Restricts extension policy surface values accepted by command, SDK, and storage contracts. */
|
|
64
|
-
export type ExtensionPolicySurface
|
|
44
|
+
export type ExtensionPolicySurface=(typeof KNOWN_EXTENSION_POLICY_SURFACES)[number];
|
|
65
45
|
/** Public contract for known extension service names, shared by SDK and presentation-layer consumers. */
|
|
66
|
-
export declare const KNOWN_EXTENSION_SERVICE_NAMES:readonly
|
|
46
|
+
export declare const KNOWN_EXTENSION_SERVICE_NAMES:readonly["output_format","error_format","help_format","lock_acquire","lock_release","history_append","item_store_write","item_store_delete","context_relevance","command_result"];
|
|
67
47
|
/** Restricts extension service name values accepted by command, SDK, and storage contracts. */
|
|
68
|
-
export type ExtensionServiceName
|
|
48
|
+
export type ExtensionServiceName=(typeof KNOWN_EXTENSION_SERVICE_NAMES)[number];
|
|
69
49
|
/** Documents the extension provenance metadata payload exchanged by command, SDK, and package integrations. */
|
|
70
|
-
export interface ExtensionProvenanceMetadata
|
|
50
|
+
export interface ExtensionProvenanceMetadata{
|
|
71
51
|
/** Value that configures or reports source for this contract. */
|
|
72
52
|
source?:string;
|
|
73
53
|
/** Value that configures or reports signature for this contract. */
|
|
@@ -75,10 +55,9 @@ signature?:string;
|
|
|
75
55
|
/** Value that configures or reports attestation for this contract. */
|
|
76
56
|
attestation?:string;
|
|
77
57
|
/** Value that configures or reports verified for this contract. */
|
|
78
|
-
verified?:boolean;
|
|
79
|
-
}
|
|
58
|
+
verified?:boolean;}
|
|
80
59
|
/** Documents the extension runtime permission declaration payload exchanged by command, SDK, and package integrations. */
|
|
81
|
-
export interface ExtensionRuntimePermissionDeclaration
|
|
60
|
+
export interface ExtensionRuntimePermissionDeclaration{
|
|
82
61
|
/** Value that configures or reports fs read for this contract. */
|
|
83
62
|
fs_read?:boolean;
|
|
84
63
|
/** Value that configures or reports fs write for this contract. */
|
|
@@ -90,35 +69,29 @@ env_read?:boolean;
|
|
|
90
69
|
/** Value that configures or reports env write for this contract. */
|
|
91
70
|
env_write?:boolean;
|
|
92
71
|
/** Value that configures or reports process spawn for this contract. */
|
|
93
|
-
process_spawn?:boolean;
|
|
94
|
-
}
|
|
72
|
+
process_spawn?:boolean;}
|
|
95
73
|
/** Documents the extension activation metadata payload exchanged by command, SDK, and package integrations. */
|
|
96
|
-
export interface ExtensionActivationMetadata
|
|
74
|
+
export interface ExtensionActivationMetadata{
|
|
97
75
|
/** Value that configures or reports commands for this contract. */
|
|
98
|
-
commands?:string[];
|
|
99
|
-
}
|
|
76
|
+
commands?:string[];}
|
|
100
77
|
/** Restricts extension policy override values accepted by command, SDK, and storage contracts. */
|
|
101
|
-
export type ExtensionPolicyOverride
|
|
78
|
+
export type ExtensionPolicyOverride=ExtensionPolicyOverrideSettings;
|
|
102
79
|
/** Extension governance policy as read from / serialized to settings. Extends the stored settings shape with `pm_max_version_exceeded_mode` (pm-k5e8), which relaxes the default-BLOCK on `pm_max_version` violations to warn-only — globally or per extension layer. */
|
|
103
|
-
export type ExtensionGovernancePolicy
|
|
104
|
-
pm_max_version_exceeded_mode?:PmMaxVersionExceededModeSetting;
|
|
105
|
-
};
|
|
80
|
+
export type ExtensionGovernancePolicy=ExtensionPolicySettings&{pm_max_version_exceeded_mode?:PmMaxVersionExceededModeSetting;};
|
|
106
81
|
/** Documents the extension manifest engines payload exchanged by command, SDK, and package integrations. */
|
|
107
|
-
export interface ExtensionManifestEngines
|
|
82
|
+
export interface ExtensionManifestEngines{
|
|
108
83
|
/** Value that configures or reports pm for this contract. */
|
|
109
84
|
pm?:string;
|
|
110
85
|
/** Value that configures or reports node for this contract. */
|
|
111
|
-
node?:string;
|
|
112
|
-
[engine:string]:string | undefined;
|
|
113
|
-
}
|
|
86
|
+
node?:string;[engine:string]:string|undefined;}
|
|
114
87
|
/** Implements create default extension governance policy for the public runtime surface of this module. */
|
|
115
88
|
export declare function createDefaultExtensionGovernancePolicy():ExtensionGovernancePolicy;
|
|
116
89
|
/** Restricts extension layer values accepted by command, SDK, and storage contracts. */
|
|
117
|
-
export type ExtensionLayer
|
|
90
|
+
export type ExtensionLayer="global"|"project";
|
|
118
91
|
/** Restricts extension status values accepted by command, SDK, and storage contracts. */
|
|
119
|
-
export type ExtensionStatus
|
|
92
|
+
export type ExtensionStatus="ok"|"warn";
|
|
120
93
|
/** Static, serializable inventory of extension registrations available without importing its module. */
|
|
121
|
-
export interface ExtensionContributionInventory
|
|
94
|
+
export interface ExtensionContributionInventory{
|
|
122
95
|
/** Inventory schema version for forward-compatible persisted snapshots. */
|
|
123
96
|
schema_version:1;
|
|
124
97
|
/** Declared command paths. */
|
|
@@ -164,18 +137,15 @@ format:OutputRendererFormat;
|
|
|
164
137
|
/** Command paths on which the renderer may run. */
|
|
165
138
|
commands:string[];
|
|
166
139
|
/** Whether runtime result discrimination can select the renderer. */
|
|
167
|
-
result_discriminator:boolean;
|
|
168
|
-
}>;
|
|
140
|
+
result_discriminator:boolean;}>;
|
|
169
141
|
/** Number of preflight overrides in the package. */
|
|
170
142
|
preflight_overrides?:number;
|
|
171
143
|
/** Optional command ownership for each preflight override. Empty commands mean global ownership. */
|
|
172
144
|
preflight_ownership?:Array<{
|
|
173
145
|
/** Command paths on which the override may run. */
|
|
174
|
-
commands:string[];
|
|
175
|
-
}>;
|
|
176
|
-
}
|
|
146
|
+
commands:string[];}>;}
|
|
177
147
|
/** Documents the extension manifest payload exchanged by command, SDK, and package integrations. */
|
|
178
|
-
export interface ExtensionManifest
|
|
148
|
+
export interface ExtensionManifest{
|
|
179
149
|
/** Value that configures or reports name for this contract. */
|
|
180
150
|
name:string;
|
|
181
151
|
/** Value that configures or reports version for this contract. */
|
|
@@ -207,10 +177,9 @@ activation?:ExtensionActivationMetadata;
|
|
|
207
177
|
/** Static contribution inventory used by discovery before module import. */
|
|
208
178
|
contributions?:ExtensionContributionInventory;
|
|
209
179
|
/** Value that configures or reports legacy capability aliases for this contract. */
|
|
210
|
-
legacy_capability_aliases?:LegacyExtensionCapabilityAliasMapping[];
|
|
211
|
-
}
|
|
180
|
+
legacy_capability_aliases?:LegacyExtensionCapabilityAliasMapping[];}
|
|
212
181
|
/** Documents the extension diagnostic payload exchanged by command, SDK, and package integrations. */
|
|
213
|
-
export interface ExtensionDiagnostic
|
|
182
|
+
export interface ExtensionDiagnostic{
|
|
214
183
|
/** Value that configures or reports layer for this contract. */
|
|
215
184
|
layer:ExtensionLayer;
|
|
216
185
|
/** Value that configures or reports directory for this contract. */
|
|
@@ -218,22 +187,21 @@ directory:string;
|
|
|
218
187
|
/** Filesystem path used for manifest resolution. */
|
|
219
188
|
manifest_path:string;
|
|
220
189
|
/** Value that configures or reports name for this contract. */
|
|
221
|
-
name:string
|
|
190
|
+
name:string|null;
|
|
222
191
|
/** Value that configures or reports version for this contract. */
|
|
223
|
-
version:string
|
|
192
|
+
version:string|null;
|
|
224
193
|
/** Value that configures or reports entry for this contract. */
|
|
225
|
-
entry:string
|
|
194
|
+
entry:string|null;
|
|
226
195
|
/** Value that configures or reports priority for this contract. */
|
|
227
|
-
priority:number
|
|
196
|
+
priority:number|null;
|
|
228
197
|
/** Filesystem path used for entry resolution. */
|
|
229
|
-
entry_path:string
|
|
198
|
+
entry_path:string|null;
|
|
230
199
|
/** Whether enabled applies to this operation. */
|
|
231
|
-
enabled:boolean
|
|
200
|
+
enabled:boolean|null;
|
|
232
201
|
/** Lifecycle state reported for status. */
|
|
233
|
-
status:ExtensionStatus;
|
|
234
|
-
}
|
|
202
|
+
status:ExtensionStatus;}
|
|
235
203
|
/** Documents the effective extension payload exchanged by command, SDK, and package integrations. */
|
|
236
|
-
export interface EffectiveExtension
|
|
204
|
+
export interface EffectiveExtension{
|
|
237
205
|
/** Value that configures or reports layer for this contract. */
|
|
238
206
|
layer:ExtensionLayer;
|
|
239
207
|
/** Value that configures or reports directory for this contract. */
|
|
@@ -275,17 +243,13 @@ capabilities?:string[];
|
|
|
275
243
|
/** Value that configures or reports activation for this contract. */
|
|
276
244
|
activation?:ExtensionActivationMetadata;
|
|
277
245
|
/** Static contribution inventory resolved from the manifest or install snapshot. */
|
|
278
|
-
contributions?:ExtensionContributionInventory;
|
|
279
|
-
}
|
|
246
|
+
contributions?:ExtensionContributionInventory;}
|
|
280
247
|
/** Documents the extension discovery result payload exchanged by command, SDK, and package integrations. */
|
|
281
|
-
export interface ExtensionDiscoveryResult
|
|
248
|
+
export interface ExtensionDiscoveryResult{
|
|
282
249
|
/** Value that configures or reports disabled by flag for this contract. */
|
|
283
250
|
disabled_by_flag:boolean;
|
|
284
251
|
/** Value that configures or reports roots for this contract. */
|
|
285
|
-
roots:{
|
|
286
|
-
global:string;
|
|
287
|
-
project:string;
|
|
288
|
-
};
|
|
252
|
+
roots:{global:string;project:string;};
|
|
289
253
|
/** Value that configures or reports configured enabled for this contract. */
|
|
290
254
|
configured_enabled:string[];
|
|
291
255
|
/** Value that configures or reports configured disabled for this contract. */
|
|
@@ -297,15 +261,13 @@ effective:EffectiveExtension[];
|
|
|
297
261
|
/** Value that configures or reports warnings for this contract. */
|
|
298
262
|
warnings:string[];
|
|
299
263
|
/** Value that configures or reports policy for this contract. */
|
|
300
|
-
policy:ExtensionGovernancePolicy;
|
|
301
|
-
}
|
|
264
|
+
policy:ExtensionGovernancePolicy;}
|
|
302
265
|
/** Documents the loaded extension payload exchanged by command, SDK, and package integrations. */
|
|
303
|
-
export interface LoadedExtension extends EffectiveExtension
|
|
266
|
+
export interface LoadedExtension extends EffectiveExtension{
|
|
304
267
|
/** Value that configures or reports module for this contract. */
|
|
305
|
-
module:unknown;
|
|
306
|
-
}
|
|
268
|
+
module:unknown;}
|
|
307
269
|
/** Documents the failed extension load payload exchanged by command, SDK, and package integrations. */
|
|
308
|
-
export interface FailedExtensionLoad
|
|
270
|
+
export interface FailedExtensionLoad{
|
|
309
271
|
/** Value that configures or reports layer for this contract. */
|
|
310
272
|
layer:ExtensionLayer;
|
|
311
273
|
/** Value that configures or reports name for this contract. */
|
|
@@ -313,17 +275,15 @@ name:string;
|
|
|
313
275
|
/** Filesystem path used for entry resolution. */
|
|
314
276
|
entry_path:string;
|
|
315
277
|
/** Value that configures or reports error for this contract. */
|
|
316
|
-
error:string;
|
|
317
|
-
}
|
|
278
|
+
error:string;}
|
|
318
279
|
/** Documents the extension load result payload exchanged by command, SDK, and package integrations. */
|
|
319
|
-
export interface ExtensionLoadResult extends ExtensionDiscoveryResult
|
|
280
|
+
export interface ExtensionLoadResult extends ExtensionDiscoveryResult{
|
|
320
281
|
/** Value that configures or reports loaded for this contract. */
|
|
321
282
|
loaded:LoadedExtension[];
|
|
322
283
|
/** Value that configures or reports failed for this contract. */
|
|
323
|
-
failed:FailedExtensionLoad[];
|
|
324
|
-
}
|
|
284
|
+
failed:FailedExtensionLoad[];}
|
|
325
285
|
/** Documents the before command hook context payload exchanged by command, SDK, and package integrations. */
|
|
326
|
-
export interface BeforeCommandHookContext
|
|
286
|
+
export interface BeforeCommandHookContext{
|
|
327
287
|
/** Value that configures or reports command for this contract. */
|
|
328
288
|
command:string;
|
|
329
289
|
/** Value that configures or reports args for this contract. */
|
|
@@ -333,10 +293,9 @@ options?:Record<string,unknown>;
|
|
|
333
293
|
/** Value that configures or reports global for this contract. */
|
|
334
294
|
global?:GlobalOptions;
|
|
335
295
|
/** Value that configures or reports pm root for this contract. */
|
|
336
|
-
pm_root:string;
|
|
337
|
-
}
|
|
296
|
+
pm_root:string;}
|
|
338
297
|
/** Documents the after command hook context payload exchanged by command, SDK, and package integrations. */
|
|
339
|
-
export interface AfterCommandHookContext extends BeforeCommandHookContext
|
|
298
|
+
export interface AfterCommandHookContext extends BeforeCommandHookContext{
|
|
340
299
|
/** Whether the operation completed without a blocking failure. */
|
|
341
300
|
ok:boolean;
|
|
342
301
|
/** Value that configures or reports error for this contract. */
|
|
@@ -344,10 +303,9 @@ error?:string;
|
|
|
344
303
|
/** Value that configures or reports result for this contract. */
|
|
345
304
|
result?:unknown;
|
|
346
305
|
/** Value that configures or reports affected for this contract. */
|
|
347
|
-
affected?:AfterCommandAffectedItem[];
|
|
348
|
-
}
|
|
306
|
+
affected?:AfterCommandAffectedItem[];}
|
|
349
307
|
/** Documents the after command affected item payload exchanged by command, SDK, and package integrations. */
|
|
350
|
-
export interface AfterCommandAffectedItem
|
|
308
|
+
export interface AfterCommandAffectedItem{
|
|
351
309
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
352
310
|
id:string;
|
|
353
311
|
/** Value that configures or reports op for this contract. */
|
|
@@ -363,14 +321,13 @@ previous?:Partial<ItemMetadata>;
|
|
|
363
321
|
/** Value that configures or reports current for this contract. */
|
|
364
322
|
current?:Partial<ItemMetadata>;
|
|
365
323
|
/** Value that configures or reports changed fields for this contract. */
|
|
366
|
-
changed_fields?:string[];
|
|
367
|
-
}
|
|
324
|
+
changed_fields?:string[];}
|
|
368
325
|
/** Documents the on write hook context payload exchanged by command, SDK, and package integrations. */
|
|
369
|
-
export interface OnWriteHookContext
|
|
326
|
+
export interface OnWriteHookContext{
|
|
370
327
|
/** Filesystem path used for path resolution. */
|
|
371
328
|
path:string;
|
|
372
329
|
/** Value that configures or reports scope for this contract. */
|
|
373
|
-
scope:"project"
|
|
330
|
+
scope:"project"|"global";
|
|
374
331
|
/** Value that configures or reports op for this contract. */
|
|
375
332
|
op:string;
|
|
376
333
|
/** Value that configures or reports item id for this contract. */
|
|
@@ -382,127 +339,101 @@ before?:ItemDocument;
|
|
|
382
339
|
/** Value that configures or reports after for this contract. */
|
|
383
340
|
after?:ItemDocument;
|
|
384
341
|
/** Value that configures or reports changed fields for this contract. */
|
|
385
|
-
changed_fields?:string[];
|
|
386
|
-
}
|
|
342
|
+
changed_fields?:string[];}
|
|
387
343
|
/** Read-only tracker services available while an extension evaluates a proposed mutation. */
|
|
388
|
-
export interface ExtensionMutationGuardSdk
|
|
344
|
+
export interface ExtensionMutationGuardSdk{
|
|
389
345
|
/** Read one item from the guard's host-bound tracker, or return null when it is absent. */
|
|
390
|
-
get(id:string):Promise<{
|
|
391
|
-
item:ItemMetadata;
|
|
392
|
-
body:string;
|
|
393
|
-
} | null>;
|
|
346
|
+
get(id:string):Promise<{item:ItemMetadata;body:string;}|null>;
|
|
394
347
|
/** List item metadata from the guard's host-bound tracker. */
|
|
395
|
-
list():Promise<ItemMetadata[]>;
|
|
396
|
-
}
|
|
348
|
+
list():Promise<ItemMetadata[]>;}
|
|
397
349
|
/** Proposed item transition supplied before either the item or history artifact is persisted. */
|
|
398
|
-
export interface BeforeMutationHookContext
|
|
350
|
+
export interface BeforeMutationHookContext{
|
|
399
351
|
/** Tracker root owning the transaction. */
|
|
400
352
|
pm_root:string;
|
|
401
353
|
/** Stable mutation operation name such as create, update, close, delete, or restore. */
|
|
402
354
|
operation:string;
|
|
403
355
|
/** Canonical item state before the mutation, or null for create. */
|
|
404
|
-
before:ItemDocument
|
|
356
|
+
before:ItemDocument|null;
|
|
405
357
|
/** Canonical proposed state after the mutation, or null for delete. */
|
|
406
|
-
after:ItemDocument
|
|
358
|
+
after:ItemDocument|null;
|
|
407
359
|
/** Canonical fields the transaction proposes to change. */
|
|
408
360
|
changed_fields:readonly string[];
|
|
409
361
|
/** Host-bound read-only SDK services. */
|
|
410
|
-
sdk:ExtensionMutationGuardSdk;
|
|
411
|
-
}
|
|
362
|
+
sdk:ExtensionMutationGuardSdk;}
|
|
412
363
|
/** Stable decision returned by a transactional extension mutation guard. */
|
|
413
|
-
export type BeforeMutationHookDecision
|
|
414
|
-
allow:true;
|
|
415
|
-
} | {
|
|
416
|
-
allow:false;
|
|
417
|
-
code:string;
|
|
418
|
-
message?:string;
|
|
419
|
-
remediation:string;
|
|
420
|
-
};
|
|
364
|
+
export type BeforeMutationHookDecision={allow:true;}|{allow:false;code:string;message?:string;remediation:string;};
|
|
421
365
|
/** A fail-closed hook evaluated inside the item lock before persistence. */
|
|
422
|
-
export type BeforeMutationHook
|
|
366
|
+
export type BeforeMutationHook=(context:BeforeMutationHookContext)=> Promise<BeforeMutationHookDecision|void>|BeforeMutationHookDecision|void;
|
|
423
367
|
/** Documents the on read hook context payload exchanged by command, SDK, and package integrations. */
|
|
424
|
-
export interface OnReadHookContext
|
|
368
|
+
export interface OnReadHookContext{
|
|
425
369
|
/** Filesystem path used for path resolution. */
|
|
426
370
|
path:string;
|
|
427
371
|
/** Value that configures or reports scope for this contract. */
|
|
428
|
-
scope:"project"
|
|
429
|
-
}
|
|
372
|
+
scope:"project"|"global";}
|
|
430
373
|
/** Documents the on index hook context payload exchanged by command, SDK, and package integrations. */
|
|
431
|
-
export interface OnIndexHookContext
|
|
374
|
+
export interface OnIndexHookContext{
|
|
432
375
|
/** Value that configures or reports mode for this contract. */
|
|
433
376
|
mode:string;
|
|
434
377
|
/** Value that configures or reports total items for this contract. */
|
|
435
|
-
total_items?:number;
|
|
436
|
-
}
|
|
378
|
+
total_items?:number;}
|
|
437
379
|
/** Restricts before command hook values accepted by command, SDK, and storage contracts. */
|
|
438
|
-
export type BeforeCommandHook
|
|
380
|
+
export type BeforeCommandHook=(context:BeforeCommandHookContext)=> Promise<void>|void;
|
|
439
381
|
/** Restricts after command hook values accepted by command, SDK, and storage contracts. */
|
|
440
|
-
export type AfterCommandHook
|
|
382
|
+
export type AfterCommandHook=(context:AfterCommandHookContext)=> Promise<void>|void;
|
|
441
383
|
/** Restricts on write hook values accepted by command, SDK, and storage contracts. */
|
|
442
|
-
export type OnWriteHook
|
|
384
|
+
export type OnWriteHook=(context:OnWriteHookContext)=> Promise<void>|void;
|
|
443
385
|
/** Restricts on read hook values accepted by command, SDK, and storage contracts. */
|
|
444
|
-
export type OnReadHook
|
|
386
|
+
export type OnReadHook=(context:OnReadHookContext)=> Promise<void>|void;
|
|
445
387
|
/** Restricts on index hook values accepted by command, SDK, and storage contracts. */
|
|
446
|
-
export type OnIndexHook
|
|
388
|
+
export type OnIndexHook=(context:OnIndexHookContext)=> Promise<void>|void;
|
|
447
389
|
/** Restricts output renderer format values accepted by command, SDK, and storage contracts. */
|
|
448
|
-
export type OutputRendererFormat
|
|
390
|
+
export type OutputRendererFormat="toon"|"json";
|
|
449
391
|
/** Restricts command override values accepted by command, SDK, and storage contracts. */
|
|
450
|
-
export type CommandOverride
|
|
392
|
+
export type CommandOverride=(context:CommandOverrideContext)=> unknown;
|
|
451
393
|
/** Restricts renderer override values accepted by command, SDK, and storage contracts. */
|
|
452
|
-
export type RendererOverride
|
|
394
|
+
export type RendererOverride=(context:RendererOverrideContext)=> string|null|undefined;
|
|
453
395
|
/** Host-enforced ownership metadata that limits where a renderer override may run. */
|
|
454
|
-
export interface RendererOverrideOwnership
|
|
396
|
+
export interface RendererOverrideOwnership{
|
|
455
397
|
/** Normalized command paths this renderer owns. An unrelated command never reaches the callback. */
|
|
456
398
|
commands?:string[];
|
|
457
399
|
/** Optional result predicate evaluated before the renderer callback. A false result preserves native rendering. */
|
|
458
|
-
resultDiscriminator?:(result:unknown)
|
|
459
|
-
}
|
|
400
|
+
resultDiscriminator?:(result:unknown)=> boolean;}
|
|
460
401
|
/** Declarative renderer definition combining a callback with host-enforced ownership. */
|
|
461
|
-
export interface ScopedRendererOverrideDefinition extends RendererOverrideOwnership
|
|
402
|
+
export interface ScopedRendererOverrideDefinition extends RendererOverrideOwnership{
|
|
462
403
|
/** Renderer callback invoked only after every declared ownership predicate matches. */
|
|
463
|
-
run:RendererOverride;
|
|
464
|
-
}
|
|
404
|
+
run:RendererOverride;}
|
|
465
405
|
/** Restricts command handler values accepted by command, SDK, and storage contracts. */
|
|
466
|
-
export type CommandHandler
|
|
406
|
+
export type CommandHandler=(context:CommandHandlerContext)=> unknown;
|
|
467
407
|
/** Restricts parser override values accepted by command, SDK, and storage contracts. */
|
|
468
|
-
export type ParserOverride
|
|
408
|
+
export type ParserOverride=(context:ParserOverrideContext)=> ParserOverrideDelta|Promise<ParserOverrideDelta>;
|
|
469
409
|
/** Restricts preflight override values accepted by command, SDK, and storage contracts. */
|
|
470
|
-
export type PreflightOverride
|
|
410
|
+
export type PreflightOverride=(context:PreflightOverrideContext)=> PreflightOverrideDelta|Promise<PreflightOverrideDelta>;
|
|
471
411
|
/** Static ownership declaration used to select and diagnose preflight overrides. */
|
|
472
|
-
export interface PreflightOverrideOwnership
|
|
412
|
+
export interface PreflightOverrideOwnership{
|
|
473
413
|
/** Normalized command paths on which this preflight override may run. */
|
|
474
|
-
commands?:string[];
|
|
475
|
-
}
|
|
414
|
+
commands?:string[];}
|
|
476
415
|
/** Declarative preflight override paired with statically inspectable ownership. */
|
|
477
|
-
export interface ScopedPreflightOverrideDefinition extends PreflightOverrideOwnership
|
|
416
|
+
export interface ScopedPreflightOverrideDefinition extends PreflightOverrideOwnership{
|
|
478
417
|
/** Preflight handler invoked only for a declared command, or globally when unscoped. */
|
|
479
|
-
run:PreflightOverride;
|
|
480
|
-
}
|
|
418
|
+
run:PreflightOverride;}
|
|
481
419
|
/** Explicitly claims or declines one service payload without relying on object identity. */
|
|
482
|
-
export type ServiceOverrideDecision
|
|
483
|
-
handled:true;
|
|
484
|
-
result:unknown;
|
|
485
|
-
} | {
|
|
486
|
-
handled:false;
|
|
487
|
-
};
|
|
420
|
+
export type ServiceOverrideDecision={handled:true;result:unknown;}|{handled:false;};
|
|
488
421
|
/** Restricts service override values accepted by command, SDK, and storage contracts. */
|
|
489
|
-
export type ServiceOverride
|
|
422
|
+
export type ServiceOverride=(context:ServiceOverrideContext)=> unknown|ServiceOverrideDecision;
|
|
490
423
|
/** Host-enforced ownership metadata for a service override. */
|
|
491
|
-
export interface ServiceOverrideOwnership
|
|
424
|
+
export interface ServiceOverrideOwnership{
|
|
492
425
|
/** Declare that the callback may only decline. Any handled result is ignored and diagnosed by the host. */
|
|
493
|
-
passThrough?:boolean;
|
|
494
|
-
}
|
|
426
|
+
passThrough?:boolean;}
|
|
495
427
|
/** Documents the registered extension hook payload exchanged by command, SDK, and package integrations. */
|
|
496
|
-
export interface RegisteredExtensionHook<THook>
|
|
428
|
+
export interface RegisteredExtensionHook<THook>{
|
|
497
429
|
/** Value that configures or reports layer for this contract. */
|
|
498
430
|
layer:ExtensionLayer;
|
|
499
431
|
/** Value that configures or reports name for this contract. */
|
|
500
432
|
name:string;
|
|
501
433
|
/** Value that configures or reports run for this contract. */
|
|
502
|
-
run:THook;
|
|
503
|
-
}
|
|
434
|
+
run:THook;}
|
|
504
435
|
/** Documents the extension hook registry payload exchanged by command, SDK, and package integrations. */
|
|
505
|
-
export interface ExtensionHookRegistry
|
|
436
|
+
export interface ExtensionHookRegistry{
|
|
506
437
|
/** Value that configures or reports before command for this contract. */
|
|
507
438
|
beforeCommand:Array<RegisteredExtensionHook<BeforeCommandHook>>;
|
|
508
439
|
/** Transactional guards fired before item and history persistence. */
|
|
@@ -514,19 +445,17 @@ onWrite:Array<RegisteredExtensionHook<OnWriteHook>>;
|
|
|
514
445
|
/** Value that configures or reports on read for this contract. */
|
|
515
446
|
onRead:Array<RegisteredExtensionHook<OnReadHook>>;
|
|
516
447
|
/** Value that configures or reports on index for this contract. */
|
|
517
|
-
onIndex:Array<RegisteredExtensionHook<OnIndexHook>>;
|
|
518
|
-
}
|
|
448
|
+
onIndex:Array<RegisteredExtensionHook<OnIndexHook>>;}
|
|
519
449
|
/** Portable workspace coordinates supplied to every extension runtime surface. */
|
|
520
|
-
export interface PortableWorkspaceContext
|
|
450
|
+
export interface PortableWorkspaceContext{
|
|
521
451
|
/** Immutable source workspace root, distinct from a sandboxed tracker root. */
|
|
522
452
|
source_workspace_root?:string;
|
|
523
453
|
/** Source VCS repository root when one can be resolved. */
|
|
524
454
|
repo_root?:string;
|
|
525
455
|
/** POSIX tracker path relative to the source workspace when contained there. */
|
|
526
|
-
pm_root_rel?:string;
|
|
527
|
-
}
|
|
456
|
+
pm_root_rel?:string;}
|
|
528
457
|
/** Documents the command override context payload exchanged by command, SDK, and package integrations. */
|
|
529
|
-
export interface CommandOverrideContext extends PortableWorkspaceContext
|
|
458
|
+
export interface CommandOverrideContext extends PortableWorkspaceContext{
|
|
530
459
|
/** Value that configures or reports command for this contract. */
|
|
531
460
|
command:string;
|
|
532
461
|
/** Value that configures or reports args for this contract. */
|
|
@@ -538,10 +467,9 @@ global?:GlobalOptions;
|
|
|
538
467
|
/** Value that configures or reports pm root for this contract. */
|
|
539
468
|
pm_root:string;
|
|
540
469
|
/** Value that configures or reports result for this contract. */
|
|
541
|
-
result:unknown;
|
|
542
|
-
}
|
|
470
|
+
result:unknown;}
|
|
543
471
|
/** Documents the renderer override context payload exchanged by command, SDK, and package integrations. */
|
|
544
|
-
export interface RendererOverrideContext extends Partial<PortableWorkspaceContext>
|
|
472
|
+
export interface RendererOverrideContext extends Partial<PortableWorkspaceContext>{
|
|
545
473
|
/** Value that configures or reports format for this contract. */
|
|
546
474
|
format:OutputRendererFormat;
|
|
547
475
|
/** Value that configures or reports command for this contract. */
|
|
@@ -555,10 +483,9 @@ global?:GlobalOptions;
|
|
|
555
483
|
/** Value that configures or reports pm root for this contract. */
|
|
556
484
|
pm_root?:string;
|
|
557
485
|
/** Value that configures or reports result for this contract. */
|
|
558
|
-
result:unknown;
|
|
559
|
-
}
|
|
486
|
+
result:unknown;}
|
|
560
487
|
/** Documents the command handler context payload exchanged by command, SDK, and package integrations. */
|
|
561
|
-
export interface CommandHandlerContext extends PortableWorkspaceContext
|
|
488
|
+
export interface CommandHandlerContext extends PortableWorkspaceContext{
|
|
562
489
|
/** Value that configures or reports command for this contract. */
|
|
563
490
|
command:string;
|
|
564
491
|
/** Value that configures or reports args for this contract. */
|
|
@@ -570,10 +497,9 @@ global:GlobalOptions;
|
|
|
570
497
|
/** Value that configures or reports pm root for this contract. */
|
|
571
498
|
pm_root:string;
|
|
572
499
|
/** Host-bound SDK runtime that avoids package-resolution and private-import coupling. */
|
|
573
|
-
sdk?:ExtensionCommandSdk;
|
|
574
|
-
}
|
|
500
|
+
sdk?:ExtensionCommandSdk;}
|
|
575
501
|
/** Runtime SDK services injected into every extension command invocation. */
|
|
576
|
-
export interface ExtensionCommandSdk
|
|
502
|
+
export interface ExtensionCommandSdk{
|
|
577
503
|
/** Fit complete package envelopes without runtime package resolution. */
|
|
578
504
|
fitOutputEnvelope:typeof fitOutputEnvelope;
|
|
579
505
|
/** Tracker-bound client using the invocation author and workspace. */
|
|
@@ -583,29 +509,17 @@ isItemNotFoundError(error:unknown):boolean;
|
|
|
583
509
|
/** Reconstruct one item at a history version or timestamp. */
|
|
584
510
|
getItemAt(id:string,target:string):Promise<GetItemAtResult>;
|
|
585
511
|
/** Read an extension-owned top-level settings section of this tracker through the host, never by settings.json path. */
|
|
586
|
-
readSettingsSection<T
|
|
512
|
+
readSettingsSection<T=unknown>(section:string,options?:ReadSettingsSectionOptions<T>):Promise<SettingsSectionReadResult<T>>;
|
|
587
513
|
/** Replace or remove (with `undefined`) an extension-owned settings section, optionally compare-and-set on its revision. */
|
|
588
|
-
writeSettingsSection<T>(section:string,value:T
|
|
514
|
+
writeSettingsSection<T>(section:string,value:T|undefined,options?:WriteSettingsSectionOptions<T>):Promise<SettingsSectionWriteResult>;
|
|
589
515
|
/** Open a durable event store with package-contributed relationship semantics. */
|
|
590
|
-
openRelationshipEventStore(options:{
|
|
591
|
-
nodes:Iterable<string>;
|
|
592
|
-
definitions:readonly RelationshipKindDefinition[];
|
|
593
|
-
relativePath?:string;
|
|
594
|
-
}):Promise<RelationshipEventStore>;
|
|
516
|
+
openRelationshipEventStore(options:{nodes:Iterable<string>;definitions:readonly RelationshipKindDefinition[];relativePath?:string;}):Promise<RelationshipEventStore>;
|
|
595
517
|
/** Materialize a validated in-memory graph without resolving the SDK package at runtime. */
|
|
596
|
-
createRelationshipGraph(options:{
|
|
597
|
-
nodes:Iterable<string>;
|
|
598
|
-
edges:Iterable<RelationshipEdge>;
|
|
599
|
-
definitions:readonly RelationshipKindDefinition[];
|
|
600
|
-
}):RelationshipGraph;
|
|
518
|
+
createRelationshipGraph(options:{nodes:Iterable<string>;edges:Iterable<RelationshipEdge>;definitions:readonly RelationshipKindDefinition[];}):RelationshipGraph;
|
|
601
519
|
/** Compute bounded exact impact through the host-owned relationship runtime. */
|
|
602
520
|
analyzeRelationshipImpact(graph:RelationshipGraph,root:string,options?:RelationshipQueryOptions):RelationshipImpactAnalysis;
|
|
603
521
|
/** Validate an immutable relationship event batch without persisting it. */
|
|
604
|
-
validateRelationshipEvents(options:{
|
|
605
|
-
nodes:Iterable<string>;
|
|
606
|
-
definitions:readonly RelationshipKindDefinition[];
|
|
607
|
-
events:readonly RelationshipEventInput[];
|
|
608
|
-
}):RelationshipEvent[];
|
|
522
|
+
validateRelationshipEvents(options:{nodes:Iterable<string>;definitions:readonly RelationshipKindDefinition[];events:readonly RelationshipEventInput[];}):RelationshipEvent[];
|
|
609
523
|
/** Commit idempotent item and relationship mutations under one durable journal. */
|
|
610
524
|
commitWorkspaceTransaction(options:Omit<CommitWorkspaceTransactionOptions,"pmRoot">):Promise<WorkspaceTransactionCommitResult>;
|
|
611
525
|
/** Mutate governed project settings under the host's workspace audit lock. */
|
|
@@ -619,8 +533,7 @@ includePreview?:boolean;
|
|
|
619
533
|
/** Replace these dot-delimited inline object subtrees, removing omitted raw keys while preserving all other source fields. */
|
|
620
534
|
replaceSubtrees?:readonly string[];
|
|
621
535
|
/** Derive the complete next settings tree from normalized inline settings at lock time. */
|
|
622
|
-
mutate:(current:PmSettings)
|
|
623
|
-
}):Promise<{
|
|
536
|
+
mutate:(current:PmSettings)=> PmSettings|Promise<PmSettings>;}):Promise<{
|
|
624
537
|
/** Whether the locked settings bytes would change, or did change on apply. */
|
|
625
538
|
changed:boolean;
|
|
626
539
|
/** Whether persistence was suppressed for this invocation. */
|
|
@@ -628,27 +541,23 @@ dry_run:boolean;
|
|
|
628
541
|
/** Whether the operation was already committed and the callback was skipped. */
|
|
629
542
|
replayed:boolean;
|
|
630
543
|
/** Settings resolved from the exact persisted bytes, before optional file-backed schema overlays. Absent on replay. */
|
|
631
|
-
preview?:PmSettings;
|
|
632
|
-
}>;
|
|
633
|
-
}
|
|
544
|
+
preview?:PmSettings;}>;}
|
|
634
545
|
/** Documents the parser override context payload exchanged by command, SDK, and package integrations. */
|
|
635
|
-
export type ParserOverrideContext
|
|
546
|
+
export type ParserOverrideContext=CommandHandlerContext;
|
|
636
547
|
/** Documents the parser override delta payload exchanged by command, SDK, and package integrations. */
|
|
637
|
-
export interface ParserOverrideDelta
|
|
548
|
+
export interface ParserOverrideDelta{
|
|
638
549
|
/** Value that configures or reports args for this contract. */
|
|
639
550
|
args?:string[];
|
|
640
551
|
/** Value that configures or reports options for this contract. */
|
|
641
552
|
options?:Record<string,unknown>;
|
|
642
553
|
/** Value that configures or reports global for this contract. */
|
|
643
|
-
global?:GlobalOptions;
|
|
644
|
-
}
|
|
554
|
+
global?:GlobalOptions;}
|
|
645
555
|
/** Documents the preflight override context payload exchanged by command, SDK, and package integrations. */
|
|
646
|
-
export interface PreflightOverrideContext extends CommandHandlerContext
|
|
556
|
+
export interface PreflightOverrideContext extends CommandHandlerContext{
|
|
647
557
|
/** Value that configures or reports decision for this contract. */
|
|
648
|
-
decision:PreflightRuntimeDecision;
|
|
649
|
-
}
|
|
558
|
+
decision:PreflightRuntimeDecision;}
|
|
650
559
|
/** Documents the preflight runtime decision payload exchanged by command, SDK, and package integrations. */
|
|
651
|
-
export interface PreflightRuntimeDecision
|
|
560
|
+
export interface PreflightRuntimeDecision{
|
|
652
561
|
/** Value that configures or reports enforce item format gate for this contract. */
|
|
653
562
|
enforce_item_format_gate:boolean;
|
|
654
563
|
/** Executes the preflight item format sync operation through the package runtime. */
|
|
@@ -656,10 +565,9 @@ run_preflight_item_format_sync:boolean;
|
|
|
656
565
|
/** Executes the extension migrations operation through the package runtime. */
|
|
657
566
|
run_extension_migrations:boolean;
|
|
658
567
|
/** Value that configures or reports enforce mandatory migration gate for this contract. */
|
|
659
|
-
enforce_mandatory_migration_gate:boolean;
|
|
660
|
-
}
|
|
568
|
+
enforce_mandatory_migration_gate:boolean;}
|
|
661
569
|
/** Documents the preflight override delta payload exchanged by command, SDK, and package integrations. */
|
|
662
|
-
export interface PreflightOverrideDelta extends ParserOverrideDelta
|
|
570
|
+
export interface PreflightOverrideDelta extends ParserOverrideDelta{
|
|
663
571
|
/** Value that configures or reports enforce item format gate for this contract. */
|
|
664
572
|
enforce_item_format_gate?:boolean;
|
|
665
573
|
/** Executes the preflight item format sync operation through the package runtime. */
|
|
@@ -667,10 +575,9 @@ run_preflight_item_format_sync?:boolean;
|
|
|
667
575
|
/** Executes the extension migrations operation through the package runtime. */
|
|
668
576
|
run_extension_migrations?:boolean;
|
|
669
577
|
/** Value that configures or reports enforce mandatory migration gate for this contract. */
|
|
670
|
-
enforce_mandatory_migration_gate?:boolean;
|
|
671
|
-
}
|
|
578
|
+
enforce_mandatory_migration_gate?:boolean;}
|
|
672
579
|
/** Documents the service override context payload exchanged by command, SDK, and package integrations. */
|
|
673
|
-
export interface ServiceOverrideContext extends Partial<PortableWorkspaceContext>
|
|
580
|
+
export interface ServiceOverrideContext extends Partial<PortableWorkspaceContext>{
|
|
674
581
|
/** Value that configures or reports service for this contract. */
|
|
675
582
|
service:ExtensionServiceName;
|
|
676
583
|
/** Value that configures or reports command for this contract. */
|
|
@@ -684,10 +591,9 @@ global?:GlobalOptions;
|
|
|
684
591
|
/** Value that configures or reports pm root for this contract. */
|
|
685
592
|
pm_root?:string;
|
|
686
593
|
/** Value that configures or reports payload for this contract. */
|
|
687
|
-
payload:unknown;
|
|
688
|
-
}
|
|
594
|
+
payload:unknown;}
|
|
689
595
|
/** Documents the extension command argument definition payload exchanged by command, SDK, and package integrations. */
|
|
690
|
-
export interface ExtensionCommandArgumentDefinition
|
|
596
|
+
export interface ExtensionCommandArgumentDefinition{
|
|
691
597
|
/** Value that configures or reports name for this contract. */
|
|
692
598
|
name:string;
|
|
693
599
|
/** Value that configures or reports required for this contract. */
|
|
@@ -695,10 +601,9 @@ required?:boolean;
|
|
|
695
601
|
/** Value that configures or reports variadic for this contract. */
|
|
696
602
|
variadic?:boolean;
|
|
697
603
|
/** Value that configures or reports description for this contract. */
|
|
698
|
-
description?:string;
|
|
699
|
-
}
|
|
604
|
+
description?:string;}
|
|
700
605
|
/** Documents the command definition payload exchanged by command, SDK, and package integrations. */
|
|
701
|
-
export interface CommandDefinition
|
|
606
|
+
export interface CommandDefinition{
|
|
702
607
|
/** Opt a read-only handler into host projection, row bounds, budgets and continuation. */
|
|
703
608
|
read_output?:ExtensionCommandReadOutput;
|
|
704
609
|
/** Value that configures or reports name for this contract. */
|
|
@@ -724,15 +629,13 @@ arguments?:ExtensionCommandArgumentDefinition[];
|
|
|
724
629
|
/** Value that configures or reports flags for this contract. */
|
|
725
630
|
flags?:FlagDefinition[];
|
|
726
631
|
/** Minimum agent surface tier that should advertise this command. */
|
|
727
|
-
tier?:"core"
|
|
632
|
+
tier?:"core"|"standard"|"full"|"internal";
|
|
728
633
|
/** Capability family used by generated agent routing surfaces. */
|
|
729
|
-
family?:ExtensionCommandCapabilityFamily;
|
|
730
|
-
}
|
|
634
|
+
family?:ExtensionCommandCapabilityFamily;}
|
|
731
635
|
/** Structured rows a read-only extension command returns for host output shaping. */
|
|
732
|
-
export interface ExtensionCommandReadOutput
|
|
636
|
+
export interface ExtensionCommandReadOutput{
|
|
733
637
|
/** Dot-delimited array or object-map paths; an empty list declares a singleton result. */
|
|
734
|
-
row_keys:readonly string[];
|
|
735
|
-
}
|
|
638
|
+
row_keys:readonly string[];}
|
|
736
639
|
/**
|
|
737
640
|
* Optional command-definition metadata for first-class importer/exporter
|
|
738
641
|
* registration.
|
|
@@ -745,7 +648,7 @@ row_keys:readonly string[];
|
|
|
745
648
|
* `registerCommand`. The registration `name` and `run` handler are implicit, so
|
|
746
649
|
* they are not part of this options object.
|
|
747
650
|
*/
|
|
748
|
-
export interface ImportExportRegistrationOptions
|
|
651
|
+
export interface ImportExportRegistrationOptions{
|
|
749
652
|
/** Value that configures or reports action for this contract. */
|
|
750
653
|
action?:string;
|
|
751
654
|
/** Value that configures or reports description for this contract. */
|
|
@@ -759,52 +662,47 @@ failure_hints?:string[];
|
|
|
759
662
|
/** Value that configures or reports arguments for this contract. */
|
|
760
663
|
arguments?:ExtensionCommandArgumentDefinition[];
|
|
761
664
|
/** Value that configures or reports flags for this contract. */
|
|
762
|
-
flags?:FlagDefinition[];
|
|
763
|
-
}
|
|
665
|
+
flags?:FlagDefinition[];}
|
|
764
666
|
/**
|
|
765
667
|
* Declares where an exporter writes its artifact and whether the host may
|
|
766
668
|
* render the returned structured receipt after the exporter completes.
|
|
767
669
|
*/
|
|
768
|
-
export type ExporterArtifactOutputContract
|
|
670
|
+
export type ExporterArtifactOutputContract={
|
|
769
671
|
/** Stdout exclusively carries artifact bytes. */
|
|
770
672
|
channel:"stdout";
|
|
771
673
|
/** Stdout artifacts cannot opt back into host rendering. */
|
|
772
674
|
receipt?:"suppress";
|
|
773
675
|
/** Optional IANA media type describing the emitted artifact. */
|
|
774
|
-
media_type?:string;
|
|
775
|
-
} | {
|
|
676
|
+
media_type?:string;}|{
|
|
776
677
|
/** The exporter writes its artifact to a file. */
|
|
777
678
|
channel:"file";
|
|
778
679
|
/** File exporters may render or suppress their bounded receipt. */
|
|
779
|
-
receipt?:"suppress"
|
|
680
|
+
receipt?:"suppress"|"render";
|
|
780
681
|
/** Optional IANA media type describing the emitted artifact. */
|
|
781
|
-
media_type?:string;
|
|
782
|
-
};
|
|
682
|
+
media_type?:string;};
|
|
783
683
|
/** Exporter command metadata plus its optional artifact-delivery contract. */
|
|
784
|
-
export interface ExporterRegistrationOptions extends ImportExportRegistrationOptions
|
|
684
|
+
export interface ExporterRegistrationOptions extends ImportExportRegistrationOptions{
|
|
785
685
|
/** Declaration for artifact bytes and the host receipt. */
|
|
786
|
-
output?:ExporterArtifactOutputContract;
|
|
787
|
-
}
|
|
686
|
+
output?:ExporterArtifactOutputContract;}
|
|
788
687
|
/** Fully normalized exporter artifact contract stored in inventories. */
|
|
789
|
-
export interface RegisteredExporterArtifactOutputContract
|
|
688
|
+
export interface RegisteredExporterArtifactOutputContract{
|
|
790
689
|
/** Destination carrying the artifact bytes. */
|
|
791
|
-
channel:"stdout"
|
|
690
|
+
channel:"stdout"|"file";
|
|
792
691
|
/** Explicit host receipt policy after normalization. */
|
|
793
|
-
receipt:"suppress"
|
|
692
|
+
receipt:"suppress"|"render";
|
|
794
693
|
/** Optional IANA media type describing the emitted artifact. */
|
|
795
|
-
media_type?:string;
|
|
796
|
-
}
|
|
694
|
+
media_type?:string;}
|
|
797
695
|
/** Restricts flag value type values accepted by command, SDK, and storage contracts. */
|
|
798
|
-
export type FlagValueType
|
|
696
|
+
export type FlagValueType="string"|"number"|"boolean";
|
|
799
697
|
/**
|
|
800
698
|
* How a typed scalar flag treats a value token that does not coerce under its
|
|
801
699
|
* declared `value_type`. `coerce` (default, compatible) forwards the original
|
|
802
700
|
* token to the handler for its own validation; `strict` refuses the invocation
|
|
803
701
|
* with a typed usage error before the handler runs.
|
|
804
702
|
*/
|
|
805
|
-
export type FlagValueValidation
|
|
703
|
+
export type FlagValueValidation="coerce"|"strict";
|
|
806
704
|
/** Documents the flag definition payload exchanged by command, SDK, and package integrations. */
|
|
807
|
-
export interface FlagDefinition
|
|
705
|
+
export interface FlagDefinition{
|
|
808
706
|
/** Value that configures or reports long for this contract. */
|
|
809
707
|
long?:string;
|
|
810
708
|
/** Value that configures or reports short for this contract. */
|
|
@@ -832,7 +730,7 @@ list?:boolean;
|
|
|
832
730
|
/** Package-author-friendly alias for ordered list accumulation. Unlike CSV-friendly `list`, commas inside one repeated occurrence remain atomic. Normalized with `list: true` for host registration and contracts. */
|
|
833
731
|
repeatable?:boolean;
|
|
834
732
|
/** Default value applied when the flag is omitted. Surfaced to runtime contracts and help output. A `list` flag may default to an array of scalars (e.g. `["a", "b"]`); the array is flattened/coerced like any list value. */
|
|
835
|
-
default?:string
|
|
733
|
+
default?:string|number|boolean|Array<string|number|boolean>;
|
|
836
734
|
/**
|
|
837
735
|
* Scalar validation policy for `number`/`boolean` flags. `strict` refuses a
|
|
838
736
|
* malformed value token (`--limit abc`, `--enabled maybe`, or a value-less
|
|
@@ -840,10 +738,9 @@ default?:string | number | boolean | Array<string | number | boolean>;
|
|
|
840
738
|
* behaviour of forwarding the raw token. Switch presence (`--verbose`,
|
|
841
739
|
* `--no-verbose`) and the legacy `bool` optional-value grammar are unaffected.
|
|
842
740
|
*/
|
|
843
|
-
value_validation?:FlagValueValidation;
|
|
844
|
-
}
|
|
741
|
+
value_validation?:FlagValueValidation;}
|
|
845
742
|
/** Documents the schema field definition payload exchanged by command, SDK, and package integrations. */
|
|
846
|
-
export interface SchemaFieldDefinition
|
|
743
|
+
export interface SchemaFieldDefinition{
|
|
847
744
|
/** Value that configures or reports name for this contract. */
|
|
848
745
|
name:string;
|
|
849
746
|
/** Canonical persisted field type shared with `pm schema add-field`. */
|
|
@@ -853,10 +750,9 @@ optional?:boolean;
|
|
|
853
750
|
/** Default metadata value applied when the field is absent. */
|
|
854
751
|
default?:unknown;
|
|
855
752
|
/** Optional allow-list of accepted metadata values. */
|
|
856
|
-
values?:unknown[];
|
|
857
|
-
}
|
|
753
|
+
values?:unknown[];}
|
|
858
754
|
/** Documents the schema item type command option policy definition payload exchanged by command, SDK, and package integrations. */
|
|
859
|
-
export interface SchemaItemTypeCommandOptionPolicyDefinition
|
|
755
|
+
export interface SchemaItemTypeCommandOptionPolicyDefinition{
|
|
860
756
|
/** Value that configures or reports command for this contract. */
|
|
861
757
|
command:string;
|
|
862
758
|
/** Value that configures or reports option for this contract. */
|
|
@@ -866,10 +762,9 @@ enabled?:boolean;
|
|
|
866
762
|
/** Value that configures or reports required for this contract. */
|
|
867
763
|
required?:boolean;
|
|
868
764
|
/** Value that configures or reports visible for this contract. */
|
|
869
|
-
visible?:boolean;
|
|
870
|
-
}
|
|
765
|
+
visible?:boolean;}
|
|
871
766
|
/** Documents the schema item type option definition payload exchanged by command, SDK, and package integrations. */
|
|
872
|
-
export interface SchemaItemTypeOptionDefinition
|
|
767
|
+
export interface SchemaItemTypeOptionDefinition{
|
|
873
768
|
/** Value that configures or reports key for this contract. */
|
|
874
769
|
key:string;
|
|
875
770
|
/** Value that configures or reports values for this contract. */
|
|
@@ -877,10 +772,9 @@ values?:string[];
|
|
|
877
772
|
/** Value that configures or reports required for this contract. */
|
|
878
773
|
required?:boolean;
|
|
879
774
|
/** Value that configures or reports aliases for this contract. */
|
|
880
|
-
aliases?:string[];
|
|
881
|
-
}
|
|
775
|
+
aliases?:string[];}
|
|
882
776
|
/** Documents the schema item type definition payload exchanged by command, SDK, and package integrations. */
|
|
883
|
-
export interface SchemaItemTypeDefinition
|
|
777
|
+
export interface SchemaItemTypeDefinition{
|
|
884
778
|
/** Value that configures or reports name for this contract. */
|
|
885
779
|
name:string;
|
|
886
780
|
/** Value that configures or reports folder for this contract. */
|
|
@@ -892,7 +786,7 @@ description?:string;
|
|
|
892
786
|
/** Initial status assigned when the contributed item type is created. */
|
|
893
787
|
default_status?:string;
|
|
894
788
|
/** Dispatch role inherited by next, context, and automatic claims. Gates track outcomes; human roles require decisions. */
|
|
895
|
-
execution_role?:"agent"
|
|
789
|
+
execution_role?:"agent"|"human"|"gate";
|
|
896
790
|
/** Value that configures or reports required create fields for this contract. */
|
|
897
791
|
required_create_fields?:string[];
|
|
898
792
|
/** Value that configures or reports required create repeatables for this contract. */
|
|
@@ -900,11 +794,9 @@ required_create_repeatables?:string[];
|
|
|
900
794
|
/** Value that configures or reports command option policies for this contract. */
|
|
901
795
|
command_option_policies?:SchemaItemTypeCommandOptionPolicyDefinition[];
|
|
902
796
|
/** Value that configures or reports options for this contract. */
|
|
903
|
-
options?:SchemaItemTypeOptionDefinition[];
|
|
904
|
-
[key:string]:unknown;
|
|
905
|
-
}
|
|
797
|
+
options?:SchemaItemTypeOptionDefinition[];[key:string]:unknown;}
|
|
906
798
|
/** Documents the schema migration run context payload exchanged by command, SDK, and package integrations. */
|
|
907
|
-
export interface SchemaMigrationRunContext
|
|
799
|
+
export interface SchemaMigrationRunContext{
|
|
908
800
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
909
801
|
id:string;
|
|
910
802
|
/** Value that configures or reports command for this contract. */
|
|
@@ -916,12 +808,11 @@ extension:string;
|
|
|
916
808
|
/** Value that configures or reports pm root for this contract. */
|
|
917
809
|
pm_root:string;
|
|
918
810
|
/** Lifecycle state reported for status. */
|
|
919
|
-
status:string;
|
|
920
|
-
}
|
|
811
|
+
status:string;}
|
|
921
812
|
/** Restricts schema migration runner values accepted by command, SDK, and storage contracts. */
|
|
922
|
-
export type SchemaMigrationRunner
|
|
813
|
+
export type SchemaMigrationRunner=(context:SchemaMigrationRunContext)=> unknown|Promise<unknown>;
|
|
923
814
|
/** Documents the schema migration definition payload exchanged by command, SDK, and package integrations. */
|
|
924
|
-
export interface SchemaMigrationDefinition
|
|
815
|
+
export interface SchemaMigrationDefinition{
|
|
925
816
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
926
817
|
id?:string;
|
|
927
818
|
/** Value that configures or reports description for this contract. */
|
|
@@ -931,15 +822,13 @@ status?:string;
|
|
|
931
822
|
/** Value that configures or reports mandatory for this contract. */
|
|
932
823
|
mandatory?:boolean;
|
|
933
824
|
/** Value that configures or reports run for this contract. */
|
|
934
|
-
run?:SchemaMigrationRunner;
|
|
935
|
-
[key:string]:unknown;
|
|
936
|
-
}
|
|
825
|
+
run?:SchemaMigrationRunner;[key:string]:unknown;}
|
|
937
826
|
/** Documents the import export context payload exchanged by command, SDK, and package integrations. */
|
|
938
|
-
export interface ImportExportContext extends PortableWorkspaceContext
|
|
827
|
+
export interface ImportExportContext extends PortableWorkspaceContext{
|
|
939
828
|
/** Value that configures or reports registration for this contract. */
|
|
940
829
|
registration:string;
|
|
941
830
|
/** Value that configures or reports action for this contract. */
|
|
942
|
-
action:"import"
|
|
831
|
+
action:"import"|"export";
|
|
943
832
|
/** Value that configures or reports command for this contract. */
|
|
944
833
|
command:string;
|
|
945
834
|
/** Value that configures or reports args for this contract. */
|
|
@@ -951,16 +840,15 @@ global:GlobalOptions;
|
|
|
951
840
|
/** Value that configures or reports pm root for this contract. */
|
|
952
841
|
pm_root:string;
|
|
953
842
|
/** Host-bound SDK runtime for composing PM actions without spawning the CLI. */
|
|
954
|
-
sdk?:ExtensionCommandSdk;
|
|
955
|
-
}
|
|
843
|
+
sdk?:ExtensionCommandSdk;}
|
|
956
844
|
/** Restricts importer values accepted by command, SDK, and storage contracts. */
|
|
957
|
-
export type Importer
|
|
845
|
+
export type Importer=(context:ImportExportContext)=> unknown|Promise<unknown>;
|
|
958
846
|
/** Restricts exporter values accepted by command, SDK, and storage contracts. */
|
|
959
|
-
export type Exporter
|
|
847
|
+
export type Exporter=(context:ImportExportContext)=> unknown|Promise<unknown>;
|
|
960
848
|
/** Restricts extension search mode values accepted by command, SDK, and storage contracts. */
|
|
961
|
-
export type ExtensionSearchMode
|
|
849
|
+
export type ExtensionSearchMode="keyword"|"semantic"|"hybrid";
|
|
962
850
|
/** Documents the search provider query context payload exchanged by command, SDK, and package integrations. */
|
|
963
|
-
export interface SearchProviderQueryContext
|
|
851
|
+
export interface SearchProviderQueryContext{
|
|
964
852
|
/** Value that configures or reports query for this contract. */
|
|
965
853
|
query:string;
|
|
966
854
|
/** Value that configures or reports mode for this contract. */
|
|
@@ -972,59 +860,45 @@ options:Record<string,unknown>;
|
|
|
972
860
|
/** Value that configures or reports settings for this contract. */
|
|
973
861
|
settings:PmSettings;
|
|
974
862
|
/** Value that configures or reports documents for this contract. */
|
|
975
|
-
documents:ItemDocument[];
|
|
976
|
-
[key:string]:unknown;
|
|
977
|
-
}
|
|
863
|
+
documents:ItemDocument[];[key:string]:unknown;}
|
|
978
864
|
/** Documents the search provider hit payload exchanged by command, SDK, and package integrations. */
|
|
979
|
-
export interface SearchProviderHit
|
|
865
|
+
export interface SearchProviderHit{
|
|
980
866
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
981
867
|
id:string;
|
|
982
868
|
/** Value that configures or reports score for this contract. */
|
|
983
869
|
score:number;
|
|
984
870
|
/** Value that configures or reports matched fields for this contract. */
|
|
985
|
-
matched_fields?:string[];
|
|
986
|
-
[key:string]:unknown;
|
|
987
|
-
}
|
|
871
|
+
matched_fields?:string[];[key:string]:unknown;}
|
|
988
872
|
/** Restricts search provider query result values accepted by command, SDK, and storage contracts. */
|
|
989
|
-
export type SearchProviderQueryResult
|
|
990
|
-
hits?:SearchProviderHit[];
|
|
991
|
-
};
|
|
873
|
+
export type SearchProviderQueryResult=SearchProviderHit[]|{hits?:SearchProviderHit[];};
|
|
992
874
|
/** Documents the search provider query expansion context payload exchanged by command, SDK, and package integrations. */
|
|
993
|
-
export interface SearchProviderQueryExpansionContext
|
|
875
|
+
export interface SearchProviderQueryExpansionContext{
|
|
994
876
|
/** Value that configures or reports query for this contract. */
|
|
995
877
|
query:string;
|
|
996
878
|
/** Value that configures or reports mode for this contract. */
|
|
997
879
|
mode:Exclude<ExtensionSearchMode,"keyword">;
|
|
998
880
|
/** Value that configures or reports settings for this contract. */
|
|
999
|
-
settings:PmSettings;
|
|
1000
|
-
[key:string]:unknown;
|
|
1001
|
-
}
|
|
881
|
+
settings:PmSettings;[key:string]:unknown;}
|
|
1002
882
|
/** Restricts search provider query expansion result values accepted by command, SDK, and storage contracts. */
|
|
1003
|
-
export type SearchProviderQueryExpansionResult
|
|
1004
|
-
queries?:string[];
|
|
1005
|
-
};
|
|
883
|
+
export type SearchProviderQueryExpansionResult=string[]|{queries?:string[];};
|
|
1006
884
|
/** Documents the search provider rerank candidate payload exchanged by command, SDK, and package integrations. */
|
|
1007
|
-
export interface SearchProviderRerankCandidate
|
|
885
|
+
export interface SearchProviderRerankCandidate{
|
|
1008
886
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
1009
887
|
id:string;
|
|
1010
888
|
/** Value that configures or reports text for this contract. */
|
|
1011
889
|
text:string;
|
|
1012
890
|
/** Value that configures or reports score for this contract. */
|
|
1013
|
-
score:number;
|
|
1014
|
-
}
|
|
891
|
+
score:number;}
|
|
1015
892
|
/** Documents the search provider rerank hit payload exchanged by command, SDK, and package integrations. */
|
|
1016
|
-
export interface SearchProviderRerankHit
|
|
893
|
+
export interface SearchProviderRerankHit{
|
|
1017
894
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
1018
895
|
id:string;
|
|
1019
896
|
/** Value that configures or reports score for this contract. */
|
|
1020
|
-
score:number;
|
|
1021
|
-
}
|
|
897
|
+
score:number;}
|
|
1022
898
|
/** Restricts search provider rerank result values accepted by command, SDK, and storage contracts. */
|
|
1023
|
-
export type SearchProviderRerankResult
|
|
1024
|
-
hits?:SearchProviderRerankHit[];
|
|
1025
|
-
};
|
|
899
|
+
export type SearchProviderRerankResult=SearchProviderRerankHit[]|{hits?:SearchProviderRerankHit[];};
|
|
1026
900
|
/** Documents the search provider rerank context payload exchanged by command, SDK, and package integrations. */
|
|
1027
|
-
export interface SearchProviderRerankContext
|
|
901
|
+
export interface SearchProviderRerankContext{
|
|
1028
902
|
/** Value that configures or reports query for this contract. */
|
|
1029
903
|
query:string;
|
|
1030
904
|
/** Value that configures or reports mode for this contract. */
|
|
@@ -1036,153 +910,129 @@ top_k:number;
|
|
|
1036
910
|
/** Value that configures or reports settings for this contract. */
|
|
1037
911
|
settings:PmSettings;
|
|
1038
912
|
/** Value that configures or reports candidates for this contract. */
|
|
1039
|
-
candidates:SearchProviderRerankCandidate[];
|
|
1040
|
-
[key:string]:unknown;
|
|
1041
|
-
}
|
|
913
|
+
candidates:SearchProviderRerankCandidate[];[key:string]:unknown;}
|
|
1042
914
|
/** Documents the search provider embed batch context payload exchanged by command, SDK, and package integrations. */
|
|
1043
|
-
export interface SearchProviderEmbedBatchContext
|
|
915
|
+
export interface SearchProviderEmbedBatchContext{
|
|
1044
916
|
/** Value that configures or reports inputs for this contract. */
|
|
1045
917
|
inputs:string[];
|
|
1046
918
|
/** Value that configures or reports settings for this contract. */
|
|
1047
919
|
settings:PmSettings;
|
|
1048
920
|
/** Value that configures or reports model for this contract. */
|
|
1049
|
-
model:string;
|
|
1050
|
-
[key:string]:unknown;
|
|
1051
|
-
}
|
|
921
|
+
model:string;[key:string]:unknown;}
|
|
1052
922
|
/** Documents the search provider embed context payload exchanged by command, SDK, and package integrations. */
|
|
1053
|
-
export interface SearchProviderEmbedContext
|
|
923
|
+
export interface SearchProviderEmbedContext{
|
|
1054
924
|
/** Value that configures or reports input for this contract. */
|
|
1055
925
|
input:string;
|
|
1056
926
|
/** Value that configures or reports settings for this contract. */
|
|
1057
927
|
settings:PmSettings;
|
|
1058
928
|
/** Value that configures or reports model for this contract. */
|
|
1059
|
-
model:string;
|
|
1060
|
-
[key:string]:unknown;
|
|
1061
|
-
}
|
|
929
|
+
model:string;[key:string]:unknown;}
|
|
1062
930
|
/** Documents the search provider definition payload exchanged by command, SDK, and package integrations. */
|
|
1063
|
-
export interface SearchProviderDefinition
|
|
931
|
+
export interface SearchProviderDefinition{
|
|
1064
932
|
/** Value that configures or reports name for this contract. */
|
|
1065
933
|
name:string;
|
|
1066
934
|
/** Value that configures or reports query for this contract. */
|
|
1067
|
-
query?:(context:SearchProviderQueryContext)
|
|
935
|
+
query?:(context:SearchProviderQueryContext)=> SearchProviderQueryResult|Promise<SearchProviderQueryResult>;
|
|
1068
936
|
/** Value that configures or reports query expansion for this contract. */
|
|
1069
|
-
queryExpansion?:(context:SearchProviderQueryExpansionContext)
|
|
937
|
+
queryExpansion?:(context:SearchProviderQueryExpansionContext)=> SearchProviderQueryExpansionResult|Promise<SearchProviderQueryExpansionResult>;
|
|
1070
938
|
/** Value that configures or reports query expansion for this contract. */
|
|
1071
|
-
query_expansion?:(context:SearchProviderQueryExpansionContext)
|
|
939
|
+
query_expansion?:(context:SearchProviderQueryExpansionContext)=> SearchProviderQueryExpansionResult|Promise<SearchProviderQueryExpansionResult>;
|
|
1072
940
|
/** Value that configures or reports rerank for this contract. */
|
|
1073
|
-
rerank?:(context:SearchProviderRerankContext)
|
|
941
|
+
rerank?:(context:SearchProviderRerankContext)=> SearchProviderRerankResult|Promise<SearchProviderRerankResult>;
|
|
1074
942
|
/** Value that configures or reports embed batch for this contract. */
|
|
1075
|
-
embedBatch?:(context:SearchProviderEmbedBatchContext)
|
|
943
|
+
embedBatch?:(context:SearchProviderEmbedBatchContext)=> number[][]|Promise<number[][]>;
|
|
1076
944
|
/** Value that configures or reports embed batch for this contract. */
|
|
1077
|
-
embed_batch?:(context:SearchProviderEmbedBatchContext)
|
|
945
|
+
embed_batch?:(context:SearchProviderEmbedBatchContext)=> number[][]|Promise<number[][]>;
|
|
1078
946
|
/** Value that configures or reports embed for this contract. */
|
|
1079
|
-
embed?:(context:SearchProviderEmbedContext)
|
|
1080
|
-
[key:string]:unknown;
|
|
1081
|
-
}
|
|
947
|
+
embed?:(context:SearchProviderEmbedContext)=> number[]|Promise<number[]>;[key:string]:unknown;}
|
|
1082
948
|
/** Documents the vector store query hit payload exchanged by command, SDK, and package integrations. */
|
|
1083
|
-
export interface VectorStoreQueryHit
|
|
949
|
+
export interface VectorStoreQueryHit{
|
|
1084
950
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
1085
951
|
id:string;
|
|
1086
952
|
/** Value that configures or reports score for this contract. */
|
|
1087
953
|
score:number;
|
|
1088
954
|
/** Value that configures or reports payload for this contract. */
|
|
1089
|
-
payload?:Record<string,unknown>;
|
|
1090
|
-
[key:string]:unknown;
|
|
1091
|
-
}
|
|
955
|
+
payload?:Record<string,unknown>;[key:string]:unknown;}
|
|
1092
956
|
/** Documents the vector store query context payload exchanged by command, SDK, and package integrations. */
|
|
1093
|
-
export interface VectorStoreQueryContext
|
|
957
|
+
export interface VectorStoreQueryContext{
|
|
1094
958
|
/** Value that configures or reports vector for this contract. */
|
|
1095
959
|
vector:number[];
|
|
1096
960
|
/** Value that configures or reports limit for this contract. */
|
|
1097
961
|
limit:number;
|
|
1098
962
|
/** Value that configures or reports settings for this contract. */
|
|
1099
|
-
settings:PmSettings;
|
|
1100
|
-
[key:string]:unknown;
|
|
1101
|
-
}
|
|
963
|
+
settings:PmSettings;[key:string]:unknown;}
|
|
1102
964
|
/** Documents the vector store upsert point payload exchanged by command, SDK, and package integrations. */
|
|
1103
|
-
export interface VectorStoreUpsertPoint
|
|
965
|
+
export interface VectorStoreUpsertPoint{
|
|
1104
966
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
1105
967
|
id:string;
|
|
1106
968
|
/** Value that configures or reports vector for this contract. */
|
|
1107
969
|
vector:number[];
|
|
1108
970
|
/** Value that configures or reports payload for this contract. */
|
|
1109
|
-
payload?:Record<string,unknown>;
|
|
1110
|
-
[key:string]:unknown;
|
|
1111
|
-
}
|
|
971
|
+
payload?:Record<string,unknown>;[key:string]:unknown;}
|
|
1112
972
|
/** Documents the vector store upsert context payload exchanged by command, SDK, and package integrations. */
|
|
1113
|
-
export interface VectorStoreUpsertContext
|
|
973
|
+
export interface VectorStoreUpsertContext{
|
|
1114
974
|
/** Value that configures or reports points for this contract. */
|
|
1115
975
|
points:VectorStoreUpsertPoint[];
|
|
1116
976
|
/** Value that configures or reports settings for this contract. */
|
|
1117
|
-
settings:PmSettings;
|
|
1118
|
-
[key:string]:unknown;
|
|
1119
|
-
}
|
|
977
|
+
settings:PmSettings;[key:string]:unknown;}
|
|
1120
978
|
/** Documents the vector store delete context payload exchanged by command, SDK, and package integrations. */
|
|
1121
|
-
export interface VectorStoreDeleteContext
|
|
979
|
+
export interface VectorStoreDeleteContext{
|
|
1122
980
|
/** Value that configures or reports ids for this contract. */
|
|
1123
981
|
ids:string[];
|
|
1124
982
|
/** Value that configures or reports settings for this contract. */
|
|
1125
|
-
settings:PmSettings;
|
|
1126
|
-
[key:string]:unknown;
|
|
1127
|
-
}
|
|
983
|
+
settings:PmSettings;[key:string]:unknown;}
|
|
1128
984
|
/** Documents the vector store adapter definition payload exchanged by command, SDK, and package integrations. */
|
|
1129
|
-
export interface VectorStoreAdapterDefinition
|
|
985
|
+
export interface VectorStoreAdapterDefinition{
|
|
1130
986
|
/** Value that configures or reports name for this contract. */
|
|
1131
987
|
name:string;
|
|
1132
988
|
/** Value that configures or reports query for this contract. */
|
|
1133
|
-
query?:(context:VectorStoreQueryContext)
|
|
989
|
+
query?:(context:VectorStoreQueryContext)=> VectorStoreQueryHit[]|Promise<VectorStoreQueryHit[]>;
|
|
1134
990
|
/** Value that configures or reports upsert for this contract. */
|
|
1135
|
-
upsert?:(context:VectorStoreUpsertContext)
|
|
991
|
+
upsert?:(context:VectorStoreUpsertContext)=> unknown|Promise<unknown>;
|
|
1136
992
|
/** Value that configures or reports delete for this contract. */
|
|
1137
|
-
delete?:(context:VectorStoreDeleteContext)
|
|
1138
|
-
[key:string]:unknown;
|
|
1139
|
-
}
|
|
993
|
+
delete?:(context:VectorStoreDeleteContext)=> unknown|Promise<unknown>;[key:string]:unknown;}
|
|
1140
994
|
/** Cost classes let lifecycle gates reject expensive provider work before invoking it. */
|
|
1141
|
-
export type AssuranceMeasurementProviderCostClass
|
|
995
|
+
export type AssuranceMeasurementProviderCostClass="low"|"medium"|"high";
|
|
1142
996
|
/** JSON-compatible parameter contract for one provider measurement key. */
|
|
1143
|
-
export interface AssuranceMeasurementProviderParameterDefinition
|
|
997
|
+
export interface AssuranceMeasurementProviderParameterDefinition{
|
|
1144
998
|
/** Parameter value kind. */
|
|
1145
|
-
type:"string"
|
|
999
|
+
type:"string"|"number"|"boolean";
|
|
1146
1000
|
/** Whether callers must supply the parameter. */
|
|
1147
1001
|
required?:boolean;
|
|
1148
1002
|
/** Human-readable parameter intent. */
|
|
1149
|
-
description?:string;
|
|
1150
|
-
}
|
|
1003
|
+
description?:string;}
|
|
1151
1004
|
/** Serializable schema for one measurement key owned by a provider. */
|
|
1152
|
-
export interface AssuranceMeasurementProviderKeyDefinition
|
|
1005
|
+
export interface AssuranceMeasurementProviderKeyDefinition{
|
|
1153
1006
|
/** Value kind returned by the resolver. */
|
|
1154
|
-
value_type:"number"
|
|
1007
|
+
value_type:"number"|"string_set";
|
|
1155
1008
|
/** Human-readable metric intent. */
|
|
1156
1009
|
description?:string;
|
|
1157
1010
|
/** Accepted provider parameters. Unknown parameters are rejected. */
|
|
1158
|
-
parameters?:Record<string,AssuranceMeasurementProviderParameterDefinition>;
|
|
1159
|
-
}
|
|
1011
|
+
parameters?:Record<string,AssuranceMeasurementProviderParameterDefinition>;}
|
|
1160
1012
|
/** Runtime request supplied to an extension-owned assurance provider. */
|
|
1161
|
-
export interface AssuranceMeasurementProviderContext extends PortableWorkspaceContext
|
|
1013
|
+
export interface AssuranceMeasurementProviderContext extends PortableWorkspaceContext{
|
|
1162
1014
|
/** Provider id selected by the measurement declaration. */
|
|
1163
1015
|
provider:string;
|
|
1164
1016
|
/** Provider-owned metric key. */
|
|
1165
1017
|
key:string;
|
|
1166
1018
|
/** Validated provider parameters. */
|
|
1167
|
-
parameters:Record<string,string
|
|
1019
|
+
parameters:Record<string,string|number|boolean|null>;
|
|
1168
1020
|
/** Gate trigger that authorized this invocation. */
|
|
1169
1021
|
trigger:string;
|
|
1170
1022
|
/** Tracker root bound to the active command or SDK request. */
|
|
1171
|
-
pm_root:string;
|
|
1172
|
-
}
|
|
1023
|
+
pm_root:string;}
|
|
1173
1024
|
/** Result returned by an extension-owned assurance provider. */
|
|
1174
|
-
export interface AssuranceMeasurementProviderResult
|
|
1025
|
+
export interface AssuranceMeasurementProviderResult{
|
|
1175
1026
|
/** Finite numeric value or deterministic labelled set. */
|
|
1176
|
-
value:number
|
|
1027
|
+
value:number|string[];
|
|
1177
1028
|
/** Population denominator represented by the metric. */
|
|
1178
1029
|
population_size:number;
|
|
1179
1030
|
/** Abstract compute units charged by the provider. */
|
|
1180
1031
|
cost:number;
|
|
1181
1032
|
/** Optional stable contributor ids or labels. */
|
|
1182
|
-
contributors?:string[];
|
|
1183
|
-
}
|
|
1033
|
+
contributors?:string[];}
|
|
1184
1034
|
/** Extension registration for an open assurance measurement vocabulary. */
|
|
1185
|
-
export interface AssuranceMeasurementProviderDefinition
|
|
1035
|
+
export interface AssuranceMeasurementProviderDefinition{
|
|
1186
1036
|
/** Stable provider id used by measurement declarations and gate allow-lists. */
|
|
1187
1037
|
id:string;
|
|
1188
1038
|
/** Serializable metric-key schema. */
|
|
@@ -1194,10 +1044,9 @@ network:boolean;
|
|
|
1194
1044
|
/** Maximum host wait for one resolver call. */
|
|
1195
1045
|
timeout_ms?:number;
|
|
1196
1046
|
/** Resolve one declared key. */
|
|
1197
|
-
resolve(context:AssuranceMeasurementProviderContext):AssuranceMeasurementProviderResult
|
|
1198
|
-
}
|
|
1047
|
+
resolve(context:AssuranceMeasurementProviderContext):AssuranceMeasurementProviderResult|Promise<AssuranceMeasurementProviderResult>;}
|
|
1199
1048
|
/** Documents the registered extension command override payload exchanged by command, SDK, and package integrations. */
|
|
1200
|
-
export interface RegisteredExtensionCommandOverride
|
|
1049
|
+
export interface RegisteredExtensionCommandOverride{
|
|
1201
1050
|
/** Value that configures or reports layer for this contract. */
|
|
1202
1051
|
layer:ExtensionLayer;
|
|
1203
1052
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1205,10 +1054,9 @@ name:string;
|
|
|
1205
1054
|
/** Value that configures or reports command for this contract. */
|
|
1206
1055
|
command:string;
|
|
1207
1056
|
/** Value that configures or reports run for this contract. */
|
|
1208
|
-
run:CommandOverride;
|
|
1209
|
-
}
|
|
1057
|
+
run:CommandOverride;}
|
|
1210
1058
|
/** Documents the registered extension command handler payload exchanged by command, SDK, and package integrations. */
|
|
1211
|
-
export interface RegisteredExtensionCommandHandler
|
|
1059
|
+
export interface RegisteredExtensionCommandHandler{
|
|
1212
1060
|
/** Value that configures or reports layer for this contract. */
|
|
1213
1061
|
layer:ExtensionLayer;
|
|
1214
1062
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1216,10 +1064,9 @@ name:string;
|
|
|
1216
1064
|
/** Value that configures or reports command for this contract. */
|
|
1217
1065
|
command:string;
|
|
1218
1066
|
/** Value that configures or reports run for this contract. */
|
|
1219
|
-
run:CommandHandler;
|
|
1220
|
-
}
|
|
1067
|
+
run:CommandHandler;}
|
|
1221
1068
|
/** Documents the registered extension parser override payload exchanged by command, SDK, and package integrations. */
|
|
1222
|
-
export interface RegisteredExtensionParserOverride
|
|
1069
|
+
export interface RegisteredExtensionParserOverride{
|
|
1223
1070
|
/** Value that configures or reports layer for this contract. */
|
|
1224
1071
|
layer:ExtensionLayer;
|
|
1225
1072
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1227,10 +1074,9 @@ name:string;
|
|
|
1227
1074
|
/** Value that configures or reports command for this contract. */
|
|
1228
1075
|
command:string;
|
|
1229
1076
|
/** Value that configures or reports run for this contract. */
|
|
1230
|
-
run:ParserOverride;
|
|
1231
|
-
}
|
|
1077
|
+
run:ParserOverride;}
|
|
1232
1078
|
/** Documents the registered extension preflight override payload exchanged by command, SDK, and package integrations. */
|
|
1233
|
-
export interface RegisteredExtensionPreflightOverride
|
|
1079
|
+
export interface RegisteredExtensionPreflightOverride{
|
|
1234
1080
|
/** Value that configures or reports layer for this contract. */
|
|
1235
1081
|
layer:ExtensionLayer;
|
|
1236
1082
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1238,10 +1084,9 @@ name:string;
|
|
|
1238
1084
|
/** Value that configures or reports run for this contract. */
|
|
1239
1085
|
run:PreflightOverride;
|
|
1240
1086
|
/** Normalized command paths owned by this preflight override. */
|
|
1241
|
-
commands?:string[];
|
|
1242
|
-
}
|
|
1087
|
+
commands?:string[];}
|
|
1243
1088
|
/** Documents the registered extension service override payload exchanged by command, SDK, and package integrations. */
|
|
1244
|
-
export interface RegisteredExtensionServiceOverride
|
|
1089
|
+
export interface RegisteredExtensionServiceOverride{
|
|
1245
1090
|
/** Value that configures or reports layer for this contract. */
|
|
1246
1091
|
layer:ExtensionLayer;
|
|
1247
1092
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1251,10 +1096,9 @@ service:ExtensionServiceName;
|
|
|
1251
1096
|
/** Value that configures or reports run for this contract. */
|
|
1252
1097
|
run:ServiceOverride;
|
|
1253
1098
|
/** Whether the host forbids this callback from handling the service payload. */
|
|
1254
|
-
passThrough?:boolean;
|
|
1255
|
-
}
|
|
1099
|
+
passThrough?:boolean;}
|
|
1256
1100
|
/** Documents the registered extension renderer override payload exchanged by command, SDK, and package integrations. */
|
|
1257
|
-
export interface RegisteredExtensionRendererOverride
|
|
1101
|
+
export interface RegisteredExtensionRendererOverride{
|
|
1258
1102
|
/** Value that configures or reports layer for this contract. */
|
|
1259
1103
|
layer:ExtensionLayer;
|
|
1260
1104
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1266,37 +1110,31 @@ run:RendererOverride;
|
|
|
1266
1110
|
/** Normalized command paths owned by this renderer. */
|
|
1267
1111
|
commands?:string[];
|
|
1268
1112
|
/** Optional result predicate enforced by the host before invoking the renderer. */
|
|
1269
|
-
resultDiscriminator?:(result:unknown)
|
|
1270
|
-
}
|
|
1113
|
+
resultDiscriminator?:(result:unknown)=> boolean;}
|
|
1271
1114
|
/** Documents the extension command registry payload exchanged by command, SDK, and package integrations. */
|
|
1272
|
-
export interface ExtensionCommandRegistry
|
|
1115
|
+
export interface ExtensionCommandRegistry{
|
|
1273
1116
|
/** Value that configures or reports overrides for this contract. */
|
|
1274
1117
|
overrides:RegisteredExtensionCommandOverride[];
|
|
1275
1118
|
/** Value that configures or reports handlers for this contract. */
|
|
1276
|
-
handlers:RegisteredExtensionCommandHandler[];
|
|
1277
|
-
}
|
|
1119
|
+
handlers:RegisteredExtensionCommandHandler[];}
|
|
1278
1120
|
/** Documents the extension parser registry payload exchanged by command, SDK, and package integrations. */
|
|
1279
|
-
export interface ExtensionParserRegistry
|
|
1121
|
+
export interface ExtensionParserRegistry{
|
|
1280
1122
|
/** Value that configures or reports overrides for this contract. */
|
|
1281
|
-
overrides:RegisteredExtensionParserOverride[];
|
|
1282
|
-
}
|
|
1123
|
+
overrides:RegisteredExtensionParserOverride[];}
|
|
1283
1124
|
/** Documents the extension preflight registry payload exchanged by command, SDK, and package integrations. */
|
|
1284
|
-
export interface ExtensionPreflightRegistry
|
|
1125
|
+
export interface ExtensionPreflightRegistry{
|
|
1285
1126
|
/** Value that configures or reports overrides for this contract. */
|
|
1286
|
-
overrides:RegisteredExtensionPreflightOverride[];
|
|
1287
|
-
}
|
|
1127
|
+
overrides:RegisteredExtensionPreflightOverride[];}
|
|
1288
1128
|
/** Documents the extension service registry payload exchanged by command, SDK, and package integrations. */
|
|
1289
|
-
export interface ExtensionServiceRegistry
|
|
1129
|
+
export interface ExtensionServiceRegistry{
|
|
1290
1130
|
/** Value that configures or reports overrides for this contract. */
|
|
1291
|
-
overrides:RegisteredExtensionServiceOverride[];
|
|
1292
|
-
}
|
|
1131
|
+
overrides:RegisteredExtensionServiceOverride[];}
|
|
1293
1132
|
/** Documents the extension renderer registry payload exchanged by command, SDK, and package integrations. */
|
|
1294
|
-
export interface ExtensionRendererRegistry
|
|
1133
|
+
export interface ExtensionRendererRegistry{
|
|
1295
1134
|
/** Value that configures or reports overrides for this contract. */
|
|
1296
|
-
overrides:RegisteredExtensionRendererOverride[];
|
|
1297
|
-
}
|
|
1135
|
+
overrides:RegisteredExtensionRendererOverride[];}
|
|
1298
1136
|
/** Documents the registered extension flag definitions payload exchanged by command, SDK, and package integrations. */
|
|
1299
|
-
export interface RegisteredExtensionFlagDefinitions
|
|
1137
|
+
export interface RegisteredExtensionFlagDefinitions{
|
|
1300
1138
|
/** Value that configures or reports layer for this contract. */
|
|
1301
1139
|
layer:ExtensionLayer;
|
|
1302
1140
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1304,10 +1142,9 @@ name:string;
|
|
|
1304
1142
|
/** Value that configures or reports target command for this contract. */
|
|
1305
1143
|
target_command:string;
|
|
1306
1144
|
/** Value that configures or reports flags for this contract. */
|
|
1307
|
-
flags:FlagDefinition[];
|
|
1308
|
-
}
|
|
1145
|
+
flags:FlagDefinition[];}
|
|
1309
1146
|
/** Documents the registered extension command definition payload exchanged by command, SDK, and package integrations. */
|
|
1310
|
-
export interface RegisteredExtensionCommandDefinition
|
|
1147
|
+
export interface RegisteredExtensionCommandDefinition{
|
|
1311
1148
|
/** Manifest version of the extension that owns this command. */
|
|
1312
1149
|
source_version?:string;
|
|
1313
1150
|
/** Validated read-only output declaration, snapshotted during activation. */
|
|
@@ -1333,39 +1170,35 @@ failure_hints:string[];
|
|
|
1333
1170
|
/** Value that configures or reports arguments for this contract. */
|
|
1334
1171
|
arguments:ExtensionCommandArgumentDefinition[];
|
|
1335
1172
|
/** Minimum agent surface tier that should advertise this command. */
|
|
1336
|
-
tier?:"core"
|
|
1173
|
+
tier?:"core"|"standard"|"full"|"internal";
|
|
1337
1174
|
/** Capability family used by generated agent routing surfaces. */
|
|
1338
|
-
family?:ExtensionCommandCapabilityFamily;
|
|
1339
|
-
}
|
|
1175
|
+
family?:ExtensionCommandCapabilityFamily;}
|
|
1340
1176
|
/** Documents the registered extension schema field definitions payload exchanged by command, SDK, and package integrations. */
|
|
1341
|
-
export interface RegisteredExtensionSchemaFieldDefinitions
|
|
1177
|
+
export interface RegisteredExtensionSchemaFieldDefinitions{
|
|
1342
1178
|
/** Value that configures or reports layer for this contract. */
|
|
1343
1179
|
layer:ExtensionLayer;
|
|
1344
1180
|
/** Value that configures or reports name for this contract. */
|
|
1345
1181
|
name:string;
|
|
1346
1182
|
/** Value that configures or reports fields for this contract. */
|
|
1347
|
-
fields:SchemaFieldDefinition[];
|
|
1348
|
-
}
|
|
1183
|
+
fields:SchemaFieldDefinition[];}
|
|
1349
1184
|
/** Documents the registered extension schema item type definitions payload exchanged by command, SDK, and package integrations. */
|
|
1350
|
-
export interface RegisteredExtensionSchemaItemTypeDefinitions
|
|
1185
|
+
export interface RegisteredExtensionSchemaItemTypeDefinitions{
|
|
1351
1186
|
/** Value that configures or reports layer for this contract. */
|
|
1352
1187
|
layer:ExtensionLayer;
|
|
1353
1188
|
/** Value that configures or reports name for this contract. */
|
|
1354
1189
|
name:string;
|
|
1355
1190
|
/** Value that configures or reports types for this contract. */
|
|
1356
|
-
types:SchemaItemTypeDefinition[];
|
|
1357
|
-
}
|
|
1191
|
+
types:SchemaItemTypeDefinition[];}
|
|
1358
1192
|
/** Relationship ontology definitions contributed by one active extension. */
|
|
1359
|
-
export interface RegisteredExtensionRelationshipKindDefinitions
|
|
1193
|
+
export interface RegisteredExtensionRelationshipKindDefinitions{
|
|
1360
1194
|
/** Extension layer that owns these definitions. */
|
|
1361
1195
|
layer:ExtensionLayer;
|
|
1362
1196
|
/** Extension name that owns these definitions. */
|
|
1363
1197
|
name:string;
|
|
1364
1198
|
/** Validated immutable relationship-kind definitions. */
|
|
1365
|
-
definitions:RelationshipKindDefinition[];
|
|
1366
|
-
}
|
|
1199
|
+
definitions:RelationshipKindDefinition[];}
|
|
1367
1200
|
/** Documents the registered extension schema migration definition payload exchanged by command, SDK, and package integrations. */
|
|
1368
|
-
export interface RegisteredExtensionSchemaMigrationDefinition
|
|
1201
|
+
export interface RegisteredExtensionSchemaMigrationDefinition{
|
|
1369
1202
|
/** Value that configures or reports layer for this contract. */
|
|
1370
1203
|
layer:ExtensionLayer;
|
|
1371
1204
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1373,19 +1206,17 @@ name:string;
|
|
|
1373
1206
|
/** Value that configures or reports definition for this contract. */
|
|
1374
1207
|
definition:SchemaMigrationDefinition;
|
|
1375
1208
|
/** Value that configures or reports runtime definition for this contract. */
|
|
1376
|
-
runtime_definition:SchemaMigrationDefinition;
|
|
1377
|
-
}
|
|
1209
|
+
runtime_definition:SchemaMigrationDefinition;}
|
|
1378
1210
|
/** Documents the registered extension importer payload exchanged by command, SDK, and package integrations. */
|
|
1379
|
-
export interface RegisteredExtensionImporter
|
|
1211
|
+
export interface RegisteredExtensionImporter{
|
|
1380
1212
|
/** Value that configures or reports layer for this contract. */
|
|
1381
1213
|
layer:ExtensionLayer;
|
|
1382
1214
|
/** Value that configures or reports name for this contract. */
|
|
1383
1215
|
name:string;
|
|
1384
1216
|
/** Value that configures or reports importer for this contract. */
|
|
1385
|
-
importer:string;
|
|
1386
|
-
}
|
|
1217
|
+
importer:string;}
|
|
1387
1218
|
/** Documents the registered extension exporter payload exchanged by command, SDK, and package integrations. */
|
|
1388
|
-
export interface RegisteredExtensionExporter
|
|
1219
|
+
export interface RegisteredExtensionExporter{
|
|
1389
1220
|
/** Value that configures or reports layer for this contract. */
|
|
1390
1221
|
layer:ExtensionLayer;
|
|
1391
1222
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1393,10 +1224,9 @@ name:string;
|
|
|
1393
1224
|
/** Value that configures or reports exporter for this contract. */
|
|
1394
1225
|
exporter:string;
|
|
1395
1226
|
/** Declared artifact channel and normalized receipt policy. */
|
|
1396
|
-
output?:RegisteredExporterArtifactOutputContract;
|
|
1397
|
-
}
|
|
1227
|
+
output?:RegisteredExporterArtifactOutputContract;}
|
|
1398
1228
|
/** Documents the registered extension search provider payload exchanged by command, SDK, and package integrations. */
|
|
1399
|
-
export interface RegisteredExtensionSearchProvider
|
|
1229
|
+
export interface RegisteredExtensionSearchProvider{
|
|
1400
1230
|
/** Value that configures or reports layer for this contract. */
|
|
1401
1231
|
layer:ExtensionLayer;
|
|
1402
1232
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1404,10 +1234,9 @@ name:string;
|
|
|
1404
1234
|
/** Value that configures or reports definition for this contract. */
|
|
1405
1235
|
definition:SearchProviderDefinition;
|
|
1406
1236
|
/** Value that configures or reports runtime definition for this contract. */
|
|
1407
|
-
runtime_definition:SearchProviderDefinition;
|
|
1408
|
-
}
|
|
1237
|
+
runtime_definition:SearchProviderDefinition;}
|
|
1409
1238
|
/** Documents the registered extension vector store adapter payload exchanged by command, SDK, and package integrations. */
|
|
1410
|
-
export interface RegisteredExtensionVectorStoreAdapter
|
|
1239
|
+
export interface RegisteredExtensionVectorStoreAdapter{
|
|
1411
1240
|
/** Value that configures or reports layer for this contract. */
|
|
1412
1241
|
layer:ExtensionLayer;
|
|
1413
1242
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1415,10 +1244,9 @@ name:string;
|
|
|
1415
1244
|
/** Value that configures or reports definition for this contract. */
|
|
1416
1245
|
definition:VectorStoreAdapterDefinition;
|
|
1417
1246
|
/** Value that configures or reports runtime definition for this contract. */
|
|
1418
|
-
runtime_definition:VectorStoreAdapterDefinition;
|
|
1419
|
-
}
|
|
1247
|
+
runtime_definition:VectorStoreAdapterDefinition;}
|
|
1420
1248
|
/** One validated assurance measurement provider registered by an active extension. */
|
|
1421
|
-
export interface RegisteredExtensionAssuranceMeasurementProvider
|
|
1249
|
+
export interface RegisteredExtensionAssuranceMeasurementProvider{
|
|
1422
1250
|
/** Extension layer owning the provider. */
|
|
1423
1251
|
layer:ExtensionLayer;
|
|
1424
1252
|
/** Extension name owning the provider. */
|
|
@@ -1426,12 +1254,9 @@ name:string;
|
|
|
1426
1254
|
/** Whether the owning manifest grants network access. */
|
|
1427
1255
|
network_permission:boolean;
|
|
1428
1256
|
/** Serializable definition used by doctor, inventory, and policy surfaces. */
|
|
1429
|
-
definition:Omit<AssuranceMeasurementProviderDefinition,"resolve"
|
|
1430
|
-
resolve:"[Function]";
|
|
1431
|
-
};
|
|
1257
|
+
definition:Omit<AssuranceMeasurementProviderDefinition,"resolve">&{resolve:"[Function]";};
|
|
1432
1258
|
/** Runtime definition containing the executable resolver. */
|
|
1433
|
-
runtime_definition:AssuranceMeasurementProviderDefinition;
|
|
1434
|
-
}
|
|
1259
|
+
runtime_definition:AssuranceMeasurementProviderDefinition;}
|
|
1435
1260
|
/**
|
|
1436
1261
|
* Documents a project profile contributed by an extension via
|
|
1437
1262
|
* `api.registerProfile(profile)`.
|
|
@@ -1443,16 +1268,15 @@ runtime_definition:AssuranceMeasurementProviderDefinition;
|
|
|
1443
1268
|
* core-baked archetypes. Registering one makes it resolvable by name through
|
|
1444
1269
|
* `pm profile list/show/apply` for as long as the owning package is active.
|
|
1445
1270
|
*/
|
|
1446
|
-
export interface RegisteredExtensionProjectProfile
|
|
1271
|
+
export interface RegisteredExtensionProjectProfile{
|
|
1447
1272
|
/** Value that configures or reports layer for this contract. */
|
|
1448
1273
|
layer:ExtensionLayer;
|
|
1449
1274
|
/** Value that configures or reports name for this contract. */
|
|
1450
1275
|
name:string;
|
|
1451
1276
|
/** Value that configures or reports profile for this contract. */
|
|
1452
|
-
profile:ProjectProfileDefinition;
|
|
1453
|
-
}
|
|
1277
|
+
profile:ProjectProfileDefinition;}
|
|
1454
1278
|
/** Documents the extension registration registry payload exchanged by command, SDK, and package integrations. */
|
|
1455
|
-
export interface ExtensionRegistrationRegistry
|
|
1279
|
+
export interface ExtensionRegistrationRegistry{
|
|
1456
1280
|
/** Value that configures or reports commands for this contract. */
|
|
1457
1281
|
commands:RegisteredExtensionCommandDefinition[];
|
|
1458
1282
|
/** Value that configures or reports flags for this contract. */
|
|
@@ -1476,10 +1300,9 @@ search_providers:RegisteredExtensionSearchProvider[];
|
|
|
1476
1300
|
/** Value that configures or reports vector store adapters for this contract. */
|
|
1477
1301
|
vector_store_adapters:RegisteredExtensionVectorStoreAdapter[];
|
|
1478
1302
|
/** Extension-owned assurance measurement providers. */
|
|
1479
|
-
assurance_providers:RegisteredExtensionAssuranceMeasurementProvider[];
|
|
1480
|
-
}
|
|
1303
|
+
assurance_providers:RegisteredExtensionAssuranceMeasurementProvider[];}
|
|
1481
1304
|
/** Documents the extension registration counts payload exchanged by command, SDK, and package integrations. */
|
|
1482
|
-
export interface ExtensionRegistrationCounts
|
|
1305
|
+
export interface ExtensionRegistrationCounts{
|
|
1483
1306
|
/** Value that configures or reports commands for this contract. */
|
|
1484
1307
|
commands:number;
|
|
1485
1308
|
/** Value that configures or reports flags for this contract. */
|
|
@@ -1503,10 +1326,9 @@ search_providers:number;
|
|
|
1503
1326
|
/** Value that configures or reports vector store adapters for this contract. */
|
|
1504
1327
|
vector_store_adapters:number;
|
|
1505
1328
|
/** Number of registered assurance measurement providers. */
|
|
1506
|
-
assurance_providers?:number;
|
|
1507
|
-
}
|
|
1329
|
+
assurance_providers?:number;}
|
|
1508
1330
|
/** Read-only identity an extension's `activate(api)` receives about itself, so authors can emit self-identifying logs, gate on their own version, and build better error messages without re-reading the on-disk manifest or duplicating metadata in-module. Exposed as `api.extension`. */
|
|
1509
|
-
export interface ExtensionSelfIdentity
|
|
1331
|
+
export interface ExtensionSelfIdentity{
|
|
1510
1332
|
/** Value that configures or reports name for this contract. */
|
|
1511
1333
|
readonly name:string;
|
|
1512
1334
|
/** Value that configures or reports layer for this contract. */
|
|
@@ -1520,10 +1342,9 @@ readonly pm_min_version?:string;
|
|
|
1520
1342
|
/** Value that configures or reports pm max version for this contract. */
|
|
1521
1343
|
readonly pm_max_version?:string;
|
|
1522
1344
|
/** Value that configures or reports source package for this contract. */
|
|
1523
|
-
readonly source_package?:string;
|
|
1524
|
-
}
|
|
1345
|
+
readonly source_package?:string;}
|
|
1525
1346
|
/** Documents the extension api payload exchanged by command, SDK, and package integrations. */
|
|
1526
|
-
export interface ExtensionApi
|
|
1347
|
+
export interface ExtensionApi{
|
|
1527
1348
|
/** Read-only identity of the extension this `api` was created for. */
|
|
1528
1349
|
readonly extension:ExtensionSelfIdentity;
|
|
1529
1350
|
/** Value that configures or reports register command for this contract. */
|
|
@@ -1533,7 +1354,7 @@ registerCommand(definition:CommandDefinition):void;
|
|
|
1533
1354
|
/** Value that configures or reports register parser for this contract. */
|
|
1534
1355
|
registerParser(command:string,override:ParserOverride):void;
|
|
1535
1356
|
/** Value that configures or reports register preflight for this contract. */
|
|
1536
|
-
registerPreflight(override:PreflightOverride
|
|
1357
|
+
registerPreflight(override:PreflightOverride|ScopedPreflightOverrideDefinition):void;
|
|
1537
1358
|
/** Value that configures or reports register service for this contract. */
|
|
1538
1359
|
registerService(service:ExtensionServiceName,override:ServiceOverride,ownership?:ServiceOverrideOwnership):void;
|
|
1539
1360
|
/** Value that configures or reports register flags for this contract. */
|
|
@@ -1561,17 +1382,9 @@ registerVectorStoreAdapter(adapter:VectorStoreAdapterDefinition):void;
|
|
|
1561
1382
|
/** Register an assurance measurement provider through the services capability. */
|
|
1562
1383
|
registerAssuranceMeasurementProvider(provider:AssuranceMeasurementProviderDefinition):void;
|
|
1563
1384
|
/** Value that configures or reports hooks for this contract. */
|
|
1564
|
-
hooks:{
|
|
1565
|
-
beforeCommand(hook:BeforeCommandHook):void;
|
|
1566
|
-
beforeMutation(hook:BeforeMutationHook):void;
|
|
1567
|
-
afterCommand(hook:AfterCommandHook):void;
|
|
1568
|
-
onWrite(hook:OnWriteHook):void;
|
|
1569
|
-
onRead(hook:OnReadHook):void;
|
|
1570
|
-
onIndex(hook:OnIndexHook):void;
|
|
1571
|
-
};
|
|
1572
|
-
}
|
|
1385
|
+
hooks:{beforeCommand(hook:BeforeCommandHook):void;beforeMutation(hook:BeforeMutationHook):void;afterCommand(hook:AfterCommandHook):void;onWrite(hook:OnWriteHook):void;onRead(hook:OnReadHook):void;onIndex(hook:OnIndexHook):void;};}
|
|
1573
1386
|
/** Documents the failed extension activation payload exchanged by command, SDK, and package integrations. */
|
|
1574
|
-
export interface FailedExtensionActivation
|
|
1387
|
+
export interface FailedExtensionActivation{
|
|
1575
1388
|
/** Value that configures or reports layer for this contract. */
|
|
1576
1389
|
layer:ExtensionLayer;
|
|
1577
1390
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1581,10 +1394,9 @@ entry_path:string;
|
|
|
1581
1394
|
/** Value that configures or reports error for this contract. */
|
|
1582
1395
|
error:string;
|
|
1583
1396
|
/** Value that configures or reports trace for this contract. */
|
|
1584
|
-
trace?:ExtensionActivationFailureTrace;
|
|
1585
|
-
}
|
|
1397
|
+
trace?:ExtensionActivationFailureTrace;}
|
|
1586
1398
|
/** Documents the extension activation failure trace payload exchanged by command, SDK, and package integrations. */
|
|
1587
|
-
export interface ExtensionActivationFailureTrace
|
|
1399
|
+
export interface ExtensionActivationFailureTrace{
|
|
1588
1400
|
/** Value that configures or reports method for this contract. */
|
|
1589
1401
|
method:string;
|
|
1590
1402
|
/** `-1` means the failure happened before a numbered registration was accepted. */
|
|
@@ -1600,10 +1412,9 @@ expected_schema:string;
|
|
|
1600
1412
|
/** Value that configures or reports received for this contract. */
|
|
1601
1413
|
received?:unknown;
|
|
1602
1414
|
/** Value that configures or reports hint for this contract. */
|
|
1603
|
-
hint?:string;
|
|
1604
|
-
}
|
|
1415
|
+
hint?:string;}
|
|
1605
1416
|
/** Documents the extension activation result payload exchanged by command, SDK, and package integrations. */
|
|
1606
|
-
export interface ExtensionActivationResult
|
|
1417
|
+
export interface ExtensionActivationResult{
|
|
1607
1418
|
/** Value that configures or reports hooks for this contract. */
|
|
1608
1419
|
hooks:ExtensionHookRegistry;
|
|
1609
1420
|
/** Value that configures or reports commands for this contract. */
|
|
@@ -1623,14 +1434,7 @@ failed:FailedExtensionActivation[];
|
|
|
1623
1434
|
/** Value that configures or reports warnings for this contract. */
|
|
1624
1435
|
warnings:string[];
|
|
1625
1436
|
/** Value that configures or reports hook counts for this contract. */
|
|
1626
|
-
hook_counts:{
|
|
1627
|
-
before_command:number;
|
|
1628
|
-
before_mutation:number;
|
|
1629
|
-
after_command:number;
|
|
1630
|
-
on_write:number;
|
|
1631
|
-
on_read:number;
|
|
1632
|
-
on_index:number;
|
|
1633
|
-
};
|
|
1437
|
+
hook_counts:{before_command:number;before_mutation:number;after_command:number;on_write:number;on_read:number;on_index:number;};
|
|
1634
1438
|
/** Number of command override entries represented by this result. */
|
|
1635
1439
|
command_override_count:number;
|
|
1636
1440
|
/** Number of command handler entries represented by this result. */
|
|
@@ -1644,10 +1448,9 @@ service_override_count:number;
|
|
|
1644
1448
|
/** Number of renderer override entries represented by this result. */
|
|
1645
1449
|
renderer_override_count:number;
|
|
1646
1450
|
/** Value that configures or reports registration counts for this contract. */
|
|
1647
|
-
registration_counts:ExtensionRegistrationCounts;
|
|
1648
|
-
}
|
|
1451
|
+
registration_counts:ExtensionRegistrationCounts;}
|
|
1649
1452
|
/** Documents the extension candidate payload exchanged by command, SDK, and package integrations. */
|
|
1650
|
-
export interface ExtensionCandidate
|
|
1453
|
+
export interface ExtensionCandidate{
|
|
1651
1454
|
/** Value that configures or reports layer for this contract. */
|
|
1652
1455
|
layer:ExtensionLayer;
|
|
1653
1456
|
/** Value that configures or reports directory for this contract. */
|
|
@@ -1663,35 +1466,31 @@ source_package?:string;
|
|
|
1663
1466
|
/** Install-source identities that can resolve this extension through package lifecycle commands. */
|
|
1664
1467
|
source_aliases?:string[];
|
|
1665
1468
|
/** Persisted contribution inventory resolved without importing the module. */
|
|
1666
|
-
contributions?:ExtensionContributionInventory;
|
|
1667
|
-
}
|
|
1469
|
+
contributions?:ExtensionContributionInventory;}
|
|
1668
1470
|
/** Documents the extension layer scan result payload exchanged by command, SDK, and package integrations. */
|
|
1669
|
-
export interface ExtensionLayerScanResult
|
|
1471
|
+
export interface ExtensionLayerScanResult{
|
|
1670
1472
|
/** Value that configures or reports diagnostics for this contract. */
|
|
1671
1473
|
diagnostics:ExtensionDiagnostic[];
|
|
1672
1474
|
/** Value that configures or reports warnings for this contract. */
|
|
1673
1475
|
warnings:string[];
|
|
1674
1476
|
/** Value that configures or reports candidates for this contract. */
|
|
1675
|
-
candidates:ExtensionCandidate[];
|
|
1676
|
-
}
|
|
1477
|
+
candidates:ExtensionCandidate[];}
|
|
1677
1478
|
/** Documents the scanned extension directory payload exchanged by command, SDK, and package integrations. */
|
|
1678
|
-
export interface ScannedExtensionDirectory
|
|
1479
|
+
export interface ScannedExtensionDirectory{
|
|
1679
1480
|
/** Value that configures or reports diagnostic for this contract. */
|
|
1680
1481
|
diagnostic:ExtensionDiagnostic;
|
|
1681
1482
|
/** Value that configures or reports warnings for this contract. */
|
|
1682
1483
|
warnings:string[];
|
|
1683
1484
|
/** Value that configures or reports candidate for this contract. */
|
|
1684
|
-
candidate:ExtensionCandidate
|
|
1685
|
-
}
|
|
1485
|
+
candidate:ExtensionCandidate|null;}
|
|
1686
1486
|
/** Documents the legacy extension capability alias mapping payload exchanged by command, SDK, and package integrations. */
|
|
1687
|
-
export interface LegacyExtensionCapabilityAliasMapping
|
|
1487
|
+
export interface LegacyExtensionCapabilityAliasMapping{
|
|
1688
1488
|
/** Value that configures or reports alias for this contract. */
|
|
1689
1489
|
alias:string;
|
|
1690
1490
|
/** Value that configures or reports target for this contract. */
|
|
1691
|
-
target:ExtensionCapability;
|
|
1692
|
-
}
|
|
1491
|
+
target:ExtensionCapability;}
|
|
1693
1492
|
/** Documents the discover extensions options payload exchanged by command, SDK, and package integrations. */
|
|
1694
|
-
export interface DiscoverExtensionsOptions
|
|
1493
|
+
export interface DiscoverExtensionsOptions{
|
|
1695
1494
|
/** Value that configures or reports pm root for this contract. */
|
|
1696
1495
|
pmRoot:string;
|
|
1697
1496
|
/** Value that configures or reports settings for this contract. */
|
|
@@ -1707,60 +1506,53 @@ reload_token?:string;
|
|
|
1707
1506
|
/** Value that configures or reports cache bust for this contract. */
|
|
1708
1507
|
cache_bust?:boolean;
|
|
1709
1508
|
/** Optional import-stage filter. Discovery still reports the full effective set, but `loadExtensions` imports only entries accepted by this predicate. */
|
|
1710
|
-
extensionFilter?:(extension:EffectiveExtension)
|
|
1509
|
+
extensionFilter?:(extension:EffectiveExtension)=> boolean;
|
|
1711
1510
|
/** Optional temporary root where each extension is copied before import, giving reinstall verification a fresh absolute module graph rather than cache-busting only the entry module URL. The caller owns cleanup after activation completes. */
|
|
1712
|
-
module_graph_snapshot_root?:string;
|
|
1713
|
-
}
|
|
1511
|
+
module_graph_snapshot_root?:string;}
|
|
1714
1512
|
/** Documents the activatable extension payload exchanged by command, SDK, and package integrations. */
|
|
1715
|
-
export interface ActivatableExtension
|
|
1513
|
+
export interface ActivatableExtension{
|
|
1716
1514
|
/** Registers this package's commands, actions, and runtime hooks with the host. */
|
|
1717
|
-
activate:(api:ExtensionApi)
|
|
1515
|
+
activate:(api:ExtensionApi)=> void|Promise<void>;
|
|
1718
1516
|
/** Optional teardown lifecycle hook, analogous to VS Code's `deactivate` export. Invoked when the host tears the extension down — on long-running MCP-server reload between requests, or via the `deactivateExtensions` primitive — so an extension can close connections, clear timers, and release buffers it opened during `activate`. */
|
|
1719
|
-
deactivate?:()
|
|
1720
|
-
}
|
|
1517
|
+
deactivate?:()=> void|Promise<void>;}
|
|
1721
1518
|
/** Documents the extension deactivation failure payload exchanged by command, SDK, and package integrations. */
|
|
1722
|
-
export interface ExtensionDeactivationFailure
|
|
1519
|
+
export interface ExtensionDeactivationFailure{
|
|
1723
1520
|
/** Value that configures or reports layer for this contract. */
|
|
1724
1521
|
layer:ExtensionLayer;
|
|
1725
1522
|
/** Value that configures or reports name for this contract. */
|
|
1726
1523
|
name:string;
|
|
1727
1524
|
/** Value that configures or reports error for this contract. */
|
|
1728
|
-
error:string;
|
|
1729
|
-
}
|
|
1525
|
+
error:string;}
|
|
1730
1526
|
/** Documents the extension deactivation options payload exchanged by command, SDK, and package integrations. */
|
|
1731
|
-
export interface ExtensionDeactivationOptions
|
|
1527
|
+
export interface ExtensionDeactivationOptions{
|
|
1732
1528
|
/** Maximum time to wait for each extension's `deactivate` hook. Defaults to 5000ms so a hanging teardown cannot block host shutdown or reload. Set to 0 or Infinity only when the host intentionally wants to wait indefinitely. */
|
|
1733
|
-
deactivate_timeout_ms?:number;
|
|
1734
|
-
}
|
|
1529
|
+
deactivate_timeout_ms?:number;}
|
|
1735
1530
|
/** Documents the extension deactivation result payload exchanged by command, SDK, and package integrations. */
|
|
1736
|
-
export interface ExtensionDeactivationResult
|
|
1531
|
+
export interface ExtensionDeactivationResult{
|
|
1737
1532
|
/** Count of loaded extensions whose `deactivate` hook ran without throwing. */
|
|
1738
1533
|
deactivated:number;
|
|
1739
1534
|
/** Value that configures or reports warnings for this contract. */
|
|
1740
1535
|
warnings:string[];
|
|
1741
1536
|
/** Value that configures or reports failed for this contract. */
|
|
1742
|
-
failed:ExtensionDeactivationFailure[];
|
|
1743
|
-
}
|
|
1537
|
+
failed:ExtensionDeactivationFailure[];}
|
|
1744
1538
|
/** Documents the service override result payload exchanged by command, SDK, and package integrations. */
|
|
1745
|
-
export interface ServiceOverrideResult
|
|
1539
|
+
export interface ServiceOverrideResult{
|
|
1746
1540
|
/** Value that configures or reports handled for this contract. */
|
|
1747
1541
|
handled:boolean;
|
|
1748
1542
|
/** Value that configures or reports result for this contract. */
|
|
1749
1543
|
result:unknown;
|
|
1750
1544
|
/** Value that configures or reports warnings for this contract. */
|
|
1751
|
-
warnings:string[];
|
|
1752
|
-
}
|
|
1545
|
+
warnings:string[];}
|
|
1753
1546
|
/** Documents the command override result payload exchanged by command, SDK, and package integrations. */
|
|
1754
|
-
export interface CommandOverrideResult
|
|
1547
|
+
export interface CommandOverrideResult{
|
|
1755
1548
|
/** Value that configures or reports overridden for this contract. */
|
|
1756
1549
|
overridden:boolean;
|
|
1757
1550
|
/** Value that configures or reports result for this contract. */
|
|
1758
1551
|
result:unknown;
|
|
1759
1552
|
/** Value that configures or reports warnings for this contract. */
|
|
1760
|
-
warnings:string[];
|
|
1761
|
-
}
|
|
1553
|
+
warnings:string[];}
|
|
1762
1554
|
/** Documents the command handler result payload exchanged by command, SDK, and package integrations. */
|
|
1763
|
-
export interface CommandHandlerResult
|
|
1555
|
+
export interface CommandHandlerResult{
|
|
1764
1556
|
/** Original thrown value on failure; non-enumerable so serialized diagnostics stay bounded. */
|
|
1765
1557
|
readonly cause?:unknown;
|
|
1766
1558
|
/** Value that configures or reports handled for this contract. */
|
|
@@ -1776,19 +1568,17 @@ exitCode?:number;
|
|
|
1776
1568
|
/** Stable extension-provided error code preserved for structured recovery. */
|
|
1777
1569
|
errorCode?:string;
|
|
1778
1570
|
/** Actionable extension-provided recovery text preserved by the host. */
|
|
1779
|
-
remediation?:string;
|
|
1780
|
-
}
|
|
1571
|
+
remediation?:string;}
|
|
1781
1572
|
/** Documents the parser override result payload exchanged by command, SDK, and package integrations. */
|
|
1782
|
-
export interface ParserOverrideResult
|
|
1573
|
+
export interface ParserOverrideResult{
|
|
1783
1574
|
/** Value that configures or reports overridden for this contract. */
|
|
1784
1575
|
overridden:boolean;
|
|
1785
1576
|
/** Value that configures or reports context for this contract. */
|
|
1786
1577
|
context:CommandHandlerContext;
|
|
1787
1578
|
/** Value that configures or reports warnings for this contract. */
|
|
1788
|
-
warnings:string[];
|
|
1789
|
-
}
|
|
1579
|
+
warnings:string[];}
|
|
1790
1580
|
/** Documents the preflight override result payload exchanged by command, SDK, and package integrations. */
|
|
1791
|
-
export interface PreflightOverrideResult
|
|
1581
|
+
export interface PreflightOverrideResult{
|
|
1792
1582
|
/** Value that configures or reports overridden for this contract. */
|
|
1793
1583
|
overridden:boolean;
|
|
1794
1584
|
/** Value that configures or reports context for this contract. */
|
|
@@ -1796,19 +1586,17 @@ context:CommandHandlerContext;
|
|
|
1796
1586
|
/** Value that configures or reports decision for this contract. */
|
|
1797
1587
|
decision:PreflightRuntimeDecision;
|
|
1798
1588
|
/** Value that configures or reports warnings for this contract. */
|
|
1799
|
-
warnings:string[];
|
|
1800
|
-
}
|
|
1589
|
+
warnings:string[];}
|
|
1801
1590
|
/** Documents the renderer override result payload exchanged by command, SDK, and package integrations. */
|
|
1802
|
-
export interface RendererOverrideResult
|
|
1591
|
+
export interface RendererOverrideResult{
|
|
1803
1592
|
/** Value that configures or reports overridden for this contract. */
|
|
1804
1593
|
overridden:boolean;
|
|
1805
1594
|
/** Value that configures or reports rendered for this contract. */
|
|
1806
|
-
rendered:string
|
|
1595
|
+
rendered:string|null;
|
|
1807
1596
|
/** Value that configures or reports warnings for this contract. */
|
|
1808
|
-
warnings:string[];
|
|
1809
|
-
}
|
|
1597
|
+
warnings:string[];}
|
|
1810
1598
|
/** Documents the unknown extension capability warning details payload exchanged by command, SDK, and package integrations. */
|
|
1811
|
-
export interface UnknownExtensionCapabilityWarningDetails
|
|
1599
|
+
export interface UnknownExtensionCapabilityWarningDetails{
|
|
1812
1600
|
/** Value that configures or reports layer for this contract. */
|
|
1813
1601
|
layer:ExtensionLayer;
|
|
1814
1602
|
/** Value that configures or reports name for this contract. */
|
|
@@ -1822,7 +1610,6 @@ capability_contract_version:number;
|
|
|
1822
1610
|
/** Value that configures or reports suggested capability for this contract. */
|
|
1823
1611
|
suggested_capability?:string;
|
|
1824
1612
|
/** Value that configures or reports suggestion source for this contract. */
|
|
1825
|
-
suggestion_source?:"legacy_alias"
|
|
1613
|
+
suggestion_source?:"legacy_alias"|"nearest_match";
|
|
1826
1614
|
/** Value that configures or reports legacy alias target for this contract. */
|
|
1827
|
-
legacy_alias_target?:string;
|
|
1828
|
-
}
|
|
1615
|
+
legacy_alias_target?:string;}
|