@staff0rd/assist 0.1220.0 → 0.1221.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-files +27 -26
- package/dist/{branch-K45GT7M6.js → branch-GGYVVXEH.js} +1 -1
- package/dist/built-version +1 -1
- package/dist/{chunk-XEB7KYZ7.js → chunk-3OYAER4L.js} +1 -1
- package/dist/{chunk-R2SOOESA.js → chunk-7K7Y324W.js} +1 -1
- package/dist/{chunk-6VHSP7OM.js → chunk-7MH4R4AR.js} +5 -22
- package/dist/{chunk-NHJ4GUTW.js → chunk-BNAYBBKT.js} +1 -1
- package/dist/{chunk-UQS4CK75.js → chunk-CG3N4ED3.js} +1 -1
- package/dist/{chunk-OETJO2XU.js → chunk-CNMGUPR6.js} +2 -2
- package/dist/{chunk-UIVH3UTB.js → chunk-IPVXQFV7.js} +1 -1
- package/dist/{chunk-FSYH5PZU.js → chunk-K77PXH6E.js} +1 -1
- package/dist/chunk-N3KQ3NTU.js +27 -0
- package/dist/{chunk-LQBZP7T2.js → chunk-S4OMYKFD.js} +31 -5
- package/dist/{chunk-4BZ52VZL.js → chunk-SQFPUOHZ.js} +1 -1
- package/dist/{chunk-ESNGXPOL.js → chunk-YARAZGHQ.js} +2 -2
- package/dist/commands/sessions/web/bundle.js +510 -510
- package/dist/{commit-I7G3RGBD.js → commit-4Z2XWLUX.js} +70 -3
- package/dist/{doctorNodes-VGLOJC5D.js → doctorNodes-ZHWRKVM6.js} +3 -3
- package/dist/index.js +21 -21
- package/dist/{launchMode-ZBTDVC2G.js → launchMode-V7OUIUXV.js} +5 -4
- package/dist/{next-KO3JPKVQ.js → next-NHYC5CPD.js} +4 -3
- package/dist/{refine-XPMFZ2IO.js → refine-2QSTHBGO.js} +6 -5
- package/dist/{restartNode-W5JQG2DP.js → restartNode-DUPDG7VT.js} +5 -5
- package/dist/{run-4HYNSV6Y.js → run-VJVMTOJD.js} +3 -2
- package/dist/{run-3C4RNIML.js → run-YW2JUM6O.js} +3 -2
- package/dist/{runDaemon-GVJJULUB.js → runDaemon-GIJB2TR2.js} +2 -2
- package/dist/{runRefine-UDPQU3IX.js → runRefine-XUWD6HYA.js} +6 -5
- package/dist/{signExtension-HUVMD5L7.js → signExtension-QPRRCKY7.js} +1 -1
- package/dist/{updateNode-MCSGOTEQ.js → updateNode-U4VAHCPR.js} +5 -5
- package/dist/{web-RM4RBFSW.js → web-27WRH4DF.js} +5 -5
- package/dist/{web-GHQMEWL3.js → web-4QGP3FRF.js} +5 -5
- package/package.json +1 -1
package/dist/.build-files
CHANGED
|
@@ -18,7 +18,7 @@ associateGithub-OI2HV45X.js
|
|
|
18
18
|
associateJira-QZ5GVAUO.js
|
|
19
19
|
backup-EJ4YDBU7.js
|
|
20
20
|
blockCodeComments-KKJVPYPE.js
|
|
21
|
-
branch-
|
|
21
|
+
branch-GGYVVXEH.js
|
|
22
22
|
browserConsole-6ZRED7DG.js
|
|
23
23
|
browserInspect-2IOKKWOF.js
|
|
24
24
|
browserRun-JJVVNL6H.js
|
|
@@ -52,6 +52,7 @@ chunk-3JXMQFUS.js
|
|
|
52
52
|
chunk-3KLTYFPV.js
|
|
53
53
|
chunk-3KPGFQ3F.js
|
|
54
54
|
chunk-3NK55YVZ.js
|
|
55
|
+
chunk-3OYAER4L.js
|
|
55
56
|
chunk-3PM5JCHE.js
|
|
56
57
|
chunk-3SPX33RA.js
|
|
57
58
|
chunk-3UMMZHZG.js
|
|
@@ -61,7 +62,6 @@ chunk-3Z5L5WHU.js
|
|
|
61
62
|
chunk-44UXKNHE.js
|
|
62
63
|
chunk-4AZGXA6X.js
|
|
63
64
|
chunk-4BVUY25U.js
|
|
64
|
-
chunk-4BZ52VZL.js
|
|
65
65
|
chunk-4CP23TT2.js
|
|
66
66
|
chunk-4FLN5D6W.js
|
|
67
67
|
chunk-4HKB2TAG.js
|
|
@@ -90,12 +90,13 @@ chunk-6KSMPTXN.js
|
|
|
90
90
|
chunk-6MXYEGDK.js
|
|
91
91
|
chunk-6N2MSR7W.js
|
|
92
92
|
chunk-6T53CG7D.js
|
|
93
|
-
chunk-6VHSP7OM.js
|
|
94
93
|
chunk-6YOKIMLO.js
|
|
95
94
|
chunk-6Z7XJJNZ.js
|
|
96
95
|
chunk-74TXMB2S.js
|
|
97
96
|
chunk-7HNRCA3N.js
|
|
97
|
+
chunk-7K7Y324W.js
|
|
98
98
|
chunk-7KDF6H4R.js
|
|
99
|
+
chunk-7MH4R4AR.js
|
|
99
100
|
chunk-7NZOH4LN.js
|
|
100
101
|
chunk-A2XSU5K6.js
|
|
101
102
|
chunk-A7ONLVZD.js
|
|
@@ -117,6 +118,7 @@ chunk-BAIGEXPY.js
|
|
|
117
118
|
chunk-BEVDTMKB.js
|
|
118
119
|
chunk-BGN4WP7H.js
|
|
119
120
|
chunk-BN3MOJ5M.js
|
|
121
|
+
chunk-BNAYBBKT.js
|
|
120
122
|
chunk-BO5JCCC5.js
|
|
121
123
|
chunk-BTGDQABT.js
|
|
122
124
|
chunk-BU6VFZP4.js
|
|
@@ -128,8 +130,10 @@ chunk-CBIYDSXP.js
|
|
|
128
130
|
chunk-CDD4ZTG7.js
|
|
129
131
|
chunk-CDDJAXEJ.js
|
|
130
132
|
chunk-CDU6M5IX.js
|
|
133
|
+
chunk-CG3N4ED3.js
|
|
131
134
|
chunk-CGYVYHMM.js
|
|
132
135
|
chunk-CH5YE5ZY.js
|
|
136
|
+
chunk-CNMGUPR6.js
|
|
133
137
|
chunk-COOAJPX2.js
|
|
134
138
|
chunk-D2AUYB7K.js
|
|
135
139
|
chunk-D6WBUFXT.js
|
|
@@ -150,7 +154,6 @@ chunk-EOOPPGMZ.js
|
|
|
150
154
|
chunk-EPVBZE3T.js
|
|
151
155
|
chunk-ERG23IG5.js
|
|
152
156
|
chunk-ESGB5WWP.js
|
|
153
|
-
chunk-ESNGXPOL.js
|
|
154
157
|
chunk-EU5YCR2M.js
|
|
155
158
|
chunk-EW2ZM2PC.js
|
|
156
159
|
chunk-EYM57SNL.js
|
|
@@ -162,7 +165,6 @@ chunk-FOPR6LRY.js
|
|
|
162
165
|
chunk-FPFQBHN6.js
|
|
163
166
|
chunk-FPWL4VRC.js
|
|
164
167
|
chunk-FQZ6D3OJ.js
|
|
165
|
-
chunk-FSYH5PZU.js
|
|
166
168
|
chunk-FVZP4ULO.js
|
|
167
169
|
chunk-G3ROBZ4I.js
|
|
168
170
|
chunk-GEDUARWV.js
|
|
@@ -188,6 +190,7 @@ chunk-IKLTX6LK.js
|
|
|
188
190
|
chunk-IMRV7TTC.js
|
|
189
191
|
chunk-IOKBCYSG.js
|
|
190
192
|
chunk-IOYGR6YV.js
|
|
193
|
+
chunk-IPVXQFV7.js
|
|
191
194
|
chunk-IVBWOIGE.js
|
|
192
195
|
chunk-IY5I25AQ.js
|
|
193
196
|
chunk-IYF5PSNI.js
|
|
@@ -206,6 +209,7 @@ chunk-JVG5AJA2.js
|
|
|
206
209
|
chunk-JVTCXR7C.js
|
|
207
210
|
chunk-K45LIKCT.js
|
|
208
211
|
chunk-K4DJEFDZ.js
|
|
212
|
+
chunk-K77PXH6E.js
|
|
209
213
|
chunk-KD2PWI4Z.js
|
|
210
214
|
chunk-KDYJRHCI.js
|
|
211
215
|
chunk-KE6SKMNG.js
|
|
@@ -223,7 +227,6 @@ chunk-LKZ7J5AK.js
|
|
|
223
227
|
chunk-LLUXIEWN.js
|
|
224
228
|
chunk-LMHILP5H.js
|
|
225
229
|
chunk-LOP6Y256.js
|
|
226
|
-
chunk-LQBZP7T2.js
|
|
227
230
|
chunk-M3O2BTJG.js
|
|
228
231
|
chunk-MA7HTHHM.js
|
|
229
232
|
chunk-MJ44T7R4.js
|
|
@@ -232,6 +235,7 @@ chunk-MN5WFVKQ.js
|
|
|
232
235
|
chunk-MPY2OF65.js
|
|
233
236
|
chunk-MRHAE5BG.js
|
|
234
237
|
chunk-MRUIXQXS.js
|
|
238
|
+
chunk-N3KQ3NTU.js
|
|
235
239
|
chunk-N65VOEFI.js
|
|
236
240
|
chunk-N755UYFK.js
|
|
237
241
|
chunk-N7MOTWGW.js
|
|
@@ -240,7 +244,6 @@ chunk-NBUBXIUE.js
|
|
|
240
244
|
chunk-NGTSPXSJ.js
|
|
241
245
|
chunk-NGYZK6AF.js
|
|
242
246
|
chunk-NH33OKZQ.js
|
|
243
|
-
chunk-NHJ4GUTW.js
|
|
244
247
|
chunk-NT7WJQ6X.js
|
|
245
248
|
chunk-NTGC7G2R.js
|
|
246
249
|
chunk-NZYSENRR.js
|
|
@@ -248,7 +251,6 @@ chunk-O6HFT23O.js
|
|
|
248
251
|
chunk-O7L27TQP.js
|
|
249
252
|
chunk-OCMUGVGR.js
|
|
250
253
|
chunk-ODLSWRTS.js
|
|
251
|
-
chunk-OETJO2XU.js
|
|
252
254
|
chunk-OL4L2AJB.js
|
|
253
255
|
chunk-OLE7XSNB.js
|
|
254
256
|
chunk-OLZUN3VT.js
|
|
@@ -283,7 +285,6 @@ chunk-QU6OQZJ2.js
|
|
|
283
285
|
chunk-QUHEM3YC.js
|
|
284
286
|
chunk-QVHBQTYZ.js
|
|
285
287
|
chunk-QZXHLY6L.js
|
|
286
|
-
chunk-R2SOOESA.js
|
|
287
288
|
chunk-R3NP33DG.js
|
|
288
289
|
chunk-R72E45HQ.js
|
|
289
290
|
chunk-RFMBA6WA.js
|
|
@@ -292,12 +293,14 @@ chunk-RJPUT3MG.js
|
|
|
292
293
|
chunk-RNFWWESE.js
|
|
293
294
|
chunk-RXKI4XAU.js
|
|
294
295
|
chunk-RZGFTEWF.js
|
|
296
|
+
chunk-S4OMYKFD.js
|
|
295
297
|
chunk-S6XYTJU2.js
|
|
296
298
|
chunk-SAJJDV4D.js
|
|
297
299
|
chunk-SDMBTSYP.js
|
|
298
300
|
chunk-SGZ57DJO.js
|
|
299
301
|
chunk-SIQRT7KZ.js
|
|
300
302
|
chunk-SO3IBV6J.js
|
|
303
|
+
chunk-SQFPUOHZ.js
|
|
301
304
|
chunk-SQX66MN6.js
|
|
302
305
|
chunk-SSKHLBQB.js
|
|
303
306
|
chunk-SUBQSZT6.js
|
|
@@ -320,13 +323,11 @@ chunk-UCG62BKS.js
|
|
|
320
323
|
chunk-UDEVQEM5.js
|
|
321
324
|
chunk-UE5PIMY2.js
|
|
322
325
|
chunk-UEWARAPX.js
|
|
323
|
-
chunk-UIVH3UTB.js
|
|
324
326
|
chunk-UJBW7FVI.js
|
|
325
327
|
chunk-UKOLKKXA.js
|
|
326
328
|
chunk-UN4ABKA7.js
|
|
327
329
|
chunk-UOYZCIWZ.js
|
|
328
330
|
chunk-UP6QV5BJ.js
|
|
329
|
-
chunk-UQS4CK75.js
|
|
330
331
|
chunk-UVCAGPRO.js
|
|
331
332
|
chunk-UXTGRDNK.js
|
|
332
333
|
chunk-V3AWLJ7P.js
|
|
@@ -364,7 +365,6 @@ chunk-X44VETJF.js
|
|
|
364
365
|
chunk-XA3VSUG6.js
|
|
365
366
|
chunk-XADYGSUA.js
|
|
366
367
|
chunk-XCMXBJ67.js
|
|
367
|
-
chunk-XEB7KYZ7.js
|
|
368
368
|
chunk-XEHE4IC2.js
|
|
369
369
|
chunk-XEJODD6D.js
|
|
370
370
|
chunk-XJTXAL22.js
|
|
@@ -379,6 +379,7 @@ chunk-XV6BO5MK.js
|
|
|
379
379
|
chunk-XZSATLYY.js
|
|
380
380
|
chunk-Y3R4C2P7.js
|
|
381
381
|
chunk-Y4C5PXGS.js
|
|
382
|
+
chunk-YARAZGHQ.js
|
|
382
383
|
chunk-YDA62L6J.js
|
|
383
384
|
chunk-YFMOM6DS.js
|
|
384
385
|
chunk-YIBSK5OC.js
|
|
@@ -452,7 +453,7 @@ comment-PECXLR5X.js
|
|
|
452
453
|
comment-VKR6PKDM.js
|
|
453
454
|
commentIssue-2MH2NGJJ.js
|
|
454
455
|
comments-KMBBATZY.js
|
|
455
|
-
commit-
|
|
456
|
+
commit-4Z2XWLUX.js
|
|
456
457
|
commits-QFWMYJC5.js
|
|
457
458
|
configGet-NYQ7DYQP.js
|
|
458
459
|
configImportRepos-22744MRY.js
|
|
@@ -476,7 +477,7 @@ deps-RSUOIZPE.js
|
|
|
476
477
|
docsConfirm-GKP6R67F.js
|
|
477
478
|
docsScreenshots-42NNTXTN.js
|
|
478
479
|
docsUnlock-KA4SIVV6.js
|
|
479
|
-
doctorNodes-
|
|
480
|
+
doctorNodes-ZHWRKVM6.js
|
|
480
481
|
done-4774MHRU.js
|
|
481
482
|
drainDaemon-AJVBJMP2.js
|
|
482
483
|
dropRetiredTables-JBLALSG5.js
|
|
@@ -510,7 +511,7 @@ inspect-FPQFTDYV.js
|
|
|
510
511
|
isWake-SLMDAWOG.js
|
|
511
512
|
jiraAuth-WYWRFU44.js
|
|
512
513
|
landPhase-BUBC2RDB.js
|
|
513
|
-
launchMode-
|
|
514
|
+
launchMode-V7OUIUXV.js
|
|
514
515
|
link-TJO2QD4G.js
|
|
515
516
|
link-Z7VOZLYM.js
|
|
516
517
|
linkNode-CNA4X7YA.js
|
|
@@ -537,8 +538,8 @@ netcap-FIHYF3LK.js
|
|
|
537
538
|
netcapExtract-KAFERZ6V.js
|
|
538
539
|
newCli-2ZSE67NN.js
|
|
539
540
|
newProject-VEQTJQBG.js
|
|
540
|
-
next-KO3JPKVQ.js
|
|
541
541
|
next-MDRRZOPK.js
|
|
542
|
+
next-NHYC5CPD.js
|
|
542
543
|
noVenv-5SN25UJR.js
|
|
543
544
|
nodeLogs-VFH5NMNQ.js
|
|
544
545
|
notify-RAOCJB3D.js
|
|
@@ -566,7 +567,7 @@ readBodyArgument-WHNTOBUE.js
|
|
|
566
567
|
readTime-CM5ZYNDH.js
|
|
567
568
|
recordSlack-Q253D73H.js
|
|
568
569
|
redirect-G7WS7LDE.js
|
|
569
|
-
refine-
|
|
570
|
+
refine-2QSTHBGO.js
|
|
570
571
|
refreshDocs-U4YJUKMF.js
|
|
571
572
|
refuseParallelPhasesOff-PLVAYHCC.js
|
|
572
573
|
releasesConfigure-4A4MQSRZ.js
|
|
@@ -583,18 +584,18 @@ repos-L6QZPFLY.js
|
|
|
583
584
|
resolveHarness-YRE5RGUF.js
|
|
584
585
|
resolveModel-ZM3F2HT5.js
|
|
585
586
|
restartDaemon-PXTMQOXH.js
|
|
586
|
-
restartNode-
|
|
587
|
+
restartNode-DUPDG7VT.js
|
|
587
588
|
restructure-TA7QDOCD.js
|
|
588
589
|
review-DCBA33AZ.js
|
|
589
590
|
reviewPrComments-J23PK2NG.js
|
|
590
591
|
rewindPhase-3K5VYYKU.js
|
|
591
592
|
rulesAdd-D45FIH5B.js
|
|
592
|
-
run-
|
|
593
|
-
run-
|
|
594
|
-
runDaemon-
|
|
593
|
+
run-VJVMTOJD.js
|
|
594
|
+
run-YW2JUM6O.js
|
|
595
|
+
runDaemon-GIJB2TR2.js
|
|
595
596
|
runExtract-3JTDFR6J.js
|
|
596
597
|
runParallelPhase-KPCQWPFK.js
|
|
597
|
-
runRefine-
|
|
598
|
+
runRefine-XUWD6HYA.js
|
|
598
599
|
runScope-5LRSM72L.js
|
|
599
600
|
scan-7Y747MSA.js
|
|
600
601
|
scheduleBackup-54EWHDEV.js
|
|
@@ -613,7 +614,7 @@ show-BASBE5KD.js
|
|
|
613
614
|
show-UDZ6MAMB.js
|
|
614
615
|
showClaudeCodeIcon-E4SAM3GN.js
|
|
615
616
|
showCodexIcon-YUAKV4NI.js
|
|
616
|
-
signExtension-
|
|
617
|
+
signExtension-QPRRCKY7.js
|
|
617
618
|
simulateDivergence-VB4UL4UR.js
|
|
618
619
|
skip-TB5RVVIN.js
|
|
619
620
|
slack-24IRGK5S.js
|
|
@@ -641,7 +642,7 @@ unlinkNode-5BA3CO3K.js
|
|
|
641
642
|
unstar-XNTVLPXX.js
|
|
642
643
|
update-E76HUW3G.js
|
|
643
644
|
update-WO2VDF3U.js
|
|
644
|
-
updateNode-
|
|
645
|
+
updateNode-U4VAHCPR.js
|
|
645
646
|
updatePhase-FXTGDEK4.js
|
|
646
647
|
updatePlan-4ORF5MXV.js
|
|
647
648
|
version-IEG2E2RP.js
|
|
@@ -649,8 +650,8 @@ viewIssue-N6W53LSK.js
|
|
|
649
650
|
watchLoop-MV7DVGC6.js
|
|
650
651
|
watchReport-A4W7UOAJ.js
|
|
651
652
|
watchWait-GJXTBZZM.js
|
|
652
|
-
web-
|
|
653
|
-
web-
|
|
653
|
+
web-27WRH4DF.js
|
|
654
|
+
web-4QGP3FRF.js
|
|
654
655
|
withPool-TW3VJ4EX.js
|
|
655
656
|
wontdo-2HNFVYQM.js
|
|
656
657
|
wontfix-WGDQ5UU4.js
|
package/dist/built-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.1221.1
|
|
@@ -12,10 +12,13 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
launchBlocker
|
|
14
14
|
} from "./chunk-24YN3552.js";
|
|
15
|
+
import {
|
|
16
|
+
worktreePlaceholderBranch
|
|
17
|
+
} from "./chunk-N3KQ3NTU.js";
|
|
15
18
|
import {
|
|
16
19
|
createBranch,
|
|
17
20
|
generateBranchSlug
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-S4OMYKFD.js";
|
|
19
22
|
import {
|
|
20
23
|
inWebSession
|
|
21
24
|
} from "./chunk-HKGCLAZ7.js";
|
|
@@ -96,9 +99,6 @@ import {
|
|
|
96
99
|
import {
|
|
97
100
|
loadConfig
|
|
98
101
|
} from "./chunk-YS46IJ4M.js";
|
|
99
|
-
import {
|
|
100
|
-
linkedWorktree
|
|
101
|
-
} from "./chunk-XSDG7HTJ.js";
|
|
102
102
|
|
|
103
103
|
// src/commands/backlog/run.ts
|
|
104
104
|
import chalk8 from "chalk";
|
|
@@ -569,7 +569,6 @@ function discardStalePause(itemId) {
|
|
|
569
569
|
|
|
570
570
|
// src/commands/backlog/ensureStoryBranch.ts
|
|
571
571
|
import { execFileSync, execSync } from "child_process";
|
|
572
|
-
import { basename } from "path";
|
|
573
572
|
async function ensureStoryBranch(item) {
|
|
574
573
|
const config = loadConfig();
|
|
575
574
|
if (config.prs?.required === false) {
|
|
@@ -590,7 +589,7 @@ function recordedBranch(item) {
|
|
|
590
589
|
return (item.gitRefs ?? []).find((ref) => ref.kind === "branch")?.ref;
|
|
591
590
|
}
|
|
592
591
|
function adoptRecordedBranch(item, branch) {
|
|
593
|
-
const parked =
|
|
592
|
+
const parked = worktreePlaceholderBranch();
|
|
594
593
|
if (!parked) {
|
|
595
594
|
log(
|
|
596
595
|
item,
|
|
@@ -615,22 +614,6 @@ function adoptRecordedBranch(item, branch) {
|
|
|
615
614
|
);
|
|
616
615
|
}
|
|
617
616
|
}
|
|
618
|
-
function worktreeBranchInPlay() {
|
|
619
|
-
const tree = linkedWorktree(process.cwd());
|
|
620
|
-
if (!tree) return null;
|
|
621
|
-
const head = currentBranch();
|
|
622
|
-
return head === basename(tree.root) ? head : null;
|
|
623
|
-
}
|
|
624
|
-
function currentBranch() {
|
|
625
|
-
try {
|
|
626
|
-
return execSync("git rev-parse --abbrev-ref HEAD", {
|
|
627
|
-
encoding: "utf8",
|
|
628
|
-
stdio: ["ignore", "pipe", "ignore"]
|
|
629
|
-
}).trim();
|
|
630
|
-
} catch {
|
|
631
|
-
return null;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
617
|
function log(item, outcome) {
|
|
635
618
|
appendDaemonLog(`backlog run ${item.id}: ${outcome}`);
|
|
636
619
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3OYAER4L.js";
|
|
4
4
|
import {
|
|
5
5
|
pullIfConfigured
|
|
6
6
|
} from "./chunk-3UMMZHZG.js";
|
|
7
7
|
import {
|
|
8
8
|
run
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7MH4R4AR.js";
|
|
10
10
|
import {
|
|
11
11
|
launchBlocker
|
|
12
12
|
} from "./chunk-24YN3552.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
linkedWorktree
|
|
3
|
+
} from "./chunk-XSDG7HTJ.js";
|
|
4
|
+
|
|
5
|
+
// src/shared/worktreePlaceholderBranch.ts
|
|
6
|
+
import { execSync } from "child_process";
|
|
7
|
+
import { basename } from "path";
|
|
8
|
+
function worktreePlaceholderBranch() {
|
|
9
|
+
const tree = linkedWorktree(process.cwd());
|
|
10
|
+
if (!tree) return null;
|
|
11
|
+
const head = currentBranch();
|
|
12
|
+
return head === basename(tree.root) ? head : null;
|
|
13
|
+
}
|
|
14
|
+
function currentBranch() {
|
|
15
|
+
try {
|
|
16
|
+
return execSync("git rev-parse --abbrev-ref HEAD", {
|
|
17
|
+
encoding: "utf8",
|
|
18
|
+
stdio: ["ignore", "pipe", "ignore"]
|
|
19
|
+
}).trim();
|
|
20
|
+
} catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
worktreePlaceholderBranch
|
|
27
|
+
};
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-YS46IJ4M.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/branch/createBranch.ts
|
|
25
|
-
import { execFileSync, execSync as execSync2 } from "child_process";
|
|
25
|
+
import { execFileSync as execFileSync2, execSync as execSync2 } from "child_process";
|
|
26
26
|
|
|
27
27
|
// src/commands/branch/buildBranchName.ts
|
|
28
28
|
function buildBranchName({
|
|
@@ -37,6 +37,29 @@ function buildBranchName({
|
|
|
37
37
|
return segments.join("");
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
// src/commands/branch/freeBranchName.ts
|
|
41
|
+
import { execFileSync } from "child_process";
|
|
42
|
+
function freeBranchName(name) {
|
|
43
|
+
let candidate = name;
|
|
44
|
+
for (let suffix = 2; branchTaken(candidate); suffix++) {
|
|
45
|
+
candidate = `${name}-${suffix}`;
|
|
46
|
+
}
|
|
47
|
+
return candidate;
|
|
48
|
+
}
|
|
49
|
+
function branchTaken(name) {
|
|
50
|
+
return refExists(`refs/heads/${name}`) || refExists(`refs/remotes/origin/${name}`);
|
|
51
|
+
}
|
|
52
|
+
function refExists(ref) {
|
|
53
|
+
try {
|
|
54
|
+
execFileSync("git", ["show-ref", "--verify", "--quiet", ref], {
|
|
55
|
+
stdio: "ignore"
|
|
56
|
+
});
|
|
57
|
+
return true;
|
|
58
|
+
} catch {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
40
63
|
// src/commands/branch/resolveDefaultBranch.ts
|
|
41
64
|
import { execSync } from "child_process";
|
|
42
65
|
var REMOTE_HEAD_REGEX = /^ref:\s+refs\/heads\/(\S+)\s+HEAD$/m;
|
|
@@ -59,19 +82,21 @@ function resolveDefaultBranch(override, cwd) {
|
|
|
59
82
|
async function createBranch({
|
|
60
83
|
slug,
|
|
61
84
|
jira,
|
|
62
|
-
from
|
|
85
|
+
from,
|
|
86
|
+
unique
|
|
63
87
|
}) {
|
|
64
88
|
const config = loadConfig();
|
|
65
|
-
const
|
|
89
|
+
const generatedName = buildBranchName({
|
|
66
90
|
prefix: config.branch?.prefix,
|
|
67
91
|
jira,
|
|
68
92
|
slug
|
|
69
93
|
});
|
|
70
94
|
execSync2("git fetch", { stdio: "inherit" });
|
|
95
|
+
const branchName = unique ? freeBranchName(generatedName) : generatedName;
|
|
71
96
|
let baseRef;
|
|
72
97
|
if (from) {
|
|
73
98
|
try {
|
|
74
|
-
|
|
99
|
+
execFileSync2("git", ["rev-parse", "--verify", from], {
|
|
75
100
|
stdio: ["pipe", "pipe", "pipe"]
|
|
76
101
|
});
|
|
77
102
|
} catch {
|
|
@@ -81,7 +106,7 @@ async function createBranch({
|
|
|
81
106
|
} else {
|
|
82
107
|
baseRef = `origin/${resolveDefaultBranch(config.branch?.defaultBranch)}`;
|
|
83
108
|
}
|
|
84
|
-
|
|
109
|
+
execFileSync2("git", ["switch", "-c", branchName, baseRef], {
|
|
85
110
|
stdio: "inherit"
|
|
86
111
|
});
|
|
87
112
|
await recordBranchActivity(branchName);
|
|
@@ -143,6 +168,7 @@ function buildPrompt(description) {
|
|
|
143
168
|
}
|
|
144
169
|
|
|
145
170
|
export {
|
|
171
|
+
resolveDefaultBranch,
|
|
146
172
|
createBranch,
|
|
147
173
|
isConciseSlug,
|
|
148
174
|
generateBranchSlug
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-JM57BCD6.js";
|
|
11
11
|
import {
|
|
12
12
|
firstBrokenHop
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IPVXQFV7.js";
|
|
14
14
|
import {
|
|
15
15
|
describePeerError,
|
|
16
16
|
fetchPeerJson
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
ASSIST_VERSION,
|
|
50
50
|
PROTOCOL_VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-SQFPUOHZ.js";
|
|
52
52
|
import {
|
|
53
53
|
findLinkSpec
|
|
54
54
|
} from "./chunk-6KSMPTXN.js";
|