@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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { PmClient } from "./runtime.js";
|
|
1
|
+
import type{ExtensionCommandSdk}from "../core/extensions/extension-types.js";import type{PmClient}from "./runtime.js";
|
|
3
2
|
/** Bind public SDK services to one tracker and one caller-owned client. */
|
|
4
|
-
export declare function createExtensionCommandSdk(pmRoot:string,client:PmClient,invocationAuthor?:string,invocationCommand?:string):ExtensionCommandSdk;
|
|
3
|
+
export declare function createExtensionCommandSdk(pmRoot:string,client:PmClient,invocationAuthor?:string,invocationCommand?:string):ExtensionCommandSdk;
|
|
@@ -4,33 +4,30 @@
|
|
|
4
4
|
* Publishes the stable extension capability vocabulary without loading the
|
|
5
5
|
* aggregate SDK entrypoint.
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
8
|
-
import { type CommanderOptionAliasContract } from "./cli-contracts/commander-types.js";
|
|
9
|
-
import { type CliFlagContract } from "./cli-contracts/flag-contracts.js";
|
|
7
|
+
import{EXTENSION_CAPABILITY_CONTRACT,EXTENSION_CAPABILITY_CONTRACT_VERSION,EXTENSION_CAPABILITY_LEGACY_ALIASES,type FlagDefinition}from "../core/extensions/loader.js";import{type CommanderOptionAliasContract}from "./cli-contracts/commander-types.js";import{type CliFlagContract}from "./cli-contracts/flag-contracts.js";
|
|
10
8
|
/**
|
|
11
9
|
* Canonical extension capability names accepted by pm.
|
|
12
10
|
*
|
|
13
11
|
* Extension manifests should declare one or more of these values in
|
|
14
12
|
* `capabilities`.
|
|
15
13
|
*/
|
|
16
|
-
export declare const EXTENSION_CAPABILITIES:readonly
|
|
17
|
-
export type { ExtensionCapability } from "../core/extensions/extension-types.js";
|
|
14
|
+
export declare const EXTENSION_CAPABILITIES:readonly["commands","renderers","hooks","schema","importers","search","parser","preflight","services"];export type{ExtensionCapability}from "../core/extensions/extension-types.js";
|
|
18
15
|
/** Canonical extension governance policy modes. */
|
|
19
|
-
export declare const EXTENSION_POLICY_MODES:readonly
|
|
16
|
+
export declare const EXTENSION_POLICY_MODES:readonly["off","warn","enforce"];
|
|
20
17
|
/** Canonical extension registration surfaces governed by policy. */
|
|
21
|
-
export declare const EXTENSION_POLICY_SURFACES:readonly
|
|
18
|
+
export declare const EXTENSION_POLICY_SURFACES:readonly["commands.override","commands.handler","hooks.beforecommand","hooks.beforemutation","hooks.aftercommand","hooks.onwrite","hooks.onread","hooks.onindex","schema.flags","schema.itemfields","schema.itemtypes","schema.relationshipkinds","schema.migrations","schema.profiles","parser.override","preflight.override","services.override","renderers.override","importers.importer","importers.exporter","search.provider","search.vectorstore","services.assuranceprovider"];
|
|
22
19
|
/** Canonical extension trust modes shared by authoring and runtime consumers. */
|
|
23
|
-
export declare const EXTENSION_TRUST_MODES:readonly
|
|
20
|
+
export declare const EXTENSION_TRUST_MODES:readonly["off","warn","enforce"];
|
|
24
21
|
/** Canonical extension sandbox profiles shared by authoring and runtime consumers. */
|
|
25
|
-
export declare const EXTENSION_SANDBOX_PROFILES:readonly
|
|
22
|
+
export declare const EXTENSION_SANDBOX_PROFILES:readonly["none","restricted","strict"];
|
|
26
23
|
/** Restricts extension policy mode values accepted by command, SDK, and storage contracts. */
|
|
27
|
-
export type ExtensionPolicyMode
|
|
24
|
+
export type ExtensionPolicyMode=(typeof EXTENSION_POLICY_MODES)[number];
|
|
28
25
|
/** Restricts extension policy surface values accepted by command, SDK, and storage contracts. */
|
|
29
|
-
export type ExtensionPolicySurface
|
|
26
|
+
export type ExtensionPolicySurface=(typeof EXTENSION_POLICY_SURFACES)[number];
|
|
30
27
|
/** Restricts extension trust mode values accepted by command, SDK, and storage contracts. */
|
|
31
|
-
export type ExtensionTrustMode
|
|
28
|
+
export type ExtensionTrustMode=(typeof EXTENSION_TRUST_MODES)[number];
|
|
32
29
|
/** Restricts extension sandbox profile values accepted by command, SDK, and storage contracts. */
|
|
33
|
-
export type ExtensionSandboxProfile
|
|
30
|
+
export type ExtensionSandboxProfile=(typeof EXTENSION_SANDBOX_PROFILES)[number];
|
|
34
31
|
/**
|
|
35
32
|
* Convert canonical CLI flag contracts into extension command definitions.
|
|
36
33
|
*
|
|
@@ -47,4 +44,4 @@ export declare const LIST_FILTER_EXTENSION_FLAG_DEFINITIONS:FlagDefinition[];
|
|
|
47
44
|
/** Extension-ready form of the canonical search flag baseline. */
|
|
48
45
|
export declare const SEARCH_EXTENSION_FLAG_DEFINITIONS:FlagDefinition[];
|
|
49
46
|
/** Versioned capability contract metadata emitted by runtime diagnostics. */
|
|
50
|
-
export
|
|
47
|
+
export{EXTENSION_CAPABILITY_CONTRACT,EXTENSION_CAPABILITY_CONTRACT_VERSION,EXTENSION_CAPABILITY_LEGACY_ALIASES,};
|
package/dist/sdk/extension.d.ts
CHANGED
|
@@ -3,27 +3,15 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Implements the pm extension command surface and its agent-facing runtime behavior.
|
|
5
5
|
*/
|
|
6
|
-
import fs from "node:fs/promises";
|
|
7
|
-
import { activateExtensions,loadExtensions } from "../core/extensions/index.js";
|
|
8
|
-
import type { GlobalOptions } from "../core/shared/command-types.js";
|
|
9
|
-
import type { PmSettings } from "../types/index.js";
|
|
10
|
-
import { parseExtensionManifest,validateExtensionDirectory } from "./extension/shared.js";
|
|
11
|
-
import { readManagedExtensionState,writeManagedExtensionState,resolveManagedExtensionStatePath,type ManagedExtensionSource,type ManagedExtensionRecord,type ManagedExtensionState } from "./extension/managed-state.js";
|
|
12
|
-
import { parseExtensionInstallSource } from "./extension/install-sources.js";
|
|
13
|
-
import { copyExtensionDirectoryForInstall,resolveCanonicalExtensionInstallDestination } from "./extension/install-runtime.js";
|
|
14
|
-
import { collectGlobalOutputOverrideDoctorWarnings } from "./extension/output-ownership.js";
|
|
15
|
-
import { type ExtensionInstallPlan,type ExtensionCopyPlanOptions } from "./extension/install-plan.js";
|
|
16
|
-
export { parseExtensionManifest,validateExtensionDirectory,readManagedExtensionState,writeManagedExtensionState,resolveManagedExtensionStatePath,parseExtensionInstallSource,copyExtensionDirectoryForInstall,resolveCanonicalExtensionInstallDestination,};
|
|
17
|
-
export type { ManagedExtensionSource,ManagedExtensionRecord,ManagedExtensionState,};
|
|
18
|
-
export type { ManagedExtensionStateReadResult } from "./extension/managed-state.js";
|
|
6
|
+
import fs from "node:fs/promises";import{activateExtensions,loadExtensions}from "../core/extensions/index.js";import type{GlobalOptions}from "../core/shared/command-types.js";import type{PmSettings}from "../types/index.js";import{parseExtensionManifest,validateExtensionDirectory}from "./extension/shared.js";import{readManagedExtensionState,writeManagedExtensionState,resolveManagedExtensionStatePath,type ManagedExtensionSource,type ManagedExtensionRecord,type ManagedExtensionState}from "./extension/managed-state.js";import{parseExtensionInstallSource}from "./extension/install-sources.js";import{copyExtensionDirectoryForInstall,resolveCanonicalExtensionInstallDestination}from "./extension/install-runtime.js";import{collectGlobalOutputOverrideDoctorWarnings}from "./extension/output-ownership.js";import{type ExtensionInstallPlan,type ExtensionCopyPlanOptions}from "./extension/install-plan.js";export{parseExtensionManifest,validateExtensionDirectory,readManagedExtensionState,writeManagedExtensionState,resolveManagedExtensionStatePath,parseExtensionInstallSource,copyExtensionDirectoryForInstall,resolveCanonicalExtensionInstallDestination,};export type{ManagedExtensionSource,ManagedExtensionRecord,ManagedExtensionState,};export type{ManagedExtensionStateReadResult}from "./extension/managed-state.js";
|
|
19
7
|
/** Restricts extension command action values accepted by command, SDK, and storage contracts. */
|
|
20
|
-
export type ExtensionCommandAction
|
|
8
|
+
export type ExtensionCommandAction="install"|"uninstall"|"explore"|"manage"|"describe"|"reload"|"doctor"|"catalog"|"adopt"|"adopt-all"|"activate"|"deactivate"|"migrate"|"init";
|
|
21
9
|
/** Restricts extension scope values accepted by command, SDK, and storage contracts. */
|
|
22
|
-
export type ExtensionScope
|
|
10
|
+
export type ExtensionScope="project"|"global";
|
|
23
11
|
/** Restricts extension activation status values accepted by command, SDK, and storage contracts. */
|
|
24
|
-
export type ExtensionActivationStatus
|
|
12
|
+
export type ExtensionActivationStatus="ok"|"failed"|"not_loaded"|"unknown";
|
|
25
13
|
/** Documents the extension command options payload exchanged by command, SDK, and package integrations. */
|
|
26
|
-
export interface ExtensionCommandOptions
|
|
14
|
+
export interface ExtensionCommandOptions{
|
|
27
15
|
/** Value that configures or reports install for this contract. */
|
|
28
16
|
install?:boolean;
|
|
29
17
|
/** Value that configures or reports uninstall for this contract. */
|
|
@@ -97,14 +85,13 @@ capability?:string;
|
|
|
97
85
|
/** Value that configures or reports declarative for this contract. */
|
|
98
86
|
declarative?:boolean;
|
|
99
87
|
/** Value that configures or reports vocabulary for this contract. */
|
|
100
|
-
vocabulary?:"extension"
|
|
88
|
+
vocabulary?:"extension"|"package";
|
|
101
89
|
/** Plan migrations or resolve install sources and estimate copying without destination writes or activation. */
|
|
102
90
|
dryRun?:boolean;
|
|
103
91
|
/** SDK limits and cancellation for install copy-cost enumeration. */
|
|
104
|
-
copyPlan?:ExtensionCopyPlanOptions;
|
|
105
|
-
}
|
|
92
|
+
copyPlan?:ExtensionCopyPlanOptions;}
|
|
106
93
|
/** Documents the managed extension summary payload exchanged by command, SDK, and package integrations. */
|
|
107
|
-
export interface ManagedExtensionSummary
|
|
94
|
+
export interface ManagedExtensionSummary{
|
|
108
95
|
/** Value that configures or reports name for this contract. */
|
|
109
96
|
name:string;
|
|
110
97
|
/** Value that configures or reports directory for this contract. */
|
|
@@ -120,7 +107,7 @@ active:boolean;
|
|
|
120
107
|
/** Whether enabled applies to this operation. */
|
|
121
108
|
enabled:boolean;
|
|
122
109
|
/** Value that configures or reports runtime active for this contract. */
|
|
123
|
-
runtime_active:boolean
|
|
110
|
+
runtime_active:boolean|null;
|
|
124
111
|
/** Activation outcome reported for this extension. */
|
|
125
112
|
activation_status:ExtensionActivationStatus;
|
|
126
113
|
/** Value that configures or reports command paths for this contract. */
|
|
@@ -134,7 +121,7 @@ managed:boolean;
|
|
|
134
121
|
/** Value that configures or reports source for this contract. */
|
|
135
122
|
source?:ManagedExtensionSource;
|
|
136
123
|
/** Value that configures or reports update available for this contract. */
|
|
137
|
-
update_available?:boolean
|
|
124
|
+
update_available?:boolean|null;
|
|
138
125
|
/** ISO 8601 timestamp recording when last update check occurred. */
|
|
139
126
|
last_update_check_at?:string;
|
|
140
127
|
/** Value that configures or reports last update remote commit for this contract. */
|
|
@@ -146,10 +133,9 @@ update_error?:string;
|
|
|
146
133
|
/** Outcome of the registry update check for this extension. */
|
|
147
134
|
update_check_status:ExtensionUpdateCheckStatus;
|
|
148
135
|
/** Value that configures or reports update check reason for this contract. */
|
|
149
|
-
update_check_reason:string;
|
|
150
|
-
}
|
|
136
|
+
update_check_reason:string;}
|
|
151
137
|
/** Documents the extension command result payload exchanged by command, SDK, and package integrations. */
|
|
152
|
-
export interface ExtensionCommandResult
|
|
138
|
+
export interface ExtensionCommandResult{
|
|
153
139
|
/** Whether the operation completed without a blocking failure. */
|
|
154
140
|
ok:boolean;
|
|
155
141
|
/** Value that configures or reports action for this contract. */
|
|
@@ -157,35 +143,19 @@ action:ExtensionCommandAction;
|
|
|
157
143
|
/** Value that configures or reports scope for this contract. */
|
|
158
144
|
scope:ExtensionScope;
|
|
159
145
|
/** Value that configures or reports roots for this contract. */
|
|
160
|
-
roots:{
|
|
161
|
-
project:string;
|
|
162
|
-
global:string;
|
|
163
|
-
selected:string;
|
|
164
|
-
settings_root:string;
|
|
165
|
-
};
|
|
146
|
+
roots:{project:string;global:string;selected:string;settings_root:string;};
|
|
166
147
|
/** Value that configures or reports warnings for this contract. */
|
|
167
148
|
warnings:string[];
|
|
168
149
|
/** Value that configures or reports details for this contract. */
|
|
169
|
-
details:Record<string,unknown
|
|
170
|
-
install_plan?:ExtensionInstallPlan;
|
|
150
|
+
details:Record<string,unknown>&{install_plan?:ExtensionInstallPlan;
|
|
171
151
|
/** Whether a rejected install restored the installation it replaced. */
|
|
172
152
|
previous_state_preserved?:boolean;
|
|
173
153
|
/** Compensation outcome; failed restoration retains an executable recovery source. */
|
|
174
|
-
rollback?:{
|
|
175
|
-
status:"restored";
|
|
176
|
-
} | {
|
|
177
|
-
status:"failed";
|
|
178
|
-
error:string;
|
|
179
|
-
backup_directory:string;
|
|
180
|
-
recovery_command:string;
|
|
181
|
-
recovery_args:string[];
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
}
|
|
154
|
+
rollback?:{status:"restored";}|{status:"failed";error:string;backup_directory:string;recovery_command:string;recovery_args:string[];};};}
|
|
185
155
|
/** Documents the extension triage summary payload exchanged by command, SDK, and package integrations. */
|
|
186
|
-
export interface ExtensionTriageSummary
|
|
156
|
+
export interface ExtensionTriageSummary{
|
|
187
157
|
/** Lifecycle state reported for status. */
|
|
188
|
-
status:"ok"
|
|
158
|
+
status:"ok"|"warn";
|
|
189
159
|
/** Number of warning entries represented by this result. */
|
|
190
160
|
warning_count:number;
|
|
191
161
|
/** Value that configures or reports warning codes for this contract. */
|
|
@@ -209,7 +179,7 @@ active_total:number;
|
|
|
209
179
|
/** Value that configures or reports update available total for this contract. */
|
|
210
180
|
update_available_total:number;
|
|
211
181
|
/** Value that configures or reports update health coverage for this contract. */
|
|
212
|
-
update_health_coverage:"full"
|
|
182
|
+
update_health_coverage:"full"|"partial";
|
|
213
183
|
/** Value that configures or reports update health partial for this contract. */
|
|
214
184
|
update_health_partial:boolean;
|
|
215
185
|
/** Number of unmanaged loaded extension entries represented by this result. */
|
|
@@ -233,12 +203,11 @@ top_warnings:string[];
|
|
|
233
203
|
/** Value that configures or reports remediation for this contract. */
|
|
234
204
|
remediation:string[];
|
|
235
205
|
/** Value that configures or reports collision plan for this contract. */
|
|
236
|
-
collision_plan?:ExtensionCollisionPlan;
|
|
237
|
-
}
|
|
206
|
+
collision_plan?:ExtensionCollisionPlan;}
|
|
238
207
|
/** Documents the extension collision plan payload exchanged by command, SDK, and package integrations. */
|
|
239
|
-
export interface ExtensionCollisionPlan
|
|
208
|
+
export interface ExtensionCollisionPlan{
|
|
240
209
|
/** Lifecycle state reported for status. */
|
|
241
|
-
status:"ok"
|
|
210
|
+
status:"ok"|"conflicts_detected";
|
|
242
211
|
/** Number of collision entries represented by this result. */
|
|
243
212
|
collision_count:number;
|
|
244
213
|
/** Number of extension entries represented by this result. */
|
|
@@ -246,106 +215,17 @@ extension_count:number;
|
|
|
246
215
|
/** Value that configures or reports next best command for this contract. */
|
|
247
216
|
next_best_command:string;
|
|
248
217
|
/** Value that configures or reports collisions for this contract. */
|
|
249
|
-
collisions:Array<{
|
|
250
|
-
code:string;
|
|
251
|
-
surface:string;
|
|
252
|
-
winner:{
|
|
253
|
-
layer:ExtensionScope;
|
|
254
|
-
name:string;
|
|
255
|
-
};
|
|
256
|
-
displaced:{
|
|
257
|
-
layer:ExtensionScope;
|
|
258
|
-
name:string;
|
|
259
|
-
};
|
|
260
|
-
}>;
|
|
218
|
+
collisions:Array<{code:string;surface:string;winner:{layer:ExtensionScope;name:string;};displaced:{layer:ExtensionScope;name:string;};}>;
|
|
261
219
|
/** Value that configures or reports remediation candidates for this contract. */
|
|
262
|
-
remediation_candidates:Array<{
|
|
263
|
-
action:"deactivate";
|
|
264
|
-
extension:string;
|
|
265
|
-
command:string;
|
|
266
|
-
affected_collisions:number;
|
|
267
|
-
feature_loss:{
|
|
268
|
-
command_paths:string[];
|
|
269
|
-
action_paths:string[];
|
|
270
|
-
};
|
|
271
|
-
}>;
|
|
272
|
-
}
|
|
220
|
+
remediation_candidates:Array<{action:"deactivate";extension:string;command:string;affected_collisions:number;feature_loss:{command_paths:string[];action_paths:string[];};}>;}
|
|
273
221
|
/** Restricts extension update check status values accepted by command, SDK, and storage contracts. */
|
|
274
|
-
export type ExtensionUpdateCheckStatus
|
|
275
|
-
interface ExtensionUpdateCheckResolution {
|
|
276
|
-
status:ExtensionUpdateCheckStatus;
|
|
277
|
-
reason:string;
|
|
278
|
-
}
|
|
222
|
+
export type ExtensionUpdateCheckStatus="checked"|"skipped_unmanaged"|"skipped_non_github"|"failed"|"not_checked";interface ExtensionUpdateCheckResolution{status:ExtensionUpdateCheckStatus;reason:string;}
|
|
279
223
|
/** Restricts extension doctor detail mode values accepted by command, SDK, and storage contracts. */
|
|
280
|
-
export type ExtensionDoctorDetailMode
|
|
281
|
-
interface ExtensionPolicyOverrideDetails
|
|
282
|
-
name:string;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
require_provenance?:boolean;
|
|
286
|
-
sandbox_profile?:"none" | "restricted" | "strict";
|
|
287
|
-
allowed_capabilities?:string[];
|
|
288
|
-
blocked_capabilities?:string[];
|
|
289
|
-
allowed_surfaces?:string[];
|
|
290
|
-
blocked_surfaces?:string[];
|
|
291
|
-
allowed_commands?:string[];
|
|
292
|
-
blocked_commands?:string[];
|
|
293
|
-
allowed_actions?:string[];
|
|
294
|
-
blocked_actions?:string[];
|
|
295
|
-
allowed_services?:string[];
|
|
296
|
-
blocked_services?:string[];
|
|
297
|
-
}
|
|
298
|
-
interface ExtensionPolicyDetails {
|
|
299
|
-
mode:"off" | "warn" | "enforce";
|
|
300
|
-
trust_mode:"off" | "warn" | "enforce";
|
|
301
|
-
require_provenance:boolean;
|
|
302
|
-
trusted_extensions:string[];
|
|
303
|
-
default_sandbox_profile:"none" | "restricted" | "strict";
|
|
304
|
-
allowed_extensions:string[];
|
|
305
|
-
blocked_extensions:string[];
|
|
306
|
-
allowed_capabilities:string[];
|
|
307
|
-
blocked_capabilities:string[];
|
|
308
|
-
allowed_surfaces:string[];
|
|
309
|
-
blocked_surfaces:string[];
|
|
310
|
-
allowed_commands:string[];
|
|
311
|
-
blocked_commands:string[];
|
|
312
|
-
allowed_actions:string[];
|
|
313
|
-
blocked_actions:string[];
|
|
314
|
-
allowed_services:string[];
|
|
315
|
-
blocked_services:string[];
|
|
316
|
-
extension_overrides:ExtensionPolicyOverrideDetails[];
|
|
317
|
-
}
|
|
318
|
-
type ActivationFailureEntry = Awaited<ReturnType<typeof activateExtensions>>["failed"][number];
|
|
319
|
-
interface ActivationFailureDiagnostic {
|
|
320
|
-
layer:string;
|
|
321
|
-
name:string;
|
|
322
|
-
entry_path:string;
|
|
323
|
-
error:string;
|
|
324
|
-
missing_capability?:string;
|
|
325
|
-
hint?:string;
|
|
326
|
-
trace?:{
|
|
327
|
-
method:string;
|
|
328
|
-
registration_index:number;
|
|
329
|
-
expected_schema:string;
|
|
330
|
-
command?:string;
|
|
331
|
-
capability?:string;
|
|
332
|
-
missing_capability?:string;
|
|
333
|
-
hint?:string;
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
interface AdoptedUnmanagedExtension {
|
|
337
|
-
name:string;
|
|
338
|
-
directory:string;
|
|
339
|
-
version:string;
|
|
340
|
-
entry:string;
|
|
341
|
-
source:ManagedExtensionSource;
|
|
342
|
-
}
|
|
343
|
-
interface AdoptUnmanagedExtensionsResult {
|
|
344
|
-
state:ManagedExtensionState;
|
|
345
|
-
adopted_entries:AdoptedUnmanagedExtension[];
|
|
346
|
-
unmanaged_candidates:ManagedExtensionSummary[];
|
|
347
|
-
already_managed_count:number;
|
|
348
|
-
}
|
|
224
|
+
export type ExtensionDoctorDetailMode="summary"|"deep";interface ExtensionPolicyOverrideDetails{name:string;disabled?:boolean;require_trusted?:boolean;require_provenance?:boolean;sandbox_profile?:"none"|"restricted"|"strict";allowed_capabilities?:string[];blocked_capabilities?:string[];allowed_surfaces?:string[];blocked_surfaces?:string[];allowed_commands?:string[];blocked_commands?:string[];allowed_actions?:string[];blocked_actions?:string[];allowed_services?:string[];blocked_services?:string[];}
|
|
225
|
+
interface ExtensionPolicyDetails{mode:"off"|"warn"|"enforce";trust_mode:"off"|"warn"|"enforce";require_provenance:boolean;trusted_extensions:string[];default_sandbox_profile:"none"|"restricted"|"strict";allowed_extensions:string[];blocked_extensions:string[];allowed_capabilities:string[];blocked_capabilities:string[];allowed_surfaces:string[];blocked_surfaces:string[];allowed_commands:string[];blocked_commands:string[];allowed_actions:string[];blocked_actions:string[];allowed_services:string[];blocked_services:string[];extension_overrides:ExtensionPolicyOverrideDetails[];}
|
|
226
|
+
type ActivationFailureEntry=Awaited<ReturnType<typeof activateExtensions>>["failed"][number];interface ActivationFailureDiagnostic{layer:string;name:string;entry_path:string;error:string;missing_capability?:string;hint?:string;trace?:{method:string;registration_index:number;expected_schema:string;command?:string;capability?:string;missing_capability?:string;hint?:string;};}
|
|
227
|
+
interface AdoptedUnmanagedExtension{name:string;directory:string;version:string;entry:string;source:ManagedExtensionSource;}
|
|
228
|
+
interface AdoptUnmanagedExtensionsResult{state:ManagedExtensionState;adopted_entries:AdoptedUnmanagedExtension[];unmanaged_candidates:ManagedExtensionSummary[];already_managed_count:number;}
|
|
349
229
|
/**
|
|
350
230
|
* Entry point for the `pm extension` / `pm package` command surface. Resolves the
|
|
351
231
|
* requested lifecycle action and scope, rejects out-of-scope option usage,
|
|
@@ -354,47 +234,6 @@ already_managed_count:number;
|
|
|
354
234
|
* returns the canonical {@link ExtensionCommandResult}. `--doctor` results are
|
|
355
235
|
* flagged for native (non-JSON-wrapped) output.
|
|
356
236
|
*/
|
|
357
|
-
export declare const runExtension:(target:string
|
|
237
|
+
export declare const runExtension:(target:string|undefined,options:ExtensionCommandOptions,global:GlobalOptions)=> Promise<ExtensionCommandResult>;
|
|
358
238
|
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
359
|
-
export declare const _testOnly:{
|
|
360
|
-
adoptUnmanagedExtensions:(extensionsRoot:string,scope:ExtensionScope,installedExtensions:ManagedExtensionSummary[],state:ManagedExtensionState) => Promise<AdoptUnmanagedExtensionsResult>;
|
|
361
|
-
buildAdoptedExtensionSource:(githubOption:string | undefined,extensionTarget:string,extensionDirectory:string,ref:string | undefined) => ManagedExtensionSource;
|
|
362
|
-
buildExtensionPolicyDetails:(policy:PmSettings["extensions"]["policy"] | null | undefined) => ExtensionPolicyDetails;
|
|
363
|
-
buildInstallCommandDiscovery:(extensionName:string,source:ManagedExtensionSource,commandSummary:{
|
|
364
|
-
command_paths:string[];
|
|
365
|
-
action_paths:string[];
|
|
366
|
-
},activationFailure?:ActivationFailureDiagnostic) => Record<string,unknown>;
|
|
367
|
-
checkGithubUpdate:(source:ManagedExtensionSource,gitCommandRunner?:typeof import("./extension/install-sources.js").runGitCommand) => Promise<import("./extension/update-check.js").GithubUpdateStatus>;
|
|
368
|
-
clearExtensionState:(settings:PmSettings,name:string) => boolean;
|
|
369
|
-
collectActivationFailureDiagnostics:(failures:ActivationFailureEntry[]) => ActivationFailureDiagnostic[];
|
|
370
|
-
findActivationFailureByName:(extensionName:string,failures:ActivationFailureDiagnostic[],layer?:ExtensionScope) => ActivationFailureDiagnostic | undefined;
|
|
371
|
-
resolveInstallRuntimeActivationStatus:(extensionName:string,scope:ExtensionScope,runtimeInstalled:ManagedExtensionSummary[],installActivationFailure:ActivationFailureDiagnostic | undefined) => ExtensionActivationStatus;
|
|
372
|
-
collectGlobalOutputOverrideDoctorWarnings:typeof collectGlobalOutputOverrideDoctorWarnings;
|
|
373
|
-
collectMcpCustomFieldCollisionDoctorWarnings:(activationResult:Awaited<ReturnType<typeof activateExtensions>>) => string[];
|
|
374
|
-
collectSchemaNarrowActivationDoctorWarnings:(loadResult:Awaited<ReturnType<typeof loadExtensions>>,activationResult:Awaited<ReturnType<typeof activateExtensions>>) => string[];
|
|
375
|
-
copyExtensionDirectoryWithoutSelfNesting:(sourceDirectory:string,destinationDirectory:string,copyDirectory:typeof fs.cp,temporaryDirectory?:string) => Promise<void>;
|
|
376
|
-
isErrnoCode:(error:unknown,code:string) => boolean;
|
|
377
|
-
isRetriableExtensionInstallCopyError:(error:unknown) => boolean;
|
|
378
|
-
listInstalledExtensions:(extensionsRoot:string,scope:ExtensionScope,settings:PmSettings,state:ManagedExtensionState) => Promise<{
|
|
379
|
-
extensions:ManagedExtensionSummary[];
|
|
380
|
-
warnings:string[];
|
|
381
|
-
}>;
|
|
382
|
-
mapWithFixedConcurrency:<Input,Output>(inputs:Input[],concurrency:number,mapper:(input:Input) => Promise<Output>) => Promise<Output[]>;
|
|
383
|
-
projectExtensionUpdateCheck:(entry:ManagedExtensionSummary | undefined) => {
|
|
384
|
-
update_check_status:string | null;
|
|
385
|
-
update_check_reason:string | null;
|
|
386
|
-
};
|
|
387
|
-
readOptionalMetadataFile:(filePath:string) => Promise<Buffer | null>;
|
|
388
|
-
requireTarget:(target:string | undefined,action:ExtensionCommandAction,options?:ExtensionCommandOptions) => string;
|
|
389
|
-
resolveAction:(target:string | undefined,options:ExtensionCommandOptions) => ExtensionCommandAction;
|
|
390
|
-
resolveCommandDiscoveryPackageName:(extensionName:string,source:ManagedExtensionSource) => string;
|
|
391
|
-
resolveGithubOption:(options:ExtensionCommandOptions) => string | undefined;
|
|
392
|
-
resolveInstalledExtensionCandidate:(installed:ManagedExtensionSummary[],extensionTarget:string) => Promise<ManagedExtensionSummary | undefined>;
|
|
393
|
-
resolveManagedInstallTimestamps:(existing:ManagedExtensionRecord | undefined,manifestVersion:string,source:ManagedExtensionSource,now:string) => {
|
|
394
|
-
installed_at:string;
|
|
395
|
-
updated_at:string;
|
|
396
|
-
};
|
|
397
|
-
resolveScope:(options:ExtensionCommandOptions) => ExtensionScope;
|
|
398
|
-
resolveUpdateCheckResolution:(managedEntry:ManagedExtensionRecord | undefined) => ExtensionUpdateCheckResolution;
|
|
399
|
-
withExtensionInstallLock:<T>(settingsRoot:string,destinationDirectoryName:string,run:() => Promise<T>,options?:import("./extension/install-runtime.js").ExtensionInstallLockOptions) => Promise<T>;
|
|
400
|
-
};
|
|
239
|
+
export declare const _testOnly:{adoptUnmanagedExtensions:(extensionsRoot:string,scope:ExtensionScope,installedExtensions:ManagedExtensionSummary[],state:ManagedExtensionState)=> Promise<AdoptUnmanagedExtensionsResult>;buildAdoptedExtensionSource:(githubOption:string|undefined,extensionTarget:string,extensionDirectory:string,ref:string|undefined)=> ManagedExtensionSource;buildExtensionPolicyDetails:(policy:PmSettings["extensions"]["policy"]|null|undefined)=> ExtensionPolicyDetails;buildInstallCommandDiscovery:(extensionName:string,source:ManagedExtensionSource,commandSummary:{command_paths:string[];action_paths:string[];},activationFailure?:ActivationFailureDiagnostic)=> Record<string,unknown>;checkGithubUpdate:(source:ManagedExtensionSource,gitCommandRunner?:typeof import("./extension/install-sources.js").runGitCommand)=> Promise<import("./extension/update-check.js").GithubUpdateStatus>;clearExtensionState:(settings:PmSettings,name:string)=> boolean;collectActivationFailureDiagnostics:(failures:ActivationFailureEntry[])=> ActivationFailureDiagnostic[];findActivationFailureByName:(extensionName:string,failures:ActivationFailureDiagnostic[],layer?:ExtensionScope)=> ActivationFailureDiagnostic|undefined;resolveInstallRuntimeActivationStatus:(extensionName:string,scope:ExtensionScope,runtimeInstalled:ManagedExtensionSummary[],installActivationFailure:ActivationFailureDiagnostic|undefined)=> ExtensionActivationStatus;collectGlobalOutputOverrideDoctorWarnings:typeof collectGlobalOutputOverrideDoctorWarnings;collectMcpCustomFieldCollisionDoctorWarnings:(activationResult:Awaited<ReturnType<typeof activateExtensions>>)=> string[];collectSchemaNarrowActivationDoctorWarnings:(loadResult:Awaited<ReturnType<typeof loadExtensions>>,activationResult:Awaited<ReturnType<typeof activateExtensions>>)=> string[];copyExtensionDirectoryWithoutSelfNesting:(sourceDirectory:string,destinationDirectory:string,copyDirectory:typeof fs.cp,temporaryDirectory?:string)=> Promise<void>;isErrnoCode:(error:unknown,code:string)=> boolean;isRetriableExtensionInstallCopyError:(error:unknown)=> boolean;listInstalledExtensions:(extensionsRoot:string,scope:ExtensionScope,settings:PmSettings,state:ManagedExtensionState)=> Promise<{extensions:ManagedExtensionSummary[];warnings:string[];}>;mapWithFixedConcurrency:<Input,Output>(inputs:Input[],concurrency:number,mapper:(input:Input)=> Promise<Output>)=> Promise<Output[]>;projectExtensionUpdateCheck:(entry:ManagedExtensionSummary|undefined)=>{update_check_status:string|null;update_check_reason:string|null;};readOptionalMetadataFile:(filePath:string)=> Promise<Buffer|null>;requireTarget:(target:string|undefined,action:ExtensionCommandAction,options?:ExtensionCommandOptions)=> string;resolveAction:(target:string|undefined,options:ExtensionCommandOptions)=> ExtensionCommandAction;resolveCommandDiscoveryPackageName:(extensionName:string,source:ManagedExtensionSource)=> string;resolveGithubOption:(options:ExtensionCommandOptions)=> string|undefined;resolveInstalledExtensionCandidate:(installed:ManagedExtensionSummary[],extensionTarget:string)=> Promise<ManagedExtensionSummary|undefined>;resolveManagedInstallTimestamps:(existing:ManagedExtensionRecord|undefined,manifestVersion:string,source:ManagedExtensionSource,now:string)=>{installed_at:string;updated_at:string;};resolveScope:(options:ExtensionCommandOptions)=> ExtensionScope;resolveUpdateCheckResolution:(managedEntry:ManagedExtensionRecord|undefined)=> ExtensionUpdateCheckResolution;withExtensionInstallLock:<T>(settingsRoot:string,destinationDirectoryName:string,run:()=> Promise<T>,options?:import("./extension/install-runtime.js").ExtensionInstallLockOptions)=> Promise<T>;};
|
package/dist/sdk/files.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { ItemDocument,LinkedFile,LinkScope } from "../types/index.js";
|
|
3
|
-
import { type LinkedPathValidation } from "./linked-artifacts.js";
|
|
4
|
-
import { type SourceLineRange,type SourceTraceabilityExplanation,type SourceTraceabilityReceipt } from "./traceability/source-traceability.js";
|
|
1
|
+
import type{GlobalOptions}from "../core/shared/command-types.js";import type{ItemDocument,LinkedFile,LinkScope}from "../types/index.js";import{type LinkedPathValidation}from "./linked-artifacts.js";import{type SourceLineRange,type SourceTraceabilityExplanation,type SourceTraceabilityReceipt}from "./traceability/source-traceability.js";
|
|
5
2
|
/** Documents the files command options payload exchanged by command, SDK, and package integrations. */
|
|
6
|
-
export interface FilesCommandOptions
|
|
3
|
+
export interface FilesCommandOptions{
|
|
7
4
|
/** Value that configures or reports add for this contract. */
|
|
8
5
|
add?:string[];
|
|
9
6
|
/** Value that configures or reports add glob for this contract. */
|
|
@@ -25,10 +22,9 @@ author?:string;
|
|
|
25
22
|
/** Human-readable explanation suitable for logs and agent-facing output. */
|
|
26
23
|
message?:string;
|
|
27
24
|
/** Value that configures or reports force for this contract. */
|
|
28
|
-
force?:boolean;
|
|
29
|
-
}
|
|
25
|
+
force?:boolean;}
|
|
30
26
|
/** Documents the files discover options payload exchanged by command, SDK, and package integrations. */
|
|
31
|
-
export interface FilesDiscoverOptions
|
|
27
|
+
export interface FilesDiscoverOptions{
|
|
32
28
|
/** Value that configures or reports apply for this contract. */
|
|
33
29
|
apply?:boolean;
|
|
34
30
|
/** Value that configures or reports append stable for this contract. */
|
|
@@ -40,25 +36,23 @@ author?:string;
|
|
|
40
36
|
/** Human-readable explanation suitable for logs and agent-facing output. */
|
|
41
37
|
message?:string;
|
|
42
38
|
/** Value that configures or reports force for this contract. */
|
|
43
|
-
force?:boolean;
|
|
44
|
-
}
|
|
39
|
+
force?:boolean;}
|
|
45
40
|
/** Documents the files discovery candidate payload exchanged by command, SDK, and package integrations. */
|
|
46
|
-
export interface FilesDiscoveryCandidate
|
|
41
|
+
export interface FilesDiscoveryCandidate{
|
|
47
42
|
/** Filesystem path used for path resolution. */
|
|
48
43
|
path:string;
|
|
49
44
|
/** Value that configures or reports scope for this contract. */
|
|
50
45
|
scope:LinkScope;
|
|
51
46
|
/** Lifecycle state reported for status. */
|
|
52
|
-
status:"addable"
|
|
47
|
+
status:"addable"|"already_linked";
|
|
53
48
|
/** Number of source entries represented by this result. */
|
|
54
49
|
source_count:number;
|
|
55
50
|
/** Value that configures or reports source fields for this contract. */
|
|
56
51
|
source_fields:string[];
|
|
57
52
|
/** Value that configures or reports original paths for this contract. */
|
|
58
|
-
original_paths:string[];
|
|
59
|
-
}
|
|
53
|
+
original_paths:string[];}
|
|
60
54
|
/** Documents the files result payload exchanged by command, SDK, and package integrations. */
|
|
61
|
-
export interface FilesResult
|
|
55
|
+
export interface FilesResult{
|
|
62
56
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
63
57
|
id:string;
|
|
64
58
|
/** Value that configures or reports files for this contract. */
|
|
@@ -70,10 +64,9 @@ count:number;
|
|
|
70
64
|
/** Value that configures or reports migrations applied for this contract. */
|
|
71
65
|
migrations_applied?:number;
|
|
72
66
|
/** Value that configures or reports validation for this contract. */
|
|
73
|
-
validation?:LinkedPathValidation;
|
|
74
|
-
}
|
|
67
|
+
validation?:LinkedPathValidation;}
|
|
75
68
|
/** Documents the files discover result payload exchanged by command, SDK, and package integrations. */
|
|
76
|
-
export interface FilesDiscoverResult
|
|
69
|
+
export interface FilesDiscoverResult{
|
|
77
70
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
78
71
|
id:string;
|
|
79
72
|
/** Value that configures or reports files for this contract. */
|
|
@@ -97,10 +90,9 @@ candidates:FilesDiscoveryCandidate[];
|
|
|
97
90
|
/** Value that configures or reports added for this contract. */
|
|
98
91
|
added:LinkedFile[];
|
|
99
92
|
/** Value that configures or reports skipped existing for this contract. */
|
|
100
|
-
skipped_existing:FilesDiscoveryCandidate[];
|
|
101
|
-
}
|
|
93
|
+
skipped_existing:FilesDiscoveryCandidate[];}
|
|
102
94
|
/** Documents reverse linked-file lookup options shared by CLI, SDK, and MCP. */
|
|
103
|
-
export interface FilesLookupOptions
|
|
95
|
+
export interface FilesLookupOptions{
|
|
104
96
|
/** Project-relative or absolute source paths to resolve. */
|
|
105
97
|
paths:string[];
|
|
106
98
|
/** Restrict matches to one linked-file scope. */
|
|
@@ -118,10 +110,9 @@ explain?:boolean;
|
|
|
118
110
|
/** Optional inclusive line range; implies explain and requires one path. */
|
|
119
111
|
lineRange?:SourceLineRange;
|
|
120
112
|
/** Maximum relationship depth searched for a governing decision. */
|
|
121
|
-
decisionDepth?:number;
|
|
122
|
-
}
|
|
113
|
+
decisionDepth?:number;}
|
|
123
114
|
/** Token-efficient item identity returned by reverse linked-file lookup. */
|
|
124
|
-
export interface FilesLookupItem
|
|
115
|
+
export interface FilesLookupItem{
|
|
125
116
|
/** Stable item identifier. */
|
|
126
117
|
id:string;
|
|
127
118
|
/** Human-readable item title. */
|
|
@@ -133,19 +124,17 @@ status:string;
|
|
|
133
124
|
/** Numeric scheduling priority. */
|
|
134
125
|
priority:number;
|
|
135
126
|
/** Last authoritative update timestamp. */
|
|
136
|
-
updated_at:string;
|
|
137
|
-
}
|
|
127
|
+
updated_at:string;}
|
|
138
128
|
/** One item and its exact file links that matched a reverse lookup. */
|
|
139
|
-
export interface FilesLookupMatch
|
|
129
|
+
export interface FilesLookupMatch{
|
|
140
130
|
/** Referencing item identity. */
|
|
141
131
|
item:FilesLookupItem;
|
|
142
132
|
/** Matching linked-file evidence. */
|
|
143
133
|
files:LinkedFile[];
|
|
144
134
|
/** Optional bounded rationale and line-attribution explanation. */
|
|
145
|
-
traceability?:SourceTraceabilityExplanation;
|
|
146
|
-
}
|
|
135
|
+
traceability?:SourceTraceabilityExplanation;}
|
|
147
136
|
/** Reverse linked-file lookup result with bounded output and read provenance. */
|
|
148
|
-
export interface FilesLookupResult
|
|
137
|
+
export interface FilesLookupResult{
|
|
149
138
|
/** Normalized paths used for matching. */
|
|
150
139
|
paths:string[];
|
|
151
140
|
/** Total referencing items before pagination. */
|
|
@@ -155,57 +144,27 @@ count:number;
|
|
|
155
144
|
/** Zero-based page offset. */
|
|
156
145
|
offset:number;
|
|
157
146
|
/** Effective result limit, or null when unbounded. */
|
|
158
|
-
limit:number
|
|
147
|
+
limit:number|null;
|
|
159
148
|
/** Whether more matches remain after this page. */
|
|
160
149
|
has_more:boolean;
|
|
161
150
|
/** Whether the current page is bounded below the total match count. */
|
|
162
151
|
truncated:boolean;
|
|
163
152
|
/** Read source and completeness receipt. */
|
|
164
|
-
completeness:{
|
|
165
|
-
status:"complete" | "partial" | "unchecked";
|
|
166
|
-
source:"index" | "source_scan";
|
|
167
|
-
};
|
|
153
|
+
completeness:{status:"complete"|"partial"|"unchecked";source:"index"|"source_scan";};
|
|
168
154
|
/** Non-fatal authoritative read warnings. */
|
|
169
155
|
warnings:string[];
|
|
170
156
|
/** Ordered reverse-traceability matches. */
|
|
171
157
|
matches:FilesLookupMatch[];
|
|
172
158
|
/** Aggregate receipt for an explained source query. */
|
|
173
|
-
traceability_receipt?:SourceTraceabilityReceipt;
|
|
174
|
-
}
|
|
175
|
-
interface
|
|
176
|
-
|
|
177
|
-
value:string;
|
|
178
|
-
}
|
|
179
|
-
interface RawPathReference {
|
|
180
|
-
field:string;
|
|
181
|
-
value:string;
|
|
182
|
-
}
|
|
183
|
-
declare function normalizeCandidatePathForOutput(value:string):string;
|
|
184
|
-
declare function realpathForContainment(inputPath:string):Promise<string>;
|
|
185
|
-
declare function linkedFileResolvedKey(linkedFile:Pick<LinkedFile,"path" | "scope">,projectRoot:string):string;
|
|
186
|
-
declare function collectTextReferences(value:unknown,fieldPath:string,references:TextReference[]):void;
|
|
187
|
-
declare function collectItemTextReferences(document:ItemDocument):TextReference[];
|
|
188
|
-
declare function cleanupPathToken(value:string):string;
|
|
189
|
-
declare function extractRawPathReferences(references:TextReference[]):RawPathReference[];
|
|
190
|
-
declare function resolveDiscoveredFile(rawPath:string,workspaceRoot:string,invocationRoot?:string):Promise<Pick<LinkedFile,"path" | "scope"> | undefined>;
|
|
191
|
-
declare function discoverReferencedFiles(document:ItemDocument,workspaceRoot:string,invocationRoot?:string):Promise<FilesDiscoveryCandidate[]>;
|
|
159
|
+
traceability_receipt?:SourceTraceabilityReceipt;}
|
|
160
|
+
interface TextReference{field:string;value:string;}
|
|
161
|
+
interface RawPathReference{field:string;value:string;}
|
|
162
|
+
declare function normalizeCandidatePathForOutput(value:string):string;declare function realpathForContainment(inputPath:string):Promise<string>;declare function linkedFileResolvedKey(linkedFile:Pick<LinkedFile,"path"|"scope">,projectRoot:string):string;declare function collectTextReferences(value:unknown,fieldPath:string,references:TextReference[]):void;declare function collectItemTextReferences(document:ItemDocument):TextReference[];declare function cleanupPathToken(value:string):string;declare function extractRawPathReferences(references:TextReference[]):RawPathReference[];declare function resolveDiscoveredFile(rawPath:string,workspaceRoot:string,invocationRoot?:string):Promise<Pick<LinkedFile,"path"|"scope">|undefined>;declare function discoverReferencedFiles(document:ItemDocument,workspaceRoot:string,invocationRoot?:string):Promise<FilesDiscoveryCandidate[]>;
|
|
192
163
|
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
193
|
-
export declare const _testOnly:{
|
|
194
|
-
relativeReferenceScanMaxChars:number;
|
|
195
|
-
normalizeCandidatePathForOutput:typeof normalizeCandidatePathForOutput;
|
|
196
|
-
realpathForContainment:typeof realpathForContainment;
|
|
197
|
-
linkedFileResolvedKey:typeof linkedFileResolvedKey;
|
|
198
|
-
collectTextReferences:typeof collectTextReferences;
|
|
199
|
-
collectItemTextReferences:typeof collectItemTextReferences;
|
|
200
|
-
cleanupPathToken:typeof cleanupPathToken;
|
|
201
|
-
extractRawPathReferences:typeof extractRawPathReferences;
|
|
202
|
-
resolveDiscoveredFile:typeof resolveDiscoveredFile;
|
|
203
|
-
discoverReferencedFiles:typeof discoverReferencedFiles;
|
|
204
|
-
};
|
|
164
|
+
export declare const _testOnly:{relativeReferenceScanMaxChars:number;normalizeCandidatePathForOutput:typeof normalizeCandidatePathForOutput;realpathForContainment:typeof realpathForContainment;linkedFileResolvedKey:typeof linkedFileResolvedKey;collectTextReferences:typeof collectTextReferences;collectItemTextReferences:typeof collectItemTextReferences;cleanupPathToken:typeof cleanupPathToken;extractRawPathReferences:typeof extractRawPathReferences;resolveDiscoveredFile:typeof resolveDiscoveredFile;discoverReferencedFiles:typeof discoverReferencedFiles;};
|
|
205
165
|
/** Implements run files for the public runtime surface of this module. */
|
|
206
166
|
export declare function runFiles(id:string,options:FilesCommandOptions,global:GlobalOptions):Promise<FilesResult>;
|
|
207
167
|
/** Resolve the pm items that reference one or more source paths. */
|
|
208
168
|
export declare function runFilesLookup(options:FilesLookupOptions,global:GlobalOptions):Promise<FilesLookupResult>;
|
|
209
169
|
/** Implements run files discover for the public runtime surface of this module. */
|
|
210
|
-
export declare function runFilesDiscover(id:string,options:FilesDiscoverOptions,global:GlobalOptions):Promise<FilesDiscoverResult>;
|
|
211
|
-
export {};
|
|
170
|
+
export declare function runFilesDiscover(id:string,options:FilesDiscoverOptions,global:GlobalOptions):Promise<FilesDiscoverResult>;export{};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type{CliFlagContract}from "./cli-contracts.js";
|
|
2
2
|
/** Supported channels through which a flag obtains its value. */
|
|
3
|
-
export type CliFlagInputSource
|
|
3
|
+
export type CliFlagInputSource="argv"|"file"|"stdin";
|
|
4
4
|
/** Complete invocation semantics for one accepted CLI flag. */
|
|
5
|
-
export interface CliFlagInvocationContract extends CliFlagContract
|
|
5
|
+
export interface CliFlagInvocationContract extends CliFlagContract{
|
|
6
6
|
/** Human-readable behavior, always present for generated surfaces. */
|
|
7
7
|
description:string;
|
|
8
8
|
/** Whether the option consumes a value token. */
|
|
@@ -10,7 +10,7 @@ takes_value:boolean;
|
|
|
10
10
|
/** Whether omission of the consumed value is invalid. */
|
|
11
11
|
value_required:boolean;
|
|
12
12
|
/** Machine value type after CLI parsing. */
|
|
13
|
-
value_type:"string"
|
|
13
|
+
value_type:"string"|"number"|"boolean";
|
|
14
14
|
/** Whether the option itself is required. */
|
|
15
15
|
required:boolean;
|
|
16
16
|
/** Whether repeated occurrences accumulate. */
|
|
@@ -20,10 +20,9 @@ input_sources:CliFlagInputSource[];
|
|
|
20
20
|
/** Sentinel that redirects the argv value to stdin. */
|
|
21
21
|
stdin_token?:"-";
|
|
22
22
|
/** Prefix that redirects the argv value to a file path. */
|
|
23
|
-
file_token_prefix?:"@";
|
|
24
|
-
}
|
|
23
|
+
file_token_prefix?:"@";}
|
|
25
24
|
/** Executable option arity observed from the registered Commander program. */
|
|
26
|
-
export interface CliFlagArityObservation
|
|
25
|
+
export interface CliFlagArityObservation{
|
|
27
26
|
/** Canonical command path owning the option. */
|
|
28
27
|
command:string;
|
|
29
28
|
/** Long option spelling. */
|
|
@@ -33,21 +32,19 @@ takes_value:boolean;
|
|
|
33
32
|
/** Whether the consumed value is mandatory. */
|
|
34
33
|
value_required:boolean;
|
|
35
34
|
/** Whether repeated values accumulate. */
|
|
36
|
-
repeatable:boolean;
|
|
37
|
-
}
|
|
35
|
+
repeatable:boolean;}
|
|
38
36
|
/** One machine-readable mismatch between declared and executable flag arity. */
|
|
39
|
-
export interface CliFlagInvocationParityFinding
|
|
37
|
+
export interface CliFlagInvocationParityFinding{
|
|
40
38
|
/** Stable finding code. */
|
|
41
|
-
code:"duplicate_observation"
|
|
39
|
+
code:"duplicate_observation"|"missing_observation"|"takes_value_mismatch"|"value_required_mismatch"|"repeatable_mismatch"|"undeclared_observation";
|
|
42
40
|
/** Canonical command path. */
|
|
43
41
|
command:string;
|
|
44
42
|
/** Long option spelling. */
|
|
45
43
|
flag:string;
|
|
46
44
|
/** Human-readable mismatch detail. */
|
|
47
|
-
detail:string;
|
|
48
|
-
}
|
|
45
|
+
detail:string;}
|
|
49
46
|
/** Complete parity receipt for one command's declared and executable flags. */
|
|
50
|
-
export interface CliFlagInvocationParityReport
|
|
47
|
+
export interface CliFlagInvocationParityReport{
|
|
51
48
|
/** Whether the two surfaces agree exactly. */
|
|
52
49
|
ok:boolean;
|
|
53
50
|
/** Number of declared invocation rows. */
|
|
@@ -55,11 +52,10 @@ declared_count:number;
|
|
|
55
52
|
/** Number of executable observations. */
|
|
56
53
|
observed_count:number;
|
|
57
54
|
/** Stable mismatch list. */
|
|
58
|
-
findings:CliFlagInvocationParityFinding[];
|
|
59
|
-
}
|
|
55
|
+
findings:CliFlagInvocationParityFinding[];}
|
|
60
56
|
/** Enrich one vocabulary row with deterministic invocation and input-channel metadata. */
|
|
61
57
|
export declare function enrichCliFlagInvocationContract(command:string,contract:CliFlagContract):CliFlagInvocationContract;
|
|
62
58
|
/** Enrich a complete command flag table without mutating package-owned rows. */
|
|
63
59
|
export declare function enrichCliFlagInvocationContracts(command:string,contracts:readonly CliFlagContract[]):CliFlagInvocationContract[];
|
|
64
60
|
/** Compare generated invocation rows with independently observed executable arity. */
|
|
65
|
-
export declare function verifyCliFlagInvocationParity(command:string,declarations:readonly CliFlagInvocationContract[],observations:readonly CliFlagArityObservation[]):CliFlagInvocationParityReport;
|
|
61
|
+
export declare function verifyCliFlagInvocationParity(command:string,declarations:readonly CliFlagInvocationContract[],observations:readonly CliFlagArityObservation[]):CliFlagInvocationParityReport;
|