@staff0rd/assist 0.1177.1 → 0.1178.0
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/agent/commands/draft.md +7 -2
- package/dist/.build-files +185 -186
- package/dist/{add-26G3VH4W.js → add-2UGDXA57.js} +4 -4
- package/dist/{add-EQSDVMYS.js → add-FRBOEDUG.js} +8 -8
- package/dist/{add-6VHF4GYJ.js → add-P5FQT5OP.js} +7 -7
- package/dist/{addActivity-EVJKYYRK.js → addActivity-OHEX6ZYA.js} +11 -12
- package/dist/{addPhase-EMUC75TM.js → addPhase-J7HNEAJD.js} +59 -30
- package/dist/{advise-3WCBQOWA.js → advise-E24R7PGU.js} +7 -9
- package/dist/{ask-FKL4O7CM.js → ask-U5DHNRPN.js} +5 -7
- package/dist/{askCheck-ASINLULR.js → askCheck-6XT7VK4E.js} +18 -20
- package/dist/{askDesign-3QUHOJPI.js → askDesign-EWPBMN2Z.js} +7 -9
- package/dist/{askQuestion-WYUW7O6I.js → askQuestion-EKLQUDWO.js} +4 -6
- package/dist/{associateGithub-GX7KCYKC.js → associateGithub-QVFEIHHB.js} +7 -7
- package/dist/{associateJira-HZQVQPTE.js → associateJira-GW2TNHHC.js} +7 -7
- package/dist/{backup-ZAM5SUS4.js → backup-5EOEKEHC.js} +5 -5
- package/dist/{branch-4E2A5OSA.js → branch-XA5WFZNE.js} +12 -13
- package/dist/built-version +1 -1
- package/dist/{chunk-G7TGPGP4.js → chunk-33TWT7ED.js} +1 -1
- package/dist/{chunk-GACR5HPR.js → chunk-3OU7KKPD.js} +1 -1
- package/dist/{chunk-NTHIX33Z.js → chunk-47A67SZG.js} +1 -1
- package/dist/{chunk-VHA4GGY6.js → chunk-47CWDPJG.js} +2 -2
- package/dist/{chunk-S35U37KB.js → chunk-55AOIDG7.js} +4 -4
- package/dist/{chunk-2ULGYTC7.js → chunk-5HBAIIK7.js} +2 -2
- package/dist/{chunk-5RR74N53.js → chunk-5IEBDC2V.js} +1 -1
- package/dist/{chunk-SEPXT73V.js → chunk-5SFKQCC7.js} +4 -2
- package/dist/{chunk-S43ZXLSG.js → chunk-5V2PSFQZ.js} +2 -2
- package/dist/{chunk-XTIQTN6C.js → chunk-5XLNXKJ2.js} +1 -1
- package/dist/{chunk-AA4KTFRA.js → chunk-6ON5FZRW.js} +1 -1
- package/dist/{chunk-34JCYVZJ.js → chunk-6SVL3VTM.js} +3 -3
- package/dist/{chunk-3RN5JXYO.js → chunk-6UK5TKSQ.js} +1 -1
- package/dist/{chunk-4X6EPEUY.js → chunk-7APOEKZW.js} +2 -2
- package/dist/{chunk-I6OVO66A.js → chunk-7CZTOEBC.js} +4 -4
- package/dist/{chunk-RKNRSAMW.js → chunk-7KHXEIII.js} +2 -2
- package/dist/{chunk-5DC6R45H.js → chunk-7VYOQAV2.js} +1 -1
- package/dist/{chunk-OEUVHIK7.js → chunk-AAZOHULZ.js} +2 -2
- package/dist/{chunk-NWNODYLQ.js → chunk-AFQMD7AO.js} +1 -1
- package/dist/{chunk-6EGDNDME.js → chunk-CPJ3KOSP.js} +1 -1
- package/dist/{chunk-EBBTBVRF.js → chunk-CVRUEPAF.js} +2 -2
- package/dist/{chunk-HER4MYII.js → chunk-DJ3YHTZR.js} +4 -4
- package/dist/{chunk-IVSNDH4D.js → chunk-DLWUDZA7.js} +2 -2
- package/dist/{chunk-3QKE2ONF.js → chunk-DZQGGM7S.js} +2 -2
- package/dist/{chunk-PYACTCZ2.js → chunk-EEFDZ4FS.js} +1 -1
- package/dist/{chunk-KQLM2B42.js → chunk-EKVZPMHV.js} +1 -1
- package/dist/{chunk-MELBVXKL.js → chunk-EM5TGZYD.js} +1 -1
- package/dist/{chunk-OVT3MIV3.js → chunk-FEE3CHDF.js} +1 -1
- package/dist/{chunk-VQXCEXLN.js → chunk-FOVFGF3T.js} +1 -1
- package/dist/{chunk-F4EHXLJX.js → chunk-GLWIKWJD.js} +1 -1
- package/dist/{chunk-X7PGOOAB.js → chunk-GNNMJOUE.js} +13 -5
- package/dist/{chunk-RPJMHCA5.js → chunk-HEZPVVNU.js} +2 -2
- package/dist/{chunk-VO7AQC4M.js → chunk-IVLGG2X4.js} +29 -7
- package/dist/{chunk-GPEP64A2.js → chunk-J77SUTGV.js} +1 -1
- package/dist/{chunk-YWZ4S2QB.js → chunk-JDR5RER7.js} +2 -2
- package/dist/{chunk-7OHKYQP6.js → chunk-JKVDFE73.js} +5 -5
- package/dist/{chunk-OFQA2NMS.js → chunk-JOI2TFU6.js} +2 -2
- package/dist/{chunk-GNDYSVHK.js → chunk-K2WOZAIZ.js} +2 -2
- package/dist/{chunk-N4ZFTKU5.js → chunk-KB7ROCWL.js} +1 -1
- package/dist/{chunk-TZHPY4TP.js → chunk-KMYNML56.js} +1 -1
- package/dist/{chunk-VJSCW57R.js → chunk-LSPSE5PK.js} +2 -2
- package/dist/{chunk-AE63ECHM.js → chunk-M6MAQU3Z.js} +2 -4
- package/dist/{chunk-3LZFM4XP.js → chunk-MJ4VVWS2.js} +2 -2
- package/dist/{chunk-GA4GCC2X.js → chunk-MPN7AQZO.js} +1 -1
- package/dist/{chunk-D2JJTYYP.js → chunk-MPTENWZJ.js} +1 -1
- package/dist/{chunk-5X376XAZ.js → chunk-MU6NC4RI.js} +2 -2
- package/dist/{chunk-ZLTSFZMQ.js → chunk-NQJYLM2U.js} +2 -2
- package/dist/{chunk-W5YG7STH.js → chunk-O4NZNNM6.js} +1 -1
- package/dist/{chunk-TIUFDKIT.js → chunk-ODUJYQNX.js} +2 -2
- package/dist/{chunk-HMQIAEJG.js → chunk-ONVFP5UL.js} +2 -2
- package/dist/{chunk-WNHEHLLU.js → chunk-OYRCAC62.js} +1 -1
- package/dist/{chunk-SVOKDZOH.js → chunk-OZTCLQ2P.js} +1 -1
- package/dist/{chunk-OWE2XFXQ.js → chunk-POXYZNR6.js} +2 -1
- package/dist/{chunk-CCV7FX7F.js → chunk-PTD3FE65.js} +1 -1
- package/dist/{chunk-LYNHUQIU.js → chunk-QMMXURVF.js} +12 -12
- package/dist/{chunk-7KJ6IGYA.js → chunk-QPEQB4SW.js} +1 -1
- package/dist/{chunk-A5TT5WAA.js → chunk-QTJDU5WR.js} +1 -1
- package/dist/{chunk-NX4Q3JM3.js → chunk-R4G74YF4.js} +1 -1
- package/dist/{chunk-55DAVOXM.js → chunk-RXFNQQZC.js} +32 -2
- package/dist/{chunk-QKHOYKUQ.js → chunk-T2BK6RAR.js} +12 -1
- package/dist/chunk-T4FC6NXX.js +24 -0
- package/dist/{chunk-6C2FGUCJ.js → chunk-TM3TO23X.js} +1 -1
- package/dist/{chunk-QWT75J57.js → chunk-U4UUT6CV.js} +1 -1
- package/dist/{chunk-W3WCK6CC.js → chunk-UU7KVABO.js} +186 -127
- package/dist/{chunk-OTY4ZZK5.js → chunk-UVCIW7TQ.js} +3 -3
- package/dist/{chunk-XKEY2S2G.js → chunk-UYGELUAS.js} +2 -2
- package/dist/{chunk-RNJG2457.js → chunk-V5YHDOMM.js} +3 -3
- package/dist/{chunk-S4QSBI4B.js → chunk-V7TXFEZL.js} +1 -1
- package/dist/chunk-VG3T4OHM.js +37 -0
- package/dist/{chunk-EJ47RKEE.js → chunk-VLYRZ5SP.js} +140 -40
- package/dist/{chunk-TTGFYYM3.js → chunk-WACC5D2Z.js} +2 -2
- package/dist/{chunk-LERYBWFS.js → chunk-WLDKO4VB.js} +1 -1
- package/dist/{chunk-RA6EZEDD.js → chunk-WLJ6XQHQ.js} +6 -4
- package/dist/{chunk-C2SYKKB5.js → chunk-WN3S62N3.js} +1 -1
- package/dist/{chunk-VDXZYKAV.js → chunk-WXAG6MRL.js} +1 -1
- package/dist/{chunk-2AAQSTV7.js → chunk-XDBJOQY4.js} +27 -27
- package/dist/{chunk-LDNUAKUV.js → chunk-XY4XHIGT.js} +1 -1
- package/dist/{chunk-TFNKFLFS.js → chunk-XZSNW74V.js} +9 -9
- package/dist/{chunk-SEYMNOHZ.js → chunk-Y3HTS5LL.js} +3 -3
- package/dist/{chunk-O5JIFWMQ.js → chunk-YKL7VLIQ.js} +1 -1
- package/dist/{chunk-XE24F7VE.js → chunk-Z544QRLG.js} +1 -1
- package/dist/{chunk-B5TM4HJA.js → chunk-ZJ62GBLC.js} +1 -1
- package/dist/{chunk-Q35BRHRJ.js → chunk-ZRPLRWAQ.js} +2 -2
- package/dist/{cliHook-MX7SGXI5.js → cliHook-2ST26IMO.js} +12 -14
- package/dist/{cliHookCheck-LEPJJOB2.js → cliHookCheck-HBD5OUON.js} +4 -4
- package/dist/{codexHook-FPWKVVXR.js → codexHook-2XECBV2W.js} +15 -17
- package/dist/commands/sessions/web/bundle.js +425 -425
- package/dist/{comment-I4I2HSCK.js → comment-NJJ5D43Q.js} +7 -7
- package/dist/{comment-T6VKMQSC.js → comment-O7CAONH7.js} +6 -8
- package/dist/{commentIssue-KYYGEMM6.js → commentIssue-4IYYW234.js} +5 -7
- package/dist/{comments-4LL3QRP4.js → comments-LRMDQZVV.js} +6 -6
- package/dist/{commit-BQI7L6WM.js → commit-DLOZJVLG.js} +11 -11
- package/dist/{configGet-UCG62AE4.js → configGet-IBOCGBBD.js} +6 -6
- package/dist/{configImportRepos-7DDEGAVK.js → configImportRepos-WNBZW2SW.js} +6 -6
- package/dist/{configImportUser-77C56FIE.js → configImportUser-3EJW5CN7.js} +6 -6
- package/dist/{configList-WB54H6EU.js → configList-YHRABWEH.js} +6 -6
- package/dist/{configSet-AB33B47W.js → configSet-FWJ4CODG.js} +11 -11
- package/dist/{configUnset-BZJ7LC5H.js → configUnset-ASENBQ2W.js} +10 -10
- package/dist/{createIssue-RDI2HOU4.js → createIssue-FGHP6XJV.js} +4 -6
- package/dist/{del-F3OPSYX3.js → del-2G7FLCPI.js} +6 -6
- package/dist/{deleteCommentCmd-4J75BXTV.js → deleteCommentCmd-YL4AQSUK.js} +7 -7
- package/dist/{docsConfirm-4EI3UX4R.js → docsConfirm-DFZJQYBN.js} +8 -8
- package/dist/{docsScreenshots-XZGGZTM7.js → docsScreenshots-TEZGWAMN.js} +6 -6
- package/dist/{docsUnlock-AOFQIZCE.js → docsUnlock-3BAUJLMS.js} +6 -6
- package/dist/{doctorNodes-KLJGQQ76.js → doctorNodes-U4BZ2NQI.js} +3 -3
- package/dist/{done-JJOEGPGX.js → done-YX4Z354K.js} +14 -15
- package/dist/{edit-SDMU64FM.js → edit-Z4L64CLH.js} +4 -6
- package/dist/{editHook-UXIHATIT.js → editHook-7MXP7Y27.js} +12 -14
- package/dist/{editIssue-2BVQHWJT.js → editIssue-CO6C7M54.js} +4 -6
- package/dist/{editIssueComment-RORO62JH.js → editIssueComment-MMW2F4TM.js} +5 -7
- package/dist/{exportBacklog-PV6W4HPE.js → exportBacklog-TU3ZS5OA.js} +5 -5
- package/dist/{fixConflict-GE72P7WJ.js → fixConflict-DLGWJZOT.js} +7 -8
- package/dist/{harnessFollowUps-6XB5AOCC.js → harnessFollowUps-BRGKMTFL.js} +7 -7
- package/dist/{importBacklog-KZZFOFGE.js → importBacklog-ZDEMGYEO.js} +4 -4
- package/dist/index.js +122 -112
- package/dist/{launchMode-R3QYAUZ7.js → launchMode-BB4BVLDY.js} +28 -29
- package/dist/{link-SWM2NNGW.js → link-5IOLILGN.js} +6 -6
- package/dist/{list-ME3QFVBT.js → list-4VNSG33V.js} +5 -5
- package/dist/{list-4J7IDSCX.js → list-WAWI262A.js} +14 -15
- package/dist/{list-UIMHBUPC.js → list-X6NRZS23.js} +4 -4
- package/dist/{migrate-K6GJ32ZE.js → migrate-K5YH6RKI.js} +2 -2
- package/dist/{migrations-7N6ELG6C.js → migrations-HHPF74F6.js} +1 -1
- package/dist/{movePhase-KQQD6ZNS.js → movePhase-4NND5MPI.js} +47 -33
- package/dist/{moveRepo-6LOJLD4P.js → moveRepo-JDI4TTGH.js} +6 -6
- package/dist/{next-2R5FZLHC.js → next-V6SDUR7R.js} +26 -27
- package/dist/{phaseDone-XVAXKIPL.js → phaseDone-GDPMXG35.js} +7 -7
- package/dist/{piHook-TWZ7VL4C.js → piHook-IJBECGXG.js} +12 -14
- package/dist/{plan-DGRO5A3G.js → plan-6OBSLR2L.js} +6 -6
- package/dist/{postSlackMessage-W4PBW5GV.js → postSlackMessage-7L6NMG56.js} +5 -7
- package/dist/{propose-ARHZAMP3.js → propose-YTLU3KGQ.js} +18 -19
- package/dist/{raise-5RO44AHM.js → raise-GPFJCJ2J.js} +10 -12
- package/dist/{recordSlack-NVFWCZCC.js → recordSlack-FHEYASHQ.js} +6 -6
- package/dist/{refine-PHFWOBXG.js → refine-L2SLU4TB.js} +30 -31
- package/dist/{refreshDocs-TH5EP3NG.js → refreshDocs-BZWK2KC7.js} +7 -7
- package/dist/{releasesConfigure-LUSL6ZCS.js → releasesConfigure-XVR5KROD.js} +8 -8
- package/dist/{remove-REYLY4AO.js → remove-DKQPUMN5.js} +8 -8
- package/dist/{remove-DCQXXX4U.js → remove-WPVTCWEZ.js} +4 -4
- package/dist/{removePhase-CUTEYLN5.js → removePhase-JDSLXH2O.js} +23 -12
- package/dist/{reply-4NHJUAW2.js → reply-GTYV733P.js} +5 -7
- package/dist/{restartNode-QKP2PI3P.js → restartNode-YZDNDY6D.js} +5 -5
- package/dist/{review-24PY4QIO.js → review-CWFH4LHV.js} +19 -21
- package/dist/{reviewPrComments-DI55I3RN.js → reviewPrComments-53PFIBRN.js} +7 -8
- package/dist/{rewindPhase-PYPWUAQM.js → rewindPhase-2HPPVR3L.js} +18 -19
- package/dist/{rulesAdd-275CED56.js → rulesAdd-FJN36QFV.js} +15 -17
- package/dist/{run-A6U6NHHX.js → run-5TXKCHOJ.js} +24 -25
- package/dist/{run-AD4YXUMT.js → run-ZG6I4ADW.js} +24 -25
- package/dist/{runDaemon-XHPC4BU4.js → runDaemon-SX4R3YEQ.js} +91 -72
- package/dist/{runExtract-O2VT6GXC.js → runExtract-XYFMOU3N.js} +12 -14
- package/dist/{runRefine-LHELOTJM.js → runRefine-UU3WQE34.js} +30 -31
- package/dist/{scan-2DJUBCO7.js → scan-5OUOOZUA.js} +11 -12
- package/dist/{schemaConfirm-YQ75EKIB.js → schemaConfirm-5VA5T4OG.js} +12 -12
- package/dist/{schemaUnlock-7RER37EP.js → schemaUnlock-XUE63IVW.js} +10 -10
- package/dist/{search-4REYRJSL.js → search-6LVWZ73V.js} +14 -15
- package/dist/{setStatusCommand-OUL6CBZA.js → setStatusCommand-DERSLTKL.js} +6 -6
- package/dist/{show-YVFFZ342.js → show-UXHLUY5T.js} +24 -16
- package/dist/{show-ASBGNNIT.js → show-XE6EEDNK.js} +5 -6
- package/dist/{signExtension-A6JWCGRO.js → signExtension-LGZST4CY.js} +1 -1
- package/dist/{skip-3LVATJEN.js → skip-5OBBOOP6.js} +8 -8
- package/dist/{slack-I2CXIEBY.js → slack-TW6ZQ6OA.js} +5 -7
- package/dist/{star-TXCNMYGQ.js → star-3TUER5YU.js} +8 -8
- package/dist/{start-TXEV2Y34.js → start-OHKYHOYJ.js} +6 -6
- package/dist/{status-POFESCYK.js → status-N53C3FDN.js} +3 -3
- package/dist/{stop-P5MCFMMZ.js → stop-3IPI3CAG.js} +6 -6
- package/dist/{unlink-MJ5XYTP7.js → unlink-CNFMKO6F.js} +6 -6
- package/dist/{unstar-UGQ6ZAS2.js → unstar-CIOYWFYS.js} +8 -8
- package/dist/{update-WMETXIKN.js → update-GFEO2PVL.js} +6 -6
- package/dist/{updateNode-5GRMK3HC.js → updateNode-2FAOTXLN.js} +5 -5
- package/dist/{updatePhase-N7MDNMJI.js → updatePhase-TR27Y3ZD.js} +7 -7
- package/dist/{updatePlan-5ZHUWXQO.js → updatePlan-VEYFU6RR.js} +28 -24
- package/dist/{web-3LF3Y3ZN.js → web-KGQROIGX.js} +44 -45
- package/dist/{web-ZVEWYMUV.js → web-LF6STSEO.js} +44 -45
- package/dist/{wontdo-GG6DV5VY.js → wontdo-HMW5Y7ER.js} +7 -7
- package/dist/{wontfix-LJSLOGTK.js → wontfix-ORNEHNPO.js} +5 -7
- package/package.json +1 -1
- package/dist/chunk-K5LOYASR.js +0 -18
- package/dist/chunk-OGJ6AZK4.js +0 -9
- package/dist/chunk-VXIZ5DUA.js +0 -6
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
loadItem,
|
|
3
3
|
loadRelations,
|
|
4
4
|
rowToItem
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-POXYZNR6.js";
|
|
6
6
|
import {
|
|
7
7
|
docsRefreshAfter
|
|
8
8
|
} from "./chunk-NLBC64BW.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
links,
|
|
22
22
|
planPhases,
|
|
23
23
|
planTasks
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5SFKQCC7.js";
|
|
25
25
|
import {
|
|
26
26
|
isRunLink
|
|
27
27
|
} from "./chunk-APZ6ZTDA.js";
|
|
@@ -45,7 +45,9 @@ var planTaskSchema = z.object({
|
|
|
45
45
|
var planPhaseSchema = z.strictObject({
|
|
46
46
|
name: z.string(),
|
|
47
47
|
tasks: z.array(planTaskSchema),
|
|
48
|
-
manualChecks: z.array(z.string()).optional()
|
|
48
|
+
manualChecks: z.array(z.string()).optional(),
|
|
49
|
+
/** 1-based phases this one waits for; absent means the previous phase. */
|
|
50
|
+
dependsOn: z.array(z.number()).optional()
|
|
49
51
|
});
|
|
50
52
|
var phaseUsageSchema = z.strictObject({
|
|
51
53
|
phaseIdx: z.number(),
|
|
@@ -125,29 +127,115 @@ var backlogItemSchema = z.strictObject({
|
|
|
125
127
|
});
|
|
126
128
|
var backlogFileSchema = z.array(backlogItemSchema);
|
|
127
129
|
|
|
130
|
+
// src/commands/backlog/dependsOn/loadStoredDependsOn.ts
|
|
131
|
+
import { asc, eq } from "drizzle-orm";
|
|
132
|
+
async function loadStoredDependsOn(db, itemId) {
|
|
133
|
+
const rows = await db.select({ dependsOn: planPhases.dependsOn }).from(planPhases).where(eq(planPhases.itemId, itemId)).orderBy(asc(planPhases.idx));
|
|
134
|
+
return rows.map((row) => row.dependsOn);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// src/commands/backlog/dependsOn/writeRemappedDependsOn.ts
|
|
138
|
+
import { and, eq as eq2 } from "drizzle-orm";
|
|
139
|
+
|
|
140
|
+
// src/commands/backlog/dependsOn/normalizeDependsOn.ts
|
|
141
|
+
function normalizeDependsOn(dependsOn, idx) {
|
|
142
|
+
if (!dependsOn) return null;
|
|
143
|
+
const sorted = [...new Set(dependsOn)].sort((a, b) => a - b);
|
|
144
|
+
const isDefault = idx === 0 ? sorted.length === 0 : sorted.length === 1 && sorted[0] === idx - 1;
|
|
145
|
+
return isDefault ? null : sorted;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// src/commands/backlog/dependsOn/resolveDependsOn.ts
|
|
149
|
+
function resolveDependsOn(dependsOn, idx) {
|
|
150
|
+
if (dependsOn) return [...dependsOn];
|
|
151
|
+
return idx > 0 ? [idx - 1] : [];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// src/commands/backlog/dependsOn/remapDependsOn.ts
|
|
155
|
+
function remapDependsOn({
|
|
156
|
+
before,
|
|
157
|
+
order,
|
|
158
|
+
inserted = null
|
|
159
|
+
}) {
|
|
160
|
+
const newPosition = /* @__PURE__ */ new Map();
|
|
161
|
+
order.forEach((oldIdx, pos) => {
|
|
162
|
+
if (oldIdx !== void 0) newPosition.set(oldIdx, pos);
|
|
163
|
+
});
|
|
164
|
+
const expand = (oldIdx, pos, seen) => {
|
|
165
|
+
const target = newPosition.get(oldIdx);
|
|
166
|
+
if (target !== void 0 && target < pos) return [target];
|
|
167
|
+
if (seen.has(oldIdx)) return [];
|
|
168
|
+
seen.add(oldIdx);
|
|
169
|
+
return resolveDependsOn(before[oldIdx], oldIdx).flatMap(
|
|
170
|
+
(dep) => expand(dep, pos, seen)
|
|
171
|
+
);
|
|
172
|
+
};
|
|
173
|
+
return order.map((oldIdx, pos) => {
|
|
174
|
+
if (oldIdx === void 0) return normalizeDependsOn(inserted, pos);
|
|
175
|
+
const stored = before[oldIdx];
|
|
176
|
+
if (!stored) return null;
|
|
177
|
+
const seen = /* @__PURE__ */ new Set([oldIdx]);
|
|
178
|
+
return normalizeDependsOn(
|
|
179
|
+
stored.flatMap((dep) => expand(dep, pos, seen)),
|
|
180
|
+
pos
|
|
181
|
+
);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// src/commands/backlog/dependsOn/writeRemappedDependsOn.ts
|
|
186
|
+
async function writeRemappedDependsOn(db, itemId, remap2) {
|
|
187
|
+
const remapped = remapDependsOn(remap2);
|
|
188
|
+
for (const [idx, dependsOn] of remapped.entries()) {
|
|
189
|
+
await db.update(planPhases).set({ dependsOn }).where(and(eq2(planPhases.itemId, itemId), eq2(planPhases.idx, idx)));
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// src/commands/backlog/dependsOn/remapDependsOnAround.ts
|
|
194
|
+
async function remapDependsOnAround(db, itemId, order, renumber, inserted = null) {
|
|
195
|
+
const before = await loadStoredDependsOn(db, itemId);
|
|
196
|
+
await renumber();
|
|
197
|
+
await writeRemappedDependsOn(db, itemId, {
|
|
198
|
+
before,
|
|
199
|
+
order: order([...before.keys()]),
|
|
200
|
+
inserted
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
|
|
128
204
|
// src/commands/backlog/insertPhaseAt.ts
|
|
129
|
-
import { eq as
|
|
205
|
+
import { eq as eq4 } from "drizzle-orm";
|
|
130
206
|
|
|
131
207
|
// src/commands/backlog/shiftPhasesUp.ts
|
|
132
|
-
import { and, desc, eq, gte } from "drizzle-orm";
|
|
208
|
+
import { and as and2, desc, eq as eq3, gte } from "drizzle-orm";
|
|
133
209
|
async function shiftPhasesUp(db, itemId, fromIdx) {
|
|
134
|
-
const toShift = await db.select({ idx: planPhases.idx }).from(planPhases).where(
|
|
210
|
+
const toShift = await db.select({ idx: planPhases.idx }).from(planPhases).where(and2(eq3(planPhases.itemId, itemId), gte(planPhases.idx, fromIdx))).orderBy(desc(planPhases.idx));
|
|
135
211
|
for (const p of toShift) {
|
|
136
|
-
await db.update(planTasks).set({ phaseIdx: p.idx + 1 }).where(
|
|
137
|
-
await db.update(planPhases).set({ idx: p.idx + 1 }).where(
|
|
212
|
+
await db.update(planTasks).set({ phaseIdx: p.idx + 1 }).where(and2(eq3(planTasks.itemId, itemId), eq3(planTasks.phaseIdx, p.idx)));
|
|
213
|
+
await db.update(planPhases).set({ idx: p.idx + 1 }).where(and2(eq3(planPhases.itemId, itemId), eq3(planPhases.idx, p.idx)));
|
|
138
214
|
}
|
|
139
215
|
}
|
|
140
216
|
|
|
141
217
|
// src/commands/backlog/insertPhaseAt.ts
|
|
142
|
-
async function insertPhaseAt(orm, itemId, phaseIdx, name, tasks, manualChecks, currentPhase) {
|
|
218
|
+
async function insertPhaseAt(orm, itemId, phaseIdx, name, tasks, manualChecks, currentPhase, dependsOn = null) {
|
|
143
219
|
await orm.transaction(async (tx) => {
|
|
144
|
-
await
|
|
145
|
-
|
|
220
|
+
await remapDependsOnAround(
|
|
221
|
+
tx,
|
|
222
|
+
itemId,
|
|
223
|
+
(oldIdxs) => [
|
|
224
|
+
...oldIdxs.slice(0, phaseIdx),
|
|
225
|
+
void 0,
|
|
226
|
+
...oldIdxs.slice(phaseIdx)
|
|
227
|
+
],
|
|
228
|
+
async () => {
|
|
229
|
+
await shiftPhasesUp(tx, itemId, phaseIdx);
|
|
230
|
+
await tx.insert(planPhases).values({ itemId, idx: phaseIdx, name, manualChecks });
|
|
231
|
+
},
|
|
232
|
+
dependsOn
|
|
233
|
+
);
|
|
146
234
|
if (tasks.length) {
|
|
147
235
|
await tx.insert(planTasks).values(tasks.map((task, i) => ({ itemId, phaseIdx, idx: i, task })));
|
|
148
236
|
}
|
|
149
237
|
if (currentPhase !== void 0 && currentPhase - 1 >= phaseIdx) {
|
|
150
|
-
await tx.update(items).set({ currentPhase: phaseIdx + 1 }).where(
|
|
238
|
+
await tx.update(items).set({ currentPhase: phaseIdx + 1 }).where(eq4(items.id, itemId));
|
|
151
239
|
}
|
|
152
240
|
});
|
|
153
241
|
}
|
|
@@ -159,7 +247,7 @@ function serializeManualChecks(manualCheck) {
|
|
|
159
247
|
|
|
160
248
|
// src/commands/backlog/updateStatus.ts
|
|
161
249
|
import chalk from "chalk";
|
|
162
|
-
import { eq as
|
|
250
|
+
import { eq as eq7 } from "drizzle-orm";
|
|
163
251
|
|
|
164
252
|
// src/commands/backlog/buildDocsRefreshDescription.ts
|
|
165
253
|
function summaryEntry(summary) {
|
|
@@ -220,19 +308,19 @@ async function insertItem(db, item, origin) {
|
|
|
220
308
|
}
|
|
221
309
|
|
|
222
310
|
// src/commands/backlog/loadDocsRefreshStories.ts
|
|
223
|
-
import { and as
|
|
311
|
+
import { and as and3, asc as asc2, eq as eq5, inArray } from "drizzle-orm";
|
|
224
312
|
async function loadDocsRefreshStories(orm, ids) {
|
|
225
313
|
if (ids.length === 0) return [];
|
|
226
314
|
const [rows, summaries, commits] = await Promise.all([
|
|
227
|
-
orm.select({ id: items.id, name: items.name }).from(items).where(inArray(items.id, ids)).orderBy(
|
|
315
|
+
orm.select({ id: items.id, name: items.name }).from(items).where(inArray(items.id, ids)).orderBy(asc2(items.id)),
|
|
228
316
|
orm.select({
|
|
229
317
|
itemId: comments.itemId,
|
|
230
318
|
phase: comments.phase,
|
|
231
319
|
text: comments.text
|
|
232
|
-
}).from(comments).where(
|
|
320
|
+
}).from(comments).where(and3(inArray(comments.itemId, ids), eq5(comments.type, "summary"))).orderBy(asc2(comments.id)),
|
|
233
321
|
orm.select({ itemId: itemGitRefs.itemId, ref: itemGitRefs.ref }).from(itemGitRefs).where(
|
|
234
|
-
|
|
235
|
-
).orderBy(
|
|
322
|
+
and3(inArray(itemGitRefs.itemId, ids), eq5(itemGitRefs.kind, "commit"))
|
|
323
|
+
).orderBy(asc2(itemGitRefs.createdAt))
|
|
236
324
|
]);
|
|
237
325
|
return rows.map((r) => ({
|
|
238
326
|
id: r.id,
|
|
@@ -292,21 +380,21 @@ async function createDocsRefreshItem(orm, origin, storyIds, coverageCheck = hasD
|
|
|
292
380
|
}
|
|
293
381
|
|
|
294
382
|
// src/commands/backlog/loadDocsRefreshState.ts
|
|
295
|
-
import { and as
|
|
383
|
+
import { and as and4, eq as eq6 } from "drizzle-orm";
|
|
296
384
|
var OPEN_STATUSES = /* @__PURE__ */ new Set(["todo", "in-progress"]);
|
|
297
385
|
async function loadDocsRefreshState(orm, origin) {
|
|
298
386
|
const refreshLinks = await orm.select({
|
|
299
387
|
itemId: links.itemId,
|
|
300
388
|
targetId: links.targetId,
|
|
301
389
|
status: items.status
|
|
302
|
-
}).from(links).innerJoin(items,
|
|
390
|
+
}).from(links).innerJoin(items, eq6(links.itemId, items.id)).where(and4(eq6(links.type, "docs-refresh"), eq6(items.origin, origin)));
|
|
303
391
|
const openId = refreshLinks.find((l) => OPEN_STATUSES.has(l.status))?.itemId;
|
|
304
392
|
const excluded = new Set(refreshLinks.flatMap((l) => [l.itemId, l.targetId]));
|
|
305
393
|
const doneStories = await orm.select({ id: items.id, name: items.name }).from(items).where(
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
394
|
+
and4(
|
|
395
|
+
eq6(items.origin, origin),
|
|
396
|
+
eq6(items.type, "story"),
|
|
397
|
+
eq6(items.status, "done")
|
|
310
398
|
)
|
|
311
399
|
).orderBy(items.id);
|
|
312
400
|
return { openId, unswept: doneStories.filter((s) => !excluded.has(s.id)) };
|
|
@@ -325,7 +413,7 @@ async function queueDocsRefresh(orm, origin, threshold) {
|
|
|
325
413
|
|
|
326
414
|
// src/commands/backlog/updateStatus.ts
|
|
327
415
|
async function updateStatus(orm, id, status) {
|
|
328
|
-
const [row] = await orm.update(items).set({ status }).where(
|
|
416
|
+
const [row] = await orm.update(items).set({ status }).where(eq7(items.id, id)).returning({ name: items.name, origin: items.origin, type: items.type });
|
|
329
417
|
if (row && status === "done" && row.type === "story")
|
|
330
418
|
await maybeQueueDocsRefresh(orm, row.origin);
|
|
331
419
|
return row?.name;
|
|
@@ -381,6 +469,14 @@ function gitPullBacklog(dir) {
|
|
|
381
469
|
}
|
|
382
470
|
}
|
|
383
471
|
|
|
472
|
+
// src/commands/backlog/dependsOn/toStoredDependsOn.ts
|
|
473
|
+
function toStoredDependsOn(dependsOn, idx) {
|
|
474
|
+
return normalizeDependsOn(
|
|
475
|
+
dependsOn?.map((dep) => dep - 1),
|
|
476
|
+
idx
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
|
|
384
480
|
// src/commands/backlog/insertPlan.ts
|
|
385
481
|
async function insertPlan(db, item) {
|
|
386
482
|
if (!item.plan?.length) return;
|
|
@@ -389,7 +485,8 @@ async function insertPlan(db, item) {
|
|
|
389
485
|
itemId: item.id,
|
|
390
486
|
idx: pi,
|
|
391
487
|
name: phase.name,
|
|
392
|
-
manualChecks: phase.manualChecks ? JSON.stringify(phase.manualChecks) : null
|
|
488
|
+
manualChecks: phase.manualChecks ? JSON.stringify(phase.manualChecks) : null,
|
|
489
|
+
dependsOn: toStoredDependsOn(phase.dependsOn, pi)
|
|
393
490
|
}))
|
|
394
491
|
);
|
|
395
492
|
const tasks = item.plan.flatMap(
|
|
@@ -465,9 +562,9 @@ async function importItemsRemapped(orm, items2, origin) {
|
|
|
465
562
|
}
|
|
466
563
|
|
|
467
564
|
// src/commands/backlog/loadAllItems.ts
|
|
468
|
-
import { asc as
|
|
565
|
+
import { asc as asc3, eq as eq8 } from "drizzle-orm";
|
|
469
566
|
async function loadAllItems(orm, origin) {
|
|
470
|
-
const rows = await orm.select().from(items).where(origin === void 0 ? void 0 :
|
|
567
|
+
const rows = await orm.select().from(items).where(origin === void 0 ? void 0 : eq8(items.origin, origin)).orderBy(asc3(items.id));
|
|
471
568
|
if (rows.length === 0) return [];
|
|
472
569
|
const rel = await loadRelations(
|
|
473
570
|
orm,
|
|
@@ -535,26 +632,26 @@ async function ensureMigrated(orm, dir, origin) {
|
|
|
535
632
|
}
|
|
536
633
|
|
|
537
634
|
// src/commands/backlog/deleteItem.ts
|
|
538
|
-
import { eq as
|
|
635
|
+
import { eq as eq9 } from "drizzle-orm";
|
|
539
636
|
async function deleteItem(orm, id) {
|
|
540
|
-
const [row] = await orm.delete(items).where(
|
|
637
|
+
const [row] = await orm.delete(items).where(eq9(items.id, id)).returning({ name: items.name });
|
|
541
638
|
return row?.name;
|
|
542
639
|
}
|
|
543
640
|
|
|
544
641
|
// src/commands/backlog/saveAllItems.ts
|
|
545
|
-
import { eq as
|
|
642
|
+
import { eq as eq11, sql } from "drizzle-orm";
|
|
546
643
|
|
|
547
644
|
// src/commands/backlog/deleteItemRelations.ts
|
|
548
|
-
import { eq as
|
|
645
|
+
import { eq as eq10 } from "drizzle-orm";
|
|
549
646
|
|
|
550
647
|
// src/commands/backlog/searchItemIds.ts
|
|
551
|
-
import { and as
|
|
648
|
+
import { and as and5, asc as asc4, eq as eq12, ilike, or, sql as sql2 } from "drizzle-orm";
|
|
552
649
|
async function searchItemIds(orm, query, origin) {
|
|
553
650
|
const pattern = `%${query}%`;
|
|
554
651
|
const numberPattern = `%${query.replace(/^#/, "")}%`;
|
|
555
|
-
const rows = await orm.selectDistinct({ id: items.id }).from(items).leftJoin(comments,
|
|
556
|
-
|
|
557
|
-
origin ?
|
|
652
|
+
const rows = await orm.selectDistinct({ id: items.id }).from(items).leftJoin(comments, eq12(comments.itemId, items.id)).leftJoin(planPhases, eq12(planPhases.itemId, items.id)).where(
|
|
653
|
+
and5(
|
|
654
|
+
origin ? eq12(items.origin, origin) : void 0,
|
|
558
655
|
or(
|
|
559
656
|
ilike(items.name, pattern),
|
|
560
657
|
ilike(items.description, pattern),
|
|
@@ -565,15 +662,15 @@ async function searchItemIds(orm, query, origin) {
|
|
|
565
662
|
ilike(sql2`${items.id}::text`, numberPattern)
|
|
566
663
|
)
|
|
567
664
|
)
|
|
568
|
-
).orderBy(
|
|
665
|
+
).orderBy(asc4(items.id));
|
|
569
666
|
return rows.map((r) => r.id);
|
|
570
667
|
}
|
|
571
668
|
|
|
572
669
|
// src/commands/backlog/updateCurrentPhase.ts
|
|
573
|
-
import { eq as
|
|
670
|
+
import { eq as eq13 } from "drizzle-orm";
|
|
574
671
|
async function updateCurrentPhase(orm, id, phase) {
|
|
575
|
-
const [existing] = await orm.select({ currentPhase: items.currentPhase }).from(items).where(
|
|
576
|
-
await orm.update(items).set({ currentPhase: phase }).where(
|
|
672
|
+
const [existing] = await orm.select({ currentPhase: items.currentPhase }).from(items).where(eq13(items.id, id)).limit(1);
|
|
673
|
+
await orm.update(items).set({ currentPhase: phase }).where(eq13(items.id, id));
|
|
577
674
|
const previous = existing?.currentPhase;
|
|
578
675
|
if (previous != null && phase < previous) {
|
|
579
676
|
appendDaemonLog(
|
|
@@ -636,10 +733,13 @@ async function removeItem(id) {
|
|
|
636
733
|
|
|
637
734
|
export {
|
|
638
735
|
insertItem,
|
|
736
|
+
normalizeDependsOn,
|
|
737
|
+
toStoredDependsOn,
|
|
639
738
|
gitRefKindSchema,
|
|
640
739
|
deleteItem,
|
|
641
740
|
searchItemIds,
|
|
642
741
|
updateCurrentPhase,
|
|
742
|
+
remapDependsOnAround,
|
|
643
743
|
shiftPhasesUp,
|
|
644
744
|
insertPhaseAt,
|
|
645
745
|
loadDocsRefreshStories,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from "./chunk-WYNRHOR7.js";
|
|
11
11
|
import {
|
|
12
12
|
jobRuns
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5SFKQCC7.js";
|
|
14
14
|
import {
|
|
15
15
|
backlogRunMarkers,
|
|
16
16
|
codexRolloutMeta,
|
|
17
17
|
deriveHistoryFields,
|
|
18
18
|
readCodexHeadLines
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UU7KVABO.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveHarness
|
|
22
22
|
} from "./chunk-DUNO7WBT.js";
|
|
@@ -2,11 +2,12 @@ import {
|
|
|
2
2
|
getOrigin,
|
|
3
3
|
insertItem,
|
|
4
4
|
insertPhaseAt,
|
|
5
|
-
serializeManualChecks
|
|
6
|
-
|
|
5
|
+
serializeManualChecks,
|
|
6
|
+
toStoredDependsOn
|
|
7
|
+
} from "./chunk-VLYRZ5SP.js";
|
|
7
8
|
import {
|
|
8
9
|
getDb
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5SFKQCC7.js";
|
|
10
11
|
|
|
11
12
|
// src/commands/backlog/createItemWithDefaults.ts
|
|
12
13
|
async function createItemWithDefaults(fields) {
|
|
@@ -33,7 +34,8 @@ async function createItemWithDefaults(fields) {
|
|
|
33
34
|
phase.name,
|
|
34
35
|
phase.tasks,
|
|
35
36
|
serializeManualChecks(phase.manualChecks),
|
|
36
|
-
void 0
|
|
37
|
+
void 0,
|
|
38
|
+
toStoredDependsOn(phase.dependsOn, idx)
|
|
37
39
|
);
|
|
38
40
|
}
|
|
39
41
|
} else if (fields.type === "bug") {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveLinkTarget,
|
|
14
14
|
usageWindowKey,
|
|
15
15
|
watcherLogPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WACC5D2Z.js";
|
|
17
17
|
import {
|
|
18
18
|
readNodeRuntimeReport
|
|
19
19
|
} from "./chunk-SURCYYQ6.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-GZ7EEHJH.js";
|
|
32
32
|
import {
|
|
33
33
|
firstBrokenHop
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XY4XHIGT.js";
|
|
35
35
|
import {
|
|
36
36
|
TRACE_HEADER,
|
|
37
37
|
newTraceId
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
ASSIST_VERSION,
|
|
41
41
|
PROTOCOL_VERSION
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-R4G74YF4.js";
|
|
43
43
|
import {
|
|
44
44
|
queryNodes
|
|
45
45
|
} from "./chunk-B7VOTF5Q.js";
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
} from "./chunk-UJBW7FVI.js";
|
|
85
85
|
import {
|
|
86
86
|
targetConversationEvents
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-K2WOZAIZ.js";
|
|
88
88
|
import {
|
|
89
89
|
configEntryLayers,
|
|
90
90
|
ghFailure,
|
|
@@ -141,10 +141,10 @@ import {
|
|
|
141
141
|
import {
|
|
142
142
|
INBOX_SCAN_TIMEOUT_MS,
|
|
143
143
|
readInboxLastScan
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-33TWT7ED.js";
|
|
145
145
|
import {
|
|
146
146
|
listInboxMessages
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-5IEBDC2V.js";
|
|
148
148
|
import {
|
|
149
149
|
fetchProjectV2
|
|
150
150
|
} from "./chunk-YQ3CNWB3.js";
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
} from "./chunk-3NK55YVZ.js";
|
|
159
159
|
import {
|
|
160
160
|
dbBackedKeysIn
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-JOI2TFU6.js";
|
|
162
162
|
import {
|
|
163
163
|
configHelpForKey
|
|
164
164
|
} from "./chunk-L4QB4GFZ.js";
|
|
@@ -177,13 +177,13 @@ import {
|
|
|
177
177
|
} from "./chunk-7BAMQQKG.js";
|
|
178
178
|
import {
|
|
179
179
|
applyUserConfigSet
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-V5YHDOMM.js";
|
|
181
181
|
import {
|
|
182
182
|
applyConfigSet
|
|
183
183
|
} from "./chunk-NNNJ6VTH.js";
|
|
184
184
|
import {
|
|
185
185
|
applySharedRepoConfigSet
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-JDR5RER7.js";
|
|
187
187
|
import {
|
|
188
188
|
getNestedValue
|
|
189
189
|
} from "./chunk-OU6Q5ZS3.js";
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
applyConfigUnset,
|
|
199
199
|
applySharedRepoConfigUnset,
|
|
200
200
|
applyUserConfigUnset
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-DJ3YHTZR.js";
|
|
202
202
|
import {
|
|
203
203
|
configScopeNames
|
|
204
204
|
} from "./chunk-ADIYP3KC.js";
|
|
@@ -207,17 +207,17 @@ import {
|
|
|
207
207
|
} from "./chunk-VPMI4LV2.js";
|
|
208
208
|
import {
|
|
209
209
|
resolveSharedRepoBlock
|
|
210
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-ZRPLRWAQ.js";
|
|
211
211
|
import {
|
|
212
212
|
isNodeOnlyConfigKey
|
|
213
213
|
} from "./chunk-YOFY27RM.js";
|
|
214
214
|
import {
|
|
215
215
|
readUserConfig
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-Z544QRLG.js";
|
|
217
217
|
import {
|
|
218
218
|
dbBackedConfigKeys,
|
|
219
219
|
isDbBackedConfigKey
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-QTJDU5WR.js";
|
|
221
221
|
import {
|
|
222
222
|
mapConfigSecrets
|
|
223
223
|
} from "./chunk-YNHPTUHS.js";
|
|
@@ -232,25 +232,25 @@ import {
|
|
|
232
232
|
} from "./chunk-ODLSWRTS.js";
|
|
233
233
|
import {
|
|
234
234
|
loadLinkTargets
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-3OU7KKPD.js";
|
|
236
236
|
import {
|
|
237
237
|
updateStarred
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-V7TXFEZL.js";
|
|
239
239
|
import {
|
|
240
240
|
requestDocsRefresh
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-WN3S62N3.js";
|
|
242
242
|
import {
|
|
243
243
|
rewindItemToPhase
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-6SVL3VTM.js";
|
|
245
245
|
import {
|
|
246
246
|
loadBacklogSummaries,
|
|
247
247
|
searchBacklogSummaries
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-7KHXEIII.js";
|
|
249
249
|
import {
|
|
250
250
|
loadItemSummaries,
|
|
251
251
|
phaseUsageTotals,
|
|
252
252
|
planPhaseCounts
|
|
253
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-WLDKO4VB.js";
|
|
254
254
|
import {
|
|
255
255
|
requestAssistSession
|
|
256
256
|
} from "./chunk-EXORBOKS.js";
|
|
@@ -259,26 +259,26 @@ import {
|
|
|
259
259
|
} from "./chunk-BKQDYMYT.js";
|
|
260
260
|
import {
|
|
261
261
|
createItemWithDefaults
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-WLJ6XQHQ.js";
|
|
263
263
|
import {
|
|
264
264
|
getPreferredRemoteRepo
|
|
265
265
|
} from "./chunk-DISNKALJ.js";
|
|
266
266
|
import {
|
|
267
267
|
deleteComment
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-FEE3CHDF.js";
|
|
269
269
|
import {
|
|
270
270
|
resolveRewindPlan
|
|
271
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-MU6NC4RI.js";
|
|
272
272
|
import {
|
|
273
273
|
deleteItem,
|
|
274
274
|
getOrigin,
|
|
275
275
|
getReady,
|
|
276
276
|
loadDocsRefreshState,
|
|
277
277
|
updateStatus
|
|
278
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-VLYRZ5SP.js";
|
|
279
279
|
import {
|
|
280
280
|
loadItem
|
|
281
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-POXYZNR6.js";
|
|
282
282
|
import {
|
|
283
283
|
docsRefreshAfter
|
|
284
284
|
} from "./chunk-NLBC64BW.js";
|
|
@@ -301,7 +301,7 @@ import {
|
|
|
301
301
|
phaseSessions,
|
|
302
302
|
phaseUsage,
|
|
303
303
|
usagePeaks
|
|
304
|
-
} from "./chunk-
|
|
304
|
+
} from "./chunk-5SFKQCC7.js";
|
|
305
305
|
import {
|
|
306
306
|
expandTilde
|
|
307
307
|
} from "./chunk-LKDW2GWH.js";
|
|
@@ -310,14 +310,14 @@ import {
|
|
|
310
310
|
} from "./chunk-YTMQKXGJ.js";
|
|
311
311
|
import {
|
|
312
312
|
resolveFeature
|
|
313
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-EM5TGZYD.js";
|
|
314
314
|
import {
|
|
315
315
|
detectHarness,
|
|
316
316
|
discoverCodexRolloutPaths,
|
|
317
317
|
discoverSessionJsonlPaths,
|
|
318
318
|
harnessAdapter,
|
|
319
319
|
parseSessionFile
|
|
320
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-UU7KVABO.js";
|
|
321
321
|
import {
|
|
322
322
|
harnessLabel
|
|
323
323
|
} from "./chunk-DUNO7WBT.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-55AOIDG7.js";
|
|
4
4
|
import {
|
|
5
5
|
pullIfConfigured
|
|
6
6
|
} from "./chunk-U5LCESHQ.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
run,
|
|
11
11
|
stopWatching,
|
|
12
12
|
watchForMarker
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QMMXURVF.js";
|
|
14
14
|
import {
|
|
15
15
|
resumeNudge
|
|
16
16
|
} from "./chunk-7NZOH4LN.js";
|
|
@@ -20,26 +20,26 @@ import {
|
|
|
20
20
|
} from "./chunk-ZYK7V4PG.js";
|
|
21
21
|
import {
|
|
22
22
|
preassignedId
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EEFDZ4FS.js";
|
|
24
24
|
import {
|
|
25
25
|
emitActivity
|
|
26
26
|
} from "./chunk-4YAIQN3S.js";
|
|
27
27
|
import {
|
|
28
28
|
launchBlocker
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AFQMD7AO.js";
|
|
30
30
|
import {
|
|
31
31
|
isBlocked
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OYRCAC62.js";
|
|
33
33
|
import {
|
|
34
34
|
loadItemSummaries
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WLDKO4VB.js";
|
|
36
36
|
import {
|
|
37
37
|
getOrigin,
|
|
38
38
|
getReady
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VLYRZ5SP.js";
|
|
40
40
|
import {
|
|
41
41
|
loadItem
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-POXYZNR6.js";
|
|
43
43
|
import {
|
|
44
44
|
InvalidItemIdError,
|
|
45
45
|
formatItemId,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-N65VOEFI.js";
|
|
48
48
|
import {
|
|
49
49
|
harnessAdapter
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-UU7KVABO.js";
|
|
51
51
|
|
|
52
52
|
// src/commands/backlog/launchMode.ts
|
|
53
53
|
import chalk3 from "chalk";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isSchemaPath,
|
|
14
14
|
isSchemaRelativePath,
|
|
15
15
|
mentionsDocsPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5HBAIIK7.js";
|
|
17
17
|
import {
|
|
18
18
|
findBuiltinDenyRaw,
|
|
19
19
|
findDeny,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isApprovedRead,
|
|
24
24
|
resolvePermission,
|
|
25
25
|
splitCompound
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MPTENWZJ.js";
|
|
27
27
|
import {
|
|
28
28
|
isLiveDaemonSession
|
|
29
29
|
} from "./chunk-H63MI5HI.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-XJTXAL22.js";
|
|
33
33
|
import {
|
|
34
34
|
defersPreviewWait
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-M6MAQU3Z.js";
|
|
36
36
|
import {
|
|
37
37
|
askQuestionEnabled
|
|
38
38
|
} from "./chunk-IBPSXDUB.js";
|