red64-cli 0.1.0

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 (354) hide show
  1. package/README.md +454 -0
  2. package/dist/cli/parseArgs.d.ts +16 -0
  3. package/dist/cli/parseArgs.d.ts.map +1 -0
  4. package/dist/cli/parseArgs.js +172 -0
  5. package/dist/cli/parseArgs.js.map +1 -0
  6. package/dist/cli/validateFlags.d.ts +22 -0
  7. package/dist/cli/validateFlags.d.ts.map +1 -0
  8. package/dist/cli/validateFlags.js +24 -0
  9. package/dist/cli/validateFlags.js.map +1 -0
  10. package/dist/cli.d.ts +7 -0
  11. package/dist/cli.d.ts.map +1 -0
  12. package/dist/cli.js +90 -0
  13. package/dist/cli.js.map +1 -0
  14. package/dist/components/App.d.ts +20 -0
  15. package/dist/components/App.d.ts.map +1 -0
  16. package/dist/components/App.js +35 -0
  17. package/dist/components/App.js.map +1 -0
  18. package/dist/components/CommandRouter.d.ts +21 -0
  19. package/dist/components/CommandRouter.d.ts.map +1 -0
  20. package/dist/components/CommandRouter.js +30 -0
  21. package/dist/components/CommandRouter.js.map +1 -0
  22. package/dist/components/GlobalConfig.d.ts +26 -0
  23. package/dist/components/GlobalConfig.d.ts.map +1 -0
  24. package/dist/components/GlobalConfig.js +30 -0
  25. package/dist/components/GlobalConfig.js.map +1 -0
  26. package/dist/components/index.d.ts +9 -0
  27. package/dist/components/index.d.ts.map +1 -0
  28. package/dist/components/index.js +9 -0
  29. package/dist/components/index.js.map +1 -0
  30. package/dist/components/init/CompleteStep.d.ts +11 -0
  31. package/dist/components/init/CompleteStep.d.ts.map +1 -0
  32. package/dist/components/init/CompleteStep.js +15 -0
  33. package/dist/components/init/CompleteStep.js.map +1 -0
  34. package/dist/components/init/ErrorStep.d.ts +14 -0
  35. package/dist/components/init/ErrorStep.d.ts.map +1 -0
  36. package/dist/components/init/ErrorStep.js +36 -0
  37. package/dist/components/init/ErrorStep.js.map +1 -0
  38. package/dist/components/init/FetchStep.d.ts +15 -0
  39. package/dist/components/init/FetchStep.d.ts.map +1 -0
  40. package/dist/components/init/FetchStep.js +33 -0
  41. package/dist/components/init/FetchStep.js.map +1 -0
  42. package/dist/components/init/SetupStep.d.ts +14 -0
  43. package/dist/components/init/SetupStep.d.ts.map +1 -0
  44. package/dist/components/init/SetupStep.js +78 -0
  45. package/dist/components/init/SetupStep.js.map +1 -0
  46. package/dist/components/init/SteeringStep.d.ts +12 -0
  47. package/dist/components/init/SteeringStep.d.ts.map +1 -0
  48. package/dist/components/init/SteeringStep.js +43 -0
  49. package/dist/components/init/SteeringStep.js.map +1 -0
  50. package/dist/components/init/WelcomeStep.d.ts +12 -0
  51. package/dist/components/init/WelcomeStep.d.ts.map +1 -0
  52. package/dist/components/init/WelcomeStep.js +52 -0
  53. package/dist/components/init/WelcomeStep.js.map +1 -0
  54. package/dist/components/init/index.d.ts +11 -0
  55. package/dist/components/init/index.d.ts.map +1 -0
  56. package/dist/components/init/index.js +10 -0
  57. package/dist/components/init/index.js.map +1 -0
  58. package/dist/components/init/types.d.ts +98 -0
  59. package/dist/components/init/types.d.ts.map +1 -0
  60. package/dist/components/init/types.js +6 -0
  61. package/dist/components/init/types.js.map +1 -0
  62. package/dist/components/screens/AbortScreen.d.ts +14 -0
  63. package/dist/components/screens/AbortScreen.d.ts.map +1 -0
  64. package/dist/components/screens/AbortScreen.js +181 -0
  65. package/dist/components/screens/AbortScreen.js.map +1 -0
  66. package/dist/components/screens/ApprovalScreen.d.ts +24 -0
  67. package/dist/components/screens/ApprovalScreen.d.ts.map +1 -0
  68. package/dist/components/screens/ApprovalScreen.js +82 -0
  69. package/dist/components/screens/ApprovalScreen.js.map +1 -0
  70. package/dist/components/screens/HelpScreen.d.ts +20 -0
  71. package/dist/components/screens/HelpScreen.d.ts.map +1 -0
  72. package/dist/components/screens/HelpScreen.js +70 -0
  73. package/dist/components/screens/HelpScreen.js.map +1 -0
  74. package/dist/components/screens/InitScreen.d.ts +15 -0
  75. package/dist/components/screens/InitScreen.d.ts.map +1 -0
  76. package/dist/components/screens/InitScreen.js +420 -0
  77. package/dist/components/screens/InitScreen.js.map +1 -0
  78. package/dist/components/screens/ListScreen.d.ts +14 -0
  79. package/dist/components/screens/ListScreen.d.ts.map +1 -0
  80. package/dist/components/screens/ListScreen.js +57 -0
  81. package/dist/components/screens/ListScreen.js.map +1 -0
  82. package/dist/components/screens/ProgressScreen.d.ts +26 -0
  83. package/dist/components/screens/ProgressScreen.d.ts.map +1 -0
  84. package/dist/components/screens/ProgressScreen.js +64 -0
  85. package/dist/components/screens/ProgressScreen.js.map +1 -0
  86. package/dist/components/screens/ResumeScreen.d.ts +14 -0
  87. package/dist/components/screens/ResumeScreen.d.ts.map +1 -0
  88. package/dist/components/screens/ResumeScreen.js +108 -0
  89. package/dist/components/screens/ResumeScreen.js.map +1 -0
  90. package/dist/components/screens/ScreenProps.d.ts +12 -0
  91. package/dist/components/screens/ScreenProps.d.ts.map +1 -0
  92. package/dist/components/screens/ScreenProps.js +5 -0
  93. package/dist/components/screens/ScreenProps.js.map +1 -0
  94. package/dist/components/screens/StartScreen.d.ts +26 -0
  95. package/dist/components/screens/StartScreen.d.ts.map +1 -0
  96. package/dist/components/screens/StartScreen.js +1021 -0
  97. package/dist/components/screens/StartScreen.js.map +1 -0
  98. package/dist/components/screens/StatusScreen.d.ts +14 -0
  99. package/dist/components/screens/StatusScreen.d.ts.map +1 -0
  100. package/dist/components/screens/StatusScreen.js +115 -0
  101. package/dist/components/screens/StatusScreen.js.map +1 -0
  102. package/dist/components/screens/index.d.ts +15 -0
  103. package/dist/components/screens/index.d.ts.map +1 -0
  104. package/dist/components/screens/index.js +12 -0
  105. package/dist/components/screens/index.js.map +1 -0
  106. package/dist/components/ui/ErrorBoundary.d.ts +34 -0
  107. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  108. package/dist/components/ui/ErrorBoundary.js +37 -0
  109. package/dist/components/ui/ErrorBoundary.js.map +1 -0
  110. package/dist/components/ui/ErrorDisplay.d.ts +20 -0
  111. package/dist/components/ui/ErrorDisplay.d.ts.map +1 -0
  112. package/dist/components/ui/ErrorDisplay.js +12 -0
  113. package/dist/components/ui/ErrorDisplay.js.map +1 -0
  114. package/dist/components/ui/ErrorRecoveryPrompt.d.ts +30 -0
  115. package/dist/components/ui/ErrorRecoveryPrompt.d.ts.map +1 -0
  116. package/dist/components/ui/ErrorRecoveryPrompt.js +66 -0
  117. package/dist/components/ui/ErrorRecoveryPrompt.js.map +1 -0
  118. package/dist/components/ui/FeatureSidebar.d.ts +27 -0
  119. package/dist/components/ui/FeatureSidebar.d.ts.map +1 -0
  120. package/dist/components/ui/FeatureSidebar.js +166 -0
  121. package/dist/components/ui/FeatureSidebar.js.map +1 -0
  122. package/dist/components/ui/FlowTable.d.ts +21 -0
  123. package/dist/components/ui/FlowTable.d.ts.map +1 -0
  124. package/dist/components/ui/FlowTable.js +105 -0
  125. package/dist/components/ui/FlowTable.js.map +1 -0
  126. package/dist/components/ui/Header.d.ts +20 -0
  127. package/dist/components/ui/Header.d.ts.map +1 -0
  128. package/dist/components/ui/Header.js +11 -0
  129. package/dist/components/ui/Header.js.map +1 -0
  130. package/dist/components/ui/OutputRegion.d.ts +20 -0
  131. package/dist/components/ui/OutputRegion.d.ts.map +1 -0
  132. package/dist/components/ui/OutputRegion.js +14 -0
  133. package/dist/components/ui/OutputRegion.js.map +1 -0
  134. package/dist/components/ui/PhaseProgressView.d.ts +23 -0
  135. package/dist/components/ui/PhaseProgressView.d.ts.map +1 -0
  136. package/dist/components/ui/PhaseProgressView.js +117 -0
  137. package/dist/components/ui/PhaseProgressView.js.map +1 -0
  138. package/dist/components/ui/ProgressBar.d.ts +20 -0
  139. package/dist/components/ui/ProgressBar.d.ts.map +1 -0
  140. package/dist/components/ui/ProgressBar.js +12 -0
  141. package/dist/components/ui/ProgressBar.js.map +1 -0
  142. package/dist/components/ui/SelectMenu.d.ts +27 -0
  143. package/dist/components/ui/SelectMenu.d.ts.map +1 -0
  144. package/dist/components/ui/SelectMenu.js +21 -0
  145. package/dist/components/ui/SelectMenu.js.map +1 -0
  146. package/dist/components/ui/Spinner.d.ts +18 -0
  147. package/dist/components/ui/Spinner.d.ts.map +1 -0
  148. package/dist/components/ui/Spinner.js +10 -0
  149. package/dist/components/ui/Spinner.js.map +1 -0
  150. package/dist/components/ui/StatusLine.d.ts +21 -0
  151. package/dist/components/ui/StatusLine.d.ts.map +1 -0
  152. package/dist/components/ui/StatusLine.js +30 -0
  153. package/dist/components/ui/StatusLine.js.map +1 -0
  154. package/dist/components/ui/index.d.ts +16 -0
  155. package/dist/components/ui/index.d.ts.map +1 -0
  156. package/dist/components/ui/index.js +16 -0
  157. package/dist/components/ui/index.js.map +1 -0
  158. package/dist/services/AgentInvoker.d.ts +20 -0
  159. package/dist/services/AgentInvoker.d.ts.map +1 -0
  160. package/dist/services/AgentInvoker.js +282 -0
  161. package/dist/services/AgentInvoker.js.map +1 -0
  162. package/dist/services/BranchService.d.ts +28 -0
  163. package/dist/services/BranchService.d.ts.map +1 -0
  164. package/dist/services/BranchService.js +114 -0
  165. package/dist/services/BranchService.js.map +1 -0
  166. package/dist/services/CacheService.d.ts +57 -0
  167. package/dist/services/CacheService.d.ts.map +1 -0
  168. package/dist/services/CacheService.js +208 -0
  169. package/dist/services/CacheService.js.map +1 -0
  170. package/dist/services/ClaudeErrorDetector.d.ts +45 -0
  171. package/dist/services/ClaudeErrorDetector.d.ts.map +1 -0
  172. package/dist/services/ClaudeErrorDetector.js +207 -0
  173. package/dist/services/ClaudeErrorDetector.js.map +1 -0
  174. package/dist/services/ClaudeHealthCheck.d.ts +37 -0
  175. package/dist/services/ClaudeHealthCheck.d.ts.map +1 -0
  176. package/dist/services/ClaudeHealthCheck.js +197 -0
  177. package/dist/services/ClaudeHealthCheck.js.map +1 -0
  178. package/dist/services/CommitService.d.ts +36 -0
  179. package/dist/services/CommitService.d.ts.map +1 -0
  180. package/dist/services/CommitService.js +159 -0
  181. package/dist/services/CommitService.js.map +1 -0
  182. package/dist/services/ConfigService.d.ts +49 -0
  183. package/dist/services/ConfigService.d.ts.map +1 -0
  184. package/dist/services/ConfigService.js +57 -0
  185. package/dist/services/ConfigService.js.map +1 -0
  186. package/dist/services/DockerRunner.d.ts +45 -0
  187. package/dist/services/DockerRunner.d.ts.map +1 -0
  188. package/dist/services/DockerRunner.js +170 -0
  189. package/dist/services/DockerRunner.js.map +1 -0
  190. package/dist/services/ExtendedFlowStateMachine.d.ts +31 -0
  191. package/dist/services/ExtendedFlowStateMachine.d.ts.map +1 -0
  192. package/dist/services/ExtendedFlowStateMachine.js +302 -0
  193. package/dist/services/ExtendedFlowStateMachine.js.map +1 -0
  194. package/dist/services/FeatureValidator.d.ts +26 -0
  195. package/dist/services/FeatureValidator.d.ts.map +1 -0
  196. package/dist/services/FeatureValidator.js +48 -0
  197. package/dist/services/FeatureValidator.js.map +1 -0
  198. package/dist/services/FlowStateMachine.d.ts +26 -0
  199. package/dist/services/FlowStateMachine.d.ts.map +1 -0
  200. package/dist/services/FlowStateMachine.js +177 -0
  201. package/dist/services/FlowStateMachine.js.map +1 -0
  202. package/dist/services/GitHubService.d.ts +72 -0
  203. package/dist/services/GitHubService.d.ts.map +1 -0
  204. package/dist/services/GitHubService.js +150 -0
  205. package/dist/services/GitHubService.js.map +1 -0
  206. package/dist/services/GitStatusChecker.d.ts +29 -0
  207. package/dist/services/GitStatusChecker.d.ts.map +1 -0
  208. package/dist/services/GitStatusChecker.js +127 -0
  209. package/dist/services/GitStatusChecker.js.map +1 -0
  210. package/dist/services/PRCreatorService.d.ts +59 -0
  211. package/dist/services/PRCreatorService.d.ts.map +1 -0
  212. package/dist/services/PRCreatorService.js +212 -0
  213. package/dist/services/PRCreatorService.js.map +1 -0
  214. package/dist/services/PRStatusFetcher.d.ts +39 -0
  215. package/dist/services/PRStatusFetcher.d.ts.map +1 -0
  216. package/dist/services/PRStatusFetcher.js +144 -0
  217. package/dist/services/PRStatusFetcher.js.map +1 -0
  218. package/dist/services/PhaseExecutor.d.ts +29 -0
  219. package/dist/services/PhaseExecutor.d.ts.map +1 -0
  220. package/dist/services/PhaseExecutor.js +125 -0
  221. package/dist/services/PhaseExecutor.js.map +1 -0
  222. package/dist/services/SpecInitService.d.ts +33 -0
  223. package/dist/services/SpecInitService.d.ts.map +1 -0
  224. package/dist/services/SpecInitService.js +168 -0
  225. package/dist/services/SpecInitService.js.map +1 -0
  226. package/dist/services/StateStore.d.ts +24 -0
  227. package/dist/services/StateStore.d.ts.map +1 -0
  228. package/dist/services/StateStore.js +171 -0
  229. package/dist/services/StateStore.js.map +1 -0
  230. package/dist/services/TaskParser.d.ts +44 -0
  231. package/dist/services/TaskParser.d.ts.map +1 -0
  232. package/dist/services/TaskParser.js +167 -0
  233. package/dist/services/TaskParser.js.map +1 -0
  234. package/dist/services/TaskRunner.d.ts +52 -0
  235. package/dist/services/TaskRunner.d.ts.map +1 -0
  236. package/dist/services/TaskRunner.js +135 -0
  237. package/dist/services/TaskRunner.js.map +1 -0
  238. package/dist/services/TemplateService.d.ts +73 -0
  239. package/dist/services/TemplateService.d.ts.map +1 -0
  240. package/dist/services/TemplateService.js +263 -0
  241. package/dist/services/TemplateService.js.map +1 -0
  242. package/dist/services/WorktreeService.d.ts +51 -0
  243. package/dist/services/WorktreeService.d.ts.map +1 -0
  244. package/dist/services/WorktreeService.js +204 -0
  245. package/dist/services/WorktreeService.js.map +1 -0
  246. package/dist/services/index.d.ts +25 -0
  247. package/dist/services/index.d.ts.map +1 -0
  248. package/dist/services/index.js +25 -0
  249. package/dist/services/index.js.map +1 -0
  250. package/dist/types/extended-flow.d.ts +167 -0
  251. package/dist/types/extended-flow.d.ts.map +1 -0
  252. package/dist/types/extended-flow.js +103 -0
  253. package/dist/types/extended-flow.js.map +1 -0
  254. package/dist/types/index.d.ts +210 -0
  255. package/dist/types/index.d.ts.map +1 -0
  256. package/dist/types/index.js +28 -0
  257. package/dist/types/index.js.map +1 -0
  258. package/dist/utils/git.d.ts +41 -0
  259. package/dist/utils/git.d.ts.map +1 -0
  260. package/dist/utils/git.js +68 -0
  261. package/dist/utils/git.js.map +1 -0
  262. package/dist/utils/index.d.ts +6 -0
  263. package/dist/utils/index.d.ts.map +1 -0
  264. package/dist/utils/index.js +6 -0
  265. package/dist/utils/index.js.map +1 -0
  266. package/dist/utils/paths.d.ts +30 -0
  267. package/dist/utils/paths.d.ts.map +1 -0
  268. package/dist/utils/paths.js +43 -0
  269. package/dist/utils/paths.js.map +1 -0
  270. package/framework/.red64/settings/rules/design-discovery-full.md +93 -0
  271. package/framework/.red64/settings/rules/design-discovery-light.md +49 -0
  272. package/framework/.red64/settings/rules/design-principles.md +182 -0
  273. package/framework/.red64/settings/rules/design-review.md +110 -0
  274. package/framework/.red64/settings/rules/ears-format.md +49 -0
  275. package/framework/.red64/settings/rules/gap-analysis.md +144 -0
  276. package/framework/.red64/settings/rules/steering-principles.md +90 -0
  277. package/framework/.red64/settings/rules/tasks-generation.md +131 -0
  278. package/framework/.red64/settings/rules/tasks-parallel-analysis.md +34 -0
  279. package/framework/.red64/settings/templates/flow-state.json +48 -0
  280. package/framework/.red64/settings/templates/specs/design.md +276 -0
  281. package/framework/.red64/settings/templates/specs/init.json +24 -0
  282. package/framework/.red64/settings/templates/specs/requirements-init.md +9 -0
  283. package/framework/.red64/settings/templates/specs/requirements.md +26 -0
  284. package/framework/.red64/settings/templates/specs/research.md +61 -0
  285. package/framework/.red64/settings/templates/specs/tasks.md +21 -0
  286. package/framework/.red64/settings/templates/steering/product.md +18 -0
  287. package/framework/.red64/settings/templates/steering/structure.md +41 -0
  288. package/framework/.red64/settings/templates/steering/tech.md +45 -0
  289. package/framework/.red64/settings/templates/steering-custom/api-standards.md +69 -0
  290. package/framework/.red64/settings/templates/steering-custom/authentication.md +67 -0
  291. package/framework/.red64/settings/templates/steering-custom/database.md +46 -0
  292. package/framework/.red64/settings/templates/steering-custom/deployment.md +54 -0
  293. package/framework/.red64/settings/templates/steering-custom/error-handling.md +59 -0
  294. package/framework/.red64/settings/templates/steering-custom/security.md +55 -0
  295. package/framework/.red64/settings/templates/steering-custom/testing.md +47 -0
  296. package/framework/agents/claude/.claude/agents/red64/spec-design.md +174 -0
  297. package/framework/agents/claude/.claude/agents/red64/spec-impl.md +120 -0
  298. package/framework/agents/claude/.claude/agents/red64/spec-requirements.md +102 -0
  299. package/framework/agents/claude/.claude/agents/red64/spec-tasks.md +141 -0
  300. package/framework/agents/claude/.claude/agents/red64/steering-custom.md +147 -0
  301. package/framework/agents/claude/.claude/agents/red64/steering.md +163 -0
  302. package/framework/agents/claude/.claude/agents/red64/validate-design.md +98 -0
  303. package/framework/agents/claude/.claude/agents/red64/validate-gap.md +99 -0
  304. package/framework/agents/claude/.claude/agents/red64/validate-impl.md +146 -0
  305. package/framework/agents/claude/.claude/commands/red64/spec-design.md +64 -0
  306. package/framework/agents/claude/.claude/commands/red64/spec-impl.md +68 -0
  307. package/framework/agents/claude/.claude/commands/red64/spec-init.md +65 -0
  308. package/framework/agents/claude/.claude/commands/red64/spec-quick.md +360 -0
  309. package/framework/agents/claude/.claude/commands/red64/spec-requirements.md +62 -0
  310. package/framework/agents/claude/.claude/commands/red64/spec-status.md +87 -0
  311. package/framework/agents/claude/.claude/commands/red64/spec-tasks.md +75 -0
  312. package/framework/agents/claude/.claude/commands/red64/steering-custom.md +59 -0
  313. package/framework/agents/claude/.claude/commands/red64/steering.md +62 -0
  314. package/framework/agents/claude/.claude/commands/red64/validate-design.md +59 -0
  315. package/framework/agents/claude/.claude/commands/red64/validate-gap.md +53 -0
  316. package/framework/agents/claude/.claude/commands/red64/validate-impl.md +68 -0
  317. package/framework/agents/claude/docs/CLAUDE.md +45 -0
  318. package/framework/agents/codex/.codex/agents/red64/spec-design.md +174 -0
  319. package/framework/agents/codex/.codex/agents/red64/spec-impl.md +120 -0
  320. package/framework/agents/codex/.codex/agents/red64/spec-requirements.md +102 -0
  321. package/framework/agents/codex/.codex/agents/red64/spec-tasks.md +141 -0
  322. package/framework/agents/codex/.codex/agents/red64/steering-custom.md +147 -0
  323. package/framework/agents/codex/.codex/agents/red64/steering.md +163 -0
  324. package/framework/agents/codex/.codex/agents/red64/validate-design.md +98 -0
  325. package/framework/agents/codex/.codex/agents/red64/validate-gap.md +99 -0
  326. package/framework/agents/codex/.codex/agents/red64/validate-impl.md +146 -0
  327. package/framework/agents/codex/.codex/commands/red64/spec-design.md +64 -0
  328. package/framework/agents/codex/.codex/commands/red64/spec-impl.md +68 -0
  329. package/framework/agents/codex/.codex/commands/red64/spec-init.md +65 -0
  330. package/framework/agents/codex/.codex/commands/red64/spec-quick.md +360 -0
  331. package/framework/agents/codex/.codex/commands/red64/spec-requirements.md +62 -0
  332. package/framework/agents/codex/.codex/commands/red64/spec-status.md +87 -0
  333. package/framework/agents/codex/.codex/commands/red64/spec-tasks.md +75 -0
  334. package/framework/agents/codex/.codex/commands/red64/steering-custom.md +59 -0
  335. package/framework/agents/codex/.codex/commands/red64/steering.md +62 -0
  336. package/framework/agents/codex/.codex/commands/red64/validate-design.md +59 -0
  337. package/framework/agents/codex/.codex/commands/red64/validate-gap.md +53 -0
  338. package/framework/agents/codex/.codex/commands/red64/validate-impl.md +68 -0
  339. package/framework/agents/codex/docs/AGENTS.md +68 -0
  340. package/framework/agents/gemini/commands.toml +607 -0
  341. package/framework/agents/gemini/docs/GEMINI.md +45 -0
  342. package/framework/stacks/generic/product.md +27 -0
  343. package/framework/stacks/generic/structure.md +46 -0
  344. package/framework/stacks/generic/tech.md +47 -0
  345. package/framework/stacks/node/product.md +27 -0
  346. package/framework/stacks/node/structure.md +82 -0
  347. package/framework/stacks/node/tech.md +63 -0
  348. package/framework/stacks/python/product.md +27 -0
  349. package/framework/stacks/python/structure.md +78 -0
  350. package/framework/stacks/python/tech.md +64 -0
  351. package/framework/stacks/react/product.md +27 -0
  352. package/framework/stacks/react/structure.md +76 -0
  353. package/framework/stacks/react/tech.md +65 -0
  354. package/package.json +47 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateFlags.js","sourceRoot":"","sources":["../../src/cli/validateFlags.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiBH;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,KAAkB;IAC9C,MAAM,MAAM,GAA0B,EAAE,CAAC;IAEzC,6DAA6D;IAC7D,IAAI,KAAK,CAAC,IAAI,KAAK,EAAE,EAAE,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAChD,CAAC;IAED,4DAA4D;IAC5D,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;QACzC,MAAM,CAAC,IAAI,CAAC,6DAA6D,CAAC,CAAC;IAC7E,CAAC;IAED,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;QAC1B,MAAM;KACP,CAAC;AACJ,CAAC"}
package/dist/cli.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * CLI entry point for red64
4
+ * Requirements: 3.1, 3.2, 3.4, 4.7, 8.1, 8.4, 8.5
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.tsx"],"names":[],"mappings":";AACA;;;GAGG"}
package/dist/cli.js ADDED
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env node
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ /**
4
+ * CLI entry point for red64
5
+ * Requirements: 3.1, 3.2, 3.4, 4.7, 8.1, 8.4, 8.5
6
+ */
7
+ import { render } from 'ink';
8
+ import meow from 'meow';
9
+ import { App } from './components/App.js';
10
+ import { CommandRouter } from './components/CommandRouter.js';
11
+ import { parseArgs, HELP_TEXT } from './cli/parseArgs.js';
12
+ import { validateFlags } from './cli/validateFlags.js';
13
+ /**
14
+ * Main CLI entry point
15
+ * Requirements: 3.2 - Display help menu when invoked without arguments
16
+ */
17
+ function main() {
18
+ // Use meow for --version handling only
19
+ // We handle --help ourselves to support command-specific help
20
+ const cli = meow(HELP_TEXT, {
21
+ importMeta: import.meta,
22
+ autoHelp: false, // Disable auto-help to handle command-specific help
23
+ flags: {
24
+ agent: {
25
+ type: 'string',
26
+ shortFlag: 'a',
27
+ default: 'claude'
28
+ },
29
+ model: {
30
+ type: 'string',
31
+ shortFlag: 'm'
32
+ },
33
+ skipPermissions: {
34
+ type: 'boolean',
35
+ shortFlag: 's',
36
+ default: false
37
+ },
38
+ brownfield: {
39
+ type: 'boolean',
40
+ shortFlag: 'b',
41
+ default: false
42
+ },
43
+ greenfield: {
44
+ type: 'boolean',
45
+ shortFlag: 'g',
46
+ default: true
47
+ },
48
+ tier: {
49
+ type: 'string',
50
+ shortFlag: 't'
51
+ },
52
+ help: {
53
+ type: 'boolean',
54
+ shortFlag: 'h',
55
+ default: false
56
+ },
57
+ version: {
58
+ type: 'boolean',
59
+ shortFlag: 'v',
60
+ default: false
61
+ }
62
+ }
63
+ });
64
+ // Parse arguments using our custom parser for more control
65
+ const config = parseArgs(process.argv.slice(2));
66
+ // Validate flags
67
+ const validation = validateFlags(config.flags);
68
+ if (!validation.valid) {
69
+ console.error(validation.errors.join('\n'));
70
+ process.exit(1);
71
+ }
72
+ // Handle version from meow
73
+ if (cli.flags.version) {
74
+ cli.showVersion();
75
+ return;
76
+ }
77
+ // Handle help - show general help if no command, otherwise let CommandRouter handle it
78
+ if (config.flags.help && !config.command) {
79
+ cli.showHelp();
80
+ return;
81
+ }
82
+ // Clear the screen for a fresh start
83
+ console.clear();
84
+ // Render the Ink application
85
+ // Requirements: 3.3 - Use Ink framework for rendering terminal UI components
86
+ render(_jsx(App, { config: config, children: _jsx(CommandRouter, { command: config.command, args: config.args, flags: config.flags }) }));
87
+ }
88
+ // Run main
89
+ main();
90
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":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gBACd,OAAO,EAAE,KAAK;aACf;SACF;KACF,CAAC,CAAC;IAEH,2DAA2D;IAC3D,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEhD,iBAAiB;IACjB,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/C,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACtB,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,2BAA2B;IAC3B,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QACtB,GAAG,CAAC,WAAW,EAAE,CAAC;QAClB,OAAO;IACT,CAAC;IAED,uFAAuF;IACvF,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACzC,GAAG,CAAC,QAAQ,EAAE,CAAC;QACf,OAAO;IACT,CAAC;IAED,qCAAqC;IACrC,OAAO,CAAC,KAAK,EAAE,CAAC;IAEhB,6BAA6B;IAC7B,6EAA6E;IAC7E,MAAM,CACJ,KAAC,GAAG,IAAC,MAAM,EAAE,MAAM,YACjB,KAAC,aAAa,IACZ,OAAO,EAAE,MAAM,CAAC,OAAO,EACvB,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,KAAK,EAAE,MAAM,CAAC,KAAK,GACnB,GACE,CACP,CAAC;AACJ,CAAC;AAED,WAAW;AACX,IAAI,EAAE,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Root App component for red64 CLI
3
+ * Requirements: 3.3
4
+ */
5
+ import React, { type ReactNode } from 'react';
6
+ import type { CLIConfig } from '../types/index.js';
7
+ /**
8
+ * App component props
9
+ */
10
+ interface AppProps {
11
+ readonly config: CLIConfig;
12
+ readonly children: ReactNode;
13
+ }
14
+ /**
15
+ * Root application component
16
+ * Requirements: 3.3 - Root React component providing global context and error boundary
17
+ */
18
+ export declare const App: React.FC<AppProps>;
19
+ export {};
20
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/components/App.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAiDnD;;GAEG;AACH,UAAU,QAAQ;IAChB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B;AAED;;;GAGG;AACH,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAQlC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Root App component for red64 CLI
4
+ * Requirements: 3.3
5
+ */
6
+ import { Component } from 'react';
7
+ import { Box, Text } from 'ink';
8
+ import { GlobalConfigProvider } from './GlobalConfig.js';
9
+ /**
10
+ * Error boundary component to catch and display component errors gracefully
11
+ * Requirements: 3.3 - Wrap children in error boundary
12
+ */
13
+ class ErrorBoundary extends Component {
14
+ constructor(props) {
15
+ super(props);
16
+ this.state = { hasError: false, error: null };
17
+ }
18
+ static getDerivedStateFromError(error) {
19
+ return { hasError: true, error };
20
+ }
21
+ render() {
22
+ if (this.state.hasError && this.state.error) {
23
+ return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsxs(Text, { color: "red", bold: true, children: ["Error: ", this.state.error.message] }), _jsx(Text, { dimColor: true, children: "An unexpected error occurred. Please try again or report this issue." })] }));
24
+ }
25
+ return this.props.children;
26
+ }
27
+ }
28
+ /**
29
+ * Root application component
30
+ * Requirements: 3.3 - Root React component providing global context and error boundary
31
+ */
32
+ export const App = ({ config, children }) => {
33
+ return (_jsx(GlobalConfigProvider, { config: config, children: _jsx(ErrorBoundary, { children: children }) }));
34
+ };
35
+ //# sourceMappingURL=App.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.js","sourceRoot":"","sources":["../../src/components/App.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,OAAc,EAAE,SAAS,EAAkB,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAkBzD;;;GAGG;AACH,MAAM,aAAc,SAAQ,SAAiD;IAC3E,YAAY,KAAyB;QACnC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAChD,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAY;QAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACnC,CAAC;IAED,MAAM;QACJ,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAC5C,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,aACpC,MAAC,IAAI,IAAC,KAAK,EAAC,KAAK,EAAC,IAAI,8BACZ,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,IAC3B,EACP,KAAC,IAAI,IAAC,QAAQ,2FAEP,IACH,CACP,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7B,CAAC;CACF;AAUD;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAuB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,CACL,KAAC,oBAAoB,IAAC,MAAM,EAAE,MAAM,YAClC,KAAC,aAAa,cACX,QAAQ,GACK,GACK,CACxB,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Command router component
3
+ * Requirements: 4.1-4.7
4
+ */
5
+ import React from 'react';
6
+ import type { Command, GlobalFlags } from '../types/index.js';
7
+ /**
8
+ * Props for CommandRouter
9
+ */
10
+ interface CommandRouterProps {
11
+ readonly command: Command;
12
+ readonly args: readonly string[];
13
+ readonly flags: GlobalFlags;
14
+ }
15
+ /**
16
+ * Route commands to appropriate screen components
17
+ * Requirements: 4.1-4.7 - Map command string to screen component
18
+ */
19
+ export declare const CommandRouter: React.FC<CommandRouterProps>;
20
+ export {};
21
+ //# sourceMappingURL=CommandRouter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandRouter.d.ts","sourceRoot":"","sources":["../../src/components/CommandRouter.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAU9D;;GAEG;AACH,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4BtD,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { HelpScreen, InitScreen, StartScreen, StatusScreen, ListScreen, AbortScreen } from './screens/index.js';
3
+ /**
4
+ * Route commands to appropriate screen components
5
+ * Requirements: 4.1-4.7 - Map command string to screen component
6
+ */
7
+ export const CommandRouter = ({ command, args, flags }) => {
8
+ const screenProps = { args, flags };
9
+ // If help flag is set, show help for the specific command
10
+ if (flags.help && command && command !== 'help') {
11
+ return _jsx(HelpScreen, { ...screenProps, helpCommand: command });
12
+ }
13
+ switch (command) {
14
+ case 'init':
15
+ return _jsx(InitScreen, { ...screenProps });
16
+ case 'start':
17
+ return _jsx(StartScreen, { ...screenProps });
18
+ case 'status':
19
+ return _jsx(StatusScreen, { ...screenProps });
20
+ case 'list':
21
+ return _jsx(ListScreen, { ...screenProps });
22
+ case 'abort':
23
+ return _jsx(AbortScreen, { ...screenProps });
24
+ case 'help':
25
+ case undefined:
26
+ default:
27
+ return _jsx(HelpScreen, { ...screenProps });
28
+ }
29
+ };
30
+ //# sourceMappingURL=CommandRouter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandRouter.js","sourceRoot":"","sources":["../../src/components/CommandRouter.tsx"],"names":[],"mappings":";AAOA,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAW5B;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,OAAO,EACP,IAAI,EACJ,KAAK,EACN,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAEpC,0DAA0D;IAC1D,IAAI,KAAK,CAAC,IAAI,IAAI,OAAO,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QAChD,OAAO,KAAC,UAAU,OAAK,WAAW,EAAE,WAAW,EAAE,OAAO,GAAI,CAAC;IAC/D,CAAC;IAED,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,KAAC,UAAU,OAAK,WAAW,GAAI,CAAC;QACzC,KAAK,OAAO;YACV,OAAO,KAAC,WAAW,OAAK,WAAW,GAAI,CAAC;QAC1C,KAAK,QAAQ;YACX,OAAO,KAAC,YAAY,OAAK,WAAW,GAAI,CAAC;QAC3C,KAAK,MAAM;YACT,OAAO,KAAC,UAAU,OAAK,WAAW,GAAI,CAAC;QACzC,KAAK,OAAO;YACV,OAAO,KAAC,WAAW,OAAK,WAAW,GAAI,CAAC;QAC1C,KAAK,MAAM,CAAC;QACZ,KAAK,SAAS,CAAC;QACf;YACE,OAAO,KAAC,UAAU,OAAK,WAAW,GAAI,CAAC;IAC3C,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Global configuration context for red64 CLI
3
+ * Requirements: 3.3
4
+ */
5
+ import React, { type ReactNode } from 'react';
6
+ import type { CLIConfig } from '../types/index.js';
7
+ /**
8
+ * Props for GlobalConfigProvider
9
+ */
10
+ interface GlobalConfigProviderProps {
11
+ readonly config: CLIConfig;
12
+ readonly children: ReactNode;
13
+ }
14
+ /**
15
+ * Provider component for global CLI configuration
16
+ * Requirements: 3.3 - Provide GlobalConfig context for sharing CLI configuration
17
+ */
18
+ export declare const GlobalConfigProvider: React.FC<GlobalConfigProviderProps>;
19
+ /**
20
+ * Hook for accessing global CLI configuration
21
+ * Requirements: 3.3 - useGlobalConfig hook for accessing flags throughout component tree
22
+ * @throws Error if used outside of GlobalConfigProvider
23
+ */
24
+ export declare function useGlobalConfig(): CLIConfig;
25
+ export {};
26
+ //# sourceMappingURL=GlobalConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalConfig.d.ts","sourceRoot":"","sources":["../../src/components/GlobalConfig.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAOnD;;GAEG;AACH,UAAU,yBAAyB;IACjC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CASpE,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,SAAS,CAQ3C"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Global configuration context for red64 CLI
4
+ * Requirements: 3.3
5
+ */
6
+ import { createContext, useContext } from 'react';
7
+ /**
8
+ * Context for sharing CLI configuration throughout component tree
9
+ */
10
+ const GlobalConfigContext = createContext(null);
11
+ /**
12
+ * Provider component for global CLI configuration
13
+ * Requirements: 3.3 - Provide GlobalConfig context for sharing CLI configuration
14
+ */
15
+ export const GlobalConfigProvider = ({ config, children }) => {
16
+ return (_jsx(GlobalConfigContext.Provider, { value: config, children: children }));
17
+ };
18
+ /**
19
+ * Hook for accessing global CLI configuration
20
+ * Requirements: 3.3 - useGlobalConfig hook for accessing flags throughout component tree
21
+ * @throws Error if used outside of GlobalConfigProvider
22
+ */
23
+ export function useGlobalConfig() {
24
+ const context = useContext(GlobalConfigContext);
25
+ if (context === null) {
26
+ throw new Error('useGlobalConfig must be used within a GlobalConfigProvider');
27
+ }
28
+ return context;
29
+ }
30
+ //# sourceMappingURL=GlobalConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalConfig.js","sourceRoot":"","sources":["../../src/components/GlobalConfig.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,OAAc,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AAGzE;;GAEG;AACH,MAAM,mBAAmB,GAAG,aAAa,CAAmB,IAAI,CAAC,CAAC;AAUlE;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAwC,CAAC,EACxE,MAAM,EACN,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,YACxC,QAAQ,GACoB,CAChC,CAAC;AACJ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAEhD,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAChF,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Components index
3
+ */
4
+ export { App } from './App.js';
5
+ export { CommandRouter } from './CommandRouter.js';
6
+ export { GlobalConfigProvider, useGlobalConfig } from './GlobalConfig.js';
7
+ export * from './screens/index.js';
8
+ export * from './ui/index.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC1E,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Components index
3
+ */
4
+ export { App } from './App.js';
5
+ export { CommandRouter } from './CommandRouter.js';
6
+ export { GlobalConfigProvider, useGlobalConfig } from './GlobalConfig.js';
7
+ export * from './screens/index.js';
8
+ export * from './ui/index.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC1E,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * CompleteStep component
3
+ * Task 5.5: Display summary and next steps
4
+ */
5
+ import React from 'react';
6
+ import type { InitSummary } from './types.js';
7
+ export interface CompleteStepProps {
8
+ readonly summary: InitSummary;
9
+ }
10
+ export declare const CompleteStep: React.FC<CompleteStepProps>;
11
+ //# sourceMappingURL=CompleteStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompleteStep.d.ts","sourceRoot":"","sources":["../../../src/components/init/CompleteStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC/B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoDpD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ export const CompleteStep = ({ summary }) => {
4
+ const { createdDirs, appliedStack, steeringFiles, gitInitialized, gitCommitted } = summary;
5
+ // Format created items compactly
6
+ const createdItems = [
7
+ ...createdDirs.slice(0, 3),
8
+ ...(createdDirs.length > 3 ? [`+${createdDirs.length - 3} more`] : [])
9
+ ].join(', ');
10
+ const steeringList = steeringFiles.length > 0
11
+ ? steeringFiles.map(f => f.replace('.md', '')).join(', ')
12
+ : 'none';
13
+ return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: "green", children: "\u2713 Red64 initialized successfully!" }) }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsxs(Box, { children: [_jsx(Text, { dimColor: true, children: "Stack: " }), _jsx(Text, { children: appliedStack })] }), _jsxs(Box, { children: [_jsx(Text, { dimColor: true, children: "Steering: " }), _jsx(Text, { children: steeringList })] }), _jsxs(Box, { children: [_jsx(Text, { dimColor: true, children: "Created: " }), _jsx(Text, { children: createdItems })] }), gitInitialized && (_jsxs(Box, { children: [_jsx(Text, { dimColor: true, children: "Git: " }), _jsx(Text, { children: gitCommitted ? 'initialized & committed' : 'initialized' })] }))] }), _jsxs(Box, { flexDirection: "column", borderStyle: "single", borderColor: "gray", paddingX: 1, children: [_jsx(Text, { bold: true, children: "Next steps:" }), _jsxs(Box, { marginTop: 1, flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "1." }), " Review steering docs in ", _jsx(Text, { dimColor: true, children: ".red64/steering/" })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "2." }), " Start a feature \u2192 ", _jsx(Text, { dimColor: true, children: "red64 start my-feature \"description\"" })] }), _jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: "3." }), " View commands \u2192 ", _jsx(Text, { dimColor: true, children: "red64 help" })] })] })] })] }));
14
+ };
15
+ //# sourceMappingURL=CompleteStep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompleteStep.js","sourceRoot":"","sources":["../../../src/components/init/CompleteStep.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAOhC,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IAE3F,iCAAiC;IACjC,MAAM,YAAY,GAAG;QACnB,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;QAC1B,GAAG,CAAC,WAAW,CAAC,MAA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EAAE,CAAC,aAC7E,KAAC,IAAI,IAAC,IAAI,kCAAmB,EAC7B,MAAC,GAAG,IAAC,SAAS,EAAE,CAAC,EAAE,aAAa,EAAC,QAAQ,aACvC,MAAC,IAAI,eAAC,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,mBAAU,+BAAyB,KAAC,IAAI,IAAC,QAAQ,uCAAwB,IAAO,EACxG,MAAC,IAAI,eAAC,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,mBAAU,gCAAqB,KAAC,IAAI,IAAC,QAAQ,6DAA4C,IAAO,EACxH,MAAC,IAAI,eAAC,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,mBAAU,gCAAqB,KAAC,IAAI,IAAC,QAAQ,iCAAkB,IAAO,IAC1F,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * ErrorStep component
3
+ * Display error with recovery suggestions
4
+ */
5
+ import React from 'react';
6
+ import type { InitError } from './types.js';
7
+ export interface ErrorStepProps {
8
+ readonly error: InitError;
9
+ readonly onRetry?: () => void;
10
+ readonly onUseCache?: () => void;
11
+ readonly onAbort?: () => void;
12
+ }
13
+ export declare const ErrorStep: React.FC<ErrorStepProps>;
14
+ //# sourceMappingURL=ErrorStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorStep.d.ts","sourceRoot":"","sources":["../../../src/components/init/ErrorStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAID,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8E9C,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import { Select } from '@inkjs/ui';
4
+ export const ErrorStep = ({ error, onRetry, onUseCache, onAbort }) => {
5
+ const { code, message, recoverable, suggestion } = error;
6
+ const getOptions = () => {
7
+ const options = [];
8
+ if (recoverable && onRetry) {
9
+ options.push({ value: 'retry', label: 'Retry' });
10
+ }
11
+ if (code === 'NETWORK_ERROR' && onUseCache) {
12
+ options.push({ value: 'use-cache', label: 'Use cached version (if available)' });
13
+ }
14
+ if (onAbort) {
15
+ options.push({ value: 'abort', label: 'Abort initialization' });
16
+ }
17
+ return options;
18
+ };
19
+ const handleAction = (value) => {
20
+ const action = value;
21
+ switch (action) {
22
+ case 'retry':
23
+ onRetry?.();
24
+ break;
25
+ case 'use-cache':
26
+ onUseCache?.();
27
+ break;
28
+ case 'abort':
29
+ onAbort?.();
30
+ break;
31
+ }
32
+ };
33
+ const options = getOptions();
34
+ return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { bold: true, color: "red", children: ["Error: ", code] }) }), _jsx(Box, { marginBottom: 1, children: _jsx(Text, { children: message }) }), suggestion && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { dimColor: true, children: ["Suggestion: ", suggestion] }) })), options.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { children: "What would you like to do?" }) }), _jsx(Select, { options: options, onChange: handleAction })] })), options.length === 0 && (_jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Initialization cannot continue. Please resolve the issue and try again." }) }))] }));
35
+ };
36
+ //# sourceMappingURL=ErrorStep.js.map
@@ -0,0 +1 @@
1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;gBACZ,MAAM;QACV,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,aACpC,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,MAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,KAAK,wBAAS,IAAI,IAAQ,GACvC,EAEN,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,KAAC,IAAI,cAAE,OAAO,GAAQ,GAClB,EAEL,UAAU,IAAI,CACb,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,MAAC,IAAI,IAAC,QAAQ,mCAAc,UAAU,IAAQ,GAC1C,CACP,EAEA,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CACrB,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC,aACtC,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,KAAC,IAAI,6CAAkC,GACnC,EACN,KAAC,MAAM,IACL,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,YAAY,GACtB,IACE,CACP,EAEA,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CACvB,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,IAAC,QAAQ,8FAA+E,GACzF,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * FetchStep component
3
+ * Task 5.2: Display download progress and handle errors
4
+ */
5
+ import React from 'react';
6
+ import type { BaseStepProps } from './types.js';
7
+ import type { FetchProgress } from '../../services/GitHubService.js';
8
+ export interface FetchStepProps extends BaseStepProps {
9
+ readonly progress: FetchProgress;
10
+ readonly repo: string;
11
+ readonly version: string;
12
+ readonly fromCache?: boolean;
13
+ }
14
+ export declare const FetchStep: React.FC<FetchStepProps>;
15
+ //# sourceMappingURL=FetchStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FetchStep.d.ts","sourceRoot":"","sources":["../../../src/components/init/FetchStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAqBD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAoD9C,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import { Spinner, ProgressBar } from '@inkjs/ui';
4
+ function formatBytes(bytes) {
5
+ if (bytes < 1024)
6
+ return `${bytes} B`;
7
+ if (bytes < 1024 * 1024)
8
+ return `${(bytes / 1024).toFixed(1)} KB`;
9
+ return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
10
+ }
11
+ function getPhaseLabel(phase) {
12
+ switch (phase) {
13
+ case 'connecting':
14
+ return 'Connecting to GitHub...';
15
+ case 'downloading':
16
+ return 'Downloading framework files...';
17
+ case 'caching':
18
+ return 'Caching for offline use...';
19
+ default:
20
+ return 'Processing...';
21
+ }
22
+ }
23
+ export const FetchStep = ({ progress, repo, version, fromCache }) => {
24
+ const { phase, bytesReceived, totalBytes } = progress;
25
+ const percentage = totalBytes && bytesReceived
26
+ ? Math.round((bytesReceived / totalBytes) * 100)
27
+ : 0;
28
+ if (fromCache) {
29
+ return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: "green", children: "Using cached framework files" }) }), _jsxs(Text, { dimColor: true, children: ["Source: ", repo, "@", version] })] }));
30
+ }
31
+ return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: "cyan", children: "Fetching Framework" }) }), _jsx(Box, { marginBottom: 1, children: _jsxs(Text, { dimColor: true, children: ["Source: ", repo, "@", version] }) }), _jsx(Box, { marginBottom: 1, children: _jsx(Spinner, { label: getPhaseLabel(phase) }) }), phase === 'downloading' && totalBytes && (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsx(ProgressBar, { value: percentage }) }), _jsxs(Text, { dimColor: true, children: [formatBytes(bytesReceived ?? 0), " / ", formatBytes(totalBytes), " (", percentage, "%)"] })] })), phase === 'downloading' && !totalBytes && bytesReceived && (_jsxs(Text, { dimColor: true, children: ["Downloaded: ", formatBytes(bytesReceived)] }))] }));
32
+ };
33
+ //# sourceMappingURL=FetchStep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FetchStep.js","sourceRoot":"","sources":["../../../src/components/init/FetchStep.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAWjD,SAAS,WAAW,CAAC,KAAa;IAChC,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,GAAG,KAAK,IAAI,CAAC;IACtC,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAClE,OAAO,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAA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GAC1C,EAEN,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,KAAC,OAAO,IAAC,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,GAAI,GACpC,EAEL,KAAK,KAAK,aAAa,IAAI,UAAU,IAAI,CACxC,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,KAAC,WAAW,IAAC,KAAK,EAAE,UAAU,GAAI,GAC9B,EACN,MAAC,IAAI,IAAC,QAAQ,mBACX,WAAW,CAAC,aAAa,IAAI,CAAC,CAAC,SAAK,WAAW,CAAC,UAAU,CAAC,QAAI,UAAU,UACrE,IACH,CACP,EAEA,KAAK,KAAK,aAAa,IAAI,CAAC,UAAU,IAAI,aAAa,IAAI,CAC1D,MAAC,IAAI,IAAC,QAAQ,mCAAc,WAAW,CAAC,aAAa,CAAC,IAAQ,CAC/D,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * SetupStep component
3
+ * Task 5.3: Guided configuration for project setup
4
+ */
5
+ import React from 'react';
6
+ import type { BaseStepProps, SetupData } from './types.js';
7
+ export interface SetupStepProps extends BaseStepProps {
8
+ readonly availableStacks: readonly string[];
9
+ readonly defaultStack?: string;
10
+ readonly skipGuided?: boolean;
11
+ readonly onComplete: (data: SetupData) => void;
12
+ }
13
+ export declare const SetupStep: React.FC<SetupStepProps>;
14
+ //# sourceMappingURL=SetupStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupStep.d.ts","sourceRoot":"","sources":["../../../src/components/init/SetupStep.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAG3D,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CAChD;AAYD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuI9C,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * SetupStep component
4
+ * Task 5.3: Guided configuration for project setup
5
+ */
6
+ import { useState, useRef, useEffect } from 'react';
7
+ import { Box, Text } from 'ink';
8
+ import { Select, TextInput } from '@inkjs/ui';
9
+ const PROJECT_TYPES = [
10
+ { value: 'web-app', label: 'Web Application' },
11
+ { value: 'cli-tool', label: 'CLI Tool' },
12
+ { value: 'library', label: 'Library / Package' },
13
+ { value: 'api', label: 'API / Backend Service' },
14
+ { value: 'other', label: 'Other' }
15
+ ];
16
+ export const SetupStep = ({ availableStacks, defaultStack, skipGuided, onNext, onComplete }) => {
17
+ const [phase, setPhase] = useState('project-type');
18
+ const [projectType, setProjectType] = useState('web-app');
19
+ const [stack, setStack] = useState(defaultStack ?? 'generic');
20
+ const [projectName, setProjectName] = useState('');
21
+ const [, setDescription] = useState('');
22
+ // Use refs to stabilize callbacks
23
+ const onCompleteRef = useRef(onComplete);
24
+ const onNextRef = useRef(onNext);
25
+ onCompleteRef.current = onComplete;
26
+ onNextRef.current = onNext;
27
+ const skipHandledRef = useRef(false);
28
+ // Handle skip-guided mode
29
+ useEffect(() => {
30
+ if (skipGuided && !skipHandledRef.current) {
31
+ skipHandledRef.current = true;
32
+ const data = {
33
+ projectType: 'other',
34
+ stack: defaultStack ?? 'generic',
35
+ projectName: 'my-project',
36
+ description: '',
37
+ customValues: {}
38
+ };
39
+ onCompleteRef.current(data);
40
+ onNextRef.current();
41
+ }
42
+ }, [skipGuided, defaultStack]);
43
+ const handleProjectTypeSelect = (value) => {
44
+ setProjectType(value);
45
+ setPhase('stack');
46
+ };
47
+ const handleStackSelect = (value) => {
48
+ setStack(value);
49
+ setPhase('name');
50
+ };
51
+ const handleNameSubmit = (value) => {
52
+ setProjectName(value);
53
+ setPhase('description');
54
+ };
55
+ const handleDescriptionSubmit = (value) => {
56
+ setDescription(value);
57
+ const data = {
58
+ projectType,
59
+ stack,
60
+ projectName: projectName || 'my-project',
61
+ description: value,
62
+ customValues: {}
63
+ };
64
+ onComplete(data);
65
+ onNext();
66
+ };
67
+ if (skipGuided) {
68
+ return (_jsx(Box, { flexDirection: "column", padding: 1, children: _jsx(Text, { dimColor: true, children: "Skipping guided setup..." }) }));
69
+ }
70
+ // Filter out 'generic' from availableStacks to avoid duplicate, then add it with better label at end
71
+ const filteredStacks = availableStacks.filter(s => s !== 'generic');
72
+ const stackOptions = [
73
+ ...filteredStacks.map(s => ({ value: s, label: s })),
74
+ { value: 'generic', label: 'Generic (no framework-specific templates)' }
75
+ ];
76
+ return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: "cyan", children: "Project Setup" }) }), phase === 'project-type' && (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { children: "What type of project is this?" }) }), _jsx(Select, { options: PROJECT_TYPES, onChange: handleProjectTypeSelect })] })), phase === 'stack' && (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { children: "Select your technology stack:" }) }), _jsx(Select, { options: stackOptions, onChange: handleStackSelect })] })), phase === 'name' && (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { children: "Project name:" }) }), _jsx(TextInput, { placeholder: "my-project", onSubmit: handleNameSubmit })] })), phase === 'description' && (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { children: "Brief project description (optional):" }) }), _jsx(TextInput, { placeholder: "A brief description of your project", onSubmit: handleDescriptionSubmit })] }))] }));
77
+ };
78
+ //# sourceMappingURL=SetupStep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupStep.js","sourceRoot":"","sources":["../../../src/components/init/SetupStep.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,OAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAa9C,MAAM,aAAa,GAA4C;IAC7D,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,iBAAiB,EAAE;IAC9C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;IACxC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAChD,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE;IAChD,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,EAClD,eAAe,EACf,YAAY,EACZ,UAAU,EACV,MAAM,EACN,UAAU,EACX,EAAE,EAAE;IACH,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAa,cAAc,CAAC,CAAC;IAC/D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAc,SAAS,CAAC,CAAC;IACvE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC;IAC9D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnD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,uBAAuB,GACjC,IACE,CACP,EAEA,KAAK,KAAK,OAAO,IAAI,CACpB,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,KAAC,IAAI,gDAAqC,GACtC,EACN,KAAC,MAAM,IACL,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,iBAAiB,GAC3B,IACE,CACP,EAEA,KAAK,KAAK,MAAM,IAAI,CACnB,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,KAAC,IAAI,gCAAqB,GACtB,EACN,KAAC,SAAS,IACR,WAAW,EAAC,YAAY,EACxB,QAAQ,EAAE,gBAAgB,GAC1B,IACE,CACP,EAEA,KAAK,KAAK,aAAa,IAAI,CAC1B,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,KAAC,IAAI,wDAA6C,GAC9C,EACN,KAAC,SAAS,IACR,WAAW,EAAC,qCAAqC,EACjD,QAAQ,EAAE,uBAAuB,GACjC,IACE,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * SteeringStep component
3
+ * Task 5.4: Offer steering enhancement options
4
+ */
5
+ import React from 'react';
6
+ import type { BaseStepProps } from './types.js';
7
+ export interface SteeringStepProps extends BaseStepProps {
8
+ readonly steeringFiles: readonly string[];
9
+ readonly noSteering?: boolean;
10
+ }
11
+ export declare const SteeringStep: React.FC<SteeringStepProps>;
12
+ //# sourceMappingURL=SteeringStep.d.ts.map