nexus-agents 4.3.4 → 4.3.5

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.
@@ -22,7 +22,7 @@ import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  DEFAULT_TOOL_RATE_LIMITS,
24
24
  clampTaskTtl
25
- } from "./chunk-C3VVVABX.js";
25
+ } from "./chunk-ZLGQY55I.js";
26
26
  import {
27
27
  executeExpert
28
28
  } from "./chunk-QTP4AIVR.js";
@@ -54497,4 +54497,4 @@ export {
54497
54497
  shutdownFeedbackSubscriber,
54498
54498
  createEventBusBridge
54499
54499
  };
54500
- //# sourceMappingURL=chunk-I27YOL3U.js.map
54500
+ //# sourceMappingURL=chunk-ES3CPAON.js.map
@@ -8,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-C3VVVABX.js";
11
+ } from "./chunk-ZLGQY55I.js";
12
12
  import {
13
13
  BUILT_IN_EXPERTS
14
14
  } from "./chunk-YPNQPT2F.js";
@@ -2001,4 +2001,4 @@ export {
2001
2001
  setupCommand,
2002
2002
  setupCommandAsync
2003
2003
  };
2004
- //# sourceMappingURL=chunk-YV7MHKY7.js.map
2004
+ //# sourceMappingURL=chunk-HI63BMZ6.js.map
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-OQLFRJCW.js";
53
53
 
54
54
  // src/version.ts
55
- var VERSION = true ? "4.3.4" : "dev";
55
+ var VERSION = true ? "4.3.5" : "dev";
56
56
 
57
57
  // src/config/schemas-core.ts
58
58
  import { z } from "zod";
@@ -2339,7 +2339,7 @@ async function runDoctorFix(result) {
2339
2339
  writeLine2("\u2500".repeat(40));
2340
2340
  let fixCount = 0;
2341
2341
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2342
- const { runSetup } = await import("./setup-command-H7FJXFMF.js");
2342
+ const { runSetup } = await import("./setup-command-DLIUAXMJ.js");
2343
2343
  const setupResult = runSetup({
2344
2344
  skipMcp: true,
2345
2345
  skipRules: true,
@@ -2452,4 +2452,4 @@ export {
2452
2452
  startStdioServer,
2453
2453
  closeServer
2454
2454
  };
2455
- //# sourceMappingURL=chunk-C3VVVABX.js.map
2455
+ //# sourceMappingURL=chunk-ZLGQY55I.js.map
package/dist/cli.js CHANGED
@@ -18,7 +18,7 @@ import "./chunk-TKFWYFBD.js";
18
18
  import {
19
19
  setupCommandAsync,
20
20
  verifyCommand
21
- } from "./chunk-YV7MHKY7.js";
21
+ } from "./chunk-HI63BMZ6.js";
22
22
  import "./chunk-YIV4GQHK.js";
23
23
  import {
24
24
  AuthHandler,
@@ -139,7 +139,7 @@ import {
139
139
  validateCommand,
140
140
  validateWorkflow,
141
141
  wrapInMarkdownFence
142
- } from "./chunk-I27YOL3U.js";
142
+ } from "./chunk-ES3CPAON.js";
143
143
  import "./chunk-SHG3MYMD.js";
144
144
  import "./chunk-HFOQKCD2.js";
145
145
  import "./chunk-RSMG2DPB.js";
@@ -166,7 +166,7 @@ import {
166
166
  loadConfig,
167
167
  runDoctor,
168
168
  validateNexusEnv
169
- } from "./chunk-C3VVVABX.js";
169
+ } from "./chunk-ZLGQY55I.js";
170
170
  import {
171
171
  buildOpenAICompatAdapters,
172
172
  readOpenAICompatEnv
@@ -13204,9 +13204,10 @@ async function recordToolTask(storage, input) {
13204
13204
  const taskDescription = `${input.tool_name}: ${summarizeToolInput(input.tool_input)}`;
13205
13205
  const taskResult = await storage.addTask(activeSession.id, taskDescription);
13206
13206
  if (!taskResult.ok) return;
13207
+ const outcome = classifyToolResponse(input.tool_response);
13207
13208
  await storage.updateTask(taskResult.value.id, {
13208
- result: summarizeToolResponse(input.tool_response),
13209
- status: TaskStatus.COMPLETED,
13209
+ result: outcome.summary,
13210
+ status: outcome.status,
13210
13211
  durationMs: metrics.durationMs,
13211
13212
  tokensUsed: metrics.tokensUsed
13212
13213
  });
@@ -13236,17 +13237,23 @@ function summarizeToolInput(toolInput) {
13236
13237
  const keys = Object.keys(toolInput);
13237
13238
  return keys.length > 0 ? keys.join(", ") : "(no input)";
13238
13239
  }
13239
- function summarizeToolResponse(toolResponse) {
13240
+ function classifyToolResponse(toolResponse) {
13240
13241
  const error = toolResponse.error ?? toolResponse.stderr;
13241
13242
  if (error !== void 0 && error !== "") {
13242
- return `Error: ${safeString(error).substring(0, 100)}`;
13243
+ return {
13244
+ status: TaskStatus.FAILED,
13245
+ summary: `Error: ${safeString(error).substring(0, 100)}`
13246
+ };
13243
13247
  }
13244
13248
  const stdout = toolResponse.stdout ?? toolResponse.output ?? toolResponse.content;
13245
13249
  if (stdout !== void 0) {
13246
13250
  const out = safeString(stdout);
13247
- return out.length > 100 ? `${out.substring(0, 100)}...` : out;
13251
+ return {
13252
+ status: TaskStatus.COMPLETED,
13253
+ summary: out.length > 100 ? `${out.substring(0, 100)}...` : out
13254
+ };
13248
13255
  }
13249
- return "completed";
13256
+ return { status: TaskStatus.COMPLETED, summary: "completed" };
13250
13257
  }
13251
13258
  function extractFilePath(toolInput) {
13252
13259
  const filePath = toolInput.file_path ?? toolInput.path ?? toolInput.notebook_path;