Fix docs: check_inbox.sh takes no args
This commit is contained in:
parent
4cf346934d
commit
2dc9961bea
|
|
@ -14,7 +14,7 @@ agent_id="$1"
|
|||
count=0
|
||||
|
||||
while true; do
|
||||
msg=$(./check_inbox.sh "$agent_id" 2>&1)
|
||||
msg=$(./check_inbox.sh 2>&1)
|
||||
if [[ "$msg" == "No messages" ]]; then
|
||||
break
|
||||
fi
|
||||
|
|
@ -56,7 +56,7 @@ attempts=0
|
|||
max_attempts=10
|
||||
|
||||
while [ $attempts -lt $max_attempts ]; do
|
||||
msg=$(./check_inbox.sh "$agent_id" 2>&1)
|
||||
msg=$(./check_inbox.sh 2>&1)
|
||||
|
||||
if echo "$msg" | grep -q "$keyword"; then
|
||||
echo "Found message with keyword: $keyword"
|
||||
|
|
@ -155,7 +155,7 @@ Route messages based on content:
|
|||
agent_id="$1"
|
||||
|
||||
while true; do
|
||||
msg=$(./check_inbox.sh "$agent_id" 2>&1)
|
||||
msg=$(./check_inbox.sh 2>&1)
|
||||
|
||||
if [[ "$msg" == "No messages" ]]; then
|
||||
sleep 5
|
||||
|
|
@ -230,7 +230,7 @@ processed=0
|
|||
errors=0
|
||||
|
||||
while true; do
|
||||
msg=$(./check_inbox.sh "$agent_id" 2>&1)
|
||||
msg=$(./check_inbox.sh 2>&1)
|
||||
|
||||
if [[ "$msg" == "No messages" ]]; then
|
||||
break
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ Discover available helper scripts on-demand via 9P:
|
|||
Read and invoke a specific script:
|
||||
|
||||
```bash
|
||||
bash <(9p read anvillm/tools/check_inbox.sh) <agent-id>
|
||||
bash <(9p read anvillm/tools/check_inbox.sh)
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Read a script to see its usage:
|
|||
Invoke a script:
|
||||
|
||||
```bash
|
||||
bash <(9p read anvillm/tools/check_inbox.sh) <agent-id>
|
||||
bash <(9p read anvillm/tools/check_inbox.sh)
|
||||
```
|
||||
|
||||
## Common Patterns
|
||||
|
|
@ -30,7 +30,7 @@ bash <(9p read anvillm/tools/check_inbox.sh) <agent-id>
|
|||
|
||||
```bash
|
||||
# Check inbox
|
||||
bash <(9p read anvillm/tools/check_inbox.sh) "$AGENT_ID"
|
||||
bash <(9p read anvillm/tools/check_inbox.sh)
|
||||
|
||||
# Send message
|
||||
bash <(9p read anvillm/tools/send_message.sh) \
|
||||
|
|
|
|||
Reference in New Issue