@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
|
@@ -9,18 +9,17 @@
|
|
|
9
9
|
* and reports exact cost metadata so agents can budget follow-up reads
|
|
10
10
|
* without re-scanning the workspace.
|
|
11
11
|
*/
|
|
12
|
-
import
|
|
12
|
+
import{RelationshipGraph,type RelationshipEdge,type RelationshipKindDefinition,type RelationshipQueryResult,type RelationshipTraversalDirection}from "../relationships.js";
|
|
13
13
|
/** One detected relationship community. */
|
|
14
|
-
export interface RelationshipCommunity
|
|
14
|
+
export interface RelationshipCommunity{
|
|
15
15
|
/** Lexicographically smallest member id, naming the community. */
|
|
16
16
|
representative:string;
|
|
17
17
|
/** Total member count. */
|
|
18
18
|
size:number;
|
|
19
19
|
/** Sorted member node ids. */
|
|
20
|
-
members:string[];
|
|
21
|
-
}
|
|
20
|
+
members:string[];}
|
|
22
21
|
/** Bounded community-detection controls. */
|
|
23
|
-
export interface GraphCommunityOptions
|
|
22
|
+
export interface GraphCommunityOptions{
|
|
24
23
|
/** Registered relationship kinds whose edges define adjacency. */
|
|
25
24
|
kinds?:readonly string[];
|
|
26
25
|
/** Maximum label-propagation sweeps before reporting non-convergence; defaults to 16. */
|
|
@@ -28,26 +27,23 @@ maxIterations?:number;
|
|
|
28
27
|
/** Minimum member count for a reported community; defaults to 2. */
|
|
29
28
|
minSize?:number;
|
|
30
29
|
/** Abort signal checked once per sweep. */
|
|
31
|
-
signal?:AbortSignal;
|
|
32
|
-
}
|
|
30
|
+
signal?:AbortSignal;}
|
|
33
31
|
/** Deterministic label-propagation community analysis. */
|
|
34
|
-
export interface RelationshipCommunityAnalysis
|
|
32
|
+
export interface RelationshipCommunityAnalysis{
|
|
35
33
|
/** Detected communities, largest first and by representative within equal size. */
|
|
36
34
|
communities:RelationshipCommunity[];
|
|
37
35
|
/** Label-propagation sweeps executed. */
|
|
38
36
|
iterations:number;
|
|
39
37
|
/** Whether labels stabilized before the iteration bound stopped the sweep. */
|
|
40
|
-
converged:boolean;
|
|
41
|
-
}
|
|
38
|
+
converged:boolean;}
|
|
42
39
|
/** One stored edge implied by a longer same-family witness path. */
|
|
43
|
-
export interface RedundantRelationshipEdge
|
|
40
|
+
export interface RedundantRelationshipEdge{
|
|
44
41
|
/** The stored redundant edge in its original spelling. */
|
|
45
42
|
edge:RelationshipEdge;
|
|
46
43
|
/** Semantic-orientation witness node path proving the implication, endpoints inclusive. */
|
|
47
|
-
witness:string[];
|
|
48
|
-
}
|
|
44
|
+
witness:string[];}
|
|
49
45
|
/** Bounded redundancy-scan controls. */
|
|
50
|
-
export interface GraphRedundancyOptions
|
|
46
|
+
export interface GraphRedundancyOptions{
|
|
51
47
|
/** Directed ordering or hierarchy kinds to scan; defaults to every eligible registered kind. */
|
|
52
48
|
kinds?:readonly string[];
|
|
53
49
|
/** Maximum witness-path depth searched per edge; defaults to 8. */
|
|
@@ -55,19 +51,17 @@ maxDepth?:number;
|
|
|
55
51
|
/** Maximum reported redundant edges. */
|
|
56
52
|
limit?:number;
|
|
57
53
|
/** Abort signal checked once per scanned edge. */
|
|
58
|
-
signal?:AbortSignal;
|
|
59
|
-
}
|
|
54
|
+
signal?:AbortSignal;}
|
|
60
55
|
/** One reachable node with its immediate dominator and gating weight. */
|
|
61
|
-
export interface RelationshipDominatorRow
|
|
56
|
+
export interface RelationshipDominatorRow{
|
|
62
57
|
/** Reachable node id. */
|
|
63
58
|
id:string;
|
|
64
59
|
/** Immediate dominator appearing on every root-to-node path. */
|
|
65
60
|
idom:string;
|
|
66
61
|
/** Nodes strictly dominated by this node — its dominator-subtree size minus itself. */
|
|
67
|
-
dominatedCount:number;
|
|
68
|
-
}
|
|
62
|
+
dominatedCount:number;}
|
|
69
63
|
/** Bounded dominator-analysis controls. */
|
|
70
|
-
export interface GraphDominatorOptions
|
|
64
|
+
export interface GraphDominatorOptions{
|
|
71
65
|
/** Registered relationship kinds whose edges define reachability. */
|
|
72
66
|
kinds?:readonly string[];
|
|
73
67
|
/** Traversal direction relative to each visited node; defaults to "outgoing". */
|
|
@@ -75,17 +69,15 @@ direction?:RelationshipTraversalDirection;
|
|
|
75
69
|
/** Maximum reachability depth from the root as a non-negative integer. */
|
|
76
70
|
maxDepth?:number;
|
|
77
71
|
/** Abort signal checked once per processed node. */
|
|
78
|
-
signal?:AbortSignal;
|
|
79
|
-
}
|
|
72
|
+
signal?:AbortSignal;}
|
|
80
73
|
/** Dominator-tree analysis of one node's reachable subgraph. */
|
|
81
|
-
export interface RelationshipDominatorAnalysis
|
|
74
|
+
export interface RelationshipDominatorAnalysis{
|
|
82
75
|
/** Analyzed root id. */
|
|
83
76
|
root:string;
|
|
84
77
|
/** Reachable node count including the root. */
|
|
85
78
|
reachableCount:number;
|
|
86
79
|
/** Non-root reachable rows sorted by gating weight, then id. */
|
|
87
|
-
rows:RelationshipDominatorRow[];
|
|
88
|
-
}
|
|
80
|
+
rows:RelationshipDominatorRow[];}
|
|
89
81
|
/**
|
|
90
82
|
* Invoke `visit` once per canonical-kind-matched edge, skipping self-loops.
|
|
91
83
|
* Kind filters resolve to canonical spelling and match either the requested
|
|
@@ -94,7 +86,7 @@ rows:RelationshipDominatorRow[];
|
|
|
94
86
|
* directed and undirected families. This is the single edge-selection primitive
|
|
95
87
|
* shared by community, centrality, cut-structure, and degree builders.
|
|
96
88
|
*/
|
|
97
|
-
export declare function forEachMatchedRelationshipEdge(graph:RelationshipGraph,kinds:readonly string[]
|
|
89
|
+
export declare function forEachMatchedRelationshipEdge(graph:RelationshipGraph,kinds:readonly string[]|undefined,visit:(edge:RelationshipEdge,definition:RelationshipKindDefinition)=> void):void;
|
|
98
90
|
/**
|
|
99
91
|
* Detect communities with deterministic asynchronous label propagation: nodes
|
|
100
92
|
* are swept in sorted order, each adopting the most frequent label among its
|
|
@@ -109,10 +101,7 @@ export declare function isTransitiveKind(definition:RelationshipKindDefinition):
|
|
|
109
101
|
/** Family grouping key joining a directed kind with its inverse spelling. */
|
|
110
102
|
export declare function transitiveFamilyKey(definition:RelationshipKindDefinition):string;
|
|
111
103
|
/** Orient one transitive edge into its semantic forward direction. */
|
|
112
|
-
export declare function orientTransitiveEdge(edge:RelationshipEdge,definition:RelationshipKindDefinition):{
|
|
113
|
-
from:string;
|
|
114
|
-
to:string;
|
|
115
|
-
};
|
|
104
|
+
export declare function orientTransitiveEdge(edge:RelationshipEdge,definition:RelationshipKindDefinition):{from:string;to:string;};
|
|
116
105
|
/**
|
|
117
106
|
* Find stored edges implied by a longer path of the same semantic family —
|
|
118
107
|
* the transitive-reduction view of ordering and hierarchy relations. Each
|
|
@@ -130,4 +119,4 @@ export declare function findRedundantRelationshipEdges(graph:RelationshipGraph,o
|
|
|
130
119
|
* root's blast radius. Rows sort by gating weight, then id; `meta.truncated`
|
|
131
120
|
* reports when the `maxDepth` bound excluded reachable nodes.
|
|
132
121
|
*/
|
|
133
|
-
export declare function computeRelationshipDominators(graph:RelationshipGraph,root:string,options?:GraphDominatorOptions):RelationshipQueryResult<RelationshipDominatorAnalysis>;
|
|
122
|
+
export declare function computeRelationshipDominators(graph:RelationshipGraph,root:string,options?:GraphDominatorOptions):RelationshipQueryResult<RelationshipDominatorAnalysis>;
|
|
@@ -9,12 +9,9 @@
|
|
|
9
9
|
* endpoints as placeholder nodes so bounded traversals can explain absent work
|
|
10
10
|
* instead of silently dropping it.
|
|
11
11
|
*/
|
|
12
|
-
import type
|
|
13
|
-
import { RelationshipGraph,type RelationshipKindRegistry } from "../relationships.js";
|
|
14
|
-
import { type HierarchyIntegrityAnalysis } from "./hierarchy-integrity.js";
|
|
15
|
-
export { resolveWorkspaceRelationshipKindRegistry } from "./workspace-relationship-kind-registry.js";
|
|
12
|
+
import type{Dependency,ItemStatus}from "../../types/index.js";import{RelationshipGraph,type RelationshipKindRegistry}from "../relationships.js";import{type HierarchyIntegrityAnalysis}from "./hierarchy-integrity.js";export{resolveWorkspaceRelationshipKindRegistry}from "./workspace-relationship-kind-registry.js";
|
|
16
13
|
/** Minimal item shape inspected by dependency-reference governance. */
|
|
17
|
-
export interface DependencyReferenceHolder
|
|
14
|
+
export interface DependencyReferenceHolder{
|
|
18
15
|
/** Stable item identifier. */
|
|
19
16
|
id:string;
|
|
20
17
|
/** Lifecycle status used to separate actionable work from historical debt. */
|
|
@@ -24,12 +21,11 @@ parent?:string;
|
|
|
24
21
|
/** Optional legacy scalar blocker reference. */
|
|
25
22
|
blocked_by?:string;
|
|
26
23
|
/** Structured dependency edges. */
|
|
27
|
-
dependencies?:Dependency[];
|
|
28
|
-
}
|
|
24
|
+
dependencies?:Dependency[];}
|
|
29
25
|
/** Storage surface that contributed a normalized dependency reference. */
|
|
30
|
-
export type DependencyReferenceSource
|
|
26
|
+
export type DependencyReferenceSource="parent"|"blocked_by"|"dependency";
|
|
31
27
|
/** One normalized dependency reference whose target is absent from the tracker. */
|
|
32
|
-
export interface DanglingDependencyReference
|
|
28
|
+
export interface DanglingDependencyReference{
|
|
33
29
|
/** Item that owns the reference. */
|
|
34
30
|
holder_id:string;
|
|
35
31
|
/** Missing referenced item id or legacy sentinel. */
|
|
@@ -43,19 +39,17 @@ holder_status:ItemStatus;
|
|
|
43
39
|
/** Whether the holder is terminal and therefore historical, non-actionable debt. */
|
|
44
40
|
legacy_terminal:boolean;
|
|
45
41
|
/** Whether the target is the pre-structured-dependency `no-active-blocker` sentinel. */
|
|
46
|
-
no_active_blocker_sentinel:boolean;
|
|
47
|
-
}
|
|
42
|
+
no_active_blocker_sentinel:boolean;}
|
|
48
43
|
/** Actionable and historical partitions returned by dependency-reference governance. */
|
|
49
|
-
export interface DanglingDependencyReferenceSummary
|
|
44
|
+
export interface DanglingDependencyReferenceSummary{
|
|
50
45
|
/** Missing references held by active items; these may affect scheduling and should gate validation. */
|
|
51
46
|
active:DanglingDependencyReference[];
|
|
52
47
|
/** Missing references held only by terminal items; retained as informational history debt. */
|
|
53
48
|
legacy_terminal:DanglingDependencyReference[];
|
|
54
49
|
/** Legacy sentinel rows across active and terminal holders, called out separately from typo-like ids. */
|
|
55
|
-
no_active_blocker_sentinels:DanglingDependencyReference[];
|
|
56
|
-
}
|
|
50
|
+
no_active_blocker_sentinels:DanglingDependencyReference[];}
|
|
57
51
|
/** Normalize a graph target while removing the historical no-blocker marker. */
|
|
58
|
-
export declare function normalizeDependencyGraphTarget(target:unknown):string
|
|
52
|
+
export declare function normalizeDependencyGraphTarget(target:unknown):string|undefined;
|
|
59
53
|
/**
|
|
60
54
|
* Resolve the default workspace relationship-kind registry: the built-in kinds
|
|
61
55
|
* merged with every active extension-contributed relationship-kind
|
|
@@ -64,7 +58,7 @@ export declare function normalizeDependencyGraphTarget(target:unknown):string |
|
|
|
64
58
|
* every surface.
|
|
65
59
|
*/
|
|
66
60
|
/** One raw stored dependency row duplicated verbatim on a single holder. */
|
|
67
|
-
export interface DuplicateDependencyRow
|
|
61
|
+
export interface DuplicateDependencyRow{
|
|
68
62
|
/** Item that stores the duplicated row. */
|
|
69
63
|
holder_id:string;
|
|
70
64
|
/** Referenced target id in its first stored spelling. */
|
|
@@ -76,10 +70,9 @@ occurrences:number;
|
|
|
76
70
|
/** Current lifecycle status of the holder. */
|
|
77
71
|
holder_status:ItemStatus;
|
|
78
72
|
/** Whether the holder is terminal and the duplication is historical debt. */
|
|
79
|
-
legacy_terminal:boolean;
|
|
80
|
-
}
|
|
73
|
+
legacy_terminal:boolean;}
|
|
81
74
|
/** One holder whose scalar blocker and structured ordering row assert opposite precedence. */
|
|
82
|
-
export interface OrderingStorageContradiction
|
|
75
|
+
export interface OrderingStorageContradiction{
|
|
83
76
|
/** Item storing both contradictory representations. */
|
|
84
77
|
holder_id:string;
|
|
85
78
|
/** Target named by both the scalar blocker and structured dependency row. */
|
|
@@ -89,8 +82,7 @@ dependency_kind:string;
|
|
|
89
82
|
/** Current lifecycle status of the holder. */
|
|
90
83
|
holder_status:ItemStatus;
|
|
91
84
|
/** Whether the holder is terminal and the contradiction is historical debt. */
|
|
92
|
-
legacy_terminal:boolean;
|
|
93
|
-
}
|
|
85
|
+
legacy_terminal:boolean;}
|
|
94
86
|
/**
|
|
95
87
|
* Collect raw stored dependency rows whose exact identity — holder, kind, and
|
|
96
88
|
* case-insensitive target — appears more than once on one item. Graph
|
|
@@ -98,7 +90,7 @@ legacy_terminal:boolean;
|
|
|
98
90
|
* every projection built on it cannot see them; this pre-assembly scan is the
|
|
99
91
|
* only surface that reports the storage-layer defect.
|
|
100
92
|
*/
|
|
101
|
-
export declare function collectDuplicateDependencyRows(items:readonly DependencyReferenceHolder[],isTerminal?:(status:ItemStatus)
|
|
93
|
+
export declare function collectDuplicateDependencyRows(items:readonly DependencyReferenceHolder[],isTerminal?:(status:ItemStatus)=> boolean):DuplicateDependencyRow[];
|
|
102
94
|
/**
|
|
103
95
|
* Collect storage rows where `blocked_by: target` places the target before the
|
|
104
96
|
* holder while a same-target structured ordering dependency places the holder
|
|
@@ -106,7 +98,7 @@ export declare function collectDuplicateDependencyRows(items:readonly Dependency
|
|
|
106
98
|
* after graph assembly, so this pre-assembly evidence identifies the exact row
|
|
107
99
|
* to remove instead of reporting only strongly connected component members.
|
|
108
100
|
*/
|
|
109
|
-
export declare function collectOrderingStorageContradictions(items:readonly DependencyReferenceHolder[],isTerminal?:(status:ItemStatus)
|
|
101
|
+
export declare function collectOrderingStorageContradictions(items:readonly DependencyReferenceHolder[],isTerminal?:(status:ItemStatus)=> boolean,registry?:RelationshipKindRegistry):OrderingStorageContradiction[];
|
|
110
102
|
/**
|
|
111
103
|
* Classify missing hierarchy and dependency targets without mutating their holders.
|
|
112
104
|
*
|
|
@@ -114,20 +106,19 @@ export declare function collectOrderingStorageContradictions(items:readonly Depe
|
|
|
114
106
|
* schemas receive the same active-versus-historical behavior as the built-in
|
|
115
107
|
* closed/canceled statuses.
|
|
116
108
|
*/
|
|
117
|
-
export declare function collectDanglingDependencyReferences(items:readonly DependencyReferenceHolder[],isTerminal?:(status:ItemStatus)
|
|
109
|
+
export declare function collectDanglingDependencyReferences(items:readonly DependencyReferenceHolder[],isTerminal?:(status:ItemStatus)=> boolean):DanglingDependencyReferenceSummary;
|
|
118
110
|
/** Return unique real missing targets while excluding the legacy no-blocker sentinel. */
|
|
119
111
|
export declare function collectMissingDependencyTargetIds(dangling:DanglingDependencyReferenceSummary):string[];
|
|
120
112
|
/** Return unique explicitly external dependency targets in deterministic order. */
|
|
121
113
|
export declare function collectExternalDependencyTargetIds(items:readonly DependencyReferenceHolder[]):string[];
|
|
122
114
|
/** Item shape accepted by workspace relationship-graph assembly. */
|
|
123
|
-
export interface WorkspaceRelationshipItem extends DependencyReferenceHolder
|
|
115
|
+
export interface WorkspaceRelationshipItem extends DependencyReferenceHolder{
|
|
124
116
|
/** Human-readable title projected into per-node details. */
|
|
125
117
|
title:string;
|
|
126
118
|
/** Optional item type powering per-type coverage profiles and policies. */
|
|
127
|
-
type?:string;
|
|
128
|
-
}
|
|
119
|
+
type?:string;}
|
|
129
120
|
/** Compact node projection paired with the assembled graph. */
|
|
130
|
-
export interface WorkspaceRelationshipNodeDetails
|
|
121
|
+
export interface WorkspaceRelationshipNodeDetails{
|
|
131
122
|
/** Stable node identifier. */
|
|
132
123
|
id:string;
|
|
133
124
|
/** Human-readable node title, or a `[missing]` marker for absent endpoints. */
|
|
@@ -135,10 +126,9 @@ title:string;
|
|
|
135
126
|
/** Lifecycle status, or the `missing` marker status for absent endpoints. */
|
|
136
127
|
status:string;
|
|
137
128
|
/** Item type when the source item declared one; absent on missing placeholders. */
|
|
138
|
-
type?:string;
|
|
139
|
-
}
|
|
129
|
+
type?:string;}
|
|
140
130
|
/** Assembled workspace relationship graph with governance side-products. */
|
|
141
|
-
export interface WorkspaceRelationshipAssembly
|
|
131
|
+
export interface WorkspaceRelationshipAssembly{
|
|
142
132
|
/** Deterministic relationship graph including missing placeholder nodes. */
|
|
143
133
|
graph:RelationshipGraph;
|
|
144
134
|
/** Per-node compact details covering real and missing nodes. */
|
|
@@ -154,10 +144,9 @@ orderingContradictions?:OrderingStorageContradiction[];
|
|
|
154
144
|
/** Raw legacy alias rows grouped by accepted spelling before graph canonicalization. */
|
|
155
145
|
legacyAliasCounts:Record<string,number>;
|
|
156
146
|
/** Shared hierarchy analysis retained across ordinary object spread copies. */
|
|
157
|
-
hierarchyIntegrity?:HierarchyIntegrityAnalysis;
|
|
158
|
-
}
|
|
147
|
+
hierarchyIntegrity?:HierarchyIntegrityAnalysis;}
|
|
159
148
|
/** Read the hierarchy analysis paired with an assembly created by this module. */
|
|
160
|
-
export declare function getWorkspaceHierarchyIntegrity(assembly:WorkspaceRelationshipAssembly):HierarchyIntegrityAnalysis
|
|
149
|
+
export declare function getWorkspaceHierarchyIntegrity(assembly:WorkspaceRelationshipAssembly):HierarchyIntegrityAnalysis|undefined;
|
|
161
150
|
/** Count raw dependency rows that use a registered compatibility alias instead of its canonical kind. */
|
|
162
151
|
export declare function collectLegacyDependencyAliasCounts(items:readonly DependencyReferenceHolder[],registry?:RelationshipKindRegistry):Record<string,number>;
|
|
163
152
|
/**
|
|
@@ -167,4 +156,4 @@ export declare function collectLegacyDependencyAliasCounts(items:readonly Depend
|
|
|
167
156
|
* audits — so the full-workspace normalization cost is paid once instead of
|
|
168
157
|
* once per query surface.
|
|
169
158
|
*/
|
|
170
|
-
export declare function assembleWorkspaceRelationshipGraph(items:readonly WorkspaceRelationshipItem[],isTerminal?:(status:ItemStatus)
|
|
159
|
+
export declare function assembleWorkspaceRelationshipGraph(items:readonly WorkspaceRelationshipItem[],isTerminal?:(status:ItemStatus)=> boolean,registry?:RelationshipKindRegistry):WorkspaceRelationshipAssembly;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type RelationshipKindRegistry } from "../relationships.js";
|
|
3
|
-
import type { WorkspaceRelationshipAssembly,WorkspaceRelationshipItem } from "./assembly.js";
|
|
1
|
+
import type{ItemStatus}from "../../types/index.js";import{type RelationshipKindRegistry}from "../relationships.js";import type{WorkspaceRelationshipAssembly,WorkspaceRelationshipItem}from "./assembly.js";
|
|
4
2
|
/** Cache observability attached to graph result envelopes. */
|
|
5
|
-
export interface GraphCacheMetadata
|
|
3
|
+
export interface GraphCacheMetadata{
|
|
6
4
|
/** Truncated workspace graph fingerprint identifying the snapshot answered from. */
|
|
7
5
|
fingerprint:string;
|
|
8
6
|
/** Whether the workspace assembly was reused from cache. */
|
|
9
|
-
assembly:"hit"
|
|
7
|
+
assembly:"hit"|"miss";
|
|
10
8
|
/** Whether the full query result was reused from cache. */
|
|
11
|
-
result:"hit"
|
|
9
|
+
result:"hit"|"miss";
|
|
12
10
|
/** Durable cross-process index disposition: answered from it, missed it, or persistence disabled for this workspace. Absent on surfaces that never consult the durable index. */
|
|
13
|
-
durable?:"hit"
|
|
14
|
-
}
|
|
11
|
+
durable?:"hit"|"miss"|"off";}
|
|
15
12
|
/**
|
|
16
13
|
* Compute the deterministic workspace graph fingerprint for one item snapshot.
|
|
17
14
|
* Items are digested in sorted order so storage enumeration order never
|
|
@@ -19,9 +16,9 @@ durable?:"hit" | "miss" | "off";
|
|
|
19
16
|
* folded in so schema changes to lifecycle semantics invalidate cached
|
|
20
17
|
* assemblies even when raw statuses are unchanged.
|
|
21
18
|
*/
|
|
22
|
-
export declare function computeWorkspaceGraphFingerprint(items:readonly WorkspaceRelationshipItem[],isTerminal?:(status:ItemStatus)
|
|
19
|
+
export declare function computeWorkspaceGraphFingerprint(items:readonly WorkspaceRelationshipItem[],isTerminal?:(status:ItemStatus)=> boolean,registry?:RelationshipKindRegistry):string;
|
|
23
20
|
/** One resolved cache lookup bound to a workspace snapshot. */
|
|
24
|
-
export interface WorkspaceGraphCacheLookup
|
|
21
|
+
export interface WorkspaceGraphCacheLookup{
|
|
25
22
|
/** The (possibly reused) workspace assembly. */
|
|
26
23
|
assembly:WorkspaceRelationshipAssembly;
|
|
27
24
|
/** Whether the assembly came from cache instead of being rebuilt. */
|
|
@@ -35,11 +32,7 @@ fingerprint:string;
|
|
|
35
32
|
* returns a fresh clone of the stored entry. Callers must not rely on the
|
|
36
33
|
* miss and hit paths returning the same object identity.
|
|
37
34
|
*/
|
|
38
|
-
memoize<T>(queryKey:string,compute:()
|
|
39
|
-
value:T;
|
|
40
|
-
reused:boolean;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
35
|
+
memoize<T>(queryKey:string,compute:()=> T):{value:T;reused:boolean;};}
|
|
43
36
|
/**
|
|
44
37
|
* Fingerprint-keyed cache of workspace relationship assemblies and memoized
|
|
45
38
|
* deterministic query results. One entry is retained per workspace key; a
|
|
@@ -47,23 +40,18 @@ reused:boolean;
|
|
|
47
40
|
* results. Memoized values are structured-cloned on store and on read so
|
|
48
41
|
* neither the producer nor any consumer can mutate cached state.
|
|
49
42
|
*/
|
|
50
|
-
export declare class WorkspaceGraphCache
|
|
51
|
-
#private;
|
|
43
|
+
export declare class WorkspaceGraphCache{#private;
|
|
52
44
|
/** Create a cache, optionally bounding workspaces and memoized results. */
|
|
53
|
-
constructor(options?:{
|
|
54
|
-
maxResultsPerWorkspace?:number;
|
|
55
|
-
maxWorkspaces?:number;
|
|
56
|
-
});
|
|
45
|
+
constructor(options?:{maxResultsPerWorkspace?:number;maxWorkspaces?:number;});
|
|
57
46
|
/**
|
|
58
47
|
* Resolve the cached assembly for one workspace key and fingerprint,
|
|
59
48
|
* building and storing it on miss. The returned lookup exposes snapshot-
|
|
60
49
|
* scoped memoization for query results derived from the same assembly.
|
|
61
50
|
*/
|
|
62
|
-
lookup(key:string,fingerprint:string,build:()
|
|
51
|
+
lookup(key:string,fingerprint:string,build:()=> WorkspaceRelationshipAssembly):WorkspaceGraphCacheLookup;
|
|
63
52
|
/** Drop every cached workspace entry and memoized result. */
|
|
64
|
-
clear():void;
|
|
65
|
-
}
|
|
53
|
+
clear():void;}
|
|
66
54
|
/** Return the process-wide shared workspace graph cache. */
|
|
67
55
|
export declare function workspaceGraphCache():WorkspaceGraphCache;
|
|
68
56
|
/** Reset the process-wide shared workspace graph cache (tests and long-lived hosts). */
|
|
69
|
-
export declare function resetWorkspaceGraphCache():void;
|
|
57
|
+
export declare function resetWorkspaceGraphCache():void;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { RelationshipKindRegistry } from "../relationships.js";
|
|
1
|
+
import type{Dependency}from "../../types/index.js";import type{RelationshipKindRegistry}from "../relationships.js";
|
|
3
2
|
/** Minimal immutable item projection needed to compare relationship cardinality. */
|
|
4
|
-
export interface RelationshipCardinalityItem
|
|
3
|
+
export interface RelationshipCardinalityItem{
|
|
5
4
|
/** Canonical workspace item identity. */
|
|
6
5
|
id:string;
|
|
7
6
|
/** Stored relationship rows, including their canonical kind and endpoint. */
|
|
8
|
-
dependencies?:readonly Pick<Dependency,"id"
|
|
9
|
-
}
|
|
7
|
+
dependencies?:readonly Pick<Dependency,"id"|"kind">[];}
|
|
10
8
|
/** Share the workspace integrity lock for every kind that constrains edge multiplicity. */
|
|
11
9
|
export declare function relationshipKindNeedsIntegrityLock(kind:string,registry:RelationshipKindRegistry):boolean;
|
|
12
10
|
/** Reject newly introduced non-hierarchy cardinality debt while allowing unchanged debt and repairs. */
|
|
13
|
-
export declare function assertNonHierarchyCardinalityMutationAllowed(before:readonly RelationshipCardinalityItem[],after:readonly RelationshipCardinalityItem[],registry?:RelationshipKindRegistry):void;
|
|
11
|
+
export declare function assertNonHierarchyCardinalityMutationAllowed(before:readonly RelationshipCardinalityItem[],after:readonly RelationshipCardinalityItem[],registry?:RelationshipKindRegistry):void;
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* (parallel edges and self-loops collapsed) so a pair connected by any kind
|
|
12
12
|
* counts once.
|
|
13
13
|
*/
|
|
14
|
-
import
|
|
14
|
+
import{RelationshipGraph,type RelationshipQueryResult}from "../relationships.js";
|
|
15
15
|
/** One node ranked by structural centrality with directed fan-in/fan-out. */
|
|
16
|
-
export interface RelationshipCentralityRow
|
|
16
|
+
export interface RelationshipCentralityRow{
|
|
17
17
|
/** Node id. */
|
|
18
18
|
id:string;
|
|
19
19
|
/** Undirected unique-neighbor degree over selected kinds. */
|
|
@@ -25,45 +25,39 @@ outDegree:number;
|
|
|
25
25
|
/** Shortest-path betweenness centrality, rounded to six decimals. */
|
|
26
26
|
betweenness:number;
|
|
27
27
|
/** Wasserman–Faust closeness centrality, rounded to six decimals. */
|
|
28
|
-
closeness:number;
|
|
29
|
-
}
|
|
28
|
+
closeness:number;}
|
|
30
29
|
/** Bounded centrality-analysis controls. */
|
|
31
|
-
export interface GraphCentralityOptions
|
|
30
|
+
export interface GraphCentralityOptions{
|
|
32
31
|
/** Registered relationship kinds whose edges define adjacency. */
|
|
33
32
|
kinds?:readonly string[];
|
|
34
33
|
/** Abort signal checked once per source sweep. */
|
|
35
|
-
signal?:AbortSignal;
|
|
36
|
-
}
|
|
34
|
+
signal?:AbortSignal;}
|
|
37
35
|
/** Deterministic centrality ranking over the undirected knowledge graph. */
|
|
38
|
-
export interface RelationshipCentralityAnalysis
|
|
36
|
+
export interface RelationshipCentralityAnalysis{
|
|
39
37
|
/** Total indexed graph nodes. */
|
|
40
38
|
nodeCount:number;
|
|
41
39
|
/** Simple undirected edge count over selected kinds. */
|
|
42
40
|
edgeCount:number;
|
|
43
41
|
/** Node rows ranked by betweenness, then degree, then id. */
|
|
44
|
-
rows:RelationshipCentralityRow[];
|
|
45
|
-
}
|
|
42
|
+
rows:RelationshipCentralityRow[];}
|
|
46
43
|
/** One undirected bridge edge whose removal disconnects its endpoints. */
|
|
47
|
-
export interface RelationshipBridge
|
|
44
|
+
export interface RelationshipBridge{
|
|
48
45
|
/** Lexicographically smaller endpoint. */
|
|
49
46
|
source:string;
|
|
50
47
|
/** Lexicographically larger endpoint. */
|
|
51
|
-
target:string;
|
|
52
|
-
}
|
|
48
|
+
target:string;}
|
|
53
49
|
/** Bounded cut-structure controls. */
|
|
54
|
-
export interface GraphCutStructureOptions
|
|
50
|
+
export interface GraphCutStructureOptions{
|
|
55
51
|
/** Registered relationship kinds whose edges define adjacency. */
|
|
56
52
|
kinds?:readonly string[];
|
|
57
53
|
/** Abort signal checked once per depth-first step. */
|
|
58
|
-
signal?:AbortSignal;
|
|
59
|
-
}
|
|
54
|
+
signal?:AbortSignal;}
|
|
60
55
|
/** Articulation points and bridges of the undirected knowledge graph. */
|
|
61
|
-
export interface RelationshipCutStructure
|
|
56
|
+
export interface RelationshipCutStructure{
|
|
62
57
|
/** Sorted articulation-point ids — nodes whose removal adds components. */
|
|
63
58
|
articulationPoints:string[];
|
|
64
59
|
/** Bridge edges sorted by source then target. */
|
|
65
|
-
bridges:RelationshipBridge[];
|
|
66
|
-
}
|
|
60
|
+
bridges:RelationshipBridge[];}
|
|
67
61
|
/**
|
|
68
62
|
* Compute exact shortest-path betweenness (Brandes), Wasserman–Faust closeness,
|
|
69
63
|
* undirected degree, and directed fan-in/fan-out for every node over the simple
|
|
@@ -79,4 +73,4 @@ export declare function computeRelationshipCentrality(graph:RelationshipGraph,op
|
|
|
79
73
|
* is an edge whose removal does the same — both are single points of failure in
|
|
80
74
|
* the relationship graph. Results are deterministic and exact.
|
|
81
75
|
*/
|
|
82
|
-
export declare function findRelationshipCutStructure(graph:RelationshipGraph,options?:GraphCutStructureOptions):RelationshipQueryResult<RelationshipCutStructure>;
|
|
76
|
+
export declare function findRelationshipCutStructure(graph:RelationshipGraph,options?:GraphCutStructureOptions):RelationshipQueryResult<RelationshipCutStructure>;
|
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
* authors can run the same semantic contract against an in-memory adapter,
|
|
6
6
|
* Neo4j, a remote service, or another durable graph backend.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import { type RelationshipEdge } from "../relationships.js";
|
|
8
|
+
import{type RelationshipGraphAdapter}from "./adapter.js";import{type RelationshipEdge}from "../relationships.js";
|
|
10
9
|
/** Supported deterministic scale-fixture topologies. */
|
|
11
|
-
export type RelationshipGraphScaleTopology
|
|
10
|
+
export type RelationshipGraphScaleTopology="chain"|"star"|"disconnected";
|
|
12
11
|
/** Controls for a lazy deterministic graph scale fixture. */
|
|
13
|
-
export interface RelationshipGraphScaleFixtureOptions
|
|
12
|
+
export interface RelationshipGraphScaleFixtureOptions{
|
|
14
13
|
/** Number of nodes yielded by the fixture. */
|
|
15
14
|
nodeCount:number;
|
|
16
15
|
/** Shape of generated edges. */
|
|
@@ -20,10 +19,9 @@ kind?:string;
|
|
|
20
19
|
/** Emit one edge per stride; large values model sparse million-node graphs. */
|
|
21
20
|
edgeStride?:number;
|
|
22
21
|
/** Stable node-id prefix. */
|
|
23
|
-
idPrefix?:string;
|
|
24
|
-
}
|
|
22
|
+
idPrefix?:string;}
|
|
25
23
|
/** Reusable lazy node/edge fixture plus exact cardinalities. */
|
|
26
|
-
export interface RelationshipGraphScaleFixture
|
|
24
|
+
export interface RelationshipGraphScaleFixture{
|
|
27
25
|
/** Exact node count. */
|
|
28
26
|
node_count:number;
|
|
29
27
|
/** Exact generated edge count. */
|
|
@@ -33,19 +31,17 @@ edge_basis:"fixture_generated";
|
|
|
33
31
|
/** Reiterable lazy node identifiers. */
|
|
34
32
|
nodes:Iterable<string>;
|
|
35
33
|
/** Reiterable lazy relationship edges. */
|
|
36
|
-
edges:Iterable<RelationshipEdge>;
|
|
37
|
-
}
|
|
34
|
+
edges:Iterable<RelationshipEdge>;}
|
|
38
35
|
/** Create a lazy deterministic scale fixture without touching tracker storage. */
|
|
39
36
|
export declare function createRelationshipGraphScaleFixture(options:RelationshipGraphScaleFixtureOptions):RelationshipGraphScaleFixture;
|
|
40
37
|
/** One named conformance assertion completed against an adapter. */
|
|
41
|
-
export interface RelationshipGraphAdapterConformanceCase
|
|
38
|
+
export interface RelationshipGraphAdapterConformanceCase{
|
|
42
39
|
/** Stable assertion identifier. */
|
|
43
40
|
name:string;
|
|
44
41
|
/** Successful case status. */
|
|
45
|
-
passed:true;
|
|
46
|
-
}
|
|
42
|
+
passed:true;}
|
|
47
43
|
/** Compact successful adapter-conformance report. */
|
|
48
|
-
export interface RelationshipGraphAdapterConformanceReport
|
|
44
|
+
export interface RelationshipGraphAdapterConformanceReport{
|
|
49
45
|
/** Adapter identifier. */
|
|
50
46
|
adapter:string;
|
|
51
47
|
/** Isolated workspace key exercised by the run. */
|
|
@@ -53,14 +49,11 @@ workspace:string;
|
|
|
53
49
|
/** Completed semantic assertions. */
|
|
54
50
|
cases:readonly RelationshipGraphAdapterConformanceCase[];
|
|
55
51
|
/** Whether optional clear semantics were tested. */
|
|
56
|
-
clear_supported:boolean;
|
|
57
|
-
}
|
|
52
|
+
clear_supported:boolean;}
|
|
58
53
|
/**
|
|
59
54
|
* Exercise empty reads, atomic replacement, isolated reads, idempotent sync,
|
|
60
55
|
* compare-and-swap conflicts, replacement visibility, and optional clearing.
|
|
61
56
|
*/
|
|
62
|
-
export declare function assertRelationshipGraphAdapterConformance(adapter:RelationshipGraphAdapter,options?:{
|
|
63
|
-
workspace?:string;
|
|
64
|
-
}):Promise<RelationshipGraphAdapterConformanceReport>;
|
|
57
|
+
export declare function assertRelationshipGraphAdapterConformance(adapter:RelationshipGraphAdapter,options?:{workspace?:string;}):Promise<RelationshipGraphAdapterConformanceReport>;
|
|
65
58
|
/** Run the public conformance contract against the built-in reference adapter. */
|
|
66
|
-
export declare function assertMemoryRelationshipGraphAdapterConformance(workspace?:string):Promise<RelationshipGraphAdapterConformanceReport>;
|
|
59
|
+
export declare function assertMemoryRelationshipGraphAdapterConformance(workspace?:string):Promise<RelationshipGraphAdapterConformanceReport>;
|
|
@@ -4,18 +4,17 @@
|
|
|
4
4
|
* estimates are durations, not resource capacity or business-calendar promises.
|
|
5
5
|
* A bounded Kahn pass isolates cycles and propagates unknown durations explicitly.
|
|
6
6
|
*/
|
|
7
|
-
import type
|
|
7
|
+
import type{RelationshipGraph}from "../relationships.js";
|
|
8
8
|
/** Recorded inputs; absent estimates never imply zero duration. */
|
|
9
|
-
export interface DeadlineScheduleItem
|
|
9
|
+
export interface DeadlineScheduleItem{
|
|
10
10
|
/** Canonical graph identifier. */
|
|
11
11
|
id:string;
|
|
12
12
|
/** Recorded elapsed-minute duration. */
|
|
13
13
|
estimated_minutes?:number;
|
|
14
14
|
/** Authored ISO deadline interpreted as a finish constraint. */
|
|
15
|
-
deadline?:string;
|
|
16
|
-
}
|
|
15
|
+
deadline?:string;}
|
|
17
16
|
/** Deterministic analysis controls and hard work/output bounds. */
|
|
18
|
-
export interface DeadlineScheduleOptions
|
|
17
|
+
export interface DeadlineScheduleOptions{
|
|
19
18
|
/** Explicit clock instant; defaults to the invocation time. */
|
|
20
19
|
now?:string;
|
|
21
20
|
/** Input nodes plus edges plus items ceiling; also caps total retained path identifiers. */
|
|
@@ -23,10 +22,9 @@ maxWork?:number;
|
|
|
23
22
|
/** Maximum rows, residual samples, findings, and identifiers per finding path. */
|
|
24
23
|
limit?:number;
|
|
25
24
|
/** Cooperative cancellation checked during graph passes. */
|
|
26
|
-
signal?:AbortSignal;
|
|
27
|
-
}
|
|
25
|
+
signal?:AbortSignal;}
|
|
28
26
|
/** One derived finish constraint and its estimated temporal slack. */
|
|
29
|
-
export interface DeadlineScheduleRow
|
|
27
|
+
export interface DeadlineScheduleRow{
|
|
30
28
|
/** Constrained item identifier. */
|
|
31
29
|
id:string;
|
|
32
30
|
/** Controlling authored deadline's item identifier. */
|
|
@@ -34,17 +32,15 @@ deadline_id:string;
|
|
|
34
32
|
/** Derived latest start; never written to the authored item. */
|
|
35
33
|
latest_start:string;
|
|
36
34
|
/** Latest start minus earliest possible start, or null for unknown prerequisites. */
|
|
37
|
-
slack_minutes:number
|
|
38
|
-
}
|
|
35
|
+
slack_minutes:number|null;}
|
|
39
36
|
/** Explicit evidence that this item's schedule could not be established. */
|
|
40
|
-
export interface DeadlineScheduleResidual
|
|
37
|
+
export interface DeadlineScheduleResidual{
|
|
41
38
|
/** Unscheduled or incompletely scheduled item. */
|
|
42
39
|
id:string;
|
|
43
40
|
/** Why no feasibility assertion is possible. */
|
|
44
|
-
reason:"unknown_estimate"
|
|
45
|
-
}
|
|
41
|
+
reason:"unknown_estimate"|"unknown_predecessor_estimate"|"cycle_or_gated_by_cycle"|"invalid_deadline"|"date_range_exceeded";}
|
|
46
42
|
/** One authored deadline that cannot accommodate its longest prerequisite chain. */
|
|
47
|
-
export interface DeadlineOvercommitment
|
|
43
|
+
export interface DeadlineOvercommitment{
|
|
48
44
|
/** Item carrying the authored deadline. */
|
|
49
45
|
deadline_id:string;
|
|
50
46
|
/** Authored finish constraint. */
|
|
@@ -54,10 +50,9 @@ shortfall_minutes:number;
|
|
|
54
50
|
/** Bounded suffix of the controlling prerequisite chain, in execution order. */
|
|
55
51
|
path:string[];
|
|
56
52
|
/** Whether the chain exceeds the path output bound. */
|
|
57
|
-
path_truncated:boolean;
|
|
58
|
-
}
|
|
53
|
+
path_truncated:boolean;}
|
|
59
54
|
/** Bounded derived schedule, with completeness separate from output truncation. */
|
|
60
|
-
export interface DeadlineScheduleResult
|
|
55
|
+
export interface DeadlineScheduleResult{
|
|
61
56
|
/** Reproducible clock used for earliest starts. */
|
|
62
57
|
as_of:string;
|
|
63
58
|
/** Explicit provenance distinguishing computed constraints from authored dates. */
|
|
@@ -79,12 +74,11 @@ rows:DeadlineScheduleRow[];
|
|
|
79
74
|
/** Bounded incomplete-input and cycle samples. */
|
|
80
75
|
residuals:DeadlineScheduleResidual[];
|
|
81
76
|
/** Bounded deadline shortfall evidence. */
|
|
82
|
-
overcommitted:DeadlineOvercommitment[];
|
|
83
|
-
}
|
|
77
|
+
overcommitted:DeadlineOvercommitment[];}
|
|
84
78
|
/**
|
|
85
79
|
* Derive estimated latest starts and deadline shortfalls without mutating inputs.
|
|
86
80
|
* Work is O(V+E) plus at most maxWork total finding-path identifiers. Unknown predecessors
|
|
87
81
|
* invalidate earliest finish; unknown successors cannot transfer dated bounds.
|
|
88
82
|
* Date-only ISO values denote UTC midnight, consistently with Date.parse.
|
|
89
83
|
*/
|
|
90
|
-
export declare function deriveRelationshipDeadlines(graph:RelationshipGraph,items:readonly DeadlineScheduleItem[],options?:DeadlineScheduleOptions):DeadlineScheduleResult;
|
|
84
|
+
export declare function deriveRelationshipDeadlines(graph:RelationshipGraph,items:readonly DeadlineScheduleItem[],options?:DeadlineScheduleOptions):DeadlineScheduleResult;
|