nexus-agents 2.77.2 → 2.77.4

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 (37) hide show
  1. package/dist/{chunk-6UDFAXUI.js → chunk-AFGRQB4H.js} +5 -3
  2. package/dist/{chunk-6UDFAXUI.js.map → chunk-AFGRQB4H.js.map} +1 -1
  3. package/dist/{chunk-BC3M4VLP.js → chunk-BMOPMCFZ.js} +5 -2
  4. package/dist/chunk-BMOPMCFZ.js.map +1 -0
  5. package/dist/{chunk-CPPZCNAS.js → chunk-EEW7VFFF.js} +3 -3
  6. package/dist/{chunk-X3BU5MIG.js → chunk-FYAQBYHM.js} +2 -2
  7. package/dist/{chunk-RFITLMH4.js → chunk-LIY6WZNR.js} +24 -212
  8. package/dist/chunk-LIY6WZNR.js.map +1 -0
  9. package/dist/{chunk-VEF6DCQU.js → chunk-MV4R2ZIJ.js} +204 -4
  10. package/dist/chunk-MV4R2ZIJ.js.map +1 -0
  11. package/dist/{chunk-N3HOBUU4.js → chunk-S6MEYRYZ.js} +30 -21
  12. package/dist/{chunk-N3HOBUU4.js.map → chunk-S6MEYRYZ.js.map} +1 -1
  13. package/dist/{chunk-ZKOBXAPK.js → chunk-WXVN4K3D.js} +2 -2
  14. package/dist/cli.d.ts +2 -0
  15. package/dist/cli.js +30 -17
  16. package/dist/cli.js.map +1 -1
  17. package/dist/{consensus-vote-UR3JU7RI.js → consensus-vote-AWBFYF5S.js} +3 -3
  18. package/dist/{expert-bridge-DWBO2HXZ.js → expert-bridge-NX2MGOBQ.js} +2 -2
  19. package/dist/{factory-LXOVC44K.js → factory-JI6PSWGR.js} +2 -2
  20. package/dist/index.d.ts +0 -2
  21. package/dist/index.js +8 -8
  22. package/dist/{repo-analyze-HWMXSK5C.js → repo-analyze-QGLXEFVJ.js} +2 -2
  23. package/dist/{repo-security-plan-EIL2BV3S.js → repo-security-plan-X5CRZ2YY.js} +3 -3
  24. package/dist/{setup-command-ZIG5JJAE.js → setup-command-DB3DOE6K.js} +4 -4
  25. package/package.json +1 -1
  26. package/dist/chunk-BC3M4VLP.js.map +0 -1
  27. package/dist/chunk-RFITLMH4.js.map +0 -1
  28. package/dist/chunk-VEF6DCQU.js.map +0 -1
  29. /package/dist/{chunk-CPPZCNAS.js.map → chunk-EEW7VFFF.js.map} +0 -0
  30. /package/dist/{chunk-X3BU5MIG.js.map → chunk-FYAQBYHM.js.map} +0 -0
  31. /package/dist/{chunk-ZKOBXAPK.js.map → chunk-WXVN4K3D.js.map} +0 -0
  32. /package/dist/{consensus-vote-UR3JU7RI.js.map → consensus-vote-AWBFYF5S.js.map} +0 -0
  33. /package/dist/{expert-bridge-DWBO2HXZ.js.map → expert-bridge-NX2MGOBQ.js.map} +0 -0
  34. /package/dist/{factory-LXOVC44K.js.map → factory-JI6PSWGR.js.map} +0 -0
  35. /package/dist/{repo-analyze-HWMXSK5C.js.map → repo-analyze-QGLXEFVJ.js.map} +0 -0
  36. /package/dist/{repo-security-plan-EIL2BV3S.js.map → repo-security-plan-X5CRZ2YY.js.map} +0 -0
  37. /package/dist/{setup-command-ZIG5JJAE.js.map → setup-command-DB3DOE6K.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-MGLWPN2I.js";
8
8
  import {
9
9
  executeExpert
10
- } from "./chunk-X3BU5MIG.js";
10
+ } from "./chunk-FYAQBYHM.js";
11
11
  import {
12
12
  DEFAULT_RELEVANCE_CONFIG,
13
13
  EventTopics,
@@ -37,7 +37,7 @@ import {
37
37
  withAccessPolicy,
38
38
  withProgressHeartbeat,
39
39
  wrapToolWithTimeout
40
- } from "./chunk-CPPZCNAS.js";
40
+ } from "./chunk-EEW7VFFF.js";
41
41
  import {
42
42
  REGISTRY_PATH,
43
43
  getProjectRoot,
@@ -53,10 +53,10 @@ import {
53
53
  } from "./chunk-ERWXGXV2.js";
54
54
  import {
55
55
  generateSecurityPlan
56
- } from "./chunk-ZKOBXAPK.js";
56
+ } from "./chunk-WXVN4K3D.js";
57
57
  import {
58
58
  analyzeGitHubRepo
59
- } from "./chunk-BC3M4VLP.js";
59
+ } from "./chunk-BMOPMCFZ.js";
60
60
  import {
61
61
  CodebaseIndex
62
62
  } from "./chunk-AP2FD37C.js";
@@ -70,7 +70,7 @@ import {
70
70
  clampTaskTtl,
71
71
  getAvailabilityCache,
72
72
  resolveFallback
73
- } from "./chunk-RFITLMH4.js";
73
+ } from "./chunk-LIY6WZNR.js";
74
74
  import {
75
75
  DEFAULTS
76
76
  } from "./chunk-YQMQSJQK.js";
@@ -84,7 +84,7 @@ import {
84
84
  getAvailableClis,
85
85
  sleep,
86
86
  withTimeout
87
- } from "./chunk-VEF6DCQU.js";
87
+ } from "./chunk-MV4R2ZIJ.js";
88
88
  import {
89
89
  BUILT_IN_EXPERTS,
90
90
  BuiltInExpertTypeSchema,
@@ -28391,9 +28391,6 @@ function delegateInputToTaskContract(input) {
28391
28391
  if (input.billing_mode !== void 0) {
28392
28392
  metadata["billingMode"] = input.billing_mode;
28393
28393
  }
28394
- if (input.estimate_tokens === true) {
28395
- metadata["estimateTokens"] = true;
28396
- }
28397
28394
  return buildBaseTaskContract({
28398
28395
  idPrefix: "delegate",
28399
28396
  task: input.task,
@@ -33593,7 +33590,12 @@ var DelegateInputSchema = z56.object({
33593
33590
  task: z56.string().min(1).max(5e4).describe("Task to execute or analyze"),
33594
33591
  preferred_capability: z56.enum(["reasoning", "context", "speed", "code"]).optional().describe("Preferred capability for routing: reasoning, context, speed, or code"),
33595
33592
  model_hint: z56.string().max(100).optional().describe("Explicit model preference (e.g., claude-opus, gemini-pro)"),
33596
- estimate_tokens: z56.boolean().optional().default(false).describe("If true, return token estimate only without execution"),
33593
+ // estimate_tokens flag removed (#2723). The field was declared in two schemas
33594
+ // (here and in TOOL_SCHEMA below) but never read by any consumer — calling
33595
+ // `delegate_to_model { estimate_tokens: true }` returned the full routing
33596
+ // decision identical to omitting the flag. The output already carries
33597
+ // `estimated_tokens` so the use case the flag advertised is satisfied
33598
+ // without the flag.
33597
33599
  billing_mode: z56.enum(["plan", "api"]).optional().describe("Billing mode: plan (monthly subscription, ignore cost) or api (pay-per-token)")
33598
33600
  });
33599
33601
  var DelegateOutputSchema = z56.object({
@@ -33690,7 +33692,7 @@ var TOOL_SCHEMA = {
33690
33692
  task: z56.string().min(1).max(5e4).describe("Task to execute or analyze"),
33691
33693
  preferred_capability: z56.enum(["reasoning", "context", "speed", "code"]).optional().describe("Preferred capability for routing"),
33692
33694
  model_hint: z56.string().max(100).optional().describe("Explicit model preference"),
33693
- estimate_tokens: z56.boolean().optional().describe("Return token estimate only"),
33695
+ // estimate_tokens removed (#2723) see comment above on DelegateInputSchema.
33694
33696
  billing_mode: z56.enum(["plan", "api"]).optional().describe("Billing mode for cost handling")
33695
33697
  };
33696
33698
 
@@ -40550,11 +40552,18 @@ function classifyTraceError(err2) {
40550
40552
  }
40551
40553
  return "unknown";
40552
40554
  }
40553
- function sanitizeErrorMessage(err2) {
40554
- if (err2 instanceof Error) {
40555
- return err2.message.replace(/\/[^\s:]+/g, "<path>");
40555
+ function userFacingTraceError(err2, runId) {
40556
+ const category = classifyTraceError(err2);
40557
+ switch (category) {
40558
+ case "not_found":
40559
+ return `No trace file for runId '${runId}'`;
40560
+ case "permission_error":
40561
+ return `Permission denied reading trace for runId '${runId}'`;
40562
+ case "parse_error":
40563
+ return `Trace file for runId '${runId}' is malformed (invalid JSONL)`;
40564
+ default:
40565
+ return "Failed to read trace";
40556
40566
  }
40557
- return "An unexpected error occurred";
40558
40567
  }
40559
40568
  function parseJsonlLines(content) {
40560
40569
  return content.trim().split("\n").filter(Boolean).flatMap((line) => {
@@ -40599,7 +40608,7 @@ async function queryTraceFromDisk(input, runsDir) {
40599
40608
  };
40600
40609
  } catch (err2) {
40601
40610
  const category = classifyTraceError(err2);
40602
- const message = sanitizeErrorMessage(err2);
40611
+ const message = userFacingTraceError(err2, input.runId);
40603
40612
  if (category === "not_found") {
40604
40613
  traceLogger.debug("Trace file not found", { runId: input.runId });
40605
40614
  } else {
@@ -41794,7 +41803,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
41794
41803
  ]);
41795
41804
  async function classifyWithLLM(task) {
41796
41805
  try {
41797
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-DWBO2HXZ.js");
41806
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-NX2MGOBQ.js");
41798
41807
  const prompt = [
41799
41808
  "Classify this task into exactly one pipeline template.",
41800
41809
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -42794,7 +42803,7 @@ ${contextBlock}`;
42794
42803
  const strategy = config.votingStrategy ?? "higher_order";
42795
42804
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
42796
42805
  try {
42797
- const { executeVoting } = await import("./consensus-vote-UR3JU7RI.js");
42806
+ const { executeVoting } = await import("./consensus-vote-AWBFYF5S.js");
42798
42807
  const votingResult = await executeVoting(
42799
42808
  {
42800
42809
  proposal: plan.slice(0, 4e3),
@@ -43743,7 +43752,7 @@ function createAnalyzeStageWrapper() {
43743
43752
  true
43744
43753
  );
43745
43754
  }
43746
- const { analyzeGitHubRepo: analyzeGitHubRepo2 } = await import("./repo-analyze-HWMXSK5C.js");
43755
+ const { analyzeGitHubRepo: analyzeGitHubRepo2 } = await import("./repo-analyze-QGLXEFVJ.js");
43747
43756
  const analysis = await analyzeGitHubRepo2({ repo: slug, depth: "deep" });
43748
43757
  const summary = `Language: ${String(analysis.language)}, Framework: ${String(analysis.framework)}, CI: ${String(analysis.ciProvider)}, Security: ${analysis.securityTooling.join(", ") || "none"}`;
43749
43758
  ctx.sharedMemory.write("analyze", "discovery", { slug, analysis: summary });
@@ -43763,7 +43772,7 @@ function createScanStageWrapper() {
43763
43772
  try {
43764
43773
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
43765
43774
  if (slug !== void 0) {
43766
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-EIL2BV3S.js");
43775
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-X5CRZ2YY.js");
43767
43776
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
43768
43777
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
43769
43778
  ctx.sharedMemory.write("scan", "decision", { recommendations: recs });
@@ -50001,4 +50010,4 @@ export {
50001
50010
  detectBackend,
50002
50011
  createTaskTracker
50003
50012
  };
50004
- //# sourceMappingURL=chunk-N3HOBUU4.js.map
50013
+ //# sourceMappingURL=chunk-S6MEYRYZ.js.map