@codemieai/code 0.1.0 → 0.2.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 (426) hide show
  1. package/README.md +30 -6
  2. package/bin/codebase-memory-ui-daemon.js +10 -0
  3. package/bin/codemie-codex.js +18 -0
  4. package/dist/agents/core/AgentCLI.d.ts +1 -0
  5. package/dist/agents/core/AgentCLI.d.ts.map +1 -1
  6. package/dist/agents/core/AgentCLI.js +29 -4
  7. package/dist/agents/core/AgentCLI.js.map +1 -1
  8. package/dist/agents/core/session/sync-state-utils.d.ts +11 -0
  9. package/dist/agents/core/session/sync-state-utils.d.ts.map +1 -0
  10. package/dist/agents/core/session/sync-state-utils.js +99 -0
  11. package/dist/agents/core/session/sync-state-utils.js.map +1 -0
  12. package/dist/agents/core/session/types.d.ts +8 -0
  13. package/dist/agents/core/session/types.d.ts.map +1 -1
  14. package/dist/agents/core/session/utils/jsonl-reader.d.ts +8 -0
  15. package/dist/agents/core/session/utils/jsonl-reader.d.ts.map +1 -1
  16. package/dist/agents/core/session/utils/jsonl-reader.js +37 -0
  17. package/dist/agents/core/session/utils/jsonl-reader.js.map +1 -1
  18. package/dist/agents/plugins/claude/claude.plugin.js +1 -1
  19. package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +1 -1
  20. package/dist/agents/plugins/claude/plugin/hooks/hooks.json +0 -15
  21. package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/SKILL.md +641 -0
  22. package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/references/leaderboard-dashboard-report.md +225 -0
  23. package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/references/people-spending-dashboard-report.md +746 -0
  24. package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/references/people-spending-dashboard-template.html +3270 -0
  25. package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/scripts/analytics-cli.js +893 -0
  26. package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/scripts/inspect-schema.js +211 -0
  27. package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/README.md +39 -0
  28. package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/SKILL.md +117 -26
  29. package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/scripts/inject-css.js +40 -0
  30. package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/scripts/inject-data.js +68 -0
  31. package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/style-guide/css/bundle.css +1 -0
  32. package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/SKILL.md +240 -0
  33. package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/assistants.md +256 -0
  34. package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/categories.md +101 -0
  35. package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/datasources.md +401 -0
  36. package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/integrations.md +242 -0
  37. package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/skills.md +191 -0
  38. package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/users.md +38 -0
  39. package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/workflows.md +151 -0
  40. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts.map +1 -1
  41. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +2 -0
  42. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -1
  43. package/dist/agents/plugins/codex/codex-message-types.d.ts +80 -0
  44. package/dist/agents/plugins/codex/codex-message-types.d.ts.map +1 -0
  45. package/dist/agents/plugins/codex/codex-message-types.js +36 -0
  46. package/dist/agents/plugins/codex/codex-message-types.js.map +1 -0
  47. package/dist/agents/plugins/codex/codex-models.d.ts +9 -0
  48. package/dist/agents/plugins/codex/codex-models.d.ts.map +1 -0
  49. package/dist/agents/plugins/codex/codex-models.js +227 -0
  50. package/dist/agents/plugins/codex/codex-models.js.map +1 -0
  51. package/dist/agents/plugins/codex/codex.incremental-sync.d.ts +39 -0
  52. package/dist/agents/plugins/codex/codex.incremental-sync.d.ts.map +1 -0
  53. package/dist/agents/plugins/codex/codex.incremental-sync.js +147 -0
  54. package/dist/agents/plugins/codex/codex.incremental-sync.js.map +1 -0
  55. package/dist/agents/plugins/codex/codex.paths.d.ts +29 -0
  56. package/dist/agents/plugins/codex/codex.paths.d.ts.map +1 -0
  57. package/dist/agents/plugins/codex/codex.paths.js +43 -0
  58. package/dist/agents/plugins/codex/codex.paths.js.map +1 -0
  59. package/dist/agents/plugins/codex/codex.plugin.d.ts +80 -0
  60. package/dist/agents/plugins/codex/codex.plugin.d.ts.map +1 -0
  61. package/dist/agents/plugins/codex/codex.plugin.js +474 -0
  62. package/dist/agents/plugins/codex/codex.plugin.js.map +1 -0
  63. package/dist/agents/plugins/codex/codex.reconciliation.d.ts +43 -0
  64. package/dist/agents/plugins/codex/codex.reconciliation.d.ts.map +1 -0
  65. package/dist/agents/plugins/codex/codex.reconciliation.js +141 -0
  66. package/dist/agents/plugins/codex/codex.reconciliation.js.map +1 -0
  67. package/dist/agents/plugins/codex/codex.session.d.ts +58 -0
  68. package/dist/agents/plugins/codex/codex.session.d.ts.map +1 -0
  69. package/dist/agents/plugins/codex/codex.session.js +326 -0
  70. package/dist/agents/plugins/codex/codex.session.js.map +1 -0
  71. package/dist/agents/plugins/codex/codex.storage-utils.d.ts +15 -0
  72. package/dist/agents/plugins/codex/codex.storage-utils.d.ts.map +1 -0
  73. package/dist/agents/plugins/codex/codex.storage-utils.js +19 -0
  74. package/dist/agents/plugins/codex/codex.storage-utils.js.map +1 -0
  75. package/dist/agents/plugins/codex/index.d.ts +7 -0
  76. package/dist/agents/plugins/codex/index.d.ts.map +1 -0
  77. package/dist/agents/plugins/codex/index.js +9 -0
  78. package/dist/agents/plugins/codex/index.js.map +1 -0
  79. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.d.ts +24 -0
  80. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.d.ts.map +1 -0
  81. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.js +613 -0
  82. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.js.map +1 -0
  83. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.d.ts +21 -0
  84. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.d.ts.map +1 -0
  85. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.js +124 -0
  86. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.js.map +1 -0
  87. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts.map +1 -1
  88. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js +1 -0
  89. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js.map +1 -1
  90. package/dist/agents/plugins/opencode/opencode.storage-utils.d.ts.map +1 -1
  91. package/dist/agents/plugins/opencode/opencode.storage-utils.js +2 -29
  92. package/dist/agents/plugins/opencode/opencode.storage-utils.js.map +1 -1
  93. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.d.ts.map +1 -1
  94. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.js.map +1 -1
  95. package/dist/agents/registry.d.ts.map +1 -1
  96. package/dist/agents/registry.js +2 -0
  97. package/dist/agents/registry.js.map +1 -1
  98. package/dist/bin/codebase-memory-ui-daemon.d.ts +2 -0
  99. package/dist/bin/codebase-memory-ui-daemon.d.ts.map +1 -0
  100. package/dist/bin/codebase-memory-ui-daemon.js +141 -0
  101. package/dist/bin/codebase-memory-ui-daemon.js.map +1 -0
  102. package/dist/bin/proxy-daemon.js +4 -0
  103. package/dist/bin/proxy-daemon.js.map +1 -1
  104. package/dist/cli/commands/assistants/constants.js +2 -2
  105. package/dist/cli/commands/assistants/constants.js.map +1 -1
  106. package/dist/cli/commands/assistants/setup/configuration/constants.js +4 -4
  107. package/dist/cli/commands/assistants/setup/configuration/constants.js.map +1 -1
  108. package/dist/cli/commands/assistants/setup/configuration/ui.d.ts.map +1 -1
  109. package/dist/cli/commands/assistants/setup/configuration/ui.js +10 -13
  110. package/dist/cli/commands/assistants/setup/configuration/ui.js.map +1 -1
  111. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.d.ts +4 -0
  112. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.d.ts.map +1 -0
  113. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.js +76 -0
  114. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.js.map +1 -0
  115. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.d.ts +4 -0
  116. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.d.ts.map +1 -0
  117. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.js +68 -0
  118. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.js.map +1 -0
  119. package/dist/cli/commands/assistants/setup/helpers.d.ts +3 -2
  120. package/dist/cli/commands/assistants/setup/helpers.d.ts.map +1 -1
  121. package/dist/cli/commands/assistants/setup/helpers.js +43 -8
  122. package/dist/cli/commands/assistants/setup/helpers.js.map +1 -1
  123. package/dist/cli/commands/assistants/setup/index.d.ts +3 -1
  124. package/dist/cli/commands/assistants/setup/index.d.ts.map +1 -1
  125. package/dist/cli/commands/assistants/setup/index.js +15 -12
  126. package/dist/cli/commands/assistants/setup/index.js.map +1 -1
  127. package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts +2 -2
  128. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js +2 -2
  129. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js.map +1 -1
  130. package/dist/cli/commands/assistants/setup/selection/ui.d.ts.map +1 -1
  131. package/dist/cli/commands/assistants/setup/selection/ui.js +8 -13
  132. package/dist/cli/commands/assistants/setup/selection/ui.js.map +1 -1
  133. package/dist/cli/commands/assistants/setup/summary/index.d.ts.map +1 -1
  134. package/dist/cli/commands/assistants/setup/summary/index.js +14 -8
  135. package/dist/cli/commands/assistants/setup/summary/index.js.map +1 -1
  136. package/dist/cli/commands/codebase/daemon-manager.d.ts +24 -0
  137. package/dist/cli/commands/codebase/daemon-manager.d.ts.map +1 -0
  138. package/dist/cli/commands/codebase/daemon-manager.js +112 -0
  139. package/dist/cli/commands/codebase/daemon-manager.js.map +1 -0
  140. package/dist/cli/commands/codebase/index.d.ts +3 -0
  141. package/dist/cli/commands/codebase/index.d.ts.map +1 -0
  142. package/dist/cli/commands/codebase/index.js +130 -0
  143. package/dist/cli/commands/codebase/index.js.map +1 -0
  144. package/dist/cli/commands/hook.d.ts.map +1 -1
  145. package/dist/cli/commands/hook.js +15 -2
  146. package/dist/cli/commands/hook.js.map +1 -1
  147. package/dist/cli/commands/install.js +2 -2
  148. package/dist/cli/commands/install.js.map +1 -1
  149. package/dist/cli/commands/profile/display.d.ts.map +1 -1
  150. package/dist/cli/commands/profile/display.js +1 -0
  151. package/dist/cli/commands/profile/display.js.map +1 -1
  152. package/dist/cli/commands/profile/index.d.ts +14 -0
  153. package/dist/cli/commands/profile/index.d.ts.map +1 -1
  154. package/dist/cli/commands/profile/index.js +110 -27
  155. package/dist/cli/commands/profile/index.js.map +1 -1
  156. package/dist/cli/commands/proxy/connectors/desktop-managed-mcp-servers.json +1 -1
  157. package/dist/cli/commands/proxy/connectors/desktop.d.ts +4 -6
  158. package/dist/cli/commands/proxy/connectors/desktop.d.ts.map +1 -1
  159. package/dist/cli/commands/proxy/connectors/desktop.js +112 -25
  160. package/dist/cli/commands/proxy/connectors/desktop.js.map +1 -1
  161. package/dist/cli/commands/proxy/daemon-manager.d.ts +1 -0
  162. package/dist/cli/commands/proxy/daemon-manager.d.ts.map +1 -1
  163. package/dist/cli/commands/proxy/daemon-manager.js +2 -0
  164. package/dist/cli/commands/proxy/daemon-manager.js.map +1 -1
  165. package/dist/cli/commands/proxy/index.d.ts.map +1 -1
  166. package/dist/cli/commands/proxy/index.js +42 -0
  167. package/dist/cli/commands/proxy/index.js.map +1 -1
  168. package/dist/cli/commands/sdk/assistants.d.ts +3 -0
  169. package/dist/cli/commands/sdk/assistants.d.ts.map +1 -0
  170. package/dist/cli/commands/sdk/assistants.js +211 -0
  171. package/dist/cli/commands/sdk/assistants.js.map +1 -0
  172. package/dist/cli/commands/sdk/categories.d.ts +3 -0
  173. package/dist/cli/commands/sdk/categories.d.ts.map +1 -0
  174. package/dist/cli/commands/sdk/categories.js +186 -0
  175. package/dist/cli/commands/sdk/categories.js.map +1 -0
  176. package/dist/cli/commands/sdk/datasources.d.ts +3 -0
  177. package/dist/cli/commands/sdk/datasources.d.ts.map +1 -0
  178. package/dist/cli/commands/sdk/datasources.js +276 -0
  179. package/dist/cli/commands/sdk/datasources.js.map +1 -0
  180. package/dist/cli/commands/sdk/index.d.ts +3 -0
  181. package/dist/cli/commands/sdk/index.d.ts.map +1 -0
  182. package/dist/cli/commands/sdk/index.js +23 -0
  183. package/dist/cli/commands/sdk/index.js.map +1 -0
  184. package/dist/cli/commands/sdk/integrations.d.ts +3 -0
  185. package/dist/cli/commands/sdk/integrations.d.ts.map +1 -0
  186. package/dist/cli/commands/sdk/integrations.js +220 -0
  187. package/dist/cli/commands/sdk/integrations.js.map +1 -0
  188. package/dist/cli/commands/sdk/llm.d.ts +3 -0
  189. package/dist/cli/commands/sdk/llm.d.ts.map +1 -0
  190. package/dist/cli/commands/sdk/llm.js +48 -0
  191. package/dist/cli/commands/sdk/llm.js.map +1 -0
  192. package/dist/cli/commands/sdk/services/assistants.d.ts +13 -0
  193. package/dist/cli/commands/sdk/services/assistants.d.ts.map +1 -0
  194. package/dist/cli/commands/sdk/services/assistants.js +60 -0
  195. package/dist/cli/commands/sdk/services/assistants.js.map +1 -0
  196. package/dist/cli/commands/sdk/services/categories.d.ts +8 -0
  197. package/dist/cli/commands/sdk/services/categories.d.ts.map +1 -0
  198. package/dist/cli/commands/sdk/services/categories.js +19 -0
  199. package/dist/cli/commands/sdk/services/categories.js.map +1 -0
  200. package/dist/cli/commands/sdk/services/datasources.d.ts +33 -0
  201. package/dist/cli/commands/sdk/services/datasources.d.ts.map +1 -0
  202. package/dist/cli/commands/sdk/services/datasources.js +268 -0
  203. package/dist/cli/commands/sdk/services/datasources.js.map +1 -0
  204. package/dist/cli/commands/sdk/services/index.d.ts +6 -0
  205. package/dist/cli/commands/sdk/services/index.d.ts.map +1 -0
  206. package/dist/cli/commands/sdk/services/index.js +6 -0
  207. package/dist/cli/commands/sdk/services/index.js.map +1 -0
  208. package/dist/cli/commands/sdk/services/integrations.d.ts +27 -0
  209. package/dist/cli/commands/sdk/services/integrations.d.ts.map +1 -0
  210. package/dist/cli/commands/sdk/services/integrations.js +59 -0
  211. package/dist/cli/commands/sdk/services/integrations.js.map +1 -0
  212. package/dist/cli/commands/sdk/services/llm.d.ts +4 -0
  213. package/dist/cli/commands/sdk/services/llm.d.ts.map +1 -0
  214. package/dist/cli/commands/sdk/services/llm.js +7 -0
  215. package/dist/cli/commands/sdk/services/llm.js.map +1 -0
  216. package/dist/cli/commands/sdk/services/skills.d.ts +23 -0
  217. package/dist/cli/commands/sdk/services/skills.d.ts.map +1 -0
  218. package/dist/cli/commands/sdk/services/skills.js +69 -0
  219. package/dist/cli/commands/sdk/services/skills.js.map +1 -0
  220. package/dist/cli/commands/sdk/services/users.d.ts +4 -0
  221. package/dist/cli/commands/sdk/services/users.d.ts.map +1 -0
  222. package/dist/cli/commands/sdk/services/users.js +7 -0
  223. package/dist/cli/commands/sdk/services/users.js.map +1 -0
  224. package/dist/cli/commands/sdk/services/workflows.d.ts +7 -0
  225. package/dist/cli/commands/sdk/services/workflows.d.ts.map +1 -0
  226. package/dist/cli/commands/sdk/services/workflows.js +34 -0
  227. package/dist/cli/commands/sdk/services/workflows.js.map +1 -0
  228. package/dist/cli/commands/sdk/skills.d.ts +3 -0
  229. package/dist/cli/commands/sdk/skills.d.ts.map +1 -0
  230. package/dist/cli/commands/sdk/skills.js +492 -0
  231. package/dist/cli/commands/sdk/skills.js.map +1 -0
  232. package/dist/cli/commands/sdk/users.d.ts +3 -0
  233. package/dist/cli/commands/sdk/users.d.ts.map +1 -0
  234. package/dist/cli/commands/sdk/users.js +81 -0
  235. package/dist/cli/commands/sdk/users.js.map +1 -0
  236. package/dist/cli/commands/sdk/utils/cli-utils.d.ts +35 -0
  237. package/dist/cli/commands/sdk/utils/cli-utils.d.ts.map +1 -0
  238. package/dist/cli/commands/sdk/utils/cli-utils.js +110 -0
  239. package/dist/cli/commands/sdk/utils/cli-utils.js.map +1 -0
  240. package/dist/cli/commands/sdk/utils/datasource-types.d.ts +9 -0
  241. package/dist/cli/commands/sdk/utils/datasource-types.d.ts.map +1 -0
  242. package/dist/cli/commands/sdk/utils/datasource-types.js +61 -0
  243. package/dist/cli/commands/sdk/utils/datasource-types.js.map +1 -0
  244. package/dist/cli/commands/sdk/utils/file-utils.d.ts +8 -0
  245. package/dist/cli/commands/sdk/utils/file-utils.d.ts.map +1 -0
  246. package/dist/cli/commands/sdk/utils/file-utils.js +21 -0
  247. package/dist/cli/commands/sdk/utils/file-utils.js.map +1 -0
  248. package/dist/cli/commands/sdk/utils/render.d.ts +82 -0
  249. package/dist/cli/commands/sdk/utils/render.d.ts.map +1 -0
  250. package/dist/cli/commands/sdk/utils/render.js +149 -0
  251. package/dist/cli/commands/sdk/utils/render.js.map +1 -0
  252. package/dist/cli/commands/sdk/workflows.d.ts +3 -0
  253. package/dist/cli/commands/sdk/workflows.d.ts.map +1 -0
  254. package/dist/cli/commands/sdk/workflows.js +170 -0
  255. package/dist/cli/commands/sdk/workflows.js.map +1 -0
  256. package/dist/cli/commands/setup.js +1 -1
  257. package/dist/cli/commands/setup.js.map +1 -1
  258. package/dist/cli/commands/shared/agent-targets.d.ts +10 -0
  259. package/dist/cli/commands/shared/agent-targets.d.ts.map +1 -0
  260. package/dist/cli/commands/shared/agent-targets.js +220 -0
  261. package/dist/cli/commands/shared/agent-targets.js.map +1 -0
  262. package/dist/cli/commands/shared/prompts/storage-scope.d.ts.map +1 -1
  263. package/dist/cli/commands/shared/prompts/storage-scope.js +9 -2
  264. package/dist/cli/commands/shared/prompts/storage-scope.js.map +1 -1
  265. package/dist/cli/commands/shared/selection/ui.d.ts +22 -0
  266. package/dist/cli/commands/shared/selection/ui.d.ts.map +1 -1
  267. package/dist/cli/commands/shared/selection/ui.js +34 -0
  268. package/dist/cli/commands/shared/selection/ui.js.map +1 -1
  269. package/dist/cli/commands/skills/lib/skills-metrics.d.ts.map +1 -1
  270. package/dist/cli/commands/skills/lib/skills-metrics.js +47 -11
  271. package/dist/cli/commands/skills/lib/skills-metrics.js.map +1 -1
  272. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.d.ts +4 -0
  273. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.d.ts.map +1 -0
  274. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.js +51 -0
  275. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.js.map +1 -0
  276. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.d.ts +4 -0
  277. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.d.ts.map +1 -0
  278. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.js +51 -0
  279. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.js.map +1 -0
  280. package/dist/cli/commands/skills/setup/helpers.d.ts +3 -2
  281. package/dist/cli/commands/skills/setup/helpers.d.ts.map +1 -1
  282. package/dist/cli/commands/skills/setup/helpers.js +31 -6
  283. package/dist/cli/commands/skills/setup/helpers.js.map +1 -1
  284. package/dist/cli/commands/skills/setup/index.d.ts +2 -1
  285. package/dist/cli/commands/skills/setup/index.d.ts.map +1 -1
  286. package/dist/cli/commands/skills/setup/index.js +14 -11
  287. package/dist/cli/commands/skills/setup/index.js.map +1 -1
  288. package/dist/cli/commands/skills/setup/selection/ui.d.ts.map +1 -1
  289. package/dist/cli/commands/skills/setup/selection/ui.js +8 -13
  290. package/dist/cli/commands/skills/setup/selection/ui.js.map +1 -1
  291. package/dist/cli/commands/test-metrics.js +3 -4
  292. package/dist/cli/commands/test-metrics.js.map +1 -1
  293. package/dist/cli/index.js +5 -0
  294. package/dist/cli/index.js.map +1 -1
  295. package/dist/env/types.d.ts +2 -0
  296. package/dist/env/types.d.ts.map +1 -1
  297. package/dist/env/types.js.map +1 -1
  298. package/dist/frameworks/plugins/bmad.plugin.d.ts +10 -1
  299. package/dist/frameworks/plugins/bmad.plugin.d.ts.map +1 -1
  300. package/dist/frameworks/plugins/bmad.plugin.js +108 -9
  301. package/dist/frameworks/plugins/bmad.plugin.js.map +1 -1
  302. package/dist/frameworks/plugins/codebase-memory.plugin.d.ts +18 -0
  303. package/dist/frameworks/plugins/codebase-memory.plugin.d.ts.map +1 -0
  304. package/dist/frameworks/plugins/codebase-memory.plugin.js +131 -0
  305. package/dist/frameworks/plugins/codebase-memory.plugin.js.map +1 -0
  306. package/dist/frameworks/plugins/index.d.ts +1 -0
  307. package/dist/frameworks/plugins/index.d.ts.map +1 -1
  308. package/dist/frameworks/plugins/index.js +3 -0
  309. package/dist/frameworks/plugins/index.js.map +1 -1
  310. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.d.ts +1 -1
  311. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js +4 -4
  312. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js.map +1 -1
  313. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.d.ts +20 -0
  314. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.d.ts.map +1 -0
  315. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.js +104 -0
  316. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.js.map +1 -0
  317. package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.d.ts.map +1 -1
  318. package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.js +24 -3
  319. package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.js.map +1 -1
  320. package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js +5 -0
  321. package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js.map +1 -1
  322. package/dist/providers/plugins/sso/proxy/plugins/index.d.ts +3 -1
  323. package/dist/providers/plugins/sso/proxy/plugins/index.d.ts.map +1 -1
  324. package/dist/providers/plugins/sso/proxy/plugins/index.js +5 -1
  325. package/dist/providers/plugins/sso/proxy/plugins/index.js.map +1 -1
  326. package/dist/providers/plugins/sso/proxy/plugins/logging.plugin.js +10 -3
  327. package/dist/providers/plugins/sso/proxy/plugins/logging.plugin.js.map +1 -1
  328. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.d.ts.map +1 -1
  329. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js +26 -8
  330. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js.map +1 -1
  331. package/dist/providers/plugins/sso/proxy/sso.proxy.d.ts.map +1 -1
  332. package/dist/providers/plugins/sso/proxy/sso.proxy.js +21 -4
  333. package/dist/providers/plugins/sso/proxy/sso.proxy.js.map +1 -1
  334. package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -1
  335. package/dist/providers/plugins/sso/session/SessionSyncer.js +5 -72
  336. package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -1
  337. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts +1 -1
  338. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts.map +1 -1
  339. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js +95 -4
  340. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js.map +1 -1
  341. package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts +2 -2
  342. package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts.map +1 -1
  343. package/dist/providers/plugins/sso/session/processors/conversations/constants.js +2 -2
  344. package/dist/providers/plugins/sso/session/processors/conversations/constants.js.map +1 -1
  345. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.d.ts.map +1 -1
  346. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js +85 -21
  347. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js.map +1 -1
  348. package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts +10 -2
  349. package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts.map +1 -1
  350. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts +1 -1
  351. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts.map +1 -1
  352. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js +80 -46
  353. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js.map +1 -1
  354. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts +1 -9
  355. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts.map +1 -1
  356. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js +94 -30
  357. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js.map +1 -1
  358. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts +4 -6
  359. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts.map +1 -1
  360. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js +24 -25
  361. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js.map +1 -1
  362. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -1
  363. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js +140 -99
  364. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -1
  365. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts +11 -3
  366. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts.map +1 -1
  367. package/dist/providers/plugins/sso/sso.auth.d.ts.map +1 -1
  368. package/dist/providers/plugins/sso/sso.auth.js +22 -4
  369. package/dist/providers/plugins/sso/sso.auth.js.map +1 -1
  370. package/dist/providers/plugins/sso/sso.setup-steps.js +2 -2
  371. package/dist/providers/plugins/sso/sso.setup-steps.js.map +1 -1
  372. package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.d.ts.map +1 -1
  373. package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.js +4 -1
  374. package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.js.map +1 -1
  375. package/dist/telemetry/runtime/DesktopTelemetryRuntime.d.ts.map +1 -1
  376. package/dist/telemetry/runtime/DesktopTelemetryRuntime.js +1 -3
  377. package/dist/telemetry/runtime/DesktopTelemetryRuntime.js.map +1 -1
  378. package/dist/utils/browser.d.ts +7 -0
  379. package/dist/utils/browser.d.ts.map +1 -0
  380. package/dist/utils/browser.js +10 -0
  381. package/dist/utils/browser.js.map +1 -0
  382. package/dist/utils/config.d.ts.map +1 -1
  383. package/dist/utils/config.js +7 -1
  384. package/dist/utils/config.js.map +1 -1
  385. package/dist/utils/paths.d.ts +8 -0
  386. package/dist/utils/paths.d.ts.map +1 -1
  387. package/dist/utils/paths.js +15 -0
  388. package/dist/utils/paths.js.map +1 -1
  389. package/package.json +2 -1
  390. package/scripts/compare-codex-conversations.mjs +894 -0
  391. package/scripts/validate-secrets.js +7 -3
  392. package/dist/agents/plugins/claude/plugin/claude-templates/README.md +0 -539
  393. package/dist/agents/plugins/claude/plugin/claude-templates/templates/CLAUDE.md.template +0 -252
  394. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/code-review-agent-template.md.template +0 -433
  395. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/refactor-cleaner-agent.md.template +0 -337
  396. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/solution-architect-agent.md.template +0 -197
  397. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/unit-tester-agent.md.template +0 -258
  398. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/api/api-patterns.md.template +0 -179
  399. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/architecture.md.template +0 -197
  400. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/data/database-patterns.md.template +0 -248
  401. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/development/development-practices.md.template +0 -298
  402. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/integration/external-integrations.md.template +0 -160
  403. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/security/security-practices.md.template +0 -295
  404. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/code-quality.md.template +0 -186
  405. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/git-workflow.md.template +0 -177
  406. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/testing/testing-patterns.md.template +0 -315
  407. package/dist/agents/plugins/claude/plugin/commands/codemie-init.md +0 -522
  408. package/dist/agents/plugins/claude/plugin/commands/handoff.md +0 -56
  409. package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +0 -549
  410. package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-baseline.sh +0 -39
  411. package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-rewrite.sh +0 -101
  412. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/SKILL.md +0 -206
  413. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-agent.md +0 -45
  414. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-claude-md-snippet.md +0 -40
  415. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-command.md +0 -30
  416. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-hooks.json +0 -23
  417. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-skill.md +0 -48
  418. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-agent.md +0 -145
  419. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-claude-md-snippet.md +0 -126
  420. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-command.md +0 -170
  421. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-hooks.json +0 -46
  422. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-skill.md +0 -144
  423. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/sample-report.md +0 -223
  424. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/best-practices.md +0 -510
  425. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/component-checklists.md +0 -413
  426. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/scripts/scan-repo.sh +0 -162
@@ -1,522 +0,0 @@
1
- ---
2
- description: Initialize documentation for a project using CodeMie approach — analyze structure, generate AI-optimized guides, and install superpowers skills.
3
- allowed-tools: Bash, Read, Glob, Grep, Write, Edit
4
- ---
5
-
6
- # Codemie Init
7
-
8
- Additional context: $ARGUMENTS
9
-
10
- ## Purpose
11
-
12
- Initialize a project for AI-assisted development:
13
- 1. Install superpowers skills (project-level)
14
- 2. Generate `.codemie/guides/` for patterns that actually exist in the codebase
15
- 3. Generate a `CLAUDE.md` that imports those guides
16
-
17
- ---
18
-
19
- ## Phase 0: Install Superpowers Skills
20
-
21
- Install superpowers skills at project level using the [skills CLI](https://github.com/vercel-labs/skills):
22
-
23
- ```bash
24
- npx skills add obra/superpowers --all -a claude-code
25
- ```
26
-
27
- This installs to `.claude/skills/` in the project root. Skip if `.claude/skills/` already contains superpowers skills.
28
-
29
- **Verify**: check that `.claude/skills/brainstorming/SKILL.md` exists after install.
30
-
31
- ---
32
-
33
- ## Critical Rules
34
-
35
- ### Size Limits (mandatory)
36
-
37
- - **CLAUDE.md**: 200-300 lines maximum
38
- - **Each guide**: 200-400 lines maximum
39
-
40
- ### Generation principles
41
- - Create guides ONLY for patterns that actually exist in the codebase
42
- - Brief code examples (5-15 lines max), one per pattern
43
- - Reference `file:line` instead of copying entire functions
44
- - Multiple `.md` files per category are fine
45
- - No guides for non-existent features
46
-
47
- ### Existing documentation
48
- - If `CLAUDE.md` exists → update/adjust, do not overwrite
49
- - If guides exist in `.codemie/guides/` → read, include, adjust if outdated
50
- - Preserve user customizations
51
-
52
- ---
53
-
54
- ## Phase 1: Discovery & Analysis
55
-
56
- #### Step 1.1: Check Existing Documentation
57
-
58
- **Task**: Detect existing Codemie documentation
59
-
60
- **Actions**:
61
- 1. Check if `CLAUDE.md` exists in project root
62
- 2. Check if `.codemie/guides/` directory exists
63
- 3. If guides exist, read each one and extract:
64
- - Category and purpose
65
- - Key patterns documented
66
- - Quality and completeness
67
-
68
- **Decision**:
69
- - Existing CLAUDE.md found → Load and prepare for adjustment
70
- - Existing guides found → Include in final CLAUDE.md, adjust if outdated
71
- - Nothing exists → Fresh generation from templates
72
-
73
- ---
74
-
75
- #### Step 1.2: Analyze Project Structure
76
-
77
- **Task**: Discover project organization, tech stack, and patterns
78
-
79
- **Discover**:
80
- - Package manager files (package.json, requirements.txt, pom.xml, go.mod, Cargo.toml)
81
- - Programming language(s) and framework(s)
82
- - Directory structure (src/, lib/, app/, tests/, etc.)
83
- - Configuration files
84
- - Build and run scripts
85
-
86
- **Output**: Project analysis summary:
87
- - Language + version
88
- - Framework + version
89
- - Build tools
90
- - Test framework
91
- - Key directories
92
-
93
- **Confidence Check**: Tech stack identified with 80%+ confidence?
94
- - ✅ YES → Continue
95
- - ❌ NO → Ask user for clarification
96
-
97
- ---
98
-
99
- #### Step 1.3: Identify What Actually Exists
100
-
101
- **Task**: Detect ONLY categories/features that exist in codebase
102
-
103
- **Analyze codebase for each category**:
104
-
105
- | Category | What to Look For | Detection Signals |
106
- |----------|------------------|-------------------|
107
- | **Architecture** | Project structure, layer separation, design patterns | Directory organization, module boundaries, dependency flow |
108
- | **API Development** | REST/GraphQL endpoints, routing, request handling | Route decorators, controllers, endpoint definitions, API schemas |
109
- | **Data & Database** | ORM usage, models, repositories, migrations | Model classes, database configs, migration files, query patterns |
110
- | **Testing** | Test files, test configuration, mocking | Test directories, test framework config, fixture files |
111
- | **Development Practices** | Code patterns, error handling, logging, components | Custom exceptions, logger setup, shared utilities, UI components |
112
- | **Integrations** | External services, third-party APIs, messaging | API clients, SDK usage, queue consumers/producers, webhooks |
113
- | **Workflows** | Business logic, state machines, process flows | Workflow definitions, state handlers, domain services |
114
- | **Security** | Authentication, authorization, validation | Auth middleware, permission checks, input validators, security configs |
115
-
116
- **Output**: List of confirmed categories with evidence (file paths)
117
-
118
- **Example Output**:
119
- ```
120
- ✅ Architecture - Found: src/controllers/, src/services/, src/repositories/
121
- ✅ API Development - Found: REST routes in src/api/, OpenAPI spec
122
- ✅ Data & Database - Found: PostgreSQL config, SQLAlchemy models in src/models/
123
- ✅ Testing - Found: pytest.ini, tests/ directory with 50+ test files
124
- ✅ Development Practices - Found: Custom exceptions, logging config, React components
125
- ❌ Integrations - Not found: No external API clients detected
126
- ❌ Workflows - Not found: No state machines or workflow definitions
127
- ✅ Security - Found: JWT auth middleware, input validation schemas
128
- ```
129
-
130
- ---
131
-
132
- #### Step 1.4: Read Existing Project Documentation
133
-
134
- **Task**: Extract context from existing docs
135
-
136
- **Check and read**:
137
- - README.md
138
- - CONTRIBUTING.md
139
- - docs/ directory
140
- - Any ADRs (Architecture Decision Records)
141
-
142
- **Extract**:
143
- - Project purpose
144
- - Setup/build/run commands
145
- - Testing commands
146
- - Known conventions
147
-
148
- ---
149
-
150
- ## Phase 2: Determine Required Guides
151
-
152
- #### Step 2.1: Map Categories to Guides
153
-
154
- **Task**: Based on Step 1.3, determine which guides to create per category
155
-
156
- **Guide Categories Reference**:
157
-
158
- | Category | User Intent / Purpose | Guide Folder | Possible Guides |
159
- |----------|----------------------|--------------|-------------------------------------------------------------------------|
160
- | **Architecture** | System structure, design decisions, patterns, planning features | .codemie/guides/architecture/ | architecture.md, patterns.md |
161
- | **API Development** | REST/GraphQL endpoints, routing, request/response handling | .codemie/guides/api/ | api-patterns.md, [specific-api].md |
162
- | **Data & Database** | Database operations, queries, migrations, models, repositories | .codemie/guides/data/ | data-patterns.md |
163
- | **Testing** | Writing/fixing tests, coverage, mocking, test infrastructure | .codemie/guides/testing/ | testing-patterns.md, [framework]-testing.md |
164
- | **Development Practices** | Code quality, error handling, components, standards | .codemie/guides/development/ | development-practices.md, frontend-patterns.md, [component]-patterns.md |
165
- | **Integrations** | External services, third-party APIs, cloud services, messaging | .codemie/guides/integrations/ | [service-name].md, external-apis.md |
166
- | **Workflows** | Business logic, state machines, process flows, domain operations | .codemie/guides/workflows/ | workflow-patterns.md, [workflow-name].md |
167
- | **Security** | Authentication, authorization, input validation, secrets | .codemie/guides/security/ | security-patterns.md |
168
-
169
- **Rules for Guide Creation**:
170
- - ❌ Category NOT detected → DO NOT create any guides for it
171
- - ✅ Category detected → Create relevant guides with real examples
172
- - ✅ Multiple guides per category allowed (e.g., separate component guides in development/)
173
- - ✅ Existing guide found → Review, include, adjust if needed
174
-
175
- **Determine Specific Guides**:
176
-
177
- For each detected category, identify specific guides needed:
178
-
179
- ```
180
- Example for detected "Development Practices" category:
181
- - Error handling patterns found → development/error-handling.md
182
- - Logging configuration found → development/logging.md
183
- - React components found → development/react-components.md
184
- - Shared utilities found → development/utilities.md
185
- ```
186
-
187
- ---
188
-
189
- #### Step 2.2: Merge with Existing Guides
190
-
191
- **Task**: Combine new guides with any existing ones
192
-
193
- **Actions**:
194
- 1. List guides to create (from Step 2.1)
195
- 2. List existing guides (from Step 1.1)
196
- 3. Merge lists:
197
- - Existing guide covers same topic → Review and adjust existing
198
- - New guide needed, no existing → Create new
199
- - Existing guide, no longer relevant → Keep but note as legacy
200
-
201
- ---
202
-
203
- #### Step 2.3: User Confirmation
204
-
205
- **Present to user**:
206
-
207
- ```
208
- Based on codebase analysis, I'll create/update guides for these categories:
209
-
210
- **Categories Detected**:
211
-
212
- 📁 Architecture
213
- - To create: architecture.md (system layers and patterns)
214
-
215
- 📁 API Development
216
- - To create: api-patterns.md (REST conventions found in src/api/)
217
-
218
- 📁 Data & Database
219
- - To create: database-patterns.md (PostgreSQL + SQLAlchemy patterns)
220
-
221
- 📁 Testing
222
- - To create: testing-patterns.md (pytest patterns)
223
- - Existing: integration-testing.md ✓ (will include, no changes needed)
224
-
225
- 📁 Development Practices
226
- - To create: error-handling.md, logging.md
227
- - To create: react-components.md (UI component patterns)
228
-
229
- 📁 Security
230
- - To create: security-patterns.md (JWT auth, validation)
231
-
232
- **Categories Skipped** (not found in codebase):
233
- ⏭️ Integrations - No external API clients detected
234
- ⏭️ Workflows - No state machines or workflow definitions
235
-
236
- Proceed with this plan? (Yes / Customize)
237
- ```
238
-
239
- ---
240
-
241
- ## Phase 3: Generate Guides
242
-
243
- #### Step 3.1: Create Directory Structure
244
-
245
- **Actions**:
246
- ```bash
247
- mkdir -p .codemie/guides
248
- # Create category subdirectories ONLY for categories with guides being generated
249
- ```
250
-
251
- ---
252
-
253
- #### Step 3.2: Generate Each Guide
254
-
255
- **For each guide in approved list**:
256
-
257
- **3.2.1: Load Template**
258
- - Read from `${CLAUDE_PLUGIN_ROOT}/claude-templates/templates/guides/[category]/[guide].md.template`
259
- - If no specific template exists, use category base template
260
-
261
- **3.2.2: Analyze Codebase for This Guide**
262
- - Find relevant code examples
263
- - Extract actual patterns used
264
- - Note file paths with line numbers
265
-
266
- **3.2.3: Populate Template**
267
-
268
- Replace placeholders with real project data:
269
- - `[PROJECT_NAME]` → Actual name
270
- - `[LANGUAGE]` → Detected language
271
- - `[FRAMEWORK]` → Detected framework
272
- - `[code_example]` → Real code from codebase (5-15 lines)
273
- - `[file:lines]` → Actual file paths
274
-
275
- **3.2.4: Validate Size**
276
- ```bash
277
- LINE_COUNT=$(wc -l < .codemie/guides/[category]/[guide].md)
278
- if [ $LINE_COUNT -gt 400 ]; then
279
- # STOP - condense before continuing
280
- fi
281
- ```
282
-
283
- **3.2.5: Write Guide**
284
- - Save to `.codemie/guides/[category]/[guide].md`
285
- - Verify no placeholders remain
286
-
287
- ---
288
-
289
- #### Step 3.3: Track Progress
290
-
291
- Use TodoWrite to track by category:
292
- ```
293
- Architecture:
294
- - [ ] architecture/architecture.md
295
-
296
- API Development:
297
- - [ ] api/api-patterns.md
298
-
299
- Data & Database:
300
- - [ ] data/database-patterns.md
301
-
302
- Testing:
303
- - [ ] testing/testing-patterns.md
304
-
305
- Development Practices:
306
- - [ ] development/error-handling.md
307
- - [ ] development/logging.md
308
- - [ ] development/react-components.md
309
-
310
- Security:
311
- - [ ] security/security-patterns.md
312
- ```
313
-
314
- ---
315
-
316
- ## Phase 4: Generate CLAUDE.md
317
-
318
- #### Step 4.1: Load Template
319
-
320
- - Read `${CLAUDE_PLUGIN_ROOT}/claude-templates/templates/CLAUDE.md.template`
321
-
322
- ---
323
-
324
- #### Step 4.2: Populate Sections
325
-
326
- **4.2.1: Basic Info**
327
- - Replace `[PROJECT_NAME]`, `[LANGUAGE]`, `[FRAMEWORK]`, etc.
328
-
329
- **4.2.2: Critical Rules**
330
- - Set environment rule based on project type (venv, nvm, docker, etc.)
331
- - Remove rule row if not applicable
332
-
333
- **4.2.3: Guide Imports Table**
334
-
335
- List ALL guides grouped by category:
336
-
337
- ```markdown
338
- | Category | Guide Path | Purpose |
339
- |----------|------------|---------|
340
- | Architecture | .codemie/guides/architecture/architecture.md | System layers and design patterns |
341
- | API Development | .codemie/guides/api/api-patterns.md | REST endpoint conventions |
342
- | Data & Database | .codemie/guides/data/database-patterns.md | PostgreSQL and SQLAlchemy patterns |
343
- | Testing | .codemie/guides/testing/testing-patterns.md | Pytest patterns and fixtures |
344
- | Development Practices | .codemie/guides/development/error-handling.md | Exception handling patterns |
345
- | Development Practices | .codemie/guides/development/logging.md | Logging configuration |
346
- | Development Practices | .codemie/guides/development/react-components.md | UI component patterns |
347
- | Security | .codemie/guides/security/security-patterns.md | JWT auth and validation |
348
- ```
349
-
350
- **4.2.4: Task Classifier**
351
-
352
- Create intent-based category mapping (ONLY for categories that have guides):
353
-
354
- ```markdown
355
- | Category | User Intent / Purpose | Example Requests | P0 Guide | P1 Guide |
356
- |----------|----------------------|------------------|----------|----------|
357
- | **Architecture** | System structure, design decisions, planning features | "How should I structure?", "Where should this go?" | .codemie/guides/architecture/architecture.md | - |
358
- | **API Development** | Creating/modifying endpoints, routing, validation | "Create endpoint", "Add API for..." | .codemie/guides/api/api-patterns.md | - |
359
- | **Data & Database** | Database operations, queries, models, migrations | "Query database", "Add new table" | .codemie/guides/data/database-patterns.md | - |
360
- | **Testing** | Writing tests, fixing tests, coverage, mocking | "Write tests for...", "Fix failing test" | .codemie/guides/testing/testing-patterns.md | - |
361
- | **Development Practices** | Code quality, error handling, logging, components | "Add error handling", "Create component" | .codemie/guides/development/error-handling.md | .codemie/guides/development/react-components.md |
362
- | **Security** | Authentication, authorization, input validation | "Secure endpoint", "Add auth" | .codemie/guides/security/security-patterns.md | - |
363
- ```
364
-
365
- **Note**: Exclude categories that don't have guides (e.g., if no Integrations guides, don't include Integrations row)
366
-
367
- **4.2.5: Commands**
368
- - Extract from package.json scripts, Makefile, pyproject.toml, etc.
369
- - Include setup, run, lint, format, test, build
370
-
371
- **4.2.6: Project Context**
372
- - Technology stack table
373
- - Project structure diagram
374
- - Key integrations (if any)
375
-
376
- **4.2.7: Troubleshooting**
377
- - Common issues from README/CONTRIBUTING
378
- - Environment setup problems
379
-
380
- ---
381
-
382
- #### Step 4.3: Handle Existing CLAUDE.md
383
-
384
- **If CLAUDE.md already exists**:
385
- 1. Compare existing vs generated
386
- 2. Preserve user customizations (custom rules, notes)
387
- 3. Update outdated sections (commands, guides list)
388
- 4. Add new guides to imports
389
- 5. Merge, don't overwrite
390
-
391
- ---
392
-
393
- #### Step 4.4: Write CLAUDE.md
394
-
395
- - Save to `./CLAUDE.md` (project root)
396
- - Validate size (200-300 lines)
397
- - Verify no placeholders remain
398
-
399
- ---
400
-
401
- ## Phase 5: Validation
402
-
403
- #### Step 5.1: Verify All References
404
-
405
- **Check**:
406
- - [ ] Every guide path in CLAUDE.md exists
407
- - [ ] All file:line references in guides are valid
408
- - [ ] Commands are accurate (match package.json/Makefile)
409
- - [ ] No `[PLACEHOLDER]` or `FILL IN` text remains
410
- - [ ] Task Classifier only includes categories with actual guides
411
-
412
- ---
413
-
414
- #### Step 5.2: Validate Sizes
415
-
416
- ```bash
417
- # CLAUDE.md
418
- wc -l CLAUDE.md # Should be 200-300
419
-
420
- # Each guide
421
- for guide in .codemie/guides/**/*.md; do
422
- lines=$(wc -l < "$guide")
423
- if [ $lines -gt 400 ]; then
424
- echo "⚠️ $guide exceeds 400 lines ($lines)"
425
- fi
426
- done
427
- ```
428
-
429
- ---
430
-
431
- #### Step 5.3: Generate Summary Report
432
-
433
- ```markdown
434
- # Codemie Init Complete
435
-
436
- ## Generated/Updated Files
437
-
438
- **Main**: CLAUDE.md ✅
439
-
440
- ## Guides by Category
441
-
442
- **Architecture** (1 guide):
443
- - ✅ .codemie/guides/architecture/architecture.md
444
-
445
- **API Development** (1 guide):
446
- - ✅ .codemie/guides/api/api-patterns.md
447
-
448
- **Data & Database** (1 guide):
449
- - ✅ .codemie/guides/data/data-patterns.md
450
-
451
- **Testing** (2 guides):
452
- - ✅ .codemie/guides/testing/testing-patterns.md (created)
453
- - ✅ .codemie/guides/testing/integration-testing.md (existing, kept)
454
-
455
- **Development Practices** (3 guides):
456
- - ✅ .codemie/guides/development/development-practices.md
457
- - ✅ .codemie/guides/development/frontend-patterns.md
458
- - ✅ .codemie/guides/development/react-components.md
459
-
460
- **Security** (1 guide):
461
- - ✅ .codemie/guides/security/security-patterns.md
462
-
463
- **Categories Skipped**:
464
- - ⏭️ Integrations - No external services detected
465
- - ⏭️ Workflows - No workflow patterns detected
466
-
467
- ## Project Summary
468
-
469
- | Component | Value |
470
- |-----------|-------|
471
- | Language | [Language] [Version] |
472
- | Framework | [Framework] [Version] |
473
- | Database | [Database or "None"] |
474
- | Testing | [Framework] |
475
-
476
- ## Next Steps
477
-
478
- 1. Verify superpowers installed: `.claude/skills/brainstorming/SKILL.md` exists
479
- 2. Review generated `CLAUDE.md` and guides
480
- 3. Start a feature with `/tech-lead` — it will orchestrate the full SDLC via superpowers
481
- ```
482
-
483
- ---
484
-
485
- ## Decision Gates
486
-
487
- | Gate | After Step | Question | If NO |
488
- |------|------------|----------|-------|
489
- | 1 | 1.2 | Tech stack identified (80%+ confidence)? | Ask user |
490
- | 2 | 1.3 | Categories correctly identified? | Verify with user |
491
- | 3 | 2.3 | User confirmed guide list? | Adjust list |
492
- | 4 | 3.2.4 | Guide within size limit? | Condense |
493
- | 5 | 4.4 | CLAUDE.md complete, no placeholders? | Fix issues |
494
- | 6 | 5.1 | All references valid? | Fix broken refs |
495
-
496
- ---
497
-
498
- ## Troubleshooting
499
-
500
- | Issue | Action |
501
- |-------|--------|
502
- | Can't identify architecture | Ask user; offer common patterns as options |
503
- | No code examples for pattern | Verify pattern exists; skip guide if not |
504
- | Multiple frameworks detected | Ask user which is primary; document both if needed |
505
- | Existing guide conflicts with template | Preserve existing customizations; update only outdated parts |
506
- | Guide exceeds 400 lines | Remove redundant examples; use tables; add file:line refs |
507
- | Category detected but minimal code | Create minimal guide or ask user if needed |
508
-
509
- ---
510
-
511
- ## Success Criteria
512
-
513
- - ✅ CLAUDE.md exists (200-300 lines)
514
- - ✅ Only relevant guides created (categories with actual code patterns)
515
- - ✅ All guides within 200-400 lines
516
- - ✅ Existing guides integrated
517
- - ✅ Task Classifier matches generated guides
518
- - ✅ All code examples from actual codebase
519
- - ✅ All file paths accurate
520
- - ✅ All commands verified
521
- - ✅ No placeholder text remains
522
- - ✅ User confirmed accuracy
@@ -1,56 +0,0 @@
1
- ---
2
- description: Save current session state as strict JSON to docs/handoff-context.md for the next session to resume from.
3
- ---
4
-
5
- # Handoff
6
-
7
- Write current session state to `docs/handoff-context.md` as strict JSON. No preamble, no prose, no fences — pure JSON.
8
-
9
- ## Procedure
10
-
11
- 1. `docs/` missing? create (`mkdir -p docs` via Bash).
12
- 2. Synthesize state from this conversation. Don't re-explore — use context already in memory.
13
- 3. Write `docs/handoff-context.md` via Write tool. Must parse as valid JSON.
14
- 4. Confirm ONE line: `Handoff saved: docs/handoff-context.md`.
15
-
16
- ## Schema (strict — follow exactly)
17
-
18
- ```json
19
- {
20
- "session_started": "ISO8601 best estimate",
21
- "task": "one sentence — what the user asked for",
22
- "completed_tasks": [
23
- "one line each, concrete things finished this session"
24
- ],
25
- "current_state": "where things stand right now — in-flight work, files modified, what works, what's broken",
26
- "constraints_to_preserve": [
27
- "Quote verbatim. Cover: ruled-out approaches + why, user rules (don't do X, must do Y), technical constraints discovered"
28
- ],
29
- "files_touched": [
30
- {"path": "absolute path", "status": "created|modified|deleted", "summary": "one line"}
31
- ],
32
- "issues_discovered": [
33
- "bugs, gotchas, surprises found this session — and how we worked around them"
34
- ],
35
- "open_questions": [
36
- "unresolved decisions the user must answer before next step"
37
- ],
38
- "next_steps": [
39
- "ordered, specific. First item = literally first action for the new session"
40
- ],
41
- "resume_prompt": "one paragraph the user can paste into a fresh session to resume"
42
- }
43
- ```
44
-
45
- ## Rules
46
-
47
- - **Verbatim constraints**: never paraphrase user rules. Copy exact wording.
48
- - **Concrete, not vague**: `"fixed token expiry in auth/middleware.ts:42"` not `"fixed auth bug"`.
49
- - **Ordered `next_steps`**: array order = execution order.
50
- - **No speculation**: unknown → omit. Empty arrays fine.
51
- - **Pure JSON**: file must parse. No headings, no fences, no trailing prose.
52
- - **Overwrite**: always overwrite. One handoff per project.
53
-
54
- Verify: `head -3` of the output file shows the `---` frontmatter delimiters and the description line.
55
-
56
- Report DONE or BLOCKED.