@netlify/agent-runner-cli 1.93.1 → 1.94.0-alpha.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.
- package/dist/bin-local.js +54 -58
- package/dist/bin.js +44 -48
- package/dist/index.js +52 -56
- package/dist/skills/netlify-forms/SKILL.md +9 -0
- package/dist/skills/netlify-forms/scripts/enable.cjs +12 -0
- package/dist/skills/netlify-identity/SKILL.md +10 -1
- package/dist/skills/netlify-identity/scripts/enable.cjs +12 -0
- package/package.json +3 -2
|
@@ -8,6 +8,15 @@ description: Build and configure Netlify Forms for serverless form handling. Use
|
|
|
8
8
|
Netlify Forms is a serverless form-handling service. The build system parses HTML at deploy time to detect forms and
|
|
9
9
|
automatically creates submission endpoints.
|
|
10
10
|
|
|
11
|
+
## Enable Feature
|
|
12
|
+
|
|
13
|
+
After implementing Netlify Forms, you **must** run the enable script to activate the feature on the deploy. The script
|
|
14
|
+
is located in this skill's `scripts/` directory:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
node scripts/enable.cjs
|
|
18
|
+
```
|
|
19
|
+
|
|
11
20
|
## Quick Start
|
|
12
21
|
|
|
13
22
|
Add `data-netlify="true"` or `netlify` attribute to any `<form>` tag:
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const { execFileSync } = require('child_process')
|
|
2
|
+
const fs = require('fs')
|
|
3
|
+
const path = require('path')
|
|
4
|
+
|
|
5
|
+
const repoRoot = execFileSync('git', ['rev-parse', '--show-toplevel'], { encoding: 'utf-8' }).trim()
|
|
6
|
+
const featuresDir = path.join(repoRoot, '.netlify', 'features')
|
|
7
|
+
const markerFile = path.join(featuresDir, 'netlify-forms')
|
|
8
|
+
|
|
9
|
+
fs.mkdirSync(featuresDir, { recursive: true })
|
|
10
|
+
fs.writeFileSync(markerFile, '')
|
|
11
|
+
|
|
12
|
+
console.log('Netlify Forms feature enabled for this site.')
|
|
@@ -8,6 +8,15 @@ description: Use whenever the task involves authentication, signups, logins, pas
|
|
|
8
8
|
Netlify Identity is a user management service for signups, logins, password recovery, user metadata, and role-based
|
|
9
9
|
access control. It is built on [GoTrue](https://github.com/netlify/gotrue) and issues JSON Web Tokens (JWTs).
|
|
10
10
|
|
|
11
|
+
## Enable Feature
|
|
12
|
+
|
|
13
|
+
After implementing Netlify Identity, you **must** run the enable script to activate the feature on the deploy. The script
|
|
14
|
+
is located in this skill's `scripts/` directory:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
node scripts/enable.cjs
|
|
18
|
+
```
|
|
19
|
+
|
|
11
20
|
**NEVER use `netlify-identity-widget` or `gotrue-js`. Always use `@netlify/identity`.** It provides a unified, headless
|
|
12
21
|
TypeScript API that works in both browser and server contexts (Netlify Functions, Edge Functions, SSR frameworks). It
|
|
13
22
|
replaces all previous Identity client libraries.
|
|
@@ -18,7 +27,7 @@ replaces all previous Identity client libraries.
|
|
|
18
27
|
npm install @netlify/identity
|
|
19
28
|
```
|
|
20
29
|
|
|
21
|
-
Identity is
|
|
30
|
+
Identity is enabled on the site when you run the enable script above. Default settings:
|
|
22
31
|
|
|
23
32
|
- **Registration** - Open (anyone can sign up). Change to Invite only in **Project configuration > Identity** if needed.
|
|
24
33
|
- **Autoconfirm** - Off (new signups require email confirmation). Enable in **Project configuration > Identity** to skip
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const { execFileSync } = require('child_process')
|
|
2
|
+
const fs = require('fs')
|
|
3
|
+
const path = require('path')
|
|
4
|
+
|
|
5
|
+
const repoRoot = execFileSync('git', ['rev-parse', '--show-toplevel'], { encoding: 'utf-8' }).trim()
|
|
6
|
+
const featuresDir = path.join(repoRoot, '.netlify', 'features')
|
|
7
|
+
const markerFile = path.join(featuresDir, 'netlify-identity')
|
|
8
|
+
|
|
9
|
+
fs.mkdirSync(featuresDir, { recursive: true })
|
|
10
|
+
fs.writeFileSync(markerFile, '')
|
|
11
|
+
|
|
12
|
+
console.log('Netlify Identity feature enabled for this site.')
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/agent-runner-cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.94.0-alpha.0",
|
|
5
5
|
"description": "CLI tool for running Netlify agents",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"test:integration:gemini": "vitest run test/integration/gemini.test.ts",
|
|
43
43
|
"test:integration:create-stage": "vitest run test/integration/create.test.ts",
|
|
44
44
|
"test:integration:skill-invocation": "vitest run test/integration/skill-invocation.test.ts",
|
|
45
|
+
"test:integration:feature-enablement": "vitest run test/integration/feature-enablement.test.ts",
|
|
45
46
|
"check:types": "tsc --noEmit",
|
|
46
47
|
"postinstall": "node scripts/postinstall.js"
|
|
47
48
|
},
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"@anthropic-ai/sdk": "0.78.0",
|
|
85
86
|
"@google/gemini-cli": "0.31.0",
|
|
86
87
|
"@netlify/otel": "^5.1.5",
|
|
87
|
-
"@netlify/ts-cli": "^1.0.
|
|
88
|
+
"@netlify/ts-cli": "^1.0.4",
|
|
88
89
|
"@openai/codex": "0.115.0",
|
|
89
90
|
"@opentelemetry/exporter-trace-otlp-grpc": "0.57.2",
|
|
90
91
|
"execa": "^9.6.1",
|