@pinkaphant/create-kolmo 0.5.2 → 0.7.0

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.
package/README.md CHANGED
@@ -12,13 +12,15 @@ Pass `--template <name>` to pick any of the 6 templates (`road` is the default;
12
12
 
13
13
  ## Templates
14
14
 
15
- ### 1. `road` — Spline Road & C12 Village Sandbox ([`./templates/road`](./templates/road))
15
+ ### 1. `road` — Mile High Speedway Driving Game + 86 R2 Cars + BoxCar 3D Evolution ([`./templates/road`](./templates/road))
16
16
 
17
17
  ```bash
18
- npm create @pinkaphant/kolmo@latest my-road-game
18
+ npm create @pinkaphant/kolmo@latest my-driving-game
19
19
  ```
20
20
 
21
- Default template. Generates a seeded `@khr3/roads` continuous spline (`<RoadRibbon>`), grades a `384 m` terrain pad, places a cyclotomic `@khr3/c12` `planSettlement` village (`<Settlement>` with Rapier revolute-hinged doors), spawns a spline-aligned Skyline R34 (`computeSplineSpawnPose`), and mounts `<Actor>`, `<Toolgun>`, `<Hud>`, `<Radar>`, and `<Game dropSpawn>` `.glb` drop-to-drive.
21
+ Default template. Generates a closed `@khr3/roads` Mile High Speedway loop (`<RoadRibbon>`), grades a `576 m` terrain pad, places a cyclotomic `@khr3/c12` `planSettlement` paddock (`<Settlement>` with Rapier revolute-hinged doors), ships all **86 tagged Cloudflare R2 cars** (`@pinkaphant/kolmo/vault`), **BoxCar 3D Evolution + 1-byte `CurveLUT` tuner** (`@pinkaphant/kolmo/cars`), walk-up `[F]` enter/exit `<Actor>` & `<Vehicle>`, UIKit + `@preact/signals-core` `<Hud>`, W3C WebMCP (`navigator.modelContext`), and `.mcp.json` / `npm run mcp` launching the interactive `ui://kolmo/studio.html` MCP App!
22
+
23
+ - **MCP & WebMCP Architecture**: `kolmo-mcp` runs standalone over stdio (`npm run mcp` / `.mcp.json`), while `/__kolmo_mcp` is local Vite dev middleware (`kolmoMcpBridgePlugin()`, active only when `import.meta.env.DEV` or `enableDevBridge: true`) so static production builds never spam `/__kolmo_mcp`. Browser WebMCP availability (`window.isSecureContext` & `navigator.modelContext.registerTool`) is surfaced on `window.kolmoMcp.diagnostics`.
22
24
 
23
25
  - **WASD** / **Arrows**: Move or drive · **Shift**: Run / boost · **Space**: Jump · **C**: Brake
24
26
  - **E** / **F**: Board or exit vehicle · **R**: Flip vehicle upright
@@ -78,3 +80,14 @@ Real-time 3D evolutionary car breeder on `@pinkaphant/kolmo/cars` (`createInitia
78
80
 
79
81
  - **Click** any row in the standings dock to lock the `maath/easing` chase camera onto that genome
80
82
  - **Space**: Pause / resume · **1** / **2** / **4**: Set simulation speed · **Inject Hex**: Splice custom `0xXXXXXXXX` gene · **Export .GLB**: Download selected KHR vehicle
83
+
84
+ ## Releasing (`@pinkaphant/create-kolmo` + `create-kolmo`)
85
+
86
+ Publish `@khr3/core` and `@pinkaphant/kolmo` first, sync `./templates/` with `../Kolmo/templates/`, bump `"version"` in `package.json`, then run:
87
+
88
+ ```bash
89
+ npm run release:both
90
+ git add -A && git commit -m "feat(templates): Kolmo vX.Y.Z (vA.B.C)" && git tag vA.B.C && git push origin main --tags
91
+ ```
92
+
93
+ `npm run release:both` ([`./scripts/publish-both.mjs`](./scripts/publish-both.mjs)) runs the full 6-template `npm test` + `tsc --noEmit` + `vite build` suite, publishes `@pinkaphant/create-kolmo`, and publishes unscoped `create-kolmo` (`npx create-kolmo@latest` / `npm create kolmo@latest`) from an isolated temp directory without mutating `package.json`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinkaphant/create-kolmo",
3
- "version": "0.5.2",
3
+ "version": "0.7.0",
4
4
  "description": "Scaffold a new @pinkaphant/kolmo + @khr3/core + @khr3/roads + @khr3/c12 3D physics game in one command",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,7 +18,8 @@
18
18
  },
19
19
  "scripts": {
20
20
  "test": "node --test test/create-kolmo.test.mjs",
21
- "pack:dry": "npm pack --dry-run"
21
+ "pack:dry": "npm pack --dry-run",
22
+ "release:both": "node scripts/publish-both.mjs"
22
23
  },
23
24
  "engines": {
24
25
  "node": ">=24"
@@ -0,0 +1,13 @@
1
+ {
2
+ "mcpServers": {
3
+ "kolmo-studio": {
4
+ "command": "npx",
5
+ "args": [
6
+ "kolmo-mcp"
7
+ ],
8
+ "env": {
9
+ "KOLMO_BRIDGE_URL": "http://127.0.0.1:5173/__kolmo_mcp"
10
+ }
11
+ }
12
+ }
13
+ }
@@ -8,13 +8,14 @@
8
8
  "dev": "vite",
9
9
  "typecheck": "tsc --noEmit",
10
10
  "build": "tsc --noEmit && vite build",
11
- "preview": "vite preview"
11
+ "preview": "vite preview",
12
+ "mcp": "kolmo-mcp"
12
13
  },
13
14
  "dependencies": {
14
15
  "@dimforge/rapier3d-compat": "0.19.2",
15
- "@khr3/core": "^0.2.21",
16
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
17
- "@pinkaphant/kolmo": "^0.15.1",
16
+ "@khr3/core": "^0.2.27",
17
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
18
+ "@pinkaphant/kolmo": "^0.22.0",
18
19
  "@react-three/drei": "^10.7.7",
19
20
  "@react-three/fiber": "^9.6.1",
20
21
  "@react-three/rapier": "^2.2.0",
@@ -25,7 +26,7 @@
25
26
  },
26
27
  "overrides": {
27
28
  "@dimforge/rapier3d-compat": "0.19.2",
28
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
29
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
29
30
  "three": "0.184.0"
30
31
  },
31
32
  "devDependencies": {
@@ -42,7 +42,6 @@ const RING_RADIUS = 46;
42
42
  const PIT_DROP_Y = -2.2;
43
43
  const RIVAL_COUNT = 5;
44
44
  const TOTAL_CARS = 1 + RIVAL_COUNT;
45
- const FIXED_STEP_DT = 1 / 60;
46
45
 
47
46
  /**
48
47
  * Sunken concave `128 m` demolition derby bowl:
@@ -209,7 +208,7 @@ function DerbyReferee({
209
208
  useBeforePhysicsStep((steppingWorld) => {
210
209
  const sim = simRef.current;
211
210
  if (!sim) return;
212
- const dt = steppingWorld.timestep > 0 ? steppingWorld.timestep : FIXED_STEP_DT;
211
+ const dt = steppingWorld.timestep > 0 ? steppingWorld.timestep : 0.016;
213
212
 
214
213
  // Auto-board the player into slot 0 once mounted at the start of each bout
215
214
  const actorEnt = kolmoWorld.queryFirst(ActorTrait);
@@ -390,20 +389,38 @@ function DerbyReferee({
390
389
  cmd.steerLeft = false;
391
390
  cmd.steerRight = false;
392
391
  cmd.brake = true;
392
+ cmd.throttle = 0;
393
393
  cmd.throttleUp = false;
394
394
  cmd.boost = false;
395
+ if (cmd.joystickL) {
396
+ cmd.joystickL.x = 0;
397
+ cmd.joystickL.y = 0;
398
+ }
399
+ if (cmd.joystickR) {
400
+ cmd.joystickR.x = 0;
401
+ cmd.joystickR.y = 0;
402
+ }
395
403
  vh.setMovement(cmd);
396
404
  continue;
397
405
  }
398
406
 
399
- const ai = stepDerbyAutopilot(selfKin, sim.kinematics, RING_RADIUS, FIXED_STEP_DT, sim.memories[i]!, sim.aiCmd);
407
+ const ai = stepDerbyAutopilot(selfKin, sim.kinematics, RING_RADIUS, dt, sim.memories[i]!, sim.aiCmd);
400
408
  cmd.forward = ai.forward;
401
409
  cmd.backward = ai.backward;
402
410
  cmd.steerLeft = ai.steerLeft;
403
411
  cmd.steerRight = ai.steerRight;
404
412
  cmd.brake = ai.brake;
413
+ cmd.throttle = ai.boost ? 1 : 0;
405
414
  cmd.throttleUp = ai.boost;
406
415
  cmd.boost = ai.boost;
416
+ if (cmd.joystickL) {
417
+ cmd.joystickL.x = 0;
418
+ cmd.joystickL.y = 0;
419
+ }
420
+ if (cmd.joystickR) {
421
+ cmd.joystickR.x = 0;
422
+ cmd.joystickR.y = 0;
423
+ }
407
424
  vh.setMovement(cmd);
408
425
  }
409
426
 
@@ -549,6 +566,7 @@ export default function App() {
549
566
  />
550
567
  ))}
551
568
  <Actor key={`actor-${boutId}`} ref={actorRef} view="tps" position={actorStart} />
569
+ <Hud />
552
570
  </Game>
553
571
 
554
572
  <div
@@ -592,7 +610,6 @@ export default function App() {
592
610
  </button>
593
611
  </div>
594
612
 
595
- <Hud />
596
613
  <Radar spec={arena.radarSpec} />
597
614
  </>
598
615
  );
@@ -1,9 +1,9 @@
1
1
  import react from "@vitejs/plugin-react";
2
2
  import { defineConfig } from "vite";
3
- import { KOLMO_SINGLETON_DEDUPE } from "@pinkaphant/kolmo/vite";
3
+ import { KOLMO_SINGLETON_DEDUPE, kolmoMcpBridgePlugin } from "@pinkaphant/kolmo/vite";
4
4
 
5
5
  export default defineConfig({
6
- plugins: [react()],
6
+ plugins: [react(), kolmoMcpBridgePlugin()],
7
7
  resolve: {
8
8
  dedupe: KOLMO_SINGLETON_DEDUPE,
9
9
  },
@@ -0,0 +1,13 @@
1
+ {
2
+ "mcpServers": {
3
+ "kolmo-studio": {
4
+ "command": "npx",
5
+ "args": [
6
+ "kolmo-mcp"
7
+ ],
8
+ "env": {
9
+ "KOLMO_BRIDGE_URL": "http://127.0.0.1:5173/__kolmo_mcp"
10
+ }
11
+ }
12
+ }
13
+ }
@@ -8,15 +8,16 @@
8
8
  "dev": "vite",
9
9
  "typecheck": "tsc --noEmit",
10
10
  "build": "tsc --noEmit && vite build",
11
- "preview": "vite preview"
11
+ "preview": "vite preview",
12
+ "mcp": "kolmo-mcp"
12
13
  },
13
14
  "dependencies": {
14
15
  "@dimforge/rapier3d-compat": "0.19.2",
15
16
  "@khr3/c12": "^0.4.0",
16
- "@khr3/core": "^0.2.21",
17
- "@khr3/roads": "^0.1.2",
18
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
19
- "@pinkaphant/kolmo": "^0.15.1",
17
+ "@khr3/core": "^0.2.27",
18
+ "@khr3/roads": "^0.1.3",
19
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
20
+ "@pinkaphant/kolmo": "^0.22.0",
20
21
  "@react-three/drei": "^10.7.7",
21
22
  "@react-three/fiber": "^9.6.1",
22
23
  "@react-three/rapier": "^2.2.0",
@@ -27,7 +28,7 @@
27
28
  },
28
29
  "overrides": {
29
30
  "@dimforge/rapier3d-compat": "0.19.2",
30
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
31
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
31
32
  "three": "0.184.0"
32
33
  },
33
34
  "devDependencies": {
@@ -142,8 +142,8 @@ export default function App() {
142
142
  kind: "vehicle",
143
143
  }}
144
144
  />
145
+ <Hud />
145
146
  </Game>
146
- <Hud />
147
147
  <Radar spec={world.radarSpec} />
148
148
  </>
149
149
  );
@@ -1,8 +1,10 @@
1
1
  import react from "@vitejs/plugin-react";
2
2
  import { defineConfig } from "vite";
3
- import { KOLMO_SINGLETON_DEDUPE } from "@pinkaphant/kolmo/vite";
3
+ import { KOLMO_SINGLETON_DEDUPE, kolmoMcpBridgePlugin } from "@pinkaphant/kolmo/vite";
4
4
 
5
5
  export default defineConfig({
6
- plugins: [react()],
7
- resolve: { dedupe: KOLMO_SINGLETON_DEDUPE },
6
+ plugins: [react(), kolmoMcpBridgePlugin()],
7
+ resolve: {
8
+ dedupe: KOLMO_SINGLETON_DEDUPE,
9
+ },
8
10
  });
@@ -0,0 +1,13 @@
1
+ {
2
+ "mcpServers": {
3
+ "kolmo-studio": {
4
+ "command": "npx",
5
+ "args": [
6
+ "kolmo-mcp"
7
+ ],
8
+ "env": {
9
+ "KOLMO_BRIDGE_URL": "http://127.0.0.1:5173/__kolmo_mcp"
10
+ }
11
+ }
12
+ }
13
+ }
@@ -8,14 +8,15 @@
8
8
  "dev": "vite",
9
9
  "typecheck": "tsc --noEmit",
10
10
  "build": "tsc --noEmit && vite build",
11
- "preview": "vite preview"
11
+ "preview": "vite preview",
12
+ "mcp": "kolmo-mcp"
12
13
  },
13
14
  "dependencies": {
14
15
  "@dimforge/rapier3d-compat": "0.19.2",
15
- "@khr3/core": "^0.2.21",
16
- "@khr3/roads": "^0.1.2",
17
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
18
- "@pinkaphant/kolmo": "^0.15.1",
16
+ "@khr3/core": "^0.2.27",
17
+ "@khr3/roads": "^0.1.3",
18
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
19
+ "@pinkaphant/kolmo": "^0.22.0",
19
20
  "@react-three/drei": "^10.7.7",
20
21
  "@react-three/fiber": "^9.6.1",
21
22
  "@react-three/rapier": "^2.2.0",
@@ -27,7 +28,7 @@
27
28
  },
28
29
  "overrides": {
29
30
  "@dimforge/rapier3d-compat": "0.19.2",
30
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
31
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
31
32
  "three": "0.184.0"
32
33
  },
33
34
  "devDependencies": {
@@ -39,7 +39,6 @@ const GAUNTLET_SIZE_Z = 384;
39
39
  const GAUNTLET_ROWS_Z = 192;
40
40
  const GAUNTLET_COLS_X = 48;
41
41
  const MAX_HEAT_SECONDS = 24;
42
- const FIXED_STEP_DT = 1 / 60;
43
42
 
44
43
  /**
45
44
  * Builds a progressive `340 m` `+Z` climb, mogul rhythm section, and jump ramp spline on `@khr3/roads`.
@@ -182,7 +181,7 @@ function GauntletRunner({
182
181
  useBeforePhysicsStep((world) => {
183
182
  const st = stateRef.current;
184
183
  if (!st || st.bred) return;
185
- const dt = FIXED_STEP_DT;
184
+ const dt = world.timestep > 0 ? world.timestep : 0.016;
186
185
  st.elapsedS += dt;
187
186
 
188
187
  let stalledCount = 0;
@@ -271,8 +270,17 @@ function GauntletRunner({
271
270
  cmd.steerLeft = cross < -0.045;
272
271
  cmd.steerRight = cross > 0.045;
273
272
  cmd.brake = false;
273
+ cmd.throttle = slot.hasBoosters ? (boostPulse ? 1 : 0) : undefined;
274
274
  cmd.throttleUp = boostPulse;
275
275
  cmd.boost = boostPulse;
276
+ if (cmd.joystickL) {
277
+ cmd.joystickL.x = 0;
278
+ cmd.joystickL.y = 0;
279
+ }
280
+ if (cmd.joystickR) {
281
+ cmd.joystickR.x = 0;
282
+ cmd.joystickR.y = 0;
283
+ }
276
284
  vh.setMovement(cmd);
277
285
  }
278
286
 
@@ -501,6 +509,7 @@ export default function App() {
501
509
  bundle={slot.bundle}
502
510
  position={slot.pose.position}
503
511
  quaternion={slot.pose.quaternion}
512
+ waterConfig={slot.hasBoosters ? { airThrustScale: 1 } : undefined}
504
513
  flightConfig={slot.hasBoosters ? { controlMode: "6DOF", rateP: 0, baseControlTorque: 0, linearDamping6DOF: 0 } : undefined}
505
514
  vehicleRef={(h) => {
506
515
  vehicleRefs.current[idx] = h;
@@ -1,9 +1,9 @@
1
1
  import react from "@vitejs/plugin-react";
2
2
  import { defineConfig } from "vite";
3
- import { KOLMO_SINGLETON_DEDUPE } from "@pinkaphant/kolmo/vite";
3
+ import { KOLMO_SINGLETON_DEDUPE, kolmoMcpBridgePlugin } from "@pinkaphant/kolmo/vite";
4
4
 
5
5
  export default defineConfig({
6
- plugins: [react()],
6
+ plugins: [react(), kolmoMcpBridgePlugin()],
7
7
  resolve: {
8
8
  dedupe: KOLMO_SINGLETON_DEDUPE,
9
9
  },
@@ -0,0 +1,13 @@
1
+ {
2
+ "mcpServers": {
3
+ "kolmo-studio": {
4
+ "command": "npx",
5
+ "args": [
6
+ "kolmo-mcp"
7
+ ],
8
+ "env": {
9
+ "KOLMO_BRIDGE_URL": "http://127.0.0.1:5173/__kolmo_mcp"
10
+ }
11
+ }
12
+ }
13
+ }
@@ -8,14 +8,15 @@
8
8
  "dev": "vite",
9
9
  "typecheck": "tsc --noEmit",
10
10
  "build": "tsc --noEmit && vite build",
11
- "preview": "vite preview"
11
+ "preview": "vite preview",
12
+ "mcp": "kolmo-mcp"
12
13
  },
13
14
  "dependencies": {
14
15
  "@dimforge/rapier3d-compat": "0.19.2",
15
- "@khr3/core": "^0.2.21",
16
- "@khr3/roads": "^0.1.2",
17
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
18
- "@pinkaphant/kolmo": "^0.15.1",
16
+ "@khr3/core": "^0.2.27",
17
+ "@khr3/roads": "^0.1.3",
18
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
19
+ "@pinkaphant/kolmo": "^0.22.0",
19
20
  "@react-three/drei": "^10.7.7",
20
21
  "@react-three/fiber": "^9.6.1",
21
22
  "@react-three/rapier": "^2.2.0",
@@ -26,7 +27,7 @@
26
27
  },
27
28
  "overrides": {
28
29
  "@dimforge/rapier3d-compat": "0.19.2",
29
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
30
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
30
31
  "three": "0.184.0"
31
32
  },
32
33
  "devDependencies": {
@@ -164,6 +164,7 @@ export default function App() {
164
164
  kind: "vehicle",
165
165
  }}
166
166
  />
167
+ <Hud />
167
168
  </Game>
168
169
  <div
169
170
  style={{
@@ -190,7 +191,6 @@ export default function App() {
190
191
  000.0 km
191
192
  </span>
192
193
  </div>
193
- <Hud />
194
194
  <Radar spec={radarSpec} />
195
195
  </>
196
196
  );
@@ -1,9 +1,9 @@
1
1
  import react from "@vitejs/plugin-react";
2
2
  import { defineConfig } from "vite";
3
- import { KOLMO_SINGLETON_DEDUPE } from "@pinkaphant/kolmo/vite";
3
+ import { KOLMO_SINGLETON_DEDUPE, kolmoMcpBridgePlugin } from "@pinkaphant/kolmo/vite";
4
4
 
5
5
  export default defineConfig({
6
- plugins: [react()],
6
+ plugins: [react(), kolmoMcpBridgePlugin()],
7
7
  resolve: {
8
8
  dedupe: KOLMO_SINGLETON_DEDUPE,
9
9
  },
@@ -0,0 +1,11 @@
1
+ {
2
+ "mcpServers": {
3
+ "kolmo-studio": {
4
+ "command": "npx",
5
+ "args": ["kolmo-mcp"],
6
+ "env": {
7
+ "KOLMO_BRIDGE_URL": "http://127.0.0.1:5173/__kolmo_mcp"
8
+ }
9
+ }
10
+ }
11
+ }
@@ -1,6 +1,6 @@
1
- # Kolmo Road Sandbox
1
+ # Kolmo Driving Sandbox (Mile High Speedway + 86 R2 Cars + BoxCar 3D Evolution)
2
2
 
3
- Seeded `@khr3/roads` spline carriageway (`<RoadRibbon>`), cyclotomic `@khr3/c12` village (`<Settlement>`), roadside `<Prop>` structures, spline-aligned Skyline R34 (`computeSplineSpawnPose`), on-foot pilot `<Actor>` controller, `<Toolgun>`, `<Radar>`, and `<Game dropSpawn>` `.glb` drop-to-drive ([`./src/App.tsx`](./src/App.tsx)).
3
+ Closed `@khr3/roads` Mile High Speedway loop (`<RoadRibbon>`), cyclotomic `@khr3/c12` paddock village (`<Settlement>`), 86 tagged Cloudflare R2 cars (`@pinkaphant/kolmo/vault`), 4-byte BoxCar 3D Evolution + 1-byte `CurveLUT` tuner (`@pinkaphant/kolmo/cars`), UIKit + `@preact/signals-core` `<Hud>`, W3C WebMCP (`navigator.modelContext`), and MCP App studio (`ui://kolmo/studio.html` via `.mcp.json` / `npm run mcp`) ([`./src/App.tsx`](./src/App.tsx)).
4
4
 
5
5
  - **WASD** / **Arrows**: Move or drive
6
6
  - **Space**: Jump (on foot) / brake (vehicle)
@@ -11,9 +11,10 @@ Seeded `@khr3/roads` spline carriageway (`<RoadRibbon>`), cyclotomic `@khr3/c12`
11
11
  - **V**: Toggle FPS / TPS camera
12
12
  - **L**: Toggle vehicle headlights
13
13
  - **N**: Cycle day / dusk / night sky
14
- - **O** or **Drag & Drop `.glb`**: Auto-rig, spawn, and board any car `.glb`
15
14
  - **T** / **Right-Click**: Spawn armed vehicle
16
15
 
17
16
  ```bash
18
- npm create @pinkaphant/kolmo@latest my-road-game
17
+ npm run dev
18
+ # In another terminal (or via .mcp.json):
19
+ npm run mcp
19
20
  ```
@@ -2,10 +2,11 @@
2
2
  "name": "kolmo-road",
3
3
  "version": "0.1.0",
4
4
  "private": true,
5
- "description": "Kolmo road and vehicle sandbox on @pinkaphant/kolmo, @khr3/core, @khr3/roads, and @khr3/c12.",
5
+ "description": "Mile High Speedway driving sandbox on @pinkaphant/kolmo, 86 R2 cars, BoxCar 3D evolution, UIKit signal HUD, WebMCP, and MCP App studio.",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "dev": "vite",
9
+ "mcp": "kolmo-mcp",
9
10
  "typecheck": "tsc --noEmit",
10
11
  "build": "tsc --noEmit && vite build",
11
12
  "preview": "vite preview"
@@ -13,21 +14,24 @@
13
14
  "dependencies": {
14
15
  "@dimforge/rapier3d-compat": "0.19.2",
15
16
  "@khr3/c12": "^0.4.0",
16
- "@khr3/core": "^0.2.21",
17
- "@khr3/roads": "^0.1.2",
18
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
19
- "@pinkaphant/kolmo": "^0.15.1",
17
+ "@khr3/core": "^0.2.27",
18
+ "@khr3/roads": "^0.1.3",
19
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
20
+ "@pinkaphant/kolmo": "^0.22.0",
21
+ "@preact/signals-core": "^1.14.5",
20
22
  "@react-three/drei": "^10.7.7",
21
23
  "@react-three/fiber": "^9.6.1",
22
24
  "@react-three/rapier": "^2.2.0",
25
+ "@react-three/uikit": "^1.0.78",
23
26
  "koota": "^0.6.6",
27
+ "maath": "^0.10.8",
24
28
  "react": "^19.2.7",
25
29
  "react-dom": "^19.2.7",
26
30
  "three": "0.184.0"
27
31
  },
28
32
  "overrides": {
29
33
  "@dimforge/rapier3d-compat": "0.19.2",
30
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
34
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
31
35
  "three": "0.184.0"
32
36
  },
33
37
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- import { useMemo, useRef } from "react";
1
+ import { useCallback, useMemo, useRef, useState } from "react";
2
2
  import {
3
3
  ACTOR_GROUND_CLEARANCE,
4
4
  Actor,
@@ -17,46 +17,78 @@ import {
17
17
  settlementShoulderWidth,
18
18
  type EcctrlHandle,
19
19
  } from "@pinkaphant/kolmo";
20
+ import {
21
+ compileKolmogorovCarBundle,
22
+ createInitialPopulation,
23
+ decodeCurveLutByte,
24
+ encodeCurveLutByte,
25
+ formatKolmogorovGene,
26
+ parseKolmogorovGene,
27
+ runBoxCarTournament,
28
+ } from "@pinkaphant/kolmo/cars";
29
+ import {
30
+ R2_CAR_CATEGORIES,
31
+ filterR2Cars,
32
+ loadR2CarBundle,
33
+ type R2CarCategory,
34
+ } from "@pinkaphant/kolmo/vault";
20
35
  import { instanceBatches, planSettlement } from "@khr3/c12";
21
- import { frontage, growRoad, makeTerrain, sampleRapierHeightfield } from "@khr3/roads";
36
+ import { sampleRapierHeightfield, type KhrAssetBundle } from "@khr3/core";
37
+ import { frontage, makeTerrain, roadFromPoints, type V3 } from "@khr3/roads";
22
38
 
23
39
  const VAULT = "https://khr3.optimuspi.workers.dev/assets";
24
40
 
41
+ interface ActiveSpawn {
42
+ readonly id: string;
43
+ readonly label: string;
44
+ readonly bundle: KhrAssetBundle;
45
+ }
46
+
47
+ function buildMileHighSpeedway(): V3[] {
48
+ const pts: V3[] = [];
49
+ const rx = 148;
50
+ const rz = 216;
51
+ const steps = 40;
52
+ for (let i = 0; i <= steps; i++) {
53
+ const theta = (i / steps) * Math.PI * 2;
54
+ const chicane = Math.sin(theta * 2) * 14;
55
+ const x = Math.sin(theta) * (rx + chicane);
56
+ const z = Math.cos(theta) * rz;
57
+ const y = 3.2 + Math.sin(theta * 2 - 0.5) * 4.5 + Math.cos(theta) * 1.4;
58
+ pts.push([x, y, z]);
59
+ }
60
+ return pts;
61
+ }
62
+
25
63
  export default function App() {
26
64
  const actorRef = useRef<EcctrlHandle>(null);
27
65
 
28
- const { road, heights, batches, radarSpec, r34Pose, actorPos, canopyPos, pumpPos } = useMemo(() => {
29
- const builtRoad = growRoad(42, {
30
- length: 540,
31
- halfWidth: 4.5,
32
- controlSpacing: 36,
33
- maxTurn: 0.24,
34
- maxGrade: 0.05,
35
- hilliness: 14,
36
- start: [0, 0, -168],
37
- });
38
- const settlement = planSettlement(builtRoad, "village", 42, { centerS: 210, setback: 2 });
66
+ const world = useMemo(() => {
67
+ const builtRoad = roadFromPoints(buildMileHighSpeedway(), 6.5, 2.0);
68
+ const settlement = planSettlement(builtRoad, "town", 42, { centerS: 120, setback: 3 });
39
69
  const c12Batches = instanceBatches(settlement.pieces);
40
- const shoulder = settlementShoulderWidth("village", 2);
70
+ const shoulder = settlementShoulderWidth("town", 3);
41
71
  const land = makeTerrain(42, builtRoad, {
42
- amplitude: 12,
43
- noise: { wavelength: 144, octaves: 4, gain: 0.5, lacunarity: 2 },
44
- maxSlope: 0.55,
72
+ amplitude: 14,
73
+ noise: { wavelength: 160, octaves: 4, gain: 0.5, lacunarity: 2 },
74
+ maxSlope: 0.52,
45
75
  minShoulder: shoulder,
46
- verge: 4,
76
+ verge: 5,
47
77
  });
48
- const hf = sampleRapierHeightfield(land, [-192, 0, -192], 384, 128);
49
- const spawnPose = computeSplineSpawnPose(builtRoad, 36, 0, -0.64, 0.03);
50
- const s0 = builtRoad.at(36);
78
+ const hf = sampleRapierHeightfield(land.height, -288, -288, 576, 576, 160);
79
+ const spawnPose = computeSplineSpawnPose(builtRoad, 24, 0, -0.64, 0.04);
80
+ const altPose = computeSplineSpawnPose(builtRoad, 48, 3.2, -0.64, 0.05);
81
+ const s0 = builtRoad.at(24);
51
82
  const lx = s0.left[0];
52
83
  const lz = s0.left[2];
53
- const lots = frontage(builtRoad, { spacing: 24, setback: 7 });
54
- const lotA = lots[0];
55
- const lotB = lots[1];
84
+ const lots = frontage(builtRoad, { spacing: 28, setback: 8 });
85
+ const clearLots = lots.filter((l) => Math.abs(l.s - 120) > 150);
86
+ const lotA = clearLots[0] ?? lots[0];
87
+ const lotB = clearLots[1] ?? lots[1];
56
88
  const spec = {
57
- range: 108,
89
+ range: 144,
58
90
  headingUp: true,
59
- roads: [radarRoadFromSpline(builtRoad, { id: "main", maxStep: 6 })],
91
+ roads: [radarRoadFromSpline(builtRoad, { id: "mile-high-speedway", maxStep: 8 })],
60
92
  footprints: radarFootprintsFromBatches(c12Batches),
61
93
  };
62
94
  return {
@@ -65,36 +97,119 @@ export default function App() {
65
97
  batches: c12Batches,
66
98
  radarSpec: spec,
67
99
  r34Pose: spawnPose,
100
+ altPose,
68
101
  actorPos: [
69
- s0.pos[0] + lx * 3.0,
102
+ s0.pos[0] + lx * 4.0,
70
103
  s0.pos[1] + ACTOR_GROUND_CLEARANCE,
71
- s0.pos[2] + lz * 3.0,
104
+ s0.pos[2] + lz * 4.0,
72
105
  ] as [number, number, number],
73
106
  canopyPos: lotA
74
107
  ? ([lotA.front[0], lotA.groundY, lotA.front[2]] as [number, number, number])
75
- : ([12, 0, -120] as [number, number, number]),
108
+ : ([18, 2, -160] as [number, number, number]),
76
109
  pumpPos: lotB
77
110
  ? ([lotB.front[0], lotB.groundY, lotB.front[2]] as [number, number, number])
78
- : ([12, 0, -96] as [number, number, number]),
111
+ : ([18, 2, -132] as [number, number, number]),
79
112
  };
80
113
  }, []);
81
114
 
115
+ const [category, setCategory] = useState<R2CarCategory | "All">("All");
116
+ const [search, setSearch] = useState("");
117
+ const [selectedR2Key, setSelectedR2Key] = useState("nissan_skyline_gt_r_v_spec_ii_r34_2002");
118
+ const [geneInput, setGeneInput] = useState("0xBFA4D5AC");
119
+ const [torqueIdx, setTorqueIdx] = useState(2);
120
+ const [gripIdx, setGripIdx] = useState(1);
121
+ const [evoGen, setEvoGen] = useState(0);
122
+ const [evoPop, setEvoPop] = useState<Uint32Array>(() => createInitialPopulation(777, 8, [0xbfa4d5ac]));
123
+ const [evoChampInfo, setEvoChampInfo] = useState("GEN 0 · 0xBFA4D5AC");
124
+
125
+ const tuneByte = useMemo(
126
+ () => encodeCurveLutByte(torqueIdx & 3, ((gripIdx & 3) << 2) & 0x0f),
127
+ [torqueIdx, gripIdx],
128
+ );
129
+ const tuneInfo = useMemo(() => decodeCurveLutByte(tuneByte), [tuneByte]);
130
+
131
+ const filteredCars = useMemo(
132
+ () => filterR2Cars({ category, query: search }).slice(0, 18),
133
+ [category, search],
134
+ );
135
+
136
+ const [activeCar, setActiveCar] = useState<ActiveSpawn>(() => {
137
+ const g = parseKolmogorovGene("0xBFA4D5AC") ?? 0xbfa4d5ac;
138
+ return {
139
+ id: "evo-starter",
140
+ label: `BoxCar ${formatKolmogorovGene(g)}`,
141
+ bundle: compileKolmogorovCarBundle(g, { tuneByte: 0x42 }),
142
+ };
143
+ });
144
+
145
+ const handleSpawnR2 = useCallback(
146
+ async (carKey: string) => {
147
+ setSelectedR2Key(carKey);
148
+ const res = await loadR2CarBundle(carKey, { tuneByteOverride: tuneByte });
149
+ setEvoChampInfo(
150
+ res.source === "r2"
151
+ ? `R2 LIVE · ${res.entry.name}`
152
+ : `PROC · ${res.entry.name} (${res.fallbackReason ?? "fallback"})`,
153
+ );
154
+ setActiveCar({
155
+ id: `r2-${res.entry.key}-${Date.now()}`,
156
+ label: res.entry.name,
157
+ bundle: res.bundle,
158
+ });
159
+ },
160
+ [tuneByte],
161
+ );
162
+
163
+ const handleSpawnGene = useCallback(
164
+ (geneStr: string) => {
165
+ const parsed = parseKolmogorovGene(geneStr) ?? 0xbfa4d5ac;
166
+ const hex = formatKolmogorovGene(parsed);
167
+ setGeneInput(hex);
168
+ setActiveCar({
169
+ id: `gene-${hex}-${Date.now()}`,
170
+ label: `Gene ${hex}`,
171
+ bundle: compileKolmogorovCarBundle(parsed, { tuneByte }),
172
+ });
173
+ },
174
+ [tuneByte],
175
+ );
176
+
177
+ const handleEvolve = useCallback(() => {
178
+ const res = runBoxCarTournament(evoPop, evoGen + 1, 777, { tuneByte, mutationRate: 0.12 });
179
+ setEvoGen(res.generation);
180
+ setEvoPop(res.nextGenes);
181
+ setGeneInput(res.championHex);
182
+ setEvoChampInfo(`GEN ${res.generation} · ${res.championHex} (${res.championFitness} pts)`);
183
+ setActiveCar({
184
+ id: `evo-${res.generation}-${res.championHex}`,
185
+ label: `Champ ${res.championHex}`,
186
+ bundle: compileKolmogorovCarBundle(res.championGene, { tuneByte }),
187
+ });
188
+ }, [evoPop, evoGen, tuneByte]);
189
+
82
190
  return (
83
191
  <>
84
192
  <Game skybox="day" dropSpawn>
85
- <Terrain heights={heights} segments={128} size={[384, 384]} />
86
- <RoadRibbon road={road} />
87
- <Settlement batches={batches} />
193
+ <Terrain heights={world.heights} segments={160} size={[576, 576]} color="#4a5842" />
194
+ <RoadRibbon road={world.road} />
195
+ <Settlement batches={world.batches} />
88
196
  <Vehicle
89
197
  id="r34"
90
198
  label="Skyline R34"
91
199
  src={`${VAULT}/cars/nissan_skyline_r34.glb`}
92
- position={r34Pose.position}
93
- quaternion={r34Pose.quaternion}
200
+ position={world.r34Pose.position}
201
+ quaternion={world.r34Pose.quaternion}
202
+ />
203
+ <Vehicle
204
+ id={activeCar.id}
205
+ label={activeCar.label}
206
+ bundle={activeCar.bundle}
207
+ position={world.altPose.position}
208
+ quaternion={world.altPose.quaternion}
94
209
  />
95
- <Prop id="canopy" src={`${VAULT}/city/gas-canopy-roof.glb`} position={canopyPos} fixed />
96
- <Prop id="pump" src={`${VAULT}/city/gas-pump-twin.glb`} position={pumpPos} fixed />
97
- <Actor ref={actorRef} position={actorPos} />
210
+ <Prop id="canopy" src={`${VAULT}/city/gas-canopy-roof.glb`} position={world.canopyPos} fixed />
211
+ <Prop id="pump" src={`${VAULT}/city/gas-pump-twin.glb`} position={world.pumpPos} fixed />
212
+ <Actor ref={actorRef} position={world.actorPos} />
98
213
  <Toolgun
99
214
  src={`${VAULT}/weapons/kolmogorov_pistol.glb`}
100
215
  actorRef={actorRef}
@@ -105,9 +220,203 @@ export default function App() {
105
220
  kind: "vehicle",
106
221
  }}
107
222
  />
223
+ <Hud />
108
224
  </Game>
109
- <Hud />
110
- <Radar spec={radarSpec} />
225
+
226
+ <aside
227
+ style={{
228
+ position: "fixed",
229
+ top: 12,
230
+ right: 12,
231
+ zIndex: 12,
232
+ width: 310,
233
+ display: "flex",
234
+ flexDirection: "column",
235
+ gap: 6,
236
+ padding: 9,
237
+ borderRadius: 2,
238
+ border: "1px solid oklch(27% 0.010 265)",
239
+ background: "oklch(16.5% 0.008 265 / 0.94)",
240
+ color: "oklch(94% 0.008 85)",
241
+ font: '500 11px/1.35 "IBM Plex Mono", ui-monospace, monospace',
242
+ fontVariantNumeric: "tabular-nums",
243
+ }}
244
+ >
245
+ <div style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
246
+ <span style={{ color: "oklch(80% 0.165 78)", fontWeight: 700 }}>MILE HIGH SPEEDWAY // 86 R2 + EVO</span>
247
+ <span style={{ color: "oklch(78% 0.135 205)" }}>[F] DRIVE</span>
248
+ </div>
249
+
250
+ <div style={{ display: "flex", gap: 4 }}>
251
+ <input
252
+ type="text"
253
+ value={search}
254
+ onChange={(e) => setSearch(e.target.value)}
255
+ placeholder="Search 86 R2 cars..."
256
+ style={{
257
+ flex: 1,
258
+ minWidth: 0,
259
+ padding: "4px 6px",
260
+ borderRadius: 2,
261
+ border: "1px solid oklch(27% 0.010 265)",
262
+ background: "oklch(21% 0.009 265)",
263
+ color: "oklch(94% 0.008 85)",
264
+ font: "inherit",
265
+ }}
266
+ />
267
+ <select
268
+ value={category}
269
+ onChange={(e) => setCategory(e.target.value as R2CarCategory | "All")}
270
+ style={{
271
+ width: 118,
272
+ padding: "4px 4px",
273
+ borderRadius: 2,
274
+ border: "1px solid oklch(27% 0.010 265)",
275
+ background: "oklch(21% 0.009 265)",
276
+ color: "oklch(94% 0.008 85)",
277
+ font: "inherit",
278
+ }}
279
+ >
280
+ <option value="All">All (86)</option>
281
+ {R2_CAR_CATEGORIES.map((c) => (
282
+ <option key={c} value={c}>
283
+ {c}
284
+ </option>
285
+ ))}
286
+ </select>
287
+ </div>
288
+
289
+ <div style={{ display: "flex", gap: 4 }}>
290
+ <select
291
+ value={selectedR2Key}
292
+ onChange={(e) => void handleSpawnR2(e.target.value)}
293
+ style={{
294
+ flex: 1,
295
+ minWidth: 0,
296
+ padding: "4px 6px",
297
+ borderRadius: 2,
298
+ border: "1px solid oklch(27% 0.010 265)",
299
+ background: "oklch(21% 0.009 265)",
300
+ color: "oklch(94% 0.008 85)",
301
+ font: "inherit",
302
+ }}
303
+ >
304
+ {filteredCars.map((c) => (
305
+ <option key={c.key} value={c.key}>
306
+ {c.year} {c.name} ({c.hp}hp)
307
+ </option>
308
+ ))}
309
+ </select>
310
+ <button
311
+ type="button"
312
+ onClick={() => void handleSpawnR2(selectedR2Key)}
313
+ style={{
314
+ padding: "4px 8px",
315
+ borderRadius: 2,
316
+ border: "1px solid oklch(80% 0.165 78)",
317
+ background: "oklch(21% 0.009 265)",
318
+ color: "oklch(80% 0.165 78)",
319
+ font: "inherit",
320
+ cursor: "pointer",
321
+ }}
322
+ >
323
+ SPAWN R2
324
+ </button>
325
+ </div>
326
+
327
+ <div style={{ borderTop: "1px solid oklch(27% 0.010 265)", paddingTop: 6, display: "flex", gap: 4 }}>
328
+ <input
329
+ type="text"
330
+ value={geneInput}
331
+ onChange={(e) => setGeneInput(e.target.value)}
332
+ style={{
333
+ width: 96,
334
+ padding: "4px 6px",
335
+ borderRadius: 2,
336
+ border: "1px solid oklch(27% 0.010 265)",
337
+ background: "oklch(21% 0.009 265)",
338
+ color: "oklch(79% 0.150 158)",
339
+ font: "inherit",
340
+ }}
341
+ />
342
+ <button
343
+ type="button"
344
+ onClick={() => handleSpawnGene(geneInput)}
345
+ style={{
346
+ padding: "4px 7px",
347
+ borderRadius: 2,
348
+ border: "1px solid oklch(27% 0.010 265)",
349
+ background: "oklch(21% 0.009 265)",
350
+ color: "oklch(94% 0.008 85)",
351
+ font: "inherit",
352
+ cursor: "pointer",
353
+ }}
354
+ >
355
+ GENE
356
+ </button>
357
+ <button
358
+ type="button"
359
+ onClick={handleEvolve}
360
+ style={{
361
+ flex: 1,
362
+ padding: "4px 7px",
363
+ borderRadius: 2,
364
+ border: "1px solid oklch(78% 0.135 205)",
365
+ background: "oklch(21% 0.009 265)",
366
+ color: "oklch(78% 0.135 205)",
367
+ font: "inherit",
368
+ cursor: "pointer",
369
+ }}
370
+ >
371
+ EVOLVE
372
+ </button>
373
+ </div>
374
+
375
+ <div style={{ display: "flex", gap: 4, alignItems: "center" }}>
376
+ <select
377
+ value={torqueIdx}
378
+ onChange={(e) => setTorqueIdx(Number(e.target.value))}
379
+ style={{
380
+ flex: 1,
381
+ padding: "3px 4px",
382
+ borderRadius: 2,
383
+ border: "1px solid oklch(27% 0.010 265)",
384
+ background: "oklch(21% 0.009 265)",
385
+ color: "oklch(94% 0.008 85)",
386
+ font: "inherit",
387
+ }}
388
+ >
389
+ <option value={0}>Torque: Nat-Asp</option>
390
+ <option value={1}>Torque: Crawler</option>
391
+ <option value={2}>Torque: Twin-Turbo</option>
392
+ <option value={3}>Torque: Screamer</option>
393
+ </select>
394
+ <select
395
+ value={gripIdx}
396
+ onChange={(e) => setGripIdx(Number(e.target.value))}
397
+ style={{
398
+ flex: 1,
399
+ padding: "3px 4px",
400
+ borderRadius: 2,
401
+ border: "1px solid oklch(27% 0.010 265)",
402
+ background: "oklch(21% 0.009 265)",
403
+ color: "oklch(94% 0.008 85)",
404
+ font: "inherit",
405
+ }}
406
+ >
407
+ <option value={0}>Grip: Street 1.0x</option>
408
+ <option value={1}>Grip: Semi-Slick 1.12x</option>
409
+ <option value={2}>Grip: Track 1.24x</option>
410
+ <option value={3}>Grip: Gravel 0.86x</option>
411
+ </select>
412
+ </div>
413
+
414
+ <div style={{ color: "oklch(66% 0.010 265)", fontSize: 10 }}>
415
+ {evoChampInfo} · LUT 0x{tuneByte.toString(16).toUpperCase().padStart(2, "0")} ({tuneInfo.tractionLabel})
416
+ </div>
417
+ </aside>
418
+
419
+ <Radar spec={world.radarSpec} />
111
420
  </>
112
421
  );
113
422
  }
@@ -1,9 +1,9 @@
1
1
  import react from "@vitejs/plugin-react";
2
2
  import { defineConfig } from "vite";
3
- import { KOLMO_SINGLETON_DEDUPE } from "@pinkaphant/kolmo/vite";
3
+ import { KOLMO_SINGLETON_DEDUPE, kolmoMcpBridgePlugin } from "@pinkaphant/kolmo/vite";
4
4
 
5
5
  export default defineConfig({
6
- plugins: [react()],
6
+ plugins: [react(), kolmoMcpBridgePlugin()],
7
7
  resolve: {
8
8
  dedupe: KOLMO_SINGLETON_DEDUPE,
9
9
  },
@@ -0,0 +1,13 @@
1
+ {
2
+ "mcpServers": {
3
+ "kolmo-studio": {
4
+ "command": "npx",
5
+ "args": [
6
+ "kolmo-mcp"
7
+ ],
8
+ "env": {
9
+ "KOLMO_BRIDGE_URL": "http://127.0.0.1:5173/__kolmo_mcp"
10
+ }
11
+ }
12
+ }
13
+ }
@@ -9,13 +9,14 @@
9
9
  "typecheck": "tsc --noEmit",
10
10
  "build": "tsc --noEmit && vite build",
11
11
  "preview": "vite preview",
12
- "test": "node --import tsx --test \"src/**/*.test.ts\""
12
+ "test": "node --import tsx --test \"src/**/*.test.ts\"",
13
+ "mcp": "kolmo-mcp"
13
14
  },
14
15
  "dependencies": {
15
16
  "@dimforge/rapier3d-compat": "0.19.2",
16
- "@khr3/core": "^0.2.21",
17
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
18
- "@pinkaphant/kolmo": "^0.15.1",
17
+ "@khr3/core": "^0.2.27",
18
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
19
+ "@pinkaphant/kolmo": "^0.22.0",
19
20
  "@react-three/drei": "^10.7.7",
20
21
  "@react-three/fiber": "^9.6.1",
21
22
  "@react-three/rapier": "^2.2.0",
@@ -25,7 +26,7 @@
25
26
  },
26
27
  "overrides": {
27
28
  "@dimforge/rapier3d-compat": "0.19.2",
28
- "@pinkaphant/ecctrl": "2.0.4-beta.11",
29
+ "@pinkaphant/ecctrl": "2.0.4-beta.13",
29
30
  "three": "0.184.0"
30
31
  },
31
32
  "devDependencies": {
@@ -1,16 +1,10 @@
1
1
  import react from "@vitejs/plugin-react";
2
2
  import { defineConfig } from "vite";
3
- import { KOLMO_SINGLETON_DEDUPE } from "@pinkaphant/kolmo/vite";
3
+ import { KOLMO_SINGLETON_DEDUPE, kolmoMcpBridgePlugin } from "@pinkaphant/kolmo/vite";
4
4
 
5
5
  export default defineConfig({
6
- plugins: [react()],
6
+ plugins: [react(), kolmoMcpBridgePlugin()],
7
7
  resolve: {
8
8
  dedupe: KOLMO_SINGLETON_DEDUPE,
9
9
  },
10
- optimizeDeps: {
11
- exclude: ["@dimforge/rapier3d-compat"],
12
- },
13
- build: {
14
- chunkSizeWarningLimit: 2600,
15
- },
16
10
  });