opencode-agent-orchestration-kit 1.0.40 → 1.0.41
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 +2 -2
- package/docker/open-design/data/app.sqlite +0 -0
- package/docker/open-design/data/app.sqlite-shm +0 -0
- package/docker/open-design/data/app.sqlite-wal +0 -0
- package/docker/open-design/opencode-auth/log/2026-05-02T105802.log +17 -0
- package/docker/open-design/opencode-auth/log/2026-05-04T102127.log +16 -0
- package/docker/open-design/opencode-auth/opencode.db +0 -0
- package/docker/open-design/opencode-auth/opencode.db-shm +0 -0
- package/docker/open-design/opencode-auth/opencode.db-wal +0 -0
- package/docs/models.md +1 -1
- package/docs/releases/v1.0.41.md +42 -0
- package/package.json +1 -1
- package/scripts/benchmark-tool-paths.mjs +1 -1
- package/scripts/oc-switch.mjs +2 -1
- package/scripts/oc-switch.test.mjs +38 -0
- package/scripts/package-smoke.test.mjs +2 -2
- package/scripts/version.test.mjs +2 -2
package/README.md
CHANGED
|
@@ -327,7 +327,7 @@ After a tagged release is published, you can install the same CLI directly
|
|
|
327
327
|
from GitHub without keeping a checkout:
|
|
328
328
|
|
|
329
329
|
```bash
|
|
330
|
-
npm install --global "git+https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit.git#v1.0.
|
|
330
|
+
npm install --global "git+https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit.git#v1.0.41"
|
|
331
331
|
oc-switch
|
|
332
332
|
```
|
|
333
333
|
|
|
@@ -741,7 +741,7 @@ Validate only the canonical identity and current release note with:
|
|
|
741
741
|
|
|
742
742
|
```bash
|
|
743
743
|
npm run check:version
|
|
744
|
-
node scripts/version.mjs --check-tag v1.0.
|
|
744
|
+
node scripts/version.mjs --check-tag v1.0.41
|
|
745
745
|
```
|
|
746
746
|
|
|
747
747
|
Tag validation compares an explicitly supplied tag with the package identity.
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
INFO 2026-05-02T10:58:02 +270ms service=default version=1.14.31 args=["models"] process_role=main run_id=a2a78294-b4d4-488d-99c7-9b9e1f6ba68f opencode
|
|
2
|
+
INFO 2026-05-02T10:58:02 +0ms service=db path=/home/opencode/.local/share/opencode/opencode.db opening database
|
|
3
|
+
INFO 2026-05-02T10:58:02 +5ms service=db count=14 mode=bundled applying migrations
|
|
4
|
+
INFO 2026-05-02T10:58:02 +11ms service=json-migration storage directory does not exist, skipping migration
|
|
5
|
+
INFO 2026-05-02T10:58:02 +1ms service=default directory=/app/open-design creating instance
|
|
6
|
+
INFO 2026-05-02T10:58:02 +3ms service=project directory=/app/open-design fromDirectory
|
|
7
|
+
INFO 2026-05-02T10:58:02 +56ms service=file init
|
|
8
|
+
INFO 2026-05-02T10:58:02 +41ms service=provider status=started state
|
|
9
|
+
INFO 2026-05-02T10:58:02 +8ms service=config path=/home/opencode/.config/opencode/config.json loading
|
|
10
|
+
INFO 2026-05-02T10:58:02 +1ms service=config path=/home/opencode/.config/opencode/opencode.json loading
|
|
11
|
+
INFO 2026-05-02T10:58:02 +5ms service=config path=/home/opencode/.config/opencode/opencode.jsonc loading
|
|
12
|
+
INFO 2026-05-02T10:58:02 +3ms service=config path=/home/opencode/.config/opencode/opencode.json loading
|
|
13
|
+
INFO 2026-05-02T10:58:02 +1ms service=config path=/home/opencode/.config/opencode/opencode.jsonc loading
|
|
14
|
+
ERROR 2026-05-02T10:58:02 +13ms service=default name=PlatformError message=Unknown: FileSystem.writeFile (/home/opencode/.config/opencode/.gitignore) cause=Error: EROFS: read-only file system, open '/home/opencode/.config/opencode/.gitignore' stack=Error
|
|
15
|
+
at LA (/$bunfs/root/chunk-2jj9v4nh.js:71:4213)
|
|
16
|
+
at <anonymous> (/$bunfs/root/chunk-jtzgjw2e.js:709:10709)
|
|
17
|
+
at processTicksAndRejections (native:7:39) fatal
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
INFO 2026-05-04T10:21:27 +675ms service=default version=1.14.31 args=["models"] process_role=main run_id=094c93b3-d70c-4527-8e21-87d24f443d76 opencode
|
|
2
|
+
INFO 2026-05-04T10:21:27 +2ms service=default directory=/app/open-design creating instance
|
|
3
|
+
INFO 2026-05-04T10:21:27 +13ms service=project directory=/app/open-design fromDirectory
|
|
4
|
+
INFO 2026-05-04T10:21:28 +980ms service=db path=/home/opencode/.local/share/opencode/opencode.db opening database
|
|
5
|
+
INFO 2026-05-04T10:21:28 +209ms service=db count=14 mode=bundled applying migrations
|
|
6
|
+
INFO 2026-05-04T10:21:28 +124ms service=file init
|
|
7
|
+
INFO 2026-05-04T10:21:29 +393ms service=provider status=started state
|
|
8
|
+
INFO 2026-05-04T10:21:29 +24ms service=config path=/home/opencode/.config/opencode/config.json loading
|
|
9
|
+
INFO 2026-05-04T10:21:29 +20ms service=config path=/home/opencode/.config/opencode/opencode.json loading
|
|
10
|
+
INFO 2026-05-04T10:21:29 +42ms service=config path=/home/opencode/.config/opencode/opencode.jsonc loading
|
|
11
|
+
INFO 2026-05-04T10:21:29 +204ms service=config path=/home/opencode/.config/opencode/opencode.json loading
|
|
12
|
+
INFO 2026-05-04T10:21:29 +46ms service=config path=/home/opencode/.config/opencode/opencode.jsonc loading
|
|
13
|
+
ERROR 2026-05-04T10:21:29 +119ms service=default name=PlatformError message=Unknown: FileSystem.writeFile (/home/opencode/.config/opencode/.gitignore) cause=Error: EROFS: read-only file system, open '/home/opencode/.config/opencode/.gitignore' stack=Error
|
|
14
|
+
at LA (/$bunfs/root/chunk-2jj9v4nh.js:71:4213)
|
|
15
|
+
at <anonymous> (/$bunfs/root/chunk-jtzgjw2e.js:709:10709)
|
|
16
|
+
at processTicksAndRejections (native:7:39) fatal
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
package/docs/models.md
CHANGED
|
@@ -26,7 +26,7 @@ oc-switch
|
|
|
26
26
|
Once a release tag exists, a checkout is optional:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm install --global "git+https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit.git#v1.0.
|
|
29
|
+
npm install --global "git+https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit.git#v1.0.41"
|
|
30
30
|
oc-switch
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# v1.0.41 - Safe lifecycle and canonical release identity
|
|
2
|
+
|
|
3
|
+
This patch release fixes agent-row selection in the interactive OpenCode model
|
|
4
|
+
switcher. Selecting a model for an agent now updates the agent assignment instead
|
|
5
|
+
of rejecting the selection as an invalid target.
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
- Fix `oc-switch` agent-row selections by mapping focused agent rows to the
|
|
10
|
+
internal `agents` assignment target.
|
|
11
|
+
- Add a regression test covering a focused agent selecting and saving a model.
|
|
12
|
+
|
|
13
|
+
## Installation or upgrade
|
|
14
|
+
|
|
15
|
+
Install or upgrade the public kit using the normal manifest-owned flow:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
./install.sh --dry-run
|
|
19
|
+
./install.sh
|
|
20
|
+
./upgrade.sh --dry-run
|
|
21
|
+
./upgrade.sh
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
After installation, run `oak check` and review the installed target before
|
|
25
|
+
using the harness.
|
|
26
|
+
|
|
27
|
+
## Migration
|
|
28
|
+
|
|
29
|
+
No migration is required. Existing model-switcher state and shell routing
|
|
30
|
+
remain compatible.
|
|
31
|
+
|
|
32
|
+
## Validation performed
|
|
33
|
+
|
|
34
|
+
The focused selector tests, full 1,068-test unit and script suite, contract
|
|
35
|
+
check, package smoke, syntax checks, and dry-run package inspection passed.
|
|
36
|
+
|
|
37
|
+
## Public safety boundary
|
|
38
|
+
|
|
39
|
+
The public release excludes private OpenCode and Pi configuration, local
|
|
40
|
+
providers and MCP wiring, credentials, authentication files, raw transcripts,
|
|
41
|
+
private evidence, absolute machine paths, and runtime state. Pi uses its own
|
|
42
|
+
native model catalog and is not included in this OpenCode package.
|
package/package.json
CHANGED
|
@@ -143,7 +143,7 @@ async function benchmarkFixture(fixture, iterations, temporaryRoot) {
|
|
|
143
143
|
const result = await createInstallationManager({
|
|
144
144
|
sourceRoot: fixture.sourceRoot,
|
|
145
145
|
repositoryRoot: fixture.root,
|
|
146
|
-
versionProvider: () => "1.0.
|
|
146
|
+
versionProvider: () => "1.0.41",
|
|
147
147
|
}).run("install", { targetRoot });
|
|
148
148
|
if (result.exitCode !== 0) throw invalid(`installation benchmark failed for ${fixture.id}`);
|
|
149
149
|
} finally {
|
package/scripts/oc-switch.mjs
CHANGED
|
@@ -411,7 +411,8 @@ export async function runTerminalOcSwitcher({ input = process.stdin, output = pr
|
|
|
411
411
|
const targetAgents = pickerTarget.kind === "agent"
|
|
412
412
|
? [...(selectedAgents.size ? selectedAgents : new Set([pickerTarget.key]))]
|
|
413
413
|
: [];
|
|
414
|
-
|
|
414
|
+
const target = pickerTarget.kind === "agent" ? "agents" : pickerTarget.key;
|
|
415
|
+
state = applyModelSelection(state, { target, agents: targetAgents, modelRef: available[pickerFocusedIndex] });
|
|
415
416
|
dirty = true; selectedAgents.clear(); screen = "main"; status = "Change pending save.";
|
|
416
417
|
} else if (name === "escape") { screen = "main"; pickerQuery = ""; }
|
|
417
418
|
else if (name === "backspace") { pickerQuery = pickerQuery.slice(0, -1); pickerFocusedIndex = 0; }
|
|
@@ -139,6 +139,44 @@ test("OpenCode TUI changes the default model and persists on q", async () => {
|
|
|
139
139
|
assert.match(output.writes.join(""), /Loading models/);
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
+
test("OpenCode TUI changes the focused agent model", async () => {
|
|
143
|
+
const input = createTuiInput();
|
|
144
|
+
const output = { isTTY: true, rows: 30, writes: [], write(chunk) { this.writes.push(String(chunk)); } };
|
|
145
|
+
const saved = [];
|
|
146
|
+
const state = {
|
|
147
|
+
schemaVersion: 1,
|
|
148
|
+
defaultModel: "nan/model-a",
|
|
149
|
+
smallModel: "nan/model-a",
|
|
150
|
+
agents: Object.fromEntries(AGENT_IDS.map((agent) => [agent, "nan/model-a"])),
|
|
151
|
+
};
|
|
152
|
+
const running = runTerminalOcSwitcher({
|
|
153
|
+
input,
|
|
154
|
+
output,
|
|
155
|
+
initialState: state,
|
|
156
|
+
initialModels: ["nan/model-a", "openai/model-b"],
|
|
157
|
+
refreshModels: async () => ["nan/model-a", "openai/model-b"],
|
|
158
|
+
saveState: async (nextState) => {
|
|
159
|
+
saved.push(nextState);
|
|
160
|
+
return nextState;
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
await nextTick();
|
|
165
|
+
emitKey(input, "down");
|
|
166
|
+
emitKey(input, "down");
|
|
167
|
+
emitKey(input, "return", "\r");
|
|
168
|
+
await nextTick();
|
|
169
|
+
emitKey(input, "down");
|
|
170
|
+
emitKey(input, "return", "\r");
|
|
171
|
+
await nextTick();
|
|
172
|
+
emitKey(input, "q");
|
|
173
|
+
const result = await running;
|
|
174
|
+
|
|
175
|
+
assert.equal(result.status, "saved");
|
|
176
|
+
assert.equal(saved.length, 1);
|
|
177
|
+
assert.equal(saved[0].agents.lead, "openai/model-b");
|
|
178
|
+
});
|
|
179
|
+
|
|
142
180
|
test("OpenCode search treats shortcut letters as query text", async () => {
|
|
143
181
|
const input = createTuiInput();
|
|
144
182
|
const output = { isTTY: true, rows: 30, writes: [], write(chunk) { this.writes.push(String(chunk)); } };
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
|
|
18
18
|
const ROOT = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
|
|
19
19
|
const HASH = "a".repeat(64);
|
|
20
|
-
const BASENAME = "opencode-agent-orchestration-kit-1.0.
|
|
20
|
+
const BASENAME = "opencode-agent-orchestration-kit-1.0.41.tgz";
|
|
21
21
|
const REQUIRED = [
|
|
22
22
|
"package/package.json",
|
|
23
23
|
"package/supply-chain.json",
|
|
@@ -210,7 +210,7 @@ test("smokeTarball validates both archive listings before extraction", async ()
|
|
|
210
210
|
await assert.rejects(
|
|
211
211
|
smokeTarball({
|
|
212
212
|
repositoryRoot: ROOT,
|
|
213
|
-
tarball: "/public/opencode-agent-orchestration-kit-1.0.
|
|
213
|
+
tarball: "/public/opencode-agent-orchestration-kit-1.0.41.tgz",
|
|
214
214
|
captureTarball(_source, destination) {
|
|
215
215
|
fs.writeFileSync(destination, "fixture");
|
|
216
216
|
return { size: 1 };
|
package/scripts/version.test.mjs
CHANGED
|
@@ -109,7 +109,7 @@ test("[V004] direct version entrypoints are exact and mutation-free", (t) => {
|
|
|
109
109
|
for (const args of [["scripts/version.mjs"], ["scripts/manage-installation.mjs", "--version"]]) {
|
|
110
110
|
const result = run(process.execPath, args, { HOME: home });
|
|
111
111
|
assert.equal(result.status, 0, result.stderr);
|
|
112
|
-
assert.equal(result.stdout, "opencode-agent-orchestration-kit 1.0.
|
|
112
|
+
assert.equal(result.stdout, "opencode-agent-orchestration-kit 1.0.41\n");
|
|
113
113
|
assert.equal(fs.existsSync(target), false);
|
|
114
114
|
}
|
|
115
115
|
});
|
|
@@ -118,7 +118,7 @@ test("[V005] all lifecycle wrappers expose the canonical version", () => {
|
|
|
118
118
|
for (const wrapper of ["install.sh", "upgrade.sh", "doctor.sh", "uninstall.sh", "rollback.sh"]) {
|
|
119
119
|
const result = run(path.join(REPOSITORY_ROOT, wrapper), ["--version"]);
|
|
120
120
|
assert.equal(result.status, 0, `${wrapper}: ${result.stderr}`);
|
|
121
|
-
assert.equal(result.stdout, "opencode-agent-orchestration-kit 1.0.
|
|
121
|
+
assert.equal(result.stdout, "opencode-agent-orchestration-kit 1.0.41\n", wrapper);
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
|