feat(box): enable real-time agent tool triggers and capabilities expansion

This commit is contained in:
operator
2026-10-05 03:41:43 +00:00
parent 0e99e31fe9
commit 31c03e0d0f
5 changed files with 425 additions and 48 deletions
+57
View File
@@ -240,6 +240,56 @@ case "$cmd" in
;;
esac
;;
cron)
sub="${1:-runs}"
shift || true
case "$sub" in
runs|list)
call_exec "cron.runs" "{}"
;;
status)
name="${1:-heartbeat}"
args=$(python3 -c "import json, sys; print(json.dumps({'name': sys.argv[1]}))" "$name")
call_exec "cron.status" "$args"
;;
view)
name="${1:?usage: box cron view <name>}"
args=$(python3 -c "import json, sys; print(json.dumps({'name': sys.argv[1]}))" "$name")
call_exec "cron.view" "$args"
;;
run)
name="${1:?usage: box cron run <name>}"
args=$(python3 -c "import json, sys; print(json.dumps({'job': sys.argv[1]}))" "$name")
call_exec "cron.run" "$args"
;;
*)
echo "Usage: box cron runs|status|view|run ..."
;;
esac
;;
vars)
sub="${1:-list}"
shift || true
case "$sub" in
list)
call_exec "vars.list" "{}"
;;
get)
name="${1:?usage: box vars get <name>}"
args=$(python3 -c "import json, sys; print(json.dumps({'name': sys.argv[1]}))" "$name")
call_exec "vars.get" "$args"
;;
set)
name="${1:?usage: box vars set <name> <value>}"
val="${2:?usage: box vars set <name> <value>}"
args=$(python3 -c "import json, sys; print(json.dumps({'name': sys.argv[1], 'value': sys.argv[2]}))" "$name" "$val")
call_exec "vars.set" "$args"
;;
*)
echo "Usage: box vars list|get|set ..."
;;
esac
;;
health)
call_exec "health.check" "{}"
;;
@@ -261,6 +311,13 @@ Usage:
box dm read [<target=main>] [<limit=10>]
box thread list [<agent>]
box thread view <thread_id> [<limit=15>]
box cron runs
box cron status [<name=heartbeat>]
box cron view <name>
box cron run <name>
box vars list
box vars get <name>
box vars set <name> <value>
box health
box ping
box ops