@northtalk/ts 0.9.0 → 0.10.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/{binary-value-B93hEK7l.d.ts → binary-value-B8W4W_e1.d.ts} +1 -1
- package/{checker-D74oYIhs.js → checker-hkWO1UbN.js} +1 -1
- package/{core-BBPI6EhG.d.ts → core-Dwec7SRy.d.ts} +1 -1
- package/{debug-s6QIovKS.d.ts → debug-2yfUZYzF.d.ts} +7 -0
- package/debug.d.ts +1 -1
- package/{driver-D5yrK3Nu.d.ts → driver-CT-ksM-N.d.ts} +1 -1
- package/driver.d.ts +1 -1
- package/{encoding-DzVFpg7k.js → encoding-DlMqlP2Y.js} +1 -1
- package/{engine-Bx8B63iQ.js → engine-CxcONfhv.js} +4 -4
- package/{engine-Dy-BCoiw.d.ts → engine-DP_lqWfI.d.ts} +2 -2
- package/{group-CY4FKhzT.js → group--dcl0em8.js} +80 -21
- package/{http-fetch-DnpfiOWK.js → http-fetch-CLAeEXVi.js} +1 -1
- package/http.d.ts +1 -1
- package/http.js +2 -2
- package/index.d.ts +4 -4
- package/index.js +11 -11
- package/{lean-DTCTJUmR.js → lean-BtbKWkXA.js} +8 -8
- package/{lean-Bg_UTRj0.d.ts → lean-DU_muGpT.d.ts} +2 -2
- package/lean.d.ts +4 -4
- package/lean.js +11 -11
- package/{manifest-DVS1SEmN.js → manifest-CRpUahPt.js} +2 -2
- package/message-layer.d.ts +2 -2
- package/message-layer.js +1 -1
- package/notify.d.ts +1 -1
- package/notify.js +1 -1
- package/{objects-q0lnCK-4.d.ts → objects-DoyEohtr.d.ts} +1 -1
- package/{operations-B3XaG7Ve.js → operations-DrsedOvj.js} +3 -3
- package/package.json +1 -1
- package/{peer-capability-3etyPHs3.js → peer-capability-RMdN4OHj.js} +2 -2
- package/peer.d.ts +1 -1
- package/peer.js +2 -2
- package/{readers-AeB1bJ--.d.ts → readers-IhVpgXkj.d.ts} +1 -1
- package/{request-pump-binary-VOPVqRZD.js → request-pump-binary-P8m6kLfB.js} +229 -51
- package/{router-DXoJ_2Z4.d.ts → router-2vjYbqx3.d.ts} +2 -2
- package/{router-Bdm4KiMG.js → router-C_Fjc2as.js} +4 -4
- package/session.d.ts +2 -2
- package/session.js +17 -16
- package/setup.d.ts +2 -2
- package/setup.js +3 -3
- package/sha256-C5Lqj5U7.js +197 -0
- package/sqlite.d.ts +2 -2
- package/sqlite.js +3 -3
- package/{store-BTcyKBLg.js → store-_af2DPoK.js} +2 -2
- package/{store-capability-CBJ6mUoH.js → store-capability-Db6v_dw9.js} +2 -2
- package/store.d.ts +2 -2
- package/store.js +2 -2
- package/{user-capability-DNY2dyjq.js → user-capability-CzoLN3RK.js} +2 -2
- package/wasm.d.ts +4 -4
- package/wasm.js +84 -44
- package/{zone-rules-DsCJtmlC.js → zone-rules-Cn-f9u_Z.js} +3 -3
- package/sha256-9CGf5BS_.js +0 -168
|
@@ -182,8 +182,8 @@ var Lexer = class {
|
|
|
182
182
|
const parts = [];
|
|
183
183
|
let start = begin;
|
|
184
184
|
let i = begin;
|
|
185
|
-
const error = (code, at, incomplete = false) => ({
|
|
186
|
-
...this.tok("error", code, at, Math.min(s.length, at +
|
|
185
|
+
const error = (code, at, incomplete = false, width = 1) => ({
|
|
186
|
+
...this.tok("error", code, at, Math.min(s.length, at + width), space, mode, code),
|
|
187
187
|
incomplete,
|
|
188
188
|
parts: incomplete ? [] : parts.filter((p) => p.hole && p.hole.end < at)
|
|
189
189
|
});
|
|
@@ -213,7 +213,7 @@ var Lexer = class {
|
|
|
213
213
|
...t,
|
|
214
214
|
parts: t.incomplete ? [] : [...parts.filter((p) => p.hole), ...t.parts ?? []]
|
|
215
215
|
};
|
|
216
|
-
if (t.t === "eof") return error("unterminated interpolation", at, true);
|
|
216
|
+
if (t.t === "eof") return error("unterminated interpolation", at, true, 2);
|
|
217
217
|
if (t.t === "op" && t.v === "}" && depth === 0) {
|
|
218
218
|
parts.push({
|
|
219
219
|
start,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import { P as listValues, V as nothing, b as dec, it as text, t as HostError } from "./errors-CNc-xY_9.js";
|
|
3
3
|
import { t as defineObjectKind } from "./objects-OKVLH190.js";
|
|
4
|
-
import { Dt as shape, kt as validComputedMessageName, n as ScriptError, xt as defineValueCapability } from "./operations-
|
|
5
|
-
import { c as fixed, f as registerStandardChecks, s as costOf } from "./encoding-
|
|
4
|
+
import { Dt as shape, kt as validComputedMessageName, n as ScriptError, xt as defineValueCapability } from "./operations-DrsedOvj.js";
|
|
5
|
+
import { c as fixed, f as registerStandardChecks, s as costOf } from "./encoding-DlMqlP2Y.js";
|
|
6
6
|
//#region src/peer-capability.ts
|
|
7
7
|
/** The Core-fixed Object Kind of a Peer: no properties, no collection. */
|
|
8
8
|
const PEER_KIND = "peer";
|
package/peer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { J as Value, P as TsGroup, an as PeerImpl } from "./debug-
|
|
2
|
+
import { J as Value, P as TsGroup, an as PeerImpl } from "./debug-2yfUZYzF.js";
|
|
3
3
|
//#region src/peer-message-port.d.ts
|
|
4
4
|
/** What the link needs of a `MessagePort`, a `Worker` or a worker's `self`. */
|
|
5
5
|
type PortEndpoint = {
|
package/peer.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { H as num, L as map, N as list, V as nothing, i as ScriptError, it as text } from "./errors-CNc-xY_9.js";
|
|
3
3
|
import { n as toBase64, t as fromBase64 } from "./base64-CDO-a06R.js";
|
|
4
4
|
import { r as decodeValue } from "./readers-G1lHqrPl.js";
|
|
5
|
-
import { t as encodeValue } from "./encoding-
|
|
6
|
-
import { a as peerKind } from "./peer-capability-
|
|
5
|
+
import { t as encodeValue } from "./encoding-DlMqlP2Y.js";
|
|
6
|
+
import { a as peerKind } from "./peer-capability-RMdN4OHj.js";
|
|
7
7
|
//#region src/peer-message-port.ts
|
|
8
8
|
/** The largest frame a link sends or reads, in UTF-8 bytes. */
|
|
9
9
|
const MAX_FRAME$1 = 16777216;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { J as Value } from "./debug-
|
|
2
|
+
import { J as Value } from "./debug-2yfUZYzF.js";
|
|
3
3
|
//#region src/readers.d.ts
|
|
4
4
|
/** Finds the Host Object a reader names by its kind and id, or none. */
|
|
5
5
|
type ObjectResolver = (kind: string, id: string) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { D as instant, G as patternValue, H as num, J as range, K as quantity, L as map, P as listValues, Qt as parseInstant, U as objectValue, V as nothing, b as dec, d as bytes, g as civilDate, it as text, l as Value, o as invalidValue, qt as formatInstant, sn as normalizeNFC, u as bool, w as functionValue } from "./errors-CNc-xY_9.js";
|
|
3
|
-
import { g as decodeUtf8, ot as patternSource } from "./operations-
|
|
4
|
-
import { _ as viewSource, t as checkSource } from "./checker-
|
|
3
|
+
import { g as decodeUtf8, ot as patternSource } from "./operations-DrsedOvj.js";
|
|
4
|
+
import { _ as viewSource, t as checkSource } from "./checker-hkWO1UbN.js";
|
|
5
5
|
import { n as toBase64 } from "./base64-CDO-a06R.js";
|
|
6
6
|
import { a as fromJson, n as JsonObject, o as isJsonNumber, s as isJsonObject, t as JsonNumber } from "./readers-G1lHqrPl.js";
|
|
7
7
|
//#region src/binary-value.ts
|
|
@@ -385,28 +385,31 @@ const decodeBinaryValue = (buffer, o) => {
|
|
|
385
385
|
};
|
|
386
386
|
//#endregion
|
|
387
387
|
//#region src/generated/envelope.ts
|
|
388
|
-
const
|
|
389
|
-
"request-pump-fields-v1",
|
|
390
|
-
"callbacks-fields-v1",
|
|
391
|
-
"settlements-fields-v1",
|
|
392
|
-
"load-fields-v1",
|
|
393
|
-
"queue-fields-v1"
|
|
394
|
-
|
|
388
|
+
const envelopeFeature = {
|
|
389
|
+
requestPumpFieldsV1: "request-pump-fields-v1",
|
|
390
|
+
callbacksFieldsV1: "callbacks-fields-v1",
|
|
391
|
+
settlementsFieldsV1: "settlements-fields-v1",
|
|
392
|
+
loadFieldsV1: "load-fields-v1",
|
|
393
|
+
queueFieldsV1: "queue-fields-v1"
|
|
394
|
+
};
|
|
395
395
|
const envelopeMessages = [
|
|
396
396
|
{
|
|
397
397
|
tag: 1,
|
|
398
398
|
name: "request",
|
|
399
399
|
direction: "host-to-guest",
|
|
400
|
+
layouts: ["fields", "json"],
|
|
400
401
|
fields: [
|
|
401
402
|
{
|
|
402
403
|
name: "ref",
|
|
403
404
|
kind: "int",
|
|
404
|
-
required: true
|
|
405
|
+
required: true,
|
|
406
|
+
host: false
|
|
405
407
|
},
|
|
406
408
|
{
|
|
407
409
|
name: "group",
|
|
408
410
|
kind: "text",
|
|
409
|
-
required: true
|
|
411
|
+
required: true,
|
|
412
|
+
host: false
|
|
410
413
|
},
|
|
411
414
|
{
|
|
412
415
|
name: "to",
|
|
@@ -424,16 +427,19 @@ const envelopeMessages = [
|
|
|
424
427
|
tag: 2,
|
|
425
428
|
name: "call",
|
|
426
429
|
direction: "host-to-guest",
|
|
430
|
+
layouts: ["fields", "json"],
|
|
427
431
|
fields: [
|
|
428
432
|
{
|
|
429
433
|
name: "ref",
|
|
430
434
|
kind: "int",
|
|
431
|
-
required: true
|
|
435
|
+
required: true,
|
|
436
|
+
host: false
|
|
432
437
|
},
|
|
433
438
|
{
|
|
434
439
|
name: "group",
|
|
435
440
|
kind: "text",
|
|
436
|
-
required: true
|
|
441
|
+
required: true,
|
|
442
|
+
host: false
|
|
437
443
|
},
|
|
438
444
|
{
|
|
439
445
|
name: "fn",
|
|
@@ -456,16 +462,19 @@ const envelopeMessages = [
|
|
|
456
462
|
tag: 3,
|
|
457
463
|
name: "pump",
|
|
458
464
|
direction: "host-to-guest",
|
|
465
|
+
layouts: ["fields", "json"],
|
|
459
466
|
fields: [
|
|
460
467
|
{
|
|
461
468
|
name: "ref",
|
|
462
469
|
kind: "int",
|
|
463
|
-
required: true
|
|
470
|
+
required: true,
|
|
471
|
+
host: false
|
|
464
472
|
},
|
|
465
473
|
{
|
|
466
474
|
name: "group",
|
|
467
475
|
kind: "text",
|
|
468
|
-
required: true
|
|
476
|
+
required: true,
|
|
477
|
+
host: false
|
|
469
478
|
},
|
|
470
479
|
{
|
|
471
480
|
name: "now",
|
|
@@ -488,21 +497,25 @@ const envelopeMessages = [
|
|
|
488
497
|
tag: 4,
|
|
489
498
|
name: "request-pump",
|
|
490
499
|
direction: "host-to-guest",
|
|
500
|
+
layouts: ["fields"],
|
|
491
501
|
fields: [
|
|
492
502
|
{
|
|
493
503
|
name: "ref",
|
|
494
504
|
kind: "int",
|
|
495
|
-
required: true
|
|
505
|
+
required: true,
|
|
506
|
+
host: false
|
|
496
507
|
},
|
|
497
508
|
{
|
|
498
509
|
name: "group",
|
|
499
510
|
kind: "text",
|
|
500
|
-
required: true
|
|
511
|
+
required: true,
|
|
512
|
+
host: false
|
|
501
513
|
},
|
|
502
514
|
{
|
|
503
515
|
name: "token",
|
|
504
516
|
kind: "uint",
|
|
505
|
-
required: false
|
|
517
|
+
required: false,
|
|
518
|
+
host: false
|
|
506
519
|
},
|
|
507
520
|
{
|
|
508
521
|
name: "to",
|
|
@@ -535,21 +548,25 @@ const envelopeMessages = [
|
|
|
535
548
|
tag: 5,
|
|
536
549
|
name: "call-pump",
|
|
537
550
|
direction: "host-to-guest",
|
|
551
|
+
layouts: ["fields"],
|
|
538
552
|
fields: [
|
|
539
553
|
{
|
|
540
554
|
name: "ref",
|
|
541
555
|
kind: "int",
|
|
542
|
-
required: true
|
|
556
|
+
required: true,
|
|
557
|
+
host: false
|
|
543
558
|
},
|
|
544
559
|
{
|
|
545
560
|
name: "group",
|
|
546
561
|
kind: "text",
|
|
547
|
-
required: true
|
|
562
|
+
required: true,
|
|
563
|
+
host: false
|
|
548
564
|
},
|
|
549
565
|
{
|
|
550
566
|
name: "token",
|
|
551
567
|
kind: "uint",
|
|
552
|
-
required: false
|
|
568
|
+
required: false,
|
|
569
|
+
host: false
|
|
553
570
|
},
|
|
554
571
|
{
|
|
555
572
|
name: "fn",
|
|
@@ -587,16 +604,19 @@ const envelopeMessages = [
|
|
|
587
604
|
tag: 6,
|
|
588
605
|
name: "op-result",
|
|
589
606
|
direction: "host-to-guest",
|
|
607
|
+
layouts: ["fields"],
|
|
590
608
|
fields: [
|
|
591
609
|
{
|
|
592
610
|
name: "ref",
|
|
593
611
|
kind: "int",
|
|
594
|
-
required: true
|
|
612
|
+
required: true,
|
|
613
|
+
host: false
|
|
595
614
|
},
|
|
596
615
|
{
|
|
597
616
|
name: "group",
|
|
598
617
|
kind: "text",
|
|
599
|
-
required: true
|
|
618
|
+
required: true,
|
|
619
|
+
host: false
|
|
600
620
|
},
|
|
601
621
|
{
|
|
602
622
|
name: "outcome",
|
|
@@ -629,16 +649,19 @@ const envelopeMessages = [
|
|
|
629
649
|
tag: 7,
|
|
630
650
|
name: "prop-result",
|
|
631
651
|
direction: "host-to-guest",
|
|
652
|
+
layouts: ["fields"],
|
|
632
653
|
fields: [
|
|
633
654
|
{
|
|
634
655
|
name: "ref",
|
|
635
656
|
kind: "int",
|
|
636
|
-
required: true
|
|
657
|
+
required: true,
|
|
658
|
+
host: false
|
|
637
659
|
},
|
|
638
660
|
{
|
|
639
661
|
name: "group",
|
|
640
662
|
kind: "text",
|
|
641
|
-
required: true
|
|
663
|
+
required: true,
|
|
664
|
+
host: false
|
|
642
665
|
},
|
|
643
666
|
{
|
|
644
667
|
name: "outcome",
|
|
@@ -671,16 +694,19 @@ const envelopeMessages = [
|
|
|
671
694
|
tag: 8,
|
|
672
695
|
name: "effect-result",
|
|
673
696
|
direction: "host-to-guest",
|
|
697
|
+
layouts: ["fields"],
|
|
674
698
|
fields: [
|
|
675
699
|
{
|
|
676
700
|
name: "ref",
|
|
677
701
|
kind: "int",
|
|
678
|
-
required: true
|
|
702
|
+
required: true,
|
|
703
|
+
host: false
|
|
679
704
|
},
|
|
680
705
|
{
|
|
681
706
|
name: "group",
|
|
682
707
|
kind: "text",
|
|
683
|
-
required: true
|
|
708
|
+
required: true,
|
|
709
|
+
host: false
|
|
684
710
|
},
|
|
685
711
|
{
|
|
686
712
|
name: "status",
|
|
@@ -693,30 +719,36 @@ const envelopeMessages = [
|
|
|
693
719
|
tag: 9,
|
|
694
720
|
name: "release-result",
|
|
695
721
|
direction: "host-to-guest",
|
|
722
|
+
layouts: ["fields"],
|
|
696
723
|
fields: [{
|
|
697
724
|
name: "ref",
|
|
698
725
|
kind: "int",
|
|
699
|
-
required: true
|
|
726
|
+
required: true,
|
|
727
|
+
host: false
|
|
700
728
|
}, {
|
|
701
729
|
name: "group",
|
|
702
730
|
kind: "text",
|
|
703
|
-
required: true
|
|
731
|
+
required: true,
|
|
732
|
+
host: false
|
|
704
733
|
}]
|
|
705
734
|
},
|
|
706
735
|
{
|
|
707
736
|
tag: 10,
|
|
708
737
|
name: "settle-pump",
|
|
709
738
|
direction: "host-to-guest",
|
|
739
|
+
layouts: ["fields"],
|
|
710
740
|
fields: [
|
|
711
741
|
{
|
|
712
742
|
name: "ref",
|
|
713
743
|
kind: "int",
|
|
714
|
-
required: true
|
|
744
|
+
required: true,
|
|
745
|
+
host: false
|
|
715
746
|
},
|
|
716
747
|
{
|
|
717
748
|
name: "group",
|
|
718
749
|
kind: "text",
|
|
719
|
-
required: true
|
|
750
|
+
required: true,
|
|
751
|
+
host: false
|
|
720
752
|
},
|
|
721
753
|
{
|
|
722
754
|
name: "now",
|
|
@@ -744,16 +776,19 @@ const envelopeMessages = [
|
|
|
744
776
|
tag: 11,
|
|
745
777
|
name: "load",
|
|
746
778
|
direction: "host-to-guest",
|
|
779
|
+
layouts: ["fields", "json"],
|
|
747
780
|
fields: [
|
|
748
781
|
{
|
|
749
782
|
name: "ref",
|
|
750
783
|
kind: "int",
|
|
751
|
-
required: true
|
|
784
|
+
required: true,
|
|
785
|
+
host: false
|
|
752
786
|
},
|
|
753
787
|
{
|
|
754
788
|
name: "group",
|
|
755
789
|
kind: "text",
|
|
756
|
-
required: true
|
|
790
|
+
required: true,
|
|
791
|
+
host: false
|
|
757
792
|
},
|
|
758
793
|
{
|
|
759
794
|
name: "name",
|
|
@@ -793,12 +828,14 @@ const envelopeMessages = [
|
|
|
793
828
|
{
|
|
794
829
|
name: "newGroup",
|
|
795
830
|
kind: "record",
|
|
796
|
-
required: false
|
|
831
|
+
required: false,
|
|
832
|
+
host: false
|
|
797
833
|
},
|
|
798
834
|
{
|
|
799
835
|
name: "refuseWorker",
|
|
800
836
|
kind: "bool",
|
|
801
|
-
required: false
|
|
837
|
+
required: false,
|
|
838
|
+
host: false
|
|
802
839
|
},
|
|
803
840
|
{
|
|
804
841
|
name: "forbidSuspension",
|
|
@@ -811,16 +848,19 @@ const envelopeMessages = [
|
|
|
811
848
|
tag: 12,
|
|
812
849
|
name: "deliver",
|
|
813
850
|
direction: "host-to-guest",
|
|
851
|
+
layouts: ["fields", "json"],
|
|
814
852
|
fields: [
|
|
815
853
|
{
|
|
816
854
|
name: "ref",
|
|
817
855
|
kind: "int",
|
|
818
|
-
required: true
|
|
856
|
+
required: true,
|
|
857
|
+
host: false
|
|
819
858
|
},
|
|
820
859
|
{
|
|
821
860
|
name: "group",
|
|
822
861
|
kind: "text",
|
|
823
|
-
required: true
|
|
862
|
+
required: true,
|
|
863
|
+
host: false
|
|
824
864
|
},
|
|
825
865
|
{
|
|
826
866
|
name: "to",
|
|
@@ -838,16 +878,19 @@ const envelopeMessages = [
|
|
|
838
878
|
tag: 13,
|
|
839
879
|
name: "broadcast",
|
|
840
880
|
direction: "host-to-guest",
|
|
881
|
+
layouts: ["fields", "json"],
|
|
841
882
|
fields: [
|
|
842
883
|
{
|
|
843
884
|
name: "ref",
|
|
844
885
|
kind: "int",
|
|
845
|
-
required: true
|
|
886
|
+
required: true,
|
|
887
|
+
host: false
|
|
846
888
|
},
|
|
847
889
|
{
|
|
848
890
|
name: "group",
|
|
849
891
|
kind: "text",
|
|
850
|
-
required: true
|
|
892
|
+
required: true,
|
|
893
|
+
host: false
|
|
851
894
|
},
|
|
852
895
|
{
|
|
853
896
|
name: "message",
|
|
@@ -860,16 +903,19 @@ const envelopeMessages = [
|
|
|
860
903
|
tag: 14,
|
|
861
904
|
name: "decide",
|
|
862
905
|
direction: "host-to-guest",
|
|
906
|
+
layouts: ["fields", "json"],
|
|
863
907
|
fields: [
|
|
864
908
|
{
|
|
865
909
|
name: "ref",
|
|
866
910
|
kind: "int",
|
|
867
|
-
required: true
|
|
911
|
+
required: true,
|
|
912
|
+
host: false
|
|
868
913
|
},
|
|
869
914
|
{
|
|
870
915
|
name: "group",
|
|
871
916
|
kind: "text",
|
|
872
|
-
required: true
|
|
917
|
+
required: true,
|
|
918
|
+
host: false
|
|
873
919
|
},
|
|
874
920
|
{
|
|
875
921
|
name: "to",
|
|
@@ -892,11 +938,13 @@ const envelopeMessages = [
|
|
|
892
938
|
tag: 129,
|
|
893
939
|
name: "admission",
|
|
894
940
|
direction: "guest-to-host",
|
|
941
|
+
layouts: ["fields"],
|
|
895
942
|
fields: [
|
|
896
943
|
{
|
|
897
944
|
name: "ref",
|
|
898
945
|
kind: "int",
|
|
899
|
-
required: true
|
|
946
|
+
required: true,
|
|
947
|
+
host: false
|
|
900
948
|
},
|
|
901
949
|
{
|
|
902
950
|
name: "delivery",
|
|
@@ -929,11 +977,13 @@ const envelopeMessages = [
|
|
|
929
977
|
tag: 130,
|
|
930
978
|
name: "completion",
|
|
931
979
|
direction: "guest-to-host",
|
|
980
|
+
layouts: ["fields"],
|
|
932
981
|
fields: [
|
|
933
982
|
{
|
|
934
983
|
name: "ref",
|
|
935
984
|
kind: "int",
|
|
936
|
-
required: true
|
|
985
|
+
required: true,
|
|
986
|
+
host: false
|
|
937
987
|
},
|
|
938
988
|
{
|
|
939
989
|
name: "delivery",
|
|
@@ -943,7 +993,8 @@ const envelopeMessages = [
|
|
|
943
993
|
{
|
|
944
994
|
name: "token",
|
|
945
995
|
kind: "uint",
|
|
946
|
-
required: false
|
|
996
|
+
required: false,
|
|
997
|
+
host: false
|
|
947
998
|
},
|
|
948
999
|
{
|
|
949
1000
|
name: "state",
|
|
@@ -996,11 +1047,13 @@ const envelopeMessages = [
|
|
|
996
1047
|
tag: 131,
|
|
997
1048
|
name: "op",
|
|
998
1049
|
direction: "guest-to-host",
|
|
1050
|
+
layouts: ["fields"],
|
|
999
1051
|
fields: [
|
|
1000
1052
|
{
|
|
1001
1053
|
name: "ref",
|
|
1002
1054
|
kind: "int",
|
|
1003
|
-
required: true
|
|
1055
|
+
required: true,
|
|
1056
|
+
host: false
|
|
1004
1057
|
},
|
|
1005
1058
|
{
|
|
1006
1059
|
name: "call",
|
|
@@ -1093,11 +1146,13 @@ const envelopeMessages = [
|
|
|
1093
1146
|
tag: 132,
|
|
1094
1147
|
name: "prop",
|
|
1095
1148
|
direction: "guest-to-host",
|
|
1149
|
+
layouts: ["fields"],
|
|
1096
1150
|
fields: [
|
|
1097
1151
|
{
|
|
1098
1152
|
name: "ref",
|
|
1099
1153
|
kind: "int",
|
|
1100
|
-
required: true
|
|
1154
|
+
required: true,
|
|
1155
|
+
host: false
|
|
1101
1156
|
},
|
|
1102
1157
|
{
|
|
1103
1158
|
name: "object",
|
|
@@ -1150,11 +1205,13 @@ const envelopeMessages = [
|
|
|
1150
1205
|
tag: 133,
|
|
1151
1206
|
name: "effect",
|
|
1152
1207
|
direction: "guest-to-host",
|
|
1208
|
+
layouts: ["fields"],
|
|
1153
1209
|
fields: [
|
|
1154
1210
|
{
|
|
1155
1211
|
name: "ref",
|
|
1156
1212
|
kind: "int",
|
|
1157
|
-
required: true
|
|
1213
|
+
required: true,
|
|
1214
|
+
host: false
|
|
1158
1215
|
},
|
|
1159
1216
|
{
|
|
1160
1217
|
name: "script",
|
|
@@ -1217,11 +1274,13 @@ const envelopeMessages = [
|
|
|
1217
1274
|
tag: 134,
|
|
1218
1275
|
name: "release",
|
|
1219
1276
|
direction: "guest-to-host",
|
|
1277
|
+
layouts: ["fields"],
|
|
1220
1278
|
fields: [
|
|
1221
1279
|
{
|
|
1222
1280
|
name: "ref",
|
|
1223
1281
|
kind: "int",
|
|
1224
|
-
required: true
|
|
1282
|
+
required: true,
|
|
1283
|
+
host: false
|
|
1225
1284
|
},
|
|
1226
1285
|
{
|
|
1227
1286
|
name: "script",
|
|
@@ -1736,10 +1795,129 @@ const envelopeSettlement = [
|
|
|
1736
1795
|
required: false
|
|
1737
1796
|
}
|
|
1738
1797
|
];
|
|
1798
|
+
const envelopeJsonMessages = [{
|
|
1799
|
+
name: "inspect",
|
|
1800
|
+
direction: "host-to-guest",
|
|
1801
|
+
reply: "inspection",
|
|
1802
|
+
fields: [{
|
|
1803
|
+
name: "ref",
|
|
1804
|
+
kind: "int",
|
|
1805
|
+
required: true,
|
|
1806
|
+
host: false
|
|
1807
|
+
}, {
|
|
1808
|
+
name: "group",
|
|
1809
|
+
kind: "text",
|
|
1810
|
+
required: true,
|
|
1811
|
+
host: false
|
|
1812
|
+
}]
|
|
1813
|
+
}];
|
|
1814
|
+
const envelopeViews = [
|
|
1815
|
+
{
|
|
1816
|
+
name: "inspection",
|
|
1817
|
+
fields: [{
|
|
1818
|
+
name: "scripts",
|
|
1819
|
+
kind: "views",
|
|
1820
|
+
view: "inspected-script",
|
|
1821
|
+
required: true
|
|
1822
|
+
}]
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
name: "inspected-script",
|
|
1826
|
+
fields: [
|
|
1827
|
+
{
|
|
1828
|
+
name: "name",
|
|
1829
|
+
kind: "text",
|
|
1830
|
+
required: true
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
name: "disabledGrants",
|
|
1834
|
+
kind: "texts",
|
|
1835
|
+
required: false
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
name: "forbidSuspension",
|
|
1839
|
+
kind: "bool",
|
|
1840
|
+
required: false
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
name: "vars",
|
|
1844
|
+
kind: "pairs",
|
|
1845
|
+
required: true
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
name: "runs",
|
|
1849
|
+
kind: "views",
|
|
1850
|
+
view: "inspected-run",
|
|
1851
|
+
required: true
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
name: "mailbox",
|
|
1855
|
+
kind: "views",
|
|
1856
|
+
view: "inspected-message",
|
|
1857
|
+
required: true
|
|
1858
|
+
}
|
|
1859
|
+
]
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
name: "inspected-run",
|
|
1863
|
+
fields: [
|
|
1864
|
+
{
|
|
1865
|
+
name: "id",
|
|
1866
|
+
kind: "text",
|
|
1867
|
+
required: true
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
name: "status",
|
|
1871
|
+
kind: "text",
|
|
1872
|
+
required: true
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
name: "handler",
|
|
1876
|
+
kind: "text",
|
|
1877
|
+
required: true
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
name: "wait",
|
|
1881
|
+
kind: "text",
|
|
1882
|
+
required: false
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
name: "until",
|
|
1886
|
+
kind: "instant",
|
|
1887
|
+
required: false
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
name: "calls",
|
|
1891
|
+
kind: "texts",
|
|
1892
|
+
required: false
|
|
1893
|
+
}
|
|
1894
|
+
]
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
name: "inspected-message",
|
|
1898
|
+
fields: [
|
|
1899
|
+
{
|
|
1900
|
+
name: "delivery",
|
|
1901
|
+
kind: "text",
|
|
1902
|
+
required: false
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
name: "from",
|
|
1906
|
+
kind: "text",
|
|
1907
|
+
required: false
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
name: "message",
|
|
1911
|
+
kind: "message",
|
|
1912
|
+
required: true
|
|
1913
|
+
}
|
|
1914
|
+
]
|
|
1915
|
+
}
|
|
1916
|
+
];
|
|
1739
1917
|
//#endregion
|
|
1740
1918
|
//#region src/request-pump-binary.ts
|
|
1741
|
-
const requestPumpFeature =
|
|
1742
|
-
const callbacksFeature =
|
|
1919
|
+
const requestPumpFeature = envelopeFeature.requestPumpFieldsV1;
|
|
1920
|
+
const callbacksFeature = envelopeFeature.callbacksFieldsV1;
|
|
1743
1921
|
const prefix = [
|
|
1744
1922
|
78,
|
|
1745
1923
|
84,
|
|
@@ -2249,4 +2427,4 @@ const decodeNeed = (buffer, o) => {
|
|
|
2249
2427
|
return decode(buffer, o, (item) => valueNode(itemValue(item, o)));
|
|
2250
2428
|
};
|
|
2251
2429
|
//#endregion
|
|
2252
|
-
export { encodeResult as a, isRequestPumpBinary as c, valueNode as d,
|
|
2430
|
+
export { encodeResult as a, isRequestPumpBinary as c, valueNode as d, envelopeJsonMessages as f, encodeBinaryValue as g, decodeBinaryValue as h, encodeBinaryFrame as i, placeholderValues as l, envelopeViews as m, decodeBinaryFrame as n, heldValue as o, envelopeMessages as p, decodeNeed as r, isBinaryNeed as s, callbacksFeature as t, requestPumpFeature as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { E as RestoreResult, I as TsRestoreOptions, J as Value, Mt as GrantContext, O as SaveOptions, P as TsGroup, bt as Call, tn as Group } from "./debug-
|
|
3
|
-
import { t as TsCore } from "./core-
|
|
2
|
+
import { E as RestoreResult, I as TsRestoreOptions, J as Value, Mt as GrantContext, O as SaveOptions, P as TsGroup, bt as Call, tn as Group } from "./debug-2yfUZYzF.js";
|
|
3
|
+
import { t as TsCore } from "./core-Dwec7SRy.js";
|
|
4
4
|
//#region src/notify/router.d.ts
|
|
5
5
|
/** A Store's four limits on its watches (Store Notifications, Limits). */
|
|
6
6
|
type WatchLimits = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { L as map, P as listValues, i as ScriptError, it as text, t as HostError, u as bool } from "./errors-CNc-xY_9.js";
|
|
3
|
-
import { Q as sizeOf, ut as compareText } from "./operations-
|
|
4
|
-
import { t as encodeValue } from "./encoding-
|
|
5
|
-
import { n as sha256 } from "./sha256-
|
|
6
|
-
import { n as hostScriptError } from "./store-capability-
|
|
3
|
+
import { Q as sizeOf, ut as compareText } from "./operations-DrsedOvj.js";
|
|
4
|
+
import { t as encodeValue } from "./encoding-DlMqlP2Y.js";
|
|
5
|
+
import { n as sha256 } from "./sha256-C5Lqj5U7.js";
|
|
6
|
+
import { n as hostScriptError } from "./store-capability-Db6v_dw9.js";
|
|
7
7
|
//#region src/notify/router.ts
|
|
8
8
|
/**
|
|
9
9
|
* Whether a commit changed a key's value: compared by the bytes of the Value
|
package/session.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { J as Value } from "./debug-
|
|
3
|
-
import { C as Setup, _ as UserPrompt, a as ReplayOptions, c as parseTranscript, d as DebugAction, f as MOCK_ARGUMENTS, g as SourcePlacement, h as SessionHost, i as parseEnvelope, l as replayTranscript, m as SessionEnvironment, n as ObjectReference, o as Replayed, p as Mock, r as SessionObjects, s as TranscriptItem, t as Envelope, u as writeTranscript, v as Waiting } from "./objects-
|
|
2
|
+
import { J as Value } from "./debug-2yfUZYzF.js";
|
|
3
|
+
import { C as Setup, _ as UserPrompt, a as ReplayOptions, c as parseTranscript, d as DebugAction, f as MOCK_ARGUMENTS, g as SourcePlacement, h as SessionHost, i as parseEnvelope, l as replayTranscript, m as SessionEnvironment, n as ObjectReference, o as Replayed, p as Mock, r as SessionObjects, s as TranscriptItem, t as Envelope, u as writeTranscript, v as Waiting } from "./objects-DoyEohtr.js";
|
|
4
4
|
//#region src/session/describe.d.ts
|
|
5
5
|
/** One declaration of the session source, as `:describe` reads it. */
|
|
6
6
|
type DeclaredName = {
|