@codemieai/code 0.1.0 → 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 (316) hide show
  1. package/README.md +13 -0
  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/session/processors/claude.conversations-processor.d.ts.map +1 -1
  22. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +2 -0
  23. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -1
  24. package/dist/agents/plugins/codex/codex-message-types.d.ts +80 -0
  25. package/dist/agents/plugins/codex/codex-message-types.d.ts.map +1 -0
  26. package/dist/agents/plugins/codex/codex-message-types.js +36 -0
  27. package/dist/agents/plugins/codex/codex-message-types.js.map +1 -0
  28. package/dist/agents/plugins/codex/codex-models.d.ts +9 -0
  29. package/dist/agents/plugins/codex/codex-models.d.ts.map +1 -0
  30. package/dist/agents/plugins/codex/codex-models.js +227 -0
  31. package/dist/agents/plugins/codex/codex-models.js.map +1 -0
  32. package/dist/agents/plugins/codex/codex.incremental-sync.d.ts +39 -0
  33. package/dist/agents/plugins/codex/codex.incremental-sync.d.ts.map +1 -0
  34. package/dist/agents/plugins/codex/codex.incremental-sync.js +147 -0
  35. package/dist/agents/plugins/codex/codex.incremental-sync.js.map +1 -0
  36. package/dist/agents/plugins/codex/codex.paths.d.ts +29 -0
  37. package/dist/agents/plugins/codex/codex.paths.d.ts.map +1 -0
  38. package/dist/agents/plugins/codex/codex.paths.js +43 -0
  39. package/dist/agents/plugins/codex/codex.paths.js.map +1 -0
  40. package/dist/agents/plugins/codex/codex.plugin.d.ts +80 -0
  41. package/dist/agents/plugins/codex/codex.plugin.d.ts.map +1 -0
  42. package/dist/agents/plugins/codex/codex.plugin.js +474 -0
  43. package/dist/agents/plugins/codex/codex.plugin.js.map +1 -0
  44. package/dist/agents/plugins/codex/codex.reconciliation.d.ts +43 -0
  45. package/dist/agents/plugins/codex/codex.reconciliation.d.ts.map +1 -0
  46. package/dist/agents/plugins/codex/codex.reconciliation.js +141 -0
  47. package/dist/agents/plugins/codex/codex.reconciliation.js.map +1 -0
  48. package/dist/agents/plugins/codex/codex.session.d.ts +58 -0
  49. package/dist/agents/plugins/codex/codex.session.d.ts.map +1 -0
  50. package/dist/agents/plugins/codex/codex.session.js +326 -0
  51. package/dist/agents/plugins/codex/codex.session.js.map +1 -0
  52. package/dist/agents/plugins/codex/codex.storage-utils.d.ts +15 -0
  53. package/dist/agents/plugins/codex/codex.storage-utils.d.ts.map +1 -0
  54. package/dist/agents/plugins/codex/codex.storage-utils.js +19 -0
  55. package/dist/agents/plugins/codex/codex.storage-utils.js.map +1 -0
  56. package/dist/agents/plugins/codex/index.d.ts +7 -0
  57. package/dist/agents/plugins/codex/index.d.ts.map +1 -0
  58. package/dist/agents/plugins/codex/index.js +9 -0
  59. package/dist/agents/plugins/codex/index.js.map +1 -0
  60. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.d.ts +24 -0
  61. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.d.ts.map +1 -0
  62. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.js +613 -0
  63. package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.js.map +1 -0
  64. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.d.ts +21 -0
  65. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.d.ts.map +1 -0
  66. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.js +124 -0
  67. package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.js.map +1 -0
  68. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts.map +1 -1
  69. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js +1 -0
  70. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js.map +1 -1
  71. package/dist/agents/plugins/opencode/opencode.storage-utils.d.ts.map +1 -1
  72. package/dist/agents/plugins/opencode/opencode.storage-utils.js +2 -29
  73. package/dist/agents/plugins/opencode/opencode.storage-utils.js.map +1 -1
  74. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.d.ts.map +1 -1
  75. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.js.map +1 -1
  76. package/dist/agents/registry.d.ts.map +1 -1
  77. package/dist/agents/registry.js +2 -0
  78. package/dist/agents/registry.js.map +1 -1
  79. package/dist/bin/codebase-memory-ui-daemon.d.ts +2 -0
  80. package/dist/bin/codebase-memory-ui-daemon.d.ts.map +1 -0
  81. package/dist/bin/codebase-memory-ui-daemon.js +141 -0
  82. package/dist/bin/codebase-memory-ui-daemon.js.map +1 -0
  83. package/dist/bin/proxy-daemon.js +4 -0
  84. package/dist/bin/proxy-daemon.js.map +1 -1
  85. package/dist/cli/commands/assistants/constants.js +2 -2
  86. package/dist/cli/commands/assistants/constants.js.map +1 -1
  87. package/dist/cli/commands/assistants/setup/configuration/constants.js +4 -4
  88. package/dist/cli/commands/assistants/setup/configuration/constants.js.map +1 -1
  89. package/dist/cli/commands/assistants/setup/configuration/ui.d.ts.map +1 -1
  90. package/dist/cli/commands/assistants/setup/configuration/ui.js +10 -13
  91. package/dist/cli/commands/assistants/setup/configuration/ui.js.map +1 -1
  92. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.d.ts +4 -0
  93. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.d.ts.map +1 -0
  94. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.js +76 -0
  95. package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.js.map +1 -0
  96. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.d.ts +4 -0
  97. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.d.ts.map +1 -0
  98. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.js +68 -0
  99. package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.js.map +1 -0
  100. package/dist/cli/commands/assistants/setup/helpers.d.ts +3 -2
  101. package/dist/cli/commands/assistants/setup/helpers.d.ts.map +1 -1
  102. package/dist/cli/commands/assistants/setup/helpers.js +43 -8
  103. package/dist/cli/commands/assistants/setup/helpers.js.map +1 -1
  104. package/dist/cli/commands/assistants/setup/index.d.ts +3 -1
  105. package/dist/cli/commands/assistants/setup/index.d.ts.map +1 -1
  106. package/dist/cli/commands/assistants/setup/index.js +15 -12
  107. package/dist/cli/commands/assistants/setup/index.js.map +1 -1
  108. package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts +2 -2
  109. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js +2 -2
  110. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js.map +1 -1
  111. package/dist/cli/commands/assistants/setup/selection/ui.d.ts.map +1 -1
  112. package/dist/cli/commands/assistants/setup/selection/ui.js +8 -13
  113. package/dist/cli/commands/assistants/setup/selection/ui.js.map +1 -1
  114. package/dist/cli/commands/assistants/setup/summary/index.d.ts.map +1 -1
  115. package/dist/cli/commands/assistants/setup/summary/index.js +14 -8
  116. package/dist/cli/commands/assistants/setup/summary/index.js.map +1 -1
  117. package/dist/cli/commands/codebase/daemon-manager.d.ts +24 -0
  118. package/dist/cli/commands/codebase/daemon-manager.d.ts.map +1 -0
  119. package/dist/cli/commands/codebase/daemon-manager.js +112 -0
  120. package/dist/cli/commands/codebase/daemon-manager.js.map +1 -0
  121. package/dist/cli/commands/codebase/index.d.ts +3 -0
  122. package/dist/cli/commands/codebase/index.d.ts.map +1 -0
  123. package/dist/cli/commands/codebase/index.js +130 -0
  124. package/dist/cli/commands/codebase/index.js.map +1 -0
  125. package/dist/cli/commands/hook.d.ts.map +1 -1
  126. package/dist/cli/commands/hook.js +15 -2
  127. package/dist/cli/commands/hook.js.map +1 -1
  128. package/dist/cli/commands/install.js +2 -2
  129. package/dist/cli/commands/install.js.map +1 -1
  130. package/dist/cli/commands/profile/index.d.ts +14 -0
  131. package/dist/cli/commands/profile/index.d.ts.map +1 -1
  132. package/dist/cli/commands/profile/index.js +110 -27
  133. package/dist/cli/commands/profile/index.js.map +1 -1
  134. package/dist/cli/commands/proxy/connectors/desktop-managed-mcp-servers.json +1 -1
  135. package/dist/cli/commands/proxy/connectors/desktop.d.ts +4 -6
  136. package/dist/cli/commands/proxy/connectors/desktop.d.ts.map +1 -1
  137. package/dist/cli/commands/proxy/connectors/desktop.js +92 -15
  138. package/dist/cli/commands/proxy/connectors/desktop.js.map +1 -1
  139. package/dist/cli/commands/proxy/daemon-manager.d.ts +1 -0
  140. package/dist/cli/commands/proxy/daemon-manager.d.ts.map +1 -1
  141. package/dist/cli/commands/proxy/daemon-manager.js +2 -0
  142. package/dist/cli/commands/proxy/daemon-manager.js.map +1 -1
  143. package/dist/cli/commands/proxy/index.d.ts.map +1 -1
  144. package/dist/cli/commands/proxy/index.js +42 -0
  145. package/dist/cli/commands/proxy/index.js.map +1 -1
  146. package/dist/cli/commands/setup.js +1 -1
  147. package/dist/cli/commands/setup.js.map +1 -1
  148. package/dist/cli/commands/shared/agent-targets.d.ts +10 -0
  149. package/dist/cli/commands/shared/agent-targets.d.ts.map +1 -0
  150. package/dist/cli/commands/shared/agent-targets.js +220 -0
  151. package/dist/cli/commands/shared/agent-targets.js.map +1 -0
  152. package/dist/cli/commands/shared/prompts/storage-scope.d.ts.map +1 -1
  153. package/dist/cli/commands/shared/prompts/storage-scope.js +9 -2
  154. package/dist/cli/commands/shared/prompts/storage-scope.js.map +1 -1
  155. package/dist/cli/commands/shared/selection/ui.d.ts +22 -0
  156. package/dist/cli/commands/shared/selection/ui.d.ts.map +1 -1
  157. package/dist/cli/commands/shared/selection/ui.js +34 -0
  158. package/dist/cli/commands/shared/selection/ui.js.map +1 -1
  159. package/dist/cli/commands/skills/lib/skills-metrics.d.ts.map +1 -1
  160. package/dist/cli/commands/skills/lib/skills-metrics.js +47 -11
  161. package/dist/cli/commands/skills/lib/skills-metrics.js.map +1 -1
  162. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.d.ts +4 -0
  163. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.d.ts.map +1 -0
  164. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.js +51 -0
  165. package/dist/cli/commands/skills/setup/generators/codex-skill-generator.js.map +1 -0
  166. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.d.ts +4 -0
  167. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.d.ts.map +1 -0
  168. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.js +51 -0
  169. package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.js.map +1 -0
  170. package/dist/cli/commands/skills/setup/helpers.d.ts +3 -2
  171. package/dist/cli/commands/skills/setup/helpers.d.ts.map +1 -1
  172. package/dist/cli/commands/skills/setup/helpers.js +31 -6
  173. package/dist/cli/commands/skills/setup/helpers.js.map +1 -1
  174. package/dist/cli/commands/skills/setup/index.d.ts +2 -1
  175. package/dist/cli/commands/skills/setup/index.d.ts.map +1 -1
  176. package/dist/cli/commands/skills/setup/index.js +14 -11
  177. package/dist/cli/commands/skills/setup/index.js.map +1 -1
  178. package/dist/cli/commands/skills/setup/selection/ui.d.ts.map +1 -1
  179. package/dist/cli/commands/skills/setup/selection/ui.js +8 -13
  180. package/dist/cli/commands/skills/setup/selection/ui.js.map +1 -1
  181. package/dist/cli/commands/test-metrics.js +3 -4
  182. package/dist/cli/commands/test-metrics.js.map +1 -1
  183. package/dist/cli/index.js +3 -0
  184. package/dist/cli/index.js.map +1 -1
  185. package/dist/env/types.d.ts +2 -0
  186. package/dist/env/types.d.ts.map +1 -1
  187. package/dist/env/types.js.map +1 -1
  188. package/dist/frameworks/plugins/bmad.plugin.d.ts +10 -1
  189. package/dist/frameworks/plugins/bmad.plugin.d.ts.map +1 -1
  190. package/dist/frameworks/plugins/bmad.plugin.js +108 -9
  191. package/dist/frameworks/plugins/bmad.plugin.js.map +1 -1
  192. package/dist/frameworks/plugins/codebase-memory.plugin.d.ts +18 -0
  193. package/dist/frameworks/plugins/codebase-memory.plugin.d.ts.map +1 -0
  194. package/dist/frameworks/plugins/codebase-memory.plugin.js +131 -0
  195. package/dist/frameworks/plugins/codebase-memory.plugin.js.map +1 -0
  196. package/dist/frameworks/plugins/index.d.ts +1 -0
  197. package/dist/frameworks/plugins/index.d.ts.map +1 -1
  198. package/dist/frameworks/plugins/index.js +3 -0
  199. package/dist/frameworks/plugins/index.js.map +1 -1
  200. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.d.ts +1 -1
  201. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js +4 -4
  202. package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js.map +1 -1
  203. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.d.ts +20 -0
  204. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.d.ts.map +1 -0
  205. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.js +104 -0
  206. package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.js.map +1 -0
  207. package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.d.ts.map +1 -1
  208. package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.js +24 -3
  209. package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.js.map +1 -1
  210. package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js +5 -0
  211. package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js.map +1 -1
  212. package/dist/providers/plugins/sso/proxy/plugins/index.d.ts +3 -1
  213. package/dist/providers/plugins/sso/proxy/plugins/index.d.ts.map +1 -1
  214. package/dist/providers/plugins/sso/proxy/plugins/index.js +5 -1
  215. package/dist/providers/plugins/sso/proxy/plugins/index.js.map +1 -1
  216. package/dist/providers/plugins/sso/proxy/plugins/logging.plugin.js +10 -3
  217. package/dist/providers/plugins/sso/proxy/plugins/logging.plugin.js.map +1 -1
  218. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.d.ts.map +1 -1
  219. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js +26 -8
  220. package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js.map +1 -1
  221. package/dist/providers/plugins/sso/proxy/sso.proxy.d.ts.map +1 -1
  222. package/dist/providers/plugins/sso/proxy/sso.proxy.js +21 -4
  223. package/dist/providers/plugins/sso/proxy/sso.proxy.js.map +1 -1
  224. package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -1
  225. package/dist/providers/plugins/sso/session/SessionSyncer.js +5 -72
  226. package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -1
  227. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts +1 -1
  228. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts.map +1 -1
  229. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js +95 -4
  230. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js.map +1 -1
  231. package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts +2 -2
  232. package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts.map +1 -1
  233. package/dist/providers/plugins/sso/session/processors/conversations/constants.js +2 -2
  234. package/dist/providers/plugins/sso/session/processors/conversations/constants.js.map +1 -1
  235. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.d.ts.map +1 -1
  236. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js +85 -21
  237. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js.map +1 -1
  238. package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts +10 -2
  239. package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts.map +1 -1
  240. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts +1 -1
  241. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts.map +1 -1
  242. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js +80 -46
  243. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js.map +1 -1
  244. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts +1 -9
  245. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts.map +1 -1
  246. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js +94 -30
  247. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js.map +1 -1
  248. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts +4 -6
  249. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts.map +1 -1
  250. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js +24 -25
  251. package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js.map +1 -1
  252. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -1
  253. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js +140 -99
  254. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -1
  255. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts +11 -3
  256. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts.map +1 -1
  257. package/dist/providers/plugins/sso/sso.auth.d.ts.map +1 -1
  258. package/dist/providers/plugins/sso/sso.auth.js +22 -4
  259. package/dist/providers/plugins/sso/sso.auth.js.map +1 -1
  260. package/dist/providers/plugins/sso/sso.setup-steps.js +2 -2
  261. package/dist/providers/plugins/sso/sso.setup-steps.js.map +1 -1
  262. package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.d.ts.map +1 -1
  263. package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.js +4 -1
  264. package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.js.map +1 -1
  265. package/dist/telemetry/runtime/DesktopTelemetryRuntime.d.ts.map +1 -1
  266. package/dist/telemetry/runtime/DesktopTelemetryRuntime.js +1 -3
  267. package/dist/telemetry/runtime/DesktopTelemetryRuntime.js.map +1 -1
  268. package/dist/utils/browser.d.ts +7 -0
  269. package/dist/utils/browser.d.ts.map +1 -0
  270. package/dist/utils/browser.js +10 -0
  271. package/dist/utils/browser.js.map +1 -0
  272. package/dist/utils/config.d.ts.map +1 -1
  273. package/dist/utils/config.js +7 -1
  274. package/dist/utils/config.js.map +1 -1
  275. package/dist/utils/paths.d.ts +8 -0
  276. package/dist/utils/paths.d.ts.map +1 -1
  277. package/dist/utils/paths.js +15 -0
  278. package/dist/utils/paths.js.map +1 -1
  279. package/package.json +2 -1
  280. package/scripts/compare-codex-conversations.mjs +894 -0
  281. package/scripts/validate-secrets.js +7 -3
  282. package/dist/agents/plugins/claude/plugin/claude-templates/README.md +0 -539
  283. package/dist/agents/plugins/claude/plugin/claude-templates/templates/CLAUDE.md.template +0 -252
  284. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/code-review-agent-template.md.template +0 -433
  285. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/refactor-cleaner-agent.md.template +0 -337
  286. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/solution-architect-agent.md.template +0 -197
  287. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/unit-tester-agent.md.template +0 -258
  288. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/api/api-patterns.md.template +0 -179
  289. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/architecture.md.template +0 -197
  290. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/data/database-patterns.md.template +0 -248
  291. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/development/development-practices.md.template +0 -298
  292. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/integration/external-integrations.md.template +0 -160
  293. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/security/security-practices.md.template +0 -295
  294. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/code-quality.md.template +0 -186
  295. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/git-workflow.md.template +0 -177
  296. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/testing/testing-patterns.md.template +0 -315
  297. package/dist/agents/plugins/claude/plugin/commands/codemie-init.md +0 -522
  298. package/dist/agents/plugins/claude/plugin/commands/handoff.md +0 -56
  299. package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +0 -549
  300. package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-baseline.sh +0 -39
  301. package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-rewrite.sh +0 -101
  302. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/SKILL.md +0 -206
  303. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-agent.md +0 -45
  304. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-claude-md-snippet.md +0 -40
  305. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-command.md +0 -30
  306. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-hooks.json +0 -23
  307. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-skill.md +0 -48
  308. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-agent.md +0 -145
  309. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-claude-md-snippet.md +0 -126
  310. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-command.md +0 -170
  311. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-hooks.json +0 -46
  312. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-skill.md +0 -144
  313. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/sample-report.md +0 -223
  314. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/best-practices.md +0 -510
  315. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/component-checklists.md +0 -413
  316. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/scripts/scan-repo.sh +0 -162
@@ -1,337 +0,0 @@
1
- ---
2
- name: refactor-cleaner
3
- description: |-
4
- Use this agent for dead code cleanup, duplicate elimination, and dependency pruning.
5
- Triggers: "clean up code", "remove dead code", "find unused", "remove duplicates", "prune dependencies", "refactor cleanup".
6
- Runs analysis tools to identify unused code and safely removes it with full documentation.
7
- tools: Read, Write, Edit, Bash, Grep, Glob
8
- model: inherit
9
- color: orange
10
- ---
11
-
12
- # Refactor & Dead Code Cleaner Template
13
-
14
- **Purpose**: This template guides generation of project-specific refactoring agents that safely identify and remove dead code, duplicates, and unused dependencies.
15
-
16
- ---
17
-
18
- ## Core Mission
19
-
20
- Keep the codebase lean and maintainable by:
21
- - Detecting and removing unused code, exports, and files
22
- - Eliminating duplicate code through consolidation
23
- - Pruning unused dependencies
24
- - Documenting all changes for traceability
25
- - **Never breaking functionality**
26
-
27
- ---
28
-
29
- ## Context Discovery
30
-
31
- **[GENERATION INSTRUCTION]**: Analyze project to identify:
32
- - `.codemie/guides/` folder (if exists) for cleanup guidelines
33
- - Available analysis tools (from package.json, Makefile, or installed globally)
34
- - Critical code paths that must never be removed
35
- - Project structure and module organization
36
- - Test commands and build verification
37
-
38
- ---
39
-
40
- ## Analysis Tools
41
-
42
- **[GENERATION INSTRUCTION]**: Identify which tools are available in the project. Common options by ecosystem:
43
-
44
- | Ecosystem | Dead Code | Unused Deps | Unused Exports |
45
- |-----------|-----------|-------------|----------------|
46
- | JavaScript/TypeScript | knip, ts-prune | depcheck, knip | ts-prune, knip |
47
- | Python | vulture, dead | pip-autoremove | pylint |
48
- | Java | UCDetector, SpotBugs | mvn dependency:analyze | — |
49
- | Go | deadcode, unused | go mod tidy | — |
50
-
51
- **[TEMPLATE]**:
52
- ```bash
53
- # Primary analysis tool
54
- [PRIMARY_TOOL_COMMAND]
55
-
56
- # Unused dependencies
57
- [UNUSED_DEPS_COMMAND]
58
-
59
- # Unused exports/functions
60
- [UNUSED_EXPORTS_COMMAND]
61
-
62
- # Additional checks
63
- [ADDITIONAL_CHECKS]
64
- ```
65
-
66
- ---
67
-
68
- ## Workflow
69
-
70
- ### Phase 1: Analysis
71
-
72
- 1. Run detection tools
73
- 2. Collect and categorize findings:
74
- - **SAFE**: Unused private exports, unused dependencies, dead files
75
- - **CAREFUL**: Potentially used via dynamic imports/reflection
76
- - **RISKY**: Public API, shared utilities, external integrations
77
-
78
- ### Phase 2: Verification
79
-
80
- For each item flagged for removal:
81
- - [ ] Grep for all references (including string patterns)
82
- - [ ] Check for dynamic imports/reflection usage
83
- - [ ] Verify not part of public API
84
- - [ ] Review git history for context
85
- - [ ] Confirm not in critical paths list
86
-
87
- ### Phase 3: Safe Removal
88
-
89
- Process in order (safest first):
90
- 1. Unused dependencies
91
- 2. Unused internal exports/functions
92
- 3. Unused files
93
- 4. Duplicate code consolidation
94
-
95
- After each batch:
96
- - [ ] Build succeeds
97
- - [ ] Tests pass
98
- - [ ] Commit changes
99
- - [ ] Update deletion log
100
-
101
- ### Phase 4: Documentation
102
-
103
- Update `[DELETION_LOG_PATH]` with all changes.
104
-
105
- ---
106
-
107
- ## Critical Paths - NEVER REMOVE
108
-
109
- **[GENERATION INSTRUCTION]**: Identify from codebase analysis:
110
- - Authentication/authorization code
111
- - Payment/transaction processing
112
- - Core business logic
113
- - External API integrations
114
- - Database connections
115
- - Real-time/websocket handlers
116
- - Public API exports
117
-
118
- **[TEMPLATE]**:
119
- ```
120
- NEVER REMOVE without explicit approval:
121
- - [CRITICAL_PATH_1]: [DESCRIPTION]
122
- - [CRITICAL_PATH_2]: [DESCRIPTION]
123
- - [CRITICAL_PATH_3]: [DESCRIPTION]
124
- - [CRITICAL_PATH_4]: [DESCRIPTION]
125
- - [CRITICAL_PATH_5]: [DESCRIPTION]
126
- ```
127
-
128
- ---
129
-
130
- ## Safe to Remove
131
-
132
- **[TEMPLATE]**:
133
- ```
134
- Generally safe to remove after verification:
135
- - Unused components in [COMPONENTS_DIR]
136
- - Deprecated utilities in [UTILS_DIR]
137
- - Test files for deleted features
138
- - Commented-out code blocks
139
- - Unused types/interfaces
140
- - Old migration files (verify first)
141
- ```
142
-
143
- ---
144
-
145
- ## Common Patterns
146
-
147
- ### Unused Imports
148
- ```[language]
149
- # ❌ Remove unused
150
- [unused_import_example]
151
-
152
- # ✅ Keep only used
153
- [clean_import_example]
154
- ```
155
-
156
- ### Dead Code
157
- ```[language]
158
- # ❌ Remove unreachable/unused
159
- [dead_code_example]
160
- ```
161
-
162
- ### Duplicates
163
- ```
164
- # ❌ Multiple similar implementations
165
- [duplicate_files_example]
166
-
167
- # ✅ Consolidate to one
168
- [consolidated_example]
169
- ```
170
-
171
- ---
172
-
173
- ## Deletion Log Format
174
-
175
- Create/update `[DELETION_LOG_PATH]`:
176
-
177
- ```markdown
178
- # Code Deletion Log
179
-
180
- ## [YYYY-MM-DD] Cleanup Session
181
-
182
- ### Dependencies Removed
183
- | Package | Reason | Size Impact |
184
- |---------|--------|-------------|
185
- | name | unused | -XX KB |
186
-
187
- ### Files Deleted
188
- | File | Reason | Replacement |
189
- |------|--------|-------------|
190
- | path | unused | N/A or new-path |
191
-
192
- ### Duplicates Consolidated
193
- | Removed | Kept | Reason |
194
- |---------|------|--------|
195
- | old-path | new-path | identical |
196
-
197
- ### Exports Removed
198
- | File | Exports | Reason |
199
- |------|---------|--------|
200
- | path | fn1, fn2 | no references |
201
-
202
- ### Summary
203
- - Files deleted: X
204
- - Dependencies removed: X
205
- - Lines removed: X
206
- - Bundle/build impact: -XX KB
207
-
208
- ### Verification
209
- - [ ] Build passes
210
- - [ ] Tests pass
211
- - [ ] Manual testing done
212
- ```
213
-
214
- ---
215
-
216
- ## Safety Checklist
217
-
218
- **Before removing**:
219
- - [ ] Detection tool flagged it
220
- - [ ] Grep found no references
221
- - [ ] Not in critical paths list
222
- - [ ] Not dynamically imported
223
- - [ ] Git history reviewed
224
- - [ ] Working on feature branch
225
-
226
- **After each batch**:
227
- - [ ] Build succeeds
228
- - [ ] Tests pass
229
- - [ ] Changes committed
230
- - [ ] Deletion log updated
231
-
232
- ---
233
-
234
- ## Error Recovery
235
-
236
- If something breaks:
237
-
238
- ```bash
239
- # 1. Immediate rollback
240
- git revert HEAD
241
- [INSTALL_COMMAND]
242
- [BUILD_COMMAND]
243
- [TEST_COMMAND]
244
-
245
- # 2. Investigate why detection missed it
246
-
247
- # 3. Add to "NEVER REMOVE" list
248
-
249
- # 4. Document the edge case
250
- ```
251
-
252
- ---
253
-
254
- ## When NOT to Run
255
-
256
- - During active feature development
257
- - Before production deployment
258
- - Without adequate test coverage
259
- - On unfamiliar code
260
- - When codebase is unstable
261
-
262
- ---
263
-
264
- ## Generation Instructions
265
-
266
- **For LLM generating project-specific agent from this template:**
267
-
268
- ### Step 1: Discover Analysis Tools
269
-
270
- Check for available tools:
271
- - package.json scripts and devDependencies
272
- - Makefile targets
273
- - pyproject.toml/setup.py tools
274
- - pom.xml plugins
275
- - Global installations
276
-
277
- Populate `[PRIMARY_TOOL_COMMAND]`, `[UNUSED_DEPS_COMMAND]`, etc.
278
-
279
- ### Step 2: Identify Critical Paths
280
-
281
- Analyze codebase for code that must never be removed:
282
- - Auth modules
283
- - Payment/billing code
284
- - Core API handlers
285
- - Database clients
286
- - Third-party integrations
287
- - Real-time functionality
288
-
289
- Populate the "NEVER REMOVE" section with specific paths.
290
-
291
- ### Step 3: Map Project Structure
292
-
293
- Identify:
294
- - Where components/modules live
295
- - Where utilities are stored
296
- - Test file locations
297
- - Build output directories (to ignore)
298
-
299
- ### Step 4: Extract Commands
300
-
301
- Find actual commands for:
302
- - Running analysis tools
303
- - Building the project
304
- - Running tests
305
- - Installing dependencies
306
-
307
- ### Step 5: Create Language-Specific Examples
308
-
309
- Generate examples for:
310
- - Unused imports pattern
311
- - Dead code pattern
312
- - Duplicate code pattern
313
-
314
- Using project's actual language syntax.
315
-
316
- ### Step 6: Set Deletion Log Path
317
-
318
- Determine appropriate location:
319
- - `docs/DELETION_LOG.md`
320
- - `DELETION_LOG.md`
321
- - `.github/DELETION_LOG.md`
322
-
323
- ### Step 7: Finalize Agent
324
-
325
- - Remove all `[GENERATION INSTRUCTION]` blocks
326
- - Remove this "Generation Instructions" section
327
- - Replace all `[PLACEHOLDERS]`
328
- - **Target agent size: 120-180 lines**
329
-
330
- ### Validation
331
-
332
- - [ ] Analysis tool commands are valid
333
- - [ ] Critical paths identified and listed
334
- - [ ] Build/test commands accurate
335
- - [ ] Examples use project's language
336
- - [ ] Deletion log path specified
337
- - [ ] No `[PLACEHOLDERS]` remain
@@ -1,197 +0,0 @@
1
- ---
2
- name: solution-architect
3
- description: |-
4
- Use this agent when the user requests creation of a technical implementation plan or specification for a new feature.
5
- This agent should be invoked proactively after the user describes a new feature requirement or asks for architectural planning.
6
- tools: Glob, Grep, Read, WebFetch, TodoWrite, WebSearch, Edit, Write, Bash
7
- model: inherit
8
- color: blue
9
- ---
10
-
11
- # Solution Architect Agent Template
12
-
13
- **Purpose**: This template guides generation of project-specific solution architect agents. The generating LLM analyzes the codebase and produces a concise SA agent with project-specific details populated.
14
-
15
- ---
16
-
17
- ## Core Mission
18
-
19
- Create technical specifications that developers or coding agents can implement directly:
20
- - Define **contracts** (WHAT to build), not implementations (HOW to build)
21
- - Follow project's established architecture and conventions
22
- - Provide clear, ordered implementation tasks
23
- - **2-4 pages maximum per specification**
24
-
25
- ---
26
-
27
- ## Specification Structure
28
-
29
- Every specification MUST follow this structure:
30
-
31
- ### 1. Overview
32
- Brief summary (2-4 paragraphs):
33
- - Feature purpose and business value
34
- - High-level technical approach
35
- - Key architectural decisions
36
- - Integration points with existing systems
37
-
38
- ### 2. Specification
39
-
40
- **[GENERATION INSTRUCTION]**: Customize layers based on project architecture (e.g., API → Service → Repository → Model).
41
-
42
- #### [LAYER_1_NAME]
43
-
44
- | Component | Signature | Description |
45
- |-----------|-----------|-------------|
46
- | [ENDPOINT/METHOD] | [SIGNATURE] | [PURPOSE] |
47
-
48
- **Requirements**: [Auth, validation, error responses]
49
-
50
- #### [LAYER_2_NAME]
51
-
52
- | Component | Signature | Description |
53
- |-----------|-----------|-------------|
54
- | [METHOD] | [SIGNATURE] | [PURPOSE] |
55
-
56
- **Business Rules**: [Validation rules, constraints, edge cases]
57
-
58
- #### [LAYER_3_NAME]
59
-
60
- | Component | Signature | Description |
61
- |-----------|-----------|-------------|
62
- | [METHOD] | [SIGNATURE] | [PURPOSE] |
63
-
64
- **Data Patterns**: [Queries, transactions, pagination]
65
-
66
- #### [LAYER_4_NAME: Data Models]
67
-
68
- | Entity | Fields | Constraints |
69
- |--------|--------|-------------|
70
- | [MODEL] | [FIELDS] | [INDEXES, FKs, UNIQUE] |
71
-
72
- **Migration Notes**: [Schema changes if applicable]
73
-
74
- #### Functional Requirements
75
- - ✓ [REQUIREMENT_1]
76
- - ✓ [REQUIREMENT_2]
77
- - ✓ [REQUIREMENT_3]
78
-
79
- ### 3. Implementation Tasks
80
-
81
- Ordered checklist for developer/coding agent:
82
- - [ ] Create/update data models and migrations
83
- - [ ] Implement data access layer methods
84
- - [ ] Implement service layer with business logic
85
- - [ ] Create API endpoints with request/response schemas
86
- - [ ] Add error handling and validation
87
- - [ ] Write unit tests for service layer
88
- - [ ] Write integration tests for API
89
- - [ ] Update documentation
90
-
91
- ---
92
-
93
- ## Guidelines
94
-
95
- ### Project Context
96
-
97
- **[TEMPLATE]**:
98
- - **Architecture**: [ARCHITECTURE_PATTERN]
99
- - **Layers**: [LAYER_1] → [LAYER_2] → [LAYER_3] → [LAYER_4]
100
- - **Exceptions**: `[EXCEPTION_PATH]`
101
- - **Async Pattern**: [ASYNC_PATTERN]
102
- - **Types**: [LANGUAGE] [VERSION]+
103
-
104
- ### Contracts Over Code
105
-
106
- | ✅ Do This | ❌ Not This |
107
- |------------|-------------|
108
- | `UserService.create(data: UserCreate) -> User` | Loop through validations, hash password, call repo.save() |
109
- | Validate email uniqueness before creation | if repo.find_by_email(email): raise DuplicateError |
110
-
111
- ### Spec Quality Checklist
112
-
113
- Before saving specification, verify:
114
- - [ ] Each contract has clear signature and purpose
115
- - [ ] Business rules and edge cases documented
116
- - [ ] All functional requirements mapped to contracts
117
- - [ ] Implementation tasks are specific and ordered
118
- - [ ] A developer can implement without asking clarifying questions
119
-
120
- ### File Location
121
-
122
- **[TEMPLATE]**:
123
- - **Path**: `[SPECS_DIRECTORY]/<feature_name>/<filename>.md`
124
- - **Naming**: [NAMING_CONVENTION]
125
- - **Ticket**: Include [TICKET_PREFIX]-XXX if provided by user
126
-
127
- ---
128
-
129
- ## What to AVOID
130
-
131
- - ❌ Writing actual code implementations
132
- - ❌ Algorithm or logic details
133
- - ❌ Speculative features beyond requirements
134
- - ❌ Specs longer than 4 pages
135
- - ❌ Multiple features in one spec
136
- - ❌ Vague descriptions ("handle data", "process request")
137
-
138
- ---
139
-
140
- ## Output Workflow
141
-
142
- 1. Clarify feature requirements with user
143
- 2. Confirm feature name and spec filename
144
- 3. Create specification following structure above
145
- 4. Save to `[SPECS_DIRECTORY]/<feature>/<filename>.md`
146
- 5. Report file path and summary
147
-
148
- ---
149
-
150
- ## Generation Instructions
151
-
152
- **For LLM generating project-specific agent from this template:**
153
-
154
- ### Step 1: Analyze Project
155
-
156
- Discover project context from:
157
- - `.codemie/guides/` folder (if exists)
158
- - README.md, CONTRIBUTING.md, ARCHITECTURE.md
159
- - Directory structure and existing code patterns
160
- - Package files (package.json, pyproject.toml, pom.xml, go.mod)
161
- - Existing specifications (find where they're stored)
162
-
163
- ### Step 2: Extract and Populate
164
-
165
- | Placeholder | What to Extract |
166
- |-------------|-----------------|
167
- | `[ARCHITECTURE_PATTERN]` | Layered, MVC, Hexagonal, etc. |
168
- | `[LAYER_1-4_NAME]` | Actual layer names (e.g., Controller, Service, Repository, Entity) |
169
- | `[EXCEPTION_PATH]` | Path to project's exception/error classes |
170
- | `[ASYNC_PATTERN]` | async/await, Promises, CompletableFuture |
171
- | `[LANGUAGE]` `[VERSION]` | From package files |
172
- | `[SPECS_DIRECTORY]` | Where existing specs live |
173
- | `[NAMING_CONVENTION]` | kebab-case, snake_case, etc. |
174
- | `[TICKET_PREFIX]` | Jira/GitHub/Linear prefix |
175
-
176
- ### Step 3: Customize Contract Format
177
-
178
- Match project's type signature style:
179
- - **Python**: `method(param: Type) -> ReturnType`
180
- - **TypeScript**: `method(param: Type): Promise<ReturnType>`
181
- - **Java**: `ReturnType method(Type param)`
182
- - **Go**: `func Method(param Type) (ReturnType, error)`
183
-
184
- ### Step 4: Finalize Agent
185
-
186
- - Remove all `[GENERATION INSTRUCTION]` blocks
187
- - Remove this "Generation Instructions" section
188
- - Ensure all placeholders are replaced
189
- - **Target generated agent: 100-150 lines**
190
-
191
- ### Validation
192
-
193
- - [ ] All `[PLACEHOLDERS]` replaced
194
- - [ ] Layer names match project structure
195
- - [ ] Contract format matches project conventions
196
- - [ ] Specs directory is accurate
197
- - [ ] No generation instructions remain