opencode-plugin-flow 3.3.0 → 3.3.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 CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [3.3.1] - 2026-06-13
6
+
7
+ Finish the SDK log-contract fix: tool-surface logging now uses the same safe wrapper as plugin startup
8
+
9
+ The 3.2.2 release fixed the startup log call that could crash plugin init on generated OpenCode SDK clients, but a second log path remained in `createTools`: it called `ctx.client.app.log` directly with top-level `{ level, message }` fields. That path did not currently crash because it was not detached, but it still violated the host contract (`app.log` expects `{ body: ... }`) and could record an `undefined` entry or become the next plugin-load footgun if the SDK tightens validation.
10
+
11
+ Flow now has one adapter logging helper. Both plugin startup and tool-surface creation call through `createFlowLog`, which keeps host logging best-effort, invokes the SDK method through the app object, and always posts `{ body: { service: "opencode-plugin-flow", level, message } }`. The duplicate ad-hoc logger in `tools.ts` is gone.
12
+
13
+ The SDK-shaped regression tests now assert the tool-surface log entry itself, not only the startup entry, and reject `undefined` log bodies. The distributed bundle smoke carries the same assertion so the packaged path stays covered.
14
+
15
+ No commands, tools, state paths, schemas, skills, or user-facing workflow behavior changed.
16
+
17
+ Tested: `bun run check`; `bun run smoke:release`.
18
+
19
+ Not-tested: Live OpenCode UI restart against the release candidate; covered by SDK-shaped unit/dist smoke and packed-tarball install smoke.
20
+
5
21
  ## [3.3.0] - 2026-06-13
6
22
 
7
23
  Audit findings must now survive refutation: a new audit rubric for the run lane, and adversarial review of findings reports
package/README.md CHANGED
@@ -29,7 +29,7 @@ Add Flow to the `plugin` array in your `opencode.json` (global `~/.config/openco
29
29
 
30
30
  ```json
31
31
  {
32
- "plugin": ["opencode-plugin-flow@3.3.0"]
32
+ "plugin": ["opencode-plugin-flow@3.3.1"]
33
33
  }
34
34
  ```
35
35