@staff0rd/assist 0.1158.2 → 0.1159.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 +73 -73
- package/dist/{addActivity-TQHTMAHR.js → addActivity-MJYWFO7U.js} +2 -2
- package/dist/{addPhase-DN3ULRPV.js → addPhase-GONWNOTL.js} +3 -3
- package/dist/{advise-TD3JNKZM.js → advise-P44JLFTH.js} +3 -3
- package/dist/{askCheck-JMIEFETI.js → askCheck-A5HDVJP2.js} +46 -19
- package/dist/{askDesign-PXEAAG4O.js → askDesign-TJIJH5UI.js} +1 -1
- package/dist/{branch-GB2CVY2U.js → branch-AVZC3L36.js} +3 -3
- package/dist/built-version +1 -1
- package/dist/{chunk-4AMRKSDU.js → chunk-2GZAGNPD.js} +1 -1
- package/dist/{chunk-GGFRLH4L.js → chunk-5XEL2RHJ.js} +1 -1
- package/dist/{chunk-YMARWKHG.js → chunk-6QVHLP3E.js} +2 -2
- package/dist/{chunk-7XKGCIGU.js → chunk-A77PB42R.js} +6 -6
- package/dist/{chunk-GDD6I4IR.js → chunk-APCMTNP5.js} +1 -1
- package/dist/{chunk-HE7VKAFU.js → chunk-D3KXEPW5.js} +1 -1
- package/dist/{chunk-FCWRJXNQ.js → chunk-DU5CHLWL.js} +4 -4
- package/dist/{chunk-TT2CK53Y.js → chunk-E5GBQHKU.js} +1 -1
- package/dist/{chunk-J4M4YZ3Q.js → chunk-ED3ITGJN.js} +1 -1
- package/dist/{chunk-5H4TTYSB.js → chunk-EXSITFJA.js} +1 -1
- package/dist/{chunk-ZFLF3NMN.js → chunk-FVXUYW7R.js} +1 -1
- package/dist/{chunk-CZ26HDZG.js → chunk-HSE5HLCK.js} +1 -1
- package/dist/{chunk-GPO2TZQY.js → chunk-JHRRWQR2.js} +1 -1
- package/dist/{chunk-TNSLVMFG.js → chunk-JTUTO5BL.js} +1 -1
- package/dist/{chunk-XQHSVEDA.js → chunk-KLQFCFQS.js} +3 -3
- package/dist/{chunk-SH7C443R.js → chunk-LWM73IG5.js} +1 -1
- package/dist/{chunk-PGZ24SO3.js → chunk-MRM2NZZG.js} +1 -1
- package/dist/{chunk-FP4F2MRZ.js → chunk-NCK7BMMP.js} +7 -7
- package/dist/{chunk-QUSUFLTQ.js → chunk-NDXE7MIB.js} +1 -1
- package/dist/{chunk-5FWIYJJX.js → chunk-OFWIPLFY.js} +1 -1
- package/dist/{chunk-MI7QRIBK.js → chunk-OG7C3FPS.js} +1 -1
- package/dist/{chunk-3HE747LG.js → chunk-PSE4HC7Y.js} +2 -2
- package/dist/{chunk-ZZTDDRZF.js → chunk-RTTC6DG3.js} +1 -1
- package/dist/{chunk-MA5C6M63.js → chunk-TYXGQOBI.js} +1 -1
- package/dist/{chunk-BY2IYEHR.js → chunk-VDZOW3Q3.js} +1 -1
- package/dist/{chunk-4ENFD7FX.js → chunk-VEMLL2MB.js} +1 -1
- package/dist/{chunk-XCUPOHD6.js → chunk-WVAZNDJ7.js} +1 -1
- package/dist/{chunk-H6FVTF6F.js → chunk-X2JAOVWA.js} +2 -2
- package/dist/{chunk-NZPQCCKJ.js → chunk-XLZPMAEW.js} +1 -1
- package/dist/{chunk-RY7PX4IS.js → chunk-Y74XIZCO.js} +2 -2
- package/dist/{chunk-URHU6PNY.js → chunk-YLARQOLU.js} +28 -51
- package/dist/{chunk-GH6UBGWB.js → chunk-YTJ7HVKR.js} +1 -1
- package/dist/{chunk-JYKZ4KO7.js → chunk-Z3X5QNYY.js} +1 -1
- package/dist/{chunk-O2YEX7KZ.js → chunk-ZN3KF5EG.js} +1 -1
- package/dist/{cliHook-TTASLKEJ.js → cliHook-VGYS3GDX.js} +5 -5
- package/dist/{cliHookCheck-3E72I2FB.js → cliHookCheck-Z3T7T6DN.js} +2 -2
- package/dist/{codexHook-GHXKJJAO.js → codexHook-OGXRUKIN.js} +7 -7
- package/dist/commands/extension/extension/updates.json +2 -2
- package/dist/commands/sessions/web/bundle.js +448 -448
- package/dist/{commit-6MGGFCXY.js → commit-O2SBMPOL.js} +3 -3
- package/dist/{doctorNodes-HQVSEG25.js → doctorNodes-MK564ECD.js} +3 -3
- package/dist/{done-M56GYHTN.js → done-RYXCEDM6.js} +4 -4
- package/dist/{editHook-FEGKS4NN.js → editHook-BVXWHGQN.js} +5 -5
- package/dist/{fixConflict-72LF3UZ6.js → fixConflict-GCB74B3L.js} +2 -2
- package/dist/index.js +46 -46
- package/dist/{launchMode-4UGLLNHA.js → launchMode-V73UJ7IY.js} +13 -13
- package/dist/{list-NFJOX5SN.js → list-RAZHIR56.js} +5 -5
- package/dist/{next-KSTERN5Q.js → next-WWQA4T7M.js} +12 -12
- package/dist/{piHook-FUIUNIH4.js → piHook-BGIGXEC3.js} +5 -5
- package/dist/{propose-65MQZWV2.js → propose-OI54ENNV.js} +4 -4
- package/dist/{refine-O6L4R4HI.js → refine-MO363W3J.js} +14 -14
- package/dist/{restartNode-MD34LG5B.js → restartNode-ZBXTI22O.js} +5 -5
- package/dist/{review-BILJPBCA.js → review-SCBWQ5YI.js} +2 -2
- package/dist/{reviewPrComments-2EPQNOWW.js → reviewPrComments-EB2ZL3GE.js} +2 -2
- package/dist/{rewindPhase-7ITU54RI.js → rewindPhase-CYVR62ZI.js} +8 -8
- package/dist/{run-VOEYV433.js → run-4OKNZHTT.js} +10 -10
- package/dist/{run-HHRGIE7Q.js → run-GYUYQID4.js} +10 -10
- package/dist/{runDaemon-QTYKUKZP.js → runDaemon-U4MIZFAC.js} +66 -29
- package/dist/{runRefine-24VAXYAZ.js → runRefine-QHTLLTX6.js} +14 -14
- package/dist/{scan-MCTGYTQI.js → scan-R4S6NWXP.js} +2 -2
- package/dist/{schemaConfirm-TR2HZSCQ.js → schemaConfirm-OHIS7AMM.js} +2 -2
- package/dist/{schemaUnlock-55YZNJF7.js → schemaUnlock-T5DN3YOY.js} +2 -2
- package/dist/{search-XWGNX2DK.js → search-B3CRZVFU.js} +5 -5
- package/dist/{show-FXXVOYIF.js → show-7N3J7LLJ.js} +3 -3
- package/dist/{show-QECQLXGO.js → show-DNTQYROH.js} +3 -3
- package/dist/{signExtension-2JDYBF42.js → signExtension-BX4P5B4F.js} +1 -1
- package/dist/{updateNode-TMVDRQA6.js → updateNode-IX5XTZX4.js} +5 -5
- package/dist/{updatePlan-7B4BVKSF.js → updatePlan-SESXRANJ.js} +4 -4
- package/dist/{web-243YFGT5.js → web-ECGAG7CY.js} +16 -16
- package/dist/{web-6QTS2E7F.js → web-YVATG6S2.js} +16 -16
- 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-EXSITFJA.js";
|
|
6
|
+
import "./chunk-HSE5HLCK.js";
|
|
7
7
|
import "./chunk-OZNYQOQK.js";
|
|
8
8
|
import "./chunk-ORSRBZ2X.js";
|
|
9
9
|
import "./chunk-PCF66ALO.js";
|
|
@@ -18,7 +18,7 @@ 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-YLARQOLU.js";
|
|
22
22
|
import "./chunk-MRUIXQXS.js";
|
|
23
23
|
import "./chunk-HO7RNI6V.js";
|
|
24
24
|
import "./chunk-DIAC4XYA.js";
|
package/dist/built-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.1159.0
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isPausePending,
|
|
10
10
|
recordPhaseSession,
|
|
11
11
|
releaseLock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ED3ITGJN.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-EXSITFJA.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-JHRRWQR2.js";
|
|
46
46
|
import {
|
|
47
47
|
resolvePlan
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-E5GBQHKU.js";
|
|
49
49
|
import {
|
|
50
50
|
buildPhasePrompt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-WVAZNDJ7.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-YLARQOLU.js";
|
|
76
76
|
import {
|
|
77
77
|
buildFeature
|
|
78
78
|
} from "./chunk-PXQTFJ2N.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLQFCFQS.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-A77PB42R.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-VEMLL2MB.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-YLARQOLU.js";
|
|
51
51
|
|
|
52
52
|
// src/commands/backlog/launchMode.ts
|
|
53
53
|
import chalk3 from "chalk";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-SB4BG7PH.js";
|
|
4
4
|
import {
|
|
5
5
|
run
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A77PB42R.js";
|
|
7
7
|
import {
|
|
8
8
|
isLockedByOther
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ED3ITGJN.js";
|
|
10
10
|
import {
|
|
11
11
|
isBlocked,
|
|
12
12
|
typeLabel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VEMLL2MB.js";
|
|
14
14
|
import {
|
|
15
15
|
loadBacklog
|
|
16
16
|
} from "./chunk-PYZUB3JT.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveLinkTarget,
|
|
12
12
|
usageWindowKey,
|
|
13
13
|
watcherLogPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-APCMTNP5.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-OG7C3FPS.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-OFWIPLFY.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-Y74XIZCO.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-5XEL2RHJ.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-PSE4HC7Y.js";
|
|
259
259
|
import {
|
|
260
260
|
deleteItem,
|
|
261
261
|
getOrigin,
|
|
@@ -304,7 +304,7 @@ import {
|
|
|
304
304
|
discoverSessionJsonlPaths,
|
|
305
305
|
harnessAdapter,
|
|
306
306
|
parseSessionFile
|
|
307
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-YLARQOLU.js";
|
|
308
308
|
import {
|
|
309
309
|
harnessLabel
|
|
310
310
|
} from "./chunk-DUNO7WBT.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveReviewPhase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JHRRWQR2.js";
|
|
4
4
|
import {
|
|
5
5
|
resolvePlan
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E5GBQHKU.js";
|
|
7
7
|
|
|
8
8
|
// src/commands/backlog/resolveRewindPlan.ts
|
|
9
9
|
function resolveRewindPlan(item) {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isApprovedRead,
|
|
14
14
|
resolvePermission,
|
|
15
15
|
splitCompound
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FVXUYW7R.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-LWM73IG5.js";
|
|
27
27
|
import {
|
|
28
28
|
isLiveDaemonSession
|
|
29
29
|
} from "./chunk-C5U44UI7.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lookupConversation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MRM2NZZG.js";
|
|
4
4
|
import {
|
|
5
5
|
harnessAdapter,
|
|
6
6
|
readTranscriptTail
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YLARQOLU.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/sessions/shared/targetConversationEvents.ts
|
|
10
10
|
async function targetConversationEvents(cwd, target) {
|
|
@@ -3432,6 +3432,11 @@ function sdkSessionHandle(label) {
|
|
|
3432
3432
|
onEvent: (listener) => listeners.push(listener),
|
|
3433
3433
|
send: (text) => turn ? turn.send(text) : unbound("message"),
|
|
3434
3434
|
interrupt: () => turn ? turn.interrupt() : unbound("interrupt"),
|
|
3435
|
+
dequeue: (index, text) => {
|
|
3436
|
+
if (turn) return turn.dequeue(index, text);
|
|
3437
|
+
unbound("dequeue");
|
|
3438
|
+
return false;
|
|
3439
|
+
},
|
|
3435
3440
|
stopTask: (taskId) => turn ? turn.stopTask(taskId) : Promise.reject(new Error("query not started"))
|
|
3436
3441
|
};
|
|
3437
3442
|
return {
|
|
@@ -3530,6 +3535,19 @@ function createSdkMessageQueue(label, control, push) {
|
|
|
3530
3535
|
`${label} sdk message queued behind running turn (${queued.length} queued): ${quoteForLog(text)}`
|
|
3531
3536
|
);
|
|
3532
3537
|
},
|
|
3538
|
+
remove: (index, text) => {
|
|
3539
|
+
if (queued[index] !== text) {
|
|
3540
|
+
daemonLog(
|
|
3541
|
+
`${label} sdk dequeue ignored: no queued message ${index} matching ${quoteForLog(text)} (${queued.length} queued; already sent or changed)`
|
|
3542
|
+
);
|
|
3543
|
+
return false;
|
|
3544
|
+
}
|
|
3545
|
+
publish(queued.filter((_, i) => i !== index));
|
|
3546
|
+
daemonLog(
|
|
3547
|
+
`${label} sdk queued message ${index} removed (${queued.length} queued): ${quoteForLog(text)}`
|
|
3548
|
+
);
|
|
3549
|
+
return true;
|
|
3550
|
+
},
|
|
3533
3551
|
flush: () => {
|
|
3534
3552
|
if (!queued.length) return false;
|
|
3535
3553
|
daemonLog(`${label} sdk sending ${queued.length} queued message(s)`);
|
|
@@ -3759,45 +3777,11 @@ function createSdkProcessWatch(getPid, emit, {
|
|
|
3759
3777
|
return { start, stop };
|
|
3760
3778
|
}
|
|
3761
3779
|
|
|
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
3780
|
// 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
3781
|
var SDK_WORKING_ACTIVITY = "Working";
|
|
3796
3782
|
function sdkActivityText(content) {
|
|
3797
3783
|
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}` : ""}`;
|
|
3784
|
+
return tool?.name ? `${SDK_WORKING_ACTIVITY} \xB7 ${tool.name}` : SDK_WORKING_ACTIVITY;
|
|
3801
3785
|
}
|
|
3802
3786
|
|
|
3803
3787
|
// src/commands/sessions/daemon/sdk/createSdkTurnEmitter.ts
|
|
@@ -3874,6 +3858,7 @@ function createSdkTurnTracker(label, control, push) {
|
|
|
3874
3858
|
control.emit({ kind: "pending", texts: [text] });
|
|
3875
3859
|
setStatus("running");
|
|
3876
3860
|
},
|
|
3861
|
+
dequeue: queue.remove,
|
|
3877
3862
|
interrupt: (request) => interrupt.request(busy, request)
|
|
3878
3863
|
};
|
|
3879
3864
|
}
|
|
@@ -3901,26 +3886,17 @@ function resolveClaudeExecutable() {
|
|
|
3901
3886
|
}
|
|
3902
3887
|
|
|
3903
3888
|
// src/commands/sessions/daemon/sdk/createSdkBackgroundTasks.ts
|
|
3889
|
+
var TOOL_BY_TASK_TYPE = {
|
|
3890
|
+
local_bash: "Bash",
|
|
3891
|
+
local_agent: "Agent",
|
|
3892
|
+
local_workflow: "Workflow",
|
|
3893
|
+
monitor: "Monitor"
|
|
3894
|
+
};
|
|
3904
3895
|
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
3896
|
return (message2) => {
|
|
3920
|
-
remember(message2);
|
|
3921
3897
|
if (message2.type !== "system" || message2.subtype !== "background_tasks_changed")
|
|
3922
3898
|
return void 0;
|
|
3923
|
-
return message2.tasks.filter((task) => !task.ambient).map((task) =>
|
|
3899
|
+
return message2.tasks.filter((task) => !task.ambient).map((task) => TOOL_BY_TASK_TYPE[task.task_type] ?? task.task_type);
|
|
3924
3900
|
};
|
|
3925
3901
|
}
|
|
3926
3902
|
|
|
@@ -4191,6 +4167,7 @@ async function startSdkQuery(opts2, abort, control, turn, prompt) {
|
|
|
4191
4167
|
if (opts2.resumeId) awaitResume(label, messages, control);
|
|
4192
4168
|
control.bind({
|
|
4193
4169
|
send: turn.send,
|
|
4170
|
+
dequeue: turn.dequeue,
|
|
4194
4171
|
interrupt: () => turn.interrupt(async () => {
|
|
4195
4172
|
await messages.interrupt();
|
|
4196
4173
|
}),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decideToolOperations,
|
|
3
3
|
logPolicyDeny
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X2JAOVWA.js";
|
|
5
5
|
import "./chunk-CDU6M5IX.js";
|
|
6
6
|
import "./chunk-HKGCLAZ7.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-FVXUYW7R.js";
|
|
8
8
|
import "./chunk-VDXS55BC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-LWM73IG5.js";
|
|
10
10
|
import "./chunk-CUOHHT2F.js";
|
|
11
11
|
import {
|
|
12
12
|
currentExecutionIdentity
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Z3X5QNYY.js";
|
|
14
14
|
import "./chunk-ZMH7UZNP.js";
|
|
15
15
|
import "./chunk-FPWL4VRC.js";
|
|
16
16
|
import "./chunk-C5U44UI7.js";
|
|
@@ -26,7 +26,7 @@ import "./chunk-LMUTL44M.js";
|
|
|
26
26
|
import "./chunk-6NDXAN45.js";
|
|
27
27
|
import {
|
|
28
28
|
claudeAdapter
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YLARQOLU.js";
|
|
30
30
|
import "./chunk-MRUIXQXS.js";
|
|
31
31
|
import "./chunk-HO7RNI6V.js";
|
|
32
32
|
import "./chunk-DIAC4XYA.js";
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
findTruncatedReadDenyRaw,
|
|
6
6
|
isApprovedRead,
|
|
7
7
|
splitCompound
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FVXUYW7R.js";
|
|
9
9
|
import "./chunk-VDXS55BC.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-YLARQOLU.js";
|
|
11
11
|
import "./chunk-MRUIXQXS.js";
|
|
12
12
|
import "./chunk-HO7RNI6V.js";
|
|
13
13
|
import "./chunk-DIAC4XYA.js";
|