@standardagents/code-web 0.14.55-canary.5ba581 → 0.14.57-canary.a26698

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 (37) hide show
  1. package/README.md +9 -1
  2. package/dist/build.json +1 -1
  3. package/dist/licenses/jco-transpile.txt +220 -0
  4. package/dist/manifest.json +1 -1
  5. package/dist/manifest.sig +1 -1
  6. package/dist/pkg/standard_web.d.ts +57 -12
  7. package/dist/pkg/standard_web.js +314 -20
  8. package/dist/pkg/standard_web_bg.wasm +0 -0
  9. package/dist/pkg/standard_web_bg.wasm.d.ts +18 -12
  10. package/dist/plugins/clock-cells/clock_cells.core.wasm +0 -0
  11. package/dist/plugins/clock-cells/clock_cells.wasm +0 -0
  12. package/dist/plugins/clock-cells/standard-plugin.json +11 -0
  13. package/dist/plugins/host/transpile.js +51 -0
  14. package/dist/plugins/host/ui-jspi.js +14851 -0
  15. package/dist/plugins/host/ui.core2.wasm +0 -0
  16. package/dist/plugins/host/ui.core3.wasm +0 -0
  17. package/dist/plugins/host/ui.js +14675 -0
  18. package/dist/plugins/host/world.js +172 -0
  19. package/dist/plugins/jco/cli.js +141 -0
  20. package/dist/plugins/jco/common.js +16 -0
  21. package/dist/plugins/jco/config.js +7 -0
  22. package/dist/plugins/jco/environment.js +24 -0
  23. package/dist/plugins/jco/filesystem.js +339 -0
  24. package/dist/plugins/jco/in-memory-filesystem.js +620 -0
  25. package/dist/plugins/jco/io.js +366 -0
  26. package/dist/plugins/jco/js-component-bindgen-component.core.wasm +0 -0
  27. package/dist/plugins/jco/js-component-bindgen-component.core2.wasm +0 -0
  28. package/dist/plugins/jco/js-component-bindgen-component.js +14272 -0
  29. package/dist/plugins/jco/opfs-filesystem.js +245 -0
  30. package/dist/plugins/jco/random.js +51 -0
  31. package/dist/plugins/plasma-pixels/plasma_pixels.core.wasm +0 -0
  32. package/dist/plugins/plasma-pixels/plasma_pixels.wasm +0 -0
  33. package/dist/plugins/plasma-pixels/standard-plugin.json +11 -0
  34. package/dist/plugins/runtime.js +1044 -0
  35. package/dist/plugins/samples.json +81 -0
  36. package/dist/plugins/worker.js +411 -0
  37. package/package.json +8 -2
@@ -109,6 +109,42 @@ export class Session {
109
109
  const ret = wasm.session_columns(this.__wbg_ptr);
110
110
  return ret;
111
111
  }
112
+ /**
113
+ * Drives the demo's fake account: `install` packs sample `id` as a new
114
+ * version and installs it (an update when it runs already; returns
115
+ * the package hash), `uninstall` removes it.
116
+ * @param {string} op
117
+ * @param {string} id
118
+ * @returns {string}
119
+ */
120
+ fake_account(op, id) {
121
+ let deferred4_0;
122
+ let deferred4_1;
123
+ try {
124
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
125
+ const ptr0 = passStringToWasm0(op, wasm.__wbindgen_export, wasm.__wbindgen_export2);
126
+ const len0 = WASM_VECTOR_LEN;
127
+ const ptr1 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
128
+ const len1 = WASM_VECTOR_LEN;
129
+ wasm.session_fake_account(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
130
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
131
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
132
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
133
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
134
+ var ptr3 = r0;
135
+ var len3 = r1;
136
+ if (r3) {
137
+ ptr3 = 0; len3 = 0;
138
+ throw takeObject(r2);
139
+ }
140
+ deferred4_0 = ptr3;
141
+ deferred4_1 = len3;
142
+ return getStringFromWasm0(ptr3, len3);
143
+ } finally {
144
+ wasm.__wbindgen_add_to_stack_pointer(16);
145
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
146
+ }
147
+ }
112
148
  /**
113
149
  * @param {boolean} focused
114
150
  */
@@ -233,6 +269,28 @@ export class Session {
233
269
  wasm.__wbindgen_add_to_stack_pointer(16);
234
270
  }
235
271
  }
272
+ /**
273
+ * The plugin counters since the last call, as JSON, for measurements:
274
+ * per plugin its commits, dirty area and `frame()` calls and time, and
275
+ * the viewer's sampling count and cost.
276
+ * @returns {string | undefined}
277
+ */
278
+ plugin_trace() {
279
+ try {
280
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
281
+ wasm.session_plugin_trace(retptr, this.__wbg_ptr);
282
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
283
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
284
+ let v1;
285
+ if (r0 !== 0) {
286
+ v1 = getStringFromWasm0(r0, r1);
287
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
288
+ }
289
+ return v1;
290
+ } finally {
291
+ wasm.__wbindgen_add_to_stack_pointer(16);
292
+ }
293
+ }
236
294
  /**
237
295
  * `action` is 0 down, 1 up, 2 move; `x` and `y` are device pixels
238
296
  * relative to the canvas.
@@ -282,6 +340,78 @@ export class Session {
282
340
  const ret = wasm.session_rows(this.__wbg_ptr);
283
341
  return ret;
284
342
  }
343
+ /**
344
+ * The demo's sample plugins (the site's call before account plugins).
345
+ * @param {string} base
346
+ * @param {string | null} [stage]
347
+ */
348
+ start_demo_plugins(base, stage) {
349
+ try {
350
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
351
+ const ptr0 = passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
352
+ const len0 = WASM_VECTOR_LEN;
353
+ var ptr1 = isLikeNone(stage) ? 0 : passStringToWasm0(stage, wasm.__wbindgen_export, wasm.__wbindgen_export2);
354
+ var len1 = WASM_VECTOR_LEN;
355
+ wasm.session_start_demo_plugins(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
356
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
357
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
358
+ if (r1) {
359
+ throw takeObject(r0);
360
+ }
361
+ } finally {
362
+ wasm.__wbindgen_add_to_stack_pointer(16);
363
+ }
364
+ }
365
+ /**
366
+ * The demo viewer with a fake account instead of its samples: the
367
+ * installed-plugin path end to end (packages by hash, verification,
368
+ * the in-viewer transpile, sessions, updates) against a stand-in room
369
+ * that installs only packages it packs from this bundle's own samples
370
+ * ([`Self::fake_account`]). A signed-in session refuses.
371
+ * @param {string} base
372
+ */
373
+ start_fake_account_plugins(base) {
374
+ try {
375
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
376
+ const ptr0 = passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
377
+ const len0 = WASM_VECTOR_LEN;
378
+ wasm.session_start_fake_account_plugins(retptr, this.__wbg_ptr, ptr0, len0);
379
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
380
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
381
+ if (r1) {
382
+ throw takeObject(r0);
383
+ }
384
+ } finally {
385
+ wasm.__wbindgen_add_to_stack_pointer(16);
386
+ }
387
+ }
388
+ /**
389
+ * Runs this session's plugins after the first frame: in the demo the
390
+ * sample plugins this bundle carries, signed in the account's
391
+ * installed plugins. `base` is the bundle root the page loaded this
392
+ * runtime from (the site's verified `/terminal/_web/<version>/`); every
393
+ * Worker, and the reference glue it links through, comes from there.
394
+ * `stage` is a plugin whose stage opens once it is loaded.
395
+ * @param {string} base
396
+ * @param {string | null} [stage]
397
+ */
398
+ start_plugins(base, stage) {
399
+ try {
400
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
401
+ const ptr0 = passStringToWasm0(base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
402
+ const len0 = WASM_VECTOR_LEN;
403
+ var ptr1 = isLikeNone(stage) ? 0 : passStringToWasm0(stage, wasm.__wbindgen_export, wasm.__wbindgen_export2);
404
+ var len1 = WASM_VECTOR_LEN;
405
+ wasm.session_start_plugins(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
406
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
407
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
408
+ if (r1) {
409
+ throw takeObject(r0);
410
+ }
411
+ } finally {
412
+ wasm.__wbindgen_add_to_stack_pointer(16);
413
+ }
414
+ }
285
415
  /**
286
416
  * Text copied since the last call. The page writes it to the system
287
417
  * clipboard from inside the event handler that produced it.
@@ -329,6 +459,28 @@ export class Session {
329
459
  }
330
460
  if (Symbol.dispose) Session.prototype[Symbol.dispose] = Session.prototype.free;
331
461
 
462
+ /**
463
+ * The backend profile this build was signed for, as the signed web
464
+ * manifest's `backendProfile` carries it: `null` for production.
465
+ * @returns {string}
466
+ */
467
+ export function backend_profile() {
468
+ let deferred1_0;
469
+ let deferred1_1;
470
+ try {
471
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
472
+ wasm.backend_profile(retptr);
473
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
474
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
475
+ deferred1_0 = r0;
476
+ deferred1_1 = r1;
477
+ return getStringFromWasm0(r0, r1);
478
+ } finally {
479
+ wasm.__wbindgen_add_to_stack_pointer(16);
480
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
481
+ }
482
+ }
483
+
332
484
  /**
333
485
  * Revokes this browser's machine in the account and discards its stored
334
486
  * identity. The page clears the credential and reloads afterwards.
@@ -384,6 +536,11 @@ export function start() {
384
536
  function __wbg_get_imports() {
385
537
  const import0 = {
386
538
  __proto__: null,
539
+ __wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
540
+ const v = getObject(arg0);
541
+ const ret = typeof(v) === 'boolean' ? v : undefined;
542
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
543
+ },
387
544
  __wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
388
545
  const ret = typeof(getObject(arg0)) === 'function';
389
546
  return ret;
@@ -405,6 +562,12 @@ function __wbg_get_imports() {
405
562
  const ret = getObject(arg0) === undefined;
406
563
  return ret;
407
564
  },
565
+ __wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
566
+ const obj = getObject(arg1);
567
+ const ret = typeof(obj) === 'number' ? obj : undefined;
568
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
569
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
570
+ },
408
571
  __wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
409
572
  const obj = getObject(arg1);
410
573
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -422,9 +585,17 @@ function __wbg_get_imports() {
422
585
  __wbg_arcTo_e447860b0ef384fb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
423
586
  getObject(arg0).arcTo(arg1, arg2, arg3, arg4, arg5);
424
587
  }, arguments); },
588
+ __wbg_arrayBuffer_16433f17fbd74397: function() { return handleError(function (arg0) {
589
+ const ret = getObject(arg0).arrayBuffer();
590
+ return addHeapObject(ret);
591
+ }, arguments); },
425
592
  __wbg_beginPath_4b87fe7ed5408cac: function(arg0) {
426
593
  getObject(arg0).beginPath();
427
594
  },
595
+ __wbg_buffer_78291c0e094ccf99: function(arg0) {
596
+ const ret = getObject(arg0).buffer;
597
+ return addHeapObject(ret);
598
+ },
428
599
  __wbg_bufferedAmount_8439cda0fbab40f3: function(arg0) {
429
600
  const ret = getObject(arg0).bufferedAmount;
430
601
  return ret;
@@ -493,6 +664,9 @@ function __wbg_get_imports() {
493
664
  __wbg_drawImage_87a05b54f458ec06: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
494
665
  getObject(arg0).drawImage(getObject(arg1), arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
495
666
  }, arguments); },
667
+ __wbg_drawImage_c9877592da6891fb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
668
+ getObject(arg0).drawImage(getObject(arg1), arg2, arg3, arg4, arg5);
669
+ }, arguments); },
496
670
  __wbg_ellipse_8683d7da44c9d648: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
497
671
  getObject(arg0).ellipse(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 !== 0);
498
672
  }, arguments); },
@@ -511,6 +685,16 @@ function __wbg_get_imports() {
511
685
  wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
512
686
  }
513
687
  },
688
+ __wbg_error_afb37ce311f1115d: function(arg0, arg1) {
689
+ console.error(getObject(arg0), getObject(arg1));
690
+ },
691
+ __wbg_error_dd408a7b3cb542dd: function(arg0) {
692
+ console.error(getObject(arg0));
693
+ },
694
+ __wbg_fetch_6500a72da8700672: function(arg0, arg1, arg2) {
695
+ const ret = getObject(arg0).fetch(getStringFromWasm0(arg1, arg2));
696
+ return addHeapObject(ret);
697
+ },
514
698
  __wbg_fetch_729fad2e5272298f: function(arg0, arg1) {
515
699
  const ret = getObject(arg0).fetch(getObject(arg1));
516
700
  return addHeapObject(ret);
@@ -532,6 +716,10 @@ function __wbg_get_imports() {
532
716
  const ret = getObject(arg0).fontBoundingBoxDescent;
533
717
  return ret;
534
718
  },
719
+ __wbg_from_74f3d90e0ff11240: function(arg0) {
720
+ const ret = Array.from(getObject(arg0));
721
+ return addHeapObject(ret);
722
+ },
535
723
  __wbg_generateKey_35e4d6e6942ffefd: function() { return handleError(function (arg0, arg1, arg2, arg3) {
536
724
  const ret = getObject(arg0).generateKey(getObject(arg1), arg2 !== 0, getObject(arg3));
537
725
  return addHeapObject(ret);
@@ -565,6 +753,14 @@ function __wbg_get_imports() {
565
753
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
566
754
  return addHeapObject(ret);
567
755
  }, arguments); },
756
+ __wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
757
+ const ret = getObject(arg0)[arg1 >>> 0];
758
+ return addHeapObject(ret);
759
+ },
760
+ __wbg_has_b3a6e6d0d28295fa: function() { return handleError(function (arg0, arg1) {
761
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
762
+ return ret;
763
+ }, arguments); },
568
764
  __wbg_height_e56f6fb197710e09: function(arg0) {
569
765
  const ret = getObject(arg0).height;
570
766
  return ret;
@@ -593,6 +789,16 @@ function __wbg_get_imports() {
593
789
  const ret = result;
594
790
  return ret;
595
791
  },
792
+ __wbg_instanceof_ErrorEvent_89b18d7510b76ab4: function(arg0) {
793
+ let result;
794
+ try {
795
+ result = getObject(arg0) instanceof ErrorEvent;
796
+ } catch (_) {
797
+ result = false;
798
+ }
799
+ const ret = result;
800
+ return ret;
801
+ },
596
802
  __wbg_instanceof_HtmlCanvasElement_327e7f7530c72bbd: function(arg0) {
597
803
  let result;
598
804
  try {
@@ -623,6 +829,16 @@ function __wbg_get_imports() {
623
829
  const ret = result;
624
830
  return ret;
625
831
  },
832
+ __wbg_instanceof_Uint8ClampedArray_14449d3c1195a82e: function(arg0) {
833
+ let result;
834
+ try {
835
+ result = getObject(arg0) instanceof Uint8ClampedArray;
836
+ } catch (_) {
837
+ result = false;
838
+ }
839
+ const ret = result;
840
+ return ret;
841
+ },
626
842
  __wbg_instanceof_Window_5625ff9937037a38: function(arg0) {
627
843
  let result;
628
844
  try {
@@ -633,6 +849,10 @@ function __wbg_get_imports() {
633
849
  const ret = result;
634
850
  return ret;
635
851
  },
852
+ __wbg_isArray_6339f732981044bf: function(arg0) {
853
+ const ret = Array.isArray(getObject(arg0));
854
+ return ret;
855
+ },
636
856
  __wbg_isSecureContext_12728809070a29df: function(arg0) {
637
857
  const ret = getObject(arg0).isSecureContext;
638
858
  return ret;
@@ -641,9 +861,17 @@ function __wbg_get_imports() {
641
861
  const ret = getObject(arg0).length;
642
862
  return ret;
643
863
  },
864
+ __wbg_length_ecfa2c63d3d0d82c: function(arg0) {
865
+ const ret = getObject(arg0).length;
866
+ return ret;
867
+ },
644
868
  __wbg_lineTo_9495a068a4f48283: function(arg0, arg1, arg2) {
645
869
  getObject(arg0).lineTo(arg1, arg2);
646
870
  },
871
+ __wbg_load_c7c58f19755d1352: function() { return handleError(function (arg0, arg1) {
872
+ const ret = Atomics.load(getObject(arg0), arg1 >>> 0);
873
+ return ret;
874
+ }, arguments); },
647
875
  __wbg_localStorage_19bddab1e4cb2413: function() { return handleError(function (arg0) {
648
876
  const ret = getObject(arg0).localStorage;
649
877
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
@@ -652,6 +880,13 @@ function __wbg_get_imports() {
652
880
  const ret = getObject(arg0).measureText(getStringFromWasm0(arg1, arg2));
653
881
  return addHeapObject(ret);
654
882
  }, arguments); },
883
+ __wbg_message_ee1169351138f81d: function(arg0, arg1) {
884
+ const ret = getObject(arg1).message;
885
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
886
+ const len1 = WASM_VECTOR_LEN;
887
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
888
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
889
+ },
655
890
  __wbg_moveTo_a5882cdf1a7d39d9: function(arg0, arg1, arg2) {
656
891
  getObject(arg0).moveTo(arg1, arg2);
657
892
  },
@@ -675,6 +910,10 @@ function __wbg_get_imports() {
675
910
  const ret = new Error();
676
911
  return addHeapObject(ret);
677
912
  },
913
+ __wbg_new_3867db84790e6cb4: function(arg0) {
914
+ const ret = new SharedArrayBuffer(arg0 >>> 0);
915
+ return addHeapObject(ret);
916
+ },
678
917
  __wbg_new_418fb92a013d5930: function(arg0, arg1) {
679
918
  try {
680
919
  var state0 = {a: arg0, b: arg1};
@@ -682,7 +921,7 @@ function __wbg_get_imports() {
682
921
  const a = state0.a;
683
922
  state0.a = 0;
684
923
  try {
685
- return __wasm_bindgen_func_elem_10095(a, state0.b, arg0, arg1);
924
+ return __wasm_bindgen_func_elem_10782(a, state0.b, arg0, arg1);
686
925
  } finally {
687
926
  state0.a = a;
688
927
  }
@@ -693,6 +932,10 @@ function __wbg_get_imports() {
693
932
  state0.a = 0;
694
933
  }
695
934
  },
935
+ __wbg_new_49808c7d1d72154f: function(arg0) {
936
+ const ret = new ArrayBuffer(arg0 >>> 0);
937
+ return addHeapObject(ret);
938
+ },
696
939
  __wbg_new_77cc4f4f472aeb81: function(arg0) {
697
940
  const ret = new Uint8Array(getObject(arg0));
698
941
  return addHeapObject(ret);
@@ -720,7 +963,7 @@ function __wbg_get_imports() {
720
963
  const a = state0.a;
721
964
  state0.a = 0;
722
965
  try {
723
- return __wasm_bindgen_func_elem_10095(a, state0.b, arg0, arg1);
966
+ return __wasm_bindgen_func_elem_10782(a, state0.b, arg0, arg1);
724
967
  } finally {
725
968
  state0.a = a;
726
969
  }
@@ -731,10 +974,22 @@ function __wbg_get_imports() {
731
974
  state0.a = 0;
732
975
  }
733
976
  },
977
+ __wbg_new_with_byte_offset_and_length_7fcc1893b668846c: function(arg0, arg1, arg2) {
978
+ const ret = new Int32Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
979
+ return addHeapObject(ret);
980
+ },
981
+ __wbg_new_with_byte_offset_and_length_ff6e927f8d72f0c3: function(arg0, arg1, arg2) {
982
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
983
+ return addHeapObject(ret);
984
+ },
734
985
  __wbg_new_with_length_3ffc1c56427c525c: function(arg0) {
735
986
  const ret = new Uint8Array(arg0 >>> 0);
736
987
  return addHeapObject(ret);
737
988
  },
989
+ __wbg_new_with_options_ceb29d27c7c6cc6f: function() { return handleError(function (arg0, arg1, arg2) {
990
+ const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
991
+ return addHeapObject(ret);
992
+ }, arguments); },
738
993
  __wbg_new_with_str_and_init_5a37d576dec75a86: function() { return handleError(function (arg0, arg1, arg2) {
739
994
  const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
740
995
  return addHeapObject(ret);
@@ -743,6 +998,10 @@ function __wbg_get_imports() {
743
998
  const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getObject(arg2));
744
999
  return addHeapObject(ret);
745
1000
  }, arguments); },
1001
+ __wbg_new_with_sw_cced22be0cbff0d3: function() { return handleError(function (arg0, arg1) {
1002
+ const ret = new ImageData(arg0 >>> 0, arg1 >>> 0);
1003
+ return addHeapObject(ret);
1004
+ }, arguments); },
746
1005
  __wbg_new_with_u8_clamped_array_and_sh_d9a3bf9abac17f51: function() { return handleError(function (arg0, arg1, arg2, arg3) {
747
1006
  const ret = new ImageData(getClampedArrayU8FromWasm0(arg0, arg1), arg2 >>> 0, arg3 >>> 0);
748
1007
  return addHeapObject(ret);
@@ -771,6 +1030,10 @@ function __wbg_get_imports() {
771
1030
  const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
772
1031
  return addHeapObject(ret);
773
1032
  }, arguments); },
1033
+ __wbg_open_585729a62dbd7475: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1034
+ const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
1035
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1036
+ }, arguments); },
774
1037
  __wbg_open_c5ecda93515ce190: function() { return handleError(function (arg0, arg1, arg2, arg3) {
775
1038
  const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
776
1039
  return addHeapObject(ret);
@@ -779,6 +1042,12 @@ function __wbg_get_imports() {
779
1042
  const ret = getObject(arg0).performance;
780
1043
  return addHeapObject(ret);
781
1044
  },
1045
+ __wbg_postMessage_db101a32b7c1dbf8: function() { return handleError(function (arg0, arg1, arg2) {
1046
+ getObject(arg0).postMessage(getObject(arg1), getObject(arg2));
1047
+ }, arguments); },
1048
+ __wbg_postMessage_ff0d3fa36478ee89: function() { return handleError(function (arg0, arg1) {
1049
+ getObject(arg0).postMessage(getObject(arg1));
1050
+ }, arguments); },
782
1051
  __wbg_preventDefault_19878c58b8010668: function(arg0) {
783
1052
  getObject(arg0).preventDefault();
784
1053
  },
@@ -796,6 +1065,9 @@ function __wbg_get_imports() {
796
1065
  __wbg_putImageData_17fd10517d5503a3: function() { return handleError(function (arg0, arg1, arg2, arg3) {
797
1066
  getObject(arg0).putImageData(getObject(arg1), arg2, arg3);
798
1067
  }, arguments); },
1068
+ __wbg_putImageData_ac2383610a3cfaa5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1069
+ getObject(arg0).putImageData(getObject(arg1), arg2, arg3, arg4, arg5, arg6, arg7);
1070
+ }, arguments); },
799
1071
  __wbg_put_5e0ae8c80bb952a7: function() { return handleError(function (arg0, arg1, arg2) {
800
1072
  const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
801
1073
  return addHeapObject(ret);
@@ -858,12 +1130,19 @@ function __wbg_get_imports() {
858
1130
  const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
859
1131
  return ret;
860
1132
  }, arguments); },
1133
+ __wbg_set_8155bb79a948541b: function() { return handleError(function (arg0, arg1, arg2) {
1134
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1135
+ return ret;
1136
+ }, arguments); },
861
1137
  __wbg_set_binaryType_b701908a03166a9f: function(arg0, arg1) {
862
1138
  getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
863
1139
  },
864
1140
  __wbg_set_body_f301b68bff45f419: function(arg0, arg1) {
865
1141
  getObject(arg0).body = getObject(arg1);
866
1142
  },
1143
+ __wbg_set_e0a8f22f6940a74f: function(arg0, arg1, arg2) {
1144
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1145
+ },
867
1146
  __wbg_set_e92392c4b44c5de1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
868
1147
  getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
869
1148
  }, arguments); },
@@ -906,12 +1185,18 @@ function __wbg_get_imports() {
906
1185
  __wbg_set_onerror_41278ace6abe3973: function(arg0, arg1) {
907
1186
  getObject(arg0).onerror = getObject(arg1);
908
1187
  },
1188
+ __wbg_set_onerror_b63034829f16949e: function(arg0, arg1) {
1189
+ getObject(arg0).onerror = getObject(arg1);
1190
+ },
909
1191
  __wbg_set_onerror_f1491b13f0fea022: function(arg0, arg1) {
910
1192
  getObject(arg0).onerror = getObject(arg1);
911
1193
  },
912
1194
  __wbg_set_onmessage_065a797dafa9c437: function(arg0, arg1) {
913
1195
  getObject(arg0).onmessage = getObject(arg1);
914
1196
  },
1197
+ __wbg_set_onmessage_6f838578941fe42d: function(arg0, arg1) {
1198
+ getObject(arg0).onmessage = getObject(arg1);
1199
+ },
915
1200
  __wbg_set_onopen_b28699f3431204cf: function(arg0, arg1) {
916
1201
  getObject(arg0).onopen = getObject(arg1);
917
1202
  },
@@ -927,6 +1212,9 @@ function __wbg_get_imports() {
927
1212
  __wbg_set_textBaseline_72fc99fa97c6b6f3: function(arg0, arg1, arg2) {
928
1213
  getObject(arg0).textBaseline = getStringFromWasm0(arg1, arg2);
929
1214
  },
1215
+ __wbg_set_type_e6de95ea1ca51953: function(arg0, arg1) {
1216
+ getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
1217
+ },
930
1218
  __wbg_set_width_36ef6630b22fc519: function(arg0, arg1) {
931
1219
  getObject(arg0).width = arg1 >>> 0;
932
1220
  },
@@ -964,6 +1252,9 @@ function __wbg_get_imports() {
964
1252
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
965
1253
  return addHeapObject(ret);
966
1254
  },
1255
+ __wbg_terminate_ce8875dabb0fdeb6: function(arg0) {
1256
+ getObject(arg0).terminate();
1257
+ },
967
1258
  __wbg_text_9302f33ea8cfce7b: function() { return handleError(function (arg0) {
968
1259
  const ret = getObject(arg0).text();
969
1260
  return addHeapObject(ret);
@@ -1003,23 +1294,23 @@ function __wbg_get_imports() {
1003
1294
  return ret;
1004
1295
  },
1005
1296
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1006
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1142, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1007
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_10093);
1297
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1299, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1298
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_10780);
1008
1299
  return addHeapObject(ret);
1009
1300
  },
1010
1301
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1011
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 199, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1012
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_716);
1302
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 115, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1303
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_630);
1013
1304
  return addHeapObject(ret);
1014
1305
  },
1015
1306
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
1016
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 199, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1017
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_716_2);
1307
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 115, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1308
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_630_2);
1018
1309
  return addHeapObject(ret);
1019
1310
  },
1020
1311
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
1021
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 199, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1022
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_716_3);
1312
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 115, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1313
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_630_3);
1023
1314
  return addHeapObject(ret);
1024
1315
  },
1025
1316
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
@@ -1046,22 +1337,22 @@ function __wbg_get_imports() {
1046
1337
  };
1047
1338
  }
1048
1339
 
1049
- function __wasm_bindgen_func_elem_716(arg0, arg1, arg2) {
1050
- wasm.__wasm_bindgen_func_elem_716(arg0, arg1, addHeapObject(arg2));
1340
+ function __wasm_bindgen_func_elem_630(arg0, arg1, arg2) {
1341
+ wasm.__wasm_bindgen_func_elem_630(arg0, arg1, addHeapObject(arg2));
1051
1342
  }
1052
1343
 
1053
- function __wasm_bindgen_func_elem_716_2(arg0, arg1, arg2) {
1054
- wasm.__wasm_bindgen_func_elem_716_2(arg0, arg1, addHeapObject(arg2));
1344
+ function __wasm_bindgen_func_elem_630_2(arg0, arg1, arg2) {
1345
+ wasm.__wasm_bindgen_func_elem_630_2(arg0, arg1, addHeapObject(arg2));
1055
1346
  }
1056
1347
 
1057
- function __wasm_bindgen_func_elem_716_3(arg0, arg1, arg2) {
1058
- wasm.__wasm_bindgen_func_elem_716_3(arg0, arg1, addHeapObject(arg2));
1348
+ function __wasm_bindgen_func_elem_630_3(arg0, arg1, arg2) {
1349
+ wasm.__wasm_bindgen_func_elem_630_3(arg0, arg1, addHeapObject(arg2));
1059
1350
  }
1060
1351
 
1061
- function __wasm_bindgen_func_elem_10093(arg0, arg1, arg2) {
1352
+ function __wasm_bindgen_func_elem_10780(arg0, arg1, arg2) {
1062
1353
  try {
1063
1354
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1064
- wasm.__wasm_bindgen_func_elem_10093(retptr, arg0, arg1, addHeapObject(arg2));
1355
+ wasm.__wasm_bindgen_func_elem_10780(retptr, arg0, arg1, addHeapObject(arg2));
1065
1356
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1066
1357
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1067
1358
  if (r1) {
@@ -1072,8 +1363,8 @@ function __wasm_bindgen_func_elem_10093(arg0, arg1, arg2) {
1072
1363
  }
1073
1364
  }
1074
1365
 
1075
- function __wasm_bindgen_func_elem_10095(arg0, arg1, arg2, arg3) {
1076
- wasm.__wasm_bindgen_func_elem_10095(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1366
+ function __wasm_bindgen_func_elem_10782(arg0, arg1, arg2, arg3) {
1367
+ wasm.__wasm_bindgen_func_elem_10782(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1077
1368
  }
1078
1369
 
1079
1370
 
@@ -1081,6 +1372,9 @@ const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
1081
1372
 
1082
1373
 
1083
1374
  const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
1375
+
1376
+
1377
+ const __wbindgen_enum_WorkerType = ["classic", "module"];
1084
1378
  const DeviceLoginFinalization = (typeof FinalizationRegistry === 'undefined')
1085
1379
  ? { register: () => {}, unregister: () => {} }
1086
1380
  : new FinalizationRegistry(ptr => wasm.__wbg_devicelogin_free(ptr, 1));
Binary file
@@ -1,32 +1,38 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_devicelogin_free: (a: number, b: number) => void;
5
4
  export const __wbg_session_free: (a: number, b: number) => void;
6
- export const devicelogin_code: (a: number, b: number) => void;
7
- export const devicelogin_intervalMs: (a: number) => number;
8
- export const devicelogin_poll: (a: number) => number;
9
- export const devicelogin_start: (a: number, b: number) => number;
10
- export const devicelogin_verificationUrl: (a: number, b: number) => void;
11
- export const forget_browser: (a: number, b: number, c: number, d: number) => number;
5
+ export const backend_profile: (a: number) => void;
12
6
  export const link_check: (a: number) => void;
13
7
  export const session_columns: (a: number) => number;
8
+ export const session_fake_account: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
14
9
  export const session_focus: (a: number, b: number, c: number) => void;
15
10
  export const session_frame: (a: number, b: number) => void;
16
11
  export const session_key: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
17
12
  export const session_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
18
13
  export const session_paste: (a: number, b: number, c: number, d: number) => void;
14
+ export const session_plugin_trace: (a: number, b: number) => void;
19
15
  export const session_pointer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
20
16
  export const session_resize: (a: number, b: number, c: number) => void;
21
17
  export const session_rows: (a: number) => number;
18
+ export const session_start_demo_plugins: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
19
+ export const session_start_fake_account_plugins: (a: number, b: number, c: number, d: number) => void;
20
+ export const session_start_plugins: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
22
21
  export const session_take_clipboard: (a: number, b: number) => void;
23
22
  export const session_wheel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
24
23
  export const start: () => void;
25
- export const __wasm_bindgen_func_elem_10093: (a: number, b: number, c: number, d: number) => void;
26
- export const __wasm_bindgen_func_elem_10095: (a: number, b: number, c: number, d: number) => void;
27
- export const __wasm_bindgen_func_elem_716: (a: number, b: number, c: number) => void;
28
- export const __wasm_bindgen_func_elem_716_2: (a: number, b: number, c: number) => void;
29
- export const __wasm_bindgen_func_elem_716_3: (a: number, b: number, c: number) => void;
24
+ export const forget_browser: (a: number, b: number, c: number, d: number) => number;
25
+ export const __wbg_devicelogin_free: (a: number, b: number) => void;
26
+ export const devicelogin_code: (a: number, b: number) => void;
27
+ export const devicelogin_intervalMs: (a: number) => number;
28
+ export const devicelogin_poll: (a: number) => number;
29
+ export const devicelogin_start: (a: number, b: number) => number;
30
+ export const devicelogin_verificationUrl: (a: number, b: number) => void;
31
+ export const __wasm_bindgen_func_elem_10780: (a: number, b: number, c: number, d: number) => void;
32
+ export const __wasm_bindgen_func_elem_10782: (a: number, b: number, c: number, d: number) => void;
33
+ export const __wasm_bindgen_func_elem_630: (a: number, b: number, c: number) => void;
34
+ export const __wasm_bindgen_func_elem_630_2: (a: number, b: number, c: number) => void;
35
+ export const __wasm_bindgen_func_elem_630_3: (a: number, b: number, c: number) => void;
30
36
  export const __wbindgen_export: (a: number, b: number) => number;
31
37
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
32
38
  export const __wbindgen_export3: (a: number) => void;
@@ -0,0 +1,11 @@
1
+ {
2
+ "apiVersion": 2,
3
+ "kind": "ui",
4
+ "id": "clock-cells",
5
+ "version": "0.1.0",
6
+ "module": "clock_cells.wasm",
7
+ "surfaces": [
8
+ { "id": "card", "anchor": "sidebar.card", "model": "cells", "height": 2 }
9
+ ],
10
+ "grants": {}
11
+ }