@alook/cli 0.0.27 → 0.0.28
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 -8
- package/dist/session-runner.js +12 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15719,13 +15719,13 @@ var agent = sqliteTable("agent", {
|
|
|
15719
15719
|
description: text("description").notNull().default(""),
|
|
15720
15720
|
instructions: text("instructions").notNull().default(""),
|
|
15721
15721
|
avatarUrl: text("avatar_url"),
|
|
15722
|
-
runtimeId: text("runtime_id").references(() => agentRuntime.id),
|
|
15722
|
+
runtimeId: text("runtime_id").notNull().references(() => agentRuntime.id, { onDelete: "cascade" }),
|
|
15723
15723
|
runtimeMode: text("runtime_mode").notNull().default("local"),
|
|
15724
15724
|
runtimeConfig: text("runtime_config", { mode: "json" }),
|
|
15725
15725
|
visibility: text("visibility").notNull().default("private"),
|
|
15726
15726
|
status: text("status").notNull().default("idle"),
|
|
15727
15727
|
maxConcurrentTasks: integer2("max_concurrent_tasks").notNull().default(6),
|
|
15728
|
-
ownerId: text("owner_id").references(() => user.id),
|
|
15728
|
+
ownerId: text("owner_id").references(() => user.id, { onDelete: "cascade" }),
|
|
15729
15729
|
tools: text("tools", { mode: "json" }),
|
|
15730
15730
|
triggers: text("triggers", { mode: "json" }),
|
|
15731
15731
|
emailHandle: text("email_handle").unique(),
|
|
@@ -15784,9 +15784,9 @@ var message = sqliteTable("message", {
|
|
|
15784
15784
|
var agentTaskQueue = sqliteTable("agent_task_queue", {
|
|
15785
15785
|
id: text("id").primaryKey().$defaultFn(() => nanoid3()),
|
|
15786
15786
|
agentId: text("agent_id").notNull(),
|
|
15787
|
-
runtimeId: text("runtime_id").notNull().references(() => agentRuntime.id),
|
|
15788
|
-
workspaceId: text("workspace_id").notNull().references(() => workspace.id),
|
|
15789
|
-
conversationId: text("conversation_id").notNull().references(() => conversation.id),
|
|
15787
|
+
runtimeId: text("runtime_id").notNull().references(() => agentRuntime.id, { onDelete: "cascade" }),
|
|
15788
|
+
workspaceId: text("workspace_id").notNull().references(() => workspace.id, { onDelete: "cascade" }),
|
|
15789
|
+
conversationId: text("conversation_id").notNull().references(() => conversation.id, { onDelete: "cascade" }),
|
|
15790
15790
|
prompt: text("prompt").notNull(),
|
|
15791
15791
|
type: text("type").notNull().default(TASK_TYPES.USER_DM_MESSAGE),
|
|
15792
15792
|
contextKey: text("context_key"),
|
|
@@ -15971,7 +15971,13 @@ var workspaceFileRequest = sqliteTable("workspace_file_request", {
|
|
|
15971
15971
|
result: text("result"),
|
|
15972
15972
|
createdAt: text("created_at").notNull().$defaultFn(() => new Date().toISOString()),
|
|
15973
15973
|
updatedAt: text("updated_at").notNull().$defaultFn(() => new Date().toISOString())
|
|
15974
|
-
}, (t) => [
|
|
15974
|
+
}, (t) => [
|
|
15975
|
+
index("idx_wfr_workspace_status").on(t.workspaceId, t.status),
|
|
15976
|
+
foreignKey({
|
|
15977
|
+
columns: [t.agentId, t.workspaceId],
|
|
15978
|
+
foreignColumns: [agent.id, agent.workspaceId]
|
|
15979
|
+
}).onDelete("cascade")
|
|
15980
|
+
]);
|
|
15975
15981
|
// ../shared/src/db/queries/task.ts
|
|
15976
15982
|
var DEFAULT_STALE_SECONDS = Number(process.env.ALOOK_STALE_DISPATCH_TIMEOUT_S) || 20;
|
|
15977
15983
|
var DEFAULT_STALE_RUNNING_SECONDS = Number(process.env.ALOOK_STALE_RUNNING_TIMEOUT_S) || 3600;
|
|
@@ -16984,9 +16990,13 @@ async function startDaemon(profile, serverUrl) {
|
|
|
16984
16990
|
if (serverUrl)
|
|
16985
16991
|
config2.serverURL = serverUrl;
|
|
16986
16992
|
const marker = readUpdateMarker(profile);
|
|
16987
|
-
if (marker
|
|
16993
|
+
if (marker) {
|
|
16988
16994
|
clearUpdateMarker(profile);
|
|
16989
|
-
|
|
16995
|
+
if (marker === config2.cliVersion) {
|
|
16996
|
+
log.info(`Cleared update marker — now running v${config2.cliVersion}`);
|
|
16997
|
+
} else {
|
|
16998
|
+
log.info(`Cleared stale update marker (was v${marker}, running v${config2.cliVersion}) — update will be retried`);
|
|
16999
|
+
}
|
|
16990
17000
|
}
|
|
16991
17001
|
const cliConfig = loadCLIConfigForProfile(profile);
|
|
16992
17002
|
const workspaces = cliConfig.watched_workspaces || [];
|
package/dist/session-runner.js
CHANGED
|
@@ -15436,13 +15436,13 @@ var agent = sqliteTable("agent", {
|
|
|
15436
15436
|
description: text("description").notNull().default(""),
|
|
15437
15437
|
instructions: text("instructions").notNull().default(""),
|
|
15438
15438
|
avatarUrl: text("avatar_url"),
|
|
15439
|
-
runtimeId: text("runtime_id").references(() => agentRuntime.id),
|
|
15439
|
+
runtimeId: text("runtime_id").notNull().references(() => agentRuntime.id, { onDelete: "cascade" }),
|
|
15440
15440
|
runtimeMode: text("runtime_mode").notNull().default("local"),
|
|
15441
15441
|
runtimeConfig: text("runtime_config", { mode: "json" }),
|
|
15442
15442
|
visibility: text("visibility").notNull().default("private"),
|
|
15443
15443
|
status: text("status").notNull().default("idle"),
|
|
15444
15444
|
maxConcurrentTasks: integer2("max_concurrent_tasks").notNull().default(6),
|
|
15445
|
-
ownerId: text("owner_id").references(() => user.id),
|
|
15445
|
+
ownerId: text("owner_id").references(() => user.id, { onDelete: "cascade" }),
|
|
15446
15446
|
tools: text("tools", { mode: "json" }),
|
|
15447
15447
|
triggers: text("triggers", { mode: "json" }),
|
|
15448
15448
|
emailHandle: text("email_handle").unique(),
|
|
@@ -15501,9 +15501,9 @@ var message = sqliteTable("message", {
|
|
|
15501
15501
|
var agentTaskQueue = sqliteTable("agent_task_queue", {
|
|
15502
15502
|
id: text("id").primaryKey().$defaultFn(() => nanoid3()),
|
|
15503
15503
|
agentId: text("agent_id").notNull(),
|
|
15504
|
-
runtimeId: text("runtime_id").notNull().references(() => agentRuntime.id),
|
|
15505
|
-
workspaceId: text("workspace_id").notNull().references(() => workspace.id),
|
|
15506
|
-
conversationId: text("conversation_id").notNull().references(() => conversation.id),
|
|
15504
|
+
runtimeId: text("runtime_id").notNull().references(() => agentRuntime.id, { onDelete: "cascade" }),
|
|
15505
|
+
workspaceId: text("workspace_id").notNull().references(() => workspace.id, { onDelete: "cascade" }),
|
|
15506
|
+
conversationId: text("conversation_id").notNull().references(() => conversation.id, { onDelete: "cascade" }),
|
|
15507
15507
|
prompt: text("prompt").notNull(),
|
|
15508
15508
|
type: text("type").notNull().default(TASK_TYPES.USER_DM_MESSAGE),
|
|
15509
15509
|
contextKey: text("context_key"),
|
|
@@ -15688,7 +15688,13 @@ var workspaceFileRequest = sqliteTable("workspace_file_request", {
|
|
|
15688
15688
|
result: text("result"),
|
|
15689
15689
|
createdAt: text("created_at").notNull().$defaultFn(() => new Date().toISOString()),
|
|
15690
15690
|
updatedAt: text("updated_at").notNull().$defaultFn(() => new Date().toISOString())
|
|
15691
|
-
}, (t) => [
|
|
15691
|
+
}, (t) => [
|
|
15692
|
+
index("idx_wfr_workspace_status").on(t.workspaceId, t.status),
|
|
15693
|
+
foreignKey({
|
|
15694
|
+
columns: [t.agentId, t.workspaceId],
|
|
15695
|
+
foreignColumns: [agent.id, agent.workspaceId]
|
|
15696
|
+
}).onDelete("cascade")
|
|
15697
|
+
]);
|
|
15692
15698
|
// ../shared/src/db/queries/task.ts
|
|
15693
15699
|
var DEFAULT_STALE_SECONDS = Number(process.env.ALOOK_STALE_DISPATCH_TIMEOUT_S) || 20;
|
|
15694
15700
|
var DEFAULT_STALE_RUNNING_SECONDS = Number(process.env.ALOOK_STALE_RUNNING_TIMEOUT_S) || 3600;
|