use native Claude Code installer (curl | bash), check prerequisites in birth
- install-cli.sh: suggest curl -sL https://claude.ai/install.sh | bash - birth.sh: check colony, colony-agent, claude are in PATH before starting - Fail fast with clear error messages if anything is missing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
BIN
.claude/.DS_Store
vendored
Normal file
BIN
.claude/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
crates/.DS_Store
vendored
Normal file
BIN
crates/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -20,6 +20,18 @@ case "${NAME}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Check prerequisites
|
||||||
|
for cmd in colony colony-agent; do
|
||||||
|
if ! command -v "${cmd}" &>/dev/null; then
|
||||||
|
echo "ERROR: ${cmd} not found. Run: sudo bash scripts/install-cli.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if ! command -v claude &>/dev/null; then
|
||||||
|
echo "ERROR: claude not found. Install with: curl -sL https://claude.ai/install.sh | bash"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "=== Birthing agent: ${NAME} ==="
|
echo "=== Birthing agent: ${NAME} ==="
|
||||||
echo "Instruction: ${INSTRUCTION}"
|
echo "Instruction: ${INSTRUCTION}"
|
||||||
echo "Colony: ${COLONY_URL}"
|
echo "Colony: ${COLONY_URL}"
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ echo "colony: $(${INSTALL_DIR}/colony --version 2>/dev/null || echo 'insta
|
|||||||
echo "colony-agent: $(${INSTALL_DIR}/colony-agent --version 2>/dev/null || echo 'installed')"
|
echo "colony-agent: $(${INSTALL_DIR}/colony-agent --version 2>/dev/null || echo 'installed')"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Next: install Claude Code if not already installed:"
|
echo "Next: install Claude Code if not already installed:"
|
||||||
echo " npm install -g @anthropic-ai/claude-code"
|
echo " curl -sL https://claude.ai/install.sh | bash"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Then birth an agent:"
|
echo "Then birth an agent:"
|
||||||
echo " sudo bash scripts/birth.sh scout 'help with research'"
|
echo " sudo bash scripts/birth.sh scout 'help with research'"
|
||||||
|
|||||||
Reference in New Issue
Block a user