nexus-agents 3.9.4 → 3.11.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.
@@ -12,7 +12,7 @@ import {
12
12
  gateWithReputation,
13
13
  resolveReputationGatingMode,
14
14
  sanitizeInput
15
- } from "./chunk-XMNMIMR6.js";
15
+ } from "./chunk-X2HMEG5F.js";
16
16
  import {
17
17
  createLogger,
18
18
  getTimeProvider
@@ -291,4 +291,4 @@ export {
291
291
  formatReviewComment,
292
292
  createFailedReview
293
293
  };
294
- //# sourceMappingURL=chunk-JPMXFYKW.js.map
294
+ //# sourceMappingURL=chunk-3UEZBTLV.js.map
@@ -22,7 +22,7 @@ import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  DEFAULT_TOOL_RATE_LIMITS,
24
24
  clampTaskTtl
25
- } from "./chunk-KBX4JSBE.js";
25
+ } from "./chunk-SCI6FKPM.js";
26
26
  import {
27
27
  executeExpert
28
28
  } from "./chunk-KPYPJGSD.js";
@@ -56,11 +56,11 @@ import {
56
56
  } from "./chunk-JBSL2HKV.js";
57
57
  import {
58
58
  IssueTriage
59
- } from "./chunk-ABV3XE7D.js";
59
+ } from "./chunk-TJAMRU4T.js";
60
60
  import {
61
61
  resolveEnvMode,
62
62
  sanitizeInput
63
- } from "./chunk-XMNMIMR6.js";
63
+ } from "./chunk-X2HMEG5F.js";
64
64
  import {
65
65
  withPrerequisite
66
66
  } from "./chunk-JJZF37X2.js";
@@ -43973,7 +43973,7 @@ function classifyTask(task) {
43973
43973
  const scores = calculateTypeScores(lower);
43974
43974
  const pipelineType = selectBestType(scores);
43975
43975
  const complexity = estimateComplexity2(lower);
43976
- const maxScore = Math.max(...Object.values(scores), 1);
43976
+ const maxScore = Math.max(...Object.values(scores));
43977
43977
  const keywords = extractMatchedKeywords(lower, pipelineType);
43978
43978
  return {
43979
43979
  pipelineType,
@@ -44022,11 +44022,14 @@ var TRIAGE_CATEGORY_MAP = {
44022
44022
  security: "audit",
44023
44023
  research: "research"
44024
44024
  };
44025
+ function llmClassificationEnabled() {
44026
+ return process.env["NEXUS_LLM_CLASSIFICATION"] === "1";
44027
+ }
44025
44028
  async function tryIssueTriage(task) {
44026
44029
  try {
44027
44030
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
44028
44031
  if (issueMatch === null) return null;
44029
- const { createIssueTriage } = await import("./issue-triage-EBQFRWOQ.js");
44032
+ const { createIssueTriage } = await import("./issue-triage-6STMHG7L.js");
44030
44033
  const triage = createIssueTriage();
44031
44034
  const owner = issueMatch[1] ?? "";
44032
44035
  const num = issueMatch[2] ?? "";
@@ -44100,7 +44103,7 @@ async function runAdaptiveOrchestrator(task, options) {
44100
44103
  enriched: enriched.pipelineType
44101
44104
  });
44102
44105
  classification = enriched;
44103
- } else {
44106
+ } else if (llmClassificationEnabled()) {
44104
44107
  const llmResult = await classifyWithLLM(cleanTask);
44105
44108
  if (llmResult !== null) {
44106
44109
  logger39.info("Classification refined via LLM", {
@@ -54456,4 +54459,4 @@ export {
54456
54459
  shutdownFeedbackSubscriber,
54457
54460
  createEventBusBridge
54458
54461
  };
54459
- //# sourceMappingURL=chunk-XBEED5SG.js.map
54462
+ //# sourceMappingURL=chunk-7H2AKJVR.js.map