@halilertekin/claude-code-router-config 2.0.8 → 2.0.9

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 CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.9
4
+ - GLM print mode disables attachments to avoid EMFILE (too many open files) watcher errors.
5
+
3
6
  ## 2.0.8
4
7
  - GLM setup now installs direct z.ai `glm` wrapper by default and keeps `glm-ccr` for router usage.
5
8
  - Safer `.env` loading in `ccc` (ignores comments/invalid lines) and updated setup docs.
package/README.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # Claude Code Router Config - Advanced Multi-Provider Setup
2
2
 
3
- 🚀 **v2.0.8** - Unified router + config package with z.ai (GLM 4.7) support, advanced CLI tools, analytics, smart routing, and configuration templates!
3
+ 🚀 **v2.0.9** - Unified router + config package with z.ai (GLM 4.7) support, advanced CLI tools, analytics, smart routing, and configuration templates!
4
4
 
5
5
  Use Claude Code as a single interface to access multiple AI providers with intelligent routing for optimal performance, cost, and quality.
6
6
 
7
- ## ✨ New in v2.0.8
7
+ ## ✨ New in v2.0.9
8
+ - `glm`/`glm-ccr` print mode disables attachments to avoid EMFILE (too many open files) watcher errors.
9
+
10
+ Includes all v2.0.8 improvements:
8
11
  - UI üzerinden `.env` anahtarları ekleme/güncelleme (TR/NL).
9
12
  - `~/.env` otomatik yükleme ile API anahtarlarının bulunması (CLI + health monitor).
10
13
  - **z.ai Support**: Native integration for GLM-4.7 via z.ai (PPInfra).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halilertekin/claude-code-router-config",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "Multi-provider configuration for Claude Code Router with intent-based routing, advanced CLI tools, analytics, and smart routing. Setup OpenAI, Anthropic, Gemini, Qwen, GLM, OpenRouter, and GitHub Copilot with intelligent routing.",
5
5
  "main": "install.js",
6
6
  "bin": {
package/setup-glm.sh CHANGED
@@ -210,6 +210,11 @@ export ANTHROPIC_DEFAULT_HAIKU_MODEL="${ANTHROPIC_DEFAULT_HAIKU_MODEL:-glm,glm-4
210
210
  export ANTHROPIC_SMALL_FAST_MODEL="${ANTHROPIC_SMALL_FAST_MODEL:-glm,glm-4.5-air}"
211
211
  export CLAUDE_CODE_SUBAGENT_MODEL="${CLAUDE_CODE_SUBAGENT_MODEL:-glm,glm-4.7}"
212
212
 
213
+ # Avoid file watcher exhaustion in non-interactive mode.
214
+ if [[ " $* " == *" -p "* || " $* " == *" --print "* ]]; then
215
+ export CLAUDE_CODE_DISABLE_ATTACHMENTS=1
216
+ fi
217
+
213
218
  CLAUDE_BIN="$HOME/.claude/local/claude"
214
219
  if [[ ! -x "$CLAUDE_BIN" ]]; then
215
220
  CLAUDE_BIN="$(command -v claude || true)"
@@ -275,6 +280,11 @@ export ANTHROPIC_DEFAULT_HAIKU_MODEL="${ANTHROPIC_DEFAULT_HAIKU_MODEL:-glm-4.5-a
275
280
  export ANTHROPIC_SMALL_FAST_MODEL="${ANTHROPIC_SMALL_FAST_MODEL:-glm-4.5-air}"
276
281
  export CLAUDE_CODE_SUBAGENT_MODEL="${CLAUDE_CODE_SUBAGENT_MODEL:-glm-4.7}"
277
282
 
283
+ # Avoid file watcher exhaustion in non-interactive mode.
284
+ if [[ " $* " == *" -p "* || " $* " == *" --print "* ]]; then
285
+ export CLAUDE_CODE_DISABLE_ATTACHMENTS=1
286
+ fi
287
+
278
288
  CLAUDE_BIN="$HOME/.claude/local/claude"
279
289
  if [[ ! -x "$CLAUDE_BIN" ]]; then
280
290
  CLAUDE_BIN="$(command -v claude || true)"