@replit/river 0.10.13 → 0.12.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.
- package/README.md +28 -8
- package/dist/{builder-1f26296b.d.ts → builder-c593de11.d.ts} +14 -13
- package/dist/{chunk-3JGVFWKQ.js → chunk-24O3BKZA.js} +205 -180
- package/dist/chunk-4HOR4NUO.js +40 -0
- package/dist/chunk-ANGOKBE5.js +708 -0
- package/dist/{chunk-R6H2BIMC.js → chunk-GZ7HCLLM.js} +31 -7
- package/dist/{chunk-T7M7OKPE.js → chunk-H4BYJELI.js} +5 -1
- package/dist/chunk-IIBVKYDB.js +62 -0
- package/dist/chunk-IUDKWAOK.js +47 -0
- package/dist/chunk-WTOIOXB7.js +125 -0
- package/dist/chunk-XOTIAXAH.js +44 -0
- package/dist/codec/index.cjs +13 -7
- package/dist/codec/index.js +2 -4
- package/dist/connection-2956a1c5.d.ts +17 -0
- package/dist/connection-aaea7c88.d.ts +15 -0
- package/dist/connection-cd963ed5.d.ts +18 -0
- package/dist/index-d91775d9.d.ts +442 -0
- package/dist/logging/index.cjs +8 -3
- package/dist/logging/index.d.cts +6 -1
- package/dist/logging/index.d.ts +6 -1
- package/dist/logging/index.js +5 -3
- package/dist/messageFraming-b200ef25.d.ts +20 -0
- package/dist/router/index.cjs +249 -211
- package/dist/router/index.d.cts +6 -7
- package/dist/router/index.d.ts +6 -7
- package/dist/router/index.js +3 -3
- package/dist/transport/impls/stdio/client.cjs +891 -0
- package/dist/transport/impls/stdio/client.d.cts +27 -0
- package/dist/transport/impls/stdio/client.d.ts +27 -0
- package/dist/transport/impls/stdio/client.js +42 -0
- package/dist/transport/impls/stdio/server.cjs +861 -0
- package/dist/transport/impls/stdio/server.d.cts +25 -0
- package/dist/transport/impls/stdio/server.d.ts +25 -0
- package/dist/transport/impls/stdio/server.js +33 -0
- package/dist/transport/impls/uds/client.cjs +893 -0
- package/dist/transport/impls/uds/client.d.cts +16 -0
- package/dist/transport/impls/uds/client.d.ts +16 -0
- package/dist/transport/impls/uds/client.js +44 -0
- package/dist/transport/impls/uds/server.cjs +863 -0
- package/dist/transport/impls/uds/server.d.cts +16 -0
- package/dist/transport/impls/uds/server.d.ts +16 -0
- package/dist/transport/impls/uds/server.js +39 -0
- package/dist/transport/impls/ws/client.cjs +587 -248
- package/dist/transport/impls/ws/client.d.cts +6 -21
- package/dist/transport/impls/ws/client.d.ts +6 -21
- package/dist/transport/impls/ws/client.js +77 -7
- package/dist/transport/impls/ws/server.cjs +541 -194
- package/dist/transport/impls/ws/server.d.cts +6 -10
- package/dist/transport/impls/ws/server.d.ts +6 -10
- package/dist/transport/impls/ws/server.js +31 -8
- package/dist/transport/index.cjs +652 -129
- package/dist/transport/index.d.cts +3 -276
- package/dist/transport/index.d.ts +3 -276
- package/dist/transport/index.js +13 -10
- package/dist/util/testHelpers.cjs +40 -602
- package/dist/util/testHelpers.d.cts +18 -37
- package/dist/util/testHelpers.d.ts +18 -37
- package/dist/util/testHelpers.js +27 -47
- package/package.json +29 -14
- package/dist/chunk-3MQETIGZ.js +0 -80
- package/dist/chunk-5IC5XMWK.js +0 -140
- package/dist/chunk-L7D75G4K.js +0 -29
- package/dist/chunk-LQXPKF3A.js +0 -282
- package/dist/chunk-PJ2EUO7O.js +0 -63
- package/dist/chunk-WVT5QXMZ.js +0 -20
- package/dist/chunk-ZE4MX7DF.js +0 -75
- package/dist/connection-2529fc14.d.ts +0 -10
- package/dist/connection-316d6e3a.d.ts +0 -10
- package/dist/connection-8e19874c.d.ts +0 -11
- package/dist/connection-f7688cc1.d.ts +0 -11
- package/dist/transport/impls/stdio/stdio.cjs +0 -508
- package/dist/transport/impls/stdio/stdio.d.cts +0 -26
- package/dist/transport/impls/stdio/stdio.d.ts +0 -26
- package/dist/transport/impls/stdio/stdio.js +0 -70
- package/dist/transport/impls/unixsocket/client.cjs +0 -506
- package/dist/transport/impls/unixsocket/client.d.cts +0 -16
- package/dist/transport/impls/unixsocket/client.d.ts +0 -16
- package/dist/transport/impls/unixsocket/client.js +0 -67
- package/dist/transport/impls/unixsocket/server.cjs +0 -510
- package/dist/transport/impls/unixsocket/server.d.cts +0 -18
- package/dist/transport/impls/unixsocket/server.d.ts +0 -18
- package/dist/transport/impls/unixsocket/server.js +0 -73
- /package/dist/{chunk-ORAG7IAU.js → chunk-5IZ2UHWV.js} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Server, Socket } from 'node:net';
|
|
2
|
+
import { S as ServerTransport, b as TransportClientId, c as TransportOptions } from '../../../index-d91775d9.js';
|
|
3
|
+
import { U as UdsConnection } from '../../../connection-cd963ed5.js';
|
|
4
|
+
import '../../../types-3e5768ec.js';
|
|
5
|
+
import '@sinclair/typebox';
|
|
6
|
+
import '../../../messageFraming-b200ef25.js';
|
|
7
|
+
import 'node:stream';
|
|
8
|
+
|
|
9
|
+
declare class UnixDomainSocketServerTransport extends ServerTransport<UdsConnection> {
|
|
10
|
+
server: Server;
|
|
11
|
+
constructor(server: Server, clientId: TransportClientId, providedOptions?: Partial<TransportOptions>);
|
|
12
|
+
connectionHandler: (sock: Socket) => void;
|
|
13
|
+
close(): void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { UnixDomainSocketServerTransport };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Server, Socket } from 'node:net';
|
|
2
|
+
import { S as ServerTransport, b as TransportClientId, c as TransportOptions } from '../../../index-d91775d9.js';
|
|
3
|
+
import { U as UdsConnection } from '../../../connection-cd963ed5.js';
|
|
4
|
+
import '../../../types-3e5768ec.js';
|
|
5
|
+
import '@sinclair/typebox';
|
|
6
|
+
import '../../../messageFraming-b200ef25.js';
|
|
7
|
+
import 'node:stream';
|
|
8
|
+
|
|
9
|
+
declare class UnixDomainSocketServerTransport extends ServerTransport<UdsConnection> {
|
|
10
|
+
server: Server;
|
|
11
|
+
constructor(server: Server, clientId: TransportClientId, providedOptions?: Partial<TransportOptions>);
|
|
12
|
+
connectionHandler: (sock: Socket) => void;
|
|
13
|
+
close(): void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { UnixDomainSocketServerTransport };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UdsConnection
|
|
3
|
+
} from "../../../chunk-XOTIAXAH.js";
|
|
4
|
+
import "../../../chunk-IIBVKYDB.js";
|
|
5
|
+
import {
|
|
6
|
+
ServerTransport
|
|
7
|
+
} from "../../../chunk-ANGOKBE5.js";
|
|
8
|
+
import "../../../chunk-GZ7HCLLM.js";
|
|
9
|
+
import "../../../chunk-WTOIOXB7.js";
|
|
10
|
+
import {
|
|
11
|
+
log
|
|
12
|
+
} from "../../../chunk-H4BYJELI.js";
|
|
13
|
+
|
|
14
|
+
// transport/impls/uds/server.ts
|
|
15
|
+
var UnixDomainSocketServerTransport = class extends ServerTransport {
|
|
16
|
+
server;
|
|
17
|
+
constructor(server, clientId, providedOptions) {
|
|
18
|
+
super(clientId, providedOptions);
|
|
19
|
+
this.server = server;
|
|
20
|
+
server.addListener("connection", this.connectionHandler);
|
|
21
|
+
server.on("listening", () => {
|
|
22
|
+
log?.info(`${this.clientId} -- server is listening`);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
connectionHandler = (sock) => {
|
|
26
|
+
const conn = new UdsConnection(sock);
|
|
27
|
+
this.handleConnection(conn);
|
|
28
|
+
log?.info(
|
|
29
|
+
`${this.clientId} -- new incoming uds connection (id: ${conn.debugId})`
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
close() {
|
|
33
|
+
super.close();
|
|
34
|
+
this.server.removeListener("connection", this.connectionHandler);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
UnixDomainSocketServerTransport
|
|
39
|
+
};
|