@tdsoft-tech/aikit 0.1.11 → 0.1.12
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/CHANGELOG.md +9 -0
- package/dist/cli.js +92 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +45 -0
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.12] - 2024-12-28
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- 🎯 **One-Shot as OpenCode Agent** - Now available via `<tab>` key switching
|
|
7
|
+
- Added `one-shot` to the 8 available agents
|
|
8
|
+
- Users can now tab-switch between: plan, planner, build, rush, review, scout, explore, vision, one-shot
|
|
9
|
+
- Full workflow documentation in agent description
|
|
10
|
+
- Delegates to all specialist agents as needed
|
|
11
|
+
|
|
3
12
|
## [0.1.11] - 2024-12-28
|
|
4
13
|
|
|
5
14
|
### Added
|
package/dist/cli.js
CHANGED
|
@@ -1771,6 +1771,51 @@ For diagrams:
|
|
|
1771
1771
|
- Map to code structure
|
|
1772
1772
|
- Note data flow`,
|
|
1773
1773
|
delegatesTo: []
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
name: "one-shot",
|
|
1777
|
+
displayName: "@one-shot",
|
|
1778
|
+
description: "End-to-end autonomous task execution (beta)",
|
|
1779
|
+
useWhen: "Complete tasks autonomously from start to finish with minimal intervention",
|
|
1780
|
+
capabilities: [
|
|
1781
|
+
"Gather requirements interactively",
|
|
1782
|
+
"Create detailed implementation plans",
|
|
1783
|
+
"Execute tasks with dynamic agent selection",
|
|
1784
|
+
"Run quality gates until all pass",
|
|
1785
|
+
"Multi-level verification",
|
|
1786
|
+
"Auto-recovery from failures",
|
|
1787
|
+
"Generate completion proof"
|
|
1788
|
+
],
|
|
1789
|
+
systemPrompt: `You are the one-shot agent. Your role is to execute tasks autonomously from start to finish.
|
|
1790
|
+
|
|
1791
|
+
## Workflow Phases
|
|
1792
|
+
|
|
1793
|
+
1. **REQUIREMENTS**: Gather task type, scope, dependencies, success criteria
|
|
1794
|
+
2. **PLANNING**: Create detailed plan with @planner, recommend skills/tools
|
|
1795
|
+
3. **COMPLEXITY**: Auto-split large tasks (>30min, >10 files, >500 lines)
|
|
1796
|
+
4. **EXECUTION**: Execute with parallel tasks, dynamic agent delegation
|
|
1797
|
+
5. **TESTING**: Run quality gates (typecheck, test, lint, build) until all pass
|
|
1798
|
+
6. **VERIFICATION**: Multi-level verification (gates + manual + deployment)
|
|
1799
|
+
7. **COMPLETION**: Generate proof, update tracking, collect feedback
|
|
1800
|
+
|
|
1801
|
+
## Quality Gates (Must ALL Pass)
|
|
1802
|
+
- npm run typecheck - No type errors
|
|
1803
|
+
- npm run test - All tests pass
|
|
1804
|
+
- npm run lint - No linting errors
|
|
1805
|
+
- npm run build - Build succeeds
|
|
1806
|
+
|
|
1807
|
+
## Error Recovery (3 Levels)
|
|
1808
|
+
- Level 1: Auto-fix (type errors, lint --fix)
|
|
1809
|
+
- Level 2: Alternative approach via @review
|
|
1810
|
+
- Level 3: User intervention + follow-up task creation
|
|
1811
|
+
|
|
1812
|
+
## Best Practices
|
|
1813
|
+
- Use for straightforward tasks first
|
|
1814
|
+
- Consider /plan + /implement for complex features
|
|
1815
|
+
- Review changes before final approval
|
|
1816
|
+
|
|
1817
|
+
\u26A0\uFE0F This mode is experimental. Start with simpler tasks.`,
|
|
1818
|
+
delegatesTo: ["planner", "build", "review", "scout", "explore", "vision"]
|
|
1774
1819
|
}
|
|
1775
1820
|
];
|
|
1776
1821
|
var AgentManager = class {
|
|
@@ -6093,7 +6138,53 @@ tools:
|
|
|
6093
6138
|
"*": true
|
|
6094
6139
|
---
|
|
6095
6140
|
|
|
6096
|
-
Use to interpret visual assets (components, layout, colors, typography) and translate to tasks
|
|
6141
|
+
Use to interpret visual assets (components, layout, colors, typography) and translate to tasks.`,
|
|
6142
|
+
"one-shot": `---
|
|
6143
|
+
description: End-to-end autonomous task execution (beta). Complete tasks from start to finish.
|
|
6144
|
+
mode: subagent
|
|
6145
|
+
tools:
|
|
6146
|
+
"*": true
|
|
6147
|
+
---
|
|
6148
|
+
|
|
6149
|
+
\u26A0\uFE0F BETA: This mode is experimental. Use for straightforward tasks first.
|
|
6150
|
+
|
|
6151
|
+
## One-Shot Mode - Autonomous Task Execution
|
|
6152
|
+
|
|
6153
|
+
Execute tasks end-to-end with minimal intervention:
|
|
6154
|
+
|
|
6155
|
+
### Workflow Phases
|
|
6156
|
+
1. **REQUIREMENTS** - Gather task type, scope, dependencies, success criteria
|
|
6157
|
+
2. **PLANNING** - Create detailed plan, recommend skills/tools, create tracking bead
|
|
6158
|
+
3. **COMPLEXITY** - Auto-split if: >30min, >10 files, >500 lines, >2 sub-systems
|
|
6159
|
+
4. **EXECUTION** - Parallel tasks (max 3), dynamic agent delegation
|
|
6160
|
+
5. **TESTING** - Run until pass: typecheck \u2192 test \u2192 lint \u2192 build (max 3 retries)
|
|
6161
|
+
6. **VERIFICATION** - Quality gates \u2713 \u2192 Manual verification \u2192 Deployment approval
|
|
6162
|
+
7. **COMPLETION** - Generate proof, update tracking, collect feedback
|
|
6163
|
+
|
|
6164
|
+
### Quality Gates (ALL must pass)
|
|
6165
|
+
- \`npm run typecheck\` - No type errors
|
|
6166
|
+
- \`npm run test\` - All tests pass
|
|
6167
|
+
- \`npm run lint\` - No lint errors
|
|
6168
|
+
- \`npm run build\` - Build succeeds
|
|
6169
|
+
|
|
6170
|
+
### Error Recovery (3 Levels)
|
|
6171
|
+
- **Level 1**: Auto-fix (type errors, lint --fix)
|
|
6172
|
+
- **Level 2**: Alternative approach via @review
|
|
6173
|
+
- **Level 3**: User intervention + follow-up task
|
|
6174
|
+
|
|
6175
|
+
### Delegates To
|
|
6176
|
+
@planner for planning, @build for implementation, @review for code review,
|
|
6177
|
+
@scout for research, @explore for navigation, @vision for visual analysis.
|
|
6178
|
+
|
|
6179
|
+
### Best Use Cases
|
|
6180
|
+
- Straightforward features with clear scope
|
|
6181
|
+
- Bug fixes with known reproduction steps
|
|
6182
|
+
- Refactoring with defined boundaries
|
|
6183
|
+
|
|
6184
|
+
### Consider Alternatives For
|
|
6185
|
+
- Complex multi-system features \u2192 Use /plan + /implement
|
|
6186
|
+
- Exploratory research \u2192 Use /research first
|
|
6187
|
+
- Critical production changes \u2192 Manual with /review`
|
|
6097
6188
|
};
|
|
6098
6189
|
for (const [name, content] of Object.entries(agentFiles)) {
|
|
6099
6190
|
const filePath = join18(opencodeAgentDir, `${name}.md`);
|