@open-multi-agent/core 1.7.0 → 1.8.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 CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  <p align="center">
16
16
  <strong>From a goal to a task DAG, automatically.</strong><br/>
17
- TypeScript-native multi-agent orchestration. Three runtime dependencies.
17
+ TypeScript-native multi-agent orchestration.
18
18
  </p>
19
19
 
20
20
  <p align="center">
@@ -23,7 +23,6 @@
23
23
  <a href="./LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT License"></a>
24
24
  <a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-5.6-blue" alt="TypeScript"></a>
25
25
  <a href="https://codecov.io/gh/open-multi-agent/open-multi-agent"><img src="https://codecov.io/gh/open-multi-agent/open-multi-agent/graph/badge.svg" alt="codecov"></a>
26
- <a href="https://github.com/open-multi-agent/open-multi-agent/blob/main/package.json"><img src="https://img.shields.io/badge/runtime_deps-3-brightgreen" alt="runtime deps"></a>
27
26
  <a href="https://github.com/open-multi-agent/open-multi-agent/stargazers"><img src="https://img.shields.io/github/stars/open-multi-agent/open-multi-agent" alt="GitHub stars"></a>
28
27
  <a href="https://github.com/open-multi-agent/open-multi-agent/network/members"><img src="https://img.shields.io/github/forks/open-multi-agent/open-multi-agent" alt="GitHub forks"></a>
29
28
  </p>
@@ -40,7 +39,7 @@
40
39
 
41
40
  <br />
42
41
 
43
- `open-multi-agent` is a multi-agent orchestration framework for TypeScript backends. Give it a goal; a coordinator agent decomposes it into a task DAG, parallelizes independents, and synthesizes the result. Three runtime dependencies, drops into any Node.js backend.
42
+ `open-multi-agent` is a multi-agent orchestration framework for TypeScript backends. Give it a goal; a coordinator agent decomposes it into a task DAG, parallelizes independents, and synthesizes the result. Drops into any Node.js backend.
44
43
 
45
44
  > **Your engineers describe the goal, not the graph.**
46
45
 
@@ -54,6 +53,14 @@ Graph-first frameworks make you enumerate every node and edge up front. `open-mu
54
53
 
55
54
  Requires Node.js >= 18.
56
55
 
56
+ The fastest way to see a multi-agent run — scaffold a project and start it in one command:
57
+
58
+ ```bash
59
+ npm create oma-app@latest
60
+ ```
61
+
62
+ The first run shows the coordinator decompose one goal into a multi-agent DAG, then opens a dashboard of the run. To add the library to an existing project instead:
63
+
57
64
  ```bash
58
65
  npm install @open-multi-agent/core
59
66
  ```
@@ -63,23 +70,28 @@ npm install @open-multi-agent/core
63
70
  ```typescript
64
71
  import { OpenMultiAgent, type AgentConfig } from '@open-multi-agent/core'
65
72
 
73
+ // Works with any OpenAI-compatible provider. Set OPENAI_API_KEY for OpenAI, or
74
+ // set OPENAI_BASE_URL + OMA_MODEL for Groq, DeepSeek, Ollama, etc.
75
+ const model = process.env.OMA_MODEL ?? 'gpt-5.4'
76
+
66
77
  // Built-in tools are opt-in (default-deny): each agent gets only the tools it
67
78
  // lists in `tools` (or a `toolPreset`). List neither and the agent gets none.
68
79
  const agents: AgentConfig[] = [
69
- { name: 'architect', model: 'claude-sonnet-4-6', systemPrompt: 'Design clean API contracts.', tools: ['file_write'] },
70
- { name: 'developer', model: 'claude-sonnet-4-6', systemPrompt: 'Implement runnable TypeScript.', tools: ['bash', 'file_read', 'file_write', 'file_edit'] },
71
- { name: 'reviewer', model: 'claude-sonnet-4-6', systemPrompt: 'Review correctness and security.', tools: ['file_read', 'grep'] },
80
+ { name: 'architect', model, systemPrompt: 'Design clean API contracts.', tools: ['file_write'] },
81
+ { name: 'developer', model, systemPrompt: 'Implement runnable TypeScript.', tools: ['bash', 'file_read', 'file_write', 'file_edit'] },
82
+ { name: 'reviewer', model, systemPrompt: 'Review correctness and security.', tools: ['file_read', 'grep'] },
72
83
  ]
73
84
 
74
85
  const orchestrator = new OpenMultiAgent({
75
- defaultModel: 'claude-sonnet-4-6',
86
+ defaultProvider: 'openai',
87
+ defaultModel: model,
88
+ defaultBaseURL: process.env.OPENAI_BASE_URL, // unset = OpenAI
76
89
  onProgress: (event) => console.log(event.type, event.task ?? event.agent ?? ''),
77
90
  })
78
91
 
79
92
  const team = orchestrator.createTeam('api-team', { name: 'api-team', agents, sharedMemory: true })
80
93
 
81
94
  // Built-in filesystem tools default to a `<cwd>/.agent-workspace` sandbox.
82
- // Point the agent at an absolute path inside that root.
83
95
  const result = await orchestrator.runTeam(
84
96
  team,
85
97
  `Create a REST API for a todo list in ${process.cwd()}/.agent-workspace/todo-api/`,
@@ -93,8 +105,8 @@ console.log(result.success, result.totalTokenUsage.output_tokens)
93
105
  ```bash
94
106
  git clone https://github.com/open-multi-agent/open-multi-agent && cd open-multi-agent
95
107
  npm install
96
- export ANTHROPIC_API_KEY=sk-...
97
- npx tsx examples/basics/team-collaboration.ts
108
+ export OPENAI_API_KEY=sk-...
109
+ npx tsx packages/core/examples/basics/team-collaboration.ts
98
110
  ```
99
111
 
100
112
  Three agents collaborate on a REST API while `onProgress` streams the coordinator's task DAG:
@@ -124,7 +136,7 @@ Local models via Ollama need no API key, see [`providers/ollama`](examples/provi
124
136
  | Auto-orchestrated team | `runTeam()` | Give a goal, let the coordinator plan and execute | [`basics/team-collaboration`](examples/basics/team-collaboration.ts) |
125
137
  | Explicit pipeline | `runTasks()` | You define the task graph and assignments | [`basics/task-pipeline`](examples/basics/task-pipeline.ts) |
126
138
 
127
- For answers that need scrutiny, `runConsensus()` runs a proposer→judge verification loop (with an opt-in per-task `verify` hook). See [Consensus](./docs/consensus.md).
139
+ For answers that need scrutiny, `runConsensus()` runs a proposer→judge verification loop (with an opt-in per-task `verify` hook). See [Consensus](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/consensus.md).
128
140
 
129
141
  Preview the coordinator's task DAG without executing it, or pin that plan and replay the same graph later without another coordinator call:
130
142
 
@@ -146,7 +158,7 @@ Route orchestration phases to different models with an opt-in `modelRouting` pol
146
158
  | Capability | What you get |
147
159
  |------------|--------------|
148
160
  | **Goal-driven coordinator** | One `runTeam(team, goal)` call decomposes the goal into a task DAG, parallelizes independents, and synthesizes the result. Unassigned tasks are auto-scheduled — `dependency-first` (default), `round-robin`, `least-busy`, or `capability-match`. |
149
- | **Mix providers in one team** | 12 built-in providers plus any OpenAI-compatible endpoint (Ollama, vLLM, LM Studio, OpenRouter, Groq), mixed freely in one team. Local servers that emit tool calls as plain text are recovered by a fallback parser. ([full list](#supported-providers) · [setup](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/providers.md)) |
161
+ | **Mix providers in one team** | 13 built-in providers plus any OpenAI-compatible endpoint (Ollama, vLLM, LM Studio, OpenRouter, Groq), mixed freely in one team. Local servers that emit tool calls as plain text are recovered by a fallback parser. ([full list](#supported-providers) · [setup](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/providers.md)) |
150
162
  | **Extended thinking / reasoning** | One `thinking` config maps to Anthropic thinking, Gemini `thinkingConfig`, and OpenAI `reasoning_effort`; reasoning is streamed as events, with opt-in preservation across a provider switch. ([`cross-provider-reasoning`](examples/patterns/cross-provider-reasoning.ts)) |
151
163
  | **Tools + MCP** | 6 built-in (`bash`, `file_*`, `grep`, `glob`), all **opt-in** (default-deny — grant via `tools` / `toolPreset`), plus `delegate_to_agent` handoff (cycle + depth guards), custom tools via `defineTool()` + Zod, stdio MCP servers via `connectMCPTools()`. ([tool config](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/tool-configuration.md)) |
152
164
  | **Streaming + structured output** | Token-by-token streaming on every adapter (per-agent during team runs via `onAgentStream`); Zod-validated final answer with auto-retry on parse failure. ([`structured-output`](examples/patterns/structured-output.ts)) |
@@ -156,6 +168,7 @@ Route orchestration phases to different models with an opt-in `modelRouting` pol
156
168
  | **Configurable coordinator** | Override the coordinator's model, provider, adapter, system prompt, or tools via `runTeam(team, goal, { coordinator })`. |
157
169
  | **Observability** | `onProgress` events, `onTrace` spans, post-run HTML dashboard rendering the executed task DAG. API keys and tokens are redacted from traces, bash output, and the dashboard. ([observability guide](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/observability.md)) |
158
170
  | **Pluggable shared memory** | Default in-process KV; swap in Redis / Postgres / your own backend by implementing `MemoryStore`. ([shared memory](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/shared-memory.md)) |
171
+ | **Checkpoint & resume** | Opt-in per-run checkpointing over any `MemoryStore`: snapshot on each completed task, then `restore()` skips finished tasks to continue after a crash or restart. Best-effort saves never take the run down. ([checkpoint & resume](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/checkpoint.md)) |
159
172
  | **Sandboxed filesystem workspace** | Built-in filesystem tools are sandboxed to `<cwd>/.agent-workspace` by default; agents sharing the default configuration share this root. For per-agent isolation, set `AgentConfig.cwd`; for a different shared root, set `OrchestratorConfig.defaultCwd`; pass `null` to disable. ([sandbox config](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/tool-configuration.md)) |
160
173
 
161
174
  Production controls ([context strategies](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/context-management.md), task retry with backoff, loop detection, tool output truncation/compression) are covered in the [Production Checklist](#production-checklist).
@@ -203,9 +216,10 @@ await orchestrator.runTeam(team, goal, {
203
216
 
204
217
  `open-multi-agent` launched 2026-04-01 under MIT. Known users and integrations to date:
205
218
 
206
- ### In production
219
+ ### Built with OMA
207
220
 
208
221
  - **[temodar-agent](https://github.com/xeloxa/temodar-agent)** (~60 stars). WordPress security analysis platform by [Ali Sünbül](https://github.com/xeloxa). Uses our built-in tools (`bash`, `file_*`, `grep`) directly inside a Docker runtime. Confirmed production use.
222
+ - **[PR-Copilot](https://github.com/kidoom/PR-Copilot)**. AI pull-request review assistant by [kidoom](https://github.com/kidoom). Runs an OMA review team (coordinator + scoped reviewer agents), defines repo-context tools with `defineTool`, and adds a custom `ContextStrategy` for token-aware PR-diff compression. Public code on `@open-multi-agent/core`.
209
223
 
210
224
  Using `open-multi-agent` in production or a side project? [Open a discussion](https://github.com/open-multi-agent/open-multi-agent/discussions) and we will list it here.
211
225
 
@@ -253,10 +267,16 @@ End-to-end scenarios you can run today. Each one is a complete, opinionated work
253
267
  - [`patterns/plan-replay`](examples/patterns/plan-replay.ts): decompose a goal once with `planOnly`, serialize it with `createPlanArtifact`, then replay the same DAG via `runFromPlan` without re-running the coordinator.
254
268
  - [`integrations/trace-observability`](examples/integrations/trace-observability.ts): `onTrace` spans for LLM calls, tools, and tasks.
255
269
  - [`integrations/mcp-github`](examples/integrations/mcp-github.ts): expose an MCP server's tools to an agent via `connectMCPTools()`.
256
- - [`integrations/with-vercel-ai-sdk`](examples/integrations/with-vercel-ai-sdk/): Next.js app combining OMA `runTeam()` with AI SDK `useChat` streaming.
257
270
  - **Provider examples**: scripts under [`examples/providers/`](examples/providers/) covering hosted providers, OpenAI-compatible endpoints, and local models.
258
271
 
259
- Run any script with `npx tsx examples/<path>.ts`.
272
+ ### Full applications
273
+
274
+ Clone-and-run apps with their own `package.json`, not `npx tsx` scripts. Each embeds OMA in a real backend.
275
+
276
+ - [`integrations/express-customer-support`](examples/integrations/express-customer-support/): Express REST API. `runTasks()` behind `POST /tickets` with per-agent Zod schemas, swappable provider env vars, and HTTP error mapping. Runs on one DeepSeek key (`npm install && npm start`).
277
+ - [`integrations/with-vercel-ai-sdk`](examples/integrations/with-vercel-ai-sdk/): Next.js app. OMA `runTeam()` plus AI SDK `useChat` streaming (`npm install && npm run dev`).
278
+
279
+ Run any script with `npx tsx packages/core/examples/<path>.ts`; the full applications above use their own `npm` scripts.
260
280
 
261
281
  ## How is this different from X?
262
282
 
@@ -265,14 +285,14 @@ A quick router. Mechanism breakdown follows.
265
285
  | If you need | Pick |
266
286
  |-------------|------|
267
287
  | Fixed production topology with mature checkpointing | LangGraph JS |
268
- | Explicit Supervisor + hand-wired workflows | Mastra |
288
+ | Full-stack platform, workflows wired by hand | Mastra |
269
289
  | Python stack with mature multi-agent ecosystem | CrewAI |
270
290
  | AI app toolkit with broad model-provider support | Vercel AI SDK |
271
291
  | **TypeScript, goal to result with auto task decomposition** | **open-multi-agent** |
272
292
 
273
293
  **vs. LangGraph JS.** LangGraph compiles a declarative graph (nodes, edges, conditional routing) into an invokable. `open-multi-agent` runs a Coordinator that decomposes the goal into a task DAG at runtime, then auto-parallelizes independents. Same end (orchestrated execution), opposite directions: LangGraph is graph-first, OMA is goal-first.
274
294
 
275
- **vs. Mastra.** Both are TypeScript-native. Mastra's Supervisor pattern requires you to wire agents and workflows by hand; OMA's Coordinator does the wiring at runtime from the goal string. If the workflow is known up front, Mastra's explicitness pays off. If you'd rather not enumerate every step, OMA's `runTeam(team, goal)` is one call.
295
+ **vs. Mastra.** Both are TypeScript-native; the difference is who drives the orchestration. With Mastra you wire the workflow by hand. OMA is goal-driven: give its Coordinator a goal and it builds the task DAG at runtime, adapting the plan to the goal instead of running a graph you wired step by step. `runTeam(team, goal)` in one call.
276
296
 
277
297
  **vs. CrewAI.** CrewAI is the mature multi-agent option in Python. OMA targets TypeScript backends with three runtime dependencies and direct Node.js embedding. Roughly comparable orchestration surface; the choice is the language stack.
278
298
 
@@ -307,7 +327,7 @@ A quick router. Mechanism breakdown follows.
307
327
  │ Agent │
308
328
  │ - run() │ ┌────────────────────────┐
309
329
  │ - prompt() │───►│ LLMAdapter │
310
- │ - stream() │ │ - 12 built-in │
330
+ │ - stream() │ │ - 13 built-in │
311
331
  └────────┬──────────┘ │ providers │
312
332
  │ │ - OpenAI-compatible │
313
333
  │ │ - AI SDK bridge │
@@ -375,6 +395,7 @@ Before going live, wire up the controls that protect token spend, recover from f
375
395
  | Bound wall-clock time | `timeoutMs` per agent (aborts a run that hangs, common with local models) | `AgentConfig` |
376
396
  | Cap tool output | `maxToolOutputChars` (or per-tool `maxOutputChars`) + `compressToolResults: true` | `AgentConfig` and `defineTool()` |
377
397
  | Recover from failure | Per-task `maxRetries`, `retryDelayMs`, `retryBackoff` (exponential multiplier) | Task config used via `runTasks()` |
398
+ | Survive a crash or restart | `checkpoint` (pass a `runId` or a durable `MemoryStore`) + `restore()` to resume, skipping completed tasks | `OrchestratorConfig` / run options |
378
399
  | Hard-cap spend | `maxTokenBudget` on the orchestrator | `OrchestratorConfig` |
379
400
  | Catch stuck agents | `loopDetection` with `onLoopDetected: 'terminate'` (or a custom handler) | `AgentConfig` |
380
401
  | Trace and audit | `onTrace` to your tracing backend; persist `renderTeamRunDashboard(result)` | `OrchestratorConfig` |
@@ -388,9 +409,10 @@ Before going live, wire up the controls that protect token spend, recover from f
388
409
  - [Tool configuration](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/tool-configuration.md) — tool presets, custom tools, the filesystem sandbox, and MCP.
389
410
  - [Observability](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/observability.md) — `onProgress` events, `onTrace` spans, and the post-run dashboard.
390
411
  - [Shared memory](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/shared-memory.md) — the default store and custom `MemoryStore` backends.
412
+ - [Checkpoint & resume](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/checkpoint.md) — opt-in per-run snapshot/resume over any `MemoryStore`; survive crashes and restarts.
391
413
  - [Context management](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/context-management.md) — sliding window, summarization, compaction, and custom compressors.
392
414
  - [CLI](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/cli.md) — the JSON-first `oma` binary for shell and CI.
393
- - [Consensus](./docs/consensus.md) — the `runConsensus` proposer→judge primitive, the per-task `verify` hook, and the budget invariant.
415
+ - [Consensus](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/consensus.md) — the `runConsensus` proposer→judge primitive, the per-task `verify` hook, and the budget invariant.
394
416
  - [Model routing](https://github.com/open-multi-agent/open-multi-agent/blob/main/docs/model-routing.md) — the opt-in `modelRouting` policy: match by phase / agent / role / priority / leaf, first match wins.
395
417
 
396
418
  ## Contributing
@@ -404,7 +426,7 @@ Issues, feature requests, and PRs are welcome. Some areas where contributions wo
404
426
  ## Contributors
405
427
 
406
428
  <a href="https://github.com/open-multi-agent/open-multi-agent/graphs/contributors">
407
- <img src="https://contrib.rocks/image?repo=open-multi-agent/open-multi-agent&max=100&v=20260529" />
429
+ <img src="https://contrib.rocks/image?repo=open-multi-agent/open-multi-agent&max=100" />
408
430
  </a>
409
431
 
410
432
  <details>
@@ -419,12 +441,14 @@ Issues, feature requests, and PRs are welcome. Some areas where contributions wo
419
441
  - [@Xin-Mai](https://github.com/Xin-Mai) (output schema validation)
420
442
  - [@JasonOA888](https://github.com/JasonOA888) (AbortSignal support)
421
443
  - [@EchoOfZion](https://github.com/EchoOfZion) (coordinator skip for simple goals)
422
- - [@voidborne-d](https://github.com/voidborne-d) (OpenAI mixed content fix)
444
+ - voidborne-d (OpenAI mixed-content fix, text-tool-extractor depth fix)
423
445
  - [@NamelessNATM](https://github.com/NamelessNATM) (agent delegation base implementation)
424
446
  - [@MyPrototypeWhat](https://github.com/MyPrototypeWhat) (reasoning blocks, reasoning_effort, sampling parity, trace input/output)
425
447
  - [@SiMinus](https://github.com/SiMinus) (streaming reasoning events)
426
448
  - [@matthewYang08](https://github.com/matthewYang08) (OpenAI reasoning-to-text fallback)
427
449
  - [@dvirarad](https://github.com/dvirarad) (OpenAI-family adapter hardening)
450
+ - [@cat0825](https://github.com/cat0825) (model routing policy, plan replay, structured shared-memory handoff)
451
+ - [@mvanhorn](https://github.com/mvanhorn) (checkpoint & resume)
428
452
 
429
453
  **Provider integrations**
430
454
 
@@ -436,6 +460,8 @@ Issues, feature requests, and PRs are welcome. Some areas where contributions wo
436
460
  - [@JackChiang233](https://github.com/JackChiang233) (Qiniu)
437
461
  - [@CodingBangboo](https://github.com/CodingBangboo) (AWS Bedrock)
438
462
  - [@kidoom](https://github.com/kidoom) (MiMo, Doubao)
463
+ - [@KaitlynFeng](https://github.com/KaitlynFeng) (Hunyuan)
464
+ - [@octo-patch](https://github.com/octo-patch) (MiniMax-M3 model upgrade)
439
465
 
440
466
  **Examples & cookbook**
441
467
 
@@ -464,6 +490,8 @@ Issues, feature requests, and PRs are welcome. Some areas where contributions wo
464
490
  - [@jadegold55](https://github.com/jadegold55) (LLM adapter test coverage)
465
491
  - [@btroops](https://github.com/btroops) (DeepSeek tool-calling tests)
466
492
  - [@nuthalapativarun](https://github.com/nuthalapativarun) (context-management docs)
493
+ - [@Oxygen56](https://github.com/Oxygen56) (errors.ts tests, provider docs for Grok/DeepSeek/Doubao)
494
+ - [@RheagalFire](https://github.com/RheagalFire) (LiteLLM gateway docs)
467
495
 
468
496
  </details>
469
497
 
@@ -1 +1 @@
1
- {"version":3,"file":"render-team-run-dashboard.d.ts","sourceRoot":"","sources":["../../src/dashboard/render-team-run-dashboard.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAIhD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAwhBpE"}
1
+ {"version":3,"file":"render-team-run-dashboard.d.ts","sourceRoot":"","sources":["../../src/dashboard/render-team-run-dashboard.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAIhD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CA4hBpE"}
@@ -217,7 +217,11 @@ export function renderTeamRunDashboard(result) {
217
217
  #detailsPanel { border-left: 0; border-top: 1px solid rgba(64, 72, 93, 0.4); }
218
218
  }
219
219
  @media (min-width: 1024px) {
220
- main { flex-direction: row; }
220
+ /* A class selector (.flex-col, specificity 0,1,0) outranks a bare main
221
+ type selector (0,0,1), so this row override must also be class-level
222
+ or it never wins and the details panel stays stacked below the canvas
223
+ on desktop instead of becoming the right-hand sidebar. */
224
+ main.flex-col { flex-direction: row; }
221
225
  }
222
226
  </style>
223
227
  </head>
@@ -1 +1 @@
1
- {"version":3,"file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,SAAS,EAAE,mBAAmB;YAC9B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;KACF,CAAA;IACD,MAAM,QAAQ,GAAG,uBAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAExF,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA4Q2C,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA4PpD,CAAA;AACR,CAAC"}
package/dist/index.d.ts CHANGED
@@ -74,6 +74,7 @@ export type { SupportedProvider } from './llm/adapter.js';
74
74
  export { TokenBudgetExceededError, InvalidMessageError } from './errors.js';
75
75
  export { InMemoryStore } from './memory/store.js';
76
76
  export { SharedMemory } from './memory/shared.js';
77
- export type { ReasoningBlock, TextBlock, ToolUseBlock, ToolResultBlock, ImageBlock, ContentBlock, LLMMessage, LLMResponse, LLMAdapter, LLMChatOptions, LLMStreamOptions, LLMToolDef, TokenUsage, StreamEvent, ToolDefinition, ToolResult, ToolUseContext, AgentInfo, TeamInfo, DelegationPoolView, AgentConfig, AgentState, AgentRunResult, BeforeRunHookContext, ToolCallRecord, LoopDetectionConfig, LoopDetectionInfo, ContextStrategy, TeamConfig, TeamRunResult, RunTeamOptions, RunTasksOptions, ModelRouteConfig, ModelRoutingMatch, ModelRoutingRule, ModelRoutingPolicy, PlanArtifact, PlanTaskArtifact, ConsensusOptions, ConsensusVerifyOptions, ConsensusResult, TaskExecutionMetrics, TaskExecutionRecord, Task, TaskStatus, OrchestratorConfig, OrchestratorEvent, CoordinatorConfig, TraceEventType, TraceEventBase, TraceEvent, LLMCallTrace, ToolCallTrace, TaskTrace, AgentTrace, PlanReadyTrace, AgentStreamTrace, ConsensusTrace, MemoryEntry, MemoryStore, SharedMemoryEntry, SharedMemoryValue, SharedMemoryWriteOptions, } from './types.js';
77
+ export { Checkpoint, CHECKPOINT_KEY_PREFIX, DEFAULT_CHECKPOINT_KEY, checkpointKey, isCheckpointKey, } from './memory/checkpoint.js';
78
+ export type { ReasoningBlock, TextBlock, ToolUseBlock, ToolResultBlock, ImageBlock, ContentBlock, LLMMessage, LLMResponse, LLMAdapter, LLMChatOptions, LLMStreamOptions, LLMToolDef, TokenUsage, StreamEvent, ToolDefinition, ToolResult, ToolUseContext, AgentInfo, TeamInfo, DelegationPoolView, AgentConfig, AgentState, AgentRunResult, BeforeRunHookContext, ToolCallRecord, LoopDetectionConfig, LoopDetectionInfo, ContextStrategy, TeamConfig, TeamRunResult, RunTeamOptions, RunTasksOptions, RunTaskSpec, RestoreOptions, ModelRouteConfig, ModelRoutingMatch, ModelRoutingRule, ModelRoutingPolicy, PlanArtifact, PlanTaskArtifact, ConsensusOptions, ConsensusVerifyOptions, ConsensusResult, TaskExecutionMetrics, TaskExecutionRecord, Task, TaskStatus, OrchestratorConfig, OrchestratorEvent, CoordinatorConfig, CheckpointOptions, CheckpointSnapshot, CompletedTaskCheckpoint, TaskQueueSnapshot, TaskSnapshot, TraceEventType, TraceEventBase, TraceEvent, LLMCallTrace, ToolCallTrace, TaskTrace, AgentTrace, PlanReadyTrace, AgentStreamTrace, ConsensusTrace, MemoryEntry, MemoryStore, MemoryEntrySnapshot, SharedMemorySnapshot, SharedMemoryEntry, SharedMemoryValue, SharedMemoryWriteOptions, } from './types.js';
78
79
  export { generateRunId } from './utils/trace.js';
79
80
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAMH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACpG,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAErE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAA;AAMjF,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,gCAAgC,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC5G,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAMjD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,YAAY,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAMlD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,s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,QAAQ,EACR,kBAAkB,EAGlB,WAAW,EACX,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EAGf,UAAU,EACV,aAAa,EACb,cAAc,EACd,eAAe,EACf,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAGhB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EAGf,oBAAoB,EACpB,mBAAmB,EAGnB,IAAI,EACJ,UAAU,EAGV,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,EAGZ,cAAc,EACd,cAAc,EACd,UAAU,EACV,YAAY,EACZ,aAAa,EACb,SAAS,EACT,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,cAAc,EAGd,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA"}
package/dist/index.js CHANGED
@@ -88,5 +88,6 @@ export { TokenBudgetExceededError, InvalidMessageError } from './errors.js';
88
88
  // ---------------------------------------------------------------------------
89
89
  export { InMemoryStore } from './memory/store.js';
90
90
  export { SharedMemory } from './memory/shared.js';
91
+ export { Checkpoint, CHECKPOINT_KEY_PREFIX, DEFAULT_CHECKPOINT_KEY, checkpointKey, isCheckpointKey, } from './memory/checkpoint.js';
91
92
  export { generateRunId } from './utils/trace.js';
92
93
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AO,EAAE,UAAU,EAAE,WAAW,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAG1G,8EAA8E;AAC9E,cAAc;AACd,8EAA8E;AAE9E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC/E,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAErE,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,gCAAgC,EAChC,QAAQ,EACR,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,QAAQ,GACT,MAAM,0BAA0B,CAAA;AAGjC,8EAA8E;AAC9E,eAAe;AACf,8EAA8E;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAE3E,8EAA8E;AAC9E,SAAS;AACT,8EAA8E;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,eAAe,GAChB,MAAM,wBAAwB,CAAA;AAsG/B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA"}
@@ -34,7 +34,7 @@ export declare class BedrockAdapter implements LLMAdapter {
34
34
  #private;
35
35
  readonly name = "bedrock";
36
36
  readonly capabilities: {
37
- echoesReasoning: "never";
37
+ echoesReasoning: "own-issued";
38
38
  };
39
39
  constructor(region?: string);
40
40
  chat(messages: LLMMessage[], options: LLMChatOptions): Promise<LLMResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"bedrock.d.ts","sourceRoot":"","sources":["../../src/llm/bedrock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GA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,CAAC,WAAW,CAAC;IA6C1E,MAAM,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,gBAAgB,GAAG,aAAa,CAAC,WAAW,CAAC;CA8J7F;AAED,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,CAAA"}
@@ -43,13 +43,12 @@ function base64ToUint8Array(b64) {
43
43
  * Convert a single framework {@link ContentBlock} into a Bedrock
44
44
  * {@link BedrockContentBlock} for the messages array.
45
45
  *
46
- * Reasoning blocks are converted via the shared cross-provider fallback
47
- * (see #223): dropped silently by default; emitted as a standalone text
48
- * block wrapped in `<thinking>...</thinking>` when
49
- * {@link LLMChatOptions.preserveReasoningAsText} is `true`. Native echo
50
- * (which would require writing the signature into Bedrock's
51
- * `reasoningContent.reasoningText.signature` shape) is still pending —
52
- * see {@link BedrockAdapter.capabilities} for the gating rationale.
46
+ * Reasoning blocks with Bedrock provenance and a signature are echoed
47
+ * natively via `reasoningContent.reasoningText.{text,signature}`. Redacted
48
+ * blocks with Bedrock provenance are echoed via `reasoningContent.redactedContent`.
49
+ * All other reasoning blocks (foreign provenance, no signature) fall back to
50
+ * the cross-provider `<thinking>` text path when `preserveReasoningAsText` is
51
+ * set, or are dropped silently.
53
52
  */
54
53
  function toBedrockContentBlock(block, outboundOptions) {
55
54
  switch (block.type) {
@@ -81,9 +80,18 @@ function toBedrockContentBlock(block, outboundOptions) {
81
80
  };
82
81
  }
83
82
  case 'reasoning': {
84
- // Capability is `'never'` (see BedrockAdapter.capabilities) — all
85
- // reasoning falls back to text when the user opts in, regardless of
86
- // provenance. When opt-in is off, drop silently (today's default).
83
+ if (block.provenance === 'bedrock') {
84
+ if (block.redactedData !== undefined) {
85
+ return {
86
+ reasoningContent: { redactedContent: base64ToUint8Array(block.redactedData) },
87
+ };
88
+ }
89
+ if (block.signature !== undefined) {
90
+ return {
91
+ reasoningContent: { reasoningText: { text: block.text, signature: block.signature } },
92
+ };
93
+ }
94
+ }
87
95
  if (outboundOptions?.preserveReasoningAsText !== true)
88
96
  return null;
89
97
  const maxChars = resolveReasoningOutboundMaxChars(outboundOptions);
@@ -156,9 +164,19 @@ function fromBedrockContentBlock(block) {
156
164
  }
157
165
  if (block.reasoningContent !== undefined) {
158
166
  const r = block.reasoningContent;
167
+ if (r.redactedContent !== undefined) {
168
+ const reasoning = {
169
+ type: 'reasoning',
170
+ text: '',
171
+ redactedData: Buffer.from(r.redactedContent).toString('base64'),
172
+ provenance: 'bedrock',
173
+ };
174
+ return reasoning;
175
+ }
159
176
  const reasoning = {
160
177
  type: 'reasoning',
161
178
  text: r.reasoningText?.text ?? '',
179
+ ...(r.reasoningText?.signature !== undefined ? { signature: r.reasoningText.signature } : {}),
162
180
  provenance: 'bedrock',
163
181
  };
164
182
  return reasoning;
@@ -186,17 +204,7 @@ function buildInferenceConfig(options) {
186
204
  export class BedrockAdapter {
187
205
  name = 'bedrock';
188
206
  capabilities = {
189
- // Held at 'never' until BOTH legs of the round-trip carry Bedrock's
190
- // `reasoningContent.reasoningText.signature`:
191
- // 1. inbound (toBedrockContentBlock 'reasoning' case): does not
192
- // extract the signature into the IR today, so even after the
193
- // outbound TODO lands there'd be no signature to send back.
194
- // 2. outbound (toBedrockContentBlock 'reasoning' case TODO): does
195
- // not write the signature onto the wire format.
196
- // Upgrading this field to 'own-issued' requires both follow-ups; doing
197
- // only one would still silently break Bedrock's multi-turn extended
198
- // thinking protocol.
199
- echoesReasoning: 'never',
207
+ echoesReasoning: 'own-issued',
200
208
  };
201
209
  #client;
202
210
  constructor(region) {
@@ -263,9 +271,10 @@ export class BedrockAdapter {
263
271
  }
264
272
  // Accumulate tool-use input JSON deltas; keyed by content block index.
265
273
  const toolBuffers = new Map();
266
- // Accumulate reasoning text deltas; keyed by content block index. Each
267
- // index becomes one ReasoningBlock in the final `done` payload, matching
268
- // what `chat()` produces for the same response shape.
274
+ // Accumulate reasoning text, signature, and redactedContent deltas; keyed
275
+ // by content block index. Each index becomes one ReasoningBlock in the
276
+ // final `done` payload, matching what `chat()` produces for the same
277
+ // response shape.
269
278
  const reasoningBuffers = new Map();
270
279
  // Accumulated content blocks for the done event.
271
280
  const accumulatedContent = [];
@@ -304,6 +313,18 @@ export class BedrockAdapter {
304
313
  buf.text += text;
305
314
  reasoningBuffers.set(index, buf);
306
315
  }
316
+ else if (delta.reasoningContent?.signature !== undefined) {
317
+ const sig = delta.reasoningContent.signature;
318
+ const buf = reasoningBuffers.get(index) ?? { text: '' };
319
+ buf.signature = sig;
320
+ reasoningBuffers.set(index, buf);
321
+ }
322
+ else if (delta.reasoningContent?.redactedContent !== undefined) {
323
+ const redactedContent = delta.reasoningContent.redactedContent;
324
+ const buf = reasoningBuffers.get(index) ?? { text: '' };
325
+ buf.redactedContent = redactedContent;
326
+ reasoningBuffers.set(index, buf);
327
+ }
307
328
  }
308
329
  if (event.contentBlockStop !== undefined) {
309
330
  const index = event.contentBlockStop.contentBlockIndex ?? 0;
@@ -312,6 +333,10 @@ export class BedrockAdapter {
312
333
  const reasoningBlock = {
313
334
  type: 'reasoning',
314
335
  text: reasoningBuf.text,
336
+ ...(reasoningBuf.signature !== undefined ? { signature: reasoningBuf.signature } : {}),
337
+ ...(reasoningBuf.redactedContent !== undefined
338
+ ? { redactedData: Buffer.from(reasoningBuf.redactedContent).toString('base64') }
339
+ : {}),
315
340
  provenance: 'bedrock',
316
341
  };
317
342
  accumulatedContent.push(reasoningBlock);
@@ -353,7 +378,15 @@ export class BedrockAdapter {
353
378
  // block, flush whatever we buffered so the done payload still matches
354
379
  // what chat() would have returned for the same response.
355
380
  for (const [, buf] of reasoningBuffers) {
356
- accumulatedContent.push({ type: 'reasoning', text: buf.text, provenance: 'bedrock' });
381
+ accumulatedContent.push({
382
+ type: 'reasoning',
383
+ text: buf.text,
384
+ ...(buf.signature !== undefined ? { signature: buf.signature } : {}),
385
+ ...(buf.redactedContent !== undefined
386
+ ? { redactedData: Buffer.from(buf.redactedContent).toString('base64') }
387
+ : {}),
388
+ provenance: 'bedrock',
389
+ });
357
390
  }
358
391
  reasoningBuffers.clear();
359
392
  const finalResponse = {
@@ -1 +1 @@
1
- {"version":3,"file":"bedrock.js","sourceRoot":"","sources":["../../src/llm/bedrock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,qBAAqB,GACtB,MAAM,iCAAiC,CAAA;AAwBxC,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,GAEjC,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAEnD,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E,MAAM,oBAAoB,GAAoD;IAC5E,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,KAAK;IAClB,YAAY,EAAE,MAAM;CACrB,CAAA;AAED,SAAS,kBAAkB,CAAC,GAAW;IACrC,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;AACnC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAS,qBAAqB,CAC5B,KAAmB,EACnB,eAAqD;IAErD,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,MAAM;YACT,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAA;QAE7B,KAAK,UAAU;YACb,4EAA4E;YAC5E,OAAO;gBACL,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;aAChD,CAAA;QAE1B,KAAK,aAAa,CAAC,CAAC,CAAC;YACnB,MAAM,UAAU,GA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checkpoint persistence over the public MemoryStore API.
3
+ *
4
+ * Checkpoints are stored as JSON under a reserved key namespace. The module
5
+ * intentionally depends only on {@link MemoryStore}, so in-memory, Redis,
6
+ * SQLite, or any custom backend work without extra hooks.
7
+ */
8
+ import type { CheckpointOptions, CheckpointSnapshot, MemoryStore } from '../types.js';
9
+ export declare const CHECKPOINT_KEY_PREFIX = "__oma_checkpoint__/";
10
+ export declare const DEFAULT_CHECKPOINT_KEY = "__oma_checkpoint__/latest";
11
+ export declare function checkpointKey(runId?: string): string;
12
+ export declare function isCheckpointKey(key: string): boolean;
13
+ export declare class Checkpoint {
14
+ private readonly store;
15
+ readonly key: string;
16
+ private readonly runId;
17
+ constructor(store: MemoryStore, options?: Pick<CheckpointOptions, 'key' | 'runId'>);
18
+ /** Persist `snapshot` as the latest checkpoint. */
19
+ save(snapshot: CheckpointSnapshot): Promise<void>;
20
+ /** Load the latest checkpoint, or `null` when no checkpoint exists. */
21
+ loadLatest(): Promise<CheckpointSnapshot | null>;
22
+ /** Alias for {@link loadLatest}. */
23
+ load(): Promise<CheckpointSnapshot | null>;
24
+ /** Delete the persisted checkpoint key. */
25
+ delete(): Promise<void>;
26
+ private static isSnapshot;
27
+ }
28
+ //# sourceMappingURL=checkpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkpoint.d.ts","sourceRoot":"","sources":["../../src/memory/checkpoint.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAMrF,eAAO,MAAM,qBAAqB,wBAAwB,CAAA;AAC1D,eAAO,MAAM,sBAAsB,8BAAmC,CAAA;AAMtE,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAGpD;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEpD;AAMD,qBAAa,UAAU;IAKnB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoB;gBAGvB,KAAK,EAAE,WAAW,EACnC,OAAO,GAAE,IAAI,CAAC,iBAAiB,EAAE,KAAK,GAAG,OAAO,CAAM;IAMxD,mDAAmD;IAC7C,IAAI,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAevD,uEAAuE;IACjE,UAAU,IAAI,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAiBtD,oCAAoC;IAC9B,IAAI,IAAI,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAIhD,2CAA2C;IACrC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B,OAAO,CAAC,MAAM,CAAC,UAAU;CAa1B"}