@botiverse/oar-cli 0.100.0 → 0.101.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/dist/runtimes.d.ts +1 -1
- package/dist/runtimes.d.ts.map +1 -1
- package/dist/runtimes.js +18 -5
- package/dist/runtimes.js.map +1 -1
- package/package.json +2 -2
package/dist/runtimes.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** OAR's built-in runtimes, plus cursor
|
|
1
|
+
/** OAR's built-in runtimes, plus cursor (above), plus the community runtimes. */
|
|
2
2
|
export declare const runtimes: import("@botiverse/oar").RuntimeRegistry;
|
|
3
3
|
//# sourceMappingURL=runtimes.d.ts.map
|
package/dist/runtimes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimes.d.ts","sources":["../src/runtimes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtimes.d.ts","sources":["../src/runtimes.ts"],"names":[],"mappings":"AAsBA,iFAAiF;AACjF,eAAO,MAAM,QAAQ,0CAInB,CAAC"}
|
package/dist/runtimes.js
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import { createCursorRuntime, createRuntimeRegistry, defaultRuntimes as builtInRuntimes } from "@botiverse/oar";
|
|
2
2
|
import { createMorphRuntime } from "@botiverse/oar/community";
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Cursor on the `@cursor/sdk` this CLI depends on: in this process by
|
|
5
|
+
* default, or with `OAR_CURSOR_EXECUTION=subprocess` in a Node child per
|
|
6
|
+
* session and call, which imports the SDK from where this CLI resolves it
|
|
7
|
+
* (docs/runtimes/cursor.md#execution-modes). The in-process loader stays
|
|
8
|
+
* written out, so this compile still checks the SDK against `CursorSdk`.
|
|
9
|
+
*/
|
|
10
|
+
function cursorRuntime() {
|
|
11
|
+
if (process.env.OAR_CURSOR_EXECUTION === "subprocess") {
|
|
12
|
+
return createCursorRuntime({ execution: "subprocess", sdkModule: import.meta.resolve("@cursor/sdk") });
|
|
13
|
+
}
|
|
14
|
+
return createCursorRuntime({
|
|
7
15
|
sdk: async () => {
|
|
8
16
|
const sdk = await import("@cursor/sdk");
|
|
9
17
|
return sdk;
|
|
10
18
|
},
|
|
11
|
-
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/** OAR's built-in runtimes, plus cursor (above), plus the community runtimes. */
|
|
22
|
+
export const runtimes = createRuntimeRegistry([
|
|
23
|
+
...builtInRuntimes.list(),
|
|
24
|
+
cursorRuntime(),
|
|
12
25
|
createMorphRuntime(),
|
|
13
26
|
]);
|
|
14
27
|
//# sourceMappingURL=runtimes.js.map
|
package/dist/runtimes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimes.js","sources":["../src/runtimes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAChH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,
|
|
1
|
+
{"version":3,"file":"runtimes.js","sources":["../src/runtimes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAChH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D;;;;;;GAMG;AACH,SAAS,aAAa;IACpB,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,YAAY,EAAE,CAAC;QACtD,OAAO,mBAAmB,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IACzG,CAAC;IACD,OAAO,mBAAmB,CAAC;QACzB,GAAG,EAAE,KAAK,IAAI,EAAE;YACd,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;YACxC,OAAO,GAAG,CAAC;QACb,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,iFAAiF;AACjF,MAAM,CAAC,MAAM,QAAQ,GAAG,qBAAqB,CAAC;IAC5C,GAAG,eAAe,CAAC,IAAI,EAAE;IACzB,aAAa,EAAE;IACf,kBAAkB,EAAE;CACrB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botiverse/oar-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.101.0",
|
|
4
4
|
"description": "Command-line interface for controlling and observing agent runtimes with OAR",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@cursor/sdk": "1.3.1",
|
|
16
16
|
"commander": "^12.1.0",
|
|
17
|
-
"@botiverse/oar": "0.
|
|
17
|
+
"@botiverse/oar": "0.101.0"
|
|
18
18
|
},
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|