nexrall-code 0.5.71 → 0.5.72

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/index.js +12 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -10012,7 +10012,7 @@ var require_client = __commonJS({
10012
10012
  }
10013
10013
  var MAX_TOTAL_ATTEMPTS = (MAX_RETRIES + 1) * (MAX_RETRIES + 1);
10014
10014
  async function streamChat(messages, options, onEvent) {
10015
- const { model, env: env3, editorContext, nexrallMd, mode, effort, clientType, abortSignal, extraTools, agents, skills, allowRestartAfterRender, canWriteSharedMemory, hasOwnAgentStore, canSpawnSubAgents } = options;
10015
+ const { model, env: env3, editorContext, nexrallMd, mode, effort, clientType, abortSignal, extraTools, agents, skills, allowRestartAfterRender, canWriteSharedMemory, hasOwnAgentStore, canSpawnSubAgents, canBrowseWeb } = options;
10016
10016
  let turnId = (0, crypto_1.randomUUID)();
10017
10017
  const controller = new AbortController();
10018
10018
  if (abortSignal?.aborted)
@@ -10054,7 +10054,7 @@ var require_client = __commonJS({
10054
10054
  {
10055
10055
  method: "POST",
10056
10056
  headers: authHeaders(),
10057
- body: JSON.stringify({ messages, model, env: env3, editorContext, nexrallMd, mode, effort, clientType, extraTools, agents, skills, turnId, canWriteSharedMemory, hasOwnAgentStore, canSpawnSubAgents }),
10057
+ body: JSON.stringify({ messages, model, env: env3, editorContext, nexrallMd, mode, effort, clientType, extraTools, agents, skills, turnId, canWriteSharedMemory, hasOwnAgentStore, canSpawnSubAgents, canBrowseWeb }),
10058
10058
  signal
10059
10059
  }
10060
10060
  ];
@@ -17505,6 +17505,16 @@ ${options.nexrallMd}` : "") : options.nexrallMd;
17505
17505
  canWriteSharedMemory: options._allowedTools ? options._allowedTools.has("memory_write") : true,
17506
17506
  // no allowlist = main agent = may write
17507
17507
  hasOwnAgentStore: !!options._agentMemory,
17508
+ // Same derivation, same reason, for the network. The base prompt's
17509
+ // "Web search" section tells the run to reach the network, but
17510
+ // READ_ONLY_TOOLS (explorer, security-auditor, ...) contains neither
17511
+ // `fetch_url` nor `web_search`. MEASURED on the 195-trial 2026-08-10
17512
+ // deepseek-v4-pro benchmark: 29 of 51 `fetch_url` failures and 3 of 14
17513
+ // `web_search` failures were the permission gate refusing a sub-agent
17514
+ // that its own system prompt had just invited to browse — every one a
17515
+ // wasted round-trip on a paid turn.
17516
+ canBrowseWeb: options._allowedTools ? options._allowedTools.has("fetch_url") : true,
17517
+ // no allowlist = main agent = may browse
17508
17518
  // Withholds the `task` schema and its instructions when this run cannot
17509
17519
  // delegate — see canSpawnSubAgents.
17510
17520
  canSpawnSubAgents: maySpawn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexrall-code",
3
- "version": "0.5.71",
3
+ "version": "0.5.72",
4
4
  "description": "Nexrall Code — AI coding assistant for your terminal (headless agent for scripts, CI and automation)",
5
5
  "keywords": [
6
6
  "ai",
@@ -39,7 +39,7 @@
39
39
  "release": "node build.js && node scripts/upload-release.cjs"
40
40
  },
41
41
  "dependencies": {
42
- "@nexrall/code-core": "^1.4.39",
42
+ "@nexrall/code-core": "^1.4.42",
43
43
  "chalk": "^5.3.0",
44
44
  "commander": "^12.0.0",
45
45
  "diff": "^5.2.0",