@brainervirus/workit-opencode 8.37.1 → 8.37.3

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/README.md CHANGED
@@ -17,8 +17,7 @@ context injection on session start and after compaction. Requires Node.js 24+.
17
17
  ```
18
18
 
19
19
  Local checkout: run `bun packages/workit-opencode/scripts/build.ts`, then pin
20
- `"file:///path/to/workit/packages/workit-opencode"`. OpenCode 1.x must stay on
21
- `"plugin": ["@brainervirus/workit-opencode@2"]`.
20
+ `"file:///path/to/workit/packages/workit-opencode"` in `plugins`.
22
21
 
23
22
  Effects (git, forge, files) run through OpenCode's native tools and the
24
23
  `workit` CLI under OpenCode permissions plus the workspace
package/dist/plugin.js CHANGED
@@ -14486,19 +14486,11 @@ function appendLine(file, build, options) {
14486
14486
  try {
14487
14487
  if (process.platform !== "win32")
14488
14488
  tighten(fd);
14489
- const size = fs14.fstatSync(fd).size;
14490
- let fence = "";
14491
- if (size > 0) {
14492
- const last = Buffer.alloc(1);
14493
- fs14.readSync(fd, last, 0, 1, size - 1);
14494
- if (last[0] !== 10)
14495
- fence = `
14496
- `;
14497
- }
14498
- const line = build(lastLine(fd, size));
14489
+ const line = build(lastLine(fd, fs14.fstatSync(fd).size));
14499
14490
  if (!line.ok)
14500
14491
  return line;
14501
- const bytes = Buffer.from(fence + line.value);
14492
+ const bytes = Buffer.from(`
14493
+ ${line.value}`);
14502
14494
  const written = fs14.writeSync(fd, bytes);
14503
14495
  if (written !== bytes.length)
14504
14496
  return err("unavailable", `short write to ${file}: ${written} of ${bytes.length} bytes; the row is torn and will be skipped`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-opencode",
3
- "version": "8.37.1",
3
+ "version": "8.37.3",
4
4
  "private": false,
5
5
  "description": "Workit OpenCode plugin — native tools, adaptive policy, and sixteen method skills",
6
6
  "keywords": [
@@ -39,7 +39,7 @@
39
39
  "typecheck": "tsc --noEmit"
40
40
  },
41
41
  "devDependencies": {
42
- "@brainervirus/workit-core": "^8.37.1",
42
+ "@brainervirus/workit-core": "^8.37.3",
43
43
  "@opencode/plugin": "2.0.18"
44
44
  },
45
45
  "engines": {