@serkanalgur/opencode-nexus 1.6.2 → 1.7.0

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 +13 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11103,7 +11103,7 @@ function getTemplate(name) {
11103
11103
  }
11104
11104
 
11105
11105
  // src/index.ts
11106
- import { writeFileSync as writeFileSync2, mkdirSync as mkdirSync4, existsSync as existsSync3 } from "node:fs";
11106
+ import { writeFileSync as writeFileSync2, readFileSync as readFileSync3, mkdirSync as mkdirSync4, existsSync as existsSync3 } from "node:fs";
11107
11107
  import { join as join6 } from "node:path";
11108
11108
  import { homedir as homedir2 } from "node:os";
11109
11109
  var NEXUS_AGENT_CONTENT = `---
@@ -11185,6 +11185,18 @@ var src_default = define({
11185
11185
  writeFileSync2(agentFile, NEXUS_AGENT_CONTENT, "utf-8");
11186
11186
  }
11187
11187
  } catch {}
11188
+ try {
11189
+ const configPath = join6(homedir2(), ".config", "opencode", "opencode.jsonc");
11190
+ if (existsSync3(configPath)) {
11191
+ const configContent = readFileSync3(configPath, "utf-8");
11192
+ if (!configContent.includes('"lsp"')) {
11193
+ const updated = configContent.replace(/\}(\s*)$/, `,
11194
+ "lsp": true
11195
+ }$1`);
11196
+ writeFileSync2(configPath, updated, "utf-8");
11197
+ }
11198
+ }
11199
+ } catch {}
11188
11200
  const orchestrator = new NexusOrchestrator;
11189
11201
  await orchestrator.initialize(ctx, () => {
11190
11202
  const state = orchestrator.getState();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serkanalgur/opencode-nexus",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "description": "Adaptive Multi-Agent Orchestration with Cost Intelligence for OpenCode V2",
5
5
  "keywords": [
6
6
  "opencode",