task-o-matic 0.0.13 → 0.0.14

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.
Files changed (59) hide show
  1. package/dist/commands/init.js +41 -8
  2. package/dist/commands/tasks/document/add.js +3 -3
  3. package/dist/commands/tasks/list.js +2 -2
  4. package/dist/commands/tasks/next.js +4 -4
  5. package/dist/commands/tasks/status.js +2 -2
  6. package/dist/lib/ai-service/ai-operations.d.ts +1 -1
  7. package/dist/lib/ai-service/ai-operations.d.ts.map +1 -1
  8. package/dist/lib/ai-service/base-operations.d.ts +22 -0
  9. package/dist/lib/ai-service/base-operations.d.ts.map +1 -1
  10. package/dist/lib/ai-service/base-operations.js +29 -1
  11. package/dist/lib/ai-service/task-operations.d.ts +1 -1
  12. package/dist/lib/ai-service/task-operations.d.ts.map +1 -1
  13. package/dist/lib/better-t-stack-cli.d.ts +36 -21
  14. package/dist/lib/better-t-stack-cli.d.ts.map +1 -1
  15. package/dist/lib/better-t-stack-cli.js +212 -33
  16. package/dist/lib/bootstrap/cli-bootstrap.d.ts +14 -0
  17. package/dist/lib/bootstrap/cli-bootstrap.d.ts.map +1 -0
  18. package/dist/lib/bootstrap/cli-bootstrap.js +325 -0
  19. package/dist/lib/bootstrap/index.d.ts +4 -0
  20. package/dist/lib/bootstrap/index.d.ts.map +1 -0
  21. package/dist/lib/bootstrap/index.js +19 -0
  22. package/dist/lib/bootstrap/medusa-bootstrap.d.ts +14 -0
  23. package/dist/lib/bootstrap/medusa-bootstrap.d.ts.map +1 -0
  24. package/dist/lib/bootstrap/medusa-bootstrap.js +218 -0
  25. package/dist/lib/bootstrap/opentui-bootstrap.d.ts +11 -0
  26. package/dist/lib/bootstrap/opentui-bootstrap.d.ts.map +1 -0
  27. package/dist/lib/bootstrap/opentui-bootstrap.js +342 -0
  28. package/dist/lib/config.d.ts +14 -0
  29. package/dist/lib/config.d.ts.map +1 -1
  30. package/dist/lib/config.js +18 -0
  31. package/dist/services/prd.d.ts.map +1 -1
  32. package/dist/services/prd.js +18 -45
  33. package/dist/services/tasks.d.ts +2 -2
  34. package/dist/services/tasks.d.ts.map +1 -1
  35. package/dist/services/tasks.js +55 -85
  36. package/dist/types/index.d.ts +36 -1
  37. package/dist/types/index.d.ts.map +1 -1
  38. package/dist/types/results.d.ts +60 -6
  39. package/dist/types/results.d.ts.map +1 -1
  40. package/dist/utils/error-utils.d.ts +70 -0
  41. package/dist/utils/error-utils.d.ts.map +1 -0
  42. package/dist/utils/error-utils.js +103 -0
  43. package/dist/utils/file-utils.d.ts +49 -0
  44. package/dist/utils/file-utils.d.ts.map +1 -0
  45. package/dist/utils/file-utils.js +77 -0
  46. package/dist/utils/id-generator.d.ts +92 -0
  47. package/dist/utils/id-generator.d.ts.map +1 -0
  48. package/dist/utils/id-generator.js +140 -0
  49. package/dist/utils/stack-formatter.d.ts +2 -1
  50. package/dist/utils/stack-formatter.d.ts.map +1 -1
  51. package/dist/utils/stack-formatter.js +8 -2
  52. package/dist/utils/storage-utils.d.ts +49 -0
  53. package/dist/utils/storage-utils.d.ts.map +1 -0
  54. package/dist/utils/storage-utils.js +79 -0
  55. package/dist/utils/streaming-utils.d.ts +38 -0
  56. package/dist/utils/streaming-utils.d.ts.map +1 -0
  57. package/dist/utils/streaming-utils.js +56 -0
  58. package/docs/agents/cli.md +58 -149
  59. package/package.json +1 -1
@@ -1,191 +1,100 @@
1
- # Task-O-Matic CLI Agent Guide
1
+ # Task-O-Matic Agent Guide
2
2
 
3
- You are an AI agent with access to the Task-O-Matic CLI tool for managing development tasks. This guide provides comprehensive usage patterns and command reference for autonomous development workflows.
3
+ Concise reference for AI agents using Task-O-Matic in autonomous workflows.
4
4
 
5
- ## Core Commands Reference
5
+ ## Core Workflow Commands
6
6
 
7
7
  ### Task Management
8
- ```bash
9
- # Get next task to work on (prioritizes subtasks over parent tasks)
10
- task-o-matic tasks get-next [--status todo] [--tag <tag>] [--effort <small|medium|large>]
11
-
12
- # Show detailed task information
13
- task-o-matic tasks show --id <task-id>
14
-
15
- # Update task status
16
- task-o-matic tasks status --id <task-id> --status <todo|in-progress|completed>
17
-
18
- # List all tasks with optional filtering
19
- task-o-matic tasks list [--status <status>] [--tag <tag>]
20
-
21
- # Create new tasks
22
- task-o-matic tasks create --title "Task Title" [--content "Description"] [--effort <small|medium|large>] [--parent-id <id>] [--ai-enhance] [--stream]
23
-
24
- # Split tasks into subtasks using AI
25
- task-o-matic tasks split --task-id <id> [--tools] [--stream] [--ai-provider <provider>]
26
-
27
- # Update task details
28
- task-o-matic tasks update --id <task-id> [--title "New Title"] [--description "New Description"] [--status <status>] [--effort <effort>]
29
-
30
- # Delete tasks
31
- task-o-matic tasks delete --id <task-id> --force [--cascade]
32
- ```
33
-
34
- ### Planning & Documentation
35
- ```bash
36
- # Generate AI implementation plans for tasks
37
- task-o-matic tasks plan --id <task-id> [--stream] [--ai-provider <provider>]
38
-
39
- # View existing implementation plans
40
- task-o-matic tasks get-plan --id <task-id>
41
-
42
- # Set manual implementation plan
43
- task-o-matic tasks set-plan --id <task-id> --plan "Plan text" [or --plan-file <path>]
44
-
45
- # Generate AI task documentation with project context
46
- task-o-matic tasks document --task-id <task-id> [--force] [--stream] [--ai-provider <provider>]
47
-
48
- # Get existing task documentation
49
- task-o-matic tasks get-documentation --id <task-id>
50
8
 
51
- # Add documentation from external file
52
- task-o-matic tasks add-documentation --id <task-id> --doc-file <path> [--overwrite]
53
- ```
54
-
55
- ### PRD Management
56
9
  ```bash
57
- # Parse PRD into structured tasks
58
- task-o-matic prd parse --file <prd-file> [--tools] [--stream] [--ai-provider <provider>]
10
+ # List tasks (filter by status or tag)
11
+ task-o-matic tasks list [-s <status>] [-t <tag>]
59
12
 
60
- # Improve PRD based on feedback
61
- task-o-matic prd rework --file <prd-file> --feedback "Feedback text" [--tools] [--output <output-file>] [--stream]
62
- ```
13
+ # Get next task to work on (prioritizes subtasks)
14
+ task-o-matic tasks get-next [-s <status>] [-t <tag>]
63
15
 
64
- ### Project Initialization
65
- ```bash
66
- # Initialize task-o-matic in current directory
67
- task-o-matic init init
16
+ # Update task status
17
+ task-o-matic tasks status -i <task-id> -s <todo|in-progress|completed>
68
18
 
69
- # Configure AI providers
70
- task-o-matic config set --provider <openai|anthropic|openrouter> --model <model-name> [--api-key <key>]
19
+ # Add documentation from file
20
+ task-o-matic tasks add-documentation -i <task-id> --doc-file <path>
71
21
  ```
72
22
 
73
- ## Autonomous Development Workflow
23
+ ## Typical Agent Workflow
74
24
 
75
- ### Primary Work Loop
76
25
  ```bash
77
- # 1. Get next available task (subtasks have priority)
78
- TASK_ID=$(task-o-matic tasks get-next --status todo | grep -oE '[a-f0-9-]{36}')
79
-
80
- # 2. Show task details and mark as in-progress
81
- task-o-matic tasks show --id $TASK_ID
82
- task-o-matic tasks status --id $TASK_ID --status in-progress
83
-
84
- # 3. Generate implementation plan with project context
85
- task-o-matic tasks plan --id $TASK_ID --stream
86
-
87
- # 4. Check for existing documentation or create it
88
- task-o-matic tasks get-documentation --id $TASK_ID || \
89
- task-o-matic tasks document --task-id $TASK_ID --stream
26
+ # 1. Get next task
27
+ TASK=$(task-o-matic tasks get-next -s todo)
90
28
 
91
- # 5. Execute implementation (use your development tools)
92
- # - Read project files using filesystem access
93
- # - Implement code changes
94
- # - Add tests if needed
29
+ # 2. Mark as in-progress
30
+ task-o-matic tasks status -i $TASK_ID -s in-progress
95
31
 
96
- # 6. Validate implementation
97
- npm run check-types # Fix any type errors
98
- npm run build # Fix any build errors
99
- npm test # Fix any test failures
32
+ # 3. Implement the task
33
+ # (use your development tools)
100
34
 
101
- # 7. Commit changes with descriptive message
102
- git add .
103
- git commit -m "$(task-o-matic tasks show --id $TASK_ID | grep Title | cut -d: -f2-) - completed"
35
+ # 4. Validate
36
+ npm run check-types && npm run build && npm test
104
37
 
105
- # 8. Mark task as completed
106
- task-o-matic tasks status --id $TASK_ID --status completed
38
+ # 5. Mark as completed
39
+ task-o-matic tasks status -i $TASK_ID -s completed
107
40
 
108
- # 9. Repeat - get next task
109
- task-o-matic tasks get-next
41
+ # 6. Repeat
110
42
  ```
111
43
 
112
- ## Advanced Features
44
+ ## Bootstrap Options
113
45
 
114
- ### AI-Enhanced Operations
115
- Use `--tools` flag to enable filesystem tools for AI operations:
46
+ ### Web Projects
116
47
  ```bash
117
- # Parse PRD with project context awareness
118
- task-o-matic prd parse --file prd.md --tools --stream
119
-
120
- # Split tasks with understanding of current codebase
121
- task-o-matic tasks split --task-id <id> --tools --stream
122
-
123
- # Rework PRD considering current implementation
124
- task-o-matic prd rework --file prd.md --feedback "Add auth" --tools --stream
48
+ task-o-matic init init --project-name my-app --frontend next --backend hono
125
49
  ```
126
50
 
127
- ### Getting Help
51
+ ### Multi-Frontend Monorepo
128
52
  ```bash
129
- # Get help for main commands
130
- task-o-matic --help
53
+ # Web + Native + CLI + TUI
54
+ task-o-matic init init --project-name my-app --frontend "next native-uniwind cli tui" --backend hono
131
55
 
132
- # Get help for specific command groups
133
- task-o-matic tasks --help
134
- task-o-matic prd --help
135
- task-o-matic config --help
56
+ # Web + Native
57
+ task-o-matic init init --project-name my-app --frontend "next native-bare" --backend hono
136
58
 
137
- # Get help for specific commands
138
- task-o-matic tasks create --help
139
- task-o-matic tasks split --help
59
+ # Web + CLI
60
+ task-o-matic init init --project-name my-app --frontend "next cli" --backend hono
140
61
  ```
141
62
 
142
- ### AI Provider Configuration
63
+ ### Single Frontend Projects
143
64
  ```bash
144
- # Configure different AI providers
145
- task-o-matic config set --provider openai --model gpt-4 --api-key <your-key>
146
- task-o-matic config set --provider anthropic --model claude-3-sonnet-20240229 --api-key <your-key>
147
- task-o-matic config set --provider openrouter --model anthropic/claude-3.5-sonnet --api-key <your-key>
65
+ # CLI only
66
+ task-o-matic init init --project-name my-cli --frontend cli --cli-deps full
148
67
 
149
- # Use different providers per command
150
- task-o-matic tasks plan --id <task-id> --ai-provider anthropic --ai-model claude-3-sonnet-20240229
151
- ```
68
+ # TUI only
69
+ task-o-matic init init --project-name my-tui --frontend tui --tui-framework solid
152
70
 
153
- ## Best Practices for AI Agents
71
+ # Native only
72
+ task-o-matic init init --project-name my-mobile --frontend native-uniwind --backend hono
73
+ ```
154
74
 
155
- ### Task Prioritization
156
- 1. **Always work on subtasks first** - `get-next` automatically prioritizes them
157
- 2. **Mark parent tasks as in-progress** when starting their subtasks
158
- 3. **Complete subtasks before marking parent as complete**
75
+ ### Frontend Options
76
+ - **Web**: next, tanstack-router, react-router, nuxt, svelte, solid
77
+ - **Native**: native-bare, native-uniwind, native-unistyles
78
+ - **Custom**: cli, tui
159
79
 
160
- ### Quality Assurance
161
- 1. **Always validate before completion**: type-check build → test → commit
162
- 2. **Use streaming output** (`--stream`) to monitor AI operations in real-time
163
- 3. **Enable filesystem tools** (`--tools`) when context awareness is beneficial
80
+ ### CLI Dependency Levels
81
+ - **minimal**: commander + chalk only
82
+ - **standard**: + inquirer + dotenv (default)
83
+ - **full**: + mocha + tsx (testing)
84
+ - **task-o-matic**: + AI SDK (Vercel AI)
164
85
 
165
- ### Error Recovery
166
- - **Type errors**: Fix immediately, re-run `npm run check-types`
167
- - **Build errors**: Fix immediately, re-run `npm run build`
168
- - **Test failures**: Fix immediately, re-run `npm test`
169
- - **Task confusion**: Use `task-o-matic tasks show --id <id>` for clarification
86
+ ### TUI Framework Options
87
+ - **solid**: Solid.js (default, recommended)
88
+ - **vue**: Vue.js
89
+ - **react**: React
170
90
 
171
- ### Continuous Development
172
- - **Never stop the loop**: Immediately get next task after completing current one
173
- - **Maintain clean git history**: One commit per completed task
174
- - **Use descriptive commit messages**: Include task title and completion status
175
- - **Leverage AI enhancements**: Use `--ai-enhance`, `--tools`, and `--stream` flags appropriately
91
+ ## Getting Help
176
92
 
177
- ## Command Discovery
178
- When you need to discover available commands or options:
93
+ All commands support `--help`:
179
94
  ```bash
180
- # Explore available commands
181
95
  task-o-matic --help
182
-
183
- # Explore command groups
184
96
  task-o-matic tasks --help
185
- task-o-matic prd --help
186
-
187
- # Get detailed help for specific commands
188
- task-o-matic tasks [command] --help
97
+ task-o-matic tasks list --help
189
98
  ```
190
99
 
191
- This comprehensive reference enables autonomous AI agents to effectively use Task-O-Matic CLI for continuous development workflows with proper task management, planning, documentation, and quality assurance.
100
+ Full command reference: `docs/task-o-matic_help.md`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "task-o-matic",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "AI-powered task management CLI",
5
5
  "keywords": [
6
6
  "task-management",