GitNexus/gitnexus/src/cli
Copilot 1272774ec2
fix(setup): prefer .cmd/.bat wrapper from Windows where output (#1299)
* Initial plan

* fix(setup): prefer .cmd wrapper from Windows `where` output

On Windows, `where gitnexus` returns multiple entries including the
POSIX shell script and the .cmd wrapper. The code previously took the
first line (shell script), which cannot be spawned directly by Node.js
child_process on Windows. Now we prefer the .cmd entry when available.

Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/e6b54037-87fb-4195-b157-4cfcafce5f5d

Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com>

* fix(setup): also handle .bat wrappers and add fallback test

Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/e6b54037-87fb-4195-b157-4cfcafce5f5d

Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com>

* revert package-lock.json and add CRLF/.bat/.CMD test variants

- Revert package-lock.json to match base (no dependency changes needed)
- Add CRLF line ending test (Windows `where` produces \r\n)
- Add .bat wrapper test
- Add uppercase .CMD extension test (case-insensitive regex)

Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/7ed71368-b3e8-44de-9f13-85af4effaf25

Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com>

* chore: format code

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com>
Co-authored-by: Gergo Magyar <gergomagyar@icloud.com>
2026-05-04 08:25:38 +01:00
..
ai-context.ts fix(cli): only match <!-- gitnexus:* --> markers at section position (#1041) (#1042) 2026-04-23 07:58:07 +01:00
analyze.ts fix(cli): --skip-git treats cwd as index root instead of walking up to parent git repo (#1245) 2026-05-01 09:49:48 +01:00
augment.ts feat: configure prettier with pre-commit hook (#563) 2026-03-28 14:58:04 +00:00
clean.ts feat(cli): gitnexus remove <target> to unindex a registered repo by name or path (#664) (#1003) 2026-04-21 11:52:59 +01:00
doctor.ts fix: add platform-aware semantic fallback (#1150) 2026-04-28 12:21:25 +01:00
eval-server.ts feat: configure prettier with pre-commit hook (#563) 2026-03-28 14:58:04 +00:00
group.ts feat: cross-repo impact analysis (#794) — @repo MCP routing + group resources (#984) 2026-04-20 11:55:07 +01:00
index-repo.ts fix(cli): keep GitNexus ignores inside .gitnexus (#1248) 2026-05-01 16:46:05 +01:00
index.ts fix(cli): --skip-git treats cwd as index root instead of walking up to parent git repo (#1245) 2026-05-01 09:49:48 +01:00
lazy-action.ts feat: configure prettier with pre-commit hook (#563) 2026-03-28 14:58:04 +00:00
list.ts feat(cli): analyze --name <alias> + duplicate-name guard for the repo registry (#955) 2026-04-19 07:23:48 +01:00
mcp.ts feat: configure prettier with pre-commit hook (#563) 2026-03-28 14:58:04 +00:00
remove.ts feat(cli): gitnexus remove <target> to unindex a registered repo by name or path (#664) (#1003) 2026-04-21 11:52:59 +01:00
serve.ts fix(server): return clean CORS rejection instead of 500 error (#646) 2026-04-06 07:45:19 +01:00
setup.ts fix(setup): prefer .cmd/.bat wrapper from Windows where output (#1299) 2026-05-04 08:25:38 +01:00
skill-gen.ts feat: configure eslint with unused import removal (#564) 2026-03-28 15:28:09 +00:00
status.ts feat: configure prettier with pre-commit hook (#563) 2026-03-28 14:58:04 +00:00
tool.ts fix: expose detect-changes in direct CLI (#892) 2026-04-20 17:12:25 +01:00
wiki.ts fix(wiki): Azure OpenAI compat and HTML viewer script injection (#618) 2026-04-01 21:30:43 +05:30