@codemieai/code 0.0.58 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. package/README.md +69 -15
  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/BaseAgentAdapter.d.ts.map +1 -1
  9. package/dist/agents/core/BaseAgentAdapter.js +3 -0
  10. package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
  11. package/dist/agents/core/session/sync-state-utils.d.ts +11 -0
  12. package/dist/agents/core/session/sync-state-utils.d.ts.map +1 -0
  13. package/dist/agents/core/session/sync-state-utils.js +99 -0
  14. package/dist/agents/core/session/sync-state-utils.js.map +1 -0
  15. package/dist/agents/core/session/types.d.ts +8 -0
  16. package/dist/agents/core/session/types.d.ts.map +1 -1
  17. package/dist/agents/core/session/utils/jsonl-reader.d.ts +8 -0
  18. package/dist/agents/core/session/utils/jsonl-reader.d.ts.map +1 -1
  19. package/dist/agents/core/session/utils/jsonl-reader.js +37 -0
  20. package/dist/agents/core/session/utils/jsonl-reader.js.map +1 -1
  21. package/dist/agents/plugins/claude/claude.plugin.d.ts.map +1 -1
  22. package/dist/agents/plugins/claude/claude.plugin.js +18 -0
  23. package/dist/agents/plugins/claude/claude.plugin.js.map +1 -1
  24. package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +1 -1
  25. package/dist/agents/plugins/claude/plugin/commands/README.md +2 -31
  26. package/dist/agents/plugins/claude/plugin/commands/codemie-catchup.md +5 -0
  27. package/dist/agents/plugins/claude/plugin/commands/codemie-subagents.md +5 -0
  28. package/dist/agents/plugins/claude/plugin/hooks/hooks.json +0 -15
  29. package/dist/agents/plugins/claude/plugin/skills/msgraph/README.md +4 -1
  30. package/dist/agents/plugins/claude/plugin/skills/msgraph/SKILL.md +27 -8
  31. package/dist/agents/plugins/claude/plugin/skills/msgraph/scripts/msgraph.js +63 -3
  32. package/dist/agents/plugins/claude/plugin/skills/report-issue/SKILL.md +1 -0
  33. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts.map +1 -1
  34. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +2 -0
  35. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -1
  36. package/dist/agents/plugins/codex/codex-message-types.d.ts +80 -0
  37. package/dist/agents/plugins/codex/codex-message-types.d.ts.map +1 -0
  38. package/dist/agents/plugins/codex/codex-message-types.js +36 -0
  39. package/dist/agents/plugins/codex/codex-message-types.js.map +1 -0
  40. package/dist/agents/plugins/codex/codex-models.d.ts +9 -0
  41. package/dist/agents/plugins/codex/codex-models.d.ts.map +1 -0
  42. package/dist/agents/plugins/codex/codex-models.js +227 -0
  43. package/dist/agents/plugins/codex/codex-models.js.map +1 -0
  44. package/dist/agents/plugins/codex/codex.incremental-sync.d.ts +39 -0
  45. package/dist/agents/plugins/codex/codex.incremental-sync.d.ts.map +1 -0
  46. package/dist/agents/plugins/codex/codex.incremental-sync.js +147 -0
  47. package/dist/agents/plugins/codex/codex.incremental-sync.js.map +1 -0
  48. package/dist/agents/plugins/codex/codex.paths.d.ts +29 -0
  49. package/dist/agents/plugins/codex/codex.paths.d.ts.map +1 -0
  50. package/dist/agents/plugins/codex/codex.paths.js +43 -0
  51. package/dist/agents/plugins/codex/codex.paths.js.map +1 -0
  52. package/dist/agents/plugins/codex/codex.plugin.d.ts +80 -0
  53. package/dist/agents/plugins/codex/codex.plugin.d.ts.map +1 -0
  54. package/dist/agents/plugins/codex/codex.plugin.js +474 -0
  55. package/dist/agents/plugins/codex/codex.plugin.js.map +1 -0
  56. package/dist/agents/plugins/codex/codex.reconciliation.d.ts +43 -0
  57. package/dist/agents/plugins/codex/codex.reconciliation.d.ts.map +1 -0
  58. package/dist/agents/plugins/codex/codex.reconciliation.js +141 -0
  59. package/dist/agents/plugins/codex/codex.reconciliation.js.map +1 -0
  60. package/dist/agents/plugins/codex/codex.session.d.ts +58 -0
  61. package/dist/agents/plugins/codex/codex.session.d.ts.map +1 -0
  62. package/dist/agents/plugins/codex/codex.session.js +326 -0
  63. package/dist/agents/plugins/codex/codex.session.js.map +1 -0
  64. package/dist/agents/plugins/codex/codex.storage-utils.d.ts +15 -0
  65. package/dist/agents/plugins/codex/codex.storage-utils.d.ts.map +1 -0
  66. package/dist/agents/plugins/codex/codex.storage-utils.js +19 -0
  67. package/dist/agents/plugins/codex/codex.storage-utils.js.map +1 -0
  68. package/dist/agents/plugins/codex/index.d.ts +7 -0
  69. package/dist/agents/plugins/codex/index.d.ts.map +1 -0
  70. package/dist/agents/plugins/codex/index.js +9 -0
  71. package/dist/agents/plugins/codex/index.js.map +1 -0
  72. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.d.ts +24 -0
  73. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.d.ts.map +1 -0
  74. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.js +613 -0
  75. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.js.map +1 -0
  76. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.d.ts +21 -0
  77. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.d.ts.map +1 -0
  78. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.js +124 -0
  79. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.js.map +1 -0
  80. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts.map +1 -1
  81. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js +1 -0
  82. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js.map +1 -1
  83. package/dist/agents/plugins/opencode/opencode.storage-utils.d.ts.map +1 -1
  84. package/dist/agents/plugins/opencode/opencode.storage-utils.js +2 -29
  85. package/dist/agents/plugins/opencode/opencode.storage-utils.js.map +1 -1
  86. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.d.ts.map +1 -1
  87. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.js.map +1 -1
  88. package/dist/agents/registry.d.ts.map +1 -1
  89. package/dist/agents/registry.js +2 -0
  90. package/dist/agents/registry.js.map +1 -1
  91. package/dist/assets/demo.gif +0 -0
  92. package/dist/assets/skills-sh-egress-guard.cjs +166 -0
  93. package/dist/bin/codebase-memory-ui-daemon.d.ts +2 -0
  94. package/dist/bin/codebase-memory-ui-daemon.d.ts.map +1 -0
  95. package/dist/bin/codebase-memory-ui-daemon.js +141 -0
  96. package/dist/bin/codebase-memory-ui-daemon.js.map +1 -0
  97. package/dist/bin/proxy-daemon.js +4 -0
  98. package/dist/bin/proxy-daemon.js.map +1 -1
  99. package/dist/cli/commands/assistants/constants.js +2 -2
  100. package/dist/cli/commands/assistants/constants.js.map +1 -1
  101. package/dist/cli/commands/assistants/setup/configuration/constants.js +4 -4
  102. package/dist/cli/commands/assistants/setup/configuration/constants.js.map +1 -1
  103. package/dist/cli/commands/assistants/setup/configuration/ui.d.ts.map +1 -1
  104. package/dist/cli/commands/assistants/setup/configuration/ui.js +10 -13
  105. package/dist/cli/commands/assistants/setup/configuration/ui.js.map +1 -1
  106. package/dist/cli/commands/assistants/setup/constants.d.ts +1 -25
  107. package/dist/cli/commands/assistants/setup/constants.d.ts.map +1 -1
  108. package/dist/cli/commands/assistants/setup/constants.js +1 -20
  109. package/dist/cli/commands/assistants/setup/constants.js.map +1 -1
  110. package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.d.ts +4 -4
  111. package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.d.ts.map +1 -1
  112. package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.js +11 -10
  113. package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.js.map +1 -1
  114. package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts +4 -4
  115. package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts.map +1 -1
  116. package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js +11 -9
  117. package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js.map +1 -1
  118. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.d.ts +4 -0
  119. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.d.ts.map +1 -0
  120. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.js +76 -0
  121. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.js.map +1 -0
  122. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.d.ts +4 -0
  123. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.d.ts.map +1 -0
  124. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.js +68 -0
  125. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.js.map +1 -0
  126. package/dist/cli/commands/assistants/setup/helpers.d.ts +5 -18
  127. package/dist/cli/commands/assistants/setup/helpers.d.ts.map +1 -1
  128. package/dist/cli/commands/assistants/setup/helpers.js +45 -60
  129. package/dist/cli/commands/assistants/setup/helpers.js.map +1 -1
  130. package/dist/cli/commands/assistants/setup/index.d.ts +3 -9
  131. package/dist/cli/commands/assistants/setup/index.d.ts.map +1 -1
  132. package/dist/cli/commands/assistants/setup/index.js +26 -167
  133. package/dist/cli/commands/assistants/setup/index.js.map +1 -1
  134. package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts +2 -2
  135. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js +2 -2
  136. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js.map +1 -1
  137. package/dist/cli/commands/assistants/setup/selection/actions.d.ts +1 -30
  138. package/dist/cli/commands/assistants/setup/selection/actions.d.ts.map +1 -1
  139. package/dist/cli/commands/assistants/setup/selection/actions.js +1 -320
  140. package/dist/cli/commands/assistants/setup/selection/actions.js.map +1 -1
  141. package/dist/cli/commands/assistants/setup/selection/constants.d.ts +3 -65
  142. package/dist/cli/commands/assistants/setup/selection/constants.d.ts.map +1 -1
  143. package/dist/cli/commands/assistants/setup/selection/constants.js +4 -81
  144. package/dist/cli/commands/assistants/setup/selection/constants.js.map +1 -1
  145. package/dist/cli/commands/assistants/setup/selection/index.d.ts +1 -9
  146. package/dist/cli/commands/assistants/setup/selection/index.d.ts.map +1 -1
  147. package/dist/cli/commands/assistants/setup/selection/index.js +14 -34
  148. package/dist/cli/commands/assistants/setup/selection/index.js.map +1 -1
  149. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts +1 -19
  150. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts.map +1 -1
  151. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js +1 -338
  152. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js.map +1 -1
  153. package/dist/cli/commands/assistants/setup/selection/types.d.ts +7 -23
  154. package/dist/cli/commands/assistants/setup/selection/types.d.ts.map +1 -1
  155. package/dist/cli/commands/assistants/setup/selection/ui.d.ts +0 -8
  156. package/dist/cli/commands/assistants/setup/selection/ui.d.ts.map +1 -1
  157. package/dist/cli/commands/assistants/setup/selection/ui.js +14 -135
  158. package/dist/cli/commands/assistants/setup/selection/ui.js.map +1 -1
  159. package/dist/cli/commands/assistants/setup/summary/index.d.ts.map +1 -1
  160. package/dist/cli/commands/assistants/setup/summary/index.js +14 -8
  161. package/dist/cli/commands/assistants/setup/summary/index.js.map +1 -1
  162. package/dist/cli/commands/codebase/daemon-manager.d.ts +24 -0
  163. package/dist/cli/commands/codebase/daemon-manager.d.ts.map +1 -0
  164. package/dist/cli/commands/codebase/daemon-manager.js +112 -0
  165. package/dist/cli/commands/codebase/daemon-manager.js.map +1 -0
  166. package/dist/cli/commands/codebase/index.d.ts +3 -0
  167. package/dist/cli/commands/codebase/index.d.ts.map +1 -0
  168. package/dist/cli/commands/codebase/index.js +130 -0
  169. package/dist/cli/commands/codebase/index.js.map +1 -0
  170. package/dist/cli/commands/doctor/index.d.ts.map +1 -1
  171. package/dist/cli/commands/doctor/index.js +10 -1
  172. package/dist/cli/commands/doctor/index.js.map +1 -1
  173. package/dist/cli/commands/hook.d.ts.map +1 -1
  174. package/dist/cli/commands/hook.js +15 -2
  175. package/dist/cli/commands/hook.js.map +1 -1
  176. package/dist/cli/commands/install.js +2 -2
  177. package/dist/cli/commands/install.js.map +1 -1
  178. package/dist/cli/commands/profile/index.d.ts +14 -0
  179. package/dist/cli/commands/profile/index.d.ts.map +1 -1
  180. package/dist/cli/commands/profile/index.js +110 -27
  181. package/dist/cli/commands/profile/index.js.map +1 -1
  182. package/dist/cli/commands/proxy/connectors/desktop-managed-mcp-servers.json +50 -0
  183. package/dist/cli/commands/proxy/connectors/desktop.d.ts +17 -9
  184. package/dist/cli/commands/proxy/connectors/desktop.d.ts.map +1 -1
  185. package/dist/cli/commands/proxy/connectors/desktop.js +139 -19
  186. package/dist/cli/commands/proxy/connectors/desktop.js.map +1 -1
  187. package/dist/cli/commands/proxy/daemon-manager.d.ts +1 -0
  188. package/dist/cli/commands/proxy/daemon-manager.d.ts.map +1 -1
  189. package/dist/cli/commands/proxy/daemon-manager.js +2 -0
  190. package/dist/cli/commands/proxy/daemon-manager.js.map +1 -1
  191. package/dist/cli/commands/proxy/index.d.ts.map +1 -1
  192. package/dist/cli/commands/proxy/index.js +131 -52
  193. package/dist/cli/commands/proxy/index.js.map +1 -1
  194. package/dist/cli/commands/setup.d.ts.map +1 -1
  195. package/dist/cli/commands/setup.js +3 -1
  196. package/dist/cli/commands/setup.js.map +1 -1
  197. package/dist/cli/commands/shared/agent-targets.d.ts +10 -0
  198. package/dist/cli/commands/shared/agent-targets.d.ts.map +1 -0
  199. package/dist/cli/commands/shared/agent-targets.js +220 -0
  200. package/dist/cli/commands/shared/agent-targets.js.map +1 -0
  201. package/dist/cli/commands/shared/constants.d.ts +15 -0
  202. package/dist/cli/commands/shared/constants.d.ts.map +1 -0
  203. package/dist/cli/commands/shared/constants.js +10 -0
  204. package/dist/cli/commands/shared/constants.js.map +1 -0
  205. package/dist/cli/commands/shared/helpers.d.ts +12 -0
  206. package/dist/cli/commands/shared/helpers.d.ts.map +1 -0
  207. package/dist/cli/commands/shared/helpers.js +54 -0
  208. package/dist/cli/commands/shared/helpers.js.map +1 -0
  209. package/dist/cli/commands/shared/prompts/storage-scope.d.ts +6 -0
  210. package/dist/cli/commands/shared/prompts/storage-scope.d.ts.map +1 -0
  211. package/dist/cli/commands/shared/prompts/storage-scope.js +91 -0
  212. package/dist/cli/commands/shared/prompts/storage-scope.js.map +1 -0
  213. package/dist/cli/commands/shared/selection/actions.d.ts +40 -0
  214. package/dist/cli/commands/shared/selection/actions.d.ts.map +1 -0
  215. package/dist/cli/commands/shared/selection/actions.js +264 -0
  216. package/dist/cli/commands/shared/selection/actions.js.map +1 -0
  217. package/dist/cli/commands/shared/selection/constants.d.ts +68 -0
  218. package/dist/cli/commands/shared/selection/constants.d.ts.map +1 -0
  219. package/dist/cli/commands/shared/selection/constants.js +70 -0
  220. package/dist/cli/commands/shared/selection/constants.js.map +1 -0
  221. package/dist/cli/commands/shared/selection/interactive-prompt.d.ts +16 -0
  222. package/dist/cli/commands/shared/selection/interactive-prompt.d.ts.map +1 -0
  223. package/dist/cli/commands/shared/selection/interactive-prompt.js +276 -0
  224. package/dist/cli/commands/shared/selection/interactive-prompt.js.map +1 -0
  225. package/dist/cli/commands/shared/selection/types.d.ts +31 -0
  226. package/dist/cli/commands/shared/selection/types.d.ts.map +1 -0
  227. package/dist/cli/commands/shared/selection/types.js +2 -0
  228. package/dist/cli/commands/shared/selection/types.js.map +1 -0
  229. package/dist/cli/commands/shared/selection/ui.d.ts +31 -0
  230. package/dist/cli/commands/shared/selection/ui.d.ts.map +1 -0
  231. package/dist/cli/commands/shared/selection/ui.js +126 -0
  232. package/dist/cli/commands/shared/selection/ui.js.map +1 -0
  233. package/dist/cli/commands/skills/add.d.ts +9 -0
  234. package/dist/cli/commands/skills/add.d.ts.map +1 -0
  235. package/dist/cli/commands/skills/add.js +187 -0
  236. package/dist/cli/commands/skills/add.js.map +1 -0
  237. package/dist/cli/commands/skills/find.d.ts +17 -0
  238. package/dist/cli/commands/skills/find.d.ts.map +1 -0
  239. package/dist/cli/commands/skills/find.js +94 -0
  240. package/dist/cli/commands/skills/find.js.map +1 -0
  241. package/dist/cli/commands/skills/index.d.ts +10 -0
  242. package/dist/cli/commands/skills/index.d.ts.map +1 -0
  243. package/dist/cli/commands/skills/index.js +23 -0
  244. package/dist/cli/commands/skills/index.js.map +1 -0
  245. package/dist/cli/commands/skills/lib/agent-detection.d.ts +27 -0
  246. package/dist/cli/commands/skills/lib/agent-detection.d.ts.map +1 -0
  247. package/dist/cli/commands/skills/lib/agent-detection.js +50 -0
  248. package/dist/cli/commands/skills/lib/agent-detection.js.map +1 -0
  249. package/dist/cli/commands/skills/lib/error-classify.d.ts +14 -0
  250. package/dist/cli/commands/skills/lib/error-classify.d.ts.map +1 -0
  251. package/dist/cli/commands/skills/lib/error-classify.js +64 -0
  252. package/dist/cli/commands/skills/lib/error-classify.js.map +1 -0
  253. package/dist/cli/commands/skills/lib/require-auth.d.ts +17 -0
  254. package/dist/cli/commands/skills/lib/require-auth.d.ts.map +1 -0
  255. package/dist/cli/commands/skills/lib/require-auth.js +44 -0
  256. package/dist/cli/commands/skills/lib/require-auth.js.map +1 -0
  257. package/dist/cli/commands/skills/lib/result-render.d.ts +26 -0
  258. package/dist/cli/commands/skills/lib/result-render.d.ts.map +1 -0
  259. package/dist/cli/commands/skills/lib/result-render.js +77 -0
  260. package/dist/cli/commands/skills/lib/result-render.js.map +1 -0
  261. package/dist/cli/commands/skills/lib/run-skills-cli.d.ts +46 -0
  262. package/dist/cli/commands/skills/lib/run-skills-cli.d.ts.map +1 -0
  263. package/dist/cli/commands/skills/lib/run-skills-cli.js +217 -0
  264. package/dist/cli/commands/skills/lib/run-skills-cli.js.map +1 -0
  265. package/dist/cli/commands/skills/lib/sanitize.d.ts +17 -0
  266. package/dist/cli/commands/skills/lib/sanitize.d.ts.map +1 -0
  267. package/dist/cli/commands/skills/lib/sanitize.js +73 -0
  268. package/dist/cli/commands/skills/lib/sanitize.js.map +1 -0
  269. package/dist/cli/commands/skills/lib/skills-metrics.d.ts +74 -0
  270. package/dist/cli/commands/skills/lib/skills-metrics.d.ts.map +1 -0
  271. package/dist/cli/commands/skills/lib/skills-metrics.js +304 -0
  272. package/dist/cli/commands/skills/lib/skills-metrics.js.map +1 -0
  273. package/dist/cli/commands/skills/lib/skills-search-client.d.ts +36 -0
  274. package/dist/cli/commands/skills/lib/skills-search-client.d.ts.map +1 -0
  275. package/dist/cli/commands/skills/lib/skills-search-client.js +147 -0
  276. package/dist/cli/commands/skills/lib/skills-search-client.js.map +1 -0
  277. package/dist/cli/commands/skills/lib/skills-sh-telemetry.d.ts +10 -0
  278. package/dist/cli/commands/skills/lib/skills-sh-telemetry.d.ts.map +1 -0
  279. package/dist/cli/commands/skills/lib/skills-sh-telemetry.js +33 -0
  280. package/dist/cli/commands/skills/lib/skills-sh-telemetry.js.map +1 -0
  281. package/dist/cli/commands/skills/list.d.ts +13 -0
  282. package/dist/cli/commands/skills/list.d.ts.map +1 -0
  283. package/dist/cli/commands/skills/list.js +55 -0
  284. package/dist/cli/commands/skills/list.js.map +1 -0
  285. package/dist/cli/commands/skills/remove.d.ts +11 -0
  286. package/dist/cli/commands/skills/remove.d.ts.map +1 -0
  287. package/dist/cli/commands/skills/remove.js +93 -0
  288. package/dist/cli/commands/skills/remove.js.map +1 -0
  289. package/dist/cli/commands/skills/setup/constants.d.ts +2 -0
  290. package/dist/cli/commands/skills/setup/constants.d.ts.map +1 -0
  291. package/dist/cli/commands/skills/setup/constants.js +2 -0
  292. package/dist/cli/commands/skills/setup/constants.js.map +1 -0
  293. package/dist/cli/commands/skills/setup/data.d.ts +28 -0
  294. package/dist/cli/commands/skills/setup/data.d.ts.map +1 -0
  295. package/dist/cli/commands/skills/setup/data.js +79 -0
  296. package/dist/cli/commands/skills/setup/data.js.map +1 -0
  297. package/dist/cli/commands/skills/setup/generators/claude-skill-generator.d.ts +12 -0
  298. package/dist/cli/commands/skills/setup/generators/claude-skill-generator.d.ts.map +1 -0
  299. package/dist/cli/commands/skills/setup/generators/claude-skill-generator.js +94 -0
  300. package/dist/cli/commands/skills/setup/generators/claude-skill-generator.js.map +1 -0
  301. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.d.ts +4 -0
  302. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.d.ts.map +1 -0
  303. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.js +51 -0
  304. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.js.map +1 -0
  305. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.d.ts +4 -0
  306. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.d.ts.map +1 -0
  307. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.js +51 -0
  308. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.js.map +1 -0
  309. package/dist/cli/commands/skills/setup/helpers.d.ts +13 -0
  310. package/dist/cli/commands/skills/setup/helpers.d.ts.map +1 -0
  311. package/dist/cli/commands/skills/setup/helpers.js +56 -0
  312. package/dist/cli/commands/skills/setup/helpers.js.map +1 -0
  313. package/dist/cli/commands/skills/setup/index.d.ts +6 -0
  314. package/dist/cli/commands/skills/setup/index.d.ts.map +1 -0
  315. package/dist/cli/commands/skills/setup/index.js +140 -0
  316. package/dist/cli/commands/skills/setup/index.js.map +1 -0
  317. package/dist/cli/commands/skills/setup/selection/actions.d.ts +2 -0
  318. package/dist/cli/commands/skills/setup/selection/actions.d.ts.map +1 -0
  319. package/dist/cli/commands/skills/setup/selection/actions.js +2 -0
  320. package/dist/cli/commands/skills/setup/selection/actions.js.map +1 -0
  321. package/dist/cli/commands/skills/setup/selection/constants.d.ts +11 -0
  322. package/dist/cli/commands/skills/setup/selection/constants.d.ts.map +1 -0
  323. package/dist/cli/commands/skills/setup/selection/constants.js +11 -0
  324. package/dist/cli/commands/skills/setup/selection/constants.js.map +1 -0
  325. package/dist/cli/commands/skills/setup/selection/index.d.ts +13 -0
  326. package/dist/cli/commands/skills/setup/selection/index.d.ts.map +1 -0
  327. package/dist/cli/commands/skills/setup/selection/index.js +113 -0
  328. package/dist/cli/commands/skills/setup/selection/index.js.map +1 -0
  329. package/dist/cli/commands/skills/setup/selection/interactive-prompt.d.ts +2 -0
  330. package/dist/cli/commands/skills/setup/selection/interactive-prompt.d.ts.map +1 -0
  331. package/dist/cli/commands/skills/setup/selection/interactive-prompt.js +2 -0
  332. package/dist/cli/commands/skills/setup/selection/interactive-prompt.js.map +1 -0
  333. package/dist/cli/commands/skills/setup/selection/types.d.ts +13 -0
  334. package/dist/cli/commands/skills/setup/selection/types.d.ts.map +1 -0
  335. package/dist/cli/commands/skills/setup/selection/types.js +2 -0
  336. package/dist/cli/commands/skills/setup/selection/types.js.map +1 -0
  337. package/dist/cli/commands/skills/setup/selection/ui.d.ts +3 -0
  338. package/dist/cli/commands/skills/setup/selection/ui.d.ts.map +1 -0
  339. package/dist/cli/commands/skills/setup/selection/ui.js +63 -0
  340. package/dist/cli/commands/skills/setup/selection/ui.js.map +1 -0
  341. package/dist/cli/commands/skills/setup/sync.d.ts +13 -0
  342. package/dist/cli/commands/skills/setup/sync.d.ts.map +1 -0
  343. package/dist/cli/commands/skills/setup/sync.js +46 -0
  344. package/dist/cli/commands/skills/setup/sync.js.map +1 -0
  345. package/dist/cli/commands/skills/update.d.ts +7 -0
  346. package/dist/cli/commands/skills/update.d.ts.map +1 -0
  347. package/dist/cli/commands/skills/update.js +71 -0
  348. package/dist/cli/commands/skills/update.js.map +1 -0
  349. package/dist/cli/commands/test-metrics.js +3 -4
  350. package/dist/cli/commands/test-metrics.js.map +1 -1
  351. package/dist/cli/first-time.d.ts.map +1 -1
  352. package/dist/cli/first-time.js +4 -0
  353. package/dist/cli/first-time.js.map +1 -1
  354. package/dist/cli/index.js +5 -0
  355. package/dist/cli/index.js.map +1 -1
  356. package/dist/env/types.d.ts +16 -0
  357. package/dist/env/types.d.ts.map +1 -1
  358. package/dist/env/types.js.map +1 -1
  359. package/dist/frameworks/plugins/bmad.plugin.d.ts +10 -1
  360. package/dist/frameworks/plugins/bmad.plugin.d.ts.map +1 -1
  361. package/dist/frameworks/plugins/bmad.plugin.js +108 -9
  362. package/dist/frameworks/plugins/bmad.plugin.js.map +1 -1
  363. package/dist/frameworks/plugins/codebase-memory.plugin.d.ts +18 -0
  364. package/dist/frameworks/plugins/codebase-memory.plugin.d.ts.map +1 -0
  365. package/dist/frameworks/plugins/codebase-memory.plugin.js +131 -0
  366. package/dist/frameworks/plugins/codebase-memory.plugin.js.map +1 -0
  367. package/dist/frameworks/plugins/index.d.ts +1 -0
  368. package/dist/frameworks/plugins/index.d.ts.map +1 -1
  369. package/dist/frameworks/plugins/index.js +3 -0
  370. package/dist/frameworks/plugins/index.js.map +1 -1
  371. package/dist/providers/core/types.d.ts +1 -1
  372. package/dist/providers/core/types.d.ts.map +1 -1
  373. package/dist/providers/plugins/anthropic-subscription/anthropic-subscription.template.d.ts.map +1 -1
  374. package/dist/providers/plugins/anthropic-subscription/anthropic-subscription.template.js +26 -2
  375. package/dist/providers/plugins/anthropic-subscription/anthropic-subscription.template.js.map +1 -1
  376. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.d.ts +31 -0
  377. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.d.ts.map +1 -0
  378. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js +148 -0
  379. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js.map +1 -0
  380. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.d.ts +20 -0
  381. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.d.ts.map +1 -0
  382. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.js +104 -0
  383. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.js.map +1 -0
  384. package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.d.ts.map +1 -1
  385. package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.js +24 -3
  386. package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.js.map +1 -1
  387. package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js +5 -0
  388. package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js.map +1 -1
  389. package/dist/providers/plugins/sso/proxy/plugins/index.d.ts +14 -13
  390. package/dist/providers/plugins/sso/proxy/plugins/index.d.ts.map +1 -1
  391. package/dist/providers/plugins/sso/proxy/plugins/index.js +19 -17
  392. package/dist/providers/plugins/sso/proxy/plugins/index.js.map +1 -1
  393. package/dist/providers/plugins/sso/proxy/plugins/logging.plugin.js +10 -3
  394. package/dist/providers/plugins/sso/proxy/plugins/logging.plugin.js.map +1 -1
  395. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.d.ts.map +1 -1
  396. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js +26 -8
  397. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js.map +1 -1
  398. package/dist/providers/plugins/sso/proxy/sso.proxy.d.ts.map +1 -1
  399. package/dist/providers/plugins/sso/proxy/sso.proxy.js +21 -4
  400. package/dist/providers/plugins/sso/proxy/sso.proxy.js.map +1 -1
  401. package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -1
  402. package/dist/providers/plugins/sso/session/SessionSyncer.js +5 -72
  403. package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -1
  404. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts +1 -1
  405. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts.map +1 -1
  406. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js +95 -4
  407. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js.map +1 -1
  408. package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts +2 -2
  409. package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts.map +1 -1
  410. package/dist/providers/plugins/sso/session/processors/conversations/constants.js +2 -2
  411. package/dist/providers/plugins/sso/session/processors/conversations/constants.js.map +1 -1
  412. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.d.ts.map +1 -1
  413. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js +85 -21
  414. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js.map +1 -1
  415. package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts +10 -2
  416. package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts.map +1 -1
  417. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts +1 -1
  418. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts.map +1 -1
  419. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js +80 -46
  420. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js.map +1 -1
  421. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts +1 -9
  422. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts.map +1 -1
  423. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js +94 -30
  424. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js.map +1 -1
  425. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts +4 -6
  426. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts.map +1 -1
  427. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js +24 -25
  428. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js.map +1 -1
  429. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -1
  430. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js +140 -99
  431. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -1
  432. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts +11 -3
  433. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts.map +1 -1
  434. package/dist/providers/plugins/sso/sso.auth.d.ts.map +1 -1
  435. package/dist/providers/plugins/sso/sso.auth.js +22 -4
  436. package/dist/providers/plugins/sso/sso.auth.js.map +1 -1
  437. package/dist/providers/plugins/sso/sso.http-client.d.ts +1 -1
  438. package/dist/providers/plugins/sso/sso.http-client.js +3 -3
  439. package/dist/providers/plugins/sso/sso.http-client.js.map +1 -1
  440. package/dist/providers/plugins/sso/sso.models.js +2 -2
  441. package/dist/providers/plugins/sso/sso.models.js.map +1 -1
  442. package/dist/providers/plugins/sso/sso.setup-steps.d.ts.map +1 -1
  443. package/dist/providers/plugins/sso/sso.setup-steps.js +8 -12
  444. package/dist/providers/plugins/sso/sso.setup-steps.js.map +1 -1
  445. package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.d.ts.map +1 -1
  446. package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.js +4 -1
  447. package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.js.map +1 -1
  448. package/dist/telemetry/runtime/DesktopTelemetryRuntime.d.ts.map +1 -1
  449. package/dist/telemetry/runtime/DesktopTelemetryRuntime.js +1 -3
  450. package/dist/telemetry/runtime/DesktopTelemetryRuntime.js.map +1 -1
  451. package/dist/utils/browser.d.ts +7 -0
  452. package/dist/utils/browser.d.ts.map +1 -0
  453. package/dist/utils/browser.js +10 -0
  454. package/dist/utils/browser.js.map +1 -0
  455. package/dist/utils/config.d.ts +14 -3
  456. package/dist/utils/config.d.ts.map +1 -1
  457. package/dist/utils/config.js +102 -6
  458. package/dist/utils/config.js.map +1 -1
  459. package/dist/utils/paths.d.ts +8 -0
  460. package/dist/utils/paths.d.ts.map +1 -1
  461. package/dist/utils/paths.js +15 -0
  462. package/dist/utils/paths.js.map +1 -1
  463. package/package.json +23 -10
  464. package/scripts/compare-codex-conversations.mjs +894 -0
  465. package/scripts/copy-plugins.js +5 -0
  466. package/scripts/sonar/package.json +3 -0
  467. package/scripts/sonar/run-local-sonar.js +405 -0
  468. package/scripts/validate-secrets.js +7 -3
  469. package/dist/agents/plugins/claude/plugin/claude-templates/README.md +0 -539
  470. package/dist/agents/plugins/claude/plugin/claude-templates/templates/CLAUDE.md.template +0 -252
  471. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/code-review-agent-template.md.template +0 -433
  472. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/refactor-cleaner-agent.md.template +0 -337
  473. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/solution-architect-agent.md.template +0 -197
  474. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/unit-tester-agent.md.template +0 -258
  475. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/api/api-patterns.md.template +0 -179
  476. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/architecture.md.template +0 -197
  477. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/data/database-patterns.md.template +0 -248
  478. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/development/development-practices.md.template +0 -298
  479. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/integration/external-integrations.md.template +0 -160
  480. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/security/security-practices.md.template +0 -295
  481. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/code-quality.md.template +0 -186
  482. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/git-workflow.md.template +0 -177
  483. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/testing/testing-patterns.md.template +0 -315
  484. package/dist/agents/plugins/claude/plugin/commands/codemie-commit.md +0 -31
  485. package/dist/agents/plugins/claude/plugin/commands/codemie-init.md +0 -523
  486. package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +0 -544
  487. package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-auto-wrapper.sh +0 -81
  488. package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-baseline.sh +0 -39
  489. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/SKILL.md +0 -206
  490. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-agent.md +0 -45
  491. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-claude-md-snippet.md +0 -40
  492. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-command.md +0 -30
  493. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-hooks.json +0 -23
  494. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-skill.md +0 -48
  495. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-agent.md +0 -145
  496. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-claude-md-snippet.md +0 -126
  497. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-command.md +0 -170
  498. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-hooks.json +0 -46
  499. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-skill.md +0 -144
  500. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/sample-report.md +0 -223
  501. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/best-practices.md +0 -510
  502. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/component-checklists.md +0 -413
  503. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/scripts/scan-repo.sh +0 -162
  504. package/dist/providers/plugins/sso/proxy/plugins/claude-thinking-transformer.plugin.d.ts +0 -30
  505. package/dist/providers/plugins/sso/proxy/plugins/claude-thinking-transformer.plugin.d.ts.map +0 -1
  506. package/dist/providers/plugins/sso/proxy/plugins/claude-thinking-transformer.plugin.js +0 -111
  507. package/dist/providers/plugins/sso/proxy/plugins/claude-thinking-transformer.plugin.js.map +0 -1
@@ -1,544 +0,0 @@
1
- # Refresh and Audit Project Documentation
2
-
3
- **Purpose**: Intelligently detect code changes and update documentation to reflect current implementation.
4
-
5
- **CRITICAL**: Not every code change requires documentation updates. Only update documentation when:
6
- - Implementation patterns have actually changed
7
- - New architectural decisions were made
8
- - Critical information is missing or incorrect
9
- - Non-obvious behaviors have been introduced
10
-
11
- If documentation accurately reflects the current codebase, no changes are needed.
12
-
13
- ---
14
-
15
- ## Additional user's input
16
- Additional context/input from user: $ARGUMENTS. Might be empty by default.
17
-
18
- ---
19
-
20
- ## Workflow Overview
21
-
22
- This command supports two modes based on documentation type:
23
-
24
- **🚀 Smart Mode (Codemie Docs)**:
25
- - Detects `.codemie/guides/` directory
26
- - Uses git to identify changed files
27
- - Maps changes to affected guide categories
28
- - Updates only impacted guides (selective)
29
- - Fast and efficient for regular updates
30
-
31
- **📋 Traditional Mode (All Documentation)**:
32
- - Works with any documentation structure
33
- - Comprehensive audit of all docs
34
- - Reviews all guides vs implementation
35
- - Updates as needed
36
- - Thorough for major refactors
37
-
38
- **Decision Flow**:
39
- ```
40
- Step 1: Discover docs
41
- ├─ Codemie docs found → Step 2A (Smart Mode)
42
- └─ Other docs found → Step 2B (Traditional Mode)
43
- ```
44
-
45
- User can override and request full audit at any point.
46
-
47
- ---
48
-
49
- ## Step 1: Discover What Documentation Exists
50
-
51
- Identify documentation systems in this project:
52
-
53
- **A. Codemie-Generated Documentation** (if present):
54
- - `CLAUDE.md` in project root
55
- - `.codemie/guides/` directory with structured guides
56
- - Check if generated by `/codemie-init` (mentions template structure)
57
-
58
- **B. Structured Guides** (if present):
59
- - `docs/`, `.claude/guides/`, `documentation/`
60
- - Look for topical organization (architecture, development, testing, etc.)
61
-
62
- **C. CLAUDE.md Files** (if present):
63
- - Root `CLAUDE.md` (project overview)
64
- - Component-specific `CLAUDE.md` in subdirectories
65
- - Common in: `src/`, `lib/`, feature directories
66
-
67
- **D. Other Documentation**:
68
- - `README.md`, `CONTRIBUTING.md`, `ARCHITECTURE.md`
69
- - Wiki, Confluence, or external docs (mentioned in README)
70
-
71
- **Note**: Projects may have any combination of these, or none at all.
72
-
73
- **Decision Point**:
74
- - ✅ Codemie docs found → Use smart change detection (Step 2A)
75
- - ✅ Other docs found → Use traditional audit (Step 2B)
76
-
77
- ---
78
-
79
- ## Step 2A: Smart Change Detection (For Codemie Docs)
80
-
81
- **Use this workflow when `.codemie/guides/` exists**
82
-
83
- ### Step 2A.1: Detect Changed Files
84
-
85
- **Ask user** which timeframe to analyze:
86
- - Recent uncommitted changes (default)
87
- - Last N commits (e.g., 5, 10)
88
- - Changes since specific date
89
- - All changes (comprehensive audit)
90
-
91
- **Git Commands**:
92
- ```bash
93
- # Option 1: Uncommitted changes
94
- git status --short
95
- git diff HEAD --name-only
96
-
97
- # Option 2: Last N commits
98
- git diff HEAD~5 HEAD --name-only
99
-
100
- # Option 3: Since date
101
- git log --since="2 weeks ago" --name-only --pretty=format: | sort -u
102
-
103
- # Option 4: All staged/unstaged
104
- git diff --name-only && git diff --cached --name-only
105
- ```
106
-
107
- **Filter relevant changes** (exclude):
108
- - Test files (unless testing patterns changed)
109
- - Build artifacts, dependencies
110
- - Documentation files themselves
111
- - Config files (unless tools changed)
112
-
113
- **Output**: List of changed source files
114
-
115
- **Decision Point**:
116
- - ✅ Changes detected → Continue to Step 2A.2
117
- - ❌ No changes → Skip to Step 6 (validation only)
118
-
119
- ---
120
-
121
- ### Step 2A.2: Map Changes to Guide Categories
122
-
123
- **For each changed file**, determine which guides are affected:
124
-
125
- | Changed File Pattern | Affected Guide Category | Example Guides |
126
- |----------------------|-------------------------|----------------|
127
- | `src/api/`, `routes/`, `controllers/` | API Development | api/api-patterns.md |
128
- | `src/models/`, `repositories/`, `schemas/` | Data & Database | data/database-patterns.md |
129
- | `src/services/`, `domain/`, `business/` | Architecture | architecture/architecture.md |
130
- | `src/components/`, `ui/`, `views/` | Development Practices | development/frontend-patterns.md |
131
- | `src/utils/errors.`, `exceptions/` | Development Practices | development/error-handling.md |
132
- | `src/utils/logger.`, `logging/` | Development Practices | development/logging.md |
133
- | `src/auth/`, `security/`, `middleware/auth` | Security | security/security-patterns.md |
134
- | `tests/`, `*.test.`, `*.spec.` | Testing | testing/testing-patterns.md |
135
- | `src/integrations/`, `clients/`, `adapters/` | Integrations | integration/external-integrations.md |
136
- | Root directory changes (new folders) | Architecture | architecture/architecture.md |
137
-
138
- **Assess impact**:
139
- - **High impact**: Multiple files in same category changed
140
- - **Low impact**: Single file changed
141
- - **No impact**: Only tests changed, no pattern shifts
142
-
143
- **List existing guides**:
144
- ```bash
145
- find .codemie/guides -name "*.md" -type f
146
- ```
147
-
148
- **Cross-reference**:
149
- - Guide exists + impacted → Update candidate
150
- - Guide exists + not impacted → Skip
151
- - Guide missing + impacted → Note for user
152
-
153
- **Present to user**:
154
- ```
155
- 📊 Change Impact Analysis
156
-
157
- 🔴 HIGH IMPACT (multiple files, pattern changes):
158
- ✏️ api/api-patterns.md (3 files changed)
159
- ✏️ security/security-patterns.md (2 files changed)
160
-
161
- 🟡 LOW IMPACT (single file, minor updates):
162
- ✏️ development/development-practices.md (1 file)
163
-
164
- ⏭️ SKIPPED (no pattern changes):
165
- - testing/testing-patterns.md
166
- - data/database-patterns.md
167
-
168
- Proceed with selective update? (Yes / Full Audit / Cancel)
169
- ```
170
-
171
- **Decision Point**:
172
- - User selects "Yes" → Continue to Step 3A (selective update)
173
- - User selects "Full Audit" → Jump to Step 2B (traditional audit)
174
- - User selects "Cancel" → Exit
175
-
176
- ---
177
-
178
- ## Step 2B: Traditional Audit (For All Documentation)
179
-
180
- **Use this workflow for non-Codemie docs or when user requests full audit**
181
-
182
- Before reviewing documentation, understand what changed:
183
-
184
- 1. **Check recent commits**: `git log --oneline -10`
185
- 2. **Check current changes**: `git status` and `git diff`
186
- 3. **Identify impact areas**:
187
- - Did architectural patterns change?
188
- - Were new components/modules added?
189
- - Did core approaches evolve (error handling, testing, etc.)?
190
- - Were security practices updated?
191
- - Did integrations or APIs change?
192
-
193
- **Decision Point**: If changes are minor (bug fixes, typos, small refactors), documentation likely doesn't need updates. Only proceed if changes affect patterns, architecture, or critical knowledge.
194
-
195
- ---
196
-
197
- ## Step 3A: Selective Update (For Codemie Docs)
198
-
199
- **For each guide identified in Step 2A.2**:
200
-
201
- ### Step 3A.1: Analyze Changed Code
202
-
203
- **For files mapped to this guide**:
204
- 1. Read the changed files
205
- 2. Identify what patterns changed (new, modified, or removed)
206
- 3. Extract updated code examples (5-15 lines max)
207
- 4. Note file paths with line numbers
208
-
209
- ### Step 3A.2: Compare Current Guide vs Code
210
-
211
- **Load current guide**:
212
- ```bash
213
- Read .codemie/guides/[category]/[guide].md
214
- ```
215
-
216
- **Load template** (for structural reference):
217
- ```bash
218
- Read ${CLAUDE_PLUGIN_ROOT}/claude-templates/templates/guides/[category]/[template].md.template
219
- ```
220
-
221
- **Check**:
222
- - [ ] Are documented patterns still used?
223
- - [ ] Are code examples still accurate?
224
- - [ ] Are file references still valid?
225
- - [ ] Are new patterns present that should be documented?
226
- - [ ] Are any documented patterns now obsolete?
227
-
228
- ### Step 3A.3: Execute Selective Updates
229
-
230
- **Determine update scope**:
231
-
232
- | Finding | Action |
233
- |---------|--------|
234
- | Code example outdated | Update specific example, preserve structure |
235
- | Pattern evolved | Update pattern description and example |
236
- | New pattern introduced | Add new pattern section (if space allows) |
237
- | Pattern removed | Remove or mark as deprecated |
238
- | File path changed | Update reference path |
239
- | Everything accurate | Skip update (no changes needed) |
240
-
241
- **Update strategy**:
242
- - ✅ Use Edit tool for selective updates (NOT Write)
243
- - ✅ Update specific sections that changed
244
- - ✅ Preserve guide structure (maintain template alignment)
245
- - ✅ Keep existing examples that are still valid
246
- - ✅ Update file:line references
247
- - ❌ Don't rewrite entire guide
248
- - ❌ Don't change structure unnecessarily
249
-
250
- **Validate size**:
251
- ```bash
252
- wc -l .codemie/guides/[category]/[guide].md # Must be ≤400 lines
253
- ```
254
-
255
- If exceeded → Condense: remove redundant examples, use tables, tighten prose.
256
-
257
- **Skip to Step 6** (validation) after updating impacted guides.
258
-
259
- ---
260
-
261
- ## Step 3B: Traditional Audit of Structured Guides
262
-
263
- **Use for non-Codemie docs or full audit mode**
264
-
265
- For each guide/doc file that exists:
266
-
267
- **Review Process**:
268
- 1. Load the content
269
- 2. Compare documented patterns against actual implementation
270
- 3. Check if described approaches still match the codebase
271
- 4. Identify outdated, incorrect, or missing information
272
-
273
- **Update Only If**:
274
- - [ ] Pattern described no longer matches implementation
275
- - [ ] New pattern emerged that should be documented
276
- - [ ] Critical information is missing or incorrect
277
- - [ ] Examples reference deleted/renamed code
278
- - [ ] Security or architectural decisions changed
279
-
280
- **Common Documentation Topics** (adapt to your project):
281
- - Architecture and system design
282
- - Error handling and logging patterns
283
- - Testing strategies and setup
284
- - Security practices
285
- - API patterns and conventions
286
- - Database/data patterns
287
- - Development workflow
288
- - Deployment and operations
289
-
290
- ---
291
-
292
- ## Step 4: Audit CLAUDE.md Files (if present)
293
-
294
- For each CLAUDE.md file:
295
-
296
- **Find CLAUDE.md Files**:
297
- ```bash
298
- find . -name "CLAUDE.md" -not -path "*/node_modules/*" -not -path "*/.git/*"
299
- ```
300
-
301
- **Review Process**:
302
- 1. Load current content
303
- 2. Compare against actual implementation in that directory
304
- 3. Check if file structure/organization changed
305
- 4. Identify outdated, incorrect, or missing information
306
-
307
- **Update Only If**:
308
- - [ ] Module purpose or responsibility changed
309
- - [ ] Key architectural decisions evolved
310
- - [ ] Important implementation details missing
311
- - [ ] Documented patterns no longer used
312
- - [ ] New gotchas or non-obvious behaviors introduced
313
-
314
- **Typical CLAUDE.md Content** (adapt to project style):
315
- - Purpose and responsibility of module
316
- - Key architectural decisions
317
- - Important implementation details
318
- - Common patterns used
319
- - Non-obvious behaviors or gotchas
320
- - Integration points with other modules
321
-
322
- ---
323
-
324
- ## Step 5: Determine What Needs Updating (Traditional Mode)
325
-
326
- Categorize findings:
327
-
328
- **Definitely Update**:
329
- - Documented pattern now incorrect
330
- - Missing critical information for understanding
331
- - Security or architectural approach changed
332
- - Examples reference non-existent code
333
- - Misleading or confusing content
334
-
335
- **Probably Update**:
336
- - New project-wide pattern should be documented
337
- - Testing strategy evolved
338
- - Integration points changed
339
- - Important context missing
340
-
341
- **No Update Needed**:
342
- - Bug fixes that don't affect patterns
343
- - Code refactoring maintaining same approach
344
- - Typo fixes or variable renames
345
- - Documentation already accurate
346
- - Changes are self-evident from code
347
-
348
- ---
349
-
350
- ## Step 6: Execute Updates
351
-
352
- **For Codemie Docs** (if using selective update from Step 3A):
353
- - Updates already completed in Step 3A.3
354
- - Skip to Step 7 (validation)
355
-
356
- **For Traditional Audit** (if using Step 3B-5):
357
- - Continue with updates below
358
-
359
- Only modify files where changes are actually needed:
360
-
361
- **For Structured Guides**:
362
- 1. Edit specific sections that are outdated
363
- 2. Update code examples if references changed
364
- 3. Add new patterns only if broadly applicable
365
- 4. Remove obsolete information
366
- 5. Keep content focused and concise
367
-
368
- **For CLAUDE.md Files**:
369
- 1. Verify technical claims against current code
370
- 2. Update specific sections that changed
371
- 3. Add new critical information
372
- 4. Remove obsolete patterns
373
- 5. Ensure info is in most appropriate file
374
-
375
- **For Codemie Guides** (if updating in traditional mode):
376
- 1. Maintain template structure from `${CLAUDE_PLUGIN_ROOT}/claude-templates/`
377
- 2. Update specific sections that are outdated
378
- 3. Preserve existing valid examples
379
- 4. Keep guides within size limits (200-400 lines)
380
- 5. Update file:line references if paths changed
381
-
382
- **Content Placement**:
383
- - **Broad patterns** (used across project) → Root docs or main CLAUDE.md
384
- - **Component-specific** (local to one area) → Component CLAUDE.md or specific guide section
385
- - **Project-wide conventions** → Root README or CLAUDE.md
386
- - **Module implementation details** → Module-level CLAUDE.md
387
- - **Codemie guides** → Category-specific guides in `.codemie/guides/[category]/`
388
-
389
- ---
390
-
391
- ## Step 7: Validate Changes
392
-
393
- Before finalizing:
394
-
395
- **Accuracy Check**:
396
- - [ ] All technical claims verified against current code
397
- - [ ] Examples reference existing files/functions (check with actual file paths)
398
- - [ ] Patterns match actual implementation
399
- - [ ] No contradictions between different docs
400
-
401
- **For Codemie Docs** (additional checks):
402
- - [ ] All file:line references are valid
403
- ```bash
404
- # Verify referenced files exist
405
- grep -o '\[.*\..*:.*\]' .codemie/guides/**/*.md | while read ref; do
406
- file=$(echo $ref | cut -d: -f1 | tr -d '[]')
407
- [ -f "$file" ] || echo "Missing: $file"
408
- done
409
- ```
410
- - [ ] No placeholders remain ([PLACEHOLDER], FILL IN, TODO)
411
- ```bash
412
- grep -r '\[.*\]' .codemie/guides/ | grep -v '.git'
413
- grep -r 'FILL IN\|TODO\|PLACEHOLDER' .codemie/guides/
414
- ```
415
- - [ ] Guide structure matches template conventions
416
- - [ ] Size limits maintained (≤400 lines per guide)
417
- ```bash
418
- for guide in .codemie/guides/**/*.md; do
419
- lines=$(wc -l < "$guide")
420
- [ $lines -gt 400 ] && echo "⚠️ $guide exceeds 400 lines ($lines)"
421
- done
422
- ```
423
- - [ ] CLAUDE.md guide references are current (if guides added/removed)
424
-
425
- **Relevance Check**:
426
- - [ ] Information is actionable
427
- - [ ] Content helps future understanding
428
- - [ ] No duplicate information across files
429
- - [ ] No obsolete references
430
-
431
- **Quality Check**:
432
- - [ ] Clear and concise language
433
- - [ ] Examples are accurate
434
- - [ ] Proper markdown formatting
435
- - [ ] Links work (if any)
436
-
437
- ---
438
-
439
- ## Summary Report
440
-
441
- After completing updates, provide a summary:
442
-
443
- **For Selective Updates (Codemie Docs)**:
444
- ```markdown
445
- # Documentation Refresh Complete
446
-
447
- ## Updated Guides (3)
448
-
449
- ### High Impact Updates
450
- **api/api-patterns.md** ✅
451
- - Updated: Validation middleware pattern
452
- - Updated: Error response format examples
453
- - References: 3 files updated, all verified
454
-
455
- **security/security-patterns.md** ✅
456
- - Updated: JWT token generation example
457
- - References: 2 files updated, all verified
458
-
459
- ### Low Impact Updates
460
- **development/development-practices.md** ✅
461
- - Updated: Validation helper reference
462
- - References: 1 file updated, verified
463
-
464
- ## Skipped Guides (5)
465
- - testing/testing-patterns.md (no pattern changes)
466
- - data/database-patterns.md (no changes)
467
- - architecture/architecture.md (structure unchanged)
468
-
469
- ## Validation Status
470
- - ✅ All file references verified
471
- - ✅ No placeholders remain
472
- - ✅ Size limits maintained
473
- - ✅ Template structure preserved
474
- ```
475
-
476
- **For Traditional Audit**:
477
- ```markdown
478
- # Documentation Audit Complete
479
-
480
- ## Files Updated
481
- - CLAUDE.md (updated commands section)
482
- - .codemie/guides/api/api-patterns.md (new pattern added)
483
- - src/services/CLAUDE.md (updated integration points)
484
-
485
- ## Validation Status
486
- - ✅ All technical claims verified
487
- - ✅ Examples reference existing code
488
- - ✅ No contradictions found
489
- - ✅ Links validated
490
- ```
491
-
492
- ---
493
-
494
- ## Key Principles
495
-
496
- **Accuracy Over Completeness**:
497
- - Better to have less documentation that's accurate
498
- - Don't document what's obvious from well-written code
499
- - Focus on "why" and "gotchas", not "what" (code shows "what")
500
-
501
- **Selective Updates**:
502
- - Not every commit requires documentation changes
503
- - Only update when patterns or understanding actually shifts
504
- - If in doubt, verify against actual implementation
505
-
506
- **Appropriate Placement**:
507
- - Put information where it's most useful
508
- - Avoid duplication across files
509
- - Component-specific → component docs
510
- - Project-wide → root docs
511
-
512
- **Maintainability**:
513
- - Keep documentation focused
514
- - Remove outdated content promptly
515
- - Cross-reference related docs
516
- - Use examples sparingly but effectively
517
-
518
- ---
519
-
520
- ## Decision Checklist
521
-
522
- Before making changes, ask:
523
-
524
- 1. **Which mode applies?** (Codemie docs → Smart Mode | Other docs → Traditional)
525
- 2. **Is this change needed?** (Does doc mismatch implementation?)
526
- 3. **Is it significant?** (Will this help future understanding?)
527
- 4. **Where should it go?** (Most specific applicable location)
528
- 5. **What's the scope?** (Component-specific or project-wide?)
529
- 6. **Is it accurate?** (Verified against current code?)
530
- 7. **Is it clear?** (Would someone else understand this?)
531
-
532
- **Smart Mode Benefits**:
533
- - Faster: Only checks changed areas
534
- - Targeted: Updates specific guides
535
- - Efficient: Good for regular maintenance
536
-
537
- **Traditional Mode Benefits**:
538
- - Comprehensive: Reviews all docs
539
- - Thorough: Catches subtle issues
540
- - Complete: Good for major refactors
541
-
542
- **If unsure**: Verify implementation first, then update documentation.
543
-
544
- **Remember**: Documentation serves the code, not vice versa. Focus on critical, non-obvious knowledge that helps future work.
@@ -1,81 +0,0 @@
1
- #!/bin/bash
2
- # RTK Auto-Wrapper Hook
3
- # Automatically wraps high-verbosity commands with RTK for token optimization
4
- #
5
- # Hook: PreToolUse
6
- # Matcher: Bash
7
- # Purpose: Intercept bash commands and suggest RTK wrapper if applicable
8
- #
9
- # Installation:
10
- # 1. Copy to .claude/hooks/bash/rtk-auto-wrapper.sh
11
- # 2. Make executable: chmod +x .claude/hooks/bash/rtk-auto-wrapper.sh
12
- # 3. Add to settings.json:
13
- # {
14
- # "hooks": {
15
- # "PreToolUse": [{
16
- # "matcher": "Bash",
17
- # "hooks": [".claude/hooks/bash/rtk-auto-wrapper.sh"]
18
- # }]
19
- # }
20
- # }
21
- #
22
- # Or use `rtk init` for automatic hook setup.
23
-
24
- # Check if RTK is installed
25
- if ! command -v rtk &> /dev/null; then
26
- # RTK not installed, skip silently
27
- exit 0
28
- fi
29
-
30
- # Parse tool input to get the bash command
31
- COMMAND=$(echo "$TOOL_INPUT" | jq -r '.command // empty' 2>/dev/null)
32
-
33
- if [ -z "$COMMAND" ]; then
34
- # No command found, continue
35
- exit 0
36
- fi
37
-
38
- # Define RTK-optimizable commands with their savings
39
- declare -A RTK_COMMANDS=(
40
- ["git log"]="92.3"
41
- ["git status"]="76.0"
42
- ["git diff"]="55.9"
43
- ["find"]="76.3"
44
- ["cargo test"]="90.0"
45
- ["cargo build"]="80.0"
46
- ["cargo clippy"]="80.0"
47
- ["pnpm list"]="82.0"
48
- ["pnpm outdated"]="90.0"
49
- ["pnpm test"]="90.0"
50
- ["python pytest"]="90.0"
51
- ["python -m pytest"]="90.0"
52
- ["go test"]="90.0"
53
- )
54
-
55
- # Check if command matches RTK-optimizable pattern
56
- for cmd in "${!RTK_COMMANDS[@]}"; do
57
- if [[ "$COMMAND" == "$cmd"* ]] && [[ "$COMMAND" != "rtk "* ]]; then
58
- savings="${RTK_COMMANDS[$cmd]}"
59
-
60
- # Suggest RTK wrapper
61
- cat << EOF
62
- RTK Optimization Available
63
-
64
- Command: $COMMAND
65
- Suggested: rtk $COMMAND
66
- Token Savings: ~${savings}%
67
-
68
- Using RTK wrapper automatically.
69
- EOF
70
-
71
- # Modify command to use RTK
72
- # Note: This is informational only - actual command modification
73
- # requires additionalContext return (Claude Code v2.1.9+)
74
-
75
- # For now, just inform user
76
- exit 0
77
- fi
78
- done
79
-
80
- # Continue with original command
81
- exit 0
@@ -1,39 +0,0 @@
1
- #!/bin/bash
2
- # .claude/hooks/rtk-baseline.sh
3
- # Event: SessionStart
4
- # Save RTK gain baseline for session-summary.sh delta tracking
5
- #
6
- # This hook captures RTK's cumulative stats at session start.
7
- # At session end, session-summary.sh reads this baseline, captures current stats,
8
- # and computes the delta to show per-session RTK savings.
9
- #
10
- # Configuration:
11
- # SESSION_SUMMARY_RTK=0 - Force disable (skip baseline capture)
12
- # SESSION_SUMMARY_RTK=1 - Force enable
13
- # (default: auto-detect if rtk is in PATH)
14
- #
15
- # Place in: ~/.claude/hooks/rtk-baseline.sh
16
- # Register in: ~/.claude/settings.json under SessionStart event
17
-
18
- set -euo pipefail
19
-
20
- RTK_ENABLED="${SESSION_SUMMARY_RTK:-auto}"
21
-
22
- # Auto-detect RTK availability
23
- if [[ "$RTK_ENABLED" == "auto" ]]; then
24
- command -v rtk &>/dev/null && RTK_ENABLED=1 || RTK_ENABLED=0
25
- fi
26
-
27
- # Skip if disabled or RTK not available
28
- if [[ "$RTK_ENABLED" != "1" ]]; then
29
- exit 0
30
- fi
31
-
32
- # Build baseline file path (must match session-summary.sh)
33
- baseline_key=$(echo "${CLAUDE_PROJECT_DIR:-$(pwd)}" | tr '/' '-')
34
- baseline_file="/tmp/rtk-baseline${baseline_key}.txt"
35
-
36
- # Capture current RTK cumulative stats
37
- rtk gain > "$baseline_file" 2>/dev/null || true
38
-
39
- exit 0