Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
# @ai-sdk/* declare "node": ">=22". Node 20 is unsupported by our own
# dependencies and npm 10 (bundled with 20) resolved packages the
# lockfile does not contain, breaking the build.
node-version: 22
cache: npm

# `npm ci` installs strictly from package-lock.json. A drifted node_modules
# is exactly what broke the build for a month without anyone noticing.
- name: Install
run: npm ci

# Diagnostic: CI installs 377 packages where macOS installs 369 from the
# same byte-identical lockfile, pulling @ai-sdk/*@4.0.0 which the lock
# does not contain. Print the resolved tree so the mismatch is visible.
- name: Show resolved AI SDK versions
run: |
node -v && npm -v
npm ls @ai-sdk/groq @ai-sdk/gateway @ai-sdk/provider @ai-sdk/provider-utils ai || true
cat .npmrc 2>/dev/null || echo "(no repo .npmrc)"

- name: Typecheck
run: npx tsc --noEmit

- name: Lint
run: npm run lint

- name: Build
run: npm run build
2 changes: 1 addition & 1 deletion app/api/goal-plan/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { groq } from '@ai-sdk/groq';
import { generateText } from 'ai';
import { z } from 'zod';

const MODEL = groq('llama-3.3-70b-versatile');
const MODEL = groq('openai/gpt-oss-20b');

export const maxDuration = 30;

Expand Down
2 changes: 1 addition & 1 deletion app/api/voice-pep/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { z } from 'zod';

export const maxDuration = 30;

const TEXT_MODEL = groq('llama-3.3-70b-versatile');
const TEXT_MODEL = groq('openai/gpt-oss-20b');

// ElevenLabs free-tier starter voice. Override with ELEVENLABS_VOICE_ID env to swap.
const DEFAULT_VOICE_ID = 'EXAVITQu4vr4xnSDxMaL'; // Sarah - warm, calm female
Expand Down
2 changes: 1 addition & 1 deletion app/api/weekly-insight/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { groq } from '@ai-sdk/groq';
import { generateText } from 'ai';
import { z } from 'zod';

const MODEL = groq('llama-3.3-70b-versatile');
const MODEL = groq('openai/gpt-oss-20b');

export const maxDuration = 30;

Expand Down
50 changes: 29 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"overrides": {
"postcss": "^8.5.15",
"@ai-sdk/provider-utils": "^4.0.41",
"@ai-sdk/provider-utils": "^5.0.0",
"undici": "^6.21.1"
},
"devDependencies": {
Expand Down
Loading