@unbrained/pm-cli 2026.11.5 → 2026.11.7
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 +20 -0
- package/dist/cli/expected-revisions.js +1 -1
- package/dist/cli/main.js +1 -1
- package/dist/cli/register-operations.js +1 -1
- package/dist/cli/runtime/close-fields-retry.js +2 -0
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-3DI6CEF3.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-6VRX2CM7.js → chunk-4PPWVIIT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7ZRCYESH.js → chunk-5KHLV7JU.js} +47 -47
- package/dist/cli-bundle/chunks/{chunk-JI2GDE4I.js → chunk-BQ5O3CBF.js} +51 -51
- package/dist/cli-bundle/chunks/{chunk-F6NDMKZ4.js → chunk-COKKWMSC.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-D53G3NOE.js +6 -0
- package/dist/cli-bundle/chunks/{chunk-LS3GI3H4.js → chunk-ETHAZC3F.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-F3B2ULHB.js +122 -0
- package/dist/cli-bundle/chunks/chunk-JZWFZH2K.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-335BZ75D.js → chunk-KPAVZILX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OH6WQ7VT.js → chunk-MQOZNGPS.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-O6TIOKCM.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-XLSHFYXZ.js → chunk-OIBSKKCO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HRFGFIYU.js → chunk-OJZG7Y6S.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HRCMORE7.js → chunk-QG6FLDM4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-D7KYPRK4.js → chunk-RFI4O6NU.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OJDMJT7Y.js → chunk-TGQPCNAD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DAX3AOFI.js → chunk-VM6OGNQC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-S4LPZ4TN.js → chunk-WS2N4TQW.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-UEGXWXUZ.js → chunk-WXVMPLBY.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-2RPORE7M.js → chunk-WYIDX67P.js} +30 -30
- package/dist/cli-bundle/chunks/{chunk-7DEKAXVA.js → chunk-XSEDESNW.js} +2 -2
- package/dist/cli-bundle/chunks/item-revision-SPEKTFBB.js +2 -0
- package/dist/cli-bundle/chunks/item-transaction-BT55TQXE.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-admission-INMM3HHG.js → mutation-admission-LUXUKISJ.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-5Y5JKWU5.js → register-list-query-DU4W7VJU.js} +3 -3
- package/dist/cli-bundle/chunks/{register-mutation-WC7OSQID.js → register-mutation-IC2C53QK.js} +2 -2
- package/dist/cli-bundle/chunks/register-operations-AHDWE2G3.js +2 -0
- package/dist/cli-bundle/chunks/{register-setup-RRFOS7IT.js → register-setup-7BGG3CI3.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-E3MMV4TV.js → stage-S5BYWLGY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-CPMSL4HS.js → chunk-4EXRRSDS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-4LDOL6U7.js +26 -0
- package/dist/cli-bundle/focused-chunks/chunk-A46YSPRF.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RFTJZ5VB.js → chunk-AI2PYNFI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-AJ2I377F.js +44 -0
- package/dist/cli-bundle/focused-chunks/{chunk-NQ7GYFOX.js → chunk-BIDF4KO7.js} +5 -5
- package/dist/cli-bundle/focused-chunks/{chunk-VWWTIX5L.js → chunk-CWFNQQZE.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-D3U7FOZR.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-F62XGAAY.js → chunk-G2VIY6XA.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-MG7C3JUY.js → chunk-GFF6BITP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-LW64TINU.js → chunk-IIBWXNW3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-AHWJPZSJ.js → chunk-IYJRFJHT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-D2TBEBNW.js → chunk-J5N42SKC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-MC7IE7D7.js → chunk-JRJOFMI7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-CZM75DE3.js → chunk-KL33JMPC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-E56OXRYH.js → chunk-LH4C7BLB.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-YMGB2O4E.js → chunk-LTQEYE2L.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-LTTMERPN.js +12 -0
- package/dist/cli-bundle/focused-chunks/{chunk-7KK66ISG.js → chunk-LW4TN5ZM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-XHOBYCVE.js → chunk-MESFDQ3H.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-G4QP365K.js → chunk-MWTBAI3V.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-TWULNB3N.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-C6P6HPCX.js → chunk-XAC6NP7U.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-GS3JC5UU.js → chunk-XG3TBYQK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-XMZAFKVP.js +91 -0
- package/dist/cli-bundle/focused-chunks/item-revision-ELI6NGMY.js +2 -0
- package/dist/cli-bundle/focused-chunks/{item-transaction-AEAYVVHA.js → item-transaction-GUGAUY77.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-4WM7TNHZ.js → mutation-admission-54FI37AA.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-WV7QXR4C.js → stage-OHDJ43T2.js} +2 -2
- package/dist/cli-bundle/main.js +31 -31
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +57 -57
- 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 +2 -2
- package/dist/core/store/item-mutation-precondition.d.ts +58 -0
- package/dist/core/store/item-mutation-precondition.js +1 -1
- package/dist/sdk/command-line.d.ts +5 -1
- package/dist/sdk/command-line.js +1 -1
- package/dist/sdk/governance/health/projection.js +1 -1
- package/dist/sdk/governance/health.d.ts +3 -3
- package/dist/sdk/governance/health.js +2 -2
- package/dist/sdk/lifecycle/close.js +1 -1
- package/dist/sdk/lifecycle/item-revision.d.ts +15 -4
- package/dist/sdk/lifecycle/item-revision.js +1 -1
- package/dist/sdk/output/list-envelope.d.ts +18 -7
- package/dist/sdk/output/list-envelope.js +1 -1
- package/dist/sdk/output-projection.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/get.d.ts +16 -6
- package/dist/sdk/query/get.js +1 -1
- package/dist/sdk/query/search/response.js +1 -1
- package/dist/sdk/runtime.js +1 -1
- package/docs/CLOSE_EVIDENCE_RECOVERY.md +36 -2
- package/docs/COMMANDS.md +10 -1
- package/docs/GET_READ_EVIDENCE.md +24 -3
- package/docs/OUTPUT_PROJECTION_CONTRACTS.md +7 -0
- package/docs/RELEASING.md +41 -6
- package/docs/SDK.md +24 -7
- package/marketplace.json +1 -1
- package/package.json +1 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli/after-command-context-usage.d.ts +0 -21
- package/dist/cli/argv-utils.d.ts +0 -12
- package/dist/cli/bootstrap-args.d.ts +0 -6
- package/dist/cli/bundle-integrity.d.ts +0 -49
- package/dist/cli/command-namespaces.d.ts +0 -9
- package/dist/cli/commander-usage.d.ts +0 -73
- package/dist/cli/commands/annotations/comments.d.ts +0 -2
- package/dist/cli/commands/annotations/docs.d.ts +0 -6
- package/dist/cli/commands/annotations/files.d.ts +0 -6
- package/dist/cli/commands/annotations/learnings.d.ts +0 -2
- package/dist/cli/commands/annotations/notes.d.ts +0 -2
- package/dist/cli/commands/extension/describe.d.ts +0 -2
- package/dist/cli/commands/extension/extension.d.ts +0 -6
- package/dist/cli/commands/extension/scaffold.d.ts +0 -2
- package/dist/cli/commands/extension/shared.d.ts +0 -2
- package/dist/cli/commands/governance/gc.d.ts +0 -6
- package/dist/cli/commands/governance/health.d.ts +0 -6
- package/dist/cli/commands/governance/telemetry.d.ts +0 -6
- package/dist/cli/commands/governance/validate.d.ts +0 -9
- package/dist/cli/commands/history/activity.d.ts +0 -6
- package/dist/cli/commands/history/history-compact.d.ts +0 -7
- package/dist/cli/commands/history/history-redact.d.ts +0 -8
- package/dist/cli/commands/history/history-repair.d.ts +0 -7
- package/dist/cli/commands/history/history.d.ts +0 -2
- package/dist/cli/commands/history/restore.d.ts +0 -6
- package/dist/cli/commands/lifecycle/append.d.ts +0 -6
- package/dist/cli/commands/lifecycle/claim.d.ts +0 -2
- package/dist/cli/commands/lifecycle/close-many.d.ts +0 -2
- package/dist/cli/commands/lifecycle/close.d.ts +0 -6
- package/dist/cli/commands/lifecycle/copy.d.ts +0 -6
- package/dist/cli/commands/lifecycle/create.d.ts +0 -10
- package/dist/cli/commands/lifecycle/delete.d.ts +0 -6
- package/dist/cli/commands/lifecycle/focus.d.ts +0 -6
- package/dist/cli/commands/lifecycle/plan.d.ts +0 -9
- package/dist/cli/commands/lifecycle/update-many.d.ts +0 -6
- package/dist/cli/commands/lifecycle/update.d.ts +0 -10
- package/dist/cli/commands/query/aggregate.d.ts +0 -2
- package/dist/cli/commands/query/context.d.ts +0 -6
- package/dist/cli/commands/query/deps.d.ts +0 -6
- package/dist/cli/commands/query/duplicates.d.ts +0 -6
- package/dist/cli/commands/query/eval.d.ts +0 -6
- package/dist/cli/commands/query/get.d.ts +0 -6
- package/dist/cli/commands/query/graph.d.ts +0 -7
- package/dist/cli/commands/query/list.d.ts +0 -6
- package/dist/cli/commands/query/next.d.ts +0 -6
- package/dist/cli/commands/query/search.d.ts +0 -6
- package/dist/cli/commands/query/stats.d.ts +0 -6
- package/dist/cli/commands/test/test-all.d.ts +0 -6
- package/dist/cli/commands/test/test-runs.d.ts +0 -6
- package/dist/cli/commands/test/test.d.ts +0 -6
- package/dist/cli/commands/workspace/config.d.ts +0 -6
- package/dist/cli/commands/workspace/contracts.d.ts +0 -2
- package/dist/cli/commands/workspace/init.d.ts +0 -6
- package/dist/cli/commands/workspace/merge.d.ts +0 -8
- package/dist/cli/commands/workspace/profile.d.ts +0 -6
- package/dist/cli/commands/workspace/schema.d.ts +0 -7
- package/dist/cli/commands/workspace/upgrade.d.ts +0 -2
- package/dist/cli/context-intent-invocation.d.ts +0 -2
- package/dist/cli/description-stdin.d.ts +0 -2
- package/dist/cli/error-guidance.d.ts +0 -276
- package/dist/cli/expected-revisions.d.ts +0 -55
- package/dist/cli/extension-command-help.d.ts +0 -137
- package/dist/cli/extension-command-options.d.ts +0 -37
- package/dist/cli/extension-recovery.d.ts +0 -31
- package/dist/cli/help-content.d.ts +0 -57
- package/dist/cli/help-json-payload.d.ts +0 -83
- package/dist/cli/invocation-profile.d.ts +0 -26
- package/dist/cli/main.d.ts +0 -263
- package/dist/cli/migration-gates.d.ts +0 -55
- package/dist/cli/option-values.d.ts +0 -3
- package/dist/cli/preflight-warnings.d.ts +0 -11
- package/dist/cli/register-annotations.d.ts +0 -11
- package/dist/cli/register-assurance.d.ts +0 -8
- package/dist/cli/register-files-lookup.d.ts +0 -9
- package/dist/cli/register-history-activity.d.ts +0 -8
- package/dist/cli/register-history-author.d.ts +0 -8
- package/dist/cli/register-history-maintenance.d.ts +0 -9
- package/dist/cli/register-list-query.d.ts +0 -27
- package/dist/cli/register-mutation-options.d.ts +0 -10
- package/dist/cli/register-mutation.d.ts +0 -16
- package/dist/cli/register-operations.d.ts +0 -85
- package/dist/cli/register-setup.d.ts +0 -16
- package/dist/cli/register-structured-mutation.d.ts +0 -15
- package/dist/cli/registration-helpers.d.ts +0 -2
- package/dist/cli/runtime/activation.d.ts +0 -51
- package/dist/cli/runtime/field-route-retry.d.ts +0 -15
- package/dist/cli/runtime/invocation-options.d.ts +0 -43
- package/dist/cli/runtime/projection-retry.d.ts +0 -9
- package/dist/cli/runtime/selection.d.ts +0 -35
- package/dist/cli/runtime/telemetry-outcome.d.ts +0 -20
- package/dist/cli/runtime-compatibility-boundary.d.ts +0 -17
- package/dist/cli/schema/registration.d.ts +0 -4
- package/dist/cli/schema-registration-helpers.d.ts +0 -24
- package/dist/cli/search-refresh.d.ts +0 -2
- package/dist/cli/stats-analytics-json.d.ts +0 -9
- package/dist/cli/telemetry-flush.d.ts +0 -2
- package/dist/cli-bundle/chunks/chunk-5GWEY4P6.js +0 -122
- package/dist/cli-bundle/chunks/chunk-AUEKTX7V.js +0 -6
- package/dist/cli-bundle/chunks/chunk-FRNMQM45.js +0 -2
- package/dist/cli-bundle/chunks/chunk-HNGLDMSZ.js +0 -9
- package/dist/cli-bundle/chunks/chunk-YKXATU2G.js +0 -3
- package/dist/cli-bundle/chunks/item-revision-OJJVPQY7.js +0 -2
- package/dist/cli-bundle/chunks/item-transaction-QEPBUCMY.js +0 -2
- package/dist/cli-bundle/chunks/register-operations-PO63DBZH.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-5PMJOJCZ.js +0 -44
- package/dist/cli-bundle/focused-chunks/chunk-G5PJCR7R.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-M6V7UMWL.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-MK4HV4JO.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-O7EI33NP.js +0 -91
- package/dist/cli-bundle/focused-chunks/chunk-SNOXXRSJ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-UPJUTP2V.js +0 -12
- package/dist/cli-bundle/focused-chunks/item-revision-CTDO4H3I.js +0 -2
- package/dist/cli.d.ts +0 -13
- package/dist/core/checkpoint/checkpoint-gc.d.ts +0 -61
- package/dist/core/checkpoint/mutation-context.d.ts +0 -10
- package/dist/core/diagnostics/remediation.d.ts +0 -52
- package/dist/core/extensions/activation-transaction.d.ts +0 -22
- package/dist/core/extensions/command-visibility-tier.d.ts +0 -8
- package/dist/core/extensions/exporter-output-contract.d.ts +0 -12
- package/dist/core/extensions/extension-candidate.d.ts +0 -26
- package/dist/core/extensions/extension-runtime-helpers.d.ts +0 -16
- package/dist/core/extensions/module-graph-snapshot.d.ts +0 -19
- package/dist/core/extensions/preflight-ownership.d.ts +0 -5
- package/dist/core/extensions/read-output-contract.d.ts +0 -5
- package/dist/core/extensions/reserved-host-flags.d.ts +0 -18
- package/dist/core/extensions/service-ownership.d.ts +0 -8
- package/dist/core/extensions/version-diagnostics.d.ts +0 -2
- package/dist/core/fs/atomic-create.d.ts +0 -7
- package/dist/core/fs/index.d.ts +0 -6
- package/dist/core/fs/path-utils.d.ts +0 -2
- package/dist/core/history/drift-cache.d.ts +0 -4
- package/dist/core/history/drift-scan.d.ts +0 -51
- package/dist/core/history/index.d.ts +0 -6
- package/dist/core/history/tombstone.d.ts +0 -3
- package/dist/core/history/version-address.d.ts +0 -13
- package/dist/core/item/index.d.ts +0 -9
- package/dist/core/item/item-type-definition.d.ts +0 -51
- package/dist/core/item/toon-decode.d.ts +0 -25
- package/dist/core/lock/index.d.ts +0 -6
- package/dist/core/lock/lock-confinement.d.ts +0 -55
- package/dist/core/lock/lock-gc.d.ts +0 -93
- package/dist/core/output/mutation-projection.d.ts +0 -13
- package/dist/core/output/query-summary.d.ts +0 -30
- package/dist/core/search/staleness.d.ts +0 -23
- package/dist/core/sentry/sensitive-assignments.d.ts +0 -9
- package/dist/core/shared/conflict-markers.d.ts +0 -18
- package/dist/core/shared/index.d.ts +0 -9
- package/dist/core/shared/memo.d.ts +0 -7
- package/dist/core/store/index.d.ts +0 -9
- package/dist/core/store/settings-concurrency.d.ts +0 -7
- package/dist/core/telemetry/read-sampling.d.ts +0 -8
- package/dist/core/test/item-test-run-tracking.d.ts +0 -12
- package/dist/core/validate/estimate-defaults.d.ts +0 -21
- package/dist/core/validate/linked-artifact-reference.d.ts +0 -20
- package/dist/mcp/http-server.d.ts +0 -60
- package/dist/mcp/legacy-adapter.d.ts +0 -59
- package/dist/mcp/runtime-capabilities.d.ts +0 -57
- package/dist/mcp/server.d.ts +0 -101
- package/dist/sdk/cli-contracts/bootstrap-command-scanner.d.ts +0 -23
- package/dist/sdk/cli-contracts/registration-helpers.d.ts +0 -123
- package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +0 -796
- package/dist/sdk/cli-contracts/string-lists.d.ts +0 -9
- package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +0 -35
- package/dist/sdk/context/usage-egress.d.ts +0 -9
- package/dist/sdk/dependencies/context-budget-recovery.d.ts +0 -21
- package/dist/sdk/dependency-flag-validation.d.ts +0 -32
- package/dist/sdk/extension/author-manifest.d.ts +0 -22
- package/dist/sdk/extension/bundled-catalog.d.ts +0 -35
- package/dist/sdk/extension/concurrency.d.ts +0 -7
- package/dist/sdk/extension/copy-scope.d.ts +0 -2
- package/dist/sdk/extension/custom-field-collisions.d.ts +0 -6
- package/dist/sdk/extension/install-receipts.d.ts +0 -7
- package/dist/sdk/extension/install-snapshot.d.ts +0 -34
- package/dist/sdk/extension/managed-update-status.d.ts +0 -3
- package/dist/sdk/extension/runtime-summary.d.ts +0 -9
- package/dist/sdk/extension/scaffold.d.ts +0 -38
- package/dist/sdk/generated/error-code-catalog-rows.d.ts +0 -39
- package/dist/sdk/generated/generated-error-code-catalog-part-1.d.ts +0 -8
- package/dist/sdk/generated/generated-error-code-catalog-part-2.d.ts +0 -8
- package/dist/sdk/governance/assurance-limits.d.ts +0 -7
- package/dist/sdk/governance/defect-recurrence-signals.d.ts +0 -10
- package/dist/sdk/governance/health-merge-evidence.d.ts +0 -23
- package/dist/sdk/governance/tracked-runtime-cache.d.ts +0 -24
- package/dist/sdk/governance/validate-history-drift.d.ts +0 -7
- package/dist/sdk/history/attestation-scan.d.ts +0 -16
- package/dist/sdk/history-mcp.d.ts +0 -17
- package/dist/sdk/lifecycle/checkpoint-rollback.d.ts +0 -15
- package/dist/sdk/lifecycle/core-field-recovery.d.ts +0 -33
- package/dist/sdk/lifecycle/core-item-fields.d.ts +0 -6
- package/dist/sdk/lifecycle/event-validation-messages.d.ts +0 -6
- package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +0 -15
- package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +0 -71
- package/dist/sdk/lifecycle/mcp-actions.d.ts +0 -24
- package/dist/sdk/lifecycle/metadata-normalizers.d.ts +0 -8
- package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +0 -6
- package/dist/sdk/lifecycle/mutation-option-validation.d.ts +0 -2
- package/dist/sdk/lifecycle/recurrence-parsers.d.ts +0 -34
- package/dist/sdk/lifecycle/release-handoff.d.ts +0 -12
- package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +0 -18
- package/dist/sdk/lifecycle/repeated-terminal-state.d.ts +0 -45
- package/dist/sdk/merge/abandoned-receipts.d.ts +0 -15
- package/dist/sdk/merge/history-scalar-rebase.d.ts +0 -9
- package/dist/sdk/merge/ignored-artifacts.d.ts +0 -13
- package/dist/sdk/merge/indexed-receipt-blobs.d.ts +0 -4
- package/dist/sdk/merge/receipt-file-boundary.d.ts +0 -23
- package/dist/sdk/merge/settlement-hook.d.ts +0 -12
- package/dist/sdk/merge/stage.d.ts +0 -13
- package/dist/sdk/merge/worktree-config.d.ts +0 -11
- package/dist/sdk/query/light-metadata.d.ts +0 -3
- package/dist/sdk/query/window-pagination.d.ts +0 -20
- package/dist/sdk/read-output/extension.d.ts +0 -7
- package/dist/sdk/read-output/provenance.d.ts +0 -20
- package/dist/sdk/read-output/surfaces.d.ts +0 -27
- package/dist/sdk/runtime/actions.d.ts +0 -4
- package/dist/sdk/runtime/mutation-admission.d.ts +0 -2
- package/dist/sdk/runtime/mutation-value-validation.d.ts +0 -16
- package/dist/sdk/runtime/schema.d.ts +0 -4
- package/dist/sdk/runtime-action-aliases.d.ts +0 -7
- package/dist/sdk/runtime-extended-actions.d.ts +0 -27
- package/dist/sdk/runtime-stats-options.d.ts +0 -9
- package/dist/sdk/test/command-args.d.ts +0 -4
- package/dist/sdk/test/command-resolution.d.ts +0 -5
- package/dist/sdk/test/entry.d.ts +0 -18
- package/dist/sdk/test/execution-receipts.d.ts +0 -34
- package/dist/sdk/test/receipt-index-snapshot.d.ts +0 -2
- package/dist/sdk/test/workspace-snapshot.d.ts +0 -11
- package/dist/sdk/traceability/runtime-files-lookup.d.ts +0 -8
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vectorization-ledger staleness helpers.
|
|
3
|
-
*
|
|
4
|
-
* The vectorization status ledger at `search/vectorization-status.json`
|
|
5
|
-
* records the `updated_at` of every item that has been embedded into the
|
|
6
|
-
* vector store. When an item's current `updated_at` differs from the
|
|
7
|
-
* ledger's recorded value (or the item is missing from the ledger
|
|
8
|
-
* entirely), the vector store is stale for that item and a `pm reindex`
|
|
9
|
-
* is needed.
|
|
10
|
-
*
|
|
11
|
-
* This module exposes the comparison helper as a tiny pure function so it
|
|
12
|
-
* can be reused by `pm health` (gates), `pm reindex`, and `pm search`
|
|
13
|
-
* (query-time staleness warning) without re-importing each other.
|
|
14
|
-
*/
|
|
15
|
-
/** Minimal item shape required to compare vectorization freshness. */
|
|
16
|
-
export interface ItemWithUpdatedAt {
|
|
17
|
-
/** Stable identifier used to reference this record across commands and storage. */
|
|
18
|
-
id:string;
|
|
19
|
-
/** ISO 8601 timestamp recording when updated occurred. */
|
|
20
|
-
updated_at:string;
|
|
21
|
-
}
|
|
22
|
-
/** Return the sorted list of item IDs whose current `updated_at` does not match the ledger entry. Missing ledger entries count as stale. */
|
|
23
|
-
export declare function collectStaleVectorizationIds<T extends ItemWithUpdatedAt>(items:readonly T[],ledgerEntries:Readonly<Record<string,string>> | null | undefined):string[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module core/sentry/sensitive-assignments
|
|
3
|
-
*
|
|
4
|
-
* Redacts sensitive values in fragmented and serialized diagnostic text.
|
|
5
|
-
*/
|
|
6
|
-
/** Shared sensitive-key vocabulary for structured data and diagnostic text. */
|
|
7
|
-
export declare const SENSITIVE_KEY_PATTERN:RegExp;
|
|
8
|
-
/** Redact complete sensitive values while preserving every byte of safe diagnostic text. */
|
|
9
|
-
export declare function scrubInlineSensitiveAssignments(value:string):string;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module core/shared/conflict-markers
|
|
3
|
-
*
|
|
4
|
-
* Provides shared primitives and utilities for Conflict Markers.
|
|
5
|
-
*/
|
|
6
|
-
/** Describes a detected unresolved merge-conflict marker and its source location. */
|
|
7
|
-
export interface ConflictMarkerMatch {
|
|
8
|
-
/** Value that configures or reports line for this contract. */
|
|
9
|
-
line:number;
|
|
10
|
-
/** Value that configures or reports marker for this contract. */
|
|
11
|
-
marker:"<<<<<<<" | "=======" | ">>>>>>>";
|
|
12
|
-
/** Value that configures or reports text for this contract. */
|
|
13
|
-
text:string;
|
|
14
|
-
}
|
|
15
|
-
/** Implements find merge conflict markers for the public runtime surface of this module. */
|
|
16
|
-
export declare function findMergeConflictMarkers(content:string):ConflictMarkerMatch[];
|
|
17
|
-
/** Implements find first merge conflict marker for the public runtime surface of this module. */
|
|
18
|
-
export declare function findFirstMergeConflictMarker(content:string):ConflictMarkerMatch | undefined;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module core/shared/memo
|
|
3
|
-
*
|
|
4
|
-
* Provides shared primitives and utilities for capped memoization maps.
|
|
5
|
-
*/
|
|
6
|
-
/** Drop the oldest-inserted half of a memo map (Map preserves insertion order), so a size-cap hit mid-scan keeps the newest-inserted half instead of cold-starting the memo. Callers that re-insert entries on hit (the envelope memo) get LRU eviction; the scalar comparator memos evict purely by insertion order. */
|
|
7
|
-
export declare function evictOldestMemoEntries<Value>(memo:Map<string,Value>):void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Preserve concurrent edits to untouched leaves. Arrays and scalar values are
|
|
3
|
-
* indivisible: incompatible edits to the same leaf refuse the entire write.
|
|
4
|
-
* The root must remain an object even for an unchanged snapshot. Error receipts
|
|
5
|
-
* contain a key path, never the potentially secret values.
|
|
6
|
-
*/
|
|
7
|
-
export declare function reconcileSettingsSnapshot(baseline:unknown,proposed:unknown,current:unknown,segments?:readonly string[]):unknown;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Retain the first ten reads of each command per UTC minute, then sample the
|
|
3
|
-
* nth read at (10/n)^2. Expected retained successes stay below twenty per
|
|
4
|
-
* command per minute; this is a statistical bound, not a hard delivery cap.
|
|
5
|
-
* Explicit rates bypass automatic state. Corrupt or inaccessible state retains
|
|
6
|
-
* the invocation. Failures must override the returned probability at finish.
|
|
7
|
-
*/
|
|
8
|
-
export declare function resolveAutomaticReadSampleRate(globalPmRoot:string,command:string,coreReadOwned:boolean,env?:Readonly<Record<string,string | undefined>>,now?:number):Promise<number>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ItemTestRunSummary,PmSettings } from "../../types/index.js";
|
|
2
|
-
/** Normalize, order, and bound test-run history using the configured retention policy. */
|
|
3
|
-
export declare function buildTrackedTestRunHistory(entries:ItemTestRunSummary[]):ItemTestRunSummary[];
|
|
4
|
-
/** Implements append tracked test run summary for the public runtime surface of this module. */
|
|
5
|
-
export declare function appendTrackedTestRunSummary(options:{
|
|
6
|
-
pmRoot:string;
|
|
7
|
-
settings:PmSettings;
|
|
8
|
-
itemId:string;
|
|
9
|
-
author:string;
|
|
10
|
-
entry:ItemTestRunSummary;
|
|
11
|
-
message?:string;
|
|
12
|
-
}):Promise<void>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-type default estimate resolution for `pm validate --auto-fix` (GH-212).
|
|
3
|
-
*
|
|
4
|
-
* When an item is missing `estimated_minutes`, the auto-fix path backfills a
|
|
5
|
-
* config-driven default based on the item's type. This module is the pure
|
|
6
|
-
* resolution layer: given an item type and an optional settings-derived override
|
|
7
|
-
* map, it returns the default estimate in minutes. The planning + apply path is
|
|
8
|
-
* wired separately by the validate command.
|
|
9
|
-
*
|
|
10
|
-
* Pure module: no filesystem access, no heavy imports. Bad input is never
|
|
11
|
-
* thrown on — invalid override entries are dropped, not errored (mirrors the
|
|
12
|
-
* deterministic, non-throwing style of stale-file-classification.ts).
|
|
13
|
-
*/
|
|
14
|
-
/** Built-in per-type default estimates in MINUTES used by `pm validate --auto-fix` (GH-212) to backfill missing `estimated_minutes`. Keys are canonical built-in type names. Lookups are case-insensitive (see resolveEstimateDefaultMinutes). */
|
|
15
|
-
export declare const DEFAULT_ESTIMATE_MINUTES_BY_TYPE:Readonly<Record<string,number>>;
|
|
16
|
-
/** Fallback when neither overrides nor the built-in map have the type. */
|
|
17
|
-
export declare const FALLBACK_ESTIMATE_MINUTES = 120;
|
|
18
|
-
/** Resolve the default estimated-minutes for an item type. Precedence: overrides (case-insensitive key match) > DEFAULT_ESTIMATE_MINUTES_BY_TYPE (case-insensitive) > FALLBACK_ESTIMATE_MINUTES. - `type` undefined/empty -> FALLBACK. - Only finite values > 0 are honored from overrides/defaults; a non-positive or non-finite override value is ignored and resolution continues to the next tier. - Returned value is a positive integer (floor of the resolved value). */
|
|
19
|
-
export declare function resolveEstimateDefaultMinutes(type:string | undefined,overrides?:Readonly<Record<string,number>>):number;
|
|
20
|
-
/** Validate + normalize a raw `validation.estimate_defaults_by_type` settings object into a clean Record<string, number> of positive integers, dropping invalid entries. Used so the pure resolver always receives a sane override map. Returns {} for undefined/null/non-object input. Trims keys; ignores empty keys and non-positive / non-finite / non-number values. Floors values to integers. */
|
|
21
|
-
export declare function normalizeEstimateDefaultOverrides(raw:unknown):Record<string,number>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Remote-reference detection for linked artifacts (`pm files` / `pm docs`
|
|
3
|
-
* `path` values).
|
|
4
|
-
*
|
|
5
|
-
* A linked artifact path is normally a workspace-relative or absolute local
|
|
6
|
-
* filesystem path, but `pm docs --add` legitimately records *remote*
|
|
7
|
-
* references too — most commonly an `https://` URL to a pull request, issue, or
|
|
8
|
-
* external design doc. Such references are not local files, so they must never
|
|
9
|
-
* be:
|
|
10
|
-
* - probed with `fs.stat` for existence (the resolved path is meaningless),
|
|
11
|
-
* - classified as `moved`/`deleted` by the stale-path classifier,
|
|
12
|
-
* - counted among `missing_linked_paths` in `pm validate --check-files`, or
|
|
13
|
-
* - pruned by `pm validate --prune-missing` — which would silently destroy an
|
|
14
|
-
* intentionally-recorded reference (project management = context management).
|
|
15
|
-
*
|
|
16
|
-
* Pure module: no filesystem or network access — callers pass the stored path
|
|
17
|
-
* string and branch on the boolean result.
|
|
18
|
-
*/
|
|
19
|
-
/** Return `true` when a linked-artifact path is a remote reference (a URL with a `scheme://` authority) rather than a local filesystem path. Whitespace is trimmed before matching so a stored `" https://…"` is still recognized. */
|
|
20
|
-
export declare function isRemoteLinkedArtifactReference(path:string):boolean;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @module mcp/http-server
|
|
4
|
-
*
|
|
5
|
-
* Serves the pm MCP dispatcher through the sessionless 2026-07-28 Streamable
|
|
6
|
-
* HTTP POST binding with request-scoped JSON/SSE responses.
|
|
7
|
-
*/
|
|
8
|
-
import { type IncomingMessage,type Server,type ServerResponse } from "node:http";
|
|
9
|
-
import { type PmMcpHttpAuthorizationPolicy,type PmMcpProtectedResourceMetadata } from "../sdk/mcp/authorization.js";
|
|
10
|
-
import { type JsonRpcRequest } from "./server.js";
|
|
11
|
-
/** Runtime options for one real Streamable HTTP server. */
|
|
12
|
-
export interface PmMcpHttpServerOptions {
|
|
13
|
-
/** Local bind host. Defaults to the DNS-rebinding-safe loopback address. */
|
|
14
|
-
host?:string;
|
|
15
|
-
/** TCP port. Zero requests an ephemeral port. */
|
|
16
|
-
port?:number;
|
|
17
|
-
/** Single modern MCP POST endpoint. */
|
|
18
|
-
endpointPath?:string;
|
|
19
|
-
/** Exact browser origins permitted when an Origin header is present. */
|
|
20
|
-
allowedOrigins?:readonly string[];
|
|
21
|
-
/** Optional RFC 9728/OAuth resource-server policy. */
|
|
22
|
-
authorization?:PmMcpHttpAuthorizationPolicy;
|
|
23
|
-
/** Metadata served at RFC 9728 well-known paths. */
|
|
24
|
-
protectedResourceMetadata?:PmMcpProtectedResourceMetadata;
|
|
25
|
-
/** Maximum accepted JSON request bytes. */
|
|
26
|
-
maximumBodyBytes?:number;
|
|
27
|
-
/** SSE comment interval; zero disables keep-alives. */
|
|
28
|
-
keepAliveMs?:number;
|
|
29
|
-
/** Optional embedding dispatcher; defaults to the canonical pm MCP handler. */
|
|
30
|
-
requestHandler?:(request:JsonRpcRequest) => unknown | Promise<unknown>;
|
|
31
|
-
}
|
|
32
|
-
/** Write one SSE event and wait for transport backpressure to clear. */
|
|
33
|
-
export declare function writePmMcpSseEvent(response:ServerResponse,payload:unknown):Promise<void>;
|
|
34
|
-
declare function writeMcpHttpDispatchError(response:ServerResponse,rpcRequest:JsonRpcRequest | undefined,error:unknown):void;
|
|
35
|
-
declare function destroyFailedMcpHttpResponse(response:ServerResponse,error:unknown):void;
|
|
36
|
-
/** Create a configured HTTP server without binding it. */
|
|
37
|
-
export declare function createPmMcpHttpServer(options?:PmMcpHttpServerOptions):Server<typeof IncomingMessage,typeof ServerResponse>;
|
|
38
|
-
/** Gracefully close subscriptions before stopping a Streamable HTTP server. */
|
|
39
|
-
export declare function closePmMcpHttpServer(server:Server):Promise<void>;
|
|
40
|
-
/** Bind the configured Streamable HTTP server and return its actual address. */
|
|
41
|
-
export declare function startPmMcpHttpServer(options?:PmMcpHttpServerOptions):Promise<ReturnType<typeof createPmMcpHttpServer>>;
|
|
42
|
-
/** Resolve loopback-safe bind defaults without opening a socket. */
|
|
43
|
-
export declare function resolvePmMcpHttpListenAddress(options?:Pick<PmMcpHttpServerOptions,"host" | "port">):{
|
|
44
|
-
host:string;
|
|
45
|
-
port:number;
|
|
46
|
-
};
|
|
47
|
-
/** Resolve and harden executable HTTP options from an environment map. */
|
|
48
|
-
export declare function resolvePmMcpHttpServerOptionsFromEnvironment(processEnvironment?:NodeJS.ProcessEnv):PmMcpHttpServerOptions;
|
|
49
|
-
/** Internal HTTP transport seams used only by direct integration tests. */
|
|
50
|
-
export declare const _testOnly:{
|
|
51
|
-
/** Return the first active request-scoped transport key for one server. */
|
|
52
|
-
activeSubscriptionKey:(server:Server) => symbol | undefined;
|
|
53
|
-
/** Open a stream against one server runtime without a network socket. */
|
|
54
|
-
openHttpSubscription:(server:Server,request:JsonRpcRequest,response:ServerResponse) => Promise<void>;
|
|
55
|
-
/** Exercise committed-response handling without a network race. */
|
|
56
|
-
writeMcpHttpDispatchError:typeof writeMcpHttpDispatchError;
|
|
57
|
-
/** Exercise the terminal request rejection handler without a live socket. */
|
|
58
|
-
destroyFailedMcpHttpResponse:typeof destroyFailedMcpHttpResponse;
|
|
59
|
-
};
|
|
60
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module mcp/legacy-adapter
|
|
3
|
-
*
|
|
4
|
-
* Isolates the bounded initialize-era stdio compatibility surface from the
|
|
5
|
-
* canonical stateless dispatcher. No modern transport imports policy from it.
|
|
6
|
-
*/
|
|
7
|
-
import { type AgentClientInfo } from "../sdk/runtime-primitives.js";
|
|
8
|
-
import { PM_MCP_LEGACY_PROTOCOL_VERSIONS,type PmMcpImplementation,type PmMcpServerCapabilities } from "../sdk/mcp/protocol.js";
|
|
9
|
-
/** Minimal request shape consumed by the compatibility adapter. */
|
|
10
|
-
export interface LegacyMcpRequest {
|
|
11
|
-
/** Legacy method name. */
|
|
12
|
-
method?:string;
|
|
13
|
-
/** Legacy method parameters. */
|
|
14
|
-
params?:Record<string,unknown>;
|
|
15
|
-
}
|
|
16
|
-
/** Host callbacks keep this adapter separate from canonical SDK policy. */
|
|
17
|
-
export interface LegacyMcpAdapterOptions {
|
|
18
|
-
/** Immutable server identity. */
|
|
19
|
-
serverInfo:PmMcpImplementation;
|
|
20
|
-
/** Compatibility-era capabilities. */
|
|
21
|
-
capabilities:PmMcpServerCapabilities;
|
|
22
|
-
/** Model-facing usage instructions. */
|
|
23
|
-
instructions:string;
|
|
24
|
-
/** Parse bounded historical client identity. */
|
|
25
|
-
parseClientInfo:(value:unknown) => AgentClientInfo | undefined;
|
|
26
|
-
/** Resolve legacy tool definitions. */
|
|
27
|
-
listTools:(params:Record<string,unknown> | undefined) => Promise<Record<string,unknown>>;
|
|
28
|
-
/** Execute one legacy tool call. */
|
|
29
|
-
callTool:(params:Record<string,unknown> | undefined,clientInfo:AgentClientInfo | undefined) => Promise<Record<string,unknown>>;
|
|
30
|
-
/** List legacy resources. */
|
|
31
|
-
listResources:() => Record<string,unknown>;
|
|
32
|
-
/** Read one legacy resource. */
|
|
33
|
-
readResource:(params:Record<string,unknown> | undefined) => Promise<Record<string,unknown>>;
|
|
34
|
-
/** List legacy prompts. */
|
|
35
|
-
listPrompts:() => Record<string,unknown>;
|
|
36
|
-
/** Render one legacy prompt. */
|
|
37
|
-
getPrompt:(params:Record<string,unknown> | undefined) => Record<string,unknown>;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Resolve the legacy revision a handshake negotiates, or refuse with the full
|
|
41
|
-
* supported set.
|
|
42
|
-
*
|
|
43
|
-
* A legacy client has no fall-forward mechanism, so the refusal names every
|
|
44
|
-
* accepted legacy revision alongside the canonical modern one: the error text
|
|
45
|
-
* is the only diagnostic such a client can surface.
|
|
46
|
-
*/
|
|
47
|
-
export declare function resolveLegacyProtocolVersion(requestedVersion:unknown):(typeof PM_MCP_LEGACY_PROTOCOL_VERSIONS)[number];
|
|
48
|
-
/** Explicit compatibility adapter with no cross-process or modern-session role. */
|
|
49
|
-
export declare class LegacyMcpAdapter {
|
|
50
|
-
#private;
|
|
51
|
-
/** Create one process-local legacy stdio adapter. */
|
|
52
|
-
constructor(options:LegacyMcpAdapterOptions);
|
|
53
|
-
/** Read the bounded identity most recently supplied to legacy initialize. */
|
|
54
|
-
getClientInfo():AgentClientInfo | undefined;
|
|
55
|
-
/** Validate and answer the historical initialize handshake. */
|
|
56
|
-
initialize(params:Record<string,unknown> | undefined):Record<string,unknown>;
|
|
57
|
-
/** Dispatch one unversioned request through the finite legacy method set. */
|
|
58
|
-
dispatch(request:LegacyMcpRequest):Promise<Record<string,unknown>>;
|
|
59
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module mcp/runtime-capabilities
|
|
3
|
-
*
|
|
4
|
-
* Resolves bounded MCP profiles and workspace-customized tool schemas from the
|
|
5
|
-
* public SDK contracts.
|
|
6
|
-
*/
|
|
7
|
-
import { type PmMcpToolProfile } from "../sdk/agent-capability-contracts.js";
|
|
8
|
-
import { type WorkspaceContracts,type WorkspaceExtensionCommandContract } from "../sdk/runtime.js";
|
|
9
|
-
import { type ToolDefinition } from "./tool-definitions.js";
|
|
10
|
-
/** Environment configuration accepted by the MCP profile resolver. */
|
|
11
|
-
export interface McpProfileEnvironment {
|
|
12
|
-
/** Named built-in or custom MCP surface profile. */
|
|
13
|
-
PM_MCP_PROFILE?:string;
|
|
14
|
-
/** Comma-separated exact tool allowlist used by the custom profile. */
|
|
15
|
-
PM_MCP_TOOLS?:string;
|
|
16
|
-
}
|
|
17
|
-
/** Fully resolved MCP tool surface for one request workspace. */
|
|
18
|
-
export interface ResolvedMcpToolSurface {
|
|
19
|
-
/** Resolved profile after environment validation. */
|
|
20
|
-
profile:PmMcpToolProfile;
|
|
21
|
-
/** Runtime-filtered and workspace-enriched MCP definitions. */
|
|
22
|
-
tools:ToolDefinition[];
|
|
23
|
-
/** Extension action names reachable through the selected surface. */
|
|
24
|
-
extensionActions:string[];
|
|
25
|
-
}
|
|
26
|
-
/** Profile decision for one tool call without projecting every tool schema. */
|
|
27
|
-
export interface ResolvedMcpToolAccess {
|
|
28
|
-
/** Resolved profile after environment validation. */
|
|
29
|
-
profile:PmMcpToolProfile;
|
|
30
|
-
/** Whether the requested tool is callable in that profile and workspace. */
|
|
31
|
-
available:boolean;
|
|
32
|
-
}
|
|
33
|
-
declare function workspaceFields(workspace:Pick<WorkspaceContracts,"fields">):NonNullable<WorkspaceContracts["fields"]>;
|
|
34
|
-
declare function workspaceExtensionCommands(workspace:Pick<WorkspaceContracts,"extensionCommands">):NonNullable<WorkspaceContracts["extensionCommands"]>;
|
|
35
|
-
/** Resolve and validate the configured MCP profile. */
|
|
36
|
-
export declare function resolveMcpToolProfile(environment?:McpProfileEnvironment):PmMcpToolProfile;
|
|
37
|
-
/** Select extension actions visible to one validated MCP profile. */
|
|
38
|
-
export declare function selectMcpExtensionActions(commands:readonly WorkspaceExtensionCommandContract[],profile:PmMcpToolProfile,selectedNames:ReadonlySet<string>):string[];
|
|
39
|
-
/**
|
|
40
|
-
* Resolve a profile-filtered tool list and enrich schemas with live workspace
|
|
41
|
-
* types, statuses, custom fields, and extension actions.
|
|
42
|
-
*/
|
|
43
|
-
export declare function resolveMcpToolSurface(availableTools:readonly ToolDefinition[],args?:Record<string,unknown>,environment?:McpProfileEnvironment):Promise<ResolvedMcpToolSurface>;
|
|
44
|
-
/**
|
|
45
|
-
* Resolve one tool's callability without cloning and enriching the complete
|
|
46
|
-
* schema surface. Only compact/standard `pm_run` calls need workspace
|
|
47
|
-
* contracts because an activated extension action can promote that dispatcher.
|
|
48
|
-
*/
|
|
49
|
-
export declare function resolveMcpToolAccess(availableTools:readonly ToolDefinition[],toolName:string,args?:Record<string,unknown>,environment?:McpProfileEnvironment):Promise<ResolvedMcpToolAccess>;
|
|
50
|
-
/** Move declared custom-field inputs into the runtime action option bag. */
|
|
51
|
-
export declare function normalizeWorkspaceToolArguments(toolName:string,args:Record<string,unknown>):Promise<Record<string,unknown>>;
|
|
52
|
-
/** Internal compatibility helpers exposed only for exhaustive fallback tests. */
|
|
53
|
-
export declare const _testOnlyMcpRuntimeCapabilities:{
|
|
54
|
-
workspaceExtensionCommands:typeof workspaceExtensionCommands;
|
|
55
|
-
workspaceFields:typeof workspaceFields;
|
|
56
|
-
};
|
|
57
|
-
export {};
|
package/dist/mcp/server.d.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { readSettings,type AgentClientInfo } from "../sdk/runtime-primitives.js";
|
|
3
|
-
import { readRequiredString,type PmActionInput } from "../sdk/runtime.js";
|
|
4
|
-
import { PmMcpProtocolError,resolveMcpRequestContext,type PmMcpRequestContext } from "../sdk/mcp/protocol.js";
|
|
5
|
-
import { PmMcpInputRequiredError } from "../sdk/mcp/interactions.js";
|
|
6
|
-
import { type PmMcpSubscriptionId,type PmMcpSubscriptionSink } from "../sdk/mcp/subscriptions.js";
|
|
7
|
-
/** JSON-RPC request shape accepted by pm MCP transport adapters. */
|
|
8
|
-
export interface JsonRpcRequest {
|
|
9
|
-
/** JSON-RPC revision marker when supplied by the transport. */
|
|
10
|
-
jsonrpc?:string;
|
|
11
|
-
/** Correlation identifier omitted only for notifications. */
|
|
12
|
-
id?:string | number | null;
|
|
13
|
-
/** Protocol operation selected by the caller. */
|
|
14
|
-
method?:string;
|
|
15
|
-
/** Operation inputs including request-local MCP metadata. */
|
|
16
|
-
params?:Record<string,unknown>;
|
|
17
|
-
}
|
|
18
|
-
declare function runMcpAction(args:PmActionInput):Promise<unknown>;
|
|
19
|
-
type PmMcpTransportSubscriptionKey = PmMcpSubscriptionId | symbol;
|
|
20
|
-
declare function nearestDeclaredKey(unexpected:string,declared:string[]):string | undefined;
|
|
21
|
-
declare function detectUnexpectedTopLevelKeys(toolName:string,args:Record<string,unknown>,toolDeclaredKeys?:Map<string,string[]>):string[];
|
|
22
|
-
/**
|
|
23
|
-
* Enforce workspace mutation policy before MCP dispatch, excluding top-level
|
|
24
|
-
* routing paths. Return redacted advisories; propagate blocking guard failures.
|
|
25
|
-
*/
|
|
26
|
-
declare function collectMutationGuardWarnings(toolName:string,action:string | undefined,args:Record<string,unknown>):Promise<string[]>;
|
|
27
|
-
declare function detectUnexpectedOptionKeys(toolName:string,action:string | undefined,args:Record<string,unknown>,schema?:Awaited<ReturnType<typeof readSettings>>["schema"]):string[];
|
|
28
|
-
declare function resultContent(result:unknown,warnings?:string[],tokenAccounting?:boolean,canonicalStructuredResult?:boolean):Record<string,unknown>;
|
|
29
|
-
declare function errorContent(error:unknown,canonicalStructuredResult?:boolean):Record<string,unknown>;
|
|
30
|
-
/** Retain at most 32 own, valid provenance values without cloning unbounded input. */
|
|
31
|
-
declare function boundMcpClientProvenance(value:unknown):Record<string,string>;
|
|
32
|
-
declare function emitMcpChangeNotifications(action:string | undefined):Promise<void>;
|
|
33
|
-
/** Open one modern subscription through a concrete transport-owned sink. */
|
|
34
|
-
export declare function openMcpSubscription(input:{
|
|
35
|
-
request:JsonRpcRequest;
|
|
36
|
-
key?:PmMcpTransportSubscriptionKey;
|
|
37
|
-
sink:PmMcpSubscriptionSink;
|
|
38
|
-
}):Promise<void>;
|
|
39
|
-
/** Gracefully close one active subscription by its request identifier. */
|
|
40
|
-
export declare function closeMcpSubscription(id:PmMcpSubscriptionId,key?:PmMcpTransportSubscriptionKey):Record<string,unknown> | undefined;
|
|
41
|
-
declare function closeStdioMcpSubscriptions():Array<{
|
|
42
|
-
id:PmMcpSubscriptionId;
|
|
43
|
-
result:Record<string,unknown>;
|
|
44
|
-
}>;
|
|
45
|
-
/** Resolve the current workspace-enriched tool schema for HTTP header checks. */
|
|
46
|
-
export declare function resolveMcpToolSchemaForRequest(request:JsonRpcRequest):Promise<unknown>;
|
|
47
|
-
/** Preserve MCP tool-result error semantics for non-protocol adapter failures. */
|
|
48
|
-
export declare function buildMcpToolCallErrorResult(request:JsonRpcRequest,error:unknown):Record<string,unknown> | undefined;
|
|
49
|
-
declare function mcpTaskPrincipal(requestContext:PmMcpRequestContext):string;
|
|
50
|
-
declare function shouldCreateMcpTask(params:Record<string,unknown> | undefined,requestContext:PmMcpRequestContext):boolean;
|
|
51
|
-
declare function settleMcpTaskExecution(taskId:string,execution:Promise<void>):Promise<void>;
|
|
52
|
-
/** Dispatch one MCP request under supported process-level reproducibility settings. */
|
|
53
|
-
export declare function handleRequest(request:JsonRpcRequest):Promise<Record<string,unknown> | undefined>;
|
|
54
|
-
declare function writeError(id:JsonRpcRequest["id"],error:unknown):void;
|
|
55
|
-
/** Implements process rpc line for the public runtime surface of this module. */
|
|
56
|
-
export declare function processRpcLine(line:string):Promise<void>;
|
|
57
|
-
/** Implements start mcp server for the public runtime surface of this module. */
|
|
58
|
-
export declare function startMcpServer():void;
|
|
59
|
-
/** Implements check whether invoked as mcp main module for the public runtime surface of this module. */
|
|
60
|
-
export declare function isInvokedAsMcpMainModule(argvPath:string | undefined,moduleUrl:string):boolean;
|
|
61
|
-
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
62
|
-
export declare const _testOnly:{
|
|
63
|
-
boundMcpClientProvenance:typeof boundMcpClientProvenance;
|
|
64
|
-
createMcpInputRequiredError:(input:ConstructorParameters<typeof PmMcpInputRequiredError>[0]) => PmMcpInputRequiredError;
|
|
65
|
-
createMcpProtocolError:(message:string,code:number,data?:Record<string,unknown> | undefined) => PmMcpProtocolError;
|
|
66
|
-
readonly closeManyOptionsFromFlat:typeof import("../sdk/runtime-input.js").closeManyOptionsFromFlat;
|
|
67
|
-
detectUnexpectedOptionKeys:typeof detectUnexpectedOptionKeys;
|
|
68
|
-
detectUnexpectedTopLevelKeys:typeof detectUnexpectedTopLevelKeys;
|
|
69
|
-
collectMutationGuardWarnings:typeof collectMutationGuardWarnings;
|
|
70
|
-
closeStdioMcpSubscriptions:typeof closeStdioMcpSubscriptions;
|
|
71
|
-
errorContent:typeof errorContent;
|
|
72
|
-
emitMcpChangeNotifications:typeof emitMcpChangeNotifications;
|
|
73
|
-
expireMcpSubscriptionRecord:(id:PmMcpSubscriptionId,key?:PmMcpTransportSubscriptionKey) => Record<string,unknown> | undefined;
|
|
74
|
-
getMcpClientInfo:() => AgentClientInfo | undefined;
|
|
75
|
-
readonly extensionOptionsFromArgs:typeof import("../sdk/runtime-input.js").extensionOptionsFromArgs;
|
|
76
|
-
readonly globalOptions:typeof import("../sdk/runtime-input.js").actionGlobalOptions;
|
|
77
|
-
readonly mutationListOptions:typeof import("../sdk/runtime-input.js").mutationListOptions;
|
|
78
|
-
nearestDeclaredKey:typeof nearestDeclaredKey;
|
|
79
|
-
mcpTaskPrincipal:typeof mcpTaskPrincipal;
|
|
80
|
-
resultContent:typeof resultContent;
|
|
81
|
-
resolveMcpRequestContext:typeof resolveMcpRequestContext;
|
|
82
|
-
shouldCreateMcpTask:typeof shouldCreateMcpTask;
|
|
83
|
-
settleMcpTaskExecution:typeof settleMcpTaskExecution;
|
|
84
|
-
subscriptionCount:() => number;
|
|
85
|
-
readonly normalizeActionName:typeof import("../sdk/runtime-input.js").normalizeActionName;
|
|
86
|
-
readonly normalizeCommandPath:typeof import("../sdk/runtime-input.js").normalizeCommandPath;
|
|
87
|
-
readonly normalizeMcpOptionsArrays:typeof import("../sdk/runtime-input.js").normalizeMcpOptionsArrays;
|
|
88
|
-
readonly normalizeMcpUpdateOptions:typeof import("../sdk/runtime-input.js").normalizeMcpUpdateOptions;
|
|
89
|
-
readonly optionsWithAuthor:typeof import("../sdk/runtime-input.js").optionsWithAuthor;
|
|
90
|
-
readonly readRequiredString:typeof readRequiredString;
|
|
91
|
-
readonly readScalarString:typeof import("../sdk/runtime-input.js").readRuntimeScalarString;
|
|
92
|
-
readonly readScalarStringAllowBlank:typeof import("../sdk/runtime-input.js").readRuntimeScalarStringAllowBlank;
|
|
93
|
-
readonly readStringArray:typeof import("../sdk/runtime-input.js").readRuntimeStringArray;
|
|
94
|
-
runAction:typeof runMcpAction;
|
|
95
|
-
readonly updateManyOptionsFromFlat:typeof import("../sdk/runtime-input.js").updateManyOptionsFromFlat;
|
|
96
|
-
readonly withAddNoteOption:typeof import("../sdk/runtime-input.js").withAddNoteOption;
|
|
97
|
-
readonly withFilesDiscoveryOptions:typeof import("../sdk/runtime-input.js").withFilesDiscoveryOptions;
|
|
98
|
-
readonly withMutationCompaction:typeof import("../sdk/runtime-input.js").withMutationCompaction;
|
|
99
|
-
writeError:typeof writeError;
|
|
100
|
-
};
|
|
101
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/cli-contracts/bootstrap-command-scanner
|
|
3
|
-
*
|
|
4
|
-
* Resolves command position from shell-free argv without loading CLI runtime
|
|
5
|
-
* normalization, error, filesystem, or item-addressing dependencies.
|
|
6
|
-
*/
|
|
7
|
-
/** Global options that consume a following value when one is present. */
|
|
8
|
-
export declare const GLOBAL_VALUE_CONSUMING_FLAGS:Set<string>;
|
|
9
|
-
/** Boolean global options ignored while locating the command token. */
|
|
10
|
-
export declare const BOOTSTRAP_BOOLEAN_FLAGS:Set<string>;
|
|
11
|
-
/** Whether a global value-consuming flag uses its inline `--flag=value` form. */
|
|
12
|
-
export declare function isInlineGlobalValueToken(token:string):boolean;
|
|
13
|
-
/** Whether a bootstrap value flag consumes its following token. */
|
|
14
|
-
export declare function consumesBootstrapValue(flag:string,next:string | undefined):boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Locate the first command token after global flags and their values.
|
|
17
|
-
*
|
|
18
|
-
* A leading `--` terminates command discovery. Unknown flags are ignored so
|
|
19
|
-
* later command-specific validation can return the canonical diagnostic.
|
|
20
|
-
*/
|
|
21
|
-
export declare function findBootstrapCommandTokenIndex(argv:readonly string[]):number | undefined;
|
|
22
|
-
/** Resolve the normalized command name from shell-free invocation arguments. */
|
|
23
|
-
export declare function parseBootstrapCommandName(argv:readonly string[]):string | undefined;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/registration-helpers
|
|
3
|
-
*
|
|
4
|
-
* Provides CLI runtime support for Registration Helpers.
|
|
5
|
-
*/
|
|
6
|
-
import { type Command } from "commander";
|
|
7
|
-
import { printError,printResult,writeStdout,setActiveCommandResult,type GlobalOptions } from "../runtime-primitives.js";
|
|
8
|
-
import type { ContextOptions } from "../query/context.js";
|
|
9
|
-
import type { CreateCommandOptions } from "../lifecycle/create.js";
|
|
10
|
-
import type { AggregateOptions } from "../query/aggregate.js";
|
|
11
|
-
import type { ListOptions,runList } from "../query/list.js";
|
|
12
|
-
import type { NextOptions } from "../query/next.js";
|
|
13
|
-
import type { runActivity } from "../query/activity.js";
|
|
14
|
-
export { buildBackgroundTestCommandArgs,buildBackgroundTestAllCommandArgs,} from "../test/command-args.js";
|
|
15
|
-
export { setActiveCommandResult };
|
|
16
|
-
export { printError,printResult,writeStdout };
|
|
17
|
-
/** Let an active package asynchronously augment a completed command result. */
|
|
18
|
-
export declare function applyActiveCommandResultService(command:string,args:string[],options:Record<string,unknown>,global:GlobalOptions,result:unknown):Promise<unknown>;
|
|
19
|
-
/** Preserve unchanged option origins and label parser/preflight overrides as explicit input. */
|
|
20
|
-
export declare function syncCommanderActionOptions(actionCommand:Command,commandOptions:Record<string,unknown>):void;
|
|
21
|
-
/** Implements set resolved global options for the public runtime surface of this module. */
|
|
22
|
-
export declare function setResolvedGlobalOptions(command:Command,globalOptions:GlobalOptions):void;
|
|
23
|
-
/** Implements clear resolved global options for the public runtime surface of this module. */
|
|
24
|
-
export declare function clearResolvedGlobalOptions(command:Command):void;
|
|
25
|
-
/** Implements get global options for the public runtime surface of this module. */
|
|
26
|
-
export declare function getGlobalOptions(command:Command):GlobalOptions;
|
|
27
|
-
/** Implements get command path for the public runtime surface of this module. */
|
|
28
|
-
export declare function getCommandPath(command:Command):string;
|
|
29
|
-
/** Implements apply default output format for the public runtime surface of this module. */
|
|
30
|
-
export declare function applyDefaultOutputFormat(globalOptions:GlobalOptions):Promise<GlobalOptions>;
|
|
31
|
-
/** Implements collect for the public runtime surface of this module. */
|
|
32
|
-
export declare function collect(value:string,previous:string[] | undefined):string[];
|
|
33
|
-
/** Reads an option value when Commander supplied it as a string. */
|
|
34
|
-
export declare function readOptionString(options:Record<string,unknown>,key:string):string | undefined;
|
|
35
|
-
/** Adds a Commander option that remains parseable but hidden from human help. */
|
|
36
|
-
export declare function addHiddenOption(command:Command,flags:string,description:string,repeatable?:boolean,repeatableParser?:((value:string) => string[]) | undefined):void;
|
|
37
|
-
/** Adds a group of parseable Commander aliases hidden from human help. */
|
|
38
|
-
export declare function addHiddenOptions(command:Command,aliases:ReadonlyArray<readonly [flags:string,description:string]>,repeatable:boolean):void;
|
|
39
|
-
/** Implements format hook warnings for the public runtime surface of this module. */
|
|
40
|
-
export declare function formatHookWarnings(warnings:string[]):string;
|
|
41
|
-
/** Map CLI create flags to SDK options while preserving the caller's explicit focus policy. */
|
|
42
|
-
export declare function normalizeCreateOptions(commandOptions:Record<string,unknown>,options?:{
|
|
43
|
-
requireType?:boolean;
|
|
44
|
-
}):CreateCommandOptions;
|
|
45
|
-
/** Implements normalize update options for the public runtime surface of this module. */
|
|
46
|
-
export declare function normalizeUpdateOptions(commandOptions:Record<string,unknown>):Record<string,unknown>;
|
|
47
|
-
/** Implements extract update many mutation option source for the public runtime surface of this module. */
|
|
48
|
-
export declare function extractUpdateManyMutationOptionSource(commandOptions:Record<string,unknown>):Record<string,unknown>;
|
|
49
|
-
/** Implements normalize list options for the public runtime surface of this module. */
|
|
50
|
-
export declare function normalizeListOptions(options:Record<string,unknown>):ListOptions;
|
|
51
|
-
/** Implements normalize aggregate options for the public runtime surface of this module. */
|
|
52
|
-
export declare function normalizeAggregateOptions(options:Record<string,unknown>):AggregateOptions;
|
|
53
|
-
type ListCommandResult = Awaited<ReturnType<typeof runList>>;
|
|
54
|
-
/** Implements print list json stream for the public runtime surface of this module. */
|
|
55
|
-
export declare function printListJsonStream(commandName:string,result:ListCommandResult,globalOptions:GlobalOptions):void;
|
|
56
|
-
type ActivityCommandResult = Awaited<ReturnType<typeof runActivity>>;
|
|
57
|
-
/** Implements print activity json stream for the public runtime surface of this module. */
|
|
58
|
-
export declare function printActivityJsonStream(result:ActivityCommandResult,options:{
|
|
59
|
-
id?:string;
|
|
60
|
-
op?:string;
|
|
61
|
-
author?:string;
|
|
62
|
-
from?:string;
|
|
63
|
-
to?:string;
|
|
64
|
-
limit?:string;
|
|
65
|
-
},globalOptions:GlobalOptions):void;
|
|
66
|
-
/** Implements normalize search options for the public runtime surface of this module. */
|
|
67
|
-
export declare function normalizeSearchOptions(options:Record<string,unknown>):Record<string,unknown>;
|
|
68
|
-
/** Implements normalize search keywords input for the public runtime surface of this module. */
|
|
69
|
-
export declare function normalizeSearchKeywordsInput(keywords:string[]):string;
|
|
70
|
-
/** Canonical Commander-normalized activity query options. */
|
|
71
|
-
export interface NormalizedActivityOptions {
|
|
72
|
-
/** Exact item identifier filter. */
|
|
73
|
-
id?:string;
|
|
74
|
-
/** Exact immutable history operation filter. */
|
|
75
|
-
op?:string;
|
|
76
|
-
/** Exact recorded author filter. */
|
|
77
|
-
author?:string;
|
|
78
|
-
/** Inclusive activity window lower bound. */
|
|
79
|
-
from?:string;
|
|
80
|
-
/** Inclusive activity window upper bound. */
|
|
81
|
-
to?:string;
|
|
82
|
-
/** Maximum projected row count encoded as Commander text. */
|
|
83
|
-
limit?:string;
|
|
84
|
-
/** Opaque cursor for a fixed-window query page. */
|
|
85
|
-
after?:string;
|
|
86
|
-
/** Select the compact raw-event projection. */
|
|
87
|
-
compact?:boolean;
|
|
88
|
-
/** Select a raw event projection instead of the item digest. */
|
|
89
|
-
raw?:boolean;
|
|
90
|
-
/** Disable the default projection row bound. */
|
|
91
|
-
unbounded?:boolean;
|
|
92
|
-
/** Select privacy-safe provenance event rows. */
|
|
93
|
-
provenance?:boolean;
|
|
94
|
-
/** Include constant-size provenance completeness metrics. */
|
|
95
|
-
provenanceSummary?:boolean;
|
|
96
|
-
/** Canonical harness filters supplied by Commander. */
|
|
97
|
-
harness?:string[];
|
|
98
|
-
/** Privacy-safe agent invocation fingerprint filters. */
|
|
99
|
-
agentInstance?:string[];
|
|
100
|
-
/** Exact provenance dimension predicates. */
|
|
101
|
-
provenanceFilter?:string[];
|
|
102
|
-
}
|
|
103
|
-
/** Implements normalize activity options for the public runtime surface of this module. */
|
|
104
|
-
export declare function normalizeActivityOptions(options:Record<string,unknown>):NormalizedActivityOptions;
|
|
105
|
-
/** Implements resolve activity stream mode for the public runtime surface of this module. */
|
|
106
|
-
export declare function resolveActivityStreamMode(raw:unknown):boolean;
|
|
107
|
-
/** Implements normalize context options for the public runtime surface of this module. */
|
|
108
|
-
export declare function normalizeContextOptions(options:Record<string,unknown>):ContextOptions;
|
|
109
|
-
/**
|
|
110
|
-
* Normalizes raw commander options for `pm next` into a typed {@link NextOptions}
|
|
111
|
-
* payload, resolving snake_case flag aliases (e.g. `--assignee_filter`,
|
|
112
|
-
* `--blocked_limit`, `--ready_only`) to their canonical camelCase keys and folding
|
|
113
|
-
* the boolean `--ready-only` switch. Unknown keys are passed through untouched so
|
|
114
|
-
* downstream filtering still sees them.
|
|
115
|
-
*/
|
|
116
|
-
export declare function normalizeNextOptions(options:Record<string,unknown>):NextOptions;
|
|
117
|
-
declare function collectMutationItemIds(result:unknown):string[];
|
|
118
|
-
/** Implements invalidate search caches for mutation for the public runtime surface of this module. */
|
|
119
|
-
export declare function invalidateSearchCachesForMutation(globalOptions:GlobalOptions,result?:unknown):Promise<void>;
|
|
120
|
-
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
121
|
-
export declare const _testOnly:{
|
|
122
|
-
collectMutationItemIds:typeof collectMutationItemIds;
|
|
123
|
-
};
|