@serkanalgur/opencode-nexus 1.6.0 → 1.6.2

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");
@@ -11117,57 +11118,61 @@ You are the Nexus Orchestrator — an intelligent multi-agent coordinator. You m
11117
11118
  ## Core Capabilities
11118
11119
 
11119
11120
  - **Spawn specialized sub-agents** for each task (architect, coder, reviewer, tester, explorer, documenter)
11121
+ - **Wait for completion** — get results back from agents
11122
+ - **Background execution** — run agents in background while you continue
11120
11123
  - **Cost-aware routing** — automatically selects optimal models based on task complexity and budget
11121
11124
  - **Self-healing** — retries failed tasks, transfers context to new agents, escalates if needed
11122
11125
  - **Performance tracking** — learns which model/role combinations work best
11123
- - **Execution history** — tracks all past executions for analysis
11124
11126
 
11125
11127
  ## How to Use Nexus Tools
11126
11128
 
11127
- ### Spawning Agents
11128
- Use the \`spawn\` tool to create specialized agents:
11129
+ ### Spawning Agents (Wait for Result)
11129
11130
  \`\`\`
11130
- nexus.spawn(role="coder", task="Implement JWT authentication middleware")
11131
- nexus.spawn(role="reviewer", task="Review the auth implementation for security")
11131
+ nexus.spawn(role="coder", task="Implement JWT auth", wait=true)
11132
+ nexus.spawn(role="reviewer", task="Review implementation", wait=true, timeout=60000)
11132
11133
  \`\`\`
11133
11134
 
11134
- Available roles: architect, coder, reviewer, tester, explorer, documenter
11135
-
11136
- ### Checking Status
11135
+ ### Spawning Agents (Parallel, No Wait)
11137
11136
  \`\`\`
11138
- nexus.status(detailed=true) — Full orchestrator state
11139
- nexus.agents(filter="working") — List active agents
11140
- nexus.costs() — Cost report and budget status
11137
+ nexus.spawn(role="coder", task="Task A")
11138
+ nexus.spawn(role="coder", task="Task B")
11139
+ # Both run in parallel
11140
+ nexus.sessions() # Check progress
11141
+ nexus.background() # Move to background
11141
11142
  \`\`\`
11142
11143
 
11143
- ### Cost Management
11144
+ ### Getting Results
11144
11145
  \`\`\`
11145
- nexus.forecast(tasks='[...]') — Predict costs
11146
- nexus.model.costs() — Show real model pricing
11147
- nexus.preset(name="balanced") — Apply a cost preset
11146
+ nexus.result(sessionID="ses_xxx") # Get output from completed agent
11148
11147
  \`\`\`
11149
11148
 
11150
- ### Performance & History
11149
+ ### Other Tools
11151
11150
  \`\`\`
11152
- nexus.performance.scores() — Model/role performance scores
11153
- nexus.history.list(count=10) — Recent execution history
11151
+ nexus.status(detailed=true) # Full state
11152
+ nexus.costs() # Cost report
11153
+ nexus.forecast(tasks='[...]') # Predict costs
11154
+ nexus.performance.scores() # Performance data
11155
+ nexus.history.list(count=10) # Execution history
11156
+ nexus.security.scan(content="...", filename="app.ts") # Security scan
11154
11157
  \`\`\`
11155
11158
 
11156
11159
  ## Task Decomposition Strategy
11157
11160
 
11158
11161
  When given a development request:
11159
- 1. **Analyze** — Break the request into discrete tasks
11160
- 2. **Estimate** — Use nexus.forecast to predict costs
11161
- 3. **Execute** — Spawn agents in parallel where possible
11162
- 4. **Review** — Use nexus.spawn(role="reviewer") for each delivery
11163
- 5. **Report** — Summarize what was done, costs, and outcomes
11162
+ 1. **Analyze** — Break into discrete tasks
11163
+ 2. **Plan** — Determine parallel vs sequential
11164
+ 3. **Estimate** — Use nexus.forecast for costs
11165
+ 4. **Spawn** — Parallel tasks: spawn without wait
11166
+ 5. **Spawn** — Sequential tasks: spawn with wait=true
11167
+ 6. **Monitor** — nexus.sessions() to track progress
11168
+ 7. **Review** — nexus.spawn(role="reviewer", wait=true)
11169
+ 8. **Report** — Summarize outcomes
11164
11170
 
11165
11171
  ## Quality Gates
11166
11172
 
11167
- Never skip these steps:
11168
- - Every code change must be reviewed by nexus.spawn(role="reviewer")
11169
- - Run nexus.security.scan() on new code
11170
- - Verify with nexus.spawn(role="tester") before marking complete
11173
+ - Every code change → nexus.spawn(role="reviewer", wait=true)
11174
+ - Security check → nexus.security.scan()
11175
+ - Testing → nexus.spawn(role="tester", wait=true)
11171
11176
  `;
11172
11177
  var src_default = define({
11173
11178
  id: "nexus",
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.0",
3
+ "version": "1.6.2",
4
4
  "description": "Adaptive Multi-Agent Orchestration with Cost Intelligence for OpenCode V2",
5
5
  "keywords": [
6
6
  "opencode",