opencode-manifold 0.5.25 → 0.5.27

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/dist/index.js CHANGED
@@ -113,10 +113,17 @@ async function ensureGlobalTemplates(ctx) {
113
113
  }
114
114
  await copyFiles(bundledTemplatesDir, globalTemplatesDir);
115
115
  const globalCommandsDir = join(homedir(), ".config", "opencode", "commands");
116
- const initCommandSrc = join(bundledTemplatesDir, "commands", "manifold-init.md");
117
- const initCommandDest = join(globalCommandsDir, "manifold-init.md");
118
- if (existsSync(initCommandSrc)) {
119
- await copyFile(initCommandSrc, initCommandDest);
116
+ const bundledCommandsDir = join(bundledTemplatesDir, "commands");
117
+ if (existsSync(bundledCommandsDir)) {
118
+ const commandEntries = await readdir(bundledCommandsDir, { withFileTypes: true });
119
+ for (const entry of commandEntries) {
120
+ if (entry.isFile() && entry.name.endsWith(".md")) {
121
+ const src = join(bundledCommandsDir, entry.name);
122
+ const dest = join(globalCommandsDir, entry.name);
123
+ await mkdir(globalCommandsDir, { recursive: true });
124
+ await copyFile(src, dest);
125
+ }
126
+ }
120
127
  }
121
128
  await ctx.client.app.log({
122
129
  body: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-manifold",
3
- "version": "0.5.25",
3
+ "version": "0.5.27",
4
4
  "description": "Multi-agent development system for opencode with persistent knowledge",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: Display the currently active model path (provider/model) for agent configuration
3
+ agent: build
4
+ ---
5
+ The /manifold-model-path command has been executed by the plugin. The plugin will respond with the current model path.