| name | secondo-dependencies |
| description | Dependencies required for /secondo command |
| type | setup |
| scope | project |
/secondo Command Dependencies
This document lists the dependencies required for the /secondo command to function properly.
Node.js Dependencies
The authentication system (scripts/auth-cli.mjs) requires Node.js packages.
✅ Included in PR: A root package.json with express dependency is now included.
npm install
Required packages:
express (^4.19.2) - Web framework for OAuth callback server
- Node.js built-ins (http, fs, os, path, child_process)
Note: The package.json includes "type": "module" to support ES modules used by auth-cli.mjs.
System Dependencies
HTTPie (Preferred)
brew install httpie
apt-get install httpie
pip install httpie
curl (Fallback)
Usually pre-installed on most systems. If not:
brew install curl
apt-get install curl
jq (JSON Processing)
Required for JSON parsing in the CLI script:
brew install jq
apt-get install jq
Firebase Configuration
Set environment variables for Firebase authentication:
export FIREBASE_API_KEY="your-api-key"
export FIREBASE_AUTH_DOMAIN="your-project.firebaseapp.com"
export FIREBASE_PROJECT_ID="your-project-id"
Verification
Check Node.js Dependencies
node -e "require('express')" && echo "✅ express installed" || echo "❌ express missing"
node scripts/auth-cli.mjs
Check System Tools
command -v http >/dev/null && echo "✅ HTTPie installed" || echo "❌ HTTPie missing"
command -v curl >/dev/null && echo "✅ curl installed" || echo "❌ curl missing"
command -v jq >/dev/null && echo "✅ jq installed" || echo "❌ jq missing"
Test Authentication (After Dependencies)
node scripts/auth-cli.mjs status
Complete Setup
npm install
brew install httpie jq
apt-get install httpie jq
export FIREBASE_API_KEY="your-key"
export FIREBASE_AUTH_DOMAIN="your-domain"
export FIREBASE_PROJECT_ID="your-project"
node scripts/auth-cli.mjs login
~/.claude/scripts/secondo-cli.sh "test question"
Troubleshooting
"Cannot find package 'express'"
Install Node.js dependencies from the project root:
npm install
"http: command not found"
The script will automatically fall back to curl. But for best experience:
brew install httpie
"jq: command not found"
Install jq for JSON processing:
brew install jq
Firebase configuration errors
Ensure environment variables are set:
echo $FIREBASE_API_KEY
echo $FIREBASE_AUTH_DOMAIN
echo $FIREBASE_PROJECT_ID
See Also