@netlify/agent-runner-cli 1.106.0 → 1.107.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.
@@ -113,49 +113,12 @@ export default defineConfig({
113
113
 
114
114
  ### Step 5: Generate migrations
115
115
 
116
- Every time you change the schema, you MUST generate a new migration with a descriptive name.
117
-
118
- **Step 5a — Derive a descriptive slug from the schema changes.**
119
-
120
- The slug should summarise what the migration does, using lowercase `snake_case`, a leading imperative verb, and at most
121
- 50 characters. It must match the regex `^[a-z0-9_]{1,50}$` — only lowercase letters, digits, and underscores.
122
-
123
- Good examples:
124
- - `add_users_bio` — added a `bio` column to the `users` table
125
- - `create_comments_table` — added a new `comments` table
126
- - `index_posts_author_id` — added an index on `posts.author_id`
127
- - `drop_legacy_sessions` — removed an obsolete table
128
-
129
- Bad examples (do NOT use):
130
- - `update` (not descriptive)
131
- - `AddUsersBio` (wrong case)
132
- - `add-users-bio` (hyphens are not allowed)
133
- - `misc changes` (spaces are not allowed; also not descriptive)
134
-
135
- **Step 5b — Write the slug to the file referenced by the `NETLIFY_DB_MIGRATION_NAME_FILE` environment variable.**
136
-
137
- The agent runner provides a file path in the `NETLIFY_DB_MIGRATION_NAME_FILE` environment variable. You MUST read this
138
- environment variable to find the path on disk, then write the slug to that file. The file lives outside the project
139
- directory and is managed by the agent runner — do NOT try to read, write, or reason about any file inside the project
140
- itself for this purpose.
141
-
142
- Use `>` (overwrite), not `>>` (append), so the latest slug is the only one recorded:
143
-
144
- ```bash
145
- MIGRATION_NAME="add_users_bio"
146
- echo "$MIGRATION_NAME" > "$NETLIFY_DB_MIGRATION_NAME_FILE"
147
- ```
148
-
149
- **Step 5c — Run `drizzle-kit generate` with the same slug passed to `--name`.**
116
+ Every time you change the schema, run `drizzle-kit generate`:
150
117
 
151
118
  ```bash
152
- npx drizzle-kit generate --name "$MIGRATION_NAME"
119
+ npx drizzle-kit generate
153
120
  ```
154
121
 
155
- Both the file write and the `--name` flag are required: the file write lets the agent runner reuse your slug if it
156
- has to re-run `drizzle-kit generate` as a safety net, and the `--name` flag ensures the migration file is named
157
- correctly on this run. If you skip the file write, the agent runner may regenerate the migration with a random name.
158
-
159
122
  This creates SQL migration files in `netlify/database/migrations/`.
160
123
 
161
124
  ### Step 6: Use the database in functions
@@ -458,8 +421,3 @@ leading to unpredictable and broken behavior.
458
421
  **not yet been applied** to your preview branch. It cannot undo an already-applied migration — to change
459
422
  something that's already applied, you must roll forward with a new migration.
460
423
 
461
- 6. **Skipping the migration name slug**: When using Drizzle ORM, always derive a descriptive `snake_case` slug, write
462
- it to the file referenced by `NETLIFY_DB_MIGRATION_NAME_FILE`, and pass it to `drizzle-kit generate --name
463
- "$MIGRATION_NAME"`. Running `drizzle-kit generate` with no `--name` produces an auto-generated random name that
464
- doesn't describe the change. The file write is important even if you also pass `--name`: the agent runner re-runs
465
- `drizzle-kit generate` as a safety net and needs the slug from the file so the migration name stays consistent.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/agent-runner-cli",
3
3
  "type": "module",
4
- "version": "1.106.0",
4
+ "version": "1.107.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.111",
84
+ "@anthropic-ai/claude-code": "2.1.117",
85
85
  "@anthropic-ai/sdk": "0.90.0",
86
86
  "@google/gemini-cli": "0.38.2",
87
87
  "@netlify/database-proxy": "^0.1.4",