claude-glm 1.2.0 → 1.2.2
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 +4 -0
- package/bin/ccx +7 -0
- package/install.sh +7 -0
- package/package.json +1 -1
package/adapters/map.ts
CHANGED
|
@@ -24,6 +24,10 @@ const MODEL_SHORTCUTS: Record<string, string> = {
|
|
|
24
24
|
glm5: "glm:glm-5",
|
|
25
25
|
glm5or: "openrouter:z-ai/glm-5",
|
|
26
26
|
flash: "glm:glm-4-flash",
|
|
27
|
+
// MiniMax shortcuts
|
|
28
|
+
minimax: "openrouter:minimax/minimax-m2.5",
|
|
29
|
+
mm: "openrouter:minimax/minimax-m2.5",
|
|
30
|
+
m25: "openrouter:minimax/minimax-m2.5",
|
|
27
31
|
// Claude shortcuts (for API users)
|
|
28
32
|
opus: "anthropic:claude-opus-4-5-20251101",
|
|
29
33
|
sonnet: "anthropic:claude-sonnet-4-5-20250929",
|
package/bin/ccx
CHANGED
|
@@ -68,6 +68,13 @@ export ANTHROPIC_AUTH_TOKEN="${ANTHROPIC_AUTH_TOKEN:-local-proxy-token}"
|
|
|
68
68
|
echo "[ccx] Starting Claude Code with multi-provider proxy..."
|
|
69
69
|
echo "[ccx] Proxy will listen on: ${ANTHROPIC_BASE_URL}"
|
|
70
70
|
|
|
71
|
+
# Kill any stale proxy on the same port
|
|
72
|
+
if lsof -ti:${PORT} >/dev/null 2>&1; then
|
|
73
|
+
echo "[ccx] Killing stale proxy on port ${PORT}..."
|
|
74
|
+
lsof -ti:${PORT} | xargs kill -9 2>/dev/null || true
|
|
75
|
+
sleep 0.5
|
|
76
|
+
fi
|
|
77
|
+
|
|
71
78
|
# Start proxy in background
|
|
72
79
|
npx -y tsx "${ROOT_DIR}/adapters/anthropic-gateway.ts" > /tmp/claude-proxy.log 2>&1 &
|
|
73
80
|
PROXY_PID=$!
|
package/install.sh
CHANGED
|
@@ -615,6 +615,13 @@ export ANTHROPIC_AUTH_TOKEN="${ANTHROPIC_AUTH_TOKEN:-local-proxy-token}"
|
|
|
615
615
|
echo "[ccx] Starting Claude Code with multi-provider proxy..."
|
|
616
616
|
echo "[ccx] Proxy will listen on: ${ANTHROPIC_BASE_URL}"
|
|
617
617
|
|
|
618
|
+
# Kill any stale proxy on the same port
|
|
619
|
+
if lsof -ti:${PORT} >/dev/null 2>&1; then
|
|
620
|
+
echo "[ccx] Killing stale proxy on port ${PORT}..."
|
|
621
|
+
lsof -ti:${PORT} | xargs kill -9 2>/dev/null || true
|
|
622
|
+
sleep 0.5
|
|
623
|
+
fi
|
|
624
|
+
|
|
618
625
|
# Start proxy in background
|
|
619
626
|
npx -y tsx "${ROOT_DIR}/adapters/anthropic-gateway.ts" > /tmp/claude-proxy.log 2>&1 &
|
|
620
627
|
PROXY_PID=$!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-glm",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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",
|