@zhixuan92/multi-model-agent-core 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @zhixuan92/multi-model-agent-core
|
|
2
2
|
|
|
3
|
-
**Runtime library for multi-model-agent.** Import it to run multi-provider agent tasks directly from your own Node program — same routing, supervision, and review pipeline,
|
|
3
|
+
**Runtime library for multi-model-agent.** Import it to run multi-provider agent tasks directly from your own Node program — same routing, supervision, and review pipeline, without the HTTP server.
|
|
4
4
|
|
|
5
|
-
> **
|
|
5
|
+
> **Want the standalone service instead?** Install [`@zhixuan92/multi-model-agent`](https://www.npmjs.com/package/@zhixuan92/multi-model-agent) — it wraps this library in a local HTTP daemon with client-installable skills for Claude Code, Gemini CLI, Codex CLI, and Cursor.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -36,21 +36,25 @@ for (const r of results) {
|
|
|
36
36
|
- **Routing engine** — capability filter → agent type → cheapest qualifier
|
|
37
37
|
- **`runTasks`** — parallel dispatch, returns per-task results with usage, cost, files touched, status, and escalation log
|
|
38
38
|
- **Reviewed lifecycle** — spec review + quality review by a different agent, auto-commit of file changes, file artifact verification
|
|
39
|
-
- **
|
|
39
|
+
- **Executors** — pure `execute<Tool>(ctx, input)` functions for delegate, audit, review, verify, debug, execute-plan, retry (used by the HTTP server package)
|
|
40
|
+
- **Tool schemas** — Zod-validated input shapes for each tool, exportable via `./tool-schemas/*`
|
|
41
|
+
- **BatchRegistry** — server-wide state machine for pending / awaiting_clarification / complete / failed / expired batches with context-block refcount pinning
|
|
40
42
|
- **Sandboxed tools** — `readFile`, `writeFile`, `grep`, `glob`, `listFiles`, `runShell` with `cwd-only` confinement
|
|
41
43
|
|
|
42
44
|
## Subpath exports
|
|
43
45
|
|
|
44
46
|
| Subpath | What |
|
|
45
47
|
|---|---|
|
|
46
|
-
| `./config/schema` | `parseConfig`, `multiModelConfigSchema` |
|
|
47
|
-
| `./config/load` | `loadConfigFromFile` |
|
|
48
|
+
| `./config/schema` | `parseConfig`, `multiModelConfigSchema`, `serverConfigSchema` |
|
|
49
|
+
| `./config/load` | `loadConfigFromFile`, `loadAuthToken` |
|
|
48
50
|
| `./routing/resolve-agent` | `resolveAgent` — resolves agent type to provider |
|
|
49
51
|
| `./routing/model-profiles` | Model cost/tier profiles |
|
|
50
52
|
| `./provider` | `createProvider` factory |
|
|
51
53
|
| `./run-tasks` | `runTasks` parallel dispatcher, `RunTasksOptions` |
|
|
52
54
|
| `./heartbeat` | `HeartbeatTimer` — periodic progress heartbeat emitter |
|
|
53
55
|
| `./types` | All shared types |
|
|
56
|
+
| `./executors` | Pure `execute<Tool>(ctx, input)` functions and `ExecutionContext` type |
|
|
57
|
+
| `./tool-schemas` | Zod input/output schemas for each tool |
|
|
54
58
|
| `./intake/pipeline` | `runIntakePipeline` — compile → infer → classify → resolve |
|
|
55
59
|
| `./intake/types` | `DraftTask`, `Source`, `IntakeResult`, `ClarificationEntry` |
|
|
56
60
|
| `./intake/classify` | `classifyDraft` — deterministic classification heuristic |
|
|
@@ -87,7 +91,7 @@ Optionally set `diagnostics.logDir` to override the default log directory:
|
|
|
87
91
|
|
|
88
92
|
When `diagnostics.logDir` is omitted, logs default to `~/.multi-model/logs/`.
|
|
89
93
|
|
|
90
|
-
When enabled, the
|
|
94
|
+
When enabled, the diagnostic logger appends JSONL records to `mmagent-YYYY-MM-DD.jsonl` in append mode.
|
|
91
95
|
|
|
92
96
|
Only crash/disconnect diagnostic events are logged: `startup`, `request_start`, `request_complete`, `shutdown`, and `error`. This is a crash-diagnosis log, not a progress feed.
|
|
93
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhixuan92/multi-model-agent-core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Core library for multi-model-agent: provider runners (Claude, Codex, OpenAI-compatible), routing logic, config schema, and tool/sandbox primitives.",
|