@staff0rd/assist 0.1158.1 → 0.1158.3
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 +85 -85
- package/dist/{addActivity-RJVSLFDF.js → addActivity-GJKYQUDU.js} +3 -3
- package/dist/{addPhase-TFDHIVTD.js → addPhase-MDRHOLLJ.js} +4 -4
- package/dist/{advise-E2MH3ASH.js → advise-T7BSKEAE.js} +4 -4
- package/dist/{askCheck-X46HT6RS.js → askCheck-H3DETZR5.js} +8 -8
- package/dist/{askDesign-EHNQSAJ3.js → askDesign-W3NGNG2S.js} +2 -2
- package/dist/{askQuestion-F46SUVZL.js → askQuestion-5RDETJHR.js} +1 -1
- package/dist/{branch-C7YXWJAX.js → branch-I7ZQIMGP.js} +4 -4
- package/dist/built-version +1 -1
- package/dist/{chunk-YYXDBRET.js → chunk-27IXJYFR.js} +1 -1
- package/dist/{chunk-DFQMUYMO.js → chunk-2EZN7YYI.js} +1 -1
- package/dist/{chunk-TYE72SBM.js → chunk-3KGQGR3G.js} +5 -3
- package/dist/{chunk-ODWSNE5E.js → chunk-4ONI7QEW.js} +1 -1
- package/dist/{chunk-E55ZAU6M.js → chunk-56ZMG6X3.js} +1 -1
- package/dist/{chunk-G7P3ZDRT.js → chunk-6UE44FWN.js} +2 -2
- package/dist/{chunk-7Z3OPAJZ.js → chunk-7FUE2JFB.js} +1 -1
- package/dist/{chunk-SVYJ35KO.js → chunk-7MEMTAOZ.js} +2 -2
- package/dist/{chunk-APW3X2QM.js → chunk-BEM3VQZO.js} +1 -1
- package/dist/{chunk-SOLU75ED.js → chunk-CUOHHT2F.js} +1 -1
- package/dist/{chunk-4ELLSJG6.js → chunk-DE3RLRXT.js} +1 -1
- package/dist/{chunk-AWIOBY7Q.js → chunk-DUNO7WBT.js} +4 -2
- package/dist/{chunk-5LFLGW4K.js → chunk-DUX7IRKZ.js} +1 -1
- package/dist/{chunk-PALO62N5.js → chunk-EGGBKXWO.js} +1 -1
- package/dist/{chunk-42WIJCMO.js → chunk-FHXKQAS6.js} +2 -2
- package/dist/{chunk-Q2XZ6PPO.js → chunk-GGQW6CYV.js} +2 -2
- package/dist/{chunk-GUCGXHC3.js → chunk-HW2SAZBU.js} +2 -2
- package/dist/{chunk-JJTRIIUM.js → chunk-I3Y7QGJK.js} +1 -1
- package/dist/{chunk-GOVUTFGC.js → chunk-JVHDWXVT.js} +1 -1
- package/dist/{chunk-GZD5ET6I.js → chunk-KP3UKYJH.js} +1 -1
- package/dist/{chunk-ELQCLDOQ.js → chunk-KUT55SV3.js} +8 -8
- package/dist/{chunk-FQBXJ4BH.js → chunk-LGBMLYGM.js} +1 -1
- package/dist/{chunk-6PDLUNA3.js → chunk-LWZM6ZRA.js} +4 -4
- package/dist/{chunk-4ATDZEUZ.js → chunk-MK7SONKM.js} +1 -1
- package/dist/{chunk-SNSOHVAN.js → chunk-NE4V3VA5.js} +1 -1
- package/dist/{chunk-EWMORVWN.js → chunk-NJUF5XRJ.js} +1 -1
- package/dist/{chunk-SGKMAXMO.js → chunk-OTWBV35D.js} +1 -1
- package/dist/{chunk-ADKYCC33.js → chunk-OXYGWLAI.js} +6 -6
- package/dist/{chunk-TTDSFM3C.js → chunk-PTBA2F2T.js} +1 -1
- package/dist/{chunk-YSLPUZ3O.js → chunk-Q2KKGXWP.js} +1 -1
- package/dist/{chunk-7NZNP3P5.js → chunk-SJFPJC5E.js} +2 -2
- package/dist/{chunk-E6SXSDKD.js → chunk-TEYQMP4G.js} +1 -1
- package/dist/{chunk-I5Y4E2A2.js → chunk-TR4N3VFY.js} +3 -3
- package/dist/{chunk-ZSFB3YY3.js → chunk-UA4OXH7W.js} +9 -52
- package/dist/{chunk-PMZ6A7XX.js → chunk-WFYYXTFC.js} +1 -1
- package/dist/{chunk-Y6JIEFXY.js → chunk-WGP5D6FO.js} +1 -1
- package/dist/{chunk-ZPW6ZEG7.js → chunk-XVRHFHDU.js} +1 -1
- package/dist/{chunk-MFIBGF6C.js → chunk-Y2R6PKDY.js} +1 -1
- package/dist/{chunk-ULVCJV3K.js → chunk-YGWBV3ZA.js} +2 -2
- package/dist/{chunk-YXHK5EWG.js → chunk-ZFJMFM5O.js} +1 -1
- package/dist/{cliHook-NGRJETLU.js → cliHook-KMT5IJUY.js} +7 -7
- package/dist/{cliHookCheck-G7W5M3NI.js → cliHookCheck-JFVC6WQH.js} +3 -3
- package/dist/{codeCommentSet-A6JUXBZD.js → codeCommentSet-JJPAIATE.js} +3 -3
- package/dist/{codexHook-QPCI2T7J.js → codexHook-XWDAZ43I.js} +9 -9
- package/dist/commands/extension/extension/background.js +2 -2
- package/dist/commands/extension/extension/content.js +1 -1
- package/dist/commands/extension/extension/updates.json +2 -2
- package/dist/commands/sessions/web/bundle.js +384 -384
- package/dist/{commit-SL4Y6OO6.js → commit-N6MTYEKD.js} +5 -5
- package/dist/{docsConfirm-OVUTMONK.js → docsConfirm-TJCYL5IL.js} +2 -2
- package/dist/{docsUnlock-YOHDLSPU.js → docsUnlock-7F2N6OZN.js} +4 -4
- package/dist/{doctorNodes-T56UCE4Q.js → doctorNodes-ZXFL27JJ.js} +3 -3
- package/dist/{done-HUEB6VZT.js → done-WE33GZ5X.js} +5 -5
- package/dist/{editHook-S2ARHIQS.js → editHook-5GWY5EIZ.js} +7 -7
- package/dist/{fixConflict-VH23UVUA.js → fixConflict-LF5WDGBK.js} +3 -3
- package/dist/index.js +52 -52
- package/dist/{launchMode-YUWJYQ62.js → launchMode-ZZXHF4WH.js} +14 -14
- package/dist/{list-X2F6ZWKD.js → list-MC26ZBCC.js} +6 -6
- package/dist/{next-V5SMYMDJ.js → next-A4E3QIUK.js} +13 -13
- package/dist/{notify-ZC3LKAWF.js → notify-AWHRIIYK.js} +2 -2
- package/dist/{piHook-FLULHFIM.js → piHook-4HACLM4E.js} +7 -7
- package/dist/{propose-TWOXTJQW.js → propose-LY5FMT3N.js} +5 -5
- package/dist/{refine-2B4SYG4A.js → refine-75FHRJJQ.js} +15 -15
- package/dist/{restartNode-A3BITF64.js → restartNode-56PDCYFC.js} +5 -5
- package/dist/{review-AB4XDAWI.js → review-FI2UAR4P.js} +3 -3
- package/dist/{reviewPrComments-XJHEL65Z.js → reviewPrComments-NYNOC6FH.js} +3 -3
- package/dist/{rewindPhase-LOOHSIPC.js → rewindPhase-3NINBE4W.js} +9 -9
- package/dist/{run-4QEL6OOQ.js → run-5SGSUDJT.js} +11 -11
- package/dist/{run-WYIZVHCV.js → run-CA6UYDF2.js} +11 -11
- package/dist/{runDaemon-P2GJF2TG.js → runDaemon-RUAINOEF.js} +27 -21
- package/dist/{runRefine-MTCXRUVM.js → runRefine-UW2KCMCF.js} +15 -15
- package/dist/{scan-LDSE2MHJ.js → scan-5GEMMH6B.js} +3 -3
- package/dist/{schemaConfirm-LM4PK76B.js → schemaConfirm-AVGQ24CV.js} +5 -5
- package/dist/{schemaUnlock-FKZPTVNF.js → schemaUnlock-WAM3TR4W.js} +7 -7
- package/dist/{search-CXYHC2UR.js → search-GC2UGMTN.js} +6 -6
- package/dist/{show-DMADGGAX.js → show-CQXKSP6N.js} +4 -4
- package/dist/{show-3UYNNVB3.js → show-PSV25MMZ.js} +4 -4
- package/dist/{signExtension-RV7LN5MH.js → signExtension-6MLSAPEG.js} +1 -1
- package/dist/{statusLine-Z2PVDWVE.js → statusLine-BZD5BKDQ.js} +2 -2
- package/dist/{updateNode-H57VG5WY.js → updateNode-EEL2KZ2J.js} +5 -5
- package/dist/{updatePlan-BCPFFG3Y.js → updatePlan-3VKXJHRM.js} +5 -5
- package/dist/{web-JUOCFXL7.js → web-W6KOT2ZE.js} +17 -17
- package/dist/{web-EKFX6NQY.js → web-Z5FCXQWU.js} +17 -17
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
createBranch,
|
|
3
3
|
generateBranchSlug,
|
|
4
4
|
isConciseSlug
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MK7SONKM.js";
|
|
6
|
+
import "./chunk-BEM3VQZO.js";
|
|
7
7
|
import "./chunk-OZNYQOQK.js";
|
|
8
8
|
import "./chunk-ORSRBZ2X.js";
|
|
9
9
|
import "./chunk-PCF66ALO.js";
|
|
@@ -18,14 +18,14 @@ import "./chunk-LMUTL44M.js";
|
|
|
18
18
|
import "./chunk-6NDXAN45.js";
|
|
19
19
|
import "./chunk-MELBVXKL.js";
|
|
20
20
|
import "./chunk-OGJ6AZK4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-UA4OXH7W.js";
|
|
22
22
|
import "./chunk-MRUIXQXS.js";
|
|
23
23
|
import "./chunk-HO7RNI6V.js";
|
|
24
24
|
import "./chunk-DIAC4XYA.js";
|
|
25
25
|
import "./chunk-UU77KEL6.js";
|
|
26
26
|
import "./chunk-W7TRZLEM.js";
|
|
27
27
|
import "./chunk-P26XSDFU.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-DUNO7WBT.js";
|
|
29
29
|
import "./chunk-D7UZLH36.js";
|
|
30
30
|
import "./chunk-EW2ZM2PC.js";
|
|
31
31
|
import "./chunk-QKHOYKUQ.js";
|
package/dist/built-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1158.
|
|
1
|
+
0.1158.3
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
codexRolloutMeta,
|
|
17
17
|
deriveHistoryFields,
|
|
18
18
|
readCodexHeadLines
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UA4OXH7W.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveHarness
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DUNO7WBT.js";
|
|
23
23
|
import {
|
|
24
24
|
harnesses
|
|
25
25
|
} from "./chunk-XDIVXGPQ.js";
|
|
@@ -174,7 +174,9 @@ var harnessUsageAccounts = {
|
|
|
174
174
|
var RATE_LIMIT_WINDOWS = ["five_hour", "seven_day"];
|
|
175
175
|
var accounts = Object.entries(harnessUsageAccounts);
|
|
176
176
|
function usageWindowKey(harness, window) {
|
|
177
|
-
const
|
|
177
|
+
const kind = resolveHarness(harness);
|
|
178
|
+
const account = harnessUsageAccounts[kind];
|
|
179
|
+
const prefix = account ? account.windowPrefix : kind;
|
|
178
180
|
return prefix ? `${prefix}:${window}` : window;
|
|
179
181
|
}
|
|
180
182
|
function parseUsageWindowKey(key) {
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-N65VOEFI.js";
|
|
4
4
|
import {
|
|
5
5
|
previewAnswerWaitBlocker
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZFJMFM5O.js";
|
|
7
7
|
import {
|
|
8
8
|
askQuestionEnabled
|
|
9
9
|
} from "./chunk-IBPSXDUB.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveHarness
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DUNO7WBT.js";
|
|
13
13
|
import {
|
|
14
14
|
loadConfig
|
|
15
15
|
} from "./chunk-KGFZYUE2.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isApprovedRead,
|
|
14
14
|
resolvePermission,
|
|
15
15
|
splitCompound
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Q2KKGXWP.js";
|
|
17
17
|
import {
|
|
18
18
|
DOCS_LOCK_REASON,
|
|
19
19
|
SCHEMA_LOCK_REASON,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isSchemaPath,
|
|
24
24
|
isSchemaRelativePath,
|
|
25
25
|
mentionsDocsPath
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GGQW6CYV.js";
|
|
27
27
|
import {
|
|
28
28
|
isLiveDaemonSession
|
|
29
29
|
} from "./chunk-C5U44UI7.js";
|
|
@@ -16,10 +16,12 @@ function resolveHarness(harness) {
|
|
|
16
16
|
return harness ?? legacyDefaultHarness;
|
|
17
17
|
}
|
|
18
18
|
function harnessLabel(harness) {
|
|
19
|
-
|
|
19
|
+
const kind = resolveHarness(harness);
|
|
20
|
+
return HARNESS_LABELS[kind] ?? kind;
|
|
20
21
|
}
|
|
21
22
|
function harnessProductLabel(harness) {
|
|
22
|
-
|
|
23
|
+
const kind = resolveHarness(harness);
|
|
24
|
+
return HARNESS_PRODUCT_LABELS[kind] ?? kind;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lookupConversation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-56ZMG6X3.js";
|
|
4
4
|
import {
|
|
5
5
|
harnessAdapter,
|
|
6
6
|
readTranscriptTail
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UA4OXH7W.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
|
phaseUnlockSuffix
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CUOHHT2F.js";
|
|
4
4
|
import {
|
|
5
5
|
currentExecutionIdentity,
|
|
6
6
|
getSchemaSessionApprovalPath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SJFPJC5E.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveSessionItemId
|
|
10
10
|
} from "./chunk-FPWL4VRC.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveReviewPhase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DUX7IRKZ.js";
|
|
4
4
|
import {
|
|
5
5
|
resolvePlan
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2EZN7YYI.js";
|
|
7
7
|
|
|
8
8
|
// src/commands/backlog/resolveRewindPlan.ts
|
|
9
9
|
function resolveRewindPlan(item) {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveLinkTarget,
|
|
12
12
|
usageWindowKey,
|
|
13
13
|
watcherLogPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3KGQGR3G.js";
|
|
15
15
|
import {
|
|
16
16
|
readLogTail
|
|
17
17
|
} from "./chunk-JNCFHWBK.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-3NPVVAAT.js";
|
|
27
27
|
import {
|
|
28
28
|
firstBrokenHop
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DE3RLRXT.js";
|
|
30
30
|
import {
|
|
31
31
|
TRACE_HEADER,
|
|
32
32
|
newTraceId
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
ASSIST_VERSION,
|
|
36
36
|
PROTOCOL_VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-WGP5D6FO.js";
|
|
38
38
|
import {
|
|
39
39
|
queryNodes
|
|
40
40
|
} from "./chunk-OD7CMDGZ.js";
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-UJBW7FVI.js";
|
|
80
80
|
import {
|
|
81
81
|
targetConversationEvents
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-FHXKQAS6.js";
|
|
83
83
|
import {
|
|
84
84
|
configEntryLayers,
|
|
85
85
|
ghFailure,
|
|
@@ -228,7 +228,7 @@ import {
|
|
|
228
228
|
} from "./chunk-AOTNNZPH.js";
|
|
229
229
|
import {
|
|
230
230
|
rewindItemToPhase
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-OTWBV35D.js";
|
|
232
232
|
import {
|
|
233
233
|
loadBacklogSummaries,
|
|
234
234
|
searchBacklogSummaries
|
|
@@ -255,7 +255,7 @@ import {
|
|
|
255
255
|
} from "./chunk-IZBQH3LW.js";
|
|
256
256
|
import {
|
|
257
257
|
resolveRewindPlan
|
|
258
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-HW2SAZBU.js";
|
|
259
259
|
import {
|
|
260
260
|
deleteItem,
|
|
261
261
|
getOrigin,
|
|
@@ -304,10 +304,10 @@ import {
|
|
|
304
304
|
discoverSessionJsonlPaths,
|
|
305
305
|
harnessAdapter,
|
|
306
306
|
parseSessionFile
|
|
307
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-UA4OXH7W.js";
|
|
308
308
|
import {
|
|
309
309
|
harnessLabel
|
|
310
|
-
} from "./chunk-
|
|
310
|
+
} from "./chunk-DUNO7WBT.js";
|
|
311
311
|
import {
|
|
312
312
|
resolveRunConfigs
|
|
313
313
|
} from "./chunk-G44QYJ57.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TR4N3VFY.js";
|
|
4
4
|
import {
|
|
5
5
|
pullIfConfigured
|
|
6
6
|
} from "./chunk-SB4BG7PH.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
run,
|
|
11
11
|
stopWatching,
|
|
12
12
|
watchForMarker
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OXYGWLAI.js";
|
|
14
14
|
import {
|
|
15
15
|
resumeNudge
|
|
16
16
|
} from "./chunk-LFRSZIAS.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-NWNODYLQ.js";
|
|
30
30
|
import {
|
|
31
31
|
isBlocked
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NJUF5XRJ.js";
|
|
33
33
|
import {
|
|
34
34
|
loadItemSummaries
|
|
35
35
|
} from "./chunk-BV2V6RTH.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-N65VOEFI.js";
|
|
48
48
|
import {
|
|
49
49
|
harnessAdapter
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-UA4OXH7W.js";
|
|
51
51
|
|
|
52
52
|
// src/commands/backlog/launchMode.ts
|
|
53
53
|
import chalk3 from "chalk";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isPausePending,
|
|
10
10
|
recordPhaseSession,
|
|
11
11
|
releaseLock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4ONI7QEW.js";
|
|
13
13
|
import {
|
|
14
14
|
resumeNudge
|
|
15
15
|
} from "./chunk-LFRSZIAS.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
createBranch,
|
|
31
31
|
generateBranchSlug
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MK7SONKM.js";
|
|
33
33
|
import {
|
|
34
34
|
setSessionStatus
|
|
35
35
|
} from "./chunk-WTQRIUSK.js";
|
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
buildReviewPhase,
|
|
44
44
|
resolveReviewPhase
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-DUX7IRKZ.js";
|
|
46
46
|
import {
|
|
47
47
|
resolvePlan
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-2EZN7YYI.js";
|
|
49
49
|
import {
|
|
50
50
|
buildPhasePrompt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-6UE44FWN.js";
|
|
52
52
|
import {
|
|
53
53
|
findOneItem,
|
|
54
54
|
getOrigin,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
harnessAdapter,
|
|
74
74
|
withoutResumeSession
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-UA4OXH7W.js";
|
|
76
76
|
import {
|
|
77
77
|
buildFeature
|
|
78
78
|
} from "./chunk-PXQTFJ2N.js";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-FPWL4VRC.js";
|
|
7
7
|
import {
|
|
8
8
|
harnessAdapter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UA4OXH7W.js";
|
|
10
10
|
import {
|
|
11
11
|
legacyDefaultHarness
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DUNO7WBT.js";
|
|
13
13
|
import {
|
|
14
14
|
activeHarness
|
|
15
15
|
} from "./chunk-BFQSGIN6.js";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-SB4BG7PH.js";
|
|
4
4
|
import {
|
|
5
5
|
run
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OXYGWLAI.js";
|
|
7
7
|
import {
|
|
8
8
|
isLockedByOther
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4ONI7QEW.js";
|
|
10
10
|
import {
|
|
11
11
|
isBlocked,
|
|
12
12
|
typeLabel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NJUF5XRJ.js";
|
|
14
14
|
import {
|
|
15
15
|
loadBacklog
|
|
16
16
|
} from "./chunk-PYZUB3JT.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
harnessLabel,
|
|
25
25
|
resolveHarness
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DUNO7WBT.js";
|
|
27
27
|
import {
|
|
28
28
|
checkCliAvailable,
|
|
29
29
|
harnesses,
|
|
@@ -3759,45 +3759,11 @@ function createSdkProcessWatch(getPid, emit, {
|
|
|
3759
3759
|
return { start, stop };
|
|
3760
3760
|
}
|
|
3761
3761
|
|
|
3762
|
-
// src/commands/sessions/daemon/sdk/activityLine.ts
|
|
3763
|
-
var MAX_LINE = 80;
|
|
3764
|
-
function activityLine(text) {
|
|
3765
|
-
const line = text.trim().split("\n")[0].trim();
|
|
3766
|
-
return line.length > MAX_LINE ? `${line.slice(0, MAX_LINE - 1)}\u2026` : line;
|
|
3767
|
-
}
|
|
3768
|
-
|
|
3769
|
-
// src/commands/sessions/daemon/sdk/commandActivityLine.ts
|
|
3770
|
-
var LEADING_CD = /^cd\s+(?:"[^"]*"|'[^']*'|\S+)\s*(?:;|&&)\s*/;
|
|
3771
|
-
function commandActivityLine(command) {
|
|
3772
|
-
return activityLine(command.trim().replace(LEADING_CD, ""));
|
|
3773
|
-
}
|
|
3774
|
-
|
|
3775
3762
|
// src/commands/sessions/daemon/sdk/sdkActivityText.ts
|
|
3776
|
-
var TARGET_KEYS = [
|
|
3777
|
-
"description",
|
|
3778
|
-
"command",
|
|
3779
|
-
"file_path",
|
|
3780
|
-
"notebook_path",
|
|
3781
|
-
"path",
|
|
3782
|
-
"pattern",
|
|
3783
|
-
"url",
|
|
3784
|
-
"query",
|
|
3785
|
-
"skill"
|
|
3786
|
-
];
|
|
3787
|
-
function toolTarget2(input) {
|
|
3788
|
-
if (!input || typeof input !== "object") return "";
|
|
3789
|
-
const record3 = input;
|
|
3790
|
-
const key = TARGET_KEYS.find((k) => typeof record3[k] === "string");
|
|
3791
|
-
if (!key) return "";
|
|
3792
|
-
const value = record3[key];
|
|
3793
|
-
return key === "command" ? commandActivityLine(value) : activityLine(value);
|
|
3794
|
-
}
|
|
3795
3763
|
var SDK_WORKING_ACTIVITY = "Working";
|
|
3796
3764
|
function sdkActivityText(content) {
|
|
3797
3765
|
const tool = [...content].reverse().find((block) => block.type === "tool_use");
|
|
3798
|
-
|
|
3799
|
-
const target = toolTarget2(tool.input);
|
|
3800
|
-
return `${SDK_WORKING_ACTIVITY} \xB7 ${tool.name}${target ? ` ${target}` : ""}`;
|
|
3766
|
+
return tool?.name ? `${SDK_WORKING_ACTIVITY} \xB7 ${tool.name}` : SDK_WORKING_ACTIVITY;
|
|
3801
3767
|
}
|
|
3802
3768
|
|
|
3803
3769
|
// src/commands/sessions/daemon/sdk/createSdkTurnEmitter.ts
|
|
@@ -3901,26 +3867,17 @@ function resolveClaudeExecutable() {
|
|
|
3901
3867
|
}
|
|
3902
3868
|
|
|
3903
3869
|
// src/commands/sessions/daemon/sdk/createSdkBackgroundTasks.ts
|
|
3870
|
+
var TOOL_BY_TASK_TYPE = {
|
|
3871
|
+
local_bash: "Bash",
|
|
3872
|
+
local_agent: "Agent",
|
|
3873
|
+
local_workflow: "Workflow",
|
|
3874
|
+
monitor: "Monitor"
|
|
3875
|
+
};
|
|
3904
3876
|
function createSdkBackgroundTasks() {
|
|
3905
|
-
const described = /* @__PURE__ */ new Map();
|
|
3906
|
-
const remember = (message2) => {
|
|
3907
|
-
if (message2.type !== "assistant") return;
|
|
3908
|
-
for (const block of message2.message.content) {
|
|
3909
|
-
if (block.type !== "tool_use") continue;
|
|
3910
|
-
const { command, description } = block.input ?? {};
|
|
3911
|
-
if (typeof command === "string" && typeof description === "string")
|
|
3912
|
-
described.set(command.trim(), description);
|
|
3913
|
-
}
|
|
3914
|
-
};
|
|
3915
|
-
const label = (description) => {
|
|
3916
|
-
const known = described.get(description.trim());
|
|
3917
|
-
return known ? activityLine(known) : commandActivityLine(description);
|
|
3918
|
-
};
|
|
3919
3877
|
return (message2) => {
|
|
3920
|
-
remember(message2);
|
|
3921
3878
|
if (message2.type !== "system" || message2.subtype !== "background_tasks_changed")
|
|
3922
3879
|
return void 0;
|
|
3923
|
-
return message2.tasks.filter((task) => !task.ambient).map((task) =>
|
|
3880
|
+
return message2.tasks.filter((task) => !task.ambient).map((task) => TOOL_BY_TASK_TYPE[task.task_type] ?? task.task_type);
|
|
3924
3881
|
};
|
|
3925
3882
|
}
|
|
3926
3883
|
|