@dylanrussell/agent-router 2.0.1 → 2.0.2
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/CHANGELOG.md +7 -1
- package/README.md +3 -3
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/tui.d.ts +38 -1
- package/dist/tui.js +56 -20
- package/dist/tui.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# 2.0.2
|
|
2
|
+
|
|
3
|
+
- Simplify stack chains to one model per line in precedence order, without Primary/Fallback labels.
|
|
4
|
+
- Highlight the live session's selected agent/model with native theme color, bold text and a marker; show out-of-chain selections separately.
|
|
5
|
+
- React to session model/agent changes, normalize default variants, and wrap full provider/model identities in narrow sidebars.
|
|
6
|
+
|
|
1
7
|
# 2.0.1
|
|
2
8
|
|
|
3
9
|
- Normalize V2's `default` variant so pending next-user-turn fallback is not disabled by an equivalent model reference.
|
|
@@ -21,6 +27,6 @@
|
|
|
21
27
|
|
|
22
28
|
- Applying/backing out stacks still requires restarting OpenCode to reload agent files.
|
|
23
29
|
- Terminal stack operations access local files; remote-server filesystem management is not supported.
|
|
24
|
-
- Fallback notices are server logs. The sidebar shows configured routing
|
|
30
|
+
- Fallback notices are server logs. The sidebar shows configured routing with the current session selection highlighted; it does not expose pending fallback state.
|
|
25
31
|
- OpenCode 2.0.8 does not identify request kind on retry hooks. The plugin conservatively tracks the last model-request kind and only handles primary requests. Concurrent auxiliary requests can suppress fallback handling.
|
|
26
32
|
- Session defaults must resolve to explicit agent/model selections before routing. Fallback routing is bounded to 1,024 tracked sessions per plugin instance.
|
package/README.md
CHANGED
|
@@ -175,7 +175,7 @@ Duplicate failures advance only once per admitted user turn. Routing budgets are
|
|
|
175
175
|
|
|
176
176
|
**Verified boundary:** compiled against the published **2.0.8** API types. Deterministic adapter tests cover next-turn selection, retry veto, auxiliary-request exclusion, variants, and no replay or persistent agent writes. These are not real-provider end-to-end tests. An LLM may choose to repeat a tool when explicitly asked to continue.
|
|
177
177
|
|
|
178
|
-
OpenCode 2.0.8 exposes no atomic compare-and-switch in the prompt hook and no request kind in the retry hook. Concurrent manual selections/admissions or auxiliary requests remain host API limitations. The sidebar displays configured routing
|
|
178
|
+
OpenCode 2.0.8 exposes no atomic compare-and-switch in the prompt hook and no request kind in the retry hook. Concurrent manual selections/admissions or auxiliary requests remain host API limitations. The sidebar displays configured routing and highlights the current session selection, not pending fallback state. Terminal stack operations require local filesystem access; remote server filesystem management is not supported.
|
|
179
179
|
|
|
180
180
|
### Install This Checkout
|
|
181
181
|
|
|
@@ -210,8 +210,8 @@ The plugin exposes six tools the agent (or you, by asking it) can call:
|
|
|
210
210
|
|
|
211
211
|
The V2 terminal half loads from the package's `./tui` export (`cli.json`, wired up by `init`):
|
|
212
212
|
|
|
213
|
-
- **Sidebar panel** — lists available stacks with the active one checked. Under **Current Stack
|
|
214
|
-
- **
|
|
213
|
+
- **Sidebar panel** — lists available stacks with the active one checked. Under **Current Stack**, each agent has one indented model per line, in precedence order, without Primary/Fallback labels. Explicit variants appear in brackets; full model IDs wrap rather than truncate. A `⟳ restart required` badge appears when the active stack differs from the one at TUI startup. File changes update live (≤1.5s).
|
|
214
|
+
- **Current selection** — the live session's agent/model is highlighted in color and bold with `●`; out-of-chain selections get a separate Current row. Other agents are not presented as live selections. Configured chains still come from the active stack file, not the applied `state.json.fallbackAgents` snapshot. Editing a stack changes the preview but does not apply it: use the stack and restart opencode to activate changes. The marker reflects session selection, not proof that a request is running or that failover is enabled.
|
|
215
215
|
- **Commands** — type `/` or open the command palette:
|
|
216
216
|
|
|
217
217
|
| command | what it does |
|
package/dist/cli.js
CHANGED
|
@@ -17006,7 +17006,7 @@ async function exportStack(paths, name, toFile) {
|
|
|
17006
17006
|
}
|
|
17007
17007
|
|
|
17008
17008
|
// src/version.ts
|
|
17009
|
-
var VERSION = "2.0.
|
|
17009
|
+
var VERSION = "2.0.2";
|
|
17010
17010
|
|
|
17011
17011
|
// src/cli.ts
|
|
17012
17012
|
var log = (...args) => console.log(...args);
|