@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
|
-
|
|
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
|
-
/**
|
|
5
|
-
export declare function opencodeSharedRefusal(
|
|
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,
|
|
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
|
|
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
|
-
/**
|
|
6
|
-
export function opencodeSharedRefusal(
|
|
7
|
-
|
|
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":"
|
|
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.
|
|
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",
|