@unbrained/pm-cli 2026.11.9 → 2026.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +16 -0
- package/dist/cli/error-guidance.js +4 -4
- package/dist/cli/main.js +1 -1
- package/dist/cli/public.d.ts +1 -1
- package/dist/cli/register-history-maintenance.js +2 -2
- package/dist/cli/register-setup.js +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-G6Q4VQSI.js → chunk-4AASUCHO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-EZRLW4R6.js → chunk-4FLAKTZW.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-5CAMQHEW.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-3BMIAI4P.js → chunk-7NAAW5EX.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-BSJSGDA3.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-XKY4LUXN.js → chunk-CZETQYKO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ASJZMYKM.js → chunk-D727C4RO.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-6V4PGJBZ.js → chunk-EHDGHFMJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GZVOOHTO.js → chunk-F6FBGLR7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-O2M3TNFY.js → chunk-F7P2NZEG.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-YK5GAWOT.js → chunk-FYD6LSJA.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-L4WWG2H6.js +6 -0
- package/dist/cli-bundle/chunks/{chunk-YV5ALMG2.js → chunk-NNE63MSM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Z3QEEOAM.js → chunk-NZAFLDSH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MSJ7IHMJ.js → chunk-OJ2KEDUX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ELNWRSGZ.js → chunk-T2MNRM3S.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VATZTJE3.js → chunk-TBBWPEF5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GDQ2T2OR.js → chunk-U7LILCUN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-BLUCQ4T4.js → chunk-UFPLZ6LZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JK7O7MFO.js → chunk-UL64P6MR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GCPP37N6.js → chunk-WNEUWDUE.js} +46 -46
- package/dist/cli-bundle/chunks/{chunk-5VRJPPUC.js → chunk-X7NM5HVQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IGT252ES.js → chunk-YSWD2NXB.js} +2 -2
- package/dist/cli-bundle/chunks/{item-revision-Y5CE3EIN.js → item-revision-M7KXLQXF.js} +2 -2
- package/dist/cli-bundle/chunks/item-transaction-4N5P34GO.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-admission-TAQN2AKK.js → mutation-admission-374UR7NI.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-XMQYFUFI.js → register-list-query-GSB7PP5P.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-OBVCFLDK.js → register-mutation-ZBF6ITYK.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-CGNFZ6DR.js → register-operations-PWF6GOHE.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-LFB5ERXH.js → register-setup-QDZ2Y3CI.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-NQHF6JPC.js → stage-67WGPKPH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-HNFY3XLC.js → chunk-2Y4H4LIX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UIKLNSW3.js → chunk-3DWNH72D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-3K2MYE7R.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-CUGJ2DY2.js → chunk-56MIAFEN.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{chunk-Q45LDP7P.js → chunk-67M7E2Z3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-XLSTFUXM.js → chunk-BE2GK2G7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-C3DO4ZGZ.js → chunk-HTMQDNVC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QWUWNFQO.js → chunk-LY3JXL25.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IS5FLEZW.js → chunk-PAGW6A2X.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-4FWMXQN3.js → chunk-QCHCEFTO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-AH5IST3V.js → chunk-QHGGO7SY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-QK7FX4O5.js +44 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RNZUORGI.js → chunk-RFMKS7VD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-MYBKRV5R.js → chunk-U7HWWEJ2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-UIZVD36C.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-J7PWHKZK.js → chunk-WJHDUON5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-LDMBNTOG.js → chunk-WK773UVA.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-ZBOCYFBE.js +82 -0
- package/dist/cli-bundle/focused-chunks/{item-revision-M6FOLME2.js → item-revision-XC4ZJ7MY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{item-transaction-H6VA5JGB.js → item-transaction-CVGK4RJP.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-PRTQWQK6.js → mutation-admission-N27D5H64.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-7T77PSJD.js → stage-KPK2UHVO.js} +2 -2
- package/dist/cli-bundle/main.js +26 -26
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +51 -51
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +1 -1
- package/dist/core/checkpoint/mutation-checkpoint.d.ts +12 -20
- package/dist/core/config/nested-settings.d.ts +14 -45
- package/dist/core/config/nested-settings.js +1 -1
- package/dist/core/config/positional-value.d.ts +11 -14
- package/dist/core/config/positional-value.js +1 -1
- package/dist/core/extensions/activation-summary-markdown.d.ts +4 -5
- package/dist/core/extensions/activation-summary.d.ts +7 -15
- package/dist/core/extensions/capability-usage.d.ts +7 -23
- package/dist/core/extensions/command-hook-context.d.ts +4 -7
- package/dist/core/extensions/command-metadata-contract.d.ts +2 -2
- package/dist/core/extensions/contribution-inventory.d.ts +3 -25
- package/dist/core/extensions/extension-capability-aliases.d.ts +7 -10
- package/dist/core/extensions/extension-hook-runtime.d.ts +2 -2
- package/dist/core/extensions/extension-policy.d.ts +12 -47
- package/dist/core/extensions/extension-registries.d.ts +2 -2
- package/dist/core/extensions/extension-types.d.ts +332 -545
- package/dist/core/extensions/flag-definition-validation.d.ts +11 -13
- package/dist/core/extensions/flag-value-types.d.ts +11 -13
- package/dist/core/extensions/index.d.ts +15 -20
- package/dist/core/extensions/item-field-types.d.ts +5 -5
- package/dist/core/extensions/item-fields.d.ts +4 -7
- package/dist/core/extensions/loader.d.ts +5 -69
- package/dist/core/extensions/manifest-parser.d.ts +3 -3
- package/dist/core/extensions/manifest-schema.d.ts +10 -13
- package/dist/core/extensions/registration-contracts.d.ts +2 -4
- package/dist/core/extensions/registration-validation.d.ts +1 -1
- package/dist/core/extensions/registration-values.d.ts +5 -7
- package/dist/core/extensions/runtime-registrations.d.ts +6 -6
- package/dist/core/extensions/version-compat.d.ts +9 -10
- package/dist/core/fs/fs-utils.d.ts +4 -6
- package/dist/core/fs/host-environment-errors.d.ts +8 -10
- package/dist/core/governance/content-fields.d.ts +10 -14
- package/dist/core/governance/issue-codes.d.ts +12 -18
- package/dist/core/governance/metadata-coverage.d.ts +24 -34
- package/dist/core/history/digest.d.ts +3 -3
- package/dist/core/history/event-classification.d.ts +5 -5
- package/dist/core/history/event-index.d.ts +14 -35
- package/dist/core/history/history-compact-bulk.d.ts +10 -13
- package/dist/core/history/history-diff.d.ts +6 -11
- package/dist/core/history/history-rewrite.d.ts +24 -40
- package/dist/core/history/history-storage-stats.d.ts +9 -17
- package/dist/core/history/history-stream-policy.d.ts +8 -11
- package/dist/core/history/history.d.ts +10 -44
- package/dist/core/history/identity.d.ts +4 -5
- package/dist/core/history/operation-contract.d.ts +5 -15
- package/dist/core/history/projection.d.ts +10 -14
- package/dist/core/history/read.d.ts +6 -7
- package/dist/core/history/replay.d.ts +16 -37
- package/dist/core/history/workspace-history.d.ts +27 -60
- package/dist/core/io/body-file.d.ts +2 -2
- package/dist/core/io/bulk-ids-input.d.ts +7 -8
- package/dist/core/item/actionability.d.ts +16 -22
- package/dist/core/item/dependency-reference.d.ts +2 -2
- package/dist/core/item/id.d.ts +5 -9
- package/dist/core/item/item-format-version.d.ts +11 -13
- package/dist/core/item/item-format.d.ts +11 -59
- package/dist/core/item/item-record.d.ts +2 -2
- package/dist/core/item/literal-mutation-input.d.ts +2 -2
- package/dist/core/item/parent-reference-policy.d.ts +4 -7
- package/dist/core/item/parse.d.ts +10 -26
- package/dist/core/item/plan-lifecycle.d.ts +3 -3
- package/dist/core/item/priority.d.ts +2 -2
- package/dist/core/item/sprint-release-format.d.ts +3 -7
- package/dist/core/item/status-filter.d.ts +5 -7
- package/dist/core/item/status.d.ts +3 -4
- package/dist/core/item/type-registry.d.ts +17 -24
- package/dist/core/item/type-synonyms.d.ts +1 -1
- package/dist/core/lock/lock-owner.d.ts +8 -10
- package/dist/core/lock/lock.d.ts +19 -67
- package/dist/core/output/output-control.d.ts +5 -6
- package/dist/core/output/output.d.ts +10 -19
- package/dist/core/output/tabular.d.ts +2 -2
- package/dist/core/packages/manifest.d.ts +13 -17
- package/dist/core/packages/root.d.ts +3 -3
- package/dist/core/policy/workflow-policy-schema.d.ts +2 -310
- package/dist/core/policy/workflow-policy-store.d.ts +5 -14
- package/dist/core/policy/workflow-policy.d.ts +25 -52
- package/dist/core/profile/profile-describe.d.ts +8 -11
- package/dist/core/profile/profile-lint.d.ts +11 -13
- package/dist/core/profile/profile-plan.d.ts +30 -49
- package/dist/core/profile/profile-presets.d.ts +25 -36
- package/dist/core/reproducibility/context.d.ts +6 -7
- package/dist/core/schema/fields-file.d.ts +14 -21
- package/dist/core/schema/item-types-file.d.ts +16 -22
- package/dist/core/schema/runtime-field-filters.d.ts +2 -2
- package/dist/core/schema/runtime-field-values.d.ts +6 -13
- package/dist/core/schema/runtime-schema.d.ts +19 -31
- package/dist/core/schema/status-defs-file.d.ts +15 -25
- package/dist/core/schema/status-token.d.ts +1 -1
- package/dist/core/schema/type-inference.d.ts +6 -8
- package/dist/core/schema/type-presets.d.ts +5 -5
- package/dist/core/schema/type-workflows.d.ts +11 -16
- package/dist/core/search/background-refresh.d.ts +6 -12
- package/dist/core/search/bm25.d.ts +11 -19
- package/dist/core/search/cache.d.ts +19 -41
- package/dist/core/search/corpus.d.ts +16 -19
- package/dist/core/search/embedding-batches.d.ts +12 -17
- package/dist/core/search/eval-thresholds.d.ts +3 -3
- package/dist/core/search/eval.d.ts +16 -34
- package/dist/core/search/http-client.d.ts +14 -18
- package/dist/core/search/providers.d.ts +22 -39
- package/dist/core/search/relevance.d.ts +14 -19
- package/dist/core/search/semantic-defaults.d.ts +4 -5
- package/dist/core/search/vector-stores.d.ts +35 -57
- package/dist/core/search/vectorization-metadata.d.ts +9 -11
- package/dist/core/sentry/helpers.d.ts +6 -31
- package/dist/core/sentry/instrument.d.ts +6 -59
- package/dist/core/session/session-state.d.ts +12 -32
- package/dist/core/shared/agent-session-context.d.ts +10 -17
- package/dist/core/shared/author.d.ts +48 -69
- package/dist/core/shared/command-line.d.ts +3 -3
- package/dist/core/shared/command-types.d.ts +3 -4
- package/dist/core/shared/constants.d.ts +14 -32
- package/dist/core/shared/error-details.d.ts +5 -18
- package/dist/core/shared/errors.d.ts +42 -83
- package/dist/core/shared/html-entity-decode.d.ts +1 -1
- package/dist/core/shared/item-metadata-contract.d.ts +2 -2
- package/dist/core/shared/lazy-module.d.ts +1 -1
- package/dist/core/shared/levenshtein.d.ts +1 -1
- package/dist/core/shared/numeric-parsers.d.ts +1 -1
- package/dist/core/shared/option-alias-visibility.d.ts +2 -2
- package/dist/core/shared/output-unicode.d.ts +1 -1
- package/dist/core/shared/primitives.d.ts +10 -10
- package/dist/core/shared/secret-rules.d.ts +7 -93
- package/dist/core/shared/serial-queue.d.ts +7 -9
- package/dist/core/shared/serialization.d.ts +1 -1
- package/dist/core/shared/split-comma-list.d.ts +4 -5
- package/dist/core/shared/text-normalization.d.ts +1 -1
- package/dist/core/shared/time.d.ts +6 -20
- package/dist/core/store/item-format-migration.d.ts +4 -5
- package/dist/core/store/item-metadata-cache.d.ts +22 -27
- package/dist/core/store/item-metadata-query-index.d.ts +20 -61
- package/dist/core/store/item-metadata-read-work.d.ts +3 -7
- package/dist/core/store/item-mutation-precondition.d.ts +19 -35
- package/dist/core/store/item-store.d.ts +18 -141
- package/dist/core/store/paths.d.ts +5 -10
- package/dist/core/store/settings-read-cache.d.ts +7 -9
- package/dist/core/store/settings-sections.d.ts +15 -19
- package/dist/core/store/settings-validator.d.ts +27 -143
- package/dist/core/store/settings-validator.js +1 -1
- package/dist/core/store/settings.d.ts +19 -94
- package/dist/core/store/sqlite-runtime.d.ts +3 -3
- package/dist/core/store/tracker-preflight.d.ts +2 -2
- package/dist/core/telemetry/consent.d.ts +2 -2
- package/dist/core/telemetry/observability.d.ts +8 -19
- package/dist/core/telemetry/policy.d.ts +8 -23
- package/dist/core/telemetry/runtime.d.ts +44 -254
- package/dist/core/test/background-runs.d.ts +35 -79
- package/dist/core/test/run-selectors.d.ts +10 -12
- package/dist/core/validate/fix-planning.d.ts +19 -28
- package/dist/core/validate/missing-by-type.d.ts +3 -4
- package/dist/core/validate/missing-link-owners.d.ts +12 -16
- package/dist/core/validate/stale-file-classification.d.ts +5 -6
- package/dist/mcp/tool-definitions.d.ts +7 -30
- package/dist/sdk/actionability.d.ts +1 -1
- package/dist/sdk/agent/closed-domain-contracts.d.ts +4 -5
- package/dist/sdk/agent/command-recovery.d.ts +9 -13
- package/dist/sdk/agent/command-suggestions.d.ts +2 -2
- package/dist/sdk/agent/create-option-policy.d.ts +2 -2
- package/dist/sdk/agent/identity-config.d.ts +13 -18
- package/dist/sdk/agent/item-addressing.d.ts +4 -5
- package/dist/sdk/agent/linked-resource-recovery.d.ts +3 -4
- package/dist/sdk/agent/refusal-closure-census.d.ts +13 -25
- package/dist/sdk/agent/refusal-closure.d.ts +8 -11
- package/dist/sdk/agent/refusal-corpus-contracts.d.ts +15 -21
- package/dist/sdk/agent/refusal-reachability.d.ts +38 -52
- package/dist/sdk/agent/subcommand-recovery.d.ts +7 -15
- package/dist/sdk/agent/task-transcript-contracts.d.ts +12 -15
- package/dist/sdk/agent/tracker-preflight-contracts.d.ts +13 -17
- package/dist/sdk/agent-capability-contracts.d.ts +19 -32
- package/dist/sdk/agent-session-context.d.ts +1 -1
- package/dist/sdk/annotations.d.ts +32 -68
- package/dist/sdk/author-attribution.d.ts +22 -33
- package/dist/sdk/authoring.d.ts +1 -19
- package/dist/sdk/cli-bootstrap.d.ts +22 -59
- package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +31 -57
- package/dist/sdk/cli-contracts/command-aliases.d.ts +7 -8
- package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +19 -65
- package/dist/sdk/cli-contracts/commander-mutation-options.d.ts +2 -2
- package/dist/sdk/cli-contracts/commander-types.d.ts +6 -11
- package/dist/sdk/cli-contracts/completeness.d.ts +11 -15
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +25 -37
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +16 -20
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +14 -19
- package/dist/sdk/cli-contracts/grammar-contracts.d.ts +29 -47
- package/dist/sdk/cli-contracts/runtime-contracts.d.ts +44 -265
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +11 -564
- package/dist/sdk/cli-contracts/tool-schema.d.ts +18 -51
- package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +18 -37
- package/dist/sdk/cli-contracts.d.ts +1 -16
- package/dist/sdk/cli-program.d.ts +2 -2
- package/dist/sdk/command-line.d.ts +3 -4
- package/dist/sdk/comments.d.ts +6 -10
- package/dist/sdk/compile-cache.d.ts +4 -5
- package/dist/sdk/completion/bash.d.ts +2 -2
- package/dist/sdk/completion/fish.d.ts +2 -2
- package/dist/sdk/completion/shared.d.ts +10 -77
- package/dist/sdk/completion/shared.js +1 -1
- package/dist/sdk/completion/zsh.d.ts +2 -2
- package/dist/sdk/completion.d.ts +2 -6
- package/dist/sdk/compose.d.ts +49 -74
- package/dist/sdk/config.d.ts +18 -94
- package/dist/sdk/config.js +1 -1
- package/dist/sdk/context/recency.d.ts +2 -2
- package/dist/sdk/context/semantic-session-attribution.d.ts +6 -25
- package/dist/sdk/context/usage-ledger.d.ts +9 -21
- package/dist/sdk/context-intent-contracts.d.ts +24 -35
- package/dist/sdk/context-intent-runtime.d.ts +7 -9
- package/dist/sdk/context-packing.d.ts +16 -34
- package/dist/sdk/context-relevance.d.ts +58 -93
- package/dist/sdk/context-signal-store.d.ts +29 -60
- package/dist/sdk/context-usage.d.ts +22 -69
- package/dist/sdk/contracts.d.ts +1 -24
- package/dist/sdk/core-governance.d.ts +1 -5
- package/dist/sdk/core.d.ts +1 -27
- package/dist/sdk/corpus-shape.d.ts +16 -28
- package/dist/sdk/define.d.ts +10 -14
- package/dist/sdk/dependencies.d.ts +32 -50
- package/dist/sdk/dependency-provenance.d.ts +19 -23
- package/dist/sdk/docs.d.ts +6 -10
- package/dist/sdk/duplicates.d.ts +8 -15
- package/dist/sdk/environment/agent-environment.d.ts +60 -101
- package/dist/sdk/environment/host-environment-errors.d.ts +1 -1
- package/dist/sdk/environment/project-runtime-compatibility.d.ts +15 -29
- package/dist/sdk/environment/source-context.d.ts +6 -7
- package/dist/sdk/environment/tracker-preflight.d.ts +1 -1
- package/dist/sdk/error-code-catalog.d.ts +9 -26
- package/dist/sdk/error-runtime.d.ts +6 -8
- package/dist/sdk/errors.d.ts +10 -17
- package/dist/sdk/eval.d.ts +11 -21
- package/dist/sdk/extension/command-options.d.ts +14 -26
- package/dist/sdk/extension/describe.d.ts +14 -19
- package/dist/sdk/extension/doctor.d.ts +8 -48
- package/dist/sdk/extension/install-plan.d.ts +12 -26
- package/dist/sdk/extension/install-runtime.d.ts +10 -11
- package/dist/sdk/extension/install-sources.d.ts +22 -104
- package/dist/sdk/extension/managed-state.d.ts +13 -18
- package/dist/sdk/extension/migrations.d.ts +22 -37
- package/dist/sdk/extension/output-ownership.d.ts +3 -30
- package/dist/sdk/extension/shared.d.ts +9 -15
- package/dist/sdk/extension/source-resolution.d.ts +13 -18
- package/dist/sdk/extension/static-inventory.d.ts +17 -21
- package/dist/sdk/extension/update-check.d.ts +7 -11
- package/dist/sdk/extension-command-context.d.ts +2 -3
- package/dist/sdk/extension-contracts.d.ts +11 -14
- package/dist/sdk/extension.d.ts +31 -192
- package/dist/sdk/files.d.ts +27 -68
- package/dist/sdk/flag-invocation-contracts.d.ts +13 -17
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated-error-code-catalog.d.ts +1 -1
- package/dist/sdk/governance/artifact-ledgers.d.ts +9 -16
- package/dist/sdk/governance/assurance-action-contracts.d.ts +1 -1
- package/dist/sdk/governance/assurance-action.d.ts +13 -45
- package/dist/sdk/governance/assurance-mutation-error.d.ts +12 -17
- package/dist/sdk/governance/assurance-presets.d.ts +10 -21
- package/dist/sdk/governance/assurance-runtime.d.ts +5 -6
- package/dist/sdk/governance/assurance.d.ts +97 -154
- package/dist/sdk/governance/boundary-fixtures.d.ts +17 -23
- package/dist/sdk/governance/closure-timestamps.d.ts +5 -15
- package/dist/sdk/governance/coverage-assurance.d.ts +5 -6
- package/dist/sdk/governance/defect-recurrence-coverage.d.ts +13 -23
- package/dist/sdk/governance/defect-recurrence-graph.d.ts +9 -13
- package/dist/sdk/governance/defect-recurrence.d.ts +43 -67
- package/dist/sdk/governance/extension-host-version.d.ts +8 -10
- package/dist/sdk/governance/gc.d.ts +12 -20
- package/dist/sdk/governance/health/projection.d.ts +8 -23
- package/dist/sdk/governance/health.d.ts +23 -167
- package/dist/sdk/governance/hierarchy-validation.d.ts +2 -18
- package/dist/sdk/governance/linked-file-report.d.ts +6 -10
- package/dist/sdk/governance/merge-receipt-history.d.ts +12 -16
- package/dist/sdk/governance/provenance-health.d.ts +17 -23
- package/dist/sdk/governance/reindex.d.ts +13 -116
- package/dist/sdk/governance/reliability.d.ts +13 -17
- package/dist/sdk/governance/stale-work.d.ts +8 -11
- package/dist/sdk/governance/status-role-diagnostics.d.ts +4 -6
- package/dist/sdk/governance/storage-integrity.d.ts +16 -23
- package/dist/sdk/governance/upgrade.d.ts +17 -57
- package/dist/sdk/governance/validate-item-reader.d.ts +3 -11
- package/dist/sdk/governance/validate-normalization.d.ts +2 -2
- package/dist/sdk/governance/validate.d.ts +29 -175
- package/dist/sdk/governance/workflow-completeness.d.ts +5 -17
- package/dist/sdk/governance/workflow-policy.d.ts +8 -16
- package/dist/sdk/governance/workspace-position.d.ts +12 -43
- package/dist/sdk/governance.d.ts +1 -39
- package/dist/sdk/graph/adapter.d.ts +23 -41
- package/dist/sdk/graph/analytics.d.ts +20 -31
- package/dist/sdk/graph/assembly.d.ts +24 -35
- package/dist/sdk/graph/cache.d.ts +13 -25
- package/dist/sdk/graph/cardinality-integrity.d.ts +4 -6
- package/dist/sdk/graph/centrality.d.ts +14 -20
- package/dist/sdk/graph/conformance.d.ts +12 -19
- package/dist/sdk/graph/deadline-scheduling.d.ts +14 -20
- package/dist/sdk/graph/durable-cache.d.ts +11 -14
- package/dist/sdk/graph/governance-contracts.d.ts +2 -2
- package/dist/sdk/graph/governance.d.ts +22 -36
- package/dist/sdk/graph/hierarchy-integrity.d.ts +18 -26
- package/dist/sdk/graph/index.d.ts +1 -17
- package/dist/sdk/graph/lifecycle-coverage.d.ts +8 -12
- package/dist/sdk/graph/mutation-advisory.d.ts +5 -16
- package/dist/sdk/graph/query-contracts.d.ts +1 -2
- package/dist/sdk/graph/remediation.d.ts +11 -18
- package/dist/sdk/graph/run.d.ts +73 -115
- package/dist/sdk/graph/scheduling.d.ts +8 -15
- package/dist/sdk/graph/traversal.d.ts +9 -15
- package/dist/sdk/graph/workspace-relationship-kind-registry.d.ts +2 -2
- package/dist/sdk/graph.d.ts +1 -12
- package/dist/sdk/guide-topics.d.ts +7 -10
- package/dist/sdk/guide.d.ts +21 -43
- package/dist/sdk/history/attestation-command.d.ts +7 -10
- package/dist/sdk/history/attestation-contract.d.ts +19 -34
- package/dist/sdk/history/attestation.d.ts +2 -3
- package/dist/sdk/history/maintenance.d.ts +17 -27
- package/dist/sdk/history/salvage.d.ts +5 -22
- package/dist/sdk/history/subject.d.ts +5 -11
- package/dist/sdk/history-analytics.d.ts +28 -59
- package/dist/sdk/history-compact.d.ts +25 -66
- package/dist/sdk/history-provenance.d.ts +16 -33
- package/dist/sdk/history-read.d.ts +9 -16
- package/dist/sdk/history-redact.d.ts +19 -74
- package/dist/sdk/history-redact.js +1 -1
- package/dist/sdk/history-repair.d.ts +26 -71
- package/dist/sdk/improvement-ledger-validation.d.ts +2 -2
- package/dist/sdk/improvement-ledger.d.ts +20 -39
- package/dist/sdk/index.d.ts +1 -268
- package/dist/sdk/init-agent-guidance.d.ts +13 -68
- package/dist/sdk/init.d.ts +24 -94
- package/dist/sdk/invocation-author.d.ts +1 -1
- package/dist/sdk/item-children.d.ts +10 -13
- package/dist/sdk/item-metadata-index.d.ts +1 -2
- package/dist/sdk/item-schedule.d.ts +8 -9
- package/dist/sdk/item-transaction.d.ts +46 -90
- package/dist/sdk/learnings.d.ts +6 -10
- package/dist/sdk/lifecycle/append.d.ts +7 -9
- package/dist/sdk/lifecycle/claim.d.ts +26 -42
- package/dist/sdk/lifecycle/cli-input.d.ts +1 -1
- package/dist/sdk/lifecycle/close-many.d.ts +14 -65
- package/dist/sdk/lifecycle/close.d.ts +10 -26
- package/dist/sdk/lifecycle/copy.d.ts +6 -10
- package/dist/sdk/lifecycle/create.d.ts +15 -83
- package/dist/sdk/lifecycle/delete.d.ts +7 -9
- package/dist/sdk/lifecycle/focus.d.ts +9 -11
- package/dist/sdk/lifecycle/item-revision.d.ts +25 -45
- package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +4 -5
- package/dist/sdk/lifecycle/mutation-command-options.d.ts +6 -9
- package/dist/sdk/lifecycle/plan-mutation-receipt.d.ts +5 -13
- package/dist/sdk/lifecycle/plan.d.ts +34 -74
- package/dist/sdk/lifecycle/reopen.d.ts +8 -14
- package/dist/sdk/lifecycle/restore.d.ts +9 -38
- package/dist/sdk/lifecycle/shared-unset-fields.d.ts +23 -614
- package/dist/sdk/lifecycle/start-blockers.d.ts +7 -27
- package/dist/sdk/lifecycle/structured-mutation-plan.d.ts +8 -16
- package/dist/sdk/lifecycle/task-composition.d.ts +6 -14
- package/dist/sdk/lifecycle/update-many.d.ts +15 -65
- package/dist/sdk/lifecycle/update.d.ts +21 -104
- package/dist/sdk/lifecycle/workflow-transition.d.ts +2 -11
- package/dist/sdk/lifecycle-completion.d.ts +11 -14
- package/dist/sdk/lifecycle-policy.d.ts +23 -32
- package/dist/sdk/linked-artifacts.d.ts +31 -41
- package/dist/sdk/mcp/apps.d.ts +12 -27
- package/dist/sdk/mcp/authorization.d.ts +30 -63
- package/dist/sdk/mcp/discovery.d.ts +23 -52
- package/dist/sdk/mcp/executable.d.ts +3 -10
- package/dist/sdk/mcp/interactions.d.ts +25 -47
- package/dist/sdk/mcp/protocol.d.ts +32 -64
- package/dist/sdk/mcp/skills.d.ts +21 -71
- package/dist/sdk/mcp/subscriptions.d.ts +14 -28
- package/dist/sdk/mcp/tasks.d.ts +21 -55
- package/dist/sdk/mcp/transport.d.ts +7 -15
- package/dist/sdk/merge/driver.d.ts +13 -37
- package/dist/sdk/merge/index.d.ts +1 -6
- package/dist/sdk/merge/install.d.ts +27 -55
- package/dist/sdk/merge/receipt-operation.d.ts +5 -6
- package/dist/sdk/merge/receipt-schema.d.ts +6 -9
- package/dist/sdk/merge/receipts.d.ts +29 -79
- package/dist/sdk/merge/reconcile.d.ts +9 -18
- package/dist/sdk/merge/three-way.d.ts +21 -30
- package/dist/sdk/merge.d.ts +1 -5
- package/dist/sdk/mutation-events.d.ts +21 -53
- package/dist/sdk/mutation-guard.d.ts +15 -135
- package/dist/sdk/notes.d.ts +6 -10
- package/dist/sdk/output/fit-envelope.d.ts +21 -28
- package/dist/sdk/output/list-envelope.d.ts +1 -1
- package/dist/sdk/output/table-rows.d.ts +8 -12
- package/dist/sdk/output-contracts.d.ts +11 -14
- package/dist/sdk/output-projection.d.ts +18 -130
- package/dist/sdk/output-token-accounting.d.ts +8 -15
- package/dist/sdk/output.d.ts +10 -15
- package/dist/sdk/ownership-source.d.ts +4 -5
- package/dist/sdk/package-import-adapters.d.ts +27 -37
- package/dist/sdk/package-migrations.d.ts +2 -2
- package/dist/sdk/package-runtime-options.d.ts +3 -3
- package/dist/sdk/pagination.d.ts +12 -24
- package/dist/sdk/profile.d.ts +25 -42
- package/dist/sdk/provenance.d.ts +21 -32
- package/dist/sdk/query/activity.d.ts +24 -77
- package/dist/sdk/query/aggregate.d.ts +20 -95
- package/dist/sdk/query/calendar.d.ts +26 -74
- package/dist/sdk/query/complete-list.d.ts +19 -35
- package/dist/sdk/query/context.d.ts +69 -240
- package/dist/sdk/query/declared-blockers.d.ts +2 -9
- package/dist/sdk/query/duplicate-candidates.d.ts +3 -5
- package/dist/sdk/query/get.d.ts +13 -55
- package/dist/sdk/query/history.d.ts +18 -29
- package/dist/sdk/query/item-filter-options.d.ts +7 -12
- package/dist/sdk/query/list-filter-shared.d.ts +4 -8
- package/dist/sdk/query/list.d.ts +44 -168
- package/dist/sdk/query/multi-value-filters.d.ts +7 -9
- package/dist/sdk/query/next-ranking-policy.d.ts +4 -10
- package/dist/sdk/query/next-ready-budget.d.ts +4 -5
- package/dist/sdk/query/next.d.ts +27 -86
- package/dist/sdk/query/parsers.d.ts +4 -6
- package/dist/sdk/query/projection-contracts.d.ts +12 -21
- package/dist/sdk/query/search/corpus.d.ts +5 -20
- package/dist/sdk/query/search/filters.d.ts +5 -17
- package/dist/sdk/query/search/input.d.ts +4 -9
- package/dist/sdk/query/search/lexical.d.ts +5 -9
- package/dist/sdk/query/search/response.d.ts +5 -22
- package/dist/sdk/query/search/semantic.d.ts +24 -170
- package/dist/sdk/query/search/types.d.ts +19 -73
- package/dist/sdk/query/search-contracts.d.ts +24 -34
- package/dist/sdk/query/search-pagination.d.ts +5 -24
- package/dist/sdk/query/search-rendering.d.ts +8 -32
- package/dist/sdk/query/search.d.ts +3 -63
- package/dist/sdk/query/workspace-contracts.d.ts +2 -2
- package/dist/sdk/query.d.ts +1 -43
- package/dist/sdk/read-output/continuation.d.ts +5 -6
- package/dist/sdk/read-output/options.d.ts +3 -8
- package/dist/sdk/read-output/session-result.d.ts +2 -33
- package/dist/sdk/read-output/tail-retention.d.ts +6 -8
- package/dist/sdk/read-output-budget.d.ts +14 -16
- package/dist/sdk/read-output-contracts.d.ts +59 -103
- package/dist/sdk/read-output-rows.d.ts +5 -9
- package/dist/sdk/read-output-session.d.ts +11 -14
- package/dist/sdk/relationship-analytics.d.ts +17 -37
- package/dist/sdk/relationship-context.d.ts +15 -33
- package/dist/sdk/relationship-history.d.ts +29 -50
- package/dist/sdk/relationship-kinds/contract.d.ts +11 -12
- package/dist/sdk/relationship-migration.d.ts +6 -10
- package/dist/sdk/relationships.d.ts +22 -34
- package/dist/sdk/reproducibility/process.d.ts +7 -11
- package/dist/sdk/runtime/context.d.ts +6 -22
- package/dist/sdk/runtime/schema-preview.d.ts +1 -1
- package/dist/sdk/runtime-input.d.ts +9 -20
- package/dist/sdk/runtime-primitives.d.ts +3 -82
- package/dist/sdk/runtime-public-contracts.d.ts +30 -50
- package/dist/sdk/runtime.d.ts +77 -302
- package/dist/sdk/scheduling-shortcuts.d.ts +8 -12
- package/dist/sdk/schema-migration.d.ts +18 -80
- package/dist/sdk/schema.d.ts +89 -192
- package/dist/sdk/search-refresh-worker.d.ts +1 -1
- package/dist/sdk/similarity-scoring.d.ts +6 -8
- package/dist/sdk/similarity.d.ts +33 -64
- package/dist/sdk/start-task-status.d.ts +2 -2
- package/dist/sdk/stats.d.ts +13 -48
- package/dist/sdk/structured-mutations.d.ts +18 -26
- package/dist/sdk/telemetry-flush.d.ts +1 -1
- package/dist/sdk/telemetry.d.ts +14 -20
- package/dist/sdk/templates.d.ts +14 -35
- package/dist/sdk/test/batch.d.ts +10 -25
- package/dist/sdk/test/execution.d.ts +44 -209
- package/dist/sdk/test/json-path.d.ts +2 -5
- package/dist/sdk/test/linked-command-detection.d.ts +10 -25
- package/dist/sdk/test/measurements.d.ts +10 -13
- package/dist/sdk/test/parsers.d.ts +16 -20
- package/dist/sdk/test/prerequisites.d.ts +2 -3
- package/dist/sdk/test/runs.d.ts +19 -52
- package/dist/sdk/test/trust.d.ts +8 -12
- package/dist/sdk/test/update.d.ts +9 -25
- package/dist/sdk/testing.d.ts +97 -206
- package/dist/sdk/traceability/source-traceability.d.ts +25 -56
- package/dist/sdk/tracker-root-discovery.d.ts +1 -1
- package/dist/sdk/workspace-contracts-cache.d.ts +2 -2
- package/dist/sdk/workspace-contracts.d.ts +8 -14
- package/dist/sdk/workspace-memory.d.ts +24 -42
- package/dist/sdk/workspace-recipe.d.ts +10 -14
- package/dist/sdk/workspace-snapshot.d.ts +26 -53
- package/dist/sdk/workspace-transaction-gc.d.ts +12 -16
- package/dist/sdk/workspace-transaction.d.ts +26 -40
- package/dist/sdk/workspace.d.ts +8 -10
- package/dist/types/index.d.ts +1 -1
- package/dist/types.d.ts +210 -353
- package/docs/COMMANDS.md +8 -0
- package/docs/CONFIGURATION.md +17 -0
- package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +28 -9
- package/docs/RELEASING.md +25 -0
- package/docs/SDK.md +17 -2
- package/docs/TESTING.md +11 -0
- package/marketplace.json +1 -1
- package/package.json +1 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/scripts/finalize-build.mjs +41 -4
- package/dist/cli-bundle/chunks/chunk-JYQXIC6C.js +0 -3
- package/dist/cli-bundle/chunks/chunk-LVDFPGD7.js +0 -3
- package/dist/cli-bundle/chunks/chunk-UFIM5ZC5.js +0 -6
- package/dist/cli-bundle/chunks/item-transaction-XBIN4KYM.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-HLQOGAWG.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-IB6TCE7N.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-JU62TKJP.js +0 -82
- package/dist/cli-bundle/focused-chunks/chunk-NUFO3OR6.js +0 -44
package/dist/sdk/guide.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type GuideTopicDefinition } from "./guide-topics.js";
|
|
1
|
+
import{type GlobalOptions}from "./runtime-primitives.js";import{type GuideTopicDefinition}from "./guide-topics.js";
|
|
3
2
|
/** Supported values accepted by the guide output contract. */
|
|
4
|
-
export declare const GUIDE_OUTPUT_VALUES:readonly
|
|
3
|
+
export declare const GUIDE_OUTPUT_VALUES:readonly["markdown","toon","json"];
|
|
5
4
|
/** Restricts guide output format values accepted by command, SDK, and storage contracts. */
|
|
6
|
-
export type GuideOutputFormat
|
|
5
|
+
export type GuideOutputFormat=(typeof GUIDE_OUTPUT_VALUES)[number];
|
|
7
6
|
/** Supported values accepted by the guide depth contract. */
|
|
8
|
-
export declare const GUIDE_DEPTH_VALUES:readonly
|
|
7
|
+
export declare const GUIDE_DEPTH_VALUES:readonly["brief","standard","deep"];
|
|
9
8
|
/** Restricts guide depth values accepted by command, SDK, and storage contracts. */
|
|
10
|
-
export type GuideDepth
|
|
9
|
+
export type GuideDepth=(typeof GUIDE_DEPTH_VALUES)[number];
|
|
11
10
|
/** Documents the guide options payload exchanged by command, SDK, and package integrations. */
|
|
12
|
-
export interface GuideOptions
|
|
11
|
+
export interface GuideOptions{
|
|
13
12
|
/** Value that configures or reports topic for this contract. */
|
|
14
13
|
topic?:string;
|
|
15
14
|
/** Value that configures or reports list for this contract. */
|
|
@@ -17,11 +16,9 @@ list?:boolean;
|
|
|
17
16
|
/** Value that configures or reports format for this contract. */
|
|
18
17
|
format?:string;
|
|
19
18
|
/** Value that configures or reports depth for this contract. */
|
|
20
|
-
depth?:string;
|
|
21
|
-
[key:string]:unknown;
|
|
22
|
-
}
|
|
19
|
+
depth?:string;[key:string]:unknown;}
|
|
23
20
|
/** Documents the guide doc render payload exchanged by command, SDK, and package integrations. */
|
|
24
|
-
export interface GuideDocRender
|
|
21
|
+
export interface GuideDocRender{
|
|
25
22
|
/** Filesystem path used for path resolution. */
|
|
26
23
|
path:string;
|
|
27
24
|
/** Value that configures or reports purpose for this contract. */
|
|
@@ -31,16 +28,15 @@ optional:boolean;
|
|
|
31
28
|
/** Value that configures or reports exists for this contract. */
|
|
32
29
|
exists:boolean;
|
|
33
30
|
/** Number of line entries represented by this result. */
|
|
34
|
-
line_count:number
|
|
31
|
+
line_count:number|null;
|
|
35
32
|
/** Strategy used to control content behavior. */
|
|
36
|
-
content_mode:"none"
|
|
33
|
+
content_mode:"none"|"excerpt"|"full";
|
|
37
34
|
/** Value that configures or reports content for this contract. */
|
|
38
|
-
content:string
|
|
35
|
+
content:string|null;
|
|
39
36
|
/** Value that configures or reports truncated for this contract. */
|
|
40
|
-
truncated:boolean;
|
|
41
|
-
}
|
|
37
|
+
truncated:boolean;}
|
|
42
38
|
/** Documents the guide index result payload exchanged by command, SDK, and package integrations. */
|
|
43
|
-
export interface GuideIndexResult
|
|
39
|
+
export interface GuideIndexResult{
|
|
44
40
|
/** Value that configures or reports output default for this contract. */
|
|
45
41
|
output_default:"toon";
|
|
46
42
|
/** Value that configures or reports mode for this contract. */
|
|
@@ -48,24 +44,11 @@ mode:"index";
|
|
|
48
44
|
/** Value that configures or reports depth for this contract. */
|
|
49
45
|
depth:GuideDepth;
|
|
50
46
|
/** Value that configures or reports topics for this contract. */
|
|
51
|
-
topics:Array<{
|
|
52
|
-
id:string;
|
|
53
|
-
aliases:string[];
|
|
54
|
-
title:string;
|
|
55
|
-
summary:string;
|
|
56
|
-
intent:string;
|
|
57
|
-
quick_commands:string[];
|
|
58
|
-
docs:Array<{
|
|
59
|
-
path:string;
|
|
60
|
-
purpose:string;
|
|
61
|
-
}>;
|
|
62
|
-
related:string[];
|
|
63
|
-
}>;
|
|
47
|
+
topics:Array<{id:string;aliases:string[];title:string;summary:string;intent:string;quick_commands:string[];docs:Array<{path:string;purpose:string;}>;related:string[];}>;
|
|
64
48
|
/** Value that configures or reports suggested next steps for this contract. */
|
|
65
|
-
suggested_next_steps:string[];
|
|
66
|
-
}
|
|
49
|
+
suggested_next_steps:string[];}
|
|
67
50
|
/** Documents the guide topic result payload exchanged by command, SDK, and package integrations. */
|
|
68
|
-
export interface GuideTopicResult
|
|
51
|
+
export interface GuideTopicResult{
|
|
69
52
|
/** Value that configures or reports output default for this contract. */
|
|
70
53
|
output_default:"toon";
|
|
71
54
|
/** Value that configures or reports mode for this contract. */
|
|
@@ -79,19 +62,14 @@ topic:GuideTopicDefinition;
|
|
|
79
62
|
/** Value that configures or reports docs for this contract. */
|
|
80
63
|
docs:GuideDocRender[];
|
|
81
64
|
/** Value that configures or reports warnings for this contract. */
|
|
82
|
-
warnings:string[];
|
|
83
|
-
}
|
|
65
|
+
warnings:string[];}
|
|
84
66
|
/** Restricts guide result values accepted by command, SDK, and storage contracts. */
|
|
85
|
-
export type GuideResult
|
|
67
|
+
export type GuideResult=GuideIndexResult|GuideTopicResult;
|
|
86
68
|
/** Implements resolve guide output format for the public runtime surface of this module. */
|
|
87
|
-
export declare function resolveGuideOutputFormat(options:GuideOptions,global:GlobalOptions):GuideOutputFormat;
|
|
88
|
-
declare function ensureGuideTopic(topic:string):GuideTopicDefinition;
|
|
69
|
+
export declare function resolveGuideOutputFormat(options:GuideOptions,global:GlobalOptions):GuideOutputFormat;declare function ensureGuideTopic(topic:string):GuideTopicDefinition;
|
|
89
70
|
/** Implements run guide for the public runtime surface of this module. */
|
|
90
71
|
export declare function runGuide(options:GuideOptions,global:GlobalOptions):Promise<GuideResult>;
|
|
91
72
|
/** Public contract for test only guide, shared by SDK and presentation-layer consumers. */
|
|
92
|
-
export declare const _testOnlyGuide:{
|
|
93
|
-
ensureGuideTopic:typeof ensureGuideTopic;
|
|
94
|
-
};
|
|
73
|
+
export declare const _testOnlyGuide:{ensureGuideTopic:typeof ensureGuideTopic;};
|
|
95
74
|
/** Implements render guide markdown for the public runtime surface of this module. */
|
|
96
|
-
export declare function renderGuideMarkdown(result:GuideResult):string;
|
|
97
|
-
export {};
|
|
75
|
+
export declare function renderGuideMarkdown(result:GuideResult):string;export{};
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { HistoryAttestation,HistoryAttestationVerification } from "./attestation-contract.js";
|
|
1
|
+
import type{GlobalOptions}from "../../core/shared/command-types.js";import type{HistoryAttestation,HistoryAttestationVerification}from "./attestation-contract.js";
|
|
3
2
|
/** Proof transport options; local CLI/SDK callers may also use filesystem paths. */
|
|
4
|
-
export interface HistoryAttestCommandOptions
|
|
3
|
+
export interface HistoryAttestCommandOptions{
|
|
5
4
|
/** Compare current streams with a retained bundle, or a local CLI/SDK proof path. */
|
|
6
|
-
verify?:string
|
|
5
|
+
verify?:string|HistoryAttestation;
|
|
7
6
|
/** Create a new proof file exclusively; existing files are never overwritten. */
|
|
8
7
|
output?:string;
|
|
9
8
|
/** Digest used for new bundles, independently from record algorithms. */
|
|
10
|
-
hashAlgorithm?:string;
|
|
11
|
-
}
|
|
9
|
+
hashAlgorithm?:string;}
|
|
12
10
|
/** Bounded receipt after a complete bundle has been saved separately. */
|
|
13
|
-
export interface HistoryAttestationExportReceipt
|
|
11
|
+
export interface HistoryAttestationExportReceipt{
|
|
14
12
|
/** File created by this export. */
|
|
15
13
|
output:string;
|
|
16
14
|
/** Digest committing to the entire bundle. */
|
|
17
15
|
workspace_digest:string;
|
|
18
16
|
/** Number of streams represented by the saved proof. */
|
|
19
|
-
streams:number;
|
|
20
|
-
}
|
|
17
|
+
streams:number;}
|
|
21
18
|
/** Export a complete proof or verify one; no tracker mutations or extension hooks occur. */
|
|
22
|
-
export declare function runHistoryAttest(options:HistoryAttestCommandOptions,global:GlobalOptions):Promise<HistoryAttestation
|
|
19
|
+
export declare function runHistoryAttest(options:HistoryAttestCommandOptions,global:GlobalOptions):Promise<HistoryAttestation|HistoryAttestationVerification|HistoryAttestationExportReceipt>;
|
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
/** @module sdk/history/attestation-contract
|
|
2
2
|
* Portable, payload-free commitments to the exact bytes of history streams.
|
|
3
3
|
*/
|
|
4
|
-
import type
|
|
4
|
+
import type{HistoryHashAlgorithm}from "../../core/history/digest.js";
|
|
5
5
|
/** Wire format, hashing rules and trust boundary for detached history proofs. */
|
|
6
|
-
export declare const PM_HISTORY_ATTESTATION_CONTRACT:{
|
|
7
|
-
readonly format:"pm-history-attestation";
|
|
8
|
-
readonly version:1;
|
|
9
|
-
readonly stream_hash:"exact_file_bytes";
|
|
10
|
-
readonly rollup_hash:"stable_json_without_workspace_digest";
|
|
11
|
-
readonly ordering:"stream_id_code_unit_ascending";
|
|
12
|
-
readonly consistency:"per_stream_snapshot_with_change_detection";
|
|
13
|
-
readonly trust:"independently_retained_bundle";
|
|
14
|
-
};
|
|
6
|
+
export declare const PM_HISTORY_ATTESTATION_CONTRACT:{readonly format:"pm-history-attestation";readonly version:1;readonly stream_hash:"exact_file_bytes";readonly rollup_hash:"stable_json_without_workspace_digest";readonly ordering:"stream_id_code_unit_ascending";readonly consistency:"per_stream_snapshot_with_change_detection";readonly trust:"independently_retained_bundle";};
|
|
15
7
|
/** Last maintenance event, bounded independently of stream length. */
|
|
16
|
-
export interface HistoryAttestationMaintenance
|
|
8
|
+
export interface HistoryAttestationMaintenance{
|
|
17
9
|
/** Maintenance operation recorded in the stream. */
|
|
18
10
|
op:string;
|
|
19
11
|
/** Timestamp claimed by the recorded event; not trusted wall-clock proof. */
|
|
20
12
|
ts:string;
|
|
21
13
|
/** Record digest when the event carries whole-record integrity. */
|
|
22
|
-
record_hash:string
|
|
23
|
-
}
|
|
14
|
+
record_hash:string|null;}
|
|
24
15
|
/** Constant-size commitment for one item, deleted-item or workspace stream. */
|
|
25
|
-
export interface HistoryAttestationStream
|
|
16
|
+
export interface HistoryAttestationStream{
|
|
26
17
|
/** Filename stem; no path components are allowed. */
|
|
27
18
|
id:string;
|
|
28
19
|
/** Number of nonblank JSONL records. */
|
|
@@ -32,20 +23,19 @@ bytes:number;
|
|
|
32
23
|
/** Digest of the complete file using the bundle's algorithm. */
|
|
33
24
|
stream_digest:string;
|
|
34
25
|
/** Latest item-state anchor, absent for an empty stream. */
|
|
35
|
-
latest_after_hash:string
|
|
26
|
+
latest_after_hash:string|null;
|
|
36
27
|
/** Latest whole-record digest, absent for legacy or empty streams. */
|
|
37
|
-
latest_record_hash:string
|
|
28
|
+
latest_record_hash:string|null;
|
|
38
29
|
/** Algorithm used by the latest entry, absent for empty streams. */
|
|
39
|
-
latest_hash_algorithm:HistoryHashAlgorithm
|
|
30
|
+
latest_hash_algorithm:HistoryHashAlgorithm|null;
|
|
40
31
|
/** Number of retained rewrite evidence records across the stream. */
|
|
41
32
|
rewrite_count:number;
|
|
42
33
|
/** SHA-256 commitment to the pruned prefix, when a compact checkpoint exists. */
|
|
43
|
-
checkpoint_digest:string
|
|
34
|
+
checkpoint_digest:string|null;
|
|
44
35
|
/** Last maintenance operation visible in this snapshot. */
|
|
45
|
-
last_maintenance:HistoryAttestationMaintenance
|
|
46
|
-
}
|
|
36
|
+
last_maintenance:HistoryAttestationMaintenance|null;}
|
|
47
37
|
/** Versioned detached proof; no item content, actors or filesystem roots are embedded. */
|
|
48
|
-
export interface HistoryAttestation
|
|
38
|
+
export interface HistoryAttestation{
|
|
49
39
|
/** Identifies the public wire format. */
|
|
50
40
|
format:typeof PM_HISTORY_ATTESTATION_CONTRACT.format;
|
|
51
41
|
/** Format revision governing canonicalization and verification. */
|
|
@@ -57,24 +47,21 @@ generated_at:string;
|
|
|
57
47
|
/** Sorted complete inventory of retained history streams. */
|
|
58
48
|
streams:HistoryAttestationStream[];
|
|
59
49
|
/** Digest of every other field using deterministic stable JSON. */
|
|
60
|
-
workspace_digest:string;
|
|
61
|
-
}
|
|
50
|
+
workspace_digest:string;}
|
|
62
51
|
/** Workspace selection without settings, extensions, locks or derived caches. */
|
|
63
|
-
export interface HistoryAttestationOptions
|
|
52
|
+
export interface HistoryAttestationOptions{
|
|
64
53
|
/** Explicit tracker root containing the history directory. */
|
|
65
54
|
pmRoot?:string;
|
|
66
55
|
/** Directory used for ordinary tracker discovery when pmRoot is omitted. */
|
|
67
|
-
cwd?:string;
|
|
68
|
-
}
|
|
56
|
+
cwd?:string;}
|
|
69
57
|
/** Optional reproducibility controls for proof export. */
|
|
70
|
-
export interface ExportAttestationOptions extends HistoryAttestationOptions
|
|
58
|
+
export interface ExportAttestationOptions extends HistoryAttestationOptions{
|
|
71
59
|
/** Defaults to SHA-256; independent of each stream's record algorithm. */
|
|
72
60
|
hashAlgorithm?:HistoryHashAlgorithm;
|
|
73
61
|
/** RFC 3339 timestamp for reproducible exports; defaults to current time. */
|
|
74
|
-
generatedAt?:string;
|
|
75
|
-
}
|
|
62
|
+
generatedAt?:string;}
|
|
76
63
|
/** Exact comparison against an independently retained proof. */
|
|
77
|
-
export interface HistoryAttestationVerification
|
|
64
|
+
export interface HistoryAttestationVerification{
|
|
78
65
|
/** True only when all attested streams verify and the complete inventory matches. */
|
|
79
66
|
ok:boolean;
|
|
80
67
|
/** Rollup from the validated input bundle. */
|
|
@@ -96,8 +83,6 @@ id:string;
|
|
|
96
83
|
/** Previously attested exact-byte digest. */
|
|
97
84
|
before_digest:string;
|
|
98
85
|
/** Current exact-byte digest, or null if unreadable. */
|
|
99
|
-
after_digest:string
|
|
86
|
+
after_digest:string|null;
|
|
100
87
|
/** Current maintenance marker, useful when reviewing an intentional rewrite. */
|
|
101
|
-
last_maintenance:HistoryAttestationMaintenance
|
|
102
|
-
}>;
|
|
103
|
-
}
|
|
88
|
+
last_maintenance:HistoryAttestationMaintenance|null;}>;}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export * from "./attestation-contract.js";
|
|
1
|
+
import{type ExportAttestationOptions,type HistoryAttestation,type HistoryAttestationOptions,type HistoryAttestationVerification}from "./attestation-contract.js";export * from "./attestation-contract.js";
|
|
3
2
|
/** Validate untrusted JSON and its rollup before treating it as an expected commitment. */
|
|
4
3
|
export declare function parseHistoryAttestation(value:unknown):HistoryAttestation;
|
|
5
4
|
/** Export every retained item/workspace stream; refuse incomplete or invalid evidence. */
|
|
6
5
|
export declare function exportAttestation(options?:ExportAttestationOptions):Promise<HistoryAttestation>;
|
|
7
6
|
/** Compare exact bytes with a trusted detached bundle; append and maintenance changes remain visible. */
|
|
8
|
-
export declare function verifyAttestation(bundleInput:unknown,options?:HistoryAttestationOptions):Promise<HistoryAttestationVerification>;
|
|
7
|
+
export declare function verifyAttestation(bundleInput:unknown,options?:HistoryAttestationOptions):Promise<HistoryAttestationVerification>;
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { verifyHistoryChain } from "../../core/history/replay.js";
|
|
3
|
-
import type { ItemTypeRegistry } from "../../core/item/type-registry.js";
|
|
4
|
-
import { readLocatedItem } from "../../core/store/item-store.js";
|
|
5
|
-
import type { HistoryEntry,PmSettings } from "../../types/index.js";
|
|
6
|
-
import type { HistorySubject } from "./subject.js";
|
|
1
|
+
import{type VerifiedHistoryRewriteState}from "../../core/history/history-rewrite.js";import{verifyHistoryChain}from "../../core/history/replay.js";import type{ItemTypeRegistry}from "../../core/item/type-registry.js";import{readLocatedItem}from "../../core/store/item-store.js";import type{HistoryEntry,PmSettings}from "../../types/index.js";import type{HistorySubject}from "./subject.js";
|
|
7
2
|
/** Built-in maintenance policies; each keeps its established diagnostics and hook names. */
|
|
8
|
-
export type HistoryMaintenanceOperation
|
|
3
|
+
export type HistoryMaintenanceOperation="history-redact"|"history-repair"|"history-compact";
|
|
9
4
|
/** Shared execution controls for a preview or audited stream rewrite. */
|
|
10
|
-
export interface HistoryMaintenanceOptions
|
|
5
|
+
export interface HistoryMaintenanceOptions{
|
|
11
6
|
/** Compute and verify the plan without acquiring a write lock or persisting it. */
|
|
12
7
|
dryRun?:boolean;
|
|
13
8
|
/** Explicit principal override; otherwise use the workspace identity policy. */
|
|
14
9
|
author?:string;
|
|
15
10
|
/** Explicit ownership or stale-lock override passed through the existing governance checks. */
|
|
16
|
-
force?:boolean;
|
|
17
|
-
}
|
|
11
|
+
force?:boolean;}
|
|
18
12
|
/** Inputs captured before a transform, bound to the later under-lock drift checks. */
|
|
19
|
-
export interface HistoryMaintenanceSnapshot
|
|
13
|
+
export interface HistoryMaintenanceSnapshot{
|
|
20
14
|
/** Original bytes used to decode `entries`, never a second independent read. */
|
|
21
15
|
raw:string;
|
|
22
16
|
/** Original stream, including historical anchors and immutable record evidence. */
|
|
@@ -24,34 +18,31 @@ entries:HistoryEntry[];
|
|
|
24
18
|
/** Chain verdict for the original entries; repair may deliberately accept drift. */
|
|
25
19
|
verification:ReturnType<typeof verifyHistoryChain>;
|
|
26
20
|
/** Current item bytes and document, or null for a deleted item's retained history. */
|
|
27
|
-
loadedItem:Awaited<ReturnType<typeof readLocatedItem
|
|
21
|
+
loadedItem:Awaited<ReturnType<typeof readLocatedItem>>|null;
|
|
28
22
|
/** Resolved identity shared by audit entry construction and lock ownership. */
|
|
29
|
-
author:string;
|
|
30
|
-
}
|
|
23
|
+
author:string;}
|
|
31
24
|
/** Verified outcome supplied to the operation's existing public result renderer. */
|
|
32
|
-
export interface HistoryMaintenanceOutcome
|
|
25
|
+
export interface HistoryMaintenanceOutcome{
|
|
33
26
|
/** Verification of the exact planned entries before persistence. */
|
|
34
27
|
verification:ReturnType<typeof verifyHistoryChain>;
|
|
35
28
|
/** Governance and write-hook warnings, empty for a preview or unchanged plan. */
|
|
36
|
-
warnings:string[];
|
|
37
|
-
}
|
|
29
|
+
warnings:string[];}
|
|
38
30
|
/** Operation-owned transform with optional transactional item changes and receipt checks. */
|
|
39
|
-
export interface HistoryMaintenancePlan<Result>
|
|
31
|
+
export interface HistoryMaintenancePlan<Result>{
|
|
40
32
|
/** Whether the transformation warrants persistence when not previewing. */
|
|
41
33
|
changed:boolean;
|
|
42
34
|
/** Final stream including any operation-specific baseline or audit marker. */
|
|
43
35
|
rewrittenEntries:HistoryEntry[];
|
|
44
36
|
/** Additional evidence check executed under the lock before any write. */
|
|
45
|
-
beforeWrite?:()
|
|
37
|
+
beforeWrite?:()=> Promise<void>;
|
|
46
38
|
/** Override only when history and item bytes must share a rollback transaction. */
|
|
47
|
-
applyRewrite?:(verified:VerifiedHistoryRewriteState)
|
|
39
|
+
applyRewrite?:(verified:VerifiedHistoryRewriteState)=> Promise<void>;
|
|
48
40
|
/** Override when the operation must also dispatch item hooks or derived-index warnings. */
|
|
49
|
-
afterWrite?:()
|
|
41
|
+
afterWrite?:()=> Promise<string[]>;
|
|
50
42
|
/** Preserve the operation's public report shape after preview or application completes. */
|
|
51
|
-
report:(outcome:HistoryMaintenanceOutcome)
|
|
52
|
-
}
|
|
43
|
+
report:(outcome:HistoryMaintenanceOutcome)=> Result;}
|
|
53
44
|
/** Resolved workspace and transform supplied by built-ins or SDK integrations. */
|
|
54
|
-
export interface HistoryMaintenanceParams<Result>
|
|
45
|
+
export interface HistoryMaintenanceParams<Result>{
|
|
55
46
|
/** Initialized tracker root whose settings and subject were resolved by the caller. */
|
|
56
47
|
pmRoot:string;
|
|
57
48
|
/** Live item or retained deleted-item history selected for maintenance. */
|
|
@@ -65,7 +56,6 @@ operation:HistoryMaintenanceOperation;
|
|
|
65
56
|
/** Preview and ownership controls. */
|
|
66
57
|
options:HistoryMaintenanceOptions;
|
|
67
58
|
/** Pure planning or evidence reads; persistence belongs in the returned transaction callbacks. */
|
|
68
|
-
transform:(snapshot:HistoryMaintenanceSnapshot)
|
|
69
|
-
}
|
|
59
|
+
transform:(snapshot:HistoryMaintenanceSnapshot)=> HistoryMaintenancePlan<Result>|Promise<HistoryMaintenancePlan<Result>>;}
|
|
70
60
|
/** Verify every transform before writing and reject concurrent item or stream changes under the lock. */
|
|
71
|
-
export declare function runHistoryMaintenance<Result>(params:HistoryMaintenanceParams<Result>):Promise<Result>;
|
|
61
|
+
export declare function runHistoryMaintenance<Result>(params:HistoryMaintenanceParams<Result>):Promise<Result>;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ItemTypeRegistry } from "../../core/item/type-registry.js";
|
|
3
|
-
import type { HistoryEntry,PmSettings } from "../../types/index.js";
|
|
4
|
-
import type { HistorySubject } from "../history-redact.js";
|
|
5
|
-
import type { HistoryRepairCommandOptions,HistoryRepairResult } from "../history-repair.js";
|
|
1
|
+
import{type HistoryItemHashVersion}from "../../core/history/history.js";import type{ItemTypeRegistry}from "../../core/item/type-registry.js";import type{HistoryEntry,PmSettings}from "../../types/index.js";import type{HistorySubject}from "../history-redact.js";import type{HistoryRepairCommandOptions,HistoryRepairResult}from "../history-repair.js";
|
|
6
2
|
/** Evidence describing only the discarded suffix, without retaining its contents. */
|
|
7
|
-
export interface HistorySalvageReceipt
|
|
3
|
+
export interface HistorySalvageReceipt{
|
|
8
4
|
/** One-based physical line where invalid trailing bytes begin. */
|
|
9
5
|
first_invalid_line:number;
|
|
10
6
|
/** UTF-8 bytes removed from the suffix. */
|
|
@@ -12,24 +8,11 @@ discarded_bytes:number;
|
|
|
12
8
|
/** SHA-256 of the removed bytes for local backup comparison. */
|
|
13
9
|
discarded_sha256:string;
|
|
14
10
|
/** Number of complete verified records retained. */
|
|
15
|
-
retained_entries:number;
|
|
16
|
-
}
|
|
11
|
+
retained_entries:number;}
|
|
17
12
|
/**
|
|
18
13
|
* Select a hash-verified prefix. Any parseable JSON after the first invalid
|
|
19
14
|
* line makes the corruption interior and therefore unsalvageable by truncation.
|
|
20
15
|
*/
|
|
21
|
-
export declare function inspectHistoryTail(raw:string):{
|
|
22
|
-
entries:HistoryEntry[];
|
|
23
|
-
prefix:string;
|
|
24
|
-
receipt:HistorySalvageReceipt | null;
|
|
25
|
-
itemHashVersion:HistoryItemHashVersion;
|
|
26
|
-
};
|
|
16
|
+
export declare function inspectHistoryTail(raw:string):{entries:HistoryEntry[];prefix:string;receipt:HistorySalvageReceipt|null;itemHashVersion:HistoryItemHashVersion;};
|
|
27
17
|
/** Salvage one explicitly selected stream under its normal ownership and lock policy. */
|
|
28
|
-
export declare function salvageHistoryTail(params:{
|
|
29
|
-
pmRoot:string;
|
|
30
|
-
subject:HistorySubject;
|
|
31
|
-
settings:PmSettings;
|
|
32
|
-
typeRegistry:ItemTypeRegistry;
|
|
33
|
-
options:HistoryRepairCommandOptions;
|
|
34
|
-
author:string;
|
|
35
|
-
}):Promise<HistoryRepairResult>;
|
|
18
|
+
export declare function salvageHistoryTail(params:{pmRoot:string;subject:HistorySubject;settings:PmSettings;typeRegistry:ItemTypeRegistry;options:HistoryRepairCommandOptions;author:string;}):Promise<HistoryRepairResult>;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { PmSettings } from "../../types/index.js";
|
|
1
|
+
import{locateItem}from "../../core/store/item-store.js";import type{PmSettings}from "../../types/index.js";
|
|
3
2
|
/** Resolve initialized workspace policy once for single-stream and bulk maintenance. */
|
|
4
|
-
export declare function resolveHistoryWorkspace(pmPath:string
|
|
5
|
-
pmRoot:string;
|
|
6
|
-
settings:PmSettings;
|
|
7
|
-
typeRegistry:import("../../core/item/type-registry.js").ItemTypeRegistry;
|
|
8
|
-
}>;
|
|
3
|
+
export declare function resolveHistoryWorkspace(pmPath:string|undefined):Promise<{pmRoot:string;settings:PmSettings;typeRegistry:import("../../core/item/type-registry.js").ItemTypeRegistry;}>;
|
|
9
4
|
/** Canonical stream address, retaining item location only when the current item exists. */
|
|
10
|
-
export interface HistorySubject
|
|
5
|
+
export interface HistorySubject{
|
|
11
6
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
12
7
|
id:string;
|
|
13
8
|
/** Filesystem path used for history resolution. */
|
|
14
9
|
historyPath:string;
|
|
15
10
|
/** Current item location, or null when only a deleted item's history remains. */
|
|
16
|
-
located:Awaited<ReturnType<typeof locateItem>>;
|
|
17
|
-
}
|
|
11
|
+
located:Awaited<ReturnType<typeof locateItem>>;}
|
|
18
12
|
/** Resolve a current item first, then retained streams under normalized and raw legacy IDs. */
|
|
19
|
-
export declare function resolveHistorySubject(pmRoot:string,id:string,settings:PmSettings,typeToFolder:Record<string,string>):Promise<HistorySubject>;
|
|
13
|
+
export declare function resolveHistorySubject(pmRoot:string,id:string,settings:PmSettings,typeToFolder:Record<string,string>):Promise<HistorySubject>;
|
|
@@ -4,20 +4,17 @@
|
|
|
4
4
|
* Derives bounded provenance coverage and fleet outcome analytics from the
|
|
5
5
|
* immutable history event index without introducing telemetry-owned state.
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
8
|
-
import type { HistoryEntry,ItemMetadata } from "../types/index.js";
|
|
9
|
-
import { type AgentProvenanceDescriptorCoverage,type AgentProvenanceDimensionCoverage } from "./provenance.js";
|
|
7
|
+
import{type HarnessSignalDescriptor}from "../core/shared/author.js";import type{HistoryEntry,ItemMetadata}from "../types/index.js";import{type AgentProvenanceDescriptorCoverage,type AgentProvenanceDimensionCoverage}from "./provenance.js";
|
|
10
8
|
/** Bounded immutable-history window controls shared by analytics surfaces. */
|
|
11
|
-
export interface HistoryAnalyticsWindowOptions
|
|
9
|
+
export interface HistoryAnalyticsWindowOptions{
|
|
12
10
|
/** Inclusive ISO timestamp or negative day/hour duration such as -30d. */
|
|
13
11
|
since?:string;
|
|
14
12
|
/** Maximum indexed events consumed across all pages. */
|
|
15
13
|
eventLimit?:number;
|
|
16
14
|
/** Minimum denominator required before a rate is reported. */
|
|
17
|
-
minimumSample?:number;
|
|
18
|
-
}
|
|
15
|
+
minimumSample?:number;}
|
|
19
16
|
/** Read receipt proving how much immutable history contributed. */
|
|
20
|
-
export interface HistoryAnalyticsWindowReceipt
|
|
17
|
+
export interface HistoryAnalyticsWindowReceipt{
|
|
21
18
|
/** Inclusive lower bound used for the scan. */
|
|
22
19
|
since:string;
|
|
23
20
|
/** Number of indexed immutable events inspected. */
|
|
@@ -27,29 +24,23 @@ truncated:boolean;
|
|
|
27
24
|
/** Cursor that resumes after the last inspected event when truncated. */
|
|
28
25
|
next_cursor?:string;
|
|
29
26
|
/** Derived read source. */
|
|
30
|
-
source:"history_event_index";
|
|
31
|
-
}
|
|
27
|
+
source:"history_event_index";}
|
|
32
28
|
/** Live declared-versus-observed provenance report. */
|
|
33
|
-
export interface ProvenanceCoverageAnalytics
|
|
29
|
+
export interface ProvenanceCoverageAnalytics{
|
|
34
30
|
/** Descriptor coverage for every declared dimension. */
|
|
35
31
|
descriptors:AgentProvenanceDescriptorCoverage[];
|
|
36
32
|
/** Per-harness availability over the bounded event window. */
|
|
37
33
|
observations:AgentProvenanceDimensionCoverage[];
|
|
38
34
|
/** Declared dimensions with enough explicit samples but no observations. */
|
|
39
|
-
inert:Array<{
|
|
40
|
-
harness:string;
|
|
41
|
-
dimension:string;
|
|
42
|
-
explicit_samples:number;
|
|
43
|
-
}>;
|
|
35
|
+
inert:Array<{harness:string;dimension:string;explicit_samples:number;}>;
|
|
44
36
|
/** Dimensions no configured harness declares. */
|
|
45
37
|
undeclared:string[];
|
|
46
38
|
/** Stable warning codes suitable for health/gate adapters. */
|
|
47
39
|
warnings:string[];
|
|
48
40
|
/** Bounded source receipt. */
|
|
49
|
-
window:HistoryAnalyticsWindowReceipt;
|
|
50
|
-
}
|
|
41
|
+
window:HistoryAnalyticsWindowReceipt;}
|
|
51
42
|
/** One bounded attribution bucket with honest denominator states. */
|
|
52
|
-
export interface FleetAttributionRow
|
|
43
|
+
export interface FleetAttributionRow{
|
|
53
44
|
/** Recorded grouping value. */
|
|
54
45
|
value:string;
|
|
55
46
|
/** Immutable events attributed to the bucket. */
|
|
@@ -65,25 +56,23 @@ reopens:number;
|
|
|
65
56
|
/** Issue items linked discovered_from to work closed by this bucket. */
|
|
66
57
|
defect_escapes:number;
|
|
67
58
|
/** Terminal transitions per observed day, or null for insufficient samples. */
|
|
68
|
-
throughput_per_day:number
|
|
59
|
+
throughput_per_day:number|null;
|
|
69
60
|
/** Reopens divided by closes, or null for insufficient samples. */
|
|
70
|
-
rework_rate:number
|
|
61
|
+
rework_rate:number|null;
|
|
71
62
|
/** Defect escapes divided by closes, or null for insufficient samples. */
|
|
72
|
-
defect_escape_rate:number
|
|
63
|
+
defect_escape_rate:number|null;
|
|
73
64
|
/** Denominator state preventing tiny samples from masquerading as rates. */
|
|
74
|
-
sample_status:"available"
|
|
75
|
-
}
|
|
65
|
+
sample_status:"available"|"insufficient";}
|
|
76
66
|
/** One supported fleet grouping dimension. */
|
|
77
|
-
export interface FleetAttributionDimension
|
|
67
|
+
export interface FleetAttributionDimension{
|
|
78
68
|
/** Stable dimension name. */
|
|
79
|
-
dimension:"harness"
|
|
69
|
+
dimension:"harness"|"model"|"author_source";
|
|
80
70
|
/** Whether at least one event supplied this dimension. */
|
|
81
|
-
status:"available"
|
|
71
|
+
status:"available"|"unavailable";
|
|
82
72
|
/** Deterministically sorted bounded aggregate rows. */
|
|
83
|
-
rows:FleetAttributionRow[];
|
|
84
|
-
}
|
|
73
|
+
rows:FleetAttributionRow[];}
|
|
85
74
|
/** Observational fleet analytics derived only from immutable history. */
|
|
86
|
-
export interface FleetAttributionAnalytics
|
|
75
|
+
export interface FleetAttributionAnalytics{
|
|
87
76
|
/** Grouped analytics for every supported provenance dimension. */
|
|
88
77
|
dimensions:FleetAttributionDimension[];
|
|
89
78
|
/** Minimum close denominator required for rates. */
|
|
@@ -91,32 +80,22 @@ minimum_sample:number;
|
|
|
91
80
|
/** Safety statement retained in every transport. */
|
|
92
81
|
policy:"observational_only_not_for_authorization_or_routing";
|
|
93
82
|
/** Bounded source receipt. */
|
|
94
|
-
window:HistoryAnalyticsWindowReceipt;
|
|
95
|
-
}
|
|
83
|
+
window:HistoryAnalyticsWindowReceipt;}
|
|
96
84
|
/** One immutable history entry paired with its owning tracked item. */
|
|
97
|
-
export interface HistoryAnalyticsEvent
|
|
85
|
+
export interface HistoryAnalyticsEvent{
|
|
98
86
|
/** Tracked item owning the immutable event. */
|
|
99
87
|
item_id:string;
|
|
100
88
|
/** Immutable history entry consumed by analytics. */
|
|
101
|
-
entry:HistoryEntry;
|
|
102
|
-
}
|
|
89
|
+
entry:HistoryEntry;}
|
|
103
90
|
/** Reusable bounded history read shared across multiple analytics projections. */
|
|
104
|
-
export interface HistoryAnalyticsWindow
|
|
91
|
+
export interface HistoryAnalyticsWindow{
|
|
105
92
|
/** Immutable events retained by the configured bound. */
|
|
106
93
|
events:HistoryAnalyticsEvent[];
|
|
107
94
|
/** Receipt describing the bounded source read. */
|
|
108
|
-
receipt:HistoryAnalyticsWindowReceipt;
|
|
109
|
-
|
|
110
|
-
declare function parseHistoryAnalyticsLimit(value:number | undefined):number;
|
|
111
|
-
declare function parseMinimumSample(value:number | undefined):number;
|
|
112
|
-
declare function resolveHistoryAnalyticsSince(value:string | undefined):string;
|
|
95
|
+
receipt:HistoryAnalyticsWindowReceipt;}
|
|
96
|
+
declare function parseHistoryAnalyticsLimit(value:number|undefined):number;declare function parseMinimumSample(value:number|undefined):number;declare function resolveHistoryAnalyticsSince(value:string|undefined):string;
|
|
113
97
|
/** Read one reusable bounded immutable-history window. */
|
|
114
|
-
export declare function readHistoryAnalyticsWindow(pmRoot:string,options:HistoryAnalyticsWindowOptions):Promise<HistoryAnalyticsWindow>;
|
|
115
|
-
declare function provenanceValue(entry:HistoryEntry,dimension:FleetAttributionDimension["dimension"]):string | undefined;
|
|
116
|
-
declare function statusFromEntry(entry:HistoryEntry):string | undefined;
|
|
117
|
-
declare function annotationOperation(op:string):boolean;
|
|
118
|
-
declare function buildFleetDimension(dimension:FleetAttributionDimension["dimension"],events:readonly HistoryAnalyticsEvent[],items:readonly Pick<ItemMetadata,"id" | "type" | "dependencies">[],terminalStatuses:ReadonlySet<string>,minimumSample:number,windowDays:number):FleetAttributionDimension;
|
|
119
|
-
declare function resolveHistoryWindowDays(events:readonly HistoryAnalyticsEvent[],since:string):number;
|
|
98
|
+
export declare function readHistoryAnalyticsWindow(pmRoot:string,options:HistoryAnalyticsWindowOptions):Promise<HistoryAnalyticsWindow>;declare function provenanceValue(entry:HistoryEntry,dimension:FleetAttributionDimension["dimension"]):string|undefined;declare function statusFromEntry(entry:HistoryEntry):string|undefined;declare function annotationOperation(op:string):boolean;declare function buildFleetDimension(dimension:FleetAttributionDimension["dimension"],events:readonly HistoryAnalyticsEvent[],items:readonly Pick<ItemMetadata,"id"|"type"|"dependencies">[],terminalStatuses:ReadonlySet<string>,minimumSample:number,windowDays:number):FleetAttributionDimension;declare function resolveHistoryWindowDays(events:readonly HistoryAnalyticsEvent[],since:string):number;
|
|
120
99
|
/** Evaluate a negative-control-friendly declared-versus-observed coverage gate. */
|
|
121
100
|
export declare function evaluateProvenanceCoverage(entries:readonly HistoryEntry[],descriptors:readonly HarnessSignalDescriptor[],minimumSample:number):Omit<ProvenanceCoverageAnalytics,"window">;
|
|
122
101
|
/** Read live, bounded provenance coverage from authoritative history. */
|
|
@@ -124,18 +103,8 @@ export declare function runProvenanceCoverageAnalytics(pmRoot:string,descriptors
|
|
|
124
103
|
/** Project provenance coverage from an already-read immutable-history window. */
|
|
125
104
|
export declare function projectProvenanceCoverageAnalytics(window:HistoryAnalyticsWindow,descriptors?:readonly HarnessSignalDescriptor[],options?:Pick<HistoryAnalyticsWindowOptions,"minimumSample">):ProvenanceCoverageAnalytics;
|
|
126
105
|
/** Derive bounded fleet rates grouped by harness, model, and author source. */
|
|
127
|
-
export declare function runFleetAttributionAnalytics(pmRoot:string,items:readonly Pick<ItemMetadata,"id"
|
|
106
|
+
export declare function runFleetAttributionAnalytics(pmRoot:string,items:readonly Pick<ItemMetadata,"id"|"type"|"dependencies">[],terminalStatuses:ReadonlySet<string>,options?:HistoryAnalyticsWindowOptions):Promise<FleetAttributionAnalytics>;
|
|
128
107
|
/** Project fleet attribution from an already-read immutable-history window. */
|
|
129
|
-
export declare function projectFleetAttributionAnalytics(window:HistoryAnalyticsWindow,items:readonly Pick<ItemMetadata,"id"
|
|
108
|
+
export declare function projectFleetAttributionAnalytics(window:HistoryAnalyticsWindow,items:readonly Pick<ItemMetadata,"id"|"type"|"dependencies">[],terminalStatuses:ReadonlySet<string>,options?:Pick<HistoryAnalyticsWindowOptions,"minimumSample">):FleetAttributionAnalytics;
|
|
130
109
|
/** Pure seams for deterministic analytics and negative-control tests. */
|
|
131
|
-
export declare const _testOnlyHistoryAnalytics:{
|
|
132
|
-
annotationOperation:typeof annotationOperation;
|
|
133
|
-
buildFleetDimension:typeof buildFleetDimension;
|
|
134
|
-
parseHistoryAnalyticsLimit:typeof parseHistoryAnalyticsLimit;
|
|
135
|
-
parseMinimumSample:typeof parseMinimumSample;
|
|
136
|
-
provenanceValue:typeof provenanceValue;
|
|
137
|
-
resolveHistoryAnalyticsSince:typeof resolveHistoryAnalyticsSince;
|
|
138
|
-
resolveHistoryWindowDays:typeof resolveHistoryWindowDays;
|
|
139
|
-
statusFromEntry:typeof statusFromEntry;
|
|
140
|
-
};
|
|
141
|
-
export {};
|
|
110
|
+
export declare const _testOnlyHistoryAnalytics:{annotationOperation:typeof annotationOperation;buildFleetDimension:typeof buildFleetDimension;parseHistoryAnalyticsLimit:typeof parseHistoryAnalyticsLimit;parseMinimumSample:typeof parseMinimumSample;provenanceValue:typeof provenanceValue;resolveHistoryAnalyticsSince:typeof resolveHistoryAnalyticsSince;resolveHistoryWindowDays:typeof resolveHistoryWindowDays;statusFromEntry:typeof statusFromEntry;};export{};
|