@lmzhen/dsh-evolution-commands 0.1.0-rc.14 → 0.1.0-rc.16
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/lib/index.js +8 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -37,6 +37,14 @@ function apply(ctx) {
|
|
|
37
37
|
const result = await curator.run({ ignoreGates: true });
|
|
38
38
|
return { text: `Curator run complete: ${result.stale.length} stale, ${result.archived.length} archived, ${result.errors.length} failed.\nrunId=${result.report.runId}${result.report.snapshotPath ? `\nsnapshot=${result.report.snapshotPath}` : ""}` };
|
|
39
39
|
}
|
|
40
|
+
if (input === "mutations") {
|
|
41
|
+
const curator = ctx.get("evolutionCurator");
|
|
42
|
+
if (!curator) return { text: "Curator service not mounted." };
|
|
43
|
+
const records = await curator.skills.listMutations();
|
|
44
|
+
if (records.length === 0) return { text: "No mutation records yet." };
|
|
45
|
+
const recent = records.slice(-5).reverse().map((record) => `${record.at.slice(0, 19)} ${record.skillName} ${record.action} ${record.summary}`);
|
|
46
|
+
return { text: `Mutations: ${records.length} recorded (recent 5):\n${recent.join("\n")}` };
|
|
47
|
+
}
|
|
40
48
|
if (input === "curator report") {
|
|
41
49
|
const curator = ctx.get("evolutionCurator");
|
|
42
50
|
if (!curator) return { text: "Curator service not mounted." };
|