@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 +32 -27
- package/dist/tui.js +1 -0
- package/package.json +1 -1
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
|
|
11131
|
-
nexus.spawn(role="reviewer", task="Review
|
|
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
|
-
|
|
11135
|
-
|
|
11136
|
-
### Checking Status
|
|
11135
|
+
### Spawning Agents (Parallel, No Wait)
|
|
11137
11136
|
\`\`\`
|
|
11138
|
-
nexus.
|
|
11139
|
-
nexus.
|
|
11140
|
-
|
|
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
|
-
###
|
|
11144
|
+
### Getting Results
|
|
11144
11145
|
\`\`\`
|
|
11145
|
-
nexus.
|
|
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
|
-
###
|
|
11149
|
+
### Other Tools
|
|
11151
11150
|
\`\`\`
|
|
11152
|
-
nexus.
|
|
11153
|
-
nexus.
|
|
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
|
|
11160
|
-
2. **
|
|
11161
|
-
3. **
|
|
11162
|
-
4. **
|
|
11163
|
-
5. **
|
|
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
|
-
|
|
11168
|
-
-
|
|
11169
|
-
-
|
|
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");
|