catenext 0.6.1 → 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,19 @@ 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
+
13
26
  ## [0.6.1] - 2026-11-27
14
27
 
15
28
  ### Diubah
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
@@ -46,6 +60,47 @@ catenext sync --platform cursor --dry-run
46
60
  catenext sync --platform cursor --force
47
61
  ```
48
62
 
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
+
49
104
  ## Master prompt (salin ke chat)
50
105
 
51
106
  Tempel blok di bawah sebagai **pesan pertama** di chat agen (repo kosong atau sudah ada
@@ -113,6 +168,31 @@ human goal
113
168
 
114
169
  - Tidy pass: persona `scribe` + skill `docs-hygiene`.
115
170
 
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
+
116
196
  ## Human approval template
117
197
 
118
198
  ```text
@@ -130,6 +210,7 @@ Reply with 1 / 2 / 3 (or the same words in chat).
130
210
  | Need | Command |
131
211
  | --- | --- |
132
212
  | Install CLI | `npm install -g catenext` |
213
+ | Upgrade CLI | `npm install -g catenext@latest` then `catenext sync --force` + restart IDE |
133
214
  | First-time setup | `catenext init --platform <id>` (`--dry-run` / `--yes`) |
134
215
  | Verify MCP | `catenext verify --platform <id>` |
135
216
  | Add persona | `catenext persona set <alias> --role <role>` then `catenext sync` |
@@ -144,10 +225,12 @@ Reply with 1 / 2 / 3 (or the same words in chat).
144
225
  ## Do / Don't
145
226
 
146
227
  - **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.
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.
148
231
  - **Don't** implement persona tasks yourself unless the human explicitly asks.
149
232
  - **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.
233
+ - **Don't** invent test/merge results.
151
234
 
152
235
  Full rules → [AGENTS.md](./AGENTS.md). Persona stubs → platform `agents/` folders (English, stack-aware).
153
236
  ````
@@ -310,6 +393,7 @@ Semua perintah CLI menerima `--json`. `catenext --help` untuk opsi lengkap.
310
393
  | `document_version_conflict` | Baca ulang, gabungkan, simpan dengan versi terbaru |
311
394
  | Approve ditolak dari MCP | Setujui lewat CLI: `task approve` / `review approve` |
312
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 |
313
397
  | State lama JSON | Jalankan perintah apa pun yang membuka store — migrasi sekali ke SQLite |
314
398
 
315
399
  ## Build dari source
package/dist/index.js CHANGED
@@ -1274,13 +1274,42 @@ var init_orchestrator = __esm({
1274
1274
  "",
1275
1275
  "Do not claim tests passed or approval done without evidence. Never invent merge status.",
1276
1276
  "",
1277
+ "### Missing tools / access (research, fetch, browser, \u2026)",
1278
+ "",
1279
+ "If the orchestrator or a persona lacks a required capability (web research, fetch/HTTP, browser,",
1280
+ "private URL, login, paid API, OS permission, etc.):",
1281
+ "",
1282
+ "1. Stop \u2014 do **not** invent page contents, API bodies, or pretend the tool ran.",
1283
+ "2. Ask the human in **their language** for permission or help (enable tool, paste info, skip).",
1284
+ "3. Wait for an explicit reply before that path continues.",
1285
+ "",
1286
+ "```text",
1287
+ "ACCESS NEEDED",
1288
+ "need: <research | fetch | browser | login | other>",
1289
+ "why: <one line>",
1290
+ "Options: 1) allow / enable tool 2) paste the info yourself 3) skip this path 4) other",
1291
+ "Reply with 1 / 2 / 3 / 4.",
1292
+ "```",
1293
+ "",
1294
+ "Personas that hit a missing-access wall report it to the orchestrator (or via `sync-board` ASK);",
1295
+ "the orchestrator asks the human \u2014 personas do not invent external facts.",
1296
+ "",
1297
+ "### Secrets & credentials (never publish)",
1298
+ "",
1299
+ "- **Never** publish or store credentials / critical secrets in handoffs, project docs, `sync-board`,",
1300
+ " git commits, PRs, issues, shared chat dumps, or CI logs.",
1301
+ "- Covers API keys, tokens, passwords, private keys, cookies, raw `.env` values, DB URLs with passwords,",
1302
+ " signing/OTA keys, and similar. Cite **paths** only; use env / secret managers the human controls.",
1303
+ "- If the human pastes a secret into chat, do not copy it into durable Catenext or git artifacts.",
1304
+ "- Scrubber is best-effort redaction \u2014 agents must still refuse to paste secrets on purpose.",
1305
+ "",
1277
1306
  "### Subagent briefing template",
1278
1307
  "",
1279
1308
  "```text",
1280
1309
  "GOAL: measurable outcome",
1281
1310
  "SCOPE: dirs/files allowed",
1282
1311
  "CONTEXT: stack, docs, prior handoffs, graph neighbors if useful",
1283
- "CONSTRAINTS: dedicated worktree/branch; no merge to main; no secrets in handoffs",
1312
+ "CONSTRAINTS: dedicated worktree/branch; no merge to main; never publish credentials/secrets",
1284
1313
  "DONE WHEN: tests/verify command and handoff fields from that worktree",
1285
1314
  "```",
1286
1315
  "",
@@ -1299,7 +1328,7 @@ var init_orchestrator = __esm({
1299
1328
  '- Blocked: `catenext block <id> --category <\u2026> --reason "..."`.'
1300
1329
  ];
1301
1330
  GENERAL_RULES = [
1302
- "Rules: no secrets or code dumps in handoffs/docs (cite paths); do not hand-edit `.catenext/config.yaml` or IDE MCP configs \u2014 use init/sync after user confirmation. Skills: `.catenext/skills/`. Prefer compact tool JSON."
1331
+ "Rules: never publish credentials or critical secrets (handoffs/docs/git/PR \u2014 cite paths only); no code dumps; do not hand-edit `.catenext/config.yaml` or IDE MCP configs \u2014 use init/sync after user confirmation. Skills: `.catenext/skills/`. Prefer compact tool JSON. Missing research/fetch/browser \u2192 ask the human (`ACCESS NEEDED`); never invent external results."
1303
1332
  ];
1304
1333
  }
1305
1334
  });
@@ -2591,7 +2620,9 @@ function starterDocuments(updatedBy = "catenext-init", seededAliases = []) {
2591
2620
  "4. Delegate only; concurrent personas each use a separate git worktree.",
2592
2621
  "5. Watch all worktrees; after handoffs integrate if needed, then ask: PR | merge | revise | next.",
2593
2622
  "6. Docs tidy: add persona `scribe` if needed, then skill `docs-hygiene`.",
2594
- "7. Keep tool outputs brief; no code dumps or secrets."
2623
+ "7. Missing research/fetch/browser (or other access): ask the human with ACCESS NEEDED \u2014 never invent results.",
2624
+ "8. Never publish credentials or critical secrets (handoffs/docs/git/PR) \u2014 cite paths only.",
2625
+ "9. Keep tool outputs brief; no code dumps."
2595
2626
  ].join("\n")
2596
2627
  },
2597
2628
  {
@@ -4362,6 +4393,31 @@ function renderMasterPrompt() {
4362
4393
  "",
4363
4394
  "- Tidy pass: persona `scribe` + skill `docs-hygiene`.",
4364
4395
  "",
4396
+ "## Missing tools / access",
4397
+ "",
4398
+ "If you lack a capability the work needs (web research, fetch/HTTP, browser, private URL, login, paid API, OS permission, etc.):",
4399
+ "1. **Stop guessing** \u2014 do not invent page contents, API responses, or \u201CI browsed it\u201D.",
4400
+ "2. **Ask the human** (their language) for permission or help, with a concrete ask.",
4401
+ "3. Wait for OK / paste / enable-tool before continuing that path.",
4402
+ "4. If the human pastes a secret into chat, **do not** copy it into docs, handoffs, commits, PRs, or issues \u2014 use env/local files they control.",
4403
+ "",
4404
+ "```text",
4405
+ "ACCESS NEEDED",
4406
+ "need: <research | fetch | browser | login | other>",
4407
+ "why: <one line>",
4408
+ "Options: 1) allow / enable tool 2) paste the info yourself 3) skip this path 4) other",
4409
+ "Reply with 1 / 2 / 3 / 4.",
4410
+ "```",
4411
+ "",
4412
+ "## Secrets & credentials (never publish)",
4413
+ "",
4414
+ "Never publish or persist credentials or other critical secrets anywhere durable or shared:",
4415
+ "handoffs, docs, `sync-board`, commits, PRs, issues, chat logs meant for others, screenshots, CI logs.",
4416
+ "Includes: API keys, tokens, passwords, private keys, cookies, `.env` values, connection strings with passwords,",
4417
+ "OTA/signing keys, session cookies, personal data that must stay private.",
4418
+ "Cite **paths** (e.g. `.env`, `secrets/\u2026`) only. Prefer env vars / secret managers the human already uses.",
4419
+ "Catenext scrubbing is best-effort \u2014 you still must not paste secrets on purpose.",
4420
+ "",
4365
4421
  "## Human approval template",
4366
4422
  "",
4367
4423
  "```text",
@@ -4379,6 +4435,7 @@ function renderMasterPrompt() {
4379
4435
  "| Need | Command |",
4380
4436
  "| --- | --- |",
4381
4437
  "| Install CLI | `npm install -g catenext` |",
4438
+ "| Upgrade CLI | `npm install -g catenext@latest` then `catenext sync --force` + restart IDE |",
4382
4439
  "| First-time setup | `catenext init --platform <id>` (`--dry-run` / `--yes`) |",
4383
4440
  "| Verify MCP | `catenext verify --platform <id>` |",
4384
4441
  "| Add persona | `catenext persona set <alias> --role <role>` then `catenext sync` |",
@@ -4393,10 +4450,12 @@ function renderMasterPrompt() {
4393
4450
  "## Do / Don't",
4394
4451
  "",
4395
4452
  "- **Do** install/init when setup is missing; seed only personas that match this repo; add more with `persona set` when needed.",
4396
- "- **Don't** invent cloud accounts, API keys, or dashboards \u2014 this CLI is local SQLite only.",
4453
+ "- **Do** ask the human when research/fetch/browser (or any required access) is missing \u2014 never fake the result.",
4454
+ "- **Don't** invent cloud accounts, dashboards, or fake credentials \u2014 this CLI is local SQLite only.",
4455
+ "- **Don't** publish credentials or critical secrets (handoffs, docs, git, PR, issues) \u2014 paths only.",
4397
4456
  "- **Don't** implement persona tasks yourself unless the human explicitly asks.",
4398
4457
  "- **Don't** merge to main without explicit human choice; prefer PR when unsure.",
4399
- "- **Don't** invent test/merge results or paste secrets into handoffs/docs.",
4458
+ "- **Don't** invent test/merge results.",
4400
4459
  "",
4401
4460
  "Full rules \u2192 [AGENTS.md](./AGENTS.md). Persona stubs \u2192 platform `agents/` folders (English, stack-aware).",
4402
4461
  ""
@@ -5089,7 +5148,7 @@ function renderSubagent(p, ctx = { stack: [], personas: [] }) {
5089
5148
  "- After claim, read document `sync-board` if present (kickoff contracts / open asks).",
5090
5149
  "- Prefer MCP `get_project_context` + claim payload over dumping the whole repo.",
5091
5150
  "- Use `graph_neighbors` / `symbol_search` only for files you will touch.",
5092
- "- Cite paths in handoffs; never paste secrets or large code dumps.",
5151
+ "- Cite paths in handoffs; **never publish** credentials or critical secrets (or large code dumps).",
5093
5152
  "",
5094
5153
  "## Cross-agent asks",
5095
5154
  "",
@@ -5115,6 +5174,8 @@ function renderSubagent(p, ctx = { stack: [], personas: [] }) {
5115
5174
  "- Do not call `create_tasks`, `manage_task`, or `upsert_persona`.",
5116
5175
  ...p.alias === "scribe" ? ["- Exception: you may `save_document` for project docs hygiene (skill `docs-hygiene`)."] : ["- Do not call `save_document` unless you are persona `scribe` on a docs task."],
5117
5176
  "- Do not integrate other personas' worktrees or merge to main \u2014 orchestrator + human decide PR vs merge.",
5177
+ "- If you lack research/fetch/browser (or other required access): stop, report to orchestrator \u2014 do not invent external facts.",
5178
+ "- Never copy API keys, tokens, passwords, private keys, or `.env` values into handoffs/docs/git.",
5118
5179
  "",
5119
5180
  "## Rules (customizable)",
5120
5181
  "",
@@ -5185,7 +5246,7 @@ function renderOrchestratorAgent(ctx) {
5185
5246
  "## Safety",
5186
5247
  "",
5187
5248
  "- No invented test/merge results.",
5188
- "- No secrets in handoffs or docs.",
5249
+ "- Never publish credentials/secrets in handoffs, docs, commits, or PRs \u2014 paths only.",
5189
5250
  "- Never merge default without explicit human choice (prefer PR).",
5190
5251
  "- Destructive actions require explicit human confirmation.",
5191
5252
  ""
@@ -6222,7 +6283,7 @@ var SERVER_INSTRUCTIONS = [
6222
6283
  "Workers: get_ready_tasks then claim_task (worktree required for monorepo). complete_handoff \u2192 NEEDS_REVIEW.",
6223
6284
  "Human approve_plan/approve stays on the CLI. Revisions reuse the same task.",
6224
6285
  "External folders: manage_roots. Code graph: catenext index then graph_neighbors / symbol_search.",
6225
- "No secrets or code dumps in handoffs/docs. Do not hand-edit .catenext/config.yaml or IDE MCP configs."
6286
+ "Never publish credentials or critical secrets (handoffs/docs/git \u2014 paths only). No code dumps. Do not hand-edit .catenext/config.yaml or IDE MCP configs."
6226
6287
  ].join(" ");
6227
6288
  var text = (body) => ({
6228
6289
  content: [{ type: "text", text: body }],
@@ -6456,7 +6517,7 @@ function formatChecks(lines) {
6456
6517
  }
6457
6518
 
6458
6519
  // src/index.ts
6459
- var VERSION = "0.6.1";
6520
+ var VERSION = "0.6.2";
6460
6521
  var program = new Command();
6461
6522
  program.name("catenext").description("Estafet tugas & konteks antar-agen AI coding").version(VERSION);
6462
6523
  async function friendly(fn) {