@multitapio/multitap 0.0.14 → 0.0.16

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 (68) hide show
  1. package/dist/channel.d.ts.map +1 -1
  2. package/dist/codegen/config.d.ts +1 -0
  3. package/dist/codegen/config.d.ts.map +1 -1
  4. package/dist/codegen/rust.d.ts.map +1 -1
  5. package/dist/executor.d.ts +4 -2
  6. package/dist/executor.d.ts.map +1 -1
  7. package/dist/init-data.d.ts +23 -2
  8. package/dist/init-data.d.ts.map +1 -1
  9. package/dist/input-codec.d.ts +4 -3
  10. package/dist/input-codec.d.ts.map +1 -1
  11. package/dist/lib.d.ts +2 -0
  12. package/dist/lib.d.ts.map +1 -1
  13. package/dist/lib.js +442 -66
  14. package/dist/loader.d.ts +39 -0
  15. package/dist/loader.d.ts.map +1 -0
  16. package/dist/rollback.d.ts +0 -5
  17. package/dist/rollback.d.ts.map +1 -1
  18. package/dist/schema.d.ts +10 -0
  19. package/dist/schema.d.ts.map +1 -1
  20. package/dist/session.d.ts +3 -4
  21. package/dist/session.d.ts.map +1 -1
  22. package/dist/test-session.d.ts +17 -2
  23. package/dist/test-session.d.ts.map +1 -1
  24. package/dist/types/channel.d.ts.map +1 -1
  25. package/dist/types/codegen/config.d.ts +1 -0
  26. package/dist/types/codegen/config.d.ts.map +1 -1
  27. package/dist/types/codegen/rust.d.ts.map +1 -1
  28. package/dist/types/executor.d.ts +4 -2
  29. package/dist/types/executor.d.ts.map +1 -1
  30. package/dist/types/init-data.d.ts +23 -2
  31. package/dist/types/init-data.d.ts.map +1 -1
  32. package/dist/types/input-codec.d.ts +4 -3
  33. package/dist/types/input-codec.d.ts.map +1 -1
  34. package/dist/types/lib.d.ts +2 -0
  35. package/dist/types/lib.d.ts.map +1 -1
  36. package/dist/types/loader.d.ts +39 -0
  37. package/dist/types/loader.d.ts.map +1 -0
  38. package/dist/types/rollback.d.ts +0 -5
  39. package/dist/types/rollback.d.ts.map +1 -1
  40. package/dist/types/schema.d.ts +10 -0
  41. package/dist/types/schema.d.ts.map +1 -1
  42. package/dist/types/session.d.ts +3 -4
  43. package/dist/types/session.d.ts.map +1 -1
  44. package/dist/types/test-session.d.ts +17 -2
  45. package/dist/types/test-session.d.ts.map +1 -1
  46. package/dist/types/vite/codegen-runner.d.ts +11 -0
  47. package/dist/types/vite/codegen-runner.d.ts.map +1 -1
  48. package/dist/types/vite/plugin.d.ts +3 -14
  49. package/dist/types/vite/plugin.d.ts.map +1 -1
  50. package/dist/types/vite/types.d.ts +73 -0
  51. package/dist/types/vite/types.d.ts.map +1 -1
  52. package/dist/vite/codegen-runner.d.ts +11 -0
  53. package/dist/vite/codegen-runner.d.ts.map +1 -1
  54. package/dist/vite/index.js +2417 -124
  55. package/dist/vite/plugin.d.ts +3 -14
  56. package/dist/vite/plugin.d.ts.map +1 -1
  57. package/dist/vite/types.d.ts +73 -0
  58. package/dist/vite/types.d.ts.map +1 -1
  59. package/package.json +3 -2
  60. package/dist/diagnostics/index.d.ts +0 -12
  61. package/dist/diagnostics/index.d.ts.map +0 -1
  62. package/dist/diagnostics.js +0 -7192
  63. package/dist/types/diagnostics/index.d.ts +0 -12
  64. package/dist/types/diagnostics/index.d.ts.map +0 -1
  65. package/dist/types/vite/module-builder.d.ts +0 -29
  66. package/dist/types/vite/module-builder.d.ts.map +0 -1
  67. package/dist/vite/module-builder.d.ts +0 -29
  68. package/dist/vite/module-builder.d.ts.map +0 -1
@@ -1,12 +0,0 @@
1
- /**
2
- * Diagnostics client for e2e testing.
3
- *
4
- * Minimal browser client that:
5
- * - Parses URL params (connectionURL, serverCertHash, relayPubKey)
6
- * - Creates a Session with zero plugins (channel-only mode)
7
- * - Generates random inputs on 50ms interval
8
- * - Logs SYNC ticks to console for conformance testing
9
- * - Exits when session duration elapses
10
- */
11
- export {};
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/diagnostics/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
@@ -1,29 +0,0 @@
1
- /**
2
- * Virtual module generation for the Multitap Vite plugin.
3
- *
4
- * Generates the JavaScript module that exports the config object
5
- * with embedded WASM bytes and compiled schemas.
6
- *
7
- * Ported from sdk/go/build/build_multitap.go generateJSModule()
8
- *
9
- * @module vite/module-builder
10
- */
11
- import type { Config } from '../codegen/config';
12
- import type { CompiledStateSchema, CompiledInitDataSchema } from '../schema';
13
- import type { WasmCompileResult } from './types';
14
- export interface BuildModuleOptions {
15
- config: Config;
16
- plugins: WasmCompileResult[];
17
- compiledState: CompiledStateSchema;
18
- compiledInitData?: CompiledInitDataSchema | undefined;
19
- }
20
- /**
21
- * Build the virtual module JavaScript source code.
22
- *
23
- * Generates a module that exports:
24
- * - appID, tickRate, maxTicks, maxParticipants
25
- * - plugins array with WASM bytes
26
- * - schema object with compiled state and raw input
27
- */
28
- export declare function buildVirtualModule(options: BuildModuleOptions): string;
29
- //# sourceMappingURL=module-builder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-builder.d.ts","sourceRoot":"","sources":["../../../src/vite/module-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgEjD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,aAAa,EAAE,mBAAmB,CAAC;IACnC,gBAAgB,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;CACvD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CA6CtE"}
@@ -1,29 +0,0 @@
1
- /**
2
- * Virtual module generation for the Multitap Vite plugin.
3
- *
4
- * Generates the JavaScript module that exports the config object
5
- * with embedded WASM bytes and compiled schemas.
6
- *
7
- * Ported from sdk/go/build/build_multitap.go generateJSModule()
8
- *
9
- * @module vite/module-builder
10
- */
11
- import type { Config } from '../codegen/config';
12
- import type { CompiledStateSchema, CompiledInitDataSchema } from '../schema';
13
- import type { WasmCompileResult } from './types';
14
- export interface BuildModuleOptions {
15
- config: Config;
16
- plugins: WasmCompileResult[];
17
- compiledState: CompiledStateSchema;
18
- compiledInitData?: CompiledInitDataSchema | undefined;
19
- }
20
- /**
21
- * Build the virtual module JavaScript source code.
22
- *
23
- * Generates a module that exports:
24
- * - appID, tickRate, maxTicks, maxParticipants
25
- * - plugins array with WASM bytes
26
- * - schema object with compiled state and raw input
27
- */
28
- export declare function buildVirtualModule(options: BuildModuleOptions): string;
29
- //# sourceMappingURL=module-builder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-builder.d.ts","sourceRoot":"","sources":["../../../src/vite/module-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgEjD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,aAAa,EAAE,mBAAmB,CAAC;IACnC,gBAAgB,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;CACvD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CA6CtE"}