@project-ava-supernova/core 0.2.191 → 0.2.193

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 (119) hide show
  1. package/dist/audit/cost.d.ts +20 -0
  2. package/dist/audit/cost.d.ts.map +1 -1
  3. package/dist/audit/cost.js +44 -6
  4. package/dist/audit/cost.js.map +1 -1
  5. package/dist/auto/coordinator-model.d.ts.map +1 -1
  6. package/dist/auto/coordinator-model.js +1 -2
  7. package/dist/auto/coordinator-model.js.map +1 -1
  8. package/dist/auto/model-router.js +1 -1
  9. package/dist/auto/model-router.js.map +1 -1
  10. package/dist/auto/task-classifier.d.ts.map +1 -1
  11. package/dist/auto/task-classifier.js +13 -12
  12. package/dist/auto/task-classifier.js.map +1 -1
  13. package/dist/docs/data/providers.d.ts.map +1 -1
  14. package/dist/docs/data/providers.js +7 -6
  15. package/dist/docs/data/providers.js.map +1 -1
  16. package/dist/i18n/locales/ar.d.ts.map +1 -1
  17. package/dist/i18n/locales/ar.js +14 -3
  18. package/dist/i18n/locales/ar.js.map +1 -1
  19. package/dist/i18n/locales/de.d.ts.map +1 -1
  20. package/dist/i18n/locales/de.js +14 -3
  21. package/dist/i18n/locales/de.js.map +1 -1
  22. package/dist/i18n/locales/en.d.ts +11 -0
  23. package/dist/i18n/locales/en.d.ts.map +1 -1
  24. package/dist/i18n/locales/en.js +14 -3
  25. package/dist/i18n/locales/en.js.map +1 -1
  26. package/dist/i18n/locales/es.d.ts.map +1 -1
  27. package/dist/i18n/locales/es.js +14 -3
  28. package/dist/i18n/locales/es.js.map +1 -1
  29. package/dist/i18n/locales/fr.d.ts.map +1 -1
  30. package/dist/i18n/locales/fr.js +14 -3
  31. package/dist/i18n/locales/fr.js.map +1 -1
  32. package/dist/i18n/locales/hi.d.ts.map +1 -1
  33. package/dist/i18n/locales/hi.js +14 -3
  34. package/dist/i18n/locales/hi.js.map +1 -1
  35. package/dist/i18n/locales/id.d.ts.map +1 -1
  36. package/dist/i18n/locales/id.js +14 -3
  37. package/dist/i18n/locales/id.js.map +1 -1
  38. package/dist/i18n/locales/it.d.ts.map +1 -1
  39. package/dist/i18n/locales/it.js +14 -3
  40. package/dist/i18n/locales/it.js.map +1 -1
  41. package/dist/i18n/locales/ja.d.ts.map +1 -1
  42. package/dist/i18n/locales/ja.js +14 -3
  43. package/dist/i18n/locales/ja.js.map +1 -1
  44. package/dist/i18n/locales/ko.d.ts.map +1 -1
  45. package/dist/i18n/locales/ko.js +14 -3
  46. package/dist/i18n/locales/ko.js.map +1 -1
  47. package/dist/i18n/locales/nl.d.ts.map +1 -1
  48. package/dist/i18n/locales/nl.js +14 -3
  49. package/dist/i18n/locales/nl.js.map +1 -1
  50. package/dist/i18n/locales/pl.d.ts.map +1 -1
  51. package/dist/i18n/locales/pl.js +14 -3
  52. package/dist/i18n/locales/pl.js.map +1 -1
  53. package/dist/i18n/locales/pt.d.ts.map +1 -1
  54. package/dist/i18n/locales/pt.js +14 -3
  55. package/dist/i18n/locales/pt.js.map +1 -1
  56. package/dist/i18n/locales/ru.d.ts.map +1 -1
  57. package/dist/i18n/locales/ru.js +14 -3
  58. package/dist/i18n/locales/ru.js.map +1 -1
  59. package/dist/i18n/locales/th.d.ts.map +1 -1
  60. package/dist/i18n/locales/th.js +14 -3
  61. package/dist/i18n/locales/th.js.map +1 -1
  62. package/dist/i18n/locales/tr.d.ts.map +1 -1
  63. package/dist/i18n/locales/tr.js +14 -3
  64. package/dist/i18n/locales/tr.js.map +1 -1
  65. package/dist/i18n/locales/uk.d.ts.map +1 -1
  66. package/dist/i18n/locales/uk.js +14 -3
  67. package/dist/i18n/locales/uk.js.map +1 -1
  68. package/dist/i18n/locales/vi.d.ts.map +1 -1
  69. package/dist/i18n/locales/vi.js +14 -3
  70. package/dist/i18n/locales/vi.js.map +1 -1
  71. package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
  72. package/dist/i18n/locales/zh-CN.js +14 -3
  73. package/dist/i18n/locales/zh-CN.js.map +1 -1
  74. package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
  75. package/dist/i18n/locales/zh-TW.js +14 -3
  76. package/dist/i18n/locales/zh-TW.js.map +1 -1
  77. package/dist/mcp/connection.d.ts.map +1 -1
  78. package/dist/mcp/connection.js +19 -11
  79. package/dist/mcp/connection.js.map +1 -1
  80. package/dist/mcp/manager.d.ts +41 -0
  81. package/dist/mcp/manager.d.ts.map +1 -1
  82. package/dist/mcp/manager.js +93 -13
  83. package/dist/mcp/manager.js.map +1 -1
  84. package/dist/mcp/page.d.ts.map +1 -1
  85. package/dist/mcp/page.js +5 -0
  86. package/dist/mcp/page.js.map +1 -1
  87. package/dist/mcp/suggested.d.ts +7 -7
  88. package/dist/mcp/suggested.d.ts.map +1 -1
  89. package/dist/mcp/suggested.js +10 -10
  90. package/dist/mcp/suggested.js.map +1 -1
  91. package/dist/mcp/unreal-context.d.ts.map +1 -1
  92. package/dist/mcp/unreal-context.js +65 -10
  93. package/dist/mcp/unreal-context.js.map +1 -1
  94. package/dist/mcp/unreal-local.d.ts +46 -0
  95. package/dist/mcp/unreal-local.d.ts.map +1 -0
  96. package/dist/mcp/unreal-local.js +163 -0
  97. package/dist/mcp/unreal-local.js.map +1 -0
  98. package/dist/mcp/unreal.d.ts +44 -12
  99. package/dist/mcp/unreal.d.ts.map +1 -1
  100. package/dist/mcp/unreal.js +99 -21
  101. package/dist/mcp/unreal.js.map +1 -1
  102. package/dist/providers/deepseek/models.d.ts.map +1 -1
  103. package/dist/providers/deepseek/models.js +13 -4
  104. package/dist/providers/deepseek/models.js.map +1 -1
  105. package/dist/providers/kimi/models.d.ts.map +1 -1
  106. package/dist/providers/kimi/models.js +51 -14
  107. package/dist/providers/kimi/models.js.map +1 -1
  108. package/dist/providers/request-shaping/model-ids.d.ts +2 -3
  109. package/dist/providers/request-shaping/model-ids.d.ts.map +1 -1
  110. package/dist/providers/request-shaping/model-ids.js +13 -7
  111. package/dist/providers/request-shaping/model-ids.js.map +1 -1
  112. package/dist/providers/tencent/index.d.ts +4 -2
  113. package/dist/providers/tencent/index.d.ts.map +1 -1
  114. package/dist/providers/tencent/index.js +5 -3
  115. package/dist/providers/tencent/index.js.map +1 -1
  116. package/dist/providers/tencent/models.d.ts.map +1 -1
  117. package/dist/providers/tencent/models.js +47 -5
  118. package/dist/providers/tencent/models.js.map +1 -1
  119. package/package.json +6 -1
@@ -1,13 +1,16 @@
1
1
  /**
2
- * Unreal Engine's own MCP server (UE 5.9+) — what Ava needs to know about it
2
+ * Unreal Engine's own MCP server (UE 5.8+) — what Ava needs to know about it
3
3
  * beyond plain MCP. Plan: Decisions/plans/2026-11-18-unreal.md (private), Phase 1.
4
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
5
+ * Unreal puts its tools behind meta-tools — in 5.9 four (list_toolsets,
6
+ * describe_toolsets, describe_tools, call_tool; ~1,900 tools), in 5.8 three
7
+ * (list_toolsets, describe_toolset — one at a time — and call_tool; 830 tools
8
+ * in 52 toolsets, read from his 5.8 editor 20 Nov). So "which tool is this?" is
7
9
  * never the MCP tool's name — it is call_tool's `toolset_name` + `tool_name`.
8
10
  * Every inner tool carries Unreal's own label, `annotations.accessMode`:
9
11
  * read / write / execute (read live from his editor, 18 Nov 2026: 802 / 1,042 /
10
- * 75, every tool labelled).
12
+ * 75, every tool labelled). 5.8 labels none of them, so there every inner tool
13
+ * asks until "always" — the labels are what the decision below trusts.
11
14
  *
12
15
  * His decision (18 Nov, "i agree"): Unreal's READ tools run without asking;
13
16
  * WRITE and EXECUTE ask, with "always allow" per tool. That trusts this one
@@ -15,23 +18,40 @@
15
18
  * no other server's (plan 2026-11-17-mcp-servers, decision 2, still holds).
16
19
  *
17
20
  * Known by the name it reports ("unreal-mcp"), not by its address: the port
18
- * and path can be changed in the editor.
21
+ * and path can be changed in the editor. 5.8 reports a BLANK name and version,
22
+ * so there it is known by its meta-tools instead (isUnrealServer).
19
23
  */
20
24
  import type { McpConnection } from './connection.js';
21
25
  export type UnrealAccess = 'read' | 'write' | 'execute';
22
26
  /** The name Unreal's server reports in its serverInfo. */
23
27
  export declare const UNREAL_SERVER_NAME = "unreal-mcp";
24
- /** Its default address (Editor Preferences > Agentic Workflows > Model Context Protocol). */
28
+ /** Its default address (5.9: Editor Preferences > Agentic Workflows > Model Context Protocol;
29
+ * 5.8: Editor Preferences > General > Model Context Protocol, where Auto Start Server is OFF by default). */
25
30
  export declare const UNREAL_DEFAULT_URL = "http://127.0.0.1:8000/mcp";
26
31
  /** Unreal runs tools one at a time on the editor's game thread; a compile can take minutes. */
27
32
  export declare const UNREAL_CALL_TIMEOUT_MS = 600000;
28
33
  /** The meta-tool that runs every inner tool. */
29
34
  export declare const UNREAL_CALL_TOOL = "call_tool";
35
+ /**
36
+ * Unreal's picture-taking tools (CaptureViewport, CaptureEditorImage,
37
+ * CaptureAssetImage, SceneCaptureToolset.* …): anything whose toolset or name
38
+ * says "capture". In the VS Code extension each one asks EVERY time, whatever
39
+ * Unreal labels it and with no "always" (his call, 20 Nov 2026) — the
40
+ * Marketplace stance on screen capture: no picture the person didn't approve.
41
+ */
42
+ export declare function isUnrealCaptureTool(inner: string | undefined | null): boolean;
43
+ /** Unreal's discovery meta-tools, 5.8's and 5.9's: they only look. */
44
+ export declare const UNREAL_DISCOVERY_TOOLS: readonly string[];
30
45
  /** "Always allow" for one inner tool is kept in the server's allow list as `call_tool:<Toolset.Tool>`. */
31
46
  export declare const unrealAllowKey: (inner: string) => string;
47
+ /**
48
+ * Is this Unreal's server? 5.9 says so by name. 5.8 reports a blank name (read
49
+ * from his editor, 20 Nov), so a server with no name that offers Unreal's own
50
+ * meta-tools — list_toolsets, call_tool and a describe — is Unreal too.
51
+ */
32
52
  export declare function isUnrealServer(info: {
33
53
  name?: string;
34
- } | undefined | null): boolean;
54
+ } | undefined | null, toolNames?: readonly string[]): boolean;
35
55
  /**
36
56
  * What the editor says about itself when Ava connects: Unreal puts the open
37
57
  * project in the initialize answer's _meta (read live 18 Nov:
@@ -45,8 +65,11 @@ export interface UnrealEditorInfo {
45
65
  engineVersion?: string;
46
66
  }
47
67
  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];
68
+ /** The oldest Unreal Ava works with. Was 5.9 (his call, 18 Nov); opened to 5.8
69
+ * on 20 Nov for him to test on a 5.8 project — Epic's MCP plugin first shipped,
70
+ * Experimental, in 5.8 (June 2026). 5.9-only features (Kimodo's AnimGenOffline)
71
+ * are gated on the project, not the version, so a 5.8 project never gets them. */
72
+ export declare const UNREAL_MIN_VERSION: readonly [5, 8];
50
73
  /**
51
74
  * Is this Unreal new enough? Its server reports e.g. "5.9.0-60351404". 5.9 and
52
75
  * later (5.10, 6.x) pass; anything older doesn't. A version it can't read
@@ -67,15 +90,24 @@ export declare function parseToolsetNames(text: string): string[];
67
90
  export declare class UnrealCatalog {
68
91
  private readonly access;
69
92
  readonly toolsets: ReadonlySet<string>;
93
+ /** 5.8's shape: describe_toolset, one toolset at a time, and no read / write / execute labels. */
94
+ readonly oneAtATime: boolean;
95
+ /** Every inner tool's full name, labelled or not (5.8 labels none: its count was 0 on the page, 20 Nov). */
96
+ private readonly names;
70
97
  private constructor();
98
+ /** Does Unreal label its tools here (5.9)? 5.8 doesn't, so every inner tool asks until "always". */
99
+ get labelled(): boolean;
71
100
  /** An empty catalog: every inner tool unknown, so every call asks. */
72
101
  static empty(): UnrealCatalog;
73
102
  /**
74
103
  * 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.
104
+ * his editor for 1,919 tools). 5.8 has no describe_toolsets: there each
105
+ * toolset is described on its own (`oneAtATime`, 52 calls). Never throws: a
106
+ * catalog it couldn't read is empty, and an empty catalog only means Ava
107
+ * asks more.
77
108
  */
78
- static load(conn: Pick<McpConnection, 'call'>): Promise<UnrealCatalog>;
109
+ static load(conn: Pick<McpConnection, 'call'>, oneAtATime?: boolean): Promise<UnrealCatalog>;
110
+ /** How many tools the editor has (labelled or not). */
79
111
  get size(): number;
80
112
  /** Unreal's label for an inner tool, or undefined when it isn't known (then it asks). */
81
113
  accessOf(inner: string | undefined): UnrealAccess | undefined;
@@ -1 +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;;;;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G,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;IACtC,kGAAkG;IAClG,QAAQ,CAAC,UAAU;IACnB,4GAA4G;IAC5G,OAAO,CAAC,QAAQ,CAAC,KAAK;IANxB,OAAO;IASP,oGAAoG;IACpG,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,sEAAsE;IACtE,MAAM,CAAC,KAAK,IAAI,aAAa;IAI7B;;;;;;OAMG;WACU,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,UAAU,UAAQ,GAAG,OAAO,CAAC,aAAa,CAAC;IA4ChG,uDAAuD;IACvD,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"}
@@ -1,13 +1,16 @@
1
1
  /**
2
- * Unreal Engine's own MCP server (UE 5.9+) — what Ava needs to know about it
2
+ * Unreal Engine's own MCP server (UE 5.8+) — what Ava needs to know about it
3
3
  * beyond plain MCP. Plan: Decisions/plans/2026-11-18-unreal.md (private), Phase 1.
4
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
5
+ * Unreal puts its tools behind meta-tools — in 5.9 four (list_toolsets,
6
+ * describe_toolsets, describe_tools, call_tool; ~1,900 tools), in 5.8 three
7
+ * (list_toolsets, describe_toolset — one at a time — and call_tool; 830 tools
8
+ * in 52 toolsets, read from his 5.8 editor 20 Nov). So "which tool is this?" is
7
9
  * never the MCP tool's name — it is call_tool's `toolset_name` + `tool_name`.
8
10
  * Every inner tool carries Unreal's own label, `annotations.accessMode`:
9
11
  * read / write / execute (read live from his editor, 18 Nov 2026: 802 / 1,042 /
10
- * 75, every tool labelled).
12
+ * 75, every tool labelled). 5.8 labels none of them, so there every inner tool
13
+ * asks until "always" — the labels are what the decision below trusts.
11
14
  *
12
15
  * His decision (18 Nov, "i agree"): Unreal's READ tools run without asking;
13
16
  * WRITE and EXECUTE ask, with "always allow" per tool. That trusts this one
@@ -15,22 +18,50 @@
15
18
  * no other server's (plan 2026-11-17-mcp-servers, decision 2, still holds).
16
19
  *
17
20
  * Known by the name it reports ("unreal-mcp"), not by its address: the port
18
- * and path can be changed in the editor.
21
+ * and path can be changed in the editor. 5.8 reports a BLANK name and version,
22
+ * so there it is known by its meta-tools instead (isUnrealServer).
19
23
  */
20
24
  /** The name Unreal's server reports in its serverInfo. */
21
25
  export const UNREAL_SERVER_NAME = 'unreal-mcp';
22
- /** Its default address (Editor Preferences > Agentic Workflows > Model Context Protocol). */
26
+ /** Its default address (5.9: Editor Preferences > Agentic Workflows > Model Context Protocol;
27
+ * 5.8: Editor Preferences > General > Model Context Protocol, where Auto Start Server is OFF by default). */
23
28
  export const UNREAL_DEFAULT_URL = 'http://127.0.0.1:8000/mcp';
24
29
  /** Unreal runs tools one at a time on the editor's game thread; a compile can take minutes. */
25
30
  export const UNREAL_CALL_TIMEOUT_MS = 600_000;
26
31
  /** The meta-tool that runs every inner tool. */
27
32
  export const UNREAL_CALL_TOOL = 'call_tool';
33
+ /**
34
+ * Unreal's picture-taking tools (CaptureViewport, CaptureEditorImage,
35
+ * CaptureAssetImage, SceneCaptureToolset.* …): anything whose toolset or name
36
+ * says "capture". In the VS Code extension each one asks EVERY time, whatever
37
+ * Unreal labels it and with no "always" (his call, 20 Nov 2026) — the
38
+ * Marketplace stance on screen capture: no picture the person didn't approve.
39
+ */
40
+ export function isUnrealCaptureTool(inner) {
41
+ return !!inner && /capture/i.test(inner);
42
+ }
43
+ /** Unreal's discovery meta-tools, 5.8's and 5.9's: they only look. */
44
+ export const UNREAL_DISCOVERY_TOOLS = ['list_toolsets', 'describe_toolsets', 'describe_tools', 'describe_toolset'];
28
45
  /** "Always allow" for one inner tool is kept in the server's allow list as `call_tool:<Toolset.Tool>`. */
29
46
  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;
47
+ /** Toolsets whose absence means the project's toolset plugins are off (Epic issue UE-412135).
48
+ * 5.9's names, then 5.8's (it names the same toolsets differently). */
49
+ const CORE_TOOLSETS = [
50
+ 'EditorToolset.ActorToolset', 'EditorToolset.LevelToolset', 'EditorToolset.AssetToolset',
51
+ 'editor_toolset.toolsets.actor.ActorTools', 'editor_toolset.toolsets.scene.SceneTools', 'editor_toolset.toolsets.asset.AssetTools',
52
+ ];
53
+ /**
54
+ * Is this Unreal's server? 5.9 says so by name. 5.8 reports a blank name (read
55
+ * from his editor, 20 Nov), so a server with no name that offers Unreal's own
56
+ * meta-tools — list_toolsets, call_tool and a describe — is Unreal too.
57
+ */
58
+ export function isUnrealServer(info, toolNames) {
59
+ if (info?.name === UNREAL_SERVER_NAME)
60
+ return true;
61
+ if (info?.name?.trim())
62
+ return false;
63
+ const t = new Set(toolNames ?? []);
64
+ return t.has('list_toolsets') && t.has(UNREAL_CALL_TOOL) && (t.has('describe_toolset') || t.has('describe_toolsets'));
34
65
  }
35
66
  export function unrealEditorInfo(initResult) {
36
67
  const meta = initResult?._meta;
@@ -40,8 +71,11 @@ export function unrealEditorInfo(initResult) {
40
71
  const str = (v) => (typeof v === 'string' && v.trim() ? v.trim() : undefined);
41
72
  return { project: str(inst.projectName), projectDir: str(inst.projectDirectory), engineVersion: str(inst.engineVersion) };
42
73
  }
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];
74
+ /** The oldest Unreal Ava works with. Was 5.9 (his call, 18 Nov); opened to 5.8
75
+ * on 20 Nov for him to test on a 5.8 project — Epic's MCP plugin first shipped,
76
+ * Experimental, in 5.8 (June 2026). 5.9-only features (Kimodo's AnimGenOffline)
77
+ * are gated on the project, not the version, so a 5.8 project never gets them. */
78
+ export const UNREAL_MIN_VERSION = [5, 8];
45
79
  /**
46
80
  * Is this Unreal new enough? Its server reports e.g. "5.9.0-60351404". 5.9 and
47
81
  * later (5.10, 6.x) pass; anything older doesn't. A version it can't read
@@ -90,9 +124,21 @@ export function parseToolsetNames(text) {
90
124
  export class UnrealCatalog {
91
125
  access;
92
126
  toolsets;
93
- constructor(access, toolsets) {
127
+ oneAtATime;
128
+ names;
129
+ constructor(access, toolsets,
130
+ /** 5.8's shape: describe_toolset, one toolset at a time, and no read / write / execute labels. */
131
+ oneAtATime = false,
132
+ /** Every inner tool's full name, labelled or not (5.8 labels none: its count was 0 on the page, 20 Nov). */
133
+ names = new Set(access.keys())) {
94
134
  this.access = access;
95
135
  this.toolsets = toolsets;
136
+ this.oneAtATime = oneAtATime;
137
+ this.names = names;
138
+ }
139
+ /** Does Unreal label its tools here (5.9)? 5.8 doesn't, so every inner tool asks until "always". */
140
+ get labelled() {
141
+ return this.access.size > 0;
96
142
  }
97
143
  /** An empty catalog: every inner tool unknown, so every call asks. */
98
144
  static empty() {
@@ -100,42 +146,74 @@ export class UnrealCatalog {
100
146
  }
101
147
  /**
102
148
  * 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.
149
+ * his editor for 1,919 tools). 5.8 has no describe_toolsets: there each
150
+ * toolset is described on its own (`oneAtATime`, 52 calls). Never throws: a
151
+ * catalog it couldn't read is empty, and an empty catalog only means Ava
152
+ * asks more.
105
153
  */
106
- static async load(conn) {
154
+ static async load(conn, oneAtATime = false) {
107
155
  try {
108
156
  const listed = await conn.call('list_toolsets', {});
109
157
  const names = parseToolsetNames(listed.text);
110
158
  if (!names.length)
111
159
  return UnrealCatalog.empty();
160
+ if (oneAtATime) {
161
+ const access = new Map();
162
+ const toolsets = new Set();
163
+ const all = new Set();
164
+ for (const n of names) {
165
+ const one = await conn.call('describe_toolset', { toolset_name: n }).catch(() => undefined);
166
+ if (!one)
167
+ continue;
168
+ let s;
169
+ try {
170
+ s = JSON.parse(one.text);
171
+ }
172
+ catch {
173
+ continue;
174
+ }
175
+ toolsets.add(s?.name ?? n);
176
+ for (const t of s?.tools ?? []) {
177
+ if (t.name)
178
+ all.add(t.name);
179
+ const mode = t.annotations?.accessMode;
180
+ if (t.name && (mode === 'read' || mode === 'write' || mode === 'execute'))
181
+ access.set(t.name, mode);
182
+ }
183
+ }
184
+ return new UnrealCatalog(access, toolsets, true, all);
185
+ }
112
186
  const described = await conn.call('describe_toolsets', { toolset_names: names });
113
187
  const parsed = JSON.parse(described.text);
114
188
  const access = new Map();
115
189
  const toolsets = new Set();
190
+ const all = new Set();
116
191
  for (const [setName, s] of Object.entries(parsed.toolsets ?? {})) {
117
192
  toolsets.add(setName);
118
193
  for (const t of s.tools ?? []) {
194
+ if (t.name)
195
+ all.add(t.name);
119
196
  const mode = t.annotations?.accessMode;
120
197
  if (t.name && (mode === 'read' || mode === 'write' || mode === 'execute'))
121
198
  access.set(t.name, mode);
122
199
  }
123
200
  }
124
- return new UnrealCatalog(access, toolsets);
201
+ return new UnrealCatalog(access, toolsets, false, all);
125
202
  }
126
203
  catch {
127
204
  return UnrealCatalog.empty();
128
205
  }
129
206
  }
207
+ /** How many tools the editor has (labelled or not). */
130
208
  get size() {
131
- return this.access.size;
209
+ return this.names.size;
132
210
  }
133
211
  /** Unreal's label for an inner tool, or undefined when it isn't known (then it asks). */
134
212
  accessOf(inner) {
135
213
  if (!inner)
136
214
  return undefined;
137
215
  // Unreal's own discovery tools, reached through call_tool, only look.
138
- if (inner === 'list_toolsets' || inner === 'describe_toolsets' || inner === 'describe_tools')
216
+ if (UNREAL_DISCOVERY_TOOLS.includes(inner))
139
217
  return 'read';
140
218
  return this.access.get(this.canonical(inner) ?? inner);
141
219
  }
@@ -149,9 +227,9 @@ export class UnrealCatalog {
149
227
  if (!inner)
150
228
  return inner;
151
229
  const name = undoubleUnrealName(inner);
152
- if (this.access.has(name) || name.includes('.'))
230
+ if (this.names.has(name) || name.includes('.'))
153
231
  return name;
154
- const hits = [...this.access.keys()].filter((k) => k.endsWith(`.${name}`));
232
+ const hits = [...this.names].filter((k) => k.endsWith(`.${name}`));
155
233
  return hits.length === 1 ? hits[0] : name;
156
234
  }
157
235
  /** The project's toolset plugins are off: none of actors, levels or assets is there. */
@@ -1 +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,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appings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAc3D,eAAO,MAAM,eAAe,EAAE,eAAe,EAgC5C,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAajE,CAAC;AAEF,yEAAyE;AACzE,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEpD"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/providers/deepseek/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAqB3D,eAAO,MAAM,eAAe,EAAE,eAAe,EAgC5C,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAejE,CAAC;AAEF,yEAAyE;AACzE,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEpD"}
@@ -2,10 +2,17 @@
2
2
  // MoE variants. Both support 1M context, dual thinking/non-thinking modes,
3
3
  // native OpenAI + Anthropic API compat.
4
4
  //
5
- // ONE MODEL. DeepSeek collapsed the line on 2026-09-10: `deepseek-flash`
6
- // (V4.1 Flash, and note there is no version number in the id) is the only
7
- // live model. V4 Pro is retiring and redirects to it; `deepseek-flash`
8
- // survives only as a legacy alias.
5
+ // ONE MODEL offered: `deepseek-flash` (V4.1 Flash, now the 1017 build; note
6
+ // there is no version number in the id).
7
+ //
8
+ // V4 Pro is NOT retired — DeepSeek announced it would be on 2026-09-10, then
9
+ // changed course the same day and still serves it at its old price. We route
10
+ // it to V4.1 Flash anyway, on DeepSeek's own word: their V4.1 Flash notice
11
+ // says tests "put V4.1-Flash ahead of V4-Pro on performance, cost, speed &
12
+ // total runtime", and Pro costs about four times as much ($0.66/$1.98 against
13
+ // $0.15/$0.60 off-peak). Quality first, then cost — Flash wins both, so a Pro
14
+ // pick gets the better model (his call, 20 Nov 2026). Revisit when V4.1 Pro
15
+ // ships, which DeepSeek has said is coming.
9
16
  //
10
17
  // Every retired id we have ever shipped is mapped in DEEPSEEK_RETIRED_IDS
11
18
  // below and rewritten by us before a request goes out, rather than trusting
@@ -57,6 +64,8 @@ export const DEEPSEEK_RETIRED_IDS = {
57
64
  // NOTE: these KEYS are the retired ids and must keep their old spelling —
58
65
  // that is the entire point of the map. A global rename across the package
59
66
  // flattened them once already.
67
+ // V4 Pro is still served, but routed to Flash on purpose — see the top of
68
+ // this file.
60
69
  'deepseek-v4-pro': 'deepseek-flash',
61
70
  'deepseek-v4-pro-platform': 'deepseek-flash-platform',
62
71
  'deepseek-v4-flash': 'deepseek-flash',
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/providers/deepseek/models.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,2EAA2E;AAC3E,wCAAwC;AACxC,EAAE;AACF,yEAAyE;AACzE,0EAA0E;AAC1E,uEAAuE;AACvE,mCAAmC;AACnC,EAAE;AACF,0EAA0E;AAC1E,4EAA4E;AAC5E,+BAA+B;AAC/B,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD;QACE,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,UAAU;QACpB,aAAa,EAAE,SAAS;QACxB,0EAA0E;QAC1E,2EAA2E;QAC3E,mDAAmD;QACnD,eAAe,EAAE,OAAO;QACxB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,wEAAwE;QACxE,yEAAyE;QACzE,wEAAwE;QACxE,mEAAmE;QACnE,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI,EAAE,2BAA2B;QACjD,uEAAuE;QACvE,kDAAkD;QAClD,EAAE;QACF,wDAAw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AAO;QACxB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,wEAAwE;QACxE,yEAAyE;QACzE,wEAAwE;QACxE,mEAAmE;QACnE,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI,EAAE,2BAA2B;QACjD,uEAAuE;QACvE,kDAAkD;QAClD,EAAE;QACF,wDAAwD;QACxD,wDAAwD;QACxD,EAAE;QACF,wEAAwE;QACxE,0EAA0E;QAC1E,2EAA2E;QAC3E,0EAA0E;QAC1E,sBAAsB;QACtB,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE;KAC3D;CACF,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAqC;IACpE,0EAA0E;IAC1E,0EAA0E;IAC1E,+BAA+B;IAC/B,0EAA0E;IAC1E,aAAa;IACb,iBAAiB,EAAE,gBAAgB;IACnC,0BAA0B,EAAE,yBAAyB;IACrD,mBAAmB,EAAE,gBAAgB;IACrC,4BAA4B,EAAE,yBAAyB;IACvD,wEAAwE;IACxE,uBAAuB;IACvB,eAAe,EAAE,gBAAgB;IACjC,mBAAmB,EAAE,gBAAgB;IACrC,8BAA8B,EAAE,gBAAgB;CACjD,CAAC;AAEF,yEAAyE;AACzE,MAAM,UAAU,iBAAiB,CAAC,EAAU;IAC1C,OAAO,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;AACxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/providers/kimi/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,WAAW,EAAE,eAAe,EA0DxC,CAAC"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/providers/kimi/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,WAAW,EAAE,eAAe,EA+FxC,CAAC"}
@@ -1,4 +1,38 @@
1
1
  export const KIMI_MODELS = [
2
+ {
3
+ // Kimi K3.1 Pro (2026-10-23) — a post-trained K3, and Moonshot's flagship
4
+ // since. Id and prices verified on platform.kimi.ai 2026-11-20: $2.00 in /
5
+ // $10.00 out ($0.20 cache) against K3's $3/$15, so better AND cheaper.
6
+ // 1M context, native vision; max_completion_tokens defaults to 131072.
7
+ // Independent rankings put it first among open-weight models (Arena,
8
+ // Agent Arena) and 55 on the Artificial Analysis index, 11 over K3.
9
+ id: 'kimi-k3.1-pro',
10
+ name: 'Kimi K3.1 Pro',
11
+ provider: 'kimi',
12
+ contextWindow: 1000000,
13
+ maxOutputTokens: 131072,
14
+ supportsToolCalls: true,
15
+ supportsStreaming: true,
16
+ supportsThinking: true,
17
+ supportsVision: true,
18
+ desktopCapable: true,
19
+ pricing: { inputPerMillion: 2.00, outputPerMillion: 10.00 },
20
+ },
21
+ {
22
+ // The same model served about 2-3x faster, at double the price ($4/$20,
23
+ // $0.20 cache) — verified on platform.kimi.ai 2026-11-20.
24
+ id: 'kimi-k3.1-pro-highspeed',
25
+ name: 'Kimi K3.1 Pro Highspeed',
26
+ provider: 'kimi',
27
+ contextWindow: 1000000,
28
+ maxOutputTokens: 131072,
29
+ supportsToolCalls: true,
30
+ supportsStreaming: true,
31
+ supportsThinking: true,
32
+ supportsVision: true,
33
+ desktopCapable: true,
34
+ pricing: { inputPerMillion: 4.00, outputPerMillion: 20.00 },
35
+ },
2
36
  {
3
37
  // Launched 2026-07-16 — Moonshot's frontier model. 2.8T Stable LatentMoE
4
38
  // (16 of 896 experts active), 1M context, native vision (text+image+video).
@@ -27,34 +61,37 @@ export const KIMI_MODELS = [
27
61
  pricing: { inputPerMillion: 3.00, outputPerMillion: 15.00 },
28
62
  },
29
63
  {
30
- // Launched 2026-06-12 — Moonshot's newest flagship, "Code"-branded for the
31
- // first time. 1T MoE / 32B active, 256K context. Pricing verified against
32
- // the Moonshot API ($0.95 in / $4.00 out, $0.19 cache).
64
+ // K2.7 Code and K2.6: closed to new Moonshot accounts since 2026-11-01 and
65
+ // retiring at the end of December 2026 (Moonshot's model list). Rolled
66
+ // forward to K3.1 Pro in model-ids.ts (his call, 20 Nov 2026), so a saved
67
+ // choice keeps working; the entries stay, hidden, so it still resolves,
68
+ // and carry K3.1 Pro's details because that is what they now run on.
33
69
  id: 'kimi-k2.7-code',
34
- name: 'Kimi K2.7 Code',
70
+ name: 'Kimi K2.7 Code (now Kimi K3.1 Pro)',
35
71
  provider: 'kimi',
36
- contextWindow: 256000,
37
- maxOutputTokens: 8192,
72
+ contextWindow: 1000000,
73
+ maxOutputTokens: 131072,
38
74
  supportsToolCalls: true,
39
75
  supportsStreaming: true,
40
76
  supportsThinking: true,
41
77
  supportsVision: true,
42
- desktopCapable: true, // newest flagship — agentic coding leader
43
- pricing: { inputPerMillion: 0.95, outputPerMillion: 4.00 },
78
+ desktopCapable: true,
79
+ hiddenFromPicker: true,
80
+ pricing: { inputPerMillion: 2.00, outputPerMillion: 10.00 },
44
81
  },
45
82
  {
46
83
  id: 'kimi-k2.6',
47
- name: 'Kimi K2.6',
84
+ name: 'Kimi K2.6 (now Kimi K3.1 Pro)',
48
85
  provider: 'kimi',
49
- contextWindow: 256000,
50
- maxOutputTokens: 8192,
86
+ contextWindow: 1000000,
87
+ maxOutputTokens: 131072,
51
88
  supportsToolCalls: true,
52
89
  supportsStreaming: true,
53
90
  supportsThinking: true,
54
91
  supportsVision: true,
55
- desktopCapable: true, // Top BYOK coordinator. SoTA agentic coding tool-calling.
56
- hiddenFromPicker: true, // superseded by Kimi K2.7 Code — kept for routing/fallback only
57
- pricing: { inputPerMillion: 0.95, outputPerMillion: 4.00 },
92
+ desktopCapable: true,
93
+ hiddenFromPicker: true,
94
+ pricing: { inputPerMillion: 2.00, outputPerMillion: 10.00 },
58
95
  },
59
96
  ];
60
97
  //# sourceMappingURL=models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/providers/kimi/models.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C;QACE,yEAAyE;QACzE,4EAA4E;QAC5E,wEAAwE;QACxE,uDAAuD;QACvD,EAAE;QACF,wEAAwE;QACxE,wEAAwE;QACxE,4CAA4C;QAC5C,EAAE;QACF,wEAAwE;QACxE,yEAAyE;QACzE,0EAA0E;QAC1E,0EAA0E;QAC1E,6CAA6C;QAC7C,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,IAAI;QACrB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI,EAAE,2DAA2D;QACjF,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE;KAC5D;IACD;QACE,2EAA2E;QAC3E,0EAA0E;QAC1E,wDAAwD;QACxD,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,iBAAiB,EAAE,IAAI;QACvB,iBAAiB,EAAE,IAAI;QACvB,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI,EAAE,0CAA0C;QAChE,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE;KAC3D;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE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tB,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE;KAC5D;CACF,CAAC"}
@@ -27,9 +27,8 @@ export declare const MODEL_API_NAMES: Record<string, string>;
27
27
  *
28
28
  * (qwen3.5-flash, text-only, used to be here; since 2026-11-19 it and the qwen-flash /
29
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
31
- * level (verified against api.deepseek.com 2026-04-25) so image requests reroute
32
- * to Qwen 3.7 Plus (native vision + video). Aurora coordinates on Medium 3.5,
30
+ * DeepSeek is absent: V4 Pro (text-only) is routed to V4.1 Flash before it
31
+ * gets here, and V4.1 Flash takes images itself. Aurora coordinates on Medium 3.5,
33
32
  * whose vision encoder was trained from scratch, so images stay in-fleet and
34
33
  * the EU-stack guarantee holds instead of falling to Qwen. (Large 3 — text-only
35
34
  * — was the coordinator before the fleet was re-tiered; it's the heavy reserve
@@ -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,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"}
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,CA0DlD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEjD,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"}
@@ -43,6 +43,16 @@ export const MODEL_API_NAMES = {
43
43
  // the same for own-key calls, so a saved choice survives the shutdown.
44
44
  'MiniMax-M2.7': 'MiniMax-M3.1-Flash',
45
45
  'MiniMax-M2.7-highspeed': 'MiniMax-M3.1-Flash',
46
+ // Kimi K2.7 Code and K2.6 close to new Moonshot accounts on 2026-11-01 and
47
+ // retire at the end of December 2026: rolled forward to K3.1 Pro (his
48
+ // call, 20 Nov 2026), so a saved choice survives the shutdown.
49
+ 'kimi-k2.7-code': 'kimi-k3.1-pro',
50
+ 'kimi-k2.6': 'kimi-k3.1-pro',
51
+ // Tencent Hy3 replaced by Hy4 (his call, 20 Nov 2026) — the like-for-like
52
+ // flagship step: 1M context against 256K, and it takes images. The April
53
+ // preview id goes the same way.
54
+ 'hy3': 'hy4',
55
+ 'hy3-preview': 'hy4',
46
56
  // Managed DeepSeek — strip the `-platform` disambiguator
47
57
  'deepseek-flash-platform': 'deepseek-flash',
48
58
  // Managed Kimi K3 (Longxiang's lead seat) — strip the disambiguator.
@@ -54,7 +64,7 @@ export const MODEL_API_NAMES = {
54
64
  // alongside it — so every surface reading that row (extension, IDE, hub)
55
65
  // would have sent the suffixed id to Moonshot and taken the same 404 the
56
66
  // line above exists to prevent.
57
- 'kimi-k2.7-code-platform': 'kimi-k2.7-code',
67
+ 'kimi-k2.7-code-platform': 'kimi-k3.1-pro', // K2.7 Code rolled forward (above)
58
68
  // Managed Mistral (Aurora's fleet) — friendly name -> the id Mistral accepts.
59
69
  // Large 3 and Small 4 use date-stamped snapshots. Medium 3.5 is pinned to the
60
70
  // SEMANTIC id `mistral-medium-3-5` (what Mistral's own rate-limit console
@@ -75,18 +85,14 @@ export const MODEL_API_NAMES = {
75
85
  *
76
86
  * (qwen3.5-flash, text-only, used to be here; since 2026-11-19 it and the qwen-flash /
77
87
  * qwen-turbo aliases roll forward to qwen3.8-flash, which takes images itself.)
78
- * DeepSeek V4 (Pro + Flash) is text-only at the API
79
- * level (verified against api.deepseek.com 2026-04-25) so image requests reroute
80
- * to Qwen 3.7 Plus (native vision + video). Aurora coordinates on Medium 3.5,
88
+ * DeepSeek is absent: V4 Pro (text-only) is routed to V4.1 Flash before it
89
+ * gets here, and V4.1 Flash takes images itself. Aurora coordinates on Medium 3.5,
81
90
  * whose vision encoder was trained from scratch, so images stay in-fleet and
82
91
  * the EU-stack guarantee holds instead of falling to Qwen. (Large 3 — text-only
83
92
  * — was the coordinator before the fleet was re-tiered; it's the heavy reserve
84
93
  * now.)
85
94
  */
86
95
  export const VISION_REROUTE = {
87
- // DeepSeek is deliberately absent: V4 Pro and V4 Flash were both text-only
88
- // at the API level and rerouted here. V4.1 Flash is multimodal, so it takes
89
- // the image itself — rerouting it would hand its own work to Qwen.
90
96
  'mistral-large-2512': 'mistral-medium-3-5',
91
97
  };
92
98
  /**
@@ -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,0EAA0E;IAC1E,4EAA4E;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,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"}
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,0EAA0E;IAC1E,4EAA4E;IAC5E,yDAAyD;IACzD,cAAc,EAAO,cAAc;IACnC,eAAe,EAAM,eAAe;IACpC,sEAAsE;IACtE,mEAAmE;IACnE,aAAa,EAAQ,WAAW;IAChC,4EAA4E;IAC5E,4EAA4E;IAC5E,6EAA6E;IAC7E,2EAA2E;IAC3E,yEAAyE;IACzE,aAAa,EAAQ,WAAW;IAChC,wEAAwE;IACxE,2EAA2E;IAC3E,uEAAuE;IACvE,cAAc,EAAY,oBAAoB;IAC9C,wBAAwB,EAAE,oBAAoB;IAC9C,2EAA2E;IAC3E,sEAAsE;IACtE,+DAA+D;IAC/D,gBAAgB,EAAS,eAAe;IACxC,WAAW,EAAc,eAAe;IACxC,0EAA0E;IAC1E,yEAAyE;IACzE,gCAAgC;IAChC,KAAK,EAAoB,KAAK;IAC9B,aAAa,EAAY,KAAK;IAC9B,yDAAyD;IACzD,yBAAyB,EAAI,gBAAgB;IAC7C,qEAAqE;IACrE,iEAAiE;IACjE,mEAAmE;IACnE,kBAAkB,EAAY,SAAS;IACvC,0EAA0E;IAC1E,uEAAuE;IACvE,yEAAyE;IACzE,yEAAyE;IACzE,gCAAgC;IAChC,yBAAyB,EAAK,eAAe,EAAE,mCAAmC;IAClF,8EAA8E;IAC9E,8EAA8E;IAC9E,0EAA0E;IAC1E,8EAA8E;IAC9E,qFAAqF;IACrF,6EAA6E;IAC7E,gFAAgF;IAChF,0BAA0B,EAAI,oBAAoB;IAClD,0BAA0B,EAAI,oBAAoB;IAClD,6BAA6B,EAAC,oBAAoB;IAClD,iBAAiB,EAAa,oBAAoB;IAClD,iBAAiB,EAAa,oBAAoB;IAClD,oBAAoB,EAAU,oBAAoB;CACnD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,cAAc,GAA2B;IACpD,oBAAoB,EAAG,oBAAoB;CAC5C,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,eAAe,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"}
@@ -3,8 +3,10 @@ import type { CompletionResponse, ModelDefinition, StreamChunk } from '../../cor
3
3
  /**
4
4
  * Tencent Hunyuan — BYOK provider (OpenAI-compatible).
5
5
  *
6
- * Talks to Tencent's TokenHub gateway (tokenhub-intl.tencentmaas.com — the
7
- * international endpoint, which is the one we use everywhere), mirroring
6
+ * Talks to Tencent's TokenHub gateway (tokenhub-intl.tencentcloudmaas.com —
7
+ * the international endpoint, as Tencent's own Hy API Guide gives it since
8
+ * the Hy4 launch; the older tokenhub-intl.tencentmaas.com still answers, but
9
+ * the guide is the one to follow), mirroring
8
10
  * the OpenAI chat-completions shape including tool calling + reasoning_effort.
9
11
  * Bring your own Tencent Hunyuan key.
10
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/tencent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAG5F;;;;;;;GAOG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,QAAQ,CAAC,IAAI,aAAa;IAC1B,QAAQ,CAAC,WAAW,qBAAqB;IAEzC,SAAS,CAAC,iBAAiB,IAAI,MAAM;IAIrC,UAAU,IAAI,eAAe,EAAE;IAO/B,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB;IAc7D,SAAS,CAAC,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW;CAa1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/tencent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAG5F;;;;;;;;;GASG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,QAAQ,CAAC,IAAI,aAAa;IAC1B,QAAQ,CAAC,WAAW,qBAAqB;IAEzC,SAAS,CAAC,iBAAiB,IAAI,MAAM;IAIrC,UAAU,IAAI,eAAe,EAAE;IAO/B,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB;IAc7D,SAAS,CAAC,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW;CAa1D"}