cc-x10ded 3.0.10 → 3.0.12

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
@@ -5,40 +5,67 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [3.0.0] - 2025-12-24
8
+ ## [3.0.12] - 2025-12-24
9
9
 
10
- ### 🚀 Major Rewrite (The "30x" Release)
11
- This release is a complete reimagining of the project, rewriting the entire codebase from Bash/PowerShell to **Bun/TypeScript**.
10
+ ### Changed
11
+ - Updated README with correct package name and installation instructions
12
+ - Added migration guide for users upgrading from pre-3.0 versions
13
+ - Updated CHANGELOG with recent releases
12
14
 
13
- ### Added
14
- - **Single Binary (`ccx`)**: Replaced 5+ wrapper scripts with a single, standalone executable. No dependencies required.
15
- - **Interactive Setup (`ccx setup`)**: Beautiful CLI wizard to configure keys and aliases safely.
16
- - **Self-Healing Diagnostics (`ccx doctor`)**: Checks for API keys, Claude installation, shell paths, and configuration health.
17
- - **Auto-Discovery**: Automatically detects API keys (`ZAI_API_KEY`, `OPENAI_API_KEY`, etc.) from your environment.
18
- - **Smart Proxy**: `ccx` acts as a transparent proxy for OpenAI, Gemini, Minimax, and GLM models.
19
- - **Port Hunting**: Automatically finds an available port if 17870 is busy.
20
- - **Binary Hunting**: Robustly locates the `claude` binary in standard locations (Homebrew, NVM, npm global) even if it's missing from PATH.
21
- - **PowerShell Integration**: Native support for PowerShell profiles and aliases.
15
+ ## [3.0.11] - 2025-12-24
22
16
 
23
- ### Changed
24
- - **Renamed**: Project package name changed to `cc-x10ded`.
25
- - **Runtime**: Switched from Node.js to **Bun** for instant startup performance.
26
- - **Config**: Moved from hardcoded script variables to `~/.config/claude-glm/config.json`.
27
- - **Proxy**: Migrated from Fastify to `Bun.serve()` for lower latency streaming.
17
+ ### Fixed
18
+ - Shell aliases now use `bunx cc-x10ded` for zero-install experience
19
+ - No longer requires global npm install - aliases work out of the box after setup
28
20
 
29
- ### Removed
30
- - Removed legacy `install.sh` and `install.ps1` scripts.
31
- - Removed dependency on user having Node.js installed (for binary usage).
21
+ ## [3.0.10] - 2025-12-24
22
+
23
+ ### Fixed
24
+ - Fixed `ccx update` command to reference correct package name (`cc-x10ded`)
32
25
 
33
- ## [Unreleased]
26
+ ## [3.0.9] - 2025-12-24
27
+
28
+ ### Fixed
29
+ - Added `repository` field to package.json for npm OIDC provenance verification
30
+ - Updated package description
31
+
32
+ ## [3.0.0] - 2025-12-24
33
+
34
+ ### 🚀 Major Rewrite (The "Bun Edition")
35
+ This release is a complete reimagining of the project, rewriting the entire codebase from Bash/PowerShell to **Bun/TypeScript**.
34
36
 
35
37
  ### Added
38
+ - **Zero-Install Usage**: Just run `bunx cc-x10ded setup` - no global install needed
39
+ - **Interactive Setup (`ccx setup`)**: Beautiful CLI wizard to configure keys and aliases safely
40
+ - **Self-Healing Diagnostics (`ccx doctor`)**: Checks for API keys, Claude installation, shell paths, and configuration health
41
+ - **Auto-Discovery**: Automatically detects API keys (`ZAI_API_KEY`, `OPENAI_API_KEY`, etc.) from your environment
42
+ - **Smart Proxy**: Acts as a transparent proxy for OpenAI, Gemini, Minimax, and GLM models
43
+ - **Port Hunting**: Automatically finds an available port if 17870 is busy
44
+ - **Binary Hunting**: Robustly locates the `claude` binary in standard locations (Homebrew, NVM, npm global) even if it's missing from PATH
45
+ - **PowerShell Integration**: Native support for PowerShell profiles and aliases
36
46
  - GLM-4.7 model support as new default
37
- - GLM-4.6 wrapper (ccg46) for backward compatibility
38
47
 
39
48
  ### Changed
49
+ - **Renamed**: Package name changed to `cc-x10ded` (published on npm)
50
+ - **Runtime**: Switched from Node.js to **Bun** for instant startup performance
51
+ - **Config**: Moved from hardcoded script variables to `~/.config/claude-glm/config.json`
52
+ - **Proxy**: Migrated from Fastify to `Bun.serve()` for lower latency streaming
53
+ - **Architecture**: Proxy now runs in-process instead of spawning separate process
40
54
  - Updated default model from GLM-4.6 to GLM-4.7
41
55
 
56
+ ### Removed
57
+ - Removed legacy `install.sh` and `install.ps1` scripts
58
+ - Removed dependency on user having Node.js installed (for binary usage)
59
+ - Removed `~/.claude-proxy/` directory (no longer used)
60
+
61
+ ### Migration
62
+ If upgrading from pre-3.0 versions:
63
+ ```bash
64
+ npm uninstall -g claude-glm-wrapper
65
+ rm -rf ~/.claude-proxy/
66
+ bunx cc-x10ded setup
67
+ ```
68
+
42
69
  ## [1.0.3] - 2025-10-01
43
70
 
44
71
  ### Changed
@@ -103,7 +130,11 @@ This release is a complete reimagining of the project, rewriting the entire code
103
130
  - Subexpression parsing errors in piped contexts
104
131
  - Terminal/PowerShell window persistence after errors
105
132
 
106
- [Unreleased]: https://github.com/JoeInnsp23/claude-glm-wrapper/compare/v1.0.3...HEAD
133
+ [3.0.12]: https://github.com/MohMaya/claude-glm-wrapper/compare/v3.0.11...v3.0.12
134
+ [3.0.11]: https://github.com/MohMaya/claude-glm-wrapper/compare/v3.0.10...v3.0.11
135
+ [3.0.10]: https://github.com/MohMaya/claude-glm-wrapper/compare/v3.0.9...v3.0.10
136
+ [3.0.9]: https://github.com/MohMaya/claude-glm-wrapper/compare/v3.0.0...v3.0.9
137
+ [3.0.0]: https://github.com/MohMaya/claude-glm-wrapper/compare/v1.0.3...v3.0.0
107
138
  [1.0.3]: https://github.com/JoeInnsp23/claude-glm-wrapper/compare/v1.0.2...v1.0.3
108
139
  [1.0.2]: https://github.com/JoeInnsp23/claude-glm-wrapper/compare/v1.0.1...v1.0.2
109
140
  [1.0.1]: https://github.com/JoeInnsp23/claude-glm-wrapper/compare/v1.0.0...v1.0.1
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > This is an actively maintained community fork of the original [claude-glm-wrapper](https://github.com/JoeInnsp23/claude-glm-wrapper).
6
6
  > Now rewritten in **Bun** for 10x speed and single-binary simplicity.
7
7
  >
8
- > Install via: `bunx claude-glm-wrapper` or download the binary.
8
+ > Install via: `bunx cc-x10ded setup` or download the binary.
9
9
 
10
10
  ---
11
11
 
@@ -25,9 +25,9 @@ Use [Z.AI's GLM models](https://z.ai), [Minimax](https://minimax.io), [OpenAI](h
25
25
 
26
26
  ### Installation
27
27
 
28
- **If you have Bun:**
28
+ **If you have Bun (recommended):**
29
29
  ```bash
30
- bunx claude-glm-wrapper setup
30
+ bunx cc-x10ded setup
31
31
  ```
32
32
 
33
33
  **Manual Download (Mac/Linux/Windows):**
@@ -60,11 +60,12 @@ If you enabled aliases during setup:
60
60
 
61
61
  | Alias | Equivalent Command |
62
62
  |-------|-------------------|
63
- | `cc` | `claude` (Standard Anthropic) |
64
- | `ccg` | `ccx --model=glm-4.7` |
65
- | `ccg45` | `ccx --model=glm-4.5` |
66
- | `ccf` | `ccx --model=glm-4.5-air` |
67
- | `ccm` | `ccx --model=MiniMax-M2.1` |
63
+ | `cc` | `bunx cc-x10ded` (default model) |
64
+ | `ccx` | `bunx cc-x10ded` |
65
+ | `ccg` | `bunx cc-x10ded --model=glm-4.7` |
66
+ | `ccg45` | `bunx cc-x10ded --model=glm-4.5` |
67
+ | `ccf` | `bunx cc-x10ded --model=glm-4.5-air` |
68
+ | `ccm` | `bunx cc-x10ded --model=MiniMax-M2.1` |
68
69
 
69
70
  ### Multi-Provider Proxy
70
71
 
@@ -109,13 +110,33 @@ You can edit it with `ccx config`.
109
110
  }
110
111
  ```
111
112
 
113
+ ## Migrating from Old Versions
114
+
115
+ If you're upgrading from `claude-glm-wrapper` (pre-3.0), you need to clean up the old installation:
116
+
117
+ ```bash
118
+ # Remove old global package
119
+ npm uninstall -g claude-glm-wrapper
120
+
121
+ # Remove old proxy files (no longer used)
122
+ rm -rf ~/.claude-proxy/
123
+
124
+ # Install new version
125
+ bunx cc-x10ded setup
126
+ ```
127
+
128
+ The new version:
129
+ - Uses `bunx cc-x10ded` instead of `ccx` command
130
+ - Runs proxy in-process (no separate process or `~/.claude-proxy/`)
131
+ - Stores config in `~/.config/claude-glm/` (unchanged)
132
+
112
133
  ## Troubleshooting
113
134
 
114
135
  **"ccx: command not found"**
115
- Ensure the binary is in your PATH, or that you've run the setup which helps install aliases.
136
+ Run `bunx cc-x10ded setup` to install shell aliases, then restart your terminal.
116
137
 
117
138
  **"Error: 'claude' command not found"**
118
- Run `ccx doctor` or `ccx setup` — it will offer to install Claude Code for you automatically!
139
+ Run `bunx cc-x10ded doctor` — it will check your Claude Code installation.
119
140
 
120
141
  ## License
121
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-x10ded",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "description": "Extend Claude Code with custom OpenAI-compatible model providers",
5
5
  "repository": {
6
6
  "type": "git",
package/src/core/shell.ts CHANGED
@@ -83,34 +83,40 @@ export class ShellIntegrator {
83
83
  }
84
84
 
85
85
  private generateAliasBlock(shell: ShellType): string {
86
+ // Use bunx for zero-install experience
87
+ const cmd = "bunx cc-x10ded";
88
+
86
89
  if (shell === "zsh" || shell === "bash") {
87
90
  return `
88
- alias cc='ccx'
89
- alias ccg='ccx --model=glm-4.7'
90
- alias ccg46='ccx --model=glm-4.6'
91
- alias ccg45='ccx --model=glm-4.5'
92
- alias ccf='ccx --model=glm-4.5-air'
93
- alias ccm='ccx --model=MiniMax-M2.1'
91
+ alias ccx='${cmd}'
92
+ alias cc='${cmd}'
93
+ alias ccg='${cmd} --model=glm-4.7'
94
+ alias ccg46='${cmd} --model=glm-4.6'
95
+ alias ccg45='${cmd} --model=glm-4.5'
96
+ alias ccf='${cmd} --model=glm-4.5-air'
97
+ alias ccm='${cmd} --model=MiniMax-M2.1'
94
98
  `.trim();
95
99
  }
96
100
  if (shell === "fish") {
97
101
  return `
98
- alias cc 'ccx'
99
- alias ccg 'ccx --model=glm-4.7'
100
- alias ccg46 'ccx --model=glm-4.6'
101
- alias ccg45 'ccx --model=glm-4.5'
102
- alias ccf 'ccx --model=glm-4.5-air'
103
- alias ccm 'ccx --model=MiniMax-M2.1'
102
+ alias ccx '${cmd}'
103
+ alias cc '${cmd}'
104
+ alias ccg '${cmd} --model=glm-4.7'
105
+ alias ccg46 '${cmd} --model=glm-4.6'
106
+ alias ccg45 '${cmd} --model=glm-4.5'
107
+ alias ccf '${cmd} --model=glm-4.5-air'
108
+ alias ccm '${cmd} --model=MiniMax-M2.1'
104
109
  `.trim();
105
110
  }
106
111
  if (shell === "powershell") {
107
112
  return `
108
- Function cc { ccx @args }
109
- Function ccg { ccx --model=glm-4.7 @args }
110
- Function ccg46 { ccx --model=glm-4.6 @args }
111
- Function ccg45 { ccx --model=glm-4.5 @args }
112
- Function ccf { ccx --model=glm-4.5-air @args }
113
- Function ccm { ccx --model=MiniMax-M2.1 @args }
113
+ Function ccx { ${cmd} @args }
114
+ Function cc { ${cmd} @args }
115
+ Function ccg { ${cmd} --model=glm-4.7 @args }
116
+ Function ccg46 { ${cmd} --model=glm-4.6 @args }
117
+ Function ccg45 { ${cmd} --model=glm-4.5 @args }
118
+ Function ccf { ${cmd} --model=glm-4.5-air @args }
119
+ Function ccm { ${cmd} --model=MiniMax-M2.1 @args }
114
120
  `.trim();
115
121
  }
116
122
  return "";