@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/sdk/query.d.ts
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
export * from "./query/list.js";
|
|
7
7
|
export * from "./query/complete-list.js";
|
|
8
8
|
export * from "./query/search.js";
|
|
9
|
-
export { runActivity,
|
|
9
|
+
export { runActivity,type ActivityCommandOptions,type ActivityEntry,type ActivityResult,type CompactActivityEntry,} from "./query/activity.js";
|
|
10
10
|
export * from "./query/aggregate.js";
|
|
11
11
|
export * from "./query/calendar.js";
|
|
12
|
-
export { CONTEXT_OUTPUT_VALUES,
|
|
12
|
+
export { CONTEXT_OUTPUT_VALUES,applyContextTagProjection,buildChildrenByParent,collectSubtreeIds,compareCriticalItems,mergeSortedWarnings,packRankedContextItems,parseContextDepth,parseContextFocusFields,parseContextSections,projectContextFocusRows,renderContextMarkdown,resolveContextOutputFormat,resolveContextTokenBudget,runContext,toContextFocusItem,toContextPackingSummary,toContextRankingSummary,type BlockerEntry,type ContextAgendaEvent,type ContextFocusItem,type ContextOptions,type ContextOutputFormat,type ContextPackingSummary,type ContextRankingSummary,type ContextResult,type HierarchyChild,type HierarchyNode,type HotFile,type ProgressEntry,type RecentContextItem,type StaleEntry,type TestHealthSummary,type WorkloadEntry,} from "./query/context.js";
|
|
13
13
|
export * from "./query/get.js";
|
|
14
14
|
export * from "./query/history.js";
|
|
15
15
|
export * from "./query/next.js";
|
|
@@ -28,8 +28,8 @@ export * from "./context-signal-store.js";
|
|
|
28
28
|
export * from "./context-usage.js";
|
|
29
29
|
export * from "./workspace-memory.js";
|
|
30
30
|
export * from "./duplicates.js";
|
|
31
|
-
export { evaluateMetricFloors,
|
|
32
|
-
export { analyzeDuplicateItems,
|
|
33
|
-
export { measureItemMetadataReadWork,
|
|
34
|
-
export { executeEmbeddingBatchesWithRetry,
|
|
31
|
+
export { evaluateMetricFloors,parseEvalMetricFloors,EVAL_METRIC_NAMES,type EvalMetricFloors,} from "../core/search/eval-thresholds.js";
|
|
32
|
+
export { analyzeDuplicateItems,type DuplicateItemInput,type DuplicateItemsAnalysis } from "./similarity.js";
|
|
33
|
+
export { measureItemMetadataReadWork,type ItemMetadataReadWork } from "../core/store/item-metadata-read-work.js";
|
|
34
|
+
export { executeEmbeddingBatchesWithRetry,type EmbeddingBatchReceipt,type EmbeddingBatchExecutionOptions,type EmbeddingBatchExecutionResult,type EmbeddingBatchProgressEvent,} from "../core/search/embedding-batches.js";
|
|
35
35
|
export type { EmbeddingProviderConfig } from "../core/search/providers.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import type { PmReadOutputCursorEnvelope,
|
|
1
|
+
import type { PmReadOutputCursorEnvelope,PmReadOutputSurface } from "../read-output-contracts.js";
|
|
2
2
|
/** Stable snapshot policy for a read surface whose probes refresh observation metadata. */
|
|
3
3
|
export interface PmReadOutputContinuationFingerprintPolicy {
|
|
4
4
|
/** Version included in fingerprints so policy changes invalidate older cursors. */
|
|
5
|
-
version:
|
|
5
|
+
version:3;
|
|
6
6
|
/** Declared continuation row paths governed by this policy. */
|
|
7
|
-
paths:
|
|
7
|
+
paths:readonly string[];
|
|
8
8
|
/** Exact direct detail fields excluded for each named dynamic row. */
|
|
9
|
-
ignored_detail_field_names_by_row:
|
|
9
|
+
ignored_detail_field_names_by_row:Readonly<Record<string,readonly string[]>>;
|
|
10
10
|
/** Promise that verdicts, stable configuration, and nonvolatile evidence remain bound. */
|
|
11
|
-
guarantee:
|
|
11
|
+
guarantee:"nonvolatile_snapshot_and_stable_configuration";
|
|
12
12
|
}
|
|
13
13
|
/** Command-specific exceptions to complete-row continuation fingerprinting. */
|
|
14
|
-
export declare const PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES:
|
|
14
|
+
export declare const PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES:Readonly<Partial<Record<PmReadOutputSurface,PmReadOutputContinuationFingerprintPolicy>>>;
|
|
15
15
|
/** Fingerprint the policy-normalized row snapshot so stable evidence changes fail closed. */
|
|
16
|
-
export declare function readOutputCollectionFingerprint(path:
|
|
16
|
+
export declare function readOutputCollectionFingerprint(path:string,value:unknown[] | Record<string,unknown>,command?:PmReadOutputSurface):string;
|
|
17
17
|
/** Encode one stable declared-row continuation for CLI, SDK, and MCP callers. */
|
|
18
|
-
export declare function encodeReadOutputContinuationCursor(cursor:
|
|
18
|
+
export declare function encodeReadOutputContinuationCursor(cursor:Omit<PmReadOutputCursorEnvelope,"version">):string;
|
|
19
19
|
/** Decode and validate one universal declared-row continuation cursor. */
|
|
20
|
-
export declare function decodeReadOutputContinuationCursor(raw:
|
|
20
|
+
export declare function decodeReadOutputContinuationCursor(raw:string):PmReadOutputCursorEnvelope;
|
|
21
21
|
/** Place every non-passing assurance assertion before passing evidence. */
|
|
22
|
-
export declare function prioritizeAssuranceAssertions(result:
|
|
22
|
+
export declare function prioritizeAssuranceAssertions(result:Record<string,unknown>):Record<string,unknown>;
|
|
23
23
|
/** Validate and apply a continuation suffix to its declared row collection. */
|
|
24
|
-
export declare function applyReadOutputContinuation(result:
|
|
24
|
+
export declare function applyReadOutputContinuation(result:Record<string,unknown>,command:PmReadOutputSurface,cursor:PmReadOutputCursorEnvelope | undefined):Record<string,unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RegisteredExtensionCommandDefinition } from "../../core/extensions/extension-types.js";
|
|
2
2
|
/** Find the winning command declaration by CLI path, SDK action or receipt identity. */
|
|
3
|
-
export declare function resolveExtensionOutputCommand(command:
|
|
3
|
+
export declare function resolveExtensionOutputCommand(command:string):RegisteredExtensionCommandDefinition | undefined;
|
|
4
4
|
/** Resolve read permission only from the winning command registration. */
|
|
5
|
-
export declare function resolveExtensionReadOutput(command:
|
|
5
|
+
export declare function resolveExtensionReadOutput(command:string):RegisteredExtensionCommandDefinition | undefined;
|
|
6
6
|
/** Validate declared rows before projection and attach the host-owned row contract. */
|
|
7
|
-
export declare function attachExtensionReadOutputRows(command:
|
|
7
|
+
export declare function attachExtensionReadOutputRows(command:string,result:unknown):unknown;
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Shares universal presentation controls without loading read execution code.
|
|
5
5
|
*/
|
|
6
6
|
/** Canonical field, amount, cost and encoding controls for every read surface. */
|
|
7
|
-
export declare const READ_OUTPUT_DIMENSION_FLAGS:
|
|
8
|
-
readonly include:
|
|
9
|
-
readonly amount:
|
|
10
|
-
readonly cost:
|
|
11
|
-
readonly encoding:
|
|
7
|
+
export declare const READ_OUTPUT_DIMENSION_FLAGS:{
|
|
8
|
+
readonly include:"--output-include";
|
|
9
|
+
readonly amount:"--output-limit";
|
|
10
|
+
readonly cost:"--output-budget";
|
|
11
|
+
readonly encoding:"--output-format";
|
|
12
12
|
};
|
|
13
13
|
/** Presentation-only controls composing universal output shaping across calls. */
|
|
14
|
-
export declare const READ_OUTPUT_COMPOSITION_FLAGS:
|
|
14
|
+
export declare const READ_OUTPUT_COMPOSITION_FLAGS:readonly ["--output-session","--output-cursor","--output-row-contract"];
|
|
15
15
|
/** Built-in command roots whose primary operation is a read. */
|
|
16
|
-
export declare const PM_READ_OUTPUT_SURFACES:
|
|
16
|
+
export declare const PM_READ_OUTPUT_SURFACES:readonly ["list","context","search","get","next","health","deps","graph","history","activity","validate","events","contracts","comments","notes","files","docs","stats","aggregate","duplicates","package-catalog","package-manage","comments-audit","assurance"];
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
* Retains private invocation-origin evidence through SDK option normalization.
|
|
5
5
|
*/
|
|
6
6
|
/** Private invocation origin shared by SDK option construction and read-output resolution. */
|
|
7
|
-
export declare const READ_OUTPUT_INVOCATION_PROVENANCE:
|
|
7
|
+
export declare const READ_OUTPUT_INVOCATION_PROVENANCE:unique symbol;
|
|
8
8
|
/** Internal evidence that distinguishes caller aliases from forwarded command options. */
|
|
9
9
|
export interface PmReadOutputInvocationProvenance {
|
|
10
10
|
/** Canonical include modes forwarded through command-local option keys. */
|
|
11
|
-
canonical_include_modes:
|
|
11
|
+
canonical_include_modes:string[];
|
|
12
12
|
/** Compatibility aliases observed before defaults or canonical forwarding. */
|
|
13
|
-
explicit_legacy_aliases:
|
|
13
|
+
explicit_legacy_aliases:string[];
|
|
14
14
|
/** Whether the CLI captured the complete set of caller-supplied aliases. */
|
|
15
|
-
cli_invocation_observed?:
|
|
15
|
+
cli_invocation_observed?:boolean;
|
|
16
16
|
/** Whether an SDK helper constructed every command-local option itself. */
|
|
17
|
-
sdk_invocation_observed?:
|
|
17
|
+
sdk_invocation_observed?:boolean;
|
|
18
18
|
}
|
|
19
19
|
/** Mark a complete SDK helper request so internal command options are not reported as caller aliases. */
|
|
20
|
-
export declare function markCanonicalSdkReadOutputOptions<Options extends object>(options:
|
|
20
|
+
export declare function markCanonicalSdkReadOutputOptions<Options extends object>(options:Options,canonicalIncludeModes:readonly string[]):Options;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { PmReadOutputReceipt } from "./read-output-contracts.js";
|
|
2
2
|
/** Project a standard item read to brief depth, preserving metadata and disclosing every removed section. */
|
|
3
|
-
export declare function projectReadOutputItemToBrief(command:
|
|
3
|
+
export declare function projectReadOutputItemToBrief(command:string,options:Record<string,unknown>,result:Record<string,unknown>):Record<string,unknown> | undefined;
|
|
4
4
|
/** Input to the deterministic finite-retry recommendation contract. */
|
|
5
5
|
export interface PmReadOutputRecoveryBudgetInput {
|
|
6
6
|
/** Ceiling that already bound and truncated the response. */
|
|
7
|
-
effective_budget_tokens:
|
|
7
|
+
effective_budget_tokens:number;
|
|
8
8
|
/** Measured cost of the useful result before row compaction. */
|
|
9
|
-
measured_result_tokens:
|
|
9
|
+
measured_result_tokens:number;
|
|
10
10
|
}
|
|
11
11
|
/** Executable next-budget recommendation shared by CLI, SDK, and MCP. */
|
|
12
12
|
export interface PmReadOutputRecoveryBudget {
|
|
13
13
|
/** Rounded finite retry ceiling, or the only truthful safe fallback. */
|
|
14
|
-
output_budget:
|
|
14
|
+
output_budget:number | "unbounded";
|
|
15
15
|
/** Ratio to the binding request, absent when finite arithmetic is unsafe. */
|
|
16
|
-
recovery_budget_multiplier:
|
|
16
|
+
recovery_budget_multiplier:number | null;
|
|
17
17
|
/** Stable algorithm revision for consumers and fixtures. */
|
|
18
|
-
rule_version:
|
|
18
|
+
rule_version:"v1";
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Recommend a retry that is strictly larger than both the binding request and
|
|
22
22
|
* the pre-compaction result, with a 25% envelope margin rounded to 100 tokens.
|
|
23
23
|
*/
|
|
24
|
-
export declare function resolveReadOutputRecoveryBudget(input:
|
|
24
|
+
export declare function resolveReadOutputRecoveryBudget(input:PmReadOutputRecoveryBudgetInput):PmReadOutputRecoveryBudget;
|
|
25
25
|
/** Preserve an internal row declaration across clones without charging it as emitted metadata. */
|
|
26
|
-
export declare function preserveReadOutputRowContract(source:
|
|
26
|
+
export declare function preserveReadOutputRowContract(source:Record<string,unknown>,target:Record<string,unknown>,suppress?:boolean):void;
|
|
27
27
|
/** Estimate UTF-8 token cost using the selected JSON/TOON renderer, or compact JSON for structured SDK calls without a renderer. */
|
|
28
|
-
export declare function estimateReadOutputTokens(result:
|
|
28
|
+
export declare function estimateReadOutputTokens(result:unknown,format?:"json" | "toon"):number;
|
|
29
29
|
/** Update a receipt to the fixed-point estimate of the result containing it. */
|
|
30
|
-
export declare function updateReadOutputReceiptEstimate(result:
|
|
30
|
+
export declare function updateReadOutputReceiptEstimate(result:Record<string,unknown>,receipt:PmReadOutputReceipt,format?:"json" | "toon"):void;
|
|
31
31
|
/** Compact strings and rows in place, then return the final exact estimate. */
|
|
32
|
-
export declare function compactReadOutputToBudget(result:
|
|
32
|
+
export declare function compactReadOutputToBudget(result:Record<string,unknown>,receipt:PmReadOutputReceipt,budget:number,minimumRowsByPath?:ReadonlyMap<string,number>,format?:"json" | "toon",finalize?:(result:Record<string,unknown>) => void,preserveStrings?:boolean):Record<string,unknown>;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { PM_READ_OUTPUT_SURFACES } from "./read-output/options.js";
|
|
8
8
|
export { resolveReadOutputRecoveryBudget } from "./read-output-budget.js";
|
|
9
|
-
export type { PmReadOutputRecoveryBudget,
|
|
10
|
-
export { decodeReadOutputContinuationCursor,
|
|
9
|
+
export type { PmReadOutputRecoveryBudget,PmReadOutputRecoveryBudgetInput,} from "./read-output-budget.js";
|
|
10
|
+
export { decodeReadOutputContinuationCursor,encodeReadOutputContinuationCursor,PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,readOutputCollectionFingerprint,} from "./read-output/continuation.js";
|
|
11
11
|
export type { PmReadOutputContinuationFingerprintPolicy } from "./read-output/continuation.js";
|
|
12
|
-
import { type PmReadOutputSessionReceipt,
|
|
12
|
+
import { type PmReadOutputSessionReceipt,type PmReadOutputSessionState } from "./read-output-session.js";
|
|
13
13
|
/** Stable output dimensions shared by every read surface. */
|
|
14
|
-
export declare const PM_READ_OUTPUT_DIMENSIONS:
|
|
14
|
+
export declare const PM_READ_OUTPUT_DIMENSIONS:readonly ["include","amount","cost","encoding"];
|
|
15
15
|
/** One member of the universal read-output dimension set. */
|
|
16
16
|
export type PmReadOutputDimension = (typeof PM_READ_OUTPUT_DIMENSIONS)[number];
|
|
17
17
|
export { PM_READ_OUTPUT_SURFACES } from "./read-output/options.js";
|
|
@@ -20,234 +20,234 @@ export type PmReadOutputSurface = (typeof PM_READ_OUTPUT_SURFACES)[number] | `ex
|
|
|
20
20
|
/** Canonical output controls accepted by every built-in read action. */
|
|
21
21
|
export interface PmReadOutputOptions {
|
|
22
22
|
/** Comma-separated fields or sections retained in the result. */
|
|
23
|
-
outputInclude?:
|
|
23
|
+
outputInclude?:string | string[];
|
|
24
24
|
/** Maximum rows retained, or `unbounded` to disable the shared row ceiling. */
|
|
25
|
-
outputLimit?:
|
|
25
|
+
outputLimit?:string | number | "unbounded";
|
|
26
26
|
/** Maximum estimated result tokens, or `unbounded` to disable the default ceiling. */
|
|
27
|
-
outputBudget?:
|
|
27
|
+
outputBudget?:string | number | "unbounded";
|
|
28
28
|
/** Requested static renderer encoding; streaming remains a command behavior. */
|
|
29
|
-
outputFormat?:
|
|
29
|
+
outputFormat?:"json" | "toon";
|
|
30
30
|
/** Caller-carried cross-call budget and served-fact state. */
|
|
31
|
-
outputSession?:
|
|
31
|
+
outputSession?:string | PmReadOutputSessionState;
|
|
32
32
|
/** Opaque continuation returned after a budget-compacted declared row path. */
|
|
33
|
-
outputCursor?:
|
|
33
|
+
outputCursor?:string;
|
|
34
34
|
/** Include row selector and encoding discovery metadata. */
|
|
35
|
-
outputRowContract?:
|
|
35
|
+
outputRowContract?:boolean;
|
|
36
36
|
}
|
|
37
37
|
/** Compatibility spelling retained for a command-specific output control. */
|
|
38
38
|
export interface PmReadOutputLegacyAlias {
|
|
39
39
|
/** Historical CLI spelling. */
|
|
40
|
-
flag:
|
|
40
|
+
flag:string;
|
|
41
41
|
/** Strength of the migration promise carried by this alias. */
|
|
42
|
-
semantics?:
|
|
42
|
+
semantics?:"replacement" | "behavior_preserving";
|
|
43
43
|
/** One-line migration instruction for agents and help generators. */
|
|
44
|
-
migration_hint:
|
|
44
|
+
migration_hint:string;
|
|
45
45
|
/** Compatibility aliases are accepted but omitted from the canonical vocabulary. */
|
|
46
|
-
visibility:
|
|
46
|
+
visibility:"hidden_alias";
|
|
47
47
|
}
|
|
48
48
|
/** Contract for one output dimension on one read surface. */
|
|
49
49
|
export interface PmReadOutputDimensionContract {
|
|
50
50
|
/** Stable dimension name. */
|
|
51
|
-
dimension:
|
|
51
|
+
dimension:PmReadOutputDimension;
|
|
52
52
|
/** Canonical cross-command CLI option. */
|
|
53
|
-
canonical_option:
|
|
53
|
+
canonical_option:string;
|
|
54
54
|
/** Whether the dimension has executable behavior on this surface. */
|
|
55
|
-
applicable:
|
|
55
|
+
applicable:boolean;
|
|
56
56
|
/** Explanation used only when the dimension cannot apply. */
|
|
57
|
-
inapplicable_reason:
|
|
57
|
+
inapplicable_reason:string | null;
|
|
58
58
|
/** Historical command-local options mapped into this dimension. */
|
|
59
|
-
legacy_aliases:
|
|
59
|
+
legacy_aliases:PmReadOutputLegacyAlias[];
|
|
60
60
|
}
|
|
61
61
|
/** Complete four-dimension contract for one read surface. */
|
|
62
62
|
export interface PmReadOutputSurfaceContract {
|
|
63
63
|
/** Canonical command root. */
|
|
64
|
-
command:
|
|
64
|
+
command:PmReadOutputSurface;
|
|
65
65
|
/** Identical dimension keys shared by every read surface. */
|
|
66
|
-
dimensions:
|
|
66
|
+
dimensions:Record<PmReadOutputDimension,PmReadOutputDimensionContract>;
|
|
67
67
|
/** Deterministic precedence from strongest caller declaration to fallback. */
|
|
68
|
-
precedence:
|
|
68
|
+
precedence:readonly ["canonical","legacy","intent","default"];
|
|
69
69
|
/** Stable policy used before budget compaction selects retained rows. */
|
|
70
|
-
budget_retention_policy:
|
|
70
|
+
budget_retention_policy:"ordered_prefix" | "verdict_priority";
|
|
71
71
|
/** Exact command-local whole-result modes accepted by `outputInclude`. */
|
|
72
|
-
projection_modes?:
|
|
72
|
+
projection_modes?:readonly string[];
|
|
73
73
|
}
|
|
74
74
|
/** Source that selected an effective output dimension. */
|
|
75
75
|
export type PmReadOutputDimensionSource = "canonical" | "legacy" | "intent" | "default";
|
|
76
76
|
/** Resolved value and provenance for one dimension. */
|
|
77
77
|
export interface PmResolvedReadOutputDimension<T> {
|
|
78
78
|
/** Effective value after precedence resolution. */
|
|
79
|
-
value:
|
|
79
|
+
value:T;
|
|
80
80
|
/** Layer that supplied the effective value. */
|
|
81
|
-
source:
|
|
81
|
+
source:PmReadOutputDimensionSource;
|
|
82
82
|
}
|
|
83
83
|
/** Fully resolved output controls for one invocation. */
|
|
84
84
|
export interface PmResolvedReadOutputDimensions {
|
|
85
85
|
/** Canonical read surface. */
|
|
86
|
-
command:
|
|
86
|
+
command:PmReadOutputSurface;
|
|
87
87
|
/** Requested field or section selectors. */
|
|
88
|
-
include?:
|
|
88
|
+
include?:PmResolvedReadOutputDimension<string[]>;
|
|
89
89
|
/** Requested row ceiling. */
|
|
90
|
-
amount?:
|
|
90
|
+
amount?:PmResolvedReadOutputDimension<number | "unbounded">;
|
|
91
91
|
/** Requested estimated-token ceiling or explicit opt-out. */
|
|
92
|
-
cost?:
|
|
92
|
+
cost?:PmResolvedReadOutputDimension<number | "unbounded">;
|
|
93
93
|
/** Requested static encoding or a retained legacy streaming behavior. */
|
|
94
|
-
encoding?:
|
|
94
|
+
encoding?:PmResolvedReadOutputDimension<"json" | "toon" | "stream">;
|
|
95
95
|
/** Canonical CLI options observed on the invocation. */
|
|
96
|
-
canonical_options_used?:
|
|
96
|
+
canonical_options_used?:string[];
|
|
97
97
|
/** Compatibility flags observed on the invocation. */
|
|
98
|
-
legacy_aliases_used:
|
|
98
|
+
legacy_aliases_used:string[];
|
|
99
99
|
/** One-line migration instructions for observed compatibility flags. */
|
|
100
|
-
migration_hints:
|
|
100
|
+
migration_hints:string[];
|
|
101
101
|
/** Deterministic precedence applied to every dimension. */
|
|
102
|
-
precedence:
|
|
102
|
+
precedence:readonly ["canonical","legacy","intent","default"];
|
|
103
103
|
}
|
|
104
104
|
/** Machine-readable proof of output dimensions applied to one read. */
|
|
105
105
|
export interface PmReadOutputReceipt {
|
|
106
106
|
/** Contract format version. */
|
|
107
|
-
contract_version:
|
|
107
|
+
contract_version:1;
|
|
108
108
|
/** Canonical read surface. */
|
|
109
|
-
command:
|
|
109
|
+
command:PmReadOutputSurface;
|
|
110
110
|
/** Dimensions explicitly or compatibly requested by the invocation. */
|
|
111
|
-
requested_dimensions:
|
|
111
|
+
requested_dimensions:PmReadOutputDimension[];
|
|
112
112
|
/** Layer supplying a default ceiling or the context compatibility ceiling. */
|
|
113
|
-
budget_source?:
|
|
113
|
+
budget_source?:"default" | "legacy";
|
|
114
114
|
/** Applied default or context compatibility ceiling; canonical/session budgets already disclose their value. */
|
|
115
|
-
budget_tokens?:
|
|
115
|
+
budget_tokens?:number;
|
|
116
116
|
/** Deterministic precedence used during resolution. */
|
|
117
|
-
precedence:
|
|
117
|
+
precedence:readonly ["canonical","legacy","intent","default"];
|
|
118
118
|
/** Canonical CLI options observed on the invocation. */
|
|
119
|
-
canonical_options_used?:
|
|
119
|
+
canonical_options_used?:string[];
|
|
120
120
|
/** Compatibility options observed on the invocation. */
|
|
121
|
-
legacy_aliases_used:
|
|
121
|
+
legacy_aliases_used:string[];
|
|
122
122
|
/** One-line migration instructions for compatibility options. */
|
|
123
|
-
migration_hints:
|
|
123
|
+
migration_hints:string[];
|
|
124
124
|
/** Deterministic UTF-8 byte token estimate of the result and receipt in the selected JSON or TOON rendering; SDK calls without a format use compact JSON. */
|
|
125
|
-
estimated_tokens:
|
|
125
|
+
estimated_tokens:number;
|
|
126
126
|
/** Whether the final result fits the requested cost ceiling. */
|
|
127
|
-
within_budget:
|
|
127
|
+
within_budget:boolean;
|
|
128
128
|
/** Whether long string values were shortened while satisfying the cost ceiling. */
|
|
129
|
-
strings_compacted:
|
|
129
|
+
strings_compacted:boolean;
|
|
130
130
|
/** Whether row collections were reduced while satisfying the cost ceiling. */
|
|
131
|
-
rows_compacted:
|
|
131
|
+
rows_compacted:boolean;
|
|
132
132
|
/** Declared or nested collection paths reduced by budget degradation. */
|
|
133
|
-
compacted_row_paths?:
|
|
133
|
+
compacted_row_paths?:string[];
|
|
134
134
|
/** Whether the requested cost ceiling forced the useful result to be omitted. */
|
|
135
|
-
result_omitted:
|
|
135
|
+
result_omitted:boolean;
|
|
136
136
|
/** Estimated tokens in the useful result immediately before whole-result omission. */
|
|
137
|
-
omitted_result_estimated_tokens?:
|
|
137
|
+
omitted_result_estimated_tokens?:number;
|
|
138
138
|
/** Detail depth selected before destructive string or row compaction. */
|
|
139
|
-
applied_depth?:
|
|
139
|
+
applied_depth?:"brief";
|
|
140
140
|
/** Binding constraint that selected the smaller detail projection. */
|
|
141
|
-
degradation_reason?:
|
|
141
|
+
degradation_reason?:"output_budget_reached";
|
|
142
142
|
}
|
|
143
143
|
/** Machine-readable explanation of budget-driven row degradation. */
|
|
144
144
|
export interface PmReadOutputTruncationDisclosure {
|
|
145
145
|
/** Stable reason for dropping rows. */
|
|
146
|
-
reason:
|
|
146
|
+
reason:"output_budget_reached";
|
|
147
147
|
/** Layer that supplied the binding ceiling. */
|
|
148
|
-
budget_source:
|
|
148
|
+
budget_source:PmReadOutputDimensionSource | "session";
|
|
149
149
|
/** Binding estimated-token ceiling. */
|
|
150
|
-
budget_tokens:
|
|
150
|
+
budget_tokens:number;
|
|
151
151
|
/** Explicit dimensions whose unbounded request was overridden by the ceiling. */
|
|
152
|
-
overridden_dimensions:
|
|
152
|
+
overridden_dimensions:PmReadOutputDimension[];
|
|
153
153
|
/** Declared or nested collection paths reduced by budget degradation. */
|
|
154
|
-
compacted_row_paths:
|
|
154
|
+
compacted_row_paths:string[];
|
|
155
155
|
/** Whether next_cursor was moved back to the last row that survived compaction. */
|
|
156
|
-
continuation_cursor_rebased:
|
|
156
|
+
continuation_cursor_rebased:boolean;
|
|
157
157
|
/** Whether at least one declared row collection can be resumed within the budget. */
|
|
158
|
-
continuation_available:
|
|
158
|
+
continuation_available:boolean;
|
|
159
159
|
/** Maximum next-page useful-result budget relative to the current budget. */
|
|
160
|
-
recovery_budget_multiplier:
|
|
160
|
+
recovery_budget_multiplier:number | null;
|
|
161
161
|
/** Bounded continuation instructions for every compacted declared row path. */
|
|
162
|
-
continuations:
|
|
162
|
+
continuations:PmReadOutputContinuation[];
|
|
163
163
|
/** Retry guidance, or `recovery` to require the adjacent cursor and transport bindings. */
|
|
164
|
-
restore_with:
|
|
164
|
+
restore_with:string;
|
|
165
165
|
/** Transport-specific machine recovery options. */
|
|
166
|
-
recovery:
|
|
166
|
+
recovery:{
|
|
167
167
|
/** Opaque value supplied through each declared transport binding. */
|
|
168
|
-
cursor:
|
|
168
|
+
cursor:string;
|
|
169
169
|
/** CLI option accepting cursor. */
|
|
170
|
-
cli:
|
|
170
|
+
cli:"--output-cursor";
|
|
171
171
|
/** SDK option field accepting cursor. */
|
|
172
|
-
sdk:
|
|
172
|
+
sdk:"outputCursor";
|
|
173
173
|
/** MCP input field accepting cursor. */
|
|
174
|
-
mcp:
|
|
174
|
+
mcp:"outputCursor";
|
|
175
175
|
} | {
|
|
176
|
-
cli:
|
|
177
|
-
sdk:
|
|
178
|
-
outputBudget:
|
|
176
|
+
cli:string;
|
|
177
|
+
sdk:{
|
|
178
|
+
outputBudget:number | "unbounded";
|
|
179
179
|
};
|
|
180
|
-
mcp:
|
|
181
|
-
outputBudget:
|
|
180
|
+
mcp:{
|
|
181
|
+
outputBudget:number | "unbounded";
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
/** One resumable declared-row collection withheld by budget compaction. */
|
|
186
186
|
export interface PmReadOutputContinuation {
|
|
187
187
|
/** Dot-delimited declared row path being resumed. */
|
|
188
|
-
path:
|
|
188
|
+
path:string;
|
|
189
189
|
/** Opaque cursor accepted by CLI, SDK, and MCP outputCursor inputs. */
|
|
190
|
-
cursor:
|
|
190
|
+
cursor:string;
|
|
191
191
|
/** Rows retained from this path in the current response. */
|
|
192
|
-
retained_rows:
|
|
192
|
+
retained_rows:number;
|
|
193
193
|
/** Rows remaining after the current response. */
|
|
194
|
-
remaining_rows:
|
|
194
|
+
remaining_rows:number;
|
|
195
195
|
/** Total rows in the stable collection snapshot. */
|
|
196
|
-
total_rows:
|
|
196
|
+
total_rows:number;
|
|
197
197
|
}
|
|
198
198
|
/** Versioned, command-bound cursor payload for one stable declared row collection. */
|
|
199
199
|
export interface PmReadOutputCursorEnvelope {
|
|
200
200
|
/** Serialized cursor format version. */
|
|
201
|
-
version:
|
|
201
|
+
version:1;
|
|
202
202
|
/** Canonical read surface that produced the cursor. */
|
|
203
|
-
command:
|
|
203
|
+
command:PmReadOutputSurface;
|
|
204
204
|
/** Dot-delimited declared row path being continued. */
|
|
205
|
-
path:
|
|
205
|
+
path:string;
|
|
206
206
|
/** Zero-based index of the first withheld row. */
|
|
207
|
-
offset:
|
|
207
|
+
offset:number;
|
|
208
208
|
/** Stable pre-projection denominator for the row collection. */
|
|
209
|
-
total_rows:
|
|
209
|
+
total_rows:number;
|
|
210
210
|
/** Stable identity fingerprint used to refuse stale continuation. */
|
|
211
|
-
fingerprint:
|
|
211
|
+
fingerprint:string;
|
|
212
212
|
}
|
|
213
213
|
/** Result returned when the requested cost ceiling cannot fit useful content. */
|
|
214
214
|
export interface PmReadOutputBudgetExceeded {
|
|
215
215
|
/** Stable omission marker and recovery instruction. */
|
|
216
|
-
output_budget_exceeded:
|
|
216
|
+
output_budget_exceeded:{
|
|
217
217
|
/** Confirms that the useful result was deliberately omitted. */
|
|
218
|
-
omitted_result:
|
|
218
|
+
omitted_result:true;
|
|
219
219
|
/** Stable reason for machine-readable recovery. */
|
|
220
|
-
reason:
|
|
220
|
+
reason:"requested_budget_infeasible";
|
|
221
221
|
/** Human- and agent-readable recovery instruction. */
|
|
222
|
-
restore_with:
|
|
222
|
+
restore_with:string;
|
|
223
223
|
/** Transport-specific machine recovery options. */
|
|
224
|
-
recovery:
|
|
225
|
-
outputBudget:
|
|
224
|
+
recovery:{
|
|
225
|
+
outputBudget:"unbounded";
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
228
|
/** Exact receipt for the bounded omission envelope. */
|
|
229
|
-
read_output:
|
|
229
|
+
read_output:PmReadOutputReceipt;
|
|
230
230
|
}
|
|
231
231
|
/** Read result with an optional shaping receipt or a discriminated omission. */
|
|
232
232
|
export type PmReadOutputResult<Result> = (Result & {
|
|
233
|
-
read_output?:
|
|
234
|
-
read_session?:
|
|
235
|
-
output_budget_truncation?:
|
|
233
|
+
read_output?:PmReadOutputReceipt;
|
|
234
|
+
read_session?:PmReadOutputSessionReceipt;
|
|
235
|
+
output_budget_truncation?:PmReadOutputTruncationDisclosure;
|
|
236
236
|
}) | (PmReadOutputBudgetExceeded & {
|
|
237
|
-
read_session?:
|
|
237
|
+
read_session?:PmReadOutputSessionReceipt;
|
|
238
238
|
});
|
|
239
239
|
/** Select the omission-aware result type when an option shape can request a budget. */
|
|
240
|
-
export type PmReadOutputResultFor<Result,
|
|
240
|
+
export type PmReadOutputResultFor<Result,Options> = "outputBudget" extends keyof Options ? PmReadOutputResult<Result> :"outputSession" extends keyof Options ? PmReadOutputResult<Result> :"outputCursor" extends keyof Options ? PmReadOutputResult<Result> :Result;
|
|
241
241
|
/** Canonical CLI flags that opt a read invocation into universal output shaping. */
|
|
242
|
-
export declare const PM_READ_OUTPUT_OPTION_FLAGS:
|
|
242
|
+
export declare const PM_READ_OUTPUT_OPTION_FLAGS:readonly string[];
|
|
243
243
|
/** Canonical control that composes the four per-call dimensions across reads. */
|
|
244
|
-
export declare const PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS:
|
|
244
|
+
export declare const PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS:readonly ["--output-session","--output-cursor","--output-row-contract"];
|
|
245
245
|
/** Universal output contract for every built-in read surface. */
|
|
246
|
-
export declare const PM_READ_OUTPUT_SURFACE_CONTRACTS:
|
|
246
|
+
export declare const PM_READ_OUTPUT_SURFACE_CONTRACTS:readonly PmReadOutputSurfaceContract[];
|
|
247
247
|
/** Resolve a command or list/context alias to its canonical read-output surface. */
|
|
248
|
-
export declare function resolveReadOutputSurface(command:
|
|
248
|
+
export declare function resolveReadOutputSurface(command:string,options?:Record<string,unknown>):PmReadOutputSurface | undefined;
|
|
249
249
|
/** Reject malformed or mutation-scoped universal output controls before command execution. */
|
|
250
|
-
export declare function validateReadOutputOptions(command:
|
|
250
|
+
export declare function validateReadOutputOptions(command:string,options:Record<string,unknown>):void;
|
|
251
251
|
/**
|
|
252
252
|
* Map every canonical `--output-include` token that names a projection mode
|
|
253
253
|
* rather than a row field onto the command-local option that mode already owns.
|
|
@@ -258,16 +258,16 @@ export declare function validateReadOutputOptions(command: string, options: Reco
|
|
|
258
258
|
* whole declared projection. Only the first kind can be honoured by projecting
|
|
259
259
|
* an already-computed result, so mode tokens have to reach the command itself.
|
|
260
260
|
*/
|
|
261
|
-
export declare function readOutputIncludeModeOptions(command:
|
|
261
|
+
export declare function readOutputIncludeModeOptions(command:string):ReadonlyMap<string,string>;
|
|
262
262
|
/**
|
|
263
263
|
* Translate canonical projection-mode tokens into the command-local options
|
|
264
264
|
* they alias, so the spelling the migration hints recommend is behaviour
|
|
265
265
|
* identical to the legacy flag it replaces, and return the field selectors that
|
|
266
266
|
* remain for post-execution projection.
|
|
267
267
|
*/
|
|
268
|
-
export declare function applyReadOutputIncludeModes(command:
|
|
269
|
-
selectors:
|
|
270
|
-
modes:
|
|
268
|
+
export declare function applyReadOutputIncludeModes(command:string,includeValue:unknown,commandOptions:Record<string,unknown>):{
|
|
269
|
+
selectors:string[];
|
|
270
|
+
modes:string[];
|
|
271
271
|
};
|
|
272
272
|
/**
|
|
273
273
|
* Resolve canonical include modes against one combined options bag, rewriting
|
|
@@ -277,14 +277,14 @@ modes: string[];
|
|
|
277
277
|
* controls in a single record, so an action honours a mode token exactly as the
|
|
278
278
|
* CLI does.
|
|
279
279
|
*/
|
|
280
|
-
export declare function normalizeReadOutputIncludeModeOptions(command:
|
|
280
|
+
export declare function normalizeReadOutputIncludeModeOptions(command:string,options:Record<string,unknown>):void;
|
|
281
281
|
/** Resolve canonical and compatibility controls into the universal dimension set. */
|
|
282
|
-
export declare function resolveReadOutputDimensions(command:
|
|
282
|
+
export declare function resolveReadOutputDimensions(command:string,options:Record<string,unknown>):PmResolvedReadOutputDimensions | undefined;
|
|
283
283
|
/** Recompute read and optional session receipts after a final envelope projection. */
|
|
284
|
-
export declare function stabilizeReadOutputReceiptEstimates(result:
|
|
284
|
+
export declare function stabilizeReadOutputReceiptEstimates(result:Record<string,unknown>,options:Record<string,unknown>):Record<string,unknown>;
|
|
285
285
|
/** Apply universal field, row, and token bounds and attach an exact receipt. */
|
|
286
|
-
export declare function applyReadOutputDimensions<Result extends Record<string,
|
|
286
|
+
export declare function applyReadOutputDimensions<Result extends Record<string,unknown>>(command:string,options:Record<string,unknown>,result:Result):PmReadOutputResult<Result>;
|
|
287
287
|
/** Narrow a universal read result to its budget-omission branch. */
|
|
288
|
-
export declare function isReadOutputBudgetExceeded(result:
|
|
288
|
+
export declare function isReadOutputBudgetExceeded(result:unknown):result is PmReadOutputBudgetExceeded;
|
|
289
289
|
/** Resolve only the canonical renderer override for shared CLI output code. */
|
|
290
|
-
export declare function resolveReadOutputEncoding(command:
|
|
290
|
+
export declare function resolveReadOutputEncoding(command:string,options:Record<string,unknown>):"json" | "toon" | undefined;
|