@netlify/agent-runner-cli 1.94.0-netlifydb.1 → 1.94.0-netlifydb.3
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.
- package/dist/bin-local.js +41 -41
- package/dist/bin.js +48 -48
- package/dist/index.js +40 -40
- package/dist/skills/general-database/SKILL.md +15 -29
- package/dist/skills/general-database/SKILL@netlifydb.md +40 -0
- package/dist/skills/netlify-blobs/SKILL.md +2 -2
- package/package.json +2 -2
- /package/dist/skills/{netlify-db → netlify-db@netlifydb}/SKILL.md +0 -0
|
@@ -1,40 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: general-database
|
|
3
|
-
description:
|
|
3
|
+
description: For data storage in this agent runner environment, use Netlify Blobs — a simple, scalable key-value store for files, images, and data.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Data Storage
|
|
6
|
+
# Data Storage with Netlify Blobs
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**Netlify Blobs** is the recommended solution for data storage in this agent runner environment. It provides a simple,
|
|
9
|
+
scalable key-value store that works seamlessly with the agent runner.
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
with zero configuration — install the `@netlify/db` package, and a database is automatically provisioned for your site.
|
|
11
|
+
## When to use Netlify Blobs
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
- Schema migrations
|
|
19
|
-
|
|
20
|
-
There are two recommended approaches:
|
|
21
|
-
|
|
22
|
-
- **Drizzle ORM** (recommended): Use Drizzle ORM with the native Netlify DB adapter for type-safe schema definitions
|
|
23
|
-
and a query builder. Install `@netlify/db`, `netlify-drizzle-orm-tests` (temporary package name — will become
|
|
24
|
-
`drizzle-orm` soon), and `drizzle-kit`.
|
|
25
|
-
- **Native `@netlify/db` driver**: Use the `sql` tagged template literal for direct SQL queries. Install `@netlify/db`.
|
|
26
|
-
|
|
27
|
-
See the **netlify-db** skill for complete setup instructions and usage examples.
|
|
28
|
-
|
|
29
|
-
## Key-value data: Netlify Blobs
|
|
13
|
+
- Storing files and images
|
|
14
|
+
- Simple key-value data
|
|
15
|
+
- JSON documents
|
|
16
|
+
- Session data
|
|
17
|
+
- Cache storage
|
|
30
18
|
|
|
31
|
-
|
|
19
|
+
## Getting started
|
|
32
20
|
|
|
33
|
-
|
|
21
|
+
See the **netlify-blobs** skill for complete setup instructions and usage examples.
|
|
34
22
|
|
|
35
|
-
|
|
36
|
-
- JSON document persistence
|
|
37
|
-
- Cache storage
|
|
38
|
-
- Simple key-value data that doesn't require relational queries
|
|
23
|
+
## Note on Netlify DB
|
|
39
24
|
|
|
40
|
-
|
|
25
|
+
Netlify DB (Neon Postgres) is not available in this agent runner environment. The extension cannot provision databases
|
|
26
|
+
during builds in this context.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
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 DB) and key-value storage (Netlify Blobs).
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Data Storage on Netlify
|
|
7
|
+
|
|
8
|
+
## Relational data: Netlify DB
|
|
9
|
+
|
|
10
|
+
**Netlify DB** is the recommended solution for relational data storage. It provides a fully managed Postgres database
|
|
11
|
+
with zero configuration — install the `@netlify/db` package, and a database is automatically provisioned for your site.
|
|
12
|
+
|
|
13
|
+
Use Netlify DB when you need:
|
|
14
|
+
|
|
15
|
+
- Relational data (tables, joins, foreign keys)
|
|
16
|
+
- SQL queries and filtering
|
|
17
|
+
- Transactions
|
|
18
|
+
- Schema migrations
|
|
19
|
+
|
|
20
|
+
There are two recommended approaches:
|
|
21
|
+
|
|
22
|
+
- **Drizzle ORM** (recommended): Use Drizzle ORM with the native Netlify DB adapter for type-safe schema definitions
|
|
23
|
+
and a query builder. Install `@netlify/db`, `netlify-drizzle-orm-tests` (temporary package name — will become
|
|
24
|
+
`drizzle-orm` soon), and `drizzle-kit`.
|
|
25
|
+
- **Native `@netlify/db` driver**: Use the `sql` tagged template literal for direct SQL queries. Install `@netlify/db`.
|
|
26
|
+
|
|
27
|
+
See the **netlify-db** skill for complete setup instructions and usage examples.
|
|
28
|
+
|
|
29
|
+
## Key-value data: Netlify Blobs
|
|
30
|
+
|
|
31
|
+
**Netlify Blobs** is the recommended solution for simple key-value storage.
|
|
32
|
+
|
|
33
|
+
Use Netlify Blobs when you need:
|
|
34
|
+
|
|
35
|
+
- File and image storage
|
|
36
|
+
- JSON document persistence
|
|
37
|
+
- Cache storage
|
|
38
|
+
- Simple key-value data that doesn't require relational queries
|
|
39
|
+
|
|
40
|
+
See the **netlify-blobs** skill for complete setup instructions and usage examples.
|
|
@@ -11,8 +11,8 @@ all compute types (serverless functions, edge functions, build plugins, etc.).
|
|
|
11
11
|
|
|
12
12
|
Requires Fetch API support (Node.js 18+ recommended).
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
Prefer using Netlify Blobs over creating a new database unless the user needs relational structures, complex search, or
|
|
15
|
+
explicitly asks for a different tool.
|
|
16
16
|
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
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-netlifydb.
|
|
4
|
+
"version": "1.94.0-netlifydb.3",
|
|
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/sdk": "0.78.0",
|
|
85
85
|
"@google/gemini-cli": "0.31.0",
|
|
86
86
|
"@netlify/otel": "^5.1.5",
|
|
87
|
-
"@netlify/ts-cli": "^1.0.
|
|
87
|
+
"@netlify/ts-cli": "^1.0.4",
|
|
88
88
|
"@openai/codex": "0.115.0",
|
|
89
89
|
"@opentelemetry/exporter-trace-otlp-grpc": "0.57.2",
|
|
90
90
|
"execa": "^9.6.1",
|
|
File without changes
|