Remove unused tools: test.sh, set_state.sh
This commit is contained in:
parent
d26e4b5347
commit
4b0bf70794
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/bash
|
||||
# capabilities: agents
|
||||
# description: Set agent state: AGENT_ID STATE (idle|running|stopped|starting|error|exited)
|
||||
set -euo pipefail
|
||||
|
||||
agent_id="${1:?Usage: set_state <agent_id> <state>}"
|
||||
state="${2:?Usage: set_state <agent_id> <state>}"
|
||||
|
||||
case "$state" in
|
||||
idle|running|stopped|starting|error|exited)
|
||||
echo "$state" | 9p write "agent/${agent_id}/state"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid state: $state" >&2
|
||||
echo "Valid states: idle, running, stopped, starting, error, exited" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
#!/bin/bash
|
||||
# capabilities: testing
|
||||
# description: Test all bash wrappers
|
||||
set -euo pipefail
|
||||
|
||||
echo "Testing read_inbox..."
|
||||
if result=$(./read_inbox.sh user 2>&1); then
|
||||
echo "✓ read_inbox: ${result:0:50}"
|
||||
else
|
||||
echo "✓ read_inbox (no messages): $result"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Testing list_sessions..."
|
||||
sessions=$(./list_sessions.sh)
|
||||
count=$(echo "$sessions" | jq 'length')
|
||||
echo "✓ list_sessions: $count sessions"
|
||||
|
||||
echo ""
|
||||
echo "Testing list_skills..."
|
||||
skills=$(./list_skills.sh)
|
||||
count=$(echo "$skills" | jq 'length')
|
||||
echo "✓ list_skills: $count skills"
|
||||
|
||||
echo ""
|
||||
echo "All wrappers functional"
|
||||
Reference in New Issue