@alook/cli 0.0.136 → 0.0.138
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 +5 -4
- package/dist/session-runner.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18781,6 +18781,7 @@ Your email addresses:
|
|
|
18781
18781
|
${emailLines.join(`
|
|
18782
18782
|
`)}
|
|
18783
18783
|
|
|
18784
|
+
These are YOUR OWN agent email addresses — not the user's. You can only send and receive emails through your own addresses. You do NOT have access to the user's personal email inbox.
|
|
18784
18785
|
|
|
18785
18786
|
### Email command quick reference
|
|
18786
18787
|
| Action | Command |
|
|
@@ -19336,12 +19337,12 @@ function releaseSteeringLock(baseDir, contextKey) {
|
|
|
19336
19337
|
}
|
|
19337
19338
|
|
|
19338
19339
|
// daemon/prompt.ts
|
|
19339
|
-
var DM_RESPONSE_NOTICE = "Reply with `alook sync send-dm` — that's the only thing the user sees; your task output and reasoning are not shown." + " Talk to them at milestones like a colleague would, and don't end your turn without sending what they need." + " If this task will take more than 30 seconds, send a quick ack first so the user knows you're on it.";
|
|
19340
|
+
var DM_RESPONSE_NOTICE = "Reply with `alook sync send-dm` — that's the only thing the user sees; your task output and reasoning are not shown." + " Talk to them at milestones like a colleague would, and don't end your turn without sending what they need." + " If this task will take more than 30 seconds, send a quick ack first so the user knows you're on it." + " IMPORTANT: If you were working on a previous task before this message arrived, do NOT silently drop it. After handling this message, return to any prior unfinished work and report the result to the user.";
|
|
19340
19341
|
var EMAIL_NOTICE = "This task was triggered by an incoming email. Reply to the sender via email — use the email sending tool to respond." + " If you need more information or confirmation, email them and then exit." + " Do not wait — when they reply, a new task will be triggered automatically and you will be woken up with their response." + " IMPORTANT: Do not let this email interrupt any task you were previously working on. After handling this email, return to your original task and make sure it reaches completion.";
|
|
19341
19342
|
var CALENDAR_NOTICE = "This task was triggered by a scheduled calendar event." + " If you need to communicate with someone, send an email using the email sending tool." + " If you need more information or confirmation, email them and then exit." + " Do not wait — when they reply, a new task will be triggered automatically and you will be woken up with their response.";
|
|
19342
19343
|
var ISSUE_NOTICE = "This task was triggered by an assigned issue. The issue_id is provided in this message." + " Use `alook issue show --issue_id <issue_id>` to read full context." + " Use `alook issue update --issue_id <issue_id> --status <status>` to change status." + " Use `alook issue comment --issue_id <issue_id> --body <text>` to leave a comment." + " CRITICAL — You MUST manage the issue status correctly. This is NOT optional:" + " 1. Set status to 'in_progress' when you start working." + " 2. If you complete the work yourself: leave a summary comment, then set status to 'review' as your last action. 'review' means there is actual completed work (code, artifact, result) ready for the owner to look at." + " 3. If you delegated work to colleagues and are waiting for their response: KEEP status as 'in_progress' and exit. This is expected — you will be woken up when they reply. Set 'review' only after all delegated work is confirmed complete." + " 4. NEVER set 'review' unless there is concrete completed work for the owner to review. Sending a plan to a colleague is NOT completed work." + " NEVER exit without doing at least one of: updating the status, or leaving a comment explaining what you did and what you're waiting for.";
|
|
19343
|
-
function
|
|
19344
|
-
return `This task was triggered by an incoming email on a conversation with ${name} (${email3}).` + ` ${name} is present in this session — reply to them directly.` + ` If you need to communicate with anyone else, use the email sending tool.`;
|
|
19344
|
+
function buildEmailDmNotice(name, email3) {
|
|
19345
|
+
return `This task was triggered by an incoming email on a conversation with ${name} (${email3}).` + ` ${name} is present in this session — reply to them directly.` + ` If you need to communicate with anyone else, use the email sending tool.` + ` IMPORTANT: Do not let this email interrupt any task you were previously working on. After handling this email, return to your original task and make sure it reaches completion — report the result to the user.`;
|
|
19345
19346
|
}
|
|
19346
19347
|
function buildTaskObject(task, attachments) {
|
|
19347
19348
|
const createdAt = new Date(task.createdAt);
|
|
@@ -19372,7 +19373,7 @@ function buildTaskObject(task, attachments) {
|
|
|
19372
19373
|
const ctx = task.context;
|
|
19373
19374
|
const dmUser = ctx?.dmUser;
|
|
19374
19375
|
if (ctx?.conversationType === "user_dm_message" && dmUser) {
|
|
19375
|
-
obj.notice =
|
|
19376
|
+
obj.notice = buildEmailDmNotice(dmUser.name, dmUser.email);
|
|
19376
19377
|
} else {
|
|
19377
19378
|
obj.notice = EMAIL_NOTICE;
|
|
19378
19379
|
}
|
package/dist/session-runner.js
CHANGED
|
@@ -18361,6 +18361,7 @@ Your email addresses:
|
|
|
18361
18361
|
${emailLines.join(`
|
|
18362
18362
|
`)}
|
|
18363
18363
|
|
|
18364
|
+
These are YOUR OWN agent email addresses — not the user's. You can only send and receive emails through your own addresses. You do NOT have access to the user's personal email inbox.
|
|
18364
18365
|
|
|
18365
18366
|
### Email command quick reference
|
|
18366
18367
|
| Action | Command |
|
|
@@ -18833,12 +18834,12 @@ function clearKillIntent(baseDir, taskId) {
|
|
|
18833
18834
|
}
|
|
18834
18835
|
|
|
18835
18836
|
// daemon/prompt.ts
|
|
18836
|
-
var DM_RESPONSE_NOTICE = "Reply with `alook sync send-dm` — that's the only thing the user sees; your task output and reasoning are not shown." + " Talk to them at milestones like a colleague would, and don't end your turn without sending what they need." + " If this task will take more than 30 seconds, send a quick ack first so the user knows you're on it.";
|
|
18837
|
+
var DM_RESPONSE_NOTICE = "Reply with `alook sync send-dm` — that's the only thing the user sees; your task output and reasoning are not shown." + " Talk to them at milestones like a colleague would, and don't end your turn without sending what they need." + " If this task will take more than 30 seconds, send a quick ack first so the user knows you're on it." + " IMPORTANT: If you were working on a previous task before this message arrived, do NOT silently drop it. After handling this message, return to any prior unfinished work and report the result to the user.";
|
|
18837
18838
|
var EMAIL_NOTICE = "This task was triggered by an incoming email. Reply to the sender via email — use the email sending tool to respond." + " If you need more information or confirmation, email them and then exit." + " Do not wait — when they reply, a new task will be triggered automatically and you will be woken up with their response." + " IMPORTANT: Do not let this email interrupt any task you were previously working on. After handling this email, return to your original task and make sure it reaches completion.";
|
|
18838
18839
|
var CALENDAR_NOTICE = "This task was triggered by a scheduled calendar event." + " If you need to communicate with someone, send an email using the email sending tool." + " If you need more information or confirmation, email them and then exit." + " Do not wait — when they reply, a new task will be triggered automatically and you will be woken up with their response.";
|
|
18839
18840
|
var ISSUE_NOTICE = "This task was triggered by an assigned issue. The issue_id is provided in this message." + " Use `alook issue show --issue_id <issue_id>` to read full context." + " Use `alook issue update --issue_id <issue_id> --status <status>` to change status." + " Use `alook issue comment --issue_id <issue_id> --body <text>` to leave a comment." + " CRITICAL — You MUST manage the issue status correctly. This is NOT optional:" + " 1. Set status to 'in_progress' when you start working." + " 2. If you complete the work yourself: leave a summary comment, then set status to 'review' as your last action. 'review' means there is actual completed work (code, artifact, result) ready for the owner to look at." + " 3. If you delegated work to colleagues and are waiting for their response: KEEP status as 'in_progress' and exit. This is expected — you will be woken up when they reply. Set 'review' only after all delegated work is confirmed complete." + " 4. NEVER set 'review' unless there is concrete completed work for the owner to review. Sending a plan to a colleague is NOT completed work." + " NEVER exit without doing at least one of: updating the status, or leaving a comment explaining what you did and what you're waiting for.";
|
|
18840
|
-
function
|
|
18841
|
-
return `This task was triggered by an incoming email on a conversation with ${name} (${email3}).` + ` ${name} is present in this session — reply to them directly.` + ` If you need to communicate with anyone else, use the email sending tool.`;
|
|
18841
|
+
function buildEmailDmNotice(name, email3) {
|
|
18842
|
+
return `This task was triggered by an incoming email on a conversation with ${name} (${email3}).` + ` ${name} is present in this session — reply to them directly.` + ` If you need to communicate with anyone else, use the email sending tool.` + ` IMPORTANT: Do not let this email interrupt any task you were previously working on. After handling this email, return to your original task and make sure it reaches completion — report the result to the user.`;
|
|
18842
18843
|
}
|
|
18843
18844
|
function buildTaskObject(task, attachments) {
|
|
18844
18845
|
const createdAt = new Date(task.createdAt);
|
|
@@ -18869,7 +18870,7 @@ function buildTaskObject(task, attachments) {
|
|
|
18869
18870
|
const ctx = task.context;
|
|
18870
18871
|
const dmUser = ctx?.dmUser;
|
|
18871
18872
|
if (ctx?.conversationType === "user_dm_message" && dmUser) {
|
|
18872
|
-
obj.notice =
|
|
18873
|
+
obj.notice = buildEmailDmNotice(dmUser.name, dmUser.email);
|
|
18873
18874
|
} else {
|
|
18874
18875
|
obj.notice = EMAIL_NOTICE;
|
|
18875
18876
|
}
|