@netlify/agent-runner-cli 1.104.0 → 1.105.0-netlifydb.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.
@@ -1,21 +1,24 @@
1
1
  ---
2
2
  name: general-database
3
- description: Use this skill whenever the task involves storing, persisting, querying, or managing data — including CRUD operations, collections, records, user data, or any application state that needs to survive between requests. Covers both relational databases (Netlify Database) and key-value storage (Netlify Blobs).
3
+ description: Use this skill whenever the task involves storing, persisting, querying, or managing data — including CRUD operations, collections, records, user data, or any application state that needs to survive between requests. Covers both relational databases (Netlify Database) and object storage (Netlify Blobs).
4
4
  ---
5
5
 
6
6
  # Data Storage on Netlify
7
7
 
8
- ## Relational data: Netlify Database
8
+ Prefer Netlify Database over Netlify Blobs for any application data — records, collections, lists, user-generated content,
9
+ or anything you would store as rows. Use Blobs only for files, binary assets (images, video), or cached responses.
9
10
 
10
- **Netlify Database** is the recommended solution for relational data storage. It provides a fully managed Postgres database
11
+ ## Application data: Netlify Database
12
+
13
+ **Netlify Database** is the recommended solution for storing application data. It provides a fully managed Postgres database
11
14
  with zero configuration — install the `@netlify/database` package, and a database is automatically provisioned for your site.
12
15
 
13
- Use Netlify Database when you need:
16
+ Use Netlify Database when you need to store:
14
17
 
15
- - Relational data (tables, joins, foreign keys)
16
- - SQL queries and filtering
17
- - Transactions
18
- - Schema migrations
18
+ - Records, collections, or lists
19
+ - User-generated content
20
+ - Any data you would naturally model as rows in a table
21
+ - Data requiring queries, filtering, or transactions
19
22
 
20
23
  There are two recommended approaches:
21
24
 
@@ -29,14 +32,14 @@ IMPORTANT: Any code that assumes a different database schema requires a correspo
29
32
 
30
33
  See the **netlify-database** skill for complete setup instructions and usage examples.
31
34
 
32
- ## Object storage: Netlify Blobs
35
+ ## Files and binary assets: Netlify Blobs
33
36
 
34
- **Netlify Blobs** is the recommended solution for object storage.
37
+ **Netlify Blobs** is the recommended solution for file and binary storage.
35
38
 
36
39
  Use Netlify Blobs when you need:
37
40
 
38
41
  - File and image storage
39
- - JSON document persistence
40
- - Cache storage
42
+ - Binary assets (images, video, PDFs)
43
+ - Cached responses
41
44
 
42
45
  See the **netlify-blobs** skill for complete setup instructions and usage examples.
@@ -319,29 +319,29 @@ Two formats are supported:
319
319
 
320
320
  ## Inspecting migration state
321
321
 
322
- Before acting on migrations (generating, deleting, regenerating, resetting), check the current state. The
323
- `netlify db status` command is the source of truth for which migrations are applied where.
322
+ The current database state — which migrations are already applied to your preview branch, and which migration
323
+ files exist on disk but haven't been applied yet — is included in your context at the start of the run, under
324
+ the "Current Netlify Database state" heading. Read that list before planning any migration work. You do not
325
+ need to run `netlify db status` at the start of a task to get this information.
326
+
327
+ If you need to re-check state mid-session — typically after generating a new migration, applying migrations, or
328
+ running `netlify db migrations reset` — run:
324
329
 
325
330
  ```bash
326
331
  netlify db status
327
332
  ```
328
333
 
329
- The command automatically targets your preview database branch `NETLIFY_DB_BRANCH` is pre-set for you, so
330
- no flags are needed.
334
+ The command targets your preview database branch automatically (`NETLIFY_DB_BRANCH` is pre-set).
331
335
 
332
336
  It reports:
333
337
  - **Applied**: migrations that have been applied to the branch
334
338
  - **Pending**: migration files that exist locally but have not been applied
335
- - **Missing on disk**: migrations applied on the server but not present locally (drift — stop and investigate)
339
+ - **Missing on disk**: migrations applied on the server but not present locally (drift — this is a serious
340
+ state; never intentionally create it)
336
341
  - **Out of order**: pending migrations whose prefix sorts before an already-applied migration. The platform
337
342
  rejects these, so fix via the "Rule of thumb" below (reset + regenerate). If `drizzle-kit generate` then
338
343
  reports no changes, the out-of-order files were redundant and deleting them was the complete fix.
339
344
 
340
- Run this before any migration change you're not sure about. If `missing on disk` is non-empty, run
341
- `netlify db migrations pull --force` to restore the missing files from the branch before generating any new
342
- migrations. Note that this also overwrites any unapplied migration files you have locally — regenerate those
343
- with `npx drizzle-kit generate` afterwards if needed.
344
-
345
345
  ## Iterating on migrations within a session
346
346
 
347
347
  A single agent session can run multiple times, and all runs share one preview database branch. When you realize
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/agent-runner-cli",
3
3
  "type": "module",
4
- "version": "1.104.0",
4
+ "version": "1.105.0-netlifydb.0",
5
5
  "description": "CLI tool for running Netlify agents",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -84,7 +84,7 @@
84
84
  "@anthropic-ai/claude-code": "2.1.111",
85
85
  "@anthropic-ai/sdk": "0.90.0",
86
86
  "@google/gemini-cli": "0.38.2",
87
- "@netlify/database-proxy": "^0.1.2",
87
+ "@netlify/database-proxy": "^0.1.4",
88
88
  "@netlify/otel": "^5.1.5",
89
89
  "@netlify/ts-cli": "^1.0.4",
90
90
  "@openai/codex": "0.121.0",