@rivetkit/engine-envoy-protocol 2.3.8 → 2.3.10
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/dist/index.d.ts +4 -33
- package/dist/index.js +5 -126
- package/package.json +2 -4
package/dist/index.d.ts
CHANGED
|
@@ -578,41 +578,16 @@ type ToEnvoyRequestStart = {
|
|
|
578
578
|
readonly headers: ReadonlyMap<string, string>;
|
|
579
579
|
readonly body: ArrayBuffer | null;
|
|
580
580
|
readonly stream: boolean;
|
|
581
|
-
readonly maxBodySize: u64;
|
|
582
581
|
};
|
|
583
582
|
declare function readToEnvoyRequestStart(bc: bare.ByteCursor): ToEnvoyRequestStart;
|
|
584
583
|
declare function writeToEnvoyRequestStart(bc: bare.ByteCursor, x: ToEnvoyRequestStart): void;
|
|
585
584
|
type ToEnvoyRequestChunk = {
|
|
586
585
|
readonly body: ArrayBuffer;
|
|
587
586
|
readonly finish: boolean;
|
|
588
|
-
readonly maxBodySize: u64;
|
|
589
587
|
};
|
|
590
588
|
declare function readToEnvoyRequestChunk(bc: bare.ByteCursor): ToEnvoyRequestChunk;
|
|
591
589
|
declare function writeToEnvoyRequestChunk(bc: bare.ByteCursor, x: ToEnvoyRequestChunk): void;
|
|
592
|
-
|
|
593
|
-
Unknown = "Unknown",
|
|
594
|
-
ClientDisconnect = "ClientDisconnect",
|
|
595
|
-
HandlerError = "HandlerError",
|
|
596
|
-
IdleTimeout = "IdleTimeout",
|
|
597
|
-
Overloaded = "Overloaded",
|
|
598
|
-
BodyTooLarge = "BodyTooLarge",
|
|
599
|
-
OutOfMemory = "OutOfMemory",
|
|
600
|
-
Shutdown = "Shutdown",
|
|
601
|
-
InternalError = "InternalError"
|
|
602
|
-
}
|
|
603
|
-
declare function readHttpStreamAbortReasonKind(bc: bare.ByteCursor): HttpStreamAbortReasonKind;
|
|
604
|
-
declare function writeHttpStreamAbortReasonKind(bc: bare.ByteCursor, x: HttpStreamAbortReasonKind): void;
|
|
605
|
-
type HttpStreamAbortReason = {
|
|
606
|
-
readonly kind: HttpStreamAbortReasonKind;
|
|
607
|
-
readonly detail: string | null;
|
|
608
|
-
};
|
|
609
|
-
declare function readHttpStreamAbortReason(bc: bare.ByteCursor): HttpStreamAbortReason;
|
|
610
|
-
declare function writeHttpStreamAbortReason(bc: bare.ByteCursor, x: HttpStreamAbortReason): void;
|
|
611
|
-
type ToEnvoyRequestAbort = {
|
|
612
|
-
readonly reason: HttpStreamAbortReason;
|
|
613
|
-
};
|
|
614
|
-
declare function readToEnvoyRequestAbort(bc: bare.ByteCursor): ToEnvoyRequestAbort;
|
|
615
|
-
declare function writeToEnvoyRequestAbort(bc: bare.ByteCursor, x: ToEnvoyRequestAbort): void;
|
|
590
|
+
type ToEnvoyRequestAbort = null;
|
|
616
591
|
type ToRivetResponseStart = {
|
|
617
592
|
readonly status: u16;
|
|
618
593
|
readonly headers: ReadonlyMap<string, string>;
|
|
@@ -627,11 +602,7 @@ type ToRivetResponseChunk = {
|
|
|
627
602
|
};
|
|
628
603
|
declare function readToRivetResponseChunk(bc: bare.ByteCursor): ToRivetResponseChunk;
|
|
629
604
|
declare function writeToRivetResponseChunk(bc: bare.ByteCursor, x: ToRivetResponseChunk): void;
|
|
630
|
-
type ToRivetResponseAbort =
|
|
631
|
-
readonly reason: HttpStreamAbortReason;
|
|
632
|
-
};
|
|
633
|
-
declare function readToRivetResponseAbort(bc: bare.ByteCursor): ToRivetResponseAbort;
|
|
634
|
-
declare function writeToRivetResponseAbort(bc: bare.ByteCursor, x: ToRivetResponseAbort): void;
|
|
605
|
+
type ToRivetResponseAbort = null;
|
|
635
606
|
/**
|
|
636
607
|
* WebSocket
|
|
637
608
|
*/
|
|
@@ -1029,6 +1000,6 @@ declare function readToOutbound(bc: bare.ByteCursor): ToOutbound;
|
|
|
1029
1000
|
declare function writeToOutbound(bc: bare.ByteCursor, x: ToOutbound): void;
|
|
1030
1001
|
declare function encodeToOutbound(x: ToOutbound, config?: Partial<bare.Config>): Uint8Array;
|
|
1031
1002
|
declare function decodeToOutbound(bytes: Uint8Array): ToOutbound;
|
|
1032
|
-
declare const VERSION =
|
|
1003
|
+
declare const VERSION = 6;
|
|
1033
1004
|
|
|
1034
|
-
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type
|
|
1005
|
+
export { type ActorCheckpoint, type ActorCommandKeyData, type ActorConfig, type ActorIntent, type ActorIntentSleep, type ActorIntentStop, type ActorName, type ActorState, type ActorStateRunning, type ActorStateStopped, type Command, type CommandStartActor, type CommandStopActor, type CommandWrapper, type Event, type EventActorIntent, type EventActorSetAlarm, type EventActorStateUpdate, type EventWrapper, type GatewayId, type HibernatingRequest, type Id, type Json, type KvDeleteRangeRequest, type KvDeleteRequest, type KvDeleteResponse, type KvDropRequest, type KvDropResponse, type KvErrorResponse, type KvGetRequest, type KvGetResponse, type KvKey, type KvListAllQuery, type KvListPrefixQuery, type KvListQuery, type KvListRangeQuery, type KvListRequest, type KvListResponse, type KvMetadata, type KvPutRequest, type KvPutResponse, type KvRequestData, type KvResponseData, type KvValue, type MessageId, type MessageIndex, type PreloadedKv, type PreloadedKvEntry, type ProtocolMetadata, type RequestId, type SqliteBatchStatement, type SqliteBindParam, type SqliteColumnValue, type SqliteCommitOk, type SqliteCommitRequest, type SqliteCommitResponse, type SqliteDirtyPage, type SqliteErrorResponse, type SqliteExecOk, type SqliteExecRequest, type SqliteExecResponse, type SqliteExecuteBatchOk, type SqliteExecuteBatchRequest, type SqliteExecuteBatchResponse, type SqliteExecuteOk, type SqliteExecuteRequest, type SqliteExecuteResponse, type SqliteExecuteResult, type SqliteFetchedPage, type SqliteGeneration, type SqliteGetPagesOk, type SqliteGetPagesRequest, type SqliteGetPagesResponse, type SqlitePageBytes, type SqlitePgno, type SqliteQueryResult, type SqliteValueBlob, type SqliteValueFloat, type SqliteValueInteger, type SqliteValueNull, type SqliteValueText, StopActorReason, StopCode, type ToEnvoy, type ToEnvoyAckEvents, type ToEnvoyCommands, type ToEnvoyConn, type ToEnvoyConnClose, type ToEnvoyConnPing, type ToEnvoyInit, type ToEnvoyKvResponse, type ToEnvoyPing, type ToEnvoyRequestAbort, type ToEnvoyRequestChunk, type ToEnvoyRequestStart, type ToEnvoySqliteCommitResponse, type ToEnvoySqliteExecResponse, type ToEnvoySqliteExecuteBatchResponse, type ToEnvoySqliteExecuteResponse, type ToEnvoySqliteGetPagesResponse, type ToEnvoyTunnelMessage, type ToEnvoyTunnelMessageKind, type ToEnvoyWebSocketClose, type ToEnvoyWebSocketMessage, type ToEnvoyWebSocketOpen, type ToGateway, type ToGatewayPong, type ToOutbound, type ToOutboundActorStart, type ToRivet, type ToRivetAckCommands, type ToRivetEvents, type ToRivetKvRequest, type ToRivetMetadata, type ToRivetPong, type ToRivetResponseAbort, type ToRivetResponseChunk, type ToRivetResponseStart, type ToRivetSqliteCommitRequest, type ToRivetSqliteExecRequest, type ToRivetSqliteExecuteBatchRequest, type ToRivetSqliteExecuteRequest, type ToRivetSqliteGetPagesRequest, type ToRivetStopping, type ToRivetTunnelMessage, type ToRivetTunnelMessageKind, type ToRivetWebSocketClose, type ToRivetWebSocketMessage, type ToRivetWebSocketMessageAck, type ToRivetWebSocketOpen, VERSION, decodeActorCommandKeyData, decodeToEnvoy, decodeToEnvoyConn, decodeToGateway, decodeToOutbound, decodeToRivet, encodeActorCommandKeyData, encodeToEnvoy, encodeToEnvoyConn, encodeToGateway, encodeToOutbound, encodeToRivet, type i64, readActorCheckpoint, readActorCommandKeyData, readActorConfig, readActorIntent, readActorName, readActorState, readActorStateStopped, readCommand, readCommandStartActor, readCommandStopActor, readCommandWrapper, readEvent, readEventActorIntent, readEventActorSetAlarm, readEventActorStateUpdate, readEventWrapper, readGatewayId, readHibernatingRequest, readId, readJson, readKvDeleteRangeRequest, readKvDeleteRequest, readKvErrorResponse, readKvGetRequest, readKvGetResponse, readKvKey, readKvListPrefixQuery, readKvListQuery, readKvListRangeQuery, readKvListRequest, readKvListResponse, readKvMetadata, readKvPutRequest, readKvRequestData, readKvResponseData, readKvValue, readMessageId, readMessageIndex, readPreloadedKv, readPreloadedKvEntry, readProtocolMetadata, readRequestId, readSqliteBatchStatement, readSqliteBindParam, readSqliteColumnValue, readSqliteCommitOk, readSqliteCommitRequest, readSqliteCommitResponse, readSqliteDirtyPage, readSqliteErrorResponse, readSqliteExecOk, readSqliteExecRequest, readSqliteExecResponse, readSqliteExecuteBatchOk, readSqliteExecuteBatchRequest, readSqliteExecuteBatchResponse, readSqliteExecuteOk, readSqliteExecuteRequest, readSqliteExecuteResponse, readSqliteExecuteResult, readSqliteFetchedPage, readSqliteGeneration, readSqliteGetPagesOk, readSqliteGetPagesRequest, readSqliteGetPagesResponse, readSqlitePageBytes, readSqlitePgno, readSqliteQueryResult, readSqliteValueBlob, readSqliteValueFloat, readSqliteValueInteger, readSqliteValueText, readStopActorReason, readStopCode, readToEnvoy, readToEnvoyAckEvents, readToEnvoyCommands, readToEnvoyConn, readToEnvoyConnPing, readToEnvoyInit, readToEnvoyKvResponse, readToEnvoyPing, readToEnvoyRequestChunk, readToEnvoyRequestStart, readToEnvoySqliteCommitResponse, readToEnvoySqliteExecResponse, readToEnvoySqliteExecuteBatchResponse, readToEnvoySqliteExecuteResponse, readToEnvoySqliteGetPagesResponse, readToEnvoyTunnelMessage, readToEnvoyTunnelMessageKind, readToEnvoyWebSocketClose, readToEnvoyWebSocketMessage, readToEnvoyWebSocketOpen, readToGateway, readToGatewayPong, readToOutbound, readToOutboundActorStart, readToRivet, readToRivetAckCommands, readToRivetEvents, readToRivetKvRequest, readToRivetMetadata, readToRivetPong, readToRivetResponseChunk, readToRivetResponseStart, readToRivetSqliteCommitRequest, readToRivetSqliteExecRequest, readToRivetSqliteExecuteBatchRequest, readToRivetSqliteExecuteRequest, readToRivetSqliteGetPagesRequest, readToRivetTunnelMessage, readToRivetTunnelMessageKind, readToRivetWebSocketClose, readToRivetWebSocketMessage, readToRivetWebSocketMessageAck, readToRivetWebSocketOpen, type u16, type u32, type u64, writeActorCheckpoint, writeActorCommandKeyData, writeActorConfig, writeActorIntent, writeActorName, writeActorState, writeActorStateStopped, writeCommand, writeCommandStartActor, writeCommandStopActor, writeCommandWrapper, writeEvent, writeEventActorIntent, writeEventActorSetAlarm, writeEventActorStateUpdate, writeEventWrapper, writeGatewayId, writeHibernatingRequest, writeId, writeJson, writeKvDeleteRangeRequest, writeKvDeleteRequest, writeKvErrorResponse, writeKvGetRequest, writeKvGetResponse, writeKvKey, writeKvListPrefixQuery, writeKvListQuery, writeKvListRangeQuery, writeKvListRequest, writeKvListResponse, writeKvMetadata, writeKvPutRequest, writeKvRequestData, writeKvResponseData, writeKvValue, writeMessageId, writeMessageIndex, writePreloadedKv, writePreloadedKvEntry, writeProtocolMetadata, writeRequestId, writeSqliteBatchStatement, writeSqliteBindParam, writeSqliteColumnValue, writeSqliteCommitOk, writeSqliteCommitRequest, writeSqliteCommitResponse, writeSqliteDirtyPage, writeSqliteErrorResponse, writeSqliteExecOk, writeSqliteExecRequest, writeSqliteExecResponse, writeSqliteExecuteBatchOk, writeSqliteExecuteBatchRequest, writeSqliteExecuteBatchResponse, writeSqliteExecuteOk, writeSqliteExecuteRequest, writeSqliteExecuteResponse, writeSqliteExecuteResult, writeSqliteFetchedPage, writeSqliteGeneration, writeSqliteGetPagesOk, writeSqliteGetPagesRequest, writeSqliteGetPagesResponse, writeSqlitePageBytes, writeSqlitePgno, writeSqliteQueryResult, writeSqliteValueBlob, writeSqliteValueFloat, writeSqliteValueInteger, writeSqliteValueText, writeStopActorReason, writeStopCode, writeToEnvoy, writeToEnvoyAckEvents, writeToEnvoyCommands, writeToEnvoyConn, writeToEnvoyConnPing, writeToEnvoyInit, writeToEnvoyKvResponse, writeToEnvoyPing, writeToEnvoyRequestChunk, writeToEnvoyRequestStart, writeToEnvoySqliteCommitResponse, writeToEnvoySqliteExecResponse, writeToEnvoySqliteExecuteBatchResponse, writeToEnvoySqliteExecuteResponse, writeToEnvoySqliteGetPagesResponse, writeToEnvoyTunnelMessage, writeToEnvoyTunnelMessageKind, writeToEnvoyWebSocketClose, writeToEnvoyWebSocketMessage, writeToEnvoyWebSocketOpen, writeToGateway, writeToGatewayPong, writeToOutbound, writeToOutboundActorStart, writeToRivet, writeToRivetAckCommands, writeToRivetEvents, writeToRivetKvRequest, writeToRivetMetadata, writeToRivetPong, writeToRivetResponseChunk, writeToRivetResponseStart, writeToRivetSqliteCommitRequest, writeToRivetSqliteExecRequest, writeToRivetSqliteExecuteBatchRequest, writeToRivetSqliteExecuteRequest, writeToRivetSqliteGetPagesRequest, writeToRivetTunnelMessage, writeToRivetTunnelMessageKind, writeToRivetWebSocketClose, writeToRivetWebSocketMessage, writeToRivetWebSocketMessageAck, writeToRivetWebSocketOpen };
|
package/dist/index.js
CHANGED
|
@@ -1506,8 +1506,7 @@ function readToEnvoyRequestStart(bc) {
|
|
|
1506
1506
|
path: bare.readString(bc),
|
|
1507
1507
|
headers: read22(bc),
|
|
1508
1508
|
body: read18(bc),
|
|
1509
|
-
stream: bare.readBool(bc)
|
|
1510
|
-
maxBodySize: bare.readU64(bc)
|
|
1509
|
+
stream: bare.readBool(bc)
|
|
1511
1510
|
};
|
|
1512
1511
|
}
|
|
1513
1512
|
function writeToEnvoyRequestStart(bc, x) {
|
|
@@ -1517,117 +1516,16 @@ function writeToEnvoyRequestStart(bc, x) {
|
|
|
1517
1516
|
write22(bc, x.headers);
|
|
1518
1517
|
write18(bc, x.body);
|
|
1519
1518
|
bare.writeBool(bc, x.stream);
|
|
1520
|
-
bare.writeU64(bc, x.maxBodySize);
|
|
1521
1519
|
}
|
|
1522
1520
|
function readToEnvoyRequestChunk(bc) {
|
|
1523
1521
|
return {
|
|
1524
1522
|
body: bare.readData(bc),
|
|
1525
|
-
finish: bare.readBool(bc)
|
|
1526
|
-
maxBodySize: bare.readU64(bc)
|
|
1523
|
+
finish: bare.readBool(bc)
|
|
1527
1524
|
};
|
|
1528
1525
|
}
|
|
1529
1526
|
function writeToEnvoyRequestChunk(bc, x) {
|
|
1530
1527
|
bare.writeData(bc, x.body);
|
|
1531
1528
|
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);
|
|
1631
1529
|
}
|
|
1632
1530
|
function readToRivetResponseStart(bc) {
|
|
1633
1531
|
return {
|
|
@@ -1653,14 +1551,6 @@ function writeToRivetResponseChunk(bc, x) {
|
|
|
1653
1551
|
bare.writeData(bc, x.body);
|
|
1654
1552
|
bare.writeBool(bc, x.finish);
|
|
1655
1553
|
}
|
|
1656
|
-
function readToRivetResponseAbort(bc) {
|
|
1657
|
-
return {
|
|
1658
|
-
reason: readHttpStreamAbortReason(bc)
|
|
1659
|
-
};
|
|
1660
|
-
}
|
|
1661
|
-
function writeToRivetResponseAbort(bc, x) {
|
|
1662
|
-
writeHttpStreamAbortReason(bc, x.reason);
|
|
1663
|
-
}
|
|
1664
1554
|
function readToEnvoyWebSocketOpen(bc) {
|
|
1665
1555
|
return {
|
|
1666
1556
|
actorId: readId(bc),
|
|
@@ -1749,7 +1639,7 @@ function readToRivetTunnelMessageKind(bc) {
|
|
|
1749
1639
|
case 1:
|
|
1750
1640
|
return { tag: "ToRivetResponseChunk", val: readToRivetResponseChunk(bc) };
|
|
1751
1641
|
case 2:
|
|
1752
|
-
return { tag: "ToRivetResponseAbort", val:
|
|
1642
|
+
return { tag: "ToRivetResponseAbort", val: null };
|
|
1753
1643
|
case 3:
|
|
1754
1644
|
return { tag: "ToRivetWebSocketOpen", val: readToRivetWebSocketOpen(bc) };
|
|
1755
1645
|
case 4:
|
|
@@ -1778,7 +1668,6 @@ function writeToRivetTunnelMessageKind(bc, x) {
|
|
|
1778
1668
|
}
|
|
1779
1669
|
case "ToRivetResponseAbort": {
|
|
1780
1670
|
bare.writeU8(bc, 2);
|
|
1781
|
-
writeToRivetResponseAbort(bc, x.val);
|
|
1782
1671
|
break;
|
|
1783
1672
|
}
|
|
1784
1673
|
case "ToRivetWebSocketOpen": {
|
|
@@ -1822,7 +1711,7 @@ function readToEnvoyTunnelMessageKind(bc) {
|
|
|
1822
1711
|
case 1:
|
|
1823
1712
|
return { tag: "ToEnvoyRequestChunk", val: readToEnvoyRequestChunk(bc) };
|
|
1824
1713
|
case 2:
|
|
1825
|
-
return { tag: "ToEnvoyRequestAbort", val:
|
|
1714
|
+
return { tag: "ToEnvoyRequestAbort", val: null };
|
|
1826
1715
|
case 3:
|
|
1827
1716
|
return { tag: "ToEnvoyWebSocketOpen", val: readToEnvoyWebSocketOpen(bc) };
|
|
1828
1717
|
case 4:
|
|
@@ -1849,7 +1738,6 @@ function writeToEnvoyTunnelMessageKind(bc, x) {
|
|
|
1849
1738
|
}
|
|
1850
1739
|
case "ToEnvoyRequestAbort": {
|
|
1851
1740
|
bare.writeU8(bc, 2);
|
|
1852
|
-
writeToEnvoyRequestAbort(bc, x.val);
|
|
1853
1741
|
break;
|
|
1854
1742
|
}
|
|
1855
1743
|
case "ToEnvoyWebSocketOpen": {
|
|
@@ -2562,9 +2450,8 @@ function decodeToOutbound(bytes) {
|
|
|
2562
2450
|
function assert(condition, message) {
|
|
2563
2451
|
if (!condition) throw new Error(message ?? "Assertion failed");
|
|
2564
2452
|
}
|
|
2565
|
-
var VERSION =
|
|
2453
|
+
var VERSION = 6;
|
|
2566
2454
|
export {
|
|
2567
|
-
HttpStreamAbortReasonKind,
|
|
2568
2455
|
StopActorReason,
|
|
2569
2456
|
StopCode,
|
|
2570
2457
|
VERSION,
|
|
@@ -2598,8 +2485,6 @@ export {
|
|
|
2598
2485
|
readEventWrapper,
|
|
2599
2486
|
readGatewayId,
|
|
2600
2487
|
readHibernatingRequest,
|
|
2601
|
-
readHttpStreamAbortReason,
|
|
2602
|
-
readHttpStreamAbortReasonKind,
|
|
2603
2488
|
readId,
|
|
2604
2489
|
readJson,
|
|
2605
2490
|
readKvDeleteRangeRequest,
|
|
@@ -2664,7 +2549,6 @@ export {
|
|
|
2664
2549
|
readToEnvoyInit,
|
|
2665
2550
|
readToEnvoyKvResponse,
|
|
2666
2551
|
readToEnvoyPing,
|
|
2667
|
-
readToEnvoyRequestAbort,
|
|
2668
2552
|
readToEnvoyRequestChunk,
|
|
2669
2553
|
readToEnvoyRequestStart,
|
|
2670
2554
|
readToEnvoySqliteCommitResponse,
|
|
@@ -2687,7 +2571,6 @@ export {
|
|
|
2687
2571
|
readToRivetKvRequest,
|
|
2688
2572
|
readToRivetMetadata,
|
|
2689
2573
|
readToRivetPong,
|
|
2690
|
-
readToRivetResponseAbort,
|
|
2691
2574
|
readToRivetResponseChunk,
|
|
2692
2575
|
readToRivetResponseStart,
|
|
2693
2576
|
readToRivetSqliteCommitRequest,
|
|
@@ -2719,8 +2602,6 @@ export {
|
|
|
2719
2602
|
writeEventWrapper,
|
|
2720
2603
|
writeGatewayId,
|
|
2721
2604
|
writeHibernatingRequest,
|
|
2722
|
-
writeHttpStreamAbortReason,
|
|
2723
|
-
writeHttpStreamAbortReasonKind,
|
|
2724
2605
|
writeId,
|
|
2725
2606
|
writeJson,
|
|
2726
2607
|
writeKvDeleteRangeRequest,
|
|
@@ -2785,7 +2666,6 @@ export {
|
|
|
2785
2666
|
writeToEnvoyInit,
|
|
2786
2667
|
writeToEnvoyKvResponse,
|
|
2787
2668
|
writeToEnvoyPing,
|
|
2788
|
-
writeToEnvoyRequestAbort,
|
|
2789
2669
|
writeToEnvoyRequestChunk,
|
|
2790
2670
|
writeToEnvoyRequestStart,
|
|
2791
2671
|
writeToEnvoySqliteCommitResponse,
|
|
@@ -2808,7 +2688,6 @@ export {
|
|
|
2808
2688
|
writeToRivetKvRequest,
|
|
2809
2689
|
writeToRivetMetadata,
|
|
2810
2690
|
writeToRivetPong,
|
|
2811
|
-
writeToRivetResponseAbort,
|
|
2812
2691
|
writeToRivetResponseChunk,
|
|
2813
2692
|
writeToRivetResponseStart,
|
|
2814
2693
|
writeToRivetSqliteCommitRequest,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/engine-envoy-protocol",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsup src/index.ts",
|
|
24
|
-
"test": "vitest run",
|
|
25
24
|
"clean": "rm -rf dist",
|
|
26
25
|
"check-types": "tsc --noEmit"
|
|
27
26
|
},
|
|
@@ -32,7 +31,6 @@
|
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"@types/node": "^20.19.13",
|
|
34
33
|
"tsup": "^8.5.0",
|
|
35
|
-
"typescript": "^5.9.2"
|
|
36
|
-
"vitest": "^3.2.4"
|
|
34
|
+
"typescript": "^5.9.2"
|
|
37
35
|
}
|
|
38
36
|
}
|