opencode-agent-orchestration-kit 1.0.44 → 1.0.45
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/docs/models.md +1 -1
- package/docs/releases/v1.0.45.md +77 -0
- package/opencode/agents/lead.md +40 -1
- package/opencode/docs/ai/harness/agents.md +15 -0
- package/opencode/scripts/check-harness.mjs +8 -0
- package/package.json +3 -1
- package/scripts/benchmark-tool-paths.mjs +1 -1
- package/scripts/check-supply-chain.mjs +2 -1
- package/scripts/check-supply-chain.test.mjs +2 -1
- package/scripts/package-smoke.mjs +14 -0
- package/scripts/package-smoke.test.mjs +45 -2
- package/scripts/version.test.mjs +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 +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
package/README.md
CHANGED
|
@@ -420,7 +420,7 @@ After a tagged release is published, you can install the same CLI directly
|
|
|
420
420
|
from GitHub without keeping a checkout:
|
|
421
421
|
|
|
422
422
|
```bash
|
|
423
|
-
npm install --global "git+https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit.git#v1.0.
|
|
423
|
+
npm install --global "git+https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit.git#v1.0.45"
|
|
424
424
|
oc-switch
|
|
425
425
|
```
|
|
426
426
|
|
|
@@ -849,7 +849,7 @@ Validate only the canonical identity and current release note with:
|
|
|
849
849
|
|
|
850
850
|
```bash
|
|
851
851
|
npm run check:version
|
|
852
|
-
node scripts/version.mjs --check-tag v1.0.
|
|
852
|
+
node scripts/version.mjs --check-tag v1.0.45
|
|
853
853
|
```
|
|
854
854
|
|
|
855
855
|
Tag validation compares an explicitly supplied tag with the package identity.
|
package/docs/models.md
CHANGED
|
@@ -34,7 +34,7 @@ oc-switch
|
|
|
34
34
|
Once a release tag exists, a checkout is optional:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
npm install --global "git+https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit.git#v1.0.
|
|
37
|
+
npm install --global "git+https://github.com/jcarlosrodicio/opencode-agent-orchestration-kit.git#v1.0.45"
|
|
38
38
|
oc-switch
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# v1.0.45 - Safe lifecycle and canonical release identity
|
|
2
|
+
|
|
3
|
+
This patch release makes `lead` a router in fact and not only in its contract.
|
|
4
|
+
Its `bash` permission defaulted to `ask`, and with `--auto` OpenCode
|
|
5
|
+
auto-approves every permission that is not explicitly denied, so `lead` could
|
|
6
|
+
run any command, writes included, and it implemented changes itself instead of
|
|
7
|
+
delegating them. It also states the routing decision as fields instead of
|
|
8
|
+
prose, and it stops the package from shipping files that git does not track.
|
|
9
|
+
|
|
10
|
+
v1.0.44 is deprecated: its tarball included `docker/open-design/data/` and
|
|
11
|
+
`docker/open-design/opencode-auth/`, local runtime state of the Open Design
|
|
12
|
+
container that is git-ignored but was matched by `files`. Both databases were
|
|
13
|
+
empty - no sessions, messages, accounts or tokens - and no credential, private
|
|
14
|
+
path or private endpoint was found in them or in the two container logs, but
|
|
15
|
+
they were never meant to be public. Upgrade to v1.0.45.
|
|
16
|
+
|
|
17
|
+
## Highlights
|
|
18
|
+
|
|
19
|
+
- `lead` cannot implement. `bash` now defaults to `"*": deny`, with the
|
|
20
|
+
read-only allowlist and the exact scripts lead's own commands tell it to run
|
|
21
|
+
(`loop-state.mjs inspect` for `/loop`, `preflight-audit.mjs` for `/evolve`).
|
|
22
|
+
The contract states the rule: `lead` always delegates, and a one-line change
|
|
23
|
+
is no exception. Measured after the fix, `lead` delegated to `developer` and
|
|
24
|
+
`reviewer` in every run and implemented nothing itself.
|
|
25
|
+
- `lead` routes in fields, not prose: `route`, `confidence`, `skipped` and a
|
|
26
|
+
one-line `why` only when confidence is low. Justifying discarded agents is
|
|
27
|
+
forbidden; measured, the routing turn generated up to 13,116 output tokens,
|
|
28
|
+
much of it explaining why agents that obviously did not apply were skipped.
|
|
29
|
+
- `opencode/scripts/check-harness.mjs` pins both. The permission check reads
|
|
30
|
+
only the `bash:` block, because `task` also defaults to `"*": deny` and a
|
|
31
|
+
whole-frontmatter match would have let an `ask` pass.
|
|
32
|
+
- The package ships only files that git tracks. `package-smoke` compares the
|
|
33
|
+
tarball listing with `git ls-files` and refuses any other file before
|
|
34
|
+
extraction, because npm packs whatever `files` matches on disk, ignored
|
|
35
|
+
local state included, and a denylist of names cannot anticipate the next
|
|
36
|
+
local file. `files` also excludes the Open Design container's runtime
|
|
37
|
+
directories, and the supply-chain contract pins that list.
|
|
38
|
+
|
|
39
|
+
## Installation or upgrade
|
|
40
|
+
|
|
41
|
+
Install or upgrade the published CLI package:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npm install --global opencode-agent-orchestration-kit@1.0.45
|
|
45
|
+
oak version
|
|
46
|
+
oak install --dry-run
|
|
47
|
+
oak install
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The npm installation exposes the CLIs but does not mutate OpenCode
|
|
51
|
+
configuration. `oak install` remains a separate, explicit operation.
|
|
52
|
+
|
|
53
|
+
## Migration
|
|
54
|
+
|
|
55
|
+
No migration is required. Existing harness configuration remains compatible.
|
|
56
|
+
A `lead` that used to be approved to run arbitrary commands under `--auto` is
|
|
57
|
+
now refused them and delegates instead; a local command that relies on `lead`
|
|
58
|
+
running a script outside the allowlist needs that exact command allowlisted,
|
|
59
|
+
not a broader default.
|
|
60
|
+
|
|
61
|
+
## Validation performed
|
|
62
|
+
|
|
63
|
+
The public contract check, unit and script suite, tag/version identity check,
|
|
64
|
+
`git diff --check`, and package smoke passed, the smoke now including the
|
|
65
|
+
tracked-files check against the exact tarball. GitHub Actions Check was green
|
|
66
|
+
on every merged pull request before the release tag.
|
|
67
|
+
|
|
68
|
+
## Public safety boundary
|
|
69
|
+
|
|
70
|
+
The public release excludes private OpenCode and Pi configuration, local
|
|
71
|
+
providers and MCP wiring, credentials, authentication files, provider URLs,
|
|
72
|
+
raw transcripts, private evidence, absolute machine-local paths, and runtime
|
|
73
|
+
state. The session measurements behind these changes stayed private: no model
|
|
74
|
+
names, session identifiers, or local database paths reached this repository.
|
|
75
|
+
|
|
76
|
+
Boundary statement: no private config, no credentials, no provider URLs, no
|
|
77
|
+
raw transcripts, no machine-local paths.
|
package/opencode/agents/lead.md
CHANGED
|
@@ -9,7 +9,12 @@ permission:
|
|
|
9
9
|
lsp: allow
|
|
10
10
|
edit: deny
|
|
11
11
|
bash:
|
|
12
|
-
|
|
12
|
+
# `deny`, not `ask`: with `--auto` every `ask` is auto-approved, so `ask`
|
|
13
|
+
# let `lead` run arbitrary commands - including writes - and it did.
|
|
14
|
+
# Only an explicit deny survives that flag. `lead` delegates; it never
|
|
15
|
+
# implements, so it needs read-only inspection and the few scripts its own
|
|
16
|
+
# commands tell it to run.
|
|
17
|
+
"*": deny
|
|
13
18
|
"git status*": allow
|
|
14
19
|
"git diff*": allow
|
|
15
20
|
"git log*": allow
|
|
@@ -20,6 +25,8 @@ permission:
|
|
|
20
25
|
"grep *": allow
|
|
21
26
|
"rg *": allow
|
|
22
27
|
"node scripts/collect-session-evidence.mjs --iteration *": allow
|
|
28
|
+
"node scripts/loop-state.mjs inspect*": allow
|
|
29
|
+
"node scripts/preflight-audit.mjs --iteration *": allow
|
|
23
30
|
"tail *": allow
|
|
24
31
|
"which": allow
|
|
25
32
|
"which *": allow
|
|
@@ -92,6 +99,38 @@ Routing decision:
|
|
|
92
99
|
- `specifier`: enough context exists, but the work still needs tasks, acceptance criteria, or a validation plan.
|
|
93
100
|
- Ask the user: real ambiguity changes whether research, design, spec, or direct implementation is appropriate.
|
|
94
101
|
|
|
102
|
+
**You always delegate. You do none of those things yourself.** Implementing
|
|
103
|
+
belongs to `developer`, investigating to `researcher`, reviewing to `reviewer`,
|
|
104
|
+
designing to `designer`, specifying to `specifier`. There is no exception for
|
|
105
|
+
size: a one-line change is delegated too. If you catch yourself editing,
|
|
106
|
+
running or reasoning out the solution instead of routing it, you have left your
|
|
107
|
+
role.
|
|
108
|
+
|
|
109
|
+
This no longer depends on you remembering it: your `bash` allowlist denies
|
|
110
|
+
everything that is not read-only inspection, so an attempt to implement is
|
|
111
|
+
refused instead of slipping through.
|
|
112
|
+
|
|
113
|
+
### How you emit the decision
|
|
114
|
+
|
|
115
|
+
Fields, not prose. Emit exactly this block and nothing else about routing:
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
route: developer | researcher | designer | specifier | ask_user
|
|
119
|
+
confidence: high | low
|
|
120
|
+
skipped: <agents not chosen, comma separated>
|
|
121
|
+
why: <one line, only when confidence is low or the route is not obvious>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Do not justify the agents you do not choose.** Writing a paragraph per
|
|
125
|
+
discarded agent ("Designer: not applicable - no UX/visual surface. Researcher:
|
|
126
|
+
not applicable - ...") is generation with no reader, and it lengthens the one
|
|
127
|
+
turn everything else hangs off. Measured on real runs, this turn reached 13,000
|
|
128
|
+
output tokens to route a twenty line function. `skipped` already says what you
|
|
129
|
+
discarded; why you discarded it only matters when `confidence` is `low`, and
|
|
130
|
+
then it fits on one line.
|
|
131
|
+
|
|
132
|
+
With `confidence: low`, emit `route: ask_user` and ask; do not choose silently.
|
|
133
|
+
|
|
95
134
|
When using persistent memory, recollections, or MCP context, treat them as hints
|
|
96
135
|
(`memory-as-hint`), not a source of truth. Verify against current
|
|
97
136
|
repository/artifact state before they affect routing or delegation decisions.
|
|
@@ -38,6 +38,21 @@ generate or modify frontmatter.
|
|
|
38
38
|
context.
|
|
39
39
|
- If `lead` needs to understand how the code works before deciding what to do,
|
|
40
40
|
it delegates substantive discovery to `researcher`.
|
|
41
|
+
- **`lead` always delegates and never implements**, whatever the size of the
|
|
42
|
+
change. The rule was already written down, but it was not enforced: with
|
|
43
|
+
`--auto` an `ask` permission is auto-approved, so `bash: "*": ask` let `lead`
|
|
44
|
+
run anything, writes included. Measured: `lead` implemented on its own with
|
|
45
|
+
grep/glob/read/bash instead of delegating. It is now `"*": deny` with a
|
|
46
|
+
read-only allowlist, plus the exact scripts its own commands tell it to run
|
|
47
|
+
(`loop-state.mjs inspect`, `preflight-audit.mjs`). A shell plugin that
|
|
48
|
+
rewrites commands must have its rewritten forms allowlisted too, or they fall
|
|
49
|
+
through to the deny.
|
|
50
|
+
- `lead` emits its routing decision as **fields, not prose**: `route`,
|
|
51
|
+
`confidence`, `skipped` and `why` (one line, only when `confidence` is `low`).
|
|
52
|
+
It does not justify the agents it discards. Measured on the
|
|
53
|
+
`feature-tag-normalizer` case, the routing turn generated between 3,776 and
|
|
54
|
+
13,116 output tokens, much of it paragraphs explaining why `designer` and
|
|
55
|
+
`researcher` did not apply to a twenty line function.
|
|
41
56
|
- If there is a diff, implementation, or reviewable plan, bug, security,
|
|
42
57
|
regression, and compliance review belongs to `reviewer`.
|
|
43
58
|
- Every `lead` handoff to another agent must be self-contained: objective,
|
|
@@ -1167,6 +1167,7 @@ function checkOrchestratedReviewContract() {
|
|
|
1167
1167
|
["agents/researcher.md", "BEGIN_SPEC_INPUT", "researcher must delimit a forwardable spec_input block"],
|
|
1168
1168
|
["agents/lead.md", "BEGIN_SPEC_INPUT", "lead must forward researcher's spec_input block"],
|
|
1169
1169
|
["agents/lead.md", "Do not re-synthesize the research", "lead must not rewrite research findings before specifier"],
|
|
1170
|
+
["agents/lead.md", "You always delegate. You do none of those things yourself", "lead must never implement"],
|
|
1170
1171
|
["agents/specifier.md", "BEGIN_SPEC_INPUT", "specifier must know the block arrives verbatim"],
|
|
1171
1172
|
]) {
|
|
1172
1173
|
if (exists(specRel) && !read(specRel).includes(specToken)) fail(`${specRel}: missing ${specToken} (${specWhy})`);
|
|
@@ -1317,6 +1318,13 @@ function checkLeadRouterContract() {
|
|
|
1317
1318
|
fail("agents/lead.md: lead edit permission must remain deny");
|
|
1318
1319
|
}
|
|
1319
1320
|
|
|
1321
|
+
// Only the `bash:` block: `task` also defaults to `"*": deny`, and matching
|
|
1322
|
+
// the whole frontmatter would let an `ask` pass.
|
|
1323
|
+
const leadBash = (frontmatter.match(/^ bash:\n((?: .*\n)+)/m) || [])[1] || "";
|
|
1324
|
+
if (!/^\s*"\*":\s*deny\s*$/m.test(leadBash)) {
|
|
1325
|
+
fail('agents/lead.md: bash must default to deny - with --auto an "ask" is auto-approved, which let lead implement instead of delegating');
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1320
1328
|
for (const command of [
|
|
1321
1329
|
'"cd": allow',
|
|
1322
1330
|
'"cd *": allow',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-agent-orchestration-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Open-source multi-agent orchestration harness for OpenCode with specialized agents, durable workflows, review gates, and reproducible software-engineering processes.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,6 +39,8 @@
|
|
|
39
39
|
"SECURITY.md",
|
|
40
40
|
"compatibility.json",
|
|
41
41
|
"docker/",
|
|
42
|
+
"!docker/open-design/data/",
|
|
43
|
+
"!docker/open-design/opencode-auth/",
|
|
42
44
|
"docs/",
|
|
43
45
|
"doctor.sh",
|
|
44
46
|
"env.example",
|
|
@@ -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.45",
|
|
147
147
|
}).run("install", { targetRoot });
|
|
148
148
|
if (result.exitCode !== 0) throw invalid(`installation benchmark failed for ${fixture.id}`);
|
|
149
149
|
} finally {
|
|
@@ -33,7 +33,8 @@ const ACTION_RELEASE = /^v[1-9][0-9]*$/;
|
|
|
33
33
|
const NODE_IMAGE_TAG = /^[1-9][0-9]*-bookworm-slim$/;
|
|
34
34
|
const PACKAGE_FILES = [
|
|
35
35
|
"CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "NOTICE.md", "README.md",
|
|
36
|
-
"SECURITY.md", "compatibility.json", "docker/",
|
|
36
|
+
"SECURITY.md", "compatibility.json", "docker/",
|
|
37
|
+
"!docker/open-design/data/", "!docker/open-design/opencode-auth/", "docs/", "doctor.sh",
|
|
37
38
|
"env.example", "install.sh", "opencode/", "rollback.sh", "scripts/",
|
|
38
39
|
"supply-chain.json", "uninstall.sh", "upgrade.sh",
|
|
39
40
|
];
|
|
@@ -14,7 +14,8 @@ import {
|
|
|
14
14
|
const SCRIPTS_ROOT = path.dirname(fileURLToPath(import.meta.url));
|
|
15
15
|
const PACKAGE_FILES = [
|
|
16
16
|
"CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "NOTICE.md", "README.md",
|
|
17
|
-
"SECURITY.md", "compatibility.json", "docker/",
|
|
17
|
+
"SECURITY.md", "compatibility.json", "docker/",
|
|
18
|
+
"!docker/open-design/data/", "!docker/open-design/opencode-auth/", "docs/", "doctor.sh",
|
|
18
19
|
"env.example", "install.sh", "opencode/", "rollback.sh", "scripts/",
|
|
19
20
|
"supply-chain.json", "uninstall.sh", "upgrade.sh",
|
|
20
21
|
];
|
|
@@ -119,6 +119,18 @@ export function validatePackedFileSet(names) {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
// Every packed file must be one git tracks. npm packs whatever `files` matches
|
|
123
|
+
// on disk, git-ignored local state included - v1.0.44 shipped docker/open-design
|
|
124
|
+
// runtime databases that way - and a denylist of names cannot anticipate the
|
|
125
|
+
// next local file. The tracked set can.
|
|
126
|
+
export function validateTrackedFileSet(names, tracked) {
|
|
127
|
+
for (const name of names) {
|
|
128
|
+
if (name.endsWith("/")) continue;
|
|
129
|
+
const relative = name.startsWith("package/") ? name.slice("package/".length) : name;
|
|
130
|
+
if (!tracked.has(relative)) throw smokeError(`packed file is not tracked by git: ${relative}`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
122
134
|
export function validatePackedOak({ packed, packedRoot, fsOps = fs }) {
|
|
123
135
|
if (
|
|
124
136
|
!packed?.bin
|
|
@@ -344,6 +356,8 @@ export async function smokeTarball(options = {}) {
|
|
|
344
356
|
const verboseLines = archiveNames(verbose.stdout);
|
|
345
357
|
validateArchiveEntries(names, verboseLines);
|
|
346
358
|
validatePackedFileSet(names);
|
|
359
|
+
const tracked = run("git", ["-C", repositoryRoot, "ls-files", "-z"], { label: "git ls-files failed" });
|
|
360
|
+
validateTrackedFileSet(names, new Set(tracked.stdout.split("\0").filter(Boolean)));
|
|
347
361
|
|
|
348
362
|
const extracted = path.join(temporary.root, "extracted");
|
|
349
363
|
fs.mkdirSync(extracted);
|
|
@@ -13,11 +13,12 @@ import {
|
|
|
13
13
|
validateArchiveEntries,
|
|
14
14
|
validatePackedOak,
|
|
15
15
|
validatePackedFileSet,
|
|
16
|
+
validateTrackedFileSet,
|
|
16
17
|
} from "./package-smoke.mjs";
|
|
17
18
|
|
|
18
19
|
const ROOT = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
|
|
19
20
|
const HASH = "a".repeat(64);
|
|
20
|
-
const BASENAME = "opencode-agent-orchestration-kit-1.0.
|
|
21
|
+
const BASENAME = "opencode-agent-orchestration-kit-1.0.45.tgz";
|
|
21
22
|
const REQUIRED = [
|
|
22
23
|
"package/package.json",
|
|
23
24
|
"package/supply-chain.json",
|
|
@@ -205,12 +206,54 @@ for (const ignoredMetadata of [
|
|
|
205
206
|
});
|
|
206
207
|
}
|
|
207
208
|
|
|
209
|
+
// npm packs whatever `files` matches on disk, including git-ignored local state:
|
|
210
|
+
// v1.0.44 shipped docker/open-design's runtime databases that way. The name
|
|
211
|
+
// denylist above cannot anticipate the next one; git's tracked set can.
|
|
212
|
+
test("validateTrackedFileSet accepts a package made only of tracked files", () => {
|
|
213
|
+
validateTrackedFileSet(["package/", "package/package.json", "package/docker/"], new Set(["package.json"]));
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
test("validateTrackedFileSet rejects a packed file that git does not track", () => {
|
|
217
|
+
assert.throws(
|
|
218
|
+
() => validateTrackedFileSet(
|
|
219
|
+
["package/package.json", "package/docker/open-design/opencode-auth/opencode.db"],
|
|
220
|
+
new Set(["package.json"]),
|
|
221
|
+
),
|
|
222
|
+
/not tracked by git: docker\/open-design\/opencode-auth\/opencode\.db/,
|
|
223
|
+
);
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
test("smokeTarball checks the tracked set before extraction", async () => {
|
|
227
|
+
const calls = [];
|
|
228
|
+
await assert.rejects(
|
|
229
|
+
smokeTarball({
|
|
230
|
+
repositoryRoot: ROOT,
|
|
231
|
+
tarball: "/public/opencode-agent-orchestration-kit-1.0.45.tgz",
|
|
232
|
+
captureTarball(_source, destination) {
|
|
233
|
+
fs.writeFileSync(destination, "fixture");
|
|
234
|
+
return { size: 1 };
|
|
235
|
+
},
|
|
236
|
+
hashFile: () => ({ sha256: HASH, sha1: "b".repeat(40), sha512: "c".repeat(128) }),
|
|
237
|
+
run(command, args) {
|
|
238
|
+
calls.push([command, ...args]);
|
|
239
|
+
const untracked = "package/docker/open-design/data/app.sqlite";
|
|
240
|
+
if (args.includes("-tzf")) return { stdout: `${[...REQUIRED, untracked].join("\n")}\n` };
|
|
241
|
+
if (args.includes("-tvzf")) return { stdout: `${[...REQUIRED, untracked].map(() => "-rw-r--r-- fixture").join("\n")}\n` };
|
|
242
|
+
if (command === "git") return { stdout: REQUIRED.map((name) => name.slice("package/".length)).join("\0") };
|
|
243
|
+
throw new Error("extraction must not run");
|
|
244
|
+
},
|
|
245
|
+
}),
|
|
246
|
+
/not tracked by git: docker\/open-design\/data\/app\.sqlite/,
|
|
247
|
+
);
|
|
248
|
+
assert.deepEqual(calls.map((call) => call[0]), ["tar", "tar", "git"]);
|
|
249
|
+
});
|
|
250
|
+
|
|
208
251
|
test("smokeTarball validates both archive listings before extraction", async () => {
|
|
209
252
|
const calls = [];
|
|
210
253
|
await assert.rejects(
|
|
211
254
|
smokeTarball({
|
|
212
255
|
repositoryRoot: ROOT,
|
|
213
|
-
tarball: "/public/opencode-agent-orchestration-kit-1.0.
|
|
256
|
+
tarball: "/public/opencode-agent-orchestration-kit-1.0.45.tgz",
|
|
214
257
|
captureTarball(_source, destination) {
|
|
215
258
|
fs.writeFileSync(destination, "fixture");
|
|
216
259
|
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.45\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.45\n", wrapper);
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|