@staff0rd/assist 0.1219.1 → 0.1221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-files +27 -26
- package/dist/{branch-K45GT7M6.js → branch-GNFILJ4K.js} +1 -1
- package/dist/built-version +1 -1
- package/dist/{chunk-NSEQQSBW.js → chunk-27ZCOFKR.js} +2 -2
- package/dist/{chunk-NJ7IMJOD.js → chunk-2ZF2NNDU.js} +1 -1
- package/dist/{chunk-KPESQF53.js → chunk-556EOOQH.js} +1 -1
- package/dist/{chunk-R2SOOESA.js → chunk-6NO5D57Q.js} +1 -1
- package/dist/{chunk-OETJO2XU.js → chunk-6ONH7KKZ.js} +2 -2
- package/dist/{chunk-XEB7KYZ7.js → chunk-BGBJP2FR.js} +1 -1
- package/dist/{chunk-6VHSP7OM.js → chunk-FRD5DWHC.js} +5 -22
- package/dist/{chunk-K6SQKEVI.js → chunk-GK5TNMPO.js} +1 -1
- package/dist/{chunk-SEXHOM2R.js → chunk-KQFLR55S.js} +1 -1
- package/dist/chunk-N3KQ3NTU.js +27 -0
- package/dist/{chunk-LQBZP7T2.js → chunk-T3PINLZS.js} +1 -0
- package/dist/{chunk-GYGUI46Q.js → chunk-YLHNMREZ.js} +1 -1
- package/dist/commands/sessions/web/bundle.js +522 -522
- package/dist/{commit-I7G3RGBD.js → commit-LOFSMCD5.js} +65 -3
- package/dist/{doctorNodes-5UOUWDOP.js → doctorNodes-PV4QZP7E.js} +3 -3
- package/dist/index.js +21 -21
- package/dist/{launchMode-ZBTDVC2G.js → launchMode-2CO3BWYY.js} +5 -4
- package/dist/{next-KO3JPKVQ.js → next-26PFOZG5.js} +4 -3
- package/dist/{refine-XPMFZ2IO.js → refine-MUWHTHJC.js} +6 -5
- package/dist/{restartNode-EZ3AQGAU.js → restartNode-WUCBIY7G.js} +5 -5
- package/dist/{run-3C4RNIML.js → run-PUGNQ4VC.js} +3 -2
- package/dist/{run-4HYNSV6Y.js → run-UJMX6PPW.js} +3 -2
- package/dist/{runDaemon-LOMHW7SX.js → runDaemon-LR5BQVZF.js} +2 -2
- package/dist/{runRefine-UDPQU3IX.js → runRefine-WLDC22DF.js} +6 -5
- package/dist/{signExtension-SWSMP4O6.js → signExtension-R5XVVEHK.js} +1 -1
- package/dist/{updateNode-J6MJI25U.js → updateNode-OLKY5I6F.js} +5 -5
- package/dist/{web-MHPCW3EM.js → web-FNST6QQB.js} +5 -5
- package/dist/{web-3QK3LTNS.js → web-T3TOXAJV.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-GNFILJ4K.js
|
|
22
22
|
browserConsole-6ZRED7DG.js
|
|
23
23
|
browserInspect-2IOKKWOF.js
|
|
24
24
|
browserRun-JJVVNL6H.js
|
|
@@ -30,6 +30,7 @@ check-4222IYZK.js
|
|
|
30
30
|
checkBuildLocks-UBGUSNX5.js
|
|
31
31
|
chunk-24YN3552.js
|
|
32
32
|
chunk-25RUFQVZ.js
|
|
33
|
+
chunk-27ZCOFKR.js
|
|
33
34
|
chunk-2D3ZCQE3.js
|
|
34
35
|
chunk-2DPZIZ42.js
|
|
35
36
|
chunk-2EW62DM5.js
|
|
@@ -43,6 +44,7 @@ chunk-2NSFICTL.js
|
|
|
43
44
|
chunk-2PJELPWT.js
|
|
44
45
|
chunk-2T5HRFWP.js
|
|
45
46
|
chunk-2T5KEQU2.js
|
|
47
|
+
chunk-2ZF2NNDU.js
|
|
46
48
|
chunk-3DLJJ7YO.js
|
|
47
49
|
chunk-3DNFNT2L.js
|
|
48
50
|
chunk-3GTHD6ZV.js
|
|
@@ -73,6 +75,7 @@ chunk-4Y4ADPEK.js
|
|
|
73
75
|
chunk-4YHDWC5E.js
|
|
74
76
|
chunk-52YCRYJ2.js
|
|
75
77
|
chunk-556BOFTS.js
|
|
78
|
+
chunk-556EOOQH.js
|
|
76
79
|
chunk-5H7EHZ3J.js
|
|
77
80
|
chunk-5JOVEUBS.js
|
|
78
81
|
chunk-5KNJD6WC.js
|
|
@@ -88,8 +91,9 @@ chunk-6G2ADBNV.js
|
|
|
88
91
|
chunk-6KSMPTXN.js
|
|
89
92
|
chunk-6MXYEGDK.js
|
|
90
93
|
chunk-6N2MSR7W.js
|
|
94
|
+
chunk-6NO5D57Q.js
|
|
95
|
+
chunk-6ONH7KKZ.js
|
|
91
96
|
chunk-6T53CG7D.js
|
|
92
|
-
chunk-6VHSP7OM.js
|
|
93
97
|
chunk-6YOKIMLO.js
|
|
94
98
|
chunk-6Z7XJJNZ.js
|
|
95
99
|
chunk-74TXMB2S.js
|
|
@@ -114,6 +118,7 @@ chunk-B7B26YPF.js
|
|
|
114
118
|
chunk-B7VOTF5Q.js
|
|
115
119
|
chunk-BAIGEXPY.js
|
|
116
120
|
chunk-BEVDTMKB.js
|
|
121
|
+
chunk-BGBJP2FR.js
|
|
117
122
|
chunk-BGN4WP7H.js
|
|
118
123
|
chunk-BN3MOJ5M.js
|
|
119
124
|
chunk-BO5JCCC5.js
|
|
@@ -160,11 +165,13 @@ chunk-FOPR6LRY.js
|
|
|
160
165
|
chunk-FPFQBHN6.js
|
|
161
166
|
chunk-FPWL4VRC.js
|
|
162
167
|
chunk-FQZ6D3OJ.js
|
|
168
|
+
chunk-FRD5DWHC.js
|
|
163
169
|
chunk-FVZP4ULO.js
|
|
164
170
|
chunk-G3ROBZ4I.js
|
|
165
171
|
chunk-GEDUARWV.js
|
|
166
172
|
chunk-GIHVMELY.js
|
|
167
173
|
chunk-GJBG3NPA.js
|
|
174
|
+
chunk-GK5TNMPO.js
|
|
168
175
|
chunk-GKKYQHKI.js
|
|
169
176
|
chunk-GKQV27WM.js
|
|
170
177
|
chunk-GL5GKF5A.js
|
|
@@ -172,7 +179,6 @@ chunk-GQF23TWI.js
|
|
|
172
179
|
chunk-GRXFWFGP.js
|
|
173
180
|
chunk-GVI4JSG7.js
|
|
174
181
|
chunk-GVVK5XFZ.js
|
|
175
|
-
chunk-GYGUI46Q.js
|
|
176
182
|
chunk-H63MI5HI.js
|
|
177
183
|
chunk-HFONOHA7.js
|
|
178
184
|
chunk-HKGCLAZ7.js
|
|
@@ -204,13 +210,12 @@ chunk-JVG5AJA2.js
|
|
|
204
210
|
chunk-JVTCXR7C.js
|
|
205
211
|
chunk-K45LIKCT.js
|
|
206
212
|
chunk-K4DJEFDZ.js
|
|
207
|
-
chunk-K6SQKEVI.js
|
|
208
213
|
chunk-KD2PWI4Z.js
|
|
209
214
|
chunk-KDYJRHCI.js
|
|
210
215
|
chunk-KE6SKMNG.js
|
|
211
216
|
chunk-KHAZCMO7.js
|
|
212
217
|
chunk-KP5S3FE5.js
|
|
213
|
-
chunk-
|
|
218
|
+
chunk-KQFLR55S.js
|
|
214
219
|
chunk-KUP523UM.js
|
|
215
220
|
chunk-KY77XKAU.js
|
|
216
221
|
chunk-L363MNYZ.js
|
|
@@ -223,7 +228,6 @@ chunk-LKZ7J5AK.js
|
|
|
223
228
|
chunk-LLUXIEWN.js
|
|
224
229
|
chunk-LMHILP5H.js
|
|
225
230
|
chunk-LOP6Y256.js
|
|
226
|
-
chunk-LQBZP7T2.js
|
|
227
231
|
chunk-M3O2BTJG.js
|
|
228
232
|
chunk-MA7HTHHM.js
|
|
229
233
|
chunk-MJ44T7R4.js
|
|
@@ -232,6 +236,7 @@ chunk-MN5WFVKQ.js
|
|
|
232
236
|
chunk-MPY2OF65.js
|
|
233
237
|
chunk-MRHAE5BG.js
|
|
234
238
|
chunk-MRUIXQXS.js
|
|
239
|
+
chunk-N3KQ3NTU.js
|
|
235
240
|
chunk-N65VOEFI.js
|
|
236
241
|
chunk-N755UYFK.js
|
|
237
242
|
chunk-N7MOTWGW.js
|
|
@@ -240,8 +245,6 @@ chunk-NBUBXIUE.js
|
|
|
240
245
|
chunk-NGTSPXSJ.js
|
|
241
246
|
chunk-NGYZK6AF.js
|
|
242
247
|
chunk-NH33OKZQ.js
|
|
243
|
-
chunk-NJ7IMJOD.js
|
|
244
|
-
chunk-NSEQQSBW.js
|
|
245
248
|
chunk-NT7WJQ6X.js
|
|
246
249
|
chunk-NTGC7G2R.js
|
|
247
250
|
chunk-NZYSENRR.js
|
|
@@ -249,7 +252,6 @@ chunk-O6HFT23O.js
|
|
|
249
252
|
chunk-O7L27TQP.js
|
|
250
253
|
chunk-OCMUGVGR.js
|
|
251
254
|
chunk-ODLSWRTS.js
|
|
252
|
-
chunk-OETJO2XU.js
|
|
253
255
|
chunk-OL4L2AJB.js
|
|
254
256
|
chunk-OLE7XSNB.js
|
|
255
257
|
chunk-OLZUN3VT.js
|
|
@@ -284,7 +286,6 @@ chunk-QU6OQZJ2.js
|
|
|
284
286
|
chunk-QUHEM3YC.js
|
|
285
287
|
chunk-QVHBQTYZ.js
|
|
286
288
|
chunk-QZXHLY6L.js
|
|
287
|
-
chunk-R2SOOESA.js
|
|
288
289
|
chunk-R3NP33DG.js
|
|
289
290
|
chunk-R72E45HQ.js
|
|
290
291
|
chunk-RFMBA6WA.js
|
|
@@ -296,7 +297,6 @@ chunk-RZGFTEWF.js
|
|
|
296
297
|
chunk-S6XYTJU2.js
|
|
297
298
|
chunk-SAJJDV4D.js
|
|
298
299
|
chunk-SDMBTSYP.js
|
|
299
|
-
chunk-SEXHOM2R.js
|
|
300
300
|
chunk-SGZ57DJO.js
|
|
301
301
|
chunk-SIQRT7KZ.js
|
|
302
302
|
chunk-SO3IBV6J.js
|
|
@@ -306,6 +306,7 @@ chunk-SUBQSZT6.js
|
|
|
306
306
|
chunk-SURCYYQ6.js
|
|
307
307
|
chunk-SW7FSLHP.js
|
|
308
308
|
chunk-T2DY3T55.js
|
|
309
|
+
chunk-T3PINLZS.js
|
|
309
310
|
chunk-T4TPIDXO.js
|
|
310
311
|
chunk-T7ZPGAB5.js
|
|
311
312
|
chunk-TBHJ7JDT.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
|
|
@@ -385,6 +385,7 @@ chunk-YIBSK5OC.js
|
|
|
385
385
|
chunk-YJ72SXVD.js
|
|
386
386
|
chunk-YKONRK6A.js
|
|
387
387
|
chunk-YKVLG4SZ.js
|
|
388
|
+
chunk-YLHNMREZ.js
|
|
388
389
|
chunk-YLQAQHRT.js
|
|
389
390
|
chunk-YNHPTUHS.js
|
|
390
391
|
chunk-YOFY27RM.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-LOFSMCD5.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-PV4QZP7E.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-2CO3BWYY.js
|
|
514
515
|
link-TJO2QD4G.js
|
|
515
516
|
link-Z7VOZLYM.js
|
|
516
517
|
linkNode-CNA4X7YA.js
|
|
@@ -537,7 +538,7 @@ netcap-FIHYF3LK.js
|
|
|
537
538
|
netcapExtract-KAFERZ6V.js
|
|
538
539
|
newCli-2ZSE67NN.js
|
|
539
540
|
newProject-VEQTJQBG.js
|
|
540
|
-
next-
|
|
541
|
+
next-26PFOZG5.js
|
|
541
542
|
next-MDRRZOPK.js
|
|
542
543
|
noVenv-5SN25UJR.js
|
|
543
544
|
nodeLogs-VFH5NMNQ.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-MUWHTHJC.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-WUCBIY7G.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-PUGNQ4VC.js
|
|
594
|
+
run-UJMX6PPW.js
|
|
595
|
+
runDaemon-LR5BQVZF.js
|
|
595
596
|
runExtract-3JTDFR6J.js
|
|
596
597
|
runParallelPhase-KPCQWPFK.js
|
|
597
|
-
runRefine-
|
|
598
|
+
runRefine-WLDC22DF.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-R5XVVEHK.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-OLKY5I6F.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-FNST6QQB.js
|
|
654
|
+
web-T3TOXAJV.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.0
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-JM57BCD6.js";
|
|
11
11
|
import {
|
|
12
12
|
firstBrokenHop
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KQFLR55S.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-556EOOQH.js";
|
|
52
52
|
import {
|
|
53
53
|
findLinkSpec
|
|
54
54
|
} from "./chunk-6KSMPTXN.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BGBJP2FR.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-FRD5DWHC.js";
|
|
10
10
|
import {
|
|
11
11
|
launchBlocker
|
|
12
12
|
} from "./chunk-24YN3552.js";
|
|
@@ -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-T3PINLZS.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
|
}
|
|
@@ -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
|
+
};
|