opencodekit 0.12.5 → 0.12.6

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/dist/index.js CHANGED
@@ -750,7 +750,7 @@ var cac = (name = "") => new CAC(name);
750
750
  // package.json
751
751
  var package_default = {
752
752
  name: "opencodekit",
753
- version: "0.12.5",
753
+ version: "0.12.6",
754
754
  description: "CLI tool for bootstrapping and managing OpenCodeKit projects",
755
755
  type: "module",
756
756
  repository: {
@@ -764,7 +764,10 @@ var package_default = {
764
764
  bin: {
765
765
  ock: "dist/index.js"
766
766
  },
767
- files: ["dist", "README.md"],
767
+ files: [
768
+ "dist",
769
+ "README.md"
770
+ ],
768
771
  scripts: {
769
772
  dev: "bun run src/index.ts",
770
773
  build: "bun build src/index.ts --outdir dist --target node && mkdir -p dist/template && rsync -av --exclude=node_modules --exclude=dist --exclude=.git --exclude=coverage --exclude=.next --exclude=.turbo --exclude=logs --exclude=package-lock.json .opencode/ dist/template/.opencode/",
@@ -776,7 +779,14 @@ var package_default = {
776
779
  lint: "biome check .",
777
780
  "lint:fix": "biome check --fix ."
778
781
  },
779
- keywords: ["cli", "opencodekit", "template", "agents", "mcp", "opencode"],
782
+ keywords: [
783
+ "cli",
784
+ "opencodekit",
785
+ "template",
786
+ "agents",
787
+ "mcp",
788
+ "opencode"
789
+ ],
780
790
  author: "OpenCodeKit",
781
791
  license: "MIT",
782
792
  engines: {
@@ -799,7 +809,9 @@ var package_default = {
799
809
  "@types/node": "^22.10.1",
800
810
  typescript: "^5.7.2"
801
811
  },
802
- trustedDependencies: ["@beads/bd"]
812
+ trustedDependencies: [
813
+ "@beads/bd"
814
+ ]
803
815
  };
804
816
 
805
817
  // src/commands/agent.ts
@@ -174,12 +174,20 @@ Build is a **leader agent** - owns the session and coordinates with beads.
174
174
 
175
175
  ### Session Workflow
176
176
 
177
+ ```bash
178
+ bd status # Check workspace status
179
+ bd ready # Find next ready task
180
+ bd update <id> --status in_progress # Claim task
177
181
  ```
178
- bd_init({ role: "build" }) # Join workspace
179
- bd_claim() # Get next ready task
180
- bd_reserve([files]) # Lock files before editing
182
+
183
+ ```typescript
184
+ bd-reserve({ paths: ["src/file.ts"], ttl: 600 }) # Lock files before editing
185
+ ```
186
+
187
+ ```bash
181
188
  [... do work, delegate to subagents ...]
182
- bd_done(id, "reason") # Complete and release locks
189
+ bd close <id> --reason "Completed: description" # Complete task
190
+ bd sync # Sync changes
183
191
  → RESTART SESSION
184
192
  ```
185
193
 
@@ -189,10 +197,10 @@ When claiming an **epic**:
189
197
 
190
198
  1. Delegate to @planner for breakdown
191
199
  2. Create sub-tasks in beads with appropriate tags:
192
- ```
193
- bd_add({ title: "Research X", tags: ["scout"], parent: epicId })
194
- bd_add({ title: "Design Y", tags: ["planner"], parent: epicId })
195
- bd_add({ title: "Implement Z", tags: ["build"], parent: epicId })
200
+ ```bash
201
+ bd create "Research X" -t task -p 2 --parent <epicId>
202
+ bd create "Design Y" -t task -p 2 --parent <epicId>
203
+ bd create "Implement Z" -t task -p 2 --parent <epicId>
196
204
  ```
197
205
  3. Execute sub-tasks yourself OR delegate via Task tool
198
206
  4. Close epic when all sub-tasks done
@@ -215,8 +223,14 @@ Results return to you (leader). You update beads accordingly.
215
223
 
216
224
  ### File Locking
217
225
 
218
- Only leader agents use `bd_reserve`:
226
+ Only leader agents use `bd-reserve` tool:
227
+
228
+ ```typescript
229
+ bd-reserve({ paths: ["src/file.ts"], ttl: 600 }); // Lock files
230
+ bd-release({ paths: ["src/file.ts"] }); // Release specific
231
+ bd-release(); // List active locks
232
+ ```
219
233
 
220
234
  - Reserve before editing shared files
221
- - Auto-released on `bd_done()`
222
- - Check `bd_reservations()` if conflicts
235
+ - Release after completing edits
236
+ - Check `bd-release()` (no args) to list active locks if conflicts
@@ -129,11 +129,13 @@ Rush should **skip beads** when:
129
129
 
130
130
  ### Minimal Workflow
131
131
 
132
- ```
133
- bd_init({ role: "rush" }) # Join workspace
134
- bd_claim() # Get next ready task (or skip if user gave direct task)
132
+ ```bash
133
+ bd status # Check workspace status
134
+ bd ready # Find ready tasks (or skip if user gave direct task)
135
+ bd update <id> --status in_progress # Claim task
135
136
  [... quick work ...]
136
- bd_done(id, "reason") # Complete
137
+ bd close <id> --reason "Done" # Complete
138
+ bd sync # Sync changes
137
139
  → RESTART SESSION
138
140
  ```
139
141
 
@@ -50,76 +50,30 @@
50
50
  "chatMaxRetries": 2,
51
51
  "continue_loop_on_deny": false,
52
52
  "lsp": true,
53
- "primary_tools": [
54
- "edit",
55
- "write",
56
- "bash"
57
- ]
53
+ "primary_tools": ["edit", "write", "bash"]
58
54
  },
59
55
  "formatter": {
60
56
  "biome": {
61
- "command": [
62
- "npx",
63
- "@biomejs/biome",
64
- "check",
65
- "--write",
66
- "$FILE"
67
- ],
68
- "extensions": [
69
- ".js",
70
- ".jsx",
71
- ".ts",
72
- ".tsx",
73
- ".json",
74
- ".jsonc"
75
- ]
57
+ "command": ["npx", "@biomejs/biome", "check", "--write", "$FILE"],
58
+ "extensions": [".js", ".jsx", ".ts", ".tsx", ".json", ".jsonc"]
76
59
  },
77
60
  "cargo-fmt": {
78
- "command": [
79
- "cargo",
80
- "fmt",
81
- "--",
82
- "$FILE"
83
- ],
84
- "extensions": [
85
- ".rs"
86
- ]
61
+ "command": ["cargo", "fmt", "--", "$FILE"],
62
+ "extensions": [".rs"]
87
63
  },
88
64
  "java-formatter": {
89
- "command": [
90
- "google-java-format",
91
- "--replace",
92
- "$FILE"
93
- ],
65
+ "command": ["google-java-format", "--replace", "$FILE"],
94
66
  "environment": {
95
67
  "JAVA_HOME": "{env:JAVA_HOME}"
96
68
  },
97
- "extensions": [
98
- ".java"
99
- ]
69
+ "extensions": [".java"]
100
70
  },
101
71
  "prettier": {
102
- "command": [
103
- "npx",
104
- "prettier",
105
- "--write",
106
- "$FILE"
107
- ],
108
- "extensions": [
109
- ".html",
110
- ".css",
111
- ".scss",
112
- ".sass",
113
- ".md",
114
- ".yaml",
115
- ".yml"
116
- ]
72
+ "command": ["npx", "prettier", "--write", "$FILE"],
73
+ "extensions": [".html", ".css", ".scss", ".sass", ".md", ".yaml", ".yml"]
117
74
  }
118
75
  },
119
- "instructions": [
120
- ".opencode/memory/user.md",
121
- ".opencode/memory/project/*.md"
122
- ],
76
+ "instructions": [".opencode/memory/user.md", ".opencode/memory/project/*.md"],
123
77
  "keybinds": {
124
78
  "command_list": ";",
125
79
  "leader": "`",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencodekit",
3
- "version": "0.12.5",
3
+ "version": "0.12.6",
4
4
  "description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
5
5
  "type": "module",
6
6
  "repository": {
@@ -14,7 +14,10 @@
14
14
  "bin": {
15
15
  "ock": "dist/index.js"
16
16
  },
17
- "files": ["dist", "README.md"],
17
+ "files": [
18
+ "dist",
19
+ "README.md"
20
+ ],
18
21
  "scripts": {
19
22
  "dev": "bun run src/index.ts",
20
23
  "build": "bun build src/index.ts --outdir dist --target node && mkdir -p dist/template && rsync -av --exclude=node_modules --exclude=dist --exclude=.git --exclude=coverage --exclude=.next --exclude=.turbo --exclude=logs --exclude=package-lock.json .opencode/ dist/template/.opencode/",
@@ -26,7 +29,14 @@
26
29
  "lint": "biome check .",
27
30
  "lint:fix": "biome check --fix ."
28
31
  },
29
- "keywords": ["cli", "opencodekit", "template", "agents", "mcp", "opencode"],
32
+ "keywords": [
33
+ "cli",
34
+ "opencodekit",
35
+ "template",
36
+ "agents",
37
+ "mcp",
38
+ "opencode"
39
+ ],
30
40
  "author": "OpenCodeKit",
31
41
  "license": "MIT",
32
42
  "engines": {
@@ -49,5 +59,7 @@
49
59
  "@types/node": "^22.10.1",
50
60
  "typescript": "^5.7.2"
51
61
  },
52
- "trustedDependencies": ["@beads/bd"]
62
+ "trustedDependencies": [
63
+ "@beads/bd"
64
+ ]
53
65
  }