@alook/cli 0.0.70 → 0.0.72
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 +18 -12
- package/dist/session-runner.js +18 -12
- 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]
|
|
@@ -17470,7 +17471,8 @@ class ClaudeBackend {
|
|
|
17470
17471
|
cwd: options.cwd,
|
|
17471
17472
|
stdio: ["pipe", "pipe", "pipe"],
|
|
17472
17473
|
env: { ...process.env, ...options.env },
|
|
17473
|
-
shell: process.platform === "win32"
|
|
17474
|
+
shell: process.platform === "win32",
|
|
17475
|
+
windowsHide: true
|
|
17474
17476
|
});
|
|
17475
17477
|
if (!proc.pid) {
|
|
17476
17478
|
const error51 = `Failed to start ${this.cliPath}: binary not found or not executable. Is 'claude' installed and on PATH?`;
|
|
@@ -17738,7 +17740,8 @@ class CodexBackend {
|
|
|
17738
17740
|
cwd: options.cwd,
|
|
17739
17741
|
stdio: ["pipe", "pipe", "pipe"],
|
|
17740
17742
|
env: { ...process.env, ...options.env },
|
|
17741
|
-
shell: process.platform === "win32"
|
|
17743
|
+
shell: process.platform === "win32",
|
|
17744
|
+
windowsHide: true
|
|
17742
17745
|
});
|
|
17743
17746
|
if (!proc.pid) {
|
|
17744
17747
|
const error51 = `Failed to start ${this.cliPath}: binary not found or not executable. Is 'codex' installed and on PATH?`;
|
|
@@ -18227,7 +18230,8 @@ class OpenCodeBackend {
|
|
|
18227
18230
|
cwd: options.cwd,
|
|
18228
18231
|
stdio: ["ignore", "pipe", "pipe"],
|
|
18229
18232
|
env: { ...process.env, ...options.env, OPENCODE_PERMISSION: '{"*":"allow"}' },
|
|
18230
|
-
shell: process.platform === "win32"
|
|
18233
|
+
shell: process.platform === "win32",
|
|
18234
|
+
windowsHide: true
|
|
18231
18235
|
});
|
|
18232
18236
|
if (!proc.pid) {
|
|
18233
18237
|
const error51 = `Failed to start ${this.cliPath}: binary not found or not executable. Is 'opencode' installed and on PATH?`;
|
|
@@ -19491,15 +19495,6 @@ async function runSession(input) {
|
|
|
19491
19495
|
break;
|
|
19492
19496
|
const msg = iterResult.value;
|
|
19493
19497
|
seq++;
|
|
19494
|
-
pendingMessages.push({
|
|
19495
|
-
seq,
|
|
19496
|
-
type: msg.type,
|
|
19497
|
-
tool: msg.tool,
|
|
19498
|
-
call_id: msg.callId,
|
|
19499
|
-
content: msg.content,
|
|
19500
|
-
input: msg.input,
|
|
19501
|
-
output: msg.output
|
|
19502
|
-
});
|
|
19503
19498
|
if (msg.type === "tool-use")
|
|
19504
19499
|
toolCount++;
|
|
19505
19500
|
if (msg.type === "tool-result" && msg.output && msg.output.length > 500) {
|
|
@@ -19507,6 +19502,17 @@ async function runSession(input) {
|
|
|
19507
19502
|
} else {
|
|
19508
19503
|
log5.info(JSON.stringify({ role: "assistant", ...msg }));
|
|
19509
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
|
+
});
|
|
19510
19516
|
if (msg.type === "text" && msg.content) {
|
|
19511
19517
|
updateEntry(timelineDir, task.id, (entry) => {
|
|
19512
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]
|
|
@@ -16854,7 +16855,8 @@ class ClaudeBackend {
|
|
|
16854
16855
|
cwd: options.cwd,
|
|
16855
16856
|
stdio: ["pipe", "pipe", "pipe"],
|
|
16856
16857
|
env: { ...process.env, ...options.env },
|
|
16857
|
-
shell: process.platform === "win32"
|
|
16858
|
+
shell: process.platform === "win32",
|
|
16859
|
+
windowsHide: true
|
|
16858
16860
|
});
|
|
16859
16861
|
if (!proc.pid) {
|
|
16860
16862
|
const error51 = `Failed to start ${this.cliPath}: binary not found or not executable. Is 'claude' installed and on PATH?`;
|
|
@@ -17122,7 +17124,8 @@ class CodexBackend {
|
|
|
17122
17124
|
cwd: options.cwd,
|
|
17123
17125
|
stdio: ["pipe", "pipe", "pipe"],
|
|
17124
17126
|
env: { ...process.env, ...options.env },
|
|
17125
|
-
shell: process.platform === "win32"
|
|
17127
|
+
shell: process.platform === "win32",
|
|
17128
|
+
windowsHide: true
|
|
17126
17129
|
});
|
|
17127
17130
|
if (!proc.pid) {
|
|
17128
17131
|
const error51 = `Failed to start ${this.cliPath}: binary not found or not executable. Is 'codex' installed and on PATH?`;
|
|
@@ -17611,7 +17614,8 @@ class OpenCodeBackend {
|
|
|
17611
17614
|
cwd: options.cwd,
|
|
17612
17615
|
stdio: ["ignore", "pipe", "pipe"],
|
|
17613
17616
|
env: { ...process.env, ...options.env, OPENCODE_PERMISSION: '{"*":"allow"}' },
|
|
17614
|
-
shell: process.platform === "win32"
|
|
17617
|
+
shell: process.platform === "win32",
|
|
17618
|
+
windowsHide: true
|
|
17615
17619
|
});
|
|
17616
17620
|
if (!proc.pid) {
|
|
17617
17621
|
const error51 = `Failed to start ${this.cliPath}: binary not found or not executable. Is 'opencode' installed and on PATH?`;
|
|
@@ -18880,15 +18884,6 @@ async function runSession(input) {
|
|
|
18880
18884
|
break;
|
|
18881
18885
|
const msg = iterResult.value;
|
|
18882
18886
|
seq++;
|
|
18883
|
-
pendingMessages.push({
|
|
18884
|
-
seq,
|
|
18885
|
-
type: msg.type,
|
|
18886
|
-
tool: msg.tool,
|
|
18887
|
-
call_id: msg.callId,
|
|
18888
|
-
content: msg.content,
|
|
18889
|
-
input: msg.input,
|
|
18890
|
-
output: msg.output
|
|
18891
|
-
});
|
|
18892
18887
|
if (msg.type === "tool-use")
|
|
18893
18888
|
toolCount++;
|
|
18894
18889
|
if (msg.type === "tool-result" && msg.output && msg.output.length > 500) {
|
|
@@ -18896,6 +18891,17 @@ async function runSession(input) {
|
|
|
18896
18891
|
} else {
|
|
18897
18892
|
log4.info(JSON.stringify({ role: "assistant", ...msg }));
|
|
18898
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
|
+
});
|
|
18899
18905
|
if (msg.type === "text" && msg.content) {
|
|
18900
18906
|
updateEntry(timelineDir, task.id, (entry) => {
|
|
18901
18907
|
entry.agent_responses.push(msg.content);
|