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