@agent-native/core 0.52.0 → 0.53.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/README.md +41 -95
- package/blueprints/action/crud.md +98 -0
- package/blueprints/channel/discord.md +74 -0
- package/blueprints/provider/stripe.md +87 -0
- package/blueprints/sandbox/docker.md +78 -0
- package/dist/action.d.ts +24 -0
- package/dist/action.d.ts.map +1 -1
- package/dist/action.js +4 -0
- package/dist/action.js.map +1 -1
- package/dist/agent/observational-memory/compactor.d.ts +43 -0
- package/dist/agent/observational-memory/compactor.d.ts.map +1 -0
- package/dist/agent/observational-memory/compactor.js +50 -0
- package/dist/agent/observational-memory/compactor.js.map +1 -0
- package/dist/agent/observational-memory/config.d.ts +37 -0
- package/dist/agent/observational-memory/config.d.ts.map +1 -0
- package/dist/agent/observational-memory/config.js +48 -0
- package/dist/agent/observational-memory/config.js.map +1 -0
- package/dist/agent/observational-memory/index.d.ts +26 -0
- package/dist/agent/observational-memory/index.d.ts.map +1 -0
- package/dist/agent/observational-memory/index.js +25 -0
- package/dist/agent/observational-memory/index.js.map +1 -0
- package/dist/agent/observational-memory/internal-run.d.ts +37 -0
- package/dist/agent/observational-memory/internal-run.d.ts.map +1 -0
- package/dist/agent/observational-memory/internal-run.js +59 -0
- package/dist/agent/observational-memory/internal-run.js.map +1 -0
- package/dist/agent/observational-memory/message-text.d.ts +13 -0
- package/dist/agent/observational-memory/message-text.d.ts.map +1 -0
- package/dist/agent/observational-memory/message-text.js +46 -0
- package/dist/agent/observational-memory/message-text.js.map +1 -0
- package/dist/agent/observational-memory/migrations.d.ts +13 -0
- package/dist/agent/observational-memory/migrations.d.ts.map +1 -0
- package/dist/agent/observational-memory/migrations.js +43 -0
- package/dist/agent/observational-memory/migrations.js.map +1 -0
- package/dist/agent/observational-memory/observer.d.ts +37 -0
- package/dist/agent/observational-memory/observer.d.ts.map +1 -0
- package/dist/agent/observational-memory/observer.js +82 -0
- package/dist/agent/observational-memory/observer.js.map +1 -0
- package/dist/agent/observational-memory/plugin.d.ts +16 -0
- package/dist/agent/observational-memory/plugin.d.ts.map +1 -0
- package/dist/agent/observational-memory/plugin.js +26 -0
- package/dist/agent/observational-memory/plugin.js.map +1 -0
- package/dist/agent/observational-memory/prompts.d.ts +27 -0
- package/dist/agent/observational-memory/prompts.d.ts.map +1 -0
- package/dist/agent/observational-memory/prompts.js +42 -0
- package/dist/agent/observational-memory/prompts.js.map +1 -0
- package/dist/agent/observational-memory/read.d.ts +47 -0
- package/dist/agent/observational-memory/read.d.ts.map +1 -0
- package/dist/agent/observational-memory/read.js +99 -0
- package/dist/agent/observational-memory/read.js.map +1 -0
- package/dist/agent/observational-memory/reflector.d.ts +31 -0
- package/dist/agent/observational-memory/reflector.d.ts.map +1 -0
- package/dist/agent/observational-memory/reflector.js +76 -0
- package/dist/agent/observational-memory/reflector.js.map +1 -0
- package/dist/agent/observational-memory/schema.d.ts +267 -0
- package/dist/agent/observational-memory/schema.d.ts.map +1 -0
- package/dist/agent/observational-memory/schema.js +48 -0
- package/dist/agent/observational-memory/schema.js.map +1 -0
- package/dist/agent/observational-memory/store.d.ts +52 -0
- package/dist/agent/observational-memory/store.d.ts.map +1 -0
- package/dist/agent/observational-memory/store.js +197 -0
- package/dist/agent/observational-memory/store.js.map +1 -0
- package/dist/agent/observational-memory/types.d.ts +61 -0
- package/dist/agent/observational-memory/types.d.ts.map +1 -0
- package/dist/agent/observational-memory/types.js +9 -0
- package/dist/agent/observational-memory/types.js.map +1 -0
- package/dist/agent/production-agent.d.ts +15 -0
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +240 -1
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/run-loop-with-resume.d.ts.map +1 -1
- package/dist/agent/run-loop-with-resume.js +49 -0
- package/dist/agent/run-loop-with-resume.js.map +1 -1
- package/dist/agent/run-store.d.ts +17 -0
- package/dist/agent/run-store.d.ts.map +1 -1
- package/dist/agent/run-store.js +55 -0
- package/dist/agent/run-store.js.map +1 -1
- package/dist/agent/runtime-context.d.ts +30 -0
- package/dist/agent/runtime-context.d.ts.map +1 -1
- package/dist/agent/runtime-context.js +54 -1
- package/dist/agent/runtime-context.js.map +1 -1
- package/dist/agent/tool-call-journal.d.ts +101 -0
- package/dist/agent/tool-call-journal.d.ts.map +1 -0
- package/dist/agent/tool-call-journal.js +214 -0
- package/dist/agent/tool-call-journal.js.map +1 -0
- package/dist/agent/types.d.ts +24 -0
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/cli/add.d.ts +109 -0
- package/dist/cli/add.d.ts.map +1 -0
- package/dist/cli/add.js +352 -0
- package/dist/cli/add.js.map +1 -0
- package/dist/cli/connect.d.ts +2 -2
- package/dist/cli/connect.d.ts.map +1 -1
- package/dist/cli/connect.js +92 -24
- package/dist/cli/connect.js.map +1 -1
- package/dist/cli/eval.d.ts +17 -0
- package/dist/cli/eval.d.ts.map +1 -0
- package/dist/cli/eval.js +121 -0
- package/dist/cli/eval.js.map +1 -0
- package/dist/cli/index.js +44 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/mcp.d.ts.map +1 -1
- package/dist/cli/mcp.js +11 -5
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli/plan-local.d.ts +66 -5
- package/dist/cli/plan-local.d.ts.map +1 -1
- package/dist/cli/plan-local.js +495 -19
- package/dist/cli/plan-local.js.map +1 -1
- package/dist/cli/skills.d.ts +2 -2
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +70 -59
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +118 -92
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/agent-chat-adapter.d.ts.map +1 -1
- package/dist/client/agent-chat-adapter.js +16 -0
- package/dist/client/agent-chat-adapter.js.map +1 -1
- package/dist/client/chat/tool-call-display.d.ts +20 -1
- package/dist/client/chat/tool-call-display.d.ts.map +1 -1
- package/dist/client/chat/tool-call-display.js +32 -7
- package/dist/client/chat/tool-call-display.js.map +1 -1
- package/dist/client/sse-event-processor.d.ts +13 -0
- package/dist/client/sse-event-processor.d.ts.map +1 -1
- package/dist/client/sse-event-processor.js +21 -0
- package/dist/client/sse-event-processor.js.map +1 -1
- package/dist/db/client.d.ts +4 -2
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +6 -4
- package/dist/db/client.js.map +1 -1
- package/dist/deploy/route-discovery.d.ts.map +1 -1
- package/dist/deploy/route-discovery.js +1 -0
- package/dist/deploy/route-discovery.js.map +1 -1
- package/dist/eval/agent-runner.d.ts +63 -0
- package/dist/eval/agent-runner.d.ts.map +1 -0
- package/dist/eval/agent-runner.js +142 -0
- package/dist/eval/agent-runner.js.map +1 -0
- package/dist/eval/define-eval.d.ts +29 -0
- package/dist/eval/define-eval.d.ts.map +1 -0
- package/dist/eval/define-eval.js +43 -0
- package/dist/eval/define-eval.js.map +1 -0
- package/dist/eval/index.d.ts +18 -0
- package/dist/eval/index.d.ts.map +1 -0
- package/dist/eval/index.js +17 -0
- package/dist/eval/index.js.map +1 -0
- package/dist/eval/report.d.ts +8 -0
- package/dist/eval/report.d.ts.map +1 -0
- package/dist/eval/report.js +44 -0
- package/dist/eval/report.js.map +1 -0
- package/dist/eval/runner.d.ts +67 -0
- package/dist/eval/runner.d.ts.map +1 -0
- package/dist/eval/runner.js +256 -0
- package/dist/eval/runner.js.map +1 -0
- package/dist/eval/scorer.d.ts +83 -0
- package/dist/eval/scorer.d.ts.map +1 -0
- package/dist/eval/scorer.js +195 -0
- package/dist/eval/scorer.js.map +1 -0
- package/dist/eval/types.d.ts +162 -0
- package/dist/eval/types.d.ts.map +1 -0
- package/dist/eval/types.js +20 -0
- package/dist/eval/types.js.map +1 -0
- package/dist/observability/traces.d.ts.map +1 -1
- package/dist/observability/traces.js +100 -1
- package/dist/observability/traces.js.map +1 -1
- package/dist/observability/tracing.d.ts +73 -0
- package/dist/observability/tracing.d.ts.map +1 -0
- package/dist/observability/tracing.js +126 -0
- package/dist/observability/tracing.js.map +1 -0
- package/dist/onboarding/default-steps.d.ts.map +1 -1
- package/dist/onboarding/default-steps.js +4 -1
- package/dist/onboarding/default-steps.js.map +1 -1
- package/dist/provider-api/actions/query-staged-dataset.d.ts +1 -1
- package/dist/scripts/agent-engines/list-agent-engines.d.ts.map +1 -1
- package/dist/scripts/agent-engines/list-agent-engines.js +10 -3
- package/dist/scripts/agent-engines/list-agent-engines.js.map +1 -1
- package/dist/server/action-discovery.d.ts.map +1 -1
- package/dist/server/action-discovery.js +4 -0
- package/dist/server/action-discovery.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts +9 -0
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +118 -110
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/agent-teams.d.ts +62 -0
- package/dist/server/agent-teams.d.ts.map +1 -1
- package/dist/server/agent-teams.js +99 -2
- package/dist/server/agent-teams.js.map +1 -1
- package/dist/server/core-routes-plugin.d.ts.map +1 -1
- package/dist/server/core-routes-plugin.js +7 -4
- package/dist/server/core-routes-plugin.js.map +1 -1
- package/dist/server/credential-provider.d.ts.map +1 -1
- package/dist/server/credential-provider.js +2 -0
- package/dist/server/credential-provider.js.map +1 -1
- package/dist/server/framework-request-handler.d.ts.map +1 -1
- package/dist/server/framework-request-handler.js +33 -1
- package/dist/server/framework-request-handler.js.map +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +1 -0
- package/dist/server/index.js.map +1 -1
- package/dist/templates/workspace-core/.agents/skills/external-agents/SKILL.md +10 -0
- package/dist/templates/workspace-core/.agents/skills/harness-agents/SKILL.md +20 -0
- package/dist/templates/workspace-core/.agents/skills/observability/SKILL.md +20 -0
- package/docs/content/agent-teams.md +32 -0
- package/docs/content/blueprint-installer.md +73 -0
- package/docs/content/evals.md +141 -0
- package/docs/content/pr-visual-recap.md +7 -4
- package/docs/content/sandbox-adapters.md +134 -0
- package/docs/content/template-plan.md +20 -8
- package/package.json +5 -1
- package/src/templates/workspace-core/.agents/skills/external-agents/SKILL.md +10 -0
- package/src/templates/workspace-core/.agents/skills/harness-agents/SKILL.md +20 -0
- package/src/templates/workspace-core/.agents/skills/observability/SKILL.md +20 -0
package/dist/cli/skills.js
CHANGED
|
@@ -21,7 +21,7 @@ Usage:
|
|
|
21
21
|
npx @agent-native/core@latest skills list
|
|
22
22
|
npx @agent-native/core@latest skills status [assets|design-exploration|visual-plan|visual-recap|context-xray] [--client codex|claude-code|pi|all] [--scope user|project] [--json]
|
|
23
23
|
npx @agent-native/core@latest skills update [assets|design-exploration|visual-plan|visual-recap|context-xray] [--client codex|claude-code|pi|all] [--scope user|project] [--dry-run] [--json]
|
|
24
|
-
npx @agent-native/core@latest skills add assets|design-exploration|visual-plan|visual-recap|context-xray [--client codex|claude-code|
|
|
24
|
+
npx @agent-native/core@latest skills add assets|design-exploration|visual-plan|visual-recap|context-xray [--client codex|claude-code|cowork|cursor|opencode|github-copilot|all] [--scope user|project] [--mode hosted|local-files|self-hosted] [--mcp-url <url>] [--no-connect] [--with-github-action] [--yes] [--dry-run] [--json]
|
|
25
25
|
npx @agent-native/core@latest skills add <manifest-or-app-dir|skill-repo> [--skill <name>] [--client ...] [--yes]
|
|
26
26
|
|
|
27
27
|
Examples:
|
|
@@ -69,7 +69,7 @@ plans and recaps should live: hosted Plans for shareable links/comments, local
|
|
|
69
69
|
files for "No sharing, all local.", or a self-hosted/custom Plan app URL.
|
|
70
70
|
Pass --mode to choose directly. Local-files mode skips MCP registration and
|
|
71
71
|
auth and installs instructions that default to a no-auth block catalog fetch,
|
|
72
|
-
MDX folders, and
|
|
72
|
+
MDX folders, and the localhost bridge viewer.
|
|
73
73
|
|
|
74
74
|
When installing visual-recap interactively, the CLI offers to add the optional PR
|
|
75
75
|
Visual Recap GitHub Action. Pass --with-github-action to write it directly, then
|
|
@@ -274,10 +274,10 @@ npx @agent-native/core@latest skills add visual-plan --mode local-files
|
|
|
274
274
|
This mode does not register the Plan MCP connector. Before authoring structured
|
|
275
275
|
MDX, fetch the no-auth, schema-only block catalog with
|
|
276
276
|
\`npx @agent-native/core@latest plan blocks --out plan-blocks.md\`, read that file,
|
|
277
|
-
write
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
277
|
+
write the MDX folder locally, then run \`plan local serve\`. Plain text skill
|
|
278
|
+
installs (Vercel Skills CLI, copied GitHub files, etc.) can follow that same
|
|
279
|
+
local flow if \`@agent-native/core\` is available. Text alone cannot register
|
|
280
|
+
MCP tools; hosted/shareable Plans still need the Agent-Native CLI
|
|
281
281
|
install/reconnect step above.
|
|
282
282
|
|
|
283
283
|
**Browser (people you share with).** Open the Plans editor and create & edit
|
|
@@ -287,10 +287,10 @@ share; signing in claims the plans you made as a guest into your account.
|
|
|
287
287
|
Sharing and commenting require an account: public/shared plans are viewable by
|
|
288
288
|
anyone with the link, but commenting on them needs an agent-native account.
|
|
289
289
|
|
|
290
|
-
For
|
|
291
|
-
command. The optional \`plan blocks\` lookup reads only public schema metadata
|
|
292
|
-
network access is unavailable, use the bundled references and
|
|
293
|
-
|
|
290
|
+
For no-account, no-DB plan storage, use local-files mode and the local bridge
|
|
291
|
+
command. The optional \`plan blocks\` lookup reads only public schema metadata.
|
|
292
|
+
If network access is unavailable, use the bundled references and a local Plan
|
|
293
|
+
app/runtime for validation.
|
|
294
294
|
|
|
295
295
|
If a Plans tool returns \`needs auth\`, \`Unauthorized\`, or \`Session terminated\`,
|
|
296
296
|
do not keep retrying the tool. Stop and give the user the reconnect step for the
|
|
@@ -1315,7 +1315,7 @@ skill — never hand-edit one stored plan. Turn feedback into better guidance.
|
|
|
1315
1315
|
## Local-Files Privacy Mode
|
|
1316
1316
|
|
|
1317
1317
|
Use local-files privacy mode when the user explicitly asks for no DB writes,
|
|
1318
|
-
no hosted Plan
|
|
1318
|
+
no hosted Plan database writes, no Plan MCP publish, fully local files, offline/private
|
|
1319
1319
|
planning, repo-owned/source-controlled planning artifacts, or when
|
|
1320
1320
|
\`AGENT_NATIVE_PLANS_MODE=local-files\` is set. Also use it when a user or repo
|
|
1321
1321
|
policy says a plan must stay under their own brand, domain, source control, or
|
|
@@ -1333,21 +1333,24 @@ The local-files contract is:
|
|
|
1333
1333
|
\`plan blocks\` command calls the public no-auth \`get-plan-blocks\` route and
|
|
1334
1334
|
writes only registry metadata to disk; use \`--format schema\` if exact nested
|
|
1335
1335
|
fields are needed. If network access is unavailable, use the bundled
|
|
1336
|
-
references and rely on \`plan local
|
|
1337
|
-
- Write the plan as a local MDX folder
|
|
1338
|
-
|
|
1339
|
-
\`.
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1336
|
+
references and rely on \`plan local serve\` to catch invalid tags.
|
|
1337
|
+
- Write the plan as a local MDX folder: use \`plans/<slug>/\` when the user
|
|
1338
|
+
wants the artifact checked into the repo, or use a repo-ignored/temporary
|
|
1339
|
+
folder such as \`.agent-native/plans/<slug>/\` or \`/tmp/agent-native-plans/<slug>/\`
|
|
1340
|
+
when it should not be checked in. The folder contains \`plan.mdx\`, optional
|
|
1341
|
+
\`canvas.mdx\`, optional \`prototype.mdx\`, and optional \`.plan-state.json\`.
|
|
1342
|
+
- Run \`npx @agent-native/core@latest plan local serve --dir plans/<slug> --kind plan --open\`
|
|
1343
|
+
after writing or updating the folder. Report the returned local bridge URL. It opens the hosted Plan UI but reads
|
|
1344
|
+
from the localhost bridge on this machine, so it is not shareable across
|
|
1345
|
+
machines. If the Plan app itself is running locally with the same
|
|
1346
|
+
\`PLAN_LOCAL_DIR\`, the \`/local-plans/<slug>\` route is also valid.
|
|
1344
1347
|
- Do **not** call \`create-visual-plan\`, \`create-ui-plan\`,
|
|
1345
1348
|
\`create-prototype-plan\`, \`create-plan-design\`, \`import-visual-plan-source\`,
|
|
1346
1349
|
\`update-visual-plan\`, \`patch-visual-plan-source\`, \`get-plan-feedback\`,
|
|
1347
1350
|
\`export-visual-plan\`, or any hosted Plan tool for that plan except the
|
|
1348
1351
|
schema-only block catalog lookup above.
|
|
1349
1352
|
- Treat feedback as file or chat feedback: update the MDX files directly, rerun
|
|
1350
|
-
the local
|
|
1353
|
+
the local bridge command, and summarize the new local bridge URL. Hosted
|
|
1351
1354
|
comments, sharing, history, and publish/export receipts are unavailable until
|
|
1352
1355
|
the user explicitly opts into publishing.
|
|
1353
1356
|
|
|
@@ -1466,7 +1469,7 @@ before spending attention on the literal lines.
|
|
|
1466
1469
|
## Local-Files Privacy Mode Exception
|
|
1467
1470
|
|
|
1468
1471
|
Use local-files privacy mode when the user explicitly asks for no DB writes,
|
|
1469
|
-
no hosted Plan
|
|
1472
|
+
no hosted Plan database writes, no Plan MCP publish, fully local files, offline/private
|
|
1470
1473
|
recaps, or when \`AGENT_NATIVE_PLANS_MODE=local-files\` is set. This is the only
|
|
1471
1474
|
exception to the hosted publish rule below.
|
|
1472
1475
|
|
|
@@ -1481,22 +1484,26 @@ In local-files mode:
|
|
|
1481
1484
|
MCP connector is not registered; it calls the public no-auth
|
|
1482
1485
|
\`get-plan-blocks\` route and sends no recap content. If network access is
|
|
1483
1486
|
unavailable, use the bundled references and validate with
|
|
1484
|
-
\`plan local
|
|
1485
|
-
- Write the recap as a local MDX folder
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1487
|
+
\`plan local serve\`.
|
|
1488
|
+
- Write the recap as a local MDX folder: use \`plans/<slug>/\` when the user
|
|
1489
|
+
wants the artifact checked into the repo, or use a repo-ignored/temporary
|
|
1490
|
+
folder such as \`.agent-native/plans/<slug>/\` or \`/tmp/agent-native-plans/<slug>/\`
|
|
1491
|
+
when it should not be checked in. The folder contains \`plan.mdx\`, optional
|
|
1492
|
+
\`canvas.mdx\`, optional \`prototype.mdx\`, and optional \`.plan-state.json\`. Set
|
|
1493
|
+
\`kind: "recap"\` and \`localOnly: true\` in frontmatter/state when authoring
|
|
1494
|
+
the source.
|
|
1495
|
+
- Run \`npx @agent-native/core@latest plan local serve --dir plans/<slug> --kind recap --open\`
|
|
1496
|
+
after writing or updating the folder. Report the returned local bridge URL. It opens the hosted Plan UI but reads
|
|
1497
|
+
from the localhost bridge on this machine, so it is not shareable across
|
|
1498
|
+
machines. If the Plan app itself is running locally with the same
|
|
1499
|
+
\`PLAN_LOCAL_DIR\`, the \`/local-plans/<slug>\` route is also valid.
|
|
1493
1500
|
- Do **not** call \`create-visual-recap\`, \`create-visual-plan\`,
|
|
1494
1501
|
\`import-visual-plan-source\`, \`update-visual-plan\`,
|
|
1495
1502
|
\`patch-visual-plan-source\`, \`get-plan-feedback\`, \`export-visual-plan\`,
|
|
1496
1503
|
\`set-resource-visibility\`, or any hosted Plan tool for that recap except the
|
|
1497
1504
|
schema-only block catalog lookup above.
|
|
1498
1505
|
- Treat review feedback as file or chat feedback: update the MDX files directly,
|
|
1499
|
-
rerun the local
|
|
1506
|
+
rerun the local bridge command, and summarize the new local bridge URL.
|
|
1500
1507
|
Hosted comments, sharing, screenshots, usage attachment, and PR sticky comment
|
|
1501
1508
|
publishing are unavailable until the user explicitly opts into publishing.
|
|
1502
1509
|
|
|
@@ -1707,10 +1714,13 @@ a headless CI agent), state that in the recap handoff instead.
|
|
|
1707
1714
|
|
|
1708
1715
|
## Open And Report The Recap
|
|
1709
1716
|
|
|
1710
|
-
In local-files privacy mode, report the local
|
|
1711
|
-
\`npx @agent-native/core@latest plan local
|
|
1712
|
-
|
|
1713
|
-
|
|
1717
|
+
In local-files privacy mode, report the local bridge URL from
|
|
1718
|
+
\`npx @agent-native/core@latest plan local serve --dir plans/<slug> --kind recap --open\`.
|
|
1719
|
+
It opens the hosted Plan UI but reads from the localhost bridge on this machine,
|
|
1720
|
+
so it is not shareable across machines. If the Plan app itself is running
|
|
1721
|
+
locally with the same \`PLAN_LOCAL_DIR\`, the \`/local-plans/<slug>\` route is also
|
|
1722
|
+
valid. Do not invent a hosted database URL and do not publish just to get an
|
|
1723
|
+
absolute Plan link.
|
|
1714
1724
|
|
|
1715
1725
|
After creating the recap, link the reviewer to the rendered plan with an
|
|
1716
1726
|
**absolute URL on the origin whose database actually holds the plan**. That
|
|
@@ -1864,7 +1874,7 @@ was installed as plain text and no MCP tools are registered, run
|
|
|
1864
1874
|
\`npx @agent-native/core@latest plan blocks --out plan-blocks.md\` and read that
|
|
1865
1875
|
file first. The CLI command calls the public no-auth \`get-plan-blocks\` route and
|
|
1866
1876
|
sends no plan/recap content. If network access is unavailable, use the bundled
|
|
1867
|
-
references and validate with \`plan local
|
|
1877
|
+
references and validate with \`plan local serve\`.
|
|
1868
1878
|
|
|
1869
1879
|
The catalog returns the authoritative, always-current block vocabulary generated
|
|
1870
1880
|
live from the app's own block registry — the same config the renderer and MDX
|
|
@@ -2347,13 +2357,16 @@ function planModeInstructionBlock(input) {
|
|
|
2347
2357
|
return `## Installed Mode
|
|
2348
2358
|
|
|
2349
2359
|
Default storage for this installation: local files. Create and update plans and
|
|
2350
|
-
recaps as MDX folders under \`plans/<slug
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
\`npx @agent-native/core@latest plan
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2360
|
+
recaps as MDX folders under \`plans/<slug>/\` when they should be checked in, or
|
|
2361
|
+
under a repo-ignored/temp folder when they should stay private scratch. Before
|
|
2362
|
+
authoring structured MDX, run
|
|
2363
|
+
\`npx @agent-native/core@latest plan blocks --out plan-blocks.md\` and read the
|
|
2364
|
+
no-auth block catalog; it sends no plan content. Then run
|
|
2365
|
+
\`npx @agent-native/core@latest plan local serve --dir plans/<slug> --kind plan|recap --open\`,
|
|
2366
|
+
and report the local bridge URL. It opens the hosted Plan UI but reads from the
|
|
2367
|
+
localhost bridge on this machine, so it is not shareable across machines. No
|
|
2368
|
+
sharing, all local. Use a hosted or self-hosted Plan MCP connector only if the
|
|
2369
|
+
user explicitly asks to publish or share.`;
|
|
2357
2370
|
}
|
|
2358
2371
|
if (input.mode === "self-hosted") {
|
|
2359
2372
|
return `## Installed Mode
|
|
@@ -2806,16 +2819,6 @@ function clientPromptOptions(installsMcp) {
|
|
|
2806
2819
|
const DEFAULT_PUBLIC_SKILLS_SOURCE = "BuilderIO/skills";
|
|
2807
2820
|
const PUBLIC_SKILL_TARGET_PREFIX = "public-skills:";
|
|
2808
2821
|
const BUILT_IN_SKILL_PROMPT_OPTIONS = [
|
|
2809
|
-
{
|
|
2810
|
-
value: "assets",
|
|
2811
|
-
label: "assets",
|
|
2812
|
-
hint: BUILT_IN_APP_SKILLS.assets.manifest.description,
|
|
2813
|
-
},
|
|
2814
|
-
{
|
|
2815
|
-
value: "design-exploration",
|
|
2816
|
-
label: "design-exploration",
|
|
2817
|
-
hint: BUILT_IN_APP_SKILLS.design.manifest.description,
|
|
2818
|
-
},
|
|
2819
2822
|
{
|
|
2820
2823
|
value: "visual-plan",
|
|
2821
2824
|
label: "visual-plan",
|
|
@@ -2826,6 +2829,16 @@ const BUILT_IN_SKILL_PROMPT_OPTIONS = [
|
|
|
2826
2829
|
label: "visual-recap",
|
|
2827
2830
|
hint: "Interactive visual recap that maps PRs/diffs with diagrams, annotated diffs, API/schema summaries, and review notes.",
|
|
2828
2831
|
},
|
|
2832
|
+
{
|
|
2833
|
+
value: "assets",
|
|
2834
|
+
label: "assets",
|
|
2835
|
+
hint: BUILT_IN_APP_SKILLS.assets.manifest.description,
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
value: "design-exploration",
|
|
2839
|
+
label: "design-exploration",
|
|
2840
|
+
hint: BUILT_IN_APP_SKILLS.design.manifest.description,
|
|
2841
|
+
},
|
|
2829
2842
|
{
|
|
2830
2843
|
value: "context-xray",
|
|
2831
2844
|
label: "context-xray",
|
|
@@ -2875,10 +2888,8 @@ function skillPromptOptions(options = {}) {
|
|
|
2875
2888
|
];
|
|
2876
2889
|
}
|
|
2877
2890
|
function defaultSkillPromptTargets(options) {
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
...publicSkillEntries(options).map((entry) => entry.name),
|
|
2881
|
-
];
|
|
2891
|
+
const available = new Set(skillPromptOptions(options).map((entry) => entry.value));
|
|
2892
|
+
return DEFAULT_SKILL_PROMPT_TARGETS.filter((target) => available.has(target));
|
|
2882
2893
|
}
|
|
2883
2894
|
function publicSkillSelectionTarget(skillNames) {
|
|
2884
2895
|
return `${PUBLIC_SKILL_TARGET_PREFIX}${skillNames.join(",")}`;
|
|
@@ -2989,7 +3000,7 @@ async function promptForPlanMode(context) {
|
|
|
2989
3000
|
{
|
|
2990
3001
|
value: "local-files",
|
|
2991
3002
|
label: "Local files only",
|
|
2992
|
-
hint: "Writes
|
|
3003
|
+
hint: "Writes local MDX, starts a localhost bridge, and opens the hosted Plan UI. No sharing, all local.",
|
|
2993
3004
|
},
|
|
2994
3005
|
{
|
|
2995
3006
|
value: "self-hosted",
|
|
@@ -3605,7 +3616,7 @@ async function addPlainSkillRepo(parsed, options) {
|
|
|
3605
3616
|
if (skillsAgents.length === 0) {
|
|
3606
3617
|
throw new Error("Plain skill repositories install through shared .agents for Codex, Pi, Cursor, OpenCode, Copilot, and similar agents, or Claude Code's native files.");
|
|
3607
3618
|
}
|
|
3608
|
-
const args = agentNativeSkillsInstallArgs(parsed, target,
|
|
3619
|
+
const args = agentNativeSkillsInstallArgs(parsed, target, skillsAgents, options.baseDir);
|
|
3609
3620
|
if (!parsed.dryRun) {
|
|
3610
3621
|
const code = await (options.runCommand ?? runCommand)("npx", args, {
|
|
3611
3622
|
stdio: "silent",
|