openzoo 0.48.0 → 0.48.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/grokui.mjs +6 -1
  2. package/package.json +1 -1
package/lib/grokui.mjs CHANGED
@@ -368,7 +368,12 @@ function parseRun(reply) {
368
368
  // several such calls were dropped. Same failure as the old /^RUN:/ anchor,
369
369
  // different shape: a silently discarded directive reads to the model as a
370
370
  // tool that does nothing, and it fabricates rather than reporting failure.
371
- const dsml = /<[|\s]*DSML[^>]*\bparameter\b[^>]*name="command"[^>]*>([\s\S]*?)<\/[|\s]*DSML/i.exec(reply);
371
+ // The separator is NOT always an ASCII pipe. DeepSeek's real special tokens
372
+ // use U+FF5C FULLWIDTH VERTICAL LINE (|) — matching only `|` parsed the
373
+ // pretty-printed form in tests while missing what the model actually emits,
374
+ // which is exactly how this survived one round of "fixed".
375
+ const SEP = '[||\\s]*';
376
+ const dsml = new RegExp(`<${SEP}DSML[^>]*\\bparameter\\b[^>]*name="command"[^>]*>([\\s\\S]*?)<\\/${SEP}DSML`, 'i').exec(reply);
372
377
  if (dsml) return sanitizeRunCommand(dsml[1]);
373
378
 
374
379
  const m = /^[ \t>*-]*RUN:[ \t]*([\s\S]+)/m.exec(reply);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openzoo",
3
- "version": "0.48.0",
3
+ "version": "0.48.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",