openzoo 0.12.0 → 0.12.1

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.
Files changed (2) hide show
  1. package/lib/proxy.js +10 -1
  2. package/package.json +1 -1
package/lib/proxy.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { readFileSync } from 'node:fs';
1
2
  import http from 'node:http';
2
3
  import crypto from 'node:crypto';
3
4
  import { Readable } from 'node:stream';
@@ -525,7 +526,15 @@ export async function startProxy({ silent = false, requireToken = null, sessionM
525
526
  });
526
527
 
527
528
  if (!silent) {
528
- console.log(`openzoo proxy -> ${config.apiBase}`);
529
+ // VERSION IN THE BANNER, deliberately. `npx openzoo` can serve a STALE
530
+ // cached copy — npx reuses a cache entry that matches the bare spec, so a
531
+ // user running the newest published version still gets old behaviour and
532
+ // no clue why (observed: a missing tunnel and a missing token row, both
533
+ // "fixed" releases ago). Printing the version makes that one glance.
534
+ const { version } = JSON.parse(
535
+ readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
536
+ );
537
+ console.log(`openzoo v${version} -> ${config.apiBase}`);
529
538
  console.log(`listening on http://localhost:${config.port}/v1`);
530
539
  console.log('');
531
540
  if (client.walletCreated) console.log(`new burner wallet created at ${client.walletPath} (chmod 600)`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openzoo",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
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",