opencode-orchestrator 0.1.40 → 0.1.42

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 CHANGED
@@ -3,7 +3,6 @@
3
3
  > **Multi-Agent Plugin for [OpenCode](https://opencode.ai)**
4
4
 
5
5
  <div align="center">
6
-
7
6
  [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
8
7
  [![npm](https://img.shields.io/npm/v/opencode-orchestrator.svg)](https://www.npmjs.com/package/opencode-orchestrator)
9
8
  [![npm downloads](https://img.shields.io/npm/dt/opencode-orchestrator.svg)](https://www.npmjs.com/package/opencode-orchestrator)
@@ -72,26 +71,24 @@ User Request
72
71
 
73
72
  ## Installation
74
73
 
75
- ### Recommended (Global Install)
76
- To ensure the plugin is accessible to OpenCode from any project, install it globally using `npm`:
74
+ You can use **npm** or **bun**. Both work perfectly because the core logic runs in a native **Rust binary**.
77
75
 
76
+ ### Option 1: npm (Standard)
78
77
  ```bash
79
78
  npm install -g opencode-orchestrator
80
79
  ```
81
80
 
82
- > **Note**: After installation, restart OpenCode or run `opencode` in your terminal.
83
- > The plugin will automatically register itself in `~/.config/opencode/opencode.json`.
84
-
85
- ### Using Bun?
86
- You can also use Bun, but `npm` is recommended for maximum compatibility with OpenCode's plugin resolution.
87
-
81
+ ### Option 2: Bun (Fast)
88
82
  ```bash
89
83
  bun install -g opencode-orchestrator
90
84
  ```
91
85
 
86
+ > **Note**: After installation, **restart OpenCode** or run `opencode` in your terminal.
87
+ > The plugin will automatically register itself in `~/.config/opencode/opencode.json` with its absolute path.
88
+
92
89
  ### Troubleshooting
93
90
  If the command `/auto` does not appear:
94
- 1. Uninstall: `npm uninstall -g opencode-orchestrator`
91
+ 1. Uninstall: `npm uninstall -g opencode-orchestrator` (or `bun remove -g`)
95
92
  2. Clear config: `rm -rf ~/.config/opencode` (Warning: resets all plugins)
96
93
  3. Reinstall: `npm install -g opencode-orchestrator`
97
94
 
@@ -9,8 +9,17 @@ var CONFIG_FILE = join(CONFIG_DIR, "opencode.json");
9
9
  var PLUGIN_NAME = "opencode-orchestrator";
10
10
  function getPluginPath() {
11
11
  try {
12
- const packagePath = new URL(".", import.meta.url).pathname;
13
- return packagePath.replace(/\/$/, "");
12
+ let currentDir = new URL(".", import.meta.url).pathname;
13
+ while (currentDir !== "/" && currentDir !== ".") {
14
+ if (existsSync(join(currentDir, "package.json"))) {
15
+ return currentDir.replace(/\/$/, "");
16
+ }
17
+ const parent = join(currentDir, "..");
18
+ if (parent === currentDir)
19
+ break;
20
+ currentDir = parent;
21
+ }
22
+ return PLUGIN_NAME;
14
23
  } catch {
15
24
  return PLUGIN_NAME;
16
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-orchestrator",
3
- "version": "0.1.40",
3
+ "version": "0.1.42",
4
4
  "description": "6-Agent collaborative architecture for OpenCode - Make any model reliable",
5
5
  "author": "agnusdei1207",
6
6
  "license": "MIT",