@1presence/bridge 0.44.0 → 0.45.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.
Files changed (2) hide show
  1. package/dist/claude.js +11 -0
  2. package/package.json +1 -1
package/dist/claude.js CHANGED
@@ -292,6 +292,17 @@ export function spawnClaude(params) {
292
292
  // credentials in the Keychain), not an API key that would bill a separate
293
293
  // account. Options.env REPLACES the subprocess env, so spread the rest through.
294
294
  const { ANTHROPIC_API_KEY: _stripped, ...safeEnv } = process.env;
295
+ // Raise Claude Code's MCP tool-result token cap (default 25,000). Over the cap,
296
+ // the CLI saves the result to a tool-results/*.txt file and returns a stub that
297
+ // says "read it with Read" — but Local Mode disables every built-in tool
298
+ // (`tools: []` below), so the model has no Read tool and stalls. Hosted mode has
299
+ // no such cap (results go straight to the Anthropic SDK), so a large skill body
300
+ // or vault read breaks Local Mode only — a parity bug. Lifting the cap lets
301
+ // legitimate 1Presence MCP results pass inline, matching hosted. An operator
302
+ // override (env already set) wins. Bounded by the model's context window anyway.
303
+ if (!safeEnv['MAX_MCP_OUTPUT_TOKENS']) {
304
+ safeEnv['MAX_MCP_OUTPUT_TOKENS'] = '200000';
305
+ }
295
306
  const pinnedModel = getBridgeModel();
296
307
  // Process one translated raw stream-json event: bookkeeping + forward. Mirrors
297
308
  // the old CLI stdout parser so the gateway/accumulator see identical shapes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1presence/bridge",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "description": "Run 1Presence on your Mac and use your Claude.ai Pro subscription from any device",
5
5
  "type": "module",
6
6
  "bin": {