@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,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/help-json-payload
|
|
3
|
-
*
|
|
4
|
-
* Provides CLI runtime support for Help Json Payload.
|
|
5
|
-
*/
|
|
6
|
-
import { Command } from "commander";
|
|
7
|
-
import { resolveItemTypeRegistry } from "../sdk/runtime-primitives.js";
|
|
8
|
-
import { type HelpOptionSummary,type ExtensionCommandHelpDescriptor } from "./extension-command-help.js";
|
|
9
|
-
import { type PmPositionalActionContract } from "../sdk/cli-contracts/grammar-contracts.js";
|
|
10
|
-
import { type PmCommandCapabilityFamily,type PmCommandVisibilityTier } from "../sdk/agent-capability-contracts.js";
|
|
11
|
-
/** Documents the help argument summary payload exchanged by command, SDK, and package integrations. */
|
|
12
|
-
export interface HelpArgumentSummary {
|
|
13
|
-
/** Value that configures or reports name for this contract. */
|
|
14
|
-
name:string;
|
|
15
|
-
/** Value that configures or reports required for this contract. */
|
|
16
|
-
required:boolean;
|
|
17
|
-
/** Value that configures or reports variadic for this contract. */
|
|
18
|
-
variadic:boolean;
|
|
19
|
-
/** Value that configures or reports description for this contract. */
|
|
20
|
-
description:string | null;
|
|
21
|
-
}
|
|
22
|
-
/** Documents the help subcommand summary payload exchanged by command, SDK, and package integrations. */
|
|
23
|
-
export interface HelpSubcommandSummary {
|
|
24
|
-
/** Value that configures or reports name for this contract. */
|
|
25
|
-
name:string;
|
|
26
|
-
/** Value that configures or reports aliases for this contract. */
|
|
27
|
-
aliases:string[];
|
|
28
|
-
/** Value that configures or reports description for this contract. */
|
|
29
|
-
description:string;
|
|
30
|
-
/** Shared command visibility tier. */
|
|
31
|
-
tier:PmCommandVisibilityTier;
|
|
32
|
-
/** Shared command capability family. */
|
|
33
|
-
family:PmCommandCapabilityFamily;
|
|
34
|
-
/** Canonical command path when this row is an executable alias. */
|
|
35
|
-
alias_for?:string;
|
|
36
|
-
/** Compatibility lifecycle declared by the canonical alias contract. */
|
|
37
|
-
alias_lifecycle?:"permanent" | "deprecated";
|
|
38
|
-
/** True when callers should migrate from this executable spelling. */
|
|
39
|
-
deprecated?:true;
|
|
40
|
-
}
|
|
41
|
-
type ExtensionCommandSurface = Pick<ExtensionCommandHelpDescriptor,"tier" | "family">;
|
|
42
|
-
/** Resolve semantic package metadata, or fold descendant tiers and families for a namespace. */
|
|
43
|
-
declare function resolveExtensionCommandSurface(commandPath:string,descriptors:ReadonlyMap<string,ExtensionCommandHelpDescriptor>,allowDescendants?:boolean):ExtensionCommandSurface | undefined;
|
|
44
|
-
/** Find a registered command or known positional parent; reject missing namespace leaves instead of returning root help. */
|
|
45
|
-
declare function resolveCommandFromPathTokens(root:Command,pathTokens:string[]):Command | null;
|
|
46
|
-
declare function readOptionAttributeName(option:unknown):string | null;
|
|
47
|
-
declare function buildOptionAliasMap(options:unknown[]):Map<string,string[]>;
|
|
48
|
-
declare function buildHelpOptionSummaries(command:Command):HelpOptionSummary[];
|
|
49
|
-
declare function compactHelpOptionAliases(options:HelpOptionSummary[]):HelpOptionSummary[];
|
|
50
|
-
declare function buildHelpArgumentSummaries(command:Command):HelpArgumentSummary[];
|
|
51
|
-
/** Describe discoverable children with semantic tiers and package metadata, retaining hidden public commands for full discovery. */
|
|
52
|
-
declare function buildHelpSubcommandSummaries(command:Command,extensionDescriptors?:ReadonlyMap<string,ExtensionCommandHelpDescriptor>,includeAll?:boolean):HelpSubcommandSummary[];
|
|
53
|
-
interface PositionalActionHelpProjection {
|
|
54
|
-
arguments:HelpArgumentSummary[];
|
|
55
|
-
options:HelpOptionSummary[];
|
|
56
|
-
subcommands:HelpSubcommandSummary[];
|
|
57
|
-
usage:string;
|
|
58
|
-
}
|
|
59
|
-
/** Build the command/action structural view shared by every JSON help field. */
|
|
60
|
-
declare function buildPositionalActionHelpProjection(action:PmPositionalActionContract | undefined,targetCommand:Command,resolvedPath:string,allOptions:HelpOptionSummary[],extensionDescriptors?:ReadonlyMap<string,ExtensionCommandHelpDescriptor>,includeAll?:boolean):PositionalActionHelpProjection;
|
|
61
|
-
/** Build structured help for the requested command path, including canonical metadata, flags, aliases, and examples. */
|
|
62
|
-
declare function buildJsonHelpPayload(rootProgram:Command,targetCommand:Command,argv:string[],requestedPath:string[],extensionDescriptors:ReadonlyMap<string,ExtensionCommandHelpDescriptor>):Record<string,unknown>;
|
|
63
|
-
/** Implements maybe render bootstrap json help for the public runtime surface of this module. */
|
|
64
|
-
export declare function maybeRenderBootstrapJsonHelp(rootProgram:Command,argv:string[],extensionDescriptors:ReadonlyMap<string,ExtensionCommandHelpDescriptor>,requestedArgv?:string[]):Promise<boolean>;
|
|
65
|
-
declare function buildCreateUpdatePolicyHelpText(commandName:"create" | "update",typeRegistry:ReturnType<typeof resolveItemTypeRegistry>,argv:string[]):string;
|
|
66
|
-
/** Implements attach create update policy help text for the public runtime surface of this module. */
|
|
67
|
-
export declare function attachCreateUpdatePolicyHelpText(rootProgram:Command,typeRegistry:ReturnType<typeof resolveItemTypeRegistry>,argv:string[]):void;
|
|
68
|
-
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
69
|
-
export declare const _testOnly:{
|
|
70
|
-
attachCreateUpdatePolicyHelpText:typeof attachCreateUpdatePolicyHelpText;
|
|
71
|
-
buildCreateUpdatePolicyHelpText:typeof buildCreateUpdatePolicyHelpText;
|
|
72
|
-
buildJsonHelpPayload:typeof buildJsonHelpPayload;
|
|
73
|
-
buildPositionalActionHelpProjection:typeof buildPositionalActionHelpProjection;
|
|
74
|
-
buildHelpArgumentSummaries:typeof buildHelpArgumentSummaries;
|
|
75
|
-
buildHelpOptionSummaries:typeof buildHelpOptionSummaries;
|
|
76
|
-
buildHelpSubcommandSummaries:typeof buildHelpSubcommandSummaries;
|
|
77
|
-
buildOptionAliasMap:typeof buildOptionAliasMap;
|
|
78
|
-
compactHelpOptionAliases:typeof compactHelpOptionAliases;
|
|
79
|
-
readOptionAttributeName:typeof readOptionAttributeName;
|
|
80
|
-
resolveCommandFromPathTokens:typeof resolveCommandFromPathTokens;
|
|
81
|
-
resolveExtensionCommandSurface:typeof resolveExtensionCommandSurface;
|
|
82
|
-
};
|
|
83
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/invocation-profile
|
|
3
|
-
*
|
|
4
|
-
* Measures the executable's runtime lifetime, including module loading and
|
|
5
|
-
* pending output, independently of the narrower command-handler diagnostics.
|
|
6
|
-
*/
|
|
7
|
-
import type { Writable } from "node:stream";
|
|
8
|
-
/** Minimal process boundary, also usable by embedded executable hosts. */
|
|
9
|
-
interface InvocationProfileHost {
|
|
10
|
-
/** Register a callback after pending event-loop work and output drain. */
|
|
11
|
-
once(event:"beforeExit",listener:() => void):unknown;
|
|
12
|
-
/** Remove an unconsumed callback when an embedding host disposes it. */
|
|
13
|
-
off(event:"beforeExit",listener:() => void):unknown;
|
|
14
|
-
/** Monotonic seconds since runtime startup, including module initialization. */
|
|
15
|
-
uptime():number;
|
|
16
|
-
/** Diagnostic destination; command output remains on stdout. */
|
|
17
|
-
stderr:Pick<Writable,"write">;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Emit exactly one total when the process drains, even for help or refusals.
|
|
21
|
-
* Runtime uptime excludes parent-side spawn and final OS teardown. The legacy
|
|
22
|
-
* command records retain their shape; the receipt explicitly names their scope.
|
|
23
|
-
* Return a disposer for hosts that reuse the process instead of exiting.
|
|
24
|
-
*/
|
|
25
|
-
export declare function registerInvocationProfile(argv:readonly string[],host?:InvocationProfileHost):() => void;
|
|
26
|
-
export {};
|
package/dist/cli/main.d.ts
DELETED
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { describeUnknownError,isCommanderError,normalizeThrownExitCode,readThrownExitCode,wrapThrownErrorForSentry } from "../sdk/error-runtime.js";
|
|
3
|
-
import { type ActiveExtensionHookContext,type ExtensionCommandRegistry,type ExtensionDiscoveryResult,type ExtensionHookRegistry,type ExtensionParserRegistry,type ExtensionPreflightRegistry,type ExtensionRendererRegistry,type ExtensionServiceRegistry,type GlobalOptions,type PmCliErrorContext,type PreflightRuntimeDecision,type RegisteredExtensionSchemaMigrationDefinition,type TelemetryCommandOutcome,type TelemetryCommandResolution,type TelemetryErrorCategory,type TelemetryResolutionStage,createEmptyExtensionRegistrationRegistry,readSettings,readSettingsWithMetadata } from "../sdk/runtime-primitives.js";
|
|
4
|
-
import type { PmSettings } from "../types/index.js";
|
|
5
|
-
import { resolveUnknownCommanderToken } from "./commander-usage.js";
|
|
6
|
-
import { type ExtensionCommandHelpDescriptor } from "./extension-command-help.js";
|
|
7
|
-
import { type LooseCommandFlagDefinition } from "./extension-command-options.js";
|
|
8
|
-
import { type MandatoryMigrationBlocker } from "./migration-gates.js";
|
|
9
|
-
import type { RuntimeExtensionActivationProbe } from "./runtime/activation.js";
|
|
10
|
-
import { activationCommandMatchesProbe,buildBootstrapActivationProbe,buildRuntimeExtensionActivationScope,buildRuntimeExtensionFilterForProbe,collectActivationCommandCandidates,collectLeadingCommandArgs,collectParsedActivationCommandArgs,commandPathNeedsSearchExtensions,commandPathNeedsTemplateExtensions,discoveryNeedsActivationForProbe,extensionActivationCommands,extensionCapabilities,extensionNeedsActivationForProbe,extensionProvidesTemplatesRuntime,hasAnyCapability,hasGlobalExtensionContributions,matchesStaticExtensionCommand,probeUsesAnyFlag,resolveStaticExtensionActivationDecision } from "./runtime/activation.js";
|
|
11
|
-
import { collectExtensionFlagDefinitionsForCommand,collectExtensionFlagDefinitionsForInvocation,extractCommandScopedOptions,isImporterOrExporterCommandPath,recordCliReadOutputInvocationProvenance,validateDynamicExtensionCommandInvocation } from "./runtime/invocation-options.js";
|
|
12
|
-
import { enforceExplicitRetryForFlagTypos,invocationRequestsVersion,resolveCoreCommandRegistrationSelection,shouldAttachRichHelpTextForInvocation,shouldRegisterDynamicExtensionPaths,shouldRegisterRuntimeSchemaFlags } from "./runtime/selection.js";
|
|
13
|
-
import { buildPostActionTelemetryOutcome,inferPostActionErrorCode,inferPostActionFailureMessage,normalizeTelemetryCommandResolution,normalizeTelemetryErrorCategory,normalizeTelemetryResolutionStage,readRecordBoolean,readRecordNumber,readRecordString } from "./runtime/telemetry-outcome.js";
|
|
14
|
-
declare function setActiveExtensionHookContextForTest(context:ActiveExtensionHookContext<MandatoryMigrationBlocker> | null):void;
|
|
15
|
-
declare function setActiveRuntimeExtensionCommandDescriptorsForTest(descriptors:Map<string,ExtensionCommandHelpDescriptor>):void;
|
|
16
|
-
interface RuntimeExtensionSnapshot {
|
|
17
|
-
hooks:ExtensionHookRegistry;
|
|
18
|
-
commands:ExtensionCommandRegistry;
|
|
19
|
-
parsers:ExtensionParserRegistry;
|
|
20
|
-
preflight:ExtensionPreflightRegistry;
|
|
21
|
-
services:ExtensionServiceRegistry;
|
|
22
|
-
renderers:ExtensionRendererRegistry;
|
|
23
|
-
registrations:ReturnType<typeof createEmptyExtensionRegistrationRegistry>;
|
|
24
|
-
pmRoot:string;
|
|
25
|
-
settings:PmSettings;
|
|
26
|
-
commandHandlers:string[];
|
|
27
|
-
commandFlagHelp:Map<string,string>;
|
|
28
|
-
commandDescriptors:Map<string,ExtensionCommandHelpDescriptor>;
|
|
29
|
-
commandAliases:Map<string,string>;
|
|
30
|
-
loadWarnings:string[];
|
|
31
|
-
activationWarnings:string[];
|
|
32
|
-
loadedCount:number;
|
|
33
|
-
loadFailedCount:number;
|
|
34
|
-
activationFailedCount:number;
|
|
35
|
-
contextIntentPackages:Array<{
|
|
36
|
-
name:string;
|
|
37
|
-
module:unknown;
|
|
38
|
-
}>;
|
|
39
|
-
}
|
|
40
|
-
interface RuntimeExtensionDiscoverySnapshot {
|
|
41
|
-
pmRoot:string;
|
|
42
|
-
settings:PmSettings;
|
|
43
|
-
discovery:ExtensionDiscoveryResult;
|
|
44
|
-
discoveryMs:number;
|
|
45
|
-
settingsReadWarnings:string[];
|
|
46
|
-
}
|
|
47
|
-
declare function inferMissingFieldsFromErrorMessage(message:string):string[] | undefined;
|
|
48
|
-
/** Build replayable recovery guidance after removing sensitive matcher values from every invocation representation. */
|
|
49
|
-
declare function buildPmCliRecoveryContext(context:PmCliErrorContext | undefined,invocationArgv:string[],rawMessage:string):PmCliErrorContext;
|
|
50
|
-
declare function runAndClearAfterCommandHooks(outcome:TelemetryCommandOutcome):Promise<void>;
|
|
51
|
-
declare function envFlagEnabled(key:string):boolean;
|
|
52
|
-
declare function shouldLogHandledErrorToSentry(exitCode:number):boolean;
|
|
53
|
-
declare function maybeLogHandledCliErrorToSentry(params:{
|
|
54
|
-
command:string;
|
|
55
|
-
error_code:string;
|
|
56
|
-
error_category:TelemetryErrorCategory;
|
|
57
|
-
exit_code:number;
|
|
58
|
-
error_message:string;
|
|
59
|
-
command_resolution?:TelemetryCommandResolution;
|
|
60
|
-
resolution_stage?:TelemetryResolutionStage;
|
|
61
|
-
source_context?:string;
|
|
62
|
-
},bootstrapGlobal?:GlobalOptions):Promise<boolean>;
|
|
63
|
-
declare function handleGenericRunPmCliError(params:{
|
|
64
|
-
error:unknown;
|
|
65
|
-
attemptedCommand:string;
|
|
66
|
-
bootstrapGlobal:GlobalOptions;
|
|
67
|
-
emitTelemetryCommandError:(event:{
|
|
68
|
-
command:string;
|
|
69
|
-
errorCode:string;
|
|
70
|
-
errorMessage:string;
|
|
71
|
-
exitCode:number;
|
|
72
|
-
options:Record<string,unknown>;
|
|
73
|
-
resolutionStage:TelemetryResolutionStage;
|
|
74
|
-
}) => Promise<{
|
|
75
|
-
errorCategory:TelemetryErrorCategory;
|
|
76
|
-
commandResolution:TelemetryCommandResolution;
|
|
77
|
-
}>;
|
|
78
|
-
}):Promise<void>;
|
|
79
|
-
declare function toLooseFieldDefinitionType(fieldType:string):"string" | "number" | "boolean";
|
|
80
|
-
declare function commandHasLongOption(command:Command,longFlag:string):boolean;
|
|
81
|
-
declare function commandHasShortOption(command:Command,shortFlag:string):boolean;
|
|
82
|
-
declare function addRuntimeFieldOption(command:Command,flagToken:string,description:string,repeatable:boolean):void;
|
|
83
|
-
declare function collectRuntimeFieldLooseFlagDefinitionsForCommand(commandPath:string,pmRoot:string):Promise<LooseCommandFlagDefinition[]>;
|
|
84
|
-
declare function registerRuntimeSchemaFieldFlags(rootProgram:Command,invocationArgv:string[]):Promise<void>;
|
|
85
|
-
declare function maybeAttachCreateUpdatePolicyHelpText(rootProgram:Command,pmRoot:string,invocationArgv:string[],registrations:ReturnType<typeof createEmptyExtensionRegistrationRegistry>,settings?:PmSettings):Promise<void>;
|
|
86
|
-
declare function defaultPreflightDecision():PreflightRuntimeDecision;
|
|
87
|
-
declare function buildRuntimeExtensionSnapshotCacheKey(pmRoot:string,activationScope?:string):string;
|
|
88
|
-
declare function bootstrapProfileEnabled(invocationArgv:string[]):boolean;
|
|
89
|
-
declare function buildRuntimeExtensionDiscoverySnapshotCacheKey(pmRoot:string):string;
|
|
90
|
-
/** Surface settings-read warnings once per command on stderr. readSettings() silently falls back to defaults when settings.json is invalid, so most commands (create/list/search/...) generate the warning but never show it — a typo would change behavior with no explanation. Only the `settings_read_*` codes are surfaced (the corrupt-settings fallbacks: invalid_json / invalid_schema / merge_failed); other informational settings warnings (schema bootstrap, legacy-format coercion) stay quiet. Mirrors the same finding in `pm health`, which also carries a remediation_map for it. */
|
|
91
|
-
declare function emitSettingsReadWarnings(warnings:readonly string[]):void;
|
|
92
|
-
declare function emitExtensionProfile(globalOptions:GlobalOptions,snapshot:RuntimeExtensionSnapshot):void;
|
|
93
|
-
declare function emitExtensionSkippedProfile(profileEnabled:boolean | undefined,snapshot:RuntimeExtensionDiscoverySnapshot,probe:RuntimeExtensionActivationProbe):void;
|
|
94
|
-
declare function loadRuntimeExtensionDiscoverySnapshot(pmRoot:string,readSettingsWithMetadataFn?:typeof readSettingsWithMetadata):Promise<RuntimeExtensionDiscoverySnapshot | null>;
|
|
95
|
-
declare function loadRuntimeExtensionSnapshot(pmRoot:string,probe?:RuntimeExtensionActivationProbe,readSettingsFn?:typeof readSettings):Promise<RuntimeExtensionSnapshot | null>;
|
|
96
|
-
declare function maybeLoadRuntimeExtensions(command:Command):Promise<{
|
|
97
|
-
hooks:ExtensionHookRegistry;
|
|
98
|
-
commands:ExtensionCommandRegistry;
|
|
99
|
-
parsers:ExtensionParserRegistry;
|
|
100
|
-
preflight:ExtensionPreflightRegistry;
|
|
101
|
-
services:ExtensionServiceRegistry;
|
|
102
|
-
renderers:ExtensionRendererRegistry;
|
|
103
|
-
registrations:ReturnType<typeof createEmptyExtensionRegistrationRegistry>;
|
|
104
|
-
pmRoot:string;
|
|
105
|
-
} | null>;
|
|
106
|
-
/** Load the complete installed registry for recovery without registering guessed command handlers. */
|
|
107
|
-
declare function loadRuntimeExtensionCommandDescriptorsForRecovery(pmRoot:string):Promise<Map<string,ExtensionCommandHelpDescriptor>>;
|
|
108
|
-
declare function executeRegisteredRuntimeMigrations(migrations:RegisteredExtensionSchemaMigrationDefinition[],pmRoot:string):Promise<string[]>;
|
|
109
|
-
declare function runRequiredExtensionCommand(command:Command,options:Record<string,unknown>,globalOptions:GlobalOptions,extensionFlagDefinitions?:LooseCommandFlagDefinition[]):Promise<unknown>;
|
|
110
|
-
/** Wrap each action once so validated parser overrides and extension handlers precede the original core action. */
|
|
111
|
-
declare function wrapProgramActionsForExtensionHandlers(rootProgram:Command):void;
|
|
112
|
-
/** Apply descendant-derived visibility to every generated extension namespace. */
|
|
113
|
-
declare function applyDynamicExtensionRootHelpVisibility(rootProgram:Command,preexistingTopLevelCommands:ReadonlySet<string>,descriptors:ReadonlyMap<string,ExtensionCommandHelpDescriptor>):void;
|
|
114
|
-
declare function registerDynamicExtensionCommandPaths(rootProgram:Command,invocationArgv:string[]):Promise<void>;
|
|
115
|
-
/**
|
|
116
|
-
* The root `program` is a module-level singleton. Any path that enters
|
|
117
|
-
* `runPmCli` a second time in the same process (an embedding host, a long-lived
|
|
118
|
-
* plugin runtime, or a retry) re-runs core command registration against it, and
|
|
119
|
-
* Commander throws `cannot add command 'X' as already have command 'X'` on the
|
|
120
|
-
* second pass. That is a raw `Error` (not a `CommandError`), so it escapes the
|
|
121
|
-
* Sentry release-gate CLI-error allowlist and can silently block the daily
|
|
122
|
-
* auto-release (Sentry PM-CLI-1R / pm-zyez — the fragility class pm-nb08 warns
|
|
123
|
-
* about).
|
|
124
|
-
*
|
|
125
|
-
* Make top-level registration idempotent: a duplicate `program.command(name)`
|
|
126
|
-
* returns a throwaway `Command`, so its chained `.argument()/.option()/.action()`
|
|
127
|
-
* builders apply harmlessly while the already-wired original command is
|
|
128
|
-
* preserved. The guard is installed once per program (Symbol flag) and only
|
|
129
|
-
* short-circuits exact duplicates — every first-time registration still flows
|
|
130
|
-
* through Commander untouched.
|
|
131
|
-
*/
|
|
132
|
-
declare function ensureIdempotentTopLevelCommandRegistration(rootProgram:Command):void;
|
|
133
|
-
type TelemetryCommandErrorEmitter = (params:{
|
|
134
|
-
command:string;
|
|
135
|
-
errorCode:string;
|
|
136
|
-
errorMessage:string;
|
|
137
|
-
exitCode:number;
|
|
138
|
-
options:Record<string,unknown>;
|
|
139
|
-
resolutionStage:TelemetryResolutionStage;
|
|
140
|
-
}) => Promise<{
|
|
141
|
-
errorCategory:TelemetryErrorCategory;
|
|
142
|
-
commandResolution:TelemetryCommandResolution;
|
|
143
|
-
}>;
|
|
144
|
-
interface RunPmCliErrorContext {
|
|
145
|
-
error:unknown;
|
|
146
|
-
invocationArgv:string[];
|
|
147
|
-
bootstrapGlobal:GlobalOptions;
|
|
148
|
-
jsonErrors:boolean;
|
|
149
|
-
bootstrapPmRoot:string;
|
|
150
|
-
attemptedCommand:string;
|
|
151
|
-
emitTelemetryCommandError:TelemetryCommandErrorEmitter;
|
|
152
|
-
}
|
|
153
|
-
declare function prepareExtensionServicesForRunPmCliError(params:{
|
|
154
|
-
invocationArgv:string[];
|
|
155
|
-
bootstrapGlobal:GlobalOptions;
|
|
156
|
-
bootstrapPmRoot:string;
|
|
157
|
-
}):Promise<void>;
|
|
158
|
-
declare function setRecoveredExtensionServices(bootstrapSnapshot:Pick<RuntimeExtensionSnapshot,"services"> | null):void;
|
|
159
|
-
declare function handleRunPmCliKnownError(context:RunPmCliErrorContext,numericExitCode:number | undefined):Promise<boolean>;
|
|
160
|
-
/** Classify failed help requests by semantic operation so optional package recovery and error telemetry retain the attempted command. */
|
|
161
|
-
declare function handleUnknownHelpCommandError(context:RunPmCliErrorContext,code:string | undefined):Promise<void>;
|
|
162
|
-
declare function handleRunPmCliHelpDisplayError(context:RunPmCliErrorContext,code:string | undefined,rawMessage:string):Promise<boolean>;
|
|
163
|
-
declare function handleRunPmCliCommanderUsageError(context:RunPmCliErrorContext,code:string):Promise<void>;
|
|
164
|
-
declare function shouldHandleRunPmCliCommanderError(error:unknown):boolean;
|
|
165
|
-
declare function handleRunPmCliCommanderError(context:RunPmCliErrorContext):Promise<void>;
|
|
166
|
-
declare function handleRunPmCliError(params:{
|
|
167
|
-
error:unknown;
|
|
168
|
-
invocationArgv:string[];
|
|
169
|
-
}):Promise<void>;
|
|
170
|
-
/** Implements run pm cli for the public runtime surface of this module. */
|
|
171
|
-
export declare function runPmCli(rawArgv?:string[]):Promise<void>;
|
|
172
|
-
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
173
|
-
export declare const _testOnly:{
|
|
174
|
-
activationCommandMatchesProbe:typeof activationCommandMatchesProbe;
|
|
175
|
-
applyDynamicExtensionRootHelpVisibility:typeof applyDynamicExtensionRootHelpVisibility;
|
|
176
|
-
bootstrapProfileEnabled:typeof bootstrapProfileEnabled;
|
|
177
|
-
buildBootstrapActivationProbe:typeof buildBootstrapActivationProbe;
|
|
178
|
-
buildPostActionTelemetryOutcome:typeof buildPostActionTelemetryOutcome;
|
|
179
|
-
buildPmCliRecoveryContext:typeof buildPmCliRecoveryContext;
|
|
180
|
-
buildRuntimeExtensionDiscoverySnapshotCacheKey:typeof buildRuntimeExtensionDiscoverySnapshotCacheKey;
|
|
181
|
-
buildRuntimeExtensionActivationScope:typeof buildRuntimeExtensionActivationScope;
|
|
182
|
-
buildRuntimeExtensionSnapshotCacheKey:typeof buildRuntimeExtensionSnapshotCacheKey;
|
|
183
|
-
buildRuntimeExtensionFilterForProbe:typeof buildRuntimeExtensionFilterForProbe;
|
|
184
|
-
addRuntimeFieldOption:typeof addRuntimeFieldOption;
|
|
185
|
-
collectActivationCommandCandidates:typeof collectActivationCommandCandidates;
|
|
186
|
-
collectExtensionFlagDefinitionsForCommand:typeof collectExtensionFlagDefinitionsForCommand;
|
|
187
|
-
collectExtensionFlagDefinitionsForInvocation:typeof collectExtensionFlagDefinitionsForInvocation;
|
|
188
|
-
collectLeadingCommandArgs:typeof collectLeadingCommandArgs;
|
|
189
|
-
collectParsedActivationCommandArgs:typeof collectParsedActivationCommandArgs;
|
|
190
|
-
collectRuntimeFieldLooseFlagDefinitionsForCommand:typeof collectRuntimeFieldLooseFlagDefinitionsForCommand;
|
|
191
|
-
commandHasLongOption:typeof commandHasLongOption;
|
|
192
|
-
commandHasShortOption:typeof commandHasShortOption;
|
|
193
|
-
commandPathNeedsSearchExtensions:typeof commandPathNeedsSearchExtensions;
|
|
194
|
-
commandPathNeedsTemplateExtensions:typeof commandPathNeedsTemplateExtensions;
|
|
195
|
-
describeUnknownError:typeof describeUnknownError;
|
|
196
|
-
defaultPreflightDecision:typeof defaultPreflightDecision;
|
|
197
|
-
discoveryNeedsActivationForProbe:typeof discoveryNeedsActivationForProbe;
|
|
198
|
-
emitExtensionProfile:typeof emitExtensionProfile;
|
|
199
|
-
emitExtensionSkippedProfile:typeof emitExtensionSkippedProfile;
|
|
200
|
-
emitSettingsReadWarnings:typeof emitSettingsReadWarnings;
|
|
201
|
-
ensureIdempotentTopLevelCommandRegistration:typeof ensureIdempotentTopLevelCommandRegistration;
|
|
202
|
-
enforceExplicitRetryForFlagTypos:typeof enforceExplicitRetryForFlagTypos;
|
|
203
|
-
envFlagEnabled:typeof envFlagEnabled;
|
|
204
|
-
executeRegisteredRuntimeMigrations:typeof executeRegisteredRuntimeMigrations;
|
|
205
|
-
extractCommandScopedOptions:typeof extractCommandScopedOptions;
|
|
206
|
-
extensionActivationCommands:typeof extensionActivationCommands;
|
|
207
|
-
extensionCapabilities:typeof extensionCapabilities;
|
|
208
|
-
extensionNeedsActivationForProbe:typeof extensionNeedsActivationForProbe;
|
|
209
|
-
extensionProvidesTemplatesRuntime:typeof extensionProvidesTemplatesRuntime;
|
|
210
|
-
hasAnyCapability:typeof hasAnyCapability;
|
|
211
|
-
hasGlobalExtensionContributions:typeof hasGlobalExtensionContributions;
|
|
212
|
-
handleGenericRunPmCliError:typeof handleGenericRunPmCliError;
|
|
213
|
-
handleRunPmCliCommanderError:typeof handleRunPmCliCommanderError;
|
|
214
|
-
handleRunPmCliError:typeof handleRunPmCliError;
|
|
215
|
-
handleRunPmCliHelpDisplayError:typeof handleRunPmCliHelpDisplayError;
|
|
216
|
-
handleRunPmCliKnownError:typeof handleRunPmCliKnownError;
|
|
217
|
-
handleRunPmCliCommanderUsageError:typeof handleRunPmCliCommanderUsageError;
|
|
218
|
-
handleUnknownHelpCommandError:typeof handleUnknownHelpCommandError;
|
|
219
|
-
inferMissingFieldsFromErrorMessage:typeof inferMissingFieldsFromErrorMessage;
|
|
220
|
-
inferPostActionErrorCode:typeof inferPostActionErrorCode;
|
|
221
|
-
inferPostActionFailureMessage:typeof inferPostActionFailureMessage;
|
|
222
|
-
invocationRequestsVersion:typeof invocationRequestsVersion;
|
|
223
|
-
isCommanderError:typeof isCommanderError;
|
|
224
|
-
loadRuntimeExtensionCommandDescriptorsForRecovery:typeof loadRuntimeExtensionCommandDescriptorsForRecovery;
|
|
225
|
-
loadRuntimeExtensionDiscoverySnapshot:typeof loadRuntimeExtensionDiscoverySnapshot;
|
|
226
|
-
loadRuntimeExtensionSnapshot:typeof loadRuntimeExtensionSnapshot;
|
|
227
|
-
maybeLoadRuntimeExtensions:typeof maybeLoadRuntimeExtensions;
|
|
228
|
-
maybeAttachCreateUpdatePolicyHelpText:typeof maybeAttachCreateUpdatePolicyHelpText;
|
|
229
|
-
maybeLogHandledCliErrorToSentry:typeof maybeLogHandledCliErrorToSentry;
|
|
230
|
-
matchesStaticExtensionCommand:typeof matchesStaticExtensionCommand;
|
|
231
|
-
normalizeTelemetryCommandResolution:typeof normalizeTelemetryCommandResolution;
|
|
232
|
-
normalizeTelemetryErrorCategory:typeof normalizeTelemetryErrorCategory;
|
|
233
|
-
normalizeTelemetryResolutionStage:typeof normalizeTelemetryResolutionStage;
|
|
234
|
-
normalizeThrownExitCode:typeof normalizeThrownExitCode;
|
|
235
|
-
probeUsesAnyFlag:typeof probeUsesAnyFlag;
|
|
236
|
-
prepareExtensionServicesForRunPmCliError:typeof prepareExtensionServicesForRunPmCliError;
|
|
237
|
-
readRecordBoolean:typeof readRecordBoolean;
|
|
238
|
-
readRecordNumber:typeof readRecordNumber;
|
|
239
|
-
readRecordString:typeof readRecordString;
|
|
240
|
-
recordCliReadOutputInvocationProvenance:typeof recordCliReadOutputInvocationProvenance;
|
|
241
|
-
registerDynamicExtensionCommandPaths:typeof registerDynamicExtensionCommandPaths;
|
|
242
|
-
registerRuntimeSchemaFieldFlags:typeof registerRuntimeSchemaFieldFlags;
|
|
243
|
-
resolveCoreCommandRegistrationSelection:typeof resolveCoreCommandRegistrationSelection;
|
|
244
|
-
resolveStaticExtensionActivationDecision:typeof resolveStaticExtensionActivationDecision;
|
|
245
|
-
resolveUnknownHelpToken:typeof resolveUnknownCommanderToken;
|
|
246
|
-
readThrownExitCode:typeof readThrownExitCode;
|
|
247
|
-
runAndClearAfterCommandHooks:typeof runAndClearAfterCommandHooks;
|
|
248
|
-
runRequiredExtensionCommand:typeof runRequiredExtensionCommand;
|
|
249
|
-
shouldAttachRichHelpTextForInvocation:typeof shouldAttachRichHelpTextForInvocation;
|
|
250
|
-
shouldLogHandledErrorToSentry:typeof shouldLogHandledErrorToSentry;
|
|
251
|
-
shouldRegisterDynamicExtensionPaths:typeof shouldRegisterDynamicExtensionPaths;
|
|
252
|
-
shouldRegisterRuntimeSchemaFlags:typeof shouldRegisterRuntimeSchemaFlags;
|
|
253
|
-
shouldHandleRunPmCliCommanderError:typeof shouldHandleRunPmCliCommanderError;
|
|
254
|
-
setActiveExtensionHookContextForTest:typeof setActiveExtensionHookContextForTest;
|
|
255
|
-
setActiveRuntimeExtensionCommandDescriptorsForTest:typeof setActiveRuntimeExtensionCommandDescriptorsForTest;
|
|
256
|
-
setRecoveredExtensionServices:typeof setRecoveredExtensionServices;
|
|
257
|
-
toLooseFieldDefinitionType:typeof toLooseFieldDefinitionType;
|
|
258
|
-
isImporterOrExporterCommandPath:typeof isImporterOrExporterCommandPath;
|
|
259
|
-
validateDynamicExtensionCommandInvocation:typeof validateDynamicExtensionCommandInvocation;
|
|
260
|
-
wrapProgramActionsForExtensionHandlers:typeof wrapProgramActionsForExtensionHandlers;
|
|
261
|
-
wrapThrownErrorForSentry:typeof wrapThrownErrorForSentry;
|
|
262
|
-
};
|
|
263
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/migration-gates
|
|
3
|
-
*
|
|
4
|
-
* Provides CLI runtime support for Migration Gates.
|
|
5
|
-
*/
|
|
6
|
-
import { type PreflightRuntimeDecision } from "../sdk/runtime-primitives.js";
|
|
7
|
-
/** Documents the mandatory migration blocker payload exchanged by command, SDK, and package integrations. */
|
|
8
|
-
export interface MandatoryMigrationBlocker {
|
|
9
|
-
/** Value that configures or reports layer for this contract. */
|
|
10
|
-
layer:"global" | "project";
|
|
11
|
-
/** Value that configures or reports name for this contract. */
|
|
12
|
-
name:string;
|
|
13
|
-
/** Stable identifier used to reference this record across commands and storage. */
|
|
14
|
-
id:string;
|
|
15
|
-
/** Lifecycle state reported for status. */
|
|
16
|
-
status:string;
|
|
17
|
-
}
|
|
18
|
-
/** Documents the write gate decision payload exchanged by command, SDK, and package integrations. */
|
|
19
|
-
export interface WriteGateDecision {
|
|
20
|
-
/** Whether mutation applies to this operation. */
|
|
21
|
-
isMutation:boolean;
|
|
22
|
-
/** Value that configures or reports force capable for this contract. */
|
|
23
|
-
forceCapable:boolean;
|
|
24
|
-
/** Value that configures or reports force requested for this contract. */
|
|
25
|
-
forceRequested:boolean;
|
|
26
|
-
}
|
|
27
|
-
/** Implements resolve migration id for the public runtime surface of this module. */
|
|
28
|
-
export declare function resolveMigrationId(definition:Record<string,unknown>,fallbackIndex:number):string;
|
|
29
|
-
/** Implements resolve normalized migration status for the public runtime surface of this module. */
|
|
30
|
-
export declare function resolveNormalizedMigrationStatus(definition:Record<string,unknown>):string;
|
|
31
|
-
/** Implements collect mandatory migration blockers for the public runtime surface of this module. */
|
|
32
|
-
export declare function collectMandatoryMigrationBlockers(migrations:Array<{
|
|
33
|
-
layer:"global" | "project";
|
|
34
|
-
name:string;
|
|
35
|
-
definition:Record<string,unknown>;
|
|
36
|
-
}>):MandatoryMigrationBlocker[];
|
|
37
|
-
/** Implements decide write gate for the public runtime surface of this module. */
|
|
38
|
-
export declare function decideWriteGate(commandPath:string,options:Record<string,unknown>):WriteGateDecision;
|
|
39
|
-
/** Normalize configured active-status spellings for preflight comparison. */
|
|
40
|
-
export declare function normalizedLifecycleStatus(value:string | undefined):string;
|
|
41
|
-
/** Convert incomplete schema-evolution CLI invocations into typed usage errors. */
|
|
42
|
-
export declare function enforceSchemaMigrationInput(commandPath:string,commandArgs:string[],options:Record<string,unknown>):void;
|
|
43
|
-
/**
|
|
44
|
-
* Apply SDK-owned provenance and secret policy to one parsed CLI invocation.
|
|
45
|
-
* Advisories use invocation diagnostics so JSON failures remain parseable.
|
|
46
|
-
*/
|
|
47
|
-
export declare function enforceMutationGuardPreflight(commandPath:string,commandArgs:string[],options:Record<string,unknown>,global:{
|
|
48
|
-
author?:string;
|
|
49
|
-
force?:boolean;
|
|
50
|
-
json?:boolean;
|
|
51
|
-
},pmRoot:string):Promise<void>;
|
|
52
|
-
/** Implements enforce mandatory migration write gate for the public runtime surface of this module. */
|
|
53
|
-
export declare function enforceMandatoryMigrationWriteGate(commandPath:string,options:Record<string,unknown>,blockers:MandatoryMigrationBlocker[]):void;
|
|
54
|
-
/** Implements enforce item format write gate and preflight migration for the public runtime surface of this module. */
|
|
55
|
-
export declare function enforceItemFormatWriteGateAndPreflightMigration(commandPath:string,options:Record<string,unknown>,pmRoot:string,decision:PreflightRuntimeDecision):Promise<void>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PreflightWarningDiagnostics } from "./error-guidance.js";
|
|
2
|
-
/** Prefer the invocation renderer while preserving direct callers without a scope. */
|
|
3
|
-
export declare function resolvePreflightJsonMode(fallback:boolean):boolean;
|
|
4
|
-
/** Emit human diagnostics immediately or retain codes in the current JSON invocation. */
|
|
5
|
-
export declare function emitPreflightWarning(code:string,humanMessage?:string):void;
|
|
6
|
-
/** Consume pending advisories into the failure while preserving existing diagnostics. */
|
|
7
|
-
export declare function attachPreflightWarnings<T extends object>(envelope:T):T & PreflightWarningDiagnostics;
|
|
8
|
-
/** Attach advisories to an already-rendered Commander JSON refusal. */
|
|
9
|
-
export declare function attachSerializedPreflightWarnings(envelope:string):string;
|
|
10
|
-
/** Isolate nested/concurrent invocations and publish remaining successful-command warnings once. */
|
|
11
|
-
export declare function runWithPreflightWarnings(json:boolean,run:() => Promise<void>):Promise<void>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/register-annotations
|
|
3
|
-
*
|
|
4
|
-
* Registers comment, note, and learning adapters around the shared bounded
|
|
5
|
-
* annotation SDK contract.
|
|
6
|
-
*/
|
|
7
|
-
import type { Command } from "commander";
|
|
8
|
-
/** Converts a Commander token into a positive annotation index. */
|
|
9
|
-
export type PositiveIntegerOptionParser = (value:string,previous:number | undefined) => number;
|
|
10
|
-
/** Register bounded annotation commands on the root Commander program. */
|
|
11
|
-
export declare function registerAnnotationCommands(program:Command,parsePositiveInteger:(flag:string) => PositiveIntegerOptionParser):void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/register-assurance
|
|
3
|
-
*
|
|
4
|
-
* Thin Commander adapter over the transport-neutral public assurance action.
|
|
5
|
-
*/
|
|
6
|
-
import type { Command } from "commander";
|
|
7
|
-
/** Register the declarative assurance command family. */
|
|
8
|
-
export declare function registerAssuranceCommand(program:Command):void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/register-files-lookup
|
|
3
|
-
*
|
|
4
|
-
* Registers the bounded reverse linked-file query without expanding the main
|
|
5
|
-
* mutation command registry.
|
|
6
|
-
*/
|
|
7
|
-
import type { Command } from "commander";
|
|
8
|
-
/** Register the reverse linked-file lookup below the existing files command. */
|
|
9
|
-
export declare function registerFilesLookupCommand(filesCommand:Command):void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/register-history-activity
|
|
3
|
-
*
|
|
4
|
-
* Shares history activity options and output handling across native and legacy entrypoints.
|
|
5
|
-
*/
|
|
6
|
-
import type { Command } from "commander";
|
|
7
|
-
/** Configure an activity leaf with the shared projection and streaming contract. */
|
|
8
|
-
export declare function registerHistoryActivityCommand(command:Command):void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/register-history-author
|
|
3
|
-
*
|
|
4
|
-
* Registers the append-only remediation surface for unknown history authors.
|
|
5
|
-
*/
|
|
6
|
-
import type { Command } from "commander";
|
|
7
|
-
/** Register the evidence-backed immutable-history author disposition command. */
|
|
8
|
-
export declare function registerHistoryAuthorAcknowledgeCommand(program:Command):void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/register-history-maintenance
|
|
3
|
-
*
|
|
4
|
-
* Registers native history maintenance and permanent legacy spellings from
|
|
5
|
-
* the same option and action definitions; all behavior remains SDK-owned.
|
|
6
|
-
*/
|
|
7
|
-
import type { Command } from "commander";
|
|
8
|
-
/** Install identical maintenance actions at the history namespace or legacy root. */
|
|
9
|
-
export declare function registerHistoryMaintenanceCommands(parent:Command,native:boolean):void;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/register-list-query
|
|
3
|
-
*
|
|
4
|
-
* Registers SDK-backed item, list, context, search, graph, history, and event
|
|
5
|
-
* transports. CLI aliases and rendering live here; selection and persistence
|
|
6
|
-
* remain owned by the SDK.
|
|
7
|
-
*/
|
|
8
|
-
import type { Command } from "commander";
|
|
9
|
-
import { getGlobalOptions } from "./registration-helpers.js";
|
|
10
|
-
/** Restrict command registration for lazy CLI startup without changing action behavior. */
|
|
11
|
-
export interface RegisterListQueryCommandsOptions {
|
|
12
|
-
/** Canonical names to register; an absent or empty set registers every family, and context accepts ctx. */
|
|
13
|
-
commandFilter?:Set<string>;
|
|
14
|
-
}
|
|
15
|
-
type ListOutputFormat = "csv" | "table" | "json" | "ndjson" | "toon";
|
|
16
|
-
/** Parses the `pm list --format` value into a supported render mode. csv/table are human export modes; json/toon override the machine output format. Returns undefined when no `--format` was supplied so the global output format applies. */
|
|
17
|
-
declare function parseListFormat(rawFormat:unknown):ListOutputFormat | undefined;
|
|
18
|
-
/** Apply an explicit JSON/TOON override or permitted NDJSON mode, refusing unsupported formats and conflicting --json/TOON requests. */
|
|
19
|
-
declare function resolveReadCommandOutputFormat(commandLabel:string,rawFormat:unknown,globalOptions:ReturnType<typeof getGlobalOptions>,allowNdjson?:boolean):ReturnType<typeof getGlobalOptions>;
|
|
20
|
-
/** Register filtered read families and compatibility aliases without reading tracker state. Action adapters normalize Commander inputs and delegate domain behavior to SDK owners. */
|
|
21
|
-
export declare function registerListQueryCommands(program:Command,options?:RegisterListQueryCommandsOptions):void;
|
|
22
|
-
/** Compatibility access to the format validators used by registered CLI actions. */
|
|
23
|
-
export declare const _testOnlyRegisterListQuery:{
|
|
24
|
-
resolveReadCommandOutputFormat:typeof resolveReadCommandOutputFormat;
|
|
25
|
-
parseListFormat:typeof parseListFormat;
|
|
26
|
-
};
|
|
27
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/register-mutation-options
|
|
3
|
-
*
|
|
4
|
-
* Defines bounded mutation-family registration controls.
|
|
5
|
-
*/
|
|
6
|
-
/** Optional controls used by the selective CLI bootstrap. */
|
|
7
|
-
export interface RegisterMutationCommandsOptions {
|
|
8
|
-
/** Register only this mutation command when the family can safely short-circuit. */
|
|
9
|
-
targetCommandName?:string;
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module cli/register-mutation
|
|
3
|
-
*
|
|
4
|
-
* Provides CLI runtime support for Register Mutation.
|
|
5
|
-
*/
|
|
6
|
-
import type { Command } from "commander";
|
|
7
|
-
import { type CommanderOptionRegistrationContract } from "../sdk/cli-contracts.js";
|
|
8
|
-
export { looksLikeSchemaSubcommandTypo,parseSchemaOrderOption,} from "./schema-registration-helpers.js";
|
|
9
|
-
import type { RegisterMutationCommandsOptions } from "./register-mutation-options.js";
|
|
10
|
-
export type { RegisterMutationCommandsOptions } from "./register-mutation-options.js";
|
|
11
|
-
/** Build a commander argParser that coerces a flag value into a positive (1-based) integer, throwing a usage error when the supplied value is not a whole number >= 1. Used by `pm comments --edit/--delete <index>` so an invalid index fails fast with a clear message instead of silently coercing. */
|
|
12
|
-
export declare function parsePositiveIntOption(flag:string):(value:string) => number;
|
|
13
|
-
/** Implements register commander option contracts for the public runtime surface of this module. */
|
|
14
|
-
export declare function registerCommanderOptionContracts(command:Command,contracts:CommanderOptionRegistrationContract[]):void;
|
|
15
|
-
/** Implements register mutation commands for the public runtime surface of this module. */
|
|
16
|
-
export declare function registerMutationCommands(program:Command,registrationOptions?:RegisterMutationCommandsOptions):void;
|