@staff0rd/assist 0.1149.0 → 0.1151.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 +167 -166
- package/dist/{add-XWJN42HG.js → add-AESVVBQN.js} +4 -4
- package/dist/{addActivity-IUDDS4FX.js → addActivity-JEDMNTYW.js} +6 -6
- package/dist/{addPhase-565F7KOZ.js → addPhase-J34XKHLO.js} +8 -8
- package/dist/{advise-TF3W2HBA.js → advise-WN2C66UJ.js} +5 -5
- package/dist/{ask-ESCDDQH5.js → ask-GXMVORX7.js} +4 -4
- package/dist/{askCheck-ZIF7BWBQ.js → askCheck-76WHHHNM.js} +20 -27
- package/dist/{askDesign-RYBRLSD3.js → askDesign-ZNZD3VXM.js} +7 -7
- package/dist/{askQuestion-BCPZSSJ4.js → askQuestion-MRI2ATSI.js} +5 -5
- package/dist/{associateGithub-VYQUEKWJ.js → associateGithub-ONWGQI42.js} +4 -4
- package/dist/{associateJira-EUNZOJJC.js → associateJira-AVUYIH27.js} +4 -4
- package/dist/{branch-R5SCN2UJ.js → branch-K2DGKPDR.js} +5 -5
- package/dist/built-version +1 -1
- package/dist/{chunk-RSLB4ODM.js → chunk-2KXKGM2Q.js} +1 -1
- package/dist/{chunk-XAKBHIPL.js → chunk-3J2AZSPZ.js} +9 -9
- package/dist/{chunk-OVV4XBBX.js → chunk-3JVE3EEO.js} +1 -1
- package/dist/{chunk-ZKVDVSCE.js → chunk-3NPVVAAT.js} +2 -2
- package/dist/{chunk-GOGGPW2L.js → chunk-3RPWEZV4.js} +1 -1
- package/dist/{chunk-U4DNTL25.js → chunk-4HZ4Z27M.js} +3 -3
- package/dist/{chunk-XMUQ5UBX.js → chunk-4NSAQ5E5.js} +1 -1
- package/dist/{chunk-4GMAYXOS.js → chunk-6YRKJTHT.js} +1 -1
- package/dist/{chunk-2DCOBBPI.js → chunk-ANS4AQDI.js} +1 -1
- package/dist/{chunk-PRYIRRAS.js → chunk-AOTNNZPH.js} +1 -1
- package/dist/{chunk-NTH3COMZ.js → chunk-AT33IHDZ.js} +2 -2
- package/dist/{chunk-72REFTYS.js → chunk-C3DOHRWO.js} +1 -1
- package/dist/{chunk-HICUMDUD.js → chunk-C4POAODE.js} +1 -1
- package/dist/{chunk-ZO7NYS25.js → chunk-C5U44UI7.js} +1 -1
- package/dist/{chunk-GSXHABVW.js → chunk-CD56HMTG.js} +21 -10
- package/dist/{chunk-2NLD36CE.js → chunk-CHAUXPIP.js} +3 -3
- package/dist/{chunk-6NXP34PE.js → chunk-CJLBH3DN.js} +1 -1
- package/dist/{chunk-3E7RVOMC.js → chunk-CWK7VXYA.js} +1 -1
- package/dist/{chunk-Y3DL3RF7.js → chunk-D2GLGK3G.js} +4 -4
- package/dist/{chunk-RPRL6G4R.js → chunk-DIQAEGJ5.js} +1 -1
- package/dist/{chunk-IEK6CQQH.js → chunk-ELF4PBZX.js} +2 -1
- package/dist/{chunk-VA4XAHSN.js → chunk-GKCAEW5J.js} +19 -19
- package/dist/{chunk-PDOQVVZA.js → chunk-GOVUTFGC.js} +1 -1
- package/dist/{chunk-ROCHUNJI.js → chunk-GP7S6QPQ.js} +1 -1
- package/dist/{chunk-LBPOEGTS.js → chunk-GRUNF3WW.js} +1 -1
- package/dist/{chunk-QAH6X3NA.js → chunk-GZ5E7OHF.js} +1 -1
- package/dist/{chunk-AWRPXWP2.js → chunk-GZEEGROK.js} +1 -1
- package/dist/{chunk-KNXHXMFT.js → chunk-H3UM6QRY.js} +1 -1
- package/dist/{chunk-YC3CIJQN.js → chunk-JVHDLRNZ.js} +1 -1
- package/dist/{chunk-ZSAYC4ER.js → chunk-KA2V6HLD.js} +1 -1
- package/dist/{chunk-ZFSD6ZJP.js → chunk-KSMPUXH5.js} +1 -1
- package/dist/{chunk-Y2KEHWBZ.js → chunk-LQFSYNUE.js} +1 -1
- package/dist/{chunk-YHJTRCUF.js → chunk-LZY4INWM.js} +1 -1
- package/dist/{chunk-M2PMZTIF.js → chunk-MOBXP7IB.js} +1 -1
- package/dist/{chunk-F2LP5MBV.js → chunk-N2U7GIMU.js} +1 -1
- package/dist/{chunk-W2HN7MC2.js → chunk-NFXJVC2Z.js} +2 -2
- package/dist/{chunk-7MYJWY37.js → chunk-NU3L3SM2.js} +2 -2
- package/dist/{chunk-OGKBGLQS.js → chunk-OA4EJYZY.js} +32 -11
- package/dist/{chunk-4TIDERIW.js → chunk-OD7CMDGZ.js} +1 -1
- package/dist/{chunk-Q7RUUXND.js → chunk-OFLEIPAR.js} +1 -1
- package/dist/{chunk-F5BFL4JK.js → chunk-OIEWOLWW.js} +3 -3
- package/dist/{chunk-YTIVOMM3.js → chunk-OLDFLYHV.js} +1 -1
- package/dist/chunk-OLE7XSNB.js +19 -0
- package/dist/{chunk-JRK7JDU4.js → chunk-OQGQBUBJ.js} +1 -1
- package/dist/{chunk-QRXRXE7D.js → chunk-OWWGKT6F.js} +1 -1
- package/dist/{chunk-TXVLR2EJ.js → chunk-PGJVFI4M.js} +1 -1
- package/dist/{chunk-ZWTRFLA6.js → chunk-PIMHGLG4.js} +1 -1
- package/dist/{chunk-SJBV4BIG.js → chunk-PMZ6A7XX.js} +1 -1
- package/dist/{chunk-3FSX26XC.js → chunk-PRYFYXI6.js} +1 -1
- package/dist/{chunk-X6ETCS7E.js → chunk-PYZUB3JT.js} +1 -1
- package/dist/{chunk-N3H6ECBZ.js → chunk-QOQ6LRUD.js} +3 -3
- package/dist/{chunk-Y4MBH7VW.js → chunk-S6TWGP2S.js} +1 -1
- package/dist/{chunk-3PI7FMYV.js → chunk-SBRGQVWS.js} +2 -2
- package/dist/{chunk-LKVISYMA.js → chunk-SXYX65J7.js} +2 -2
- package/dist/{chunk-VE26B5QP.js → chunk-SYTHN2X3.js} +1 -1
- package/dist/{chunk-TRPX44JR.js → chunk-TGVCPC2F.js} +2 -2
- package/dist/{chunk-EBVNAMYS.js → chunk-U2MFQ2H4.js} +4 -4
- package/dist/{chunk-NOHNPOQK.js → chunk-UVTZ4VFK.js} +1 -1
- package/dist/{chunk-L4NOD7SX.js → chunk-V4W6R2LK.js} +1 -1
- package/dist/{chunk-KN5ZETAR.js → chunk-VYFXF763.js} +1 -1
- package/dist/{chunk-PGQK356A.js → chunk-WP7S72JJ.js} +1 -1
- package/dist/{chunk-NYEGRDOK.js → chunk-WQF27PEJ.js} +2 -2
- package/dist/{chunk-UJAMN3ML.js → chunk-WTQRIUSK.js} +2 -2
- package/dist/{chunk-CXJJGUTK.js → chunk-XP2QVEEO.js} +1 -1
- package/dist/{chunk-6CK47ZGM.js → chunk-XYT5LCUW.js} +1 -1
- package/dist/{chunk-SDOEWLEE.js → chunk-YMYZBSS6.js} +1 -1
- package/dist/{chunk-ODWX74PC.js → chunk-YVCSXCBB.js} +5 -5
- package/dist/{chunk-TK4AJIJZ.js → chunk-ZCGRZJ6Y.js} +1 -1
- package/dist/{chunk-UGGH3MEX.js → chunk-ZH6HKQOY.js} +1 -1
- package/dist/{chunk-VRQ4WDF7.js → chunk-ZH7FLZPU.js} +1 -1
- package/dist/{chunk-ARU5TAGC.js → chunk-ZQQEBC6Y.js} +1 -1
- package/dist/{cliHook-VGJRLSI2.js → cliHook-NCHROJVU.js} +9 -9
- package/dist/{cliHookCheck-2I6MLAW2.js → cliHookCheck-2QH7HBCX.js} +4 -4
- package/dist/{closeSession-I2J2ICU4.js → closeSession-NNINWOID.js} +4 -4
- package/dist/{codeCommentSet-AI2N5ZT6.js → codeCommentSet-A6JUXBZD.js} +4 -4
- package/dist/{codexHook-NKKE3F2L.js → codexHook-GQJFH7AF.js} +14 -14
- package/dist/commands/extension/extension/content.js +30 -30
- package/dist/commands/extension/extension/docs.js +28 -28
- package/dist/commands/sessions/web/bundle.js +415 -415
- package/dist/{comment-R5MBHRIJ.js → comment-EXMBXH3T.js} +3 -3
- package/dist/{comment-SAOYKB2J.js → comment-NXF5C634.js} +5 -5
- package/dist/{commentIssue-PDIQVTZM.js → commentIssue-SZAB7TJQ.js} +4 -4
- package/dist/{comments-ABF3S3O5.js → comments-RCBCQYKH.js} +3 -3
- package/dist/{commit-QCHFHGCO.js → commit-VT7VJNAT.js} +5 -5
- package/dist/{createIssue-AIQ3U4LC.js → createIssue-FQQNJIWA.js} +3 -3
- package/dist/{daemonStatus-YXGIS55D.js → daemonStatus-GZKN2CYX.js} +5 -5
- package/dist/{del-NHH7NU3Y.js → del-NVWQX5OD.js} +3 -3
- package/dist/{deleteCommentCmd-SAG7WMDV.js → deleteCommentCmd-AUOGQD6L.js} +3 -3
- package/dist/{docsConfirm-FWDAMRZW.js → docsConfirm-OVUTMONK.js} +4 -4
- package/dist/{docsUnlock-FYMKS55Z.js → docsUnlock-YOHDLSPU.js} +7 -7
- package/dist/{doctorNodes-MJQZMXAG.js → doctorNodes-A4WV4O2N.js} +7 -7
- package/dist/{done-JWJURR7T.js → done-3PMUFG5E.js} +8 -8
- package/dist/{drainDaemon-LCQQ3EP4.js → drainDaemon-T2X2H2Z5.js} +2 -2
- package/dist/{edit-CFPOK62A.js → edit-MRTB2VJQ.js} +3 -3
- package/dist/{editHook-FC53RLQC.js → editHook-4I4O24OG.js} +9 -9
- package/dist/{editIssue-C2G7D3VJ.js → editIssue-WICT2PNQ.js} +3 -3
- package/dist/{editIssueComment-5SIYQKI6.js → editIssueComment-OJZXFL5P.js} +4 -4
- package/dist/{fixConflict-EYLGDMB7.js → fixConflict-KE72MGGP.js} +7 -7
- package/dist/{harnessFollowUps-GZP2FYFR.js → harnessFollowUps-JC2ZUX4L.js} +3 -3
- package/dist/index.js +103 -103
- package/dist/{launchMode-VOBL4DYU.js → launchMode-G5GQI6RH.js} +19 -19
- package/dist/{link-JDJBEJCL.js → link-5CWACWHB.js} +3 -3
- package/dist/{linkNode-IZ7TMIBN.js → linkNode-6BLVHLT4.js} +5 -5
- package/dist/{list-DZI4AJDI.js → list-SFYLZAWU.js} +9 -9
- package/dist/{listNodes-HNKK3LEQ.js → listNodes-E2VHV6V6.js} +4 -4
- package/dist/{movePhase-AK3F6A6P.js → movePhase-4D2WZ5K6.js} +3 -3
- package/dist/{moveRepo-P7LPCWIL.js → moveRepo-I3QC6UFW.js} +3 -3
- package/dist/{newCli-2HD56JUI.js → newCli-BLQL26SN.js} +3 -3
- package/dist/{next-N4B5GJIW.js → next-6K6G7FPY.js} +18 -18
- package/dist/{nodeLogs-NNLS5TNI.js → nodeLogs-VMIZ5CXR.js} +1 -1
- package/dist/{phaseDone-FBAQDO3S.js → phaseDone-IDSQF65B.js} +3 -3
- package/dist/{piHook-WQCNKOET.js → piHook-VW54NTXW.js} +9 -9
- package/dist/{plan-GBSJWMXP.js → plan-IQCMHN77.js} +3 -3
- package/dist/{postSlackMessage-SJQGYGJQ.js → postSlackMessage-EOGHWXM5.js} +4 -4
- package/dist/{propose-LYUPJI3S.js → propose-2QLI6LNH.js} +12 -12
- package/dist/{raise-OBGNVBLZ.js → raise-UADRWTZE.js} +7 -7
- package/dist/{refine-Z35RA6V2.js → refine-2TN2MGBJ.js} +21 -21
- package/dist/{refreshDocs-A5S2NQ5Z.js → refreshDocs-7JNTMR46.js} +4 -4
- package/dist/{removePhase-S4WFO6PT.js → removePhase-BUCY4ROU.js} +4 -4
- package/dist/{renameSession-IQ6RHQUJ.js → renameSession-MVBJ4R7W.js} +4 -4
- package/dist/{reply-4VV4LEYF.js → reply-UTOBFFKP.js} +4 -4
- package/dist/restartDaemon-JZRU364H.js +11 -0
- package/dist/{restartNode-K55QKVHE.js → restartNode-7747LAX4.js} +10 -10
- package/dist/{review-D2RDX52O.js → review-YJZVECC6.js} +16 -16
- package/dist/{reviewPrComments-G7AMAMFC.js → reviewPrComments-2K5ZASCB.js} +7 -7
- package/dist/{rewindPhase-XN7YOWRA.js → rewindPhase-ESQ5E74W.js} +12 -12
- package/dist/{run-ULEKHZB2.js → run-NUMXNCH5.js} +16 -16
- package/dist/{run-KTKO7CCD.js → run-XK5D6Q5L.js} +16 -16
- package/dist/{runDaemon-GYIMLUGL.js → runDaemon-ZQ7BPPBN.js} +109 -32
- package/dist/{runExtract-IUEUT2IK.js → runExtract-CTLWMXRG.js} +3 -3
- package/dist/{runRefine-OV3VCQHC.js → runRefine-IPBZEQAF.js} +21 -21
- package/dist/{runScope-LCAGTKGG.js → runScope-H3J75ZMO.js} +3 -3
- package/dist/{scan-WYS544B7.js → scan-QLPUZAJB.js} +4 -4
- package/dist/{schemaConfirm-SLHW4EIV.js → schemaConfirm-FH6DHU5D.js} +7 -7
- package/dist/{schemaUnlock-365ORD3L.js → schemaUnlock-RVWEQGBX.js} +9 -9
- package/dist/{search-TJSKMOO4.js → search-6IJI74JX.js} +9 -9
- package/dist/{sessionOutput-NXHUXIKC.js → sessionOutput-PWY5X3MH.js} +2 -2
- package/dist/setSessionStatus-6VLIC3AD.js +12 -0
- package/dist/{setStatusCommand-WBRJ4BTB.js → setStatusCommand-54E3IJ72.js} +3 -3
- package/dist/{show-53I2FMRF.js → show-3BYF2XTK.js} +7 -7
- package/dist/{show-ZXFLSRFT.js → show-N4PRGXZV.js} +5 -5
- package/dist/{signExtension-NYXORPSK.js → signExtension-J4OEQ55N.js} +1 -1
- package/dist/{slack-74LWSKRK.js → slack-HQPEBAAX.js} +4 -4
- package/dist/{star-2GG4JB3K.js → star-UKT6KZF7.js} +4 -4
- package/dist/{start-BUUHD4ZQ.js → start-C3V6DREE.js} +3 -3
- package/dist/{statusLine-Z74KVADW.js → statusLine-Z2PVDWVE.js} +3 -3
- package/dist/{stop-HG3UZOI6.js → stop-3XVTF677.js} +3 -3
- package/dist/stopDaemon-BR4QLQMF.js +8 -0
- package/dist/{unlink-TLLWWJIG.js → unlink-WKYRZH76.js} +3 -3
- package/dist/{unlinkNode-O7IZD5BN.js → unlinkNode-OK6M6RHF.js} +5 -5
- package/dist/{unstar-EEKVLJQI.js → unstar-FBZF3RJQ.js} +4 -4
- package/dist/{update-E72CS3ZO.js → update-64YJ4HRY.js} +3 -3
- package/dist/{update-HSXQZ2EI.js → update-Z73FZ4ZB.js} +4 -4
- package/dist/{updateNode-7FW22277.js → updateNode-ECV2WNLI.js} +11 -11
- package/dist/{updatePhase-USTBTRW4.js → updatePhase-QNEA4YU2.js} +4 -4
- package/dist/{updatePlan-WXNHCHKB.js → updatePlan-UYKO2LUV.js} +11 -11
- package/dist/{web-KWALIFVL.js → web-CBUMKQK3.js} +32 -32
- package/dist/{web-STE3MYGK.js → web-LP6LWDBQ.js} +32 -32
- package/dist/{wontdo-KOV5YLR6.js → wontdo-NIR44VPG.js} +3 -3
- package/dist/{wontfix-UZTOERNG.js → wontfix-FIYGOSWH.js} +4 -4
- package/package.json +1 -1
- package/dist/restartDaemon-7M36R7G4.js +0 -11
- package/dist/setSessionStatus-HPHBUHVB.js +0 -12
- package/dist/stopDaemon-XIYQ6SAW.js +0 -8
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
harnessAdapter,
|
|
6
6
|
parseRolloutEntry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OA4EJYZY.js";
|
|
8
8
|
import {
|
|
9
9
|
harnesses
|
|
10
10
|
} from "./chunk-XDIVXGPQ.js";
|
|
@@ -41,19 +41,30 @@ async function locateConversation(conversationId) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
// src/commands/sessions/shared/transcriptMessages.ts
|
|
44
|
-
function
|
|
44
|
+
function toMessages(event) {
|
|
45
|
+
if (event.kind === "message") return [{ role: event.role, text: event.text }];
|
|
46
|
+
if (event.kind === "tool")
|
|
47
|
+
return [{ role: "tool", tool: event.tool, target: event.target }];
|
|
48
|
+
if (event.kind === "interrupt") return [{ role: "interrupt" }];
|
|
49
|
+
return [];
|
|
50
|
+
}
|
|
51
|
+
function echoMessages(pending, until) {
|
|
52
|
+
const due = [];
|
|
53
|
+
while (pending.length && (until === void 0 || pending[0].at < until))
|
|
54
|
+
due.push({ role: "user", text: pending.shift().text });
|
|
55
|
+
return due;
|
|
56
|
+
}
|
|
57
|
+
function transcriptMessages(reader, lines, echoes = []) {
|
|
45
58
|
const entries = lines.flatMap((line) => {
|
|
46
59
|
const entry = line.trim() ? parseRolloutEntry(line) : null;
|
|
47
60
|
return entry ? [entry] : [];
|
|
48
61
|
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return [];
|
|
56
|
-
});
|
|
62
|
+
const pending = [...echoes].sort((a, b) => a.at.localeCompare(b.at));
|
|
63
|
+
const messages = reader.events(entries).flatMap((event) => [
|
|
64
|
+
...event.at ? echoMessages(pending, event.at) : [],
|
|
65
|
+
...toMessages(event)
|
|
66
|
+
]);
|
|
67
|
+
return [...messages, ...echoMessages(pending)];
|
|
57
68
|
}
|
|
58
69
|
|
|
59
70
|
export {
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-YS3HSXSJ.js";
|
|
4
4
|
import {
|
|
5
5
|
requestAssistSession
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JVHDLRNZ.js";
|
|
7
7
|
import {
|
|
8
8
|
REVIEW_PHASE_NAME
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KSMPUXH5.js";
|
|
10
10
|
import {
|
|
11
11
|
serializeManualChecks
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PYZUB3JT.js";
|
|
13
13
|
import {
|
|
14
14
|
formatItemId
|
|
15
15
|
} from "./chunk-N65VOEFI.js";
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./chunk-SB4BG7PH.js";
|
|
4
4
|
import {
|
|
5
5
|
run
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3J2AZSPZ.js";
|
|
7
7
|
import {
|
|
8
8
|
isLockedByOther
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XYT5LCUW.js";
|
|
10
10
|
import {
|
|
11
11
|
isBlocked,
|
|
12
12
|
typeLabel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3JVE3EEO.js";
|
|
14
14
|
import {
|
|
15
15
|
loadBacklog
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PYZUB3JT.js";
|
|
17
17
|
import {
|
|
18
18
|
formatItemId
|
|
19
19
|
} from "./chunk-N65VOEFI.js";
|
|
@@ -15,7 +15,8 @@ var daemonPaths = {
|
|
|
15
15
|
spawnLock: join(DAEMON_DIR, "spawn.lock"),
|
|
16
16
|
hooksSettings: join(DAEMON_DIR, "hooks-settings.json"),
|
|
17
17
|
viewerSize: join(DAEMON_DIR, "viewer-size.json"),
|
|
18
|
-
promptJournal: join(DAEMON_DIR, "prompt-journal.jsonl")
|
|
18
|
+
promptJournal: join(DAEMON_DIR, "prompt-journal.jsonl"),
|
|
19
|
+
transcriptEchoes: join(DAEMON_DIR, "transcript-echoes")
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveLinkTarget,
|
|
12
12
|
usageWindowKey,
|
|
13
13
|
watcherLogPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TGVCPC2F.js";
|
|
15
15
|
import {
|
|
16
16
|
readLogTail
|
|
17
17
|
} from "./chunk-JNCFHWBK.js";
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
readLinks,
|
|
24
24
|
reloadDaemonLinks,
|
|
25
25
|
writeLinks
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3NPVVAAT.js";
|
|
27
27
|
import {
|
|
28
28
|
firstBrokenHop
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NU3L3SM2.js";
|
|
30
30
|
import {
|
|
31
31
|
TRACE_HEADER,
|
|
32
32
|
newTraceId
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
ASSIST_VERSION,
|
|
36
36
|
PROTOCOL_VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-4NSAQ5E5.js";
|
|
38
38
|
import {
|
|
39
39
|
queryNodes
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-OD7CMDGZ.js";
|
|
41
41
|
import {
|
|
42
42
|
describePeerError,
|
|
43
43
|
fetchPeerJson
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-UJBW7FVI.js";
|
|
80
80
|
import {
|
|
81
81
|
targetConversationEvents
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-NFXJVC2Z.js";
|
|
83
83
|
import {
|
|
84
84
|
configEntryLayers,
|
|
85
85
|
ghFailure,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
} from "./chunk-W5FPQALS.js";
|
|
95
95
|
import {
|
|
96
96
|
requestPromptSession
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-WP7S72JJ.js";
|
|
98
98
|
import {
|
|
99
99
|
attachmentContentType,
|
|
100
100
|
stageAttachment
|
|
@@ -212,14 +212,14 @@ import {
|
|
|
212
212
|
} from "./chunk-6H4DP3ZG.js";
|
|
213
213
|
import {
|
|
214
214
|
requestDocsRefresh
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-AOTNNZPH.js";
|
|
216
216
|
import {
|
|
217
217
|
rewindItemToPhase
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-AT33IHDZ.js";
|
|
219
219
|
import {
|
|
220
220
|
loadBacklogSummaries,
|
|
221
221
|
searchBacklogSummaries
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-N2U7GIMU.js";
|
|
223
223
|
import {
|
|
224
224
|
loadItemSummaries,
|
|
225
225
|
phaseUsageTotals,
|
|
@@ -227,13 +227,13 @@ import {
|
|
|
227
227
|
} from "./chunk-BV2V6RTH.js";
|
|
228
228
|
import {
|
|
229
229
|
requestAssistSession
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-JVHDLRNZ.js";
|
|
231
231
|
import {
|
|
232
232
|
originDisplayLabels
|
|
233
233
|
} from "./chunk-IIFOAUOM.js";
|
|
234
234
|
import {
|
|
235
235
|
createItemWithDefaults
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-ZCGRZJ6Y.js";
|
|
237
237
|
import {
|
|
238
238
|
getPreferredRemoteRepo
|
|
239
239
|
} from "./chunk-DISNKALJ.js";
|
|
@@ -242,14 +242,14 @@ import {
|
|
|
242
242
|
} from "./chunk-IZBQH3LW.js";
|
|
243
243
|
import {
|
|
244
244
|
resolveRewindPlan
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-SXYX65J7.js";
|
|
246
246
|
import {
|
|
247
247
|
deleteItem,
|
|
248
248
|
getOrigin,
|
|
249
249
|
getReady,
|
|
250
250
|
loadDocsRefreshState,
|
|
251
251
|
updateStatus
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-PYZUB3JT.js";
|
|
253
253
|
import {
|
|
254
254
|
loadItem
|
|
255
255
|
} from "./chunk-U732RAGX.js";
|
|
@@ -262,7 +262,7 @@ import {
|
|
|
262
262
|
} from "./chunk-N65VOEFI.js";
|
|
263
263
|
import {
|
|
264
264
|
requestDaemonReply
|
|
265
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-OFLEIPAR.js";
|
|
266
266
|
import {
|
|
267
267
|
backups,
|
|
268
268
|
getDb,
|
|
@@ -291,7 +291,7 @@ import {
|
|
|
291
291
|
discoverSessionJsonlPaths,
|
|
292
292
|
harnessAdapter,
|
|
293
293
|
parseSessionFile
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-OA4EJYZY.js";
|
|
295
295
|
import {
|
|
296
296
|
harnessLabel
|
|
297
297
|
} from "./chunk-AWIOBY7Q.js";
|
|
@@ -349,7 +349,7 @@ import {
|
|
|
349
349
|
import {
|
|
350
350
|
ensureDaemonRunning,
|
|
351
351
|
restartDaemon
|
|
352
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-4HZ4Z27M.js";
|
|
353
353
|
import {
|
|
354
354
|
waitForBuild
|
|
355
355
|
} from "./chunk-4CP23TT2.js";
|
|
@@ -360,10 +360,10 @@ import {
|
|
|
360
360
|
import {
|
|
361
361
|
connectToDaemon,
|
|
362
362
|
isDaemonRunning
|
|
363
|
-
} from "./chunk-
|
|
363
|
+
} from "./chunk-ZH6HKQOY.js";
|
|
364
364
|
import {
|
|
365
365
|
daemonPaths
|
|
366
|
-
} from "./chunk-
|
|
366
|
+
} from "./chunk-ELF4PBZX.js";
|
|
367
367
|
|
|
368
368
|
// src/commands/sessions/web.ts
|
|
369
369
|
import chalk5 from "chalk";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lookupConversation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C4POAODE.js";
|
|
4
4
|
import {
|
|
5
5
|
harnessAdapter,
|
|
6
6
|
readTranscriptTail
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OA4EJYZY.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
|
buildDoctorProbes,
|
|
3
3
|
diagnoseLink
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PGJVFI4M.js";
|
|
5
5
|
import {
|
|
6
6
|
queryNodes
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OD7CMDGZ.js";
|
|
8
8
|
import {
|
|
9
9
|
findLinkSpec
|
|
10
10
|
} from "./chunk-HHKS3UZB.js";
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
} from "./chunk-KGFZYUE2.js";
|
|
35
35
|
import {
|
|
36
36
|
connectToDaemon
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZH6HKQOY.js";
|
|
38
38
|
import {
|
|
39
39
|
daemonPaths
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ELF4PBZX.js";
|
|
41
41
|
import {
|
|
42
42
|
promptConfirm
|
|
43
43
|
} from "./chunk-6DGPQ67E.js";
|
|
@@ -3529,14 +3529,27 @@ function createSdkMessageQueue(label, control, push) {
|
|
|
3529
3529
|
}
|
|
3530
3530
|
|
|
3531
3531
|
// src/commands/sessions/daemon/sdk/createSdkTurnEmitter.ts
|
|
3532
|
+
var ELAPSED_RESYNC_SECONDS = 10;
|
|
3532
3533
|
function createSdkTurnEmitter(label, control) {
|
|
3533
3534
|
let status;
|
|
3534
3535
|
let activity = null;
|
|
3536
|
+
let elapsed = null;
|
|
3537
|
+
const setElapsed = (next) => {
|
|
3538
|
+
elapsed = next;
|
|
3539
|
+
control.emit({ kind: "elapsed", seconds: next });
|
|
3540
|
+
};
|
|
3535
3541
|
return {
|
|
3536
3542
|
activity: (next) => {
|
|
3537
3543
|
if (next === activity) return;
|
|
3538
3544
|
activity = next;
|
|
3539
3545
|
control.emit({ kind: "activity", text: next });
|
|
3546
|
+
if (elapsed !== null) setElapsed(null);
|
|
3547
|
+
},
|
|
3548
|
+
elapsed: (seconds) => {
|
|
3549
|
+
const next = Math.floor(seconds);
|
|
3550
|
+
if (elapsed !== null && next >= elapsed && next - elapsed < ELAPSED_RESYNC_SECONDS)
|
|
3551
|
+
return;
|
|
3552
|
+
setElapsed(next);
|
|
3540
3553
|
},
|
|
3541
3554
|
status: (next) => {
|
|
3542
3555
|
if (next === status) return;
|
|
@@ -3568,6 +3581,7 @@ function createSdkTurnTracker(label, control, push) {
|
|
|
3568
3581
|
};
|
|
3569
3582
|
return {
|
|
3570
3583
|
setActivity: emit.activity,
|
|
3584
|
+
setElapsed: emit.elapsed,
|
|
3571
3585
|
setStatus,
|
|
3572
3586
|
start: (prompt) => {
|
|
3573
3587
|
busy = true;
|
|
@@ -3758,6 +3772,16 @@ function logSdkMessage(label, message2) {
|
|
|
3758
3772
|
daemonLog(`${label} sdk turn ended: ${message2.subtype}`);
|
|
3759
3773
|
}
|
|
3760
3774
|
|
|
3775
|
+
// src/commands/sessions/daemon/sdk/sdkTurnStatus.ts
|
|
3776
|
+
function sdkTurnStatus(message2) {
|
|
3777
|
+
if (message2.type === "assistant" && message2.parent_tool_use_id === null)
|
|
3778
|
+
return "running";
|
|
3779
|
+
if (message2.type === "result") return "waiting";
|
|
3780
|
+
if (message2.type === "system" && message2.subtype === "session_state_changed")
|
|
3781
|
+
return message2.state === "running" ? "running" : "waiting";
|
|
3782
|
+
return void 0;
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3761
3785
|
// src/commands/sessions/daemon/sdk/sdkActivityText.ts
|
|
3762
3786
|
var TARGET_KEYS = [
|
|
3763
3787
|
"description",
|
|
@@ -3785,14 +3809,12 @@ function sdkActivityText(content) {
|
|
|
3785
3809
|
return `Working \xB7 ${tool.name}${target ? ` ${target}` : ""}`;
|
|
3786
3810
|
}
|
|
3787
3811
|
|
|
3788
|
-
// src/commands/sessions/daemon/sdk/
|
|
3789
|
-
function
|
|
3812
|
+
// src/commands/sessions/daemon/sdk/trackSdkTurnProgress.ts
|
|
3813
|
+
function trackSdkTurnProgress(message2, turn) {
|
|
3790
3814
|
if (message2.type === "assistant" && message2.parent_tool_use_id === null)
|
|
3791
|
-
|
|
3792
|
-
if (message2.type === "
|
|
3793
|
-
|
|
3794
|
-
return message2.state === "running" ? "running" : "waiting";
|
|
3795
|
-
return void 0;
|
|
3815
|
+
turn.setActivity(sdkActivityText(message2.message.content));
|
|
3816
|
+
if (message2.type === "tool_progress" && message2.parent_tool_use_id === null)
|
|
3817
|
+
turn.setElapsed(message2.elapsed_time_seconds);
|
|
3796
3818
|
}
|
|
3797
3819
|
|
|
3798
3820
|
// src/commands/sessions/daemon/sdk/runSdkQuery.ts
|
|
@@ -3811,8 +3833,7 @@ async function runSdkQuery(messages, sessionId, control, turn) {
|
|
|
3811
3833
|
if (status) turn.setStatus(status);
|
|
3812
3834
|
const background = sdkBackgroundTasks(message2);
|
|
3813
3835
|
if (background) control.emit({ kind: "background", tasks: background });
|
|
3814
|
-
|
|
3815
|
-
turn.setActivity(sdkActivityText(message2.message.content));
|
|
3836
|
+
trackSdkTurnProgress(message2, turn);
|
|
3816
3837
|
}
|
|
3817
3838
|
daemonLog(`${label} sdk query finished`);
|
|
3818
3839
|
control.exit(0);
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isApprovedRead,
|
|
14
14
|
resolvePermission,
|
|
15
15
|
splitCompound
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GZEEGROK.js";
|
|
17
17
|
import {
|
|
18
18
|
DOCS_LOCK_REASON,
|
|
19
19
|
SCHEMA_LOCK_REASON,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
isSchemaPath,
|
|
24
24
|
isSchemaRelativePath,
|
|
25
25
|
mentionsDocsPath
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VYFXF763.js";
|
|
27
27
|
import {
|
|
28
28
|
isLiveDaemonSession
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-C5U44UI7.js";
|
|
30
30
|
import {
|
|
31
31
|
askQuestionEnabled
|
|
32
32
|
} from "./chunk-IBPSXDUB.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/commands/sessions/shared/askCheckInputSchema.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var text = z.string().trim().min(1);
|
|
4
|
+
var askCheckInputSchema = z.object({
|
|
5
|
+
title: text,
|
|
6
|
+
steps: z.array(text).min(1, "Give at least 1 step"),
|
|
7
|
+
before: z.array(text).optional(),
|
|
8
|
+
changed: text.optional()
|
|
9
|
+
});
|
|
10
|
+
var CHECK_RESULT_KEY = "result";
|
|
11
|
+
var CHECK_NOTE_KEY = "note";
|
|
12
|
+
var CHECK_PHASE_KEY = "phase";
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
askCheckInputSchema,
|
|
16
|
+
CHECK_RESULT_KEY,
|
|
17
|
+
CHECK_NOTE_KEY,
|
|
18
|
+
CHECK_PHASE_KEY
|
|
19
|
+
};
|