@cleocode/cleo 2026.11.13 → 2026.11.14-rc.ci.731
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/dist/.source-stamp.json +1 -1
- package/dist/cli/{adapter-NJFENL34.js → adapter-NQCRE5BJ.js} +3 -3
- package/dist/cli/{add-L5A4ZFH2.js → add-KVSL4VBU.js} +3 -3
- package/dist/cli/{add-batch-Z3PP4LWN.js → add-batch-6EJG6UNX.js} +3 -3
- package/dist/cli/{admin-6YVPGD3V.js → admin-PFRGBD5A.js} +3 -3
- package/dist/cli/{admin-YHI2FWVB.js → admin-YX62OLYC.js} +3 -3
- package/dist/cli/{adr-IZLPLO22.js → adr-ZIBTTX7Z.js} +3 -3
- package/dist/cli/{analyze-KVSOQKBR.js → analyze-ON4OEPDL.js} +3 -3
- package/dist/cli/{archive-WPZCW554.js → archive-ERYQ2FIA.js} +3 -3
- package/dist/cli/{archive-stats-WHD5VHEV.js → archive-stats-SR6TEUWK.js} +3 -3
- package/dist/cli/{attention-2VMB3KVH.js → attention-7QG5ZBTR.js} +3 -3
- package/dist/cli/{backup-BAVK5CJ7.js → backup-H6ZZQQ2N.js} +3 -3
- package/dist/cli/{blockers-R7ZEQ6LJ.js → blockers-NPJJSZBY.js} +3 -3
- package/dist/cli/{briefing-YH4MMYOH.js → briefing-3FYOUG64.js} +3 -3
- package/dist/cli/{cancel-KGA3SYWK.js → cancel-HZOTQ4BE.js} +3 -3
- package/dist/cli/{check-AZWHJTTD.js → check-IIHHVNFI.js} +3 -3
- package/dist/cli/{check-H5B2XXGY.js → check-OLGR5CWG.js} +2 -2
- package/dist/cli/{chunk-W252UY2K.js → chunk-ERH4Y5NP.js} +2 -2
- package/dist/cli/{chunk-BHO4MDIG.js → chunk-XP6SX2L3.js} +27 -16
- package/dist/cli/{chunk-L7C4OX2Q.js → chunk-YOHU4YZR.js} +12 -12
- package/dist/cli/{claim-SK5MOKSJ.js → claim-CMOHFSIP.js} +7 -4
- package/dist/cli/{cli-FCA24OPB.js → cli-22I3TVQ6.js} +5 -3
- package/dist/cli/{complete-BFF4X6HK.js → complete-OEKCLG3T.js} +4 -4
- package/dist/cli/{complexity-TXKJZHOU.js → complexity-53ITDIUI.js} +3 -3
- package/dist/cli/{compliance-4MI65LPG.js → compliance-RDNPKCQ6.js} +3 -3
- package/dist/cli/{config-COKSPUT2.js → config-ITVFMHU5.js} +3 -3
- package/dist/cli/{consensus-RRXPPX67.js → consensus-2WSZWPYO.js} +3 -3
- package/dist/cli/{context-HT22SCS3.js → context-WFCFYPJJ.js} +3 -3
- package/dist/cli/{contribution-VSA57JFS.js → contribution-RUHPS6FX.js} +3 -3
- package/dist/cli/{current-KJ7CCTTD.js → current-YZ7CGXGT.js} +3 -3
- package/dist/cli/{daemon-VRWEUTN7.js → daemon-Y5DNGCZZ.js} +3 -3
- package/dist/cli/{dash-QZZ7MKIA.js → dash-SCN7JLBT.js} +3 -3
- package/dist/cli/{decompose-ZV33OBK5.js → decompose-NL6F4MBK.js} +3 -3
- package/dist/cli/{decomposition-UQJJX3M2.js → decomposition-MD7RHPVV.js} +3 -3
- package/dist/cli/{delete-ET54HY6L.js → delete-A4PTOYQM.js} +3 -3
- package/dist/cli/{deps-PG23WFS7.js → deps-RO4UFLT4.js} +3 -3
- package/dist/cli/{detect-SWKFRKE5.js → detect-L32DK3YN.js} +3 -3
- package/dist/cli/{diagnostics-4IDHTYD3.js → diagnostics-466CWMWE.js} +3 -3
- package/dist/cli/{docs-JBYY65YZ.js → docs-55IQUSXO.js} +2 -2
- package/dist/cli/{docs-B7NUWNTU.js → docs-WVUFA6BC.js} +3 -3
- package/dist/cli/{doctor-DD2CLRLW.js → doctor-U7MMUBCQ.js} +3 -3
- package/dist/cli/{done-S5DIVTHD.js → done-QVKUCDLN.js} +4 -4
- package/dist/cli/{export-46C5A74D.js → export-M2YLRHYD.js} +3 -3
- package/dist/cli/{export-tasks-6UNMIVFU.js → export-tasks-NX3ZBHTR.js} +3 -3
- package/dist/cli/{find-RYYG4T72.js → find-PJAXF3TJ.js} +3 -3
- package/dist/cli/{focus-6ZYKBB3X.js → focus-AIPRCXMU.js} +10 -11
- package/dist/cli/{focus-6TYPXSMJ.js → focus-DRLQTYOQ.js} +3 -3
- package/dist/cli/{goal-YBGATKPK.js → goal-L23JAJW7.js} +2 -2
- package/dist/cli/{grade-AKIKUBFW.js → grade-4VRPZKBR.js} +3 -3
- package/dist/cli/{graph-EVUDZAKA.js → graph-6AIDY77E.js} +3 -3
- package/dist/cli/{history-Y67LWTCM.js → history-AVZMXXLB.js} +3 -3
- package/dist/cli/{hook-IOHCSU6Q.js → hook-WWZYJUOI.js} +1 -1
- package/dist/cli/hook-entry.js +9 -0
- package/dist/cli/{import-PUMEN5LQ.js → import-W2OHHAQF.js} +3 -3
- package/dist/cli/{import-tasks-RUEFWYIB.js → import-tasks-GR4JMDUA.js} +3 -3
- package/dist/cli/index.js +101 -101
- package/dist/cli/{inject-HJHIY3CW.js → inject-ECLIOBLL.js} +3 -3
- package/dist/cli/{intelligence-EFO3HCSJ.js → intelligence-ZLZ5PFOT.js} +3 -3
- package/dist/cli/{issue-U3FSSWHA.js → issue-R45TQM5S.js} +3 -3
- package/dist/cli/{labels-TQONNWLS.js → labels-4ZXIF4AO.js} +3 -3
- package/dist/cli/{lifecycle-LOUWWVBD.js → lifecycle-SS7QFB25.js} +3 -3
- package/dist/cli/{list-OF3ZMSQ2.js → list-E45WPC5Y.js} +3 -3
- package/dist/cli/{llm-UNLMC6CY.js → llm-GJTUSLTS.js} +3 -3
- package/dist/cli/{log-KQNTR6WX.js → log-XZM76MD2.js} +3 -3
- package/dist/cli/{manifest-IUT3ZX56.js → manifest-GNOSRSG5.js} +3 -3
- package/dist/cli/{map-QZVI7MB7.js → map-JBELMD75.js} +3 -3
- package/dist/cli/{memory-RVZUZ3KT.js → memory-BMU4S4Z6.js} +3 -3
- package/dist/cli/{memory-XMZQTARP.js → memory-GTXFS3CF.js} +2 -2
- package/dist/cli/{migrate-claude-mem-6ILA3B45.js → migrate-claude-mem-WVCWM7C3.js} +3 -3
- package/dist/cli/{next-IXDXMKFL.js → next-FR4LSYXV.js} +3 -3
- package/dist/cli/{nexus-6G7ZDAB4.js → nexus-BVHBCN7P.js} +2 -2
- package/dist/cli/{nexus-CML2L24T.js → nexus-JEA4WUCA.js} +3 -3
- package/dist/cli/{ops-DBZS5LWW.js → ops-7R6KUNYR.js} +3 -3
- package/dist/cli/{orchestrate-NCHW5UDR.js → orchestrate-VRV64ICV.js} +2 -2
- package/dist/cli/{orchestrate-YIP7XPN7.js → orchestrate-X7U3FWJS.js} +3 -3
- package/dist/cli/{phase-TESXRZT5.js → phase-6SG6UXLH.js} +3 -3
- package/dist/cli/{pipeline-WX3WLKXT.js → pipeline-Z6AYKV6Q.js} +2 -2
- package/dist/cli/{pivot-HPVBX3YE.js → pivot-QWQCQDWE.js} +3 -3
- package/dist/cli/{plan-6RYWGUT5.js → plan-GBI3QHHC.js} +3 -3
- package/dist/cli/{playbook-6NY26NA5.js → playbook-RM3WK56W.js} +3 -3
- package/dist/cli/{promote-SQC7CYSU.js → promote-AWQS35MC.js} +3 -3
- package/dist/cli/{provenance-4ZKEAAUC.js → provenance-FHCWD66D.js} +3 -3
- package/dist/cli/{provider-EAAI2XE7.js → provider-34LLDDWT.js} +3 -3
- package/dist/cli/{reason-JC2YS7BY.js → reason-SVUVYX5J.js} +3 -3
- package/dist/cli/{reconcile-KVLNJ4CK.js → reconcile-FUX6CNSG.js} +3 -3
- package/dist/cli/{relates-VZY4IINV.js → relates-LGZRMRHL.js} +3 -3
- package/dist/cli/{release-IR2TTFCY.js → release-SXCMV7IT.js} +3 -3
- package/dist/cli/{reorder-TJATLS5B.js → reorder-W5SPFBD6.js} +3 -3
- package/dist/cli/{reparent-PX6GKLYW.js → reparent-ZBGWCXHI.js} +3 -3
- package/dist/cli/{req-MAOVHTRB.js → req-APSYAXJN.js} +3 -3
- package/dist/cli/{research-3A4WRI35.js → research-FUU2C35U.js} +3 -3
- package/dist/cli/{restore-ENPJZ7N6.js → restore-6WLDSWCZ.js} +3 -3
- package/dist/cli/{roadmap-XGKB3KAH.js → roadmap-UCAHABWQ.js} +3 -3
- package/dist/cli/{safestop-Y63JDX6V.js → safestop-KZYA7EVU.js} +3 -3
- package/dist/cli/{saga-7DP4DCSZ.js → saga-VAE6KIY4.js} +22 -4
- package/dist/cli/{selfimprove-NM7W5FJC.js → selfimprove-7G4IJCOX.js} +3 -3
- package/dist/cli/{selfimprove-N5JJNZSW.js → selfimprove-QJNMUYSC.js} +2 -2
- package/dist/cli/{sequence-TST2KXVP.js → sequence-EA2UTXCO.js} +3 -3
- package/dist/cli/{service-WJPO2JGJ.js → service-KPJHAMZE.js} +3 -3
- package/dist/cli/{session-H3W2SIZK.js → session-RVRWX2L3.js} +2 -2
- package/dist/cli/{session-HYFJ65LU.js → session-WB7DVSLC.js} +3 -3
- package/dist/cli/{show-JACWOIGO.js → show-PVCBFPKO.js} +3 -3
- package/dist/cli/{skills-4SMVUVXM.js → skills-FNZZWWEE.js} +3 -3
- package/dist/cli/{snapshot-RLNFB3A6.js → snapshot-QCJ73HT4.js} +3 -3
- package/dist/cli/{start-SDBDLKEF.js → start-QZC7Z5D7.js} +3 -3
- package/dist/cli/{stats-YXFH5EUJ.js → stats-ZOOYQ655.js} +3 -3
- package/dist/cli/{sticky-ZMHEQBY2.js → sticky-WHILUII3.js} +3 -3
- package/dist/cli/{stop-ZXGH2PIO.js → stop-YWIYWJCQ.js} +3 -3
- package/dist/cli/{sync-L6SZQGIP.js → sync-SSJRDC35.js} +3 -3
- package/dist/cli/{tasks-SZWO25XR.js → tasks-BQBEA4WT.js} +2 -2
- package/dist/cli/{tasks-EUTLJPHF.js → tasks-IQQS7ALI.js} +3 -3
- package/dist/cli/{testing-PWSJQMHZ.js → testing-4GP7PMNX.js} +3 -3
- package/dist/cli/{token-XXQAK5M3.js → token-W7KLVNQG.js} +3 -3
- package/dist/cli/{update-N3SADZED.js → update-SGQVA2AF.js} +3 -3
- package/dist/cli/{verify-NMTD3XQR.js → verify-GHGQDG2N.js} +3 -3
- package/dist/cli/{worktree-6TAA3O5Y.js → worktree-MET3Z6DE.js} +3 -3
- package/package.json +14 -14
- package/studio-dist/client/_app/immutable/chunks/BHug0C4v.js +2 -0
- package/studio-dist/client/_app/immutable/chunks/{HbYO5Hei.js → Bmu4Uagf.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{CCn1eLYI.js → DOoD86s9.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{CPjo4r-v.js → Db1Qtxvl.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Bb5_AOYB.js → Hrs4Fplw.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/OKQCHK8E.js +1 -0
- package/studio-dist/client/_app/immutable/entry/{app.DgnNm4vO.js → app.CvON-qxr.js} +2 -2
- package/studio-dist/client/_app/immutable/entry/start.BB-HQwuM.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{0.DJVn8usu.js → 0.CU7-qDP3.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.B1V9KuAO.js → 1.BhNtYO-M.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.Bid--6fc.js → 15.BCC8EvGK.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.Bi31GWbA.js → 16.B7d1iM0M.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.oyFaNqlO.js → 17.BJWoISXj.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.LRDOSwb7.js → 18.DQKXLXzz.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.B6qWolVD.js → 20.BfCZ2ujA.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/24.BaHqzeE-.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/25.DIqS_4Qb.js +39 -0
- package/studio-dist/client/_app/immutable/nodes/{26.CLV1RPsj.js → 26.Cn0Tgf-w.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{28.B9m_UNTl.js → 28.C6fQ4wYt.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{29.BLFaoK4P.js → 29.siHOv4PJ.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{3.C1by258z.js → 3.PZ-7pu8q.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/{0-DfMn7JPO.js → 0-DmnBnxJ-.js} +3 -3
- package/studio-dist/server/chunks/1-CvT-YIaN.js +9 -0
- package/studio-dist/server/chunks/{15-Bow-OdEH.js → 15-BfTAJSds.js} +3 -3
- package/studio-dist/server/chunks/{16-Bg0QBE9K.js → 16-DPMx08sU.js} +3 -3
- package/studio-dist/server/chunks/{17-D8sMRsv0.js → 17-CFYdFXqw.js} +3 -3
- package/studio-dist/server/chunks/{18-DILiukeH.js → 18-raIzyxuh.js} +3 -3
- package/studio-dist/server/chunks/{20-TLMma0Kj.js → 20-B6MyrMmq.js} +3 -3
- package/studio-dist/server/chunks/{23-DEuC4HS6.js → 23-DlXFHweb.js} +4 -2
- package/studio-dist/server/chunks/{24-BqCDVp-l.js → 24-BFqL-8qZ.js} +6 -4
- package/studio-dist/server/chunks/{25-BUbZYgye.js → 25-KgFBdV3Q.js} +12 -6
- package/studio-dist/server/chunks/{26-CKkRFUMZ.js → 26-kurc_nGq.js} +3 -3
- package/studio-dist/server/chunks/{28-CiVv4jji.js → 28-B9Yozjcu.js} +3 -3
- package/studio-dist/server/chunks/{29-CHrYKy9L.js → 29-Bn8aU2AL.js} +3 -3
- package/studio-dist/server/chunks/{3-gYsjrP4x.js → 3-DtfwsTmb.js} +3 -3
- package/studio-dist/server/chunks/{_layout.svelte--l6hNlPR.js → _layout.svelte-CnLNl25j.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-_ePwQLv-.js → _page.svelte-6xM2PTE6.js} +4 -2
- package/studio-dist/server/chunks/{_page.svelte-Bazc0M-R.js → _page.svelte-BEq1UyjN.js} +4 -2
- package/studio-dist/server/chunks/{_page.svelte-i-OpJ8hh.js → _page.svelte-B_z5LYTt.js} +12 -7
- package/studio-dist/server/chunks/{_page.svelte-BuNItPwJ.js → _page.svelte-BvoaEXxr.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-4iuq3sMq.js → _page.svelte-BzfVfYXo.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Bo-_lDMT.js → _page.svelte-CTFh-e75.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-BhbEfymp.js → _page.svelte-Co550vYI.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Di_yJukb.js → _page.svelte-DTRlvP2K.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-BU5Ywdbc.js → _page.svelte-DzNpmq9P.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-B4B3ix9_.js → _page.svelte-fUutfIuT.js} +15 -9
- package/studio-dist/server/chunks/{_page.svelte-HN5zo1D7.js → _page.svelte-ljOcBUWp.js} +6 -4
- package/studio-dist/server/chunks/{_server.ts-ZRNURQcY.js → _server.ts-DgosGcHX.js} +2 -2
- package/studio-dist/server/chunks/{client-DjdwNvXE.js → client-D3XCokOB.js} +2 -2
- package/studio-dist/server/chunks/{error.svelte-CvI8G3n5.js → error.svelte-B_GoTMR5.js} +3 -3
- package/studio-dist/server/chunks/{explorer-loader-fHkiu8Z4.js → explorer-loader-Cp5JnZ-n.js} +14 -5
- package/studio-dist/server/chunks/{internal-CzDgYL0v.js → internal-CIXL7TMF.js} +2 -2
- package/studio-dist/server/chunks/{stores-BykfIMKm.js → stores-CeAe6Ysl.js} +2 -2
- package/studio-dist/server/chunks/{tasks-Ch-fdBjA.js → tasks-CtL5gCpX.js} +9 -243
- package/studio-dist/server/chunks/tasks-adapter-BVlE_iD7.js +242 -0
- package/studio-dist/server/index.js +1 -1
- package/studio-dist/server/manifest.js +16 -16
- package/studio-dist/client/_app/immutable/chunks/BI_9v5pg.js +0 -1
- package/studio-dist/client/_app/immutable/chunks/h4IOtB0S.js +0 -2
- package/studio-dist/client/_app/immutable/entry/start.GE7kGfmK.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/24.DFeZnn8n.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/25.DkQVMouw.js +0 -39
- package/studio-dist/server/chunks/1-z5g10ZTg.js +0 -9
|
@@ -5,6 +5,8 @@ import { S as StatBlock } from './StatBlock-jNsxycS1.js';
|
|
|
5
5
|
import { B as Badge } from './Tabs-DQKDflnT.js';
|
|
6
6
|
import { M as Modal, a as Select, B as Button } from './ui-CkQ-pCs3.js';
|
|
7
7
|
import { H as Hover_label, E as EDGE_STYLE } from './no-face-up-B_3h6Hgs.js';
|
|
8
|
+
import { t as tasksToGraph } from './tasks-adapter-BVlE_iD7.js';
|
|
9
|
+
import '@cleocode/core/tasks/dependency-check';
|
|
8
10
|
|
|
9
11
|
//#region ../../node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/add.js
|
|
10
12
|
function add_default(d) {
|
|
@@ -437,245 +439,6 @@ function timeout_default(callback, delay, time) {
|
|
|
437
439
|
}, delay, time);
|
|
438
440
|
return t;
|
|
439
441
|
}
|
|
440
|
-
//#endregion
|
|
441
|
-
//#region src/lib/graph/adapters/tasks-adapter.ts
|
|
442
|
-
/**
|
|
443
|
-
* Priority → weight mapping. Clamped to [0, 1] so the renderer can use it
|
|
444
|
-
* as a radius multiplier.
|
|
445
|
-
*/
|
|
446
|
-
function priorityWeight(p) {
|
|
447
|
-
if (p === "critical") return 1;
|
|
448
|
-
if (p === "high") return .8;
|
|
449
|
-
if (p === "medium") return .6;
|
|
450
|
-
return .4;
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* Convert `updatedAt` ISO timestamp → freshness in [0, 1]. Tasks touched
|
|
454
|
-
* within an hour = 1; older than a week = 0; linear interpolation in
|
|
455
|
-
* between. Missing timestamps resolve to 0.
|
|
456
|
-
*/
|
|
457
|
-
function computeFreshness(isoUpdatedAt, now = Date.now()) {
|
|
458
|
-
if (!isoUpdatedAt) return 0;
|
|
459
|
-
const ts = Date.parse(isoUpdatedAt);
|
|
460
|
-
if (!Number.isFinite(ts)) return 0;
|
|
461
|
-
const ageMinutes = (now - ts) / 6e4;
|
|
462
|
-
if (ageMinutes <= 60) return 1;
|
|
463
|
-
const weekMinutes = 1440 * 7;
|
|
464
|
-
if (ageMinutes >= weekMinutes) return 0;
|
|
465
|
-
return 1 - (ageMinutes - 60) / (weekMinutes - 60);
|
|
466
|
-
}
|
|
467
|
-
/**
|
|
468
|
-
* Parse the free-form `blockedBy` field (JSON array or CSV) into a clean
|
|
469
|
-
* list of blocker task ids. Never throws — invalid inputs yield `[]`.
|
|
470
|
-
*
|
|
471
|
-
* @param raw - Raw `task.blockedBy` string.
|
|
472
|
-
* @returns Deduplicated id list.
|
|
473
|
-
*/
|
|
474
|
-
function parseBlockedBy(raw) {
|
|
475
|
-
if (!raw) return [];
|
|
476
|
-
const trimmed = raw.trim();
|
|
477
|
-
if (trimmed.length === 0) return [];
|
|
478
|
-
if (trimmed.startsWith("[")) try {
|
|
479
|
-
const parsed = JSON.parse(trimmed);
|
|
480
|
-
if (Array.isArray(parsed)) {
|
|
481
|
-
const ids = parsed.filter((x) => typeof x === "string");
|
|
482
|
-
return [...new Set(ids.map((s) => s.trim()).filter((s) => s.length > 0))];
|
|
483
|
-
}
|
|
484
|
-
} catch {}
|
|
485
|
-
return [...new Set(trimmed.split(",").map((s) => s.trim()).filter((s) => s.length > 0))];
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Walk `parentId` pointers to find the top-level ancestor epic id.
|
|
489
|
-
*
|
|
490
|
-
* - If `task.type === 'epic'` and it has no epic parent, returns
|
|
491
|
-
* `task.id`.
|
|
492
|
-
* - If an ancestor of type `epic` exists, returns the OUTERMOST one.
|
|
493
|
-
* - If no ancestor is an epic, returns `null`.
|
|
494
|
-
*
|
|
495
|
-
* @param task - The candidate task.
|
|
496
|
-
* @param byId - Id → Task lookup built once by the caller.
|
|
497
|
-
* @returns Root-epic id or `null`.
|
|
498
|
-
*/
|
|
499
|
-
function findRootEpicId$1(task, byId) {
|
|
500
|
-
const seen = /* @__PURE__ */ new Set();
|
|
501
|
-
let lastEpic = task.type === "epic" ? task.id : null;
|
|
502
|
-
let cursor = task;
|
|
503
|
-
while (cursor) {
|
|
504
|
-
if (seen.has(cursor.id)) break;
|
|
505
|
-
seen.add(cursor.id);
|
|
506
|
-
if (cursor.type === "epic") lastEpic = cursor.id;
|
|
507
|
-
if (!cursor.parentId) break;
|
|
508
|
-
cursor = byId.get(cursor.parentId);
|
|
509
|
-
}
|
|
510
|
-
return lastEpic;
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* Project a `Task` into a {@link GraphNode}. The node kind = task type
|
|
514
|
-
* (or `'task'` when the type is missing), category = root epic id.
|
|
515
|
-
*
|
|
516
|
-
* @param task - Input task.
|
|
517
|
-
* @param rootEpicId - Pre-resolved root epic id, or `null`.
|
|
518
|
-
* @returns Graph node with substrate = `'tasks'`.
|
|
519
|
-
*/
|
|
520
|
-
function toGraphNode(task, rootEpicId) {
|
|
521
|
-
return {
|
|
522
|
-
id: task.id,
|
|
523
|
-
substrate: "tasks",
|
|
524
|
-
kind: task.type ?? "task",
|
|
525
|
-
label: task.title,
|
|
526
|
-
category: rootEpicId,
|
|
527
|
-
weight: priorityWeight(task.priority),
|
|
528
|
-
freshness: computeFreshness(task.updatedAt ?? task.createdAt ?? null),
|
|
529
|
-
meta: {
|
|
530
|
-
status: task.status,
|
|
531
|
-
priority: task.priority,
|
|
532
|
-
parentId: task.parentId ?? null,
|
|
533
|
-
updatedAt: task.updatedAt ?? null
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
/**
|
|
538
|
-
* Build the deterministic edge id. Including the kind lets `parent` and
|
|
539
|
-
* `depends` edges coexist between the same two endpoints without
|
|
540
|
-
* colliding.
|
|
541
|
-
*/
|
|
542
|
-
function edgeId(source, target, kind) {
|
|
543
|
-
return `${source}->${target}:${kind}`;
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* Main entry point — project a Task bundle into the shared graph kit
|
|
547
|
-
* shape.
|
|
548
|
-
*
|
|
549
|
-
* Behaviours:
|
|
550
|
-
*
|
|
551
|
-
* 1. Tasks are de-duplicated by id. First occurrence wins.
|
|
552
|
-
* 2. `opts.epicScope` filters to the subtree rooted at the id. When
|
|
553
|
-
* omitted the full bundle projects.
|
|
554
|
-
* 3. `includeCancelled=false` (default) hides cancelled epics. Cancelled
|
|
555
|
-
* tasks/subtasks continue to project with a muted palette.
|
|
556
|
-
* 4. `includeArchived=false` (default) hides archived tasks.
|
|
557
|
-
* 5. Clusters are one per root epic id, filtered to groups of ≥ 3
|
|
558
|
-
* members so isolated subtrees do not clutter the backdrop layer.
|
|
559
|
-
*
|
|
560
|
-
* @param tasks - All tasks from the loader bundle.
|
|
561
|
-
* @param deps - All dependency edges from the loader bundle.
|
|
562
|
-
* @param opts - Optional scope / filter flags.
|
|
563
|
-
* @returns Projected nodes / edges / clusters.
|
|
564
|
-
*/
|
|
565
|
-
function tasksToGraph(tasks, deps, opts = {}) {
|
|
566
|
-
const includeCancelled = opts.includeCancelled ?? false;
|
|
567
|
-
const includeArchived = opts.includeArchived ?? false;
|
|
568
|
-
const byId = /* @__PURE__ */ new Map();
|
|
569
|
-
for (const t of tasks) if (!byId.has(t.id)) byId.set(t.id, t);
|
|
570
|
-
const inScope = /* @__PURE__ */ new Set();
|
|
571
|
-
const scopeRoot = opts.epicScope ?? null;
|
|
572
|
-
function isInScope(task) {
|
|
573
|
-
if (!scopeRoot) return true;
|
|
574
|
-
let cursor = task;
|
|
575
|
-
const seen = /* @__PURE__ */ new Set();
|
|
576
|
-
while (cursor) {
|
|
577
|
-
if (seen.has(cursor.id)) return false;
|
|
578
|
-
if (cursor.id === scopeRoot) return true;
|
|
579
|
-
seen.add(cursor.id);
|
|
580
|
-
if (!cursor.parentId) return false;
|
|
581
|
-
cursor = byId.get(cursor.parentId);
|
|
582
|
-
}
|
|
583
|
-
return false;
|
|
584
|
-
}
|
|
585
|
-
for (const task of byId.values()) {
|
|
586
|
-
if (!includeArchived && task.status === "archived") continue;
|
|
587
|
-
if (!includeCancelled && task.type === "epic" && task.status === "cancelled") continue;
|
|
588
|
-
if (!isInScope(task)) continue;
|
|
589
|
-
inScope.add(task.id);
|
|
590
|
-
}
|
|
591
|
-
const incomingBlockers = /* @__PURE__ */ new Map();
|
|
592
|
-
for (const task of byId.values()) {
|
|
593
|
-
const ids = parseBlockedBy(task.blockedBy);
|
|
594
|
-
if (ids.length > 0) incomingBlockers.set(task.id, ids);
|
|
595
|
-
}
|
|
596
|
-
for (const d of deps) {
|
|
597
|
-
const list = incomingBlockers.get(d.taskId) ?? [];
|
|
598
|
-
if (!list.includes(d.dependsOn)) list.push(d.dependsOn);
|
|
599
|
-
incomingBlockers.set(d.taskId, list);
|
|
600
|
-
}
|
|
601
|
-
const nodes = [];
|
|
602
|
-
const rootEpicByTask = /* @__PURE__ */ new Map();
|
|
603
|
-
for (const task of byId.values()) {
|
|
604
|
-
if (!inScope.has(task.id)) continue;
|
|
605
|
-
const rootEpic = findRootEpicId$1(task, byId);
|
|
606
|
-
rootEpicByTask.set(task.id, rootEpic);
|
|
607
|
-
const projected = toGraphNode(task, rootEpic);
|
|
608
|
-
if (task.status === "pending") {
|
|
609
|
-
if ((incomingBlockers.get(task.id) ?? []).some((bid) => {
|
|
610
|
-
const blocker = byId.get(bid);
|
|
611
|
-
return blocker ? blocker.status !== "done" : false;
|
|
612
|
-
})) projected.meta = {
|
|
613
|
-
...projected.meta,
|
|
614
|
-
blocked: true
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
nodes.push(projected);
|
|
618
|
-
}
|
|
619
|
-
const parentEdges = [];
|
|
620
|
-
const blocksEdges = [];
|
|
621
|
-
const dependsEdges = [];
|
|
622
|
-
for (const task of byId.values()) {
|
|
623
|
-
if (!inScope.has(task.id)) continue;
|
|
624
|
-
if (task.parentId && inScope.has(task.parentId)) parentEdges.push({
|
|
625
|
-
id: edgeId(task.parentId, task.id, "parent"),
|
|
626
|
-
source: task.parentId,
|
|
627
|
-
target: task.id,
|
|
628
|
-
kind: "parent",
|
|
629
|
-
weight: 1,
|
|
630
|
-
directional: false
|
|
631
|
-
});
|
|
632
|
-
for (const blockerId of parseBlockedBy(task.blockedBy)) if (inScope.has(blockerId)) blocksEdges.push({
|
|
633
|
-
id: edgeId(blockerId, task.id, "blocks"),
|
|
634
|
-
source: blockerId,
|
|
635
|
-
target: task.id,
|
|
636
|
-
kind: "blocks",
|
|
637
|
-
weight: .8,
|
|
638
|
-
directional: true
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
for (const d of deps) if (inScope.has(d.taskId) && inScope.has(d.dependsOn)) dependsEdges.push({
|
|
642
|
-
id: edgeId(d.dependsOn, d.taskId, "depends"),
|
|
643
|
-
source: d.dependsOn,
|
|
644
|
-
target: d.taskId,
|
|
645
|
-
kind: "depends",
|
|
646
|
-
weight: .7,
|
|
647
|
-
directional: true
|
|
648
|
-
});
|
|
649
|
-
const edges = [
|
|
650
|
-
...parentEdges,
|
|
651
|
-
...blocksEdges,
|
|
652
|
-
...dependsEdges
|
|
653
|
-
];
|
|
654
|
-
const byEpic = /* @__PURE__ */ new Map();
|
|
655
|
-
for (const node of nodes) {
|
|
656
|
-
const epicId = node.category;
|
|
657
|
-
if (!epicId) continue;
|
|
658
|
-
const list = byEpic.get(epicId);
|
|
659
|
-
if (list) list.push(node.id);
|
|
660
|
-
else byEpic.set(epicId, [node.id]);
|
|
661
|
-
}
|
|
662
|
-
const clusters = [];
|
|
663
|
-
for (const [epicId, memberIds] of byEpic.entries()) {
|
|
664
|
-
if (memberIds.length < 3) continue;
|
|
665
|
-
const epicTask = byId.get(epicId);
|
|
666
|
-
clusters.push({
|
|
667
|
-
id: epicId,
|
|
668
|
-
label: epicTask ? `${epicId}: ${epicTask.title}` : epicId,
|
|
669
|
-
substrate: "tasks",
|
|
670
|
-
memberIds
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
return {
|
|
674
|
-
nodes,
|
|
675
|
-
edges,
|
|
676
|
-
clusters
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
442
|
var namespaces_default = {
|
|
680
443
|
svg: "http://www.w3.org/2000/svg",
|
|
681
444
|
xhtml: "http://www.w3.org/1999/xhtml",
|
|
@@ -3675,6 +3438,7 @@ function GraphTab($$renderer, $$props) {
|
|
|
3675
3438
|
* Minimal filter handle surface required by {@link GraphTab}.
|
|
3676
3439
|
*/
|
|
3677
3440
|
/** Full task set from the {@link ExplorerBundle}. */
|
|
3441
|
+
/** Full prerequisite evidence, including archived rows outside the displayed set. */
|
|
3678
3442
|
/** All dependency edges from the bundle. */
|
|
3679
3443
|
/** Shared filter store — drives visibility + selection. */
|
|
3680
3444
|
/** Distinct labels across the bundle (drives the labels chip group). */
|
|
@@ -3685,17 +3449,19 @@ function GraphTab($$renderer, $$props) {
|
|
|
3685
3449
|
* so this module stays import-safe in the vitest node environment that
|
|
3686
3450
|
* exercises its pure exports.
|
|
3687
3451
|
*/
|
|
3688
|
-
let { tasks, deps, filters, activeProjectId = null } = $$props;
|
|
3452
|
+
let { tasks, dependencyStatuses, deps, filters, activeProjectId = null } = $$props;
|
|
3689
3453
|
const visibleTaskSet = derived(() => {
|
|
3690
3454
|
const s = /* @__PURE__ */ new Set();
|
|
3691
3455
|
for (const t of tasks) if (passesFilter(t, filters.state)) s.add(t.id);
|
|
3692
3456
|
return s;
|
|
3693
3457
|
});
|
|
3694
3458
|
const visibleTasks = derived(() => tasks.filter((t) => visibleTaskSet().has(t.id)));
|
|
3459
|
+
const prerequisiteStatuses = derived(() => dependencyStatuses ?? Object.fromEntries(tasks.map((task) => [task.id, task.status])));
|
|
3695
3460
|
const graph = derived(() => tasksToGraph(visibleTasks(), deps, {
|
|
3696
3461
|
epicScope: filters.state.epic ?? null,
|
|
3697
3462
|
includeCancelled: filters.state.cancelled,
|
|
3698
|
-
includeArchived: false
|
|
3463
|
+
includeArchived: false,
|
|
3464
|
+
dependencyStatuses: prerequisiteStatuses()
|
|
3699
3465
|
}));
|
|
3700
3466
|
const VISIBLE_EDGE_KINDS = new Set([
|
|
3701
3467
|
"parent",
|
|
@@ -4962,5 +4728,5 @@ function WorkerStreamPanel($$renderer, $$props) {
|
|
|
4962
4728
|
});
|
|
4963
4729
|
}
|
|
4964
4730
|
|
|
4965
|
-
export { ConductorBar as C, DetailDrawer as D, EpicProgressCard as E, FilterChipGroup as F, GraphTab as G, HierarchyTab as H, KanbanTab as K, LabelsFilter as L, PriorityBadge as P, RecentActivityFeed as R, SvgRenderer as S, TaskSearchBox as T, WorkerStreamPanel as W, StatusBadge as a, TaskCard as b, formatTime as f, gatesFromJson as g
|
|
4966
|
-
//# sourceMappingURL=tasks-
|
|
4731
|
+
export { ConductorBar as C, DetailDrawer as D, EpicProgressCard as E, FilterChipGroup as F, GraphTab as G, HierarchyTab as H, KanbanTab as K, LabelsFilter as L, PriorityBadge as P, RecentActivityFeed as R, SvgRenderer as S, TaskSearchBox as T, WorkerStreamPanel as W, StatusBadge as a, TaskCard as b, formatTime as f, gatesFromJson as g };
|
|
4732
|
+
//# sourceMappingURL=tasks-CtL5gCpX.js.map
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { isReadinessDependencySatisfied } from '@cleocode/core/tasks/dependency-check';
|
|
2
|
+
|
|
3
|
+
//#region src/lib/graph/adapters/tasks-adapter.ts
|
|
4
|
+
/**
|
|
5
|
+
* Priority → weight mapping. Clamped to [0, 1] so the renderer can use it
|
|
6
|
+
* as a radius multiplier.
|
|
7
|
+
*/
|
|
8
|
+
function priorityWeight(p) {
|
|
9
|
+
if (p === "critical") return 1;
|
|
10
|
+
if (p === "high") return .8;
|
|
11
|
+
if (p === "medium") return .6;
|
|
12
|
+
return .4;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Convert `updatedAt` ISO timestamp → freshness in [0, 1]. Tasks touched
|
|
16
|
+
* within an hour = 1; older than a week = 0; linear interpolation in
|
|
17
|
+
* between. Missing timestamps resolve to 0.
|
|
18
|
+
*/
|
|
19
|
+
function computeFreshness(isoUpdatedAt, now = Date.now()) {
|
|
20
|
+
if (!isoUpdatedAt) return 0;
|
|
21
|
+
const ts = Date.parse(isoUpdatedAt);
|
|
22
|
+
if (!Number.isFinite(ts)) return 0;
|
|
23
|
+
const ageMinutes = (now - ts) / 6e4;
|
|
24
|
+
if (ageMinutes <= 60) return 1;
|
|
25
|
+
const weekMinutes = 1440 * 7;
|
|
26
|
+
if (ageMinutes >= weekMinutes) return 0;
|
|
27
|
+
return 1 - (ageMinutes - 60) / (weekMinutes - 60);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Parse the free-form `blockedBy` field (JSON array or CSV) into a clean
|
|
31
|
+
* list of blocker task ids. Never throws — invalid inputs yield `[]`.
|
|
32
|
+
*
|
|
33
|
+
* @param raw - Raw `task.blockedBy` string.
|
|
34
|
+
* @returns Deduplicated id list.
|
|
35
|
+
*/
|
|
36
|
+
function parseBlockedBy(raw) {
|
|
37
|
+
if (!raw) return [];
|
|
38
|
+
const trimmed = raw.trim();
|
|
39
|
+
if (trimmed.length === 0) return [];
|
|
40
|
+
if (trimmed.startsWith("[")) try {
|
|
41
|
+
const parsed = JSON.parse(trimmed);
|
|
42
|
+
if (Array.isArray(parsed)) {
|
|
43
|
+
const ids = parsed.filter((x) => typeof x === "string");
|
|
44
|
+
return [...new Set(ids.map((s) => s.trim()).filter((s) => s.length > 0))];
|
|
45
|
+
}
|
|
46
|
+
} catch {}
|
|
47
|
+
return [...new Set(trimmed.split(",").map((s) => s.trim()).filter((s) => s.length > 0))];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Walk `parentId` pointers to find the top-level ancestor epic id.
|
|
51
|
+
*
|
|
52
|
+
* - If `task.type === 'epic'` and it has no epic parent, returns
|
|
53
|
+
* `task.id`.
|
|
54
|
+
* - If an ancestor of type `epic` exists, returns the OUTERMOST one.
|
|
55
|
+
* - If no ancestor is an epic, returns `null`.
|
|
56
|
+
*
|
|
57
|
+
* @param task - The candidate task.
|
|
58
|
+
* @param byId - Id → Task lookup built once by the caller.
|
|
59
|
+
* @returns Root-epic id or `null`.
|
|
60
|
+
*/
|
|
61
|
+
function findRootEpicId(task, byId) {
|
|
62
|
+
const seen = /* @__PURE__ */ new Set();
|
|
63
|
+
let lastEpic = task.type === "epic" ? task.id : null;
|
|
64
|
+
let cursor = task;
|
|
65
|
+
while (cursor) {
|
|
66
|
+
if (seen.has(cursor.id)) break;
|
|
67
|
+
seen.add(cursor.id);
|
|
68
|
+
if (cursor.type === "epic") lastEpic = cursor.id;
|
|
69
|
+
if (!cursor.parentId) break;
|
|
70
|
+
cursor = byId.get(cursor.parentId);
|
|
71
|
+
}
|
|
72
|
+
return lastEpic;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Project a `Task` into a {@link GraphNode}. The node kind = task type
|
|
76
|
+
* (or `'task'` when the type is missing), category = root epic id.
|
|
77
|
+
*
|
|
78
|
+
* @param task - Input task.
|
|
79
|
+
* @param rootEpicId - Pre-resolved root epic id, or `null`.
|
|
80
|
+
* @returns Graph node with substrate = `'tasks'`.
|
|
81
|
+
*/
|
|
82
|
+
function toGraphNode(task, rootEpicId) {
|
|
83
|
+
return {
|
|
84
|
+
id: task.id,
|
|
85
|
+
substrate: "tasks",
|
|
86
|
+
kind: task.type ?? "task",
|
|
87
|
+
label: task.title,
|
|
88
|
+
category: rootEpicId,
|
|
89
|
+
weight: priorityWeight(task.priority),
|
|
90
|
+
freshness: computeFreshness(task.updatedAt ?? task.createdAt ?? null),
|
|
91
|
+
meta: {
|
|
92
|
+
status: task.status,
|
|
93
|
+
priority: task.priority,
|
|
94
|
+
parentId: task.parentId ?? null,
|
|
95
|
+
updatedAt: task.updatedAt ?? null
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Build the deterministic edge id. Including the kind lets `parent` and
|
|
101
|
+
* `depends` edges coexist between the same two endpoints without
|
|
102
|
+
* colliding.
|
|
103
|
+
*/
|
|
104
|
+
function edgeId(source, target, kind) {
|
|
105
|
+
return `${source}->${target}:${kind}`;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Main entry point — project a Task bundle into the shared graph kit
|
|
109
|
+
* shape.
|
|
110
|
+
*
|
|
111
|
+
* Behaviours:
|
|
112
|
+
*
|
|
113
|
+
* 1. Tasks are de-duplicated by id. First occurrence wins.
|
|
114
|
+
* 2. `opts.epicScope` filters to the subtree rooted at the id. When
|
|
115
|
+
* omitted the full bundle projects.
|
|
116
|
+
* 3. `includeCancelled=false` (default) hides cancelled epics. Cancelled
|
|
117
|
+
* tasks/subtasks continue to project with a muted palette.
|
|
118
|
+
* 4. `includeArchived=false` (default) hides archived tasks.
|
|
119
|
+
* 5. Clusters are one per root epic id, filtered to groups of ≥ 3
|
|
120
|
+
* members so isolated subtrees do not clutter the backdrop layer.
|
|
121
|
+
*
|
|
122
|
+
* @param tasks - Tasks selected for display; prerequisite evidence may be supplied separately.
|
|
123
|
+
* @param deps - All dependency edges from the loader bundle.
|
|
124
|
+
* @param opts - Optional scope / filter flags.
|
|
125
|
+
* @returns Projected nodes / edges / clusters.
|
|
126
|
+
*/
|
|
127
|
+
function tasksToGraph(tasks, deps, opts = {}) {
|
|
128
|
+
const includeCancelled = opts.includeCancelled ?? false;
|
|
129
|
+
const includeArchived = opts.includeArchived ?? false;
|
|
130
|
+
const byId = /* @__PURE__ */ new Map();
|
|
131
|
+
for (const t of tasks) if (!byId.has(t.id)) byId.set(t.id, t);
|
|
132
|
+
const inScope = /* @__PURE__ */ new Set();
|
|
133
|
+
const scopeRoot = opts.epicScope ?? null;
|
|
134
|
+
function isInScope(task) {
|
|
135
|
+
if (!scopeRoot) return true;
|
|
136
|
+
let cursor = task;
|
|
137
|
+
const seen = /* @__PURE__ */ new Set();
|
|
138
|
+
while (cursor) {
|
|
139
|
+
if (seen.has(cursor.id)) return false;
|
|
140
|
+
if (cursor.id === scopeRoot) return true;
|
|
141
|
+
seen.add(cursor.id);
|
|
142
|
+
if (!cursor.parentId) return false;
|
|
143
|
+
cursor = byId.get(cursor.parentId);
|
|
144
|
+
}
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
for (const task of byId.values()) {
|
|
148
|
+
if (!includeArchived && task.status === "archived") continue;
|
|
149
|
+
if (!includeCancelled && task.type === "epic" && task.status === "cancelled") continue;
|
|
150
|
+
if (!isInScope(task)) continue;
|
|
151
|
+
inScope.add(task.id);
|
|
152
|
+
}
|
|
153
|
+
const incomingBlockers = /* @__PURE__ */ new Map();
|
|
154
|
+
for (const task of byId.values()) {
|
|
155
|
+
const ids = parseBlockedBy(task.blockedBy);
|
|
156
|
+
if (ids.length > 0) incomingBlockers.set(task.id, ids);
|
|
157
|
+
}
|
|
158
|
+
for (const d of deps) {
|
|
159
|
+
const list = incomingBlockers.get(d.taskId) ?? [];
|
|
160
|
+
if (!list.includes(d.dependsOn)) list.push(d.dependsOn);
|
|
161
|
+
incomingBlockers.set(d.taskId, list);
|
|
162
|
+
}
|
|
163
|
+
const nodes = [];
|
|
164
|
+
const rootEpicByTask = /* @__PURE__ */ new Map();
|
|
165
|
+
for (const task of byId.values()) {
|
|
166
|
+
if (!inScope.has(task.id)) continue;
|
|
167
|
+
const rootEpic = findRootEpicId(task, byId);
|
|
168
|
+
rootEpicByTask.set(task.id, rootEpic);
|
|
169
|
+
const projected = toGraphNode(task, rootEpic);
|
|
170
|
+
if (task.status === "pending") {
|
|
171
|
+
if ((incomingBlockers.get(task.id) ?? []).some((bid) => {
|
|
172
|
+
return !isReadinessDependencySatisfied(opts.dependencyStatuses ? opts.dependencyStatuses[bid] : byId.get(bid)?.status);
|
|
173
|
+
})) projected.meta = {
|
|
174
|
+
...projected.meta,
|
|
175
|
+
blocked: true
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
nodes.push(projected);
|
|
179
|
+
}
|
|
180
|
+
const parentEdges = [];
|
|
181
|
+
const blocksEdges = [];
|
|
182
|
+
const dependsEdges = [];
|
|
183
|
+
for (const task of byId.values()) {
|
|
184
|
+
if (!inScope.has(task.id)) continue;
|
|
185
|
+
if (task.parentId && inScope.has(task.parentId)) parentEdges.push({
|
|
186
|
+
id: edgeId(task.parentId, task.id, "parent"),
|
|
187
|
+
source: task.parentId,
|
|
188
|
+
target: task.id,
|
|
189
|
+
kind: "parent",
|
|
190
|
+
weight: 1,
|
|
191
|
+
directional: false
|
|
192
|
+
});
|
|
193
|
+
for (const blockerId of parseBlockedBy(task.blockedBy)) if (inScope.has(blockerId)) blocksEdges.push({
|
|
194
|
+
id: edgeId(blockerId, task.id, "blocks"),
|
|
195
|
+
source: blockerId,
|
|
196
|
+
target: task.id,
|
|
197
|
+
kind: "blocks",
|
|
198
|
+
weight: .8,
|
|
199
|
+
directional: true
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
for (const d of deps) if (inScope.has(d.taskId) && inScope.has(d.dependsOn)) dependsEdges.push({
|
|
203
|
+
id: edgeId(d.dependsOn, d.taskId, "depends"),
|
|
204
|
+
source: d.dependsOn,
|
|
205
|
+
target: d.taskId,
|
|
206
|
+
kind: "depends",
|
|
207
|
+
weight: .7,
|
|
208
|
+
directional: true
|
|
209
|
+
});
|
|
210
|
+
const edges = [
|
|
211
|
+
...parentEdges,
|
|
212
|
+
...blocksEdges,
|
|
213
|
+
...dependsEdges
|
|
214
|
+
];
|
|
215
|
+
const byEpic = /* @__PURE__ */ new Map();
|
|
216
|
+
for (const node of nodes) {
|
|
217
|
+
const epicId = node.category;
|
|
218
|
+
if (!epicId) continue;
|
|
219
|
+
const list = byEpic.get(epicId);
|
|
220
|
+
if (list) list.push(node.id);
|
|
221
|
+
else byEpic.set(epicId, [node.id]);
|
|
222
|
+
}
|
|
223
|
+
const clusters = [];
|
|
224
|
+
for (const [epicId, memberIds] of byEpic.entries()) {
|
|
225
|
+
if (memberIds.length < 3) continue;
|
|
226
|
+
const epicTask = byId.get(epicId);
|
|
227
|
+
clusters.push({
|
|
228
|
+
id: epicId,
|
|
229
|
+
label: epicTask ? `${epicId}: ${epicTask.title}` : epicId,
|
|
230
|
+
substrate: "tasks",
|
|
231
|
+
memberIds
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
return {
|
|
235
|
+
nodes,
|
|
236
|
+
edges,
|
|
237
|
+
clusters
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export { parseBlockedBy as p, tasksToGraph as t };
|
|
242
|
+
//# sourceMappingURL=tasks-adapter-BVlE_iD7.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as __commonJSMin } from './chunks/index-server-BgfA6C0S.js';
|
|
2
|
-
import { c as coalesce_to_error, g as get_status, a as get_message, w as with_request_store, p as parse, o as options, I as IN_WEBCONTAINER, b as get_hooks, n as noop, T as TRAILING_SLASH_PARAM, d as INVALIDATED_PARAM, e as decode_pathname, f as find_route, h as normalize_path, i as disable_search, m as merge_tracing, v as validate_layout_server_exports, j as validate_layout_exports, k as validate_page_server_exports, l as validate_page_exports, q as noop_span, r as create_remote_key, s as hash, t as compact, u as once, x as normalize_error, y as resolve, z as parse_remote_arg, A as stringify, B as make_trackable, C as stringify$1, D as read_implementation, E as split_remote_key, N as NULL_BODY_STATUS, F as set_read_implementation } from './chunks/internal-
|
|
2
|
+
import { c as coalesce_to_error, g as get_status, a as get_message, w as with_request_store, p as parse, o as options, I as IN_WEBCONTAINER, b as get_hooks, n as noop, T as TRAILING_SLASH_PARAM, d as INVALIDATED_PARAM, e as decode_pathname, f as find_route, h as normalize_path, i as disable_search, m as merge_tracing, v as validate_layout_server_exports, j as validate_layout_exports, k as validate_page_server_exports, l as validate_page_exports, q as noop_span, r as create_remote_key, s as hash, t as compact, u as once, x as normalize_error, y as resolve, z as parse_remote_arg, A as stringify, B as make_trackable, C as stringify$1, D as read_implementation, E as split_remote_key, N as NULL_BODY_STATUS, F as set_read_implementation } from './chunks/internal-CIXL7TMF.js';
|
|
3
3
|
import { H as HttpError, a as text_decoder, S as SvelteKitError, h as has_resolution_suffix, c as has_data_suffix, s as strip_resolution_suffix, d as strip_data_suffix, e as add_data_suffix, f as add_resolution_suffix, R as Redirect, t as text_encoder, A as ActionFailure, g as get_relative_path, i as base64_encode } from './chunks/utils-g564cUMV.js';
|
|
4
4
|
import { j as json, t as text, e as error, i as isRedirect } from './chunks/exports-Dg-gdPPq.js';
|
|
5
5
|
import { u as uneval, aa as writable, ab as readable } from './chunks/dev-Br5zieNA.js';
|
|
@@ -10,12 +10,12 @@ return {
|
|
|
10
10
|
assets: new Set(["favicon.png"]),
|
|
11
11
|
mimeTypes: {".png":"image/png"},
|
|
12
12
|
_: {
|
|
13
|
-
client: {start:"_app/immutable/entry/start.
|
|
13
|
+
client: {start:"_app/immutable/entry/start.BB-HQwuM.js",app:"_app/immutable/entry/app.CvON-qxr.js",imports:["_app/immutable/entry/start.BB-HQwuM.js","_app/immutable/chunks/DOoD86s9.js","_app/immutable/chunks/DGftG5oL.js","_app/immutable/entry/app.CvON-qxr.js","_app/immutable/chunks/DGftG5oL.js","_app/immutable/chunks/C6jhAnil.js","_app/immutable/chunks/B8WnZMYa.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
14
14
|
nodes: [
|
|
15
|
-
__memo(() => import('./chunks/0-
|
|
16
|
-
__memo(() => import('./chunks/1-
|
|
15
|
+
__memo(() => import('./chunks/0-DmnBnxJ-.js')),
|
|
16
|
+
__memo(() => import('./chunks/1-CvT-YIaN.js')),
|
|
17
17
|
__memo(() => import('./chunks/2-q7c9jKfs.js')),
|
|
18
|
-
__memo(() => import('./chunks/3-
|
|
18
|
+
__memo(() => import('./chunks/3-DtfwsTmb.js')),
|
|
19
19
|
__memo(() => import('./chunks/4-C9BMSh4K.js')),
|
|
20
20
|
__memo(() => import('./chunks/5-C0CF4WKG.js')),
|
|
21
21
|
__memo(() => import('./chunks/6-BWyOJust.js')),
|
|
@@ -27,21 +27,21 @@ return {
|
|
|
27
27
|
__memo(() => import('./chunks/12-WE1u104t.js')),
|
|
28
28
|
__memo(() => import('./chunks/13-joBDoxhK.js')),
|
|
29
29
|
__memo(() => import('./chunks/14-Doj5F4uJ.js')),
|
|
30
|
-
__memo(() => import('./chunks/15-
|
|
31
|
-
__memo(() => import('./chunks/16-
|
|
32
|
-
__memo(() => import('./chunks/17-
|
|
33
|
-
__memo(() => import('./chunks/18-
|
|
30
|
+
__memo(() => import('./chunks/15-BfTAJSds.js')),
|
|
31
|
+
__memo(() => import('./chunks/16-DPMx08sU.js')),
|
|
32
|
+
__memo(() => import('./chunks/17-CFYdFXqw.js')),
|
|
33
|
+
__memo(() => import('./chunks/18-raIzyxuh.js')),
|
|
34
34
|
__memo(() => import('./chunks/19-BAQHPrMB.js')),
|
|
35
|
-
__memo(() => import('./chunks/20-
|
|
35
|
+
__memo(() => import('./chunks/20-B6MyrMmq.js')),
|
|
36
36
|
__memo(() => import('./chunks/21-qhGjkW41.js')),
|
|
37
37
|
__memo(() => import('./chunks/22-Byy16hFA.js')),
|
|
38
|
-
__memo(() => import('./chunks/23-
|
|
39
|
-
__memo(() => import('./chunks/24-
|
|
40
|
-
__memo(() => import('./chunks/25-
|
|
41
|
-
__memo(() => import('./chunks/26-
|
|
38
|
+
__memo(() => import('./chunks/23-DlXFHweb.js')),
|
|
39
|
+
__memo(() => import('./chunks/24-BFqL-8qZ.js')),
|
|
40
|
+
__memo(() => import('./chunks/25-KgFBdV3Q.js').then(function (n) { return n._; })),
|
|
41
|
+
__memo(() => import('./chunks/26-kurc_nGq.js')),
|
|
42
42
|
__memo(() => import('./chunks/27-Cqzlh9gZ.js')),
|
|
43
|
-
__memo(() => import('./chunks/28-
|
|
44
|
-
__memo(() => import('./chunks/29-
|
|
43
|
+
__memo(() => import('./chunks/28-B9Yozjcu.js')),
|
|
44
|
+
__memo(() => import('./chunks/29-Bn8aU2AL.js')),
|
|
45
45
|
__memo(() => import('./chunks/30-CZYg7-qi.js')),
|
|
46
46
|
__memo(() => import('./chunks/31-Q4kHbp8j.js'))
|
|
47
47
|
],
|
|
@@ -110,7 +110,7 @@ return {
|
|
|
110
110
|
pattern: /^\/api\/health\/?$/,
|
|
111
111
|
params: [],
|
|
112
112
|
page: null,
|
|
113
|
-
endpoint: __memo(() => import('./chunks/_server.ts-
|
|
113
|
+
endpoint: __memo(() => import('./chunks/_server.ts-DgosGcHX.js'))
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
id: "/api/memory/decision-store",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./CCn1eLYI.js";
|