@unbrained/pm-cli 2026.7.17 → 2026.7.18
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 +2 -2
- package/CHANGELOG.md +13 -0
- package/dist/cli/commands/close.d.ts +1 -1
- package/dist/cli/commands/close.js +3 -3
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/completion.js +47 -5
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/context.d.ts +2 -2
- package/dist/cli/commands/context.js +42 -28
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/contracts.js +5 -3
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/graph.d.ts +7 -0
- package/dist/cli/commands/graph.js +11 -0
- package/dist/cli/commands/graph.js.map +1 -0
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.js +3 -2
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/next.d.ts +1 -1
- package/dist/cli/commands/next.js +3 -3
- package/dist/cli/commands/next.js.map +1 -1
- package/dist/cli/main.js +3 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +49 -7
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +7 -3
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli-bundle/bundle-manifest.json +157 -149
- package/dist/cli-bundle/chunks/{chunk-N7I2DGLP.js → chunk-35FHWD4C.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-37V5MXAU.js.map → chunk-35FHWD4C.js.map} +1 -7
- package/dist/cli-bundle/chunks/{chunk-MSGETE6I.js → chunk-3CUQZNQ6.js} +67 -509
- package/dist/cli-bundle/chunks/chunk-3CUQZNQ6.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-3QDR6ZLU.js +800 -0
- package/dist/cli-bundle/chunks/chunk-3QDR6ZLU.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-QNUAZYGW.js → chunk-43UMFKCK.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-HF63SBLC.js → chunk-6VHUGVNP.js} +39 -16
- package/dist/cli-bundle/chunks/chunk-6VHUGVNP.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-B6SH2YNN.js → chunk-7R6UIHYY.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NCAFUBJX.js → chunk-7UCY6DR5.js} +183 -12
- package/dist/cli-bundle/chunks/chunk-7UCY6DR5.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-23TCGBRK.js → chunk-ADXDCAKP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7LTCLTRG.js → chunk-AXRT7K5V.js} +16 -3
- package/dist/cli-bundle/chunks/chunk-AXRT7K5V.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-P56LKFQX.js → chunk-BDA35QG5.js} +34 -4
- package/dist/cli-bundle/chunks/chunk-BDA35QG5.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-2MPMKJF2.js → chunk-DHNG452T.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AFSV5HBB.js → chunk-E4FXM2XB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QKVVV6QO.js → chunk-EWIT5WIC.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-EX7OQT3Y.js +783 -0
- package/dist/cli-bundle/chunks/chunk-EX7OQT3Y.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-LLODAQMP.js → chunk-F3VC3GOV.js} +41 -18
- package/dist/cli-bundle/chunks/chunk-F3VC3GOV.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-S46R2M3W.js → chunk-GKPCTQYG.js} +1709 -5
- package/dist/cli-bundle/chunks/chunk-GKPCTQYG.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-HXVHBERL.js → chunk-HPAYDSR2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XNPMDSQQ.js → chunk-HYTOJW2Q.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-V3VBXQQV.js → chunk-I3INI567.js} +516 -429
- package/dist/cli-bundle/chunks/chunk-I3INI567.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-V7MP6YTN.js → chunk-IL5SPRMH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YQCWK2MB.js → chunk-L5BTTDU5.js} +68 -503
- package/dist/cli-bundle/chunks/chunk-L5BTTDU5.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-SIJV365F.js → chunk-NCVT6XEL.js} +17 -4
- package/dist/cli-bundle/chunks/chunk-NCVT6XEL.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-DCC2AQBD.js → chunk-OGVTB5VO.js} +32 -31
- package/dist/cli-bundle/chunks/chunk-OGVTB5VO.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6XAZB6SE.js → chunk-QPGQNLPI.js} +1660 -7
- package/dist/cli-bundle/chunks/chunk-QPGQNLPI.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-KOEZCHRF.js → chunk-QRZNCRNA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-G6KM4YKY.js → chunk-RXPQ5Q23.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7CTQ7WW5.js → chunk-SIPOACV5.js} +514 -427
- package/dist/cli-bundle/chunks/chunk-SIPOACV5.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-XYJK6GIQ.js → chunk-TGBTLGPX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-37V5MXAU.js → chunk-TLWJP5BF.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-TLWJP5BF.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-3D4YVTNG.js → chunk-TZAE66GQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-S6FF7VW6.js → chunk-WQXRZMFN.js} +187 -16
- package/dist/cli-bundle/chunks/chunk-WQXRZMFN.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-SPFZV2GR.js → chunk-XPUTSGJU.js} +32 -31
- package/dist/cli-bundle/chunks/chunk-XPUTSGJU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-CFSUNEL7.js → chunk-XWBD6DSR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-MNV226E4.js → chunk-XWYQ2LT4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-I7GY4X6Y.js → chunk-YFE7JHX3.js} +26 -5
- package/dist/cli-bundle/chunks/chunk-YFE7JHX3.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FZGM3PNA.js → chunk-YIIIAKCE.js} +2 -2
- package/dist/cli-bundle/chunks/{close-BEP7MHF3.js → close-GPD7DTJV.js} +3 -3
- package/dist/cli-bundle/chunks/{close-Y6QFUJQN.js → close-X3CF6FQP.js} +3 -3
- package/dist/cli-bundle/chunks/{close-many-JJFW7KTT.js → close-many-J7A5EHOQ.js} +5 -5
- package/dist/cli-bundle/chunks/{close-many-QJ6FKJUE.js → close-many-NQLYGPYW.js} +5 -5
- package/dist/cli-bundle/chunks/{deps-EVTOQMKW.js → deps-MQ4ZIGZB.js} +13 -4
- package/dist/cli-bundle/chunks/{deps-5NC4IZH7.js → deps-NIIKXLPB.js} +13 -4
- package/dist/cli-bundle/chunks/{profile-U2B6Y7GE.js → profile-AVCIIZID.js} +3 -3
- package/dist/cli-bundle/chunks/{profile-AGUKS52S.js → profile-LFYO3HHX.js} +3 -3
- package/dist/cli-bundle/chunks/{register-list-query-A5KRJ5J2.js → register-list-query-MZUF2EEC.js} +41 -13
- package/dist/cli-bundle/chunks/register-list-query-MZUF2EEC.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-NEYP3TXO.js → register-list-query-UKMF55FT.js} +40 -12
- package/dist/cli-bundle/chunks/register-list-query-UKMF55FT.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-6LOPBAHC.js → register-mutation-2PBW2GEX.js} +15 -13
- package/dist/cli-bundle/chunks/register-mutation-2PBW2GEX.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-GCZOALNJ.js → register-mutation-T6RVNJC4.js} +14 -12
- package/dist/cli-bundle/chunks/{register-mutation-GCZOALNJ.js.map → register-mutation-T6RVNJC4.js.map} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-6ZZIF27A.js → register-operations-KHZYR6MG.js} +11 -11
- package/dist/cli-bundle/chunks/{register-operations-REDIAEGI.js → register-operations-WPQ2LWZJ.js} +11 -11
- package/dist/cli-bundle/chunks/{register-setup-J3JS2ZVT.js → register-setup-PGDNOXDQ.js} +5 -5
- package/dist/cli-bundle/chunks/{register-setup-BHPMN5SK.js → register-setup-TDN7WAO6.js} +5 -5
- package/dist/cli-bundle/chunks/{update-SA6AG23P.js → update-SQYZA3ZW.js} +4 -4
- package/dist/cli-bundle/chunks/{update-PQQHLYCC.js → update-XZJYS5X7.js} +4 -4
- package/dist/cli-bundle/chunks/{update-many-RQVTFJPD.js → update-many-R24B3GBK.js} +6 -6
- package/dist/cli-bundle/chunks/{update-many-TV3L3KBX.js → update-many-WQ3R3J6N.js} +6 -6
- package/dist/cli-bundle/main.js +25 -9
- package/dist/cli-bundle/main.js.map +2 -2
- package/dist/cli-bundle/sdk-runtime.js +19 -16
- package/dist/cli-bundle/sdk.js +95 -305
- package/dist/cli-bundle/sdk.js.map +4 -4
- package/dist/core/item/actionability.d.ts +12 -0
- package/dist/core/item/actionability.js +39 -4
- package/dist/core/item/actionability.js.map +1 -1
- package/dist/core/sentry/instrument.d.ts +11 -0
- package/dist/core/sentry/instrument.js +21 -2
- package/dist/core/sentry/instrument.js.map +1 -1
- package/dist/mcp/server.d.ts +16 -18
- package/dist/mcp/server.js +84 -31
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tool-definitions.js +17 -4
- package/dist/mcp/tool-definitions.js.map +1 -1
- package/dist/sdk/actionability.d.ts +10 -0
- package/dist/sdk/actionability.js +14 -0
- package/dist/sdk/actionability.js.map +1 -0
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +6 -2
- package/dist/sdk/cli-contracts/enum-contracts.js +19 -2
- package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +2 -0
- package/dist/sdk/cli-contracts/flag-contracts.js +21 -2
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +2 -0
- package/dist/sdk/cli-contracts/tool-option-contracts.js +16 -2
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +80 -3
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.d.ts +20 -0
- package/dist/sdk/cli-contracts/tool-schema.js +97 -9
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +2 -2
- package/dist/sdk/cli-contracts.js +4 -4
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/dependencies.d.ts +42 -53
- package/dist/sdk/dependencies.js +177 -125
- package/dist/sdk/dependencies.js.map +1 -1
- package/dist/sdk/governance/validate.js +3 -3
- package/dist/sdk/governance/validate.js.map +1 -1
- package/dist/sdk/graph/analytics.d.ts +124 -0
- package/dist/sdk/graph/analytics.js +464 -0
- package/dist/sdk/graph/analytics.js.map +1 -0
- package/dist/sdk/graph/assembly.d.ts +97 -0
- package/dist/sdk/graph/assembly.js +146 -0
- package/dist/sdk/graph/assembly.js.map +1 -0
- package/dist/sdk/graph/cache.d.ts +66 -0
- package/dist/sdk/graph/cache.js +148 -0
- package/dist/sdk/graph/cache.js.map +1 -0
- package/dist/sdk/graph/governance.d.ts +108 -0
- package/dist/sdk/graph/governance.js +360 -0
- package/dist/sdk/graph/governance.js.map +1 -0
- package/dist/sdk/graph/index.d.ts +16 -0
- package/dist/sdk/graph/index.js +20 -0
- package/dist/sdk/graph/index.js.map +1 -0
- package/dist/sdk/graph/remediation.d.ts +52 -0
- package/dist/sdk/graph/remediation.js +148 -0
- package/dist/sdk/graph/remediation.js.map +1 -0
- package/dist/sdk/graph/run.d.ts +295 -0
- package/dist/sdk/graph/run.js +468 -0
- package/dist/sdk/graph/run.js.map +1 -0
- package/dist/sdk/graph/traversal.d.ts +77 -0
- package/dist/sdk/graph/traversal.js +262 -0
- package/dist/sdk/graph/traversal.js.map +1 -0
- package/dist/sdk/index.d.ts +4 -2
- package/dist/sdk/index.js +6 -4
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/query/list.d.ts +8 -0
- package/dist/sdk/query/list.js +19 -3
- package/dist/sdk/query/list.js.map +1 -1
- package/dist/sdk/relationship-context.d.ts +42 -0
- package/dist/sdk/relationship-context.js +99 -20
- package/dist/sdk/relationship-context.js.map +1 -1
- package/dist/sdk/relationships.d.ts +13 -0
- package/dist/sdk/relationships.js +30 -2
- package/dist/sdk/relationships.js.map +1 -1
- package/dist/sdk/runtime-input.d.ts +41 -0
- package/dist/sdk/runtime-input.js +422 -2
- package/dist/sdk/runtime-input.js.map +1 -1
- package/dist/sdk/runtime.d.ts +12 -23
- package/dist/sdk/runtime.js +19 -371
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/test/linked-command-detection.js +12 -3
- package/dist/sdk/test/linked-command-detection.js.map +1 -1
- package/docs/AGENT_GUIDE.md +1 -0
- package/docs/COMMANDS.md +19 -1
- package/docs/RELATIONSHIP_GRAPH.md +99 -3
- package/docs/SDK.md +17 -3
- package/marketplace.json +2 -2
- 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-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/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/dist/cli-bundle/chunks/chunk-6XAZB6SE.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7CTQ7WW5.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7LTCLTRG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-DCC2AQBD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HF63SBLC.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-I7GY4X6Y.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-LLODAQMP.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MSGETE6I.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-N7I2DGLP.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-NCAFUBJX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-P56LKFQX.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-S46R2M3W.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-S6FF7VW6.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-SIJV365F.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SPFZV2GR.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-V3VBXQQV.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-YQCWK2MB.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-A5KRJ5J2.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-NEYP3TXO.js.map +0 -7
- package/dist/cli-bundle/chunks/register-mutation-6LOPBAHC.js.map +0 -1
- /package/dist/cli-bundle/chunks/{chunk-QNUAZYGW.js.map → chunk-43UMFKCK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-B6SH2YNN.js.map → chunk-7R6UIHYY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-23TCGBRK.js.map → chunk-ADXDCAKP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2MPMKJF2.js.map → chunk-DHNG452T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AFSV5HBB.js.map → chunk-E4FXM2XB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QKVVV6QO.js.map → chunk-EWIT5WIC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HXVHBERL.js.map → chunk-HPAYDSR2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XNPMDSQQ.js.map → chunk-HYTOJW2Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-V7MP6YTN.js.map → chunk-IL5SPRMH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KOEZCHRF.js.map → chunk-QRZNCRNA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-G6KM4YKY.js.map → chunk-RXPQ5Q23.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XYJK6GIQ.js.map → chunk-TGBTLGPX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3D4YVTNG.js.map → chunk-TZAE66GQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CFSUNEL7.js.map → chunk-XWBD6DSR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MNV226E4.js.map → chunk-XWYQ2LT4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FZGM3PNA.js.map → chunk-YIIIAKCE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-BEP7MHF3.js.map → close-GPD7DTJV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-Y6QFUJQN.js.map → close-X3CF6FQP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-JJFW7KTT.js.map → close-many-J7A5EHOQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-QJ6FKJUE.js.map → close-many-NQLYGPYW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-EVTOQMKW.js.map → deps-MQ4ZIGZB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-5NC4IZH7.js.map → deps-NIIKXLPB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-U2B6Y7GE.js.map → profile-AVCIIZID.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-AGUKS52S.js.map → profile-LFYO3HHX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-6ZZIF27A.js.map → register-operations-KHZYR6MG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-REDIAEGI.js.map → register-operations-WPQ2LWZJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-J3JS2ZVT.js.map → register-setup-PGDNOXDQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-BHPMN5SK.js.map → register-setup-TDN7WAO6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-SA6AG23P.js.map → update-SQYZA3ZW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-PQQHLYCC.js.map → update-XZJYS5X7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-RQVTFJPD.js.map → update-many-R24B3GBK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-TV3L3KBX.js.map → update-many-WQ3R3J6N.js.map} +0 -0
package/dist/cli-bundle/sdk.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
parseBootstrapHelpRequest,
|
|
13
13
|
parseBootstrapTypeValue,
|
|
14
14
|
stripGlobalBootstrapTokens
|
|
15
|
-
} from "./chunks/chunk-
|
|
15
|
+
} from "./chunks/chunk-TGBTLGPX.js";
|
|
16
16
|
import {
|
|
17
17
|
PM_CLI_EXPECTED_ERROR_NAME,
|
|
18
18
|
PmClient,
|
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
get,
|
|
47
47
|
getContracts,
|
|
48
48
|
getWorkspaceContracts,
|
|
49
|
+
graph,
|
|
49
50
|
health,
|
|
50
51
|
historyCompact,
|
|
51
52
|
historyCompactBulk,
|
|
@@ -124,7 +125,7 @@ import {
|
|
|
124
125
|
update,
|
|
125
126
|
upgrade,
|
|
126
127
|
validate
|
|
127
|
-
} from "./chunks/chunk-
|
|
128
|
+
} from "./chunks/chunk-I3INI567.js";
|
|
128
129
|
import "./chunks/chunk-6X5MZ5R2.js";
|
|
129
130
|
import "./chunks/chunk-3HKUXVKV.js";
|
|
130
131
|
import "./chunks/chunk-PNTULOGU.js";
|
|
@@ -159,20 +160,10 @@ import {
|
|
|
159
160
|
runValidate,
|
|
160
161
|
scanHistoryAuthorAttribution,
|
|
161
162
|
summarizeContextPreflight
|
|
162
|
-
} from "./chunks/chunk-
|
|
163
|
+
} from "./chunks/chunk-F3VC3GOV.js";
|
|
163
164
|
import {
|
|
164
165
|
runDocs
|
|
165
166
|
} from "./chunks/chunk-D5XHO4Q7.js";
|
|
166
|
-
import {
|
|
167
|
-
RelationshipGraph,
|
|
168
|
-
RelationshipKindRegistry,
|
|
169
|
-
buildRelationshipContext,
|
|
170
|
-
collectDanglingDependencyReferences,
|
|
171
|
-
createRelationshipKindRegistry,
|
|
172
|
-
dependencyToRelationship,
|
|
173
|
-
isOrderingRelationshipKind,
|
|
174
|
-
runDeps
|
|
175
|
-
} from "./chunks/chunk-MSGETE6I.js";
|
|
176
167
|
import "./chunks/chunk-2FUOXSRN.js";
|
|
177
168
|
import "./chunks/chunk-NNANAWFH.js";
|
|
178
169
|
import "./chunks/chunk-OWP6QFBV.js";
|
|
@@ -196,7 +187,7 @@ import {
|
|
|
196
187
|
runTemplatesList,
|
|
197
188
|
runTemplatesSave,
|
|
198
189
|
runTemplatesShow
|
|
199
|
-
} from "./chunks/chunk-
|
|
190
|
+
} from "./chunks/chunk-TZAE66GQ.js";
|
|
200
191
|
import "./chunks/chunk-LSOWTLEM.js";
|
|
201
192
|
import "./chunks/chunk-6DYOZS6C.js";
|
|
202
193
|
import "./chunks/chunk-ZHBI2AP7.js";
|
|
@@ -221,11 +212,11 @@ import {
|
|
|
221
212
|
sortLinkedArtifacts,
|
|
222
213
|
validateLinkedPaths
|
|
223
214
|
} from "./chunks/chunk-FVNWHUME.js";
|
|
224
|
-
import "./chunks/chunk-
|
|
225
|
-
import "./chunks/chunk-
|
|
215
|
+
import "./chunks/chunk-RXPQ5Q23.js";
|
|
216
|
+
import "./chunks/chunk-XWBD6DSR.js";
|
|
226
217
|
import "./chunks/chunk-WL3SS45P.js";
|
|
227
218
|
import "./chunks/chunk-5HGZKQUL.js";
|
|
228
|
-
import "./chunks/chunk-
|
|
219
|
+
import "./chunks/chunk-HPAYDSR2.js";
|
|
229
220
|
import {
|
|
230
221
|
PLAN_SHOW_DEPTH_VALUES,
|
|
231
222
|
PLAN_SUBCOMMANDS,
|
|
@@ -318,7 +309,7 @@ import "./chunks/chunk-KAE727L2.js";
|
|
|
318
309
|
import {
|
|
319
310
|
_testOnlyConfigCommand,
|
|
320
311
|
runConfig
|
|
321
|
-
} from "./chunks/chunk-
|
|
312
|
+
} from "./chunks/chunk-ADXDCAKP.js";
|
|
322
313
|
import {
|
|
323
314
|
INIT_AGENT_GUIDANCE_MODE_VALUES,
|
|
324
315
|
PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,
|
|
@@ -331,7 +322,7 @@ import {
|
|
|
331
322
|
runInit,
|
|
332
323
|
runInitAgentGuidance,
|
|
333
324
|
summarizeInitResult
|
|
334
|
-
} from "./chunks/chunk-
|
|
325
|
+
} from "./chunks/chunk-DHNG452T.js";
|
|
335
326
|
import "./chunks/chunk-2XOSFSTH.js";
|
|
336
327
|
import "./chunks/chunk-2BX74BAS.js";
|
|
337
328
|
import {
|
|
@@ -349,12 +340,38 @@ import {
|
|
|
349
340
|
DEFAULT_CHILD_SAMPLE_LIMIT,
|
|
350
341
|
DEFAULT_EVAL_QUERIES_RELATIVE_PATH,
|
|
351
342
|
MAX_CHILD_PROJECTION_ITEMS,
|
|
343
|
+
analyzeGraphImpact,
|
|
344
|
+
analyzeKnowledgeGraph,
|
|
345
|
+
analyzeRelationshipExecution,
|
|
346
|
+
auditWorkspaceRelationshipGraph,
|
|
352
347
|
buildItemChildrenRollup,
|
|
353
348
|
buildItemSchedule,
|
|
349
|
+
collectDuplicateRelationshipEdgeGroups,
|
|
350
|
+
compareRelationshipSnapshots,
|
|
351
|
+
computeRelationshipDominators,
|
|
352
|
+
detectRelationshipCommunities,
|
|
353
|
+
enumerateRelationshipPaths,
|
|
354
|
+
findRedundantRelationshipEdges,
|
|
355
|
+
formatDuplicateEdgeGroup,
|
|
356
|
+
hierarchyAncestors,
|
|
357
|
+
hierarchyDescendants,
|
|
354
358
|
itemHasSchedule,
|
|
359
|
+
orderingPredecessors,
|
|
360
|
+
orderingSuccessors,
|
|
361
|
+
parseGraphSubcommand,
|
|
362
|
+
planRelationshipRemediation,
|
|
355
363
|
runEval,
|
|
364
|
+
runGraph,
|
|
356
365
|
runSearch
|
|
357
|
-
} from "./chunks/chunk-
|
|
366
|
+
} from "./chunks/chunk-GKPCTQYG.js";
|
|
367
|
+
import {
|
|
368
|
+
WorkspaceGraphCache,
|
|
369
|
+
buildRelationshipContext,
|
|
370
|
+
computeWorkspaceGraphFingerprint,
|
|
371
|
+
resetWorkspaceGraphCache,
|
|
372
|
+
runDeps,
|
|
373
|
+
workspaceGraphCache
|
|
374
|
+
} from "./chunks/chunk-3QDR6ZLU.js";
|
|
358
375
|
import {
|
|
359
376
|
CONTEXT_EVALUATION_METRIC_NAMES,
|
|
360
377
|
CONTEXT_PACKING_PROFILES,
|
|
@@ -373,14 +390,24 @@ import {
|
|
|
373
390
|
scoreContextCandidates,
|
|
374
391
|
scoreContextCandidatesWithActiveExtensions,
|
|
375
392
|
summarizeContextEvaluationReports
|
|
376
|
-
} from "./chunks/chunk-
|
|
393
|
+
} from "./chunks/chunk-OGVTB5VO.js";
|
|
394
|
+
import {
|
|
395
|
+
RelationshipGraph,
|
|
396
|
+
RelationshipKindRegistry,
|
|
397
|
+
assembleWorkspaceRelationshipGraph,
|
|
398
|
+
collectDanglingDependencyReferences,
|
|
399
|
+
collectMissingDependencyTargetIds,
|
|
400
|
+
createRelationshipKindRegistry,
|
|
401
|
+
dependencyToRelationship,
|
|
402
|
+
isOrderingRelationshipKind
|
|
403
|
+
} from "./chunks/chunk-3CUQZNQ6.js";
|
|
377
404
|
import "./chunks/chunk-KWYX6ZIR.js";
|
|
378
405
|
import {
|
|
379
406
|
parseIntegerLimit,
|
|
380
407
|
parsePriority,
|
|
381
408
|
parseType,
|
|
382
409
|
runList
|
|
383
|
-
} from "./chunks/chunk-
|
|
410
|
+
} from "./chunks/chunk-AXRT7K5V.js";
|
|
384
411
|
import {
|
|
385
412
|
QUERY_CURSOR_CONTRACT,
|
|
386
413
|
createQueryFingerprint,
|
|
@@ -419,7 +446,7 @@ import "./chunks/chunk-CYCJBU3I.js";
|
|
|
419
446
|
import {
|
|
420
447
|
refreshSemanticEmbeddingsForMutatedItems,
|
|
421
448
|
runSemanticRefreshWorker
|
|
422
|
-
} from "./chunks/chunk-
|
|
449
|
+
} from "./chunks/chunk-7R6UIHYY.js";
|
|
423
450
|
import {
|
|
424
451
|
ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
425
452
|
APPEND_FLAG_CONTRACTS,
|
|
@@ -465,6 +492,7 @@ import {
|
|
|
465
492
|
GC_FLAG_CONTRACTS,
|
|
466
493
|
GET_FLAG_CONTRACTS,
|
|
467
494
|
GLOBAL_FLAG_CONTRACTS,
|
|
495
|
+
GRAPH_SUBCOMMAND_VALUES,
|
|
468
496
|
GUIDE_FLAG_CONTRACTS,
|
|
469
497
|
HEALTH_FLAG_CONTRACTS,
|
|
470
498
|
HISTORY_COMPACT_FLAG_CONTRACTS,
|
|
@@ -543,7 +571,7 @@ import {
|
|
|
543
571
|
resolveSubcommandFlagContractsForCommand,
|
|
544
572
|
toCompletionFlagString,
|
|
545
573
|
withFlagAliasMetadata
|
|
546
|
-
} from "./chunks/chunk-
|
|
574
|
+
} from "./chunks/chunk-WQXRZMFN.js";
|
|
547
575
|
import {
|
|
548
576
|
LINKED_TEST_ENV_NAME_PATTERN,
|
|
549
577
|
LINKED_TEST_PM_CONTEXT_MODE_VALUES,
|
|
@@ -571,8 +599,13 @@ import {
|
|
|
571
599
|
isHostOutputSuppressed,
|
|
572
600
|
suppressHostOutput
|
|
573
601
|
} from "./chunks/chunk-EHJFUOXL.js";
|
|
574
|
-
import "./chunks/chunk-
|
|
575
|
-
import
|
|
602
|
+
import "./chunks/chunk-TLWJP5BF.js";
|
|
603
|
+
import {
|
|
604
|
+
collectBlockedByIds,
|
|
605
|
+
collectDependencyBlockedIds,
|
|
606
|
+
computeActionabilityReport,
|
|
607
|
+
resolveItemBlockers
|
|
608
|
+
} from "./chunks/chunk-BDA35QG5.js";
|
|
576
609
|
import {
|
|
577
610
|
BASELINE_ITEM_FORMAT_VERSION,
|
|
578
611
|
CURRENT_ITEM_FORMAT_VERSION,
|
|
@@ -663,301 +696,32 @@ async function flushTelemetryQueue() {
|
|
|
663
696
|
await flushTelemetryQueueNow();
|
|
664
697
|
}
|
|
665
698
|
|
|
666
|
-
// dist/sdk/
|
|
699
|
+
// dist/sdk/graph/index.js
|
|
667
700
|
!(function() {
|
|
668
701
|
try {
|
|
669
702
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
670
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
703
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fc1760dc-36e8-522f-8e91-28fa04f269a0");
|
|
671
704
|
} catch (e2) {
|
|
672
705
|
}
|
|
673
706
|
})();
|
|
674
707
|
|
|
675
|
-
// dist/sdk/
|
|
708
|
+
// dist/sdk/query/item-filter-options.js
|
|
676
709
|
!(function() {
|
|
677
710
|
try {
|
|
678
711
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
679
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
712
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9a39e914-a4b4-5812-80a6-8240a2c1879b");
|
|
680
713
|
} catch (e2) {
|
|
681
714
|
}
|
|
682
715
|
})();
|
|
683
716
|
|
|
684
|
-
// dist/sdk/
|
|
717
|
+
// dist/sdk/output.js
|
|
685
718
|
!(function() {
|
|
686
719
|
try {
|
|
687
720
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
688
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
721
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fee22fbe-b4a1-5524-9df1-7be06fb07427");
|
|
689
722
|
} catch (e2) {
|
|
690
723
|
}
|
|
691
724
|
})();
|
|
692
|
-
function appendNeighbor(adjacency, source, target) {
|
|
693
|
-
adjacency.get(source).add(target);
|
|
694
|
-
}
|
|
695
|
-
function createAdjacency(nodes) {
|
|
696
|
-
return new Map(nodes.map((node) => [node, /* @__PURE__ */ new Set()]));
|
|
697
|
-
}
|
|
698
|
-
function sortComponents(components) {
|
|
699
|
-
for (const component of components)
|
|
700
|
-
component.sort();
|
|
701
|
-
return components.sort((left, right) => right.length - left.length || left[0].localeCompare(right[0]));
|
|
702
|
-
}
|
|
703
|
-
function stableJsonValue(value) {
|
|
704
|
-
if (Array.isArray(value))
|
|
705
|
-
return value.map((entry) => stableJsonValue(entry));
|
|
706
|
-
if (value === null || typeof value !== "object")
|
|
707
|
-
return value;
|
|
708
|
-
const toJSON = value.toJSON;
|
|
709
|
-
if (typeof toJSON === "function")
|
|
710
|
-
return stableJsonValue(toJSON.call(value));
|
|
711
|
-
return Object.fromEntries(Object.entries(value).sort(([left], [right]) => left.localeCompare(right)).map(([key, entry]) => [key, stableJsonValue(entry)]));
|
|
712
|
-
}
|
|
713
|
-
function relationshipEdgeKey(edge) {
|
|
714
|
-
return JSON.stringify(stableJsonValue(edge));
|
|
715
|
-
}
|
|
716
|
-
function appendFinishingOrder(start, adjacency, visited, order) {
|
|
717
|
-
const stack = [{ id: start, expanded: false }];
|
|
718
|
-
while (stack.length > 0) {
|
|
719
|
-
const current = stack.pop();
|
|
720
|
-
if (current.expanded) {
|
|
721
|
-
order.push(current.id);
|
|
722
|
-
continue;
|
|
723
|
-
}
|
|
724
|
-
if (visited.has(current.id))
|
|
725
|
-
continue;
|
|
726
|
-
visited.add(current.id);
|
|
727
|
-
stack.push({ id: current.id, expanded: true });
|
|
728
|
-
const neighbors = [...adjacency.get(current.id)].sort().reverse();
|
|
729
|
-
for (const neighbor of neighbors)
|
|
730
|
-
if (!visited.has(neighbor))
|
|
731
|
-
stack.push({ id: neighbor, expanded: false });
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
function computeFinishingOrder(nodes, adjacency) {
|
|
735
|
-
const visited = /* @__PURE__ */ new Set();
|
|
736
|
-
const order = [];
|
|
737
|
-
for (const start of nodes)
|
|
738
|
-
if (!visited.has(start))
|
|
739
|
-
appendFinishingOrder(start, adjacency, visited, order);
|
|
740
|
-
return order;
|
|
741
|
-
}
|
|
742
|
-
function collectReverseComponents(order, reverse) {
|
|
743
|
-
const visited = /* @__PURE__ */ new Set();
|
|
744
|
-
const components = [];
|
|
745
|
-
for (const start of [...order].reverse()) {
|
|
746
|
-
if (visited.has(start))
|
|
747
|
-
continue;
|
|
748
|
-
const component = [];
|
|
749
|
-
const stack = [start];
|
|
750
|
-
visited.add(start);
|
|
751
|
-
while (stack.length > 0) {
|
|
752
|
-
const current = stack.pop();
|
|
753
|
-
component.push(current);
|
|
754
|
-
for (const neighbor of reverse.get(current)) {
|
|
755
|
-
if (visited.has(neighbor))
|
|
756
|
-
continue;
|
|
757
|
-
visited.add(neighbor);
|
|
758
|
-
stack.push(neighbor);
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
components.push(component);
|
|
762
|
-
}
|
|
763
|
-
return sortComponents(components);
|
|
764
|
-
}
|
|
765
|
-
function stronglyConnectedComponents(nodes, adjacency) {
|
|
766
|
-
const reverse = createAdjacency(nodes);
|
|
767
|
-
for (const [source, targets] of adjacency)
|
|
768
|
-
for (const target of targets)
|
|
769
|
-
appendNeighbor(reverse, target, source);
|
|
770
|
-
return collectReverseComponents(computeFinishingOrder(nodes, adjacency), reverse);
|
|
771
|
-
}
|
|
772
|
-
function buildExecutionAdjacency(graph, registry) {
|
|
773
|
-
const adjacency = createAdjacency(graph.nodes());
|
|
774
|
-
for (const edge of graph.edges()) {
|
|
775
|
-
const definition = registry.require(edge.kind);
|
|
776
|
-
if (!definition.ordering)
|
|
777
|
-
continue;
|
|
778
|
-
const sourceFirst = (definition.precedence ?? "source_before_target") === "source_before_target";
|
|
779
|
-
appendNeighbor(adjacency, sourceFirst ? edge.source : edge.target, sourceFirst ? edge.target : edge.source);
|
|
780
|
-
}
|
|
781
|
-
return adjacency;
|
|
782
|
-
}
|
|
783
|
-
function topologicalLayers(nodes, adjacency) {
|
|
784
|
-
const indegree = new Map(nodes.map((node) => [node, 0]));
|
|
785
|
-
for (const targets of adjacency.values())
|
|
786
|
-
for (const target of targets)
|
|
787
|
-
indegree.set(target, indegree.get(target) + 1);
|
|
788
|
-
let frontier = nodes.filter((node) => indegree.get(node) === 0).sort();
|
|
789
|
-
const layers = [];
|
|
790
|
-
while (frontier.length > 0) {
|
|
791
|
-
layers.push(frontier);
|
|
792
|
-
const next2 = [];
|
|
793
|
-
for (const source of frontier) {
|
|
794
|
-
for (const target of adjacency.get(source)) {
|
|
795
|
-
const remaining = indegree.get(target) - 1;
|
|
796
|
-
indegree.set(target, remaining);
|
|
797
|
-
if (remaining === 0)
|
|
798
|
-
next2.push(target);
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
frontier = next2.sort();
|
|
802
|
-
}
|
|
803
|
-
return layers;
|
|
804
|
-
}
|
|
805
|
-
function longestPath(order, adjacency) {
|
|
806
|
-
const depth = new Map(order.map((node) => [node, 0]));
|
|
807
|
-
const parent = /* @__PURE__ */ new Map();
|
|
808
|
-
for (const source of order) {
|
|
809
|
-
for (const target of adjacency.get(source)) {
|
|
810
|
-
if (!depth.has(target))
|
|
811
|
-
continue;
|
|
812
|
-
const candidate = depth.get(source) + 1;
|
|
813
|
-
const currentParent = parent.get(target);
|
|
814
|
-
if (candidate > depth.get(target) || candidate === depth.get(target) && (currentParent === void 0 || source.localeCompare(currentParent) < 0)) {
|
|
815
|
-
depth.set(target, candidate);
|
|
816
|
-
parent.set(target, source);
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
const end = [...order].sort((left, right) => depth.get(right) - depth.get(left) || left.localeCompare(right))[0];
|
|
821
|
-
const path2 = end === void 0 ? [] : [end];
|
|
822
|
-
while (path2[0] !== void 0 && parent.has(path2[0]))
|
|
823
|
-
path2.unshift(parent.get(path2[0]));
|
|
824
|
-
return { depth: Object.fromEntries(depth), path: path2 };
|
|
825
|
-
}
|
|
826
|
-
function reconstructImpactPath(root, target, parents) {
|
|
827
|
-
const path2 = [target];
|
|
828
|
-
let cursor = target;
|
|
829
|
-
while (cursor !== root) {
|
|
830
|
-
cursor = parents.get(cursor);
|
|
831
|
-
path2.push(cursor);
|
|
832
|
-
}
|
|
833
|
-
return path2.reverse();
|
|
834
|
-
}
|
|
835
|
-
function analyzeRelationshipExecution(graph, options = {}) {
|
|
836
|
-
const registry = options.registry ?? createRelationshipKindRegistry();
|
|
837
|
-
const nodes = [...graph.nodes()];
|
|
838
|
-
const adjacency = buildExecutionAdjacency(graph, registry);
|
|
839
|
-
const layers = topologicalLayers(nodes, adjacency);
|
|
840
|
-
const order = layers.flat();
|
|
841
|
-
const acyclic = order.length === nodes.length;
|
|
842
|
-
const cycles = acyclic ? [] : stronglyConnectedComponents(nodes, adjacency).filter((component) => component.length > 1 || adjacency.get(component[0]).has(component[0]));
|
|
843
|
-
const longest = longestPath(order, adjacency);
|
|
844
|
-
return {
|
|
845
|
-
exact: true,
|
|
846
|
-
acyclic,
|
|
847
|
-
order,
|
|
848
|
-
layers,
|
|
849
|
-
frontier: layers[0] ?? [],
|
|
850
|
-
depth: longest.depth,
|
|
851
|
-
criticalPath: longest.path,
|
|
852
|
-
criticalPathLength: Math.max(0, longest.path.length - 1),
|
|
853
|
-
cycles,
|
|
854
|
-
provenance: { algorithm: "kahn-longest-path", edgeFamily: "ordering" }
|
|
855
|
-
};
|
|
856
|
-
}
|
|
857
|
-
function analyzeGraphImpact(graph, root, options = {}) {
|
|
858
|
-
const direction = options.direction ?? "outgoing";
|
|
859
|
-
const maxDepth = options.maxDepth ?? Number.POSITIVE_INFINITY;
|
|
860
|
-
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
861
|
-
const queue = [{ id: root, depth: 0 }];
|
|
862
|
-
const seen = /* @__PURE__ */ new Set([root]);
|
|
863
|
-
const parents = /* @__PURE__ */ new Map();
|
|
864
|
-
const affected = [];
|
|
865
|
-
let visitedNodes = 0;
|
|
866
|
-
let inspectedEdges = 0;
|
|
867
|
-
let truncated = false;
|
|
868
|
-
traversal: for (let index = 0; index < queue.length; index += 1) {
|
|
869
|
-
options.signal?.throwIfAborted();
|
|
870
|
-
const current = queue[index];
|
|
871
|
-
visitedNodes += 1;
|
|
872
|
-
const adjacent = graph.adjacency(current.id, {
|
|
873
|
-
direction,
|
|
874
|
-
kinds: options.kinds,
|
|
875
|
-
signal: options.signal
|
|
876
|
-
});
|
|
877
|
-
inspectedEdges += adjacent.meta.inspectedEdges;
|
|
878
|
-
if (current.depth >= maxDepth) {
|
|
879
|
-
if (adjacent.value.some((id) => !seen.has(id)))
|
|
880
|
-
truncated = true;
|
|
881
|
-
continue;
|
|
882
|
-
}
|
|
883
|
-
for (const id of adjacent.value) {
|
|
884
|
-
if (seen.has(id))
|
|
885
|
-
continue;
|
|
886
|
-
if (affected.length >= limit) {
|
|
887
|
-
truncated = true;
|
|
888
|
-
break traversal;
|
|
889
|
-
}
|
|
890
|
-
seen.add(id);
|
|
891
|
-
parents.set(id, current.id);
|
|
892
|
-
const depth = current.depth + 1;
|
|
893
|
-
affected.push({
|
|
894
|
-
id,
|
|
895
|
-
distance: depth,
|
|
896
|
-
path: reconstructImpactPath(root, id, parents)
|
|
897
|
-
});
|
|
898
|
-
queue.push({ id, depth });
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
return {
|
|
902
|
-
root,
|
|
903
|
-
affected,
|
|
904
|
-
exact: true,
|
|
905
|
-
truncated,
|
|
906
|
-
cost: { visitedNodes, inspectedEdges }
|
|
907
|
-
};
|
|
908
|
-
}
|
|
909
|
-
function analyzeKnowledgeGraph(graph) {
|
|
910
|
-
const nodes = [...graph.nodes()];
|
|
911
|
-
const weak = createAdjacency(nodes);
|
|
912
|
-
const directed = createAdjacency(nodes);
|
|
913
|
-
for (const edge of graph.edges()) {
|
|
914
|
-
appendNeighbor(weak, edge.source, edge.target);
|
|
915
|
-
appendNeighbor(weak, edge.target, edge.source);
|
|
916
|
-
appendNeighbor(directed, edge.source, edge.target);
|
|
917
|
-
}
|
|
918
|
-
const components = [];
|
|
919
|
-
const visited = /* @__PURE__ */ new Set();
|
|
920
|
-
for (const start of nodes) {
|
|
921
|
-
if (visited.has(start))
|
|
922
|
-
continue;
|
|
923
|
-
const component = [];
|
|
924
|
-
const stack = [start];
|
|
925
|
-
visited.add(start);
|
|
926
|
-
while (stack.length > 0) {
|
|
927
|
-
const current = stack.pop();
|
|
928
|
-
component.push(current);
|
|
929
|
-
for (const neighbor of weak.get(current)) {
|
|
930
|
-
if (visited.has(neighbor))
|
|
931
|
-
continue;
|
|
932
|
-
visited.add(neighbor);
|
|
933
|
-
stack.push(neighbor);
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
components.push(component);
|
|
937
|
-
}
|
|
938
|
-
const degrees = nodes.map((id) => ({ id, degree: weak.get(id).size }));
|
|
939
|
-
const maximum = Math.max(0, ...degrees.map(({ degree }) => degree));
|
|
940
|
-
return {
|
|
941
|
-
components: sortComponents(components),
|
|
942
|
-
stronglyConnected: stronglyConnectedComponents(nodes, directed),
|
|
943
|
-
orphans: degrees.filter(({ degree }) => degree === 0).map(({ id }) => id),
|
|
944
|
-
hubs: degrees.filter(({ degree }) => degree > 0 && degree === maximum),
|
|
945
|
-
exact: true,
|
|
946
|
-
provenance: { algorithm: "component-degree", edgeFamily: "all" }
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
function compareRelationshipSnapshots(before, after) {
|
|
950
|
-
const earlier = new Map(before.edges.map((edge) => [relationshipEdgeKey(edge), edge]));
|
|
951
|
-
const later = new Map(after.edges.map((edge) => [relationshipEdgeKey(edge), edge]));
|
|
952
|
-
return {
|
|
953
|
-
fromVersion: before.version,
|
|
954
|
-
toVersion: after.version,
|
|
955
|
-
added: [...later].filter(([key]) => !earlier.has(key)).map(([, edge]) => edge),
|
|
956
|
-
removed: [...earlier].filter(([key]) => !later.has(key)).map(([, edge]) => edge),
|
|
957
|
-
unchangedCount: [...earlier.keys()].filter((key) => later.has(key)).length,
|
|
958
|
-
exact: true
|
|
959
|
-
};
|
|
960
|
-
}
|
|
961
725
|
|
|
962
726
|
// dist/sdk/relationship-history.js
|
|
963
727
|
import { constants } from "node:fs";
|
|
@@ -1137,12 +901,12 @@ var RelationshipEventLog = class {
|
|
|
1137
901
|
included = this.#events.slice(0, version);
|
|
1138
902
|
}
|
|
1139
903
|
const active = replayEvents(included);
|
|
1140
|
-
const
|
|
904
|
+
const graph2 = new RelationshipGraph(this.#nodes, active.values(), this.#registry);
|
|
1141
905
|
return Object.freeze({
|
|
1142
906
|
version: included.length,
|
|
1143
907
|
...included.at(-1) ? { asOf: included.at(-1).timestamp } : {},
|
|
1144
|
-
edges:
|
|
1145
|
-
graph
|
|
908
|
+
edges: graph2.edges(),
|
|
909
|
+
graph: graph2
|
|
1146
910
|
});
|
|
1147
911
|
}
|
|
1148
912
|
/** Page the immutable event stream with a cursor bound to this log version. */
|
|
@@ -1396,7 +1160,7 @@ function defineOnIndexHook(hook) {
|
|
|
1396
1160
|
!(function() {
|
|
1397
1161
|
try {
|
|
1398
1162
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
1399
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
1163
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "02da6657-48e5-5fa6-84b9-8f776bd9d8b1");
|
|
1400
1164
|
} catch (e2) {
|
|
1401
1165
|
}
|
|
1402
1166
|
})();
|
|
@@ -1472,6 +1236,7 @@ export {
|
|
|
1472
1236
|
GC_FLAG_CONTRACTS,
|
|
1473
1237
|
GET_FLAG_CONTRACTS,
|
|
1474
1238
|
GLOBAL_FLAG_CONTRACTS,
|
|
1239
|
+
GRAPH_SUBCOMMAND_VALUES,
|
|
1475
1240
|
GUIDE_FLAG_CONTRACTS,
|
|
1476
1241
|
HEALTH_FLAG_CONTRACTS,
|
|
1477
1242
|
HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,
|
|
@@ -1568,6 +1333,7 @@ export {
|
|
|
1568
1333
|
UPDATE_FLAG_CONTRACTS,
|
|
1569
1334
|
UPDATE_MANY_FLAG_CONTRACTS,
|
|
1570
1335
|
UPGRADE_FLAG_CONTRACTS,
|
|
1336
|
+
WorkspaceGraphCache,
|
|
1571
1337
|
_testOnly3 as _testOnly,
|
|
1572
1338
|
_testOnlyConfigCommand,
|
|
1573
1339
|
_testOnlyHealthCommand,
|
|
@@ -1589,6 +1355,7 @@ export {
|
|
|
1589
1355
|
applyPathMigrations,
|
|
1590
1356
|
applyStandaloneNote,
|
|
1591
1357
|
artifactKey,
|
|
1358
|
+
assembleWorkspaceRelationshipGraph,
|
|
1592
1359
|
assertExtensionBlueprint,
|
|
1593
1360
|
assertExtensionCapabilityUsage,
|
|
1594
1361
|
assertExtensionDeactivated,
|
|
@@ -1615,6 +1382,7 @@ export {
|
|
|
1615
1382
|
assertRegisteredSearchProvider,
|
|
1616
1383
|
assertRegisteredServiceOverride,
|
|
1617
1384
|
assertRegisteredVectorStoreAdapter,
|
|
1385
|
+
auditWorkspaceRelationshipGraph,
|
|
1618
1386
|
buildItemChildrenRollup,
|
|
1619
1387
|
buildItemContextRelevanceCandidates,
|
|
1620
1388
|
buildItemSchedule,
|
|
@@ -1629,7 +1397,11 @@ export {
|
|
|
1629
1397
|
close,
|
|
1630
1398
|
closeTask,
|
|
1631
1399
|
coalesceRepeatedListFlags,
|
|
1400
|
+
collectBlockedByIds,
|
|
1632
1401
|
collectDanglingDependencyReferences,
|
|
1402
|
+
collectDependencyBlockedIds,
|
|
1403
|
+
collectDuplicateRelationshipEdgeGroups,
|
|
1404
|
+
collectMissingDependencyTargetIds,
|
|
1633
1405
|
collectPackageExtensionDirectories,
|
|
1634
1406
|
collectUsedExtensionCapabilities,
|
|
1635
1407
|
comments,
|
|
@@ -1638,6 +1410,9 @@ export {
|
|
|
1638
1410
|
compareRelationshipSnapshots,
|
|
1639
1411
|
composeExtension,
|
|
1640
1412
|
composeExtensionPackage,
|
|
1413
|
+
computeActionabilityReport,
|
|
1414
|
+
computeRelationshipDominators,
|
|
1415
|
+
computeWorkspaceGraphFingerprint,
|
|
1641
1416
|
config,
|
|
1642
1417
|
context,
|
|
1643
1418
|
copy,
|
|
@@ -1685,6 +1460,7 @@ export {
|
|
|
1685
1460
|
describeExtensionBlueprint,
|
|
1686
1461
|
describeProfileComposition,
|
|
1687
1462
|
describeProjectProfile,
|
|
1463
|
+
detectRelationshipCommunities,
|
|
1688
1464
|
docs,
|
|
1689
1465
|
effectiveItemFormatVersion,
|
|
1690
1466
|
emptyImportedDocument,
|
|
@@ -1692,6 +1468,7 @@ export {
|
|
|
1692
1468
|
ensureMaterializedHistoryTarget,
|
|
1693
1469
|
ensureScope,
|
|
1694
1470
|
ensureTrackerInitialized,
|
|
1471
|
+
enumerateRelationshipPaths,
|
|
1695
1472
|
evaluateContextRanking,
|
|
1696
1473
|
expandAddGlobEntries,
|
|
1697
1474
|
extension,
|
|
@@ -1702,8 +1479,10 @@ export {
|
|
|
1702
1479
|
extractReferencedPmItemIdsFromCommand,
|
|
1703
1480
|
files,
|
|
1704
1481
|
filesDiscover,
|
|
1482
|
+
findRedundantRelationshipEdges,
|
|
1705
1483
|
flushTelemetryQueue,
|
|
1706
1484
|
focus,
|
|
1485
|
+
formatDuplicateEdgeGroup,
|
|
1707
1486
|
formatProfileApplyHuman,
|
|
1708
1487
|
formatProfileLintHuman,
|
|
1709
1488
|
formatProfileListHuman,
|
|
@@ -1718,7 +1497,10 @@ export {
|
|
|
1718
1497
|
getItemPath,
|
|
1719
1498
|
getSettingsPath,
|
|
1720
1499
|
getWorkspaceContracts,
|
|
1500
|
+
graph,
|
|
1721
1501
|
health,
|
|
1502
|
+
hierarchyAncestors,
|
|
1503
|
+
hierarchyDescendants,
|
|
1722
1504
|
historyCompact,
|
|
1723
1505
|
historyCompactBulk,
|
|
1724
1506
|
historyRedact,
|
|
@@ -1761,6 +1543,8 @@ export {
|
|
|
1761
1543
|
normalizeStatusInput,
|
|
1762
1544
|
notes,
|
|
1763
1545
|
nowIso,
|
|
1546
|
+
orderingPredecessors,
|
|
1547
|
+
orderingSuccessors,
|
|
1764
1548
|
packContextCandidates,
|
|
1765
1549
|
packageActivate,
|
|
1766
1550
|
packageCatalog,
|
|
@@ -1781,6 +1565,7 @@ export {
|
|
|
1781
1565
|
parseBootstrapGlobalOptions,
|
|
1782
1566
|
parseBootstrapHelpRequest,
|
|
1783
1567
|
parseBootstrapTypeValue,
|
|
1568
|
+
parseGraphSubcommand,
|
|
1784
1569
|
parseIntegerLimit,
|
|
1785
1570
|
parseLimit,
|
|
1786
1571
|
parseLinkedTestAssertionEqualsMap,
|
|
@@ -1801,6 +1586,7 @@ export {
|
|
|
1801
1586
|
pathExists,
|
|
1802
1587
|
pauseTask,
|
|
1803
1588
|
planProfileApplication,
|
|
1589
|
+
planRelationshipRemediation,
|
|
1804
1590
|
preflightExtension,
|
|
1805
1591
|
profile,
|
|
1806
1592
|
profileApply,
|
|
@@ -1836,12 +1622,14 @@ export {
|
|
|
1836
1622
|
renderGuideMarkdown,
|
|
1837
1623
|
renderPmCommand,
|
|
1838
1624
|
replayHistoryToTarget,
|
|
1625
|
+
resetWorkspaceGraphCache,
|
|
1839
1626
|
resolveAnnotationIndex,
|
|
1840
1627
|
resolveAnnotationInput,
|
|
1841
1628
|
resolveCalendarOutputFormat,
|
|
1842
1629
|
resolveGuideOutputFormat,
|
|
1843
1630
|
resolveHistorySubject,
|
|
1844
1631
|
resolveHistoryTarget,
|
|
1632
|
+
resolveItemBlockers,
|
|
1845
1633
|
resolveItemTypeRegistry,
|
|
1846
1634
|
resolveLinkedTestFailureExitCode,
|
|
1847
1635
|
resolvePmRoot,
|
|
@@ -1867,6 +1655,7 @@ export {
|
|
|
1867
1655
|
runFiles,
|
|
1868
1656
|
runFilesDiscover,
|
|
1869
1657
|
runGc,
|
|
1658
|
+
runGraph,
|
|
1870
1659
|
runGuide,
|
|
1871
1660
|
runHealth,
|
|
1872
1661
|
runHistoryCompact,
|
|
@@ -1966,6 +1755,7 @@ export {
|
|
|
1966
1755
|
validate,
|
|
1967
1756
|
validateLinkedPaths,
|
|
1968
1757
|
withFlagAliasMetadata,
|
|
1758
|
+
workspaceGraphCache,
|
|
1969
1759
|
wrapOwnershipConflict,
|
|
1970
1760
|
writeFileAtomic
|
|
1971
1761
|
};
|