feat: migrate to typed messages, drop base64
Some checks failed
CI / Lint (pull_request) Failing after 1m22s
CI / Test (pull_request) Failing after 1m21s
CI / Release (pull_request) Has been skipped
CI / Notify (pull_request) Successful in 1s

- Switch OnMessage → OnTypedMessage with natsutil.Decode[messages.VoiceRequest]
- Return *messages.VoiceResponse with raw []byte audio (no base64)
- Use messages.DocumentSource for RAG sources
- Remove strVal/boolVal helpers
- Add .dockerignore, GOAMD64=v3 in Dockerfile
- Update tests for typed structs (7 tests pass)
This commit is contained in:
2026-02-20 07:10:51 -05:00
parent f41198d8f2
commit 8ef0c93e47
4 changed files with 117 additions and 82 deletions

View File

@@ -10,7 +10,7 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o /voice-assistant .
RUN CGO_ENABLED=0 GOOS=linux GOAMD64=v3 go build -ldflags="-w -s" -o /voice-assistant .
# Runtime stage
FROM scratch