catenext 0.6.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 +12 -1
- package/README.md +112 -14
- package/dist/index.js +382 -283
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,15 @@ 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
|
+
|
|
13
22
|
## [0.6.0] - 2026-11-27
|
|
14
23
|
|
|
15
24
|
### Ditambahkan
|
|
@@ -19,7 +28,7 @@ tag yang versinya belum ada di file ini. Perbarui juga [docs/STATUS.md](docs/STA
|
|
|
19
28
|
- Agent stubs English multi-platform (Claude/Cursor/Antigravity/OpenCode) + orchestrator stubs; stack in agent context.
|
|
20
29
|
- Root `CATENEXT.md` master prompt for new sessions; platform entry files (`CLAUDE.md`, `.cursor/CATENEXT.md`, …) redirect there, then `AGENTS.md`.
|
|
21
30
|
- `session_brief.pending_approvals` with approve/revise/next options for human chat gates.
|
|
22
|
-
- README Master Prompt awal untuk cold-start chat
|
|
31
|
+
- README Master Prompt awal untuk cold-start chat (salin-tempel), termasuk **Bootstrap (install/init)**.
|
|
23
32
|
- Parallel subagents wajib worktree terpisah; orchestrator memantau semua worktree, mengintegrasikan, lalu bertanya manusia: PR | merge | revise | next.
|
|
24
33
|
- Kickoff brainstorm + `sync-board` / skill `cross-agent-sync`; persona `scribe` + skill `docs-hygiene` untuk merapikan dokumen.
|
|
25
34
|
|
|
@@ -31,6 +40,8 @@ tag yang versinya belum ada di file ini. Perbarui juga [docs/STATUS.md](docs/STA
|
|
|
31
40
|
- Token lease task/review di-hash (`sha256.…`) di state; pemanggil tetap memakai token plaintext.
|
|
32
41
|
- README mirror publik (`catenext-cli`): panduan lokal SQLite, master prompt `CATENEXT.md`,
|
|
33
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.
|
|
34
45
|
|
|
35
46
|
### Removed
|
|
36
47
|
- Web dashboard, Cloud API, browser login, premium quotas, and deployment configuration.
|
package/README.md
CHANGED
|
@@ -36,8 +36,9 @@ Mulai ulang IDE/CLI, lalu percayai server MCP `catenext` jika diminta.
|
|
|
36
36
|
| OpenCode | `opencode` | sesuai setup OpenCode + `.opencode/CATENEXT.md` |
|
|
37
37
|
|
|
38
38
|
`init` menulis `.catenext/config.yaml`, entri MCP, `.gitignore`, **`CATENEXT.md`** (master
|
|
39
|
-
prompt), pointer platform, blok di `AGENTS.md`, dan seed persona
|
|
40
|
-
(
|
|
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`.
|
|
41
42
|
`catenext remove` membersihkan setup (bukan file state SQLite, kecuali Anda hapus sendiri).
|
|
42
43
|
|
|
43
44
|
```bash
|
|
@@ -45,31 +46,128 @@ catenext sync --platform cursor --dry-run
|
|
|
45
46
|
catenext sync --platform cursor --force
|
|
46
47
|
```
|
|
47
48
|
|
|
48
|
-
##
|
|
49
|
+
## Master prompt (salin ke chat)
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
untuk aturan orchestrator lengkap.
|
|
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
53
|
|
|
54
|
-
|
|
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`.
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
3. Jika ada `pending_approvals`, tawarkan manusia: **approve** · **revise** · **next**.
|
|
59
|
-
4. Baru rencanakan task / delegasikan ke persona.
|
|
57
|
+
````markdown
|
|
58
|
+
# Catenext · Master Prompt
|
|
60
59
|
|
|
61
|
-
|
|
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
|
|
117
|
+
|
|
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)
|
|
129
|
+
|
|
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.
|
|
62
157
|
|
|
63
158
|
## Orchestrator dan persona
|
|
64
159
|
|
|
65
160
|
- **Orchestrator** memecah tujuan, menyusun DRAFT, mendelegasikan, meninjau worktree, dan
|
|
66
161
|
bertanya ke manusia sebelum merge/PR.
|
|
67
|
-
- **Persona** adalah subagent (alias + role + repo).
|
|
68
|
-
`
|
|
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`.
|
|
69
165
|
|
|
70
166
|
```bash
|
|
71
167
|
catenext persona list
|
|
168
|
+
catenext persona set tester --role testing # tambah role yang kurang
|
|
72
169
|
catenext persona set bambang --role backend --repo api
|
|
170
|
+
catenext sync --platform cursor # tulis stub agen untuk persona baru
|
|
73
171
|
catenext brief
|
|
74
172
|
catenext board
|
|
75
173
|
```
|