network-ai 5.1.3 → 5.2.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.
Files changed (47) hide show
  1. package/INTEGRATION_GUIDE.md +8 -5
  2. package/QUICKSTART.md +7 -4
  3. package/README.md +20 -12
  4. package/dist/adapters/hermes-adapter.d.ts +114 -0
  5. package/dist/adapters/hermes-adapter.d.ts.map +1 -0
  6. package/dist/adapters/hermes-adapter.js +217 -0
  7. package/dist/adapters/hermes-adapter.js.map +1 -0
  8. package/dist/adapters/index.d.ts +4 -0
  9. package/dist/adapters/index.d.ts.map +1 -1
  10. package/dist/adapters/index.js +7 -1
  11. package/dist/adapters/index.js.map +1 -1
  12. package/dist/adapters/rlm-adapter.d.ts +103 -0
  13. package/dist/adapters/rlm-adapter.d.ts.map +1 -0
  14. package/dist/adapters/rlm-adapter.js +167 -0
  15. package/dist/adapters/rlm-adapter.js.map +1 -0
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/lib/adapter-hooks.d.ts +12 -1
  20. package/dist/lib/adapter-hooks.d.ts.map +1 -1
  21. package/dist/lib/adapter-hooks.js +7 -1
  22. package/dist/lib/adapter-hooks.js.map +1 -1
  23. package/dist/lib/blackboard-validator.d.ts +27 -0
  24. package/dist/lib/blackboard-validator.d.ts.map +1 -1
  25. package/dist/lib/blackboard-validator.js +49 -0
  26. package/dist/lib/blackboard-validator.js.map +1 -1
  27. package/dist/lib/fan-out.d.ts +3 -0
  28. package/dist/lib/fan-out.d.ts.map +1 -1
  29. package/dist/lib/fan-out.js +66 -50
  30. package/dist/lib/fan-out.js.map +1 -1
  31. package/dist/lib/federated-budget.d.ts +29 -0
  32. package/dist/lib/federated-budget.d.ts.map +1 -1
  33. package/dist/lib/federated-budget.js +46 -0
  34. package/dist/lib/federated-budget.js.map +1 -1
  35. package/dist/lib/goal-decomposer.d.ts +23 -0
  36. package/dist/lib/goal-decomposer.d.ts.map +1 -1
  37. package/dist/lib/goal-decomposer.js +49 -2
  38. package/dist/lib/goal-decomposer.js.map +1 -1
  39. package/dist/lib/locked-blackboard.d.ts +37 -0
  40. package/dist/lib/locked-blackboard.d.ts.map +1 -1
  41. package/dist/lib/locked-blackboard.js +52 -0
  42. package/dist/lib/locked-blackboard.js.map +1 -1
  43. package/dist/lib/phase-pipeline.d.ts +43 -0
  44. package/dist/lib/phase-pipeline.d.ts.map +1 -1
  45. package/dist/lib/phase-pipeline.js +49 -0
  46. package/dist/lib/phase-pipeline.js.map +1 -1
  47. package/package.json +3 -4
@@ -64,7 +64,7 @@ Answers drive `AuthGuardian` configuration and audit log retention policy.
64
64
 
65
65
  ## 2. Framework Mapping
66
66
 
67
- Network-AI ships 27 adapters. Map your existing agents to the right one:
67
+ Network-AI ships 29 adapters. Map your existing agents to the right one:
68
68
 
69
69
  | Your Stack | Network-AI Adapter | Notes |
70
70
  |-----------|-------------------|-------|
@@ -91,6 +91,9 @@ Network-AI ships 27 adapters. Map your existing agents to the right one:
91
91
  | Google Vertex AI / Gemini | `VertexAIAdapter` | Function calling, multi-modal (text+image) |
92
92
  | Pydantic AI | `PydanticAIAdapter` | Structured output with validation, deps injection |
93
93
  | Browser automation | `BrowserAgentAdapter` | Playwright/Puppeteer/CDP browser control |
94
+ | NousResearch Hermes / OpenAI-compatible | `HermesAdapter` | Ollama, Together AI, Fireworks, llama.cpp |
95
+ | Hierarchical multi-orchestrator | `OrchestratorAdapter` | Nested orchestrator coordination |
96
+ | RLM-compatible HTTP endpoint | `RLMAdapter` | Recursive Language Model servers (arxiv 2512.24601); BYOC client |
94
97
  | **Anything else** | `CustomAdapter` | Wrap any async function or HTTP endpoint |
95
98
 
96
99
  ### No matching framework?
@@ -412,11 +415,11 @@ Run these before declaring the integration production-ready:
412
415
  - [ ] All agents execute via the adapter registry without errors
413
416
  - [ ] `npx ts-node test-standalone.ts` — 88 core tests pass
414
417
  - [ ] `npx ts-node test-security.ts` — 34 security tests pass
415
- - [ ] `npx ts-node test-adapters.ts` — 206 adapter tests pass
418
+ - [ ] `npx ts-node test-adapters.ts` — 218 adapter tests pass
416
419
  - [ ] `npx ts-node test-phase4.ts` — 147 behavioral tests pass
417
420
  - [ ] `npx ts-node test-qa.ts` — 67 QA orchestrator tests pass
418
421
  - [ ] `npx ts-node test-phase7.ts` — 94 Phase 7 tests pass (hooks, flow control, composer, semantic search)
419
- - [ ] `npm run test:all` — all 2,699 tests pass across 26 suites
422
+ - [ ] `npm run test:all` — all 2,711 tests pass across 26 suites
420
423
  - [ ] `npm run demo -- --08` runs to completion in < 10 seconds
421
424
 
422
425
  ### Race Condition Safety
@@ -474,7 +477,7 @@ Run these before declaring the integration production-ready:
474
477
  |----------|---------------|
475
478
  | [QUICKSTART.md](QUICKSTART.md) | Get running in 5 minutes |
476
479
  | [QUICKSTART.md § CLI](QUICKSTART.md) | CLI reference — bb, auth, budget, audit commands |
477
- | [references/adapter-system.md](references/adapter-system.md) | All 27 adapters with code examples |
480
+ | [references/adapter-system.md](references/adapter-system.md) | All 28 adapters with code examples |
478
481
  | [references/trust-levels.md](references/trust-levels.md) | Trust scoring formula and agent roles |
479
482
  | [references/auth-guardian.md](references/auth-guardian.md) | Permission system, justification scoring, token lifecycle |
480
483
  | [references/blackboard-schema.md](references/blackboard-schema.md) | Blackboard key conventions and namespacing |
@@ -484,4 +487,4 @@ Run these before declaring the integration production-ready:
484
487
 
485
488
  ---
486
489
 
487
- *Network-AI v5.1.3 · MIT License · https://github.com/Jovancoding/Network-AI*
490
+ *Network-AI v5.1.4 · MIT License · https://github.com/Jovancoding/Network-AI*
package/QUICKSTART.md CHANGED
@@ -18,7 +18,7 @@ npm install
18
18
  npx ts-node setup.ts --check
19
19
  ```
20
20
 
21
- **Zero external AI dependencies.** All 27 adapters are self-contained — add framework SDKs only when you need them.
21
+ **Zero external AI dependencies.** All 28 adapters are self-contained — add framework SDKs only when you need them.
22
22
 
23
23
  ---
24
24
 
@@ -50,6 +50,9 @@ npx ts-node setup.ts --check
50
50
  | `vertex-ai` | Vertex AI / Gemini | `@google-cloud/vertexai` | Function calling, multi-modal |
51
51
  | `pydantic-ai` | Pydantic AI | none | Structured output with validation |
52
52
  | `browser-agent` | Browser Automation | none | Playwright/Puppeteer/CDP browser control |
53
+ | `hermes` | NousResearch Hermes / OpenAI-compatible | none | Ollama, Together AI, Fireworks, llama.cpp |
54
+ | `orchestrator` | Hierarchical multi-orchestrator | none | Nested orchestrator coordination |
55
+ | `rlm` | RLM-compatible HTTP endpoint | none | Recursive Language Model servers (BYOC client) |
53
56
 
54
57
  ---
55
58
 
@@ -251,7 +254,7 @@ export class MyFrameworkAdapter extends BaseAdapter {
251
254
  ```bash
252
255
  npx ts-node test-standalone.ts # 88 core tests
253
256
  npx ts-node test-security.ts # 34 security tests
254
- npx ts-node test-adapters.ts # 206 adapter tests (all 27 frameworks)
257
+ npx ts-node test-adapters.ts # 218 adapter tests (all 28 frameworks)
255
258
  npx ts-node test-cli.ts # 65 CLI tests
256
259
  npx ts-node test-qa.ts # 67 QA orchestrator tests
257
260
  ```
@@ -262,7 +265,7 @@ npx ts-node test-qa.ts # 67 QA orchestrator tests
262
265
 
263
266
  ```bash
264
267
  npx ts-node setup.ts --check # Verify installation
265
- npx ts-node setup.ts --list # List all 27 adapters
268
+ npx ts-node setup.ts --list # List all 28 adapters
266
269
  npx ts-node setup.ts --example # Generate example.ts
267
270
  ```
268
271
 
@@ -619,7 +622,7 @@ import SwarmOrchestrator, {
619
622
  // Factory
620
623
  import { createSwarmOrchestrator } from 'network-ai';
621
624
 
622
- // All 27 adapters
625
+ // All 28 adapters
623
626
  import {
624
627
  AdapterRegistry, BaseAdapter,
625
628
  OpenClawAdapter, LangChainAdapter, AutoGenAdapter,
package/README.md CHANGED
@@ -5,10 +5,10 @@
5
5
  [![Website](https://img.shields.io/badge/website-network--ai.org-4b9df2?style=flat&logo=web&logoColor=white)](https://network-ai.org/)
6
6
  [![CI](https://github.com/Jovancoding/Network-AI/actions/workflows/ci.yml/badge.svg)](https://github.com/Jovancoding/Network-AI/actions/workflows/ci.yml)
7
7
  [![CodeQL](https://github.com/Jovancoding/Network-AI/actions/workflows/codeql.yml/badge.svg)](https://github.com/Jovancoding/Network-AI/actions/workflows/codeql.yml)
8
- [![Release](https://img.shields.io/badge/release-v5.1.3-blue.svg)](https://github.com/Jovancoding/Network-AI/releases)
8
+ [![Release](https://img.shields.io/badge/release-v5.2.0-blue.svg)](https://github.com/Jovancoding/Network-AI/releases)
9
9
  [![npm](https://img.shields.io/npm/dw/network-ai.svg?label=npm%20downloads)](https://www.npmjs.com/package/network-ai)
10
- [![Tests](https://img.shields.io/badge/tests-2699%20passing-brightgreen.svg)](#testing)
11
- [![Adapters](https://img.shields.io/badge/frameworks-27%20supported-blueviolet.svg)](#adapter-system)
10
+ [![Tests](https://img.shields.io/badge/tests-2834%20passing-brightgreen.svg)](#testing)
11
+ [![Adapters](https://img.shields.io/badge/frameworks-29%20supported-blueviolet.svg)](#adapter-system)
12
12
  [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)
13
13
  [![Socket](https://socket.dev/api/badge/npm/package/network-ai)](https://socket.dev/npm/package/network-ai/overview)
14
14
  [![Node.js](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg)](https://nodejs.org)
@@ -31,7 +31,7 @@ Network-AI is a TypeScript/Node.js multi-agent orchestrator that adds coordinati
31
31
 
32
32
  - **Shared blackboard with locking** — atomic `propose → validate → commit` prevents race conditions and split-brain failures across parallel agents
33
33
  - **Guardrails and budgets** — FSM governance, per-agent token ceilings, HMAC / Ed25519 audit trails, and permission gating
34
- - **27 adapters** — LangChain (+ streaming), AutoGen, CrewAI, OpenAI Assistants, LlamaIndex, Semantic Kernel, Haystack, DSPy, Agno, MCP, Custom (+ streaming), OpenClaw, A2A, Codex, MiniMax, NemoClaw, APS, Copilot, LangGraph, Anthropic Computer Use, OpenAI Agents SDK, Vertex AI, Pydantic AI, Browser Agent, and Orchestrator (hierarchical multi-orchestrator) — no glue code, no lock-in
34
+ - **29 adapters** — LangChain (+ streaming), AutoGen, CrewAI, OpenAI Assistants, LlamaIndex, Semantic Kernel, Haystack, DSPy, Agno, MCP, Custom (+ streaming), OpenClaw, A2A, Codex, MiniMax, NemoClaw, APS, Copilot, LangGraph, Anthropic Computer Use, OpenAI Agents SDK, Vertex AI, Pydantic AI, Browser Agent, Hermes (NousResearch Hermes / any OpenAI-compatible endpoint), Orchestrator (hierarchical multi-orchestrator), and RLM (Recursive Language Model / any RLM-compatible HTTP endpoint) — no glue code, no lock-in
35
35
  - **Persistent project memory (Layer 3)** — `context_manager.py` injects decisions, goals, stack, milestones, and banned patterns into every system prompt so agents always have full project context
36
36
  - **v5.0 modules** — Agent VCR (record/replay), comparison runner, coverage reporter, goal DSL, approval inbox, job queue, gRPC/HTTP transport, playground REPL, adapter test harness, and more
37
37
 
@@ -90,7 +90,7 @@ Runs priority preemption, AuthGuardian permission gating, FSM governance, and co
90
90
  | ✅ Token budgets | Hard per-agent ceilings with live spend tracking |
91
91
  | ✅ Permission gating | HMAC / Ed25519-signed tokens, scoped per agent and resource |
92
92
  | ✅ Append-only audit log | Every write, grant, and transition signed and logged |
93
- | ✅ 27 framework adapters | LangChain, CrewAI, AutoGen, MCP, Codex, APS, and 21 more — zero lock-in |
93
+ | ✅ 29 framework adapters | LangChain, CrewAI, AutoGen, MCP, Codex, APS, RLM, and 22 more — zero lock-in |
94
94
  | ✅ FSM governance | Hard-stop agents at state boundaries, timeout enforcement |
95
95
  | ✅ Compliance monitoring | Real-time violation detection (tool abuse, turn-taking, timeouts) |
96
96
  | ✅ QA orchestration | Scenario replay, feedback loops, regression tracking, contradiction detection |
@@ -129,7 +129,7 @@ Runs priority preemption, AuthGuardian permission gating, FSM governance, and co
129
129
  | Race conditions in parallel agents | Atomic blackboard: `propose → validate → commit` with file-system mutex |
130
130
  | Agent overspend / runaway costs | `FederatedBudget` — hard per-agent token ceilings with live spend tracking |
131
131
  | No visibility into what agents did | HMAC / Ed25519-signed audit log on every write, permission grant, and FSM transition |
132
- | Locked into one AI framework | 27 adapters — mix LangChain + AutoGen + CrewAI + Codex + MiniMax + NemoClaw + APS + LangGraph + Vertex AI + custom in one swarm |
132
+ | Locked into one AI framework | 29 adapters — mix LangChain + AutoGen + CrewAI + Codex + MiniMax + NemoClaw + APS + LangGraph + Vertex AI + Hermes + RLM + custom in one swarm |
133
133
  | Agents escalating beyond their scope | `AuthGuardian` — scoped permission tokens required before sensitive operations |
134
134
  | Agents lack project context between runs | `ProjectContextManager` (Layer 3) — inject decisions, goals, stack, and milestones into every system prompt |
135
135
  | No regression tracking on agent output quality | `QAOrchestratorAgent` — scenario replay, feedback loops, cross-agent contradiction detection, historical trend tracking |
@@ -350,7 +350,7 @@ npx ts-node examples/10-nemoclaw-sandbox-swarm.ts
350
350
 
351
351
  ## Adapter System
352
352
 
353
- 27 adapters, zero adapter dependencies. You bring your own SDK objects.
353
+ 28 adapters, zero adapter dependencies. You bring your own SDK objects.
354
354
 
355
355
  | Adapter | Framework / Protocol | Register method |
356
356
  |---|---|---|
@@ -378,7 +378,9 @@ npx ts-node examples/10-nemoclaw-sandbox-swarm.ts
378
378
  | `VertexAIAdapter` | Google Vertex AI / Gemini (function calling, multi-modal) | `registerAgent(name, config)` |
379
379
  | `PydanticAIAdapter` | Pydantic AI (structured output, validation, deps injection) | `registerAgent(name, config)` |
380
380
  | `BrowserAgentAdapter` | Browser automation (Playwright/Puppeteer/CDP) | `registerAgent(name, driver)` |
381
+ | `HermesAdapter` | NousResearch Hermes / any OpenAI-compatible endpoint (Ollama, Together AI, Fireworks, llama.cpp) | `registerAgent(name, config)` |
381
382
  | `OrchestratorAdapter` | Hierarchical multi-orchestrator coordination | `registerOrchestrator(id, orchestrator)` |
383
+ | `RLMAdapter` | Recursive Language Model / any RLM-compatible HTTP endpoint (arxiv 2512.24601) | `registerAgent(name, config)` |
382
384
 
383
385
  **Streaming variants** (drop-in replacements with `.stream()` support):
384
386
 
@@ -397,7 +399,7 @@ Extend `BaseAdapter` (or `StreamingBaseAdapter` for streaming) to add your own i
397
399
 
398
400
  | Capability | Network-AI | LangGraph | CrewAI | AutoGen |
399
401
  |---|---|---|---|---|
400
- | Cross-framework agents in one swarm | ✅ 27 built-in adapters | ⚠️ Nodes can call any code; no adapter abstraction | ⚠️ Extensible via tools; CrewAI-native agents only | ⚠️ Extensible via plugins; AutoGen-native agents only |
402
+ | Cross-framework agents in one swarm | ✅ 28 built-in adapters | ⚠️ Nodes can call any code; no adapter abstraction | ⚠️ Extensible via tools; CrewAI-native agents only | ⚠️ Extensible via plugins; AutoGen-native agents only |
401
403
  | Atomic shared state (conflict-safe) | ✅ `propose → validate → commit` mutex | ⚠️ State passed between nodes; last-write-wins | ⚠️ Shared memory available; no conflict resolution | ⚠️ Shared context available; no conflict resolution |
402
404
  | Hard token ceiling per agent | ✅ `FederatedBudget` (first-class API) | ⚠️ Via callbacks / custom middleware | ⚠️ Via callbacks / custom middleware | ⚠️ Built-in token tracking in v0.4+; no swarm-level ceiling |
403
405
  | Permission gating before sensitive ops | ✅ `AuthGuardian` (built-in) | ⚠️ Possible via custom node logic | ⚠️ Possible via custom tools | ⚠️ Possible via custom middleware |
@@ -413,7 +415,7 @@ Extend `BaseAdapter` (or `StreamingBaseAdapter` for streaming) to add your own i
413
415
  npm run test:all # All suites in sequence
414
416
  npm test # Core orchestrator
415
417
  npm run test:security # Security module
416
- npm run test:adapters # All 27 adapters
418
+ npm run test:adapters # All 28 adapters
417
419
  npm run test:streaming # Streaming adapters
418
420
  npm run test:a2a # A2A protocol adapter
419
421
  npm run test:codex # Codex adapter
@@ -423,7 +425,7 @@ npm run test:phase9 # Agent runtime, console, strategy agent
423
425
  npm run test:phase10 # Goal decomposer, task DAG, runTeam
424
426
  ```
425
427
 
426
- **2,699 passing assertions across 26 test suites** (`npm run test:all`):
428
+ **2,834 passing assertions across 27 test suites** (`npm run test:all`):
427
429
 
428
430
  | Suite | Assertions | Covers |
429
431
  |---|---|---|
@@ -431,7 +433,7 @@ npm run test:phase10 # Goal decomposer, task DAG, runTeam
431
433
  | `test-phase5f.ts` | 127 | SSE transport, `McpCombinedBridge`, extended MCP tools |
432
434
  | `test-phase5g.ts` | 121 | CRDT backend, vector clocks, bidirectional sync |
433
435
  | `test-phase6.ts` | 121 | MCP server, control-plane tools, audit tools |
434
- | `test-adapters.ts` | 206 | All 27 adapters, registry routing, integration, edge cases |
436
+ | `test-adapters.ts` | 218 | All 28 adapters, registry routing, integration, edge cases |
435
437
  | `test-phase5d.ts` | 117 | Pluggable backend (Redis, CRDT, Memory) |
436
438
  | `test-standalone.ts` | 88 | Blackboard, auth, integration, persistence, parallelisation, quality gate |
437
439
  | `test-phase5e.ts` | 87 | Federated budget tracking |
@@ -452,6 +454,7 @@ npm run test:phase10 # Goal decomposer, task DAG, runTeam
452
454
  | `test-phase9.ts` | 280 | Agent runtime, sandbox policy, shell executor, file accessor, approval gate, console UI, orchestrator wiring, pipe mode, strategy agent |
453
455
  | `test-phase10.ts` | 153 | Goal decomposer, task DAG validation, topological layers, JSON parsing, team runner, concurrency, timeouts, events, runTeam one-liner, dependency injection, LLM planner |
454
456
  | `test-topology.ts` | 304 | WorkTree, ControlPlane, dashboard server, topology visualization, WebSocket protocol |
457
+ | `test-rlm-phases.ts` | 123 | FederatedBudget child spending, blackboard metadata API, best-partial result, HookContext depth, sub-goal recursion, semaphore fan-out, PhasePipeline compaction, RLMAdapter end-to-end |
455
458
  | `test.ts` | 39 | Core orchestrator smoke tests |
456
459
 
457
460
  ---
@@ -468,7 +471,7 @@ npm run test:phase10 # Goal decomposer, task DAG, runTeam
468
471
  | [AUDIT_LOG_SCHEMA.md](AUDIT_LOG_SCHEMA.md) | Audit log field reference, all event types, scoring formula |
469
472
  | [ADOPTERS.md](ADOPTERS.md) | Known adopters — open a PR to add yourself |
470
473
  | [INTEGRATION_GUIDE.md](INTEGRATION_GUIDE.md) | End-to-end integration walkthrough with v5.0 modules |
471
- | [references/adapter-system.md](references/adapter-system.md) | Adapter architecture, all 27 adapters, writing custom adapters |
474
+ | [references/adapter-system.md](references/adapter-system.md) | Adapter architecture, all 28 adapters, writing custom adapters |
472
475
  | [references/auth-guardian.md](references/auth-guardian.md) | Permission scoring, resource types, IAuthValidator interface |
473
476
  | [references/trust-levels.md](references/trust-levels.md) | Trust level configuration, APS delegation-chain mapping |
474
477
 
@@ -522,3 +525,8 @@ MIT License — [LICENSE](LICENSE) &nbsp;·&nbsp; [CHANGELOG](CHANGELOG.md) &nbs
522
525
  multi-agent · agent orchestration · AI agents · agentic AI · agentic workflow · TypeScript · Node.js · LangGraph · CrewAI · AutoGen · MCP · model-context-protocol · LlamaIndex · Semantic Kernel · OpenAI Assistants · Haystack · DSPy · Agno · OpenClaw · ClawHub · shared state · blackboard pattern · atomic commits · guardrails · token budgets · permission gating · audit trail · agent coordination · agent handoffs · governance · cost-awareness
523
526
 
524
527
  </details>
528
+
529
+ ## Download History
530
+
531
+ [![Download History](https://skill-history.com/chart/jovancoding/network-ai.svg)](https://skill-history.com/jovancoding/network-ai)
532
+
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Hermes Adapter (NousResearch Hermes)
3
+ *
4
+ * Integrates NousResearch Hermes models (Hermes-3, Hermes-2, etc.) with the
5
+ * SwarmOrchestrator. Hermes runs via Ollama, llama.cpp, Together AI, Fireworks,
6
+ * or any OpenAI-compatible endpoint — BYOC, no hard dependency.
7
+ *
8
+ * Usage — Ollama (local):
9
+ * const adapter = new HermesAdapter();
10
+ * adapter.registerAgent('assistant', {
11
+ * model: 'hermes3',
12
+ * baseUrl: 'http://localhost:11434/v1',
13
+ * systemPrompt: 'You are a helpful assistant.',
14
+ * });
15
+ *
16
+ * Usage — Together AI / Fireworks (hosted):
17
+ * adapter.registerAgent('reasoner', {
18
+ * model: 'NousResearch/Hermes-3-Llama-3.1-70B',
19
+ * baseUrl: 'https://api.together.xyz/v1',
20
+ * apiKey: process.env.TOGETHER_API_KEY,
21
+ * });
22
+ *
23
+ * Usage — bring-your-own OpenAI-compatible client:
24
+ * adapter.registerAgent('coder', {
25
+ * model: 'hermes3:8b',
26
+ * client: openaiInstance.chat.completions,
27
+ * });
28
+ *
29
+ * @module HermesAdapter
30
+ * @version 1.0.0
31
+ */
32
+ import { BaseAdapter } from './base-adapter';
33
+ import type { AdapterConfig, AdapterCapabilities, AgentPayload, AgentContext, AgentResult } from '../types/agent-adapter';
34
+ /**
35
+ * Minimal interface for an OpenAI-compatible chat completions client.
36
+ * Pass any SDK instance that implements this — no hard dependency on openai.
37
+ */
38
+ export interface HermesChatClient {
39
+ create(params: {
40
+ model: string;
41
+ messages: Array<{
42
+ role: string;
43
+ content: string;
44
+ }>;
45
+ max_tokens?: number;
46
+ temperature?: number;
47
+ stop?: string[];
48
+ }): Promise<{
49
+ choices: Array<{
50
+ message?: {
51
+ content?: string | null;
52
+ };
53
+ text?: string;
54
+ }>;
55
+ usage?: {
56
+ prompt_tokens?: number;
57
+ completion_tokens?: number;
58
+ total_tokens?: number;
59
+ };
60
+ }>;
61
+ }
62
+ /** Configuration for a registered Hermes agent */
63
+ export interface HermesAgentConfig {
64
+ /**
65
+ * Model name — Ollama tag or hosted model ID.
66
+ * Examples: 'hermes3', 'hermes3:8b', 'NousResearch/Hermes-3-Llama-3.1-70B'
67
+ * Default: 'hermes3'
68
+ */
69
+ model?: string;
70
+ /**
71
+ * Base URL for the OpenAI-compatible endpoint.
72
+ * Default: 'http://localhost:11434/v1' (Ollama local)
73
+ */
74
+ baseUrl?: string;
75
+ /**
76
+ * API key — required for hosted providers (Together AI, Fireworks, etc.).
77
+ * Falls back to HERMES_API_KEY env var. Ollama local needs no key.
78
+ */
79
+ apiKey?: string;
80
+ /** System-level prompt prepended to every request */
81
+ systemPrompt?: string;
82
+ /** Maximum tokens in the completion (default: 2048) */
83
+ maxTokens?: number;
84
+ /** Sampling temperature, 0–2 (default: 0.7) */
85
+ temperature?: number;
86
+ /** Stop sequences */
87
+ stop?: string[];
88
+ /**
89
+ * Bring-your-own OpenAI-compatible chat completions instance.
90
+ * When supplied, baseUrl / apiKey are ignored.
91
+ */
92
+ client?: HermesChatClient;
93
+ /** Additional request headers for the built-in fetch transport */
94
+ headers?: Record<string, string>;
95
+ /** Request timeout in milliseconds (default: 120000) */
96
+ timeout?: number;
97
+ }
98
+ export declare class HermesAdapter extends BaseAdapter {
99
+ readonly name = "hermes";
100
+ readonly version = "1.0.0";
101
+ private agents;
102
+ get capabilities(): AdapterCapabilities;
103
+ /**
104
+ * Register a Hermes agent with the given configuration.
105
+ *
106
+ * @param agentId - Unique identifier used to route tasks to this agent
107
+ * @param config - Model, endpoint, system prompt, and optional BYOC client
108
+ */
109
+ registerAgent(agentId: string, config: HermesAgentConfig): void;
110
+ executeAgent(agentId: string, payload: AgentPayload, _context: AgentContext): Promise<AgentResult>;
111
+ initialize(config: AdapterConfig): Promise<void>;
112
+ shutdown(): Promise<void>;
113
+ }
114
+ //# sourceMappingURL=hermes-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hermes-adapter.d.ts","sourceRoot":"","sources":["../../adapters/hermes-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAMhC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,MAAM,EAAE;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACnD,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI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G,IAAI;IAezD,YAAY,CAChB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,YAAY,GACrB,OAAO,CAAC,WAAW,CAAC;IAqEjB,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAIhC"}
@@ -0,0 +1,217 @@
1
+ "use strict";
2
+ /**
3
+ * Hermes Adapter (NousResearch Hermes)
4
+ *
5
+ * Integrates NousResearch Hermes models (Hermes-3, Hermes-2, etc.) with the
6
+ * SwarmOrchestrator. Hermes runs via Ollama, llama.cpp, Together AI, Fireworks,
7
+ * or any OpenAI-compatible endpoint — BYOC, no hard dependency.
8
+ *
9
+ * Usage — Ollama (local):
10
+ * const adapter = new HermesAdapter();
11
+ * adapter.registerAgent('assistant', {
12
+ * model: 'hermes3',
13
+ * baseUrl: 'http://localhost:11434/v1',
14
+ * systemPrompt: 'You are a helpful assistant.',
15
+ * });
16
+ *
17
+ * Usage — Together AI / Fireworks (hosted):
18
+ * adapter.registerAgent('reasoner', {
19
+ * model: 'NousResearch/Hermes-3-Llama-3.1-70B',
20
+ * baseUrl: 'https://api.together.xyz/v1',
21
+ * apiKey: process.env.TOGETHER_API_KEY,
22
+ * });
23
+ *
24
+ * Usage — bring-your-own OpenAI-compatible client:
25
+ * adapter.registerAgent('coder', {
26
+ * model: 'hermes3:8b',
27
+ * client: openaiInstance.chat.completions,
28
+ * });
29
+ *
30
+ * @module HermesAdapter
31
+ * @version 1.0.0
32
+ */
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.HermesAdapter = void 0;
35
+ const base_adapter_1 = require("./base-adapter");
36
+ // ---------------------------------------------------------------------------
37
+ // Helpers
38
+ // ---------------------------------------------------------------------------
39
+ /** Build the user prompt string from an AgentPayload */
40
+ function buildPrompt(payload) {
41
+ const parts = [];
42
+ const instruction = payload.handoff?.instruction;
43
+ if (instruction)
44
+ parts.push(instruction);
45
+ if (payload.action)
46
+ parts.push(`Task: ${payload.action}`);
47
+ if (payload.params && Object.keys(payload.params).length > 0) {
48
+ parts.push(`Parameters: ${JSON.stringify(payload.params, null, 2)}`);
49
+ }
50
+ if (payload.blackboardSnapshot && Object.keys(payload.blackboardSnapshot).length > 0) {
51
+ const relevant = Object.entries(payload.blackboardSnapshot)
52
+ .slice(0, 10)
53
+ .map(([k, v]) => `${k}: ${JSON.stringify(v)}`)
54
+ .join('\n');
55
+ parts.push(`Context:\n${relevant}`);
56
+ }
57
+ return parts.join('\n\n') || 'Complete the task.';
58
+ }
59
+ /** Resolve API key from config then environment */
60
+ function resolveApiKey(config) {
61
+ return config.apiKey ?? process.env['HERMES_API_KEY'] ?? '';
62
+ }
63
+ /**
64
+ * Built-in fetch-based OpenAI-compatible completion.
65
+ * Used when no `client` is supplied.
66
+ */
67
+ async function fetchCompletion(config, messages) {
68
+ const baseUrl = (config.baseUrl ?? 'http://localhost:11434/v1').replace(/\/$/, '');
69
+ const url = `${baseUrl}/chat/completions`;
70
+ const apiKey = resolveApiKey(config);
71
+ const headers = {
72
+ 'Content-Type': 'application/json',
73
+ ...(apiKey ? { Authorization: `Bearer ${apiKey}` } : {}),
74
+ ...(config.headers ?? {}),
75
+ };
76
+ const body = JSON.stringify({
77
+ model: config.model ?? 'hermes3',
78
+ messages,
79
+ ...(config.maxTokens !== undefined ? { max_tokens: config.maxTokens } : {}),
80
+ ...(config.temperature !== undefined ? { temperature: config.temperature } : {}),
81
+ ...(config.stop?.length ? { stop: config.stop } : {}),
82
+ });
83
+ const controller = new AbortController();
84
+ const timeoutMs = config.timeout ?? 120_000;
85
+ const timer = setTimeout(() => controller.abort(), timeoutMs);
86
+ try {
87
+ const res = await fetch(url, { method: 'POST', headers, body, signal: controller.signal });
88
+ if (!res.ok) {
89
+ const text = await res.text().catch(() => '');
90
+ throw new Error(`Hermes API error ${res.status}: ${text}`);
91
+ }
92
+ const json = await res.json();
93
+ const content = json.choices?.[0]?.message?.content ?? '';
94
+ const usage = json.usage
95
+ ? {
96
+ prompt_tokens: json.usage.prompt_tokens ?? 0,
97
+ completion_tokens: json.usage.completion_tokens ?? 0,
98
+ total_tokens: json.usage.total_tokens ?? 0,
99
+ }
100
+ : undefined;
101
+ return { content, ...(usage ? { usage } : {}) };
102
+ }
103
+ finally {
104
+ clearTimeout(timer);
105
+ }
106
+ }
107
+ // ---------------------------------------------------------------------------
108
+ // Adapter
109
+ // ---------------------------------------------------------------------------
110
+ class HermesAdapter extends base_adapter_1.BaseAdapter {
111
+ name = 'hermes';
112
+ version = '1.0.0';
113
+ agents = new Map();
114
+ get capabilities() {
115
+ return {
116
+ streaming: false,
117
+ parallel: true,
118
+ bidirectional: false,
119
+ discovery: true,
120
+ authentication: false,
121
+ statefulSessions: false,
122
+ };
123
+ }
124
+ /**
125
+ * Register a Hermes agent with the given configuration.
126
+ *
127
+ * @param agentId - Unique identifier used to route tasks to this agent
128
+ * @param config - Model, endpoint, system prompt, and optional BYOC client
129
+ */
130
+ registerAgent(agentId, config) {
131
+ if (!agentId || typeof agentId !== 'string') {
132
+ throw new Error('HermesAdapter.registerAgent: agentId must be a non-empty string');
133
+ }
134
+ this.agents.set(agentId, { config });
135
+ this.registeredAgents.set(agentId, {
136
+ id: agentId,
137
+ name: agentId,
138
+ description: `Hermes agent — model: ${config.model ?? 'hermes3'}`,
139
+ adapter: 'hermes',
140
+ capabilities: ['text-generation', 'reasoning', 'instruction-following'],
141
+ status: 'available',
142
+ });
143
+ }
144
+ async executeAgent(agentId, payload, _context) {
145
+ if (!this.ready) {
146
+ return { success: false, error: { code: 'NOT_INITIALIZED', message: 'HermesAdapter not initialized', recoverable: false } };
147
+ }
148
+ const entry = this.agents.get(agentId);
149
+ if (!entry) {
150
+ return { success: false, error: { code: 'AGENT_NOT_FOUND', message: `Hermes agent not found: ${agentId}`, recoverable: false } };
151
+ }
152
+ const { config } = entry;
153
+ const prompt = buildPrompt(payload);
154
+ const messages = [];
155
+ if (config.systemPrompt) {
156
+ messages.push({ role: 'system', content: config.systemPrompt });
157
+ }
158
+ messages.push({ role: 'user', content: prompt });
159
+ try {
160
+ let content;
161
+ let usage;
162
+ if (config.client) {
163
+ // BYOC path
164
+ const resp = await config.client.create({
165
+ model: config.model ?? 'hermes3',
166
+ messages,
167
+ ...(config.maxTokens !== undefined ? { max_tokens: config.maxTokens } : {}),
168
+ ...(config.temperature !== undefined ? { temperature: config.temperature } : {}),
169
+ ...(config.stop?.length ? { stop: config.stop } : {}),
170
+ });
171
+ content = resp.choices[0]?.message?.content ?? resp.choices[0]?.text ?? '';
172
+ if (resp.usage) {
173
+ usage = {
174
+ prompt_tokens: resp.usage.prompt_tokens ?? 0,
175
+ completion_tokens: resp.usage.completion_tokens ?? 0,
176
+ total_tokens: resp.usage.total_tokens ?? 0,
177
+ };
178
+ }
179
+ }
180
+ else {
181
+ // Built-in fetch path
182
+ const result = await fetchCompletion(config, messages);
183
+ content = result.content;
184
+ usage = result.usage;
185
+ }
186
+ return {
187
+ success: true,
188
+ data: {
189
+ response: content,
190
+ model: config.model ?? 'hermes3',
191
+ agentId,
192
+ ...(usage ? { usage } : {}),
193
+ },
194
+ };
195
+ }
196
+ catch (err) {
197
+ return {
198
+ success: false,
199
+ error: {
200
+ code: 'EXECUTION_ERROR',
201
+ message: err instanceof Error ? err.message : String(err),
202
+ recoverable: true,
203
+ nativeError: err,
204
+ },
205
+ };
206
+ }
207
+ }
208
+ async initialize(config) {
209
+ await super.initialize(config);
210
+ }
211
+ async shutdown() {
212
+ this.agents.clear();
213
+ await super.shutdown();
214
+ }
215
+ }
216
+ exports.HermesAdapter = HermesAdapter;
217
+ //# sourceMappingURL=hermes-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hermes-adapter.js","sourceRoot":"","sources":["../../adapters/hermes-adapter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;AAEH,iDAA6C;AAwE7C,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AAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;oBACzD,WAAW,EAAE,IAAI;oBACjB,WAAW,EAAE,GAAG;iBACjB;aACF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,MAAqB;QACpC,MAAM,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACpB,MAAM,KAAK,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;CACF;AAtHD,sCAsHC"}
@@ -60,6 +60,8 @@ export { NemoClawAdapter } from './nemoclaw-adapter';
60
60
  export type { NemoClawAgentConfig, OpenShellExecutor, BlueprintAction, BlueprintRunResult, SandboxState, SandboxStatus, NetworkPolicy, PolicyEndpoint, } from './nemoclaw-adapter';
61
61
  export { CopilotAdapter } from './copilot-adapter';
62
62
  export type { CopilotTaskType, CopilotOptions, CopilotConnection } from './copilot-adapter';
63
+ export { HermesAdapter } from './hermes-adapter';
64
+ export type { HermesAgentConfig, HermesChatClient } from './hermes-adapter';
63
65
  export { LangGraphAdapter } from './langgraph-adapter';
64
66
  export type { LangGraphRunnable, LangGraphStreamable, LangGraphAgentConfig } from './langgraph-adapter';
65
67
  export { AnthropicComputerUseAdapter } from './anthropic-computer-use-adapter';
@@ -74,6 +76,8 @@ export { BrowserAgentAdapter } from './browser-agent-adapter';
74
76
  export type { BrowserMode, BrowserStep, BrowserActionResult, BrowserDriver, BrowserAgentConfig, } from './browser-agent-adapter';
75
77
  export { OrchestratorAdapter } from './orchestrator-adapter';
76
78
  export type { ChildOrchestratorConfig, OrchestratorLike, ChildOrchestratorState, } from './orchestrator-adapter';
79
+ export { RLMAdapter } from './rlm-adapter';
80
+ export type { RLMAgentConfig, RLMHttpClient } from './rlm-adapter';
77
81
  export type { StreamingChunk, IStreamingAdapter, StreamCollector } from '../types/streaming-adapter';
78
82
  export type { IAgentAdapter, AgentPayload, AgentContext, AgentResult, AgentInfo, AdapterConfig, AdapterCapabilities, AdapterRoute, RegistryConfig, AdapterEvent, AdapterEventHandler, AdapterEventType, } from '../types/agent-adapter';
79
83
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../adapters/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAClE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,qBA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Y,EACZ,WAAW,EACX,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC"}
@@ -20,7 +20,7 @@
20
20
  * @version 1.0.0
21
21
  */
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.OrchestratorAdapter = exports.BrowserAgentAdapter = exports.PydanticAIAdapter = exports.VertexAIAdapter = exports.OpenAIAgentsAdapter = exports.AnthropicComputerUseAdapter = exports.LangGraphAdapter = exports.CopilotAdapter = exports.NemoClawAdapter = exports.APSAdapter = exports.MiniMaxAdapter = exports.CodexAdapter = exports.A2AAdapter = exports.CustomStreamingAdapter = exports.LangChainStreamingAdapter = exports.collectStream = exports.StreamingBaseAdapter = exports.AgnoAdapter = exports.DSPyAdapter = exports.HaystackAdapter = exports.OpenAIAssistantsAdapter = exports.SemanticKernelAdapter = exports.LlamaIndexAdapter = exports.CustomAdapter = exports.MCPAdapter = exports.CrewAIAdapter = exports.AutoGenAdapter = exports.LangChainAdapter = exports.OpenClawAdapter = exports.getRegistry = exports.AdapterRegistry = exports.BaseAdapter = void 0;
23
+ exports.RLMAdapter = exports.OrchestratorAdapter = exports.BrowserAgentAdapter = exports.PydanticAIAdapter = exports.VertexAIAdapter = exports.OpenAIAgentsAdapter = exports.AnthropicComputerUseAdapter = exports.LangGraphAdapter = exports.HermesAdapter = exports.CopilotAdapter = exports.NemoClawAdapter = exports.APSAdapter = exports.MiniMaxAdapter = exports.CodexAdapter = exports.A2AAdapter = exports.CustomStreamingAdapter = exports.LangChainStreamingAdapter = exports.collectStream = exports.StreamingBaseAdapter = exports.AgnoAdapter = exports.DSPyAdapter = exports.HaystackAdapter = exports.OpenAIAssistantsAdapter = exports.SemanticKernelAdapter = exports.LlamaIndexAdapter = exports.CustomAdapter = exports.MCPAdapter = exports.CrewAIAdapter = exports.AutoGenAdapter = exports.LangChainAdapter = exports.OpenClawAdapter = exports.getRegistry = exports.AdapterRegistry = exports.BaseAdapter = void 0;
24
24
  // Core infrastructure
25
25
  var base_adapter_1 = require("./base-adapter");
26
26
  Object.defineProperty(exports, "BaseAdapter", { enumerable: true, get: function () { return base_adapter_1.BaseAdapter; } });
@@ -79,6 +79,9 @@ Object.defineProperty(exports, "NemoClawAdapter", { enumerable: true, get: funct
79
79
  // Copilot adapter (GitHub Copilot — code generation, review, analysis)
80
80
  var copilot_adapter_1 = require("./copilot-adapter");
81
81
  Object.defineProperty(exports, "CopilotAdapter", { enumerable: true, get: function () { return copilot_adapter_1.CopilotAdapter; } });
82
+ // Hermes adapter (NousResearch Hermes — Ollama / OpenAI-compatible endpoint, BYOC)
83
+ var hermes_adapter_1 = require("./hermes-adapter");
84
+ Object.defineProperty(exports, "HermesAdapter", { enumerable: true, get: function () { return hermes_adapter_1.HermesAdapter; } });
82
85
  // LangGraph adapter (LangChain stateful graph execution)
83
86
  var langgraph_adapter_1 = require("./langgraph-adapter");
84
87
  Object.defineProperty(exports, "LangGraphAdapter", { enumerable: true, get: function () { return langgraph_adapter_1.LangGraphAdapter; } });
@@ -100,4 +103,7 @@ Object.defineProperty(exports, "BrowserAgentAdapter", { enumerable: true, get: f
100
103
  // Orchestrator adapter (hierarchical multi-orchestrator coordination)
101
104
  var orchestrator_adapter_1 = require("./orchestrator-adapter");
102
105
  Object.defineProperty(exports, "OrchestratorAdapter", { enumerable: true, get: function () { return orchestrator_adapter_1.OrchestratorAdapter; } });
106
+ // RLM adapter (Recursive Language Model — arxiv 2512.24601)
107
+ var rlm_adapter_1 = require("./rlm-adapter");
108
+ Object.defineProperty(exports, "RLMAdapter", { enumerable: true, get: function () { return rlm_adapter_1.RLMAdapter; } });
103
109
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../adapters/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,sBAAsB;AACtB,+CAA6C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