@replit/river 0.12.6 → 0.13.1

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 (51) hide show
  1. package/README.md +6 -1
  2. package/dist/{builder-c593de11.d.ts → builder-eef3b061.d.ts} +16 -7
  3. package/dist/{chunk-AFLZ6INU.js → chunk-JXKTY3GQ.js} +77 -49
  4. package/dist/{chunk-IIBVKYDB.js → chunk-JXO2SCQB.js} +39 -1
  5. package/dist/{chunk-4SDJ5VN4.js → chunk-LDUFHGZU.js} +150 -116
  6. package/dist/{chunk-VLBVQX5H.js → chunk-Q7AWJYDQ.js} +1 -1
  7. package/dist/{chunk-XFFS4UOD.js → chunk-SCG5S2EC.js} +9 -9
  8. package/dist/{messageFraming-b200ef25.d.ts → connection-03e650c8.d.ts} +17 -2
  9. package/dist/{connection-ba37d174.d.ts → connection-d052d027.d.ts} +1 -1
  10. package/dist/{index-54e0f99c.d.ts → index-9aa0aabb.d.ts} +29 -39
  11. package/dist/router/index.cjs +83 -56
  12. package/dist/router/index.d.cts +5 -5
  13. package/dist/router/index.d.ts +5 -5
  14. package/dist/router/index.js +2 -2
  15. package/dist/transport/impls/uds/client.cjs +144 -122
  16. package/dist/transport/impls/uds/client.d.cts +2 -3
  17. package/dist/transport/impls/uds/client.d.ts +2 -3
  18. package/dist/transport/impls/uds/client.js +5 -6
  19. package/dist/transport/impls/uds/server.cjs +153 -129
  20. package/dist/transport/impls/uds/server.d.cts +2 -3
  21. package/dist/transport/impls/uds/server.d.ts +2 -3
  22. package/dist/transport/impls/uds/server.js +4 -5
  23. package/dist/transport/impls/ws/client.cjs +151 -134
  24. package/dist/transport/impls/ws/client.d.cts +4 -4
  25. package/dist/transport/impls/ws/client.d.ts +4 -4
  26. package/dist/transport/impls/ws/client.js +10 -17
  27. package/dist/transport/impls/ws/server.cjs +153 -129
  28. package/dist/transport/impls/ws/server.d.cts +2 -2
  29. package/dist/transport/impls/ws/server.d.ts +2 -2
  30. package/dist/transport/impls/ws/server.js +4 -4
  31. package/dist/transport/index.cjs +204 -169
  32. package/dist/transport/index.d.cts +1 -1
  33. package/dist/transport/index.d.ts +1 -1
  34. package/dist/transport/index.js +3 -3
  35. package/dist/util/testHelpers.cjs +294 -16
  36. package/dist/util/testHelpers.d.cts +2 -2
  37. package/dist/util/testHelpers.d.ts +2 -2
  38. package/dist/util/testHelpers.js +30 -8
  39. package/package.json +1 -9
  40. package/dist/chunk-PBPXYLI6.js +0 -44
  41. package/dist/chunk-Q7GL34DZ.js +0 -47
  42. package/dist/connection-1f9971d8.d.ts +0 -17
  43. package/dist/connection-24d878ac.d.ts +0 -18
  44. package/dist/transport/impls/stdio/client.cjs +0 -904
  45. package/dist/transport/impls/stdio/client.d.cts +0 -27
  46. package/dist/transport/impls/stdio/client.d.ts +0 -27
  47. package/dist/transport/impls/stdio/client.js +0 -42
  48. package/dist/transport/impls/stdio/server.cjs +0 -879
  49. package/dist/transport/impls/stdio/server.d.cts +0 -25
  50. package/dist/transport/impls/stdio/server.d.ts +0 -25
  51. package/dist/transport/impls/stdio/server.js +0 -33
@@ -1,25 +0,0 @@
1
- import { S as ServerTransport, b as TransportClientId, c as TransportOptions } from '../../../index-54e0f99c.js';
2
- import { S as StreamConnection } from '../../../connection-1f9971d8.js';
3
- import '../../../types-3e5768ec.js';
4
- import '@sinclair/typebox';
5
- import '../../../messageFraming-b200ef25.js';
6
- import 'node:stream';
7
-
8
- /**
9
- * A server-side transport implementation that uses standard input and output streams.
10
- * This will sit idle until a client connects.
11
- * @extends Transport
12
- */
13
- declare class StdioServerTransport extends ServerTransport<StreamConnection> {
14
- input: NodeJS.ReadableStream;
15
- output: NodeJS.WritableStream;
16
- /**
17
- * Constructs a new StdioServerTransport instance.
18
- * @param clientId - The ID of the client associated with this transport.
19
- * @param input - The readable stream to use as input. Defaults to process.stdin.
20
- * @param output - The writable stream to use as output. Defaults to process.stdout.
21
- */
22
- constructor(clientId: TransportClientId, input?: NodeJS.ReadableStream, output?: NodeJS.WritableStream, providedOptions?: Partial<TransportOptions>);
23
- }
24
-
25
- export { StdioServerTransport };
@@ -1,25 +0,0 @@
1
- import { S as ServerTransport, b as TransportClientId, c as TransportOptions } from '../../../index-54e0f99c.js';
2
- import { S as StreamConnection } from '../../../connection-1f9971d8.js';
3
- import '../../../types-3e5768ec.js';
4
- import '@sinclair/typebox';
5
- import '../../../messageFraming-b200ef25.js';
6
- import 'node:stream';
7
-
8
- /**
9
- * A server-side transport implementation that uses standard input and output streams.
10
- * This will sit idle until a client connects.
11
- * @extends Transport
12
- */
13
- declare class StdioServerTransport extends ServerTransport<StreamConnection> {
14
- input: NodeJS.ReadableStream;
15
- output: NodeJS.WritableStream;
16
- /**
17
- * Constructs a new StdioServerTransport instance.
18
- * @param clientId - The ID of the client associated with this transport.
19
- * @param input - The readable stream to use as input. Defaults to process.stdin.
20
- * @param output - The writable stream to use as output. Defaults to process.stdout.
21
- */
22
- constructor(clientId: TransportClientId, input?: NodeJS.ReadableStream, output?: NodeJS.WritableStream, providedOptions?: Partial<TransportOptions>);
23
- }
24
-
25
- export { StdioServerTransport };
@@ -1,33 +0,0 @@
1
- import {
2
- StreamConnection
3
- } from "../../../chunk-Q7GL34DZ.js";
4
- import "../../../chunk-5IZ2UHWV.js";
5
- import "../../../chunk-IIBVKYDB.js";
6
- import {
7
- ServerTransport
8
- } from "../../../chunk-4SDJ5VN4.js";
9
- import "../../../chunk-GZ7HCLLM.js";
10
- import "../../../chunk-XFFS4UOD.js";
11
- import "../../../chunk-H4BYJELI.js";
12
-
13
- // transport/impls/stdio/server.ts
14
- var StdioServerTransport = class extends ServerTransport {
15
- input = process.stdin;
16
- output = process.stdout;
17
- /**
18
- * Constructs a new StdioServerTransport instance.
19
- * @param clientId - The ID of the client associated with this transport.
20
- * @param input - The readable stream to use as input. Defaults to process.stdin.
21
- * @param output - The writable stream to use as output. Defaults to process.stdout.
22
- */
23
- constructor(clientId, input = process.stdin, output = process.stdout, providedOptions) {
24
- super(clientId, providedOptions);
25
- this.input = input;
26
- this.output = output;
27
- const conn = new StreamConnection(this.input, this.output);
28
- this.handleConnection(conn);
29
- }
30
- };
31
- export {
32
- StdioServerTransport
33
- };