@serkanalgur/opencode-nexus 1.9.2 → 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.
- package/dist/index.js +0 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11803,30 +11803,6 @@ You are a Nexus Documenter sub-agent. Write documentation.
|
|
|
11803
11803
|
}
|
|
11804
11804
|
}
|
|
11805
11805
|
} 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
11806
|
const orchestrator = new NexusOrchestrator;
|
|
11831
11807
|
const goalManager = new GoalManager;
|
|
11832
11808
|
await orchestrator.initialize(ctx, () => {
|