@alook/cli 0.0.18 → 0.0.19
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 +10 -3
- package/dist/session-runner.js +5 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -13928,7 +13928,8 @@ var PollRequestSchema = exports_external.object({
|
|
|
13928
13928
|
var PollResponseSchema = exports_external.object({
|
|
13929
13929
|
tasks: exports_external.array(TaskApiSchema),
|
|
13930
13930
|
evicted: exports_external.boolean().optional(),
|
|
13931
|
-
pending_update: exports_external.object({ version: exports_external.string() }).optional()
|
|
13931
|
+
pending_update: exports_external.object({ version: exports_external.string() }).optional(),
|
|
13932
|
+
pending_rescan: exports_external.boolean().optional()
|
|
13932
13933
|
});
|
|
13933
13934
|
var RegisterResponseSchema = exports_external.object({
|
|
13934
13935
|
runtimes: exports_external.array(exports_external.object({ id: exports_external.string() }))
|
|
@@ -15633,6 +15634,7 @@ var machine = sqliteTable("machine", {
|
|
|
15633
15634
|
lastSeenAt: text("last_seen_at"),
|
|
15634
15635
|
createdAt: text("created_at").notNull().$defaultFn(() => new Date().toISOString()),
|
|
15635
15636
|
pendingUpdateVersion: text("pending_update_version"),
|
|
15637
|
+
pendingRescan: integer2("pending_rescan", { mode: "boolean" }).default(false),
|
|
15636
15638
|
updatedAt: text("updated_at").notNull().$defaultFn(() => new Date().toISOString())
|
|
15637
15639
|
}, (t) => [primaryKey({ columns: [t.workspaceId, t.daemonId] })]);
|
|
15638
15640
|
var agentRuntime = sqliteTable("agent_runtime", {
|
|
@@ -15941,7 +15943,8 @@ class DaemonClient {
|
|
|
15941
15943
|
return {
|
|
15942
15944
|
tasks: resp.tasks,
|
|
15943
15945
|
evicted: resp.evicted ?? false,
|
|
15944
|
-
pending_update: resp.pending_update
|
|
15946
|
+
pending_update: resp.pending_update,
|
|
15947
|
+
pending_rescan: resp.pending_rescan
|
|
15945
15948
|
};
|
|
15946
15949
|
}
|
|
15947
15950
|
startTask(token, taskId) {
|
|
@@ -16861,7 +16864,7 @@ async function startDaemon(profile, serverUrl) {
|
|
|
16861
16864
|
await new Promise((r) => setTimeout(r, staggerMs));
|
|
16862
16865
|
}
|
|
16863
16866
|
try {
|
|
16864
|
-
const { tasks: apiTasks, evicted, pending_update } = await client.poll(ws.token, config2.daemonId, remaining, config2.cliVersion);
|
|
16867
|
+
const { tasks: apiTasks, evicted, pending_update, pending_rescan } = await client.poll(ws.token, config2.daemonId, remaining, config2.cliVersion);
|
|
16865
16868
|
if (evicted) {
|
|
16866
16869
|
evictedIds.push(ws.workspaceId);
|
|
16867
16870
|
continue;
|
|
@@ -16869,6 +16872,10 @@ async function startDaemon(profile, serverUrl) {
|
|
|
16869
16872
|
if (pending_update && !isUpdating() && pending_update.version !== config2.cliVersion) {
|
|
16870
16873
|
handleCliUpdate(pending_update.version, () => requestRestart(), profile);
|
|
16871
16874
|
}
|
|
16875
|
+
if (pending_rescan) {
|
|
16876
|
+
log.info("Rescan requested — restarting daemon to re-detect runtimes");
|
|
16877
|
+
requestRestart();
|
|
16878
|
+
}
|
|
16872
16879
|
for (const apiTask of apiTasks) {
|
|
16873
16880
|
const task = fromApiTask(apiTask);
|
|
16874
16881
|
syncAgentId(task.agentId, ws.workspaceId);
|
package/dist/session-runner.js
CHANGED
|
@@ -13645,7 +13645,8 @@ var PollRequestSchema = exports_external.object({
|
|
|
13645
13645
|
var PollResponseSchema = exports_external.object({
|
|
13646
13646
|
tasks: exports_external.array(TaskApiSchema),
|
|
13647
13647
|
evicted: exports_external.boolean().optional(),
|
|
13648
|
-
pending_update: exports_external.object({ version: exports_external.string() }).optional()
|
|
13648
|
+
pending_update: exports_external.object({ version: exports_external.string() }).optional(),
|
|
13649
|
+
pending_rescan: exports_external.boolean().optional()
|
|
13649
13650
|
});
|
|
13650
13651
|
var RegisterResponseSchema = exports_external.object({
|
|
13651
13652
|
runtimes: exports_external.array(exports_external.object({ id: exports_external.string() }))
|
|
@@ -15350,6 +15351,7 @@ var machine = sqliteTable("machine", {
|
|
|
15350
15351
|
lastSeenAt: text("last_seen_at"),
|
|
15351
15352
|
createdAt: text("created_at").notNull().$defaultFn(() => new Date().toISOString()),
|
|
15352
15353
|
pendingUpdateVersion: text("pending_update_version"),
|
|
15354
|
+
pendingRescan: integer2("pending_rescan", { mode: "boolean" }).default(false),
|
|
15353
15355
|
updatedAt: text("updated_at").notNull().$defaultFn(() => new Date().toISOString())
|
|
15354
15356
|
}, (t) => [primaryKey({ columns: [t.workspaceId, t.daemonId] })]);
|
|
15355
15357
|
var agentRuntime = sqliteTable("agent_runtime", {
|
|
@@ -15647,7 +15649,8 @@ class DaemonClient {
|
|
|
15647
15649
|
return {
|
|
15648
15650
|
tasks: resp.tasks,
|
|
15649
15651
|
evicted: resp.evicted ?? false,
|
|
15650
|
-
pending_update: resp.pending_update
|
|
15652
|
+
pending_update: resp.pending_update,
|
|
15653
|
+
pending_rescan: resp.pending_rescan
|
|
15651
15654
|
};
|
|
15652
15655
|
}
|
|
15653
15656
|
startTask(token, taskId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alook/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Alook CLI — register and run always-on AI coding agents.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/alookai/alook#readme",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"build": "bun build src/index.ts --outdir dist --target node --format esm --external citty --external commander --external postal-mime && bun build daemon/session-runner.ts --outdir dist --target node --format esm --external citty --external commander --external postal-mime && node scripts/prepare-dist.mjs",
|
|
42
42
|
"prepack": "pnpm run build",
|
|
43
43
|
"test": "vitest run",
|
|
44
|
-
"typecheck": "tsc --noEmit"
|
|
44
|
+
"typecheck": "tsc --noEmit -p tsconfig.build.json"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"citty": "^0.2.2",
|