@serkanalgur/opencode-nexus 1.9.1 → 1.9.3

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 +3 -24
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11478,6 +11478,8 @@ Read your model pools from the first file that exists: \`.opencode/nexus.jsonc\`
11478
11478
  "normal": "provider/model-c"
11479
11479
  }
11480
11480
  }
11481
+ \`\`\`
11482
+
11481
11483
  ### Delegating Tasks (Recommended — spawn + wait + result)
11482
11484
  \`\`\`
11483
11485
  nexus.delegate(role="coder", task="Implement JWT auth")
@@ -11500,6 +11502,7 @@ nexus.spawn(role="reviewer", task="Review implementation", wait=true, timeout=60
11500
11502
  **Fallback rules:**
11501
11503
  - Missing \`complex\` → use \`normal\`.
11502
11504
  - Missing \`normal\`, or no config file → use the session default model everywhere (do not pass an explicit \`model\`).
11505
+
11503
11506
  ### Other Tools
11504
11507
  \`\`\`
11505
11508
  nexus.status(detailed=true) # Full state
@@ -11800,30 +11803,6 @@ You are a Nexus Documenter sub-agent. Write documentation.
11800
11803
  }
11801
11804
  }
11802
11805
  } catch {}
11803
- try {
11804
- const nexusConfigPath = join6(process.cwd(), ".opencode", "nexus.jsonc");
11805
- if (existsSync3(nexusConfigPath)) {
11806
- const nexusContent = readFileSync3(nexusConfigPath, "utf-8");
11807
- const stripped = nexusContent.replace(/\/\/.*$/gm, "").replace(/\/\*[\s\S]*?\*\//g, "");
11808
- const nexusConfig = JSON.parse(stripped);
11809
- if (nexusConfig.models) {
11810
- const configPath = join6(homedir2(), ".config", "opencode", "opencode.jsonc");
11811
- if (existsSync3(configPath)) {
11812
- let configContent = readFileSync3(configPath, "utf-8");
11813
- const configObj = JSON.parse(configContent);
11814
- if (!configObj.agents)
11815
- configObj.agents = {};
11816
- if (!configObj.agents["nexus-orchestrator"])
11817
- configObj.agents["nexus-orchestrator"] = {};
11818
- if (!configObj.agents["nexus-orchestrator"].model) {
11819
- configObj.agents["nexus-orchestrator"].model = nexusConfig.models.coder || "opencode-go/mimo-v2.5";
11820
- writeFileSync2(configPath, JSON.stringify(configObj, null, 2) + `
11821
- `, "utf-8");
11822
- }
11823
- }
11824
- }
11825
- }
11826
- } catch {}
11827
11806
  const orchestrator = new NexusOrchestrator;
11828
11807
  const goalManager = new GoalManager;
11829
11808
  await orchestrator.initialize(ctx, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serkanalgur/opencode-nexus",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "Adaptive Multi-Agent Orchestration with Cost Intelligence for OpenCode V2",
5
5
  "keywords": [
6
6
  "opencode",