@project-ava-supernova/core 0.2.188 → 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 (250) 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 +54 -32
  4. package/dist/agent/agent.js.map +1 -1
  5. package/dist/agent/mode-tags.d.ts.map +1 -1
  6. package/dist/agent/mode-tags.js +3 -1
  7. package/dist/agent/mode-tags.js.map +1 -1
  8. package/dist/agent/social-craft.d.ts +1 -1
  9. package/dist/agent/social-craft.d.ts.map +1 -1
  10. package/dist/agent/social-craft.js +1 -1
  11. package/dist/agent/system-prompt.d.ts +13 -18
  12. package/dist/agent/system-prompt.d.ts.map +1 -1
  13. package/dist/agent/system-prompt.js +1247 -1197
  14. package/dist/agent/system-prompt.js.map +1 -1
  15. package/dist/audit/cost.d.ts.map +1 -1
  16. package/dist/audit/cost.js +10 -9
  17. package/dist/audit/cost.js.map +1 -1
  18. package/dist/auto/auto-coordinator.d.ts +1 -1
  19. package/dist/auto/auto-coordinator.js +2 -2
  20. package/dist/auto/coordinator-model.d.ts +6 -4
  21. package/dist/auto/coordinator-model.d.ts.map +1 -1
  22. package/dist/auto/coordinator-model.js +4 -3
  23. package/dist/auto/coordinator-model.js.map +1 -1
  24. package/dist/auto/intent-gate.d.ts +2 -2
  25. package/dist/auto/intent-gate.d.ts.map +1 -1
  26. package/dist/auto/intent-gate.js +4 -5
  27. package/dist/auto/intent-gate.js.map +1 -1
  28. package/dist/auto/longxiang-router.d.ts +5 -1
  29. package/dist/auto/longxiang-router.d.ts.map +1 -1
  30. package/dist/auto/longxiang-router.js +5 -1
  31. package/dist/auto/longxiang-router.js.map +1 -1
  32. package/dist/auto/model-router.d.ts.map +1 -1
  33. package/dist/auto/model-router.js +17 -14
  34. package/dist/auto/model-router.js.map +1 -1
  35. package/dist/auto/supernova-router.d.ts +2 -3
  36. package/dist/auto/supernova-router.d.ts.map +1 -1
  37. package/dist/auto/supernova-router.js +2 -3
  38. package/dist/auto/supernova-router.js.map +1 -1
  39. package/dist/auto/task-classifier.d.ts.map +1 -1
  40. package/dist/auto/task-classifier.js +3 -1
  41. package/dist/auto/task-classifier.js.map +1 -1
  42. package/dist/brainstorm/brainstorm-store.d.ts +47 -25
  43. package/dist/brainstorm/brainstorm-store.d.ts.map +1 -1
  44. package/dist/brainstorm/brainstorm-store.js +221 -104
  45. package/dist/brainstorm/brainstorm-store.js.map +1 -1
  46. package/dist/brainstorm/page.d.ts +41 -0
  47. package/dist/brainstorm/page.d.ts.map +1 -0
  48. package/dist/brainstorm/page.js +109 -0
  49. package/dist/brainstorm/page.js.map +1 -0
  50. package/dist/brainstorm/types.d.ts +75 -19
  51. package/dist/brainstorm/types.d.ts.map +1 -1
  52. package/dist/brainstorm/types.js +19 -14
  53. package/dist/brainstorm/types.js.map +1 -1
  54. package/dist/brainstorm/work-plans.d.ts +23 -0
  55. package/dist/brainstorm/work-plans.d.ts.map +1 -0
  56. package/dist/brainstorm/work-plans.js +56 -0
  57. package/dist/brainstorm/work-plans.js.map +1 -0
  58. package/dist/brand/brand-kits.d.ts +17 -0
  59. package/dist/brand/brand-kits.d.ts.map +1 -1
  60. package/dist/brand/brand-kits.js +10 -0
  61. package/dist/brand/brand-kits.js.map +1 -1
  62. package/dist/config/personality.js +1 -1
  63. package/dist/docs/content/concepts.js +8 -8
  64. package/dist/docs/content/concepts.js.map +1 -1
  65. package/dist/docs/content/reference.js +1 -1
  66. package/dist/docs/content/reference.js.map +1 -1
  67. package/dist/docs/content/start.js +2 -2
  68. package/dist/docs/content/start.js.map +1 -1
  69. package/dist/docs/data/modes.d.ts.map +1 -1
  70. package/dist/docs/data/modes.js +3 -9
  71. package/dist/docs/data/modes.js.map +1 -1
  72. package/dist/docs/data/personas.js +4 -4
  73. package/dist/docs/data/personas.js.map +1 -1
  74. package/dist/docs/data/providers.d.ts.map +1 -1
  75. package/dist/docs/data/providers.js +2 -4
  76. package/dist/docs/data/providers.js.map +1 -1
  77. package/dist/docs/data/shortcuts.d.ts.map +1 -1
  78. package/dist/docs/data/shortcuts.js +8 -7
  79. package/dist/docs/data/shortcuts.js.map +1 -1
  80. package/dist/docs/i18n/translations.d.ts.map +1 -1
  81. package/dist/docs/i18n/translations.js +1 -1
  82. package/dist/docs/i18n/translations.js.map +1 -1
  83. package/dist/history/conversation-title.d.ts +1 -1
  84. package/dist/history/conversation-title.d.ts.map +1 -1
  85. package/dist/history/conversation-title.js +1 -0
  86. package/dist/history/conversation-title.js.map +1 -1
  87. package/dist/i18n/keep-english.d.ts.map +1 -1
  88. package/dist/i18n/keep-english.js +3 -0
  89. package/dist/i18n/keep-english.js.map +1 -1
  90. package/dist/i18n/locales/ar.d.ts.map +1 -1
  91. package/dist/i18n/locales/ar.js +135 -3
  92. package/dist/i18n/locales/ar.js.map +1 -1
  93. package/dist/i18n/locales/de.d.ts.map +1 -1
  94. package/dist/i18n/locales/de.js +135 -3
  95. package/dist/i18n/locales/de.js.map +1 -1
  96. package/dist/i18n/locales/en.d.ts +131 -0
  97. package/dist/i18n/locales/en.d.ts.map +1 -1
  98. package/dist/i18n/locales/en.js +135 -3
  99. package/dist/i18n/locales/en.js.map +1 -1
  100. package/dist/i18n/locales/es.d.ts.map +1 -1
  101. package/dist/i18n/locales/es.js +135 -3
  102. package/dist/i18n/locales/es.js.map +1 -1
  103. package/dist/i18n/locales/fr.d.ts.map +1 -1
  104. package/dist/i18n/locales/fr.js +135 -3
  105. package/dist/i18n/locales/fr.js.map +1 -1
  106. package/dist/i18n/locales/hi.d.ts.map +1 -1
  107. package/dist/i18n/locales/hi.js +135 -3
  108. package/dist/i18n/locales/hi.js.map +1 -1
  109. package/dist/i18n/locales/id.d.ts.map +1 -1
  110. package/dist/i18n/locales/id.js +135 -3
  111. package/dist/i18n/locales/id.js.map +1 -1
  112. package/dist/i18n/locales/it.d.ts.map +1 -1
  113. package/dist/i18n/locales/it.js +135 -3
  114. package/dist/i18n/locales/it.js.map +1 -1
  115. package/dist/i18n/locales/ja.d.ts.map +1 -1
  116. package/dist/i18n/locales/ja.js +135 -3
  117. package/dist/i18n/locales/ja.js.map +1 -1
  118. package/dist/i18n/locales/ko.d.ts.map +1 -1
  119. package/dist/i18n/locales/ko.js +135 -3
  120. package/dist/i18n/locales/ko.js.map +1 -1
  121. package/dist/i18n/locales/nl.d.ts.map +1 -1
  122. package/dist/i18n/locales/nl.js +135 -3
  123. package/dist/i18n/locales/nl.js.map +1 -1
  124. package/dist/i18n/locales/pl.d.ts.map +1 -1
  125. package/dist/i18n/locales/pl.js +135 -3
  126. package/dist/i18n/locales/pl.js.map +1 -1
  127. package/dist/i18n/locales/pt.d.ts.map +1 -1
  128. package/dist/i18n/locales/pt.js +135 -3
  129. package/dist/i18n/locales/pt.js.map +1 -1
  130. package/dist/i18n/locales/ru.d.ts.map +1 -1
  131. package/dist/i18n/locales/ru.js +135 -3
  132. package/dist/i18n/locales/ru.js.map +1 -1
  133. package/dist/i18n/locales/th.d.ts.map +1 -1
  134. package/dist/i18n/locales/th.js +135 -3
  135. package/dist/i18n/locales/th.js.map +1 -1
  136. package/dist/i18n/locales/tr.d.ts.map +1 -1
  137. package/dist/i18n/locales/tr.js +135 -3
  138. package/dist/i18n/locales/tr.js.map +1 -1
  139. package/dist/i18n/locales/uk.d.ts.map +1 -1
  140. package/dist/i18n/locales/uk.js +135 -3
  141. package/dist/i18n/locales/uk.js.map +1 -1
  142. package/dist/i18n/locales/vi.d.ts.map +1 -1
  143. package/dist/i18n/locales/vi.js +135 -3
  144. package/dist/i18n/locales/vi.js.map +1 -1
  145. package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
  146. package/dist/i18n/locales/zh-CN.js +135 -3
  147. package/dist/i18n/locales/zh-CN.js.map +1 -1
  148. package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
  149. package/dist/i18n/locales/zh-TW.js +135 -3
  150. package/dist/i18n/locales/zh-TW.js.map +1 -1
  151. package/dist/index.d.ts +8 -4
  152. package/dist/index.d.ts.map +1 -1
  153. package/dist/index.js +5 -2
  154. package/dist/index.js.map +1 -1
  155. package/dist/mcp/connection.d.ts +37 -1
  156. package/dist/mcp/connection.d.ts.map +1 -1
  157. package/dist/mcp/connection.js +146 -3
  158. package/dist/mcp/connection.js.map +1 -1
  159. package/dist/mcp/index.d.ts +8 -1
  160. package/dist/mcp/index.d.ts.map +1 -1
  161. package/dist/mcp/index.js +4 -1
  162. package/dist/mcp/index.js.map +1 -1
  163. package/dist/mcp/manager.d.ts +61 -4
  164. package/dist/mcp/manager.d.ts.map +1 -1
  165. package/dist/mcp/manager.js +211 -15
  166. package/dist/mcp/manager.js.map +1 -1
  167. package/dist/mcp/page.d.ts +1 -1
  168. package/dist/mcp/page.d.ts.map +1 -1
  169. package/dist/mcp/page.js +15 -2
  170. package/dist/mcp/page.js.map +1 -1
  171. package/dist/mcp/permissions.d.ts +29 -9
  172. package/dist/mcp/permissions.d.ts.map +1 -1
  173. package/dist/mcp/permissions.js +26 -15
  174. package/dist/mcp/permissions.js.map +1 -1
  175. package/dist/mcp/servers-config.d.ts +7 -0
  176. package/dist/mcp/servers-config.d.ts.map +1 -1
  177. package/dist/mcp/servers-config.js +2 -0
  178. package/dist/mcp/servers-config.js.map +1 -1
  179. package/dist/mcp/suggested.d.ts +7 -4
  180. package/dist/mcp/suggested.d.ts.map +1 -1
  181. package/dist/mcp/suggested.js +14 -3
  182. package/dist/mcp/suggested.js.map +1 -1
  183. package/dist/mcp/tools.d.ts.map +1 -1
  184. package/dist/mcp/tools.js +7 -1
  185. package/dist/mcp/tools.js.map +1 -1
  186. package/dist/mcp/unreal-context.d.ts +36 -0
  187. package/dist/mcp/unreal-context.d.ts.map +1 -0
  188. package/dist/mcp/unreal-context.js +163 -0
  189. package/dist/mcp/unreal-context.js.map +1 -0
  190. package/dist/mcp/unreal-install.d.ts +67 -0
  191. package/dist/mcp/unreal-install.d.ts.map +1 -0
  192. package/dist/mcp/unreal-install.js +182 -0
  193. package/dist/mcp/unreal-install.js.map +1 -0
  194. package/dist/mcp/unreal-panel.d.ts +38 -0
  195. package/dist/mcp/unreal-panel.d.ts.map +1 -0
  196. package/dist/mcp/unreal-panel.js +59 -0
  197. package/dist/mcp/unreal-panel.js.map +1 -0
  198. package/dist/mcp/unreal.d.ts +94 -0
  199. package/dist/mcp/unreal.d.ts.map +1 -0
  200. package/dist/mcp/unreal.js +174 -0
  201. package/dist/mcp/unreal.js.map +1 -0
  202. package/dist/memory/ambient-capture.js +1 -1
  203. package/dist/memory/ambient-capture.js.map +1 -1
  204. package/dist/memory-v4/model.js +1 -1
  205. package/dist/memory-v4/model.js.map +1 -1
  206. package/dist/personas/conductor.d.ts +1 -1
  207. package/dist/personas/definitions.d.ts.map +1 -1
  208. package/dist/personas/definitions.js +55 -42
  209. package/dist/personas/definitions.js.map +1 -1
  210. package/dist/personas/types.d.ts +1 -1
  211. package/dist/providers/qwen/models.d.ts.map +1 -1
  212. package/dist/providers/qwen/models.js +52 -35
  213. package/dist/providers/qwen/models.js.map +1 -1
  214. package/dist/providers/request-shaping/model-ids.d.ts +3 -1
  215. package/dist/providers/request-shaping/model-ids.d.ts.map +1 -1
  216. package/dist/providers/request-shaping/model-ids.js +14 -7
  217. package/dist/providers/request-shaping/model-ids.js.map +1 -1
  218. package/dist/tools/blender/build-model.js +1 -1
  219. package/dist/tools/blender/build-model.js.map +1 -1
  220. package/dist/tools/blender/live-tools.js +2 -2
  221. package/dist/tools/blender/live-tools.js.map +1 -1
  222. package/dist/tools/blender/runner-py.d.ts.map +1 -1
  223. package/dist/tools/blender/runner-py.js +3 -1
  224. package/dist/tools/blender/runner-py.js.map +1 -1
  225. package/dist/tools/brainstorm-plan.d.ts +25 -0
  226. package/dist/tools/brainstorm-plan.d.ts.map +1 -0
  227. package/dist/tools/brainstorm-plan.js +179 -0
  228. package/dist/tools/brainstorm-plan.js.map +1 -0
  229. package/dist/tools/brainstorm-session.d.ts +14 -12
  230. package/dist/tools/brainstorm-session.d.ts.map +1 -1
  231. package/dist/tools/brainstorm-session.js +220 -113
  232. package/dist/tools/brainstorm-session.js.map +1 -1
  233. package/dist/tools/connection-tools.js +1 -1
  234. package/dist/tools/connection-tools.js.map +1 -1
  235. package/dist/tools/create-project.js +1 -1
  236. package/dist/tools/create-project.js.map +1 -1
  237. package/dist/tools/open-brainstorm-room.d.ts +22 -0
  238. package/dist/tools/open-brainstorm-room.d.ts.map +1 -0
  239. package/dist/tools/open-brainstorm-room.js +40 -0
  240. package/dist/tools/open-brainstorm-room.js.map +1 -0
  241. package/dist/tools/switch-mode.d.ts.map +1 -1
  242. package/dist/tools/switch-mode.js +4 -3
  243. package/dist/tools/switch-mode.js.map +1 -1
  244. package/dist/tools/tool-registry.d.ts.map +1 -1
  245. package/dist/tools/tool-registry.js +13 -4
  246. package/dist/tools/tool-registry.js.map +1 -1
  247. package/dist/tools/tool-request-words.d.ts.map +1 -1
  248. package/dist/tools/tool-request-words.js +24 -2
  249. package/dist/tools/tool-request-words.js.map +1 -1
  250. 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,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a;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,CAAC;AAE5C,0GAA0G;AAC1G,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,gBAAgB,IAAI,KAAK,EAAE,CAAC;AAEhF,iGAAiG;AACjG,MAAM,aAAa,GAAG,CAAC,4BAA4B,EAAE,4BAA4B,EAAE,4BAA4B,CAAC,CAAC;AAEjH,MAAM,UAAU,cAAc,CAAC,IAA0C;IACvE,OAAO,IAAI,EAAE,IAAI,KAAK,kBAAkB,CAAC;AAC3C,CAAC;AAeD,MAAM,UAAU,gB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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC5C,CAAC;IAED,wFAAwF;IACxF,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC3F,CAAC;CACF;AAED,sEAAsE;AACtE,MAAM,UAAU,kBAAkB,CAAC,QAAgB,EAAE,OAAsB;IACzE,MAAM,GAAG,GAAG,OAAO,CAAC,WAAW;QAC7B,CAAC,CAAC,sNAAsN;QACxN,CAAC,CAAC,EAAE,CAAC;IACP,IAAI,QAAQ,KAAK,eAAe;QAAE,OAAO,4HAA4H,GAAG,EAAE,CAAC;IAC3K,IAAI,QAAQ,KAAK,gBAAgB,EAAE,CAAC;QAClC,OAAO,0MAA0M,GAAG,GAAG,CAAC;IAC1N,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -164,7 +164,7 @@ export function parseScoringResponse(response) {
164
164
  */
165
165
  export const CONTEXT_TAGS = [
166
166
  '[Work Mode]', '[Plan Mode]', '[Chat Mode]', '[Teach Mode]', '[Write Mode]',
167
- '[Brainstorm Mode]', '[Security Audit Mode]', '[Desktop Automation Mode]',
167
+ '[Brainstorm Mode]', '[Brainstorm Room]', '[Security Audit Mode]', '[Desktop Automation Mode]',
168
168
  '[Newsroom]', '[Social Studio]', '[Pantry]', '[Gym]', '[Classroom]', '[Health Room]',
169
169
  '[Design Studio]', '[Memory Brief]', '[Project Brain]',
170
170
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"ambient-capture.js","sourceRoot":"","sources":["../../src/memory/ambient-capture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CA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AAM;QAAE,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAC/E,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAChC,CAAC"}
@@ -25,7 +25,7 @@ const FLEET_LADDER = {
25
25
  supernova: ['deepseek-flash', 'qwen3.7-plus', 'qwen3.8-flash'],
26
26
  aurora: ['mistral-small-4'],
27
27
  };
28
- const OWN_KEYS_LADDER = ['qwen3.7-plus', 'deepseek-flash', 'mistral-small-4', 'qwen3.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,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K,CAAC;IACf,CAAC;IACD,MAAM,SAAS,GAAG,CAAC,GAAG,kBAAkB,CAAC,CAAC;IAC1C,KAAK,MAAM,EAAE,IAAI,eAAe,EAAE,CAAC;QACjC,KAAK,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC;YAC1B,MAAM,CAAC,GAAG,gBAAgB,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACtD,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC;gBAAE,OAAO,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
  */
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/personas/definitions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA6BpD,eAAO,MAAM,KAAK,EAAE,iBAkBnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,iBAiBvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,iBAmBtB,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iB,EAE5C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,iBAAiB,EAE7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,iBAAiB,EAEhD,CAAC;AAIF,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,EAElD,CAAC;AAMF,eAAO,MAAM,cAAc,EAAE,iBAAiB,EAE7C,CAAC;AAqCF,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,EAElD,CAAC;AAOF,eAAO,MAAM,uBAAuB,EAAE,iBAAiB,EAEtD,CAAC;AAUF,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAEnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,EAExD,CAAC;AAaF,eAAO,MAAM,mBAAmB,EAAE,iBAAiB,EAElD,CAAC;AAMF,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAEnD,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAQ7D,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAOnE,CAAC"}
@@ -650,10 +650,13 @@ Your focus:
650
650
  - Build a profile that makes idea generation personal, not generic
651
651
  - List 2-3 clarifying questions in your output that the main agent should ask the user
652
652
 
653
- There are two kinds of session and you must work out which one this is:
653
+ People bring part of an idea. Say which KIND it is, in one line, for the Ideator:
654
654
 
655
- - **Blank page** — no project, or an empty folder. The person IS the context. Everything useful comes from memory and from the questions you write. This is the richest chance you will ever get to learn who they are, because there is no code in the way yet.
656
- - **Evolve** — a real project. Read \`Decisions/overview.md\` and \`progress.md\` to learn what it is MEANT to be, and enough of the code to see what it actually IS. The distance between those two is where the next idea lives, and you are the one who can see both sides of it. Check \`Decisions/records/\` so nobody proposes something already decided against.
655
+ - **Project** — something new; no project, or an empty folder. The person IS the context. Everything useful comes from memory and from the questions you write. This is the richest chance you will ever get to learn who they are, because there is no code in the way yet.
656
+ - **Feature** — an addition to a project they have. Read \`Decisions/overview.md\` for what the project is FOR, and the code the feature would touch.
657
+ - **Experience** — what the people using their thing should feel. Gather their words for it, what it must never feel like, and what would break it.
658
+ - **Direction** — where a real project goes next. Read \`Decisions/overview.md\` and \`progress.md\` to learn what it is MEANT to be, and enough of the code to see what it actually IS. The distance between those two is where the next idea lives. Check \`Decisions/records/\` so nobody proposes something already decided against.
659
+ - **Unsure** — say so, and write the questions that would place it.
657
660
 
658
661
  Do not read an entire project before speaking. Read what the conversation needs.
659
662
 
@@ -671,47 +674,51 @@ You do NOT generate ideas. You gather context. The better you understand the per
671
674
  // Instead, Explorer writes questions into context pool output, and the main agent presents them.
672
675
  // Brainstorm-specific Researcher. Forked from the Plan-mode RESEARCHER
673
676
  // because that persona is tuned for codebase / commit / strategic-decision
674
- // evidence — wrong shape for ideation. Brainstorm needs market signals,
675
- // demand evidence, competitive landscape, and timing — not "read the
676
- // codebase to understand current state."
677
+ // evidence — wrong shape for ideation.
678
+ //
679
+ // 17 Nov 2026: it runs AFTER the Ideator now, sharpening ideas that already
680
+ // exist. It used to run first and hunt market gaps, competitors and timing
681
+ // windows for the Ideator to build on — the opposite of the mode's own rule
682
+ // ("research after, never before; never open with market gaps"), and the
683
+ // thing most likely to make a stuck new developer more stuck.
677
684
  export const BRAINSTORM_RESEARCHER = {
678
685
  id: 'brainstorm_researcher',
679
686
  modelTier: 'light',
680
687
  name: 'Researcher',
681
- description: 'Gathers market, demand, and timing evidence for ideation.',
682
- prompt: `You are Ava's Brainstorm Researcher — you find the real-world signal that grounds ideation in demand, not vibes.
688
+ description: 'Sharpens the ideas on the table: what already exists, what building each one takes.',
689
+ prompt: `You are Ava's Brainstorm Researcher. The Ideator has put a few ideas on the table; you make each one sharper and more real. You do not go looking for new ones, and you never open with markets.
683
690
 
684
- Your focus:
685
- - **Demand signals.** What are people actively complaining about, asking for, paying for right now? Use news, web_search, http_request to surface concrete examples — Reddit threads, HN comments, Stack Overflow questions, Twitter/X posts, GitHub issues, product reviews. Quotes beat summaries.
686
- - **Competitive landscape.** Who is already serving this need? What are their gaps, their pricing, their UX failures, their churn complaints? Don't list competitors as logos — list what they're doing badly.
687
- - **Timing windows.** What changed in the last 6-12 months that makes this possible NOW? (New API, new regulation, new model capability, new platform, demographic shift, behavioural change.) What window closes in the next 12 months that means doing this in 2 years is too late?
688
- - **Adjacent angles.** Where are people *almost* solving this problem from a different category? Cross-sector evidence — adjacent industries that hint at where this market is going.
689
- - **The user's unique advantage.** From the Explorer's profile, what's the angle THIS person can take that nobody else can — domain knowledge, distribution, relationships, taste, lived experience? Surface it explicitly so the Ideator can lean on it.
691
+ For each idea:
692
+ - **Has someone made this already?** Find the closest existing things — apps, open-source projects, tutorials. Not to kill the idea: something similar is a head start (code to learn from, a design to borrow, proof it can be done) and a clue to what would make theirs different.
693
+ - **What would building it take?** The libraries, free APIs, datasets or tools it needs, and anything that would quietly block a beginner: a paid API, an account that needs approval, special hardware, a store fee.
694
+ - **Is there a smaller version?** Real examples of the tiny first version someone actually shipped.
695
+ - **Inspiration.** One or two things worth looking at for the experience they're after (how a calm app talks, how a cosy game feels).
696
+ - **Only if they are launching a business** (the Explorer will say): who else serves this, what they do badly, what people pay. Otherwise leave it out completely.
690
697
 
691
- You do NOT generate ideas. You do NOT recommend. You gather grounded evidence the Ideator can build on. Quotes, dates, links. Less polish, more signal.`,
698
+ Use web_search and http_request; quotes and links beat summaries. You do NOT generate ideas and you do NOT judge them — the Challenger does that with what you find.`,
692
699
  allowedTools: [...READ_TOOLS, ...MEMORY_TOOLS, ...SEARCH_TOOLS, 'news'],
693
- priority: 2,
694
- dependsOn: ['explorer'],
700
+ priority: 3,
701
+ dependsOn: ['ideator'],
695
702
  };
696
703
  export const IDEATOR = {
697
704
  id: 'ideator',
698
705
  name: 'Ideator',
699
- description: 'Generates ideas grounded in user context and market research.',
706
+ description: 'Generates ideas from who this person is and what they brought.',
700
707
  prompt: `You are Ava's Ideator — you generate ideas that are specific to THIS person, not generic suggestions.
701
708
 
702
709
  Your focus:
703
- - Use the Explorer's context profile to generate ideas tailored to their skills, interests, and constraints
704
- - Use the Researcher's market findings to ground ideas in real demand
705
- - Each idea must answer: What is it? Who is it for? Why would THIS person be the one to build it? What's the first step?
706
- - "Who pays" and "what's the moat" belong to someone launching a business. Ask them only when that is what this is. To a new dev who wants to build something and learn, they are discouraging and beside the point.
707
- - Generate 3-5 quality ideas, not 20 generic ones
708
- - Think about timing — what's possible NOW with current AI/tech/market conditions
709
- - Consider their unique advantages: what do they know that others don't?
710
-
711
- You are creative but grounded. Every idea must be actionable by THIS person, not a hypothetical founder.`,
710
+ - Start from what they brought, however small: half an idea, a feature, the experience they want their users to have, a project that needs a direction. Grow THAT; don't swap it for something you like better.
711
+ - Use the Explorer's profile: their skills, what they use, what annoys them, what they want to learn, how much time they have. If an idea could be for anyone, it isn't good enough.
712
+ - For an existing project, work from the gap the Explorer found between what it wants to be and what it is.
713
+ - Each idea answers: What is it? Who is it for? Why THIS person? What's the very first step?
714
+ - "Who pays" and "what's the moat" belong to someone launching a business. Ask them only when that is what this is. To someone who wants to build something and learn, they are discouraging and beside the point.
715
+ - 3-5 ideas, not 20. Include a small, finishable one, and say which is which — they choose the ambition, not you.
716
+ - Consider their unique advantages: what do they know or care about that others don't?
717
+
718
+ You are creative but grounded. Every idea must be something THIS person could start, not a hypothetical founder. The Researcher sharpens your ideas after you — don't wait for evidence before you think.`,
712
719
  allowedTools: IDEATION_TOOLS,
713
- priority: 3,
714
- dependsOn: ['explorer', 'brainstorm_researcher'],
720
+ priority: 2,
721
+ dependsOn: ['explorer'],
715
722
  };
716
723
  // Brainstorm-specific Challenger. Forked from the Work-mode CHALLENGER because:
717
724
  // 1) The Work CHALLENGER prompt asks "are we over-engineering?" — wrong question
@@ -724,16 +731,16 @@ export const BRAINSTORM_CHALLENGER = {
724
731
  id: 'brainstorm_challenger',
725
732
  modelTier: 'light',
726
733
  name: 'Challenger',
727
- description: 'Stress-tests each idea on viability, originality, and timing.',
728
- prompt: `You are Ava's Brainstorm Challenger — you stress-test the Ideator's ideas before the Refiner sharpens the survivors.
734
+ description: 'Tests each idea on the questions that decide whether it gets built.',
735
+ prompt: `You are Ava's Brainstorm Challenger — you test the Ideator's ideas, using what the Researcher found, before the Refiner sharpens the survivors.
729
736
 
730
- For each idea, ask:
731
- - "Who else is already doing this — and why hasn't it killed the opportunity?"
732
- - "What does this person have that others don't? (Skills, network, taste, distribution.)"
733
- - "What's the hidden cost no one talks about?" (Compliance, ops, content moderation, support load.)
734
- - "What kills this in 6 months?" (Platform risk, regulation shift, model commoditisation, attention drift.)
735
- - "Is the timing right NOW, or is the window 2 years away / 2 years gone?"
736
- - "Is this *interesting* or is it *fundable / shippable / ownable*?"
737
+ For each idea, ask the questions that decide whether THIS person will actually build it:
738
+ - "Can they start this today?" With what they know and have — or what's the one thing in the way?
739
+ - "Will they still care about it on Thursday?" Does it come from something they told us they care about?
740
+ - "Is it the right size?" Too big to finish is the most common way an idea dies. What's the version they'd finish?
741
+ - "What's the hidden trap?" From the Researcher: a paid API, an approval process, special hardware, a part much harder than it looks.
742
+ - "Does it fit what they brought?" A feature should fit what the project is FOR; an experience idea should actually create the experience they described.
743
+ - Only if they are launching a business: "who else does this, and who would pay?" Otherwise don't ask it — it discourages and it's beside the point.
737
744
 
738
745
  Cut weak ideas with a one-line reason — don't write essays. Mark each idea: KEEP, KILL, or RESHAPE-AS (with the reshape).
739
746
 
@@ -741,7 +748,9 @@ You are NOT a blocker. You are a filter. The Refiner needs survivors to sharpen.
741
748
  At least one idea should always survive — if every idea fails, suggest the angle the Ideator missed.`,
742
749
  allowedTools: [...READ_TOOLS, ...MEMORY_TOOLS, ...SEARCH_TOOLS, 'news'],
743
750
  priority: 4,
744
- dependsOn: ['ideator'],
751
+ // After the Researcher when the full team runs (the light team has none, and a
752
+ // dependency outside the team is ignored).
753
+ dependsOn: ['ideator', 'brainstorm_researcher'],
745
754
  // Intentionally NO canVeto — see comment above.
746
755
  };
747
756
  export const REFINER = {
@@ -758,11 +767,13 @@ Your focus:
758
767
  - Identify the single biggest risk and how to mitigate it
759
768
  - Suggest something small they could do THIS WEEKEND that proves the idea to them — running code beats a survey
760
769
  - Sanity-check the two that matter for anyone who is stuck: can they START it today, and will they still care on Thursday? Someone who finishes something small comes back; someone who abandons something big usually does not.
761
- - Save the best ideas to memory so they build up over time
770
+ - Save the ideas to the brainstorm session (brainstorm_session action="save"): every idea, including the killed and parked ones WITH the reason — the reason is what stops the same idea being proposed again next time. Memory is NOT for ideas; memory_save only durable facts about the person ("prefers small projects", "learning Rust").
762
771
  - Write a journal entry summarising the brainstorm session
763
772
 
764
773
  Turn "interesting idea" into "here's what you do Monday morning."`,
765
- allowedTools: IDEATION_TOOLS,
774
+ // brainstorm_session: the session holds the ideas (and the rejected ones with
775
+ // their reasons). It writes only under ~/.ava, never into a project.
776
+ allowedTools: [...IDEATION_TOOLS, 'brainstorm_session'],
766
777
  priority: 5,
767
778
  dependsOn: ['brainstorm_challenger'],
768
779
  };
@@ -870,8 +881,10 @@ export const TEACH_PERSONAS = [
870
881
  export const SECURITY_PERSONAS = [
871
882
  RECON, SCANNER, CVE_RESEARCHER, SECURITY_VERIFIER, SECURITY_REPORTER,
872
883
  ];
884
+ // Ideas first, research after (17 Nov 2026): the Researcher sharpens what the
885
+ // Ideator proposed rather than handing it market gaps to build on.
873
886
  export const BRAINSTORM_PERSONAS = [
874
- EXPLORER, BRAINSTORM_RESEARCHER, IDEATOR, BRAINSTORM_CHALLENGER, REFINER,
887
+ EXPLORER, IDEATOR, BRAINSTORM_RESEARCHER, BRAINSTORM_CHALLENGER, REFINER,
875
888
  ];
876
889
  // Write mode had NO team at all — a first-class mode with 29 tools and an
877
890
  // Author role, running with no specialists while every other working mode had