# Summary
* Adds first-class **Google Vertex AI provider** using
`@ai-sdk/google-vertex`.
* Supports **Gemini 2.5** models and partner **MaaS (Model Garden)**
models via full publisher IDs.
* New **Vertex-specific settings UI** for Project, Location, and Service
Account JSON.
* Implements a **“thinking” toggle** for Gemini 2.5 Flash
* Pro: always on
* Flash: toggleable
* Flash Lite: none
* Fixes *“AI not found”* for Vertex built-ins by mapping to
`publishers/google` paths.
* Hardens **cross-platform file ops** and ensures all tests pass.
---
# What’s New
### Vertex AI Provider
* Uses `@ai-sdk/google-vertex` with `googleAuthOptions.credentials` from
pasted Service Account JSON.
* Configurable **project** and **location**.
* Base URL → `/projects/{project}/locations/{location}`
* Built-ins: `publishers/google/models/<id>`
* Partner MaaS: `publishers/<partner>/models/...`
### Built-in Vertex Models
* `gemini-2.5-pro`
* `gemini-2.5-flash`
* `gemini-2.5-flash-lite`
### Thinking Behavior
* Vertex + Google marked as thinking-capable.
* Pro: always thinking
* Flash: toggle in UI
* Flash Lite: none
### Vertex Settings UI
* New **Google Vertex AI panel** for Project ID, Location, Service
Account JSON.
* Keys encrypted like other secrets.
---
# Fixes
* **Model resolution:** built-ins auto-map to
`publishers/google/models/<id>`.
* **Partner MaaS support:** full publisher IDs work directly (e.g.
DeepSeek).
* **Cross-platform paths:** normalize file ops with `toPosixPath`,
preserve `safeJoin` semantics.
---
# Why This Is Better
* Users can select **Vertex alongside other providers**.
* **More models** available through Model Garden.
* **Dedicated setup UI** reduces misconfig.
* **Thinking toggle** gives control over cost vs. reasoning depth.
---
# Files Changed
* **Provider & Models**: `language_model_helpers.ts`,
`get_model_client.ts`
* **Streaming**: `chat_stream_handlers.ts`
* **Schemas & Encryption**: `schemas.ts`, `settings.ts`
* **Settings UI**: `VertexConfiguration.tsx`, `ApiKeyConfiguration.tsx`
* **Models UI**: `ModelsSection.tsx` (Flash toggle)
* **Setup Detection**: `useLanguageModelProviders.ts`
* **Path Utils**: `path_utils.ts`, `response_processor.ts`
* **Deps**: `package.json` → `@ai-sdk/google-vertex@3.0.16`
---
# Tests & Validation
* **TypeScript**: `npm run ts` → ✅
* **Lint**: `npm run lint` → ✅
* **Unit tests**: `npm test` → ✅ 231 passed, 0 failed
---
# Migration / Notes
* No breaking changes.
* For Vertex usage:
* Ensure Vertex AI API is enabled.
* Service Account needs `roles/aiplatform.user`.
* Region must support model (e.g. `us-central1`).
* Thinking toggle currently affects **only** Gemini 2.5 Flash.
---
# Manual QA
1. Configure Vertex with Project/Location/Service Account JSON.
2. Test built-ins:
* `gemini-2.5-pro`
* `gemini-2.5-flash` (toggle on/off)
* `gemini-2.5-flash-lite`
3. Test MaaS partner model (e.g., DeepSeek) via full publisher ID.
4. Verify other providers remain unaffected.
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds a first-class Google Vertex AI provider with Gemini 2.5 models, a
Vertex settings panel, and a “thinking” toggle for Gemini 2.5 Flash.
Also fixes model resolution for Vertex and hardens cross-platform file
operations.
- **New Features**
- Vertex AI provider via @ai-sdk/google-vertex with project, location,
and service account JSON.
- Built-in models: gemini-2.5-pro, gemini-2.5-flash,
gemini-2.5-flash-lite.
- “Thinking” support: Pro always on; Flash toggle in Models UI; Flash
Lite none.
- MaaS partners supported via full publisher paths (e.g.,
publishers/<partner>/models/...).
- Vertex settings UI with encrypted service account key storage.
- **Bug Fixes**
- Built-in Vertex models auto-map to publishers/google/models/<id>.
- Consistent file ops across platforms using toPosixPath.
- Vertex readiness detection requires project/location/service account
JSON.
- Streaming “thinking” behavior respects Vertex Flash toggle and Pro
always-on.
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Md Rakibul Islam Rocky <mdrirocky08@gmail.com>
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Will Chen <willchen90@gmail.com>
172 lines
5.9 KiB
JSON
172 lines
5.9 KiB
JSON
{
|
|
"name": "dyad",
|
|
"productName": "dyad",
|
|
"version": "0.20.0",
|
|
"description": "Free, local, open-source AI app builder",
|
|
"main": ".vite/build/main.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/dyad-sh/dyad.git"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"clean": "rimraf out scaffold/node_modules",
|
|
"start": "electron-forge start",
|
|
"dev:engine": "cross-env DYAD_ENGINE_URL=http://localhost:8080/v1 npm start",
|
|
"staging:engine": "cross-env DYAD_ENGINE_URL=https://staging---dyad-llm-engine-kq7pivehnq-uc.a.run.app/v1 npm start",
|
|
"staging:gateway": "cross-env DYAD_GATEWAY_URL=https://staging---litellm-gcp-cloud-run-kq7pivehnq-uc.a.run.app/v1 npm start",
|
|
"package": "npm run clean && electron-forge package",
|
|
"make": "npm run clean && electron-forge make",
|
|
"publish": "npm run clean && electron-forge publish",
|
|
"verify-release": "node scripts/verify-release-assets.js",
|
|
"ts": "npm run ts:main && npm run ts:workers",
|
|
"ts:main": "npx tsc -p tsconfig.app.json --noEmit",
|
|
"ts:workers": "npx tsc -p workers/tsc/tsconfig.json --noEmit",
|
|
"lint": "npx oxlint --fix",
|
|
"lint:fix": "npx oxlint --fix --fix-suggestions --fix-dangerously",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:push": "drizzle-kit push",
|
|
"db:studio": "drizzle-kit studio",
|
|
"prettier:check": "npx prettier --check .",
|
|
"prettier": "npx prettier --write .",
|
|
"presubmit": "npm run prettier:check && npm run lint",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:ui": "vitest --ui",
|
|
"extract-codebase": "ts-node scripts/extract-codebase.ts",
|
|
"init-precommit": "husky",
|
|
"pre:e2e": "cross-env E2E_TEST_BUILD=true npm run package",
|
|
"e2e": "playwright test",
|
|
"e2e:shard": "playwright test --shard"
|
|
},
|
|
"keywords": [],
|
|
"author": {
|
|
"name": "Will Chen",
|
|
"email": "willchen90@gmail.com"
|
|
},
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@electron-forge/cli": "^7.8.0",
|
|
"@electron-forge/maker-deb": "^7.8.0",
|
|
"@electron-forge/maker-rpm": "^7.8.0",
|
|
"@electron-forge/maker-squirrel": "^7.8.0",
|
|
"@electron-forge/maker-zip": "^7.8.0",
|
|
"@electron-forge/plugin-auto-unpack-natives": "^7.8.0",
|
|
"@electron-forge/plugin-fuses": "^7.8.0",
|
|
"@electron-forge/plugin-vite": "^7.8.0",
|
|
"@electron-forge/publisher-github": "^7.8.0",
|
|
"@electron/fuses": "^1.8.0",
|
|
"@playwright/test": "^1.52.0",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@types/glob": "^8.1.0",
|
|
"@types/kill-port": "^2.0.3",
|
|
"@types/node": "^22.14.0",
|
|
"@types/react": "^19.0.10",
|
|
"@types/react-dom": "^19.0.4",
|
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
"@typescript-eslint/parser": "^5.62.0",
|
|
"@vitest/ui": "^3.1.1",
|
|
"cross-env": "^7.0.3",
|
|
"drizzle-kit": "^0.30.6",
|
|
"electron": "35.1.4",
|
|
"eslint": "^8.57.1",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"happy-dom": "^17.4.4",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^15.5.2",
|
|
"oxlint": "^1.8.0",
|
|
"prettier": "3.5.3",
|
|
"rimraf": "^6.0.1",
|
|
"typescript": "^5.8.3",
|
|
"vite": "^5.4.17",
|
|
"vitest": "^3.1.1"
|
|
},
|
|
"dependencies": {
|
|
"@ai-sdk/anthropic": "^2.0.4",
|
|
"@ai-sdk/azure": "^2.0.17",
|
|
"@ai-sdk/google": "^2.0.6",
|
|
"@ai-sdk/google-vertex": "3.0.16",
|
|
"@ai-sdk/openai": "2.0.15",
|
|
"@ai-sdk/openai-compatible": "^1.0.8",
|
|
"@ai-sdk/provider-utils": "^3.0.3",
|
|
"@biomejs/biome": "^1.9.4",
|
|
"@dyad-sh/supabase-management-js": "v1.0.0",
|
|
"@lexical/react": "^0.33.1",
|
|
"@monaco-editor/react": "^4.7.0-rc.0",
|
|
"@neondatabase/api-client": "^2.1.0",
|
|
"@neondatabase/serverless": "^1.0.1",
|
|
"@openrouter/ai-sdk-provider": "^1.1.2",
|
|
"@radix-ui/react-accordion": "^1.2.4",
|
|
"@radix-ui/react-alert-dialog": "^1.1.13",
|
|
"@radix-ui/react-checkbox": "^1.3.2",
|
|
"@radix-ui/react-dialog": "^1.1.7",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.7",
|
|
"@radix-ui/react-label": "^2.1.4",
|
|
"@radix-ui/react-popover": "^1.1.7",
|
|
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
"@radix-ui/react-select": "^2.2.2",
|
|
"@radix-ui/react-separator": "^1.1.2",
|
|
"@radix-ui/react-slot": "^1.2.2",
|
|
"@radix-ui/react-switch": "^1.2.0",
|
|
"@radix-ui/react-toggle": "^1.1.3",
|
|
"@radix-ui/react-toggle-group": "^1.1.3",
|
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"@tailwindcss/vite": "^4.1.3",
|
|
"@tanstack/react-query": "^5.75.5",
|
|
"@tanstack/react-router": "^1.114.34",
|
|
"@types/uuid": "^10.0.0",
|
|
"@vercel/sdk": "^1.10.0",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"ai": "^5.0.15",
|
|
"better-sqlite3": "^11.9.1",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"dotenv": "^16.4.7",
|
|
"drizzle-orm": "^0.41.0",
|
|
"electron-log": "^5.3.3",
|
|
"electron-playwright-helpers": "^1.7.1",
|
|
"electron-squirrel-startup": "^1.0.1",
|
|
"esbuild-register": "^3.6.0",
|
|
"fix-path": "^4.0.0",
|
|
"framer-motion": "^12.6.3",
|
|
"geist": "^1.3.1",
|
|
"glob": "^11.0.2",
|
|
"isomorphic-git": "^1.30.1",
|
|
"jotai": "^2.12.2",
|
|
"kill-port": "^2.0.1",
|
|
"lexical": "^0.33.1",
|
|
"lexical-beautiful-mentions": "^0.1.47",
|
|
"lucide-react": "^0.487.0",
|
|
"monaco-editor": "^0.52.2",
|
|
"openai": "^4.91.1",
|
|
"posthog-js": "^1.236.3",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-markdown": "^10.1.0",
|
|
"react-resizable-panels": "^2.1.7",
|
|
"react-shiki": "^0.5.2",
|
|
"remark-gfm": "^4.0.1",
|
|
"shell-env": "^4.0.1",
|
|
"shiki": "^3.2.1",
|
|
"sonner": "^2.0.3",
|
|
"stacktrace-js": "^2.0.2",
|
|
"tailwind-merge": "^3.1.0",
|
|
"tailwindcss": "^4.1.3",
|
|
"tree-kill": "^1.2.2",
|
|
"tw-animate-css": "^1.2.5",
|
|
"update-electron-app": "^3.1.1",
|
|
"uuid": "^11.1.0",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"lint-staged": {
|
|
"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,astro,svelte}": "oxlint",
|
|
"*.{js,css,md,ts,tsx,jsx,json}": "prettier --write"
|
|
}
|
|
}
|