opencodekit 0.16.3 → 0.16.4

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.
Files changed (33) hide show
  1. package/dist/index.js +7685 -2238
  2. package/dist/template/.opencode/AGENTS.md +7 -7
  3. package/dist/template/.opencode/agent/build.md +1 -2
  4. package/dist/template/.opencode/agent/plan.md +0 -1
  5. package/dist/template/.opencode/command/create.md +2 -2
  6. package/dist/template/.opencode/command/design.md +1 -1
  7. package/dist/template/.opencode/command/handoff.md +2 -2
  8. package/dist/template/.opencode/command/plan.md +19 -19
  9. package/dist/template/.opencode/command/pr.md +2 -2
  10. package/dist/template/.opencode/command/research.md +1 -1
  11. package/dist/template/.opencode/command/resume.md +3 -3
  12. package/dist/template/.opencode/command/review-codebase.md +2 -2
  13. package/dist/template/.opencode/command/ship.md +4 -4
  14. package/dist/template/.opencode/command/start.md +7 -7
  15. package/dist/template/.opencode/command/status.md +3 -3
  16. package/dist/template/.opencode/command/ui-review.md +2 -2
  17. package/dist/template/.opencode/command/verify.md +1 -1
  18. package/dist/template/.opencode/memory/beads-workflow.md +65 -65
  19. package/dist/template/.opencode/memory.db-shm +0 -0
  20. package/dist/template/.opencode/memory.db-wal +0 -0
  21. package/dist/template/.opencode/plans/1770013678126-witty-planet.md +1 -1
  22. package/dist/template/.opencode/plans/1770112267595-shiny-rocket.md +258 -0
  23. package/dist/template/.opencode/plans/swarm-protocol.md +8 -8
  24. package/dist/template/.opencode/plugin/README.md +2 -2
  25. package/dist/template/.opencode/plugin/compaction.ts +1 -1
  26. package/dist/template/.opencode/plugin/swarm-enforcer.ts +6 -6
  27. package/dist/template/.opencode/skill/beads/SKILL.md +7 -7
  28. package/dist/template/.opencode/skill/beads-bridge/SKILL.md +3 -3
  29. package/dist/template/.opencode/skill/session-management/SKILL.md +2 -2
  30. package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +4 -4
  31. package/dist/template/.opencode/tool/beads-sync.ts +5 -5
  32. package/dist/template/.opencode/tool/observation.ts +1 -1
  33. package/package.json +6 -19
@@ -145,7 +145,7 @@ Full cycle from Beads task to swarm execution and back:
145
145
  await beads_sync({ operation: "push" });
146
146
 
147
147
  // 2. Claim the parent Bead
148
- await bash("bd update parent-task --status in_progress");
148
+ await bash("br update parent-task --status in_progress");
149
149
 
150
150
  // 3. Analyze and spawn swarm
151
151
  const analysis = await swarm_plan({
@@ -167,7 +167,7 @@ await swarm_monitor({
167
167
  });
168
168
 
169
169
  // 7. Close parent Bead
170
- await bash("bd close parent-task --reason 'Swarm completed all subtasks'");
170
+ await bash("br close parent-task --reason 'Swarm completed all subtasks'");
171
171
  ```
172
172
 
173
173
  ### Pattern B: Dependency-Aware Task Scheduling
@@ -278,7 +278,7 @@ DURING WORK:
278
278
  SESSION END:
279
279
  beads-sync({ operation: "pull" }) // Sync completed todos back to Beads
280
280
  swarm-monitor({ operation: "clear", team_name: "..." }) // Cleanup swarm state
281
- bd sync // Push Beads changes to git
281
+ br sync --flush-only // Export Beads changes to git
282
282
 
283
283
  RECOVERY:
284
284
  beads-sync({ operation: "get_shared", list_id: "..." }) // Get shared task list
@@ -64,7 +64,7 @@ Use before `read_session` to get a quick overview of what happened in a past ses
64
64
 
65
65
  ## When to Start New Session
66
66
 
67
- - Completing distinct task from `bd ready`
67
+ - Completing distinct task from `br ready`
68
68
  - Token usage approaching 150k
69
69
  - Switching phases (implementation → review → testing)
70
70
  - After handoff (`/handoff <bead-id>`)
@@ -90,7 +90,7 @@ Use all available sources:
90
90
  1. `read_session("last")` - Previous session work
91
91
  2. Git state - `git diff`, `git log` - Code changes
92
92
  3. Memory files - `.opencode/memory/*` - Persistent context
93
- 4. Beads - `bd show <id>` - Task specs
93
+ 4. Beads - `br show <id>` - Task specs
94
94
 
95
95
  **Don't**: Carry everything forward. Extract what's needed, discard the rest.
96
96
 
@@ -264,7 +264,7 @@ await swarm_monitor({
264
264
  });
265
265
 
266
266
  // 5. Close parent bead
267
- await bash("bd close parent-task --reason 'Swarm completed all subtasks'");
267
+ await bash("br close parent-task --reason 'Swarm completed all subtasks'");
268
268
  ```
269
269
 
270
270
  ## Dependency Graph Features
@@ -477,7 +477,7 @@ Swarm works on top of Beads:
477
477
  3. **Workers claim child** beads (via delegation packets)
478
478
  4. **Progress tracked** via `swarm-monitor progress_update`
479
479
  5. **Completion syncs** back via `beads-sync pull`
480
- 6. **Close parent** bead with `bd close`
480
+ 6. **Close parent** bead with `br close`
481
481
 
482
482
  ```typescript
483
483
  // Full integration workflow
@@ -486,7 +486,7 @@ await beads_sync({ operation: "push" }); // Make Beads visible
486
486
  await swarm_monitor({ operation: "render_block", team_name: "..." }); // Monitor progress
487
487
  // ... monitor completion ...
488
488
  await beads_sync({ operation: "pull" }); // Sync completed back
489
- await bash("bd close parent-task --reason 'Swarm completed'");
489
+ await bash("br close parent-task --reason 'Swarm completed'");
490
490
  ```
491
491
 
492
492
  ## Quick Reference - Kimi K2.5 PARL Pattern
@@ -506,7 +506,7 @@ SWARM LAUNCH (PARL):
506
506
  5. MONITOR: swarm_monitor({ operation: "render_block" })
507
507
  → Real-time TUI progress
508
508
  6. VERIFY: npm run typecheck && npm run lint && npm test
509
- 7. CLOSE: beads-sync({ operation: "pull" }) && bd close <bead>
509
+ 7. CLOSE: beads-sync({ operation: "pull" }) && br close <bead>
510
510
 
511
511
  WORKER EXECUTION:
512
512
  1. Read delegation packet
@@ -140,9 +140,9 @@ async function pushBeadsToTodos(
140
140
  filter = "open",
141
141
  ): Promise<string> {
142
142
  try {
143
- // Get beads tasks using bd list
144
- const statusFilter = filter === "all" ? "" : `--status=${filter}`;
145
- const { stdout } = await execAsync(`bd list ${statusFilter} --json`, {
143
+ // Get beads tasks using br list (beads_rust)
144
+ const statusFilter = filter === "all" ? "" : `--status ${filter}`;
145
+ const { stdout } = await execAsync(`br list ${statusFilter} --json`, {
146
146
  cwd: worktree,
147
147
  });
148
148
 
@@ -150,7 +150,7 @@ async function pushBeadsToTodos(
150
150
  try {
151
151
  beadTasks = JSON.parse(stdout);
152
152
  } catch {
153
- // bd list might not support --json, parse text output
153
+ // br list might not support --json, parse text output
154
154
  beadTasks = parseBeadListOutput(stdout);
155
155
  }
156
156
 
@@ -262,7 +262,7 @@ async function pullTodosToBeads(
262
262
  for (const todo of completedBeadTodos) {
263
263
  try {
264
264
  await execAsync(
265
- `bd close ${todo.beadId} --reason "Completed via todo"`,
265
+ `br close ${todo.beadId} --reason "Completed via todo"`,
266
266
  { cwd: worktree },
267
267
  );
268
268
  updated.push(todo.beadId!);
@@ -254,7 +254,7 @@ export default tool({
254
254
  const { execSync } = await import("node:child_process");
255
255
  const noteContent = `${TYPE_ICONS[obsType]} ${obsType}: ${args.title}`;
256
256
  execSync(
257
- `bd edit ${args.bead_id} --note "${noteContent.replace(/"/g, '\\"')}"`,
257
+ `br edit ${args.bead_id} --note "${noteContent.replace(/"/g, '\\"')}"`,
258
258
  {
259
259
  cwd: process.cwd(),
260
260
  encoding: "utf-8",
package/package.json CHANGED
@@ -1,15 +1,8 @@
1
1
  {
2
2
  "name": "opencodekit",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
5
- "keywords": [
6
- "agents",
7
- "cli",
8
- "mcp",
9
- "opencode",
10
- "opencodekit",
11
- "template"
12
- ],
5
+ "keywords": ["agents", "cli", "mcp", "opencode", "opencodekit", "template"],
13
6
  "license": "MIT",
14
7
  "author": "OpenCodeKit",
15
8
  "repository": {
@@ -19,10 +12,7 @@
19
12
  "bin": {
20
13
  "ock": "dist/index.js"
21
14
  },
22
- "files": [
23
- "dist",
24
- "README.md"
25
- ],
15
+ "files": ["dist", "README.md"],
26
16
  "type": "module",
27
17
  "publishConfig": {
28
18
  "access": "public",
@@ -48,18 +38,18 @@
48
38
  "@opencode-ai/plugin": "^1.1.12",
49
39
  "@opentui/core": "^0.1.72",
50
40
  "@opentui/solid": "^0.1.72",
51
- "beads-village": "^1.3.3",
52
41
  "cac": "^6.7.14",
53
42
  "cli-table3": "^0.6.5",
43
+ "diff": "^8.0.3",
54
44
  "ora": "^9.0.0",
55
45
  "picocolors": "^1.1.1",
56
46
  "solid-js": "1.9.9",
57
47
  "zod": "^3.25.76"
58
48
  },
59
49
  "devDependencies": {
60
- "@beads/bd": "^0.29.0",
61
50
  "@biomejs/biome": "^1.9.4",
62
51
  "@types/bun": "latest",
52
+ "@types/diff": "^8.0.0",
63
53
  "@types/node": "^22.19.5",
64
54
  "oxfmt": "^0.23.0",
65
55
  "oxlint": "^1.38.0",
@@ -67,8 +57,5 @@
67
57
  },
68
58
  "engines": {
69
59
  "bun": ">=1.3.2"
70
- },
71
- "trustedDependencies": [
72
- "@beads/bd"
73
- ]
60
+ }
74
61
  }