heyio 1.0.4 → 1.0.5

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.
@@ -159,7 +159,8 @@ export async function startApiServer(config) {
159
159
  });
160
160
  app.get("/api/wiki/page/*path", async (req, res) => {
161
161
  try {
162
- const pagePath = req.params.path;
162
+ const raw = req.params.path;
163
+ const pagePath = Array.isArray(raw) ? raw.join("/") : raw;
163
164
  const content = await readPage(pagePath);
164
165
  res.json({ path: pagePath, content });
165
166
  }
@@ -168,14 +169,16 @@ export async function startApiServer(config) {
168
169
  }
169
170
  });
170
171
  app.put("/api/wiki/page/*path", async (req, res) => {
171
- const pagePath = req.params.path;
172
+ const raw = req.params.path;
173
+ const pagePath = Array.isArray(raw) ? raw.join("/") : raw;
172
174
  const { content } = req.body;
173
175
  await writePage(pagePath, content);
174
176
  res.json({ ok: true });
175
177
  });
176
178
  app.delete("/api/wiki/page/*path", async (req, res) => {
177
179
  try {
178
- const pagePath = req.params.path;
180
+ const raw = req.params.path;
181
+ const pagePath = Array.isArray(raw) ? raw.join("/") : raw;
179
182
  await deletePage(pagePath);
180
183
  res.json({ ok: true });
181
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heyio",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "IO — a personal AI assistant daemon built on the GitHub Copilot SDK",
5
5
  "bin": {
6
6
  "io": "dist/index.js"