opencode-manifold 0.4.6 → 0.4.7

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/README.md CHANGED
@@ -306,6 +306,28 @@ rm -rf ~/.config/opencode/manifold/ ~/.config/opencode/commands/manifold-init.md
306
306
 
307
307
  To fully uninstall the plugin, also remove `"opencode-manifold"` from the `plugin` array in your global or project `opencode.json`.
308
308
 
309
+ ### Complete Clean Uninstall
310
+ # Mac:
311
+ OpenCode caches plugins in multiple locations. To fully clear all cached versions before reinstalling:
312
+
313
+ ```bash
314
+ # Remove plugin from all cache locations
315
+ rm -rf ~/node_modules/opencode-manifold
316
+ rm -rf ~/.cache/opencode/packages/opencode-manifold@latest
317
+ rm -rf ~/.config/opencode/manifold/
318
+ rm -rf ~/.config/opencode/commands/manifold-init.md
319
+
320
+ # Then restart opencode and run /manifold-init
321
+ ```
322
+
323
+ This ensures you're running the latest version after updates.
324
+
325
+ # Win:
326
+ I have no clue. Use linux.
327
+
328
+ # Linux:
329
+ Still have no clue but I know you can handle it.
330
+
309
331
  ---
310
332
 
311
333
  ## License
package/dist/index.js CHANGED
@@ -4,9 +4,19 @@ import { existsSync } from "fs";
4
4
  import { join, dirname } from "path";
5
5
  import { fileURLToPath } from "url";
6
6
  import { homedir } from "os";
7
+ import { createRequire } from "module";
7
8
  var __dirname2 = dirname(fileURLToPath(import.meta.url));
9
+ var require2 = createRequire(import.meta.url);
8
10
  var bundledTemplatesDir = join(__dirname2, "..", "src", "templates");
9
11
  var globalTemplatesDir = join(homedir(), ".config", "opencode", "manifold");
12
+ async function getPluginVersion() {
13
+ try {
14
+ const packageJson = require2(join(__dirname2, "..", "package.json"));
15
+ return packageJson.version || "unknown";
16
+ } catch {
17
+ return "unknown";
18
+ }
19
+ }
10
20
  async function dirHasContent(dirPath) {
11
21
  if (!existsSync(dirPath))
12
22
  return false;
@@ -101,6 +111,9 @@ async function initProject(directory, client) {
101
111
  if (manifoldCopied.length > 0) {
102
112
  initialized.push(`Manifold/ (${manifoldCopied.join(", ")})`);
103
113
  }
114
+ const version = await getPluginVersion();
115
+ await writeFile(join(directory, "Manifold", "VERSION"), version + `
116
+ `);
104
117
  await client.app.log({
105
118
  body: {
106
119
  service: "opencode-manifold",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-manifold",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Multi-agent development system for opencode with persistent knowledge",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: Orchestrates development by reading plans and dispatching tasks
3
3
  mode: primary
4
+ color: #6024bf
4
5
  permission:
5
6
  skill:
6
7
  manifold-workflow: allow
@@ -0,0 +1 @@
1
+ 0.4.6