@unbrained/pm-cli 2026.11.8 → 2026.11.10
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 +31 -0
- package/dist/cli/error-guidance.js +4 -4
- package/dist/cli/main.js +1 -1
- package/dist/cli/public.d.ts +1 -1
- package/dist/cli/register-history-maintenance.js +2 -2
- package/dist/cli/register-setup.js +1 -1
- package/dist/cli/runtime/projection-retry.js +1 -1
- package/dist/cli/runtime/read-output-mutation-retry.js +2 -0
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-NKO42JMT.js → chunk-4AASUCHO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7GC6WIDR.js → chunk-4FLAKTZW.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-5CAMQHEW.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-NH7QX2M2.js → chunk-7NAAW5EX.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-BSJSGDA3.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-DOHZKPPC.js → chunk-CZETQYKO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YUTFMHSG.js → chunk-D727C4RO.js} +33 -33
- package/dist/cli-bundle/chunks/{chunk-XBUZENP4.js → chunk-EHDGHFMJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-L5BU5FYN.js → chunk-F6FBGLR7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MKW5LGVQ.js → chunk-F7P2NZEG.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-7V6I6X4G.js → chunk-FYD6LSJA.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-L4WWG2H6.js +6 -0
- package/dist/cli-bundle/chunks/{chunk-S4IZIMAO.js → chunk-NNE63MSM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HESIRIVX.js → chunk-NZAFLDSH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Z3LWNF7C.js → chunk-OJ2KEDUX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4BMPGUTG.js → chunk-T2MNRM3S.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YGUUJHSR.js → chunk-TBBWPEF5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-C4MQFWCM.js → chunk-U7LILCUN.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-UFPLZ6LZ.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-CP43BHX3.js → chunk-UL64P6MR.js} +29 -29
- package/dist/cli-bundle/chunks/chunk-WNEUWDUE.js +116 -0
- package/dist/cli-bundle/chunks/{chunk-RC6SSFOF.js → chunk-X7NM5HVQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-LI2HP5OX.js → chunk-YSWD2NXB.js} +2 -2
- package/dist/cli-bundle/chunks/item-revision-M7KXLQXF.js +2 -0
- package/dist/cli-bundle/chunks/item-transaction-4N5P34GO.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-admission-FJ3D66PV.js → mutation-admission-374UR7NI.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-GXP77CX7.js → register-list-query-GSB7PP5P.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-XJ2DROUM.js → register-mutation-ZBF6ITYK.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-O5LERXM7.js → register-operations-PWF6GOHE.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-4VOTYLL2.js → register-setup-QDZ2Y3CI.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-ZDJL3FGL.js → stage-67WGPKPH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-Z2QWZRSL.js → chunk-2SQUWQP3.js} +18 -18
- package/dist/cli-bundle/focused-chunks/{chunk-P4EHEH4C.js → chunk-2Y4H4LIX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-WPXMPGTY.js → chunk-3DWNH72D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-3K2MYE7R.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-LTPT5TE7.js → chunk-56MIAFEN.js} +20 -20
- package/dist/cli-bundle/focused-chunks/{chunk-3HFENALW.js → chunk-67M7E2Z3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6U5HP6L3.js → chunk-ALLOWZSH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-I4YUZW3J.js → chunk-BE2GK2G7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KNF2QTEZ.js → chunk-HTMQDNVC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UUVRYIKA.js → chunk-LWMPQRJT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-O7K3X4LH.js → chunk-LY3JXL25.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-DIEBSC76.js → chunk-NZQYHPUN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-5YPX3QKU.js → chunk-PAGW6A2X.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-QCHCEFTO.js +12 -0
- package/dist/cli-bundle/focused-chunks/{chunk-4UOXVFJZ.js → chunk-QHGGO7SY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-QK7FX4O5.js +44 -0
- package/dist/cli-bundle/focused-chunks/{chunk-SZ2BKK3M.js → chunk-RFMKS7VD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-U7HWWEJ2.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-UIZVD36C.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-ULTSMJYF.js → chunk-WJHDUON5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TSHRBPTI.js → chunk-WK773UVA.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-ZBOCYFBE.js +82 -0
- package/dist/cli-bundle/focused-chunks/item-revision-XC4ZJ7MY.js +2 -0
- package/dist/cli-bundle/focused-chunks/{item-transaction-Q2Z7DDCR.js → item-transaction-CVGK4RJP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-QWC6MLTZ.js → mutation-admission-N27D5H64.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-NKH5SKSZ.js → stage-KPK2UHVO.js} +2 -2
- package/dist/cli-bundle/main.js +26 -26
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +4 -4
- 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 +9 -9
- package/dist/core/checkpoint/mutation-checkpoint.d.ts +12 -20
- package/dist/core/config/nested-settings.d.ts +14 -45
- package/dist/core/config/nested-settings.js +1 -1
- package/dist/core/config/positional-value.d.ts +11 -14
- package/dist/core/config/positional-value.js +1 -1
- package/dist/core/extensions/activation-summary-markdown.d.ts +4 -5
- package/dist/core/extensions/activation-summary.d.ts +7 -15
- package/dist/core/extensions/capability-usage.d.ts +7 -23
- package/dist/core/extensions/command-hook-context.d.ts +4 -7
- package/dist/core/extensions/command-metadata-contract.d.ts +2 -2
- package/dist/core/extensions/contribution-inventory.d.ts +3 -25
- package/dist/core/extensions/extension-capability-aliases.d.ts +7 -10
- package/dist/core/extensions/extension-hook-runtime.d.ts +2 -2
- package/dist/core/extensions/extension-policy.d.ts +12 -47
- package/dist/core/extensions/extension-registries.d.ts +2 -2
- package/dist/core/extensions/extension-types.d.ts +332 -545
- package/dist/core/extensions/flag-definition-validation.d.ts +11 -13
- package/dist/core/extensions/flag-value-types.d.ts +11 -13
- package/dist/core/extensions/index.d.ts +15 -20
- package/dist/core/extensions/item-field-types.d.ts +5 -5
- package/dist/core/extensions/item-fields.d.ts +4 -7
- package/dist/core/extensions/loader.d.ts +5 -69
- package/dist/core/extensions/manifest-parser.d.ts +3 -3
- package/dist/core/extensions/manifest-schema.d.ts +10 -13
- package/dist/core/extensions/registration-contracts.d.ts +2 -4
- package/dist/core/extensions/registration-validation.d.ts +1 -1
- package/dist/core/extensions/registration-values.d.ts +5 -7
- package/dist/core/extensions/runtime-registrations.d.ts +6 -6
- package/dist/core/extensions/version-compat.d.ts +9 -10
- package/dist/core/fs/fs-utils.d.ts +4 -6
- package/dist/core/fs/host-environment-errors.d.ts +8 -10
- package/dist/core/governance/content-fields.d.ts +10 -14
- package/dist/core/governance/issue-codes.d.ts +12 -18
- package/dist/core/governance/metadata-coverage.d.ts +24 -34
- package/dist/core/history/digest.d.ts +3 -3
- package/dist/core/history/event-classification.d.ts +5 -5
- package/dist/core/history/event-index.d.ts +14 -35
- package/dist/core/history/history-compact-bulk.d.ts +10 -13
- package/dist/core/history/history-diff.d.ts +6 -11
- package/dist/core/history/history-rewrite.d.ts +24 -40
- package/dist/core/history/history-storage-stats.d.ts +9 -17
- package/dist/core/history/history-stream-policy.d.ts +8 -11
- package/dist/core/history/history.d.ts +10 -44
- package/dist/core/history/identity.d.ts +4 -5
- package/dist/core/history/operation-contract.d.ts +5 -15
- package/dist/core/history/projection.d.ts +10 -14
- package/dist/core/history/read.d.ts +6 -7
- package/dist/core/history/replay.d.ts +16 -37
- package/dist/core/history/workspace-history.d.ts +27 -60
- package/dist/core/io/body-file.d.ts +2 -2
- package/dist/core/io/bulk-ids-input.d.ts +7 -8
- package/dist/core/item/actionability.d.ts +16 -22
- package/dist/core/item/dependency-reference.d.ts +2 -2
- package/dist/core/item/id.d.ts +5 -9
- package/dist/core/item/item-format-version.d.ts +11 -13
- package/dist/core/item/item-format.d.ts +20 -60
- package/dist/core/item/item-format.js +1 -1
- package/dist/core/item/item-record.d.ts +2 -2
- package/dist/core/item/literal-mutation-input.d.ts +2 -2
- package/dist/core/item/parent-reference-policy.d.ts +4 -7
- package/dist/core/item/parse.d.ts +10 -26
- package/dist/core/item/plan-lifecycle.d.ts +3 -3
- package/dist/core/item/priority.d.ts +2 -2
- package/dist/core/item/sprint-release-format.d.ts +3 -7
- package/dist/core/item/status-filter.d.ts +5 -7
- package/dist/core/item/status.d.ts +3 -4
- package/dist/core/item/type-registry.d.ts +17 -24
- package/dist/core/item/type-synonyms.d.ts +1 -1
- package/dist/core/lock/lock-owner.d.ts +8 -10
- package/dist/core/lock/lock.d.ts +19 -67
- package/dist/core/output/output-control.d.ts +5 -6
- package/dist/core/output/output.d.ts +18 -20
- package/dist/core/output/output.js +4 -4
- package/dist/core/output/tabular.d.ts +2 -2
- package/dist/core/packages/manifest.d.ts +13 -17
- package/dist/core/packages/root.d.ts +3 -3
- package/dist/core/policy/workflow-policy-schema.d.ts +2 -310
- package/dist/core/policy/workflow-policy-store.d.ts +5 -14
- package/dist/core/policy/workflow-policy.d.ts +25 -52
- package/dist/core/profile/profile-describe.d.ts +8 -11
- package/dist/core/profile/profile-lint.d.ts +11 -13
- package/dist/core/profile/profile-plan.d.ts +30 -49
- package/dist/core/profile/profile-presets.d.ts +25 -36
- package/dist/core/reproducibility/context.d.ts +6 -7
- package/dist/core/schema/fields-file.d.ts +14 -21
- package/dist/core/schema/item-types-file.d.ts +16 -22
- package/dist/core/schema/runtime-field-filters.d.ts +2 -2
- package/dist/core/schema/runtime-field-values.d.ts +6 -13
- package/dist/core/schema/runtime-schema.d.ts +19 -31
- package/dist/core/schema/status-defs-file.d.ts +15 -25
- package/dist/core/schema/status-token.d.ts +1 -1
- package/dist/core/schema/type-inference.d.ts +6 -8
- package/dist/core/schema/type-presets.d.ts +5 -5
- package/dist/core/schema/type-workflows.d.ts +11 -16
- package/dist/core/search/background-refresh.d.ts +6 -12
- package/dist/core/search/bm25.d.ts +11 -19
- package/dist/core/search/cache.d.ts +19 -41
- package/dist/core/search/corpus.d.ts +16 -19
- package/dist/core/search/corpus.js +1 -1
- package/dist/core/search/embedding-batches.d.ts +12 -17
- package/dist/core/search/eval-thresholds.d.ts +3 -3
- package/dist/core/search/eval.d.ts +16 -34
- package/dist/core/search/http-client.d.ts +14 -18
- package/dist/core/search/providers.d.ts +22 -39
- package/dist/core/search/relevance.d.ts +14 -19
- package/dist/core/search/semantic-defaults.d.ts +4 -5
- package/dist/core/search/vector-stores.d.ts +35 -57
- package/dist/core/search/vectorization-metadata.d.ts +9 -11
- package/dist/core/sentry/helpers.d.ts +6 -31
- package/dist/core/sentry/instrument.d.ts +6 -59
- package/dist/core/session/session-state.d.ts +12 -32
- package/dist/core/shared/agent-session-context.d.ts +10 -17
- package/dist/core/shared/author.d.ts +48 -69
- package/dist/core/shared/command-line.d.ts +3 -3
- package/dist/core/shared/command-types.d.ts +3 -4
- package/dist/core/shared/constants.d.ts +14 -32
- package/dist/core/shared/error-details.d.ts +5 -18
- package/dist/core/shared/errors.d.ts +42 -83
- package/dist/core/shared/html-entity-decode.d.ts +1 -1
- package/dist/core/shared/item-metadata-contract.d.ts +2 -2
- package/dist/core/shared/lazy-module.d.ts +1 -1
- package/dist/core/shared/levenshtein.d.ts +1 -1
- package/dist/core/shared/numeric-parsers.d.ts +1 -1
- package/dist/core/shared/option-alias-visibility.d.ts +2 -2
- package/dist/core/shared/output-unicode.d.ts +1 -1
- package/dist/core/shared/primitives.d.ts +10 -10
- package/dist/core/shared/secret-rules.d.ts +7 -93
- package/dist/core/shared/serial-queue.d.ts +7 -9
- package/dist/core/shared/serialization.d.ts +1 -1
- package/dist/core/shared/split-comma-list.d.ts +4 -5
- package/dist/core/shared/text-normalization.d.ts +1 -1
- package/dist/core/shared/time.d.ts +6 -20
- package/dist/core/store/item-format-migration.d.ts +4 -5
- package/dist/core/store/item-metadata-cache.d.ts +22 -27
- package/dist/core/store/item-metadata-query-index.d.ts +20 -61
- package/dist/core/store/item-metadata-read-work.d.ts +3 -7
- package/dist/core/store/item-mutation-precondition.d.ts +19 -35
- package/dist/core/store/item-store.d.ts +18 -141
- package/dist/core/store/paths.d.ts +5 -10
- package/dist/core/store/settings-read-cache.d.ts +7 -9
- package/dist/core/store/settings-sections.d.ts +15 -19
- package/dist/core/store/settings-validator.d.ts +27 -143
- package/dist/core/store/settings-validator.js +1 -1
- package/dist/core/store/settings.d.ts +19 -94
- package/dist/core/store/sqlite-runtime.d.ts +3 -3
- package/dist/core/store/tracker-preflight.d.ts +2 -2
- package/dist/core/telemetry/consent.d.ts +2 -2
- package/dist/core/telemetry/observability.d.ts +8 -19
- package/dist/core/telemetry/policy.d.ts +8 -23
- package/dist/core/telemetry/runtime.d.ts +44 -254
- package/dist/core/test/background-runs.d.ts +35 -79
- package/dist/core/test/run-selectors.d.ts +10 -12
- package/dist/core/validate/fix-planning.d.ts +19 -28
- package/dist/core/validate/missing-by-type.d.ts +3 -4
- package/dist/core/validate/missing-link-owners.d.ts +12 -16
- package/dist/core/validate/stale-file-classification.d.ts +5 -6
- package/dist/mcp/tool-definitions.d.ts +7 -30
- package/dist/mcp/tool-definitions.js +1 -1
- package/dist/sdk/actionability.d.ts +1 -1
- package/dist/sdk/agent/closed-domain-contracts.d.ts +4 -5
- package/dist/sdk/agent/command-recovery.d.ts +9 -13
- package/dist/sdk/agent/command-suggestions.d.ts +2 -2
- package/dist/sdk/agent/create-option-policy.d.ts +2 -2
- package/dist/sdk/agent/identity-config.d.ts +13 -18
- package/dist/sdk/agent/item-addressing.d.ts +4 -5
- package/dist/sdk/agent/linked-resource-recovery.d.ts +3 -4
- package/dist/sdk/agent/refusal-closure-census.d.ts +13 -25
- package/dist/sdk/agent/refusal-closure.d.ts +8 -11
- package/dist/sdk/agent/refusal-corpus-contracts.d.ts +15 -21
- package/dist/sdk/agent/refusal-reachability.d.ts +38 -52
- package/dist/sdk/agent/subcommand-recovery.d.ts +7 -15
- package/dist/sdk/agent/task-transcript-contracts.d.ts +12 -15
- package/dist/sdk/agent/tracker-preflight-contracts.d.ts +13 -17
- package/dist/sdk/agent-capability-contracts.d.ts +19 -32
- package/dist/sdk/agent-session-context.d.ts +1 -1
- package/dist/sdk/annotations.d.ts +32 -68
- package/dist/sdk/annotations.js +1 -1
- package/dist/sdk/author-attribution.d.ts +22 -33
- package/dist/sdk/authoring.d.ts +1 -19
- package/dist/sdk/cli-bootstrap.d.ts +22 -59
- package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +31 -57
- package/dist/sdk/cli-contracts/command-aliases.d.ts +7 -8
- package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +19 -65
- package/dist/sdk/cli-contracts/commander-mutation-options.d.ts +2 -2
- package/dist/sdk/cli-contracts/commander-types.d.ts +6 -11
- package/dist/sdk/cli-contracts/completeness.d.ts +11 -15
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +25 -37
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +16 -20
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +14 -19
- package/dist/sdk/cli-contracts/grammar-contracts.d.ts +29 -47
- package/dist/sdk/cli-contracts/runtime-contracts.d.ts +44 -265
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +11 -564
- package/dist/sdk/cli-contracts/tool-schema.d.ts +18 -51
- package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +18 -37
- package/dist/sdk/cli-contracts.d.ts +1 -16
- package/dist/sdk/cli-program.d.ts +2 -2
- package/dist/sdk/command-line.d.ts +3 -4
- package/dist/sdk/comments.d.ts +6 -10
- package/dist/sdk/compile-cache.d.ts +4 -5
- package/dist/sdk/completion/bash.d.ts +2 -2
- package/dist/sdk/completion/fish.d.ts +2 -2
- package/dist/sdk/completion/shared.d.ts +10 -77
- package/dist/sdk/completion/shared.js +1 -1
- package/dist/sdk/completion/zsh.d.ts +2 -2
- package/dist/sdk/completion.d.ts +2 -6
- package/dist/sdk/compose.d.ts +49 -74
- package/dist/sdk/config.d.ts +18 -94
- package/dist/sdk/config.js +1 -1
- package/dist/sdk/context/recency.d.ts +2 -2
- package/dist/sdk/context/semantic-session-attribution.d.ts +6 -25
- package/dist/sdk/context/usage-ledger.d.ts +9 -21
- package/dist/sdk/context-intent-contracts.d.ts +24 -35
- package/dist/sdk/context-intent-runtime.d.ts +7 -9
- package/dist/sdk/context-packing.d.ts +16 -34
- package/dist/sdk/context-relevance.d.ts +58 -93
- package/dist/sdk/context-signal-store.d.ts +29 -60
- package/dist/sdk/context-usage.d.ts +22 -69
- package/dist/sdk/contracts.d.ts +1 -24
- package/dist/sdk/core-governance.d.ts +1 -5
- package/dist/sdk/core.d.ts +1 -27
- package/dist/sdk/corpus-shape.d.ts +16 -28
- package/dist/sdk/define.d.ts +10 -14
- package/dist/sdk/dependencies.d.ts +32 -50
- package/dist/sdk/dependency-provenance.d.ts +19 -23
- package/dist/sdk/docs.d.ts +6 -10
- package/dist/sdk/duplicates.d.ts +8 -15
- package/dist/sdk/environment/agent-environment.d.ts +60 -101
- package/dist/sdk/environment/host-environment-errors.d.ts +1 -1
- package/dist/sdk/environment/project-runtime-compatibility.d.ts +15 -29
- package/dist/sdk/environment/source-context.d.ts +6 -7
- package/dist/sdk/environment/tracker-preflight.d.ts +1 -1
- package/dist/sdk/error-code-catalog.d.ts +9 -26
- package/dist/sdk/error-runtime.d.ts +6 -8
- package/dist/sdk/errors.d.ts +10 -17
- package/dist/sdk/eval.d.ts +11 -21
- package/dist/sdk/extension/command-options.d.ts +14 -26
- package/dist/sdk/extension/describe.d.ts +14 -19
- package/dist/sdk/extension/doctor.d.ts +8 -48
- package/dist/sdk/extension/install-plan.d.ts +12 -26
- package/dist/sdk/extension/install-runtime.d.ts +10 -11
- package/dist/sdk/extension/install-sources.d.ts +22 -104
- package/dist/sdk/extension/managed-state.d.ts +13 -18
- package/dist/sdk/extension/migrations.d.ts +22 -37
- package/dist/sdk/extension/output-ownership.d.ts +3 -30
- package/dist/sdk/extension/shared.d.ts +9 -15
- package/dist/sdk/extension/source-resolution.d.ts +13 -18
- package/dist/sdk/extension/static-inventory.d.ts +17 -21
- package/dist/sdk/extension/update-check.d.ts +7 -11
- package/dist/sdk/extension-command-context.d.ts +2 -3
- package/dist/sdk/extension-contracts.d.ts +11 -14
- package/dist/sdk/extension.d.ts +31 -192
- package/dist/sdk/files.d.ts +27 -68
- package/dist/sdk/flag-invocation-contracts.d.ts +13 -17
- package/dist/sdk/generated/error-code-catalog-rows.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
- package/dist/sdk/generated-error-code-catalog.d.ts +1 -1
- package/dist/sdk/governance/artifact-ledgers.d.ts +9 -16
- package/dist/sdk/governance/assurance-action-contracts.d.ts +1 -1
- package/dist/sdk/governance/assurance-action.d.ts +13 -45
- package/dist/sdk/governance/assurance-mutation-error.d.ts +12 -17
- package/dist/sdk/governance/assurance-presets.d.ts +10 -21
- package/dist/sdk/governance/assurance-runtime.d.ts +5 -6
- package/dist/sdk/governance/assurance.d.ts +97 -154
- package/dist/sdk/governance/boundary-fixtures.d.ts +17 -23
- package/dist/sdk/governance/closure-timestamps.d.ts +5 -15
- package/dist/sdk/governance/coverage-assurance.d.ts +5 -6
- package/dist/sdk/governance/defect-recurrence-coverage.d.ts +13 -23
- package/dist/sdk/governance/defect-recurrence-graph.d.ts +9 -13
- package/dist/sdk/governance/defect-recurrence.d.ts +43 -67
- package/dist/sdk/governance/extension-host-version.d.ts +8 -10
- package/dist/sdk/governance/gc.d.ts +12 -20
- package/dist/sdk/governance/health/projection.d.ts +8 -23
- package/dist/sdk/governance/health.d.ts +23 -167
- package/dist/sdk/governance/hierarchy-validation.d.ts +2 -18
- package/dist/sdk/governance/linked-file-report.d.ts +6 -10
- package/dist/sdk/governance/merge-receipt-history.d.ts +12 -16
- package/dist/sdk/governance/provenance-health.d.ts +17 -23
- package/dist/sdk/governance/reindex.d.ts +13 -116
- package/dist/sdk/governance/reliability.d.ts +13 -17
- package/dist/sdk/governance/stale-work.d.ts +8 -11
- package/dist/sdk/governance/status-role-diagnostics.d.ts +4 -6
- package/dist/sdk/governance/storage-integrity.d.ts +16 -23
- package/dist/sdk/governance/upgrade.d.ts +17 -57
- package/dist/sdk/governance/validate-item-reader.d.ts +3 -11
- package/dist/sdk/governance/validate-normalization.d.ts +2 -2
- package/dist/sdk/governance/validate.d.ts +29 -175
- package/dist/sdk/governance/workflow-completeness.d.ts +5 -17
- package/dist/sdk/governance/workflow-policy.d.ts +8 -16
- package/dist/sdk/governance/workspace-position.d.ts +12 -43
- package/dist/sdk/governance.d.ts +1 -39
- package/dist/sdk/graph/adapter.d.ts +23 -41
- package/dist/sdk/graph/analytics.d.ts +20 -31
- package/dist/sdk/graph/assembly.d.ts +24 -35
- package/dist/sdk/graph/cache.d.ts +13 -25
- package/dist/sdk/graph/cardinality-integrity.d.ts +4 -6
- package/dist/sdk/graph/centrality.d.ts +14 -20
- package/dist/sdk/graph/conformance.d.ts +12 -19
- package/dist/sdk/graph/deadline-scheduling.d.ts +14 -20
- package/dist/sdk/graph/durable-cache.d.ts +11 -14
- package/dist/sdk/graph/governance-contracts.d.ts +2 -2
- package/dist/sdk/graph/governance.d.ts +22 -36
- package/dist/sdk/graph/hierarchy-integrity.d.ts +18 -26
- package/dist/sdk/graph/index.d.ts +1 -17
- package/dist/sdk/graph/lifecycle-coverage.d.ts +8 -12
- package/dist/sdk/graph/mutation-advisory.d.ts +5 -16
- package/dist/sdk/graph/query-contracts.d.ts +1 -2
- package/dist/sdk/graph/remediation.d.ts +11 -18
- package/dist/sdk/graph/run.d.ts +73 -115
- package/dist/sdk/graph/scheduling.d.ts +8 -15
- package/dist/sdk/graph/traversal.d.ts +9 -15
- package/dist/sdk/graph/workspace-relationship-kind-registry.d.ts +2 -2
- package/dist/sdk/graph.d.ts +1 -12
- package/dist/sdk/guide-topics.d.ts +7 -10
- package/dist/sdk/guide.d.ts +21 -43
- package/dist/sdk/history/attestation-command.d.ts +7 -10
- package/dist/sdk/history/attestation-contract.d.ts +19 -34
- package/dist/sdk/history/attestation.d.ts +2 -3
- package/dist/sdk/history/maintenance.d.ts +17 -27
- package/dist/sdk/history/salvage.d.ts +5 -22
- package/dist/sdk/history/subject.d.ts +5 -11
- package/dist/sdk/history-analytics.d.ts +28 -59
- package/dist/sdk/history-compact.d.ts +25 -66
- package/dist/sdk/history-provenance.d.ts +16 -33
- package/dist/sdk/history-read.d.ts +9 -16
- package/dist/sdk/history-redact.d.ts +19 -74
- package/dist/sdk/history-redact.js +1 -1
- package/dist/sdk/history-repair.d.ts +26 -71
- package/dist/sdk/improvement-ledger-validation.d.ts +2 -2
- package/dist/sdk/improvement-ledger.d.ts +20 -39
- package/dist/sdk/index.d.ts +1 -268
- package/dist/sdk/init-agent-guidance.d.ts +13 -68
- package/dist/sdk/init.d.ts +24 -94
- package/dist/sdk/invocation-author.d.ts +1 -1
- package/dist/sdk/item-children.d.ts +10 -13
- package/dist/sdk/item-metadata-index.d.ts +1 -2
- package/dist/sdk/item-schedule.d.ts +8 -9
- package/dist/sdk/item-transaction.d.ts +46 -90
- package/dist/sdk/learnings.d.ts +6 -10
- package/dist/sdk/lifecycle/append.d.ts +7 -9
- package/dist/sdk/lifecycle/claim.d.ts +26 -42
- package/dist/sdk/lifecycle/cli-input.d.ts +1 -1
- package/dist/sdk/lifecycle/close-many.d.ts +14 -65
- package/dist/sdk/lifecycle/close.d.ts +10 -26
- package/dist/sdk/lifecycle/copy.d.ts +6 -10
- package/dist/sdk/lifecycle/create.d.ts +15 -83
- package/dist/sdk/lifecycle/delete.d.ts +7 -9
- package/dist/sdk/lifecycle/focus.d.ts +9 -11
- package/dist/sdk/lifecycle/item-revision.d.ts +31 -45
- package/dist/sdk/lifecycle/item-revision.js +1 -1
- package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +4 -5
- package/dist/sdk/lifecycle/mutation-command-options.d.ts +6 -9
- package/dist/sdk/lifecycle/plan-mutation-receipt.d.ts +5 -13
- package/dist/sdk/lifecycle/plan.d.ts +34 -74
- package/dist/sdk/lifecycle/reopen.d.ts +8 -14
- package/dist/sdk/lifecycle/restore.d.ts +9 -38
- package/dist/sdk/lifecycle/shared-unset-fields.d.ts +23 -614
- package/dist/sdk/lifecycle/start-blockers.d.ts +7 -27
- package/dist/sdk/lifecycle/structured-mutation-plan.d.ts +8 -16
- package/dist/sdk/lifecycle/task-composition.d.ts +6 -14
- package/dist/sdk/lifecycle/update-many.d.ts +15 -65
- package/dist/sdk/lifecycle/update.d.ts +21 -104
- package/dist/sdk/lifecycle/workflow-transition.d.ts +2 -11
- package/dist/sdk/lifecycle-completion.d.ts +11 -14
- package/dist/sdk/lifecycle-policy.d.ts +23 -32
- package/dist/sdk/linked-artifacts.d.ts +31 -41
- package/dist/sdk/mcp/apps.d.ts +12 -27
- package/dist/sdk/mcp/authorization.d.ts +30 -63
- package/dist/sdk/mcp/discovery.d.ts +23 -52
- package/dist/sdk/mcp/executable.d.ts +3 -10
- package/dist/sdk/mcp/interactions.d.ts +25 -47
- package/dist/sdk/mcp/protocol.d.ts +32 -64
- package/dist/sdk/mcp/skills.d.ts +21 -71
- package/dist/sdk/mcp/subscriptions.d.ts +14 -28
- package/dist/sdk/mcp/tasks.d.ts +21 -55
- package/dist/sdk/mcp/transport.d.ts +7 -15
- package/dist/sdk/merge/driver.d.ts +13 -37
- package/dist/sdk/merge/index.d.ts +1 -6
- package/dist/sdk/merge/install.d.ts +27 -55
- package/dist/sdk/merge/receipt-operation.d.ts +5 -6
- package/dist/sdk/merge/receipt-schema.d.ts +6 -9
- package/dist/sdk/merge/receipts.d.ts +29 -79
- package/dist/sdk/merge/reconcile.d.ts +9 -18
- package/dist/sdk/merge/three-way.d.ts +21 -30
- package/dist/sdk/merge.d.ts +1 -5
- package/dist/sdk/mutation-events.d.ts +21 -53
- package/dist/sdk/mutation-guard.d.ts +15 -135
- package/dist/sdk/notes.d.ts +6 -10
- package/dist/sdk/output/fit-envelope.d.ts +21 -28
- package/dist/sdk/output/list-envelope.d.ts +1 -1
- package/dist/sdk/output/table-rows.d.ts +8 -12
- package/dist/sdk/output-contracts.d.ts +11 -14
- package/dist/sdk/output-projection.d.ts +18 -130
- package/dist/sdk/output-token-accounting.d.ts +8 -15
- package/dist/sdk/output.d.ts +10 -15
- package/dist/sdk/ownership-source.d.ts +4 -5
- package/dist/sdk/package-import-adapters.d.ts +27 -37
- package/dist/sdk/package-migrations.d.ts +2 -2
- package/dist/sdk/package-runtime-options.d.ts +3 -3
- package/dist/sdk/pagination.d.ts +12 -24
- package/dist/sdk/profile.d.ts +25 -42
- package/dist/sdk/provenance.d.ts +21 -32
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/activity.d.ts +24 -77
- package/dist/sdk/query/aggregate.d.ts +20 -95
- package/dist/sdk/query/calendar.d.ts +26 -74
- package/dist/sdk/query/complete-list.d.ts +19 -35
- package/dist/sdk/query/context.d.ts +69 -240
- package/dist/sdk/query/declared-blockers.d.ts +2 -9
- package/dist/sdk/query/duplicate-candidates.d.ts +3 -5
- package/dist/sdk/query/get-facet-roots.js +2 -0
- package/dist/sdk/query/get.d.ts +13 -55
- package/dist/sdk/query/get.js +1 -1
- package/dist/sdk/query/history.d.ts +18 -29
- package/dist/sdk/query/item-filter-options.d.ts +7 -12
- package/dist/sdk/query/list-filter-shared.d.ts +4 -8
- package/dist/sdk/query/list.d.ts +44 -168
- package/dist/sdk/query/multi-value-filters.d.ts +7 -9
- package/dist/sdk/query/next-ranking-policy.d.ts +4 -10
- package/dist/sdk/query/next-ready-budget.d.ts +4 -5
- package/dist/sdk/query/next.d.ts +27 -86
- package/dist/sdk/query/parsers.d.ts +4 -6
- package/dist/sdk/query/projection-contracts.d.ts +12 -21
- package/dist/sdk/query/search/corpus.d.ts +5 -20
- package/dist/sdk/query/search/filters.d.ts +5 -17
- package/dist/sdk/query/search/input.d.ts +4 -9
- package/dist/sdk/query/search/lexical.d.ts +5 -9
- package/dist/sdk/query/search/response.d.ts +5 -22
- package/dist/sdk/query/search/semantic.d.ts +24 -170
- package/dist/sdk/query/search/types.d.ts +19 -73
- package/dist/sdk/query/search-contracts.d.ts +24 -34
- package/dist/sdk/query/search-pagination.d.ts +5 -24
- package/dist/sdk/query/search-rendering.d.ts +8 -32
- package/dist/sdk/query/search.d.ts +3 -63
- package/dist/sdk/query/workspace-contracts.d.ts +2 -2
- package/dist/sdk/query.d.ts +1 -43
- package/dist/sdk/read-output/continuation.d.ts +5 -6
- package/dist/sdk/read-output/options.d.ts +3 -8
- package/dist/sdk/read-output/positional-rows.js +2 -0
- package/dist/sdk/read-output/session-result.d.ts +2 -33
- package/dist/sdk/read-output/tail-retention.d.ts +6 -8
- package/dist/sdk/read-output-budget.d.ts +14 -16
- package/dist/sdk/read-output-contracts.d.ts +62 -102
- package/dist/sdk/read-output-contracts.js +1 -1
- package/dist/sdk/read-output-rows.d.ts +5 -9
- package/dist/sdk/read-output-session.d.ts +11 -14
- package/dist/sdk/relationship-analytics.d.ts +17 -37
- package/dist/sdk/relationship-context.d.ts +15 -33
- package/dist/sdk/relationship-history.d.ts +29 -50
- package/dist/sdk/relationship-kinds/contract.d.ts +11 -12
- package/dist/sdk/relationship-migration.d.ts +6 -10
- package/dist/sdk/relationships.d.ts +22 -34
- package/dist/sdk/reproducibility/process.d.ts +7 -11
- package/dist/sdk/runtime/actions.js +1 -1
- package/dist/sdk/runtime/context.d.ts +6 -22
- package/dist/sdk/runtime/schema-preview.d.ts +1 -1
- package/dist/sdk/runtime-input.d.ts +9 -20
- package/dist/sdk/runtime-primitives.d.ts +3 -82
- package/dist/sdk/runtime-public-contracts.d.ts +30 -50
- package/dist/sdk/runtime.d.ts +77 -302
- package/dist/sdk/scheduling-shortcuts.d.ts +8 -12
- package/dist/sdk/schema-migration.d.ts +18 -80
- package/dist/sdk/schema.d.ts +89 -192
- package/dist/sdk/search-refresh-worker.d.ts +1 -1
- package/dist/sdk/similarity-scoring.d.ts +6 -8
- package/dist/sdk/similarity.d.ts +33 -64
- package/dist/sdk/start-task-status.d.ts +2 -2
- package/dist/sdk/stats.d.ts +13 -48
- package/dist/sdk/structured-mutations.d.ts +18 -26
- package/dist/sdk/telemetry-flush.d.ts +1 -1
- package/dist/sdk/telemetry.d.ts +14 -20
- package/dist/sdk/templates.d.ts +14 -35
- package/dist/sdk/test/batch.d.ts +10 -25
- package/dist/sdk/test/execution.d.ts +44 -209
- package/dist/sdk/test/json-path.d.ts +2 -5
- package/dist/sdk/test/linked-command-detection.d.ts +10 -25
- package/dist/sdk/test/measurements.d.ts +10 -13
- package/dist/sdk/test/parsers.d.ts +16 -20
- package/dist/sdk/test/prerequisites.d.ts +2 -3
- package/dist/sdk/test/runs.d.ts +19 -52
- package/dist/sdk/test/trust.d.ts +8 -12
- package/dist/sdk/test/update.d.ts +9 -25
- package/dist/sdk/testing.d.ts +97 -206
- package/dist/sdk/traceability/source-traceability.d.ts +25 -56
- package/dist/sdk/tracker-root-discovery.d.ts +1 -1
- package/dist/sdk/workspace-contracts-cache.d.ts +2 -2
- package/dist/sdk/workspace-contracts.d.ts +8 -14
- package/dist/sdk/workspace-memory.d.ts +24 -42
- package/dist/sdk/workspace-recipe.d.ts +10 -14
- package/dist/sdk/workspace-snapshot.d.ts +26 -53
- package/dist/sdk/workspace-transaction-gc.d.ts +12 -16
- package/dist/sdk/workspace-transaction.d.ts +26 -40
- package/dist/sdk/workspace.d.ts +8 -10
- package/dist/types/index.d.ts +1 -1
- package/dist/types.d.ts +210 -353
- package/docs/AGENT_OUTPUT_ENCODINGS.md +16 -0
- package/docs/COMMANDS.md +8 -0
- package/docs/CONFIGURATION.md +17 -0
- package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +28 -9
- package/docs/README.md +1 -1
- package/docs/READ_OUTPUT_CONTRACTS.md +21 -0
- package/docs/RELEASING.md +52 -5
- package/docs/SDK.md +17 -2
- package/docs/TESTING.md +11 -0
- package/marketplace.json +1 -1
- package/package.json +2 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/scripts/finalize-build.mjs +41 -4
- package/dist/cli-bundle/chunks/chunk-3A5DJZCC.js +0 -116
- package/dist/cli-bundle/chunks/chunk-AFZS6WFV.js +0 -3
- package/dist/cli-bundle/chunks/chunk-JAE5MWLX.js +0 -2
- package/dist/cli-bundle/chunks/chunk-LLTRUVKK.js +0 -6
- package/dist/cli-bundle/chunks/chunk-PE6CZ3PE.js +0 -3
- package/dist/cli-bundle/chunks/item-revision-TUGZYYXX.js +0 -2
- package/dist/cli-bundle/chunks/item-transaction-2RRBAQN3.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-2A3QZELL.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-KBRSA4OK.js +0 -44
- package/dist/cli-bundle/focused-chunks/chunk-P6TG33FV.js +0 -82
- package/dist/cli-bundle/focused-chunks/chunk-PL6EO4GJ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-PSLDGAEY.js +0 -12
- package/dist/cli-bundle/focused-chunks/chunk-UNNLBJRI.js +0 -2
- package/dist/cli-bundle/focused-chunks/item-revision-XNSRDTFB.js +0 -2
- package/docs/ECOSYSTEM_PLANNING_REVIEW.md +0 -274
package/dist/sdk/authoring.d.ts
CHANGED
|
@@ -3,22 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides the focused extension and package authoring surface.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./compose.js";
|
|
7
|
-
export * from "./define.js";
|
|
8
|
-
export * from "./extension-contracts.js";
|
|
9
|
-
export { RESERVED_ITEM_FIELD_NAMES } from "../core/extensions/item-fields.js";
|
|
10
|
-
export { PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,PM_PACKAGE_RESOURCE_KINDS,collectPackageExtensionDirectories,readPmPackageManifest,type PmPackageCatalogLinkMap,type PmPackageCatalogMediaMap,type PmPackageCatalogMetadata,type PmPackageManifest,type PmPackageResourceKind,type PmPackageResourceMap,} from "../core/packages/manifest.js";
|
|
11
|
-
export { BUILTIN_PROFILES,listProfiles,normalizeProfileName,PROFILE_NAMES,resolveProfile,type ProfileConfigEntry,type ProfileName,type ProfilePackageRecommendation,type ProfileTemplateEntry,type ProfileTemplateOptions,type ProjectProfileDefinition,type ProjectProfileRegistrationInput,} from "../core/profile/profile-presets.js";
|
|
12
|
-
export { describeProfileComposition,describeProjectProfile,type ProjectProfileComposition,type ProjectProfileDescription,type ProjectProfilePackageSummary,} from "../core/profile/profile-describe.js";
|
|
13
|
-
export { lintProjectProfile,PROFILE_LINT_CODES,PROFILE_LINT_DIMENSIONS,type ProfileLintCode,type ProfileLintDimension,type ProfileLintSeverity,type ProjectProfileLintFinding,type ProjectProfileLintReport,} from "../core/profile/profile-lint.js";
|
|
14
|
-
export { planProfileApplication,type ProfileApplicationPlan,type ProfileChangeStatus,type ProfileComponentChange,type ProfileConfigChange,type ProfileConfigPlan,type ProfileCurrentState,type ProfilePackagePlan,type ProfileSchemaPlan,type ProfileTemplateChange,type ProfileTemplatePlan,type ProfileWorkflowChange,type ProfileWorkflowPlan,} from "../core/profile/profile-plan.js";
|
|
15
|
-
export { EXTENSION_CAPABILITY_REGISTRATION_SURFACES,collectUsedExtensionCapabilities,reconcileExtensionCapabilityUsage,type CollectUsedExtensionCapabilitiesOptions,type ExtensionCapabilityUsageReconciliation,} from "../core/extensions/capability-usage.js";
|
|
16
|
-
export { renderExtensionSurfaceMarkdown,type ExtensionSurfaceMarkdownOptions,} from "../core/extensions/activation-summary-markdown.js";
|
|
17
|
-
export { createExtensionContributionInventory,normalizeExtensionContributionInventory,} from "../core/extensions/contribution-inventory.js";
|
|
18
|
-
export type { AfterCommandAffectedItem,AfterCommandHook,AfterCommandHookContext,BeforeCommandHook,BeforeCommandHookContext,BeforeMutationHook,BeforeMutationHookContext,BeforeMutationHookDecision,CommandDefinition,ExtensionCommandReadOutput,ExtensionCommandArgumentDefinition,CommandHandler,CommandHandlerContext,CommandHandlerResult,ExtensionCommandSdk,CommandOverride,CommandOverrideContext,ExtensionServiceName,Exporter,ExporterArtifactOutputContract,ExporterRegistrationOptions,ExtensionActivationResult,ExtensionApi,ExtensionCommandRegistry,ExtensionDeactivationFailure,ExtensionDeactivationOptions,ExtensionDeactivationResult,ExtensionDiagnostic,ExtensionContributionInventory,ExtensionDiscoveryResult,ExtensionHookRegistry,ExtensionSelfIdentity,ExtensionLoadResult,ExtensionManifest,ExtensionManifestEngines,ExtensionMutationGuardSdk,ExtensionGovernancePolicy,ExtensionPolicyOverride,ExtensionProvenanceMetadata,ExtensionRuntimePermissionDeclaration,ExtensionSearchMode,ExtensionParserRegistry,ExtensionPreflightRegistry,ExtensionRegistrationRegistry,ExtensionRendererRegistry,ExtensionServiceRegistry,FlagValueType,FlagDefinition,ImportExportContext,ImportExportRegistrationOptions,Importer,OnIndexHook,OnIndexHookContext,OnReadHook,OnReadHookContext,OnWriteHook,OnWriteHookContext,OutputRendererFormat,ParserOverride,ParserOverrideContext,ParserOverrideDelta,PreflightOverride,PreflightOverrideContext,PreflightOverrideDelta,PreflightRuntimeDecision,RegisteredExtensionExporter,RegisteredExporterArtifactOutputContract,RegisteredExtensionFlagDefinitions,RegisteredExtensionHook,RegisteredExtensionImporter,RegisteredExtensionProjectProfile,RegisteredExtensionSchemaMigrationDefinition,RegisteredExtensionSearchProvider,RegisteredExtensionServiceOverride,RegisteredExtensionVectorStoreAdapter,RendererOverride,RendererOverrideContext,SchemaFieldDefinition,SchemaItemTypeCommandOptionPolicyDefinition,SchemaItemTypeOptionDefinition,SchemaItemTypeDefinition,SchemaMigrationDefinition,SchemaMigrationRunContext,SchemaMigrationRunner,SearchProviderEmbedBatchContext,SearchProviderEmbedContext,SearchProviderDefinition,SearchProviderHit,SearchProviderQueryContext,SearchProviderQueryResult,ServiceOverride,ServiceOverrideContext,ServiceOverrideDecision,ServiceOverrideOwnership,VectorStoreAdapterDefinition,VectorStoreDeleteContext,VectorStoreQueryContext,VectorStoreQueryHit,VectorStoreUpsertContext,VectorStoreUpsertPoint,} from "../core/extensions/loader.js";
|
|
19
|
-
export { normalizeDirectExtensionCommandOptions,resolveExtensionFlagOptionKey,type LooseCommandFlagDefinition,} from "./extension/command-options.js";
|
|
20
|
-
export type { ExtensionActivationSummary } from "../core/extensions/activation-summary.js";
|
|
21
|
-
export type { ExtensionLayer,ScopedPreflightOverrideDefinition,ScopedRendererOverrideDefinition } from "../core/extensions/extension-types.js";
|
|
22
|
-
export type { CommanderOptionAliasContract } from "./cli-contracts/commander-types.js";
|
|
23
|
-
export type { CliFlagContract } from "./cli-contracts/flag-contracts.js";
|
|
24
|
-
export type { ExactDefinition,FlagAuthoringDefinition,ItemFieldAuthoringDefinition,ItemTypeAuthoringDefinition,MigrationAuthoringDefinition,SearchProviderAuthoringDefinition,VectorStoreAdapterAuthoringDefinition } from "./define.js";
|
|
6
|
+
export * from "./compose.js";export * from "./define.js";export * from "./extension-contracts.js";export{RESERVED_ITEM_FIELD_NAMES}from "../core/extensions/item-fields.js";export{PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,PM_PACKAGE_RESOURCE_KINDS,collectPackageExtensionDirectories,readPmPackageManifest,type PmPackageCatalogLinkMap,type PmPackageCatalogMediaMap,type PmPackageCatalogMetadata,type PmPackageManifest,type PmPackageResourceKind,type PmPackageResourceMap,}from "../core/packages/manifest.js";export{BUILTIN_PROFILES,listProfiles,normalizeProfileName,PROFILE_NAMES,resolveProfile,type ProfileConfigEntry,type ProfileName,type ProfilePackageRecommendation,type ProfileTemplateEntry,type ProfileTemplateOptions,type ProjectProfileDefinition,type ProjectProfileRegistrationInput,}from "../core/profile/profile-presets.js";export{describeProfileComposition,describeProjectProfile,type ProjectProfileComposition,type ProjectProfileDescription,type ProjectProfilePackageSummary,}from "../core/profile/profile-describe.js";export{lintProjectProfile,PROFILE_LINT_CODES,PROFILE_LINT_DIMENSIONS,type ProfileLintCode,type ProfileLintDimension,type ProfileLintSeverity,type ProjectProfileLintFinding,type ProjectProfileLintReport,}from "../core/profile/profile-lint.js";export{planProfileApplication,type ProfileApplicationPlan,type ProfileChangeStatus,type ProfileComponentChange,type ProfileConfigChange,type ProfileConfigPlan,type ProfileCurrentState,type ProfilePackagePlan,type ProfileSchemaPlan,type ProfileTemplateChange,type ProfileTemplatePlan,type ProfileWorkflowChange,type ProfileWorkflowPlan,}from "../core/profile/profile-plan.js";export{EXTENSION_CAPABILITY_REGISTRATION_SURFACES,collectUsedExtensionCapabilities,reconcileExtensionCapabilityUsage,type CollectUsedExtensionCapabilitiesOptions,type ExtensionCapabilityUsageReconciliation,}from "../core/extensions/capability-usage.js";export{renderExtensionSurfaceMarkdown,type ExtensionSurfaceMarkdownOptions,}from "../core/extensions/activation-summary-markdown.js";export{createExtensionContributionInventory,normalizeExtensionContributionInventory,}from "../core/extensions/contribution-inventory.js";export type{AfterCommandAffectedItem,AfterCommandHook,AfterCommandHookContext,BeforeCommandHook,BeforeCommandHookContext,BeforeMutationHook,BeforeMutationHookContext,BeforeMutationHookDecision,CommandDefinition,ExtensionCommandReadOutput,ExtensionCommandArgumentDefinition,CommandHandler,CommandHandlerContext,CommandHandlerResult,ExtensionCommandSdk,CommandOverride,CommandOverrideContext,ExtensionServiceName,Exporter,ExporterArtifactOutputContract,ExporterRegistrationOptions,ExtensionActivationResult,ExtensionApi,ExtensionCommandRegistry,ExtensionDeactivationFailure,ExtensionDeactivationOptions,ExtensionDeactivationResult,ExtensionDiagnostic,ExtensionContributionInventory,ExtensionDiscoveryResult,ExtensionHookRegistry,ExtensionSelfIdentity,ExtensionLoadResult,ExtensionManifest,ExtensionManifestEngines,ExtensionMutationGuardSdk,ExtensionGovernancePolicy,ExtensionPolicyOverride,ExtensionProvenanceMetadata,ExtensionRuntimePermissionDeclaration,ExtensionSearchMode,ExtensionParserRegistry,ExtensionPreflightRegistry,ExtensionRegistrationRegistry,ExtensionRendererRegistry,ExtensionServiceRegistry,FlagValueType,FlagDefinition,ImportExportContext,ImportExportRegistrationOptions,Importer,OnIndexHook,OnIndexHookContext,OnReadHook,OnReadHookContext,OnWriteHook,OnWriteHookContext,OutputRendererFormat,ParserOverride,ParserOverrideContext,ParserOverrideDelta,PreflightOverride,PreflightOverrideContext,PreflightOverrideDelta,PreflightRuntimeDecision,RegisteredExtensionExporter,RegisteredExporterArtifactOutputContract,RegisteredExtensionFlagDefinitions,RegisteredExtensionHook,RegisteredExtensionImporter,RegisteredExtensionProjectProfile,RegisteredExtensionSchemaMigrationDefinition,RegisteredExtensionSearchProvider,RegisteredExtensionServiceOverride,RegisteredExtensionVectorStoreAdapter,RendererOverride,RendererOverrideContext,SchemaFieldDefinition,SchemaItemTypeCommandOptionPolicyDefinition,SchemaItemTypeOptionDefinition,SchemaItemTypeDefinition,SchemaMigrationDefinition,SchemaMigrationRunContext,SchemaMigrationRunner,SearchProviderEmbedBatchContext,SearchProviderEmbedContext,SearchProviderDefinition,SearchProviderHit,SearchProviderQueryContext,SearchProviderQueryResult,ServiceOverride,ServiceOverrideContext,ServiceOverrideDecision,ServiceOverrideOwnership,VectorStoreAdapterDefinition,VectorStoreDeleteContext,VectorStoreQueryContext,VectorStoreQueryHit,VectorStoreUpsertContext,VectorStoreUpsertPoint,}from "../core/extensions/loader.js";export{normalizeDirectExtensionCommandOptions,resolveExtensionFlagOptionKey,type LooseCommandFlagDefinition,}from "./extension/command-options.js";export type{ExtensionActivationSummary}from "../core/extensions/activation-summary.js";export type{ExtensionLayer,ScopedPreflightOverrideDefinition,ScopedRendererOverrideDefinition}from "../core/extensions/extension-types.js";export type{CommanderOptionAliasContract}from "./cli-contracts/commander-types.js";export type{CliFlagContract}from "./cli-contracts/flag-contracts.js";export type{ExactDefinition,FlagAuthoringDefinition,ItemFieldAuthoringDefinition,ItemTypeAuthoringDefinition,MigrationAuthoringDefinition,SearchProviderAuthoringDefinition,VectorStoreAdapterAuthoringDefinition}from "./define.js";
|
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides public bootstrap argument normalization for embedded CLI hosts.
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
import { type CliFlagContract } from "./cli-contracts/flag-contracts.js";
|
|
8
|
-
export { EXECUTABLE_COMMAND_ALIASES,PM_COMMAND_ALIAS_CONTRACTS,renderPmCommandAliasMigrationHint,resolvePmCommandAlias,type PmCommandAliasContract,type PmCommandAliasLifecycle,type PmCommandAliasRegistration,};
|
|
6
|
+
import{EXECUTABLE_COMMAND_ALIASES,PM_COMMAND_ALIAS_CONTRACTS,renderPmCommandAliasMigrationHint,resolvePmCommandAlias,type PmCommandAliasContract,type PmCommandAliasLifecycle,type PmCommandAliasRegistration}from "./cli-contracts/command-aliases.js";import{type CliFlagContract}from "./cli-contracts/flag-contracts.js";export{EXECUTABLE_COMMAND_ALIASES,PM_COMMAND_ALIAS_CONTRACTS,renderPmCommandAliasMigrationHint,resolvePmCommandAlias,type PmCommandAliasContract,type PmCommandAliasLifecycle,type PmCommandAliasRegistration,};
|
|
9
7
|
/** Documents the bootstrap global options payload exchanged by command, SDK, and package integrations. */
|
|
10
|
-
export interface BootstrapGlobalOptions
|
|
8
|
+
export interface BootstrapGlobalOptions{
|
|
11
9
|
/** Filesystem path used for path resolution. */
|
|
12
10
|
path?:string;
|
|
13
11
|
/** Value that configures or reports no extensions for this contract. */
|
|
@@ -29,7 +27,7 @@ outputLimit?:string;
|
|
|
29
27
|
/** Canonical estimated-token ceiling for read output. */
|
|
30
28
|
outputBudget?:string;
|
|
31
29
|
/** Canonical renderer encoding for read output. */
|
|
32
|
-
outputFormat?:"toon"
|
|
30
|
+
outputFormat?:"toon"|"json";
|
|
33
31
|
/** Caller-carried cross-call budget and served-item state. */
|
|
34
32
|
outputSession?:string;
|
|
35
33
|
/** Opaque budget-compaction continuation cursor. */
|
|
@@ -39,33 +37,29 @@ outputRowContract?:boolean;
|
|
|
39
37
|
/** Invocation-wide mutation author override. */
|
|
40
38
|
author?:string;
|
|
41
39
|
/** Whether `--author` was present without its required value. */
|
|
42
|
-
authorMissingValue?:true;
|
|
43
|
-
}
|
|
40
|
+
authorMissingValue?:true;}
|
|
44
41
|
/** Implements parse bootstrap global options for the public runtime surface of this module. */
|
|
45
42
|
export declare function parseBootstrapGlobalOptions(argv:string[]):BootstrapGlobalOptions;
|
|
46
43
|
/** Implements strip global bootstrap tokens for the public runtime surface of this module. */
|
|
47
44
|
export declare function stripGlobalBootstrapTokens(argv:string[]):string[];
|
|
48
45
|
/** Documents the bootstrap help request payload exchanged by command, SDK, and package integrations. */
|
|
49
|
-
export interface BootstrapHelpRequest
|
|
46
|
+
export interface BootstrapHelpRequest{
|
|
50
47
|
/** Value that configures or reports requested for this contract. */
|
|
51
48
|
requested:boolean;
|
|
52
49
|
/** Value that configures or reports command path tokens for this contract. */
|
|
53
|
-
commandPathTokens:string[];
|
|
54
|
-
}
|
|
50
|
+
commandPathTokens:string[];}
|
|
55
51
|
/** Implements parse bootstrap help request for the public runtime surface of this module. */
|
|
56
52
|
export declare function parseBootstrapHelpRequest(argv:string[]):BootstrapHelpRequest;
|
|
57
53
|
/** Locate the command token after global bootstrap flags and their values. */
|
|
58
|
-
export declare function findBootstrapCommandTokenIndex(argv:string[]):number
|
|
54
|
+
export declare function findBootstrapCommandTokenIndex(argv:string[]):number|undefined;
|
|
59
55
|
/** Resolve the normalized command name from bootstrap invocation arguments. */
|
|
60
|
-
export declare function parseBootstrapCommandName(argv:string[]):string
|
|
56
|
+
export declare function parseBootstrapCommandName(argv:string[]):string|undefined;
|
|
61
57
|
/** Implements apply bootstrap pager policy for the public runtime surface of this module. */
|
|
62
|
-
export declare function applyBootstrapPagerPolicy(argv:string[]):()
|
|
58
|
+
export declare function applyBootstrapPagerPolicy(argv:string[]):()=> void;
|
|
63
59
|
/** Implements normalize legacy extension action syntax for the public runtime surface of this module. */
|
|
64
|
-
export declare function normalizeLegacyExtensionActionSyntax(argv:string[]):string[];
|
|
65
|
-
type BootstrapNormalizationReason = "executable_alias" | "legacy_extension_action" | "command_alias" | "item_id_alias" | "flag_alias" | "flag_typo" | "bare_key_value" | "list_merge";
|
|
66
|
-
type BootstrapNormalizationConfidence = "high" | "medium";
|
|
60
|
+
export declare function normalizeLegacyExtensionActionSyntax(argv:string[]):string[];type BootstrapNormalizationReason="executable_alias"|"legacy_extension_action"|"command_alias"|"item_id_alias"|"flag_alias"|"flag_typo"|"bare_key_value"|"list_merge";type BootstrapNormalizationConfidence="high"|"medium";
|
|
67
61
|
/** Documents the bootstrap normalization event payload exchanged by command, SDK, and package integrations. */
|
|
68
|
-
export interface BootstrapNormalizationEvent
|
|
62
|
+
export interface BootstrapNormalizationEvent{
|
|
69
63
|
/** Value that configures or reports from for this contract. */
|
|
70
64
|
from:string;
|
|
71
65
|
/** Value that configures or reports to for this contract. */
|
|
@@ -73,40 +67,19 @@ to:string[];
|
|
|
73
67
|
/** Value that configures or reports reason for this contract. */
|
|
74
68
|
reason:BootstrapNormalizationReason;
|
|
75
69
|
/** Value that configures or reports confidence for this contract. */
|
|
76
|
-
confidence:BootstrapNormalizationConfidence;
|
|
77
|
-
}
|
|
70
|
+
confidence:BootstrapNormalizationConfidence;}
|
|
78
71
|
/** Documents the bootstrap invocation normalization result payload exchanged by command, SDK, and package integrations. */
|
|
79
|
-
export interface BootstrapInvocationNormalizationResult
|
|
72
|
+
export interface BootstrapInvocationNormalizationResult{
|
|
80
73
|
/** Value that configures or reports argv for this contract. */
|
|
81
74
|
argv:string[];
|
|
82
75
|
/** Value that configures or reports command name for this contract. */
|
|
83
|
-
commandName:string
|
|
76
|
+
commandName:string|undefined;
|
|
84
77
|
/** Value that configures or reports trace for this contract. */
|
|
85
|
-
trace:BootstrapNormalizationEvent[];
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
canonicalByNormalized:Map<string,string | null>;
|
|
89
|
-
canonicalByCompact:Map<string,string | null>;
|
|
90
|
-
canonicalComparables:Array<{
|
|
91
|
-
canonicalFlag:string;
|
|
92
|
-
comparable:string;
|
|
93
|
-
}>;
|
|
94
|
-
listCanonicalFlags:Set<string>;
|
|
95
|
-
}
|
|
96
|
-
declare function markUnambiguousFlag(map:Map<string,string | null>,key:string,canonicalFlag:string):void;
|
|
97
|
-
declare function collectLongFlagCandidates(contract:CliFlagContract):string[];
|
|
98
|
-
declare function buildFlagLookup(commandName:string | undefined,contractsOverride?:CliFlagContract[]):FlagLookup;
|
|
99
|
-
declare function resolveCanonicalFlag(rawKey:string,lookup:FlagLookup):{
|
|
100
|
-
flag:string;
|
|
101
|
-
reason:"flag_alias" | "flag_typo";
|
|
102
|
-
confidence:BootstrapNormalizationConfidence;
|
|
103
|
-
} | null;
|
|
78
|
+
trace:BootstrapNormalizationEvent[];}
|
|
79
|
+
interface FlagLookup{canonicalByNormalized:Map<string,string|null>;canonicalByCompact:Map<string,string|null>;canonicalComparables:Array<{canonicalFlag:string;comparable:string;}>;listCanonicalFlags:Set<string>;}
|
|
80
|
+
declare function markUnambiguousFlag(map:Map<string,string|null>,key:string,canonicalFlag:string):void;declare function collectLongFlagCandidates(contract:CliFlagContract):string[];declare function buildFlagLookup(commandName:string|undefined,contractsOverride?:CliFlagContract[]):FlagLookup;declare function resolveCanonicalFlag(rawKey:string,lookup:FlagLookup):{flag:string;reason:"flag_alias"|"flag_typo";confidence:BootstrapNormalizationConfidence;}|null;
|
|
104
81
|
/** Implements list alias plural keys for the public runtime surface of this module. */
|
|
105
|
-
export declare function listAliasPluralKeys(normalizedKey:string):string[];
|
|
106
|
-
declare function normalizeLongOptionToken(token:string,lookup:FlagLookup,preserve?:boolean):{
|
|
107
|
-
tokens:string[];
|
|
108
|
-
event?:BootstrapNormalizationEvent;
|
|
109
|
-
};
|
|
82
|
+
export declare function listAliasPluralKeys(normalizedKey:string):string[];declare function normalizeLongOptionToken(token:string,lookup:FlagLookup,preserve?:boolean):{tokens:string[];event?:BootstrapNormalizationEvent;};
|
|
110
83
|
/** Locate global path-value tokens that normalization must preserve literally. */
|
|
111
84
|
declare function collectBootstrapPathValueIndices(argv:string[]):Set<number>;
|
|
112
85
|
/**
|
|
@@ -122,12 +95,9 @@ declare function collectBootstrapPathValueIndices(argv:string[]):Set<number>;
|
|
|
122
95
|
* list-flag-looking value (`--path --tags`) is never reinterpreted as a flag
|
|
123
96
|
* nor allowed to swallow the following command/positional token.
|
|
124
97
|
*/
|
|
125
|
-
export declare function coalesceRepeatedListFlags(argv:string[],listFlags:Set<string>,valueConsumingFlags?:Set<string>,multiValueListFlags?:Set<string>):{
|
|
126
|
-
argv:string[];
|
|
127
|
-
events:BootstrapNormalizationEvent[];
|
|
128
|
-
};
|
|
98
|
+
export declare function coalesceRepeatedListFlags(argv:string[],listFlags:Set<string>,valueConsumingFlags?:Set<string>,multiValueListFlags?:Set<string>):{argv:string[];events:BootstrapNormalizationEvent[];};
|
|
129
99
|
/** Accept the two-token linked-test form `pm test <id> --add command "npm test -- parser"` by merging the bare key token and its single quoted value into the documented `--add command=...` shape. Without this merge Commander binds the bare key as the option value and treats the quoted command as an excess positional, failing with "too many arguments" (GH-191). The merge only fires when EXACTLY ONE non-flag token follows the bare key, i.e. the value was quoted into one shell token — an unquoted multi-token value stays ambiguous (it may swallow the item id), still fails fast, and is routed to targeted quoting guidance by the commander error classifier instead. */
|
|
130
|
-
export declare function mergeLinkedTestTwoTokenEntries(argv:string[],commandName:string
|
|
100
|
+
export declare function mergeLinkedTestTwoTokenEntries(argv:string[],commandName:string|undefined,trace:BootstrapNormalizationEvent[]):string[];
|
|
131
101
|
/**
|
|
132
102
|
* Canonicalize executable, command, item-address and option aliases before registration.
|
|
133
103
|
* Coalesce declared list values while preserving explicit literals and help discovery;
|
|
@@ -135,13 +105,6 @@ export declare function mergeLinkedTestTwoTokenEntries(argv:string[],commandName
|
|
|
135
105
|
*/
|
|
136
106
|
export declare function normalizeBootstrapInvocation(argv:string[]):BootstrapInvocationNormalizationResult;
|
|
137
107
|
/** Implements parse bootstrap type value for the public runtime surface of this module. */
|
|
138
|
-
export declare function parseBootstrapTypeValue(argv:string[]):string
|
|
108
|
+
export declare function parseBootstrapTypeValue(argv:string[]):string|undefined;
|
|
139
109
|
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
140
|
-
export declare const _testOnly:{
|
|
141
|
-
buildFlagLookup:typeof buildFlagLookup;
|
|
142
|
-
collectBootstrapPathValueIndices:typeof collectBootstrapPathValueIndices;
|
|
143
|
-
collectLongFlagCandidates:typeof collectLongFlagCandidates;
|
|
144
|
-
markUnambiguousFlag:typeof markUnambiguousFlag;
|
|
145
|
-
normalizeLongOptionToken:typeof normalizeLongOptionToken;
|
|
146
|
-
resolveCanonicalFlag:typeof resolveCanonicalFlag;
|
|
147
|
-
};
|
|
110
|
+
export declare const _testOnly:{buildFlagLookup:typeof buildFlagLookup;collectBootstrapPathValueIndices:typeof collectBootstrapPathValueIndices;collectLongFlagCandidates:typeof collectLongFlagCandidates;markUnambiguousFlag:typeof markUnambiguousFlag;normalizeLongOptionToken:typeof normalizeLongOptionToken;resolveCanonicalFlag:typeof resolveCanonicalFlag;};
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
/** Stable degradation stages applied when an output exceeds its token budget. */
|
|
2
|
-
export declare const PM_OUTPUT_DEGRADATION_STEPS:readonly
|
|
2
|
+
export declare const PM_OUTPUT_DEGRADATION_STEPS:readonly["full","compact","brief","summary","counts"];
|
|
3
3
|
/** Restricts deterministic output degradation stages. */
|
|
4
|
-
export type PmOutputDegradationStep
|
|
4
|
+
export type PmOutputDegradationStep=(typeof PM_OUTPUT_DEGRADATION_STEPS)[number];
|
|
5
5
|
/** Stable command-output classes used to assign conservative default budgets. */
|
|
6
|
-
export declare const PM_OUTPUT_BUDGET_CLASSES:readonly
|
|
6
|
+
export declare const PM_OUTPUT_BUDGET_CLASSES:readonly["mutation","read","discovery","governance"];
|
|
7
7
|
/** Restricts command-output budget classes. */
|
|
8
|
-
export type PmOutputBudgetClass
|
|
8
|
+
export type PmOutputBudgetClass=(typeof PM_OUTPUT_BUDGET_CLASSES)[number];
|
|
9
9
|
/** Stable diagnostic families that require independent output ceilings. */
|
|
10
|
-
export declare const PM_DIAGNOSTIC_OUTPUT_CLASSES:readonly
|
|
10
|
+
export declare const PM_DIAGNOSTIC_OUTPUT_CLASSES:readonly["error","warning","validation_summary","recovery_bundle"];
|
|
11
11
|
/** Restricts diagnostic budget selection to declared families. */
|
|
12
|
-
export type PmDiagnosticOutputClass
|
|
12
|
+
export type PmDiagnosticOutputClass=(typeof PM_DIAGNOSTIC_OUTPUT_CLASSES)[number];
|
|
13
13
|
/** Deterministic diagnostic degradation stages, from richest to smallest. */
|
|
14
|
-
export declare const PM_DIAGNOSTIC_DEGRADATION_STEPS:readonly
|
|
14
|
+
export declare const PM_DIAGNOSTIC_DEGRADATION_STEPS:readonly["full","omit_explanation","limit_collections","compact_recovery","action_only"];
|
|
15
15
|
/** Restricts diagnostic degradation receipts to declared stages. */
|
|
16
|
-
export type PmDiagnosticDegradationStep
|
|
16
|
+
export type PmDiagnosticDegradationStep=(typeof PM_DIAGNOSTIC_DEGRADATION_STEPS)[number];
|
|
17
17
|
/** Declares one diagnostic family's text and JSON token ceilings. */
|
|
18
|
-
export interface PmDiagnosticOutputBudgetContract
|
|
18
|
+
export interface PmDiagnosticOutputBudgetContract{
|
|
19
19
|
/** Diagnostic family governed by this contract. */
|
|
20
20
|
diagnostic_class:PmDiagnosticOutputClass;
|
|
21
21
|
/** Default ceiling by rendered transport. */
|
|
22
|
-
default_max_estimated_tokens_by_format:Readonly<{
|
|
23
|
-
text:number;
|
|
24
|
-
json:number;
|
|
25
|
-
}>;
|
|
22
|
+
default_max_estimated_tokens_by_format:Readonly<{text:number;json:number;}>;
|
|
26
23
|
/** Smallest explicit ceiling accepted by the projector. */
|
|
27
24
|
minimum_max_estimated_tokens:number;
|
|
28
25
|
/** Ordered degradation policy applied when the ceiling binds. */
|
|
@@ -30,18 +27,17 @@ degradation_ladder:readonly PmDiagnosticDegradationStep[];
|
|
|
30
27
|
/** Paths whose first actionable value must survive degradation. */
|
|
31
28
|
corrective_action_paths:readonly string[];
|
|
32
29
|
/** Stable estimate used by gates and SDK consumers. */
|
|
33
|
-
token_estimate:"ceil(utf8_bytes / 4)";
|
|
34
|
-
}
|
|
30
|
+
token_estimate:"ceil(utf8_bytes / 4)";}
|
|
35
31
|
/** Machine-readable disclosure attached to a projected diagnostic. */
|
|
36
|
-
export interface PmDiagnosticOutputReceipt
|
|
32
|
+
export interface PmDiagnosticOutputReceipt{
|
|
37
33
|
/** Diagnostic family whose contract bound the output. */
|
|
38
34
|
diagnostic_class:PmDiagnosticOutputClass;
|
|
39
35
|
/** Rendered transport measured by the projector. */
|
|
40
|
-
format:"json"
|
|
36
|
+
format:"json"|"text";
|
|
41
37
|
/** Effective estimated-token ceiling. */
|
|
42
38
|
budget:number;
|
|
43
39
|
/** Whether the caller supplied the ceiling or used the declaration. */
|
|
44
|
-
budget_source:"default"
|
|
40
|
+
budget_source:"default"|"explicit";
|
|
45
41
|
/** Estimate before diagnostic degradation. */
|
|
46
42
|
original_estimated_tokens:number;
|
|
47
43
|
/** Exact estimate of the returned projection. */
|
|
@@ -53,14 +49,11 @@ degradation_steps:PmDiagnosticDegradationStep[];
|
|
|
53
49
|
/** Top-level fields removed from the original diagnostic. */
|
|
54
50
|
omitted_fields:string[];
|
|
55
51
|
/** Additional omitted fields not named individually in a bounded receipt. */
|
|
56
|
-
omitted_fields_overflow_count?:number;
|
|
57
|
-
}
|
|
52
|
+
omitted_fields_overflow_count?:number;}
|
|
58
53
|
/** JSON diagnostic after binding it to a declared output contract. */
|
|
59
|
-
export type PmProjectedDiagnostic<TDiagnostic extends object
|
|
60
|
-
diagnostic_output?:PmDiagnosticOutputReceipt;
|
|
61
|
-
};
|
|
54
|
+
export type PmProjectedDiagnostic<TDiagnostic extends object>=Partial<TDiagnostic>&Pick<TDiagnostic,Extract<keyof TDiagnostic,"code"|"required">>&{diagnostic_output?:PmDiagnosticOutputReceipt;};
|
|
62
55
|
/** Describes one command's default agent-output budget and degradation policy. */
|
|
63
|
-
export interface PmCommandOutputBudgetContract
|
|
56
|
+
export interface PmCommandOutputBudgetContract{
|
|
64
57
|
/** Canonical or compatibility command name. */
|
|
65
58
|
command:string;
|
|
66
59
|
/** Workload class that selected the default ceiling. */
|
|
@@ -68,17 +61,13 @@ budget_class:PmOutputBudgetClass;
|
|
|
68
61
|
/** Default estimated-token ceiling for representative output. */
|
|
69
62
|
default_max_estimated_tokens:number;
|
|
70
63
|
/** Encoding-specific ceilings generated from the workload-class default. */
|
|
71
|
-
default_max_estimated_tokens_by_format:Readonly<{
|
|
72
|
-
toon:number;
|
|
73
|
-
json:number;
|
|
74
|
-
}>;
|
|
64
|
+
default_max_estimated_tokens_by_format:Readonly<{toon:number;json:number;}>;
|
|
75
65
|
/** Ordered fallback projections, from richest to smallest. */
|
|
76
66
|
degradation_ladder:readonly PmOutputDegradationStep[];
|
|
77
67
|
/** Whether callers may explicitly request an unbounded result. */
|
|
78
68
|
allows_unbounded_opt_out:boolean;
|
|
79
69
|
/** Stable estimate used by gates and SDK consumers. */
|
|
80
|
-
token_estimate:"ceil(utf8_bytes / 4)";
|
|
81
|
-
}
|
|
70
|
+
token_estimate:"ceil(utf8_bytes / 4)";}
|
|
82
71
|
/** Public default contract for every diagnostic family. */
|
|
83
72
|
export declare const PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS:PmDiagnosticOutputBudgetContract[];
|
|
84
73
|
/** Infer the conservative workload class for a core or package command. */
|
|
@@ -94,13 +83,9 @@ export declare function definePmCommandOutputBudget<TContract extends PmCommandO
|
|
|
94
83
|
/** Public default budget contract for every built-in pm command. */
|
|
95
84
|
export declare const PM_COMMAND_OUTPUT_BUDGET_CONTRACTS:PmCommandOutputBudgetContract[];
|
|
96
85
|
/** Resolve the declared output budget for one built-in command. */
|
|
97
|
-
export declare function resolvePmCommandOutputBudget(command:string,options:{
|
|
98
|
-
generateFallback:true;
|
|
99
|
-
}):PmCommandOutputBudgetContract;
|
|
86
|
+
export declare function resolvePmCommandOutputBudget(command:string,options:{generateFallback:true;}):PmCommandOutputBudgetContract;
|
|
100
87
|
/** Resolve a declared output budget without generating a package fallback. */
|
|
101
|
-
export declare function resolvePmCommandOutputBudget(command:string,options?:{
|
|
102
|
-
generateFallback?:false;
|
|
103
|
-
}):PmCommandOutputBudgetContract | null;
|
|
88
|
+
export declare function resolvePmCommandOutputBudget(command:string,options?:{generateFallback?:false;}):PmCommandOutputBudgetContract|null;
|
|
104
89
|
/** Estimate conservative token usage from UTF-8 output bytes. */
|
|
105
90
|
export declare function estimatePmOutputTokens(utf8Bytes:number):number;
|
|
106
91
|
/** Resolve the binding output contract for one diagnostic family. */
|
|
@@ -109,47 +94,36 @@ export declare function resolvePmDiagnosticOutputBudget(diagnosticClass:PmDiagno
|
|
|
109
94
|
* Bind a JSON diagnostic to its declared ceiling while preserving the first
|
|
110
95
|
* corrective action and reporting every top-level omission.
|
|
111
96
|
*/
|
|
112
|
-
export declare function projectPmDiagnosticOutput<TDiagnostic extends object>(diagnostic:TDiagnostic,options?:{
|
|
113
|
-
diagnosticClass?:PmDiagnosticOutputClass;
|
|
114
|
-
maxEstimatedTokens?:number;
|
|
115
|
-
}):PmProjectedDiagnostic<TDiagnostic>;
|
|
97
|
+
export declare function projectPmDiagnosticOutput<TDiagnostic extends object>(diagnostic:TDiagnostic,options?:{diagnosticClass?:PmDiagnosticOutputClass;maxEstimatedTokens?:number;}):PmProjectedDiagnostic<TDiagnostic>;
|
|
116
98
|
/** Text diagnostic together with the same measured receipt used by JSON. */
|
|
117
|
-
export interface PmProjectedTextDiagnostic
|
|
99
|
+
export interface PmProjectedTextDiagnostic{
|
|
118
100
|
/** Rendered action-first diagnostic. */
|
|
119
101
|
output:string;
|
|
120
102
|
/** Binding diagnostic budget receipt. */
|
|
121
|
-
diagnostic_output:PmDiagnosticOutputReceipt;
|
|
122
|
-
}
|
|
103
|
+
diagnostic_output:PmDiagnosticOutputReceipt;}
|
|
123
104
|
/** Bind human-readable diagnostics while retaining their first identifying line and corrective action. */
|
|
124
|
-
export declare function projectPmDiagnosticText(output:string,correctiveAction:string,options?:{
|
|
125
|
-
diagnosticClass?:PmDiagnosticOutputClass;
|
|
126
|
-
maxEstimatedTokens?:number;
|
|
127
|
-
}):PmProjectedTextDiagnostic;
|
|
105
|
+
export declare function projectPmDiagnosticText(output:string,correctiveAction:string,options?:{diagnosticClass?:PmDiagnosticOutputClass;maxEstimatedTokens?:number;}):PmProjectedTextDiagnostic;
|
|
128
106
|
/**
|
|
129
107
|
* Guidance that every refusal can carry regardless of its code. Lean output
|
|
130
108
|
* omits it because it never changes the caller's next action; default output
|
|
131
109
|
* keeps it for human readers (GH-1610). Declared once here so the text and
|
|
132
110
|
* JSON lean projections agree on what counts as boilerplate.
|
|
133
111
|
*/
|
|
134
|
-
export declare const PM_GENERIC_REFUSAL_GUIDANCE:Readonly<{
|
|
135
|
-
required:"Adjust command input or tracker state and retry.";
|
|
136
|
-
why:readonly string[];
|
|
137
|
-
examples:readonly string[];
|
|
138
|
-
}>;
|
|
112
|
+
export declare const PM_GENERIC_REFUSAL_GUIDANCE:Readonly<{required:"Adjust command input or tracker state and retry.";why:readonly string[];examples:readonly string[];}>;
|
|
139
113
|
/** True when the `What is required` text is the generic constant. */
|
|
140
|
-
export declare function isGenericRefusalRequired(value:string
|
|
114
|
+
export declare function isGenericRefusalRequired(value:string|undefined):boolean;
|
|
141
115
|
/** True when the `Why` text carries no code-specific rationale. */
|
|
142
|
-
export declare function isGenericRefusalWhy(value:string
|
|
116
|
+
export declare function isGenericRefusalWhy(value:string|undefined):boolean;
|
|
143
117
|
/**
|
|
144
118
|
* Drop each generic help pointer from an example list so a mixed list keeps
|
|
145
119
|
* only its code-specific entries; an all-generic list becomes empty.
|
|
146
120
|
*/
|
|
147
|
-
export declare function withoutGenericRefusalExamples(values:readonly string[]
|
|
121
|
+
export declare function withoutGenericRefusalExamples(values:readonly string[]|undefined):string[];
|
|
148
122
|
/** Recovery fields that only echo the caller's own invocation. */
|
|
149
|
-
export declare const PM_RECOVERY_ECHO_FIELDS:readonly
|
|
123
|
+
export declare const PM_RECOVERY_ECHO_FIELDS:readonly["attempted_command","normalized_args","provided_fields"];
|
|
150
124
|
/**
|
|
151
125
|
* Drop the invocation echo from a recovery payload. Specific recovery such as
|
|
152
126
|
* `suggested_retry`, `missing`, `allowed_values` and `next_best_command`
|
|
153
127
|
* survives; an empty remainder is omitted entirely.
|
|
154
128
|
*/
|
|
155
|
-
export declare function projectLeanRecoveryPayload<Recovery extends Partial<Record<(typeof PM_RECOVERY_ECHO_FIELDS)[number],unknown>>>(recovery:Recovery
|
|
129
|
+
export declare function projectLeanRecoveryPayload<Recovery extends Partial<Record<(typeof PM_RECOVERY_ECHO_FIELDS)[number],unknown>>>(recovery:Recovery|undefined):Omit<Recovery,(typeof PM_RECOVERY_ECHO_FIELDS)[number]>|undefined;
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* policy instead of maintaining parallel spelling lists.
|
|
7
7
|
*/
|
|
8
8
|
/** Lifecycle policy applied to a command alias. */
|
|
9
|
-
export type PmCommandAliasLifecycle
|
|
9
|
+
export type PmCommandAliasLifecycle="permanent"|"deprecated";
|
|
10
10
|
/** Registration mechanism used to preserve an alias invocation. */
|
|
11
|
-
export type PmCommandAliasRegistration
|
|
11
|
+
export type PmCommandAliasRegistration="bootstrap"|"commander";
|
|
12
12
|
/** Machine-readable compatibility contract for one executable command alias. */
|
|
13
|
-
export interface PmCommandAliasContract
|
|
13
|
+
export interface PmCommandAliasContract{
|
|
14
14
|
/** Legacy or ergonomic spelling accepted at the command root. */
|
|
15
15
|
alias:string;
|
|
16
16
|
/** Canonical command path agents should discover and generate. */
|
|
@@ -24,8 +24,7 @@ hidden:boolean;
|
|
|
24
24
|
/** Runtime layer that keeps the alias executable. */
|
|
25
25
|
registration:PmCommandAliasRegistration;
|
|
26
26
|
/** PM item that owns the compatibility disposition. */
|
|
27
|
-
owner:string;
|
|
28
|
-
}
|
|
27
|
+
owner:string;}
|
|
29
28
|
/** History namespace aliases preserve the existing SDK and MCP operation identities. */
|
|
30
29
|
export declare const PM_HISTORY_COMMAND_ALIASES:readonly PmCommandAliasContract[];
|
|
31
30
|
/** Navigation, maintenance, and event aliases share native handlers and stable SDK identities. */
|
|
@@ -37,7 +36,7 @@ export declare const PM_RELOCATED_COMMAND_ALIASES:readonly PmCommandAliasContrac
|
|
|
37
36
|
/** Native noun-verb paths whose stable operation identities survive grammar consolidation. */
|
|
38
37
|
export declare const PM_NAMESPACED_COMMAND_ALIASES:readonly PmCommandAliasContract[];
|
|
39
38
|
/** Find the longest declared command prefix without consuming flags or positional operands. */
|
|
40
|
-
export declare function findPmNamespacedCommand(tokens:readonly string[]):PmCommandAliasContract
|
|
39
|
+
export declare function findPmNamespacedCommand(tokens:readonly string[]):PmCommandAliasContract|undefined;
|
|
41
40
|
/** Resolve a native command leaf to its stable SDK operation without changing unknown paths. */
|
|
42
41
|
export declare function resolvePmCommandOperation(command:string):string;
|
|
43
42
|
/** Compatibility entrypoint for hosts that adopted namespace resolution with history. */
|
|
@@ -50,6 +49,6 @@ export declare const PM_COMMAND_ALIAS_CONTRACTS:readonly PmCommandAliasContract[
|
|
|
50
49
|
/** High-frequency executable aliases whose targets accept identical arguments. */
|
|
51
50
|
export declare const EXECUTABLE_COMMAND_ALIASES:Readonly<Record<string,string>>;
|
|
52
51
|
/** Resolve one declared command alias without inferring from its spelling. */
|
|
53
|
-
export declare function resolvePmCommandAlias(alias:string):PmCommandAliasContract
|
|
52
|
+
export declare function resolvePmCommandAlias(alias:string):PmCommandAliasContract|undefined;
|
|
54
53
|
/** Render the stable one-line migration hint emitted for deprecated aliases. */
|
|
55
|
-
export declare function renderPmCommandAliasMigrationHint(contract:PmCommandAliasContract):string;
|
|
54
|
+
export declare function renderPmCommandAliasMigrationHint(contract:PmCommandAliasContract):string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** Stable numeric exit codes emitted by core pm commands. */
|
|
2
|
-
export type PmCommandExitCode
|
|
2
|
+
export type PmCommandExitCode=0|1|2|3|4|5|6|7;
|
|
3
3
|
/** Effect-oriented outcome vocabulary shared by shells and structured output. */
|
|
4
|
-
export type PmCommandExitOutcome
|
|
4
|
+
export type PmCommandExitOutcome="effect"|"internal_failure"|"refused_input"|"refused_tracker_state"|"conflict"|"dependency_failed"|"no_effect"|"partial_effect";
|
|
5
5
|
/** Meaning and success semantics for one stable process exit. */
|
|
6
|
-
export interface PmCommandExitOutcomeContract
|
|
6
|
+
export interface PmCommandExitOutcomeContract{
|
|
7
7
|
/** Stable process exit visible without parsing stdout. */
|
|
8
8
|
exit_code:PmCommandExitCode;
|
|
9
9
|
/** Effect-oriented result independent of implementation details. */
|
|
@@ -11,26 +11,23 @@ outcome:PmCommandExitOutcome;
|
|
|
11
11
|
/** Whether the command completed its requested control flow successfully. */
|
|
12
12
|
success:boolean;
|
|
13
13
|
/** Concise operator-facing meaning. */
|
|
14
|
-
meaning:string;
|
|
15
|
-
}
|
|
14
|
+
meaning:string;}
|
|
16
15
|
/** Declared numeric exits for one core command path. */
|
|
17
|
-
export interface PmCommandExitContract
|
|
16
|
+
export interface PmCommandExitContract{
|
|
18
17
|
/** Normalized command path. */
|
|
19
18
|
command:string;
|
|
20
19
|
/** Exhaustive exits the command may emit. */
|
|
21
|
-
exit_codes:readonly PmCommandExitCode[];
|
|
22
|
-
}
|
|
20
|
+
exit_codes:readonly PmCommandExitCode[];}
|
|
23
21
|
/** One replay observation used to verify command exit declarations. */
|
|
24
|
-
export interface PmCommandExitObservation
|
|
22
|
+
export interface PmCommandExitObservation{
|
|
25
23
|
/** Command path executed by the replay. */
|
|
26
24
|
command:string;
|
|
27
25
|
/** Process exit observed from the real command boundary. */
|
|
28
26
|
exit_code:number;
|
|
29
27
|
/** Stable replay case identifier for diagnostics. */
|
|
30
|
-
replay_id:string;
|
|
31
|
-
}
|
|
28
|
+
replay_id:string;}
|
|
32
29
|
/** Drift report produced by exit-contract replay conformance. */
|
|
33
|
-
export interface PmCommandExitConformanceReport
|
|
30
|
+
export interface PmCommandExitConformanceReport{
|
|
34
31
|
/** Whether all declaration and observation checks passed. */
|
|
35
32
|
ok:boolean;
|
|
36
33
|
/** Expected commands without a declaration. */
|
|
@@ -38,65 +35,23 @@ missing_commands:string[];
|
|
|
38
35
|
/** Observations whose command or numeric exit is undeclared. */
|
|
39
36
|
undeclared_observations:PmCommandExitObservation[];
|
|
40
37
|
/** Declared numeric outcomes not reached anywhere in the replay corpus. */
|
|
41
|
-
unreachable_exit_codes:PmCommandExitCode[];
|
|
42
|
-
}
|
|
38
|
+
unreachable_exit_codes:PmCommandExitCode[];}
|
|
43
39
|
/** Canonical effect vocabulary for all stable CLI process exits. */
|
|
44
|
-
export declare const PM_COMMAND_EXIT_OUTCOME_CONTRACTS:readonly
|
|
45
|
-
readonly exit_code:0;
|
|
46
|
-
readonly outcome:"effect";
|
|
47
|
-
readonly success:true;
|
|
48
|
-
readonly meaning:"The requested operation completed with its intended effect.";
|
|
49
|
-
},{
|
|
50
|
-
readonly exit_code:1;
|
|
51
|
-
readonly outcome:"internal_failure";
|
|
52
|
-
readonly success:false;
|
|
53
|
-
readonly meaning:"An unexpected runtime or internal failure prevented completion.";
|
|
54
|
-
},{
|
|
55
|
-
readonly exit_code:2;
|
|
56
|
-
readonly outcome:"refused_input";
|
|
57
|
-
readonly success:false;
|
|
58
|
-
readonly meaning:"The invocation was refused because its input or composition was invalid.";
|
|
59
|
-
},{
|
|
60
|
-
readonly exit_code:3;
|
|
61
|
-
readonly outcome:"refused_tracker_state";
|
|
62
|
-
readonly success:false;
|
|
63
|
-
readonly meaning:"The requested tracker, item, or resource was not present.";
|
|
64
|
-
},{
|
|
65
|
-
readonly exit_code:4;
|
|
66
|
-
readonly outcome:"conflict";
|
|
67
|
-
readonly success:false;
|
|
68
|
-
readonly meaning:"Current state or concurrency prevented the requested effect.";
|
|
69
|
-
},{
|
|
70
|
-
readonly exit_code:5;
|
|
71
|
-
readonly outcome:"dependency_failed";
|
|
72
|
-
readonly success:false;
|
|
73
|
-
readonly meaning:"A required dependency operation failed.";
|
|
74
|
-
},{
|
|
75
|
-
readonly exit_code:6;
|
|
76
|
-
readonly outcome:"no_effect";
|
|
77
|
-
readonly success:true;
|
|
78
|
-
readonly meaning:"The request was valid and completed, but matched nothing to change.";
|
|
79
|
-
},{
|
|
80
|
-
readonly exit_code:7;
|
|
81
|
-
readonly outcome:"partial_effect";
|
|
82
|
-
readonly success:true;
|
|
83
|
-
readonly meaning:"The request completed and changed some, but not all, selected targets.";
|
|
84
|
-
}];
|
|
40
|
+
export declare const PM_COMMAND_EXIT_OUTCOME_CONTRACTS:readonly[{readonly exit_code:0;readonly outcome:"effect";readonly success:true;readonly meaning:"The requested operation completed with its intended effect.";},{readonly exit_code:1;readonly outcome:"internal_failure";readonly success:false;readonly meaning:"An unexpected runtime or internal failure prevented completion.";},{readonly exit_code:2;readonly outcome:"refused_input";readonly success:false;readonly meaning:"The invocation was refused because its input or composition was invalid.";},{readonly exit_code:3;readonly outcome:"refused_tracker_state";readonly success:false;readonly meaning:"The requested tracker, item, or resource was not present.";},{readonly exit_code:4;readonly outcome:"conflict";readonly success:false;readonly meaning:"Current state or concurrency prevented the requested effect.";},{readonly exit_code:5;readonly outcome:"dependency_failed";readonly success:false;readonly meaning:"A required dependency operation failed.";},{readonly exit_code:6;readonly outcome:"no_effect";readonly success:true;readonly meaning:"The request was valid and completed, but matched nothing to change.";},{readonly exit_code:7;readonly outcome:"partial_effect";readonly success:true;readonly meaning:"The request completed and changed some, but not all, selected targets.";}];
|
|
85
41
|
/** Exhaustive core command exit declarations generated from the command registry. */
|
|
86
42
|
export declare const PM_COMMAND_EXIT_CONTRACTS:readonly PmCommandExitContract[];
|
|
87
43
|
/** Stable successful process exits, including machine-distinct effect states. */
|
|
88
|
-
export declare const PM_SUCCESS_EXIT_CODES:readonly
|
|
44
|
+
export declare const PM_SUCCESS_EXIT_CODES:readonly[0,6,7];
|
|
89
45
|
/** Portable success effect reported by command result envelopes. */
|
|
90
|
-
export type PmCommandEffect
|
|
46
|
+
export type PmCommandEffect="effect"|"no_effect"|"partial_effect"|"dependency_failed";
|
|
91
47
|
/** Shell and envelope representation of one command effect or collected failure. */
|
|
92
|
-
export interface PmCommandEffectReceipt
|
|
48
|
+
export interface PmCommandEffectReceipt{
|
|
93
49
|
/** Semantic effect observed after command execution. */
|
|
94
50
|
outcome:PmCommandEffect;
|
|
95
51
|
/** Stable shell exit paired with the effect. */
|
|
96
|
-
exit_code:0
|
|
97
|
-
}
|
|
52
|
+
exit_code:0|5|6|7;}
|
|
98
53
|
/** Counts used to derive one bulk mutation's effect without parsing prose. */
|
|
99
|
-
export interface PmBulkMutationEffectCounts
|
|
54
|
+
export interface PmBulkMutationEffectCounts{
|
|
100
55
|
/** Rows that completed the requested mutation. */
|
|
101
56
|
applied:number;
|
|
102
57
|
/** Rows deliberately left unchanged. */
|
|
@@ -104,15 +59,14 @@ skipped:number;
|
|
|
104
59
|
/** Rows whose attempted mutation failed. */
|
|
105
60
|
failed:number;
|
|
106
61
|
/** Explicit requested identifiers that did not exist. */
|
|
107
|
-
unmatched:number;
|
|
108
|
-
}
|
|
62
|
+
unmatched:number;}
|
|
109
63
|
/** Return whether an exit represents a successful command outcome. */
|
|
110
64
|
export declare function isPmSuccessfulExitCode(exitCode:number):boolean;
|
|
111
65
|
/** Return whether an exit belongs to the declared pm process vocabulary. */
|
|
112
66
|
export declare function isPmKnownExitCode(exitCode:number):exitCode is PmCommandExitCode;
|
|
113
67
|
/** Resolve an exact command contract, falling back to its declared root path. */
|
|
114
|
-
export declare function resolvePmCommandExitContract(commandPath:string):PmCommandExitContract
|
|
68
|
+
export declare function resolvePmCommandExitContract(commandPath:string):PmCommandExitContract|undefined;
|
|
115
69
|
/** Verify command coverage, observed exits, and vocabulary reachability for a replay corpus. */
|
|
116
70
|
export declare function analyzePmCommandExitConformance(observations:readonly PmCommandExitObservation[],expectedCommands?:readonly string[],contracts?:readonly PmCommandExitContract[]):PmCommandExitConformanceReport;
|
|
117
71
|
/** Derive deterministic full, empty, partial, or failed semantics for a bulk mutation. */
|
|
118
|
-
export declare function derivePmBulkMutationEffect(counts:PmBulkMutationEffectCounts):PmCommandEffectReceipt;
|
|
72
|
+
export declare function derivePmBulkMutationEffect(counts:PmBulkMutationEffectCounts):PmCommandEffectReceipt;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Defines SDK command-contract metadata for Commander Mutation Options.
|
|
5
5
|
*/
|
|
6
|
-
import type
|
|
6
|
+
import type{CommanderOptionAliasContract,CommanderOptionRegistrationContract}from "./commander-types.js";
|
|
7
7
|
/** Creates commander option registration contracts using the validated operation inputs. */
|
|
8
8
|
export declare const CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS:CommanderOptionRegistrationContract[];
|
|
9
9
|
/** Creates commander string option contracts using the validated operation inputs. */
|
|
@@ -15,4 +15,4 @@ export declare const UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS:CommanderOpt
|
|
|
15
15
|
/** Public contract for update commander string option contracts, shared by SDK and presentation-layer consumers. */
|
|
16
16
|
export declare const UPDATE_COMMANDER_STRING_OPTION_CONTRACTS:CommanderOptionAliasContract[];
|
|
17
17
|
/** Public contract for update commander repeatable option contracts, shared by SDK and presentation-layer consumers. */
|
|
18
|
-
export declare const UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS:CommanderOptionAliasContract[];
|
|
18
|
+
export declare const UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS:CommanderOptionAliasContract[];
|
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
* Maps Commander option aliases to SDK fields and preserves precedence when normalizing CLI input.
|
|
5
5
|
*/
|
|
6
6
|
/** Describes aliases accepted by Commander option registration contracts. */
|
|
7
|
-
export interface CommanderOptionAliasContract
|
|
7
|
+
export interface CommanderOptionAliasContract{
|
|
8
8
|
/** Canonical SDK option key receiving the selected alias value. */
|
|
9
9
|
target:string;
|
|
10
10
|
/** Commander option keys in precedence order; the first matching value wins. */
|
|
11
|
-
keys:readonly string[];
|
|
12
|
-
}
|
|
11
|
+
keys:readonly string[];}
|
|
13
12
|
/** Declares Commander registration syntax and how its parsed values map to SDK options. */
|
|
14
|
-
export interface CommanderOptionRegistrationContract extends CommanderOptionAliasContract
|
|
13
|
+
export interface CommanderOptionRegistrationContract extends CommanderOptionAliasContract{
|
|
15
14
|
/** Commander flag syntax, including short aliases and argument placeholders. */
|
|
16
15
|
option:string;
|
|
17
16
|
/** Human-readable flag help displayed by Commander. */
|
|
@@ -21,11 +20,7 @@ required?:boolean;
|
|
|
21
20
|
/** Whether repeated occurrences accumulate values instead of replacing the previous value. */
|
|
22
21
|
repeatable?:boolean;
|
|
23
22
|
/** Inputs that customize the alias operation. */
|
|
24
|
-
aliasOptions?:Array<{
|
|
25
|
-
option:string;
|
|
26
|
-
description:string;
|
|
27
|
-
}>;
|
|
28
|
-
}
|
|
23
|
+
aliasOptions?:Array<{option:string;description:string;}>;}
|
|
29
24
|
/** Public contract for list commander string option contracts, shared by SDK and presentation-layer consumers. */
|
|
30
25
|
export declare const LIST_COMMANDER_STRING_OPTION_CONTRACTS:CommanderOptionAliasContract[];
|
|
31
26
|
/** Public contract for search commander string option contracts, shared by SDK and presentation-layer consumers. */
|
|
@@ -39,8 +34,8 @@ export declare const NEXT_COMMANDER_STRING_OPTION_CONTRACTS:CommanderOptionAlias
|
|
|
39
34
|
/** Public contract for activity commander string option contracts, shared by SDK and presentation-layer consumers. */
|
|
40
35
|
export declare const ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS:CommanderOptionAliasContract[];
|
|
41
36
|
/** Return the first string-valued alias in declared precedence order, including an explicitly empty string. */
|
|
42
|
-
export declare function readFirstStringFromCommanderOptions(options:Record<string,unknown>,contract:CommanderOptionAliasContract):string
|
|
37
|
+
export declare function readFirstStringFromCommanderOptions(options:Record<string,unknown>,contract:CommanderOptionAliasContract):string|undefined;
|
|
43
38
|
/** Return the first own alias property, preserving explicitly undefined values and ignoring inherited properties. */
|
|
44
39
|
export declare function readFirstValueFromCommanderOptions(options:Record<string,unknown>,contract:CommanderOptionAliasContract):unknown;
|
|
45
40
|
/** Concatenate string entries from all array-valued aliases in declaration order; return undefined when none remain. */
|
|
46
|
-
export declare function readStringArrayFromCommanderOptions(options:Record<string,unknown>,contract:CommanderOptionAliasContract):string[]
|
|
41
|
+
export declare function readStringArrayFromCommanderOptions(options:Record<string,unknown>,contract:CommanderOptionAliasContract):string[]|undefined;
|