@replit/river 0.12.5 → 0.13.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 (51) hide show
  1. package/README.md +4 -1
  2. package/dist/{builder-c593de11.d.ts → builder-169fbf7f.d.ts} +16 -7
  3. package/dist/{chunk-AFLZ6INU.js → chunk-CBRQM65K.js} +29 -10
  4. package/dist/{chunk-IIBVKYDB.js → chunk-CDH7QSB4.js} +39 -1
  5. package/dist/{chunk-XFFS4UOD.js → chunk-MGGIUH5O.js} +7 -7
  6. package/dist/{chunk-6OAKPO5R.js → chunk-NPXAAD7M.js} +1 -1
  7. package/dist/{chunk-2PKONGC3.js → chunk-R2IMXRVU.js} +160 -135
  8. package/dist/{connection-4a839b9a.d.ts → connection-ab681c08.d.ts} +1 -1
  9. package/dist/{messageFraming-b200ef25.d.ts → connection-dd789651.d.ts} +17 -2
  10. package/dist/{index-1afc5580.d.ts → index-21c1b21d.d.ts} +32 -18
  11. package/dist/router/index.cjs +31 -13
  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 +153 -140
  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 +161 -146
  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 +157 -142
  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 +7 -7
  27. package/dist/transport/impls/ws/server.cjs +161 -146
  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 +212 -186
  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-7J66WOIC.js +0 -44
  41. package/dist/chunk-H4QR2K3T.js +0 -47
  42. package/dist/connection-64b9e0ff.d.ts +0 -17
  43. package/dist/connection-a6cc48e8.d.ts +0 -18
  44. package/dist/transport/impls/stdio/client.cjs +0 -913
  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 -888
  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,27 +0,0 @@
1
- import { a as ClientTransport, b as TransportClientId, c as TransportOptions } from '../../../index-1afc5580.js';
2
- import { S as StreamConnection } from '../../../connection-64b9e0ff.js';
3
- import '../../../types-3e5768ec.js';
4
- import '@sinclair/typebox';
5
- import '../../../messageFraming-b200ef25.js';
6
- import 'node:stream';
7
-
8
- /**
9
- * A client-side transport implementation that uses standard input and output streams.
10
- * Will eagerly connect as soon as it's initialized.
11
- * @extends Transport
12
- */
13
- declare class StdioClientTransport extends ClientTransport<StreamConnection> {
14
- input: NodeJS.ReadableStream;
15
- output: NodeJS.WritableStream;
16
- serverId: TransportClientId;
17
- /**
18
- * Constructs a new StdioClientTransport 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: TransportClientId, input: NodeJS.ReadableStream | undefined, output: NodeJS.WritableStream | undefined, serverId: TransportClientId, providedOptions?: Partial<TransportOptions>);
24
- createNewOutgoingConnection(to: TransportClientId): Promise<StreamConnection>;
25
- }
26
-
27
- export { StdioClientTransport };
@@ -1,27 +0,0 @@
1
- import { a as ClientTransport, b as TransportClientId, c as TransportOptions } from '../../../index-1afc5580.js';
2
- import { S as StreamConnection } from '../../../connection-64b9e0ff.js';
3
- import '../../../types-3e5768ec.js';
4
- import '@sinclair/typebox';
5
- import '../../../messageFraming-b200ef25.js';
6
- import 'node:stream';
7
-
8
- /**
9
- * A client-side transport implementation that uses standard input and output streams.
10
- * Will eagerly connect as soon as it's initialized.
11
- * @extends Transport
12
- */
13
- declare class StdioClientTransport extends ClientTransport<StreamConnection> {
14
- input: NodeJS.ReadableStream;
15
- output: NodeJS.WritableStream;
16
- serverId: TransportClientId;
17
- /**
18
- * Constructs a new StdioClientTransport 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: TransportClientId, input: NodeJS.ReadableStream | undefined, output: NodeJS.WritableStream | undefined, serverId: TransportClientId, providedOptions?: Partial<TransportOptions>);
24
- createNewOutgoingConnection(to: TransportClientId): Promise<StreamConnection>;
25
- }
26
-
27
- export { StdioClientTransport };
@@ -1,42 +0,0 @@
1
- import {
2
- StreamConnection
3
- } from "../../../chunk-H4QR2K3T.js";
4
- import "../../../chunk-5IZ2UHWV.js";
5
- import "../../../chunk-IIBVKYDB.js";
6
- import {
7
- ClientTransport
8
- } from "../../../chunk-2PKONGC3.js";
9
- import "../../../chunk-GZ7HCLLM.js";
10
- import "../../../chunk-XFFS4UOD.js";
11
- import {
12
- log
13
- } from "../../../chunk-H4BYJELI.js";
14
-
15
- // transport/impls/stdio/client.ts
16
- var StdioClientTransport = class extends ClientTransport {
17
- input = process.stdin;
18
- output = process.stdout;
19
- serverId;
20
- /**
21
- * Constructs a new StdioClientTransport instance.
22
- * @param clientId - The ID of the client associated with this transport.
23
- * @param input - The readable stream to use as input. Defaults to process.stdin.
24
- * @param output - The writable stream to use as output. Defaults to process.stdout.
25
- */
26
- constructor(clientId, input = process.stdin, output = process.stdout, serverId, providedOptions) {
27
- super(clientId, providedOptions);
28
- this.input = input;
29
- this.output = output;
30
- this.serverId = serverId;
31
- void this.connect(serverId);
32
- }
33
- async createNewOutgoingConnection(to) {
34
- log?.info(`${this.clientId} -- establishing a new stream to ${to}`);
35
- const conn = new StreamConnection(this.input, this.output);
36
- this.handleConnection(conn, to);
37
- return Promise.resolve(conn);
38
- }
39
- };
40
- export {
41
- StdioClientTransport
42
- };