openzoo 0.50.11 → 0.50.12
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 +16 -2
- package/package.json +1 -1
package/bin/openzoo.js
CHANGED
|
@@ -280,9 +280,21 @@ async function main() {
|
|
|
280
280
|
}
|
|
281
281
|
case 'ask': {
|
|
282
282
|
const question = process.argv[3];
|
|
283
|
-
if (!question) throw new Error('usage: openzoo ask "<question>" [--context <id>] [--model <id>]');
|
|
283
|
+
if (!question) throw new Error('usage: openzoo ask "<question>" [--context <id>] [--model <id>] [--system <text>]');
|
|
284
284
|
const ci = process.argv.indexOf('--context');
|
|
285
285
|
const mi = process.argv.indexOf('--model');
|
|
286
|
+
// A BARE QUESTION IS A DIFFERENT PRODUCT FROM A BRIEFED ONE.
|
|
287
|
+
//
|
|
288
|
+
// This path drives PayClient straight at the gateway, so it never passes
|
|
289
|
+
// through the local proxy that injects lib/brief.js — the model gets the
|
|
290
|
+
// user's words and nothing else. OBSERVED from the Omarchy bar widget:
|
|
291
|
+
// "do you even love omarchy thru this uiux?!?" came back "I think you
|
|
292
|
+
// mean *anarchy*?" from deepseek, while the same question in the terminal
|
|
293
|
+
// (Claude Code: full system prompt + the omarchy skill) answered about
|
|
294
|
+
// DHH, Hyprland and theming. Same gateway, same product, one had context.
|
|
295
|
+
// A caller that knows where it is running can now say so.
|
|
296
|
+
const si = process.argv.indexOf('--system');
|
|
297
|
+
const system = si !== -1 ? process.argv[si + 1] : '';
|
|
286
298
|
const { PayClient } = await import('../lib/pay.js');
|
|
287
299
|
const { config } = await import('../lib/config.js');
|
|
288
300
|
const client = new PayClient();
|
|
@@ -293,7 +305,9 @@ async function main() {
|
|
|
293
305
|
headers,
|
|
294
306
|
body: JSON.stringify({
|
|
295
307
|
model: (mi !== -1 && process.argv[mi + 1]) || process.env.OPENZOO_DEFAULT_MODEL || 'anthropic/claude-opus-5',
|
|
296
|
-
messages:
|
|
308
|
+
messages: system
|
|
309
|
+
? [{ role: 'system', content: system }, { role: 'user', content: question }]
|
|
310
|
+
: [{ role: 'user', content: question }],
|
|
297
311
|
max_tokens: Number(process.env.OPENZOO_ASK_MAX_TOKENS || 1024),
|
|
298
312
|
}),
|
|
299
313
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.12",
|
|
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",
|