nexus-agents 2.29.2 → 2.30.1

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 (30) hide show
  1. package/dist/{chunk-QGODFK36.js → chunk-5SBKLQW6.js} +3 -3
  2. package/dist/{chunk-Z4OZ25VS.js → chunk-7RE6BBXJ.js} +2 -2
  3. package/dist/{chunk-QSNAFOE6.js → chunk-DEESTIZL.js} +31 -11
  4. package/dist/chunk-DEESTIZL.js.map +1 -0
  5. package/dist/{chunk-LDIN2PLV.js → chunk-GJVHRJO2.js} +32 -2
  6. package/dist/{chunk-LDIN2PLV.js.map → chunk-GJVHRJO2.js.map} +1 -1
  7. package/dist/{chunk-CW2Z773T.js → chunk-UOXT5CZ7.js} +39 -3
  8. package/dist/chunk-UOXT5CZ7.js.map +1 -0
  9. package/dist/{chunk-J245RJGW.js → chunk-UXUA234N.js} +3 -3
  10. package/dist/{chunk-WSYJN7BI.js → chunk-ZOTDJ4UR.js} +4 -4
  11. package/dist/cli.js +7 -7
  12. package/dist/{consensus-vote-COW34Q2Y.js → consensus-vote-Q7QKGUEP.js} +3 -3
  13. package/dist/{expert-bridge-J36C7VES.js → expert-bridge-NF65ZTZZ.js} +2 -2
  14. package/dist/{expert-config-MQ5OJE3U.js → expert-config-BTPAEZWV.js} +2 -2
  15. package/dist/{factory-NHORX63J.js → factory-ZFHE6GXT.js} +2 -2
  16. package/dist/index.d.ts +7 -0
  17. package/dist/index.js +7 -7
  18. package/dist/{setup-command-CMCQRBJF.js → setup-command-JXHUUFT3.js} +4 -4
  19. package/package.json +1 -1
  20. package/dist/chunk-CW2Z773T.js.map +0 -1
  21. package/dist/chunk-QSNAFOE6.js.map +0 -1
  22. /package/dist/{chunk-QGODFK36.js.map → chunk-5SBKLQW6.js.map} +0 -0
  23. /package/dist/{chunk-Z4OZ25VS.js.map → chunk-7RE6BBXJ.js.map} +0 -0
  24. /package/dist/{chunk-J245RJGW.js.map → chunk-UXUA234N.js.map} +0 -0
  25. /package/dist/{chunk-WSYJN7BI.js.map → chunk-ZOTDJ4UR.js.map} +0 -0
  26. /package/dist/{consensus-vote-COW34Q2Y.js.map → consensus-vote-Q7QKGUEP.js.map} +0 -0
  27. /package/dist/{expert-bridge-J36C7VES.js.map → expert-bridge-NF65ZTZZ.js.map} +0 -0
  28. /package/dist/{expert-config-MQ5OJE3U.js.map → expert-config-BTPAEZWV.js.map} +0 -0
  29. /package/dist/{factory-NHORX63J.js.map → factory-ZFHE6GXT.js.map} +0 -0
  30. /package/dist/{setup-command-CMCQRBJF.js.map → setup-command-JXHUUFT3.js.map} +0 -0
@@ -23,7 +23,7 @@ async function getMcpConfigPath() {
23
23
  var cachedCircuitBreaker = null;
24
24
  async function getRouter() {
25
25
  if (cachedRouter !== null) return cachedRouter;
26
- const { createAllAdapters } = await import("./factory-NHORX63J.js");
26
+ const { createAllAdapters } = await import("./factory-ZFHE6GXT.js");
27
27
  const { createCompositeRouter } = await import("./composite-router-JD7URTC2.js");
28
28
  const adapters = createAllAdapters();
29
29
  if (adapters.size === 0) return null;
@@ -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-5SBKLQW6.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  VERSION,
6
6
  initDataDirectories
7
- } from "./chunk-WSYJN7BI.js";
7
+ } from "./chunk-ZOTDJ4UR.js";
8
8
  import {
9
9
  CLI_SUBPROCESS_TIMEOUTS,
10
10
  createLogger,
@@ -1523,4 +1523,4 @@ export {
1523
1523
  setupCommand,
1524
1524
  setupCommandAsync
1525
1525
  };
1526
- //# sourceMappingURL=chunk-Z4OZ25VS.js.map
1526
+ //# sourceMappingURL=chunk-7RE6BBXJ.js.map
@@ -25,7 +25,7 @@ import {
25
25
  toolSuccessStructured,
26
26
  withProgressHeartbeat,
27
27
  wrapToolWithTimeout
28
- } from "./chunk-J245RJGW.js";
28
+ } from "./chunk-UXUA234N.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-ZOTDJ4UR.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-5SBKLQW6.js";
91
91
  import {
92
92
  ClaudeCliAdapter,
93
93
  CliDetectionCache,
@@ -96,7 +96,7 @@ import {
96
96
  getAvailableClis,
97
97
  sleep,
98
98
  withTimeout
99
- } from "./chunk-CW2Z773T.js";
99
+ } from "./chunk-UOXT5CZ7.js";
100
100
  import {
101
101
  AGENT_ROUTER_TIMEOUTS,
102
102
  API_TIMEOUTS,
@@ -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-NF65ZTZZ.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-Q7QKGUEP.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-DEESTIZL.js.map