@alook/cli 0.0.12 → 0.0.13
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 +7 -1
- package/dist/session-runner.js +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14040,6 +14040,9 @@ var CreateConversationRequestSchema = exports_external.object({
|
|
|
14040
14040
|
var CreateMessageRequestSchema = exports_external.object({
|
|
14041
14041
|
content: exports_external.string().min(1, "content is required")
|
|
14042
14042
|
});
|
|
14043
|
+
var CreateBufferedMessageRequestSchema = exports_external.object({
|
|
14044
|
+
content: exports_external.string().min(1, "content is required")
|
|
14045
|
+
});
|
|
14043
14046
|
var EmailAttachmentSchema = exports_external.object({
|
|
14044
14047
|
key: exports_external.string().min(1),
|
|
14045
14048
|
filename: exports_external.string().min(1),
|
|
@@ -15626,8 +15629,11 @@ var message = sqliteTable("message", {
|
|
|
15626
15629
|
content: text("content").notNull().default(""),
|
|
15627
15630
|
taskId: text("task_id"),
|
|
15628
15631
|
attachmentIds: text("attachment_ids"),
|
|
15632
|
+
status: text("status").notNull().default("active"),
|
|
15629
15633
|
createdAt: text("created_at").notNull().$defaultFn(() => new Date().toISOString())
|
|
15630
|
-
})
|
|
15634
|
+
}, (t) => [
|
|
15635
|
+
index("idx_message_conversation_status").on(t.conversationId, t.status)
|
|
15636
|
+
]);
|
|
15631
15637
|
var agentTaskQueue = sqliteTable("agent_task_queue", {
|
|
15632
15638
|
id: text("id").primaryKey().$defaultFn(() => nanoid3()),
|
|
15633
15639
|
agentId: text("agent_id").notNull(),
|
package/dist/session-runner.js
CHANGED
|
@@ -13757,6 +13757,9 @@ var CreateConversationRequestSchema = exports_external.object({
|
|
|
13757
13757
|
var CreateMessageRequestSchema = exports_external.object({
|
|
13758
13758
|
content: exports_external.string().min(1, "content is required")
|
|
13759
13759
|
});
|
|
13760
|
+
var CreateBufferedMessageRequestSchema = exports_external.object({
|
|
13761
|
+
content: exports_external.string().min(1, "content is required")
|
|
13762
|
+
});
|
|
13760
13763
|
var EmailAttachmentSchema = exports_external.object({
|
|
13761
13764
|
key: exports_external.string().min(1),
|
|
13762
13765
|
filename: exports_external.string().min(1),
|
|
@@ -15343,8 +15346,11 @@ var message = sqliteTable("message", {
|
|
|
15343
15346
|
content: text("content").notNull().default(""),
|
|
15344
15347
|
taskId: text("task_id"),
|
|
15345
15348
|
attachmentIds: text("attachment_ids"),
|
|
15349
|
+
status: text("status").notNull().default("active"),
|
|
15346
15350
|
createdAt: text("created_at").notNull().$defaultFn(() => new Date().toISOString())
|
|
15347
|
-
})
|
|
15351
|
+
}, (t) => [
|
|
15352
|
+
index("idx_message_conversation_status").on(t.conversationId, t.status)
|
|
15353
|
+
]);
|
|
15348
15354
|
var agentTaskQueue = sqliteTable("agent_task_queue", {
|
|
15349
15355
|
id: text("id").primaryKey().$defaultFn(() => nanoid3()),
|
|
15350
15356
|
agentId: text("agent_id").notNull(),
|
|
@@ -16589,7 +16595,7 @@ ${task.agent?.userEmail ? `Your owner's email address is '${task.agent.userEmail
|
|
|
16589
16595
|
|
|
16590
16596
|
### Emails
|
|
16591
16597
|
---
|
|
16592
|
-
Run 'npx @alook/cli pull --agent_id ${task.agentId} --status unread' to download unread emails to '/tmp/alook-emails/'.
|
|
16598
|
+
Run 'npx @alook/cli email pull --agent_id ${task.agentId} --status unread' to download unread emails to '/tmp/alook-emails/'.
|
|
16593
16599
|
Each email is saved to '/tmp/alook-emails/<emailId>/' with:
|
|
16594
16600
|
- 'metadata.json' — sender, recipient, subject, date, status, message_id, in_reply_to, references
|
|
16595
16601
|
- 'body.txt' — plain text body
|
|
@@ -16597,7 +16603,7 @@ Each email is saved to '/tmp/alook-emails/<emailId>/' with:
|
|
|
16597
16603
|
- 'attachments/' — extracted attachment files (if any)
|
|
16598
16604
|
---
|
|
16599
16605
|
Before starting to process an email, mark it as read:
|
|
16600
|
-
- Run 'npx @alook/cli set --agent_id ${task.agentId} --email_id <EMAIL_ID> --status read'
|
|
16606
|
+
- Run 'npx @alook/cli email set --agent_id ${task.agentId} --email_id <EMAIL_ID> --status read'
|
|
16601
16607
|
---
|
|
16602
16608
|
|
|
16603
16609
|
#### Sending a new email
|