@project-ava-supernova/core 0.2.189 → 0.2.190

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/dist/agent/agent.d.ts +1 -1
  2. package/dist/agent/agent.d.ts.map +1 -1
  3. package/dist/agent/agent.js +44 -30
  4. package/dist/agent/agent.js.map +1 -1
  5. package/dist/agent/system-prompt.d.ts.map +1 -1
  6. package/dist/agent/system-prompt.js +1224 -1223
  7. package/dist/agent/system-prompt.js.map +1 -1
  8. package/dist/audit/cost.d.ts.map +1 -1
  9. package/dist/audit/cost.js +10 -9
  10. package/dist/audit/cost.js.map +1 -1
  11. package/dist/auto/auto-coordinator.d.ts +1 -1
  12. package/dist/auto/auto-coordinator.js +2 -2
  13. package/dist/auto/coordinator-model.d.ts +6 -4
  14. package/dist/auto/coordinator-model.d.ts.map +1 -1
  15. package/dist/auto/coordinator-model.js +4 -3
  16. package/dist/auto/coordinator-model.js.map +1 -1
  17. package/dist/auto/intent-gate.d.ts +2 -2
  18. package/dist/auto/intent-gate.d.ts.map +1 -1
  19. package/dist/auto/intent-gate.js +4 -5
  20. package/dist/auto/intent-gate.js.map +1 -1
  21. package/dist/auto/longxiang-router.d.ts +5 -1
  22. package/dist/auto/longxiang-router.d.ts.map +1 -1
  23. package/dist/auto/longxiang-router.js +5 -1
  24. package/dist/auto/longxiang-router.js.map +1 -1
  25. package/dist/auto/model-router.d.ts.map +1 -1
  26. package/dist/auto/model-router.js +17 -14
  27. package/dist/auto/model-router.js.map +1 -1
  28. package/dist/auto/supernova-router.d.ts +2 -3
  29. package/dist/auto/supernova-router.d.ts.map +1 -1
  30. package/dist/auto/supernova-router.js +2 -3
  31. package/dist/auto/supernova-router.js.map +1 -1
  32. package/dist/auto/task-classifier.d.ts.map +1 -1
  33. package/dist/auto/task-classifier.js +3 -1
  34. package/dist/auto/task-classifier.js.map +1 -1
  35. package/dist/docs/content/concepts.js +7 -7
  36. package/dist/docs/content/concepts.js.map +1 -1
  37. package/dist/docs/data/providers.d.ts.map +1 -1
  38. package/dist/docs/data/providers.js +2 -4
  39. package/dist/docs/data/providers.js.map +1 -1
  40. package/dist/docs/i18n/translations.d.ts.map +1 -1
  41. package/dist/docs/i18n/translations.js +1 -1
  42. package/dist/docs/i18n/translations.js.map +1 -1
  43. package/dist/i18n/keep-english.d.ts.map +1 -1
  44. package/dist/i18n/keep-english.js +3 -0
  45. package/dist/i18n/keep-english.js.map +1 -1
  46. package/dist/i18n/locales/ar.d.ts.map +1 -1
  47. package/dist/i18n/locales/ar.js +47 -0
  48. package/dist/i18n/locales/ar.js.map +1 -1
  49. package/dist/i18n/locales/de.d.ts.map +1 -1
  50. package/dist/i18n/locales/de.js +47 -0
  51. package/dist/i18n/locales/de.js.map +1 -1
  52. package/dist/i18n/locales/en.d.ts +47 -0
  53. package/dist/i18n/locales/en.d.ts.map +1 -1
  54. package/dist/i18n/locales/en.js +47 -0
  55. package/dist/i18n/locales/en.js.map +1 -1
  56. package/dist/i18n/locales/es.d.ts.map +1 -1
  57. package/dist/i18n/locales/es.js +47 -0
  58. package/dist/i18n/locales/es.js.map +1 -1
  59. package/dist/i18n/locales/fr.d.ts.map +1 -1
  60. package/dist/i18n/locales/fr.js +47 -0
  61. package/dist/i18n/locales/fr.js.map +1 -1
  62. package/dist/i18n/locales/hi.d.ts.map +1 -1
  63. package/dist/i18n/locales/hi.js +47 -0
  64. package/dist/i18n/locales/hi.js.map +1 -1
  65. package/dist/i18n/locales/id.d.ts.map +1 -1
  66. package/dist/i18n/locales/id.js +47 -0
  67. package/dist/i18n/locales/id.js.map +1 -1
  68. package/dist/i18n/locales/it.d.ts.map +1 -1
  69. package/dist/i18n/locales/it.js +47 -0
  70. package/dist/i18n/locales/it.js.map +1 -1
  71. package/dist/i18n/locales/ja.d.ts.map +1 -1
  72. package/dist/i18n/locales/ja.js +47 -0
  73. package/dist/i18n/locales/ja.js.map +1 -1
  74. package/dist/i18n/locales/ko.d.ts.map +1 -1
  75. package/dist/i18n/locales/ko.js +47 -0
  76. package/dist/i18n/locales/ko.js.map +1 -1
  77. package/dist/i18n/locales/nl.d.ts.map +1 -1
  78. package/dist/i18n/locales/nl.js +47 -0
  79. package/dist/i18n/locales/nl.js.map +1 -1
  80. package/dist/i18n/locales/pl.d.ts.map +1 -1
  81. package/dist/i18n/locales/pl.js +47 -0
  82. package/dist/i18n/locales/pl.js.map +1 -1
  83. package/dist/i18n/locales/pt.d.ts.map +1 -1
  84. package/dist/i18n/locales/pt.js +47 -0
  85. package/dist/i18n/locales/pt.js.map +1 -1
  86. package/dist/i18n/locales/ru.d.ts.map +1 -1
  87. package/dist/i18n/locales/ru.js +47 -0
  88. package/dist/i18n/locales/ru.js.map +1 -1
  89. package/dist/i18n/locales/th.d.ts.map +1 -1
  90. package/dist/i18n/locales/th.js +47 -0
  91. package/dist/i18n/locales/th.js.map +1 -1
  92. package/dist/i18n/locales/tr.d.ts.map +1 -1
  93. package/dist/i18n/locales/tr.js +47 -0
  94. package/dist/i18n/locales/tr.js.map +1 -1
  95. package/dist/i18n/locales/uk.d.ts.map +1 -1
  96. package/dist/i18n/locales/uk.js +47 -0
  97. package/dist/i18n/locales/uk.js.map +1 -1
  98. package/dist/i18n/locales/vi.d.ts.map +1 -1
  99. package/dist/i18n/locales/vi.js +47 -0
  100. package/dist/i18n/locales/vi.js.map +1 -1
  101. package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
  102. package/dist/i18n/locales/zh-CN.js +47 -0
  103. package/dist/i18n/locales/zh-CN.js.map +1 -1
  104. package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
  105. package/dist/i18n/locales/zh-TW.js +47 -0
  106. package/dist/i18n/locales/zh-TW.js.map +1 -1
  107. package/dist/index.d.ts +2 -2
  108. package/dist/index.d.ts.map +1 -1
  109. package/dist/index.js +1 -1
  110. package/dist/index.js.map +1 -1
  111. package/dist/mcp/connection.d.ts +37 -1
  112. package/dist/mcp/connection.d.ts.map +1 -1
  113. package/dist/mcp/connection.js +146 -3
  114. package/dist/mcp/connection.js.map +1 -1
  115. package/dist/mcp/index.d.ts +8 -1
  116. package/dist/mcp/index.d.ts.map +1 -1
  117. package/dist/mcp/index.js +4 -1
  118. package/dist/mcp/index.js.map +1 -1
  119. package/dist/mcp/manager.d.ts +61 -4
  120. package/dist/mcp/manager.d.ts.map +1 -1
  121. package/dist/mcp/manager.js +211 -15
  122. package/dist/mcp/manager.js.map +1 -1
  123. package/dist/mcp/page.d.ts +1 -1
  124. package/dist/mcp/page.d.ts.map +1 -1
  125. package/dist/mcp/page.js +15 -2
  126. package/dist/mcp/page.js.map +1 -1
  127. package/dist/mcp/permissions.d.ts +29 -9
  128. package/dist/mcp/permissions.d.ts.map +1 -1
  129. package/dist/mcp/permissions.js +26 -15
  130. package/dist/mcp/permissions.js.map +1 -1
  131. package/dist/mcp/servers-config.d.ts +7 -0
  132. package/dist/mcp/servers-config.d.ts.map +1 -1
  133. package/dist/mcp/servers-config.js +2 -0
  134. package/dist/mcp/servers-config.js.map +1 -1
  135. package/dist/mcp/suggested.d.ts +7 -4
  136. package/dist/mcp/suggested.d.ts.map +1 -1
  137. package/dist/mcp/suggested.js +14 -3
  138. package/dist/mcp/suggested.js.map +1 -1
  139. package/dist/mcp/tools.d.ts.map +1 -1
  140. package/dist/mcp/tools.js +7 -1
  141. package/dist/mcp/tools.js.map +1 -1
  142. package/dist/mcp/unreal-context.d.ts +36 -0
  143. package/dist/mcp/unreal-context.d.ts.map +1 -0
  144. package/dist/mcp/unreal-context.js +163 -0
  145. package/dist/mcp/unreal-context.js.map +1 -0
  146. package/dist/mcp/unreal-install.d.ts +67 -0
  147. package/dist/mcp/unreal-install.d.ts.map +1 -0
  148. package/dist/mcp/unreal-install.js +182 -0
  149. package/dist/mcp/unreal-install.js.map +1 -0
  150. package/dist/mcp/unreal-panel.d.ts +38 -0
  151. package/dist/mcp/unreal-panel.d.ts.map +1 -0
  152. package/dist/mcp/unreal-panel.js +59 -0
  153. package/dist/mcp/unreal-panel.js.map +1 -0
  154. package/dist/mcp/unreal.d.ts +94 -0
  155. package/dist/mcp/unreal.d.ts.map +1 -0
  156. package/dist/mcp/unreal.js +174 -0
  157. package/dist/mcp/unreal.js.map +1 -0
  158. package/dist/memory-v4/model.js +1 -1
  159. package/dist/memory-v4/model.js.map +1 -1
  160. package/dist/personas/conductor.d.ts +1 -1
  161. package/dist/personas/types.d.ts +1 -1
  162. package/dist/providers/qwen/models.d.ts.map +1 -1
  163. package/dist/providers/qwen/models.js +52 -35
  164. package/dist/providers/qwen/models.js.map +1 -1
  165. package/dist/providers/request-shaping/model-ids.d.ts +3 -1
  166. package/dist/providers/request-shaping/model-ids.d.ts.map +1 -1
  167. package/dist/providers/request-shaping/model-ids.js +14 -7
  168. package/dist/providers/request-shaping/model-ids.js.map +1 -1
  169. package/dist/tools/blender/build-model.js +1 -1
  170. package/dist/tools/blender/build-model.js.map +1 -1
  171. package/dist/tools/blender/live-tools.js +2 -2
  172. package/dist/tools/blender/live-tools.js.map +1 -1
  173. package/dist/tools/blender/runner-py.d.ts.map +1 -1
  174. package/dist/tools/blender/runner-py.js +3 -1
  175. package/dist/tools/blender/runner-py.js.map +1 -1
  176. package/dist/tools/connection-tools.js +1 -1
  177. package/dist/tools/connection-tools.js.map +1 -1
  178. package/dist/tools/tool-registry.d.ts.map +1 -1
  179. package/dist/tools/tool-registry.js +5 -3
  180. package/dist/tools/tool-registry.js.map +1 -1
  181. package/dist/tools/tool-request-words.d.ts.map +1 -1
  182. package/dist/tools/tool-request-words.js +20 -2
  183. package/dist/tools/tool-request-words.js.map +1 -1
  184. package/package.json +1 -1
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Unreal Engine's own MCP server (UE 5.9+) — what Ava needs to know about it
3
+ * beyond plain MCP. Plan: Decisions/plans/2026-11-18-unreal.md (private), Phase 1.
4
+ *
5
+ * Unreal puts its ~1,900 tools behind four meta-tools: list_toolsets,
6
+ * describe_toolsets, describe_tools and call_tool. So "which tool is this?" is
7
+ * never the MCP tool's name — it is call_tool's `toolset_name` + `tool_name`.
8
+ * Every inner tool carries Unreal's own label, `annotations.accessMode`:
9
+ * read / write / execute (read live from his editor, 18 Nov 2026: 802 / 1,042 /
10
+ * 75, every tool labelled).
11
+ *
12
+ * His decision (18 Nov, "i agree"): Unreal's READ tools run without asking;
13
+ * WRITE and EXECUTE ask, with "always allow" per tool. That trusts this one
14
+ * server's labels — Epic's, local, and the reason the decision was asked — and
15
+ * no other server's (plan 2026-11-17-mcp-servers, decision 2, still holds).
16
+ *
17
+ * Known by the name it reports ("unreal-mcp"), not by its address: the port
18
+ * and path can be changed in the editor.
19
+ */
20
+ import type { McpConnection } from './connection.js';
21
+ export type UnrealAccess = 'read' | 'write' | 'execute';
22
+ /** The name Unreal's server reports in its serverInfo. */
23
+ export declare const UNREAL_SERVER_NAME = "unreal-mcp";
24
+ /** Its default address (Editor Preferences > Agentic Workflows > Model Context Protocol). */
25
+ export declare const UNREAL_DEFAULT_URL = "http://127.0.0.1:8000/mcp";
26
+ /** Unreal runs tools one at a time on the editor's game thread; a compile can take minutes. */
27
+ export declare const UNREAL_CALL_TIMEOUT_MS = 600000;
28
+ /** The meta-tool that runs every inner tool. */
29
+ export declare const UNREAL_CALL_TOOL = "call_tool";
30
+ /** "Always allow" for one inner tool is kept in the server's allow list as `call_tool:<Toolset.Tool>`. */
31
+ export declare const unrealAllowKey: (inner: string) => string;
32
+ export declare function isUnrealServer(info: {
33
+ name?: string;
34
+ } | undefined | null): boolean;
35
+ /**
36
+ * What the editor says about itself when Ava connects: Unreal puts the open
37
+ * project in the initialize answer's _meta (read live 18 Nov:
38
+ * "com.epicgames.unrealengine/instance" with projectName, projectDirectory,
39
+ * engineVersion). Lets Ava say WHICH project she's working in, and notice when
40
+ * it isn't the folder open in her app.
41
+ */
42
+ export interface UnrealEditorInfo {
43
+ project?: string;
44
+ projectDir?: string;
45
+ engineVersion?: string;
46
+ }
47
+ export declare function unrealEditorInfo(initResult: unknown): UnrealEditorInfo | undefined;
48
+ /** The oldest Unreal Ava works with (his call, 18 Nov: "5.9 and onwards… that's a must"). */
49
+ export declare const UNREAL_MIN_VERSION: readonly [5, 9];
50
+ /**
51
+ * Is this Unreal new enough? Its server reports e.g. "5.9.0-60351404". 5.9 and
52
+ * later (5.10, 6.x) pass; anything older doesn't. A version it can't read
53
+ * passes: the name already says it's Unreal's server, and a future format
54
+ * shouldn't lock out a newer editor.
55
+ */
56
+ export declare function unrealVersionOk(version: string | undefined | null): boolean;
57
+ /**
58
+ * The inner tool a call_tool call names, as Unreal writes it: `Toolset.Tool`
59
+ * for a toolset tool, the bare name for a top-level one. Undefined when the
60
+ * arguments don't name one.
61
+ */
62
+ export declare function unrealInnerTool(args: Record<string, unknown> | undefined | null): string | undefined;
63
+ /** A doubled name written before that fix ("A.B.A.B.Tool" → "A.B.Tool"). */
64
+ export declare function undoubleUnrealName(name: string): string;
65
+ /** Toolset names from list_toolsets' text ("- Name: description", descriptions may run over several lines). */
66
+ export declare function parseToolsetNames(text: string): string[];
67
+ export declare class UnrealCatalog {
68
+ private readonly access;
69
+ readonly toolsets: ReadonlySet<string>;
70
+ private constructor();
71
+ /** An empty catalog: every inner tool unknown, so every call asks. */
72
+ static empty(): UnrealCatalog;
73
+ /**
74
+ * Read every toolset's tools and their labels (two calls; under a second on
75
+ * his editor for 1,919 tools). Never throws: a catalog it couldn't read is
76
+ * empty, and an empty catalog only means Ava asks more.
77
+ */
78
+ static load(conn: Pick<McpConnection, 'call'>): Promise<UnrealCatalog>;
79
+ get size(): number;
80
+ /** Unreal's label for an inner tool, or undefined when it isn't known (then it asks). */
81
+ accessOf(inner: string | undefined): UnrealAccess | undefined;
82
+ /**
83
+ * Unreal's one full name for a tool however it was written: a doubled name
84
+ * undoubled, and a bare name ("DescribeMode") resolved when exactly one
85
+ * tool has it. So "always allow", the asking rule and the Connections list
86
+ * agree on one name. Unknown names come back as given.
87
+ */
88
+ canonical(inner: string | undefined): string | undefined;
89
+ /** The project's toolset plugins are off: none of actors, levels or assets is there. */
90
+ get toolsetsOff(): boolean;
91
+ }
92
+ /** Ava's guidance for Unreal's tools, added to their descriptions. */
93
+ export declare function unrealToolGuidance(toolName: string, catalog: UnrealCatalog): string | undefined;
94
+ //# sourceMappingURL=unreal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unreal.d.ts","sourceRoot":"","sources":["../../src/mcp/unreal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAExD,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAE/C,6FAA6F;AAC7F,eAAO,MAAM,kBAAkB,8BAA8B,CAAC;AAE9D,+FAA+F;AAC/F,eAAO,MAAM,sBAAsB,SAAU,CAAC;AAE9C,gDAAgD;AAChD,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C,0GAA0G;AAC1G,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,WAAmC,CAAC;AAKhF,wBAAgB,cAAc,CAAC,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,IAAI,GAAG,OAAO,CAElF;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,gBAAgB,GAAG,SAAS,CAMlF;AAED,6FAA6F;AAC7F,eAAO,MAAM,kBAAkB,iBAAkB,CAAC;AAElD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,OAAO,CAK3E;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAWpG;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED,+GAA+G;AAC/G,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAIxD;AAED,qBAAa,aAAa;IAEtB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC;IAFxC,OAAO;IAKP,sEAAsE;IACtE,MAAM,CAAC,KAAK,IAAI,aAAa;IAI7B;;;;OAIG;WACU,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;IAwB5E,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,yFAAyF;IACzF,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS;IAO7D;;;;;OAKG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;IAQxD,wFAAwF;IACxF,IAAI,WAAW,IAAI,OAAO,CAEzB;CACF;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAS/F"}
@@ -0,0 +1,174 @@
1
+ /**
2
+ * Unreal Engine's own MCP server (UE 5.9+) — what Ava needs to know about it
3
+ * beyond plain MCP. Plan: Decisions/plans/2026-11-18-unreal.md (private), Phase 1.
4
+ *
5
+ * Unreal puts its ~1,900 tools behind four meta-tools: list_toolsets,
6
+ * describe_toolsets, describe_tools and call_tool. So "which tool is this?" is
7
+ * never the MCP tool's name — it is call_tool's `toolset_name` + `tool_name`.
8
+ * Every inner tool carries Unreal's own label, `annotations.accessMode`:
9
+ * read / write / execute (read live from his editor, 18 Nov 2026: 802 / 1,042 /
10
+ * 75, every tool labelled).
11
+ *
12
+ * His decision (18 Nov, "i agree"): Unreal's READ tools run without asking;
13
+ * WRITE and EXECUTE ask, with "always allow" per tool. That trusts this one
14
+ * server's labels — Epic's, local, and the reason the decision was asked — and
15
+ * no other server's (plan 2026-11-17-mcp-servers, decision 2, still holds).
16
+ *
17
+ * Known by the name it reports ("unreal-mcp"), not by its address: the port
18
+ * and path can be changed in the editor.
19
+ */
20
+ /** The name Unreal's server reports in its serverInfo. */
21
+ export const UNREAL_SERVER_NAME = 'unreal-mcp';
22
+ /** Its default address (Editor Preferences > Agentic Workflows > Model Context Protocol). */
23
+ export const UNREAL_DEFAULT_URL = 'http://127.0.0.1:8000/mcp';
24
+ /** Unreal runs tools one at a time on the editor's game thread; a compile can take minutes. */
25
+ export const UNREAL_CALL_TIMEOUT_MS = 600_000;
26
+ /** The meta-tool that runs every inner tool. */
27
+ export const UNREAL_CALL_TOOL = 'call_tool';
28
+ /** "Always allow" for one inner tool is kept in the server's allow list as `call_tool:<Toolset.Tool>`. */
29
+ export const unrealAllowKey = (inner) => `${UNREAL_CALL_TOOL}:${inner}`;
30
+ /** Toolsets whose absence means the project's toolset plugins are off (Epic issue UE-412135). */
31
+ const CORE_TOOLSETS = ['EditorToolset.ActorToolset', 'EditorToolset.LevelToolset', 'EditorToolset.AssetToolset'];
32
+ export function isUnrealServer(info) {
33
+ return info?.name === UNREAL_SERVER_NAME;
34
+ }
35
+ export function unrealEditorInfo(initResult) {
36
+ const meta = initResult?._meta;
37
+ const inst = meta?.['com.epicgames.unrealengine/instance'];
38
+ if (!inst)
39
+ return undefined;
40
+ const str = (v) => (typeof v === 'string' && v.trim() ? v.trim() : undefined);
41
+ return { project: str(inst.projectName), projectDir: str(inst.projectDirectory), engineVersion: str(inst.engineVersion) };
42
+ }
43
+ /** The oldest Unreal Ava works with (his call, 18 Nov: "5.9 and onwards… that's a must"). */
44
+ export const UNREAL_MIN_VERSION = [5, 9];
45
+ /**
46
+ * Is this Unreal new enough? Its server reports e.g. "5.9.0-60351404". 5.9 and
47
+ * later (5.10, 6.x) pass; anything older doesn't. A version it can't read
48
+ * passes: the name already says it's Unreal's server, and a future format
49
+ * shouldn't lock out a newer editor.
50
+ */
51
+ export function unrealVersionOk(version) {
52
+ const m = /^(\d+)\.(\d+)/.exec(String(version ?? '').trim());
53
+ if (!m)
54
+ return true;
55
+ const [major, minor] = [Number(m[1]), Number(m[2])];
56
+ return major > UNREAL_MIN_VERSION[0] || (major === UNREAL_MIN_VERSION[0] && minor >= UNREAL_MIN_VERSION[1]);
57
+ }
58
+ /**
59
+ * The inner tool a call_tool call names, as Unreal writes it: `Toolset.Tool`
60
+ * for a toolset tool, the bare name for a top-level one. Undefined when the
61
+ * arguments don't name one.
62
+ */
63
+ export function unrealInnerTool(args) {
64
+ if (!args)
65
+ return undefined;
66
+ const tool = typeof args.tool_name === 'string' ? args.tool_name.trim() : '';
67
+ if (!tool)
68
+ return undefined;
69
+ const set = typeof args.toolset_name === 'string' ? args.toolset_name.trim() : '';
70
+ // She sometimes passes the tool's FULL name as well as its toolset: joining
71
+ // them doubled the name ("LevelToolset.EditorToolset.LevelToolset.GetCurrentLevel",
72
+ // seen in his allow list 19 Nov), so it matched nothing and a look-only tool
73
+ // asked. A name that already has dots is the tool's own full name.
74
+ if (!set || tool.includes('.'))
75
+ return tool;
76
+ return `${set}.${tool}`;
77
+ }
78
+ /** A doubled name written before that fix ("A.B.A.B.Tool" → "A.B.Tool"). */
79
+ export function undoubleUnrealName(name) {
80
+ const m = /^(.+?)\.\1\.(.+)$/.exec(name);
81
+ return m ? `${m[1]}.${m[2]}` : name;
82
+ }
83
+ /** Toolset names from list_toolsets' text ("- Name: description", descriptions may run over several lines). */
84
+ export function parseToolsetNames(text) {
85
+ const out = new Set();
86
+ for (const m of text.matchAll(/^- ([A-Za-z_][\w]*(?:\.[\w]+)+):/gm))
87
+ out.add(m[1]);
88
+ return [...out];
89
+ }
90
+ export class UnrealCatalog {
91
+ access;
92
+ toolsets;
93
+ constructor(access, toolsets) {
94
+ this.access = access;
95
+ this.toolsets = toolsets;
96
+ }
97
+ /** An empty catalog: every inner tool unknown, so every call asks. */
98
+ static empty() {
99
+ return new UnrealCatalog(new Map(), new Set());
100
+ }
101
+ /**
102
+ * Read every toolset's tools and their labels (two calls; under a second on
103
+ * his editor for 1,919 tools). Never throws: a catalog it couldn't read is
104
+ * empty, and an empty catalog only means Ava asks more.
105
+ */
106
+ static async load(conn) {
107
+ try {
108
+ const listed = await conn.call('list_toolsets', {});
109
+ const names = parseToolsetNames(listed.text);
110
+ if (!names.length)
111
+ return UnrealCatalog.empty();
112
+ const described = await conn.call('describe_toolsets', { toolset_names: names });
113
+ const parsed = JSON.parse(described.text);
114
+ const access = new Map();
115
+ const toolsets = new Set();
116
+ for (const [setName, s] of Object.entries(parsed.toolsets ?? {})) {
117
+ toolsets.add(setName);
118
+ for (const t of s.tools ?? []) {
119
+ const mode = t.annotations?.accessMode;
120
+ if (t.name && (mode === 'read' || mode === 'write' || mode === 'execute'))
121
+ access.set(t.name, mode);
122
+ }
123
+ }
124
+ return new UnrealCatalog(access, toolsets);
125
+ }
126
+ catch {
127
+ return UnrealCatalog.empty();
128
+ }
129
+ }
130
+ get size() {
131
+ return this.access.size;
132
+ }
133
+ /** Unreal's label for an inner tool, or undefined when it isn't known (then it asks). */
134
+ accessOf(inner) {
135
+ if (!inner)
136
+ return undefined;
137
+ // Unreal's own discovery tools, reached through call_tool, only look.
138
+ if (inner === 'list_toolsets' || inner === 'describe_toolsets' || inner === 'describe_tools')
139
+ return 'read';
140
+ return this.access.get(this.canonical(inner) ?? inner);
141
+ }
142
+ /**
143
+ * Unreal's one full name for a tool however it was written: a doubled name
144
+ * undoubled, and a bare name ("DescribeMode") resolved when exactly one
145
+ * tool has it. So "always allow", the asking rule and the Connections list
146
+ * agree on one name. Unknown names come back as given.
147
+ */
148
+ canonical(inner) {
149
+ if (!inner)
150
+ return inner;
151
+ const name = undoubleUnrealName(inner);
152
+ if (this.access.has(name) || name.includes('.'))
153
+ return name;
154
+ const hits = [...this.access.keys()].filter((k) => k.endsWith(`.${name}`));
155
+ return hits.length === 1 ? hits[0] : name;
156
+ }
157
+ /** The project's toolset plugins are off: none of actors, levels or assets is there. */
158
+ get toolsetsOff() {
159
+ return this.toolsets.size > 0 ? !CORE_TOOLSETS.some((n) => this.toolsets.has(n)) : false;
160
+ }
161
+ }
162
+ /** Ava's guidance for Unreal's tools, added to their descriptions. */
163
+ export function unrealToolGuidance(toolName, catalog) {
164
+ const off = catalog.toolsetsOff
165
+ ? ' Most of Unreal\'s tools are switched off in this project (no actor, level or asset toolsets): tell them to enable All Toolsets under Edit > Plugins in Unreal and restart the editor, instead of working around it.'
166
+ : '';
167
+ if (toolName === 'list_toolsets')
168
+ return `Unreal Engine's tools are grouped in toolsets: list them, describe the ones you need, then call a tool through call_tool.${off}`;
169
+ if (toolName === UNREAL_CALL_TOOL) {
170
+ return 'Unreal runs one call at a time, so call its tools one after another, never several at once. Tools that only look run straight away; anything that changes the project or runs something asks them first.' + off;
171
+ }
172
+ return undefined;
173
+ }
174
+ //# sourceMappingURL=unreal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unreal.js","sourceRoot":"","sources":["../../src/mcp/unreal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAMH,0DAA0D;AAC1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAE/C,6FAA6F;AAC7F,MAAM,CAAC,MAAM,kBAAkB,GAAG,2BAA2B,CAAC;AAE9D,+FAA+F;AAC/F,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAE9C,gDAAgD;AAChD,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,C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3.8-flash', 'qwen3.7-flash', 'qwen3.5-flash', 'nvidia/nemotron-3.5-lightning-30b-a3b'];
28
+ const OWN_KEYS_LADDER = ['qwen3.7-plus', 'deepseek-flash', 'mistral-small-4', 'qwen3.8-flash', 'qwen3.7-flash', 'nvidia/nemotron-3.5-lightning-30b-a3b'];
29
29
  /** A local model (Ollama, LM Studio, any OpenAI-compatible server they run): registered as `generic`. */
30
30
  export function isLocalModel(current) {
31
31
  return current?.provider.name === 'generic';
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/memory-v4/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAKH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,YAAY,GAAsC;IACtD,IAAI,EAAE,CAAC,cAAc,EAAE,eAAe,CAAC;IACvC,SAAS,EAAE,CAAC,gBAAgB,EAAE,cAAc,EAAE,eAAe,CAAC;IAC9D,MAAM,EAAE,CAAC,iBAAiB,CAAC;CAC5B,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,uCAAuC,CAAC,CAAC;AAE1K,yGAAyG;AACzG,MAAM,UAAU,YAAY,CAAC,OAAkD;IAC7E,OAAO,OAAO,EAAE,QAAQ,CAAC,IAAI,KAAK,SAAS,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,gBAAkC,EAClC,kBAAoC,EACpC,WAAoB;AACpB,mGAAmG;AACnG,OAA+D;IAE/D,MAAM,KAAK,GAAG,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IAChE,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,WAA2C,CAAC,CAAC,CAAC,CAAC,SAA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AO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;QAClF,CAAC;QACD,MAAM,MAAM,GAAG,gBAAgB,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QACjD,IAAI,MAAM;YAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;IACxE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -75,7 +75,7 @@ export declare class Conductor {
75
75
  /**
76
76
  * Optional cheap fast provider/model for personas tagged
77
77
  * `modelTier: 'light'`. Pass the same pair resolved by the Auto
78
- * Coordinator's intent gate (Qwen 3.5 Flash on platform, Haiku /
78
+ * Coordinator's intent gate (Qwen 3.7 Flash on platform, Haiku /
79
79
  * DeepSeek on BYOK). When omitted the Conductor runs every persona
80
80
  * on the heavy model — previous behaviour.
81
81
  */
@@ -5,7 +5,7 @@ export type PersonaPhase = 'idle' | 'active' | 'complete' | 'error';
5
5
  * - 'heavy' = coordinator model (Qwen 3.7 Plus / Kimi K3 / DeepSeek Flash).
6
6
  * Architects, Builders, Researchers — the personas doing real reasoning
7
7
  * or generating code. Pays the premium for quality.
8
- * - 'light' = cheap fast model (Qwen 3.5 Flash / DeepSeek Flash).
8
+ * - 'light' = cheap fast model (Qwen 3.7 Flash / DeepSeek Flash).
9
9
  * Critics, gatekeepers, routers, summarisers — personas whose job is to
10
10
  * read, compare, flag, and synthesise. Flash handles these competently
11
11
  * at roughly an eighth of the input cost and a quarter of the output.
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/providers/qwen/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,WAAW,EAAE,eAAe,EA6LxC,CAAC"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/providers/qwen/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,WAAW,EAAE,eAAe,EA8MxC,CAAC"}
@@ -1,16 +1,38 @@
1
1
  export const QWEN_MODELS = [
2
- // Qwen 3.8 Max (3 August 2026) — Alibaba's flagship, and a straight upgrade
3
- // on 3.7 Max rather than a trade-off: cheaper ($2/$6 vs $2.50/$7.50), double
4
- // the output ceiling (131,072 vs 65,536), 2.4T MoE / ~95B active, and video
5
- // in as well as images. Id verified live against DashScope intl — the docs
6
- // page had not caught up yet, the API had.
2
+ // Qwen 4 Max (`qwen4-max`, Model Studio "latest model", pages updated 16–18
3
+ // Nov 2026) — Alibaba's flagship, and cheaper than the 3.8 Max it replaces:
4
+ // $1.50/$4.50 against $2/$6 (Singapore / international, thinking and
5
+ // non-thinking alike, one tier to 1M). 1M context; 131,072 output, 262,144
6
+ // when thinking. Text, image and video in; function calling, thinking,
7
+ // structured output, explicit + implicit cache ($0.075 per 1M cache hit).
8
+ // Read from alibabacloud.com/help/en/model-studio/qwen4-max and
9
+ // /model-pricing, 19 Nov 2026. Alibaba published no benchmarks for it.
7
10
  //
8
- // Still BYOK-first for single-pick, same reasoning as 3.7 Max: $2/$6 does not
9
- // fit the credit-plan margin as a default. Qwen 3.7 Plus stays the Maestro
10
- // conductor.
11
+ // In Maestro (his call, 19 Nov): the deep-work fallback, and the lead seat
12
+ // for planning and security — low-volume, think-hard work. Coding stays on
13
+ // 3.7 Plus until 4 Max is measured on our own traffic (3–4x the price on the
14
+ // highest-volume seat needs proof first).
15
+ {
16
+ id: 'qwen4-max',
17
+ name: 'Qwen 4 Max',
18
+ provider: 'qwen',
19
+ contextWindow: 1000000,
20
+ maxOutputTokens: 131072,
21
+ supportsToolCalls: true,
22
+ supportsStreaming: true,
23
+ supportsThinking: true,
24
+ supportsVision: true,
25
+ desktopCapable: true,
26
+ pricing: { inputPerMillion: 1.50, outputPerMillion: 4.50 },
27
+ },
28
+ // Qwen 3.8 Max — RETIRED 19 Nov 2026 in favour of Qwen 4 Max (his call):
29
+ // newer, cheaper ($1.50/$4.50 against $2/$6), same context and output.
30
+ // Rolled forward, not removed (the qwen3.7-max precedent): model-ids sends
31
+ // it as qwen4-max, so a saved choice keeps working. Hidden from the picker;
32
+ // priced and described as what is actually called.
11
33
  {
12
34
  id: 'qwen3.8-max',
13
- name: 'Qwen 3.8 Max',
35
+ name: 'Qwen 3.8 Max (now Qwen 4 Max)',
14
36
  provider: 'qwen',
15
37
  contextWindow: 1000000,
16
38
  maxOutputTokens: 131072,
@@ -19,7 +41,8 @@ export const QWEN_MODELS = [
19
41
  supportsThinking: true,
20
42
  supportsVision: true,
21
43
  desktopCapable: true,
22
- pricing: { inputPerMillion: 2.00, outputPerMillion: 6.00 },
44
+ hiddenFromPicker: true,
45
+ pricing: { inputPerMillion: 1.50, outputPerMillion: 4.50 },
23
46
  },
24
47
  // Qwen 3.7 Max was here until 2026-08-09, retired in favour of 3.8 Max.
25
48
  // Even on your own key there is no reason to send it: same provider, lower
@@ -68,46 +91,40 @@ export const QWEN_MODELS = [
68
91
  desktopCapable: true,
69
92
  pricing: { inputPerMillion: 0.40, outputPerMillion: 1.60 },
70
93
  },
94
+ // Qwen 3.5 Plus and 3.5 Flash — RETIRED 19 Nov 2026 (his call): Alibaba's
95
+ // current model list no longer carries either, and Maestro still leaned on
96
+ // them as fallbacks, which would fail exactly when needed if Alibaba
97
+ // switched them off. Rolled forward like 3.8 Max: model-ids sends 3.5 Plus
98
+ // as 3.7 Plus and 3.5 Flash as 3.8 Flash, so a saved choice keeps working.
99
+ // Hidden; priced and described as what is actually called. No route,
100
+ // ladder or gate names them any more.
71
101
  {
72
102
  id: 'qwen3.5-plus',
73
- name: 'Qwen 3.5 Plus',
103
+ name: 'Qwen 3.5 Plus (now Qwen 3.7 Plus)',
74
104
  provider: 'qwen',
75
105
  contextWindow: 1000000,
76
- maxOutputTokens: 128000,
106
+ maxOutputTokens: 65536,
77
107
  supportsToolCalls: true,
78
108
  supportsStreaming: true,
79
109
  supportsThinking: true,
80
110
  supportsVision: true,
81
111
  desktopCapable: true,
82
- hiddenFromPicker: true, // superseded by Qwen 3.7 Plus — kept for routing/fallback only
83
- pricing: { inputPerMillion: 0.20, outputPerMillion: 1.20 },
112
+ hiddenFromPicker: true,
113
+ pricing: { inputPerMillion: 0.40, outputPerMillion: 1.60 },
84
114
  },
85
115
  {
86
116
  id: 'qwen3.5-flash',
87
- name: 'Qwen 3.5 Flash',
117
+ name: 'Qwen 3.5 Flash (now Qwen 3.8 Flash)',
88
118
  provider: 'qwen',
89
- contextWindow: 256000,
90
- maxOutputTokens: 8192,
119
+ contextWindow: 1000000,
120
+ maxOutputTokens: 131072,
91
121
  supportsToolCalls: true,
92
122
  supportsStreaming: true,
93
- // FALSE IS DELIBERATE, AND THE NAME IS MISLEADING. This model DOES reason
94
- // by default — measured 2026-08-16, 142 reasoning tokens on "reply with
95
- // one word". So read as a capability claim, the flag is simply wrong.
96
- //
97
- // But the only thing it controls is whether agent.ts REPLAYS
98
- // reasoning_content back to the provider on the next turn, and Qwen
99
- // rejects that with a 422 (the companion route carries the same note:
100
- // "reasoning_content is output-only — replaying it as input 422s on Qwen
101
- // and Mistral and 400s on DeepSeek"). So false produces the correct
102
- // behaviour — strip it — and flipping it to true to "fix" the label would
103
- // start 422-ing every multi-turn Qwen conversation.
104
- //
105
- // If you want to stop this model reasoning, that is a different lever:
106
- // enable_thinking: false on the request (see ChatCompletionRequest). The
107
- // intent gate does exactly that.
108
- supportsThinking: false,
109
- supportsVision: false,
110
- pricing: { inputPerMillion: 0.05, outputPerMillion: 0.40 },
123
+ supportsThinking: true,
124
+ supportsVision: true,
125
+ desktopCapable: true,
126
+ hiddenFromPicker: true,
127
+ pricing: { inputPerMillion: 0.15, outputPerMillion: 0.47 },
111
128
  },
112
129
  {
113
130
  // Qwen 3.7 Flash (Jul 2026) — 1M context, multimodal, function calling.
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/providers/qwen/models.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,4EAA4E;IAC5E,6EAA6E;IAC7E,4EAA4E;IAC5E,2EAA2E;IAC3E,2CAA2C;IAC3C,EAAE;IACF,8EAA8E;IAC9E,2EAA2E;IAC3E,aAAa;IACb;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,MAAM;QACvB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI;QACpB,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE;KAC3D;IACD,wEAAwE;IACxE,2EAA2E;IAC3E,sEAAsE;IACtE,mDAAmD;IACnD,0EAA0E;IAC1E,8EAA8E;IAC9E,+EAA+E;IAC/E,6EAA6E;IAC7E,oEAAoE;IACpE,EAAE;IACF,0EAA0E;IAC1E,0EAA0E;IAC1E,4EAA4E;IAC5E,4EAA4E;IAC5E,2EAA2E;IAC3E,kBAAkB;IAClB,EAAE;IACF,4EAA4E;IAC5E,4EAA4E;IAC5E,uEAAuE;IACvE,2CAA2C;IAC3C;QACE,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,MAAM;QACvB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI;QACpB,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,I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QACzE,0EAA0E;QAC1E,yEAAyE;QACzE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,KAAK;QACtB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,KAAK;QACvB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE;KAC7D;CACF,CAAC"}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/providers/qwen/models.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,4EAA4E;IAC5E,4EAA4E;IAC5E,qEAAqE;IACrE,2EAA2E;IAC3E,uEAAuE;IACvE,0EAA0E;IAC1E,gEAAgE;IAChE,uEAAuE;IACvE,EAAE;IACF,2EAA2E;IAC3E,2EAA2E;IAC3E,6EAA6E;IAC7E,0CAA0C;IAC1C;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,MAAM;QACvB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI;QACpB,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE;KAC3D;IACD,yEAAyE;IACzE,uEAAuE;IACvE,2EAA2E;IAC3E,4EAA4E;IAC5E,mDAAmD;IACnD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,+BAA+B;QACrC,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,MAAM;QACvB,iBAAiB,EAAE,IAAI;QACvB,iBA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B,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,KAAK;QACtB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,IAAI;QACpB,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE;KAC3D;IACD;QACE,uEAAuE;QACvE,4EAA4E;QAC5E,iEAAiE;QACjE,EAAE;QACF,0EAA0E;QAC1E,8EAA8E;QAC9E,0DAA0D;QAC1D,EAAE;QACF,4EAA4E;QAC5E,0EAA0E;QAC1E,oBAAoB;QACpB,EAAE,EAAE,kBAAkB;QACtB,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,KAAK;QACtB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,KAAK;QACvB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE;KAC3D;IACD;QACE,sDAAsD;QACtD,EAAE;QACF,4EAA4E;QAC5E,yEAAyE;QACzE,0EAA0E;QAC1E,yEAAyE;QACzE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,KAAK;QACtB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,KAAK;QACvB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE;KAC7D;CACF,CAAC"}
@@ -25,7 +25,9 @@ export declare const MODEL_API_NAMES: Record<string, string>;
25
25
  * When a request carries images, reroute text-only models to a vision-capable
26
26
  * equivalent. Keys/values are POST-translation ids (run after MODEL_API_NAMES).
27
27
  *
28
- * qwen3.5-flash is text-only. DeepSeek V4 (Pro + Flash) is text-only at the API
28
+ * (qwen3.5-flash, text-only, used to be here; since 2026-11-19 it and the qwen-flash /
29
+ * qwen-turbo aliases roll forward to qwen3.8-flash, which takes images itself.)
30
+ * DeepSeek V4 (Pro + Flash) is text-only at the API
29
31
  * level (verified against api.deepseek.com 2026-04-25) so image requests reroute
30
32
  * to Qwen 3.7 Plus (native vision + video). Aurora coordinates on Medium 3.5,
31
33
  * whose vision encoder was trained from scratch, so images stay in-fleet and
@@ -1 +1 @@
1
- {"version":3,"file":"model-ids.d.ts","sourceRoot":"","sources":["../../../src/providers/request-shaping/model-ids.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwClD,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQjD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,UAAQ,GAAG,MAAM,CAMxE;AAED,+DAA+D;AAC/D,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,OAAO,CAM5F"}
1
+ {"version":3,"file":"model-ids.d.ts","sourceRoot":"","sources":["../../../src/providers/request-shaping/model-ids.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgDlD,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKjD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,UAAQ,GAAG,MAAM,CAMxE;AAED,+DAA+D;AAC/D,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,OAAO,CAM5F"}
@@ -22,14 +22,22 @@
22
22
  */
23
23
  export const MODEL_API_NAMES = {
24
24
  // Qwen legacy rolling aliases -> current generation
25
- 'qwen-flash': 'qwen3.5-flash',
26
- 'qwen-turbo': 'qwen3.5-flash',
25
+ 'qwen-flash': 'qwen3.8-flash',
26
+ 'qwen-turbo': 'qwen3.8-flash',
27
+ // Qwen 3.5 Plus / 3.5 Flash retired 2026-11-19 (gone from Alibaba's model
28
+ // list; his call): rolled forward to the current Plus and Flash, so a saved
29
+ // selection keeps working on a better, multimodal model.
30
+ 'qwen3.5-plus': 'qwen3.7-plus',
31
+ 'qwen3.5-flash': 'qwen3.8-flash',
32
+ // Qwen 3.8 Max retired 2026-11-19 in favour of Qwen 4 Max — newer and
33
+ // cheaper ($1.50/$4.50 against $2/$6), same 1M context (his call).
34
+ 'qwen3.8-max': 'qwen4-max',
27
35
  // 3.7 Max retired 2026-08-09 in favour of 3.8 Max, which is better on every
28
36
  // axis AND cheaper ($2/$6 against $2.50/$7.50, 131K output against 65K) and
29
37
  // therefore costs FEWER credits (2.58x against 3.22x). Rolled forward rather
30
38
  // than removed: a saved selection keeps working, and the person holding it
31
39
  // gets a better model for less money without being asked to do anything.
32
- 'qwen3.7-max': 'qwen3.8-max',
40
+ 'qwen3.7-max': 'qwen4-max',
33
41
  // MiniMax M2.7 (+ Highspeed) retired upstream 2026-11-18 (closed to new
34
42
  // users 2026-10-19). MiniMax routes them to M3.1 Flash on its plans; we do
35
43
  // the same for own-key calls, so a saved choice survives the shutdown.
@@ -65,7 +73,9 @@ export const MODEL_API_NAMES = {
65
73
  * When a request carries images, reroute text-only models to a vision-capable
66
74
  * equivalent. Keys/values are POST-translation ids (run after MODEL_API_NAMES).
67
75
  *
68
- * qwen3.5-flash is text-only. DeepSeek V4 (Pro + Flash) is text-only at the API
76
+ * (qwen3.5-flash, text-only, used to be here; since 2026-11-19 it and the qwen-flash /
77
+ * qwen-turbo aliases roll forward to qwen3.8-flash, which takes images itself.)
78
+ * DeepSeek V4 (Pro + Flash) is text-only at the API
69
79
  * level (verified against api.deepseek.com 2026-04-25) so image requests reroute
70
80
  * to Qwen 3.7 Plus (native vision + video). Aurora coordinates on Medium 3.5,
71
81
  * whose vision encoder was trained from scratch, so images stay in-fleet and
@@ -74,9 +84,6 @@ export const MODEL_API_NAMES = {
74
84
  * now.)
75
85
  */
76
86
  export const VISION_REROUTE = {
77
- 'qwen3.5-flash': 'qwen3.7-plus',
78
- 'qwen-flash': 'qwen3.7-plus',
79
- 'qwen-turbo': 'qwen3.7-plus',
80
87
  // DeepSeek is deliberately absent: V4 Pro and V4 Flash were both text-only
81
88
  // at the API level and rerouted here. V4.1 Flash is multimodal, so it takes
82
89
  // the image itself — rerouting it would hand its own work to Qwen.
@@ -1 +1 @@
1
- {"version":3,"file":"model-ids.js","sourceRoot":"","sources":["../../../src/providers/request-shaping/model-ids.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAA2B;IACrD,oDAAoD;IACpD,YAAY,EAAS,eAAe;IACpC,YAAY,EAAS,eAAe;IACpC,4EAA4E;IAC5E,4EAA4E;IAC5E,6EAA6E;IAC7E,2EAA2E;IAC3E,yEAAyE;IACzE,aAAa,EAAQ,aAAa;IAClC,wEAAwE;IACxE,2EAA2E;IAC3E,uEAAuE;IACvE,cAAc,EAAY,oBAAoB;IAC9C,wBAAwB,EAAE,oBAAoB;IAC9C,yDAAyD;IACzD,yBAAyB,EAAI,gBAAgB;IAC7C,qEAAqE;IACrE,iEAAiE;IACjE,mEAAmE;IACnE,kBAAkB,EAAY,SAAS;IACvC,0EAA0E;IAC1E,uEA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e,CAAC,KAAa,EAAE,SAAS,GAAG,KAAK;IAC9D,MAAM,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC;IAC/C,IAAI,SAAS,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;QACxC,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,kBAAkB,CAAC,QAAgD;IACjF,OAAO,QAAQ,CAAC,IAAI,CAClB,CAAC,CAAC,EAAE,EAAE,CACJ,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;QACvB,CAAC,CAAC,OAAoC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,CAC9E,CAAC;AACJ,CAAC"}
@@ -184,7 +184,7 @@ export class DesignBuildModelTool {
184
184
  },
185
185
  fbx: {
186
186
  type: 'boolean',
187
- description: 'Also export an .fbx (Unreal / Unity). A .glb is always exported.',
187
+ description: 'Also export an .fbx — for rigged or animated models (characters) going to Unreal or Unity. Props go to Unreal as the .glb, which is always exported (tested on Unreal 5.9, 19 Nov: cleaner import, packed textures, no warnings).',
188
188
  },
189
189
  timeout_seconds: {
190
190
  type: 'number',