@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/LICENSE +1 -4
- package/NPM_README.md +1 -8
- package/README.md +8 -20
- package/cli/commands.js +257 -145
- package/config/config.json +4 -3
- package/config/glm-only.json +1 -1
- package/config/intent-router.js +1 -2
- package/docs/AGENTSKILLS_INTEGRATION.md +3 -4
- package/docs/AGENTSKILLS_SETUP.md +7 -11
- package/docs/AGENTSKILLS_SETUP_TR.md +7 -11
- package/docs/FULL_DOCUMENTATION.md +7 -12
- package/docs/FULL_DOCUMENTATION_EN.md +7 -12
- package/docs/HOMEBREW_SETUP.md +4 -7
- package/docs/README_EN.md +4 -3
- package/docs/SETUP_PROMPT.md +9 -9
- package/docs/SETUP_PROMPT_EN.md +9 -9
- package/docs/v1.1.0-FEATURES.md +2 -3
- package/install.js +11 -37
- package/install.sh +3 -6
- package/package.json +3 -3
- package/setup-glm.sh +13 -2
- package/templates/balanced.json +1 -1
- package/templates/cost-optimized.json +1 -1
- package/templates/development.json +1 -1
- package/templates/performance-optimized.json +1 -1
- package/templates/quality-focused.json +1 -1
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
|
-
|
|
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
|
package/templates/balanced.json
CHANGED