@serkanalgur/opencode-nexus 1.2.5 → 1.2.6

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
@@ -8567,6 +8567,14 @@ class NexusConfigManager {
8567
8567
  const config = this.getNonDefaultConfig();
8568
8568
  this.writeJsoncFile(globalPath, config);
8569
8569
  }
8570
+ initProjectConfig(basePath) {
8571
+ const projectPath = join(basePath, ".opencode", "nexus.jsonc");
8572
+ this.writeJsoncFile(projectPath, { ...DEFAULT_CONFIG });
8573
+ }
8574
+ initGlobalConfig() {
8575
+ const globalPath = join(homedir(), ".config", "opencode", "nexus.jsonc");
8576
+ this.writeJsoncFile(globalPath, { ...DEFAULT_CONFIG });
8577
+ }
8570
8578
  saveConfig(level, basePath) {
8571
8579
  if (level === "project") {
8572
8580
  this.saveProjectConfig(basePath || process.cwd());
@@ -10862,11 +10870,11 @@ var src_default = define({
10862
10870
  const path = basePath || process.cwd();
10863
10871
  const locations = [];
10864
10872
  if (level === "project" || level === "both") {
10865
- orchestrator.configManager.saveProjectConfig(path);
10873
+ orchestrator.configManager.initProjectConfig(path);
10866
10874
  locations.push(`${path}/.opencode/nexus.jsonc`);
10867
10875
  }
10868
10876
  if (level === "global" || level === "both") {
10869
- orchestrator.configManager.saveGlobalConfig();
10877
+ orchestrator.configManager.initGlobalConfig();
10870
10878
  locations.push("~/.config/opencode/nexus.jsonc");
10871
10879
  }
10872
10880
  return { content: `Config initialized at ${level} level(s): ${locations.join(", ")}` };
package/dist/tui.js CHANGED
@@ -310,6 +310,14 @@ class NexusConfigManager {
310
310
  const config = this.getNonDefaultConfig();
311
311
  this.writeJsoncFile(globalPath, config);
312
312
  }
313
+ initProjectConfig(basePath) {
314
+ const projectPath = join(basePath, ".opencode", "nexus.jsonc");
315
+ this.writeJsoncFile(projectPath, { ...DEFAULT_CONFIG });
316
+ }
317
+ initGlobalConfig() {
318
+ const globalPath = join(homedir(), ".config", "opencode", "nexus.jsonc");
319
+ this.writeJsoncFile(globalPath, { ...DEFAULT_CONFIG });
320
+ }
313
321
  saveConfig(level, basePath) {
314
322
  if (level === "project") {
315
323
  this.saveProjectConfig(basePath || process.cwd());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serkanalgur/opencode-nexus",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Adaptive Multi-Agent Orchestration with Cost Intelligence for OpenCode V2",
5
5
  "keywords": [
6
6
  "opencode",