engine7 7.1.16 → 7.1.17

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +4 -14
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -232,13 +232,8 @@ async function doExport(opts) {
232
232
  const relPath = path.relative(stateDir, srcFile);
233
233
  const destFile = path.join(stagingDir, relPath);
234
234
  fs.mkdirSync(path.dirname(destFile), { recursive: true });
235
- const baseName = path.basename(srcFile);
236
- if (baseName === "session-index.json" || baseName === "platform-map.json") {
237
- const content = fs.readFileSync(srcFile, "utf-8");
238
- fs.writeFileSync(destFile, sanitizeContent(content, dirs));
239
- } else {
240
- fs.copyFileSync(srcFile, destFile);
241
- }
235
+ const content = fs.readFileSync(srcFile, "utf-8");
236
+ fs.writeFileSync(destFile, sanitizeContent(content, dirs));
242
237
  fileCount++;
243
238
  totalSize += fs.statSync(srcFile).size;
244
239
  }
@@ -347,13 +342,8 @@ async function doImport(opts) {
347
342
  const relPath = path.relative(stagingDir, srcFile);
348
343
  const destFile = path.join(stateDir, relPath);
349
344
  fs.mkdirSync(path.dirname(destFile), { recursive: true });
350
- const baseName = path.basename(srcFile);
351
- if (baseName === "session-index.json" || baseName === "platform-map.json") {
352
- const content = fs.readFileSync(srcFile, "utf-8");
353
- fs.writeFileSync(destFile, restoreContent(content, dirs));
354
- } else {
355
- fs.copyFileSync(srcFile, destFile);
356
- }
345
+ const content = fs.readFileSync(srcFile, "utf-8");
346
+ fs.writeFileSync(destFile, restoreContent(content, dirs));
357
347
  restoredCount++;
358
348
  }
359
349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engine7",
3
- "version": "7.1.16",
3
+ "version": "7.1.17",
4
4
  "type": "module",
5
5
  "description": "Engine 7 — Self-hosted AI agent engine",
6
6
  "main": "dist/main.mjs",