posipaki 0.42.0 → 0.43.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/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ declare function defineActor<Args, InternalState, InMsg extends Message, OutMsg
20
20
  //#endregion
21
21
  //#region src/version.d.ts
22
22
  /** posipaki's release version. Must equal package.json's `version`. */
23
- declare const LIB_VERSION = "0.42.0";
23
+ declare const LIB_VERSION = "0.43.0";
24
24
  //#endregion
25
25
  export { type ActorConfig, type ActorContext, type ActorDecorated, type ActorDefinition, type ActorPlugin, type ActorReflection, type AnyProcess, AsyncProcess, type AsyncProcessFn, type ExitMessage, type HandlerFn, type HandlerOptions, type HookResult, LIB_VERSION, type Message, type MethodOptions, type PluginTransform, Process, type ProcessCtx, type ProcessFn, type SenderInfo, type SenderOrigin, type SpawnedFrom, type StopMessage, type WithSender, type WithoutSender, asyncify, callHook, chainHook, defineActor, defineMessages, mergeConfigs, propagateError, runDispatch, runDispatchAsync, spawn, spawnAsync, stopPropagation };
26
26
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { i as runDispatch } from "./util-Brtfgv68.js";
2
2
  import { a as spawnAsync, i as runDispatchAsync, o as asyncify, t as AsyncProcess } from "./process.async-C_-NpMFX.js";
3
3
  import { n as chainHook, o as propagateError, r as mergeConfigs, s as stopPropagation, t as callHook } from "./hooks-CgXhmY4r.js";
4
4
  import { n as defineMessages, t as defineActor } from "./define-actor-D7c9vn6S.js";
5
- import { t as LIB_VERSION } from "./version-DnLiQ9Q-.js";
5
+ import { t as LIB_VERSION } from "./version-B97iGJJk.js";
6
6
  //#region src/process.ts
7
7
  /** @deprecated Use {@link spawnAsync} instead. */
8
8
  function spawn(fn, pname, tp) {
@@ -1,5 +1,5 @@
1
1
  import { i as Message, s as SenderInfo } from "../types-DYd-DDFB.js";
2
- import { A as isError, C as StreamKind, D as errorFrame, E as badReason, F as isProto, I as isRelease, L as isResume, M as isInit, N as isMsg, O as errorReason, P as isPause, R as isState, S as Channel, T as badFrame, _ as Init, a as ClientSpawner, b as Spawner, c as Connection, d as ReactorOptions, f as Session, g as serveRemoteActor, h as reactor, i as CHANNEL_LOST, j as isExit, k as isBad, l as Listener, m as oneConnection, n as WebSocketLike, o as remoteClient, p as SessionFactory, r as WebSocketTransport, s as AnyActorDefinition, t as WS_OPEN, u as Reactor, v as Served, w as StringTransport, x as BAD_PREFIX_LIMIT, y as ServedProcess, z as isStop } from "../websocket-BYNYSi7b.js";
2
+ import { $ as isProto, B as Channel, G as errorFrame, H as StringTransport, J as isError, K as errorReason, Q as isPause, U as badFrame, V as StreamKind, W as badReason, X as isInit, Y as isExit, Z as isMsg, _ as serveRemoteActor, a as ClientSpawner, b as ServedProcess, c as Connection, d as ReactorOptions, et as isRelease, f as ServedConnection, g as reactor, h as oneConnection, i as CHANNEL_LOST, l as Listener, m as SessionFactory, n as WebSocketLike, nt as isState, o as remoteClient, p as Session, q as isBad, r as WebSocketTransport, rt as isStop, s as AnyActorDefinition, t as WS_OPEN, tt as isResume, u as Reactor, v as Init, x as Spawner, y as Served, z as BAD_PREFIX_LIMIT } from "../websocket-Dyfw3WDD.js";
3
3
  //#region src/remote/remote-process.d.ts
4
4
  interface RemoteExit {
5
5
  code: number;
@@ -342,5 +342,5 @@ declare function workerClientSpawner<Args = unknown>(url: string | ((args: Args)
342
342
  //#region src/remote/spawners/worker-self.d.ts
343
343
  declare function workerSelfSpawner(selfScope?: WorkerLike): Spawner;
344
344
  //#endregion
345
- export { type AnyActorDefinition, BAD_PREFIX_LIMIT, type BunServerWebSocketLike, CHANNEL_LOST, type Channel, type ClientSpawner, type Connection, type FrameSink, type Init, type Listener, type OpenedWebSocket, PROCESS_REF, type ProcessRef, type Reactor, type ReactorOptions, type RemoteMessage, RemoteProcess, type Served, type ServedProcess, type Session, type SessionFactory, type Spawner, type StringTransport, VERSION, WORKER_VERSION, WS_OPEN, type WebSocketClientOptions, type WebSocketCtor, type WebSocketLike, type WebSocketOpener, WebSocketTransport, type WorkerCtor, type WorkerLike, WorkerTransport, badFrame, badReason, bunServerWebSocket, decode, encode, errorFrame, errorReason, isBad, isError, isExit, isInit, isMsg, isPause, isProto, isRelease, isRemoteProcess, isResume, isState, isStop, json1Channel, makeSender, oneConnection, reactor, readFrame, remoteClient, rootIdFor, serveRemoteActor, workerClientSpawner, workerSelfSpawner, wsClientSpawner, wsServerSpawner };
345
+ export { type AnyActorDefinition, BAD_PREFIX_LIMIT, type BunServerWebSocketLike, CHANNEL_LOST, type Channel, type ClientSpawner, type Connection, type FrameSink, type Init, type Listener, type OpenedWebSocket, PROCESS_REF, type ProcessRef, type Reactor, type ReactorOptions, type RemoteMessage, RemoteProcess, type Served, type ServedConnection, type ServedProcess, type Session, type SessionFactory, type Spawner, type StringTransport, VERSION, WORKER_VERSION, WS_OPEN, type WebSocketClientOptions, type WebSocketCtor, type WebSocketLike, type WebSocketOpener, WebSocketTransport, type WorkerCtor, type WorkerLike, WorkerTransport, badFrame, badReason, bunServerWebSocket, decode, encode, errorFrame, errorReason, isBad, isError, isExit, isInit, isMsg, isPause, isProto, isRelease, isRemoteProcess, isResume, isState, isStop, json1Channel, makeSender, oneConnection, reactor, readFrame, remoteClient, rootIdFor, serveRemoteActor, workerClientSpawner, workerSelfSpawner, wsClientSpawner, wsServerSpawner };
346
346
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { A as isStop, C as isInit, D as isRelease, E as isProto, M as isRemoteProcess, N as rootIdFor, O as isResume, S as isExit, T as isPause, _ as badReason, a as oneConnection, b as isBad, c as makeSender, d as decode, f as encode, g as badFrame, h as BAD_PREFIX_LIMIT, i as remoteClient, j as PROCESS_REF, k as isState, l as RemoteProcess, m as readFrame, n as WebSocketTransport, o as reactor, p as json1Channel, r as CHANNEL_LOST, s as serveRemoteActor, t as WS_OPEN, u as VERSION, v as errorFrame, w as isMsg, x as isError, y as errorReason } from "../websocket-DttBoCRL.js";
1
+ import { A as isStop, C as isInit, D as isRelease, E as isProto, M as isRemoteProcess, N as rootIdFor, O as isResume, S as isExit, T as isPause, _ as badReason, a as oneConnection, b as isBad, c as makeSender, d as decode, f as encode, g as badFrame, h as BAD_PREFIX_LIMIT, i as remoteClient, j as PROCESS_REF, k as isState, l as RemoteProcess, m as readFrame, n as WebSocketTransport, o as reactor, p as json1Channel, r as CHANNEL_LOST, s as serveRemoteActor, t as WS_OPEN, u as VERSION, v as errorFrame, w as isMsg, x as isError, y as errorReason } from "../websocket-Dqd8Hu6G.js";
2
2
  //#region src/remote/transports/worker.ts
3
3
  /** The worker encoding: native structured clone (no JSON). */
4
4
  const WORKER_VERSION = "clone.v1";
@@ -1,9 +1,9 @@
1
1
  import { i as Message } from "../types-DYd-DDFB.js";
2
2
  import { h as MethodOptions, l as ActorDefinition, p as HandlerOptions, v as ReflectionOptions } from "../hooks-D1QaP6Vv.js";
3
- import { S as Channel, a as ClientSpawner, l as Listener, n as WebSocketLike, w as StringTransport } from "../websocket-BYNYSi7b.js";
3
+ import { A as StdioWireError, B as Channel, C as HANDSHAKE_TIMEOUT_MS, D as OutputFilter, E as OutputFd, F as outputFrame, H as StringTransport, I as parseOutputFrame, L as serverChannel, M as errorFrame, N as errorReason, O as OutputFrame, P as fdStreams, R as stderrSink, S as ClientChannelOptions, T as LineTransport, a as ClientSpawner, j as clientChannel, k as OutputSink, l as Listener, n as WebSocketLike, w as LineStreams } from "../websocket-Dyfw3WDD.js";
4
4
  import { FileHandle } from "node:fs/promises";
5
5
  import { ChildProcess, StdioOptions } from "node:child_process";
6
- import { Duplex, Readable, Writable } from "node:stream";
6
+ import { Duplex } from "node:stream";
7
7
  import { IncomingMessage } from "node:http";
8
8
  //#region src/remote/transports/fifo.d.ts
9
9
  declare class FifoUtf8NlineTransport implements StringTransport {
@@ -210,91 +210,6 @@ interface SubprocessActorBundle<Args, State, InMsg extends Message, OutMsg exten
210
210
  }
211
211
  declare function defineSubprocessActor<Args, State, InMsg extends Message, OutMsg extends Message, Methods extends MethodOptions, Handlers extends HandlerOptions<InMsg>, R extends ReflectionOptions>(actor: ActorDefinition<Args, State, InMsg, OutMsg, R>, url: string, opts?: SubprocessActorOptions): SubprocessActorBundle<Args, State, InMsg, OutMsg, R>;
212
212
  //#endregion
213
- //#region src/remote/stdio.d.ts
214
- /** The stream pair a line transport talks over. */
215
- interface LineStreams {
216
- read: Readable;
217
- write: Writable;
218
- }
219
- /** A stream of the far end's process: its stdout or its stderr. */
220
- type OutputFd = 1 | 2;
221
- /** Where the far end's own output goes. */
222
- type OutputSink = (fd: OutputFd, data: string) => void;
223
- /** How long to wait for the far end's first protocol frame. */
224
- declare const HANDSHAKE_TIMEOUT_MS = 15000;
225
- /** Raised when the wire itself fails: no frame, the wrong protocol, a peer that went away. */
226
- declare class StdioWireError extends Error {
227
- constructor(message: string);
228
- }
229
- /** One frame of the far end's own output. */
230
- interface OutputFrame {
231
- fd: OutputFd;
232
- data: string;
233
- }
234
- declare function outputFrame(fd: OutputFd, data: string): string;
235
- /** The output frame a line carries, or null when it carries something else. */
236
- declare function parseOutputFrame(line: string): OutputFrame | null;
237
- /** An `$error` frame as a line. The word and its shape are the shared vocabulary's
238
- * (channel.ts) — one word for a wire that cannot be spoken over, whether the failure was at
239
- * the start of a session or in the middle of one; what this file owns is its line form. */
240
- declare function errorFrame(reason: string): string;
241
- /** The reason an `$error` frame carries, or null when it is not one. */
242
- declare function errorReason(frame: Record<string, unknown>): string | null;
243
- /**
244
- * A `StringTransport` over a read/write stream pair, one JSON frame per line.
245
- *
246
- * `close()` is idempotent and never throws: teardown races are normal here —
247
- * the peer exits, the read side ends, and a write arrives a moment later.
248
- */
249
- declare class LineTransport implements StringTransport {
250
- private readonly streams;
251
- private pvtOnMessage;
252
- private pvtOnClose;
253
- private pvtClosed;
254
- private pvtClosing;
255
- constructor(streams: LineStreams);
256
- get closed(): boolean;
257
- get hasHandler(): boolean;
258
- onMessage(handler: (line: string) => void): void;
259
- removeHandler(): ((line: string) => void) | null;
260
- onClose(handler: () => void): void;
261
- send(frame: string): Promise<void>;
262
- close(): Promise<void>;
263
- private pvtClose;
264
- }
265
- /** Streams over two fds of *our own* process — the child side of an fd wire. */
266
- declare function fdStreams(readFd: number, writeFd: number): LineStreams;
267
- /**
268
- * A transport that lifts output frames out of the stream: everything else is
269
- * passed through untouched, so the protocol sees frames and only frames.
270
- */
271
- declare class OutputFilter implements StringTransport {
272
- private readonly inner;
273
- private readonly sink;
274
- constructor(inner: StringTransport, sink: OutputSink);
275
- send(frame: string): void | Promise<void>;
276
- onMessage(handler: (frame: string) => void): void;
277
- removeHandler(): void;
278
- onClose(handler: () => void): void;
279
- close(): Promise<void>;
280
- }
281
- /** Write the far end's output to our stderr, tagged with its name. */
282
- declare function stderrSink(name?: string): OutputSink;
283
- interface ClientChannelOptions {
284
- /** Where the far end's own output goes. Defaults to our stderr. */
285
- onOutput?: OutputSink;
286
- /** How long to wait for the peer's protocol frame. Defaults to {@link HANDSHAKE_TIMEOUT_MS}. */
287
- timeoutMs?: number;
288
- }
289
- /**
290
- * The client end of the wire: hand the streams to the seam (minus output
291
- * frames) and wait for the peer's `$proto`. A first stage reports a failed
292
- * start as an `$error` frame instead.
293
- */
294
- declare function clientChannel(streams: LineStreams, opts?: ClientChannelOptions): Promise<Channel>;
295
- /** The server end of the wire — a payload speaking stdio itself. */
296
- declare function serverChannel(streams: LineStreams): Promise<Channel>;
297
- //#endregion
298
213
  //#region src/remote/gateway.d.ts
299
214
  /** Exit code for "this environment could not be set up". */
300
215
  declare const GATEWAY_FAILED = 1;
@@ -466,7 +381,12 @@ declare function unixSocketListener<Meta = unknown>(options: UnixSocketListenerO
466
381
  declare function connectUnixSocket(path: string, options?: UnixSocketClientOptions): Promise<LineTransport>;
467
382
  //#endregion
468
383
  //#region src/remote/spawners/socket-client.d.ts
469
- declare function socketClientSpawner<Args = unknown>(path: string | ((args: Args) => string), options?: UnixSocketClientOptions): ClientSpawner<Args>;
384
+ /** What a socket client needs: how to reach it, and where the far end's own output goes. */
385
+ interface SocketClientSpawnerOptions extends UnixSocketClientOptions {
386
+ /** Where the far end's own output goes. Defaults to our stderr. */
387
+ onOutput?: OutputSink;
388
+ }
389
+ declare function socketClientSpawner<Args = unknown>(path: string | ((args: Args) => string), options?: SocketClientSpawnerOptions): ClientSpawner<Args>;
470
390
  //#endregion
471
391
  //#region src/remote/fifo.d.ts
472
392
  /**
@@ -549,5 +469,5 @@ interface WebSocketListenerOptions<Meta = unknown> {
549
469
  */
550
470
  declare function webSocketListener<Meta = unknown>(options: WebSocketListenerOptions<Meta>): Listener<Meta>;
551
471
  //#endregion
552
- export { type BootstrapReport, type ClientChannelOptions, DEFAULT_KIT_PARENT, DEFAULT_RUNTIMES, type FifoListenerOptions, type FifoPair, FifoUtf8NlineTransport, GATEWAY_ARTIFACT, GATEWAY_ENTRY, GATEWAY_FAILED, type GatewayBoot, HANDSHAKE_TIMEOUT_MS, type HostProgram, type HostResult, type HostRun, type HostVersion, HostVersionError, type HostVersionVerdict, KIT_LAYOUT, type Kit, type KitApp, type KitFile, type LineStreams, LineTransport, type MakeKitOptions, type OutputFd, OutputFilter, type OutputFrame, type OutputSink, PAYLOAD_ARTIFACT, PAYLOAD_REFUSED, type RemoteSpec, RemoteSpecError, type RemoteWayIn, type SpawnChild, StdioWireError, type SubprocessActorBundle, type SubprocessActorOptions, type UnixSocketClientOptions, type UnixSocketListenerOptions, type UnixSocketPeer, type UpgradeSource, type WebSocketListenerOptions, type WebSocketUpgrade, bootstrapScript, clientChannel, commandSpawner, connectUnixSocket, defineSubprocessActor, errorFrame, errorReason, fdStreams, fifoArgvSpawner, fifoClientSpawner, fifoListener, gatewayArgs, gatewayBoot, gatewayClient, hostRemote, hostVersion, hostVersionAccepts, kitVersion, makeFifoPair, makeKit, outputFrame, parseBootstrapReport, parseHostVersion, parseOutputFrame, runGateway, runHost, sameHostVersion, serverChannel, sha256Hex, socketClientSpawner, spawnChild, stderrSink, unixSocketListener, webSocketListener };
472
+ export { type BootstrapReport, type ClientChannelOptions, DEFAULT_KIT_PARENT, DEFAULT_RUNTIMES, type FifoListenerOptions, type FifoPair, FifoUtf8NlineTransport, GATEWAY_ARTIFACT, GATEWAY_ENTRY, GATEWAY_FAILED, type GatewayBoot, HANDSHAKE_TIMEOUT_MS, type HostProgram, type HostResult, type HostRun, type HostVersion, HostVersionError, type HostVersionVerdict, KIT_LAYOUT, type Kit, type KitApp, type KitFile, type LineStreams, LineTransport, type MakeKitOptions, type OutputFd, OutputFilter, type OutputFrame, type OutputSink, PAYLOAD_ARTIFACT, PAYLOAD_REFUSED, type RemoteSpec, RemoteSpecError, type RemoteWayIn, type SocketClientSpawnerOptions, type SpawnChild, StdioWireError, type SubprocessActorBundle, type SubprocessActorOptions, type UnixSocketClientOptions, type UnixSocketListenerOptions, type UnixSocketPeer, type UpgradeSource, type WebSocketListenerOptions, type WebSocketUpgrade, bootstrapScript, clientChannel, commandSpawner, connectUnixSocket, defineSubprocessActor, errorFrame, errorReason, fdStreams, fifoArgvSpawner, fifoClientSpawner, fifoListener, gatewayArgs, gatewayBoot, gatewayClient, hostRemote, hostVersion, hostVersionAccepts, kitVersion, makeFifoPair, makeKit, outputFrame, parseBootstrapReport, parseHostVersion, parseOutputFrame, runGateway, runHost, sameHostVersion, serverChannel, sha256Hex, socketClientSpawner, spawnChild, stderrSink, unixSocketListener, webSocketListener };
553
473
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","names":[],"sources":["../../src/remote/transports/fifo.ts","../../src/remote/spawners/fifo-command.ts","../../src/remote/spawners/fifo-argv.ts","../../src/remote/kit.ts","../../src/remote/define-subprocess.ts","../../src/remote/stdio.ts","../../src/remote/gateway.ts","../../src/remote/host.ts","../../src/remote/gateway-client.ts","../../src/remote/socket.ts","../../src/remote/spawners/socket-client.ts","../../src/remote/fifo.ts","../../src/remote/websocket.ts"],"mappings":";;;;;;;;cAUa,kCAAk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kB,gBAAgB,SAAS,yBAAyB,QAAQ,SAAS"}
1
+ {"version":3,"file":"node.d.ts","names":[],"sources":["../../src/remote/transports/fifo.ts","../../src/remote/spawners/fifo-command.ts","../../src/remote/spawners/fifo-argv.ts","../../src/remote/kit.ts","../../src/remote/define-subprocess.ts","../../src/remote/gateway.ts","../../src/remote/host.ts","../../src/remote/gateway-client.ts","../../src/remote/socket.ts","../../src/remote/spawners/socket-client.ts","../../src/remote/fifo.ts","../../src/remote/websocket.ts"],"mappings":";;;;;;;;cAUa,kCAAkC;UACrC;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UAED;SAuCA,aAAa,QAAQ,aAAa;SAIlC,aAAa,SAAS,aAAa;SAInC,QAAQ,QAAQ,YAAY,SAAS,aAAa;;;;;;;;;;;;SAiBlD,aACL,kBACA;IACG,WAAW,QAAQ;;;;;;;;;;;;SAqBX,QAAQ,kBAAkB,oBAAoB,QAAQ;MAS/D;EAIJ,UAAU,UAAU;EASpB,mBAAmB;EAMnB,QAAQ;MAIJ;MAIA,aAAa;EAIX,KAAK,eAAe;EAOpB,SAAS;UAMD;;;;iBCrJA,eAAe,0BAA0B,QAAQ;;;;;;;;;;;iBCe3C,gBAAgB,eAAe,QAAQ;;;;cCLhD;;cAGA;;cAGA;;cAGA;cACA;UAEI;;EAEf;;EAEA;;EAEA;;EAEA;;;UAIe;EACf;EACA;;UAGe;;EAEf;;EAEA,OAAO;;EAEP;;EAEA;;EAEA,KAAK;;UAGU;;EAEf,KAAK;;EAEL;;EAEA;;KAGU;EACN;EAAe;EAAgB;EAAiB;;EAChD;EAAe;;;iBAGL,UAAU,kBAAkB;;UAW3B,oBAAoB;EACnC;;;cAIW,yBAAyB;;;;;;;;;;;iBAYtB,YAAY,KAAK;;iBAgBjB,iBAAiB,eAAe;;cAYnC;KAED;EAAuB;;EAAe;EAAW;;;;;;;;;;;iBAW7C,mBACd,yBACA,4BACC;;;;;;iBAgBa,gBAAgB,aAAa;;;;;;iBAg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M,iBAAiB,OAAO,QAAQ;;UAGjC;;EAEf;;;;;;;iBA8BoB,mBAAmB,gBACvC,SAAS,0BAA0B,QAClC,QAAQ,SAAS;;iBAwFE,kBACpB,cACA,UAAS,0BACR,QAAQ;;;;UCjKM,mCAAmC;;EAElD,WAAW;;iBAGG,oBAAoB,gBAClC,iBAAiB,MAAM,kBACvB,UAAS,6BACR,cAAc;;;;;;;UCGA;WACN;WACA;;UAGM,oBAAoB;;EAEnC;;EAEA,UAAU,MAAM,WAAW,OAAO,QAAQ;;;;;;;iBAkBtB,aAAa,MAAM,WAAW;;;;;;iBAgB9B,aAAa,gBACjC,MAAM,UACN,UAAS,oBAAoB,QAC5B,QAAQ,SAAS;;;;;iBA8DJ,kBAAkB,gBAChC,MAAM,aAAa,MAAM,SAAS,YACjC,cAAc;;;;UCnHA;EACf,GAAG,kBAAkB,WAAW,SAAS,iBAAiB,QAAQ,QAAQ,MAAM;EAChF,IAAI,kBAAkB,WAAW,SAAS,iBAAiB,QAAQ,QAAQ,MAAM;;;UAIlE;WACN,SAAS;WACT,KAAK;;UAGC,yBAAyB;;EAExC,QAAQ;;;;;;EAMR;;;;;;EAMA,UAAU,SAAS,mBAAmB,OAAO,QAAQ;;;;;;;;;;EAUrD,QAAQ,SAAS,iBAAiB,QAAQ,QAAQ,MAAM,SAAS,QAAQ;;EAEzE,QAAQ,QAAQ,QAAQ,gBAAgB,SAAS;;;;;;;;;iBAkBnC,kBAAkB,gBAAgB,SAAS,yBAAyB,QAAQ,SAAS"}
@@ -1,5 +1,5 @@
1
- import { t as LIB_VERSION } from "../version-DnLiQ9Q-.js";
2
- import { E as isProto, i as remoteClient, n as WebSocketTransport, p as json1Channel, s as serveRemoteActor, u as VERSION, v as errorFrame$1, y as errorReason$1 } from "../websocket-DttBoCRL.js";
1
+ import { t as LIB_VERSION } from "../version-B97iGJJk.js";
2
+ import { E as isProto, i as remoteClient, n as WebSocketTransport, p as json1Channel, s as serveRemoteActor, u as VERSION, v as errorFrame$1, y as errorReason$1 } from "../websocket-Dqd8Hu6G.js";
3
3
  import { chmod, mkdir, mkdtemp, open, readFile, rm, stat, unlink } from "node:fs/promises";
4
4
  import * as readline from "node:readline";
5
5
  import { execFile, spawn } from "node:child_process";
@@ -1301,7 +1301,7 @@ async function connectUnixSocket(path, options = {}) {
1301
1301
  function socketClientSpawner(path, options = {}) {
1302
1302
  return async (args) => {
1303
1303
  const transport = await connectUnixSocket(typeof path === "function" ? path(args) : path, options);
1304
- const channel = json1Channel(transport);
1304
+ const channel = json1Channel(new OutputFilter(transport, options.onOutput ?? stderrSink()));
1305
1305
  const first = await new Promise((resolve) => {
1306
1306
  channel.onMessage((frame) => resolve(frame));
1307
1307
  });