catenext 0.6.0 → 0.6.2

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 CHANGED
@@ -10,6 +10,28 @@ 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.2] - 2026-11-27
14
+
15
+ ### Ditambahkan
16
+ - README: bagian **Memperbarui Catenext** (upgrade CLI + `sync --force` + restart IDE).
17
+
18
+ ### Diubah
19
+ - README mirror publik: logo/wordmark Catenext + badge npm di header.
20
+ - Master prompt / aturan orchestrator: jika research, fetch, browser, atau akses lain
21
+ tidak tersedia, minta izin/bantuan user (`ACCESS NEEDED`) — jangan mengarang hasil.
22
+ - Aturan eksplisit: **jangan pernah mempublikasikan** kredensial atau secret krusial
23
+ (handoff, docs, git, PR, issues) — cukup path; scrubber tetap best-effort.
24
+ - Cheat sheet master prompt: baris upgrade CLI.
25
+
26
+ ## [0.6.1] - 2026-11-27
27
+
28
+ ### Diubah
29
+ - Seed persona default **`matched`**: hanya subagent yang cocok dengan stack/repo
30
+ (mis. React → `fe`+`reviewer`; API Go → `be`+`reviewer`). Role lain (`tester`,
31
+ `security`, `scribe`, …) ditambah nanti lewat `catenext persona set` + `sync`.
32
+ - Interview `init` / `interview_setup`: opsi `matched` (rekomendasi), `minimal`, `all`, `none`.
33
+ - Deteksi stack Android (`build.gradle`, `AndroidManifest.xml`, …).
34
+
13
35
  ## [0.6.0] - 2026-11-27
14
36
 
15
37
  ### Ditambahkan
@@ -19,7 +41,7 @@ tag yang versinya belum ada di file ini. Perbarui juga [docs/STATUS.md](docs/STA
19
41
  - Agent stubs English multi-platform (Claude/Cursor/Antigravity/OpenCode) + orchestrator stubs; stack in agent context.
20
42
  - Root `CATENEXT.md` master prompt for new sessions; platform entry files (`CLAUDE.md`, `.cursor/CATENEXT.md`, …) redirect there, then `AGENTS.md`.
21
43
  - `session_brief.pending_approvals` with approve/revise/next options for human chat gates.
22
- - README Master Prompt awal untuk cold-start chat.
44
+ - README Master Prompt awal untuk cold-start chat (salin-tempel), termasuk **Bootstrap (install/init)**.
23
45
  - Parallel subagents wajib worktree terpisah; orchestrator memantau semua worktree, mengintegrasikan, lalu bertanya manusia: PR | merge | revise | next.
24
46
  - Kickoff brainstorm + `sync-board` / skill `cross-agent-sync`; persona `scribe` + skill `docs-hygiene` untuk merapikan dokumen.
25
47
 
@@ -31,6 +53,8 @@ tag yang versinya belum ada di file ini. Perbarui juga [docs/STATUS.md](docs/STA
31
53
  - Token lease task/review di-hash (`sha256.…`) di state; pemanggil tetap memakai token plaintext.
32
54
  - README mirror publik (`catenext-cli`): panduan lokal SQLite, master prompt `CATENEXT.md`,
33
55
  worktree paralel, approval manusia; hilangkan alur Cloud/login/dashboard.
56
+ - Master prompt (`renderMasterPrompt` / README): bagian Bootstrap agar agen bisa `npm install -g catenext`
57
+ + `init`/`verify` dari chat sebelum orkestrasi.
34
58
 
35
59
  ### Removed
36
60
  - Web dashboard, Cloud API, browser login, premium quotas, and deployment configuration.
package/README.md CHANGED
@@ -1,4 +1,18 @@
1
- # Catenext CLI
1
+ <p align="center">
2
+ <img src="docs/assets/catenext-wordmark.svg" alt="Catenext" width="320" />
3
+ </p>
4
+
5
+ <h1 align="center">Catenext CLI</h1>
6
+
7
+ <p align="center">
8
+ Satu antrean lokal untuk agen AI coding — claim, handoff, dan task berikutnya tanpa Cloud.
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/catenext"><img alt="npm" src="https://img.shields.io/npm/v/catenext?color=0D9488" /></a>
13
+ <a href="LICENSE"><img alt="license" src="https://img.shields.io/npm/l/catenext?color=0F766E" /></a>
14
+ <a href="https://nodejs.org/"><img alt="node" src="https://img.shields.io/node/v/catenext?color=0D9488" /></a>
15
+ </p>
2
16
 
3
17
  Satu antrean lokal untuk agen AI coding Anda. Catenext mengunci task agar dua agen tidak
4
18
  mengerjakan hal yang sama, meneruskan handoff ke agen berikutnya, dan membuka task baru hanya
@@ -36,8 +50,9 @@ Mulai ulang IDE/CLI, lalu percayai server MCP `catenext` jika diminta.
36
50
  | OpenCode | `opencode` | sesuai setup OpenCode + `.opencode/CATENEXT.md` |
37
51
 
38
52
  `init` menulis `.catenext/config.yaml`, entri MCP, `.gitignore`, **`CATENEXT.md`** (master
39
- prompt), pointer platform, blok di `AGENTS.md`, dan seed persona default
40
- (`be`, `fe`, `tester`, `android`, `security`, `reviewer`, `scribe`).
53
+ prompt), pointer platform, blok di `AGENTS.md`, dan seed persona **yang cocok dengan
54
+ stack/repo** (mis. hanya `fe`+`reviewer` untuk Next.js). Role lain ditambah nanti:
55
+ `catenext persona set <alias> --role <role>` lalu `catenext sync`.
41
56
  `catenext remove` membersihkan setup (bukan file state SQLite, kecuali Anda hapus sendiri).
42
57
 
43
58
  ```bash
@@ -45,31 +60,197 @@ catenext sync --platform cursor --dry-run
45
60
  catenext sync --platform cursor --force
46
61
  ```
47
62
 
48
- ## Sesi baru: baca master prompt dulu
63
+ ## Memperbarui Catenext
64
+
65
+ CLI di npm dan file setup di repo adalah dua langkah terpisah.
66
+
67
+ **1. Paket CLI (global atau npx)**
68
+
69
+ ```bash
70
+ # cek versi terpasang
71
+ catenext --version
72
+
73
+ # perbarui global
74
+ npm install -g catenext@latest
75
+
76
+ # atau sekali jalan tanpa global
77
+ npx -y catenext@latest --version
78
+ ```
79
+
80
+ Lihat perubahan: [CHANGELOG.md](CHANGELOG.md) ·
81
+ [rilis npm](https://www.npmjs.com/package/catenext).
82
+
83
+ **2. Setup di setiap repo proyek** (setelah CLI baru)
84
+
85
+ ```bash
86
+ cd ~/code/proyek-anda
87
+ catenext sync --platform cursor --dry-run # lihat dulu
88
+ catenext sync --platform cursor --force # perbarui MCP, CATENEXT.md, stub agen, skill
89
+ catenext verify --platform cursor
90
+ ```
91
+
92
+ Lalu **mulai ulang IDE/CLI** agar proses MCP memuat biner baru.
93
+
94
+ | Yang ikut `sync` | Yang tidak disentuh |
95
+ | --- | --- |
96
+ | Entri MCP, pointer platform, blok `AGENTS.md`, `CATENEXT.md` (bila masih bertanda Catenext), stub persona, skill bawaan yang belum ada | `.catenext/catenext.sqlite` (task/docs), skill yang sudah Anda edit, config YAML kecuali field yang `sync` kelola |
97
+
98
+ Tips:
99
+
100
+ - Pakai `npx -y catenext@latest …` di MCP jika Anda tidak ingin mengelola global install — tetap jalankan `sync` setelah rilis besar.
101
+ - Setelah naik versi mayor/minor, baca changelog; contoh 0.6.x: state SQLite, seed persona **matched**, master prompt baru.
102
+ - Jangan commit `.catenext/catenext.sqlite` atau cache; backup SQLite sendiri sebelum eksperimen besar.
103
+
104
+ ## Master prompt (salin ke chat)
105
+
106
+ Tempel blok di bawah sebagai **pesan pertama** di chat agen (repo kosong atau sudah ada
107
+ kode). Agen akan **menginstall CLI + `init`** bila belum ada, lalu jadi orchestrator.
108
+
109
+ Setelah `init`, file **`CATENEXT.md`** di root berisi teks yang sama. Pointer platform
110
+ (`CLAUDE.md`, `.cursor/CATENEXT.md`, …) mengarahkan ke situ, lalu ke `AGENTS.md`.
111
+
112
+ ````markdown
113
+ # Catenext · Master Prompt
114
+
115
+ You are starting a **new Catenext session** in this repo. Follow this file first, then open **[AGENTS.md](./AGENTS.md)** for full orchestrator rules.
116
+
117
+ ## Who you are
118
+
119
+ - You are the **orchestrator** (main agent). Do **not** use `agent_alias`.
120
+ - Persona subagents (`be`, `fe`, `tester`, `android`, `security`, `reviewer`, …) do the implementation work.
121
+ - Ask the human first; mirror **their language**. Agent stubs and tool names stay English.
122
+
123
+ ## Bootstrap (install if missing)
124
+
125
+ If `.catenext/config.yaml` is missing, or `catenext` / MCP is not usable yet, **set up first** — do not invent a cloud login.
126
+
127
+ 1. Require **Node.js ≥ 22.12**. If missing, tell the human how to install it.
128
+ 2. Install CLI: `npm install -g catenext` (or `npx -y catenext …` for one-off).
129
+ 3. Detect IDE/CLI and **ask the human** which `--platform` to use (recommend what you detect):
130
+ `cursor` · `claude-code` · `codex` · `antigravity` · `opencode` · `vscode`
131
+ 4. Show a dry-run, wait for OK, then apply:
132
+ `catenext init --platform <id> --dry-run`
133
+ `catenext init --platform <id>` (TTY interview) or `catenext init --platform <id> --yes`
134
+ 5. `catenext verify --platform <id>` — then ask the human to **restart the IDE/CLI** and trust the `catenext` MCP server.
135
+ 6. Only after verify: continue with **First 60 seconds** below (read this file / `AGENTS.md`, then `catenext brief`).
136
+
137
+ ## First 60 seconds
138
+
139
+ 1. Read **AGENTS.md** (detailed rules) and note project stack from `.catenext/config.yaml` / context.
140
+ 2. Call MCP/CLI `session_brief` (`catenext brief`) — compact only.
141
+ 3. If `pending_approvals` is non-empty, **present options to the human** before coding:
142
+ - `1` approve · `2` revise (with feedback) · `3` next
143
+ 4. Only then plan or delegate. Prefer `interview_setup` when IDE/CLI setup is still undecided.
144
+ 5. Before parallel coding: short cross-persona brainstorm → save `sync-board` (skill `cross-agent-sync`).
145
+
146
+ ## How work flows
147
+
148
+ ```text
149
+ human goal
150
+ → orchestrator clarifies (user language)
151
+ → kickoff brainstorm (relevant personas) → sync-board
152
+ → DRAFT tasks (persona + depends_on)
153
+ → human approve_plan
154
+ → parallel subagents each in their own worktree/branch
155
+ → mid-flight asks via orchestrator + sync-board
156
+ → handoff → NEEDS_REVIEW
157
+ → orchestrator reviews all worktrees, integrates if needed
158
+ → human: PR | merge to main | revise | next
159
+ ```
160
+
161
+ ## Parallel worktrees
49
162
 
50
- Setiap sesi baru mulai dari **`CATENEXT.md`** (master prompt). Pointer platform
51
- (`CLAUDE.md`, `.cursor/CATENEXT.md`, …) hanya mengarahkan ke file itu, lalu ke `AGENTS.md`
52
- untuk aturan orchestrator lengkap.
163
+ - Concurrent personas **must** use different git worktrees (unique session/branch).
164
+ - Orchestrator tracks every active worktree and does **not** let subagents merge `main`.
165
+ - After handoffs, orchestrator combines/edits only as needed, then asks: **PR**, **merge**, **revise**, or **next**.
53
166
 
54
- Alur singkat:
167
+ ## Docs
55
168
 
56
- 1. Orchestrator (agen utama, tanpa `agent_alias`) membaca `CATENEXT.md` → `AGENTS.md`.
57
- 2. Panggil `catenext brief` / MCP `session_brief` (hemat token).
58
- 3. Jika ada `pending_approvals`, tawarkan manusia: **approve** · **revise** · **next**.
59
- 4. Baru rencanakan task / delegasikan ke persona.
169
+ - Tidy pass: persona `scribe` + skill `docs-hygiene`.
60
170
 
61
- Bahasa tanya-jawab mengikuti bahasa manusia. Stub agen dan nama tool tetap bahasa Inggris.
171
+ ## Missing tools / access
172
+
173
+ If you lack a capability the work needs (web research, fetch/HTTP, browser, private URL, login, paid API, OS permission, etc.):
174
+ 1. **Stop guessing** — do not invent page contents, API responses, or “I browsed it”.
175
+ 2. **Ask the human** (their language) for permission or help, with a concrete ask.
176
+ 3. Wait for OK / paste / enable-tool before continuing that path.
177
+ 4. If the human pastes a secret into chat, **do not** copy it into docs, handoffs, commits, PRs, or issues — use env/local files they control.
178
+
179
+ ```text
180
+ ACCESS NEEDED
181
+ need: <research | fetch | browser | login | other>
182
+ why: <one line>
183
+ Options: 1) allow / enable tool 2) paste the info yourself 3) skip this path 4) other
184
+ Reply with 1 / 2 / 3 / 4.
185
+ ```
186
+
187
+ ## Secrets & credentials (never publish)
188
+
189
+ Never publish or persist credentials or other critical secrets anywhere durable or shared:
190
+ handoffs, docs, `sync-board`, commits, PRs, issues, chat logs meant for others, screenshots, CI logs.
191
+ Includes: API keys, tokens, passwords, private keys, cookies, `.env` values, connection strings with passwords,
192
+ OTA/signing keys, session cookies, personal data that must stay private.
193
+ Cite **paths** (e.g. `.env`, `secrets/…`) only. Prefer env vars / secret managers the human already uses.
194
+ Catenext scrubbing is best-effort — you still must not paste secrets on purpose.
195
+
196
+ ## Human approval template
197
+
198
+ ```text
199
+ APPROVAL NEEDED
200
+ task: <id> · <title> · status=<DRAFT|NEEDS_REVIEW>
201
+ worktree/branch: <if any>
202
+ summary: <one line>
203
+ verify: <command if any>
204
+ Options: 1) approve 2) revise <feedback> 3) next
205
+ Reply with 1 / 2 / 3 (or the same words in chat).
206
+ ```
207
+
208
+ ## Commands (cheat sheet)
209
+
210
+ | Need | Command |
211
+ | --- | --- |
212
+ | Install CLI | `npm install -g catenext` |
213
+ | Upgrade CLI | `npm install -g catenext@latest` then `catenext sync --force` + restart IDE |
214
+ | First-time setup | `catenext init --platform <id>` (`--dry-run` / `--yes`) |
215
+ | Verify MCP | `catenext verify --platform <id>` |
216
+ | Add persona | `catenext persona set <alias> --role <role>` then `catenext sync` |
217
+ | Session snapshot | `catenext brief` |
218
+ | Board | `catenext board` |
219
+ | Claim (parallel-safe) | `catenext claim <id> --as <alias> --worktree` |
220
+ | Approve plan | `catenext task approve <id>` |
221
+ | Approve handoff | `catenext review approve <id>` |
222
+ | Revise | `catenext revise <id> --feedback "…"` |
223
+ | Sync agents | `catenext sync` |
224
+
225
+ ## Do / Don't
226
+
227
+ - **Do** install/init when setup is missing; seed only personas that match this repo; add more with `persona set` when needed.
228
+ - **Do** ask the human when research/fetch/browser (or any required access) is missing — never fake the result.
229
+ - **Don't** invent cloud accounts, dashboards, or fake credentials — this CLI is local SQLite only.
230
+ - **Don't** publish credentials or critical secrets (handoffs, docs, git, PR, issues) — paths only.
231
+ - **Don't** implement persona tasks yourself unless the human explicitly asks.
232
+ - **Don't** merge to main without explicit human choice; prefer PR when unsure.
233
+ - **Don't** invent test/merge results.
234
+
235
+ Full rules → [AGENTS.md](./AGENTS.md). Persona stubs → platform `agents/` folders (English, stack-aware).
236
+ ````
237
+
238
+ Alur: agen install/`init` bila perlu → restart IDE → `catenext brief` → approval jika ada →
239
+ rencana / delegasi. Bahasa tanya-jawab mengikuti manusia; stub agen tetap Inggris.
62
240
 
63
241
  ## Orchestrator dan persona
64
242
 
65
243
  - **Orchestrator** memecah tujuan, menyusun DRAFT, mendelegasikan, meninjau worktree, dan
66
244
  bertanya ke manusia sebelum merge/PR.
67
- - **Persona** adalah subagent (alias + role + repo). Default setelah `init`: `be`, `fe`,
68
- `tester`, `android`, `security`, `reviewer`, `scribe`.
245
+ - **Persona** adalah subagent (alias + role + repo). Setelah `init`, hanya yang **matched**
246
+ ke repo (plus `reviewer`). Catalog penuh tetap tersedia: `be`, `fe`, `tester`, `android`,
247
+ `security`, `reviewer`, `scribe`.
69
248
 
70
249
  ```bash
71
250
  catenext persona list
251
+ catenext persona set tester --role testing # tambah role yang kurang
72
252
  catenext persona set bambang --role backend --repo api
253
+ catenext sync --platform cursor # tulis stub agen untuk persona baru
73
254
  catenext brief
74
255
  catenext board
75
256
  ```
@@ -212,6 +393,7 @@ Semua perintah CLI menerima `--json`. `catenext --help` untuk opsi lengkap.
212
393
  | `document_version_conflict` | Baca ulang, gabungkan, simpan dengan versi terbaru |
213
394
  | Approve ditolak dari MCP | Setujui lewat CLI: `task approve` / `review approve` |
214
395
  | Tool MCP tidak terbaca | Mulai ulang IDE, lalu `catenext sync --platform … --force` |
396
+ | Perilaku lama setelah rilis baru | `npm install -g catenext@latest`, lalu `sync --force`, restart IDE |
215
397
  | State lama JSON | Jalankan perintah apa pun yang membuka store — migrasi sekali ke SQLite |
216
398
 
217
399
  ## Build dari source