eve 0.91.0 → 1.0.0-rc.1
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/CHANGELOG.md +6 -36
- package/README.md +4 -6
- package/dist/src/channel/routes.d.ts +7 -3
- package/dist/src/channel/skill-files.d.ts +22 -25
- package/dist/src/channel/skill-files.js +1 -1
- package/dist/src/cli/commands/agent-instructions.js +1 -1
- package/dist/src/cli/commands/registry.js +1 -1
- package/dist/src/compiled/.vendor-stamp.json +4 -4
- package/dist/src/compiled/@vercel/connect/index.js +8 -8
- package/dist/src/compiled/semver/index.d.ts +5 -1
- package/dist/src/compiler/channel-route-plan.d.ts +2 -0
- package/dist/src/compiler/channel-route-plan.js +1 -1
- package/dist/src/compiler/normalize-agent-config.js +1 -1
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/tools/agent-router-workflow.js +1 -1
- package/dist/src/extensions/git/extension/lib/gh-tool.js +1 -1
- package/dist/src/framework/host-inventory.js +1 -1
- package/dist/src/internal/application/compiled-artifacts.d.ts +0 -11
- package/dist/src/internal/application/compiled-artifacts.js +3 -3
- package/dist/src/internal/application/import-specifier.d.ts +6 -0
- package/dist/src/internal/application/import-specifier.js +1 -1
- package/dist/src/internal/application/paths.d.ts +2 -10
- package/dist/src/internal/application/paths.js +1 -1
- package/dist/src/internal/application/stamped-package-version.js +1 -1
- package/dist/src/internal/authored-asset-import-plugin.d.ts +18 -1
- package/dist/src/internal/authored-asset-import-plugin.js +1 -1
- package/dist/src/internal/authored-package-boundary.js +1 -1
- package/dist/src/internal/authored-package-tsconfig-paths.js +1 -1
- package/dist/src/internal/bundler/extension-mount-plugin.d.ts +19 -1
- package/dist/src/internal/bundler/extension-scope-plugin.d.ts +15 -5
- package/dist/src/internal/bundler/extension-scope-plugin.js +2 -2
- package/dist/src/internal/bundler/filters.d.ts +7 -0
- package/dist/src/internal/bundler/filters.js +1 -0
- package/dist/src/internal/bundler/pseudo-packages.d.ts +17 -7
- package/dist/src/internal/bundler/pseudo-packages.js +1 -1
- package/dist/src/internal/bundler/vendored-dependency-log.d.ts +1 -1
- package/dist/src/internal/nitro/dev-runtime-artifacts-retention.d.ts +0 -1
- package/dist/src/internal/nitro/dev-runtime-artifacts-retention.js +1 -1
- package/dist/src/internal/nitro/dev-runtime-artifacts.d.ts +2 -6
- package/dist/src/internal/nitro/dev-runtime-artifacts.js +1 -1
- package/dist/src/internal/nitro/dev-runtime-source-snapshot-local-roots.d.ts +0 -1
- package/dist/src/internal/nitro/dev-runtime-source-snapshot-local-roots.js +1 -1
- package/dist/src/internal/nitro/dev-runtime-source-snapshot.js +1 -1
- package/dist/src/internal/nitro/development-generation.d.ts +18 -6
- package/dist/src/internal/nitro/development-generation.js +1 -1
- package/dist/src/internal/nitro/host/build-application.js +1 -1
- package/dist/src/internal/nitro/host/create-host-nitro.d.ts +7 -0
- package/dist/src/internal/nitro/host/create-host-nitro.js +1 -0
- package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.d.ts +2 -0
- package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.js +1 -1
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.js +1 -1
- package/dist/src/internal/nitro/host/dev-build-operations.js +1 -1
- package/dist/src/internal/nitro/host/dev-host-fingerprint.d.ts +4 -0
- package/dist/src/internal/nitro/host/dev-host-fingerprint.js +1 -1
- package/dist/src/internal/nitro/host/drained-nitro-dev-server.js +1 -1
- package/dist/src/internal/nitro/host/extension-external-dependencies.d.ts +7 -0
- package/dist/src/internal/nitro/host/extension-external-dependencies.js +1 -0
- package/dist/src/internal/nitro/host/{external-dependency-output-check-plugin.d.ts → external-dependency-output-check.d.ts} +4 -9
- package/dist/src/internal/nitro/host/external-dependency-output-check.js +3 -0
- package/dist/src/internal/nitro/host/externals-policy.d.ts +21 -0
- package/dist/src/internal/nitro/host/externals-policy.js +1 -0
- package/dist/src/internal/nitro/host/host-plugins.d.ts +41 -0
- package/dist/src/internal/nitro/host/host-plugins.js +1 -0
- package/dist/src/internal/nitro/host/host-routes.d.ts +90 -0
- package/dist/src/internal/nitro/host/host-routes.js +1 -0
- package/dist/src/internal/nitro/host/host-spec.d.ts +65 -0
- package/dist/src/internal/nitro/host/host-spec.js +1 -0
- package/dist/src/internal/nitro/host/hosted-graph-plugin.d.ts +41 -0
- package/dist/src/internal/nitro/host/hosted-graph-plugin.js +5 -0
- package/dist/src/internal/nitro/host/instrumentation-entry.d.ts +35 -3
- package/dist/src/internal/nitro/host/instrumentation-entry.js +2 -2
- package/dist/src/internal/nitro/host/nitro-bundler-config.d.ts +2 -5
- package/dist/src/internal/nitro/host/nitro-bundler-config.js +1 -1
- package/dist/src/internal/nitro/host/nitro-routing-import-specifier-plugin.d.ts +14 -4
- package/dist/src/internal/nitro/host/nitro-routing-import-specifier-plugin.js +1 -1
- package/dist/src/internal/nitro/host/ports.d.ts +10 -0
- package/dist/src/internal/nitro/host/ports.js +1 -1
- package/dist/src/internal/nitro/host/route-handlers.d.ts +62 -0
- package/dist/src/internal/nitro/host/route-handlers.js +9 -0
- package/dist/src/internal/nitro/host/skill-files-plugin.d.ts +21 -0
- package/dist/src/internal/nitro/host/skill-files-plugin.js +2 -0
- package/dist/src/internal/nitro/host/start-development-server.js +2 -2
- package/dist/src/internal/nitro/host/start-production-server.js +1 -1
- package/dist/src/internal/nitro/host/vercel-build-output-config.d.ts +16 -19
- package/dist/src/internal/nitro/host/vercel-build-output-config.js +1 -1
- package/dist/src/internal/nitro/host/vercel-output.d.ts +15 -0
- package/dist/src/internal/nitro/host/vercel-output.js +1 -0
- package/dist/src/internal/nitro/host/workspace-extensions.js +1 -1
- package/dist/src/internal/nitro/routes/channel-dispatch.d.ts +4 -3
- package/dist/src/internal/nitro/routes/channel-dispatch.js +1 -1
- package/dist/src/internal/nitro/routes/connection-events.js +1 -1
- package/dist/src/internal/nitro/routes/dev-schedule-dispatch.d.ts +1 -1
- package/dist/src/internal/nitro/routes/method-guard.d.ts +6 -0
- package/dist/src/internal/nitro/routes/method-guard.js +1 -0
- package/dist/src/internal/nitro/routes/schedule-collection-consumer.js +1 -1
- package/dist/src/internal/workflow-bundle/builder-support.d.ts +0 -9
- package/dist/src/internal/workflow-bundle/builder.d.ts +9 -5
- package/dist/src/internal/workflow-bundle/builder.js +2 -2
- package/dist/src/internal/workflow-bundle/flow-route.d.ts +2 -0
- package/dist/src/internal/workflow-bundle/flow-route.js +1 -0
- package/dist/src/internal/workflow-bundle/nitro-step-entry.d.ts +7 -5
- package/dist/src/internal/workflow-bundle/nitro-step-entry.js +2 -2
- package/dist/src/runtime/sessions/runtime-session.d.ts +3 -0
- package/dist/src/runtime/sessions/runtime-session.js +1 -1
- package/dist/src/runtime/subagents/workflow.js +1 -1
- package/dist/src/setup/scaffold/create/add-to-project.js +1 -1
- package/dist/src/setup/scaffold/create/extension.js +1 -1
- package/dist/src/setup/scaffold/create/project.js +2 -3
- package/dist/src/setup/scaffold/update/channels.js +1 -1
- package/dist/src/setup/scaffold/update/connections.js +2 -2
- package/dist/src/setup/scaffold/version-tokens.d.ts +1 -1
- package/dist/src/setup/scaffold/version-tokens.js +1 -1
- package/dist/src/shared/path-inside.d.ts +2 -0
- package/dist/src/shared/path-inside.js +1 -0
- package/dist/src/shared/workflow-sandbox.d.ts +5 -1
- package/dist/src/shared/workflow-sandbox.js +1 -1
- package/dist/src/tools/provided/ask-question-workflow.js +1 -1
- package/dist/src/tools/provided/sleep-workflow.js +1 -1
- package/docs/README.md +41 -44
- package/docs/channels/chat-sdk/index.mdx +146 -0
- package/docs/channels/chat-sdk/meta.json +4 -0
- package/docs/channels/{chat-sdk.mdx → chat-sdk/reference.mdx} +28 -26
- package/docs/channels/custom.mdx +9 -3
- package/docs/channels/discord/index.mdx +185 -0
- package/docs/channels/discord/meta.json +4 -0
- package/docs/channels/{discord.mdx → discord/reference.mdx} +38 -23
- package/docs/channels/eve.mdx +7 -7
- package/docs/channels/github/index.mdx +130 -0
- package/docs/channels/github/meta.json +4 -0
- package/docs/channels/{github.mdx → github/reference.mdx} +39 -16
- package/docs/channels/{overview.mdx → index.mdx} +33 -33
- package/docs/channels/linear/index.mdx +116 -0
- package/docs/channels/linear/meta.json +4 -0
- package/docs/channels/{linear.mdx → linear/reference.mdx} +31 -14
- package/docs/channels/linq/index.mdx +119 -0
- package/docs/channels/linq/meta.json +4 -0
- package/docs/channels/{linq.mdx → linq/reference.mdx} +58 -30
- package/docs/channels/mcp.mdx +1 -1
- package/docs/channels/meta.json +5 -6
- package/docs/channels/photon/index.mdx +122 -0
- package/docs/channels/photon/meta.json +4 -0
- package/docs/channels/{photon.mdx → photon/reference.mdx} +65 -31
- package/docs/channels/slack/index.mdx +349 -0
- package/docs/channels/slack/meta.json +4 -0
- package/docs/channels/{slack.mdx → slack/reference.mdx} +77 -89
- package/docs/channels/teams/index.mdx +102 -0
- package/docs/channels/teams/meta.json +4 -0
- package/docs/channels/{teams.mdx → teams/reference.mdx} +32 -23
- package/docs/channels/telegram/index.mdx +98 -0
- package/docs/channels/telegram/meta.json +4 -0
- package/docs/channels/{telegram.mdx → telegram/reference.mdx} +30 -12
- package/docs/channels/twilio/index.mdx +89 -0
- package/docs/channels/twilio/meta.json +4 -0
- package/docs/channels/twilio/reference.mdx +108 -0
- package/docs/concepts/meta.json +0 -1
- package/docs/concepts/project-structure.mdx +1 -1
- package/docs/concepts/security-model.md +1 -1
- package/docs/concepts/sessions-runs-and-streaming.md +5 -5
- package/docs/connections/{overview.mdx → index.mdx} +2 -2
- package/docs/connections/mcp.mdx +1 -1
- package/docs/connections/meta.json +1 -1
- package/docs/{guides/dynamic-capabilities.md → dynamic-configuration/index.md} +13 -12
- package/docs/dynamic-configuration/meta.json +1 -1
- package/docs/evals/{overview.mdx → index.mdx} +26 -26
- package/docs/evals/meta.json +1 -10
- package/docs/evals/targets.mdx +1 -1
- package/docs/experimental/dynamic-schedules.mdx +1 -1
- package/docs/{extensions.md → extensions/index.md} +6 -6
- package/docs/extensions/meta.json +5 -0
- package/docs/getting-started.mdx +11 -13
- package/docs/guides/auth-and-route-protection.md +1 -1
- package/docs/guides/client/continuations.mdx +1 -1
- package/docs/guides/client/{overview.mdx → index.mdx} +9 -9
- package/docs/guides/client/meta.json +1 -1
- package/docs/guides/deployment/{overview.md → index.md} +21 -19
- package/docs/guides/deployment/meta.json +1 -1
- package/docs/guides/deployment/{self-hosting.md → self-hosting/index.md} +27 -27
- package/docs/guides/deployment/self-hosting/meta.json +4 -0
- package/docs/guides/frontend/{overview.mdx → index.mdx} +27 -27
- package/docs/guides/frontend/meta.json +1 -10
- package/docs/guides/frontend/nextjs.mdx +4 -4
- package/docs/guides/frontend/nuxt.mdx +2 -2
- package/docs/guides/frontend/sveltekit.mdx +2 -2
- package/docs/guides/frontend/tanstack.mdx +7 -7
- package/docs/guides/frontend/{use-eve-agent.mdx → use-eve-agent/index.mdx} +4 -4
- package/docs/guides/frontend/use-eve-agent/meta.json +4 -0
- package/docs/guides/frontend/use-eve-agent-svelte.mdx +6 -6
- package/docs/guides/frontend/use-eve-agent-vue.mdx +6 -6
- package/docs/guides/hooks.md +1 -1
- package/docs/guides/instrumentation/instrumentation.mdx +1 -1
- package/docs/guides/instrumentation/otel.mdx +1 -1
- package/docs/guides/meta.json +0 -1
- package/docs/guides/upgrade/agent-files.md +178 -0
- package/docs/guides/upgrade/channels.md +61 -0
- package/docs/guides/upgrade/clients.md +130 -0
- package/docs/guides/upgrade/evals-and-cli.md +44 -0
- package/docs/guides/upgrade/index.md +90 -0
- package/docs/guides/upgrade/meta.json +12 -0
- package/docs/guides/upgrade/saved-history.md +86 -0
- package/docs/guides/upgrade/session-events.md +139 -0
- package/docs/memory/{overview.mdx → index.mdx} +1 -1
- package/docs/memory/meta.json +1 -1
- package/docs/meta.json +9 -14
- package/docs/patterns/fork-conversations-into-new-threads.md +2 -2
- package/docs/patterns/voice-notes.md +1 -1
- package/docs/protocols/ucp.mdx +1 -1
- package/docs/reference/agent-files.md +1 -1
- package/docs/reference/{cli.md → cli/index.md} +8 -8
- package/docs/reference/cli/meta.json +5 -0
- package/docs/reference/meta.json +8 -1
- package/docs/reference/typescript-api.md +11 -9
- package/docs/sandbox/docker.mdx +26 -1
- package/docs/sandbox/meta.json +1 -9
- package/docs/schedules.mdx +1 -1
- package/docs/subagents/meta.json +1 -1
- package/docs/tools/human-in-the-loop.md +4 -4
- package/docs/tools/meta.json +1 -1
- package/docs/tools/tasks.md +1 -1
- package/docs/use-cases.mdx +2 -7
- package/package.json +4 -4
- package/dist/src/internal/application/cache-metadata.d.ts +0 -9
- package/dist/src/internal/application/cache-metadata.js +0 -1
- package/dist/src/internal/nitro/host/application-route-registry.d.ts +0 -54
- package/dist/src/internal/nitro/host/application-route-registry.js +0 -1
- package/dist/src/internal/nitro/host/channel-routes.d.ts +0 -21
- package/dist/src/internal/nitro/host/channel-routes.js +0 -5
- package/dist/src/internal/nitro/host/compiled-sandbox-provider-prune-plugin.d.ts +0 -18
- package/dist/src/internal/nitro/host/compiled-sandbox-provider-prune-plugin.js +0 -3
- package/dist/src/internal/nitro/host/configure-nitro-routes.d.ts +0 -12
- package/dist/src/internal/nitro/host/configure-nitro-routes.js +0 -3
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts +0 -34
- package/dist/src/internal/nitro/host/create-application-nitro.js +0 -1
- package/dist/src/internal/nitro/host/cron-handler-route.d.ts +0 -41
- package/dist/src/internal/nitro/host/cron-handler-route.js +0 -1
- package/dist/src/internal/nitro/host/development-runtime-prune-plugin.d.ts +0 -12
- package/dist/src/internal/nitro/host/development-runtime-prune-plugin.js +0 -3
- package/dist/src/internal/nitro/host/extension-external-dependency-plugin.d.ts +0 -16
- package/dist/src/internal/nitro/host/extension-external-dependency-plugin.js +0 -1
- package/dist/src/internal/nitro/host/external-dependency-output-check-plugin.js +0 -3
- package/dist/src/internal/nitro/host/optional-engine-dependency-plugin.d.ts +0 -28
- package/dist/src/internal/nitro/host/optional-engine-dependency-plugin.js +0 -1
- package/dist/src/internal/nitro/host/schedule-task-routes.d.ts +0 -36
- package/dist/src/internal/nitro/host/schedule-task-routes.js +0 -2
- package/dist/src/internal/nitro/host/skill-server-assets.d.ts +0 -29
- package/dist/src/internal/nitro/host/skill-server-assets.js +0 -1
- package/dist/src/internal/workflow-bundle/build-queue.d.ts +0 -1
- package/dist/src/internal/workflow-bundle/build-queue.js +0 -1
- package/dist/src/internal/workflow-bundle/eve-service-route-output.d.ts +0 -5
- package/dist/src/internal/workflow-bundle/eve-service-route-output.js +0 -1
- package/dist/src/internal/workflow-bundle/vercel-workflow-output.d.ts +0 -34
- package/dist/src/internal/workflow-bundle/vercel-workflow-output.js +0 -1
- package/docs/channels/twilio.mdx +0 -84
- package/docs/concepts/upgrade-to-v27-events.md +0 -197
- package/docs/guides/prepare-for-1-0.md +0 -277
- package/docs/tutorial/connect-a-warehouse.mdx +0 -79
- package/docs/tutorial/first-agent.mdx +0 -73
- package/docs/tutorial/guard-the-spend.mdx +0 -60
- package/docs/tutorial/how-it-runs.mdx +0 -25
- package/docs/tutorial/meta.json +0 -15
- package/docs/tutorial/query-sample-data.mdx +0 -116
- package/docs/tutorial/remember-definitions.mdx +0 -72
- package/docs/tutorial/run-analysis.mdx +0 -227
- package/docs/tutorial/ship-it.mdx +0 -146
- package/docs/tutorial/team-playbooks.mdx +0 -82
- /package/docs/tools/{overview.mdx → index.mdx} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,44 +1,14 @@
|
|
|
1
|
-
# eve 0.
|
|
1
|
+
# eve 1.0.0-rc.1
|
|
2
2
|
|
|
3
|
-
Released 2026-10-
|
|
4
|
-
|
|
5
|
-
## Breaking Changes
|
|
6
|
-
|
|
7
|
-
- `session.clear()` now cancels a running turn and every working task before it clears history, instead of waiting for the turn to finish.
|
|
8
|
-
Previously a clear sent while a turn waited on tasks didn't run until the tasks finished, and never ran if one hung. Tasks a clear stops end with `task.ended` `outcome: "cancelled"`, and no task result the cleared conversation hadn't read reaches the next turn. ([#5619](https://github.com/vercel/eve/pull/5619))
|
|
3
|
+
Released 2026-10-31 · [Compare with 1.0.0-rc.0](https://github.com/vercel/eve/compare/eve%401.0.0-rc.0...eve%401.0.0-rc.1)
|
|
9
4
|
|
|
10
5
|
## Features
|
|
11
6
|
|
|
12
|
-
-
|
|
13
|
-
Other handlers don't receive it. It continues a completed turn, or a turn the same hook cancelled, and hooks that continue one turn share its next turn. It takes `MessageContent` with `session.send()`'s `context` and an optional `auth`, returns `{ queued }` synchronously, and yields to any other turn, cancel, clear, or reset that comes first. `delivery.admitted` records `source: { channel, hook }`. ([#5555](https://github.com/vercel/eve/pull/5555))
|
|
7
|
+
- Removed the Build an Agent tutorial from the docs, and the link to it from the README that `eve init` writes; the old tutorial URLs redirect to the matching guides. ([#5717](https://github.com/vercel/eve/pull/5717))
|
|
14
8
|
|
|
15
9
|
## Bug Fixes
|
|
16
10
|
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
Thanks @mrud for reporting this in #5651. ([#5653](https://github.com/vercel/eve/pull/5653))
|
|
20
|
-
- HTTP Basic auth now compares the username and password in constant time on every request, so response timing no longer reveals whether the username matched. ([#5521](https://github.com/vercel/eve/pull/5521))
|
|
21
|
-
- Anthropic agents no longer fail with a 400 when the model calls a server tool, such as `web_search` or programmatic `code_execution`, beside a local tool.
|
|
22
|
-
Anthropic runs that server tool after the local results arrive and returns its result at the start of the next response, so the next request must end on those local results. Until that result arrives, eve now holds a message that steers the turn for one model step, holds changed catalog or skill announcements, sends an empty-response retry's note as a system instruction, and keeps compaction from separating the deferred result from its call or adding a resumption message after the local results. When the result can no longer arrive, because the turn was cancelled, failed, or retried, or a new turn starts, eve answers the server call as one whose outcome is unknown, so the model reads the new message right away.
|
|
23
|
-
Thanks @jam3gw for reporting this in #4890. ([#4891](https://github.com/vercel/eve/pull/4891))
|
|
24
|
-
- A Discord `display: "select"` request with an option `id` longer than 100 characters now fails with a clear error instead of posting a select whose truncated value came back as an id the request never offered, which dropped or mismatched the user's choice. ([#5533](https://github.com/vercel/eve/pull/5533))
|
|
25
|
-
- Sessions now fail controls their eve version does not support, so the control's delivery settles `failed` instead of never settling. ([#5622](https://github.com/vercel/eve/pull/5622))
|
|
26
|
-
- A provider tool result that arrives in the response after its call, such as an Anthropic tool search the model started beside a local tool, now settles the call the earlier step introduced.
|
|
27
|
-
Previously eve published that call a second time, so with the session-event checker on (`eve dev`, `eve eval`, or `EVE_CHECK_SESSION_EVENTS=1`) the step failed with `introduced-twice`, and without it the session log recorded one call introduced twice. ([#5648](https://github.com/vercel/eve/pull/5648))
|
|
28
|
-
- A turn cancellation raised while the model is being resolved now cancels the turn instead of failing the session with `MODEL_SELECTION_FAILED`, even when it arrives before the turn's abort signal fires.
|
|
29
|
-
Thanks @burn2delete for reporting this and proposing the fix in #4273. ([#4274](https://github.com/vercel/eve/pull/4274))
|
|
30
|
-
- Session steps now return only the session projection rows they changed, instead of every row of each changed table, so a step's stored output no longer grows with the calls and parts the turn already settled.
|
|
31
|
-
Thanks @mrud for reporting this in #5635. ([#5642](https://github.com/vercel/eve/pull/5642))
|
|
32
|
-
- Slack approval and question cards now show their prompt, tool input, and answer as literal text.
|
|
33
|
-
A model-written `<!channel>` or `<url|label>` in a prompt or tool input no longer notifies the channel or hides a link's real destination from the approver. `Card(...)` rendering is unchanged. ([#5517](https://github.com/vercel/eve/pull/5517))
|
|
34
|
-
- A connection in `agent/connections/*.ts` now keeps an `approval` written as `{ request, response, prompt }`, so its tools ask for approval and run its `response` policy.
|
|
35
|
-
Previously only the function form was kept and the object form was dropped, so the connection's tools ran without asking anyone. A malformed `approval` now fails resolution instead of being ignored. ([#5632](https://github.com/vercel/eve/pull/5632))
|
|
36
|
-
- Teams approval and question cards now show the prompt, tool input, and answer as literal text.
|
|
37
|
-
A model-written `[docs](https://evil.example)` no longer renders as a link whose label hides its destination. The cards use `RichTextBlock` text runs, and the message text is sent as plain text. ([#5529](https://github.com/vercel/eve/pull/5529))
|
|
38
|
-
- Teams inbound verification now accepts only RS256-signed Bot Connector tokens, as Microsoft documents, instead of using the algorithm named in the token header. ([#5530](https://github.com/vercel/eve/pull/5530))
|
|
39
|
-
- `ctx.turn.input` keeps the turn's input after the turn pauses for an approval, a question, a sign-in, or a budget answer.
|
|
40
|
-
Dynamic values no longer see empty input after the pause, including `auto()` if its per-turn memo was invalidated. ([#5628](https://github.com/vercel/eve/pull/5628))
|
|
41
|
-
- `web_fetch` now rejects a `timeout` of zero or less as invalid tool input, instead of throwing an opaque `RangeError` or aborting the request immediately. ([#5532](https://github.com/vercel/eve/pull/5532))
|
|
42
|
-
- `eve` setup now opens browser URLs on Windows through `rundll32` instead of `cmd /c start`, so `&` or `|` in a URL is no longer interpreted by the shell. ([#5522](https://github.com/vercel/eve/pull/5522))
|
|
11
|
+
- Default scaffolded projects to `@vercel/connect@2.7.0` and require `^2.7.0` for the optional `@vercel/connect` peer.
|
|
12
|
+
Earlier `@vercel/connect` releases reject eve 1.0 prereleases as a peer, which made `npm install` fail with `ERESOLVE` on freshly scaffolded projects. ([#5733](https://github.com/vercel/eve/pull/5733))
|
|
43
13
|
|
|
44
|
-
For an upgrade across multiple releases, review each version between the installed and target versions in the [target version's changelog](https://raw.githubusercontent.com/vercel/eve/refs/tags/eve%
|
|
14
|
+
For an upgrade across multiple releases, review each version between the installed and target versions in the [target version's changelog](https://raw.githubusercontent.com/vercel/eve/refs/tags/eve%401.0.0-rc.1/packages/eve/CHANGELOG.md).
|
package/README.md
CHANGED
|
@@ -10,9 +10,7 @@ The framework is called eve. The published npm package is `eve`. The CLI binary
|
|
|
10
10
|
|
|
11
11
|
The installed package contains its release notes in `CHANGELOG.md`, with a link to the full changelog through that version. For an upgrade across releases, review the target version's history at `https://raw.githubusercontent.com/vercel/eve/refs/tags/eve%40<version>/packages/eve/CHANGELOG.md`.
|
|
12
12
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
eve is currently a preview and subject to the Vercel beta terms; the framework, APIs, documentation, and behavior may change before general availability.
|
|
13
|
+
## Safeguards
|
|
16
14
|
|
|
17
15
|
As the deployer, it is your responsibility to ensure your agent complies with applicable laws.
|
|
18
16
|
|
|
@@ -160,7 +158,7 @@ CLI commands:
|
|
|
160
158
|
|
|
161
159
|
## Deploying
|
|
162
160
|
|
|
163
|
-
eve is built to be durable. The runtime is Nitro + Workflows. Read the [deployment guide](https://eve.dev/docs/guides/deployment
|
|
161
|
+
eve is built to be durable. The runtime is Nitro + Workflows. Read the [deployment guide](https://eve.dev/docs/guides/deployment) for the deployment path, environment variables, and configuration.
|
|
164
162
|
|
|
165
163
|
## Read Next
|
|
166
164
|
|
|
@@ -172,9 +170,9 @@ These files ship inside the installed package at `node_modules/eve/docs/`:
|
|
|
172
170
|
- [`agent.ts`](https://eve.dev/docs/agent-config) — agent config reference
|
|
173
171
|
- [Automatic Model Selection](https://eve.dev/docs/guides/decide) — choose an agent model for each request
|
|
174
172
|
- [TypeScript API Reference](https://eve.dev/docs/reference/typescript-api) — complete `define*` and runtime helper reference
|
|
175
|
-
- [Vercel Deployment](https://eve.dev/docs/guides/deployment
|
|
173
|
+
- [Vercel Deployment](https://eve.dev/docs/guides/deployment) — deploy to production
|
|
176
174
|
|
|
177
|
-
By authoring concern: [Tools](https://eve.dev/docs/tools) · [Channels](https://eve.dev/docs/channels
|
|
175
|
+
By authoring concern: [Tools](https://eve.dev/docs/tools) · [Channels](https://eve.dev/docs/channels) · [Hooks](https://eve.dev/docs/guides/hooks) · [Skills](https://eve.dev/docs/skills) · [Sandbox](https://eve.dev/docs/sandbox) · [Connections](https://eve.dev/docs/connections) · [Subagents](https://eve.dev/docs/subagents) · [Schedules](https://eve.dev/docs/schedules) · [Evals](https://eve.dev/docs/evals)
|
|
178
176
|
|
|
179
177
|
By runtime concern: [Sessions and Streaming](https://eve.dev/docs/concepts/sessions-runs-and-streaming) · [Session Context](https://eve.dev/docs/guides/session-context) · [Context Control](https://eve.dev/docs/concepts/context-control) · [Auth and Route Protection](https://eve.dev/docs/guides/auth-and-route-protection) · [CLI, Build, and Debugging](https://eve.dev/docs/reference/cli) · [Instrumentation](https://eve.dev/docs/guides/instrumentation)
|
|
180
178
|
|
|
@@ -26,7 +26,11 @@ export interface RouteHandlerArgs<TState = undefined> {
|
|
|
26
26
|
* on the returned handle; the target channel owns its address and initial state.
|
|
27
27
|
*/
|
|
28
28
|
readonly to: CrossChannelToFn;
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Path parameters matched for the current route, percent-decoded except
|
|
31
|
+
* `%2F` and `%5C`, which stay encoded so a parameter never gains a path
|
|
32
|
+
* separator.
|
|
33
|
+
*/
|
|
30
34
|
params: Readonly<Record<string, string>>;
|
|
31
35
|
/** Keeps background work alive after the route returns its response. */
|
|
32
36
|
waitUntil: (task: Promise<unknown>) => void;
|
|
@@ -49,8 +53,8 @@ export interface RouteHandlerArgs<TState = undefined> {
|
|
|
49
53
|
* Reads one file of a compiled skill as raw bytes. `path` is relative to
|
|
50
54
|
* the skill root and defaults to its `SKILL.md`. Rejects paths that are
|
|
51
55
|
* absolute or contain `.`, `..`, or empty segments, files the skill does
|
|
52
|
-
* not list, and files over 512 KiB. Production builds
|
|
53
|
-
* server
|
|
56
|
+
* not list, and files over 512 KiB. Production builds embed skill files in
|
|
57
|
+
* the server bundle, so they count toward the deployed function's size.
|
|
54
58
|
*/
|
|
55
59
|
readSkill(skill: string, path?: string): Promise<Uint8Array>;
|
|
56
60
|
/** Runs one of the agent's tools as `auth`, outside any conversation. */
|
|
@@ -34,26 +34,17 @@ export interface SkillFileSource {
|
|
|
34
34
|
listDirectories(skill: string): Promise<readonly string[]>;
|
|
35
35
|
readFile(skill: string, path: string): Promise<Uint8Array>;
|
|
36
36
|
}
|
|
37
|
-
/** Nitro `serverAssets` base that holds the root agent's shipped skill files. */
|
|
38
|
-
export declare const SKILL_FILES_SERVER_ASSET_BASE = "eve-skills";
|
|
39
|
-
/** Nitro `serverAssets` base that holds {@link SKILL_FILES_INDEX_KEY}. */
|
|
40
|
-
export declare const SKILL_FILES_INDEX_SERVER_ASSET_BASE = "eve-skill-index";
|
|
41
|
-
/** Key of the skill file index inside {@link SKILL_FILES_INDEX_SERVER_ASSET_BASE}. */
|
|
42
|
-
export declare const SKILL_FILES_INDEX_KEY = "skills.json";
|
|
43
37
|
/**
|
|
44
38
|
* One indexed file: `[path, size, sha256]`. `sha256` is `null` for files over
|
|
45
|
-
* {@link MAX_SKILL_FILE_BYTES}, which are listed but not shipped.
|
|
46
|
-
* file's storage key is {@link skillFileStorageKey} of its digest.
|
|
39
|
+
* {@link MAX_SKILL_FILE_BYTES}, which are listed but not shipped.
|
|
47
40
|
*/
|
|
48
41
|
export type SkillFilesIndexEntry = readonly [path: string, size: number, sha256: string | null];
|
|
49
42
|
/**
|
|
50
43
|
* Index of the skill files a production build ships, written by `eve build`.
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* not object keys, so names such as `__proto__` stay plain data.
|
|
44
|
+
* Entries are arrays, not object keys, so names such as `__proto__` stay
|
|
45
|
+
* plain data.
|
|
54
46
|
*/
|
|
55
47
|
export interface SkillFilesIndex {
|
|
56
|
-
readonly version: 1;
|
|
57
48
|
/** `[skill, files, directories]`, sorted by skill then path. */
|
|
58
49
|
readonly skills: readonly (readonly [
|
|
59
50
|
skill: string,
|
|
@@ -61,30 +52,35 @@ export interface SkillFilesIndex {
|
|
|
61
52
|
directories: readonly string[]
|
|
62
53
|
])[];
|
|
63
54
|
}
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
55
|
+
/** The skill files a production build embeds, as its generated Nitro plugin installs them. */
|
|
56
|
+
export interface BundledSkillFiles {
|
|
57
|
+
/** The JSON text of a {@link SkillFilesIndex}. */
|
|
58
|
+
readonly index: string;
|
|
59
|
+
/** Loads the shipped bytes with this SHA-256. Every file with that digest shares the array. */
|
|
60
|
+
readonly read: (sha256: string) => Promise<Uint8Array>;
|
|
61
|
+
}
|
|
62
|
+
/** The parsed form of {@link BundledSkillFiles} a runtime session holds. */
|
|
63
|
+
export interface InstalledSkillFiles {
|
|
64
|
+
readonly read: (sha256: string) => Promise<Uint8Array>;
|
|
65
|
+
readonly skills: ReadonlyMap<string, IndexedSkill>;
|
|
66
|
+
}
|
|
67
|
+
interface IndexedSkill {
|
|
68
|
+
readonly files: readonly SkillFilesIndexEntry[];
|
|
69
|
+
readonly directories: readonly string[];
|
|
73
70
|
}
|
|
74
|
-
/**
|
|
75
|
-
export
|
|
71
|
+
/** Installs a production build's embedded skill files on the active runtime session. */
|
|
72
|
+
export declare function installBundledSkillFiles(input: BundledSkillFiles): void;
|
|
76
73
|
/**
|
|
77
74
|
* Selects the skill file source for the active compiled artifacts.
|
|
78
75
|
*
|
|
79
76
|
* Skill files are materialized under the node's workspace resource root by
|
|
80
77
|
* `compiler/workspace-resources.ts`. Disk artifacts (dev) read that tree with
|
|
81
78
|
* {@link createDiskSkillFileSource}; bundled artifacts (production builds)
|
|
82
|
-
* read the
|
|
79
|
+
* read the files `eve build` embedded for the root agent.
|
|
83
80
|
*/
|
|
84
81
|
export declare function createCompiledSkillFileSource(input: {
|
|
85
82
|
readonly compiledArtifactsSource: RuntimeCompiledArtifactsSource;
|
|
86
83
|
readonly workspaceResourceRoot: CompiledWorkspaceResourceRoot;
|
|
87
|
-
readonly openStorage?: OpenSkillFileStorage;
|
|
88
84
|
}): SkillFileSource;
|
|
89
85
|
/**
|
|
90
86
|
* Reads skill files from a materialized `skills/<name>/` tree.
|
|
@@ -112,3 +108,4 @@ export declare function readSkillFile(input: {
|
|
|
112
108
|
readonly source: SkillFileSource;
|
|
113
109
|
}): Promise<Uint8Array>;
|
|
114
110
|
export declare function comparePaths(left: string, right: string): number;
|
|
111
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{lstat,open,readdir,realpath}from"node:fs/promises";import{getActiveRuntimeSession}from"#runtime/sessions/runtime-session.js";import{constants}from"node:fs";import nodePath from"node:path";import{resolveRuntimeCompilerArtifactPaths}from"#runtime/loaders/artifact-paths.js";const MAX_SKILL_FILE_BYTES=524288,SKILL_ENTRY_FILE_NAME=`SKILL.md`;function isSkillEntryFileName(e){return e.toLowerCase()===`skill.md`}var SkillReadError=class extends Error{code;constructor(e,t){super(t),this.name=`SkillReadError`,this.code=e}};function installBundledSkillFiles(e){let t=JSON.parse(e.index);getActiveRuntimeSession().skillFiles={read:e.read,skills:new Map(t.skills.map(([e,t,n])=>[e,{directories:n,files:t}]))}}function createCompiledSkillFileSource(e){if(e.compiledArtifactsSource.kind!==`disk`)return bundledSkillFileSource;let{compileDirectoryPath:t}=resolveRuntimeCompilerArtifactPaths(e.compiledArtifactsSource.appRoot);return createDiskSkillFileSource(`${t}/${e.workspaceResourceRoot.logicalPath}/skills`)}const bundledSkillFileSource={async listFiles(e){return(installedSkillFiles().skills.get(e)?.files??[]).map(([e,t])=>({path:e,size:t}))},async listDirectories(e){return installedSkillFiles().skills.get(e)?.directories??[]},async readFile(e,t){let n=installedSkillFiles(),r=n.skills.get(e)?.files.find(([e])=>e===t);if(r===void 0)throw unknownFile(e,t);let[,i,a]=r;if(a===null)throw tooLarge(e,t,i);return(await n.read(a)).slice()}};function installedSkillFiles(){let e=getActiveRuntimeSession().skillFiles;if(e===null)throw new SkillReadError(`unavailable`,"Skill files are not available: this server was not built by `eve build`, so it carries no skill files.");return e}function createDiskSkillFileSource(e){return{async listFiles(t){let n=`${e}/${t}`;if(!await isRealDirectory(n))return[];let{files:r}=await walkSkill(n);return r.sort((e,t)=>comparePaths(e.path,t.path))},async listDirectories(t){let n=`${e}/${t}`;if(!await isRealDirectory(n))return[];let{directories:r}=await walkSkill(n);return r.sort(comparePaths)},async readFile(t,n){let r=`${e}/${t}`;if(!await isRealDirectory(r))throw unknownFile(t,n);let i=n.split(`/`),a=r;for(let[e,r]of i.entries()){a=`${a}/${r}`;let o=await lstatOrUndefined(a),s=e===i.length-1;if(o===void 0||(s?!o.isFile():!o.isDirectory()))throw unknownFile(t,n)}let[o,s]=await Promise.all([realpath(r),realpath(a)]),c=nodePath.relative(o,s);if(c===``||nodePath.isAbsolute(c)||c.split(nodePath.sep)[0]===`..`)throw unknownFile(t,n);let l=await open(a,constants.O_RDONLY|(constants.O_NOFOLLOW??0));try{let e=await l.stat();if(!e.isFile())throw unknownFile(t,n);if(e.size>524288)throw tooLarge(t,n,e.size);return new Uint8Array(await l.readFile())}finally{await l.close()}}}}async function lstatOrUndefined(e){try{return await lstat(e)}catch(e){if(e instanceof Error&&`code`in e&&(e.code===`ENOENT`||e.code===`ENOTDIR`))return;throw e}}async function isRealDirectory(e){return(await lstatOrUndefined(e))?.isDirectory()===!0}async function walkSkill(e){let t=[],n=[],walk=async(e,r)=>{for(let i of await readdir(e,{withFileTypes:!0})){let a=r===``?i.name:`${r}/${i.name}`;if(i.isDirectory())n.push(a),await walk(`${e}/${i.name}`,a);else if(i.isFile()){let n=await lstatOrUndefined(`${e}/${i.name}`);n?.isFile()===!0&&t.push({path:a,size:n.size})}}};return await walk(e,``),{directories:n,files:t}}function unknownFile(e,t){return new SkillReadError(`unknown-file`,`Skill "${e}" has no file "${t}".`)}function tooLarge(e,t,n){return new SkillReadError(`too-large`,`Skill "${e}" file "${t}" is ${n} bytes, over the ${MAX_SKILL_FILE_BYTES}-byte limit.`)}async function readSkillFile(e){let t=e.path??`SKILL.md`;assertRelativeSkillPath(t);let n=await e.source.listFiles(e.skill),r=n.find(e=>e.path===t)??(isSkillEntryFileName(t)?n.find(e=>isSkillEntryFileName(e.path)):void 0);if(r===void 0)throw unknownFile(e.skill,t);if(r.size>524288)throw tooLarge(e.skill,r.path,r.size);let i=await e.source.readFile(e.skill,r.path);if(i.byteLength>524288)throw tooLarge(e.skill,r.path,i.byteLength);return i}function assertRelativeSkillPath(e){let invalid=t=>new SkillReadError(`invalid-path`,`Skill file path "${e}" ${t}.`);if(e.length===0)throw invalid(`must not be empty`);if(e.startsWith(`/`)||/^[A-Za-z]:/.test(e))throw invalid(`must be relative to the skill root`);if(e.includes(`\\`)||e.includes(`\0`))throw invalid(`must use "/" separators and contain no NUL bytes`);if(e.split(`/`).some(e=>e===``||e===`.`||e===`..`))throw invalid(`must not contain empty, ".", or ".." segments`)}function comparePaths(e,t){return e<t?-1:+(e>t)}export{MAX_SKILL_FILE_BYTES,SKILL_ENTRY_FILE_NAME,SkillReadError,comparePaths,createCompiledSkillFileSource,createDiskSkillFileSource,installBundledSkillFiles,isSkillEntryFileName,readSkillFile};
|
|
@@ -2,5 +2,5 @@ import{readFileSync}from"node:fs";import{join}from"node:path";import pc from"#co
|
|
|
2
2
|
|
|
3
3
|
`).replaceAll(`{{devCommand}}`,()=>t.devCommand),{workingDirectory:r}=t;return r===void 0?n:n.replaceAll(`{{workingDirectory}}`,()=>r)}function initAgentInstructions(){return compose(SETUP_SECTIONS,{devCommand:`npx eve dev`})}function initAgentReadySummary(e,t,n={}){let r=e??DEFAULT_AGENT_MODEL_ID,i=e===void 0?pc.dim(` (eve default)`):``,a=n.workspace?`${pc.green(`✓`)} Agents ${pc.bold(join(t,`agents`))}`:`${pc.green(`✓`)} Instructions ${pc.bold(join(t,`agent/instructions.md`))}`;return[`${pc.green(`✓`)} Model ${pc.bold(r)}${i}`,a].join(`
|
|
4
4
|
`)}function initAgentDevHandoff(e){return compose(HANDOFF_SECTIONS,{devCommand:e.devCommand,workingDirectory:e.projectPath})}function initExtensionInstructions(){return[`You are scaffolding an eve extension package (a reusable package of tools,`,`connections, skills, and hooks that a consuming agent mounts under`,`agent/extensions/).`,``,`Ask the user for a package directory name, then run:`,``,` npx eve@latest extension init <name>`,``,`That creates the package, installs dependencies, and initializes Git. It`,`prints what was set up and how to author, build, and mount the extension —`,`it does not start eve dev (extensions are not standalone agents).`,``,"Build with `eve extension build` (or the package `build` script)."].join(`
|
|
5
|
-
`)}function initExtensionHandoff(e){return[``,`What we set up:`,` - package.json with eve.extension source/dist roots, peer+dev eve, and zod`,` - extension/extension.ts (config schema via defineExtension)`,` - build/prepare scripts → eve extension build`,``,`Next:`,` - Add tools, skills, hooks, or connections under extension/`,` (see AGENTS.md and node_modules/eve/docs/extensions.md)`,` - ${`${e.packageManager} run build`} # builds dist/extension and package exports`,` - Mount from a consumer agent:`,` // agent/extensions/${e.packageName}.ts`,` import ext from "${e.packageName}";`,` export default ext({ apiKey: process.env.API_KEY });`,``,`Working directory: ${e.projectPath}`].join(`
|
|
5
|
+
`)}function initExtensionHandoff(e){return[``,`What we set up:`,` - package.json with eve.extension source/dist roots, peer+dev eve, and zod`,` - extension/extension.ts (config schema via defineExtension)`,` - build/prepare scripts → eve extension build`,``,`Next:`,` - Add tools, skills, hooks, or connections under extension/`,` (see AGENTS.md and node_modules/eve/docs/extensions/index.md)`,` - ${`${e.packageManager} run build`} # builds dist/extension and package exports`,` - Mount from a consumer agent:`,` // agent/extensions/${e.packageName}.ts`,` import ext from "${e.packageName}";`,` export default ext({ apiKey: process.env.API_KEY });`,``,`Working directory: ${e.projectPath}`].join(`
|
|
6
6
|
`)}export{HANDOFF_SECTIONS,SETUP_SECTIONS,initAgentDevHandoff,initAgentInstructions,initAgentReadySummary,initExtensionHandoff,initExtensionInstructions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hasInteractiveTerminal}from"./preconditions.js";import{headlessSetupContinuation,serializeHeadlessSetupEvent}from"./setup-headless.js";import{prepareWebChatProjectRoot,prepareWebRegistryProject,readRegistryConfig,resolveWebChatFramework}from"./registry-project.js";import{errorMessage,reportRegistryCompletion,resolveRegistryItemForAdd,runRegistryAction,setupReminder,setupResumeCommand}from"./registry-recovery.js";import{runRegistryAddCommand}from"./registry-add-command.js";import{RegistrySetupFailedError,runDeclaredSetups}from"./registry-declared-setups.js";import{installRegistryItemTransaction}from"./registry-install-transaction.js";import{eveMetadataFromRegistryItem,parseOfficialRegistrySearchMetadata}from"./registry-metadata.js";import{prepareDeclaredPnpmBuildPolicy}from"./registry-pnpm-build-policy-flow.js";import{printRegistrySearchResults,registryViewText}from"./registry-presentation.js";import{resolveInstalledPackageInfo}from"#internal/application/package.js";import{createPrompter}from"#setup/prompter.js";import{WizardCancelledError}from"#setup/step.js";import{InvalidAnswerError,headlessAsker,interactiveAsker,withAnswers,withPolicy}from"#setup/ask.js";import{setupQuestionToWire}from"#setup/setup-question-wire.js";import{addRegistryItems,getRegistryItems,searchRegistries}from"#compiled/shadcn-registry/index.js";import semver from"#compiled/semver/index.js";const defaultAddCommandDependencies={createPrompter,hasInteractiveTerminal,loadSetupCommandRunner:async()=>(await import(`./registry-setup-command.js`)).runRegistrySetupCommand,prepareWebRegistryProject};function resolveOfficialRegistryUrl(e=process.env.EVE_DEV_OFFICIAL_REGISTRY_URL){if(e===void 0)return`https://eve.dev/r`;let t;try{t=new URL(e)}catch{throw Error(`EVE_DEV_OFFICIAL_REGISTRY_URL must be an HTTP(S) URL.`)}if(t.protocol!==`http:`&&t.protocol!==`https:`)throw Error(`EVE_DEV_OFFICIAL_REGISTRY_URL must be an HTTP(S) URL.`);if(t.username!==``||t.password!==``)throw Error(`EVE_DEV_OFFICIAL_REGISTRY_URL must not include credentials.`);if(t.search!==``||t.hash!==``)throw Error(`EVE_DEV_OFFICIAL_REGISTRY_URL must not include a query or fragment.`);return t.pathname=t.pathname.replace(/\/+$/,``),t.toString().replace(/\/$/,``)}const OFFICIAL_REGISTRY=resolveOfficialRegistryUrl(),OFFICIAL_CATALOG=`${OFFICIAL_REGISTRY}/registry.json`,SKILLS_REGISTRY=`@skills`;function itemAddress(e){return e.startsWith(`@`)||/^https?:\/\//.test(e)?e:`${OFFICIAL_REGISTRY}/${e}.json`}const WEB_CHAT_ITEMS={next:`channel/web`,tanstack:`channel/web-tanstack`};async function askWebChatFramework(e,t,n,r,i){let a=r.nonInteractive===!0,o=r.setupAuthorized===!0||(i.hasInteractiveTerminal??defaultAddCommandDependencies.hasInteractiveTerminal)(),s=withAnswers(r.answers??{})(r.yes===!0||a||!o?withPolicy(`assume`)(headlessAsker()):interactiveAsker(r.prompter??i.createPrompter?.()??defaultAddCommandDependencies.createPrompter()));try{return await resolveWebChatFramework(t,s,r.answers)}catch(t){if(t instanceof WizardCancelledError)return!1;if(!a||!(t instanceof InvalidAnswerError))throw t;let i=setupQuestionToWire(t.question);e.error(serializeHeadlessSetupEvent({version:1,type:`blocked`,item:n,installed:!1,completedItems:[],status:`input_required`,question:i,issue:{code:`invalid_answer`,message:t.message},next:headlessSetupContinuation({item:n,installed:!1,answers:r.answers,question:i})})),process.exitCode=2;return}}function assertCompatibleEveVersion(e){if(e===void 0)return;let t=resolveInstalledPackageInfo().version;if(semver.validRange(e)===null)throw Error(`Registry item has an invalid eve version requirement: ${e}.`);if(!semver.subset(t,e))throw Error(`This registry item requires eve ${e}, but this project is using eve ${t}. Upgrade eve and run the command again.`)}function isOfficialItemAddress(e){return e.startsWith(`${OFFICIAL_REGISTRY}/`)}function withBuiltInRegistries(e){return{...e,registries:{[SKILLS_REGISTRY]:`https://www.skills.sh/r/{name}?agent=eve`,...e.registries}}}async function readEveRegistryConfig(e){return withBuiltInRegistries(await readRegistryConfig(e))}function configuredRegistrySources(e){return Object.keys(e.registries??{})}function validateRegistrySource(e){if(e!==void 0&&!e.startsWith(`@`)&&!/^https?:\/\//.test(e))throw Error(`Registry sources must be a namespace or URL: ${e}`)}async function loadOfficialSearchMetadata(){let e=await fetch(OFFICIAL_CATALOG);if(!e.ok)throw Error(`Could not read the eve registry (${e.status}).`);return parseOfficialRegistrySearchMetadata(await e.json())}function searchItemAddress(e){return e.registry===OFFICIAL_CATALOG?e.name:e.addCommandArgument}function enrichSearchItem(e,t){let n=searchItemAddress(e);return{item:e,address:n,...t.get(n)}}function registrySourceLabel(e){return e===OFFICIAL_CATALOG?`eve`:e===SKILLS_REGISTRY?`skills.sh`:e}function searchPresentationSections(e,t,n){return e.flatMap(e=>{let r=t.get(e);return r===void 0?[]:[{label:registrySourceLabel(e),items:r.items.map(e=>enrichSearchItem(e,n)),total:r.pagination.total}]})}async function printAddSuggestions(e,t,n){try{let r=n.split(`/`).at(-1)||n,{resultsBySource:i,sources:a,metadataByAddress:o}=await searchRegistryCatalog(t,{limit:5,query:r}),s=searchPresentationSections(a,i,o);if(s.every(e=>e.items.length===0))return;e.log(`Did you mean?`),printRegistrySearchResults(e,{query:r,sections:s})}catch{}}async function searchRegistryCatalog(e,t){validateRegistrySource(t.source);let n=await readEveRegistryConfig(e),r=t.source?[t.source]:[OFFICIAL_CATALOG,...configuredRegistrySources(n).filter(e=>t.query!==void 0||e!==SKILLS_REGISTRY)],i=await Promise.all(r.map(async e=>{try{return{result:await searchRegistries([e],{config:n,limit:t.limit??500,query:t.query}),source:e}}catch(t){return{error:t,source:e}}})),a=[],o=new Map;for(let e of i)if(`error`in e)a.push({message:errorMessage(e.error),registry:e.source});else{let t=e.result.errors??[];if(a.push(...t),t.length===0){let t=e.result.items.filter(t=>t.registry===e.source);o.set(e.source,{...e.result,items:t,pagination:{...e.result.pagination,total:e.result.items.length===t.length?e.result.pagination.total:0}})}}let s=new Map(a.map(e=>[`${e.registry}\0${e.message}`,e])),c=o.has(OFFICIAL_CATALOG)?await loadOfficialSearchMetadata():new Map,l=o.get(OFFICIAL_CATALOG);if(l!==void 0){let e=l.items.filter(e=>c.get(searchItemAddress(e))?.hidden!==!0);l.items=e,l.pagination={...l.pagination,total:e.length},l.items.sort((e,t)=>{let rank=e=>c.get(searchItemAddress(e))?.implementation===`native`?0:1;return rank(e)-rank(t)})}let u=[...o.values()];return{config:n,result:{items:u.flatMap(e=>e.items),pagination:{hasMore:u.some(e=>e.pagination.hasMore),limit:t.limit??500,offset:0,total:u.reduce((e,t)=>e+t.pagination.total,0)},...s.size>0?{errors:[...s.values()]}:{}},resultsBySource:o,sources:r,metadataByAddress:c}}async function browseRegistryCatalog(e,t={}){let{result:n}=await searchRegistryCatalog(e,t);return{items:n.items.map(e=>{let t={address:e.registry===OFFICIAL_CATALOG?e.name:e.addCommandArgument,name:e.name,source:e.registry===OFFICIAL_CATALOG?`Vercel`:e.registry};return e.title!==void 0&&(t.title=e.title),e.type!==void 0&&(t.type=e.type),e.description!==void 0&&(t.description=e.description),t}),total:n.pagination.total,errors:n.errors??[]}}async function browseRegistryItems(e,t,n,r,i={}){let{result:a,resultsBySource:o,sources:s,metadataByAddress:c}=await searchRegistryCatalog(t,{limit:i.limit,query:n,source:r}),l=a.errors??[];if(i.json||o.size>0){let t=a.items.map(e=>({...e,...c.get(searchItemAddress(e))})),r={query:n,sections:searchPresentationSections(s,o,c)};i.json&&(r.json={...a,items:t}),printRegistrySearchResults(e,r)}for(let t of l)e.error(`${t.registry}: ${t.message}`);l.length>0&&(process.exitCode=1)}async function installRegistryItem(e,t,n={},r=defaultAddCommandDependencies){let i,a=[],o={error:e=>{i=e},log:e=>a.push(e)},s=process.exitCode,c;try{c=await runAddCommand(o,e,t,{...n,yes:n.prompter===void 0||n.yes,setupAuthorized:n.prompter!==void 0,throwSetupFailures:!0},r)}catch(e){if(process.exitCode=s,!(e instanceof RegistrySetupFailedError))throw e;let t={resumeCommand:e.resumeCommand,reason:e.reason};return e.prerequisite!==void 0&&(t.prerequisite=e.prerequisite),{output:a,setupIncomplete:t}}if(process.exitCode=s,i!==void 0)throw Error(i);if(c===!1)throw new WizardCancelledError;if(c===`setup-incomplete`)return{output:a,setupIncomplete:{resumeCommand:setupResumeCommand(t)}};let l={output:a};return c!==void 0&&(l.setup=c),l}async function runAddCommand(e,t,n,r,i=defaultAddCommandDependencies){let setupIncomplete=t=>(r.silent!==!0&&e.log(setupReminder(n,t)),`setup-incomplete`);return runRegistryAction(e,t,async()=>{let a=itemAddress(n),o;if(a===itemAddress(WEB_CHAT_ITEMS.next)&&r.skipInstall!==!0){let a=await askWebChatFramework(e,t,n,r,i);if(a===!1||a===void 0)return a;o=a}let s=o===void 0?a:itemAddress(WEB_CHAT_ITEMS[o]),c=o===void 0?t:await prepareWebChatProjectRoot(t,o),l=await readEveRegistryConfig(t);if(r.skipInstall===!0){if(r.overwrite===!0)throw Error(`--overwrite cannot be used with --skip-install.`);if(r.skipSetup===!0)throw Error(`--skip-install cannot be used with --skip-setup.`);if(!isOfficialItemAddress(a))throw Error(`Setup flows are currently supported only for official eve registry items.`)}let u=await resolveRegistryItemForAdd(e,async()=>(await getRegistryItems([s],{config:l}))[0],()=>printAddSuggestions(e,t,n));if(!u.found)return;let d=u.item,f=isOfficialItemAddress(a)?eveMetadataFromRegistryItem(d):void 0;if(assertCompatibleEveVersion(f?.requires),r.skipInstall===!0){if(f?.setup===void 0)throw Error(`Registry item "${n}" does not declare a setup flow.`);let a=await runDeclaredSetups({logger:e,appRoot:t,item:n,setups:f.setup,options:r,dependencies:i,resumeCommand:setupResumeCommand(n)});return a===!1&&!r.nonInteractive?setupIncomplete(`cancelled`):reportRegistryCompletion(e,n,a,r)}if(!await prepareDeclaredPnpmBuildPolicy({logger:e,appRoot:c,item:n,policies:f?.install?.pnpm?.buildScripts,options:r}))return!1;if(o!==void 0&&await(i.prepareWebRegistryProject??prepareWebRegistryProject)(c,o),await installRegistryItemTransaction({appRoot:c,item:n,registryItem:d,nonInteractive:r.nonInteractive,logger:e,install:async()=>{await addRegistryItems([s],{config:l,cwd:c,overwrite:r.overwrite,silent:r.silent})}}),f?.setup===void 0)return reportRegistryCompletion(e,n,{facts:[]},r);let p=i.hasInteractiveTerminal?.()??defaultAddCommandDependencies.hasInteractiveTerminal();if(r.nonInteractive&&e.log(serializeHeadlessSetupEvent({version:1,type:`progress`,message:r.skipInstall?`Setup ${n}`:`Installed ${n}`})),r.skipSetup===!0)return r.nonInteractive?reportRegistryCompletion(e,n,{facts:[]},r):setupIncomplete(`skipped`);if(!r.nonInteractive&&!r.yes&&!p&&r.setupAuthorized!==!0)return setupIncomplete(`skipped`);if(!r.nonInteractive&&!r.yes&&r.setupAuthorized!==!0)try{if(await(r.prompter??i.createPrompter?.()??defaultAddCommandDependencies.createPrompter()).select({message:`Set up ${n} now?`,initialValue:`yes`,options:[{value:`yes`,label:`Yes`},{value:`no`,label:`No`}]})===`no`)return setupIncomplete(`skipped`)}catch(e){if(!(e instanceof WizardCancelledError))throw e;return setupIncomplete(`cancelled`)}let m=await runDeclaredSetups({logger:e,appRoot:t,item:n,setups:f.setup,options:{...r,force:r.overwrite},dependencies:i,resumeCommand:setupResumeCommand(n)});return m===!1&&!r.nonInteractive?setupIncomplete(`cancelled`):reportRegistryCompletion(e,n,m,r)},{rethrow:e=>r.throwSetupFailures===!0&&e instanceof RegistrySetupFailedError})}async function runRegistryListCommand(e,t,n,r={}){await runRegistryAction(e,t,()=>browseRegistryItems(e,t,void 0,n,r))}async function runRegistrySearchCommand(e,t,n,r,i={}){await runRegistryAction(e,t,()=>browseRegistryItems(e,t,n,r,{...i,limit:i.limit??10}))}async function runRegistryViewCommand(e,t,n,r={}){await runRegistryAction(e,t,async()=>{let i=await readEveRegistryConfig(t),a=await getRegistryItems([itemAddress(n)],{config:i}),o=a.length===1?a[0]:a;e.log(r.json?JSON.stringify(o,null,2):registryViewText(n,o))})}export{browseRegistryCatalog,installRegistryItem,resolveOfficialRegistryUrl,runAddCommand,runRegistryAddCommand,runRegistryListCommand,runRegistrySearchCommand,runRegistryViewCommand};
|
|
1
|
+
import{hasInteractiveTerminal}from"./preconditions.js";import{headlessSetupContinuation,serializeHeadlessSetupEvent}from"./setup-headless.js";import{prepareWebChatProjectRoot,prepareWebRegistryProject,readRegistryConfig,resolveWebChatFramework}from"./registry-project.js";import{errorMessage,reportRegistryCompletion,resolveRegistryItemForAdd,runRegistryAction,setupReminder,setupResumeCommand}from"./registry-recovery.js";import{runRegistryAddCommand}from"./registry-add-command.js";import{RegistrySetupFailedError,runDeclaredSetups}from"./registry-declared-setups.js";import{installRegistryItemTransaction}from"./registry-install-transaction.js";import{eveMetadataFromRegistryItem,parseOfficialRegistrySearchMetadata}from"./registry-metadata.js";import{prepareDeclaredPnpmBuildPolicy}from"./registry-pnpm-build-policy-flow.js";import{printRegistrySearchResults,registryViewText}from"./registry-presentation.js";import{resolveInstalledPackageInfo}from"#internal/application/package.js";import{createPrompter}from"#setup/prompter.js";import{WizardCancelledError}from"#setup/step.js";import{InvalidAnswerError,headlessAsker,interactiveAsker,withAnswers,withPolicy}from"#setup/ask.js";import{setupQuestionToWire}from"#setup/setup-question-wire.js";import{addRegistryItems,getRegistryItems,searchRegistries}from"#compiled/shadcn-registry/index.js";import semver from"#compiled/semver/index.js";const defaultAddCommandDependencies={createPrompter,hasInteractiveTerminal,loadSetupCommandRunner:async()=>(await import(`./registry-setup-command.js`)).runRegistrySetupCommand,prepareWebRegistryProject};function resolveOfficialRegistryUrl(e=process.env.EVE_DEV_OFFICIAL_REGISTRY_URL){if(e===void 0)return`https://eve.dev/r`;let t;try{t=new URL(e)}catch{throw Error(`EVE_DEV_OFFICIAL_REGISTRY_URL must be an HTTP(S) URL.`)}if(t.protocol!==`http:`&&t.protocol!==`https:`)throw Error(`EVE_DEV_OFFICIAL_REGISTRY_URL must be an HTTP(S) URL.`);if(t.username!==``||t.password!==``)throw Error(`EVE_DEV_OFFICIAL_REGISTRY_URL must not include credentials.`);if(t.search!==``||t.hash!==``)throw Error(`EVE_DEV_OFFICIAL_REGISTRY_URL must not include a query or fragment.`);return t.pathname=t.pathname.replace(/\/+$/,``),t.toString().replace(/\/$/,``)}const OFFICIAL_REGISTRY=resolveOfficialRegistryUrl(),OFFICIAL_CATALOG=`${OFFICIAL_REGISTRY}/registry.json`,SKILLS_REGISTRY=`@skills`;function itemAddress(e){return e.startsWith(`@`)||/^https?:\/\//.test(e)?e:`${OFFICIAL_REGISTRY}/${e}.json`}const WEB_CHAT_ITEMS={next:`channel/web`,tanstack:`channel/web-tanstack`};async function askWebChatFramework(e,t,n,r,i){let a=r.nonInteractive===!0,o=r.setupAuthorized===!0||(i.hasInteractiveTerminal??defaultAddCommandDependencies.hasInteractiveTerminal)(),s=withAnswers(r.answers??{})(r.yes===!0||a||!o?withPolicy(`assume`)(headlessAsker()):interactiveAsker(r.prompter??i.createPrompter?.()??defaultAddCommandDependencies.createPrompter()));try{return await resolveWebChatFramework(t,s,r.answers)}catch(t){if(t instanceof WizardCancelledError)return!1;if(!a||!(t instanceof InvalidAnswerError))throw t;let i=setupQuestionToWire(t.question);e.error(serializeHeadlessSetupEvent({version:1,type:`blocked`,item:n,installed:!1,completedItems:[],status:`input_required`,question:i,issue:{code:`invalid_answer`,message:t.message},next:headlessSetupContinuation({item:n,installed:!1,answers:r.answers,question:i})})),process.exitCode=2;return}}function assertCompatibleEveVersion(e){if(e===void 0)return;let t=resolveInstalledPackageInfo().version;if(semver.validRange(e)===null)throw Error(`Registry item has an invalid eve version requirement: ${e}.`);if(!semver.subset(t,e,{includePrerelease:!0}))throw Error(`This registry item requires eve ${e}, but this project is using eve ${t}. Upgrade eve and run the command again.`)}function isOfficialItemAddress(e){return e.startsWith(`${OFFICIAL_REGISTRY}/`)}function withBuiltInRegistries(e){return{...e,registries:{[SKILLS_REGISTRY]:`https://www.skills.sh/r/{name}?agent=eve`,...e.registries}}}async function readEveRegistryConfig(e){return withBuiltInRegistries(await readRegistryConfig(e))}function configuredRegistrySources(e){return Object.keys(e.registries??{})}function validateRegistrySource(e){if(e!==void 0&&!e.startsWith(`@`)&&!/^https?:\/\//.test(e))throw Error(`Registry sources must be a namespace or URL: ${e}`)}async function loadOfficialSearchMetadata(){let e=await fetch(OFFICIAL_CATALOG);if(!e.ok)throw Error(`Could not read the eve registry (${e.status}).`);return parseOfficialRegistrySearchMetadata(await e.json())}function searchItemAddress(e){return e.registry===OFFICIAL_CATALOG?e.name:e.addCommandArgument}function enrichSearchItem(e,t){let n=searchItemAddress(e);return{item:e,address:n,...t.get(n)}}function registrySourceLabel(e){return e===OFFICIAL_CATALOG?`eve`:e===SKILLS_REGISTRY?`skills.sh`:e}function searchPresentationSections(e,t,n){return e.flatMap(e=>{let r=t.get(e);return r===void 0?[]:[{label:registrySourceLabel(e),items:r.items.map(e=>enrichSearchItem(e,n)),total:r.pagination.total}]})}async function printAddSuggestions(e,t,n){try{let r=n.split(`/`).at(-1)||n,{resultsBySource:i,sources:a,metadataByAddress:o}=await searchRegistryCatalog(t,{limit:5,query:r}),s=searchPresentationSections(a,i,o);if(s.every(e=>e.items.length===0))return;e.log(`Did you mean?`),printRegistrySearchResults(e,{query:r,sections:s})}catch{}}async function searchRegistryCatalog(e,t){validateRegistrySource(t.source);let n=await readEveRegistryConfig(e),r=t.source?[t.source]:[OFFICIAL_CATALOG,...configuredRegistrySources(n).filter(e=>t.query!==void 0||e!==SKILLS_REGISTRY)],i=await Promise.all(r.map(async e=>{try{return{result:await searchRegistries([e],{config:n,limit:t.limit??500,query:t.query}),source:e}}catch(t){return{error:t,source:e}}})),a=[],o=new Map;for(let e of i)if(`error`in e)a.push({message:errorMessage(e.error),registry:e.source});else{let t=e.result.errors??[];if(a.push(...t),t.length===0){let t=e.result.items.filter(t=>t.registry===e.source);o.set(e.source,{...e.result,items:t,pagination:{...e.result.pagination,total:e.result.items.length===t.length?e.result.pagination.total:0}})}}let s=new Map(a.map(e=>[`${e.registry}\0${e.message}`,e])),c=o.has(OFFICIAL_CATALOG)?await loadOfficialSearchMetadata():new Map,l=o.get(OFFICIAL_CATALOG);if(l!==void 0){let e=l.items.filter(e=>c.get(searchItemAddress(e))?.hidden!==!0);l.items=e,l.pagination={...l.pagination,total:e.length},l.items.sort((e,t)=>{let rank=e=>c.get(searchItemAddress(e))?.implementation===`native`?0:1;return rank(e)-rank(t)})}let u=[...o.values()];return{config:n,result:{items:u.flatMap(e=>e.items),pagination:{hasMore:u.some(e=>e.pagination.hasMore),limit:t.limit??500,offset:0,total:u.reduce((e,t)=>e+t.pagination.total,0)},...s.size>0?{errors:[...s.values()]}:{}},resultsBySource:o,sources:r,metadataByAddress:c}}async function browseRegistryCatalog(e,t={}){let{result:n}=await searchRegistryCatalog(e,t);return{items:n.items.map(e=>{let t={address:e.registry===OFFICIAL_CATALOG?e.name:e.addCommandArgument,name:e.name,source:e.registry===OFFICIAL_CATALOG?`Vercel`:e.registry};return e.title!==void 0&&(t.title=e.title),e.type!==void 0&&(t.type=e.type),e.description!==void 0&&(t.description=e.description),t}),total:n.pagination.total,errors:n.errors??[]}}async function browseRegistryItems(e,t,n,r,i={}){let{result:a,resultsBySource:o,sources:s,metadataByAddress:c}=await searchRegistryCatalog(t,{limit:i.limit,query:n,source:r}),l=a.errors??[];if(i.json||o.size>0){let t=a.items.map(e=>({...e,...c.get(searchItemAddress(e))})),r={query:n,sections:searchPresentationSections(s,o,c)};i.json&&(r.json={...a,items:t}),printRegistrySearchResults(e,r)}for(let t of l)e.error(`${t.registry}: ${t.message}`);l.length>0&&(process.exitCode=1)}async function installRegistryItem(e,t,n={},r=defaultAddCommandDependencies){let i,a=[],o={error:e=>{i=e},log:e=>a.push(e)},s=process.exitCode,c;try{c=await runAddCommand(o,e,t,{...n,yes:n.prompter===void 0||n.yes,setupAuthorized:n.prompter!==void 0,throwSetupFailures:!0},r)}catch(e){if(process.exitCode=s,!(e instanceof RegistrySetupFailedError))throw e;let t={resumeCommand:e.resumeCommand,reason:e.reason};return e.prerequisite!==void 0&&(t.prerequisite=e.prerequisite),{output:a,setupIncomplete:t}}if(process.exitCode=s,i!==void 0)throw Error(i);if(c===!1)throw new WizardCancelledError;if(c===`setup-incomplete`)return{output:a,setupIncomplete:{resumeCommand:setupResumeCommand(t)}};let l={output:a};return c!==void 0&&(l.setup=c),l}async function runAddCommand(e,t,n,r,i=defaultAddCommandDependencies){let setupIncomplete=t=>(r.silent!==!0&&e.log(setupReminder(n,t)),`setup-incomplete`);return runRegistryAction(e,t,async()=>{let a=itemAddress(n),o;if(a===itemAddress(WEB_CHAT_ITEMS.next)&&r.skipInstall!==!0){let a=await askWebChatFramework(e,t,n,r,i);if(a===!1||a===void 0)return a;o=a}let s=o===void 0?a:itemAddress(WEB_CHAT_ITEMS[o]),c=o===void 0?t:await prepareWebChatProjectRoot(t,o),l=await readEveRegistryConfig(t);if(r.skipInstall===!0){if(r.overwrite===!0)throw Error(`--overwrite cannot be used with --skip-install.`);if(r.skipSetup===!0)throw Error(`--skip-install cannot be used with --skip-setup.`);if(!isOfficialItemAddress(a))throw Error(`Setup flows are currently supported only for official eve registry items.`)}let u=await resolveRegistryItemForAdd(e,async()=>(await getRegistryItems([s],{config:l}))[0],()=>printAddSuggestions(e,t,n));if(!u.found)return;let d=u.item,f=isOfficialItemAddress(a)?eveMetadataFromRegistryItem(d):void 0;if(assertCompatibleEveVersion(f?.requires),r.skipInstall===!0){if(f?.setup===void 0)throw Error(`Registry item "${n}" does not declare a setup flow.`);let a=await runDeclaredSetups({logger:e,appRoot:t,item:n,setups:f.setup,options:r,dependencies:i,resumeCommand:setupResumeCommand(n)});return a===!1&&!r.nonInteractive?setupIncomplete(`cancelled`):reportRegistryCompletion(e,n,a,r)}if(!await prepareDeclaredPnpmBuildPolicy({logger:e,appRoot:c,item:n,policies:f?.install?.pnpm?.buildScripts,options:r}))return!1;if(o!==void 0&&await(i.prepareWebRegistryProject??prepareWebRegistryProject)(c,o),await installRegistryItemTransaction({appRoot:c,item:n,registryItem:d,nonInteractive:r.nonInteractive,logger:e,install:async()=>{await addRegistryItems([s],{config:l,cwd:c,overwrite:r.overwrite,silent:r.silent})}}),f?.setup===void 0)return reportRegistryCompletion(e,n,{facts:[]},r);let p=i.hasInteractiveTerminal?.()??defaultAddCommandDependencies.hasInteractiveTerminal();if(r.nonInteractive&&e.log(serializeHeadlessSetupEvent({version:1,type:`progress`,message:r.skipInstall?`Setup ${n}`:`Installed ${n}`})),r.skipSetup===!0)return r.nonInteractive?reportRegistryCompletion(e,n,{facts:[]},r):setupIncomplete(`skipped`);if(!r.nonInteractive&&!r.yes&&!p&&r.setupAuthorized!==!0)return setupIncomplete(`skipped`);if(!r.nonInteractive&&!r.yes&&r.setupAuthorized!==!0)try{if(await(r.prompter??i.createPrompter?.()??defaultAddCommandDependencies.createPrompter()).select({message:`Set up ${n} now?`,initialValue:`yes`,options:[{value:`yes`,label:`Yes`},{value:`no`,label:`No`}]})===`no`)return setupIncomplete(`skipped`)}catch(e){if(!(e instanceof WizardCancelledError))throw e;return setupIncomplete(`cancelled`)}let m=await runDeclaredSetups({logger:e,appRoot:t,item:n,setups:f.setup,options:{...r,force:r.overwrite},dependencies:i,resumeCommand:setupResumeCommand(n)});return m===!1&&!r.nonInteractive?setupIncomplete(`cancelled`):reportRegistryCompletion(e,n,m,r)},{rethrow:e=>r.throwSetupFailures===!0&&e instanceof RegistrySetupFailedError})}async function runRegistryListCommand(e,t,n,r={}){await runRegistryAction(e,t,()=>browseRegistryItems(e,t,void 0,n,r))}async function runRegistrySearchCommand(e,t,n,r,i={}){await runRegistryAction(e,t,()=>browseRegistryItems(e,t,n,r,{...i,limit:i.limit??10}))}async function runRegistryViewCommand(e,t,n,r={}){await runRegistryAction(e,t,async()=>{let i=await readEveRegistryConfig(t),a=await getRegistryItems([itemAddress(n)],{config:i}),o=a.length===1?a[0]:a;e.log(r.json?JSON.stringify(o,null,2):registryViewText(n,o))})}export{browseRegistryCatalog,installRegistryItem,resolveOfficialRegistryUrl,runAddCommand,runRegistryAddCommand,runRegistryListCommand,runRegistrySearchCommand,runRegistryViewCommand};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"moduleFingerprints": {
|
|
3
3
|
"@eve/catalog": "29b7529f6044427c750e4c27fe91da792014c60c660db31b7ca1fff0afe7f603",
|
|
4
4
|
"just-secrets": "1ce67d437d0bb06df02e4e99180a3c5f5edf0010314010226e97b96d462bba5d",
|
|
5
|
-
"@vercel/agent-runs": "
|
|
5
|
+
"@vercel/agent-runs": "4fe062e4547dd55d36cfcc0ef0233894c4814d3208a0014ad08996eb474bfc79",
|
|
6
6
|
"@workflow/world-local": "a10e78551f65fc607cf75261a569d852c40bc9cfac13a7fb6e15c88bf1ccf429"
|
|
7
7
|
},
|
|
8
8
|
"moduleVersions": {
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@shadcn/registry": "0.1.3",
|
|
43
43
|
"@standard-schema/spec": "1.1.0",
|
|
44
44
|
"turndown": "7.2.4",
|
|
45
|
-
"@vercel/agent-runs": "0.0.
|
|
45
|
+
"@vercel/agent-runs": "1.0.0-rc.0",
|
|
46
46
|
"@vercel/blob": "2.8.0",
|
|
47
|
-
"@vercel/connect": "2.
|
|
47
|
+
"@vercel/connect": "2.7.0",
|
|
48
48
|
"@vercel/detect-agent": "1.2.3",
|
|
49
49
|
"@vercel/oidc": "3.8.0",
|
|
50
50
|
"@vercel/otel": "2.1.3",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"zod": "4.5.4",
|
|
62
62
|
"zod-validation-error": "5.0.0"
|
|
63
63
|
},
|
|
64
|
-
"scriptHash": "
|
|
64
|
+
"scriptHash": "1874b8c0ed755604090e74892bf3dce4a5129444db41a51d504904dc8e548486",
|
|
65
65
|
"toolVersions": {
|
|
66
66
|
"rolldown": "1.2.9",
|
|
67
67
|
"typescript": "7.0.2"
|