opencode-mad 0.3.5 → 0.3.6

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.
@@ -5,15 +5,7 @@ model: anthropic/claude-opus-4-5
5
5
  temperature: 0.3
6
6
  color: "#9333ea"
7
7
  permission:
8
- task:
9
- "*": allow
10
- bash:
11
- "*": allow
12
- read:
13
- "*": allow
14
- glob:
15
- "*": allow
16
- grep:
8
+ "*":
17
9
  "*": allow
18
10
  tools:
19
11
  mad_worktree_create: true
package/install.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  /**
4
4
  * opencode-mad installer
@@ -55,32 +55,22 @@ const folders = ['agents', 'commands', 'plugins', 'skills'];
55
55
  // Check if it's an update (any of the folders already exist)
56
56
  const isUpdate = folders.some(folder => existsSync(join(targetDir, folder)));
57
57
 
58
- console.log(isUpdate
59
- ? `\nšŸ”„ Updating opencode-mad in ${targetDir}\n`
60
- : `\nšŸš€ Installing opencode-mad to ${targetDir}\n`);
58
+ // Get version from package.json
59
+ const pkg = JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf-8'));
60
+ const version = pkg.version;
61
61
 
62
+ // Copy folders silently
62
63
  for (const folder of folders) {
63
64
  const src = join(__dirname, folder);
64
65
  const dest = join(targetDir, folder);
65
66
 
66
- if (!existsSync(src)) {
67
- console.log(`āš ļø Skipping ${folder} (not found)`);
68
- continue;
69
- }
67
+ if (!existsSync(src)) continue;
70
68
 
71
69
  mkdirSync(dest, { recursive: true });
72
70
  cpSync(src, dest, { recursive: true });
73
- console.log(`āœ… Copied ${folder}/`);
74
71
  }
75
72
 
76
- console.log(`
77
- šŸŽ‰ ${isUpdate ? 'Update' : 'Installation'} complete!
78
-
79
- ${isGlobal ? 'MAD is now available in all your projects.' : 'MAD is now available in this project.'}
80
-
81
- Just start talking to the orchestrator:
82
- "Create a full-stack app with Express and React"
83
-
84
- Or use the /mad command:
85
- /mad Create a Task Timer app
86
- `);
73
+ // Single line output
74
+ const action = isUpdate ? 'updated' : 'installed';
75
+ const location = isGlobal ? '~/.config/opencode' : '.opencode';
76
+ console.log(`opencode-mad v${version} ${action} to ${location}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-mad",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Multi-Agent Dev - Parallel development orchestration plugin for OpenCode",
5
5
  "type": "module",
6
6
  "main": "plugins/mad-plugin.ts",