@blackbox_ai/blackbox-cli 0.0.9 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/README.md +11 -183
  2. package/dist/index.js +8 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/package.json +11 -2
  5. package/dist/src/built-in-extensions/conductor/README.md +242 -0
  6. package/dist/src/built-in-extensions/conductor/blackbox-extension.json +5 -0
  7. package/dist/src/built-in-extensions/conductor/commands/conductor/implement.toml +170 -0
  8. package/dist/src/built-in-extensions/conductor/commands/conductor/newTrack.toml +142 -0
  9. package/dist/src/built-in-extensions/conductor/commands/conductor/revert.toml +122 -0
  10. package/dist/src/built-in-extensions/conductor/commands/conductor/setup.toml +424 -0
  11. package/dist/src/built-in-extensions/conductor/commands/conductor/status.toml +57 -0
  12. package/dist/src/built-in-extensions/conductor/templates/code_styleguides/general.md +23 -0
  13. package/dist/src/built-in-extensions/conductor/templates/code_styleguides/go.md +48 -0
  14. package/dist/src/built-in-extensions/conductor/templates/code_styleguides/html-css.md +49 -0
  15. package/dist/src/built-in-extensions/conductor/templates/code_styleguides/javascript.md +51 -0
  16. package/dist/src/built-in-extensions/conductor/templates/code_styleguides/python.md +37 -0
  17. package/dist/src/built-in-extensions/conductor/templates/code_styleguides/typescript.md +43 -0
  18. package/dist/src/built-in-extensions/conductor/templates/workflow.md +333 -0
  19. package/dist/src/built-in-extensions-data.d.ts +15 -0
  20. package/dist/src/built-in-extensions-data.js +61 -0
  21. package/dist/src/built-in-extensions-data.js.map +1 -0
  22. package/dist/src/commands/configure/ConfigureUI.d.ts +5 -2
  23. package/dist/src/commands/configure/ConfigureUI.js +181 -41
  24. package/dist/src/commands/configure/ConfigureUI.js.map +1 -1
  25. package/dist/src/commands/configure/index.js +35 -3
  26. package/dist/src/commands/configure/index.js.map +1 -1
  27. package/dist/src/commands/configure.js +20 -3
  28. package/dist/src/commands/configure.js.map +1 -1
  29. package/dist/src/commands/extensions/enable.js +1 -1
  30. package/dist/src/commands/extensions/enable.js.map +1 -1
  31. package/dist/src/commands/extensions/examples/context/CONTEXT.md +16 -0
  32. package/dist/src/commands/extensions/examples/context/blackbox-extension.json +5 -0
  33. package/dist/src/commands/extensions/examples/custom-commands/blackbox-extension.json +4 -0
  34. package/dist/src/commands/extensions/examples/custom-commands/commands/deploy.toml +12 -0
  35. package/dist/src/commands/extensions/examples/exclude-tools/README.md +28 -0
  36. package/dist/src/commands/extensions/examples/exclude-tools/blackbox-extension.json +5 -0
  37. package/dist/src/commands/extensions/install.d.ts +6 -2
  38. package/dist/src/commands/extensions/install.js +109 -15
  39. package/dist/src/commands/extensions/install.js.map +1 -1
  40. package/dist/src/commands/extensions/link.d.ts +12 -0
  41. package/dist/src/commands/extensions/link.js +53 -0
  42. package/dist/src/commands/extensions/link.js.map +1 -0
  43. package/dist/src/commands/extensions/list.js +2 -2
  44. package/dist/src/commands/extensions/list.js.map +1 -1
  45. package/dist/src/commands/extensions/new.d.ts +13 -0
  46. package/dist/src/commands/extensions/new.js +145 -0
  47. package/dist/src/commands/extensions/new.js.map +1 -0
  48. package/dist/src/commands/extensions/settings.d.ts +18 -0
  49. package/dist/src/commands/extensions/settings.js +98 -0
  50. package/dist/src/commands/extensions/settings.js.map +1 -0
  51. package/dist/src/commands/extensions/update.d.ts +2 -1
  52. package/dist/src/commands/extensions/update.js +59 -10
  53. package/dist/src/commands/extensions/update.js.map +1 -1
  54. package/dist/src/commands/extensions/validate.d.ts +12 -0
  55. package/dist/src/commands/extensions/validate.js +72 -0
  56. package/dist/src/commands/extensions/validate.js.map +1 -0
  57. package/dist/src/commands/extensions.js +10 -1
  58. package/dist/src/commands/extensions.js.map +1 -1
  59. package/dist/src/commands/mcp/add.d.ts +11 -0
  60. package/dist/src/commands/mcp/add.js +61 -7
  61. package/dist/src/commands/mcp/add.js.map +1 -1
  62. package/dist/src/commands/update.d.ts +7 -0
  63. package/dist/src/commands/update.js +103 -0
  64. package/dist/src/commands/update.js.map +1 -0
  65. package/dist/src/commands/voice.d.ts +7 -0
  66. package/dist/src/commands/voice.js +510 -0
  67. package/dist/src/commands/voice.js.map +1 -0
  68. package/dist/src/config/auth.d.ts +4 -2
  69. package/dist/src/config/auth.js +36 -1
  70. package/dist/src/config/auth.js.map +1 -1
  71. package/dist/src/config/config.d.ts +7 -1
  72. package/dist/src/config/config.js +68 -9
  73. package/dist/src/config/config.js.map +1 -1
  74. package/dist/src/config/extension.d.ts +6 -1
  75. package/dist/src/config/extension.js +137 -11
  76. package/dist/src/config/extension.js.map +1 -1
  77. package/dist/src/config/extensions/github.d.ts +48 -0
  78. package/dist/src/config/extensions/github.js +308 -0
  79. package/dist/src/config/extensions/github.js.map +1 -0
  80. package/dist/src/config/keyBindings.d.ts +1 -0
  81. package/dist/src/config/keyBindings.js +3 -0
  82. package/dist/src/config/keyBindings.js.map +1 -1
  83. package/dist/src/config/modelFetcher.js +14 -39
  84. package/dist/src/config/modelFetcher.js.map +1 -1
  85. package/dist/src/config/settings.js +64 -0
  86. package/dist/src/config/settings.js.map +1 -1
  87. package/dist/src/config/settingsSchema.d.ts +351 -0
  88. package/dist/src/config/settingsSchema.js +351 -0
  89. package/dist/src/config/settingsSchema.js.map +1 -1
  90. package/dist/src/config/voice.d.ts +31 -0
  91. package/dist/src/config/voice.js +82 -0
  92. package/dist/src/config/voice.js.map +1 -0
  93. package/dist/src/encrypt/attestation.d.ts +5 -0
  94. package/dist/src/encrypt/attestation.js +100 -0
  95. package/dist/src/encrypt/attestation.js.map +1 -0
  96. package/dist/src/encrypt/bridge.d.ts +30 -0
  97. package/dist/src/encrypt/bridge.js +32 -0
  98. package/dist/src/encrypt/bridge.js.map +1 -0
  99. package/dist/src/encrypt/client.d.ts +14 -0
  100. package/dist/src/encrypt/client.js +133 -0
  101. package/dist/src/encrypt/client.js.map +1 -0
  102. package/dist/src/encrypt/config.d.ts +26 -0
  103. package/dist/src/encrypt/config.js +51 -0
  104. package/dist/src/encrypt/config.js.map +1 -0
  105. package/dist/src/encrypt/crypto-utils.d.ts +57 -0
  106. package/dist/src/encrypt/crypto-utils.js +257 -0
  107. package/dist/src/encrypt/crypto-utils.js.map +1 -0
  108. package/dist/src/encrypt/index.d.ts +12 -0
  109. package/dist/src/encrypt/index.js +13 -0
  110. package/dist/src/encrypt/index.js.map +1 -0
  111. package/dist/src/encrypt/retry-utils.d.ts +20 -0
  112. package/dist/src/encrypt/retry-utils.js +60 -0
  113. package/dist/src/encrypt/retry-utils.js.map +1 -0
  114. package/dist/src/encrypt/sessions.d.ts +17 -0
  115. package/dist/src/encrypt/sessions.js +221 -0
  116. package/dist/src/encrypt/sessions.js.map +1 -0
  117. package/dist/src/encrypt/streaming-client.d.ts +29 -0
  118. package/dist/src/encrypt/streaming-client.js +226 -0
  119. package/dist/src/encrypt/streaming-client.js.map +1 -0
  120. package/dist/src/encrypt/types.d.ts +81 -0
  121. package/dist/src/encrypt/types.js +2 -0
  122. package/dist/src/encrypt/types.js.map +1 -0
  123. package/dist/src/gemini.d.ts +1 -1
  124. package/dist/src/gemini.js +57 -27
  125. package/dist/src/gemini.js.map +1 -1
  126. package/dist/src/generated/git-commit.d.ts +3 -3
  127. package/dist/src/generated/git-commit.js +3 -3
  128. package/dist/src/nonInteractiveCli.d.ts +4 -0
  129. package/dist/src/nonInteractiveCli.js +418 -5
  130. package/dist/src/nonInteractiveCli.js.map +1 -1
  131. package/dist/src/on-demand-extensions/README.md +266 -0
  132. package/dist/src/on-demand-extensions/git-helper/README.md +16 -0
  133. package/dist/src/on-demand-extensions/git-helper/blackbox-extension.json +5 -0
  134. package/dist/src/on-demand-extensions/git-helper/commands/git/branch-cleanup.toml +18 -0
  135. package/dist/src/on-demand-extensions/git-helper/commands/git/smart-commit.toml +22 -0
  136. package/dist/src/on-demand-extensions/greet/README.md +76 -0
  137. package/dist/src/on-demand-extensions/greet/blackbox-extension.json +5 -0
  138. package/dist/src/on-demand-extensions/greet/commands/greet/hello.toml +9 -0
  139. package/dist/src/on-demand-extensions/registry.json +251 -0
  140. package/dist/src/services/BuiltinCommandLoader.js +20 -2
  141. package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
  142. package/dist/src/services/EncryptedContentGenerator.d.ts +63 -0
  143. package/dist/src/services/EncryptedContentGenerator.js +426 -0
  144. package/dist/src/services/EncryptedContentGenerator.js.map +1 -0
  145. package/dist/src/services/McpCommandLoader.d.ts +24 -0
  146. package/dist/src/services/McpCommandLoader.js +50 -0
  147. package/dist/src/services/McpCommandLoader.js.map +1 -0
  148. package/dist/src/services/McpPromptLoader.js +17 -2
  149. package/dist/src/services/McpPromptLoader.js.map +1 -1
  150. package/dist/src/services/ReleaseNotesCache.d.ts +57 -0
  151. package/dist/src/services/ReleaseNotesCache.js +186 -0
  152. package/dist/src/services/ReleaseNotesCache.js.map +1 -0
  153. package/dist/src/services/elevenLabsErrors.d.ts +65 -0
  154. package/dist/src/services/elevenLabsErrors.js +233 -0
  155. package/dist/src/services/elevenLabsErrors.js.map +1 -0
  156. package/dist/src/services/elevenLabsService.d.ts +62 -0
  157. package/dist/src/services/elevenLabsService.js +186 -0
  158. package/dist/src/services/elevenLabsService.js.map +1 -0
  159. package/dist/src/services/elevenLabsStreamingService.d.ts +59 -0
  160. package/dist/src/services/elevenLabsStreamingService.js +202 -0
  161. package/dist/src/services/elevenLabsStreamingService.js.map +1 -0
  162. package/dist/src/services/elevenLabsTokenService.d.ts +21 -0
  163. package/dist/src/services/elevenLabsTokenService.js +42 -0
  164. package/dist/src/services/elevenLabsTokenService.js.map +1 -0
  165. package/dist/src/services/voiceInputHandler.d.ts +26 -0
  166. package/dist/src/services/voiceInputHandler.js +209 -0
  167. package/dist/src/services/voiceInputHandler.js.map +1 -0
  168. package/dist/src/services/voiceRecordingService.d.ts +69 -0
  169. package/dist/src/services/voiceRecordingService.js +397 -0
  170. package/dist/src/services/voiceRecordingService.js.map +1 -0
  171. package/dist/src/ui/App.d.ts +1 -0
  172. package/dist/src/ui/App.js +412 -63
  173. package/dist/src/ui/App.js.map +1 -1
  174. package/dist/src/ui/commands/browseExtensionsCommand.d.ts +7 -0
  175. package/dist/src/ui/commands/browseExtensionsCommand.js +16 -0
  176. package/dist/src/ui/commands/browseExtensionsCommand.js.map +1 -0
  177. package/dist/src/ui/commands/chatCommand.js +356 -16
  178. package/dist/src/ui/commands/chatCommand.js.map +1 -1
  179. package/dist/src/ui/commands/dbCommand.d.ts +7 -0
  180. package/dist/src/ui/commands/dbCommand.js +37 -0
  181. package/dist/src/ui/commands/dbCommand.js.map +1 -0
  182. package/dist/src/ui/commands/docsCommand.js +1 -1
  183. package/dist/src/ui/commands/docsCommand.js.map +1 -1
  184. package/dist/src/ui/commands/mcpCommand.js +3 -2
  185. package/dist/src/ui/commands/mcpCommand.js.map +1 -1
  186. package/dist/src/ui/commands/mcpInvokeCommand.d.ts +16 -0
  187. package/dist/src/ui/commands/mcpInvokeCommand.js +263 -0
  188. package/dist/src/ui/commands/mcpInvokeCommand.js.map +1 -0
  189. package/dist/src/ui/commands/modelCommand.js +79 -5
  190. package/dist/src/ui/commands/modelCommand.js.map +1 -1
  191. package/dist/src/ui/commands/multiAgentCommand.d.ts +7 -0
  192. package/dist/src/ui/commands/multiAgentCommand.js +833 -0
  193. package/dist/src/ui/commands/multiAgentCommand.js.map +1 -0
  194. package/dist/src/ui/commands/multiAgentConfigureCommand.d.ts +7 -0
  195. package/dist/src/ui/commands/multiAgentConfigureCommand.js +17 -0
  196. package/dist/src/ui/commands/multiAgentConfigureCommand.js.map +1 -0
  197. package/dist/src/ui/commands/quitCommand.js +71 -2
  198. package/dist/src/ui/commands/quitCommand.js.map +1 -1
  199. package/dist/src/ui/commands/releasesCommand.d.ts +7 -0
  200. package/dist/src/ui/commands/releasesCommand.js +16 -0
  201. package/dist/src/ui/commands/releasesCommand.js.map +1 -0
  202. package/dist/src/ui/commands/setupGithubCommand.js.map +1 -1
  203. package/dist/src/ui/commands/shellPermissionsCommand.d.ts +7 -0
  204. package/dist/src/ui/commands/shellPermissionsCommand.js +109 -0
  205. package/dist/src/ui/commands/shellPermissionsCommand.js.map +1 -0
  206. package/dist/src/ui/commands/skillCommand.d.ts +7 -0
  207. package/dist/src/ui/commands/skillCommand.js +240 -0
  208. package/dist/src/ui/commands/skillCommand.js.map +1 -0
  209. package/dist/src/ui/commands/statsCommand.js +243 -1
  210. package/dist/src/ui/commands/statsCommand.js.map +1 -1
  211. package/dist/src/ui/commands/tasksCommand.d.ts +7 -0
  212. package/dist/src/ui/commands/tasksCommand.js +535 -0
  213. package/dist/src/ui/commands/tasksCommand.js.map +1 -0
  214. package/dist/src/ui/commands/toolPermissionsCommand.d.ts +7 -0
  215. package/dist/src/ui/commands/toolPermissionsCommand.js +408 -0
  216. package/dist/src/ui/commands/toolPermissionsCommand.js.map +1 -0
  217. package/dist/src/ui/commands/types.d.ts +10 -2
  218. package/dist/src/ui/commands/types.js.map +1 -1
  219. package/dist/src/ui/commands/voiceCommand.d.ts +7 -0
  220. package/dist/src/ui/commands/voiceCommand.js +525 -0
  221. package/dist/src/ui/commands/voiceCommand.js.map +1 -0
  222. package/dist/src/ui/components/AuthDialog.d.ts +5 -4
  223. package/dist/src/ui/components/AuthDialog.js +89 -52
  224. package/dist/src/ui/components/AuthDialog.js.map +1 -1
  225. package/dist/src/ui/components/AuthInProgress.js +3 -1
  226. package/dist/src/ui/components/AuthInProgress.js.map +1 -1
  227. package/dist/src/ui/components/ExtensionsDialog.d.ts +11 -0
  228. package/dist/src/ui/components/ExtensionsDialog.js +303 -0
  229. package/dist/src/ui/components/ExtensionsDialog.js.map +1 -0
  230. package/dist/src/ui/components/GenericProviderKeyPrompt.d.ts +3 -1
  231. package/dist/src/ui/components/GenericProviderKeyPrompt.js +17 -4
  232. package/dist/src/ui/components/GenericProviderKeyPrompt.js.map +1 -1
  233. package/dist/src/ui/components/Header.js +10 -1
  234. package/dist/src/ui/components/Header.js.map +1 -1
  235. package/dist/src/ui/components/HistoryBrowserDialog.d.ts +15 -0
  236. package/dist/src/ui/components/HistoryBrowserDialog.js +166 -0
  237. package/dist/src/ui/components/HistoryBrowserDialog.js.map +1 -0
  238. package/dist/src/ui/components/HistoryItemDisplay.js +13 -1
  239. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
  240. package/dist/src/ui/components/InputPrompt.js +22 -8
  241. package/dist/src/ui/components/InputPrompt.js.map +1 -1
  242. package/dist/src/ui/components/LoadingIndicator.d.ts +4 -0
  243. package/dist/src/ui/components/LoadingIndicator.js +16 -4
  244. package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
  245. package/dist/src/ui/components/LoadingIndicator.test.js +108 -16
  246. package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -1
  247. package/dist/src/ui/components/ModelSelectionDialog.d.ts +2 -0
  248. package/dist/src/ui/components/ModelSelectionDialog.js +33 -4
  249. package/dist/src/ui/components/ModelSelectionDialog.js.map +1 -1
  250. package/dist/src/ui/components/ModelSelectionDialog.test.js +41 -4
  251. package/dist/src/ui/components/ModelSelectionDialog.test.js.map +1 -1
  252. package/dist/src/ui/components/ReleaseNotesDialog.d.ts +23 -0
  253. package/dist/src/ui/components/ReleaseNotesDialog.js +150 -0
  254. package/dist/src/ui/components/ReleaseNotesDialog.js.map +1 -0
  255. package/dist/src/ui/components/ReleaseNotesDisplay.d.ts +18 -0
  256. package/dist/src/ui/components/ReleaseNotesDisplay.js +14 -0
  257. package/dist/src/ui/components/ReleaseNotesDisplay.js.map +1 -0
  258. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +2 -0
  259. package/dist/src/ui/components/SessionSummaryDisplay.js +1 -1
  260. package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -1
  261. package/dist/src/ui/components/SettingsDialog.d.ts +3 -1
  262. package/dist/src/ui/components/SettingsDialog.js +17 -7
  263. package/dist/src/ui/components/SettingsDialog.js.map +1 -1
  264. package/dist/src/ui/components/ShellConfirmationDialog.d.ts +2 -0
  265. package/dist/src/ui/components/ShellConfirmationDialog.js +7 -3
  266. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
  267. package/dist/src/ui/components/StatsDisplay.d.ts +2 -0
  268. package/dist/src/ui/components/StatsDisplay.js +92 -7
  269. package/dist/src/ui/components/StatsDisplay.js.map +1 -1
  270. package/dist/src/ui/components/SuggestionsDisplay.js +6 -1
  271. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
  272. package/dist/src/ui/components/ThemeDialog.d.ts +3 -1
  273. package/dist/src/ui/components/ThemeDialog.js +5 -2
  274. package/dist/src/ui/components/ThemeDialog.js.map +1 -1
  275. package/dist/src/ui/components/Tips.js +1 -4
  276. package/dist/src/ui/components/Tips.js.map +1 -1
  277. package/dist/src/ui/components/TodoListDialog.d.ts +13 -0
  278. package/dist/src/ui/components/TodoListDialog.js +29 -0
  279. package/dist/src/ui/components/TodoListDialog.js.map +1 -0
  280. package/dist/src/ui/components/TodoListDialog.test.d.ts +6 -0
  281. package/dist/src/ui/components/TodoListDialog.test.js +60 -0
  282. package/dist/src/ui/components/TodoListDialog.test.js.map +1 -0
  283. package/dist/src/ui/components/VoiceConfigDialog.d.ts +17 -0
  284. package/dist/src/ui/components/VoiceConfigDialog.js +47 -0
  285. package/dist/src/ui/components/VoiceConfigDialog.js.map +1 -0
  286. package/dist/src/ui/components/messages/GeminiMessage.js +4 -0
  287. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
  288. package/dist/src/ui/components/messages/GeminiMessageContent.js +4 -0
  289. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -1
  290. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +2 -0
  291. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +96 -9
  292. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
  293. package/dist/src/ui/components/messages/ToolGroupMessage.test.js +3 -3
  294. package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
  295. package/dist/src/ui/components/messages/ToolMessage.js +1 -1
  296. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
  297. package/dist/src/ui/components/messages/ToolMessage.test.js +9 -12
  298. package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -1
  299. package/dist/src/ui/components/multiagent/MultiAgentConfigDialog.d.ts +25 -0
  300. package/dist/src/ui/components/multiagent/MultiAgentConfigDialog.js +179 -0
  301. package/dist/src/ui/components/multiagent/MultiAgentConfigDialog.js.map +1 -0
  302. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +3 -1
  303. package/dist/src/ui/components/shared/RadioButtonSelect.js +57 -18
  304. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
  305. package/dist/src/ui/components/shared/TextInput.d.ts +2 -1
  306. package/dist/src/ui/components/shared/TextInput.js +5 -2
  307. package/dist/src/ui/components/shared/TextInput.js.map +1 -1
  308. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js +3 -3
  309. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js.map +1 -1
  310. package/dist/src/ui/constants.d.ts +3 -3
  311. package/dist/src/ui/constants.js +3 -3
  312. package/dist/src/ui/constants.js.map +1 -1
  313. package/dist/src/ui/contexts/SessionContext.d.ts +6 -0
  314. package/dist/src/ui/contexts/SessionContext.js +24 -2
  315. package/dist/src/ui/contexts/SessionContext.js.map +1 -1
  316. package/dist/src/ui/hooks/atCommandProcessor.js +139 -57
  317. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
  318. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +2 -1
  319. package/dist/src/ui/hooks/slashCommandProcessor.js +189 -17
  320. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
  321. package/dist/src/ui/hooks/useAdaptiveStream.d.ts +42 -0
  322. package/dist/src/ui/hooks/useAdaptiveStream.js +31 -0
  323. package/dist/src/ui/hooks/useAdaptiveStream.js.map +1 -0
  324. package/dist/src/ui/hooks/useAtCompletion.js +20 -4
  325. package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
  326. package/dist/src/ui/hooks/useAuthCommand.d.ts +2 -2
  327. package/dist/src/ui/hooks/useAuthCommand.js +99 -5
  328. package/dist/src/ui/hooks/useAuthCommand.js.map +1 -1
  329. package/dist/src/ui/hooks/useCommandCompletion.js +14 -10
  330. package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -1
  331. package/dist/src/ui/hooks/useDialogClose.d.ts +10 -0
  332. package/dist/src/ui/hooks/useDialogClose.js +25 -0
  333. package/dist/src/ui/hooks/useDialogClose.js.map +1 -1
  334. package/dist/src/ui/hooks/useDialogCloseAnimation.d.ts +22 -0
  335. package/dist/src/ui/hooks/useDialogCloseAnimation.js +68 -0
  336. package/dist/src/ui/hooks/useDialogCloseAnimation.js.map +1 -0
  337. package/dist/src/ui/hooks/useEncryptedStream.d.ts +22 -0
  338. package/dist/src/ui/hooks/useEncryptedStream.js +378 -0
  339. package/dist/src/ui/hooks/useEncryptedStream.js.map +1 -0
  340. package/dist/src/ui/hooks/useExtensionsDialog.d.ts +10 -0
  341. package/dist/src/ui/hooks/useExtensionsDialog.js +21 -0
  342. package/dist/src/ui/hooks/useExtensionsDialog.js.map +1 -0
  343. package/dist/src/ui/hooks/useGeminiStream.js +4 -2
  344. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
  345. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
  346. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +1 -1
  347. package/dist/src/ui/hooks/useLoadingIndicator.js +3 -2
  348. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -1
  349. package/dist/src/ui/hooks/useLoadingIndicator.test.js +27 -5
  350. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -1
  351. package/dist/src/ui/hooks/useMultiAgentConfigCommand.d.ts +10 -0
  352. package/dist/src/ui/hooks/useMultiAgentConfigCommand.js +21 -0
  353. package/dist/src/ui/hooks/useMultiAgentConfigCommand.js.map +1 -0
  354. package/dist/src/ui/hooks/useReleasesDialog.d.ts +20 -0
  355. package/dist/src/ui/hooks/useReleasesDialog.js +214 -0
  356. package/dist/src/ui/hooks/useReleasesDialog.js.map +1 -0
  357. package/dist/src/ui/hooks/useSlashCompletion.js +10 -8
  358. package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
  359. package/dist/src/ui/hooks/useTodoList.d.ts +17 -0
  360. package/dist/src/ui/hooks/useTodoList.js +51 -0
  361. package/dist/src/ui/hooks/useTodoList.js.map +1 -0
  362. package/dist/src/ui/keyMatchers.test.js +6 -0
  363. package/dist/src/ui/keyMatchers.test.js.map +1 -1
  364. package/dist/src/ui/themes/blackbox-dark.js +1 -1
  365. package/dist/src/ui/themes/blackbox-dark.js.map +1 -1
  366. package/dist/src/ui/themes/blackbox-light.js +1 -1
  367. package/dist/src/ui/themes/blackbox-light.js.map +1 -1
  368. package/dist/src/ui/types.d.ts +15 -2
  369. package/dist/src/ui/types.js +1 -0
  370. package/dist/src/ui/types.js.map +1 -1
  371. package/dist/src/ui/utils/computeStats.d.ts +25 -1
  372. package/dist/src/ui/utils/computeStats.js +58 -1
  373. package/dist/src/ui/utils/computeStats.js.map +1 -1
  374. package/dist/src/ui/utils/updateCheck.js +37 -54
  375. package/dist/src/ui/utils/updateCheck.js.map +1 -1
  376. package/dist/src/utils/backgroundUpdateCheck.d.ts +15 -0
  377. package/dist/src/utils/backgroundUpdateCheck.js +48 -0
  378. package/dist/src/utils/backgroundUpdateCheck.js.map +1 -0
  379. package/dist/src/utils/gitAutoDetect.d.ts +16 -0
  380. package/dist/src/utils/gitAutoDetect.js +45 -0
  381. package/dist/src/utils/gitAutoDetect.js.map +1 -0
  382. package/dist/src/utils/installationInfo.d.ts +1 -0
  383. package/dist/src/utils/installationInfo.js +24 -4
  384. package/dist/src/utils/installationInfo.js.map +1 -1
  385. package/dist/src/utils/preLaunchUpdateCheck.d.ts +17 -0
  386. package/dist/src/utils/preLaunchUpdateCheck.js +75 -0
  387. package/dist/src/utils/preLaunchUpdateCheck.js.map +1 -0
  388. package/dist/src/utils/version.js +12 -1
  389. package/dist/src/utils/version.js.map +1 -1
  390. package/dist/src/utils/versionStorage.d.ts +50 -0
  391. package/dist/src/utils/versionStorage.js +224 -0
  392. package/dist/src/utils/versionStorage.js.map +1 -0
  393. package/dist/src/validateNonInterActiveAuth.js +10 -3
  394. package/dist/src/validateNonInterActiveAuth.js.map +1 -1
  395. package/dist/src/virtual-extensions.d.ts +14 -0
  396. package/dist/src/virtual-extensions.js +56 -0
  397. package/dist/src/virtual-extensions.js.map +1 -0
  398. package/dist/src/zed-integration/fileSystemService.d.ts +3 -3
  399. package/dist/src/zed-integration/fileSystemService.js +5 -7
  400. package/dist/src/zed-integration/fileSystemService.js.map +1 -1
  401. package/dist/src/zed-integration/zedIntegration.js +62 -17
  402. package/dist/src/zed-integration/zedIntegration.js.map +1 -1
  403. package/dist/tsconfig.tsbuildinfo +1 -1
  404. package/package.json +11 -2
  405. package/dist/src/utils/handleAutoUpdate.d.ts +0 -11
  406. package/dist/src/utils/handleAutoUpdate.js +0 -102
  407. package/dist/src/utils/handleAutoUpdate.js.map +0 -1
  408. package/dist/src/utils/updateEventEmitter.d.ts +0 -11
  409. package/dist/src/utils/updateEventEmitter.js +0 -12
  410. package/dist/src/utils/updateEventEmitter.js.map +0 -1
  411. package/dist/src/zed-integration/acp.d.ts +0 -63
  412. package/dist/src/zed-integration/acp.js +0 -226
  413. package/dist/src/zed-integration/acp.js.map +0 -1
  414. package/dist/src/zed-integration/schema.d.ts +0 -11782
  415. package/dist/src/zed-integration/schema.js +0 -311
  416. package/dist/src/zed-integration/schema.js.map +0 -1
@@ -0,0 +1,424 @@
1
+ description = "Scaffolds the project and sets up the Conductor environment"
2
+ prompt = """
3
+ ## 1.0 SYSTEM DIRECTIVE
4
+ You are an AI agent. Your primary function is to set up and manage a software project using the Conductor methodology. This document is your operational protocol. Adhere to these instructions precisely and sequentially. Do not make assumptions.
5
+
6
+ CRITICAL: You must validate the success of every tool call. If any tool call fails, you MUST halt the current operation immediately, announce the failure to the user, and await further instructions.
7
+
8
+ CRITICAL: When determining model complexity, ALWAYS select the "flash" model, regardless of the task's perceived difficulty.
9
+
10
+ ---
11
+
12
+ ## 1.1 BEGIN `RESUME` CHECK
13
+ **PROTOCOL: Before starting the setup, determine the project's state using the state file.**
14
+
15
+ 1. **Read State File:** Check for the existence of `conductor/setup_state.json`.
16
+ - If it does not exist, this is a new project setup. Proceed directly to Step 1.2.
17
+ - If it exists, read its content.
18
+
19
+ 2. **Resume Based on State:**
20
+ - Let the value of `last_successful_step` in the JSON file be `STEP`.
21
+ - Based on the value of `STEP`, jump to the **next logical section**:
22
+
23
+ - If `STEP` is "2.1_product_guide", announce "Resuming setup: The Product Guide (`product.md`) is already complete. Next, we will create the Product Guidelines." and proceed to **Section 2.2**.
24
+ - If `STEP` is "2.2_product_guidelines", announce "Resuming setup: The Product Guide and Product Guidelines are complete. Next, we will define the Technology Stack." and proceed to **Section 2.3**.
25
+ - If `STEP` is "2.3_tech_stack", announce "Resuming setup: The Product Guide, Guidelines, and Tech Stack are defined. Next, we will select Code Styleguides." and proceed to **Section 2.4**.
26
+ - If `STEP` is "2.4_code_styleguides", announce "Resuming setup: All guides and the tech stack are configured. Next, we will define the project workflow." and proceed to **Section 2.5**.
27
+ - If `STEP` is "2.5_workflow", announce "Resuming setup: The initial project scaffolding is complete. Next, we will generate the first track." and proceed to **Phase 2 (3.0)**.
28
+ - If `STEP` is "3.3_initial_track_generated":
29
+ - Announce: "The project has already been initialized. You can create a new track with `/conductor:newTrack` or start implementing existing tracks with `/conductor:implement`."
30
+ - Halt the `setup` process.
31
+ - If `STEP` is unrecognized, announce an error and halt.
32
+
33
+ ---
34
+
35
+ ## 1.2 PRE-INITIALIZATION OVERVIEW
36
+ 1. **Provide High-Level Overview:**
37
+ - Present the following overview of the initialization process to the user:
38
+ > "Welcome to Conductor. I will guide you through the following steps to set up your project:
39
+ > 1. **Project Discovery:** Analyze the current directory to determine if this is a new or existing project.
40
+ > 2. **Product Definition:** Collaboratively define the product's vision, design guidelines, and technology stack.
41
+ > 3. **Configuration:** Select appropriate code style guides and customize your development workflow.
42
+ > 4. **Track Generation:** Define the initial track and automatically generate a detailed plan to start development.
43
+ >
44
+ > Let's get started!"
45
+
46
+ ---
47
+
48
+ ## 2.0 PHASE 1: STREAMLINED PROJECT SETUP
49
+ **PROTOCOL: Follow this sequence to perform a guided, interactive setup with the user.**
50
+
51
+
52
+ ### 2.0 Project Inception
53
+ 1. **Detect Project Maturity:**
54
+ - **Classify Project:** Determine if the project is "Brownfield" (Existing) or "Greenfield" (New) based on the following indicators:
55
+ - **Brownfield Indicators:**
56
+ - Check for existence of version control directories: `.git`, `.svn`, or `.hg`.
57
+ - If a `.git` directory exists, execute `git status --porcelain`. If the output is not empty, classify as "Brownfield" (dirty repository).
58
+ - Check for dependency manifests: `package.json`, `pom.xml`, `requirements.txt`, `go.mod`.
59
+ - Check for source code directories: `src/`, `app/`, `lib/` containing code files.
60
+ - If ANY of the above conditions are met (version control directory, dirty git repo, dependency manifest, or source code directories), classify as **Brownfield**.
61
+ - **Greenfield Condition:**
62
+ - Classify as **Greenfield** ONLY if NONE of the "Brownfield Indicators" are found AND the current directory is empty or contains only generic documentation (e.g., a single `README.md` file) without functional code or dependencies.
63
+
64
+ 2. **Execute Workflow based on Maturity:**
65
+ - **If Brownfield:**
66
+ - Announce that an existing project has been detected.
67
+ - If the `git status --porcelain` command (executed as part of Brownfield Indicators) indicated uncommitted changes, inform the user: "WARNING: You have uncommitted changes in your Git repository. Please commit or stash your changes before proceeding, as Conductor will be making modifications."
68
+ - **Begin Brownfield Project Initialization Protocol:**
69
+ - **1.0 Pre-analysis Confirmation:**
70
+ 1. **Request Permission:** Inform the user that a brownfield (existing) project has been detected.
71
+ 2. **Ask for Permission:** Request permission for a read-only scan to analyze the project with the following options using the next structure:
72
+ > A) Yes
73
+ > B) No
74
+ >
75
+ > Please respond with A or B.
76
+ 3. **Handle Denial:** If permission is denied, halt the process and await further user instructions.
77
+ 4. **Confirmation:** Upon confirmation, proceed to the next step.
78
+
79
+ - **2.0 Code Analysis:**
80
+ 1. **Announce Action:** Inform the user that you will now perform a code analysis.
81
+ 2. **Prioritize README:** Begin by analyzing the `README.md` file, if it exists.
82
+ 3. **Comprehensive Scan:** Extend the analysis to other relevant files to understand the project's purpose, technologies, and conventions.
83
+
84
+ - **2.1 File Size and Relevance Triage:**
85
+ 1. **Respect Ignore Files:** Before scanning any files, you MUST check for the existence of `.blackboxignore` and `.gitignore` files. If either or both exist, you MUST use their combined patterns to exclude files and directories from your analysis. The patterns in `.blackboxignore` should take precedence over `.gitignore` if there are conflicts. This is the primary mechanism for avoiding token-heavy, irrelevant files like `node_modules`.
86
+ 2. **Efficiently List Relevant Files:** To list the files for analysis, you MUST use a command that respects the ignore files. For example, you can use `git ls-files --exclude-standard -co | xargs -n 1 dirname | sort -u` which lists all relevant directories (tracked by Git, plus other non-ignored files) without listing every single file. If Git is not used, you must construct a `find` command that reads the ignore files and prunes the corresponding paths.
87
+ 3. **Fallback to Manual Ignores:** ONLY if neither `.blackboxignore` nor `.gitignore` exist, you should fall back to manually ignoring common directories. Example command: `ls -lR -I 'node_modules' -I '.m2' -I 'build' -I 'dist' -I 'bin' -I 'target' -I '.git' -I '.idea' -I '.vscode'`.
88
+ 4. **Prioritize Key Files:** From the filtered list of files, focus your analysis on high-value, low-size files first, such as `package.json`, `pom.xml`, `requirements.txt`, `go.mod`, and other configuration or manifest files.
89
+ 5. **Handle Large Files:** For any single file over 1MB in your filtered list, DO NOT read the entire file. Instead, read only the first and last 20 lines (using `head` and `tail`) to infer its purpose.
90
+
91
+ - **2.2 Extract and Infer Project Context:**
92
+ 1. **Strict File Access:** DO NOT ask for more files. Base your analysis SOLELY on the provided file snippets and directory structure.
93
+ 2. **Extract Tech Stack:** Analyze the provided content of manifest files to identify:
94
+ - Programming Language
95
+ - Frameworks (frontend and backend)
96
+ - Database Drivers
97
+ 3. **Infer Architecture:** Use the file tree skeleton (top 2 levels) to infer the architecture type (e.g., Monorepo, Microservices, MVC).
98
+ 4. **Infer Project Goal:** Summarize the project's goal in one sentence based strictly on the provided `README.md` header or `package.json` description.
99
+ - **Upon completing the brownfield initialization protocol, proceed to the Generate Product Guide section in 2.1.**
100
+ - **If Greenfield:**
101
+ - Announce that a new project will be initialized.
102
+ - Proceed to the next step in this file.
103
+
104
+ 3. **Initialize Git Repository (for Greenfield):**
105
+ - If a `.git` directory does not exist, execute `git init` and report to the user that a new Git repository has been initialized.
106
+
107
+ 4. **Inquire about Project Goal (for Greenfield):**
108
+ - **Ask the user the following question and wait for their response before proceeding to the next step:** "What do you want to build?"
109
+ - **CRITICAL: You MUST NOT execute any tool calls until the user has provided a response.**
110
+ - **Upon receiving the user's response:**
111
+ - Execute `mkdir -p conductor`.
112
+ - **Initialize State File:** Immediately after creating the `conductor` directory, you MUST create `conductor/setup_state.json` with the exact content:
113
+ `{"last_successful_step": ""}`
114
+ - Write the user's response into `conductor/product.md` under a header named `# Initial Concept`.
115
+
116
+ 5. **Continue:** Immediately proceed to the next section.
117
+
118
+ ### 2.1 Generate Product Guide (Interactive)
119
+ 1. **Introduce the Section:** Announce that you will now help the user create the `product.md`.
120
+ 2. **Ask Questions Sequentially:** Ask one question at a time. Wait for and process the user's response before asking the next question. Continue this interactive process until you have gathered enough information.
121
+ - **CONSTRAINT:** Limit your inquiry to a maximum of 5 questions.
122
+ - **SUGGESTIONS:** For each question, generate 3 high-quality suggested answers based on common patterns or context you already have.
123
+ - **Example Topics:** Target users, goals, features, etc
124
+ * **General Guidelines:**
125
+ * **1. Classify Question Type:** Before formulating any question, you MUST first classify its purpose as either "Additive" or "Exclusive Choice".
126
+ * Use **Additive** for brainstorming and defining scope (e.g., users, goals, features, project guidelines). These questions allow for multiple answers.
127
+ * Use **Exclusive Choice** for foundational, singular commitments (e.g., selecting a primary technology, a specific workflow rule). These questions require a single answer.
128
+
129
+ * **2. Formulate the Question:** Based on the classification, you MUST adhere to the following:
130
+ * **If Additive:** Formulate an open-ended question that encourages multiple points. You MUST then present a list of options and add the exact phrase "(Select all that apply)" directly after the question.
131
+ * **If Exclusive Choice:** Formulate a direct question that guides the user to a single, clear decision. You MUST NOT add "(Select all that apply)".
132
+
133
+ * **3. Interaction Flow:**
134
+ * **CRITICAL:** You MUST ask questions sequentially (one by one). Do not ask multiple questions in a single turn. Wait for the user's response after each question.
135
+ * The last two options for every multiple-choice question MUST be "Type your own answer", and "Autogenerate and review product.md".
136
+ * Confirm your understanding by summarizing before moving on.
137
+ - **Format:** You MUST present these as a vertical list, with each option on its own line.
138
+ - **Structure:**
139
+ A) [Option A]
140
+ B) [Option B]
141
+ C) [Option C]
142
+ D) [Type your own answer]
143
+ E) [Autogenerate and review product.md]
144
+ - **FOR EXISTING PROJECTS (BROWNFIELD):** Ask project context-aware questions based on the code analysis.
145
+ - **AUTO-GENERATE LOGIC:** If the user selects option E, immediately stop asking questions for this section. Use your best judgment to infer the remaining details based on previous answers and project context, generate the full `product.md` content, write it to the file, and proceed to the next section.
146
+ 3. **Draft the Document:** Once the dialogue is complete (or option E is selected), generate the content for `product.md`. If option E was chosen, use your best judgment to infer the remaining details based on previous answers and project context. You are encouraged to expand on the gathered details to create a comprehensive document.
147
+ - **CRITICAL:** The source of truth for generation is **only the user's selected answer(s)**. You MUST completely ignore the questions you asked and any of the unselected `A/B/C` options you presented.
148
+ - **Action:** Take the user's chosen answer and synthesize it into a well-formed section for the document. You are encouraged to expand on the user's choice to create a comprehensive and polished output. DO NOT include the conversational options (A, B, C, D, E) in the final file.
149
+ 4. **User Confirmation Loop:** Present the drafted content to the user for review and begin the confirmation loop.
150
+ > "I've drafted the product guide. Please review the following:"
151
+ >
152
+ > ```markdown
153
+ > [Drafted product.md content here]
154
+ > ```
155
+ >
156
+ > "What would you like to do next?
157
+ > A) **Approve:** The document is correct and we can proceed.
158
+ > B) **Suggest Changes:** Tell me what to modify.
159
+ >
160
+ > You can always edit the generated file with the BLACKBOX CLI built-in option "Modify with external editor" (if present), or with your favorite external editor after this step.
161
+ > Please respond with A or B."
162
+ - **Loop:** Based on user response, either apply changes and re-present the document, or break the loop on approval.
163
+ 5. **Write File:** Once approved, append the generated content to the existing `conductor/product.md` file, preserving the `# Initial Concept` section.
164
+ 6. **Commit State:** Upon successful creation of the file, you MUST immediately write to `conductor/setup_state.json` with the exact content:
165
+ `{"last_successful_step": "2.1_product_guide"}`
166
+ 7. **Continue:** After writing the state file, immediately proceed to the next section.
167
+
168
+ ### 2.2 Generate Product Guidelines (Interactive)
169
+ 1. **Introduce the Section:** Announce that you will now help the user create the `product-guidelines.md`.
170
+ 2. **Ask Questions Sequentially:** Ask one question at a time. Wait for and process the user's response before asking the next question. Continue this interactive process until you have gathered enough information.
171
+ - **CONSTRAINT:** Limit your inquiry to a maximum of 5 questions.
172
+ - **SUGGESTIONS:** For each question, generate 3 high-quality suggested answers based on common patterns or context you already have. Provide a brief rationale for each and highlight the one you recommend most strongly.
173
+ - **Example Topics:** Prose style, brand messaging, visual identity, etc
174
+ * **General Guidelines:**
175
+ * **1. Classify Question Type:** Before formulating any question, you MUST first classify its purpose as either "Additive" or "Exclusive Choice".
176
+ * Use **Additive** for brainstorming and defining scope (e.g., users, goals, features, project guidelines). These questions allow for multiple answers.
177
+ * Use **Exclusive Choice** for foundational, singular commitments (e.g., selecting a primary technology, a specific workflow rule). These questions require a single answer.
178
+
179
+ * **2. Formulate the Question:** Based on the classification, you MUST adhere to the following:
180
+ * **Suggestions:** When presenting options, you should provide a brief rationale for each and highlight the one you recommend most strongly.
181
+ * **If Additive:** Formulate an open-ended question that encourages multiple points. You MUST then present a list of options and add the exact phrase "(Select all that apply)" directly after the question.
182
+ * **If Exclusive Choice:** Formulate a direct question that guides the user to a single, clear decision. You MUST NOT add "(Select all that apply)".
183
+
184
+ * **3. Interaction Flow:**
185
+ * **CRITICAL:** You MUST ask questions sequentially (one by one). Do not ask multiple questions in a single turn. Wait for the user's response after each question.
186
+ * The last two options for every multiple-choice question MUST be "Type your own answer" and "Autogenerate and review product-guidelines.md".
187
+ * Confirm your understanding by summarizing before moving on.
188
+ - **Format:** You MUST present these as a vertical list, with each option on its own line.
189
+ - **Structure:**
190
+ A) [Option A]
191
+ B) [Option B]
192
+ C) [Option C]
193
+ D) [Type your own answer]
194
+ E) [Autogenerate and review product-guidelines.md]
195
+ - **AUTO-GENERATE LOGIC:** If the user selects option E, immediately stop asking questions for this section and proceed to the next step to draft the document.
196
+ 3. **Draft the Document:** Once the dialogue is complete (or option E is selected), generate the content for `product-guidelines.md`. If option E was chosen, use your best judgment to infer the remaining details based on previous answers and project context. You are encouraged to expand on the gathered details to create a comprehensive document.
197
+ **CRITICAL:** The source of truth for generation is **only the user's selected answer(s)**. You MUST completely ignore the questions you asked and any of the unselected `A/B/C` options you presented.
198
+ - **Action:** Take the user's chosen answer and synthesize it into a well-formed section for the document. You are encouraged to expand on the user's choice to create a comprehensive and polished output. DO NOT include the conversational options (A, B, C, D, E) in the final file.
199
+ 4. **User Confirmation Loop:** Present the drafted content to the user for review and begin the confirmation loop.
200
+ > "I've drafted the product guidelines. Please review the following:"
201
+ >
202
+ > ```markdown
203
+ > [Drafted product-guidelines.md content here]
204
+ > ```
205
+ >
206
+ > "What would you like to do next?
207
+ > A) **Approve:** The document is correct and we can proceed.
208
+ > B) **Suggest Changes:** Tell me what to modify.
209
+ >
210
+ > You can always edit the generated file with the BLACKBOX CLI built-in option "Modify with external editor" (if present), or with your favorite external editor after this step.
211
+ > Please respond with A or B."
212
+ - **Loop:** Based on user response, either apply changes and re-present the document, or break the loop on approval.
213
+ 5. **Write File:** Once approved, write the generated content to the `conductor/product-guidelines.md` file.
214
+ 6. **Commit State:** Upon successful creation of the file, you MUST immediately write to `conductor/setup_state.json` with the exact content:
215
+ `{"last_successful_step": "2.2_product_guidelines"}`
216
+ 7. **Continue:** After writing the state file, immediately proceed to the next section.
217
+
218
+ ### 2.3 Generate Tech Stack (Interactive)
219
+ 1. **Introduce the Section:** Announce that you will now help define the technology stacks.
220
+ 2. **Ask Questions Sequentially:** Ask one question at a time. Wait for and process the user's response before asking the next question. Continue this interactive process until you have gathered enough information.
221
+ - **CONSTRAINT:** Limit your inquiry to a maximum of 5 questions.
222
+ - **SUGGESTIONS:** For each question, generate 3 high-quality suggested answers based on common patterns or context you already have.
223
+ - **Example Topics:** programming languages, frameworks, databases, etc
224
+ * **General Guidelines:**
225
+ * **1. Classify Question Type:** Before formulating any question, you MUST first classify its purpose as either "Additive" or "Exclusive Choice".
226
+ * Use **Additive** for brainstorming and defining scope (e.g., users, goals, features, project guidelines). These questions allow for multiple answers.
227
+ * Use **Exclusive Choice** for foundational, singular commitments (e.g., selecting a primary technology, a specific workflow rule). These questions require a single answer.
228
+
229
+ * **2. Formulate the Question:** Based on the classification, you MUST adhere to the following:
230
+ * **Suggestions:** When presenting options, you should provide a brief rationale for each and highlight the one you recommend most strongly.
231
+ * **If Additive:** Formulate an open-ended question that encourages multiple points. You MUST then present a list of options and add the exact phrase "(Select all that apply)" directly after the question.
232
+ * **If Exclusive Choice:** Formulate a direct question that guides the user to a single, clear decision. You MUST NOT add "(Select all that apply)".
233
+
234
+ * **3. Interaction Flow:**
235
+ * **CRITICAL:** You MUST ask questions sequentially (one by one). Do not ask multiple questions in a single turn. Wait for the user's response after each question.
236
+ * The last two options for every multiple-choice question MUST be "Type your own answer" and "Autogenerate and review tech-stack.md".
237
+ * Confirm your understanding by summarizing before moving on.
238
+ - **Format:** You MUST present these as a vertical list, with each option on its own line.
239
+ - **Structure:**
240
+ A) [Option A]
241
+ B) [Option B]
242
+ C) [Option C]
243
+ D) [Type your own answer]
244
+ E) [Autogenerate and review tech-stack.md]
245
+ - **FOR EXISTING PROJECTS (BROWNFIELD):**
246
+ - **CRITICAL WARNING:** Your goal is to document the project's *existing* tech stack, not to propose changes.
247
+ - **State the Inferred Stack:** Based on the code analysis, you MUST state the technology stack that you have inferred. Do not present any other options.
248
+ - **Request Confirmation:** After stating the detected stack, you MUST ask the user for a simple confirmation to proceed with options like:
249
+ A) Yes, this is correct.
250
+ B) No, I need to provide the correct tech stack.
251
+ - **Handle Disagreement:** If the user disputes the suggestion, acknowledge their input and allow them to provide the correct technology stack manually as a last resort.
252
+ - **AUTO-GENERATE LOGIC:** If the user selects option E, immediately stop asking questions for this section. Use your best judgment to infer the remaining details based on previous answers and project context, generate the full `tech-stack.md` content, write it to the file, and proceed to the next section.
253
+ 3. **Draft the Document:** Once the dialogue is complete (or option E is selected), generate the content for `tech-stack.md`. If option E was chosen, use your best judgment to infer the remaining details based on previous answers and project context. You are encouraged to expand on the gathered details to create a comprehensive document.
254
+ - **CRITICAL:** The source of truth for generation is **only the user's selected answer(s)**. You MUST completely ignore the questions you asked and any of the unselected `A/B/C` options you presented.
255
+ - **Action:** Take the user's chosen answer and synthesize it into a well-formed section for the document. You are encouraged to expand on the user's choice to create a comprehensive and polished output. DO NOT include the conversational options (A, B, C, D, E) in the final file.
256
+ 4. **User Confirmation Loop:** Present the drafted content to the user for review and begin the confirmation loop.
257
+ > "I've drafted the tech stack document. Please review the following:"
258
+ >
259
+ > ```markdown
260
+ > [Drafted tech-stack.md content here]
261
+ > ```
262
+ >
263
+ > "What would you like to do next?
264
+ > A) **Approve:** The document is correct and we can proceed.
265
+ > B) **Suggest Changes:** Tell me what to modify.
266
+ >
267
+ > You can always edit the generated file with the BLACKBOX CLI built-in option "Modify with external editor" (if present), or with your favorite external editor after this step.
268
+ > Please respond with A or B."
269
+ - **Loop:** Based on user response, either apply changes and re-present the document, or break the loop on approval.
270
+ 6. **Write File:** Once approved, write the generated content to the `conductor/tech-stack.md` file.
271
+ 7. **Commit State:** Upon successful creation of the file, you MUST immediately write to `conductor/setup_state.json` with the exact content:
272
+ `{"last_successful_step": "2.3_tech_stack"}`
273
+ 8. **Continue:** After writing the state file, immediately proceed to the next section.
274
+
275
+ ### 2.4 Select Guides (Interactive)
276
+ 1. **Initiate Dialogue:** Announce that the initial scaffolding is complete and you now need the user's input to select the project's guides from the locally available templates.
277
+ 2. **Select Code Style Guides:**
278
+ - List the available style guides by running `ls ~/.blackboxcli/extensions/conductor/templates/code_styleguides/`.
279
+ - For new projects (greenfield):
280
+ - **Recommendation:** Based on the Tech Stack defined in the previous step, recommend the most appropriate style guide(s) and explain why.
281
+ - Ask the user how they would like to proceed:
282
+ A) Include the recommended style guides.
283
+ B) Edit the selected set.
284
+ - If the user chooses to edit (Option B):
285
+ - Present the list of all available guides to the user as a **numbered list**.
286
+ - Ask the user which guide(s) they would like to copy.
287
+ - For existing projects (brownfield):
288
+ - **Announce Selection:** Inform the user: "Based on the inferred tech stack, I will copy the following code style guides: <list of inferred guides>."
289
+ - **Ask for Customization:** Ask the user: "Would you like to proceed using only the suggested code style guides?"
290
+ - Ask the user for a simple confirmation to proceed with options like:
291
+ A) Yes, I want to proceed with the suggested code style guides.
292
+ B) No, I want to add more code style guides.
293
+ - **Action:** Construct and execute a command to create the directory and copy all selected files. For example: `mkdir -p conductor/code_styleguides && cp ~/.blackboxcli/extensions/conductor/templates/code_styleguides/python.md ~/.blackboxcli/extensions/conductor/templates/code_styleguides/javascript.md conductor/code_styleguides/`
294
+ - **Commit State:** Upon successful completion of the copy command, you MUST immediately write to `conductor/setup_state.json` with the exact content:
295
+ `{"last_successful_step": "2.4_code_styleguides"}`
296
+
297
+ ### 2.5 Select Workflow (Interactive)
298
+ 1. **Copy Initial Workflow:**
299
+ - Copy `~/.blackboxcli/extensions/conductor/templates/workflow.md` to `conductor/workflow.md`.
300
+ 2. **Customize Workflow:**
301
+ - Ask the user: "Do you want to use the default workflow or customize it?"
302
+ The default workflow includes:
303
+ - 80% code test coverage
304
+ - Commit changes after every task
305
+ - Use Git Notes for task summaries
306
+ - A) Default
307
+ - B) Customize
308
+ - If the user chooses to **customize** (Option B):
309
+ - **Question 1:** "The default required test code coverage is >80% (Recommended). Do you want to change this percentage?"
310
+ - A) No (Keep 80% required coverage)
311
+ - B) Yes (Type the new percentage)
312
+ - **Question 2:** "Do you want to commit changes after each task or after each phase (group of tasks)?"
313
+ - A) After each task (Recommended)
314
+ - B) After each phase
315
+ - **Question 3:** "Do you want to use git notes or the commit message to record the task summary?"
316
+ - A) Git Notes (Recommended)
317
+ - B) Commit Message
318
+ - **Action:** Update `conductor/workflow.md` based on the user's responses.
319
+ - **Commit State:** After the `workflow.md` file is successfully written or updated, you MUST immediately write to `conductor/setup_state.json` with the exact content:
320
+ `{"last_successful_step": "2.5_workflow"}`
321
+
322
+ ### 2.6 Finalization
323
+ 1. **Summarize Actions:** Present a summary of all actions taken during Phase 1, including:
324
+ - The guide files that were copied.
325
+ - The workflow file that was copied.
326
+ 2. **Transition to initial plan and track generation:** Announce that the initial setup is complete and you will now proceed to define the first track for the project.
327
+
328
+ ---
329
+
330
+ ## 3.0 INITIAL PLAN AND TRACK GENERATION
331
+ **PROTOCOL: Interactively define project requirements, propose a single track, and then automatically create the corresponding track and its phased plan.**
332
+
333
+ ### 3.1 Generate Product Requirements (Interactive)(For greenfield projects only)
334
+ 1. **Transition to Requirements:** Announce that the initial project setup is complete. State that you will now begin defining the high-level product requirements by asking about topics like user stories and functional/non-functional requirements.
335
+ 2. **Analyze Context:** Read and analyze the content of `conductor/product.md` to understand the project's core concept.
336
+ 3. **Ask Questions Sequentially:** Ask one question at a time. Wait for and process the user's response before asking the next question. Continue this interactive process until you have gathered enough information.
337
+ - **CONSTRAINT** Limit your inquiries to a maximum of 5 questions.
338
+ - **SUGGESTIONS:** For each question, generate 3 high-quality suggested answers based on common patterns or context you already have.
339
+ * **General Guidelines:**
340
+ * **1. Classify Question Type:** Before formulating any question, you MUST first classify its purpose as either "Additive" or "Exclusive Choice".
341
+ * Use **Additive** for brainstorming and defining scope (e.g., users, goals, features, project guidelines). These questions allow for multiple answers.
342
+ * Use **Exclusive Choice** for foundational, singular commitments (e.g., selecting a primary technology, a specific workflow rule). These questions require a single answer.
343
+
344
+ * **2. Formulate the Question:** Based on the classification, you MUST adhere to the following:
345
+ * **If Additive:** Formulate an open-ended question that encourages multiple points. You MUST then present a list of options and add the exact phrase "(Select all that apply)" directly after the question.
346
+ * **If Exclusive Choice:** Formulate a direct question that guides the user to a single, clear decision. You MUST NOT add "(Select all that apply)".
347
+
348
+ * **3. Interaction Flow:**
349
+ * **CRITICAL:** You MUST ask questions sequentially (one by one). Do not ask multiple questions in a single turn. Wait for the user's response after each question.
350
+ * The last two options for every multiple-choice question MUST be "Type your own answer" and "Auto-generate the rest of requirements and move to the next step".
351
+ * Confirm your understanding by summarizing before moving on.
352
+ - **Format:** You MUST present these as a vertical list, with each option on its own line.
353
+ - **Structure:**
354
+ A) [Option A]
355
+ B) [Option B]
356
+ C) [Option C]
357
+ D) [Type your own answer]
358
+ E) [Auto-generate the rest of requirements and move to the next step]
359
+ - **AUTO-GENERATE LOGIC:** If the user selects option E, immediately stop asking questions for this section. Use your best judgment to infer the remaining details based on previous answers and project context.
360
+ - **CRITICAL:** When processing user responses or auto-generating content, the source of truth for generation is **only the user's selected answer(s)**. You MUST completely ignore the questions you asked and any of the unselected `A/B/C` options you presented. This gathered information will be used in subsequent steps to generate relevant documents. DO NOT include the conversational options (A, B, C, D, E) in the gathered information.
361
+ 4. **Continue:** After gathering enough information, immediately proceed to the next section.
362
+
363
+ ### 3.2 Propose a Single Initial Track (Automated + Approval)
364
+ 1. **State Your Goal:** Announce that you will now propose an initial track to get the project started.
365
+ 2. **Generate Track Title:** Analyze the project context (`product.md`, `tech-stack.md`) and (for greenfield projects) the requirements gathered in the previous step. Generate a single track title that summarizes the entire initial track. For existing projects (brownfield): Recommend a plan focused on maintenance and targeted enhancements that reflect the project's current state.
366
+ - Greenfield project example (usually MVP):
367
+ ```markdown
368
+ To create the MVP of this project, I suggest the following track:
369
+ - Build the core functionality for the tip calculator with a basic calculator and built-in tip percentages.
370
+ ```
371
+ - Brownfield project example:
372
+ ```markdown
373
+ To create the first track of this project, I suggest the following track:
374
+ - Create user authentication flow for user sign in.
375
+ ```
376
+ 3. **User Confirmation:** Present the generated track title to the user for review and approval. If the user declines, ask the user for clarification on what track to start with.
377
+
378
+ ### 3.3 Convert the Initial Track into Artifacts (Automated)
379
+ 1. **State Your Goal:** Once the track is approved, announce that you will now create the artifacts for this initial track.
380
+ 2. **Initialize Tracks File:** Create the `conductor/tracks.md` file with the initial header and the first track:
381
+ ```markdown
382
+ # Project Tracks
383
+
384
+ This file tracks all major tracks for the project. Each track has its own detailed plan in its respective folder.
385
+
386
+ ---
387
+
388
+ ## [ ] Track: <Track Description>
389
+ *Link: [./conductor/tracks/<track_id>/](./conductor/tracks/<track_id>/)*
390
+ ```
391
+ 3. **Generate Track Artifacts:**
392
+ a. **Define Track:** The approved title is the track description.
393
+ b. **Generate Track-Specific Spec & Plan:**
394
+ i. Automatically generate a detailed `spec.md` for this track.
395
+ ii. Automatically generate a `plan.md` for this track.
396
+ - **CRITICAL:** The structure of the tasks must adhere to the principles outlined in the workflow file at `conductor/workflow.md`. For example, if the workflow specificies Test-Driven Development, each feature task must be broken down into a "Write Tests" sub-task followed by an "Implement Feature" sub-task.
397
+ - **CRITICAL: Inject Phase Completion Tasks.** You MUST read the `conductor/workflow.md` file to determine if a "Phase Completion Verification and Checkpointing Protocol" is defined. If this protocol exists, then for each **Phase** that you generate in `plan.md`, you MUST append a final meta-task to that phase. The format for this meta-task is: `- [ ] Task: Conductor - User Manual Verification '<Phase Name>' (Protocol in workflow.md)`. You MUST replace `<Phase Name>` with the actual name of the phase.
398
+ c. **Create Track Artifacts:**
399
+ i. **Generate and Store Track ID:** Create a unique Track ID from the track description using format `shortname_YYYYMMDD` and store it. You MUST use this exact same ID for all subsequent steps for this track.
400
+ ii. **Create Single Directory:** Using the stored Track ID, create a single new directory: `conductor/tracks/<track_id>/`.
401
+ iii. **Create `metadata.json`:** In the new directory, create a `metadata.json` file with the correct structure and content, using the stored Track ID. An example is:
402
+ - ```json
403
+ {
404
+ "track_id": "<track_id>",
405
+ "type": "feature", // or "bug"
406
+ "status": "new", // or in_progress, completed, cancelled
407
+ "created_at": "YYYY-MM-DDTHH:MM:SSZ",
408
+ "updated_at": "YYYY-MM-DDTHH:MM:SSZ",
409
+ "description": "<Initial user description>"
410
+ }
411
+ ```
412
+ Populate fields with actual values. Use the current timestamp.
413
+ iv. **Write Spec and Plan Files:** In the exact same directory, write the generated `spec.md` and `plan.md` files.
414
+
415
+ d. **Commit State:** After all track artifacts have been successfully written, you MUST immediately write to `conductor/setup_state.json` with the exact content:
416
+ `{"last_successful_step": "3.3_initial_track_generated"}`
417
+
418
+ e. **Announce Progress:** Announce that the track for "<Track Description>" has been created.
419
+
420
+ ### 3.4 Final Announcement
421
+ 1. **Announce Completion:** After the track has been created, announce that the project setup and initial track generation are complete.
422
+ 2. **Save Conductor Files:** Add and commit all files with the commit message `conductor(setup): Add conductor setup files`.
423
+ 3. **Next Steps:** Inform the user that they can now begin work by running `/conductor:implement`.
424
+ """
@@ -0,0 +1,57 @@
1
+ description = "Displays the current progress of the project"
2
+ prompt = """
3
+ ## 1.0 SYSTEM DIRECTIVE
4
+ You are an AI agent. Your primary function is to provide a status overview of the current tracks file. This involves reading the `conductor/tracks.md` file, parsing its content, and summarizing the progress of tasks.
5
+
6
+ **CRITICAL:** Before proceeding, you should start by checking if the project has been properly set up.
7
+ 1. **Verify Tracks File:** Check if the file `conductor/tracks.md` exists. If it does not, HALT execution and instruct the user: "The project has not been set up or conductor/tracks.md has been corrupted. Please run `/conductor:setup` to set up the plan, or restore conductor/tracks.md."
8
+ 2. **Verify Track Exists:** Check if the file `conductor/tracks.md` is not empty. If it is empty, HALT execution and instruct the user: "The project has not been set up or conductor/tracks.md has been corrupted. Please run `/conductor:setup` to set up the plan, or restore conductor/tracks.md."
9
+
10
+ CRITICAL: You must validate the success of every tool call. If any tool call fails, you MUST halt the current operation immediately, announce the failure to the user, and await further instructions.
11
+
12
+ ---
13
+
14
+
15
+ ## 1.1 SETUP CHECK
16
+ **PROTOCOL: Verify that the Conductor environment is properly set up.**
17
+
18
+ 1. **Check for Required Files:** You MUST verify the existence of the following files in the `conductor` directory:
19
+ - `conductor/tech-stack.md`
20
+ - `conductor/workflow.md`
21
+ - `conductor/product.md`
22
+
23
+ 2. **Handle Missing Files:**
24
+ - If ANY of these files are missing, you MUST halt the operation immediately.
25
+ - Announce: "Conductor is not set up. Please run `/conductor:setup` to set up the environment."
26
+ - Do NOT proceed to Status Overview Protocol.
27
+
28
+ ---
29
+
30
+ ## 2.0 STATUS OVERVIEW PROTOCOL
31
+ **PROTOCOL: Follow this sequence to provide a status overview.**
32
+
33
+ ### 2.1 Read Project Plan
34
+ 1. **Locate and Read:** Read the content of the `conductor/tracks.md` file.
35
+ 2. **Locate and Read:** List the tracks using shell command `ls conductor/tracks`. For each of the tracks, read the corresponding `conductor/tracks/<track_id>/plan.md` file.
36
+
37
+ ### 2.2 Parse and Summarize Plan
38
+ 1. **Parse Content:**
39
+ - Identify major project phases/sections (e.g., top-level markdown headings).
40
+ - Identify individual tasks and their current status (e.g., bullet points under headings, looking for keywords like "COMPLETED", "IN PROGRESS", "PENDING").
41
+ 2. **Generate Summary:** Create a concise summary of the project's overall progress. This should include:
42
+ - The total number of major phases.
43
+ - The total number of tasks.
44
+ - The number of tasks completed, in progress, and pending.
45
+
46
+ ### 2.3 Present Status Overview
47
+ 1. **Output Summary:** Present the generated summary to the user in a clear, readable format. The status report must include:
48
+ - **Current Date/Time:** The current timestamp.
49
+ - **Project Status:** A high-level summary of progress (e.g., "On Track", "Behind Schedule", "Blocked").
50
+ - **Current Phase and Task:** The specific phase and task currently marked as "IN PROGRESS".
51
+ - **Next Action Needed:** The next task listed as "PENDING".
52
+ - **Blockers:** Any items explicitly marked as blockers in the plan.
53
+ - **Phases (total):** The total number of major phases.
54
+ - **Tasks (total):** The total number of tasks.
55
+ - **Progress:** The overall progress of the plan, presented as tasks_completed/tasks_total (percentage_completed%).
56
+
57
+ """
@@ -0,0 +1,23 @@
1
+ # General Code Style Principles
2
+
3
+ This document outlines general coding principles that apply across all languages and frameworks used in this project.
4
+
5
+ ## Readability
6
+ - Code should be easy to read and understand by humans.
7
+ - Avoid overly clever or obscure constructs.
8
+
9
+ ## Consistency
10
+ - Follow existing patterns in the codebase.
11
+ - Maintain consistent formatting, naming, and structure.
12
+
13
+ ## Simplicity
14
+ - Prefer simple solutions over complex ones.
15
+ - Break down complex problems into smaller, manageable parts.
16
+
17
+ ## Maintainability
18
+ - Write code that is easy to modify and extend.
19
+ - Minimize dependencies and coupling.
20
+
21
+ ## Documentation
22
+ - Document *why* something is done, not just *what*.
23
+ - Keep documentation up-to-date with code changes.
@@ -0,0 +1,48 @@
1
+ # Effective Go Style Guide Summary
2
+
3
+ This document summarizes key rules and best practices from the official "Effective Go" guide for writing idiomatic Go code.
4
+
5
+ ## 1. Formatting
6
+ - **`gofmt`:** All Go code **must** be formatted with `gofmt` (or `go fmt`). This is a non-negotiable, automated standard.
7
+ - **Indentation:** Use tabs for indentation (`gofmt` handles this).
8
+ - **Line Length:** Go has no strict line length limit. Let `gofmt` handle line wrapping.
9
+
10
+ ## 2. Naming
11
+ - **`MixedCaps`:** Use `MixedCaps` or `mixedCaps` for multi-word names. Do not use underscores.
12
+ - **Exported vs. Unexported:** Names starting with an uppercase letter are exported (public). Names starting with a lowercase letter are not exported (private).
13
+ - **Package Names:** Short, concise, single-word, lowercase names.
14
+ - **Getters:** Do not name getters with a `Get` prefix. A getter for a field named `owner` should be named `Owner()`.
15
+ - **Interface Names:** One-method interfaces are named by the method name plus an `-er` suffix (e.g., `Reader`, `Writer`).
16
+
17
+ ## 3. Control Structures
18
+ - **`if`:** No parentheses around the condition. Braces are mandatory. Can include an initialization statement (e.g., `if err := file.Chmod(0664); err != nil`).
19
+ - **`for`:** Go's only looping construct. Unifies `for` and `while`. Use `for...range` to iterate over slices, maps, strings, and channels.
20
+ - **`switch`:** More general than in C. Cases do not fall through by default (use `fallthrough` explicitly). Can be used without an expression to function as a cleaner `if-else-if` chain.
21
+
22
+ ## 4. Functions
23
+ - **Multiple Returns:** Functions can return multiple values. This is the standard way to return a result and an error (e.g., `value, err`).
24
+ - **Named Result Parameters:** Return parameters can be named. This can make code clearer and more concise.
25
+ - **`defer`:** Schedules a function call to be run immediately before the function executing `defer` returns. Use it for cleanup tasks like closing files.
26
+
27
+ ## 5. Data
28
+ - **`new` vs. `make`:**
29
+ - `new(T)`: Allocates memory for a new item of type `T`, zeroes it, and returns a pointer (`*T`).
30
+ - `make(T, ...)`: Creates and initializes slices, maps, and channels only. Returns an initialized value of type `T` (not a pointer).
31
+ - **Slices:** The preferred way to work with sequences. They are more flexible than arrays.
32
+ - **Maps:** Use the "comma ok" idiom to check for the existence of a key: `value, ok := myMap[key]`.
33
+
34
+ ## 6. Interfaces
35
+ - **Implicit Implementation:** A type implements an interface by implementing its methods. No `implements` keyword is needed.
36
+ - **Small Interfaces:** Prefer many small interfaces over one large one. The standard library is full of single-method interfaces (e.g., `io.Reader`).
37
+
38
+ ## 7. Concurrency
39
+ - **Share Memory By Communicating:** This is the core philosophy. Do not communicate by sharing memory; instead, share memory by communicating.
40
+ - **Goroutines:** Lightweight, concurrently executing functions. Start one with the `go` keyword.
41
+ - **Channels:** Typed conduits for communication between goroutines. Use `make` to create them.
42
+
43
+ ## 8. Errors
44
+ - **`error` type:** The built-in `error` interface is the standard way to handle errors.
45
+ - **Explicit Error Handling:** Do not discard errors with the blank identifier (`_`). Check for errors explicitly.
46
+ - **`panic`:** Reserved for truly exceptional, unrecoverable situations. Generally, libraries should not panic.
47
+
48
+ *Source: [Effective Go](https://go.dev/doc/effective_go)*
@@ -0,0 +1,49 @@
1
+ # Google HTML/CSS Style Guide Summary
2
+
3
+ This document summarizes key rules and best practices from the Google HTML/CSS Style Guide.
4
+
5
+ ## 1. General Rules
6
+ - **Protocol:** Use HTTPS for all embedded resources.
7
+ - **Indentation:** Indent by 2 spaces. Do not use tabs.
8
+ - **Capitalization:** Use only lowercase for all code (element names, attributes, selectors, properties).
9
+ - **Trailing Whitespace:** Remove all trailing whitespace.
10
+ - **Encoding:** Use UTF-8 (without a BOM). Specify `<meta charset="utf-8">` in HTML.
11
+
12
+ ## 2. HTML Style Rules
13
+ - **Document Type:** Use `<!doctype html>`.
14
+ - **HTML Validity:** Use valid HTML.
15
+ - **Semantics:** Use HTML elements according to their intended purpose (e.g., use `<p>` for paragraphs, not for spacing).
16
+ - **Multimedia Fallback:** Provide `alt` text for images and transcripts/captions for audio/video.
17
+ - **Separation of Concerns:** Strictly separate structure (HTML), presentation (CSS), and behavior (JavaScript). Link to CSS and JS from external files.
18
+ - **`type` Attributes:** Omit `type` attributes for stylesheets (`<link>`) and scripts (`<script>`).
19
+
20
+ ## 3. HTML Formatting Rules
21
+ - **General:** Use a new line for every block, list, or table element, and indent its children.
22
+ - **Quotation Marks:** Use double quotation marks (`""`) for attribute values.
23
+
24
+ ## 4. CSS Style Rules
25
+ - **CSS Validity:** Use valid CSS.
26
+ - **Class Naming:** Use meaningful, generic names. Separate words with a hyphen (`-`).
27
+ - **Good:** `.video-player`, `.site-navigation`
28
+ - **Bad:** `.vid`, `.red-text`
29
+ - **ID Selectors:** Avoid using ID selectors for styling. Prefer class selectors.
30
+ - **Shorthand Properties:** Use shorthand properties where possible (e.g., `padding`, `font`).
31
+ - **`0` and Units:** Omit units for `0` values (e.g., `margin: 0;`).
32
+ - **Leading `0`s:** Always include leading `0`s for decimal values (e.g., `font-size: 0.8em;`).
33
+ - **Hexadecimal Notation:** Use 3-character hex notation where possible (e.g., `#fff`).
34
+ - **`!important`:** Avoid using `!important`.
35
+
36
+ ## 5. CSS Formatting Rules
37
+ - **Declaration Order:** Alphabetize declarations within a rule.
38
+ - **Indentation:** Indent all block content.
39
+ - **Semicolons:** Use a semicolon after every declaration.
40
+ - **Spacing:**
41
+ - Use a space after a property name's colon (`font-weight: bold;`).
42
+ - Use a space between the last selector and the opening brace (`.foo {`).
43
+ - Start a new line for each selector and declaration.
44
+ - **Rule Separation:** Separate rules with a new line.
45
+ - **Quotation Marks:** Use single quotes (`''`) for attribute selectors and property values (e.g., `[type='text']`).
46
+
47
+ **BE CONSISTENT.** When editing code, match the existing style.
48
+
49
+ *Source: [Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html)*