James Peter
7588a47618
fix(cli/install): stop publishing 'code' bin; create wrapper only when safe and remove on collision\n\nPrevents overriding VS Code's 'code' CLI. Postinstall now:\n- Detects PATH collisions and removes legacy npm shim if present\n- Creates a 'code' wrapper -> 'coder' only when no conflict exists (npm/bun)\n- Keeps 'coder' as the canonical entrypoint\n\nThis matches the goal: never hijack an existing 'code' while preserving a friendly alias when safe.
2025-08-30 11:56:26 +10:00
James Peter
8bdb21e9ef
fix(cli/postinstall): print collision guidance to stderr and suggest 'coder' when VS Code's 'code' is on PATH
2025-08-30 10:52:06 +10:00
James Peter
dcedda693e
feat(tui/file-completion): prioritize CWD matches; related UX fixes
...
- TUI: prioritize files from current working directory in completions;
refine redraw debounce for lower latency; history/markdown rendering tweaks.
- Core/web_fetch: safer HTML sanitization, basic GitHub issue extraction,
and trimmed payload heuristics.
- Core/agent_tool: more robust command_exists on unix/windows; improve fallbacks.
- Fix: remove unused var in JSON-LD scan to silence warning.
Build: verified with ./build-fast.sh (no warnings).
2025-08-30 06:19:34 +10:00
James Peter
90904eda59
ui(tui/assistant): remove inner top/bottom padding from code cards\n\n- Drop 1-row inner pads; keep only top/bottom border\n- Update height math: +2 (borders) instead of +4\n- Adjust render skip/visible calculations to match\n- Keeps left/right padding and language title logic intact
2025-08-29 17:44:33 +10:00
James Peter
25c5a5945c
fix(cli/postinstall): if any other 'code' exists on PATH, remove our global shim and log clear guidance\n\n- Detect collisions using all candidates (which -a) not just the first\n- Remove npm global 'code' shim to avoid shadowing VS Code et al.\n- Keep 'coder' as the stable entrypoint; still create code-tui/exec wrappers\n- Offer optional 'vscode' alias to the detected editor path\n\nPairs with runtime change to always exec our bundled binary under npx.
2025-08-29 16:09:11 +10:00
James Peter
10116b03e5
packaging: move binaries to npm optionalDependencies per target; postinstall resolves platform package before GitHub fallback
2025-08-27 11:51:13 +10:00
James Peter
ebb15a6519
packaging: download single binary + create code-tui/code-exec wrappers; CI builds only 'code'
2025-08-27 11:06:08 +10:00
James Peter
43bbe5081d
release: slimmer assets + zstd fallback (.zst/.tar.gz)\n\n- Dual-format artifacts for macOS and Linux (.zst + .tar.gz)\n- Postinstall picks one: prefers .zst when zstd available, else .tar.gz\n- Windows stays .zip\n- Trim npm package (no embedded natives)\n- release-prod strips debuginfo; warning cleanup
2025-08-27 10:33:56 +10:00
James Peter
7f7f3f6bd9
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
e6646c4d72
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
fc17d512b7
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
bc7eb8fbec
chore(release): nudge workflow by touching postinstall.js (no functional change)
2025-08-17 20:31:10 +10:00
James Peter
9c5b23abeb
feat(cli): add 'coder' bin alias and postinstall notice if existing 'code' is not ours
2025-08-17 19:16:42 +10:00
James Peter
e1f9079b50
chore: commit pending changes on main (CLI, TUI, core, docs)
2025-08-17 18:55:58 +10:00
James Peter
dce25e11b5
feat(cli): switch npm bin to 'code' and handle collisions gracefully
...
- package.json: expose bin as 'code'
- postinstall: detect existing 'code'; create 'coder' fallback and optional 'vscode' alias to existing editor
- keep Rust binary named 'coder' for builds; wrappers updated accordingly
2025-08-16 12:17:04 +10:00
James Peter
434f13571f
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
2372c7122c
fix: postinstall script import assertion error
...
- Replace dynamic import of package.json with readFileSync for Node.js compatibility
- Fixes 'ERR_IMPORT_ATTRIBUTE_MISSING' error during npm install
- Bump version to 0.1.3
2025-08-12 07:58:23 +10:00
James Peter
d1641caa42
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
56c1bf910b
fix: reduce npm package size by downloading binaries on install
...
- Add postinstall script to download platform-specific binaries from GitHub releases
- Update package.json to exclude binaries from npm package (only include JS wrappers)
- Modify release workflow to upload binaries as GitHub release assets
- Fixes 'Payload Too Large' error when publishing to npm (was 219MB, now <1MB)
2025-08-11 22:49:21 +10:00