@corbat-tech/coco 1.2.2 → 1.3.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 +65 -8
- package/dist/cli/index.js +3386 -2155
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +802 -190
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://img.shields.io/badge/v1.2.
|
|
2
|
+
<img src="https://img.shields.io/badge/v1.2.3-stable-blueviolet?style=for-the-badge" alt="Version">
|
|
3
3
|
<img src="https://img.shields.io/badge/TypeScript-5.7-3178c6?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript">
|
|
4
4
|
<img src="https://img.shields.io/badge/Node.js-22+-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" alt="Node.js">
|
|
5
5
|
<img src="https://img.shields.io/badge/License-MIT-f5c542?style=for-the-badge" alt="MIT License">
|
|
@@ -53,6 +53,56 @@ coco "Add a REST API endpoint for user authentication with tests"
|
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
56
|
+
## What You Can Do
|
|
57
|
+
|
|
58
|
+
Coco works from the interactive REPL (`coco`). You can use **slash commands** or just **talk naturally** — Coco understands both.
|
|
59
|
+
|
|
60
|
+
### Slash Commands
|
|
61
|
+
|
|
62
|
+
| Command | What it does | Example |
|
|
63
|
+
|---------|-------------|---------|
|
|
64
|
+
| `/help` | Show available commands and usage | `/help review` |
|
|
65
|
+
| `/status` | Project status, git info, session stats | `/status` |
|
|
66
|
+
| `/review` | Code review with severity-rated findings | `/review --base main` |
|
|
67
|
+
| `/diff` | Visual diff with syntax highlighting | `/diff --staged` |
|
|
68
|
+
| `/ship` | Full release pipeline: review → test → lint → branch → version → commit → PR → CI → merge | `/ship --minor` |
|
|
69
|
+
| `/compact` | Reduce context when conversation gets long | `/compact` |
|
|
70
|
+
| `/clear` | Clear conversation history | `/clear` |
|
|
71
|
+
|
|
72
|
+
### Natural Language
|
|
73
|
+
|
|
74
|
+
You don't need to memorize commands. Just describe what you want:
|
|
75
|
+
|
|
76
|
+
| What you say | What happens |
|
|
77
|
+
|-------------|-------------|
|
|
78
|
+
| "review the code" / "revisa el código" | Runs `/review` |
|
|
79
|
+
| "let's ship it" / "publica los cambios" | Runs `/ship` |
|
|
80
|
+
| "how are we doing?" / "cómo va?" | Runs `/status` |
|
|
81
|
+
| "create a PR" / "crea un pull request" | Runs `/ship` |
|
|
82
|
+
| "show me the diff" / "muéstrame los cambios" | Runs `/diff` |
|
|
83
|
+
| "help" / "ayuda" | Runs `/help` |
|
|
84
|
+
|
|
85
|
+
### `/ship` — Release Pipeline
|
|
86
|
+
|
|
87
|
+
The most powerful command. Orchestrates the entire release flow in one step:
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
/ship # Full pipeline (10 steps)
|
|
91
|
+
/ship --skip-tests # Skip test step
|
|
92
|
+
/ship --draft # Create draft PR
|
|
93
|
+
/ship --patch # Force patch version bump
|
|
94
|
+
/ship --minor # Force minor version bump
|
|
95
|
+
/ship --major # Force major version bump
|
|
96
|
+
/ship --no-version # Skip version bumping
|
|
97
|
+
/ship -m "feat: add auth" # Pre-set commit message
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Pipeline: **Preflight → Review → Tests → Lint → Branch → Version → Commit → PR → CI → Merge & Release**
|
|
101
|
+
|
|
102
|
+
Each step is interactive — Coco asks before proceeding when decisions are needed. Press `Ctrl+C` at any point to cancel safely.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
56
106
|
## What Coco Does Well
|
|
57
107
|
|
|
58
108
|
### Quality Convergence Loop
|
|
@@ -66,7 +116,14 @@ Coco doesn't just generate code — it iterates until quality converges:
|
|
|
66
116
|
| 3 | 84 | Security patched, coverage improved to 82% |
|
|
67
117
|
| 4 | 91 | All green — quality converged ✅ |
|
|
68
118
|
|
|
69
|
-
The
|
|
119
|
+
The quality bar is yours to set:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
coco build --min-quality 90 # Per-run override
|
|
123
|
+
coco config set quality.minScore 90 # Persist in project config
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Default is **85** (senior-level). You can also configure max iterations, convergence threshold, coverage targets, and security requirements — see `coco config init`.
|
|
70
127
|
|
|
71
128
|
### 12-Dimension Quality Scoring
|
|
72
129
|
|
|
@@ -96,10 +153,10 @@ Bring your own API keys. Coco works with:
|
|
|
96
153
|
| Provider | Auth | Models |
|
|
97
154
|
|----------|------|--------|
|
|
98
155
|
| **Anthropic** | API key / OAuth PKCE | Claude Opus, Sonnet, Haiku |
|
|
99
|
-
| **OpenAI** | API key | GPT-
|
|
100
|
-
| **Google** | API key / gcloud ADC | Gemini
|
|
101
|
-
| **Ollama** | Local | Any local model |
|
|
102
|
-
| **LM Studio** | Local | Any GGUF model |
|
|
156
|
+
| **OpenAI** | API key | GPT-5.3 Codex, GPT-4.1, o4-mini |
|
|
157
|
+
| **Google** | API key / gcloud ADC | Gemini 3, 2.5 Pro/Flash |
|
|
158
|
+
| **Ollama** | Local | Any local model (8-24GB RAM) |
|
|
159
|
+
| **LM Studio** | Local | Any GGUF model (8-32GB RAM) |
|
|
103
160
|
| **Moonshot** | API key | Kimi models |
|
|
104
161
|
|
|
105
162
|
### Multi-Agent Architecture
|
|
@@ -120,7 +177,7 @@ Coco picks the right agent for each task automatically. When confidence is low,
|
|
|
120
177
|
A terminal-first experience with:
|
|
121
178
|
|
|
122
179
|
- **Ghost-text completion** — Tab to accept inline suggestions
|
|
123
|
-
- **Slash commands** — `/
|
|
180
|
+
- **Slash commands** — `/ship`, `/review`, `/diff`, `/status`, `/help`, `/compact`, `/clear`
|
|
124
181
|
- **Image paste** — `Ctrl+V` to paste screenshots for visual context
|
|
125
182
|
- **Intent recognition** — Natural language mapped to commands
|
|
126
183
|
- **Context management** — Automatic compaction when context grows large
|
|
@@ -194,7 +251,7 @@ src/
|
|
|
194
251
|
├── orchestrator/ # Phase coordinator + state recovery
|
|
195
252
|
├── phases/ # COCO phases (converge/orchestrate/complete/output)
|
|
196
253
|
├── quality/ # 12 quality analyzers + convergence engine
|
|
197
|
-
├── providers/ #
|
|
254
|
+
├── providers/ # 7 LLM providers + OAuth flows
|
|
198
255
|
├── tools/ # 20+ tool implementations
|
|
199
256
|
├── hooks/ # Lifecycle hooks (safety, lint, format, audit)
|
|
200
257
|
├── mcp/ # MCP server for external integration
|