eve 0.58.0 → 0.59.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/CHANGELOG.md +28 -0
- package/README.md +1 -0
- package/dist/src/channel/session.d.ts +2 -0
- package/dist/src/channel/session.js +1 -1
- package/dist/src/channel/types.d.ts +8 -1
- package/dist/src/chunks/{use-eve-agent-X0asmJg-.js → use-eve-agent-Dmc6sX4d.js} +558 -233
- package/dist/src/chunks/{use-eve-agent-CxWcZCsU.js → use-eve-agent-jSR8P4nK.js} +565 -235
- package/dist/src/cli/dev/tui/runner.d.ts +4 -0
- package/dist/src/cli/dev/tui/runner.js +1 -1
- package/dist/src/cli/dev/tui/setup-issues.js +1 -1
- package/dist/src/cli/dev/tui/terminal-renderer.js +12 -12
- package/dist/src/client/eve-agent-projection.d.ts +10 -0
- package/dist/src/client/eve-agent-projection.js +1 -0
- package/dist/src/client/eve-agent-store-helpers.d.ts +6 -2
- package/dist/src/client/eve-agent-store-helpers.js +2 -2
- package/dist/src/client/eve-agent-store-state.d.ts +54 -1
- package/dist/src/client/eve-agent-store.d.ts +12 -82
- package/dist/src/client/eve-agent-store.js +1 -1
- package/dist/src/client/index.d.ts +2 -2
- package/dist/src/client/index.js +1 -1
- package/dist/src/client/message-response.d.ts +5 -1
- package/dist/src/client/message-response.js +1 -1
- package/dist/src/client/ndjson.d.ts +1 -0
- package/dist/src/client/ndjson.js +2 -2
- package/dist/src/client/open-stream.d.ts +4 -1
- package/dist/src/client/open-stream.js +1 -1
- package/dist/src/client/session-event-stream.d.ts +30 -0
- package/dist/src/client/session-event-stream.js +1 -0
- package/dist/src/client/session-utils.d.ts +2 -1
- package/dist/src/client/session-utils.js +1 -1
- package/dist/src/client/session.d.ts +14 -1
- package/dist/src/client/session.js +1 -1
- package/dist/src/client/sessions.d.ts +8 -2
- package/dist/src/client/sessions.js +1 -1
- package/dist/src/client/types.d.ts +7 -0
- package/dist/src/compiled/.vendor-stamp.json +2 -3
- package/dist/src/compiled/@vercel/sandbox/api-client/api-client.d.ts +88 -1
- package/dist/src/compiled/@vercel/sandbox/api-client/index.d.ts +1 -1
- package/dist/src/compiled/@vercel/sandbox/api-client/validators.d.ts +41 -1
- package/dist/src/compiled/@vercel/sandbox/constants.d.ts +3 -3
- package/dist/src/compiled/@vercel/{sandbox-drives → sandbox}/drive.d.ts +13 -2
- package/dist/src/compiled/@vercel/sandbox/index.d.ts +3 -2
- package/dist/src/compiled/@vercel/sandbox/index.js +15 -9
- package/dist/src/compiled/@vercel/sandbox/sandbox.d.ts +40 -5
- package/dist/src/compiled/_chunks/node/auth-DDrvYko5.js +2 -0
- package/dist/src/compiled/_chunks/node/version-C__MqbLM.js +1 -0
- package/dist/src/compiler/extension-compatibility.d.ts +14 -14
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/context/build-dynamic-tools.js +1 -1
- package/dist/src/context/dynamic-tool-lifecycle.js +1 -1
- package/dist/src/context/memory-tools.js +1 -1
- package/dist/src/evals/context.d.ts +1 -1
- package/dist/src/evals/context.js +1 -1
- package/dist/src/evals/define-eval.d.ts +1 -1
- package/dist/src/evals/define-eval.js +1 -1
- package/dist/src/evals/index.js +1 -1
- package/dist/src/evals/judge.d.ts +1 -1
- package/dist/src/evals/runner/execute-task.d.ts +1 -1
- package/dist/src/evals/runner/execute-task.js +1 -1
- package/dist/src/evals/session-manager.d.ts +27 -0
- package/dist/src/evals/session-manager.js +1 -0
- package/dist/src/evals/session.d.ts +8 -28
- package/dist/src/evals/session.js +2 -1
- package/dist/src/evals/target.d.ts +1 -1
- package/dist/src/evals/target.js +1 -1
- package/dist/src/evals/types.d.ts +19 -15
- package/dist/src/eve-channel/create-request.d.ts +24 -0
- package/dist/src/eve-channel/create-request.js +1 -0
- package/dist/src/eve-channel/index.js +1 -1
- package/dist/src/eve-channel/request.d.ts +3 -12
- package/dist/src/eve-channel/request.js +2 -2
- package/dist/src/eve-channel/types.d.ts +4 -2
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/legacy-session/turn-workflow.js +1 -1
- package/dist/src/execution/runtime-context.js +1 -1
- package/dist/src/execution/sandbox/bindings/vercel-lifecycle.d.ts +3 -3
- package/dist/src/execution/sandbox/bindings/vercel-lifecycle.js +1 -1
- package/dist/src/execution/sandbox/bindings/vercel-sdk-types.d.ts +1 -4
- package/dist/src/execution/sandbox/bindings/vercel.d.ts +1 -2
- package/dist/src/execution/sandbox/bindings/vercel.js +1 -1
- package/dist/src/execution/session/entry.js +1 -1
- package/dist/src/execution/session/handoff-steps.js +1 -1
- package/dist/src/execution/session/program.d.ts +2 -0
- package/dist/src/execution/session/program.js +1 -1
- package/dist/src/execution/session/turn-step.js +1 -1
- package/dist/src/execution/session/turn.js +1 -1
- package/dist/src/execution/session-inbox/protocol.js +1 -1
- package/dist/src/execution/tools/connection-search.js +1 -1
- package/dist/src/execution/tools/sleep-workflow.js +1 -1
- package/dist/src/execution/workflow-runtime.js +1 -1
- package/dist/src/experimental/evaluate/auto-model.js +2 -2
- package/dist/src/experimental/evaluate/evaluate.d.ts +7 -0
- package/dist/src/experimental/evaluate/evaluate.js +1 -0
- package/dist/src/harness/compaction.d.ts +3 -3
- package/dist/src/harness/compaction.js +1 -1
- package/dist/src/harness/request-envelope.d.ts +11 -0
- package/dist/src/harness/request-envelope.js +1 -0
- package/dist/src/harness/tool-loop.js +2 -2
- package/dist/src/instrumentation/prepare-trace-context.d.ts +2 -1
- package/dist/src/instrumentation/prepare-trace-context.js +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-module-loader.d.ts +4 -1
- package/dist/src/internal/authored-module-loader.js +1 -1
- package/dist/src/internal/bundler/nitro-rolldown.d.ts +2 -0
- package/dist/src/internal/model-auth/transport.d.ts +3 -1
- package/dist/src/internal/model-auth/transport.js +1 -1
- package/dist/src/internal/nitro/host/build-extension.js +1 -1
- package/dist/src/internal/nitro/host/extension-capability-requirements.d.ts +1 -0
- package/dist/src/internal/nitro/host/extension-capability-requirements.js +1 -1
- package/dist/src/internal/nitro/host/extension-distribution.d.ts +1 -1
- package/dist/src/internal/nitro/host/extension-distribution.js +1 -1
- package/dist/src/internal/workflow-bundle/dynamic-tool-transform.js +1 -1
- package/dist/src/public/experimental/evaluate/index.d.ts +1 -0
- package/dist/src/public/experimental/evaluate/index.js +1 -1
- package/dist/src/public/models/anthropic/index.js +1 -1
- package/dist/src/public/sandbox/vercel-sandbox.d.ts +1 -1
- package/dist/src/public/sandbox/vercel.d.ts +1 -1
- package/dist/src/public/sandbox/vercel.js +1 -1
- package/dist/src/public/tools/index.d.ts +1 -0
- package/dist/src/public/tools/index.js +1 -1
- package/dist/src/react/use-eve-agent.d.ts +4 -0
- package/dist/src/react/use-eve-agent.js +1 -1
- package/dist/src/runtime/agent/resolve-model.js +1 -1
- package/dist/src/setup/flows/model-login-connection.js +1 -1
- package/dist/src/setup/scaffold/create/project.js +1 -1
- package/dist/src/subagents/handle-dispatch.js +1 -1
- package/dist/src/svelte/index.js +1 -1
- package/dist/src/svelte/use-eve-agent.d.ts +4 -0
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tools/definition.d.ts +2 -0
- package/dist/src/tools/definition.js +1 -1
- package/dist/src/tools/durable-callbacks.d.ts +8 -2
- package/dist/src/tools/durable-callbacks.js +1 -1
- package/dist/src/tools/durable-schema.d.ts +16 -0
- package/dist/src/tools/durable-schema.js +1 -0
- package/dist/src/vue/index.js +1 -1
- package/dist/src/vue/use-eve-agent.d.ts +4 -0
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/README.md +1 -0
- package/docs/channels/eve.mdx +20 -10
- package/docs/concepts/context-control.md +4 -0
- package/docs/concepts/sessions-runs-and-streaming.md +18 -3
- package/docs/evals/assertions.mdx +6 -6
- package/docs/evals/cases.mdx +59 -23
- package/docs/evals/judge.mdx +10 -8
- package/docs/evals/overview.mdx +6 -6
- package/docs/evals/reporters.mdx +1 -1
- package/docs/evals/targets.mdx +5 -0
- package/docs/guides/client/messages.mdx +5 -5
- package/docs/guides/client/overview.mdx +15 -1
- package/docs/guides/dynamic-capabilities.md +22 -0
- package/docs/guides/evaluate.md +58 -4
- package/docs/guides/frontend/overview.mdx +54 -5
- package/docs/guides/frontend/use-eve-agent-svelte.mdx +13 -8
- package/docs/guides/frontend/use-eve-agent-vue.mdx +13 -8
- package/docs/reference/typescript-api.md +38 -36
- package/package.json +2 -3
- package/dist/src/compiled/@vercel/sandbox-drives/LICENSE +0 -201
- package/dist/src/compiled/@vercel/sandbox-drives/_async-retry.d.ts +0 -8
- package/dist/src/compiled/@vercel/sandbox-drives/_workflow-serde.d.ts +0 -5
- package/dist/src/compiled/@vercel/sandbox-drives/api-client/api-client.d.ts +0 -1815
- package/dist/src/compiled/@vercel/sandbox-drives/api-client/api-error.d.ts +0 -29
- package/dist/src/compiled/@vercel/sandbox-drives/api-client/base-client.d.ts +0 -39
- package/dist/src/compiled/@vercel/sandbox-drives/api-client/file-writer.d.ts +0 -66
- package/dist/src/compiled/@vercel/sandbox-drives/api-client/index.d.ts +0 -2
- package/dist/src/compiled/@vercel/sandbox-drives/api-client/validators.d.ts +0 -932
- package/dist/src/compiled/@vercel/sandbox-drives/api-client/with-retry.d.ts +0 -10
- package/dist/src/compiled/@vercel/sandbox-drives/auth/error.d.ts +0 -15
- package/dist/src/compiled/@vercel/sandbox-drives/auth/file.d.ts +0 -18
- package/dist/src/compiled/@vercel/sandbox-drives/auth/index.d.ts +0 -6
- package/dist/src/compiled/@vercel/sandbox-drives/auth/oauth.d.ts +0 -111
- package/dist/src/compiled/@vercel/sandbox-drives/auth/poll-for-token.d.ts +0 -28
- package/dist/src/compiled/@vercel/sandbox-drives/auth/project.d.ts +0 -40
- package/dist/src/compiled/@vercel/sandbox-drives/command.d.ts +0 -292
- package/dist/src/compiled/@vercel/sandbox-drives/constants.d.ts +0 -15
- package/dist/src/compiled/@vercel/sandbox-drives/execution-context.d.ts +0 -116
- package/dist/src/compiled/@vercel/sandbox-drives/filesystem.d.ts +0 -258
- package/dist/src/compiled/@vercel/sandbox-drives/index.d.ts +0 -14
- package/dist/src/compiled/@vercel/sandbox-drives/index.js +0 -9
- package/dist/src/compiled/@vercel/sandbox-drives/network-policy.d.ts +0 -169
- package/dist/src/compiled/@vercel/sandbox-drives/proxy.d.ts +0 -55
- package/dist/src/compiled/@vercel/sandbox-drives/sandbox-user.d.ts +0 -211
- package/dist/src/compiled/@vercel/sandbox-drives/sandbox.d.ts +0 -1287
- package/dist/src/compiled/@vercel/sandbox-drives/session.d.ts +0 -435
- package/dist/src/compiled/@vercel/sandbox-drives/snapshot.d.ts +0 -238
- package/dist/src/compiled/@vercel/sandbox-drives/utils/get-credentials.d.ts +0 -21
- package/dist/src/compiled/@vercel/sandbox-drives/utils/paginator.d.ts +0 -16
- package/dist/src/compiled/@vercel/sandbox-drives/utils/resolveSignal.d.ts +0 -15
- package/dist/src/compiled/@vercel/sandbox-drives/utils/sandbox-snapshot.d.ts +0 -11
- package/dist/src/compiled/@vercel/sandbox-drives/utils/types.d.ts +0 -11
- package/dist/src/compiled/_chunks/node/auth-8aQozzfi.js +0 -2
- package/dist/src/compiled/_chunks/node/auth-Bvv0xGTY.js +0 -2
- package/dist/src/compiled/_chunks/node/esm-Fqlolk7e.js +0 -7
- package/dist/src/compiled/_chunks/node/version-BC6t2Txc.js +0 -1
- package/dist/src/compiled/_chunks/node/version-DSQqVZ5T.js +0 -1
- package/dist/src/compiled/_chunks/node/xdg-app-paths-F-QHrdza.js +0 -1
package/docs/guides/evaluate.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Automatic Model Selection
|
|
3
|
-
description: "Choose
|
|
3
|
+
description: "Choose agent models automatically or evaluate typed questions in your tools and application code."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Use `autoModel` to choose an agent model from an allowlist before inference begins.
|
|
7
7
|
It uses the [AI SDK evaluation API](https://ai-sdk.dev/docs/ai-sdk-core/evaluation),
|
|
8
8
|
so the evaluator can be a Vercel AI Gateway model ID or an evaluation model from
|
|
9
|
-
an installed provider.
|
|
9
|
+
an installed provider. Use `evaluate` from the same entrypoint to ask typed
|
|
10
|
+
questions in your own tools or application code.
|
|
10
11
|
|
|
11
12
|
`eve/experimental/evaluate` is experimental. Its API can change between eve
|
|
12
13
|
releases, and the AI SDK evaluation model specification can change in patch
|
|
@@ -14,7 +15,7 @@ releases.
|
|
|
14
15
|
|
|
15
16
|
## Choose from Gateway models
|
|
16
17
|
|
|
17
|
-
By default, `autoModel` evaluates with `typesafe-ai/jev
|
|
18
|
+
By default, `autoModel` evaluates with `typesafe-ai/jev`. Like other AI SDK
|
|
18
19
|
model strings, it uses Vercel AI Gateway unless the application has configured a
|
|
19
20
|
different global default provider.
|
|
20
21
|
|
|
@@ -33,7 +34,12 @@ export default defineAgent({
|
|
|
33
34
|
```
|
|
34
35
|
|
|
35
36
|
Configure Gateway authentication as you would for any other AI SDK model. eve
|
|
36
|
-
does not add a TypeSafe credential or transport layer.
|
|
37
|
+
does not add a TypeSafe credential or transport layer. During `eve dev`, a
|
|
38
|
+
Gateway evaluator uses the same connection selected through `/login` as Gateway
|
|
39
|
+
language models. A configured AI SDK default provider still owns string model
|
|
40
|
+
resolution during development. The TUI footer displays `dynamic model` when the
|
|
41
|
+
agent uses `autoModel`, then adds the resolved model for the current turn, such as
|
|
42
|
+
`dynamic model · openai/gpt-5.6-luna`.
|
|
37
43
|
|
|
38
44
|
## Use a provider directly
|
|
39
45
|
|
|
@@ -98,6 +104,54 @@ Supported reasoning values are `"provider-default"`, `"none"`, `"minimal"`,
|
|
|
98
104
|
`"low"`, `"medium"`, `"high"`, and `"xhigh"`. An omitted value inherits the
|
|
99
105
|
agent's reasoning setting.
|
|
100
106
|
|
|
107
|
+
## Evaluate inside a tool
|
|
108
|
+
|
|
109
|
+
Use `evaluate` to ask choice, score, or boolean questions about the state you pass to it.
|
|
110
|
+
It defaults to `typesafe-ai/jev` and uses the same authentication as `autoModel`,
|
|
111
|
+
including the Gateway connection selected through `/login` during `eve dev`.
|
|
112
|
+
Pass `model` to use another evaluation model ID or a provider instance. A configured
|
|
113
|
+
AI SDK default provider takes precedence over the local Gateway connection.
|
|
114
|
+
|
|
115
|
+
```ts title="agent/tools/classify-request.ts"
|
|
116
|
+
import { evaluate } from "eve/experimental/evaluate";
|
|
117
|
+
import { defineTool } from "eve/tools";
|
|
118
|
+
import { z } from "zod";
|
|
119
|
+
|
|
120
|
+
export default defineTool({
|
|
121
|
+
description: "Choose the team that can help with a customer request.",
|
|
122
|
+
inputSchema: z.object({ request: z.string().min(1).max(8000) }),
|
|
123
|
+
async execute({ request }, ctx) {
|
|
124
|
+
const result = await evaluate({
|
|
125
|
+
state: { request },
|
|
126
|
+
questions: {
|
|
127
|
+
team: {
|
|
128
|
+
type: "choice",
|
|
129
|
+
instructions: "Select the team best suited to handle the request.",
|
|
130
|
+
criteria: {
|
|
131
|
+
billing: "Invoices, payments, and refunds",
|
|
132
|
+
support: "Product questions and troubleshooting",
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
abortSignal: ctx.abortSignal,
|
|
137
|
+
});
|
|
138
|
+
return { team: result.answers.team.choice };
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
The choice above is typed as `"billing" | "support"`. Each question appears under
|
|
144
|
+
its authored key in `result.answers`. Results also include token usage, warnings,
|
|
145
|
+
provider metadata, and response metadata.
|
|
146
|
+
|
|
147
|
+
`evaluate` accepts AI SDK evaluation options, including `maxRetries`, `headers`,
|
|
148
|
+
and `providerOptions`. Pass an `abortSignal` to cancel the request. Input and
|
|
149
|
+
answer validation, retries, and provider errors follow AI SDK semantics.
|
|
150
|
+
|
|
151
|
+
You can also call `evaluate` outside a tool; it does not require an active eve
|
|
152
|
+
session. Each call performs its own evaluation. `autoModel` uses this function
|
|
153
|
+
and adds the per-turn routing behavior described below.
|
|
154
|
+
|
|
101
155
|
## Runtime behavior
|
|
102
156
|
|
|
103
157
|
`autoModel` evaluates at the first `step.started` event, after the incoming prompt
|
|
@@ -74,9 +74,10 @@ export function Chat() {
|
|
|
74
74
|
| --------- | ----------------------------------------------------------------------------------------- |
|
|
75
75
|
| `data` | Projected UI state from the reducer. Defaults to `{ messages }`. |
|
|
76
76
|
| `status` | `"ready"`, `"resuming"`, `"submitted"`, `"streaming"`, or `"error"`. Drives the composer. |
|
|
77
|
-
| `error` | The
|
|
77
|
+
| `error` | The latest session creation, stream, resume, or turn failure. |
|
|
78
78
|
| `events` | Raw eve stream events for this session. |
|
|
79
79
|
| `session` | Serializable fixed session cursor (`sessionId`, `streamIndex`). |
|
|
80
|
+
| `prewarm` | Create the durable session without starting a turn. |
|
|
80
81
|
| `send` | Send text or a multi-part message, with per-turn options. |
|
|
81
82
|
| `respond` | Answer pending HITL input requests, with per-turn options. |
|
|
82
83
|
| `resume` | Replay an attached session and follow its in-flight turn. |
|
|
@@ -85,6 +86,50 @@ export function Chat() {
|
|
|
85
86
|
|
|
86
87
|
Most chat UIs only need `data.messages` and `status`. Drop down to `events` when you need the authoritative wire events directly, for example to persist an audit log or build a custom projection.
|
|
87
88
|
|
|
89
|
+
Pass `prewarm: true` to start a workflow when the chat mounts and after each reset:
|
|
90
|
+
|
|
91
|
+
```tsx
|
|
92
|
+
import { useEveAgent } from "eve/react";
|
|
93
|
+
|
|
94
|
+
export function Chat() {
|
|
95
|
+
const agent = useEveAgent({ prewarm: true });
|
|
96
|
+
|
|
97
|
+
return <button onClick={agent.reset}>New chat</button>;
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Prewarming defaults to `false`: the first send creates the session. Enable it when your
|
|
102
|
+
application's auth, headers, and any chat-record binding are ready at mount. Applications
|
|
103
|
+
that prepare those in the submit handler should keep the default.
|
|
104
|
+
|
|
105
|
+
Prewarming starts the workflow and establishes its inbox, then parks before session hooks,
|
|
106
|
+
dynamic definitions, or sandbox setup run. The first message passes through the channel's
|
|
107
|
+
`onMessage` hook and supplies the identity and context for initialization and `turn_0`.
|
|
108
|
+
|
|
109
|
+
The explicit `prewarm()` method resolves on `202 Accepted`, as does `client.sessions.create()`.
|
|
110
|
+
It does not wait for an initialization event; concurrent calls share the same create request.
|
|
111
|
+
The composer stays `"ready"`, meaning it can accept input, and prewarming does not run
|
|
112
|
+
`prepareSend`. A concurrent `send()` waits only for acceptance, then posts the message.
|
|
113
|
+
If the inbox is still starting, the client retries `409 session_not_ready` with bounded
|
|
114
|
+
exponential backoff for up to 20 seconds. The caller's abort signal cancels the wait. Stream
|
|
115
|
+
events are not a prerequisite for sending.
|
|
116
|
+
|
|
117
|
+
A failed create sets `error` and calls `onError` when no send is waiting. A waiting send can
|
|
118
|
+
fall back to creating a session with its message. After creation succeeds, initialization
|
|
119
|
+
failures arrive on the stream during the first turn. The configured session timeout starts
|
|
120
|
+
at creation, so an unused prewarmed session can expire before its first message.
|
|
121
|
+
|
|
122
|
+
The hook keeps consuming one session stream across turns and idle periods. Replies,
|
|
123
|
+
authorization updates, and turns started elsewhere all update the same projection. A turn settling
|
|
124
|
+
does not close the connection. The transport reconnects from its cursor after a disconnect or the
|
|
125
|
+
server's renewable 60-second lease; lease renewal does not start a turn or clear UI state.
|
|
126
|
+
Unmounting or resetting closes the local stream without cancelling the old durable session.
|
|
127
|
+
|
|
128
|
+
`reset()` reuses the hook instance and clears the conversation. With `prewarm: true`, it
|
|
129
|
+
immediately prepares the next owned session; otherwise, the next send creates it. An explicitly supplied
|
|
130
|
+
`session` remains externally owned and is never replaced by prewarming or reset. Use
|
|
131
|
+
`initialSession` with `resume: true` to restore a saved chat.
|
|
132
|
+
|
|
88
133
|
`data.messages` are eve-owned `EveMessage[]`. Common text, reasoning, file, and dynamic-tool parts follow the [AI SDK `UIMessage`](https://ai-sdk.dev/docs/reference/ai-sdk-core/ui-message) rendering convention, but the types are not interchangeable. eve also exposes authorization and HITL metadata, and a file part's URL can be absent. Adapt those parts before passing messages to an API typed as `UIMessage[]`.
|
|
89
134
|
|
|
90
135
|
When the root agent delegates, its stream emits `subagent.called` with the child's `childSessionId`, then `subagent.completed` after admission with a working task receipt. Later task notifications wake the parent with completion, failure, or cancellation. Detailed child progress lives on the child session's stream instead of being flattened into the root `data.messages`. Use the lower-level [TypeScript client](../client/overview#sessions) to attach to that ID when your UI needs live subagent activity. See [What the parent sees](../../subagents#what-the-parent-sees) for the complete contract.
|
|
@@ -227,9 +272,9 @@ const agent = useEveAgent({
|
|
|
227
272
|
The hook accepts these lifecycle callbacks:
|
|
228
273
|
|
|
229
274
|
- `onEvent(event)`: fires for each eve stream event as it arrives.
|
|
230
|
-
- `onError(error)`: fires
|
|
275
|
+
- `onError(error)`: fires when session creation, streaming, resume, or a turn fails. A failed prewarm reports here when no send is waiting to retry creation.
|
|
231
276
|
- `onFinish(snapshot)`: fires with the final `{ data, status, session, ... }` snapshot once a turn settles.
|
|
232
|
-
- `onSessionChange(session)`: fires when
|
|
277
|
+
- `onSessionChange(session)`: fires when a session is created, its cursor advances, or reset clears it. Persist the session state to resume across reloads.
|
|
233
278
|
|
|
234
279
|
```tsx
|
|
235
280
|
const agent = useEveAgent({
|
|
@@ -306,9 +351,9 @@ then save a final snapshot in `onFinish`.
|
|
|
306
351
|
|
|
307
352
|
`initialEvents` must be an ordered prefix of the same session's stream, but its endpoint does not have to line up exactly with where the stream resumes. When the event count matches `initialSession.streamIndex`, catch-up continues from that cursor. A partial or overlapping saved log falls back to index `0`. Every event carries a stable [`meta.id`](/docs/concepts/sessions-runs-and-streaming#the-event-envelope), and the store drops any event whose id it has already applied, so an overlapping replay renders once and `onEvent` only fires for events your UI has not seen.
|
|
308
353
|
|
|
309
|
-
For multiple chat threads, keep one saved event log and session cursor per thread. `agent`, `host`, `reducer`, `session`, `initialEvents`, `initialSession`, `auth`, `headers`, `optimistic`, and `resume` are read when the hook creates its store, so remount the chat component when switching threads, for example with `key={chat.id}`.
|
|
354
|
+
For multiple chat threads, keep one saved event log and session cursor per thread. `agent`, `host`, `reducer`, `session`, `initialEvents`, `initialSession`, `auth`, `headers`, `optimistic`, `prewarm`, and `resume` are read when the hook creates its store, so remount the chat component when switching threads, for example with `key={chat.id}`.
|
|
310
355
|
|
|
311
|
-
Pass `resume: true` with `initialSession` to rebuild the projection from the durable stream after mount. While `status` is `"resuming"`, render hydrated `data` but disable message and HITL submission; do not present cancellation or active-turn progress controls. If catch-up finds an in-flight turn, `status` changes to `"streaming"` before the binding follows it to a boundary.
|
|
356
|
+
Pass `resume: true` with `initialSession` to rebuild the projection from the durable stream after mount. While `status` is `"resuming"`, render hydrated `data` but disable message and HITL submission; do not present cancellation or active-turn progress controls. If catch-up finds an in-flight turn, `status` changes to `"streaming"` before the binding follows it to a boundary. The stream reports its initial durable tail so catch-up can finish without closing the connection or waiting for an idle timeout. A settled tail changes directly to `"ready"`; a newer turn or pending authorization remains `"streaming"`. The connection stays open to receive later events. A terminal session failure changes to `"error"`.
|
|
312
357
|
|
|
313
358
|
```tsx
|
|
314
359
|
const agent = useEveAgent({
|
|
@@ -332,6 +377,10 @@ const agent = useEveAgent({
|
|
|
332
377
|
});
|
|
333
378
|
```
|
|
334
379
|
|
|
380
|
+
Headers supplied to `send()` apply to that turn request and become the credentials used by the
|
|
381
|
+
continuous session stream on its next reconnect. A later send replaces them with that turn's
|
|
382
|
+
headers.
|
|
383
|
+
|
|
335
384
|
When a framework integration mounts multiple named agents, pass `agent` instead of `host`:
|
|
336
385
|
|
|
337
386
|
```tsx
|
|
@@ -45,14 +45,14 @@ Call the binding once for a conversation and read its reactive getters directly.
|
|
|
45
45
|
|
|
46
46
|
The state fields are reactive getters; the commands are ordinary methods:
|
|
47
47
|
|
|
48
|
-
| Property
|
|
49
|
-
|
|
|
50
|
-
| `data`
|
|
51
|
-
| `status`
|
|
52
|
-
| `error`
|
|
53
|
-
| `events`
|
|
54
|
-
| `session`
|
|
55
|
-
| `send`, `respond`, `resume`, `cancel`, `reset` | Methods |
|
|
48
|
+
| Property | Svelte shape |
|
|
49
|
+
| --------------------------------------------------------- | --------------------------------- |
|
|
50
|
+
| `data` | `TData` |
|
|
51
|
+
| `status` | `UseEveAgentStatus` |
|
|
52
|
+
| `error` | `Error \| undefined` |
|
|
53
|
+
| `events` | `readonly MessageStreamEvent[]` |
|
|
54
|
+
| `session` | `ClientSessionState \| undefined` |
|
|
55
|
+
| `send`, `respond`, `prewarm`, `resume`, `cancel`, `reset` | Methods |
|
|
56
56
|
|
|
57
57
|
Read the getters directly in templates, `$derived`, or `$effect`. The [shared returned-state reference](./overview#returned-state) describes what each value and command does.
|
|
58
58
|
|
|
@@ -107,6 +107,11 @@ See [Human-in-the-loop prompts](./overview#human-in-the-loop-prompts) for reques
|
|
|
107
107
|
|
|
108
108
|
## Cancel, reset, and resume
|
|
109
109
|
|
|
110
|
+
Pass `prewarm: true` to prepare an owned workflow on mount and after reset. It defaults
|
|
111
|
+
to `false`, so the first send creates the session. The binding waits for create acceptance,
|
|
112
|
+
retries while the inbox starts, and keeps the session stream open across turns. See [Prewarming and returned state](./overview#returned-state) for creation, failure, and
|
|
113
|
+
connection behavior.
|
|
114
|
+
|
|
110
115
|
Call `agent.cancel()` to stop the durable server-side turn while the binding remains attached through settlement. Destroying the component only disconnects its local stream; it does not cancel server execution. Call `agent.reset()` to clear local state and start a new session. Pass `initialSession`, `initialEvents`, and `resume: true` to restore a saved conversation and follow an in-flight turn. During bounded catch-up, `agent.status` is `"resuming"`; keep the hydrated conversation visible, disable submission, and wait for `"ready"`, `"error"`, or `"streaming"`. Use `agent.resume()` directly when restoration is controlled imperatively. See [Resumable sessions](./overview#resumable-sessions) for the persistence contract and [Sending and streaming](./overview#sending-and-streaming) for cancellation behavior.
|
|
111
116
|
|
|
112
117
|
## Custom host and credentials
|
|
@@ -44,14 +44,14 @@ async function handleSubmit() {
|
|
|
44
44
|
|
|
45
45
|
The state fields are computed refs; the commands are ordinary methods:
|
|
46
46
|
|
|
47
|
-
| Property
|
|
48
|
-
|
|
|
49
|
-
| `data`
|
|
50
|
-
| `status`
|
|
51
|
-
| `error`
|
|
52
|
-
| `events`
|
|
53
|
-
| `session`
|
|
54
|
-
| `send`, `respond`, `resume`, `cancel`, `reset` | Methods |
|
|
47
|
+
| Property | Vue shape |
|
|
48
|
+
| --------------------------------------------------------- | ---------------------------------------------- |
|
|
49
|
+
| `data` | `ComputedRef<TData>` |
|
|
50
|
+
| `status` | `ComputedRef<UseEveAgentStatus>` |
|
|
51
|
+
| `error` | `ComputedRef<Error \| undefined>` |
|
|
52
|
+
| `events` | `ComputedRef<readonly MessageStreamEvent[]>` |
|
|
53
|
+
| `session` | `ComputedRef<ClientSessionState \| undefined>` |
|
|
54
|
+
| `send`, `respond`, `prewarm`, `resume`, `cancel`, `reset` | Methods |
|
|
55
55
|
|
|
56
56
|
Destructuring preserves reactivity because each state value remains a ref. Read refs with `.value` in `<script>` and without `.value` in a template. The [shared returned-state reference](./overview#returned-state) describes what each value and command does.
|
|
57
57
|
|
|
@@ -109,6 +109,11 @@ See [Human-in-the-loop prompts](./overview#human-in-the-loop-prompts) for reques
|
|
|
109
109
|
|
|
110
110
|
## Cancel, reset, and resume
|
|
111
111
|
|
|
112
|
+
Pass `prewarm: true` to prepare an owned workflow on mount and after reset. It defaults
|
|
113
|
+
to `false`, so the first send creates the session. The binding waits for create acceptance,
|
|
114
|
+
retries while the inbox starts, and keeps the session stream open across turns. See [Prewarming and returned state](./overview#returned-state) for creation, failure, and
|
|
115
|
+
connection behavior.
|
|
116
|
+
|
|
112
117
|
Call `cancel()` to stop the durable server-side turn while the composable remains attached through settlement. Disposing the component only disconnects its local stream; it does not cancel server execution. Call `reset()` to clear local state and start a new session. Pass `initialSession`, `initialEvents`, and `resume: true` to restore a saved conversation and follow an in-flight turn. During bounded catch-up, `status.value` is `"resuming"`; keep the hydrated conversation visible, disable submission, and wait for `"ready"`, `"error"`, or `"streaming"`. Use `resume()` directly when restoration is controlled imperatively. See [Resumable sessions](./overview#resumable-sessions) for the persistence contract and [Sending and streaming](./overview#sending-and-streaming) for cancellation behavior.
|
|
113
118
|
|
|
114
119
|
## Custom host and credentials
|
|
@@ -35,6 +35,7 @@ export default defineTool({
|
|
|
35
35
|
| `defineAgent` | `eve` | `agent/agent.ts` | [agent.ts](../agent-config) |
|
|
36
36
|
| `defineTool` | `eve/tools` | `agent/tools/<name>.ts` | [Tools](../tools) |
|
|
37
37
|
| `defineDurableCallback` | `eve/tools` | provider-package dynamic tool factories | [Dynamic capabilities](../guides/dynamic-capabilities) |
|
|
38
|
+
| `defineDurableSchema` | `eve/tools` | provider-package dynamic input and output schemas | [Dynamic capabilities](../guides/dynamic-capabilities) |
|
|
38
39
|
| `defineWorkflowTool` | `eve/tools` | `agent/tools/<name>.ts` | [Workflow tools](../tools/workflows) |
|
|
39
40
|
| `defineDynamic` | `eve`, `eve/tools`, `eve/skills`, `eve/instructions`, `eve/connections` | dynamic model or subagent `agent.ts`; `agent/{tools,skills,instructions,connections}/` | [Dynamic capabilities](../guides/dynamic-capabilities) |
|
|
40
41
|
| `defineMcpClientConnection` | `eve/connections` | `agent/connections/<name>.ts` | [MCP connections](../connections/mcp) |
|
|
@@ -55,7 +56,7 @@ export default defineTool({
|
|
|
55
56
|
| `mockModel` | `eve/evals` | Deterministic fixture agent models | [Evals](../evals/overview) |
|
|
56
57
|
| `useEveAgent` | `eve/react`, `eve/vue`, `eve/svelte` | frontend | [Frontend](../guides/frontend/overview) |
|
|
57
58
|
|
|
58
|
-
Tool-wide authoring helpers and types such as `defineTool`, `defineWorkflowTool`, `defineDurableCallback`, `defineDynamic`, `disableTool`, and `ToolLabelDefinition` come from `eve/tools`. Capability-specific definitions and helpers use their own subpaths (see [Built-in tools](../concepts/built-in-tools)): reusable definitions such as `bash` and `glob` come from `eve/tools/<name>`, `webSearch` comes from `eve/tools/web_search`, `sleep` comes from `eve/tools/sleep`, and approval policies and types come from `eve/tools/approval`. The route verbs `GET`/`HEAD`/`POST`/`PUT`/`PATCH`/`DELETE`/`OPTIONS`/`WS` plus `disableRoute` come from `eve/channels`, and the channel auth helpers `localDev`/`vercelOidc`/`placeholderAuth` come from `eve/channels/auth`.
|
|
59
|
+
Tool-wide authoring helpers and types such as `defineTool`, `defineWorkflowTool`, `defineDurableCallback`, `defineDurableSchema`, `defineDynamic`, `disableTool`, and `ToolLabelDefinition` come from `eve/tools`. Capability-specific definitions and helpers use their own subpaths (see [Built-in tools](../concepts/built-in-tools)): reusable definitions such as `bash` and `glob` come from `eve/tools/<name>`, `webSearch` comes from `eve/tools/web_search`, `sleep` comes from `eve/tools/sleep`, and approval policies and types come from `eve/tools/approval`. The route verbs `GET`/`HEAD`/`POST`/`PUT`/`PATCH`/`DELETE`/`OPTIONS`/`WS` plus `disableRoute` come from `eve/channels`, and the channel auth helpers `localDev`/`vercelOidc`/`placeholderAuth` come from `eve/channels/auth`.
|
|
59
60
|
|
|
60
61
|
`AgentReasoningDefinition` is exported from `eve` for the top-level `defineAgent({ reasoning })` setting. `AgentLimitsDefinition` is exported for `defineAgent({ limits })`. `AgentWorkflowDefinition`, `AgentWorkflowRetentionDefinition`, and `AgentWorkflowWorldDefinition` are exported from `eve` for the `defineAgent({ experimental: { workflow } })` config shape. `WebSearchToolInput` and `WebSearchProvider` are exported from `eve/tools/web_search`.
|
|
61
62
|
|
|
@@ -109,41 +110,42 @@ import template from "../../prompts/template.txt?raw";
|
|
|
109
110
|
|
|
110
111
|
## Imports at a glance
|
|
111
112
|
|
|
112
|
-
| Import | Holds
|
|
113
|
-
| --------------------------------------------------------------------------- |
|
|
114
|
-
| `eve` | `defineAgent`, `defineRemoteAgent`, `defineDynamic`, agent config types
|
|
115
|
-
| `eve/tools` | `defineTool`, `defineWorkflowTool`, `defineDurableCallback`, `defineDynamic`, `disableTool`, tool types |
|
|
116
|
-
| `eve/tools/{bash,read_file,write_file,todo,web_fetch,load_skill,glob,grep}` | Individual reusable tool definitions
|
|
117
|
-
| `eve/tools/approval` | Approval types and `always`, `once`, `never`
|
|
118
|
-
| `eve/tools/web_search` | Provider-managed `webSearch` configuration
|
|
119
|
-
| `eve/tools/workflow` | Runtime-generated `workflow` tool factory
|
|
120
|
-
| `eve/tools/sleep` | Opt-in durable `sleep` tool
|
|
121
|
-
| `eve/connections` | `defineMcpClientConnection`, `defineOpenAPIConnection`, `defineDynamic`
|
|
122
|
-
| `eve/channels` | `defineChannel`, `disableRoute`, route verbs
|
|
123
|
-
| `eve/channels/eve` | `eveChannel`
|
|
124
|
-
| `eve/channels/auth` | `localDev`, `vercelOidc`, `placeholderAuth`
|
|
125
|
-
| `eve/channels/{slack,discord,teams,telegram,twilio,github}` | platform channel factories
|
|
126
|
-
| `eve/hooks` | `defineHook`
|
|
127
|
-
| `eve/schedules` | `defineSchedule`
|
|
128
|
-
| `eve/skills` | `defineSkill`, `defineDynamic`
|
|
129
|
-
| `eve/instructions` | `defineInstructions`, `defineDynamic`
|
|
130
|
-
| `eve/memory` | `defineMemory`, `defineMemoryProvider`, provider and lifecycle types
|
|
131
|
-
| `eve/memory/scope` | `byPrincipal` and memory scope helpers
|
|
132
|
-
| `eve/memory/file` | `fileMemory`, `inMemory`, and the conditional document backend contract
|
|
133
|
-
| `eve/memory/file/vercel` | `vercelBlob` and Vercel Blob backend options
|
|
134
|
-
| `eve/context` | `defineState`, session and state types
|
|
135
|
-
| `eve/sandbox` | `defineSandbox`, backends
|
|
136
|
-
| `eve/instrumentation` | `defineInstrumentation`, `isChannel`
|
|
137
|
-
| `eve/local-dev` | `getLocalDevCapability`, `LocalDevCapability`
|
|
138
|
-
| `eve/models/openai` | `openai`, `chatgpt`, deprecated `experimental_chatgpt`
|
|
139
|
-
| `eve/models/anthropic` | `anthropic`
|
|
140
|
-
| `eve/
|
|
141
|
-
| `eve/evals
|
|
142
|
-
| `eve/evals/
|
|
143
|
-
| `eve/evals/
|
|
144
|
-
| `eve/
|
|
145
|
-
| `eve/
|
|
146
|
-
|
|
|
113
|
+
| Import | Holds |
|
|
114
|
+
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
115
|
+
| `eve` | `defineAgent`, `defineRemoteAgent`, `defineDynamic`, agent config types |
|
|
116
|
+
| `eve/tools` | `defineTool`, `defineWorkflowTool`, `defineDurableCallback`, `defineDurableSchema`, `defineDynamic`, `disableTool`, tool types |
|
|
117
|
+
| `eve/tools/{bash,read_file,write_file,todo,web_fetch,load_skill,glob,grep}` | Individual reusable tool definitions |
|
|
118
|
+
| `eve/tools/approval` | Approval types and `always`, `once`, `never` |
|
|
119
|
+
| `eve/tools/web_search` | Provider-managed `webSearch` configuration |
|
|
120
|
+
| `eve/tools/workflow` | Runtime-generated `workflow` tool factory |
|
|
121
|
+
| `eve/tools/sleep` | Opt-in durable `sleep` tool |
|
|
122
|
+
| `eve/connections` | `defineMcpClientConnection`, `defineOpenAPIConnection`, `defineDynamic` |
|
|
123
|
+
| `eve/channels` | `defineChannel`, `disableRoute`, route verbs |
|
|
124
|
+
| `eve/channels/eve` | `eveChannel` |
|
|
125
|
+
| `eve/channels/auth` | `localDev`, `vercelOidc`, `placeholderAuth` |
|
|
126
|
+
| `eve/channels/{slack,discord,teams,telegram,twilio,github}` | platform channel factories |
|
|
127
|
+
| `eve/hooks` | `defineHook` |
|
|
128
|
+
| `eve/schedules` | `defineSchedule` |
|
|
129
|
+
| `eve/skills` | `defineSkill`, `defineDynamic` |
|
|
130
|
+
| `eve/instructions` | `defineInstructions`, `defineDynamic` |
|
|
131
|
+
| `eve/memory` | `defineMemory`, `defineMemoryProvider`, provider and lifecycle types |
|
|
132
|
+
| `eve/memory/scope` | `byPrincipal` and memory scope helpers |
|
|
133
|
+
| `eve/memory/file` | `fileMemory`, `inMemory`, and the conditional document backend contract |
|
|
134
|
+
| `eve/memory/file/vercel` | `vercelBlob` and Vercel Blob backend options |
|
|
135
|
+
| `eve/context` | `defineState`, session and state types |
|
|
136
|
+
| `eve/sandbox` | `defineSandbox`, backends |
|
|
137
|
+
| `eve/instrumentation` | `defineInstrumentation`, `isChannel` |
|
|
138
|
+
| `eve/local-dev` | `getLocalDevCapability`, `LocalDevCapability` |
|
|
139
|
+
| `eve/models/openai` | `openai`, `chatgpt`, deprecated `experimental_chatgpt` |
|
|
140
|
+
| `eve/models/anthropic` | `anthropic` |
|
|
141
|
+
| [`eve/experimental/evaluate`](../guides/evaluate) | Experimental `autoModel` and standalone `evaluate` |
|
|
142
|
+
| `eve/evals` | `defineEval`, `defineEvalConfig`, `mockModel`, eval types |
|
|
143
|
+
| `eve/evals/expect` | `includes`, `equals`, `matches`, `similarity` |
|
|
144
|
+
| `eve/evals/reporters` | `Braintrust`, `JUnit`, `EvalReporter` |
|
|
145
|
+
| `eve/evals/loaders` | `loadJson`, `loadYaml` |
|
|
146
|
+
| `eve/react`, `eve/vue`, `eve/svelte` | `useEveAgent` |
|
|
147
|
+
| `eve/next`, `eve/nuxt`, `eve/sveltekit` | framework bundler plugins |
|
|
148
|
+
| [`eve/client`](../guides/client/overview) | `Client`, `ClientSession`, health and agent-info schemas, response errors |
|
|
147
149
|
|
|
148
150
|
Exported types ship from the same entrypoint as the helper they describe (for example `ToolDefinition` and `ToolContext` from `eve/tools`). The `exports` field in `packages/eve/package.json` lists every public entrypoint.
|
|
149
151
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Filesystem-first framework for durable backend AI agents that run anywhere.",
|
|
6
6
|
"keywords": [
|
|
@@ -484,8 +484,7 @@
|
|
|
484
484
|
"@vercel/detect-agent": "1.2.3",
|
|
485
485
|
"@vercel/oidc": "3.8.0",
|
|
486
486
|
"@vercel/otel": "2.1.3",
|
|
487
|
-
"@vercel/sandbox": "3.
|
|
488
|
-
"@vercel/sandbox-drives": "npm:@vercel/sandbox@3.1.0-beta.1",
|
|
487
|
+
"@vercel/sandbox": "3.3.0",
|
|
489
488
|
"@vercel/sdk": "1.28.8",
|
|
490
489
|
"@workflow/builders": "5.0.0-beta.51",
|
|
491
490
|
"@workflow/core": "5.0.0-beta.51",
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
<http://www.apache.org/licenses/>
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2025 Vercel Inc.
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Auto-generated stub for `async-retry` types referenced by a vendored .d.ts.
|
|
2
|
-
// Emitted by createDeclarationCopier > buildOpaqueTypesStub.
|
|
3
|
-
//
|
|
4
|
-
// Names are aliased to `unknown` so consumers don't have to install
|
|
5
|
-
// upstream @types just to typecheck against eve. If real types are
|
|
6
|
-
// needed in user code, install the upstream @types and use them directly.
|
|
7
|
-
|
|
8
|
-
export type Options = unknown;
|