@hienlh/ppm 0.13.64 → 0.13.65

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.13.65] - 2026-05-05
4
+
5
+ ### Fixed
6
+ - **DOCX preview**: Fix mammoth.js conversion error — use `Buffer` instead of `arrayBuffer` for Node.js API
7
+
3
8
  ## [0.13.64] - 2026-05-05
4
9
 
5
10
  ### Added
@@ -71,4 +71,4 @@ This skill covers the `ppm` CLI, its HTTP API, and its config DB. It does **not*
71
71
  - Third-party extensions (inspect via `ppm ext list`).
72
72
  - The Claude Agent SDK internals (separate skill).
73
73
 
74
- <!-- Generated for PPM v0.13.64 at build time. Re-run `ppm export skill --install` to refresh. -->
74
+ <!-- Generated for PPM v0.13.65 at build time. Re-run `ppm export skill --install` to refresh. -->
@@ -209,4 +209,4 @@ _Base URL: `http://localhost:8080` (default; override via `ppm config set port <
209
209
  - `ws://<host>/ws/terminal` — PTY terminal multiplexer
210
210
  - `ws://<host>/ws/extensions` — extension host channel
211
211
 
212
- <!-- Generated from src/server/routes/ for PPM v0.13.64 -->
212
+ <!-- Generated from src/server/routes/ for PPM v0.13.65 -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hienlh/ppm",
3
- "version": "0.13.64",
3
+ "version": "0.13.65",
4
4
  "description": "Personal Project Manager — mobile-first web IDE with AI assistance",
5
5
  "author": "hienlh",
6
6
  "license": "MIT",
@@ -105,8 +105,8 @@ fileRoutes.get("/docx-html", async (c) => {
105
105
  if (!absPath.startsWith(projectPath)) return c.json(err("Access denied"), 403);
106
106
  if (!existsSync(absPath)) return c.json(err("File not found"), 404);
107
107
 
108
- const buffer = await Bun.file(absPath).arrayBuffer();
109
- const result = await mammoth.convertToHtml({ arrayBuffer: buffer });
108
+ const arrayBuf = await Bun.file(absPath).arrayBuffer();
109
+ const result = await mammoth.convertToHtml({ buffer: Buffer.from(arrayBuf) });
110
110
  return c.json(ok({ html: result.value, warnings: result.messages }));
111
111
  } catch (e) {
112
112
  return c.json(err((e as Error).message), errorStatus(e));
@@ -83,8 +83,8 @@ fsBrowseRoutes.get("/docx-html", async (c) => {
83
83
  if (!filePath) return c.json(err("path is required"), 400);
84
84
  if (!existsSync(filePath)) return c.json(err("File not found"), 404);
85
85
 
86
- const buffer = await Bun.file(filePath).arrayBuffer();
87
- const result = await mammoth.convertToHtml({ arrayBuffer: buffer });
86
+ const arrayBuf = await Bun.file(filePath).arrayBuffer();
87
+ const result = await mammoth.convertToHtml({ buffer: Buffer.from(arrayBuf) });
88
88
  return c.json(ok({ html: result.value, warnings: result.messages }));
89
89
  } catch (e) {
90
90
  return c.json(err((e as Error).message), errorStatus(e));