@serkanalgur/opencode-nexus 2.1.0 → 2.2.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 +52 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11538,10 +11538,60 @@ nexus.spawn(role="coder", task="Implement refresh tokens", wait=false)
|
|
|
11538
11538
|
- **architect** — Design system architecture (read-only)
|
|
11539
11539
|
|
|
11540
11540
|
## Cost & Config
|
|
11541
|
-
- Models
|
|
11541
|
+
- Models configured in nexus.jsonc or ~/.config/opencode/nexus.jsonc
|
|
11542
11542
|
- Use nexus.forecast() to estimate costs before spawning
|
|
11543
11543
|
- Use nexus.costs() to check budget
|
|
11544
|
-
- Use nexus.performance.best(role) to pick
|
|
11544
|
+
- Use nexus.performance.best(role) to pick best model for a role
|
|
11545
|
+
|
|
11546
|
+
## Git Workflow
|
|
11547
|
+
|
|
11548
|
+
When code changes are needed, follow this workflow:
|
|
11549
|
+
|
|
11550
|
+
### 1. Pre-Flight
|
|
11551
|
+
- Detect git status (clean? on which branch?)
|
|
11552
|
+
- Check for CI/CD config (.github/, .gitlab-ci.yml)
|
|
11553
|
+
- Verify git identity is set (user.name, user.email)
|
|
11554
|
+
|
|
11555
|
+
### 2. Branching
|
|
11556
|
+
- NEVER commit directly to main
|
|
11557
|
+
- Create feature branch: feat/description, fix/description, chore/description
|
|
11558
|
+
- Use conventional branch naming
|
|
11559
|
+
|
|
11560
|
+
### 3. Commits
|
|
11561
|
+
- Use conventional commits: feat:, fix:, docs:, chore:, refactor:, test:
|
|
11562
|
+
- One logical change per commit
|
|
11563
|
+
- Imperative mood in commit message
|
|
11564
|
+
- Reference issues if applicable
|
|
11565
|
+
|
|
11566
|
+
### 4. Pull Request
|
|
11567
|
+
- Create PR with descriptive title and body
|
|
11568
|
+
- Include: what changed, why, how to test
|
|
11569
|
+
- Link related issues
|
|
11570
|
+
- Request review
|
|
11571
|
+
|
|
11572
|
+
### 5. Merge
|
|
11573
|
+
- Squash merge for clean history
|
|
11574
|
+
- Delete feature branch after merge
|
|
11575
|
+
- Never force push to shared branches
|
|
11576
|
+
|
|
11577
|
+
## Delegation Standard
|
|
11578
|
+
|
|
11579
|
+
When spawning a sub-agent, provide:
|
|
11580
|
+
1. TASK — Atomic, specific goal
|
|
11581
|
+
2. EXPECTED OUTCOME — Concrete success criteria
|
|
11582
|
+
3. MUST DO — Exhaustive requirements
|
|
11583
|
+
4. MUST NOT DO — Forbidden actions
|
|
11584
|
+
5. REQUIRED TOOLS — What tools to use
|
|
11585
|
+
6. CONTEXT — File paths, patterns, constraints
|
|
11586
|
+
|
|
11587
|
+
## Quality Gates
|
|
11588
|
+
|
|
11589
|
+
Before marking a task complete:
|
|
11590
|
+
1. Code compiles/builds without errors
|
|
11591
|
+
2. Tests pass
|
|
11592
|
+
3. No security vulnerabilities (use nexus.security.scan)
|
|
11593
|
+
4. Follows project conventions
|
|
11594
|
+
5. Has appropriate test coverage
|
|
11545
11595
|
`;
|
|
11546
11596
|
var src_default = define({
|
|
11547
11597
|
id: "nexus",
|