hikari 1ae440659c
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 58s
CI / Lint & Test (push) Successful in 16m33s
CI / Build Linux (push) Successful in 20m56s
CI / Build Windows (cross-compile) (push) Successful in 31m1s
feat: fix git window and add pretty diff viewer (#178)
## Summary

- **Fix git window "Not a git repository" error** — The working directory received from Claude Code is a WSL Linux path (e.g. `/home/naomi/...`), but git commands were being run as native Windows processes with `.current_dir()`. Windows can't resolve WSL paths, causing `git rev-parse --git-dir` to fail. Fixed by routing git commands through `wsl -- git -C <path>` when the working directory starts with `/`.

- **Add syntax highlighting and line numbers to diff view** — Replaced the raw `<pre>` block with a proper `DiffViewer` component featuring:
  - Old/new line number columns with correct tracking across hunks
  - Colour-coded gutter (`+`/`-`) with green/red row backgrounds
  - Syntax highlighting via `highlight.js` using the detected file language, respecting all app themes via `--hljs-*` CSS variables
  - Styled hunk headers and file headers

## New files

- `src/lib/utils/diffParser.ts` — pure diff parsing logic
- `src/lib/utils/diffParser.test.ts` — 30 tests covering all line types, line number tracking, and language detection
- `src/lib/components/DiffViewer.svelte` — the pretty diff viewer component

 This pull request was created with help from Hikari~ 🌸

Reviewed-on: #178
Co-authored-by: Hikari <hikari@nhcarrigan.com>
Co-committed-by: Hikari <hikari@nhcarrigan.com>
2026-03-06 09:19:16 -08:00
2026-01-15 20:06:47 -08:00
2026-01-14 18:24:35 -08:00
2026-01-14 18:24:35 -08:00
2026-01-14 18:24:35 -08:00
2026-03-03 20:22:54 -08:00
2026-01-14 18:24:35 -08:00
2026-01-14 18:24:35 -08:00
2026-01-14 18:24:35 -08:00
2026-01-14 20:56:28 -08:00

hikari-desktop

Desktop companion application featuring Hikari.

Live Version

This page is currently deployed. View the live website.

Feedback and Bugs

If you have feedback or a bug report, please log a ticket on our forum.

Contributing

If you would like to contribute to the project, you may create a Pull Request containing your proposed changes and we will review it as soon as we are able! Please review our contributing guidelines first.

Code of Conduct

Before interacting with our community, please read our Code of Conduct.

License

This software is licensed under our global software license.

Copyright held by Naomi Carrigan.

Contact

We may be contacted through our Chat Server or via email at contact@nhcarrigan.com

S
Description
A cute desktop wrapper for Claude Code with an anime girl.
Readme 23 MiB
v1.14.0 Latest
2026-04-13 16:18:51 -07:00
Languages
TypeScript 35.8%
Svelte 33.7%
Rust 29.5%
CSS 0.6%
JavaScript 0.2%
Other 0.1%