@staff0rd/assist 0.1177.0 → 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-ZYSRGPPK.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-EXFM2OJH.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-E573PJQO.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-BDF4ZNX6.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-AG6HDXL7.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-4OBTBJGI.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-GBKSK5NM.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-BJYS3T47.js → chunk-UYGELUAS.js} +15 -15
- 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-IPHYNETA.js → chunk-XDBJOQY4.js} +27 -27
- package/dist/{chunk-SZY5ANA2.js → chunk-XY4XHIGT.js} +1 -1
- package/dist/{chunk-JIVAT6IU.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-OLELLGI5.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-2A2X4BYA.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-CC3ZZX3W.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-LVIOVPOG.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-FBD7UXIX.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-A6K3HKIO.js → run-5TXKCHOJ.js} +24 -25
- package/dist/{run-X6JJMFTX.js → run-ZG6I4ADW.js} +24 -25
- package/dist/{runDaemon-ZSLSNKWS.js → runDaemon-SX4R3YEQ.js} +169 -81
- package/dist/{runExtract-O2VT6GXC.js → runExtract-XYFMOU3N.js} +12 -14
- package/dist/{runRefine-DB6P3MCR.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-7K4SURCD.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-FZJK3CTV.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-XTOMYQRF.js → web-KGQROIGX.js} +44 -45
- package/dist/{web-PAJSC2XW.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
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
formatScanUsage,
|
|
35
35
|
inboxScanBlocker,
|
|
36
36
|
runInboxScan
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7CZTOEBC.js";
|
|
38
38
|
import "./chunk-2JYMVJGZ.js";
|
|
39
39
|
import {
|
|
40
40
|
showNotification
|
|
@@ -51,14 +51,14 @@ import {
|
|
|
51
51
|
recordPhaseSession,
|
|
52
52
|
releaseLock,
|
|
53
53
|
requestPause
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-UYGELUAS.js";
|
|
55
55
|
import {
|
|
56
56
|
buildResumePrompt,
|
|
57
57
|
wrapRestartNudge
|
|
58
58
|
} from "./chunk-F7QYFJB2.js";
|
|
59
59
|
import {
|
|
60
60
|
preassignedId
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-EEFDZ4FS.js";
|
|
62
62
|
import {
|
|
63
63
|
activityPath,
|
|
64
64
|
readActivity,
|
|
@@ -68,16 +68,16 @@ import {
|
|
|
68
68
|
} from "./chunk-4YAIQN3S.js";
|
|
69
69
|
import {
|
|
70
70
|
launchBlocker
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-AFQMD7AO.js";
|
|
72
72
|
import {
|
|
73
73
|
OneShotUnavailableError,
|
|
74
74
|
runOneShotPrompt
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-5V2PSFQZ.js";
|
|
76
76
|
import {
|
|
77
77
|
locateConversation,
|
|
78
78
|
readTranscriptHead,
|
|
79
79
|
transcriptMessages
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-LSPSE5PK.js";
|
|
81
81
|
import {
|
|
82
82
|
CHECK_NOTE_KEY
|
|
83
83
|
} from "./chunk-OLE7XSNB.js";
|
|
@@ -89,9 +89,6 @@ import {
|
|
|
89
89
|
supersededPreviewMessage,
|
|
90
90
|
toAttachments
|
|
91
91
|
} from "./chunk-QS2S63AF.js";
|
|
92
|
-
import {
|
|
93
|
-
harnessCapability
|
|
94
|
-
} from "./chunk-X7PGOOAB.js";
|
|
95
92
|
import {
|
|
96
93
|
AUTO_UPDATE_ACTIONS,
|
|
97
94
|
RATE_LIMIT_WINDOWS,
|
|
@@ -113,7 +110,7 @@ import {
|
|
|
113
110
|
toNodeSessionId,
|
|
114
111
|
usageWindowKey,
|
|
115
112
|
watcherLogPath
|
|
116
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-WACC5D2Z.js";
|
|
117
114
|
import {
|
|
118
115
|
newTraceId
|
|
119
116
|
} from "./chunk-4HKB2TAG.js";
|
|
@@ -125,7 +122,7 @@ import {
|
|
|
125
122
|
isHello,
|
|
126
123
|
linkVersionCheck,
|
|
127
124
|
negotiateProtocol
|
|
128
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-R4G74YF4.js";
|
|
129
126
|
import {
|
|
130
127
|
loadLinkSpecs
|
|
131
128
|
} from "./chunk-BU2ISPLO.js";
|
|
@@ -140,7 +137,7 @@ import "./chunk-XV2STPP6.js";
|
|
|
140
137
|
import {
|
|
141
138
|
conversationOf,
|
|
142
139
|
lookupConversation
|
|
143
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-ONVFP5UL.js";
|
|
144
141
|
import {
|
|
145
142
|
stripAnsi
|
|
146
143
|
} from "./chunk-YJ72SXVD.js";
|
|
@@ -165,10 +162,10 @@ import {
|
|
|
165
162
|
} from "./chunk-HHUHTPYB.js";
|
|
166
163
|
import {
|
|
167
164
|
readInboxLastScan
|
|
168
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-33TWT7ED.js";
|
|
169
166
|
import {
|
|
170
167
|
refreshRepoConfigCache
|
|
171
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-Z544QRLG.js";
|
|
172
169
|
import "./chunk-E36L7ASL.js";
|
|
173
170
|
import {
|
|
174
171
|
git,
|
|
@@ -178,12 +175,12 @@ import {
|
|
|
178
175
|
} from "./chunk-QAJUCN3A.js";
|
|
179
176
|
import {
|
|
180
177
|
resolvePlan
|
|
181
|
-
} from "./chunk-
|
|
182
|
-
import "./chunk-
|
|
183
|
-
import "./chunk-
|
|
178
|
+
} from "./chunk-PTD3FE65.js";
|
|
179
|
+
import "./chunk-47A67SZG.js";
|
|
180
|
+
import "./chunk-J77SUTGV.js";
|
|
184
181
|
import {
|
|
185
182
|
loadItem
|
|
186
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-POXYZNR6.js";
|
|
187
184
|
import {
|
|
188
185
|
formatItemId,
|
|
189
186
|
parseItemId
|
|
@@ -196,9 +193,9 @@ import {
|
|
|
196
193
|
phaseUsageMessages,
|
|
197
194
|
recordWindowPeak,
|
|
198
195
|
usagePeaks
|
|
199
|
-
} from "./chunk-
|
|
200
|
-
import "./chunk-
|
|
201
|
-
import "./chunk-
|
|
196
|
+
} from "./chunk-5SFKQCC7.js";
|
|
197
|
+
import "./chunk-DZQGGM7S.js";
|
|
198
|
+
import "./chunk-YKL7VLIQ.js";
|
|
202
199
|
import "./chunk-JG2I5RTS.js";
|
|
203
200
|
import "./chunk-OUSMW4D6.js";
|
|
204
201
|
import "./chunk-LKDW2GWH.js";
|
|
@@ -206,8 +203,8 @@ import {
|
|
|
206
203
|
runConfigBaseDirFrom
|
|
207
204
|
} from "./chunk-YTMQKXGJ.js";
|
|
208
205
|
import "./chunk-NZYSENRR.js";
|
|
209
|
-
import "./chunk-
|
|
210
|
-
import "./chunk-
|
|
206
|
+
import "./chunk-CVRUEPAF.js";
|
|
207
|
+
import "./chunk-EM5TGZYD.js";
|
|
211
208
|
import {
|
|
212
209
|
deriveHistoryFields,
|
|
213
210
|
discoverCodexRolloutPaths,
|
|
@@ -231,13 +228,12 @@ import {
|
|
|
231
228
|
sdkTerminalStub,
|
|
232
229
|
sessionChildEnv,
|
|
233
230
|
setSdkUsageSink,
|
|
234
|
-
spawnClaudeSdk,
|
|
235
231
|
spawnPty,
|
|
236
232
|
splitShellBlocks,
|
|
237
233
|
viewerSize,
|
|
238
234
|
withHarnessPath,
|
|
239
235
|
workflowQueryEnv
|
|
240
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-UU7KVABO.js";
|
|
241
237
|
import {
|
|
242
238
|
daemonLog,
|
|
243
239
|
recentDaemonLogLines,
|
|
@@ -250,11 +246,12 @@ import "./chunk-W7TRZLEM.js";
|
|
|
250
246
|
import "./chunk-P26XSDFU.js";
|
|
251
247
|
import "./chunk-IBPSXDUB.js";
|
|
252
248
|
import {
|
|
249
|
+
harnessCapability,
|
|
253
250
|
resolveCapability
|
|
254
|
-
} from "./chunk-
|
|
255
|
-
import "./chunk-
|
|
256
|
-
import "./chunk-55DAVOXM.js";
|
|
251
|
+
} from "./chunk-GNNMJOUE.js";
|
|
252
|
+
import "./chunk-RXFNQQZC.js";
|
|
257
253
|
import {
|
|
254
|
+
harnessLabel,
|
|
258
255
|
resolveHarness
|
|
259
256
|
} from "./chunk-DUNO7WBT.js";
|
|
260
257
|
import {
|
|
@@ -263,9 +260,9 @@ import {
|
|
|
263
260
|
import "./chunk-APZ6ZTDA.js";
|
|
264
261
|
import "./chunk-BFQSGIN6.js";
|
|
265
262
|
import "./chunk-D7UZLH36.js";
|
|
266
|
-
import "./chunk-
|
|
263
|
+
import "./chunk-O4NZNNM6.js";
|
|
267
264
|
import "./chunk-EW2ZM2PC.js";
|
|
268
|
-
import "./chunk-
|
|
265
|
+
import "./chunk-T2BK6RAR.js";
|
|
269
266
|
import {
|
|
270
267
|
conversationRecoveryFeature,
|
|
271
268
|
conversationResumeFeature,
|
|
@@ -1120,7 +1117,7 @@ function isSdkSession(session) {
|
|
|
1120
1117
|
function skipsTerminalPath(session, path2) {
|
|
1121
1118
|
if (!isSdkSession(session)) return false;
|
|
1122
1119
|
daemonLog(
|
|
1123
|
-
`session ${session.id} ${path2} skipped:
|
|
1120
|
+
`session ${session.id} ${path2} skipped: driven session has no terminal`
|
|
1124
1121
|
);
|
|
1125
1122
|
return true;
|
|
1126
1123
|
}
|
|
@@ -3577,9 +3574,9 @@ function supersedePendingPreview(session, waiters, newRequestId) {
|
|
|
3577
3574
|
});
|
|
3578
3575
|
const label = `pr-preview superseded: id=${session.id} old=${pending.requestId} new=${newRequestId}`;
|
|
3579
3576
|
const taskId = session.pendingPreviewTaskId;
|
|
3580
|
-
const
|
|
3581
|
-
if (taskId &&
|
|
3582
|
-
|
|
3577
|
+
const stopTask = session.pty?.sdk?.stopTask;
|
|
3578
|
+
if (taskId && stopTask) {
|
|
3579
|
+
stopTask(taskId).then(
|
|
3583
3580
|
() => daemonLog(`${label} task=${taskId} stopped`),
|
|
3584
3581
|
(error) => {
|
|
3585
3582
|
daemonLog(
|
|
@@ -4063,10 +4060,10 @@ async function recordBoundPhaseSession(session, conversationId) {
|
|
|
4063
4060
|
|
|
4064
4061
|
// src/commands/sessions/daemon/completeBinding.ts
|
|
4065
4062
|
function completeBinding(session, bound, notify, onBound) {
|
|
4066
|
-
const { conversationId, harnessLabel } = bound;
|
|
4063
|
+
const { conversationId, harnessLabel: harnessLabel2 } = bound;
|
|
4067
4064
|
claimConversation(session, conversationId);
|
|
4068
4065
|
daemonLog(
|
|
4069
|
-
`session ${session.id} bound to ${
|
|
4066
|
+
`session ${session.id} bound to ${harnessLabel2} conversation ${conversationId}`
|
|
4070
4067
|
);
|
|
4071
4068
|
rememberSessionTitle(session);
|
|
4072
4069
|
void recordBoundPhaseSession(session, conversationId);
|
|
@@ -4082,8 +4079,8 @@ var latestBind = /* @__PURE__ */ new WeakMap();
|
|
|
4082
4079
|
function bindConversation(session, notify, launchedAt = session.startedAt, onBound) {
|
|
4083
4080
|
const cwd = session.cwd;
|
|
4084
4081
|
const adapter = harnessAdapter(session.harness);
|
|
4085
|
-
const
|
|
4086
|
-
if (!
|
|
4082
|
+
const discover2 = adapter.conversation.discover;
|
|
4083
|
+
if (!discover2 || !cwd || adapter.conversation.boundId(session)) return;
|
|
4087
4084
|
const bind = (latestBind.get(session) ?? 0) + 1;
|
|
4088
4085
|
latestBind.set(session, bind);
|
|
4089
4086
|
const superseded = () => !!adapter.conversation.boundId(session) || latestBind.get(session) !== bind;
|
|
@@ -4092,7 +4089,7 @@ function bindConversation(session, notify, launchedAt = session.startedAt, onBou
|
|
|
4092
4089
|
const schedule = () => setTimeout(() => void poll(), POLL_MS4).unref();
|
|
4093
4090
|
const poll = async () => {
|
|
4094
4091
|
if (superseded()) return;
|
|
4095
|
-
const conversationId = await
|
|
4092
|
+
const conversationId = await discover2({
|
|
4096
4093
|
cwd,
|
|
4097
4094
|
launchedAt,
|
|
4098
4095
|
sinceMs,
|
|
@@ -5412,6 +5409,7 @@ function respawnSession(session, respawn, status, clients, onStatusChange) {
|
|
|
5412
5409
|
session.runningSince = null;
|
|
5413
5410
|
setStatus(session, status);
|
|
5414
5411
|
session.restored = void 0;
|
|
5412
|
+
session.error = void 0;
|
|
5415
5413
|
try {
|
|
5416
5414
|
session.pty = respawn();
|
|
5417
5415
|
} catch (error) {
|
|
@@ -5501,6 +5499,11 @@ function freshPlan(session, adapter, prompt) {
|
|
|
5501
5499
|
};
|
|
5502
5500
|
}
|
|
5503
5501
|
|
|
5502
|
+
// src/shared/isHarnessKind.ts
|
|
5503
|
+
function isHarnessKind(value) {
|
|
5504
|
+
return harnessKinds.includes(value);
|
|
5505
|
+
}
|
|
5506
|
+
|
|
5504
5507
|
// src/commands/sessions/daemon/assistArgsHarness.ts
|
|
5505
5508
|
function flagValue(args) {
|
|
5506
5509
|
const index = args.indexOf("--harness");
|
|
@@ -5513,9 +5516,6 @@ function defaultsType(args) {
|
|
|
5513
5516
|
return "run";
|
|
5514
5517
|
return void 0;
|
|
5515
5518
|
}
|
|
5516
|
-
function isHarnessKind(value) {
|
|
5517
|
-
return harnessKinds.includes(value);
|
|
5518
|
-
}
|
|
5519
5519
|
function assistArgsHarness(args, cwd) {
|
|
5520
5520
|
const value = flagValue(args);
|
|
5521
5521
|
if (value) return isHarnessKind(value) ? value : void 0;
|
|
@@ -5545,7 +5545,7 @@ function emitClearedSdkState(emit) {
|
|
|
5545
5545
|
// src/commands/sessions/daemon/sdk/relaySdkActions.ts
|
|
5546
5546
|
function relaySdkActions(label, current) {
|
|
5547
5547
|
const dropped = (action) => daemonLog(
|
|
5548
|
-
`${label} sdk ${action} dropped: no
|
|
5548
|
+
`${label} sdk ${action} dropped: no driven query is attached to this workflow`
|
|
5549
5549
|
);
|
|
5550
5550
|
return {
|
|
5551
5551
|
send: (text) => {
|
|
@@ -5563,8 +5563,10 @@ function relaySdkActions(label, current) {
|
|
|
5563
5563
|
return false;
|
|
5564
5564
|
},
|
|
5565
5565
|
stopTask: (taskId) => {
|
|
5566
|
-
const
|
|
5567
|
-
return
|
|
5566
|
+
const stopTask = current()?.sdk?.stopTask;
|
|
5567
|
+
return stopTask ? stopTask(taskId) : Promise.reject(
|
|
5568
|
+
new Error("no driven query with background tasks attached")
|
|
5569
|
+
);
|
|
5568
5570
|
}
|
|
5569
5571
|
};
|
|
5570
5572
|
}
|
|
@@ -5701,7 +5703,8 @@ function spawnSdkWorkflow(args, cwd, sessionId, extraEnv) {
|
|
|
5701
5703
|
|
|
5702
5704
|
// src/commands/sessions/daemon/spawnAssistProcess.ts
|
|
5703
5705
|
function spawnAssistProcess(args, cwd, sessionId, extraEnv) {
|
|
5704
|
-
|
|
5706
|
+
const harness = assistArgsHarness(args.slice(1), cwd);
|
|
5707
|
+
if (harness && harnessCapability(harness, "session.driven").supported)
|
|
5705
5708
|
return spawnSdkWorkflow(args, cwd, sessionId, extraEnv);
|
|
5706
5709
|
return spawnPty(args, cwd, sessionId, extraEnv);
|
|
5707
5710
|
}
|
|
@@ -5734,14 +5737,26 @@ function respawnPlan(session, fresh = false) {
|
|
|
5734
5737
|
return null;
|
|
5735
5738
|
}
|
|
5736
5739
|
|
|
5740
|
+
// src/commands/sessions/daemon/rebindAfterRespawn.ts
|
|
5741
|
+
function rebindAfterRespawn(session, notify, onStatusChange) {
|
|
5742
|
+
if (!session.pty) return;
|
|
5743
|
+
bindConversation(
|
|
5744
|
+
session,
|
|
5745
|
+
notify,
|
|
5746
|
+
session.startedAt,
|
|
5747
|
+
(s) => watchTranscript(s, notify, onStatusChange)
|
|
5748
|
+
);
|
|
5749
|
+
}
|
|
5750
|
+
|
|
5737
5751
|
// src/commands/sessions/daemon/restartSession.ts
|
|
5738
|
-
function restartSession(session, clients, onStatusChange, fresh = false) {
|
|
5752
|
+
function restartSession(session, clients, onStatusChange, fresh = false, notify) {
|
|
5739
5753
|
if (fresh)
|
|
5740
5754
|
daemonLog(`session ${session.id} start-over requested: ${session.name}`);
|
|
5741
5755
|
const plan = respawnPlan(session, fresh);
|
|
5742
5756
|
if (!plan) return false;
|
|
5743
5757
|
const respawn = () => {
|
|
5744
5758
|
respawnSession(session, plan.spawn, plan.status, clients, onStatusChange);
|
|
5759
|
+
if (notify) rebindAfterRespawn(session, notify, onStatusChange);
|
|
5745
5760
|
const resume = plan.resumeOutcome?.() ?? {
|
|
5746
5761
|
id: session.claudeSessionId
|
|
5747
5762
|
};
|
|
@@ -5766,7 +5781,7 @@ function restartSession(session, clients, onStatusChange, fresh = false) {
|
|
|
5766
5781
|
}
|
|
5767
5782
|
|
|
5768
5783
|
// src/commands/sessions/daemon/restartManagedSession.ts
|
|
5769
|
-
function restartManagedSession(sessions, id, clients, onStatusChange, fresh = false) {
|
|
5784
|
+
function restartManagedSession(sessions, id, clients, onStatusChange, fresh = false, notify) {
|
|
5770
5785
|
const s = sessions.get(id);
|
|
5771
5786
|
if (!s) {
|
|
5772
5787
|
daemonLog(
|
|
@@ -5778,7 +5793,7 @@ function restartManagedSession(sessions, id, clients, onStatusChange, fresh = fa
|
|
|
5778
5793
|
};
|
|
5779
5794
|
}
|
|
5780
5795
|
daemonLog(`restart requested: id=${id} status=${s.status} (${s.name})`);
|
|
5781
|
-
if (!restartSession(s, clients, onStatusChange, fresh)) {
|
|
5796
|
+
if (!restartSession(s, clients, onStatusChange, fresh, notify)) {
|
|
5782
5797
|
daemonLog(`restart for session ${id} did nothing: no respawn plan`);
|
|
5783
5798
|
return {
|
|
5784
5799
|
ok: false,
|
|
@@ -5795,7 +5810,8 @@ function restartAndNotify(sessions, id, clients, onStatusChange, notify, fresh =
|
|
|
5795
5810
|
id,
|
|
5796
5811
|
clients,
|
|
5797
5812
|
onStatusChange,
|
|
5798
|
-
fresh
|
|
5813
|
+
fresh,
|
|
5814
|
+
notify
|
|
5799
5815
|
);
|
|
5800
5816
|
if (result.ok) notify();
|
|
5801
5817
|
return result;
|
|
@@ -6577,7 +6593,14 @@ function restoreInteractiveSession(id, persisted, base, status) {
|
|
|
6577
6593
|
return notRestoredStub(base, persisted);
|
|
6578
6594
|
}
|
|
6579
6595
|
function unrecoverableClaude(id, persisted) {
|
|
6580
|
-
|
|
6596
|
+
const session = errorSession(
|
|
6597
|
+
id,
|
|
6598
|
+
persisted,
|
|
6599
|
+
unresumableReason(persisted.harness)
|
|
6600
|
+
);
|
|
6601
|
+
if (harnessAdapter(persisted.harness).conversation.discover && persisted.cwd)
|
|
6602
|
+
session.discoverOnRestore = true;
|
|
6603
|
+
return session;
|
|
6581
6604
|
}
|
|
6582
6605
|
function notRestoredStub(base, persisted) {
|
|
6583
6606
|
return {
|
|
@@ -6664,7 +6687,7 @@ function spawnErrorCard(persisted, spawner, reason6) {
|
|
|
6664
6687
|
}
|
|
6665
6688
|
}
|
|
6666
6689
|
function logUnresumable(name, id, session) {
|
|
6667
|
-
if (session?.status === "error")
|
|
6690
|
+
if (session?.status === "error" && !session.discoverOnRestore)
|
|
6668
6691
|
daemonLog(
|
|
6669
6692
|
`could not resume restored session "${name}" (id ${id}): ${session.error}`
|
|
6670
6693
|
);
|
|
@@ -6703,6 +6726,53 @@ function deferOne(persisted, spawnRecoveryCard, cap) {
|
|
|
6703
6726
|
}
|
|
6704
6727
|
}
|
|
6705
6728
|
|
|
6729
|
+
// src/commands/sessions/daemon/resumeDiscoveredConversations.ts
|
|
6730
|
+
function resumeDiscoveredConversations(deps) {
|
|
6731
|
+
for (const session of deps.sessions.values())
|
|
6732
|
+
if (session.discoverOnRestore)
|
|
6733
|
+
resumeDiscovered(session, deps).catch(
|
|
6734
|
+
(error) => daemonLog(
|
|
6735
|
+
`session ${session.id} conversation discovery after daemon restart failed: ${error instanceof Error ? error.message : String(error)}`
|
|
6736
|
+
)
|
|
6737
|
+
);
|
|
6738
|
+
}
|
|
6739
|
+
async function resumeDiscovered(session, deps) {
|
|
6740
|
+
session.discoverOnRestore = void 0;
|
|
6741
|
+
const { clients, onStatusChange, notify } = deps;
|
|
6742
|
+
const adapter = harnessAdapter(session.harness);
|
|
6743
|
+
const conversationId = adapter.conversation.boundId(session) ?? await discover(session);
|
|
6744
|
+
if (session.status !== "error" || session.pty) return;
|
|
6745
|
+
if (!conversationId) {
|
|
6746
|
+
daemonLog(
|
|
6747
|
+
`could not resume restored session "${session.name}" (id ${session.id}): ${session.error}`
|
|
6748
|
+
);
|
|
6749
|
+
return;
|
|
6750
|
+
}
|
|
6751
|
+
if (!adapter.conversation.boundId(session))
|
|
6752
|
+
completeBinding(
|
|
6753
|
+
session,
|
|
6754
|
+
{ conversationId, harnessLabel: adapter.label },
|
|
6755
|
+
notify,
|
|
6756
|
+
(s) => watchTranscript(s, notify, onStatusChange)
|
|
6757
|
+
);
|
|
6758
|
+
daemonLog(
|
|
6759
|
+
`session ${session.id} resuming discovered ${adapter.label} conversation ${conversationId} after daemon restart`
|
|
6760
|
+
);
|
|
6761
|
+
if (restartSession(session, clients, onStatusChange, false, notify)) notify();
|
|
6762
|
+
}
|
|
6763
|
+
async function discover(session) {
|
|
6764
|
+
const { cwd, startedAt } = session;
|
|
6765
|
+
const discoverConversation = harnessAdapter(session.harness).conversation.discover;
|
|
6766
|
+
if (!discoverConversation || !cwd) return void 0;
|
|
6767
|
+
const conversationId = await discoverConversation({
|
|
6768
|
+
cwd,
|
|
6769
|
+
launchedAt: startedAt,
|
|
6770
|
+
sinceMs: startedAt - START_SLACK_MS,
|
|
6771
|
+
claimed: claimedByOthers(session)
|
|
6772
|
+
});
|
|
6773
|
+
return conversationId && !claimedByOthers(session).has(conversationId) ? conversationId : void 0;
|
|
6774
|
+
}
|
|
6775
|
+
|
|
6706
6776
|
// src/commands/sessions/daemon/worktree/rearmStoppedSessions.ts
|
|
6707
6777
|
function armStoppedSession(sessions, session, notify) {
|
|
6708
6778
|
void resolveCloseDurability(
|
|
@@ -7007,6 +7077,7 @@ function heldTrees(sessions) {
|
|
|
7007
7077
|
function restoreAllSessions(spawner, deps) {
|
|
7008
7078
|
const { sessions, notify } = deps;
|
|
7009
7079
|
const names = restoreAll(spawner, sessions);
|
|
7080
|
+
resumeDiscoveredConversations(deps);
|
|
7010
7081
|
reopenDeferredCommands(sessions.values(), {
|
|
7011
7082
|
session: (id) => sessions.get(id),
|
|
7012
7083
|
io: deps.io
|
|
@@ -8763,6 +8834,22 @@ var handleInterrupt = routedSdk("interrupt", (sdk, id) => {
|
|
|
8763
8834
|
sdk.interrupt();
|
|
8764
8835
|
});
|
|
8765
8836
|
|
|
8837
|
+
// src/shared/harnessAdapters/drivenSessionFor.ts
|
|
8838
|
+
function drivenSessionFor(kind) {
|
|
8839
|
+
if (!harnessCapability(kind, "session.driven").supported) return void 0;
|
|
8840
|
+
return harnessAdapter(kind).drivenSession;
|
|
8841
|
+
}
|
|
8842
|
+
|
|
8843
|
+
// src/commands/sessions/daemon/sdk/drivenLaunchTarget.ts
|
|
8844
|
+
function drivenLaunchTarget(value) {
|
|
8845
|
+
const harness = isHarnessKind(value) ? value : void 0;
|
|
8846
|
+
return {
|
|
8847
|
+
harness,
|
|
8848
|
+
label: harness ? harnessLabel(harness) : "Driven session",
|
|
8849
|
+
drivenSession: harness ? drivenSessionFor(harness) : void 0
|
|
8850
|
+
};
|
|
8851
|
+
}
|
|
8852
|
+
|
|
8766
8853
|
// src/commands/sessions/daemon/sdk/linkWorkflowQuery.ts
|
|
8767
8854
|
function linkWorkflowQuery(client, sessionId, query) {
|
|
8768
8855
|
let ended = false;
|
|
@@ -8783,61 +8870,62 @@ function linkWorkflowQuery(client, sessionId, query) {
|
|
|
8783
8870
|
}
|
|
8784
8871
|
|
|
8785
8872
|
// src/commands/sessions/daemon/sdk/refuseSdkLaunch.ts
|
|
8786
|
-
function refuseSdkLaunch(client, sessionId, reason6) {
|
|
8873
|
+
function refuseSdkLaunch(client, sessionId, label, reason6) {
|
|
8787
8874
|
daemonLog(`sdk-launch refused: session ${sessionId} ${reason6}`);
|
|
8788
8875
|
sendTo(client, {
|
|
8789
8876
|
type: "sdk-exit",
|
|
8790
8877
|
sessionId,
|
|
8791
8878
|
exitCode: 1,
|
|
8792
|
-
error:
|
|
8879
|
+
error: `${label} launch refused: session ${sessionId} ${reason6}`
|
|
8793
8880
|
});
|
|
8794
8881
|
}
|
|
8795
8882
|
|
|
8796
|
-
// src/commands/sessions/daemon/sdk/
|
|
8883
|
+
// src/commands/sessions/daemon/sdk/sdkLaunchOpts.ts
|
|
8797
8884
|
var optional = (value) => typeof value === "string" && value ? value : void 0;
|
|
8798
8885
|
var stringRecord = (value) => Object.fromEntries(
|
|
8799
8886
|
Object.entries(value && typeof value === "object" ? value : {}).filter(
|
|
8800
8887
|
(entry) => typeof entry[1] === "string"
|
|
8801
8888
|
)
|
|
8802
8889
|
);
|
|
8890
|
+
function sdkLaunchOpts(d, sessionId) {
|
|
8891
|
+
return {
|
|
8892
|
+
prompt: optional(d.prompt),
|
|
8893
|
+
cwd: optional(d.cwd),
|
|
8894
|
+
sessionId,
|
|
8895
|
+
conversationId: optional(d.conversationId),
|
|
8896
|
+
resumeId: optional(d.resumeId),
|
|
8897
|
+
model: optional(d.model),
|
|
8898
|
+
launcherEnv: stringRecord(d.env)
|
|
8899
|
+
};
|
|
8900
|
+
}
|
|
8901
|
+
|
|
8902
|
+
// src/commands/sessions/daemon/sdk/handleSdkLaunch.ts
|
|
8803
8903
|
var handleSdkLaunch = (client, m, d) => {
|
|
8804
8904
|
const sessionId = String(d.sessionId);
|
|
8805
8905
|
m.clients.delete(client);
|
|
8906
|
+
const { harness, label, drivenSession } = drivenLaunchTarget(d.harness);
|
|
8907
|
+
const refuse2 = (reason6) => refuseSdkLaunch(client, sessionId, label, reason6);
|
|
8908
|
+
if (!drivenSession)
|
|
8909
|
+
return refuse2(
|
|
8910
|
+
`named ${harness ?? "no harness"}, which does not run daemon-driven sessions`
|
|
8911
|
+
);
|
|
8806
8912
|
const session = m.session(sessionId);
|
|
8807
8913
|
const attach = session?.pty?.sdk?.attach;
|
|
8808
|
-
if (!attach)
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
sessionId,
|
|
8812
|
-
session ? "is not a Claude (SDK) workflow session" : "was not found"
|
|
8914
|
+
if (!attach)
|
|
8915
|
+
return refuse2(
|
|
8916
|
+
session ? "is not a driven workflow session" : "was not found"
|
|
8813
8917
|
);
|
|
8814
|
-
|
|
8815
|
-
}
|
|
8816
|
-
const prompt = optional(d.prompt);
|
|
8817
|
-
const resumeId = optional(d.resumeId);
|
|
8918
|
+
const opts = sdkLaunchOpts(d, sessionId);
|
|
8818
8919
|
daemonLog(
|
|
8819
|
-
`session ${sessionId} sdk-launch received: ${resumeId ? `resume ${resumeId}` : `
|
|
8920
|
+
`session ${sessionId} sdk-launch received: ${harness}, ${opts.resumeId ? `resume ${opts.resumeId}` : `conversation ${opts.conversationId ?? "unassigned"}`}${opts.prompt ? "" : ", no prompt"}`
|
|
8820
8921
|
);
|
|
8821
8922
|
let query;
|
|
8822
8923
|
try {
|
|
8823
|
-
query =
|
|
8824
|
-
prompt,
|
|
8825
|
-
cwd: optional(d.cwd),
|
|
8826
|
-
sessionId,
|
|
8827
|
-
claudeSessionId: optional(d.conversationId),
|
|
8828
|
-
resumeId,
|
|
8829
|
-
model: optional(d.model),
|
|
8830
|
-
launcherEnv: stringRecord(d.env)
|
|
8831
|
-
});
|
|
8924
|
+
query = drivenSession(opts);
|
|
8832
8925
|
} catch (error) {
|
|
8833
|
-
|
|
8834
|
-
client,
|
|
8835
|
-
sessionId,
|
|
8836
|
-
error instanceof Error ? error.message : String(error)
|
|
8837
|
-
);
|
|
8838
|
-
return;
|
|
8926
|
+
return refuse2(error instanceof Error ? error.message : String(error));
|
|
8839
8927
|
}
|
|
8840
|
-
attach(query, !prompt);
|
|
8928
|
+
attach(query, !opts.prompt);
|
|
8841
8929
|
linkWorkflowQuery(client, sessionId, query);
|
|
8842
8930
|
};
|
|
8843
8931
|
|
|
@@ -6,10 +6,9 @@ import {
|
|
|
6
6
|
} from "./chunk-RFMBA6WA.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitPreviewApproval
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CPJ3KOSP.js";
|
|
10
10
|
import "./chunk-QS2S63AF.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-X7PGOOAB.js";
|
|
11
|
+
import "./chunk-M6MAQU3Z.js";
|
|
13
12
|
import "./chunk-3VDV7VHX.js";
|
|
14
13
|
import {
|
|
15
14
|
readRawConfigLayers
|
|
@@ -23,36 +22,35 @@ import {
|
|
|
23
22
|
} from "./chunk-NNNJ6VTH.js";
|
|
24
23
|
import {
|
|
25
24
|
applySharedRepoConfigSet
|
|
26
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JDR5RER7.js";
|
|
27
26
|
import {
|
|
28
27
|
getNestedValue
|
|
29
28
|
} from "./chunk-OU6Q5ZS3.js";
|
|
30
29
|
import "./chunk-B5ZOANOD.js";
|
|
31
30
|
import "./chunk-5JOVEUBS.js";
|
|
32
31
|
import "./chunk-VPMI4LV2.js";
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-ZRPLRWAQ.js";
|
|
34
33
|
import "./chunk-P3XZEKMD.js";
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-5XLNXKJ2.js";
|
|
36
35
|
import "./chunk-YOFY27RM.js";
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-Z544QRLG.js";
|
|
38
37
|
import "./chunk-5BV6X73M.js";
|
|
39
38
|
import "./chunk-YNHPTUHS.js";
|
|
40
39
|
import "./chunk-Z7ENC7OG.js";
|
|
41
40
|
import "./chunk-GIHVMELY.js";
|
|
42
41
|
import "./chunk-2EW62DM5.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-5SFKQCC7.js";
|
|
43
|
+
import "./chunk-DZQGGM7S.js";
|
|
44
|
+
import "./chunk-YKL7VLIQ.js";
|
|
46
45
|
import "./chunk-JG2I5RTS.js";
|
|
47
46
|
import "./chunk-OUSMW4D6.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-55DAVOXM.js";
|
|
47
|
+
import "./chunk-GNNMJOUE.js";
|
|
48
|
+
import "./chunk-RXFNQQZC.js";
|
|
51
49
|
import "./chunk-DUNO7WBT.js";
|
|
52
50
|
import "./chunk-BFQSGIN6.js";
|
|
53
51
|
import "./chunk-D7UZLH36.js";
|
|
54
52
|
import "./chunk-EW2ZM2PC.js";
|
|
55
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-T2BK6RAR.js";
|
|
56
54
|
import "./chunk-XDIVXGPQ.js";
|
|
57
55
|
import "./chunk-YC6XUY34.js";
|
|
58
56
|
import {
|