@netlify/agent-runner-cli 2.16.0-server.0 → 2.16.0-server.2
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 +238 -237
- package/dist/bin.js +327 -326
- package/dist/index.d.ts +67 -18
- package/dist/index.js +236 -235
- package/dist/interactions-mcp-server.js +87 -40
- package/dist/skills/netlify-server@backend/SKILL.md +1 -3
- package/dist/skills/netlify-server@netlifyserver/SKILL.md +2 -4
- package/package.json +2 -1
|
@@ -164,9 +164,7 @@ See the [changelog post](https://www.netlify.com/changelog/2026-10-07-context-us
|
|
|
164
164
|
|
|
165
165
|
The AI Gateway works with zero configuration: provider credentials and base URLs (`OPENAI_API_KEY`, `OPENAI_BASE_URL`, and equivalents for other providers) are injected into `process.env` automatically. See the `netlify-ai-gateway` skill for supported models and usage.
|
|
166
166
|
|
|
167
|
-
AI Gateway, Netlify Blobs, and Netlify Database clients can be created once at module scope and reused: the platform keeps their credentials current. One exception: `NETLIFY_PURGE_API_TOKEN` expires after 15 minutes, so read it from `process.env` each time you call the purge API and never store it in a module-level variable.
|
|
168
|
-
|
|
169
|
-
Use site-wide Blobs stores (`getStore`). `getDeployStore()` doesn't work on production deploys yet.
|
|
167
|
+
AI Gateway, Netlify Blobs, and Netlify Database clients can be created once at module scope and reused: the platform keeps their credentials current. One exception: `NETLIFY_PURGE_API_TOKEN` expires after 15 minutes, so read it from `process.env` each time you call the purge API and never store it in a module-level variable.
|
|
170
168
|
|
|
171
169
|
```javascript
|
|
172
170
|
import OpenAI from 'openai'
|
|
@@ -9,7 +9,7 @@ A Netlify Server is one long-running Node.js process deployed alongside your sit
|
|
|
9
9
|
|
|
10
10
|
## When to use this skill: explicit request only
|
|
11
11
|
|
|
12
|
-
Netlify Server is
|
|
12
|
+
Netlify Server is in Early Access. The rule for choosing it is strict:
|
|
13
13
|
|
|
14
14
|
- ONLY build with a Netlify Server when the prompt **explicitly requests a "Netlify Server"** by name (for example "build this as a Netlify Server" or "use the Netlify Server primitive").
|
|
15
15
|
- If the prompt does not name it, discard this skill entirely, even when the request mentions Express, Hono, WebSockets, servers in general, or would otherwise seem like a good fit. In those cases use **Netlify Functions** (see the `netlify-functions` skill) and the other platform primitives as usual.
|
|
@@ -168,9 +168,7 @@ See the [changelog post](https://www.netlify.com/changelog/2026-10-07-context-us
|
|
|
168
168
|
|
|
169
169
|
The AI Gateway works with zero configuration: provider credentials and base URLs (`OPENAI_API_KEY`, `OPENAI_BASE_URL`, and equivalents for other providers) are injected into `process.env` automatically. See the `netlify-ai-gateway` skill for supported models and usage.
|
|
170
170
|
|
|
171
|
-
AI Gateway, Netlify Blobs, and Netlify Database clients can be created once at module scope and reused: the platform keeps their credentials current. One exception: `NETLIFY_PURGE_API_TOKEN` expires after 15 minutes, so read it from `process.env` each time you call the purge API and never store it in a module-level variable.
|
|
172
|
-
|
|
173
|
-
Use site-wide Blobs stores (`getStore`). `getDeployStore()` doesn't work on production deploys yet.
|
|
171
|
+
AI Gateway, Netlify Blobs, and Netlify Database clients can be created once at module scope and reused: the platform keeps their credentials current. One exception: `NETLIFY_PURGE_API_TOKEN` expires after 15 minutes, so read it from `process.env` each time you call the purge API and never store it in a module-level variable.
|
|
174
172
|
|
|
175
173
|
```javascript
|
|
176
174
|
import OpenAI from 'openai'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/agent-runner-cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.16.0-server.
|
|
4
|
+
"version": "2.16.0-server.2",
|
|
5
5
|
"description": "CLI tool for running Netlify agents",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"check:types": "tsc --noEmit",
|
|
49
49
|
"prompts": "LOG=0 vitest run --config vitest.prompts.config.js",
|
|
50
50
|
"site:build": "npm run prompts && node site/build.mjs",
|
|
51
|
+
"site:dev": "npm run site:build && netlify dev --dir site/dist",
|
|
51
52
|
"postinstall": "node scripts/postinstall.js"
|
|
52
53
|
},
|
|
53
54
|
"engines": {
|