-
Notifications
You must be signed in to change notification settings - Fork 0
feat(workflow): add versioned stream event schema system #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
ea587bf
8b1ff87
76963b8
e12f0c9
b494028
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Build Runtime Policy | ||
|
|
||
| This project uses a Bun-only build strategy for local, CI, and deployment | ||
| builds. | ||
|
|
||
| ## Goals | ||
|
|
||
| - Keep Bun as the only supported runtime for installs and scripts. | ||
| - Maintain consistent behavior across local, CI, and deployment builds. | ||
|
|
||
| ## Build entrypoints | ||
|
|
||
| - `bun run build` | ||
| - Runs `bun --bun next build --webpack`. | ||
| - `bun run build:strict-bun` | ||
| - Runs `bun --bun next build --webpack`. | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| `bun run build` is the default local/general entrypoint. `bun run build:strict-bun` | ||
| is the CI/strict alias used for canary visibility and future divergence; it is | ||
| intentionally equivalent today for reproducibility, but reserved for stricter | ||
| environment enforcement or flags without changing developer defaults. | ||
|
|
||
| ## CI policy | ||
|
|
||
| - Primary CI build job runs `bun run build`. | ||
| - A separate non-blocking canary job runs `bun run build:strict-bun` and uploads | ||
| logs as an artifact. | ||
|
|
||
| ## Vercel policy | ||
|
|
||
| - `vercel.json` uses: | ||
| - `buildCommand: bun run build:vercel` | ||
| - `installCommand: bun install --frozen-lockfile` | ||
| - `bunVersion: 1.x` | ||
|
|
||
| This keeps dependency installs reproducible while preserving Bun runtime support | ||
| for the deployed project. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,8 @@ | |
| "auth:create:local": "bun scripts/neon-auth-local.ts create", | ||
| "auth:repair:local": "bun scripts/neon-auth-local.ts repair", | ||
| "auth:smoke:local": "bun scripts/neon-auth-local.ts smoke", | ||
| "build": "bun --bun next build", | ||
| "build": "bun --bun next build --webpack", | ||
| "build:strict-bun": "bun --bun next build --webpack", | ||
|
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Scripts Both scripts run the exact same command: 🤖 Prompt for AI Agents |
||
| "build:vercel": "bun run db:migrate && bun run build", | ||
| "ci": "bun run lint && bun run typecheck && bun run test:coverage && bun run build", | ||
| "db:generate": "drizzle-kit generate", | ||
|
|
@@ -35,30 +36,30 @@ | |
| "typegen": "bun -e \"import { rmSync } from 'node:fs'; rmSync('.next/types', { recursive: true, force: true }); rmSync('.next/dev/types', { recursive: true, force: true });\" && bun --bun next typegen" | ||
| }, | ||
| "dependencies": { | ||
| "@ai-sdk/mcp": "^1.0.19", | ||
| "@ai-sdk/react": "^3.0.79", | ||
| "@mendable/firecrawl-js": "^4.12.0", | ||
| "@ai-sdk/mcp": "^1.0.21", | ||
| "@ai-sdk/react": "^3.0.88", | ||
| "@mendable/firecrawl-js": "^4.12.1", | ||
| "@neondatabase/auth": "0.2.0-beta.1", | ||
| "@octokit/rest": "^22.0.1", | ||
| "@radix-ui/react-use-controllable-state": "^1.2.2", | ||
| "@rive-app/react-webgl2": "^4.26.2", | ||
| "@streamdown/cjk": "^1.0.1", | ||
| "@streamdown/code": "^1.0.1", | ||
| "@streamdown/math": "^1.0.1", | ||
| "@streamdown/mermaid": "^1.0.1", | ||
| "@rive-app/react-webgl2": "^4.27.0", | ||
| "@streamdown/cjk": "^1.0.2", | ||
| "@streamdown/code": "^1.0.2", | ||
| "@streamdown/math": "^1.0.2", | ||
| "@streamdown/mermaid": "^1.0.2", | ||
| "@tanstack/react-virtual": "^3.13.18", | ||
| "@upstash/qstash": "~2.9.0", | ||
| "@upstash/ratelimit": "~2.0.8", | ||
| "@upstash/redis": "~1.36.2", | ||
| "@upstash/vector": "~1.2.2", | ||
| "@vercel/analytics": "^1.6.1", | ||
| "@vercel/blob": "~2.2.0", | ||
| "@vercel/functions": "^3.4.1", | ||
| "@vercel/sandbox": "^1.4.1", | ||
| "@vercel/functions": "^3.4.2", | ||
| "@vercel/sandbox": "^1.5.0", | ||
| "@vercel/sdk": "^1.19.1", | ||
| "@workflow/ai": "^4.0.1-beta.52", | ||
| "@xyflow/react": "^12.10.0", | ||
| "ai": "^6.0.77", | ||
| "ai": "^6.0.86", | ||
| "ai-sdk-tool-code-execution": "^0.0.2", | ||
| "ansi-to-react": "^6.2.6", | ||
| "bash-tool": "^1.3.14", | ||
|
|
@@ -72,7 +73,7 @@ | |
| "jszip": "^3.10.1", | ||
| "lucide-react": "^0.563.0", | ||
| "media-chrome": "^4.17.2", | ||
| "motion": "^12.33.0", | ||
| "motion": "^12.34.0", | ||
| "nanoid": "^5.1.6", | ||
| "next": "~16.1.6", | ||
| "next-themes": "^0.4.6", | ||
|
|
@@ -84,44 +85,55 @@ | |
| "server-only": "^0.0.1", | ||
| "shiki": "^3.22.0", | ||
| "sonner": "^2.0.7", | ||
| "streamdown": "^2.1.0", | ||
| "tailwind-merge": "^3.4.0", | ||
| "streamdown": "^2.2.0", | ||
| "tailwind-merge": "^3.4.1", | ||
| "tokenlens": "^1.3.1", | ||
| "use-stick-to-bottom": "^1.1.3", | ||
| "vaul": "^1.1.2", | ||
| "workflow": "^4.1.0-beta.52", | ||
| "workflow": "^4.1.0-beta.57", | ||
| "zod": "~4.3.6" | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^2.3.14", | ||
| "@biomejs/biome": "^2.4.1", | ||
| "@eslint/eslintrc": "^3.3.3", | ||
| "@eslint/js": "^9.37.0", | ||
| "@tailwindcss/postcss": "^4.1.18", | ||
| "@types/node": "^24.10.12", | ||
| "@types/node": "^24.10.13", | ||
| "@types/pg": "^8.16.0", | ||
| "@types/react": "^19.2.13", | ||
| "@types/react": "^19.2.14", | ||
| "@types/react-dom": "^19.2.3", | ||
| "@types/ws": "^8.18.1", | ||
| "@typescript-eslint/eslint-plugin": "^8.54.0", | ||
| "@typescript-eslint/parser": "^8.54.0", | ||
| "@vitejs/plugin-react": "^5.1.3", | ||
| "@typescript-eslint/eslint-plugin": "^8.56.0", | ||
| "@typescript-eslint/parser": "^8.56.0", | ||
| "@vitejs/plugin-react": "^5.1.4", | ||
| "@vitest/coverage-v8": "^4.0.18", | ||
| "babel-plugin-react-compiler": "^1.0.0", | ||
| "dotenv": "^17.2.4", | ||
| "drizzle-kit": "^0.31.8", | ||
| "dotenv": "^17.3.1", | ||
| "drizzle-kit": "^0.31.9", | ||
| "eslint": "^9.37.0", | ||
| "eslint-config-next": "^16.1.6", | ||
| "eslint-plugin-drizzle": "^0.2.3", | ||
| "eslint-plugin-jsdoc": "^62.5.4", | ||
| "eslint-plugin-jsdoc": "^62.5.5", | ||
| "eslint-plugin-tsdoc": "^0.5.0", | ||
| "globals": "^17.3.0", | ||
| "jsdom": "^28.0.0", | ||
| "jsdom": "^28.1.0", | ||
| "tailwindcss": "^4.1.18", | ||
| "tw-animate-css": "^1.4.0", | ||
| "typescript": "~5.9.3", | ||
| "vite-tsconfig-paths": "^6.1.0", | ||
| "vite-tsconfig-paths": "^6.1.1", | ||
| "vitest": "^4.0.18" | ||
| }, | ||
| "overrides": { | ||
| "@esbuild-kit/core-utils/esbuild": "^0.27.2", | ||
| "@workflow/web/next": "^16.1.6", | ||
| "@workflow/world-local/undici": "^6.23.0", | ||
| "axios": "^1.13.5", | ||
| "devalue": "^5.6.2", | ||
| "esbuild": "^0.27.2", | ||
| "lodash-es": "^4.17.23", | ||
| "next": "^16.1.6", | ||
| "undici": "^7.21.0" | ||
| }, | ||
| "trustedDependencies": [ | ||
| "sharp", | ||
| "unrs-resolver" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.