opencode-agent-orchestration-kit 1.0.33 → 1.0.38
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 +101 -6
- package/docs/cli.md +31 -3
- package/docs/models.md +30 -0
- package/docs/releases/v1.0.34.md +59 -0
- package/docs/releases/v1.0.35.md +62 -0
- package/docs/releases/v1.0.36.md +58 -0
- package/docs/releases/v1.0.37.md +53 -0
- package/docs/releases/v1.0.38.md +44 -0
- package/docs/supply-chain.md +2 -2
- package/opencode/agents/lead.md +11 -2
- package/opencode/agents/review_api.md +26 -9
- package/opencode/agents/review_coordinator.md +60 -68
- package/opencode/agents/review_quality.md +27 -11
- package/opencode/agents/review_security.md +26 -10
- package/opencode/agents/review_tests.md +26 -9
- package/opencode/agents/reviewer.md +95 -80
- package/opencode/commands/autonomous.md +75 -0
- package/opencode/commands/evolve.md +3 -1
- package/opencode/commands/feature.md +6 -2
- package/opencode/commands/loop.md +12 -8
- package/opencode/commands/review-orchestrated.md +26 -24
- package/opencode/commands/review-preflight.md +8 -7
- package/opencode/commands/review.md +27 -10
- package/opencode/docs/ai/harness/README.md +3 -0
- package/opencode/docs/ai/harness/agents.md +20 -3
- package/opencode/docs/ai/harness/checks.md +9 -0
- package/opencode/docs/ai/harness/commands.md +36 -0
- package/opencode/docs/ai/harness/orchestrated-review.md +8 -1
- package/opencode/docs/ai/harness/orchestration-contracts.json +34 -1
- package/opencode/package-lock.json +3 -3
- package/opencode/package.json +1 -1
- package/opencode/plugins/shell-export-guard.ts +23 -0
- package/opencode/scripts/adversarial-harness.test.mjs +5 -2
- package/opencode/scripts/check-harness.mjs +241 -10
- package/opencode/scripts/check-harness.test.mjs +190 -8
- package/opencode/scripts/loop-state.mjs +88 -14
- package/opencode/scripts/loop-state.test.mjs +82 -5
- package/opencode/scripts/review-orchestrated-prepare.mjs +18 -1
- package/opencode/scripts/review-orchestrated-prepare.test.mjs +49 -0
- package/opencode/scripts/shell-export-policy.d.mts +4 -0
- package/opencode/scripts/shell-export-policy.mjs +272 -0
- package/opencode/scripts/shell-export-policy.test.mjs +96 -0
- package/opencode/skills/code-review-and-quality/SKILL.md +63 -321
- package/opencode/skills/code-review-and-quality/references/profiles/backend-clean-ddd-cqrs.md +60 -0
- package/opencode/skills/code-review-and-quality/references/profiles/backend.md +54 -0
- package/opencode/skills/code-review-and-quality/references/profiles/frontend-clean-layered.md +60 -0
- package/opencode/skills/code-review-and-quality/references/profiles/frontend.md +62 -0
- package/opencode/skills/code-review-and-quality/references/review-policy.md +258 -0
- package/package.json +5 -3
- package/scripts/check-supply-chain.mjs +9 -2
- package/scripts/check-supply-chain.test.mjs +16 -11
- package/scripts/check.sh +8 -4
- package/scripts/oak.mjs +47 -1
- package/scripts/oak.test.mjs +61 -2
- package/scripts/oc-switch.mjs +472 -0
- package/scripts/oc-switch.test.mjs +217 -0
- package/scripts/package-smoke.mjs +16 -2
- package/scripts/package-smoke.test.mjs +7 -5
- package/scripts/version.test.mjs +2 -2
- package/supply-chain.json +1 -1
- 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 +0 -17
- package/docker/open-design/opencode-auth/log/2026-05-04T102127.log +0 -16
- 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
|
@@ -15,6 +15,7 @@ const REQUIRED_FILES = [
|
|
|
15
15
|
"package/install.sh",
|
|
16
16
|
"package/scripts/manage-installation.mjs",
|
|
17
17
|
"package/scripts/oak.mjs",
|
|
18
|
+
"package/scripts/oc-switch.mjs",
|
|
18
19
|
"package/scripts/package-smoke.sh",
|
|
19
20
|
"package/scripts/package-smoke.mjs",
|
|
20
21
|
"package/opencode/opencode.json",
|
|
@@ -123,10 +124,11 @@ export function validatePackedOak({ packed, packedRoot, fsOps = fs }) {
|
|
|
123
124
|
!packed?.bin
|
|
124
125
|
|| typeof packed.bin !== "object"
|
|
125
126
|
|| Array.isArray(packed.bin)
|
|
126
|
-
|| JSON.stringify(Object.keys(packed.bin).sort()) !== JSON.stringify(["oak"])
|
|
127
|
+
|| JSON.stringify(Object.keys(packed.bin).sort()) !== JSON.stringify(["oak", "oc-switch"])
|
|
127
128
|
|| packed.bin.oak !== "scripts/oak.mjs"
|
|
129
|
+
|| packed.bin["oc-switch"] !== "scripts/oc-switch.mjs"
|
|
128
130
|
) {
|
|
129
|
-
throw smokeError("packed package bin must expose
|
|
131
|
+
throw smokeError("packed package bin must expose oak and oc-switch at their scripts entrypoints");
|
|
130
132
|
}
|
|
131
133
|
let stat;
|
|
132
134
|
try {
|
|
@@ -140,6 +142,18 @@ export function validatePackedOak({ packed, packedRoot, fsOps = fs }) {
|
|
|
140
142
|
if ((stat.mode & 0o111) === 0) {
|
|
141
143
|
throw smokeError("packed oak entrypoint must be executable");
|
|
142
144
|
}
|
|
145
|
+
let switchStat;
|
|
146
|
+
try {
|
|
147
|
+
switchStat = fsOps.lstatSync(path.join(packedRoot, packed.bin["oc-switch"]));
|
|
148
|
+
} catch {
|
|
149
|
+
throw smokeError("packed oc-switch entrypoint is missing");
|
|
150
|
+
}
|
|
151
|
+
if (switchStat.isSymbolicLink() || !switchStat.isFile()) {
|
|
152
|
+
throw smokeError("packed oc-switch entrypoint must be a regular non-symlink file");
|
|
153
|
+
}
|
|
154
|
+
if ((switchStat.mode & 0o111) === 0) {
|
|
155
|
+
throw smokeError("packed oc-switch entrypoint must be executable");
|
|
156
|
+
}
|
|
143
157
|
}
|
|
144
158
|
|
|
145
159
|
function inspectRegularFile(file) {
|
|
@@ -17,13 +17,14 @@ 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.38.tgz";
|
|
21
21
|
const REQUIRED = [
|
|
22
22
|
"package/package.json",
|
|
23
23
|
"package/supply-chain.json",
|
|
24
24
|
"package/install.sh",
|
|
25
25
|
"package/scripts/manage-installation.mjs",
|
|
26
26
|
"package/scripts/oak.mjs",
|
|
27
|
+
"package/scripts/oc-switch.mjs",
|
|
27
28
|
"package/scripts/package-smoke.sh",
|
|
28
29
|
"package/scripts/package-smoke.mjs",
|
|
29
30
|
"package/opencode/opencode.json",
|
|
@@ -157,20 +158,21 @@ test("validatePackedOak requires exact metadata and executable regular file", (t
|
|
|
157
158
|
t.after(() => fs.rmSync(root, { recursive: true, force: true }));
|
|
158
159
|
fs.mkdirSync(path.join(root, "scripts"));
|
|
159
160
|
fs.writeFileSync(path.join(root, "scripts/oak.mjs"), "#!/usr/bin/env node\n", { mode: 0o755 });
|
|
161
|
+
fs.writeFileSync(path.join(root, "scripts/oc-switch.mjs"), "#!/usr/bin/env node\n", { mode: 0o755 });
|
|
160
162
|
assert.doesNotThrow(() => validatePackedOak({
|
|
161
|
-
packed: { bin: { oak: "scripts/oak.mjs" } },
|
|
163
|
+
packed: { bin: { oak: "scripts/oak.mjs", "oc-switch": "scripts/oc-switch.mjs" } },
|
|
162
164
|
packedRoot: root,
|
|
163
165
|
}));
|
|
164
166
|
for (const bin of [
|
|
165
167
|
undefined,
|
|
166
168
|
{ oak: "scripts/other.mjs" },
|
|
167
|
-
{ oak: "scripts/oak.mjs", other: "scripts/other.mjs" },
|
|
169
|
+
{ oak: "scripts/oak.mjs", "oc-switch": "scripts/oc-switch.mjs", other: "scripts/other.mjs" },
|
|
168
170
|
]) {
|
|
169
171
|
assert.throws(() => validatePackedOak({ packed: { bin }, packedRoot: root }), /bin/i);
|
|
170
172
|
}
|
|
171
173
|
fs.chmodSync(path.join(root, "scripts/oak.mjs"), 0o644);
|
|
172
174
|
assert.throws(() => validatePackedOak({
|
|
173
|
-
packed: { bin: { oak: "scripts/oak.mjs" } },
|
|
175
|
+
packed: { bin: { oak: "scripts/oak.mjs", "oc-switch": "scripts/oc-switch.mjs" } },
|
|
174
176
|
packedRoot: root,
|
|
175
177
|
}), /executable/i);
|
|
176
178
|
});
|
|
@@ -208,7 +210,7 @@ test("smokeTarball validates both archive listings before extraction", async ()
|
|
|
208
210
|
await assert.rejects(
|
|
209
211
|
smokeTarball({
|
|
210
212
|
repositoryRoot: ROOT,
|
|
211
|
-
tarball: "/public/opencode-agent-orchestration-kit-1.0.
|
|
213
|
+
tarball: "/public/opencode-agent-orchestration-kit-1.0.38.tgz",
|
|
212
214
|
captureTarball(_source, destination) {
|
|
213
215
|
fs.writeFileSync(destination, "fixture");
|
|
214
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.38\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.38\n", wrapper);
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
|
package/supply-chain.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
Binary file
|