Commit Graph

6 Commits

Author SHA1 Message Date
030bf007cc Use text() for both request and response parsing
- request.json() may not be available in wws
- Parse request body manually with JSON.parse

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 06:06:27 +01:00
97dbd958cc Fix chat endpoint - use text() instead of json()
- wws Response object may not have json() method
- Parse response manually with JSON.parse

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 06:05:30 +01:00
838cac2bbf Use addEventListener fetch pattern for wws
- Switch to addEventListener('fetch') pattern
- Use response.headers.set() instead of headers object
- wws uses Fetch API event handler pattern
- Avoid URL constructor (not available in wws)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 06:03:42 +01:00
3fcebac27f Switch to ES module exports for wws runtime
- Replace module.exports with export default
- wws uses ES modules, not CommonJS
- Fixes 'module is not defined' error

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 06:01:10 +01:00
02d32536a0 Fix wws runtime compatibility - use module.exports pattern
- Update api/index.js to use handler export format
- Update chat/index.js to use handler export format
- Update webhook/index.js to use handler export format
- Remove addEventListener('fetch') pattern incompatible with wws
- Remove URL API usage (not available in wws JS runtime)
- Remove spread operator for better compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 05:56:18 +01:00
c8a8ea007d Initial wws serverless functions setup
- Add health check API endpoint (/api)
- Add chat proxy to n8n workflow (/chat)
- Add webhook receiver for external integrations (/webhook)
- Add Dockerfile for container deployment
- Add wws.toml configuration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 05:43:11 +01:00