@alexeiled/claude-router 1.7.3 → 1.7.4
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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +6 -0
- package/hooks/native-router.mjs +4 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "router",
|
|
3
3
|
"displayName": "Router",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.4",
|
|
5
5
|
"description": "Model and effort routing for the main conversation by task difficulty and activity, advised by a prompt classifier (Jev, Clef, Clef Flash, OpenAI or local Ollama). Preserves subagent model choices.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Alexei Ledenev",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.4 (2026-10-10)
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Routing turned off while a turn's record is being saved ends the escalation watch, as it already did for the rest of the turn. Before, a switch of routing off and back on during that last step could start the watch again for the turn's cheaper move. Routing itself is unchanged.
|
|
8
|
+
|
|
3
9
|
## 1.7.3 (2026-10-10)
|
|
4
10
|
|
|
5
11
|
### Fixed
|
package/hooks/native-router.mjs
CHANGED
|
@@ -703,14 +703,15 @@ async function recordActivity($, router, turn) {
|
|
|
703
703
|
if (start < 0) return;
|
|
704
704
|
const observed = observedActivity(messages, start);
|
|
705
705
|
const view = router.view ?? (await readView($, router));
|
|
706
|
-
|
|
707
|
-
// inherited.
|
|
708
|
-
const off = (await modeOf($, router)) === 'manual' || turn.offSwitches !== router.offSwitches;
|
|
706
|
+
const manual = (await modeOf($, router)) === 'manual';
|
|
709
707
|
// The session may have changed during the reads; this turn is not the new session's.
|
|
710
708
|
if ((await $.session.id()) !== turn.sessionId) return;
|
|
711
709
|
// Advanced before any further await, so a session change meanwhile cannot carry this run into the new session.
|
|
712
710
|
const { run, ended } = advanceRun(router.run, turn.answer);
|
|
713
711
|
router.run = run;
|
|
712
|
+
// Routing turned off while this turn ran ends the watch here, even when it is back on by now, so the move is not
|
|
713
|
+
// inherited. The counter is read after the last await: a switch during any of them counts.
|
|
714
|
+
const off = manual || turn.offSwitches !== router.offSwitches;
|
|
714
715
|
const down = advanceDown(router.afterDown, turn);
|
|
715
716
|
router.afterDown = off ? null : down.after;
|
|
716
717
|
await updateView($, router, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexeiled/claude-router",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "Native Claude Code Mod: model and effort routing for the main conversation, advised by Jev, Clef, Clef Flash, OpenAI or Ollama.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alexei Ledenev",
|