@downdraft/engine 0.1.2-alpha.5 → 0.2.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.
Files changed (45) hide show
  1. package/app/src/renderer/bootstrap.ts +1 -1
  2. package/app/src/renderer/feature-log.ts +1 -1
  3. package/core/src/input/local-player-manager.ts +2 -2
  4. package/core/src/util/logger.ts +2 -2
  5. package/core/src/worker/sim-worker-base.ts +1 -1
  6. package/dist/.dd-manifest.json +845 -845
  7. package/dist/app/src/renderer/bootstrap.js +1 -1
  8. package/dist/app/src/renderer/feature-log.js +1 -1
  9. package/dist/core/src/input/local-player-manager.js +2 -2
  10. package/dist/core/src/util/logger.js +2 -2
  11. package/dist/core/src/worker/sim-worker-base.js +1 -1
  12. package/dist/libraries/gamepad/src/feed-input.js +1 -1
  13. package/dist/libraries/gamepad/src/hub.js +2 -2
  14. package/dist/libraries/gamepad/src/source-sab.js +2 -2
  15. package/dist/libraries/gamepad/src/sysfs-enrich.js +2 -2
  16. package/dist/libraries/gpu-kernels/src/kernel.js +1 -1
  17. package/dist/libraries/gpu-kernels/src/transpile.js +1 -1
  18. package/dist/libraries/html-ui-kit/src/nav/nav-controller.js +1 -1
  19. package/dist/libraries/html-ui-kit/src/nav/nav-input.js +2 -2
  20. package/dist/libraries/networking/src/discovery.js +8 -8
  21. package/dist/libraries/persistence/src/file-save-store.js +5 -5
  22. package/dist/libraries/persistence/src/opfs-save-store.js +2 -2
  23. package/dist/modules/controller-ui/src/index.js +1 -1
  24. package/dist/modules/devtools/src/blitz/host.js +3 -3
  25. package/dist/modules/devtools/src/blitz/panels/gpu.js +1 -1
  26. package/dist/modules/devtools/src/blitz/panels/performance.js +2 -2
  27. package/dist/modules/html-ui/src/jsx-runtime.js +1 -1
  28. package/libraries/gamepad/src/feed-input.ts +1 -1
  29. package/libraries/gamepad/src/hub.ts +2 -2
  30. package/libraries/gamepad/src/source-sab.ts +2 -2
  31. package/libraries/gamepad/src/sysfs-enrich.ts +2 -2
  32. package/libraries/gpu-kernels/src/kernel.ts +2 -2
  33. package/libraries/gpu-kernels/src/transpile.ts +1 -1
  34. package/libraries/html-ui-kit/src/nav/nav-controller.ts +1 -1
  35. package/libraries/html-ui-kit/src/nav/nav-input.ts +2 -2
  36. package/libraries/networking/src/discovery.ts +8 -8
  37. package/libraries/persistence/src/file-save-store.ts +5 -5
  38. package/libraries/persistence/src/opfs-save-store.ts +2 -2
  39. package/libraries/physics-rapier/src/realm-worker-script.ts +1 -1
  40. package/modules/controller-ui/src/index.ts +1 -1
  41. package/modules/devtools/src/blitz/host.ts +3 -3
  42. package/modules/devtools/src/blitz/panels/gpu.ts +1 -1
  43. package/modules/devtools/src/blitz/panels/performance.ts +2 -2
  44. package/modules/html-ui/src/jsx-runtime.ts +1 -1
  45. package/package.json +2 -2
@@ -529,7 +529,7 @@ async function wireDevtoolsFrontend(
529
529
  }
530
530
  });
531
531
  const evalNames: string[] = ["main"];
532
- for (const wh of workerHosts ?? []) {
532
+ for (const wh of (workerHosts ?? []).values()) {
533
533
  const evalFn = wh?.proxy?.__devtoolsEval;
534
534
  if (typeof evalFn === "function" && wh.prefix) {
535
535
  host.registerThreadEval(wh.prefix, (expr) => evalFn.call(wh.proxy, expr));
@@ -151,7 +151,7 @@ export async function getCombinedFeatureLog(): Promise<CombinedFeatureLog> {
151
151
  // Single process — merge render fields (wgpu/disp/sab/wk/plug) into the
152
152
  // host line. Host fields win on overlap (v, mode, cpuCores).
153
153
  const host: FeatureLogData | null = hostLog || render
154
- ? { ...(render ?? {}), ...(hostLog ?? {}), scope: "host" } as FeatureLogData
154
+ ? { ...render, ...hostLog, scope: "host" } as FeatureLogData
155
155
  : null;
156
156
  return {
157
157
  host,
@@ -140,11 +140,11 @@ export class LocalPlayerManager {
140
140
  }
141
141
 
142
142
  private emitConnect(device: InputDevice): void {
143
- for (const cb of this.connectCallbacks) cb(device);
143
+ for (const cb of this.connectCallbacks.values()) cb(device);
144
144
  }
145
145
 
146
146
  private emitDisconnect(device: InputDevice): void {
147
- for (const cb of this.disconnectCallbacks) cb(device);
147
+ for (const cb of this.disconnectCallbacks.values()) cb(device);
148
148
  }
149
149
 
150
150
  startListening(): void {
@@ -272,12 +272,12 @@ function highlightJson(json: string): string {
272
272
  out += jsonColors().string + str + reset;
273
273
  }
274
274
  i = end + 1;
275
- } else if (/[\{\}\[\]]/.test(ch)) {
275
+ } else if (/[{\}[\]]/.test(ch)) {
276
276
  out += jsonColors().brace + ch + reset;
277
277
  i++;
278
278
  } else if (/\d/.test(ch) || (ch === '-' && /\d/.test(json[i + 1]))) {
279
279
  let end = i + 1;
280
- while (end < json.length && /[\d.eE+\-]/.test(json[end])) end++;
280
+ while (end < json.length && /[\d.eE+-]/.test(json[end])) end++;
281
281
  out += jsonColors().number + json.slice(i, end) + reset;
282
282
  i = end;
283
283
  } else if (json.slice(i, i + 4) === 'true') {
@@ -898,7 +898,7 @@ export function createSimWorker(opts: CreateSimWorkerOptions): SimWorkerControl
898
898
  : {}),
899
899
  };
900
900
 
901
- const api: WorkerApi = { ...standardApi, ...(opts.extraApi ?? {}) };
901
+ const api: WorkerApi = { ...standardApi, ...opts.extraApi };
902
902
 
903
903
  // Optionally wrap the API before exposing (e.g. with exposeDevToolsApi
904
904
  // to add devtools + profiling RPC methods).