@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,31 +1,33 @@
|
|
|
1
1
|
import { SUPERNOVA_ROUTES } from './supernova-router.js';
|
|
2
2
|
import { AURORA_ROUTES } from './aurora-router.js';
|
|
3
3
|
import { LONGXIANG_ROUTES } from './longxiang-router.js';
|
|
4
|
+
import { FLEET_PROVIDERS, resolveOnFleet } from './coordinator-model.js';
|
|
4
5
|
// The fleet list lives in routing-modes.ts — its own dependency-free file so
|
|
5
6
|
// browser surfaces can import it through a narrow subpath instead of writing
|
|
6
7
|
// their own copy, which is how 'longxiang' went missing nine times.
|
|
7
8
|
export { ROUTING_MODES, isRoutingMode, AURORA_ENABLED, LONGXIANG_ENABLED, VISIBLE_ROUTING_MODES, isVisibleRoutingMode } from './routing-modes.js';
|
|
8
|
-
// Maestro routing — Qwen-only
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
9
|
+
// Maestro routing — Qwen-only. The deep work (coding, planning, security,
|
|
10
|
+
// teach, brainstorm) runs on Qwen 3.7 Plus, with 3.5 Plus as its outage
|
|
11
|
+
// fallback. Chat, image generation, image reading and long context run on
|
|
12
|
+
// Qwen 3.8 Flash (his call, 2 Nov 2026): they sat on 3.5 Flash and 3.7 Plus
|
|
13
|
+
// from April, before 3.8 Flash existed, and were never revisited. 3.8 Flash
|
|
14
|
+
// reads images and video natively, has 1M context and a 131K reply ceiling,
|
|
15
|
+
// and is the current generation; 3.5 Flash is text-only, 256K, 8K replies,
|
|
16
|
+
// and legacy to Alibaba. 3.7 Plus is every 3.8 Flash route's fallback.
|
|
14
17
|
// MiniMax is BYOK chat only (M3) — never a platform route; creative generation uses Qwen-Image / Wan / Qwen3-TTS.
|
|
15
18
|
const DEFAULT_ROUTES = {
|
|
16
19
|
coding: { modelId: 'qwen3.7-plus', reason: 'Qwen 3.7 Plus — #1 SWE-bench Pro + Terminal-Bench 2.0, 1M context', fallbackModelId: 'qwen3.5-plus' },
|
|
17
20
|
// Vision — Qwen 3.7 Plus sees images + video natively (1M context).
|
|
18
|
-
vision: { modelId: 'qwen3.
|
|
19
|
-
// image_gen orchestrates the generate_image tool call to Wan —
|
|
20
|
-
//
|
|
21
|
-
image_gen: { modelId: 'qwen3.
|
|
21
|
+
vision: { modelId: 'qwen3.8-flash', reason: 'Qwen 3.8 Flash — native vision + video, 1M context', fallbackModelId: 'qwen3.7-plus', requiresVision: true },
|
|
22
|
+
// image_gen orchestrates the generate_image tool call to Wan — no agentic
|
|
23
|
+
// depth needed at this layer, but it should see a reference image.
|
|
24
|
+
image_gen: { modelId: 'qwen3.8-flash', reason: 'Qwen 3.8 Flash — orchestrates generate_image tool calls and sees reference images', fallbackModelId: 'qwen3.7-plus' },
|
|
22
25
|
// computer_use route retired alongside the Holo3 integration.
|
|
23
26
|
planning: { modelId: 'qwen3.7-plus', reason: 'Qwen 3.7 Plus — 1M context for architecture + planning depth', fallbackModelId: 'qwen3.5-plus' },
|
|
24
|
-
// Chat = direct conversational response
|
|
25
|
-
//
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
long_context: { modelId: 'qwen3.7-plus', reason: 'Qwen 3.7 Plus — hybrid linear-attention + MoE efficient at 1M', fallbackModelId: 'qwen3.5-plus' },
|
|
27
|
+
// Chat = direct conversational response, on the same model that
|
|
28
|
+
// coordinates — and one that can see an image dropped into the chat.
|
|
29
|
+
chat: { modelId: 'qwen3.8-flash', reason: 'Qwen 3.8 Flash — fast, sees images, 1M context', fallbackModelId: 'qwen3.7-plus' },
|
|
30
|
+
long_context: { modelId: 'qwen3.8-flash', reason: 'Qwen 3.8 Flash — 1M context at flash cost', fallbackModelId: 'qwen3.7-plus' },
|
|
29
31
|
// Teach runs on the flagship — operator call (2026-07-04): 3.5 Plus retired
|
|
30
32
|
// from primary routes. 3.5 Plus remains as the outage fallback only.
|
|
31
33
|
teach: { modelId: 'qwen3.7-plus', reason: 'Qwen 3.7 Plus — flagship-quality long-form tutorials, 1M context', fallbackModelId: 'qwen3.5-plus', creationModelId: 'qwen3.7-plus' },
|
|
@@ -45,15 +47,18 @@ const DEFAULT_ROUTES = {
|
|
|
45
47
|
export class ModelRouter {
|
|
46
48
|
providerRegistry;
|
|
47
49
|
availableProviders;
|
|
48
|
-
hasPlatform;
|
|
49
50
|
userPreferences;
|
|
50
51
|
mode;
|
|
51
|
-
|
|
52
|
+
/** The fleet's own providers (FLEET_PROVIDERS): its table, fallbacks and
|
|
53
|
+
* last resort resolve on these and nothing else. An explicit @model or
|
|
54
|
+
* per-category preference is the user's own choice and is not locked. */
|
|
55
|
+
lockedTo;
|
|
56
|
+
constructor(providerRegistry, availableProviders, userPreferences, mode = 'auto') {
|
|
52
57
|
this.providerRegistry = providerRegistry;
|
|
53
58
|
this.availableProviders = availableProviders;
|
|
54
|
-
this.hasPlatform = !!platformKey || availableProviders.has('platform');
|
|
55
59
|
this.userPreferences = userPreferences || {};
|
|
56
60
|
this.mode = mode;
|
|
61
|
+
this.lockedTo = FLEET_PROVIDERS[mode];
|
|
57
62
|
}
|
|
58
63
|
/**
|
|
59
64
|
* Route a task category to the best available model.
|
|
@@ -100,13 +105,13 @@ export class ModelRouter {
|
|
|
100
105
|
? `${entry.reason} (curriculum-creation upgrade → coordinator tier)`
|
|
101
106
|
: entry.reason;
|
|
102
107
|
// Try primary
|
|
103
|
-
const primary = this.
|
|
108
|
+
const primary = this.resolveRoute(primaryModelId, primaryReason);
|
|
104
109
|
if (primary) {
|
|
105
110
|
// Check vision requirement
|
|
106
111
|
if (entry.requiresVision && !primary.model.supportsVision) {
|
|
107
112
|
// Primary doesn't have vision — try fallback
|
|
108
113
|
if (entry.fallbackModelId) {
|
|
109
|
-
const fallback = this.
|
|
114
|
+
const fallback = this.resolveRoute(entry.fallbackModelId, `${entry.reason} (fallback — primary lacks vision)`);
|
|
110
115
|
if (fallback?.model.supportsVision)
|
|
111
116
|
return fallback;
|
|
112
117
|
}
|
|
@@ -117,7 +122,7 @@ export class ModelRouter {
|
|
|
117
122
|
}
|
|
118
123
|
// Try fallback
|
|
119
124
|
if (entry.fallbackModelId) {
|
|
120
|
-
const fallback = this.
|
|
125
|
+
const fallback = this.resolveRoute(entry.fallbackModelId, `${entry.reason} (fallback)`);
|
|
121
126
|
if (fallback)
|
|
122
127
|
return fallback;
|
|
123
128
|
}
|
|
@@ -132,17 +137,14 @@ export class ModelRouter {
|
|
|
132
137
|
setPreferences(prefs) {
|
|
133
138
|
this.userPreferences = prefs;
|
|
134
139
|
}
|
|
140
|
+
/** A table route — on the fleet's own providers only, when it has a lock. */
|
|
141
|
+
resolveRoute(modelId, reason) {
|
|
142
|
+
if (!this.lockedTo)
|
|
143
|
+
return this.resolveModel(modelId, reason);
|
|
144
|
+
const r = resolveOnFleet(this.providerRegistry, this.lockedTo, modelId);
|
|
145
|
+
return r ? { modelId: `${r.provider.name}:${r.model.id}`, provider: r.provider, model: r.model, reason } : null;
|
|
146
|
+
}
|
|
135
147
|
resolveModel(modelId, reason) {
|
|
136
|
-
// Try platform first. The registry bridges the native/-platform id-suffix
|
|
137
|
-
// duality, so a route written in either form resolves; we surface the
|
|
138
|
-
// concrete resolved id (e.g. `platform:deepseek-flash-platform`) so the
|
|
139
|
-
// downstream API call + billing key match the model actually served.
|
|
140
|
-
if (this.hasPlatform) {
|
|
141
|
-
const result = this.providerRegistry.resolveModel(`platform:${modelId}`);
|
|
142
|
-
if (result) {
|
|
143
|
-
return { modelId: `platform:${result.model.id}`, provider: result.provider, model: result.model, reason };
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
148
|
// Try direct provider
|
|
147
149
|
const result = this.providerRegistry.resolveModel(modelId);
|
|
148
150
|
if (result && this.isProviderAvailable(result.provider.name)) {
|
|
@@ -158,18 +160,16 @@ export class ModelRouter {
|
|
|
158
160
|
return null;
|
|
159
161
|
}
|
|
160
162
|
resolveAnyModel(reason) {
|
|
161
|
-
//
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const result = this.providerRegistry.resolveModel(`platform:${id}`);
|
|
168
|
-
if (result)
|
|
169
|
-
return { modelId: `platform:${id}`, provider: result.provider, model: result.model, reason };
|
|
163
|
+
// A locked fleet never leaves its own providers, even as a last resort.
|
|
164
|
+
if (this.lockedTo) {
|
|
165
|
+
for (const id of ['qwen3.7-plus', 'deepseek-flash', 'qwen3.8-flash', 'qwen3.5-plus', 'qwen3.5-flash']) {
|
|
166
|
+
const r = this.resolveRoute(id, reason);
|
|
167
|
+
if (r)
|
|
168
|
+
return r;
|
|
170
169
|
}
|
|
170
|
+
return null;
|
|
171
171
|
}
|
|
172
|
-
//
|
|
172
|
+
// Models across the providers the user holds keys for, best first.
|
|
173
173
|
// K3 first: Moonshot's frontier model and the strongest agentic option we
|
|
174
174
|
// reach. K2.7 Code after it as the cheaper agentic coder, K2.6 as the
|
|
175
175
|
// fallbacks. MiniMax excluded — BYOK chat only.
|
|
@@ -178,7 +178,7 @@ export class ModelRouter {
|
|
|
178
178
|
// `deepseek-reasoner`) on 2026-07-24, after which it 400s. Since
|
|
179
179
|
// 2026-09-10 there is exactly one DeepSeek model, `deepseek-flash`, and
|
|
180
180
|
// every id we have ever shipped maps onto it via DEEPSEEK_RETIRED_IDS.
|
|
181
|
-
const byokModels = ['kimi-k3', 'kimi-k2.7-code', 'kimi-k2.6', 'deepseek-flash', 'glm-5.3', 'mistral-
|
|
181
|
+
const byokModels = ['kimi-k3', 'kimi-k2.7-code', 'kimi-k2.6', 'deepseek-flash', 'glm-5.3', 'mistral-large-4', 'qwen3.7-plus', 'qwen3.5-plus', 'qwen3.5-flash'];
|
|
182
182
|
for (const id of byokModels) {
|
|
183
183
|
const result = this.providerRegistry.resolveModel(id);
|
|
184
184
|
if (result && this.isProviderAvailable(result.provider.name)) {
|
|
@@ -186,8 +186,6 @@ export class ModelRouter {
|
|
|
186
186
|
}
|
|
187
187
|
// Try with provider prefix
|
|
188
188
|
for (const providerName of this.availableProviders) {
|
|
189
|
-
if (providerName === 'platform')
|
|
190
|
-
continue;
|
|
191
189
|
const qualified = `${providerName}:${id}`;
|
|
192
190
|
const r = this.providerRegistry.resolveModel(qualified);
|
|
193
191
|
if (r)
|
|
@@ -203,7 +201,7 @@ export class ModelRouter {
|
|
|
203
201
|
return null;
|
|
204
202
|
}
|
|
205
203
|
isProviderAvailable(providerName) {
|
|
206
|
-
return this.availableProviders.has(providerName)
|
|
204
|
+
return this.availableProviders.has(providerName);
|
|
207
205
|
}
|
|
208
206
|
}
|
|
209
207
|
//# sourceMappingURL=model-router.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-router.js","sourceRoot":"","sources":["../../src/auto/model-router.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"model-router.js","sourceRoot":"","sources":["../../src/auto/model-router.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEzE,6EAA6E;AAC7E,6EAA6E;AAC7E,oEAAoE;AACpE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAwBlJ,0EAA0E;AAC1E,wEAAwE;AACxE,0EAA0E;AAC1E,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAC5E,2EAA2E;AAC3E,uEAAuE;AACvE,kHAAkH;AAClH,MAAM,cAAc,GAAqC;IACvD,MAAM,EAAQ,EAAE,OAAO,EAAE,cAAc,EAAO,MAAM,EAAE,mEAAmE,EAAE,eAAe,EAAE,cAAc,EAAE;IAC5J,oEAAoE;IACpE,MAAM,EAAQ,EAAE,OAAO,EAAE,eAAe,EAAM,MAAM,EAAE,oDAAoD,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE;IACnK,0EAA0E;IAC1E,mEAAmE;IACnE,SAAS,EAAK,EAAE,OAAO,EAAE,eAAe,EAAM,MAAM,EAAE,mFAAmF,EA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E,CAAC;gBACnD,MAAM,SAAS,GAAG,GAAG,YAAY,IAAI,EAAE,EAAE,CAAC;gBAC1C,MAAM,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;gBACxD,IAAI,CAAC;oBAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;YACrF,CAAC;QACH,CAAC;QAED,wDAAwD;QACxD,KAAK,MAAM,YAAY,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACnD,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;YAChE,IAAI,MAAM;gBAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QAC1G,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,mBAAmB,CAAC,YAAoB;QAC9C,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACnD,CAAC;CACF"}
|
|
@@ -25,11 +25,10 @@ export type RoutingMode = typeof ROUTING_MODES[number];
|
|
|
25
25
|
/**
|
|
26
26
|
* Which fleets are OFFERED. The type above stays complete on purpose.
|
|
27
27
|
*
|
|
28
|
-
* Aurora and Longxiang
|
|
29
|
-
* 9 Sep and only Qwen and DeepSeek answered
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* did reply.
|
|
28
|
+
* Aurora and Longxiang went dark on 2026-10-06: we approached five labs on
|
|
29
|
+
* 9 Sep and only Qwen and DeepSeek answered. Aurora came back on 2 Nov 2026
|
|
30
|
+
* (his call) — with no accounts, every user runs on their own key, so a
|
|
31
|
+
* Mistral fleet needs nothing from Mistral. Longxiang stays dark.
|
|
33
32
|
*
|
|
34
33
|
* Flags rather than deletion, and the ids stay in ROUTING_MODES, because:
|
|
35
34
|
* - a saved preference of `aurora` must still PARSE, so the router can fall
|
|
@@ -42,7 +41,7 @@ export type RoutingMode = typeof ROUTING_MODES[number];
|
|
|
42
41
|
* previous failures all came from surfaces that could not and wrote their own.
|
|
43
42
|
* A picker that hides a fleet by hand is the tenth.
|
|
44
43
|
*/
|
|
45
|
-
export declare const AURORA_ENABLED =
|
|
44
|
+
export declare const AURORA_ENABLED = true;
|
|
46
45
|
export declare const LONGXIANG_ENABLED = false;
|
|
47
46
|
/** The fleets a picker should actually show. Use THIS for anything
|
|
48
47
|
* user-facing; use ROUTING_MODES for parsing and type checks. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing-modes.d.ts","sourceRoot":"","sources":["../../src/auto/routing-modes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,aAAa,uDAAwD,CAAC;AAEnF,MAAM,MAAM,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"routing-modes.d.ts","sourceRoot":"","sources":["../../src/auto/routing-modes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,aAAa,uDAAwD,CAAC;AAEnF,MAAM,MAAM,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,cAAc,OAAO,CAAC;AACnC,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AAEvC;kEACkE;AAClE,eAAO,MAAM,qBAAqB,EAAE,SAAS,WAAW,EAEvD,CAAC;AAEF;yEACyE;AACzE,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,EAAE,IAAI,WAAW,CAErF;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,EAAE,IAAI,WAAW,CAE9E"}
|
|
@@ -24,11 +24,10 @@ export const ROUTING_MODES = ['auto', 'supernova', 'aurora', 'longxiang'];
|
|
|
24
24
|
/**
|
|
25
25
|
* Which fleets are OFFERED. The type above stays complete on purpose.
|
|
26
26
|
*
|
|
27
|
-
* Aurora and Longxiang
|
|
28
|
-
* 9 Sep and only Qwen and DeepSeek answered
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* did reply.
|
|
27
|
+
* Aurora and Longxiang went dark on 2026-10-06: we approached five labs on
|
|
28
|
+
* 9 Sep and only Qwen and DeepSeek answered. Aurora came back on 2 Nov 2026
|
|
29
|
+
* (his call) — with no accounts, every user runs on their own key, so a
|
|
30
|
+
* Mistral fleet needs nothing from Mistral. Longxiang stays dark.
|
|
32
31
|
*
|
|
33
32
|
* Flags rather than deletion, and the ids stay in ROUTING_MODES, because:
|
|
34
33
|
* - a saved preference of `aurora` must still PARSE, so the router can fall
|
|
@@ -41,7 +40,7 @@ export const ROUTING_MODES = ['auto', 'supernova', 'aurora', 'longxiang'];
|
|
|
41
40
|
* previous failures all came from surfaces that could not and wrote their own.
|
|
42
41
|
* A picker that hides a fleet by hand is the tenth.
|
|
43
42
|
*/
|
|
44
|
-
export const AURORA_ENABLED =
|
|
43
|
+
export const AURORA_ENABLED = true;
|
|
45
44
|
export const LONGXIANG_ENABLED = false;
|
|
46
45
|
/** The fleets a picker should actually show. Use THIS for anything
|
|
47
46
|
* user-facing; use ROUTING_MODES for parsing and type checks. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing-modes.js","sourceRoot":"","sources":["../../src/auto/routing-modes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AAInF
|
|
1
|
+
{"version":3,"file":"routing-modes.js","sourceRoot":"","sources":["../../src/auto/routing-modes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AAInF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC;AACnC,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAEvC;kEACkE;AAClE,MAAM,CAAC,MAAM,qBAAqB,GAA2B,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CACtF,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CACjF,CAAC;AAEF;yEACyE;AACzE,MAAM,UAAU,oBAAoB,CAAC,EAA6B;IAChE,OAAO,CAAC,CAAC,EAAE,IAAK,qBAA2C,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC3E,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,EAA6B;IACzD,OAAO,CAAC,CAAC,EAAE,IAAK,aAAmC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -24,10 +24,11 @@ import type { TaskCategory } from './types.js';
|
|
|
24
24
|
*/
|
|
25
25
|
/** The conductor that classifies tasks, picks specialists, runs the loop. */
|
|
26
26
|
export declare const SUPERNOVA_COORDINATOR_ID = "deepseek-flash";
|
|
27
|
-
/** Builder agent — TaskExecutor spawn for any session task.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
|
|
27
|
+
/** Builder agent — TaskExecutor spawn for any session task. DeepSeek V4.1
|
|
28
|
+
* Flash (his call, 2 Nov 2026 — "not had anything it can't handle"): 74.2 on
|
|
29
|
+
* DeepSWE v1.1 by DeepSeek's figure, 74.34 in Fireworks' independent rerun.
|
|
30
|
+
* It was Qwen 3.7 Plus. Images still go to Qwen 3.8 Flash (vision route). */
|
|
31
|
+
export declare const SUPERNOVA_BUILDER_ID = "deepseek-flash";
|
|
31
32
|
/** Vision input override — any prompt with images bypasses persona / category
|
|
32
33
|
* routing and lands on Qwen 3.8 Flash (native vision + video).
|
|
33
34
|
*
|
|
@@ -69,11 +70,4 @@ export interface SupernovaRouteEntry {
|
|
|
69
70
|
creationModelId?: string;
|
|
70
71
|
}
|
|
71
72
|
export declare const SUPERNOVA_ROUTES: Record<TaskCategory, SupernovaRouteEntry>;
|
|
72
|
-
export declare const SUPERNOVA_PERSONA_MODEL: Record<string, string>;
|
|
73
|
-
/**
|
|
74
|
-
* Resolve the right model id for a persona in Supernova mode. Falls back to
|
|
75
|
-
* `defaultModelId` when the persona isn't in the map (a new persona shipped
|
|
76
|
-
* without a Supernova route — graceful degrade rather than throw).
|
|
77
|
-
*/
|
|
78
|
-
export declare function resolveSupernovaPersonaModel(persona: string, defaultModelId: string): string;
|
|
79
73
|
//# sourceMappingURL=supernova-router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supernova-router.d.ts","sourceRoot":"","sources":["../../src/auto/supernova-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,6EAA6E;AAC7E,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AAEzD
|
|
1
|
+
{"version":3,"file":"supernova-router.d.ts","sourceRoot":"","sources":["../../src/auto/supernova-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,6EAA6E;AAC7E,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AAEzD;;;8EAG8E;AAC9E,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AAErD;;;;;;;;;;;;oEAYoE;AACpE,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD;;;;;;;;;;;;;;;;yBAgByB;AACzB,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAOxD,MAAM,WAAW,mBAAmB;IAClC,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,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,mBAAmB,CAqCtE,CAAC"}
|
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
// ── Coordinator + special-case routes (highest priority) ──────────────────
|
|
25
25
|
/** The conductor that classifies tasks, picks specialists, runs the loop. */
|
|
26
26
|
export const SUPERNOVA_COORDINATOR_ID = 'deepseek-flash';
|
|
27
|
-
/** Builder agent — TaskExecutor spawn for any session task.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
|
|
27
|
+
/** Builder agent — TaskExecutor spawn for any session task. DeepSeek V4.1
|
|
28
|
+
* Flash (his call, 2 Nov 2026 — "not had anything it can't handle"): 74.2 on
|
|
29
|
+
* DeepSWE v1.1 by DeepSeek's figure, 74.34 in Fireworks' independent rerun.
|
|
30
|
+
* It was Qwen 3.7 Plus. Images still go to Qwen 3.8 Flash (vision route). */
|
|
31
|
+
export const SUPERNOVA_BUILDER_ID = 'deepseek-flash';
|
|
31
32
|
/** Vision input override — any prompt with images bypasses persona / category
|
|
32
33
|
* routing and lands on Qwen 3.8 Flash (native vision + video).
|
|
33
34
|
*
|
|
@@ -61,14 +62,14 @@ export const SUPERNOVA_VISION_ID = 'qwen3.8-flash';
|
|
|
61
62
|
* moving this again. */
|
|
62
63
|
export const SUPERNOVA_INTENT_GATE_ID = 'qwen3.7-flash';
|
|
63
64
|
export const SUPERNOVA_ROUTES = {
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
coding: { modelId: '
|
|
67
|
-
// Vision input → Qwen 3.
|
|
65
|
+
// Coding on DeepSeek V4.1 Flash, the same model as the Builder seat (his
|
|
66
|
+
// call, 2 Nov 2026); Qwen 3.7 Plus is the fallback.
|
|
67
|
+
coding: { modelId: 'deepseek-flash', reason: 'DeepSeek V4.1 Flash — 74 on DeepSWE v1.1 (independently rerun), the Supernova Builder', fallbackModelId: 'qwen3.7-plus' },
|
|
68
|
+
// Vision input → Qwen 3.8 Flash (native vision + video).
|
|
68
69
|
vision: { modelId: 'qwen3.8-flash', reason: 'Qwen 3.8 Flash — native vision + video, 1M context', fallbackModelId: 'qwen3.7-plus', requiresVision: true },
|
|
69
|
-
// image_gen orchestrates a generate_image tool call to Wan —
|
|
70
|
-
//
|
|
71
|
-
image_gen: { modelId: 'qwen3.
|
|
70
|
+
// image_gen orchestrates a generate_image tool call to Wan — no agentic
|
|
71
|
+
// depth needed at this layer, but it should see a reference image.
|
|
72
|
+
image_gen: { modelId: 'qwen3.8-flash', reason: 'Qwen 3.8 Flash — orchestrates generate_image tool calls and sees reference images', fallbackModelId: 'qwen3.7-plus' },
|
|
72
73
|
// computer_use route retired alongside the Holo3 integration.
|
|
73
74
|
// Planning is Architect + Researcher territory — Architect is Qwen 3.6
|
|
74
75
|
// Plus per the map, but planning leans heavily on Researcher's
|
|
@@ -98,53 +99,12 @@ export const SUPERNOVA_ROUTES = {
|
|
|
98
99
|
// option rather than a restatement of the first.
|
|
99
100
|
brainstorm: { modelId: 'deepseek-flash', reason: 'DeepSeek V4.1 Flash — breadth-first ideation at 1M context', fallbackModelId: 'qwen3.8-flash' },
|
|
100
101
|
};
|
|
101
|
-
// ──
|
|
102
|
+
// ── Personas ──────────────────────────────────────────────────────────────
|
|
102
103
|
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
//
|
|
107
|
-
//
|
|
108
|
-
//
|
|
109
|
-
export const SUPERNOVA_PERSONA_MODEL = {
|
|
110
|
-
// Heavy specialists — chosen per the locked routing map.
|
|
111
|
-
architect: 'qwen3.7-plus', // vision-aware planning, MCP, production-tested
|
|
112
|
-
builder: 'qwen3.7-plus', // Terminal-Bench leader, real agent loops
|
|
113
|
-
curator: 'deepseek-flash', // mid-tier reasoning, cost-effective
|
|
114
|
-
researcher: 'deepseek-flash', // long-context synthesis
|
|
115
|
-
cve_researcher: 'deepseek-flash', // deep reasoning over attack chain
|
|
116
|
-
content_writer: 'qwen3.7-plus', // flagship long output — 3.5 Plus retired from primaries (operator, 2026-07-04)
|
|
117
|
-
tutor: 'deepseek-flash', // mid-depth, latency matters
|
|
118
|
-
ideator: 'deepseek-flash', // reasoning depth 5 — Think-Max territory
|
|
119
|
-
// Light specialists — cheapest classifier where reasoning depth ≤ 2.
|
|
120
|
-
scout: 'qwen3.5-flash',
|
|
121
|
-
verifier: 'qwen3.5-flash',
|
|
122
|
-
sequencer: 'qwen3.5-flash',
|
|
123
|
-
challenger: 'qwen3.5-flash',
|
|
124
|
-
integrator: 'qwen3.5-flash',
|
|
125
|
-
// Mid-light specialists — reasoning depth 3. These sat on the cheaper
|
|
126
|
-
// DeepSeek tier when there were two; they now sit on the same model as the
|
|
127
|
-
// coordinator, so "mid-light" describes the work, not the price.
|
|
128
|
-
code_reviewer: 'deepseek-flash',
|
|
129
|
-
fact_checker: 'deepseek-flash',
|
|
130
|
-
quiz_master: 'deepseek-flash',
|
|
131
|
-
recon: 'deepseek-flash',
|
|
132
|
-
scanner: 'deepseek-flash',
|
|
133
|
-
security_verifier: 'deepseek-flash',
|
|
134
|
-
security_reporter: 'deepseek-flash',
|
|
135
|
-
curriculum_architect: 'deepseek-flash',
|
|
136
|
-
explorer: 'deepseek-flash',
|
|
137
|
-
refiner: 'deepseek-flash',
|
|
138
|
-
// Vision specialist — follows SUPERNOVA_VISION_ID onto Qwen 3.8 Flash:
|
|
139
|
-
// same native image + video, newer generation, roughly a third the cost.
|
|
140
|
-
design_reviewer: 'qwen3.8-flash',
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* Resolve the right model id for a persona in Supernova mode. Falls back to
|
|
144
|
-
* `defaultModelId` when the persona isn't in the map (a new persona shipped
|
|
145
|
-
* without a Supernova route — graceful degrade rather than throw).
|
|
146
|
-
*/
|
|
147
|
-
export function resolveSupernovaPersonaModel(persona, defaultModelId) {
|
|
148
|
-
return SUPERNOVA_PERSONA_MODEL[persona.toLowerCase()] ?? defaultModelId;
|
|
149
|
-
}
|
|
104
|
+
// Supernova's personas run on the model their task is routed to. The teams
|
|
105
|
+
// only field for planning, security, brainstorm and teach, and all four route
|
|
106
|
+
// to DeepSeek V4.1 Flash, so every persona runs there (Qwen falls back: 3.7
|
|
107
|
+
// Plus, or 3.8 Flash for brainstorm). A per-persona map lived here from April and was never wired;
|
|
108
|
+
// it was deleted on 2 Nov 2026 because wiring it would have moved personas
|
|
109
|
+
// off DeepSeek, and its keys did not match the real persona ids.
|
|
150
110
|
//# sourceMappingURL=supernova-router.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supernova-router.js","sourceRoot":"","sources":["../../src/auto/supernova-router.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,6EAA6E;AAE7E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,gBAAgB,CAAC;AAEzD
|
|
1
|
+
{"version":3,"file":"supernova-router.js","sourceRoot":"","sources":["../../src/auto/supernova-router.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,6EAA6E;AAE7E,6EAA6E;AAC7E,MAAM,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AE,gBAAgB,EAAG,MAAM,EAAE,6DAA6D,EAA2B,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE;IAChN,2EAA2E;IAC3E,QAAQ,EAAM,EAAE,OAAO,EAAE,gBAAgB,EAAK,MAAM,EAAE,0DAA0D,EAAgC,eAAe,EAAE,cAAc,EAAE;IACjL,sEAAsE;IACtE,wEAAwE;IACxE,0EAA0E;IAC1E,qEAAqE;IACrE,yEAAyE;IACzE,2EAA2E;IAC3E,2EAA2E;IAC3E,yEAAyE;IACzE,iDAAiD;IACjD,UAAU,EAAI,EAAE,OAAO,EAAE,gBAAgB,EAAG,MAAM,EAAE,4DAA4D,EAAE,eAAe,EAAE,eAAe,EAAE;CACrJ,CAAC;AAEF,6EAA6E;AAC7E,EAAE;AACF,2EAA2E;AAC3E,8EAA8E;AAC9E,4EAA4E;AAC5E,mGAAmG;AACnG,2EAA2E;AAC3E,iEAAiE"}
|
|
@@ -25,9 +25,9 @@ const MODEL_ALIASES = {
|
|
|
25
25
|
'deepseek': 'deepseek-flash',
|
|
26
26
|
'deepseek pro': 'deepseek-flash',
|
|
27
27
|
'deepseek flash': 'deepseek-flash',
|
|
28
|
-
// Mistral — "use mistral"
|
|
29
|
-
//
|
|
30
|
-
'mistral': 'mistral-
|
|
28
|
+
// Mistral — "use mistral" gives the flagship, Large 4 (6 Oct 2026), which
|
|
29
|
+
// replaces Medium 3.5 and Large 3 (both deprecated 31 Oct 2026).
|
|
30
|
+
'mistral': 'mistral-large-4',
|
|
31
31
|
};
|
|
32
32
|
// Build regex pattern from all aliases: @kimi, use kimi, with kimi, etc.
|
|
33
33
|
const aliasKeys = Object.keys(MODEL_ALIASES).map(k => k.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-classifier.js","sourceRoot":"","sources":["../../src/auto/task-classifier.ts"],"names":[],"mappings":"AAGA,gFAAgF;AAEhF,MAAM,aAAa,GA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AAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC1D,CAAC;IACD,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,qCAAqC,EAAE,CAAC;IAC7E,CAAC;IACD,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;QACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,6BAA6B,EAAE,CAAC;IACrE,CAAC;IAED,8DAA8D;IAC9D,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,uDAAuD,EAAE,CAAC;IACvG,CAAC;IAED,kDAAkD;IAClD,IAAI,sBAAsB,GAAG,OAAO,EAAE,CAAC;QACrC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,mBAAmB,sBAAsB,yCAAyC,EAAE,CAAC;IAClI,CAAC;IAED,2CAA2C;IAC3C,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAChC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,4BAA4B,EAAE,CAAC;IACxE,CAAC;IAED,0CAA0C;IAC1C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,kCAAkC,EAAE,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bring account-era data home (BYOK plan, decided 1 Nov 2026).
|
|
3
|
+
*
|
|
4
|
+
* While Ava had accounts, a signed-in user's data lived in
|
|
5
|
+
* `~/.ava/users/<accountId>/`, and a signed-out user was shown whichever
|
|
6
|
+
* account folder held the most. With accounts gone, everything lives in
|
|
7
|
+
* `~/.ava/` again — so on first launch after updating, account folders are
|
|
8
|
+
* merged up into it. The rules, in order of importance:
|
|
9
|
+
*
|
|
10
|
+
* 1. NOTHING IS LOST. Files are COPIED, never moved; `~/.ava/users/` is left
|
|
11
|
+
* exactly as it was, as the safety net. Where two different files share a
|
|
12
|
+
* name, neither is overwritten — the one set aside is kept beside it.
|
|
13
|
+
* 2. What the user SAW stays what they see. The active account (the one the
|
|
14
|
+
* apps were reading) goes first and wins a clash; the file it replaces in
|
|
15
|
+
* `~/.ava/` is kept as `<name>.before-merge<ext>`.
|
|
16
|
+
* 3. Other account folders merge in after it: anything that does not clash
|
|
17
|
+
* is added; a clashing file is kept as `<name>.from-account-<id><ext>`.
|
|
18
|
+
* 4. Lists merge, not replace. Two JSON lists of items with ids (the Library
|
|
19
|
+
* index, for one) become their union, so items from both folders show.
|
|
20
|
+
* 5. Once. A marker file records what was done, and a second run is a no-op.
|
|
21
|
+
*
|
|
22
|
+
* Real machines have exactly this shape: the operator's had two account
|
|
23
|
+
* folders (1.9 MB and 139 MB) and almost every name in them also existed in
|
|
24
|
+
* `~/.ava/` itself.
|
|
25
|
+
*/
|
|
26
|
+
export declare const ACCOUNT_MERGE_MARKER = ".account-folders-merged.json";
|
|
27
|
+
export interface AccountMergeReport {
|
|
28
|
+
merged: boolean;
|
|
29
|
+
reason?: string;
|
|
30
|
+
accounts: string[];
|
|
31
|
+
activeAccount?: string;
|
|
32
|
+
copied: number;
|
|
33
|
+
listsMerged: number;
|
|
34
|
+
keptAside: string[];
|
|
35
|
+
skippedIdentical: number;
|
|
36
|
+
}
|
|
37
|
+
/** The account folder the apps were reading: the pointer if given, else the one with the most signs of use. */
|
|
38
|
+
export declare function pickActiveAccount(usersDir: string, accounts: string[], preferred?: string): Promise<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Merge `<avaHome>/users/*` up into `<avaHome>`. Safe to call on every
|
|
41
|
+
* launch: does nothing when there is nothing to merge or it already ran.
|
|
42
|
+
*/
|
|
43
|
+
export declare function mergeAccountFolders(avaHome: string, opts?: {
|
|
44
|
+
preferredAccount?: string;
|
|
45
|
+
log?: (line: string) => void;
|
|
46
|
+
}): Promise<AccountMergeReport>;
|
|
47
|
+
//# sourceMappingURL=account-merge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-merge.d.ts","sourceRoot":"","sources":["../../src/config/account-merge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAKH,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAQnE,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AASD,+GAA+G;AAC/G,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAiB7H;AAiHD;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,MAAM,EACf,IAAI,GAAE;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAO,GACrE,OAAO,CAAC,kBAAkB,CAAC,CAuB7B"}
|