@gea-ai/agent-sdk 0.1.260909-alpha.0 → 0.1.260910-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -0
- package/THIRD_PARTY_NOTICES.md +40 -0
- package/dist/agent-core-engine.d.ts +29 -0
- package/dist/agent-core-engine.d.ts.map +1 -0
- package/dist/agent-core-engine.js +2 -0
- package/dist/agent-core-engine.js.map +1 -0
- package/dist/agent-core-output.d.ts +6 -0
- package/dist/agent-core-output.d.ts.map +1 -0
- package/dist/agent-core-output.js +36 -0
- package/dist/agent-core-output.js.map +1 -0
- package/dist/agent-core.d.ts +12 -0
- package/dist/agent-core.d.ts.map +1 -0
- package/dist/agent-core.js +18 -0
- package/dist/agent-core.js.map +1 -0
- package/dist/agent-core.wasm +0 -0
- package/dist/agent-worker.d.ts +1 -0
- package/dist/agent-worker.d.ts.map +1 -1
- package/dist/agent-worker.js +646 -216
- package/dist/agent-worker.js.map +1 -1
- package/dist/experimental/agent-core-messages.d.ts +27 -0
- package/dist/experimental/agent-core-messages.d.ts.map +1 -0
- package/dist/experimental/agent-core-messages.js +291 -0
- package/dist/experimental/agent-core-messages.js.map +1 -0
- package/dist/experimental/agent-core-options.d.ts +4 -0
- package/dist/experimental/agent-core-options.d.ts.map +1 -0
- package/dist/experimental/agent-core-options.js +45 -0
- package/dist/experimental/agent-core-options.js.map +1 -0
- package/dist/experimental/agent-core-ui.d.ts +21 -0
- package/dist/experimental/agent-core-ui.d.ts.map +1 -0
- package/dist/experimental/agent-core-ui.js +311 -0
- package/dist/experimental/agent-core-ui.js.map +1 -0
- package/dist/experimental/agent-core-worker-tools.d.ts +25 -0
- package/dist/experimental/agent-core-worker-tools.d.ts.map +1 -0
- package/dist/experimental/agent-core-worker-tools.js +131 -0
- package/dist/experimental/agent-core-worker-tools.js.map +1 -0
- package/dist/experimental/agent-core.d.ts +53 -0
- package/dist/experimental/agent-core.d.ts.map +1 -0
- package/dist/experimental/agent-core.js +473 -0
- package/dist/experimental/agent-core.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/studio-client.d.ts +3 -0
- package/dist/studio-client.d.ts.map +1 -1
- package/dist/studio-client.js +7 -0
- package/dist/studio-client.js.map +1 -1
- package/dist/studio-stream-replay.d.ts +5 -0
- package/dist/studio-stream-replay.d.ts.map +1 -0
- package/dist/studio-stream-replay.js +63 -0
- package/dist/studio-stream-replay.js.map +1 -0
- package/dist/vendor/ai-ui/json-to-sse-transform-stream.d.ts +9 -0
- package/dist/vendor/ai-ui/json-to-sse-transform-stream.d.ts.map +1 -0
- package/dist/vendor/ai-ui/json-to-sse-transform-stream.js +20 -0
- package/dist/vendor/ai-ui/json-to-sse-transform-stream.js.map +1 -0
- package/dist/vendor/ai-ui/to-ui-message-chunk.d.ts +4 -0
- package/dist/vendor/ai-ui/to-ui-message-chunk.d.ts.map +1 -0
- package/dist/vendor/ai-ui/to-ui-message-chunk.js +301 -0
- package/dist/vendor/ai-ui/to-ui-message-chunk.js.map +1 -0
- package/dist/vendor/ai-ui/ui-message-stream-headers.d.ts +8 -0
- package/dist/vendor/ai-ui/ui-message-stream-headers.d.ts.map +1 -0
- package/dist/vendor/ai-ui/ui-message-stream-headers.js +10 -0
- package/dist/vendor/ai-ui/ui-message-stream-headers.js.map +1 -0
- package/package.json +10 -3
- package/third-party/agent-core/NOTICE +81 -0
- package/third-party/agent-core/ahash-0.8.12/LICENSE-APACHE +201 -0
- package/third-party/agent-core/ahash-0.8.12/LICENSE-MIT +25 -0
- package/third-party/agent-core/aho-corasick-1.1.5/COPYING +3 -0
- package/third-party/agent-core/aho-corasick-1.1.5/LICENSE-MIT +21 -0
- package/third-party/agent-core/allocator-api2-0.2.21/LICENSE-APACHE +176 -0
- package/third-party/agent-core/allocator-api2-0.2.21/LICENSE-MIT +23 -0
- package/third-party/agent-core/autocfg-1.5.1/LICENSE-APACHE +201 -0
- package/third-party/agent-core/autocfg-1.5.1/LICENSE-MIT +25 -0
- package/third-party/agent-core/bit-set-0.8.0/LICENSE-APACHE +201 -0
- package/third-party/agent-core/bit-set-0.8.0/LICENSE-MIT +25 -0
- package/third-party/agent-core/bit-vec-0.8.0/LICENSE-APACHE +201 -0
- package/third-party/agent-core/bit-vec-0.8.0/LICENSE-MIT +25 -0
- package/third-party/agent-core/borrow-or-share-0.2.4/LICENSE +18 -0
- package/third-party/agent-core/bumpalo-3.20.3/LICENSE-APACHE +201 -0
- package/third-party/agent-core/bumpalo-3.20.3/LICENSE-MIT +25 -0
- package/third-party/agent-core/bytecount-0.6.9/LICENSE.Apache2 +201 -0
- package/third-party/agent-core/bytecount-0.6.9/LICENSE.MIT +19 -0
- package/third-party/agent-core/cfg-if-1.0.4/LICENSE-APACHE +201 -0
- package/third-party/agent-core/cfg-if-1.0.4/LICENSE-MIT +25 -0
- package/third-party/agent-core/data-encoding-2.11.1/LICENSE +22 -0
- package/third-party/agent-core/email_address-0.2.9/LICENSE +21 -0
- package/third-party/agent-core/equivalent-1.0.2/LICENSE-APACHE +201 -0
- package/third-party/agent-core/equivalent-1.0.2/LICENSE-MIT +25 -0
- package/third-party/agent-core/fancy-regex-0.19.1/LICENSE +21 -0
- package/third-party/agent-core/fluent-uri-0.4.1/LICENSE +21 -0
- package/third-party/agent-core/foldhash-0.2.0/LICENSE +19 -0
- package/third-party/agent-core/fraction-0.17.0/LICENSE-APACHE +201 -0
- package/third-party/agent-core/fraction-0.17.0/LICENSE-MIT +25 -0
- package/third-party/agent-core/getrandom-0.3.4/LICENSE-APACHE +201 -0
- package/third-party/agent-core/getrandom-0.3.4/LICENSE-MIT +26 -0
- package/third-party/agent-core/hashbrown-0.17.1/LICENSE-APACHE +201 -0
- package/third-party/agent-core/hashbrown-0.17.1/LICENSE-MIT +25 -0
- package/third-party/agent-core/heck-0.5.0/LICENSE-APACHE +201 -0
- package/third-party/agent-core/heck-0.5.0/LICENSE-MIT +25 -0
- package/third-party/agent-core/httpdate-1.0.3/LICENSE-APACHE +201 -0
- package/third-party/agent-core/httpdate-1.0.3/LICENSE-MIT +19 -0
- package/third-party/agent-core/itoa-1.0.18/LICENSE-APACHE +176 -0
- package/third-party/agent-core/itoa-1.0.18/LICENSE-MIT +23 -0
- package/third-party/agent-core/jsonschema-0.55.1/LICENSE +21 -0
- package/third-party/agent-core/jsonschema-regex-0.55.1/LICENSE +21 -0
- package/third-party/agent-core/jsonschema-regex-0.55.1/PROVENANCE +2 -0
- package/third-party/agent-core/jsonschema-value-0.55.1/LICENSE +21 -0
- package/third-party/agent-core/jsonschema-value-0.55.1/PROVENANCE +2 -0
- package/third-party/agent-core/lock_api-0.4.14/LICENSE-APACHE +201 -0
- package/third-party/agent-core/lock_api-0.4.14/LICENSE-MIT +25 -0
- package/third-party/agent-core/memchr-2.8.3/COPYING +3 -0
- package/third-party/agent-core/memchr-2.8.3/LICENSE-MIT +21 -0
- package/third-party/agent-core/micromap-0.3.0/LICENSE.txt +19 -0
- package/third-party/agent-core/num-0.4.3/LICENSE-APACHE +201 -0
- package/third-party/agent-core/num-0.4.3/LICENSE-MIT +25 -0
- package/third-party/agent-core/num-bigint-0.4.8/LICENSE-APACHE +201 -0
- package/third-party/agent-core/num-bigint-0.4.8/LICENSE-MIT +25 -0
- package/third-party/agent-core/num-cmp-0.1.0/LICENSE.txt +390 -0
- package/third-party/agent-core/num-complex-0.4.6/LICENSE-APACHE +201 -0
- package/third-party/agent-core/num-complex-0.4.6/LICENSE-MIT +25 -0
- package/third-party/agent-core/num-integer-0.1.47/LICENSE-APACHE +201 -0
- package/third-party/agent-core/num-integer-0.1.47/LICENSE-MIT +25 -0
- package/third-party/agent-core/num-iter-0.1.46/LICENSE-APACHE +201 -0
- package/third-party/agent-core/num-iter-0.1.46/LICENSE-MIT +25 -0
- package/third-party/agent-core/num-rational-0.4.2/LICENSE-APACHE +201 -0
- package/third-party/agent-core/num-rational-0.4.2/LICENSE-MIT +25 -0
- package/third-party/agent-core/num-traits-0.2.19/LICENSE-APACHE +201 -0
- package/third-party/agent-core/num-traits-0.2.19/LICENSE-MIT +25 -0
- package/third-party/agent-core/once_cell-1.21.4/LICENSE-APACHE +201 -0
- package/third-party/agent-core/once_cell-1.21.4/LICENSE-MIT +23 -0
- package/third-party/agent-core/outref-0.5.2/LICENSE +21 -0
- package/third-party/agent-core/parking_lot-0.12.5/LICENSE-APACHE +201 -0
- package/third-party/agent-core/parking_lot-0.12.5/LICENSE-MIT +25 -0
- package/third-party/agent-core/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
- package/third-party/agent-core/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
- package/third-party/agent-core/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
- package/third-party/agent-core/percent-encoding-2.3.2/LICENSE-MIT +25 -0
- package/third-party/agent-core/proc-macro2-1.0.107/LICENSE-APACHE +176 -0
- package/third-party/agent-core/proc-macro2-1.0.107/LICENSE-MIT +23 -0
- package/third-party/agent-core/quote-1.0.47/LICENSE-APACHE +176 -0
- package/third-party/agent-core/quote-1.0.47/LICENSE-MIT +23 -0
- package/third-party/agent-core/ref-cast-1.0.27/LICENSE-APACHE +176 -0
- package/third-party/agent-core/ref-cast-1.0.27/LICENSE-MIT +23 -0
- package/third-party/agent-core/ref-cast-impl-1.0.27/LICENSE-APACHE +176 -0
- package/third-party/agent-core/ref-cast-impl-1.0.27/LICENSE-MIT +23 -0
- package/third-party/agent-core/referencing-0.55.1/LICENSE +21 -0
- package/third-party/agent-core/regex-1.13.1/LICENSE-APACHE +201 -0
- package/third-party/agent-core/regex-1.13.1/LICENSE-MIT +25 -0
- package/third-party/agent-core/regex-automata-0.4.18/LICENSE-APACHE +201 -0
- package/third-party/agent-core/regex-automata-0.4.18/LICENSE-MIT +25 -0
- package/third-party/agent-core/regex-syntax-0.8.11/LICENSE-APACHE +201 -0
- package/third-party/agent-core/regex-syntax-0.8.11/LICENSE-MIT +25 -0
- package/third-party/agent-core/rustversion-1.0.23/LICENSE-APACHE +176 -0
- package/third-party/agent-core/rustversion-1.0.23/LICENSE-MIT +23 -0
- package/third-party/agent-core/scopeguard-1.2.0/LICENSE-APACHE +201 -0
- package/third-party/agent-core/scopeguard-1.2.0/LICENSE-MIT +25 -0
- package/third-party/agent-core/serde-1.0.229/LICENSE-APACHE +176 -0
- package/third-party/agent-core/serde-1.0.229/LICENSE-MIT +23 -0
- package/third-party/agent-core/serde_core-1.0.229/LICENSE-APACHE +176 -0
- package/third-party/agent-core/serde_core-1.0.229/LICENSE-MIT +23 -0
- package/third-party/agent-core/serde_derive-1.0.229/LICENSE-APACHE +176 -0
- package/third-party/agent-core/serde_derive-1.0.229/LICENSE-MIT +23 -0
- package/third-party/agent-core/serde_json-1.0.151/LICENSE-APACHE +176 -0
- package/third-party/agent-core/serde_json-1.0.151/LICENSE-MIT +23 -0
- package/third-party/agent-core/smallvec-1.16.0/LICENSE-APACHE +201 -0
- package/third-party/agent-core/smallvec-1.16.0/LICENSE-MIT +25 -0
- package/third-party/agent-core/strum-0.28.0/LICENSE +21 -0
- package/third-party/agent-core/strum_macros-0.28.0/LICENSE +21 -0
- package/third-party/agent-core/syn-2.0.119/LICENSE-APACHE +176 -0
- package/third-party/agent-core/syn-2.0.119/LICENSE-MIT +23 -0
- package/third-party/agent-core/syn-3.0.5/LICENSE-APACHE +176 -0
- package/third-party/agent-core/syn-3.0.5/LICENSE-MIT +23 -0
- package/third-party/agent-core/unicode-general-category-1.1.0/LICENSE +201 -0
- package/third-party/agent-core/unicode-ident-1.0.24/LICENSE-APACHE +176 -0
- package/third-party/agent-core/unicode-ident-1.0.24/LICENSE-MIT +23 -0
- package/third-party/agent-core/unicode-ident-1.0.24/LICENSE-UNICODE +39 -0
- package/third-party/agent-core/uuid-simd-0.8.0/LICENSE +21 -0
- package/third-party/agent-core/uuid-simd-0.8.0/PROVENANCE +2 -0
- package/third-party/agent-core/version_check-0.9.5/LICENSE-APACHE +201 -0
- package/third-party/agent-core/version_check-0.9.5/LICENSE-MIT +19 -0
- package/third-party/agent-core/vsimd-0.8.0/LICENSE +21 -0
- package/third-party/agent-core/vsimd-0.8.0/PROVENANCE +2 -0
- package/third-party/agent-core/wasm-bindgen-0.2.128/LICENSE-APACHE +201 -0
- package/third-party/agent-core/wasm-bindgen-0.2.128/LICENSE-MIT +25 -0
- package/third-party/agent-core/wasm-bindgen-macro-0.2.128/LICENSE-APACHE +201 -0
- package/third-party/agent-core/wasm-bindgen-macro-0.2.128/LICENSE-MIT +25 -0
- package/third-party/agent-core/wasm-bindgen-macro-support-0.2.128/LICENSE-APACHE +201 -0
- package/third-party/agent-core/wasm-bindgen-macro-support-0.2.128/LICENSE-MIT +25 -0
- package/third-party/agent-core/wasm-bindgen-shared-0.2.128/LICENSE-APACHE +201 -0
- package/third-party/agent-core/wasm-bindgen-shared-0.2.128/LICENSE-MIT +25 -0
- package/third-party/agent-core/zerocopy-0.8.57/LICENSE-APACHE +202 -0
- package/third-party/agent-core/zerocopy-0.8.57/LICENSE-BSD +24 -0
- package/third-party/agent-core/zerocopy-0.8.57/LICENSE-MIT +26 -0
- package/third-party/agent-core/zmij-1.0.23/LICENSE-MIT +23 -0
- package/third-party/ai-ui/LICENSE-APACHE +201 -0
- package/third-party/ai-ui/NOTICE +15 -0
package/README.md
CHANGED
|
@@ -222,6 +222,105 @@ last provider-reported `usage.totalTokens`; the SDK does not estimate tokens.
|
|
|
222
222
|
Recent groups keep tool calls and their results together. Without Computer
|
|
223
223
|
storage, the default recipe skips offload but can still summarize.
|
|
224
224
|
|
|
225
|
+
The optional Rust/WASM engine uses the same context strategies and host tools:
|
|
226
|
+
|
|
227
|
+
```ts
|
|
228
|
+
import { agentCore } from "@gea-ai/agent-sdk/agent-core";
|
|
229
|
+
|
|
230
|
+
export default defineAgent({
|
|
231
|
+
name: "assistant",
|
|
232
|
+
slug: "assistant",
|
|
233
|
+
model: "gea-model-1",
|
|
234
|
+
engine: agentCore({
|
|
235
|
+
maxToolConcurrency: 4,
|
|
236
|
+
maxSteps: 20,
|
|
237
|
+
maxRetries: 2,
|
|
238
|
+
timeout: {
|
|
239
|
+
totalMs: 120_000,
|
|
240
|
+
stepMs: 60_000,
|
|
241
|
+
chunkMs: 15_000,
|
|
242
|
+
toolMs: 30_000,
|
|
243
|
+
},
|
|
244
|
+
onError: ({ error }) => console.error(error.code, error.details),
|
|
245
|
+
guardrail: ({ call }) =>
|
|
246
|
+
call.name === "deleteAsset" ? "user-approval" : "not-applicable",
|
|
247
|
+
}),
|
|
248
|
+
});
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
`gea agent` bundles Core's WASM bytes with the Agent. The factory is an authoring
|
|
252
|
+
entry for that bundler; installed projects do not need Rust. The default engine
|
|
253
|
+
remains AI SDK. Core supports local TS tools, pre-execution guardrail and approval,
|
|
254
|
+
context strategies and the existing managed Session/Artifact lifecycle. An approval
|
|
255
|
+
pause skips custom `onEnd` until continuation completes. Guardrail is checked again
|
|
256
|
+
before dispatch and may deny or require approval; it cannot override a Tool denial.
|
|
257
|
+
Core initiates preparation, step-end and run-end callbacks into TS, and waits for
|
|
258
|
+
context settlement before returning its outcome. A failed final context commit
|
|
259
|
+
cannot report success; cancellation still waits for cleanup.
|
|
260
|
+
Declared Tools keep their typed `tool-<name>` UI parts and dynamic Tools keep
|
|
261
|
+
`dynamic-tool`, so existing Tool renderers and code Judges can use either engine.
|
|
262
|
+
Provider-hosted/custom and client-executed tools are outside the current Core subset.
|
|
263
|
+
The Worker Runtime must support WebAssembly JSPI. This optional engine supports
|
|
264
|
+
a subset of AI SDK model and output features.
|
|
265
|
+
Rust owns error classification, model request retries and timeout decisions. The
|
|
266
|
+
TS `onError` callback observes terminal failures once; recoverable Tool errors,
|
|
267
|
+
retry attempts and caller cancellation do not invoke it. `maxRetries` defaults to
|
|
268
|
+
2 and `timeout` also accepts a number for the total active execution budget.
|
|
269
|
+
Established streams and Tools are never replayed automatically. `maxSteps` stops
|
|
270
|
+
after a complete step. Cleanup remains awaited, so a timeout does not forcibly
|
|
271
|
+
terminate uncooperative host code or reverse an effect.
|
|
272
|
+
|
|
273
|
+
Dynamic step settings are supplied by TS callbacks and applied by Rust:
|
|
274
|
+
|
|
275
|
+
```ts
|
|
276
|
+
engine: agentCore({
|
|
277
|
+
models: ["gea-model-2"],
|
|
278
|
+
prepareStep: ({ stepNumber }) =>
|
|
279
|
+
stepNumber === 0
|
|
280
|
+
? { activeTools: ["lookup"], toolChoice: { type: "tool", toolName: "lookup" } }
|
|
281
|
+
: { model: "gea-model-2", activeTools: [], generation: { max_output_tokens: 2048 } },
|
|
282
|
+
stopWhen: ({ steps }) =>
|
|
283
|
+
steps.reduce((sum, step) => sum + (step.usage?.totalTokens ?? 0), 0) >= 10_000,
|
|
284
|
+
}),
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
Declare additional model IDs in `models` so the CLI can prepare their local routes.
|
|
288
|
+
`stepNumber` is zero-based. `prepareStep` receives current messages, available tools
|
|
289
|
+
and completed step summaries; it can also set `toolOrder`, `bodyOptions` or `stop`.
|
|
290
|
+
Model/tool/generation overrides apply only to that step. `generation` uses Core's
|
|
291
|
+
neutral snake_case keys; `bodyOptions` uses the selected protocol's raw option keys.
|
|
292
|
+
Omitted/undefined values leave provider defaults intact. `stopWhen` runs after a
|
|
293
|
+
completed tool step is committed; a final text response ends naturally. The
|
|
294
|
+
example's token threshold is checked between steps and may be exceeded by the
|
|
295
|
+
last completed call. Approval preserves selected tools/model and prior step
|
|
296
|
+
usage, then evaluates the predicate after continuation without another model call.
|
|
297
|
+
Both callbacks receive `signal`. Existing `context` strategies remain responsible
|
|
298
|
+
for replacing the durable message projection.
|
|
299
|
+
|
|
300
|
+
Final structured output accepts a convertible TS schema:
|
|
301
|
+
|
|
302
|
+
```ts
|
|
303
|
+
engine: agentCore({
|
|
304
|
+
output: z.object({ answer: z.number().int(), explanation: z.string() }),
|
|
305
|
+
}),
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
Zod 4 and libraries implementing Standard JSON Schema v1 are supported. TS converts
|
|
309
|
+
only the schema; Rust sends the protocol request, parses final JSON and validates
|
|
310
|
+
it. Consume the successful result from `message.metadata.output`. Intermediate
|
|
311
|
+
text is still a preview. Tool steps and approvals work normally, and output errors
|
|
312
|
+
retain model-call usage. TS-only refinements/transforms and lossy conversions are
|
|
313
|
+
unsupported; there is no partial-object stream or automatic repair.
|
|
314
|
+
|
|
315
|
+
This engine does not yet provide the complete AI SDK Agent/`streamText` contract.
|
|
316
|
+
The Worker engine uses built-in Rust HTTP/SSE protocols for the main model.
|
|
317
|
+
The host supplies raw fetch, credentials and scoped effects. Default compression
|
|
318
|
+
and custom context strategies remain TS hooks; `runtimeContext.model()` resolves
|
|
319
|
+
an ordinary AI SDK model lazily, and strategies can call `streamText` directly.
|
|
320
|
+
Their model features are independent of Core protocol coverage. The optional
|
|
321
|
+
Core-backed AI SDK model facade is an outward adapter. Hosted development requires
|
|
322
|
+
the matching raw proxy server for the main Core model.
|
|
323
|
+
|
|
225
324
|
A custom strategy is an object with optional `prepareStep`, `onStepEnd` and
|
|
226
325
|
`onEnd` callbacks, using the AI SDK 7 names. These callbacks replace the default
|
|
227
326
|
recipe. `prepareStep` receives durable `messages`, `contextSize`, `stepNumber`
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -25,3 +25,43 @@ from that Codex revision's `tests/fixtures/scenarios`, preserving patch and file
|
|
|
25
25
|
contents including line endings. The Worker integration tests compare actual
|
|
26
26
|
file contents and success/failure outcomes, including the upstream partial
|
|
27
27
|
success case. The fixtures share the Codex license and notice above.
|
|
28
|
+
|
|
29
|
+
## AI SDK UI stream helpers
|
|
30
|
+
|
|
31
|
+
The helpers under `src/vendor/ai-ui/` are copied from the published sources in
|
|
32
|
+
**ai@7.0.9** ([Vercel AI SDK](https://github.com/vercel/ai)), the version pinned
|
|
33
|
+
by this workspace. They are Apache-2.0 licensed; see
|
|
34
|
+
[LICENSE-APACHE](./third-party/ai-ui/LICENSE-APACHE) and
|
|
35
|
+
[NOTICE](./third-party/ai-ui/NOTICE).
|
|
36
|
+
|
|
37
|
+
Upstream paths are under `packages/ai/src/ui-message-stream/`. SHA-256 hashes
|
|
38
|
+
below identify the original npm source files before local adaptations:
|
|
39
|
+
|
|
40
|
+
| File | Upstream SHA-256 |
|
|
41
|
+
| --------------------------------- | ------------------------------------------------------------------ |
|
|
42
|
+
| `to-ui-message-chunk.ts` | `d7c2d6c85fca06cebb9eda0c1dad9c9667dd009dde8939cd46ab7b9f141b1a14` |
|
|
43
|
+
| `json-to-sse-transform-stream.ts` | `eff8b7832658d68fc2f45d3d60dceb684e1b21227f81eb179a6de17d7055a95c` |
|
|
44
|
+
| `ui-message-stream-headers.ts` | `716e62a47a325513af67a8677d973869486e9166a7c205e85ef9483628118814` |
|
|
45
|
+
|
|
46
|
+
Local adaptations: repository formatting, provenance headers, and public
|
|
47
|
+
type-only imports using the default `UIMessage` shape in the converter. The
|
|
48
|
+
conversion switch, SSE encoding and headers retain upstream behavior. The
|
|
49
|
+
vendored code imports no `ai` runtime; this keeps its Gateway/OIDC dependencies
|
|
50
|
+
out of the portable Worker fixture. Core-to-SDK event translation and execution
|
|
51
|
+
lifecycle remain in `src/experimental/agent-core-ui.ts`; the upstream Agent loop
|
|
52
|
+
is not copied. Only the Core's supported text/reasoning/JSON-tool subset is
|
|
53
|
+
exposed, even though the converter retains other upstream branches.
|
|
54
|
+
|
|
55
|
+
When upgrading, compare these three source files against the new pinned version,
|
|
56
|
+
refresh the hashes/notices and rerun the real AI SDK reader, Studio transport
|
|
57
|
+
and packaged Worker conformance fixtures before changing the pin.
|
|
58
|
+
|
|
59
|
+
## Agent Core WASM
|
|
60
|
+
|
|
61
|
+
The optional Agent Core asset is built from this repository's Apache-2.0 Rust
|
|
62
|
+
crate with Rust 1.94.1. Its Cargo dependencies are pinned in
|
|
63
|
+
`crates/agent-core/Cargo.lock`; exact-version license copies and a dependency
|
|
64
|
+
inventory ship in [third-party/agent-core](./third-party/agent-core/NOTICE).
|
|
65
|
+
This includes Serde/serde_json, httpdate, jsonschema and its validation/regex/hash
|
|
66
|
+
dependencies, plus build dependencies. The inventory records upstream repository
|
|
67
|
+
license provenance where a crate distribution omitted its license file. The Agent CLI embeds this asset into the immutable Worker bundle.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AgentCorePolicyContext, AgentCoreStepSettings, AgentCoreOutput } from "@gea-ai/contract/agent-core";
|
|
2
|
+
import type { AgentCoreToolCall } from "@gea-ai/contract/agent-core";
|
|
3
|
+
import type { AgentCoreExecutionOptions } from "@gea-ai/contract/agent-core";
|
|
4
|
+
import type { AgentCoreError } from "./experimental/agent-core";
|
|
5
|
+
import type { AgentToolApprovalDecision, AgentToolRuntimeSdk } from "./index";
|
|
6
|
+
export type AgentCoreGuardrail = (input: {
|
|
7
|
+
call: AgentCoreToolCall;
|
|
8
|
+
sdk: Pick<AgentToolRuntimeSdk, "auth" | "env" | "environment" | "identity" | "signal">;
|
|
9
|
+
}) => AgentToolApprovalDecision | Promise<AgentToolApprovalDecision>;
|
|
10
|
+
/** Executable engine binding. The immutable Agent bundle carries its WASM bytes. */
|
|
11
|
+
export interface AgentCoreEngine extends AgentCoreExecutionOptions {
|
|
12
|
+
readonly output?: AgentCoreOutput;
|
|
13
|
+
readonly kind: "agent-core";
|
|
14
|
+
readonly models?: string[];
|
|
15
|
+
readonly prepareStep?: (context: AgentCorePolicyContext & {
|
|
16
|
+
signal: AbortSignal;
|
|
17
|
+
}) => AgentCoreStepSettings | void | Promise<AgentCoreStepSettings | void>;
|
|
18
|
+
readonly stopWhen?: (context: AgentCorePolicyContext & {
|
|
19
|
+
signal: AbortSignal;
|
|
20
|
+
}) => boolean | Promise<boolean>;
|
|
21
|
+
readonly maxToolConcurrency: number;
|
|
22
|
+
readonly guardrail?: AgentCoreGuardrail;
|
|
23
|
+
readonly onError?: (event: {
|
|
24
|
+
error: AgentCoreError;
|
|
25
|
+
}) => void | Promise<void>;
|
|
26
|
+
module(): WebAssembly.Module;
|
|
27
|
+
}
|
|
28
|
+
export type { AgentCorePolicyContext, AgentCoreStepSettings, } from "@gea-ai/contract/agent-core";
|
|
29
|
+
//# sourceMappingURL=agent-core-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-core-engine.d.ts","sourceRoot":"","sources":["../src/agent-core-engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE;IACvC,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,EAAE,IAAI,CACP,mBAAmB,EACnB,MAAM,GAAG,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,CACvD,CAAC;CACH,KAAK,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAErE,oFAAoF;AACpF,MAAM,WAAW,eAAgB,SAAQ,yBAAyB;IAChE,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,CACrB,OAAO,EAAE,sBAAsB,GAAG;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,KACtD,qBAAqB,GAAG,IAAI,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IAC1E,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAClB,OAAO,EAAE,sBAAsB,GAAG;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,KACtD,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,cAAc,CAAA;KAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E,MAAM,IAAI,WAAW,CAAC,MAAM,CAAC;CAC9B;AAED,YAAY,EACV,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-core-engine.js","sourceRoot":"","sources":["../src/agent-core-engine.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StandardJSONSchemaV1 } from "@standard-schema/spec";
|
|
2
|
+
import { type AgentCoreOutput } from "@gea-ai/contract/agent-core";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
export type AgentCoreOutputSchema = z.core.$ZodType | StandardJSONSchemaV1;
|
|
5
|
+
export declare function toAgentCoreOutput(schema: AgentCoreOutputSchema): AgentCoreOutput;
|
|
6
|
+
//# sourceMappingURL=agent-core-output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-core-output.d.ts","sourceRoot":"","sources":["../src/agent-core-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,oBAAoB,CAAC;AAE3E,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,qBAAqB,GAC5B,eAAe,CAyCjB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { agentCoreOutputSchema, } from "@gea-ai/contract/agent-core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { AgentCoreError } from "./experimental/agent-core.js";
|
|
4
|
+
export function toAgentCoreOutput(schema) {
|
|
5
|
+
// This boundary converts a library contract, never parses/transforms a model
|
|
6
|
+
// result. Rust validates exactly the JSON Schema returned here.
|
|
7
|
+
try {
|
|
8
|
+
const jsonSchema = schema instanceof z.core.$ZodType
|
|
9
|
+
? z.toJSONSchema(schema, {
|
|
10
|
+
target: "draft-7",
|
|
11
|
+
io: "output",
|
|
12
|
+
unrepresentable: "throw",
|
|
13
|
+
override({ zodSchema }) {
|
|
14
|
+
const def = zodSchema._zod.def;
|
|
15
|
+
if (("coerce" in def && def.coerce) ||
|
|
16
|
+
["transform", "pipe", "default", "prefault", "catch"].includes(def.type) ||
|
|
17
|
+
def.checks?.some((check) => ["custom", "overwrite"].includes(check._zod.def.check)) ||
|
|
18
|
+
(zodSchema instanceof z.core.$ZodString &&
|
|
19
|
+
[...(zodSchema._zod.bag.patterns ?? [])].some((pattern) => pattern.flags !== "")))
|
|
20
|
+
throw new Error("Output schema contains TS-only checks or transformations");
|
|
21
|
+
},
|
|
22
|
+
})
|
|
23
|
+
: schema["~standard"].jsonSchema.output({ target: "draft-07" });
|
|
24
|
+
// Zod attaches a non-enumerable ~standard adapter to its JSON payload.
|
|
25
|
+
return agentCoreOutputSchema.parse({ schema: { ...jsonSchema } });
|
|
26
|
+
}
|
|
27
|
+
catch (cause) {
|
|
28
|
+
throw new AgentCoreError({
|
|
29
|
+
code: "invalid_config",
|
|
30
|
+
phase: "output_schema",
|
|
31
|
+
retryable: false,
|
|
32
|
+
message: `Output schema cannot be converted losslessly: ${cause instanceof Error ? cause.message : String(cause)}`,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=agent-core-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-core-output.js","sourceRoot":"","sources":["../src/agent-core-output.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,GAEtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3D,MAAM,UAAU,iBAAiB,CAC/B,MAA6B;IAE7B,6EAA6E;IAC7E,gEAAgE;IAChE,IAAI,CAAC;QACH,MAAM,UAAU,GACd,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,QAAQ;YAC/B,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE;gBACrB,MAAM,EAAE,SAAS;gBACjB,EAAE,EAAE,QAAQ;gBACZ,eAAe,EAAE,OAAO;gBACxB,QAAQ,CAAC,EAAE,SAAS,EAAE;oBACpB,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;oBAC/B,IACE,CAAC,QAAQ,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;wBAC/B,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,CAC5D,GAAG,CAAC,IAAI,CACT;wBACD,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CACzB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CACvD;wBACD,CAAC,SAAS,YAAY,CAAC,CAAC,IAAI,CAAC,UAAU;4BACrC,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAC3C,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,KAAK,EAAE,CAClC,CAAC;wBAEJ,MAAM,IAAI,KAAK,CACb,0DAA0D,CAC3D,CAAC;gBACN,CAAC;aACF,CAAC;YACJ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;QACpE,uEAAuE;QACvE,OAAO,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,GAAG,UAAU,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,cAAc,CAAC;YACvB,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,eAAe;YACtB,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE,iDAAiD,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;SACnH,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type AgentCoreOutputSchema } from "./agent-core-output";
|
|
2
|
+
export type { AgentCoreOutputSchema } from "./agent-core-output";
|
|
3
|
+
import type { AgentCoreEngine } from "./agent-core-engine";
|
|
4
|
+
export type { AgentCoreEngine, AgentCoreGuardrail } from "./agent-core-engine";
|
|
5
|
+
export type { AgentCorePolicyContext, AgentCoreStepSettings, } from "@gea-ai/contract/agent-core";
|
|
6
|
+
export { AgentCoreError } from "./experimental/agent-core";
|
|
7
|
+
/** Select the Rust/WASM loop for this Agent, retaining its existing Worker host. */
|
|
8
|
+
export declare function agentCore(options?: Omit<AgentCoreEngine, "kind" | "module" | "maxToolConcurrency" | "output"> & {
|
|
9
|
+
maxToolConcurrency?: number;
|
|
10
|
+
output?: AgentCoreOutputSchema;
|
|
11
|
+
}): AgentCoreEngine;
|
|
12
|
+
//# sourceMappingURL=agent-core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-core.d.ts","sourceRoot":"","sources":["../src/agent-core.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,YAAY,EACV,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,oFAAoF;AACpF,wBAAgB,SAAS,CACvB,OAAO,GAAE,IAAI,CACX,eAAe,EACf,MAAM,GAAG,QAAQ,GAAG,oBAAoB,GAAG,QAAQ,CACpD,GAAG;IACF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAC3B,GACL,eAAe,CAYjB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import bytes from "./agent-core.wasm";
|
|
2
|
+
import { toAgentCoreOutput, } from "./agent-core-output.js";
|
|
3
|
+
export { AgentCoreError } from "./experimental/agent-core.js";
|
|
4
|
+
let compiled;
|
|
5
|
+
/** Select the Rust/WASM loop for this Agent, retaining its existing Worker host. */
|
|
6
|
+
export function agentCore(options = {}) {
|
|
7
|
+
return {
|
|
8
|
+
...options,
|
|
9
|
+
output: options.output === undefined
|
|
10
|
+
? undefined
|
|
11
|
+
: toAgentCoreOutput(options.output),
|
|
12
|
+
kind: "agent-core",
|
|
13
|
+
maxToolConcurrency: options.maxToolConcurrency ?? 4,
|
|
14
|
+
guardrail: options.guardrail,
|
|
15
|
+
module: () => (compiled ??= new WebAssembly.Module(bytes)),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=agent-core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-core.js","sourceRoot":"","sources":["../src/agent-core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,EACL,iBAAiB,GAElB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,IAAI,QAAwC,CAAC;AAC7C,oFAAoF;AACpF,MAAM,UAAU,SAAS,CACvB,OAAO,GAMH,EAAE;IAEN,OAAO;QACL,GAAG,OAAO;QACV,MAAM,EACJ,OAAO,CAAC,MAAM,KAAK,SAAS;YAC1B,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC;QACvC,IAAI,EAAE,YAAY;QAClB,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,IAAI,CAAC;QACnD,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,KAAK,IAAI,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;KAC3D,CAAC;AACJ,CAAC"}
|
|
Binary file
|
package/dist/agent-worker.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export type AgentSessionNamespace = {
|
|
|
156
156
|
};
|
|
157
157
|
export declare function createGeaAI(host: AgentHostBinding, publicModel: string, extraBody?: Record<string, unknown>, client?: AgentModelProxyClient): Promise<LanguageModel>;
|
|
158
158
|
export declare function runAgentWorkerRequest(input: {
|
|
159
|
+
engine?: import("./agent-core-engine").AgentCoreEngine;
|
|
159
160
|
context?: false | AgentContextStrategy;
|
|
160
161
|
scopeResolver?: AgentComputerScopeResolver;
|
|
161
162
|
artifactScopeResolver?: "principal" | AgentArtifactScopeResolver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-worker.d.ts","sourceRoot":"","sources":["../src/agent-worker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-worker.d.ts","sourceRoot":"","sources":["../src/agent-worker.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAgBtD,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,KAAK,EAEV,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,iCAAiC,CAAC;AASzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAcpF,OAAO,EAML,KAAK,qBAAqB,EAC3B,MAAM,oCAAoC,CAAC;AAiB5C,OAAO,EAUL,KAAK,aAAa,EASlB,KAAK,gBAAgB,EACtB,MAAM,IAAI,CAAC;AAQZ,OAAO,EAGL,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAKL,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,SAAS,CAAC;AAiCjB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC5D,C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