Official
opencode-v2
OpenCode 2 agent provider: runs opencode serve (2.x) and talks to its /api over HTTP and server-sent events.
The app opens the listing; nothing installs until an agent in your Plugins workspace has read the files and you enable the plugin. In a terminal: dvg install divergence/opencode-v2@0.1.5
Permissions in 0.1.5
Files
maintenance.test.ts423 B
// The installed version out of `opencode --version`.
import assert from "node:assert/strict";
import { test } from "node:test";
import { versionIn } from "./maintenance.ts";
test("the version is read out of the line the binary prints", () => {
assert.equal(versionIn("opencode v2.1.1\n"), "2.1.1");
assert.equal(versionIn("2.2.0-beta.3"), "2.2.0-beta.3");
assert.equal(versionIn("opencode (dev build)"), null);
});
No comments yet.