@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
|
@@ -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.
|
|
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.
|
|
212
|
+
<!-- Generated from src/server/routes/ for PPM v0.13.65 -->
|
package/package.json
CHANGED
|
@@ -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
|
|
109
|
-
const result = await mammoth.convertToHtml({
|
|
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
|
|
87
|
-
const result = await mammoth.convertToHtml({
|
|
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));
|