wayang-ai 0.5.1 → 0.6.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 +17 -15
- package/dist/cli.js +1974 -256
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,7 +90,8 @@ Or create `~/.wayang.config.json` manually:
|
|
|
90
90
|
"my-model": {
|
|
91
91
|
"endpoint": "https://api.anthropic.com",
|
|
92
92
|
"modelName": "claude-sonnet-4-20250514",
|
|
93
|
-
"apiKey": "xxx"
|
|
93
|
+
"apiKey": "xxx",
|
|
94
|
+
"contextWindowTokens": 200000
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
"controller": { "provider": "my-model" },
|
|
@@ -100,10 +101,12 @@ Or create `~/.wayang.config.json` manually:
|
|
|
100
101
|
|
|
101
102
|
API key can be set via config or the `WAYANG_LLM_API_KEY` environment variable.
|
|
102
103
|
|
|
103
|
-
|
|
104
|
+
`contextWindowTokens` (optional, per provider) is the model's context window in tokens: the input budget the prompt must fit into, not the protocol's `max_tokens` output cap. The controller compacts the conversation once it reaches 90% of this budget. It defaults to 256000; set it explicitly for smaller-window models (e.g. `128000`), otherwise the provider rejects requests before compaction triggers. With env-only configuration use `WAYANG_CONTEXT_WINDOW_TOKENS`.
|
|
105
|
+
|
|
106
|
+
Workers default to `"toolChoice": "auto"` — the model decides whether to call a tool, since thinking endpoints (DeepSeek/GLM) reject `tool_choice: "required"` with HTTP 400. On endpoints that support it, set `"required"` to force a tool call every step, so a worker always finishes via its `done`/`fail` tools:
|
|
104
107
|
|
|
105
108
|
```json
|
|
106
|
-
"worker": { "provider": "my-model", "maxConcurrency": 3, "toolChoice": "
|
|
109
|
+
"worker": { "provider": "my-model", "maxConcurrency": 3, "toolChoice": "required" }
|
|
107
110
|
```
|
|
108
111
|
|
|
109
112
|
### Run
|
|
@@ -222,20 +225,19 @@ CI runs lint + unit + build + e2e on every push and pull request.
|
|
|
222
225
|
|
|
223
226
|
## Roadmap
|
|
224
227
|
|
|
225
|
-
|
|
228
|
+
**Vision:** evolve from a multi-agent CLI into a **multi-agent collaboration workbench**. The themes below are ordered by priority, not locked to specific versions — scope shifts as real usage feeds back.
|
|
229
|
+
|
|
230
|
+
1. **Collaboration core** — structured planning (`plan` / `replan`), task groups & dependencies with topology-aware dispatch, human-readable task IDs (`WAY-N`), git worktree isolation so multiple workers can edit one repo in parallel, worker-to-worker channel, cross-session backlog
|
|
231
|
+
2. **Execution power** — MCP tool mounting, richer built-in tools (git, code navigation, web fetch), per-worker tool allowlists & skill packs, long-session hardening
|
|
232
|
+
3. **Open integration** — ACP client: run Gemini CLI, Claude Code, Codex CLI, and OpenCode as workers over the Agent Client Protocol
|
|
233
|
+
4. **Workbench WebUI** — chat, task board, approval center, and worker session replay in the browser, with terminal and browser connected at the same time; lands once the collaboration core gives it a rich data model
|
|
234
|
+
5. **Always-on & remote** — daemon mode with scheduled backlog ("perpetual" mode, human-in-the-loop), secure remote access, notifications
|
|
235
|
+
6. **Memory & quality loop** — workspace knowledge base, searchable task archive, review worker, tests as the definition of done
|
|
236
|
+
7. **Ecosystem** — worker plugin protocol + scaffolding, community skill directory, sandboxing, distribution
|
|
226
237
|
|
|
227
|
-
|
|
228
|
-
| --- | --- | --- |
|
|
229
|
-
| 0.5 ✅ | Architecture foundation | Headless logic process + RPC (stdio/WS) + e2e test harness + CI |
|
|
230
|
-
| 0.6 | Workbench MVP | WebUI (chat / task board / approval center) + human-readable task IDs (`WAY-N`) |
|
|
231
|
-
| 0.7 | Collaboration core | Task groups, dependencies, structured planning, git worktree isolation, worker-to-worker channel |
|
|
232
|
-
| 0.8 | Open integration | ACP client — connect Gemini CLI, Claude Code, Codex, OpenCode as workers |
|
|
233
|
-
| 0.9 | Execution power | MCP tool mounting, richer built-in tools, hardening |
|
|
234
|
-
| 0.10 | Always-on & remote | Daemon, remote access, notifications, scheduled backlog ("perpetual" mode with human checkpoints) |
|
|
235
|
-
| 0.11 | Memory & quality loop | Workspace knowledge base, review worker, test-as-definition-of-done |
|
|
236
|
-
| 1.0 | Ecosystem & stability | Worker plugin protocol + scaffolding, skill registry, sandboxing, distribution |
|
|
238
|
+
**Standing principles:** the Controller stays the single orchestration source — LMs decide, code enforces mechanics; the TUI stays a thin chat client, richer interaction lands on the Web; everything mounts on the headless server + RPC foundation.
|
|
237
239
|
|
|
238
|
-
|
|
240
|
+
Shipped: Controller ↔ Worker chat & permission approval (v0.3), persistent multi-stage workers & sessionless long-running (v0.4), headless server + RPC + e2e & CI (v0.5).
|
|
239
241
|
|
|
240
242
|
## License
|
|
241
243
|
|