xgen-dex-cli 1.53.0 → 1.54.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/chunks/{chunk-MBYSLVJW.js → chunk-TCCQ3OMQ.js} +30 -2
- package/dist/chunks/chunk-TCCQ3OMQ.js.map +7 -0
- package/dist/chunks/{tui-ZPTUGL3B.js → tui-UBE5MRFL.js} +2 -2
- package/dist/cli.js +3 -3
- package/package.json +1 -1
- package/dist/chunks/chunk-MBYSLVJW.js.map +0 -7
- /package/dist/chunks/{tui-ZPTUGL3B.js.map → tui-UBE5MRFL.js.map} +0 -0
|
@@ -1271,6 +1271,33 @@ function stripBrowserContext(text) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
1273
|
// ../../packages/protocol/src/history.ts
|
|
1274
|
+
function toHistoryProcess(value) {
|
|
1275
|
+
if (!Array.isArray(value)) return void 0;
|
|
1276
|
+
const out = [];
|
|
1277
|
+
for (const raw of value) {
|
|
1278
|
+
if (!raw || typeof raw !== "object") continue;
|
|
1279
|
+
const item = raw;
|
|
1280
|
+
const at = typeof item.at === "number" ? item.at : 0;
|
|
1281
|
+
if (item.kind === "text" && typeof item.text === "string") {
|
|
1282
|
+
out.push({ kind: "text", text: item.text, at });
|
|
1283
|
+
continue;
|
|
1284
|
+
}
|
|
1285
|
+
if (item.kind === "tool" && item.event && typeof item.event === "object") {
|
|
1286
|
+
const e = item.event;
|
|
1287
|
+
const event = {
|
|
1288
|
+
eventType: String(e.event_type ?? "tool"),
|
|
1289
|
+
toolName: typeof e.tool_name === "string" ? e.tool_name : void 0,
|
|
1290
|
+
toolInput: e.tool_input,
|
|
1291
|
+
result: typeof e.result === "string" ? e.result : void 0,
|
|
1292
|
+
error: typeof e.error === "string" ? e.error : void 0,
|
|
1293
|
+
toolUseId: typeof e.tool_use_id === "string" ? e.tool_use_id : void 0,
|
|
1294
|
+
durationMs: typeof e.duration_ms === "number" ? e.duration_ms : void 0
|
|
1295
|
+
};
|
|
1296
|
+
out.push({ kind: "tool", event, at });
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
return out.length > 0 ? out : void 0;
|
|
1300
|
+
}
|
|
1274
1301
|
function toHistoryAttachments(value) {
|
|
1275
1302
|
if (!Array.isArray(value)) return [];
|
|
1276
1303
|
const result = [];
|
|
@@ -1354,7 +1381,8 @@ var HistoryApi = class {
|
|
|
1354
1381
|
input: toDisplayText(r.input_data),
|
|
1355
1382
|
output: toDisplayText(r.output_data),
|
|
1356
1383
|
attachments: toHistoryAttachments(r.attachments),
|
|
1357
|
-
updatedAt: r.updated_at
|
|
1384
|
+
updatedAt: r.updated_at,
|
|
1385
|
+
process: toHistoryProcess(r.process)
|
|
1358
1386
|
}));
|
|
1359
1387
|
return { turns, running: res.running === true };
|
|
1360
1388
|
}
|
|
@@ -6026,4 +6054,4 @@ export {
|
|
|
6026
6054
|
credentialBackend,
|
|
6027
6055
|
SystemCredentialStore
|
|
6028
6056
|
};
|
|
6029
|
-
//# sourceMappingURL=chunk-
|
|
6057
|
+
//# sourceMappingURL=chunk-TCCQ3OMQ.js.map
|