@unbrained/pm-cli 2026.10.13 → 2026.10.15
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 +72 -1
- package/dist/cli/after-command-context-usage.d.ts +7 -7
- package/dist/cli/argv-utils.d.ts +4 -4
- package/dist/cli/bundle-integrity.d.ts +16 -16
- package/dist/cli/command-namespaces.d.ts +1 -1
- package/dist/cli/commander-usage.d.ts +34 -34
- package/dist/cli/commands/governance/validate.d.ts +1 -1
- package/dist/cli/commands/history/history-compact.d.ts +1 -1
- package/dist/cli/commands/history/history-redact.d.ts +1 -1
- package/dist/cli/commands/history/history-repair.d.ts +1 -1
- package/dist/cli/commands/history/restore.d.ts +1 -1
- package/dist/cli/commands/lifecycle/close.d.ts +1 -1
- package/dist/cli/commands/lifecycle/copy.d.ts +1 -1
- package/dist/cli/commands/lifecycle/delete.d.ts +1 -1
- package/dist/cli/commands/lifecycle/focus.d.ts +1 -1
- package/dist/cli/commands/query/get.d.ts +1 -1
- package/dist/cli/commands/workspace/merge.d.ts +1 -1
- package/dist/cli/commands/workspace/schema.d.ts +1 -1
- package/dist/cli/context-intent-invocation.d.ts +1 -1
- package/dist/cli/description-stdin.d.ts +1 -1
- package/dist/cli/error-guidance.d.ts +119 -119
- package/dist/cli/extension-command-help.d.ts +64 -64
- package/dist/cli/extension-command-help.js +2 -2
- package/dist/cli/extension-command-options.d.ts +16 -16
- package/dist/cli/extension-command-options.js +1 -1
- package/dist/cli/extension-recovery.d.ts +13 -13
- package/dist/cli/help-content.d.ts +22 -22
- package/dist/cli/help-content.js +2 -2
- package/dist/cli/help-json-payload.d.ts +45 -45
- package/dist/cli/invocation-profile.d.ts +5 -5
- package/dist/cli/main.d.ts +217 -217
- package/dist/cli/main.js +2 -2
- package/dist/cli/migration-gates.d.ts +24 -24
- package/dist/cli/option-values.d.ts +1 -1
- package/dist/cli/public.d.ts +1 -1
- package/dist/cli/register-annotations.d.ts +2 -2
- package/dist/cli/register-assurance.d.ts +1 -1
- package/dist/cli/register-files-lookup.d.ts +1 -1
- package/dist/cli/register-history-activity.d.ts +1 -1
- package/dist/cli/register-history-author.d.ts +1 -1
- package/dist/cli/register-history-maintenance.d.ts +1 -1
- package/dist/cli/register-list-query.d.ts +7 -7
- package/dist/cli/register-list-query.js +3 -3
- package/dist/cli/register-mutation-options.d.ts +1 -1
- package/dist/cli/register-mutation.d.ts +4 -4
- package/dist/cli/register-operations.d.ts +75 -75
- package/dist/cli/register-setup.d.ts +4 -4
- package/dist/cli/register-structured-mutation.d.ts +8 -8
- package/dist/cli/runtime/activation.d.ts +23 -23
- package/dist/cli/runtime/invocation-options.d.ts +12 -12
- package/dist/cli/runtime/projection-retry.d.ts +1 -1
- package/dist/cli/runtime/selection.d.ts +16 -16
- package/dist/cli/runtime/telemetry-outcome.d.ts +11 -11
- package/dist/cli/runtime-compatibility-boundary.d.ts +7 -7
- package/dist/cli/schema/registration.d.ts +1 -1
- package/dist/cli/schema-registration-helpers.d.ts +2 -2
- package/dist/cli/stats-analytics-json.d.ts +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-LBDWFWPK.js → chunk-52EZH2QQ.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-7OEGNA4X.js +20 -0
- package/dist/cli-bundle/chunks/{chunk-APWPC4ZZ.js → chunk-7VHINXZP.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-EMEEHV2Y.js +2 -0
- package/dist/cli-bundle/chunks/chunk-JGKTOBVB.js +6 -0
- package/dist/cli-bundle/chunks/{chunk-PSNS537F.js → chunk-JSUJWIHQ.js} +30 -30
- package/dist/cli-bundle/chunks/{chunk-N5EXRYCZ.js → chunk-LNKLQYBG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YH6H3UVE.js → chunk-N56CAQBU.js} +63 -64
- package/dist/cli-bundle/chunks/chunk-NC3QVGDD.js +8 -0
- package/dist/cli-bundle/chunks/{chunk-AM2XOZKE.js → chunk-RJ5N44WY.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HXHFKXLV.js → chunk-VIMQCFCK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UBTYYZIE.js → chunk-WBBW3WQX.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-X2H6UR26.js +236 -0
- package/dist/cli-bundle/chunks/{register-list-query-BJ742QOR.js → register-list-query-FKKFQ66D.js} +7 -7
- package/dist/cli-bundle/chunks/{register-mutation-GGGBRIH2.js → register-mutation-EWMMVZJB.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-E6HXYHNM.js → register-operations-GEQ2H7PS.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-4ZVTVEPY.js → register-setup-PSJTQBBO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-NNW5BS5L.js → chunk-3RNUMVK4.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-3LQEBXU5.js → chunk-4KQFMOM7.js} +6 -6
- package/dist/cli-bundle/focused-chunks/{chunk-RAA7SVRA.js → chunk-52I2SNKJ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6BTUISKV.js → chunk-5KRACGBK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-5OO54BIV.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-5TBAVZDR.js +20 -0
- package/dist/cli-bundle/focused-chunks/{chunk-R23T7GFZ.js → chunk-FQKPOZKS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IIKFTJVC.js → chunk-H3P77KVU.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-HTA3TNC3.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-73UNAJHD.js → chunk-JKBH7YGX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KGFRQ34R.js → chunk-KIIFVULU.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SOB7X4FJ.js → chunk-N6FUKTZS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-PDYE7QDX.js +166 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RU6GCFN3.js → chunk-Q4VNCTR2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QMNAY25P.js → chunk-THYQR3ON.js} +61 -62
- package/dist/cli-bundle/focused-chunks/{chunk-DVK7VKZL.js → chunk-TYLG5VEB.js} +2 -2
- package/dist/cli-bundle/main.js +27 -27
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +23 -23
- 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 +7 -7
- package/dist/cli.d.ts +9 -9
- package/dist/core/checkpoint/checkpoint-gc.d.ts +17 -17
- package/dist/core/checkpoint/mutation-checkpoint.d.ts +26 -26
- package/dist/core/config/nested-settings.d.ts +20 -20
- package/dist/core/config/positional-value.d.ts +9 -9
- package/dist/core/diagnostics/remediation.d.ts +7 -7
- package/dist/core/extensions/activation-summary-markdown.d.ts +4 -4
- package/dist/core/extensions/activation-summary.d.ts +30 -30
- package/dist/core/extensions/activation-transaction.d.ts +9 -9
- package/dist/core/extensions/capability-usage.d.ts +25 -25
- package/dist/core/extensions/command-hook-context.d.ts +15 -15
- package/dist/core/extensions/command-metadata-contract.d.ts +1 -1
- package/dist/core/extensions/command-visibility-tier.d.ts +1 -1
- package/dist/core/extensions/contribution-inventory.d.ts +24 -24
- package/dist/core/extensions/exporter-output-contract.d.ts +4 -4
- package/dist/core/extensions/extension-candidate.d.ts +14 -14
- package/dist/core/extensions/extension-capability-aliases.d.ts +14 -14
- package/dist/core/extensions/extension-hook-runtime.d.ts +14 -14
- package/dist/core/extensions/extension-policy.d.ts +62 -62
- package/dist/core/extensions/extension-registries.d.ts +8 -8
- package/dist/core/extensions/extension-runtime-helpers.d.ts +5 -5
- package/dist/core/extensions/extension-types.d.ts +702 -702
- package/dist/core/extensions/flag-definition-validation.d.ts +19 -6
- package/dist/core/extensions/flag-definition-validation.js +1 -1
- package/dist/core/extensions/flag-value-types.d.ts +16 -4
- package/dist/core/extensions/flag-value-types.js +1 -1
- package/dist/core/extensions/index.d.ts +34 -34
- package/dist/core/extensions/item-field-types.d.ts +3 -3
- package/dist/core/extensions/item-fields.d.ts +6 -6
- package/dist/core/extensions/loader.d.ts +66 -66
- package/dist/core/extensions/manifest-parser.d.ts +1 -1
- package/dist/core/extensions/manifest-schema.d.ts +13 -13
- package/dist/core/extensions/module-graph-snapshot.d.ts +5 -5
- package/dist/core/extensions/preflight-ownership.d.ts +3 -3
- package/dist/core/extensions/read-output-contract.d.ts +2 -2
- package/dist/core/extensions/registration-contracts.d.ts +12 -12
- package/dist/core/extensions/registration-validation.d.ts +6 -6
- package/dist/core/extensions/registration-values.d.ts +19 -19
- package/dist/core/extensions/reserved-host-flags.d.ts +5 -5
- package/dist/core/extensions/runtime-registrations.d.ts +6 -6
- package/dist/core/extensions/service-ownership.d.ts +1 -1
- package/dist/core/extensions/version-compat.d.ts +9 -9
- package/dist/core/fs/atomic-create.d.ts +1 -1
- package/dist/core/fs/fs-utils.d.ts +12 -12
- package/dist/core/fs/host-environment-errors.d.ts +10 -10
- package/dist/core/fs/path-utils.d.ts +1 -1
- package/dist/core/governance/content-fields.d.ts +25 -25
- package/dist/core/governance/issue-codes.d.ts +16 -16
- package/dist/core/governance/metadata-coverage.d.ts +64 -64
- package/dist/core/history/digest.d.ts +5 -5
- package/dist/core/history/drift-cache.d.ts +2 -2
- package/dist/core/history/drift-scan.d.ts +18 -18
- package/dist/core/history/event-classification.d.ts +4 -4
- package/dist/core/history/event-index.d.ts +33 -33
- package/dist/core/history/history-compact-bulk.d.ts +12 -12
- package/dist/core/history/history-diff.d.ts +15 -15
- package/dist/core/history/history-rewrite.d.ts +43 -43
- package/dist/core/history/history-storage-stats.d.ts +20 -20
- package/dist/core/history/history-stream-policy.d.ts +12 -12
- package/dist/core/history/history.d.ts +45 -45
- package/dist/core/history/identity.d.ts +4 -4
- package/dist/core/history/operation-contract.d.ts +17 -17
- package/dist/core/history/projection.d.ts +16 -16
- package/dist/core/history/read.d.ts +4 -4
- package/dist/core/history/replay.d.ts +47 -47
- package/dist/core/history/tombstone.d.ts +1 -1
- package/dist/core/history/version-address.d.ts +2 -2
- package/dist/core/history/workspace-history.d.ts +72 -72
- package/dist/core/io/body-file.d.ts +2 -2
- package/dist/core/io/bulk-ids-input.d.ts +7 -7
- package/dist/core/item/actionability.d.ts +30 -30
- package/dist/core/item/dependency-reference.d.ts +2 -2
- package/dist/core/item/id.d.ts +9 -9
- package/dist/core/item/item-format-version.d.ts +17 -15
- package/dist/core/item/item-format-version.js +1 -1
- package/dist/core/item/item-format.d.ts +54 -54
- package/dist/core/item/item-record.d.ts +1 -1
- package/dist/core/item/item-type-definition.d.ts +11 -11
- package/dist/core/item/parent-reference-policy.d.ts +6 -6
- package/dist/core/item/parse.d.ts +37 -37
- package/dist/core/item/plan-lifecycle.d.ts +4 -4
- package/dist/core/item/priority.d.ts +3 -3
- package/dist/core/item/sprint-release-format.d.ts +4 -4
- package/dist/core/item/status-filter.d.ts +5 -5
- package/dist/core/item/status.d.ts +3 -3
- package/dist/core/item/toon-decode.d.ts +10 -10
- package/dist/core/item/type-registry.d.ts +35 -35
- package/dist/core/item/type-synonyms.d.ts +2 -2
- package/dist/core/lock/lock-gc.d.ts +28 -28
- package/dist/core/lock/lock.d.ts +53 -53
- package/dist/core/output/mutation-projection.d.ts +4 -4
- package/dist/core/output/output-control.d.ts +4 -4
- package/dist/core/output/output.d.ts +30 -30
- package/dist/core/output/query-summary.d.ts +5 -5
- package/dist/core/output/tabular.d.ts +3 -3
- package/dist/core/packages/manifest.d.ts +30 -30
- package/dist/core/packages/root.d.ts +4 -4
- package/dist/core/policy/workflow-policy-schema.d.ts +291 -291
- package/dist/core/policy/workflow-policy-store.d.ts +15 -15
- package/dist/core/policy/workflow-policy.d.ts +56 -56
- package/dist/core/profile/profile-describe.d.ts +22 -22
- package/dist/core/profile/profile-lint.d.ts +13 -13
- package/dist/core/profile/profile-plan.d.ts +45 -45
- package/dist/core/profile/profile-presets.d.ts +36 -36
- package/dist/core/reproducibility/context.d.ts +9 -9
- package/dist/core/schema/fields-file.d.ts +35 -35
- package/dist/core/schema/item-types-file.d.ts +29 -29
- package/dist/core/schema/runtime-field-filters.d.ts +3 -3
- package/dist/core/schema/runtime-field-values.d.ts +7 -7
- package/dist/core/schema/runtime-schema.d.ts +59 -59
- package/dist/core/schema/status-defs-file.d.ts +29 -29
- package/dist/core/schema/status-token.d.ts +1 -1
- package/dist/core/schema/type-inference.d.ts +10 -10
- package/dist/core/schema/type-presets.d.ts +5 -5
- package/dist/core/schema/type-workflows.d.ts +14 -14
- package/dist/core/search/background-refresh.d.ts +12 -12
- package/dist/core/search/bm25.d.ts +16 -16
- package/dist/core/search/cache.d.ts +34 -34
- package/dist/core/search/corpus.d.ts +17 -17
- package/dist/core/search/embedding-batches.d.ts +25 -25
- package/dist/core/search/eval-thresholds.d.ts +4 -4
- package/dist/core/search/eval.d.ts +40 -40
- package/dist/core/search/http-client.d.ts +24 -24
- package/dist/core/search/providers.d.ts +30 -30
- package/dist/core/search/relevance.d.ts +17 -17
- package/dist/core/search/semantic-defaults.d.ts +5 -5
- package/dist/core/search/staleness.d.ts +3 -3
- package/dist/core/search/vector-stores.d.ts +51 -51
- package/dist/core/search/vectorization-metadata.d.ts +9 -9
- package/dist/core/sentry/helpers.d.ts +28 -26
- package/dist/core/sentry/helpers.js +1 -1
- package/dist/core/sentry/instrument.d.ts +52 -50
- package/dist/core/sentry/instrument.js +1 -1
- package/dist/core/sentry/sensitive-assignments.d.ts +9 -0
- package/dist/core/sentry/sensitive-assignments.js +2 -0
- package/dist/core/session/session-state.d.ts +37 -37
- package/dist/core/shared/agent-session-context.d.ts +14 -14
- package/dist/core/shared/author.d.ts +89 -89
- package/dist/core/shared/command-line.d.ts +3 -3
- package/dist/core/shared/command-types.d.ts +20 -20
- package/dist/core/shared/conflict-markers.d.ts +5 -5
- package/dist/core/shared/constants.d.ts +30 -30
- package/dist/core/shared/errors.d.ts +100 -100
- package/dist/core/shared/html-entity-decode.d.ts +2 -2
- 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/memo.d.ts +1 -1
- package/dist/core/shared/numeric-parsers.d.ts +1 -1
- package/dist/core/shared/option-alias-visibility.d.ts +3 -3
- package/dist/core/shared/primitives.d.ts +13 -13
- package/dist/core/shared/secret-rules.d.ts +92 -92
- package/dist/core/shared/serial-queue.d.ts +6 -6
- package/dist/core/shared/serialization.d.ts +4 -4
- package/dist/core/shared/split-comma-list.d.ts +4 -4
- package/dist/core/shared/text-normalization.d.ts +3 -3
- package/dist/core/shared/time.d.ts +27 -27
- package/dist/core/store/item-format-migration.d.ts +7 -7
- package/dist/core/store/item-metadata-cache.d.ts +30 -30
- package/dist/core/store/item-metadata-query-index.d.ts +66 -66
- package/dist/core/store/item-metadata-read-work.d.ts +6 -6
- package/dist/core/store/item-store.d.ts +123 -123
- package/dist/core/store/item-store.js +1 -1
- package/dist/core/store/paths.d.ts +27 -27
- package/dist/core/store/settings-concurrency.d.ts +1 -1
- package/dist/core/store/settings-read-cache.d.ts +11 -11
- package/dist/core/store/settings-validator.d.ts +117 -117
- package/dist/core/store/settings.d.ts +84 -84
- package/dist/core/store/sqlite-runtime.d.ts +2 -2
- package/dist/core/store/tracker-preflight.d.ts +3 -3
- package/dist/core/telemetry/consent.d.ts +1 -1
- package/dist/core/telemetry/observability.d.ts +16 -16
- package/dist/core/telemetry/policy.d.ts +7 -7
- package/dist/core/telemetry/read-sampling.d.ts +1 -1
- package/dist/core/telemetry/runtime.d.ts +275 -275
- package/dist/core/telemetry/runtime.js +2 -2
- package/dist/core/test/background-runs.d.ts +123 -123
- package/dist/core/test/item-test-run-tracking.d.ts +10 -10
- package/dist/core/test/run-selectors.d.ts +12 -12
- package/dist/core/validate/estimate-defaults.d.ts +3 -3
- package/dist/core/validate/fix-planning.d.ts +36 -36
- package/dist/core/validate/linked-artifact-reference.d.ts +1 -1
- package/dist/core/validate/missing-by-type.d.ts +3 -3
- package/dist/core/validate/missing-link-owners.d.ts +17 -17
- package/dist/core/validate/stale-file-classification.d.ts +6 -6
- package/dist/mcp/http-server.d.ts +26 -26
- package/dist/mcp/legacy-adapter.d.ts +18 -18
- package/dist/mcp/runtime-capabilities.d.ts +18 -18
- package/dist/mcp/server.d.ts +73 -73
- package/dist/mcp/tool-definitions.d.ts +27 -27
- package/dist/sdk/actionability.d.ts +1 -1
- package/dist/sdk/agent/closed-domain-contracts.d.ts +11 -11
- package/dist/sdk/agent/command-recovery.d.ts +5 -5
- package/dist/sdk/agent/command-suggestions.d.ts +4 -4
- package/dist/sdk/agent/create-option-policy.d.ts +2 -2
- package/dist/sdk/agent/identity-config.d.ts +18 -18
- package/dist/sdk/agent/item-addressing.d.ts +6 -6
- package/dist/sdk/agent/refusal-closure-census.d.ts +26 -26
- package/dist/sdk/agent/refusal-closure.d.ts +22 -22
- package/dist/sdk/agent/refusal-corpus-contracts.d.ts +26 -26
- package/dist/sdk/agent/refusal-reachability.d.ts +65 -65
- package/dist/sdk/agent/subcommand-recovery.d.ts +20 -20
- package/dist/sdk/agent/task-transcript-contracts.d.ts +18 -18
- package/dist/sdk/agent/tracker-preflight-contracts.d.ts +21 -21
- package/dist/sdk/agent-capability-contracts.d.ts +41 -41
- package/dist/sdk/agent-session-context.d.ts +1 -1
- package/dist/sdk/annotations.d.ts +74 -74
- package/dist/sdk/author-attribution.d.ts +47 -47
- package/dist/sdk/authoring.d.ts +9 -9
- package/dist/sdk/cli-bootstrap.d.ts +65 -65
- package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +56 -56
- package/dist/sdk/cli-contracts/bootstrap-command-scanner.d.ts +6 -6
- package/dist/sdk/cli-contracts/command-aliases.d.ts +19 -19
- package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +66 -66
- package/dist/sdk/cli-contracts/commander-mutation-options.d.ts +7 -7
- package/dist/sdk/cli-contracts/commander-types.d.ts +18 -18
- package/dist/sdk/cli-contracts/completeness.d.ts +14 -14
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +28 -28
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +114 -112
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +27 -27
- package/dist/sdk/cli-contracts/grammar-contracts.d.ts +61 -61
- package/dist/sdk/cli-contracts/registration-helpers.d.ts +56 -56
- package/dist/sdk/cli-contracts/runtime-contracts.d.ts +250 -250
- package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
- package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +678 -678
- package/dist/sdk/cli-contracts/string-lists.d.ts +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +564 -564
- package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +13 -13
- package/dist/sdk/cli-contracts/tool-schema.d.ts +54 -54
- package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +20 -20
- package/dist/sdk/cli-contracts.d.ts +15 -15
- package/dist/sdk/cli-program.d.ts +1 -1
- package/dist/sdk/cli-program.js +1 -1
- package/dist/sdk/command-line.d.ts +3 -3
- package/dist/sdk/comments.d.ts +24 -24
- package/dist/sdk/compile-cache.d.ts +4 -4
- package/dist/sdk/completion/bash.d.ts +1 -1
- package/dist/sdk/completion/fish.d.ts +1 -1
- package/dist/sdk/completion/shared.d.ts +74 -74
- package/dist/sdk/completion/zsh.d.ts +1 -1
- package/dist/sdk/completion.d.ts +3 -3
- package/dist/sdk/compose.d.ts +94 -94
- package/dist/sdk/config.d.ts +105 -105
- package/dist/sdk/context/recency.d.ts +1 -1
- package/dist/sdk/context/semantic-session-attribution.d.ts +23 -23
- package/dist/sdk/context/usage-egress.d.ts +1 -1
- package/dist/sdk/context/usage-ledger.d.ts +18 -18
- package/dist/sdk/context-intent-contracts.d.ts +37 -37
- package/dist/sdk/context-intent-runtime.d.ts +10 -10
- package/dist/sdk/context-packing.d.ts +44 -44
- package/dist/sdk/context-relevance.d.ts +110 -110
- package/dist/sdk/context-signal-store.d.ts +52 -52
- package/dist/sdk/context-usage.d.ts +78 -78
- package/dist/sdk/contracts.d.ts +2 -1
- package/dist/sdk/contracts.js +1 -1
- package/dist/sdk/core-governance.d.ts +5 -5
- package/dist/sdk/core.d.ts +8 -8
- package/dist/sdk/corpus-shape.d.ts +60 -60
- package/dist/sdk/define.d.ts +36 -36
- package/dist/sdk/dependencies.d.ts +70 -70
- package/dist/sdk/dependency-flag-validation.d.ts +17 -17
- package/dist/sdk/dependency-provenance.d.ts +22 -22
- package/dist/sdk/docs.d.ts +17 -17
- package/dist/sdk/duplicates.d.ts +14 -14
- package/dist/sdk/environment/agent-environment.d.ts +118 -118
- package/dist/sdk/environment/host-environment-errors.d.ts +1 -1
- package/dist/sdk/environment/project-runtime-compatibility.d.ts +42 -40
- package/dist/sdk/environment/project-runtime-compatibility.js +2 -2
- package/dist/sdk/environment/source-context.d.ts +4 -4
- package/dist/sdk/environment/tracker-preflight.d.ts +1 -1
- package/dist/sdk/error-code-catalog.d.ts +33 -33
- package/dist/sdk/error-runtime.d.ts +5 -5
- package/dist/sdk/errors.d.ts +17 -17
- package/dist/sdk/eval.d.ts +27 -27
- package/dist/sdk/extension/author-manifest.d.ts +9 -9
- package/dist/sdk/extension/bundled-catalog.d.ts +18 -18
- package/dist/sdk/extension/concurrency.d.ts +1 -1
- package/dist/sdk/extension/copy-scope.d.ts +1 -1
- package/dist/sdk/extension/custom-field-collisions.d.ts +1 -1
- package/dist/sdk/extension/describe.d.ts +21 -21
- package/dist/sdk/extension/doctor.d.ts +46 -46
- package/dist/sdk/extension/install-plan.d.ts +32 -32
- package/dist/sdk/extension/install-receipts.d.ts +4 -4
- package/dist/sdk/extension/install-runtime.d.ts +12 -12
- package/dist/sdk/extension/install-snapshot.d.ts +10 -10
- package/dist/sdk/extension/install-sources.d.ts +106 -106
- package/dist/sdk/extension/managed-state.d.ts +42 -42
- package/dist/sdk/extension/managed-update-status.d.ts +1 -1
- package/dist/sdk/extension/migrations.d.ts +48 -48
- package/dist/sdk/extension/output-ownership.d.ts +19 -19
- package/dist/sdk/extension/runtime-summary.d.ts +7 -7
- package/dist/sdk/extension/scaffold.d.ts +15 -15
- package/dist/sdk/extension/shared.d.ts +16 -16
- package/dist/sdk/extension/source-resolution.d.ts +16 -16
- package/dist/sdk/extension/static-inventory.d.ts +23 -23
- package/dist/sdk/extension/update-check.d.ts +9 -9
- package/dist/sdk/extension-command-context.d.ts +1 -1
- package/dist/sdk/extension-contracts.d.ts +10 -10
- package/dist/sdk/extension.d.ts +221 -221
- package/dist/sdk/files.d.ts +101 -101
- package/dist/sdk/flag-invocation-contracts.d.ts +25 -25
- package/dist/sdk/flag-invocation-contracts.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-1.d.ts +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-2.d.ts +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 +19 -19
- package/dist/sdk/governance/assurance-action-contracts.d.ts +1 -1
- package/dist/sdk/governance/assurance-action.d.ts +46 -46
- package/dist/sdk/governance/assurance-mutation-error.d.ts +20 -20
- package/dist/sdk/governance/assurance-presets.d.ts +25 -25
- package/dist/sdk/governance/assurance-runtime.d.ts +10 -10
- package/dist/sdk/governance/assurance.d.ts +204 -204
- package/dist/sdk/governance/boundary-fixtures.d.ts +32 -32
- package/dist/sdk/governance/closure-timestamps.d.ts +10 -10
- package/dist/sdk/governance/coverage-assurance.d.ts +7 -7
- package/dist/sdk/governance/defect-recurrence-coverage.d.ts +40 -40
- package/dist/sdk/governance/defect-recurrence-graph.d.ts +11 -11
- package/dist/sdk/governance/defect-recurrence-signals.d.ts +1 -1
- package/dist/sdk/governance/defect-recurrence.d.ts +97 -97
- package/dist/sdk/governance/defect-recurrence.js +2 -1
- package/dist/sdk/governance/extension-host-version.d.ts +9 -9
- package/dist/sdk/governance/gc.d.ts +26 -26
- package/dist/sdk/governance/health-merge-evidence.d.ts +8 -8
- package/dist/sdk/governance/health.d.ts +172 -172
- package/dist/sdk/governance/health.js +1 -1
- package/dist/sdk/governance/hierarchy-validation.d.ts +16 -16
- package/dist/sdk/governance/linked-file-report.d.ts +15 -15
- package/dist/sdk/governance/merge-receipt-history.d.ts +24 -24
- package/dist/sdk/governance/provenance-health.d.ts +35 -35
- package/dist/sdk/governance/reindex.d.ts +102 -102
- package/dist/sdk/governance/reliability.d.ts +29 -29
- package/dist/sdk/governance/stale-work.d.ts +13 -13
- package/dist/sdk/governance/status-role-diagnostics.d.ts +8 -8
- package/dist/sdk/governance/storage-integrity.d.ts +28 -28
- package/dist/sdk/governance/tracked-runtime-cache.d.ts +7 -7
- package/dist/sdk/governance/upgrade.d.ts +77 -77
- package/dist/sdk/governance/validate-history-drift.d.ts +3 -3
- package/dist/sdk/governance/validate-item-reader.d.ts +9 -9
- package/dist/sdk/governance/validate-normalization.d.ts +4 -4
- package/dist/sdk/governance/validate.d.ts +176 -176
- package/dist/sdk/governance/validate.js +1 -1
- package/dist/sdk/governance/workflow-completeness.d.ts +15 -15
- package/dist/sdk/governance/workflow-policy.d.ts +18 -18
- package/dist/sdk/governance/workspace-position.d.ts +40 -40
- package/dist/sdk/governance.d.ts +2 -2
- package/dist/sdk/graph/adapter.d.ts +45 -45
- package/dist/sdk/graph/analytics.d.ts +36 -36
- package/dist/sdk/graph/assembly.d.ts +51 -51
- package/dist/sdk/graph/cache.d.ts +19 -19
- package/dist/sdk/graph/cardinality-integrity.d.ts +4 -4
- package/dist/sdk/graph/centrality.d.ts +20 -20
- package/dist/sdk/graph/conformance.d.ts +21 -21
- package/dist/sdk/graph/deadline-scheduling.d.ts +30 -30
- package/dist/sdk/graph/durable-cache.d.ts +22 -22
- package/dist/sdk/graph/governance-contracts.d.ts +1 -1
- package/dist/sdk/graph/governance.d.ts +92 -92
- package/dist/sdk/graph/hierarchy-integrity.d.ts +32 -32
- package/dist/sdk/graph/index.d.ts +15 -15
- package/dist/sdk/graph/lifecycle-coverage.d.ts +12 -12
- package/dist/sdk/graph/mutation-advisory.d.ts +15 -15
- package/dist/sdk/graph/query-contracts.d.ts +6 -6
- package/dist/sdk/graph/remediation.d.ts +15 -15
- package/dist/sdk/graph/run.d.ts +203 -203
- package/dist/sdk/graph/scheduling.d.ts +21 -21
- package/dist/sdk/graph/traversal.d.ts +18 -18
- package/dist/sdk/graph/workspace-relationship-kind-registry.d.ts +1 -1
- package/dist/sdk/guide-topics.d.ts +19 -19
- package/dist/sdk/guide.d.ts +43 -43
- package/dist/sdk/history/attestation-command.d.ts +8 -8
- package/dist/sdk/history/attestation-contract.d.ts +43 -43
- package/dist/sdk/history/attestation-scan.d.ts +4 -4
- package/dist/sdk/history/attestation.d.ts +4 -4
- package/dist/sdk/history/maintenance.d.ts +25 -25
- package/dist/sdk/history/salvage.d.ts +19 -19
- package/dist/sdk/history/subject.d.ts +8 -8
- package/dist/sdk/history-analytics.d.ts +64 -64
- package/dist/sdk/history-compact.d.ts +67 -67
- package/dist/sdk/history-mcp.d.ts +7 -7
- package/dist/sdk/history-provenance.d.ts +40 -40
- package/dist/sdk/history-read.d.ts +24 -24
- package/dist/sdk/history-redact.d.ts +68 -68
- package/dist/sdk/history-repair.d.ts +92 -92
- package/dist/sdk/improvement-ledger-validation.d.ts +1 -1
- package/dist/sdk/improvement-ledger.d.ts +62 -62
- package/dist/sdk/index.d.ts +69 -69
- package/dist/sdk/init-agent-guidance.d.ts +68 -68
- package/dist/sdk/init.d.ts +117 -117
- package/dist/sdk/invocation-author.d.ts +1 -1
- package/dist/sdk/item-children.d.ts +15 -15
- package/dist/sdk/item-metadata-index.d.ts +2 -2
- package/dist/sdk/item-schedule.d.ts +9 -9
- package/dist/sdk/item-transaction.d.ts +73 -73
- package/dist/sdk/learnings.d.ts +23 -23
- package/dist/sdk/lifecycle/append.d.ts +8 -8
- package/dist/sdk/lifecycle/claim.d.ts +38 -38
- package/dist/sdk/lifecycle/close-many.d.ts +71 -71
- package/dist/sdk/lifecycle/close.d.ts +18 -18
- package/dist/sdk/lifecycle/copy.d.ts +10 -10
- package/dist/sdk/lifecycle/core-field-recovery.d.ts +1 -1
- package/dist/sdk/lifecycle/create.d.ts +88 -88
- package/dist/sdk/lifecycle/delete.d.ts +15 -15
- package/dist/sdk/lifecycle/event-validation-messages.d.ts +1 -1
- package/dist/sdk/lifecycle/focus.d.ts +6 -6
- package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +6 -6
- package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +35 -35
- package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +3 -3
- package/dist/sdk/lifecycle/mcp-actions.d.ts +10 -10
- package/dist/sdk/lifecycle/metadata-normalizers.d.ts +4 -4
- package/dist/sdk/lifecycle/mutation-command-options.d.ts +58 -58
- package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +1 -1
- package/dist/sdk/lifecycle/plan-mutation-receipt.d.ts +24 -24
- package/dist/sdk/lifecycle/plan.d.ts +127 -127
- package/dist/sdk/lifecycle/recurrence-parsers.d.ts +5 -5
- package/dist/sdk/lifecycle/reopen.d.ts +15 -15
- package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +7 -7
- package/dist/sdk/lifecycle/restore.d.ts +34 -34
- package/dist/sdk/lifecycle/restore.js +1 -1
- package/dist/sdk/lifecycle/shared-unset-fields.d.ts +20 -20
- package/dist/sdk/lifecycle/task-composition.d.ts +7 -7
- package/dist/sdk/lifecycle/update-many.d.ts +61 -61
- package/dist/sdk/lifecycle/update.d.ts +120 -120
- package/dist/sdk/lifecycle-completion.d.ts +14 -14
- package/dist/sdk/lifecycle-policy.d.ts +31 -31
- package/dist/sdk/linked-artifacts.d.ts +58 -58
- package/dist/sdk/mcp/apps.d.ts +28 -28
- package/dist/sdk/mcp/authorization.d.ts +66 -66
- package/dist/sdk/mcp/discovery.d.ts +67 -67
- package/dist/sdk/mcp/interactions.d.ts +49 -49
- package/dist/sdk/mcp/protocol.d.ts +63 -63
- package/dist/sdk/mcp/skills.d.ts +62 -62
- package/dist/sdk/mcp/subscriptions.d.ts +26 -26
- package/dist/sdk/mcp/tasks.d.ts +51 -51
- package/dist/sdk/mcp/transport.d.ts +17 -17
- package/dist/sdk/merge/abandoned-receipts.d.ts +8 -8
- package/dist/sdk/merge/driver.d.ts +38 -38
- package/dist/sdk/merge/index.d.ts +5 -5
- package/dist/sdk/merge/install.d.ts +48 -48
- package/dist/sdk/merge/install.js +1 -1
- package/dist/sdk/merge/receipt-file-boundary.d.ts +6 -6
- package/dist/sdk/merge/receipt-operation.d.ts +6 -6
- package/dist/sdk/merge/receipt-schema.d.ts +11 -11
- package/dist/sdk/merge/receipts.d.ts +111 -111
- package/dist/sdk/merge/reconcile.d.ts +20 -20
- package/dist/sdk/merge/three-way.d.ts +50 -50
- package/dist/sdk/merge/three-way.js +2 -2
- package/dist/sdk/merge/worktree-config.d.ts +3 -3
- package/dist/sdk/mutation-events.d.ts +62 -62
- package/dist/sdk/mutation-guard.d.ts +134 -134
- package/dist/sdk/notes.d.ts +28 -28
- package/dist/sdk/output/table-rows.d.ts +6 -6
- package/dist/sdk/output-contracts.d.ts +26 -26
- package/dist/sdk/output-projection.d.ts +108 -108
- package/dist/sdk/output-token-accounting.d.ts +18 -18
- package/dist/sdk/output.d.ts +18 -18
- package/dist/sdk/ownership-source.d.ts +1 -1
- package/dist/sdk/package-import-adapters.d.ts +51 -51
- package/dist/sdk/package-migrations.d.ts +3 -3
- package/dist/sdk/package-runtime-options.d.ts +3 -3
- package/dist/sdk/pagination.d.ts +28 -28
- package/dist/sdk/pagination.js +1 -1
- package/dist/sdk/profile.d.ts +72 -72
- package/dist/sdk/provenance.d.ts +37 -37
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/activity.d.ts +84 -84
- package/dist/sdk/query/aggregate.d.ts +109 -109
- package/dist/sdk/query/calendar.d.ts +95 -95
- package/dist/sdk/query/complete-list.d.ts +35 -35
- package/dist/sdk/query/context.d.ts +300 -300
- package/dist/sdk/query/duplicate-candidates.d.ts +3 -3
- package/dist/sdk/query/get.d.ts +54 -54
- package/dist/sdk/query/history.d.ts +38 -38
- package/dist/sdk/query/item-filter-options.d.ts +41 -41
- package/dist/sdk/query/light-metadata.d.ts +1 -1
- package/dist/sdk/query/list-filter-shared.d.ts +4 -4
- package/dist/sdk/query/list.d.ts +167 -167
- package/dist/sdk/query/list.js +1 -1
- package/dist/sdk/query/multi-value-filters.d.ts +6 -6
- package/dist/sdk/query/next-ready-budget.d.ts +8 -8
- package/dist/sdk/query/next.d.ts +94 -94
- package/dist/sdk/query/parsers.d.ts +3 -3
- package/dist/sdk/query/projection-contracts.d.ts +18 -18
- package/dist/sdk/query/search/corpus.d.ts +15 -15
- package/dist/sdk/query/search/filters.d.ts +15 -15
- package/dist/sdk/query/search/input.d.ts +8 -8
- package/dist/sdk/query/search/lexical.d.ts +10 -10
- package/dist/sdk/query/search/response.d.ts +22 -22
- package/dist/sdk/query/search/semantic.d.ts +133 -133
- package/dist/sdk/query/search/types.d.ts +65 -65
- package/dist/sdk/query/search-contracts.d.ts +53 -53
- package/dist/sdk/query/search-pagination.d.ts +21 -21
- package/dist/sdk/query/search-rendering.d.ts +30 -30
- package/dist/sdk/query/search.d.ts +60 -60
- package/dist/sdk/query/workspace-contracts.d.ts +2 -2
- package/dist/sdk/query.d.ts +6 -6
- package/dist/sdk/read-output/continuation.d.ts +11 -11
- package/dist/sdk/read-output/extension.d.ts +3 -3
- package/dist/sdk/read-output/options.d.ts +7 -7
- package/dist/sdk/read-output/provenance.d.ts +6 -6
- package/dist/sdk/read-output-budget.d.ts +11 -11
- package/dist/sdk/read-output-contracts.d.ts +112 -112
- package/dist/sdk/read-output-contracts.js +1 -1
- package/dist/sdk/read-output-rows.d.ts +15 -15
- package/dist/sdk/read-output-session.d.ts +29 -29
- package/dist/sdk/relationship-analytics.d.ts +46 -46
- package/dist/sdk/relationship-context.d.ts +48 -48
- package/dist/sdk/relationship-history.d.ts +59 -59
- package/dist/sdk/relationship-kinds/contract.d.ts +18 -18
- package/dist/sdk/relationship-migration.d.ts +14 -14
- package/dist/sdk/relationships.d.ts +46 -46
- package/dist/sdk/reproducibility/process.d.ts +9 -9
- package/dist/sdk/runtime/actions.d.ts +1 -1
- package/dist/sdk/runtime/context.d.ts +15 -15
- package/dist/sdk/runtime/schema-preview.d.ts +1 -1
- package/dist/sdk/runtime/schema.d.ts +1 -1
- package/dist/sdk/runtime-action-aliases.d.ts +3 -3
- package/dist/sdk/runtime-extended-actions.d.ts +9 -9
- package/dist/sdk/runtime-input.d.ts +29 -29
- package/dist/sdk/runtime-primitives.d.ts +54 -52
- package/dist/sdk/runtime-primitives.js +1 -1
- package/dist/sdk/runtime-public-contracts.d.ts +46 -46
- package/dist/sdk/runtime-stats-options.d.ts +1 -1
- package/dist/sdk/runtime.d.ts +374 -374
- package/dist/sdk/scheduling-shortcuts.d.ts +19 -19
- package/dist/sdk/schema-migration.d.ts +79 -79
- package/dist/sdk/schema.d.ts +224 -224
- package/dist/sdk/search-refresh-worker.d.ts +1 -1
- package/dist/sdk/similarity-scoring.d.ts +10 -10
- package/dist/sdk/similarity.d.ts +73 -73
- package/dist/sdk/start-task-status.d.ts +1 -1
- package/dist/sdk/stats.d.ts +72 -72
- package/dist/sdk/structured-mutations.d.ts +13 -13
- package/dist/sdk/telemetry-flush.d.ts +1 -1
- package/dist/sdk/telemetry.d.ts +32 -32
- package/dist/sdk/templates.d.ts +35 -35
- package/dist/sdk/test/batch.d.ts +50 -50
- package/dist/sdk/test/command-args.d.ts +2 -2
- package/dist/sdk/test/entry.d.ts +4 -4
- package/dist/sdk/test/execution-receipts.d.ts +5 -5
- package/dist/sdk/test/execution.d.ts +247 -247
- package/dist/sdk/test/json-path.d.ts +4 -4
- package/dist/sdk/test/linked-command-detection.d.ts +36 -36
- package/dist/sdk/test/measurements.d.ts +10 -10
- package/dist/sdk/test/parsers.d.ts +18 -18
- package/dist/sdk/test/prerequisites.d.ts +3 -3
- package/dist/sdk/test/runs.d.ts +43 -43
- package/dist/sdk/test/trust.d.ts +15 -15
- package/dist/sdk/test/update.d.ts +23 -23
- package/dist/sdk/test/workspace-snapshot.d.ts +1 -1
- package/dist/sdk/testing.d.ts +250 -246
- package/dist/sdk/testing.js +2 -2
- package/dist/sdk/traceability/runtime-files-lookup.d.ts +1 -1
- package/dist/sdk/traceability/source-traceability.d.ts +50 -50
- package/dist/sdk/workspace-contracts-cache.d.ts +2 -2
- package/dist/sdk/workspace-contracts.d.ts +20 -20
- package/dist/sdk/workspace-memory.d.ts +42 -42
- package/dist/sdk/workspace-recipe.d.ts +9 -9
- package/dist/sdk/workspace-snapshot.d.ts +60 -60
- package/dist/sdk/workspace-transaction-gc.d.ts +17 -17
- package/dist/sdk/workspace-transaction.d.ts +26 -26
- package/dist/sdk/workspace.d.ts +9 -9
- package/dist/types.d.ts +540 -540
- package/docs/COMMANDS.md +11 -2
- package/docs/CONFIGURATION.md +43 -0
- package/docs/DEFECT_RECURRENCE.md +8 -0
- package/docs/EXTENSIONS.md +1 -1
- package/docs/EXTENSION_AUTHOR_CONTRACTS.md +33 -0
- package/docs/LINKED_TEST_EDITS.md +15 -0
- package/docs/MERGE_SAFETY.md +8 -0
- package/docs/RELEASING.md +2 -0
- package/docs/SDK.md +19 -0
- package/docs/TESTING.md +21 -1
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +4 -3
- package/marketplace.json +1 -1
- package/package.json +3 -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 +9 -3
- package/dist/cli-bundle/chunks/chunk-DJDRHJBP.js +0 -234
- package/dist/cli-bundle/chunks/chunk-DUK5DHI6.js +0 -8
- package/dist/cli-bundle/chunks/chunk-IFPJDJUM.js +0 -20
- package/dist/cli-bundle/chunks/chunk-RL45OYTL.js +0 -6
- package/dist/cli-bundle/chunks/chunk-WYZGZV2M.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-F5J3ATMV.js +0 -165
- package/dist/cli-bundle/focused-chunks/chunk-IOTNG6CN.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-S6ITXQ5T.js +0 -20
- package/dist/cli-bundle/focused-chunks/chunk-UPJA45K7.js +0 -26
package/dist/core/item/id.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/** Normalize a prefix to lowercase ASCII segments followed by one hyphen. */
|
|
2
|
-
export declare function normalizePrefix(input:
|
|
2
|
+
export declare function normalizePrefix(input:string | undefined):string;
|
|
3
3
|
/** Remove surrounding whitespace and optional hash shorthand, then lowercase an id. */
|
|
4
|
-
export declare function normalizeRawItemId(input:
|
|
4
|
+
export declare function normalizeRawItemId(input:string):string;
|
|
5
5
|
/** Apply the normalized workspace prefix unless the supplied id already carries it. */
|
|
6
|
-
export declare function normalizeItemId(input:
|
|
6
|
+
export declare function normalizeItemId(input:string,prefix:string):string;
|
|
7
7
|
/** Bounds accepted for the configurable random id token length (`ids.token_length`). */
|
|
8
8
|
export declare const ID_TOKEN_LENGTH_MIN = 4;
|
|
9
9
|
/** Upper bound for `ids.token_length`; longer tokens stop improving ergonomics without meaningfully improving uniqueness. */
|
|
10
10
|
export declare const ID_TOKEN_LENGTH_MAX = 12;
|
|
11
11
|
/** Clamp a configured id token length into the supported bounds, falling back to the 4-character default for non-finite input. */
|
|
12
|
-
export declare function clampIdTokenLength(value:
|
|
12
|
+
export declare function clampIdTokenLength(value:number | undefined):number;
|
|
13
13
|
/**
|
|
14
14
|
* Mint a new item id as `<prefix><random base36 token>`. The starting token
|
|
15
15
|
* length comes from the workspace `ids.token_length` setting (default 4 for
|
|
@@ -21,8 +21,8 @@ export declare function clampIdTokenLength(value: number | undefined): number;
|
|
|
21
21
|
* For n reserved ids and m unsynchronized creations, choose width L with
|
|
22
22
|
* m*(m-1)/(2*(36^L-n)) below the tolerated per-sync collision probability.
|
|
23
23
|
*/
|
|
24
|
-
export declare function generateItemId(pmRoot:
|
|
25
|
-
tokenLength?:
|
|
26
|
-
typeToFolder?:
|
|
27
|
-
probeExisting?:
|
|
28
|
-
}):
|
|
24
|
+
export declare function generateItemId(pmRoot:string,prefix:string,options?:{
|
|
25
|
+
tokenLength?:number;
|
|
26
|
+
typeToFolder?:Readonly<Record<string,string>>;
|
|
27
|
+
probeExisting?:boolean;
|
|
28
|
+
}):Promise<string>;
|
|
@@ -19,13 +19,14 @@ import type { ItemMetadata } from "../../types/index.js";
|
|
|
19
19
|
/** The original (and implicit) item-metadata format version. Items missing a `pm_format_version` field are always treated as this version, so the baseline is never written to disk and adds no per-item token cost. */
|
|
20
20
|
export declare const BASELINE_ITEM_FORMAT_VERSION = 1;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* {@link BASELINE_ITEM_FORMAT_VERSION} until the first such change.
|
|
22
|
+
* Highest item format understood by this runtime. Ordinary records retain the
|
|
23
|
+
* implicit baseline; linked-test editor stamps require format 2 so earlier
|
|
24
|
+
* published hosts refuse before dropping fields from their canonical hashes.
|
|
25
|
+
* Reading legacy records never changes their format or immutable commitments.
|
|
27
26
|
*/
|
|
28
|
-
export declare const CURRENT_ITEM_FORMAT_VERSION =
|
|
27
|
+
export declare const CURRENT_ITEM_FORMAT_VERSION = 2;
|
|
28
|
+
/** Resolve the minimum format needed to retain persisted linked-test editor metadata. */
|
|
29
|
+
export declare function requiredItemFormatVersion(metadata:Pick<ItemMetadata,"tests" | "pm_format_version">):number;
|
|
29
30
|
/**
|
|
30
31
|
* Resolve the format version an item is effectively stored at. A present,
|
|
31
32
|
* positive-integer `pm_format_version` is taken verbatim (including versions
|
|
@@ -33,7 +34,7 @@ export declare const CURRENT_ITEM_FORMAT_VERSION = 1;
|
|
|
33
34
|
* an absent, malformed, or sub-baseline value resolves to
|
|
34
35
|
* {@link BASELINE_ITEM_FORMAT_VERSION}.
|
|
35
36
|
*/
|
|
36
|
-
export declare function effectiveItemFormatVersion(metadata:
|
|
37
|
+
export declare function effectiveItemFormatVersion(metadata:Pick<ItemMetadata,"pm_format_version">):number;
|
|
37
38
|
/**
|
|
38
39
|
* Reduce an item's `pm_format_version` to its persisted form: the baseline
|
|
39
40
|
* version (and any malformed or sub-baseline value) is dropped so it is never
|
|
@@ -42,32 +43,33 @@ export declare function effectiveItemFormatVersion(metadata: Pick<ItemMetadata,
|
|
|
42
43
|
* current corpus and only writes it once an item genuinely advances past the
|
|
43
44
|
* implicit baseline.
|
|
44
45
|
*/
|
|
45
|
-
export declare function normalizeItemFormatVersion(value:
|
|
46
|
+
export declare function normalizeItemFormatVersion(value:unknown):number | undefined;
|
|
46
47
|
/** Relationship between an item's stored format version and the runtime's current version: `outdated` (below current, a migration would rewrite it), `ahead` (above current, written by a newer pm than this one), or `current`. */
|
|
47
48
|
export type ItemFormatVersionStatus = "current" | "outdated" | "ahead";
|
|
48
49
|
/**
|
|
49
50
|
* Classify a single stored format version against the runtime's current
|
|
50
51
|
* version. Defaults to {@link CURRENT_ITEM_FORMAT_VERSION}; the `current`
|
|
51
52
|
* parameter exists so callers (and tests) can evaluate against a hypothetical
|
|
52
|
-
* future version without mutating the module constant.
|
|
53
|
+
* future version without mutating the module constant. The minimum defaults to
|
|
54
|
+
* the maximum for compatibility; workspace diagnostics pass the readable baseline.
|
|
53
55
|
*/
|
|
54
|
-
export declare function classifyItemFormatVersion(version:
|
|
56
|
+
export declare function classifyItemFormatVersion(version:number,current?:number,minimum?:number):ItemFormatVersionStatus;
|
|
55
57
|
/**
|
|
56
58
|
* One item's reference (id or relative path) paired with the format version it
|
|
57
59
|
* is stored at, used as input to {@link scanItemFormatVersions}.
|
|
58
60
|
*/
|
|
59
61
|
export interface ItemFormatVersionScanEntry {
|
|
60
62
|
/** Value that configures or reports ref for this contract. */
|
|
61
|
-
ref:
|
|
63
|
+
ref:string;
|
|
62
64
|
/** Value that configures or reports version for this contract. */
|
|
63
|
-
version:
|
|
65
|
+
version:number;
|
|
64
66
|
}
|
|
65
67
|
/** Sorted references partitioned by how their stored format version compares to the runtime's current version. References at the current version are omitted from both lists. */
|
|
66
68
|
export interface ItemFormatVersionScanResult {
|
|
67
69
|
/** Value that configures or reports outdated for this contract. */
|
|
68
|
-
outdated:
|
|
70
|
+
outdated:string[];
|
|
69
71
|
/** Value that configures or reports ahead for this contract. */
|
|
70
|
-
ahead:
|
|
72
|
+
ahead:string[];
|
|
71
73
|
}
|
|
72
74
|
/** Partition a set of items by format version into `outdated` (need migration) and `ahead` (written by a newer pm) reference lists, each sorted for stable diagnostics. Pushing all comparison branches into this pure, exhaustively tested helper lets `pm health` and `pm validate` emit findings by iterating the result lists, with no version-comparison branching of their own. */
|
|
73
|
-
export declare function scanItemFormatVersions(entries:
|
|
75
|
+
export declare function scanItemFormatVersions(entries:readonly ItemFormatVersionScanEntry[],current?:number,minimum?:number):ItemFormatVersionScanResult;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
1
|
+
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c35d4830-d7d1-5ee4-99bc-ab52cc3e4e09")}catch{}})();const BASELINE_ITEM_FORMAT_VERSION=1,CURRENT_ITEM_FORMAT_VERSION=2;function requiredItemFormatVersion(metadata){return Math.max(effectiveItemFormatVersion(metadata),metadata.tests?.some(test=>test.updated_by!==void 0||test.updated_at!==void 0)?2:1)}function effectiveItemFormatVersion(metadata){const raw=metadata.pm_format_version;return typeof raw=="number"&&Number.isInteger(raw)&&raw>=1?raw:1}function normalizeItemFormatVersion(value){if(!(typeof value!="number"||!Number.isInteger(value)||value<=1))return value}function classifyItemFormatVersion(version,current=2,minimum=current){return version<minimum?"outdated":version>current?"ahead":"current"}function scanItemFormatVersions(entries,current=2,minimum=current){const outdated=[],ahead=[];for(const entry of entries){const status=classifyItemFormatVersion(entry.version,current,minimum);status==="outdated"?outdated.push(entry.ref):status==="ahead"&&ahead.push(entry.ref)}return{outdated:outdated.sort((left,right)=>left.localeCompare(right)),ahead:ahead.sort((left,right)=>left.localeCompare(right))}}export{BASELINE_ITEM_FORMAT_VERSION,CURRENT_ITEM_FORMAT_VERSION,classifyItemFormatVersion,effectiveItemFormatVersion,normalizeItemFormatVersion,requiredItemFormatVersion,scanItemFormatVersions};
|
|
2
2
|
//# sourceMappingURL=item-format-version.js.map
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import type { ItemDocument,
|
|
1
|
+
import type { ItemDocument,ItemMetadata,RuntimeSchemaSettings,ItemTestRunSummary,LinkedTest,PlanDecision,PlanDiscovery,PlanStep,PlanStepDoc,PlanStepFile,PlanStepLink,PlanValidationCheck } from "../../types/index.js";
|
|
2
2
|
import type { ItemFormat } from "../../types/index.js";
|
|
3
|
-
import { type RuntimeFieldRegistry,
|
|
4
|
-
declare function firstNonZeroComparison(comparisons:
|
|
3
|
+
import { type RuntimeFieldRegistry,type RuntimeStatusRegistry } from "../schema/runtime-schema.js";
|
|
4
|
+
declare function firstNonZeroComparison(comparisons:readonly number[]):number;
|
|
5
5
|
interface RuntimeSchemaValidationContext {
|
|
6
|
-
statusRegistry?:
|
|
7
|
-
fieldRegistry?:
|
|
8
|
-
unknownFieldPolicy:
|
|
9
|
-
extensionFieldNames:
|
|
10
|
-
onWarning?:
|
|
6
|
+
statusRegistry?:RuntimeStatusRegistry;
|
|
7
|
+
fieldRegistry?:RuntimeFieldRegistry;
|
|
8
|
+
unknownFieldPolicy:"allow" | "warn" | "reject";
|
|
9
|
+
extensionFieldNames:ReadonlySet<string>;
|
|
10
|
+
onWarning?:(warning:string) => void;
|
|
11
11
|
}
|
|
12
12
|
/** Documents the item document format options payload exchanged by command, SDK, and package integrations. */
|
|
13
13
|
export interface ItemDocumentFormatOptions {
|
|
14
14
|
/** Value that configures or reports format for this contract. */
|
|
15
|
-
format?:
|
|
15
|
+
format?:ItemFormat;
|
|
16
16
|
/** Value that configures or reports schema for this contract. */
|
|
17
|
-
schema?:
|
|
17
|
+
schema?:RuntimeSchemaSettings;
|
|
18
18
|
/** Value that configures or reports extension field names for this contract. */
|
|
19
|
-
extensionFieldNames?:
|
|
19
|
+
extensionFieldNames?:readonly string[];
|
|
20
20
|
/** Value that configures or reports on warning for this contract. */
|
|
21
|
-
onWarning?:
|
|
21
|
+
onWarning?:(warning:string) => void;
|
|
22
22
|
/** Refuse ahead-of-runtime markers before metadata validation; raw inspection defaults to preserving them. */
|
|
23
|
-
requireSupportedFormat?:
|
|
23
|
+
requireSupportedFormat?:boolean;
|
|
24
24
|
}
|
|
25
|
-
declare function runtimeFieldRequiredForType(definition:
|
|
26
|
-
declare function buildKnownItemMetadataKeys(runtimeContext:
|
|
27
|
-
declare function normalizeTestRunSummaries(values:
|
|
28
|
-
declare function sortTests(values:
|
|
25
|
+
declare function runtimeFieldRequiredForType(definition:RuntimeFieldRegistry["definitions"][number],typeName:string):boolean;
|
|
26
|
+
declare function buildKnownItemMetadataKeys(runtimeContext:RuntimeSchemaValidationContext):Set<string>;
|
|
27
|
+
declare function normalizeTestRunSummaries(values:ItemTestRunSummary[] | undefined):ItemTestRunSummary[] | undefined;
|
|
28
|
+
declare function sortTests(values:LinkedTest[] | undefined):LinkedTest[] | undefined;
|
|
29
29
|
/** Normalize one linked-test entry consistently for storage and metadata comparisons. */
|
|
30
|
-
export declare function normalizeLinkedTest(value:
|
|
31
|
-
declare function normalizePlanStepLinks(value:
|
|
32
|
-
declare function normalizePlanStepFiles(value:
|
|
33
|
-
declare function normalizePlanStepTests(value:
|
|
34
|
-
command?:
|
|
35
|
-
path?:
|
|
36
|
-
note?:
|
|
30
|
+
export declare function normalizeLinkedTest(value:LinkedTest):LinkedTest;
|
|
31
|
+
declare function normalizePlanStepLinks(value:unknown):PlanStepLink[] | undefined;
|
|
32
|
+
declare function normalizePlanStepFiles(value:unknown):PlanStepFile[] | undefined;
|
|
33
|
+
declare function normalizePlanStepTests(value:unknown):{
|
|
34
|
+
command?:string;
|
|
35
|
+
path?:string;
|
|
36
|
+
note?:string;
|
|
37
37
|
}[] | undefined;
|
|
38
|
-
declare function normalizePlanStepDocs(value:
|
|
39
|
-
declare function normalizePlanSteps(value:
|
|
40
|
-
declare function normalizePlanDecisions(value:
|
|
41
|
-
declare function normalizePlanDiscoveries(value:
|
|
42
|
-
declare function normalizePlanValidation(value:
|
|
43
|
-
declare function normalizeTypeOptions(values:
|
|
44
|
-
declare function normalizeBody(body:
|
|
38
|
+
declare function normalizePlanStepDocs(value:unknown):PlanStepDoc[] | undefined;
|
|
39
|
+
declare function normalizePlanSteps(value:unknown):PlanStep[] | undefined;
|
|
40
|
+
declare function normalizePlanDecisions(value:unknown):PlanDecision[] | undefined;
|
|
41
|
+
declare function normalizePlanDiscoveries(value:unknown):PlanDiscovery[] | undefined;
|
|
42
|
+
declare function normalizePlanValidation(value:unknown):PlanValidationCheck[] | undefined;
|
|
43
|
+
declare function normalizeTypeOptions(values:Record<string,string> | undefined):Record<string,string> | undefined;
|
|
44
|
+
declare function normalizeBody(body:string):string;
|
|
45
45
|
/** Implements normalize item metadata for the public runtime surface of this module. */
|
|
46
|
-
export declare function normalizeItemMetadata(itemMetadata:
|
|
46
|
+
export declare function normalizeItemMetadata(itemMetadata:ItemMetadata,options?:Pick<ItemDocumentFormatOptions,"schema" | "extensionFieldNames" | "onWarning">):ItemMetadata;
|
|
47
47
|
/** Implements split front matter for the public runtime surface of this module. */
|
|
48
|
-
export declare function splitFrontMatter(content:
|
|
49
|
-
frontMatter:
|
|
50
|
-
body:
|
|
48
|
+
export declare function splitFrontMatter(content:string):{
|
|
49
|
+
frontMatter:string;
|
|
50
|
+
body:string;
|
|
51
51
|
};
|
|
52
52
|
/** Implements parse item document for the public runtime surface of this module. */
|
|
53
|
-
export declare function parseItemDocument(content:
|
|
53
|
+
export declare function parseItemDocument(content:string,options?:ItemDocumentFormatOptions):ItemDocument;
|
|
54
54
|
/** Implements serialize item document for the public runtime surface of this module. */
|
|
55
|
-
export declare function serializeItemDocument(document:
|
|
55
|
+
export declare function serializeItemDocument(document:ItemDocument,options?:ItemDocumentFormatOptions):string;
|
|
56
56
|
/** Implements canonical document for the public runtime surface of this module. */
|
|
57
|
-
export declare function canonicalDocument(document:
|
|
57
|
+
export declare function canonicalDocument(document:ItemDocument,options?:Pick<ItemDocumentFormatOptions,"schema" | "extensionFieldNames" | "onWarning">):ItemDocument;
|
|
58
58
|
/** Public contract for test only item format, shared by SDK and presentation-layer consumers. */
|
|
59
|
-
export declare const _testOnlyItemFormat:
|
|
60
|
-
buildKnownItemMetadataKeys:
|
|
61
|
-
firstNonZeroComparison:
|
|
62
|
-
normalizeBody:
|
|
63
|
-
normalizePlanDecisions:
|
|
64
|
-
normalizePlanDiscoveries:
|
|
65
|
-
normalizePlanStepDocs:
|
|
66
|
-
normalizePlanStepFiles:
|
|
67
|
-
normalizePlanStepLinks:
|
|
68
|
-
normalizePlanSteps:
|
|
69
|
-
normalizePlanStepTests:
|
|
70
|
-
normalizePlanValidation:
|
|
71
|
-
normalizeTestRunSummaries:
|
|
72
|
-
normalizeTypeOptions:
|
|
73
|
-
runtimeFieldRequiredForType:
|
|
74
|
-
sortTests:
|
|
59
|
+
export declare const _testOnlyItemFormat:{
|
|
60
|
+
buildKnownItemMetadataKeys:typeof buildKnownItemMetadataKeys;
|
|
61
|
+
firstNonZeroComparison:typeof firstNonZeroComparison;
|
|
62
|
+
normalizeBody:typeof normalizeBody;
|
|
63
|
+
normalizePlanDecisions:typeof normalizePlanDecisions;
|
|
64
|
+
normalizePlanDiscoveries:typeof normalizePlanDiscoveries;
|
|
65
|
+
normalizePlanStepDocs:typeof normalizePlanStepDocs;
|
|
66
|
+
normalizePlanStepFiles:typeof normalizePlanStepFiles;
|
|
67
|
+
normalizePlanStepLinks:typeof normalizePlanStepLinks;
|
|
68
|
+
normalizePlanSteps:typeof normalizePlanSteps;
|
|
69
|
+
normalizePlanStepTests:typeof normalizePlanStepTests;
|
|
70
|
+
normalizePlanValidation:typeof normalizePlanValidation;
|
|
71
|
+
normalizeTestRunSummaries:typeof normalizeTestRunSummaries;
|
|
72
|
+
normalizeTypeOptions:typeof normalizeTypeOptions;
|
|
73
|
+
runtimeFieldRequiredForType:typeof runtimeFieldRequiredForType;
|
|
74
|
+
sortTests:typeof sortTests;
|
|
75
75
|
};
|
|
76
76
|
export {};
|
|
@@ -21,4 +21,4 @@ import type { ItemMetadata } from "../../types/index.js";
|
|
|
21
21
|
* which validate `typeof` at runtime.) `ItemMetadata` is the canonical type,
|
|
22
22
|
* so item-metadata values are accepted as-is.
|
|
23
23
|
*/
|
|
24
|
-
export declare function toItemRecord(item:
|
|
24
|
+
export declare function toItemRecord(item:ItemMetadata):Record<string,unknown>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Defines item parsing, formatting, and lifecycle helpers for Item Type Definition.
|
|
5
5
|
*/
|
|
6
|
-
import type { ItemTypeCommandOptionPolicy,
|
|
6
|
+
import type { ItemTypeCommandOptionPolicy,ItemTypeDefinition,ItemTypeOptionDefinition } from "../../types/index.js";
|
|
7
7
|
/**
|
|
8
8
|
* Shared, pure normalization for {@link ItemTypeDefinition} objects, single-sourced
|
|
9
9
|
* across the runtime item-type registry and settings persistence (pm-v798).
|
|
@@ -20,26 +20,26 @@ import type { ItemTypeCommandOptionPolicy, ItemTypeDefinition, ItemTypeOptionDef
|
|
|
20
20
|
* options normalization, policy dedupe key + stable sort) is shared.
|
|
21
21
|
*/
|
|
22
22
|
/** Dedupe + sort a string list: trim, drop blanks, unique, locale-sorted. */
|
|
23
|
-
export declare function normalizeItemTypeStringList(values:
|
|
23
|
+
export declare function normalizeItemTypeStringList(values:string[] | undefined):string[];
|
|
24
24
|
/** Normalize one type-option definition, or null when its key is blank. */
|
|
25
|
-
export declare function normalizeItemTypeOption(option:
|
|
25
|
+
export declare function normalizeItemTypeOption(option:ItemTypeOptionDefinition):ItemTypeOptionDefinition | null;
|
|
26
26
|
/** Resolves a raw policy `command` value to the canonical "create"/"update" type, or null to drop the policy. Lets each layer plug in its own strictness. */
|
|
27
|
-
export type ResolvePolicyCommand = (command:
|
|
27
|
+
export type ResolvePolicyCommand = (command:string) => ItemTypeCommandOptionPolicy["command"] | null;
|
|
28
28
|
/** Pass-through resolver used by settings persistence: the value is already typed "create" | "update" by the settings validator, so it is kept verbatim. */
|
|
29
|
-
export declare const keepPolicyCommand:
|
|
29
|
+
export declare const keepPolicyCommand:ResolvePolicyCommand;
|
|
30
30
|
/** Strict resolver used by the runtime registry: trims + lowercases and rejects anything other than "create"/"update". */
|
|
31
|
-
export declare const strictPolicyCommand:
|
|
31
|
+
export declare const strictPolicyCommand:ResolvePolicyCommand;
|
|
32
32
|
/** Normalize one command-option policy, or null when invalid (blank option / rejected command). */
|
|
33
|
-
export declare function normalizeItemTypeCommandOptionPolicy(policy:
|
|
33
|
+
export declare function normalizeItemTypeCommandOptionPolicy(policy:ItemTypeCommandOptionPolicy,resolvePolicyCommand:ResolvePolicyCommand):ItemTypeCommandOptionPolicy | null;
|
|
34
34
|
/** Dedupe by `${command}:${option-lowercased}` and stable-sort by command then option. */
|
|
35
|
-
export declare function normalizeItemTypeCommandOptionPolicies(policies:
|
|
35
|
+
export declare function normalizeItemTypeCommandOptionPolicies(policies:ItemTypeCommandOptionPolicy[] | undefined,resolvePolicyCommand:ResolvePolicyCommand):ItemTypeCommandOptionPolicy[];
|
|
36
36
|
/** Documents the normalize item type definition options payload exchanged by command, SDK, and package integrations. */
|
|
37
37
|
export interface NormalizeItemTypeDefinitionOptions {
|
|
38
38
|
/** How to resolve a raw policy `command` value (defaults to {@link keepPolicyCommand}). */
|
|
39
|
-
resolvePolicyCommand?:
|
|
39
|
+
resolvePolicyCommand?:ResolvePolicyCommand;
|
|
40
40
|
}
|
|
41
41
|
/** Validate an execution role before a settings or extension definition enters scheduling. Unknown values fail instead of silently enabling dispatch. */
|
|
42
|
-
export declare function parseItemExecutionRole(value:
|
|
42
|
+
export declare function parseItemExecutionRole(value:unknown):ItemTypeDefinition["execution_role"];
|
|
43
43
|
/**
|
|
44
44
|
* Normalize a full {@link ItemTypeDefinition}, returning null when the name is blank.
|
|
45
45
|
*
|
|
@@ -48,4 +48,4 @@ export declare function parseItemExecutionRole(value: unknown): ItemTypeDefiniti
|
|
|
48
48
|
* emitted when present on the input (presence-preserving) so the distinction
|
|
49
49
|
* between "unset" and "set-but-empty" survives the round-trip.
|
|
50
50
|
*/
|
|
51
|
-
export declare function normalizeItemTypeDefinition(definition:
|
|
51
|
+
export declare function normalizeItemTypeDefinition(definition:ItemTypeDefinition,options?:NormalizeItemTypeDefinitionOptions):ItemTypeDefinition | null;
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { ParentReferencePolicy } from "../../types/index.js";
|
|
7
7
|
/** Implements normalize parent reference policy for the public runtime surface of this module. */
|
|
8
|
-
export declare function normalizeParentReferencePolicy(value:
|
|
8
|
+
export declare function normalizeParentReferencePolicy(value:string | undefined):ParentReferencePolicy;
|
|
9
9
|
/** Implements normalize parent reference value for the public runtime surface of this module. */
|
|
10
|
-
export declare function normalizeParentReferenceValue(rawValue:
|
|
10
|
+
export declare function normalizeParentReferenceValue(rawValue:unknown):string;
|
|
11
11
|
/** Detects parent-style placeholder tokens that should never become stored ids. */
|
|
12
|
-
export declare function isPlaceholderReferenceToken(value:
|
|
12
|
+
export declare function isPlaceholderReferenceToken(value:string):boolean;
|
|
13
13
|
/** Implements validate missing parent reference for the public runtime surface of this module. */
|
|
14
|
-
export declare function validateMissingParentReference(parentId:
|
|
15
|
-
warnings:
|
|
14
|
+
export declare function validateMissingParentReference(parentId:string,policy:ParentReferencePolicy):{
|
|
15
|
+
warnings:string[];
|
|
16
16
|
};
|
|
17
17
|
/** Rejects the one-node hierarchy cycle where an item points at itself. */
|
|
18
|
-
export declare function assertParentReferenceIsNotSelf(itemId:
|
|
18
|
+
export declare function assertParentReferenceIsNotSelf(itemId:string,parentId:string,prefix:string):void;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/** Classify plaintext as structured key/value input using an explicit accepted-key vocabulary. */
|
|
2
|
-
export declare function looksLikeStructuredKeyValueEntry(raw:
|
|
2
|
+
export declare function looksLikeStructuredKeyValueEntry(raw:string,keys:readonly string[]):boolean;
|
|
3
3
|
/** Implements parse tags for the public runtime surface of this module. */
|
|
4
|
-
export declare function parseTags(raw:
|
|
4
|
+
export declare function parseTags(raw:string):string[];
|
|
5
5
|
/** Merge repeated `--add-tags` / `--remove-tags` values into a single normalized tag list. Each entry can itself be CSV or a JSON array, mirroring the format accepted by `--tags`. Returns a deterministically sorted, deduped list. */
|
|
6
|
-
export declare function collectTagFlagValues(values:
|
|
6
|
+
export declare function collectTagFlagValues(values:readonly string[] | undefined):string[];
|
|
7
7
|
/** Split a stored `acceptance_criteria` value into its individual criteria. Criteria are stored as one string joined with `"; "` (repeated `--ac` values accumulate that way), so the semicolon is the criterion boundary and cannot appear inside one criterion; entries are trimmed and blanks dropped. Non-string/absent values yield an empty list. */
|
|
8
|
-
export declare function splitAcceptanceCriteria(value:
|
|
8
|
+
export declare function splitAcceptanceCriteria(value:unknown):string[];
|
|
9
9
|
/** Apply additive/subtractive acceptance-criteria mutations to a base criteria list. Used by `pm update --add-ac/--remove-ac` so individual semicolon-free criteria can be edited without replacing the whole `acceptance_criteria` value (tag-API parity; disjoint additions merge cleanly across branches). Additions append in argv order and dedupe on exact trimmed text; removals match exact trimmed text and report unmatched selectors so a typo never becomes a silent no-op. */
|
|
10
|
-
export declare function applyAcceptanceCriteriaMutations(baseCriteria:
|
|
11
|
-
criteria:
|
|
12
|
-
unmatchedRemovals:
|
|
10
|
+
export declare function applyAcceptanceCriteriaMutations(baseCriteria:readonly string[],add:readonly string[] | undefined,remove:readonly string[] | undefined):{
|
|
11
|
+
criteria:string[];
|
|
12
|
+
unmatchedRemovals:string[];
|
|
13
13
|
};
|
|
14
14
|
/** Apply an additive tag mutation to a base tag list. Used by `pm create` and `pm update` so `--add-tags` extends `--tags` (or the existing tags) without replacing them. Output is sorted + deduped lowercase, matching `parseTags`. */
|
|
15
|
-
export declare function mergeAdditiveTags(baseTags:
|
|
15
|
+
export declare function mergeAdditiveTags(baseTags:readonly string[],add:readonly string[] | undefined):string[];
|
|
16
16
|
/** Apply a subtractive tag mutation to a base tag list. Used by `pm update` so `--remove-tags x,y` prunes those entries without rewriting the full set. Removal is case-insensitive: both the base list and the removal selectors are normalized to canonical lowercase before matching. */
|
|
17
|
-
export declare function applyTagRemovals(baseTags:
|
|
18
|
-
declare function coerceJsonTagArray(trimmed:
|
|
19
|
-
declare function stripCodeFenceEnvelope(value:
|
|
20
|
-
declare function parseMarkdownKeyValueLines(raw:
|
|
17
|
+
export declare function applyTagRemovals(baseTags:readonly string[],remove:readonly string[] | undefined):string[];
|
|
18
|
+
declare function coerceJsonTagArray(trimmed:string):string[] | null;
|
|
19
|
+
declare function stripCodeFenceEnvelope(value:string):string;
|
|
20
|
+
declare function parseMarkdownKeyValueLines(raw:string):Record<string,string> | null;
|
|
21
21
|
/** Implements parse csv kv for the public runtime surface of this module. */
|
|
22
|
-
export declare function parseCsvKv(raw:
|
|
22
|
+
export declare function parseCsvKv(raw:string,optionName:string):Record<string,string>;
|
|
23
23
|
/**
|
|
24
24
|
* Detect a CSV/markdown entry that opens with a generic `key=` token even when
|
|
25
25
|
* that key is unknown (e.g. a typo like `lable=main,path=README.md`). Callers
|
|
@@ -30,9 +30,9 @@ export declare function parseCsvKv(raw: string, optionName: string): Record<stri
|
|
|
30
30
|
* Windows absolute paths (`C:\…`) are excluded so a drive-lettered bare path is
|
|
31
31
|
* never misread as a `C=…` key/value entry.
|
|
32
32
|
*/
|
|
33
|
-
export declare function looksLikeGenericKeyValueEntry(raw:
|
|
33
|
+
export declare function looksLikeGenericKeyValueEntry(raw:string):boolean;
|
|
34
34
|
/** Refuse a comma-bearing bare value whose meaning depends on guessing whether the comma separates values or belongs to one value. */
|
|
35
|
-
export declare function assertNoAmbiguousBareCommaEntry(raw:
|
|
35
|
+
export declare function assertNoAmbiguousBareCommaEntry(raw:string,optionName:string,noun:string,structured:boolean):void;
|
|
36
36
|
/**
|
|
37
37
|
* Reject any key in a parsed CSV/markdown key/value map that is not part of the
|
|
38
38
|
* caller's allowed-key contract, mirroring the strict `test --add` behavior
|
|
@@ -53,44 +53,44 @@ export declare function assertNoAmbiguousBareCommaEntry(raw: string, optionName:
|
|
|
53
53
|
* `--learning`, annotation `--add`) deliberately do NOT call this — there an
|
|
54
54
|
* unrecognized key means "treat the whole entry as plaintext", not an error.
|
|
55
55
|
*/
|
|
56
|
-
export declare function assertNoUnknownCsvKeys(kv:
|
|
56
|
+
export declare function assertNoUnknownCsvKeys(kv:Record<string,string>,optionName:string,allowedKeys:readonly string[]):void;
|
|
57
57
|
/** Documents the stdin token resolver payload exchanged by command, SDK, and package integrations. */
|
|
58
58
|
export interface StdinTokenResolver {
|
|
59
59
|
/** Value that configures or reports resolve value for this contract. */
|
|
60
|
-
resolveValue(value:
|
|
60
|
+
resolveValue(value:string | undefined,optionName:string,resolveToken?:boolean):Promise<string | undefined>;
|
|
61
61
|
/** Value that configures or reports resolve list for this contract. */
|
|
62
|
-
resolveList(values:
|
|
62
|
+
resolveList(values:string[] | undefined,optionName:string,resolveToken?:boolean):Promise<string[] | undefined>;
|
|
63
63
|
}
|
|
64
64
|
/** Mark transport-decoded options whose dash values are data, not stdin tokens. */
|
|
65
|
-
export declare function preserveMutationStdinTokenLiterals<T extends object>(options:
|
|
65
|
+
export declare function preserveMutationStdinTokenLiterals<T extends object>(options:T):T;
|
|
66
66
|
/** Mark selected mutation fields whose dash values are literal transport data. */
|
|
67
|
-
export declare function preserveMutationStdinTokenFields<T extends object>(options:
|
|
67
|
+
export declare function preserveMutationStdinTokenFields<T extends object>(options:T,fields:readonly PropertyKey[]):T;
|
|
68
68
|
/** Copy the complete mutation stdin-token policy across an option clone. */
|
|
69
|
-
export declare function transferMutationStdinTokenPolicy<T extends object>(source:
|
|
69
|
+
export declare function transferMutationStdinTokenPolicy<T extends object>(source:object,target:T):T;
|
|
70
70
|
/** Add a source mutation stdin-token policy without weakening the target. */
|
|
71
|
-
export declare function overlayMutationStdinTokenPolicy<T extends object>(source:
|
|
71
|
+
export declare function overlayMutationStdinTokenPolicy<T extends object>(source:object,target:T):T;
|
|
72
72
|
/** Report whether lifecycle input should interpret dash values as stdin tokens. */
|
|
73
|
-
export declare function shouldResolveMutationStdinTokens(options:
|
|
73
|
+
export declare function shouldResolveMutationStdinTokens(options:object):boolean;
|
|
74
74
|
/** Report whether one mutation field should interpret dash as a stdin token. */
|
|
75
|
-
export declare function shouldResolveMutationStdinTokenField(options:
|
|
75
|
+
export declare function shouldResolveMutationStdinTokenField(options:object,field:PropertyKey):boolean;
|
|
76
76
|
/** Refuse competing stdin-token fields before any resolver starts reading. */
|
|
77
|
-
export declare function assertSingleStdinTokenConsumer(candidates:
|
|
78
|
-
value:
|
|
79
|
-
optionName:
|
|
80
|
-
resolveToken?:
|
|
81
|
-
}[]):
|
|
77
|
+
export declare function assertSingleStdinTokenConsumer(candidates:readonly {
|
|
78
|
+
value:string | readonly string[] | undefined;
|
|
79
|
+
optionName:string;
|
|
80
|
+
resolveToken?:boolean;
|
|
81
|
+
}[]):void;
|
|
82
82
|
/** Resolve a typed mutation option bag only after its complete stdin plan is conflict-free. */
|
|
83
|
-
export declare function resolveMutationStdinTokenFields<T extends object>(options:
|
|
83
|
+
export declare function resolveMutationStdinTokenFields<T extends object>(options:T,scalarFields:readonly (readonly [keyof T & string,string])[],listFields:readonly (readonly [keyof T & string,string])[]):Promise<T>;
|
|
84
84
|
/** Implements create stdin token resolver for the public runtime surface of this module. */
|
|
85
|
-
export declare function createStdinTokenResolver():
|
|
85
|
+
export declare function createStdinTokenResolver():StdinTokenResolver;
|
|
86
86
|
/** Implements parse optional number for the public runtime surface of this module. */
|
|
87
|
-
export declare function parseOptionalNumber(raw:
|
|
87
|
+
export declare function parseOptionalNumber(raw:string,optionName:string):number;
|
|
88
88
|
/** Parse a non-negative integer option such as an item duration estimate. */
|
|
89
|
-
export declare function parseOptionalNonNegativeInteger(raw:
|
|
89
|
+
export declare function parseOptionalNonNegativeInteger(raw:string,optionName:string):number;
|
|
90
90
|
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
91
|
-
export declare const _testOnly:
|
|
92
|
-
coerceJsonTagArray:
|
|
93
|
-
stripCodeFenceEnvelope:
|
|
94
|
-
parseMarkdownKeyValueLines:
|
|
91
|
+
export declare const _testOnly:{
|
|
92
|
+
coerceJsonTagArray:typeof coerceJsonTagArray;
|
|
93
|
+
stripCodeFenceEnvelope:typeof stripCodeFenceEnvelope;
|
|
94
|
+
parseMarkdownKeyValueLines:typeof parseMarkdownKeyValueLines;
|
|
95
95
|
};
|
|
96
96
|
export {};
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Defines the terminal lifecycle semantics shared by Plan command mutations
|
|
5
5
|
* and generic item closure.
|
|
6
6
|
*/
|
|
7
|
-
import type { ItemMetadata,
|
|
7
|
+
import type { ItemMetadata,PlanMode } from "../../types/index.js";
|
|
8
8
|
/** Plan modes that intentionally prevent any further Plan mutation. */
|
|
9
|
-
export declare const TERMINAL_PLAN_MODES:
|
|
9
|
+
export declare const TERMINAL_PLAN_MODES:ReadonlySet<PlanMode>;
|
|
10
10
|
/** Return whether a Plan mode represents a terminal planning state. */
|
|
11
|
-
export declare function isTerminalPlanMode(mode:
|
|
11
|
+
export declare function isTerminalPlanMode(mode:PlanMode | undefined):boolean;
|
|
12
12
|
/** Return whether closing this item should complete its Plan lifecycle in the same mutation. */
|
|
13
|
-
export declare function shouldCompletePlanOnClose(item:
|
|
13
|
+
export declare function shouldCompletePlanOnClose(item:ItemMetadata):boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** Restricts priority values accepted by command, SDK, and storage contracts. */
|
|
2
2
|
export type Priority = 0 | 1 | 2 | 3 | 4;
|
|
3
3
|
/** Canonical mapping from named priority levels to numeric values. Agents and humans frequently write words ("high") instead of numbers, so both create and update accept either form. This single map is the source of truth so the two commands cannot drift apart. */
|
|
4
|
-
export declare const PRIORITY_NAME_TO_VALUE:
|
|
4
|
+
export declare const PRIORITY_NAME_TO_VALUE:Readonly<Record<string,Priority>>;
|
|
5
5
|
/** Human-readable description of every accepted priority form. Reused in error messages so the wording stays consistent across commands. */
|
|
6
|
-
export declare const PRIORITY_ACCEPTED_FORMS_HINT:
|
|
6
|
+
export declare const PRIORITY_ACCEPTED_FORMS_HINT:string;
|
|
7
7
|
/**
|
|
8
8
|
* Resolve a raw `--priority` option value to a numeric 0..4 priority.
|
|
9
9
|
*
|
|
@@ -14,4 +14,4 @@ export declare const PRIORITY_ACCEPTED_FORMS_HINT: string;
|
|
|
14
14
|
*
|
|
15
15
|
* Throws a USAGE error listing BOTH accepted forms for anything else.
|
|
16
16
|
*/
|
|
17
|
-
export declare function resolvePriority(raw:
|
|
17
|
+
export declare function resolvePriority(raw:string | number):Priority;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { SprintReleaseFormatPolicy } from "../../types/index.js";
|
|
7
7
|
/** Implements normalize sprint release format policy for the public runtime surface of this module. */
|
|
8
|
-
export declare function normalizeSprintReleaseFormatPolicy(value:
|
|
8
|
+
export declare function normalizeSprintReleaseFormatPolicy(value:string | undefined):SprintReleaseFormatPolicy;
|
|
9
9
|
/** Implements validate sprint or release value for the public runtime surface of this module. */
|
|
10
|
-
export declare function validateSprintOrReleaseValue(field:
|
|
11
|
-
value:
|
|
12
|
-
warnings:
|
|
10
|
+
export declare function validateSprintOrReleaseValue(field:"sprint" | "release",rawValue:string,policy:SprintReleaseFormatPolicy):{
|
|
11
|
+
value:string;
|
|
12
|
+
warnings:string[];
|
|
13
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RuntimeStatusRegistry } from "../schema/runtime-schema.js";
|
|
2
2
|
import type { ItemStatus } from "../../types/index.js";
|
|
3
3
|
/** Return true when a status-filter input is the standalone all-status sentinel. */
|
|
4
|
-
export declare function isStatusAllFilterInput(raw:
|
|
4
|
+
export declare function isStatusAllFilterInput(raw:unknown):boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Resolve a single status-filter token to a concrete runtime status id.
|
|
7
7
|
*
|
|
@@ -10,13 +10,13 @@ export declare function isStatusAllFilterInput(raw: unknown): boolean;
|
|
|
10
10
|
* Callers decide whether an unrecognized token is an error (strict mode) or is
|
|
11
11
|
* passed through verbatim (lenient mode) — see {@link parseStatusFilterCsv}.
|
|
12
12
|
*/
|
|
13
|
-
export declare function resolveStatusFilterToken(token:
|
|
13
|
+
export declare function resolveStatusFilterToken(token:string,registry:RuntimeStatusRegistry):ItemStatus | undefined;
|
|
14
14
|
/** Documents the parse status filter options payload exchanged by command, SDK, and package integrations. */
|
|
15
15
|
export interface ParseStatusFilterOptions {
|
|
16
16
|
/** When true, an unrecognized token throws a USAGE error with a did-you-mean hint. When false (default), an unrecognized token is passed through verbatim so custom/unknown statuses still compare against item values by their raw string — preserving the long-standing lenient `pm list` behavior. */
|
|
17
|
-
strict?:
|
|
17
|
+
strict?:boolean;
|
|
18
18
|
/** Flag label used in error messages (default: "--status"). */
|
|
19
|
-
flagLabel?:
|
|
19
|
+
flagLabel?:string;
|
|
20
20
|
}
|
|
21
21
|
/** Parse a comma-separated status filter into a de-duplicated list of concrete status ids. A standalone `all` sentinel intentionally resolves to no filter so duplicate-discovery loops can search every lifecycle bucket with the same `--status` flag shape. Shared by `pm list` (lenient) and `pm search` (strict, with a did-you-mean hint on typos) so both surfaces resolve the open/closed/canceled workflow-group aliases identically. */
|
|
22
|
-
export declare function parseStatusFilterCsv(raw:
|
|
22
|
+
export declare function parseStatusFilterCsv(raw:unknown,registry:RuntimeStatusRegistry,options?:ParseStatusFilterOptions):ItemStatus[] | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ItemStatus } from "../../types/index.js";
|
|
2
2
|
import { type RuntimeStatusRegistry } from "../schema/runtime-schema.js";
|
|
3
3
|
/** Implements normalize status input for the public runtime surface of this module. */
|
|
4
|
-
export declare function normalizeStatusInput(value:
|
|
4
|
+
export declare function normalizeStatusInput(value:unknown,registry?:RuntimeStatusRegistry):ItemStatus | undefined;
|
|
5
5
|
/** Normalize a status against the runtime registry, falling back to the original value when normalization does not resolve to a known status. This preserves the long-standing `normalizeStatusInput(status, registry) ?? status` pattern used by query commands so that unknown/custom statuses still compare against registry sets by their raw value. */
|
|
6
|
-
export declare function normalizeStatusForRegistry(status:
|
|
6
|
+
export declare function normalizeStatusForRegistry(status:ItemStatus,registry:RuntimeStatusRegistry):ItemStatus;
|
|
7
7
|
/** Determine whether a status is terminal according to the runtime status registry, applying registry-aware normalization first (with raw fallback). */
|
|
8
|
-
export declare function isTerminalStatus(status:
|
|
8
|
+
export declare function isTerminalStatus(status:ItemStatus,registry:RuntimeStatusRegistry):boolean;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/** Public contract for toon scalar bracket escape upstream pr, shared by SDK and presentation-layer consumers. */
|
|
2
|
-
export declare const TOON_SCALAR_BRACKET_ESCAPE_UPSTREAM_PR:
|
|
2
|
+
export declare const TOON_SCALAR_BRACKET_ESCAPE_UPSTREAM_PR:"https://github.com/toon-format/toon/pull/314";
|
|
3
3
|
/** Historical tracking for the scalar-bracket decoder defect fixed upstream in TOON 2.3.1. */
|
|
4
|
-
export declare const TOON_SCALAR_BRACKET_ESCAPE_TRACKING:
|
|
5
|
-
readonly dependency:
|
|
6
|
-
readonly affected_versions:
|
|
7
|
-
readonly resolved_version:
|
|
8
|
-
readonly upstream_pr:
|
|
9
|
-
readonly workaround_status:
|
|
4
|
+
export declare const TOON_SCALAR_BRACKET_ESCAPE_TRACKING:{
|
|
5
|
+
readonly dependency:"@toon-format/toon";
|
|
6
|
+
readonly affected_versions:"<=2.3.0";
|
|
7
|
+
readonly resolved_version:"2.3.1";
|
|
8
|
+
readonly upstream_pr:"https://github.com/toon-format/toon/pull/314";
|
|
9
|
+
readonly workaround_status:"removed";
|
|
10
10
|
};
|
|
11
11
|
/** Documents the toon decode result payload exchanged by command, SDK, and package integrations. */
|
|
12
12
|
export interface ToonDecodeResult {
|
|
13
13
|
/** The decoded TOON document. */
|
|
14
|
-
value:
|
|
14
|
+
value:unknown;
|
|
15
15
|
/** Always false since TOON 2.3.1 fixed strict scalar-bracket decoding upstream. */
|
|
16
|
-
usedScalarBracketEscape:
|
|
16
|
+
usedScalarBracketEscape:boolean;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Decode a TOON item document with the dependency's strict parser.
|
|
@@ -22,4 +22,4 @@ usedScalarBracketEscape: boolean;
|
|
|
22
22
|
* local retry. Keeping one strict decode path avoids masking malformed input and
|
|
23
23
|
* records `usedScalarBracketEscape: false` for result-shape compatibility.
|
|
24
24
|
*/
|
|
25
|
-
export declare function decodeToonItemContent(content:
|
|
25
|
+
export declare function decodeToonItemContent(content:string):ToonDecodeResult;
|