feat(autonomy): add followup.create primitive and tool-continuation directives to enforce silence-kills-work
This commit is contained in:
+24
-1
@@ -296,8 +296,31 @@ case "$cmd" in
|
||||
args=$(python3 -c "import json, sys; print(json.dumps({'name': sys.argv[1]}))" "$name")
|
||||
call_exec "cron.status" "$args"
|
||||
;;
|
||||
in|delay)
|
||||
min="${1:?usage: box timer in <minutes> <prompt>}"
|
||||
shift
|
||||
prompt="${*:?usage: box timer in <minutes> <prompt>}"
|
||||
args=$(python3 -c "import json, sys; print(json.dumps({'agent': sys.argv[1], 'in_m': float(sys.argv[2]), 'prompt': sys.argv[3]}))" "$AGENT" "$min" "$prompt")
|
||||
call_exec "followup.create" "$args"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: box timer create|start|status <name>"
|
||||
echo "Usage: box timer create|start|status <name> OR box timer in <minutes> <prompt>"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
followup)
|
||||
sub="${1:-create}"
|
||||
shift || true
|
||||
case "$sub" in
|
||||
create|set|schedule)
|
||||
min="${1:?usage: box followup create <minutes> <prompt>}"
|
||||
shift
|
||||
prompt="${*:?usage: box followup create <minutes> <prompt>}"
|
||||
args=$(python3 -c "import json, sys; print(json.dumps({'agent': sys.argv[1], 'in_m': float(sys.argv[2]), 'prompt': sys.argv[3]}))" "$AGENT" "$min" "$prompt")
|
||||
call_exec "followup.create" "$args"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: box followup create <minutes> <prompt>"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user