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 +22 -0
- package/dist/index.js +13 -0
- package/package.json +1 -1
- package/src/templates/agents/manifold.md +1 -0
- package/src/templates/manifold/VERSION +1 -0
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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.4.6
|