posipaki 0.45.0 → 0.45.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.
@@ -1,4 +1,4 @@
1
- import { A as errorReason, B as isResume, C as json1Channel, D as badReason, E as badFrame, F as isInit, H as isStop, I as isMsg, K as rootIdFor, L as isPause, M as isBad, N as isError, P as isExit, R as isProto, S as encode, T as BAD_PREFIX_LIMIT, U as PROCESS_REF, V as isState, W as isRemoteProcess, _ as isStreamRef, a as remoteClient, b as VERSION, c as oneConnection, d as RemoteBlob, f as RemoteBytes, g as isBytesRef, h as isBlobRef, i as CHANNEL_LOST, j as frameReaders, k as errorFrame, l as reactor, m as StreamStore, n as WebSocketTransport, o as pumpOutput, p as RemoteStream, s as stderrSink, t as WS_OPEN, u as serveRemoteActor, v as makeSender, w as readFrame, x as decode, y as RemoteProcess, z as isRelease } from "../websocket-DkDAHMFm.js";
1
+ import { A as errorReason, B as isResume, C as json1Channel, D as badReason, E as badFrame, F as isInit, H as isStop, I as isMsg, K as rootIdFor, L as isPause, M as isBad, N as isError, P as isExit, R as isProto, S as encode, T as BAD_PREFIX_LIMIT, U as PROCESS_REF, V as isState, W as isRemoteProcess, _ as isStreamRef, a as remoteClient, b as VERSION, c as oneConnection, d as RemoteBlob, f as RemoteBytes, g as isBytesRef, h as isBlobRef, i as CHANNEL_LOST, j as frameReaders, k as errorFrame, l as reactor, m as StreamStore, n as WebSocketTransport, o as pumpOutput, p as RemoteStream, s as stderrSink, t as WS_OPEN, u as serveRemoteActor, v as makeSender, w as readFrame, x as decode, y as RemoteProcess, z as isRelease } from "../websocket-CAyMntP1.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,5 +1,5 @@
1
- import { t as LIB_VERSION } from "../version-yonmO5bG.js";
2
- import { A as errorReason$1, C as json1Channel, G as lowBand, O as channelThrough, R as isProto, a as remoteClient, b as VERSION, k as errorFrame$1, m as StreamStore, n as WebSocketTransport, o as pumpOutput, r as readParts, s as stderrSink, u as serveRemoteActor } from "../websocket-DkDAHMFm.js";
1
+ import { t as LIB_VERSION } from "../version-COXVfzR6.js";
2
+ import { A as errorReason$1, C as json1Channel, G as lowBand, O as channelThrough, R as isProto, a as remoteClient, b as VERSION, k as errorFrame$1, m as StreamStore, n as WebSocketTransport, o as pumpOutput, r as readParts, s as stderrSink, u as serveRemoteActor } from "../websocket-CAyMntP1.js";
3
3
  import { chmod, mkdir, mkdtemp, open, readFile, rm, stat, unlink } from "node:fs/promises";
4
4
  import { execFile, spawn } from "node:child_process";
5
5
  import { createHash, randomUUID } from "node:crypto";
@@ -1,7 +1,7 @@
1
1
  //#region src/version.ts
2
2
  /** posipaki's release version. Must equal package.json's `version`. */
3
- const LIB_VERSION = "0.45.0";
3
+ const LIB_VERSION = "0.45.1";
4
4
  //#endregion
5
5
  export { LIB_VERSION as t };
6
6
 
7
- //# sourceMappingURL=version-yonmO5bG.js.map
7
+ //# sourceMappingURL=version-COXVfzR6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-yonmO5bG.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["// ── Library identity ───────────────────────────────────────────────────────\n//\n// posipaki's own release version, as a plain inlined string. A consumer that\n// stages artifacts onto a host it knows nothing about has to name those\n// artifacts after which posipaki they speak, and the bundle that runs there has\n// no node_modules and no posipaki on disk — it can never read a file to find out.\n//\n// It is not the protocol version: that is `VERSION` in ./remote (`json.v1`), and\n// it does not move between releases. The two answer different questions.\n//\n// version.test.ts pins this to package.json, so a release that forgets to bump it\n// fails the suite rather than shipping a lie.\n\n/** posipaki's release version. Must equal package.json's `version`. */\nexport const LIB_VERSION = \"0.45.0\";\n"],"mappings":";;AAcA,MAAa,cAAc"}
1
+ {"version":3,"file":"version-COXVfzR6.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["// ── Library identity ───────────────────────────────────────────────────────\n//\n// posipaki's own release version, as a plain inlined string. A consumer that\n// stages artifacts onto a host it knows nothing about has to name those\n// artifacts after which posipaki they speak, and the bundle that runs there has\n// no node_modules and no posipaki on disk — it can never read a file to find out.\n//\n// It is not the protocol version: that is `VERSION` in ./remote (`json.v1`), and\n// it does not move between releases. The two answer different questions.\n//\n// version.test.ts pins this to package.json, so a release that forgets to bump it\n// fails the suite rather than shipping a lie.\n\n/** posipaki's release version. Must equal package.json's `version`. */\nexport const LIB_VERSION = \"0.45.1\";\n"],"mappings":";;AAcA,MAAa,cAAc"}
@@ -1600,6 +1600,7 @@ var StreamStore = class {
1600
1600
  this.pvtSegmentOff?.();
1601
1601
  for (const offered of this.pvtOffers.values()) {
1602
1602
  offered.dropped = true;
1603
+ Promise.resolve(this.channel.send({ $streamDone: { id: offered.id } })).catch(() => {});
1603
1604
  offered.source.return?.();
1604
1605
  }
1605
1606
  this.pvtOffers.clear();
@@ -2660,10 +2661,14 @@ function readChunks(stream, onChunk, onEnd) {
2660
2661
  };
2661
2662
  stream.on("data", onData);
2662
2663
  stream.once("end", finish);
2664
+ stream.once("close", finish);
2665
+ stream.once("error", finish);
2663
2666
  return { stop() {
2664
2667
  stopped = true;
2665
2668
  stream.off("data", onData);
2666
2669
  stream.off("end", finish);
2670
+ stream.off("close", finish);
2671
+ stream.off("error", finish);
2667
2672
  } };
2668
2673
  }
2669
2674
  //#endregion
@@ -2747,4 +2752,4 @@ var WebSocketTransport = class {
2747
2752
  //#endregion
2748
2753
  export { errorReason as A, isResume as B, json1Channel as C, badReason as D, badFrame as E, isInit as F, lowBand as G, isStop as H, isMsg as I, rootIdFor as K, isPause as L, isBad as M, isError as N, channelThrough as O, isExit as P, isProto as R, encode as S, BAD_PREFIX_LIMIT as T, PROCESS_REF as U, isState as V, isRemoteProcess as W, isStreamRef as _, remoteClient as a, VERSION as b, oneConnection as c, RemoteBlob as d, RemoteBytes as f, isBytesRef as g, isBlobRef as h, CHANNEL_LOST as i, frameReaders as j, errorFrame as k, reactor as l, StreamStore as m, WebSocketTransport as n, pumpOutput as o, RemoteStream as p, readParts as r, stderrSink as s, WS_OPEN as t, serveRemoteActor as u, makeSender as v, readFrame as w, decode as x, RemoteProcess as y, isRelease as z };
2749
2754
 
2750
- //# sourceMappingURL=websocket-DkDAHMFm.js.map
2755
+ //# sourceMappingURL=websocket-CAyMntP1.js.map