run verb #59
Labels
No labels
epic
in-review
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
weiwen/evie#59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#55
What to build
Add the
runVerb: the Daemon executes a local script/command with evie's env context populated, fire-and-forget. The Daemon (not the CLI) spawns the process, so immediate and (later) scheduledrunbehave identically.Env populated:
EVIE_CHAT_ID(resolved target chat) andEVIE_SOCKET(control socket path), so the script's ownevie …callbacks resolve the right chat and daemon with no config. (EVIE_SCHEDULE_NAME/EVIE_SCHEDULE_TIMEare added by the scheduling slice, only when fired from a Schedule.)Output handling is fire-and-forget: evie does not deliver stdout anywhere — the script calls
evie senditself if it wants to message the chat. Logging: stdout at debug, exit code at info, errors (non-zero exit / spawn failure / stderr) at warn.Demoable:
evie run /tmp/x.shruns the script withEVIE_CHAT_ID/EVIE_SOCKETset; a script that callsevie send "$EVIE_CHAT_ID …"can message the chat back.Acceptance criteria
evie run <script> [args…]is spawned by the Daemon withEVIE_CHAT_ID+EVIE_SOCKETin its environment.runcan successfully call back intoevie(e.g.evie send) using the injected env.Blocked by