@unbrained/pm-cli 2026.10.14 → 2026.10.17
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/.agents/skills/pm-developer/references/COMMAND_PLAYBOOK.md +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/AGENTS.md +1 -0
- package/CHANGELOG.md +74 -2
- 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 +18 -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 +3 -3
- 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/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-mutation.js +2 -2
- package/dist/cli/register-operations.d.ts +75 -75
- package/dist/cli/register-operations.js +1 -1
- package/dist/cli/register-setup.d.ts +4 -4
- package/dist/cli/register-structured-mutation.d.ts +8 -13
- package/dist/cli/register-structured-mutation.js +1 -1
- package/dist/cli/runtime/activation.d.ts +23 -23
- package/dist/cli/runtime/invocation-options.d.ts +12 -12
- package/dist/cli/runtime/invocation-options.js +1 -1
- 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-LKESCZEN.js → chunk-3QKI3XNX.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-4PNPDT2N.js +236 -0
- package/dist/cli-bundle/chunks/{chunk-JTF6VMXH.js → chunk-6ZDKKOKM.js} +28 -28
- package/dist/cli-bundle/chunks/{chunk-MAT4AP7P.js → chunk-B5QVGCZX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5LU6PWA4.js → chunk-EA2CG7UM.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-HY7FQ7QX.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-3S5SEMEB.js → chunk-J4LPQCET.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-JS3B2M4D.js +6 -0
- package/dist/cli-bundle/chunks/chunk-O4YBC3OM.js +30 -0
- package/dist/cli-bundle/chunks/{chunk-LE4IEHDG.js → chunk-OZCSXX4D.js} +63 -64
- package/dist/cli-bundle/chunks/chunk-VMCSTFSO.js +2 -0
- package/dist/cli-bundle/chunks/chunk-W3KZ22DW.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-2UKKO45F.js → chunk-X2ONXFBP.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-X53HM753.js +20 -0
- package/dist/cli-bundle/chunks/{register-list-query-GBLTOQQL.js → register-list-query-RU3QZSAQ.js} +7 -7
- package/dist/cli-bundle/chunks/register-mutation-EQYMT32A.js +20 -0
- package/dist/cli-bundle/chunks/{register-operations-J3WXP3MA.js → register-operations-VXBGE4XI.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-HLSKKU4V.js → register-setup-UUDEGFRO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-ELQNEJDA.js → chunk-2IOHHNRT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-5JEFDEL3.js +166 -0
- package/dist/cli-bundle/focused-chunks/{chunk-4UA7KY4V.js → chunk-AH6NX6GM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-ESOW6PH4.js → chunk-E33QA7PK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-BUAGNTLG.js → chunk-FTUZ3JF2.js} +6 -6
- package/dist/cli-bundle/focused-chunks/{chunk-HNRI2KBT.js → chunk-JXR6UKFM.js} +3 -3
- package/dist/cli-bundle/focused-chunks/chunk-LDKX4KYJ.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-IGBSAHCA.js → chunk-MBQF6HT6.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-NZO7GOXD.js +20 -0
- package/dist/cli-bundle/focused-chunks/{chunk-QIU4Y3AB.js → chunk-PYC7BF6Z.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-YJNKISEI.js → chunk-QOSVJDOO.js} +61 -62
- package/dist/cli-bundle/focused-chunks/{chunk-RHQCQTZA.js → chunk-RBLSY6ML.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KSMQEB3V.js → chunk-RHTH5ILM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-Y5A4XOSK.js → chunk-SIGIGZCG.js} +3 -3
- package/dist/cli-bundle/focused-chunks/chunk-TRFVAWF2.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-AULVKHYX.js → chunk-UNTQE37U.js} +2 -2
- package/dist/cli-bundle/main.js +22 -22
- 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 +54 -54
- 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 +717 -702
- package/dist/core/extensions/extension-types.js +1 -1
- package/dist/core/extensions/flag-definition-validation.d.ts +11 -11
- package/dist/core/extensions/flag-value-types.d.ts +32 -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-contracts.js +1 -1
- 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-format.js +3 -3
- 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 -25
- package/dist/core/output/mutation-projection.js +1 -1
- 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 +15 -15
- package/dist/core/schema/type-workflows.js +1 -1
- 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 +27 -27
- package/dist/core/sentry/instrument.d.ts +51 -51
- 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 +5 -3
- package/dist/core/shared/text-normalization.js +1 -1
- 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-mutation-precondition.d.ts +11 -0
- package/dist/core/store/item-mutation-precondition.js +2 -0
- 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/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/server.js +1 -1
- package/dist/mcp/tool-definitions.d.ts +27 -27
- package/dist/mcp/tool-definitions.js +1 -1
- package/dist/sdk/actionability.d.ts +1 -1
- package/dist/sdk/agent/closed-domain-contracts.d.ts +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/agent-output-contracts.js +1 -1
- 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/flag-lexicon-contracts.js +1 -1
- package/dist/sdk/cli-contracts/grammar-contracts.d.ts +61 -61
- package/dist/sdk/cli-contracts/registration-helpers.d.ts +57 -57
- package/dist/sdk/cli-contracts/registration-helpers.js +1 -1
- 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/tool-schema.js +1 -1
- 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-contracts.js +1 -1
- 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 +9 -8
- package/dist/sdk/core.js +1 -1
- 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-1.js +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/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-topics.js +1 -1
- 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 +70 -69
- package/dist/sdk/index.js +1 -1
- 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 +139 -76
- package/dist/sdk/item-transaction.js +1 -1
- package/dist/sdk/learnings.d.ts +23 -23
- package/dist/sdk/lifecycle/append.d.ts +8 -8
- package/dist/sdk/lifecycle/claim.d.ts +53 -39
- package/dist/sdk/lifecycle/claim.js +1 -1
- package/dist/sdk/lifecycle/close-many.d.ts +71 -71
- package/dist/sdk/lifecycle/close.d.ts +18 -24
- package/dist/sdk/lifecycle/close.js +1 -1
- package/dist/sdk/lifecycle/copy.d.ts +10 -10
- package/dist/sdk/lifecycle/core-field-recovery.d.ts +1 -1
- package/dist/sdk/lifecycle/core-item-fields.d.ts +6 -0
- package/dist/sdk/lifecycle/core-item-fields.js +2 -0
- 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/mcp-actions.js +1 -1
- 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/mutation-option-validation.d.ts +2 -0
- package/dist/sdk/lifecycle/mutation-option-validation.js +2 -0
- 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/release-handoff.d.ts +12 -0
- package/dist/sdk/lifecycle/release-handoff.js +2 -0
- 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/structured-mutation-plan.d.ts +33 -0
- package/dist/sdk/lifecycle/structured-mutation-plan.js +2 -0
- package/dist/sdk/lifecycle/task-composition.d.ts +9 -9
- package/dist/sdk/lifecycle/task-composition.js +1 -1
- package/dist/sdk/lifecycle/update-many.d.ts +61 -61
- package/dist/sdk/lifecycle/update.d.ts +113 -121
- package/dist/sdk/lifecycle/update.js +1 -1
- package/dist/sdk/lifecycle/workflow-transition.d.ts +13 -0
- package/dist/sdk/lifecycle/workflow-transition.js +2 -0
- package/dist/sdk/lifecycle-completion.d.ts +14 -14
- package/dist/sdk/lifecycle-policy.d.ts +42 -32
- package/dist/sdk/lifecycle-policy.js +1 -1
- 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/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-budget.js +1 -1
- 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-input.js +1 -1
- package/dist/sdk/runtime-primitives.d.ts +53 -53
- 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/runtime.js +1 -1
- 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 +64 -13
- package/dist/sdk/structured-mutations.js +1 -1
- 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 +248 -248
- 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-transaction.js +2 -2
- package/dist/sdk/workspace.d.ts +9 -9
- package/dist/types.d.ts +540 -540
- package/docs/AGENT_GUIDE.md +33 -4
- package/docs/CLOSE_EVIDENCE_RECOVERY.md +16 -7
- package/docs/COMMANDS.md +96 -12
- package/docs/ECOSYSTEM_PLANNING_REVIEW.md +5 -1
- package/docs/EXTENSIONS.md +1 -1
- package/docs/EXTENSION_AUTHOR_CONTRACTS.md +18 -4
- package/docs/LINKED_TEST_EDITS.md +15 -0
- package/docs/RELEASING.md +2 -0
- package/docs/SDK.md +114 -2
- package/docs/TESTING.md +36 -1
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +1 -1
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +17 -3
- package/marketplace.json +1 -1
- package/package.json +4 -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-66BZVFIK.js +0 -6
- package/dist/cli-bundle/chunks/chunk-IDEHMKYZ.js +0 -235
- package/dist/cli-bundle/chunks/chunk-LOSRTNNP.js +0 -2
- package/dist/cli-bundle/chunks/chunk-PP3BVMFL.js +0 -30
- package/dist/cli-bundle/chunks/chunk-UNQZGMJL.js +0 -20
- package/dist/cli-bundle/chunks/chunk-YXRAYL7H.js +0 -2
- package/dist/cli-bundle/chunks/register-mutation-TNRHNK4N.js +0 -20
- package/dist/cli-bundle/focused-chunks/chunk-23ACMPGB.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-JDVZF75H.js +0 -165
- package/dist/cli-bundle/focused-chunks/chunk-LKWDWER4.js +0 -20
- package/dist/cli-bundle/focused-chunks/chunk-WIXZF5SS.js +0 -26
- package/docs/ecosystem-review-2026-09-28.json +0 -1
|
@@ -3,449 +3,449 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Implements the pm context command surface and its agent-facing runtime behavior.
|
|
5
5
|
*/
|
|
6
|
-
import { type GlobalOptions,
|
|
7
|
-
import type { ContextDepth,
|
|
6
|
+
import { type GlobalOptions,type RuntimeStatusRegistry } from "../runtime-primitives.js";
|
|
7
|
+
import type { ContextDepth,ContextSectionName,ContextSettings,ItemMetadata,ItemStatus,PmSettings } from "../../types/index.js";
|
|
8
8
|
import { type CalendarRow } from "./calendar.js";
|
|
9
9
|
import { type CompactActivityEntry } from "./activity.js";
|
|
10
|
-
import { type ContextRelevanceContributions,
|
|
10
|
+
import { type ContextRelevanceContributions,type ContextRecencyEvidence,type ContextRelevanceReport,type ContextRelevanceSignalName } from "../context-relevance.js";
|
|
11
11
|
export { buildItemContextRelevanceCandidates } from "../context-relevance.js";
|
|
12
12
|
import { type ContextPackingReport } from "../context-packing.js";
|
|
13
13
|
import { type ContextSignalStoreReadResult } from "../context-signal-store.js";
|
|
14
14
|
import { type WorkspaceMemoryRollup } from "../workspace-memory.js";
|
|
15
15
|
/** Supported values accepted by the context output contract. */
|
|
16
|
-
export declare const CONTEXT_OUTPUT_VALUES:
|
|
16
|
+
export declare const CONTEXT_OUTPUT_VALUES:readonly ["markdown","toon","json","ndjson"];
|
|
17
17
|
/** Restricts context output format values accepted by command, SDK, and storage contracts. */
|
|
18
18
|
export type ContextOutputFormat = (typeof CONTEXT_OUTPUT_VALUES)[number];
|
|
19
19
|
/** Documents the context options payload exchanged by command, SDK, and package integrations. */
|
|
20
20
|
export interface ContextOptions {
|
|
21
21
|
/** Value that configures or reports date for this contract. */
|
|
22
|
-
date?:
|
|
22
|
+
date?:string;
|
|
23
23
|
/** Value that configures or reports from for this contract. */
|
|
24
|
-
from?:
|
|
24
|
+
from?:string;
|
|
25
25
|
/** Value that configures or reports to for this contract. */
|
|
26
|
-
to?:
|
|
26
|
+
to?:string;
|
|
27
27
|
/** Value that configures or reports past for this contract. */
|
|
28
|
-
past?:
|
|
28
|
+
past?:boolean;
|
|
29
29
|
/** Schema type that determines the shape and validation rules for this value. */
|
|
30
|
-
type?:
|
|
30
|
+
type?:string;
|
|
31
31
|
/** Value that configures or reports tag for this contract. */
|
|
32
|
-
tag?:
|
|
32
|
+
tag?:string;
|
|
33
33
|
/** Value that configures or reports priority for this contract. */
|
|
34
|
-
priority?:
|
|
34
|
+
priority?:string;
|
|
35
35
|
/** Value that configures or reports assignee for this contract. */
|
|
36
|
-
assignee?:
|
|
36
|
+
assignee?:string;
|
|
37
37
|
/** Value that configures or reports assignee filter for this contract. */
|
|
38
|
-
assigneeFilter?:
|
|
38
|
+
assigneeFilter?:string;
|
|
39
39
|
/** Value that configures or reports sprint for this contract. */
|
|
40
|
-
sprint?:
|
|
40
|
+
sprint?:string;
|
|
41
41
|
/** Value that configures or reports release for this contract. */
|
|
42
|
-
release?:
|
|
42
|
+
release?:string;
|
|
43
43
|
/** Value that configures or reports limit for this contract. */
|
|
44
|
-
limit?:
|
|
44
|
+
limit?:string;
|
|
45
45
|
/** Value that configures or reports max items for this contract. */
|
|
46
|
-
maxItems?:
|
|
46
|
+
maxItems?:string;
|
|
47
47
|
/** Opaque cursor returned by a previous context focus page. */
|
|
48
|
-
after?:
|
|
48
|
+
after?:string;
|
|
49
49
|
/** Value that configures or reports format for this contract. */
|
|
50
|
-
format?:
|
|
50
|
+
format?:string;
|
|
51
51
|
/** Value that configures or reports depth for this contract. */
|
|
52
|
-
depth?:
|
|
52
|
+
depth?:string;
|
|
53
53
|
/** Value that configures or reports fields for this contract. */
|
|
54
|
-
fields?:
|
|
54
|
+
fields?:string;
|
|
55
55
|
/** Value that configures or reports section for this contract. */
|
|
56
|
-
section?:
|
|
56
|
+
section?:string[];
|
|
57
57
|
/** Value that configures or reports activity limit for this contract. */
|
|
58
|
-
activityLimit?:
|
|
58
|
+
activityLimit?:string;
|
|
59
59
|
/** Value that configures or reports stale threshold for this contract. */
|
|
60
|
-
staleThreshold?:
|
|
60
|
+
staleThreshold?:string;
|
|
61
61
|
/** Value that configures or reports parent for this contract. */
|
|
62
|
-
parent?:
|
|
62
|
+
parent?:string;
|
|
63
63
|
/** Value that configures or reports explain ranking for this contract. */
|
|
64
|
-
explainRanking?:
|
|
64
|
+
explainRanking?:boolean;
|
|
65
65
|
/** Maximum estimated tokens spent on ranked focus rows. */
|
|
66
|
-
tokenBudget?:
|
|
66
|
+
tokenBudget?:string | number;
|
|
67
67
|
/** Omit tag arrays from every context focus-row collection. */
|
|
68
|
-
noTags?:
|
|
68
|
+
noTags?:boolean;
|
|
69
69
|
/** Omit the static installed extension health summary. */
|
|
70
|
-
noExtensionHealth?:
|
|
71
|
-
[key:
|
|
70
|
+
noExtensionHealth?:boolean;
|
|
71
|
+
[key:string]:unknown;
|
|
72
72
|
}
|
|
73
73
|
/** Documents the context focus item payload exchanged by command, SDK, and package integrations. */
|
|
74
74
|
export interface ContextFocusItem {
|
|
75
75
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
76
|
-
id:
|
|
76
|
+
id:string;
|
|
77
77
|
/** Value that configures or reports title for this contract. */
|
|
78
|
-
title:
|
|
78
|
+
title:string;
|
|
79
79
|
/** Schema type that determines the shape and validation rules for this value. */
|
|
80
|
-
type:
|
|
80
|
+
type:string;
|
|
81
81
|
/** Lifecycle state reported for status. */
|
|
82
|
-
status:
|
|
82
|
+
status:ItemStatus;
|
|
83
83
|
/** Value that configures or reports priority for this contract. */
|
|
84
|
-
priority:
|
|
84
|
+
priority:number;
|
|
85
85
|
/** Value that configures or reports order for this contract. */
|
|
86
|
-
order:
|
|
86
|
+
order:number | null;
|
|
87
87
|
/** Value that configures or reports deadline for this contract. */
|
|
88
|
-
deadline:
|
|
88
|
+
deadline:string | null;
|
|
89
89
|
/** Value that configures or reports assignee for this contract. */
|
|
90
|
-
assignee:
|
|
90
|
+
assignee:string | null;
|
|
91
91
|
/** Value that configures or reports tags for this contract. */
|
|
92
|
-
tags?:
|
|
92
|
+
tags?:string[];
|
|
93
93
|
/** Parent item whose identical tag set was folded out of this row. */
|
|
94
|
-
tags_inherited?:
|
|
94
|
+
tags_inherited?:string;
|
|
95
95
|
/** ISO 8601 timestamp recording when updated occurred. */
|
|
96
|
-
updated_at:
|
|
96
|
+
updated_at:string;
|
|
97
97
|
/** Value that configures or reports parent for this contract. */
|
|
98
|
-
parent:
|
|
98
|
+
parent:string | null;
|
|
99
99
|
/** Value that configures or reports children total for this contract. */
|
|
100
|
-
children_total?:
|
|
100
|
+
children_total?:number;
|
|
101
101
|
/** Value that configures or reports children closed for this contract. */
|
|
102
|
-
children_closed?:
|
|
102
|
+
children_closed?:number;
|
|
103
103
|
/** Value that configures or reports completion pct for this contract. */
|
|
104
|
-
completion_pct?:
|
|
104
|
+
completion_pct?:number;
|
|
105
105
|
/** True when lifecycle state or an unresolved dependency prevents action. */
|
|
106
|
-
blocked?:
|
|
106
|
+
blocked?:true;
|
|
107
107
|
/** Canonical unresolved blocker IDs; an empty array denotes lifecycle-only blocking. */
|
|
108
|
-
blocker_ids?:
|
|
108
|
+
blocker_ids?:string[];
|
|
109
109
|
}
|
|
110
110
|
/** Compact agenda reference used when the corresponding item is already present in a focus section. */
|
|
111
|
-
export type ContextAgendaEvent = CalendarRow | (Pick<CalendarRow,
|
|
112
|
-
reference_only:
|
|
113
|
-
reminder_text?:
|
|
114
|
-
event_title?:
|
|
115
|
-
event_recurring?:
|
|
111
|
+
export type ContextAgendaEvent = CalendarRow | (Pick<CalendarRow,"at" | "date" | "kind" | "item_id"> & {
|
|
112
|
+
reference_only:true;
|
|
113
|
+
reminder_text?:string | null;
|
|
114
|
+
event_title?:string | null;
|
|
115
|
+
event_recurring?:boolean | null;
|
|
116
116
|
});
|
|
117
117
|
/** Documents the hierarchy child payload exchanged by command, SDK, and package integrations. */
|
|
118
118
|
export interface HierarchyChild {
|
|
119
119
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
120
|
-
id:
|
|
120
|
+
id:string;
|
|
121
121
|
/** Value that configures or reports title for this contract. */
|
|
122
|
-
title:
|
|
122
|
+
title:string;
|
|
123
123
|
/** Schema type that determines the shape and validation rules for this value. */
|
|
124
|
-
type:
|
|
124
|
+
type:string;
|
|
125
125
|
/** Lifecycle state reported for status. */
|
|
126
|
-
status:
|
|
126
|
+
status:ItemStatus;
|
|
127
127
|
/** Value that configures or reports children total for this contract. */
|
|
128
|
-
children_total:
|
|
128
|
+
children_total:number;
|
|
129
129
|
/** Value that configures or reports children closed for this contract. */
|
|
130
|
-
children_closed:
|
|
130
|
+
children_closed:number;
|
|
131
131
|
}
|
|
132
132
|
/** Documents the hierarchy node payload exchanged by command, SDK, and package integrations. */
|
|
133
133
|
export interface HierarchyNode {
|
|
134
134
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
135
|
-
id:
|
|
135
|
+
id:string;
|
|
136
136
|
/** Value that configures or reports title for this contract. */
|
|
137
|
-
title:
|
|
137
|
+
title:string;
|
|
138
138
|
/** Schema type that determines the shape and validation rules for this value. */
|
|
139
|
-
type:
|
|
139
|
+
type:string;
|
|
140
140
|
/** Lifecycle state reported for status. */
|
|
141
|
-
status:
|
|
141
|
+
status:ItemStatus;
|
|
142
142
|
/** Value that configures or reports children total for this contract. */
|
|
143
|
-
children_total:
|
|
143
|
+
children_total:number;
|
|
144
144
|
/** Value that configures or reports children closed for this contract. */
|
|
145
|
-
children_closed:
|
|
145
|
+
children_closed:number;
|
|
146
146
|
/** Value that configures or reports children open for this contract. */
|
|
147
|
-
children_open:
|
|
147
|
+
children_open:number;
|
|
148
148
|
/** Value that configures or reports children in progress for this contract. */
|
|
149
|
-
children_in_progress:
|
|
149
|
+
children_in_progress:number;
|
|
150
150
|
/** Value that configures or reports children blocked for this contract. */
|
|
151
|
-
children_blocked:
|
|
151
|
+
children_blocked:number;
|
|
152
152
|
/** Value that configures or reports children for this contract. */
|
|
153
|
-
children:
|
|
153
|
+
children:HierarchyChild[];
|
|
154
154
|
}
|
|
155
155
|
/** Documents the progress entry payload exchanged by command, SDK, and package integrations. */
|
|
156
156
|
export interface ProgressEntry {
|
|
157
157
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
158
|
-
id:
|
|
158
|
+
id:string;
|
|
159
159
|
/** Value that configures or reports title for this contract. */
|
|
160
|
-
title:
|
|
160
|
+
title:string;
|
|
161
161
|
/** Schema type that determines the shape and validation rules for this value. */
|
|
162
|
-
type:
|
|
162
|
+
type:string;
|
|
163
163
|
/** Value that configures or reports total for this contract. */
|
|
164
|
-
total:
|
|
164
|
+
total:number;
|
|
165
165
|
/** Value that configures or reports closed for this contract. */
|
|
166
|
-
closed:
|
|
166
|
+
closed:number;
|
|
167
167
|
/** Value that configures or reports open for this contract. */
|
|
168
|
-
open:
|
|
168
|
+
open:number;
|
|
169
169
|
/** Value that configures or reports in progress for this contract. */
|
|
170
|
-
in_progress:
|
|
170
|
+
in_progress:number;
|
|
171
171
|
/** Value that configures or reports blocked for this contract. */
|
|
172
|
-
blocked:
|
|
172
|
+
blocked:number;
|
|
173
173
|
/** Value that configures or reports completion pct for this contract. */
|
|
174
|
-
completion_pct:
|
|
174
|
+
completion_pct:number;
|
|
175
175
|
}
|
|
176
176
|
/** Documents the blocker entry payload exchanged by command, SDK, and package integrations. */
|
|
177
177
|
export interface BlockerEntry {
|
|
178
178
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
179
|
-
id:
|
|
179
|
+
id:string;
|
|
180
180
|
/** Value that configures or reports title for this contract. */
|
|
181
|
-
title:
|
|
181
|
+
title:string;
|
|
182
182
|
/** Value that configures or reports blocked by for this contract. */
|
|
183
|
-
blocked_by:
|
|
183
|
+
blocked_by:string | null;
|
|
184
184
|
/** Value that configures or reports blocked by title for this contract. */
|
|
185
|
-
blocked_by_title:
|
|
185
|
+
blocked_by_title:string | null;
|
|
186
186
|
/** Lifecycle status of the blocking item, or null when unresolved. */
|
|
187
|
-
blocked_by_status:
|
|
187
|
+
blocked_by_status:ItemStatus | null;
|
|
188
188
|
/** Value that configures or reports blocked reason for this contract. */
|
|
189
|
-
blocked_reason:
|
|
189
|
+
blocked_reason:string | null;
|
|
190
190
|
/** Value that configures or reports unblock note for this contract. */
|
|
191
|
-
unblock_note:
|
|
191
|
+
unblock_note:string | null;
|
|
192
192
|
}
|
|
193
193
|
/** Documents the hot file payload exchanged by command, SDK, and package integrations. */
|
|
194
194
|
export interface HotFile {
|
|
195
195
|
/** Filesystem path used for path resolution. */
|
|
196
|
-
path:
|
|
196
|
+
path:string;
|
|
197
197
|
/** Value that configures or reports references for this contract. */
|
|
198
|
-
references:
|
|
198
|
+
references:number;
|
|
199
199
|
/** Value that configures or reports items for this contract. */
|
|
200
|
-
items:
|
|
200
|
+
items:string[];
|
|
201
201
|
}
|
|
202
202
|
/** Documents the workload entry payload exchanged by command, SDK, and package integrations. */
|
|
203
203
|
export interface WorkloadEntry {
|
|
204
204
|
/** Value that configures or reports assignee for this contract. */
|
|
205
|
-
assignee:
|
|
205
|
+
assignee:string | null;
|
|
206
206
|
/** Value that configures or reports active for this contract. */
|
|
207
|
-
active:
|
|
207
|
+
active:number;
|
|
208
208
|
/** Value that configures or reports in progress for this contract. */
|
|
209
|
-
in_progress:
|
|
209
|
+
in_progress:number;
|
|
210
210
|
/** Value that configures or reports items for this contract. */
|
|
211
|
-
items:
|
|
211
|
+
items:string[];
|
|
212
212
|
}
|
|
213
213
|
/** Documents the stale entry payload exchanged by command, SDK, and package integrations. */
|
|
214
214
|
export interface StaleEntry {
|
|
215
215
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
216
|
-
id:
|
|
216
|
+
id:string;
|
|
217
217
|
/** Value that configures or reports title for this contract. */
|
|
218
|
-
title:
|
|
218
|
+
title:string;
|
|
219
219
|
/** Lifecycle state reported for status. */
|
|
220
|
-
status:
|
|
220
|
+
status:ItemStatus;
|
|
221
221
|
/** ISO 8601 timestamp recording when updated occurred. */
|
|
222
|
-
updated_at:
|
|
222
|
+
updated_at:string;
|
|
223
223
|
/** Value that configures or reports stale days for this contract. */
|
|
224
|
-
stale_days:
|
|
224
|
+
stale_days:number;
|
|
225
225
|
}
|
|
226
226
|
/** Documents the recent context item payload exchanged by command, SDK, and package integrations. */
|
|
227
227
|
export interface RecentContextItem extends ContextFocusItem {
|
|
228
228
|
/** ISO 8601 timestamp recording when created occurred. */
|
|
229
|
-
created_at?:
|
|
229
|
+
created_at?:string;
|
|
230
230
|
}
|
|
231
231
|
/** Documents the test health summary payload exchanged by command, SDK, and package integrations. */
|
|
232
232
|
export interface TestHealthSummary {
|
|
233
233
|
/** Value that configures or reports items with tests for this contract. */
|
|
234
|
-
items_with_tests:
|
|
234
|
+
items_with_tests:number;
|
|
235
235
|
/** Value that configures or reports items with recent runs for this contract. */
|
|
236
|
-
items_with_recent_runs:
|
|
236
|
+
items_with_recent_runs:number;
|
|
237
237
|
/** Value that configures or reports recent runs for this contract. */
|
|
238
|
-
recent_runs:
|
|
239
|
-
passed:
|
|
240
|
-
failed:
|
|
241
|
-
skipped:
|
|
238
|
+
recent_runs:{
|
|
239
|
+
passed:number;
|
|
240
|
+
failed:number;
|
|
241
|
+
skipped:number;
|
|
242
242
|
};
|
|
243
243
|
/** Value that configures or reports items failing for this contract. */
|
|
244
|
-
items_failing:
|
|
244
|
+
items_failing:string[];
|
|
245
245
|
}
|
|
246
246
|
/** Token-bounded static health of installed extension packages. */
|
|
247
247
|
export interface ContextExtensionHealth {
|
|
248
248
|
/** Number of installed extension directories inspected. */
|
|
249
|
-
total:
|
|
249
|
+
total:number;
|
|
250
250
|
/** Number of healthy installed extensions. */
|
|
251
|
-
ok:
|
|
251
|
+
ok:number;
|
|
252
252
|
/** Number of degraded installed extensions. */
|
|
253
|
-
degraded:
|
|
253
|
+
degraded:number;
|
|
254
254
|
/** Per-package static discovery health. */
|
|
255
|
-
packages:
|
|
256
|
-
name:
|
|
257
|
-
status:
|
|
255
|
+
packages:Array<{
|
|
256
|
+
name:string;
|
|
257
|
+
status:"ok" | "degraded";
|
|
258
258
|
}>;
|
|
259
259
|
/** Whether package rows were capped. */
|
|
260
|
-
truncated?:
|
|
260
|
+
truncated?:true;
|
|
261
261
|
}
|
|
262
262
|
interface ContextAgendaSummary {
|
|
263
|
-
events:
|
|
264
|
-
items:
|
|
265
|
-
deadlines:
|
|
266
|
-
reminders:
|
|
267
|
-
scheduled:
|
|
263
|
+
events:number;
|
|
264
|
+
items:number;
|
|
265
|
+
deadlines:number;
|
|
266
|
+
reminders:number;
|
|
267
|
+
scheduled:number;
|
|
268
268
|
}
|
|
269
269
|
interface ContextSummary {
|
|
270
270
|
/** Population counters honor item filters and parent scope, never output limits. */
|
|
271
|
-
scope?:
|
|
271
|
+
scope?:"matching_items";
|
|
272
272
|
/** Counts for the bounded focus selection, separate from the matching population. */
|
|
273
|
-
returned_focus?:
|
|
274
|
-
active_items:
|
|
275
|
-
in_progress:
|
|
276
|
-
open:
|
|
277
|
-
blocked:
|
|
273
|
+
returned_focus?:{
|
|
274
|
+
active_items:number;
|
|
275
|
+
in_progress:number;
|
|
276
|
+
open:number;
|
|
277
|
+
blocked:number;
|
|
278
278
|
};
|
|
279
279
|
/** Optional per-section role/blocker codes for projected rows: i/I in progress, o/O open; uppercase is blocked. */
|
|
280
|
-
focus_row_states?:
|
|
281
|
-
active_items:
|
|
282
|
-
in_progress:
|
|
283
|
-
open:
|
|
284
|
-
blocked:
|
|
285
|
-
blocked_fallback_used:
|
|
286
|
-
high_level:
|
|
287
|
-
low_level:
|
|
288
|
-
agenda_events:
|
|
289
|
-
total_items?:
|
|
290
|
-
closed?:
|
|
291
|
-
canceled?:
|
|
280
|
+
focus_row_states?:Record<string,string>;
|
|
281
|
+
active_items:number;
|
|
282
|
+
in_progress:number;
|
|
283
|
+
open:number;
|
|
284
|
+
blocked:number;
|
|
285
|
+
blocked_fallback_used:boolean;
|
|
286
|
+
high_level:number;
|
|
287
|
+
low_level:number;
|
|
288
|
+
agenda_events:number;
|
|
289
|
+
total_items?:number;
|
|
290
|
+
closed?:number;
|
|
291
|
+
canceled?:number;
|
|
292
292
|
}
|
|
293
293
|
/** Documents the context result payload exchanged by command, SDK, and package integrations. */
|
|
294
294
|
export interface ContextResult {
|
|
295
295
|
/** Value that configures or reports output default for this contract. */
|
|
296
|
-
output_default:
|
|
296
|
+
output_default:"toon";
|
|
297
297
|
/** Value that configures or reports now for this contract. */
|
|
298
|
-
now:
|
|
298
|
+
now:string;
|
|
299
299
|
/** Value that configures or reports depth for this contract. */
|
|
300
|
-
depth:
|
|
300
|
+
depth:ContextDepth;
|
|
301
301
|
/** Value that configures or reports sections included for this contract. */
|
|
302
|
-
sections_included:
|
|
302
|
+
sections_included:ContextSectionName[];
|
|
303
303
|
/** Value that configures or reports window for this contract. */
|
|
304
|
-
window:
|
|
305
|
-
anchor:
|
|
306
|
-
start:
|
|
307
|
-
end:
|
|
308
|
-
past:
|
|
309
|
-
from:
|
|
310
|
-
to:
|
|
304
|
+
window:{
|
|
305
|
+
anchor:string;
|
|
306
|
+
start:string | null;
|
|
307
|
+
end:string | null;
|
|
308
|
+
past:boolean;
|
|
309
|
+
from:string | null;
|
|
310
|
+
to:string | null;
|
|
311
311
|
};
|
|
312
312
|
/** Value that configures or reports filters for this contract. */
|
|
313
|
-
filters:
|
|
314
|
-
type:
|
|
315
|
-
tag:
|
|
316
|
-
priority:
|
|
317
|
-
assignee:
|
|
318
|
-
assignee_filter:
|
|
319
|
-
sprint:
|
|
320
|
-
release:
|
|
321
|
-
limit:
|
|
322
|
-
parent:
|
|
323
|
-
token_budget:
|
|
324
|
-
runtime_filters?:
|
|
313
|
+
filters:{
|
|
314
|
+
type:string | null;
|
|
315
|
+
tag:string | null;
|
|
316
|
+
priority:string | null;
|
|
317
|
+
assignee:string | null;
|
|
318
|
+
assignee_filter:string | null;
|
|
319
|
+
sprint:string | null;
|
|
320
|
+
release:string | null;
|
|
321
|
+
limit:string | null;
|
|
322
|
+
parent:string | null;
|
|
323
|
+
token_budget:number;
|
|
324
|
+
runtime_filters?:Record<string,unknown>;
|
|
325
325
|
};
|
|
326
326
|
/** Value that configures or reports summary for this contract. */
|
|
327
|
-
summary:
|
|
327
|
+
summary:ContextSummary;
|
|
328
328
|
/** Value that configures or reports high level for this contract. */
|
|
329
|
-
high_level:
|
|
329
|
+
high_level:ContextFocusItem[];
|
|
330
330
|
/** Value that configures or reports low level for this contract. */
|
|
331
|
-
low_level:
|
|
331
|
+
low_level:ContextFocusItem[];
|
|
332
332
|
/** Value that configures or reports blocked fallback for this contract. */
|
|
333
|
-
blocked_fallback:
|
|
333
|
+
blocked_fallback:ContextFocusItem[];
|
|
334
334
|
/** Value that configures or reports agenda for this contract. */
|
|
335
|
-
agenda:
|
|
336
|
-
summary:
|
|
337
|
-
events:
|
|
335
|
+
agenda:{
|
|
336
|
+
summary:ContextAgendaSummary;
|
|
337
|
+
events:ContextAgendaEvent[];
|
|
338
338
|
};
|
|
339
339
|
/** Value that configures or reports hierarchy for this contract. */
|
|
340
|
-
hierarchy?:
|
|
340
|
+
hierarchy?:HierarchyNode[];
|
|
341
341
|
/** Value that configures or reports activity for this contract. */
|
|
342
|
-
activity?:
|
|
342
|
+
activity?:CompactActivityEntry[];
|
|
343
343
|
/** Value that configures or reports progress for this contract. */
|
|
344
|
-
progress?:
|
|
344
|
+
progress?:ProgressEntry[];
|
|
345
345
|
/** Value that configures or reports blockers for this contract. */
|
|
346
|
-
blockers?:
|
|
346
|
+
blockers?:BlockerEntry[];
|
|
347
347
|
/** Value that configures or reports recently created for this contract. */
|
|
348
|
-
recently_created?:
|
|
348
|
+
recently_created?:RecentContextItem[];
|
|
349
349
|
/** Value that configures or reports unparented for this contract. */
|
|
350
|
-
unparented?:
|
|
350
|
+
unparented?:ContextFocusItem[];
|
|
351
351
|
/** Value that configures or reports files for this contract. */
|
|
352
|
-
files?:
|
|
352
|
+
files?:HotFile[];
|
|
353
353
|
/** Value that configures or reports workload for this contract. */
|
|
354
|
-
workload?:
|
|
354
|
+
workload?:WorkloadEntry[];
|
|
355
355
|
/** Value that configures or reports staleness for this contract. */
|
|
356
|
-
staleness?:
|
|
356
|
+
staleness?:StaleEntry[];
|
|
357
357
|
/** Value that configures or reports tests for this contract. */
|
|
358
|
-
tests?:
|
|
358
|
+
tests?:TestHealthSummary;
|
|
359
359
|
/** Token-bounded installed extension health derived without module imports. */
|
|
360
|
-
extension_health?:
|
|
360
|
+
extension_health?:ContextExtensionHealth;
|
|
361
361
|
/** Cursor-bound historical rollups automatically attached for large workspaces. */
|
|
362
|
-
workspace_memory?:
|
|
362
|
+
workspace_memory?:{
|
|
363
363
|
/** Persistence freshness for the derived projection. */
|
|
364
|
-
cache_status:
|
|
364
|
+
cache_status:"fresh" | "rebuilt";
|
|
365
365
|
/** Source cursor shared with the authoritative metadata projection. */
|
|
366
|
-
source_cursor:
|
|
366
|
+
source_cursor:string;
|
|
367
367
|
/** Recent epoch and epic summaries selected within the context token budget. */
|
|
368
|
-
rollups:
|
|
368
|
+
rollups:WorkspaceMemoryRollup[];
|
|
369
369
|
};
|
|
370
370
|
/** Value that configures or reports suggestions for this contract. */
|
|
371
|
-
suggestions?:
|
|
371
|
+
suggestions?:string[];
|
|
372
372
|
/** Focus-row field subset requested via --fields; null/omitted means full rows. */
|
|
373
|
-
focus_fields?:
|
|
373
|
+
focus_fields?:string[];
|
|
374
374
|
/** Value that configures or reports warnings for this contract. */
|
|
375
|
-
warnings?:
|
|
375
|
+
warnings?:string[];
|
|
376
376
|
/** Actionable recovery contracts for context signal-store warnings. */
|
|
377
|
-
warning_details?:
|
|
377
|
+
warning_details?:ContextSignalStoreReadResult["warning_details"];
|
|
378
378
|
/** Value that configures or reports ranking for this contract. */
|
|
379
|
-
ranking?:
|
|
379
|
+
ranking?:ContextRankingSummary;
|
|
380
380
|
/** Token-budget selection and projection accounting for ranked focus rows. */
|
|
381
|
-
packing?:
|
|
381
|
+
packing?:ContextPackingSummary;
|
|
382
382
|
/** Whether additional ranked focus rows remain after this page. */
|
|
383
|
-
has_more?:
|
|
383
|
+
has_more?:boolean;
|
|
384
384
|
/** Opaque continuation cursor for the next ranked focus page. */
|
|
385
|
-
next_cursor?:
|
|
385
|
+
next_cursor?:string;
|
|
386
386
|
/** Effective ranked-focus page size. */
|
|
387
|
-
applied_limit?:
|
|
387
|
+
applied_limit?:number;
|
|
388
388
|
/** Explicit marker that focus rows were bounded. */
|
|
389
|
-
truncated?:
|
|
389
|
+
truncated?:true;
|
|
390
390
|
}
|
|
391
391
|
/** Compact token-budget accounting shared by context and next results. */
|
|
392
|
-
export type ContextPackingSummary = Omit<ContextPackingReport<unknown>,
|
|
393
|
-
included:
|
|
394
|
-
id:
|
|
395
|
-
projection:
|
|
396
|
-
tokens:
|
|
392
|
+
export type ContextPackingSummary = Omit<ContextPackingReport<unknown>,"included"> & {
|
|
393
|
+
included:Array<{
|
|
394
|
+
id:string;
|
|
395
|
+
projection:string;
|
|
396
|
+
tokens:number;
|
|
397
397
|
}>;
|
|
398
398
|
};
|
|
399
399
|
/** Compact explainability envelope shared by context and next JSON results. */
|
|
400
400
|
export interface ContextRankingSummary {
|
|
401
401
|
/** Value that configures or reports model for this contract. */
|
|
402
|
-
model:
|
|
402
|
+
model:string;
|
|
403
403
|
/** Value that configures or reports available signals for this contract. */
|
|
404
|
-
available_signals:
|
|
404
|
+
available_signals:ContextRelevanceSignalName[];
|
|
405
405
|
/** Value that configures or reports items for this contract. */
|
|
406
|
-
items:
|
|
407
|
-
id:
|
|
408
|
-
rank:
|
|
409
|
-
baseline_rank:
|
|
410
|
-
score:
|
|
411
|
-
contributions:
|
|
406
|
+
items:Array<{
|
|
407
|
+
id:string;
|
|
408
|
+
rank:number;
|
|
409
|
+
baseline_rank:number;
|
|
410
|
+
score:number;
|
|
411
|
+
contributions:ContextRelevanceContributions;
|
|
412
412
|
/** Authoritative temporal source used for the recency contribution. */
|
|
413
|
-
recency?:
|
|
413
|
+
recency?:ContextRecencyEvidence;
|
|
414
414
|
}>;
|
|
415
415
|
/** Number of candidates considered before answer-sized projection. */
|
|
416
|
-
candidate_count:
|
|
416
|
+
candidate_count:number;
|
|
417
417
|
/** Number of candidate explanations omitted because their rows were not served. */
|
|
418
|
-
omitted_count:
|
|
418
|
+
omitted_count:number;
|
|
419
419
|
/** Rebuildable feature-store freshness and provenance. */
|
|
420
|
-
feature_store?:
|
|
421
|
-
source:
|
|
422
|
-
cache_status:
|
|
423
|
-
source_cursor:
|
|
424
|
-
generated_at:
|
|
420
|
+
feature_store?:{
|
|
421
|
+
source:"derived_index" | "scan_fallback";
|
|
422
|
+
cache_status:"fresh" | "rebuilt";
|
|
423
|
+
source_cursor:string;
|
|
424
|
+
generated_at:string;
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
427
|
/** Parses the comma-separated `--fields` value into a validated, de-duplicated focus-row projection list. Returns undefined when no projection was requested. */
|
|
428
|
-
export declare function parseContextFocusFields(raw:
|
|
428
|
+
export declare function parseContextFocusFields(raw:string | undefined):string[] | undefined;
|
|
429
429
|
/** Projects focus rows onto the requested field subset, preserving field order so the rendered/serialized output mirrors the `--fields` argument. */
|
|
430
|
-
export declare function projectContextFocusRows<T extends ContextFocusItem>(rows:
|
|
430
|
+
export declare function projectContextFocusRows<T extends ContextFocusItem>(rows:T[],fields:string[]):ContextFocusItem[];
|
|
431
431
|
/** Implements resolve context output format for the public runtime surface of this module. */
|
|
432
|
-
export declare function resolveContextOutputFormat(options:
|
|
433
|
-
declare function parseContextLimit(raw:
|
|
432
|
+
export declare function resolveContextOutputFormat(options:ContextOptions,global:GlobalOptions):ContextOutputFormat;
|
|
433
|
+
declare function parseContextLimit(raw:string | undefined,depth:ContextDepth):number;
|
|
434
434
|
/** Resolve a positive context-packing budget from CLI or SDK input. */
|
|
435
|
-
export declare function resolveContextTokenBudget(raw:
|
|
436
|
-
declare function resolveContextLimitAtScale(limit:
|
|
435
|
+
export declare function resolveContextTokenBudget(raw:string | number | undefined,fallback:number):number;
|
|
436
|
+
declare function resolveContextLimitAtScale(limit:number,itemCount:number):number;
|
|
437
437
|
/** Implements parse context depth for the public runtime surface of this module. */
|
|
438
|
-
export declare function parseContextDepth(raw:
|
|
438
|
+
export declare function parseContextDepth(raw:string | undefined,settings:ContextSettings):ContextDepth;
|
|
439
439
|
/** Implements parse context sections for the public runtime surface of this module. */
|
|
440
|
-
export declare function parseContextSections(raw:
|
|
441
|
-
declare function parseActivityLimit(raw:
|
|
442
|
-
declare function parseStaleThresholdDays(raw:
|
|
443
|
-
declare function statusRank(status:
|
|
444
|
-
declare function isClosedStatus(status:
|
|
445
|
-
declare function isInProgressStatus(status:
|
|
446
|
-
declare function isOpenStatus(status:
|
|
447
|
-
declare function isBlockedStatus(status:
|
|
448
|
-
declare function stripListProjectionFlags(options:
|
|
440
|
+
export declare function parseContextSections(raw:string[] | undefined,depth:ContextDepth,settings:ContextSettings):ContextSectionName[];
|
|
441
|
+
declare function parseActivityLimit(raw:string | undefined,settings:ContextSettings):number;
|
|
442
|
+
declare function parseStaleThresholdDays(raw:string | undefined,settings:ContextSettings):number;
|
|
443
|
+
declare function statusRank(status:ItemStatus,statusRegistry:RuntimeStatusRegistry):number;
|
|
444
|
+
declare function isClosedStatus(status:ItemStatus,statusRegistry:RuntimeStatusRegistry):boolean;
|
|
445
|
+
declare function isInProgressStatus(status:ItemStatus,statusRegistry:RuntimeStatusRegistry):boolean;
|
|
446
|
+
declare function isOpenStatus(status:ItemStatus,statusRegistry:RuntimeStatusRegistry):boolean;
|
|
447
|
+
declare function isBlockedStatus(status:ItemStatus,statusRegistry:RuntimeStatusRegistry):boolean;
|
|
448
|
+
declare function stripListProjectionFlags(options:ContextOptions):Record<string,unknown>;
|
|
449
449
|
/**
|
|
450
450
|
* Resolves the transitive subtree (the anchor item plus every descendant via
|
|
451
451
|
* parent links) so `--parent` can scope a snapshot to one epic/milestone. Reuses
|
|
@@ -455,17 +455,17 @@ declare function stripListProjectionFlags(options: ContextOptions): Record<strin
|
|
|
455
455
|
* `found` flag is false when the anchor id is absent from the corpus. Exported so
|
|
456
456
|
* sibling read commands (e.g. `pm next`) can apply the same subtree scoping.
|
|
457
457
|
*/
|
|
458
|
-
export declare function collectSubtreeIds(corpus:
|
|
459
|
-
ids:
|
|
460
|
-
found:
|
|
458
|
+
export declare function collectSubtreeIds(corpus:ItemMetadata[],parentId:string):{
|
|
459
|
+
ids:Set<string>;
|
|
460
|
+
found:boolean;
|
|
461
461
|
};
|
|
462
|
-
declare function parseContextParent(raw:
|
|
463
|
-
declare function compareOptionalOrder(left:
|
|
464
|
-
declare function compareOptionalDeadline(left:
|
|
465
|
-
declare function parseContextTimestampMs(value:
|
|
466
|
-
declare function sortableTimestamp(value:
|
|
467
|
-
declare function dateTokenForTimestamp(value:
|
|
468
|
-
declare function normalizedParentId(value:
|
|
462
|
+
declare function parseContextParent(raw:string | undefined):string | undefined;
|
|
463
|
+
declare function compareOptionalOrder(left:number | null | undefined,right:number | null | undefined):number;
|
|
464
|
+
declare function compareOptionalDeadline(left:string | null | undefined,right:string | null | undefined):number;
|
|
465
|
+
declare function parseContextTimestampMs(value:unknown):number;
|
|
466
|
+
declare function sortableTimestamp(value:unknown):string;
|
|
467
|
+
declare function dateTokenForTimestamp(value:unknown):string;
|
|
468
|
+
declare function normalizedParentId(value:unknown):string | null;
|
|
469
469
|
/**
|
|
470
470
|
* Ranks two items by work criticality: in-progress before open before blocked
|
|
471
471
|
* before draft (via {@link statusRank}), then ascending priority, explicit order,
|
|
@@ -473,89 +473,89 @@ declare function normalizedParentId(value: unknown): string | null;
|
|
|
473
473
|
* Exported as the canonical focus ordering so sibling read commands (e.g.
|
|
474
474
|
* `pm next`) recommend work in the exact same sequence as `pm context`.
|
|
475
475
|
*/
|
|
476
|
-
export declare function compareCriticalItems(left:
|
|
476
|
+
export declare function compareCriticalItems(left:ItemMetadata,right:ItemMetadata,statusRegistry:RuntimeStatusRegistry):number;
|
|
477
477
|
/** Packs a relevance report with monotone identity, summary, and full item projections. */
|
|
478
|
-
export declare function packRankedContextItems(report:
|
|
478
|
+
export declare function packRankedContextItems(report:ContextRelevanceReport<ItemMetadata>,tokenBudget:number,requiredIds?:ReadonlySet<string>,profile?:"context" | "next"):ContextPackingReport<ItemMetadata>;
|
|
479
479
|
/** Projects the SDK packer report onto the stable low-token command envelope. */
|
|
480
|
-
export declare function toContextPackingSummary(report:
|
|
480
|
+
export declare function toContextPackingSummary(report:ContextPackingReport<ItemMetadata>):ContextPackingSummary;
|
|
481
481
|
/** Project a full scorer report onto the low-token command explanation shape. */
|
|
482
|
-
export declare function toContextRankingSummary<TItem>(report:
|
|
483
|
-
declare function completionPct(closed:
|
|
482
|
+
export declare function toContextRankingSummary<TItem>(report:ContextRelevanceReport<TItem>,featureStore?:ContextSignalStoreReadResult,servedItemIds?:ReadonlySet<string>):ContextRankingSummary;
|
|
483
|
+
declare function completionPct(closed:number,total:number):number;
|
|
484
484
|
/** Indexes items by their parent id, yielding a parent→direct-children map used by the hierarchy/progress rollups and by focus-row child completion. Items without a parent are skipped. Exported so sibling read commands reuse the same index. */
|
|
485
|
-
export declare function buildChildrenByParent(allItems:
|
|
485
|
+
export declare function buildChildrenByParent(allItems:ItemMetadata[]):Map<string,ItemMetadata[]>;
|
|
486
486
|
/**
|
|
487
487
|
* Projects an item onto the compact {@link ContextFocusItem} focus row. When both
|
|
488
488
|
* a status registry and a parent→children index are supplied, it also folds in the
|
|
489
489
|
* descendant rollup (`children_total`/`children_closed`/`completion_pct`). Exported
|
|
490
490
|
* so sibling read commands (e.g. `pm next`) emit identically-shaped focus rows.
|
|
491
491
|
*/
|
|
492
|
-
export declare function toContextFocusItem(item:
|
|
493
|
-
declare function summarizeAgenda(events:
|
|
492
|
+
export declare function toContextFocusItem(item:ItemMetadata,statusRegistry?:RuntimeStatusRegistry,childrenByParent?:Map<string,ItemMetadata[]>):ContextFocusItem;
|
|
493
|
+
declare function summarizeAgenda(events:CalendarRow[]):ContextAgendaSummary;
|
|
494
494
|
/** Combines warning groups into a stable, duplicate-free lexical ordering. */
|
|
495
|
-
export declare function mergeSortedWarnings(...warningGroups:
|
|
496
|
-
declare function filterTerminalCalendarEvents(events:
|
|
497
|
-
declare function buildHierarchy(allItems:
|
|
498
|
-
declare function collectDescendants(parentId:
|
|
495
|
+
export declare function mergeSortedWarnings(...warningGroups:Array<string[] | undefined>):string[];
|
|
496
|
+
declare function filterTerminalCalendarEvents(events:CalendarRow[],statusRegistry:RuntimeStatusRegistry):CalendarRow[];
|
|
497
|
+
declare function buildHierarchy(allItems:ItemMetadata[],activeItems:ItemMetadata[],statusRegistry:RuntimeStatusRegistry,limit:number):HierarchyNode[];
|
|
498
|
+
declare function collectDescendants(parentId:string,childrenByParent:Map<string,ItemMetadata[]>):ItemMetadata[];
|
|
499
499
|
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
500
|
-
export declare const _testOnly:
|
|
501
|
-
buildActivity:
|
|
502
|
-
buildBlockers:
|
|
503
|
-
buildChildrenByParent:
|
|
504
|
-
buildHierarchy:
|
|
505
|
-
buildHotFiles:
|
|
506
|
-
buildProgress:
|
|
507
|
-
buildRecentlyCreated:
|
|
508
|
-
buildStaleness:
|
|
509
|
-
buildTestHealth:
|
|
510
|
-
buildUnparented:
|
|
511
|
-
buildWorkload:
|
|
512
|
-
collectDescendants:
|
|
513
|
-
collectSubtreeIds:
|
|
514
|
-
compareCriticalItems:
|
|
515
|
-
compareOptionalDeadline:
|
|
516
|
-
compareOptionalOrder:
|
|
517
|
-
completionPct:
|
|
518
|
-
dateTokenForTimestamp:
|
|
519
|
-
filterTerminalCalendarEvents:
|
|
520
|
-
formatAgendaLine:
|
|
521
|
-
isBlockedStatus:
|
|
522
|
-
isClosedStatus:
|
|
523
|
-
isInProgressStatus:
|
|
524
|
-
isOpenStatus:
|
|
525
|
-
mergeSortedWarnings:
|
|
526
|
-
normalizedParentId:
|
|
527
|
-
parseActivityLimit:
|
|
528
|
-
parseContextLimit:
|
|
529
|
-
resolveContextLimitAtScale:
|
|
530
|
-
parseContextParent:
|
|
531
|
-
parseContextTimestampMs:
|
|
532
|
-
parseStaleThresholdDays:
|
|
533
|
-
sortableTimestamp:
|
|
534
|
-
statusRank:
|
|
535
|
-
stripListProjectionFlags:
|
|
536
|
-
summarizeAgenda:
|
|
537
|
-
toContextFocusItem:
|
|
500
|
+
export declare const _testOnly:{
|
|
501
|
+
buildActivity:typeof buildActivity;
|
|
502
|
+
buildBlockers:typeof buildBlockers;
|
|
503
|
+
buildChildrenByParent:typeof buildChildrenByParent;
|
|
504
|
+
buildHierarchy:typeof buildHierarchy;
|
|
505
|
+
buildHotFiles:typeof buildHotFiles;
|
|
506
|
+
buildProgress:typeof buildProgress;
|
|
507
|
+
buildRecentlyCreated:typeof buildRecentlyCreated;
|
|
508
|
+
buildStaleness:typeof buildStaleness;
|
|
509
|
+
buildTestHealth:typeof buildTestHealth;
|
|
510
|
+
buildUnparented:typeof buildUnparented;
|
|
511
|
+
buildWorkload:typeof buildWorkload;
|
|
512
|
+
collectDescendants:typeof collectDescendants;
|
|
513
|
+
collectSubtreeIds:typeof collectSubtreeIds;
|
|
514
|
+
compareCriticalItems:typeof compareCriticalItems;
|
|
515
|
+
compareOptionalDeadline:typeof compareOptionalDeadline;
|
|
516
|
+
compareOptionalOrder:typeof compareOptionalOrder;
|
|
517
|
+
completionPct:typeof completionPct;
|
|
518
|
+
dateTokenForTimestamp:typeof dateTokenForTimestamp;
|
|
519
|
+
filterTerminalCalendarEvents:typeof filterTerminalCalendarEvents;
|
|
520
|
+
formatAgendaLine:typeof formatAgendaLine;
|
|
521
|
+
isBlockedStatus:typeof isBlockedStatus;
|
|
522
|
+
isClosedStatus:typeof isClosedStatus;
|
|
523
|
+
isInProgressStatus:typeof isInProgressStatus;
|
|
524
|
+
isOpenStatus:typeof isOpenStatus;
|
|
525
|
+
mergeSortedWarnings:typeof mergeSortedWarnings;
|
|
526
|
+
normalizedParentId:typeof normalizedParentId;
|
|
527
|
+
parseActivityLimit:typeof parseActivityLimit;
|
|
528
|
+
parseContextLimit:typeof parseContextLimit;
|
|
529
|
+
resolveContextLimitAtScale:typeof resolveContextLimitAtScale;
|
|
530
|
+
parseContextParent:typeof parseContextParent;
|
|
531
|
+
parseContextTimestampMs:typeof parseContextTimestampMs;
|
|
532
|
+
parseStaleThresholdDays:typeof parseStaleThresholdDays;
|
|
533
|
+
sortableTimestamp:typeof sortableTimestamp;
|
|
534
|
+
statusRank:typeof statusRank;
|
|
535
|
+
stripListProjectionFlags:typeof stripListProjectionFlags;
|
|
536
|
+
summarizeAgenda:typeof summarizeAgenda;
|
|
537
|
+
toContextFocusItem:typeof toContextFocusItem;
|
|
538
538
|
};
|
|
539
|
-
declare function buildActivity(activityLimit:
|
|
540
|
-
declare function buildProgress(allItems:
|
|
541
|
-
declare function buildBlockers(blockedItems:
|
|
542
|
-
declare function buildHotFiles(activeItems:
|
|
543
|
-
declare function buildWorkload(activeItems:
|
|
544
|
-
declare function buildStaleness(allNonTerminal:
|
|
545
|
-
declare function buildRecentlyCreated(allNonTerminal:
|
|
546
|
-
declare function buildUnparented(allNonTerminal:
|
|
547
|
-
declare function buildTestHealth(activeItems:
|
|
548
|
-
declare function formatAgendaLine(event:
|
|
539
|
+
declare function buildActivity(activityLimit:number,global:GlobalOptions):Promise<CompactActivityEntry[]>;
|
|
540
|
+
declare function buildProgress(allItems:ItemMetadata[],activeItems:ItemMetadata[],blockedIds:ReadonlySet<string>,statusRegistry:RuntimeStatusRegistry,limit:number):ProgressEntry[];
|
|
541
|
+
declare function buildBlockers(blockedItems:ItemMetadata[],fullCorpus:ItemMetadata[],statusRegistry:RuntimeStatusRegistry,limit:number):BlockerEntry[];
|
|
542
|
+
declare function buildHotFiles(activeItems:ItemMetadata[],limit:number):HotFile[];
|
|
543
|
+
declare function buildWorkload(activeItems:ItemMetadata[],statusRegistry:RuntimeStatusRegistry,limit:number):WorkloadEntry[];
|
|
544
|
+
declare function buildStaleness(allNonTerminal:ItemMetadata[],staleThresholdDays:number,now:string,limit:number):StaleEntry[];
|
|
545
|
+
declare function buildRecentlyCreated(allNonTerminal:ItemMetadata[],statusRegistry:RuntimeStatusRegistry,childrenByParent:Map<string,ItemMetadata[]>,limit:number):RecentContextItem[];
|
|
546
|
+
declare function buildUnparented(allNonTerminal:ItemMetadata[],statusRegistry:RuntimeStatusRegistry,childrenByParent:Map<string,ItemMetadata[]>,limit:number):ContextFocusItem[];
|
|
547
|
+
declare function buildTestHealth(activeItems:ItemMetadata[]):TestHealthSummary;
|
|
548
|
+
declare function formatAgendaLine(event:ContextAgendaEvent):string;
|
|
549
549
|
/** Implements render context markdown for the public runtime surface of this module. */
|
|
550
|
-
export declare function renderContextMarkdown(result:
|
|
550
|
+
export declare function renderContextMarkdown(result:ContextResult):string;
|
|
551
551
|
/**
|
|
552
552
|
* Remove redundant context tags while preserving their provenance. Identical
|
|
553
553
|
* child tag sets are folded only when the parent row is present in the same
|
|
554
554
|
* bounded result, so consumers never need an unavailable follow-up read.
|
|
555
555
|
* `--no-tags` removes both tag values and inheritance markers.
|
|
556
556
|
*/
|
|
557
|
-
export declare function applyContextTagProjection(result:
|
|
557
|
+
export declare function applyContextTagProjection(result:ContextResult,noTags:boolean):void;
|
|
558
558
|
/** Resolve the optional static extension-health projection without module imports. */
|
|
559
|
-
export declare function resolveContextExtensionHealthProjection(omitted:
|
|
559
|
+
export declare function resolveContextExtensionHealthProjection(omitted:boolean,pmRoot:string,settings:PmSettings):Promise<Pick<ContextResult,"extension_health">>;
|
|
560
560
|
/** Implements run context for the public runtime surface of this module. */
|
|
561
|
-
export declare function runContext(options:
|
|
561
|
+
export declare function runContext(options:ContextOptions,global:GlobalOptions):Promise<ContextResult>;
|