git-coco 0.58.0 → 0.59.0

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/README.md CHANGED
@@ -19,6 +19,8 @@ An AI-powered git assistant that generates meaningful commit messages, creates c
19
19
  - 🔧 **Commitlint Integration** - Seamless integration with your existing commitlint configuration
20
20
  - 🏠 **Local AI Support** - Run completely offline with Ollama (no API costs, full privacy)
21
21
  - 🖥️ **Coco UI Git Workstation** - Sixteen top-level views (history, status, diff, compose, branches, tags, stash, worktrees, pull-request, PR triage, issues, conflicts, reflog, bisect, submodules, changelog) reachable via `g`-prefixed chords, with an interactive command palette (`:`), global search (`/`), and one-keystroke workflows: `S` split staged changes, `L` generate a changelog, `C` create a PR seeded from changelog, `E` open the commit draft in `$EDITOR`
22
+ - 🗂️ **Multi-Repo Workspace** - `coco workspace` (alias `ws`) scans your current directory for git repos and gives you a sortable, filterable overview — branch, dirty count, ahead/behind, open PR count — then `Enter` drills into any one as a full `coco ui` session
23
+ - 🎨 **49 Color Themes** - Catppuccin, Gruvbox, Dracula, Tokyo Night, Solarized, and more (17 light) — browse and **live-preview** them with the in-app theme picker (`gC`), then apply with one keystroke; or set one via `coco ui --theme <name>` / config. `NO_COLOR` honored
22
24
  - 🎯 **`--repo <dir>` global flag** - Drive any coco command against any repository without `cd`-ing first
23
25
  - 📦 **Package Manager Friendly** - Works with npm, yarn, and pnpm
24
26
  - 👥 **Team Ready** - Shared configurations and enterprise deployment
@@ -48,6 +50,9 @@ coco commit -i
48
50
  - **`coco review`** - AI-powered code review of your changes
49
51
  - **`coco log`** - Explore commit history with graph, filters, JSON output, and commit details
50
52
  - **`coco ui`** - Open the full-screen Git workstation TUI
53
+ - **`coco workspace`** (alias `ws`) - Multi-repo overview TUI; drill into any repo as a `coco ui` session
54
+ - **`coco issues`** / **`coco prs`** - List GitHub issues / pull requests (stdout or interactive triage)
55
+ - **`coco doctor`** - Diagnose your environment, config, and provider setup
51
56
  - **`coco init`** - Interactive setup wizard
52
57
 
53
58
  > **Smart default (0.57.0+):** running `coco` with **no subcommand** routes by environment — `coco ui` inside a git repo, `coco workspace` outside one, or `coco init` on a fresh install. It no longer defaults to `commit`; use `coco commit` for messages (or `--commit` / `COCO_DEFAULT=commit` to restore the old default).
@@ -111,10 +116,11 @@ coco log --format json
111
116
  ```text
112
117
  g h history g c compose g x conflicts
113
118
  g s status g b branches g r reflog
114
- g d diff g t tags < back
115
- g z stash Esc back / close modal
116
- g w worktrees ? help overlay
117
- g p pull request : command palette
119
+ g d diff g t tags g C theme picker
120
+ g w worktrees g z stash < back
121
+ g p pull request Esc back / close modal
122
+ ? help overlay
123
+ : command palette
118
124
  ```
119
125
 
120
126
  The command palette (`:`) is an interactive launcher with fuzzy filter and recently-used at the top — every keybinding and workflow action is reachable from there. `/` searches the active view (history, branches, tags, stash, or reflog). On branches, tags, and history, press `m` to mark a ref as the compare base — then `Enter` on a second ref opens a `git diff <base>..<head>` view. See the [Coco UI](https://github.com/gfargo/coco/wiki/Coco-UI) and [TUI Navigation](https://github.com/gfargo/coco/wiki/TUI-Navigation) wiki pages for the full keymap.
package/dist/index.d.ts CHANGED
@@ -31,6 +31,21 @@ type LogInkThemeColors = {
31
31
  selectionForeground?: string;
32
32
  success?: string;
33
33
  warning?: string;
34
+ /**
35
+ * Optional syntax-highlight token colors for the diff view (#1117
36
+ * follow-up). All optional: when a slot is unset the resolver
37
+ * (`resolveSyntaxColor`) falls back to a sensible ANSI default, so
38
+ * themes get highlighting for free and only need to define these to
39
+ * customize. `noColor` themes skip syntax coloring entirely.
40
+ */
41
+ syntaxKeyword?: string;
42
+ syntaxString?: string;
43
+ syntaxComment?: string;
44
+ syntaxNumber?: string;
45
+ syntaxType?: string;
46
+ syntaxFunction?: string;
47
+ syntaxConstant?: string;
48
+ syntaxProperty?: string;
34
49
  };
35
50
  type LogInkThemeConfig = {
36
51
  ascii?: boolean;
@@ -356,6 +371,17 @@ type BaseConfig = {
356
371
  * @default true
357
372
  */
358
373
  dateBucketing?: boolean;
374
+ /**
375
+ * Syntax-highlight code in the diff view using tree-sitter
376
+ * (TypeScript / TSX / JavaScript today). On by default. Highlighting
377
+ * degrades gracefully — unsupported languages, non-ASCII lines, and
378
+ * parse failures fall back to the plain add/remove coloring — so the
379
+ * only reason to disable it is preference or a very low-color
380
+ * terminal. Set to `false` to opt out.
381
+ *
382
+ * @default true
383
+ */
384
+ syntaxHighlight?: boolean;
359
385
  };
360
386
  /**
361
387
  * Multi-repo workspace surface settings (`coco workspace`).