@replit/river 0.215.0 → 0.216.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.
Files changed (72) hide show
  1. package/README.md +47 -0
  2. package/dist/adapter-BXCk-dmy.d.ts +29 -0
  3. package/dist/adapter-D5X11kmP.d.cts +29 -0
  4. package/dist/{chunk-VXRAFUA3.js → chunk-75ZMPCKC.js} +26 -6
  5. package/dist/{chunk-VXRAFUA3.js.map → chunk-75ZMPCKC.js.map} +1 -1
  6. package/dist/chunk-SHND2JG6.js +86 -0
  7. package/dist/chunk-SHND2JG6.js.map +1 -0
  8. package/dist/{chunk-RDTQZ7HO.js → chunk-ZLMQQI43.js} +12 -2
  9. package/dist/chunk-ZLMQQI43.js.map +1 -0
  10. package/dist/{client-BhwlY0-L.d.ts → client-BNc5Pj_4.d.ts} +2 -2
  11. package/dist/{client-Dk4H7qeg.d.cts → client-BZUvFL6B.d.cts} +2 -2
  12. package/dist/codec/index.cjs.map +1 -1
  13. package/dist/codec/index.d.cts +3 -3
  14. package/dist/codec/index.d.ts +3 -3
  15. package/dist/codec/index.js +2 -2
  16. package/dist/{connection-DU9v3y8a.d.ts → connection-ou9w2dSY.d.ts} +3 -3
  17. package/dist/{connection-CS00EWuS.d.cts → connection-xxgJHs2o.d.cts} +3 -3
  18. package/dist/{index-CHCzvZ9D.d.cts → index-BAGGleT3.d.cts} +1 -1
  19. package/dist/{index-uF0cBM7z.d.ts → index-ZWkoesQD.d.ts} +1 -1
  20. package/dist/logging/index.d.cts +2 -2
  21. package/dist/logging/index.d.ts +2 -2
  22. package/dist/{message-aABg0s5M.d.cts → message-CpXWqmJw.d.cts} +1 -1
  23. package/dist/{message-aABg0s5M.d.ts → message-CpXWqmJw.d.ts} +1 -1
  24. package/dist/protobuf/codec.cjs +107 -0
  25. package/dist/protobuf/codec.cjs.map +1 -0
  26. package/dist/protobuf/codec.d.cts +13 -0
  27. package/dist/protobuf/codec.d.ts +13 -0
  28. package/dist/protobuf/codec.js +7 -0
  29. package/dist/protobuf/codec.js.map +1 -0
  30. package/dist/protobuf/index.cjs +1877 -0
  31. package/dist/protobuf/index.cjs.map +1 -0
  32. package/dist/protobuf/index.d.cts +488 -0
  33. package/dist/protobuf/index.d.ts +488 -0
  34. package/dist/protobuf/index.js +1260 -0
  35. package/dist/protobuf/index.js.map +1 -0
  36. package/dist/router/index.cjs +1 -1
  37. package/dist/router/index.cjs.map +1 -1
  38. package/dist/router/index.d.cts +12 -11
  39. package/dist/router/index.d.ts +12 -11
  40. package/dist/router/index.js +1 -1
  41. package/dist/{server-uNzkzIRh.d.ts → server-BPu7Td80.d.ts} +4 -4
  42. package/dist/{server-BR0DZaWi.d.cts → server-JdnoVO11.d.cts} +4 -4
  43. package/dist/{services-B5SY771g.d.ts → services-BrTFTO5Q.d.ts} +104 -93
  44. package/dist/{services-DBv2nmly.d.cts → services-cwGAC2rB.d.cts} +104 -93
  45. package/dist/testUtil/index.cjs +25 -5
  46. package/dist/testUtil/index.cjs.map +1 -1
  47. package/dist/testUtil/index.d.cts +8 -7
  48. package/dist/testUtil/index.d.ts +8 -7
  49. package/dist/testUtil/index.js +2 -2
  50. package/dist/transport/impls/ws/client.cjs +5 -1
  51. package/dist/transport/impls/ws/client.cjs.map +1 -1
  52. package/dist/transport/impls/ws/client.d.cts +7 -6
  53. package/dist/transport/impls/ws/client.d.ts +7 -6
  54. package/dist/transport/impls/ws/client.js +2 -2
  55. package/dist/transport/impls/ws/server.cjs +21 -5
  56. package/dist/transport/impls/ws/server.cjs.map +1 -1
  57. package/dist/transport/impls/ws/server.d.cts +7 -6
  58. package/dist/transport/impls/ws/server.d.ts +7 -6
  59. package/dist/transport/impls/ws/server.js +2 -2
  60. package/dist/transport/index.cjs +25 -5
  61. package/dist/transport/index.cjs.map +1 -1
  62. package/dist/transport/index.d.cts +8 -7
  63. package/dist/transport/index.d.ts +8 -7
  64. package/dist/transport/index.js +2 -2
  65. package/dist/{transport-BOL2p5s-.d.ts → transport-B1MUtXL7.d.ts} +7 -5
  66. package/dist/{transport-D3jzhFSi.d.cts → transport-BnU3Zb0Q.d.cts} +7 -5
  67. package/dist/types-BGGvYIJM.d.cts +20 -0
  68. package/dist/types-BGGvYIJM.d.ts +20 -0
  69. package/package.json +12 -1
  70. package/dist/adapter-CgF7vQPu.d.ts +0 -47
  71. package/dist/adapter-IGrG4KLL.d.cts +0 -47
  72. package/dist/chunk-RDTQZ7HO.js.map +0 -1
@@ -1,15 +1,16 @@
1
- import { b as ProvidedClientTransportOptions, c as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, q as ServerHandshakeOptions, T as Transport, x as SessionOptions, m as ClientTransportOptions, e as SessionNoConnection, y as SessionBoundSendFn } from '../transport-D3jzhFSi.cjs';
2
- import { C as ClientTransport } from '../client-Dk4H7qeg.cjs';
3
- import { S as ServerTransport } from '../server-BR0DZaWi.cjs';
4
- import { c as TransportClientId, e as PartialTransportMessage, b as OpaqueTransportMessage } from '../message-aABg0s5M.cjs';
1
+ import { P as ProvidedClientTransportOptions, e as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, q as ServerHandshakeOptions, T as Transport, i as SessionNoConnection, x as SessionBoundSendFn, m as ClientTransportOptions, y as SessionOptions } from '../transport-BnU3Zb0Q.cjs';
2
+ import { C as ClientTransport } from '../client-BZUvFL6B.cjs';
3
+ import { S as ServerTransport } from '../server-JdnoVO11.cjs';
4
+ import { T as TransportClientId, e as PartialTransportMessage, O as OpaqueTransportMessage } from '../message-CpXWqmJw.cjs';
5
5
  import { TSchema, Static } from '@sinclair/typebox';
6
- import { J as BaseErrorSchemaType, v as Readable, $ as ReadableIterator, w as ReadableResult } from '../services-DBv2nmly.cjs';
6
+ import { B as BaseErrorSchemaType, q as Readable, $ as ReadableIterator, s as ReadableResult } from '../services-cwGAC2rB.cjs';
7
7
  import { W as WsLike } from '../wslike-Dng9H1C7.cjs';
8
8
  import NodeWs from 'ws';
9
9
  import http from 'node:http';
10
10
  import { Duplex } from 'node:stream';
11
- import '../index-CHCzvZ9D.cjs';
12
- import '../adapter-IGrG4KLL.cjs';
11
+ import '../index-BAGGleT3.cjs';
12
+ import '../types-BGGvYIJM.cjs';
13
+ import '../adapter-D5X11kmP.cjs';
13
14
  import '@opentelemetry/api';
14
15
 
15
16
  interface TestTransportOptions {
@@ -1,15 +1,16 @@
1
- import { b as ProvidedClientTransportOptions, c as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, q as ServerHandshakeOptions, T as Transport, x as SessionOptions, m as ClientTransportOptions, e as SessionNoConnection, y as SessionBoundSendFn } from '../transport-BOL2p5s-.js';
2
- import { C as ClientTransport } from '../client-BhwlY0-L.js';
3
- import { S as ServerTransport } from '../server-uNzkzIRh.js';
4
- import { c as TransportClientId, e as PartialTransportMessage, b as OpaqueTransportMessage } from '../message-aABg0s5M.js';
1
+ import { P as ProvidedClientTransportOptions, e as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, q as ServerHandshakeOptions, T as Transport, i as SessionNoConnection, x as SessionBoundSendFn, m as ClientTransportOptions, y as SessionOptions } from '../transport-B1MUtXL7.js';
2
+ import { C as ClientTransport } from '../client-BNc5Pj_4.js';
3
+ import { S as ServerTransport } from '../server-BPu7Td80.js';
4
+ import { T as TransportClientId, e as PartialTransportMessage, O as OpaqueTransportMessage } from '../message-CpXWqmJw.js';
5
5
  import { TSchema, Static } from '@sinclair/typebox';
6
- import { J as BaseErrorSchemaType, v as Readable, $ as ReadableIterator, w as ReadableResult } from '../services-B5SY771g.js';
6
+ import { B as BaseErrorSchemaType, q as Readable, $ as ReadableIterator, s as ReadableResult } from '../services-BrTFTO5Q.js';
7
7
  import { W as WsLike } from '../wslike-Dng9H1C7.js';
8
8
  import NodeWs from 'ws';
9
9
  import http from 'node:http';
10
10
  import { Duplex } from 'node:stream';
11
- import '../index-uF0cBM7z.js';
12
- import '../adapter-CgF7vQPu.js';
11
+ import '../index-ZWkoesQD.js';
12
+ import '../types-BGGvYIJM.js';
13
+ import '../adapter-BXCk-dmy.js';
13
14
  import '@opentelemetry/api';
14
15
 
15
16
  interface TestTransportOptions {
@@ -5,12 +5,12 @@ import {
5
5
  SessionStateGraph,
6
6
  defaultClientTransportOptions,
7
7
  defaultTransportOptions
8
- } from "../chunk-VXRAFUA3.js";
8
+ } from "../chunk-75ZMPCKC.js";
9
9
  import "../chunk-CC7RN7GI.js";
10
10
  import {
11
11
  currentProtocolVersion,
12
12
  getTracer
13
- } from "../chunk-RDTQZ7HO.js";
13
+ } from "../chunk-ZLMQQI43.js";
14
14
 
15
15
  // testUtil/index.ts
16
16
  import NodeWs, { WebSocketServer } from "ws";
@@ -295,6 +295,10 @@ var LeakyBucketRateLimit = class {
295
295
  clearInterval(this.intervalHandle);
296
296
  this.intervalHandle = void 0;
297
297
  }
298
+ resetBudget() {
299
+ this.stopLeak();
300
+ this.budgetConsumed = 0;
301
+ }
298
302
  close() {
299
303
  this.stopLeak();
300
304
  }
@@ -683,7 +687,7 @@ function coerceErrorString(err) {
683
687
  }
684
688
 
685
689
  // package.json
686
- var version = "0.215.0";
690
+ var version = "0.216.0";
687
691
 
688
692
  // tracing/index.ts
689
693
  function getPropagationContext(ctx) {