@codex-ultra/cxu 0.2.12 → 0.2.17
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/LICENSE +2 -2
- package/README.md +86 -86
- package/dist/cli-doctor.d.ts +3 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/vendor/saVmTool.d.ts +130 -2
- package/package.json +68 -68
- package/server-bundle/index.js +556 -357
- package/web-dist/assets/{main-4g10184v.js → main-006rj47w.js} +610 -610
- package/web-dist/assets/main-f84g7djq.css +1 -0
- package/web-dist/icons/Augment_Code.svg +9 -9
- package/web-dist/icons/agy-color.svg +10 -10
- package/web-dist/icons/mini.svg +4 -0
- package/web-dist/icons/opencode.svg +4 -4
- package/web-dist/index.html +3 -3
- package/web-dist/install-prompt-listener.js +7 -7
- package/web-dist/sw.js +1 -1
- package/web-dist/assets/main-svenqv8f.css +0 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# codex-ultra Public License & Commercial Use Policy
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026 codex-ultra Project Maintainers / layola13 <sonygodx@gmail.com>
|
|
3
|
+
Copyright (c) 2026 codex-ultra Project Maintainers / layola13 <sonygodx@gmail.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sublicense copies of the Software, subject to the following terms and conditions:
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
13
13
|
2. Total headcount is **under 1,000 employees**.
|
|
14
14
|
|
|
15
15
|
- **Commercial Licensing Requirement**: Any enterprise or commercial entity exceeding the above thresholds (annual revenue of $1,000,000 USD or more AND 1,000 employees or more) must obtain express written authorization or a commercial license from the project administrator before deploying or using the Software for commercial purposes.
|
|
16
|
-
- Contact for Commercial Licenses: [sonygodx@gmail.com](mailto:sonygodx@gmail.com)
|
|
16
|
+
- Contact for Commercial Licenses: [sonygodx@gmail.com](mailto:sonygodx@gmail.com)
|
|
17
17
|
|
|
18
18
|
## 3. Disclaimer of Warranty
|
|
19
19
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
# @codex-ultra/cxu
|
|
2
|
-
|
|
3
|
-
One-command launcher for the **Codex Ultra** workbench: locally-compiled server + web UI. `cxu` starts it all.
|
|
4
|
-
|
|
5
|
-
Codex Ultra is a local-first workbench for Codex CLI (backed by `codex app-server`): React + MUI three-column UI (history, chat, composer, config/tools/files inspector), third-party relay channels, membership with per-member relay whitelists, usage & billing, sidechat tabs, SSH workspaces, real Codex slash commands (`/review`, `/compact`, `/resume`, `/model`, `/skills`, `/plugins`, `/mcp`, …), theme plugins, and an Electron desktop shell. This package ships the server binary (per-platform optional packages) together with the built web UI and starts them with a single command.
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm i -g @codex-ultra/cxu
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Requires Node `>=18` and Bun `>=1.1`. No prebuilt binaries to download: `cxu` compiles the server for your machine with your local Bun on first run (one-time per version, cached under `~/.cxu/server/`).
|
|
14
|
-
|
|
15
|
-
## Quick start
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
cxu
|
|
19
|
-
# open http://127.0.0.1:43110/
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
The first run inspects your machine, offers to install what's missing, compiles the server locally if needed, then starts the workbench. No separate `cxu doctor` call needed.
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
cxu serve --port 43110 --data-dir ~/.codex-ultra
|
|
26
|
-
cxu --help
|
|
27
|
-
cxu --version
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Environment doctor
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
cxu doctor
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Checks Bun plus the `codex` / `claude` / `agy` / `grok` / `pi` / `opencode` CLIs. `codex` is REQUIRED; the rest are optional (Bun is only needed for TypeScript-track execution). For Codex the doctor also verifies the managed standalone daemon (`~/.codex/packages/standalone/current/`) that the workbench app-server boots from — an npm-only Codex install is flagged with a `⚠` plus the official installer command. Missing tools print their official install command, and on a TTY you get an interactive prompt:
|
|
37
|
-
|
|
38
|
-
- `[a]` auto-install every missing tool with an official installer
|
|
39
|
-
- `[s]` skip and start the workbench (default)
|
|
40
|
-
- `[m]` show manual installation commands
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
cxu doctor --yes # non-interactive one-click install (CI-friendly)
|
|
44
|
-
cxu doctor --no-prompt
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Exit code is `2` when Codex CLI is absent.
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
cxu install [tool] # print install command only, changes nothing
|
|
51
|
-
cxu install [tool] --yes # run the official installer
|
|
52
|
-
cxu install --all --yes # one-click: install every missing tool
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Library: file + AST toolkit
|
|
56
|
-
|
|
57
|
-
The same package is importable as a pure-TypeScript toolkit (runs on plain Node.js, zero embedded binaries):
|
|
58
|
-
|
|
59
|
-
- Single-step tools: `read_file`, `edit_file`, `grep_search`, `apply_patch`, `find_files`, `file_outline`, `find_definition`, `find_references`, `rename_symbol`, and 20+ more.
|
|
60
|
-
- AST via portable WebAssembly (`web-tree-sitter` + `tree-sitter-wasms`): TypeScript, TSX, JavaScript, Python, Rust, Go, Zig, JSON, TOML, YAML, Bash. `c` / `cpp` / `java` / `c_sharp` fall back to the built-in regex outline with the same output shape.
|
|
61
|
-
- Complex TypeScript tracks (`run_bun`) detect Bun on demand and print a cross-platform install hint instead of crashing.
|
|
62
|
-
|
|
63
|
-
Windows (PowerShell): `powershell -c "irm bun.sh/install.ps1 | iex"`
|
|
64
|
-
macOS / Linux: `curl -fsSL https://bun.sh/install | bash`
|
|
65
|
-
Other: use your system package manager, or see https://bun.sh
|
|
66
|
-
|
|
67
|
-
## Platform support
|
|
68
|
-
|
|
69
|
-
Windows / Linux / macOS (Intel + Apple Silicon / ARM). The server is compiled on your machine with your local Bun (`bun build --compile`, current platform), so there are no per-platform packages to download; the file/AST library itself is pure TypeScript + `.wasm` and works everywhere Node `>=18` runs.
|
|
70
|
-
|
|
71
|
-
## Build / publish check (maintainers)
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
npm --workspace @codex-ultra/cxu run vendor
|
|
75
|
-
npm --workspace @codex-ultra/cxu run build
|
|
76
|
-
npm pack --dry-run --workspace @codex-ultra/cxu
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
`scripts/build.mjs` prefers `bun build --minify` (target node, ESM) and falls back to esbuild with `minify: true` when Bun is absent. `prepack` runs build and then `scripts/obfuscate.mjs`, so publishing ships a minified + obfuscated bundle.
|
|
80
|
-
|
|
81
|
-
Only `dist/` (+ `.d.ts`), `wasm/`, `web-dist/`, `server-bundle/` (the pre-bundled server JS compiled locally on first run), `README.md`, `LICENSE` ship. No `.exe` / `.dll` / `.so` / `.dylib`, no prebuilt binaries.
|
|
82
|
-
|
|
83
|
-
## Links
|
|
84
|
-
|
|
85
|
-
- Repository: https://github.com/layola13/codex-ultra
|
|
86
|
-
- Issues: https://github.com/layola13/codex-ultra/issues
|
|
1
|
+
# @codex-ultra/cxu
|
|
2
|
+
|
|
3
|
+
One-command launcher for the **Codex Ultra** workbench: locally-compiled server + web UI. `cxu` starts it all.
|
|
4
|
+
|
|
5
|
+
Codex Ultra is a local-first workbench for Codex CLI (backed by `codex app-server`): React + MUI three-column UI (history, chat, composer, config/tools/files inspector), third-party relay channels, membership with per-member relay whitelists, usage & billing, sidechat tabs, SSH workspaces, real Codex slash commands (`/review`, `/compact`, `/resume`, `/model`, `/skills`, `/plugins`, `/mcp`, …), theme plugins, and an Electron desktop shell. This package ships the server binary (per-platform optional packages) together with the built web UI and starts them with a single command.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i -g @codex-ultra/cxu
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Requires Node `>=18` and Bun `>=1.1`. No prebuilt binaries to download: `cxu` compiles the server for your machine with your local Bun on first run (one-time per version, cached under `~/.cxu/server/`).
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
cxu
|
|
19
|
+
# open http://127.0.0.1:43110/
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The first run inspects your machine, offers to install what's missing, compiles the server locally if needed, then starts the workbench. No separate `cxu doctor` call needed.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
cxu serve --port 43110 --data-dir ~/.codex-ultra
|
|
26
|
+
cxu --help
|
|
27
|
+
cxu --version
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Environment doctor
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
cxu doctor
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Checks Bun plus the `codex` / `claude` / `agy` / `grok` / `pi` / `opencode` CLIs. `codex` is REQUIRED; the rest are optional (Bun is only needed for TypeScript-track execution). For Codex the doctor also verifies the managed standalone daemon (`~/.codex/packages/standalone/current/`) that the workbench app-server boots from — an npm-only Codex install is flagged with a `⚠` plus the official installer command. Missing tools print their official install command, and on a TTY you get an interactive prompt:
|
|
37
|
+
|
|
38
|
+
- `[a]` auto-install every missing tool with an official installer
|
|
39
|
+
- `[s]` skip and start the workbench (default)
|
|
40
|
+
- `[m]` show manual installation commands
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
cxu doctor --yes # non-interactive one-click install (CI-friendly)
|
|
44
|
+
cxu doctor --no-prompt
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Exit code is `2` when Codex CLI is absent.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
cxu install [tool] # print install command only, changes nothing
|
|
51
|
+
cxu install [tool] --yes # run the official installer
|
|
52
|
+
cxu install --all --yes # one-click: install every missing tool
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Library: file + AST toolkit
|
|
56
|
+
|
|
57
|
+
The same package is importable as a pure-TypeScript toolkit (runs on plain Node.js, zero embedded binaries):
|
|
58
|
+
|
|
59
|
+
- Single-step tools: `read_file`, `edit_file`, `grep_search`, `apply_patch`, `find_files`, `file_outline`, `find_definition`, `find_references`, `rename_symbol`, and 20+ more.
|
|
60
|
+
- AST via portable WebAssembly (`web-tree-sitter` + `tree-sitter-wasms`): TypeScript, TSX, JavaScript, Python, Rust, Go, Zig, JSON, TOML, YAML, Bash. `c` / `cpp` / `java` / `c_sharp` fall back to the built-in regex outline with the same output shape.
|
|
61
|
+
- Complex TypeScript tracks (`run_bun`) detect Bun on demand and print a cross-platform install hint instead of crashing.
|
|
62
|
+
|
|
63
|
+
Windows (PowerShell): `powershell -c "irm bun.sh/install.ps1 | iex"`
|
|
64
|
+
macOS / Linux: `curl -fsSL https://bun.sh/install | bash`
|
|
65
|
+
Other: use your system package manager, or see https://bun.sh
|
|
66
|
+
|
|
67
|
+
## Platform support
|
|
68
|
+
|
|
69
|
+
Windows / Linux / macOS (Intel + Apple Silicon / ARM). The server is compiled on your machine with your local Bun (`bun build --compile`, current platform), so there are no per-platform packages to download; the file/AST library itself is pure TypeScript + `.wasm` and works everywhere Node `>=18` runs.
|
|
70
|
+
|
|
71
|
+
## Build / publish check (maintainers)
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm --workspace @codex-ultra/cxu run vendor
|
|
75
|
+
npm --workspace @codex-ultra/cxu run build
|
|
76
|
+
npm pack --dry-run --workspace @codex-ultra/cxu
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`scripts/build.mjs` prefers `bun build --minify` (target node, ESM) and falls back to esbuild with `minify: true` when Bun is absent. `prepack` runs build and then `scripts/obfuscate.mjs`, so publishing ships a minified + obfuscated bundle.
|
|
80
|
+
|
|
81
|
+
Only `dist/` (+ `.d.ts`), `wasm/`, `web-dist/`, `server-bundle/` (the pre-bundled server JS compiled locally on first run), `README.md`, `LICENSE` ship. No `.exe` / `.dll` / `.so` / `.dylib`, no prebuilt binaries.
|
|
82
|
+
|
|
83
|
+
## Links
|
|
84
|
+
|
|
85
|
+
- Repository: https://github.com/layola13/codex-ultra
|
|
86
|
+
- Issues: https://github.com/layola13/codex-ultra/issues
|
package/dist/cli-doctor.d.ts
CHANGED
|
@@ -23,8 +23,11 @@ type ToolDef = {
|
|
|
23
23
|
envVars: string[];
|
|
24
24
|
extraDirs: string[];
|
|
25
25
|
install: InstallSpec;
|
|
26
|
+
minVersion?: string;
|
|
26
27
|
};
|
|
28
|
+
export declare const BUN_MIN_VERSION = "1.4.0";
|
|
27
29
|
export declare function installCommandFor(def: ToolDef): string;
|
|
30
|
+
export declare function compareVersions(a: string, b: string): number;
|
|
28
31
|
export declare function doctor(): {
|
|
29
32
|
statuses: DoctorStatus[];
|
|
30
33
|
codexReady: boolean;
|