scripts
Durable Scripts
This skill's scripts/scripts.sh launcher lives inside this skill directory
and calls the identity-bound daemon through TARIBOY_TOOLS_SOCKET.
Execute the launcher when command execution is available. If it is unavailable,
return the exact command instead; never claim a script was queued, scheduled,
rerun, cancelled, or removed unless the command succeeded.
Run once with scripts/scripts.sh run <name> -- <command>. Queue it exactly once,
finish the iteration, and consume the later script.result message instead of
waiting in the current iteration.
Run repeatedly with scripts/scripts.sh schedule <name> --every <seconds> -- <command>.
Runs never overlap. A run that exits with $TARIBOY_QUIET_EXIT (111)
publishes nothing and keeps the schedule; it is the only outcome that does.
The daemon exports the code to every run, so a shell command stays quiet with
exit "${TARIBOY_QUIET_EXIT:-111}" and a Python one with
sys.exit(int(os.environ.get("TARIBOY_QUIET_EXIT", "111"))).