@x-otto/plugin-cursor 0.1.0-alpha.4 → 0.1.0-alpha.9
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 +1 -1
- package/package.json +4 -4
- package/plugin-dist/meta.json +1 -1
- package/plugin-dist/plugin.cjs +275 -26229
- package/src/connect-rpc/agent-stream.ts +143 -0
- package/src/connect-rpc/headers.ts +15 -1
- package/src/cursor-provider.ts +51 -15
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Provides Cursor IDE's AI model access via Connect-RPC + Protobuf over HTTP/2. Su
|
|
|
8
8
|
|
|
9
9
|
This is a **code-based provider** — Cursor's backend uses a custom Connect-RPC protocol that cannot be expressed through the standard `wireApi` schemas (openai-completions, openai-responses, anthropic-messages). The entire protocol encoding/decoding lives within this plugin's `src/connect-rpc/` directory.
|
|
10
10
|
|
|
11
|
-
The OAuth
|
|
11
|
+
The OAuth provider is registered programmatically in `plugin.ts` (`oauthProviderFactories`) — it imports the local Cursor IDE installation's session on macOS instead of running a browser/device flow — and the manifest references it via `contributes.providers[].oauthRef`. The provider factory is wired in the same `plugin.ts`.
|
|
12
12
|
|
|
13
13
|
Cursor provider does **not** support tool calling (agent-side tools only).
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-otto/plugin-cursor",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Cursor subscription provider (RFC-130)",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@x-otto/provider": "0.1.0-alpha.
|
|
8
|
-
"@x-otto/
|
|
9
|
-
"@x-otto/
|
|
7
|
+
"@x-otto/provider": "0.1.0-alpha.9",
|
|
8
|
+
"@x-otto/shared": "0.1.0-alpha.9",
|
|
9
|
+
"@x-otto/plugin": "0.1.0-alpha.9"
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
12
|
"files": [
|
package/plugin-dist/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"apiVersion":1,"compilerVersion":"0.1.0-alpha.
|
|
1
|
+
{"apiVersion":1,"compilerVersion":"0.1.0-alpha.9","sourceHash":"1ea7ff0c2886fcb2efe78df78ea320e87cdf5a79f1e180ab3cae9dfd4302cd37"}
|