rowboat/apps/x/packages/core/src
Ramnique Singh cc2daf1874 chore(x): migrate to AI SDK 7
Bump apps/x from AI SDK v5 to v7 (single hop through the 6-0 and 7-0
migration guides). All deps upgraded via pnpm --filter:
ai@7, @ai-sdk/{anthropic@4,google@4,openai@4,openai-compatible@3,provider@4},
@openrouter/ai-sdk-provider@3, ollama-ai-provider-v2@4.

Changes (per the official migration guides):
- Provider spec bumped V2->V4: ProviderV2 -> ProviderV4 (models.ts, gateway.ts)
- streamText: result.fullStream -> result.stream (+ StreamTextInvoker seam,
  test fakes); stepCountIs -> isStepCount
- system -> instructions on SDK generateText/streamText/generateObject calls
  (left our own generateObjectSafe.system param untouched)
- allowSystemInMessages: true on calls passing stored messages (v7 rejects
  system-role messages in the array by default; convertFromMessages emits them)
- image content part {type:'image'} -> {type:'file'} (message-encoding.ts)
- tool() no longer accepts a `name` key (removed; tools keyed by ToolSet key)
- usage token relocation: cachedInputTokens -> inputTokenDetails.cacheReadTokens,
  reasoningTokens -> outputTokenDetails.reasoningTokens (mapUsage rewrite);
  renderer decoupled from LanguageModelUsage to a local flat UsageSummary
- providerMetadata relay cast to shared ProviderOptions (spec loosened)

No persisted-data changes: @x/shared is AI-SDK-free, so old chats
list/view/continue unchanged. Full typecheck clean; 637 tests pass
(shared 107, core 447, renderer 83); main.cjs bundles ESM-only ai into CJS.

Pending live check (needs creds): OpenAI strictJsonSchema now defaults true
in v7 and may reject zod schemas for openai-family flavors at runtime.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 16:22:36 +05:30
..
account use rowboat model gateway when logged in 2026-03-12 23:29:42 +05:30
agent-schedule refactor(x): the runtime moves under one roof — core/src/runtime/ 2026-07-10 16:30:26 +05:30
analytics merge dev into feature/apps-v1 2026-07-05 01:08:35 +05:30
application refactor(x): single live homes for getErrorDetails and isPathInside 2026-07-10 17:54:43 +05:30
apps chore(x): migrate to AI SDK 7 2026-07-13 16:22:36 +05:30
auth Drive (#583) 2026-06-23 03:13:58 +05:30
background-tasks refactor(x): the runtime moves under one roof — core/src/runtime/ 2026-07-10 16:30:26 +05:30
billing feat(billing): consume plan variant catalog 2026-06-19 16:52:22 +05:30
channels refactor(x): the runtime moves under one roof — core/src/runtime/ 2026-07-10 16:30:26 +05:30
code-mode refactor(x): the runtime moves under one roof — core/src/runtime/ 2026-07-10 16:30:26 +05:30
composio feat: native google sign-in for signed-in users 2026-05-05 14:29:13 +05:30
config Merge remote-tracking branch 'upstream/dev' into feat/disk-skills 2026-07-06 22:37:30 +05:30
di refactor(x): the runtime moves under one roof — core/src/runtime/ 2026-07-10 16:30:26 +05:30
events make local models work well 2026-07-06 13:31:13 +05:30
filesystem refactor(x): single live homes for getErrorDetails and isPathInside 2026-07-10 17:54:43 +05:30
knowledge chore(x): migrate to AI SDK 7 2026-07-13 16:22:36 +05:30
mcp remove default exa server 2026-03-19 18:46:08 +05:30
migrations refactor(x): the runtime moves under one roof — core/src/runtime/ 2026-07-10 16:30:26 +05:30
models chore(x): migrate to AI SDK 7 2026-07-13 16:22:36 +05:30
pre_built refactor(x): the runtime moves under one roof — core/src/runtime/ 2026-07-10 16:30:26 +05:30
runtime chore(x): migrate to AI SDK 7 2026-07-13 16:22:36 +05:30
schedule feat: background tasks 2026-05-12 17:43:25 +05:30
search feat(x): chat history redesign, session-store search, header cleanup 2026-07-10 15:16:28 +05:30
security move local-model concurrency to a turn-level defer lock 2026-07-06 13:38:39 +05:30
services code clean up 2026-02-06 23:17:32 +05:30
slack feat: ship Slack as a knowledge source, hardened for production (#596) 2026-06-17 12:52:27 -07:00
voice phase 1 improvements to reduce latency: smart endpointing, streaming tts, early clause speech, ack 2026-07-04 12:51:06 +05:30
workspace add code mode: coding-agent workspace with sessions, direct/Rowboat drive, diffs, and worktrees 2026-06-12 23:57:44 +05:30
index.ts voice mode with TTS input/output 2026-03-13 10:39:05 +05:30