@project-ava-supernova/core 0.2.172 → 0.2.174
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/system-prompt.d.ts +1 -1
- package/dist/agent/system-prompt.js +1294 -1294
- package/dist/audit/cost.d.ts.map +1 -1
- package/dist/audit/cost.js +1 -0
- package/dist/audit/cost.js.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.map +1 -1
- package/dist/auto/auto-coordinator.js +64 -71
- package/dist/auto/auto-coordinator.js.map +1 -1
- package/dist/auto/coordinator-model.d.ts +35 -0
- package/dist/auto/coordinator-model.d.ts.map +1 -1
- package/dist/auto/coordinator-model.js +59 -1
- 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 +14 -1
- 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 +6 -0
- package/dist/auto/model-router.d.ts.map +1 -1
- package/dist/auto/model-router.js +42 -19
- 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/personality.js +19 -19
- package/dist/docs/content/concepts.js +1 -1
- package/dist/docs/content/concepts.js.map +1 -1
- package/dist/docs/content/start.js +3 -3
- package/dist/docs/content/start.js.map +1 -1
- package/dist/docs/data/providers.d.ts.map +1 -1
- package/dist/docs/data/providers.js +25 -16
- package/dist/docs/data/providers.js.map +1 -1
- package/dist/docs/data/tools.js +4 -4
- package/dist/docs/data/tools.js.map +1 -1
- package/dist/docs/i18n/translations.d.ts.map +1 -1
- package/dist/docs/i18n/translations.js +1 -1
- package/dist/docs/i18n/translations.js.map +1 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +11 -9
- 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 +11 -9
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +2 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +6 -4
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- 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 +11 -9
- package/dist/i18n/locales/zh-TW.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/personas/conductor.js +1 -1
- package/dist/personas/conductor.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/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 +6 -1
- package/dist/tools/design-studio-tools.js.map +1 -1
- package/dist/tools/generate-image.d.ts +1 -1
- package/dist/tools/generate-image.d.ts.map +1 -1
- package/dist/tools/generate-image.js +1 -13
- package/dist/tools/generate-image.js.map +1 -1
- package/dist/tools/generate-video.d.ts +1 -0
- package/dist/tools/generate-video.d.ts.map +1 -1
- package/dist/tools/generate-video.js +1 -0
- package/dist/tools/generate-video.js.map +1 -1
- package/dist/tools/generate-voice.d.ts +1 -0
- package/dist/tools/generate-voice.d.ts.map +1 -1
- package/dist/tools/generate-voice.js +1 -0
- package/dist/tools/generate-voice.js.map +1 -1
- package/dist/tools/open-design-studio.js +1 -1
- package/dist/tools/open-design-studio.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/dist/tools/write-post-image.js +1 -1
- package/dist/tools/write-post-image.js.map +1 -1
- package/package.json +1 -1
package/dist/audit/cost.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cost.d.ts","sourceRoot":"","sources":["../../src/audit/cost.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"cost.d.ts","sourceRoot":"","sources":["../../src/audit/cost.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA6H5C;;;yEAGyE;AACzE,wBAAgB,WAAW,CAAC,IAAI,EAAE;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,SAAS,GAAG,SAAS,CAaxB;AAoBD;;uEAEuE;AACvE,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAK9D"}
|
package/dist/audit/cost.js
CHANGED
|
@@ -94,6 +94,7 @@ const PROVIDER_USD_RATES = {
|
|
|
94
94
|
'glm-4.5-air': { inputPerMillion: 0.20, outputPerMillion: 1.10 },
|
|
95
95
|
},
|
|
96
96
|
mistral: {
|
|
97
|
+
'mistral-large-4': { inputPerMillion: 0.70, outputPerMillion: 2.10 },
|
|
97
98
|
'mistral-large-3': { inputPerMillion: 0.50, outputPerMillion: 1.50 },
|
|
98
99
|
'mistral-medium-3.5': { inputPerMillion: 1.50, outputPerMillion: 7.50 },
|
|
99
100
|
// Was $0.10/$0.30 against a real $0.15/$0.60 — Aurora's high-volume
|
package/dist/audit/cost.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cost.js","sourceRoot":"","sources":["../../src/audit/cost.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,EAAE;AACF,6EAA6E;AAC7E,8EAA8E;AAC9E,2EAA2E;AAC3E,8EAA8E;AAC9E,iEAAiE;AAWjE;;;;;;;;;;8EAU8E;AAC9E,MAAM,kBAAkB,GAAiD;IACvE,sEAAsE;IACtE,4DAA4D;IAC5D,OAAO,EAAE;QACP,oEAAoE;QACpE,YAAY,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE;QAC/D,oBAAoB,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE;QACvE,yE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AAC,OAAO,UAAU,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACtH,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI;QAAU,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9G,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,62 +1,29 @@
|
|
|
1
1
|
import type { TaskCategory } from './types.js';
|
|
2
2
|
/**
|
|
3
|
-
* Aurora mode — Mistral
|
|
3
|
+
* Aurora mode — Mistral only, two models (his call, 2 Nov 2026).
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
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
|
-
|
|
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 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
|
|
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
|
|
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,iBAAiB,EAAE;IACzK,MAAM,EAAQ,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,sCAAsC,EAAwC,eAAe,EAAE,iBAAiB,EAAE,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,e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AAE,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 {
|
|
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
|
|
107
|
-
//
|
|
108
|
-
//
|
|
109
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
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
|
|
195
|
-
//
|
|
196
|
-
|
|
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
|
|
241
|
-
// key.
|
|
242
|
-
//
|
|
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
|
-
//
|
|
264
|
-
|
|
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));
|