nexus-agents 2.103.0 → 2.103.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 (113) hide show
  1. package/dist/{child-mcp-config-IPPKT47T.js → child-mcp-config-I7VKSEW2.js} +2 -2
  2. package/dist/{chunk-6XWIR6JJ.js → chunk-3GUCNISD.js} +2 -2
  3. package/dist/{chunk-Q5DDXJWJ.js → chunk-3UOFGQ2K.js} +3 -3
  4. package/dist/{chunk-TJVGB4OE.js → chunk-3VMTQCEH.js} +2 -2
  5. package/dist/{chunk-CNQZ6BJE.js → chunk-4PWBF3NC.js} +2 -2
  6. package/dist/{chunk-H6QEJT56.js → chunk-4VTJA7FE.js} +2 -2
  7. package/dist/{chunk-4FIY62UC.js → chunk-5L5REFGE.js} +3 -3
  8. package/dist/{chunk-RJ2FCK5T.js → chunk-5ZK25ZWD.js} +4 -4
  9. package/dist/{chunk-BUZ62ZOK.js → chunk-6E6MOJYY.js} +2 -2
  10. package/dist/{chunk-YMBG7LCM.js → chunk-7P3FALEV.js} +2 -2
  11. package/dist/{chunk-3TOHOAB2.js → chunk-CB66XOZQ.js} +31 -31
  12. package/dist/{chunk-S5LL7Y77.js → chunk-DAOUGMA5.js} +4 -4
  13. package/dist/{chunk-TNX3SEBY.js → chunk-FXPDPPYR.js} +2 -2
  14. package/dist/{chunk-K4H5LCSU.js → chunk-G2FTEZDY.js} +50 -6
  15. package/dist/chunk-G2FTEZDY.js.map +1 -0
  16. package/dist/{chunk-Q732LOXE.js → chunk-GA2ZZERU.js} +3 -2
  17. package/dist/{chunk-VOGIG42V.js → chunk-KSMYBMM6.js} +2 -2
  18. package/dist/{chunk-FSXN5GGJ.js → chunk-L32OQDWK.js} +3 -3
  19. package/dist/{chunk-IEFH53RH.js → chunk-MHVGM6NQ.js} +2 -2
  20. package/dist/{chunk-M6QD4H7S.js → chunk-MMZ5IKQ3.js} +2 -2
  21. package/dist/{chunk-ANHBUWOI.js → chunk-N35KBA5P.js} +3 -3
  22. package/dist/{chunk-FPY53SSC.js → chunk-OMFKL3FZ.js} +7 -7
  23. package/dist/{chunk-QSTVUC2C.js → chunk-QQNM4YAL.js} +2 -2
  24. package/dist/{chunk-F6X6UH6D.js → chunk-RDNEALPS.js} +7 -7
  25. package/dist/{chunk-FESEHMBN.js → chunk-RWSRBLSA.js} +2 -2
  26. package/dist/{chunk-TY2M7UQD.js → chunk-TZ2YMIQV.js} +9 -9
  27. package/dist/{chunk-AO2SCUPO.js → chunk-U3GOPZIA.js} +2 -2
  28. package/dist/{chunk-STLETCQJ.js → chunk-UB5S4II3.js} +2 -2
  29. package/dist/{chunk-QA5IABQ4.js → chunk-ULKXWKNZ.js} +5 -5
  30. package/dist/{chunk-NO66DOR2.js → chunk-VPPZ45IZ.js} +2 -2
  31. package/dist/{chunk-VU252OUC.js → chunk-WORMJT4K.js} +3 -3
  32. package/dist/{chunk-3VSLKTD6.js → chunk-XISM6YBY.js} +4 -4
  33. package/dist/{chunk-TQLSHKPJ.js → chunk-Y5D6P5JV.js} +3 -3
  34. package/dist/{cli-circuit-breaker-KSNJ2KWP.js → cli-circuit-breaker-M4LZW4RB.js} +4 -4
  35. package/dist/cli.js +38 -38
  36. package/dist/{composite-router-5BO2RU4R.js → composite-router-CYGVTMW6.js} +2 -2
  37. package/dist/{consensus-vote-4W2MOXL2.js → consensus-vote-2ODNLCSS.js} +12 -12
  38. package/dist/{context-retriever-EFEWHU3Z.js → context-retriever-VZ5HKPWX.js} +6 -6
  39. package/dist/{doctor-deep-AWSHPMB3.js → doctor-deep-A3FHG7A7.js} +3 -3
  40. package/dist/{expert-bridge-P4NWKKOI.js → expert-bridge-GNHXRQEZ.js} +4 -4
  41. package/dist/{factory-BSWATZK3.js → factory-6PU24HFM.js} +5 -5
  42. package/dist/{factory-OHAMFHSF.js → factory-7ENY4JOE.js} +5 -5
  43. package/dist/{improvement-review-5ZWAZUB6.js → improvement-review-6377XBPE.js} +4 -4
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +27 -27
  46. package/dist/{init-opencode-7O6XN2QB.js → init-opencode-6UJPLOHE.js} +5 -5
  47. package/dist/{issue-triage-MBNGFPVS.js → issue-triage-YOFAEUGC.js} +5 -5
  48. package/dist/{pr-reviewer-helpers-L5KOZXJO.js → pr-reviewer-helpers-MK2ZFEEI.js} +4 -4
  49. package/dist/{registry-command-F565N7EI.js → registry-command-JLAE6RAW.js} +2 -2
  50. package/dist/{repo-security-plan-JRL6NQKO.js → repo-security-plan-IGX7AS5P.js} +3 -3
  51. package/dist/{research-helpers-synthesize-KJ7H75QA.js → research-helpers-synthesize-B5KL3S4T.js} +3 -3
  52. package/dist/{routing-memory-YECWDSDV.js → routing-memory-7RKYQEHM.js} +2 -2
  53. package/dist/{session-memory-AG4IM3JY.js → session-memory-S4SBPBP4.js} +3 -3
  54. package/dist/{setup-command-WAUXPMOU.js → setup-command-KMGJM4V4.js} +10 -10
  55. package/dist/{setup-config-2GDDU5CV.js → setup-config-2DS2V65J.js} +3 -3
  56. package/dist/{setup-custom-api-6N2BTUGY.js → setup-custom-api-JVYDKH6Y.js} +4 -4
  57. package/dist/{tool-memory-3ZWQVJX3.js → tool-memory-4LVVNSVD.js} +5 -5
  58. package/dist/{weather-report-WAOVQRGI.js → weather-report-FUVJJPE4.js} +2 -2
  59. package/package.json +1 -1
  60. package/dist/chunk-K4H5LCSU.js.map +0 -1
  61. /package/dist/{child-mcp-config-IPPKT47T.js.map → child-mcp-config-I7VKSEW2.js.map} +0 -0
  62. /package/dist/{chunk-6XWIR6JJ.js.map → chunk-3GUCNISD.js.map} +0 -0
  63. /package/dist/{chunk-Q5DDXJWJ.js.map → chunk-3UOFGQ2K.js.map} +0 -0
  64. /package/dist/{chunk-TJVGB4OE.js.map → chunk-3VMTQCEH.js.map} +0 -0
  65. /package/dist/{chunk-CNQZ6BJE.js.map → chunk-4PWBF3NC.js.map} +0 -0
  66. /package/dist/{chunk-H6QEJT56.js.map → chunk-4VTJA7FE.js.map} +0 -0
  67. /package/dist/{chunk-4FIY62UC.js.map → chunk-5L5REFGE.js.map} +0 -0
  68. /package/dist/{chunk-RJ2FCK5T.js.map → chunk-5ZK25ZWD.js.map} +0 -0
  69. /package/dist/{chunk-BUZ62ZOK.js.map → chunk-6E6MOJYY.js.map} +0 -0
  70. /package/dist/{chunk-YMBG7LCM.js.map → chunk-7P3FALEV.js.map} +0 -0
  71. /package/dist/{chunk-3TOHOAB2.js.map → chunk-CB66XOZQ.js.map} +0 -0
  72. /package/dist/{chunk-S5LL7Y77.js.map → chunk-DAOUGMA5.js.map} +0 -0
  73. /package/dist/{chunk-TNX3SEBY.js.map → chunk-FXPDPPYR.js.map} +0 -0
  74. /package/dist/{chunk-Q732LOXE.js.map → chunk-GA2ZZERU.js.map} +0 -0
  75. /package/dist/{chunk-VOGIG42V.js.map → chunk-KSMYBMM6.js.map} +0 -0
  76. /package/dist/{chunk-FSXN5GGJ.js.map → chunk-L32OQDWK.js.map} +0 -0
  77. /package/dist/{chunk-IEFH53RH.js.map → chunk-MHVGM6NQ.js.map} +0 -0
  78. /package/dist/{chunk-M6QD4H7S.js.map → chunk-MMZ5IKQ3.js.map} +0 -0
  79. /package/dist/{chunk-ANHBUWOI.js.map → chunk-N35KBA5P.js.map} +0 -0
  80. /package/dist/{chunk-FPY53SSC.js.map → chunk-OMFKL3FZ.js.map} +0 -0
  81. /package/dist/{chunk-QSTVUC2C.js.map → chunk-QQNM4YAL.js.map} +0 -0
  82. /package/dist/{chunk-F6X6UH6D.js.map → chunk-RDNEALPS.js.map} +0 -0
  83. /package/dist/{chunk-FESEHMBN.js.map → chunk-RWSRBLSA.js.map} +0 -0
  84. /package/dist/{chunk-TY2M7UQD.js.map → chunk-TZ2YMIQV.js.map} +0 -0
  85. /package/dist/{chunk-AO2SCUPO.js.map → chunk-U3GOPZIA.js.map} +0 -0
  86. /package/dist/{chunk-STLETCQJ.js.map → chunk-UB5S4II3.js.map} +0 -0
  87. /package/dist/{chunk-QA5IABQ4.js.map → chunk-ULKXWKNZ.js.map} +0 -0
  88. /package/dist/{chunk-NO66DOR2.js.map → chunk-VPPZ45IZ.js.map} +0 -0
  89. /package/dist/{chunk-VU252OUC.js.map → chunk-WORMJT4K.js.map} +0 -0
  90. /package/dist/{chunk-3VSLKTD6.js.map → chunk-XISM6YBY.js.map} +0 -0
  91. /package/dist/{chunk-TQLSHKPJ.js.map → chunk-Y5D6P5JV.js.map} +0 -0
  92. /package/dist/{cli-circuit-breaker-KSNJ2KWP.js.map → cli-circuit-breaker-M4LZW4RB.js.map} +0 -0
  93. /package/dist/{composite-router-5BO2RU4R.js.map → composite-router-CYGVTMW6.js.map} +0 -0
  94. /package/dist/{consensus-vote-4W2MOXL2.js.map → consensus-vote-2ODNLCSS.js.map} +0 -0
  95. /package/dist/{context-retriever-EFEWHU3Z.js.map → context-retriever-VZ5HKPWX.js.map} +0 -0
  96. /package/dist/{doctor-deep-AWSHPMB3.js.map → doctor-deep-A3FHG7A7.js.map} +0 -0
  97. /package/dist/{expert-bridge-P4NWKKOI.js.map → expert-bridge-GNHXRQEZ.js.map} +0 -0
  98. /package/dist/{factory-BSWATZK3.js.map → factory-6PU24HFM.js.map} +0 -0
  99. /package/dist/{factory-OHAMFHSF.js.map → factory-7ENY4JOE.js.map} +0 -0
  100. /package/dist/{improvement-review-5ZWAZUB6.js.map → improvement-review-6377XBPE.js.map} +0 -0
  101. /package/dist/{init-opencode-7O6XN2QB.js.map → init-opencode-6UJPLOHE.js.map} +0 -0
  102. /package/dist/{issue-triage-MBNGFPVS.js.map → issue-triage-YOFAEUGC.js.map} +0 -0
  103. /package/dist/{pr-reviewer-helpers-L5KOZXJO.js.map → pr-reviewer-helpers-MK2ZFEEI.js.map} +0 -0
  104. /package/dist/{registry-command-F565N7EI.js.map → registry-command-JLAE6RAW.js.map} +0 -0
  105. /package/dist/{repo-security-plan-JRL6NQKO.js.map → repo-security-plan-IGX7AS5P.js.map} +0 -0
  106. /package/dist/{research-helpers-synthesize-KJ7H75QA.js.map → research-helpers-synthesize-B5KL3S4T.js.map} +0 -0
  107. /package/dist/{routing-memory-YECWDSDV.js.map → routing-memory-7RKYQEHM.js.map} +0 -0
  108. /package/dist/{session-memory-AG4IM3JY.js.map → session-memory-S4SBPBP4.js.map} +0 -0
  109. /package/dist/{setup-command-WAUXPMOU.js.map → setup-command-KMGJM4V4.js.map} +0 -0
  110. /package/dist/{setup-config-2GDDU5CV.js.map → setup-config-2DS2V65J.js.map} +0 -0
  111. /package/dist/{setup-custom-api-6N2BTUGY.js.map → setup-custom-api-JVYDKH6Y.js.map} +0 -0
  112. /package/dist/{tool-memory-3ZWQVJX3.js.map → tool-memory-4LVVNSVD.js.map} +0 -0
  113. /package/dist/{weather-report-WAOVQRGI.js.map → weather-report-FUVJJPE4.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-Q732LOXE.js";
3
+ } from "./chunk-GA2ZZERU.js";
4
4
  import "./chunk-CH7QIDHQ.js";
5
5
  import "./chunk-PR4QN5HX.js";
6
6
 
@@ -59,4 +59,4 @@ export {
59
59
  generateMcpConfig,
60
60
  getDefaultAllowedTools
61
61
  };
62
- //# sourceMappingURL=child-mcp-config-IPPKT47T.js.map
62
+ //# sourceMappingURL=child-mcp-config-I7VKSEW2.js.map
@@ -3,7 +3,7 @@ import {
3
3
  MODEL_IDS,
4
4
  getTimeProvider,
5
5
  resolveModelIdentitySync
6
- } from "./chunk-Q732LOXE.js";
6
+ } from "./chunk-GA2ZZERU.js";
7
7
 
8
8
  // src/config/model-availability.ts
9
9
  var DEFAULT_TTL_MS = 6e4;
@@ -150,4 +150,4 @@ export {
150
150
  resetAvailabilityCache,
151
151
  filterAvailableModels
152
152
  };
153
- //# sourceMappingURL=chunk-6XWIR6JJ.js.map
153
+ //# sourceMappingURL=chunk-3GUCNISD.js.map
@@ -2,14 +2,14 @@ import {
2
2
  CircuitBreakerRegistry,
3
3
  CircuitError,
4
4
  mapCliErrorToCategory
5
- } from "./chunk-CNQZ6BJE.js";
5
+ } from "./chunk-4PWBF3NC.js";
6
6
  import {
7
7
  createLogger,
8
8
  err,
9
9
  getFallbackChainForCategory,
10
10
  getTimeProvider,
11
11
  ok
12
- } from "./chunk-Q732LOXE.js";
12
+ } from "./chunk-GA2ZZERU.js";
13
13
 
14
14
  // src/cli-adapters/cli-circuit-breaker.ts
15
15
  var CATEGORY_TO_FALLBACK = {
@@ -152,4 +152,4 @@ export {
152
152
  CliCircuitBreakerIntegration,
153
153
  createCliCircuitBreakerIntegration
154
154
  };
155
- //# sourceMappingURL=chunk-Q5DDXJWJ.js.map
155
+ //# sourceMappingURL=chunk-3UOFGQ2K.js.map
@@ -3,7 +3,7 @@ import {
3
3
  err,
4
4
  getErrorMessage,
5
5
  ok
6
- } from "./chunk-Q732LOXE.js";
6
+ } from "./chunk-GA2ZZERU.js";
7
7
 
8
8
  // src/scm/types.ts
9
9
  var ScmError = class extends Error {
@@ -258,4 +258,4 @@ export {
258
258
  ScmError,
259
259
  GitHubProvider
260
260
  };
261
- //# sourceMappingURL=chunk-TJVGB4OE.js.map
261
+ //# sourceMappingURL=chunk-3VMTQCEH.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getErrorMessage,
6
6
  getTimeProvider,
7
7
  ok
8
- } from "./chunk-Q732LOXE.js";
8
+ } from "./chunk-GA2ZZERU.js";
9
9
 
10
10
  // src/cli-adapters/circuit-breaker-types.ts
11
11
  var CircuitErrorCode = {
@@ -354,4 +354,4 @@ export {
354
354
  CircuitBreakerRegistry,
355
355
  mapCliErrorToCategory
356
356
  };
357
- //# sourceMappingURL=chunk-CNQZ6BJE.js.map
357
+ //# sourceMappingURL=chunk-4PWBF3NC.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-Q732LOXE.js";
5
+ } from "./chunk-GA2ZZERU.js";
6
6
 
7
7
  // src/cli/doctor-deep.ts
8
8
  var CLI_NAMES = ["claude", "gemini", "codex", "opencode"];
@@ -106,4 +106,4 @@ export {
106
106
  runDeepDiagnostics,
107
107
  formatDeepDiagnostics
108
108
  };
109
- //# sourceMappingURL=chunk-H6QEJT56.js.map
109
+ //# sourceMappingURL=chunk-4VTJA7FE.js.map
@@ -6,7 +6,7 @@ import {
6
6
  toolStructuredError,
7
7
  toolSuccessStructured,
8
8
  wrapToolWithTimeout
9
- } from "./chunk-FESEHMBN.js";
9
+ } from "./chunk-RWSRBLSA.js";
10
10
  import {
11
11
  createLogger,
12
12
  formatZodError,
@@ -14,7 +14,7 @@ import {
14
14
  getOutcomeStore,
15
15
  getPipelineEventBus,
16
16
  getTimeProvider
17
- } from "./chunk-Q732LOXE.js";
17
+ } from "./chunk-GA2ZZERU.js";
18
18
  import {
19
19
  getNexusDataDir
20
20
  } from "./chunk-CH7QIDHQ.js";
@@ -1092,4 +1092,4 @@ export {
1092
1092
  runImprovementReview,
1093
1093
  registerImprovementReviewTool
1094
1094
  };
1095
- //# sourceMappingURL=chunk-4FIY62UC.js.map
1095
+ //# sourceMappingURL=chunk-5L5REFGE.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveToken
3
- } from "./chunk-YMBG7LCM.js";
3
+ } from "./chunk-7P3FALEV.js";
4
4
  import {
5
5
  GitHubProvider,
6
6
  ScmError
7
- } from "./chunk-TJVGB4OE.js";
7
+ } from "./chunk-3VMTQCEH.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-Q732LOXE.js";
11
+ } from "./chunk-GA2ZZERU.js";
12
12
 
13
13
  // src/scm/factory.ts
14
14
  async function createScmProvider(config) {
@@ -41,4 +41,4 @@ export {
41
41
  createScmProvider,
42
42
  createGitHubProvider
43
43
  };
44
- //# sourceMappingURL=chunk-RJ2FCK5T.js.map
44
+ //# sourceMappingURL=chunk-5ZK25ZWD.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createLogger,
6
6
  getTimeProvider
7
- } from "./chunk-Q732LOXE.js";
7
+ } from "./chunk-GA2ZZERU.js";
8
8
 
9
9
  // src/mcp/tools/scanner-registry-fetcher.ts
10
10
  import { z } from "zod";
@@ -721,4 +721,4 @@ export {
721
721
  generateSecurityPlan,
722
722
  buildPlanFromAnalysis
723
723
  };
724
- //# sourceMappingURL=chunk-BUZ62ZOK.js.map
724
+ //# sourceMappingURL=chunk-6E6MOJYY.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createLogger,
3
3
  err,
4
4
  ok
5
- } from "./chunk-Q732LOXE.js";
5
+ } from "./chunk-GA2ZZERU.js";
6
6
 
7
7
  // src/scm/token-resolver.ts
8
8
  import { execFile } from "child_process";
@@ -87,4 +87,4 @@ export {
87
87
  hasToken,
88
88
  getTokenEnvVars
89
89
  };
90
- //# sourceMappingURL=chunk-YMBG7LCM.js.map
90
+ //# sourceMappingURL=chunk-7P3FALEV.js.map
@@ -6,10 +6,10 @@ import {
6
6
  import {
7
7
  getTokenEnvVars,
8
8
  resolveToken
9
- } from "./chunk-YMBG7LCM.js";
9
+ } from "./chunk-7P3FALEV.js";
10
10
  import {
11
11
  executeExpert
12
- } from "./chunk-F6X6UH6D.js";
12
+ } from "./chunk-RDNEALPS.js";
13
13
  import {
14
14
  EventTopics,
15
15
  JobStatusSchema,
@@ -30,7 +30,7 @@ import {
30
30
  writeJobComplete,
31
31
  writeJobFailed,
32
32
  writeJobPending
33
- } from "./chunk-TY2M7UQD.js";
33
+ } from "./chunk-TZ2YMIQV.js";
34
34
  import {
35
35
  REGISTRY_PATH,
36
36
  getProjectRoot,
@@ -39,19 +39,19 @@ import {
39
39
  normalizeTopicToCanonical,
40
40
  savePapersRegistry,
41
41
  synthesizeResearch
42
- } from "./chunk-STLETCQJ.js";
42
+ } from "./chunk-UB5S4II3.js";
43
43
  import {
44
44
  IssueTriage,
45
45
  createAuditTrail,
46
46
  createGraphAuditBridge
47
- } from "./chunk-3VSLKTD6.js";
47
+ } from "./chunk-XISM6YBY.js";
48
48
  import {
49
49
  resolveEnvMode,
50
50
  sanitizeInput
51
- } from "./chunk-NO66DOR2.js";
51
+ } from "./chunk-VPPZ45IZ.js";
52
52
  import {
53
53
  withPrerequisite
54
- } from "./chunk-4FIY62UC.js";
54
+ } from "./chunk-5L5REFGE.js";
55
55
  import {
56
56
  NOOP_NOTIFIER,
57
57
  RateLimiter,
@@ -71,10 +71,10 @@ import {
71
71
  withAccessPolicy,
72
72
  withProgressHeartbeat,
73
73
  wrapToolWithTimeout
74
- } from "./chunk-FESEHMBN.js";
74
+ } from "./chunk-RWSRBLSA.js";
75
75
  import {
76
76
  generateSecurityPlan
77
- } from "./chunk-BUZ62ZOK.js";
77
+ } from "./chunk-6E6MOJYY.js";
78
78
  import {
79
79
  analyzeGitHubRepo
80
80
  } from "./chunk-HFOQKCD2.js";
@@ -82,26 +82,26 @@ import {
82
82
  getContextForTask,
83
83
  inferTaskCategory,
84
84
  summarizeContextForPrompt
85
- } from "./chunk-ANHBUWOI.js";
85
+ } from "./chunk-N35KBA5P.js";
86
86
  import {
87
87
  DEFAULT_RELEVANCE_CONFIG,
88
88
  MemoryImportance,
89
89
  calculateTextJaccardSimilarity,
90
90
  getToolMemory
91
- } from "./chunk-S5LL7Y77.js";
91
+ } from "./chunk-DAOUGMA5.js";
92
92
  import {
93
93
  DEFAULT_TASK_TTL_MS,
94
94
  DEFAULT_TOOL_RATE_LIMITS,
95
95
  clampTaskTtl
96
- } from "./chunk-FPY53SSC.js";
96
+ } from "./chunk-OMFKL3FZ.js";
97
97
  import {
98
98
  getAvailabilityCache,
99
99
  getCliForModelId,
100
100
  resolveFallback
101
- } from "./chunk-6XWIR6JJ.js";
101
+ } from "./chunk-3GUCNISD.js";
102
102
  import {
103
103
  DEFAULTS
104
- } from "./chunk-M6QD4H7S.js";
104
+ } from "./chunk-MMZ5IKQ3.js";
105
105
  import {
106
106
  resolveInsideRoot
107
107
  } from "./chunk-NUBSJGQZ.js";
@@ -117,11 +117,11 @@ import {
117
117
  getAvailableClis,
118
118
  sleep,
119
119
  withTimeout
120
- } from "./chunk-K4H5LCSU.js";
120
+ } from "./chunk-G2FTEZDY.js";
121
121
  import {
122
122
  generateHyphenId,
123
123
  generateUUID
124
- } from "./chunk-VOGIG42V.js";
124
+ } from "./chunk-KSMYBMM6.js";
125
125
  import {
126
126
  BUILT_IN_EXPERTS,
127
127
  BuiltInExpertTypeSchema,
@@ -133,7 +133,7 @@ import {
133
133
  } from "./chunk-PQHVC4BD.js";
134
134
  import {
135
135
  createSessionMemory
136
- } from "./chunk-QSTVUC2C.js";
136
+ } from "./chunk-QQNM4YAL.js";
137
137
  import {
138
138
  AGENT_ROUTER_TIMEOUTS,
139
139
  API_TIMEOUTS,
@@ -207,7 +207,7 @@ import {
207
207
  resolveModelIdentitySync,
208
208
  toExpertTaskAnalysisResult,
209
209
  withStep
210
- } from "./chunk-Q732LOXE.js";
210
+ } from "./chunk-GA2ZZERU.js";
211
211
  import {
212
212
  nexusDataPath,
213
213
  nexusDataPathEnsure
@@ -27065,7 +27065,7 @@ async function populateUnifiedContextOnState(state) {
27065
27065
  try {
27066
27066
  const taskCandidate = state["task"];
27067
27067
  if (typeof taskCandidate !== "string" || taskCandidate === "") return;
27068
- const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-EFEWHU3Z.js");
27068
+ const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-VZ5HKPWX.js");
27069
27069
  const ctx = await getContextForTask2({
27070
27070
  task: taskCandidate,
27071
27071
  category: inferTaskCategory2(taskCandidate),
@@ -42814,7 +42814,7 @@ async function tryIssueTriage(task) {
42814
42814
  try {
42815
42815
  const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
42816
42816
  if (issueMatch === null) return null;
42817
- const { createIssueTriage } = await import("./issue-triage-MBNGFPVS.js");
42817
+ const { createIssueTriage } = await import("./issue-triage-YOFAEUGC.js");
42818
42818
  const triage = createIssueTriage();
42819
42819
  const owner = issueMatch[1] ?? "";
42820
42820
  const num = issueMatch[2] ?? "";
@@ -42842,7 +42842,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
42842
42842
  ]);
42843
42843
  async function classifyWithLLM(task) {
42844
42844
  try {
42845
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-P4NWKKOI.js");
42845
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-GNHXRQEZ.js");
42846
42846
  const prompt = [
42847
42847
  "Classify this task into exactly one pipeline template.",
42848
42848
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43748,7 +43748,7 @@ var memoryInitPromise = null;
43748
43748
  async function initPipelineMemory() {
43749
43749
  if (cachedMemory !== null) return cachedMemory;
43750
43750
  try {
43751
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-AG4IM3JY.js");
43751
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-S4SBPBP4.js");
43752
43752
  const { getLearningDir } = await import("./learning-persistence-UKPO7RYK.js");
43753
43753
  const mem = createSessionMemory2(getLearningDir());
43754
43754
  mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
@@ -43805,7 +43805,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0)
43805
43805
  callRecord(routingMemoryCache);
43806
43806
  return;
43807
43807
  }
43808
- routingMemoryInitPromise ??= import("./routing-memory-YECWDSDV.js").then(({ createRoutingMemory }) => {
43808
+ routingMemoryInitPromise ??= import("./routing-memory-7RKYQEHM.js").then(({ createRoutingMemory }) => {
43809
43809
  routingMemoryCache ??= createRoutingMemory();
43810
43810
  return routingMemoryCache;
43811
43811
  }).catch((error) => {
@@ -43839,7 +43839,7 @@ ${text}` : "";
43839
43839
  }
43840
43840
  async function getWeatherContext() {
43841
43841
  try {
43842
- const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-WAOVQRGI.js");
43842
+ const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-FUVJJPE4.js");
43843
43843
  const report = generateWeatherReport2({ includeAdaptive: true });
43844
43844
  const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
43845
43845
  if (!Array.isArray(mappings) || mappings.length === 0) return "";
@@ -43857,7 +43857,7 @@ ${lines}
43857
43857
  }
43858
43858
  async function getMemoryContext(task) {
43859
43859
  try {
43860
- const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-AG4IM3JY.js");
43860
+ const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-S4SBPBP4.js");
43861
43861
  const { getLearningDir } = await import("./learning-persistence-UKPO7RYK.js");
43862
43862
  const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
43863
43863
  const learnings = memory.searchLearnings(task.slice(0, 200));
@@ -43966,7 +43966,7 @@ ${contextBlock}`;
43966
43966
  const strategy = config.votingStrategy ?? "higher_order";
43967
43967
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43968
43968
  try {
43969
- const { executeVoting } = await import("./consensus-vote-4W2MOXL2.js");
43969
+ const { executeVoting } = await import("./consensus-vote-2ODNLCSS.js");
43970
43970
  const votingResult = await executeVoting(
43971
43971
  {
43972
43972
  proposal: buildVoteProposal(plan, research),
@@ -44961,7 +44961,7 @@ async function searchCodebaseForTask(task) {
44961
44961
  }
44962
44962
  async function queryResearchRegistry(task) {
44963
44963
  try {
44964
- const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-KJ7H75QA.js");
44964
+ const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-B5KL3S4T.js");
44965
44965
  const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
44966
44966
  if (topic === void 0) return null;
44967
44967
  const result = await synthesizeResearch2(topic.slice(0, 50));
@@ -45032,7 +45032,7 @@ function createScanStageWrapper() {
45032
45032
  try {
45033
45033
  const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
45034
45034
  if (slug !== void 0) {
45035
- const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-JRL6NQKO.js");
45035
+ const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-IGX7AS5P.js");
45036
45036
  const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
45037
45037
  const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
45038
45038
  return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
@@ -46558,7 +46558,7 @@ async function probeSource(source, includeModelIds) {
46558
46558
  }
46559
46559
  }
46560
46560
  async function defaultSources(includeOpenRouter) {
46561
- const { createAllAdapters: createAllAdapters2 } = await import("./factory-BSWATZK3.js");
46561
+ const { createAllAdapters: createAllAdapters2 } = await import("./factory-6PU24HFM.js");
46562
46562
  const adapters = createAllAdapters2();
46563
46563
  return buildDefaultModelSources(adapters, { includeOpenRouter });
46564
46564
  }
@@ -50172,7 +50172,7 @@ var GitHubTaskTracker = class {
50172
50172
  cachedProvider = null;
50173
50173
  async getProvider() {
50174
50174
  if (this.cachedProvider !== null) return this.cachedProvider;
50175
- const { createScmProvider } = await import("./factory-OHAMFHSF.js");
50175
+ const { createScmProvider } = await import("./factory-7ENY4JOE.js");
50176
50176
  const result = await createScmProvider({ repo: this.config.repo ?? "" });
50177
50177
  if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
50178
50178
  this.cachedProvider = result.value;
@@ -50883,4 +50883,4 @@ export {
50883
50883
  detectBackend,
50884
50884
  createTaskTracker
50885
50885
  };
50886
- //# sourceMappingURL=chunk-3TOHOAB2.js.map
50886
+ //# sourceMappingURL=chunk-CB66XOZQ.js.map
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-6T3EPABN.js";
6
6
  import {
7
7
  generateId
8
- } from "./chunk-VOGIG42V.js";
8
+ } from "./chunk-KSMYBMM6.js";
9
9
  import {
10
10
  getMemoryRegistry
11
11
  } from "./chunk-PQHVC4BD.js";
12
12
  import {
13
13
  SessionMemory
14
- } from "./chunk-QSTVUC2C.js";
14
+ } from "./chunk-QQNM4YAL.js";
15
15
  import {
16
16
  ErrorCode,
17
17
  NexusError,
@@ -24,7 +24,7 @@ import {
24
24
  getTimeProvider,
25
25
  ok,
26
26
  setSharedMobiMemDbPathResolver
27
- } from "./chunk-Q732LOXE.js";
27
+ } from "./chunk-GA2ZZERU.js";
28
28
  import {
29
29
  nexusDataPath
30
30
  } from "./chunk-CH7QIDHQ.js";
@@ -5612,4 +5612,4 @@ export {
5612
5612
  reinitializeMemoryBackends,
5613
5613
  ToolMemoryManager
5614
5614
  };
5615
- //# sourceMappingURL=chunk-S5LL7Y77.js.map
5615
+ //# sourceMappingURL=chunk-DAOUGMA5.js.map
@@ -2,7 +2,7 @@ import {
2
2
  ConfigError,
3
3
  err,
4
4
  ok
5
- } from "./chunk-Q732LOXE.js";
5
+ } from "./chunk-GA2ZZERU.js";
6
6
 
7
7
  // src/adapters/sdk/types.ts
8
8
  var PROVIDER_ENV_KEYS = {
@@ -117,4 +117,4 @@ export {
117
117
  CUSTOM_API_ALLOW_PRIVATE_ENV,
118
118
  validateCustomApiBaseUrl
119
119
  };
120
- //# sourceMappingURL=chunk-TNX3SEBY.js.map
120
+ //# sourceMappingURL=chunk-FXPDPPYR.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  CliCircuitBreaker,
3
3
  DEFAULT_CIRCUIT_BREAKER_CONFIG
4
- } from "./chunk-CNQZ6BJE.js";
4
+ } from "./chunk-4PWBF3NC.js";
5
5
  import {
6
6
  generateHyphenId
7
- } from "./chunk-VOGIG42V.js";
7
+ } from "./chunk-KSMYBMM6.js";
8
8
  import {
9
9
  CLI_SUBPROCESS_TIMEOUTS,
10
10
  CLI_TIMEOUTS,
@@ -25,10 +25,11 @@ import {
25
25
  getOutcomeStore,
26
26
  getRandomProvider,
27
27
  getTimeProvider,
28
+ isDynamicModelsEnabled,
28
29
  isRateLimitText,
29
30
  loadModelsDevSnapshot,
30
31
  ok
31
- } from "./chunk-Q732LOXE.js";
32
+ } from "./chunk-GA2ZZERU.js";
32
33
 
33
34
  // src/cli-adapters/subprocess-adapter.ts
34
35
  import { spawn } from "child_process";
@@ -2765,6 +2766,39 @@ var OpenCodeResponseParser = class {
2765
2766
  }
2766
2767
  };
2767
2768
 
2769
+ // src/config/resolve-live-model.ts
2770
+ function splitTier(id) {
2771
+ const colon = id.indexOf(":");
2772
+ return colon >= 0 ? { base: id.slice(0, colon), tier: id.slice(colon) } : { base: id, tier: "" };
2773
+ }
2774
+ function isTokenBoundaryPrefix(prefix, full) {
2775
+ if (prefix.length > full.length || !full.startsWith(prefix)) return false;
2776
+ if (full.length === prefix.length) return true;
2777
+ const next = full[prefix.length];
2778
+ return next === "-" || next === "/";
2779
+ }
2780
+ function resolveLiveModelId(configured, available) {
2781
+ const set = available instanceof Set ? available : new Set(available);
2782
+ if (set.size === 0 || set.has(configured)) return configured;
2783
+ const slash = configured.indexOf("/");
2784
+ const providerPrefix = slash > 0 ? configured.slice(0, slash + 1) : "";
2785
+ const cfg = splitTier(configured);
2786
+ const candidates = [...set].filter((c) => providerPrefix === "" || c.startsWith(providerPrefix)).map((c) => splitTier(c)).filter((cand) => isTokenBoundaryPrefix(cand.base, cfg.base)).map((cand) => ({
2787
+ id: cand.base + cand.tier,
2788
+ baseLen: cand.base.length,
2789
+ tierMatch: cand.tier === cfg.tier
2790
+ }));
2791
+ if (candidates.length === 0) return configured;
2792
+ candidates.sort(
2793
+ (a, b) => b.baseLen - a.baseLen || // most-specific simplification (closest to configured)
2794
+ Number(b.tierMatch) - Number(a.tierMatch) || // matching :free / paid tier
2795
+ a.id.length - b.id.length || // shorter overall
2796
+ (a.id < b.id ? -1 : a.id > b.id ? 1 : 0)
2797
+ // lexicographic — fully deterministic
2798
+ );
2799
+ return candidates[0]?.id ?? configured;
2800
+ }
2801
+
2768
2802
  // src/cli-adapters/adapters/opencode-adapter.ts
2769
2803
  var logger5 = createLogger({ component: "opencode-adapter" });
2770
2804
  var ALLOWED_VARIANTS = ["high", "max", "minimal"];
@@ -2864,10 +2898,20 @@ var OpenCodeCliAdapter = class extends SubprocessCliAdapter {
2864
2898
  if (this.availableModels === void 0 || this.availableModels.size === 0) return false;
2865
2899
  return this.availableModels.has(cliModel);
2866
2900
  }
2867
- /** Appends --model if the resolved model is available (#1402). */
2901
+ /** Appends --model if the resolved model is available (#1402, #3407). */
2868
2902
  appendModelArg(args, task) {
2869
2903
  const internalModel = task.model ?? this.model;
2870
- const cliModel = resolveOpenCodeModel(internalModel);
2904
+ let cliModel = resolveOpenCodeModel(internalModel);
2905
+ if (!this.isModelAvailable(cliModel) && isDynamicModelsEnabled() && this.availableModels !== void 0) {
2906
+ const resolved = resolveLiveModelId(cliModel, this.availableModels);
2907
+ if (resolved !== cliModel) {
2908
+ logger5.debug("Resolved stale model to live alias (#3407)", {
2909
+ from: cliModel,
2910
+ to: resolved
2911
+ });
2912
+ cliModel = resolved;
2913
+ }
2914
+ }
2871
2915
  if (this.isModelAvailable(cliModel)) {
2872
2916
  args.push("--model", cliModel);
2873
2917
  } else {
@@ -3374,4 +3418,4 @@ export {
3374
3418
  isCliAvailable,
3375
3419
  getAvailableClis
3376
3420
  };
3377
- //# sourceMappingURL=chunk-K4H5LCSU.js.map
3421
+ //# sourceMappingURL=chunk-G2FTEZDY.js.map