@series-inc/rundot-syncplay 6.0.0-rc.18 → 6.0.0-rc.19

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 (88) hide show
  1. package/core/deterministic-math.d.ts +75 -1
  2. package/core/native/instance_ledger.hpp +1074 -0
  3. package/core/native/legacy_checkpoint_ids.hpp +107 -0
  4. package/core/native/physics/geometry_memory.hpp +397 -11
  5. package/core/native/physics/geometry_store.cpp +7 -1
  6. package/core/native/physics/material_pose.hpp +544 -308
  7. package/core/native/physics/physics.cpp +130 -119
  8. package/core/native/physics/world.cpp +818 -162
  9. package/core/native/physics/world.hpp +310 -19
  10. package/core/native/physics/world_abi.cpp +928 -70
  11. package/core/native/physics/world_abi.hpp +122 -0
  12. package/core/native/physics2d/checkpoint_memory.hpp +349 -0
  13. package/core/native/physics2d/joints.cpp +14 -23
  14. package/core/native/physics2d/memory_private.hpp +125 -0
  15. package/core/native/physics2d/owned_abi.cpp +436 -65
  16. package/core/native/physics2d/owned_abi.hpp +100 -3
  17. package/core/native/physics2d/physics2d.cpp +46 -51
  18. package/core/native/physics2d/world.cpp +797 -359
  19. package/core/native/physics2d/world.hpp +85 -7
  20. package/core/physics2d-owned.d.ts +1 -0
  21. package/core/runtime.d.ts +106 -14
  22. package/core/scripts/build-wasm-physics.mjs +41 -5
  23. package/core/src/kinetix-deterministic-math.mjs +513 -27
  24. package/core/src/kinetix-owned-runtime-adapter.mjs +727 -0
  25. package/core/src/kinetix-runtime-adapter-utils.mjs +43 -2
  26. package/core/src/kinetix-runtime-contract.mjs +36 -0
  27. package/core/src/physics/abi-constants.mjs +1 -1
  28. package/core/src/physics/physics-wasm-module.generated.mjs +4 -4
  29. package/core/src/physics/world.mjs +7 -4
  30. package/core/src/physics2d/owned-transport.mjs +7 -3
  31. package/core/src/physics2d/owned-world.mjs +3 -0
  32. package/core/src/physics2d/physics2d-wasm-module.generated.mjs +6 -6
  33. package/core/src/runtime.mjs +9 -0
  34. package/core/src/shared/sha256.mjs +101 -67
  35. package/core/world.d.ts +1 -0
  36. package/dist/browser.d.ts +5 -4
  37. package/dist/browser.js +3 -2
  38. package/dist/checksum-policy.d.ts +10 -0
  39. package/dist/checksum-policy.js +14 -0
  40. package/dist/compat/v5.d.ts +5 -1
  41. package/dist/compat/v5.js +52 -9
  42. package/dist/creator.d.ts +7 -6
  43. package/dist/creator.js +4 -3
  44. package/dist/index.d.ts +6 -3
  45. package/dist/index.js +4 -2
  46. package/dist/instant-replay.d.ts +27 -2
  47. package/dist/instant-replay.js +91 -16
  48. package/dist/match-log.d.ts +21 -4
  49. package/dist/match-log.js +92 -9
  50. package/dist/math.d.ts +2 -0
  51. package/dist/math.js +1 -0
  52. package/dist/networked-client.d.ts +5 -0
  53. package/dist/networked-client.js +320 -100
  54. package/dist/node.d.ts +3 -2
  55. package/dist/node.js +2 -1
  56. package/dist/physics/2d.d.ts +1 -0
  57. package/dist/physics/2d.js +5 -1
  58. package/dist/physics/3d.d.ts +96 -109
  59. package/dist/physics/3d.js +13 -6
  60. package/dist/physics/units.d.ts +37 -0
  61. package/dist/physics/units.js +34 -0
  62. package/dist/replay.d.ts +13 -0
  63. package/dist/replay.js +88 -61
  64. package/dist/runner.d.ts +9 -1
  65. package/dist/runner.js +449 -84
  66. package/dist/runtime-cleanup.d.ts +54 -0
  67. package/dist/runtime-cleanup.js +266 -0
  68. package/dist/runtime-lease.d.ts +11 -1
  69. package/dist/runtime-lease.js +23 -10
  70. package/dist/runtime-session.d.ts +6 -1
  71. package/dist/runtime-session.js +194 -59
  72. package/dist/schema-codegen.js +3 -0
  73. package/dist/schema-dsl-binary.d.ts +10 -4
  74. package/dist/schema-dsl-binary.js +375 -76
  75. package/dist/sdk-session.js +2 -2
  76. package/dist/session-snapshot.d.ts +2 -0
  77. package/dist/session-snapshot.js +2 -0
  78. package/dist/synctest.d.ts +9 -0
  79. package/dist/synctest.js +106 -17
  80. package/dist/testing-network.d.ts +2 -0
  81. package/dist/testing-network.js +122 -18
  82. package/dist/testing.d.ts +27 -6
  83. package/dist/testing.js +297 -62
  84. package/dist/tools/index.d.ts +3 -2
  85. package/dist/tools/index.js +3 -2
  86. package/dist/tools/module-certification.d.ts +6 -0
  87. package/dist/tools/module-certification.js +26 -2
  88. package/package.json +2 -2
@@ -1,2 +1,76 @@
1
+ export declare const DETERMINISTIC_MATH_PROFILE: string;
2
+ export declare const DETERMINISTIC_MATH_VERSION: string;
1
3
  export declare const DETERMINISTIC_MATH_SOURCE: string;
2
- export declare function installDeterministicMath(): void;
4
+ export declare const DETERMINISTIC_MATH_FUNCTIONS: readonly string[];
5
+
6
+ export interface DeterministicMathKnownAnswer {
7
+ readonly name: string;
8
+ readonly args: readonly number[];
9
+ readonly hex: string;
10
+ }
11
+
12
+ export declare const DETERMINISTIC_MATH_KNOWN_ANSWERS: readonly DeterministicMathKnownAnswer[];
13
+
14
+ export type DeterministicMathConflictReason =
15
+ | 'profile_mismatch'
16
+ | 'version_mismatch'
17
+ | 'function_replaced'
18
+ | 'function_provenance_mismatch'
19
+ | 'legacy_marker_mismatch'
20
+ | 'installation_failed';
21
+
22
+ export interface DeterministicMathConflictErrorOptions {
23
+ code?: string;
24
+ expectedProfile?: string;
25
+ installedProfile?: string;
26
+ expectedVersion?: string;
27
+ installedVersion?: string;
28
+ reason?: DeterministicMathConflictReason | string;
29
+ }
30
+
31
+ export declare class DeterministicMathConflictError extends Error {
32
+ readonly code: string;
33
+ readonly expectedProfile?: string;
34
+ readonly installedProfile?: string;
35
+ readonly expectedVersion?: string;
36
+ readonly installedVersion?: string;
37
+ readonly reason?: DeterministicMathConflictReason | string;
38
+ constructor(message: string, options?: DeterministicMathConflictErrorOptions);
39
+ }
40
+
41
+ export interface DeterministicMathCheckOptions {
42
+ readonly profile?: string;
43
+ readonly version?: string;
44
+ readonly target?: typeof globalThis | Record<string, unknown>;
45
+ }
46
+
47
+ export interface DeterministicMathInstallOptions {
48
+ readonly profile?: string;
49
+ readonly version?: string;
50
+ readonly target?: typeof globalThis | Record<string, unknown>;
51
+ }
52
+
53
+ export interface DeterministicMathAttestation {
54
+ readonly version: string;
55
+ readonly profile: string;
56
+ readonly functions: Readonly<Record<string, unknown>>;
57
+ }
58
+
59
+ export declare function verifyDeterministicMathKnownAnswers(targetMath: unknown): boolean;
60
+
61
+ export declare function isDeterministicMathInstalled(
62
+ targetOrOptions?: typeof globalThis | DeterministicMathCheckOptions | string,
63
+ ): boolean;
64
+
65
+ export declare function installDeterministicMath(
66
+ targetOrOptions?: typeof globalThis | DeterministicMathInstallOptions | string,
67
+ ): void;
68
+
69
+ export declare function ensureDeterministicMathInstalled(
70
+ options?: DeterministicMathInstallOptions | string,
71
+ ): void;
72
+
73
+ export declare function createInitialStateWithDeterministicMath<T>(
74
+ factory: () => T,
75
+ options?: DeterministicMathInstallOptions | string,
76
+ ): T;