@netlify/agent-runner-cli 1.94.0 → 1.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,18 @@ This affects:
23
23
 
24
24
  The `drizzle-kit` package is NOT affected — use the regular `drizzle-kit` package.
25
25
 
26
+ ## CRITICAL: Database schema changes always require migrations
27
+
28
+ Any code change that assumes a different database schema (adding tables, adding columns, renaming fields, changing types,
29
+ adding indexes, etc.) will only work if a corresponding migration exists in `netlify/db/migrations/`. Without a
30
+ migration, the database schema will not change and the application will break at runtime.
31
+
32
+ This applies regardless of whether you are using Drizzle ORM or the native `@netlify/db` driver:
33
+ - **With Drizzle ORM**: Update the schema definition, then run `npx drizzle-kit generate`
34
+ - **With native driver**: Write a new SQL migration file in `netlify/db/migrations/`
35
+
36
+ Never consider a schema change complete without a corresponding migration file.
37
+
26
38
  ## Setup with Drizzle ORM (recommended)
27
39
 
28
40
  This is the recommended approach. It gives you type-safe schema definitions, a query builder, and automatic migration
@@ -148,6 +160,17 @@ export const config: Config = {
148
160
  };
149
161
  ```
150
162
 
163
+ ### Modifying an existing schema
164
+
165
+ When adding columns, tables, or changing the schema in an existing project:
166
+
167
+ 1. Update the Drizzle schema definition with your changes
168
+ 2. Run `npx drizzle-kit generate` — this is REQUIRED, not optional
169
+ 3. Verify new migration files appear in `netlify/db/migrations/`
170
+ 4. Update any application code that uses the changed tables
171
+
172
+ Do NOT skip step 2. The database will not reflect your schema changes without a generated migration.
173
+
151
174
  ### Drizzle ORM query reference
152
175
 
153
176
  ```typescript
@@ -322,8 +345,10 @@ Drizzle Kit generates migrations in the subdirectory format. Both formats can co
322
345
  2. **Using `drizzle-orm` instead of `netlify-drizzle-orm-tests`**: The Netlify DB adapter is not yet in the main
323
346
  `drizzle-orm` package. Use `netlify-drizzle-orm-tests` for all Drizzle imports.
324
347
 
325
- 3. **Forgetting to run `drizzle-kit generate`**: After changing `db/schema.ts`, you must run `npx drizzle-kit generate`
326
- to create migration files. Schema changes alone do nothing the migration files are what Netlify applies.
348
+ 3. **NEVER skip migration generation after schema changes**: Any code that assumes a different database schema requires
349
+ a corresponding migration in `netlify/db/migrations/`. With Drizzle ORM, run `npx drizzle-kit generate` after
350
+ updating the schema definition. With the native driver, write a SQL migration file. Schema changes alone do
351
+ nothing — the migration files are what Netlify applies. The application WILL break without them.
327
352
 
328
353
  4. **Editing generated migrations**: Never manually edit migrations created by Drizzle Kit. If you need to change
329
354
  something, update the schema and generate a new migration.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/agent-runner-cli",
3
3
  "type": "module",
4
- "version": "1.94.0",
4
+ "version": "1.96.0",
5
5
  "description": "CLI tool for running Netlify agents",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -81,7 +81,7 @@
81
81
  "vitest": "^4.0.16"
82
82
  },
83
83
  "dependencies": {
84
- "@anthropic-ai/claude-code": "2.1.81",
84
+ "@anthropic-ai/claude-code": "2.1.87",
85
85
  "@anthropic-ai/sdk": "0.78.0",
86
86
  "@google/gemini-cli": "0.31.0",
87
87
  "@netlify/otel": "^5.1.5",