git-coco 0.57.0 → 0.58.1

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
@@ -37,7 +39,7 @@ coco init
37
39
 
38
40
  # Generate your first commit
39
41
  git add .
40
- coco -i
42
+ coco commit -i
41
43
  ```
42
44
 
43
45
  ## Commands
@@ -48,8 +50,13 @@ coco -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
 
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).
59
+
53
60
  ## Usage Examples
54
61
 
55
62
  ### Basic Workflow
@@ -59,23 +66,23 @@ coco -i
59
66
  git add .
60
67
 
61
68
  # Generate commit message (interactive mode recommended)
62
- coco -i
69
+ coco commit -i
63
70
 
64
71
  # Or use stdout mode
65
- git commit -m "$(coco)"
72
+ git commit -m "$(coco commit)"
66
73
  ```
67
74
 
68
75
  ### Conventional Commits
69
76
 
70
77
  ```bash
71
78
  # Enable conventional commits format
72
- coco --conventional
79
+ coco commit --conventional
73
80
 
74
81
  # With additional context
75
- coco -a "Fixes login timeout" --conventional
82
+ coco commit -a "Fixes login timeout" --conventional
76
83
 
77
84
  # Include ticket from branch name
78
- coco --append-ticket --conventional
85
+ coco commit --append-ticket --conventional
79
86
  ```
80
87
 
81
88
  ### Team Workflows
@@ -109,10 +116,11 @@ coco log --format json
109
116
  ```text
110
117
  g h history g c compose g x conflicts
111
118
  g s status g b branches g r reflog
112
- g d diff g t tags < back
113
- g z stash Esc back / close modal
114
- g w worktrees ? help overlay
115
- 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
116
124
  ```
117
125
 
118
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
@@ -363,10 +363,13 @@ type BaseConfig = {
363
363
  workspace?: {
364
364
  /**
365
365
  * Directories to scan for git repositories. Each entry may use a
366
- * `~` prefix; resolved against the user's home directory. Defaults
367
- * 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.
368
371
  *
369
- * @default ['~/code']
372
+ * (No static `@default` — the effective default is the runtime cwd.)
370
373
  */
371
374
  roots?: string[];
372
375
  /**