@moberg_hr/work-tree 2.0.7 → 2.0.8

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 (172) hide show
  1. package/dist/{answer-AX2VHEXS.js → answer-QQAEJ5N3.js} +4 -4
  2. package/dist/{attach-WLJVKXOJ.js → attach-XG3Y7QA7.js} +6 -6
  3. package/dist/bin.js +2 -2
  4. package/dist/{block-NZJC7GVM.js → block-WW4BWDN7.js} +5 -5
  5. package/dist/{broadcast-JPVHPQ6Y.js → broadcast-LEOMDVSA.js} +2 -2
  6. package/dist/{catchup-RUNKM6ZH.js → catchup-UBHGEMED.js} +7 -7
  7. package/dist/chunk-34QBYOHC.js +9 -0
  8. package/dist/{chunk-7Z2USU3A.js → chunk-4V7C3O6V.js} +2 -2
  9. package/dist/{chunk-EK3WRCQX.js → chunk-6AULWNAN.js} +3 -3
  10. package/dist/{chunk-UI5MPBIH.js → chunk-73J2ZJA6.js} +3 -3
  11. package/dist/{chunk-ES3KY6YT.js → chunk-7IZW6GLY.js} +2 -2
  12. package/dist/{chunk-QWIGFAKZ.js → chunk-BLCAZAU5.js} +2 -2
  13. package/dist/{chunk-J2ZJ2DIJ.js → chunk-E72ETFAB.js} +2 -2
  14. package/dist/{chunk-IOO2OAUC.js → chunk-E74YIDHX.js} +5 -5
  15. package/dist/{chunk-6HDVRMCX.js → chunk-EN24GJCO.js} +3 -3
  16. package/dist/{chunk-VICXQQ5X.js → chunk-F3SPCHLH.js} +5 -5
  17. package/dist/{chunk-DUUH6FPH.js → chunk-G5PN5NIS.js} +28 -4
  18. package/dist/chunk-G5PN5NIS.js.map +1 -0
  19. package/dist/{chunk-65DPISNE.js → chunk-HLXEMPEI.js} +2 -2
  20. package/dist/{chunk-M2QL43DS.js → chunk-I5HHTEAA.js} +4 -4
  21. package/dist/{chunk-CK2QC2UF.js → chunk-IC5PFQCV.js} +2 -2
  22. package/dist/{chunk-ED7E2WKK.js → chunk-JYWCNLZN.js} +2 -2
  23. package/dist/{chunk-LZHCTPBF.js → chunk-KLK6O54M.js} +3 -3
  24. package/dist/{chunk-CNFPZVNO.js → chunk-LNMIG35F.js} +5 -1
  25. package/dist/chunk-LNMIG35F.js.map +1 -0
  26. package/dist/{chunk-67IZNVDI.js → chunk-LXM7QFBK.js} +2 -2
  27. package/dist/chunk-MFSKRN2J.js +78 -0
  28. package/dist/chunk-MFSKRN2J.js.map +1 -0
  29. package/dist/{chunk-LDCY457K.js → chunk-MXZRFWC3.js} +2 -2
  30. package/dist/{chunk-KZQDONTU.js → chunk-NIRVJMJL.js} +12 -5
  31. package/dist/chunk-NIRVJMJL.js.map +1 -0
  32. package/dist/{chunk-HZEYGMYK.js → chunk-P2U6R35K.js} +3 -3
  33. package/dist/{chunk-DH2PLKCW.js → chunk-PG2MPTZD.js} +3 -3
  34. package/dist/{chunk-HB2I7GF7.js → chunk-QQNI3K3V.js} +2 -2
  35. package/dist/{chunk-YCDULFF5.js → chunk-SIHAOB4F.js} +3 -3
  36. package/dist/{chunk-MODMK7WQ.js → chunk-ULQQ6SXT.js} +3 -3
  37. package/dist/{chunk-R7BXN427.js → chunk-UNLBHYA5.js} +2 -2
  38. package/dist/{chunk-K3ESY6OJ.js → chunk-UZROMRQM.js} +2 -2
  39. package/dist/{chunk-QDNCUUNQ.js → chunk-V4RQ72HY.js} +27 -19
  40. package/dist/chunk-V4RQ72HY.js.map +1 -0
  41. package/dist/{chunk-QQJF4R6J.js → chunk-WB2BP2G5.js} +2 -2
  42. package/dist/{chunk-YXTJVPOI.js → chunk-WOCS6MLE.js} +42 -42
  43. package/dist/{chunk-6GCF2XWP.js → chunk-WTR5BUGS.js} +20 -1
  44. package/dist/chunk-WTR5BUGS.js.map +1 -0
  45. package/dist/{chunk-WQMY4AJR.js → chunk-WUWED3LV.js} +2 -2
  46. package/dist/{chunk-N23HFT4X.js → chunk-YZSSYD2G.js} +244 -54
  47. package/dist/chunk-YZSSYD2G.js.map +1 -0
  48. package/dist/{cleanup-YVQOAMSK.js → cleanup-6LIZ3BQF.js} +15 -14
  49. package/dist/{cleanup-YVQOAMSK.js.map → cleanup-6LIZ3BQF.js.map} +1 -1
  50. package/dist/{cli-VSCHBZRS.js → cli-R3FITDNB.js} +3 -3
  51. package/dist/{config-4W5MMHLU.js → config-DULJPECI.js} +5 -5
  52. package/dist/{diff-IDF3K74H.js → diff-2PPFXZD6.js} +4 -4
  53. package/dist/{digest-AXSMYBYS.js → digest-5CRGAAK5.js} +4 -4
  54. package/dist/{fork-ZBEMNEPA.js → fork-FYEV4TU2.js} +14 -12
  55. package/dist/{fork-ZBEMNEPA.js.map → fork-FYEV4TU2.js.map} +1 -1
  56. package/dist/{hook-QMW5HHNP.js → hook-U37AFPKY.js} +4 -4
  57. package/dist/{hydrate-XMHHC5EG.js → hydrate-MAFHTY2W.js} +2 -2
  58. package/dist/{init-J2AB37DO.js → init-276XRZS2.js} +5 -5
  59. package/dist/{move-O7NEJZQV.js → move-QHCDO2R5.js} +10 -7
  60. package/dist/move-QHCDO2R5.js.map +1 -0
  61. package/dist/{note-C4RNIDRJ.js → note-TNC633NG.js} +4 -4
  62. package/dist/{overlaps-SKKGH6EG.js → overlaps-SEK7H2YB.js} +4 -4
  63. package/dist/{pin-TJBCJGPQ.js → pin-E53PGMGD.js} +4 -4
  64. package/dist/{pr-AC44DGJY.js → pr-JMMUGCKS.js} +4 -4
  65. package/dist/{prune-NQOVBIFT.js → prune-MR37KLIW.js} +14 -13
  66. package/dist/{prune-NQOVBIFT.js.map → prune-MR37KLIW.js.map} +1 -1
  67. package/dist/{pty-host-MQSUN6EI.js → pty-host-36Y4XSPP.js} +14 -7
  68. package/dist/pty-host-36Y4XSPP.js.map +1 -0
  69. package/dist/{read-NU4WZ3J5.js → read-ESOOJSBO.js} +4 -4
  70. package/dist/{recent-ZW4WDGCK.js → recent-3WYFF36X.js} +2 -2
  71. package/dist/{remove-JESX7RCN.js → remove-5IZVMK4V.js} +13 -12
  72. package/dist/{remove-JESX7RCN.js.map → remove-5IZVMK4V.js.map} +1 -1
  73. package/dist/{resume-SLNE75JO.js → resume-NDE6NKKT.js} +2 -2
  74. package/dist/{run-MD77Z2BV.js → run-UW4BJCSC.js} +2 -2
  75. package/dist/{screen-RCUGD52V.js → screen-5BLTXIKS.js} +4 -4
  76. package/dist/{search-5GK5HL4Y.js → search-MK6R5VR6.js} +2 -2
  77. package/dist/{section-OAMRNSO7.js → section-B4BWRY7K.js} +4 -4
  78. package/dist/{send-TT6U64HQ.js → send-OT3OXHHW.js} +5 -5
  79. package/dist/{sessions-T6UXM2OX.js → sessions-LHMTS6KT.js} +11 -9
  80. package/dist/{sessions-T6UXM2OX.js.map → sessions-LHMTS6KT.js.map} +1 -1
  81. package/dist/{snooze-DBJJD6ZM.js → snooze-A2BVEYWD.js} +4 -4
  82. package/dist/{start-2KUDSMBM.js → start-LEYVJWZG.js} +4 -4
  83. package/dist/{status-S3NZTRG3.js → status-AO653RKW.js} +2 -2
  84. package/dist/{stop-KJHXWYZ2.js → stop-QYIRUR5Y.js} +4 -4
  85. package/dist/{sync-E4CU4IHG.js → sync-SAZVBQIH.js} +14 -13
  86. package/dist/{sync-E4CU4IHG.js.map → sync-SAZVBQIH.js.map} +1 -1
  87. package/dist/{time-MWABXPA6.js → time-4V56YERF.js} +5 -5
  88. package/dist/{tree-RAN6SQKW.js → tree-WFOG72Z3.js} +10 -9
  89. package/dist/{tree-RAN6SQKW.js.map → tree-WFOG72Z3.js.map} +1 -1
  90. package/dist/{update-5DM5V2E3.js → update-NU5EMISM.js} +6 -6
  91. package/dist/{wait-JZIJB6P6.js → wait-FW7RARBV.js} +5 -5
  92. package/dist/wd-bin.js +2 -2
  93. package/dist/web/assets/PtyView-DQw8g-PN.js +90 -0
  94. package/dist/web/assets/PtyView-DQw8g-PN.js.map +1 -0
  95. package/dist/web/assets/{index-DjdfILvB.js → index-CO_OtClq.js} +25 -25
  96. package/dist/web/assets/index-CO_OtClq.js.map +1 -0
  97. package/dist/web/index.html +1 -1
  98. package/dist/{web-EUI5U2H4.js → web-DTVGZZDZ.js} +82 -67
  99. package/dist/web-DTVGZZDZ.js.map +1 -0
  100. package/npm-shrinkwrap.json +2 -2
  101. package/package.json +1 -1
  102. package/dist/chunk-6GCF2XWP.js.map +0 -1
  103. package/dist/chunk-C4LRHXEB.js +0 -9
  104. package/dist/chunk-CNFPZVNO.js.map +0 -1
  105. package/dist/chunk-DUUH6FPH.js.map +0 -1
  106. package/dist/chunk-KZQDONTU.js.map +0 -1
  107. package/dist/chunk-N23HFT4X.js.map +0 -1
  108. package/dist/chunk-QDNCUUNQ.js.map +0 -1
  109. package/dist/move-O7NEJZQV.js.map +0 -1
  110. package/dist/pty-host-MQSUN6EI.js.map +0 -1
  111. package/dist/web/assets/PtyView-Ci395OL2.js +0 -90
  112. package/dist/web/assets/PtyView-Ci395OL2.js.map +0 -1
  113. package/dist/web/assets/index-DjdfILvB.js.map +0 -1
  114. package/dist/web-EUI5U2H4.js.map +0 -1
  115. /package/dist/{answer-AX2VHEXS.js.map → answer-QQAEJ5N3.js.map} +0 -0
  116. /package/dist/{attach-WLJVKXOJ.js.map → attach-XG3Y7QA7.js.map} +0 -0
  117. /package/dist/{block-NZJC7GVM.js.map → block-WW4BWDN7.js.map} +0 -0
  118. /package/dist/{broadcast-JPVHPQ6Y.js.map → broadcast-LEOMDVSA.js.map} +0 -0
  119. /package/dist/{catchup-RUNKM6ZH.js.map → catchup-UBHGEMED.js.map} +0 -0
  120. /package/dist/{chunk-C4LRHXEB.js.map → chunk-34QBYOHC.js.map} +0 -0
  121. /package/dist/{chunk-7Z2USU3A.js.map → chunk-4V7C3O6V.js.map} +0 -0
  122. /package/dist/{chunk-EK3WRCQX.js.map → chunk-6AULWNAN.js.map} +0 -0
  123. /package/dist/{chunk-UI5MPBIH.js.map → chunk-73J2ZJA6.js.map} +0 -0
  124. /package/dist/{chunk-ES3KY6YT.js.map → chunk-7IZW6GLY.js.map} +0 -0
  125. /package/dist/{chunk-QWIGFAKZ.js.map → chunk-BLCAZAU5.js.map} +0 -0
  126. /package/dist/{chunk-J2ZJ2DIJ.js.map → chunk-E72ETFAB.js.map} +0 -0
  127. /package/dist/{chunk-IOO2OAUC.js.map → chunk-E74YIDHX.js.map} +0 -0
  128. /package/dist/{chunk-6HDVRMCX.js.map → chunk-EN24GJCO.js.map} +0 -0
  129. /package/dist/{chunk-VICXQQ5X.js.map → chunk-F3SPCHLH.js.map} +0 -0
  130. /package/dist/{chunk-65DPISNE.js.map → chunk-HLXEMPEI.js.map} +0 -0
  131. /package/dist/{chunk-M2QL43DS.js.map → chunk-I5HHTEAA.js.map} +0 -0
  132. /package/dist/{chunk-CK2QC2UF.js.map → chunk-IC5PFQCV.js.map} +0 -0
  133. /package/dist/{chunk-ED7E2WKK.js.map → chunk-JYWCNLZN.js.map} +0 -0
  134. /package/dist/{chunk-LZHCTPBF.js.map → chunk-KLK6O54M.js.map} +0 -0
  135. /package/dist/{chunk-67IZNVDI.js.map → chunk-LXM7QFBK.js.map} +0 -0
  136. /package/dist/{chunk-LDCY457K.js.map → chunk-MXZRFWC3.js.map} +0 -0
  137. /package/dist/{chunk-HZEYGMYK.js.map → chunk-P2U6R35K.js.map} +0 -0
  138. /package/dist/{chunk-DH2PLKCW.js.map → chunk-PG2MPTZD.js.map} +0 -0
  139. /package/dist/{chunk-HB2I7GF7.js.map → chunk-QQNI3K3V.js.map} +0 -0
  140. /package/dist/{chunk-YCDULFF5.js.map → chunk-SIHAOB4F.js.map} +0 -0
  141. /package/dist/{chunk-MODMK7WQ.js.map → chunk-ULQQ6SXT.js.map} +0 -0
  142. /package/dist/{chunk-R7BXN427.js.map → chunk-UNLBHYA5.js.map} +0 -0
  143. /package/dist/{chunk-K3ESY6OJ.js.map → chunk-UZROMRQM.js.map} +0 -0
  144. /package/dist/{chunk-QQJF4R6J.js.map → chunk-WB2BP2G5.js.map} +0 -0
  145. /package/dist/{chunk-YXTJVPOI.js.map → chunk-WOCS6MLE.js.map} +0 -0
  146. /package/dist/{chunk-WQMY4AJR.js.map → chunk-WUWED3LV.js.map} +0 -0
  147. /package/dist/{cli-VSCHBZRS.js.map → cli-R3FITDNB.js.map} +0 -0
  148. /package/dist/{config-4W5MMHLU.js.map → config-DULJPECI.js.map} +0 -0
  149. /package/dist/{diff-IDF3K74H.js.map → diff-2PPFXZD6.js.map} +0 -0
  150. /package/dist/{digest-AXSMYBYS.js.map → digest-5CRGAAK5.js.map} +0 -0
  151. /package/dist/{hook-QMW5HHNP.js.map → hook-U37AFPKY.js.map} +0 -0
  152. /package/dist/{hydrate-XMHHC5EG.js.map → hydrate-MAFHTY2W.js.map} +0 -0
  153. /package/dist/{init-J2AB37DO.js.map → init-276XRZS2.js.map} +0 -0
  154. /package/dist/{note-C4RNIDRJ.js.map → note-TNC633NG.js.map} +0 -0
  155. /package/dist/{overlaps-SKKGH6EG.js.map → overlaps-SEK7H2YB.js.map} +0 -0
  156. /package/dist/{pin-TJBCJGPQ.js.map → pin-E53PGMGD.js.map} +0 -0
  157. /package/dist/{pr-AC44DGJY.js.map → pr-JMMUGCKS.js.map} +0 -0
  158. /package/dist/{read-NU4WZ3J5.js.map → read-ESOOJSBO.js.map} +0 -0
  159. /package/dist/{recent-ZW4WDGCK.js.map → recent-3WYFF36X.js.map} +0 -0
  160. /package/dist/{resume-SLNE75JO.js.map → resume-NDE6NKKT.js.map} +0 -0
  161. /package/dist/{run-MD77Z2BV.js.map → run-UW4BJCSC.js.map} +0 -0
  162. /package/dist/{screen-RCUGD52V.js.map → screen-5BLTXIKS.js.map} +0 -0
  163. /package/dist/{search-5GK5HL4Y.js.map → search-MK6R5VR6.js.map} +0 -0
  164. /package/dist/{section-OAMRNSO7.js.map → section-B4BWRY7K.js.map} +0 -0
  165. /package/dist/{send-TT6U64HQ.js.map → send-OT3OXHHW.js.map} +0 -0
  166. /package/dist/{snooze-DBJJD6ZM.js.map → snooze-A2BVEYWD.js.map} +0 -0
  167. /package/dist/{start-2KUDSMBM.js.map → start-LEYVJWZG.js.map} +0 -0
  168. /package/dist/{status-S3NZTRG3.js.map → status-AO653RKW.js.map} +0 -0
  169. /package/dist/{stop-KJHXWYZ2.js.map → stop-QYIRUR5Y.js.map} +0 -0
  170. /package/dist/{time-MWABXPA6.js.map → time-4V56YERF.js.map} +0 -0
  171. /package/dist/{update-5DM5V2E3.js.map → update-NU5EMISM.js.map} +0 -0
  172. /package/dist/{wait-JZIJB6P6.js.map → wait-FW7RARBV.js.map} +0 -0
@@ -20,7 +20,7 @@
20
20
  }
21
21
  })();
22
22
  </script>
23
- <script type="module" crossorigin src="/assets/index-DjdfILvB.js"></script>
23
+ <script type="module" crossorigin src="/assets/index-CO_OtClq.js"></script>
24
24
  <link rel="stylesheet" crossorigin href="/assets/index-D-_oxT3O.css">
25
25
  </head>
26
26
  <body>
@@ -11,7 +11,7 @@ import {
11
11
  serveSpa,
12
12
  sessionBaseForPath,
13
13
  submitReviewSchema
14
- } from "./chunk-UI5MPBIH.js";
14
+ } from "./chunk-73J2ZJA6.js";
15
15
  import {
16
16
  agentsBySession,
17
17
  createBuildFoldersJob,
@@ -20,10 +20,10 @@ import {
20
20
  deleteMergedBranches,
21
21
  findMergedBranches,
22
22
  summarizeAgents
23
- } from "./chunk-VICXQQ5X.js";
23
+ } from "./chunk-F3SPCHLH.js";
24
24
  import {
25
25
  defaultCleanupDeps
26
- } from "./chunk-IOO2OAUC.js";
26
+ } from "./chunk-E74YIDHX.js";
27
27
  import {
28
28
  addTask,
29
29
  completeTask,
@@ -39,15 +39,15 @@ import {
39
39
  reviewThreadsOf,
40
40
  sessionWire,
41
41
  stageSeenKey
42
- } from "./chunk-KZQDONTU.js";
42
+ } from "./chunk-NIRVJMJL.js";
43
43
  import {
44
44
  DiffStatCache,
45
45
  findOverlaps,
46
46
  wantsDiffStat
47
- } from "./chunk-HB2I7GF7.js";
47
+ } from "./chunk-QQNI3K3V.js";
48
48
  import {
49
49
  createDigestSource
50
- } from "./chunk-HZEYGMYK.js";
50
+ } from "./chunk-P2U6R35K.js";
51
51
  import {
52
52
  MAX_NOTE_CHARS,
53
53
  readNote,
@@ -64,14 +64,14 @@ import {
64
64
  removeBlocker,
65
65
  sweepBlocks,
66
66
  unblockedPrompt
67
- } from "./chunk-ES3KY6YT.js";
67
+ } from "./chunk-7IZW6GLY.js";
68
68
  import {
69
69
  jiraWorklogPoster,
70
70
  logWorkDay,
71
71
  loggedDays,
72
72
  sessionWorkTime,
73
73
  worklogSettings
74
- } from "./chunk-QQJF4R6J.js";
74
+ } from "./chunk-WB2BP2G5.js";
75
75
  import {
76
76
  sendToSession
77
77
  } from "./chunk-RYNBBSLY.js";
@@ -79,12 +79,12 @@ import {
79
79
  fetchAllPullRequests,
80
80
  parsePrRef,
81
81
  resolvePrToStart
82
- } from "./chunk-QWIGFAKZ.js";
82
+ } from "./chunk-BLCAZAU5.js";
83
83
  import {
84
84
  archiveMergedSession,
85
85
  archiveWaiting,
86
86
  defaultArchiveDeps
87
- } from "./chunk-QDNCUUNQ.js";
87
+ } from "./chunk-V4RQ72HY.js";
88
88
  import {
89
89
  MAX_REPLY_CHARS,
90
90
  THREAD_ID,
@@ -95,7 +95,7 @@ import {
95
95
  postReply,
96
96
  rememberSent,
97
97
  saveDraft
98
- } from "./chunk-6GCF2XWP.js";
98
+ } from "./chunk-WTR5BUGS.js";
99
99
  import {
100
100
  cleanupVerdict,
101
101
  createCleanupJob
@@ -104,12 +104,12 @@ import {
104
104
  defaultForkDeps,
105
105
  forkSession,
106
106
  startSessionWithPrompt
107
- } from "./chunk-M2QL43DS.js";
107
+ } from "./chunk-I5HHTEAA.js";
108
108
  import {
109
109
  createInChild,
110
110
  createInProcess,
111
111
  oneAtATime
112
- } from "./chunk-6HDVRMCX.js";
112
+ } from "./chunk-EN24GJCO.js";
113
113
  import {
114
114
  resolveWorkBinPath
115
115
  } from "./chunk-AH5TM3NB.js";
@@ -117,7 +117,7 @@ import {
117
117
  teardownWorktree,
118
118
  toBaseSpec,
119
119
  wouldRefuseRemoval
120
- } from "./chunk-N23HFT4X.js";
120
+ } from "./chunk-YZSSYD2G.js";
121
121
  import {
122
122
  configurePtyPool,
123
123
  detachPtyPool,
@@ -139,10 +139,13 @@ import {
139
139
  subscribeSession,
140
140
  syncPtyPool,
141
141
  writeToPty
142
- } from "./chunk-LZHCTPBF.js";
142
+ } from "./chunk-KLK6O54M.js";
143
143
  import {
144
144
  dbPtySessions
145
145
  } from "./chunk-BLLLVWEB.js";
146
+ import {
147
+ isWorktreeFolder
148
+ } from "./chunk-MFSKRN2J.js";
146
149
  import "./chunk-G6IJ76DW.js";
147
150
  import {
148
151
  BehindCache,
@@ -159,28 +162,28 @@ import {
159
162
  stackedOn,
160
163
  updateFromBase,
161
164
  updateFromMain
162
- } from "./chunk-DH2PLKCW.js";
165
+ } from "./chunk-PG2MPTZD.js";
163
166
  import {
164
167
  sessionStatusView,
165
168
  shownState
166
- } from "./chunk-R7BXN427.js";
169
+ } from "./chunk-UNLBHYA5.js";
167
170
  import {
168
171
  askCatchUp,
169
172
  cachedCatchUp,
170
173
  catchUp,
171
174
  catchUpFacts,
172
175
  forgetCatchUp
173
- } from "./chunk-YCDULFF5.js";
176
+ } from "./chunk-SIHAOB4F.js";
174
177
  import {
175
178
  runInternal,
176
179
  summarizeCheckpoint,
177
180
  throttleTrailing
178
- } from "./chunk-EK3WRCQX.js";
181
+ } from "./chunk-6AULWNAN.js";
179
182
  import {
180
183
  computeDiff,
181
184
  computeRangeDiff,
182
185
  parseGitDiff
183
- } from "./chunk-65DPISNE.js";
186
+ } from "./chunk-HLXEMPEI.js";
184
187
  import {
185
188
  applyPlacePatch,
186
189
  applySectionOp,
@@ -195,7 +198,7 @@ import {
195
198
  } from "./chunk-LNHSBM4L.js";
196
199
  import {
197
200
  VERSION
198
- } from "./chunk-C4LRHXEB.js";
201
+ } from "./chunk-34QBYOHC.js";
199
202
  import {
200
203
  resolveProjectTarget
201
204
  } from "./chunk-H5LKMR45.js";
@@ -218,12 +221,12 @@ import {
218
221
  CONTEXT_WARN,
219
222
  describeView,
220
223
  writeAssistantContext
221
- } from "./chunk-67IZNVDI.js";
224
+ } from "./chunk-LXM7QFBK.js";
222
225
  import {
223
226
  NOTE_NUDGE,
224
227
  findSessionForCwd,
225
228
  readPendingForSession
226
- } from "./chunk-ED7E2WKK.js";
229
+ } from "./chunk-JYWCNLZN.js";
227
230
  import "./chunk-ZSHWP2VS.js";
228
231
  import {
229
232
  getCommentFileStore
@@ -235,7 +238,7 @@ import {
235
238
  checkTools,
236
239
  saveFolders,
237
240
  setupState
238
- } from "./chunk-LDCY457K.js";
241
+ } from "./chunk-MXZRFWC3.js";
239
242
  import {
240
243
  git
241
244
  } from "./chunk-7NAXFBFI.js";
@@ -248,7 +251,7 @@ import {
248
251
  saveGroup,
249
252
  setRepoIgnored,
250
253
  setScanRoot
251
- } from "./chunk-J2ZJ2DIJ.js";
254
+ } from "./chunk-E72ETFAB.js";
252
255
  import {
253
256
  openUrl
254
257
  } from "./chunk-5XMXZIJS.js";
@@ -256,8 +259,8 @@ import {
256
259
  enrollProblem,
257
260
  groupProblem,
258
261
  suggestAlias
259
- } from "./chunk-7Z2USU3A.js";
260
- import "./chunk-CNFPZVNO.js";
262
+ } from "./chunk-4V7C3O6V.js";
263
+ import "./chunk-LNMIG35F.js";
261
264
  import {
262
265
  defaultRunner,
263
266
  mergeSelected,
@@ -338,7 +341,7 @@ import {
338
341
  turnInProgress,
339
342
  updateCheckpoint,
340
343
  writeArchiveRecord
341
- } from "./chunk-DUUH6FPH.js";
344
+ } from "./chunk-G5PN5NIS.js";
342
345
  import {
343
346
  json,
344
347
  pendingMigration,
@@ -376,7 +379,7 @@ import {
376
379
  import chalk from "chalk";
377
380
 
378
381
  // src/server/web-server.ts
379
- import fs11 from "fs";
382
+ import fs10 from "fs";
380
383
 
381
384
  // src/server/routes/session-control-routes.ts
382
385
  function realDeps(app) {
@@ -2965,7 +2968,6 @@ function mountStatusRoutes(app, opts) {
2965
2968
  }
2966
2969
 
2967
2970
  // src/server/routes/ship-routes.ts
2968
- import fs4 from "fs";
2969
2971
  var ACTIONS = /* @__PURE__ */ new Set(["push", "create-pr", "merge"]);
2970
2972
  var METHODS = /* @__PURE__ */ new Set(["squash", "merge", "rebase"]);
2971
2973
  function mountShipRoutes(app, opts) {
@@ -2977,9 +2979,12 @@ function mountShipRoutes(app, opts) {
2977
2979
  const out = await archiveSession(session, defaultArchiveDeps({ release: opts.release }), { force, merged });
2978
2980
  if (out.blocked) return { ok: false, blocked: out.blocked, message: out.message };
2979
2981
  ok = out.ok;
2980
- } else if (session.paths.some((p) => !fs4.existsSync(p))) {
2982
+ } else if (session.paths.some((p) => !isWorktreeFolder(p))) {
2981
2983
  const config = loadConfig();
2982
- ok = !!config && (await (opts.create ?? createInProcess)({ target: session.target, branch: session.branch }, config)).ok;
2984
+ if (!config) return { ok: false, error: "no config" };
2985
+ const made = await (opts.create ?? createInProcess)({ target: session.target, branch: session.branch }, config);
2986
+ if (!made.ok) return { ok: false, error: `Couldn't restore it: ${made.error}` };
2987
+ ok = true;
2983
2988
  } else {
2984
2989
  restoreArchivedTranscripts(session);
2985
2990
  ok = await setSessionArchived(session.target, session.branch, false);
@@ -3038,6 +3043,7 @@ function mountShipRoutes(app, opts) {
3038
3043
  if (typeof body.archived !== "boolean") return c.json({ error: "archived (boolean) required" }, 400);
3039
3044
  const r = await archive(c.req.param("id"), body.archived, body.force === true);
3040
3045
  if (r.blocked) return c.json({ error: r.message, blocked: r.blocked }, 409);
3046
+ if (r.error) return c.json({ error: r.error }, 500);
3041
3047
  return r.ok ? c.json({ ok: true }) : c.json({ error: "unknown session" }, 404);
3042
3048
  });
3043
3049
  }
@@ -3132,7 +3138,7 @@ function mountRailRoutes(app, opts) {
3132
3138
  }
3133
3139
 
3134
3140
  // src/core/worktree/shared-folders.ts
3135
- import fs5 from "fs";
3141
+ import fs4 from "fs";
3136
3142
  import path7 from "path";
3137
3143
  var norm = (p) => path7.resolve(p).replace(/\\/g, "/").toLowerCase();
3138
3144
  function shadowedSessions(sessions, branchCheckedOut2) {
@@ -3155,12 +3161,12 @@ function branchCheckedOut(dir) {
3155
3161
  try {
3156
3162
  const dotGit = path7.join(dir, ".git");
3157
3163
  let gitDir = dotGit;
3158
- if (fs5.statSync(dotGit).isFile()) {
3159
- const m = /^gitdir:\s*(.+)$/m.exec(fs5.readFileSync(dotGit, "utf8"));
3164
+ if (fs4.statSync(dotGit).isFile()) {
3165
+ const m = /^gitdir:\s*(.+)$/m.exec(fs4.readFileSync(dotGit, "utf8"));
3160
3166
  if (!m) return null;
3161
3167
  gitDir = path7.resolve(dir, m[1].trim());
3162
3168
  }
3163
- const head = fs5.readFileSync(path7.join(gitDir, "HEAD"), "utf8");
3169
+ const head = fs4.readFileSync(path7.join(gitDir, "HEAD"), "utf8");
3164
3170
  const ref = /^ref:\s*refs\/heads\/(.+)$/m.exec(head);
3165
3171
  return ref ? ref[1].trim() : null;
3166
3172
  } catch {
@@ -3169,14 +3175,14 @@ function branchCheckedOut(dir) {
3169
3175
  }
3170
3176
 
3171
3177
  // src/core/platform/build-stamp.ts
3172
- import fs6 from "fs";
3178
+ import fs5 from "fs";
3173
3179
  var cached = null;
3174
3180
  function buildStamp() {
3175
3181
  if (cached) return cached;
3176
3182
  const forced = process.env.WORK_BUILD_STAMP;
3177
3183
  if (forced) return cached = forced;
3178
3184
  try {
3179
- cached = String(Math.floor(fs6.statSync(process.argv[1]).mtimeMs));
3185
+ cached = String(Math.floor(fs5.statSync(process.argv[1]).mtimeMs));
3180
3186
  } catch {
3181
3187
  cached = "unknown";
3182
3188
  }
@@ -3473,7 +3479,7 @@ function mountPrReplyRoutes(app, opts) {
3473
3479
  }
3474
3480
 
3475
3481
  // src/core/archive/archive-retention.ts
3476
- import fs7 from "fs";
3482
+ import fs6 from "fs";
3477
3483
  import path8 from "path";
3478
3484
  import zlib from "zlib";
3479
3485
  var DEFAULT_COMPRESS_AFTER_DAYS = 30;
@@ -3486,19 +3492,26 @@ function applyArchiveRetention(opts) {
3486
3492
  const out = { compressed: [], dropped: [], bytesSaved: 0 };
3487
3493
  let ids;
3488
3494
  try {
3489
- ids = fs7.readdirSync(root, { withFileTypes: true }).filter((d) => d.isDirectory()).map((d) => d.name);
3495
+ ids = fs6.readdirSync(root, { withFileTypes: true }).filter((d) => d.isDirectory()).map((d) => d.name);
3490
3496
  } catch {
3491
3497
  return out;
3492
3498
  }
3493
3499
  for (const id of ids) {
3494
3500
  const rec = readArchive(id, root);
3495
- if (!rec || rec.transcriptsDroppedAt) continue;
3501
+ if (!rec) continue;
3496
3502
  const age = now - Date.parse(rec.archivedAt);
3497
3503
  if (!Number.isFinite(age)) continue;
3504
+ const ignored = path8.join(archiveDirFor(id, root), "ignored");
3505
+ if (compressAfter > 0 && age >= compressAfter * DAY_MS && !rec.ignoredDroppedAt && fs6.existsSync(ignored)) {
3506
+ fs6.rmSync(ignored, { recursive: true, force: true });
3507
+ rec.ignoredDroppedAt = new Date(now).toISOString();
3508
+ writeArchiveRecord(rec, root);
3509
+ }
3510
+ if (rec.transcriptsDroppedAt) continue;
3498
3511
  const dir = path8.join(archiveDirFor(id, root), "transcripts");
3499
3512
  if (dropAfter > 0 && age >= dropAfter * DAY_MS) {
3500
3513
  out.bytesSaved += dirBytes(dir);
3501
- fs7.rmSync(dir, { recursive: true, force: true });
3514
+ fs6.rmSync(dir, { recursive: true, force: true });
3502
3515
  rec.transcriptsDroppedAt = new Date(now).toISOString();
3503
3516
  writeArchiveRecord(rec, root);
3504
3517
  out.dropped.push(id);
@@ -3507,15 +3520,15 @@ function applyArchiveRetention(opts) {
3507
3520
  if (compressAfter <= 0 || rec.compressedAt || age < compressAfter * DAY_MS) continue;
3508
3521
  for (const t of rec.transcripts) {
3509
3522
  const plain = path8.join(dir, t.file);
3510
- if (!fs7.existsSync(plain)) continue;
3511
- const data = fs7.readFileSync(plain);
3523
+ if (!fs6.existsSync(plain)) continue;
3524
+ const data = fs6.readFileSync(plain);
3512
3525
  const gz = zlib.gzipSync(data);
3513
- fs7.writeFileSync(`${plain}.gz`, gz);
3514
- if (!zlib.gunzipSync(fs7.readFileSync(`${plain}.gz`)).equals(data)) {
3515
- fs7.rmSync(`${plain}.gz`, { force: true });
3526
+ fs6.writeFileSync(`${plain}.gz`, gz);
3527
+ if (!zlib.gunzipSync(fs6.readFileSync(`${plain}.gz`)).equals(data)) {
3528
+ fs6.rmSync(`${plain}.gz`, { force: true });
3516
3529
  continue;
3517
3530
  }
3518
- fs7.rmSync(plain, { force: true });
3531
+ fs6.rmSync(plain, { force: true });
3519
3532
  out.bytesSaved += data.length - gz.length;
3520
3533
  }
3521
3534
  rec.compressedAt = new Date(now).toISOString();
@@ -3527,7 +3540,7 @@ function applyArchiveRetention(opts) {
3527
3540
  function dirBytes(dir) {
3528
3541
  let n = 0;
3529
3542
  try {
3530
- for (const f of fs7.readdirSync(dir)) n += fs7.statSync(path8.join(dir, f)).size;
3543
+ for (const f of fs6.readdirSync(dir)) n += fs6.statSync(path8.join(dir, f)).size;
3531
3544
  } catch {
3532
3545
  }
3533
3546
  return n;
@@ -3539,7 +3552,7 @@ import { zValidator as zValidator6 } from "@hono/zod-validator";
3539
3552
  import { z as z5 } from "zod";
3540
3553
 
3541
3554
  // src/core/diff/revert.ts
3542
- import fs8 from "fs";
3555
+ import fs7 from "fs";
3543
3556
  import path9 from "path";
3544
3557
  function inside(root, rel) {
3545
3558
  const abs = path9.resolve(root, rel);
@@ -3554,7 +3567,7 @@ function removeNew(root, rel) {
3554
3567
  const abs = inside(root, rel);
3555
3568
  if (!abs) return { ok: false, status: 400, error: `path escapes the worktree: ${rel}` };
3556
3569
  git(["rm", "--cached", "-q", "--ignore-unmatch", "--", rel], root);
3557
- fs8.rmSync(abs, { force: true });
3570
+ fs7.rmSync(abs, { force: true });
3558
3571
  return null;
3559
3572
  }
3560
3573
  function revertFile(root, file) {
@@ -3715,7 +3728,7 @@ function mountDevRoutes(app, opts) {
3715
3728
  }
3716
3729
 
3717
3730
  // src/server/routes/ci-routes.ts
3718
- import fs9 from "fs";
3731
+ import fs8 from "fs";
3719
3732
 
3720
3733
  // src/core/pr/review-quote.ts
3721
3734
  function quoteForAgent(s, max = 600) {
@@ -3751,9 +3764,9 @@ function parseReviewFeedback(stdout) {
3751
3764
  try {
3752
3765
  const j = JSON.parse(stdout);
3753
3766
  const pr = j.data?.repository?.pullRequest;
3754
- if (!pr) return null;
3767
+ if (!pr || !j.data?.viewer?.login) return null;
3755
3768
  return {
3756
- viewer: j.data?.viewer?.login ?? "",
3769
+ viewer: j.data.viewer.login,
3757
3770
  threads: (pr.reviewThreads?.nodes ?? []).map((t) => ({
3758
3771
  id: t.id,
3759
3772
  isResolved: !!t.isResolved,
@@ -3792,6 +3805,7 @@ var DEFAULT_TRUSTED_BOTS = ["copilot-pull-request-reviewer", "github-actions"];
3792
3805
  var botName = (login) => login.toLowerCase().replace(/^app\//, "").replace(/\[bot\]$/, "");
3793
3806
  var isTrusted = (c, trustedBots = /* @__PURE__ */ new Set()) => TRUSTED_ASSOCIATIONS.has(c.association.toUpperCase()) || !!c.author && trustedBots.has(botName(c.author));
3794
3807
  function newFeedback(fb, scope, seen, opts = {}) {
3808
+ if (!fb.viewer.trim()) return [];
3795
3809
  const mine = (a) => a.toLowerCase() === fb.viewer.toLowerCase();
3796
3810
  const bots = new Set((opts.trustedBots ?? []).map(botName));
3797
3811
  const trusted = (c) => isTrusted(c, bots);
@@ -3826,6 +3840,7 @@ function openThreadCount(fb) {
3826
3840
  }
3827
3841
  function openThreadsOf(fb, trustedBots = []) {
3828
3842
  const bots = new Set(trustedBots.map(botName));
3843
+ if (!fb.viewer.trim()) return [];
3829
3844
  return fb.threads.filter((t) => {
3830
3845
  const last = t.comments[t.comments.length - 1];
3831
3846
  return !t.isResolved && last && last.author.toLowerCase() !== fb.viewer.toLowerCase();
@@ -4216,7 +4231,7 @@ function mountCiRoutes(app, opts) {
4216
4231
  lookOnly: opts.lookOnly,
4217
4232
  sessions: () => {
4218
4233
  const cutoff = Date.now() - RECENT_MS;
4219
- return loadHistory().filter((s) => !s.archivedAt && Date.parse(s.lastAccessedAt) >= cutoff && s.paths.some((p) => fs9.existsSync(p))).map((session) => ({ id: sessionIdFor(session), session }));
4234
+ return loadHistory().filter((s) => !s.archivedAt && Date.parse(s.lastAccessedAt) >= cutoff && s.paths.some((p) => fs8.existsSync(p))).map((session) => ({ id: sessionIdFor(session), session }));
4220
4235
  },
4221
4236
  // Never-pushed branches can't have a PR: don't ask GitHub about them,
4222
4237
  // unless the watch already knows one (a merged PR whose branch is gone).
@@ -4281,7 +4296,7 @@ function mountCiRoutes(app, opts) {
4281
4296
  }
4282
4297
 
4283
4298
  // src/core/diff/diffs-sweep.ts
4284
- import fs10 from "fs";
4299
+ import fs9 from "fs";
4285
4300
  import path11 from "path";
4286
4301
  var SWEEP_AFTER_DAYS = 30;
4287
4302
  var DISPOSABLE = /\.(html|log)$/i;
@@ -4291,7 +4306,7 @@ function sweepOldDiffArtifacts(now = Date.now(), maxAgeDays = SWEEP_AFTER_DAYS,
4291
4306
  let bytes = 0;
4292
4307
  let names;
4293
4308
  try {
4294
- names = fs10.readdirSync(dir);
4309
+ names = fs9.readdirSync(dir);
4295
4310
  } catch {
4296
4311
  return { removed, bytes };
4297
4312
  }
@@ -4299,9 +4314,9 @@ function sweepOldDiffArtifacts(now = Date.now(), maxAgeDays = SWEEP_AFTER_DAYS,
4299
4314
  if (!DISPOSABLE.test(name)) continue;
4300
4315
  const file = path11.join(dir, name);
4301
4316
  try {
4302
- const st = fs10.statSync(file);
4317
+ const st = fs9.statSync(file);
4303
4318
  if (!st.isFile() || st.mtimeMs >= cutoff) continue;
4304
- fs10.rmSync(file, { force: true });
4319
+ fs9.rmSync(file, { force: true });
4305
4320
  removed++;
4306
4321
  bytes += st.size;
4307
4322
  } catch {
@@ -4628,7 +4643,7 @@ async function startWebServer(opts = {}) {
4628
4643
  let activityWatcher = null;
4629
4644
  if (!lean) {
4630
4645
  try {
4631
- const roots = activityRoots().filter((r) => fs11.existsSync(r));
4646
+ const roots = activityRoots().filter((r) => fs10.existsSync(r));
4632
4647
  if (roots.length > 0) {
4633
4648
  activityWatcher = createFsWatcher({
4634
4649
  roots,
@@ -5100,7 +5115,7 @@ async function startWebServer(opts = {}) {
5100
5115
  updatesTimer?.unref?.();
5101
5116
  const desktopFile = desktopUpdatePath();
5102
5117
  const onDesktopUpdate = () => broadcast("updates-changed", { ts: Date.now() });
5103
- if (jobs) fs11.watchFile(desktopFile, { interval: 3e3 }, onDesktopUpdate);
5118
+ if (jobs) fs10.watchFile(desktopFile, { interval: 3e3 }, onDesktopUpdate);
5104
5119
  app.get("/api/pty-host/health", (c) => c.json(hostHealth(hostBeat())));
5105
5120
  let lastHostState = hostHealth(hostBeat()).state;
5106
5121
  const hostTick = lean ? null : setInterval(() => {
@@ -5162,7 +5177,7 @@ async function startWebServer(opts = {}) {
5162
5177
  if (conversationsFirst) clearTimeout(conversationsFirst);
5163
5178
  if (updatesFirst) clearTimeout(updatesFirst);
5164
5179
  if (updatesTimer) clearInterval(updatesTimer);
5165
- fs11.unwatchFile(desktopFile, onDesktopUpdate);
5180
+ fs10.unwatchFile(desktopFile, onDesktopUpdate);
5166
5181
  for (const t of conversationSyncs.values()) clearTimeout(t);
5167
5182
  clearTimeout(sweepTimer);
5168
5183
  activityWatcher?.stop();
@@ -5185,7 +5200,7 @@ async function startWebServer(opts = {}) {
5185
5200
  }
5186
5201
 
5187
5202
  // src/core/platform/autostart.ts
5188
- import fs12 from "fs";
5203
+ import fs11 from "fs";
5189
5204
  import path14 from "path";
5190
5205
  function startupScriptPath() {
5191
5206
  if (process.platform !== "win32" || !process.env.APPDATA) return null;
@@ -5207,11 +5222,11 @@ function setAutostart(enabled, workBin) {
5207
5222
  const file = startupScriptPath();
5208
5223
  if (!file) throw new Error("Autostart is only supported on Windows so far.");
5209
5224
  if (enabled) {
5210
- fs12.mkdirSync(path14.dirname(file), { recursive: true });
5211
- fs12.writeFileSync(file, buildStartupScript(process.execPath, workBin), "utf-8");
5225
+ fs11.mkdirSync(path14.dirname(file), { recursive: true });
5226
+ fs11.writeFileSync(file, buildStartupScript(process.execPath, workBin), "utf-8");
5212
5227
  } else {
5213
5228
  try {
5214
- fs12.unlinkSync(file);
5229
+ fs11.unlinkSync(file);
5215
5230
  } catch {
5216
5231
  }
5217
5232
  }
@@ -7836,4 +7851,4 @@ export {
7836
7851
  stopExisting,
7837
7852
  webCommand
7838
7853
  };
7839
- //# sourceMappingURL=web-EUI5U2H4.js.map
7854
+ //# sourceMappingURL=web-DTVGZZDZ.js.map