Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .agent/repo=.this/role=any/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this role applies to any agent that works within this repo
59 changes: 59 additions & 0 deletions .agent/repo=.this/role=any/skills/use.apikeys.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env bash
######################################################################
# .what = export api keys for integration tests
# .why = enables running integration tests that require api keys
#
# usage:
# source .agent/repo=.this/role=any/skills/use.apikeys.sh
#
# note:
# - must be called with `source` to export vars to current shell
# - loads from ~/.config/rhachet/apikeys.env if available
# - falls back to .env.local (gitignored) in repo root
######################################################################

# fail if not sourced
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "error: this script must be sourced, not executed"
echo "usage: source ${BASH_SOURCE[0]}"
exit 1
fi

# try loading from user config first
if [[ -f ~/.config/rhachet/apikeys.env ]]; then
source ~/.config/rhachet/apikeys.env
echo "✓ loaded api keys from ~/.config/rhachet/apikeys.env"

# fallback to local gitignored file
elif [[ -f .env.local ]]; then
source .env.local
echo "✓ loaded api keys from .env.local"

else
echo "⚠ no api keys file found"
echo ""
echo "create one of:"
echo " ~/.config/rhachet/apikeys.env"
echo " .env.local (in repo root)"
echo ""
echo "with contents like:"
echo " export OPENAI_API_KEY=sk-..."
echo " export ANTHROPIC_API_KEY=sk-..."
return 1
fi

# read required keys from json config if present
APIKEYS_CONFIG=".agent/repo=.this/role=any/skills/use.apikeys.json"
if [[ -f "$APIKEYS_CONFIG" ]]; then
# extract required keys using jq
REQUIRED_KEYS=$(jq -r '.apikeys.required[]?' "$APIKEYS_CONFIG" 2>/dev/null)

# verify each required key is set
for KEY in $REQUIRED_KEYS; do
if [[ -z "${!KEY}" ]]; then
echo "⚠ $KEY not set (required by $APIKEYS_CONFIG)"
return 1
fi
echo "✓ $KEY set"
done
fi
1 change: 1 addition & 0 deletions .agent/repo=bhuild/role=behaver/briefs/briefs
1 change: 1 addition & 0 deletions .agent/repo=bhuild/role=behaver/inits
3 changes: 3 additions & 0 deletions .agent/repo=bhuild/role=behaver/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 📐 Behaver

Used to declare clear and testable behaviors that can be reliably built and verified.
1 change: 1 addition & 0 deletions .agent/repo=bhuild/role=behaver/skills/skills
1 change: 1 addition & 0 deletions .agent/repo=ehmpathy/role=mechanic/briefs
1 change: 0 additions & 1 deletion .agent/repo=ehmpathy/role=mechanic/briefs/.briefs

This file was deleted.

1 change: 1 addition & 0 deletions .agent/repo=ehmpathy/role=mechanic/inits
1 change: 1 addition & 0 deletions .agent/repo=ehmpathy/role=mechanic/skills
1 change: 0 additions & 1 deletion .agent/repo=ehmpathy/role=mechanic/skills/.skills

This file was deleted.

7 changes: 7 additions & 0 deletions .depcheckrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ ignores:
- esbuild-register
- "@swc/core"
- "@swc/jest"
- "@src/*"
- "@src/.*"
- rhachet-roles-bhrain
- rhachet-roles-bhuild
- rhachet-roles-ehmpathy
- tsc-alias
- yalc
Loading