- follows existing patterns for AI SDK to provide Bedrock integration - Uses Bedrock's API token feature for authentication which provides a standard experience - bedrock provided models match the Anthropic provided models (for now) **Disclaimer**: The contributing docs are extremely sparse. I don't actually know how to build this and get this running in Electron ## Testing - AWS Bedrock provider is available for selection <img width="994" height="496" alt="image" src="https://github.com/user-attachments/assets/3cb21fed-9826-40e5-8019-b2b5df5e873b" /> - The provider settings also show the right models and offer the right env variable to use <img width="949" height="862" alt="image" src="https://github.com/user-attachments/assets/8c23d5c8-d84d-4bf7-856a-8dc8d9d6c4b4" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds AWS Bedrock as a provider so users can run Claude models via Bedrock with API token authentication. The settings now list Bedrock with supported models and a new env var. - New Features - New provider: bedrock using @ai-sdk/amazon-bedrock, wired into model client and schemas. - Models: Claude 4 Sonnet, Claude 3.7 Sonnet, Claude 3.5 Sonnet (Bedrock model IDs). - Settings: shows AWS Bedrock with correct models and env var AWS_BEARER_TOKEN_BEDROCK. - Default region: us-east-1. - Migration - Set AWS_BEARER_TOKEN_BEDROCK with your Bedrock API token. - Select AWS Bedrock in settings and pick a model. <!-- End of auto-generated description by cubic. --> Co-authored-by: Samrat Jha <samratj@amazon.com> Co-authored-by: Will Chen <willchen90@gmail.com>
173 lines
6.0 KiB
JSON
173 lines
6.0 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/amazon-bedrock": "^3.0.15",
|
|
"@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"
|
|
}
|
|
}
|