@staff0rd/assist 0.1170.0 → 0.1171.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/dist/.build-files +31 -29
- package/dist/built-version +1 -1
- package/dist/{chunk-S52T4GS4.js → chunk-3GXIMTGV.js} +1 -1
- package/dist/{chunk-UI7EVOVW.js → chunk-56MLTET6.js} +1 -1
- package/dist/{chunk-2HXFT4UA.js → chunk-DF2RO3HN.js} +1 -1
- package/dist/chunk-FZIYYKUT.js +43 -0
- package/dist/{chunk-6DOKYFVL.js → chunk-HASUUWD4.js} +3 -3
- package/dist/{chunk-IB2PNGPT.js → chunk-LTJELZEB.js} +4 -2
- package/dist/chunk-LTRVWKT5.js +51 -0
- package/dist/{chunk-GG3PS6PL.js → chunk-NXQKAFP4.js} +1 -1
- package/dist/chunk-RGLHBCBU.js +30 -0
- package/dist/{chunk-PHSMORWI.js → chunk-RH3MRR7W.js} +1 -1
- package/dist/{chunk-4GQT37PJ.js → chunk-RN6N5PBR.js} +2 -2
- package/dist/{chunk-5I4N7Y7B.js → chunk-TJMRKPT4.js} +1 -1
- package/dist/{chunk-MZ4PK3IM.js → chunk-YCR73USO.js} +1 -1
- package/dist/{chunk-4YNHDVLM.js → chunk-YM6T2AAR.js} +1 -1
- package/dist/commands/sessions/web/bundle.js +1 -1
- package/dist/{doctorNodes-HHTGXYR3.js → doctorNodes-5F7DCZ5B.js} +3 -3
- package/dist/{done-5HZCYORB.js → done-E72Z7ECB.js} +7 -0
- package/dist/index.js +24 -24
- package/dist/{launchMode-OBKENNRJ.js → launchMode-XWRRV34L.js} +5 -4
- package/dist/{next-LEA6YPKZ.js → next-4RDKKAFD.js} +4 -3
- package/dist/{phaseDone-ZLYD53UQ.js → phaseDone-L54W2FEQ.js} +8 -20
- package/dist/{refine-2MQJKFON.js → refine-36MDNT24.js} +6 -5
- package/dist/{restartNode-IMOJIOBP.js → restartNode-RZAWPPO5.js} +5 -5
- package/dist/{rewindPhase-HAHIU236.js → rewindPhase-COPWFKMK.js} +3 -2
- package/dist/{run-HKC4DM2J.js → run-5LR5KWYE.js} +3 -2
- package/dist/{run-SGTIZ7RV.js → run-QBAQDALK.js} +3 -2
- package/dist/{runDaemon-WC5S62NG.js → runDaemon-X5SBNINO.js} +2 -2
- package/dist/{runRefine-XKRTEJAL.js → runRefine-HZ4NLV6A.js} +6 -5
- package/dist/{signExtension-O3PFO3SY.js → signExtension-PHSV2SS6.js} +1 -1
- package/dist/{updateNode-XKBRAECB.js → updateNode-H3KA7OFM.js} +5 -5
- package/dist/{web-AU6IIXGV.js → web-CZ5QVAIU.js} +8 -7
- package/dist/{web-AJ5ITLVU.js → web-FD4IR4VB.js} +8 -7
- package/dist/{writeSignal-7QEYDUHV.js → writeSignal-SCNJ2WAJ.js} +2 -1
- package/package.json +1 -1
- package/dist/chunk-KS2LGA6V.js +0 -90
package/dist/.build-files
CHANGED
|
@@ -31,11 +31,11 @@ checkBuildLocks-UBGUSNX5.js
|
|
|
31
31
|
chunk-27IXJYFR.js
|
|
32
32
|
chunk-2EW62DM5.js
|
|
33
33
|
chunk-2HT3GIJD.js
|
|
34
|
-
chunk-2HXFT4UA.js
|
|
35
34
|
chunk-2JYMVJGZ.js
|
|
36
35
|
chunk-2KG6ZPX4.js
|
|
37
36
|
chunk-2KXKGM2Q.js
|
|
38
37
|
chunk-2MG2THMQ.js
|
|
38
|
+
chunk-3GXIMTGV.js
|
|
39
39
|
chunk-3HNTLFII.js
|
|
40
40
|
chunk-3JXMQFUS.js
|
|
41
41
|
chunk-3KLTYFPV.js
|
|
@@ -51,7 +51,6 @@ chunk-425LLTMS.js
|
|
|
51
51
|
chunk-43MJXI4R.js
|
|
52
52
|
chunk-4BVUY25U.js
|
|
53
53
|
chunk-4CP23TT2.js
|
|
54
|
-
chunk-4GQT37PJ.js
|
|
55
54
|
chunk-4HKB2TAG.js
|
|
56
55
|
chunk-4HZ4Z27M.js
|
|
57
56
|
chunk-4JIXM5NT.js
|
|
@@ -63,12 +62,11 @@ chunk-4XHBAEMS.js
|
|
|
63
62
|
chunk-4Y4ADPEK.js
|
|
64
63
|
chunk-4YAIQN3S.js
|
|
65
64
|
chunk-4YHDWC5E.js
|
|
66
|
-
chunk-4YNHDVLM.js
|
|
67
65
|
chunk-547VKFOA.js
|
|
68
66
|
chunk-556BOFTS.js
|
|
67
|
+
chunk-56MLTET6.js
|
|
69
68
|
chunk-5CT7CKQM.js
|
|
70
69
|
chunk-5G5VG5P7.js
|
|
71
|
-
chunk-5I4N7Y7B.js
|
|
72
70
|
chunk-5JOVEUBS.js
|
|
73
71
|
chunk-5KSIOK73.js
|
|
74
72
|
chunk-5MFQ7T3G.js
|
|
@@ -77,7 +75,6 @@ chunk-5VW2GS73.js
|
|
|
77
75
|
chunk-5WQDLREX.js
|
|
78
76
|
chunk-62GEKLQ6.js
|
|
79
77
|
chunk-6DGPQ67E.js
|
|
80
|
-
chunk-6DOKYFVL.js
|
|
81
78
|
chunk-6FGA6L2E.js
|
|
82
79
|
chunk-6G2ADBNV.js
|
|
83
80
|
chunk-6GUFWQ3N.js
|
|
@@ -126,6 +123,7 @@ chunk-CUOHHT2F.js
|
|
|
126
123
|
chunk-CWK7VXYA.js
|
|
127
124
|
chunk-D7UZLH36.js
|
|
128
125
|
chunk-DBQTGW7F.js
|
|
126
|
+
chunk-DF2RO3HN.js
|
|
129
127
|
chunk-DIAC4XYA.js
|
|
130
128
|
chunk-DISNKALJ.js
|
|
131
129
|
chunk-DNUEENBJ.js
|
|
@@ -152,10 +150,10 @@ chunk-FQJJEZ3O.js
|
|
|
152
150
|
chunk-FVZP4ULO.js
|
|
153
151
|
chunk-FYSUHMKS.js
|
|
154
152
|
chunk-FYYZG4GY.js
|
|
153
|
+
chunk-FZIYYKUT.js
|
|
155
154
|
chunk-G3ROBZ4I.js
|
|
156
155
|
chunk-G44QYJ57.js
|
|
157
156
|
chunk-GF4MNBOX.js
|
|
158
|
-
chunk-GG3PS6PL.js
|
|
159
157
|
chunk-GL5GKF5A.js
|
|
160
158
|
chunk-GP7S6QPQ.js
|
|
161
159
|
chunk-GQF23TWI.js
|
|
@@ -165,6 +163,7 @@ chunk-GVI4JSG7.js
|
|
|
165
163
|
chunk-GVVK5XFZ.js
|
|
166
164
|
chunk-GYAXLTV6.js
|
|
167
165
|
chunk-H6LFISSF.js
|
|
166
|
+
chunk-HASUUWD4.js
|
|
168
167
|
chunk-HCANRBFK.js
|
|
169
168
|
chunk-HHKS3UZB.js
|
|
170
169
|
chunk-HKGCLAZ7.js
|
|
@@ -174,7 +173,6 @@ chunk-HO7RNI6V.js
|
|
|
174
173
|
chunk-I2ZQXBOS.js
|
|
175
174
|
chunk-I3TEQBTO.js
|
|
176
175
|
chunk-I5MLH7WJ.js
|
|
177
|
-
chunk-IB2PNGPT.js
|
|
178
176
|
chunk-IBPSXDUB.js
|
|
179
177
|
chunk-IIFOAUOM.js
|
|
180
178
|
chunk-IMKMNPRL.js
|
|
@@ -204,7 +202,6 @@ chunk-K5LOYASR.js
|
|
|
204
202
|
chunk-KD2PWI4Z.js
|
|
205
203
|
chunk-KGFZYUE2.js
|
|
206
204
|
chunk-KP5S3FE5.js
|
|
207
|
-
chunk-KS2LGA6V.js
|
|
208
205
|
chunk-KUCVY5R7.js
|
|
209
206
|
chunk-KY77XKAU.js
|
|
210
207
|
chunk-L363MNYZ.js
|
|
@@ -217,6 +214,8 @@ chunk-LMUTL44M.js
|
|
|
217
214
|
chunk-LOP6Y256.js
|
|
218
215
|
chunk-LQFSYNUE.js
|
|
219
216
|
chunk-LSBUNT4X.js
|
|
217
|
+
chunk-LTJELZEB.js
|
|
218
|
+
chunk-LTRVWKT5.js
|
|
220
219
|
chunk-M3O2BTJG.js
|
|
221
220
|
chunk-MBPVW7BY.js
|
|
222
221
|
chunk-MELBVXKL.js
|
|
@@ -227,7 +226,6 @@ chunk-MODUPHYS.js
|
|
|
227
226
|
chunk-MRUIXQXS.js
|
|
228
227
|
chunk-MSKC2RCS.js
|
|
229
228
|
chunk-MVSLFBWG.js
|
|
230
|
-
chunk-MZ4PK3IM.js
|
|
231
229
|
chunk-N2U7GIMU.js
|
|
232
230
|
chunk-N65VOEFI.js
|
|
233
231
|
chunk-N755UYFK.js
|
|
@@ -240,6 +238,7 @@ chunk-NLTT3LC6.js
|
|
|
240
238
|
chunk-NPQGX4IO.js
|
|
241
239
|
chunk-NTWNDSCD.js
|
|
242
240
|
chunk-NWNODYLQ.js
|
|
241
|
+
chunk-NXQKAFP4.js
|
|
243
242
|
chunk-NZYSENRR.js
|
|
244
243
|
chunk-O5JIFWMQ.js
|
|
245
244
|
chunk-O6HFT23O.js
|
|
@@ -264,7 +263,6 @@ chunk-P3RGVQ5B.js
|
|
|
264
263
|
chunk-P7FVAGFQ.js
|
|
265
264
|
chunk-PCF66ALO.js
|
|
266
265
|
chunk-PD2BTMEY.js
|
|
267
|
-
chunk-PHSMORWI.js
|
|
268
266
|
chunk-PIDKNOD6.js
|
|
269
267
|
chunk-PIMHGLG4.js
|
|
270
268
|
chunk-PRYFYXI6.js
|
|
@@ -288,13 +286,15 @@ chunk-QVQ2OJXX.js
|
|
|
288
286
|
chunk-R2HLLDFE.js
|
|
289
287
|
chunk-R72E45HQ.js
|
|
290
288
|
chunk-RFMBA6WA.js
|
|
289
|
+
chunk-RGLHBCBU.js
|
|
290
|
+
chunk-RH3MRR7W.js
|
|
291
291
|
chunk-RIMA7EFJ.js
|
|
292
|
+
chunk-RN6N5PBR.js
|
|
292
293
|
chunk-RNFWWESE.js
|
|
293
294
|
chunk-RTYIICCX.js
|
|
294
295
|
chunk-RVABNGZW.js
|
|
295
296
|
chunk-RW2B5RU5.js
|
|
296
297
|
chunk-RXKI4XAU.js
|
|
297
|
-
chunk-S52T4GS4.js
|
|
298
298
|
chunk-S6FVZYHH.js
|
|
299
299
|
chunk-S6XYTJU2.js
|
|
300
300
|
chunk-SB4BG7PH.js
|
|
@@ -308,6 +308,7 @@ chunk-T4TPIDXO.js
|
|
|
308
308
|
chunk-T7ZPGAB5.js
|
|
309
309
|
chunk-TCTX3UXU.js
|
|
310
310
|
chunk-TJGF3Z72.js
|
|
311
|
+
chunk-TJMRKPT4.js
|
|
311
312
|
chunk-TQ5KKZ6G.js
|
|
312
313
|
chunk-TUPSNHFZ.js
|
|
313
314
|
chunk-TVQY3HPZ.js
|
|
@@ -316,7 +317,6 @@ chunk-U732RAGX.js
|
|
|
316
317
|
chunk-UCTFPC6X.js
|
|
317
318
|
chunk-UE5PIMY2.js
|
|
318
319
|
chunk-UEWARAPX.js
|
|
319
|
-
chunk-UI7EVOVW.js
|
|
320
320
|
chunk-UJBW7FVI.js
|
|
321
321
|
chunk-UN4ABKA7.js
|
|
322
322
|
chunk-UP6QV5BJ.js
|
|
@@ -368,10 +368,12 @@ chunk-XY5OS2GH.js
|
|
|
368
368
|
chunk-XZFSW5AY.js
|
|
369
369
|
chunk-Y3JV5CEL.js
|
|
370
370
|
chunk-Y3R4C2P7.js
|
|
371
|
+
chunk-YCR73USO.js
|
|
371
372
|
chunk-YDA62L6J.js
|
|
372
373
|
chunk-YIBSK5OC.js
|
|
373
374
|
chunk-YJ72SXVD.js
|
|
374
375
|
chunk-YKVLG4SZ.js
|
|
376
|
+
chunk-YM6T2AAR.js
|
|
375
377
|
chunk-YNHPTUHS.js
|
|
376
378
|
chunk-YOFY27RM.js
|
|
377
379
|
chunk-YQ3CNWB3.js
|
|
@@ -457,8 +459,8 @@ denyRemove-4IUYBEMU.js
|
|
|
457
459
|
deps-RSUOIZPE.js
|
|
458
460
|
docsConfirm-TJCYL5IL.js
|
|
459
461
|
docsUnlock-7F2N6OZN.js
|
|
460
|
-
doctorNodes-
|
|
461
|
-
done-
|
|
462
|
+
doctorNodes-5F7DCZ5B.js
|
|
463
|
+
done-E72Z7ECB.js
|
|
462
464
|
drainDaemon-2UUTCBNC.js
|
|
463
465
|
dropRetiredTables-JBLALSG5.js
|
|
464
466
|
edit-XLS74GEX.js
|
|
@@ -489,7 +491,7 @@ init-BNY2X74K.js
|
|
|
489
491
|
init-PZIM2TEG.js
|
|
490
492
|
inspect-OI5K5KSG.js
|
|
491
493
|
jiraAuth-4Z5EVL7A.js
|
|
492
|
-
launchMode-
|
|
494
|
+
launchMode-XWRRV34L.js
|
|
493
495
|
link-5CWACWHB.js
|
|
494
496
|
link-LYQZULAX.js
|
|
495
497
|
linkNode-6BLVHLT4.js
|
|
@@ -516,13 +518,13 @@ netcap-FIHYF3LK.js
|
|
|
516
518
|
netcapExtract-KAFERZ6V.js
|
|
517
519
|
newCli-BLQL26SN.js
|
|
518
520
|
newProject-5UN6N4MS.js
|
|
521
|
+
next-4RDKKAFD.js
|
|
519
522
|
next-FAAUSQLC.js
|
|
520
|
-
next-LEA6YPKZ.js
|
|
521
523
|
noVenv-DONW2S6P.js
|
|
522
524
|
nodeLogs-VMIZ5CXR.js
|
|
523
525
|
notify-AWHRIIYK.js
|
|
524
526
|
permitCliReads-6FVIMWRO.js
|
|
525
|
-
phaseDone-
|
|
527
|
+
phaseDone-L54W2FEQ.js
|
|
526
528
|
piHook-GCKOXN5A.js
|
|
527
529
|
plan-IQCMHN77.js
|
|
528
530
|
postSlackMessage-KXS4R7Y6.js
|
|
@@ -545,7 +547,7 @@ readBodyArgument-WHNTOBUE.js
|
|
|
545
547
|
readTime-CWEUMPXR.js
|
|
546
548
|
recordSlack-TZH2THZH.js
|
|
547
549
|
redirect-G7WS7LDE.js
|
|
548
|
-
refine-
|
|
550
|
+
refine-36MDNT24.js
|
|
549
551
|
refreshDocs-7JNTMR46.js
|
|
550
552
|
releasesConfigure-CLIC4ZJK.js
|
|
551
553
|
releasesList-EETLBTD2.js
|
|
@@ -561,17 +563,17 @@ repos-JP75ZTBU.js
|
|
|
561
563
|
resolveHarness-Q6HQK2IZ.js
|
|
562
564
|
resolveModel-EPG2YC5Q.js
|
|
563
565
|
restartDaemon-JZRU364H.js
|
|
564
|
-
restartNode-
|
|
566
|
+
restartNode-RZAWPPO5.js
|
|
565
567
|
restructure-FJ3BME7E.js
|
|
566
568
|
review-LQGEHHIW.js
|
|
567
569
|
reviewPrComments-RXADKZLV.js
|
|
568
|
-
rewindPhase-
|
|
570
|
+
rewindPhase-COPWFKMK.js
|
|
569
571
|
rulesAdd-V4SWWQKL.js
|
|
570
|
-
run-
|
|
571
|
-
run-
|
|
572
|
-
runDaemon-
|
|
572
|
+
run-5LR5KWYE.js
|
|
573
|
+
run-QBAQDALK.js
|
|
574
|
+
runDaemon-X5SBNINO.js
|
|
573
575
|
runExtract-4IIID534.js
|
|
574
|
-
runRefine-
|
|
576
|
+
runRefine-HZ4NLV6A.js
|
|
575
577
|
runScope-H3J75ZMO.js
|
|
576
578
|
scan-BO23G2MD.js
|
|
577
579
|
scheduleBackup-3UZQU67U.js
|
|
@@ -589,7 +591,7 @@ show-OLER6JJU.js
|
|
|
589
591
|
show-QBR7REUE.js
|
|
590
592
|
showClaudeCodeIcon-E4SAM3GN.js
|
|
591
593
|
showCodexIcon-YUAKV4NI.js
|
|
592
|
-
signExtension-
|
|
594
|
+
signExtension-PHSV2SS6.js
|
|
593
595
|
simulateDivergence-VB4UL4UR.js
|
|
594
596
|
skip-PRE2V5HC.js
|
|
595
597
|
slack-SMNDERHS.js
|
|
@@ -617,7 +619,7 @@ unlinkNode-OK6M6RHF.js
|
|
|
617
619
|
unstar-FBZF3RJQ.js
|
|
618
620
|
update-64YJ4HRY.js
|
|
619
621
|
update-Z73FZ4ZB.js
|
|
620
|
-
updateNode-
|
|
622
|
+
updateNode-H3KA7OFM.js
|
|
621
623
|
updatePhase-QNEA4YU2.js
|
|
622
624
|
updatePlan-UJ76CTUM.js
|
|
623
625
|
version-4E3HWTDD.js
|
|
@@ -625,10 +627,10 @@ viewIssue-CYHIPCFO.js
|
|
|
625
627
|
watchLoop-MV7DVGC6.js
|
|
626
628
|
watchReport-A4W7UOAJ.js
|
|
627
629
|
watchWait-FF65XUH2.js
|
|
628
|
-
web-
|
|
629
|
-
web-
|
|
630
|
+
web-CZ5QVAIU.js
|
|
631
|
+
web-FD4IR4VB.js
|
|
630
632
|
withPool-APJFDKR2.js
|
|
631
633
|
wontdo-NIR44VPG.js
|
|
632
634
|
wontfix-ASUD2OQM.js
|
|
633
635
|
write-PH5YX6V5.js
|
|
634
|
-
writeSignal-
|
|
636
|
+
writeSignal-SCNJ2WAJ.js
|
package/dist/built-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.1171.0
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// src/commands/backlog/recordSignalOwner.ts
|
|
2
|
+
import {
|
|
3
|
+
existsSync,
|
|
4
|
+
mkdirSync,
|
|
5
|
+
readFileSync,
|
|
6
|
+
rmSync,
|
|
7
|
+
writeFileSync
|
|
8
|
+
} from "fs";
|
|
9
|
+
import { homedir } from "os";
|
|
10
|
+
import { dirname, join } from "path";
|
|
11
|
+
function getOwnerPath(itemId) {
|
|
12
|
+
return join(homedir(), ".assist", "signals", `owner-${itemId}.json`);
|
|
13
|
+
}
|
|
14
|
+
function recordSignalOwner(itemId) {
|
|
15
|
+
const sessionId = process.env.ASSIST_SESSION_ID;
|
|
16
|
+
if (!sessionId) return;
|
|
17
|
+
const path = getOwnerPath(itemId);
|
|
18
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
19
|
+
writeFileSync(path, JSON.stringify({ sessionId }));
|
|
20
|
+
}
|
|
21
|
+
function readSignalOwner(itemId) {
|
|
22
|
+
const path = getOwnerPath(itemId);
|
|
23
|
+
if (!existsSync(path)) return void 0;
|
|
24
|
+
try {
|
|
25
|
+
const parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
26
|
+
return parsed.sessionId;
|
|
27
|
+
} catch {
|
|
28
|
+
return void 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function clearSignalOwner(itemId) {
|
|
32
|
+
const path = getOwnerPath(itemId);
|
|
33
|
+
try {
|
|
34
|
+
rmSync(path);
|
|
35
|
+
} catch {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
recordSignalOwner,
|
|
41
|
+
readSignalOwner,
|
|
42
|
+
clearSignalOwner
|
|
43
|
+
};
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-3NPVVAAT.js";
|
|
27
27
|
import {
|
|
28
28
|
firstBrokenHop
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-56MLTET6.js";
|
|
30
30
|
import {
|
|
31
31
|
TRACE_HEADER,
|
|
32
32
|
newTraceId
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
ASSIST_VERSION,
|
|
36
36
|
PROTOCOL_VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DF2RO3HN.js";
|
|
38
38
|
import {
|
|
39
39
|
queryNodes
|
|
40
40
|
} from "./chunk-OD7CMDGZ.js";
|
|
@@ -236,7 +236,7 @@ import {
|
|
|
236
236
|
} from "./chunk-AOTNNZPH.js";
|
|
237
237
|
import {
|
|
238
238
|
rewindItemToPhase
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-3GXIMTGV.js";
|
|
240
240
|
import {
|
|
241
241
|
loadBacklogSummaries,
|
|
242
242
|
searchBacklogSummaries
|
|
@@ -82,11 +82,13 @@ import {
|
|
|
82
82
|
import {
|
|
83
83
|
linkedWorktree
|
|
84
84
|
} from "./chunk-LBAPKP6M.js";
|
|
85
|
+
import {
|
|
86
|
+
getSignalPath
|
|
87
|
+
} from "./chunk-LTRVWKT5.js";
|
|
85
88
|
import {
|
|
86
89
|
clearSignalOwner,
|
|
87
|
-
getSignalPath,
|
|
88
90
|
recordSignalOwner
|
|
89
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-FZIYYKUT.js";
|
|
90
92
|
import {
|
|
91
93
|
exitOnCancel
|
|
92
94
|
} from "./chunk-SSKHLBQB.js";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readSignalOwner
|
|
3
|
+
} from "./chunk-FZIYYKUT.js";
|
|
4
|
+
|
|
5
|
+
// src/commands/backlog/writeSignal.ts
|
|
6
|
+
import { mkdirSync, writeFileSync } from "fs";
|
|
7
|
+
import { homedir } from "os";
|
|
8
|
+
import { dirname, join } from "path";
|
|
9
|
+
import chalk from "chalk";
|
|
10
|
+
function getSignalPath(sessionId = process.env.ASSIST_SESSION_ID) {
|
|
11
|
+
if (!sessionId) return void 0;
|
|
12
|
+
return join(homedir(), ".assist", "signals", `signal-${sessionId}.json`);
|
|
13
|
+
}
|
|
14
|
+
function resolveSignalTarget(event, data) {
|
|
15
|
+
const caller = process.env.ASSIST_SESSION_ID;
|
|
16
|
+
const itemId = typeof data?.itemId === "number" ? data.itemId : void 0;
|
|
17
|
+
if (itemId === void 0) return caller;
|
|
18
|
+
const owner = readSignalOwner(itemId);
|
|
19
|
+
if (owner) {
|
|
20
|
+
if (caller && owner !== caller) {
|
|
21
|
+
console.log(
|
|
22
|
+
chalk.dim(
|
|
23
|
+
`Routing ${event} signal for item ${itemId} to its run (${owner}), not this session (${caller}).`
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
return owner;
|
|
28
|
+
}
|
|
29
|
+
if (caller) {
|
|
30
|
+
console.log(
|
|
31
|
+
chalk.yellow(
|
|
32
|
+
`Not signalling ${event} for item ${itemId}: no live run owns it, and this session (${caller}) does not either.`
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
function writeSignal(event, data) {
|
|
39
|
+
const target = resolveSignalTarget(event, data);
|
|
40
|
+
if (!target) return;
|
|
41
|
+
const path = getSignalPath(target);
|
|
42
|
+
if (!path) return;
|
|
43
|
+
const signal = { event, sessionId: target, ...data };
|
|
44
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
45
|
+
writeFileSync(path, JSON.stringify(signal));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
getSignalPath,
|
|
50
|
+
writeSignal
|
|
51
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sendToDaemonAwaitAck
|
|
3
|
+
} from "./chunk-UVTZ4VFK.js";
|
|
4
|
+
import {
|
|
5
|
+
appendDaemonLog
|
|
6
|
+
} from "./chunk-6YRKJTHT.js";
|
|
7
|
+
import {
|
|
8
|
+
readSignalOwner
|
|
9
|
+
} from "./chunk-FZIYYKUT.js";
|
|
10
|
+
|
|
11
|
+
// src/commands/sessions/closeSessionPreviewsRemote.ts
|
|
12
|
+
async function closeSessionPreviewsRemote(sessionId, reason) {
|
|
13
|
+
if (!sessionId) return;
|
|
14
|
+
try {
|
|
15
|
+
await sendToDaemonAwaitAck({ type: "close-previews", sessionId, reason });
|
|
16
|
+
} catch (error) {
|
|
17
|
+
appendDaemonLog(
|
|
18
|
+
`close-previews send failed: id=${sessionId} (${reason}): ${error instanceof Error ? error.message : String(error)}`
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// src/commands/backlog/closeRunPreviews.ts
|
|
24
|
+
async function closeRunPreviews(itemId, reason) {
|
|
25
|
+
await closeSessionPreviewsRemote(readSignalOwner(itemId), reason);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
closeRunPreviews
|
|
30
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YCR73USO.js";
|
|
4
4
|
import {
|
|
5
5
|
pullIfConfigured
|
|
6
6
|
} from "./chunk-SB4BG7PH.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
run,
|
|
11
11
|
stopWatching,
|
|
12
12
|
watchForMarker
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LTJELZEB.js";
|
|
14
14
|
import {
|
|
15
15
|
resumeNudge
|
|
16
16
|
} from "./chunk-7NZOH4LN.js";
|