@pasko70/pibo 1.0.3 → 1.0.4

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,6 +1,7 @@
1
1
  import { randomUUID } from "node:crypto";
2
2
  import { existsSync, readFileSync, statSync } from "node:fs";
3
3
  import { extname, isAbsolute, resolve } from "node:path";
4
+ import { fileURLToPath } from "node:url";
4
5
  import { brotliCompressSync, gzipSync } from "node:zlib";
5
6
  import { PiboWebHttpError, readJsonBody, responseHtml, responseJson } from "../../web/http.js";
6
7
  import { ChatEventLog, createDefaultChatEventLog } from "./event-log.js";
@@ -22,7 +23,7 @@ export const CHAT_WEB_APP_NAME = "pibo.chat-web";
22
23
  export const CHAT_WEB_CHANNEL = "pibo.chat-web";
23
24
  export const CHAT_WEB_MOUNT_PATH = "/apps/chat";
24
25
  export const CHAT_WEB_API_PREFIX = "/api/chat";
25
- const CHAT_UI_DIST_DIR = resolve(process.cwd(), "dist/apps/chat-ui");
26
+ const CHAT_UI_DIST_DIR = resolve(fileURLToPath(new URL("../../../dist/apps/chat-ui", import.meta.url)));
26
27
  const compressedAssetCache = new Map();
27
28
  const TRACE_CACHE_MAX_ENTRIES = 128;
28
29
  function writeSse(controller, event, payload, id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pasko70/pibo",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "Minimal TypeScript wrapper around Pi Coding Agent.",
6
6
  "files": [