@lmzhen/dsh-evolution-core 0.1.0-rc.32 → 0.1.0-rc.34

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/lib/index.js +7 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -2210,10 +2210,16 @@ 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
+ await this.io.copy(sidecar, join(dest, sidecar.split("/").pop() ?? sidecar));
2216
+ sidecars.push(sidecar.split("/").pop() ?? sidecar);
2217
+ }
2213
2218
  await this.io.writeText(join(dest, "manifest.json"), JSON.stringify({
2214
2219
  reason,
2215
2220
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
2216
- skills: names
2221
+ skills: names,
2222
+ sidecars
2217
2223
  }, null, 2));
2218
2224
  return dest;
2219
2225
  }
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.32",
4
+ "version": "0.1.0-rc.34",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },