@halilertekin/claude-code-router-config 1.3.9 → 2.0.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/setup-glm.sh CHANGED
@@ -232,9 +232,20 @@ EOF
232
232
  ensure_ccr
233
233
  mkdir -p "$CONFIG_DIR"
234
234
  backup_file "$CONFIG_DIR/config.json"
235
- backup_file "$CONFIG_DIR/intent-router.js"
236
235
  cp "$SCRIPT_DIR/config/glm-only.json" "$CONFIG_DIR/config.json"
237
- cp "$SCRIPT_DIR/config/intent-router-glm.js" "$CONFIG_DIR/intent-router.js"
236
+ backup_file "$CONFIG_DIR/intent-router-glm.js"
237
+ cp "$SCRIPT_DIR/config/intent-router-glm.js" "$CONFIG_DIR/intent-router-glm.js"
238
+ python - <<'PY'
239
+ import json
240
+ import os
241
+
242
+ config_path = os.path.join(os.environ["HOME"], ".claude-code-router", "config.json")
243
+ with open(config_path, "r", encoding="utf-8") as handle:
244
+ data = json.load(handle)
245
+ data["CUSTOM_ROUTER_PATH"] = "$HOME/.claude-code-router/intent-router-glm.js"
246
+ with open(config_path, "w", encoding="utf-8") as handle:
247
+ json.dump(data, handle, indent=2)
248
+ PY
238
249
  write_keys
239
250
  install_wrapper
240
251
  ensure_path
@@ -2,7 +2,7 @@
2
2
  "LOG": true,
3
3
  "LOG_LEVEL": "info",
4
4
  "API_TIMEOUT_MS": 30000,
5
- "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/intent-router.js",
5
+ "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/smart-intent-router.js",
6
6
 
7
7
  "Providers": [
8
8
  {
@@ -2,7 +2,7 @@
2
2
  "LOG": true,
3
3
  "LOG_LEVEL": "warn",
4
4
  "API_TIMEOUT_MS": 30000,
5
- "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/intent-router.js",
5
+ "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/smart-intent-router.js",
6
6
 
7
7
  "Providers": [
8
8
  {
@@ -2,7 +2,7 @@
2
2
  "LOG": true,
3
3
  "LOG_LEVEL": "debug",
4
4
  "API_TIMEOUT_MS": 15000,
5
- "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/intent-router.js",
5
+ "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/smart-intent-router.js",
6
6
 
7
7
  "Providers": [
8
8
  {
@@ -2,7 +2,7 @@
2
2
  "LOG": true,
3
3
  "LOG_LEVEL": "info",
4
4
  "API_TIMEOUT_MS": 20000,
5
- "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/intent-router.js",
5
+ "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/smart-intent-router.js",
6
6
 
7
7
  "Providers": [
8
8
  {
@@ -2,7 +2,7 @@
2
2
  "LOG": true,
3
3
  "LOG_LEVEL": "debug",
4
4
  "API_TIMEOUT_MS": 60000,
5
- "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/intent-router.js",
5
+ "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/smart-intent-router.js",
6
6
 
7
7
  "Providers": [
8
8
  {