@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,24 +0,0 @@
|
|
|
1
|
-
import type { GlobalOptions } from "../../core/shared/command-types.js";
|
|
2
|
-
/** Minimal generic dispatch context consumed by lifecycle mutation adapters. */
|
|
3
|
-
export interface LifecycleMutationActionContext {
|
|
4
|
-
/** Flat MCP/action arguments. */
|
|
5
|
-
args:Record<string,unknown>;
|
|
6
|
-
/** Normalized command option bag. */
|
|
7
|
-
options:Record<string,unknown>;
|
|
8
|
-
/** Item id resolved from flat arguments, when present. */
|
|
9
|
-
id:string | undefined;
|
|
10
|
-
/** Normalized transport-level force override. */
|
|
11
|
-
force?:boolean;
|
|
12
|
-
/** Presentation-neutral global command options. */
|
|
13
|
-
global:GlobalOptions;
|
|
14
|
-
}
|
|
15
|
-
/** Dispatch explicit, ranked and ranked-start claims through the same compact receipt contract. */
|
|
16
|
-
export declare function runMcpClaimAction(context:LifecycleMutationActionContext):Promise<unknown>;
|
|
17
|
-
/** Dispatch close through the shared MCP mutation compaction contract. */
|
|
18
|
-
export declare function runMcpCloseAction(context:LifecycleMutationActionContext):Promise<unknown>;
|
|
19
|
-
/** Apply one shared transport projection to canonical and legacy lifecycle compositions. */
|
|
20
|
-
export declare function runMcpTaskCompositionAction(context:LifecycleMutationActionContext,action:"start_task" | "pause_task" | "close_task"):Promise<unknown>;
|
|
21
|
-
/** Release ownership with the same compact/full controls used by claiming and pausing. */
|
|
22
|
-
export declare function runMcpReleaseAction(context:LifecycleMutationActionContext):Promise<unknown>;
|
|
23
|
-
/** Dispatch recurrence through the shared MCP mutation compaction contract. */
|
|
24
|
-
export declare function runMcpReopenAction(context:LifecycleMutationActionContext):Promise<unknown>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Implements normalize risk input for the public runtime surface of this module. */
|
|
2
|
-
export declare function normalizeRiskInput(value:string):string;
|
|
3
|
-
/** Implements normalize severity input for the public runtime surface of this module. */
|
|
4
|
-
export declare function normalizeSeverityInput(value:string):string;
|
|
5
|
-
/** Implements parse confidence input for the public runtime surface of this module. */
|
|
6
|
-
export declare function parseConfidenceInput(value:string):number | "low" | "medium" | "high";
|
|
7
|
-
/** Implements parse regression input for the public runtime surface of this module. */
|
|
8
|
-
export declare function parseRegressionInput(value:string):boolean;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/lifecycle/mutation-facet-contracts
|
|
3
|
-
* Shares stored collection names, mutation option identities, and serialized entry fields.
|
|
4
|
-
*/
|
|
5
|
-
/** Authoritative collection-to-option mapping for structured item IO and core-field recovery. */
|
|
6
|
-
export declare const ITEM_MUTATION_FACET_OPTION_MAPPINGS:ReadonlyArray<readonly [string,string,readonly string[]]>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { RecurrenceRule } from "../../types/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Shared calendar recurrence/event parsing helpers used by the `create` and
|
|
4
|
-
* `update` commands. Extracted verbatim from create.ts and update.ts (pm-why9).
|
|
5
|
-
*
|
|
6
|
-
* `parseEventBoolean`, `parseDelimitedList`, and `ensureEnumValue` were
|
|
7
|
-
* byte-identical between the two commands (update spelled `ensureEnumValue` as
|
|
8
|
-
* `ensureEnum`).
|
|
9
|
-
*
|
|
10
|
-
* `parseRecurrenceRule` was identical apart from the recur_interval/recur_count
|
|
11
|
-
* "provided" guard: create used `intervalRaw !== undefined` (an empty
|
|
12
|
-
* `recur_interval=` is parsed and rejected), while update used the truthy
|
|
13
|
-
* `intervalRaw ?` (an empty value is skipped). That distinction is preserved
|
|
14
|
-
* via the `emptyNumericGuard` option so both call sites keep their exact
|
|
15
|
-
* behaviour, including error strings.
|
|
16
|
-
*/
|
|
17
|
-
export declare function parseEventBoolean(value:string,flag:string):boolean;
|
|
18
|
-
/** Implements parse delimited list for the public runtime surface of this module. */
|
|
19
|
-
export declare function parseDelimitedList(raw:string | undefined):string[];
|
|
20
|
-
/** Implements ensure enum value for the public runtime surface of this module. */
|
|
21
|
-
export declare function ensureEnumValue<T extends string>(value:string,allowed:readonly T[],label:string,field?:string):T;
|
|
22
|
-
/** `"defined"` parses `recur_interval=`/`recur_count=` (empty values), matching the historical `create` behaviour. `"truthy"` skips empty values, matching the historical `update` behaviour. */
|
|
23
|
-
export type RecurrenceEmptyNumericGuard = "defined" | "truthy";
|
|
24
|
-
/**
|
|
25
|
-
* Authoritative list of the CSV/markdown recurrence keys this parser reads.
|
|
26
|
-
* Co-located with {@link parseRecurrenceRule} so adding a recurrence field
|
|
27
|
-
* updates the reads AND the strict unknown-key allow-list in one place — the
|
|
28
|
-
* `--event` validator (repeatable-metadata-parsers EVENT_KEYS) spreads this, so
|
|
29
|
-
* a new recur key can never be silently rejected (GH-258). Keep in sync with
|
|
30
|
-
* the `kv.recur_*` reads below.
|
|
31
|
-
*/
|
|
32
|
-
export declare const RECURRENCE_CSV_KEYS:readonly ["recur_freq","recur_interval","recur_count","recur_until","recur_by_weekday","recur_by_month_day","recur_exdates"];
|
|
33
|
-
/** Implements parse recurrence rule for the public runtime surface of this module. */
|
|
34
|
-
export declare function parseRecurrenceRule(kv:Record<string,string>,startAt:string,nowValue:Date,emptyNumericGuard:RecurrenceEmptyNumericGuard):RecurrenceRule | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @module sdk/lifecycle/release-handoff Validates project-defined handoff queues before ownership changes. */
|
|
2
|
-
import { type RuntimeStatusRegistry } from "../../core/schema/runtime-schema.js";
|
|
3
|
-
import type { ItemMetadata,PmSettings } from "../../types/index.js";
|
|
4
|
-
import type { ReleaseMutationOptions,ReleaseResult } from "./claim.js";
|
|
5
|
-
/** Resolve a declared non-terminal queue and evidence without inventing project statuses. */
|
|
6
|
-
export declare function resolveReleaseHandoff(options:ReleaseMutationOptions,registry:RuntimeStatusRegistry):string | undefined;
|
|
7
|
-
/** Enforce the locked source state and configured transition before changing the queue. */
|
|
8
|
-
export declare function applyReleaseHandoff(metadata:ItemMetadata,target:string,settings:PmSettings,registry:RuntimeStatusRegistry,message:string):{
|
|
9
|
-
receipt:NonNullable<ReleaseResult["handoff"]>;
|
|
10
|
-
warnings:string[];
|
|
11
|
-
changedFields:string[];
|
|
12
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { CalendarEvent,Reminder } from "../../types/index.js";
|
|
2
|
-
import { type RecurrenceEmptyNumericGuard } from "./recurrence-parsers.js";
|
|
3
|
-
type EmptyValueGuard = "defined" | "truthy";
|
|
4
|
-
type ReminderValueMode = "raw" | "trimmed";
|
|
5
|
-
interface ParseReminderEntriesOptions {
|
|
6
|
-
valueMode:ReminderValueMode;
|
|
7
|
-
}
|
|
8
|
-
interface ParseEventEntriesOptions {
|
|
9
|
-
allDayEmptyGuard:EmptyValueGuard;
|
|
10
|
-
recurrenceEmptyNumericGuard:RecurrenceEmptyNumericGuard;
|
|
11
|
-
}
|
|
12
|
-
/** Implements parse reminder entries for the public runtime surface of this module. */
|
|
13
|
-
export declare function parseReminderEntries(raw:string[],nowValue:Date,options:ParseReminderEntriesOptions):Reminder[];
|
|
14
|
-
/** Implements parse event entries for the public runtime surface of this module. */
|
|
15
|
-
export declare function parseEventEntries(raw:string[],nowValue:Date,options:ParseEventEntriesOptions):CalendarEvent[];
|
|
16
|
-
/** Implements parse type option entries for the public runtime surface of this module. */
|
|
17
|
-
export declare function parseTypeOptionEntries(raw:string[]):Record<string,string>;
|
|
18
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/lifecycle/repeated-terminal-state
|
|
3
|
-
*
|
|
4
|
-
* An update that names the close status for an item that already holds that
|
|
5
|
-
* status with the same reason is not a transition. Routing it to the closure
|
|
6
|
-
* writer re-stamped `closed_at` and `updated_at` on every retry (GH-1628)
|
|
7
|
-
* while the same payload on an open item was a no-op. These helpers detect
|
|
8
|
-
* the repeated state and apply only the remaining fields.
|
|
9
|
-
*/
|
|
10
|
-
import { type GlobalOptions,type RuntimeStatusRegistry } from "../runtime-primitives.js";
|
|
11
|
-
import type { ItemMetadata } from "../../types/index.js";
|
|
12
|
-
import type { CloseRouteContext,UpdateCommandOptions,UpdateResult } from "./update.js";
|
|
13
|
-
/** Receipt for an update that repeats the item's current terminal state, so no closure clock is re-stamped (GH-1628). */
|
|
14
|
-
export declare const TERMINAL_STATE_UNCHANGED_WARNING = "terminal_state_unchanged";
|
|
15
|
-
/**
|
|
16
|
-
* Refuse, before any write, a close-status update that unsets the close
|
|
17
|
-
* reason without supplying a new one while `governance.require_close_reason`
|
|
18
|
-
* is enabled. Neither route may run first: the repeated-state path would
|
|
19
|
-
* persist the unset as a no-op closure, and the ordinary route applies its
|
|
20
|
-
* field pre-update before the closure writer's own refusal.
|
|
21
|
-
*/
|
|
22
|
-
export declare function assertRoutedCloseKeepsRequiredReason(context:CloseRouteContext):void;
|
|
23
|
-
/**
|
|
24
|
-
* True when the requested close status, reason and completion time already
|
|
25
|
-
* describe the stored item. Such an update is not a transition: routing it to
|
|
26
|
-
* the closure writer would re-stamp `closed_at` and `updated_at` on every
|
|
27
|
-
* retry (GH-1628), while the same identical payload on an open item is a
|
|
28
|
-
* no-op. A blank reason under `governance.require_close_reason` is not a
|
|
29
|
-
* repetition either: the closure writer must refuse it exactly as it would on
|
|
30
|
-
* an open item.
|
|
31
|
-
*/
|
|
32
|
-
export declare function describesCurrentTerminalState(metadata:ItemMetadata,options:UpdateCommandOptions,statusRegistry:RuntimeStatusRegistry,requireCloseReason?:boolean):boolean;
|
|
33
|
-
/** Read the stored metadata of the item an update is routing, refusing with the shared not-found guidance. */
|
|
34
|
-
export declare function readRoutedItemMetadata(context:CloseRouteContext):Promise<ItemMetadata>;
|
|
35
|
-
/**
|
|
36
|
-
* Apply the non-terminal fields of an update whose close status, reason and
|
|
37
|
-
* completion time already match the stored item. The closure clocks and the
|
|
38
|
-
* terminal history stay untouched; the remaining fields take the ordinary
|
|
39
|
-
* update path, which skips the write when nothing changes. The classification
|
|
40
|
-
* read holds no item lock, so when the locked write returns an item another
|
|
41
|
-
* writer has reopened, or whose reason or completion time changed meanwhile,
|
|
42
|
-
* the request no longer repeats the stored state and `closeReopened` hands it
|
|
43
|
-
* to the closure writer instead of reporting it unchanged.
|
|
44
|
-
*/
|
|
45
|
-
export declare function applyRepeatedTerminalStateUpdate(context:CloseRouteContext,metadata:ItemMetadata,otherFieldKeys:readonly string[],runUpdate:(id:string,options:UpdateCommandOptions,global:GlobalOptions) => Promise<UpdateResult>,closeReopened:(fieldUpdate:UpdateResult) => Promise<UpdateResult>):Promise<UpdateResult>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/merge/abandoned-receipts
|
|
3
|
-
* Settles verified restored-origin receipts through an explicit history event.
|
|
4
|
-
*/
|
|
5
|
-
import type { GlobalOptions } from "../../core/shared/command-types.js";
|
|
6
|
-
import { type MergeDecisionReceipt } from "./receipts.js";
|
|
7
|
-
/** Preview or record restored-origin dispositions without treating them as applied merges. */
|
|
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[]>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Preserve whole-field scalar intent when another branch removed its target. */
|
|
2
|
-
import { type ReplayDocument } from "../../core/history/replay.js";
|
|
3
|
-
import type { HistoryPatchOp } from "../../types/index.js";
|
|
4
|
-
/** Rebase only validated whole-field assignments/removals; nested and conditional operations stay strict. */
|
|
5
|
-
export declare function rebaseHistoryScalarPatch(current:ReplayDocument,patch:HistoryPatchOp[],coordinate:{
|
|
6
|
-
branch:"ours" | "theirs";
|
|
7
|
-
line:number;
|
|
8
|
-
op:string;
|
|
9
|
-
}):ReplayDocument;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Git's owning ignore rule for one untracked reconciliation artifact. */
|
|
2
|
-
export interface MergeArtifactIgnoreRule {
|
|
3
|
-
/** Repository-relative artifact path, decoded without Git quoting. */
|
|
4
|
-
path:string;
|
|
5
|
-
/** Ignore file reported by Git, including global and clone-local sources. */
|
|
6
|
-
source:string;
|
|
7
|
-
/** One-based ignore file line. */
|
|
8
|
-
line:number;
|
|
9
|
-
/** Exact effective pattern, without interpretation by pm. */
|
|
10
|
-
pattern:string;
|
|
11
|
-
}
|
|
12
|
-
/** Respect tracked files and negations while checking literal repository paths with Git's NUL protocol. */
|
|
13
|
-
export declare function inspectIgnoredMergeArtifacts(workspaceRoot:string,paths:string[]):Promise<MergeArtifactIgnoreRule[]>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Resolve physical roots, list the index once, and batch only requested bounded blobs. */
|
|
2
|
-
export declare function readIndexedReceiptBlobs(cwd:string,directory:string,fileNames:string[],maximumBytes:number,linkedDirectory?:string,policy?:{
|
|
3
|
-
failOnReadError?:boolean;
|
|
4
|
-
}):Promise<Map<string,string>>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/merge/receipt-file-boundary
|
|
3
|
-
*
|
|
4
|
-
* Reads untrusted receipt candidates through a bounded, no-follow file
|
|
5
|
-
* boundary whose race and short-read behavior can be exercised directly.
|
|
6
|
-
*/
|
|
7
|
-
import { type Stats } from "node:fs";
|
|
8
|
-
import { type FileHandle } from "node:fs/promises";
|
|
9
|
-
/** Minimal filesystem operations required by the receipt reader. */
|
|
10
|
-
export interface ReceiptFileBoundary {
|
|
11
|
-
/** Inspect the path without following its final symbolic link. */
|
|
12
|
-
lstat(receiptPath:string):Promise<Stats>;
|
|
13
|
-
/** Open the candidate and return the handle used for verified reads. */
|
|
14
|
-
open(receiptPath:string,flags:number):Promise<FileHandle>;
|
|
15
|
-
}
|
|
16
|
-
/** Maximum bytes accepted for a portable merge receipt at every read/copy boundary. */
|
|
17
|
-
export declare const MERGE_RECEIPT_FILE_MAX_BYTES:number;
|
|
18
|
-
/** Resolve the platform no-follow flag, falling back only where Node omits it. */
|
|
19
|
-
export declare function resolveReceiptNoFollowFlag(constants:{
|
|
20
|
-
O_NOFOLLOW?:number;
|
|
21
|
-
}):number;
|
|
22
|
-
/** Read one regular file only when its opened identity remains bounded and stable. */
|
|
23
|
-
export declare function readBoundedRegularFile(receiptPath:string,maximumBytes:number,boundary?:ReceiptFileBoundary):Promise<string | null>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** Preview an owned hook without replacing existing user policy or following file links. */
|
|
2
|
-
export declare function prepareMergeSettlementHook(workspaceRoot:string,command:string):Promise<{
|
|
3
|
-
path:string;
|
|
4
|
-
changed:boolean;
|
|
5
|
-
content:string;
|
|
6
|
-
}>;
|
|
7
|
-
/** Publish an explicitly requested hook after its command and merge fence are installed. */
|
|
8
|
-
export declare function writeMergeSettlementHook(hook:{
|
|
9
|
-
path:string;
|
|
10
|
-
changed:boolean;
|
|
11
|
-
content:string;
|
|
12
|
-
}):Promise<void>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { GlobalOptions } from "../../core/shared/command-types.js";
|
|
2
|
-
import type { MergeReconcileResult } from "./reconcile.js";
|
|
3
|
-
/** Bind preview, proof verification and staging to one physical tracker location. */
|
|
4
|
-
export declare function resolveMergeSettlementGlobal(global:GlobalOptions):Promise<GlobalOptions & {
|
|
5
|
-
path:string;
|
|
6
|
-
}>;
|
|
7
|
-
/** Stage only the verified history and receipt paths, preserving all unrelated index entries. */
|
|
8
|
-
export declare function stageLosslessMergeReconciliation(params:{
|
|
9
|
-
preview:MergeReconcileResult;
|
|
10
|
-
dryRun:boolean;
|
|
11
|
-
global:GlobalOptions;
|
|
12
|
-
apply:() => Promise<MergeReconcileResult>;
|
|
13
|
-
}):Promise<MergeReconcileResult>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** Write clone-local configuration after a bounded wait for Git's own exclusive lock. Retry only the native lock-exists diagnostic; never remove another writer's lock or retry malformed and unwritable configuration. */
|
|
2
|
-
export declare function writeMergeDriverGitConfig(cwd:string,args:string[]):Promise<void>;
|
|
3
|
-
/** Preserve caller tools and preferences while binding Git repository discovery and writes to the explicit cwd. */
|
|
4
|
-
export declare function gitWorkspaceEnvironment():NodeJS.ProcessEnv;
|
|
5
|
-
/**
|
|
6
|
-
* Keep simple clones on local config. Linked worktrees opt into Git's native
|
|
7
|
-
* per-worktree layer, first preserving the main worktree's special core keys.
|
|
8
|
-
* Drivers already installed in the main tree are copied into its layer so
|
|
9
|
-
* later installations cannot replace the main tree's runtime selection.
|
|
10
|
-
*/
|
|
11
|
-
export declare function resolveMergeDriverConfigScope(workspaceRoot:string):Promise<"--local" | "--worktree">;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ItemMetadata } from "../../types/index.js";
|
|
2
|
-
/** Read scalar-only metadata using client workspace defaults and custom type folders. */
|
|
3
|
-
export declare function listClientItemMetadataLight(pmRootOverride:string | undefined,cwdOverride:string | undefined):Promise<ItemMetadata[]>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** Hash ordered canonical rows while retaining only one row's serialization at a time. */
|
|
2
|
-
export declare function fingerprintWindowRows(rows:readonly unknown[]):string;
|
|
3
|
-
/** Recover the original evaluation clock from a producer-specific query cursor. */
|
|
4
|
-
export declare function resolveWindowQueryClock(command:string,after?:string):string;
|
|
5
|
-
/** Page a deterministic matching set, preserving duplicate rows by their position. */
|
|
6
|
-
export declare function paginateWindowQuery<T>(rows:readonly T[],options:{
|
|
7
|
-
command:string;
|
|
8
|
-
after?:string;
|
|
9
|
-
clock:string;
|
|
10
|
-
query:unknown;
|
|
11
|
-
limit?:number;
|
|
12
|
-
}):{
|
|
13
|
-
rows:T[];
|
|
14
|
-
count:number;
|
|
15
|
-
total_count:number;
|
|
16
|
-
page_start:number;
|
|
17
|
-
omitted_count:number;
|
|
18
|
-
has_more:boolean;
|
|
19
|
-
next_cursor?:string;
|
|
20
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { RegisteredExtensionCommandDefinition } from "../../core/extensions/extension-types.js";
|
|
2
|
-
/** Find the winning command declaration by CLI path, SDK action or receipt identity. */
|
|
3
|
-
export declare function resolveExtensionOutputCommand(command:string):RegisteredExtensionCommandDefinition | undefined;
|
|
4
|
-
/** Resolve read permission only from the winning command registration. */
|
|
5
|
-
export declare function resolveExtensionReadOutput(command:string):RegisteredExtensionCommandDefinition | undefined;
|
|
6
|
-
/** Validate declared rows before projection and attach the host-owned row contract. */
|
|
7
|
-
export declare function attachExtensionReadOutputRows(command:string,result:unknown):unknown;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/read-output/provenance
|
|
3
|
-
*
|
|
4
|
-
* Retains private invocation-origin evidence through SDK option normalization.
|
|
5
|
-
*/
|
|
6
|
-
/** Private invocation origin shared by SDK option construction and read-output resolution. */
|
|
7
|
-
export declare const READ_OUTPUT_INVOCATION_PROVENANCE:unique symbol;
|
|
8
|
-
/** Internal evidence that distinguishes caller aliases from forwarded command options. */
|
|
9
|
-
export interface PmReadOutputInvocationProvenance {
|
|
10
|
-
/** Canonical include modes forwarded through command-local option keys. */
|
|
11
|
-
canonical_include_modes:string[];
|
|
12
|
-
/** Compatibility aliases observed before defaults or canonical forwarding. */
|
|
13
|
-
explicit_legacy_aliases:string[];
|
|
14
|
-
/** Whether the CLI captured the complete set of caller-supplied aliases. */
|
|
15
|
-
cli_invocation_observed?:boolean;
|
|
16
|
-
/** Whether an SDK helper constructed every command-local option itself. */
|
|
17
|
-
sdk_invocation_observed?:boolean;
|
|
18
|
-
}
|
|
19
|
-
/** Mark a complete SDK helper request so internal command options are not reported as caller aliases. */
|
|
20
|
-
export declare function markCanonicalSdkReadOutputOptions<Options extends object>(options:Options,canonicalIncludeModes:readonly string[]):Options;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/read-output/surfaces
|
|
3
|
-
*
|
|
4
|
-
* Native read-surface identity and legacy projection-mode tables. Kept free of
|
|
5
|
-
* renderer and budget imports so bootstrap-time recovery can derive a command's
|
|
6
|
-
* completeness vocabulary without loading the output formatters.
|
|
7
|
-
*/
|
|
8
|
-
import { PM_READ_OUTPUT_SURFACES } from "./options.js";
|
|
9
|
-
/** Native read surface named by the universal output contract. */
|
|
10
|
-
type NativeReadOutputSurface = (typeof PM_READ_OUTPUT_SURFACES)[number];
|
|
11
|
-
/** Output dimension that a legacy flag aliases. */
|
|
12
|
-
type ReadOutputDimension = "include" | "amount" | "cost" | "encoding";
|
|
13
|
-
/** Legacy per-command flags grouped by the universal dimension they alias. */
|
|
14
|
-
export declare const LEGACY_FLAGS_BY_COMMAND:Readonly<Partial<Record<string,Partial<Record<ReadOutputDimension,string[]>>>>>;
|
|
15
|
-
/** Include aliases that carry a value rather than naming a projection mode. */
|
|
16
|
-
export declare const VALUE_BEARING_INCLUDE_ALIASES:Set<string>;
|
|
17
|
-
/** Legacy flags whose behavior the canonical dimension does not replace. */
|
|
18
|
-
export declare const BEHAVIOR_PRESERVING_MIGRATION_HINTS:Readonly<Record<string,string>>;
|
|
19
|
-
/** Translate a CLI flag into the underscore selector used by projection-mode contracts. */
|
|
20
|
-
export declare function flagSelector(flag:string):string;
|
|
21
|
-
/** Resolve native read aliases without consulting request-local extension state. */
|
|
22
|
-
export declare function resolveNativeReadOutputSurface(normalizedCommand:string,options?:Record<string,unknown>):NativeReadOutputSurface | undefined;
|
|
23
|
-
/** Build compatibility include modes without invoking runtime registry discovery. */
|
|
24
|
-
export declare function readOutputIncludeModeOptionsForSurface(surface:string):ReadonlyMap<string,string>;
|
|
25
|
-
/** Convert a dashed CLI flag to the camel-case key accepted by command option records. */
|
|
26
|
-
export declare function optionKey(flag:string):string;
|
|
27
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/** Validate only native create/update clients; MCP retains its declared transport admission. */
|
|
2
|
-
export declare function assertNativeMutationOptions(action:"create" | "update",args:Record<string,unknown>,options:Record<string,unknown>,pmRoot:string | undefined,hoistedKeys:readonly string[]):Promise<void>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type MutationAction = "create" | "update" | "append" | "reopen";
|
|
2
|
-
/** Reject non-string positional text before stdin resolution or string operations. */
|
|
3
|
-
export declare function assertMutationStringOperand(value:unknown,action:MutationAction,field:string):asserts value is string;
|
|
4
|
-
/** Require an option record before a direct operation inspects or clones its values. */
|
|
5
|
-
export declare function assertMutationOptionBag(options:unknown,action:MutationAction):asserts options is Record<string,unknown>;
|
|
6
|
-
/** Validate supplied item operands before generic dispatch can discard their runtime type. */
|
|
7
|
-
export declare function assertMutationItemOperand(action:string | undefined,args:Record<string,unknown>):void;
|
|
8
|
-
/** Validate append text, attribution and overrides before resolving its transport or writing history. */
|
|
9
|
-
export declare function assertAppendMutationValues(options:unknown):void;
|
|
10
|
-
/** Validate recurrence options before trimming, coercion or lifecycle state reads. */
|
|
11
|
-
export declare function assertReopenMutationValues(options:unknown):void;
|
|
12
|
-
/** Validate native option values before transport normalization can coerce or discard them. */
|
|
13
|
-
export declare function assertNativeMutationValueTypes(action:"create" | "update",options:Record<string,unknown>,scalarRepeatables?:boolean,cliAliases?:boolean):void;
|
|
14
|
-
/** Prepare direct domain calls with the same literal-data and value checks as client dispatch. */
|
|
15
|
-
export declare function prepareNativeMutationOptions<T extends Record<string,unknown>>(action:"create" | "update",options:T):T;
|
|
16
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { McpActionDispatchContext } from "./context.js";
|
|
2
|
-
/** Translate schema transport arguments into the matching SDK schema or workflow-policy operation. */
|
|
3
|
-
declare function runMcpSchemaAction(ctx:McpActionDispatchContext):Promise<unknown> | unknown;
|
|
4
|
-
export { runMcpSchemaAction };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/runtime-extended-actions
|
|
3
|
-
*
|
|
4
|
-
* Implements native generic-action adapters for cross-cutting SDK operations.
|
|
5
|
-
*/
|
|
6
|
-
import type { GlobalOptions } from "../core/shared/command-types.js";
|
|
7
|
-
/** Minimal dispatch context shared with the generic runtime action registry. */
|
|
8
|
-
export interface RuntimeExtendedActionContext {
|
|
9
|
-
/** Canonical action selected after alias normalization. */
|
|
10
|
-
action:string;
|
|
11
|
-
/** Complete action request, including transport-level fields. */
|
|
12
|
-
args:Record<string,unknown>;
|
|
13
|
-
/** Normalized command options. */
|
|
14
|
-
options:Record<string,unknown>;
|
|
15
|
-
/** Workspace and rendering controls shared by direct SDK runners. */
|
|
16
|
-
global:GlobalOptions;
|
|
17
|
-
}
|
|
18
|
-
/** Dispatch search relevance evaluation through the public SDK runner. */
|
|
19
|
-
export declare function runRuntimeEvalAction(context:RuntimeExtendedActionContext):Promise<unknown>;
|
|
20
|
-
/** Dispatch one bounded mutation-event page through the public SDK runner. */
|
|
21
|
-
export declare function runRuntimeEventsAction(context:RuntimeExtendedActionContext):Promise<unknown>;
|
|
22
|
-
/** Dispatch merge install, reconciliation, receipt, or driver operations. */
|
|
23
|
-
export declare function runRuntimeMergeAction(context:RuntimeExtendedActionContext):Promise<unknown>;
|
|
24
|
-
/** Dispatch guarded workspace snapshot operations. */
|
|
25
|
-
export declare function runRuntimeWorkspaceAction(context:RuntimeExtendedActionContext):Promise<unknown>;
|
|
26
|
-
/** Dispatch meeting, event, and reminder shortcuts through SDK-owned creation. */
|
|
27
|
-
export declare function runRuntimeSchedulingAction(context:RuntimeExtendedActionContext):Promise<unknown>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/runtime-stats-options
|
|
3
|
-
*
|
|
4
|
-
* Maps the flat SDK/MCP action transport into the typed stats command options
|
|
5
|
-
* shared by the CLI and direct SDK surfaces.
|
|
6
|
-
*/
|
|
7
|
-
import type { StatsCommandOptions } from "./stats.js";
|
|
8
|
-
/** Convert a flat runtime option bag into the canonical typed stats payload. */
|
|
9
|
-
export declare function statsCommandOptionsFromRuntime(options:Record<string,unknown>):StatsCommandOptions;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Serialize one item test run with its mutations, selectors, context and explicitly supplied trust flags. */
|
|
2
|
-
export declare function buildBackgroundTestCommandArgs(id:string,options:Record<string,unknown>):string[];
|
|
3
|
-
/** Serialize a tracker-wide test run with status filters and shared execution policy. */
|
|
4
|
-
export declare function buildBackgroundTestAllCommandArgs(options:Record<string,unknown>):string[];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Require a fresh negative executable or interpreter lookup in the same environment before classifying setup failure. */
|
|
2
|
-
export declare function detectLinkedTestCommandNotFound(command:string,result:{
|
|
3
|
-
exitCode:number | null;
|
|
4
|
-
stderr:string;
|
|
5
|
-
},env:NodeJS.ProcessEnv,cwd:string):Promise<boolean>;
|
package/dist/sdk/test/entry.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { LinkedTest } from "../../types/index.js";
|
|
2
|
-
/** Preserve actionable usage refusals while certifying admission failed before linked-test writes. */
|
|
3
|
-
export declare function admitLinkedTestRequest<T>(validate:() => T):T;
|
|
4
|
-
/** Refuse commands consisting solely of assignments or comments before registration or execution. */
|
|
5
|
-
export declare function assertLinkedTestCommand(command:string | undefined):void;
|
|
6
|
-
/** Refuse invalid command or tracker context before a linked-test mutation can persist it. */
|
|
7
|
-
export declare function assertLinkedTestContext(test:LinkedTest):void;
|
|
8
|
-
/**
|
|
9
|
-
* Whether two linked tests are the same registration: an addition with the
|
|
10
|
-
* same identity is deduplicated rather than appended.
|
|
11
|
-
*/
|
|
12
|
-
export declare function linkedTestsHaveSameIdentity(left:LinkedTest,right:LinkedTest):boolean;
|
|
13
|
-
/** Public contract for structured linked test keys, shared by SDK and presentation-layer consumers. */
|
|
14
|
-
export declare const STRUCTURED_LINKED_TEST_KEYS:readonly ["command","cmd","path","scope","timeout","timeout_seconds","pm_context_mode","workspace_context_mode","env_set","env_clear","shared_host_safe","assert_stdout_contains","assert_stdout_regex","assert_stderr_contains","assert_stderr_regex","assert_stdout_min_lines","assert_json_field_equals","assert_json_field_gte","note"];
|
|
15
|
-
/** Classify linked-test plaintext through the shared structured-entry grammar. */
|
|
16
|
-
export declare function looksLikeStructuredLinkedTestEntry(raw:string):boolean;
|
|
17
|
-
/** Implements normalize structured linked test entry for the public runtime surface of this module. */
|
|
18
|
-
export declare function normalizeStructuredLinkedTestEntry(kv:Record<string,string>,optionName:"--add" | "--test"):Record<string,string>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** Detect explicit empty-run summaries even when another output line reports a positive count. */
|
|
2
|
-
export declare function detectEmptyLinkedTestRun(stdout:string,stderr:string):{
|
|
3
|
-
code:string;
|
|
4
|
-
} | null;
|
|
5
|
-
/** Find the first supported positive execution summary, preferring stdout over stderr. */
|
|
6
|
-
export declare function findLinkedTestExecutionReceipt(stdout:string,stderr:string):{
|
|
7
|
-
code:string;
|
|
8
|
-
stream:"stdout" | "stderr";
|
|
9
|
-
} | undefined;
|
|
10
|
-
/** Invocation scope a narrowed `pm test` receipt must carry into its restore command. */
|
|
11
|
-
export interface LinkedTestRestoreScope {
|
|
12
|
-
/** Tracker the invocation selected explicitly (`--pm-path` or `PM_PATH`), if any. */
|
|
13
|
-
trackerPath?:string;
|
|
14
|
-
/** True when the invocation suppressed extensions, so the restore command must too. */
|
|
15
|
-
noExtensions?:boolean;
|
|
16
|
-
/** Shell dialect to quote for; defaults to the current platform. */
|
|
17
|
-
platform?:NodeJS.Platform;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Derive the restore scope of an invocation. A tracker chosen through
|
|
21
|
-
* `PM_PATH` has no `--path` flag, so its resolved root is kept explicitly;
|
|
22
|
-
* a tracker found by discovery stays implicit, as the next shell finds it too.
|
|
23
|
-
*/
|
|
24
|
-
export declare function resolveLinkedTestRestoreScope(global:{
|
|
25
|
-
path?:string;
|
|
26
|
-
noExtensions?:boolean;
|
|
27
|
-
},pmRoot:string):LinkedTestRestoreScope;
|
|
28
|
-
/**
|
|
29
|
-
* Render the command that lists every linked test of an item on the same
|
|
30
|
-
* tracker and extension scope as the narrowed invocation. Each argument is
|
|
31
|
-
* quoted for the platform shell, so a copied tracker path never expands `$`
|
|
32
|
-
* or command substitutions.
|
|
33
|
-
*/
|
|
34
|
-
export declare function renderLinkedTestRestoreCommand(itemId:string,scope?:LinkedTestRestoreScope):string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copy source files and independent Git identity into a disposable workspace and link root and nested
|
|
3
|
-
* dependency directories at their original relative paths. Dependency trees
|
|
4
|
-
* are shared by convention, not protected against writes; callers must trust
|
|
5
|
-
* the linked command and use an independent install for dependency mutations.
|
|
6
|
-
* Source aliases are canonicalized through their existing ancestors and rebased
|
|
7
|
-
* into the snapshot; aliases into admitted dependency namespaces stay shared.
|
|
8
|
-
* Other external or excluded targets and overlapping physical source/destination
|
|
9
|
-
* trees are refused before the command can run.
|
|
10
|
-
*/
|
|
11
|
-
export declare function seedLinkedTestWorkspaceSnapshot(sourceRoot:string,snapshotRoot:string,sourcePmRoot?:string,includeTrackerData?:boolean):Promise<void>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module sdk/traceability/runtime-files-lookup
|
|
3
|
-
*
|
|
4
|
-
* Projects transport-neutral action values into reverse source lookup options.
|
|
5
|
-
*/
|
|
6
|
-
import type { FilesLookupOptions } from "../files.js";
|
|
7
|
-
/** Convert bounded MCP/action values into the public files lookup contract. */
|
|
8
|
-
export declare function runtimeFilesLookupOptions(options:Readonly<Record<string,unknown>>,paths:string[],parseInteger:(value:unknown,label:string) => number | undefined):FilesLookupOptions;
|