openzoo 0.35.3 → 0.36.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/lib/proxy.js +10 -0
- package/package.json +1 -1
package/lib/proxy.js
CHANGED
|
@@ -731,6 +731,16 @@ export async function startProxy({ silent = false, requireToken = null, sessionM
|
|
|
731
731
|
);
|
|
732
732
|
console.log(`openzoo v${version} -> ${config.apiBase}`);
|
|
733
733
|
console.log(`listening on http://localhost:${config.port}/v1`);
|
|
734
|
+
// LAND THEM IN THE APP. `npx openzoo` in a human terminal opens the chat
|
|
735
|
+
// GUI — a stranger's first 8 seconds should be a working chat, not a URL
|
|
736
|
+
// to notice. Never in CI/agents (no TTY), never twice, opt out with
|
|
737
|
+
// OPENZOO_NO_OPEN=1.
|
|
738
|
+
if (process.stdout.isTTY && !process.env.OPENZOO_NO_OPEN) {
|
|
739
|
+
const opener = process.platform === 'darwin' ? 'open'
|
|
740
|
+
: process.platform === 'win32' ? 'start' : 'xdg-open';
|
|
741
|
+
import('node:child_process').then(({ exec }) =>
|
|
742
|
+
exec(`${opener} http://localhost:${config.port}/`, () => {}));
|
|
743
|
+
}
|
|
734
744
|
console.log('');
|
|
735
745
|
if (client.walletCreated) console.log(`new burner wallet created at ${client.walletPath} (chmod 600)`);
|
|
736
746
|
console.log(`wallet (fund me) · solana: ${client.address}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
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",
|