@alook/cli 0.0.76 → 0.0.78

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 CHANGED
@@ -14657,7 +14657,8 @@ var CreateCalendarEventRequestSchema = exports_external.object({
14657
14657
  message: "scheduled_at must be a valid ISO datetime"
14658
14658
  }),
14659
14659
  repeat_interval: RepeatIntervalSchema.optional(),
14660
- repeat_stop_date: exports_external.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional()
14660
+ repeat_stop_date: exports_external.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),
14661
+ conversation_id: exports_external.string().optional()
14661
14662
  }).refine((data) => !data.repeat_stop_date || !!data.repeat_interval, {
14662
14663
  message: "repeat_stop_date requires repeat_interval",
14663
14664
  path: ["repeat_stop_date"]
@@ -16544,6 +16545,9 @@ var agentTaskQueue = sqliteTable("agent_task_queue", {
16544
16545
  index("idx_task_queue_workspace_type_status").on(t.workspaceId, t.type, t.status),
16545
16546
  index("idx_task_queue_workspace_status_dispatched").on(t.workspaceId, t.status, t.dispatchedAt),
16546
16547
  index("idx_task_queue_inbox").on(t.workspaceId, t.status, t.completedAt),
16548
+ index("idx_task_queue_runtime_pending").on(t.workspaceId, t.runtimeId, t.status).where(sql`status IN ('queued', 'dispatched')`),
16549
+ index("idx_task_queue_agent_running").on(t.agentId, t.workspaceId, t.status).where(sql`status IN ('dispatched', 'running')`),
16550
+ index("idx_task_queue_inbox_convo").on(t.workspaceId, t.status, t.conversationId, t.completedAt).where(sql`status IN ('completed', 'failed') AND parent_task_id IS NULL`),
16547
16551
  foreignKey({
16548
16552
  columns: [t.agentId, t.workspaceId],
16549
16553
  foreignColumns: [agent.id, agent.workspaceId]
@@ -21272,6 +21276,8 @@ function calendarCommand() {
21272
21276
  body.repeat_interval = opts.repeat;
21273
21277
  if (opts.repeat_stop_date)
21274
21278
  body.repeat_stop_date = opts.repeat_stop_date;
21279
+ if (process.env.ALOOK_CONVERSATION_ID)
21280
+ body.conversation_id = process.env.ALOOK_CONVERSATION_ID;
21275
21281
  try {
21276
21282
  const created = await client.postJSON("/api/calendar", body);
21277
21283
  if (opts.json) {
@@ -14524,7 +14524,8 @@ var CreateCalendarEventRequestSchema = exports_external.object({
14524
14524
  message: "scheduled_at must be a valid ISO datetime"
14525
14525
  }),
14526
14526
  repeat_interval: RepeatIntervalSchema.optional(),
14527
- repeat_stop_date: exports_external.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional()
14527
+ repeat_stop_date: exports_external.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),
14528
+ conversation_id: exports_external.string().optional()
14528
14529
  }).refine((data) => !data.repeat_stop_date || !!data.repeat_interval, {
14529
14530
  message: "repeat_stop_date requires repeat_interval",
14530
14531
  path: ["repeat_stop_date"]
@@ -16411,6 +16412,9 @@ var agentTaskQueue = sqliteTable("agent_task_queue", {
16411
16412
  index("idx_task_queue_workspace_type_status").on(t.workspaceId, t.type, t.status),
16412
16413
  index("idx_task_queue_workspace_status_dispatched").on(t.workspaceId, t.status, t.dispatchedAt),
16413
16414
  index("idx_task_queue_inbox").on(t.workspaceId, t.status, t.completedAt),
16415
+ index("idx_task_queue_runtime_pending").on(t.workspaceId, t.runtimeId, t.status).where(sql`status IN ('queued', 'dispatched')`),
16416
+ index("idx_task_queue_agent_running").on(t.agentId, t.workspaceId, t.status).where(sql`status IN ('dispatched', 'running')`),
16417
+ index("idx_task_queue_inbox_convo").on(t.workspaceId, t.status, t.conversationId, t.completedAt).where(sql`status IN ('completed', 'failed') AND parent_task_id IS NULL`),
16414
16418
  foreignKey({
16415
16419
  columns: [t.agentId, t.workspaceId],
16416
16420
  foreignColumns: [agent.id, agent.workspaceId]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alook/cli",
3
- "version": "0.0.76",
3
+ "version": "0.0.78",
4
4
  "description": "Alook CLI — Enable Your Person Colleague",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/alookai/alook#readme",