catenext 0.5.0 → 0.6.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/CHANGELOG.md +38 -0
- package/README.md +253 -109
- package/dist/index.js +6252 -3200
- package/dist/index.js.map +4 -4
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,44 @@ tag yang versinya belum ada di file ini. Perbarui juga [docs/STATUS.md](docs/STA
|
|
|
10
10
|
|
|
11
11
|
## [Belum dirilis]
|
|
12
12
|
|
|
13
|
+
## [0.6.1] - 2026-11-27
|
|
14
|
+
|
|
15
|
+
### Diubah
|
|
16
|
+
- Seed persona default **`matched`**: hanya subagent yang cocok dengan stack/repo
|
|
17
|
+
(mis. React → `fe`+`reviewer`; API Go → `be`+`reviewer`). Role lain (`tester`,
|
|
18
|
+
`security`, `scribe`, …) ditambah nanti lewat `catenext persona set` + `sync`.
|
|
19
|
+
- Interview `init` / `interview_setup`: opsi `matched` (rekomendasi), `minimal`, `all`, `none`.
|
|
20
|
+
- Deteksi stack Android (`build.gradle`, `AndroidManifest.xml`, …).
|
|
21
|
+
|
|
22
|
+
## [0.6.0] - 2026-11-27
|
|
23
|
+
|
|
24
|
+
### Ditambahkan
|
|
25
|
+
- SQLite state default `.catenext/catenext.sqlite` (migrasi sekali dari `state.json` → `*.bak`).
|
|
26
|
+
- `catenext init` interview (TTY) + `--yes`; seed persona `be`/`fe`/`tester`/`android`/`security`/`reviewer`/`scribe`.
|
|
27
|
+
- MCP/CLI: `interview_setup`, `session_brief` / `catenext brief`, `manage_roots` / `catenext root`, `graph_neighbors`, `symbol_search`, `catenext index`.
|
|
28
|
+
- Agent stubs English multi-platform (Claude/Cursor/Antigravity/OpenCode) + orchestrator stubs; stack in agent context.
|
|
29
|
+
- Root `CATENEXT.md` master prompt for new sessions; platform entry files (`CLAUDE.md`, `.cursor/CATENEXT.md`, …) redirect there, then `AGENTS.md`.
|
|
30
|
+
- `session_brief.pending_approvals` with approve/revise/next options for human chat gates.
|
|
31
|
+
- README Master Prompt awal untuk cold-start chat (salin-tempel), termasuk **Bootstrap (install/init)**.
|
|
32
|
+
- Parallel subagents wajib worktree terpisah; orchestrator memantau semua worktree, mengintegrasikan, lalu bertanya manusia: PR | merge | revise | next.
|
|
33
|
+
- Kickoff brainstorm + `sync-board` / skill `cross-agent-sync`; persona `scribe` + skill `docs-hygiene` untuk merapikan dokumen.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
- CLI and stdio MCP share local task, handoff, persona, and document state in SQLite.
|
|
37
|
+
- Compact MCP JSON (no pretty-print); board titles/blockers truncated unless `verbose`.
|
|
38
|
+
- `init`, `sync`, `verify`, and `remove` accept `--platform` for MCP setup.
|
|
39
|
+
- `approve` / `approve_plan` hanya lewat CLI manusia; jalur MCP agen ditolak.
|
|
40
|
+
- Token lease task/review di-hash (`sha256.…`) di state; pemanggil tetap memakai token plaintext.
|
|
41
|
+
- README mirror publik (`catenext-cli`): panduan lokal SQLite, master prompt `CATENEXT.md`,
|
|
42
|
+
worktree paralel, approval manusia; hilangkan alur Cloud/login/dashboard.
|
|
43
|
+
- Master prompt (`renderMasterPrompt` / README): bagian Bootstrap agar agen bisa `npm install -g catenext`
|
|
44
|
+
+ `init`/`verify` dari chat sebelum orkestrasi.
|
|
45
|
+
|
|
46
|
+
### Removed
|
|
47
|
+
- Web dashboard, Cloud API, browser login, premium quotas, and deployment configuration.
|
|
48
|
+
- Existing cloud data is not migrated automatically.
|
|
49
|
+
- Default JSON `state.json` as canonical store (legacy migrate only).
|
|
50
|
+
|
|
13
51
|
## [0.5.0] - 2026-11-26
|
|
14
52
|
|
|
15
53
|
### Ditambahkan
|
package/README.md
CHANGED
|
@@ -1,178 +1,322 @@
|
|
|
1
1
|
# Catenext CLI
|
|
2
2
|
|
|
3
|
-
Satu antrean untuk
|
|
4
|
-
hal yang sama, meneruskan
|
|
5
|
-
|
|
3
|
+
Satu antrean lokal untuk agen AI coding Anda. Catenext mengunci task agar dua agen tidak
|
|
4
|
+
mengerjakan hal yang sama, meneruskan handoff ke agen berikutnya, dan membuka task baru hanya
|
|
5
|
+
setelah dependensinya selesai. Semua state ada di komputer Anda (SQLite) — tanpa akun Cloud,
|
|
6
|
+
tanpa login, tanpa dashboard.
|
|
6
7
|
|
|
7
|
-
Paket ini berisi CLI `catenext` dan server MCP
|
|
8
|
-
dan agen lain.
|
|
8
|
+
Paket ini berisi CLI `catenext` dan server MCP stdio untuk Claude Code, Cursor, Codex,
|
|
9
|
+
Antigravity, OpenCode, dan agen lain.
|
|
9
10
|
|
|
10
|
-
[Dokumentasi](https://catenext.mapan.digital/docs) ·
|
|
11
|
-
[Dashboard](https://catenext.mapan.digital) ·
|
|
12
11
|
[npm](https://www.npmjs.com/package/catenext) ·
|
|
13
12
|
[Changelog](CHANGELOG.md) ·
|
|
14
13
|
[Laporkan masalah](https://github.com/TenkuryuCode/catenext-cli/issues)
|
|
15
14
|
|
|
16
15
|
## Mulai dalam 10 menit
|
|
17
16
|
|
|
18
|
-
Butuh Node.js **22 atau lebih baru
|
|
17
|
+
Butuh Node.js **22.12** atau lebih baru.
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
```bash
|
|
20
|
+
npm install -g catenext
|
|
21
|
+
cd ~/code/proyek-anda
|
|
22
|
+
catenext init --platform cursor --dry-run # lihat perubahan dulu
|
|
23
|
+
catenext init --platform cursor # interview singkat (atau --yes untuk default)
|
|
24
|
+
catenext verify --platform cursor
|
|
25
|
+
```
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
4. **Setujui rencana di Dashboard.** Task yang diajukan agen masuk DRAFT sampai Anda setujui.
|
|
27
|
+
Mulai ulang IDE/CLI, lalu percayai server MCP `catenext` jika diminta.
|
|
28
|
+
`catenext mcp` adalah proses stdio yang diluncurkan klien — bukan server HTTP.
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
| Klien | `--platform` | Konfigurasi |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| Claude Code | `claude-code` | `.mcp.json` + `CLAUDE.md` |
|
|
33
|
+
| Cursor | `cursor` | `.cursor/mcp.json` + `.cursor/CATENEXT.md` |
|
|
34
|
+
| Codex | `codex` | `.codex/config.toml` + `.codex/CATENEXT.md` |
|
|
35
|
+
| Antigravity | `antigravity` | `.agents/mcp_config.json` + `.agents/CATENEXT.md` |
|
|
36
|
+
| OpenCode | `opencode` | sesuai setup OpenCode + `.opencode/CATENEXT.md` |
|
|
37
|
+
|
|
38
|
+
`init` menulis `.catenext/config.yaml`, entri MCP, `.gitignore`, **`CATENEXT.md`** (master
|
|
39
|
+
prompt), pointer platform, blok di `AGENTS.md`, dan seed persona **yang cocok dengan
|
|
40
|
+
stack/repo** (mis. hanya `fe`+`reviewer` untuk Next.js). Role lain ditambah nanti:
|
|
41
|
+
`catenext persona set <alias> --role <role>` lalu `catenext sync`.
|
|
42
|
+
`catenext remove` membersihkan setup (bukan file state SQLite, kecuali Anda hapus sendiri).
|
|
32
43
|
|
|
33
44
|
```bash
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
npx -y catenext init --project <project_id> --repo be
|
|
37
|
-
npx -y catenext sync # subagent Claude Code per persona
|
|
45
|
+
catenext sync --platform cursor --dry-run
|
|
46
|
+
catenext sync --platform cursor --force
|
|
38
47
|
```
|
|
39
48
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
49
|
+
## Master prompt (salin ke chat)
|
|
50
|
+
|
|
51
|
+
Tempel blok di bawah sebagai **pesan pertama** di chat agen (repo kosong atau sudah ada
|
|
52
|
+
kode). Agen akan **menginstall CLI + `init`** bila belum ada, lalu jadi orchestrator.
|
|
53
|
+
|
|
54
|
+
Setelah `init`, file **`CATENEXT.md`** di root berisi teks yang sama. Pointer platform
|
|
55
|
+
(`CLAUDE.md`, `.cursor/CATENEXT.md`, …) mengarahkan ke situ, lalu ke `AGENTS.md`.
|
|
56
|
+
|
|
57
|
+
````markdown
|
|
58
|
+
# Catenext · Master Prompt
|
|
59
|
+
|
|
60
|
+
You are starting a **new Catenext session** in this repo. Follow this file first, then open **[AGENTS.md](./AGENTS.md)** for full orchestrator rules.
|
|
61
|
+
|
|
62
|
+
## Who you are
|
|
63
|
+
|
|
64
|
+
- You are the **orchestrator** (main agent). Do **not** use `agent_alias`.
|
|
65
|
+
- Persona subagents (`be`, `fe`, `tester`, `android`, `security`, `reviewer`, …) do the implementation work.
|
|
66
|
+
- Ask the human first; mirror **their language**. Agent stubs and tool names stay English.
|
|
67
|
+
|
|
68
|
+
## Bootstrap (install if missing)
|
|
69
|
+
|
|
70
|
+
If `.catenext/config.yaml` is missing, or `catenext` / MCP is not usable yet, **set up first** — do not invent a cloud login.
|
|
71
|
+
|
|
72
|
+
1. Require **Node.js ≥ 22.12**. If missing, tell the human how to install it.
|
|
73
|
+
2. Install CLI: `npm install -g catenext` (or `npx -y catenext …` for one-off).
|
|
74
|
+
3. Detect IDE/CLI and **ask the human** which `--platform` to use (recommend what you detect):
|
|
75
|
+
`cursor` · `claude-code` · `codex` · `antigravity` · `opencode` · `vscode`
|
|
76
|
+
4. Show a dry-run, wait for OK, then apply:
|
|
77
|
+
`catenext init --platform <id> --dry-run`
|
|
78
|
+
`catenext init --platform <id>` (TTY interview) or `catenext init --platform <id> --yes`
|
|
79
|
+
5. `catenext verify --platform <id>` — then ask the human to **restart the IDE/CLI** and trust the `catenext` MCP server.
|
|
80
|
+
6. Only after verify: continue with **First 60 seconds** below (read this file / `AGENTS.md`, then `catenext brief`).
|
|
81
|
+
|
|
82
|
+
## First 60 seconds
|
|
83
|
+
|
|
84
|
+
1. Read **AGENTS.md** (detailed rules) and note project stack from `.catenext/config.yaml` / context.
|
|
85
|
+
2. Call MCP/CLI `session_brief` (`catenext brief`) — compact only.
|
|
86
|
+
3. If `pending_approvals` is non-empty, **present options to the human** before coding:
|
|
87
|
+
- `1` approve · `2` revise (with feedback) · `3` next
|
|
88
|
+
4. Only then plan or delegate. Prefer `interview_setup` when IDE/CLI setup is still undecided.
|
|
89
|
+
5. Before parallel coding: short cross-persona brainstorm → save `sync-board` (skill `cross-agent-sync`).
|
|
90
|
+
|
|
91
|
+
## How work flows
|
|
92
|
+
|
|
93
|
+
```text
|
|
94
|
+
human goal
|
|
95
|
+
→ orchestrator clarifies (user language)
|
|
96
|
+
→ kickoff brainstorm (relevant personas) → sync-board
|
|
97
|
+
→ DRAFT tasks (persona + depends_on)
|
|
98
|
+
→ human approve_plan
|
|
99
|
+
→ parallel subagents each in their own worktree/branch
|
|
100
|
+
→ mid-flight asks via orchestrator + sync-board
|
|
101
|
+
→ handoff → NEEDS_REVIEW
|
|
102
|
+
→ orchestrator reviews all worktrees, integrates if needed
|
|
103
|
+
→ human: PR | merge to main | revise | next
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Parallel worktrees
|
|
107
|
+
|
|
108
|
+
- Concurrent personas **must** use different git worktrees (unique session/branch).
|
|
109
|
+
- Orchestrator tracks every active worktree and does **not** let subagents merge `main`.
|
|
110
|
+
- After handoffs, orchestrator combines/edits only as needed, then asks: **PR**, **merge**, **revise**, or **next**.
|
|
111
|
+
|
|
112
|
+
## Docs
|
|
113
|
+
|
|
114
|
+
- Tidy pass: persona `scribe` + skill `docs-hygiene`.
|
|
115
|
+
|
|
116
|
+
## Human approval template
|
|
43
117
|
|
|
44
|
-
|
|
118
|
+
```text
|
|
119
|
+
APPROVAL NEEDED
|
|
120
|
+
task: <id> · <title> · status=<DRAFT|NEEDS_REVIEW>
|
|
121
|
+
worktree/branch: <if any>
|
|
122
|
+
summary: <one line>
|
|
123
|
+
verify: <command if any>
|
|
124
|
+
Options: 1) approve 2) revise <feedback> 3) next
|
|
125
|
+
Reply with 1 / 2 / 3 (or the same words in chat).
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Commands (cheat sheet)
|
|
45
129
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
130
|
+
| Need | Command |
|
|
131
|
+
| --- | --- |
|
|
132
|
+
| Install CLI | `npm install -g catenext` |
|
|
133
|
+
| First-time setup | `catenext init --platform <id>` (`--dry-run` / `--yes`) |
|
|
134
|
+
| Verify MCP | `catenext verify --platform <id>` |
|
|
135
|
+
| Add persona | `catenext persona set <alias> --role <role>` then `catenext sync` |
|
|
136
|
+
| Session snapshot | `catenext brief` |
|
|
137
|
+
| Board | `catenext board` |
|
|
138
|
+
| Claim (parallel-safe) | `catenext claim <id> --as <alias> --worktree` |
|
|
139
|
+
| Approve plan | `catenext task approve <id>` |
|
|
140
|
+
| Approve handoff | `catenext review approve <id>` |
|
|
141
|
+
| Revise | `catenext revise <id> --feedback "…"` |
|
|
142
|
+
| Sync agents | `catenext sync` |
|
|
143
|
+
|
|
144
|
+
## Do / Don't
|
|
145
|
+
|
|
146
|
+
- **Do** install/init when setup is missing; seed only personas that match this repo; add more with `persona set` when needed.
|
|
147
|
+
- **Don't** invent cloud accounts, API keys, or dashboards — this CLI is local SQLite only.
|
|
148
|
+
- **Don't** implement persona tasks yourself unless the human explicitly asks.
|
|
149
|
+
- **Don't** merge to main without explicit human choice; prefer PR when unsure.
|
|
150
|
+
- **Don't** invent test/merge results or paste secrets into handoffs/docs.
|
|
151
|
+
|
|
152
|
+
Full rules → [AGENTS.md](./AGENTS.md). Persona stubs → platform `agents/` folders (English, stack-aware).
|
|
153
|
+
````
|
|
154
|
+
|
|
155
|
+
Alur: agen install/`init` bila perlu → restart IDE → `catenext brief` → approval jika ada →
|
|
156
|
+
rencana / delegasi. Bahasa tanya-jawab mengikuti manusia; stub agen tetap Inggris.
|
|
157
|
+
|
|
158
|
+
## Orchestrator dan persona
|
|
159
|
+
|
|
160
|
+
- **Orchestrator** memecah tujuan, menyusun DRAFT, mendelegasikan, meninjau worktree, dan
|
|
161
|
+
bertanya ke manusia sebelum merge/PR.
|
|
162
|
+
- **Persona** adalah subagent (alias + role + repo). Setelah `init`, hanya yang **matched**
|
|
163
|
+
ke repo (plus `reviewer`). Catalog penuh tetap tersedia: `be`, `fe`, `tester`, `android`,
|
|
164
|
+
`security`, `reviewer`, `scribe`.
|
|
52
165
|
|
|
53
166
|
```bash
|
|
54
|
-
catenext persona
|
|
55
|
-
catenext persona set
|
|
56
|
-
catenext
|
|
167
|
+
catenext persona list
|
|
168
|
+
catenext persona set tester --role testing # tambah role yang kurang
|
|
169
|
+
catenext persona set bambang --role backend --repo api
|
|
170
|
+
catenext sync --platform cursor # tulis stub agen untuk persona baru
|
|
171
|
+
catenext brief
|
|
172
|
+
catenext board
|
|
57
173
|
```
|
|
58
174
|
|
|
59
|
-
##
|
|
175
|
+
## Rencana, claim, handoff
|
|
60
176
|
|
|
61
177
|
```bash
|
|
178
|
+
catenext epic create "Tambah ekspor billing"
|
|
179
|
+
catenext task create --epic <epic_id> --file tasks.json
|
|
180
|
+
catenext task approve <task_id> # manusia: DRAFT → TODO
|
|
62
181
|
catenext next --as bambang
|
|
63
|
-
catenext claim <task_id> --as bambang
|
|
64
|
-
# kerjakan,
|
|
65
|
-
catenext done <task_id> --notes "
|
|
182
|
+
catenext claim <task_id> --as bambang --worktree
|
|
183
|
+
# kerjakan di worktree itu, tes, commit
|
|
184
|
+
catenext done <task_id> --lease <lease_id> --notes "Exporter siap" \
|
|
185
|
+
--verify "pnpm test"
|
|
186
|
+
catenext review approve <task_id> # manusia: NEEDS_REVIEW → DONE
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
`tasks.json` boleh array; task dalam batch bisa saling merujuk lewat `ref`:
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
[
|
|
193
|
+
{ "ref": "export", "title": "CSV export", "prompt_instruction": "Tulis exporter + unit test." },
|
|
194
|
+
{ "ref": "docs", "title": "Dokumentasi CSV", "prompt_instruction": "Contoh + urutan kolom.", "depends_on": ["export"] }
|
|
195
|
+
]
|
|
66
196
|
```
|
|
67
197
|
|
|
198
|
+
Persetujuan rencana dan handoff hanya lewat CLI manusia (`task approve` / `review approve`).
|
|
199
|
+
Jalur MCP agen untuk approve ditolak. Catatan verifikasi disimpan sebagai catatan, bukan dijalankan
|
|
200
|
+
oleh Catenext.
|
|
201
|
+
|
|
68
202
|
Buntu? `catenext block <task_id> --category missing_env --reason "SMTP_HOST belum diisi."`
|
|
69
|
-
|
|
203
|
+
Lepas tanpa blocker: `catenext release <task_id> --lease <lease_id>`.
|
|
70
204
|
|
|
71
|
-
##
|
|
205
|
+
## Kerja paralel (worktree)
|
|
72
206
|
|
|
73
|
-
|
|
207
|
+
Persona yang jalan bersamaan **wajib** worktree/branch terpisah. Orchestrator memantau semua
|
|
208
|
+
worktree, mengintegrasikan bila perlu, lalu bertanya: **PR** · **merge ke main** · **revise** ·
|
|
209
|
+
**next**. Subagent tidak boleh merge `main` sendiri.
|
|
74
210
|
|
|
75
211
|
```bash
|
|
76
|
-
|
|
77
|
-
|
|
212
|
+
catenext claim <task_id> --as bambang --worktree
|
|
213
|
+
catenext done <task_id> --lease <lease_id> --notes "…" --verify "pnpm test" \
|
|
214
|
+
--pr https://github.com/owner/repo/pull/42 --base main
|
|
78
215
|
```
|
|
79
216
|
|
|
80
|
-
|
|
81
|
-
mengambil task dari folder repo yang ia pegang, jadi subagent selalu bekerja di checkout yang benar.
|
|
217
|
+
URL PR opsional — hanya referensi lokal; review lokal tidak membuktikan merge remote.
|
|
82
218
|
|
|
83
219
|
## Revisi tanpa task baru
|
|
84
220
|
|
|
85
|
-
Hasil yang perlu diperbaiki kembali ke kolom **Revisi** sebagai task yang sama, lengkap dengan
|
|
86
|
-
feedback, branch, dan PR-nya:
|
|
87
|
-
|
|
88
221
|
```bash
|
|
89
222
|
catenext revise <task_id> --feedback "Validasi email belum menolak spasi."
|
|
90
|
-
catenext revise <task_id> --feedback "Perlu tes E2E." --to
|
|
91
|
-
catenext assign <task_id> --to mira
|
|
223
|
+
catenext revise <task_id> --feedback "Perlu tes E2E." --to mira
|
|
224
|
+
catenext assign <task_id> --to mira
|
|
92
225
|
```
|
|
93
226
|
|
|
94
|
-
##
|
|
227
|
+
## Banyak repo / monorepo
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
# polyrepo: init di tiap checkout dengan --repo berbeda
|
|
231
|
+
cd ~/code/api && catenext init --platform cursor --repo api
|
|
232
|
+
cd ~/code/web && catenext init --platform cursor --repo web
|
|
233
|
+
|
|
234
|
+
# monorepo: satu state SQLite; atur layout=monorepo di .catenext/config.yaml
|
|
235
|
+
# claim paralel wajib --worktree
|
|
236
|
+
```
|
|
95
237
|
|
|
96
|
-
|
|
97
|
-
|
|
238
|
+
Untuk state bersama lintas checkout di satu mesin, arahkan `state_file` di
|
|
239
|
+
`.catenext/config.yaml` ke file SQLite yang sama (path relatif ke root repo). Pakai filesystem
|
|
240
|
+
lokal, bukan network mount / folder sync.
|
|
241
|
+
|
|
242
|
+
## Dokumen dan skill
|
|
243
|
+
|
|
244
|
+
Dokumen proyek (blueprint, ERD, kontrak, keputusan) disimpan **lokal** di state SQLite.
|
|
98
245
|
|
|
99
246
|
```bash
|
|
100
247
|
catenext doc list
|
|
101
248
|
catenext doc get blueprint
|
|
102
|
-
catenext doc save erd --kind erd --file erd.md --
|
|
249
|
+
catenext doc save erd --kind erd --file erd.md --version 0
|
|
250
|
+
catenext skill load cross-agent-sync
|
|
103
251
|
```
|
|
104
252
|
|
|
105
|
-
`--version`
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
## Kerja paralel dan review PR
|
|
253
|
+
`--version` = versi yang terakhir Anda baca (`0` untuk baru). Konflik versi menolak timpa buta.
|
|
254
|
+
Rapikan dokumen lewat persona `scribe` + skill `docs-hygiene`. Kickoff lintas persona: skill
|
|
255
|
+
`cross-agent-sync` → dokumen `sync-board`.
|
|
109
256
|
|
|
110
|
-
|
|
257
|
+
## Indeks kode lokal
|
|
111
258
|
|
|
112
259
|
```bash
|
|
113
|
-
catenext
|
|
114
|
-
catenext
|
|
115
|
-
--verify "pnpm test" --pr https://github.com/owner/repo/pull/42 --base main
|
|
116
|
-
catenext review list
|
|
117
|
-
catenext review claim <task_id>
|
|
118
|
-
catenext review submit <task_id> --lease <review_lease> --sha <head_sha> \
|
|
119
|
-
--decision approve --feedback "Kontrak API dan tes sudah diperiksa."
|
|
260
|
+
catenext index
|
|
261
|
+
catenext search "login handler" --code
|
|
120
262
|
```
|
|
121
263
|
|
|
122
|
-
|
|
123
|
-
PR butuh review baru.
|
|
264
|
+
MCP: `graph_neighbors`, `symbol_search` (hasil ringkas).
|
|
124
265
|
|
|
125
|
-
##
|
|
266
|
+
## Data lokal
|
|
126
267
|
|
|
127
|
-
|
|
|
128
|
-
| --- | --- | --- |
|
|
129
|
-
| `login` | - | Masuk lewat browser (`--no-browser`, `--with-key`, `--api-url`) |
|
|
130
|
-
| `init --project ID --repo NAMA` | - | Hubungkan folder repo |
|
|
131
|
-
| `sync` | - | Perbarui setup, indeks skill, subagent per persona (`--dry-run`, `--fix`) |
|
|
132
|
-
| `board` | `get_project_board` | Papan lintas repo untuk orchestrator |
|
|
133
|
-
| `next` | `get_ready_tasks` | Task siap untuk repo ini |
|
|
134
|
-
| `claim ID` | `claim_task` | Kunci task, baca instruksi dan handoff sebelumnya |
|
|
135
|
-
| `done ID` | `complete_handoff` | Selesaikan dengan handoff |
|
|
136
|
-
| `block ID` / `release ID` | `report_blocker` / `release_task` | Laporkan buntu / lepas task |
|
|
137
|
-
| `revise ID` / `assign ID` | `manage_task` | Kembalikan ke Revisi / ganti penanggung jawab |
|
|
138
|
-
| `persona list` / `persona set` | `list_personas` / `upsert_persona` | Kelola persona proyek |
|
|
139
|
-
| `doc list` / `doc get` / `doc save` | `get_document` / `save_document` | Dokumen proyek di Cloud |
|
|
140
|
-
| `epic`, `task create` | `list_epics`, `create_epic`, `create_tasks` | Rencanakan dari terminal (masuk DRAFT) |
|
|
141
|
-
| `review` | `review_pull_request` | Antrean dan keputusan review PR |
|
|
142
|
-
| `skill load NAMA` | `load_skill`, `save_repo_skill` | Skill repo di `.catenext/skills/` |
|
|
143
|
-
| `remove` | - | Hapus setup Catenext dari repo |
|
|
144
|
-
|
|
145
|
-
Semua perintah menerima `--json`. Jalankan `catenext --help` untuk opsi lengkap.
|
|
146
|
-
|
|
147
|
-
## Data yang dikirim
|
|
148
|
-
|
|
149
|
-
| Disimpan di Cloud | Tetap di repo atau komputer Anda |
|
|
268
|
+
| Path | Isi |
|
|
150
269
|
| --- | --- |
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
270
|
+
| `.catenext/config.yaml` | Proyek, repo, layout, `state_file` |
|
|
271
|
+
| `.catenext/catenext.sqlite` | Antrean task, handoff, persona, dokumen, graf kode |
|
|
272
|
+
| `.catenext/skills/` | Skill Markdown repo |
|
|
273
|
+
| `.catenext/cache/` | Cache pencarian yang bisa dibangun ulang |
|
|
274
|
+
| `CATENEXT.md` | Master prompt sesi baru |
|
|
275
|
+
| `AGENTS.md` | Aturan orchestrator (blok Catenext) |
|
|
155
276
|
|
|
156
|
-
|
|
277
|
+
State lama `state.json` dimigrasi sekali ke SQLite (backup `*.bak`). Jangan commit state/cache.
|
|
278
|
+
Backup SQLite terpisah jika perlu. Data Cloud lama **tidak** dimigrasi otomatis.
|
|
157
279
|
|
|
158
|
-
##
|
|
280
|
+
## Daftar perintah
|
|
281
|
+
|
|
282
|
+
| CLI | Tool MCP | Fungsi |
|
|
283
|
+
| --- | --- | --- |
|
|
284
|
+
| `init` / `sync` / `verify` / `remove` | - | Setup MCP + stub agen (`--platform`, `--dry-run`) |
|
|
285
|
+
| `brief` | `session_brief` | Ringkasan sesi + pending approval |
|
|
286
|
+
| `board` | `get_project_board` | Papan lintas repo |
|
|
287
|
+
| `root list\|add\|remove` | `manage_roots` | Workspace root milik persona |
|
|
288
|
+
| `next` / `claim` / `done` | `get_ready_tasks` / `claim_task` / `complete_handoff` | Ambil & serahkan task |
|
|
289
|
+
| `block` / `release` | `report_blocker` / `release_task` | Blokir / lepas lease |
|
|
290
|
+
| `task approve` / `review approve` | - (manusia) | Setujui rencana / handoff |
|
|
291
|
+
| `revise` / `assign` | `manage_task` | Revisi / ganti penanggung jawab |
|
|
292
|
+
| `persona list\|set` | `list_personas` / `upsert_persona` | Persona proyek |
|
|
293
|
+
| `doc …` | `get_document` / `save_document` | Dokumen lokal |
|
|
294
|
+
| `epic` / `task create` | `list_epics` / `create_epic` / `create_tasks` | Rencana (masuk DRAFT) |
|
|
295
|
+
| `review …` | `review_pull_request` | Antrean review lokal |
|
|
296
|
+
| `skill load` | `load_skill` / `save_repo_skill` | Skill repo |
|
|
297
|
+
| `index` / `search` | `graph_neighbors` / `symbol_search` / `search_context` | Graf & pencarian lokal |
|
|
298
|
+
| `mcp` | - | Server MCP stdio |
|
|
299
|
+
| - | `interview_setup` | Kartu opsi setup untuk interview |
|
|
300
|
+
|
|
301
|
+
Semua perintah CLI menerima `--json`. `catenext --help` untuk opsi lengkap.
|
|
302
|
+
|
|
303
|
+
## Kalau macet
|
|
159
304
|
|
|
160
305
|
| Gejala | Yang perlu dilakukan |
|
|
161
306
|
| --- | --- |
|
|
162
|
-
| Task tidak muncul di `next` | Pastikan
|
|
163
|
-
| `repo_busy` | Selesaikan
|
|
164
|
-
| `persona_repo_mismatch` | Pindah ke folder
|
|
165
|
-
| `document_version_conflict` | Baca ulang
|
|
166
|
-
|
|
|
167
|
-
| Tool MCP tidak terbaca | Mulai ulang IDE, lalu `catenext sync --
|
|
168
|
-
|
|
169
|
-
Panduan lengkap: [catenext.mapan.digital/docs](https://catenext.mapan.digital/docs).
|
|
307
|
+
| Task tidak muncul di `next` | Pastikan `task approve` sudah jalan, dependensi `DONE`, folder/`--as` cocok |
|
|
308
|
+
| `repo_busy` / bentrok paralel | Selesaikan atau `release`; untuk paralel wajib `--worktree` |
|
|
309
|
+
| `persona_repo_mismatch` | Pindah ke folder/`--repo` yang dipegang persona |
|
|
310
|
+
| `document_version_conflict` | Baca ulang, gabungkan, simpan dengan versi terbaru |
|
|
311
|
+
| Approve ditolak dari MCP | Setujui lewat CLI: `task approve` / `review approve` |
|
|
312
|
+
| Tool MCP tidak terbaca | Mulai ulang IDE, lalu `catenext sync --platform … --force` |
|
|
313
|
+
| State lama JSON | Jalankan perintah apa pun yang membuka store — migrasi sekali ke SQLite |
|
|
170
314
|
|
|
171
315
|
## Build dari source
|
|
172
316
|
|
|
173
317
|
Repo ini adalah mirror publik CLI. Rilis npm dibangun dari sini dengan
|
|
174
|
-
[npm provenance](https://docs.npmjs.com/generating-provenance-statements).
|
|
175
|
-
|
|
318
|
+
[npm provenance](https://docs.npmjs.com/generating-provenance-statements).
|
|
319
|
+
`src/` = CLI + MCP; `shared/src/` = skema yang ikut di-bundle.
|
|
176
320
|
|
|
177
321
|
```bash
|
|
178
322
|
pnpm install --frozen-lockfile
|