Commit Graph

6 Commits

Author SHA1 Message Date
Justin Massa
3f1dacb8fc chore: cleanup unused import, add safety delay for temp file cleanup
- Remove unused readFileSync import
- Add 100ms delay before deleting temp files to ensure Python has read them

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 20:16:31 -06:00
Justin Massa
2b8b4e5e9b fix: use spawn instead of exec to avoid shell escaping issues
- Replace exec() with spawn() for both clawdbot agent and message sending
- Write AI responses to temp file instead of inline shell escaping
- Eliminates failures with emojis, quotes, and special characters
- Uses gchat_send_file.py helper for reliable message delivery

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 20:13:44 -06:00
Justin Massa
42d26a364a feat: async GChat webhook with Tailscale Funnel support
- Change from execSync to exec for non-blocking AI calls
- Acknowledge messages immediately, send response via Chat API
- Add 5-minute timeout (vs 25s) since async doesn't block
- Add start-gchat-tailscale.sh launcher for Tailscale Funnel
- Remove ngrok dependency

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 19:42:39 -06:00
Justin Massa
34fb5ca9c6 chore(googlechat): fix lint and formatting issues
- Add node: protocol to imports
- Remove unused imports
- Fix any type to unknown with proper typing
- Fix non-null assertions with optional chaining
- Change let to const where appropriate
- Apply formatting and import organization

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 09:16:25 -06:00
Justin Massa
ffb10c898f feat(googlechat): add webhook server and startup script
- Add run-webhook.ts for handling Google Chat messages via HTTP webhook
- Add webhook-server.ts for full Clawdbot integration
- Add start-googlechat.sh startup script for easy launching

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 20:50:27 -06:00
Justin Massa
8bf4401bd8 feat(googlechat): add Google Chat provider
Add Google Chat as the 8th messaging platform, using Pub/Sub for inbound
messages and the Google Chat API for outbound. This enables messaging
with Clawbot via Google Workspace's Google Chat.

Features:
- Pub/Sub-based message monitoring (firewall-friendly)
- Direct message and space support
- Thread support
- Media via cards
- DM/space policy configuration
- Multi-account support

Requires:
- Google Workspace account (not @gmail.com)
- Google Cloud project with Chat API and Pub/Sub enabled
- Service account credentials

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 19:14:21 -06:00