@netlify/agent-runner-cli 2.18.0-smtp.1 → 2.18.1-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 +224 -224
- package/dist/bin.js +283 -283
- package/dist/index.d.ts +52 -78
- package/dist/index.js +222 -222
- package/dist/interactions-mcp-server.js +32 -32
- package/dist/skills/netlify-identity/SKILL.md +0 -18
- package/package.json +1 -1
- package/scripts/scenarios/interactions-stub-server.mjs +14 -0
|
@@ -313,24 +313,6 @@ Replace the example path with the installed location of this skill. The script c
|
|
|
313
313
|
Identity enablement before deploying. Do not ask the user to enable Identity in the Netlify UI. Registration settings,
|
|
314
314
|
external providers, and other Identity configuration can still be managed in the dashboard.
|
|
315
315
|
|
|
316
|
-
### Read the project's Identity configuration
|
|
317
|
-
|
|
318
|
-
You can read the project's Identity settings — registration preferences, external providers, email templates and the
|
|
319
|
-
outgoing email (SMTP) settings — through the service-instance route. Read `$IDENTITY_ID` as described below, then:
|
|
320
|
-
|
|
321
|
-
```bash
|
|
322
|
-
curl -s -H "Authorization: Bearer $NETLIFY_AUTH_TOKEN" \
|
|
323
|
-
"https://api.netlify.com/api/v1/sites/$SITE_ID/services/identity/instances/$IDENTITY_ID"
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
The settings are under `config.config`; outgoing email is at `config.config.smtp` (`admin_email`, `host`, `port`,
|
|
327
|
-
`user`). Secrets are filtered out of this response: the SMTP password is never returned, so you cannot check whether one
|
|
328
|
-
is set or whether it is correct. Use this read to find out what is already configured instead of raising a setup request
|
|
329
|
-
to discover it.
|
|
330
|
-
|
|
331
|
-
Note the route: `/services/identity/instances/$IDENTITY_ID`, not `/identity/$IDENTITY_ID`. The latter is the
|
|
332
|
-
administration endpoint and returns 401 for you.
|
|
333
|
-
|
|
334
316
|
### Look up one user's account
|
|
335
317
|
|
|
336
318
|
When the user reports that a specific person can't sign up or log in, read that person's Identity account with the
|
package/package.json
CHANGED
|
@@ -13,8 +13,13 @@ const {
|
|
|
13
13
|
ASK_SERVER_READY_FILENAME,
|
|
14
14
|
CANNED_ANSWERS_FILENAME,
|
|
15
15
|
INTERACTIONS_MCP_SERVER,
|
|
16
|
+
SETUP_REQUEST_PAUSED_RESULT,
|
|
17
|
+
SETUP_TOOL,
|
|
18
|
+
STUB_IDENTITY_SETUP_FLAG,
|
|
19
|
+
STUB_SETUP_REQUESTS_FLAG,
|
|
16
20
|
UNANTICIPATED_QUESTION_ANSWER,
|
|
17
21
|
} = await jiti.import('../../scenarios/helpers/interactions-stub-contract.js')
|
|
22
|
+
const { buildSetupToolDescription, buildSetupToolInputShape } = await jiti.import('../../src/lib/setup-schema.js')
|
|
18
23
|
|
|
19
24
|
const WORKSPACE = process.cwd()
|
|
20
25
|
const CANNED_ANSWERS_FILE = path.join(WORKSPACE, CANNED_ANSWERS_FILENAME)
|
|
@@ -65,6 +70,15 @@ server.registerTool(
|
|
|
65
70
|
},
|
|
66
71
|
)
|
|
67
72
|
|
|
73
|
+
if (process.argv.includes(STUB_SETUP_REQUESTS_FLAG)) {
|
|
74
|
+
const identity = process.argv.includes(STUB_IDENTITY_SETUP_FLAG)
|
|
75
|
+
server.registerTool(
|
|
76
|
+
SETUP_TOOL,
|
|
77
|
+
{ description: buildSetupToolDescription(identity), inputSchema: buildSetupToolInputShape(identity) },
|
|
78
|
+
() => ({ content: [{ type: 'text', text: SETUP_REQUEST_PAUSED_RESULT }] }),
|
|
79
|
+
)
|
|
80
|
+
}
|
|
81
|
+
|
|
68
82
|
const shutdown = () => process.exit(0)
|
|
69
83
|
process.stdin.on('close', shutdown)
|
|
70
84
|
process.stdin.on('end', shutdown)
|