@staff0rd/assist 0.1175.0 → 0.1176.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 +73 -73
- package/dist/{addActivity-NWTRVNKH.js → addActivity-HMULWVAE.js} +2 -2
- package/dist/{addPhase-G5EG7ZK6.js → addPhase-GDFLFVAW.js} +3 -3
- package/dist/{advise-PVNZVLR7.js → advise-PTDTTAJM.js} +3 -3
- package/dist/{askCheck-ZVTYBEPS.js → askCheck-MZ5TZQIL.js} +7 -7
- package/dist/{askDesign-4RESVU2L.js → askDesign-3GDEDLOS.js} +1 -1
- package/dist/{branch-HKHWU2S6.js → branch-FEGHBGSM.js} +3 -3
- package/dist/built-version +1 -1
- package/dist/{chunk-X3D4CT73.js → chunk-3OPLEVRF.js} +1 -1
- package/dist/{chunk-SUJMA3DD.js → chunk-4QU25WPX.js} +1 -1
- package/dist/{chunk-L72EGILC.js → chunk-7HOOPQCG.js} +1 -1
- package/dist/{chunk-SXTFTMHK.js → chunk-7IAGWBEG.js} +7 -7
- package/dist/{chunk-TWJDCFZM.js → chunk-7WQ6XW6H.js} +1 -1
- package/dist/{chunk-JMMOZUVK.js → chunk-CE3IBI6J.js} +2 -2
- package/dist/{chunk-GVX646X2.js → chunk-DRWK3DK7.js} +1 -1
- package/dist/{chunk-ADJ3Q4RH.js → chunk-EWLY7COZ.js} +3 -2
- package/dist/{chunk-DMB7RGU7.js → chunk-EWMLTEQ6.js} +1 -1
- package/dist/{chunk-3BVMXUY4.js → chunk-EZRENPTJ.js} +2 -2
- package/dist/{chunk-2FSQXBCG.js → chunk-FZZRFRDB.js} +1 -1
- package/dist/{chunk-DDWYTTFX.js → chunk-GY2735TY.js} +4 -4
- package/dist/{chunk-IGZ5CRPP.js → chunk-ICVMDDIK.js} +6 -6
- package/dist/{chunk-MBSD3YGQ.js → chunk-J6IDOIVY.js} +1 -1
- package/dist/{chunk-IOM7FJRQ.js → chunk-JENJLKHU.js} +1 -1
- package/dist/{chunk-KV57M7Q3.js → chunk-KOHPFCX6.js} +1 -1
- package/dist/{chunk-XAMDD7R3.js → chunk-KYMDHDXC.js} +1 -1
- package/dist/{chunk-L5XZVWY3.js → chunk-MSWG2GGI.js} +1 -1
- package/dist/{chunk-RTABVQ2S.js → chunk-MT76WK6E.js} +1 -1
- package/dist/{chunk-HNGM2PW7.js → chunk-MTN37C4V.js} +1 -1
- package/dist/{chunk-ERQGSXE7.js → chunk-MVFHRTPB.js} +1 -1
- package/dist/{chunk-OY2M2IQS.js → chunk-PA3Z7HIH.js} +1 -1
- package/dist/{chunk-DICN3QBF.js → chunk-QUA3MKDI.js} +1 -1
- package/dist/{chunk-WXSIMLPC.js → chunk-QWFK7Y2O.js} +1 -1
- package/dist/{chunk-GONZY4LA.js → chunk-R7PLAKNF.js} +1 -1
- package/dist/{chunk-5DGFQ6O7.js → chunk-RGMAUOOR.js} +1 -1
- package/dist/{chunk-ZEFQZUCV.js → chunk-RHE5G4R7.js} +3 -3
- package/dist/{chunk-LAV2EKBC.js → chunk-RILCJ3PN.js} +1 -1
- package/dist/{chunk-VLASUAI7.js → chunk-SENG2BJD.js} +1 -1
- package/dist/{chunk-2SAFVKKU.js → chunk-SGYCDSBF.js} +1 -1
- package/dist/{chunk-BFGCXKYE.js → chunk-TWHFLOJS.js} +2 -2
- package/dist/{chunk-U4XIE5QM.js → chunk-V2UWYFAM.js} +2 -2
- package/dist/{chunk-RX74XPGI.js → chunk-WXVVO4LF.js} +1 -1
- package/dist/{chunk-EJLJVYH2.js → chunk-YPPA5Z3U.js} +44 -18
- package/dist/{cliHook-JRK3YNZA.js → cliHook-7XUKUZMI.js} +5 -5
- package/dist/{cliHookCheck-3VRQZCYU.js → cliHookCheck-IBH5EDWF.js} +2 -2
- package/dist/{codexHook-WXMFGVSC.js → codexHook-XZCX2IML.js} +7 -7
- package/dist/commands/sessions/web/bundle.js +394 -394
- package/dist/{commit-SHZMM5US.js → commit-DVBBSH6B.js} +3 -3
- package/dist/{doctorNodes-ZBMR6JZJ.js → doctorNodes-CXISKNGM.js} +3 -3
- package/dist/{done-K5SSHQKQ.js → done-3UYUB6T4.js} +4 -4
- package/dist/{editHook-HQTD6FEH.js → editHook-DWCUXU4G.js} +5 -5
- package/dist/{fixConflict-KQ44PAGZ.js → fixConflict-6SCGNOHF.js} +2 -2
- package/dist/index.js +46 -46
- package/dist/{launchMode-54MHIADR.js → launchMode-MLGYLVZG.js} +13 -13
- package/dist/{list-GKIA4IWY.js → list-TP35UEF4.js} +5 -5
- package/dist/{next-2OGSSKLB.js → next-OISQZZ4J.js} +12 -12
- package/dist/{piHook-UFVXNS5W.js → piHook-RGPHKBJR.js} +5 -5
- package/dist/{propose-E6ET3N2J.js → propose-P4FKRBJG.js} +4 -4
- package/dist/{refine-GXG2F46U.js → refine-Q2KCM2VH.js} +14 -14
- package/dist/{restartNode-GXCO6553.js → restartNode-ZRORHTS4.js} +5 -5
- package/dist/{review-L6ITMPTF.js → review-BSVYVLJU.js} +2 -2
- package/dist/{reviewPrComments-UOJKDYVC.js → reviewPrComments-TNFVZID4.js} +2 -2
- package/dist/{rewindPhase-JYPUNK2U.js → rewindPhase-D2W6JK2M.js} +8 -8
- package/dist/{run-7CCUT5QS.js → run-WMDSFFZX.js} +10 -10
- package/dist/{run-3A7B4IUD.js → run-Y42G36KG.js} +10 -10
- package/dist/{runDaemon-S24CAEJT.js → runDaemon-OUVMWOZ4.js} +13 -13
- package/dist/{runRefine-FGW2K5DG.js → runRefine-SO4LXPEG.js} +14 -14
- package/dist/{scan-BSSVWLNL.js → scan-WHCF7SGN.js} +2 -2
- package/dist/{schemaConfirm-X7AB4N4H.js → schemaConfirm-F3KHOXQK.js} +2 -2
- package/dist/{schemaUnlock-KBZNSEZK.js → schemaUnlock-XZZXKAYM.js} +2 -2
- package/dist/{search-7E65RJVZ.js → search-XSLH3HO4.js} +5 -5
- package/dist/{show-DK7F3LKS.js → show-CISZ7PE7.js} +3 -3
- package/dist/{show-6UIZEASF.js → show-Z4ECMAUB.js} +3 -3
- package/dist/{signExtension-WKEPLUXI.js → signExtension-UZQEIYK6.js} +1 -1
- package/dist/{updateNode-WONWZUEO.js → updateNode-6SGAI3J2.js} +5 -5
- package/dist/{updatePlan-RVU4VPNA.js → updatePlan-YEAFHGHN.js} +4 -4
- package/dist/{web-SBNSE6YQ.js → web-BENPC2SK.js} +16 -16
- package/dist/{web-EW4C4PF3.js → web-FTLFSZKP.js} +16 -16
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveLinkTarget,
|
|
14
14
|
usageWindowKey,
|
|
15
15
|
watcherLogPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-J6IDOIVY.js";
|
|
17
17
|
import {
|
|
18
18
|
readNodeRuntimeReport
|
|
19
19
|
} from "./chunk-SURCYYQ6.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-GZ7EEHJH.js";
|
|
32
32
|
import {
|
|
33
33
|
firstBrokenHop
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QWFK7Y2O.js";
|
|
35
35
|
import {
|
|
36
36
|
TRACE_HEADER,
|
|
37
37
|
newTraceId
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
ASSIST_VERSION,
|
|
41
41
|
PROTOCOL_VERSION
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-SENG2BJD.js";
|
|
43
43
|
import {
|
|
44
44
|
queryNodes
|
|
45
45
|
} from "./chunk-B7VOTF5Q.js";
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
} from "./chunk-UJBW7FVI.js";
|
|
85
85
|
import {
|
|
86
86
|
targetConversationEvents
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-CE3IBI6J.js";
|
|
88
88
|
import {
|
|
89
89
|
configEntryLayers,
|
|
90
90
|
ghFailure,
|
|
@@ -241,7 +241,7 @@ import {
|
|
|
241
241
|
} from "./chunk-C2SYKKB5.js";
|
|
242
242
|
import {
|
|
243
243
|
rewindItemToPhase
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-KOHPFCX6.js";
|
|
245
245
|
import {
|
|
246
246
|
loadBacklogSummaries,
|
|
247
247
|
searchBacklogSummaries
|
|
@@ -268,7 +268,7 @@ import {
|
|
|
268
268
|
} from "./chunk-OVT3MIV3.js";
|
|
269
269
|
import {
|
|
270
270
|
resolveRewindPlan
|
|
271
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-EZRENPTJ.js";
|
|
272
272
|
import {
|
|
273
273
|
deleteItem,
|
|
274
274
|
getOrigin,
|
|
@@ -317,7 +317,7 @@ import {
|
|
|
317
317
|
discoverSessionJsonlPaths,
|
|
318
318
|
harnessAdapter,
|
|
319
319
|
parseSessionFile
|
|
320
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-YPPA5Z3U.js";
|
|
321
321
|
import {
|
|
322
322
|
harnessLabel
|
|
323
323
|
} from "./chunk-DUNO7WBT.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lookupConversation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FZZRFRDB.js";
|
|
4
4
|
import {
|
|
5
5
|
harnessAdapter,
|
|
6
6
|
readTranscriptTail
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YPPA5Z3U.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/sessions/shared/targetConversationEvents.ts
|
|
10
10
|
async function targetConversationEvents(cwd, target) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
harnessAdapter,
|
|
6
6
|
parseRolloutEntry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YPPA5Z3U.js";
|
|
8
8
|
import {
|
|
9
9
|
harnesses
|
|
10
10
|
} from "./chunk-XDIVXGPQ.js";
|
|
@@ -51,7 +51,8 @@ function eventTranscriptMessages(event) {
|
|
|
51
51
|
target: event.target,
|
|
52
52
|
...event.description && { description: event.description },
|
|
53
53
|
...event.label && { label: event.label },
|
|
54
|
-
...event.fields && { fields: event.fields }
|
|
54
|
+
...event.fields && { fields: event.fields },
|
|
55
|
+
...event.resultUrl && { resultUrl: event.resultUrl }
|
|
55
56
|
}
|
|
56
57
|
];
|
|
57
58
|
if (event.kind === "shell") {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveReviewPhase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MSWG2GGI.js";
|
|
4
4
|
import {
|
|
5
5
|
resolvePlan
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KYMDHDXC.js";
|
|
7
7
|
|
|
8
8
|
// src/commands/backlog/resolveRewindPlan.ts
|
|
9
9
|
function resolveRewindPlan(item) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RHE5G4R7.js";
|
|
4
4
|
import {
|
|
5
5
|
pullIfConfigured
|
|
6
6
|
} from "./chunk-U5LCESHQ.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
run,
|
|
11
11
|
stopWatching,
|
|
12
12
|
watchForMarker
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ICVMDDIK.js";
|
|
14
14
|
import {
|
|
15
15
|
resumeNudge
|
|
16
16
|
} from "./chunk-7NZOH4LN.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-NWNODYLQ.js";
|
|
30
30
|
import {
|
|
31
31
|
isBlocked
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RGMAUOOR.js";
|
|
33
33
|
import {
|
|
34
34
|
loadItemSummaries
|
|
35
35
|
} from "./chunk-LERYBWFS.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-N65VOEFI.js";
|
|
48
48
|
import {
|
|
49
49
|
harnessAdapter
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-YPPA5Z3U.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-RILCJ3PN.js";
|
|
13
13
|
import {
|
|
14
14
|
resumeNudge
|
|
15
15
|
} from "./chunk-7NZOH4LN.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
createBranch,
|
|
31
31
|
generateBranchSlug
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-SGYCDSBF.js";
|
|
33
33
|
import {
|
|
34
34
|
setSessionStatus
|
|
35
35
|
} from "./chunk-7KDF6H4R.js";
|
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
buildReviewPhase,
|
|
44
44
|
resolveReviewPhase
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MSWG2GGI.js";
|
|
46
46
|
import {
|
|
47
47
|
resolvePlan
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-KYMDHDXC.js";
|
|
49
49
|
import {
|
|
50
50
|
buildPhasePrompt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-QUA3MKDI.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-YPPA5Z3U.js";
|
|
76
76
|
import {
|
|
77
77
|
buildFeature
|
|
78
78
|
} from "./chunk-PXQTFJ2N.js";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-U5LCESHQ.js";
|
|
4
4
|
import {
|
|
5
5
|
run
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ICVMDDIK.js";
|
|
7
7
|
import {
|
|
8
8
|
isLockedByOther
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RILCJ3PN.js";
|
|
10
10
|
import {
|
|
11
11
|
isBlocked,
|
|
12
12
|
typeLabel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RGMAUOOR.js";
|
|
14
14
|
import {
|
|
15
15
|
loadBacklog
|
|
16
16
|
} from "./chunk-EJ47RKEE.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isSchemaPath,
|
|
14
14
|
isSchemaRelativePath,
|
|
15
15
|
mentionsDocsPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3OPLEVRF.js";
|
|
17
17
|
import {
|
|
18
18
|
findBuiltinDenyRaw,
|
|
19
19
|
findDeny,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isApprovedRead,
|
|
24
24
|
resolvePermission,
|
|
25
25
|
splitCompound
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MT76WK6E.js";
|
|
27
27
|
import {
|
|
28
28
|
isLiveDaemonSession
|
|
29
29
|
} from "./chunk-H63MI5HI.js";
|
|
@@ -923,6 +923,34 @@ function transcriptTailFingerprint(entries) {
|
|
|
923
923
|
return null;
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
+
// src/shared/harnessAdapters/claudeContentBlocksOf.ts
|
|
927
|
+
function claudeContentBlocksOf(content) {
|
|
928
|
+
return Array.isArray(content) ? content.filter(
|
|
929
|
+
(b) => !!b && typeof b === "object"
|
|
930
|
+
) : [];
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
// src/shared/harnessAdapters/claudeArtifactResultUrls.ts
|
|
934
|
+
var ARTIFACT_RESULT_URL = /^(?:Published|Created|Updated)\b[^\n]*? at (https:\/\/claude\.ai\/(?:code\/)?artifact\/[\w-]+)/;
|
|
935
|
+
function resultText(content) {
|
|
936
|
+
if (typeof content === "string") return content;
|
|
937
|
+
return claudeContentBlocksOf(content).map((block) => typeof block.text === "string" ? block.text : "").join("\n");
|
|
938
|
+
}
|
|
939
|
+
function claudeArtifactResultUrls(entries) {
|
|
940
|
+
const urls = /* @__PURE__ */ new Map();
|
|
941
|
+
for (const entry of entries) {
|
|
942
|
+
if (entry.type !== "user") continue;
|
|
943
|
+
const content = entry.message?.content;
|
|
944
|
+
for (const block of claudeContentBlocksOf(content)) {
|
|
945
|
+
if (block.type !== "tool_result" || block.is_error) continue;
|
|
946
|
+
if (typeof block.tool_use_id !== "string") continue;
|
|
947
|
+
const url = resultText(block.content).trimStart().match(ARTIFACT_RESULT_URL)?.[1];
|
|
948
|
+
if (url) urls.set(block.tool_use_id, url);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
return urls;
|
|
952
|
+
}
|
|
953
|
+
|
|
926
954
|
// src/commands/sessions/shared/renderPrompt.ts
|
|
927
955
|
function renderPrompt(raw) {
|
|
928
956
|
const command = marker(raw, "command-name");
|
|
@@ -1018,13 +1046,6 @@ function artifactCallLabel(input) {
|
|
|
1018
1046
|
return value ? `${action} \xB7 ${value}` : action;
|
|
1019
1047
|
}
|
|
1020
1048
|
|
|
1021
|
-
// src/shared/harnessAdapters/claudeContentBlocksOf.ts
|
|
1022
|
-
function claudeContentBlocksOf(content) {
|
|
1023
|
-
return Array.isArray(content) ? content.filter(
|
|
1024
|
-
(b) => !!b && typeof b === "object"
|
|
1025
|
-
) : [];
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
1049
|
// src/shared/harnessAdapters/editTexts.ts
|
|
1029
1050
|
function editTexts(input, ...fields) {
|
|
1030
1051
|
if (!Array.isArray(input.edits)) return [];
|
|
@@ -1096,9 +1117,10 @@ function assistantText(content) {
|
|
|
1096
1117
|
if (typeof content === "string") return content.trim();
|
|
1097
1118
|
return claudeContentBlocksOf(content).filter((b) => b.type === "text" && typeof b.text === "string").map((b) => String(b.text).trim()).filter(Boolean).join("\n");
|
|
1098
1119
|
}
|
|
1099
|
-
function toolEvent(block, at) {
|
|
1120
|
+
function toolEvent(block, at, resultUrls) {
|
|
1100
1121
|
const tool = typeof block.name === "string" ? block.name : "tool";
|
|
1101
1122
|
const input = block.input && typeof block.input === "object" ? block.input : {};
|
|
1123
|
+
const resultUrl = typeof block.id === "string" ? resultUrls?.get(block.id) : void 0;
|
|
1102
1124
|
const description = typeof input.description === "string" ? input.description.trim() : "";
|
|
1103
1125
|
return {
|
|
1104
1126
|
kind: "tool",
|
|
@@ -1107,18 +1129,19 @@ function toolEvent(block, at) {
|
|
|
1107
1129
|
...description && { description },
|
|
1108
1130
|
...tool === "Artifact" && {
|
|
1109
1131
|
label: artifactCallLabel(input),
|
|
1110
|
-
fields: toolInputFields(input)
|
|
1132
|
+
fields: toolInputFields(input),
|
|
1133
|
+
...resultUrl && { resultUrl }
|
|
1111
1134
|
},
|
|
1112
1135
|
operations: claudeToolOperations({ toolName: tool, toolInput: input }),
|
|
1113
1136
|
at
|
|
1114
1137
|
};
|
|
1115
1138
|
}
|
|
1116
|
-
function claudeAssistantEvents(content, at) {
|
|
1139
|
+
function claudeAssistantEvents(content, at, resultUrls) {
|
|
1117
1140
|
const text = assistantText(content);
|
|
1118
1141
|
const message2 = text ? [{ kind: "message", role: "assistant", text, at }] : [];
|
|
1119
1142
|
return [
|
|
1120
1143
|
...message2,
|
|
1121
|
-
...claudeContentBlocksOf(content).filter((block) => block.type === "tool_use").map((block) => toolEvent(block, at))
|
|
1144
|
+
...claudeContentBlocksOf(content).filter((block) => block.type === "tool_use").map((block) => toolEvent(block, at, resultUrls))
|
|
1122
1145
|
];
|
|
1123
1146
|
}
|
|
1124
1147
|
|
|
@@ -1153,7 +1176,7 @@ function claudeShellEvents(entry, at) {
|
|
|
1153
1176
|
function contentOf(entry) {
|
|
1154
1177
|
return entry.message?.content;
|
|
1155
1178
|
}
|
|
1156
|
-
function
|
|
1179
|
+
function resultText2(content) {
|
|
1157
1180
|
if (typeof content === "string") return content;
|
|
1158
1181
|
return claudeContentBlocksOf(content).filter((block) => block.type === "text").map((block) => String(block.text ?? "")).join("\n");
|
|
1159
1182
|
}
|
|
@@ -1170,17 +1193,17 @@ function userEvents(entry, at) {
|
|
|
1170
1193
|
}
|
|
1171
1194
|
for (const block of claudeContentBlocksOf(contentOf(entry))) {
|
|
1172
1195
|
if (block.type !== "tool_result" || block.is_error) continue;
|
|
1173
|
-
const body =
|
|
1196
|
+
const body = resultText2(block.content).trim();
|
|
1174
1197
|
if (body) events.push({ kind: "toolResult", text: body, at });
|
|
1175
1198
|
}
|
|
1176
1199
|
return events;
|
|
1177
1200
|
}
|
|
1178
|
-
function claudeEntryEvents(entry) {
|
|
1201
|
+
function claudeEntryEvents(entry, resultUrls) {
|
|
1179
1202
|
if (entry.isSidechain || entry.isMeta) return [];
|
|
1180
1203
|
const at = typeof entry.timestamp === "string" ? entry.timestamp : void 0;
|
|
1181
1204
|
if (entry.type === "user") return userEvents(entry, at);
|
|
1182
1205
|
if (entry.type === "assistant")
|
|
1183
|
-
return claudeAssistantEvents(contentOf(entry), at);
|
|
1206
|
+
return claudeAssistantEvents(contentOf(entry), at, resultUrls);
|
|
1184
1207
|
return [];
|
|
1185
1208
|
}
|
|
1186
1209
|
|
|
@@ -1237,7 +1260,10 @@ var claudeConversationReader = {
|
|
|
1237
1260
|
headBytes: 65536,
|
|
1238
1261
|
locate: ({ cwd, claudeSessionId }) => cwd && claudeSessionId ? findTranscriptPathSync(cwd, claudeSessionId) : null,
|
|
1239
1262
|
watchTarget: ({ cwd, claudeSessionId }) => cwd && claudeSessionId ? { dir: projectDirForCwd(cwd), file: `${claudeSessionId}.jsonl` } : null,
|
|
1240
|
-
events: (entries) =>
|
|
1263
|
+
events: (entries) => {
|
|
1264
|
+
const resultUrls = claudeArtifactResultUrls(entries);
|
|
1265
|
+
return entries.flatMap((entry) => claudeEntryEvents(entry, resultUrls));
|
|
1266
|
+
},
|
|
1241
1267
|
lifecycle: (entries, options) => ({
|
|
1242
1268
|
status: deriveTranscriptStatus(entries, options),
|
|
1243
1269
|
asking: awaitsQuestionAnswer(entries)
|
|
@@ -1399,7 +1425,7 @@ function claudeConnectorResult(result, failure, usage) {
|
|
|
1399
1425
|
function claudeContentBlocks(content) {
|
|
1400
1426
|
return Array.isArray(content) ? content : [];
|
|
1401
1427
|
}
|
|
1402
|
-
function
|
|
1428
|
+
function resultText3(content) {
|
|
1403
1429
|
if (typeof content === "string") return content;
|
|
1404
1430
|
return claudeContentBlocks(content).map((block) => typeof block.text === "string" ? block.text : "").join("");
|
|
1405
1431
|
}
|
|
@@ -1407,7 +1433,7 @@ function claudeToolResults(content) {
|
|
|
1407
1433
|
return claudeContentBlocks(content).filter((block) => block.type === "tool_result").map((block) => ({
|
|
1408
1434
|
type: "toolResult",
|
|
1409
1435
|
callId: String(block.tool_use_id),
|
|
1410
|
-
text:
|
|
1436
|
+
text: resultText3(block.content)
|
|
1411
1437
|
}));
|
|
1412
1438
|
}
|
|
1413
1439
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decideToolOperations,
|
|
3
3
|
logPolicyDeny
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V2UWYFAM.js";
|
|
5
5
|
import "./chunk-CDU6M5IX.js";
|
|
6
6
|
import "./chunk-HKGCLAZ7.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-3OPLEVRF.js";
|
|
8
8
|
import "./chunk-CUOHHT2F.js";
|
|
9
9
|
import {
|
|
10
10
|
currentExecutionIdentity
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-MTN37C4V.js";
|
|
12
|
+
import "./chunk-MT76WK6E.js";
|
|
13
13
|
import "./chunk-VDXS55BC.js";
|
|
14
14
|
import "./chunk-ZMH7UZNP.js";
|
|
15
15
|
import "./chunk-FPWL4VRC.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-JG2I5RTS.js";
|
|
|
27
27
|
import "./chunk-OUSMW4D6.js";
|
|
28
28
|
import {
|
|
29
29
|
claudeAdapter
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YPPA5Z3U.js";
|
|
31
31
|
import "./chunk-MRUIXQXS.js";
|
|
32
32
|
import "./chunk-HO7RNI6V.js";
|
|
33
33
|
import "./chunk-DIAC4XYA.js";
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
findTruncatedReadDenyRaw,
|
|
6
6
|
isApprovedRead,
|
|
7
7
|
splitCompound
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MT76WK6E.js";
|
|
9
9
|
import "./chunk-VDXS55BC.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-YPPA5Z3U.js";
|
|
11
11
|
import "./chunk-MRUIXQXS.js";
|
|
12
12
|
import "./chunk-HO7RNI6V.js";
|
|
13
13
|
import "./chunk-DIAC4XYA.js";
|