@botiverse/oar 0.82.0 → 0.83.0

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 CHANGED
@@ -155,6 +155,9 @@ const selected = runtime.execution === "process" ? runtime.withPlacement("isolat
155
155
 
156
156
  This preserves SDK and undeclared runtime instances. `null` does not promise
157
157
  isolation; explicit process placement is still refused for those adapters.
158
+ OpenCode currently opens an isolated process under `auto` and refuses explicit
159
+ `shared`, including native 2.2.3 and 2.2.5, because configured plugin child
160
+ processes otherwise inherit a different working directory.
158
161
  `Runtime.placement` is the requested policy, while `Session.placement` reports
159
162
  the opened session's actual placement. See the
160
163
  [placement contract](https://github.com/botiverse/oar/blob/main/docs/spec/record-stream.md#placement-and-release).
@@ -1,6 +1,5 @@
1
- import type { AvailableInstallation } from "../../contracts/installation.js";
2
- /** Exact native versions with reviewed sharing evidence; no version ranges. */
1
+ /** Exact versions retained by the disabled adapter's native initialize guard. */
3
2
  export declare function isOpenCodeSharedVersion(version: unknown): boolean;
4
- /** Exact cells in experiments/sharing/admission-2026-10-31.md; upgrades need new evidence. */
5
- export declare function opencodeSharedRefusal(installation: AvailableInstallation, platform?: NodeJS.Platform, arch?: string): string | null;
3
+ /** Configured plugins are not observable from SessionOptions, so no subset can be admitted. */
4
+ export declare function opencodeSharedRefusal(): string;
6
5
  //# sourceMappingURL=sharing-admission.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sharing-admission.d.ts","sources":["../../../src/runtimes/opencode/sharing-admission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,+EAA+E;AAC/E,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjE;AAED,8FAA8F;AAC9F,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,qBAAqB,EAAE,QAAQ,GAAE,MAAM,CAAC,QAA2B,EAAE,IAAI,GAAE,MAAqB,GAAG,MAAM,GAAG,IAAI,CAUnK"}
1
+ {"version":3,"file":"sharing-admission.d.ts","sources":["../../../src/runtimes/opencode/sharing-admission.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjE;AAED,+FAA+F;AAC/F,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C"}
@@ -1,17 +1,9 @@
1
- /** Exact native versions with reviewed sharing evidence; no version ranges. */
1
+ /** Exact versions retained by the disabled adapter's native initialize guard. */
2
2
  export function isOpenCodeSharedVersion(version) {
3
3
  return version === "2.2.3" || version === "2.2.5";
4
4
  }
5
- /** Exact cells in experiments/sharing/admission-2026-10-31.md; upgrades need new evidence. */
6
- export function opencodeSharedRefusal(installation, platform = process.platform, arch = process.arch) {
7
- const version = installation.via === "executable"
8
- ? /^(?:opencode\s+)?v?(\d+\.\d+\.\d+)$/u.exec(installation.version?.trim() ?? "")?.[1] : undefined;
9
- if (!isOpenCodeSharedVersion(version)) {
10
- return "OpenCode shared placement is verified only for native 2.2.3 or 2.2.5; the installed version is different or unknown";
11
- }
12
- if (!((platform === "linux" && arch === "x64") || (platform === "darwin" && arch === "arm64") || (platform === "win32" && arch === "x64"))) {
13
- return "OpenCode 2.2.3 and 2.2.5 shared placement is verified only on Linux x64, macOS arm64 and Windows x64";
14
- }
15
- return null;
5
+ /** Configured plugins are not observable from SessionOptions, so no subset can be admitted. */
6
+ export function opencodeSharedRefusal() {
7
+ return "OpenCode sharing is not admitted: configured plugins spawn children in the shared process HOME instead of the session cwd; use isolated placement";
16
8
  }
17
9
  //# sourceMappingURL=sharing-admission.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sharing-admission.js","sources":["../../../src/runtimes/opencode/sharing-admission.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACtD,OAAO,OAAO,KAAK,OAAO,IAAI,OAAO,KAAK,OAAO,CAAC;AACpD,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,qBAAqB,CAAC,YAAmC,EAAE,QAAQ,GAAoB,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAW,OAAO,CAAC,IAAI;IAClJ,MAAM,OAAO,GAAG,YAAY,CAAC,GAAG,KAAK,YAAY;QAC/C,CAAC,CAAC,sCAAsC,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACrG,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,OAAO,qHAAqH,CAAC;IAC/H,CAAC;IACD,IAAI,CAAC,CAAC,CAAC,QAAQ,KAAK,OAAO,IAAI,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,QAAQ,KAAK,QAAQ,IAAI,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAK,OAAO,IAAI,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;QAC3I,OAAO,sGAAsG,CAAC;IAChH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
1
+ {"version":3,"file":"sharing-admission.js","sources":["../../../src/runtimes/opencode/sharing-admission.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACtD,OAAO,OAAO,KAAK,OAAO,IAAI,OAAO,KAAK,OAAO,CAAC;AACpD,CAAC;AAED,+FAA+F;AAC/F,MAAM,UAAU,qBAAqB;IACnC,OAAO,mJAAmJ,CAAC;AAC7J,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botiverse/oar",
3
- "version": "0.82.0",
3
+ "version": "0.83.0",
4
4
  "description": "A programming interface for all agent harnesses: provider-independent contracts for controlling and observing agent runtimes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",