pi-outpost 0.25.0 → 0.25.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.
@@ -12081,7 +12081,7 @@ ${tableMarkdown(full.data)}`;
12081
12081
  }
12082
12082
 
12083
12083
  // shared/bin/validate-structured-exchange.mjs
12084
- var VERSION = `validate-structured-exchange ${false ? "development" : "0.25.0"}`;
12084
+ var VERSION = `validate-structured-exchange ${false ? "development" : "0.25.1"}`;
12085
12085
  var USAGE = `validate-structured-exchange [file]
12086
12086
  validate-structured-exchange --profile <profile.json> [file]
12087
12087
  validate-structured-exchange --check-profile <profile.json>
@@ -131170,8 +131170,7 @@ var PACKAGE_NAME = "pi-outpost";
131170
131170
  var RELEASES_URL = "https://github.com/laurentftech/pi-outpost/releases";
131171
131171
  var PUBLIC_REGISTRY = "https://registry.npmjs.org";
131172
131172
  function envForNpm() {
131173
- const { NODE_V8_COVERAGE: _sink, ...rest } = process.env;
131174
- return rest;
131173
+ return { ...process.env, NODE_V8_COVERAGE: "" };
131175
131174
  }
131176
131175
  function npmExecutable(platform = process.platform) {
131177
131176
  return platform === "win32" ? "npm.cmd" : "npm";
@@ -142625,7 +142624,7 @@ function cacheControlFor(url) {
142625
142624
  }
142626
142625
 
142627
142626
  // ../server/src/index.ts
142628
- var VERSION2 = true ? "0.25.0" : "dev";
142627
+ var VERSION2 = true ? "0.25.1" : "dev";
142629
142628
  var PI_SDK_VERSION = true ? "0.85.1" : readInstalledPiSdkVersion();
142630
142629
  var LAUNCH_DIR = process.env.INIT_CWD ?? process.cwd();
142631
142630
  function complain(error) {
@@ -145529,18 +145528,28 @@ function handleClientMessage(socket, raw) {
145529
145528
  }
145530
145529
  }
145531
145530
  handleWsConnection = (socket, workspaceRoot) => {
145532
- const bound = (workspaceRoot ? workspaces.get(workspaceRoot) : void 0) ?? workspaces.default ?? workspace;
145533
- clients.set(socket, bound);
145534
- ensureStarted(bound).then(() => bindClient(socket, bound, "hello")).catch((error) => {
145535
- reportError(error);
145536
- send(socket, { type: "workspace_error", message: `Could not start ${path27.basename(bound.root)}: ${error instanceof Error ? error.message : String(error)}` });
145531
+ const resolveBound = async () => {
145532
+ if (!workspaceRoot) return workspaces.default ?? workspace;
145533
+ try {
145534
+ const canonical = await fs26.realpath(path27.resolve(workspaceRoot));
145535
+ return workspaces.get(canonical) ?? workspaces.default ?? workspace;
145536
+ } catch {
145537
+ return workspaces.default ?? workspace;
145538
+ }
145539
+ };
145540
+ resolveBound().then((bound) => {
145541
+ clients.set(socket, bound);
145542
+ ensureStarted(bound).then(() => bindClient(socket, bound, "hello")).catch((error) => {
145543
+ reportError(error);
145544
+ send(socket, { type: "workspace_error", message: `Could not start ${path27.basename(bound.root)}: ${error instanceof Error ? error.message : String(error)}` });
145545
+ });
145537
145546
  });
145538
145547
  socket.on("message", (data) => handleClientMessage(socket, data.toString()));
145539
145548
  socket.on("close", () => {
145540
145549
  terminalManager.closeAllForSocket(socket);
145541
- const bound2 = clients.get(socket);
145550
+ const bound = clients.get(socket);
145542
145551
  clients.delete(socket);
145543
- if (bound2 && ![...clients.values()].includes(bound2)) bound2.lastUsedAt = Date.now();
145552
+ if (bound && ![...clients.values()].includes(bound)) bound.lastUsedAt = Date.now();
145544
145553
  if (clients.size === 0) {
145545
145554
  for (const open of workspaces.all()) {
145546
145555
  if (!open.started) continue;
@@ -449895,8 +449895,7 @@ var PACKAGE_NAME2 = "pi-outpost";
449895
449895
  var RELEASES_URL = "https://github.com/laurentftech/pi-outpost/releases";
449896
449896
  var PUBLIC_REGISTRY = "https://registry.npmjs.org";
449897
449897
  function envForNpm() {
449898
- const { NODE_V8_COVERAGE: _sink, ...rest } = process.env;
449899
- return rest;
449898
+ return { ...process.env, NODE_V8_COVERAGE: "" };
449900
449899
  }
449901
449900
  function npmExecutable(platform3 = process.platform) {
449902
449901
  return platform3 === "win32" ? "npm.cmd" : "npm";
@@ -452964,7 +452963,7 @@ function cacheControlFor(url) {
452964
452963
  }
452965
452964
 
452966
452965
  // ../server/src/index.ts
452967
- var VERSION5 = true ? "0.25.0" : "dev";
452966
+ var VERSION5 = true ? "0.25.1" : "dev";
452968
452967
  var PI_SDK_VERSION = true ? "0.85.1" : readInstalledPiSdkVersion();
452969
452968
  var LAUNCH_DIR = process.env.INIT_CWD ?? process.cwd();
452970
452969
  function complain(error) {
@@ -455868,18 +455867,28 @@ function handleClientMessage(socket, raw) {
455868
455867
  }
455869
455868
  }
455870
455869
  handleWsConnection = (socket, workspaceRoot) => {
455871
- const bound = (workspaceRoot ? workspaces.get(workspaceRoot) : void 0) ?? workspaces.default ?? workspace;
455872
- clients.set(socket, bound);
455873
- ensureStarted(bound).then(() => bindClient(socket, bound, "hello")).catch((error) => {
455874
- reportError(error);
455875
- send(socket, { type: "workspace_error", message: `Could not start ${path43.basename(bound.root)}: ${error instanceof Error ? error.message : String(error)}` });
455870
+ const resolveBound = async () => {
455871
+ if (!workspaceRoot) return workspaces.default ?? workspace;
455872
+ try {
455873
+ const canonical = await fs39.realpath(path43.resolve(workspaceRoot));
455874
+ return workspaces.get(canonical) ?? workspaces.default ?? workspace;
455875
+ } catch {
455876
+ return workspaces.default ?? workspace;
455877
+ }
455878
+ };
455879
+ resolveBound().then((bound) => {
455880
+ clients.set(socket, bound);
455881
+ ensureStarted(bound).then(() => bindClient(socket, bound, "hello")).catch((error) => {
455882
+ reportError(error);
455883
+ send(socket, { type: "workspace_error", message: `Could not start ${path43.basename(bound.root)}: ${error instanceof Error ? error.message : String(error)}` });
455884
+ });
455876
455885
  });
455877
455886
  socket.on("message", (data) => handleClientMessage(socket, data.toString()));
455878
455887
  socket.on("close", () => {
455879
455888
  terminalManager.closeAllForSocket(socket);
455880
- const bound2 = clients.get(socket);
455889
+ const bound = clients.get(socket);
455881
455890
  clients.delete(socket);
455882
- if (bound2 && ![...clients.values()].includes(bound2)) bound2.lastUsedAt = Date.now();
455891
+ if (bound && ![...clients.values()].includes(bound)) bound.lastUsedAt = Date.now();
455883
455892
  if (clients.size === 0) {
455884
455893
  for (const open3 of workspaces.all()) {
455885
455894
  if (!open3.started) continue;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-outpost",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
4
4
  "type": "module",
5
5
  "description": "A web interface for the pi coding agent: a browser chat UI you run with npx — no clone, no build.",
6
6
  "license": "MIT",