* move claude rules and commands to assets/claude * update claude profile to copy assets/claude to .claude * fix formatting * feat(profiles): Implement unified profile system - Convert Claude and Codex profiles to use createProfile() factory - Remove simple vs complex profile distinction in rule transformer - Unify convertAllRulesToProfileRules() to handle all profiles consistently - Fix mcpConfigPath construction in base-profile.js for null mcpConfigName - Update terminology from 'simpleProfiles' to 'assetOnlyProfiles' throughout - Ensure Claude .claude directory copying works in both CLI and MCP contexts - All profiles now follow same execution flow with proper lifecycle functions Changes: - src/profiles/claude.js: Convert to createProfile() factory pattern - src/profiles/codex.js: Convert to createProfile() factory pattern - src/utils/rule-transformer.js: Unified profile handling logic - src/utils/profiles.js: Remove simple profile categorization - src/profiles/base-profile.js: Fix mcpConfigPath construction - scripts/modules/commands.js: Update variable naming - tests/: Update all tests for unified system and terminology Fixes Claude profile asset copying issue in MCP context. All tests passing (617 passed, 11 skipped). * re-checkin claude files * fix formatting * chore: clean up test Claude rules files * chore: add changeset for unified profile system * add claude files back * add changeset * restore proper gitignore * remove claude agents file from root * remove incorrect doc * simplify profiles and update tests * update changeset * update changeset * remove profile specific code * streamline profiles with defaults and update tests * update changeset * add newline at end of gitignore * restore changes * streamline profiles with defaults; update tests and add vscode test * update rule profile tests * update wording for clearer profile management * refactor and clarify terminology * use original projectRoot var name * revert param desc * use updated claude assets from neno * add "YOUR_" before api key here * streamline codex profile * add gemini profile * update gemini profile * update tests * relocate function * update rules interactive setup Gemini desc * remove duplicative code * add comma
93 lines
2.0 KiB
Markdown
93 lines
2.0 KiB
Markdown
Clear all subtasks from all tasks globally.
|
|
|
|
## Global Subtask Clearing
|
|
|
|
Remove all subtasks across the entire project. Use with extreme caution.
|
|
|
|
## Execution
|
|
|
|
```bash
|
|
task-master clear-subtasks --all
|
|
```
|
|
|
|
## Pre-Clear Analysis
|
|
|
|
1. **Project-Wide Summary**
|
|
```
|
|
Global Subtask Summary
|
|
━━━━━━━━━━━━━━━━━━━━
|
|
Total parent tasks: 12
|
|
Total subtasks: 47
|
|
- Completed: 15
|
|
- In-progress: 8
|
|
- Pending: 24
|
|
|
|
Work at risk: ~120 hours
|
|
```
|
|
|
|
2. **Critical Warnings**
|
|
- In-progress subtasks that will lose work
|
|
- Completed subtasks with valuable history
|
|
- Complex dependency chains
|
|
- Integration test results
|
|
|
|
## Double Confirmation
|
|
|
|
```
|
|
⚠️ DESTRUCTIVE OPERATION WARNING ⚠️
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
This will remove ALL 47 subtasks from your project
|
|
Including 8 in-progress and 15 completed subtasks
|
|
|
|
This action CANNOT be undone
|
|
|
|
Type 'CLEAR ALL SUBTASKS' to confirm:
|
|
```
|
|
|
|
## Smart Safeguards
|
|
|
|
- Require explicit confirmation phrase
|
|
- Create automatic backup
|
|
- Log all removed data
|
|
- Option to export first
|
|
|
|
## Use Cases
|
|
|
|
Valid reasons for global clear:
|
|
- Project restructuring
|
|
- Major pivot in approach
|
|
- Starting fresh breakdown
|
|
- Switching to different task organization
|
|
|
|
## Process
|
|
|
|
1. Full project analysis
|
|
2. Create backup file
|
|
3. Show detailed impact
|
|
4. Require confirmation
|
|
5. Execute removal
|
|
6. Generate summary report
|
|
|
|
## Alternative Suggestions
|
|
|
|
Before clearing all:
|
|
- Export subtasks to file
|
|
- Clear only pending subtasks
|
|
- Clear by task category
|
|
- Archive instead of delete
|
|
|
|
## Post-Clear Report
|
|
|
|
```
|
|
Global Subtask Clear Complete
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
Removed: 47 subtasks from 12 tasks
|
|
Backup saved: .taskmaster/backup/subtasks-20240115.json
|
|
Parent tasks updated: 12
|
|
Time estimates adjusted: Yes
|
|
|
|
Next steps:
|
|
- Review updated task list
|
|
- Re-expand complex tasks as needed
|
|
- Check project timeline
|
|
``` |