git-coco 0.56.0 → 0.58.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 (extends to `coco commit --split` too — every group's title respects the spec)
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** - Thirteen top-level views (history, status, diff, compose, branches, tags, stash, worktrees, pull-request, conflicts, reflog, bisect, 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`
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
22
  - 🎯 **`--repo <dir>` global flag** - Drive any coco command against any repository without `cd`-ing first
23
23
  - 📦 **Package Manager Friendly** - Works with npm, yarn, and pnpm
24
24
  - 👥 **Team Ready** - Shared configurations and enterprise deployment
@@ -37,7 +37,7 @@ coco init
37
37
 
38
38
  # Generate your first commit
39
39
  git add .
40
- coco -i
40
+ coco commit -i
41
41
  ```
42
42
 
43
43
  ## Commands
@@ -50,6 +50,8 @@ coco -i
50
50
  - **`coco ui`** - Open the full-screen Git workstation TUI
51
51
  - **`coco init`** - Interactive setup wizard
52
52
 
53
+ > **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).
54
+
53
55
  ## Usage Examples
54
56
 
55
57
  ### Basic Workflow
@@ -59,23 +61,23 @@ coco -i
59
61
  git add .
60
62
 
61
63
  # Generate commit message (interactive mode recommended)
62
- coco -i
64
+ coco commit -i
63
65
 
64
66
  # Or use stdout mode
65
- git commit -m "$(coco)"
67
+ git commit -m "$(coco commit)"
66
68
  ```
67
69
 
68
70
  ### Conventional Commits
69
71
 
70
72
  ```bash
71
73
  # Enable conventional commits format
72
- coco --conventional
74
+ coco commit --conventional
73
75
 
74
76
  # With additional context
75
- coco -a "Fixes login timeout" --conventional
77
+ coco commit -a "Fixes login timeout" --conventional
76
78
 
77
79
  # Include ticket from branch name
78
- coco --append-ticket --conventional
80
+ coco commit --append-ticket --conventional
79
81
  ```
80
82
 
81
83
  ### Team Workflows
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { Color } from 'chalk';
10
10
  import { TiktokenModel as TiktokenModel$1 } from 'tiktoken';
11
11
 
12
12
  type LogInkBorderStyle = 'round' | 'single' | 'classic';
13
- type LogInkThemePreset = 'default' | 'monochrome' | 'catppuccin' | 'gruvbox' | 'dracula' | 'nord' | 'solarized-dark' | 'tokyo-night' | 'one-dark' | 'rose-pine' | 'kanagawa' | 'everforest' | 'monokai' | 'synthwave' | 'ayu-dark' | 'palenight' | 'github-dark' | 'horizon' | 'nightfox' | 'carbonfox' | 'tokyonight-storm' | 'catppuccin-latte' | 'solarized-light' | 'github-light' | 'iceberg' | 'material-ocean' | 'moonlight' | 'poimandres' | 'vitesse-dark' | 'vesper' | 'flexoki' | 'mellow';
13
+ type LogInkThemePreset = 'default' | 'monochrome' | 'catppuccin' | 'gruvbox' | 'dracula' | 'nord' | 'solarized-dark' | 'tokyo-night' | 'one-dark' | 'rose-pine' | 'kanagawa' | 'everforest' | 'monokai' | 'synthwave' | 'ayu-dark' | 'palenight' | 'github-dark' | 'horizon' | 'nightfox' | 'carbonfox' | 'tokyonight-storm' | 'catppuccin-latte' | 'solarized-light' | 'github-light' | 'iceberg' | 'material-ocean' | 'moonlight' | 'poimandres' | 'vitesse-dark' | 'vesper' | 'flexoki' | 'mellow' | 'night-owl' | 'cobalt2' | 'oceanic-next' | 'catppuccin-macchiato' | 'gruvbox-light' | 'tokyo-night-day' | 'one-light' | 'ayu-light' | 'rose-pine-dawn' | 'everforest-light' | 'vitesse-light' | 'dayfox' | 'night-owl-light' | 'flexoki-light' | 'material-lighter' | 'papercolor-light' | 'modus-operandi' | 'quiet-light';
14
14
  type LogInkThemeColors = {
15
15
  accent?: string;
16
16
  border?: string;
@@ -22,6 +22,13 @@ type LogInkThemeColors = {
22
22
  info?: string;
23
23
  muted?: string;
24
24
  selection?: string;
25
+ /**
26
+ * Foreground for text sitting on the `selection` background. Derived
27
+ * automatically from `selection` (black on light, white on dark) so the
28
+ * selected row stays readable regardless of the user's terminal default
29
+ * foreground — but can be overridden per theme via `options.colors`.
30
+ */
31
+ selectionForeground?: string;
25
32
  success?: string;
26
33
  warning?: string;
27
34
  };
@@ -356,10 +363,13 @@ type BaseConfig = {
356
363
  workspace?: {
357
364
  /**
358
365
  * Directories to scan for git repositories. Each entry may use a
359
- * `~` prefix; resolved against the user's home directory. Defaults
360
- * to `['~/code']` when omitted.
366
+ * `~` prefix; resolved against the user's home directory. When
367
+ * omitted (and no `--root` flag is passed), the workspace scans the
368
+ * current working directory — so a bare `coco` / `coco ws` discovers
369
+ * repos wherever you launched it. Set this to pin a fixed tree (e.g.
370
+ * `["~/code"]`) regardless of where you run from.
361
371
  *
362
- * @default ['~/code']
372
+ * (No static `@default` — the effective default is the runtime cwd.)
363
373
  */
364
374
  roots?: string[];
365
375
  /**