@threenative/core 0.3.3 → 0.3.5

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 (182) hide show
  1. package/capabilities.json +2019 -59
  2. package/dist/{assets-CYKk2WTu.d.ts → assets-CqvE429w.d.ts} +45 -3
  3. package/dist/{audio-7i3Xl0l3.d.ts → audio-DIJE5HTr.d.ts} +43 -3
  4. package/dist/{canvas-layer-C1SnMoJ-.d.ts → canvas-layer-C1-5CviZ.d.ts} +5 -1
  5. package/dist/{game-D_6r-k4Y.d.ts → game-Bj8G1wmD.d.ts} +242 -17
  6. package/dist/hot.d.ts +5 -5
  7. package/dist/index.d.ts +1131 -105
  8. package/dist/index.js +15201 -4782
  9. package/dist/model-lod-BDAUYgsS.d.ts +197 -0
  10. package/dist/playtest.d.ts +6 -4
  11. package/dist/playtest.js +84 -11
  12. package/dist/react-css.d.ts +62 -0
  13. package/dist/react-css.js +591 -0
  14. package/dist/react.d.ts +2 -2
  15. package/dist/{renderer-Cy4qeBOA.d.ts → renderer-9yEo9hPa.d.ts} +676 -21
  16. package/dist/terrain-jobs-worker.d.ts +2 -0
  17. package/dist/terrain-jobs-worker.js +130 -0
  18. package/dist/ui-layer.d.ts +5 -3
  19. package/dist/ui-layer.js +59 -8
  20. package/dist/world.d.ts +1596 -17
  21. package/dist/world.js +17035 -521
  22. package/gpl/fixtures/make_world_fixture.py +184 -0
  23. package/gpl/recipes/_common.py +11 -0
  24. package/gpl/recipes/decimate.py +11 -5
  25. package/gpl/recipes/export_world.py +699 -0
  26. package/mcp/blender-server.mjs +61 -4
  27. package/mcp/blender.mjs +3 -4
  28. package/mcp/engine-server.mjs +55 -21
  29. package/mcp/servers.mjs +4 -4
  30. package/package.json +15 -9
  31. package/patches/three@0.185.1-prd269-upgrade.patch +22418 -0
  32. package/patches/three@0.185.1.patch +8246 -389
  33. package/scripts/apply-three-patch.mjs +123 -41
  34. package/src/animation-blend.ts +264 -0
  35. package/src/animation-composition.ts +362 -0
  36. package/src/animation-layers.ts +260 -0
  37. package/src/animation-root-motion.ts +283 -0
  38. package/src/animation.ts +896 -0
  39. package/src/assets.ts +1303 -0
  40. package/src/atmosphere/index.ts +335 -0
  41. package/src/atmosphere/luts.ts +298 -0
  42. package/src/atmosphere/params.ts +323 -0
  43. package/src/audio.ts +912 -0
  44. package/src/billboard.ts +124 -0
  45. package/src/bone-lengths.ts +157 -0
  46. package/src/camera-shake.ts +116 -0
  47. package/src/canvas-layer.ts +47 -0
  48. package/src/clip-audit.ts +401 -0
  49. package/src/clustered-batch.ts +492 -0
  50. package/src/clustered-mesh.ts +638 -0
  51. package/src/compute-driven.ts +176 -0
  52. package/src/compute-timing.ts +318 -0
  53. package/src/config.ts +593 -0
  54. package/src/debug.ts +82 -0
  55. package/src/engine-render-hook.ts +25 -0
  56. package/src/entities.ts +79 -0
  57. package/src/entity-snapshot.ts +53 -0
  58. package/src/flight.ts +683 -0
  59. package/src/fluid-field.ts +748 -0
  60. package/src/fluid-particles.ts +1253 -0
  61. package/src/frame-budget.ts +1368 -0
  62. package/src/game.ts +2390 -0
  63. package/src/geometry-capture.ts +1098 -0
  64. package/src/gpu-class.ts +160 -0
  65. package/src/gpu-frame-observation.ts +424 -0
  66. package/src/gpu-readback.ts +143 -0
  67. package/src/gpu-scene-bvh.ts +464 -0
  68. package/src/grounding.ts +100 -0
  69. package/src/hot.ts +161 -0
  70. package/src/import-meta.d.ts +13 -0
  71. package/src/index.ts +1536 -0
  72. package/src/input.ts +690 -0
  73. package/src/instanced-batch-lod.ts +283 -0
  74. package/src/instanced-batch.ts +274 -0
  75. package/src/interpolation.ts +129 -0
  76. package/src/launch-diagnostics.ts +161 -0
  77. package/src/loop.ts +564 -0
  78. package/src/matrix-world.ts +245 -0
  79. package/src/merge-parts.ts +812 -0
  80. package/src/model-lod.ts +1315 -0
  81. package/src/net-protocol.ts +333 -0
  82. package/src/net-session.ts +477 -0
  83. package/src/net.ts +80 -0
  84. package/src/ocean/fft.ts +72 -0
  85. package/src/ocean/spectral.ts +728 -0
  86. package/src/particle-significance.ts +102 -0
  87. package/src/particles.ts +648 -0
  88. package/src/path-follow.ts +175 -0
  89. package/src/picking.ts +250 -0
  90. package/src/pipeline-census.ts +1566 -0
  91. package/src/platform.ts +210 -0
  92. package/src/playtest.ts +839 -0
  93. package/src/pointer-events.ts +411 -0
  94. package/src/pose-measure.ts +435 -0
  95. package/src/profiling/FrameCounters.ts +231 -0
  96. package/src/profiling/Spans.ts +548 -0
  97. package/src/profiling/opacity-convention.ts +21 -0
  98. package/src/profiling/render-list-validate.ts +175 -0
  99. package/src/profiling/render-trap-audit.ts +84 -0
  100. package/src/profiling/scene-warning.ts +190 -0
  101. package/src/profiling/span-probes.ts +191 -0
  102. package/src/profiling/unlit-foliage-warning.ts +149 -0
  103. package/src/projection-apply.ts +1529 -0
  104. package/src/projection-marker.ts +142 -0
  105. package/src/projection-plan.ts +1258 -0
  106. package/src/projection-skinned.ts +419 -0
  107. package/src/projection-stability.ts +409 -0
  108. package/src/projection-uniform.ts +328 -0
  109. package/src/random.ts +41 -0
  110. package/src/react-css.ts +604 -0
  111. package/src/react-glyphs.ts +114 -0
  112. package/src/react-host.ts +576 -0
  113. package/src/react-layout.ts +265 -0
  114. package/src/react.ts +60 -0
  115. package/src/render/alpha-antialiasing.ts +159 -0
  116. package/src/render/batched-velocity.ts +126 -0
  117. package/src/render/chain.ts +1021 -0
  118. package/src/render/daylight.ts +189 -0
  119. package/src/render/depth-pyramid.ts +596 -0
  120. package/src/render/foliage-alpha.ts +166 -0
  121. package/src/render/material-key.ts +60 -0
  122. package/src/render/mesh-pool.ts +144 -0
  123. package/src/render/probe-volume.ts +1668 -0
  124. package/src/render/resolution-subrect.ts +253 -0
  125. package/src/render/velocity.ts +442 -0
  126. package/src/render/virtual-shadow-pages.ts +827 -0
  127. package/src/render/virtual-shadow-partial.ts +174 -0
  128. package/src/render/virtual-shadow.ts +3330 -0
  129. package/src/render/world-impostor-surface.ts +722 -0
  130. package/src/render/world-impostor.ts +558 -0
  131. package/src/render-camera-cull.ts +441 -0
  132. package/src/render-pass-budget.ts +501 -0
  133. package/src/renderProjection.ts +758 -0
  134. package/src/renderer-config.ts +127 -0
  135. package/src/renderer.ts +1847 -0
  136. package/src/replay-protocol.ts +85 -0
  137. package/src/replay.ts +205 -0
  138. package/src/resolution-scaler.ts +819 -0
  139. package/src/rig-preparation.ts +271 -0
  140. package/src/ripple-field.ts +432 -0
  141. package/src/scale.ts +109 -0
  142. package/src/scene.ts +239 -0
  143. package/src/schedule.ts +155 -0
  144. package/src/skeletal-mesh.ts +61 -0
  145. package/src/skeleton.ts +100 -0
  146. package/src/snow-field.ts +744 -0
  147. package/src/softbody-topology.ts +269 -0
  148. package/src/softbody.ts +516 -0
  149. package/src/sprite-animator.ts +222 -0
  150. package/src/startup-readiness.ts +386 -0
  151. package/src/state.ts +66 -0
  152. package/src/static-transform.ts +274 -0
  153. package/src/storage-buffer.ts +253 -0
  154. package/src/streaming.ts +308 -0
  155. package/src/target-fps.ts +92 -0
  156. package/src/terrain-jobs-worker.ts +17 -0
  157. package/src/terrain-jobs.ts +353 -0
  158. package/src/textures.ts +39 -0
  159. package/src/tracers.ts +237 -0
  160. package/src/ui-bridge.ts +368 -0
  161. package/src/ui-hit-regions.ts +380 -0
  162. package/src/ui-layer.ts +83 -0
  163. package/src/ui-state.ts +220 -0
  164. package/src/version.ts +2 -0
  165. package/src/viewport.ts +253 -0
  166. package/src/warmup.ts +1357 -0
  167. package/src/water-surface.ts +384 -0
  168. package/src/wave-field.ts +524 -0
  169. package/src/world-capabilities.ts +131 -0
  170. package/src/world-cell-proxy.ts +392 -0
  171. package/src/world-cells.ts +10564 -0
  172. package/src/world-gpu-scene.ts +3354 -0
  173. package/src/world-heightmap.ts +82 -0
  174. package/src/world-package.ts +469 -0
  175. package/src/world-passes.ts +582 -0
  176. package/src/world-region.ts +17 -0
  177. package/src/world-terrain-splat.ts +564 -0
  178. package/src/world-tiles.ts +3826 -0
  179. package/src/world-topology.ts +370 -0
  180. package/src/world-validate.ts +48 -0
  181. package/src/world.ts +805 -0
  182. package/dist/gpu-readback-CMklJs6r.d.ts +0 -112
@@ -379,6 +379,21 @@ var RECIPES = Object.freeze([
379
379
  }
380
380
  ]),
381
381
  script: "retarget.py"
382
+ }),
383
+ Object.freeze({
384
+ description: "Export a Blender-authored world as a ThreeNative world package v1: world.json, a raw uint16 heightmap, one GLB plus a decimated LOD1 per referenced scatter asset, per-cell chunk GLBs and placements.bin. Reads render-density instances, so viewport share tricks never leak in.",
385
+ name: "export_world",
386
+ parameters: Object.freeze([
387
+ { description: "Path to the .blend world to read.", name: "source", required: true },
388
+ { description: "Directory to write the package into.", name: "out", required: true },
389
+ { description: "Cell edge length in metres.", name: "cell", required: true },
390
+ {
391
+ description: "Heightmap sample spacing in metres. Default 2.",
392
+ name: "spacing",
393
+ required: false
394
+ }
395
+ ]),
396
+ script: "export_world.py"
382
397
  })
383
398
  ]);
384
399
  function recipeNames() {
@@ -424,7 +439,7 @@ async function runRecipe(name, request, options = {}) {
424
439
 
425
440
  // src/index.ts
426
441
  var SERVER_NAME = "threenative-blender-mcp";
427
- var SERVER_VERSION = "0.1.3";
442
+ var SERVER_VERSION = "0.1.5";
428
443
  var AUTHORING_INSTRUCTIONS = "Call blender_status before anything else: it answers whether this machine can convert models at all, and when it cannot it names the install command rather than failing. Blender is never installed for the user \u2014 ask first, then let them run the command. An .fbx, .blend, .obj or .dae placed in a game's assets directory is converted by the build itself; these tools are for inspecting a source before committing it and for operations the build does not perform. For anything no named tool covers, read a shipped recipe with blender_recipes and adapt it, then run it with blender_run_python.";
429
444
  var TOOL_DEFINITIONS = [
430
445
  {
@@ -476,6 +491,25 @@ var TOOL_DEFINITIONS = [
476
491
  type: "object"
477
492
  }
478
493
  },
494
+ {
495
+ annotations: { destructiveHint: true, openWorldHint: false, readOnlyHint: false },
496
+ name: "blender_export_world",
497
+ description: "Export a Blender-authored world as a ThreeNative world package v1: world.json, a raw uint16 heightmap, one GLB plus a decimated LOD1 per referenced scatter asset, per-cell chunk GLBs and placements.bin. Reads render-density instances so viewport share tricks never leak in; marks the terrain with tn_world_terrain, scatter sources with tn_asset_id and chunk collections with tn_world_chunk.",
498
+ inputSchema: {
499
+ additionalProperties: false,
500
+ properties: {
501
+ cell: { description: "Cell edge length in metres.", type: "number" },
502
+ out: { description: "Directory to write the package into.", type: "string" },
503
+ source: { description: "Path to the .blend world to read.", type: "string" },
504
+ spacing: {
505
+ description: "Heightmap sample spacing in metres. Default 2.",
506
+ type: "number"
507
+ }
508
+ },
509
+ required: ["source", "out", "cell"],
510
+ type: "object"
511
+ }
512
+ },
479
513
  {
480
514
  annotations: { destructiveHint: true, openWorldHint: false, readOnlyHint: false },
481
515
  name: "blender_run_python",
@@ -570,12 +604,35 @@ async function handleToolCall(params) {
570
604
  return toolText(await convertModel(source, out));
571
605
  }
572
606
  if (name === "blender_recipes") return toolText(await handleRecipes(argumentsValue));
607
+ if (name === "blender_export_world") {
608
+ const source = requiredString(argumentsValue, "source", "blender_export_world");
609
+ const out = requiredString(argumentsValue, "out", "blender_export_world");
610
+ const cell = argumentsValue.cell;
611
+ if (typeof cell !== "number" || !Number.isFinite(cell) || cell <= 0) {
612
+ throw new Error("blender_export_world 'cell' must be a number greater than zero.");
613
+ }
614
+ const spacing = argumentsValue.spacing;
615
+ if (spacing !== void 0 && (typeof spacing !== "number" || !Number.isFinite(spacing) || spacing <= 0)) {
616
+ throw new Error("blender_export_world 'spacing' must be a number greater than zero.");
617
+ }
618
+ return toolText(
619
+ await runRecipe("export_world", {
620
+ cell,
621
+ out,
622
+ source,
623
+ ...spacing === void 0 ? {} : { spacing }
624
+ })
625
+ );
626
+ }
573
627
  if (name === "blender_run_python") {
574
628
  const script = requiredString(argumentsValue, "script", "blender_run_python");
575
- const request = isRecord(argumentsValue.arguments) ? argumentsValue.arguments : {};
629
+ const request = argumentsValue.arguments === void 0 ? {} : argumentsValue.arguments;
630
+ if (!isRecord(request)) throw new Error("blender_run_python 'arguments' must be an object.");
576
631
  const timeoutMs = argumentsValue.timeoutMs;
577
- if (timeoutMs !== void 0 && typeof timeoutMs !== "number") {
578
- throw new Error("blender_run_python 'timeoutMs' must be a number.");
632
+ if (timeoutMs !== void 0 && (typeof timeoutMs !== "number" || !Number.isInteger(timeoutMs) || timeoutMs <= 0)) {
633
+ throw new Error(
634
+ "blender_run_python 'timeoutMs' must be a positive whole number of milliseconds."
635
+ );
579
636
  }
580
637
  return toolText(
581
638
  await runBlenderScript(script, request, timeoutMs === void 0 ? {} : { timeoutMs })
package/mcp/blender.mjs CHANGED
@@ -8,10 +8,9 @@ import { MCP_PACKAGES } from "./servers.mjs";
8
8
  // Core carries the built server beside this shim, so a project that installed `@threenative/core`
9
9
  // has working Blender tools with no network and no extra install.
10
10
  //
11
- // `blender-server.mjs` is generated by `scripts/bundle-blender-mcp.mjs` **and committed**, unlike
12
- // its `engine-server.mjs` neighbour, which is gitignored. The difference matters: the npx fallback
13
- // below cannot work for this server, because `threenative-blender-mcp` has never been published —
14
- // a missing bundle becomes
11
+ // `blender-server.mjs` is generated by `scripts/bundle-blender-mcp.mjs` **and committed**, as is
12
+ // its `engine-server.mjs` neighbour. It must stay that way: the npx fallback below cannot work for
13
+ // this server, because `threenative-blender-mcp` has never been published — a missing bundle becomes
15
14
  //
16
15
  // threenative-blender exited before completing MCP requests (1): npm error code E404
17
16
  //
@@ -131,14 +131,13 @@ function defaultManifestPath(cwd = process.cwd()) {
131
131
  const override = process.env.THREENATIVE_CAPABILITIES_MANIFEST;
132
132
  if (override !== void 0 && override.trim().length > 0) return path.resolve(cwd, override);
133
133
  for (let directory = path.resolve(cwd); ; directory = path.dirname(directory)) {
134
- const installed = path.join(
135
- directory,
136
- "node_modules",
137
- "@threenative",
138
- "core",
139
- "capabilities.json"
140
- );
141
- if (existsSync(installed)) return installed;
134
+ const nodeModules = path.join(directory, "node_modules");
135
+ const installed = path.join(nodeModules, "@threenative", "core", "capabilities.json");
136
+ if (existsSync(installed)) {
137
+ const relative = path.relative(realpathSync(directory), realpathSync(nodeModules));
138
+ if (relative !== ".." && !relative.startsWith(`..${path.sep}`) && !path.isAbsolute(relative))
139
+ return installed;
140
+ }
142
141
  const parent = path.dirname(directory);
143
142
  if (parent === directory) break;
144
143
  }
@@ -156,6 +155,9 @@ function manifestError(file, reason) {
156
155
  function isRecord(value) {
157
156
  return typeof value === "object" && value !== null && !Array.isArray(value);
158
157
  }
158
+ function isStringArray(value) {
159
+ return Array.isArray(value) && value.every((item) => typeof item === "string");
160
+ }
159
161
  function validateManifest(value, file) {
160
162
  if (!isRecord(value) || value.version !== 2 || !Array.isArray(value.entries) || !Array.isArray(value.notOwned)) {
161
163
  throw manifestError(
@@ -164,7 +166,7 @@ function validateManifest(value, file) {
164
166
  );
165
167
  }
166
168
  for (const [index, raw] of value.entries.entries()) {
167
- if (!isRecord(raw) || typeof raw.symbol !== "string" || typeof raw.package !== "string" || typeof raw.importPath !== "string" || typeof raw.kind !== "string" || typeof raw.signature !== "string" || typeof raw.summary !== "string" || typeof raw.example !== "string" || !Array.isArray(raw.situations) || !Array.isArray(raw.aliases) || !Array.isArray(raw.constraints) || raw.requires !== void 0 && !Array.isArray(raw.requires) || !raw.situations.every((situation) => typeof situation === "string") || !raw.aliases.every((alias) => typeof alias === "string") || !raw.constraints.every((constraint) => typeof constraint === "string") || Array.isArray(raw.requires) && !raw.requires.every((requirement) => typeof requirement === "string")) {
169
+ if (!isRecord(raw) || typeof raw.symbol !== "string" || typeof raw.package !== "string" || typeof raw.importPath !== "string" || typeof raw.kind !== "string" || typeof raw.signature !== "string" || typeof raw.summary !== "string" || typeof raw.example !== "string" || !Array.isArray(raw.situations) || !Array.isArray(raw.aliases) || !Array.isArray(raw.constraints) || raw.requires !== void 0 && !isStringArray(raw.requires) || raw.deprecated !== void 0 && !isStringArray(raw.deprecated) || !raw.situations.every((situation) => typeof situation === "string") || !raw.aliases.every((alias) => typeof alias === "string") || !raw.constraints.every((constraint) => typeof constraint === "string")) {
168
170
  throw manifestError(file, `entry ${index} is malformed`);
169
171
  }
170
172
  }
@@ -375,13 +377,25 @@ function searchCapabilities(situation, manifestFile = defaultManifestPath(), sco
375
377
  verdict: "none"
376
378
  };
377
379
  }
378
- function capabilityDetail(symbol, manifestFile = defaultManifestPath()) {
380
+ function capabilityDetails(symbol, manifestFile = defaultManifestPath(), importPath) {
379
381
  if (typeof symbol !== "string" || symbol.trim().length === 0)
380
382
  throw new Error("engine_capability_detail requires a non-empty symbol string.");
381
- const manifest = loadCapabilityManifest(manifestFile);
382
- const entry = manifest.entries.find((candidate) => candidate.symbol === symbol);
383
- if (entry === void 0) throw new Error(`Unknown engine capability '${symbol}'.`);
384
- return entry;
383
+ const matches = loadCapabilityManifest(manifestFile).entries.filter(
384
+ (candidate) => candidate.symbol === symbol && (importPath === void 0 || candidate.importPath === importPath)
385
+ );
386
+ if (matches.length === 0)
387
+ throw new Error(
388
+ `Unknown engine capability '${symbol}'${importPath === void 0 ? "" : ` in '${importPath}'`}.`
389
+ );
390
+ return matches;
391
+ }
392
+ function capabilityDetail(symbol, manifestFile = defaultManifestPath(), importPath) {
393
+ const matches = capabilityDetails(symbol, manifestFile, importPath);
394
+ if (matches.length > 1)
395
+ throw new Error(
396
+ `Ambiguous engine capability '${symbol}': pass importPath, one of ${matches.map((match) => `'${match.importPath}'`).join(", ")}.`
397
+ );
398
+ return matches[0];
385
399
  }
386
400
  var TOOL_DEFINITIONS = [
387
401
  {
@@ -405,10 +419,16 @@ var TOOL_DEFINITIONS = [
405
419
  {
406
420
  annotations: { destructiveHint: false, openWorldHint: false, readOnlyHint: true },
407
421
  name: "engine_capability_detail",
408
- description: "Inspect one engine capability's import, signature, example, constraints, and overrides.",
422
+ description: "Inspect one engine capability's import, signature, example, constraints, and overrides. When several packages export the symbol, every match is returned under `matches`.",
409
423
  inputSchema: {
410
424
  additionalProperties: false,
411
- properties: { symbol: { type: "string" } },
425
+ properties: {
426
+ importPath: {
427
+ description: "The search result's importPath; required when two packages export the same symbol.",
428
+ type: "string"
429
+ },
430
+ symbol: { type: "string" }
431
+ },
412
432
  required: ["symbol"],
413
433
  type: "object"
414
434
  }
@@ -452,7 +472,7 @@ function handleToolCall(params, manifestFile) {
452
472
  if (name === "engine_search_capabilities") {
453
473
  if (typeof argumentsValue.situation !== "string")
454
474
  throw new Error("engine_search_capabilities requires a string 'situation' argument.");
455
- const scope = argumentsValue.scope ?? "mechanic";
475
+ const scope = argumentsValue.scope === void 0 ? "mechanic" : argumentsValue.scope;
456
476
  if (scope !== "request" && scope !== "mechanic")
457
477
  throw new Error("engine_search_capabilities scope must be 'request' or 'mechanic'.");
458
478
  const response = searchCapabilities(argumentsValue.situation, manifestFile, scope);
@@ -468,8 +488,22 @@ function handleToolCall(params, manifestFile) {
468
488
  if (name === "engine_capability_detail") {
469
489
  if (typeof argumentsValue.symbol !== "string")
470
490
  throw new Error("engine_capability_detail requires a string 'symbol' argument.");
471
- const detail = capabilityDetail(argumentsValue.symbol, manifestFile);
472
- logToolCall({ symbol: argumentsValue.symbol, tool: name });
491
+ if (argumentsValue.importPath !== void 0 && typeof argumentsValue.importPath !== "string")
492
+ throw new Error("engine_capability_detail 'importPath' must be a string when given.");
493
+ const matches = capabilityDetails(
494
+ argumentsValue.symbol,
495
+ manifestFile,
496
+ argumentsValue.importPath
497
+ );
498
+ const detail = matches.length === 1 ? matches[0] : {
499
+ guidance: `${matches.length} packages export '${argumentsValue.symbol}'. Import the match whose summary fits; pass importPath to get one.`,
500
+ matches
501
+ };
502
+ logToolCall({
503
+ importPath: argumentsValue.importPath,
504
+ symbol: argumentsValue.symbol,
505
+ tool: name
506
+ });
473
507
  return toolText(detail);
474
508
  }
475
509
  throw new Error(`Unknown engine MCP tool '${String(name)}'.`);
@@ -490,7 +524,7 @@ function handleLine(line, manifestFile) {
490
524
  capabilities: { tools: { listChanged: false } },
491
525
  instructions: AUTHORING_INSTRUCTIONS,
492
526
  protocolVersion: "2025-06-18",
493
- serverInfo: { name: "threenative-engine-mcp", version: "0.2.3" }
527
+ serverInfo: { name: "threenative-engine-mcp", version: "0.2.5" }
494
528
  });
495
529
  }
496
530
  if (request.method === "tools/list") {
@@ -526,4 +560,4 @@ if (entryPath !== void 0 && realpathSync(path.resolve(entryPath)) === realpathSy
526
560
  }
527
561
  }
528
562
 
529
- export { ENGINE_MCP_TOOL_NAMES, RELEVANCE_FLOOR, capabilityDetail, capabilitySituationTokens, defaultManifestPath, handleLine, loadCapabilityManifest, runServer, searchCapabilities, toolDefinitions };
563
+ export { ENGINE_MCP_TOOL_NAMES, RELEVANCE_FLOOR, capabilityDetail, capabilityDetails, capabilitySituationTokens, defaultManifestPath, handleLine, loadCapabilityManifest, runServer, searchCapabilities, toolDefinitions };
package/mcp/servers.mjs CHANGED
@@ -38,10 +38,10 @@ export const MCP_SERVERS = Object.freeze({
38
38
  * separately. The pinned engine version remains an emergency fallback for a legacy development
39
39
  * checkout whose bundle has not been built. */
40
40
  export const MCP_PACKAGES = Object.freeze({
41
- assets: Object.freeze({ name: "threenative-asset-mcp", version: "0.9.1" }),
42
- sculpt: Object.freeze({ name: "threenative-sculpt-mcp", version: "0.1.1" }),
43
- engine: Object.freeze({ name: "threenative-engine-mcp", version: "0.2.3" }),
44
- blender: Object.freeze({ name: "threenative-blender-mcp", version: "0.1.3" }),
41
+ assets: Object.freeze({ name: "threenative-asset-mcp", version: "0.14.0" }),
42
+ sculpt: Object.freeze({ name: "threenative-sculpt-mcp", version: "0.2.2" }),
43
+ engine: Object.freeze({ name: "threenative-engine-mcp", version: "0.2.5" }),
44
+ blender: Object.freeze({ name: "threenative-blender-mcp", version: "0.1.5" }),
45
45
  });
46
46
 
47
47
  /** How one host spells a stdio MCP server. Hosts agree on what to run and disagree on where to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threenative/core",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "license": "MIT AND GPL-2.0-or-later",
5
5
  "description": "The small vanilla Three.js game runtime foundation.",
6
6
  "keywords": [
@@ -33,7 +33,8 @@
33
33
  "scripts/postinstall.mjs",
34
34
  "patches",
35
35
  "capabilities.json",
36
- "README.md"
36
+ "README.md",
37
+ "src/**/*.ts"
37
38
  ],
38
39
  "main": "./dist/index.js",
39
40
  "module": "./dist/index.js",
@@ -55,6 +56,10 @@
55
56
  "types": "./dist/react.d.ts",
56
57
  "import": "./dist/react.js"
57
58
  },
59
+ "./react-css": {
60
+ "types": "./dist/react-css.d.ts",
61
+ "import": "./dist/react-css.js"
62
+ },
58
63
  "./ui-layer": {
59
64
  "types": "./dist/ui-layer.d.ts",
60
65
  "import": "./dist/ui-layer.js"
@@ -76,8 +81,8 @@
76
81
  "dependencies": {
77
82
  "three": "0.185.1",
78
83
  "three-mesh-bvh": "0.9.14",
79
- "threenative-asset-mcp": "0.9.1",
80
- "threenative-sculpt-mcp": "0.1.1",
84
+ "threenative-asset-mcp": "0.14.0",
85
+ "threenative-sculpt-mcp": "0.2.2",
81
86
  "zustand": "5.0.14"
82
87
  },
83
88
  "devDependencies": {
@@ -88,13 +93,14 @@
88
93
  "react": "19.2.0",
89
94
  "react-reconciler": "0.33.0",
90
95
  "tsup": "8.5.1",
91
- "typescript": "5.9.3",
92
- "@threenative/playtest": "0.3.3",
93
- "threenative-engine-mcp": "0.2.3",
94
- "threenative-blender-mcp": "0.1.3"
96
+ "typescript": "npm:@typescript/typescript6@6.0.2",
97
+ "@typescript/native": "npm:typescript@7.0.2",
98
+ "threenative-blender-mcp": "0.1.5",
99
+ "threenative-engine-mcp": "0.2.5",
100
+ "@threenative/playtest": "0.3.5"
95
101
  },
96
102
  "peerDependencies": {
97
- "@threenative/playtest": ">=0.3.3 <0.4.0",
103
+ "@threenative/playtest": ">=0.3.5 <0.4.0",
98
104
  "react": ">=19.2.0 <20",
99
105
  "react-reconciler": ">=0.33.0 <0.34"
100
106
  },