@staff0rd/assist 0.1149.0 → 0.1151.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.
Files changed (177) hide show
  1. package/dist/.build-files +167 -166
  2. package/dist/{add-XWJN42HG.js → add-AESVVBQN.js} +4 -4
  3. package/dist/{addActivity-IUDDS4FX.js → addActivity-JEDMNTYW.js} +6 -6
  4. package/dist/{addPhase-565F7KOZ.js → addPhase-J34XKHLO.js} +8 -8
  5. package/dist/{advise-TF3W2HBA.js → advise-WN2C66UJ.js} +5 -5
  6. package/dist/{ask-ESCDDQH5.js → ask-GXMVORX7.js} +4 -4
  7. package/dist/{askCheck-ZIF7BWBQ.js → askCheck-76WHHHNM.js} +20 -27
  8. package/dist/{askDesign-RYBRLSD3.js → askDesign-ZNZD3VXM.js} +7 -7
  9. package/dist/{askQuestion-BCPZSSJ4.js → askQuestion-MRI2ATSI.js} +5 -5
  10. package/dist/{associateGithub-VYQUEKWJ.js → associateGithub-ONWGQI42.js} +4 -4
  11. package/dist/{associateJira-EUNZOJJC.js → associateJira-AVUYIH27.js} +4 -4
  12. package/dist/{branch-R5SCN2UJ.js → branch-K2DGKPDR.js} +5 -5
  13. package/dist/built-version +1 -1
  14. package/dist/{chunk-RSLB4ODM.js → chunk-2KXKGM2Q.js} +1 -1
  15. package/dist/{chunk-XAKBHIPL.js → chunk-3J2AZSPZ.js} +9 -9
  16. package/dist/{chunk-OVV4XBBX.js → chunk-3JVE3EEO.js} +1 -1
  17. package/dist/{chunk-ZKVDVSCE.js → chunk-3NPVVAAT.js} +2 -2
  18. package/dist/{chunk-GOGGPW2L.js → chunk-3RPWEZV4.js} +1 -1
  19. package/dist/{chunk-U4DNTL25.js → chunk-4HZ4Z27M.js} +3 -3
  20. package/dist/{chunk-XMUQ5UBX.js → chunk-4NSAQ5E5.js} +1 -1
  21. package/dist/{chunk-4GMAYXOS.js → chunk-6YRKJTHT.js} +1 -1
  22. package/dist/{chunk-2DCOBBPI.js → chunk-ANS4AQDI.js} +1 -1
  23. package/dist/{chunk-PRYIRRAS.js → chunk-AOTNNZPH.js} +1 -1
  24. package/dist/{chunk-NTH3COMZ.js → chunk-AT33IHDZ.js} +2 -2
  25. package/dist/{chunk-72REFTYS.js → chunk-C3DOHRWO.js} +1 -1
  26. package/dist/{chunk-HICUMDUD.js → chunk-C4POAODE.js} +1 -1
  27. package/dist/{chunk-ZO7NYS25.js → chunk-C5U44UI7.js} +1 -1
  28. package/dist/{chunk-GSXHABVW.js → chunk-CD56HMTG.js} +21 -10
  29. package/dist/{chunk-2NLD36CE.js → chunk-CHAUXPIP.js} +3 -3
  30. package/dist/{chunk-6NXP34PE.js → chunk-CJLBH3DN.js} +1 -1
  31. package/dist/{chunk-3E7RVOMC.js → chunk-CWK7VXYA.js} +1 -1
  32. package/dist/{chunk-Y3DL3RF7.js → chunk-D2GLGK3G.js} +4 -4
  33. package/dist/{chunk-RPRL6G4R.js → chunk-DIQAEGJ5.js} +1 -1
  34. package/dist/{chunk-IEK6CQQH.js → chunk-ELF4PBZX.js} +2 -1
  35. package/dist/{chunk-VA4XAHSN.js → chunk-GKCAEW5J.js} +19 -19
  36. package/dist/{chunk-PDOQVVZA.js → chunk-GOVUTFGC.js} +1 -1
  37. package/dist/{chunk-ROCHUNJI.js → chunk-GP7S6QPQ.js} +1 -1
  38. package/dist/{chunk-LBPOEGTS.js → chunk-GRUNF3WW.js} +1 -1
  39. package/dist/{chunk-QAH6X3NA.js → chunk-GZ5E7OHF.js} +1 -1
  40. package/dist/{chunk-AWRPXWP2.js → chunk-GZEEGROK.js} +1 -1
  41. package/dist/{chunk-KNXHXMFT.js → chunk-H3UM6QRY.js} +1 -1
  42. package/dist/{chunk-YC3CIJQN.js → chunk-JVHDLRNZ.js} +1 -1
  43. package/dist/{chunk-ZSAYC4ER.js → chunk-KA2V6HLD.js} +1 -1
  44. package/dist/{chunk-ZFSD6ZJP.js → chunk-KSMPUXH5.js} +1 -1
  45. package/dist/{chunk-Y2KEHWBZ.js → chunk-LQFSYNUE.js} +1 -1
  46. package/dist/{chunk-YHJTRCUF.js → chunk-LZY4INWM.js} +1 -1
  47. package/dist/{chunk-M2PMZTIF.js → chunk-MOBXP7IB.js} +1 -1
  48. package/dist/{chunk-F2LP5MBV.js → chunk-N2U7GIMU.js} +1 -1
  49. package/dist/{chunk-W2HN7MC2.js → chunk-NFXJVC2Z.js} +2 -2
  50. package/dist/{chunk-7MYJWY37.js → chunk-NU3L3SM2.js} +2 -2
  51. package/dist/{chunk-OGKBGLQS.js → chunk-OA4EJYZY.js} +32 -11
  52. package/dist/{chunk-4TIDERIW.js → chunk-OD7CMDGZ.js} +1 -1
  53. package/dist/{chunk-Q7RUUXND.js → chunk-OFLEIPAR.js} +1 -1
  54. package/dist/{chunk-F5BFL4JK.js → chunk-OIEWOLWW.js} +3 -3
  55. package/dist/{chunk-YTIVOMM3.js → chunk-OLDFLYHV.js} +1 -1
  56. package/dist/chunk-OLE7XSNB.js +19 -0
  57. package/dist/{chunk-JRK7JDU4.js → chunk-OQGQBUBJ.js} +1 -1
  58. package/dist/{chunk-QRXRXE7D.js → chunk-OWWGKT6F.js} +1 -1
  59. package/dist/{chunk-TXVLR2EJ.js → chunk-PGJVFI4M.js} +1 -1
  60. package/dist/{chunk-ZWTRFLA6.js → chunk-PIMHGLG4.js} +1 -1
  61. package/dist/{chunk-SJBV4BIG.js → chunk-PMZ6A7XX.js} +1 -1
  62. package/dist/{chunk-3FSX26XC.js → chunk-PRYFYXI6.js} +1 -1
  63. package/dist/{chunk-X6ETCS7E.js → chunk-PYZUB3JT.js} +1 -1
  64. package/dist/{chunk-N3H6ECBZ.js → chunk-QOQ6LRUD.js} +3 -3
  65. package/dist/{chunk-Y4MBH7VW.js → chunk-S6TWGP2S.js} +1 -1
  66. package/dist/{chunk-3PI7FMYV.js → chunk-SBRGQVWS.js} +2 -2
  67. package/dist/{chunk-LKVISYMA.js → chunk-SXYX65J7.js} +2 -2
  68. package/dist/{chunk-VE26B5QP.js → chunk-SYTHN2X3.js} +1 -1
  69. package/dist/{chunk-TRPX44JR.js → chunk-TGVCPC2F.js} +2 -2
  70. package/dist/{chunk-EBVNAMYS.js → chunk-U2MFQ2H4.js} +4 -4
  71. package/dist/{chunk-NOHNPOQK.js → chunk-UVTZ4VFK.js} +1 -1
  72. package/dist/{chunk-L4NOD7SX.js → chunk-V4W6R2LK.js} +1 -1
  73. package/dist/{chunk-KN5ZETAR.js → chunk-VYFXF763.js} +1 -1
  74. package/dist/{chunk-PGQK356A.js → chunk-WP7S72JJ.js} +1 -1
  75. package/dist/{chunk-NYEGRDOK.js → chunk-WQF27PEJ.js} +2 -2
  76. package/dist/{chunk-UJAMN3ML.js → chunk-WTQRIUSK.js} +2 -2
  77. package/dist/{chunk-CXJJGUTK.js → chunk-XP2QVEEO.js} +1 -1
  78. package/dist/{chunk-6CK47ZGM.js → chunk-XYT5LCUW.js} +1 -1
  79. package/dist/{chunk-SDOEWLEE.js → chunk-YMYZBSS6.js} +1 -1
  80. package/dist/{chunk-ODWX74PC.js → chunk-YVCSXCBB.js} +5 -5
  81. package/dist/{chunk-TK4AJIJZ.js → chunk-ZCGRZJ6Y.js} +1 -1
  82. package/dist/{chunk-UGGH3MEX.js → chunk-ZH6HKQOY.js} +1 -1
  83. package/dist/{chunk-VRQ4WDF7.js → chunk-ZH7FLZPU.js} +1 -1
  84. package/dist/{chunk-ARU5TAGC.js → chunk-ZQQEBC6Y.js} +1 -1
  85. package/dist/{cliHook-VGJRLSI2.js → cliHook-NCHROJVU.js} +9 -9
  86. package/dist/{cliHookCheck-2I6MLAW2.js → cliHookCheck-2QH7HBCX.js} +4 -4
  87. package/dist/{closeSession-I2J2ICU4.js → closeSession-NNINWOID.js} +4 -4
  88. package/dist/{codeCommentSet-AI2N5ZT6.js → codeCommentSet-A6JUXBZD.js} +4 -4
  89. package/dist/{codexHook-NKKE3F2L.js → codexHook-GQJFH7AF.js} +14 -14
  90. package/dist/commands/extension/extension/content.js +30 -30
  91. package/dist/commands/extension/extension/docs.js +28 -28
  92. package/dist/commands/sessions/web/bundle.js +415 -415
  93. package/dist/{comment-R5MBHRIJ.js → comment-EXMBXH3T.js} +3 -3
  94. package/dist/{comment-SAOYKB2J.js → comment-NXF5C634.js} +5 -5
  95. package/dist/{commentIssue-PDIQVTZM.js → commentIssue-SZAB7TJQ.js} +4 -4
  96. package/dist/{comments-ABF3S3O5.js → comments-RCBCQYKH.js} +3 -3
  97. package/dist/{commit-QCHFHGCO.js → commit-VT7VJNAT.js} +5 -5
  98. package/dist/{createIssue-AIQ3U4LC.js → createIssue-FQQNJIWA.js} +3 -3
  99. package/dist/{daemonStatus-YXGIS55D.js → daemonStatus-GZKN2CYX.js} +5 -5
  100. package/dist/{del-NHH7NU3Y.js → del-NVWQX5OD.js} +3 -3
  101. package/dist/{deleteCommentCmd-SAG7WMDV.js → deleteCommentCmd-AUOGQD6L.js} +3 -3
  102. package/dist/{docsConfirm-FWDAMRZW.js → docsConfirm-OVUTMONK.js} +4 -4
  103. package/dist/{docsUnlock-FYMKS55Z.js → docsUnlock-YOHDLSPU.js} +7 -7
  104. package/dist/{doctorNodes-MJQZMXAG.js → doctorNodes-A4WV4O2N.js} +7 -7
  105. package/dist/{done-JWJURR7T.js → done-3PMUFG5E.js} +8 -8
  106. package/dist/{drainDaemon-LCQQ3EP4.js → drainDaemon-T2X2H2Z5.js} +2 -2
  107. package/dist/{edit-CFPOK62A.js → edit-MRTB2VJQ.js} +3 -3
  108. package/dist/{editHook-FC53RLQC.js → editHook-4I4O24OG.js} +9 -9
  109. package/dist/{editIssue-C2G7D3VJ.js → editIssue-WICT2PNQ.js} +3 -3
  110. package/dist/{editIssueComment-5SIYQKI6.js → editIssueComment-OJZXFL5P.js} +4 -4
  111. package/dist/{fixConflict-EYLGDMB7.js → fixConflict-KE72MGGP.js} +7 -7
  112. package/dist/{harnessFollowUps-GZP2FYFR.js → harnessFollowUps-JC2ZUX4L.js} +3 -3
  113. package/dist/index.js +103 -103
  114. package/dist/{launchMode-VOBL4DYU.js → launchMode-G5GQI6RH.js} +19 -19
  115. package/dist/{link-JDJBEJCL.js → link-5CWACWHB.js} +3 -3
  116. package/dist/{linkNode-IZ7TMIBN.js → linkNode-6BLVHLT4.js} +5 -5
  117. package/dist/{list-DZI4AJDI.js → list-SFYLZAWU.js} +9 -9
  118. package/dist/{listNodes-HNKK3LEQ.js → listNodes-E2VHV6V6.js} +4 -4
  119. package/dist/{movePhase-AK3F6A6P.js → movePhase-4D2WZ5K6.js} +3 -3
  120. package/dist/{moveRepo-P7LPCWIL.js → moveRepo-I3QC6UFW.js} +3 -3
  121. package/dist/{newCli-2HD56JUI.js → newCli-BLQL26SN.js} +3 -3
  122. package/dist/{next-N4B5GJIW.js → next-6K6G7FPY.js} +18 -18
  123. package/dist/{nodeLogs-NNLS5TNI.js → nodeLogs-VMIZ5CXR.js} +1 -1
  124. package/dist/{phaseDone-FBAQDO3S.js → phaseDone-IDSQF65B.js} +3 -3
  125. package/dist/{piHook-WQCNKOET.js → piHook-VW54NTXW.js} +9 -9
  126. package/dist/{plan-GBSJWMXP.js → plan-IQCMHN77.js} +3 -3
  127. package/dist/{postSlackMessage-SJQGYGJQ.js → postSlackMessage-EOGHWXM5.js} +4 -4
  128. package/dist/{propose-LYUPJI3S.js → propose-2QLI6LNH.js} +12 -12
  129. package/dist/{raise-OBGNVBLZ.js → raise-UADRWTZE.js} +7 -7
  130. package/dist/{refine-Z35RA6V2.js → refine-2TN2MGBJ.js} +21 -21
  131. package/dist/{refreshDocs-A5S2NQ5Z.js → refreshDocs-7JNTMR46.js} +4 -4
  132. package/dist/{removePhase-S4WFO6PT.js → removePhase-BUCY4ROU.js} +4 -4
  133. package/dist/{renameSession-IQ6RHQUJ.js → renameSession-MVBJ4R7W.js} +4 -4
  134. package/dist/{reply-4VV4LEYF.js → reply-UTOBFFKP.js} +4 -4
  135. package/dist/restartDaemon-JZRU364H.js +11 -0
  136. package/dist/{restartNode-K55QKVHE.js → restartNode-7747LAX4.js} +10 -10
  137. package/dist/{review-D2RDX52O.js → review-YJZVECC6.js} +16 -16
  138. package/dist/{reviewPrComments-G7AMAMFC.js → reviewPrComments-2K5ZASCB.js} +7 -7
  139. package/dist/{rewindPhase-XN7YOWRA.js → rewindPhase-ESQ5E74W.js} +12 -12
  140. package/dist/{run-ULEKHZB2.js → run-NUMXNCH5.js} +16 -16
  141. package/dist/{run-KTKO7CCD.js → run-XK5D6Q5L.js} +16 -16
  142. package/dist/{runDaemon-GYIMLUGL.js → runDaemon-ZQ7BPPBN.js} +109 -32
  143. package/dist/{runExtract-IUEUT2IK.js → runExtract-CTLWMXRG.js} +3 -3
  144. package/dist/{runRefine-OV3VCQHC.js → runRefine-IPBZEQAF.js} +21 -21
  145. package/dist/{runScope-LCAGTKGG.js → runScope-H3J75ZMO.js} +3 -3
  146. package/dist/{scan-WYS544B7.js → scan-QLPUZAJB.js} +4 -4
  147. package/dist/{schemaConfirm-SLHW4EIV.js → schemaConfirm-FH6DHU5D.js} +7 -7
  148. package/dist/{schemaUnlock-365ORD3L.js → schemaUnlock-RVWEQGBX.js} +9 -9
  149. package/dist/{search-TJSKMOO4.js → search-6IJI74JX.js} +9 -9
  150. package/dist/{sessionOutput-NXHUXIKC.js → sessionOutput-PWY5X3MH.js} +2 -2
  151. package/dist/setSessionStatus-6VLIC3AD.js +12 -0
  152. package/dist/{setStatusCommand-WBRJ4BTB.js → setStatusCommand-54E3IJ72.js} +3 -3
  153. package/dist/{show-53I2FMRF.js → show-3BYF2XTK.js} +7 -7
  154. package/dist/{show-ZXFLSRFT.js → show-N4PRGXZV.js} +5 -5
  155. package/dist/{signExtension-NYXORPSK.js → signExtension-J4OEQ55N.js} +1 -1
  156. package/dist/{slack-74LWSKRK.js → slack-HQPEBAAX.js} +4 -4
  157. package/dist/{star-2GG4JB3K.js → star-UKT6KZF7.js} +4 -4
  158. package/dist/{start-BUUHD4ZQ.js → start-C3V6DREE.js} +3 -3
  159. package/dist/{statusLine-Z74KVADW.js → statusLine-Z2PVDWVE.js} +3 -3
  160. package/dist/{stop-HG3UZOI6.js → stop-3XVTF677.js} +3 -3
  161. package/dist/stopDaemon-BR4QLQMF.js +8 -0
  162. package/dist/{unlink-TLLWWJIG.js → unlink-WKYRZH76.js} +3 -3
  163. package/dist/{unlinkNode-O7IZD5BN.js → unlinkNode-OK6M6RHF.js} +5 -5
  164. package/dist/{unstar-EEKVLJQI.js → unstar-FBZF3RJQ.js} +4 -4
  165. package/dist/{update-E72CS3ZO.js → update-64YJ4HRY.js} +3 -3
  166. package/dist/{update-HSXQZ2EI.js → update-Z73FZ4ZB.js} +4 -4
  167. package/dist/{updateNode-7FW22277.js → updateNode-ECV2WNLI.js} +11 -11
  168. package/dist/{updatePhase-USTBTRW4.js → updatePhase-QNEA4YU2.js} +4 -4
  169. package/dist/{updatePlan-WXNHCHKB.js → updatePlan-UYKO2LUV.js} +11 -11
  170. package/dist/{web-KWALIFVL.js → web-CBUMKQK3.js} +32 -32
  171. package/dist/{web-STE3MYGK.js → web-LP6LWDBQ.js} +32 -32
  172. package/dist/{wontdo-KOV5YLR6.js → wontdo-NIR44VPG.js} +3 -3
  173. package/dist/{wontfix-UZTOERNG.js → wontfix-FIYGOSWH.js} +4 -4
  174. package/package.json +1 -1
  175. package/dist/restartDaemon-7M36R7G4.js +0 -11
  176. package/dist/setSessionStatus-HPHBUHVB.js +0 -12
  177. package/dist/stopDaemon-XIYQ6SAW.js +0 -8
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  harnessAdapter,
6
6
  parseRolloutEntry
7
- } from "./chunk-OGKBGLQS.js";
7
+ } from "./chunk-OA4EJYZY.js";
8
8
  import {
9
9
  harnesses
10
10
  } from "./chunk-XDIVXGPQ.js";
@@ -41,19 +41,30 @@ async function locateConversation(conversationId) {
41
41
  }
42
42
 
43
43
  // src/commands/sessions/shared/transcriptMessages.ts
44
- function transcriptMessages(reader, lines) {
44
+ function toMessages(event) {
45
+ if (event.kind === "message") return [{ role: event.role, text: event.text }];
46
+ if (event.kind === "tool")
47
+ return [{ role: "tool", tool: event.tool, target: event.target }];
48
+ if (event.kind === "interrupt") return [{ role: "interrupt" }];
49
+ return [];
50
+ }
51
+ function echoMessages(pending, until) {
52
+ const due = [];
53
+ while (pending.length && (until === void 0 || pending[0].at < until))
54
+ due.push({ role: "user", text: pending.shift().text });
55
+ return due;
56
+ }
57
+ function transcriptMessages(reader, lines, echoes = []) {
45
58
  const entries = lines.flatMap((line) => {
46
59
  const entry = line.trim() ? parseRolloutEntry(line) : null;
47
60
  return entry ? [entry] : [];
48
61
  });
49
- return reader.events(entries).flatMap((event) => {
50
- if (event.kind === "message")
51
- return [{ role: event.role, text: event.text }];
52
- if (event.kind === "tool")
53
- return [{ role: "tool", tool: event.tool, target: event.target }];
54
- if (event.kind === "interrupt") return [{ role: "interrupt" }];
55
- return [];
56
- });
62
+ const pending = [...echoes].sort((a, b) => a.at.localeCompare(b.at));
63
+ const messages = reader.events(entries).flatMap((event) => [
64
+ ...event.at ? echoMessages(pending, event.at) : [],
65
+ ...toMessages(event)
66
+ ]);
67
+ return [...messages, ...echoMessages(pending)];
57
68
  }
58
69
 
59
70
  export {
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-YS3HSXSJ.js";
4
4
  import {
5
5
  requestAssistSession
6
- } from "./chunk-YC3CIJQN.js";
6
+ } from "./chunk-JVHDLRNZ.js";
7
7
  import {
8
8
  REVIEW_PHASE_NAME
9
- } from "./chunk-ZFSD6ZJP.js";
9
+ } from "./chunk-KSMPUXH5.js";
10
10
  import {
11
11
  serializeManualChecks
12
- } from "./chunk-X6ETCS7E.js";
12
+ } from "./chunk-PYZUB3JT.js";
13
13
  import {
14
14
  formatItemId
15
15
  } from "./chunk-N65VOEFI.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  formatPreviewComments
3
- } from "./chunk-RPRL6G4R.js";
3
+ } from "./chunk-DIQAEGJ5.js";
4
4
 
5
5
  // src/commands/sessions/shared/printApprovedComments.ts
6
6
  function printApprovedComments(decision) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  reloadDaemonLinks
3
- } from "./chunk-ZKVDVSCE.js";
3
+ } from "./chunk-3NPVVAAT.js";
4
4
 
5
5
  // src/commands/sessions/nodes/notifyDaemonLinks.ts
6
6
  import chalk from "chalk";
@@ -3,17 +3,17 @@ import {
3
3
  } from "./chunk-SB4BG7PH.js";
4
4
  import {
5
5
  run
6
- } from "./chunk-XAKBHIPL.js";
6
+ } from "./chunk-3J2AZSPZ.js";
7
7
  import {
8
8
  isLockedByOther
9
- } from "./chunk-6CK47ZGM.js";
9
+ } from "./chunk-XYT5LCUW.js";
10
10
  import {
11
11
  isBlocked,
12
12
  typeLabel
13
- } from "./chunk-OVV4XBBX.js";
13
+ } from "./chunk-3JVE3EEO.js";
14
14
  import {
15
15
  loadBacklog
16
- } from "./chunk-X6ETCS7E.js";
16
+ } from "./chunk-PYZUB3JT.js";
17
17
  import {
18
18
  formatItemId
19
19
  } from "./chunk-N65VOEFI.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-2EW62DM5.js";
7
7
  import {
8
8
  connectToDaemon
9
- } from "./chunk-UGGH3MEX.js";
9
+ } from "./chunk-ZH6HKQOY.js";
10
10
 
11
11
  // src/commands/sessions/shared/exitNoPreview.ts
12
12
  function exitNoPreview(error) {
@@ -15,7 +15,8 @@ var daemonPaths = {
15
15
  spawnLock: join(DAEMON_DIR, "spawn.lock"),
16
16
  hooksSettings: join(DAEMON_DIR, "hooks-settings.json"),
17
17
  viewerSize: join(DAEMON_DIR, "viewer-size.json"),
18
- promptJournal: join(DAEMON_DIR, "prompt-journal.jsonl")
18
+ promptJournal: join(DAEMON_DIR, "prompt-journal.jsonl"),
19
+ transcriptEchoes: join(DAEMON_DIR, "transcript-echoes")
19
20
  };
20
21
 
21
22
  export {
@@ -11,7 +11,7 @@ import {
11
11
  resolveLinkTarget,
12
12
  usageWindowKey,
13
13
  watcherLogPath
14
- } from "./chunk-TRPX44JR.js";
14
+ } from "./chunk-TGVCPC2F.js";
15
15
  import {
16
16
  readLogTail
17
17
  } from "./chunk-JNCFHWBK.js";
@@ -23,10 +23,10 @@ import {
23
23
  readLinks,
24
24
  reloadDaemonLinks,
25
25
  writeLinks
26
- } from "./chunk-ZKVDVSCE.js";
26
+ } from "./chunk-3NPVVAAT.js";
27
27
  import {
28
28
  firstBrokenHop
29
- } from "./chunk-7MYJWY37.js";
29
+ } from "./chunk-NU3L3SM2.js";
30
30
  import {
31
31
  TRACE_HEADER,
32
32
  newTraceId
@@ -34,10 +34,10 @@ import {
34
34
  import {
35
35
  ASSIST_VERSION,
36
36
  PROTOCOL_VERSION
37
- } from "./chunk-XMUQ5UBX.js";
37
+ } from "./chunk-4NSAQ5E5.js";
38
38
  import {
39
39
  queryNodes
40
- } from "./chunk-4TIDERIW.js";
40
+ } from "./chunk-OD7CMDGZ.js";
41
41
  import {
42
42
  describePeerError,
43
43
  fetchPeerJson
@@ -79,7 +79,7 @@ import {
79
79
  } from "./chunk-UJBW7FVI.js";
80
80
  import {
81
81
  targetConversationEvents
82
- } from "./chunk-W2HN7MC2.js";
82
+ } from "./chunk-NFXJVC2Z.js";
83
83
  import {
84
84
  configEntryLayers,
85
85
  ghFailure,
@@ -94,7 +94,7 @@ import {
94
94
  } from "./chunk-W5FPQALS.js";
95
95
  import {
96
96
  requestPromptSession
97
- } from "./chunk-PGQK356A.js";
97
+ } from "./chunk-WP7S72JJ.js";
98
98
  import {
99
99
  attachmentContentType,
100
100
  stageAttachment
@@ -212,14 +212,14 @@ import {
212
212
  } from "./chunk-6H4DP3ZG.js";
213
213
  import {
214
214
  requestDocsRefresh
215
- } from "./chunk-PRYIRRAS.js";
215
+ } from "./chunk-AOTNNZPH.js";
216
216
  import {
217
217
  rewindItemToPhase
218
- } from "./chunk-NTH3COMZ.js";
218
+ } from "./chunk-AT33IHDZ.js";
219
219
  import {
220
220
  loadBacklogSummaries,
221
221
  searchBacklogSummaries
222
- } from "./chunk-F2LP5MBV.js";
222
+ } from "./chunk-N2U7GIMU.js";
223
223
  import {
224
224
  loadItemSummaries,
225
225
  phaseUsageTotals,
@@ -227,13 +227,13 @@ import {
227
227
  } from "./chunk-BV2V6RTH.js";
228
228
  import {
229
229
  requestAssistSession
230
- } from "./chunk-YC3CIJQN.js";
230
+ } from "./chunk-JVHDLRNZ.js";
231
231
  import {
232
232
  originDisplayLabels
233
233
  } from "./chunk-IIFOAUOM.js";
234
234
  import {
235
235
  createItemWithDefaults
236
- } from "./chunk-TK4AJIJZ.js";
236
+ } from "./chunk-ZCGRZJ6Y.js";
237
237
  import {
238
238
  getPreferredRemoteRepo
239
239
  } from "./chunk-DISNKALJ.js";
@@ -242,14 +242,14 @@ import {
242
242
  } from "./chunk-IZBQH3LW.js";
243
243
  import {
244
244
  resolveRewindPlan
245
- } from "./chunk-LKVISYMA.js";
245
+ } from "./chunk-SXYX65J7.js";
246
246
  import {
247
247
  deleteItem,
248
248
  getOrigin,
249
249
  getReady,
250
250
  loadDocsRefreshState,
251
251
  updateStatus
252
- } from "./chunk-X6ETCS7E.js";
252
+ } from "./chunk-PYZUB3JT.js";
253
253
  import {
254
254
  loadItem
255
255
  } from "./chunk-U732RAGX.js";
@@ -262,7 +262,7 @@ import {
262
262
  } from "./chunk-N65VOEFI.js";
263
263
  import {
264
264
  requestDaemonReply
265
- } from "./chunk-Q7RUUXND.js";
265
+ } from "./chunk-OFLEIPAR.js";
266
266
  import {
267
267
  backups,
268
268
  getDb,
@@ -291,7 +291,7 @@ import {
291
291
  discoverSessionJsonlPaths,
292
292
  harnessAdapter,
293
293
  parseSessionFile
294
- } from "./chunk-OGKBGLQS.js";
294
+ } from "./chunk-OA4EJYZY.js";
295
295
  import {
296
296
  harnessLabel
297
297
  } from "./chunk-AWIOBY7Q.js";
@@ -349,7 +349,7 @@ import {
349
349
  import {
350
350
  ensureDaemonRunning,
351
351
  restartDaemon
352
- } from "./chunk-U4DNTL25.js";
352
+ } from "./chunk-4HZ4Z27M.js";
353
353
  import {
354
354
  waitForBuild
355
355
  } from "./chunk-4CP23TT2.js";
@@ -360,10 +360,10 @@ import {
360
360
  import {
361
361
  connectToDaemon,
362
362
  isDaemonRunning
363
- } from "./chunk-UGGH3MEX.js";
363
+ } from "./chunk-ZH6HKQOY.js";
364
364
  import {
365
365
  daemonPaths
366
- } from "./chunk-IEK6CQQH.js";
366
+ } from "./chunk-ELF4PBZX.js";
367
367
 
368
368
  // src/commands/sessions/web.ts
369
369
  import chalk5 from "chalk";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SNSOHVAN.js";
4
4
  import {
5
5
  requestDaemonReply
6
- } from "./chunk-Q7RUUXND.js";
6
+ } from "./chunk-OFLEIPAR.js";
7
7
 
8
8
  // src/commands/notify/deliverPinNotification.ts
9
9
  import { randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  findOneItem
3
- } from "./chunk-X6ETCS7E.js";
3
+ } from "./chunk-PYZUB3JT.js";
4
4
  import {
5
5
  formatItemId
6
6
  } from "./chunk-N65VOEFI.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-KGFZYUE2.js";
16
16
  import {
17
17
  connectToDaemon
18
- } from "./chunk-UGGH3MEX.js";
18
+ } from "./chunk-ZH6HKQOY.js";
19
19
 
20
20
  // src/commands/sessions/signalVerifying.ts
21
21
  function signalVerifying() {
@@ -19,7 +19,7 @@ import {
19
19
  emptyScanUsage,
20
20
  harnessAdapter,
21
21
  scanUsageTokens
22
- } from "./chunk-OGKBGLQS.js";
22
+ } from "./chunk-OA4EJYZY.js";
23
23
  import {
24
24
  inboxFeature
25
25
  } from "./chunk-PXQTFJ2N.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-VDXS55BC.js";
5
5
  import {
6
6
  harnessAdapter
7
- } from "./chunk-OGKBGLQS.js";
7
+ } from "./chunk-OA4EJYZY.js";
8
8
  import {
9
9
  activeHarness
10
10
  } from "./chunk-BFQSGIN6.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  reviewProposedPrComment
3
- } from "./chunk-SDOEWLEE.js";
3
+ } from "./chunk-YMYZBSS6.js";
4
4
  import {
5
5
  runGhGraphql
6
6
  } from "./chunk-ZLRZR64W.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requestSession
3
- } from "./chunk-2DCOBBPI.js";
3
+ } from "./chunk-ANS4AQDI.js";
4
4
 
5
5
  // src/commands/sessions/shared/requestAssistSession.ts
6
6
  function requestAssistSession(assistArgs, cwd, options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  authoredPhases
3
- } from "./chunk-L4NOD7SX.js";
3
+ } from "./chunk-V4W6R2LK.js";
4
4
 
5
5
  // src/commands/backlog/resolvePlan.ts
6
6
  function resolvePlan(item) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-N65VOEFI.js";
4
4
  import {
5
5
  previewAnswerWaitBlocker
6
- } from "./chunk-ARU5TAGC.js";
6
+ } from "./chunk-ZQQEBC6Y.js";
7
7
  import {
8
8
  askQuestionEnabled
9
9
  } from "./chunk-IBPSXDUB.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  findOneItem
3
- } from "./chunk-X6ETCS7E.js";
3
+ } from "./chunk-PYZUB3JT.js";
4
4
  import {
5
5
  formatItemId
6
6
  } from "./chunk-N65VOEFI.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-P7FVAGFQ.js";
4
4
  import {
5
5
  previewAnswerWaitBlocker
6
- } from "./chunk-ARU5TAGC.js";
6
+ } from "./chunk-ZQQEBC6Y.js";
7
7
  import {
8
8
  askQuestionEnabled
9
9
  } from "./chunk-IBPSXDUB.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OneShotUnavailableError,
3
3
  runOneShotPrompt
4
- } from "./chunk-Y4MBH7VW.js";
4
+ } from "./chunk-S6TWGP2S.js";
5
5
  import {
6
6
  withSpinner
7
7
  } from "./chunk-OZNYQOQK.js";
@@ -5,7 +5,7 @@ import {
5
5
  getOrigin,
6
6
  getReady,
7
7
  searchItemIds
8
- } from "./chunk-X6ETCS7E.js";
8
+ } from "./chunk-PYZUB3JT.js";
9
9
 
10
10
  // src/commands/backlog/loadBacklogSummaries.ts
11
11
  async function loadBacklogSummaries(allRepos = false) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  lookupConversation
3
- } from "./chunk-HICUMDUD.js";
3
+ } from "./chunk-C4POAODE.js";
4
4
  import {
5
5
  harnessAdapter,
6
6
  readTranscriptTail
7
- } from "./chunk-OGKBGLQS.js";
7
+ } from "./chunk-OA4EJYZY.js";
8
8
 
9
9
  // src/commands/sessions/shared/targetConversationEvents.ts
10
10
  async function targetConversationEvents(cwd, target) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  buildDoctorProbes,
3
3
  diagnoseLink
4
- } from "./chunk-TXVLR2EJ.js";
4
+ } from "./chunk-PGJVFI4M.js";
5
5
  import {
6
6
  queryNodes
7
- } from "./chunk-4TIDERIW.js";
7
+ } from "./chunk-OD7CMDGZ.js";
8
8
  import {
9
9
  findLinkSpec
10
10
  } from "./chunk-HHKS3UZB.js";
@@ -34,10 +34,10 @@ import {
34
34
  } from "./chunk-KGFZYUE2.js";
35
35
  import {
36
36
  connectToDaemon
37
- } from "./chunk-UGGH3MEX.js";
37
+ } from "./chunk-ZH6HKQOY.js";
38
38
  import {
39
39
  daemonPaths
40
- } from "./chunk-IEK6CQQH.js";
40
+ } from "./chunk-ELF4PBZX.js";
41
41
  import {
42
42
  promptConfirm
43
43
  } from "./chunk-6DGPQ67E.js";
@@ -3529,14 +3529,27 @@ function createSdkMessageQueue(label, control, push) {
3529
3529
  }
3530
3530
 
3531
3531
  // src/commands/sessions/daemon/sdk/createSdkTurnEmitter.ts
3532
+ var ELAPSED_RESYNC_SECONDS = 10;
3532
3533
  function createSdkTurnEmitter(label, control) {
3533
3534
  let status;
3534
3535
  let activity = null;
3536
+ let elapsed = null;
3537
+ const setElapsed = (next) => {
3538
+ elapsed = next;
3539
+ control.emit({ kind: "elapsed", seconds: next });
3540
+ };
3535
3541
  return {
3536
3542
  activity: (next) => {
3537
3543
  if (next === activity) return;
3538
3544
  activity = next;
3539
3545
  control.emit({ kind: "activity", text: next });
3546
+ if (elapsed !== null) setElapsed(null);
3547
+ },
3548
+ elapsed: (seconds) => {
3549
+ const next = Math.floor(seconds);
3550
+ if (elapsed !== null && next >= elapsed && next - elapsed < ELAPSED_RESYNC_SECONDS)
3551
+ return;
3552
+ setElapsed(next);
3540
3553
  },
3541
3554
  status: (next) => {
3542
3555
  if (next === status) return;
@@ -3568,6 +3581,7 @@ function createSdkTurnTracker(label, control, push) {
3568
3581
  };
3569
3582
  return {
3570
3583
  setActivity: emit.activity,
3584
+ setElapsed: emit.elapsed,
3571
3585
  setStatus,
3572
3586
  start: (prompt) => {
3573
3587
  busy = true;
@@ -3758,6 +3772,16 @@ function logSdkMessage(label, message2) {
3758
3772
  daemonLog(`${label} sdk turn ended: ${message2.subtype}`);
3759
3773
  }
3760
3774
 
3775
+ // src/commands/sessions/daemon/sdk/sdkTurnStatus.ts
3776
+ function sdkTurnStatus(message2) {
3777
+ if (message2.type === "assistant" && message2.parent_tool_use_id === null)
3778
+ return "running";
3779
+ if (message2.type === "result") return "waiting";
3780
+ if (message2.type === "system" && message2.subtype === "session_state_changed")
3781
+ return message2.state === "running" ? "running" : "waiting";
3782
+ return void 0;
3783
+ }
3784
+
3761
3785
  // src/commands/sessions/daemon/sdk/sdkActivityText.ts
3762
3786
  var TARGET_KEYS = [
3763
3787
  "description",
@@ -3785,14 +3809,12 @@ function sdkActivityText(content) {
3785
3809
  return `Working \xB7 ${tool.name}${target ? ` ${target}` : ""}`;
3786
3810
  }
3787
3811
 
3788
- // src/commands/sessions/daemon/sdk/sdkTurnStatus.ts
3789
- function sdkTurnStatus(message2) {
3812
+ // src/commands/sessions/daemon/sdk/trackSdkTurnProgress.ts
3813
+ function trackSdkTurnProgress(message2, turn) {
3790
3814
  if (message2.type === "assistant" && message2.parent_tool_use_id === null)
3791
- return "running";
3792
- if (message2.type === "result") return "waiting";
3793
- if (message2.type === "system" && message2.subtype === "session_state_changed")
3794
- return message2.state === "running" ? "running" : "waiting";
3795
- return void 0;
3815
+ turn.setActivity(sdkActivityText(message2.message.content));
3816
+ if (message2.type === "tool_progress" && message2.parent_tool_use_id === null)
3817
+ turn.setElapsed(message2.elapsed_time_seconds);
3796
3818
  }
3797
3819
 
3798
3820
  // src/commands/sessions/daemon/sdk/runSdkQuery.ts
@@ -3811,8 +3833,7 @@ async function runSdkQuery(messages, sessionId, control, turn) {
3811
3833
  if (status) turn.setStatus(status);
3812
3834
  const background = sdkBackgroundTasks(message2);
3813
3835
  if (background) control.emit({ kind: "background", tasks: background });
3814
- if (message2.type === "assistant" && message2.parent_tool_use_id === null)
3815
- turn.setActivity(sdkActivityText(message2.message.content));
3836
+ trackSdkTurnProgress(message2, turn);
3816
3837
  }
3817
3838
  daemonLog(`${label} sdk query finished`);
3818
3839
  control.exit(0);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requestDaemonReply
3
- } from "./chunk-Q7RUUXND.js";
3
+ } from "./chunk-OFLEIPAR.js";
4
4
 
5
5
  // src/commands/sessions/nodes/queryNodes.ts
6
6
  function queryNodes() {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  connectToDaemon
3
- } from "./chunk-UGGH3MEX.js";
3
+ } from "./chunk-ZH6HKQOY.js";
4
4
 
5
5
  // src/commands/sessions/daemon/requestDaemonReply.ts
6
6
  import { createInterface } from "readline";
@@ -13,7 +13,7 @@ import {
13
13
  isApprovedRead,
14
14
  resolvePermission,
15
15
  splitCompound
16
- } from "./chunk-AWRPXWP2.js";
16
+ } from "./chunk-GZEEGROK.js";
17
17
  import {
18
18
  DOCS_LOCK_REASON,
19
19
  SCHEMA_LOCK_REASON,
@@ -23,10 +23,10 @@ import {
23
23
  isSchemaPath,
24
24
  isSchemaRelativePath,
25
25
  mentionsDocsPath
26
- } from "./chunk-KN5ZETAR.js";
26
+ } from "./chunk-VYFXF763.js";
27
27
  import {
28
28
  isLiveDaemonSession
29
- } from "./chunk-ZO7NYS25.js";
29
+ } from "./chunk-C5U44UI7.js";
30
30
  import {
31
31
  askQuestionEnabled
32
32
  } from "./chunk-IBPSXDUB.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YS3HSXSJ.js";
4
4
  import {
5
5
  requestPromptSession
6
- } from "./chunk-PGQK356A.js";
6
+ } from "./chunk-WP7S72JJ.js";
7
7
 
8
8
  // src/commands/review/announcePr.ts
9
9
  function announcePr(prNumber) {
@@ -0,0 +1,19 @@
1
+ // src/commands/sessions/shared/askCheckInputSchema.ts
2
+ import { z } from "zod";
3
+ var text = z.string().trim().min(1);
4
+ var askCheckInputSchema = z.object({
5
+ title: text,
6
+ steps: z.array(text).min(1, "Give at least 1 step"),
7
+ before: z.array(text).optional(),
8
+ changed: text.optional()
9
+ });
10
+ var CHECK_RESULT_KEY = "result";
11
+ var CHECK_NOTE_KEY = "note";
12
+ var CHECK_PHASE_KEY = "phase";
13
+
14
+ export {
15
+ askCheckInputSchema,
16
+ CHECK_RESULT_KEY,
17
+ CHECK_NOTE_KEY,
18
+ CHECK_PHASE_KEY
19
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  daemonPaths
3
- } from "./chunk-IEK6CQQH.js";
3
+ } from "./chunk-ELF4PBZX.js";
4
4
 
5
5
  // src/commands/sessions/daemon/readDaemonPidFile.ts
6
6
  import { readFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REVIEW_PHASE_NAME
3
- } from "./chunk-ZFSD6ZJP.js";
3
+ } from "./chunk-KSMPUXH5.js";
4
4
 
5
5
  // src/commands/backlog/buildReviewPhase.ts
6
6
  function buildReviewPhase() {
@@ -5,7 +5,7 @@ import {
5
5
  isHello,
6
6
  linkVersionCheck,
7
7
  negotiateProtocol
8
- } from "./chunk-XMUQ5UBX.js";
8
+ } from "./chunk-4NSAQ5E5.js";
9
9
  import {
10
10
  describePeerError,
11
11
  fetchPeerJson,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  findOneItem
3
- } from "./chunk-X6ETCS7E.js";
3
+ } from "./chunk-PYZUB3JT.js";
4
4
  import {
5
5
  formatItemId
6
6
  } from "./chunk-N65VOEFI.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  deliverPinNotification
3
- } from "./chunk-PDOQVVZA.js";
3
+ } from "./chunk-GOVUTFGC.js";
4
4
  import {
5
5
  sweepRestrictedDir
6
6
  } from "./chunk-JVG5AJA2.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-6H4DP3ZG.js";
4
4
  import {
5
5
  getReady
6
- } from "./chunk-X6ETCS7E.js";
6
+ } from "./chunk-PYZUB3JT.js";
7
7
  import {
8
8
  formatItemId,
9
9
  parseItemId
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-TCTX3UXU.js";
9
9
  import {
10
10
  appendDaemonLog
11
- } from "./chunk-4GMAYXOS.js";
11
+ } from "./chunk-6YRKJTHT.js";
12
12
  import {
13
13
  formatItemId,
14
14
  parseItemId