openzoo 0.20.1 → 0.20.2
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/bin/openzoo.js +4 -2
- package/lib/setup.js +15 -1
- package/package.json +1 -1
package/bin/openzoo.js
CHANGED
|
@@ -6,8 +6,10 @@ const HELP = `openzoo — local x402-paying proxy + MCP server for openzoo.fun
|
|
|
6
6
|
usage:
|
|
7
7
|
npx openzoo start the proxy: http://localhost:8402/v1 (keyless) PLUS a
|
|
8
8
|
public HTTPS url for cloud IDEs (key required, printed at start)
|
|
9
|
-
npx openzoo cursor [
|
|
10
|
-
|
|
9
|
+
npx openzoo cursor [dir] start proxy+tunnel, write MCP config + every model
|
|
10
|
+
into the picker, and LAUNCH Cursor on [dir]
|
|
11
|
+
(defaults to the current directory; ~ works;
|
|
12
|
+
a missing dir is created)
|
|
11
13
|
--profile use an isolated editor profile the
|
|
12
14
|
vendor account cannot re-sync over
|
|
13
15
|
npx openzoo vscode [path] same, for VS Code
|
package/lib/setup.js
CHANGED
|
@@ -251,7 +251,21 @@ export async function setupEditor(which, target) {
|
|
|
251
251
|
// Open the directory you ran this from, or the one you named. The earlier
|
|
252
252
|
// "helpfully" substitute a ~/openzoo folder when run from $HOME was worse
|
|
253
253
|
// than the problem it dodged: it silently opened the wrong project.
|
|
254
|
-
|
|
254
|
+
// WORKSPACE: `openzoo cursor ~/somedir` opens that directory. Resolve it
|
|
255
|
+
// ourselves — a quoted `~` never reaches the shell's expansion, and a path
|
|
256
|
+
// that does not exist yet should be created rather than silently opening the
|
|
257
|
+
// wrong folder (the editor treats a missing path as a file and opens blank).
|
|
258
|
+
let cwd = process.cwd();
|
|
259
|
+
if (target && !target.startsWith('-')) {
|
|
260
|
+
cwd = target.startsWith('~')
|
|
261
|
+
? path.join(os.homedir(), target.slice(1))
|
|
262
|
+
: path.resolve(target);
|
|
263
|
+
if (!fs.existsSync(cwd)) {
|
|
264
|
+
fs.mkdirSync(cwd, { recursive: true });
|
|
265
|
+
console.log(`workspace: created ${cwd}`);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
console.log(`workspace: ${cwd}`);
|
|
255
269
|
|
|
256
270
|
const picked = pickEditor(which);
|
|
257
271
|
if (!picked) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.2",
|
|
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",
|