@unbrained/pm-cli 2026.10.12 → 2026.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +27 -0
- package/dist/cli/after-command-context-usage.d.ts +8 -8
- package/dist/cli/bundle-integrity.d.ts +23 -23
- package/dist/cli/commander-usage.d.ts +26 -26
- package/dist/cli/commander-usage.js +2 -2
- package/dist/cli/error-guidance.d.ts +158 -163
- package/dist/cli/error-guidance.js +2 -2
- package/dist/cli/extension-command-help.d.ts +68 -68
- package/dist/cli/extension-command-options.d.ts +20 -20
- package/dist/cli/extension-recovery.d.ts +20 -20
- package/dist/cli/help-content.d.ts +16 -16
- package/dist/cli/help-content.js +2 -2
- package/dist/cli/help-json-payload.d.ts +40 -40
- package/dist/cli/invocation-profile.d.ts +8 -8
- package/dist/cli/main.d.ts +165 -165
- package/dist/cli/main.js +1 -1
- package/dist/cli/migration-gates.d.ts +20 -20
- package/dist/cli/register-list-query.d.ts +4 -4
- package/dist/cli/register-mutation-options.d.ts +2 -2
- package/dist/cli/register-operations.d.ts +66 -66
- package/dist/cli/register-setup.d.ts +1 -1
- package/dist/cli/register-structured-mutation.d.ts +3 -3
- package/dist/cli/register-structured-mutation.js +1 -1
- package/dist/cli/runtime/activation.d.ts +3 -3
- package/dist/cli/runtime/invocation-options.js +1 -1
- package/dist/cli/runtime/selection.d.ts +6 -6
- package/dist/cli/runtime-compatibility-boundary.d.ts +12 -12
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-MHPU2LDF.js → chunk-AM2XOZKE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UABZJXIS.js → chunk-APWPC4ZZ.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-DJDRHJBP.js +234 -0
- package/dist/cli-bundle/chunks/{chunk-B465HPS5.js → chunk-DUK5DHI6.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-HXHFKXLV.js +2 -0
- package/dist/cli-bundle/chunks/chunk-IFPJDJUM.js +20 -0
- package/dist/cli-bundle/chunks/{chunk-QM3M7GB5.js → chunk-LBDWFWPK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-X2I2EEAS.js → chunk-N5EXRYCZ.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-PSNS537F.js +30 -0
- package/dist/cli-bundle/chunks/{chunk-3LQTJN4J.js → chunk-RL45OYTL.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DT3KUUKY.js → chunk-UBTYYZIE.js} +49 -49
- package/dist/cli-bundle/chunks/chunk-WYZGZV2M.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-GUVKPOY6.js → chunk-YH6H3UVE.js} +10 -10
- package/dist/cli-bundle/chunks/{register-list-query-OR33UEML.js → register-list-query-BJ742QOR.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-R34EJ3NH.js → register-mutation-GGGBRIH2.js} +3 -3
- package/dist/cli-bundle/chunks/{register-operations-UHSMEHSF.js → register-operations-E6HXYHNM.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-5E3PT22L.js → register-setup-4ZVTVEPY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TS46OZD5.js → chunk-3LQEBXU5.js} +12 -12
- package/dist/cli-bundle/focused-chunks/{chunk-AJG3DBXR.js → chunk-6BTUISKV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-73UNAJHD.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RNAWRTQV.js → chunk-DVK7VKZL.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-7QIZB2F2.js → chunk-F5J3ATMV.js} +14 -14
- package/dist/cli-bundle/focused-chunks/chunk-IIKFTJVC.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-IOTNG6CN.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-Z4T3637Y.js → chunk-KGFRQ34R.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-NNW5BS5L.js +3 -0
- package/dist/cli-bundle/focused-chunks/{chunk-VBTLX5SN.js → chunk-QMNAY25P.js} +62 -62
- package/dist/cli-bundle/focused-chunks/{chunk-CYEZLKLL.js → chunk-R23T7GFZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-RAA7SVRA.js +8 -0
- package/dist/cli-bundle/focused-chunks/{chunk-SV6YYZLR.js → chunk-RU6GCFN3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-YCOJLIDI.js → chunk-S6ITXQ5T.js} +4 -4
- package/dist/cli-bundle/focused-chunks/{chunk-OGOLIS5R.js → chunk-SOB7X4FJ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-UPJA45K7.js +26 -0
- package/dist/cli-bundle/main.js +20 -20
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +23 -23
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +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 +8 -8
- package/dist/cli.d.ts +4 -4
- package/dist/core/checkpoint/checkpoint-gc.d.ts +32 -32
- package/dist/core/checkpoint/mutation-checkpoint.d.ts +34 -34
- package/dist/core/config/nested-settings.d.ts +26 -26
- package/dist/core/config/positional-value.d.ts +16 -16
- package/dist/core/diagnostics/remediation.d.ts +6 -6
- package/dist/core/diagnostics/remediation.js +1 -1
- package/dist/core/extensions/activation-summary-markdown.d.ts +6 -6
- package/dist/core/extensions/activation-summary.d.ts +54 -54
- package/dist/core/extensions/activation-transaction.d.ts +7 -7
- package/dist/core/extensions/capability-usage.d.ts +26 -26
- package/dist/core/extensions/command-hook-context.d.ts +26 -26
- package/dist/core/extensions/contribution-inventory.d.ts +21 -21
- package/dist/core/extensions/extension-candidate.d.ts +14 -14
- package/dist/core/extensions/extension-capability-aliases.d.ts +2 -2
- package/dist/core/extensions/extension-policy.d.ts +80 -80
- package/dist/core/extensions/extension-types.d.ts +1294 -1285
- package/dist/core/extensions/extension-types.js +1 -1
- package/dist/core/extensions/flag-definition-validation.d.ts +4 -4
- package/dist/core/extensions/item-fields.d.ts +3 -2
- package/dist/core/extensions/item-fields.js +1 -1
- package/dist/core/extensions/loader.d.ts +36 -36
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/extensions/manifest-schema.d.ts +16 -16
- package/dist/core/extensions/module-graph-snapshot.d.ts +8 -8
- package/dist/core/extensions/read-output-contract.d.ts +5 -0
- package/dist/core/extensions/read-output-contract.js +2 -0
- package/dist/core/extensions/registration-values.d.ts +1 -1
- package/dist/core/extensions/reserved-host-flags.d.ts +6 -6
- package/dist/core/extensions/version-compat.d.ts +10 -10
- package/dist/core/fs/fs-utils.d.ts +1 -1
- package/dist/core/fs/host-environment-errors.d.ts +14 -14
- package/dist/core/governance/content-fields.d.ts +31 -31
- package/dist/core/governance/issue-codes.d.ts +27 -27
- package/dist/core/governance/metadata-coverage.d.ts +91 -91
- package/dist/core/history/drift-scan.d.ts +26 -26
- package/dist/core/history/event-index.d.ts +41 -41
- package/dist/core/history/history-compact-bulk.d.ts +22 -22
- package/dist/core/history/history-diff.d.ts +22 -22
- package/dist/core/history/history-rewrite.d.ts +66 -66
- package/dist/core/history/history-storage-stats.d.ts +31 -31
- package/dist/core/history/history-stream-policy.d.ts +12 -12
- package/dist/core/history/history.d.ts +22 -22
- package/dist/core/history/identity.d.ts +6 -6
- package/dist/core/history/operation-contract.d.ts +9 -9
- package/dist/core/history/projection.d.ts +15 -15
- package/dist/core/history/read.d.ts +4 -4
- package/dist/core/history/replay.d.ts +51 -49
- package/dist/core/history/replay.js +1 -1
- package/dist/core/history/workspace-history.d.ts +101 -101
- package/dist/core/io/bulk-ids-input.d.ts +4 -4
- package/dist/core/item/actionability.d.ts +40 -40
- package/dist/core/item/id.d.ts +3 -3
- package/dist/core/item/item-format-version.d.ts +8 -8
- package/dist/core/item/item-format.d.ts +35 -35
- package/dist/core/item/item-type-definition.d.ts +2 -2
- package/dist/core/item/parent-reference-policy.d.ts +1 -1
- package/dist/core/item/parse.d.ts +12 -12
- package/dist/core/item/sprint-release-format.d.ts +2 -2
- package/dist/core/item/status-filter.d.ts +4 -4
- package/dist/core/item/toon-decode.d.ts +9 -9
- package/dist/core/item/type-registry.d.ts +40 -40
- package/dist/core/lock/lock-gc.d.ts +50 -50
- package/dist/core/lock/lock.d.ts +37 -37
- package/dist/core/output/mutation-projection.d.ts +6 -6
- package/dist/core/output/output-control.d.ts +4 -4
- package/dist/core/output/output.d.ts +40 -40
- package/dist/core/output/query-summary.d.ts +5 -5
- package/dist/core/packages/manifest.d.ts +50 -50
- package/dist/core/policy/workflow-policy-schema.d.ts +306 -306
- package/dist/core/policy/workflow-policy-store.d.ts +7 -7
- package/dist/core/policy/workflow-policy.d.ts +81 -81
- package/dist/core/profile/profile-describe.d.ts +40 -40
- package/dist/core/profile/profile-lint.d.ts +20 -20
- package/dist/core/profile/profile-plan.d.ts +84 -84
- package/dist/core/profile/profile-presets.d.ts +52 -52
- package/dist/core/reproducibility/context.d.ts +6 -6
- package/dist/core/schema/fields-file.d.ts +54 -54
- package/dist/core/schema/item-types-file.d.ts +36 -36
- package/dist/core/schema/runtime-field-values.d.ts +2 -2
- package/dist/core/schema/runtime-schema.d.ts +86 -86
- package/dist/core/schema/status-defs-file.d.ts +36 -36
- package/dist/core/schema/type-inference.d.ts +14 -14
- package/dist/core/schema/type-workflows.d.ts +22 -22
- package/dist/core/search/background-refresh.d.ts +9 -9
- package/dist/core/search/bm25.d.ts +19 -19
- package/dist/core/search/cache.d.ts +35 -35
- package/dist/core/search/corpus.d.ts +12 -12
- package/dist/core/search/embedding-batches.d.ts +48 -48
- package/dist/core/search/eval.d.ts +49 -49
- package/dist/core/search/http-client.d.ts +38 -38
- package/dist/core/search/providers.d.ts +41 -41
- package/dist/core/search/relevance.d.ts +20 -20
- package/dist/core/search/semantic-defaults.d.ts +8 -8
- package/dist/core/search/staleness.d.ts +4 -4
- package/dist/core/search/vector-stores.d.ts +78 -78
- package/dist/core/search/vectorization-metadata.d.ts +6 -6
- package/dist/core/sentry/helpers.d.ts +15 -15
- package/dist/core/sentry/instrument.d.ts +40 -40
- package/dist/core/session/session-state.d.ts +32 -32
- package/dist/core/shared/agent-session-context.d.ts +14 -14
- package/dist/core/shared/author.d.ts +128 -128
- package/dist/core/shared/command-types.d.ts +40 -40
- package/dist/core/shared/conflict-markers.d.ts +6 -6
- package/dist/core/shared/constants.d.ts +13 -13
- package/dist/core/shared/errors.d.ts +194 -183
- package/dist/core/shared/errors.js +1 -1
- package/dist/core/shared/secret-rules.d.ts +97 -97
- package/dist/core/shared/serial-queue.d.ts +8 -8
- package/dist/core/shared/split-comma-list.d.ts +6 -6
- package/dist/core/shared/time.d.ts +23 -23
- package/dist/core/store/item-format-migration.d.ts +10 -10
- package/dist/core/store/item-metadata-cache.d.ts +38 -38
- package/dist/core/store/item-metadata-query-index.d.ts +79 -79
- package/dist/core/store/item-metadata-read-work.d.ts +6 -6
- package/dist/core/store/item-store.d.ts +110 -110
- package/dist/core/store/paths.d.ts +2 -2
- package/dist/core/store/settings-read-cache.d.ts +12 -12
- package/dist/core/store/settings-validator.d.ts +165 -165
- package/dist/core/store/settings.d.ts +59 -59
- package/dist/core/telemetry/observability.d.ts +17 -17
- package/dist/core/telemetry/policy.d.ts +3 -3
- package/dist/core/telemetry/runtime.d.ts +241 -241
- package/dist/core/test/background-runs.d.ts +185 -185
- package/dist/core/test/item-test-run-tracking.d.ts +6 -6
- package/dist/core/test/run-selectors.d.ts +18 -18
- package/dist/core/validate/fix-planning.d.ts +50 -50
- package/dist/core/validate/missing-by-type.d.ts +4 -4
- package/dist/core/validate/missing-link-owners.d.ts +30 -30
- package/dist/core/validate/stale-file-classification.d.ts +8 -8
- package/dist/mcp/http-server.d.ts +28 -28
- package/dist/mcp/legacy-adapter.d.ts +33 -33
- package/dist/mcp/runtime-capabilities.d.ts +16 -16
- package/dist/mcp/server.d.ts +50 -50
- package/dist/mcp/tool-definitions.d.ts +36 -36
- package/dist/sdk/agent/closed-domain-contracts.d.ts +18 -18
- package/dist/sdk/agent/command-recovery.d.ts +4 -0
- package/dist/sdk/agent/command-recovery.js +1 -1
- package/dist/sdk/agent/identity-config.d.ts +32 -32
- package/dist/sdk/agent/item-addressing.d.ts +8 -8
- package/dist/sdk/agent/refusal-closure-census.d.ts +34 -34
- package/dist/sdk/agent/refusal-closure.d.ts +42 -42
- package/dist/sdk/agent/refusal-corpus-contracts.d.ts +46 -46
- package/dist/sdk/agent/refusal-reachability.d.ts +112 -112
- package/dist/sdk/agent/subcommand-recovery.d.ts +25 -25
- package/dist/sdk/agent/task-transcript-contracts.d.ts +30 -30
- package/dist/sdk/agent/tracker-preflight-contracts.d.ts +38 -38
- package/dist/sdk/agent-capability-contracts.d.ts +37 -37
- package/dist/sdk/annotations.d.ts +106 -106
- package/dist/sdk/author-attribution.d.ts +76 -76
- package/dist/sdk/authoring.d.ts +1 -1
- package/dist/sdk/authoring.js +1 -1
- package/dist/sdk/cli-bootstrap.d.ts +70 -70
- package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +63 -63
- package/dist/sdk/cli-contracts/command-aliases.d.ts +14 -14
- package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +70 -70
- package/dist/sdk/cli-contracts/commander-types.d.ts +17 -17
- package/dist/sdk/cli-contracts/completeness.d.ts +26 -26
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +5 -5
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +32 -32
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +42 -42
- package/dist/sdk/cli-contracts/grammar-contracts.d.ts +84 -84
- package/dist/sdk/cli-contracts/grammar-contracts.js +1 -1
- package/dist/sdk/cli-contracts/registration-helpers.d.ts +36 -36
- package/dist/sdk/cli-contracts/runtime-contracts.d.ts +290 -294
- package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
- package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +793 -793
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +391 -391
- package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +6 -6
- package/dist/sdk/cli-contracts/tool-schema.d.ts +54 -54
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +24 -24
- package/dist/sdk/comments.d.ts +44 -44
- package/dist/sdk/compile-cache.d.ts +4 -4
- package/dist/sdk/completion/shared.d.ts +22 -22
- package/dist/sdk/compose.d.ts +156 -156
- package/dist/sdk/config.d.ts +123 -123
- package/dist/sdk/context/semantic-session-attribution.d.ts +14 -14
- package/dist/sdk/context/usage-ledger.d.ts +20 -20
- package/dist/sdk/context-intent-contracts.d.ts +50 -50
- package/dist/sdk/context-intent-contracts.js +1 -1
- package/dist/sdk/context-intent-runtime.d.ts +8 -8
- package/dist/sdk/context-packing.d.ts +78 -78
- package/dist/sdk/context-relevance.d.ts +189 -180
- package/dist/sdk/context-relevance.js +1 -1
- package/dist/sdk/context-signal-store.d.ts +84 -84
- package/dist/sdk/context-usage.d.ts +92 -92
- package/dist/sdk/corpus-shape.d.ts +101 -101
- package/dist/sdk/define.d.ts +2 -2
- package/dist/sdk/dependencies.d.ts +116 -116
- package/dist/sdk/dependency-flag-validation.d.ts +14 -12
- package/dist/sdk/dependency-flag-validation.js +1 -1
- package/dist/sdk/dependency-provenance.d.ts +30 -30
- package/dist/sdk/docs.d.ts +32 -32
- package/dist/sdk/duplicates.d.ts +21 -21
- package/dist/sdk/environment/agent-environment.d.ts +196 -196
- package/dist/sdk/environment/project-runtime-compatibility.d.ts +56 -56
- package/dist/sdk/environment/source-context.d.ts +6 -6
- package/dist/sdk/error-code-catalog.d.ts +40 -40
- package/dist/sdk/errors.d.ts +29 -29
- package/dist/sdk/eval.d.ts +45 -45
- package/dist/sdk/extension/author-manifest.d.ts +14 -14
- package/dist/sdk/extension/bundled-catalog.d.ts +7 -7
- package/dist/sdk/extension/describe.d.ts +36 -36
- package/dist/sdk/extension/doctor.d.ts +29 -29
- package/dist/sdk/extension/install-plan.d.ts +55 -55
- package/dist/sdk/extension/install-receipts.d.ts +2 -2
- package/dist/sdk/extension/install-runtime.d.ts +8 -8
- package/dist/sdk/extension/install-snapshot.d.ts +14 -14
- package/dist/sdk/extension/install-sources.d.ts +96 -96
- package/dist/sdk/extension/managed-state.d.ts +66 -66
- package/dist/sdk/extension/migrations.d.ts +82 -82
- package/dist/sdk/extension/output-ownership.d.ts +24 -24
- package/dist/sdk/extension/runtime-summary.d.ts +5 -5
- package/dist/sdk/extension/scaffold.d.ts +12 -12
- package/dist/sdk/extension/shared.d.ts +15 -15
- package/dist/sdk/extension/source-resolution.d.ts +30 -30
- package/dist/sdk/extension/static-inventory.d.ts +42 -42
- package/dist/sdk/extension/update-check.d.ts +10 -10
- package/dist/sdk/extension.d.ts +320 -320
- package/dist/sdk/files.d.ts +157 -157
- package/dist/sdk/flag-invocation-contracts.d.ts +44 -44
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
- package/dist/sdk/governance/artifact-ledgers.d.ts +35 -35
- package/dist/sdk/governance/assurance-action.d.ts +68 -68
- package/dist/sdk/governance/assurance-action.js +1 -1
- package/dist/sdk/governance/assurance-mutation-error.d.ts +36 -36
- package/dist/sdk/governance/assurance-presets.d.ts +24 -24
- package/dist/sdk/governance/assurance-runtime.d.ts +14 -14
- package/dist/sdk/governance/assurance.d.ts +353 -353
- package/dist/sdk/governance/boundary-fixtures.d.ts +60 -60
- package/dist/sdk/governance/closure-timestamps.d.ts +9 -9
- package/dist/sdk/governance/coverage-assurance.d.ts +10 -10
- package/dist/sdk/governance/defect-recurrence-coverage.d.ts +75 -75
- package/dist/sdk/governance/defect-recurrence-graph.d.ts +18 -18
- package/dist/sdk/governance/defect-recurrence.d.ts +186 -181
- package/dist/sdk/governance/defect-recurrence.js +1 -1
- package/dist/sdk/governance/extension-host-version.d.ts +16 -16
- package/dist/sdk/governance/gc.d.ts +48 -48
- package/dist/sdk/governance/health-merge-evidence.d.ts +5 -5
- package/dist/sdk/governance/health.d.ts +188 -188
- package/dist/sdk/governance/hierarchy-validation.d.ts +13 -13
- package/dist/sdk/governance/linked-file-report.d.ts +26 -26
- package/dist/sdk/governance/merge-receipt-history.d.ts +36 -36
- package/dist/sdk/governance/provenance-health.d.ts +64 -64
- package/dist/sdk/governance/reindex.d.ts +89 -89
- package/dist/sdk/governance/reliability.d.ts +56 -56
- package/dist/sdk/governance/stale-work.d.ts +22 -22
- package/dist/sdk/governance/status-role-diagnostics.d.ts +12 -12
- package/dist/sdk/governance/storage-integrity.d.ts +54 -54
- package/dist/sdk/governance/tracked-runtime-cache.d.ts +10 -10
- package/dist/sdk/governance/upgrade.d.ts +104 -104
- package/dist/sdk/governance/validate-history-drift.d.ts +2 -2
- package/dist/sdk/governance/validate-item-reader.d.ts +6 -6
- package/dist/sdk/governance/validate.d.ts +191 -191
- package/dist/sdk/governance/workflow-completeness.d.ts +15 -15
- package/dist/sdk/governance/workflow-policy.d.ts +28 -28
- package/dist/sdk/governance/workspace-position.d.ts +46 -46
- package/dist/sdk/graph/adapter.d.ts +66 -66
- package/dist/sdk/graph/analytics.d.ts +54 -54
- package/dist/sdk/graph/assembly.d.ts +80 -80
- package/dist/sdk/graph/cache.d.ts +29 -29
- package/dist/sdk/graph/cardinality-integrity.d.ts +13 -0
- package/dist/sdk/graph/cardinality-integrity.js +2 -0
- package/dist/sdk/graph/centrality.d.ts +34 -34
- package/dist/sdk/graph/conformance.d.ts +33 -33
- package/dist/sdk/graph/deadline-scheduling.d.ts +58 -58
- package/dist/sdk/graph/durable-cache.d.ts +26 -26
- package/dist/sdk/graph/governance.d.ts +165 -165
- package/dist/sdk/graph/hierarchy-integrity.d.ts +52 -52
- package/dist/sdk/graph/index.d.ts +1 -0
- package/dist/sdk/graph/index.js +1 -1
- package/dist/sdk/graph/lifecycle-coverage.d.ts +17 -17
- package/dist/sdk/graph/mutation-advisory.d.ts +11 -11
- package/dist/sdk/graph/query-contracts.d.ts +10 -10
- package/dist/sdk/graph/remediation.d.ts +25 -25
- package/dist/sdk/graph/run.d.ts +392 -392
- package/dist/sdk/graph/scheduling.d.ts +38 -38
- package/dist/sdk/graph/traversal.d.ts +14 -14
- package/dist/sdk/guide-topics.d.ts +32 -32
- package/dist/sdk/guide.d.ts +62 -62
- package/dist/sdk/history/attestation-command.d.ts +12 -12
- package/dist/sdk/history/attestation-contract.d.ts +78 -78
- package/dist/sdk/history/attestation-scan.d.ts +6 -6
- package/dist/sdk/history/maintenance.d.ts +46 -46
- package/dist/sdk/history/salvage.d.ts +18 -18
- package/dist/sdk/history/subject.d.ts +9 -9
- package/dist/sdk/history-analytics.d.ts +84 -84
- package/dist/sdk/history-compact.d.ts +103 -103
- package/dist/sdk/history-mcp.d.ts +8 -8
- package/dist/sdk/history-provenance.d.ts +59 -59
- package/dist/sdk/history-read.d.ts +36 -36
- package/dist/sdk/history-redact.d.ts +78 -78
- package/dist/sdk/history-repair.d.ts +158 -158
- package/dist/sdk/history-repair.js +1 -1
- package/dist/sdk/improvement-ledger.d.ts +102 -102
- package/dist/sdk/init-agent-guidance.d.ts +70 -70
- package/dist/sdk/init.d.ts +152 -152
- package/dist/sdk/item-children.d.ts +28 -28
- package/dist/sdk/item-schedule.d.ts +12 -12
- package/dist/sdk/item-transaction.d.ts +100 -100
- package/dist/sdk/learnings.d.ts +42 -42
- package/dist/sdk/lifecycle/append.d.ts +14 -14
- package/dist/sdk/lifecycle/claim.d.ts +60 -60
- package/dist/sdk/lifecycle/close-many.d.ts +94 -94
- package/dist/sdk/lifecycle/close.d.ts +27 -27
- package/dist/sdk/lifecycle/copy.d.ts +18 -18
- package/dist/sdk/lifecycle/core-field-recovery.d.ts +7 -0
- package/dist/sdk/lifecycle/core-field-recovery.js +2 -0
- package/dist/sdk/lifecycle/create.d.ts +82 -82
- package/dist/sdk/lifecycle/create.js +1 -1
- package/dist/sdk/lifecycle/delete.d.ts +28 -28
- package/dist/sdk/lifecycle/focus.d.ts +10 -10
- package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +10 -10
- package/dist/sdk/lifecycle/hierarchy-mutation-lock.js +1 -1
- package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +54 -54
- package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +4 -4
- package/dist/sdk/lifecycle/mcp-actions.d.ts +10 -10
- package/dist/sdk/lifecycle/mutation-command-options.d.ts +116 -116
- package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +6 -0
- package/dist/sdk/lifecycle/mutation-facet-contracts.js +2 -0
- package/dist/sdk/lifecycle/plan-mutation-receipt.d.ts +42 -42
- package/dist/sdk/lifecycle/plan.d.ts +217 -217
- package/dist/sdk/lifecycle/reopen.d.ts +29 -24
- package/dist/sdk/lifecycle/reopen.js +1 -1
- package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +3 -3
- package/dist/sdk/lifecycle/restore.d.ts +33 -33
- package/dist/sdk/lifecycle/shared-unset-fields.d.ts +19 -19
- package/dist/sdk/lifecycle/task-composition.d.ts +4 -4
- package/dist/sdk/lifecycle/update-many.d.ts +79 -79
- package/dist/sdk/lifecycle/update.d.ts +131 -132
- package/dist/sdk/lifecycle/update.js +2 -2
- package/dist/sdk/lifecycle-completion.d.ts +22 -22
- package/dist/sdk/lifecycle-policy.d.ts +52 -52
- package/dist/sdk/linked-artifacts.d.ts +69 -69
- package/dist/sdk/mcp/apps.d.ts +32 -32
- package/dist/sdk/mcp/authorization.d.ts +76 -76
- package/dist/sdk/mcp/discovery.d.ts +111 -111
- package/dist/sdk/mcp/interactions.d.ts +61 -61
- package/dist/sdk/mcp/protocol.d.ts +78 -78
- package/dist/sdk/mcp/skills.d.ts +88 -88
- package/dist/sdk/mcp/subscriptions.d.ts +39 -39
- package/dist/sdk/mcp/tasks.d.ts +75 -75
- package/dist/sdk/mcp/transport.d.ts +11 -11
- package/dist/sdk/merge/abandoned-receipts.d.ts +6 -6
- package/dist/sdk/merge/driver.d.ts +60 -60
- package/dist/sdk/merge/install.d.ts +64 -64
- package/dist/sdk/merge/receipt-file-boundary.d.ts +5 -5
- package/dist/sdk/merge/receipt-operation.d.ts +6 -6
- package/dist/sdk/merge/receipt-schema.d.ts +2 -2
- package/dist/sdk/merge/receipts.d.ts +156 -156
- package/dist/sdk/merge/reconcile.d.ts +36 -36
- package/dist/sdk/merge/reconcile.js +1 -1
- package/dist/sdk/merge/three-way.d.ts +77 -76
- package/dist/sdk/merge/three-way.js +1 -1
- package/dist/sdk/mutation-events.d.ts +84 -84
- package/dist/sdk/mutation-guard.d.ts +106 -106
- package/dist/sdk/notes.d.ts +52 -52
- package/dist/sdk/output/table-rows.d.ts +8 -8
- package/dist/sdk/output-contracts.d.ts +38 -38
- package/dist/sdk/output-projection.d.ts +142 -142
- package/dist/sdk/output-token-accounting.d.ts +27 -27
- package/dist/sdk/output.d.ts +28 -28
- package/dist/sdk/package-import-adapters.d.ts +54 -54
- package/dist/sdk/pagination.d.ts +29 -29
- package/dist/sdk/profile.d.ts +123 -123
- package/dist/sdk/provenance.d.ts +58 -58
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/activity.d.ts +118 -118
- package/dist/sdk/query/aggregate.d.ts +140 -140
- package/dist/sdk/query/calendar.d.ts +144 -144
- package/dist/sdk/query/complete-list.d.ts +53 -53
- package/dist/sdk/query/context.d.ts +395 -395
- package/dist/sdk/query/duplicate-candidates.d.ts +1 -1
- package/dist/sdk/query/get.d.ts +77 -77
- package/dist/sdk/query/history.d.ts +72 -72
- package/dist/sdk/query/item-filter-options.d.ts +79 -79
- package/dist/sdk/query/list-filter-shared.d.ts +1 -1
- package/dist/sdk/query/list.d.ts +188 -188
- package/dist/sdk/query/multi-value-filters.d.ts +4 -4
- package/dist/sdk/query/next-ready-budget.d.ts +14 -14
- package/dist/sdk/query/next.d.ts +137 -137
- package/dist/sdk/query/projection-contracts.d.ts +8 -8
- package/dist/sdk/query/search/corpus.d.ts +8 -8
- package/dist/sdk/query/search/filters.d.ts +5 -5
- package/dist/sdk/query/search/input.d.ts +4 -4
- package/dist/sdk/query/search/response.d.ts +8 -8
- package/dist/sdk/query/search/semantic.d.ts +106 -106
- package/dist/sdk/query/search/types.d.ts +85 -85
- package/dist/sdk/query/search-contracts.d.ts +65 -65
- package/dist/sdk/query/search-pagination.d.ts +19 -19
- package/dist/sdk/query/search-rendering.d.ts +25 -25
- package/dist/sdk/query/search.d.ts +46 -46
- package/dist/sdk/read-output/continuation.d.ts +8 -8
- package/dist/sdk/read-output/continuation.js +1 -1
- package/dist/sdk/read-output/extension.d.ts +7 -0
- package/dist/sdk/read-output/extension.js +2 -0
- package/dist/sdk/read-output/options.d.ts +6 -4
- package/dist/sdk/read-output/options.js +1 -1
- package/dist/sdk/read-output/provenance.d.ts +8 -8
- package/dist/sdk/read-output-budget.d.ts +10 -10
- package/dist/sdk/read-output-contracts.d.ts +192 -186
- package/dist/sdk/read-output-contracts.js +1 -1
- package/dist/sdk/read-output-rows.d.ts +6 -6
- package/dist/sdk/read-output-session.d.ts +50 -50
- package/dist/sdk/relationship-analytics.d.ts +78 -78
- package/dist/sdk/relationship-context.d.ts +81 -81
- package/dist/sdk/relationship-history.d.ts +109 -109
- package/dist/sdk/relationship-kinds/contract.d.ts +34 -34
- package/dist/sdk/relationship-migration.d.ts +26 -26
- package/dist/sdk/relationships.d.ts +78 -78
- package/dist/sdk/reproducibility/process.d.ts +3 -3
- package/dist/sdk/runtime/context.d.ts +11 -11
- package/dist/sdk/runtime-action-aliases.d.ts +2 -2
- package/dist/sdk/runtime-extended-actions.d.ts +8 -8
- package/dist/sdk/runtime-input.d.ts +3 -3
- package/dist/sdk/runtime-public-contracts.d.ts +78 -78
- package/dist/sdk/runtime.d.ts +305 -305
- package/dist/sdk/runtime.js +1 -1
- package/dist/sdk/scheduling-shortcuts.d.ts +32 -32
- package/dist/sdk/schema-migration.d.ts +86 -86
- package/dist/sdk/schema.d.ts +355 -355
- package/dist/sdk/similarity-scoring.d.ts +10 -10
- package/dist/sdk/similarity.d.ts +113 -113
- package/dist/sdk/stats.d.ts +108 -108
- package/dist/sdk/structured-mutations.d.ts +16 -16
- package/dist/sdk/structured-mutations.js +1 -1
- package/dist/sdk/telemetry.d.ts +53 -53
- package/dist/sdk/templates.d.ts +39 -39
- package/dist/sdk/test/batch.d.ts +85 -85
- package/dist/sdk/test/execution-receipts.d.ts +3 -3
- package/dist/sdk/test/execution.d.ts +277 -277
- package/dist/sdk/test/execution.js +2 -2
- package/dist/sdk/test/json-path.d.ts +2 -2
- package/dist/sdk/test/linked-command-detection.d.ts +10 -10
- package/dist/sdk/test/measurements.d.ts +11 -11
- package/dist/sdk/test/parsers.d.ts +1 -1
- package/dist/sdk/test/parsers.js +1 -1
- package/dist/sdk/test/runs.d.ts +52 -52
- package/dist/sdk/test/trust.d.ts +12 -12
- package/dist/sdk/test/update.d.ts +31 -31
- package/dist/sdk/testing.d.ts +319 -319
- package/dist/sdk/traceability/source-traceability.d.ts +65 -65
- package/dist/sdk/workspace-contracts.d.ts +37 -37
- package/dist/sdk/workspace-memory.d.ts +60 -60
- package/dist/sdk/workspace-recipe.d.ts +9 -9
- package/dist/sdk/workspace-snapshot.d.ts +97 -97
- package/dist/sdk/workspace-transaction-gc.d.ts +32 -32
- package/dist/sdk/workspace-transaction.d.ts +47 -47
- package/dist/sdk/workspace.d.ts +6 -6
- package/dist/types.d.ts +978 -978
- package/dist/types.js +1 -1
- package/docs/BUILD_AND_RELEASE_ACCEPTANCE.md +5 -2
- package/docs/DEFECT_RECURRENCE.md +12 -0
- package/docs/EXTENSIONS.md +2 -2
- package/docs/MERGE_SAFETY.md +27 -1
- package/docs/RECURRENCE_RECOVERY_CONTRACTS.md +17 -4
- package/docs/RELATIONSHIP_GRAPH.md +26 -0
- package/docs/RELEASING.md +6 -0
- package/docs/SDK.md +43 -18
- package/docs/SDK_CONSUMER_RECEIPTS.md +67 -0
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +6 -3
- package/marketplace.json +1 -1
- package/node_modules/@opentelemetry/core/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/resources/package.json +3 -3
- package/node_modules/@opentelemetry/sdk-trace/build/esm/StackContextManager.d.ts +57 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/StackContextManager.js +105 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/index.d.ts +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/index.js +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/StackContextManager.d.ts +57 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/StackContextManager.js +105 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/index.d.ts +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/index.js +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/StackContextManager.d.ts +57 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/StackContextManager.js +109 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/index.d.ts +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/index.js +3 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/package.json +5 -5
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/package.json +7 -7
- package/node_modules/@sentry/core/build/cjs/browser.js +3 -0
- package/node_modules/@sentry/core/build/cjs/fetch.js +10 -9
- package/node_modules/@sentry/core/build/cjs/index.js +3 -0
- package/node_modules/@sentry/core/build/cjs/integrations/http/add-outgoing-request-breadcrumb.js +2 -1
- package/node_modules/@sentry/core/build/cjs/integrations/http/get-outgoing-span-data.js +3 -2
- package/node_modules/@sentry/core/build/cjs/integrations/http/server-subscription.js +7 -3
- package/node_modules/@sentry/core/build/cjs/integrations/requestdata.js +23 -9
- package/node_modules/@sentry/core/build/cjs/server.js +3 -0
- package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterCollectedUrl.js +24 -0
- package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterKeyValueData.js +17 -23
- package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterQueryParams.js +8 -15
- package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterUrlQuery.js +20 -0
- package/node_modules/@sentry/core/build/cjs/utils/url.js +4 -3
- package/node_modules/@sentry/core/build/cjs/utils/version.js +1 -1
- package/node_modules/@sentry/core/build/esm/browser.js +1 -0
- package/node_modules/@sentry/core/build/esm/fetch.js +10 -9
- package/node_modules/@sentry/core/build/esm/index.js +1 -0
- package/node_modules/@sentry/core/build/esm/integrations/http/add-outgoing-request-breadcrumb.js +2 -1
- package/node_modules/@sentry/core/build/esm/integrations/http/get-outgoing-span-data.js +3 -2
- package/node_modules/@sentry/core/build/esm/integrations/http/server-subscription.js +7 -3
- package/node_modules/@sentry/core/build/esm/integrations/requestdata.js +23 -9
- package/node_modules/@sentry/core/build/esm/package.json +1 -1
- package/node_modules/@sentry/core/build/esm/server.js +1 -0
- package/node_modules/@sentry/core/build/esm/utils/data-collection/filterCollectedUrl.js +21 -0
- package/node_modules/@sentry/core/build/esm/utils/data-collection/filterKeyValueData.js +18 -25
- package/node_modules/@sentry/core/build/esm/utils/data-collection/filterQueryParams.js +9 -16
- package/node_modules/@sentry/core/build/esm/utils/data-collection/filterUrlQuery.js +18 -0
- package/node_modules/@sentry/core/build/esm/utils/url.js +4 -3
- package/node_modules/@sentry/core/build/esm/utils/version.js +1 -1
- package/node_modules/@sentry/core/build/types/shared-exports.d.ts +1 -0
- package/node_modules/@sentry/core/build/types/utils/data-collection/filterCollectedUrl.d.ts +21 -0
- package/node_modules/@sentry/core/build/types/utils/data-collection/filterKeyValueData.d.ts +1 -0
- package/node_modules/@sentry/core/build/types/utils/data-collection/filterQueryParams.d.ts +2 -3
- package/node_modules/@sentry/core/build/types/utils/data-collection/filterUrlQuery.d.ts +13 -0
- package/node_modules/@sentry/core/build/types/utils/url.d.ts +4 -1
- package/node_modules/@sentry/core/build/types-ts3.8/shared-exports.d.ts +1 -0
- package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterCollectedUrl.d.ts +21 -0
- package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterKeyValueData.d.ts +1 -0
- package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterQueryParams.d.ts +2 -3
- package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterUrlQuery.d.ts +13 -0
- package/node_modules/@sentry/core/build/types-ts3.8/utils/url.d.ts +4 -1
- package/node_modules/@sentry/core/package.json +3 -2
- package/node_modules/@sentry/node/build/cjs/integrations/tracing/vercelai/instrumentation.js +3 -0
- package/node_modules/@sentry/node/build/esm/integrations/tracing/vercelai/instrumentation.js +3 -0
- package/node_modules/@sentry/node/build/esm/package.json +1 -1
- package/node_modules/@sentry/node/package.json +7 -6
- package/node_modules/@sentry/node-core/build/cjs/integrations/anr/index.js +1 -1
- package/node_modules/@sentry/node-core/build/cjs/integrations/http/httpServerSpansIntegration.js +6 -3
- package/node_modules/@sentry/node-core/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
- package/node_modules/@sentry/node-core/build/cjs/integrations/node-fetch/undici-instrumentation.js +2 -2
- package/node_modules/@sentry/node-core/build/cjs/light/client.js +7 -0
- package/node_modules/@sentry/node-core/build/cjs/sdk/client.js +7 -0
- package/node_modules/@sentry/node-core/build/cjs/utils/outgoingFetchRequest.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/anr/index.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/anr/worker-script.js +2 -2
- package/node_modules/@sentry/node-core/build/esm/integrations/http/httpServerSpansIntegration.js +7 -4
- package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/local-variables-async.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/worker-script.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/node-fetch/undici-instrumentation.js +3 -3
- package/node_modules/@sentry/node-core/build/esm/light/client.js +8 -1
- package/node_modules/@sentry/node-core/build/esm/package.json +1 -1
- package/node_modules/@sentry/node-core/build/esm/sdk/client.js +8 -1
- package/node_modules/@sentry/node-core/build/esm/utils/outgoingFetchRequest.js +2 -2
- package/node_modules/@sentry/node-core/build/types/light/client.d.ts +1 -0
- package/node_modules/@sentry/node-core/build/types/sdk/client.d.ts +1 -0
- package/node_modules/@sentry/node-core/build/types-ts3.8/light/client.d.ts +1 -0
- package/node_modules/@sentry/node-core/build/types-ts3.8/sdk/client.d.ts +1 -0
- package/node_modules/@sentry/node-core/package.json +5 -4
- package/node_modules/@sentry/opentelemetry/build/cjs/{asyncContextStrategy-BJ5buq_A.js → asyncContextStrategy-BR-l9zjD.js} +8 -6
- package/node_modules/@sentry/opentelemetry/build/cjs/index.browser.js +1 -1
- package/node_modules/@sentry/opentelemetry/build/cjs/index.js +1 -1
- package/node_modules/@sentry/opentelemetry/build/esm/{asyncContextStrategy-Bx5F5tCX.js → asyncContextStrategy-BQfM_LMv.js} +9 -7
- package/node_modules/@sentry/opentelemetry/build/esm/index.browser.js +1 -1
- package/node_modules/@sentry/opentelemetry/build/esm/index.js +2 -2
- package/node_modules/@sentry/opentelemetry/build/esm/package.json +1 -1
- package/node_modules/@sentry/opentelemetry/package.json +4 -3
- package/node_modules/@sentry/server-utils/build/cjs/tracing-channel.js +1 -0
- package/node_modules/@sentry/server-utils/build/esm/package.json +1 -1
- package/node_modules/@sentry/server-utils/build/esm/tracing-channel.js +1 -0
- package/node_modules/@sentry/server-utils/build/types/tracing-channel.d.ts +3 -1
- package/node_modules/@sentry/server-utils/build/types-ts3.8/tracing-channel.d.ts +3 -1
- package/node_modules/@sentry/server-utils/package.json +4 -3
- package/node_modules/cjs-module-lexer/README.md +8 -3
- package/node_modules/cjs-module-lexer/dist/lexer.js +1 -1
- package/node_modules/cjs-module-lexer/dist/lexer.mjs +2 -2
- package/node_modules/cjs-module-lexer/lexer.js +48 -9
- package/node_modules/cjs-module-lexer/package.json +3 -2
- package/node_modules/es-module-lexer/dist/lexer.asm.js +2 -2
- package/node_modules/es-module-lexer/dist/lexer.cjs +1 -1
- package/node_modules/es-module-lexer/dist/lexer.js +2 -2
- package/node_modules/es-module-lexer/dist/lexer.minimal.asm.js +2 -2
- package/node_modules/es-module-lexer/dist/lexer.minimal.cjs +1 -1
- package/node_modules/es-module-lexer/dist/lexer.minimal.js +2 -2
- package/node_modules/es-module-lexer/package.json +1 -1
- package/node_modules/import-in-the-middle/CHANGELOG.md +7 -0
- package/node_modules/import-in-the-middle/lib/get-esm-exports.mjs +7 -0
- package/node_modules/import-in-the-middle/package.json +1 -1
- package/package.json +2 -2
- package/packages/pm-beads/extensions/beads/runtime.ts +2 -2
- 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 +37 -0
- package/dist/cli-bundle/chunks/chunk-6PZPUJW3.js +0 -234
- package/dist/cli-bundle/chunks/chunk-ILQEZ4Y6.js +0 -2
- package/dist/cli-bundle/chunks/chunk-JRRXWH5B.js +0 -20
- package/dist/cli-bundle/chunks/chunk-LH5QDBMN.js +0 -2
- package/dist/cli-bundle/chunks/chunk-M5NDSW6E.js +0 -30
- package/dist/cli-bundle/focused-chunks/chunk-AXBO53EQ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-FXRWJEQ5.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-IKJFAU32.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-PPH5N26M.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-RZVNGUT7.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-YDJT33JU.js +0 -2
|
@@ -25,11 +25,11 @@ export declare const EXTENSION_CAPABILITY_CONTRACT_VERSION = 2;
|
|
|
25
25
|
export declare const EXTENSION_CAPABILITY_LEGACY_ALIASES: Readonly<Record<string, ExtensionCapability>>;
|
|
26
26
|
/** Public contract for extension capability contract, shared by SDK and presentation-layer consumers. */
|
|
27
27
|
export declare const EXTENSION_CAPABILITY_CONTRACT: Readonly<{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
version: 2;
|
|
29
|
+
capabilities: ("search" | "schema" | "commands" | "importers" | "renderers" | "hooks" | "parser" | "preflight" | "services")[];
|
|
30
|
+
legacy_aliases: {
|
|
31
|
+
[x: string]: "search" | "schema" | "commands" | "importers" | "renderers" | "hooks" | "parser" | "preflight" | "services";
|
|
32
|
+
};
|
|
33
33
|
}>;
|
|
34
34
|
/** Public contract for known extension policy modes, shared by SDK and presentation-layer consumers. */
|
|
35
35
|
export declare const KNOWN_EXTENSION_POLICY_MODES: readonly ["off", "warn", "enforce"];
|
|
@@ -49,10 +49,10 @@ export declare const KNOWN_PM_MAX_VERSION_EXCEEDED_MODES: readonly ["block", "wa
|
|
|
49
49
|
export type PmMaxVersionExceededMode = (typeof KNOWN_PM_MAX_VERSION_EXCEEDED_MODES)[number];
|
|
50
50
|
/** Optional per-layer override map for `extensions.policy.pm_max_version_exceeded_mode`. */
|
|
51
51
|
export interface PmMaxVersionExceededModeByLayer {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
/** Value that configures or reports global for this contract. */
|
|
53
|
+
global?: PmMaxVersionExceededMode;
|
|
54
|
+
/** Value that configures or reports project for this contract. */
|
|
55
|
+
project?: PmMaxVersionExceededMode;
|
|
56
56
|
}
|
|
57
57
|
/** 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"`. */
|
|
58
58
|
export type PmMaxVersionExceededModeSetting = PmMaxVersionExceededMode | PmMaxVersionExceededModeByLayer;
|
|
@@ -66,48 +66,48 @@ export declare const KNOWN_EXTENSION_SERVICE_NAMES: readonly ["output_format", "
|
|
|
66
66
|
export type ExtensionServiceName = (typeof KNOWN_EXTENSION_SERVICE_NAMES)[number];
|
|
67
67
|
/** Documents the extension provenance metadata payload exchanged by command, SDK, and package integrations. */
|
|
68
68
|
export interface ExtensionProvenanceMetadata {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
69
|
+
/** Value that configures or reports source for this contract. */
|
|
70
|
+
source?: string;
|
|
71
|
+
/** Value that configures or reports signature for this contract. */
|
|
72
|
+
signature?: string;
|
|
73
|
+
/** Value that configures or reports attestation for this contract. */
|
|
74
|
+
attestation?: string;
|
|
75
|
+
/** Value that configures or reports verified for this contract. */
|
|
76
|
+
verified?: boolean;
|
|
77
77
|
}
|
|
78
78
|
/** Documents the extension runtime permission declaration payload exchanged by command, SDK, and package integrations. */
|
|
79
79
|
export interface ExtensionRuntimePermissionDeclaration {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
80
|
+
/** Value that configures or reports fs read for this contract. */
|
|
81
|
+
fs_read?: boolean;
|
|
82
|
+
/** Value that configures or reports fs write for this contract. */
|
|
83
|
+
fs_write?: boolean;
|
|
84
|
+
/** Value that configures or reports network for this contract. */
|
|
85
|
+
network?: boolean;
|
|
86
|
+
/** Value that configures or reports env read for this contract. */
|
|
87
|
+
env_read?: boolean;
|
|
88
|
+
/** Value that configures or reports env write for this contract. */
|
|
89
|
+
env_write?: boolean;
|
|
90
|
+
/** Value that configures or reports process spawn for this contract. */
|
|
91
|
+
process_spawn?: boolean;
|
|
92
92
|
}
|
|
93
93
|
/** Documents the extension activation metadata payload exchanged by command, SDK, and package integrations. */
|
|
94
94
|
export interface ExtensionActivationMetadata {
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
/** Value that configures or reports commands for this contract. */
|
|
96
|
+
commands?: string[];
|
|
97
97
|
}
|
|
98
98
|
/** Restricts extension policy override values accepted by command, SDK, and storage contracts. */
|
|
99
99
|
export type ExtensionPolicyOverride = ExtensionPolicyOverrideSettings;
|
|
100
100
|
/** 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. */
|
|
101
101
|
export type ExtensionGovernancePolicy = ExtensionPolicySettings & {
|
|
102
|
-
|
|
102
|
+
pm_max_version_exceeded_mode?: PmMaxVersionExceededModeSetting;
|
|
103
103
|
};
|
|
104
104
|
/** Documents the extension manifest engines payload exchanged by command, SDK, and package integrations. */
|
|
105
105
|
export interface ExtensionManifestEngines {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
/** Value that configures or reports pm for this contract. */
|
|
107
|
+
pm?: string;
|
|
108
|
+
/** Value that configures or reports node for this contract. */
|
|
109
|
+
node?: string;
|
|
110
|
+
[engine: string]: string | undefined;
|
|
111
111
|
}
|
|
112
112
|
/** Implements create default extension governance policy for the public runtime surface of this module. */
|
|
113
113
|
export declare function createDefaultExtensionGovernancePolicy(): ExtensionGovernancePolicy;
|
|
@@ -117,320 +117,320 @@ export type ExtensionLayer = "global" | "project";
|
|
|
117
117
|
export type ExtensionStatus = "ok" | "warn";
|
|
118
118
|
/** Static, serializable inventory of extension registrations available without importing its module. */
|
|
119
119
|
export interface ExtensionContributionInventory {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
120
|
+
/** Inventory schema version for forward-compatible persisted snapshots. */
|
|
121
|
+
schema_version: 1;
|
|
122
|
+
/** Declared command paths. */
|
|
123
|
+
commands?: string[];
|
|
124
|
+
/** Built-in command override targets. */
|
|
125
|
+
command_overrides?: string[];
|
|
126
|
+
/** Command paths backed by extension handlers. */
|
|
127
|
+
command_handlers?: string[];
|
|
128
|
+
/** Lifecycle hook phases contributed by the extension. */
|
|
129
|
+
hooks?: string[];
|
|
130
|
+
/** Command paths receiving extension flags. */
|
|
131
|
+
flag_commands?: string[];
|
|
132
|
+
/** Declared custom item types. */
|
|
133
|
+
item_types?: string[];
|
|
134
|
+
/** Declared custom item fields. */
|
|
135
|
+
item_fields?: string[];
|
|
136
|
+
/** Declared relationship kinds. */
|
|
137
|
+
relationship_kinds?: string[];
|
|
138
|
+
/** Declared schema migration identifiers. */
|
|
139
|
+
migrations?: string[];
|
|
140
|
+
/** Declared project profile names. */
|
|
141
|
+
profiles?: string[];
|
|
142
|
+
/** Declared importer names. */
|
|
143
|
+
importers?: string[];
|
|
144
|
+
/** Declared exporter names. */
|
|
145
|
+
exporters?: string[];
|
|
146
|
+
/** Declared search-provider names. */
|
|
147
|
+
search_providers?: string[];
|
|
148
|
+
/** Declared vector-store adapter names. */
|
|
149
|
+
vector_store_adapters?: string[];
|
|
150
|
+
/** Declared assurance measurement-provider ids. */
|
|
151
|
+
assurance_providers?: string[];
|
|
152
|
+
/** Parser override command targets. */
|
|
153
|
+
parser_overrides?: string[];
|
|
154
|
+
/** Service override targets. */
|
|
155
|
+
service_overrides?: string[];
|
|
156
|
+
/** Renderer formats contributed by the extension. */
|
|
157
|
+
renderer_overrides?: string[];
|
|
158
|
+
/** Optional command ownership for renderer contributions. */
|
|
159
|
+
renderer_ownership?: Array<{
|
|
160
|
+
/** Output format owned by this renderer. */
|
|
161
|
+
format: OutputRendererFormat;
|
|
162
|
+
/** Command paths on which the renderer may run. */
|
|
163
|
+
commands: string[];
|
|
164
|
+
/** Whether runtime result discrimination can select the renderer. */
|
|
165
|
+
result_discriminator: boolean;
|
|
166
|
+
}>;
|
|
167
|
+
/** Number of preflight overrides in the package. */
|
|
168
|
+
preflight_overrides?: number;
|
|
169
|
+
/** Optional command ownership for each preflight override. Empty commands mean global ownership. */
|
|
170
|
+
preflight_ownership?: Array<{
|
|
171
|
+
/** Command paths on which the override may run. */
|
|
172
|
+
commands: string[];
|
|
173
|
+
}>;
|
|
174
174
|
}
|
|
175
175
|
/** Documents the extension manifest payload exchanged by command, SDK, and package integrations. */
|
|
176
176
|
export interface ExtensionManifest {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
177
|
+
/** Value that configures or reports name for this contract. */
|
|
178
|
+
name: string;
|
|
179
|
+
/** Value that configures or reports version for this contract. */
|
|
180
|
+
version: string;
|
|
181
|
+
/** Value that configures or reports entry for this contract. */
|
|
182
|
+
entry: string;
|
|
183
|
+
/** Value that configures or reports priority for this contract. */
|
|
184
|
+
priority: number;
|
|
185
|
+
/** Value that configures or reports capabilities for this contract. */
|
|
186
|
+
capabilities: string[];
|
|
187
|
+
/** Value that configures or reports manifest version for this contract. */
|
|
188
|
+
manifest_version?: number;
|
|
189
|
+
/** Value that configures or reports pm min version for this contract. */
|
|
190
|
+
pm_min_version?: string;
|
|
191
|
+
/** Value that configures or reports pm max version for this contract. */
|
|
192
|
+
pm_max_version?: string;
|
|
193
|
+
/** Value that configures or reports engines for this contract. */
|
|
194
|
+
engines?: ExtensionManifestEngines;
|
|
195
|
+
/** Value that configures or reports trusted for this contract. */
|
|
196
|
+
trusted?: boolean;
|
|
197
|
+
/** Value that configures or reports provenance for this contract. */
|
|
198
|
+
provenance?: ExtensionProvenanceMetadata;
|
|
199
|
+
/** Value that configures or reports sandbox profile for this contract. */
|
|
200
|
+
sandbox_profile?: ExtensionSandboxProfile;
|
|
201
|
+
/** Value that configures or reports permissions for this contract. */
|
|
202
|
+
permissions?: ExtensionRuntimePermissionDeclaration;
|
|
203
|
+
/** Value that configures or reports activation for this contract. */
|
|
204
|
+
activation?: ExtensionActivationMetadata;
|
|
205
|
+
/** Static contribution inventory used by discovery before module import. */
|
|
206
|
+
contributions?: ExtensionContributionInventory;
|
|
207
|
+
/** Value that configures or reports legacy capability aliases for this contract. */
|
|
208
|
+
legacy_capability_aliases?: LegacyExtensionCapabilityAliasMapping[];
|
|
209
209
|
}
|
|
210
210
|
/** Documents the extension diagnostic payload exchanged by command, SDK, and package integrations. */
|
|
211
211
|
export interface ExtensionDiagnostic {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
212
|
+
/** Value that configures or reports layer for this contract. */
|
|
213
|
+
layer: ExtensionLayer;
|
|
214
|
+
/** Value that configures or reports directory for this contract. */
|
|
215
|
+
directory: string;
|
|
216
|
+
/** Filesystem path used for manifest resolution. */
|
|
217
|
+
manifest_path: string;
|
|
218
|
+
/** Value that configures or reports name for this contract. */
|
|
219
|
+
name: string | null;
|
|
220
|
+
/** Value that configures or reports version for this contract. */
|
|
221
|
+
version: string | null;
|
|
222
|
+
/** Value that configures or reports entry for this contract. */
|
|
223
|
+
entry: string | null;
|
|
224
|
+
/** Value that configures or reports priority for this contract. */
|
|
225
|
+
priority: number | null;
|
|
226
|
+
/** Filesystem path used for entry resolution. */
|
|
227
|
+
entry_path: string | null;
|
|
228
|
+
/** Whether enabled applies to this operation. */
|
|
229
|
+
enabled: boolean | null;
|
|
230
|
+
/** Lifecycle state reported for status. */
|
|
231
|
+
status: ExtensionStatus;
|
|
232
232
|
}
|
|
233
233
|
/** Documents the effective extension payload exchanged by command, SDK, and package integrations. */
|
|
234
234
|
export interface EffectiveExtension {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
235
|
+
/** Value that configures or reports layer for this contract. */
|
|
236
|
+
layer: ExtensionLayer;
|
|
237
|
+
/** Value that configures or reports directory for this contract. */
|
|
238
|
+
directory: string;
|
|
239
|
+
/** Filesystem path used for manifest resolution. */
|
|
240
|
+
manifest_path: string;
|
|
241
|
+
/** Value that configures or reports name for this contract. */
|
|
242
|
+
name: string;
|
|
243
|
+
/** Value that configures or reports source package for this contract. */
|
|
244
|
+
source_package?: string;
|
|
245
|
+
/** Install-source identities that can resolve this extension through package lifecycle commands. */
|
|
246
|
+
source_aliases?: string[];
|
|
247
|
+
/** Value that configures or reports version for this contract. */
|
|
248
|
+
version: string;
|
|
249
|
+
/** Value that configures or reports entry for this contract. */
|
|
250
|
+
entry: string;
|
|
251
|
+
/** Value that configures or reports priority for this contract. */
|
|
252
|
+
priority: number;
|
|
253
|
+
/** Filesystem path used for entry resolution. */
|
|
254
|
+
entry_path: string;
|
|
255
|
+
/** Value that configures or reports manifest version for this contract. */
|
|
256
|
+
manifest_version?: number;
|
|
257
|
+
/** Value that configures or reports pm min version for this contract. */
|
|
258
|
+
pm_min_version?: string;
|
|
259
|
+
/** Value that configures or reports pm max version for this contract. */
|
|
260
|
+
pm_max_version?: string;
|
|
261
|
+
/** Value that configures or reports engines for this contract. */
|
|
262
|
+
engines?: ExtensionManifestEngines;
|
|
263
|
+
/** Value that configures or reports trusted for this contract. */
|
|
264
|
+
trusted?: boolean;
|
|
265
|
+
/** Value that configures or reports provenance for this contract. */
|
|
266
|
+
provenance?: ExtensionProvenanceMetadata;
|
|
267
|
+
/** Value that configures or reports sandbox profile for this contract. */
|
|
268
|
+
sandbox_profile?: ExtensionSandboxProfile;
|
|
269
|
+
/** Value that configures or reports permissions for this contract. */
|
|
270
|
+
permissions?: ExtensionRuntimePermissionDeclaration;
|
|
271
|
+
/** Value that configures or reports capabilities for this contract. */
|
|
272
|
+
capabilities?: string[];
|
|
273
|
+
/** Value that configures or reports activation for this contract. */
|
|
274
|
+
activation?: ExtensionActivationMetadata;
|
|
275
|
+
/** Static contribution inventory resolved from the manifest or install snapshot. */
|
|
276
|
+
contributions?: ExtensionContributionInventory;
|
|
277
277
|
}
|
|
278
278
|
/** Documents the extension discovery result payload exchanged by command, SDK, and package integrations. */
|
|
279
279
|
export interface ExtensionDiscoveryResult {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
280
|
+
/** Value that configures or reports disabled by flag for this contract. */
|
|
281
|
+
disabled_by_flag: boolean;
|
|
282
|
+
/** Value that configures or reports roots for this contract. */
|
|
283
|
+
roots: {
|
|
284
|
+
global: string;
|
|
285
|
+
project: string;
|
|
286
|
+
};
|
|
287
|
+
/** Value that configures or reports configured enabled for this contract. */
|
|
288
|
+
configured_enabled: string[];
|
|
289
|
+
/** Value that configures or reports configured disabled for this contract. */
|
|
290
|
+
configured_disabled: string[];
|
|
291
|
+
/** Value that configures or reports discovered for this contract. */
|
|
292
|
+
discovered: ExtensionDiagnostic[];
|
|
293
|
+
/** Value that configures or reports effective for this contract. */
|
|
294
|
+
effective: EffectiveExtension[];
|
|
295
|
+
/** Value that configures or reports warnings for this contract. */
|
|
296
|
+
warnings: string[];
|
|
297
|
+
/** Value that configures or reports policy for this contract. */
|
|
298
|
+
policy: ExtensionGovernancePolicy;
|
|
299
299
|
}
|
|
300
300
|
/** Documents the loaded extension payload exchanged by command, SDK, and package integrations. */
|
|
301
301
|
export interface LoadedExtension extends EffectiveExtension {
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
/** Value that configures or reports module for this contract. */
|
|
303
|
+
module: unknown;
|
|
304
304
|
}
|
|
305
305
|
/** Documents the failed extension load payload exchanged by command, SDK, and package integrations. */
|
|
306
306
|
export interface FailedExtensionLoad {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
307
|
+
/** Value that configures or reports layer for this contract. */
|
|
308
|
+
layer: ExtensionLayer;
|
|
309
|
+
/** Value that configures or reports name for this contract. */
|
|
310
|
+
name: string;
|
|
311
|
+
/** Filesystem path used for entry resolution. */
|
|
312
|
+
entry_path: string;
|
|
313
|
+
/** Value that configures or reports error for this contract. */
|
|
314
|
+
error: string;
|
|
315
315
|
}
|
|
316
316
|
/** Documents the extension load result payload exchanged by command, SDK, and package integrations. */
|
|
317
317
|
export interface ExtensionLoadResult extends ExtensionDiscoveryResult {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
/** Value that configures or reports loaded for this contract. */
|
|
319
|
+
loaded: LoadedExtension[];
|
|
320
|
+
/** Value that configures or reports failed for this contract. */
|
|
321
|
+
failed: FailedExtensionLoad[];
|
|
322
322
|
}
|
|
323
323
|
/** Documents the before command hook context payload exchanged by command, SDK, and package integrations. */
|
|
324
324
|
export interface BeforeCommandHookContext {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
325
|
+
/** Value that configures or reports command for this contract. */
|
|
326
|
+
command: string;
|
|
327
|
+
/** Value that configures or reports args for this contract. */
|
|
328
|
+
args: string[];
|
|
329
|
+
/** Value that configures or reports options for this contract. */
|
|
330
|
+
options?: Record<string, unknown>;
|
|
331
|
+
/** Value that configures or reports global for this contract. */
|
|
332
|
+
global?: GlobalOptions;
|
|
333
|
+
/** Value that configures or reports pm root for this contract. */
|
|
334
|
+
pm_root: string;
|
|
335
335
|
}
|
|
336
336
|
/** Documents the after command hook context payload exchanged by command, SDK, and package integrations. */
|
|
337
337
|
export interface AfterCommandHookContext extends BeforeCommandHookContext {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
338
|
+
/** Whether the operation completed without a blocking failure. */
|
|
339
|
+
ok: boolean;
|
|
340
|
+
/** Value that configures or reports error for this contract. */
|
|
341
|
+
error?: string;
|
|
342
|
+
/** Value that configures or reports result for this contract. */
|
|
343
|
+
result?: unknown;
|
|
344
|
+
/** Value that configures or reports affected for this contract. */
|
|
345
|
+
affected?: AfterCommandAffectedItem[];
|
|
346
346
|
}
|
|
347
347
|
/** Documents the after command affected item payload exchanged by command, SDK, and package integrations. */
|
|
348
348
|
export interface AfterCommandAffectedItem {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
349
|
+
/** Stable identifier used to reference this record across commands and storage. */
|
|
350
|
+
id: string;
|
|
351
|
+
/** Value that configures or reports op for this contract. */
|
|
352
|
+
op?: string;
|
|
353
|
+
/** Schema type that determines the shape and validation rules for this value. */
|
|
354
|
+
item_type?: string;
|
|
355
|
+
/** Status id the item held before this mutation. */
|
|
356
|
+
previous_status?: ItemStatus;
|
|
357
|
+
/** Lifecycle state reported for status. */
|
|
358
|
+
status?: ItemStatus;
|
|
359
|
+
/** Value that configures or reports previous for this contract. */
|
|
360
|
+
previous?: Partial<ItemMetadata>;
|
|
361
|
+
/** Value that configures or reports current for this contract. */
|
|
362
|
+
current?: Partial<ItemMetadata>;
|
|
363
|
+
/** Value that configures or reports changed fields for this contract. */
|
|
364
|
+
changed_fields?: string[];
|
|
365
365
|
}
|
|
366
366
|
/** Documents the on write hook context payload exchanged by command, SDK, and package integrations. */
|
|
367
367
|
export interface OnWriteHookContext {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
368
|
+
/** Filesystem path used for path resolution. */
|
|
369
|
+
path: string;
|
|
370
|
+
/** Value that configures or reports scope for this contract. */
|
|
371
|
+
scope: "project" | "global";
|
|
372
|
+
/** Value that configures or reports op for this contract. */
|
|
373
|
+
op: string;
|
|
374
|
+
/** Value that configures or reports item id for this contract. */
|
|
375
|
+
item_id?: string;
|
|
376
|
+
/** Schema type that determines the shape and validation rules for this value. */
|
|
377
|
+
item_type?: string;
|
|
378
|
+
/** Value that configures or reports before for this contract. */
|
|
379
|
+
before?: ItemDocument;
|
|
380
|
+
/** Value that configures or reports after for this contract. */
|
|
381
|
+
after?: ItemDocument;
|
|
382
|
+
/** Value that configures or reports changed fields for this contract. */
|
|
383
|
+
changed_fields?: string[];
|
|
384
384
|
}
|
|
385
385
|
/** Read-only tracker services available while an extension evaluates a proposed mutation. */
|
|
386
386
|
export interface ExtensionMutationGuardSdk {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
387
|
+
/** Read one item from the guard's host-bound tracker, or return null when it is absent. */
|
|
388
|
+
get(id: string): Promise<{
|
|
389
|
+
item: ItemMetadata;
|
|
390
|
+
body: string;
|
|
391
|
+
} | null>;
|
|
392
|
+
/** List item metadata from the guard's host-bound tracker. */
|
|
393
|
+
list(): Promise<ItemMetadata[]>;
|
|
394
394
|
}
|
|
395
395
|
/** Proposed item transition supplied before either the item or history artifact is persisted. */
|
|
396
396
|
export interface BeforeMutationHookContext {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
397
|
+
/** Tracker root owning the transaction. */
|
|
398
|
+
pm_root: string;
|
|
399
|
+
/** Stable mutation operation name such as create, update, close, delete, or restore. */
|
|
400
|
+
operation: string;
|
|
401
|
+
/** Canonical item state before the mutation, or null for create. */
|
|
402
|
+
before: ItemDocument | null;
|
|
403
|
+
/** Canonical proposed state after the mutation, or null for delete. */
|
|
404
|
+
after: ItemDocument | null;
|
|
405
|
+
/** Canonical fields the transaction proposes to change. */
|
|
406
|
+
changed_fields: readonly string[];
|
|
407
|
+
/** Host-bound read-only SDK services. */
|
|
408
|
+
sdk: ExtensionMutationGuardSdk;
|
|
409
409
|
}
|
|
410
410
|
/** Stable decision returned by a transactional extension mutation guard. */
|
|
411
411
|
export type BeforeMutationHookDecision = {
|
|
412
|
-
|
|
412
|
+
allow: true;
|
|
413
413
|
} | {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
414
|
+
allow: false;
|
|
415
|
+
code: string;
|
|
416
|
+
message?: string;
|
|
417
|
+
remediation: string;
|
|
418
418
|
};
|
|
419
419
|
/** A fail-closed hook evaluated inside the item lock before persistence. */
|
|
420
420
|
export type BeforeMutationHook = (context: BeforeMutationHookContext) => Promise<BeforeMutationHookDecision | void> | BeforeMutationHookDecision | void;
|
|
421
421
|
/** Documents the on read hook context payload exchanged by command, SDK, and package integrations. */
|
|
422
422
|
export interface OnReadHookContext {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
423
|
+
/** Filesystem path used for path resolution. */
|
|
424
|
+
path: string;
|
|
425
|
+
/** Value that configures or reports scope for this contract. */
|
|
426
|
+
scope: "project" | "global";
|
|
427
427
|
}
|
|
428
428
|
/** Documents the on index hook context payload exchanged by command, SDK, and package integrations. */
|
|
429
429
|
export interface OnIndexHookContext {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
430
|
+
/** Value that configures or reports mode for this contract. */
|
|
431
|
+
mode: string;
|
|
432
|
+
/** Value that configures or reports total items for this contract. */
|
|
433
|
+
total_items?: number;
|
|
434
434
|
}
|
|
435
435
|
/** Restricts before command hook values accepted by command, SDK, and storage contracts. */
|
|
436
436
|
export type BeforeCommandHook = (context: BeforeCommandHookContext) => Promise<void> | void;
|
|
@@ -450,15 +450,15 @@ export type CommandOverride = (context: CommandOverrideContext) => unknown;
|
|
|
450
450
|
export type RendererOverride = (context: RendererOverrideContext) => string | null | undefined;
|
|
451
451
|
/** Host-enforced ownership metadata that limits where a renderer override may run. */
|
|
452
452
|
export interface RendererOverrideOwnership {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
453
|
+
/** Normalized command paths this renderer owns. An unrelated command never reaches the callback. */
|
|
454
|
+
commands?: string[];
|
|
455
|
+
/** Optional result predicate evaluated before the renderer callback. A false result preserves native rendering. */
|
|
456
|
+
resultDiscriminator?: (result: unknown) => boolean;
|
|
457
457
|
}
|
|
458
458
|
/** Declarative renderer definition combining a callback with host-enforced ownership. */
|
|
459
459
|
export interface ScopedRendererOverrideDefinition extends RendererOverrideOwnership {
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
/** Renderer callback invoked only after every declared ownership predicate matches. */
|
|
461
|
+
run: RendererOverride;
|
|
462
462
|
}
|
|
463
463
|
/** Restricts command handler values accepted by command, SDK, and storage contracts. */
|
|
464
464
|
export type CommandHandler = (context: CommandHandlerContext) => unknown;
|
|
@@ -468,255 +468,262 @@ export type ParserOverride = (context: ParserOverrideContext) => ParserOverrideD
|
|
|
468
468
|
export type PreflightOverride = (context: PreflightOverrideContext) => PreflightOverrideDelta | Promise<PreflightOverrideDelta>;
|
|
469
469
|
/** Static ownership declaration used to select and diagnose preflight overrides. */
|
|
470
470
|
export interface PreflightOverrideOwnership {
|
|
471
|
-
|
|
472
|
-
|
|
471
|
+
/** Normalized command paths on which this preflight override may run. */
|
|
472
|
+
commands?: string[];
|
|
473
473
|
}
|
|
474
474
|
/** Declarative preflight override paired with statically inspectable ownership. */
|
|
475
475
|
export interface ScopedPreflightOverrideDefinition extends PreflightOverrideOwnership {
|
|
476
|
-
|
|
477
|
-
|
|
476
|
+
/** Preflight handler invoked only for a declared command, or globally when unscoped. */
|
|
477
|
+
run: PreflightOverride;
|
|
478
478
|
}
|
|
479
479
|
/** Explicitly claims or declines one service payload without relying on object identity. */
|
|
480
480
|
export type ServiceOverrideDecision = {
|
|
481
|
-
|
|
482
|
-
|
|
481
|
+
handled: true;
|
|
482
|
+
result: unknown;
|
|
483
483
|
} | {
|
|
484
|
-
|
|
484
|
+
handled: false;
|
|
485
485
|
};
|
|
486
486
|
/** Restricts service override values accepted by command, SDK, and storage contracts. */
|
|
487
487
|
export type ServiceOverride = (context: ServiceOverrideContext) => unknown | ServiceOverrideDecision;
|
|
488
488
|
/** Host-enforced ownership metadata for a service override. */
|
|
489
489
|
export interface ServiceOverrideOwnership {
|
|
490
|
-
|
|
491
|
-
|
|
490
|
+
/** Declare that the callback may only decline. Any handled result is ignored and diagnosed by the host. */
|
|
491
|
+
passThrough?: boolean;
|
|
492
492
|
}
|
|
493
493
|
/** Documents the registered extension hook payload exchanged by command, SDK, and package integrations. */
|
|
494
494
|
export interface RegisteredExtensionHook<THook> {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
495
|
+
/** Value that configures or reports layer for this contract. */
|
|
496
|
+
layer: ExtensionLayer;
|
|
497
|
+
/** Value that configures or reports name for this contract. */
|
|
498
|
+
name: string;
|
|
499
|
+
/** Value that configures or reports run for this contract. */
|
|
500
|
+
run: THook;
|
|
501
501
|
}
|
|
502
502
|
/** Documents the extension hook registry payload exchanged by command, SDK, and package integrations. */
|
|
503
503
|
export interface ExtensionHookRegistry {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
504
|
+
/** Value that configures or reports before command for this contract. */
|
|
505
|
+
beforeCommand: Array<RegisteredExtensionHook<BeforeCommandHook>>;
|
|
506
|
+
/** Transactional guards fired before item and history persistence. */
|
|
507
|
+
beforeMutation: Array<RegisteredExtensionHook<BeforeMutationHook>>;
|
|
508
|
+
/** Value that configures or reports after command for this contract. */
|
|
509
|
+
afterCommand: Array<RegisteredExtensionHook<AfterCommandHook>>;
|
|
510
|
+
/** Value that configures or reports on write for this contract. */
|
|
511
|
+
onWrite: Array<RegisteredExtensionHook<OnWriteHook>>;
|
|
512
|
+
/** Value that configures or reports on read for this contract. */
|
|
513
|
+
onRead: Array<RegisteredExtensionHook<OnReadHook>>;
|
|
514
|
+
/** Value that configures or reports on index for this contract. */
|
|
515
|
+
onIndex: Array<RegisteredExtensionHook<OnIndexHook>>;
|
|
516
516
|
}
|
|
517
517
|
/** Portable workspace coordinates supplied to every extension runtime surface. */
|
|
518
518
|
export interface PortableWorkspaceContext {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
519
|
+
/** Immutable source workspace root, distinct from a sandboxed tracker root. */
|
|
520
|
+
source_workspace_root?: string;
|
|
521
|
+
/** Source VCS repository root when one can be resolved. */
|
|
522
|
+
repo_root?: string;
|
|
523
|
+
/** POSIX tracker path relative to the source workspace when contained there. */
|
|
524
|
+
pm_root_rel?: string;
|
|
525
525
|
}
|
|
526
526
|
/** Documents the command override context payload exchanged by command, SDK, and package integrations. */
|
|
527
527
|
export interface CommandOverrideContext extends PortableWorkspaceContext {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
528
|
+
/** Value that configures or reports command for this contract. */
|
|
529
|
+
command: string;
|
|
530
|
+
/** Value that configures or reports args for this contract. */
|
|
531
|
+
args: string[];
|
|
532
|
+
/** Value that configures or reports options for this contract. */
|
|
533
|
+
options?: Record<string, unknown>;
|
|
534
|
+
/** Value that configures or reports global for this contract. */
|
|
535
|
+
global?: GlobalOptions;
|
|
536
|
+
/** Value that configures or reports pm root for this contract. */
|
|
537
|
+
pm_root: string;
|
|
538
|
+
/** Value that configures or reports result for this contract. */
|
|
539
|
+
result: unknown;
|
|
540
540
|
}
|
|
541
541
|
/** Documents the renderer override context payload exchanged by command, SDK, and package integrations. */
|
|
542
542
|
export interface RendererOverrideContext extends Partial<PortableWorkspaceContext> {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
543
|
+
/** Value that configures or reports format for this contract. */
|
|
544
|
+
format: OutputRendererFormat;
|
|
545
|
+
/** Value that configures or reports command for this contract. */
|
|
546
|
+
command?: string;
|
|
547
|
+
/** Value that configures or reports args for this contract. */
|
|
548
|
+
args?: string[];
|
|
549
|
+
/** Value that configures or reports options for this contract. */
|
|
550
|
+
options?: Record<string, unknown>;
|
|
551
|
+
/** Value that configures or reports global for this contract. */
|
|
552
|
+
global?: GlobalOptions;
|
|
553
|
+
/** Value that configures or reports pm root for this contract. */
|
|
554
|
+
pm_root?: string;
|
|
555
|
+
/** Value that configures or reports result for this contract. */
|
|
556
|
+
result: unknown;
|
|
557
557
|
}
|
|
558
558
|
/** Documents the command handler context payload exchanged by command, SDK, and package integrations. */
|
|
559
559
|
export interface CommandHandlerContext extends PortableWorkspaceContext {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
560
|
+
/** Value that configures or reports command for this contract. */
|
|
561
|
+
command: string;
|
|
562
|
+
/** Value that configures or reports args for this contract. */
|
|
563
|
+
args: string[];
|
|
564
|
+
/** Value that configures or reports options for this contract. */
|
|
565
|
+
options: Record<string, unknown>;
|
|
566
|
+
/** Value that configures or reports global for this contract. */
|
|
567
|
+
global: GlobalOptions;
|
|
568
|
+
/** Value that configures or reports pm root for this contract. */
|
|
569
|
+
pm_root: string;
|
|
570
|
+
/** Host-bound SDK runtime that avoids package-resolution and private-import coupling. */
|
|
571
|
+
sdk?: ExtensionCommandSdk;
|
|
572
572
|
}
|
|
573
573
|
/** Runtime SDK services injected into every extension command invocation. */
|
|
574
574
|
export interface ExtensionCommandSdk {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
575
|
+
/** Tracker-bound client using the invocation author and workspace. */
|
|
576
|
+
client: PmClient;
|
|
577
|
+
/** Classify a host-native or structurally compatible missing-item error. */
|
|
578
|
+
isItemNotFoundError(error: unknown): boolean;
|
|
579
|
+
/** Reconstruct one item at a history version or timestamp. */
|
|
580
|
+
getItemAt(id: string, target: string): Promise<GetItemAtResult>;
|
|
581
|
+
/** Open a durable event store with package-contributed relationship semantics. */
|
|
582
|
+
openRelationshipEventStore(options: {
|
|
583
|
+
nodes: Iterable<string>;
|
|
584
|
+
definitions: readonly RelationshipKindDefinition[];
|
|
585
|
+
relativePath?: string;
|
|
586
|
+
}): Promise<RelationshipEventStore>;
|
|
587
|
+
/** Materialize a validated in-memory graph without resolving the SDK package at runtime. */
|
|
588
|
+
createRelationshipGraph(options: {
|
|
589
|
+
nodes: Iterable<string>;
|
|
590
|
+
edges: Iterable<RelationshipEdge>;
|
|
591
|
+
definitions: readonly RelationshipKindDefinition[];
|
|
592
|
+
}): RelationshipGraph;
|
|
593
|
+
/** Compute bounded exact impact through the host-owned relationship runtime. */
|
|
594
|
+
analyzeRelationshipImpact(graph: RelationshipGraph, root: string, options?: RelationshipQueryOptions): RelationshipImpactAnalysis;
|
|
595
|
+
/** Validate an immutable relationship event batch without persisting it. */
|
|
596
|
+
validateRelationshipEvents(options: {
|
|
597
|
+
nodes: Iterable<string>;
|
|
598
|
+
definitions: readonly RelationshipKindDefinition[];
|
|
599
|
+
events: readonly RelationshipEventInput[];
|
|
600
|
+
}): RelationshipEvent[];
|
|
601
|
+
/** Commit idempotent item and relationship mutations under one durable journal. */
|
|
602
|
+
commitWorkspaceTransaction(options: Omit<CommitWorkspaceTransactionOptions, "pmRoot">): Promise<WorkspaceTransactionCommitResult>;
|
|
603
|
+
/** Mutate governed project settings under the host's workspace audit lock. */
|
|
604
|
+
mutateWorkspaceSettings(options: {
|
|
605
|
+
/** Stable identity for replay-safe retries of this invocation. */
|
|
606
|
+
operationId: string;
|
|
607
|
+
/** Compute a preview without changing settings or workspace history. */
|
|
608
|
+
dryRun?: boolean;
|
|
609
|
+
/** Include the canonical inline settings tree; omit by default to bound receipts. */
|
|
610
|
+
includePreview?: boolean;
|
|
611
|
+
/** Replace these dot-delimited inline object subtrees, removing omitted raw keys while preserving all other source fields. */
|
|
612
|
+
replaceSubtrees?: readonly string[];
|
|
613
|
+
/** Derive the complete next settings tree from normalized inline settings at lock time. */
|
|
614
|
+
mutate: (current: PmSettings) => PmSettings | Promise<PmSettings>;
|
|
615
|
+
}): Promise<{
|
|
616
|
+
/** Whether the locked settings bytes would change, or did change on apply. */
|
|
617
|
+
changed: boolean;
|
|
618
|
+
/** Whether persistence was suppressed for this invocation. */
|
|
619
|
+
dry_run: boolean;
|
|
620
|
+
/** Whether the operation was already committed and the callback was skipped. */
|
|
621
|
+
replayed: boolean;
|
|
622
|
+
/** Settings resolved from the exact persisted bytes, before optional file-backed schema overlays. Absent on replay. */
|
|
623
|
+
preview?: PmSettings;
|
|
624
|
+
}>;
|
|
625
625
|
}
|
|
626
626
|
/** Documents the parser override context payload exchanged by command, SDK, and package integrations. */
|
|
627
627
|
export type ParserOverrideContext = CommandHandlerContext;
|
|
628
628
|
/** Documents the parser override delta payload exchanged by command, SDK, and package integrations. */
|
|
629
629
|
export interface ParserOverrideDelta {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
630
|
+
/** Value that configures or reports args for this contract. */
|
|
631
|
+
args?: string[];
|
|
632
|
+
/** Value that configures or reports options for this contract. */
|
|
633
|
+
options?: Record<string, unknown>;
|
|
634
|
+
/** Value that configures or reports global for this contract. */
|
|
635
|
+
global?: GlobalOptions;
|
|
636
636
|
}
|
|
637
637
|
/** Documents the preflight override context payload exchanged by command, SDK, and package integrations. */
|
|
638
638
|
export interface PreflightOverrideContext extends CommandHandlerContext {
|
|
639
|
-
|
|
640
|
-
|
|
639
|
+
/** Value that configures or reports decision for this contract. */
|
|
640
|
+
decision: PreflightRuntimeDecision;
|
|
641
641
|
}
|
|
642
642
|
/** Documents the preflight runtime decision payload exchanged by command, SDK, and package integrations. */
|
|
643
643
|
export interface PreflightRuntimeDecision {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
644
|
+
/** Value that configures or reports enforce item format gate for this contract. */
|
|
645
|
+
enforce_item_format_gate: boolean;
|
|
646
|
+
/** Executes the preflight item format sync operation through the package runtime. */
|
|
647
|
+
run_preflight_item_format_sync: boolean;
|
|
648
|
+
/** Executes the extension migrations operation through the package runtime. */
|
|
649
|
+
run_extension_migrations: boolean;
|
|
650
|
+
/** Value that configures or reports enforce mandatory migration gate for this contract. */
|
|
651
|
+
enforce_mandatory_migration_gate: boolean;
|
|
652
652
|
}
|
|
653
653
|
/** Documents the preflight override delta payload exchanged by command, SDK, and package integrations. */
|
|
654
654
|
export interface PreflightOverrideDelta extends ParserOverrideDelta {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
655
|
+
/** Value that configures or reports enforce item format gate for this contract. */
|
|
656
|
+
enforce_item_format_gate?: boolean;
|
|
657
|
+
/** Executes the preflight item format sync operation through the package runtime. */
|
|
658
|
+
run_preflight_item_format_sync?: boolean;
|
|
659
|
+
/** Executes the extension migrations operation through the package runtime. */
|
|
660
|
+
run_extension_migrations?: boolean;
|
|
661
|
+
/** Value that configures or reports enforce mandatory migration gate for this contract. */
|
|
662
|
+
enforce_mandatory_migration_gate?: boolean;
|
|
663
663
|
}
|
|
664
664
|
/** Documents the service override context payload exchanged by command, SDK, and package integrations. */
|
|
665
665
|
export interface ServiceOverrideContext extends Partial<PortableWorkspaceContext> {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
666
|
+
/** Value that configures or reports service for this contract. */
|
|
667
|
+
service: ExtensionServiceName;
|
|
668
|
+
/** Value that configures or reports command for this contract. */
|
|
669
|
+
command?: string;
|
|
670
|
+
/** Value that configures or reports args for this contract. */
|
|
671
|
+
args?: string[];
|
|
672
|
+
/** Value that configures or reports options for this contract. */
|
|
673
|
+
options?: Record<string, unknown>;
|
|
674
|
+
/** Value that configures or reports global for this contract. */
|
|
675
|
+
global?: GlobalOptions;
|
|
676
|
+
/** Value that configures or reports pm root for this contract. */
|
|
677
|
+
pm_root?: string;
|
|
678
|
+
/** Value that configures or reports payload for this contract. */
|
|
679
|
+
payload: unknown;
|
|
680
680
|
}
|
|
681
681
|
/** Documents the extension command argument definition payload exchanged by command, SDK, and package integrations. */
|
|
682
682
|
export interface ExtensionCommandArgumentDefinition {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
683
|
+
/** Value that configures or reports name for this contract. */
|
|
684
|
+
name: string;
|
|
685
|
+
/** Value that configures or reports required for this contract. */
|
|
686
|
+
required?: boolean;
|
|
687
|
+
/** Value that configures or reports variadic for this contract. */
|
|
688
|
+
variadic?: boolean;
|
|
689
|
+
/** Value that configures or reports description for this contract. */
|
|
690
|
+
description?: string;
|
|
691
691
|
}
|
|
692
692
|
/** Documents the command definition payload exchanged by command, SDK, and package integrations. */
|
|
693
693
|
export interface CommandDefinition {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
694
|
+
/** Opt a read-only handler into host projection, row bounds, budgets and continuation. */
|
|
695
|
+
read_output?: ExtensionCommandReadOutput;
|
|
696
|
+
/** Value that configures or reports name for this contract. */
|
|
697
|
+
name: string;
|
|
698
|
+
/** Value that configures or reports run for this contract. */
|
|
699
|
+
run?: CommandHandler;
|
|
700
|
+
/**
|
|
699
701
|
* @deprecated Use `run` instead. This alias remains for backward compatibility.
|
|
700
702
|
*/
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
703
|
+
handler?: CommandHandler;
|
|
704
|
+
/** Value that configures or reports action for this contract. */
|
|
705
|
+
action?: string;
|
|
706
|
+
/** Value that configures or reports description for this contract. */
|
|
707
|
+
description?: string;
|
|
708
|
+
/** Value that configures or reports intent for this contract. */
|
|
709
|
+
intent?: string;
|
|
710
|
+
/** Value that configures or reports examples for this contract. */
|
|
711
|
+
examples?: string[];
|
|
712
|
+
/** Value that configures or reports failure hints for this contract. */
|
|
713
|
+
failure_hints?: string[];
|
|
714
|
+
/** Value that configures or reports arguments for this contract. */
|
|
715
|
+
arguments?: ExtensionCommandArgumentDefinition[];
|
|
716
|
+
/** Value that configures or reports flags for this contract. */
|
|
717
|
+
flags?: FlagDefinition[];
|
|
718
|
+
/** Minimum agent surface tier that should advertise this command. */
|
|
719
|
+
tier?: "core" | "standard" | "full" | "internal";
|
|
720
|
+
/** Capability family used by generated agent routing surfaces. */
|
|
721
|
+
family?: ExtensionCommandCapabilityFamily;
|
|
722
|
+
}
|
|
723
|
+
/** Structured rows a read-only extension command returns for host output shaping. */
|
|
724
|
+
export interface ExtensionCommandReadOutput {
|
|
725
|
+
/** Dot-delimited array or object-map paths; an empty list declares a singleton result. */
|
|
726
|
+
row_keys: readonly string[];
|
|
720
727
|
}
|
|
721
728
|
/**
|
|
722
729
|
* Optional command-definition metadata for first-class importer/exporter
|
|
@@ -731,197 +738,197 @@ export interface CommandDefinition {
|
|
|
731
738
|
* they are not part of this options object.
|
|
732
739
|
*/
|
|
733
740
|
export interface ImportExportRegistrationOptions {
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
741
|
+
/** Value that configures or reports action for this contract. */
|
|
742
|
+
action?: string;
|
|
743
|
+
/** Value that configures or reports description for this contract. */
|
|
744
|
+
description?: string;
|
|
745
|
+
/** Value that configures or reports intent for this contract. */
|
|
746
|
+
intent?: string;
|
|
747
|
+
/** Value that configures or reports examples for this contract. */
|
|
748
|
+
examples?: string[];
|
|
749
|
+
/** Value that configures or reports failure hints for this contract. */
|
|
750
|
+
failure_hints?: string[];
|
|
751
|
+
/** Value that configures or reports arguments for this contract. */
|
|
752
|
+
arguments?: ExtensionCommandArgumentDefinition[];
|
|
753
|
+
/** Value that configures or reports flags for this contract. */
|
|
754
|
+
flags?: FlagDefinition[];
|
|
748
755
|
}
|
|
749
756
|
/**
|
|
750
757
|
* Declares where an exporter writes its artifact and whether the host may
|
|
751
758
|
* render the returned structured receipt after the exporter completes.
|
|
752
759
|
*/
|
|
753
760
|
export type ExporterArtifactOutputContract = {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
761
|
+
/** Stdout exclusively carries artifact bytes. */
|
|
762
|
+
channel: "stdout";
|
|
763
|
+
/** Stdout artifacts cannot opt back into host rendering. */
|
|
764
|
+
receipt?: "suppress";
|
|
765
|
+
/** Optional IANA media type describing the emitted artifact. */
|
|
766
|
+
media_type?: string;
|
|
760
767
|
} | {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
768
|
+
/** The exporter writes its artifact to a file. */
|
|
769
|
+
channel: "file";
|
|
770
|
+
/** File exporters may render or suppress their bounded receipt. */
|
|
771
|
+
receipt?: "suppress" | "render";
|
|
772
|
+
/** Optional IANA media type describing the emitted artifact. */
|
|
773
|
+
media_type?: string;
|
|
767
774
|
};
|
|
768
775
|
/** Exporter command metadata plus its optional artifact-delivery contract. */
|
|
769
776
|
export interface ExporterRegistrationOptions extends ImportExportRegistrationOptions {
|
|
770
|
-
|
|
771
|
-
|
|
777
|
+
/** Declaration for artifact bytes and the host receipt. */
|
|
778
|
+
output?: ExporterArtifactOutputContract;
|
|
772
779
|
}
|
|
773
780
|
/** Fully normalized exporter artifact contract stored in inventories. */
|
|
774
781
|
export interface RegisteredExporterArtifactOutputContract {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
782
|
+
/** Destination carrying the artifact bytes. */
|
|
783
|
+
channel: "stdout" | "file";
|
|
784
|
+
/** Explicit host receipt policy after normalization. */
|
|
785
|
+
receipt: "suppress" | "render";
|
|
786
|
+
/** Optional IANA media type describing the emitted artifact. */
|
|
787
|
+
media_type?: string;
|
|
781
788
|
}
|
|
782
789
|
/** Restricts flag value type values accepted by command, SDK, and storage contracts. */
|
|
783
790
|
export type FlagValueType = "string" | "number" | "boolean";
|
|
784
791
|
/** Documents the flag definition payload exchanged by command, SDK, and package integrations. */
|
|
785
792
|
export interface FlagDefinition {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
793
|
+
/** Value that configures or reports long for this contract. */
|
|
794
|
+
long?: string;
|
|
795
|
+
/** Value that configures or reports short for this contract. */
|
|
796
|
+
short?: string;
|
|
797
|
+
/** Value that configures or reports value name for this contract. */
|
|
798
|
+
value_name?: string;
|
|
799
|
+
/** Value that configures or reports description for this contract. */
|
|
800
|
+
description?: string;
|
|
801
|
+
/** Value that configures or reports required for this contract. */
|
|
802
|
+
required?: boolean;
|
|
803
|
+
/** Whether enabled applies to this operation. */
|
|
804
|
+
enabled?: boolean;
|
|
805
|
+
/** Value that configures or reports visible for this contract. */
|
|
806
|
+
visible?: boolean;
|
|
807
|
+
/** Canonical flag value type. Prefer this field; it is the one runtime contracts and help output read first. */
|
|
808
|
+
value_type?: FlagValueType;
|
|
809
|
+
/**
|
|
803
810
|
* @deprecated Use `value_type`. Retained for backward compatibility: when
|
|
804
811
|
* both are present `value_type` wins, and `type` resolves only when
|
|
805
812
|
* `value_type` is absent (`value_type ?? type`).
|
|
806
813
|
*/
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
+
type?: FlagValueType;
|
|
815
|
+
/** When true, a repeated comma-list flag accumulates values across repeats — parity with core list flags such as `--tags` — instead of the last value winning. Mirrors the core `CliFlagContract.list` field so extension-registered list flags coalesce through the same bootstrap path. */
|
|
816
|
+
list?: boolean;
|
|
817
|
+
/** 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. */
|
|
818
|
+
repeatable?: boolean;
|
|
819
|
+
/** 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. */
|
|
820
|
+
default?: string | number | boolean | Array<string | number | boolean>;
|
|
814
821
|
}
|
|
815
822
|
/** Documents the schema field definition payload exchanged by command, SDK, and package integrations. */
|
|
816
823
|
export interface SchemaFieldDefinition {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
824
|
+
/** Value that configures or reports name for this contract. */
|
|
825
|
+
name: string;
|
|
826
|
+
/** Canonical persisted field type shared with `pm schema add-field`. */
|
|
827
|
+
type: KnownItemFieldType;
|
|
828
|
+
/** Value that configures or reports optional for this contract. */
|
|
829
|
+
optional?: boolean;
|
|
830
|
+
/** Default metadata value applied when the field is absent. */
|
|
831
|
+
default?: unknown;
|
|
832
|
+
/** Optional allow-list of accepted metadata values. */
|
|
833
|
+
values?: unknown[];
|
|
827
834
|
}
|
|
828
835
|
/** Documents the schema item type command option policy definition payload exchanged by command, SDK, and package integrations. */
|
|
829
836
|
export interface SchemaItemTypeCommandOptionPolicyDefinition {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
837
|
+
/** Value that configures or reports command for this contract. */
|
|
838
|
+
command: string;
|
|
839
|
+
/** Value that configures or reports option for this contract. */
|
|
840
|
+
option: string;
|
|
841
|
+
/** Whether enabled applies to this operation. */
|
|
842
|
+
enabled?: boolean;
|
|
843
|
+
/** Value that configures or reports required for this contract. */
|
|
844
|
+
required?: boolean;
|
|
845
|
+
/** Value that configures or reports visible for this contract. */
|
|
846
|
+
visible?: boolean;
|
|
840
847
|
}
|
|
841
848
|
/** Documents the schema item type option definition payload exchanged by command, SDK, and package integrations. */
|
|
842
849
|
export interface SchemaItemTypeOptionDefinition {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
850
|
+
/** Value that configures or reports key for this contract. */
|
|
851
|
+
key: string;
|
|
852
|
+
/** Value that configures or reports values for this contract. */
|
|
853
|
+
values?: string[];
|
|
854
|
+
/** Value that configures or reports required for this contract. */
|
|
855
|
+
required?: boolean;
|
|
856
|
+
/** Value that configures or reports aliases for this contract. */
|
|
857
|
+
aliases?: string[];
|
|
851
858
|
}
|
|
852
859
|
/** Documents the schema item type definition payload exchanged by command, SDK, and package integrations. */
|
|
853
860
|
export interface SchemaItemTypeDefinition {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
861
|
+
/** Value that configures or reports name for this contract. */
|
|
862
|
+
name: string;
|
|
863
|
+
/** Value that configures or reports folder for this contract. */
|
|
864
|
+
folder?: string;
|
|
865
|
+
/** Value that configures or reports aliases for this contract. */
|
|
866
|
+
aliases?: string[];
|
|
867
|
+
/** Human-readable description of the contributed item type. */
|
|
868
|
+
description?: string;
|
|
869
|
+
/** Initial status assigned when the contributed item type is created. */
|
|
870
|
+
default_status?: string;
|
|
871
|
+
/** Dispatch role inherited by next, context, and automatic claims. Gates track outcomes; human roles require decisions. */
|
|
872
|
+
execution_role?: "agent" | "human" | "gate";
|
|
873
|
+
/** Value that configures or reports required create fields for this contract. */
|
|
874
|
+
required_create_fields?: string[];
|
|
875
|
+
/** Value that configures or reports required create repeatables for this contract. */
|
|
876
|
+
required_create_repeatables?: string[];
|
|
877
|
+
/** Value that configures or reports command option policies for this contract. */
|
|
878
|
+
command_option_policies?: SchemaItemTypeCommandOptionPolicyDefinition[];
|
|
879
|
+
/** Value that configures or reports options for this contract. */
|
|
880
|
+
options?: SchemaItemTypeOptionDefinition[];
|
|
881
|
+
[key: string]: unknown;
|
|
875
882
|
}
|
|
876
883
|
/** Documents the schema migration run context payload exchanged by command, SDK, and package integrations. */
|
|
877
884
|
export interface SchemaMigrationRunContext {
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
885
|
+
/** Stable identifier used to reference this record across commands and storage. */
|
|
886
|
+
id: string;
|
|
887
|
+
/** Value that configures or reports command for this contract. */
|
|
888
|
+
command: "migration";
|
|
889
|
+
/** Value that configures or reports layer for this contract. */
|
|
890
|
+
layer: ExtensionLayer;
|
|
891
|
+
/** Value that configures or reports extension for this contract. */
|
|
892
|
+
extension: string;
|
|
893
|
+
/** Value that configures or reports pm root for this contract. */
|
|
894
|
+
pm_root: string;
|
|
895
|
+
/** Lifecycle state reported for status. */
|
|
896
|
+
status: string;
|
|
890
897
|
}
|
|
891
898
|
/** Restricts schema migration runner values accepted by command, SDK, and storage contracts. */
|
|
892
899
|
export type SchemaMigrationRunner = (context: SchemaMigrationRunContext) => unknown | Promise<unknown>;
|
|
893
900
|
/** Documents the schema migration definition payload exchanged by command, SDK, and package integrations. */
|
|
894
901
|
export interface SchemaMigrationDefinition {
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
902
|
+
/** Stable identifier used to reference this record across commands and storage. */
|
|
903
|
+
id?: string;
|
|
904
|
+
/** Value that configures or reports description for this contract. */
|
|
905
|
+
description?: string;
|
|
906
|
+
/** Lifecycle state reported for status. */
|
|
907
|
+
status?: string;
|
|
908
|
+
/** Value that configures or reports mandatory for this contract. */
|
|
909
|
+
mandatory?: boolean;
|
|
910
|
+
/** Value that configures or reports run for this contract. */
|
|
911
|
+
run?: SchemaMigrationRunner;
|
|
912
|
+
[key: string]: unknown;
|
|
906
913
|
}
|
|
907
914
|
/** Documents the import export context payload exchanged by command, SDK, and package integrations. */
|
|
908
915
|
export interface ImportExportContext extends PortableWorkspaceContext {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
916
|
+
/** Value that configures or reports registration for this contract. */
|
|
917
|
+
registration: string;
|
|
918
|
+
/** Value that configures or reports action for this contract. */
|
|
919
|
+
action: "import" | "export";
|
|
920
|
+
/** Value that configures or reports command for this contract. */
|
|
921
|
+
command: string;
|
|
922
|
+
/** Value that configures or reports args for this contract. */
|
|
923
|
+
args: string[];
|
|
924
|
+
/** Value that configures or reports options for this contract. */
|
|
925
|
+
options: Record<string, unknown>;
|
|
926
|
+
/** Value that configures or reports global for this contract. */
|
|
927
|
+
global: GlobalOptions;
|
|
928
|
+
/** Value that configures or reports pm root for this contract. */
|
|
929
|
+
pm_root: string;
|
|
930
|
+
/** Host-bound SDK runtime for composing PM actions without spawning the CLI. */
|
|
931
|
+
sdk?: ExtensionCommandSdk;
|
|
925
932
|
}
|
|
926
933
|
/** Restricts importer values accepted by command, SDK, and storage contracts. */
|
|
927
934
|
export type Importer = (context: ImportExportContext) => unknown | Promise<unknown>;
|
|
@@ -931,472 +938,474 @@ export type Exporter = (context: ImportExportContext) => unknown | Promise<unkno
|
|
|
931
938
|
export type ExtensionSearchMode = "keyword" | "semantic" | "hybrid";
|
|
932
939
|
/** Documents the search provider query context payload exchanged by command, SDK, and package integrations. */
|
|
933
940
|
export interface SearchProviderQueryContext {
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
941
|
+
/** Value that configures or reports query for this contract. */
|
|
942
|
+
query: string;
|
|
943
|
+
/** Value that configures or reports mode for this contract. */
|
|
944
|
+
mode: ExtensionSearchMode;
|
|
945
|
+
/** Value that configures or reports tokens for this contract. */
|
|
946
|
+
tokens: string[];
|
|
947
|
+
/** Value that configures or reports options for this contract. */
|
|
948
|
+
options: Record<string, unknown>;
|
|
949
|
+
/** Value that configures or reports settings for this contract. */
|
|
950
|
+
settings: PmSettings;
|
|
951
|
+
/** Value that configures or reports documents for this contract. */
|
|
952
|
+
documents: ItemDocument[];
|
|
953
|
+
[key: string]: unknown;
|
|
947
954
|
}
|
|
948
955
|
/** Documents the search provider hit payload exchanged by command, SDK, and package integrations. */
|
|
949
956
|
export interface SearchProviderHit {
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
+
/** Stable identifier used to reference this record across commands and storage. */
|
|
958
|
+
id: string;
|
|
959
|
+
/** Value that configures or reports score for this contract. */
|
|
960
|
+
score: number;
|
|
961
|
+
/** Value that configures or reports matched fields for this contract. */
|
|
962
|
+
matched_fields?: string[];
|
|
963
|
+
[key: string]: unknown;
|
|
957
964
|
}
|
|
958
965
|
/** Restricts search provider query result values accepted by command, SDK, and storage contracts. */
|
|
959
966
|
export type SearchProviderQueryResult = SearchProviderHit[] | {
|
|
960
|
-
|
|
967
|
+
hits?: SearchProviderHit[];
|
|
961
968
|
};
|
|
962
969
|
/** Documents the search provider query expansion context payload exchanged by command, SDK, and package integrations. */
|
|
963
970
|
export interface SearchProviderQueryExpansionContext {
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
+
/** Value that configures or reports query for this contract. */
|
|
972
|
+
query: string;
|
|
973
|
+
/** Value that configures or reports mode for this contract. */
|
|
974
|
+
mode: Exclude<ExtensionSearchMode, "keyword">;
|
|
975
|
+
/** Value that configures or reports settings for this contract. */
|
|
976
|
+
settings: PmSettings;
|
|
977
|
+
[key: string]: unknown;
|
|
971
978
|
}
|
|
972
979
|
/** Restricts search provider query expansion result values accepted by command, SDK, and storage contracts. */
|
|
973
980
|
export type SearchProviderQueryExpansionResult = string[] | {
|
|
974
|
-
|
|
981
|
+
queries?: string[];
|
|
975
982
|
};
|
|
976
983
|
/** Documents the search provider rerank candidate payload exchanged by command, SDK, and package integrations. */
|
|
977
984
|
export interface SearchProviderRerankCandidate {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
985
|
+
/** Stable identifier used to reference this record across commands and storage. */
|
|
986
|
+
id: string;
|
|
987
|
+
/** Value that configures or reports text for this contract. */
|
|
988
|
+
text: string;
|
|
989
|
+
/** Value that configures or reports score for this contract. */
|
|
990
|
+
score: number;
|
|
984
991
|
}
|
|
985
992
|
/** Documents the search provider rerank hit payload exchanged by command, SDK, and package integrations. */
|
|
986
993
|
export interface SearchProviderRerankHit {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
994
|
+
/** Stable identifier used to reference this record across commands and storage. */
|
|
995
|
+
id: string;
|
|
996
|
+
/** Value that configures or reports score for this contract. */
|
|
997
|
+
score: number;
|
|
991
998
|
}
|
|
992
999
|
/** Restricts search provider rerank result values accepted by command, SDK, and storage contracts. */
|
|
993
1000
|
export type SearchProviderRerankResult = SearchProviderRerankHit[] | {
|
|
994
|
-
|
|
1001
|
+
hits?: SearchProviderRerankHit[];
|
|
995
1002
|
};
|
|
996
1003
|
/** Documents the search provider rerank context payload exchanged by command, SDK, and package integrations. */
|
|
997
1004
|
export interface SearchProviderRerankContext {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1005
|
+
/** Value that configures or reports query for this contract. */
|
|
1006
|
+
query: string;
|
|
1007
|
+
/** Value that configures or reports mode for this contract. */
|
|
1008
|
+
mode: "hybrid";
|
|
1009
|
+
/** Value that configures or reports model for this contract. */
|
|
1010
|
+
model: string;
|
|
1011
|
+
/** Value that configures or reports top k for this contract. */
|
|
1012
|
+
top_k: number;
|
|
1013
|
+
/** Value that configures or reports settings for this contract. */
|
|
1014
|
+
settings: PmSettings;
|
|
1015
|
+
/** Value that configures or reports candidates for this contract. */
|
|
1016
|
+
candidates: SearchProviderRerankCandidate[];
|
|
1017
|
+
[key: string]: unknown;
|
|
1011
1018
|
}
|
|
1012
1019
|
/** Documents the search provider embed batch context payload exchanged by command, SDK, and package integrations. */
|
|
1013
1020
|
export interface SearchProviderEmbedBatchContext {
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
+
/** Value that configures or reports inputs for this contract. */
|
|
1022
|
+
inputs: string[];
|
|
1023
|
+
/** Value that configures or reports settings for this contract. */
|
|
1024
|
+
settings: PmSettings;
|
|
1025
|
+
/** Value that configures or reports model for this contract. */
|
|
1026
|
+
model: string;
|
|
1027
|
+
[key: string]: unknown;
|
|
1021
1028
|
}
|
|
1022
1029
|
/** Documents the search provider embed context payload exchanged by command, SDK, and package integrations. */
|
|
1023
1030
|
export interface SearchProviderEmbedContext {
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
+
/** Value that configures or reports input for this contract. */
|
|
1032
|
+
input: string;
|
|
1033
|
+
/** Value that configures or reports settings for this contract. */
|
|
1034
|
+
settings: PmSettings;
|
|
1035
|
+
/** Value that configures or reports model for this contract. */
|
|
1036
|
+
model: string;
|
|
1037
|
+
[key: string]: unknown;
|
|
1031
1038
|
}
|
|
1032
1039
|
/** Documents the search provider definition payload exchanged by command, SDK, and package integrations. */
|
|
1033
1040
|
export interface SearchProviderDefinition {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1041
|
+
/** Value that configures or reports name for this contract. */
|
|
1042
|
+
name: string;
|
|
1043
|
+
/** Value that configures or reports query for this contract. */
|
|
1044
|
+
query?: (context: SearchProviderQueryContext) => SearchProviderQueryResult | Promise<SearchProviderQueryResult>;
|
|
1045
|
+
/** Value that configures or reports query expansion for this contract. */
|
|
1046
|
+
queryExpansion?: (context: SearchProviderQueryExpansionContext) => SearchProviderQueryExpansionResult | Promise<SearchProviderQueryExpansionResult>;
|
|
1047
|
+
/** Value that configures or reports query expansion for this contract. */
|
|
1048
|
+
query_expansion?: (context: SearchProviderQueryExpansionContext) => SearchProviderQueryExpansionResult | Promise<SearchProviderQueryExpansionResult>;
|
|
1049
|
+
/** Value that configures or reports rerank for this contract. */
|
|
1050
|
+
rerank?: (context: SearchProviderRerankContext) => SearchProviderRerankResult | Promise<SearchProviderRerankResult>;
|
|
1051
|
+
/** Value that configures or reports embed batch for this contract. */
|
|
1052
|
+
embedBatch?: (context: SearchProviderEmbedBatchContext) => number[][] | Promise<number[][]>;
|
|
1053
|
+
/** Value that configures or reports embed batch for this contract. */
|
|
1054
|
+
embed_batch?: (context: SearchProviderEmbedBatchContext) => number[][] | Promise<number[][]>;
|
|
1055
|
+
/** Value that configures or reports embed for this contract. */
|
|
1056
|
+
embed?: (context: SearchProviderEmbedContext) => number[] | Promise<number[]>;
|
|
1057
|
+
[key: string]: unknown;
|
|
1051
1058
|
}
|
|
1052
1059
|
/** Documents the vector store query hit payload exchanged by command, SDK, and package integrations. */
|
|
1053
1060
|
export interface VectorStoreQueryHit {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
+
/** Stable identifier used to reference this record across commands and storage. */
|
|
1062
|
+
id: string;
|
|
1063
|
+
/** Value that configures or reports score for this contract. */
|
|
1064
|
+
score: number;
|
|
1065
|
+
/** Value that configures or reports payload for this contract. */
|
|
1066
|
+
payload?: Record<string, unknown>;
|
|
1067
|
+
[key: string]: unknown;
|
|
1061
1068
|
}
|
|
1062
1069
|
/** Documents the vector store query context payload exchanged by command, SDK, and package integrations. */
|
|
1063
1070
|
export interface VectorStoreQueryContext {
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
+
/** Value that configures or reports vector for this contract. */
|
|
1072
|
+
vector: number[];
|
|
1073
|
+
/** Value that configures or reports limit for this contract. */
|
|
1074
|
+
limit: number;
|
|
1075
|
+
/** Value that configures or reports settings for this contract. */
|
|
1076
|
+
settings: PmSettings;
|
|
1077
|
+
[key: string]: unknown;
|
|
1071
1078
|
}
|
|
1072
1079
|
/** Documents the vector store upsert point payload exchanged by command, SDK, and package integrations. */
|
|
1073
1080
|
export interface VectorStoreUpsertPoint {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
+
/** Stable identifier used to reference this record across commands and storage. */
|
|
1082
|
+
id: string;
|
|
1083
|
+
/** Value that configures or reports vector for this contract. */
|
|
1084
|
+
vector: number[];
|
|
1085
|
+
/** Value that configures or reports payload for this contract. */
|
|
1086
|
+
payload?: Record<string, unknown>;
|
|
1087
|
+
[key: string]: unknown;
|
|
1081
1088
|
}
|
|
1082
1089
|
/** Documents the vector store upsert context payload exchanged by command, SDK, and package integrations. */
|
|
1083
1090
|
export interface VectorStoreUpsertContext {
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1091
|
+
/** Value that configures or reports points for this contract. */
|
|
1092
|
+
points: VectorStoreUpsertPoint[];
|
|
1093
|
+
/** Value that configures or reports settings for this contract. */
|
|
1094
|
+
settings: PmSettings;
|
|
1095
|
+
[key: string]: unknown;
|
|
1089
1096
|
}
|
|
1090
1097
|
/** Documents the vector store delete context payload exchanged by command, SDK, and package integrations. */
|
|
1091
1098
|
export interface VectorStoreDeleteContext {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1099
|
+
/** Value that configures or reports ids for this contract. */
|
|
1100
|
+
ids: string[];
|
|
1101
|
+
/** Value that configures or reports settings for this contract. */
|
|
1102
|
+
settings: PmSettings;
|
|
1103
|
+
[key: string]: unknown;
|
|
1097
1104
|
}
|
|
1098
1105
|
/** Documents the vector store adapter definition payload exchanged by command, SDK, and package integrations. */
|
|
1099
1106
|
export interface VectorStoreAdapterDefinition {
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1107
|
+
/** Value that configures or reports name for this contract. */
|
|
1108
|
+
name: string;
|
|
1109
|
+
/** Value that configures or reports query for this contract. */
|
|
1110
|
+
query?: (context: VectorStoreQueryContext) => VectorStoreQueryHit[] | Promise<VectorStoreQueryHit[]>;
|
|
1111
|
+
/** Value that configures or reports upsert for this contract. */
|
|
1112
|
+
upsert?: (context: VectorStoreUpsertContext) => unknown | Promise<unknown>;
|
|
1113
|
+
/** Value that configures or reports delete for this contract. */
|
|
1114
|
+
delete?: (context: VectorStoreDeleteContext) => unknown | Promise<unknown>;
|
|
1115
|
+
[key: string]: unknown;
|
|
1109
1116
|
}
|
|
1110
1117
|
/** Cost classes let lifecycle gates reject expensive provider work before invoking it. */
|
|
1111
1118
|
export type AssuranceMeasurementProviderCostClass = "low" | "medium" | "high";
|
|
1112
1119
|
/** JSON-compatible parameter contract for one provider measurement key. */
|
|
1113
1120
|
export interface AssuranceMeasurementProviderParameterDefinition {
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1121
|
+
/** Parameter value kind. */
|
|
1122
|
+
type: "string" | "number" | "boolean";
|
|
1123
|
+
/** Whether callers must supply the parameter. */
|
|
1124
|
+
required?: boolean;
|
|
1125
|
+
/** Human-readable parameter intent. */
|
|
1126
|
+
description?: string;
|
|
1120
1127
|
}
|
|
1121
1128
|
/** Serializable schema for one measurement key owned by a provider. */
|
|
1122
1129
|
export interface AssuranceMeasurementProviderKeyDefinition {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1130
|
+
/** Value kind returned by the resolver. */
|
|
1131
|
+
value_type: "number" | "string_set";
|
|
1132
|
+
/** Human-readable metric intent. */
|
|
1133
|
+
description?: string;
|
|
1134
|
+
/** Accepted provider parameters. Unknown parameters are rejected. */
|
|
1135
|
+
parameters?: Record<string, AssuranceMeasurementProviderParameterDefinition>;
|
|
1129
1136
|
}
|
|
1130
1137
|
/** Runtime request supplied to an extension-owned assurance provider. */
|
|
1131
1138
|
export interface AssuranceMeasurementProviderContext extends PortableWorkspaceContext {
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1139
|
+
/** Provider id selected by the measurement declaration. */
|
|
1140
|
+
provider: string;
|
|
1141
|
+
/** Provider-owned metric key. */
|
|
1142
|
+
key: string;
|
|
1143
|
+
/** Validated provider parameters. */
|
|
1144
|
+
parameters: Record<string, string | number | boolean | null>;
|
|
1145
|
+
/** Gate trigger that authorized this invocation. */
|
|
1146
|
+
trigger: string;
|
|
1147
|
+
/** Tracker root bound to the active command or SDK request. */
|
|
1148
|
+
pm_root: string;
|
|
1142
1149
|
}
|
|
1143
1150
|
/** Result returned by an extension-owned assurance provider. */
|
|
1144
1151
|
export interface AssuranceMeasurementProviderResult {
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1152
|
+
/** Finite numeric value or deterministic labelled set. */
|
|
1153
|
+
value: number | string[];
|
|
1154
|
+
/** Population denominator represented by the metric. */
|
|
1155
|
+
population_size: number;
|
|
1156
|
+
/** Abstract compute units charged by the provider. */
|
|
1157
|
+
cost: number;
|
|
1158
|
+
/** Optional stable contributor ids or labels. */
|
|
1159
|
+
contributors?: string[];
|
|
1153
1160
|
}
|
|
1154
1161
|
/** Extension registration for an open assurance measurement vocabulary. */
|
|
1155
1162
|
export interface AssuranceMeasurementProviderDefinition {
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1163
|
+
/** Stable provider id used by measurement declarations and gate allow-lists. */
|
|
1164
|
+
id: string;
|
|
1165
|
+
/** Serializable metric-key schema. */
|
|
1166
|
+
keys: Record<string, AssuranceMeasurementProviderKeyDefinition>;
|
|
1167
|
+
/** Coarse execution cost used by trigger policy before invocation. */
|
|
1168
|
+
cost_class: AssuranceMeasurementProviderCostClass;
|
|
1169
|
+
/** Whether the resolver can access the network. */
|
|
1170
|
+
network: boolean;
|
|
1171
|
+
/** Maximum host wait for one resolver call. */
|
|
1172
|
+
timeout_ms?: number;
|
|
1173
|
+
/** Resolve one declared key. */
|
|
1174
|
+
resolve(context: AssuranceMeasurementProviderContext): AssuranceMeasurementProviderResult | Promise<AssuranceMeasurementProviderResult>;
|
|
1168
1175
|
}
|
|
1169
1176
|
/** Documents the registered extension command override payload exchanged by command, SDK, and package integrations. */
|
|
1170
1177
|
export interface RegisteredExtensionCommandOverride {
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1178
|
+
/** Value that configures or reports layer for this contract. */
|
|
1179
|
+
layer: ExtensionLayer;
|
|
1180
|
+
/** Value that configures or reports name for this contract. */
|
|
1181
|
+
name: string;
|
|
1182
|
+
/** Value that configures or reports command for this contract. */
|
|
1183
|
+
command: string;
|
|
1184
|
+
/** Value that configures or reports run for this contract. */
|
|
1185
|
+
run: CommandOverride;
|
|
1179
1186
|
}
|
|
1180
1187
|
/** Documents the registered extension command handler payload exchanged by command, SDK, and package integrations. */
|
|
1181
1188
|
export interface RegisteredExtensionCommandHandler {
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1189
|
+
/** Value that configures or reports layer for this contract. */
|
|
1190
|
+
layer: ExtensionLayer;
|
|
1191
|
+
/** Value that configures or reports name for this contract. */
|
|
1192
|
+
name: string;
|
|
1193
|
+
/** Value that configures or reports command for this contract. */
|
|
1194
|
+
command: string;
|
|
1195
|
+
/** Value that configures or reports run for this contract. */
|
|
1196
|
+
run: CommandHandler;
|
|
1190
1197
|
}
|
|
1191
1198
|
/** Documents the registered extension parser override payload exchanged by command, SDK, and package integrations. */
|
|
1192
1199
|
export interface RegisteredExtensionParserOverride {
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1200
|
+
/** Value that configures or reports layer for this contract. */
|
|
1201
|
+
layer: ExtensionLayer;
|
|
1202
|
+
/** Value that configures or reports name for this contract. */
|
|
1203
|
+
name: string;
|
|
1204
|
+
/** Value that configures or reports command for this contract. */
|
|
1205
|
+
command: string;
|
|
1206
|
+
/** Value that configures or reports run for this contract. */
|
|
1207
|
+
run: ParserOverride;
|
|
1201
1208
|
}
|
|
1202
1209
|
/** Documents the registered extension preflight override payload exchanged by command, SDK, and package integrations. */
|
|
1203
1210
|
export interface RegisteredExtensionPreflightOverride {
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1211
|
+
/** Value that configures or reports layer for this contract. */
|
|
1212
|
+
layer: ExtensionLayer;
|
|
1213
|
+
/** Value that configures or reports name for this contract. */
|
|
1214
|
+
name: string;
|
|
1215
|
+
/** Value that configures or reports run for this contract. */
|
|
1216
|
+
run: PreflightOverride;
|
|
1217
|
+
/** Normalized command paths owned by this preflight override. */
|
|
1218
|
+
commands?: string[];
|
|
1212
1219
|
}
|
|
1213
1220
|
/** Documents the registered extension service override payload exchanged by command, SDK, and package integrations. */
|
|
1214
1221
|
export interface RegisteredExtensionServiceOverride {
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1222
|
+
/** Value that configures or reports layer for this contract. */
|
|
1223
|
+
layer: ExtensionLayer;
|
|
1224
|
+
/** Value that configures or reports name for this contract. */
|
|
1225
|
+
name: string;
|
|
1226
|
+
/** Value that configures or reports service for this contract. */
|
|
1227
|
+
service: ExtensionServiceName;
|
|
1228
|
+
/** Value that configures or reports run for this contract. */
|
|
1229
|
+
run: ServiceOverride;
|
|
1230
|
+
/** Whether the host forbids this callback from handling the service payload. */
|
|
1231
|
+
passThrough?: boolean;
|
|
1225
1232
|
}
|
|
1226
1233
|
/** Documents the registered extension renderer override payload exchanged by command, SDK, and package integrations. */
|
|
1227
1234
|
export interface RegisteredExtensionRendererOverride {
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1235
|
+
/** Value that configures or reports layer for this contract. */
|
|
1236
|
+
layer: ExtensionLayer;
|
|
1237
|
+
/** Value that configures or reports name for this contract. */
|
|
1238
|
+
name: string;
|
|
1239
|
+
/** Value that configures or reports format for this contract. */
|
|
1240
|
+
format: OutputRendererFormat;
|
|
1241
|
+
/** Value that configures or reports run for this contract. */
|
|
1242
|
+
run: RendererOverride;
|
|
1243
|
+
/** Normalized command paths owned by this renderer. */
|
|
1244
|
+
commands?: string[];
|
|
1245
|
+
/** Optional result predicate enforced by the host before invoking the renderer. */
|
|
1246
|
+
resultDiscriminator?: (result: unknown) => boolean;
|
|
1240
1247
|
}
|
|
1241
1248
|
/** Documents the extension command registry payload exchanged by command, SDK, and package integrations. */
|
|
1242
1249
|
export interface ExtensionCommandRegistry {
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1250
|
+
/** Value that configures or reports overrides for this contract. */
|
|
1251
|
+
overrides: RegisteredExtensionCommandOverride[];
|
|
1252
|
+
/** Value that configures or reports handlers for this contract. */
|
|
1253
|
+
handlers: RegisteredExtensionCommandHandler[];
|
|
1247
1254
|
}
|
|
1248
1255
|
/** Documents the extension parser registry payload exchanged by command, SDK, and package integrations. */
|
|
1249
1256
|
export interface ExtensionParserRegistry {
|
|
1250
|
-
|
|
1251
|
-
|
|
1257
|
+
/** Value that configures or reports overrides for this contract. */
|
|
1258
|
+
overrides: RegisteredExtensionParserOverride[];
|
|
1252
1259
|
}
|
|
1253
1260
|
/** Documents the extension preflight registry payload exchanged by command, SDK, and package integrations. */
|
|
1254
1261
|
export interface ExtensionPreflightRegistry {
|
|
1255
|
-
|
|
1256
|
-
|
|
1262
|
+
/** Value that configures or reports overrides for this contract. */
|
|
1263
|
+
overrides: RegisteredExtensionPreflightOverride[];
|
|
1257
1264
|
}
|
|
1258
1265
|
/** Documents the extension service registry payload exchanged by command, SDK, and package integrations. */
|
|
1259
1266
|
export interface ExtensionServiceRegistry {
|
|
1260
|
-
|
|
1261
|
-
|
|
1267
|
+
/** Value that configures or reports overrides for this contract. */
|
|
1268
|
+
overrides: RegisteredExtensionServiceOverride[];
|
|
1262
1269
|
}
|
|
1263
1270
|
/** Documents the extension renderer registry payload exchanged by command, SDK, and package integrations. */
|
|
1264
1271
|
export interface ExtensionRendererRegistry {
|
|
1265
|
-
|
|
1266
|
-
|
|
1272
|
+
/** Value that configures or reports overrides for this contract. */
|
|
1273
|
+
overrides: RegisteredExtensionRendererOverride[];
|
|
1267
1274
|
}
|
|
1268
1275
|
/** Documents the registered extension flag definitions payload exchanged by command, SDK, and package integrations. */
|
|
1269
1276
|
export interface RegisteredExtensionFlagDefinitions {
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1277
|
+
/** Value that configures or reports layer for this contract. */
|
|
1278
|
+
layer: ExtensionLayer;
|
|
1279
|
+
/** Value that configures or reports name for this contract. */
|
|
1280
|
+
name: string;
|
|
1281
|
+
/** Value that configures or reports target command for this contract. */
|
|
1282
|
+
target_command: string;
|
|
1283
|
+
/** Value that configures or reports flags for this contract. */
|
|
1284
|
+
flags: FlagDefinition[];
|
|
1278
1285
|
}
|
|
1279
1286
|
/** Documents the registered extension command definition payload exchanged by command, SDK, and package integrations. */
|
|
1280
1287
|
export interface RegisteredExtensionCommandDefinition {
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1288
|
+
/** Validated read-only output declaration, snapshotted during activation. */
|
|
1289
|
+
read_output?: ExtensionCommandReadOutput;
|
|
1290
|
+
/** Value that configures or reports layer for this contract. */
|
|
1291
|
+
layer: ExtensionLayer;
|
|
1292
|
+
/** Value that configures or reports name for this contract. */
|
|
1293
|
+
name: string;
|
|
1294
|
+
/** Value that configures or reports source package for this contract. */
|
|
1295
|
+
source_package?: string;
|
|
1296
|
+
/** Value that configures or reports command for this contract. */
|
|
1297
|
+
command: string;
|
|
1298
|
+
/** Value that configures or reports action for this contract. */
|
|
1299
|
+
action: string;
|
|
1300
|
+
/** Value that configures or reports description for this contract. */
|
|
1301
|
+
description?: string;
|
|
1302
|
+
/** Value that configures or reports intent for this contract. */
|
|
1303
|
+
intent?: string;
|
|
1304
|
+
/** Value that configures or reports examples for this contract. */
|
|
1305
|
+
examples: string[];
|
|
1306
|
+
/** Value that configures or reports failure hints for this contract. */
|
|
1307
|
+
failure_hints: string[];
|
|
1308
|
+
/** Value that configures or reports arguments for this contract. */
|
|
1309
|
+
arguments: ExtensionCommandArgumentDefinition[];
|
|
1310
|
+
/** Minimum agent surface tier that should advertise this command. */
|
|
1311
|
+
tier?: "core" | "standard" | "full" | "internal";
|
|
1312
|
+
/** Capability family used by generated agent routing surfaces. */
|
|
1313
|
+
family?: ExtensionCommandCapabilityFamily;
|
|
1305
1314
|
}
|
|
1306
1315
|
/** Documents the registered extension schema field definitions payload exchanged by command, SDK, and package integrations. */
|
|
1307
1316
|
export interface RegisteredExtensionSchemaFieldDefinitions {
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1317
|
+
/** Value that configures or reports layer for this contract. */
|
|
1318
|
+
layer: ExtensionLayer;
|
|
1319
|
+
/** Value that configures or reports name for this contract. */
|
|
1320
|
+
name: string;
|
|
1321
|
+
/** Value that configures or reports fields for this contract. */
|
|
1322
|
+
fields: SchemaFieldDefinition[];
|
|
1314
1323
|
}
|
|
1315
1324
|
/** Documents the registered extension schema item type definitions payload exchanged by command, SDK, and package integrations. */
|
|
1316
1325
|
export interface RegisteredExtensionSchemaItemTypeDefinitions {
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1326
|
+
/** Value that configures or reports layer for this contract. */
|
|
1327
|
+
layer: ExtensionLayer;
|
|
1328
|
+
/** Value that configures or reports name for this contract. */
|
|
1329
|
+
name: string;
|
|
1330
|
+
/** Value that configures or reports types for this contract. */
|
|
1331
|
+
types: SchemaItemTypeDefinition[];
|
|
1323
1332
|
}
|
|
1324
1333
|
/** Relationship ontology definitions contributed by one active extension. */
|
|
1325
1334
|
export interface RegisteredExtensionRelationshipKindDefinitions {
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1335
|
+
/** Extension layer that owns these definitions. */
|
|
1336
|
+
layer: ExtensionLayer;
|
|
1337
|
+
/** Extension name that owns these definitions. */
|
|
1338
|
+
name: string;
|
|
1339
|
+
/** Validated immutable relationship-kind definitions. */
|
|
1340
|
+
definitions: RelationshipKindDefinition[];
|
|
1332
1341
|
}
|
|
1333
1342
|
/** Documents the registered extension schema migration definition payload exchanged by command, SDK, and package integrations. */
|
|
1334
1343
|
export interface RegisteredExtensionSchemaMigrationDefinition {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1344
|
+
/** Value that configures or reports layer for this contract. */
|
|
1345
|
+
layer: ExtensionLayer;
|
|
1346
|
+
/** Value that configures or reports name for this contract. */
|
|
1347
|
+
name: string;
|
|
1348
|
+
/** Value that configures or reports definition for this contract. */
|
|
1349
|
+
definition: SchemaMigrationDefinition;
|
|
1350
|
+
/** Value that configures or reports runtime definition for this contract. */
|
|
1351
|
+
runtime_definition: SchemaMigrationDefinition;
|
|
1343
1352
|
}
|
|
1344
1353
|
/** Documents the registered extension importer payload exchanged by command, SDK, and package integrations. */
|
|
1345
1354
|
export interface RegisteredExtensionImporter {
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1355
|
+
/** Value that configures or reports layer for this contract. */
|
|
1356
|
+
layer: ExtensionLayer;
|
|
1357
|
+
/** Value that configures or reports name for this contract. */
|
|
1358
|
+
name: string;
|
|
1359
|
+
/** Value that configures or reports importer for this contract. */
|
|
1360
|
+
importer: string;
|
|
1352
1361
|
}
|
|
1353
1362
|
/** Documents the registered extension exporter payload exchanged by command, SDK, and package integrations. */
|
|
1354
1363
|
export interface RegisteredExtensionExporter {
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1364
|
+
/** Value that configures or reports layer for this contract. */
|
|
1365
|
+
layer: ExtensionLayer;
|
|
1366
|
+
/** Value that configures or reports name for this contract. */
|
|
1367
|
+
name: string;
|
|
1368
|
+
/** Value that configures or reports exporter for this contract. */
|
|
1369
|
+
exporter: string;
|
|
1370
|
+
/** Declared artifact channel and normalized receipt policy. */
|
|
1371
|
+
output?: RegisteredExporterArtifactOutputContract;
|
|
1363
1372
|
}
|
|
1364
1373
|
/** Documents the registered extension search provider payload exchanged by command, SDK, and package integrations. */
|
|
1365
1374
|
export interface RegisteredExtensionSearchProvider {
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1375
|
+
/** Value that configures or reports layer for this contract. */
|
|
1376
|
+
layer: ExtensionLayer;
|
|
1377
|
+
/** Value that configures or reports name for this contract. */
|
|
1378
|
+
name: string;
|
|
1379
|
+
/** Value that configures or reports definition for this contract. */
|
|
1380
|
+
definition: SearchProviderDefinition;
|
|
1381
|
+
/** Value that configures or reports runtime definition for this contract. */
|
|
1382
|
+
runtime_definition: SearchProviderDefinition;
|
|
1374
1383
|
}
|
|
1375
1384
|
/** Documents the registered extension vector store adapter payload exchanged by command, SDK, and package integrations. */
|
|
1376
1385
|
export interface RegisteredExtensionVectorStoreAdapter {
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1386
|
+
/** Value that configures or reports layer for this contract. */
|
|
1387
|
+
layer: ExtensionLayer;
|
|
1388
|
+
/** Value that configures or reports name for this contract. */
|
|
1389
|
+
name: string;
|
|
1390
|
+
/** Value that configures or reports definition for this contract. */
|
|
1391
|
+
definition: VectorStoreAdapterDefinition;
|
|
1392
|
+
/** Value that configures or reports runtime definition for this contract. */
|
|
1393
|
+
runtime_definition: VectorStoreAdapterDefinition;
|
|
1385
1394
|
}
|
|
1386
1395
|
/** One validated assurance measurement provider registered by an active extension. */
|
|
1387
1396
|
export interface RegisteredExtensionAssuranceMeasurementProvider {
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1397
|
+
/** Extension layer owning the provider. */
|
|
1398
|
+
layer: ExtensionLayer;
|
|
1399
|
+
/** Extension name owning the provider. */
|
|
1400
|
+
name: string;
|
|
1401
|
+
/** Whether the owning manifest grants network access. */
|
|
1402
|
+
network_permission: boolean;
|
|
1403
|
+
/** Serializable definition used by doctor, inventory, and policy surfaces. */
|
|
1404
|
+
definition: Omit<AssuranceMeasurementProviderDefinition, "resolve"> & {
|
|
1405
|
+
resolve: "[Function]";
|
|
1406
|
+
};
|
|
1407
|
+
/** Runtime definition containing the executable resolver. */
|
|
1408
|
+
runtime_definition: AssuranceMeasurementProviderDefinition;
|
|
1400
1409
|
}
|
|
1401
1410
|
/**
|
|
1402
1411
|
* Documents a project profile contributed by an extension via
|
|
@@ -1410,383 +1419,383 @@ export interface RegisteredExtensionAssuranceMeasurementProvider {
|
|
|
1410
1419
|
* `pm profile list/show/apply` for as long as the owning package is active.
|
|
1411
1420
|
*/
|
|
1412
1421
|
export interface RegisteredExtensionProjectProfile {
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1422
|
+
/** Value that configures or reports layer for this contract. */
|
|
1423
|
+
layer: ExtensionLayer;
|
|
1424
|
+
/** Value that configures or reports name for this contract. */
|
|
1425
|
+
name: string;
|
|
1426
|
+
/** Value that configures or reports profile for this contract. */
|
|
1427
|
+
profile: ProjectProfileDefinition;
|
|
1419
1428
|
}
|
|
1420
1429
|
/** Documents the extension registration registry payload exchanged by command, SDK, and package integrations. */
|
|
1421
1430
|
export interface ExtensionRegistrationRegistry {
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1431
|
+
/** Value that configures or reports commands for this contract. */
|
|
1432
|
+
commands: RegisteredExtensionCommandDefinition[];
|
|
1433
|
+
/** Value that configures or reports flags for this contract. */
|
|
1434
|
+
flags: RegisteredExtensionFlagDefinitions[];
|
|
1435
|
+
/** Value that configures or reports item fields for this contract. */
|
|
1436
|
+
item_fields: RegisteredExtensionSchemaFieldDefinitions[];
|
|
1437
|
+
/** Value that configures or reports item types for this contract. */
|
|
1438
|
+
item_types: RegisteredExtensionSchemaItemTypeDefinitions[];
|
|
1439
|
+
/** Value that configures application-defined relationship semantics. */
|
|
1440
|
+
relationship_kinds: RegisteredExtensionRelationshipKindDefinitions[];
|
|
1441
|
+
/** Value that configures or reports migrations for this contract. */
|
|
1442
|
+
migrations: RegisteredExtensionSchemaMigrationDefinition[];
|
|
1443
|
+
/** Value that configures or reports profiles for this contract. */
|
|
1444
|
+
profiles: RegisteredExtensionProjectProfile[];
|
|
1445
|
+
/** Value that configures or reports importers for this contract. */
|
|
1446
|
+
importers: RegisteredExtensionImporter[];
|
|
1447
|
+
/** Value that configures or reports exporters for this contract. */
|
|
1448
|
+
exporters: RegisteredExtensionExporter[];
|
|
1449
|
+
/** Value that configures or reports search providers for this contract. */
|
|
1450
|
+
search_providers: RegisteredExtensionSearchProvider[];
|
|
1451
|
+
/** Value that configures or reports vector store adapters for this contract. */
|
|
1452
|
+
vector_store_adapters: RegisteredExtensionVectorStoreAdapter[];
|
|
1453
|
+
/** Extension-owned assurance measurement providers. */
|
|
1454
|
+
assurance_providers: RegisteredExtensionAssuranceMeasurementProvider[];
|
|
1446
1455
|
}
|
|
1447
1456
|
/** Documents the extension registration counts payload exchanged by command, SDK, and package integrations. */
|
|
1448
1457
|
export interface ExtensionRegistrationCounts {
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1458
|
+
/** Value that configures or reports commands for this contract. */
|
|
1459
|
+
commands: number;
|
|
1460
|
+
/** Value that configures or reports flags for this contract. */
|
|
1461
|
+
flags: number;
|
|
1462
|
+
/** Value that configures or reports item fields for this contract. */
|
|
1463
|
+
item_fields: number;
|
|
1464
|
+
/** Value that configures or reports item types for this contract. */
|
|
1465
|
+
item_types: number;
|
|
1466
|
+
/** Number of application-defined relationship kinds. */
|
|
1467
|
+
relationship_kinds?: number;
|
|
1468
|
+
/** Value that configures or reports migrations for this contract. */
|
|
1469
|
+
migrations: number;
|
|
1470
|
+
/** Value that configures or reports profiles for this contract. */
|
|
1471
|
+
profiles: number;
|
|
1472
|
+
/** Value that configures or reports importers for this contract. */
|
|
1473
|
+
importers: number;
|
|
1474
|
+
/** Value that configures or reports exporters for this contract. */
|
|
1475
|
+
exporters: number;
|
|
1476
|
+
/** Value that configures or reports search providers for this contract. */
|
|
1477
|
+
search_providers: number;
|
|
1478
|
+
/** Value that configures or reports vector store adapters for this contract. */
|
|
1479
|
+
vector_store_adapters: number;
|
|
1480
|
+
/** Number of registered assurance measurement providers. */
|
|
1481
|
+
assurance_providers?: number;
|
|
1473
1482
|
}
|
|
1474
1483
|
/** 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`. */
|
|
1475
1484
|
export interface ExtensionSelfIdentity {
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1485
|
+
/** Value that configures or reports name for this contract. */
|
|
1486
|
+
readonly name: string;
|
|
1487
|
+
/** Value that configures or reports layer for this contract. */
|
|
1488
|
+
readonly layer: ExtensionLayer;
|
|
1489
|
+
/** Value that configures or reports version for this contract. */
|
|
1490
|
+
readonly version: string;
|
|
1491
|
+
/** Value that configures or reports capabilities for this contract. */
|
|
1492
|
+
readonly capabilities: readonly ExtensionCapability[];
|
|
1493
|
+
/** Value that configures or reports pm min version for this contract. */
|
|
1494
|
+
readonly pm_min_version?: string;
|
|
1495
|
+
/** Value that configures or reports pm max version for this contract. */
|
|
1496
|
+
readonly pm_max_version?: string;
|
|
1497
|
+
/** Value that configures or reports source package for this contract. */
|
|
1498
|
+
readonly source_package?: string;
|
|
1490
1499
|
}
|
|
1491
1500
|
/** Documents the extension api payload exchanged by command, SDK, and package integrations. */
|
|
1492
1501
|
export interface ExtensionApi {
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1502
|
+
/** Read-only identity of the extension this `api` was created for. */
|
|
1503
|
+
readonly extension: ExtensionSelfIdentity;
|
|
1504
|
+
/** Value that configures or reports register command for this contract. */
|
|
1505
|
+
registerCommand(command: string, override: CommandOverride): void;
|
|
1506
|
+
/** Value that configures or reports register command for this contract. */
|
|
1507
|
+
registerCommand(definition: CommandDefinition): void;
|
|
1508
|
+
/** Value that configures or reports register parser for this contract. */
|
|
1509
|
+
registerParser(command: string, override: ParserOverride): void;
|
|
1510
|
+
/** Value that configures or reports register preflight for this contract. */
|
|
1511
|
+
registerPreflight(override: PreflightOverride | ScopedPreflightOverrideDefinition): void;
|
|
1512
|
+
/** Value that configures or reports register service for this contract. */
|
|
1513
|
+
registerService(service: ExtensionServiceName, override: ServiceOverride, ownership?: ServiceOverrideOwnership): void;
|
|
1514
|
+
/** Value that configures or reports register flags for this contract. */
|
|
1515
|
+
registerFlags(targetCommand: string, flags: FlagDefinition[]): void;
|
|
1516
|
+
/** Value that configures or reports register item fields for this contract. */
|
|
1517
|
+
registerItemFields(fields: SchemaFieldDefinition[]): void;
|
|
1518
|
+
/** Value that configures or reports register item types for this contract. */
|
|
1519
|
+
registerItemTypes(types: SchemaItemTypeDefinition[]): void;
|
|
1520
|
+
/** Register versioned relationship semantics consumed by every graph surface. */
|
|
1521
|
+
registerRelationshipKinds(definitions: RelationshipKindDefinition[]): void;
|
|
1522
|
+
/** Value that configures or reports register migration for this contract. */
|
|
1523
|
+
registerMigration(definition: SchemaMigrationDefinition): void;
|
|
1524
|
+
/** Value that configures or reports register profile for this contract. */
|
|
1525
|
+
registerProfile(profile: ProjectProfileRegistrationInput): void;
|
|
1526
|
+
/** Value that configures or reports register renderer for this contract. */
|
|
1527
|
+
registerRenderer(format: OutputRendererFormat, renderer: RendererOverride, ownership?: RendererOverrideOwnership): void;
|
|
1528
|
+
/** Value that configures or reports register importer for this contract. */
|
|
1529
|
+
registerImporter(name: string, importer: Importer, options?: ImportExportRegistrationOptions): void;
|
|
1530
|
+
/** Value that configures or reports register exporter for this contract. */
|
|
1531
|
+
registerExporter(name: string, exporter: Exporter, options?: ExporterRegistrationOptions): void;
|
|
1532
|
+
/** Value that configures or reports register search provider for this contract. */
|
|
1533
|
+
registerSearchProvider(provider: SearchProviderDefinition): void;
|
|
1534
|
+
/** Value that configures or reports register vector store adapter for this contract. */
|
|
1535
|
+
registerVectorStoreAdapter(adapter: VectorStoreAdapterDefinition): void;
|
|
1536
|
+
/** Register an assurance measurement provider through the services capability. */
|
|
1537
|
+
registerAssuranceMeasurementProvider(provider: AssuranceMeasurementProviderDefinition): void;
|
|
1538
|
+
/** Value that configures or reports hooks for this contract. */
|
|
1539
|
+
hooks: {
|
|
1540
|
+
beforeCommand(hook: BeforeCommandHook): void;
|
|
1541
|
+
beforeMutation(hook: BeforeMutationHook): void;
|
|
1542
|
+
afterCommand(hook: AfterCommandHook): void;
|
|
1543
|
+
onWrite(hook: OnWriteHook): void;
|
|
1544
|
+
onRead(hook: OnReadHook): void;
|
|
1545
|
+
onIndex(hook: OnIndexHook): void;
|
|
1546
|
+
};
|
|
1538
1547
|
}
|
|
1539
1548
|
/** Documents the failed extension activation payload exchanged by command, SDK, and package integrations. */
|
|
1540
1549
|
export interface FailedExtensionActivation {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1550
|
+
/** Value that configures or reports layer for this contract. */
|
|
1551
|
+
layer: ExtensionLayer;
|
|
1552
|
+
/** Value that configures or reports name for this contract. */
|
|
1553
|
+
name: string;
|
|
1554
|
+
/** Filesystem path used for entry resolution. */
|
|
1555
|
+
entry_path: string;
|
|
1556
|
+
/** Value that configures or reports error for this contract. */
|
|
1557
|
+
error: string;
|
|
1558
|
+
/** Value that configures or reports trace for this contract. */
|
|
1559
|
+
trace?: ExtensionActivationFailureTrace;
|
|
1551
1560
|
}
|
|
1552
1561
|
/** Documents the extension activation failure trace payload exchanged by command, SDK, and package integrations. */
|
|
1553
1562
|
export interface ExtensionActivationFailureTrace {
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1563
|
+
/** Value that configures or reports method for this contract. */
|
|
1564
|
+
method: string;
|
|
1565
|
+
/** `-1` means the failure happened before a numbered registration was accepted. */
|
|
1566
|
+
registration_index: number;
|
|
1567
|
+
/** Value that configures or reports command for this contract. */
|
|
1568
|
+
command?: string;
|
|
1569
|
+
/** Value that configures or reports capability for this contract. */
|
|
1570
|
+
capability?: ExtensionCapability;
|
|
1571
|
+
/** Value that configures or reports missing capability for this contract. */
|
|
1572
|
+
missing_capability?: ExtensionCapability;
|
|
1573
|
+
/** Value that configures or reports expected schema for this contract. */
|
|
1574
|
+
expected_schema: string;
|
|
1575
|
+
/** Value that configures or reports received for this contract. */
|
|
1576
|
+
received?: unknown;
|
|
1577
|
+
/** Value that configures or reports hint for this contract. */
|
|
1578
|
+
hint?: string;
|
|
1570
1579
|
}
|
|
1571
1580
|
/** Documents the extension activation result payload exchanged by command, SDK, and package integrations. */
|
|
1572
1581
|
export interface ExtensionActivationResult {
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1582
|
+
/** Value that configures or reports hooks for this contract. */
|
|
1583
|
+
hooks: ExtensionHookRegistry;
|
|
1584
|
+
/** Value that configures or reports commands for this contract. */
|
|
1585
|
+
commands: ExtensionCommandRegistry;
|
|
1586
|
+
/** Value that configures or reports parsers for this contract. */
|
|
1587
|
+
parsers: ExtensionParserRegistry;
|
|
1588
|
+
/** Value that configures or reports preflight for this contract. */
|
|
1589
|
+
preflight: ExtensionPreflightRegistry;
|
|
1590
|
+
/** Value that configures or reports services for this contract. */
|
|
1591
|
+
services: ExtensionServiceRegistry;
|
|
1592
|
+
/** Value that configures or reports renderers for this contract. */
|
|
1593
|
+
renderers: ExtensionRendererRegistry;
|
|
1594
|
+
/** Value that configures or reports registrations for this contract. */
|
|
1595
|
+
registrations: ExtensionRegistrationRegistry;
|
|
1596
|
+
/** Value that configures or reports failed for this contract. */
|
|
1597
|
+
failed: FailedExtensionActivation[];
|
|
1598
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1599
|
+
warnings: string[];
|
|
1600
|
+
/** Value that configures or reports hook counts for this contract. */
|
|
1601
|
+
hook_counts: {
|
|
1602
|
+
before_command: number;
|
|
1603
|
+
before_mutation: number;
|
|
1604
|
+
after_command: number;
|
|
1605
|
+
on_write: number;
|
|
1606
|
+
on_read: number;
|
|
1607
|
+
on_index: number;
|
|
1608
|
+
};
|
|
1609
|
+
/** Number of command override entries represented by this result. */
|
|
1610
|
+
command_override_count: number;
|
|
1611
|
+
/** Number of command handler entries represented by this result. */
|
|
1612
|
+
command_handler_count: number;
|
|
1613
|
+
/** Number of parser override entries represented by this result. */
|
|
1614
|
+
parser_override_count: number;
|
|
1615
|
+
/** Number of preflight override entries represented by this result. */
|
|
1616
|
+
preflight_override_count: number;
|
|
1617
|
+
/** Number of service override entries represented by this result. */
|
|
1618
|
+
service_override_count: number;
|
|
1619
|
+
/** Number of renderer override entries represented by this result. */
|
|
1620
|
+
renderer_override_count: number;
|
|
1621
|
+
/** Value that configures or reports registration counts for this contract. */
|
|
1622
|
+
registration_counts: ExtensionRegistrationCounts;
|
|
1614
1623
|
}
|
|
1615
1624
|
/** Documents the extension candidate payload exchanged by command, SDK, and package integrations. */
|
|
1616
1625
|
export interface ExtensionCandidate {
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1626
|
+
/** Value that configures or reports layer for this contract. */
|
|
1627
|
+
layer: ExtensionLayer;
|
|
1628
|
+
/** Value that configures or reports directory for this contract. */
|
|
1629
|
+
directory: string;
|
|
1630
|
+
/** Filesystem path used for manifest resolution. */
|
|
1631
|
+
manifest_path: string;
|
|
1632
|
+
/** Filesystem path used for entry resolution. */
|
|
1633
|
+
entry_path: string;
|
|
1634
|
+
/** Declarative package manifest consumed by the extension loader. */
|
|
1635
|
+
manifest: ExtensionManifest;
|
|
1636
|
+
/** Value that configures or reports source package for this contract. */
|
|
1637
|
+
source_package?: string;
|
|
1638
|
+
/** Install-source identities that can resolve this extension through package lifecycle commands. */
|
|
1639
|
+
source_aliases?: string[];
|
|
1640
|
+
/** Persisted contribution inventory resolved without importing the module. */
|
|
1641
|
+
contributions?: ExtensionContributionInventory;
|
|
1633
1642
|
}
|
|
1634
1643
|
/** Documents the extension layer scan result payload exchanged by command, SDK, and package integrations. */
|
|
1635
1644
|
export interface ExtensionLayerScanResult {
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1645
|
+
/** Value that configures or reports diagnostics for this contract. */
|
|
1646
|
+
diagnostics: ExtensionDiagnostic[];
|
|
1647
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1648
|
+
warnings: string[];
|
|
1649
|
+
/** Value that configures or reports candidates for this contract. */
|
|
1650
|
+
candidates: ExtensionCandidate[];
|
|
1642
1651
|
}
|
|
1643
1652
|
/** Documents the scanned extension directory payload exchanged by command, SDK, and package integrations. */
|
|
1644
1653
|
export interface ScannedExtensionDirectory {
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1654
|
+
/** Value that configures or reports diagnostic for this contract. */
|
|
1655
|
+
diagnostic: ExtensionDiagnostic;
|
|
1656
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1657
|
+
warnings: string[];
|
|
1658
|
+
/** Value that configures or reports candidate for this contract. */
|
|
1659
|
+
candidate: ExtensionCandidate | null;
|
|
1651
1660
|
}
|
|
1652
1661
|
/** Documents the legacy extension capability alias mapping payload exchanged by command, SDK, and package integrations. */
|
|
1653
1662
|
export interface LegacyExtensionCapabilityAliasMapping {
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1663
|
+
/** Value that configures or reports alias for this contract. */
|
|
1664
|
+
alias: string;
|
|
1665
|
+
/** Value that configures or reports target for this contract. */
|
|
1666
|
+
target: ExtensionCapability;
|
|
1658
1667
|
}
|
|
1659
1668
|
/** Documents the discover extensions options payload exchanged by command, SDK, and package integrations. */
|
|
1660
1669
|
export interface DiscoverExtensionsOptions {
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1670
|
+
/** Value that configures or reports pm root for this contract. */
|
|
1671
|
+
pmRoot: string;
|
|
1672
|
+
/** Value that configures or reports settings for this contract. */
|
|
1673
|
+
settings: PmSettings;
|
|
1674
|
+
/** Value that configures or reports cwd for this contract. */
|
|
1675
|
+
cwd?: string;
|
|
1676
|
+
/** Value that configures or reports no extensions for this contract. */
|
|
1677
|
+
noExtensions?: boolean;
|
|
1678
|
+
/** Value that configures or reports ignore global extensions for this contract. */
|
|
1679
|
+
ignoreGlobalExtensions?: boolean;
|
|
1680
|
+
/** Value that configures or reports reload token for this contract. */
|
|
1681
|
+
reload_token?: string;
|
|
1682
|
+
/** Value that configures or reports cache bust for this contract. */
|
|
1683
|
+
cache_bust?: boolean;
|
|
1684
|
+
/** Optional import-stage filter. Discovery still reports the full effective set, but `loadExtensions` imports only entries accepted by this predicate. */
|
|
1685
|
+
extensionFilter?: (extension: EffectiveExtension) => boolean;
|
|
1686
|
+
/** 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. */
|
|
1687
|
+
module_graph_snapshot_root?: string;
|
|
1679
1688
|
}
|
|
1680
1689
|
/** Documents the activatable extension payload exchanged by command, SDK, and package integrations. */
|
|
1681
1690
|
export interface ActivatableExtension {
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1691
|
+
/** Registers this package's commands, actions, and runtime hooks with the host. */
|
|
1692
|
+
activate: (api: ExtensionApi) => void | Promise<void>;
|
|
1693
|
+
/** 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`. */
|
|
1694
|
+
deactivate?: () => void | Promise<void>;
|
|
1686
1695
|
}
|
|
1687
1696
|
/** Documents the extension deactivation failure payload exchanged by command, SDK, and package integrations. */
|
|
1688
1697
|
export interface ExtensionDeactivationFailure {
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1698
|
+
/** Value that configures or reports layer for this contract. */
|
|
1699
|
+
layer: ExtensionLayer;
|
|
1700
|
+
/** Value that configures or reports name for this contract. */
|
|
1701
|
+
name: string;
|
|
1702
|
+
/** Value that configures or reports error for this contract. */
|
|
1703
|
+
error: string;
|
|
1695
1704
|
}
|
|
1696
1705
|
/** Documents the extension deactivation options payload exchanged by command, SDK, and package integrations. */
|
|
1697
1706
|
export interface ExtensionDeactivationOptions {
|
|
1698
|
-
|
|
1699
|
-
|
|
1707
|
+
/** 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. */
|
|
1708
|
+
deactivate_timeout_ms?: number;
|
|
1700
1709
|
}
|
|
1701
1710
|
/** Documents the extension deactivation result payload exchanged by command, SDK, and package integrations. */
|
|
1702
1711
|
export interface ExtensionDeactivationResult {
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1712
|
+
/** Count of loaded extensions whose `deactivate` hook ran without throwing. */
|
|
1713
|
+
deactivated: number;
|
|
1714
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1715
|
+
warnings: string[];
|
|
1716
|
+
/** Value that configures or reports failed for this contract. */
|
|
1717
|
+
failed: ExtensionDeactivationFailure[];
|
|
1709
1718
|
}
|
|
1710
1719
|
/** Documents the service override result payload exchanged by command, SDK, and package integrations. */
|
|
1711
1720
|
export interface ServiceOverrideResult {
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1721
|
+
/** Value that configures or reports handled for this contract. */
|
|
1722
|
+
handled: boolean;
|
|
1723
|
+
/** Value that configures or reports result for this contract. */
|
|
1724
|
+
result: unknown;
|
|
1725
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1726
|
+
warnings: string[];
|
|
1718
1727
|
}
|
|
1719
1728
|
/** Documents the command override result payload exchanged by command, SDK, and package integrations. */
|
|
1720
1729
|
export interface CommandOverrideResult {
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1730
|
+
/** Value that configures or reports overridden for this contract. */
|
|
1731
|
+
overridden: boolean;
|
|
1732
|
+
/** Value that configures or reports result for this contract. */
|
|
1733
|
+
result: unknown;
|
|
1734
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1735
|
+
warnings: string[];
|
|
1727
1736
|
}
|
|
1728
1737
|
/** Documents the command handler result payload exchanged by command, SDK, and package integrations. */
|
|
1729
1738
|
export interface CommandHandlerResult {
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1739
|
+
/** Value that configures or reports handled for this contract. */
|
|
1740
|
+
handled: boolean;
|
|
1741
|
+
/** Value that configures or reports result for this contract. */
|
|
1742
|
+
result: unknown;
|
|
1743
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1744
|
+
warnings: string[];
|
|
1745
|
+
/** Human-readable, single-line, length-bounded message describing why an extension command handler failed. Surfaced to the user/CI so the real cause (e.g. "Changelog is out of date: CHANGELOG.md") is visible instead of only the opaque `extension_command_handler_failed` warning code. */
|
|
1746
|
+
errorMessage?: string;
|
|
1747
|
+
/** Validated non-zero process status requested by a structured handler result. */
|
|
1748
|
+
exitCode?: number;
|
|
1749
|
+
/** Stable extension-provided error code preserved for structured recovery. */
|
|
1750
|
+
errorCode?: string;
|
|
1751
|
+
/** Actionable extension-provided recovery text preserved by the host. */
|
|
1752
|
+
remediation?: string;
|
|
1744
1753
|
}
|
|
1745
1754
|
/** Documents the parser override result payload exchanged by command, SDK, and package integrations. */
|
|
1746
1755
|
export interface ParserOverrideResult {
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1756
|
+
/** Value that configures or reports overridden for this contract. */
|
|
1757
|
+
overridden: boolean;
|
|
1758
|
+
/** Value that configures or reports context for this contract. */
|
|
1759
|
+
context: CommandHandlerContext;
|
|
1760
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1761
|
+
warnings: string[];
|
|
1753
1762
|
}
|
|
1754
1763
|
/** Documents the preflight override result payload exchanged by command, SDK, and package integrations. */
|
|
1755
1764
|
export interface PreflightOverrideResult {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1765
|
+
/** Value that configures or reports overridden for this contract. */
|
|
1766
|
+
overridden: boolean;
|
|
1767
|
+
/** Value that configures or reports context for this contract. */
|
|
1768
|
+
context: CommandHandlerContext;
|
|
1769
|
+
/** Value that configures or reports decision for this contract. */
|
|
1770
|
+
decision: PreflightRuntimeDecision;
|
|
1771
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1772
|
+
warnings: string[];
|
|
1764
1773
|
}
|
|
1765
1774
|
/** Documents the renderer override result payload exchanged by command, SDK, and package integrations. */
|
|
1766
1775
|
export interface RendererOverrideResult {
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1776
|
+
/** Value that configures or reports overridden for this contract. */
|
|
1777
|
+
overridden: boolean;
|
|
1778
|
+
/** Value that configures or reports rendered for this contract. */
|
|
1779
|
+
rendered: string | null;
|
|
1780
|
+
/** Value that configures or reports warnings for this contract. */
|
|
1781
|
+
warnings: string[];
|
|
1773
1782
|
}
|
|
1774
1783
|
/** Documents the unknown extension capability warning details payload exchanged by command, SDK, and package integrations. */
|
|
1775
1784
|
export interface UnknownExtensionCapabilityWarningDetails {
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1785
|
+
/** Value that configures or reports layer for this contract. */
|
|
1786
|
+
layer: ExtensionLayer;
|
|
1787
|
+
/** Value that configures or reports name for this contract. */
|
|
1788
|
+
name: string;
|
|
1789
|
+
/** Value that configures or reports capability for this contract. */
|
|
1790
|
+
capability: string;
|
|
1791
|
+
/** Value that configures or reports allowed capabilities for this contract. */
|
|
1792
|
+
allowed_capabilities: string[];
|
|
1793
|
+
/** Value that configures or reports capability contract version for this contract. */
|
|
1794
|
+
capability_contract_version: number;
|
|
1795
|
+
/** Value that configures or reports suggested capability for this contract. */
|
|
1796
|
+
suggested_capability?: string;
|
|
1797
|
+
/** Value that configures or reports suggestion source for this contract. */
|
|
1798
|
+
suggestion_source?: "legacy_alias" | "nearest_match";
|
|
1799
|
+
/** Value that configures or reports legacy alias target for this contract. */
|
|
1800
|
+
legacy_alias_target?: string;
|
|
1792
1801
|
}
|