@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.
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +2 -1
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/vision-bridge.d.ts.map +1 -1
- package/dist/agent/vision-bridge.js +1 -6
- package/dist/agent/vision-bridge.js.map +1 -1
- package/dist/audit/cost.d.ts +2 -3
- package/dist/audit/cost.d.ts.map +1 -1
- package/dist/audit/cost.js +14 -25
- package/dist/audit/cost.js.map +1 -1
- package/dist/audit/export.d.ts.map +1 -1
- package/dist/audit/export.js +3 -5
- package/dist/audit/export.js.map +1 -1
- package/dist/audit/summary.d.ts +0 -2
- package/dist/audit/summary.d.ts.map +1 -1
- package/dist/audit/summary.js +2 -8
- package/dist/audit/summary.js.map +1 -1
- package/dist/audit/types.d.ts +5 -6
- package/dist/audit/types.d.ts.map +1 -1
- package/dist/auto/aurora-router.d.ts +20 -54
- package/dist/auto/aurora-router.d.ts.map +1 -1
- package/dist/auto/aurora-router.js +40 -128
- package/dist/auto/aurora-router.js.map +1 -1
- package/dist/auto/auto-coordinator.d.ts +4 -15
- package/dist/auto/auto-coordinator.d.ts.map +1 -1
- package/dist/auto/auto-coordinator.js +81 -124
- package/dist/auto/auto-coordinator.js.map +1 -1
- package/dist/auto/coordinator-model.d.ts +36 -1
- package/dist/auto/coordinator-model.d.ts.map +1 -1
- package/dist/auto/coordinator-model.js +61 -44
- package/dist/auto/coordinator-model.js.map +1 -1
- package/dist/auto/index.d.ts +1 -1
- package/dist/auto/index.d.ts.map +1 -1
- package/dist/auto/index.js +1 -1
- package/dist/auto/index.js.map +1 -1
- package/dist/auto/intent-gate.d.ts +3 -1
- package/dist/auto/intent-gate.d.ts.map +1 -1
- package/dist/auto/intent-gate.js +13 -10
- package/dist/auto/intent-gate.js.map +1 -1
- package/dist/auto/longxiang-router.d.ts.map +1 -1
- package/dist/auto/longxiang-router.js +3 -4
- package/dist/auto/longxiang-router.js.map +1 -1
- package/dist/auto/model-router.d.ts +7 -2
- package/dist/auto/model-router.d.ts.map +1 -1
- package/dist/auto/model-router.js +43 -45
- package/dist/auto/model-router.js.map +1 -1
- package/dist/auto/routing-modes.d.ts +5 -6
- package/dist/auto/routing-modes.d.ts.map +1 -1
- package/dist/auto/routing-modes.js +5 -6
- package/dist/auto/routing-modes.js.map +1 -1
- package/dist/auto/supernova-router.d.ts +5 -11
- package/dist/auto/supernova-router.d.ts.map +1 -1
- package/dist/auto/supernova-router.js +19 -59
- package/dist/auto/supernova-router.js.map +1 -1
- package/dist/auto/task-classifier.js +3 -3
- package/dist/auto/task-classifier.js.map +1 -1
- package/dist/config/account-merge.d.ts +47 -0
- package/dist/config/account-merge.d.ts.map +1 -0
- package/dist/config/account-merge.js +228 -0
- package/dist/config/account-merge.js.map +1 -0
- package/dist/config/config.d.ts +3 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +6 -5
- package/dist/config/config.js.map +1 -1
- package/dist/config/schema.d.ts +0 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/creative/dashscope.d.ts +22 -0
- package/dist/creative/dashscope.d.ts.map +1 -1
- package/dist/creative/dashscope.js +47 -0
- package/dist/creative/dashscope.js.map +1 -1
- package/dist/creative/image-local.d.ts.map +1 -1
- package/dist/creative/image-local.js +20 -3
- package/dist/creative/image-local.js.map +1 -1
- package/dist/creative/index.d.ts +0 -5
- package/dist/creative/index.d.ts.map +1 -1
- package/dist/creative/index.js +0 -20
- package/dist/creative/index.js.map +1 -1
- package/dist/dataset/events.d.ts +1 -29
- package/dist/dataset/events.d.ts.map +1 -1
- package/dist/dataset/routing.d.ts +1 -1
- package/dist/dataset/routing.d.ts.map +1 -1
- package/dist/dataset/routing.js +0 -3
- package/dist/dataset/routing.js.map +1 -1
- package/dist/docs/adapter.js.map +1 -1
- package/dist/docs/data/providers.d.ts +1 -2
- package/dist/docs/data/providers.d.ts.map +1 -1
- package/dist/docs/data/providers.js +28 -58
- package/dist/docs/data/providers.js.map +1 -1
- package/dist/docs/types.d.ts +1 -1
- package/dist/docs/types.d.ts.map +1 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +72 -22
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +72 -22
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +50 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +74 -22
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +72 -22
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +72 -22
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +72 -22
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/id.d.ts.map +1 -1
- package/dist/i18n/locales/id.js +72 -22
- package/dist/i18n/locales/id.js.map +1 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +72 -22
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +72 -22
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/ko.d.ts.map +1 -1
- package/dist/i18n/locales/ko.js +72 -22
- package/dist/i18n/locales/ko.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +72 -22
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +72 -22
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +72 -22
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +72 -22
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/th.d.ts.map +1 -1
- package/dist/i18n/locales/th.js +72 -22
- package/dist/i18n/locales/th.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +72 -22
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/uk.d.ts.map +1 -1
- package/dist/i18n/locales/uk.js +72 -22
- package/dist/i18n/locales/uk.js.map +1 -1
- package/dist/i18n/locales/vi.d.ts.map +1 -1
- package/dist/i18n/locales/vi.js +72 -22
- package/dist/i18n/locales/vi.js.map +1 -1
- package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
- package/dist/i18n/locales/zh-CN.js +72 -22
- package/dist/i18n/locales/zh-CN.js.map +1 -1
- package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
- package/dist/i18n/locales/zh-TW.js +72 -22
- package/dist/i18n/locales/zh-TW.js.map +1 -1
- package/dist/index.d.ts +7 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -10
- package/dist/index.js.map +1 -1
- package/dist/personas/conductor.js +1 -1
- package/dist/personas/conductor.js.map +1 -1
- package/dist/projects/storage-categories.d.ts.map +1 -1
- package/dist/projects/storage-categories.js +8 -1
- package/dist/projects/storage-categories.js.map +1 -1
- package/dist/providers/base-provider.d.ts +17 -2
- package/dist/providers/base-provider.d.ts.map +1 -1
- package/dist/providers/base-provider.js +32 -2
- package/dist/providers/base-provider.js.map +1 -1
- package/dist/providers/catalog.d.ts +0 -11
- package/dist/providers/catalog.d.ts.map +1 -1
- package/dist/providers/catalog.js +0 -11
- package/dist/providers/catalog.js.map +1 -1
- package/dist/providers/key-test.d.ts +26 -0
- package/dist/providers/key-test.d.ts.map +1 -0
- package/dist/providers/key-test.js +74 -0
- package/dist/providers/key-test.js.map +1 -0
- package/dist/providers/minimax/models.d.ts.map +1 -1
- package/dist/providers/minimax/models.js +32 -17
- package/dist/providers/minimax/models.js.map +1 -1
- package/dist/providers/mistral/models.d.ts.map +1 -1
- package/dist/providers/mistral/models.js +26 -6
- package/dist/providers/mistral/models.js.map +1 -1
- package/dist/providers/provider-registry.d.ts +4 -9
- package/dist/providers/provider-registry.d.ts.map +1 -1
- package/dist/providers/provider-registry.js +11 -18
- package/dist/providers/provider-registry.js.map +1 -1
- package/dist/providers/request-shaping/model-ids.d.ts.map +1 -1
- package/dist/providers/request-shaping/model-ids.js +5 -0
- package/dist/providers/request-shaping/model-ids.js.map +1 -1
- package/dist/tools/design-studio-tools.d.ts +5 -0
- package/dist/tools/design-studio-tools.d.ts.map +1 -1
- package/dist/tools/design-studio-tools.js +5 -0
- package/dist/tools/design-studio-tools.js.map +1 -1
- package/dist/tools/generate-image.d.ts +2 -2
- package/dist/tools/generate-image.d.ts.map +1 -1
- package/dist/tools/generate-image.js +7 -50
- package/dist/tools/generate-image.js.map +1 -1
- package/dist/tools/generate-video.d.ts +7 -7
- package/dist/tools/generate-video.d.ts.map +1 -1
- package/dist/tools/generate-video.js +14 -130
- package/dist/tools/generate-video.js.map +1 -1
- package/dist/tools/generate-voice.d.ts +9 -0
- package/dist/tools/generate-voice.d.ts.map +1 -1
- package/dist/tools/generate-voice.js +11 -41
- package/dist/tools/generate-voice.js.map +1 -1
- package/dist/tools/health-catalogue-search.d.ts.map +1 -1
- package/dist/tools/health-catalogue-search.js +1 -3
- package/dist/tools/health-catalogue-search.js.map +1 -1
- package/dist/tools/tool-registry.d.ts +9 -1
- package/dist/tools/tool-registry.d.ts.map +1 -1
- package/dist/tools/tool-registry.js +17 -2
- package/dist/tools/tool-registry.js.map +1 -1
- package/dist/tools/types.d.ts +7 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/package.json +1 -11
- package/dist/billing/credits.d.ts +0 -236
- package/dist/billing/credits.d.ts.map +0 -1
- package/dist/billing/credits.js +0 -599
- package/dist/billing/credits.js.map +0 -1
- package/dist/billing/meter.d.ts +0 -43
- package/dist/billing/meter.d.ts.map +0 -1
- package/dist/billing/meter.js +0 -67
- package/dist/billing/meter.js.map +0 -1
- package/dist/billing/plans.d.ts +0 -34
- package/dist/billing/plans.d.ts.map +0 -1
- package/dist/billing/plans.js +0 -108
- package/dist/billing/plans.js.map +0 -1
- package/dist/journal/platform-sync.d.ts +0 -17
- package/dist/journal/platform-sync.d.ts.map +0 -1
- package/dist/journal/platform-sync.js +0 -21
- package/dist/journal/platform-sync.js.map +0 -1
- package/dist/memory/platform-sync.d.ts +0 -54
- package/dist/memory/platform-sync.d.ts.map +0 -1
- package/dist/memory/platform-sync.js +0 -176
- package/dist/memory/platform-sync.js.map +0 -1
- package/dist/providers/platform/index.d.ts +0 -20
- package/dist/providers/platform/index.d.ts.map +0 -1
- package/dist/providers/platform/index.js +0 -30
- package/dist/providers/platform/index.js.map +0 -1
- package/dist/providers/platform/models.d.ts +0 -3
- package/dist/providers/platform/models.d.ts.map +0 -1
- package/dist/providers/platform/models.js +0 -204
- package/dist/providers/platform/models.js.map +0 -1
- package/dist/tasks/platform-sync.d.ts +0 -22
- package/dist/tasks/platform-sync.d.ts.map +0 -1
- package/dist/tasks/platform-sync.js +0 -132
- package/dist/tasks/platform-sync.js.map +0 -1
|
@@ -1,138 +1,50 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Aurora mode — Mistral
|
|
2
|
+
* Aurora mode — Mistral only, two models (his call, 2 Nov 2026).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
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
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
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
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
// ──
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
//
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
// ──
|
|
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
|
-
//
|
|
99
|
-
//
|
|
100
|
-
//
|
|
101
|
-
//
|
|
102
|
-
//
|
|
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
|
|
1
|
+
{"version":3,"file":"aurora-router.js","sourceRoot":"","sources":["../../src/auto/aurora-router.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,6EAA6E;AAE7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AACvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AACnD,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAClD,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAevD,MAAM,CAAC,MAAM,aAAa,GAA2C;IACnE,oDAAoD;IACpD,MAAM,EAAQ,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,oEAAoE,EAAa,eAAe,EAAE,iB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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
|
-
*
|
|
97
|
-
*
|
|
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,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAA6B,oBAAoB,EAAa,MAAM,YAAY,CAAC;AAG7F,OAAO,EAAE,KAAK,EAA4C,MAAM,mBAAmB,CAAC;AAapF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD,OAAO,KAAK,EAAE,UAAU,EAAW,MAAM,sBAAsB,CAAC;AAuBhE;;;;;;GAMG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,mBAAmB,CAAW;IACtC,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,WAAW,CAA0B;IAC7C,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,gBAAgB,CAA0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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 {
|
|
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
|
|
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.
|
|
115
|
-
// Resolve the Builder model
|
|
116
|
-
//
|
|
117
|
-
//
|
|
118
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
140
|
-
|
|
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:
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
//
|
|
174
|
-
//
|
|
175
|
-
|
|
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
|
-
*
|
|
196
|
-
*
|
|
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.
|
|
207
|
-
//
|
|
208
|
-
//
|
|
209
|
-
|
|
210
|
-
//
|
|
211
|
-
|
|
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,
|
|
207
|
+
coordinator = resolveCoordinatorModel(opts.providerRegistry, opts.availableProviders, opts.preferredCoordinatorId);
|
|
214
208
|
}
|
|
215
209
|
else if (opts.mode === 'aurora') {
|
|
216
|
-
// Aurora is Mistral
|
|
217
|
-
//
|
|
218
|
-
|
|
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
|
-
//
|
|
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
|
|
270
|
-
//
|
|
271
|
-
//
|
|
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
|
-
//
|
|
294
|
-
|
|
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
|
-
//
|
|
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,
|