@lmzhen/dsh-evolution-core 0.1.0-rc.33 → 0.1.0-rc.35
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 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2210,10 +2210,17 @@ var SkillLibrary = class {
|
|
|
2210
2210
|
const dest = join(join(this.root, ".backups"), `skills-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}`);
|
|
2211
2211
|
const names = await listNames(this.root, this.io);
|
|
2212
2212
|
for (const name of names) await this.io.copy(skillDir(this.root, name), join(dest, name));
|
|
2213
|
+
const sidecars = [];
|
|
2214
|
+
for (const sidecar of [usageFile(this.root), suppressedFile(this.root)]) if (await this.io.exists(sidecar)) {
|
|
2215
|
+
const name = basename(sidecar);
|
|
2216
|
+
await this.io.copy(sidecar, join(dest, name));
|
|
2217
|
+
sidecars.push(name);
|
|
2218
|
+
}
|
|
2213
2219
|
await this.io.writeText(join(dest, "manifest.json"), JSON.stringify({
|
|
2214
2220
|
reason,
|
|
2215
2221
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2216
|
-
skills: names
|
|
2222
|
+
skills: names,
|
|
2223
|
+
sidecars
|
|
2217
2224
|
}, null, 2));
|
|
2218
2225
|
return dest;
|
|
2219
2226
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-core",
|
|
3
3
|
"description": "Shared stores, prompts, signals and lifecycle logic for the dsh-evolution plugin family (community build)",
|
|
4
|
-
"version": "0.1.0-rc.
|
|
4
|
+
"version": "0.1.0-rc.35",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|