claude-all-config 3.7.3 → 3.7.5

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/VERSION CHANGED
@@ -1 +1 @@
1
- 3.7.3
1
+ 3.7.5
package/claude-all CHANGED
@@ -1926,8 +1926,8 @@ case $choice in
1926
1926
  echo ""
1927
1927
  echo -e "${GREEN}✨ AVAILABLE MODELS:${NC}"
1928
1928
  echo ""
1929
- echo " 1) 🚀 glm-5 (Flagship - latest gen) ⭐"
1930
- echo " 2) glm-5.1 (Tuned - balanced speed + quality)"
1929
+ echo " 1) glm-5.1 (Tuned - balanced speed + quality) ⭐"
1930
+ echo " 2) 🚀 glm-5 (Flagship - raw latest gen)"
1931
1931
  echo ""
1932
1932
 
1933
1933
  read -p "Select model [1-2, default: 1]: " model_choice
@@ -1935,15 +1935,15 @@ case $choice in
1935
1935
 
1936
1936
  case "$model_choice" in
1937
1937
  1)
1938
- MODEL_NAME="glm-5"
1939
- echo -e "${GREEN}✓ Selected: glm-5${NC}"
1940
- ;;
1941
- 2)
1942
1938
  MODEL_NAME="glm-5.1"
1943
1939
  echo -e "${GREEN}✓ Selected: glm-5.1${NC}"
1944
1940
  ;;
1945
- *)
1941
+ 2)
1946
1942
  MODEL_NAME="glm-5"
1943
+ echo -e "${GREEN}✓ Selected: glm-5${NC}"
1944
+ ;;
1945
+ *)
1946
+ MODEL_NAME="glm-5.1"
1947
1947
  ;;
1948
1948
  esac
1949
1949
 
@@ -3,17 +3,17 @@
3
3
  "description": "ZhipuAI GLM Models via Z.AI API",
4
4
  "api_base": "https://open.bigmodel.cn/api/paas/v4",
5
5
  "models": [
6
- {
7
- "id": "glm-5",
8
- "name": "GLM-5",
9
- "description": "Flagship model — latest generation, coding + reasoning ⭐"
10
- },
11
6
  {
12
7
  "id": "glm-5.1",
13
8
  "name": "GLM-5.1",
14
- "description": "Tuned variant — balanced speed + quality "
9
+ "description": "Tuned variant — balanced speed + quality ⭐ (default)"
10
+ },
11
+ {
12
+ "id": "glm-5",
13
+ "name": "GLM-5",
14
+ "description": "Flagship — raw latest generation"
15
15
  }
16
16
  ],
17
- "default_model": "glm-5",
17
+ "default_model": "glm-5.1",
18
18
  "context_window": 128000
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-all-config",
3
- "version": "3.7.3",
3
+ "version": "3.7.5",
4
4
  "description": "🦾 MONSTER ENGINEER v2 - Ultimate AI CLI with 63 Skills, 12 Superpowers, 14 Agents. Multi-Agent Orchestration, Cost-Aware, Security Scorecard, Parallel-First.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/postinstall.js CHANGED
@@ -171,14 +171,18 @@ function installClaude() {
171
171
  console.log(` 📂 ${contextCount} context files`);
172
172
  }
173
173
 
174
- // MCP config
174
+ // MCP config — expand ${HOME} at install time (Claude Code does NOT expand
175
+ // env vars inside args, only inside the env block).
175
176
  const mcpSrc = path.join(PKG_DIR, 'mcp.json');
176
177
  const mcpDest = path.join(HOME, '.mcp.json');
177
178
  if (fs.existsSync(mcpSrc)) {
178
179
  try {
179
- fs.copyFileSync(mcpSrc, mcpDest);
180
+ let mcpContent = fs.readFileSync(mcpSrc, 'utf8');
181
+ // Replace ${HOME} → resolved user home so filesystem MCP gets a real path.
182
+ mcpContent = mcpContent.replace(/\$\{HOME\}/g, HOME);
183
+ fs.writeFileSync(mcpDest, mcpContent);
180
184
  try { fs.chmodSync(mcpDest, 0o600); } catch {}
181
- console.log(` 🔧 MCP config (7 servers)`);
185
+ console.log(` 🔧 MCP config (11 servers, \${HOME} expanded → ${HOME})`);
182
186
  } catch (e) {
183
187
  console.log(` ⚠️ MCP config skipped (${e.code || 'error'}): ${mcpDest}`);
184
188
  }
@@ -274,12 +278,14 @@ function installGemini() {
274
278
  console.log(` 📚 lib`);
275
279
  }
276
280
 
277
- // MCP config for Gemini
281
+ // MCP config for Gemini — same ${HOME} expansion as Claude side.
278
282
  const mcpSrc = path.join(PKG_DIR, 'mcp.json');
279
283
  const mcpDest = path.join(GEMINI_DIR, 'mcp.json');
280
284
  if (fs.existsSync(mcpSrc)) {
281
285
  try {
282
- fs.copyFileSync(mcpSrc, mcpDest);
286
+ let mcpContent = fs.readFileSync(mcpSrc, 'utf8');
287
+ mcpContent = mcpContent.replace(/\$\{HOME\}/g, HOME);
288
+ fs.writeFileSync(mcpDest, mcpContent);
283
289
  try { fs.chmodSync(mcpDest, 0o600); } catch {}
284
290
  console.log(` 🔧 MCP config (11 servers)`);
285
291
  } catch (e) {
@@ -45,7 +45,7 @@ export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
45
45
  export ANTHROPIC_API_KEY="$API_KEY"
46
46
 
47
47
  # Model name from argument or default
48
- MODEL_NAME="${1:-glm-5}"
48
+ MODEL_NAME="${1:-glm-5.1}"
49
49
 
50
50
  echo -e "${BLUE}Starting GLM Chat${NC}"
51
51
  echo -e "${GREEN}Model: $MODEL_NAME${NC}"