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.
- package/agents/orchestrator.md +1 -9
- package/install.js +10 -20
- package/package.json +1 -1
package/agents/orchestrator.md
CHANGED
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
${
|
|
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}`);
|