openzoo 0.50.23 → 0.50.24

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.
@@ -542,12 +542,13 @@ async function proxyPodHttp(req, res, full, body, log) {
542
542
  if (!realPod?.agent) return false;
543
543
  const agent = new URL(realPod.agent);
544
544
  const headers = copyReqHeaders(req, agent.host);
545
- if (realPod.accessToken && !headers.authorization && !headers.Authorization) {
546
- headers.authorization = `Bearer ${realPod.accessToken}`;
547
- }
548
- if (realPod.token && !headers['x-anyrun-network-token']) {
549
- headers['x-anyrun-network-token'] = realPod.token;
550
- }
545
+ // Incoming Authorization is Grok Bot oauth to api2. 1340 wants EnsureSandBox
546
+ // field 11. Leaving oauth in place 401s listAgents (measured: tails via
547
+ // podJson with field-11 worked, roster proxy with copied oauth 401ed).
548
+ delete headers.authorization;
549
+ delete headers.Authorization;
550
+ if (realPod.accessToken) headers.authorization = `Bearer ${realPod.accessToken}`;
551
+ if (realPod.token) headers['x-anyrun-network-token'] = realPod.token;
551
552
  if (!headers['x-sand-slim-avatars']) headers['x-sand-slim-avatars'] = '1';
552
553
  const path0 = (full || '').split('?')[0];
553
554
  const interesting = /sendPrompt|Transcript|listAgents|promptAcceptance|openAgentTail|createAgent/i.test(path0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openzoo",
3
- "version": "0.50.23",
3
+ "version": "0.50.24",
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",