nexus-agents 2.29.2 → 2.30.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.
Files changed (24) hide show
  1. package/dist/{chunk-QGODFK36.js → chunk-4IEUUQ4G.js} +2 -2
  2. package/dist/{chunk-J245RJGW.js → chunk-6CHMHPT4.js} +2 -2
  3. package/dist/{chunk-WSYJN7BI.js → chunk-CD64JT3I.js} +3 -3
  4. package/dist/{chunk-QSNAFOE6.js → chunk-FXX5UQCK.js} +30 -10
  5. package/dist/chunk-FXX5UQCK.js.map +1 -0
  6. package/dist/{chunk-LDIN2PLV.js → chunk-GJVHRJO2.js} +32 -2
  7. package/dist/{chunk-LDIN2PLV.js.map → chunk-GJVHRJO2.js.map} +1 -1
  8. package/dist/{chunk-Z4OZ25VS.js → chunk-Q25KKHNQ.js} +2 -2
  9. package/dist/cli.js +6 -6
  10. package/dist/{consensus-vote-COW34Q2Y.js → consensus-vote-5PFFDRLR.js} +2 -2
  11. package/dist/{expert-bridge-J36C7VES.js → expert-bridge-5KVWX44T.js} +2 -2
  12. package/dist/{expert-config-MQ5OJE3U.js → expert-config-BTPAEZWV.js} +2 -2
  13. package/dist/index.js +6 -6
  14. package/dist/{setup-command-CMCQRBJF.js → setup-command-QIHX7ZVJ.js} +3 -3
  15. package/package.json +1 -1
  16. package/dist/chunk-QSNAFOE6.js.map +0 -1
  17. /package/dist/{chunk-QGODFK36.js.map → chunk-4IEUUQ4G.js.map} +0 -0
  18. /package/dist/{chunk-J245RJGW.js.map → chunk-6CHMHPT4.js.map} +0 -0
  19. /package/dist/{chunk-WSYJN7BI.js.map → chunk-CD64JT3I.js.map} +0 -0
  20. /package/dist/{chunk-Z4OZ25VS.js.map → chunk-Q25KKHNQ.js.map} +0 -0
  21. /package/dist/{consensus-vote-COW34Q2Y.js.map → consensus-vote-5PFFDRLR.js.map} +0 -0
  22. /package/dist/{expert-bridge-J36C7VES.js.map → expert-bridge-5KVWX44T.js.map} +0 -0
  23. /package/dist/{expert-config-MQ5OJE3U.js.map → expert-config-BTPAEZWV.js.map} +0 -0
  24. /package/dist/{setup-command-CMCQRBJF.js.map → setup-command-QIHX7ZVJ.js.map} +0 -0
@@ -76,7 +76,7 @@ async function dispatchWithRateLimitRetry(router, task, expertType, start) {
76
76
  async function executeExpert(expertType, prompt) {
77
77
  const start = getTimeProvider().now();
78
78
  try {
79
- const { BUILT_IN_EXPERTS } = await import("./expert-config-MQ5OJE3U.js");
79
+ const { BUILT_IN_EXPERTS } = await import("./expert-config-BTPAEZWV.js");
80
80
  const config = BUILT_IN_EXPERTS[expertType];
81
81
  const fullPrompt = `${config.systemPrompt}
82
82
 
@@ -119,4 +119,4 @@ ${prompt}`;
119
119
  export {
120
120
  executeExpert
121
121
  };
122
- //# sourceMappingURL=chunk-QGODFK36.js.map
122
+ //# sourceMappingURL=chunk-4IEUUQ4G.js.map
@@ -12346,7 +12346,7 @@ async function processVotesWithCascade(votes, opts) {
12346
12346
  var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
12347
12347
  async function runContrarianCheck(proposal, log) {
12348
12348
  try {
12349
- const { executeExpert } = await import("./expert-bridge-J36C7VES.js");
12349
+ const { executeExpert } = await import("./expert-bridge-5KVWX44T.js");
12350
12350
  const prompt = [
12351
12351
  "You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
12352
12352
  "Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
@@ -12716,4 +12716,4 @@ export {
12716
12716
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
12717
12717
  registerConsensusVoteTool
12718
12718
  };
12719
- //# sourceMappingURL=chunk-J245RJGW.js.map
12719
+ //# sourceMappingURL=chunk-6CHMHPT4.js.map
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-CLYZ7FWP.js";
25
25
 
26
26
  // src/version.ts
27
- var VERSION = true ? "2.29.2" : "dev";
27
+ var VERSION = true ? "2.30.0" : "dev";
28
28
 
29
29
  // src/cli/setup-data-dir.ts
30
30
  import { mkdirSync, existsSync as existsSync2 } from "fs";
@@ -758,7 +758,7 @@ async function runDoctorFix(result) {
758
758
  writeLine2("\u2500".repeat(40));
759
759
  let fixCount = 0;
760
760
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
761
- const { runSetup } = await import("./setup-command-CMCQRBJF.js");
761
+ const { runSetup } = await import("./setup-command-QIHX7ZVJ.js");
762
762
  const setupResult = runSetup({
763
763
  skipMcp: true,
764
764
  skipRules: true,
@@ -836,4 +836,4 @@ export {
836
836
  startStdioServer,
837
837
  closeServer
838
838
  };
839
- //# sourceMappingURL=chunk-WSYJN7BI.js.map
839
+ //# sourceMappingURL=chunk-CD64JT3I.js.map
@@ -25,7 +25,7 @@ import {
25
25
  toolSuccessStructured,
26
26
  withProgressHeartbeat,
27
27
  wrapToolWithTimeout
28
- } from "./chunk-J245RJGW.js";
28
+ } from "./chunk-6CHMHPT4.js";
29
29
  import {
30
30
  REGISTRY_PATH,
31
31
  getProjectRoot,
@@ -61,11 +61,11 @@ import {
61
61
  BuiltInExpertTypeSchema,
62
62
  ExpertConfigSchema,
63
63
  getSecurityKnowledgePrompt
64
- } from "./chunk-LDIN2PLV.js";
64
+ } from "./chunk-GJVHRJO2.js";
65
65
  import {
66
66
  DEFAULT_TASK_TTL_MS,
67
67
  clampTaskTtl
68
- } from "./chunk-WSYJN7BI.js";
68
+ } from "./chunk-CD64JT3I.js";
69
69
  import {
70
70
  createSessionMemory
71
71
  } from "./chunk-KQIDTE52.js";
@@ -87,7 +87,7 @@ import {
87
87
  } from "./chunk-66NNHMVB.js";
88
88
  import {
89
89
  executeExpert
90
- } from "./chunk-QGODFK36.js";
90
+ } from "./chunk-4IEUUQ4G.js";
91
91
  import {
92
92
  ClaudeCliAdapter,
93
93
  CliDetectionCache,
@@ -9997,7 +9997,12 @@ When reviewing web-facing code, check for presence and correctness of these head
9997
9997
  - Do not flag test files for containing fake secrets (they use FAKE_* constants by design)
9998
9998
  - Do not report generic OWASP findings without codebase-specific evidence
9999
9999
  - Validate that referenced files and line numbers actually exist
10000
- - Do not propose security changes that break existing canonical paths`;
10000
+ - Do not propose security changes that break existing canonical paths
10001
+
10002
+ ### Push-Back Cues
10003
+ - Findings are inherently negative evidence: never assert "no vulnerability" by default \u2014 instead state the scope that was audited and what remains unchecked
10004
+ - If the user asks you to sign off on a component without source access, refuse and request the source or an SBOM
10005
+ - Confidence <0.6 when audit relied on static patterns without dynamic verification`;
10001
10006
 
10002
10007
  // src/agents/experts/expert-prompts/testing-expert.ts
10003
10008
  var TESTING_EXPERT_BASE_PROMPT = `You are a testing expert specializing in test-driven development, test automation, and quality assurance.
@@ -10104,7 +10109,12 @@ Respond with JSON matching this structure:
10104
10109
  - Do not generate tests that exceed max-lines-per-function (50) without extracting helpers
10105
10110
  - Do not recommend _ prefix for unused variables \u2014 ESLint still flags them; use destructuring guards
10106
10111
  - Do not assert exact timing values \u2014 use toBeGreaterThanOrEqual(0) for duration assertions
10107
- - Validate that test target functions and modules actually exist before generating tests`;
10112
+ - Validate that test target functions and modules actually exist before generating tests
10113
+
10114
+ ### Push-Back Cues
10115
+ - If a function has >10 edge cases, cover the happy path + 1 critical edge case and flag the remaining branches for a dedicated fuzz / property-based run instead of writing 10 hand-rolled tests
10116
+ - If the user asks for "100% coverage" on a non-critical module, push back and recommend branch coverage on critical paths only
10117
+ - Confidence <0.6 when recommending a test strategy without first reading the existing test structure`;
10108
10118
 
10109
10119
  // src/agents/experts/expert-prompts/code-expert.ts
10110
10120
  var SHARED_CORE = `## Core Principles
@@ -10411,7 +10421,17 @@ Respond with JSON matching this structure:
10411
10421
  - Do not claim features that do not exist in the codebase
10412
10422
  - Do not create parallel documentation indexes (only docs/README.md is canonical)
10413
10423
  - Validate that referenced file paths and function names actually exist
10414
- - Do not exaggerate capabilities or use vague marketing language`;
10424
+ - Do not exaggerate capabilities or use vague marketing language
10425
+
10426
+ ### Task Scope Management
10427
+ - If the request touches >5 docs, prioritize Tier 1 (canonical architecture/security) docs first and return a deferred list for the rest
10428
+ - For large doc refactors, land one tier at a time and update \`docs/README.md\` as you go \u2014 never orphan new docs
10429
+ - Split cross-topic changes into per-topic PRs so reviewers stay within one area
10430
+
10431
+ ### Push-Back Cues
10432
+ - If asked to document a feature that doesn't exist in code, refuse and surface the mismatch \u2014 do not write aspirational docs
10433
+ - If a doc claim would require speculation about future behavior, mark it clearly or omit it
10434
+ - Confidence <0.6 when writing about a subsystem without first reading its canonical source file`;
10415
10435
 
10416
10436
  // src/agents/experts/expert-prompts/prompt-composer.ts
10417
10437
  var MAX_TASK_DESCRIPTION_LENGTH = 500;
@@ -40862,7 +40882,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
40862
40882
  ]);
40863
40883
  async function classifyWithLLM(task) {
40864
40884
  try {
40865
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-J36C7VES.js");
40885
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-5KVWX44T.js");
40866
40886
  const prompt = [
40867
40887
  "Classify this task into exactly one pipeline template.",
40868
40888
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -41850,7 +41870,7 @@ ${contextBlock}`;
41850
41870
  const strategy = config.votingStrategy ?? "higher_order";
41851
41871
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
41852
41872
  try {
41853
- const { executeVoting } = await import("./consensus-vote-COW34Q2Y.js");
41873
+ const { executeVoting } = await import("./consensus-vote-5PFFDRLR.js");
41854
41874
  const votingResult = await executeVoting(
41855
41875
  {
41856
41876
  proposal: plan.slice(0, 4e3),
@@ -53012,4 +53032,4 @@ export {
53012
53032
  detectBackend,
53013
53033
  createTaskTracker
53014
53034
  };
53015
- //# sourceMappingURL=chunk-QSNAFOE6.js.map
53035
+ //# sourceMappingURL=chunk-FXX5UQCK.js.map