@project-ava-supernova/core 0.2.192 → 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 (87) hide show
  1. package/dist/i18n/locales/ar.d.ts.map +1 -1
  2. package/dist/i18n/locales/ar.js +14 -3
  3. package/dist/i18n/locales/ar.js.map +1 -1
  4. package/dist/i18n/locales/de.d.ts.map +1 -1
  5. package/dist/i18n/locales/de.js +14 -3
  6. package/dist/i18n/locales/de.js.map +1 -1
  7. package/dist/i18n/locales/en.d.ts +11 -0
  8. package/dist/i18n/locales/en.d.ts.map +1 -1
  9. package/dist/i18n/locales/en.js +14 -3
  10. package/dist/i18n/locales/en.js.map +1 -1
  11. package/dist/i18n/locales/es.d.ts.map +1 -1
  12. package/dist/i18n/locales/es.js +14 -3
  13. package/dist/i18n/locales/es.js.map +1 -1
  14. package/dist/i18n/locales/fr.d.ts.map +1 -1
  15. package/dist/i18n/locales/fr.js +14 -3
  16. package/dist/i18n/locales/fr.js.map +1 -1
  17. package/dist/i18n/locales/hi.d.ts.map +1 -1
  18. package/dist/i18n/locales/hi.js +14 -3
  19. package/dist/i18n/locales/hi.js.map +1 -1
  20. package/dist/i18n/locales/id.d.ts.map +1 -1
  21. package/dist/i18n/locales/id.js +14 -3
  22. package/dist/i18n/locales/id.js.map +1 -1
  23. package/dist/i18n/locales/it.d.ts.map +1 -1
  24. package/dist/i18n/locales/it.js +14 -3
  25. package/dist/i18n/locales/it.js.map +1 -1
  26. package/dist/i18n/locales/ja.d.ts.map +1 -1
  27. package/dist/i18n/locales/ja.js +14 -3
  28. package/dist/i18n/locales/ja.js.map +1 -1
  29. package/dist/i18n/locales/ko.d.ts.map +1 -1
  30. package/dist/i18n/locales/ko.js +14 -3
  31. package/dist/i18n/locales/ko.js.map +1 -1
  32. package/dist/i18n/locales/nl.d.ts.map +1 -1
  33. package/dist/i18n/locales/nl.js +14 -3
  34. package/dist/i18n/locales/nl.js.map +1 -1
  35. package/dist/i18n/locales/pl.d.ts.map +1 -1
  36. package/dist/i18n/locales/pl.js +14 -3
  37. package/dist/i18n/locales/pl.js.map +1 -1
  38. package/dist/i18n/locales/pt.d.ts.map +1 -1
  39. package/dist/i18n/locales/pt.js +14 -3
  40. package/dist/i18n/locales/pt.js.map +1 -1
  41. package/dist/i18n/locales/ru.d.ts.map +1 -1
  42. package/dist/i18n/locales/ru.js +14 -3
  43. package/dist/i18n/locales/ru.js.map +1 -1
  44. package/dist/i18n/locales/th.d.ts.map +1 -1
  45. package/dist/i18n/locales/th.js +14 -3
  46. package/dist/i18n/locales/th.js.map +1 -1
  47. package/dist/i18n/locales/tr.d.ts.map +1 -1
  48. package/dist/i18n/locales/tr.js +14 -3
  49. package/dist/i18n/locales/tr.js.map +1 -1
  50. package/dist/i18n/locales/uk.d.ts.map +1 -1
  51. package/dist/i18n/locales/uk.js +14 -3
  52. package/dist/i18n/locales/uk.js.map +1 -1
  53. package/dist/i18n/locales/vi.d.ts.map +1 -1
  54. package/dist/i18n/locales/vi.js +14 -3
  55. package/dist/i18n/locales/vi.js.map +1 -1
  56. package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
  57. package/dist/i18n/locales/zh-CN.js +14 -3
  58. package/dist/i18n/locales/zh-CN.js.map +1 -1
  59. package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
  60. package/dist/i18n/locales/zh-TW.js +14 -3
  61. package/dist/i18n/locales/zh-TW.js.map +1 -1
  62. package/dist/mcp/connection.d.ts.map +1 -1
  63. package/dist/mcp/connection.js +19 -11
  64. package/dist/mcp/connection.js.map +1 -1
  65. package/dist/mcp/manager.d.ts +41 -0
  66. package/dist/mcp/manager.d.ts.map +1 -1
  67. package/dist/mcp/manager.js +93 -13
  68. package/dist/mcp/manager.js.map +1 -1
  69. package/dist/mcp/page.d.ts.map +1 -1
  70. package/dist/mcp/page.js +5 -0
  71. package/dist/mcp/page.js.map +1 -1
  72. package/dist/mcp/suggested.d.ts +7 -7
  73. package/dist/mcp/suggested.d.ts.map +1 -1
  74. package/dist/mcp/suggested.js +10 -10
  75. package/dist/mcp/suggested.js.map +1 -1
  76. package/dist/mcp/unreal-context.d.ts.map +1 -1
  77. package/dist/mcp/unreal-context.js +65 -10
  78. package/dist/mcp/unreal-context.js.map +1 -1
  79. package/dist/mcp/unreal-local.d.ts +46 -0
  80. package/dist/mcp/unreal-local.d.ts.map +1 -0
  81. package/dist/mcp/unreal-local.js +163 -0
  82. package/dist/mcp/unreal-local.js.map +1 -0
  83. package/dist/mcp/unreal.d.ts +44 -12
  84. package/dist/mcp/unreal.d.ts.map +1 -1
  85. package/dist/mcp/unreal.js +99 -21
  86. package/dist/mcp/unreal.js.map +1 -1
  87. package/package.json +1 -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,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AAE,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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I,QAAQ,KAAK,gBAAgB,EAAE,CAAC;QAClC,OAAO,0MAA0M,GAAG,GAAG,CAAC;IAC1N,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@project-ava-supernova/core",
3
- "version": "0.2.192",
3
+ "version": "0.2.193",
4
4
  "description": "Core engine for Ava Supernova — agent, providers, tools, config",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",