@botiverse/oar 0.69.0 → 0.70.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
|
@@ -128,7 +128,7 @@ The package has these public entry points, plus `@botiverse/oar/pi-durable` ([be
|
|
|
128
128
|
|
|
129
129
|
Brand SVG files are exported at `@botiverse/oar/assets/brands/<runtime-id>.svg`. Any other deep import (`@botiverse/oar/dist/...`, source paths) is internal and may break without notice.
|
|
130
130
|
|
|
131
|
-
Antigravity, Grok, Kimi, and OpenCode share an internal ACP v1 transport and session kernel, but only their concrete runtime identities are public. The registry deliberately does not expose a generic `acp` runtime. Pi and Cursor run in the host process through their SDKs. The pi SDK (`@earendil-works/pi-coding-agent`) is a dependency of this package. `@cursor/sdk` is an optional peer dependency, and cursor is not in `defaultRuntimes`: install the SDK (`npm install @cursor/sdk@1.0.
|
|
131
|
+
Antigravity, Grok, Kimi, and OpenCode share an internal ACP v1 transport and session kernel, but only their concrete runtime identities are public. The registry deliberately does not expose a generic `acp` runtime. Pi and Cursor run in the host process through their SDKs. The pi SDK (`@earendil-works/pi-coding-agent`) is a dependency of this package. `@cursor/sdk` is an optional peer dependency, and cursor is not in `defaultRuntimes`: install the SDK (`npm install @cursor/sdk@1.0.40`) and hand it over, `createRuntimeRegistry([...defaultRuntimes.list(), createCursorRuntime({ sdk: () => import("@cursor/sdk") })])`. Written in your code, that import fails your compile if the package is missing. It is Cursor's own package under Cursor's terms, and it signs in with `CURSOR_API_KEY` or its own `Cursor.auth.login()`.
|
|
132
132
|
|
|
133
133
|
Community runtimes are contributed and maintained outside the core team (each maintainer is named on its runtime page). They ship in this package from a separate entry point, `@botiverse/oar/community`, and are not in `defaultRuntimes`: `createRuntimeRegistry([...defaultRuntimes.list(), createMorphRuntime()])` adds [Mister Morph](https://github.com/botiverse/oar/blob/main/docs/runtimes/morph.md), driven through its Console Runtime API. The `oar` CLI includes them.
|
|
134
134
|
|
|
@@ -61,7 +61,7 @@ export function cursorAuthStatusWith(load) {
|
|
|
61
61
|
}
|
|
62
62
|
const { auth } = sdk.Cursor;
|
|
63
63
|
if (auth === undefined) {
|
|
64
|
-
return { kind: "unknown", detail: "this @cursor/sdk has no Cursor.auth; OAR needs 1.0.
|
|
64
|
+
return { kind: "unknown", detail: "this @cursor/sdk has no Cursor.auth; OAR needs 1.0.40" };
|
|
65
65
|
}
|
|
66
66
|
const status = await readCursorAuthStatus(auth, options.timeoutMs);
|
|
67
67
|
return status;
|
|
@@ -2,7 +2,7 @@ import { type Runtime } from "../../contracts/runtime.js";
|
|
|
2
2
|
import { type CursorSdk } from "./sdk.js";
|
|
3
3
|
export interface CursorRuntimeOptions {
|
|
4
4
|
/**
|
|
5
|
-
* Loads `@cursor/sdk` 1.0.
|
|
5
|
+
* Loads `@cursor/sdk` 1.0.40, which the host installs (an optional peer
|
|
6
6
|
* dependency of OAR): `() => import("@cursor/sdk")`. Written in the host's
|
|
7
7
|
* own code, the import fails the host's compile when the package is
|
|
8
8
|
* missing, checks the SDK's types against `CursorSdk`, and is visible to
|
|
@@ -150,7 +150,7 @@ export function cursorLoginWith(load) {
|
|
|
150
150
|
const { auth } = sdk.Cursor;
|
|
151
151
|
const Store = sdk.FileCredentialStore;
|
|
152
152
|
if (auth === undefined || Store === undefined) {
|
|
153
|
-
return { kind: "unsupported", reason: "version_unsupported", detail: "@cursor/sdk 1.0.
|
|
153
|
+
return { kind: "unsupported", reason: "version_unsupported", detail: "@cursor/sdk 1.0.40 is required; this one has no Cursor.auth" };
|
|
154
154
|
}
|
|
155
155
|
// The caller may have aborted while the SDK loaded.
|
|
156
156
|
if (aborted()) {
|
|
@@ -47,7 +47,7 @@ export function cursorLogoutWith(load) {
|
|
|
47
47
|
}
|
|
48
48
|
const { auth } = sdk.Cursor;
|
|
49
49
|
if (auth?.logout === undefined) {
|
|
50
|
-
return { kind: "unsupported", reason: "version_unsupported", detail: "@cursor/sdk 1.0.
|
|
50
|
+
return { kind: "unsupported", reason: "version_unsupported", detail: "@cursor/sdk 1.0.40 is required; this one has no Cursor.auth.logout" };
|
|
51
51
|
}
|
|
52
52
|
// With no store: the SDK's own default, the file `status()` reads.
|
|
53
53
|
const native = await sdkLogout(async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botiverse/oar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.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",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"which": "^2.0.2"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@cursor/sdk": "1.0.
|
|
86
|
+
"@cursor/sdk": "1.0.40",
|
|
87
87
|
"@earendil-works/pi-durable": "~1.3.0",
|
|
88
88
|
"@earendil-works/chord": "~1.3.0"
|
|
89
89
|
},
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@cursor/sdk": "1.0.
|
|
102
|
+
"@cursor/sdk": "1.0.40",
|
|
103
103
|
"@types/cross-spawn": "^6.0.6",
|
|
104
104
|
"@types/which": "^2.0.2",
|
|
105
105
|
"@earendil-works/pi-durable": "1.3.0",
|