@alook/cli 0.0.124 → 0.0.125

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
@@ -14929,6 +14929,11 @@ var RecruitAgentRequestSchema = exports_external.object({
14929
14929
  model: exports_external.string().max(100).optional(),
14930
14930
  context_key: exports_external.string().optional()
14931
14931
  });
14932
+ var CreateThreadRequestSchema = exports_external.object({
14933
+ parent_message_id: exports_external.string().min(1),
14934
+ content: exports_external.string().optional().default(""),
14935
+ attachment_ids: exports_external.array(exports_external.string()).optional()
14936
+ });
14932
14937
  // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260607.1_@opentelemetry+api@1.9.1_@typ_f6afd29ff119cf2708e3cf0d0bb9cbc4/node_modules/drizzle-orm/entity.js
14933
14938
  var entityKind = Symbol.for("drizzle:entityKind");
14934
14939
  var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
@@ -16495,10 +16500,13 @@ var conversation = sqliteTable("conversation", {
16495
16500
  title: text("title").notNull().default(""),
16496
16501
  type: text("type").notNull().default(TASK_TYPES.USER_DM_MESSAGE),
16497
16502
  channel: text("channel").notNull().default("default"),
16503
+ parentMessageId: text("parent_message_id"),
16504
+ threadTitle: text("thread_title").notNull().default(""),
16498
16505
  createdAt: text("created_at").notNull().$defaultFn(() => new Date().toISOString())
16499
16506
  }, (t) => [
16500
16507
  index("idx_conversation_agent_lookup").on(t.workspaceId, t.agentId, t.userId, t.type, t.channel, t.createdAt),
16501
16508
  index("idx_conversation_ws_user").on(t.workspaceId, t.userId, t.createdAt),
16509
+ index("idx_conversation_thread").on(t.parentMessageId),
16502
16510
  foreignKey({
16503
16511
  columns: [t.agentId, t.workspaceId],
16504
16512
  foreignColumns: [agent.id, agent.workspaceId]
@@ -19736,6 +19744,13 @@ function buildTaskObject(task, attachments) {
19736
19744
  if (ctx?.quoted_message) {
19737
19745
  obj.quoted_message = ctx.quoted_message;
19738
19746
  }
19747
+ if (ctx?.conversation_history || ctx?.root_message) {
19748
+ obj.thread_context = {
19749
+ note: "The user started this thread by replying to the root_message below. The history is the conversation leading up to it.",
19750
+ ...ctx.root_message ? { root_message: ctx.root_message } : {},
19751
+ ...ctx.conversation_history ? { history: ctx.conversation_history } : {}
19752
+ };
19753
+ }
19739
19754
  }
19740
19755
  if (task.type === "email_notification") {
19741
19756
  const ctx = task.context;
@@ -14840,6 +14840,11 @@ var RecruitAgentRequestSchema = exports_external.object({
14840
14840
  model: exports_external.string().max(100).optional(),
14841
14841
  context_key: exports_external.string().optional()
14842
14842
  });
14843
+ var CreateThreadRequestSchema = exports_external.object({
14844
+ parent_message_id: exports_external.string().min(1),
14845
+ content: exports_external.string().optional().default(""),
14846
+ attachment_ids: exports_external.array(exports_external.string()).optional()
14847
+ });
14843
14848
  // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260607.1_@opentelemetry+api@1.9.1_@typ_f6afd29ff119cf2708e3cf0d0bb9cbc4/node_modules/drizzle-orm/entity.js
14844
14849
  var entityKind = Symbol.for("drizzle:entityKind");
14845
14850
  var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
@@ -16406,10 +16411,13 @@ var conversation = sqliteTable("conversation", {
16406
16411
  title: text("title").notNull().default(""),
16407
16412
  type: text("type").notNull().default(TASK_TYPES.USER_DM_MESSAGE),
16408
16413
  channel: text("channel").notNull().default("default"),
16414
+ parentMessageId: text("parent_message_id"),
16415
+ threadTitle: text("thread_title").notNull().default(""),
16409
16416
  createdAt: text("created_at").notNull().$defaultFn(() => new Date().toISOString())
16410
16417
  }, (t) => [
16411
16418
  index("idx_conversation_agent_lookup").on(t.workspaceId, t.agentId, t.userId, t.type, t.channel, t.createdAt),
16412
16419
  index("idx_conversation_ws_user").on(t.workspaceId, t.userId, t.createdAt),
16420
+ index("idx_conversation_thread").on(t.parentMessageId),
16413
16421
  foreignKey({
16414
16422
  columns: [t.agentId, t.workspaceId],
16415
16423
  foreignColumns: [agent.id, agent.workspaceId]
@@ -18855,6 +18863,13 @@ function buildTaskObject(task, attachments) {
18855
18863
  if (ctx?.quoted_message) {
18856
18864
  obj.quoted_message = ctx.quoted_message;
18857
18865
  }
18866
+ if (ctx?.conversation_history || ctx?.root_message) {
18867
+ obj.thread_context = {
18868
+ note: "The user started this thread by replying to the root_message below. The history is the conversation leading up to it.",
18869
+ ...ctx.root_message ? { root_message: ctx.root_message } : {},
18870
+ ...ctx.conversation_history ? { history: ctx.conversation_history } : {}
18871
+ };
18872
+ }
18858
18873
  }
18859
18874
  if (task.type === "email_notification") {
18860
18875
  const ctx = task.context;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alook/cli",
3
- "version": "0.0.124",
3
+ "version": "0.0.125",
4
4
  "description": "Alook CLI — Enable Your Person Colleague",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/alookai/alook#readme",