nexus-agents 2.120.1 → 2.120.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.
@@ -8,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-NHCAY372.js";
11
+ } from "./chunk-GR46LD2P.js";
12
12
  import {
13
13
  probeAllClis
14
14
  } from "./chunk-NT7LFPXT.js";
@@ -2000,4 +2000,4 @@ export {
2000
2000
  setupCommand,
2001
2001
  setupCommandAsync
2002
2002
  };
2003
- //# sourceMappingURL=chunk-O56EMO45.js.map
2003
+ //# sourceMappingURL=chunk-BFVNQQZ3.js.map
@@ -528,6 +528,22 @@ var ERROR_ENVELOPE_META_KEY = "nexus-agents/error";
528
528
  function defaultRetryable(category) {
529
529
  return category === "transient";
530
530
  }
531
+ var FAILURE_CATEGORY_COARSENING = {
532
+ timeout: "transient",
533
+ rate_limit: "transient",
534
+ connection: "transient",
535
+ authentication: "permission",
536
+ validation: "validation",
537
+ parse: "validation",
538
+ crash: "internal",
539
+ adapter_unavailable: "internal",
540
+ execution: "internal",
541
+ generic: "internal",
542
+ unknown: "internal"
543
+ };
544
+ function coarsenFailureCategory(category) {
545
+ return FAILURE_CATEGORY_COARSENING[category];
546
+ }
531
547
 
532
548
  // src/mcp/tools/tool-result.ts
533
549
  function toolSuccess(text) {
@@ -2558,6 +2574,8 @@ export {
2558
2574
  logToolInvocationAudit,
2559
2575
  logPolicyAudit,
2560
2576
  logRateLimitAudit,
2577
+ defaultRetryable,
2578
+ coarsenFailureCategory,
2561
2579
  toolSuccess,
2562
2580
  toolSuccessStructured,
2563
2581
  toolStructuredError,
@@ -2588,4 +2606,4 @@ export {
2588
2606
  VOTING_THRESHOLDS,
2589
2607
  ConsensusMetricsSchema
2590
2608
  };
2591
- //# sourceMappingURL=chunk-2PQNHP5Y.js.map
2609
+ //# sourceMappingURL=chunk-FUZ2LMMD.js.map