@serkanalgur/opencode-nexus 1.6.1 → 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.
package/dist/index.js CHANGED
@@ -8453,6 +8453,7 @@ class NexusConfigManager {
8453
8453
  this.globalConfig = null;
8454
8454
  }
8455
8455
  loadConfigs(basePath) {
8456
+ this.storageConfig = null;
8456
8457
  const projectPath = join(basePath, ".opencode", "nexus.jsonc");
8457
8458
  this.projectConfig = readJsoncFile(projectPath);
8458
8459
  const globalPath = join(homedir(), ".config", "opencode", "nexus.jsonc");
@@ -11102,7 +11103,7 @@ function getTemplate(name) {
11102
11103
  }
11103
11104
 
11104
11105
  // src/index.ts
11105
- 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";
11106
11107
  import { join as join6 } from "node:path";
11107
11108
  import { homedir as homedir2 } from "node:os";
11108
11109
  var NEXUS_AGENT_CONTENT = `---
@@ -11184,6 +11185,18 @@ var src_default = define({
11184
11185
  writeFileSync2(agentFile, NEXUS_AGENT_CONTENT, "utf-8");
11185
11186
  }
11186
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 {}
11187
11200
  const orchestrator = new NexusOrchestrator;
11188
11201
  await orchestrator.initialize(ctx, () => {
11189
11202
  const state = orchestrator.getState();
package/dist/tui.js CHANGED
@@ -196,6 +196,7 @@ class NexusConfigManager {
196
196
  this.globalConfig = null;
197
197
  }
198
198
  loadConfigs(basePath) {
199
+ this.storageConfig = null;
199
200
  const projectPath = join(basePath, ".opencode", "nexus.jsonc");
200
201
  this.projectConfig = readJsoncFile(projectPath);
201
202
  const globalPath = join(homedir(), ".config", "opencode", "nexus.jsonc");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serkanalgur/opencode-nexus",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "description": "Adaptive Multi-Agent Orchestration with Cost Intelligence for OpenCode V2",
5
5
  "keywords": [
6
6
  "opencode",