@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/similarity.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ItemMetadata } from "../types/index.js";
|
|
3
|
-
import { type PreparedSimilarityText } from "./similarity-scoring.js";
|
|
4
|
-
export { jaccardSimilarity,normalizeSimilarityText,prepareSimilarityText,scoreItemSimilarity,scorePreparedItemSimilarity,tokenizeSimilarityText,type ItemSimilarityScore,type PreparedSimilarityText,} from "./similarity-scoring.js";
|
|
1
|
+
import{collectDuplicateCandidatePairs}from "./query/duplicate-candidates.js";import type{ItemMetadata}from "../types/index.js";import{type PreparedSimilarityText}from "./similarity-scoring.js";export{jaccardSimilarity,normalizeSimilarityText,prepareSimilarityText,scoreItemSimilarity,scorePreparedItemSimilarity,tokenizeSimilarityText,type ItemSimilarityScore,type PreparedSimilarityText,}from "./similarity-scoring.js";
|
|
5
2
|
/** Candidate content accepted by the similarity primitive. */
|
|
6
|
-
export interface SimilarItemCandidate
|
|
3
|
+
export interface SimilarItemCandidate{
|
|
7
4
|
/** Proposed title. */
|
|
8
5
|
title:string;
|
|
9
6
|
/** Optional description used by future semantic providers. */
|
|
@@ -11,10 +8,9 @@ description?:string;
|
|
|
11
8
|
/** Optional body used by future semantic providers. */
|
|
12
9
|
body?:string;
|
|
13
10
|
/** Existing ids to omit, such as a copy source or current item. */
|
|
14
|
-
excludeIds?:readonly string[];
|
|
15
|
-
}
|
|
11
|
+
excludeIds?:readonly string[];}
|
|
16
12
|
/** Query controls for {@link findSimilarItems}. */
|
|
17
|
-
export interface FindSimilarItemsOptions
|
|
13
|
+
export interface FindSimilarItemsOptions{
|
|
18
14
|
/** Explicit tracker root. */
|
|
19
15
|
pmRoot?:string;
|
|
20
16
|
/** Workspace used for nearest-tracker discovery. */
|
|
@@ -22,10 +18,9 @@ cwd?:string;
|
|
|
22
18
|
/** Maximum returned matches, from zero through twenty. */
|
|
23
19
|
limit?:number;
|
|
24
20
|
/** Inclusive score threshold on the zero-to-one scale. */
|
|
25
|
-
threshold?:number;
|
|
26
|
-
}
|
|
21
|
+
threshold?:number;}
|
|
27
22
|
/** One likely existing duplicate. */
|
|
28
|
-
export interface SimilarItemMatch
|
|
23
|
+
export interface SimilarItemMatch{
|
|
29
24
|
/** Existing item id. */
|
|
30
25
|
id:string;
|
|
31
26
|
/** Existing item title. */
|
|
@@ -37,10 +32,9 @@ type:string;
|
|
|
37
32
|
/** Stable similarity score on the zero-to-one scale. */
|
|
38
33
|
score:number;
|
|
39
34
|
/** Strongest deterministic match signal. */
|
|
40
|
-
reason:"exact_title"
|
|
41
|
-
}
|
|
35
|
+
reason:"exact_title"|"issue_code"|"title_token_jaccard";}
|
|
42
36
|
/** Bounded similarity query result. */
|
|
43
|
-
export interface SimilarItemsResult
|
|
37
|
+
export interface SimilarItemsResult{
|
|
44
38
|
/** Ranked likely duplicates. */
|
|
45
39
|
items:SimilarItemMatch[];
|
|
46
40
|
/** Number of returned matches. */
|
|
@@ -48,19 +42,17 @@ count:number;
|
|
|
48
42
|
/** Effective threshold. */
|
|
49
43
|
threshold:number;
|
|
50
44
|
/** Retrieval path used before shared scoring. */
|
|
51
|
-
source:"persistent_index"
|
|
52
|
-
}
|
|
45
|
+
source:"persistent_index"|"metadata_fallback";}
|
|
53
46
|
/** Query controls for one all-status duplicate-cluster sweep. */
|
|
54
|
-
export interface FindDuplicateClustersOptions extends FindSimilarItemsOptions
|
|
47
|
+
export interface FindDuplicateClustersOptions extends FindSimilarItemsOptions{
|
|
55
48
|
/** Compare every pair as an exact oracle; retains the declared safety bound. */
|
|
56
49
|
exhaustive?:boolean;
|
|
57
50
|
/** Lifecycle statuses to include; omit to inspect every status. */
|
|
58
51
|
statuses?:readonly string[];
|
|
59
52
|
/** Inclusive ISO timestamp lower bound on item creation. */
|
|
60
|
-
since?:string;
|
|
61
|
-
}
|
|
53
|
+
since?:string;}
|
|
62
54
|
/** One deterministic pair that caused items to join a duplicate cluster. */
|
|
63
|
-
export interface DuplicateClusterMatch
|
|
55
|
+
export interface DuplicateClusterMatch{
|
|
64
56
|
/** First item id in lexical order. */
|
|
65
57
|
left_id:string;
|
|
66
58
|
/** Second item id in lexical order. */
|
|
@@ -68,21 +60,19 @@ right_id:string;
|
|
|
68
60
|
/** Canonical deterministic score. */
|
|
69
61
|
score:number;
|
|
70
62
|
/** Strongest deterministic signal. */
|
|
71
|
-
reason:SimilarItemMatch["reason"];
|
|
72
|
-
}
|
|
63
|
+
reason:SimilarItemMatch["reason"];}
|
|
73
64
|
/** One connected component of likely duplicate items. */
|
|
74
|
-
export interface DuplicateCluster
|
|
65
|
+
export interface DuplicateCluster{
|
|
75
66
|
/** Stable cluster key derived from the lexically first item id. */
|
|
76
67
|
id:string;
|
|
77
68
|
/** Item summaries ordered by id. */
|
|
78
|
-
items:Omit<SimilarItemMatch,"score"
|
|
69
|
+
items:Omit<SimilarItemMatch,"score"|"reason">[];
|
|
79
70
|
/** Qualifying pair evidence ordered by score then ids. */
|
|
80
71
|
matches:DuplicateClusterMatch[];
|
|
81
72
|
/** Strongest pair score in this component. */
|
|
82
|
-
max_score:number;
|
|
83
|
-
}
|
|
73
|
+
max_score:number;}
|
|
84
74
|
/** Bounded batch duplicate analysis result with explicit cost disclosure. */
|
|
85
|
-
export interface DuplicateClustersResult
|
|
75
|
+
export interface DuplicateClustersResult{
|
|
86
76
|
/** Connected duplicate components. */
|
|
87
77
|
clusters:DuplicateCluster[];
|
|
88
78
|
/** Number of returned components. */
|
|
@@ -92,16 +82,13 @@ threshold:number;
|
|
|
92
82
|
/** Retrieval path used for this whole-workspace sweep. */
|
|
93
83
|
source:"metadata_scan";
|
|
94
84
|
/** Effective lifecycle filter; null means the complete all-status corpus. */
|
|
95
|
-
filters:{
|
|
96
|
-
statuses:string[] | null;
|
|
97
|
-
since:string | null;
|
|
98
|
-
};
|
|
85
|
+
filters:{statuses:string[]|null;since:string|null;};
|
|
99
86
|
/** Work performed after the single metadata read. */
|
|
100
87
|
cost:{
|
|
101
88
|
/** Items retained after filters. */
|
|
102
89
|
item_count:number;
|
|
103
90
|
/** Algorithm used to generate candidates before canonical scoring. */
|
|
104
|
-
algorithm:"prefix_exact"
|
|
91
|
+
algorithm:"prefix_exact"|"exhaustive";
|
|
105
92
|
/** Pairs in the exhaustive population, including pairs pruned without scoring. */
|
|
106
93
|
possible_pairs:number;
|
|
107
94
|
/** Safety ceiling, exceeded only by an explicit refusal. */
|
|
@@ -111,65 +98,47 @@ recall_guarantee:"exact";
|
|
|
111
98
|
/** Candidate pairs sharing at least one deterministic signal. */
|
|
112
99
|
candidate_pairs:number;
|
|
113
100
|
/** Candidate pairs scored. */
|
|
114
|
-
scored_pairs:number;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
interface PreparedDuplicateItem {
|
|
118
|
-
item:Pick<ItemMetadata,"id" | "title" | "status" | "type">;
|
|
119
|
-
prepared:PreparedSimilarityText;
|
|
120
|
-
}
|
|
101
|
+
scored_pairs:number;};}
|
|
102
|
+
interface PreparedDuplicateItem{item:Pick<ItemMetadata,"id"|"title"|"status"|"type">;prepared:PreparedSimilarityText;}
|
|
121
103
|
/** Create/copy governance envelope attached when likely duplicates exist. */
|
|
122
|
-
export interface SimilarityAdvisory
|
|
104
|
+
export interface SimilarityAdvisory{
|
|
123
105
|
/** Effective governance mode. */
|
|
124
|
-
mode:"advisory"
|
|
106
|
+
mode:"advisory"|"strict";
|
|
125
107
|
/** Whether strict enforcement was explicitly bypassed. */
|
|
126
108
|
bypassed:boolean;
|
|
127
109
|
/** Shared similarity query result. */
|
|
128
110
|
result:SimilarItemsResult;
|
|
129
111
|
/** Executable next action selected from the strongest matching item's lifecycle state. */
|
|
130
|
-
recovery:SimilarityRecovery;
|
|
131
|
-
}
|
|
112
|
+
recovery:SimilarityRecovery;}
|
|
132
113
|
/** Executable duplicate-intake recovery selected from the strongest match. */
|
|
133
|
-
export interface SimilarityRecovery
|
|
114
|
+
export interface SimilarityRecovery{
|
|
134
115
|
/** Whether to continue existing active work or reopen terminal work as a recurrence. */
|
|
135
|
-
action:"reuse"
|
|
116
|
+
action:"reuse"|"reopen";
|
|
136
117
|
/** Strongest matching canonical item. */
|
|
137
118
|
item_id:string;
|
|
138
119
|
/** Shell-form recovery command. */
|
|
139
120
|
command:string;
|
|
140
121
|
/** Tokenized recovery command for direct execution. */
|
|
141
|
-
args:string[];
|
|
142
|
-
}
|
|
122
|
+
args:string[];}
|
|
143
123
|
/** Render compact warning tokens shared by create and copy results. */
|
|
144
|
-
export declare function similarityAdvisoryWarnings(advisory:SimilarityAdvisory
|
|
124
|
+
export declare function similarityAdvisoryWarnings(advisory:SimilarityAdvisory|undefined):string[];
|
|
145
125
|
/** Internal deterministic seams used to prove bounded batch behavior without building a million-pair fixture. */
|
|
146
|
-
export declare const _testOnlySimilarity:{
|
|
147
|
-
buildDuplicateClusters:typeof buildDuplicateClusters;
|
|
148
|
-
collectDuplicateCandidatePairs:typeof collectDuplicateCandidatePairs;
|
|
149
|
-
createDuplicateUnionFind:typeof createDuplicateUnionFind;
|
|
150
|
-
};
|
|
151
|
-
declare function createDuplicateUnionFind(size:number):{
|
|
152
|
-
parent:number[];
|
|
153
|
-
findRoot:(index:number) => number;
|
|
154
|
-
};
|
|
126
|
+
export declare const _testOnlySimilarity:{buildDuplicateClusters:typeof buildDuplicateClusters;collectDuplicateCandidatePairs:typeof collectDuplicateCandidatePairs;createDuplicateUnionFind:typeof createDuplicateUnionFind;};declare function createDuplicateUnionFind(size:number):{parent:number[];findRoot:(index:number)=> number;};
|
|
155
127
|
/** Group unioned endpoints and their scored evidence once, then deterministically rank and limit complete components. */
|
|
156
128
|
declare function buildDuplicateClusters(items:PreparedDuplicateItem[],matches:DuplicateClusterMatch[],union:ReturnType<typeof createDuplicateUnionFind>,limit:number):DuplicateCluster[];
|
|
157
129
|
/** Find likely existing duplicates through an index-first bounded read. */
|
|
158
130
|
export declare function findSimilarItems(candidate:SimilarItemCandidate,options?:FindSimilarItemsOptions):Promise<SimilarItemsResult>;
|
|
159
131
|
/** Minimal metadata accepted from package-owned or remote project stores. */
|
|
160
|
-
export type DuplicateItemInput
|
|
132
|
+
export type DuplicateItemInput=Pick<ItemMetadata,"id"|"title"|"status"|"type">;
|
|
161
133
|
/** Exact in-memory duplicate analysis, independent of a filesystem workspace. */
|
|
162
|
-
export type DuplicateItemsAnalysis
|
|
134
|
+
export type DuplicateItemsAnalysis=Omit<DuplicateClustersResult,"source"|"filters">;
|
|
163
135
|
/**
|
|
164
136
|
* Cluster caller-owned metadata using the same scorer and safety bounds as the CLI.
|
|
165
137
|
* Candidate filtering is lossless; exhaustive mode provides an independent pair
|
|
166
138
|
* population for recall checks. Inputs are copied, sorted and never mutated.
|
|
167
139
|
*/
|
|
168
|
-
export declare function analyzeDuplicateItems(input:readonly DuplicateItemInput[],options?:Pick<FindDuplicateClustersOptions,"threshold"
|
|
140
|
+
export declare function analyzeDuplicateItems(input:readonly DuplicateItemInput[],options?:Pick<FindDuplicateClustersOptions,"threshold"|"limit"|"exhaustive">):DuplicateItemsAnalysis;
|
|
169
141
|
/** Find connected duplicate clusters with one metadata read and shared package analysis. */
|
|
170
142
|
export declare function findDuplicateClusters(options?:FindDuplicateClustersOptions):Promise<DuplicateClustersResult>;
|
|
171
143
|
/** Apply off/advisory/strict mutation governance through the shared query. */
|
|
172
|
-
export declare function evaluateSimilarityGovernance(candidate:SimilarItemCandidate,options:FindSimilarItemsOptions
|
|
173
|
-
mode:"off" | "advisory" | "strict";
|
|
174
|
-
allowDuplicate?:boolean;
|
|
175
|
-
}):Promise<SimilarityAdvisory | undefined>;
|
|
144
|
+
export declare function evaluateSimilarityGovernance(candidate:SimilarItemCandidate,options:FindSimilarItemsOptions&{mode:"off"|"advisory"|"strict";allowDuplicate?:boolean;}):Promise<SimilarityAdvisory|undefined>;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Resolves lifecycle alias status transitions shared by CLI registration and the SDK runtime.
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
6
|
+
import{type RuntimeStatusRegistry}from "../core/schema/runtime-schema.js";
|
|
7
7
|
/** Resolve the status a start moves an item to. A configured in-progress status distinct from the open status wins (for example `workflow.in_progress_status: "working"`); otherwise `in_progress` resolves through the registry's ids and aliases, and a workflow without one falls back to its open status instead of inventing a status it does not define. */
|
|
8
|
-
export declare function resolveStartTaskInProgressStatus(statusRegistry:RuntimeStatusRegistry):string;
|
|
8
|
+
export declare function resolveStartTaskInProgressStatus(statusRegistry:RuntimeStatusRegistry):string;
|
package/dist/sdk/stats.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type CoverageItem,type GroupedBreakdown,type LifecycleClassifier,type MetadataCoverageReport } from "../core/governance/metadata-coverage.js";
|
|
3
|
-
import { type HistoryStorageStats } from "../core/history/history-storage-stats.js";
|
|
4
|
-
import type { GlobalOptions } from "../core/shared/command-types.js";
|
|
5
|
-
import type { ItemStatus,ItemType } from "../types/index.js";
|
|
6
|
-
import { type ImprovementDirection,type ImprovementLedgerResult,type RecordImprovementObservationResult } from "./improvement-ledger.js";
|
|
7
|
-
import { type FleetAttributionAnalytics,type ProvenanceCoverageAnalytics } from "./history-analytics.js";
|
|
1
|
+
import{type ContentFieldUtilizationReport}from "../core/governance/content-fields.js";import{type CoverageItem,type GroupedBreakdown,type LifecycleClassifier,type MetadataCoverageReport}from "../core/governance/metadata-coverage.js";import{type HistoryStorageStats}from "../core/history/history-storage-stats.js";import type{GlobalOptions}from "../core/shared/command-types.js";import type{ItemStatus,ItemType}from "../types/index.js";import{type ImprovementDirection,type ImprovementLedgerResult,type RecordImprovementObservationResult}from "./improvement-ledger.js";import{type FleetAttributionAnalytics,type ProvenanceCoverageAnalytics}from "./history-analytics.js";
|
|
8
2
|
/** Documents the stats command options payload exchanged by command, SDK, and package integrations. */
|
|
9
|
-
export interface StatsCommandOptions
|
|
3
|
+
export interface StatsCommandOptions{
|
|
10
4
|
/** Restore zero-count item-type and status buckets for schema-governance dashboards. */
|
|
11
5
|
includeEmpty?:boolean;
|
|
12
6
|
/** Include aggregate per-stream history storage metrics (sizes, depth, oldest/newest). */
|
|
@@ -52,10 +46,9 @@ since?:string;
|
|
|
52
46
|
/** Maximum immutable events consumed by each analytics projection. */
|
|
53
47
|
eventLimit?:number;
|
|
54
48
|
/** Minimum close or explicit-value denominator required for rates. */
|
|
55
|
-
minimumSample?:number;
|
|
56
|
-
}
|
|
49
|
+
minimumSample?:number;}
|
|
57
50
|
/** Compact, tabular lifecycle row used by the default stats type distribution. */
|
|
58
|
-
export interface StatsTypeLifecycleRow
|
|
51
|
+
export interface StatsTypeLifecycleRow{
|
|
59
52
|
/** Item type represented by this row. */
|
|
60
53
|
type:string;
|
|
61
54
|
/** Total items of this type across every lifecycle bucket. */
|
|
@@ -73,18 +66,13 @@ closed:number;
|
|
|
73
66
|
/** Items in canceled lifecycle states. */
|
|
74
67
|
canceled:number;
|
|
75
68
|
/** Items whose custom status is outside the recognized lifecycle buckets. */
|
|
76
|
-
other:number;
|
|
77
|
-
}
|
|
69
|
+
other:number;}
|
|
78
70
|
/** Screen-sized type distribution rendered as one canonical TOON table. */
|
|
79
|
-
export type StatsTypeBreakdown
|
|
71
|
+
export type StatsTypeBreakdown=StatsTypeLifecycleRow[];
|
|
80
72
|
/** Documents the stats result payload exchanged by command, SDK, and package integrations. */
|
|
81
|
-
export interface StatsResult
|
|
73
|
+
export interface StatsResult{
|
|
82
74
|
/** Value that configures or reports totals for this contract. */
|
|
83
|
-
totals:{
|
|
84
|
-
items:number;
|
|
85
|
-
history_streams:number;
|
|
86
|
-
history_entries:number;
|
|
87
|
-
};
|
|
75
|
+
totals:{items:number;history_streams:number;history_entries:number;};
|
|
88
76
|
/** Schema type that determines the shape and validation rules for this value. */
|
|
89
77
|
by_type:StatsTypeBreakdown;
|
|
90
78
|
/** Item counts grouped by lifecycle status. */
|
|
@@ -94,11 +82,7 @@ omitted_zero_buckets:number;
|
|
|
94
82
|
/** Present only with --metadata-coverage: per-field coverage overall and by type. */
|
|
95
83
|
metadata_coverage?:MetadataCoverageReport;
|
|
96
84
|
/** Present only with --by-assignee/--by-tag/--by-priority: lifecycle-bucketed group breakdowns. */
|
|
97
|
-
breakdowns?:{
|
|
98
|
-
assignee?:GroupedBreakdown;
|
|
99
|
-
tag?:GroupedBreakdown;
|
|
100
|
-
priority?:GroupedBreakdown;
|
|
101
|
-
};
|
|
85
|
+
breakdowns?:{assignee?:GroupedBreakdown;tag?:GroupedBreakdown;priority?:GroupedBreakdown;};
|
|
102
86
|
/** Present only with --storage: aggregate history-stream metrics for compaction/planning. */
|
|
103
87
|
storage?:HistoryStorageStats;
|
|
104
88
|
/** Present only with --field-utilization: content-field utilization rates across all items. */
|
|
@@ -112,28 +96,9 @@ provenance_coverage?:ProvenanceCoverageAnalytics;
|
|
|
112
96
|
/** Bounded fleet attribution derived from immutable history. */
|
|
113
97
|
fleet_attribution?:FleetAttributionAnalytics;
|
|
114
98
|
/** ISO 8601 timestamp recording when generated occurred. */
|
|
115
|
-
generated_at:string;
|
|
116
|
-
}
|
|
117
|
-
declare function zeroByType(itemTypes:string[]):Record<ItemType,number>;
|
|
118
|
-
declare function zeroByStatus(statuses:string[]):Record<ItemStatus,number>;
|
|
119
|
-
declare function projectStatsDistributions(items:readonly CoverageItem[],itemTypes:readonly string[],statuses:readonly string[],classifier:LifecycleClassifier,includeEmpty:boolean):{
|
|
120
|
-
byType:StatsTypeBreakdown;
|
|
121
|
-
byStatus:Partial<Record<ItemStatus,number>>;
|
|
122
|
-
omitted:number;
|
|
123
|
-
};
|
|
124
|
-
declare function countNonEmptyLines(raw:string):number;
|
|
125
|
-
declare function readHistoryStreamContents(pmRoot:string):Promise<Array<{
|
|
126
|
-
id:string;
|
|
127
|
-
raw:string;
|
|
128
|
-
}>>;
|
|
99
|
+
generated_at:string;}
|
|
100
|
+
declare function zeroByType(itemTypes:string[]):Record<ItemType,number>;declare function zeroByStatus(statuses:string[]):Record<ItemStatus,number>;declare function projectStatsDistributions(items:readonly CoverageItem[],itemTypes:readonly string[],statuses:readonly string[],classifier:LifecycleClassifier,includeEmpty:boolean):{byType:StatsTypeBreakdown;byStatus:Partial<Record<ItemStatus,number>>;omitted:number;};declare function countNonEmptyLines(raw:string):number;declare function readHistoryStreamContents(pmRoot:string):Promise<Array<{id:string;raw:string;}>>;
|
|
129
101
|
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
130
|
-
export declare const _testOnly:{
|
|
131
|
-
zeroByType:typeof zeroByType;
|
|
132
|
-
zeroByStatus:typeof zeroByStatus;
|
|
133
|
-
countNonEmptyLines:typeof countNonEmptyLines;
|
|
134
|
-
readHistoryStreamContents:typeof readHistoryStreamContents;
|
|
135
|
-
projectStatsDistributions:typeof projectStatsDistributions;
|
|
136
|
-
};
|
|
102
|
+
export declare const _testOnly:{zeroByType:typeof zeroByType;zeroByStatus:typeof zeroByStatus;countNonEmptyLines:typeof countNonEmptyLines;readHistoryStreamContents:typeof readHistoryStreamContents;projectStatsDistributions:typeof projectStatsDistributions;};
|
|
137
103
|
/** Implements run stats for the public runtime surface of this module. */
|
|
138
|
-
export declare function runStats(global:GlobalOptions,options?:StatsCommandOptions):Promise<StatsResult>;
|
|
139
|
-
export {};
|
|
104
|
+
export declare function runStats(global:GlobalOptions,options?:StatsCommandOptions):Promise<StatsResult>;export{};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type RuntimeFieldDefinitionResolved } from "../core/schema/runtime-schema.js";
|
|
1
|
+
import type{BulkItemMutation}from "./item-transaction.js";import{type RuntimeFieldDefinitionResolved}from "../core/schema/runtime-schema.js";
|
|
3
2
|
/** One existing workspace item considered by keyed upsert resolution. */
|
|
4
|
-
export interface ItemMutationUpsertCandidate
|
|
3
|
+
export interface ItemMutationUpsertCandidate{
|
|
5
4
|
/** Canonical id of the existing item. */
|
|
6
5
|
id:string;
|
|
7
6
|
/** Current value of the upsert key field on that item. */
|
|
8
|
-
value:unknown;
|
|
9
|
-
}
|
|
7
|
+
value:unknown;}
|
|
10
8
|
/** Keyed-upsert policy applied to create rows of one mutation document. */
|
|
11
|
-
export interface ItemMutationUpsertOptions
|
|
9
|
+
export interface ItemMutationUpsertOptions{
|
|
12
10
|
/** Item field (core or declared custom metadata key) whose value identifies an existing item. */
|
|
13
11
|
key:string;
|
|
14
12
|
/**
|
|
@@ -17,10 +15,9 @@ key:string;
|
|
|
17
15
|
* ids) are never candidates, so a replay of a committed import keeps its
|
|
18
16
|
* original create plan instead of mutating into updates.
|
|
19
17
|
*/
|
|
20
|
-
existing:readonly ItemMutationUpsertCandidate[];
|
|
21
|
-
}
|
|
18
|
+
existing:readonly ItemMutationUpsertCandidate[];}
|
|
22
19
|
/** Controls for resolving one versioned mutation document. */
|
|
23
|
-
export interface ResolveItemMutationDocumentOptions
|
|
20
|
+
export interface ResolveItemMutationDocumentOptions{
|
|
24
21
|
/** Stable transaction identity used to derive replay-safe create ids. */
|
|
25
22
|
transactionId:string;
|
|
26
23
|
/** Workspace item-id prefix. */
|
|
@@ -28,10 +25,9 @@ idPrefix:string;
|
|
|
28
25
|
/** Resolved schema fields that route document keys through declared option names. */
|
|
29
26
|
runtimeFields?:readonly RuntimeFieldDefinitionResolved[];
|
|
30
27
|
/** Optional keyed upsert: create rows matching one existing item become updates. */
|
|
31
|
-
upsert?:ItemMutationUpsertOptions;
|
|
32
|
-
}
|
|
28
|
+
upsert?:ItemMutationUpsertOptions;}
|
|
33
29
|
/** Input-ordered receipt row mapping one source record to its resolved mutation. */
|
|
34
|
-
export interface ResolvedItemMutationRow
|
|
30
|
+
export interface ResolvedItemMutationRow{
|
|
35
31
|
/** Zero-based position of the source record in the document. */
|
|
36
32
|
index:number;
|
|
37
33
|
/** Batch-local alias when the row declared or received one. */
|
|
@@ -43,10 +39,9 @@ op:BulkItemMutation["op"];
|
|
|
43
39
|
/** Whether keyed upsert turned a create row into an update of an existing item. */
|
|
44
40
|
upserted?:true;
|
|
45
41
|
/** Lifecycle warnings for this row when returned by a staged document preview. */
|
|
46
|
-
warnings?:readonly string[];
|
|
47
|
-
}
|
|
42
|
+
warnings?:readonly string[];}
|
|
48
43
|
/** Fully validated mutation document ready for preview or commit. */
|
|
49
|
-
export interface ResolvedItemMutationDocument
|
|
44
|
+
export interface ResolvedItemMutationDocument{
|
|
50
45
|
/** Versioned structured-input contract. */
|
|
51
46
|
schema_version:1;
|
|
52
47
|
/** Atomic mutations with every local reference replaced by a concrete id. */
|
|
@@ -54,8 +49,7 @@ mutations:BulkItemMutation[];
|
|
|
54
49
|
/** Batch-local alias to concrete-id receipt. */
|
|
55
50
|
references:Record<string,string>;
|
|
56
51
|
/** Input-ordered receipt mapping each source record to its resolved id and operation. */
|
|
57
|
-
rows:ResolvedItemMutationRow[];
|
|
58
|
-
}
|
|
52
|
+
rows:ResolvedItemMutationRow[];}
|
|
59
53
|
/**
|
|
60
54
|
* Derive a stable transaction id from the exact document bytes so that
|
|
61
55
|
* re-running an identical import resumes or replays the same journal instead
|
|
@@ -63,21 +57,19 @@ rows:ResolvedItemMutationRow[];
|
|
|
63
57
|
*/
|
|
64
58
|
export declare function deriveMutationTransactionId(input:string):string;
|
|
65
59
|
/** Validated transaction controls shared by atomic CLI and MCP adapters. */
|
|
66
|
-
export interface AtomicMutationControls
|
|
60
|
+
export interface AtomicMutationControls{
|
|
67
61
|
/** Compensation policy applied to created items when a later step fails. */
|
|
68
|
-
createCompensation?:"close"
|
|
62
|
+
createCompensation?:"close"|"delete";
|
|
69
63
|
/** Workspace transaction lock lifetime in seconds. */
|
|
70
64
|
lockTtlSeconds?:number;
|
|
71
65
|
/** Maximum time to wait for the workspace transaction lock. */
|
|
72
|
-
lockWaitMs?:number;
|
|
73
|
-
}
|
|
66
|
+
lockWaitMs?:number;}
|
|
74
67
|
/** Validate and normalize atomic transaction controls at every transport boundary. */
|
|
75
68
|
export declare function parseAtomicMutationControls(value:Record<string,unknown>):AtomicMutationControls;
|
|
76
69
|
/** Workspace schema context that widens the option keys a batch row may carry. */
|
|
77
|
-
export interface ParseItemMutationBatchOptions
|
|
70
|
+
export interface ParseItemMutationBatchOptions{
|
|
78
71
|
/** Declared schema fields whose option targets create/update rows may set. */
|
|
79
|
-
runtimeFields?:readonly RuntimeFieldDefinitionResolved[];
|
|
80
|
-
}
|
|
72
|
+
runtimeFields?:readonly RuntimeFieldDefinitionResolved[];}
|
|
81
73
|
/** Parse a JSON array, or an object containing `mutations`, into an atomic mutation batch. */
|
|
82
74
|
export declare function parseItemMutationBatch(input:string,parseOptions?:ParseItemMutationBatchOptions):BulkItemMutation[];
|
|
83
75
|
/** Canonical comparison form of an upsert key value: trimmed strings, otherwise key-sorted JSON. Shared by the planner and the lock-held commit guard. */
|
|
@@ -96,6 +88,6 @@ export declare function resolveItemMutationDocument(input:string,options:Resolve
|
|
|
96
88
|
* declared option names and aliases. Extension assignments retain raw strings
|
|
97
89
|
* and JSON containers, with explicit assignments applied after document values.
|
|
98
90
|
*/
|
|
99
|
-
export declare function itemDocumentToMutationOptions(input:string,mode:"create"
|
|
91
|
+
export declare function itemDocumentToMutationOptions(input:string,mode:"create"|"update",explicitOptions?:Record<string,unknown>,runtimeFields?:readonly RuntimeFieldDefinitionResolved[]):Record<string,unknown>;
|
|
100
92
|
/** Validate an already-decoded MCP mutation array through the same strict parser as CLI stdin. */
|
|
101
|
-
export declare function validateItemMutationRows(value:unknown):BulkItemMutation[];
|
|
93
|
+
export declare function validateItemMutationRows(value:unknown):BulkItemMutation[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Flush the durable telemetry queue immediately. */
|
|
2
|
-
export declare function flushTelemetryQueue():Promise<void>;
|
|
2
|
+
export declare function flushTelemetryQueue():Promise<void>;
|
package/dist/sdk/telemetry.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { resolveTelemetryEnvironmentPolicy } from "../core/telemetry/policy.js";
|
|
1
|
+
import type{GlobalOptions}from "../core/shared/command-types.js";import{resolveTelemetryEnvironmentPolicy}from "../core/telemetry/policy.js";
|
|
3
2
|
/** Public contract for telemetry subcommands, shared by SDK and presentation-layer consumers. */
|
|
4
|
-
export declare const TELEMETRY_SUBCOMMANDS:readonly
|
|
3
|
+
export declare const TELEMETRY_SUBCOMMANDS:readonly["status","flush","stats","clear"];
|
|
5
4
|
/** Restricts telemetry subcommand values accepted by command, SDK, and storage contracts. */
|
|
6
|
-
export type TelemetrySubcommand
|
|
5
|
+
export type TelemetrySubcommand=(typeof TELEMETRY_SUBCOMMANDS)[number];
|
|
7
6
|
/** Local telemetry configuration, queue, and most recent flush state. */
|
|
8
|
-
export interface TelemetryStatusSummary
|
|
7
|
+
export interface TelemetryStatusSummary{
|
|
9
8
|
/** Whether telemetry delivery is enabled. */
|
|
10
9
|
enabled:boolean;
|
|
11
10
|
/** Persisted preference before process consent overrides. */
|
|
@@ -27,16 +26,15 @@ queue_invalid_rows:number;
|
|
|
27
26
|
/** Queue file size in bytes. */
|
|
28
27
|
queue_size_bytes:number;
|
|
29
28
|
/** Most recent attempted flush time. */
|
|
30
|
-
last_attempted_flush_at:string
|
|
29
|
+
last_attempted_flush_at:string|null;
|
|
31
30
|
/** Most recent successful flush time. */
|
|
32
|
-
last_successful_flush_at:string
|
|
31
|
+
last_successful_flush_at:string|null;
|
|
33
32
|
/** Most recent failed flush time. */
|
|
34
|
-
last_failed_flush_at:string
|
|
33
|
+
last_failed_flush_at:string|null;
|
|
35
34
|
/** Most recent failed flush message. */
|
|
36
|
-
last_failed_flush_error:string
|
|
37
|
-
}
|
|
35
|
+
last_failed_flush_error:string|null;}
|
|
38
36
|
/** Precise receipt returned by a telemetry flush operation. */
|
|
39
|
-
export interface TelemetryFlushResult
|
|
37
|
+
export interface TelemetryFlushResult{
|
|
40
38
|
/** Stable action discriminator. */
|
|
41
39
|
action:"telemetry";
|
|
42
40
|
/** Stable flush discriminator. */
|
|
@@ -56,20 +54,16 @@ queue_drained:boolean;
|
|
|
56
54
|
/** Complete post-flush telemetry status. */
|
|
57
55
|
status:TelemetryStatusSummary;
|
|
58
56
|
/** ISO timestamp at which the receipt was assembled. */
|
|
59
|
-
generated_at:string;
|
|
60
|
-
}
|
|
57
|
+
generated_at:string;}
|
|
61
58
|
/** Documents the telemetry command options payload exchanged by command, SDK, and package integrations. */
|
|
62
|
-
export interface TelemetryCommandOptions
|
|
59
|
+
export interface TelemetryCommandOptions{
|
|
63
60
|
/** Value that configures or reports subcommand for this contract. */
|
|
64
61
|
subcommand?:string;
|
|
65
62
|
/** Value that configures or reports limit for this contract. */
|
|
66
|
-
limit?:string
|
|
67
|
-
}
|
|
63
|
+
limit?:string|number;}
|
|
68
64
|
/** Count one resolved deprecated command alias in consented, local-only telemetry state. */
|
|
69
65
|
export declare function recordDeprecatedAliasUsage(alias:string):Promise<boolean>;
|
|
70
66
|
/** Run telemetry flush with a precise completion receipt. */
|
|
71
|
-
export declare function runTelemetry(options:TelemetryCommandOptions
|
|
72
|
-
subcommand:"flush";
|
|
73
|
-
},global:GlobalOptions):Promise<TelemetryFlushResult>;
|
|
67
|
+
export declare function runTelemetry(options:TelemetryCommandOptions&{subcommand:"flush";},global:GlobalOptions):Promise<TelemetryFlushResult>;
|
|
74
68
|
/** Run any telemetry subcommand through the public runtime surface. */
|
|
75
|
-
export declare function runTelemetry(options:TelemetryCommandOptions,global:GlobalOptions):Promise<Record<string,unknown>>;
|
|
69
|
+
export declare function runTelemetry(options:TelemetryCommandOptions,global:GlobalOptions):Promise<Record<string,unknown>>;
|
package/dist/sdk/templates.d.ts
CHANGED
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
import type
|
|
2
|
-
type TemplateOptionValue = string | string[];
|
|
1
|
+
import type{GlobalOptions}from "../core/shared/command-types.js";type TemplateOptionValue=string|string[];
|
|
3
2
|
/** Restricts create template options values accepted by command, SDK, and storage contracts. */
|
|
4
|
-
export type CreateTemplateOptions
|
|
3
|
+
export type CreateTemplateOptions=Record<string,TemplateOptionValue>;
|
|
5
4
|
/** Template save inputs retain extension-defined string options and normalize priority before storage. */
|
|
6
|
-
export interface TemplatesSaveOptions extends Record<string,unknown>
|
|
5
|
+
export interface TemplatesSaveOptions extends Record<string,unknown>{
|
|
7
6
|
/** Integer 0..4, numeric string, or named priority accepted by create. Stored as a numeric string. */
|
|
8
|
-
priority?:string
|
|
9
|
-
}
|
|
7
|
+
priority?:string|number;}
|
|
10
8
|
/** Restricts template source values accepted by command, SDK, and storage contracts. */
|
|
11
|
-
export type TemplateSource
|
|
12
|
-
interface StoredCreateTemplateDocument {
|
|
13
|
-
name:string;
|
|
14
|
-
created_at:string;
|
|
15
|
-
updated_at:string;
|
|
16
|
-
options:CreateTemplateOptions;
|
|
17
|
-
}
|
|
9
|
+
export type TemplateSource="builtin"|"user";interface StoredCreateTemplateDocument{name:string;created_at:string;updated_at:string;options:CreateTemplateOptions;}
|
|
18
10
|
/** Public contract for test only, shared by SDK and presentation-layer consumers. */
|
|
19
|
-
export declare const _testOnly:{
|
|
20
|
-
normalizeTemplateName:typeof normalizeTemplateName;
|
|
21
|
-
extractTemplateOptions:typeof extractTemplateOptions;
|
|
22
|
-
parseStoredTemplateDocument:typeof parseStoredTemplateDocument;
|
|
23
|
-
builtinTemplateDocument:typeof builtinTemplateDocument;
|
|
24
|
-
readStoredTemplateDocument:typeof readStoredTemplateDocument;
|
|
25
|
-
};
|
|
11
|
+
export declare const _testOnly:{normalizeTemplateName:typeof normalizeTemplateName;extractTemplateOptions:typeof extractTemplateOptions;parseStoredTemplateDocument:typeof parseStoredTemplateDocument;builtinTemplateDocument:typeof builtinTemplateDocument;readStoredTemplateDocument:typeof readStoredTemplateDocument;};
|
|
26
12
|
/** Documents the templates save result payload exchanged by command, SDK, and package integrations. */
|
|
27
|
-
export interface TemplatesSaveResult
|
|
13
|
+
export interface TemplatesSaveResult{
|
|
28
14
|
/** Value that configures or reports name for this contract. */
|
|
29
15
|
name:string;
|
|
30
16
|
/** ISO 8601 timestamp recording when created occurred. */
|
|
@@ -34,10 +20,9 @@ updated_at:string;
|
|
|
34
20
|
/** Filesystem path used for path resolution. */
|
|
35
21
|
path:string;
|
|
36
22
|
/** Value that configures or reports options for this contract. */
|
|
37
|
-
options:CreateTemplateOptions;
|
|
38
|
-
}
|
|
23
|
+
options:CreateTemplateOptions;}
|
|
39
24
|
/** Documents the templates list result payload exchanged by command, SDK, and package integrations. */
|
|
40
|
-
export interface TemplatesListResult
|
|
25
|
+
export interface TemplatesListResult{
|
|
41
26
|
/** Value that configures or reports templates for this contract. */
|
|
42
27
|
templates:string[];
|
|
43
28
|
/** Value that configures or reports count for this contract. */
|
|
@@ -45,10 +30,9 @@ count:number;
|
|
|
45
30
|
/** Value that configures or reports builtin templates for this contract. */
|
|
46
31
|
builtin_templates:string[];
|
|
47
32
|
/** Value that configures or reports user templates for this contract. */
|
|
48
|
-
user_templates:string[];
|
|
49
|
-
}
|
|
33
|
+
user_templates:string[];}
|
|
50
34
|
/** Documents the templates show result payload exchanged by command, SDK, and package integrations. */
|
|
51
|
-
export interface TemplatesShowResult
|
|
35
|
+
export interface TemplatesShowResult{
|
|
52
36
|
/** Value that configures or reports name for this contract. */
|
|
53
37
|
name:string;
|
|
54
38
|
/** Value that configures or reports source for this contract. */
|
|
@@ -60,14 +44,10 @@ updated_at:string;
|
|
|
60
44
|
/** Filesystem path used for path resolution. */
|
|
61
45
|
path:string;
|
|
62
46
|
/** Value that configures or reports options for this contract. */
|
|
63
|
-
options:CreateTemplateOptions;
|
|
64
|
-
}
|
|
47
|
+
options:CreateTemplateOptions;}
|
|
65
48
|
declare function normalizeTemplateName(rawName:string):string;
|
|
66
49
|
/** Normalize core priority and collect compatible string/list options before any persistence. */
|
|
67
|
-
declare function extractTemplateOptions(rawOptions:Record<string,unknown>):CreateTemplateOptions;
|
|
68
|
-
declare function parseStoredTemplateDocument(raw:string,normalizedName:string):StoredCreateTemplateDocument;
|
|
69
|
-
declare function builtinTemplateDocument(normalizedName:string):StoredCreateTemplateDocument | null;
|
|
70
|
-
declare function readStoredTemplateDocument(pmRoot:string,normalizedName:string):Promise<StoredCreateTemplateDocument>;
|
|
50
|
+
declare function extractTemplateOptions(rawOptions:Record<string,unknown>):CreateTemplateOptions;declare function parseStoredTemplateDocument(raw:string,normalizedName:string):StoredCreateTemplateDocument;declare function builtinTemplateDocument(normalizedName:string):StoredCreateTemplateDocument|null;declare function readStoredTemplateDocument(pmRoot:string,normalizedName:string):Promise<StoredCreateTemplateDocument>;
|
|
71
51
|
/** Implements load create template options for the public runtime surface of this module. */
|
|
72
52
|
export declare function loadCreateTemplateOptions(pmRoot:string,rawTemplateName:string):Promise<CreateTemplateOptions>;
|
|
73
53
|
/** Implements run templates save for the public runtime surface of this module. */
|
|
@@ -75,5 +55,4 @@ export declare function runTemplatesSave(rawTemplateName:string,options:Template
|
|
|
75
55
|
/** Implements run templates list for the public runtime surface of this module. */
|
|
76
56
|
export declare function runTemplatesList(global:GlobalOptions):Promise<TemplatesListResult>;
|
|
77
57
|
/** Implements run templates show for the public runtime surface of this module. */
|
|
78
|
-
export declare function runTemplatesShow(rawTemplateName:string,global:GlobalOptions):Promise<TemplatesShowResult>;
|
|
79
|
-
export {};
|
|
58
|
+
export declare function runTemplatesShow(rawTemplateName:string,global:GlobalOptions):Promise<TemplatesShowResult>;export{};
|
package/dist/sdk/test/batch.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { ItemStatus,LinkedTest } from "../../types/index.js";
|
|
3
|
-
import { type LinkedTestFailureCategory,type TestRunResult } from "./execution.js";
|
|
1
|
+
import type{GlobalOptions}from "../../core/shared/command-types.js";import type{ItemStatus,LinkedTest}from "../../types/index.js";import{type LinkedTestFailureCategory,type TestRunResult}from "./execution.js";
|
|
4
2
|
/** Documents the test all command options payload exchanged by command, SDK, and package integrations. */
|
|
5
|
-
export interface TestAllCommandOptions
|
|
3
|
+
export interface TestAllCommandOptions{
|
|
6
4
|
/** Explicit author recorded on item test-run tracking events. */
|
|
7
5
|
author?:string;
|
|
8
6
|
/** Lifecycle state reported for status. */
|
|
@@ -42,10 +40,9 @@ requireAssertionsForPm?:boolean;
|
|
|
42
40
|
/** Value that configures or reports check context for this contract. */
|
|
43
41
|
checkContext?:boolean;
|
|
44
42
|
/** Value that configures or reports auto pm context for this contract. */
|
|
45
|
-
autoPmContext?:boolean;
|
|
46
|
-
}
|
|
43
|
+
autoPmContext?:boolean;}
|
|
47
44
|
/** Documents the test all item result payload exchanged by command, SDK, and package integrations. */
|
|
48
|
-
export interface TestAllItemResult
|
|
45
|
+
export interface TestAllItemResult{
|
|
49
46
|
/** Whether the operation completed without a blocking failure. */
|
|
50
47
|
ok:boolean;
|
|
51
48
|
/** Stable identifier used to reference this record across commands and storage. */
|
|
@@ -63,21 +60,13 @@ skipped:number;
|
|
|
63
60
|
/** Executes the results operation through the package runtime. */
|
|
64
61
|
run_results:TestRunResult[];
|
|
65
62
|
/** Value that configures or reports failure categories for this contract. */
|
|
66
|
-
failure_categories:Record<LinkedTestFailureCategory,number>;
|
|
67
|
-
}
|
|
63
|
+
failure_categories:Record<LinkedTestFailureCategory,number>;}
|
|
68
64
|
/** Documents the test all result payload exchanged by command, SDK, and package integrations. */
|
|
69
|
-
export interface TestAllResult
|
|
65
|
+
export interface TestAllResult{
|
|
70
66
|
/** Whether the operation completed without a blocking failure. */
|
|
71
67
|
ok:boolean;
|
|
72
68
|
/** Value that configures or reports totals for this contract. */
|
|
73
|
-
totals:{
|
|
74
|
-
items:number;
|
|
75
|
-
linked_tests:number;
|
|
76
|
-
passed:number;
|
|
77
|
-
failed:number;
|
|
78
|
-
skipped:number;
|
|
79
|
-
failure_categories:Record<LinkedTestFailureCategory,number>;
|
|
80
|
-
};
|
|
69
|
+
totals:{items:number;linked_tests:number;passed:number;failed:number;skipped:number;failure_categories:Record<LinkedTestFailureCategory,number>;};
|
|
81
70
|
/** Value that configures or reports failed for this contract. */
|
|
82
71
|
failed:number;
|
|
83
72
|
/** Value that configures or reports passed for this contract. */
|
|
@@ -91,12 +80,8 @@ fail_on_empty_test_run_triggered?:boolean;
|
|
|
91
80
|
/** Value that configures or reports warnings for this contract. */
|
|
92
81
|
warnings?:string[];
|
|
93
82
|
/** Value that configures or reports results for this contract. */
|
|
94
|
-
results:TestAllItemResult[];
|
|
95
|
-
}
|
|
83
|
+
results:TestAllItemResult[];}
|
|
96
84
|
/** Implements run test all for the public runtime surface of this module. */
|
|
97
|
-
export declare const runTestAll:(options:TestAllCommandOptions,global:GlobalOptions)
|
|
85
|
+
export declare const runTestAll:(options:TestAllCommandOptions,global:GlobalOptions)=> Promise<TestAllResult>;
|
|
98
86
|
/** Public contract for test only test all, shared by SDK and presentation-layer consumers. */
|
|
99
|
-
export declare const _testOnlyTestAll:{
|
|
100
|
-
buildLinkedTestKey:(test:LinkedTest) => string;
|
|
101
|
-
formatTrackingError:(error:unknown) => string;
|
|
102
|
-
};
|
|
87
|
+
export declare const _testOnlyTestAll:{buildLinkedTestKey:(test:LinkedTest)=> string;formatTrackingError:(error:unknown)=> string;};
|