engine7 7.1.36 → 7.1.38
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/dist/cli.mjs +16 -0
- package/dist/engine-startup.mjs +431 -144
- package/dist/main.mjs +352 -65
- package/package.json +1 -1
- package/templates/config.template.json +3 -0
package/dist/cli.mjs
CHANGED
|
@@ -205,9 +205,17 @@ async function doExport(opts) {
|
|
|
205
205
|
configFiles.push(f);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
+
const everosDir = path.join(stateDir, ".everos");
|
|
209
|
+
const everosFiles = [];
|
|
210
|
+
if (fs.existsSync(everosDir)) {
|
|
211
|
+
for (const f of collectAllFiles(everosDir)) {
|
|
212
|
+
everosFiles.push(f);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
208
215
|
console.log(` workspace \u6587\u4EF6: ${wsFiles.length}`);
|
|
209
216
|
console.log(` session jsonl: ${sessionFiles.length} (\u6700\u8FD17\u5929)`);
|
|
210
217
|
console.log(` configs: ${configFiles.length}`);
|
|
218
|
+
console.log(` everos: ${everosFiles.length} (${(everosFiles.reduce((s, f) => s + fs.statSync(f).size, 0) / 1024 / 1024).toFixed(1)} MB)`);
|
|
211
219
|
if (dryRun2) {
|
|
212
220
|
console.log(`
|
|
213
221
|
[DRY RUN] \u4F1A\u6253\u5305\u4EE5\u4E0B\u6587\u4EF6:`);
|
|
@@ -265,6 +273,14 @@ async function doExport(opts) {
|
|
|
265
273
|
fileCount++;
|
|
266
274
|
totalSize += fs.statSync(srcFile).size;
|
|
267
275
|
}
|
|
276
|
+
for (const srcFile of everosFiles) {
|
|
277
|
+
const relPath = path.relative(stateDir, srcFile);
|
|
278
|
+
const destFile = path.join(stagingDir, relPath);
|
|
279
|
+
fs.mkdirSync(path.dirname(destFile), { recursive: true });
|
|
280
|
+
fs.copyFileSync(srcFile, destFile);
|
|
281
|
+
fileCount++;
|
|
282
|
+
totalSize += fs.statSync(srcFile).size;
|
|
283
|
+
}
|
|
268
284
|
const manifest = {
|
|
269
285
|
agentName,
|
|
270
286
|
version,
|