opencode-swarm 7.188.9 → 7.188.10
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/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{auto-checkpoint-8hn7sczv.js → auto-checkpoint-c4nesm12.js} +5 -5
- package/dist/cli/{checkpoint-zagm80g6.js → checkpoint-sfnz4843.js} +9 -9
- package/dist/cli/{coder-settlement-ea9wk0fa.js → coder-settlement-y7wjm4w3.js} +3 -3
- package/dist/cli/{config-doctor-482f83pc.js → config-doctor-d01gbn5x.js} +7 -7
- package/dist/cli/{core-jev9px23.js → core-1ymsg83x.js} +1 -1
- package/dist/cli/{curator-sw5w1yxn.js → curator-5ynapye5.js} +27 -27
- package/dist/cli/{curator-drift-tzr8cq9d.js → curator-drift-9tnm8jdz.js} +5 -5
- package/dist/cli/{curator-llm-factory-vwxengt1.js → curator-llm-factory-9z688c52.js} +27 -27
- package/dist/cli/{dispatch-h8m1jntz.js → dispatch-1pbmmj8z.js} +5 -7
- package/dist/cli/{doctor-knowledge-receipt-phase-id-78hqh9ds.js → doctor-knowledge-receipt-phase-id-tkkznw6t.js} +5 -5
- package/dist/cli/{evidence-summary-service-dpx7844s.js → evidence-summary-service-jsg0x7q1.js} +10 -10
- package/dist/cli/{gate-evidence-v5fbpnfe.js → gate-evidence-6r2qbk89.js} +2 -2
- package/dist/cli/{guardrail-explain-020gkz5c.js → guardrail-explain-7m0h7db3.js} +28 -28
- package/dist/cli/{guardrail-log-z14b98cn.js → guardrail-log-p6s1sbxh.js} +3 -3
- package/dist/cli/{guardrail-reset-cg6kfk8r.js → guardrail-reset-shvx8e8g.js} +27 -27
- package/dist/cli/{hive-promoter-bse7dh34.js → hive-promoter-f5cd2d49.js} +27 -27
- package/dist/cli/{index-7jtxt3qp.js → index-14d4cyxj.js} +1 -1
- package/dist/cli/{index-6nx6qf7v.js → index-3ad6fs6v.js} +1 -1
- package/dist/cli/{index-804rs273.js → index-3j27qc81.js} +1 -1
- package/dist/cli/{index-qdp9ny78.js → index-53t4xt8f.js} +1 -1
- package/dist/cli/{index-gd602ztc.js → index-562bdvys.js} +1 -1
- package/dist/cli/{index-akkskstq.js → index-6yrx7ggm.js} +4 -4
- package/dist/cli/{index-q6y176gs.js → index-7cxtwt5e.js} +6 -6
- package/dist/cli/{index-0dp2ak7d.js → index-8xxk1gv4.js} +1 -1
- package/dist/cli/{index-d1z2yrwq.js → index-9cqw29er.js} +2 -2
- package/dist/cli/{index-2mmbzyqb.js → index-b0jte72h.js} +1 -1
- package/dist/cli/{index-bzeegaem.js → index-d7m9qhpe.js} +2 -2
- package/dist/cli/{index-t6tew3pf.js → index-drpz069k.js} +1 -1
- package/dist/cli/{index-kjb143pz.js → index-e7t7b5xs.js} +3 -3
- package/dist/cli/{index-b2g020d7.js → index-gjjn069b.js} +1 -1
- package/dist/cli/{index-ddgmj923.js → index-hjpspz6z.js} +27 -27
- package/dist/cli/{index-sndyex1t.js → index-hxfsxkb8.js} +69 -77
- package/dist/cli/{index-64e9z08z.js → index-hzezk176.js} +2 -2
- package/dist/cli/{index-c0tjwb5k.js → index-j2vv0h13.js} +12 -12
- package/dist/cli/{index-cxybg712.js → index-jna86fsj.js} +2 -2
- package/dist/cli/{index-g0we5tpv.js → index-ks6s6pmk.js} +4 -4
- package/dist/cli/{index-b913b1yc.js → index-mbqaxnsy.js} +1 -1
- package/dist/cli/{index-v71w06rr.js → index-n3h6rwpf.js} +2 -2
- package/dist/cli/{index-kbkk7vnh.js → index-pkhbd2t5.js} +2 -1
- package/dist/cli/{index-byfk6w9a.js → index-qq95qr3b.js} +3 -3
- package/dist/cli/{index-ng5n8tp0.js → index-rpb18d3f.js} +3 -3
- package/dist/cli/{index-ps6fyxfc.js → index-rrs4vj8e.js} +5 -5
- package/dist/cli/{index-peyrzden.js → index-scjtkt0e.js} +29 -29
- package/dist/cli/{index-0e49htcs.js → index-sjh07rja.js} +1 -1
- package/dist/cli/{index-dhkgby53.js → index-tegqnetn.js} +2 -2
- package/dist/cli/{index-hjyakvcq.js → index-vz1ze26j.js} +1 -1
- package/dist/cli/{index-4xc838p0.js → index-w11m4vrb.js} +1 -1
- package/dist/cli/{index-0whh6em0.js → index-zwn2w04v.js} +2 -2
- package/dist/cli/index.js +28 -28
- package/dist/cli/{knowledge-escalator-wah5yybk.js → knowledge-escalator-rjwqcj4c.js} +8 -8
- package/dist/cli/{knowledge-events-akz8013r.js → knowledge-events-0f3tf23t.js} +6 -6
- package/dist/cli/{knowledge-store-hy12373e.js → knowledge-store-azahpegn.js} +1 -1
- package/dist/cli/{knowledge-validator-yrqkdt1w.js → knowledge-validator-9yvg7gn9.js} +2 -2
- package/dist/cli/{mcp-0srnsd05.js → mcp-mxgxbdd2.js} +1 -1
- package/dist/cli/{model-preflight-m3v8hn9k.js → model-preflight-c9qb1630.js} +27 -27
- package/dist/cli/{pending-delegations-40txwk2h.js → pending-delegations-rm86drz1.js} +2 -2
- package/dist/cli/{pr-subscriptions-w6n5s9c7.js → pr-subscriptions-0y73v5dw.js} +1 -1
- package/dist/cli/{pr-workflow-gate-mx9t1p5j.js → pr-workflow-gate-f1wr818p.js} +27 -27
- package/dist/cli/{scan-cursor-phbwfaya.js → scan-cursor-abq3sdt6.js} +2 -2
- package/dist/cli/{schema-t1xwd728.js → schema-0c4cddzy.js} +1 -1
- package/dist/cli/{scope-persistence-m6qrwt3d.js → scope-persistence-f8ss7vna.js} +5 -5
- package/dist/cli/{server-7pt2zhnc.js → server-bc0s1v3y.js} +27 -27
- package/dist/cli/{skill-generator-pnv8efrw.js → skill-generator-2z0p2rjb.js} +9 -9
- package/dist/cli/{snapshot-coordination-init-514wtctt.js → snapshot-coordination-init-sn7red7a.js} +27 -27
- package/dist/cli/{speckit-checkoff-beh1nw7v.js → speckit-checkoff-t3pm0yn0.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-f5wca0gg.js → worktree-collision-ownership-g14dwsby.js} +2 -2
- package/dist/cli/{worktree-isolation-bd6c5x8h.js → worktree-isolation-av55nenq.js} +27 -27
- package/dist/config/evidence-schema.d.ts +3 -0
- package/dist/index.js +5 -5
- package/dist/lang/backend.d.ts +7 -0
- package/dist/lang/default-backend.d.ts +25 -0
- package/dist/tools/build-check.d.ts +13 -0
- package/dist/utils/windows-batch.d.ts +9 -4
- package/package.json +1 -1
package/dist/lang/backend.d.ts
CHANGED
|
@@ -36,6 +36,13 @@ export interface TestFrameworkSelection {
|
|
|
36
36
|
* cannot avoid a shell-mediated invocation (e.g. PowerShell `-EncodedCommand`)
|
|
37
37
|
* still produce an array; the array's first element is the binary and the
|
|
38
38
|
* rest are individual arguments.
|
|
39
|
+
*
|
|
40
|
+
* On win32 an array whose `argv[0]` is a `cmd.exe` contained-launcher tuple
|
|
41
|
+
* (from `resolveContainedWindowsBatchCommand`) additionally requires the
|
|
42
|
+
* spawner to pass `windowsVerbatimArguments: true`, so the pre-quoted tail
|
|
43
|
+
* reaches cmd.exe unmodified. A caller spawning a Windows wrapper this way
|
|
44
|
+
* must gate on `isWindowsCommandInterpreterLaunch(cmd)`;
|
|
45
|
+
* `src/tools/test-runner.ts` is the reference implementation.
|
|
39
46
|
*/
|
|
40
47
|
cmd: string[];
|
|
41
48
|
/** Explicit cwd for the spawn (invariant 3). */
|
|
@@ -49,6 +49,31 @@ export declare function defaultSelectTestFramework(profile: LanguageProfile, dir
|
|
|
49
49
|
* (`SWARM_LANG_BACKEND=legacy`) switch so both routes emit identical argv.
|
|
50
50
|
*/
|
|
51
51
|
export declare function buildGradleTestCommand(dir: string, targets?: string[]): string[];
|
|
52
|
+
/**
|
|
53
|
+
* Build the argv for a Composer `vendor/bin` tool (`phpunit`, `pest`) for `dir`
|
|
54
|
+
* (issue #3050).
|
|
55
|
+
*
|
|
56
|
+
* On win32 a Composer `.bat` shim must never become a raw spawn target: Node's
|
|
57
|
+
* `child_process.spawn` rejects a batch file outright (EINVAL), and although
|
|
58
|
+
* Bun tolerates one, that tolerance is a runtime accident rather than a
|
|
59
|
+
* contract, so behaviour must not depend on which runtime is hosting the
|
|
60
|
+
* plugin. Route the wrapper through the contained cmd.exe launcher
|
|
61
|
+
* (`resolveContainedWindowsBatchCommand`), the same path the Maven (#3021) and
|
|
62
|
+
* Gradle (#3040) wrappers already take.
|
|
63
|
+
*
|
|
64
|
+
* When the launcher declines — no shim present, a symlink escaping `dir`, an
|
|
65
|
+
* unresolvable `ComSpec`, or an argument carrying a cmd.exe metacharacter — the
|
|
66
|
+
* fallback runs the PHP interpreter against the extensionless Composer proxy
|
|
67
|
+
* rather than re-emitting the batch file. Composer writes both, the proxy is
|
|
68
|
+
* what the `.bat` itself invokes, and the `php-artisan` arm of the very same
|
|
69
|
+
* switch already hardcodes `php`.
|
|
70
|
+
*
|
|
71
|
+
* Non-win32 is unchanged: the historical cwd-relative extensionless proxy.
|
|
72
|
+
* Shared by `defaultBuildTestCommand`, the test-runner's legacy
|
|
73
|
+
* (`SWARM_LANG_BACKEND=legacy`) switch, and the PHP backend's
|
|
74
|
+
* `selectTestFramework`, so all three routes emit identical argv.
|
|
75
|
+
*/
|
|
76
|
+
export declare function buildPhpVendorCommand(dir: string, name: string, args?: string[]): string[];
|
|
52
77
|
export declare function defaultBuildTestCommand(profile: LanguageProfile, framework: string, files: string[], dir?: string, opts?: BuildTestCommandOpts): string[] | null;
|
|
53
78
|
export declare function buildNativeTargetCommand(target: NativeTestTarget): string[];
|
|
54
79
|
/**
|
|
@@ -37,6 +37,19 @@ export interface BuildRun {
|
|
|
37
37
|
duration_ms: number;
|
|
38
38
|
stdout_tail: string;
|
|
39
39
|
stderr_tail: string;
|
|
40
|
+
/**
|
|
41
|
+
* Set only when the process could not be created at all — the `bunSpawn`
|
|
42
|
+
* `spawnError` value contract (`src/utils/bun-compat.ts`), which is how
|
|
43
|
+
* process-creation failures surface on every runtime.
|
|
44
|
+
*
|
|
45
|
+
* Without it a launch failure is indistinguishable from a build that ran and
|
|
46
|
+
* exited non-zero: `spawnError` and `exitCode` are mutually exclusive, so a
|
|
47
|
+
* failed spawn resolves `exited` to the sentinel 1 and this record would read
|
|
48
|
+
* "exit 1" either way (issue #3050). Absent — not null — when the process did
|
|
49
|
+
* start, so "no launch failure" stays distinguishable from "field present but
|
|
50
|
+
* empty".
|
|
51
|
+
*/
|
|
52
|
+
spawn_error?: string;
|
|
40
53
|
}
|
|
41
54
|
export interface BuildCheckResult {
|
|
42
55
|
verdict: EvidenceVerdict;
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
* Safe launch of a Windows batch wrapper (`.cmd` / `.bat`) through a
|
|
3
3
|
* validated `cmd.exe`.
|
|
4
4
|
*
|
|
5
|
-
* Node
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* Node cannot spawn a batch file directly at all: since the CVE-2024-27980
|
|
6
|
+
* hardening `child_process.spawn` rejects a `.cmd`/`.bat` target with EINVAL
|
|
7
|
+
* (measured on Node v24.16.0 for the absolute, cwd-relative and bare-name
|
|
8
|
+
* forms alike). Bun is more permissive — it routes batch files through cmd.exe
|
|
9
|
+
* itself — but that tolerance is a runtime accident rather than a contract, so
|
|
10
|
+
* a launcher must not depend on which runtime hosts the plugin. For the same
|
|
11
|
+
* reason a bare wrapper name such as `mvnw.cmd` is resolved against PATH only,
|
|
12
|
+
* never against the spawn `cwd`. The supported shape is
|
|
13
|
+
* `[<cmd.exe>, '/d', '/s', '/v:off', '/c', 'call "<abs>" "<arg>" ...']`
|
|
9
14
|
* spawned with `windowsVerbatimArguments: true`, so the pre-quoted tail reaches
|
|
10
15
|
* cmd.exe unmodified (the same pattern `src/tools/lint.ts` and
|
|
11
16
|
* `src/tools/pkg-audit.ts` use).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.188.
|
|
3
|
+
"version": "7.188.10",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|