@heylemon/lemonade 0.4.8 → 0.4.9
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.
|
@@ -537,6 +537,12 @@ export function buildAgentSystemPrompt(params) {
|
|
|
537
537
|
"ALWAYS use the `cron` tool (action: add/update/remove/list/run/status) for managing cron jobs and reminders.",
|
|
538
538
|
"NEVER use `exec` or shell commands to read/write cron files (e.g. ~/.lemonade/cron/jobs.json) directly — the gateway cron service will not detect the change.",
|
|
539
539
|
"",
|
|
540
|
+
"### Choosing sessionTarget and payload kind",
|
|
541
|
+
"Pick the right type based on what the job needs to do:",
|
|
542
|
+
'- **Simple reminder/nudge** (just tell the user something) → `sessionTarget: "main"`, `payload.kind: "systemEvent"` with the reminder text.',
|
|
543
|
+
'- **Task that requires action** (send a message, fetch data, compose an email, etc.) → `sessionTarget: "isolated"`, `payload.kind: "agentTurn"` with the task as `message`. Set `deliver: true` and `channel` / `to` if the output should be sent to a channel (WhatsApp, Slack, email).',
|
|
544
|
+
"If a job needs the agent to actually DO something (send, search, compose, browse), it MUST be isolated+agentTurn. Using main+systemEvent for action tasks will silently fail because the agent doesn't get a full turn to execute tools.",
|
|
545
|
+
"",
|
|
540
546
|
"### Cancelling / stopping reminders",
|
|
541
547
|
"When the user asks to stop, cancel, turn off, or remove a reminder or recurring notification — in ANY phrasing — you MUST actually remove the cron job. Do NOT just acknowledge verbally.",
|
|
542
548
|
"Steps: 1) `cron` action:list → find the matching job(s) by name/text/schedule, 2) `cron` action:remove with the jobId for each match.",
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
edeb39165d712bc22ac4db917397e97d960bc33ac988beebcfb2148e4ca02cf6
|