claude-glm 1.1.0 → 1.2.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/adapters/map.ts +2 -2
- package/install.sh +6 -6
- package/package.json +1 -1
package/adapters/map.ts
CHANGED
|
@@ -17,8 +17,8 @@ const PROVIDER_PREFIXES: ProviderKey[] = [
|
|
|
17
17
|
// Model shortcuts - add your own aliases here
|
|
18
18
|
const MODEL_SHORTCUTS: Record<string, string> = {
|
|
19
19
|
// GLM shortcuts
|
|
20
|
-
g: "glm:glm-
|
|
21
|
-
glm: "glm:glm-
|
|
20
|
+
g: "glm:glm-5",
|
|
21
|
+
glm: "glm:glm-5",
|
|
22
22
|
glm47: "glm:glm-4.7",
|
|
23
23
|
glm45: "glm:glm-4.5",
|
|
24
24
|
glm5: "glm:glm-5",
|
package/install.sh
CHANGED
|
@@ -338,12 +338,12 @@ create_claude_glm_wrapper() {
|
|
|
338
338
|
|
|
339
339
|
cat > "$wrapper_path" << EOF
|
|
340
340
|
#!/bin/bash
|
|
341
|
-
# Claude-GLM - Claude Code with Z.AI GLM-
|
|
341
|
+
# Claude-GLM - Claude Code with Z.AI GLM-5 (Standard Model)
|
|
342
342
|
|
|
343
343
|
# Set Z.AI environment variables
|
|
344
344
|
export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
|
|
345
345
|
export ANTHROPIC_AUTH_TOKEN="$ZAI_API_KEY"
|
|
346
|
-
export ANTHROPIC_MODEL="glm-
|
|
346
|
+
export ANTHROPIC_MODEL="glm-5"
|
|
347
347
|
export ANTHROPIC_SMALL_FAST_MODEL="glm-4.5-air"
|
|
348
348
|
|
|
349
349
|
# Use custom config directory to avoid conflicts
|
|
@@ -358,14 +358,14 @@ cat > "\$CLAUDE_HOME/settings.json" << SETTINGS
|
|
|
358
358
|
"env": {
|
|
359
359
|
"ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic",
|
|
360
360
|
"ANTHROPIC_AUTH_TOKEN": "$ZAI_API_KEY",
|
|
361
|
-
"ANTHROPIC_MODEL": "glm-
|
|
361
|
+
"ANTHROPIC_MODEL": "glm-5",
|
|
362
362
|
"ANTHROPIC_SMALL_FAST_MODEL": "glm-4.5-air"
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
SETTINGS
|
|
366
366
|
|
|
367
367
|
# Launch Claude Code with custom config
|
|
368
|
-
echo "🚀 Starting Claude Code with GLM-
|
|
368
|
+
echo "🚀 Starting Claude Code with GLM-5 (Standard Model)..."
|
|
369
369
|
echo "📁 Config directory: \$CLAUDE_HOME"
|
|
370
370
|
echo ""
|
|
371
371
|
|
|
@@ -866,7 +866,7 @@ main() {
|
|
|
866
866
|
echo "📝 After sourcing, you can use:"
|
|
867
867
|
echo ""
|
|
868
868
|
echo "Commands:"
|
|
869
|
-
echo " claude-glm - GLM-
|
|
869
|
+
echo " claude-glm - GLM-5 (latest)"
|
|
870
870
|
echo " claude-glm-4.5 - GLM-4.5"
|
|
871
871
|
echo " claude-glm-fast - GLM-4.5-Air (fast)"
|
|
872
872
|
if [ "$install_ccx_choice" != "n" ] && [ "$install_ccx_choice" != "N" ]; then
|
|
@@ -875,7 +875,7 @@ main() {
|
|
|
875
875
|
echo ""
|
|
876
876
|
echo "Aliases:"
|
|
877
877
|
echo " cc - claude (regular Claude)"
|
|
878
|
-
echo " ccg - claude-glm (GLM-
|
|
878
|
+
echo " ccg - claude-glm (GLM-5)"
|
|
879
879
|
echo " ccg45 - claude-glm-4.5 (GLM-4.5)"
|
|
880
880
|
echo " ccf - claude-glm-fast"
|
|
881
881
|
echo " claude-d - claude --dangerously-skip-permissions"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-glm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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",
|