James Peter
4112688369
fix(cli/windows): stop appending second .exe in cache/platform paths (use exact targetTriple name)
2025-09-11 22:59:26 +10:00
James Peter
8565fdd3a6
fix(cli/windows): robust unzip in runtime bootstrap (powershell full-path, pwsh, tar fallback; extract to user cache)
2025-09-11 22:35:17 +10:00
James Peter
7c4e0c4dee
fix(cli/windows): always print bootstrap error; remove debug gate
...
Also:
- chore(release): delete legacy stage_release.sh and remove references
- ci(release): add ESM integrity guard for bin/coder.js in npm pack tarball
- docs(npm): clarify prepublishOnly guidance
2025-09-11 22:18:38 +10:00
James Peter
c8b0bd1261
fix(codex-cli/bin): coder.js is pure ESM — replace internal require() with ESM fs APIs; avoid require in isWSL()
2025-09-11 20:02:17 +10:00
James Peter
5498f79c15
fix(cli/windows): avoid EBUSY/EPERM on global upgrades by keeping native .exe in per-user cache; launcher prefers cache\n\n- Postinstall: on Windows, install binary to %LocalAppData%\just-every\code\<version> and do not leave a copy in node_modules.\n- Launcher: run from cache when available; mirror into node_modules only on Unix.\n- Outcome: global npm upgrades no longer fail when the CLI is running.
2025-09-11 10:06:49 +10:00
James Peter
dca72e915f
fix(cli/coder): de-duplicate validateBinary to avoid ESM redeclare error under Bun/Node 23
2025-08-30 14:15:21 +10:00
James Peter
1723dbf3d4
fix(cli/coder): make bootstrap helper async; fix Bun global install when postinstall is blocked\n\nBun can block postinstall; our coder entry bootstraps the native binary.\nIt used an await inside a non-async function, causing a syntax error under Node.\nNow the helper is async and the top-level call awaits it correctly.
2025-08-30 13:59:41 +10:00
James Peter
2115b55267
fix(cli/install): bootstrap native binary on first run; drop unpublished win optional dep\n\n- Add self-bootstrap in bin/coder.js to fetch validated platform binary when postinstall is blocked (e.g., Bun global)\n- Prefer cached binary, then optional platform pkg, then GitHub release download\n- Remove @just-every/code-win32-x64 from optionalDependencies to avoid Bun 404 noise on non-Windows installs\n- Build verified with ./build-fast.sh
2025-08-30 13:39:39 +10:00
James Peter
05047a013c
fix(cli/bin): stop delegating to system 'code' (VS Code) when invoked via npm/npx; always run bundled binary and show path\n\n- Remove fragile delegation heuristic that caused to open VS Code\n- Print a concise notice under npx showing the exact binary path in use\n- Keep postinstall collision handling for global installs unchanged\n\nThis restores expected behavior and makes collisions visible during npx runs.
2025-08-29 15:44:56 +10:00
James Peter
865393316e
chore: commit local work (CLI + core + TUI)
2025-08-29 14:20:24 +10:00
James Peter
029ce20a38
cli(downloads): verify Content-Length, add retries/timeouts; improve WSL guidance\n\n- postinstall: bytes count vs Content-Length, inactivity/absolute timeouts, retry with backoff\n- coder.js: WSL detection + tailored guidance when binaries missing/invalid
2025-08-20 07:46:25 +10:00
James Peter
48d64f24d5
cli(windows): guard against corrupt/empty downloads and improve spawn errors\n\n- postinstall: robust download + header validation (MZ/ELF/Mach-O), delete on failure\n- coder.js: pre-spawn binary header check; clearer EFTYPE/ENOEXEC/EACCES guidance\n- reduces confusing Windows EFTYPE crashes from partial downloads
2025-08-19 13:51:46 +10:00
James Peter
b9adced314
refactor(naming): switch binaries and artifacts from 'coder' to 'code'; keep 'coder' as fallback alias only. Update workflows, scripts, and postinstall.
2025-08-17 20:45:10 +10:00
James Peter
5369437229
chore: commit pending changes on main (CLI, TUI, core, docs)
2025-08-17 18:55:58 +10:00
James Peter
424c9d4153
chore(rebrand): rename user-facing Coder → Code; update links to new repo
...
- Update TUI titles, labels, messages
- Update onboarding copy and links
- Update MCP titles and human-output banner
- Update README branding and URLs
- postinstall: switch release URL to just-every/code; offer optional 'code' alias without collisions
- package.json repository URL updated
Note: CLI command remains 'coder' to avoid VS Code collision; optional alias offered interactively.
2025-08-16 12:10:29 +10:00
James Peter
0cb9e4fedc
fix: handle permission errors for binaries on Linux/WSL
...
- Add automatic chmod +x when running coder.js on Unix systems
- Fix postinstall script to use octal notation for chmod (0o755)
- Add better error messages when binary is not executable
- Always try to fix permissions for existing binaries
- Bump version to 0.1.2 for hotfix release
2025-08-12 06:55:01 +10:00
James Peter
3e3a46e3f4
feat: add coder fork enhancements - mouse scrolling, glitch animation, and improved TUI
2025-08-11 21:51:46 +10:00