nexus-agents 2.130.1 → 2.131.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 (118) hide show
  1. package/dist/{child-mcp-config-M7WR4XBB.js → child-mcp-config-WREL6AH5.js} +2 -2
  2. package/dist/{chunk-IZO437XR.js → chunk-2QFUW2SP.js} +7 -7
  3. package/dist/{chunk-ZM3S6PTN.js → chunk-3P252QNW.js} +3 -3
  4. package/dist/{chunk-6GGHPZB5.js → chunk-3TTMRJUQ.js} +4 -4
  5. package/dist/chunk-3TTMRJUQ.js.map +1 -0
  6. package/dist/{chunk-YHBVFTRG.js → chunk-4DJNJGIB.js} +2 -2
  7. package/dist/{chunk-VY5WEC2D.js → chunk-4KBG4ICZ.js} +4 -4
  8. package/dist/{chunk-VY5WEC2D.js.map → chunk-4KBG4ICZ.js.map} +1 -1
  9. package/dist/{chunk-ACARS7NG.js → chunk-4SNH5EMQ.js} +2 -2
  10. package/dist/{chunk-TA5HYM3H.js → chunk-BDERGLIX.js} +4 -4
  11. package/dist/{chunk-ZQ5K3PG4.js → chunk-DEL26PXS.js} +7 -7
  12. package/dist/{chunk-3UXCVSLJ.js → chunk-DI6SRBCT.js} +2 -2
  13. package/dist/{chunk-ULIAUMQD.js → chunk-DRYU676G.js} +2 -2
  14. package/dist/{chunk-YEK3ZHO6.js → chunk-FCPANF6R.js} +5 -5
  15. package/dist/{chunk-YXFQ3L56.js → chunk-GVBEF6LQ.js} +7 -7
  16. package/dist/{chunk-VTTPYENR.js → chunk-HM77WNJG.js} +2 -2
  17. package/dist/{chunk-FFJEERPZ.js → chunk-HS3K2B7Q.js} +2 -2
  18. package/dist/{chunk-OGOE3NW5.js → chunk-IPPWZNTH.js} +4 -4
  19. package/dist/{chunk-2Z4V5THE.js → chunk-JPBPQN4U.js} +2 -2
  20. package/dist/{chunk-A4MPCXZ7.js → chunk-JSYFPXID.js} +2 -2
  21. package/dist/{chunk-4A6MSCNJ.js → chunk-JTECUWWI.js} +2 -2
  22. package/dist/{chunk-5GQMP7QN.js → chunk-K3CES6CG.js} +3 -3
  23. package/dist/{chunk-5CADWTFO.js → chunk-KMNAZ5RC.js} +3 -3
  24. package/dist/{chunk-PM4MZHQK.js → chunk-NINNWQ42.js} +4 -4
  25. package/dist/{chunk-AVRE45DO.js → chunk-O563YLBH.js} +3 -3
  26. package/dist/{chunk-E4LAXVQE.js → chunk-PARI43LB.js} +2 -2
  27. package/dist/{chunk-FDY6YOFG.js → chunk-PGGSGUO4.js} +2 -2
  28. package/dist/{chunk-2GTW7RSB.js → chunk-PID22PMZ.js} +7 -7
  29. package/dist/{chunk-TGDWL7FG.js → chunk-RF7QCPNA.js} +2 -2
  30. package/dist/{chunk-6LNLTWHE.js → chunk-STIX3VTX.js} +5 -5
  31. package/dist/{chunk-3N7TSFKQ.js → chunk-TRTCKEHS.js} +2 -2
  32. package/dist/{chunk-CMRQR57K.js → chunk-UZWZ72X7.js} +3 -3
  33. package/dist/{chunk-ADIJIYFA.js → chunk-VZ3TTUWP.js} +2 -2
  34. package/dist/{chunk-7IMI64LW.js → chunk-WUJCVZIQ.js} +3 -3
  35. package/dist/{chunk-233PA3DF.js → chunk-ZLQCJRYK.js} +73 -42
  36. package/dist/{chunk-233PA3DF.js.map → chunk-ZLQCJRYK.js.map} +1 -1
  37. package/dist/{cli-circuit-breaker-XRXLO2V6.js → cli-circuit-breaker-WLYICYAZ.js} +4 -4
  38. package/dist/cli.js +39 -39
  39. package/dist/{composite-router-V36PBE7B.js → composite-router-Y6UCDBDE.js} +2 -2
  40. package/dist/{consensus-vote-3REPKLK4.js → consensus-vote-PEWNN4WK.js} +13 -13
  41. package/dist/{context-retriever-KCSSXI6X.js → context-retriever-GRMH7WSS.js} +8 -8
  42. package/dist/{doctor-deep-WID6FQ2F.js → doctor-deep-HXKGXUI4.js} +3 -3
  43. package/dist/{expert-bridge-F4UMZFWS.js → expert-bridge-BW55FRAH.js} +4 -4
  44. package/dist/factory-4EV6EDZF.js +21 -0
  45. package/dist/{factory-YVHULPTE.js → factory-YKXAMYW6.js} +5 -5
  46. package/dist/{improvement-review-AMVJW3SI.js → improvement-review-N2KSQSNW.js} +4 -4
  47. package/dist/index.d.ts +11 -0
  48. package/dist/index.js +28 -28
  49. package/dist/{init-opencode-3UPZL2UQ.js → init-opencode-6K6QNJWF.js} +5 -5
  50. package/dist/{issue-triage-KMDQN2UU.js → issue-triage-PYHGDQHK.js} +5 -5
  51. package/dist/{pr-reviewer-helpers-2WBM5GL7.js → pr-reviewer-helpers-GC6DEIBT.js} +4 -4
  52. package/dist/{registry-command-AXNA2H35.js → registry-command-7RRDCDAU.js} +2 -2
  53. package/dist/{repo-security-plan-P2KJ4FDT.js → repo-security-plan-5V43DEGA.js} +3 -3
  54. package/dist/{research-helpers-synthesize-UHWT62F2.js → research-helpers-synthesize-EDT6REQJ.js} +4 -4
  55. package/dist/{routing-memory-7RNR6A45.js → routing-memory-BQ6MUC5Y.js} +2 -2
  56. package/dist/{session-memory-2J2UBZJA.js → session-memory-MJHN5FXI.js} +3 -3
  57. package/dist/{setup-command-22IVI4T6.js → setup-command-YAQE2KRH.js} +11 -11
  58. package/dist/{setup-config-Y3S2L4RD.js → setup-config-OFC6SD7H.js} +3 -3
  59. package/dist/{setup-custom-api-AZMHKIHE.js → setup-custom-api-3JEENEKA.js} +3 -3
  60. package/dist/{tool-memory-MIZVB4ZT.js → tool-memory-NKBBVA7O.js} +5 -5
  61. package/dist/{unified-registry-V4AZ6UYA.js → unified-registry-XXAVF4AQ.js} +9 -9
  62. package/dist/{weather-report-WZKEEAC7.js → weather-report-7WC3RKE7.js} +2 -2
  63. package/package.json +1 -1
  64. package/dist/chunk-6GGHPZB5.js.map +0 -1
  65. package/dist/factory-B3SPS47O.js +0 -21
  66. /package/dist/{child-mcp-config-M7WR4XBB.js.map → child-mcp-config-WREL6AH5.js.map} +0 -0
  67. /package/dist/{chunk-IZO437XR.js.map → chunk-2QFUW2SP.js.map} +0 -0
  68. /package/dist/{chunk-ZM3S6PTN.js.map → chunk-3P252QNW.js.map} +0 -0
  69. /package/dist/{chunk-YHBVFTRG.js.map → chunk-4DJNJGIB.js.map} +0 -0
  70. /package/dist/{chunk-ACARS7NG.js.map → chunk-4SNH5EMQ.js.map} +0 -0
  71. /package/dist/{chunk-TA5HYM3H.js.map → chunk-BDERGLIX.js.map} +0 -0
  72. /package/dist/{chunk-ZQ5K3PG4.js.map → chunk-DEL26PXS.js.map} +0 -0
  73. /package/dist/{chunk-3UXCVSLJ.js.map → chunk-DI6SRBCT.js.map} +0 -0
  74. /package/dist/{chunk-ULIAUMQD.js.map → chunk-DRYU676G.js.map} +0 -0
  75. /package/dist/{chunk-YEK3ZHO6.js.map → chunk-FCPANF6R.js.map} +0 -0
  76. /package/dist/{chunk-YXFQ3L56.js.map → chunk-GVBEF6LQ.js.map} +0 -0
  77. /package/dist/{chunk-VTTPYENR.js.map → chunk-HM77WNJG.js.map} +0 -0
  78. /package/dist/{chunk-FFJEERPZ.js.map → chunk-HS3K2B7Q.js.map} +0 -0
  79. /package/dist/{chunk-OGOE3NW5.js.map → chunk-IPPWZNTH.js.map} +0 -0
  80. /package/dist/{chunk-2Z4V5THE.js.map → chunk-JPBPQN4U.js.map} +0 -0
  81. /package/dist/{chunk-A4MPCXZ7.js.map → chunk-JSYFPXID.js.map} +0 -0
  82. /package/dist/{chunk-4A6MSCNJ.js.map → chunk-JTECUWWI.js.map} +0 -0
  83. /package/dist/{chunk-5GQMP7QN.js.map → chunk-K3CES6CG.js.map} +0 -0
  84. /package/dist/{chunk-5CADWTFO.js.map → chunk-KMNAZ5RC.js.map} +0 -0
  85. /package/dist/{chunk-PM4MZHQK.js.map → chunk-NINNWQ42.js.map} +0 -0
  86. /package/dist/{chunk-AVRE45DO.js.map → chunk-O563YLBH.js.map} +0 -0
  87. /package/dist/{chunk-E4LAXVQE.js.map → chunk-PARI43LB.js.map} +0 -0
  88. /package/dist/{chunk-FDY6YOFG.js.map → chunk-PGGSGUO4.js.map} +0 -0
  89. /package/dist/{chunk-2GTW7RSB.js.map → chunk-PID22PMZ.js.map} +0 -0
  90. /package/dist/{chunk-TGDWL7FG.js.map → chunk-RF7QCPNA.js.map} +0 -0
  91. /package/dist/{chunk-6LNLTWHE.js.map → chunk-STIX3VTX.js.map} +0 -0
  92. /package/dist/{chunk-3N7TSFKQ.js.map → chunk-TRTCKEHS.js.map} +0 -0
  93. /package/dist/{chunk-CMRQR57K.js.map → chunk-UZWZ72X7.js.map} +0 -0
  94. /package/dist/{chunk-ADIJIYFA.js.map → chunk-VZ3TTUWP.js.map} +0 -0
  95. /package/dist/{chunk-7IMI64LW.js.map → chunk-WUJCVZIQ.js.map} +0 -0
  96. /package/dist/{cli-circuit-breaker-XRXLO2V6.js.map → cli-circuit-breaker-WLYICYAZ.js.map} +0 -0
  97. /package/dist/{composite-router-V36PBE7B.js.map → composite-router-Y6UCDBDE.js.map} +0 -0
  98. /package/dist/{consensus-vote-3REPKLK4.js.map → consensus-vote-PEWNN4WK.js.map} +0 -0
  99. /package/dist/{context-retriever-KCSSXI6X.js.map → context-retriever-GRMH7WSS.js.map} +0 -0
  100. /package/dist/{doctor-deep-WID6FQ2F.js.map → doctor-deep-HXKGXUI4.js.map} +0 -0
  101. /package/dist/{expert-bridge-F4UMZFWS.js.map → expert-bridge-BW55FRAH.js.map} +0 -0
  102. /package/dist/{factory-B3SPS47O.js.map → factory-4EV6EDZF.js.map} +0 -0
  103. /package/dist/{factory-YVHULPTE.js.map → factory-YKXAMYW6.js.map} +0 -0
  104. /package/dist/{improvement-review-AMVJW3SI.js.map → improvement-review-N2KSQSNW.js.map} +0 -0
  105. /package/dist/{init-opencode-3UPZL2UQ.js.map → init-opencode-6K6QNJWF.js.map} +0 -0
  106. /package/dist/{issue-triage-KMDQN2UU.js.map → issue-triage-PYHGDQHK.js.map} +0 -0
  107. /package/dist/{pr-reviewer-helpers-2WBM5GL7.js.map → pr-reviewer-helpers-GC6DEIBT.js.map} +0 -0
  108. /package/dist/{registry-command-AXNA2H35.js.map → registry-command-7RRDCDAU.js.map} +0 -0
  109. /package/dist/{repo-security-plan-P2KJ4FDT.js.map → repo-security-plan-5V43DEGA.js.map} +0 -0
  110. /package/dist/{research-helpers-synthesize-UHWT62F2.js.map → research-helpers-synthesize-EDT6REQJ.js.map} +0 -0
  111. /package/dist/{routing-memory-7RNR6A45.js.map → routing-memory-BQ6MUC5Y.js.map} +0 -0
  112. /package/dist/{session-memory-2J2UBZJA.js.map → session-memory-MJHN5FXI.js.map} +0 -0
  113. /package/dist/{setup-command-22IVI4T6.js.map → setup-command-YAQE2KRH.js.map} +0 -0
  114. /package/dist/{setup-config-Y3S2L4RD.js.map → setup-config-OFC6SD7H.js.map} +0 -0
  115. /package/dist/{setup-custom-api-AZMHKIHE.js.map → setup-custom-api-3JEENEKA.js.map} +0 -0
  116. /package/dist/{tool-memory-MIZVB4ZT.js.map → tool-memory-NKBBVA7O.js.map} +0 -0
  117. /package/dist/{unified-registry-V4AZ6UYA.js.map → unified-registry-XXAVF4AQ.js.map} +0 -0
  118. /package/dist/{weather-report-WZKEEAC7.js.map → weather-report-7WC3RKE7.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSecurityPlan
3
- } from "./chunk-3N7TSFKQ.js";
3
+ } from "./chunk-TRTCKEHS.js";
4
4
  import {
5
5
  CodebaseIndex,
6
6
  extractSymbolIndex,
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-WAYGXUSM.js";
14
14
  import {
15
15
  executeExpert
16
- } from "./chunk-YXFQ3L56.js";
16
+ } from "./chunk-GVBEF6LQ.js";
17
17
  import {
18
18
  JobStatusSchema,
19
19
  collectRealVotes,
@@ -31,24 +31,24 @@ import {
31
31
  toJobSummary,
32
32
  warnIfSimulatedOutsideTests,
33
33
  writeJobCancelled
34
- } from "./chunk-ZQ5K3PG4.js";
34
+ } from "./chunk-DEL26PXS.js";
35
35
  import {
36
36
  normalizeTopicToCanonical,
37
37
  synthesizeResearch
38
- } from "./chunk-7IMI64LW.js";
38
+ } from "./chunk-WUJCVZIQ.js";
39
39
  import {
40
40
  IssueTriage,
41
41
  createAuditTrail,
42
42
  createGraphAuditBridge,
43
43
  emitPipelinePolicyEvent
44
- } from "./chunk-6GGHPZB5.js";
44
+ } from "./chunk-3TTMRJUQ.js";
45
45
  import {
46
46
  resolveEnvMode,
47
47
  sanitizeInput
48
- } from "./chunk-3UXCVSLJ.js";
48
+ } from "./chunk-DI6SRBCT.js";
49
49
  import {
50
50
  withPrerequisite
51
- } from "./chunk-5CADWTFO.js";
51
+ } from "./chunk-KMNAZ5RC.js";
52
52
  import {
53
53
  NOOP_NOTIFIER,
54
54
  RateLimiter,
@@ -70,7 +70,7 @@ import {
70
70
  withAccessPolicy,
71
71
  withProgressHeartbeat,
72
72
  wrapToolWithTimeout
73
- } from "./chunk-ACARS7NG.js";
73
+ } from "./chunk-4SNH5EMQ.js";
74
74
  import {
75
75
  analyzeGitHubRepo
76
76
  } from "./chunk-HFOQKCD2.js";
@@ -101,29 +101,29 @@ import {
101
101
  parseRegistry,
102
102
  sourceExistsInRegistry,
103
103
  summarizeContextForPrompt
104
- } from "./chunk-YEK3ZHO6.js";
104
+ } from "./chunk-FCPANF6R.js";
105
105
  import {
106
106
  getTokenEnvVars,
107
107
  resolveToken
108
- } from "./chunk-YHBVFTRG.js";
108
+ } from "./chunk-4DJNJGIB.js";
109
109
  import {
110
110
  loadPapersRegistry,
111
111
  loadTechniquesRegistry
112
- } from "./chunk-VTTPYENR.js";
112
+ } from "./chunk-HM77WNJG.js";
113
113
  import {
114
114
  DEFAULT_RELEVANCE_CONFIG,
115
115
  MemoryImportance,
116
116
  calculateTextJaccardSimilarity,
117
117
  getToolMemory
118
- } from "./chunk-PM4MZHQK.js";
118
+ } from "./chunk-NINNWQ42.js";
119
119
  import {
120
120
  createSessionMemory
121
- } from "./chunk-FDY6YOFG.js";
121
+ } from "./chunk-PGGSGUO4.js";
122
122
  import {
123
123
  DEFAULT_TASK_TTL_MS,
124
124
  DEFAULT_TOOL_RATE_LIMITS,
125
125
  clampTaskTtl
126
- } from "./chunk-2GTW7RSB.js";
126
+ } from "./chunk-PID22PMZ.js";
127
127
  import {
128
128
  resolveInsideRoot
129
129
  } from "./chunk-NUBSJGQZ.js";
@@ -145,7 +145,7 @@ import {
145
145
  createEvent,
146
146
  getGlobalEventBus,
147
147
  getGlobalRegistry
148
- } from "./chunk-TA5HYM3H.js";
148
+ } from "./chunk-BDERGLIX.js";
149
149
  import {
150
150
  CliDetectionCache,
151
151
  asRecord,
@@ -153,19 +153,19 @@ import {
153
153
  getAvailableClis,
154
154
  sleep,
155
155
  withTimeout
156
- } from "./chunk-IZO437XR.js";
156
+ } from "./chunk-2QFUW2SP.js";
157
157
  import {
158
158
  DEFAULTS
159
- } from "./chunk-4A6MSCNJ.js";
159
+ } from "./chunk-JTECUWWI.js";
160
160
  import {
161
161
  getAvailabilityCache,
162
162
  getCliForModelId,
163
163
  resolveFallback
164
- } from "./chunk-2Z4V5THE.js";
164
+ } from "./chunk-JPBPQN4U.js";
165
165
  import {
166
166
  generateHyphenId,
167
167
  generateUUID
168
- } from "./chunk-E4LAXVQE.js";
168
+ } from "./chunk-PARI43LB.js";
169
169
  import {
170
170
  AGENT_ROUTER_TIMEOUTS,
171
171
  API_TIMEOUTS,
@@ -253,7 +253,7 @@ import {
253
253
  routingArmDisplaySlot,
254
254
  toExpertTaskAnalysisResult,
255
255
  withStep
256
- } from "./chunk-VY5WEC2D.js";
256
+ } from "./chunk-4KBG4ICZ.js";
257
257
  import {
258
258
  ensureLearningDir,
259
259
  getMetaOutcomesFile,
@@ -26281,7 +26281,7 @@ function execIdFields(executionId) {
26281
26281
  async function populateUnifiedContextOnState(state, options) {
26282
26282
  const taskCandidate = state["task"];
26283
26283
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
26284
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-KCSSXI6X.js");
26284
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-GRMH7WSS.js");
26285
26285
  const category = inferTaskCategory2(taskCandidate);
26286
26286
  const executionId = options?.executionId;
26287
26287
  const execFields = execIdFields(executionId);
@@ -27113,6 +27113,7 @@ function evaluatePipelinePolicy(options, context) {
27113
27113
  emitDurablePolicyEvents(options.auditTrail, context, violations, mode);
27114
27114
  logViolations(context, violations, mode);
27115
27115
  }
27116
+ emitDurablePolicyEvaluationSummary(options.auditTrail, context, violations.length, mode);
27116
27117
  const allowed = mode === "warn" || violations.length === 0;
27117
27118
  return { allowed, violations, mode };
27118
27119
  }
@@ -27143,10 +27144,28 @@ function emitDurablePolicyEvents(auditTrail, context, violations, mode) {
27143
27144
  violationRules: [v.ruleId],
27144
27145
  mode,
27145
27146
  ruleIds: [v.ruleId],
27146
- stageType: context.stageType
27147
+ stageType: context.stageType,
27148
+ // #3727: the existing per-violation records (the NUMERATOR detail). The
27149
+ // #3710 count-parity assertion scopes to this kind.
27150
+ recordKind: "violation"
27147
27151
  });
27148
27152
  }
27149
27153
  }
27154
+ function emitDurablePolicyEvaluationSummary(auditTrail, context, violationCount, mode) {
27155
+ if (auditTrail === void 0) return;
27156
+ emitPipelinePolicyEvent(auditTrail, {
27157
+ // Run-level verdict: warn always continues; otherwise allowed iff no violations.
27158
+ allowed: mode === "warn" || violationCount === 0,
27159
+ requiresApproval: false,
27160
+ inputTrustTier: "4",
27161
+ violationRules: [],
27162
+ mode,
27163
+ ruleIds: [],
27164
+ stageType: context.stageType,
27165
+ recordKind: "summary",
27166
+ violationCount
27167
+ });
27168
+ }
27150
27169
  function logViolations(context, violations, mode) {
27151
27170
  const summary = violations.map((v) => v.ruleId).join(", ");
27152
27171
  if (mode === "block") {
@@ -33662,7 +33681,10 @@ async function injectMemoryContextForOrchestrate(input, logger57) {
33662
33681
  mutable.context = { ...mutable.context ?? {}, priorMemorySummary: summary };
33663
33682
  }
33664
33683
  } catch (error) {
33665
- logger57.debug("orchestrate: context retrieval failed", { error: getErrorMessage(error) });
33684
+ logger57.warn("orchestrate: context retrieval failed; continuing with empty context", {
33685
+ category: inferTaskCategory(input.task),
33686
+ error: getErrorMessage(error)
33687
+ });
33666
33688
  }
33667
33689
  }
33668
33690
  function createOrchestrateHandler(deps) {
@@ -35747,17 +35769,19 @@ function sanitizeExpertSummary(summary) {
35747
35769
  }
35748
35770
  async function maybeFetchContextPrefix(task, logger57) {
35749
35771
  if (process.env["NEXUS_CONTEXT_RETRIEVER_INJECT"] !== "1") return void 0;
35772
+ const category = inferTaskCategory(task);
35750
35773
  try {
35751
35774
  const ctx = await getContextForTask({
35752
35775
  task,
35753
- category: inferTaskCategory(task),
35776
+ category,
35754
35777
  ...logger57 !== void 0 ? { logger: logger57 } : {}
35755
35778
  });
35756
35779
  const summary = summarizeContextForPrompt(ctx);
35757
35780
  return summary === "" ? void 0 : summary;
35758
35781
  } catch (error) {
35759
- logger57?.debug("execute_expert: context retrieval failed \u2014 running without prefix", {
35760
- error: error instanceof Error ? error.message : String(error)
35782
+ logger57?.warn("execute_expert: context retrieval failed; continuing without prefix", {
35783
+ category,
35784
+ error: getErrorMessage(error)
35761
35785
  });
35762
35786
  return void 0;
35763
35787
  }
@@ -41180,7 +41204,7 @@ async function tryIssueTriage(task) {
41180
41204
  try {
41181
41205
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
41182
41206
  if (issueMatch === null) return null;
41183
- const { createIssueTriage } = await import("./issue-triage-KMDQN2UU.js");
41207
+ const { createIssueTriage } = await import("./issue-triage-PYHGDQHK.js");
41184
41208
  const triage = createIssueTriage();
41185
41209
  const owner = issueMatch[1] ?? "";
41186
41210
  const num = issueMatch[2] ?? "";
@@ -41208,7 +41232,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
41208
41232
  ]);
41209
41233
  async function classifyWithLLM(task) {
41210
41234
  try {
41211
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-F4UMZFWS.js");
41235
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-BW55FRAH.js");
41212
41236
  const prompt = [
41213
41237
  "Classify this task into exactly one pipeline template.",
41214
41238
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -41537,6 +41561,16 @@ function mapTrust(e) {
41537
41561
  }
41538
41562
  };
41539
41563
  }
41564
+ function pipelinePolicyMetadata(e) {
41565
+ return {
41566
+ ...e.actionType !== void 0 ? { actionType: e.actionType } : {},
41567
+ ...e.mode !== void 0 ? { mode: e.mode } : {},
41568
+ ...e.ruleIds !== void 0 ? { ruleIds: e.ruleIds } : {},
41569
+ ...e.stageType !== void 0 ? { stageType: e.stageType } : {},
41570
+ ...e.recordKind !== void 0 ? { recordKind: e.recordKind } : {},
41571
+ ...e.violationCount !== void 0 ? { violationCount: e.violationCount } : {}
41572
+ };
41573
+ }
41540
41574
  function mapPolicyGate(e) {
41541
41575
  const outcome = e.allowed ? "success" : "denied";
41542
41576
  return {
@@ -41549,13 +41583,10 @@ function mapPolicyGate(e) {
41549
41583
  policyDecision: e.allowed ? "allow" : "deny",
41550
41584
  ...e.violationRules.length > 0 ? { violationType: e.violationRules.join(",") } : {},
41551
41585
  metadata: {
41552
- ...e.actionType !== void 0 ? { actionType: e.actionType } : {},
41553
41586
  requiresApproval: e.requiresApproval,
41554
41587
  inputTrustTier: e.inputTrustTier,
41555
41588
  violationRules: e.violationRules,
41556
- ...e.mode !== void 0 ? { mode: e.mode } : {},
41557
- ...e.ruleIds !== void 0 ? { ruleIds: e.ruleIds } : {},
41558
- ...e.stageType !== void 0 ? { stageType: e.stageType } : {}
41589
+ ...pipelinePolicyMetadata(e)
41559
41590
  }
41560
41591
  };
41561
41592
  }
@@ -42967,7 +42998,7 @@ var memoryInitPromise = null;
42967
42998
  async function initPipelineMemory() {
42968
42999
  if (cachedMemory !== null) return cachedMemory;
42969
43000
  try {
42970
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-2J2UBZJA.js");
43001
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-MJHN5FXI.js");
42971
43002
  const { getLearningDir } = await import("./learning-persistence-C737Q6EP.js");
42972
43003
  const mem = createSessionMemory2(getLearningDir());
42973
43004
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -43029,7 +43060,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
43029
43060
  callRecord(routingMemoryCache);
43030
43061
  return;
43031
43062
  }
43032
- routingMemoryInitPromise ??= import("./routing-memory-7RNR6A45.js").then(({ createRoutingMemory }) => {
43063
+ routingMemoryInitPromise ??= import("./routing-memory-BQ6MUC5Y.js").then(({ createRoutingMemory }) => {
43033
43064
  routingMemoryCache ??= createRoutingMemory();
43034
43065
  return routingMemoryCache;
43035
43066
  }).catch((error) => {
@@ -43063,7 +43094,7 @@ ${text}` : "";
43063
43094
  }
43064
43095
  async function getWeatherContext() {
43065
43096
  try {
43066
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-WZKEEAC7.js");
43097
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-7WC3RKE7.js");
43067
43098
  const report = generateWeatherReport2({ includeAdaptive: true });
43068
43099
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
43069
43100
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -43081,7 +43112,7 @@ ${lines}
43081
43112
  }
43082
43113
  async function getMemoryContext(task) {
43083
43114
  try {
43084
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-2J2UBZJA.js");
43115
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-MJHN5FXI.js");
43085
43116
  const { getLearningDir } = await import("./learning-persistence-C737Q6EP.js");
43086
43117
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
43087
43118
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -43193,7 +43224,7 @@ ${contextBlock}`;
43193
43224
  const strategy = config.votingStrategy ?? "higher_order";
43194
43225
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43195
43226
  try {
43196
- const { executeVoting } = await import("./consensus-vote-3REPKLK4.js");
43227
+ const { executeVoting } = await import("./consensus-vote-PEWNN4WK.js");
43197
43228
  const votingResult = await executeVoting(
43198
43229
  {
43199
43230
  proposal: buildVoteProposal(plan, research),
@@ -43630,7 +43661,7 @@ async function searchCodebaseForTask(task) {
43630
43661
  }
43631
43662
  async function queryResearchRegistry(task) {
43632
43663
  try {
43633
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-UHWT62F2.js");
43664
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-EDT6REQJ.js");
43634
43665
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
43635
43666
  if (topic === void 0) return null;
43636
43667
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -43701,7 +43732,7 @@ function createScanStageWrapper() {
43701
43732
  try {
43702
43733
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
43703
43734
  if (slug !== void 0) {
43704
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-P2KJ4FDT.js");
43735
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-5V43DEGA.js");
43705
43736
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
43706
43737
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
43707
43738
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -45752,7 +45783,7 @@ var GitHubTaskTracker = class {
45752
45783
  cachedProvider = null;
45753
45784
  async getProvider() {
45754
45785
  if (this.cachedProvider !== null) return this.cachedProvider;
45755
- const { createScmProvider } = await import("./factory-YVHULPTE.js");
45786
+ const { createScmProvider } = await import("./factory-YKXAMYW6.js");
45756
45787
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
45757
45788
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
45758
45789
  this.cachedProvider = result.value;
@@ -46524,7 +46555,7 @@ async function probeSource(source, includeModelIds) {
46524
46555
  }
46525
46556
  }
46526
46557
  async function defaultSources(includeOpenRouter) {
46527
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-B3SPS47O.js");
46558
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-4EV6EDZF.js");
46528
46559
  const adapters = createAllAdapters2();
46529
46560
  return buildDefaultModelSources(adapters, { includeOpenRouter });
46530
46561
  }
@@ -50543,4 +50574,4 @@ export {
50543
50574
  shutdownFeedbackSubscriber,
50544
50575
  createEventBusBridge
50545
50576
  };
50546
- //# sourceMappingURL=chunk-233PA3DF.js.map
50577
+ //# sourceMappingURL=chunk-ZLQCJRYK.js.map