@alook/cli 0.0.71 → 0.0.73
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/index.js +12 -9
- package/dist/session-runner.js +12 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16540,6 +16540,7 @@ var agentTaskQueue = sqliteTable("agent_task_queue", {
|
|
|
16540
16540
|
index("idx_task_queue_trace").on(t.traceId),
|
|
16541
16541
|
index("idx_task_queue_parent").on(t.parentTaskId),
|
|
16542
16542
|
index("idx_task_queue_workspace_type_status").on(t.workspaceId, t.type, t.status),
|
|
16543
|
+
index("idx_task_queue_workspace_status_dispatched").on(t.workspaceId, t.status, t.dispatchedAt),
|
|
16543
16544
|
foreignKey({
|
|
16544
16545
|
columns: [t.agentId, t.workspaceId],
|
|
16545
16546
|
foreignColumns: [agent.id, agent.workspaceId]
|
|
@@ -19494,15 +19495,6 @@ async function runSession(input) {
|
|
|
19494
19495
|
break;
|
|
19495
19496
|
const msg = iterResult.value;
|
|
19496
19497
|
seq++;
|
|
19497
|
-
pendingMessages.push({
|
|
19498
|
-
seq,
|
|
19499
|
-
type: msg.type,
|
|
19500
|
-
tool: msg.tool,
|
|
19501
|
-
call_id: msg.callId,
|
|
19502
|
-
content: msg.content,
|
|
19503
|
-
input: msg.input,
|
|
19504
|
-
output: msg.output
|
|
19505
|
-
});
|
|
19506
19498
|
if (msg.type === "tool-use")
|
|
19507
19499
|
toolCount++;
|
|
19508
19500
|
if (msg.type === "tool-result" && msg.output && msg.output.length > 500) {
|
|
@@ -19510,6 +19502,17 @@ async function runSession(input) {
|
|
|
19510
19502
|
} else {
|
|
19511
19503
|
log5.info(JSON.stringify({ role: "assistant", ...msg }));
|
|
19512
19504
|
}
|
|
19505
|
+
if (msg.type === "status" || msg.type === "log")
|
|
19506
|
+
continue;
|
|
19507
|
+
pendingMessages.push({
|
|
19508
|
+
seq,
|
|
19509
|
+
type: msg.type,
|
|
19510
|
+
tool: msg.tool,
|
|
19511
|
+
call_id: msg.callId,
|
|
19512
|
+
content: msg.type === "tool-result" ? "" : msg.content,
|
|
19513
|
+
input: msg.type === "tool-result" ? undefined : msg.input,
|
|
19514
|
+
output: msg.type === "tool-result" ? "" : msg.output
|
|
19515
|
+
});
|
|
19513
19516
|
if (msg.type === "text" && msg.content) {
|
|
19514
19517
|
updateEntry(timelineDir, task.id, (entry) => {
|
|
19515
19518
|
entry.agent_responses.push(msg.content);
|
package/dist/session-runner.js
CHANGED
|
@@ -16407,6 +16407,7 @@ var agentTaskQueue = sqliteTable("agent_task_queue", {
|
|
|
16407
16407
|
index("idx_task_queue_trace").on(t.traceId),
|
|
16408
16408
|
index("idx_task_queue_parent").on(t.parentTaskId),
|
|
16409
16409
|
index("idx_task_queue_workspace_type_status").on(t.workspaceId, t.type, t.status),
|
|
16410
|
+
index("idx_task_queue_workspace_status_dispatched").on(t.workspaceId, t.status, t.dispatchedAt),
|
|
16410
16411
|
foreignKey({
|
|
16411
16412
|
columns: [t.agentId, t.workspaceId],
|
|
16412
16413
|
foreignColumns: [agent.id, agent.workspaceId]
|
|
@@ -18883,15 +18884,6 @@ async function runSession(input) {
|
|
|
18883
18884
|
break;
|
|
18884
18885
|
const msg = iterResult.value;
|
|
18885
18886
|
seq++;
|
|
18886
|
-
pendingMessages.push({
|
|
18887
|
-
seq,
|
|
18888
|
-
type: msg.type,
|
|
18889
|
-
tool: msg.tool,
|
|
18890
|
-
call_id: msg.callId,
|
|
18891
|
-
content: msg.content,
|
|
18892
|
-
input: msg.input,
|
|
18893
|
-
output: msg.output
|
|
18894
|
-
});
|
|
18895
18887
|
if (msg.type === "tool-use")
|
|
18896
18888
|
toolCount++;
|
|
18897
18889
|
if (msg.type === "tool-result" && msg.output && msg.output.length > 500) {
|
|
@@ -18899,6 +18891,17 @@ async function runSession(input) {
|
|
|
18899
18891
|
} else {
|
|
18900
18892
|
log4.info(JSON.stringify({ role: "assistant", ...msg }));
|
|
18901
18893
|
}
|
|
18894
|
+
if (msg.type === "status" || msg.type === "log")
|
|
18895
|
+
continue;
|
|
18896
|
+
pendingMessages.push({
|
|
18897
|
+
seq,
|
|
18898
|
+
type: msg.type,
|
|
18899
|
+
tool: msg.tool,
|
|
18900
|
+
call_id: msg.callId,
|
|
18901
|
+
content: msg.type === "tool-result" ? "" : msg.content,
|
|
18902
|
+
input: msg.type === "tool-result" ? undefined : msg.input,
|
|
18903
|
+
output: msg.type === "tool-result" ? "" : msg.output
|
|
18904
|
+
});
|
|
18902
18905
|
if (msg.type === "text" && msg.content) {
|
|
18903
18906
|
updateEntry(timelineDir, task.id, (entry) => {
|
|
18904
18907
|
entry.agent_responses.push(msg.content);
|