Commit c817e7d
authored
🤖 refactor: rename cmux to mux (#577)
## Overview
Comprehensive rename from `cmux` to `mux` across the entire codebase
(113 files changed).
## Core Changes
### Directory Migration (~50 LoC)
Added `ensureMuxMigration()` to automatically migrate `~/.cmux → ~/.mux`
on first launch:
- Creates backward-compatible symlink `~/.cmux → ~/.mux`
- Called early in app startup (`main-desktop.ts`)
- Ensures seamless upgrade with no user intervention
### Constants & Paths
- Renamed all path functions: `getCmuxHome() → getMuxHome()`, etc.
- Updated base directory: `.cmux → .mux`
- Updated environment variables: `MUX_TEST_ROOT`, `MUX_DEVSERVER_PORT`,
etc.
### Configuration
- **appId**: `com.cmux.app → com.mux.app` (clean break)
- **productName**: `cmux → mux`
- **package.json**: Updated description
- **Repository URLs**: Kept as `github.com/coder/cmux` (will update when
repo renamed)
- **Docs domain**: Kept as `cmux.io` (unchanged for now)
### Storage Keys (with migration)
- `mux_telemetry_enabled` (auto-migrates from `cmux_telemetry_enabled`)
- `mux_first_launch_complete` (auto-migrates from
`cmux_first_launch_complete`)
- Both check legacy keys and migrate on first access
### Benchmarks
Renamed files using `git mv` to preserve history:
- `cmux_agent.py → mux_agent.py`
- `cmux_agent_test.py → mux_agent_test.py`
- `cmux_payload.py → mux_payload.py`
- `cmux-run.sh → mux-run.sh`
- `cmux_setup.sh.j2 → mux_setup.sh.j2`
Updated Python classes: `CmuxAgent → MuxAgent`, `CmuxPayload →
MuxPayload`
### Documentation
- Updated all markdown files in `docs/`
- Updated `book.toml` title
- GitHub Actions: `setup-cmux → setup-mux`
- Updated workflow files
### Source Code
- Function calls, comments, strings in ~112 files
- UI strings: "Generated with cmux" → "Generated with mux"
- Log messages, error strings, test assertions
## Migration Behavior
**Upgrading users:**
1. `~/.cmux` automatically moved to `~/.mux` on first launch
2. Symlink `~/.cmux → ~/.mux` created for backward compatibility
3. localStorage keys migrated automatically
4. No data loss, no manual steps required
**Fresh installs:**
- Creates `~/.mux` directly (no migration needed)
## What Stays Unchanged
- GitHub repository URLs (`github.com/coder/cmux`) - will update when
repo renamed
- Documentation domain (`cmux.io`) - keeping for now
- VS Code extension - excluded from this PR (separate update later)
## Testing
✅ `make typecheck` passes
- Need to verify:
- Integration tests pass
- App builds and starts correctly
- Migration works for existing users
_Generated with `mux`_1 parent a810a93 commit c817e7d
File tree
117 files changed
+801
-747
lines changed- .github
- actions/setup-mux
- workflows
- benchmarks/terminal_bench
- docs
- public
- src
- components
- Messages
- ChatBarrier
- hooks
- constants
- debug
- hooks
- runtime
- services
- mock
- stores
- telemetry
- types
- utils
- ai
- messages
- tokens
- ui
- static
- tests
- e2e
- utils
- ipcMain
- runtime
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
117 files changed
+801
-747
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
This file was deleted.
0 commit comments