@sulala/agent-os 0.1.26 → 0.1.27
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/data/agents/writer_agent.json +1 -1
- package/dist/cli.js +8345 -8325
- package/dist/index.js +20 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27263,7 +27263,7 @@ function getSeedGraphsDir() {
|
|
|
27263
27263
|
return fromSrc;
|
|
27264
27264
|
return join9(process.cwd(), "data", "graphs");
|
|
27265
27265
|
}
|
|
27266
|
-
async function
|
|
27266
|
+
async function seedGraphsIfEmpty() {
|
|
27267
27267
|
const dir = getGraphsDir();
|
|
27268
27268
|
let entries;
|
|
27269
27269
|
try {
|
|
@@ -27283,9 +27283,27 @@ async function listGraphs() {
|
|
|
27283
27283
|
await copyFile(join9(seedDir, name), join9(dir, name));
|
|
27284
27284
|
}
|
|
27285
27285
|
}
|
|
27286
|
-
entries = await readdir4(dir);
|
|
27287
27286
|
} catch {}
|
|
27288
27287
|
}
|
|
27288
|
+
}
|
|
27289
|
+
async function listGraphs() {
|
|
27290
|
+
const dir = getGraphsDir();
|
|
27291
|
+
let entries;
|
|
27292
|
+
try {
|
|
27293
|
+
entries = await readdir4(dir);
|
|
27294
|
+
} catch (err) {
|
|
27295
|
+
if (err.code !== "ENOENT")
|
|
27296
|
+
throw err;
|
|
27297
|
+
entries = [];
|
|
27298
|
+
}
|
|
27299
|
+
if (entries.length === 0) {
|
|
27300
|
+
await seedGraphsIfEmpty();
|
|
27301
|
+
try {
|
|
27302
|
+
entries = await readdir4(dir);
|
|
27303
|
+
} catch {
|
|
27304
|
+
entries = [];
|
|
27305
|
+
}
|
|
27306
|
+
}
|
|
27289
27307
|
const summaries = [];
|
|
27290
27308
|
for (const name of entries) {
|
|
27291
27309
|
if (name.endsWith(".json")) {
|