@playwo/opencode-cursor-oauth 0.0.0-dev.f7099c3761b9 → 0.1.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/proxy.js +8 -1
- package/package.json +2 -2
package/dist/proxy.js
CHANGED
|
@@ -406,7 +406,14 @@ async function callCursorUnaryRpcOverHttp2(options, target) {
|
|
|
406
406
|
timedOut,
|
|
407
407
|
});
|
|
408
408
|
});
|
|
409
|
-
|
|
409
|
+
// Bun's node:http2 client currently breaks on end(Buffer.alloc(0)) against
|
|
410
|
+
// Cursor's HTTPS endpoint, but a header-only end() succeeds for empty unary bodies.
|
|
411
|
+
if (options.requestBody.length > 0) {
|
|
412
|
+
stream.end(Buffer.from(options.requestBody));
|
|
413
|
+
}
|
|
414
|
+
else {
|
|
415
|
+
stream.end();
|
|
416
|
+
}
|
|
410
417
|
}
|
|
411
418
|
catch (error) {
|
|
412
419
|
logPluginError("Cursor unary HTTP/2 setup failed", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playwo/opencode-cursor-oauth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "OpenCode plugin that connects Cursor's API to OpenCode via OAuth, model discovery, and a local OpenAI-compatible proxy.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,4 +49,4 @@
|
|
|
49
49
|
"@types/bun": "^1.3.11",
|
|
50
50
|
"typescript": "^5.9.3"
|
|
51
51
|
}
|
|
52
|
-
}
|
|
52
|
+
}
|