@rivetkit/engine-envoy-protocol 0.0.0-main.41efcce → 0.0.0-main.4994268

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 (3) hide show
  1. package/dist/index.d.ts +210 -165
  2. package/dist/index.js +641 -368
  3. package/package.json +4 -2
package/dist/index.js CHANGED
@@ -366,28 +366,16 @@ function writeKvResponseData(bc, x) {
366
366
  }
367
367
  }
368
368
  }
369
- function readSqliteGeneration(bc) {
370
- return bare.readU64(bc);
371
- }
372
- function writeSqliteGeneration(bc, x) {
373
- bare.writeU64(bc, x);
374
- }
375
- function readSqliteTxid(bc) {
376
- return bare.readU64(bc);
377
- }
378
- function writeSqliteTxid(bc, x) {
379
- bare.writeU64(bc, x);
380
- }
381
369
  function readSqlitePgno(bc) {
382
370
  return bare.readU32(bc);
383
371
  }
384
372
  function writeSqlitePgno(bc, x) {
385
373
  bare.writeU32(bc, x);
386
374
  }
387
- function readSqliteStageId(bc) {
375
+ function readSqliteGeneration(bc) {
388
376
  return bare.readU64(bc);
389
377
  }
390
- function writeSqliteStageId(bc, x) {
378
+ function writeSqliteGeneration(bc, x) {
391
379
  bare.writeU64(bc, x);
392
380
  }
393
381
  function readSqlitePageBytes(bc) {
@@ -396,36 +384,6 @@ function readSqlitePageBytes(bc) {
396
384
  function writeSqlitePageBytes(bc, x) {
397
385
  bare.writeData(bc, x);
398
386
  }
399
- function readSqliteMeta(bc) {
400
- return {
401
- generation: readSqliteGeneration(bc),
402
- headTxid: readSqliteTxid(bc),
403
- materializedTxid: readSqliteTxid(bc),
404
- dbSizePages: bare.readU32(bc),
405
- pageSize: bare.readU32(bc),
406
- creationTsMs: bare.readI64(bc),
407
- maxDeltaBytes: bare.readU64(bc)
408
- };
409
- }
410
- function writeSqliteMeta(bc, x) {
411
- writeSqliteGeneration(bc, x.generation);
412
- writeSqliteTxid(bc, x.headTxid);
413
- writeSqliteTxid(bc, x.materializedTxid);
414
- bare.writeU32(bc, x.dbSizePages);
415
- bare.writeU32(bc, x.pageSize);
416
- bare.writeI64(bc, x.creationTsMs);
417
- bare.writeU64(bc, x.maxDeltaBytes);
418
- }
419
- function readSqliteFenceMismatch(bc) {
420
- return {
421
- actualMeta: readSqliteMeta(bc),
422
- reason: bare.readString(bc)
423
- };
424
- }
425
- function writeSqliteFenceMismatch(bc, x) {
426
- writeSqliteMeta(bc, x.actualMeta);
427
- bare.writeString(bc, x.reason);
428
- }
429
387
  function readSqliteDirtyPage(bc) {
430
388
  return {
431
389
  pgno: readSqlitePgno(bc),
@@ -475,14 +433,16 @@ function write6(bc, x) {
475
433
  function readSqliteGetPagesRequest(bc) {
476
434
  return {
477
435
  actorId: readId(bc),
478
- generation: readSqliteGeneration(bc),
479
- pgnos: read6(bc)
436
+ pgnos: read6(bc),
437
+ expectedGeneration: read2(bc),
438
+ expectedHeadTxid: read2(bc)
480
439
  };
481
440
  }
482
441
  function writeSqliteGetPagesRequest(bc, x) {
483
442
  writeId(bc, x.actorId);
484
- writeSqliteGeneration(bc, x.generation);
485
443
  write6(bc, x.pgnos);
444
+ write2(bc, x.expectedGeneration);
445
+ write2(bc, x.expectedHeadTxid);
486
446
  }
487
447
  function read7(bc) {
488
448
  const len = bare.readUintSafe(bc);
@@ -504,19 +464,23 @@ function write7(bc, x) {
504
464
  function readSqliteGetPagesOk(bc) {
505
465
  return {
506
466
  pages: read7(bc),
507
- meta: readSqliteMeta(bc)
467
+ headTxid: read2(bc)
508
468
  };
509
469
  }
510
470
  function writeSqliteGetPagesOk(bc, x) {
511
471
  write7(bc, x.pages);
512
- writeSqliteMeta(bc, x.meta);
472
+ write2(bc, x.headTxid);
513
473
  }
514
474
  function readSqliteErrorResponse(bc) {
515
475
  return {
476
+ group: bare.readString(bc),
477
+ code: bare.readString(bc),
516
478
  message: bare.readString(bc)
517
479
  };
518
480
  }
519
481
  function writeSqliteErrorResponse(bc, x) {
482
+ bare.writeString(bc, x.group);
483
+ bare.writeString(bc, x.code);
520
484
  bare.writeString(bc, x.message);
521
485
  }
522
486
  function readSqliteGetPagesResponse(bc) {
@@ -526,8 +490,6 @@ function readSqliteGetPagesResponse(bc) {
526
490
  case 0:
527
491
  return { tag: "SqliteGetPagesOk", val: readSqliteGetPagesOk(bc) };
528
492
  case 1:
529
- return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
530
- case 2:
531
493
  return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
532
494
  default: {
533
495
  bc.offset = offset;
@@ -542,13 +504,8 @@ function writeSqliteGetPagesResponse(bc, x) {
542
504
  writeSqliteGetPagesOk(bc, x.val);
543
505
  break;
544
506
  }
545
- case "SqliteFenceMismatch": {
546
- bare.writeU8(bc, 1);
547
- writeSqliteFenceMismatch(bc, x.val);
548
- break;
549
- }
550
507
  case "SqliteErrorResponse": {
551
- bare.writeU8(bc, 2);
508
+ bare.writeU8(bc, 1);
552
509
  writeSqliteErrorResponse(bc, x.val);
553
510
  break;
554
511
  }
@@ -574,38 +531,28 @@ function write8(bc, x) {
574
531
  function readSqliteCommitRequest(bc) {
575
532
  return {
576
533
  actorId: readId(bc),
577
- generation: readSqliteGeneration(bc),
578
- expectedHeadTxid: readSqliteTxid(bc),
579
534
  dirtyPages: read8(bc),
580
- newDbSizePages: bare.readU32(bc)
535
+ dbSizePages: bare.readU32(bc),
536
+ nowMs: bare.readI64(bc),
537
+ expectedGeneration: read2(bc),
538
+ expectedHeadTxid: read2(bc)
581
539
  };
582
540
  }
583
541
  function writeSqliteCommitRequest(bc, x) {
584
542
  writeId(bc, x.actorId);
585
- writeSqliteGeneration(bc, x.generation);
586
- writeSqliteTxid(bc, x.expectedHeadTxid);
587
543
  write8(bc, x.dirtyPages);
588
- bare.writeU32(bc, x.newDbSizePages);
544
+ bare.writeU32(bc, x.dbSizePages);
545
+ bare.writeI64(bc, x.nowMs);
546
+ write2(bc, x.expectedGeneration);
547
+ write2(bc, x.expectedHeadTxid);
589
548
  }
590
549
  function readSqliteCommitOk(bc) {
591
550
  return {
592
- newHeadTxid: readSqliteTxid(bc),
593
- meta: readSqliteMeta(bc)
551
+ headTxid: read2(bc)
594
552
  };
595
553
  }
596
554
  function writeSqliteCommitOk(bc, x) {
597
- writeSqliteTxid(bc, x.newHeadTxid);
598
- writeSqliteMeta(bc, x.meta);
599
- }
600
- function readSqliteCommitTooLarge(bc) {
601
- return {
602
- actualSizeBytes: bare.readU64(bc),
603
- maxSizeBytes: bare.readU64(bc)
604
- };
605
- }
606
- function writeSqliteCommitTooLarge(bc, x) {
607
- bare.writeU64(bc, x.actualSizeBytes);
608
- bare.writeU64(bc, x.maxSizeBytes);
555
+ write2(bc, x.headTxid);
609
556
  }
610
557
  function readSqliteCommitResponse(bc) {
611
558
  const offset = bc.offset;
@@ -614,10 +561,6 @@ function readSqliteCommitResponse(bc) {
614
561
  case 0:
615
562
  return { tag: "SqliteCommitOk", val: readSqliteCommitOk(bc) };
616
563
  case 1:
617
- return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
618
- case 2:
619
- return { tag: "SqliteCommitTooLarge", val: readSqliteCommitTooLarge(bc) };
620
- case 3:
621
564
  return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
622
565
  default: {
623
566
  bc.offset = offset;
@@ -632,182 +575,373 @@ function writeSqliteCommitResponse(bc, x) {
632
575
  writeSqliteCommitOk(bc, x.val);
633
576
  break;
634
577
  }
635
- case "SqliteFenceMismatch": {
636
- bare.writeU8(bc, 1);
637
- writeSqliteFenceMismatch(bc, x.val);
638
- break;
639
- }
640
- case "SqliteCommitTooLarge": {
641
- bare.writeU8(bc, 2);
642
- writeSqliteCommitTooLarge(bc, x.val);
643
- break;
644
- }
645
578
  case "SqliteErrorResponse": {
646
- bare.writeU8(bc, 3);
579
+ bare.writeU8(bc, 1);
647
580
  writeSqliteErrorResponse(bc, x.val);
648
581
  break;
649
582
  }
650
583
  }
651
584
  }
652
- function readSqliteCommitStageBeginRequest(bc) {
585
+ function readSqliteValueInteger(bc) {
653
586
  return {
654
- actorId: readId(bc),
655
- generation: readSqliteGeneration(bc)
587
+ value: bare.readI64(bc)
656
588
  };
657
589
  }
658
- function writeSqliteCommitStageBeginRequest(bc, x) {
659
- writeId(bc, x.actorId);
660
- writeSqliteGeneration(bc, x.generation);
590
+ function writeSqliteValueInteger(bc, x) {
591
+ bare.writeI64(bc, x.value);
592
+ }
593
+ function readSqliteValueFloat(bc) {
594
+ return {
595
+ value: bare.readFixedData(bc, 8)
596
+ };
597
+ }
598
+ function writeSqliteValueFloat(bc, x) {
599
+ {
600
+ assert(x.value.byteLength === 8);
601
+ bare.writeFixedData(bc, x.value);
602
+ }
603
+ }
604
+ function readSqliteValueText(bc) {
605
+ return {
606
+ value: bare.readString(bc)
607
+ };
608
+ }
609
+ function writeSqliteValueText(bc, x) {
610
+ bare.writeString(bc, x.value);
661
611
  }
662
- function readSqliteCommitStageBeginOk(bc) {
612
+ function readSqliteValueBlob(bc) {
663
613
  return {
664
- txid: readSqliteTxid(bc)
614
+ value: bare.readData(bc)
665
615
  };
666
616
  }
667
- function writeSqliteCommitStageBeginOk(bc, x) {
668
- writeSqliteTxid(bc, x.txid);
617
+ function writeSqliteValueBlob(bc, x) {
618
+ bare.writeData(bc, x.value);
669
619
  }
670
- function readSqliteCommitStageBeginResponse(bc) {
620
+ function readSqliteBindParam(bc) {
671
621
  const offset = bc.offset;
672
622
  const tag = bare.readU8(bc);
673
623
  switch (tag) {
674
624
  case 0:
675
- return { tag: "SqliteCommitStageBeginOk", val: readSqliteCommitStageBeginOk(bc) };
625
+ return { tag: "SqliteValueNull", val: null };
676
626
  case 1:
677
- return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
627
+ return { tag: "SqliteValueInteger", val: readSqliteValueInteger(bc) };
678
628
  case 2:
679
- return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
629
+ return { tag: "SqliteValueFloat", val: readSqliteValueFloat(bc) };
630
+ case 3:
631
+ return { tag: "SqliteValueText", val: readSqliteValueText(bc) };
632
+ case 4:
633
+ return { tag: "SqliteValueBlob", val: readSqliteValueBlob(bc) };
680
634
  default: {
681
635
  bc.offset = offset;
682
636
  throw new bare.BareError(offset, "invalid tag");
683
637
  }
684
638
  }
685
639
  }
686
- function writeSqliteCommitStageBeginResponse(bc, x) {
640
+ function writeSqliteBindParam(bc, x) {
687
641
  switch (x.tag) {
688
- case "SqliteCommitStageBeginOk": {
642
+ case "SqliteValueNull": {
689
643
  bare.writeU8(bc, 0);
690
- writeSqliteCommitStageBeginOk(bc, x.val);
691
644
  break;
692
645
  }
693
- case "SqliteFenceMismatch": {
646
+ case "SqliteValueInteger": {
694
647
  bare.writeU8(bc, 1);
695
- writeSqliteFenceMismatch(bc, x.val);
648
+ writeSqliteValueInteger(bc, x.val);
696
649
  break;
697
650
  }
698
- case "SqliteErrorResponse": {
651
+ case "SqliteValueFloat": {
699
652
  bare.writeU8(bc, 2);
700
- writeSqliteErrorResponse(bc, x.val);
653
+ writeSqliteValueFloat(bc, x.val);
654
+ break;
655
+ }
656
+ case "SqliteValueText": {
657
+ bare.writeU8(bc, 3);
658
+ writeSqliteValueText(bc, x.val);
659
+ break;
660
+ }
661
+ case "SqliteValueBlob": {
662
+ bare.writeU8(bc, 4);
663
+ writeSqliteValueBlob(bc, x.val);
701
664
  break;
702
665
  }
703
666
  }
704
667
  }
705
- function readSqliteCommitStageRequest(bc) {
706
- return {
707
- actorId: readId(bc),
708
- generation: readSqliteGeneration(bc),
709
- txid: readSqliteTxid(bc),
710
- chunkIdx: bare.readU32(bc),
711
- bytes: bare.readData(bc),
712
- isLast: bare.readBool(bc)
713
- };
714
- }
715
- function writeSqliteCommitStageRequest(bc, x) {
716
- writeId(bc, x.actorId);
717
- writeSqliteGeneration(bc, x.generation);
718
- writeSqliteTxid(bc, x.txid);
719
- bare.writeU32(bc, x.chunkIdx);
720
- bare.writeData(bc, x.bytes);
721
- bare.writeBool(bc, x.isLast);
722
- }
723
- function readSqliteCommitStageOk(bc) {
724
- return {
725
- chunkIdxCommitted: bare.readU32(bc)
726
- };
727
- }
728
- function writeSqliteCommitStageOk(bc, x) {
729
- bare.writeU32(bc, x.chunkIdxCommitted);
730
- }
731
- function readSqliteCommitStageResponse(bc) {
668
+ function readSqliteColumnValue(bc) {
732
669
  const offset = bc.offset;
733
670
  const tag = bare.readU8(bc);
734
671
  switch (tag) {
735
672
  case 0:
736
- return { tag: "SqliteCommitStageOk", val: readSqliteCommitStageOk(bc) };
673
+ return { tag: "SqliteValueNull", val: null };
737
674
  case 1:
738
- return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
675
+ return { tag: "SqliteValueInteger", val: readSqliteValueInteger(bc) };
739
676
  case 2:
740
- return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
677
+ return { tag: "SqliteValueFloat", val: readSqliteValueFloat(bc) };
678
+ case 3:
679
+ return { tag: "SqliteValueText", val: readSqliteValueText(bc) };
680
+ case 4:
681
+ return { tag: "SqliteValueBlob", val: readSqliteValueBlob(bc) };
741
682
  default: {
742
683
  bc.offset = offset;
743
684
  throw new bare.BareError(offset, "invalid tag");
744
685
  }
745
686
  }
746
687
  }
747
- function writeSqliteCommitStageResponse(bc, x) {
688
+ function writeSqliteColumnValue(bc, x) {
748
689
  switch (x.tag) {
749
- case "SqliteCommitStageOk": {
690
+ case "SqliteValueNull": {
750
691
  bare.writeU8(bc, 0);
751
- writeSqliteCommitStageOk(bc, x.val);
752
692
  break;
753
693
  }
754
- case "SqliteFenceMismatch": {
694
+ case "SqliteValueInteger": {
755
695
  bare.writeU8(bc, 1);
756
- writeSqliteFenceMismatch(bc, x.val);
696
+ writeSqliteValueInteger(bc, x.val);
757
697
  break;
758
698
  }
759
- case "SqliteErrorResponse": {
699
+ case "SqliteValueFloat": {
760
700
  bare.writeU8(bc, 2);
761
- writeSqliteErrorResponse(bc, x.val);
701
+ writeSqliteValueFloat(bc, x.val);
702
+ break;
703
+ }
704
+ case "SqliteValueText": {
705
+ bare.writeU8(bc, 3);
706
+ writeSqliteValueText(bc, x.val);
707
+ break;
708
+ }
709
+ case "SqliteValueBlob": {
710
+ bare.writeU8(bc, 4);
711
+ writeSqliteValueBlob(bc, x.val);
762
712
  break;
763
713
  }
764
714
  }
765
715
  }
766
- function readSqliteCommitFinalizeRequest(bc) {
716
+ function read9(bc) {
717
+ const len = bare.readUintSafe(bc);
718
+ if (len === 0) {
719
+ return [];
720
+ }
721
+ const result = [bare.readString(bc)];
722
+ for (let i = 1; i < len; i++) {
723
+ result[i] = bare.readString(bc);
724
+ }
725
+ return result;
726
+ }
727
+ function write9(bc, x) {
728
+ bare.writeUintSafe(bc, x.length);
729
+ for (let i = 0; i < x.length; i++) {
730
+ bare.writeString(bc, x[i]);
731
+ }
732
+ }
733
+ function read10(bc) {
734
+ const len = bare.readUintSafe(bc);
735
+ if (len === 0) {
736
+ return [];
737
+ }
738
+ const result = [readSqliteColumnValue(bc)];
739
+ for (let i = 1; i < len; i++) {
740
+ result[i] = readSqliteColumnValue(bc);
741
+ }
742
+ return result;
743
+ }
744
+ function write10(bc, x) {
745
+ bare.writeUintSafe(bc, x.length);
746
+ for (let i = 0; i < x.length; i++) {
747
+ writeSqliteColumnValue(bc, x[i]);
748
+ }
749
+ }
750
+ function read11(bc) {
751
+ const len = bare.readUintSafe(bc);
752
+ if (len === 0) {
753
+ return [];
754
+ }
755
+ const result = [read10(bc)];
756
+ for (let i = 1; i < len; i++) {
757
+ result[i] = read10(bc);
758
+ }
759
+ return result;
760
+ }
761
+ function write11(bc, x) {
762
+ bare.writeUintSafe(bc, x.length);
763
+ for (let i = 0; i < x.length; i++) {
764
+ write10(bc, x[i]);
765
+ }
766
+ }
767
+ function readSqliteQueryResult(bc) {
768
+ return {
769
+ columns: read9(bc),
770
+ rows: read11(bc)
771
+ };
772
+ }
773
+ function writeSqliteQueryResult(bc, x) {
774
+ write9(bc, x.columns);
775
+ write11(bc, x.rows);
776
+ }
777
+ function read12(bc) {
778
+ return bare.readBool(bc) ? bare.readI64(bc) : null;
779
+ }
780
+ function write12(bc, x) {
781
+ bare.writeBool(bc, x != null);
782
+ if (x != null) {
783
+ bare.writeI64(bc, x);
784
+ }
785
+ }
786
+ function readSqliteExecuteResult(bc) {
767
787
  return {
788
+ columns: read9(bc),
789
+ rows: read11(bc),
790
+ changes: bare.readI64(bc),
791
+ lastInsertRowId: read12(bc)
792
+ };
793
+ }
794
+ function writeSqliteExecuteResult(bc, x) {
795
+ write9(bc, x.columns);
796
+ write11(bc, x.rows);
797
+ bare.writeI64(bc, x.changes);
798
+ write12(bc, x.lastInsertRowId);
799
+ }
800
+ function readSqliteExecRequest(bc) {
801
+ return {
802
+ namespaceId: readId(bc),
768
803
  actorId: readId(bc),
769
804
  generation: readSqliteGeneration(bc),
770
- expectedHeadTxid: readSqliteTxid(bc),
771
- txid: readSqliteTxid(bc),
772
- newDbSizePages: bare.readU32(bc)
805
+ sql: bare.readString(bc)
773
806
  };
774
807
  }
775
- function writeSqliteCommitFinalizeRequest(bc, x) {
808
+ function writeSqliteExecRequest(bc, x) {
809
+ writeId(bc, x.namespaceId);
776
810
  writeId(bc, x.actorId);
777
811
  writeSqliteGeneration(bc, x.generation);
778
- writeSqliteTxid(bc, x.expectedHeadTxid);
779
- writeSqliteTxid(bc, x.txid);
780
- bare.writeU32(bc, x.newDbSizePages);
812
+ bare.writeString(bc, x.sql);
781
813
  }
782
- function readSqliteCommitFinalizeOk(bc) {
814
+ function read13(bc) {
815
+ const len = bare.readUintSafe(bc);
816
+ if (len === 0) {
817
+ return [];
818
+ }
819
+ const result = [readSqliteBindParam(bc)];
820
+ for (let i = 1; i < len; i++) {
821
+ result[i] = readSqliteBindParam(bc);
822
+ }
823
+ return result;
824
+ }
825
+ function write13(bc, x) {
826
+ bare.writeUintSafe(bc, x.length);
827
+ for (let i = 0; i < x.length; i++) {
828
+ writeSqliteBindParam(bc, x[i]);
829
+ }
830
+ }
831
+ function read14(bc) {
832
+ return bare.readBool(bc) ? read13(bc) : null;
833
+ }
834
+ function write14(bc, x) {
835
+ bare.writeBool(bc, x != null);
836
+ if (x != null) {
837
+ write13(bc, x);
838
+ }
839
+ }
840
+ function readSqliteExecuteRequest(bc) {
783
841
  return {
784
- newHeadTxid: readSqliteTxid(bc),
785
- meta: readSqliteMeta(bc)
842
+ namespaceId: readId(bc),
843
+ actorId: readId(bc),
844
+ generation: readSqliteGeneration(bc),
845
+ sql: bare.readString(bc),
846
+ params: read14(bc)
786
847
  };
787
848
  }
788
- function writeSqliteCommitFinalizeOk(bc, x) {
789
- writeSqliteTxid(bc, x.newHeadTxid);
790
- writeSqliteMeta(bc, x.meta);
849
+ function writeSqliteExecuteRequest(bc, x) {
850
+ writeId(bc, x.namespaceId);
851
+ writeId(bc, x.actorId);
852
+ writeSqliteGeneration(bc, x.generation);
853
+ bare.writeString(bc, x.sql);
854
+ write14(bc, x.params);
791
855
  }
792
- function readSqliteStageNotFound(bc) {
856
+ function readSqliteBatchStatement(bc) {
793
857
  return {
794
- stageId: readSqliteStageId(bc)
858
+ sql: bare.readString(bc),
859
+ params: read14(bc)
795
860
  };
796
861
  }
797
- function writeSqliteStageNotFound(bc, x) {
798
- writeSqliteStageId(bc, x.stageId);
862
+ function writeSqliteBatchStatement(bc, x) {
863
+ bare.writeString(bc, x.sql);
864
+ write14(bc, x.params);
799
865
  }
800
- function readSqliteCommitFinalizeResponse(bc) {
866
+ function read15(bc) {
867
+ const len = bare.readUintSafe(bc);
868
+ if (len === 0) {
869
+ return [];
870
+ }
871
+ const result = [readSqliteBatchStatement(bc)];
872
+ for (let i = 1; i < len; i++) {
873
+ result[i] = readSqliteBatchStatement(bc);
874
+ }
875
+ return result;
876
+ }
877
+ function write15(bc, x) {
878
+ bare.writeUintSafe(bc, x.length);
879
+ for (let i = 0; i < x.length; i++) {
880
+ writeSqliteBatchStatement(bc, x[i]);
881
+ }
882
+ }
883
+ function readSqliteExecuteBatchRequest(bc) {
884
+ return {
885
+ namespaceId: readId(bc),
886
+ actorId: readId(bc),
887
+ generation: readSqliteGeneration(bc),
888
+ statements: read15(bc)
889
+ };
890
+ }
891
+ function writeSqliteExecuteBatchRequest(bc, x) {
892
+ writeId(bc, x.namespaceId);
893
+ writeId(bc, x.actorId);
894
+ writeSqliteGeneration(bc, x.generation);
895
+ write15(bc, x.statements);
896
+ }
897
+ function readSqliteExecOk(bc) {
898
+ return {
899
+ result: readSqliteQueryResult(bc)
900
+ };
901
+ }
902
+ function writeSqliteExecOk(bc, x) {
903
+ writeSqliteQueryResult(bc, x.result);
904
+ }
905
+ function readSqliteExecuteOk(bc) {
906
+ return {
907
+ result: readSqliteExecuteResult(bc)
908
+ };
909
+ }
910
+ function writeSqliteExecuteOk(bc, x) {
911
+ writeSqliteExecuteResult(bc, x.result);
912
+ }
913
+ function read16(bc) {
914
+ const len = bare.readUintSafe(bc);
915
+ if (len === 0) {
916
+ return [];
917
+ }
918
+ const result = [readSqliteExecuteResult(bc)];
919
+ for (let i = 1; i < len; i++) {
920
+ result[i] = readSqliteExecuteResult(bc);
921
+ }
922
+ return result;
923
+ }
924
+ function write16(bc, x) {
925
+ bare.writeUintSafe(bc, x.length);
926
+ for (let i = 0; i < x.length; i++) {
927
+ writeSqliteExecuteResult(bc, x[i]);
928
+ }
929
+ }
930
+ function readSqliteExecuteBatchOk(bc) {
931
+ return {
932
+ results: read16(bc)
933
+ };
934
+ }
935
+ function writeSqliteExecuteBatchOk(bc, x) {
936
+ write16(bc, x.results);
937
+ }
938
+ function readSqliteExecResponse(bc) {
801
939
  const offset = bc.offset;
802
940
  const tag = bare.readU8(bc);
803
941
  switch (tag) {
804
942
  case 0:
805
- return { tag: "SqliteCommitFinalizeOk", val: readSqliteCommitFinalizeOk(bc) };
943
+ return { tag: "SqliteExecOk", val: readSqliteExecOk(bc) };
806
944
  case 1:
807
- return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
808
- case 2:
809
- return { tag: "SqliteStageNotFound", val: readSqliteStageNotFound(bc) };
810
- case 3:
811
945
  return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
812
946
  default: {
813
947
  bc.offset = offset;
@@ -815,41 +949,75 @@ function readSqliteCommitFinalizeResponse(bc) {
815
949
  }
816
950
  }
817
951
  }
818
- function writeSqliteCommitFinalizeResponse(bc, x) {
952
+ function writeSqliteExecResponse(bc, x) {
819
953
  switch (x.tag) {
820
- case "SqliteCommitFinalizeOk": {
954
+ case "SqliteExecOk": {
821
955
  bare.writeU8(bc, 0);
822
- writeSqliteCommitFinalizeOk(bc, x.val);
956
+ writeSqliteExecOk(bc, x.val);
823
957
  break;
824
958
  }
825
- case "SqliteFenceMismatch": {
959
+ case "SqliteErrorResponse": {
826
960
  bare.writeU8(bc, 1);
827
- writeSqliteFenceMismatch(bc, x.val);
961
+ writeSqliteErrorResponse(bc, x.val);
828
962
  break;
829
963
  }
830
- case "SqliteStageNotFound": {
831
- bare.writeU8(bc, 2);
832
- writeSqliteStageNotFound(bc, x.val);
964
+ }
965
+ }
966
+ function readSqliteExecuteResponse(bc) {
967
+ const offset = bc.offset;
968
+ const tag = bare.readU8(bc);
969
+ switch (tag) {
970
+ case 0:
971
+ return { tag: "SqliteExecuteOk", val: readSqliteExecuteOk(bc) };
972
+ case 1:
973
+ return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
974
+ default: {
975
+ bc.offset = offset;
976
+ throw new bare.BareError(offset, "invalid tag");
977
+ }
978
+ }
979
+ }
980
+ function writeSqliteExecuteResponse(bc, x) {
981
+ switch (x.tag) {
982
+ case "SqliteExecuteOk": {
983
+ bare.writeU8(bc, 0);
984
+ writeSqliteExecuteOk(bc, x.val);
833
985
  break;
834
986
  }
835
987
  case "SqliteErrorResponse": {
836
- bare.writeU8(bc, 3);
988
+ bare.writeU8(bc, 1);
837
989
  writeSqliteErrorResponse(bc, x.val);
838
990
  break;
839
991
  }
840
992
  }
841
993
  }
842
- function readSqliteStartupData(bc) {
843
- return {
844
- generation: readSqliteGeneration(bc),
845
- meta: readSqliteMeta(bc),
846
- preloadedPages: read7(bc)
847
- };
994
+ function readSqliteExecuteBatchResponse(bc) {
995
+ const offset = bc.offset;
996
+ const tag = bare.readU8(bc);
997
+ switch (tag) {
998
+ case 0:
999
+ return { tag: "SqliteExecuteBatchOk", val: readSqliteExecuteBatchOk(bc) };
1000
+ case 1:
1001
+ return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
1002
+ default: {
1003
+ bc.offset = offset;
1004
+ throw new bare.BareError(offset, "invalid tag");
1005
+ }
1006
+ }
848
1007
  }
849
- function writeSqliteStartupData(bc, x) {
850
- writeSqliteGeneration(bc, x.generation);
851
- writeSqliteMeta(bc, x.meta);
852
- write7(bc, x.preloadedPages);
1008
+ function writeSqliteExecuteBatchResponse(bc, x) {
1009
+ switch (x.tag) {
1010
+ case "SqliteExecuteBatchOk": {
1011
+ bare.writeU8(bc, 0);
1012
+ writeSqliteExecuteBatchOk(bc, x.val);
1013
+ break;
1014
+ }
1015
+ case "SqliteErrorResponse": {
1016
+ bare.writeU8(bc, 1);
1017
+ writeSqliteErrorResponse(bc, x.val);
1018
+ break;
1019
+ }
1020
+ }
853
1021
  }
854
1022
  var StopCode = /* @__PURE__ */ ((StopCode2) => {
855
1023
  StopCode2["Ok"] = "Ok";
@@ -890,19 +1058,19 @@ function readActorName(bc) {
890
1058
  function writeActorName(bc, x) {
891
1059
  writeJson(bc, x.metadata);
892
1060
  }
893
- function read9(bc) {
1061
+ function read17(bc) {
894
1062
  return bare.readBool(bc) ? bare.readString(bc) : null;
895
1063
  }
896
- function write9(bc, x) {
1064
+ function write17(bc, x) {
897
1065
  bare.writeBool(bc, x != null);
898
1066
  if (x != null) {
899
1067
  bare.writeString(bc, x);
900
1068
  }
901
1069
  }
902
- function read10(bc) {
1070
+ function read18(bc) {
903
1071
  return bare.readBool(bc) ? bare.readData(bc) : null;
904
1072
  }
905
- function write10(bc, x) {
1073
+ function write18(bc, x) {
906
1074
  bare.writeBool(bc, x != null);
907
1075
  if (x != null) {
908
1076
  bare.writeData(bc, x);
@@ -911,16 +1079,16 @@ function write10(bc, x) {
911
1079
  function readActorConfig(bc) {
912
1080
  return {
913
1081
  name: bare.readString(bc),
914
- key: read9(bc),
1082
+ key: read17(bc),
915
1083
  createTs: bare.readI64(bc),
916
- input: read10(bc)
1084
+ input: read18(bc)
917
1085
  };
918
1086
  }
919
1087
  function writeActorConfig(bc, x) {
920
1088
  bare.writeString(bc, x.name);
921
- write9(bc, x.key);
1089
+ write17(bc, x.key);
922
1090
  bare.writeI64(bc, x.createTs);
923
- write10(bc, x.input);
1091
+ write18(bc, x.input);
924
1092
  }
925
1093
  function readActorCheckpoint(bc) {
926
1094
  return {
@@ -963,12 +1131,12 @@ function writeActorIntent(bc, x) {
963
1131
  function readActorStateStopped(bc) {
964
1132
  return {
965
1133
  code: readStopCode(bc),
966
- message: read9(bc)
1134
+ message: read17(bc)
967
1135
  };
968
1136
  }
969
1137
  function writeActorStateStopped(bc, x) {
970
1138
  writeStopCode(bc, x.code);
971
- write9(bc, x.message);
1139
+ write17(bc, x.message);
972
1140
  }
973
1141
  function readActorState(bc) {
974
1142
  const offset = bc.offset;
@@ -1013,22 +1181,13 @@ function readEventActorStateUpdate(bc) {
1013
1181
  function writeEventActorStateUpdate(bc, x) {
1014
1182
  writeActorState(bc, x.state);
1015
1183
  }
1016
- function read11(bc) {
1017
- return bare.readBool(bc) ? bare.readI64(bc) : null;
1018
- }
1019
- function write11(bc, x) {
1020
- bare.writeBool(bc, x != null);
1021
- if (x != null) {
1022
- bare.writeI64(bc, x);
1023
- }
1024
- }
1025
1184
  function readEventActorSetAlarm(bc) {
1026
1185
  return {
1027
- alarmTs: read11(bc)
1186
+ alarmTs: read12(bc)
1028
1187
  };
1029
1188
  }
1030
1189
  function writeEventActorSetAlarm(bc, x) {
1031
- write11(bc, x.alarmTs);
1190
+ write12(bc, x.alarmTs);
1032
1191
  }
1033
1192
  function readEvent(bc) {
1034
1193
  const offset = bc.offset;
@@ -1087,7 +1246,7 @@ function writePreloadedKvEntry(bc, x) {
1087
1246
  writeKvValue(bc, x.value);
1088
1247
  writeKvMetadata(bc, x.metadata);
1089
1248
  }
1090
- function read12(bc) {
1249
+ function read19(bc) {
1091
1250
  const len = bare.readUintSafe(bc);
1092
1251
  if (len === 0) {
1093
1252
  return [];
@@ -1098,7 +1257,7 @@ function read12(bc) {
1098
1257
  }
1099
1258
  return result;
1100
1259
  }
1101
- function write12(bc, x) {
1260
+ function write19(bc, x) {
1102
1261
  bare.writeUintSafe(bc, x.length);
1103
1262
  for (let i = 0; i < x.length; i++) {
1104
1263
  writePreloadedKvEntry(bc, x[i]);
@@ -1106,13 +1265,13 @@ function write12(bc, x) {
1106
1265
  }
1107
1266
  function readPreloadedKv(bc) {
1108
1267
  return {
1109
- entries: read12(bc),
1268
+ entries: read19(bc),
1110
1269
  requestedGetKeys: read0(bc),
1111
1270
  requestedPrefixes: read0(bc)
1112
1271
  };
1113
1272
  }
1114
1273
  function writePreloadedKv(bc, x) {
1115
- write12(bc, x.entries);
1274
+ write19(bc, x.entries);
1116
1275
  write0(bc, x.requestedGetKeys);
1117
1276
  write0(bc, x.requestedPrefixes);
1118
1277
  }
@@ -1126,7 +1285,7 @@ function writeHibernatingRequest(bc, x) {
1126
1285
  writeGatewayId(bc, x.gatewayId);
1127
1286
  writeRequestId(bc, x.requestId);
1128
1287
  }
1129
- function read13(bc) {
1288
+ function read20(bc) {
1130
1289
  const len = bare.readUintSafe(bc);
1131
1290
  if (len === 0) {
1132
1291
  return [];
@@ -1137,43 +1296,32 @@ function read13(bc) {
1137
1296
  }
1138
1297
  return result;
1139
1298
  }
1140
- function write13(bc, x) {
1299
+ function write20(bc, x) {
1141
1300
  bare.writeUintSafe(bc, x.length);
1142
1301
  for (let i = 0; i < x.length; i++) {
1143
1302
  writeHibernatingRequest(bc, x[i]);
1144
1303
  }
1145
1304
  }
1146
- function read14(bc) {
1305
+ function read21(bc) {
1147
1306
  return bare.readBool(bc) ? readPreloadedKv(bc) : null;
1148
1307
  }
1149
- function write14(bc, x) {
1308
+ function write21(bc, x) {
1150
1309
  bare.writeBool(bc, x != null);
1151
1310
  if (x != null) {
1152
1311
  writePreloadedKv(bc, x);
1153
1312
  }
1154
1313
  }
1155
- function read15(bc) {
1156
- return bare.readBool(bc) ? readSqliteStartupData(bc) : null;
1157
- }
1158
- function write15(bc, x) {
1159
- bare.writeBool(bc, x != null);
1160
- if (x != null) {
1161
- writeSqliteStartupData(bc, x);
1162
- }
1163
- }
1164
1314
  function readCommandStartActor(bc) {
1165
1315
  return {
1166
1316
  config: readActorConfig(bc),
1167
- hibernatingRequests: read13(bc),
1168
- preloadedKv: read14(bc),
1169
- sqliteStartupData: read15(bc)
1317
+ hibernatingRequests: read20(bc),
1318
+ preloadedKv: read21(bc)
1170
1319
  };
1171
1320
  }
1172
1321
  function writeCommandStartActor(bc, x) {
1173
1322
  writeActorConfig(bc, x.config);
1174
- write13(bc, x.hibernatingRequests);
1175
- write14(bc, x.preloadedKv);
1176
- write15(bc, x.sqliteStartupData);
1323
+ write20(bc, x.hibernatingRequests);
1324
+ write21(bc, x.preloadedKv);
1177
1325
  }
1178
1326
  var StopActorReason = /* @__PURE__ */ ((StopActorReason2) => {
1179
1327
  StopActorReason2["SleepIntent"] = "SleepIntent";
@@ -1330,7 +1478,7 @@ function writeMessageId(bc, x) {
1330
1478
  writeRequestId(bc, x.requestId);
1331
1479
  writeMessageIndex(bc, x.messageIndex);
1332
1480
  }
1333
- function read16(bc) {
1481
+ function read22(bc) {
1334
1482
  const len = bare.readUintSafe(bc);
1335
1483
  const result = /* @__PURE__ */ new Map();
1336
1484
  for (let i = 0; i < len; i++) {
@@ -1344,7 +1492,7 @@ function read16(bc) {
1344
1492
  }
1345
1493
  return result;
1346
1494
  }
1347
- function write16(bc, x) {
1495
+ function write22(bc, x) {
1348
1496
  bare.writeUintSafe(bc, x.size);
1349
1497
  for (const kv of x) {
1350
1498
  bare.writeString(bc, kv[0]);
@@ -1356,41 +1504,143 @@ function readToEnvoyRequestStart(bc) {
1356
1504
  actorId: readId(bc),
1357
1505
  method: bare.readString(bc),
1358
1506
  path: bare.readString(bc),
1359
- headers: read16(bc),
1360
- body: read10(bc),
1361
- stream: bare.readBool(bc)
1507
+ headers: read22(bc),
1508
+ body: read18(bc),
1509
+ stream: bare.readBool(bc),
1510
+ maxBodySize: bare.readU64(bc)
1362
1511
  };
1363
1512
  }
1364
1513
  function writeToEnvoyRequestStart(bc, x) {
1365
1514
  writeId(bc, x.actorId);
1366
1515
  bare.writeString(bc, x.method);
1367
1516
  bare.writeString(bc, x.path);
1368
- write16(bc, x.headers);
1369
- write10(bc, x.body);
1517
+ write22(bc, x.headers);
1518
+ write18(bc, x.body);
1370
1519
  bare.writeBool(bc, x.stream);
1520
+ bare.writeU64(bc, x.maxBodySize);
1371
1521
  }
1372
1522
  function readToEnvoyRequestChunk(bc) {
1373
1523
  return {
1374
1524
  body: bare.readData(bc),
1375
- finish: bare.readBool(bc)
1525
+ finish: bare.readBool(bc),
1526
+ maxBodySize: bare.readU64(bc)
1376
1527
  };
1377
1528
  }
1378
1529
  function writeToEnvoyRequestChunk(bc, x) {
1379
1530
  bare.writeData(bc, x.body);
1380
1531
  bare.writeBool(bc, x.finish);
1532
+ bare.writeU64(bc, x.maxBodySize);
1533
+ }
1534
+ var HttpStreamAbortReasonKind = /* @__PURE__ */ ((HttpStreamAbortReasonKind2) => {
1535
+ HttpStreamAbortReasonKind2["Unknown"] = "Unknown";
1536
+ HttpStreamAbortReasonKind2["ClientDisconnect"] = "ClientDisconnect";
1537
+ HttpStreamAbortReasonKind2["HandlerError"] = "HandlerError";
1538
+ HttpStreamAbortReasonKind2["IdleTimeout"] = "IdleTimeout";
1539
+ HttpStreamAbortReasonKind2["Overloaded"] = "Overloaded";
1540
+ HttpStreamAbortReasonKind2["BodyTooLarge"] = "BodyTooLarge";
1541
+ HttpStreamAbortReasonKind2["OutOfMemory"] = "OutOfMemory";
1542
+ HttpStreamAbortReasonKind2["Shutdown"] = "Shutdown";
1543
+ HttpStreamAbortReasonKind2["InternalError"] = "InternalError";
1544
+ return HttpStreamAbortReasonKind2;
1545
+ })(HttpStreamAbortReasonKind || {});
1546
+ function readHttpStreamAbortReasonKind(bc) {
1547
+ const offset = bc.offset;
1548
+ const tag = bare.readU8(bc);
1549
+ switch (tag) {
1550
+ case 0:
1551
+ return "Unknown" /* Unknown */;
1552
+ case 1:
1553
+ return "ClientDisconnect" /* ClientDisconnect */;
1554
+ case 2:
1555
+ return "HandlerError" /* HandlerError */;
1556
+ case 3:
1557
+ return "IdleTimeout" /* IdleTimeout */;
1558
+ case 4:
1559
+ return "Overloaded" /* Overloaded */;
1560
+ case 5:
1561
+ return "BodyTooLarge" /* BodyTooLarge */;
1562
+ case 6:
1563
+ return "OutOfMemory" /* OutOfMemory */;
1564
+ case 7:
1565
+ return "Shutdown" /* Shutdown */;
1566
+ case 8:
1567
+ return "InternalError" /* InternalError */;
1568
+ default: {
1569
+ bc.offset = offset;
1570
+ throw new bare.BareError(offset, "invalid tag");
1571
+ }
1572
+ }
1573
+ }
1574
+ function writeHttpStreamAbortReasonKind(bc, x) {
1575
+ switch (x) {
1576
+ case "Unknown" /* Unknown */: {
1577
+ bare.writeU8(bc, 0);
1578
+ break;
1579
+ }
1580
+ case "ClientDisconnect" /* ClientDisconnect */: {
1581
+ bare.writeU8(bc, 1);
1582
+ break;
1583
+ }
1584
+ case "HandlerError" /* HandlerError */: {
1585
+ bare.writeU8(bc, 2);
1586
+ break;
1587
+ }
1588
+ case "IdleTimeout" /* IdleTimeout */: {
1589
+ bare.writeU8(bc, 3);
1590
+ break;
1591
+ }
1592
+ case "Overloaded" /* Overloaded */: {
1593
+ bare.writeU8(bc, 4);
1594
+ break;
1595
+ }
1596
+ case "BodyTooLarge" /* BodyTooLarge */: {
1597
+ bare.writeU8(bc, 5);
1598
+ break;
1599
+ }
1600
+ case "OutOfMemory" /* OutOfMemory */: {
1601
+ bare.writeU8(bc, 6);
1602
+ break;
1603
+ }
1604
+ case "Shutdown" /* Shutdown */: {
1605
+ bare.writeU8(bc, 7);
1606
+ break;
1607
+ }
1608
+ case "InternalError" /* InternalError */: {
1609
+ bare.writeU8(bc, 8);
1610
+ break;
1611
+ }
1612
+ }
1613
+ }
1614
+ function readHttpStreamAbortReason(bc) {
1615
+ return {
1616
+ kind: readHttpStreamAbortReasonKind(bc),
1617
+ detail: read17(bc)
1618
+ };
1619
+ }
1620
+ function writeHttpStreamAbortReason(bc, x) {
1621
+ writeHttpStreamAbortReasonKind(bc, x.kind);
1622
+ write17(bc, x.detail);
1623
+ }
1624
+ function readToEnvoyRequestAbort(bc) {
1625
+ return {
1626
+ reason: readHttpStreamAbortReason(bc)
1627
+ };
1628
+ }
1629
+ function writeToEnvoyRequestAbort(bc, x) {
1630
+ writeHttpStreamAbortReason(bc, x.reason);
1381
1631
  }
1382
1632
  function readToRivetResponseStart(bc) {
1383
1633
  return {
1384
1634
  status: bare.readU16(bc),
1385
- headers: read16(bc),
1386
- body: read10(bc),
1635
+ headers: read22(bc),
1636
+ body: read18(bc),
1387
1637
  stream: bare.readBool(bc)
1388
1638
  };
1389
1639
  }
1390
1640
  function writeToRivetResponseStart(bc, x) {
1391
1641
  bare.writeU16(bc, x.status);
1392
- write16(bc, x.headers);
1393
- write10(bc, x.body);
1642
+ write22(bc, x.headers);
1643
+ write18(bc, x.body);
1394
1644
  bare.writeBool(bc, x.stream);
1395
1645
  }
1396
1646
  function readToRivetResponseChunk(bc) {
@@ -1403,17 +1653,25 @@ function writeToRivetResponseChunk(bc, x) {
1403
1653
  bare.writeData(bc, x.body);
1404
1654
  bare.writeBool(bc, x.finish);
1405
1655
  }
1656
+ function readToRivetResponseAbort(bc) {
1657
+ return {
1658
+ reason: readHttpStreamAbortReason(bc)
1659
+ };
1660
+ }
1661
+ function writeToRivetResponseAbort(bc, x) {
1662
+ writeHttpStreamAbortReason(bc, x.reason);
1663
+ }
1406
1664
  function readToEnvoyWebSocketOpen(bc) {
1407
1665
  return {
1408
1666
  actorId: readId(bc),
1409
1667
  path: bare.readString(bc),
1410
- headers: read16(bc)
1668
+ headers: read22(bc)
1411
1669
  };
1412
1670
  }
1413
1671
  function writeToEnvoyWebSocketOpen(bc, x) {
1414
1672
  writeId(bc, x.actorId);
1415
1673
  bare.writeString(bc, x.path);
1416
- write16(bc, x.headers);
1674
+ write22(bc, x.headers);
1417
1675
  }
1418
1676
  function readToEnvoyWebSocketMessage(bc) {
1419
1677
  return {
@@ -1425,10 +1683,10 @@ function writeToEnvoyWebSocketMessage(bc, x) {
1425
1683
  bare.writeData(bc, x.data);
1426
1684
  bare.writeBool(bc, x.binary);
1427
1685
  }
1428
- function read17(bc) {
1686
+ function read23(bc) {
1429
1687
  return bare.readBool(bc) ? bare.readU16(bc) : null;
1430
1688
  }
1431
- function write17(bc, x) {
1689
+ function write23(bc, x) {
1432
1690
  bare.writeBool(bc, x != null);
1433
1691
  if (x != null) {
1434
1692
  bare.writeU16(bc, x);
@@ -1436,13 +1694,13 @@ function write17(bc, x) {
1436
1694
  }
1437
1695
  function readToEnvoyWebSocketClose(bc) {
1438
1696
  return {
1439
- code: read17(bc),
1440
- reason: read9(bc)
1697
+ code: read23(bc),
1698
+ reason: read17(bc)
1441
1699
  };
1442
1700
  }
1443
1701
  function writeToEnvoyWebSocketClose(bc, x) {
1444
- write17(bc, x.code);
1445
- write9(bc, x.reason);
1702
+ write23(bc, x.code);
1703
+ write17(bc, x.reason);
1446
1704
  }
1447
1705
  function readToRivetWebSocketOpen(bc) {
1448
1706
  return {
@@ -1472,14 +1730,14 @@ function writeToRivetWebSocketMessageAck(bc, x) {
1472
1730
  }
1473
1731
  function readToRivetWebSocketClose(bc) {
1474
1732
  return {
1475
- code: read17(bc),
1476
- reason: read9(bc),
1733
+ code: read23(bc),
1734
+ reason: read17(bc),
1477
1735
  hibernate: bare.readBool(bc)
1478
1736
  };
1479
1737
  }
1480
1738
  function writeToRivetWebSocketClose(bc, x) {
1481
- write17(bc, x.code);
1482
- write9(bc, x.reason);
1739
+ write23(bc, x.code);
1740
+ write17(bc, x.reason);
1483
1741
  bare.writeBool(bc, x.hibernate);
1484
1742
  }
1485
1743
  function readToRivetTunnelMessageKind(bc) {
@@ -1491,7 +1749,7 @@ function readToRivetTunnelMessageKind(bc) {
1491
1749
  case 1:
1492
1750
  return { tag: "ToRivetResponseChunk", val: readToRivetResponseChunk(bc) };
1493
1751
  case 2:
1494
- return { tag: "ToRivetResponseAbort", val: null };
1752
+ return { tag: "ToRivetResponseAbort", val: readToRivetResponseAbort(bc) };
1495
1753
  case 3:
1496
1754
  return { tag: "ToRivetWebSocketOpen", val: readToRivetWebSocketOpen(bc) };
1497
1755
  case 4:
@@ -1520,6 +1778,7 @@ function writeToRivetTunnelMessageKind(bc, x) {
1520
1778
  }
1521
1779
  case "ToRivetResponseAbort": {
1522
1780
  bare.writeU8(bc, 2);
1781
+ writeToRivetResponseAbort(bc, x.val);
1523
1782
  break;
1524
1783
  }
1525
1784
  case "ToRivetWebSocketOpen": {
@@ -1563,7 +1822,7 @@ function readToEnvoyTunnelMessageKind(bc) {
1563
1822
  case 1:
1564
1823
  return { tag: "ToEnvoyRequestChunk", val: readToEnvoyRequestChunk(bc) };
1565
1824
  case 2:
1566
- return { tag: "ToEnvoyRequestAbort", val: null };
1825
+ return { tag: "ToEnvoyRequestAbort", val: readToEnvoyRequestAbort(bc) };
1567
1826
  case 3:
1568
1827
  return { tag: "ToEnvoyWebSocketOpen", val: readToEnvoyWebSocketOpen(bc) };
1569
1828
  case 4:
@@ -1590,6 +1849,7 @@ function writeToEnvoyTunnelMessageKind(bc, x) {
1590
1849
  }
1591
1850
  case "ToEnvoyRequestAbort": {
1592
1851
  bare.writeU8(bc, 2);
1852
+ writeToEnvoyRequestAbort(bc, x.val);
1593
1853
  break;
1594
1854
  }
1595
1855
  case "ToEnvoyWebSocketOpen": {
@@ -1627,7 +1887,7 @@ function readToEnvoyPing(bc) {
1627
1887
  function writeToEnvoyPing(bc, x) {
1628
1888
  bare.writeI64(bc, x.ts);
1629
1889
  }
1630
- function read18(bc) {
1890
+ function read24(bc) {
1631
1891
  const len = bare.readUintSafe(bc);
1632
1892
  const result = /* @__PURE__ */ new Map();
1633
1893
  for (let i = 0; i < len; i++) {
@@ -1641,26 +1901,26 @@ function read18(bc) {
1641
1901
  }
1642
1902
  return result;
1643
1903
  }
1644
- function write18(bc, x) {
1904
+ function write24(bc, x) {
1645
1905
  bare.writeUintSafe(bc, x.size);
1646
1906
  for (const kv of x) {
1647
1907
  bare.writeString(bc, kv[0]);
1648
1908
  writeActorName(bc, kv[1]);
1649
1909
  }
1650
1910
  }
1651
- function read19(bc) {
1652
- return bare.readBool(bc) ? read18(bc) : null;
1911
+ function read25(bc) {
1912
+ return bare.readBool(bc) ? read24(bc) : null;
1653
1913
  }
1654
- function write19(bc, x) {
1914
+ function write25(bc, x) {
1655
1915
  bare.writeBool(bc, x != null);
1656
1916
  if (x != null) {
1657
- write18(bc, x);
1917
+ write24(bc, x);
1658
1918
  }
1659
1919
  }
1660
- function read20(bc) {
1920
+ function read26(bc) {
1661
1921
  return bare.readBool(bc) ? readJson(bc) : null;
1662
1922
  }
1663
- function write20(bc, x) {
1923
+ function write26(bc, x) {
1664
1924
  bare.writeBool(bc, x != null);
1665
1925
  if (x != null) {
1666
1926
  writeJson(bc, x);
@@ -1668,13 +1928,13 @@ function write20(bc, x) {
1668
1928
  }
1669
1929
  function readToRivetMetadata(bc) {
1670
1930
  return {
1671
- prepopulateActorNames: read19(bc),
1672
- metadata: read20(bc)
1931
+ prepopulateActorNames: read25(bc),
1932
+ metadata: read26(bc)
1673
1933
  };
1674
1934
  }
1675
1935
  function writeToRivetMetadata(bc, x) {
1676
- write19(bc, x.prepopulateActorNames);
1677
- write20(bc, x.metadata);
1936
+ write25(bc, x.prepopulateActorNames);
1937
+ write26(bc, x.metadata);
1678
1938
  }
1679
1939
  function readToRivetEvents(bc) {
1680
1940
  const len = bare.readUintSafe(bc);
@@ -1693,7 +1953,7 @@ function writeToRivetEvents(bc, x) {
1693
1953
  writeEventWrapper(bc, x[i]);
1694
1954
  }
1695
1955
  }
1696
- function read21(bc) {
1956
+ function read27(bc) {
1697
1957
  const len = bare.readUintSafe(bc);
1698
1958
  if (len === 0) {
1699
1959
  return [];
@@ -1704,7 +1964,7 @@ function read21(bc) {
1704
1964
  }
1705
1965
  return result;
1706
1966
  }
1707
- function write21(bc, x) {
1967
+ function write27(bc, x) {
1708
1968
  bare.writeUintSafe(bc, x.length);
1709
1969
  for (let i = 0; i < x.length; i++) {
1710
1970
  writeActorCheckpoint(bc, x[i]);
@@ -1712,11 +1972,11 @@ function write21(bc, x) {
1712
1972
  }
1713
1973
  function readToRivetAckCommands(bc) {
1714
1974
  return {
1715
- lastCommandCheckpoints: read21(bc)
1975
+ lastCommandCheckpoints: read27(bc)
1716
1976
  };
1717
1977
  }
1718
1978
  function writeToRivetAckCommands(bc, x) {
1719
- write21(bc, x.lastCommandCheckpoints);
1979
+ write27(bc, x.lastCommandCheckpoints);
1720
1980
  }
1721
1981
  function readToRivetPong(bc) {
1722
1982
  return {
@@ -1758,35 +2018,35 @@ function writeToRivetSqliteCommitRequest(bc, x) {
1758
2018
  bare.writeU32(bc, x.requestId);
1759
2019
  writeSqliteCommitRequest(bc, x.data);
1760
2020
  }
1761
- function readToRivetSqliteCommitStageBeginRequest(bc) {
2021
+ function readToRivetSqliteExecRequest(bc) {
1762
2022
  return {
1763
2023
  requestId: bare.readU32(bc),
1764
- data: readSqliteCommitStageBeginRequest(bc)
2024
+ data: readSqliteExecRequest(bc)
1765
2025
  };
1766
2026
  }
1767
- function writeToRivetSqliteCommitStageBeginRequest(bc, x) {
2027
+ function writeToRivetSqliteExecRequest(bc, x) {
1768
2028
  bare.writeU32(bc, x.requestId);
1769
- writeSqliteCommitStageBeginRequest(bc, x.data);
2029
+ writeSqliteExecRequest(bc, x.data);
1770
2030
  }
1771
- function readToRivetSqliteCommitStageRequest(bc) {
2031
+ function readToRivetSqliteExecuteRequest(bc) {
1772
2032
  return {
1773
2033
  requestId: bare.readU32(bc),
1774
- data: readSqliteCommitStageRequest(bc)
2034
+ data: readSqliteExecuteRequest(bc)
1775
2035
  };
1776
2036
  }
1777
- function writeToRivetSqliteCommitStageRequest(bc, x) {
2037
+ function writeToRivetSqliteExecuteRequest(bc, x) {
1778
2038
  bare.writeU32(bc, x.requestId);
1779
- writeSqliteCommitStageRequest(bc, x.data);
2039
+ writeSqliteExecuteRequest(bc, x.data);
1780
2040
  }
1781
- function readToRivetSqliteCommitFinalizeRequest(bc) {
2041
+ function readToRivetSqliteExecuteBatchRequest(bc) {
1782
2042
  return {
1783
2043
  requestId: bare.readU32(bc),
1784
- data: readSqliteCommitFinalizeRequest(bc)
2044
+ data: readSqliteExecuteBatchRequest(bc)
1785
2045
  };
1786
2046
  }
1787
- function writeToRivetSqliteCommitFinalizeRequest(bc, x) {
2047
+ function writeToRivetSqliteExecuteBatchRequest(bc, x) {
1788
2048
  bare.writeU32(bc, x.requestId);
1789
- writeSqliteCommitFinalizeRequest(bc, x.data);
2049
+ writeSqliteExecuteBatchRequest(bc, x.data);
1790
2050
  }
1791
2051
  function readToRivet(bc) {
1792
2052
  const offset = bc.offset;
@@ -1811,11 +2071,11 @@ function readToRivet(bc) {
1811
2071
  case 8:
1812
2072
  return { tag: "ToRivetSqliteCommitRequest", val: readToRivetSqliteCommitRequest(bc) };
1813
2073
  case 9:
1814
- return { tag: "ToRivetSqliteCommitStageBeginRequest", val: readToRivetSqliteCommitStageBeginRequest(bc) };
2074
+ return { tag: "ToRivetSqliteExecRequest", val: readToRivetSqliteExecRequest(bc) };
1815
2075
  case 10:
1816
- return { tag: "ToRivetSqliteCommitStageRequest", val: readToRivetSqliteCommitStageRequest(bc) };
2076
+ return { tag: "ToRivetSqliteExecuteRequest", val: readToRivetSqliteExecuteRequest(bc) };
1817
2077
  case 11:
1818
- return { tag: "ToRivetSqliteCommitFinalizeRequest", val: readToRivetSqliteCommitFinalizeRequest(bc) };
2078
+ return { tag: "ToRivetSqliteExecuteBatchRequest", val: readToRivetSqliteExecuteBatchRequest(bc) };
1819
2079
  default: {
1820
2080
  bc.offset = offset;
1821
2081
  throw new bare.BareError(offset, "invalid tag");
@@ -1868,19 +2128,19 @@ function writeToRivet(bc, x) {
1868
2128
  writeToRivetSqliteCommitRequest(bc, x.val);
1869
2129
  break;
1870
2130
  }
1871
- case "ToRivetSqliteCommitStageBeginRequest": {
2131
+ case "ToRivetSqliteExecRequest": {
1872
2132
  bare.writeU8(bc, 9);
1873
- writeToRivetSqliteCommitStageBeginRequest(bc, x.val);
2133
+ writeToRivetSqliteExecRequest(bc, x.val);
1874
2134
  break;
1875
2135
  }
1876
- case "ToRivetSqliteCommitStageRequest": {
2136
+ case "ToRivetSqliteExecuteRequest": {
1877
2137
  bare.writeU8(bc, 10);
1878
- writeToRivetSqliteCommitStageRequest(bc, x.val);
2138
+ writeToRivetSqliteExecuteRequest(bc, x.val);
1879
2139
  break;
1880
2140
  }
1881
- case "ToRivetSqliteCommitFinalizeRequest": {
2141
+ case "ToRivetSqliteExecuteBatchRequest": {
1882
2142
  bare.writeU8(bc, 11);
1883
- writeToRivetSqliteCommitFinalizeRequest(bc, x.val);
2143
+ writeToRivetSqliteExecuteBatchRequest(bc, x.val);
1884
2144
  break;
1885
2145
  }
1886
2146
  }
@@ -1941,11 +2201,11 @@ function writeToEnvoyCommands(bc, x) {
1941
2201
  }
1942
2202
  function readToEnvoyAckEvents(bc) {
1943
2203
  return {
1944
- lastEventCheckpoints: read21(bc)
2204
+ lastEventCheckpoints: read27(bc)
1945
2205
  };
1946
2206
  }
1947
2207
  function writeToEnvoyAckEvents(bc, x) {
1948
- write21(bc, x.lastEventCheckpoints);
2208
+ write27(bc, x.lastEventCheckpoints);
1949
2209
  }
1950
2210
  function readToEnvoyKvResponse(bc) {
1951
2211
  return {
@@ -1977,35 +2237,35 @@ function writeToEnvoySqliteCommitResponse(bc, x) {
1977
2237
  bare.writeU32(bc, x.requestId);
1978
2238
  writeSqliteCommitResponse(bc, x.data);
1979
2239
  }
1980
- function readToEnvoySqliteCommitStageBeginResponse(bc) {
2240
+ function readToEnvoySqliteExecResponse(bc) {
1981
2241
  return {
1982
2242
  requestId: bare.readU32(bc),
1983
- data: readSqliteCommitStageBeginResponse(bc)
2243
+ data: readSqliteExecResponse(bc)
1984
2244
  };
1985
2245
  }
1986
- function writeToEnvoySqliteCommitStageBeginResponse(bc, x) {
2246
+ function writeToEnvoySqliteExecResponse(bc, x) {
1987
2247
  bare.writeU32(bc, x.requestId);
1988
- writeSqliteCommitStageBeginResponse(bc, x.data);
2248
+ writeSqliteExecResponse(bc, x.data);
1989
2249
  }
1990
- function readToEnvoySqliteCommitStageResponse(bc) {
2250
+ function readToEnvoySqliteExecuteResponse(bc) {
1991
2251
  return {
1992
2252
  requestId: bare.readU32(bc),
1993
- data: readSqliteCommitStageResponse(bc)
2253
+ data: readSqliteExecuteResponse(bc)
1994
2254
  };
1995
2255
  }
1996
- function writeToEnvoySqliteCommitStageResponse(bc, x) {
2256
+ function writeToEnvoySqliteExecuteResponse(bc, x) {
1997
2257
  bare.writeU32(bc, x.requestId);
1998
- writeSqliteCommitStageResponse(bc, x.data);
2258
+ writeSqliteExecuteResponse(bc, x.data);
1999
2259
  }
2000
- function readToEnvoySqliteCommitFinalizeResponse(bc) {
2260
+ function readToEnvoySqliteExecuteBatchResponse(bc) {
2001
2261
  return {
2002
2262
  requestId: bare.readU32(bc),
2003
- data: readSqliteCommitFinalizeResponse(bc)
2263
+ data: readSqliteExecuteBatchResponse(bc)
2004
2264
  };
2005
2265
  }
2006
- function writeToEnvoySqliteCommitFinalizeResponse(bc, x) {
2266
+ function writeToEnvoySqliteExecuteBatchResponse(bc, x) {
2007
2267
  bare.writeU32(bc, x.requestId);
2008
- writeSqliteCommitFinalizeResponse(bc, x.data);
2268
+ writeSqliteExecuteBatchResponse(bc, x.data);
2009
2269
  }
2010
2270
  function readToEnvoy(bc) {
2011
2271
  const offset = bc.offset;
@@ -2028,11 +2288,11 @@ function readToEnvoy(bc) {
2028
2288
  case 7:
2029
2289
  return { tag: "ToEnvoySqliteCommitResponse", val: readToEnvoySqliteCommitResponse(bc) };
2030
2290
  case 8:
2031
- return { tag: "ToEnvoySqliteCommitStageBeginResponse", val: readToEnvoySqliteCommitStageBeginResponse(bc) };
2291
+ return { tag: "ToEnvoySqliteExecResponse", val: readToEnvoySqliteExecResponse(bc) };
2032
2292
  case 9:
2033
- return { tag: "ToEnvoySqliteCommitStageResponse", val: readToEnvoySqliteCommitStageResponse(bc) };
2293
+ return { tag: "ToEnvoySqliteExecuteResponse", val: readToEnvoySqliteExecuteResponse(bc) };
2034
2294
  case 10:
2035
- return { tag: "ToEnvoySqliteCommitFinalizeResponse", val: readToEnvoySqliteCommitFinalizeResponse(bc) };
2295
+ return { tag: "ToEnvoySqliteExecuteBatchResponse", val: readToEnvoySqliteExecuteBatchResponse(bc) };
2036
2296
  default: {
2037
2297
  bc.offset = offset;
2038
2298
  throw new bare.BareError(offset, "invalid tag");
@@ -2081,19 +2341,19 @@ function writeToEnvoy(bc, x) {
2081
2341
  writeToEnvoySqliteCommitResponse(bc, x.val);
2082
2342
  break;
2083
2343
  }
2084
- case "ToEnvoySqliteCommitStageBeginResponse": {
2344
+ case "ToEnvoySqliteExecResponse": {
2085
2345
  bare.writeU8(bc, 8);
2086
- writeToEnvoySqliteCommitStageBeginResponse(bc, x.val);
2346
+ writeToEnvoySqliteExecResponse(bc, x.val);
2087
2347
  break;
2088
2348
  }
2089
- case "ToEnvoySqliteCommitStageResponse": {
2349
+ case "ToEnvoySqliteExecuteResponse": {
2090
2350
  bare.writeU8(bc, 9);
2091
- writeToEnvoySqliteCommitStageResponse(bc, x.val);
2351
+ writeToEnvoySqliteExecuteResponse(bc, x.val);
2092
2352
  break;
2093
2353
  }
2094
- case "ToEnvoySqliteCommitFinalizeResponse": {
2354
+ case "ToEnvoySqliteExecuteBatchResponse": {
2095
2355
  bare.writeU8(bc, 10);
2096
- writeToEnvoySqliteCommitFinalizeResponse(bc, x.val);
2356
+ writeToEnvoySqliteExecuteBatchResponse(bc, x.val);
2097
2357
  break;
2098
2358
  }
2099
2359
  }
@@ -2302,8 +2562,9 @@ function decodeToOutbound(bytes) {
2302
2562
  function assert(condition, message) {
2303
2563
  if (!condition) throw new Error(message ?? "Assertion failed");
2304
2564
  }
2305
- var VERSION = 2;
2565
+ var VERSION = 8;
2306
2566
  export {
2567
+ HttpStreamAbortReasonKind,
2307
2568
  StopActorReason,
2308
2569
  StopCode,
2309
2570
  VERSION,
@@ -2337,6 +2598,8 @@ export {
2337
2598
  readEventWrapper,
2338
2599
  readGatewayId,
2339
2600
  readHibernatingRequest,
2601
+ readHttpStreamAbortReason,
2602
+ readHttpStreamAbortReasonKind,
2340
2603
  readId,
2341
2604
  readJson,
2342
2605
  readKvDeleteRangeRequest,
@@ -2361,34 +2624,36 @@ export {
2361
2624
  readPreloadedKvEntry,
2362
2625
  readProtocolMetadata,
2363
2626
  readRequestId,
2364
- readSqliteCommitFinalizeOk,
2365
- readSqliteCommitFinalizeRequest,
2366
- readSqliteCommitFinalizeResponse,
2627
+ readSqliteBatchStatement,
2628
+ readSqliteBindParam,
2629
+ readSqliteColumnValue,
2367
2630
  readSqliteCommitOk,
2368
2631
  readSqliteCommitRequest,
2369
2632
  readSqliteCommitResponse,
2370
- readSqliteCommitStageBeginOk,
2371
- readSqliteCommitStageBeginRequest,
2372
- readSqliteCommitStageBeginResponse,
2373
- readSqliteCommitStageOk,
2374
- readSqliteCommitStageRequest,
2375
- readSqliteCommitStageResponse,
2376
- readSqliteCommitTooLarge,
2377
2633
  readSqliteDirtyPage,
2378
2634
  readSqliteErrorResponse,
2379
- readSqliteFenceMismatch,
2635
+ readSqliteExecOk,
2636
+ readSqliteExecRequest,
2637
+ readSqliteExecResponse,
2638
+ readSqliteExecuteBatchOk,
2639
+ readSqliteExecuteBatchRequest,
2640
+ readSqliteExecuteBatchResponse,
2641
+ readSqliteExecuteOk,
2642
+ readSqliteExecuteRequest,
2643
+ readSqliteExecuteResponse,
2644
+ readSqliteExecuteResult,
2380
2645
  readSqliteFetchedPage,
2381
2646
  readSqliteGeneration,
2382
2647
  readSqliteGetPagesOk,
2383
2648
  readSqliteGetPagesRequest,
2384
2649
  readSqliteGetPagesResponse,
2385
- readSqliteMeta,
2386
2650
  readSqlitePageBytes,
2387
2651
  readSqlitePgno,
2388
- readSqliteStageId,
2389
- readSqliteStageNotFound,
2390
- readSqliteStartupData,
2391
- readSqliteTxid,
2652
+ readSqliteQueryResult,
2653
+ readSqliteValueBlob,
2654
+ readSqliteValueFloat,
2655
+ readSqliteValueInteger,
2656
+ readSqliteValueText,
2392
2657
  readStopActorReason,
2393
2658
  readStopCode,
2394
2659
  readToEnvoy,
@@ -2399,12 +2664,13 @@ export {
2399
2664
  readToEnvoyInit,
2400
2665
  readToEnvoyKvResponse,
2401
2666
  readToEnvoyPing,
2667
+ readToEnvoyRequestAbort,
2402
2668
  readToEnvoyRequestChunk,
2403
2669
  readToEnvoyRequestStart,
2404
- readToEnvoySqliteCommitFinalizeResponse,
2405
2670
  readToEnvoySqliteCommitResponse,
2406
- readToEnvoySqliteCommitStageBeginResponse,
2407
- readToEnvoySqliteCommitStageResponse,
2671
+ readToEnvoySqliteExecResponse,
2672
+ readToEnvoySqliteExecuteBatchResponse,
2673
+ readToEnvoySqliteExecuteResponse,
2408
2674
  readToEnvoySqliteGetPagesResponse,
2409
2675
  readToEnvoyTunnelMessage,
2410
2676
  readToEnvoyTunnelMessageKind,
@@ -2421,12 +2687,13 @@ export {
2421
2687
  readToRivetKvRequest,
2422
2688
  readToRivetMetadata,
2423
2689
  readToRivetPong,
2690
+ readToRivetResponseAbort,
2424
2691
  readToRivetResponseChunk,
2425
2692
  readToRivetResponseStart,
2426
- readToRivetSqliteCommitFinalizeRequest,
2427
2693
  readToRivetSqliteCommitRequest,
2428
- readToRivetSqliteCommitStageBeginRequest,
2429
- readToRivetSqliteCommitStageRequest,
2694
+ readToRivetSqliteExecRequest,
2695
+ readToRivetSqliteExecuteBatchRequest,
2696
+ readToRivetSqliteExecuteRequest,
2430
2697
  readToRivetSqliteGetPagesRequest,
2431
2698
  readToRivetTunnelMessage,
2432
2699
  readToRivetTunnelMessageKind,
@@ -2452,6 +2719,8 @@ export {
2452
2719
  writeEventWrapper,
2453
2720
  writeGatewayId,
2454
2721
  writeHibernatingRequest,
2722
+ writeHttpStreamAbortReason,
2723
+ writeHttpStreamAbortReasonKind,
2455
2724
  writeId,
2456
2725
  writeJson,
2457
2726
  writeKvDeleteRangeRequest,
@@ -2476,34 +2745,36 @@ export {
2476
2745
  writePreloadedKvEntry,
2477
2746
  writeProtocolMetadata,
2478
2747
  writeRequestId,
2479
- writeSqliteCommitFinalizeOk,
2480
- writeSqliteCommitFinalizeRequest,
2481
- writeSqliteCommitFinalizeResponse,
2748
+ writeSqliteBatchStatement,
2749
+ writeSqliteBindParam,
2750
+ writeSqliteColumnValue,
2482
2751
  writeSqliteCommitOk,
2483
2752
  writeSqliteCommitRequest,
2484
2753
  writeSqliteCommitResponse,
2485
- writeSqliteCommitStageBeginOk,
2486
- writeSqliteCommitStageBeginRequest,
2487
- writeSqliteCommitStageBeginResponse,
2488
- writeSqliteCommitStageOk,
2489
- writeSqliteCommitStageRequest,
2490
- writeSqliteCommitStageResponse,
2491
- writeSqliteCommitTooLarge,
2492
2754
  writeSqliteDirtyPage,
2493
2755
  writeSqliteErrorResponse,
2494
- writeSqliteFenceMismatch,
2756
+ writeSqliteExecOk,
2757
+ writeSqliteExecRequest,
2758
+ writeSqliteExecResponse,
2759
+ writeSqliteExecuteBatchOk,
2760
+ writeSqliteExecuteBatchRequest,
2761
+ writeSqliteExecuteBatchResponse,
2762
+ writeSqliteExecuteOk,
2763
+ writeSqliteExecuteRequest,
2764
+ writeSqliteExecuteResponse,
2765
+ writeSqliteExecuteResult,
2495
2766
  writeSqliteFetchedPage,
2496
2767
  writeSqliteGeneration,
2497
2768
  writeSqliteGetPagesOk,
2498
2769
  writeSqliteGetPagesRequest,
2499
2770
  writeSqliteGetPagesResponse,
2500
- writeSqliteMeta,
2501
2771
  writeSqlitePageBytes,
2502
2772
  writeSqlitePgno,
2503
- writeSqliteStageId,
2504
- writeSqliteStageNotFound,
2505
- writeSqliteStartupData,
2506
- writeSqliteTxid,
2773
+ writeSqliteQueryResult,
2774
+ writeSqliteValueBlob,
2775
+ writeSqliteValueFloat,
2776
+ writeSqliteValueInteger,
2777
+ writeSqliteValueText,
2507
2778
  writeStopActorReason,
2508
2779
  writeStopCode,
2509
2780
  writeToEnvoy,
@@ -2514,12 +2785,13 @@ export {
2514
2785
  writeToEnvoyInit,
2515
2786
  writeToEnvoyKvResponse,
2516
2787
  writeToEnvoyPing,
2788
+ writeToEnvoyRequestAbort,
2517
2789
  writeToEnvoyRequestChunk,
2518
2790
  writeToEnvoyRequestStart,
2519
- writeToEnvoySqliteCommitFinalizeResponse,
2520
2791
  writeToEnvoySqliteCommitResponse,
2521
- writeToEnvoySqliteCommitStageBeginResponse,
2522
- writeToEnvoySqliteCommitStageResponse,
2792
+ writeToEnvoySqliteExecResponse,
2793
+ writeToEnvoySqliteExecuteBatchResponse,
2794
+ writeToEnvoySqliteExecuteResponse,
2523
2795
  writeToEnvoySqliteGetPagesResponse,
2524
2796
  writeToEnvoyTunnelMessage,
2525
2797
  writeToEnvoyTunnelMessageKind,
@@ -2536,12 +2808,13 @@ export {
2536
2808
  writeToRivetKvRequest,
2537
2809
  writeToRivetMetadata,
2538
2810
  writeToRivetPong,
2811
+ writeToRivetResponseAbort,
2539
2812
  writeToRivetResponseChunk,
2540
2813
  writeToRivetResponseStart,
2541
- writeToRivetSqliteCommitFinalizeRequest,
2542
2814
  writeToRivetSqliteCommitRequest,
2543
- writeToRivetSqliteCommitStageBeginRequest,
2544
- writeToRivetSqliteCommitStageRequest,
2815
+ writeToRivetSqliteExecRequest,
2816
+ writeToRivetSqliteExecuteBatchRequest,
2817
+ writeToRivetSqliteExecuteRequest,
2545
2818
  writeToRivetSqliteGetPagesRequest,
2546
2819
  writeToRivetTunnelMessage,
2547
2820
  writeToRivetTunnelMessageKind,