@project-ava-supernova/core 0.2.172 → 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 (138) 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/audit/cost.d.ts.map +1 -1
  5. package/dist/audit/cost.js +1 -0
  6. package/dist/audit/cost.js.map +1 -1
  7. package/dist/auto/aurora-router.d.ts +20 -54
  8. package/dist/auto/aurora-router.d.ts.map +1 -1
  9. package/dist/auto/aurora-router.js +40 -128
  10. package/dist/auto/aurora-router.js.map +1 -1
  11. package/dist/auto/auto-coordinator.d.ts.map +1 -1
  12. package/dist/auto/auto-coordinator.js +64 -71
  13. package/dist/auto/auto-coordinator.js.map +1 -1
  14. package/dist/auto/coordinator-model.d.ts +35 -0
  15. package/dist/auto/coordinator-model.d.ts.map +1 -1
  16. package/dist/auto/coordinator-model.js +59 -1
  17. package/dist/auto/coordinator-model.js.map +1 -1
  18. package/dist/auto/index.d.ts +1 -1
  19. package/dist/auto/index.d.ts.map +1 -1
  20. package/dist/auto/index.js +1 -1
  21. package/dist/auto/index.js.map +1 -1
  22. package/dist/auto/intent-gate.d.ts +3 -1
  23. package/dist/auto/intent-gate.d.ts.map +1 -1
  24. package/dist/auto/intent-gate.js +14 -1
  25. package/dist/auto/intent-gate.js.map +1 -1
  26. package/dist/auto/longxiang-router.d.ts.map +1 -1
  27. package/dist/auto/longxiang-router.js +3 -4
  28. package/dist/auto/longxiang-router.js.map +1 -1
  29. package/dist/auto/model-router.d.ts +6 -0
  30. package/dist/auto/model-router.d.ts.map +1 -1
  31. package/dist/auto/model-router.js +42 -19
  32. package/dist/auto/model-router.js.map +1 -1
  33. package/dist/auto/routing-modes.d.ts +5 -6
  34. package/dist/auto/routing-modes.d.ts.map +1 -1
  35. package/dist/auto/routing-modes.js +5 -6
  36. package/dist/auto/routing-modes.js.map +1 -1
  37. package/dist/auto/supernova-router.d.ts +5 -11
  38. package/dist/auto/supernova-router.d.ts.map +1 -1
  39. package/dist/auto/supernova-router.js +19 -59
  40. package/dist/auto/supernova-router.js.map +1 -1
  41. package/dist/auto/task-classifier.js +3 -3
  42. package/dist/auto/task-classifier.js.map +1 -1
  43. package/dist/docs/data/providers.d.ts.map +1 -1
  44. package/dist/docs/data/providers.js +25 -16
  45. package/dist/docs/data/providers.js.map +1 -1
  46. package/dist/i18n/locales/ar.d.ts.map +1 -1
  47. package/dist/i18n/locales/ar.js +6 -4
  48. package/dist/i18n/locales/ar.js.map +1 -1
  49. package/dist/i18n/locales/de.d.ts.map +1 -1
  50. package/dist/i18n/locales/de.js +6 -4
  51. package/dist/i18n/locales/de.js.map +1 -1
  52. package/dist/i18n/locales/en.d.ts +2 -0
  53. package/dist/i18n/locales/en.d.ts.map +1 -1
  54. package/dist/i18n/locales/en.js +6 -4
  55. package/dist/i18n/locales/en.js.map +1 -1
  56. package/dist/i18n/locales/es.d.ts.map +1 -1
  57. package/dist/i18n/locales/es.js +6 -4
  58. package/dist/i18n/locales/es.js.map +1 -1
  59. package/dist/i18n/locales/fr.d.ts.map +1 -1
  60. package/dist/i18n/locales/fr.js +6 -4
  61. package/dist/i18n/locales/fr.js.map +1 -1
  62. package/dist/i18n/locales/hi.d.ts.map +1 -1
  63. package/dist/i18n/locales/hi.js +6 -4
  64. package/dist/i18n/locales/hi.js.map +1 -1
  65. package/dist/i18n/locales/id.d.ts.map +1 -1
  66. package/dist/i18n/locales/id.js +6 -4
  67. package/dist/i18n/locales/id.js.map +1 -1
  68. package/dist/i18n/locales/it.d.ts.map +1 -1
  69. package/dist/i18n/locales/it.js +6 -4
  70. package/dist/i18n/locales/it.js.map +1 -1
  71. package/dist/i18n/locales/ja.d.ts.map +1 -1
  72. package/dist/i18n/locales/ja.js +6 -4
  73. package/dist/i18n/locales/ja.js.map +1 -1
  74. package/dist/i18n/locales/ko.d.ts.map +1 -1
  75. package/dist/i18n/locales/ko.js +6 -4
  76. package/dist/i18n/locales/ko.js.map +1 -1
  77. package/dist/i18n/locales/nl.d.ts.map +1 -1
  78. package/dist/i18n/locales/nl.js +6 -4
  79. package/dist/i18n/locales/nl.js.map +1 -1
  80. package/dist/i18n/locales/pl.d.ts.map +1 -1
  81. package/dist/i18n/locales/pl.js +6 -4
  82. package/dist/i18n/locales/pl.js.map +1 -1
  83. package/dist/i18n/locales/pt.d.ts.map +1 -1
  84. package/dist/i18n/locales/pt.js +6 -4
  85. package/dist/i18n/locales/pt.js.map +1 -1
  86. package/dist/i18n/locales/ru.d.ts.map +1 -1
  87. package/dist/i18n/locales/ru.js +6 -4
  88. package/dist/i18n/locales/ru.js.map +1 -1
  89. package/dist/i18n/locales/th.d.ts.map +1 -1
  90. package/dist/i18n/locales/th.js +6 -4
  91. package/dist/i18n/locales/th.js.map +1 -1
  92. package/dist/i18n/locales/tr.d.ts.map +1 -1
  93. package/dist/i18n/locales/tr.js +6 -4
  94. package/dist/i18n/locales/tr.js.map +1 -1
  95. package/dist/i18n/locales/uk.d.ts.map +1 -1
  96. package/dist/i18n/locales/uk.js +6 -4
  97. package/dist/i18n/locales/uk.js.map +1 -1
  98. package/dist/i18n/locales/vi.d.ts.map +1 -1
  99. package/dist/i18n/locales/vi.js +6 -4
  100. package/dist/i18n/locales/vi.js.map +1 -1
  101. package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
  102. package/dist/i18n/locales/zh-CN.js +6 -4
  103. package/dist/i18n/locales/zh-CN.js.map +1 -1
  104. package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
  105. package/dist/i18n/locales/zh-TW.js +6 -4
  106. package/dist/i18n/locales/zh-TW.js.map +1 -1
  107. package/dist/index.d.ts +1 -1
  108. package/dist/index.d.ts.map +1 -1
  109. package/dist/index.js +1 -1
  110. package/dist/index.js.map +1 -1
  111. package/dist/personas/conductor.js +1 -1
  112. package/dist/personas/conductor.js.map +1 -1
  113. package/dist/providers/mistral/models.d.ts.map +1 -1
  114. package/dist/providers/mistral/models.js +26 -6
  115. package/dist/providers/mistral/models.js.map +1 -1
  116. package/dist/tools/design-studio-tools.d.ts +5 -0
  117. package/dist/tools/design-studio-tools.d.ts.map +1 -1
  118. package/dist/tools/design-studio-tools.js +5 -0
  119. package/dist/tools/design-studio-tools.js.map +1 -1
  120. package/dist/tools/generate-image.d.ts +1 -1
  121. package/dist/tools/generate-image.d.ts.map +1 -1
  122. package/dist/tools/generate-image.js +1 -13
  123. package/dist/tools/generate-image.js.map +1 -1
  124. package/dist/tools/generate-video.d.ts +1 -0
  125. package/dist/tools/generate-video.d.ts.map +1 -1
  126. package/dist/tools/generate-video.js +1 -0
  127. package/dist/tools/generate-video.js.map +1 -1
  128. package/dist/tools/generate-voice.d.ts +1 -0
  129. package/dist/tools/generate-voice.d.ts.map +1 -1
  130. package/dist/tools/generate-voice.js +1 -0
  131. package/dist/tools/generate-voice.js.map +1 -1
  132. package/dist/tools/tool-registry.d.ts +9 -1
  133. package/dist/tools/tool-registry.d.ts.map +1 -1
  134. package/dist/tools/tool-registry.js +17 -2
  135. package/dist/tools/tool-registry.js.map +1 -1
  136. package/dist/tools/types.d.ts +7 -0
  137. package/dist/tools/types.d.ts.map +1 -1
  138. package/package.json +1 -1
@@ -1,62 +1,29 @@
1
1
  import type { TaskCategory } from './types.js';
2
2
  /**
3
- * Aurora mode — Mistral-only polyglot routing, three-tier fleet.
3
+ * Aurora mode — Mistral only, two models (his call, 2 Nov 2026).
4
4
  *
5
- * The European-stack analogue of Supernova: same shape, different fleet.
6
- * Every route lands on a Mistral model so an Aurora deployment never
7
- * leaves European infrastructure — important for EU customers under
8
- * data-residency / GDPR / AI Act constraints who can't buy a US AI stack
9
- * and who want a sovereign full-stack option (model + agent + tooling).
5
+ * - Mistral Large 4 — Coordinator, Builder, coding, planning, security,
6
+ * teaching, image reading and long context. Mistral's
7
+ * flagship since 6 Oct 2026: 1M context, reasoning,
8
+ * native image input; 61.7% on DeepSWE v1.1 by
9
+ * Mistral's own figure. $0.70 / $2.10 per million.
10
+ * - Mistral Small 4 — Chat, brainstorm, image-generation orchestration and
11
+ * the intent gate. 256K, reasoning, image input,
12
+ * $0.15 / $0.60.
10
13
  *
11
- * - Mistral Medium 3.5 — Coordinator + deep specialists + Builder + vision.
12
- * Mistral's frontier flagship: 128B dense, 256K, from-
13
- * scratch vision encoder, configurable reasoning,
14
- * 77.6% SWE-Bench Verified, Artificial Analysis
15
- * Intelligence Index 39 (#2 of 61). The best Mistral
16
- * model — so it holds the lead seat.
17
- * - Mistral Small 4 — High-volume workhorse + intent gate. 119B, 256K,
18
- * configurable reasoning, vision. Index 28 and just
19
- * $0.15/$0.60 — cheaper AND smarter than Large 3.
20
- * Carries chat, image-gen orchestration, long-context
21
- * grunt, brainstorm, and the light specialists.
22
- * - Mistral Large 3 — Heavy reserve / fallback only. 675B/41B MoE, 256K,
23
- * Apache-2.0, multimodal — the broadest-knowledge,
24
- * most-permissive sovereign self-host option. But
25
- * *non-reasoning* (Index 23), so it holds no primary
26
- * route; it's the heavy fallback and the natural re-
27
- * promotion target when its reasoning variant ships.
14
+ * Each falls back to the other. Medium 3.5 (the old lead) and Large 3 (the
15
+ * old reserve) are gone from the fleet: Mistral deprecated both on 31 Oct 2026
16
+ * and switches them off on 30 Apr 2027, naming Large 4 as the replacement.
28
17
  *
29
- * Frontier-leads topology (Medium 3.5 → Small 4 → Large-3-reserve): the old
30
- * config inverted this, running the weakest non-reasoning model (Large 3) in
31
- * the coordinator seat with the frontier model parked mid-tier. This puts the
32
- * best model where it matters and lets the cheap-but-capable Small 4 carry
33
- * volume — quality up, cost roughly flat.
34
- *
35
- * Aurora is deliberately Mistral-only. If a Mistral model is unavailable,
36
- * the router returns null and surfaces an error rather than silently
37
- * cross-routing — that's the EU-stack guarantee. Users who want graceful
38
- * degradation pick Maestro or Supernova instead.
39
- *
40
- * Re-tiered 2026-06-XX once Artificial Analysis confirmed Medium 3.5 (39) and
41
- * Small 4 (28) both out-score Large 3 (23).
18
+ * Aurora is locked to Mistral (FLEET_PROVIDERS). A seat Mistral can't fill
19
+ * stays empty and the app says the Mistral key is missing — it is never
20
+ * handed to another lab. Aurora was dark from 6 Oct to 2 Nov 2026 because
21
+ * Mistral never answered our approach; with every user on their own key, the
22
+ * fleet needs nothing from Mistral, so it came back.
42
23
  */
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 declare 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 declare 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 declare 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. */
24
+ export declare const AURORA_COORDINATOR_ID = "mistral-large-4";
25
+ export declare const AURORA_BUILDER_ID = "mistral-large-4";
26
+ export declare const AURORA_VISION_ID = "mistral-large-4";
60
27
  export declare const AURORA_INTENT_GATE_ID = "mistral-small-4";
61
28
  export interface AuroraRouteEntry {
62
29
  modelId: string;
@@ -67,5 +34,4 @@ export interface AuroraRouteEntry {
67
34
  creationModelId?: string;
68
35
  }
69
36
  export declare const AURORA_ROUTES: Record<TaskCategory, AuroraRouteEntry>;
70
- export declare const AURORA_PERSONA_MODEL: Record<string, string>;
71
37
  //# sourceMappingURL=aurora-router.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aurora-router.d.ts","sourceRoot":"","sources":["../../src/auto/aurora-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAIH;;;;;;qBAMqB;AACrB,eAAO,MAAM,qBAAqB,uBAAuB,CAAC;AAE1D;2EAC2E;AAC3E,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AAEtD;8DAC8D;AAC9D,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD;;wDAEwD;AACxD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAOvD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gGAAgG;IAChG,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE,gBAAgB,CA8BhE,CAAC;AAmBF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8BvD,CAAC"}
1
+ {"version":3,"file":"aurora-router.d.ts","sourceRoot":"","sources":["../../src/auto/aurora-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAClD,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAMvD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gGAAgG;IAChG,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAehE,CAAC"}
@@ -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,"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ACP,QAAQ,EAAE,OAAO,EAAE,EACnB,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,EAAE,CAAC;YAmBP,QAAQ;IAwMtB;;;OAGG;YACW,cAAc;IA8K5B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,kBAAkB;IA8B1B;;;;OAIG;YACW,kBAAkB;IAchC;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI;IAIzC,uEAAuE;IACvE,OAAO,CAAC,cAAc;IAKtB;;;;;;;;;;;;OAYG;YACW,iBAAiB;IAuF/B;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAkC1B;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAQ7B,kEAAkE;IAC5D,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAI/G,wDAAwD;IAClD,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAIhH,+BAA+B;IAC/B,cAAc,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI;YAMnC,cAAc;IAgU5B;;;;;;OAMG;YACW,wBAAwB;IA+CtC,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';
@@ -103,22 +103,17 @@ export class AutoCoordinator {
103
103
  this.sessionId = opts.sessionId ?? randomUUID();
104
104
  this.mode = opts.mode ?? 'auto';
105
105
  this.router = new ModelRouter(opts.providerRegistry, opts.availableProviders, opts.userPreferences, this.mode);
106
- // Resolve the Builder model. Supernova spawns Qwen 3.7 Plus, Aurora
107
- // spawns Mistral Medium 3.5 (the merged flagship — 128B dense,
108
- // 256K context, vision encoder from scratch, 77.6% SWE-Bench Verified,
109
- // modified-MIT open weights). Auto reuses the coordinator model for
110
- // backward-compatibility with the existing tuning. If the override
111
- // can't resolve (no key for it) fall back to the coordinator model
112
- // rather than block.
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];
113
110
  if (this.mode === 'supernova') {
114
- const resolved = opts.providerRegistry.resolveModel(SUPERNOVA_BUILDER_ID);
111
+ const resolved = resolveOnFleet(opts.providerRegistry, fleet, SUPERNOVA_BUILDER_ID);
115
112
  this.builderProvider = resolved?.provider ?? opts.coordinatorProvider;
116
113
  this.builderModel = resolved?.model ?? opts.coordinatorModel;
117
114
  }
118
115
  else if (this.mode === 'aurora') {
119
- // Aurora is Mistral-only — the user's Mistral key, else the coordinator.
120
- const resolved = opts.providerRegistry.resolveModel(`mistral:${AURORA_BUILDER_ID}`)
121
- ?? opts.providerRegistry.resolveModel(AURORA_BUILDER_ID);
116
+ const resolved = resolveOnFleet(opts.providerRegistry, fleet, AURORA_BUILDER_ID);
122
117
  this.builderProvider = resolved?.provider ?? opts.coordinatorProvider;
123
118
  this.builderModel = resolved?.model ?? opts.coordinatorModel;
124
119
  }
@@ -129,6 +124,14 @@ export class AutoCoordinator {
129
124
  this.builderProvider = resolved?.provider ?? opts.coordinatorProvider;
130
125
  this.builderModel = resolved?.model ?? opts.coordinatorModel;
131
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
+ }
132
135
  else {
133
136
  this.builderProvider = opts.coordinatorProvider;
134
137
  this.builderModel = opts.coordinatorModel;
@@ -140,22 +143,31 @@ export class AutoCoordinator {
140
143
  : this.mode === 'longxiang'
141
144
  ? LONGXIANG_VISION_ID
142
145
  : SUPERNOVA_VISION_ID;
143
- const visionResolved = opts.providerRegistry.resolveModel(visionId)
144
- ?? (this.mode === 'aurora' ? opts.providerRegistry.resolveModel(`mistral:${visionId}`) : null)
145
- // Net under the fleet's own choice, NOT a replacement for it. Each
146
- // fleet names a vision model deliberately — Aurora's is Mistral Medium
147
- // because its encoder handles odd aspect ratios best, and because
148
- // Aurora is the EU-sovereign fleet, so routing its images to whatever
149
- // is cheapest would break the promise the fleet exists to make. Only
150
- // when the fleet's own pick is unreachable do we ask the broader
151
- // question: does this user hold a key for anything that can see?
152
- ?? 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);
153
165
  this.visionProvider = visionResolved?.provider ?? null;
154
166
  this.visionModel = visionResolved?.model ?? null;
155
167
  // Resolve a cheap fast model for the upstream intent gate. Null if
156
168
  // nothing viable is reachable — in that case the spawn decision falls
157
169
  // back to the regex-based Conductor gate only.
158
- this.intentGate = resolveIntentGateModel(opts.providerRegistry, opts.availableProviders);
170
+ this.intentGate = resolveIntentGateModel(opts.providerRegistry, opts.availableProviders, fleet);
159
171
  // The coordinator's own agent — handles direct tasks (chat, simple questions).
160
172
  // Wired with the vision bridge so a text-only coordinator (DeepSeek V4 /
161
173
  // Mistral) can still "see" attached images: the bridge runs the vision model
@@ -186,33 +198,18 @@ export class AutoCoordinator {
186
198
  // An explicit pin wins — but only when it can actually be reached.
187
199
  // Treating an unreachable pin as the override anyway would skip the mode
188
200
  // branch below and silently hand the turn to the generic ladder.
189
- if (opts.preferredCoordinatorId && opts.providerRegistry.resolveModel(opts.preferredCoordinatorId)) {
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) {
190
206
  // Explicit operator override wins for any mode.
191
207
  coordinator = resolveCoordinatorModel(opts.providerRegistry, opts.availableProviders, opts.preferredCoordinatorId);
192
208
  }
193
209
  else if (opts.mode === 'aurora') {
194
- // Aurora is Mistral-only — never silently routes to a non-Mistral
195
- // coordinator. Medium 3.5 on the user's Mistral key, then the Large 3 reserve.
196
- // Returns null if no Mistral model is reachable so the caller can surface
197
- // a clear error rather than breaking the EU-stack guarantee with a Qwen
198
- // fallback.
199
- const tries = [
200
- `mistral:${AURORA_COORDINATOR_ID}`,
201
- AURORA_COORDINATOR_ID,
202
- `mistral:${AURORA_BUILDER_ID}`,
203
- AURORA_BUILDER_ID,
204
- ];
205
- for (const id of tries) {
206
- const resolved = opts.providerRegistry.resolveModel(id);
207
- if (resolved) {
208
- coordinator = {
209
- provider: resolved.provider,
210
- model: resolved.model,
211
- reason: `${resolved.model.name} — Aurora coordinator (Mistral-only routing)`,
212
- };
213
- break;
214
- }
215
- }
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);
216
213
  }
217
214
  else if (opts.mode === 'longxiang') {
218
215
  // Longxiang pins Kimi K3 in BOTH the coordinator and Builder seats —
@@ -237,13 +234,11 @@ export class AutoCoordinator {
237
234
  }
238
235
  }
239
236
  else if (opts.mode === 'supernova') {
240
- // Supernova pins DeepSeek Flash as coordinator, on the user's DeepSeek
241
- // key. Unlike Aurora, Supernova is polyglot, so it
242
- // falls through to the generic priority ladder if DeepSeek isn't
243
- // 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.
244
240
  for (const id of [
245
241
  `deepseek:${SUPERNOVA_COORDINATOR_ID}`,
246
- SUPERNOVA_COORDINATOR_ID,
247
242
  ]) {
248
243
  const resolved = opts.providerRegistry.resolveModel(id);
249
244
  if (resolved) {
@@ -255,13 +250,11 @@ export class AutoCoordinator {
255
250
  break;
256
251
  }
257
252
  }
258
- if (!coordinator) {
259
- coordinator = resolveCoordinatorModel(opts.providerRegistry, opts.availableProviders);
260
- }
261
253
  }
262
254
  else {
263
- // Auto / Maestro — generic priority ladder.
264
- coordinator = resolveCoordinatorModel(opts.providerRegistry, opts.availableProviders);
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);
265
258
  }
266
259
  if (!coordinator)
267
260
  return null;
@@ -748,21 +741,21 @@ export class AutoCoordinator {
748
741
  // No Flash available — preserve existing behaviour (orchestrate).
749
742
  return true;
750
743
  }
751
- 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.
752
-
753
- Output exactly one word:
754
- - yes — the user's message genuinely asked for a multi-step project or explicitly requested a plan/breakdown
755
- - 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
756
-
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
+
757
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.`;
758
- const userPrompt = `User's message:
759
- """
760
- ${userMessage.slice(0, 500)}
761
- """
762
-
763
- Tasks the agent speculatively created:
764
- ${taskTitles.map((t, i) => `${i + 1}. ${t}`).join('\n')}
765
-
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
+
766
759
  Should these tasks be executed as a plan? Output yes or no.`;
767
760
  try {
768
761
  const timeout = new Promise((_, reject) => setTimeout(() => reject(new Error('orchestration gate timeout')), 2500));