git-coco 0.44.0 → 0.46.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
@@ -18,7 +18,7 @@ An AI-powered git assistant that generates meaningful commit messages, creates c
18
18
  - 📋 **Conventional Commits** - Full support with automatic validation and formatting
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
- - 🖥️ **Coco UI Git Workstation** - Seven top-level views (history, status, diff, compose, branches, tags, stash) reachable via `g`-prefixed chords, with an interactive command palette (`:`) and global search (`/`)
21
+ - 🖥️ **Coco UI Git Workstation** - Twelve top-level views (history, status, diff, compose, branches, tags, stash, worktrees, pull-request, conflicts, reflog, bisect) reachable via `g`-prefixed chords, with an interactive command palette (`:`), global search (`/`), and cross-view flows like compare-two-refs and the bisect decision keys
22
22
  - 📦 **Package Manager Friendly** - Works with npm, yarn, and pnpm
23
23
  - 👥 **Team Ready** - Shared configurations and enterprise deployment
24
24
 
@@ -106,13 +106,15 @@ coco log --format json
106
106
  `coco ui` and `coco log -i` share a chord-driven navigation model. Press `g` and then a second key to jump anywhere; `<` (or `Esc`) pops the navigation stack back.
107
107
 
108
108
  ```text
109
- g h history g c compose < back
110
- g s status g b branches Esc back / close modal
111
- g d diff g t tags ? help overlay
112
- g z stash : command palette
109
+ g h history g c compose g x conflicts
110
+ g s status g b branches g r reflog
111
+ g d diff g t tags < back
112
+ g z stash Esc back / close modal
113
+ g w worktrees ? help overlay
114
+ g p pull request : command palette
113
115
  ```
114
116
 
115
- 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, or stash). See the [Coco UI](https://github.com/gfargo/coco/wiki/Coco-UI) wiki page for the full keymap.
117
+ 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.
116
118
 
117
119
  ## Configuration
118
120
 
package/dist/index.d.ts CHANGED
@@ -99,6 +99,35 @@ type BaseLLMService = {
99
99
  * @default 'balanced'
100
100
  */
101
101
  dynamicModelPreference?: DynamicModelPreference;
102
+ /**
103
+ * Opt-in fast paths that trade summary detail for speed. Each flag
104
+ * here replaces an LLM summary call with a deterministic templated
105
+ * extract for a specific file shape. Off by default — when enabled,
106
+ * you accept that final commit messages on those file shapes may be
107
+ * blander than LLM-generated summaries (the templated extract names
108
+ * structural changes only).
109
+ *
110
+ * Lossless optimizations (cache, trivial-shape skip on pure
111
+ * additions / deletions / renames / binary, sort discipline) ship
112
+ * default-on and are not configured here.
113
+ */
114
+ fastPath?: {
115
+ /**
116
+ * Replace the LLM summary with a templated heading extract for
117
+ * `.md` / `.mdx` / `.markdown` modification diffs that have clear
118
+ * heading-level structural changes. Diffs without structural
119
+ * signals (paragraph-only edits) still go to the LLM regardless
120
+ * of this flag.
121
+ *
122
+ * Bench impact (synthetic): collapses docs-update-shaped commits
123
+ * from ~24s cold to ~3ms (no LLM calls fire for the markdown
124
+ * files). Real-world wall-clock savings depend on per-call LLM
125
+ * latency.
126
+ *
127
+ * @default false
128
+ */
129
+ markdown?: boolean;
130
+ };
102
131
  };
103
132
  type Authentication = {
104
133
  type: 'None';
@@ -534,6 +563,19 @@ interface BaseParserOptions {
534
563
  * @default 6
535
564
  */
536
565
  maxConcurrent?: number;
566
+ /**
567
+ * Opt-in fast paths that trade summary detail for speed. Mirrors the
568
+ * `service.fastPath` shape. Off by default; lossless optimizations
569
+ * are not configured here.
570
+ */
571
+ fastPath?: {
572
+ /**
573
+ * Replace the LLM summary with a templated heading extract for
574
+ * markdown modification diffs with structural signals.
575
+ * @default false
576
+ */
577
+ markdown?: boolean;
578
+ };
537
579
  metadata?: Partial<LlmCallMetadata>;
538
580
  }
539
581
  interface BaseParserInput {