@project-ava-supernova/core 0.2.171 → 0.2.173

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 (244) hide show
  1. package/dist/agent/agent.d.ts.map +1 -1
  2. package/dist/agent/agent.js +2 -1
  3. package/dist/agent/agent.js.map +1 -1
  4. package/dist/agent/vision-bridge.d.ts.map +1 -1
  5. package/dist/agent/vision-bridge.js +1 -6
  6. package/dist/agent/vision-bridge.js.map +1 -1
  7. package/dist/audit/cost.d.ts +2 -3
  8. package/dist/audit/cost.d.ts.map +1 -1
  9. package/dist/audit/cost.js +14 -25
  10. package/dist/audit/cost.js.map +1 -1
  11. package/dist/audit/export.d.ts.map +1 -1
  12. package/dist/audit/export.js +3 -5
  13. package/dist/audit/export.js.map +1 -1
  14. package/dist/audit/summary.d.ts +0 -2
  15. package/dist/audit/summary.d.ts.map +1 -1
  16. package/dist/audit/summary.js +2 -8
  17. package/dist/audit/summary.js.map +1 -1
  18. package/dist/audit/types.d.ts +5 -6
  19. package/dist/audit/types.d.ts.map +1 -1
  20. package/dist/auto/aurora-router.d.ts +20 -54
  21. package/dist/auto/aurora-router.d.ts.map +1 -1
  22. package/dist/auto/aurora-router.js +40 -128
  23. package/dist/auto/aurora-router.js.map +1 -1
  24. package/dist/auto/auto-coordinator.d.ts +4 -15
  25. package/dist/auto/auto-coordinator.d.ts.map +1 -1
  26. package/dist/auto/auto-coordinator.js +81 -124
  27. package/dist/auto/auto-coordinator.js.map +1 -1
  28. package/dist/auto/coordinator-model.d.ts +36 -1
  29. package/dist/auto/coordinator-model.d.ts.map +1 -1
  30. package/dist/auto/coordinator-model.js +61 -44
  31. package/dist/auto/coordinator-model.js.map +1 -1
  32. package/dist/auto/index.d.ts +1 -1
  33. package/dist/auto/index.d.ts.map +1 -1
  34. package/dist/auto/index.js +1 -1
  35. package/dist/auto/index.js.map +1 -1
  36. package/dist/auto/intent-gate.d.ts +3 -1
  37. package/dist/auto/intent-gate.d.ts.map +1 -1
  38. package/dist/auto/intent-gate.js +13 -10
  39. package/dist/auto/intent-gate.js.map +1 -1
  40. package/dist/auto/longxiang-router.d.ts.map +1 -1
  41. package/dist/auto/longxiang-router.js +3 -4
  42. package/dist/auto/longxiang-router.js.map +1 -1
  43. package/dist/auto/model-router.d.ts +7 -2
  44. package/dist/auto/model-router.d.ts.map +1 -1
  45. package/dist/auto/model-router.js +43 -45
  46. package/dist/auto/model-router.js.map +1 -1
  47. package/dist/auto/routing-modes.d.ts +5 -6
  48. package/dist/auto/routing-modes.d.ts.map +1 -1
  49. package/dist/auto/routing-modes.js +5 -6
  50. package/dist/auto/routing-modes.js.map +1 -1
  51. package/dist/auto/supernova-router.d.ts +5 -11
  52. package/dist/auto/supernova-router.d.ts.map +1 -1
  53. package/dist/auto/supernova-router.js +19 -59
  54. package/dist/auto/supernova-router.js.map +1 -1
  55. package/dist/auto/task-classifier.js +3 -3
  56. package/dist/auto/task-classifier.js.map +1 -1
  57. package/dist/config/account-merge.d.ts +47 -0
  58. package/dist/config/account-merge.d.ts.map +1 -0
  59. package/dist/config/account-merge.js +228 -0
  60. package/dist/config/account-merge.js.map +1 -0
  61. package/dist/config/config.d.ts +3 -0
  62. package/dist/config/config.d.ts.map +1 -1
  63. package/dist/config/config.js +6 -5
  64. package/dist/config/config.js.map +1 -1
  65. package/dist/config/schema.d.ts +0 -1
  66. package/dist/config/schema.d.ts.map +1 -1
  67. package/dist/config/schema.js.map +1 -1
  68. package/dist/creative/dashscope.d.ts +22 -0
  69. package/dist/creative/dashscope.d.ts.map +1 -1
  70. package/dist/creative/dashscope.js +47 -0
  71. package/dist/creative/dashscope.js.map +1 -1
  72. package/dist/creative/image-local.d.ts.map +1 -1
  73. package/dist/creative/image-local.js +20 -3
  74. package/dist/creative/image-local.js.map +1 -1
  75. package/dist/creative/index.d.ts +0 -5
  76. package/dist/creative/index.d.ts.map +1 -1
  77. package/dist/creative/index.js +0 -20
  78. package/dist/creative/index.js.map +1 -1
  79. package/dist/dataset/events.d.ts +1 -29
  80. package/dist/dataset/events.d.ts.map +1 -1
  81. package/dist/dataset/routing.d.ts +1 -1
  82. package/dist/dataset/routing.d.ts.map +1 -1
  83. package/dist/dataset/routing.js +0 -3
  84. package/dist/dataset/routing.js.map +1 -1
  85. package/dist/docs/adapter.js.map +1 -1
  86. package/dist/docs/data/providers.d.ts +1 -2
  87. package/dist/docs/data/providers.d.ts.map +1 -1
  88. package/dist/docs/data/providers.js +28 -58
  89. package/dist/docs/data/providers.js.map +1 -1
  90. package/dist/docs/types.d.ts +1 -1
  91. package/dist/docs/types.d.ts.map +1 -1
  92. package/dist/i18n/locales/ar.d.ts.map +1 -1
  93. package/dist/i18n/locales/ar.js +72 -22
  94. package/dist/i18n/locales/ar.js.map +1 -1
  95. package/dist/i18n/locales/de.d.ts.map +1 -1
  96. package/dist/i18n/locales/de.js +72 -22
  97. package/dist/i18n/locales/de.js.map +1 -1
  98. package/dist/i18n/locales/en.d.ts +50 -0
  99. package/dist/i18n/locales/en.d.ts.map +1 -1
  100. package/dist/i18n/locales/en.js +74 -22
  101. package/dist/i18n/locales/en.js.map +1 -1
  102. package/dist/i18n/locales/es.d.ts.map +1 -1
  103. package/dist/i18n/locales/es.js +72 -22
  104. package/dist/i18n/locales/es.js.map +1 -1
  105. package/dist/i18n/locales/fr.d.ts.map +1 -1
  106. package/dist/i18n/locales/fr.js +72 -22
  107. package/dist/i18n/locales/fr.js.map +1 -1
  108. package/dist/i18n/locales/hi.d.ts.map +1 -1
  109. package/dist/i18n/locales/hi.js +72 -22
  110. package/dist/i18n/locales/hi.js.map +1 -1
  111. package/dist/i18n/locales/id.d.ts.map +1 -1
  112. package/dist/i18n/locales/id.js +72 -22
  113. package/dist/i18n/locales/id.js.map +1 -1
  114. package/dist/i18n/locales/it.d.ts.map +1 -1
  115. package/dist/i18n/locales/it.js +72 -22
  116. package/dist/i18n/locales/it.js.map +1 -1
  117. package/dist/i18n/locales/ja.d.ts.map +1 -1
  118. package/dist/i18n/locales/ja.js +72 -22
  119. package/dist/i18n/locales/ja.js.map +1 -1
  120. package/dist/i18n/locales/ko.d.ts.map +1 -1
  121. package/dist/i18n/locales/ko.js +72 -22
  122. package/dist/i18n/locales/ko.js.map +1 -1
  123. package/dist/i18n/locales/nl.d.ts.map +1 -1
  124. package/dist/i18n/locales/nl.js +72 -22
  125. package/dist/i18n/locales/nl.js.map +1 -1
  126. package/dist/i18n/locales/pl.d.ts.map +1 -1
  127. package/dist/i18n/locales/pl.js +72 -22
  128. package/dist/i18n/locales/pl.js.map +1 -1
  129. package/dist/i18n/locales/pt.d.ts.map +1 -1
  130. package/dist/i18n/locales/pt.js +72 -22
  131. package/dist/i18n/locales/pt.js.map +1 -1
  132. package/dist/i18n/locales/ru.d.ts.map +1 -1
  133. package/dist/i18n/locales/ru.js +72 -22
  134. package/dist/i18n/locales/ru.js.map +1 -1
  135. package/dist/i18n/locales/th.d.ts.map +1 -1
  136. package/dist/i18n/locales/th.js +72 -22
  137. package/dist/i18n/locales/th.js.map +1 -1
  138. package/dist/i18n/locales/tr.d.ts.map +1 -1
  139. package/dist/i18n/locales/tr.js +72 -22
  140. package/dist/i18n/locales/tr.js.map +1 -1
  141. package/dist/i18n/locales/uk.d.ts.map +1 -1
  142. package/dist/i18n/locales/uk.js +72 -22
  143. package/dist/i18n/locales/uk.js.map +1 -1
  144. package/dist/i18n/locales/vi.d.ts.map +1 -1
  145. package/dist/i18n/locales/vi.js +72 -22
  146. package/dist/i18n/locales/vi.js.map +1 -1
  147. package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
  148. package/dist/i18n/locales/zh-CN.js +72 -22
  149. package/dist/i18n/locales/zh-CN.js.map +1 -1
  150. package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
  151. package/dist/i18n/locales/zh-TW.js +72 -22
  152. package/dist/i18n/locales/zh-TW.js.map +1 -1
  153. package/dist/index.d.ts +7 -8
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.js +6 -10
  156. package/dist/index.js.map +1 -1
  157. package/dist/personas/conductor.js +1 -1
  158. package/dist/personas/conductor.js.map +1 -1
  159. package/dist/projects/storage-categories.d.ts.map +1 -1
  160. package/dist/projects/storage-categories.js +8 -1
  161. package/dist/projects/storage-categories.js.map +1 -1
  162. package/dist/providers/base-provider.d.ts +17 -2
  163. package/dist/providers/base-provider.d.ts.map +1 -1
  164. package/dist/providers/base-provider.js +32 -2
  165. package/dist/providers/base-provider.js.map +1 -1
  166. package/dist/providers/catalog.d.ts +0 -11
  167. package/dist/providers/catalog.d.ts.map +1 -1
  168. package/dist/providers/catalog.js +0 -11
  169. package/dist/providers/catalog.js.map +1 -1
  170. package/dist/providers/key-test.d.ts +26 -0
  171. package/dist/providers/key-test.d.ts.map +1 -0
  172. package/dist/providers/key-test.js +74 -0
  173. package/dist/providers/key-test.js.map +1 -0
  174. package/dist/providers/minimax/models.d.ts.map +1 -1
  175. package/dist/providers/minimax/models.js +32 -17
  176. package/dist/providers/minimax/models.js.map +1 -1
  177. package/dist/providers/mistral/models.d.ts.map +1 -1
  178. package/dist/providers/mistral/models.js +26 -6
  179. package/dist/providers/mistral/models.js.map +1 -1
  180. package/dist/providers/provider-registry.d.ts +4 -9
  181. package/dist/providers/provider-registry.d.ts.map +1 -1
  182. package/dist/providers/provider-registry.js +11 -18
  183. package/dist/providers/provider-registry.js.map +1 -1
  184. package/dist/providers/request-shaping/model-ids.d.ts.map +1 -1
  185. package/dist/providers/request-shaping/model-ids.js +5 -0
  186. package/dist/providers/request-shaping/model-ids.js.map +1 -1
  187. package/dist/tools/design-studio-tools.d.ts +5 -0
  188. package/dist/tools/design-studio-tools.d.ts.map +1 -1
  189. package/dist/tools/design-studio-tools.js +5 -0
  190. package/dist/tools/design-studio-tools.js.map +1 -1
  191. package/dist/tools/generate-image.d.ts +2 -2
  192. package/dist/tools/generate-image.d.ts.map +1 -1
  193. package/dist/tools/generate-image.js +7 -50
  194. package/dist/tools/generate-image.js.map +1 -1
  195. package/dist/tools/generate-video.d.ts +7 -7
  196. package/dist/tools/generate-video.d.ts.map +1 -1
  197. package/dist/tools/generate-video.js +14 -130
  198. package/dist/tools/generate-video.js.map +1 -1
  199. package/dist/tools/generate-voice.d.ts +9 -0
  200. package/dist/tools/generate-voice.d.ts.map +1 -1
  201. package/dist/tools/generate-voice.js +11 -41
  202. package/dist/tools/generate-voice.js.map +1 -1
  203. package/dist/tools/health-catalogue-search.d.ts.map +1 -1
  204. package/dist/tools/health-catalogue-search.js +1 -3
  205. package/dist/tools/health-catalogue-search.js.map +1 -1
  206. package/dist/tools/tool-registry.d.ts +9 -1
  207. package/dist/tools/tool-registry.d.ts.map +1 -1
  208. package/dist/tools/tool-registry.js +17 -2
  209. package/dist/tools/tool-registry.js.map +1 -1
  210. package/dist/tools/types.d.ts +7 -0
  211. package/dist/tools/types.d.ts.map +1 -1
  212. package/package.json +1 -11
  213. package/dist/billing/credits.d.ts +0 -236
  214. package/dist/billing/credits.d.ts.map +0 -1
  215. package/dist/billing/credits.js +0 -599
  216. package/dist/billing/credits.js.map +0 -1
  217. package/dist/billing/meter.d.ts +0 -43
  218. package/dist/billing/meter.d.ts.map +0 -1
  219. package/dist/billing/meter.js +0 -67
  220. package/dist/billing/meter.js.map +0 -1
  221. package/dist/billing/plans.d.ts +0 -34
  222. package/dist/billing/plans.d.ts.map +0 -1
  223. package/dist/billing/plans.js +0 -108
  224. package/dist/billing/plans.js.map +0 -1
  225. package/dist/journal/platform-sync.d.ts +0 -17
  226. package/dist/journal/platform-sync.d.ts.map +0 -1
  227. package/dist/journal/platform-sync.js +0 -21
  228. package/dist/journal/platform-sync.js.map +0 -1
  229. package/dist/memory/platform-sync.d.ts +0 -54
  230. package/dist/memory/platform-sync.d.ts.map +0 -1
  231. package/dist/memory/platform-sync.js +0 -176
  232. package/dist/memory/platform-sync.js.map +0 -1
  233. package/dist/providers/platform/index.d.ts +0 -20
  234. package/dist/providers/platform/index.d.ts.map +0 -1
  235. package/dist/providers/platform/index.js +0 -30
  236. package/dist/providers/platform/index.js.map +0 -1
  237. package/dist/providers/platform/models.d.ts +0 -3
  238. package/dist/providers/platform/models.d.ts.map +0 -1
  239. package/dist/providers/platform/models.js +0 -204
  240. package/dist/providers/platform/models.js.map +0 -1
  241. package/dist/tasks/platform-sync.d.ts +0 -22
  242. package/dist/tasks/platform-sync.d.ts.map +0 -1
  243. package/dist/tasks/platform-sync.js +0 -132
  244. package/dist/tasks/platform-sync.js.map +0 -1
@@ -1,138 +1,50 @@
1
1
  /**
2
- * Aurora mode — Mistral-only polyglot routing, three-tier fleet.
2
+ * Aurora mode — Mistral only, two models (his call, 2 Nov 2026).
3
3
  *
4
- * The European-stack analogue of Supernova: same shape, different fleet.
5
- * Every route lands on a Mistral model so an Aurora deployment never
6
- * leaves European infrastructure — important for EU customers under
7
- * data-residency / GDPR / AI Act constraints who can't buy a US AI stack
8
- * and who want a sovereign full-stack option (model + agent + tooling).
4
+ * - Mistral Large 4 — Coordinator, Builder, coding, planning, security,
5
+ * teaching, image reading and long context. Mistral's
6
+ * flagship since 6 Oct 2026: 1M context, reasoning,
7
+ * native image input; 61.7% on DeepSWE v1.1 by
8
+ * Mistral's own figure. $0.70 / $2.10 per million.
9
+ * - Mistral Small 4 — Chat, brainstorm, image-generation orchestration and
10
+ * the intent gate. 256K, reasoning, image input,
11
+ * $0.15 / $0.60.
9
12
  *
10
- * - Mistral Medium 3.5 — Coordinator + deep specialists + Builder + vision.
11
- * Mistral's frontier flagship: 128B dense, 256K, from-
12
- * scratch vision encoder, configurable reasoning,
13
- * 77.6% SWE-Bench Verified, Artificial Analysis
14
- * Intelligence Index 39 (#2 of 61). The best Mistral
15
- * model — so it holds the lead seat.
16
- * - Mistral Small 4 — High-volume workhorse + intent gate. 119B, 256K,
17
- * configurable reasoning, vision. Index 28 and just
18
- * $0.15/$0.60 — cheaper AND smarter than Large 3.
19
- * Carries chat, image-gen orchestration, long-context
20
- * grunt, brainstorm, and the light specialists.
21
- * - Mistral Large 3 — Heavy reserve / fallback only. 675B/41B MoE, 256K,
22
- * Apache-2.0, multimodal — the broadest-knowledge,
23
- * most-permissive sovereign self-host option. But
24
- * *non-reasoning* (Index 23), so it holds no primary
25
- * route; it's the heavy fallback and the natural re-
26
- * promotion target when its reasoning variant ships.
13
+ * Each falls back to the other. Medium 3.5 (the old lead) and Large 3 (the
14
+ * old reserve) are gone from the fleet: Mistral deprecated both on 31 Oct 2026
15
+ * and switches them off on 30 Apr 2027, naming Large 4 as the replacement.
27
16
  *
28
- * Frontier-leads topology (Medium 3.5 → Small 4 → Large-3-reserve): the old
29
- * config inverted this, running the weakest non-reasoning model (Large 3) in
30
- * the coordinator seat with the frontier model parked mid-tier. This puts the
31
- * best model where it matters and lets the cheap-but-capable Small 4 carry
32
- * volume — quality up, cost roughly flat.
33
- *
34
- * Aurora is deliberately Mistral-only. If a Mistral model is unavailable,
35
- * the router returns null and surfaces an error rather than silently
36
- * cross-routing — that's the EU-stack guarantee. Users who want graceful
37
- * degradation pick Maestro or Supernova instead.
38
- *
39
- * Re-tiered 2026-06-XX once Artificial Analysis confirmed Medium 3.5 (39) and
40
- * Small 4 (28) both out-score Large 3 (23).
17
+ * Aurora is locked to Mistral (FLEET_PROVIDERS). A seat Mistral can't fill
18
+ * stays empty and the app says the Mistral key is missing — it is never
19
+ * handed to another lab. Aurora was dark from 6 Oct to 2 Nov 2026 because
20
+ * Mistral never answered our approach; with every user on their own key, the
21
+ * fleet needs nothing from Mistral, so it came back.
41
22
  */
42
- // ── Coordinator + special-case routes (highest priority) ──────────────────
43
- /** The conductor that classifies tasks, picks specialists, runs the loop —
44
- * the highest-leverage seat in the fleet. Medium 3.5 is Mistral's frontier
45
- * flagship (Intelligence Index 39, reasoning-capable) and decisively
46
- * out-classes Large 3 (23, non-reasoning), so it takes the coordinator.
47
- * Large 3 stays wired as the heavy fallback for availability + its 675B
48
- * breadth, and is the natural re-promotion target if/when its reasoning
49
- * variant ships. */
50
- export const AURORA_COORDINATOR_ID = 'mistral-medium-3.5';
51
- /** Builder agent — TaskExecutor spawn for any session task. Medium 3.5:
52
- * 77.6% SWE-Bench Verified, 256K context, from-scratch vision encoder. */
53
- export const AURORA_BUILDER_ID = 'mistral-medium-3.5';
54
- /** Vision input override — Medium 3.5's from-scratch vision encoder handles
55
- * variable image sizes / aspect ratios best in the fleet. */
56
- export const AURORA_VISION_ID = 'mistral-medium-3.5';
57
- /** Intent gate — Small 4 at $0.15/$0.60 is hard to beat for short routing
58
- * calls, and it's smarter than Large 3 (Index 28 vs 23) for the rare hard
59
- * classification. The high-volume workhorse anchor. */
23
+ // ── Coordinator + special-case routes ─────────────────────────────────────
24
+ export const AURORA_COORDINATOR_ID = 'mistral-large-4';
25
+ export const AURORA_BUILDER_ID = 'mistral-large-4';
26
+ export const AURORA_VISION_ID = 'mistral-large-4';
60
27
  export const AURORA_INTENT_GATE_ID = 'mistral-small-4';
61
28
  export const AURORA_ROUTES = {
62
- // ── Hard / deep routes → Medium 3.5 (frontier), Large 3 as heavy reserve ──
63
- // Builder territory — Medium 3.5 carries SWE-Bench + 256K + vision.
64
- coding: { modelId: 'mistral-medium-3.5', reason: 'Mistral Medium 3.5 — 77.6% SWE-Bench Verified, 256K context, agentic-coding optimised', fallbackModelId: 'mistral-large-3' },
65
- // Vision input → Medium 3.5's from-scratch encoder beats Pixtral merged.
66
- vision: { modelId: 'mistral-medium-3.5', reason: 'Mistral Medium 3.5 — vision encoder trained from scratch for variable sizes', fallbackModelId: 'mistral-large-3', requiresVision: true },
67
- // Planning is Architect + Researcher depth — now the frontier model.
68
- planning: { modelId: 'mistral-medium-3.5', reason: 'Mistral Medium 3.5 — frontier reasoning for plan synthesis (Index 39 vs Large 3 23)', fallbackModelId: 'mistral-large-3' },
69
- // Security = CVE Researcher leads — deep reasoning over attack surface.
70
- security: { modelId: 'mistral-medium-3.5', reason: 'Mistral Medium 3.5 — frontier reasoning over the attack surface', fallbackModelId: 'mistral-large-3' },
71
- // Teach = Tutor + Curriculum Architect — coherent long-form is its lane.
72
- // Curriculum *creation* also stays on Medium 3.5 (the top model now).
73
- teach: { modelId: 'mistral-medium-3.5', reason: 'Mistral Medium 3.5 — coherent long-form output for tutorials and lesson plans', fallbackModelId: 'mistral-large-3', creationModelId: 'mistral-medium-3.5' },
74
- // ── High-volume routes → Small 4 (cheap + capable), Medium 3.5 ceiling ──
75
- // image_gen routes a generate_image tool call to Wan — the
76
- // Mistral model just orchestrates; depth not required, Small 4 is cheapest.
77
- image_gen: { modelId: 'mistral-small-4', reason: 'Mistral Small 4 — orchestrates generate_image tool calls; depth not required at this layer', fallbackModelId: 'mistral-medium-3.5' },
78
- // computer_use route retired alongside the Holo3 integration.
79
- // Chat = direct conversational response. Small 4: configurable reasoning,
80
- // multimodal, fast TTFT, cheapest input in the fleet. Medium 3.5 ceiling
81
- // for hard chats.
82
- chat: { modelId: 'mistral-small-4', reason: 'Mistral Small 4 — configurable reasoning, multimodal, fast TTFT for typical chat turns', fallbackModelId: 'mistral-medium-3.5' },
83
- // Long-context grunt: both models are 256K, so route on cost+capability —
84
- // Small 4's $0.15/M input is the cheapest place to push large prompts, and
85
- // it out-indexes Large 3. Medium 3.5 is the depth fallback.
86
- long_context: { modelId: 'mistral-small-4', reason: 'Mistral Small 4 — 256K context at the fleet\'s cheapest input; smarter than Large 3', fallbackModelId: 'mistral-medium-3.5' },
87
- // Brainstorm = breadth over depth — Small 4 is fast, cheap, and creatively
88
- // wide for ideation; Medium 3.5 ceiling when a session needs real depth.
89
- brainstorm: { modelId: 'mistral-small-4', reason: 'Mistral Small 4 — breadth and speed for ideation at workhorse cost', fallbackModelId: 'mistral-medium-3.5' },
29
+ // ── The deep work → Large 4, Small 4 beneath it ──
30
+ coding: { modelId: 'mistral-large-4', reason: 'Mistral Large 4 — Mistral\'s flagship coder, 1M context, reasoning', fallbackModelId: 'mistral-small-4' },
31
+ vision: { modelId: 'mistral-large-4', reason: 'Mistral Large 4 — native image input', fallbackModelId: 'mistral-small-4', requiresVision: true },
32
+ planning: { modelId: 'mistral-large-4', reason: 'Mistral Large 4 — reasoning for plan synthesis', fallbackModelId: 'mistral-small-4' },
33
+ security: { modelId: 'mistral-large-4', reason: 'Mistral Large 4 — reasoning over the attack surface', fallbackModelId: 'mistral-small-4' },
34
+ teach: { modelId: 'mistral-large-4', reason: 'Mistral Large 4 — coherent long-form teaching', fallbackModelId: 'mistral-small-4', creationModelId: 'mistral-large-4' },
35
+ // Long context goes where the context is: Large 4 holds 1M, Small 4 256K.
36
+ long_context: { modelId: 'mistral-large-4', reason: 'Mistral Large 4 — 1M context', fallbackModelId: 'mistral-small-4' },
37
+ // ── Volume → Small 4, Large 4 above it ──
38
+ // image_gen orchestrates a generate_image tool call — depth not required.
39
+ image_gen: { modelId: 'mistral-small-4', reason: 'Mistral Small 4 — orchestrates generate_image tool calls; sees reference images', fallbackModelId: 'mistral-large-4' },
40
+ chat: { modelId: 'mistral-small-4', reason: 'Mistral Small 4 — fast, reasoning, sees images', fallbackModelId: 'mistral-large-4' },
41
+ brainstorm: { modelId: 'mistral-small-4', reason: 'Mistral Small 4 — breadth and speed for ideation', fallbackModelId: 'mistral-large-4' },
90
42
  };
91
- // ── Per-persona override map ──────────────────────────────────────────────
92
- //
93
- // Used by Conductor when spawning specific personas. Persona is finer-grained
94
- // than task category — a "planning" task might invoke Architect (Medium 3.5)
95
- // AND Researcher (Large 3) within the same orchestration. Persona override
96
- // wins over the category route when set.
43
+ // ── Personas ──────────────────────────────────────────────────────────────
97
44
  //
98
- // Keys match persona names from packages/core/src/personas/definitions.ts.
99
- //
100
- // Re-tiered for the frontier-leads fleet:
101
- // - Deep reasoning + core-deliverable personas → Medium 3.5 (Index 39).
102
- // These were on Large 3 (Index 23) — the worst seat in the old config;
103
- // promoting them to the frontier model is the biggest quality win.
104
- // - Supporting / light / breadth personas → Small 4 (Index 28, $0.15/$0.60).
105
- // These were on the pricier Medium 3.5; the workhorse covers them cheaper.
106
- // - Large 3 holds no primary persona — it's the heavy fallback / reserve.
107
- export const AURORA_PERSONA_MODEL = {
108
- // Work mode — depth + the build deliverable on Medium 3.5; ordering/checks on Small 4
109
- architect: 'mistral-medium-3.5', // planning depth, vision-aware
110
- researcher: 'mistral-medium-3.5', // ↑ from Large 3 — synthesis is frontier work
111
- builder: 'mistral-medium-3.5', // 77.6% SWE-Bench, 256K, vision
112
- verifier: 'mistral-small-4', // ↓ verification is a check — workhorse
113
- challenger: 'mistral-medium-3.5', // ↑ adversarial reasoning needs the frontier
114
- sequencer: 'mistral-small-4', // ↓ task ordering, light
115
- // Plan mode personas
116
- plan_researcher: 'mistral-medium-3.5', // ↑ from Large 3
117
- plan_architect: 'mistral-medium-3.5',
118
- plan_challenger: 'mistral-medium-3.5', // ↑ from Large 3
119
- // Teach mode — the taught content on Medium 3.5; quiz gen on Small 4
120
- curriculum_architect: 'mistral-medium-3.5',
121
- content_writer: 'mistral-medium-3.5', // long-form coherence
122
- fact_checker: 'mistral-medium-3.5', // ↑ accuracy needs the frontier model
123
- quiz_master: 'mistral-small-4', // ↓ quiz generation, light
124
- tutor: 'mistral-medium-3.5', // teaching quality
125
- // Security mode — the deep reasoning on Medium 3.5; recon/scan/report on Small 4
126
- recon: 'mistral-small-4', // ↓ surface mapping, light
127
- scanner: 'mistral-small-4', // ↓ systematic scanning, volume
128
- cve_researcher: 'mistral-medium-3.5', // ↑ deep reasoning over attack surface
129
- security_verifier: 'mistral-medium-3.5', // ↑ exploitability reasoning
130
- reporter: 'mistral-small-4', // ↓ assembles verified findings
131
- // Brainstorm mode — breadth over depth, all on the cheap-and-wide workhorse
132
- explorer: 'mistral-small-4',
133
- brainstorm_researcher: 'mistral-small-4',
134
- ideator: 'mistral-small-4',
135
- brainstorm_challenger: 'mistral-small-4',
136
- refiner: 'mistral-small-4',
137
- };
45
+ // Aurora's personas run on the model their task is routed to — the same as
46
+ // Maestro and Supernova. A per-persona map lived here, declared ahead of a
47
+ // wiring that never came; it was deleted on 2 Nov 2026 along with
48
+ // Supernova's, because it named retired models and its keys did not match
49
+ // the real persona ids.
138
50
  //# sourceMappingURL=aurora-router.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aurora-router.js","sourceRoot":"","sources":["../../src/auto/aurora-router.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,6EAA6E;AAE7E;;;;;;qBAMqB;AACrB,MAAM,CAAC,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AAE1D;2EAC2E;AAC3E,MAAM,CAAC,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AAEtD;8DAC8D;AAC9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAErD;;wDAEwD;AACxD,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAgBvD,MAAM,CAAC,MAAM,aAAa,GAA2C;IACnE,6EAA6E;IAC7E,oEAAoE;IACpE,MAAM,EAAQ,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,uFAAuF,EAAI,eAAe,EAAE,iBAAiB,EAAE;IACtL,yEAAyE;IACzE,MAAM,EAAQ,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,6EAA6E,EAAc,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,IAAI,EAAE;IAC5M,qEAAqE;IACrE,QAAQ,EAAM,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,qFAAqF,EAAM,eAAe,EAAE,iBAAiB,EAAE;IACtL,wEAAwE;IACxE,QAAQ,EAAM,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,iEAAiE,EAA2B,eAAe,EAAE,iBAAiB,EAAE;IACvL,yEAAyE;IACzE,sEAAsE;IACtE,KAAK,EAAS,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,+EAA+E,EAAY,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,oBAAoB,EAAE;IAE7N,2EAA2E;IAC3E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cAAc,EAAE,IAAI,EAAE;IAC5L,QAAQ,EAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,gDAAgD,EAA8B,eAAe,EAAE,iBAAiB,EAAE;IACtK,QAAQ,EAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,qDAAqD,EAAyB,eAAe,EAAE,iBAAiB,EAAE;IACtK,KAAK,EAAS,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,+CAA+C,EAA+B,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE;IAC1M,0EAA0E;IAC1E,YAAY,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,8BAA8B,EAAgD,eAAe,EAAE,iBAAiB,EAAE;IAEtK,2CAA2C;IAC3C,0EAA0E;IAC1E,SAAS,EAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,iFAAiF,EAAE,eAAe,EAAE,iBAAiB,EAAE;IAC3K,IAAI,EAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,gDAAgD,EAA8B,eAAe,EAAE,iBAAiB,EAAE;IACtK,UAAU,EAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,kDAAkD,EAA4B,eAAe,EAAE,iBAAiB,EAAE;CACvK,CAAC;AAEF,6EAA6E;AAC7E,EAAE;AACF,2EAA2E;AAC3E,2EAA2E;AAC3E,kEAAkE;AAClE,0EAA0E;AAC1E,wBAAwB"}
@@ -11,7 +11,7 @@ import type { AvaSurface } from '../dataset/events.js';
11
11
  /**
12
12
  * Auto Mode coordinator.
13
13
  *
14
- * Sits on a persistent model (M2.7 for platform users) and routes tasks
14
+ * Sits on a persistent model and routes tasks
15
15
  * to the best available model by spawning fresh Agent instances.
16
16
  * Simple tasks (chat, image gen) are handled directly without spawning.
17
17
  */
@@ -34,15 +34,6 @@ export declare class AutoCoordinator {
34
34
  * Conductor.needsOrchestration gate.
35
35
  */
36
36
  private intentGate;
37
- /**
38
- * True when a platform key is present. On platform we split light-tier
39
- * personas onto a cheap fast model (a cost optimisation — the platform
40
- * holds every key). On BYOK (false) we DON'T: the whole persona team runs
41
- * on the user's one coordinator model, so the full Ava orchestration runs
42
- * on the model they actually chose, never silently handed to a model they
43
- * may not even have a key for.
44
- */
45
- private readonly hasPlatform;
46
37
  private activeAgent;
47
38
  /** Agents for direct (no-team) turns, keyed `provider:model`. Built lazily
48
39
  * by resolveDirectAgent and reused — a chat-heavy session would otherwise
@@ -79,7 +70,6 @@ export declare class AutoCoordinator {
79
70
  cwd: string;
80
71
  sharedState: Record<string, unknown>;
81
72
  availableProviders: Set<string>;
82
- platformKey?: string;
83
73
  userPreferences?: UserRoutePreferences;
84
74
  projectInstructions?: string;
85
75
  systemPromptOpts?: Record<string, unknown>;
@@ -92,9 +82,9 @@ export declare class AutoCoordinator {
92
82
  mode?: RoutingMode;
93
83
  });
94
84
  /**
95
- * Create an AutoCoordinator with the correct coordinator model.
96
- * Platform users: Kimi K2.5. BYOK users: best available. Free: Qwen Flash.
97
- * Returns null if no model is available.
85
+ * Create an AutoCoordinator with the correct coordinator model — the mode's
86
+ * pinned coordinator, else the best the user's keys reach. Returns null if
87
+ * no model is available.
98
88
  */
99
89
  static create(opts: {
100
90
  providerRegistry: ProviderRegistry;
@@ -102,7 +92,6 @@ export declare class AutoCoordinator {
102
92
  cwd: string;
103
93
  sharedState: Record<string, unknown>;
104
94
  availableProviders: Set<string>;
105
- platformKey?: string;
106
95
  userPreferences?: UserRoutePreferences;
107
96
  projectInstructions?: string;
108
97
  systemPromptOpts?: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"auto-coordinator.d.ts","sourceRoot":"","sources":["../../src/auto/auto-coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,kBAAkB,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAA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,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,2BAA2B;IAUnC;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,kBAAkB;YAeZ,cAAc;IAiC5B,OAAO,CAAC,aAAa;CAItB"}
@@ -6,10 +6,10 @@ import { classifyTask } from './task-classifier.js';
6
6
  import { ModelRouter } from './model-router.js';
7
7
  import { generateBrief, formatBriefAsSystem } from './brief-generator.js';
8
8
  import { ContextTracker } from './context-tracker.js';
9
- import { resolveCoordinatorModel } from './coordinator-model.js';
9
+ import { resolveCoordinatorModel, resolveMaestroCoordinator, resolveAuroraCoordinator, resolveOnFleet, FLEET_PROVIDERS } from './coordinator-model.js';
10
10
  import { classifyIntent, classifyTeachDepth, resolveIntentGateModel } from './intent-gate.js';
11
11
  import { SUPERNOVA_COORDINATOR_ID, SUPERNOVA_BUILDER_ID, SUPERNOVA_VISION_ID } from './supernova-router.js';
12
- import { AURORA_COORDINATOR_ID, AURORA_BUILDER_ID, AURORA_VISION_ID } from './aurora-router.js';
12
+ import { AURORA_BUILDER_ID, AURORA_VISION_ID } from './aurora-router.js';
13
13
  import { LONGXIANG_COORDINATOR_ID, LONGXIANG_BUILDER_ID, LONGXIANG_VISION_ID } from './longxiang-router.js';
14
14
  import { buildSystemPrompt } from '../agent/system-prompt.js';
15
15
  import { TaskExecutor } from './task-executor.js';
@@ -37,7 +37,7 @@ const CATEGORY_TO_MODE = {
37
37
  /**
38
38
  * Auto Mode coordinator.
39
39
  *
40
- * Sits on a persistent model (M2.7 for platform users) and routes tasks
40
+ * Sits on a persistent model and routes tasks
41
41
  * to the best available model by spawning fresh Agent instances.
42
42
  * Simple tasks (chat, image gen) are handled directly without spawning.
43
43
  */
@@ -60,15 +60,6 @@ export class AutoCoordinator {
60
60
  * Conductor.needsOrchestration gate.
61
61
  */
62
62
  intentGate;
63
- /**
64
- * True when a platform key is present. On platform we split light-tier
65
- * personas onto a cheap fast model (a cost optimisation — the platform
66
- * holds every key). On BYOK (false) we DON'T: the whole persona team runs
67
- * on the user's one coordinator model, so the full Ava orchestration runs
68
- * on the model they actually chose, never silently handed to a model they
69
- * may not even have a key for.
70
- */
71
- hasPlatform;
72
63
  // The Agent currently executing inside run(). May be the planning task agent
73
64
  // or a Builder spawned by TaskExecutor. inject() forwards to whichever is
74
65
  // active so user mid-run messages reach the agent that's actually running.
@@ -111,70 +102,72 @@ export class AutoCoordinator {
111
102
  this.surface = opts.surface ?? 'cli';
112
103
  this.sessionId = opts.sessionId ?? randomUUID();
113
104
  this.mode = opts.mode ?? 'auto';
114
- this.router = new ModelRouter(opts.providerRegistry, opts.availableProviders, opts.platformKey, opts.userPreferences, this.mode);
115
- // Resolve the Builder model. Supernova spawns Qwen 3.7 Plus, Aurora
116
- // spawns Mistral Medium 3.5 (the merged flagship — 128B dense,
117
- // 256K context, vision encoder from scratch, 77.6% SWE-Bench Verified,
118
- // modified-MIT open weights). Auto reuses the coordinator model for
119
- // backward-compatibility with the existing tuning. If the override
120
- // can't resolve (platform not enabled, model not registered) fall
121
- // back to the coordinator model rather than block.
105
+ this.router = new ModelRouter(opts.providerRegistry, opts.availableProviders, opts.userPreferences, this.mode);
106
+ // Resolve the Builder model on the fleet's own providers: Supernova
107
+ // DeepSeek V4.1 Flash, Aurora Mistral Large 4, Maestro Qwen 3.7 Plus. If
108
+ // it can't resolve, fall back to the coordinator model rather than block.
109
+ const fleet = FLEET_PROVIDERS[this.mode];
122
110
  if (this.mode === 'supernova') {
123
- const resolved = opts.providerRegistry.resolveModel(`platform:${SUPERNOVA_BUILDER_ID}`)
124
- ?? opts.providerRegistry.resolveModel(SUPERNOVA_BUILDER_ID);
111
+ const resolved = resolveOnFleet(opts.providerRegistry, fleet, SUPERNOVA_BUILDER_ID);
125
112
  this.builderProvider = resolved?.provider ?? opts.coordinatorProvider;
126
113
  this.builderModel = resolved?.model ?? opts.coordinatorModel;
127
114
  }
128
115
  else if (this.mode === 'aurora') {
129
- // Aurora is Mistral-only — try platform-managed Mistral first
130
- // (Ava's Mistral key, includes Aurora as a managed option), then
131
- // BYOK Mistral, then fall back to coordinator if neither resolves.
132
- const resolved = opts.providerRegistry.resolveModel(`platform:${AURORA_BUILDER_ID}`)
133
- ?? opts.providerRegistry.resolveModel(`mistral:${AURORA_BUILDER_ID}`)
134
- ?? opts.providerRegistry.resolveModel(AURORA_BUILDER_ID);
116
+ const resolved = resolveOnFleet(opts.providerRegistry, fleet, AURORA_BUILDER_ID);
135
117
  this.builderProvider = resolved?.provider ?? opts.coordinatorProvider;
136
118
  this.builderModel = resolved?.model ?? opts.coordinatorModel;
137
119
  }
138
120
  else if (this.mode === 'longxiang') {
139
- // K3 builds as well as coordinates. Platform-managed first, then the
140
- // user's own Moonshot key — same ladder as the other fleets.
141
- const resolved = opts.providerRegistry.resolveModel(`platform:${LONGXIANG_BUILDER_ID}-platform`)
142
- ?? opts.providerRegistry.resolveModel(`platform:${LONGXIANG_BUILDER_ID}`)
143
- ?? opts.providerRegistry.resolveModel(`kimi:${LONGXIANG_BUILDER_ID}`)
121
+ // K3 builds as well as coordinates, on the user's own Moonshot key.
122
+ const resolved = opts.providerRegistry.resolveModel(`kimi:${LONGXIANG_BUILDER_ID}`)
144
123
  ?? opts.providerRegistry.resolveModel(LONGXIANG_BUILDER_ID);
145
124
  this.builderProvider = resolved?.provider ?? opts.coordinatorProvider;
146
125
  this.builderModel = resolved?.model ?? opts.coordinatorModel;
147
126
  }
127
+ else if (this.mode === 'auto') {
128
+ // Maestro builds on Qwen 3.7 Plus — the same model as its coding route.
129
+ // It reused the coordinator, so pinning the coordinator to 3.8 Flash
130
+ // took the Builder down with it.
131
+ const resolved = resolveOnFleet(opts.providerRegistry, fleet, 'qwen3.7-plus');
132
+ this.builderProvider = resolved?.provider ?? opts.coordinatorProvider;
133
+ this.builderModel = resolved?.model ?? opts.coordinatorModel;
134
+ }
148
135
  else {
149
136
  this.builderProvider = opts.coordinatorProvider;
150
137
  this.builderModel = opts.coordinatorModel;
151
138
  }
152
139
  // Resolve the vision model for image inputs (see field doc). Mirrors the
153
- // builder resolution: platform-managed first, then BYOK, then null.
140
+ // builder resolution: the fleet's own pick, then any vision model, then null.
154
141
  const visionId = this.mode === 'aurora'
155
142
  ? AURORA_VISION_ID
156
143
  : this.mode === 'longxiang'
157
144
  ? LONGXIANG_VISION_ID
158
145
  : SUPERNOVA_VISION_ID;
159
- const visionResolved = opts.providerRegistry.resolveModel(`platform:${visionId}`)
160
- ?? opts.providerRegistry.resolveModel(visionId)
161
- ?? (this.mode === 'aurora' ? opts.providerRegistry.resolveModel(`mistral:${visionId}`) : null)
162
- // Net under the fleet's own choice, NOT a replacement for it. Each
163
- // fleet names a vision model deliberately — Aurora's is Mistral Medium
164
- // because its encoder handles odd aspect ratios best, and because
165
- // Aurora is the EU-sovereign fleet, so routing its images to whatever
166
- // is cheapest would break the promise the fleet exists to make. Only
167
- // when the fleet's own pick is unreachable do we ask the broader
168
- // question: does this user hold a key for anything that can see?
169
- ?? resolveVisionDescriber(opts.providerRegistry);
146
+ // A locked fleet reads images on its own providers or not at all.
147
+ const fleetVision = (providers) => {
148
+ for (const id of [visionId, 'qwen3.7-plus', 'deepseek-flash', 'mistral-small-4']) {
149
+ const r = resolveOnFleet(opts.providerRegistry, providers, id);
150
+ if (r?.model.supportsVision)
151
+ return r;
152
+ }
153
+ return null;
154
+ };
155
+ const visionResolved = fleet ? fleetVision(fleet) :
156
+ opts.providerRegistry.resolveModel(visionId)
157
+ ?? (this.mode === 'aurora' ? opts.providerRegistry.resolveModel(`mistral:${visionId}`) : null)
158
+ // Net under the fleet's own choice, NOT a replacement for it. Each
159
+ // fleet names a vision model deliberately, and a locked fleet never
160
+ // reaches this line — it reads images on its own providers or not at
161
+ // all (fleetVision above). Only
162
+ // when the fleet's own pick is unreachable do we ask the broader
163
+ // question: does this user hold a key for anything that can see?
164
+ ?? resolveVisionDescriber(opts.providerRegistry);
170
165
  this.visionProvider = visionResolved?.provider ?? null;
171
166
  this.visionModel = visionResolved?.model ?? null;
172
- // Resolve a cheap fast model for the upstream intent gate.
173
- // Prefers Qwen 3.5 Flash on platform; falls through to Haiku/DeepSeek
174
- // on BYOK. Null if nothing viable is reachable — in that case the
175
- // spawn decision falls back to the regex-based Conductor gate only.
176
- this.hasPlatform = !!opts.platformKey || opts.availableProviders.has('platform');
177
- this.intentGate = resolveIntentGateModel(opts.providerRegistry, opts.availableProviders, this.hasPlatform);
167
+ // Resolve a cheap fast model for the upstream intent gate. Null if
168
+ // nothing viable is reachable — in that case the spawn decision falls
169
+ // back to the regex-based Conductor gate only.
170
+ this.intentGate = resolveIntentGateModel(opts.providerRegistry, opts.availableProviders, fleet);
178
171
  // The coordinator's own agent — handles direct tasks (chat, simple questions).
179
172
  // Wired with the vision bridge so a text-only coordinator (DeepSeek V4 /
180
173
  // Mistral) can still "see" attached images: the bridge runs the vision model
@@ -191,9 +184,9 @@ export class AutoCoordinator {
191
184
  });
192
185
  }
193
186
  /**
194
- * Create an AutoCoordinator with the correct coordinator model.
195
- * Platform users: Kimi K2.5. BYOK users: best available. Free: Qwen Flash.
196
- * Returns null if no model is available.
187
+ * Create an AutoCoordinator with the correct coordinator model — the mode's
188
+ * pinned coordinator, else the best the user's keys reach. Returns null if
189
+ * no model is available.
197
190
  */
198
191
  static create(opts) {
199
192
  // Supernova / Aurora mode pin specific coordinators — that's part of
@@ -201,55 +194,30 @@ export class AutoCoordinator {
201
194
  // Large 3. Falls through to the default priority ladder if the
202
195
  // operator already passed an explicit preference (rare; means they're
203
196
  // admin-overriding the override).
204
- const hasPlatform = !!opts.platformKey || opts.availableProviders.has('platform');
205
197
  let coordinator = null;
206
- // An explicit pin wins — but only when it can actually be reached. The
207
- // extension and IDE pin Supernova to a PLATFORM model; with no account
208
- // (fully BYOK, 1 Nov 2026) that never resolves, and treating it as the
209
- // override anyway skipped the Supernova branch below, so an own-key user
210
- // silently got the generic ladder instead of their DeepSeek coordinator.
211
- if (opts.preferredCoordinatorId && opts.providerRegistry.resolveModel(opts.preferredCoordinatorId)) {
198
+ // An explicit pin wins — but only when it can actually be reached.
199
+ // Treating an unreachable pin as the override anyway would skip the mode
200
+ // branch below and silently hand the turn to the generic ladder.
201
+ const pin = opts.preferredCoordinatorId ? opts.providerRegistry.resolveModel(opts.preferredCoordinatorId) : undefined;
202
+ // A pin never takes a locked fleet off its own providers.
203
+ const lock = FLEET_PROVIDERS[opts.mode ?? 'auto'];
204
+ const pinAllowed = !!pin && (!lock || lock.includes(pin.provider.name));
205
+ if (pinAllowed) {
212
206
  // Explicit operator override wins for any mode.
213
- coordinator = resolveCoordinatorModel(opts.providerRegistry, opts.availableProviders, hasPlatform, opts.preferredCoordinatorId);
207
+ coordinator = resolveCoordinatorModel(opts.providerRegistry, opts.availableProviders, opts.preferredCoordinatorId);
214
208
  }
215
209
  else if (opts.mode === 'aurora') {
216
- // Aurora is Mistral-only — never silently routes to a non-Mistral
217
- // coordinator. Try Medium 3.5 platform-managed → BYOK → Large 3 reserve.
218
- // Returns null if no Mistral model is reachable so the caller can surface
219
- // a clear error rather than breaking the EU-stack guarantee with a Qwen
220
- // fallback. The registry bridges the native/-platform id-suffix duality,
221
- // so the native AURORA_* ids resolve on both managed and BYOK surfaces.
222
- const tries = [
223
- `platform:${AURORA_COORDINATOR_ID}`,
224
- `mistral:${AURORA_COORDINATOR_ID}`,
225
- AURORA_COORDINATOR_ID,
226
- `platform:${AURORA_BUILDER_ID}`,
227
- `mistral:${AURORA_BUILDER_ID}`,
228
- AURORA_BUILDER_ID,
229
- ];
230
- for (const id of tries) {
231
- const resolved = opts.providerRegistry.resolveModel(id);
232
- if (resolved) {
233
- coordinator = {
234
- provider: resolved.provider,
235
- model: resolved.model,
236
- reason: `${resolved.model.name} — Aurora coordinator (Mistral-only routing)`,
237
- };
238
- break;
239
- }
240
- }
210
+ // Aurora is Mistral only: Large 4, then Small 4, on the user's Mistral
211
+ // key. Null without one, and the caller says Mistral is missing.
212
+ coordinator = resolveAuroraCoordinator(opts.providerRegistry);
241
213
  }
242
214
  else if (opts.mode === 'longxiang') {
243
215
  // Longxiang pins Kimi K3 in BOTH the coordinator and Builder seats —
244
216
  // it's the strongest open coder we have and a strong tool-driver, so
245
217
  // there's nothing to gain by splitting them.
246
218
  //
247
- // Resolves platform-managed first, then BYOK — the same ladder every
248
- // other fleet uses. A plan runs Longxiang on credits; a BYOK user runs
249
- // it on their own Moonshot key.
219
+ // On the user's own Moonshot key.
250
220
  const tries = [
251
- `platform:${LONGXIANG_COORDINATOR_ID}-platform`,
252
- `platform:${LONGXIANG_COORDINATOR_ID}`,
253
221
  `kimi:${LONGXIANG_COORDINATOR_ID}`,
254
222
  LONGXIANG_COORDINATOR_ID,
255
223
  ];
@@ -266,14 +234,11 @@ export class AutoCoordinator {
266
234
  }
267
235
  }
268
236
  else if (opts.mode === 'supernova') {
269
- // Supernova pins DeepSeek Flash as coordinator — try platform-managed →
270
- // BYOK deepseek → native. Unlike Aurora, Supernova is polyglot, so it
271
- // falls through to the generic priority ladder if DeepSeek isn't
272
- // reachable rather than erroring.
237
+ // Supernova's coordinator is DeepSeek V4.1 Flash, on the user's DeepSeek
238
+ // key — and only that. Without it the seat stays empty and the caller
239
+ // says DeepSeek is missing; it is never handed to another key.
273
240
  for (const id of [
274
- `platform:${SUPERNOVA_COORDINATOR_ID}`,
275
241
  `deepseek:${SUPERNOVA_COORDINATOR_ID}`,
276
- SUPERNOVA_COORDINATOR_ID,
277
242
  ]) {
278
243
  const resolved = opts.providerRegistry.resolveModel(id);
279
244
  if (resolved) {
@@ -285,13 +250,11 @@ export class AutoCoordinator {
285
250
  break;
286
251
  }
287
252
  }
288
- if (!coordinator) {
289
- coordinator = resolveCoordinatorModel(opts.providerRegistry, opts.availableProviders, hasPlatform);
290
- }
291
253
  }
292
254
  else {
293
- // Auto / Maestro — generic priority ladder.
294
- coordinator = resolveCoordinatorModel(opts.providerRegistry, opts.availableProviders, hasPlatform);
255
+ // Maestro — Qwen-only. Null without a Qwen key, so the caller says so
256
+ // rather than seating whatever other key the user holds.
257
+ coordinator = resolveMaestroCoordinator(opts.providerRegistry);
295
258
  }
296
259
  if (!coordinator)
297
260
  return null;
@@ -778,21 +741,21 @@ export class AutoCoordinator {
778
741
  // No Flash available — preserve existing behaviour (orchestrate).
779
742
  return true;
780
743
  }
781
- const systemPrompt = `You are a gate for an AI coding agent. A user sent a message, and the agent speculatively created a multi-task plan. Your job: decide if the user actually wants all those tasks executed, or if they asked for something simpler.
782
-
783
- Output exactly one word:
784
- - yes — the user's message genuinely asked for a multi-step project or explicitly requested a plan/breakdown
785
- - no — the user asked for one thing (a single action like "launch the dev", "run tests", "show me X", "explain Y"), and the agent over-expanded the scope
786
-
744
+ const systemPrompt = `You are a gate for an AI coding agent. A user sent a message, and the agent speculatively created a multi-task plan. Your job: decide if the user actually wants all those tasks executed, or if they asked for something simpler.
745
+
746
+ Output exactly one word:
747
+ - yes — the user's message genuinely asked for a multi-step project or explicitly requested a plan/breakdown
748
+ - no — the user asked for one thing (a single action like "launch the dev", "run tests", "show me X", "explain Y"), and the agent over-expanded the scope
749
+
787
750
  When in doubt, output "no". It's better to do the one thing the user asked and wait for follow-up than to execute a 5-task speculative plan they didn't request.`;
788
- const userPrompt = `User's message:
789
- """
790
- ${userMessage.slice(0, 500)}
791
- """
792
-
793
- Tasks the agent speculatively created:
794
- ${taskTitles.map((t, i) => `${i + 1}. ${t}`).join('\n')}
795
-
751
+ const userPrompt = `User's message:
752
+ """
753
+ ${userMessage.slice(0, 500)}
754
+ """
755
+
756
+ Tasks the agent speculatively created:
757
+ ${taskTitles.map((t, i) => `${i + 1}. ${t}`).join('\n')}
758
+
796
759
  Should these tasks be executed as a plan? Output yes or no.`;
797
760
  try {
798
761
  const timeout = new Promise((_, reject) => setTimeout(() => reject(new Error('orchestration gate timeout')), 2500));
@@ -955,16 +918,10 @@ Should these tasks be executed as a plan? Output yes or no.`;
955
918
  const taskConductor = new Conductor({
956
919
  provider: route.provider,
957
920
  model: route.model,
958
- // PLATFORM: thread the intent-gate's cheap fast pair through so
959
- // personas tagged modelTier:'light' (critics, summarisers, readers)
960
- // run on it instead of the heavy route model — a cost optimisation
961
- // the platform can afford because it holds every key.
962
- // BYOK: pass nothing, so the Conductor runs EVERY persona on the
921
+ // No light-tier split: the Conductor runs EVERY persona on the
963
922
  // user's coordinator model. The full persona team — the real Ava
964
923
  // magic — runs on the exact model they chose, never split off to a
965
924
  // cheaper model they might not have a key for.
966
- lightProvider: this.hasPlatform ? this.intentGate?.provider : undefined,
967
- lightModel: this.hasPlatform ? this.intentGate?.model : undefined,
968
925
  // Vision bridge so text-only personas can see attached images.
969
926
  visionProvider: this.visionProvider ?? undefined,
970
927
  visionModel: this.visionModel ?? undefined,