opencode-orchestrator 0.1.30 → 0.1.32
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/scripts/postinstall.js +10 -13
- package/package.json +3 -2
|
@@ -9,8 +9,9 @@ var CONFIG_FILE = join(CONFIG_DIR, "opencode.json");
|
|
|
9
9
|
var PLUGIN_NAME = "opencode-orchestrator";
|
|
10
10
|
function getPluginPath() {
|
|
11
11
|
try {
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
const scriptPath = new URL(".", import.meta.url).pathname;
|
|
13
|
+
const packageRoot = join(scriptPath, "..");
|
|
14
|
+
return packageRoot.replace(/\/$/, "");
|
|
14
15
|
} catch {
|
|
15
16
|
return PLUGIN_NAME;
|
|
16
17
|
}
|
|
@@ -32,20 +33,16 @@ function install() {
|
|
|
32
33
|
config.plugin = [];
|
|
33
34
|
}
|
|
34
35
|
const pluginPath = getPluginPath();
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} else {
|
|
42
|
-
console.log("✅ Plugin already registered.");
|
|
43
|
-
}
|
|
36
|
+
config.plugin = config.plugin.filter((p) => !p.includes("opencode-orchestrator") && p !== PLUGIN_NAME);
|
|
37
|
+
config.plugin.push(pluginPath);
|
|
38
|
+
writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2));
|
|
39
|
+
console.log("✅ Plugin registered!");
|
|
40
|
+
console.log(` Path: ${pluginPath}`);
|
|
41
|
+
console.log(` Config: ${CONFIG_FILE}`);
|
|
44
42
|
console.log("");
|
|
45
43
|
console.log("\uD83D\uDE80 Ready! Restart OpenCode to use.");
|
|
46
44
|
console.log("");
|
|
47
|
-
console.log("
|
|
48
|
-
console.log("Commands:");
|
|
45
|
+
console.log("Command:");
|
|
49
46
|
console.log(' /auto "task" - The only command you need');
|
|
50
47
|
console.log("");
|
|
51
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-orchestrator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"description": "6-Agent collaborative architecture for OpenCode - Make any model reliable",
|
|
5
5
|
"author": "agnusdei1207",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"release:minor": "bun run build:full && bun run test && bun run version:minor && bun run publish:npm && bun run release:git",
|
|
56
56
|
"release:major": "bun run build:full && bun run test && bun run version:major && bun run publish:npm && bun run release:git",
|
|
57
57
|
"release:git": "git add -A && git commit -m \"Release v$(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\" && git push && git push --tags",
|
|
58
|
-
"postinstall": "node dist/scripts/postinstall.js 2>/dev/null || true"
|
|
58
|
+
"postinstall": "node dist/scripts/postinstall.js 2>/dev/null || true",
|
|
59
|
+
"stars": "gh api repos/agnusdei1207/opencode-orchestrator/stargazers --jq '.[].login'"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
62
|
"@opencode-ai/plugin": "^1.1.1",
|