openzoo 0.48.43 → 0.48.44

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/launch.js +26 -0
  2. package/package.json +1 -1
package/lib/launch.js CHANGED
@@ -177,6 +177,19 @@ export async function launchClaude(argv) {
177
177
  const SAFE = /^claude-(opus|sonnet|fable)-/;
178
178
  if (SAFE.test(bare)) env.ANTHROPIC_MODEL = `openzoo-${bare}`;
179
179
  }
180
+ // THE ACTUAL SWITCHES. Three earlier attempts missed these entirely:
181
+ // autoCompactEnabled in settings (global, trapped a session), a raised
182
+ // CLAUDE_CODE_MAX_CONTEXT_TOKENS (clamped to 200k by the model table), and an
183
+ // unrecognised model alias (resolves fine, still compacted). DISABLE_COMPACT
184
+ // and DISABLE_AUTO_COMPACT are in the binary and are the direct controls.
185
+ //
186
+ // Correct here for the same reason as everything else in this block: the
187
+ // proxy binds the prefix and forwards a bounded tail, so the request that
188
+ // leaves this machine stays small no matter how long the conversation runs.
189
+ if (process.env.OPENZOO_KEEP_COMPACT !== '1') {
190
+ env.DISABLE_COMPACT = process.env.DISABLE_COMPACT || '1';
191
+ env.DISABLE_AUTO_COMPACT = process.env.DISABLE_AUTO_COMPACT || '1';
192
+ }
180
193
  // RAISE THE CEILING, because the proxy already removed it.
181
194
  //
182
195
  // Claude Code counts the WHOLE local transcript against the model's window and
@@ -428,6 +441,19 @@ export async function launchHarness(cmd, args) {
428
441
  const SAFE = /^claude-(opus|sonnet|fable)-/;
429
442
  if (SAFE.test(bare)) env.ANTHROPIC_MODEL = `openzoo-${bare}`;
430
443
  }
444
+ // THE ACTUAL SWITCHES. Three earlier attempts missed these entirely:
445
+ // autoCompactEnabled in settings (global, trapped a session), a raised
446
+ // CLAUDE_CODE_MAX_CONTEXT_TOKENS (clamped to 200k by the model table), and an
447
+ // unrecognised model alias (resolves fine, still compacted). DISABLE_COMPACT
448
+ // and DISABLE_AUTO_COMPACT are in the binary and are the direct controls.
449
+ //
450
+ // Correct here for the same reason as everything else in this block: the
451
+ // proxy binds the prefix and forwards a bounded tail, so the request that
452
+ // leaves this machine stays small no matter how long the conversation runs.
453
+ if (process.env.OPENZOO_KEEP_COMPACT !== '1') {
454
+ env.DISABLE_COMPACT = process.env.DISABLE_COMPACT || '1';
455
+ env.DISABLE_AUTO_COMPACT = process.env.DISABLE_AUTO_COMPACT || '1';
456
+ }
431
457
  // RAISE THE CEILING, because the proxy already removed it.
432
458
  //
433
459
  // Claude Code counts the WHOLE local transcript against the model's window and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openzoo",
3
- "version": "0.48.43",
3
+ "version": "0.48.44",
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",