claude-glm 1.3.0 → 1.3.1

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.
Files changed (3) hide show
  1. package/bin/ccx +6 -1
  2. package/install.sh +11 -1
  3. package/package.json +1 -1
package/bin/ccx CHANGED
@@ -114,4 +114,9 @@ echo "💡 Switch models in-session with: /model <prefix>:<model-name>"
114
114
  echo ""
115
115
 
116
116
  # Hand off to Claude Code with glm-5 as default model
117
- exec claude --model "${ANTHROPIC_MODEL:-glm-5}" "$@"
117
+ EXTRA_FLAGS=""
118
+ if [[ "$(basename "$0")" == "ccxd" ]]; then
119
+ EXTRA_FLAGS="--dangerously-skip-permissions"
120
+ echo "⚡ Running with --dangerously-skip-permissions"
121
+ fi
122
+ exec claude --model "${ANTHROPIC_MODEL:-glm-5}" $EXTRA_FLAGS "$@"
package/install.sh CHANGED
@@ -661,12 +661,22 @@ echo "💡 Switch models in-session with: /model <prefix>:<model-name>"
661
661
  echo ""
662
662
 
663
663
  # Hand off to Claude Code with glm-5 as default model
664
- exec claude --model "${ANTHROPIC_MODEL:-glm-5}" "$@"
664
+ EXTRA_FLAGS=""
665
+ if [[ "\$(basename "\$0")" == "ccxd" ]]; then
666
+ EXTRA_FLAGS="--dangerously-skip-permissions"
667
+ echo "⚡ Running with --dangerously-skip-permissions"
668
+ fi
669
+ exec claude --model "\${ANTHROPIC_MODEL:-glm-5}" \$EXTRA_FLAGS "\$@"
665
670
  CCXEOF
666
671
 
667
672
  chmod +x "$wrapper_path"
668
673
  echo "✅ Installed ccx at $wrapper_path"
669
674
 
675
+ # Create ccxd symlink (dangerous permissions mode)
676
+ local ccxd_path="${wrapper_path%ccx}ccxd"
677
+ ln -sf "$wrapper_path" "$ccxd_path"
678
+ echo "✅ Installed ccxd at $ccxd_path (--dangerously-skip-permissions)"
679
+
670
680
  # Add ccx alias to shell config
671
681
  add_ccx_alias
672
682
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-glm",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Cross-platform installer for Claude Code with Z.AI GLM models, multi-provider proxy, and dangerously-skip-permissions shortcuts. Run with: npx claude-glm",
5
5
  "keywords": [
6
6
  "claude",