@euraika-bert/claude-model-router 0.1.3 → 0.1.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.
@@ -4,7 +4,7 @@
4
4
  import path from 'node:path';
5
5
  import { fileURLToPath } from 'node:url';
6
6
 
7
- export const VERSION = '0.1.3'; // keep equal to package.json (test/usage.test.mjs checks it)
7
+ export const VERSION = '0.1.4'; // keep equal to package.json (test/usage.test.mjs checks it)
8
8
  const PACKAGE = '@euraika-bert/claude-model-router';
9
9
  const DAY_MS = 24 * 60 * 60 * 1000;
10
10
  let latestVersion = null;
package/install.sh CHANGED
@@ -142,8 +142,13 @@ for _ in {1..20}; do
142
142
  fi
143
143
  sleep 0.5
144
144
  done
145
- curl --fail --silent http://127.0.0.1:8765/__health
146
- printf '\n\nHerstel voltooid. Alle ingebouwde Claude-modellen blijven beschikbaar via /model.\n'
145
+ HEALTH="$(curl --fail --silent http://127.0.0.1:8765/__health)" || {
146
+ printf 'De router reageert niet op poort 8765; zie %s\n' "$CLAUDE_DIR/logs/kimi-router.error.log" >&2
147
+ exit 1
148
+ }
149
+ ROUTER_VERSION="$(printf '%s' "$HEALTH" | "$NODE_BIN" -e 'let s="";process.stdin.on("data",(d)=>(s+=d)).on("end",()=>{try{console.log(JSON.parse(s).version??"?")}catch{console.log("?")}})')"
150
+ printf '\nHerstel voltooid. Alle ingebouwde Claude-modellen blijven beschikbaar via /model.\n'
151
+ printf 'Router %s: http://127.0.0.1:8765 (logs in %s). Herstart Claude Code.\n' "$ROUTER_VERSION" "$CLAUDE_DIR/logs"
147
152
  if [[ "$OS" == Linux ]] && ! loginctl show-user "$USER" -p Linger 2>/dev/null | grep -q yes; then
148
153
  printf 'Tip: de router start nu bij je login. Wil je hem ook zonder login (bv. via SSH): loginctl enable-linger %s\n' "$USER"
149
154
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@euraika-bert/claude-model-router",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Local router that adds Kimi, Mistral/GLM, Aliyun Qwen/DeepSeek, ChatGPT/Codex and MiniMax models to Claude Code without replacing the built-in Claude models (macOS, Linux, Windows).",
5
5
  "type": "module",
6
6
  "bin": {