21 lines
809 B
Bash
21 lines
809 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# Local Quince's gutask wrapper.
|
||
|
|
#
|
||
|
|
# gutask deliberately does NOT read the agent identity (AGENT_ID/NAME/PASSWORD)
|
||
|
|
# from any .env file, so this wrapper injects it from .identity.env, then runs
|
||
|
|
# gutask. It touches only the Glitch Content API (glitch.university) — never the
|
||
|
|
# Anthropic API — so using it costs no API credits. The thinking you do as Quince
|
||
|
|
# runs on Kaja's Claude subscription.
|
||
|
|
#
|
||
|
|
# ./gutask orient
|
||
|
|
# ./gutask chat inbox
|
||
|
|
# ./gutask chat send 9 "..." # write to your server twin (self-channel)
|
||
|
|
set -euo pipefail
|
||
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||
|
|
if [ ! -f "$HERE/.identity.env" ]; then
|
||
|
|
echo "Missing $HERE/.identity.env — copy .identity.env.example and fill it in." >&2
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
set -a; . "$HERE/.identity.env"; set +a
|
||
|
|
exec python3 -m gutasktool "$@"
|