task-o-matic 0.0.1

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 (159) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +552 -0
  3. package/dist/cli/bin.d.ts +3 -0
  4. package/dist/cli/bin.d.ts.map +1 -0
  5. package/dist/cli/bin.js +8 -0
  6. package/dist/cli/display/common.d.ts +5 -0
  7. package/dist/cli/display/common.d.ts.map +1 -0
  8. package/dist/cli/display/common.js +44 -0
  9. package/dist/cli/display/plan.d.ts +11 -0
  10. package/dist/cli/display/plan.d.ts.map +1 -0
  11. package/dist/cli/display/plan.js +42 -0
  12. package/dist/cli/display/progress.d.ts +11 -0
  13. package/dist/cli/display/progress.d.ts.map +1 -0
  14. package/dist/cli/display/progress.js +47 -0
  15. package/dist/cli/display/task.d.ts +18 -0
  16. package/dist/cli/display/task.d.ts.map +1 -0
  17. package/dist/cli/display/task.js +250 -0
  18. package/dist/commands/config.d.ts +3 -0
  19. package/dist/commands/config.d.ts.map +1 -0
  20. package/dist/commands/config.js +61 -0
  21. package/dist/commands/init.d.ts +4 -0
  22. package/dist/commands/init.d.ts.map +1 -0
  23. package/dist/commands/init.js +197 -0
  24. package/dist/commands/prd.d.ts +4 -0
  25. package/dist/commands/prd.d.ts.map +1 -0
  26. package/dist/commands/prd.js +131 -0
  27. package/dist/commands/prompt.d.ts +3 -0
  28. package/dist/commands/prompt.d.ts.map +1 -0
  29. package/dist/commands/prompt.js +192 -0
  30. package/dist/commands/tasks.d.ts +3 -0
  31. package/dist/commands/tasks.d.ts.map +1 -0
  32. package/dist/commands/tasks.js +599 -0
  33. package/dist/index.d.ts +18 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.js +67 -0
  36. package/dist/lib/ai-service/ai-operations.d.ts +31 -0
  37. package/dist/lib/ai-service/ai-operations.d.ts.map +1 -0
  38. package/dist/lib/ai-service/ai-operations.js +648 -0
  39. package/dist/lib/ai-service/json-parser.d.ts +9 -0
  40. package/dist/lib/ai-service/json-parser.d.ts.map +1 -0
  41. package/dist/lib/ai-service/json-parser.js +37 -0
  42. package/dist/lib/ai-service/mcp-client.d.ts +9 -0
  43. package/dist/lib/ai-service/mcp-client.d.ts.map +1 -0
  44. package/dist/lib/ai-service/mcp-client.js +48 -0
  45. package/dist/lib/ai-service/model-provider.d.ts +8 -0
  46. package/dist/lib/ai-service/model-provider.d.ts.map +1 -0
  47. package/dist/lib/ai-service/model-provider.js +71 -0
  48. package/dist/lib/ai-service/research-tools.d.ts +4 -0
  49. package/dist/lib/ai-service/research-tools.d.ts.map +1 -0
  50. package/dist/lib/ai-service/research-tools.js +8 -0
  51. package/dist/lib/ai-service/retry-handler.d.ts +8 -0
  52. package/dist/lib/ai-service/retry-handler.d.ts.map +1 -0
  53. package/dist/lib/ai-service/retry-handler.js +62 -0
  54. package/dist/lib/better-t-stack-cli.d.ts +35 -0
  55. package/dist/lib/better-t-stack-cli.d.ts.map +1 -0
  56. package/dist/lib/better-t-stack-cli.js +118 -0
  57. package/dist/lib/config.d.ts +24 -0
  58. package/dist/lib/config.d.ts.map +1 -0
  59. package/dist/lib/config.js +160 -0
  60. package/dist/lib/context-builder.d.ts +53 -0
  61. package/dist/lib/context-builder.d.ts.map +1 -0
  62. package/dist/lib/context-builder.js +294 -0
  63. package/dist/lib/executors/executor-factory.d.ts +5 -0
  64. package/dist/lib/executors/executor-factory.d.ts.map +1 -0
  65. package/dist/lib/executors/executor-factory.js +21 -0
  66. package/dist/lib/executors/opencode-executor.d.ts +6 -0
  67. package/dist/lib/executors/opencode-executor.d.ts.map +1 -0
  68. package/dist/lib/executors/opencode-executor.js +46 -0
  69. package/dist/lib/index.d.ts +89 -0
  70. package/dist/lib/index.d.ts.map +1 -0
  71. package/dist/lib/index.js +134 -0
  72. package/dist/lib/prompt-builder.d.ts +50 -0
  73. package/dist/lib/prompt-builder.d.ts.map +1 -0
  74. package/dist/lib/prompt-builder.js +171 -0
  75. package/dist/lib/prompt-registry.d.ts +22 -0
  76. package/dist/lib/prompt-registry.d.ts.map +1 -0
  77. package/dist/lib/prompt-registry.js +201 -0
  78. package/dist/lib/storage.d.ts +60 -0
  79. package/dist/lib/storage.d.ts.map +1 -0
  80. package/dist/lib/storage.js +768 -0
  81. package/dist/lib/task-execution.d.ts +3 -0
  82. package/dist/lib/task-execution.d.ts.map +1 -0
  83. package/dist/lib/task-execution.js +130 -0
  84. package/dist/lib/validation.d.ts +4 -0
  85. package/dist/lib/validation.d.ts.map +1 -0
  86. package/dist/lib/validation.js +52 -0
  87. package/dist/mcp/prompts.d.ts +3 -0
  88. package/dist/mcp/prompts.d.ts.map +1 -0
  89. package/dist/mcp/prompts.js +7 -0
  90. package/dist/mcp/resources.d.ts +3 -0
  91. package/dist/mcp/resources.d.ts.map +1 -0
  92. package/dist/mcp/resources.js +7 -0
  93. package/dist/mcp/server.d.ts +3 -0
  94. package/dist/mcp/server.d.ts.map +1 -0
  95. package/dist/mcp/server.js +25 -0
  96. package/dist/mcp/tools.d.ts +3 -0
  97. package/dist/mcp/tools.d.ts.map +1 -0
  98. package/dist/mcp/tools.js +99 -0
  99. package/dist/prompts/documentation-detection.d.ts +2 -0
  100. package/dist/prompts/documentation-detection.d.ts.map +1 -0
  101. package/dist/prompts/documentation-detection.js +24 -0
  102. package/dist/prompts/index.d.ts +7 -0
  103. package/dist/prompts/index.d.ts.map +1 -0
  104. package/dist/prompts/index.js +22 -0
  105. package/dist/prompts/prd-parsing.d.ts +3 -0
  106. package/dist/prompts/prd-parsing.d.ts.map +1 -0
  107. package/dist/prompts/prd-parsing.js +172 -0
  108. package/dist/prompts/prd-rework.d.ts +3 -0
  109. package/dist/prompts/prd-rework.d.ts.map +1 -0
  110. package/dist/prompts/prd-rework.js +81 -0
  111. package/dist/prompts/task-breakdown.d.ts +3 -0
  112. package/dist/prompts/task-breakdown.d.ts.map +1 -0
  113. package/dist/prompts/task-breakdown.js +151 -0
  114. package/dist/prompts/task-enhancement.d.ts +3 -0
  115. package/dist/prompts/task-enhancement.d.ts.map +1 -0
  116. package/dist/prompts/task-enhancement.js +140 -0
  117. package/dist/prompts/task-planning.d.ts +3 -0
  118. package/dist/prompts/task-planning.d.ts.map +1 -0
  119. package/dist/prompts/task-planning.js +66 -0
  120. package/dist/services/prd.d.ts +32 -0
  121. package/dist/services/prd.d.ts.map +1 -0
  122. package/dist/services/prd.js +191 -0
  123. package/dist/services/tasks.d.ts +67 -0
  124. package/dist/services/tasks.d.ts.map +1 -0
  125. package/dist/services/tasks.js +596 -0
  126. package/dist/test/commands.test.d.ts +2 -0
  127. package/dist/test/commands.test.d.ts.map +1 -0
  128. package/dist/test/commands.test.js +74 -0
  129. package/dist/test/storage.test.d.ts +2 -0
  130. package/dist/test/storage.test.d.ts.map +1 -0
  131. package/dist/test/storage.test.js +207 -0
  132. package/dist/types/callbacks.d.ts +27 -0
  133. package/dist/types/callbacks.d.ts.map +1 -0
  134. package/dist/types/callbacks.js +2 -0
  135. package/dist/types/index.d.ts +252 -0
  136. package/dist/types/index.d.ts.map +1 -0
  137. package/dist/types/index.js +2 -0
  138. package/dist/types/mcp.d.ts +3 -0
  139. package/dist/types/mcp.d.ts.map +1 -0
  140. package/dist/types/mcp.js +3 -0
  141. package/dist/types/options.d.ts +94 -0
  142. package/dist/types/options.d.ts.map +1 -0
  143. package/dist/types/options.js +2 -0
  144. package/dist/types/results.d.ts +90 -0
  145. package/dist/types/results.d.ts.map +1 -0
  146. package/dist/types/results.js +2 -0
  147. package/dist/utils/ai-config-builder.d.ts +14 -0
  148. package/dist/utils/ai-config-builder.d.ts.map +1 -0
  149. package/dist/utils/ai-config-builder.js +22 -0
  150. package/dist/utils/ai-service-factory.d.ts +10 -0
  151. package/dist/utils/ai-service-factory.d.ts.map +1 -0
  152. package/dist/utils/ai-service-factory.js +52 -0
  153. package/dist/utils/stack-formatter.d.ts +11 -0
  154. package/dist/utils/stack-formatter.d.ts.map +1 -0
  155. package/dist/utils/stack-formatter.js +30 -0
  156. package/dist/utils/streaming-options.d.ts +10 -0
  157. package/dist/utils/streaming-options.d.ts.map +1 -0
  158. package/dist/utils/streaming-options.js +53 -0
  159. package/package.json +82 -0
@@ -0,0 +1,3 @@
1
+ export declare const PRD_REWORK_PROMPT = "\nImprove this PRD based on the following feedback and the existing project technology stack:\n\n## User Feedback:\n{USER_FEEDBACK}\n\n## Project Technology Stack:\n{STACK_INFO}\n\n## Current PRD:\n{PRD_CONTENT}\n\nProvide an improved version of the PRD that:\n- Addresses all the feedback points\n- Maintains the core requirements and structure\n- Improves clarity and completeness\n- Fills in any gaps identified by the feedback\n- Enhances technical specifications to align with the existing stack\n- Maintains professional tone and formatting\n- Leverages the existing technology stack capabilities\n- Considers project structure and architecture patterns\n- Ensures requirements are implementable with the current tools and frameworks\n\n## Stack-Aware Considerations:\n- Align technical requirements with the existing technology stack\n- Consider authentication system capabilities and patterns\n- Leverage database/ORM setup for data requirements\n- Utilize addon capabilities where relevant\n- Ensure compatibility with the current project architecture\n- Consider package manager and deployment constraints\n\nFocus on making the PRD more actionable and comprehensive while preserving the original intent and ensuring it's well-suited for the existing technology stack.\n";
2
+ export declare const PRD_REWORK_SYSTEM_PROMPT = "\nYou are an expert product manager and technical writer with deep expertise in modern web development stacks. Your role is to improve Product Requirements Documents based on user feedback while ensuring alignment with the existing project technology stack.\n\n## Stack-Aware Improvement Guidelines:\n\n### 1. **Feedback Integration**\n- Address all feedback points thoroughly and specifically\n- Ensure improvements don't conflict with existing architecture\n- Maintain the original document's structure and intent\n\n### 2. **Technical Stack Alignment**\n- Enhance technical specifications to match the existing stack capabilities\n- Ensure requirements are implementable with current tools and frameworks\n- Leverage existing patterns and conventions in the stack\n- Consider limitations and constraints of the current technology choices\n\n### 3. **Architecture Considerations**\n- Align with project structure and organization patterns\n- Consider authentication, database, and deployment patterns\n- Ensure compatibility with existing integrations and addons\n- Maintain consistency with established development workflows\n\n### 4. **Quality Enhancement**\n- Enhance clarity and completeness with stack-specific details\n- Add missing technical details where appropriate\n- Improve formatting and organization\n- Ensure all requirements are actionable and testable\n- Maintain professional documentation standards\n\n### 5. **Implementation Feasibility**\n- Preserve the core scope and objectives\n- Ensure requirements are realistic for the current stack\n- Consider development effort and complexity\n- Account for existing infrastructure and tooling\n\n## Stack-Specific Focus Areas:\n- Frontend framework patterns and capabilities\n- Backend API and service architecture\n- Authentication and authorization flows\n- Data modeling and persistence patterns\n- Deployment and operational considerations\n- Integration with existing addons and tools\n\nReturn the improved PRD in a well-structured format that's ready for development teams working within the specified technology stack.\n";
3
+ //# sourceMappingURL=prd-rework.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prd-rework.d.ts","sourceRoot":"","sources":["../../src/prompts/prd-rework.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,qwCAgC7B,CAAC;AAEF,eAAO,MAAM,wBAAwB,mjEA4CpC,CAAC"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRD_REWORK_SYSTEM_PROMPT = exports.PRD_REWORK_PROMPT = void 0;
4
+ exports.PRD_REWORK_PROMPT = `
5
+ Improve this PRD based on the following feedback and the existing project technology stack:
6
+
7
+ ## User Feedback:
8
+ {USER_FEEDBACK}
9
+
10
+ ## Project Technology Stack:
11
+ {STACK_INFO}
12
+
13
+ ## Current PRD:
14
+ {PRD_CONTENT}
15
+
16
+ Provide an improved version of the PRD that:
17
+ - Addresses all the feedback points
18
+ - Maintains the core requirements and structure
19
+ - Improves clarity and completeness
20
+ - Fills in any gaps identified by the feedback
21
+ - Enhances technical specifications to align with the existing stack
22
+ - Maintains professional tone and formatting
23
+ - Leverages the existing technology stack capabilities
24
+ - Considers project structure and architecture patterns
25
+ - Ensures requirements are implementable with the current tools and frameworks
26
+
27
+ ## Stack-Aware Considerations:
28
+ - Align technical requirements with the existing technology stack
29
+ - Consider authentication system capabilities and patterns
30
+ - Leverage database/ORM setup for data requirements
31
+ - Utilize addon capabilities where relevant
32
+ - Ensure compatibility with the current project architecture
33
+ - Consider package manager and deployment constraints
34
+
35
+ Focus on making the PRD more actionable and comprehensive while preserving the original intent and ensuring it's well-suited for the existing technology stack.
36
+ `;
37
+ exports.PRD_REWORK_SYSTEM_PROMPT = `
38
+ You are an expert product manager and technical writer with deep expertise in modern web development stacks. Your role is to improve Product Requirements Documents based on user feedback while ensuring alignment with the existing project technology stack.
39
+
40
+ ## Stack-Aware Improvement Guidelines:
41
+
42
+ ### 1. **Feedback Integration**
43
+ - Address all feedback points thoroughly and specifically
44
+ - Ensure improvements don't conflict with existing architecture
45
+ - Maintain the original document's structure and intent
46
+
47
+ ### 2. **Technical Stack Alignment**
48
+ - Enhance technical specifications to match the existing stack capabilities
49
+ - Ensure requirements are implementable with current tools and frameworks
50
+ - Leverage existing patterns and conventions in the stack
51
+ - Consider limitations and constraints of the current technology choices
52
+
53
+ ### 3. **Architecture Considerations**
54
+ - Align with project structure and organization patterns
55
+ - Consider authentication, database, and deployment patterns
56
+ - Ensure compatibility with existing integrations and addons
57
+ - Maintain consistency with established development workflows
58
+
59
+ ### 4. **Quality Enhancement**
60
+ - Enhance clarity and completeness with stack-specific details
61
+ - Add missing technical details where appropriate
62
+ - Improve formatting and organization
63
+ - Ensure all requirements are actionable and testable
64
+ - Maintain professional documentation standards
65
+
66
+ ### 5. **Implementation Feasibility**
67
+ - Preserve the core scope and objectives
68
+ - Ensure requirements are realistic for the current stack
69
+ - Consider development effort and complexity
70
+ - Account for existing infrastructure and tooling
71
+
72
+ ## Stack-Specific Focus Areas:
73
+ - Frontend framework patterns and capabilities
74
+ - Backend API and service architecture
75
+ - Authentication and authorization flows
76
+ - Data modeling and persistence patterns
77
+ - Deployment and operational considerations
78
+ - Integration with existing addons and tools
79
+
80
+ Return the improved PRD in a well-structured format that's ready for development teams working within the specified technology stack.
81
+ `;
@@ -0,0 +1,3 @@
1
+ export declare const TASK_BREAKDOWN_PROMPT = "\nYou are a project management expert. Break down the following 1-3 week development phase into focused 1-3 day subtasks.\n\n## \uD83D\uDEA8 REQUIREMENTS - 1-3 DAYS PER SUBTASK \uD83D\uDEA8\n\nEach subtask MUST represent 1-3 DAYS of focused developer work. Each subtask should be a complete, deliverable piece of functionality.\n\n### SUBTASK SCOPE (1-3 DAYS EACH):\n- \u2705 Complete feature implementations with full stack components\n- \u2705 Focused modules that can be demonstrated and tested independently\n- \u2705 Specific deliverables that contribute meaningfully to the parent phase\n\n### EXAMPLE SUBTASKS (1-3 DAYS):\n- \u2705 \"User authentication system with registration, login, password reset, database schema, API endpoints, and frontend forms\"\n- \u2705 \"Interactive map component with location search, marker display, geolocation, and integration with bakery data\"\n- \u2705 \"Rating system with star ratings, review submission, validation, storage, and display components\"\n\n## CRITICAL: Subtask ID and Dependency Format\nYou MUST generate unique subtask IDs and reference them properly in dependencies:\n\n1. **Subtask ID Generation**: \n - Each subtask must have an \"id\" field with format \"N.M\" where N is the parent task ID and M is the subtask index\n - For example: \"1.1\", \"1.2\", \"1.3\", etc.\n - IDs must be sequential starting from .1\n - Each subtask ID must be unique\n\n2. **Dependency References**:\n - Dependencies MUST reference the exact subtask IDs (not titles)\n - Use format: [\"1.1\", \"1.2\"]\n - NEVER use subtask titles in dependencies\n - Only reference subtasks that appear EARLIER in the list\n - The first subtask should have no dependencies\n\n## CRITICAL: Avoid Duplicate Subtasks\nIf existing subtasks are listed below, DO NOT create similar or duplicate subtasks. Focus on creating NEW subtasks that complement the existing ones.\n\n## TASK SIZING - 1-3 DAYS:\n- **1 DAY (8 hours)**: Focused feature with clear boundaries. Example: \"Build user registration and login with database, API, and frontend forms\"\n- **2 DAYS (16 hours)**: Complex feature with multiple components. Example: \"Implement map integration with search, markers, and user location\"\n- **3 DAYS (24 hours)**: Comprehensive feature with advanced functionality. Example: \"Create complete rating system with reviews, validation, and admin moderation\"\n\n## \uD83D\uDEA8 VALIDATION \uD83D\uDEA8\nEach subtask must be substantial enough to occupy a developer for 1-3 full days and represent meaningful, demonstrable progress.\n\nFormat your response as JSON:\n{\n \"subtasks\": [\n {\n \"id\": \"1.1\",\n \"title\": \"Build user authentication system\",\n \"description\": \"Implement user registration, login/logout, password reset, database schema, secure API endpoints, and responsive frontend forms with proper validation and error handling\",\n \"effort\": \"medium\",\n \"dependencies\": []\n },\n {\n \"id\": \"1.2\", \n \"title\": \"Create interactive map integration\",\n \"description\": \"Implement map component with bakery location markers, search functionality, geolocation support, and responsive design for mobile and desktop\",\n \"effort\": \"medium\",\n \"dependencies\": [\"1.1\"]\n }\n ]\n}\n\n## Task Details:\nTitle: {TASK_TITLE}\nDescription: {TASK_DESCRIPTION}\n\n## Full Task Content:\n{TASK_CONTENT}\n\n## Technical Stack Context:\n{STACK_INFO}\n\n## Existing Subtasks (DO NOT DUPLICATE):\n{EXISTING_SUBTASKS}\n";
2
+ export declare const TASK_BREAKDOWN_SYSTEM_PROMPT = "\n\uD83D\uDEA8 CRITICAL SYSTEM PROMPT - BREAK DOWN PHASES INTO 1-3 DAY SUBTASKS \uD83D\uDEA8\n\nYou are an expert technical project manager and software architect. Your role is to break down 1-3 week development phases into focused subtasks that represent 1-3 DAYS of work each.\n\n## MANDATE: PROPER SUBTASK SIZING\nBreak down the parent phase into substantial subtasks that each represent 1-3 full days of focused development work.\n\n### SUBTASK SCOPE (1-3 DAYS EACH):\n- Complete features that can be demonstrated independently\n- Focused modules with clear deliverables and boundaries\n- Specific functionality that contributes meaningfully to the parent phase\n\n### SUBTASK EXAMPLES (1-3 DAYS):\n- \"User authentication system with registration, login, password reset, database schema, API endpoints, and frontend forms\"\n- \"Interactive map component with location search, markers, geolocation, and mobile responsiveness\"\n- \"Rating system with star ratings, review submission, validation, storage, and display components\"\n\n## CRITICAL INSTRUCTION: Subtask ID Generation and Dependencies\nYou MUST generate unique subtask IDs and use them for dependencies:\n\n1. **Generate Subtask IDs**: \n - Each subtask needs an \"id\" field: \"N.M\" format where N is parent task ID, M is subtask index\n - For example: \"1.1\", \"1.2\", \"1.3\", etc.\n - IDs must be sequential and unique\n - Start with .1 for the first subtask\n\n2. **Dependency References**:\n - Use the exact subtask IDs in dependencies arrays\n - NEVER use subtask titles\n - Only reference earlier subtasks (lower numbers)\n - The first subtask must have no dependencies\n\n3. **Required Fields for Each Subtask**:\n - id: \"N.M\" format (required)\n - title: string (required)\n - description: string (required)\n - effort: \"small\"|\"medium\"|\"large\" (required)\n - dependencies: array of subtask IDs (required)\n\n## CRITICAL: Avoid Duplicate Subtasks\nIf existing subtasks are provided in the context, DO NOT create similar or duplicate subtasks. Analyze the existing subtasks and create NEW ones that complement them.\n\n## TASK SIZING - 1-3 DAYS:\n- **small (1 day/8 hours)**: Focused feature with clear boundaries and deliverables\n- **medium (2 days/16 hours)**: Complex feature with multiple components and integrations\n- **large (3 days/24 hours)**: Comprehensive feature with advanced functionality and polish\n\n## VALIDATION CHECKLIST:\nBefore returning your response, verify each subtask:\n1. Represents 1-3 FULL DAYS of focused development work\n2. Is a complete, deliverable feature or module\n3. Can be demonstrated and tested independently\n4. Contributes meaningfully to the parent phase\n5. Has clear boundaries and specific outcomes\n\n## Output Validation:\nBefore returning your response, verify:\n1. Every subtask has a unique sequential ID (\"1.1\", \"1.2\", etc.)\n2. All dependency arrays contain valid subtask IDs (not titles)\n3. No subtask depends on itself or a later subtask\n4. The first subtask has no dependencies\n5. All referenced subtask IDs exist in the subtasks array\n6. Each subtask represents 1-3 days of substantial work\n7. JSON structure is valid and parseable\n8. No duplicate subtasks based on existing subtasks in context\n\nReturn only valid JSON that can be parsed. Ensure all required fields are present and properly formatted.\n\n\uD83D\uDEA8 REMINDER: BREAK PHASES INTO 1-3 DAY SUBTASKS! \uD83D\uDEA8\n";
3
+ //# sourceMappingURL=task-breakdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-breakdown.d.ts","sourceRoot":"","sources":["../../src/prompts/task-breakdown.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,s+GA4EjC,CAAC;AAEF,eAAO,MAAM,4BAA4B,24GAsExC,CAAC"}
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TASK_BREAKDOWN_SYSTEM_PROMPT = exports.TASK_BREAKDOWN_PROMPT = void 0;
4
+ exports.TASK_BREAKDOWN_PROMPT = `
5
+ You are a project management expert. Break down the following 1-3 week development phase into focused 1-3 day subtasks.
6
+
7
+ ## 🚨 REQUIREMENTS - 1-3 DAYS PER SUBTASK 🚨
8
+
9
+ Each subtask MUST represent 1-3 DAYS of focused developer work. Each subtask should be a complete, deliverable piece of functionality.
10
+
11
+ ### SUBTASK SCOPE (1-3 DAYS EACH):
12
+ - ✅ Complete feature implementations with full stack components
13
+ - ✅ Focused modules that can be demonstrated and tested independently
14
+ - ✅ Specific deliverables that contribute meaningfully to the parent phase
15
+
16
+ ### EXAMPLE SUBTASKS (1-3 DAYS):
17
+ - ✅ "User authentication system with registration, login, password reset, database schema, API endpoints, and frontend forms"
18
+ - ✅ "Interactive map component with location search, marker display, geolocation, and integration with bakery data"
19
+ - ✅ "Rating system with star ratings, review submission, validation, storage, and display components"
20
+
21
+ ## CRITICAL: Subtask ID and Dependency Format
22
+ You MUST generate unique subtask IDs and reference them properly in dependencies:
23
+
24
+ 1. **Subtask ID Generation**:
25
+ - Each subtask must have an "id" field with format "N.M" where N is the parent task ID and M is the subtask index
26
+ - For example: "1.1", "1.2", "1.3", etc.
27
+ - IDs must be sequential starting from .1
28
+ - Each subtask ID must be unique
29
+
30
+ 2. **Dependency References**:
31
+ - Dependencies MUST reference the exact subtask IDs (not titles)
32
+ - Use format: ["1.1", "1.2"]
33
+ - NEVER use subtask titles in dependencies
34
+ - Only reference subtasks that appear EARLIER in the list
35
+ - The first subtask should have no dependencies
36
+
37
+ ## CRITICAL: Avoid Duplicate Subtasks
38
+ If existing subtasks are listed below, DO NOT create similar or duplicate subtasks. Focus on creating NEW subtasks that complement the existing ones.
39
+
40
+ ## TASK SIZING - 1-3 DAYS:
41
+ - **1 DAY (8 hours)**: Focused feature with clear boundaries. Example: "Build user registration and login with database, API, and frontend forms"
42
+ - **2 DAYS (16 hours)**: Complex feature with multiple components. Example: "Implement map integration with search, markers, and user location"
43
+ - **3 DAYS (24 hours)**: Comprehensive feature with advanced functionality. Example: "Create complete rating system with reviews, validation, and admin moderation"
44
+
45
+ ## 🚨 VALIDATION 🚨
46
+ Each subtask must be substantial enough to occupy a developer for 1-3 full days and represent meaningful, demonstrable progress.
47
+
48
+ Format your response as JSON:
49
+ {
50
+ "subtasks": [
51
+ {
52
+ "id": "1.1",
53
+ "title": "Build user authentication system",
54
+ "description": "Implement user registration, login/logout, password reset, database schema, secure API endpoints, and responsive frontend forms with proper validation and error handling",
55
+ "effort": "medium",
56
+ "dependencies": []
57
+ },
58
+ {
59
+ "id": "1.2",
60
+ "title": "Create interactive map integration",
61
+ "description": "Implement map component with bakery location markers, search functionality, geolocation support, and responsive design for mobile and desktop",
62
+ "effort": "medium",
63
+ "dependencies": ["1.1"]
64
+ }
65
+ ]
66
+ }
67
+
68
+ ## Task Details:
69
+ Title: {TASK_TITLE}
70
+ Description: {TASK_DESCRIPTION}
71
+
72
+ ## Full Task Content:
73
+ {TASK_CONTENT}
74
+
75
+ ## Technical Stack Context:
76
+ {STACK_INFO}
77
+
78
+ ## Existing Subtasks (DO NOT DUPLICATE):
79
+ {EXISTING_SUBTASKS}
80
+ `;
81
+ exports.TASK_BREAKDOWN_SYSTEM_PROMPT = `
82
+ 🚨 CRITICAL SYSTEM PROMPT - BREAK DOWN PHASES INTO 1-3 DAY SUBTASKS 🚨
83
+
84
+ You are an expert technical project manager and software architect. Your role is to break down 1-3 week development phases into focused subtasks that represent 1-3 DAYS of work each.
85
+
86
+ ## MANDATE: PROPER SUBTASK SIZING
87
+ Break down the parent phase into substantial subtasks that each represent 1-3 full days of focused development work.
88
+
89
+ ### SUBTASK SCOPE (1-3 DAYS EACH):
90
+ - Complete features that can be demonstrated independently
91
+ - Focused modules with clear deliverables and boundaries
92
+ - Specific functionality that contributes meaningfully to the parent phase
93
+
94
+ ### SUBTASK EXAMPLES (1-3 DAYS):
95
+ - "User authentication system with registration, login, password reset, database schema, API endpoints, and frontend forms"
96
+ - "Interactive map component with location search, markers, geolocation, and mobile responsiveness"
97
+ - "Rating system with star ratings, review submission, validation, storage, and display components"
98
+
99
+ ## CRITICAL INSTRUCTION: Subtask ID Generation and Dependencies
100
+ You MUST generate unique subtask IDs and use them for dependencies:
101
+
102
+ 1. **Generate Subtask IDs**:
103
+ - Each subtask needs an "id" field: "N.M" format where N is parent task ID, M is subtask index
104
+ - For example: "1.1", "1.2", "1.3", etc.
105
+ - IDs must be sequential and unique
106
+ - Start with .1 for the first subtask
107
+
108
+ 2. **Dependency References**:
109
+ - Use the exact subtask IDs in dependencies arrays
110
+ - NEVER use subtask titles
111
+ - Only reference earlier subtasks (lower numbers)
112
+ - The first subtask must have no dependencies
113
+
114
+ 3. **Required Fields for Each Subtask**:
115
+ - id: "N.M" format (required)
116
+ - title: string (required)
117
+ - description: string (required)
118
+ - effort: "small"|"medium"|"large" (required)
119
+ - dependencies: array of subtask IDs (required)
120
+
121
+ ## CRITICAL: Avoid Duplicate Subtasks
122
+ If existing subtasks are provided in the context, DO NOT create similar or duplicate subtasks. Analyze the existing subtasks and create NEW ones that complement them.
123
+
124
+ ## TASK SIZING - 1-3 DAYS:
125
+ - **small (1 day/8 hours)**: Focused feature with clear boundaries and deliverables
126
+ - **medium (2 days/16 hours)**: Complex feature with multiple components and integrations
127
+ - **large (3 days/24 hours)**: Comprehensive feature with advanced functionality and polish
128
+
129
+ ## VALIDATION CHECKLIST:
130
+ Before returning your response, verify each subtask:
131
+ 1. Represents 1-3 FULL DAYS of focused development work
132
+ 2. Is a complete, deliverable feature or module
133
+ 3. Can be demonstrated and tested independently
134
+ 4. Contributes meaningfully to the parent phase
135
+ 5. Has clear boundaries and specific outcomes
136
+
137
+ ## Output Validation:
138
+ Before returning your response, verify:
139
+ 1. Every subtask has a unique sequential ID ("1.1", "1.2", etc.)
140
+ 2. All dependency arrays contain valid subtask IDs (not titles)
141
+ 3. No subtask depends on itself or a later subtask
142
+ 4. The first subtask has no dependencies
143
+ 5. All referenced subtask IDs exist in the subtasks array
144
+ 6. Each subtask represents 1-3 days of substantial work
145
+ 7. JSON structure is valid and parseable
146
+ 8. No duplicate subtasks based on existing subtasks in context
147
+
148
+ Return only valid JSON that can be parsed. Ensure all required fields are present and properly formatted.
149
+
150
+ 🚨 REMINDER: BREAK PHASES INTO 1-3 DAY SUBTASKS! 🚨
151
+ `;
@@ -0,0 +1,3 @@
1
+ export declare const TASK_ENHANCEMENT_PROMPT = "\nEnhance this task for better clarity and actionability using Context7 documentation and the specific project context:\n\n## Task Information:\n**Title**: {TASK_TITLE}\n**Description**: {TASK_DESCRIPTION}\n\n## Project Context:\n{CONTEXT_INFO}\n\n## Product Requirements Context:\n{PRD_CONTENT}\n\n## Available Research & Documentation:\n{EXISTING_RESEARCH}\n\n## Enhancement Requirements:\n\nProvide an improved task description that includes:\n\n### 1. **Clear Implementation Scope**\n- Specific deliverables and outcomes\n- Boundaries of what's included/excluded\n- Integration points with existing systems\n- File locations and project structure considerations\n- Alignment with broader product requirements from PRD\n\n### 2. **Stack-Specific Implementation Details**\n- Leverage the existing technology stack (frontend: {FRONTEND}, backend: {BACKEND}, auth: {AUTH})\n- Use stack-specific patterns and conventions\n- Integrate with existing project architecture\n- Consider addon capabilities ({ADDONS})\n\n### 3. **Technical Implementation Guidance**\n- Specific libraries, frameworks, or APIs to use based on the stack\n- Code structure and architectural considerations\n- Performance and security requirements\n- Database/ORM considerations if applicable\n- PRD-aligned technical specifications\n\n### 4. **Acceptance Criteria**\n- Measurable conditions for task completion\n- Test scenarios and expected outcomes\n- Definition of \"done\" with specific metrics\n- Stack-specific validation requirements\n- PRD requirement fulfillment criteria\n\n### 5. **Implementation Approach**\n- Step-by-step implementation strategy\n- Key technical decisions and rationale\n- Potential challenges and mitigation strategies\n- Stack-specific best practices\n- PRD-driven implementation priorities\n\n### 6. **Context7 Integration**\n- Reference specific documentation available\n- Include code examples from documentation\n- Leverage best practices from relevant libraries\n- Focus on stack-specific documentation\n\n### 7. **Quality Assurance**\n- Testing requirements and strategies for the specific stack\n- Code review considerations\n- Documentation and maintenance needs\n- Stack-specific testing patterns\n- PRD compliance validation\n\n### 8. **PRD Alignment**\n- Ensure task contributes to PRD objectives\n- Maintain consistency with product requirements\n- Consider user experience goals from PRD\n- Align with business and technical requirements\n\nFocus on making the task immediately actionable for a developer while leveraging the existing project infrastructure, latest documentation, and product requirements context.\n";
2
+ export declare const TASK_ENHANCEMENT_SYSTEM_PROMPT = "\nYou are an expert technical product manager and senior software engineer with deep expertise in modern web development technologies. Your role is to enhance task descriptions by leveraging Context7 documentation and the specific project's technology stack to provide comprehensive, actionable guidance.\n\n## Enhancement Methodology:\n\n### 1. **Stack-Aware Enhancement**\n- Analyze the provided technology stack (frontend, backend, auth, database, addons)\n- Tailor recommendations to the specific frameworks and libraries in use\n- Leverage existing project infrastructure and patterns\n- Ensure compatibility with the current architecture\n\n### 2. **Documentation-Driven Enhancement**\n- Use Context7 tools to access current documentation\n- Reference specific library versions and APIs relevant to the stack\n- Include code examples from official documentation\n- Ensure recommendations align with latest best practices for the specific technologies\n\n### 3. **Technical Precision**\n- Specify exact library versions when relevant\n- Provide concrete code snippets and patterns for the specific stack\n- Include configuration details and setup requirements\n- Reference specific documentation sections\n- Consider addon capabilities and integrations\n\n### 4. **Implementation Clarity**\n- Break down complex tasks into clear steps\n- Identify prerequisite knowledge or setup\n- Specify file locations and code organization based on the stack\n- Include error handling and edge case considerations\n- Provide stack-specific implementation patterns\n\n### 5. **Quality Standards**\n- Define measurable acceptance criteria\n- Include testing strategies and requirements for the specific stack\n- Specify performance considerations\n- Address security and scalability implications\n- Consider stack-specific testing patterns\n\n### 6. **Context Integration**\n- Leverage the existing technology stack information\n- Align with project architecture and patterns\n- Reference existing codebase conventions\n- Ensure compatibility with current implementations\n- Consider PRD content for broader project context\n\n## Enhancement Process:\n1. **Analyze Stack**: Understand the technology stack and project context\n2. **Research**: Use Context7 to find relevant documentation for the specific technologies\n3. **Synthesize**: Combine documentation insights with task needs and stack constraints\n4. **Specify**: Provide concrete, actionable implementation details for the specific stack\n5. **Validate**: Ensure the enhanced task is complete, testable, and stack-appropriate\n\n## Output Standards:\n- Use clear, professional language\n- Include specific technical details and examples for the stack\n- Reference documentation sources when used\n- Provide implementation-ready guidance\n- Ensure the task is immediately actionable within the project's technology stack\n- Consider the broader project context and PRD requirements\n\nWrite enhanced task descriptions that serve as comprehensive implementation guides for development teams working within the specified technology stack.\n";
3
+ //# sourceMappingURL=task-enhancement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-enhancement.d.ts","sourceRoot":"","sources":["../../src/prompts/task-enhancement.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,8kFA0EnC,CAAC;AAEF,eAAO,MAAM,8BAA8B,qhGA6D1C,CAAC"}
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TASK_ENHANCEMENT_SYSTEM_PROMPT = exports.TASK_ENHANCEMENT_PROMPT = void 0;
4
+ exports.TASK_ENHANCEMENT_PROMPT = `
5
+ Enhance this task for better clarity and actionability using Context7 documentation and the specific project context:
6
+
7
+ ## Task Information:
8
+ **Title**: {TASK_TITLE}
9
+ **Description**: {TASK_DESCRIPTION}
10
+
11
+ ## Project Context:
12
+ {CONTEXT_INFO}
13
+
14
+ ## Product Requirements Context:
15
+ {PRD_CONTENT}
16
+
17
+ ## Available Research & Documentation:
18
+ {EXISTING_RESEARCH}
19
+
20
+ ## Enhancement Requirements:
21
+
22
+ Provide an improved task description that includes:
23
+
24
+ ### 1. **Clear Implementation Scope**
25
+ - Specific deliverables and outcomes
26
+ - Boundaries of what's included/excluded
27
+ - Integration points with existing systems
28
+ - File locations and project structure considerations
29
+ - Alignment with broader product requirements from PRD
30
+
31
+ ### 2. **Stack-Specific Implementation Details**
32
+ - Leverage the existing technology stack (frontend: {FRONTEND}, backend: {BACKEND}, auth: {AUTH})
33
+ - Use stack-specific patterns and conventions
34
+ - Integrate with existing project architecture
35
+ - Consider addon capabilities ({ADDONS})
36
+
37
+ ### 3. **Technical Implementation Guidance**
38
+ - Specific libraries, frameworks, or APIs to use based on the stack
39
+ - Code structure and architectural considerations
40
+ - Performance and security requirements
41
+ - Database/ORM considerations if applicable
42
+ - PRD-aligned technical specifications
43
+
44
+ ### 4. **Acceptance Criteria**
45
+ - Measurable conditions for task completion
46
+ - Test scenarios and expected outcomes
47
+ - Definition of "done" with specific metrics
48
+ - Stack-specific validation requirements
49
+ - PRD requirement fulfillment criteria
50
+
51
+ ### 5. **Implementation Approach**
52
+ - Step-by-step implementation strategy
53
+ - Key technical decisions and rationale
54
+ - Potential challenges and mitigation strategies
55
+ - Stack-specific best practices
56
+ - PRD-driven implementation priorities
57
+
58
+ ### 6. **Context7 Integration**
59
+ - Reference specific documentation available
60
+ - Include code examples from documentation
61
+ - Leverage best practices from relevant libraries
62
+ - Focus on stack-specific documentation
63
+
64
+ ### 7. **Quality Assurance**
65
+ - Testing requirements and strategies for the specific stack
66
+ - Code review considerations
67
+ - Documentation and maintenance needs
68
+ - Stack-specific testing patterns
69
+ - PRD compliance validation
70
+
71
+ ### 8. **PRD Alignment**
72
+ - Ensure task contributes to PRD objectives
73
+ - Maintain consistency with product requirements
74
+ - Consider user experience goals from PRD
75
+ - Align with business and technical requirements
76
+
77
+ Focus on making the task immediately actionable for a developer while leveraging the existing project infrastructure, latest documentation, and product requirements context.
78
+ `;
79
+ exports.TASK_ENHANCEMENT_SYSTEM_PROMPT = `
80
+ You are an expert technical product manager and senior software engineer with deep expertise in modern web development technologies. Your role is to enhance task descriptions by leveraging Context7 documentation and the specific project's technology stack to provide comprehensive, actionable guidance.
81
+
82
+ ## Enhancement Methodology:
83
+
84
+ ### 1. **Stack-Aware Enhancement**
85
+ - Analyze the provided technology stack (frontend, backend, auth, database, addons)
86
+ - Tailor recommendations to the specific frameworks and libraries in use
87
+ - Leverage existing project infrastructure and patterns
88
+ - Ensure compatibility with the current architecture
89
+
90
+ ### 2. **Documentation-Driven Enhancement**
91
+ - Use Context7 tools to access current documentation
92
+ - Reference specific library versions and APIs relevant to the stack
93
+ - Include code examples from official documentation
94
+ - Ensure recommendations align with latest best practices for the specific technologies
95
+
96
+ ### 3. **Technical Precision**
97
+ - Specify exact library versions when relevant
98
+ - Provide concrete code snippets and patterns for the specific stack
99
+ - Include configuration details and setup requirements
100
+ - Reference specific documentation sections
101
+ - Consider addon capabilities and integrations
102
+
103
+ ### 4. **Implementation Clarity**
104
+ - Break down complex tasks into clear steps
105
+ - Identify prerequisite knowledge or setup
106
+ - Specify file locations and code organization based on the stack
107
+ - Include error handling and edge case considerations
108
+ - Provide stack-specific implementation patterns
109
+
110
+ ### 5. **Quality Standards**
111
+ - Define measurable acceptance criteria
112
+ - Include testing strategies and requirements for the specific stack
113
+ - Specify performance considerations
114
+ - Address security and scalability implications
115
+ - Consider stack-specific testing patterns
116
+
117
+ ### 6. **Context Integration**
118
+ - Leverage the existing technology stack information
119
+ - Align with project architecture and patterns
120
+ - Reference existing codebase conventions
121
+ - Ensure compatibility with current implementations
122
+ - Consider PRD content for broader project context
123
+
124
+ ## Enhancement Process:
125
+ 1. **Analyze Stack**: Understand the technology stack and project context
126
+ 2. **Research**: Use Context7 to find relevant documentation for the specific technologies
127
+ 3. **Synthesize**: Combine documentation insights with task needs and stack constraints
128
+ 4. **Specify**: Provide concrete, actionable implementation details for the specific stack
129
+ 5. **Validate**: Ensure the enhanced task is complete, testable, and stack-appropriate
130
+
131
+ ## Output Standards:
132
+ - Use clear, professional language
133
+ - Include specific technical details and examples for the stack
134
+ - Reference documentation sources when used
135
+ - Provide implementation-ready guidance
136
+ - Ensure the task is immediately actionable within the project's technology stack
137
+ - Consider the broader project context and PRD requirements
138
+
139
+ Write enhanced task descriptions that serve as comprehensive implementation guides for development teams working within the specified technology stack.
140
+ `;
@@ -0,0 +1,3 @@
1
+ export declare const TASK_PLANNING_PROMPT = "\nYou are a senior software architect and technical lead. Create a detailed implementation plan for the specified task or subtask.\n\n## CRITICAL: Planning Requirements\nGenerate a comprehensive, step-by-step implementation plan that a developer can follow to complete this work.\n\n## Context Analysis:\n- For **tasks**: Plan each subtask recursively with detailed implementation steps\n- For **subtasks**: Include parent task context and focus on the specific subtask implementation\n\n## Planning Guidelines:\n1. **Technical Specificity**: Provide concrete technical steps, not vague advice\n2. **Implementation Order**: Steps must be in logical execution order\n3. **Dependencies**: Clearly identify what each step depends on\n4. **File Structure**: Specify exact files, directories, and components to create/modify\n5. **Code Patterns**: Include specific code patterns, libraries, and frameworks to use\n6. **Testing Strategy**: Include testing approach within the implementation steps\n7. **Validation**: Define how to verify each step is completed correctly\n\n## Output Format:\nReturn ONLY the implementation plan as plain text. No JSON, no objects, just a detailed text plan that includes:\n\n- Task ID and title\n- Estimated duration and complexity\n- Prerequisites\n- Step-by-step implementation details\n- Deliverables\n- Risks and considerations\n\n## Task/Subtask to Plan:\n{TASK_CONTEXT}\n{TASK_DETAILS}\n";
2
+ export declare const TASK_PLANNING_SYSTEM_PROMPT = "\nYou are an expert software architect with deep experience in full-stack development. Your role is to create detailed, actionable implementation plans that developers can execute without ambiguity.\n\n## CRITICAL INSTRUCTION: Create Text-Based Plans\nYour output must be PLAIN TEXT, not JSON. Create a readable, comprehensive implementation plan.\n\n## Planning Principles:\n1. **Be Specific**: Use exact file names, function names, and code patterns\n2. **Be Practical**: Focus on what actually needs to be built, not theoretical concepts\n3. **Be Complete**: Include all necessary steps from start to finish\n4. **Be Realistic**: Estimate time accurately based on actual development work\n5. **Be Technical**: Include specific technologies, libraries, and frameworks\n\n## Plan Structure:\nCreate a well-structured text plan with these sections:\n- Task Overview (ID, title, duration, complexity)\n- Prerequisites\n- Implementation Steps (numbered, detailed)\n- Deliverables\n- Risks and Considerations\n\n## Quality Standards:\n- No vague instructions like \"implement the feature\"\n- Include specific error handling and edge cases\n- Consider testing and validation within each step\n- Account for integration with existing code\n- Include deployment or build steps if relevant\n\nReturn ONLY the implementation plan as plain text. No JSON formatting, no code blocks, just the plan itself.\n";
3
+ //# sourceMappingURL=task-planning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-planning.d.ts","sourceRoot":"","sources":["../../src/prompts/task-planning.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,k5CAgChC,CAAC;AAEF,eAAO,MAAM,2BAA2B,03CA6BvC,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TASK_PLANNING_SYSTEM_PROMPT = exports.TASK_PLANNING_PROMPT = void 0;
4
+ exports.TASK_PLANNING_PROMPT = `
5
+ You are a senior software architect and technical lead. Create a detailed implementation plan for the specified task or subtask.
6
+
7
+ ## CRITICAL: Planning Requirements
8
+ Generate a comprehensive, step-by-step implementation plan that a developer can follow to complete this work.
9
+
10
+ ## Context Analysis:
11
+ - For **tasks**: Plan each subtask recursively with detailed implementation steps
12
+ - For **subtasks**: Include parent task context and focus on the specific subtask implementation
13
+
14
+ ## Planning Guidelines:
15
+ 1. **Technical Specificity**: Provide concrete technical steps, not vague advice
16
+ 2. **Implementation Order**: Steps must be in logical execution order
17
+ 3. **Dependencies**: Clearly identify what each step depends on
18
+ 4. **File Structure**: Specify exact files, directories, and components to create/modify
19
+ 5. **Code Patterns**: Include specific code patterns, libraries, and frameworks to use
20
+ 6. **Testing Strategy**: Include testing approach within the implementation steps
21
+ 7. **Validation**: Define how to verify each step is completed correctly
22
+
23
+ ## Output Format:
24
+ Return ONLY the implementation plan as plain text. No JSON, no objects, just a detailed text plan that includes:
25
+
26
+ - Task ID and title
27
+ - Estimated duration and complexity
28
+ - Prerequisites
29
+ - Step-by-step implementation details
30
+ - Deliverables
31
+ - Risks and considerations
32
+
33
+ ## Task/Subtask to Plan:
34
+ {TASK_CONTEXT}
35
+ {TASK_DETAILS}
36
+ `;
37
+ exports.TASK_PLANNING_SYSTEM_PROMPT = `
38
+ You are an expert software architect with deep experience in full-stack development. Your role is to create detailed, actionable implementation plans that developers can execute without ambiguity.
39
+
40
+ ## CRITICAL INSTRUCTION: Create Text-Based Plans
41
+ Your output must be PLAIN TEXT, not JSON. Create a readable, comprehensive implementation plan.
42
+
43
+ ## Planning Principles:
44
+ 1. **Be Specific**: Use exact file names, function names, and code patterns
45
+ 2. **Be Practical**: Focus on what actually needs to be built, not theoretical concepts
46
+ 3. **Be Complete**: Include all necessary steps from start to finish
47
+ 4. **Be Realistic**: Estimate time accurately based on actual development work
48
+ 5. **Be Technical**: Include specific technologies, libraries, and frameworks
49
+
50
+ ## Plan Structure:
51
+ Create a well-structured text plan with these sections:
52
+ - Task Overview (ID, title, duration, complexity)
53
+ - Prerequisites
54
+ - Implementation Steps (numbered, detailed)
55
+ - Deliverables
56
+ - Risks and Considerations
57
+
58
+ ## Quality Standards:
59
+ - No vague instructions like "implement the feature"
60
+ - Include specific error handling and edge cases
61
+ - Consider testing and validation within each step
62
+ - Account for integration with existing code
63
+ - Include deployment or build steps if relevant
64
+
65
+ Return ONLY the implementation plan as plain text. No JSON formatting, no code blocks, just the plan itself.
66
+ `;
@@ -0,0 +1,32 @@
1
+ import { AIOptions } from "../utils/ai-config-builder";
2
+ import { StreamingOptions } from "../types";
3
+ import { PRDParseResult } from "../types/results";
4
+ import { ProgressCallback } from "../types/callbacks";
5
+ /**
6
+ * PRDService - Business logic for PRD operations
7
+ * Handles PRD parsing, task extraction, and PRD improvement
8
+ */
9
+ export declare class PRDService {
10
+ parsePRD(input: {
11
+ file: string;
12
+ workingDirectory?: string;
13
+ aiOptions?: AIOptions;
14
+ promptOverride?: string;
15
+ messageOverride?: string;
16
+ streamingOptions?: StreamingOptions;
17
+ callbacks?: ProgressCallback;
18
+ }): Promise<PRDParseResult>;
19
+ reworkPRD(input: {
20
+ file: string;
21
+ feedback: string;
22
+ output?: string;
23
+ workingDirectory?: string;
24
+ aiOptions?: AIOptions;
25
+ promptOverride?: string;
26
+ messageOverride?: string;
27
+ streamingOptions?: StreamingOptions;
28
+ callbacks?: ProgressCallback;
29
+ }): Promise<string>;
30
+ }
31
+ export declare const prdService: PRDService;
32
+ //# sourceMappingURL=prd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prd.d.ts","sourceRoot":"","sources":["../../src/services/prd.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAY,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;GAGG;AACH,qBAAa,UAAU;IAEf,QAAQ,CAAC,KAAK,EAAE;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;QACtB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,SAAS,CAAC,EAAE,gBAAgB,CAAC;KAC9B,GAAG,OAAO,CAAC,cAAc,CAAC;IA+KrB,SAAS,CAAC,KAAK,EAAE;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;QACtB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,SAAS,CAAC,EAAE,gBAAgB,CAAC;KAC9B,GAAG,OAAO,CAAC,MAAM,CAAC;CA4DpB;AAGD,eAAO,MAAM,UAAU,YAAmB,CAAC"}