@pixelbyte-software/pixcode 1.30.2 → 1.31.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 (209) hide show
  1. package/LICENSE +718 -718
  2. package/README.de.md +248 -248
  3. package/README.ja.md +240 -240
  4. package/README.ko.md +240 -240
  5. package/README.md +295 -285
  6. package/README.ru.md +248 -248
  7. package/README.tr.md +250 -250
  8. package/README.zh-CN.md +240 -240
  9. package/dist/api-docs.html +879 -879
  10. package/dist/assets/index-BtOeB3cE.js +837 -0
  11. package/dist/assets/index-CDpePeIN.css +32 -0
  12. package/dist/assets/vendor-codemirror-CzYAOTxS.js +41 -0
  13. package/dist/clear-cache.html +85 -85
  14. package/dist/convert-icons.md +52 -52
  15. package/dist/favicon.png +0 -0
  16. package/dist/favicon.svg +7 -8
  17. package/dist/generate-icons.js +48 -48
  18. package/dist/icons/codex-white.svg +3 -3
  19. package/dist/icons/codex.svg +3 -3
  20. package/dist/icons/cursor-white.svg +11 -11
  21. package/dist/icons/icon-128x128.png +0 -0
  22. package/dist/icons/icon-128x128.svg +9 -12
  23. package/dist/icons/icon-144x144.png +0 -0
  24. package/dist/icons/icon-144x144.svg +9 -12
  25. package/dist/icons/icon-152x152.png +0 -0
  26. package/dist/icons/icon-152x152.svg +9 -12
  27. package/dist/icons/icon-192x192.png +0 -0
  28. package/dist/icons/icon-192x192.svg +9 -12
  29. package/dist/icons/icon-384x384.png +0 -0
  30. package/dist/icons/icon-384x384.svg +9 -12
  31. package/dist/icons/icon-512x512.png +0 -0
  32. package/dist/icons/icon-512x512.svg +9 -12
  33. package/dist/icons/icon-72x72.png +0 -0
  34. package/dist/icons/icon-72x72.svg +9 -12
  35. package/dist/icons/icon-96x96.png +0 -0
  36. package/dist/icons/icon-96x96.svg +9 -12
  37. package/dist/icons/icon-template.svg +9 -12
  38. package/dist/icons/qwen-ai-icon.png +0 -0
  39. package/dist/index.html +60 -50
  40. package/dist/logo.png +0 -0
  41. package/dist/logo.svg +11 -16
  42. package/dist/manifest.json +60 -60
  43. package/dist/sw.js +124 -124
  44. package/dist-server/server/claude-sdk.js +28 -5
  45. package/dist-server/server/claude-sdk.js.map +1 -1
  46. package/dist-server/server/cli.js +100 -97
  47. package/dist-server/server/cli.js.map +1 -1
  48. package/dist-server/server/daemon/manager.js +33 -33
  49. package/dist-server/server/daemon-manager.js +62 -62
  50. package/dist-server/server/database/db.js +114 -22
  51. package/dist-server/server/database/db.js.map +1 -1
  52. package/dist-server/server/database/schema.js +122 -89
  53. package/dist-server/server/database/schema.js.map +1 -1
  54. package/dist-server/server/gemini-cli.js +6 -1
  55. package/dist-server/server/gemini-cli.js.map +1 -1
  56. package/dist-server/server/index.js +346 -61
  57. package/dist-server/server/index.js.map +1 -1
  58. package/dist-server/server/modules/providers/list/claude/claude-auth.provider.js +29 -2
  59. package/dist-server/server/modules/providers/list/claude/claude-auth.provider.js.map +1 -1
  60. package/dist-server/server/modules/providers/list/codex/codex-auth.provider.js +22 -2
  61. package/dist-server/server/modules/providers/list/codex/codex-auth.provider.js.map +1 -1
  62. package/dist-server/server/modules/providers/list/cursor/cursor-auth.provider.js +2 -2
  63. package/dist-server/server/modules/providers/list/cursor/cursor-auth.provider.js.map +1 -1
  64. package/dist-server/server/modules/providers/list/gemini/gemini-auth.provider.js +14 -2
  65. package/dist-server/server/modules/providers/list/gemini/gemini-auth.provider.js.map +1 -1
  66. package/dist-server/server/modules/providers/list/qwen/qwen-auth.provider.js +132 -0
  67. package/dist-server/server/modules/providers/list/qwen/qwen-auth.provider.js.map +1 -0
  68. package/dist-server/server/modules/providers/list/qwen/qwen-mcp.provider.js +87 -0
  69. package/dist-server/server/modules/providers/list/qwen/qwen-mcp.provider.js.map +1 -0
  70. package/dist-server/server/modules/providers/list/qwen/qwen-sessions.provider.js +201 -0
  71. package/dist-server/server/modules/providers/list/qwen/qwen-sessions.provider.js.map +1 -0
  72. package/dist-server/server/modules/providers/list/qwen/qwen.provider.js +19 -0
  73. package/dist-server/server/modules/providers/list/qwen/qwen.provider.js.map +1 -0
  74. package/dist-server/server/modules/providers/provider.registry.js +2 -0
  75. package/dist-server/server/modules/providers/provider.registry.js.map +1 -1
  76. package/dist-server/server/modules/providers/provider.routes.js +478 -1
  77. package/dist-server/server/modules/providers/provider.routes.js.map +1 -1
  78. package/dist-server/server/modules/providers/shared/provider-configs.js +105 -0
  79. package/dist-server/server/modules/providers/shared/provider-configs.js.map +1 -0
  80. package/dist-server/server/projects.js +197 -6
  81. package/dist-server/server/projects.js.map +1 -1
  82. package/dist-server/server/qwen-code-cli.js +350 -0
  83. package/dist-server/server/qwen-code-cli.js.map +1 -0
  84. package/dist-server/server/qwen-response-handler.js +70 -0
  85. package/dist-server/server/qwen-response-handler.js.map +1 -0
  86. package/dist-server/server/routes/commands.js +25 -25
  87. package/dist-server/server/routes/git.js +17 -17
  88. package/dist-server/server/routes/network.js +116 -0
  89. package/dist-server/server/routes/network.js.map +1 -0
  90. package/dist-server/server/routes/projects.js +166 -1
  91. package/dist-server/server/routes/projects.js.map +1 -1
  92. package/dist-server/server/routes/qwen.js +23 -0
  93. package/dist-server/server/routes/qwen.js.map +1 -0
  94. package/dist-server/server/routes/taskmaster.js +419 -419
  95. package/dist-server/server/routes/telegram.js +119 -0
  96. package/dist-server/server/routes/telegram.js.map +1 -0
  97. package/dist-server/server/services/external-access.js +228 -0
  98. package/dist-server/server/services/external-access.js.map +1 -0
  99. package/dist-server/server/services/install-jobs.js +552 -0
  100. package/dist-server/server/services/install-jobs.js.map +1 -0
  101. package/dist-server/server/services/notification-orchestrator.js +19 -5
  102. package/dist-server/server/services/notification-orchestrator.js.map +1 -1
  103. package/dist-server/server/services/provider-credentials.js +154 -0
  104. package/dist-server/server/services/provider-credentials.js.map +1 -0
  105. package/dist-server/server/services/provider-models.js +218 -0
  106. package/dist-server/server/services/provider-models.js.map +1 -0
  107. package/dist-server/server/services/telegram/bot.js +259 -0
  108. package/dist-server/server/services/telegram/bot.js.map +1 -0
  109. package/dist-server/server/services/telegram/translations.js +160 -0
  110. package/dist-server/server/services/telegram/translations.js.map +1 -0
  111. package/dist-server/server/utils/port-access.js +196 -0
  112. package/dist-server/server/utils/port-access.js.map +1 -0
  113. package/dist-server/shared/modelConstants.js +18 -0
  114. package/dist-server/shared/modelConstants.js.map +1 -1
  115. package/package.json +177 -168
  116. package/scripts/fix-node-pty.js +67 -67
  117. package/server/claude-sdk.js +857 -834
  118. package/server/cli.js +940 -937
  119. package/server/constants/config.js +4 -4
  120. package/server/cursor-cli.js +342 -342
  121. package/server/daemon/manager.js +564 -564
  122. package/server/daemon-manager.js +920 -920
  123. package/server/database/db.js +696 -593
  124. package/server/database/schema.js +138 -102
  125. package/server/gemini-cli.js +475 -469
  126. package/server/gemini-response-handler.js +79 -79
  127. package/server/index.js +2854 -2556
  128. package/server/load-env.js +34 -34
  129. package/server/middleware/auth.js +132 -132
  130. package/server/modules/providers/list/claude/claude-auth.provider.ts +145 -123
  131. package/server/modules/providers/list/claude/claude-mcp.provider.ts +135 -135
  132. package/server/modules/providers/list/claude/claude-sessions.provider.ts +306 -306
  133. package/server/modules/providers/list/claude/claude.provider.ts +15 -15
  134. package/server/modules/providers/list/codex/codex-auth.provider.ts +115 -100
  135. package/server/modules/providers/list/codex/codex-mcp.provider.ts +135 -135
  136. package/server/modules/providers/list/codex/codex-sessions.provider.ts +319 -319
  137. package/server/modules/providers/list/codex/codex.provider.ts +15 -15
  138. package/server/modules/providers/list/cursor/cursor-auth.provider.ts +143 -143
  139. package/server/modules/providers/list/cursor/cursor-mcp.provider.ts +108 -108
  140. package/server/modules/providers/list/cursor/cursor-sessions.provider.ts +421 -421
  141. package/server/modules/providers/list/cursor/cursor.provider.ts +15 -15
  142. package/server/modules/providers/list/gemini/gemini-auth.provider.ts +163 -151
  143. package/server/modules/providers/list/gemini/gemini-mcp.provider.ts +110 -110
  144. package/server/modules/providers/list/gemini/gemini-sessions.provider.ts +227 -227
  145. package/server/modules/providers/list/gemini/gemini.provider.ts +15 -15
  146. package/server/modules/providers/list/qwen/qwen-auth.provider.ts +145 -0
  147. package/server/modules/providers/list/qwen/qwen-mcp.provider.ts +114 -0
  148. package/server/modules/providers/list/qwen/qwen-sessions.provider.ts +218 -0
  149. package/server/modules/providers/list/qwen/qwen.provider.ts +21 -0
  150. package/server/modules/providers/provider.registry.ts +38 -36
  151. package/server/modules/providers/provider.routes.ts +781 -217
  152. package/server/modules/providers/services/mcp.service.ts +94 -94
  153. package/server/modules/providers/services/provider-auth.service.ts +26 -26
  154. package/server/modules/providers/services/sessions.service.ts +45 -45
  155. package/server/modules/providers/shared/base/abstract.provider.ts +20 -20
  156. package/server/modules/providers/shared/mcp/mcp.provider.ts +151 -151
  157. package/server/modules/providers/shared/provider-configs.ts +118 -0
  158. package/server/modules/providers/tests/mcp.test.ts +293 -293
  159. package/server/openai-codex.js +426 -426
  160. package/server/projects.js +2993 -2792
  161. package/server/qwen-code-cli.js +392 -0
  162. package/server/qwen-response-handler.js +73 -0
  163. package/server/routes/agent.js +1245 -1245
  164. package/server/routes/auth.js +134 -134
  165. package/server/routes/codex.js +19 -19
  166. package/server/routes/commands.js +554 -554
  167. package/server/routes/cursor.js +52 -52
  168. package/server/routes/gemini.js +24 -24
  169. package/server/routes/git.js +1488 -1488
  170. package/server/routes/mcp-utils.js +31 -31
  171. package/server/routes/messages.js +61 -61
  172. package/server/routes/network.js +128 -0
  173. package/server/routes/plugins.js +307 -307
  174. package/server/routes/projects.js +795 -627
  175. package/server/routes/qwen.js +27 -0
  176. package/server/routes/settings.js +286 -286
  177. package/server/routes/taskmaster.js +1471 -1471
  178. package/server/routes/telegram.js +125 -0
  179. package/server/routes/user.js +123 -123
  180. package/server/services/external-access.js +240 -0
  181. package/server/services/install-jobs.js +569 -0
  182. package/server/services/notification-orchestrator.js +242 -227
  183. package/server/services/provider-credentials.js +151 -0
  184. package/server/services/provider-models.js +225 -0
  185. package/server/services/telegram/bot.js +280 -0
  186. package/server/services/telegram/translations.js +170 -0
  187. package/server/services/vapid-keys.js +35 -35
  188. package/server/sessionManager.js +225 -225
  189. package/server/shared/interfaces.ts +54 -54
  190. package/server/shared/types.ts +172 -172
  191. package/server/shared/utils.ts +193 -193
  192. package/server/tsconfig.json +36 -36
  193. package/server/utils/colors.js +21 -21
  194. package/server/utils/commandParser.js +303 -303
  195. package/server/utils/frontmatter.js +18 -18
  196. package/server/utils/gitConfig.js +34 -34
  197. package/server/utils/mcp-detector.js +147 -147
  198. package/server/utils/plugin-loader.js +457 -457
  199. package/server/utils/plugin-process-manager.js +184 -184
  200. package/server/utils/port-access.js +209 -0
  201. package/server/utils/runtime-paths.js +37 -37
  202. package/server/utils/taskmaster-websocket.js +128 -128
  203. package/server/utils/url-detection.js +71 -71
  204. package/server/vite-daemon.js +78 -78
  205. package/shared/modelConstants.js +117 -97
  206. package/shared/networkHosts.js +22 -22
  207. package/dist/assets/index-C2c9QNwK.css +0 -32
  208. package/dist/assets/index-DyXDZED-.js +0 -1277
  209. package/dist/assets/vendor-codemirror-NA4v81it.js +0 -41
@@ -819,74 +819,74 @@ router.get('/prd-templates', async (req, res) => {
819
819
  name: 'Web Application',
820
820
  description: 'Template for web application projects with frontend and backend components',
821
821
  category: 'web',
822
- content: `# Product Requirements Document - Web Application
823
-
824
- ## Overview
825
- **Product Name:** [Your App Name]
826
- **Version:** 1.0
827
- **Date:** ${new Date().toISOString().split('T')[0]}
828
- **Author:** [Your Name]
829
-
830
- ## Executive Summary
831
- Brief description of what this web application will do and why it's needed.
832
-
833
- ## Product Goals
834
- - Goal 1: [Specific measurable goal]
835
- - Goal 2: [Specific measurable goal]
836
- - Goal 3: [Specific measurable goal]
837
-
838
- ## User Stories
839
- ### Core Features
840
- 1. **User Registration & Authentication**
841
- - As a user, I want to create an account so I can access personalized features
842
- - As a user, I want to log in securely so my data is protected
843
- - As a user, I want to reset my password if I forget it
844
-
845
- 2. **Main Application Features**
846
- - As a user, I want to [core feature 1] so I can [benefit]
847
- - As a user, I want to [core feature 2] so I can [benefit]
848
- - As a user, I want to [core feature 3] so I can [benefit]
849
-
850
- 3. **User Interface**
851
- - As a user, I want a responsive design so I can use the app on any device
852
- - As a user, I want intuitive navigation so I can easily find features
853
-
854
- ## Technical Requirements
855
- ### Frontend
856
- - Framework: React/Vue/Angular or vanilla JavaScript
857
- - Styling: CSS framework (Tailwind, Bootstrap, etc.)
858
- - State Management: Redux/Vuex/Context API
859
- - Build Tools: Webpack/Vite
860
- - Testing: Jest/Vitest for unit tests
861
-
862
- ### Backend
863
- - Runtime: Node.js/Python/Java
864
- - Database: PostgreSQL/MySQL/MongoDB
865
- - API: RESTful API or GraphQL
866
- - Authentication: JWT tokens
867
- - Testing: Integration and unit tests
868
-
869
- ### Infrastructure
870
- - Hosting: Cloud provider (AWS, Azure, GCP)
871
- - CI/CD: GitHub Actions/GitLab CI
872
- - Monitoring: Application monitoring tools
873
- - Security: HTTPS, input validation, rate limiting
874
-
875
- ## Success Metrics
876
- - User engagement metrics
877
- - Performance benchmarks (load time < 2s)
878
- - Error rates < 1%
879
- - User satisfaction scores
880
-
881
- ## Timeline
882
- - Phase 1: Core functionality (4-6 weeks)
883
- - Phase 2: Advanced features (2-4 weeks)
884
- - Phase 3: Polish and launch (2 weeks)
885
-
886
- ## Constraints & Assumptions
887
- - Budget constraints
888
- - Technical limitations
889
- - Team size and expertise
822
+ content: `# Product Requirements Document - Web Application
823
+
824
+ ## Overview
825
+ **Product Name:** [Your App Name]
826
+ **Version:** 1.0
827
+ **Date:** ${new Date().toISOString().split('T')[0]}
828
+ **Author:** [Your Name]
829
+
830
+ ## Executive Summary
831
+ Brief description of what this web application will do and why it's needed.
832
+
833
+ ## Product Goals
834
+ - Goal 1: [Specific measurable goal]
835
+ - Goal 2: [Specific measurable goal]
836
+ - Goal 3: [Specific measurable goal]
837
+
838
+ ## User Stories
839
+ ### Core Features
840
+ 1. **User Registration & Authentication**
841
+ - As a user, I want to create an account so I can access personalized features
842
+ - As a user, I want to log in securely so my data is protected
843
+ - As a user, I want to reset my password if I forget it
844
+
845
+ 2. **Main Application Features**
846
+ - As a user, I want to [core feature 1] so I can [benefit]
847
+ - As a user, I want to [core feature 2] so I can [benefit]
848
+ - As a user, I want to [core feature 3] so I can [benefit]
849
+
850
+ 3. **User Interface**
851
+ - As a user, I want a responsive design so I can use the app on any device
852
+ - As a user, I want intuitive navigation so I can easily find features
853
+
854
+ ## Technical Requirements
855
+ ### Frontend
856
+ - Framework: React/Vue/Angular or vanilla JavaScript
857
+ - Styling: CSS framework (Tailwind, Bootstrap, etc.)
858
+ - State Management: Redux/Vuex/Context API
859
+ - Build Tools: Webpack/Vite
860
+ - Testing: Jest/Vitest for unit tests
861
+
862
+ ### Backend
863
+ - Runtime: Node.js/Python/Java
864
+ - Database: PostgreSQL/MySQL/MongoDB
865
+ - API: RESTful API or GraphQL
866
+ - Authentication: JWT tokens
867
+ - Testing: Integration and unit tests
868
+
869
+ ### Infrastructure
870
+ - Hosting: Cloud provider (AWS, Azure, GCP)
871
+ - CI/CD: GitHub Actions/GitLab CI
872
+ - Monitoring: Application monitoring tools
873
+ - Security: HTTPS, input validation, rate limiting
874
+
875
+ ## Success Metrics
876
+ - User engagement metrics
877
+ - Performance benchmarks (load time < 2s)
878
+ - Error rates < 1%
879
+ - User satisfaction scores
880
+
881
+ ## Timeline
882
+ - Phase 1: Core functionality (4-6 weeks)
883
+ - Phase 2: Advanced features (2-4 weeks)
884
+ - Phase 3: Polish and launch (2 weeks)
885
+
886
+ ## Constraints & Assumptions
887
+ - Budget constraints
888
+ - Technical limitations
889
+ - Team size and expertise
890
890
  - Timeline constraints`
891
891
  },
892
892
  {
@@ -894,102 +894,102 @@ Brief description of what this web application will do and why it's needed.
894
894
  name: 'REST API',
895
895
  description: 'Template for REST API development projects',
896
896
  category: 'backend',
897
- content: `# Product Requirements Document - REST API
898
-
899
- ## Overview
900
- **API Name:** [Your API Name]
901
- **Version:** v1.0
902
- **Date:** ${new Date().toISOString().split('T')[0]}
903
- **Author:** [Your Name]
904
-
905
- ## Executive Summary
906
- Description of the API's purpose, target users, and primary use cases.
907
-
908
- ## API Goals
909
- - Goal 1: Provide secure data access
910
- - Goal 2: Ensure scalable architecture
911
- - Goal 3: Maintain high availability (99.9% uptime)
912
-
913
- ## Functional Requirements
914
- ### Core Endpoints
915
- 1. **Authentication Endpoints**
916
- - POST /api/auth/login - User authentication
917
- - POST /api/auth/logout - User logout
918
- - POST /api/auth/refresh - Token refresh
919
- - POST /api/auth/register - User registration
920
-
921
- 2. **Data Management Endpoints**
922
- - GET /api/resources - List resources with pagination
923
- - GET /api/resources/{id} - Get specific resource
924
- - POST /api/resources - Create new resource
925
- - PUT /api/resources/{id} - Update existing resource
926
- - DELETE /api/resources/{id} - Delete resource
927
-
928
- 3. **Administrative Endpoints**
929
- - GET /api/admin/users - Manage users (admin only)
930
- - GET /api/admin/analytics - System analytics
931
- - POST /api/admin/backup - Trigger system backup
932
-
933
- ## Technical Requirements
934
- ### API Design
935
- - RESTful architecture following OpenAPI 3.0 specification
936
- - JSON request/response format
937
- - Consistent error response format
938
- - API versioning strategy
939
-
940
- ### Authentication & Security
941
- - JWT token-based authentication
942
- - Role-based access control (RBAC)
943
- - Rate limiting (100 requests/minute per user)
944
- - Input validation and sanitization
945
- - HTTPS enforcement
946
-
947
- ### Database
948
- - Database type: [PostgreSQL/MongoDB/MySQL]
949
- - Connection pooling
950
- - Database migrations
951
- - Backup and recovery procedures
952
-
953
- ### Performance Requirements
954
- - Response time: < 200ms for 95% of requests
955
- - Throughput: 1000+ requests/second
956
- - Concurrent users: 10,000+
957
- - Database query optimization
958
-
959
- ### Documentation
960
- - Auto-generated API documentation (Swagger/OpenAPI)
961
- - Code examples for common use cases
962
- - SDK development for major languages
963
- - Postman collection for testing
964
-
965
- ## Error Handling
966
- - Standardized error codes and messages
967
- - Proper HTTP status codes
968
- - Detailed error logging
969
- - Graceful degradation strategies
970
-
971
- ## Testing Strategy
972
- - Unit tests (80%+ coverage)
973
- - Integration tests for all endpoints
974
- - Load testing and performance testing
975
- - Security testing (OWASP compliance)
976
-
977
- ## Monitoring & Logging
978
- - Application performance monitoring
979
- - Error tracking and alerting
980
- - Access logs and audit trails
981
- - Health check endpoints
982
-
983
- ## Deployment
984
- - Containerized deployment (Docker)
985
- - CI/CD pipeline setup
986
- - Environment management (dev, staging, prod)
987
- - Blue-green deployment strategy
988
-
989
- ## Success Metrics
990
- - API uptime > 99.9%
991
- - Average response time < 200ms
992
- - Zero critical security vulnerabilities
897
+ content: `# Product Requirements Document - REST API
898
+
899
+ ## Overview
900
+ **API Name:** [Your API Name]
901
+ **Version:** v1.0
902
+ **Date:** ${new Date().toISOString().split('T')[0]}
903
+ **Author:** [Your Name]
904
+
905
+ ## Executive Summary
906
+ Description of the API's purpose, target users, and primary use cases.
907
+
908
+ ## API Goals
909
+ - Goal 1: Provide secure data access
910
+ - Goal 2: Ensure scalable architecture
911
+ - Goal 3: Maintain high availability (99.9% uptime)
912
+
913
+ ## Functional Requirements
914
+ ### Core Endpoints
915
+ 1. **Authentication Endpoints**
916
+ - POST /api/auth/login - User authentication
917
+ - POST /api/auth/logout - User logout
918
+ - POST /api/auth/refresh - Token refresh
919
+ - POST /api/auth/register - User registration
920
+
921
+ 2. **Data Management Endpoints**
922
+ - GET /api/resources - List resources with pagination
923
+ - GET /api/resources/{id} - Get specific resource
924
+ - POST /api/resources - Create new resource
925
+ - PUT /api/resources/{id} - Update existing resource
926
+ - DELETE /api/resources/{id} - Delete resource
927
+
928
+ 3. **Administrative Endpoints**
929
+ - GET /api/admin/users - Manage users (admin only)
930
+ - GET /api/admin/analytics - System analytics
931
+ - POST /api/admin/backup - Trigger system backup
932
+
933
+ ## Technical Requirements
934
+ ### API Design
935
+ - RESTful architecture following OpenAPI 3.0 specification
936
+ - JSON request/response format
937
+ - Consistent error response format
938
+ - API versioning strategy
939
+
940
+ ### Authentication & Security
941
+ - JWT token-based authentication
942
+ - Role-based access control (RBAC)
943
+ - Rate limiting (100 requests/minute per user)
944
+ - Input validation and sanitization
945
+ - HTTPS enforcement
946
+
947
+ ### Database
948
+ - Database type: [PostgreSQL/MongoDB/MySQL]
949
+ - Connection pooling
950
+ - Database migrations
951
+ - Backup and recovery procedures
952
+
953
+ ### Performance Requirements
954
+ - Response time: < 200ms for 95% of requests
955
+ - Throughput: 1000+ requests/second
956
+ - Concurrent users: 10,000+
957
+ - Database query optimization
958
+
959
+ ### Documentation
960
+ - Auto-generated API documentation (Swagger/OpenAPI)
961
+ - Code examples for common use cases
962
+ - SDK development for major languages
963
+ - Postman collection for testing
964
+
965
+ ## Error Handling
966
+ - Standardized error codes and messages
967
+ - Proper HTTP status codes
968
+ - Detailed error logging
969
+ - Graceful degradation strategies
970
+
971
+ ## Testing Strategy
972
+ - Unit tests (80%+ coverage)
973
+ - Integration tests for all endpoints
974
+ - Load testing and performance testing
975
+ - Security testing (OWASP compliance)
976
+
977
+ ## Monitoring & Logging
978
+ - Application performance monitoring
979
+ - Error tracking and alerting
980
+ - Access logs and audit trails
981
+ - Health check endpoints
982
+
983
+ ## Deployment
984
+ - Containerized deployment (Docker)
985
+ - CI/CD pipeline setup
986
+ - Environment management (dev, staging, prod)
987
+ - Blue-green deployment strategy
988
+
989
+ ## Success Metrics
990
+ - API uptime > 99.9%
991
+ - Average response time < 200ms
992
+ - Zero critical security vulnerabilities
993
993
  - Developer adoption metrics`
994
994
  },
995
995
  {
@@ -997,115 +997,115 @@ Description of the API's purpose, target users, and primary use cases.
997
997
  name: 'Mobile Application',
998
998
  description: 'Template for mobile app development projects (iOS/Android)',
999
999
  category: 'mobile',
1000
- content: `# Product Requirements Document - Mobile Application
1001
-
1002
- ## Overview
1003
- **App Name:** [Your App Name]
1004
- **Platform:** iOS / Android / Cross-platform
1005
- **Version:** 1.0
1006
- **Date:** ${new Date().toISOString().split('T')[0]}
1007
- **Author:** [Your Name]
1008
-
1009
- ## Executive Summary
1010
- Brief description of the mobile app's purpose, target audience, and key value proposition.
1011
-
1012
- ## Product Goals
1013
- - Goal 1: [Specific user engagement goal]
1014
- - Goal 2: [Specific functionality goal]
1015
- - Goal 3: [Specific performance goal]
1016
-
1017
- ## User Stories
1018
- ### Core Features
1019
- 1. **Onboarding & Authentication**
1020
- - As a new user, I want a simple onboarding process
1021
- - As a user, I want to sign up with email or social media
1022
- - As a user, I want biometric authentication for security
1023
-
1024
- 2. **Main App Features**
1025
- - As a user, I want [core feature 1] accessible from home screen
1026
- - As a user, I want [core feature 2] to work offline
1027
- - As a user, I want to sync data across devices
1028
-
1029
- 3. **User Experience**
1030
- - As a user, I want intuitive navigation patterns
1031
- - As a user, I want fast loading times
1032
- - As a user, I want accessibility features
1033
-
1034
- ## Technical Requirements
1035
- ### Mobile Development
1036
- - **Cross-platform:** React Native / Flutter / Xamarin
1037
- - **Native:** Swift (iOS) / Kotlin (Android)
1038
- - **State Management:** Redux / MobX / Provider
1039
- - **Navigation:** React Navigation / Flutter Navigation
1040
-
1041
- ### Backend Integration
1042
- - REST API or GraphQL integration
1043
- - Real-time features (WebSockets/Push notifications)
1044
- - Offline data synchronization
1045
- - Background processing
1046
-
1047
- ### Device Features
1048
- - Camera and photo library access
1049
- - GPS location services
1050
- - Push notifications
1051
- - Biometric authentication
1052
- - Device storage
1053
-
1054
- ### Performance Requirements
1055
- - App launch time < 3 seconds
1056
- - Screen transition animations < 300ms
1057
- - Memory usage optimization
1058
- - Battery usage optimization
1059
-
1060
- ## Platform-Specific Considerations
1061
- ### iOS Requirements
1062
- - iOS 13.0+ minimum version
1063
- - App Store guidelines compliance
1064
- - iOS design guidelines (Human Interface Guidelines)
1065
- - TestFlight beta testing
1066
-
1067
- ### Android Requirements
1068
- - Android 8.0+ (API level 26) minimum
1069
- - Google Play Store guidelines
1070
- - Material Design guidelines
1071
- - Google Play Console testing
1072
-
1073
- ## User Interface Design
1074
- - Responsive design for different screen sizes
1075
- - Dark mode support
1076
- - Accessibility compliance (WCAG 2.1)
1077
- - Consistent design system
1078
-
1079
- ## Security & Privacy
1080
- - Secure data storage (Keychain/Keystore)
1081
- - API communication encryption
1082
- - Privacy policy compliance (GDPR/CCPA)
1083
- - App security best practices
1084
-
1085
- ## Testing Strategy
1086
- - Unit testing (80%+ coverage)
1087
- - UI/E2E testing (Detox/Appium)
1088
- - Device testing on multiple screen sizes
1089
- - Performance testing
1090
- - Security testing
1091
-
1092
- ## App Store Deployment
1093
- - App store optimization (ASO)
1094
- - App icons and screenshots
1095
- - Store listing content
1096
- - Release management strategy
1097
-
1098
- ## Analytics & Monitoring
1099
- - User analytics (Firebase/Analytics)
1100
- - Crash reporting (Crashlytics/Sentry)
1101
- - Performance monitoring
1102
- - User feedback collection
1103
-
1104
- ## Success Metrics
1105
- - App store ratings > 4.0
1106
- - User retention rates
1107
- - Daily/Monthly active users
1108
- - App performance metrics
1000
+ content: `# Product Requirements Document - Mobile Application
1001
+
1002
+ ## Overview
1003
+ **App Name:** [Your App Name]
1004
+ **Platform:** iOS / Android / Cross-platform
1005
+ **Version:** 1.0
1006
+ **Date:** ${new Date().toISOString().split('T')[0]}
1007
+ **Author:** [Your Name]
1008
+
1009
+ ## Executive Summary
1010
+ Brief description of the mobile app's purpose, target audience, and key value proposition.
1011
+
1012
+ ## Product Goals
1013
+ - Goal 1: [Specific user engagement goal]
1014
+ - Goal 2: [Specific functionality goal]
1015
+ - Goal 3: [Specific performance goal]
1016
+
1017
+ ## User Stories
1018
+ ### Core Features
1019
+ 1. **Onboarding & Authentication**
1020
+ - As a new user, I want a simple onboarding process
1021
+ - As a user, I want to sign up with email or social media
1022
+ - As a user, I want biometric authentication for security
1023
+
1024
+ 2. **Main App Features**
1025
+ - As a user, I want [core feature 1] accessible from home screen
1026
+ - As a user, I want [core feature 2] to work offline
1027
+ - As a user, I want to sync data across devices
1028
+
1029
+ 3. **User Experience**
1030
+ - As a user, I want intuitive navigation patterns
1031
+ - As a user, I want fast loading times
1032
+ - As a user, I want accessibility features
1033
+
1034
+ ## Technical Requirements
1035
+ ### Mobile Development
1036
+ - **Cross-platform:** React Native / Flutter / Xamarin
1037
+ - **Native:** Swift (iOS) / Kotlin (Android)
1038
+ - **State Management:** Redux / MobX / Provider
1039
+ - **Navigation:** React Navigation / Flutter Navigation
1040
+
1041
+ ### Backend Integration
1042
+ - REST API or GraphQL integration
1043
+ - Real-time features (WebSockets/Push notifications)
1044
+ - Offline data synchronization
1045
+ - Background processing
1046
+
1047
+ ### Device Features
1048
+ - Camera and photo library access
1049
+ - GPS location services
1050
+ - Push notifications
1051
+ - Biometric authentication
1052
+ - Device storage
1053
+
1054
+ ### Performance Requirements
1055
+ - App launch time < 3 seconds
1056
+ - Screen transition animations < 300ms
1057
+ - Memory usage optimization
1058
+ - Battery usage optimization
1059
+
1060
+ ## Platform-Specific Considerations
1061
+ ### iOS Requirements
1062
+ - iOS 13.0+ minimum version
1063
+ - App Store guidelines compliance
1064
+ - iOS design guidelines (Human Interface Guidelines)
1065
+ - TestFlight beta testing
1066
+
1067
+ ### Android Requirements
1068
+ - Android 8.0+ (API level 26) minimum
1069
+ - Google Play Store guidelines
1070
+ - Material Design guidelines
1071
+ - Google Play Console testing
1072
+
1073
+ ## User Interface Design
1074
+ - Responsive design for different screen sizes
1075
+ - Dark mode support
1076
+ - Accessibility compliance (WCAG 2.1)
1077
+ - Consistent design system
1078
+
1079
+ ## Security & Privacy
1080
+ - Secure data storage (Keychain/Keystore)
1081
+ - API communication encryption
1082
+ - Privacy policy compliance (GDPR/CCPA)
1083
+ - App security best practices
1084
+
1085
+ ## Testing Strategy
1086
+ - Unit testing (80%+ coverage)
1087
+ - UI/E2E testing (Detox/Appium)
1088
+ - Device testing on multiple screen sizes
1089
+ - Performance testing
1090
+ - Security testing
1091
+
1092
+ ## App Store Deployment
1093
+ - App store optimization (ASO)
1094
+ - App icons and screenshots
1095
+ - Store listing content
1096
+ - Release management strategy
1097
+
1098
+ ## Analytics & Monitoring
1099
+ - User analytics (Firebase/Analytics)
1100
+ - Crash reporting (Crashlytics/Sentry)
1101
+ - Performance monitoring
1102
+ - User feedback collection
1103
+
1104
+ ## Success Metrics
1105
+ - App store ratings > 4.0
1106
+ - User retention rates
1107
+ - Daily/Monthly active users
1108
+ - App performance metrics
1109
1109
  - Conversion rates`
1110
1110
  },
1111
1111
  {
@@ -1113,127 +1113,127 @@ Brief description of the mobile app's purpose, target audience, and key value pr
1113
1113
  name: 'Data Analysis Project',
1114
1114
  description: 'Template for data analysis and visualization projects',
1115
1115
  category: 'data',
1116
- content: `# Product Requirements Document - Data Analysis Project
1117
-
1118
- ## Overview
1119
- **Project Name:** [Your Analysis Project]
1120
- **Analysis Type:** [Descriptive/Predictive/Prescriptive]
1121
- **Date:** ${new Date().toISOString().split('T')[0]}
1122
- **Author:** [Your Name]
1123
-
1124
- ## Executive Summary
1125
- Description of the business problem, data sources, and expected insights.
1126
-
1127
- ## Project Goals
1128
- - Goal 1: [Specific business question to answer]
1129
- - Goal 2: [Specific prediction to make]
1130
- - Goal 3: [Specific recommendation to provide]
1131
-
1132
- ## Business Requirements
1133
- ### Key Questions
1134
- 1. What patterns exist in the current data?
1135
- 2. What factors influence [target variable]?
1136
- 3. What predictions can be made for [future outcome]?
1137
- 4. What recommendations can improve [business metric]?
1138
-
1139
- ### Success Criteria
1140
- - Actionable insights for stakeholders
1141
- - Statistical significance in findings
1142
- - Reproducible analysis pipeline
1143
- - Clear visualization and reporting
1144
-
1145
- ## Data Requirements
1146
- ### Data Sources
1147
- 1. **Primary Data**
1148
- - Source: [Database/API/Files]
1149
- - Format: [CSV/JSON/SQL]
1150
- - Size: [Volume estimate]
1151
- - Update frequency: [Real-time/Daily/Monthly]
1152
-
1153
- 2. **External Data**
1154
- - Third-party APIs
1155
- - Public datasets
1156
- - Market research data
1157
-
1158
- ### Data Quality Requirements
1159
- - Data completeness (< 5% missing values)
1160
- - Data accuracy validation
1161
- - Data consistency checks
1162
- - Historical data availability
1163
-
1164
- ## Technical Requirements
1165
- ### Data Pipeline
1166
- - Data extraction and ingestion
1167
- - Data cleaning and preprocessing
1168
- - Data transformation and feature engineering
1169
- - Data validation and quality checks
1170
-
1171
- ### Analysis Tools
1172
- - **Programming:** Python/R/SQL
1173
- - **Libraries:** pandas, numpy, scikit-learn, matplotlib
1174
- - **Visualization:** Tableau, PowerBI, or custom dashboards
1175
- - **Version Control:** Git for code and DVC for data
1176
-
1177
- ### Computing Resources
1178
- - Local development environment
1179
- - Cloud computing (AWS/GCP/Azure) if needed
1180
- - Database access and permissions
1181
- - Storage requirements
1182
-
1183
- ## Analysis Methodology
1184
- ### Data Exploration
1185
- 1. Descriptive statistics and data profiling
1186
- 2. Data visualization and pattern identification
1187
- 3. Correlation analysis
1188
- 4. Outlier detection and handling
1189
-
1190
- ### Statistical Analysis
1191
- 1. Hypothesis formulation
1192
- 2. Statistical testing
1193
- 3. Confidence intervals
1194
- 4. Effect size calculations
1195
-
1196
- ### Machine Learning (if applicable)
1197
- 1. Feature selection and engineering
1198
- 2. Model selection and training
1199
- 3. Cross-validation and evaluation
1200
- 4. Model interpretation and explainability
1201
-
1202
- ## Deliverables
1203
- ### Reports
1204
- - Executive summary for stakeholders
1205
- - Technical analysis report
1206
- - Data quality report
1207
- - Methodology documentation
1208
-
1209
- ### Visualizations
1210
- - Interactive dashboards
1211
- - Static charts and graphs
1212
- - Data story presentations
1213
- - Key findings infographics
1214
-
1215
- ### Code & Documentation
1216
- - Reproducible analysis scripts
1217
- - Data pipeline code
1218
- - Documentation and comments
1219
- - Testing and validation code
1220
-
1221
- ## Timeline
1222
- - Phase 1: Data collection and exploration (2 weeks)
1223
- - Phase 2: Analysis and modeling (3 weeks)
1224
- - Phase 3: Reporting and visualization (1 week)
1225
- - Phase 4: Stakeholder presentation (1 week)
1226
-
1227
- ## Risks & Assumptions
1228
- - Data availability and quality risks
1229
- - Technical complexity assumptions
1230
- - Resource and timeline constraints
1231
- - Stakeholder engagement assumptions
1232
-
1233
- ## Success Metrics
1234
- - Stakeholder satisfaction with insights
1235
- - Accuracy of predictions (if applicable)
1236
- - Business impact of recommendations
1116
+ content: `# Product Requirements Document - Data Analysis Project
1117
+
1118
+ ## Overview
1119
+ **Project Name:** [Your Analysis Project]
1120
+ **Analysis Type:** [Descriptive/Predictive/Prescriptive]
1121
+ **Date:** ${new Date().toISOString().split('T')[0]}
1122
+ **Author:** [Your Name]
1123
+
1124
+ ## Executive Summary
1125
+ Description of the business problem, data sources, and expected insights.
1126
+
1127
+ ## Project Goals
1128
+ - Goal 1: [Specific business question to answer]
1129
+ - Goal 2: [Specific prediction to make]
1130
+ - Goal 3: [Specific recommendation to provide]
1131
+
1132
+ ## Business Requirements
1133
+ ### Key Questions
1134
+ 1. What patterns exist in the current data?
1135
+ 2. What factors influence [target variable]?
1136
+ 3. What predictions can be made for [future outcome]?
1137
+ 4. What recommendations can improve [business metric]?
1138
+
1139
+ ### Success Criteria
1140
+ - Actionable insights for stakeholders
1141
+ - Statistical significance in findings
1142
+ - Reproducible analysis pipeline
1143
+ - Clear visualization and reporting
1144
+
1145
+ ## Data Requirements
1146
+ ### Data Sources
1147
+ 1. **Primary Data**
1148
+ - Source: [Database/API/Files]
1149
+ - Format: [CSV/JSON/SQL]
1150
+ - Size: [Volume estimate]
1151
+ - Update frequency: [Real-time/Daily/Monthly]
1152
+
1153
+ 2. **External Data**
1154
+ - Third-party APIs
1155
+ - Public datasets
1156
+ - Market research data
1157
+
1158
+ ### Data Quality Requirements
1159
+ - Data completeness (< 5% missing values)
1160
+ - Data accuracy validation
1161
+ - Data consistency checks
1162
+ - Historical data availability
1163
+
1164
+ ## Technical Requirements
1165
+ ### Data Pipeline
1166
+ - Data extraction and ingestion
1167
+ - Data cleaning and preprocessing
1168
+ - Data transformation and feature engineering
1169
+ - Data validation and quality checks
1170
+
1171
+ ### Analysis Tools
1172
+ - **Programming:** Python/R/SQL
1173
+ - **Libraries:** pandas, numpy, scikit-learn, matplotlib
1174
+ - **Visualization:** Tableau, PowerBI, or custom dashboards
1175
+ - **Version Control:** Git for code and DVC for data
1176
+
1177
+ ### Computing Resources
1178
+ - Local development environment
1179
+ - Cloud computing (AWS/GCP/Azure) if needed
1180
+ - Database access and permissions
1181
+ - Storage requirements
1182
+
1183
+ ## Analysis Methodology
1184
+ ### Data Exploration
1185
+ 1. Descriptive statistics and data profiling
1186
+ 2. Data visualization and pattern identification
1187
+ 3. Correlation analysis
1188
+ 4. Outlier detection and handling
1189
+
1190
+ ### Statistical Analysis
1191
+ 1. Hypothesis formulation
1192
+ 2. Statistical testing
1193
+ 3. Confidence intervals
1194
+ 4. Effect size calculations
1195
+
1196
+ ### Machine Learning (if applicable)
1197
+ 1. Feature selection and engineering
1198
+ 2. Model selection and training
1199
+ 3. Cross-validation and evaluation
1200
+ 4. Model interpretation and explainability
1201
+
1202
+ ## Deliverables
1203
+ ### Reports
1204
+ - Executive summary for stakeholders
1205
+ - Technical analysis report
1206
+ - Data quality report
1207
+ - Methodology documentation
1208
+
1209
+ ### Visualizations
1210
+ - Interactive dashboards
1211
+ - Static charts and graphs
1212
+ - Data story presentations
1213
+ - Key findings infographics
1214
+
1215
+ ### Code & Documentation
1216
+ - Reproducible analysis scripts
1217
+ - Data pipeline code
1218
+ - Documentation and comments
1219
+ - Testing and validation code
1220
+
1221
+ ## Timeline
1222
+ - Phase 1: Data collection and exploration (2 weeks)
1223
+ - Phase 2: Analysis and modeling (3 weeks)
1224
+ - Phase 3: Reporting and visualization (1 week)
1225
+ - Phase 4: Stakeholder presentation (1 week)
1226
+
1227
+ ## Risks & Assumptions
1228
+ - Data availability and quality risks
1229
+ - Technical complexity assumptions
1230
+ - Resource and timeline constraints
1231
+ - Stakeholder engagement assumptions
1232
+
1233
+ ## Success Metrics
1234
+ - Stakeholder satisfaction with insights
1235
+ - Accuracy of predictions (if applicable)
1236
+ - Business impact of recommendations
1237
1237
  - Reproducibility of results`
1238
1238
  }
1239
1239
  ];
@@ -1339,31 +1339,31 @@ async function getAvailableTemplates() {
1339
1339
  name: 'Web Application',
1340
1340
  description: 'Template for web application projects',
1341
1341
  category: 'web',
1342
- content: `# Product Requirements Document - Web Application
1343
-
1344
- ## Overview
1345
- **Product Name:** [Your App Name]
1346
- **Version:** 1.0
1347
- **Date:** ${new Date().toISOString().split('T')[0]}
1348
- **Author:** [Your Name]
1349
-
1350
- ## Executive Summary
1351
- Brief description of what this web application will do and why it's needed.
1352
-
1353
- ## User Stories
1354
- 1. As a user, I want [feature] so I can [benefit]
1355
- 2. As a user, I want [feature] so I can [benefit]
1356
- 3. As a user, I want [feature] so I can [benefit]
1357
-
1358
- ## Technical Requirements
1359
- - Frontend framework
1360
- - Backend services
1361
- - Database requirements
1362
- - Security considerations
1363
-
1364
- ## Success Metrics
1365
- - User engagement metrics
1366
- - Performance benchmarks
1342
+ content: `# Product Requirements Document - Web Application
1343
+
1344
+ ## Overview
1345
+ **Product Name:** [Your App Name]
1346
+ **Version:** 1.0
1347
+ **Date:** ${new Date().toISOString().split('T')[0]}
1348
+ **Author:** [Your Name]
1349
+
1350
+ ## Executive Summary
1351
+ Brief description of what this web application will do and why it's needed.
1352
+
1353
+ ## User Stories
1354
+ 1. As a user, I want [feature] so I can [benefit]
1355
+ 2. As a user, I want [feature] so I can [benefit]
1356
+ 3. As a user, I want [feature] so I can [benefit]
1357
+
1358
+ ## Technical Requirements
1359
+ - Frontend framework
1360
+ - Backend services
1361
+ - Database requirements
1362
+ - Security considerations
1363
+
1364
+ ## Success Metrics
1365
+ - User engagement metrics
1366
+ - Performance benchmarks
1367
1367
  - Business objectives`
1368
1368
  },
1369
1369
  // Add other templates here if needed