openzoo 0.39.2 → 0.39.3
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/lib/cursorbackend.js +11 -0
- package/package.json +1 -1
package/lib/cursorbackend.js
CHANGED
|
@@ -469,6 +469,17 @@ export function startCursorBackend({ port = 8443, models, log = () => {} } = {})
|
|
|
469
469
|
return;
|
|
470
470
|
}
|
|
471
471
|
log(`cursor-backend: #${conns} ${req.method} ${full} ct=${ct} body=${body.length}b`);
|
|
472
|
+
// HIJACK EnsureSandBox FIRST — before passthrough, or passthrough eats it.
|
|
473
|
+
// MEASURED: with OPENZOO_PASSTHRU=1 set, EnsureSandBox went `-> REAL
|
|
474
|
+
// anthropic (200, 707b)` every time and the app got a real cursorvm pod,
|
|
475
|
+
// never our box. This method (and ONLY this one) must be answered locally
|
|
476
|
+
// with OUR box so Grok Bot's UI wires to our sandbox; everything else
|
|
477
|
+
// still passes through so the app loads normally.
|
|
478
|
+
if (/GrokBotService\/EnsureSandBox/.test(full) && process.env.OZ_HIJACK_POD) {
|
|
479
|
+
respond(req, res, method, models); // encodeForMethod('EnsureSandBox') reads OZ_HIJACK_POD
|
|
480
|
+
log(`cursor-backend: -> HIJACKED EnsureSandBox -> our box`);
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
472
483
|
// CAPTURE the chat inference request so its schema can be decoded from
|
|
473
484
|
// REAL bytes (Auto's StreamUnifiedChat). Written once; inspect then build.
|
|
474
485
|
if (/StreamUnifiedChat/.test(full)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.3",
|
|
4
4
|
"description": "Local x402-paying proxy + MCP server for openzoo.fun — point any OpenAI-compatible harness (Cursor, Claude Code, aider, SDKs) at localhost and it pays per call from a local burner wallet. Solana and Base rails live; Robinhood experimental.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|