claude-flow-novice 2.3.5 → 2.3.6

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 (347) hide show
  1. package/dist/src/booster/performance-benchmark.js +1 -1
  2. package/dist/src/booster/wasm-demo.js +1 -1
  3. package/dist/src/cli/command-registry.js +2 -2
  4. package/dist/src/cli/help-formatter.js +137 -109
  5. package/dist/src/cli/simple-cli.js +2528 -2121
  6. package/dist/src/cli/simple-commands/sparc/refinement.js +3 -3
  7. package/dist/src/cli/validation-helper.js +98 -49
  8. package/dist/src/commands/suggest-templates.js +4 -4
  9. package/dist/src/core/version.js +23 -15
  10. package/dist/src/memory/swarm-memory.js +603 -470
  11. package/dist/src/slash-commands/fullstack.js +2 -2
  12. package/dist/src/slash-commands/parse-epic.js +1 -1
  13. package/package.json +1 -1
  14. package/scripts/postinstall.js +40 -6
  15. package/dist/scripts/.claude-flow/metrics/agent-metrics.json +0 -1
  16. package/dist/scripts/.claude-flow/metrics/performance.json +0 -9
  17. package/dist/scripts/.claude-flow/metrics/task-metrics.json +0 -10
  18. package/dist/scripts/CLEANUP_OPTIMIZATION_REPORT.json +0 -312
  19. package/dist/scripts/CLEANUP_PERFORMANCE_OPTIMIZATION.md +0 -387
  20. package/dist/scripts/CLEANUP_QUICK_START.md +0 -268
  21. package/dist/scripts/CLEANUP_TEST_RESULTS.md +0 -205
  22. package/dist/scripts/README.md +0 -339
  23. package/dist/scripts/ace-query.sh +0 -384
  24. package/dist/scripts/agent-token-analysis.js +0 -430
  25. package/dist/scripts/auto-setup.js +0 -332
  26. package/dist/scripts/build/README.md +0 -167
  27. package/dist/scripts/build/build-config.js +0 -27
  28. package/dist/scripts/build/build-prompt-copier.sh +0 -30
  29. package/dist/scripts/build/performance-monitor.js +0 -869
  30. package/dist/scripts/build/prepare-publish.js +0 -150
  31. package/dist/scripts/build/typescript-fixer.js +0 -621
  32. package/dist/scripts/build/unified-builder.sh +0 -428
  33. package/dist/scripts/build/update-bin-version.js +0 -32
  34. package/dist/scripts/build/validate-agents.js +0 -238
  35. package/dist/scripts/build-index.js +0 -43
  36. package/dist/scripts/build-orchestrator.js +0 -320
  37. package/dist/scripts/check-routing-stats.cjs +0 -122
  38. package/dist/scripts/ci-validation.js +0 -375
  39. package/dist/scripts/cleanup-blocking-coordination.sh +0 -420
  40. package/dist/scripts/cleanup-idle-sessions.sh +0 -118
  41. package/dist/scripts/collect-build-metrics.js +0 -65
  42. package/dist/scripts/demo/README.md +0 -79
  43. package/dist/scripts/demo/autoscaling-demo-simplified.js +0 -963
  44. package/dist/scripts/demo/comprehensive-dashboard-test.js +0 -693
  45. package/dist/scripts/demo/confidence-log.js +0 -87
  46. package/dist/scripts/demo/confidence-report.js +0 -82
  47. package/dist/scripts/demo/demo-multi-swarm-coordination.js +0 -325
  48. package/dist/scripts/demo/demo-production-deployment.js +0 -399
  49. package/dist/scripts/demo/demo-visualization-system.js +0 -149
  50. package/dist/scripts/demo/performance-analysis.cjs +0 -71
  51. package/dist/scripts/demo/performance-analysis.js +0 -71
  52. package/dist/scripts/demo/test-autoscaling-demo.js +0 -314
  53. package/dist/scripts/dependency-optimizer.js +0 -349
  54. package/dist/scripts/dependency-security-assessment.js +0 -331
  55. package/dist/scripts/deploy-sdk.sh +0 -176
  56. package/dist/scripts/deployment-readiness-report.json +0 -179
  57. package/dist/scripts/dev/README.md +0 -264
  58. package/dist/scripts/dev/claude-flow-wrapper.sh +0 -35
  59. package/dist/scripts/dev/claude-monitor.py +0 -419
  60. package/dist/scripts/dev/claude-sparc.sh +0 -562
  61. package/dist/scripts/dev/claude-wrapper.sh +0 -17
  62. package/dist/scripts/dev/demo-phase3-compliance.js +0 -172
  63. package/dist/scripts/dev/demo-task-system.ts +0 -224
  64. package/dist/scripts/dev/deployment-validator.js +0 -315
  65. package/dist/scripts/dev/spawn-claude-terminal.sh +0 -32
  66. package/dist/scripts/dev/start-portal.sh +0 -506
  67. package/dist/scripts/dev/start-web-ui.js +0 -15
  68. package/dist/scripts/dev/stop-portal.sh +0 -311
  69. package/dist/scripts/dev/validate-examples.ts +0 -288
  70. package/dist/scripts/dev/validate-phase2.cjs +0 -451
  71. package/dist/scripts/dev/validate-phase2.js +0 -785
  72. package/dist/scripts/dev/validate-phase3.cjs +0 -208
  73. package/dist/scripts/dev/validate-security-remediation.js +0 -1
  74. package/dist/scripts/ecosystem.config.cjs +0 -90
  75. package/dist/scripts/enhanced-memory-spiral-killer.sh +0 -221
  76. package/dist/scripts/fix-js-extensions.js +0 -167
  77. package/dist/scripts/generate-basic-types.js +0 -73
  78. package/dist/scripts/generate-changelog.js +0 -318
  79. package/dist/scripts/git-hooks/pre-commit.sh +0 -143
  80. package/dist/scripts/health-checks.js +0 -634
  81. package/dist/scripts/hook-wrapper.sh +0 -54
  82. package/dist/scripts/install/README.md +0 -375
  83. package/dist/scripts/install/REDIS_SETUP_VALIDATION.json +0 -245
  84. package/dist/scripts/install/check-prerequisites.js +0 -303
  85. package/dist/scripts/install/config-wizard.js +0 -606
  86. package/dist/scripts/install/dependency-checker.js +0 -385
  87. package/dist/scripts/install/health-check.js +0 -765
  88. package/dist/scripts/install/install.js +0 -256
  89. package/dist/scripts/install/installation-benchmark.js +0 -461
  90. package/dist/scripts/install/quick-install.js +0 -720
  91. package/dist/scripts/install/quick-start-wizard.js +0 -295
  92. package/dist/scripts/install/redis-cli.js +0 -289
  93. package/dist/scripts/install/redis-install-guides.md +0 -407
  94. package/dist/scripts/install/redis-setup.js +0 -559
  95. package/dist/scripts/install/redis-test.js +0 -278
  96. package/dist/scripts/install/service-manager.js +0 -672
  97. package/dist/scripts/install/setup.js +0 -832
  98. package/dist/scripts/install/uninstall.js +0 -526
  99. package/dist/scripts/install/update.js +0 -461
  100. package/dist/scripts/install-pre-commit-hook.sh +0 -127
  101. package/dist/scripts/legacy/README.md +0 -272
  102. package/dist/scripts/legacy/batch-fix-ts.sh +0 -54
  103. package/dist/scripts/legacy/build-migration.sh +0 -105
  104. package/dist/scripts/legacy/build-monitor.js +0 -209
  105. package/dist/scripts/legacy/build-with-filter.sh +0 -84
  106. package/dist/scripts/legacy/build-workaround.sh +0 -71
  107. package/dist/scripts/legacy/fix-ts-advanced.js +0 -358
  108. package/dist/scripts/legacy/fix-ts-final.sh +0 -50
  109. package/dist/scripts/legacy/fix-ts-targeted.sh +0 -49
  110. package/dist/scripts/legacy/fix-typescript-errors.js +0 -305
  111. package/dist/scripts/legacy/force-build.sh +0 -63
  112. package/dist/scripts/legacy/optimize-performance.js +0 -400
  113. package/dist/scripts/legacy/performance-monitor.js +0 -263
  114. package/dist/scripts/legacy/performance-monitoring.js +0 -532
  115. package/dist/scripts/legacy/performance-test-runner.js +0 -645
  116. package/dist/scripts/legacy/quick-fix-ts.js +0 -281
  117. package/dist/scripts/legacy/safe-build.sh +0 -63
  118. package/dist/scripts/memory-monitor-coordinator.js +0 -451
  119. package/dist/scripts/migrate-to-sdk.sh +0 -520
  120. package/dist/scripts/migration/QUICK-START.md +0 -189
  121. package/dist/scripts/migration/QUICK-START.md.backup-1760135091363 +0 -189
  122. package/dist/scripts/migration/README.md +0 -464
  123. package/dist/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md +0 -500
  124. package/dist/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md.backup-1760135091348 +0 -500
  125. package/dist/scripts/migration/UPDATE-PATHS-README.md +0 -464
  126. package/dist/scripts/migration/UPDATE-PATHS-README.md.backup-1760135091337 +0 -464
  127. package/dist/scripts/migration/example-patterns.json +0 -19
  128. package/dist/scripts/migration/install-arm64.js +0 -78
  129. package/dist/scripts/migration/install.js +0 -83
  130. package/dist/scripts/migration/migrate-hooks.js +0 -173
  131. package/dist/scripts/migration/migration-examples.ts +0 -318
  132. package/dist/scripts/migration/reorganize-workspace.js +0 -504
  133. package/dist/scripts/migration/test-update-paths.js +0 -359
  134. package/dist/scripts/migration/update-paths.js +0 -664
  135. package/dist/scripts/migration/validate-migration.js +0 -647
  136. package/dist/scripts/monitor-loop.sh +0 -65
  137. package/dist/scripts/monitor-memory.sh +0 -47
  138. package/dist/scripts/monitor-migration.js +0 -339
  139. package/dist/scripts/monitor.py +0 -43
  140. package/dist/scripts/monitoring/README.md +0 -178
  141. package/dist/scripts/monitoring/alert-monitor.sh +0 -220
  142. package/dist/scripts/monitoring/analyze-resources.sh +0 -199
  143. package/dist/scripts/monitoring/dashboards/rate-limiting-dashboard.json +0 -211
  144. package/dist/scripts/monitoring/dynamic-monitor.sh +0 -85
  145. package/dist/scripts/monitoring/launch-stability-test.sh +0 -184
  146. package/dist/scripts/monitoring/monitor-test.sh +0 -93
  147. package/dist/scripts/monitoring/pre-test-validation.sh +0 -208
  148. package/dist/scripts/monitoring/quick-test-alerting.sh +0 -118
  149. package/dist/scripts/monitoring/quick-test-rate-limiting.sh +0 -206
  150. package/dist/scripts/monitoring/rate-limiting-monitor.sh +0 -380
  151. package/dist/scripts/monitoring/resource-monitor.sh +0 -126
  152. package/dist/scripts/monitoring/stability-monitor.js +0 -429
  153. package/dist/scripts/monitoring/test-monitor-quick.sh +0 -54
  154. package/dist/scripts/monitoring/view-alerts.sh +0 -307
  155. package/dist/scripts/npm-metrics-collector.js +0 -482
  156. package/dist/scripts/npm-package-validation.cjs +0 -299
  157. package/dist/scripts/optimization/build-optimizer.js +0 -438
  158. package/dist/scripts/optimization/config-validator.js +0 -761
  159. package/dist/scripts/optimization/test-optimization.js +0 -432
  160. package/dist/scripts/optimization/unified-activation.js +0 -839
  161. package/dist/scripts/optimize-package-swarm.js +0 -54
  162. package/dist/scripts/performance/ACTIVATION_COMMANDS.md +0 -292
  163. package/dist/scripts/performance/sqlite-enhanced-activation.sh +0 -583
  164. package/dist/scripts/performance/test-enhanced-backend.sh +0 -504
  165. package/dist/scripts/performance-monitor.js +0 -644
  166. package/dist/scripts/performance-test-runner.js +0 -698
  167. package/dist/scripts/post-deployment-monitoring.js +0 -350
  168. package/dist/scripts/post-edit-pipeline.js +0 -2091
  169. package/dist/scripts/post-install-claude-md.js +0 -78
  170. package/dist/scripts/postinstall.js +0 -60
  171. package/dist/scripts/pre-publish-validation.cjs +0 -212
  172. package/dist/scripts/pre-publish-validation.js +0 -429
  173. package/dist/scripts/redis-lua/cleanup-blocking-coordination.lua +0 -198
  174. package/dist/scripts/release-announcement.js +0 -425
  175. package/dist/scripts/release-notification.js +0 -248
  176. package/dist/scripts/release-rollback.js +0 -376
  177. package/dist/scripts/release-validation.js +0 -460
  178. package/dist/scripts/rollback-sdk.sh +0 -66
  179. package/dist/scripts/run-production-validation.ts +0 -590
  180. package/dist/scripts/run-stability-validation.sh +0 -687
  181. package/dist/scripts/security/README.md +0 -339
  182. package/dist/scripts/security/deployment-validation.cjs +0 -279
  183. package/dist/scripts/security/envelope-encryption-confidence-report.cjs +0 -422
  184. package/dist/scripts/security/install-git-hooks.sh +0 -132
  185. package/dist/scripts/security/install-git-secrets.sh +0 -295
  186. package/dist/scripts/security/rotate-api-keys.js +0 -469
  187. package/dist/scripts/security/ruv-swarm-safe.js +0 -74
  188. package/dist/scripts/security/security-audit.cjs +0 -538
  189. package/dist/scripts/security/setup-redis-auth.sh +0 -397
  190. package/dist/scripts/security/validate-envelope-encryption.cjs +0 -340
  191. package/dist/scripts/security-scan.js +0 -492
  192. package/dist/scripts/src/web/frontend/.claude-flow/metrics/agent-metrics.json +0 -1
  193. package/dist/scripts/src/web/frontend/.claude-flow/metrics/performance.json +0 -9
  194. package/dist/scripts/src/web/frontend/.claude-flow/metrics/task-metrics.json +0 -10
  195. package/dist/scripts/switch-api.sh +0 -159
  196. package/dist/scripts/sync-agents.js +0 -290
  197. package/dist/scripts/test/50-agent-test.js +0 -625
  198. package/dist/scripts/test/NEW_STABILITY_TEST_GUIDE.md +0 -407
  199. package/dist/scripts/test/README.md +0 -236
  200. package/dist/scripts/test/STABILITY_TEST_EXAMPLE.md +0 -347
  201. package/dist/scripts/test/STABILITY_TEST_README.md +0 -480
  202. package/dist/scripts/test/agent-worker.js +0 -309
  203. package/dist/scripts/test/ai-coordination-test.js +0 -650
  204. package/dist/scripts/test/ai-mesh-coordination-test.js +0 -416
  205. package/dist/scripts/test/check-links.ts +0 -274
  206. package/dist/scripts/test/check-performance-regression.ts +0 -168
  207. package/dist/scripts/test/cli-agent-coordination-test.js +0 -313
  208. package/dist/scripts/test/coordinator-multilingual-test.js +0 -396
  209. package/dist/scripts/test/coordinator-transparency-demo.js +0 -585
  210. package/dist/scripts/test/coverage-report.ts +0 -692
  211. package/dist/scripts/test/generate-swarm-tests.js +0 -633
  212. package/dist/scripts/test/integration-test-validation.cjs +0 -253
  213. package/dist/scripts/test/load-test-swarm.js +0 -576
  214. package/dist/scripts/test/mesh-coordination-zero-overlap-test.js +0 -740
  215. package/dist/scripts/test/multilingual-hello-world-test.js +0 -390
  216. package/dist/scripts/test/quick-multilingual-demo.js +0 -464
  217. package/dist/scripts/test/real-agent-test.js +0 -312
  218. package/dist/scripts/test/run-phase3-compliance-tests.js +0 -427
  219. package/dist/scripts/test/run-stability-test-examples.sh +0 -292
  220. package/dist/scripts/test/stability-results/stability-metrics.jsonl +0 -83
  221. package/dist/scripts/test/stability-results/stability-test-report.json +0 -128
  222. package/dist/scripts/test/stability-results/stability-test.log +0 -1827
  223. package/dist/scripts/test/stability-test-50-agents.js +0 -734
  224. package/dist/scripts/test/test-batch-tasks.ts +0 -29
  225. package/dist/scripts/test/test-byzantine-resolution.js +0 -246
  226. package/dist/scripts/test/test-claude-spawn-options.sh +0 -63
  227. package/dist/scripts/test/test-cli-wizard.js +0 -331
  228. package/dist/scripts/test/test-comprehensive.js +0 -401
  229. package/dist/scripts/test/test-coordination-features.ts +0 -238
  230. package/dist/scripts/test/test-fallback-systems.js +0 -276
  231. package/dist/scripts/test/test-init-command.ts +0 -302
  232. package/dist/scripts/test/test-mcp.ts +0 -251
  233. package/dist/scripts/test/test-runner.ts +0 -568
  234. package/dist/scripts/test/test-swarm-integration.sh +0 -92
  235. package/dist/scripts/test/test-swarm.ts +0 -142
  236. package/dist/scripts/test/validation-summary.ts +0 -408
  237. package/dist/scripts/test-cleanup-performance.sh +0 -416
  238. package/dist/scripts/test-dashboard-auth.cjs +0 -203
  239. package/dist/scripts/test-docker-deployment.sh +0 -207
  240. package/dist/scripts/test-npm-package.cjs +0 -167
  241. package/dist/scripts/test-provider-routing.cjs +0 -226
  242. package/dist/scripts/test-routing-telemetry.cjs +0 -147
  243. package/dist/scripts/test-runner.cjs +0 -154
  244. package/dist/scripts/test-zai-10k.cjs +0 -81
  245. package/dist/scripts/test-zai-api.cjs +0 -191
  246. package/dist/scripts/test-zai-diagnostic.cjs +0 -151
  247. package/dist/scripts/test-zai-final.cjs +0 -128
  248. package/dist/scripts/test-zai-with-env.cjs +0 -85
  249. package/dist/scripts/toggle-cost-savings.cjs +0 -302
  250. package/dist/scripts/unified-memory-monitor.js +0 -526
  251. package/dist/scripts/utils/README.md +0 -261
  252. package/dist/scripts/utils/clean-build-artifacts.sh +0 -94
  253. package/dist/scripts/utils/cleanup-root.sh +0 -69
  254. package/dist/scripts/utils/fix-cliffy-imports.js +0 -307
  255. package/dist/scripts/utils/fix-duplicate-imports.js +0 -114
  256. package/dist/scripts/utils/fix-error-handling.cjs +0 -70
  257. package/dist/scripts/utils/fix-import-paths.js +0 -104
  258. package/dist/scripts/utils/fix-imports.js +0 -116
  259. package/dist/scripts/utils/fix-shebang.js +0 -78
  260. package/dist/scripts/utils/fix-test-modules.js +0 -27
  261. package/dist/scripts/utils/fix-timezone-issue-246.js +0 -200
  262. package/dist/scripts/utils/fix-ts-comprehensive.py +0 -182
  263. package/dist/scripts/utils/fix-ts-targeted-batch.js +0 -250
  264. package/dist/scripts/utils/remove-benchmark-conflicts.sh +0 -140
  265. package/dist/scripts/utils/simple-test-fixer.js +0 -190
  266. package/dist/scripts/utils/validate-metrics-structure.cjs +0 -144
  267. package/dist/scripts/validate-agent-hooks.js +0 -506
  268. package/dist/scripts/validate-changelog.js +0 -241
  269. package/dist/scripts/validate-coordination-cli.js +0 -69
  270. package/dist/scripts/validate-coordination-toggle-integration.cjs +0 -501
  271. package/dist/scripts/validate-docker-infrastructure.sh +0 -502
  272. package/dist/scripts/validate-entry-points.js +0 -300
  273. package/dist/scripts/validate-memory-monitoring.sh +0 -225
  274. package/dist/scripts/validate-stage3-performance.ts +0 -377
  275. package/dist/scripts/validate-template-bundling.js +0 -180
  276. package/dist/scripts/validation/README.md +0 -33
  277. package/dist/scripts/validation/acl-security-validation.cjs +0 -214
  278. package/dist/scripts/validation/acl-security-validation.js +0 -402
  279. package/dist/scripts/validation/byzantine-verification.js +0 -407
  280. package/dist/scripts/validation/final-phase-2-consensus.cjs +0 -219
  281. package/dist/scripts/validation/final-security-validation.js +0 -791
  282. package/dist/scripts/validation/final-wasm-validation.cjs +0 -840
  283. package/dist/scripts/validation/integration-test-analysis.js +0 -105
  284. package/dist/scripts/validation/phase-0-comprehensive-validation.js +0 -474
  285. package/dist/scripts/validation/phase-0-consensus-report.js +0 -139
  286. package/dist/scripts/validation/phase-0-final-report.js +0 -112
  287. package/dist/scripts/validation/phase-0-redis-consensus-report.js +0 -129
  288. package/dist/scripts/validation/phase-0-validation-improved.js +0 -490
  289. package/dist/scripts/validation/phase-0-validation-test.js +0 -65
  290. package/dist/scripts/validation/phase-1-consensus-report.cjs +0 -342
  291. package/dist/scripts/validation/phase-1-consensus-validation.cjs +0 -551
  292. package/dist/scripts/validation/phase-1-consensus-validation.js +0 -551
  293. package/dist/scripts/validation/phase-2-consensus-report.cjs +0 -186
  294. package/dist/scripts/validation/phase-2-validation.cjs +0 -171
  295. package/dist/scripts/validation/phase-2-validation.js +0 -171
  296. package/dist/scripts/validation/phase-4-consensus-report.js +0 -181
  297. package/dist/scripts/validation/phase-4-final-validation.js +0 -351
  298. package/dist/scripts/validation/phase-5-consensus-report.cjs +0 -113
  299. package/dist/scripts/validation/phase-5-consensus-report.js +0 -113
  300. package/dist/scripts/validation/security-analysis.js +0 -49
  301. package/dist/scripts/validation/security-validation.js +0 -492
  302. package/dist/scripts/validation/simple-security-validation.js +0 -464
  303. package/dist/scripts/verify-installation.js +0 -112
  304. package/dist/scripts/verify-mcp-server.js +0 -86
  305. package/dist/scripts/verify-sdk-phase1.cjs +0 -293
  306. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/accessibility/browser/accessibilityService.js +0 -88
  307. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/accessibility/common/accessibility.js +0 -9
  308. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/action/common/action.js +0 -7
  309. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/action/common/actionCommonCategories.js +0 -13
  310. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/browser/actionList.js +0 -276
  311. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/browser/actionWidget.js +0 -248
  312. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/common/actionWidget.js +0 -5
  313. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actions/common/actions.js +0 -409
  314. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/audioCues/browser/audioCueService.js +0 -176
  315. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/clipboard/browser/clipboardService.js +0 -141
  316. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/clipboard/common/clipboardService.js +0 -6
  317. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/commands/common/commands.js +0 -80
  318. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configuration.js +0 -86
  319. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurationModels.js +0 -554
  320. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurationRegistry.js +0 -317
  321. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurations.js +0 -41
  322. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/browser/contextKeyService.js +0 -432
  323. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/common/contextkey.js +0 -1547
  324. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/common/contextkeys.js +0 -18
  325. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextMenuHandler.js +0 -124
  326. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextMenuService.js +0 -101
  327. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextView.js +0 -7
  328. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextViewService.js +0 -72
  329. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/dialogs/common/dialogs.js +0 -2
  330. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/dnd/browser/dnd.js +0 -36
  331. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/editor/common/editor.js +0 -17
  332. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/environment/common/environment.js +0 -2
  333. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/extensions/common/extensions.js +0 -47
  334. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/files/common/files.js +0 -9
  335. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +0 -105
  336. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/instantiation/common/descriptors.js +0 -11
  337. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/instantiation/common/extensions.js +0 -15
  338. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/keybinding/common/abstractKeybindingService.js +0 -277
  339. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/keybinding/common/baseResolvedKeybinding.js +0 -53
  340. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +0 -354
  341. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/theme/browser/defaultStyles.js +0 -162
  342. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/theme/common/colorRegistry.js +0 -482
  343. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/abap/abap.js +0 -10
  344. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/apex/apex.js +0 -10
  345. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/azcli/azcli.js +0 -10
  346. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/bat/bat.js +0 -10
  347. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/bicep/bicep.js +0 -11
@@ -1,562 +0,0 @@
1
- #!/bin/bash
2
-
3
- # SPARC Automated Development System
4
- # Generic workflow for comprehensive software development using SPARC methodology
5
-
6
- set -e # Exit on any error
7
-
8
- # Default configuration
9
- PROJECT_NAME="sparc-project"
10
- README_PATH="README.md"
11
- MCP_CONFIG=".roo/mcp.json"
12
- VERBOSE=false
13
- DRY_RUN=false
14
- SKIP_RESEARCH=false
15
- SKIP_TESTS=false
16
- TEST_COVERAGE_TARGET=100
17
- PARALLEL_EXECUTION=true
18
- COMMIT_FREQUENCY="phase" # phase, feature, or manual
19
- OUTPUT_FORMAT="text"
20
- DEVELOPMENT_MODE="full" # full, backend-only, frontend-only, api-only
21
-
22
- # Help function
23
- show_help() {
24
- cat << EOF
25
- SPARC Automated Development System
26
- ==================================
27
-
28
- A comprehensive, automated software development workflow using SPARC methodology
29
- (Specification, Pseudocode, Architecture, Refinement, Completion)
30
-
31
- USAGE:
32
- ./claude-sparc.sh [OPTIONS] [PROJECT_NAME] [README_PATH]
33
-
34
- ARGUMENTS:
35
- PROJECT_NAME Name of the project to develop (default: sparc-project)
36
- README_PATH Path to initial requirements/readme file (default: readme.md)
37
-
38
- OPTIONS:
39
- -h, --help Show this help message
40
- -v, --verbose Enable verbose output
41
- -d, --dry-run Show what would be done without executing
42
- -c, --config FILE MCP configuration file (default: .roo/mcp.json)
43
-
44
- # Research Options
45
- --skip-research Skip the web research phase
46
- --research-depth LEVEL Research depth: basic, standard, comprehensive (default: standard)
47
-
48
- # Development Options
49
- --mode MODE Development mode: full, backend-only, frontend-only, api-only (default: full)
50
- --skip-tests Skip test development (not recommended)
51
- --coverage TARGET Test coverage target percentage (default: 100)
52
- --no-parallel Disable parallel execution
53
-
54
- # Commit Options
55
- --commit-freq FREQ Commit frequency: phase, feature, manual (default: phase)
56
- --no-commits Disable automatic commits
57
-
58
- # Output Options
59
- --output FORMAT Output format: text, json, markdown (default: text)
60
- --quiet Suppress non-essential output
61
-
62
- EXAMPLES:
63
- # Basic usage
64
- ./claude-sparc.sh my-app docs/requirements.md
65
-
66
- # Backend API development with verbose output
67
- ./claude-sparc.sh --mode api-only --verbose user-service api-spec.md
68
-
69
- # Quick prototype without research
70
- ./claude-sparc.sh --skip-research --coverage 80 prototype-app readme.md
71
-
72
- # Dry run to see what would be executed
73
- ./claude-sparc.sh --dry-run --verbose my-project requirements.md
74
-
75
- DEVELOPMENT MODES:
76
- full Complete full-stack development (default)
77
- backend-only Backend services and APIs only
78
- frontend-only Frontend application only
79
- api-only REST/GraphQL API development only
80
-
81
- RESEARCH DEPTHS:
82
- basic Quick domain overview and technology stack research
83
- standard Comprehensive research including competitive analysis (default)
84
- comprehensive Extensive research with academic papers and detailed analysis
85
-
86
- COMMIT FREQUENCIES:
87
- phase Commit after each SPARC phase completion (default)
88
- feature Commit after each feature implementation
89
- manual No automatic commits (manual git operations only)
90
-
91
- For more information, see SPARC-DEVELOPMENT-GUIDE.md
92
- EOF
93
- }
94
-
95
- # Parse command line arguments
96
- parse_args() {
97
- while [[ $# -gt 0 ]]; do
98
- case $1 in
99
- -h|--help)
100
- show_help
101
- exit 0
102
- ;;
103
- -v|--verbose)
104
- VERBOSE=true
105
- shift
106
- ;;
107
- -d|--dry-run)
108
- DRY_RUN=true
109
- shift
110
- ;;
111
- -c|--config)
112
- MCP_CONFIG="$2"
113
- shift 2
114
- ;;
115
- --skip-research)
116
- SKIP_RESEARCH=true
117
- shift
118
- ;;
119
- --research-depth)
120
- RESEARCH_DEPTH="$2"
121
- shift 2
122
- ;;
123
- --mode)
124
- DEVELOPMENT_MODE="$2"
125
- shift 2
126
- ;;
127
- --skip-tests)
128
- SKIP_TESTS=true
129
- shift
130
- ;;
131
- --coverage)
132
- TEST_COVERAGE_TARGET="$2"
133
- shift 2
134
- ;;
135
- --no-parallel)
136
- PARALLEL_EXECUTION=false
137
- shift
138
- ;;
139
- --commit-freq)
140
- COMMIT_FREQUENCY="$2"
141
- shift 2
142
- ;;
143
- --no-commits)
144
- COMMIT_FREQUENCY="manual"
145
- shift
146
- ;;
147
- --output)
148
- OUTPUT_FORMAT="$2"
149
- shift 2
150
- ;;
151
- --quiet)
152
- VERBOSE=false
153
- shift
154
- ;;
155
- -*)
156
- echo "Unknown option: $1" >&2
157
- echo "Use --help for usage information" >&2
158
- exit 1
159
- ;;
160
- *)
161
- if [[ "$PROJECT_NAME" == "sparc-project" ]]; then
162
- PROJECT_NAME="$1"
163
- elif [[ "$README_PATH" == "README.md" ]]; then
164
- README_PATH="$1"
165
- else
166
- echo "Too many arguments: $1" >&2
167
- echo "Use --help for usage information" >&2
168
- exit 1
169
- fi
170
- shift
171
- ;;
172
- esac
173
- done
174
- }
175
-
176
- # Validate configuration
177
- validate_config() {
178
- # Check if MCP config exists
179
- if [[ ! -f "$MCP_CONFIG" ]]; then
180
- echo "Warning: MCP config file not found: $MCP_CONFIG" >&2
181
- echo "Using default MCP configuration" >&2
182
- fi
183
-
184
- # Check if README exists, try to find alternatives if default doesn't exist
185
- if [[ ! -f "$README_PATH" ]]; then
186
- # Try common README file variations
187
- local readme_alternatives=("README.md" "readme.md" "Readme.md" "README.txt" "readme.txt")
188
- local found_readme=""
189
-
190
- for alt in "${readme_alternatives[@]}"; do
191
- if [[ -f "$alt" ]]; then
192
- found_readme="$alt"
193
- break
194
- fi
195
- done
196
-
197
- if [[ -n "$found_readme" ]]; then
198
- echo "README file '$README_PATH' not found, using '$found_readme' instead" >&2
199
- README_PATH="$found_readme"
200
- else
201
- echo "Error: No README file found. Tried: ${readme_alternatives[*]}" >&2
202
- echo "Please specify a valid README file path or create one of the above files." >&2
203
- exit 1
204
- fi
205
- fi
206
-
207
- # Validate development mode
208
- case $DEVELOPMENT_MODE in
209
- full|backend-only|frontend-only|api-only) ;;
210
- *) echo "Error: Invalid development mode: $DEVELOPMENT_MODE" >&2; exit 1 ;;
211
- esac
212
-
213
- # Validate commit frequency
214
- case $COMMIT_FREQUENCY in
215
- phase|feature|manual) ;;
216
- *) echo "Error: Invalid commit frequency: $COMMIT_FREQUENCY" >&2; exit 1 ;;
217
- esac
218
-
219
- # Validate output format
220
- case $OUTPUT_FORMAT in
221
- text|json|markdown) ;;
222
- *) echo "Error: Invalid output format: $OUTPUT_FORMAT" >&2; exit 1 ;;
223
- esac
224
-
225
- # Validate coverage target
226
- if [[ ! "$TEST_COVERAGE_TARGET" =~ ^[0-9]+$ ]] || [[ "$TEST_COVERAGE_TARGET" -lt 0 ]] || [[ "$TEST_COVERAGE_TARGET" -gt 100 ]]; then
227
- echo "Error: Invalid coverage target: $TEST_COVERAGE_TARGET (must be 0-100)" >&2
228
- exit 1
229
- fi
230
- }
231
-
232
- # Show configuration
233
- show_config() {
234
- if [[ "$VERBOSE" == true ]]; then
235
- cat << EOF
236
- SPARC Configuration:
237
- ===================
238
- Project Name: $PROJECT_NAME
239
- README Path: $README_PATH
240
- MCP Config: $MCP_CONFIG
241
- Development Mode: $DEVELOPMENT_MODE
242
- Research Depth: ${RESEARCH_DEPTH:-standard}
243
- Test Coverage Target: $TEST_COVERAGE_TARGET%
244
- Parallel Execution: $PARALLEL_EXECUTION
245
- Commit Frequency: $COMMIT_FREQUENCY
246
- Output Format: $OUTPUT_FORMAT
247
- Skip Research: $SKIP_RESEARCH
248
- Skip Tests: $SKIP_TESTS
249
- Dry Run: $DRY_RUN
250
- ===================
251
- EOF
252
- fi
253
- }
254
-
255
- # Build allowed tools based on configuration
256
- build_allowed_tools() {
257
- local tools="View,Edit,Replace,GlobTool,GrepTool,LS,Bash"
258
-
259
- if [[ "$SKIP_RESEARCH" != true ]]; then
260
- tools="$tools,WebFetchTool"
261
- fi
262
-
263
- if [[ "$PARALLEL_EXECUTION" == true ]]; then
264
- tools="$tools,BatchTool,dispatch_agent"
265
- fi
266
-
267
- echo "$tools"
268
- }
269
-
270
- # Build Claude command flags
271
- build_claude_flags() {
272
- local flags="--mcp-config $MCP_CONFIG --dangerously-skip-permissions"
273
-
274
- if [[ "$VERBOSE" == true ]]; then
275
- flags="$flags --verbose"
276
- fi
277
-
278
- if [[ "$OUTPUT_FORMAT" != "text" ]]; then
279
- flags="$flags --output-format $OUTPUT_FORMAT"
280
- fi
281
-
282
- echo "$flags"
283
- }
284
-
285
- # Main execution
286
- main() {
287
- parse_args "$@"
288
- validate_config
289
- show_config
290
-
291
- if [[ "$DRY_RUN" == true ]]; then
292
- echo "DRY RUN - Would execute the following:"
293
- echo "Project: $PROJECT_NAME"
294
- echo "README: $README_PATH"
295
- echo "Allowed Tools: $(build_allowed_tools)"
296
- echo "Claude Flags: $(build_claude_flags)"
297
- exit 0
298
- fi
299
-
300
- # Execute the SPARC development process
301
- execute_sparc_development
302
- }
303
-
304
- # Execute SPARC development process
305
- execute_sparc_development() {
306
- local allowed_tools=$(build_allowed_tools)
307
- local claude_flags=$(build_claude_flags)
308
-
309
- claude "
310
- # SPARC Automated Development System
311
- # Project: ${PROJECT_NAME}
312
- # Initial Research Document: ${README_PATH}
313
- # Configuration: Mode=${DEVELOPMENT_MODE}, Coverage=${TEST_COVERAGE_TARGET}%, Parallel=${PARALLEL_EXECUTION}
314
-
315
- $(if [[ "$SKIP_RESEARCH" != true ]]; then cat << 'RESEARCH_BLOCK'
316
- ## PHASE 0: COMPREHENSIVE RESEARCH & DISCOVERY
317
- ### Research Depth: ${RESEARCH_DEPTH:-standard}
318
- ### Parallel Web Research Phase ($(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo "BatchTool execution"; else echo "Sequential execution"; fi)):
319
-
320
- 1. **Domain Research**:
321
- - WebFetchTool: Extract key concepts from ${README_PATH}
322
- - WebFetchTool: Search for latest industry trends and technologies
323
- - WebFetchTool: Research competitive landscape and existing solutions
324
- $(if [[ "${RESEARCH_DEPTH:-standard}" == "comprehensive" ]]; then echo " - WebFetchTool: Gather academic papers and technical documentation"; fi)
325
-
326
- 2. **Technology Stack Research**:
327
- - WebFetchTool: Research best practices for identified technology domains
328
- - WebFetchTool: Search for framework comparisons and recommendations
329
- - WebFetchTool: Investigate security considerations and compliance requirements
330
- $(if [[ "${RESEARCH_DEPTH:-standard}" != "basic" ]]; then echo " - WebFetchTool: Research scalability patterns and architecture approaches"; fi)
331
-
332
- 3. **Implementation Research**:
333
- - WebFetchTool: Search for code examples and implementation patterns
334
- $(if [[ "$SKIP_TESTS" != true ]]; then echo " - WebFetchTool: Research testing frameworks and methodologies"; fi)
335
- - WebFetchTool: Investigate deployment and DevOps best practices
336
- $(if [[ "${RESEARCH_DEPTH:-standard}" == "comprehensive" ]]; then echo " - WebFetchTool: Research monitoring and observability solutions"; fi)
337
-
338
- ### Research Processing:
339
- $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo "Use BatchTool to execute all research queries in parallel for maximum efficiency."; else echo "Execute research queries sequentially for thorough analysis."; fi)
340
-
341
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo "**Commit**: 'feat: complete comprehensive research phase - gathered domain knowledge, technology insights, and implementation patterns'"; fi)
342
- RESEARCH_BLOCK
343
- fi)
344
-
345
- ## SPECIFICATION PHASE
346
- ### Requirements Analysis for ${DEVELOPMENT_MODE} development:
347
- 1. **Functional Requirements**:
348
- - Analyze ${README_PATH} to extract core functionality
349
- - Define user stories and acceptance criteria
350
- - Identify system boundaries and interfaces
351
- $(if [[ "$DEVELOPMENT_MODE" == "full" || "$DEVELOPMENT_MODE" == "backend-only" || "$DEVELOPMENT_MODE" == "api-only" ]]; then echo " - Specify API endpoints and data models"; fi)
352
- $(if [[ "$DEVELOPMENT_MODE" == "full" || "$DEVELOPMENT_MODE" == "frontend-only" ]]; then echo " - Define user interface requirements and user experience flows"; fi)
353
-
354
- 2. **Non-Functional Requirements**:
355
- - Security and compliance requirements
356
- - Performance benchmarks and SLAs
357
- - Scalability and availability targets
358
- - Maintainability and extensibility goals
359
-
360
- 3. **Technical Constraints**:
361
- - Technology stack decisions based on research
362
- - Integration requirements and dependencies
363
- - Deployment and infrastructure constraints
364
- - Budget and timeline considerations
365
-
366
- $(if [[ "$COMMIT_FREQUENCY" == "phase" ]]; then echo "**Commit**: 'docs: complete specification phase - defined functional/non-functional requirements and technical constraints for ${DEVELOPMENT_MODE} development'"; fi)
367
-
368
- ## PSEUDOCODE PHASE
369
- ### High-Level Architecture Design for ${DEVELOPMENT_MODE}:
370
- 1. **System Architecture**:
371
- $(if [[ "$DEVELOPMENT_MODE" == "full" || "$DEVELOPMENT_MODE" == "backend-only" ]]; then echo " - Define backend components and their responsibilities"; fi)
372
- $(if [[ "$DEVELOPMENT_MODE" == "full" || "$DEVELOPMENT_MODE" == "frontend-only" ]]; then echo " - Design frontend architecture and component hierarchy"; fi)
373
- $(if [[ "$DEVELOPMENT_MODE" == "api-only" ]]; then echo " - Define API architecture and endpoint structure"; fi)
374
- - Design data flow and communication patterns
375
- - Specify APIs and integration points
376
- - Plan error handling and recovery strategies
377
-
378
- 2. **Algorithm Design**:
379
- - Core business logic algorithms
380
- - Data processing and transformation logic
381
- - Optimization strategies and performance considerations
382
- - Security and validation algorithms
383
-
384
- $(if [[ "$SKIP_TESTS" != true ]]; then cat << 'TEST_BLOCK'
385
- 3. **Test Strategy**:
386
- - Unit testing approach (TDD London School)
387
- - Integration testing strategy
388
- - End-to-end testing scenarios
389
- - Target: ${TEST_COVERAGE_TARGET}% test coverage
390
- $(if [[ "$DEVELOPMENT_MODE" == "full" ]]; then echo " - Frontend and backend testing coordination"; fi)
391
- TEST_BLOCK
392
- fi)
393
-
394
- $(if [[ "$COMMIT_FREQUENCY" == "phase" ]]; then echo "**Commit**: 'design: complete pseudocode phase - defined system architecture, algorithms, and test strategy for ${DEVELOPMENT_MODE}'"; fi)
395
-
396
- ## ARCHITECTURE PHASE
397
- ### Detailed System Design for ${DEVELOPMENT_MODE}:
398
- 1. **Component Architecture**:
399
- - Detailed component specifications
400
- - Interface definitions and contracts
401
- - Dependency injection and inversion of control
402
- - Configuration management strategy
403
-
404
- $(if [[ "$DEVELOPMENT_MODE" == "full" || "$DEVELOPMENT_MODE" == "backend-only" || "$DEVELOPMENT_MODE" == "api-only" ]]; then cat << 'DATA_BLOCK'
405
- 2. **Data Architecture**:
406
- - Database schema design
407
- - Data access patterns and repositories
408
- - Caching strategies and data flow
409
- - Backup and recovery procedures
410
- DATA_BLOCK
411
- fi)
412
-
413
- 3. **Infrastructure Architecture**:
414
- - Deployment architecture and environments
415
- - CI/CD pipeline design
416
- - Monitoring and logging architecture
417
- - Security architecture and access controls
418
-
419
- $(if [[ "$COMMIT_FREQUENCY" == "phase" ]]; then echo "**Commit**: 'arch: complete architecture phase - detailed component, data, and infrastructure design for ${DEVELOPMENT_MODE}'"; fi)
420
-
421
- ## REFINEMENT PHASE (TDD Implementation)
422
- ### $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo "Parallel"; else echo "Sequential"; fi) Development Tracks for ${DEVELOPMENT_MODE}:
423
-
424
- $(if [[ "$DEVELOPMENT_MODE" == "full" || "$DEVELOPMENT_MODE" == "backend-only" || "$DEVELOPMENT_MODE" == "api-only" ]]; then cat << 'BACKEND_BLOCK'
425
- #### Track 1: Backend Development
426
- 1. **Setup & Infrastructure**:
427
- - Bash: Initialize project structure
428
- - Bash: Setup development environment
429
- - Bash: Configure CI/CD pipeline
430
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'feat: initialize backend infrastructure and development environment'"; fi)
431
-
432
- $(if [[ "$SKIP_TESTS" != true ]]; then cat << 'BACKEND_TDD_BLOCK'
433
- 2. **TDD Core Components** (London School):
434
- - Red: Write failing tests for core business logic
435
- - Green: Implement minimal code to pass tests
436
- - Refactor: Optimize while maintaining green tests
437
- - Target: ${TEST_COVERAGE_TARGET}% coverage
438
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'feat: implement core business logic with TDD - ${TEST_COVERAGE_TARGET}% test coverage'"; fi)
439
- BACKEND_TDD_BLOCK
440
- fi)
441
-
442
- 3. **API Layer Development**:
443
- - $(if [[ "$SKIP_TESTS" != true ]]; then echo "Red: Write API contract tests"; else echo "Implement API endpoints"; fi)
444
- - $(if [[ "$SKIP_TESTS" != true ]]; then echo "Green: Implement API endpoints"; else echo "Add input validation and error handling"; fi)
445
- - $(if [[ "$SKIP_TESTS" != true ]]; then echo "Refactor: Optimize API performance"; else echo "Optimize API performance"; fi)
446
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'feat: complete API layer with $(if [[ "$SKIP_TESTS" != true ]]; then echo "comprehensive test coverage"; else echo "validation and error handling"; fi)'"; fi)
447
- BACKEND_BLOCK
448
- fi)
449
-
450
- $(if [[ "$DEVELOPMENT_MODE" == "full" || "$DEVELOPMENT_MODE" == "frontend-only" ]]; then cat << 'FRONTEND_BLOCK'
451
- #### Track 2: Frontend Development
452
- 1. **UI Component Library**:
453
- - $(if [[ "$SKIP_TESTS" != true ]]; then echo "Red: Write component tests"; else echo "Implement UI components"; fi)
454
- - $(if [[ "$SKIP_TESTS" != true ]]; then echo "Green: Implement UI components"; else echo "Add component styling and interactions"; fi)
455
- - $(if [[ "$SKIP_TESTS" != true ]]; then echo "Refactor: Optimize for reusability"; else echo "Optimize for reusability and performance"; fi)
456
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'feat: complete UI component library with $(if [[ "$SKIP_TESTS" != true ]]; then echo "full test coverage"; else echo "optimized components"; fi)'"; fi)
457
-
458
- 2. **Application Logic**:
459
- - $(if [[ "$SKIP_TESTS" != true ]]; then echo "Red: Write application flow tests"; else echo "Implement user interactions"; fi)
460
- - $(if [[ "$SKIP_TESTS" != true ]]; then echo "Green: Implement user interactions"; else echo "Add state management and routing"; fi)
461
- - $(if [[ "$SKIP_TESTS" != true ]]; then echo "Refactor: Optimize user experience"; else echo "Optimize user experience and performance"; fi)
462
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'feat: complete frontend application logic with $(if [[ "$SKIP_TESTS" != true ]]; then echo "end-to-end tests"; else echo "optimized user experience"; fi)'"; fi)
463
- FRONTEND_BLOCK
464
- fi)
465
-
466
- #### Track 3: Integration & Quality Assurance
467
- 1. **Integration Testing**:
468
- $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo " - BatchTool: Run parallel integration test suites"; else echo " - Bash: Run integration test suites"; fi)
469
- - Bash: Execute performance benchmarks
470
- - Bash: Run security scans and audits
471
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'test: complete integration testing with performance and security validation'"; fi)
472
-
473
- 2. **Quality Gates**:
474
- $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo " - BatchTool: Run parallel quality checks (linting, analysis, documentation)"; else echo " - Bash: Run comprehensive linting and code quality analysis"; fi)
475
- - Bash: Validate documentation completeness
476
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'quality: pass all quality gates - linting, analysis, and documentation'"; fi)
477
-
478
- ### $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo "Parallel"; else echo "Sequential"; fi) Subtask Orchestration:
479
- $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo "Use BatchTool to execute independent development tracks in parallel where possible."; else echo "Execute development tracks sequentially for thorough validation."; fi)
480
-
481
- ## COMPLETION PHASE
482
- ### Final Integration & Deployment for ${DEVELOPMENT_MODE}:
483
- 1. **System Integration**:
484
- - Integrate all development tracks
485
- $(if [[ "$SKIP_TESTS" != true ]]; then echo " - Run comprehensive end-to-end tests"; fi)
486
- - Validate against original requirements
487
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'feat: complete system integration with full validation'"; fi)
488
-
489
- 2. **Documentation & Deployment**:
490
- $(if [[ "$DEVELOPMENT_MODE" == "api-only" || "$DEVELOPMENT_MODE" == "backend-only" || "$DEVELOPMENT_MODE" == "full" ]]; then echo " - Generate comprehensive API documentation"; fi)
491
- - Create deployment guides and runbooks
492
- - Setup monitoring and alerting
493
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'docs: complete documentation and deployment preparation'"; fi)
494
-
495
- 3. **Production Readiness**:
496
- - Execute production deployment checklist
497
- - Validate monitoring and observability
498
- - Conduct final security review
499
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo " - **Commit**: 'deploy: production-ready release with full monitoring and security validation'"; fi)
500
-
501
- ## SPARC METHODOLOGY ENFORCEMENT
502
- ### Quality Standards:
503
- - **Modularity**: All files ≤ 500 lines, functions ≤ 50 lines
504
- - **Security**: No hardcoded secrets, comprehensive input validation
505
- $(if [[ "$SKIP_TESTS" != true ]]; then echo "- **Testing**: ${TEST_COVERAGE_TARGET}% test coverage with TDD London School approach"; fi)
506
- - **Documentation**: Self-documenting code with strategic comments
507
- - **Performance**: Optimized critical paths with benchmarking
508
-
509
- ### Tool Utilization Strategy:
510
- $(if [[ "$SKIP_RESEARCH" != true ]]; then echo "- **WebFetchTool**: Comprehensive research and documentation gathering"; fi)
511
- $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo "- **BatchTool**: Parallel research, testing, and quality checks"; fi)
512
- - **Bash**: Git operations, CI/CD, testing, and deployment
513
- - **Edit/Replace**: Code implementation and refactoring
514
- - **GlobTool/GrepTool**: Code analysis and pattern detection
515
- $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo "- **dispatch_agent**: Complex subtask delegation"; fi)
516
-
517
- ### Commit Standards (Frequency: ${COMMIT_FREQUENCY}):
518
- - **feat**: New features and major functionality
519
- $(if [[ "$SKIP_TESTS" != true ]]; then echo "- **test**: Test implementation and coverage improvements"; fi)
520
- - **fix**: Bug fixes and issue resolution
521
- - **docs**: Documentation updates and improvements
522
- - **arch**: Architectural changes and design updates
523
- - **quality**: Code quality improvements and refactoring
524
- - **deploy**: Deployment and infrastructure changes
525
-
526
- ### $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo "Parallel"; else echo "Sequential"; fi) Execution Strategy:
527
- $(if [[ "$PARALLEL_EXECUTION" == true ]]; then cat << 'PARALLEL_BLOCK'
528
- 1. Use BatchTool for independent operations
529
- 2. Leverage dispatch_agent for complex subtasks
530
- 3. Implement concurrent development tracks
531
- 4. Optimize for maximum development velocity
532
- PARALLEL_BLOCK
533
- else cat << 'SEQUENTIAL_BLOCK'
534
- 1. Execute operations sequentially for thorough validation
535
- 2. Focus on quality over speed
536
- 3. Ensure each step is fully validated before proceeding
537
- 4. Maintain clear development progression
538
- SEQUENTIAL_BLOCK
539
- fi)
540
-
541
- ### Continuous Integration:
542
- $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo "- Commit after each $(if [[ "$COMMIT_FREQUENCY" == "phase" ]]; then echo "major phase"; else echo "feature"; fi) completion"; fi)
543
- $(if [[ "$SKIP_TESTS" != true ]]; then echo "- Run automated tests on every commit"; fi)
544
- - Validate quality gates continuously
545
- - Monitor performance and security metrics
546
-
547
- ## SUCCESS CRITERIA:
548
- $(if [[ "$SKIP_TESTS" != true ]]; then echo "- ✅ ${TEST_COVERAGE_TARGET}% test coverage achieved"; fi)
549
- - ✅ All quality gates passed
550
- - ✅ Production deployment successful
551
- - ✅ Comprehensive documentation complete
552
- - ✅ Security and performance validated
553
- - ✅ Monitoring and observability operational
554
-
555
- Continue development until all success criteria are met. $(if [[ "$PARALLEL_EXECUTION" == true ]]; then echo "Use parallel execution and subtask orchestration for maximum efficiency."; fi) $(if [[ "$COMMIT_FREQUENCY" != "manual" ]]; then echo "Commit after each $(if [[ "$COMMIT_FREQUENCY" == "phase" ]]; then echo "phase"; else echo "feature"; fi) with detailed messages."; fi) Display '<SPARC-COMPLETE>' when the entire development lifecycle is finished.
556
- " \
557
- --allowedTools "$allowed_tools" \
558
- $claude_flags
559
- }
560
-
561
- # Execute main function with all arguments
562
- main "$@"
@@ -1,17 +0,0 @@
1
- #!/bin/bash
2
- # Claude wrapper script to handle TTY issues
3
-
4
- # Check if we're in a TTY
5
- if [ -t 0 ]; then
6
- # We have a TTY, run normally
7
- exec claude "$@"
8
- else
9
- # No TTY, use script command to create a pseudo-TTY
10
- if command -v script >/dev/null 2>&1; then
11
- # Linux version of script
12
- exec script -q -c "claude $*" /dev/null
13
- else
14
- # Fallback: run without TTY (may cause issues)
15
- exec claude "$@"
16
- fi
17
- fi