@netlify/agent-runner-cli 1.94.0-netlifydb.4 → 1.94.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 +57 -60
- package/dist/bin.js +56 -59
- package/dist/index.js +55 -58
- package/dist/skills/netlify-forms/SKILL.md +10 -1
- package/dist/skills/netlify-forms/scripts/enable.cjs +12 -0
- package/dist/skills/netlify-identity/SKILL.md +11 -2
- package/dist/skills/netlify-identity/scripts/enable.cjs +12 -0
- package/package.json +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: netlify-forms
|
|
3
|
-
description: Build and configure Netlify Forms for serverless form handling. Use when implementing contact forms, feedback forms, file uploads, or any form that collects user submissions without backend code.
|
|
3
|
+
description: Build and configure Netlify Forms for serverless form handling. Use when implementing contact forms, feedback forms, file uploads, or any form that collects user submissions without backend code. Make sure to always run `node scripts/enable.cjs` located in this skill's directory after implementing Netlify Forms.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Netlify Forms
|
|
@@ -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.')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: netlify-identity
|
|
3
|
-
description: Use whenever the task involves authentication, signups, logins, password recovery, user accounts, role-based access control, OAuth providers, protected routes, protecting Netlify Functions, server-side auth in SSR frameworks, or Netlify Identity. Always use `@netlify/identity`. Never use `netlify-identity-widget` or `gotrue-js` as they are deprecated.
|
|
3
|
+
description: Use whenever the task involves authentication, signups, logins, password recovery, user accounts, role-based access control, OAuth providers, protected routes, protecting Netlify Functions, server-side auth in SSR frameworks, or Netlify Identity. Always use `@netlify/identity`. Never use `netlify-identity-widget` or `gotrue-js` as they are deprecated. Make sure to always run `node scripts/enable.cjs` located in this skill's directory after implementing Netlify Identity.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Netlify Identity
|
|
@@ -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.94.0
|
|
4
|
+
"version": "1.94.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
|
},
|