@unbrained/pm-cli 2026.10.13 → 2026.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +72 -1
- 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 +16 -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 +2 -2
- 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/main.js +2 -2
- 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-operations.d.ts +75 -75
- package/dist/cli/register-setup.d.ts +4 -4
- package/dist/cli/register-structured-mutation.d.ts +8 -8
- package/dist/cli/runtime/activation.d.ts +23 -23
- package/dist/cli/runtime/invocation-options.d.ts +12 -12
- 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-LBDWFWPK.js → chunk-52EZH2QQ.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-7OEGNA4X.js +20 -0
- package/dist/cli-bundle/chunks/{chunk-APWPC4ZZ.js → chunk-7VHINXZP.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-EMEEHV2Y.js +2 -0
- package/dist/cli-bundle/chunks/chunk-JGKTOBVB.js +6 -0
- package/dist/cli-bundle/chunks/{chunk-PSNS537F.js → chunk-JSUJWIHQ.js} +30 -30
- package/dist/cli-bundle/chunks/{chunk-N5EXRYCZ.js → chunk-LNKLQYBG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YH6H3UVE.js → chunk-N56CAQBU.js} +63 -64
- package/dist/cli-bundle/chunks/chunk-NC3QVGDD.js +8 -0
- package/dist/cli-bundle/chunks/{chunk-AM2XOZKE.js → chunk-RJ5N44WY.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HXHFKXLV.js → chunk-VIMQCFCK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UBTYYZIE.js → chunk-WBBW3WQX.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-X2H6UR26.js +236 -0
- package/dist/cli-bundle/chunks/{register-list-query-BJ742QOR.js → register-list-query-FKKFQ66D.js} +7 -7
- package/dist/cli-bundle/chunks/{register-mutation-GGGBRIH2.js → register-mutation-EWMMVZJB.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-E6HXYHNM.js → register-operations-GEQ2H7PS.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-4ZVTVEPY.js → register-setup-PSJTQBBO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-NNW5BS5L.js → chunk-3RNUMVK4.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-3LQEBXU5.js → chunk-4KQFMOM7.js} +6 -6
- package/dist/cli-bundle/focused-chunks/{chunk-RAA7SVRA.js → chunk-52I2SNKJ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6BTUISKV.js → chunk-5KRACGBK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-5OO54BIV.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-5TBAVZDR.js +20 -0
- package/dist/cli-bundle/focused-chunks/{chunk-R23T7GFZ.js → chunk-FQKPOZKS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IIKFTJVC.js → chunk-H3P77KVU.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-HTA3TNC3.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-73UNAJHD.js → chunk-JKBH7YGX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KGFRQ34R.js → chunk-KIIFVULU.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SOB7X4FJ.js → chunk-N6FUKTZS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-PDYE7QDX.js +166 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RU6GCFN3.js → chunk-Q4VNCTR2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QMNAY25P.js → chunk-THYQR3ON.js} +61 -62
- package/dist/cli-bundle/focused-chunks/{chunk-DVK7VKZL.js → chunk-TYLG5VEB.js} +2 -2
- package/dist/cli-bundle/main.js +27 -27
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +23 -23
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +51 -51
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +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 +702 -702
- package/dist/core/extensions/flag-definition-validation.d.ts +19 -6
- package/dist/core/extensions/flag-definition-validation.js +1 -1
- package/dist/core/extensions/flag-value-types.d.ts +16 -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-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-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 -4
- 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 +14 -14
- 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 +28 -26
- package/dist/core/sentry/helpers.js +1 -1
- package/dist/core/sentry/instrument.d.ts +52 -50
- 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 +3 -3
- 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-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/telemetry/runtime.js +2 -2
- 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/tool-definitions.d.ts +27 -27
- 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/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/grammar-contracts.d.ts +61 -61
- package/dist/sdk/cli-contracts/registration-helpers.d.ts +56 -56
- 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/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-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 +8 -8
- 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-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/defect-recurrence.js +2 -1
- 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.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 +69 -69
- 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 +73 -73
- package/dist/sdk/learnings.d.ts +23 -23
- package/dist/sdk/lifecycle/append.d.ts +8 -8
- package/dist/sdk/lifecycle/claim.d.ts +38 -38
- package/dist/sdk/lifecycle/close-many.d.ts +71 -71
- package/dist/sdk/lifecycle/close.d.ts +18 -18
- package/dist/sdk/lifecycle/copy.d.ts +10 -10
- package/dist/sdk/lifecycle/core-field-recovery.d.ts +1 -1
- 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/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/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/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/task-composition.d.ts +7 -7
- package/dist/sdk/lifecycle/update-many.d.ts +61 -61
- package/dist/sdk/lifecycle/update.d.ts +120 -120
- package/dist/sdk/lifecycle-completion.d.ts +14 -14
- package/dist/sdk/lifecycle-policy.d.ts +31 -31
- 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/install.js +1 -1
- 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-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-primitives.d.ts +54 -52
- 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/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 +13 -13
- 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 +250 -246
- package/dist/sdk/testing.js +2 -2
- 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.d.ts +9 -9
- package/dist/types.d.ts +540 -540
- package/docs/COMMANDS.md +11 -2
- package/docs/CONFIGURATION.md +43 -0
- package/docs/DEFECT_RECURRENCE.md +8 -0
- package/docs/EXTENSIONS.md +1 -1
- package/docs/EXTENSION_AUTHOR_CONTRACTS.md +33 -0
- package/docs/LINKED_TEST_EDITS.md +15 -0
- package/docs/MERGE_SAFETY.md +8 -0
- package/docs/RELEASING.md +2 -0
- package/docs/SDK.md +19 -0
- package/docs/TESTING.md +21 -1
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +4 -3
- package/marketplace.json +1 -1
- package/package.json +3 -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-DJDRHJBP.js +0 -234
- package/dist/cli-bundle/chunks/chunk-DUK5DHI6.js +0 -8
- package/dist/cli-bundle/chunks/chunk-IFPJDJUM.js +0 -20
- package/dist/cli-bundle/chunks/chunk-RL45OYTL.js +0 -6
- package/dist/cli-bundle/chunks/chunk-WYZGZV2M.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-F5J3ATMV.js +0 -165
- package/dist/cli-bundle/focused-chunks/chunk-IOTNG6CN.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-S6ITXQ5T.js +0 -20
- package/dist/cli-bundle/focused-chunks/chunk-UPJA45K7.js +0 -26
package/dist/sdk/mcp/skills.d.ts
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
import { PM_MCP_PROTOCOL_VERSION,
|
|
1
|
+
import { PM_MCP_PROTOCOL_VERSION,type PmMcpRequestContext } from "./protocol.js";
|
|
2
2
|
/** Draft extension identifier proposed by SEP-2640. */
|
|
3
|
-
export declare const PM_MCP_SKILLS_EXTENSION:
|
|
3
|
+
export declare const PM_MCP_SKILLS_EXTENSION:"io.modelcontextprotocol/skills";
|
|
4
4
|
/** Exact draft proposal revision implemented by pm. */
|
|
5
|
-
export declare const PM_MCP_SKILLS_DRAFT_REVISION:
|
|
5
|
+
export declare const PM_MCP_SKILLS_DRAFT_REVISION:"SEP-2640@a3e147ca2710f68214247aecc729731ee1ae8d03";
|
|
6
6
|
/** Server-side draft capability advertised through discovery. */
|
|
7
|
-
export declare const PM_MCP_SKILLS_SERVER_CAPABILITY:
|
|
8
|
-
revision:
|
|
9
|
-
status:
|
|
10
|
-
directoryRead:
|
|
7
|
+
export declare const PM_MCP_SKILLS_SERVER_CAPABILITY:Readonly<{
|
|
8
|
+
revision:"SEP-2640@a3e147ca2710f68214247aecc729731ee1ae8d03";
|
|
9
|
+
status:"draft";
|
|
10
|
+
directoryRead:true;
|
|
11
11
|
}>;
|
|
12
12
|
/** Require exact draft negotiation for a skills method. */
|
|
13
|
-
export declare function assertPmMcpSkillsCapability(context:
|
|
13
|
+
export declare function assertPmMcpSkillsCapability(context:PmMcpRequestContext,directoryRead?:boolean):void;
|
|
14
14
|
/** Security and context limits applied independently to every skill origin. */
|
|
15
|
-
export declare const PM_MCP_SKILL_LIMITS:
|
|
16
|
-
maxFilesPerSkill:
|
|
17
|
-
maxFileBytes:
|
|
18
|
-
maxSkillBytes:
|
|
19
|
-
defaultPageSize:
|
|
20
|
-
maxPageSize:
|
|
15
|
+
export declare const PM_MCP_SKILL_LIMITS:Readonly<{
|
|
16
|
+
maxFilesPerSkill:512;
|
|
17
|
+
maxFileBytes:number;
|
|
18
|
+
maxSkillBytes:number;
|
|
19
|
+
defaultPageSize:20;
|
|
20
|
+
maxPageSize:100;
|
|
21
21
|
}>;
|
|
22
22
|
/** Origin from which a skill was loaded. */
|
|
23
23
|
export type PmMcpSkillOrigin = "package" | "workspace";
|
|
24
24
|
/** One immutable file advertised by a skill. */
|
|
25
25
|
export interface PmMcpSkillResource {
|
|
26
26
|
/** Addressable skill resource URI. */
|
|
27
|
-
uri:
|
|
27
|
+
uri:string;
|
|
28
28
|
/** SEP-2640 SHA-256 digest of the exact bytes returned by reads. */
|
|
29
|
-
digest:
|
|
29
|
+
digest:string;
|
|
30
30
|
/** Exact byte length. */
|
|
31
|
-
size:
|
|
31
|
+
size:number;
|
|
32
32
|
}
|
|
33
33
|
/** Discoverable skill descriptor from the current SEP draft. */
|
|
34
34
|
export interface PmMcpSkillDescriptor {
|
|
35
35
|
/** URI of the skill's mandatory SKILL.md. */
|
|
36
|
-
uri:
|
|
36
|
+
uri:string;
|
|
37
37
|
/** Parsed, verbatim frontmatter object. */
|
|
38
|
-
frontmatter:
|
|
38
|
+
frontmatter:Record<string,unknown>;
|
|
39
39
|
/** Every bounded file in the skill directory. */
|
|
40
|
-
resources:
|
|
40
|
+
resources:PmMcpSkillResource[];
|
|
41
41
|
/** pm-specific compatibility and trust provenance. */
|
|
42
|
-
_meta:
|
|
43
|
-
contractVersion:
|
|
44
|
-
extensionRevision:
|
|
45
|
-
origin:
|
|
46
|
-
packageVersion:
|
|
47
|
-
protocolVersion:
|
|
48
|
-
trust:
|
|
49
|
-
estimatedTokens:
|
|
42
|
+
_meta:{
|
|
43
|
+
contractVersion:1;
|
|
44
|
+
extensionRevision:typeof PM_MCP_SKILLS_DRAFT_REVISION;
|
|
45
|
+
origin:PmMcpSkillOrigin;
|
|
46
|
+
packageVersion:string;
|
|
47
|
+
protocolVersion:typeof PM_MCP_PROTOCOL_VERSION;
|
|
48
|
+
trust:"untrusted";
|
|
49
|
+
estimatedTokens:number;
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
/** Inputs for loading the canonical package skills plus repository overrides. */
|
|
53
53
|
export interface LoadPmMcpSkillsOptions {
|
|
54
54
|
/** pm package root containing `.agents/skills`. */
|
|
55
|
-
packageRoot:
|
|
55
|
+
packageRoot:string;
|
|
56
56
|
/** Workspace root whose `.agents/skills` override package skills by name. */
|
|
57
|
-
workspaceRoot?:
|
|
57
|
+
workspaceRoot?:string;
|
|
58
58
|
/** Exact package version included in compatibility metadata. */
|
|
59
|
-
packageVersion:
|
|
59
|
+
packageVersion:string;
|
|
60
60
|
}
|
|
61
61
|
/** List request inputs with opaque cursor pagination. */
|
|
62
62
|
export interface ListPmMcpSkillsOptions {
|
|
63
63
|
/** Opaque cursor returned by a previous page. */
|
|
64
|
-
cursor?:
|
|
64
|
+
cursor?:string;
|
|
65
65
|
/** Requested page size, bounded to 100. */
|
|
66
|
-
limit?:
|
|
66
|
+
limit?:number;
|
|
67
67
|
}
|
|
68
68
|
/** One deterministic list page. */
|
|
69
69
|
export interface ListPmMcpSkillsResult {
|
|
70
70
|
/** Skills in lexical URI order. */
|
|
71
|
-
skills:
|
|
71
|
+
skills:PmMcpSkillDescriptor[];
|
|
72
72
|
/** Opaque continuation cursor when more skills exist. */
|
|
73
|
-
nextCursor?:
|
|
73
|
+
nextCursor?:string;
|
|
74
74
|
/** Explicit completeness signal. */
|
|
75
|
-
hasMore:
|
|
75
|
+
hasMore:boolean;
|
|
76
76
|
}
|
|
77
77
|
/** Exact read result for one skill resource. */
|
|
78
78
|
export interface ReadPmMcpSkillResourceResult {
|
|
79
79
|
/** Resource content returned as UTF-8 text or lossless Base64 bytes. */
|
|
80
|
-
contents:
|
|
81
|
-
uri:
|
|
82
|
-
mimeType:
|
|
83
|
-
text:
|
|
84
|
-
_meta:
|
|
85
|
-
digest:
|
|
86
|
-
origin:
|
|
87
|
-
trust:
|
|
80
|
+
contents:Array<{
|
|
81
|
+
uri:string;
|
|
82
|
+
mimeType:"text/markdown" | "text/plain";
|
|
83
|
+
text:string;
|
|
84
|
+
_meta:{
|
|
85
|
+
digest:string;
|
|
86
|
+
origin:PmMcpSkillOrigin;
|
|
87
|
+
trust:"untrusted";
|
|
88
88
|
};
|
|
89
89
|
} | {
|
|
90
|
-
uri:
|
|
91
|
-
mimeType:
|
|
92
|
-
blob:
|
|
93
|
-
_meta:
|
|
94
|
-
digest:
|
|
95
|
-
origin:
|
|
96
|
-
trust:
|
|
90
|
+
uri:string;
|
|
91
|
+
mimeType:"application/octet-stream";
|
|
92
|
+
blob:string;
|
|
93
|
+
_meta:{
|
|
94
|
+
digest:string;
|
|
95
|
+
origin:PmMcpSkillOrigin;
|
|
96
|
+
trust:"untrusted";
|
|
97
97
|
};
|
|
98
98
|
}>;
|
|
99
99
|
}
|
|
100
100
|
/** Direct-child directory listing defined by the current SEP draft. */
|
|
101
101
|
export interface ReadPmMcpSkillDirectoryResult {
|
|
102
102
|
/** Direct child file and directory resources in lexical URI order. */
|
|
103
|
-
resources:
|
|
104
|
-
uri:
|
|
105
|
-
name:
|
|
106
|
-
mimeType:
|
|
103
|
+
resources:Array<{
|
|
104
|
+
uri:string;
|
|
105
|
+
name:string;
|
|
106
|
+
mimeType:"application/octet-stream" | "inode/directory" | "text/markdown" | "text/plain";
|
|
107
107
|
}>;
|
|
108
108
|
/** Opaque continuation cursor when more direct children exist. */
|
|
109
|
-
nextCursor?:
|
|
109
|
+
nextCursor?:string;
|
|
110
110
|
/** Explicit completeness signal for this directory page. */
|
|
111
|
-
hasMore:
|
|
111
|
+
hasMore:boolean;
|
|
112
112
|
}
|
|
113
113
|
/** Immutable in-memory registry for one request's package/workspace origins. */
|
|
114
114
|
export declare class PmMcpSkillRegistry {
|
|
115
115
|
#private;
|
|
116
116
|
private constructor();
|
|
117
117
|
/** Load package skills and apply validated workspace overrides by name. */
|
|
118
|
-
static load(options:
|
|
118
|
+
static load(options:LoadPmMcpSkillsOptions):Promise<PmMcpSkillRegistry>;
|
|
119
119
|
/** List skills in deterministic pages without loading file bodies. */
|
|
120
|
-
list(options?:
|
|
120
|
+
list(options?:ListPmMcpSkillsOptions):ListPmMcpSkillsResult;
|
|
121
121
|
/** Get one skill descriptor by its SKILL.md URI. */
|
|
122
|
-
get(uri:
|
|
122
|
+
get(uri:string):PmMcpSkillDescriptor;
|
|
123
123
|
/** Read one digest-bound skill resource without following filesystem links. */
|
|
124
|
-
read(uri:
|
|
124
|
+
read(uri:string):ReadPmMcpSkillResourceResult;
|
|
125
125
|
/** List one directory's direct children with opaque cursor pagination. */
|
|
126
|
-
readDirectory(uri:
|
|
126
|
+
readDirectory(uri:string,options?:ListPmMcpSkillsOptions):ReadPmMcpSkillDirectoryResult;
|
|
127
127
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Implements transport-neutral MCP 2026-07-28 subscription filtering,
|
|
5
5
|
* acknowledgment, notification correlation, and graceful closure.
|
|
6
6
|
*/
|
|
7
|
-
import { type PmMcpImplementation,
|
|
7
|
+
import { type PmMcpImplementation,type PmMcpServerCapabilities } from "./protocol.js";
|
|
8
8
|
/** Notification/result metadata key that correlates a subscription stream. */
|
|
9
9
|
export declare const PM_MCP_SUBSCRIPTION_ID_META_KEY = "io.modelcontextprotocol/subscriptionId";
|
|
10
10
|
/** JSON-RPC identifiers permitted for long-lived subscription requests. */
|
|
@@ -12,54 +12,54 @@ export type PmMcpSubscriptionId = string | number;
|
|
|
12
12
|
/** Notification families a client may opt into on one listen stream. */
|
|
13
13
|
export interface PmMcpSubscriptionFilter {
|
|
14
14
|
/** Receive notifications when the tool list changes. */
|
|
15
|
-
toolsListChanged?:
|
|
15
|
+
toolsListChanged?:boolean;
|
|
16
16
|
/** Receive notifications when the prompt list changes. */
|
|
17
|
-
promptsListChanged?:
|
|
17
|
+
promptsListChanged?:boolean;
|
|
18
18
|
/** Receive notifications when the resource list changes. */
|
|
19
|
-
resourcesListChanged?:
|
|
19
|
+
resourcesListChanged?:boolean;
|
|
20
20
|
/** Receive updates for these exact resource URIs. */
|
|
21
|
-
resourceSubscriptions?:
|
|
21
|
+
resourceSubscriptions?:string[];
|
|
22
22
|
}
|
|
23
23
|
/** One JSON-RPC notification emitted by a subscription. */
|
|
24
24
|
export interface PmMcpSubscriptionNotification {
|
|
25
25
|
/** JSON-RPC revision. */
|
|
26
|
-
jsonrpc:
|
|
26
|
+
jsonrpc:"2.0";
|
|
27
27
|
/** Notification method. */
|
|
28
|
-
method:
|
|
28
|
+
method:string;
|
|
29
29
|
/** Correlated notification parameters. */
|
|
30
|
-
params:
|
|
30
|
+
params:Record<string,unknown>;
|
|
31
31
|
}
|
|
32
32
|
/** Sink used by stdio and HTTP adapters to write subscription messages. */
|
|
33
|
-
export type PmMcpSubscriptionSink = (notification:
|
|
33
|
+
export type PmMcpSubscriptionSink = (notification:PmMcpSubscriptionNotification) => void | Promise<void>;
|
|
34
34
|
/** Validate and clone one subscription notification filter. */
|
|
35
|
-
export declare function parseMcpSubscriptionFilter(value:
|
|
35
|
+
export declare function parseMcpSubscriptionFilter(value:unknown):PmMcpSubscriptionFilter;
|
|
36
36
|
/** Intersect a requested filter with notification capabilities the server advertises. */
|
|
37
|
-
export declare function resolveMcpAcknowledgedSubscriptionFilter(requested:
|
|
37
|
+
export declare function resolveMcpAcknowledgedSubscriptionFilter(requested:PmMcpSubscriptionFilter,capabilities:PmMcpServerCapabilities):PmMcpSubscriptionFilter;
|
|
38
38
|
/** Manage concurrent stateless subscriptions without retaining client sessions. */
|
|
39
39
|
export declare class PmMcpSubscriptionRegistry {
|
|
40
40
|
#private;
|
|
41
41
|
/** Create a registry shared by one concrete transport process. */
|
|
42
|
-
constructor(input:
|
|
43
|
-
capabilities:
|
|
44
|
-
serverInfo:
|
|
42
|
+
constructor(input:{
|
|
43
|
+
capabilities:PmMcpServerCapabilities;
|
|
44
|
+
serverInfo:PmMcpImplementation;
|
|
45
45
|
});
|
|
46
46
|
/** Number of currently open request-scoped subscription streams. */
|
|
47
|
-
get size():
|
|
47
|
+
get size():number;
|
|
48
48
|
/** Open a subscription and emit its required first acknowledgment. */
|
|
49
|
-
open(input:
|
|
50
|
-
id:
|
|
51
|
-
notifications:
|
|
52
|
-
sink:
|
|
53
|
-
}):
|
|
49
|
+
open(input:{
|
|
50
|
+
id:PmMcpSubscriptionId;
|
|
51
|
+
notifications:unknown;
|
|
52
|
+
sink:PmMcpSubscriptionSink;
|
|
53
|
+
}):Promise<PmMcpSubscriptionFilter>;
|
|
54
54
|
/** Emit one list-change notification only to streams that opted into it. */
|
|
55
|
-
emitListChanged(family:
|
|
55
|
+
emitListChanged(family:"tools" | "prompts" | "resources"):Promise<number>;
|
|
56
56
|
/** Emit a resource update only to streams that opted into the exact URI. */
|
|
57
|
-
emitResourceUpdated(uri:
|
|
57
|
+
emitResourceUpdated(uri:string):Promise<number>;
|
|
58
58
|
/** Gracefully close one subscription and return its final modern result. */
|
|
59
|
-
close(id:
|
|
59
|
+
close(id:PmMcpSubscriptionId):Record<string,unknown> | undefined;
|
|
60
60
|
/** Gracefully close every stream and preserve stable creation order. */
|
|
61
|
-
closeAll():
|
|
62
|
-
id:
|
|
63
|
-
result:
|
|
61
|
+
closeAll():Array<{
|
|
62
|
+
id:PmMcpSubscriptionId;
|
|
63
|
+
result:Record<string,unknown>;
|
|
64
64
|
}>;
|
|
65
65
|
}
|
package/dist/sdk/mcp/tasks.d.ts
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
1
|
import { type PmMcpRequestContext } from "./protocol.js";
|
|
2
|
-
import { type PmMcpInputRequests,
|
|
2
|
+
import { type PmMcpInputRequests,type PmMcpInputResponses } from "./interactions.js";
|
|
3
3
|
/** Standard identifier used to negotiate the official MCP tasks extension. */
|
|
4
|
-
export declare const PM_MCP_TASKS_EXTENSION:
|
|
4
|
+
export declare const PM_MCP_TASKS_EXTENSION:"io.modelcontextprotocol/tasks";
|
|
5
5
|
/** Lifecycle states defined by the official MCP tasks extension. */
|
|
6
|
-
export declare const PM_MCP_TASK_STATUSES:
|
|
6
|
+
export declare const PM_MCP_TASK_STATUSES:readonly ["working","input_required","completed","failed","cancelled"];
|
|
7
7
|
/** Current state of a durable MCP task. */
|
|
8
8
|
export type PmMcpTaskStatus = (typeof PM_MCP_TASK_STATUSES)[number];
|
|
9
9
|
/** JSON-RPC error retained by a failed task. */
|
|
10
10
|
export interface PmMcpTaskError {
|
|
11
11
|
/** JSON-RPC or MCP error code. */
|
|
12
|
-
code:
|
|
12
|
+
code:number;
|
|
13
13
|
/** Bounded human-readable failure summary. */
|
|
14
|
-
message:
|
|
14
|
+
message:string;
|
|
15
15
|
/** Optional structured diagnostics. */
|
|
16
|
-
data?:
|
|
16
|
+
data?:Record<string,unknown>;
|
|
17
17
|
}
|
|
18
18
|
/** Common public fields returned for every task state. */
|
|
19
19
|
export interface PmMcpTask {
|
|
20
20
|
/** Stable server-minted task identifier. */
|
|
21
|
-
taskId:
|
|
21
|
+
taskId:string;
|
|
22
22
|
/** Current extension lifecycle state. */
|
|
23
|
-
status:
|
|
23
|
+
status:PmMcpTaskStatus;
|
|
24
24
|
/** Optional bounded human-readable state summary. */
|
|
25
|
-
statusMessage?:
|
|
25
|
+
statusMessage?:string;
|
|
26
26
|
/** ISO 8601 creation timestamp. */
|
|
27
|
-
createdAt:
|
|
27
|
+
createdAt:string;
|
|
28
28
|
/** ISO 8601 last mutation timestamp. */
|
|
29
|
-
lastUpdatedAt:
|
|
29
|
+
lastUpdatedAt:string;
|
|
30
30
|
/** Milliseconds from creation before server retention may end. */
|
|
31
|
-
ttlMs:
|
|
31
|
+
ttlMs:number | null;
|
|
32
32
|
/** Suggested client polling interval. */
|
|
33
|
-
pollIntervalMs?:
|
|
33
|
+
pollIntervalMs?:number;
|
|
34
34
|
/** Additional forward-compatible extension fields. */
|
|
35
|
-
[key:
|
|
35
|
+
[key:string]:unknown;
|
|
36
36
|
}
|
|
37
37
|
/** Detailed public task state returned by `tasks/get`. */
|
|
38
38
|
export type PmMcpDetailedTask = (PmMcpTask & {
|
|
39
|
-
status:
|
|
39
|
+
status:"working";
|
|
40
40
|
}) | (PmMcpTask & {
|
|
41
|
-
status:
|
|
42
|
-
inputRequests:
|
|
41
|
+
status:"input_required";
|
|
42
|
+
inputRequests:PmMcpInputRequests;
|
|
43
43
|
}) | (PmMcpTask & {
|
|
44
|
-
status:
|
|
45
|
-
result:
|
|
44
|
+
status:"completed";
|
|
45
|
+
result:Record<string,unknown>;
|
|
46
46
|
}) | (PmMcpTask & {
|
|
47
|
-
status:
|
|
48
|
-
error:
|
|
47
|
+
status:"failed";
|
|
48
|
+
error:PmMcpTaskError;
|
|
49
49
|
}) | (PmMcpTask & {
|
|
50
|
-
status:
|
|
50
|
+
status:"cancelled";
|
|
51
51
|
});
|
|
52
52
|
/** Task handle returned instead of a synchronous tool result. */
|
|
53
53
|
export type PmMcpCreateTaskResult = PmMcpTask & {
|
|
54
54
|
/** Official extension result discriminator. */
|
|
55
|
-
resultType:
|
|
55
|
+
resultType:"task";
|
|
56
56
|
};
|
|
57
57
|
/** Construction options for one filesystem-backed task provider. */
|
|
58
58
|
export interface PmMcpTaskStoreOptions {
|
|
59
59
|
/** Tracker root whose ignored runtime area owns task records. */
|
|
60
|
-
pmRoot:
|
|
60
|
+
pmRoot:string;
|
|
61
61
|
/** Lock owner retained in diagnostics. */
|
|
62
|
-
owner?:
|
|
62
|
+
owner?:string;
|
|
63
63
|
/** Deterministic clock seam used by conformance tests. */
|
|
64
|
-
now?:
|
|
64
|
+
now?:() => Date;
|
|
65
65
|
/** Deterministic task-id seam used by conformance tests. */
|
|
66
|
-
taskIdFactory?:
|
|
66
|
+
taskIdFactory?:() => string;
|
|
67
67
|
/** Process identifier used for restart recovery. */
|
|
68
|
-
workerPid?:
|
|
68
|
+
workerPid?:number;
|
|
69
69
|
}
|
|
70
70
|
/** Filesystem-backed provider for official MCP task methods and state changes. */
|
|
71
71
|
export declare class PmMcpTaskStore {
|
|
72
72
|
#private;
|
|
73
73
|
/** Create one task store scoped to a tracker runtime directory. */
|
|
74
|
-
constructor(options:
|
|
74
|
+
constructor(options:PmMcpTaskStoreOptions);
|
|
75
75
|
/** Durably create a working task before returning its public handle. */
|
|
76
|
-
create(input:
|
|
77
|
-
principal:
|
|
78
|
-
ttlMs?:
|
|
79
|
-
pollIntervalMs?:
|
|
80
|
-
statusMessage?:
|
|
81
|
-
}):
|
|
76
|
+
create(input:{
|
|
77
|
+
principal:string;
|
|
78
|
+
ttlMs?:number | null;
|
|
79
|
+
pollIntervalMs?:number;
|
|
80
|
+
statusMessage?:string;
|
|
81
|
+
}):Promise<PmMcpCreateTaskResult>;
|
|
82
82
|
/** Return authoritative task state, applying expiry and restart recovery. */
|
|
83
|
-
get(taskId:
|
|
83
|
+
get(taskId:string,principal:string):Promise<PmMcpDetailedTask>;
|
|
84
84
|
/** Transition a nonterminal task to an MRTR input-required state. */
|
|
85
|
-
requireInput(input:
|
|
86
|
-
taskId:
|
|
87
|
-
principal:
|
|
88
|
-
requestContext:
|
|
89
|
-
inputRequests:
|
|
90
|
-
statusMessage?:
|
|
91
|
-
}):
|
|
85
|
+
requireInput(input:{
|
|
86
|
+
taskId:string;
|
|
87
|
+
principal:string;
|
|
88
|
+
requestContext:PmMcpRequestContext;
|
|
89
|
+
inputRequests:unknown;
|
|
90
|
+
statusMessage?:string;
|
|
91
|
+
}):Promise<PmMcpDetailedTask>;
|
|
92
92
|
/** Accept outstanding task inputs, ignoring unknown and duplicate response keys. */
|
|
93
|
-
update(taskId:
|
|
94
|
-
acceptedKeys:
|
|
95
|
-
remainingKeys:
|
|
93
|
+
update(taskId:string,principal:string,inputResponses:unknown):Promise<{
|
|
94
|
+
acceptedKeys:string[];
|
|
95
|
+
remainingKeys:string[];
|
|
96
96
|
}>;
|
|
97
97
|
/** Retrieve and clear accepted task inputs for a resumed worker. */
|
|
98
|
-
takeInputResponses(taskId:
|
|
98
|
+
takeInputResponses(taskId:string,principal:string):Promise<PmMcpInputResponses>;
|
|
99
99
|
/** Record one immutable successful terminal result. */
|
|
100
|
-
complete(taskId:
|
|
100
|
+
complete(taskId:string,principal:string,result:Record<string,unknown>):Promise<PmMcpDetailedTask>;
|
|
101
101
|
/** Record one immutable JSON-RPC terminal failure. */
|
|
102
|
-
fail(taskId:
|
|
102
|
+
fail(taskId:string,principal:string,error:PmMcpTaskError):Promise<PmMcpDetailedTask>;
|
|
103
103
|
/** Cooperatively cancel a nonterminal task and acknowledge terminal tasks idempotently. */
|
|
104
|
-
cancel(taskId:
|
|
104
|
+
cancel(taskId:string,principal:string):Promise<PmMcpDetailedTask>;
|
|
105
105
|
}
|
|
106
106
|
/** Build a filesystem-backed task provider for a tracker runtime root. */
|
|
107
|
-
export declare function createMcpTaskStore(options:
|
|
107
|
+
export declare function createMcpTaskStore(options:PmMcpTaskStoreOptions):PmMcpTaskStore;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/** Case-insensitive HTTP header input accepted by public transport helpers. */
|
|
2
|
-
export type PmMcpHttpHeaders = Record<string,
|
|
2
|
+
export type PmMcpHttpHeaders = Record<string,string | readonly string[] | undefined>;
|
|
3
3
|
/** One statically reachable `x-mcp-header` annotation. */
|
|
4
4
|
export interface PmMcpHeaderAnnotation {
|
|
5
5
|
/** Suffix used to construct `Mcp-Param-{name}`. */
|
|
6
|
-
name:
|
|
6
|
+
name:string;
|
|
7
7
|
/** Exact property path in tool-call arguments. */
|
|
8
|
-
path:
|
|
8
|
+
path:string[];
|
|
9
9
|
/** Primitive schema type permitted by the specification. */
|
|
10
|
-
type:
|
|
10
|
+
type:"boolean" | "integer" | "string";
|
|
11
11
|
}
|
|
12
12
|
/** Encode a name or primitive parameter into the protocol's safe header form. */
|
|
13
|
-
export declare function encodeMcpHttpHeaderValue(value:
|
|
13
|
+
export declare function encodeMcpHttpHeaderValue(value:string | number | boolean):string;
|
|
14
14
|
/** Decode and validate a mirrored MCP header value. */
|
|
15
|
-
export declare function decodeMcpHttpHeaderValue(value:
|
|
15
|
+
export declare function decodeMcpHttpHeaderValue(value:string,header:string):string;
|
|
16
16
|
/** Parse valid statically reachable custom-header annotations from a tool schema. */
|
|
17
|
-
export declare function collectMcpHeaderAnnotations(schema:
|
|
17
|
+
export declare function collectMcpHeaderAnnotations(schema:unknown):PmMcpHeaderAnnotation[];
|
|
18
18
|
/** Build required Streamable HTTP headers for one modern client request. */
|
|
19
|
-
export declare function buildMcpHttpRequestHeaders(input:
|
|
20
|
-
request:
|
|
21
|
-
toolSchema?:
|
|
22
|
-
}):
|
|
19
|
+
export declare function buildMcpHttpRequestHeaders(input:{
|
|
20
|
+
request:Record<string,unknown>;
|
|
21
|
+
toolSchema?:unknown;
|
|
22
|
+
}):Record<string,string>;
|
|
23
23
|
/** Validate required Streamable HTTP headers against the JSON-RPC body. */
|
|
24
|
-
export declare function validateMcpHttpRequestHeaders(input:
|
|
25
|
-
headers:
|
|
26
|
-
request:
|
|
27
|
-
toolSchema?:
|
|
28
|
-
}):
|
|
24
|
+
export declare function validateMcpHttpRequestHeaders(input:{
|
|
25
|
+
headers:PmMcpHttpHeaders;
|
|
26
|
+
request:Record<string,unknown>;
|
|
27
|
+
toolSchema?:unknown;
|
|
28
|
+
}):void;
|
|
29
29
|
/** Required protocol version exposed for clients constructing headers manually. */
|
|
30
|
-
export declare const PM_MCP_HTTP_PROTOCOL_VERSION:
|
|
30
|
+
export declare const PM_MCP_HTTP_PROTOCOL_VERSION:"2026-07-28";
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import type { GlobalOptions } from "../../core/shared/command-types.js";
|
|
6
6
|
import { type MergeDecisionReceipt } from "./receipts.js";
|
|
7
7
|
/** Preview or record restored-origin dispositions without treating them as applied merges. */
|
|
8
|
-
export declare function settleAbandonedMergeReceipts(params:
|
|
9
|
-
cwd:
|
|
10
|
-
receipts:
|
|
11
|
-
dryRun:
|
|
12
|
-
author?:
|
|
13
|
-
message?:
|
|
14
|
-
global:
|
|
15
|
-
}):
|
|
8
|
+
export declare function settleAbandonedMergeReceipts(params:{
|
|
9
|
+
cwd:string | null;
|
|
10
|
+
receipts:readonly MergeDecisionReceipt[];
|
|
11
|
+
dryRun:boolean;
|
|
12
|
+
author?:string;
|
|
13
|
+
message?:string;
|
|
14
|
+
global:GlobalOptions;
|
|
15
|
+
}):Promise<string[]>;
|
|
@@ -2,74 +2,74 @@ import type { GlobalOptions } from "../../core/shared/command-types.js";
|
|
|
2
2
|
import { type MergePreferredSide } from "./three-way.js";
|
|
3
3
|
import { type MergeDecisionReceiptSummary } from "./receipts.js";
|
|
4
4
|
/** Supported values accepted by the merge driver artifact contract across CLI, SDK, and MCP surfaces. */
|
|
5
|
-
export declare const MERGE_DRIVER_ARTIFACT_VALUES:
|
|
5
|
+
export declare const MERGE_DRIVER_ARTIFACT_VALUES:readonly ["item","history","relationship","json"];
|
|
6
6
|
/** Restricts merge driver artifact values accepted by command, SDK, and storage contracts. */
|
|
7
7
|
export type MergeDriverArtifact = (typeof MERGE_DRIVER_ARTIFACT_VALUES)[number];
|
|
8
8
|
/** Documents the merge driver options payload exchanged by command, SDK, and package integrations. */
|
|
9
9
|
export interface MergeDriverOptions {
|
|
10
10
|
/** Artifact class being merged: item document, history JSONL stream, relationship event JSONL store, or key-level JSON config. */
|
|
11
|
-
artifact:
|
|
11
|
+
artifact:string;
|
|
12
12
|
/** Path to the common-ancestor version (git %O). */
|
|
13
|
-
basePath:
|
|
13
|
+
basePath:string;
|
|
14
14
|
/** Path to the current-branch version (git %A); also the default output path per the git merge-driver protocol. */
|
|
15
|
-
oursPath:
|
|
15
|
+
oursPath:string;
|
|
16
16
|
/** Path to the other-branch version (git %B). */
|
|
17
|
-
theirsPath:
|
|
17
|
+
theirsPath:string;
|
|
18
18
|
/** Optional explicit output path overriding the git default of writing to the ours path. */
|
|
19
|
-
outputPath?:
|
|
19
|
+
outputPath?:string;
|
|
20
20
|
/** Original repository-relative item path supplied by Git as `%P`, used to detect item format when temporary side paths lack extensions. */
|
|
21
|
-
itemPath?:
|
|
21
|
+
itemPath?:string;
|
|
22
22
|
/** Side that wins unresolvable conflicts (default "ours"). */
|
|
23
|
-
prefer?:
|
|
23
|
+
prefer?:string;
|
|
24
24
|
}
|
|
25
25
|
/** Documents the merge driver result payload exchanged by command, SDK, and package integrations. */
|
|
26
26
|
export interface MergeDriverResult {
|
|
27
27
|
/** Whether the merge completed without unresolvable conflicts. */
|
|
28
|
-
ok:
|
|
28
|
+
ok:boolean;
|
|
29
29
|
/** Artifact class that was merged. */
|
|
30
|
-
artifact:
|
|
30
|
+
artifact:MergeDriverArtifact;
|
|
31
31
|
/** Path the merged content was written to. */
|
|
32
|
-
output_path:
|
|
32
|
+
output_path:string;
|
|
33
33
|
/** Invocation-side preference; per-decision retained values remain authoritative. */
|
|
34
|
-
requested_preference:
|
|
34
|
+
requested_preference:MergePreferredSide;
|
|
35
35
|
/** Unresolvable conflict labels: metadata field names (item), dotted key paths (json). Empty for history merges. */
|
|
36
|
-
conflicts:
|
|
36
|
+
conflicts:string[];
|
|
37
37
|
/** History-merge strategy and entry accounting; present only for the history artifact. */
|
|
38
|
-
history?:
|
|
39
|
-
strategy:
|
|
40
|
-
common_entries:
|
|
41
|
-
entries_from_ours:
|
|
42
|
-
entries_from_theirs:
|
|
43
|
-
entries_total:
|
|
44
|
-
reanchored:
|
|
38
|
+
history?:{
|
|
39
|
+
strategy:string;
|
|
40
|
+
common_entries:number;
|
|
41
|
+
entries_from_ours:number;
|
|
42
|
+
entries_from_theirs:number;
|
|
43
|
+
entries_total:number;
|
|
44
|
+
reanchored:boolean;
|
|
45
45
|
};
|
|
46
46
|
/** Relationship-event-merge strategy and accounting; present only for the relationship artifact. */
|
|
47
|
-
relationship?:
|
|
48
|
-
strategy:
|
|
49
|
-
common_entries:
|
|
50
|
-
entries_from_ours:
|
|
51
|
-
entries_from_theirs:
|
|
52
|
-
entries_total:
|
|
53
|
-
reanchored:
|
|
47
|
+
relationship?:{
|
|
48
|
+
strategy:string;
|
|
49
|
+
common_entries:number;
|
|
50
|
+
entries_from_ours:number;
|
|
51
|
+
entries_from_theirs:number;
|
|
52
|
+
entries_total:number;
|
|
53
|
+
reanchored:boolean;
|
|
54
54
|
};
|
|
55
55
|
/** Item-merge field accounting; present only for the item artifact. */
|
|
56
|
-
item?:
|
|
57
|
-
fields_from_theirs:
|
|
58
|
-
union_fields:
|
|
59
|
-
conflict_resolution:
|
|
56
|
+
item?:{
|
|
57
|
+
fields_from_theirs:string[];
|
|
58
|
+
union_fields:string[];
|
|
59
|
+
conflict_resolution:"latest_document_update";
|
|
60
60
|
/** Item scalars ignore branch-direction preference under the convergent recency policy. */
|
|
61
|
-
requested_preference_applied:
|
|
61
|
+
requested_preference_applied:false;
|
|
62
62
|
};
|
|
63
63
|
/** JSON-merge key accounting; present only for the json artifact. */
|
|
64
|
-
json?:
|
|
65
|
-
paths_from_theirs:
|
|
64
|
+
json?:{
|
|
65
|
+
paths_from_theirs:string[];
|
|
66
66
|
};
|
|
67
67
|
/** Clone-local receipt summary for item merge provenance. */
|
|
68
|
-
receipt?:
|
|
68
|
+
receipt?:MergeDecisionReceiptSummary;
|
|
69
69
|
/** Guidance for resolving remaining conflicts or verifying the merged workspace. */
|
|
70
|
-
guidance:
|
|
70
|
+
guidance:string[];
|
|
71
71
|
/** ISO 8601 timestamp recording when generated occurred. */
|
|
72
|
-
generated_at:
|
|
72
|
+
generated_at:string;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Execute one git merge-driver invocation for a tracker artifact. Reads the
|
|
@@ -78,4 +78,4 @@ generated_at: string;
|
|
|
78
78
|
* path, and reports remaining conflicts so the CLI can exit non-zero and let
|
|
79
79
|
* git mark the path unmerged.
|
|
80
80
|
*/
|
|
81
|
-
export declare function runMergeDriver(options:
|
|
81
|
+
export declare function runMergeDriver(options:MergeDriverOptions,global:GlobalOptions):Promise<MergeDriverResult>;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* merge-configuration installer. The CLI `pm merge` command is a shim over
|
|
7
7
|
* this module so packages and hosts can reuse the same merge behavior.
|
|
8
8
|
*/
|
|
9
|
-
export { ITEM_SCALAR_MISSING_VALUE,
|
|
10
|
-
export { inspectMergeReceiptEvidence,
|
|
11
|
-
export { MERGE_DRIVER_ARTIFACT_VALUES,
|
|
12
|
-
export { auditMergeAttributeFence,
|
|
13
|
-
export { runMergeReconcile,
|
|
9
|
+
export { ITEM_SCALAR_MISSING_VALUE,ITEM_LATEST_TIMESTAMP_FIELDS,ITEM_UNION_COLLECTION_FIELDS,encodeItemScalarDecisionValue,hashItemScalarDecisionValue,isItemScalarMissingValue,mergeHistoryStreams,mergeItemDocuments,mergeJsonDocuments,mergeRelationshipEventStreams,type HistoryMergeResult,type HistoryMergeStrategy,type ItemDocumentMergeResult,type JsonDocumentMergeResult,type ItemMergeConflictDecision,type ItemScalarConflictResolution,type ItemScalarResolutionBasis,type MergePreferredSide,type RelationshipStreamMergeResult,} from "./three-way.js";
|
|
10
|
+
export { inspectMergeReceiptEvidence,listMergeReceipts,markMergeReceiptReconciled,runMergeReceiptEvidenceReport,runMergeReceiptReport,summarizeMergeReceipt,type MergeDecisionReceipt,type MergeDecisionReceiptSummary,type MergeReceiptEvidenceReport,type MergeReceiptEvidenceScan,type MergeReceiptInvalidEvidence,type MergeReceiptReport,} from "./receipts.js";
|
|
11
|
+
export { MERGE_DRIVER_ARTIFACT_VALUES,runMergeDriver,type MergeDriverArtifact,type MergeDriverOptions,type MergeDriverResult,} from "./driver.js";
|
|
12
|
+
export { auditMergeAttributeFence,auditMergeDriverConfiguration,buildMergeAttributePatterns,findGitWorkspaceRoot,PM_GITATTRIBUTES_END,PM_GITATTRIBUTES_START,PM_GITATTRIBUTES_V2_END,PM_GITATTRIBUTES_V2_START,refreshMergeAttributeFenceIfInstalled,resolveMergeInstallContext,runMergeInstall,type MergeFenceAuditResult,type MergeDriverConfigurationAuditResult,type MergeFenceRefreshOutcome,type MergeInstallOptions,type MergeInstallContextResolution,type MergeInstallResult,} from "./install.js";
|
|
13
|
+
export { runMergeReconcile,type MergeReconcileOptions,type MergeReconcileResult,} from "./reconcile.js";
|
|
14
14
|
export type { MergeReceiptOperation } from "./receipt-operation.js";
|