nexus-agents 4.37.1 → 5.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.
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-XHW3KDPI.js";
10
+ } from "./chunk-KRIAQJ7L.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-D6TYDK4U.js.map
2162
+ //# sourceMappingURL=chunk-CAQ5KUPL.js.map
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var VERSION = true ? "5.0.0" : "dev";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-EYOJLWOA.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/version.ts"],"sourcesContent":["/**\n * nexus-agents - Version constant\n *\n * Injected at build time via tsup define from package.json.\n * Do NOT edit this value manually — it is replaced during build.\n */\n\ndeclare const __NEXUS_VERSION__: string;\n\nexport const VERSION: string = typeof __NEXUS_VERSION__ !== 'undefined' ? __NEXUS_VERSION__ : 'dev';\n"],"mappings":";AASO,IAAM,UAAkB,OAA2C,WAAoB;","names":[]}
1
+ {"version":3,"sources":["../src/version.ts"],"sourcesContent":["/**\n * nexus-agents - Version constant\n *\n * Injected at build time via tsup define from package.json.\n * Do NOT edit this value manually — it is replaced during build.\n */\n\ndeclare const __NEXUS_VERSION__: string;\n\nexport const VERSION: string = typeof __NEXUS_VERSION__ !== 'undefined' ? __NEXUS_VERSION__ : 'dev';\n"],"mappings":";AASO,IAAM,UAAkB,OAA2C,UAAoB;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-IWWPNL5K.js";
3
+ } from "./chunk-EYOJLWOA.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-ZSNWRX2B.js";
@@ -652,7 +652,21 @@ var XML_INJECTION_PATTERN = /<\/?(system|human|assistant|instructions|user|promp
652
652
  var INJECTION_DETECTORS = [
653
653
  { name: "system_prompt_override", pattern: /ignore (?:all )?previous (?:instructions|rules)/i },
654
654
  { name: "role_impersonation", pattern: /i(?:'m| am) the (?:repo |project )?(?:owner|admin)/i },
655
- { name: "hidden_instruction", pattern: /<!--[\s\S]*?(?:execute|delete|merge|apply)[\s\S]*?-->/i }
655
+ // The trigger must sit INSIDE one comment. `[\s\S]*?` used to cross an
656
+ // intervening `-->`, so any body with an opening comment, a trigger word
657
+ // anywhere in ordinary prose, and a later closing comment matched — a real
658
+ // PR body like "<!-- header -->\nsafe to merge after CI\n<!-- footer -->"
659
+ // was flagged (#5258). `(?:(?!-->)[\s\S])*?` is the standard tempered-dot
660
+ // form: consume any character that does not begin the terminator.
661
+ //
662
+ // KNOWN RESIDUAL: GitHub's default PR template contains
663
+ // "<!-- Please delete options that are not relevant -->", where the trigger
664
+ // genuinely is inside a single comment. Containment cannot help there; the
665
+ // trigger vocabulary overlaps ordinary English. Tracked in #5258.
666
+ {
667
+ name: "hidden_instruction",
668
+ pattern: /<!--(?:(?!-->)[\s\S])*?(?:execute|delete|merge|apply)(?:(?!-->)[\s\S])*?-->/i
669
+ }
656
670
  ];
657
671
  function sanitizeString(value) {
658
672
  const MAX_PASSES = 5;
@@ -2116,4 +2130,4 @@ export {
2116
2130
  VOTING_THRESHOLDS,
2117
2131
  ConsensusMetricsSchema
2118
2132
  };
2119
- //# sourceMappingURL=chunk-XHW3KDPI.js.map
2133
+ //# sourceMappingURL=chunk-KRIAQJ7L.js.map