nexus-agents 5.0.6 → 6.0.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.
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var VERSION = true ? "6.0.0" : "dev";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-24DD6LHX.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-OQB3XC5O.js";
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-OVX5LYEJ.js";
9
+ } from "./chunk-24DD6LHX.js";
10
10
  import {
11
11
  capitalize
12
12
  } from "./chunk-6T3EPABN.js";
@@ -1201,7 +1201,7 @@ async function runDoctorFix(result) {
1201
1201
  writeLine2("\u2500".repeat(40));
1202
1202
  let fixCount = 0;
1203
1203
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1204
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-X6VWI4ZZ.js");
1204
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-ATOGPGNV.js");
1205
1205
  const outcome = describeDataDirFix2(initDataDirectories2());
1206
1206
  writeLine2(outcome.line);
1207
1207
  if (outcome.counted) fixCount++;
@@ -1303,4 +1303,4 @@ export {
1303
1303
  startStdioServer,
1304
1304
  closeServer
1305
1305
  };
1306
- //# sourceMappingURL=chunk-BK6WBB43.js.map
1306
+ //# sourceMappingURL=chunk-2GS3AKCN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-OVX5LYEJ.js";
3
+ } from "./chunk-24DD6LHX.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-OOGKQTDN.js";
@@ -2135,4 +2135,4 @@ export {
2135
2135
  VOTING_THRESHOLDS,
2136
2136
  ConsensusMetricsSchema
2137
2137
  };
2138
- //# sourceMappingURL=chunk-FNUX7Z4V.js.map
2138
+ //# sourceMappingURL=chunk-CVQVFAS2.js.map
@@ -23,7 +23,7 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-FNUX7Z4V.js";
26
+ } from "./chunk-CVQVFAS2.js";
27
27
  import {
28
28
  assessPanelIndependence,
29
29
  countDistinctModels,
@@ -6848,4 +6848,4 @@ export {
6848
6848
  CONSENSUS_VOTE_TOOL_SCHEMA,
6849
6849
  registerConsensusVoteTool
6850
6850
  };
6851
- //# sourceMappingURL=chunk-D6QLJAIZ.js.map
6851
+ //# sourceMappingURL=chunk-GROTZV5O.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-FNUX7Z4V.js";
10
+ } from "./chunk-CVQVFAS2.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -2159,4 +2159,4 @@ export {
2159
2159
  runImprovementReview,
2160
2160
  registerImprovementReviewTool
2161
2161
  };
2162
- //# sourceMappingURL=chunk-QP54NGPU.js.map
2162
+ //# sourceMappingURL=chunk-SISWLSYJ.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-BK6WBB43.js";
24
+ } from "./chunk-2GS3AKCN.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-5MQPSHIG.js";
@@ -47,7 +47,7 @@ import {
47
47
  simulationDeniedResult,
48
48
  toJobSummary,
49
49
  writeJobCancelled
50
- } from "./chunk-D6QLJAIZ.js";
50
+ } from "./chunk-GROTZV5O.js";
51
51
  import {
52
52
  allOf
53
53
  } from "./chunk-OQB3XC5O.js";
@@ -64,7 +64,7 @@ import {
64
64
  } from "./chunk-FU45UMX5.js";
65
65
  import {
66
66
  withPrerequisite
67
- } from "./chunk-QP54NGPU.js";
67
+ } from "./chunk-SISWLSYJ.js";
68
68
  import {
69
69
  NOOP_NOTIFIER,
70
70
  RateLimiter,
@@ -88,7 +88,7 @@ import {
88
88
  withAuditTrail,
89
89
  withProgressHeartbeat,
90
90
  wrapToolWithTimeout
91
- } from "./chunk-FNUX7Z4V.js";
91
+ } from "./chunk-CVQVFAS2.js";
92
92
  import {
93
93
  createAuditTrail,
94
94
  createGraphAuditBridge,
@@ -4885,7 +4885,6 @@ function recordExecutionPattern(state, pattern) {
4885
4885
  if (existing !== void 0) {
4886
4886
  const updated = {
4887
4887
  ...existing,
4888
- successRate: (existing.successRate * existing.occurrences + pattern.successRate) / (existing.occurrences + 1),
4889
4888
  occurrences: existing.occurrences + 1,
4890
4889
  lastSeen: new Date(getTimeProvider().now())
4891
4890
  };
@@ -4899,7 +4898,6 @@ function recordExecutionPattern(state, pattern) {
4899
4898
  const newPattern = {
4900
4899
  id: `pattern_${String(time.now())}_${random.random().toString(36).slice(2, 8)}`,
4901
4900
  pattern: pattern.pattern,
4902
- successRate: pattern.successRate,
4903
4901
  occurrences: pattern.occurrences ?? 1,
4904
4902
  lastSeen: new Date(getTimeProvider().now())
4905
4903
  };
@@ -4937,9 +4935,6 @@ function findErrorResolution(state, errorMessage2) {
4937
4935
  function getLearningsByType(state, taskType) {
4938
4936
  return state.taskLearnings.filter((l) => l.taskType === taskType).sort((a, b) => b.confidence - a.confidence);
4939
4937
  }
4940
- function getTopPatterns(state, limit = 10) {
4941
- return [...state.executionPatterns].sort((a, b) => b.successRate - a.successRate).slice(0, limit);
4942
- }
4943
4938
 
4944
4939
  // src/agents/base-agent-memory-init.ts
4945
4940
  function initializeMemoryInfrastructure(options) {
@@ -5274,11 +5269,9 @@ async function persistMemoryAfterTask(params) {
5274
5269
  return memoryState;
5275
5270
  }
5276
5271
  const durationMs = getTimeProvider().now() - startTime;
5277
- const successRate = 1;
5278
5272
  const taskType = categorizeTaskType(task.description);
5279
5273
  const updatedState = recordExecutionPattern(memoryState, {
5280
- pattern: taskType,
5281
- successRate
5274
+ pattern: taskType
5282
5275
  });
5283
5276
  if (memoryBackend !== void 0) {
5284
5277
  await persistMemoryState(memoryBackend, updatedState, logger58);
@@ -5491,13 +5484,6 @@ function getLearningsFromState(params) {
5491
5484
  }
5492
5485
  return getLearningsByType(memoryState, taskType);
5493
5486
  }
5494
- function getTopPatternsFromState(params) {
5495
- const { memoryEnabled, memoryState, limit } = params;
5496
- if (!memoryEnabled || memoryState === null) {
5497
- return [];
5498
- }
5499
- return getTopPatterns(memoryState, limit);
5500
- }
5501
5487
  function copyMemoryState(state) {
5502
5488
  return state !== null ? { ...state } : null;
5503
5489
  }
@@ -5516,9 +5502,6 @@ function doFindResolution(ctx, errorMessage2) {
5516
5502
  function doGetLearnings(ctx, taskType) {
5517
5503
  return getLearningsFromState({ ...ctx, taskType });
5518
5504
  }
5519
- function doGetTopPatterns(ctx, limit) {
5520
- return getTopPatternsFromState({ ...ctx, limit });
5521
- }
5522
5505
 
5523
5506
  // src/agents/base-agent-memory-accessors.ts
5524
5507
  function getMemoryStateCopy(state) {
@@ -5547,9 +5530,6 @@ function findResolution(ctx, errorMessage2) {
5547
5530
  function getTaskLearningsByType(ctx, taskType) {
5548
5531
  return doGetLearnings(ctx, taskType);
5549
5532
  }
5550
- function getTopPatterns2(ctx, limit) {
5551
- return doGetTopPatterns(ctx, limit);
5552
- }
5553
5533
 
5554
5534
  // src/agents/base-agent-dispatch.ts
5555
5535
  function validateMessage(params) {
@@ -5964,9 +5944,6 @@ var BaseAgent = class {
5964
5944
  getTaskLearnings(taskType) {
5965
5945
  return getTaskLearningsByType(this.memOpCtx, taskType);
5966
5946
  }
5967
- getTopExecutionPatterns(limit = 10) {
5968
- return getTopPatterns2(this.memOpCtx, limit);
5969
- }
5970
5947
  };
5971
5948
 
5972
5949
  // src/agents/simple-agent.ts
@@ -47322,7 +47299,7 @@ ${contextBlock}`;
47322
47299
  const strategy = config.votingStrategy ?? "higher_order";
47323
47300
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47324
47301
  try {
47325
- const { executeVoting } = await import("./consensus-vote-PVIKQYBF.js");
47302
+ const { executeVoting } = await import("./consensus-vote-LXBNSGSX.js");
47326
47303
  const votingResult = await executeVoting(
47327
47304
  {
47328
47305
  proposal: buildVoteProposal(plan, research),
@@ -55958,4 +55935,4 @@ export {
55958
55935
  shutdownFeedbackSubscriber,
55959
55936
  createEventBusBridge
55960
55937
  };
55961
- //# sourceMappingURL=chunk-LO5I265X.js.map
55938
+ //# sourceMappingURL=chunk-XH5DP2FT.js.map