tesseract-agent 0.4.6 → 0.4.7

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.
@@ -21145,6 +21145,14 @@ CRITICAL RULES:
21145
21145
  live.query = query({
21146
21146
  prompt: pump,
21147
21147
  options: {
21148
+ // Tell the SDK exactly which executable to use. The SDK resolves this
21149
+ // UNCONDITIONALLY at query() setup and, when it is INLINED into the daemon/CLI
21150
+ // esbuild bundle, its internal `require.resolve('./cli.js')` resolves relative to
21151
+ // the BUNDLE (not the SDK package dir) → MODULE_NOT_FOUND → it throws "Native CLI
21152
+ // binary for <plat>-<arch> not found". findClaudeCliJs() resolves cli.js BY PACKAGE
21153
+ // NAME (works bundled AND in dev), so passing it here makes the SDK skip its broken
21154
+ // self-resolution; spawnClaudeCodeProcess below still runs that same cli.js under node.
21155
+ pathToClaudeCodeExecutable: findClaudeCliJs(),
21148
21156
  // Permission allowlist (auto-approve in gated modes) — NOT the tool registry.
21149
21157
  // TodoWrite is pre-approved so the plan-sidebar checklist updates never prompt.
21150
21158
  // ExitPlanMode is deliberately NOT here, so plan approval still routes through
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tesseract-agent",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "license": "UNLICENSED",
5
5
  "publishConfig": {
6
6
  "access": "public"