opencode-manifold 0.5.16 → 0.5.17

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/dist/index.js +4 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -166,6 +166,10 @@ async function ensureGlobalTemplates(ctx) {
166
166
  });
167
167
  return;
168
168
  }
169
+ if (existsSync(globalTemplatesDir)) {
170
+ const { rm } = await import("fs/promises");
171
+ await rm(globalTemplatesDir, { recursive: true, force: true });
172
+ }
169
173
  await copyFiles(bundledTemplatesDir, globalTemplatesDir);
170
174
  const globalCommandsDir = join(homedir(), ".config", "opencode", "commands");
171
175
  const initCommandSrc = join(bundledTemplatesDir, "commands", "manifold-init.md");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-manifold",
3
- "version": "0.5.16",
3
+ "version": "0.5.17",
4
4
  "description": "Multi-agent development system for opencode with persistent knowledge",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",