nexus-agents 4.15.0 → 4.15.2

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.
@@ -170,7 +170,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
170
170
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
171
171
 
172
172
  // src/version.ts
173
- var VERSION = true ? "4.15.0" : "dev";
173
+ var VERSION = true ? "4.15.2" : "dev";
174
174
 
175
175
  // src/mcp/task-store.ts
176
176
  import { InMemoryTaskStore } from "@modelcontextprotocol/sdk/experimental/tasks";
@@ -1134,7 +1134,7 @@ async function runDoctorFix(result) {
1134
1134
  writeLine2("\u2500".repeat(40));
1135
1135
  let fixCount = 0;
1136
1136
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1137
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-ORCVLI3F.js");
1137
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-ZHLVXYUG.js");
1138
1138
  const outcome = describeDataDirFix2(initDataDirectories2());
1139
1139
  writeLine2(outcome.line);
1140
1140
  if (outcome.counted) fixCount++;
@@ -1237,4 +1237,4 @@ export {
1237
1237
  startStdioServer,
1238
1238
  closeServer
1239
1239
  };
1240
- //# sourceMappingURL=chunk-747LKXD4.js.map
1240
+ //# sourceMappingURL=chunk-227I7IM7.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-747LKXD4.js";
24
+ } from "./chunk-227I7IM7.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-VR76FPIN.js";
@@ -21463,8 +21463,21 @@ async function processOrchestrationForLearning(result, buffer, policyEngine) {
21463
21463
  });
21464
21464
  return;
21465
21465
  }
21466
- const finalReward = result.metrics.avgReward * result.totalSteps;
21467
- await tryUpdatePolicy(policyEngine, trajectory, finalReward, result.sessionId, episodeId);
21466
+ const { avgReward, scoredSteps } = result.metrics;
21467
+ if (scoredSteps === 0) {
21468
+ logger10.debug("No step reported a measurable reward; skipping policy update", {
21469
+ sessionId: result.sessionId,
21470
+ totalSteps: result.totalSteps
21471
+ });
21472
+ return;
21473
+ }
21474
+ await tryUpdatePolicy(
21475
+ policyEngine,
21476
+ trajectory,
21477
+ avgReward * scoredSteps,
21478
+ result.sessionId,
21479
+ episodeId
21480
+ );
21468
21481
  } catch (error) {
21469
21482
  const err2 = error instanceof Error ? error : new Error(String(error));
21470
21483
  logger10.error("Unexpected error in learning integration", err2, {
@@ -55763,4 +55776,4 @@ export {
55763
55776
  shutdownFeedbackSubscriber,
55764
55777
  createEventBusBridge
55765
55778
  };
55766
- //# sourceMappingURL=chunk-N5O3XVNG.js.map
55779
+ //# sourceMappingURL=chunk-MEMPWKAD.js.map