@unbrained/pm-cli 2026.11.9 → 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 +16 -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-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-G6Q4VQSI.js → chunk-4AASUCHO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-EZRLW4R6.js → chunk-4FLAKTZW.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-5CAMQHEW.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-3BMIAI4P.js → chunk-7NAAW5EX.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-BSJSGDA3.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-XKY4LUXN.js → chunk-CZETQYKO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ASJZMYKM.js → chunk-D727C4RO.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-6V4PGJBZ.js → chunk-EHDGHFMJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GZVOOHTO.js → chunk-F6FBGLR7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-O2M3TNFY.js → chunk-F7P2NZEG.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-YK5GAWOT.js → chunk-FYD6LSJA.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-L4WWG2H6.js +6 -0
- package/dist/cli-bundle/chunks/{chunk-YV5ALMG2.js → chunk-NNE63MSM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Z3QEEOAM.js → chunk-NZAFLDSH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MSJ7IHMJ.js → chunk-OJ2KEDUX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ELNWRSGZ.js → chunk-T2MNRM3S.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VATZTJE3.js → chunk-TBBWPEF5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GDQ2T2OR.js → chunk-U7LILCUN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-BLUCQ4T4.js → chunk-UFPLZ6LZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JK7O7MFO.js → chunk-UL64P6MR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GCPP37N6.js → chunk-WNEUWDUE.js} +46 -46
- package/dist/cli-bundle/chunks/{chunk-5VRJPPUC.js → chunk-X7NM5HVQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IGT252ES.js → chunk-YSWD2NXB.js} +2 -2
- package/dist/cli-bundle/chunks/{item-revision-Y5CE3EIN.js → item-revision-M7KXLQXF.js} +2 -2
- package/dist/cli-bundle/chunks/item-transaction-4N5P34GO.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-admission-TAQN2AKK.js → mutation-admission-374UR7NI.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-XMQYFUFI.js → register-list-query-GSB7PP5P.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-OBVCFLDK.js → register-mutation-ZBF6ITYK.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-CGNFZ6DR.js → register-operations-PWF6GOHE.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-LFB5ERXH.js → register-setup-QDZ2Y3CI.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-NQHF6JPC.js → stage-67WGPKPH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-HNFY3XLC.js → chunk-2Y4H4LIX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UIKLNSW3.js → chunk-3DWNH72D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-3K2MYE7R.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-CUGJ2DY2.js → chunk-56MIAFEN.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{chunk-Q45LDP7P.js → chunk-67M7E2Z3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-XLSTFUXM.js → chunk-BE2GK2G7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-C3DO4ZGZ.js → chunk-HTMQDNVC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QWUWNFQO.js → chunk-LY3JXL25.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IS5FLEZW.js → chunk-PAGW6A2X.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-4FWMXQN3.js → chunk-QCHCEFTO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-AH5IST3V.js → chunk-QHGGO7SY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-QK7FX4O5.js +44 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RNZUORGI.js → chunk-RFMKS7VD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-MYBKRV5R.js → chunk-U7HWWEJ2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-UIZVD36C.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-J7PWHKZK.js → chunk-WJHDUON5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-LDMBNTOG.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-M6FOLME2.js → item-revision-XC4ZJ7MY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{item-transaction-H6VA5JGB.js → item-transaction-CVGK4RJP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-PRTQWQK6.js → mutation-admission-N27D5H64.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-7T77PSJD.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 +1 -1
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +51 -51
- 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 +1 -1
- 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 +11 -59
- 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 +10 -19
- 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/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/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/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/generated-error-code-catalog-part-1.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 +25 -45
- 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/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.d.ts +13 -55
- 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/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 +59 -103
- 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/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/COMMANDS.md +8 -0
- package/docs/CONFIGURATION.md +17 -0
- package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +28 -9
- package/docs/RELEASING.md +25 -0
- package/docs/SDK.md +17 -2
- package/docs/TESTING.md +11 -0
- package/marketplace.json +1 -1
- package/package.json +1 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/scripts/finalize-build.mjs +41 -4
- package/dist/cli-bundle/chunks/chunk-JYQXIC6C.js +0 -3
- package/dist/cli-bundle/chunks/chunk-LVDFPGD7.js +0 -3
- package/dist/cli-bundle/chunks/chunk-UFIM5ZC5.js +0 -6
- package/dist/cli-bundle/chunks/item-transaction-XBIN4KYM.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-HLQOGAWG.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-IB6TCE7N.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-JU62TKJP.js +0 -82
- package/dist/cli-bundle/focused-chunks/chunk-NUFO3OR6.js +0 -44
|
@@ -13,96 +13,83 @@
|
|
|
13
13
|
* are exactly what the apply step persists, guaranteeing the dry-run preview and
|
|
14
14
|
* the real mutation never diverge.
|
|
15
15
|
*/
|
|
16
|
-
import
|
|
17
|
-
import { type StatusDefsFile } from "../schema/status-defs-file.js";
|
|
18
|
-
import { type FieldsFile } from "../schema/fields-file.js";
|
|
19
|
-
import type { TypeWorkflowDefinition } from "../../types.js";
|
|
20
|
-
import type { ProfileTemplateOptions,ProjectProfileDefinition } from "./profile-presets.js";
|
|
16
|
+
import{type ItemTypesFile}from "../schema/item-types-file.js";import{type StatusDefsFile}from "../schema/status-defs-file.js";import{type FieldsFile}from "../schema/fields-file.js";import type{TypeWorkflowDefinition}from "../../types.js";import type{ProfileTemplateOptions,ProjectProfileDefinition}from "./profile-presets.js";
|
|
21
17
|
/** Per-entry change classification used across every profile dimension. */
|
|
22
|
-
export type ProfileChangeStatus
|
|
18
|
+
export type ProfileChangeStatus="add"|"update"|"unchanged";
|
|
23
19
|
/** A single staged change keyed by its component identifier. */
|
|
24
|
-
export interface ProfileComponentChange
|
|
20
|
+
export interface ProfileComponentChange{
|
|
25
21
|
/** Component identity (type name, status id, field key, etc.). */
|
|
26
22
|
key:string;
|
|
27
23
|
/** Whether the entry is new, an overwrite, or already current. */
|
|
28
|
-
status:ProfileChangeStatus;
|
|
29
|
-
}
|
|
24
|
+
status:ProfileChangeStatus;}
|
|
30
25
|
/** Plan for a file-backed schema component (types/statuses/fields). */
|
|
31
|
-
export interface ProfileSchemaPlan<TFile>
|
|
26
|
+
export interface ProfileSchemaPlan<TFile>{
|
|
32
27
|
/** Serialized file content to persist when `changed`. */
|
|
33
28
|
file:TFile;
|
|
34
29
|
/** Per-entry classifications in profile order. */
|
|
35
30
|
changes:ProfileComponentChange[];
|
|
36
31
|
/** True when at least one entry is add/update. */
|
|
37
|
-
changed:boolean;
|
|
38
|
-
}
|
|
32
|
+
changed:boolean;}
|
|
39
33
|
/** A staged per-type workflow change plus the merged result list. */
|
|
40
|
-
export interface ProfileWorkflowChange
|
|
34
|
+
export interface ProfileWorkflowChange{
|
|
41
35
|
/** Item type the workflow governs. */
|
|
42
36
|
type:string;
|
|
43
37
|
/** Whether the workflow is new, changed, or already current. */
|
|
44
|
-
status:ProfileChangeStatus;
|
|
45
|
-
}
|
|
38
|
+
status:ProfileChangeStatus;}
|
|
46
39
|
/** Plan for the `schema.type_workflows` settings subtree. */
|
|
47
|
-
export interface ProfileWorkflowPlan
|
|
40
|
+
export interface ProfileWorkflowPlan{
|
|
48
41
|
/** Per-workflow classifications in profile order. */
|
|
49
42
|
changes:ProfileWorkflowChange[];
|
|
50
43
|
/** Full merged workflow list to persist when `changed`. */
|
|
51
44
|
result:TypeWorkflowDefinition[];
|
|
52
45
|
/** True when at least one workflow is add/update. */
|
|
53
|
-
changed:boolean;
|
|
54
|
-
}
|
|
46
|
+
changed:boolean;}
|
|
55
47
|
/** A staged config knob plus the resolved settings path and typed value. */
|
|
56
|
-
export interface ProfileConfigChange
|
|
48
|
+
export interface ProfileConfigChange{
|
|
57
49
|
/** Descriptor key (snake_case). */
|
|
58
50
|
key:string;
|
|
59
51
|
/** Dotted PmSettings path the value writes to. */
|
|
60
52
|
path:string;
|
|
61
53
|
/** Typed leaf value to persist. */
|
|
62
|
-
value:string
|
|
54
|
+
value:string|number|boolean;
|
|
63
55
|
/** Whether the leaf is new, changed, or already current. */
|
|
64
|
-
status:ProfileChangeStatus;
|
|
65
|
-
}
|
|
56
|
+
status:ProfileChangeStatus;}
|
|
66
57
|
/** Plan for the nested-settings knobs a profile stages. */
|
|
67
|
-
export interface ProfileConfigPlan
|
|
58
|
+
export interface ProfileConfigPlan{
|
|
68
59
|
/** Per-knob classifications in profile order. */
|
|
69
60
|
changes:ProfileConfigChange[];
|
|
70
61
|
/** True when at least one knob is add/update. */
|
|
71
|
-
changed:boolean;
|
|
72
|
-
}
|
|
62
|
+
changed:boolean;}
|
|
73
63
|
/** A staged create-template change. */
|
|
74
|
-
export interface ProfileTemplateChange
|
|
64
|
+
export interface ProfileTemplateChange{
|
|
75
65
|
/** Template name. */
|
|
76
66
|
name:string;
|
|
77
67
|
/** Option payload to persist for the template. */
|
|
78
68
|
options:ProfileTemplateOptions;
|
|
79
69
|
/** Whether the template is new, changed, or already current. */
|
|
80
|
-
status:ProfileChangeStatus;
|
|
81
|
-
}
|
|
70
|
+
status:ProfileChangeStatus;}
|
|
82
71
|
/** Plan for the create templates a profile stages. */
|
|
83
|
-
export interface ProfileTemplatePlan
|
|
72
|
+
export interface ProfileTemplatePlan{
|
|
84
73
|
/** Per-template classifications in profile order. */
|
|
85
74
|
changes:ProfileTemplateChange[];
|
|
86
75
|
/** True when at least one template is add/update. */
|
|
87
|
-
changed:boolean;
|
|
88
|
-
}
|
|
76
|
+
changed:boolean;}
|
|
89
77
|
/** Advisory package recommendation with install status. */
|
|
90
|
-
export interface ProfilePackagePlan
|
|
78
|
+
export interface ProfilePackagePlan{
|
|
91
79
|
/** Catalog alias or install spec. */
|
|
92
80
|
spec:string;
|
|
93
81
|
/** Why the archetype benefits from the package. */
|
|
94
82
|
reason:string;
|
|
95
83
|
/** `installed` when already present, otherwise `recommended`. */
|
|
96
|
-
status:"installed"
|
|
97
|
-
}
|
|
84
|
+
status:"installed"|"recommended";}
|
|
98
85
|
/** Current tracker state the planner diffs the profile against. */
|
|
99
|
-
export interface ProfileCurrentState
|
|
86
|
+
export interface ProfileCurrentState{
|
|
100
87
|
/** Raw `schema/types.json` content (or null when absent). */
|
|
101
|
-
typesRaw:string
|
|
88
|
+
typesRaw:string|null;
|
|
102
89
|
/** Raw status-defs file content (or null when absent). */
|
|
103
|
-
statusesRaw:string
|
|
90
|
+
statusesRaw:string|null;
|
|
104
91
|
/** Raw fields file content (or null when absent). */
|
|
105
|
-
fieldsRaw:string
|
|
92
|
+
fieldsRaw:string|null;
|
|
106
93
|
/** Current `schema.type_workflows` entries. */
|
|
107
94
|
workflows:readonly TypeWorkflowDefinition[];
|
|
108
95
|
/** Settings object used to read current config leaf values. */
|
|
@@ -110,16 +97,11 @@ settings:unknown;
|
|
|
110
97
|
/** Existing stored template options keyed by template name. */
|
|
111
98
|
templates:ReadonlyMap<string,ProfileTemplateOptions>;
|
|
112
99
|
/** Install specs/aliases already present in the project. */
|
|
113
|
-
installedPackages:ReadonlySet<string>;
|
|
114
|
-
}
|
|
100
|
+
installedPackages:ReadonlySet<string>;}
|
|
115
101
|
/** Complete idempotent plan for applying a profile. */
|
|
116
|
-
export interface ProfileApplicationPlan
|
|
102
|
+
export interface ProfileApplicationPlan{
|
|
117
103
|
/** Identifying metadata for the planned profile. */
|
|
118
|
-
profile:{
|
|
119
|
-
name:string;
|
|
120
|
-
title:string;
|
|
121
|
-
summary:string;
|
|
122
|
-
};
|
|
104
|
+
profile:{name:string;title:string;summary:string;};
|
|
123
105
|
/** Item-type plan. */
|
|
124
106
|
types:ProfileSchemaPlan<ItemTypesFile>;
|
|
125
107
|
/** Status plan. */
|
|
@@ -135,11 +117,10 @@ templates:ProfileTemplatePlan;
|
|
|
135
117
|
/** Advisory package recommendations. */
|
|
136
118
|
packages:ProfilePackagePlan[];
|
|
137
119
|
/** True when any dimension stages an add/update. */
|
|
138
|
-
changed:boolean;
|
|
139
|
-
}
|
|
120
|
+
changed:boolean;}
|
|
140
121
|
/**
|
|
141
122
|
* Computes the complete idempotent application plan for a profile against the
|
|
142
123
|
* supplied tracker snapshot. The returned files/settings are exactly what the
|
|
143
124
|
* apply step persists; nothing here touches disk.
|
|
144
125
|
*/
|
|
145
|
-
export declare function planProfileApplication(profile:ProjectProfileDefinition,current:ProfileCurrentState):ProfileApplicationPlan;
|
|
126
|
+
export declare function planProfileApplication(profile:ProjectProfileDefinition,current:ProfileCurrentState):ProfileApplicationPlan;
|
|
@@ -16,42 +16,36 @@
|
|
|
16
16
|
* this module is pure data plus name normalization; the planning and apply logic
|
|
17
17
|
* lives in {@link module:core/profile/profile-plan} and `cli/commands/profile`.
|
|
18
18
|
*/
|
|
19
|
-
import type
|
|
20
|
-
import type { RawAddStatusInput } from "../schema/status-defs-file.js";
|
|
21
|
-
import type { RawAddFieldInput } from "../schema/fields-file.js";
|
|
22
|
-
import type { TypeWorkflowDefinition } from "../../types.js";
|
|
19
|
+
import type{RawAddTypeInput}from "../schema/item-types-file.js";import type{RawAddStatusInput}from "../schema/status-defs-file.js";import type{RawAddFieldInput}from "../schema/fields-file.js";import type{TypeWorkflowDefinition}from "../../types.js";
|
|
23
20
|
/** Repeatable create-flag values used to stage a profile template. Mirrors the stored-template option shape (`Record<flag, string | string[]>`) accepted by `pm templates save` without importing the CLI module into core. */
|
|
24
|
-
export type ProfileTemplateOptions
|
|
21
|
+
export type ProfileTemplateOptions=Readonly<Record<string,string|readonly string[]>>;
|
|
25
22
|
/**
|
|
26
23
|
* A single nested-settings knob a profile stages during apply. The `key` is a
|
|
27
24
|
* {@link module:core/config/nested-settings} descriptor key (snake_case) and the
|
|
28
25
|
* `value` is the raw string the descriptor parser coerces into a typed leaf, so
|
|
29
26
|
* profile config reuses exactly the same validation as `pm config set`.
|
|
30
27
|
*/
|
|
31
|
-
export interface ProfileConfigEntry
|
|
28
|
+
export interface ProfileConfigEntry{
|
|
32
29
|
/** Nested-settings descriptor key, e.g. `search_provider`. */
|
|
33
30
|
key:string;
|
|
34
31
|
/** Raw value parsed by the descriptor (e.g. `"bm25"`, `"20"`). */
|
|
35
32
|
value:string;
|
|
36
33
|
/** Short human-facing rationale surfaced in profile descriptions. */
|
|
37
|
-
summary:string;
|
|
38
|
-
}
|
|
34
|
+
summary:string;}
|
|
39
35
|
/** A named create template a profile stages into `<pmRoot>/templates/<name>.json` so operators can immediately `pm create --template <name>`. */
|
|
40
|
-
export interface ProfileTemplateEntry
|
|
36
|
+
export interface ProfileTemplateEntry{
|
|
41
37
|
/** Template name (matches the `pm templates` naming rules). */
|
|
42
38
|
name:string;
|
|
43
39
|
/** Create-flag option payload stored for the template. */
|
|
44
|
-
options:ProfileTemplateOptions;
|
|
45
|
-
}
|
|
40
|
+
options:ProfileTemplateOptions;}
|
|
46
41
|
/** A package the profile recommends but never auto-installs. Apply surfaces these as advisory `pm package install` hints, keeping profile application offline and side-effect-free with respect to the package registry. */
|
|
47
|
-
export interface ProfilePackageRecommendation
|
|
42
|
+
export interface ProfilePackageRecommendation{
|
|
48
43
|
/** Catalog alias or install spec, e.g. `templates` or `npm:@unbrained/pm-templates`. */
|
|
49
44
|
spec:string;
|
|
50
45
|
/** Why this archetype benefits from the package. */
|
|
51
|
-
reason:string;
|
|
52
|
-
}
|
|
46
|
+
reason:string;}
|
|
53
47
|
/** The complete declarative definition of a project profile. Every dimension is optional-by-emptiness: an empty array simply stages nothing for that surface. */
|
|
54
|
-
export interface ProjectProfileDefinition
|
|
48
|
+
export interface ProjectProfileDefinition{
|
|
55
49
|
/** Stable lowercase profile identifier, e.g. `agile`. */
|
|
56
50
|
name:string;
|
|
57
51
|
/** Human-facing display title. */
|
|
@@ -71,8 +65,7 @@ config:readonly ProfileConfigEntry[];
|
|
|
71
65
|
/** Create templates to stage. */
|
|
72
66
|
templates:readonly ProfileTemplateEntry[];
|
|
73
67
|
/** Advisory package recommendations (never auto-installed). */
|
|
74
|
-
packages:readonly ProfilePackageRecommendation[];
|
|
75
|
-
}
|
|
68
|
+
packages:readonly ProfilePackageRecommendation[];}
|
|
76
69
|
/**
|
|
77
70
|
* The shape an extension passes to `api.registerProfile(profile)`.
|
|
78
71
|
*
|
|
@@ -85,11 +78,11 @@ packages:readonly ProfilePackageRecommendation[];
|
|
|
85
78
|
* while a complete definition (a built-in or `defineProjectProfile`-typed value)
|
|
86
79
|
* also satisfies it.
|
|
87
80
|
*/
|
|
88
|
-
export type ProjectProfileRegistrationInput
|
|
81
|
+
export type ProjectProfileRegistrationInput=Pick<ProjectProfileDefinition,"name"|"title">&Partial<Omit<ProjectProfileDefinition,"name"|"title">>;
|
|
89
82
|
/** Ordered list of first-party profile names. Drives CLI help, completion, contracts, and the `pm profile list` ordering. */
|
|
90
|
-
export declare const PROFILE_NAMES:readonly
|
|
83
|
+
export declare const PROFILE_NAMES:readonly["agile","ops","research"];
|
|
91
84
|
/** Restricts profile name values accepted by command, SDK, and storage contracts. */
|
|
92
|
-
export type ProfileName
|
|
85
|
+
export type ProfileName=(typeof PROFILE_NAMES)[number];
|
|
93
86
|
/**
|
|
94
87
|
* First-party archetype profiles. Each composes its matching
|
|
95
88
|
* {@link TYPE_PRESET_DEFINITIONS} entry (so item types stay identical to the
|
|
@@ -104,28 +97,27 @@ export declare const BUILTIN_PROFILES:Record<ProfileName,ProjectProfileDefinitio
|
|
|
104
97
|
* unknown name; CLI layers map it to a USAGE exit code. Accepts hyphen/underscore
|
|
105
98
|
* and casing variations for ergonomics, mirroring {@link normalizeTypePresetName}.
|
|
106
99
|
*/
|
|
107
|
-
export declare function normalizeProfileName(rawValue:string
|
|
100
|
+
export declare function normalizeProfileName(rawValue:string|undefined):ProfileName|undefined;
|
|
108
101
|
/**
|
|
109
102
|
* Resolves a built-in profile definition by validated name. Throws (via
|
|
110
103
|
* {@link normalizeProfileName}) when the name is missing or unknown.
|
|
111
104
|
*/
|
|
112
|
-
export declare function resolveProfile(rawValue:string
|
|
105
|
+
export declare function resolveProfile(rawValue:string|undefined):ProjectProfileDefinition;
|
|
113
106
|
/**
|
|
114
107
|
* Returns all built-in profile definitions in {@link PROFILE_NAMES} order. Used by
|
|
115
108
|
* `pm profile list` and SDK consumers enumerating available archetypes.
|
|
116
109
|
*/
|
|
117
110
|
export declare function listProfiles():ProjectProfileDefinition[];
|
|
118
111
|
/** Whether a resolved profile is core-baked or contributed by an active extension. */
|
|
119
|
-
export type ProfileSourceKind
|
|
112
|
+
export type ProfileSourceKind="builtin"|"extension";
|
|
120
113
|
/** A profile definition paired with where it came from, returned by the merged `pm profile` resolution so callers can label a profile's origin. */
|
|
121
|
-
export interface ResolvedProfile
|
|
114
|
+
export interface ResolvedProfile{
|
|
122
115
|
/** The profile definition. */
|
|
123
116
|
definition:ProjectProfileDefinition;
|
|
124
117
|
/** Whether the profile is core-baked or contributed by an active extension. */
|
|
125
118
|
source:ProfileSourceKind;
|
|
126
119
|
/** For an extension profile, the owning package/extension name; absent for builtins. */
|
|
127
|
-
package?:string;
|
|
128
|
-
}
|
|
120
|
+
package?:string;}
|
|
129
121
|
/**
|
|
130
122
|
* A profile contributed by an active extension, fed into the merge resolver.
|
|
131
123
|
*
|
|
@@ -134,34 +126,31 @@ package?:string;
|
|
|
134
126
|
* for {@link ProjectProfileDefinition}, so importing back would form a cycle. The
|
|
135
127
|
* CLI maps the active registration registry onto this shape.
|
|
136
128
|
*/
|
|
137
|
-
export interface ExtensionProfileContribution
|
|
129
|
+
export interface ExtensionProfileContribution{
|
|
138
130
|
/** Owning extension/package name, surfaced as the resolved profile's source. */
|
|
139
131
|
name:string;
|
|
140
132
|
/** The profile definition the extension registered. */
|
|
141
|
-
profile:ProjectProfileDefinition;
|
|
142
|
-
}
|
|
133
|
+
profile:ProjectProfileDefinition;}
|
|
143
134
|
/**
|
|
144
135
|
* Result of {@link resolveProfileCatalog}: the merged profile list plus any
|
|
145
136
|
* non-fatal collisions encountered while merging.
|
|
146
137
|
*/
|
|
147
|
-
export interface ResolveProfileCatalogResult
|
|
138
|
+
export interface ResolveProfileCatalogResult{
|
|
148
139
|
/** Builtins first (in {@link PROFILE_NAMES} order), then accepted extension profiles in contribution order. */
|
|
149
140
|
profiles:ResolvedProfile[];
|
|
150
141
|
/** Non-fatal merge warnings (built-in shadowing attempts, duplicate names). */
|
|
151
|
-
warnings:string[];
|
|
152
|
-
}
|
|
142
|
+
warnings:string[];}
|
|
153
143
|
/**
|
|
154
144
|
* Result of {@link resolveProfileEntry}: the single resolved profile plus the
|
|
155
145
|
* same non-fatal merge `warnings` {@link resolveProfileCatalog} produced, so
|
|
156
146
|
* `pm profile show`/`apply` surface a shadowed or duplicate extension profile
|
|
157
147
|
* just like `pm profile list` does rather than swallowing it.
|
|
158
148
|
*/
|
|
159
|
-
export interface ResolveProfileEntryResult
|
|
149
|
+
export interface ResolveProfileEntryResult{
|
|
160
150
|
/** The resolved profile and its source. */
|
|
161
151
|
resolved:ResolvedProfile;
|
|
162
152
|
/** Non-fatal merge warnings from building the catalog the entry was resolved against. */
|
|
163
|
-
warnings:string[];
|
|
164
|
-
}
|
|
153
|
+
warnings:string[];}
|
|
165
154
|
/**
|
|
166
155
|
* Canonical lookup key for a profile name: trimmed, lowercased, with hyphens
|
|
167
156
|
* folded to underscores. Shared by both sides of every catalog match (and by
|
|
@@ -191,4 +180,4 @@ export declare function resolveProfileCatalog(contributions?:readonly ExtensionP
|
|
|
191
180
|
* missing or unknown, so CLI layers map it to a USAGE exit code — the
|
|
192
181
|
* extension-aware counterpart to {@link resolveProfile}.
|
|
193
182
|
*/
|
|
194
|
-
export declare function resolveProfileEntry(rawValue:string
|
|
183
|
+
export declare function resolveProfileEntry(rawValue:string|undefined,contributions?:readonly ExtensionProfileContribution[]):ResolveProfileEntryResult;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
/** Low-level deterministic execution settings shared by SDK recipes. */
|
|
2
|
-
export interface ReproducibleExecutionSettings
|
|
2
|
+
export interface ReproducibleExecutionSettings{
|
|
3
3
|
/** Stable seed used to derive identifier entropy. */
|
|
4
4
|
seed:string;
|
|
5
5
|
/** ISO timestamp returned for the first clock read. */
|
|
6
6
|
clock:string;
|
|
7
7
|
/** Milliseconds advanced after each clock read. */
|
|
8
|
-
tickMs:number;
|
|
9
|
-
}
|
|
8
|
+
tickMs:number;}
|
|
10
9
|
/** Runs async operations against one shared deterministic sequence. */
|
|
11
|
-
export type ReproducibleExecutionRunner
|
|
10
|
+
export type ReproducibleExecutionRunner=<T>(operation:()=> Promise<T>)=> Promise<T>;
|
|
12
11
|
/** Validate and normalize deterministic execution settings before work starts. */
|
|
13
12
|
export declare function validateReproducibleExecutionSettings(settings:ReproducibleExecutionSettings):ReproducibleExecutionSettings;
|
|
14
13
|
/** Create a runner whose serial operations share deterministic clock and entropy state. */
|
|
15
14
|
export declare function createReproducibleExecutionRunner(settings:ReproducibleExecutionSettings):ReproducibleExecutionRunner;
|
|
16
15
|
/** Run an isolated async operation with deterministic clock and entropy state. */
|
|
17
|
-
export declare function runWithReproducibleExecution<T>(settings:ReproducibleExecutionSettings,operation:()
|
|
16
|
+
export declare function runWithReproducibleExecution<T>(settings:ReproducibleExecutionSettings,operation:()=> Promise<T>):Promise<T>;
|
|
18
17
|
/** Return the next deterministic clock value, or undefined outside a recipe. */
|
|
19
|
-
export declare function nextReproducibleTimestamp():string
|
|
18
|
+
export declare function nextReproducibleTimestamp():string|undefined;
|
|
20
19
|
/** Return a deterministic base36 token, or undefined outside a recipe. */
|
|
21
|
-
export declare function nextReproducibleToken(length:number):string
|
|
20
|
+
export declare function nextReproducibleToken(length:number):string|undefined;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import type { RuntimeFieldCommand,RuntimeFieldDefinition,RuntimeFieldType
|
|
2
|
-
export { normalizeStatusToken as normalizeFieldKey } from "./status-token.js";
|
|
3
|
-
export type { RuntimeFieldCommand,RuntimeFieldDefinition,RuntimeFieldValueSchema,RuntimeFieldType,} from "../../types/index.js";
|
|
1
|
+
import type{RuntimeFieldCommand,RuntimeFieldDefinition,RuntimeFieldType}from "../../types/index.js";export{normalizeStatusToken as normalizeFieldKey}from "./status-token.js";export type{RuntimeFieldCommand,RuntimeFieldDefinition,RuntimeFieldValueSchema,RuntimeFieldType,}from "../../types/index.js";
|
|
4
2
|
/** Built-in item-metadata field names a custom field key must never shadow. A custom key that collides with one of these would let `pm create --<key>` write over reserved metadata, so add-field rejects them up front (symmetric with the built-in-type guard in item-types-file.ts). */
|
|
5
3
|
export declare const BUILTIN_FIELD_KEYS:ReadonlySet<string>;
|
|
6
4
|
/** The shape persisted at `.agents/pm/schema/fields.json`. */
|
|
7
|
-
export interface FieldsFile
|
|
5
|
+
export interface FieldsFile{
|
|
8
6
|
/** Value that configures or reports fields for this contract. */
|
|
9
|
-
fields:RuntimeFieldDefinition[];
|
|
10
|
-
}
|
|
7
|
+
fields:RuntimeFieldDefinition[];}
|
|
11
8
|
/** Documents the raw add field input payload exchanged by command, SDK, and package integrations. */
|
|
12
|
-
export interface RawAddFieldInput
|
|
9
|
+
export interface RawAddFieldInput{
|
|
13
10
|
/** Value that configures or reports key for this contract. */
|
|
14
|
-
key:string
|
|
11
|
+
key:string|undefined;
|
|
15
12
|
/** Schema type that determines the shape and validation rules for this value. */
|
|
16
13
|
type?:string;
|
|
17
14
|
/** Value that configures or reports commands for this contract. */
|
|
@@ -29,10 +26,9 @@ requiredOnCreate?:boolean;
|
|
|
29
26
|
/** Value that configures or reports allow unset for this contract. */
|
|
30
27
|
allowUnset?:boolean;
|
|
31
28
|
/** Value that configures or reports required types for this contract. */
|
|
32
|
-
requiredTypes?:string[];
|
|
33
|
-
}
|
|
29
|
+
requiredTypes?:string[];}
|
|
34
30
|
/** Documents the normalized add field input payload exchanged by command, SDK, and package integrations. */
|
|
35
|
-
export interface NormalizedAddFieldInput
|
|
31
|
+
export interface NormalizedAddFieldInput{
|
|
36
32
|
/** Value that configures or reports key for this contract. */
|
|
37
33
|
key:string;
|
|
38
34
|
/** Schema type that determines the shape and validation rules for this value. */
|
|
@@ -52,33 +48,30 @@ requiredOnCreate:boolean;
|
|
|
52
48
|
/** Value that configures or reports allow unset for this contract. */
|
|
53
49
|
allowUnset:boolean;
|
|
54
50
|
/** Value that configures or reports required types for this contract. */
|
|
55
|
-
requiredTypes:string[];
|
|
56
|
-
}
|
|
51
|
+
requiredTypes:string[];}
|
|
57
52
|
/** Documents the upsert field result payload exchanged by command, SDK, and package integrations. */
|
|
58
|
-
export interface UpsertFieldResult
|
|
53
|
+
export interface UpsertFieldResult{
|
|
59
54
|
/** Value that configures or reports file for this contract. */
|
|
60
55
|
file:FieldsFile;
|
|
61
56
|
/** The definition as stored after the upsert. */
|
|
62
57
|
definition:RuntimeFieldDefinition;
|
|
63
58
|
/** True when an existing definition with the same (normalized) key was replaced. */
|
|
64
|
-
replaced:boolean;
|
|
65
|
-
}
|
|
59
|
+
replaced:boolean;}
|
|
66
60
|
/** Documents the remove field result payload exchanged by command, SDK, and package integrations. */
|
|
67
|
-
export interface RemoveFieldResult
|
|
61
|
+
export interface RemoveFieldResult{
|
|
68
62
|
/** Value that configures or reports file for this contract. */
|
|
69
63
|
file:FieldsFile;
|
|
70
64
|
/** True when a matching definition existed and was dropped from the file. */
|
|
71
65
|
removed:boolean;
|
|
72
66
|
/** The removed definition, when one matched the requested key. */
|
|
73
|
-
definition?:RuntimeFieldDefinition;
|
|
74
|
-
}
|
|
67
|
+
definition?:RuntimeFieldDefinition;}
|
|
75
68
|
/** Validates and normalizes raw add-field CLI input. Throws a plain Error with a stable message when the key is missing/empty, collides with a built-in field, or carries an invalid type/command; the CLI layer maps these to PmCliError exit codes. A `string_array` type implies a repeatable field downstream (runtime-schema.ts derives `repeatable`), so no separate repeatable flag is exposed. */
|
|
76
69
|
export declare function normalizeAddFieldInput(raw:RawAddFieldInput):NormalizedAddFieldInput;
|
|
77
70
|
/** Coerces an arbitrary parsed value from fields.json into a FieldsFile. Accepts the canonical `{ fields: [...] }` shape, a bare array, or a `{ definitions: [...] }` form, and tolerates a missing/invalid file by returning an empty fields list. */
|
|
78
|
-
export declare function parseFieldsFile(raw:string
|
|
71
|
+
export declare function parseFieldsFile(raw:string|null|undefined):FieldsFile;
|
|
79
72
|
/** Serializes the fields file with a trailing newline (matches the rest of the schema scaffold files written by pm). */
|
|
80
73
|
export declare function serializeFieldsFile(file:FieldsFile):string;
|
|
81
74
|
/** Idempotent UPSERT of a custom field into the parsed file. Matching is by normalized key. When a definition already exists, the supplied input fully replaces its add-field-managed attributes (type/commands/description/flags/ required flags) while preserving any unrelated keys the file may carry; any `metadata_key` already stored is preserved so existing item data keeps mapping to the same item-metadata column. */
|
|
82
75
|
export declare function upsertField(file:FieldsFile,input:NormalizedAddFieldInput):UpsertFieldResult;
|
|
83
76
|
/** Removes a custom field definition from the parsed file by key (normalized). Throws a plain Error when `key` is empty. Returns `removed: false` when no matching definition exists so the CLI layer can treat the call as an idempotent no-op. */
|
|
84
|
-
export declare function removeField(file:FieldsFile,key:string
|
|
77
|
+
export declare function removeField(file:FieldsFile,key:string|undefined):RemoveFieldResult;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type { ItemTypeDefinition } from "../../types/index.js";
|
|
1
|
+
import type{ItemTypeDefinition}from "../../types/index.js";export type{ItemTypeDefinition}from "../../types/index.js";
|
|
3
2
|
/** The shape persisted at `.agents/pm/schema/types.json`. */
|
|
4
|
-
export interface ItemTypesFile
|
|
3
|
+
export interface ItemTypesFile{
|
|
5
4
|
/** Value that configures or reports definitions for this contract. */
|
|
6
|
-
definitions:ItemTypeDefinition[];
|
|
7
|
-
}
|
|
5
|
+
definitions:ItemTypeDefinition[];}
|
|
8
6
|
/** Documents the normalized add type input payload exchanged by command, SDK, and package integrations. */
|
|
9
|
-
export interface NormalizedAddTypeInput
|
|
7
|
+
export interface NormalizedAddTypeInput{
|
|
10
8
|
/** Value that configures or reports name for this contract. */
|
|
11
9
|
name:string;
|
|
12
10
|
/** Value that configures or reports description for this contract. */
|
|
@@ -16,12 +14,11 @@ defaultStatus?:string;
|
|
|
16
14
|
/** Value that configures or reports folder for this contract. */
|
|
17
15
|
folder?:string;
|
|
18
16
|
/** Value that configures or reports aliases for this contract. */
|
|
19
|
-
aliases:string[];
|
|
20
|
-
}
|
|
17
|
+
aliases:string[];}
|
|
21
18
|
/** Documents the raw add type input payload exchanged by command, SDK, and package integrations. */
|
|
22
|
-
export interface RawAddTypeInput
|
|
19
|
+
export interface RawAddTypeInput{
|
|
23
20
|
/** Value that configures or reports name for this contract. */
|
|
24
|
-
name:string
|
|
21
|
+
name:string|undefined;
|
|
25
22
|
/** Value that configures or reports description for this contract. */
|
|
26
23
|
description?:string;
|
|
27
24
|
/** Default status id newly created items of this type receive. */
|
|
@@ -29,10 +26,9 @@ defaultStatus?:string;
|
|
|
29
26
|
/** Value that configures or reports folder for this contract. */
|
|
30
27
|
folder?:string;
|
|
31
28
|
/** Value that configures or reports aliases for this contract. */
|
|
32
|
-
aliases?:string[];
|
|
33
|
-
}
|
|
29
|
+
aliases?:string[];}
|
|
34
30
|
/** Documents the upsert item type result payload exchanged by command, SDK, and package integrations. */
|
|
35
|
-
export interface UpsertItemTypeResult
|
|
31
|
+
export interface UpsertItemTypeResult{
|
|
36
32
|
/** Value that configures or reports file for this contract. */
|
|
37
33
|
file:ItemTypesFile;
|
|
38
34
|
/** The definition as stored after the upsert (existing fields preserved). */
|
|
@@ -40,19 +36,17 @@ definition:ItemTypeDefinition;
|
|
|
40
36
|
/** True when an existing definition with the same (case-insensitive) name was replaced. */
|
|
41
37
|
replaced:boolean;
|
|
42
38
|
/** The canonical name of the replaced definition (only present when `replaced`). Lets the caller detect a silent recase (e.g. "Spike" -> "spike") and warn. */
|
|
43
|
-
previousName?:string;
|
|
44
|
-
}
|
|
39
|
+
previousName?:string;}
|
|
45
40
|
/** Documents the remove item type result payload exchanged by command, SDK, and package integrations. */
|
|
46
|
-
export interface RemoveItemTypeResult
|
|
41
|
+
export interface RemoveItemTypeResult{
|
|
47
42
|
/** Value that configures or reports file for this contract. */
|
|
48
43
|
file:ItemTypesFile;
|
|
49
44
|
/** True when a matching definition existed and was dropped from the file. */
|
|
50
45
|
removed:boolean;
|
|
51
46
|
/** The removed definition, when one matched (case-insensitively) the requested name. */
|
|
52
|
-
definition?:ItemTypeDefinition;
|
|
53
|
-
}
|
|
47
|
+
definition?:ItemTypeDefinition;}
|
|
54
48
|
/** Returns the canonical built-in name when `name` collides (case-insensitively) with a reserved built-in item type, otherwise undefined. */
|
|
55
|
-
export declare function matchBuiltinTypeName(name:string):string
|
|
49
|
+
export declare function matchBuiltinTypeName(name:string):string|undefined;
|
|
56
50
|
/** Escapes a value for safe interpolation inside a double-quoted shell string so suggested copy-pasteable commands stay well-formed for names containing `"`, `` ` ``, `$`, or `\`. */
|
|
57
51
|
export declare function escapeForDoubleQuotes(value:string):string;
|
|
58
52
|
/** Validates and normalizes raw add-type CLI input. Throws a plain Error with a stable message when the name is missing/empty or collides with a built-in; the CLI layer maps these to PmCliError exit codes. */
|
|
@@ -75,11 +69,11 @@ export declare function assertAliasesAvailable(input:NormalizedAddTypeInput,exis
|
|
|
75
69
|
*/
|
|
76
70
|
export declare function assertTypeFolderAvailable(input:NormalizedAddTypeInput,existing:ItemTypesFile,reservedFolders?:ReadonlyMap<string,string>):void;
|
|
77
71
|
/** Coerces an arbitrary parsed value from types.json into an ItemTypesFile. Accepts the canonical `{ definitions: [...] }` shape, a bare array of definitions, or a nested `{ item_types: { definitions: [...] } }` form, and tolerates a missing/invalid file by returning an empty definitions list. */
|
|
78
|
-
export declare function parseItemTypesFile(raw:string
|
|
72
|
+
export declare function parseItemTypesFile(raw:string|null|undefined):ItemTypesFile;
|
|
79
73
|
/** Idempotent UPSERT of a custom item type into the parsed file. Matching is case-insensitive by name. When a definition already exists, fields supplied in `input` override the previous values; aliases are merged (deduped); other fields not addressed by add-type flags are preserved untouched. */
|
|
80
74
|
export declare function upsertItemType(file:ItemTypesFile,input:NormalizedAddTypeInput):UpsertItemTypeResult;
|
|
81
75
|
/** Removes a custom item type definition from the parsed file by name (case-insensitive). Throws a plain Error when `name` is empty or collides with a reserved built-in type (built-ins are not stored in the file and must never be deletable). Returns `removed: false` when no matching custom definition exists so the CLI layer can treat the call as an idempotent no-op. */
|
|
82
|
-
export declare function removeItemType(file:ItemTypesFile,name:string
|
|
76
|
+
export declare function removeItemType(file:ItemTypesFile,name:string|undefined):RemoveItemTypeResult;
|
|
83
77
|
/** Serializes the item types file with a trailing newline (matches the rest of the schema scaffold files written by pm). */
|
|
84
78
|
export declare function serializeItemTypesFile(file:ItemTypesFile):string;
|
|
85
79
|
/** Appends a discoverable hint to the "Invalid type" error so agents learn that custom types exist and how to register one. Quotes are chosen so the printed line is copy-pasteable as a shell command. */
|
|
@@ -91,4 +85,4 @@ export declare function buildInvalidTypeHint(name:string,typesFilePath?:string):
|
|
|
91
85
|
* tracker (see {@link resolveItemTypesFilePath}) so the hint reflects a custom
|
|
92
86
|
* `--pm-path` instead of the hardcoded `.agents/pm` default.
|
|
93
87
|
*/
|
|
94
|
-
export declare function buildInvalidTypeError(name:string,allowedTypes:readonly string[],typesFilePath?:string):string;
|
|
88
|
+
export declare function buildInvalidTypeError(name:string,allowedTypes:readonly string[],typesFilePath?:string):string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type{RuntimeFieldCommand,RuntimeFieldRegistry}from "./runtime-schema.js";
|
|
2
2
|
/** Implements collect runtime filter values for the public runtime surface of this module. */
|
|
3
3
|
export declare function collectRuntimeFilterValues(options:Record<string,unknown>,fieldRegistry:RuntimeFieldRegistry,command:RuntimeFieldCommand):Record<string,unknown>;
|
|
4
4
|
/** Implements matches runtime filters for the public runtime surface of this module. */
|
|
5
|
-
export declare function matchesRuntimeFilters(item:Record<string,unknown>,filters:Record<string,unknown>):boolean;
|
|
5
|
+
export declare function matchesRuntimeFilters(item:Record<string,unknown>,filters:Record<string,unknown>):boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { RuntimeFieldCommand } from "../../types/index.js";
|
|
1
|
+
import{type RuntimeFieldDefinitionResolved,type RuntimeFieldRegistry}from "./runtime-schema.js";import type{RuntimeFieldCommand}from "../../types/index.js";
|
|
3
2
|
/**
|
|
4
3
|
* The option name an SDK caller passes to set exactly this runtime field: the
|
|
5
4
|
* first name {@link readRuntimeFieldOptionValue} reads for it (preferring the
|
|
@@ -7,7 +6,7 @@ import type { RuntimeFieldCommand } from "../../types/index.js";
|
|
|
7
6
|
* field also reads. Undefined when every name is shared, because following
|
|
8
7
|
* such a hint would also set the other field.
|
|
9
8
|
*/
|
|
10
|
-
export declare function runtimeFieldSdkOptionName(definition:RuntimeFieldDefinitionResolved,registry:Pick<RuntimeFieldRegistry,"definitions">,reservedOptions?:ReadonlySet<string>,command?:RuntimeFieldCommand):string
|
|
9
|
+
export declare function runtimeFieldSdkOptionName(definition:RuntimeFieldDefinitionResolved,registry:Pick<RuntimeFieldRegistry,"definitions">,reservedOptions?:ReadonlySet<string>,command?:RuntimeFieldCommand):string|undefined;
|
|
11
10
|
/** The command-line token for a declared spelling: a short alias keeps its single dash. */
|
|
12
11
|
export declare function runtimeFieldFlagToken(flag:string):string;
|
|
13
12
|
/**
|
|
@@ -18,10 +17,7 @@ export declare function runtimeFieldFlagToken(flag:string):string;
|
|
|
18
17
|
* earlier-read key of this field can shadow. Undefined when no spelling
|
|
19
18
|
* qualifies. Render it with {@link runtimeFieldFlagToken}.
|
|
20
19
|
*/
|
|
21
|
-
export declare function runtimeFieldCliFlagRoute(definition:RuntimeFieldDefinitionResolved,registry:Pick<RuntimeFieldRegistry,"definitions">,reserved:{
|
|
22
|
-
options:ReadonlySet<string>;
|
|
23
|
-
flags:ReadonlySet<string>;
|
|
24
|
-
},command?:RuntimeFieldCommand):string | undefined;
|
|
20
|
+
export declare function runtimeFieldCliFlagRoute(definition:RuntimeFieldDefinitionResolved,registry:Pick<RuntimeFieldRegistry,"definitions">,reserved:{options:ReadonlySet<string>;flags:ReadonlySet<string>;},command?:RuntimeFieldCommand):string|undefined;
|
|
25
21
|
/**
|
|
26
22
|
* The option key Commander stores for a long flag (without dashes): it strips
|
|
27
23
|
* a negating `no-` prefix and camel-cases across hyphens only, so
|
|
@@ -32,11 +28,8 @@ export declare function commanderOptionAttribute(flag:string):string;
|
|
|
32
28
|
/** Implements read runtime field option value for the public runtime surface of this module. */
|
|
33
29
|
export declare function readRuntimeFieldOptionValue(options:Record<string,unknown>,definition:RuntimeFieldDefinitionResolved):unknown;
|
|
34
30
|
/** Validate a declared field; option arrays represent repeated flags, while metadata containers retain their exact shape. */
|
|
35
|
-
export declare function coerceRuntimeFieldValue(definition:RuntimeFieldDefinitionResolved,rawValue:unknown,labelOverride?:string,inputKind?:"option"
|
|
31
|
+
export declare function coerceRuntimeFieldValue(definition:RuntimeFieldDefinitionResolved,rawValue:unknown,labelOverride?:string,inputKind?:"option"|"metadata"):unknown;
|
|
36
32
|
/** Implements collect runtime create field values for the public runtime surface of this module. */
|
|
37
|
-
export declare function collectRuntimeCreateFieldValues(options:Record<string,unknown>,fieldRegistry:RuntimeFieldRegistry,itemTypeName:string
|
|
38
|
-
values:Record<string,unknown>;
|
|
39
|
-
missing_required_flags:string[];
|
|
40
|
-
};
|
|
33
|
+
export declare function collectRuntimeCreateFieldValues(options:Record<string,unknown>,fieldRegistry:RuntimeFieldRegistry,itemTypeName:string|undefined):{values:Record<string,unknown>;missing_required_flags:string[];};
|
|
41
34
|
/** Implements collect runtime update field values for the public runtime surface of this module. */
|
|
42
|
-
export declare function collectRuntimeUpdateFieldValues(options:Record<string,unknown>,fieldRegistry:RuntimeFieldRegistry,commands?:Array<"update"
|
|
35
|
+
export declare function collectRuntimeUpdateFieldValues(options:Record<string,unknown>,fieldRegistry:RuntimeFieldRegistry,commands?:Array<"update"|"update_many">|null|undefined):Record<string,unknown>;
|