@serkanalgur/opencode-nexus 1.9.2 → 1.9.4

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -25
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10149,7 +10149,8 @@ class NexusOrchestrator {
10149
10149
  async initialize(ctx, onStateChange) {
10150
10150
  this.ctx = ctx;
10151
10151
  this.onStateChange = onStateChange ?? null;
10152
- this.configManager.loadFromPath(process.cwd());
10152
+ const projectDir = ctx.location?.directory || process.cwd();
10153
+ this.configManager.loadFromPath(projectDir);
10153
10154
  await this.loadModelCosts();
10154
10155
  this.cleanupInterval = setInterval(() => this.cleanupStaleData(), 300000);
10155
10156
  this._healthMonitor = new HealthMonitor({
@@ -11803,30 +11804,6 @@ You are a Nexus Documenter sub-agent. Write documentation.
11803
11804
  }
11804
11805
  }
11805
11806
  } catch {}
11806
- try {
11807
- const nexusConfigPath = join6(process.cwd(), ".opencode", "nexus.jsonc");
11808
- if (existsSync3(nexusConfigPath)) {
11809
- const nexusContent = readFileSync3(nexusConfigPath, "utf-8");
11810
- const stripped = nexusContent.replace(/\/\/.*$/gm, "").replace(/\/\*[\s\S]*?\*\//g, "");
11811
- const nexusConfig = JSON.parse(stripped);
11812
- if (nexusConfig.models) {
11813
- const configPath = join6(homedir2(), ".config", "opencode", "opencode.jsonc");
11814
- if (existsSync3(configPath)) {
11815
- let configContent = readFileSync3(configPath, "utf-8");
11816
- const configObj = JSON.parse(configContent);
11817
- if (!configObj.agents)
11818
- configObj.agents = {};
11819
- if (!configObj.agents["nexus-orchestrator"])
11820
- configObj.agents["nexus-orchestrator"] = {};
11821
- if (!configObj.agents["nexus-orchestrator"].model) {
11822
- configObj.agents["nexus-orchestrator"].model = nexusConfig.models.coder || "opencode-go/mimo-v2.5";
11823
- writeFileSync2(configPath, JSON.stringify(configObj, null, 2) + `
11824
- `, "utf-8");
11825
- }
11826
- }
11827
- }
11828
- }
11829
- } catch {}
11830
11807
  const orchestrator = new NexusOrchestrator;
11831
11808
  const goalManager = new GoalManager;
11832
11809
  await orchestrator.initialize(ctx, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serkanalgur/opencode-nexus",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "Adaptive Multi-Agent Orchestration with Cost Intelligence for OpenCode V2",
5
5
  "keywords": [
6
6
  "opencode",