@tdsoft-tech/aikit 0.1.9 → 0.1.11
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 +18 -0
- package/dist/cli.js +1285 -117
- package/dist/cli.js.map +1 -1
- package/dist/index.js +89 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +89 -0
- package/dist/mcp-server.js.map +1 -1
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -1766,6 +1766,95 @@ Before marking complete:
|
|
|
1766
1766
|
2. Display summary to user
|
|
1767
1767
|
3. Propose next actions
|
|
1768
1768
|
4. Continue from where left off`
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
name: "one-shot",
|
|
1772
|
+
description: "End-to-end autonomous task execution (beta)",
|
|
1773
|
+
category: "core",
|
|
1774
|
+
usage: "/one-shot <task description>",
|
|
1775
|
+
examples: ["/one-shot Add user authentication", "/one-shot Fix navigation bug"],
|
|
1776
|
+
content: `One-Shot Mode (beta) - End-to-end autonomous task execution.
|
|
1777
|
+
|
|
1778
|
+
\u26A0\uFE0F This mode is experimental. Use for straightforward tasks first.
|
|
1779
|
+
|
|
1780
|
+
## Workflow
|
|
1781
|
+
|
|
1782
|
+
**Phase 1: Requirements Gathering**
|
|
1783
|
+
- Interactive selection of task type (Feature, Bug Fix, Refactoring, etc.)
|
|
1784
|
+
- Scope clarification
|
|
1785
|
+
- Dependencies identification
|
|
1786
|
+
- Success criteria definition
|
|
1787
|
+
- User selects progress level (Minimal/Moderate/Detailed/Quiet)
|
|
1788
|
+
|
|
1789
|
+
**Phase 2: Planning**
|
|
1790
|
+
- Delegate to @planner agent
|
|
1791
|
+
- Create detailed implementation plan
|
|
1792
|
+
- Recommend relevant skills and tools
|
|
1793
|
+
- Create Beads task for tracking
|
|
1794
|
+
|
|
1795
|
+
**Phase 3: Complexity Check & Auto-Split**
|
|
1796
|
+
- Analyze task complexity
|
|
1797
|
+
- Split into multiple beads if needed:
|
|
1798
|
+
* Time > 30 minutes
|
|
1799
|
+
* >10 files affected
|
|
1800
|
+
* >500 lines to change
|
|
1801
|
+
* Touches >2 sub-systems
|
|
1802
|
+
|
|
1803
|
+
**Phase 4: Execution**
|
|
1804
|
+
- Build dependency graph
|
|
1805
|
+
- Execute tasks in parallel (max 3 concurrent)
|
|
1806
|
+
- Dynamic agent selection (@build \u2192 @review \u2192 @scout \u2192 ...)
|
|
1807
|
+
- Integrate skills (TDD, debugging, etc.)
|
|
1808
|
+
- Smart terminal access (auto-allow/ask/forbid)
|
|
1809
|
+
|
|
1810
|
+
**Phase 5: Enhanced Testing & Validation**
|
|
1811
|
+
- Auto-generate test scripts for new functionality
|
|
1812
|
+
- Run quality gates: typecheck, test, lint, build
|
|
1813
|
+
- Execute sample commands (with user approval)
|
|
1814
|
+
- Validate logs semantically with historical comparison
|
|
1815
|
+
- Retry loop (max 3 attempts) with:
|
|
1816
|
+
* Auto-fix type errors, lint errors
|
|
1817
|
+
* Alternative approaches from @review
|
|
1818
|
+
* User intervention on final failure
|
|
1819
|
+
|
|
1820
|
+
**Phase 6: Multi-Level Verification**
|
|
1821
|
+
- All quality gates passed \u2713
|
|
1822
|
+
- Manual verification confirmation
|
|
1823
|
+
- Deployment approval (if needed)
|
|
1824
|
+
- Rollback confirmation (if verification fails)
|
|
1825
|
+
|
|
1826
|
+
**Phase 7: Completion**
|
|
1827
|
+
- Generate proof of completion
|
|
1828
|
+
* Files changed
|
|
1829
|
+
* Test results
|
|
1830
|
+
* Build output
|
|
1831
|
+
* Deployment status
|
|
1832
|
+
- Update Beads task \u2192 completed
|
|
1833
|
+
- Store proof in bead notes
|
|
1834
|
+
- Collect beta feedback
|
|
1835
|
+
|
|
1836
|
+
## Quality Gates (Must ALL Pass)
|
|
1837
|
+
- \`npm run typecheck\` - No type errors
|
|
1838
|
+
- \`npm run test\` - All tests pass
|
|
1839
|
+
- \`npm run lint\` - No linting errors
|
|
1840
|
+
- \`npm run build\` - Build succeeds
|
|
1841
|
+
|
|
1842
|
+
## Success Criteria
|
|
1843
|
+
- All tests passing
|
|
1844
|
+
- No regressions
|
|
1845
|
+
- Manual verification
|
|
1846
|
+
- Deployment complete (if applicable)
|
|
1847
|
+
- Beads task completed with proof
|
|
1848
|
+
|
|
1849
|
+
## Error Handling
|
|
1850
|
+
- **Level 1**: Auto-fix (type errors, lint --fix)
|
|
1851
|
+
- **Level 2**: Alternative approach (@review delegation)
|
|
1852
|
+
- **Level 3**: User intervention + follow-up bead creation
|
|
1853
|
+
|
|
1854
|
+
## Tips
|
|
1855
|
+
\u2713 Use for straightforward tasks first
|
|
1856
|
+
\u2713 Consider /plan + /implement for complex features
|
|
1857
|
+
\u2713 Review changes before final approval`
|
|
1769
1858
|
},
|
|
1770
1859
|
// Quick Actions
|
|
1771
1860
|
{
|