opencode-orchestrator 0.1.41 → 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)
@@ -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.41",
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",