Commit Graph

10 Commits

Author SHA1 Message Date
Khalid A
464d2c8230 Fix LLM returning null for repo_relative_path in routing
Two changes:
1. Add `format: "json"` to Ollama API calls so the model enforces
   JSON output mode, reducing malformed responses
2. Strengthen the routing prompt with explicit type constraints
   ("NEVER null or empty"), rules to copy manifest paths exactly,
   and a concrete example response

This fixes the validation error: "repo_relative_path: Expected
string, received null" from qwen3.5:397b-cloud.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 20:07:16 -05:00
Khalid A
75e4c96a78 Fix allowedSenders to use actual sender phone number
The allowedSenders had the Telnyx inbound number (+14157049277)
instead of the sender's phone number (+18322070387). This caused
all inbound SMS to be rejected since the sender wasn't in the allowlist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 20:00:18 -05:00
Khalid A
3a151f3832 Add message text logging to SMS webhook handler
- Log the message text for regular SMS: "Received text" with text content
- Log "Received image" for MMS messages without the content
- Includes masked phone number and message ID in both cases

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 18:26:51 -05:00
khalid@traclabs.com
84121b46ae Undo git push change 2026-04-17 16:43:52 -05:00
khalid@traclabs.com
9cef82b0bd Test git push 2026-04-17 16:43:34 -05:00
khalid@traclabs.com
fdcaabf61e Update allowed phone number 2026-04-17 16:41:23 -05:00
Khalid A
61dad7c172 Fix canonical format of config/sms-sites.json
The sms-sites.json file was not in canonical format (sorted keys,
2-space indent, trailing newline), causing `npm run build` to fail
during the `check:content` step in Docker.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 16:25:57 -05:00
Khalid A
875f377194 Fix Docker build: replace workspace:* with file: references
npm doesn't support the `workspace:*` protocol (that's pnpm/Yarn).
This caused `npm install` to fail with EUNSUPPORTEDPROTOCOL during
Docker builds. Replaced both occurrences with `file:` relative paths
that npm workspaces resolves correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 16:17:58 -05:00
kadil
4ee4cb8e7c First cut 2026-04-17 16:08:31 -05:00
d10105ac00 Initial commit 2026-04-17 21:07:34 +00:00