@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
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type ItemMergeConflictDecision,type ItemScalarConflictResolution,type MergePreferredSide } from "./three-way.js";
|
|
3
|
-
import type { MergeReceiptOperation } from "./receipt-operation.js";
|
|
4
|
-
import { DURABLE_VALUE_POLICY } from "./receipt-schema.js";
|
|
5
|
-
export { isSafeReceiptId } from "./receipt-schema.js";
|
|
1
|
+
import type{Stats}from "node:fs";import{type ItemMergeConflictDecision,type ItemScalarConflictResolution,type MergePreferredSide}from "./three-way.js";import type{MergeReceiptOperation}from "./receipt-operation.js";import{DURABLE_VALUE_POLICY}from "./receipt-schema.js";export{isSafeReceiptId}from "./receipt-schema.js";
|
|
6
2
|
/** One clone-local merge receipt with recoverable branch values. */
|
|
7
|
-
export interface MergeDecisionReceipt
|
|
3
|
+
export interface MergeDecisionReceipt{
|
|
8
4
|
/** Receipt schema version. */
|
|
9
5
|
version:1;
|
|
10
6
|
/** Opaque receipt identity referenced from public history. */
|
|
@@ -34,20 +30,19 @@ operation?:MergeReceiptOperation;
|
|
|
34
30
|
/** Explicit audited disposition when the original Git state was restored instead of merging. */
|
|
35
31
|
settlement?:"original_git_state_restored";
|
|
36
32
|
/** Whether a reconciliation history event settled this receipt. */
|
|
37
|
-
state:"pending"
|
|
33
|
+
state:"pending"|"reconciled";
|
|
38
34
|
/** Receipt creation timestamp. */
|
|
39
35
|
created_at:string;
|
|
40
36
|
/** Reconciliation timestamp, when consumed. */
|
|
41
37
|
reconciled_at?:string;
|
|
42
38
|
/** Whether decision values are recoverable locally or represented by hashes only. */
|
|
43
|
-
value_availability?:"clone_local"
|
|
39
|
+
value_availability?:"clone_local"|"hash_only"|"bounded_inline"|"mixed";
|
|
44
40
|
/** Versioned rule governing which durable scalar previews may be committed. */
|
|
45
41
|
value_policy?:typeof DURABLE_VALUE_POLICY;
|
|
46
42
|
/** Runtime-only provenance assigned by the reader; serialized values are ignored. */
|
|
47
|
-
evidence_source?:"clone_local"
|
|
48
|
-
}
|
|
43
|
+
evidence_source?:"clone_local"|"durable";}
|
|
49
44
|
/** Privacy-safe receipt summary suitable for committed history context. */
|
|
50
|
-
export interface MergeDecisionReceiptSummary
|
|
45
|
+
export interface MergeDecisionReceiptSummary{
|
|
51
46
|
/** Opaque clone-local receipt identity. */
|
|
52
47
|
receipt_id:string;
|
|
53
48
|
/** Item whose merge produced the receipt. */
|
|
@@ -67,14 +62,9 @@ requested_preference_applied:boolean;
|
|
|
67
62
|
/** Scalar-conflict selection contract used by the item driver. */
|
|
68
63
|
conflict_resolution:ItemScalarConflictResolution;
|
|
69
64
|
/** Hashes proving the retained and discarded values without publishing them. */
|
|
70
|
-
decisions:Array<{
|
|
71
|
-
field:string;
|
|
72
|
-
retained_hash:string;
|
|
73
|
-
discarded_hash:string;
|
|
74
|
-
}>;
|
|
75
|
-
}
|
|
65
|
+
decisions:Array<{field:string;retained_hash:string;discarded_hash:string;}>;}
|
|
76
66
|
/** Structured result for the explicit clone-local merge report command. */
|
|
77
|
-
export interface MergeReceiptReport
|
|
67
|
+
export interface MergeReceiptReport{
|
|
78
68
|
/** Whether the report was read successfully. */
|
|
79
69
|
ok:true;
|
|
80
70
|
/** Number of receipts returned. */
|
|
@@ -82,10 +72,9 @@ count:number;
|
|
|
82
72
|
/** Receipts including recoverable values from the local clone only. */
|
|
83
73
|
receipts:MergeDecisionReceipt[];
|
|
84
74
|
/** ISO timestamp for the report. */
|
|
85
|
-
generated_at:string;
|
|
86
|
-
}
|
|
75
|
+
generated_at:string;}
|
|
87
76
|
/** Loss-aware merge receipt report for integrity gates and diagnostic adapters. */
|
|
88
|
-
export interface MergeReceiptEvidenceReport
|
|
77
|
+
export interface MergeReceiptEvidenceReport{
|
|
89
78
|
/** Whether clone-local evidence resolved and every candidate was read and validated successfully. */
|
|
90
79
|
ok:boolean;
|
|
91
80
|
/** Whether clone-local evidence resolved and every discovered JSON candidate was read and validated successfully. */
|
|
@@ -103,10 +92,9 @@ clone_local_evidence_resolved?:boolean;
|
|
|
103
92
|
/** Receipts including recoverable values from the local clone only. */
|
|
104
93
|
receipts:MergeDecisionReceipt[];
|
|
105
94
|
/** ISO timestamp for the report. */
|
|
106
|
-
generated_at:string;
|
|
107
|
-
}
|
|
95
|
+
generated_at:string;}
|
|
108
96
|
/** Loss-aware receipt inspection result that never exposes malformed file contents. */
|
|
109
|
-
export interface MergeReceiptEvidenceScan
|
|
97
|
+
export interface MergeReceiptEvidenceScan{
|
|
110
98
|
/** Valid receipts that passed bounded-file, schema, and identity validation. */
|
|
111
99
|
receipts:MergeDecisionReceipt[];
|
|
112
100
|
/** Valid counterparts with matching immutable provenance in the active Git index; absent evidence never authorizes a tracked history reference. */
|
|
@@ -120,53 +108,29 @@ invalid_evidence:MergeReceiptInvalidEvidence[];
|
|
|
120
108
|
/** Whether additional rejected evidence was omitted from the bounded detail list. */
|
|
121
109
|
invalid_evidence_truncated:boolean;
|
|
122
110
|
/** Whether the clone-local Git receipt directory was resolved successfully; always emitted by current implementations and optional for structural compatibility. */
|
|
123
|
-
clone_local_evidence_resolved?:boolean;
|
|
124
|
-
}
|
|
111
|
+
clone_local_evidence_resolved?:boolean;}
|
|
125
112
|
/** Stable privacy-safe classification for one rejected receipt candidate or source. */
|
|
126
|
-
export interface MergeReceiptInvalidEvidence
|
|
113
|
+
export interface MergeReceiptInvalidEvidence{
|
|
127
114
|
/** Evidence store that produced the rejected candidate. */
|
|
128
|
-
evidence_source:"clone_local"
|
|
115
|
+
evidence_source:"clone_local"|"durable"|"clone_local_and_durable";
|
|
129
116
|
/** Stable failure class suitable for remediation routing and graph analytics. */
|
|
130
|
-
reason:"directory_unreadable"
|
|
117
|
+
reason:"directory_unreadable"|"candidate_not_bounded_regular_file"|"candidate_unreadable"|"candidate_invalid_json"|"schema_or_identity_invalid"|"schema_invalid"|"identity_invalid"|"copy_provenance_mismatch";
|
|
131
118
|
/** Exact validation boundary when schema or identity evidence is rejected. */
|
|
132
|
-
validation_error?:"required_fields"
|
|
119
|
+
validation_error?:"required_fields"|"receipt_id"|"item_id"|"item_path"|"filename"|"collections"|"enums"|"timestamps"|"durable_decisions"|"operation";
|
|
133
120
|
/** Exact schema coordinate, excluding rejected values and user-controlled field names. */
|
|
134
121
|
validation_path?:string;
|
|
135
122
|
/** Receipt identity when the bounded filename itself is a valid receipt id. */
|
|
136
123
|
receipt_id?:string;
|
|
137
124
|
/** SHA-256 locator for an unsafe or malformed candidate filename. */
|
|
138
|
-
candidate_name_hash?:string;
|
|
139
|
-
}
|
|
125
|
+
candidate_name_hash?:string;}
|
|
140
126
|
/** Revalidate one receipt and stage its atomic reconciled-state replacement. */
|
|
141
|
-
declare function prepareReceiptSettlement(params:{
|
|
142
|
-
receiptPath:string;
|
|
143
|
-
receiptId:string;
|
|
144
|
-
evidenceSource:"clone_local" | "durable";
|
|
145
|
-
reconciledAt:string;
|
|
146
|
-
settlement?:"original_git_state_restored";
|
|
147
|
-
readReceipt?:(receiptPath:string) => Promise<string | null>;
|
|
148
|
-
}):Promise<{
|
|
149
|
-
path:string;
|
|
150
|
-
content:string;
|
|
151
|
-
fingerprints:string[];
|
|
152
|
-
modern:boolean;
|
|
153
|
-
} | null>;
|
|
127
|
+
declare function prepareReceiptSettlement(params:{receiptPath:string;receiptId:string;evidenceSource:"clone_local"|"durable";reconciledAt:string;settlement?:"original_git_state_restored";readReceipt?:(receiptPath:string)=> Promise<string|null>;}):Promise<{path:string;content:string;fingerprints:string[];modern:boolean;}|null>;
|
|
154
128
|
/** Convert a raw receipt into privacy-safe history context. */
|
|
155
129
|
export declare function summarizeMergeReceipt(receipt:MergeDecisionReceipt):MergeDecisionReceiptSummary;
|
|
156
130
|
/** Persist one item-driver outcome in the clone-local Git directory. */
|
|
157
|
-
export declare function writeMergeReceipt(params:{
|
|
158
|
-
cwd:string;
|
|
159
|
-
itemPath:string;
|
|
160
|
-
preferred:MergePreferredSide;
|
|
161
|
-
conflictResolution?:ItemScalarConflictResolution;
|
|
162
|
-
fieldsFromTheirs:string[];
|
|
163
|
-
unionFields:string[];
|
|
164
|
-
mergedFieldHashes?:Record<string,string>;
|
|
165
|
-
decisions:ItemMergeConflictDecision[];
|
|
166
|
-
operation?:MergeReceiptOperation;
|
|
167
|
-
}):Promise<MergeDecisionReceipt | null>;
|
|
131
|
+
export declare function writeMergeReceipt(params:{cwd:string;itemPath:string;preferred:MergePreferredSide;conflictResolution?:ItemScalarConflictResolution;fieldsFromTheirs:string[];unionFields:string[];mergedFieldHashes?:Record<string,string>;decisions:ItemMergeConflictDecision[];operation?:MergeReceiptOperation;}):Promise<MergeDecisionReceipt|null>;
|
|
168
132
|
/** Distinguish a missing optional receipt store from an unreadable one. */
|
|
169
|
-
declare function receiptDirectoryFailureMeansAbsent(directory:string,error:unknown,inspectAncestor?:(ancestor:string)
|
|
133
|
+
declare function receiptDirectoryFailureMeansAbsent(directory:string,error:unknown,inspectAncestor?:(ancestor:string)=> Promise<Pick<Stats,"isDirectory">>):Promise<boolean>;
|
|
170
134
|
/** Inspect valid receipts and count invalid evidence without returning untrusted file contents. */
|
|
171
135
|
export declare function inspectMergeReceiptEvidence(cwd:string,options?:{
|
|
172
136
|
/** Include receipts whose reconciliation state is already settled. */
|
|
@@ -174,44 +138,30 @@ includeReconciled?:boolean;
|
|
|
174
138
|
/** Include receipts that contain no discarded scalar values. */
|
|
175
139
|
includeLossless?:boolean;
|
|
176
140
|
/** Explicit tracker root used to locate durable receipt evidence. */
|
|
177
|
-
pmRoot?:string;
|
|
178
|
-
}):Promise<MergeReceiptEvidenceScan>;
|
|
141
|
+
pmRoot?:string;}):Promise<MergeReceiptEvidenceScan>;
|
|
179
142
|
/** Read clone-local receipts with explicit reconciled/lossless classification controls. */
|
|
180
|
-
export declare function listMergeReceipts(cwd:string,options?:{
|
|
181
|
-
includeReconciled?:boolean;
|
|
182
|
-
includeLossless?:boolean;
|
|
183
|
-
pmRoot?:string;
|
|
184
|
-
}):Promise<MergeDecisionReceipt[]>;
|
|
143
|
+
export declare function listMergeReceipts(cwd:string,options?:{includeReconciled?:boolean;includeLossless?:boolean;pmRoot?:string;}):Promise<MergeDecisionReceipt[]>;
|
|
185
144
|
/** Refuse audit references unless every requested identity has validated portable evidence. */
|
|
186
|
-
export declare function assertPortableMergeReceiptReferences(receiptIds:Iterable<string>,evidence:Pick<MergeReceiptEvidenceScan,"durable_receipt_ids"
|
|
145
|
+
export declare function assertPortableMergeReceiptReferences(receiptIds:Iterable<string>,evidence:Pick<MergeReceiptEvidenceScan,"durable_receipt_ids"|"unstaged_durable_receipt_ids">|undefined,preview:boolean):void;
|
|
187
146
|
/** Split merge provenance into receipts with discarded values and receipts whose composition was lossless. */
|
|
188
147
|
export declare function partitionMergeReceipts(receipts:MergeDecisionReceipt[]):{
|
|
189
148
|
/** Receipts that require an explicit decision because at least one competing scalar value was discarded. */
|
|
190
149
|
pendingDecisions:MergeDecisionReceipt[];
|
|
191
150
|
/** Receipts that record provenance without a discarded competing scalar value. */
|
|
192
|
-
lossless:MergeDecisionReceipt[];
|
|
193
|
-
};
|
|
151
|
+
lossless:MergeDecisionReceipt[];};
|
|
194
152
|
/** Mark a receipt as represented by a committed merge history event. */
|
|
195
|
-
export declare function markMergeReceiptReconciled(cwd:string,receipt:MergeDecisionReceipt,options?:{
|
|
196
|
-
requireExisting?:boolean;
|
|
197
|
-
settlement?:"original_git_state_restored";
|
|
198
|
-
}):Promise<void>;
|
|
153
|
+
export declare function markMergeReceiptReconciled(cwd:string,receipt:MergeDecisionReceipt,options?:{requireExisting?:boolean;settlement?:"original_git_state_restored";}):Promise<void>;
|
|
199
154
|
/** Report pending or historical clone-local merge decisions. */
|
|
200
155
|
export declare function runMergeReceiptReport(options:{
|
|
201
156
|
/** Include receipts already represented by merge history events. */
|
|
202
157
|
includeReconciled?:boolean;
|
|
203
158
|
/** Repository directory to inspect; defaults to the process working directory. */
|
|
204
|
-
cwd?:string;
|
|
205
|
-
}):Promise<MergeReceiptReport>;
|
|
159
|
+
cwd?:string;}):Promise<MergeReceiptReport>;
|
|
206
160
|
/** Inspect every receipt candidate and retain completeness diagnostics without exposing rejected file contents. */
|
|
207
161
|
export declare function runMergeReceiptEvidenceReport(options:{
|
|
208
162
|
/** Include receipts already represented by merge history events. */
|
|
209
163
|
includeReconciled?:boolean;
|
|
210
164
|
/** Repository directory to inspect; defaults to the process working directory. */
|
|
211
|
-
cwd?:string;
|
|
212
|
-
}):Promise<MergeReceiptEvidenceReport>;
|
|
165
|
+
cwd?:string;}):Promise<MergeReceiptEvidenceReport>;
|
|
213
166
|
/** Test-only seams for deterministic receipt-boundary fault coverage. */
|
|
214
|
-
export declare const _testOnlyMergeReceipts:{
|
|
215
|
-
prepareReceiptSettlement:typeof prepareReceiptSettlement;
|
|
216
|
-
receiptDirectoryFailureMeansAbsent:typeof receiptDirectoryFailureMeansAbsent;
|
|
217
|
-
};
|
|
167
|
+
export declare const _testOnlyMergeReceipts:{prepareReceiptSettlement:typeof prepareReceiptSettlement;receiptDirectoryFailureMeansAbsent:typeof receiptDirectoryFailureMeansAbsent;};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type ValidateResult } from "../governance/validate.js";
|
|
3
|
-
import { type HistoryRepairAllResult } from "../history-repair.js";
|
|
4
|
-
import { type MergeDecisionReceiptSummary } from "./receipts.js";
|
|
1
|
+
import type{GlobalOptions}from "../../core/shared/command-types.js";import{type ValidateResult}from "../governance/validate.js";import{type HistoryRepairAllResult}from "../history-repair.js";import{type MergeDecisionReceiptSummary}from "./receipts.js";
|
|
5
2
|
/** Options for the audited post-merge reconciliation workflow. */
|
|
6
|
-
export interface MergeReconcileOptions
|
|
3
|
+
export interface MergeReconcileOptions{
|
|
7
4
|
/** Preview drifted streams without mutating history. */
|
|
8
5
|
dryRun?:boolean;
|
|
9
6
|
/** Attribution recorded on repair audit entries. */
|
|
@@ -13,10 +10,9 @@ message?:string;
|
|
|
13
10
|
/** Permit ownership overrides already supported by history repair. */
|
|
14
11
|
force?:boolean;
|
|
15
12
|
/** Stage only authenticated lossless audit artifacts, refusing force, conflicts and unrelated drift. */
|
|
16
|
-
stage?:boolean;
|
|
17
|
-
}
|
|
13
|
+
stage?:boolean;}
|
|
18
14
|
/** Structured post-merge reconciliation and verification result. */
|
|
19
|
-
export interface MergeReconcileResult
|
|
15
|
+
export interface MergeReconcileResult{
|
|
20
16
|
/**
|
|
21
17
|
* Whether reconciliation completed without repair failures or non-green
|
|
22
18
|
* merge-critical validation. Dry-run previews therefore fail closed while
|
|
@@ -28,12 +24,9 @@ dry_run:boolean;
|
|
|
28
24
|
/** Bulk history repair preview or apply result. */
|
|
29
25
|
repair:HistoryRepairAllResult;
|
|
30
26
|
/** Clone-local merge receipts represented by merge history events. */
|
|
31
|
-
receipts:{
|
|
32
|
-
pending_before:number;
|
|
33
|
-
reconciled:number;
|
|
27
|
+
receipts:{pending_before:number;reconciled:number;
|
|
34
28
|
/** Receipts proven to restore their original Git state; these do not represent applied merges. */
|
|
35
|
-
abandoned:number;
|
|
36
|
-
summaries:MergeDecisionReceiptSummary[];
|
|
29
|
+
abandoned:number;summaries:MergeDecisionReceiptSummary[];
|
|
37
30
|
/** Valid sidecars awaiting matching Git index evidence; a preview never authorizes audit writes. */
|
|
38
31
|
unstaged_durable_receipt_ids?:string[];
|
|
39
32
|
/** Missing durable references discovered before this reconciliation. */
|
|
@@ -43,8 +36,7 @@ legacy_disposition_eligible:number;
|
|
|
43
36
|
/** Eligible references dispositioned by this apply pass. */
|
|
44
37
|
legacy_disposition_recorded:number;
|
|
45
38
|
/** Missing durable references still blocking health after this pass. */
|
|
46
|
-
missing_history_references_after:number;
|
|
47
|
-
};
|
|
39
|
+
missing_history_references_after:number;};
|
|
48
40
|
/** Post-operation history-drift and storage-integrity validation. */
|
|
49
41
|
validation:ValidateResult;
|
|
50
42
|
/** Stable next-step guidance for Git hooks and interactive agents. */
|
|
@@ -52,12 +44,11 @@ guidance:string[];
|
|
|
52
44
|
/** ISO timestamp copied from the validation pass. */
|
|
53
45
|
generated_at:string;
|
|
54
46
|
/** Repository-relative artifacts staged by an explicit stage request; dry runs return an empty list. */
|
|
55
|
-
staged_paths?:string[];
|
|
56
|
-
}
|
|
47
|
+
staged_paths?:string[];}
|
|
57
48
|
/**
|
|
58
49
|
* Preview or apply post-merge history reconciliation and immediately validate
|
|
59
50
|
* the two merge-critical invariants. The default remains explicit and safe:
|
|
60
51
|
* callers opt into this command after Git finishes; installing merge drivers
|
|
61
52
|
* does not silently install or mutate repository hooks.
|
|
62
53
|
*/
|
|
63
|
-
export declare function runMergeReconcile(options:MergeReconcileOptions,global:GlobalOptions):Promise<MergeReconcileResult>;
|
|
54
|
+
export declare function runMergeReconcile(options:MergeReconcileOptions,global:GlobalOptions):Promise<MergeReconcileResult>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{type ItemDocumentFormatOptions}from "../../core/item/item-format.js";
|
|
2
2
|
/** Restricts which side of a three-way merge wins an unresolvable conflict. */
|
|
3
|
-
export type MergePreferredSide
|
|
3
|
+
export type MergePreferredSide="ours"|"theirs";
|
|
4
4
|
/** Declares how competing item scalar writes select their retained value. */
|
|
5
|
-
export type ItemScalarConflictResolution
|
|
5
|
+
export type ItemScalarConflictResolution="preferred_side"|"stable_value_order"|"latest_document_update";
|
|
6
6
|
/** Explains the exact evidence used to select one conflicting item scalar. */
|
|
7
|
-
export type ItemScalarResolutionBasis
|
|
7
|
+
export type ItemScalarResolutionBasis="requested_preference"|"document_updated_at"|"stable_value_tiebreak";
|
|
8
8
|
/** JSON-stable marker used when a conflict decision refers to an absent scalar. */
|
|
9
|
-
export declare const ITEM_SCALAR_MISSING_VALUE:Readonly<{
|
|
10
|
-
readonly pm_item_scalar_missing:true;
|
|
11
|
-
}>;
|
|
9
|
+
export declare const ITEM_SCALAR_MISSING_VALUE:Readonly<{readonly pm_item_scalar_missing:true;}>;
|
|
12
10
|
/** Return whether receipt evidence represents an absent item scalar. */
|
|
13
11
|
export declare function isItemScalarMissingValue(value:unknown):value is typeof ITEM_SCALAR_MISSING_VALUE;
|
|
14
12
|
/** Encode an absent scalar so every decision property survives JSON serialization. */
|
|
@@ -16,9 +14,9 @@ export declare function encodeItemScalarDecisionValue(value:unknown):unknown;
|
|
|
16
14
|
/** Hash scalars in disjoint present/missing domains for collision-free evidence. */
|
|
17
15
|
export declare function hashItemScalarDecisionValue(value:unknown):string;
|
|
18
16
|
/** Restricts the strategy labels reported by the history stream merge. */
|
|
19
|
-
export type HistoryMergeStrategy
|
|
17
|
+
export type HistoryMergeStrategy="identical"|"fast_forward_ours"|"fast_forward_theirs"|"union_reanchor";
|
|
20
18
|
/** Documents the history stream merge result payload exchanged by command, SDK, and package integrations. */
|
|
21
|
-
export interface HistoryMergeResult
|
|
19
|
+
export interface HistoryMergeResult{
|
|
22
20
|
/** Merged JSONL content ready to be written as the resolved history stream. */
|
|
23
21
|
merged:string;
|
|
24
22
|
/** Strategy the merge used: identical inputs, one-sided fast-forward, or a deterministic union with a re-anchored hash chain. */
|
|
@@ -32,8 +30,7 @@ entries_from_theirs:number;
|
|
|
32
30
|
/** Total entries in the merged stream. */
|
|
33
31
|
entries_total:number;
|
|
34
32
|
/** Whether the merged chain required hash re-anchoring (true for every union merge). */
|
|
35
|
-
reanchored:boolean;
|
|
36
|
-
}
|
|
33
|
+
reanchored:boolean;}
|
|
37
34
|
/**
|
|
38
35
|
* Deterministically merge two diverged versions of one append-only history
|
|
39
36
|
* JSONL stream. Identical streams and one-sided fast-forwards keep the winning
|
|
@@ -49,7 +46,7 @@ reanchored:boolean;
|
|
|
49
46
|
*/
|
|
50
47
|
export declare function mergeHistoryStreams(baseRaw:string,oursRaw:string,theirsRaw:string):HistoryMergeResult;
|
|
51
48
|
/** Documents the relationship event stream merge result payload exchanged by command, SDK, and package integrations. */
|
|
52
|
-
export interface RelationshipStreamMergeResult
|
|
49
|
+
export interface RelationshipStreamMergeResult{
|
|
53
50
|
/** Merged JSONL content with consecutively renumbered `sequence` values, ready to be written as the resolved event store. */
|
|
54
51
|
merged:string;
|
|
55
52
|
/** Strategy the merge used: identical inputs, one-sided fast-forward, or a deterministic union with renumbered sequences. */
|
|
@@ -63,8 +60,7 @@ entries_from_theirs:number;
|
|
|
63
60
|
/** Total events in the merged stream. */
|
|
64
61
|
entries_total:number;
|
|
65
62
|
/** Whether merged events required sequence renumbering (true for every union merge). */
|
|
66
|
-
reanchored:boolean;
|
|
67
|
-
}
|
|
63
|
+
reanchored:boolean;}
|
|
68
64
|
/**
|
|
69
65
|
* Deterministically merge two diverged versions of one append-only
|
|
70
66
|
* relationship event JSONL store. The store's loader enforces strictly
|
|
@@ -85,11 +81,11 @@ export declare function mergeRelationshipEventStreams(baseRaw:string,oursRaw:str
|
|
|
85
81
|
* steps carry cross-element ordering invariants that set-union would corrupt,
|
|
86
82
|
* so they stay under scalar three-way semantics with explicit conflicts.
|
|
87
83
|
*/
|
|
88
|
-
export declare const ITEM_UNION_COLLECTION_FIELDS:readonly
|
|
84
|
+
export declare const ITEM_UNION_COLLECTION_FIELDS:readonly["tags","dependencies","comments","notes","learnings","files","tests","test_runs","docs","reminders","events"];
|
|
89
85
|
/** Item metadata fields resolved by deterministic latest-timestamp-wins instead of three-way conflict, so disjoint-field edits never conflict on the shared freshness scalar every mutation rewrites. */
|
|
90
|
-
export declare const ITEM_LATEST_TIMESTAMP_FIELDS:readonly
|
|
86
|
+
export declare const ITEM_LATEST_TIMESTAMP_FIELDS:readonly["updated_at"];
|
|
91
87
|
/** Documents one recoverable scalar decision made during an item merge. */
|
|
92
|
-
export interface ItemMergeConflictDecision
|
|
88
|
+
export interface ItemMergeConflictDecision{
|
|
93
89
|
/** Metadata field name, or `body`. */
|
|
94
90
|
field:string;
|
|
95
91
|
/** Common-ancestor value. */
|
|
@@ -105,10 +101,9 @@ discarded:unknown;
|
|
|
105
101
|
/** Branch coordinate whose value was retained. */
|
|
106
102
|
retained_side?:MergePreferredSide;
|
|
107
103
|
/** Evidence class that selected the retained value. */
|
|
108
|
-
resolution_basis?:ItemScalarResolutionBasis;
|
|
109
|
-
}
|
|
104
|
+
resolution_basis?:ItemScalarResolutionBasis;}
|
|
110
105
|
/** Documents the item document merge result payload exchanged by command, SDK, and package integrations. */
|
|
111
|
-
export interface ItemDocumentMergeResult
|
|
106
|
+
export interface ItemDocumentMergeResult{
|
|
112
107
|
/** Serialized merged item document (always parseable; count headers recomputed by canonical serialization). */
|
|
113
108
|
merged:string;
|
|
114
109
|
/** Metadata fields (plus `body`) where both sides changed to different values; resolved toward the preferred side. */
|
|
@@ -124,8 +119,7 @@ requested_preference:MergePreferredSide;
|
|
|
124
119
|
/** Whether the requested side participates in item scalar selection under the declared policy. */
|
|
125
120
|
requested_preference_applied:boolean;
|
|
126
121
|
/** Scalar-conflict selection contract used for this merge. */
|
|
127
|
-
conflict_resolution:ItemScalarConflictResolution;
|
|
128
|
-
}
|
|
122
|
+
conflict_resolution:ItemScalarConflictResolution;}
|
|
129
123
|
/**
|
|
130
124
|
* Field-aware three-way merge of one tracker item document. Commutative
|
|
131
125
|
* collections (notes, tags, tests, ...) union by element identity so
|
|
@@ -138,14 +132,13 @@ conflict_resolution:ItemScalarConflictResolution;
|
|
|
138
132
|
* recomputed, so the hand-resolution corruption class (stale `notes[N]`
|
|
139
133
|
* headers) cannot be produced by this merge.
|
|
140
134
|
*/
|
|
141
|
-
export declare function mergeItemDocuments(baseRaw:string,oursRaw:string,theirsRaw:string,options?:ItemDocumentFormatOptions
|
|
135
|
+
export declare function mergeItemDocuments(baseRaw:string,oursRaw:string,theirsRaw:string,options?:ItemDocumentFormatOptions&{
|
|
142
136
|
/** Side that wins unresolvable conflicts (default "ours"). */
|
|
143
137
|
preferred?:MergePreferredSide;
|
|
144
138
|
/** Direction-independent scalar selection used by the Git driver. */
|
|
145
|
-
conflictResolution?:ItemScalarConflictResolution;
|
|
146
|
-
}):ItemDocumentMergeResult;
|
|
139
|
+
conflictResolution?:ItemScalarConflictResolution;}):ItemDocumentMergeResult;
|
|
147
140
|
/** Documents the JSON document merge result payload exchanged by command, SDK, and package integrations. */
|
|
148
|
-
export interface JsonDocumentMergeResult
|
|
141
|
+
export interface JsonDocumentMergeResult{
|
|
149
142
|
/** Serialized merged JSON document (two-space indent, trailing newline — the tracker's canonical config style). */
|
|
150
143
|
merged:string;
|
|
151
144
|
/** Dotted key paths where both sides changed to different values; resolved toward the preferred side. */
|
|
@@ -153,8 +146,7 @@ conflict_paths:string[];
|
|
|
153
146
|
/** Dotted key paths taken from the theirs side by clean three-way resolution. */
|
|
154
147
|
paths_from_theirs:string[];
|
|
155
148
|
/** Which side unresolvable conflicts were resolved toward. */
|
|
156
|
-
preferred:MergePreferredSide;
|
|
157
|
-
}
|
|
149
|
+
preferred:MergePreferredSide;}
|
|
158
150
|
/**
|
|
159
151
|
* Key-level three-way merge for the tracker's JSON configuration artifacts.
|
|
160
152
|
* Nested objects merge recursively per key, while arrays compose only when
|
|
@@ -165,5 +157,4 @@ preferred:MergePreferredSide;
|
|
|
165
157
|
*/
|
|
166
158
|
export declare function mergeJsonDocuments(baseRaw:string,oursRaw:string,theirsRaw:string,options?:{
|
|
167
159
|
/** Side that wins unresolvable conflicts (default "ours"). */
|
|
168
|
-
preferred?:MergePreferredSide;
|
|
169
|
-
}):JsonDocumentMergeResult;
|
|
160
|
+
preferred?:MergePreferredSide;}):JsonDocumentMergeResult;
|
package/dist/sdk/merge.d.ts
CHANGED
|
@@ -3,8 +3,4 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides semantic tracker merge, reconciliation, and merge-fence APIs.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./merge/index.js";
|
|
7
|
-
export * from "./merge/install.js";
|
|
8
|
-
export type { ItemDocumentFormatOptions } from "../core/item/item-format.js";
|
|
9
|
-
export type { GlobalOptions } from "../core/shared/command-types.js";
|
|
10
|
-
export type { PmSettings } from "../types.js";
|
|
6
|
+
export * from "./merge/index.js";export * from "./merge/install.js";export type{ItemDocumentFormatOptions}from "../core/item/item-format.js";export type{GlobalOptions}from "../core/shared/command-types.js";export type{PmSettings}from "../types.js";
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { HistoryEntry } from "../types/index.js";
|
|
3
|
-
import { type HistoryProvenanceRow,type HistoryProvenanceSummary } from "./history-provenance.js";
|
|
1
|
+
import{type IndexedHistoryEvent}from "../core/history/event-index.js";import type{HistoryEntry}from "../types/index.js";import{type HistoryProvenanceRow,type HistoryProvenanceSummary}from "./history-provenance.js";
|
|
4
2
|
/** Regression budgets for the canonical 200-event wire-cost fixture. */
|
|
5
3
|
export declare const MUTATION_EVENT_WIRE_BUDGET:Readonly<{
|
|
6
4
|
/** Maximum default batch bytes divided by legacy row-cursor bytes. */
|
|
7
5
|
batch_to_row_ratio:0.6;
|
|
8
6
|
/** Fixture size used to keep the ratio representative of fleet catch-up. */
|
|
9
|
-
fixture_events:200;
|
|
10
|
-
}>;
|
|
11
|
-
interface MutationEventCursorEnvelope {
|
|
12
|
-
version:number;
|
|
13
|
-
fingerprint:string;
|
|
14
|
-
ts:string;
|
|
15
|
-
stream_id:string;
|
|
16
|
-
stream_offset:number;
|
|
17
|
-
}
|
|
7
|
+
fixture_events:200;}>;interface MutationEventCursorEnvelope{version:number;fingerprint:string;ts:string;stream_id:string;stream_offset:number;}
|
|
18
8
|
/** Workspace and filtering controls for mutation-event reads. */
|
|
19
|
-
export interface ListMutationEventsOptions
|
|
9
|
+
export interface ListMutationEventsOptions{
|
|
20
10
|
/** Verify complete selected authoritative chains before filtering or pagination. */
|
|
21
11
|
verify?:boolean;
|
|
22
12
|
/** Explicit tracker root, equivalent to global `--pm-path`. */
|
|
@@ -26,11 +16,11 @@ cwd?:string;
|
|
|
26
16
|
/** Opaque cursor or inclusive ISO timestamp lower bound. */
|
|
27
17
|
since?:string;
|
|
28
18
|
/** Operation name filter, repeatable through arrays. */
|
|
29
|
-
type?:string
|
|
19
|
+
type?:string|readonly string[];
|
|
30
20
|
/** Author filter, repeatable through arrays. */
|
|
31
|
-
author?:string
|
|
21
|
+
author?:string|readonly string[];
|
|
32
22
|
/** Item/workspace stream filter, repeatable through arrays. */
|
|
33
|
-
item?:string
|
|
23
|
+
item?:string|readonly string[];
|
|
34
24
|
/** Maximum events returned, capped at 1,000. */
|
|
35
25
|
limit?:number;
|
|
36
26
|
/** Include the complete history entry instead of the compact projection. */
|
|
@@ -40,16 +30,15 @@ provenance?:boolean;
|
|
|
40
30
|
/** Include bounded provenance completeness counts for the returned page. */
|
|
41
31
|
provenanceSummary?:boolean;
|
|
42
32
|
/** Filter by canonical recorded or vocabulary-resolved harness. */
|
|
43
|
-
harness?:string
|
|
33
|
+
harness?:string|readonly string[];
|
|
44
34
|
/** Filter by privacy-safe invocation fingerprint. */
|
|
45
|
-
agentInstance?:string
|
|
35
|
+
agentInstance?:string|readonly string[];
|
|
46
36
|
/** Exact provenance dimension predicates (`dimension=value`). */
|
|
47
|
-
provenanceFilter?:string
|
|
37
|
+
provenanceFilter?:string|readonly string[];
|
|
48
38
|
/** Cursor framing mode; batch is the token-efficient default. */
|
|
49
|
-
cursorMode?:"batch"
|
|
50
|
-
}
|
|
39
|
+
cursorMode?:"batch"|"row";}
|
|
51
40
|
/** One ordered cross-item mutation event. */
|
|
52
|
-
export interface MutationEvent
|
|
41
|
+
export interface MutationEvent{
|
|
53
42
|
/** Cursor that resumes strictly after this event. */
|
|
54
43
|
cursor?:string;
|
|
55
44
|
/** Item id or `_workspace` stream subject. */
|
|
@@ -69,12 +58,11 @@ patch_count:number;
|
|
|
69
58
|
/** Complete authoritative history entry when `full` is requested. */
|
|
70
59
|
entry?:HistoryEntry;
|
|
71
60
|
/** Patch-free provenance row when requested. */
|
|
72
|
-
provenance?:HistoryProvenanceRow;
|
|
73
|
-
}
|
|
61
|
+
provenance?:HistoryProvenanceRow;}
|
|
74
62
|
/** Bounded event page returned by {@link listMutationEvents}. */
|
|
75
|
-
export interface MutationEventPage
|
|
63
|
+
export interface MutationEventPage{
|
|
76
64
|
/** Chain verification is opt-in; content cache validation alone is not proof. */
|
|
77
|
-
integrity:"verified"
|
|
65
|
+
integrity:"verified"|"unverified";
|
|
78
66
|
/** Complete selected authoritative streams checked when verification is requested. */
|
|
79
67
|
verified_streams?:number;
|
|
80
68
|
/** Ordered mutation events. */
|
|
@@ -84,31 +72,20 @@ count:number;
|
|
|
84
72
|
/** Whether another matching event is immediately available. */
|
|
85
73
|
has_more:boolean;
|
|
86
74
|
/** Cursor framing used by this page. */
|
|
87
|
-
cursor_mode:"batch"
|
|
75
|
+
cursor_mode:"batch"|"row";
|
|
88
76
|
/** Cursor that resumes after the final returned event. */
|
|
89
77
|
next_cursor?:string;
|
|
90
78
|
/** Persistent derived projection used for the read. */
|
|
91
|
-
source:"derived_index"
|
|
79
|
+
source:"derived_index"|"authoritative_history";
|
|
92
80
|
/** Constant-size provenance completeness metrics for the returned page. */
|
|
93
|
-
provenance_summary?:HistoryProvenanceSummary;
|
|
94
|
-
}
|
|
81
|
+
provenance_summary?:HistoryProvenanceSummary;}
|
|
95
82
|
/** Follow controls accepted by {@link subscribeMutationEvents}. */
|
|
96
|
-
export interface SubscribeMutationEventsOptions extends ListMutationEventsOptions
|
|
83
|
+
export interface SubscribeMutationEventsOptions extends ListMutationEventsOptions{
|
|
97
84
|
/** Delay between empty catch-up reads. */
|
|
98
85
|
intervalMs?:number;
|
|
99
86
|
/** Cancellation signal for a long-lived subscription. */
|
|
100
|
-
signal?:AbortSignal;
|
|
101
|
-
}
|
|
102
|
-
declare function eventQueryFingerprint(options:ListMutationEventsOptions):string;
|
|
103
|
-
declare function encodeMutationEventCursor(event:IndexedHistoryEvent,fingerprint:string):string;
|
|
104
|
-
declare function isMutationEventCursorEnvelope(value:unknown,fingerprint:string):value is MutationEventCursorEnvelope;
|
|
105
|
-
declare function decodeMutationEventCursor(cursor:string,fingerprint:string):MutationEventCursorEnvelope;
|
|
106
|
-
declare function parseMutationEventLimit(value:number | undefined):number;
|
|
107
|
-
declare function isAbortError(error:unknown):boolean;
|
|
108
|
-
declare function resolveMutationEventStart(sinceValue:string | undefined,fingerprint:string):{
|
|
109
|
-
cursor?:MutationEventCursorEnvelope;
|
|
110
|
-
sinceTimestamp?:string;
|
|
111
|
-
};
|
|
87
|
+
signal?:AbortSignal;}
|
|
88
|
+
declare function eventQueryFingerprint(options:ListMutationEventsOptions):string;declare function encodeMutationEventCursor(event:IndexedHistoryEvent,fingerprint:string):string;declare function isMutationEventCursorEnvelope(value:unknown,fingerprint:string):value is MutationEventCursorEnvelope;declare function decodeMutationEventCursor(cursor:string,fingerprint:string):MutationEventCursorEnvelope;declare function parseMutationEventLimit(value:number|undefined):number;declare function isAbortError(error:unknown):boolean;declare function resolveMutationEventStart(sinceValue:string|undefined,fingerprint:string):{cursor?:MutationEventCursorEnvelope;sinceTimestamp?:string;};
|
|
112
89
|
/** Read one bounded page of mutation events from the persistent projection. */
|
|
113
90
|
export declare function listMutationEvents(options?:ListMutationEventsOptions):Promise<MutationEventPage>;
|
|
114
91
|
/**
|
|
@@ -122,13 +99,4 @@ export declare function subscribeMutationEventBatches(options?:SubscribeMutation
|
|
|
122
99
|
*/
|
|
123
100
|
export declare function subscribeMutationEvents(options?:SubscribeMutationEventsOptions):AsyncGenerator<MutationEvent,void,void>;
|
|
124
101
|
/** Public test seams for cursor contract verification. */
|
|
125
|
-
export declare const _testOnlyMutationEvents:{
|
|
126
|
-
decodeMutationEventCursor:typeof decodeMutationEventCursor;
|
|
127
|
-
encodeMutationEventCursor:typeof encodeMutationEventCursor;
|
|
128
|
-
eventQueryFingerprint:typeof eventQueryFingerprint;
|
|
129
|
-
isAbortError:typeof isAbortError;
|
|
130
|
-
isMutationEventCursorEnvelope:typeof isMutationEventCursorEnvelope;
|
|
131
|
-
parseMutationEventLimit:typeof parseMutationEventLimit;
|
|
132
|
-
resolveMutationEventStart:typeof resolveMutationEventStart;
|
|
133
|
-
};
|
|
134
|
-
export {};
|
|
102
|
+
export declare const _testOnlyMutationEvents:{decodeMutationEventCursor:typeof decodeMutationEventCursor;encodeMutationEventCursor:typeof encodeMutationEventCursor;eventQueryFingerprint:typeof eventQueryFingerprint;isAbortError:typeof isAbortError;isMutationEventCursorEnvelope:typeof isMutationEventCursorEnvelope;parseMutationEventLimit:typeof parseMutationEventLimit;resolveMutationEventStart:typeof resolveMutationEventStart;};export{};
|