Files
grimoire/bot/package.json
Claude 0584d669b8 feat(bot): Add test-assistant script for testing LLM in isolation
Adds npm run assistant "question" command to test the LLM processing
without needing the Nostr connection.

Also:
- Add proper API key validation with clear error message
- Add debug logging (DEBUG=1) for troubleshooting

Usage:
  export ANTHROPIC_API_KEY=sk-ant-...
  npm run assistant "how do I see what my contacts are zapping"

https://claude.ai/code/session_01X4HWkMGrghBv2RfY89L5Lz
2026-02-03 12:33:19 +00:00

26 lines
622 B
JSON

{
"name": "@grimoire/bot",
"version": "0.0.1",
"description": "Grimoire REQ assistant bot for Nostr group chat",
"type": "module",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsx src/index.ts",
"assistant": "tsx src/test-assistant.ts"
},
"dependencies": {
"@mariozechner/pi-ai": "^0.51.2",
"@noble/hashes": "^1.8.0",
"@sinclair/typebox": "^0.34.48",
"nostr-tools": "^2.10.4",
"websocket-polyfill": "^0.0.3"
},
"devDependencies": {
"@types/node": "^22.10.5",
"tsx": "^4.19.2",
"typescript": "^5.7.2"
}
}