agent-recorder 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/README.md +133 -0
  2. package/dist/bundle.d.ts +8 -0
  3. package/dist/bundle.d.ts.map +1 -0
  4. package/dist/bundle.js +131 -0
  5. package/dist/bundle.js.map +1 -0
  6. package/dist/index.d.ts +10 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +31 -0
  9. package/dist/index.js.map +1 -0
  10. package/package.json +53 -0
  11. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics 2.js +205 -0
  12. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d 2.ts +50 -0
  13. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d.ts +50 -0
  14. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d.ts 2.map +1 -0
  15. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d.ts.map +1 -0
  16. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.js +205 -0
  17. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.js 2.map +1 -0
  18. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.js.map +1 -0
  19. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test 2.js +253 -0
  20. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d 2.ts +5 -0
  21. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d.ts +5 -0
  22. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d.ts 2.map +1 -0
  23. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d.ts.map +1 -0
  24. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js +253 -0
  25. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js 2.map +1 -0
  26. package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js.map +1 -0
  27. package/vendor/node_modules/@agent-recorder/cli/commands/configure 2.js +144 -0
  28. package/vendor/node_modules/@agent-recorder/cli/commands/configure.d 2.ts +17 -0
  29. package/vendor/node_modules/@agent-recorder/cli/commands/configure.d.ts +17 -0
  30. package/vendor/node_modules/@agent-recorder/cli/commands/configure.d.ts 2.map +1 -0
  31. package/vendor/node_modules/@agent-recorder/cli/commands/configure.d.ts.map +1 -0
  32. package/vendor/node_modules/@agent-recorder/cli/commands/configure.js +144 -0
  33. package/vendor/node_modules/@agent-recorder/cli/commands/configure.js 2.map +1 -0
  34. package/vendor/node_modules/@agent-recorder/cli/commands/configure.js.map +1 -0
  35. package/vendor/node_modules/@agent-recorder/cli/commands/diagnose 2.js +141 -0
  36. package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d 2.ts +5 -0
  37. package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d.ts +5 -0
  38. package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d.ts 2.map +1 -0
  39. package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d.ts.map +1 -0
  40. package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.js +141 -0
  41. package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.js 2.map +1 -0
  42. package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.js.map +1 -0
  43. package/vendor/node_modules/@agent-recorder/cli/commands/doctor 2.js +253 -0
  44. package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d 2.ts +5 -0
  45. package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d.ts +5 -0
  46. package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d.ts 2.map +1 -0
  47. package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d.ts.map +1 -0
  48. package/vendor/node_modules/@agent-recorder/cli/commands/doctor.js +253 -0
  49. package/vendor/node_modules/@agent-recorder/cli/commands/doctor.js 2.map +1 -0
  50. package/vendor/node_modules/@agent-recorder/cli/commands/doctor.js.map +1 -0
  51. package/vendor/node_modules/@agent-recorder/cli/commands/export 2.js +56 -0
  52. package/vendor/node_modules/@agent-recorder/cli/commands/export.d 2.ts +12 -0
  53. package/vendor/node_modules/@agent-recorder/cli/commands/export.d.ts +12 -0
  54. package/vendor/node_modules/@agent-recorder/cli/commands/export.d.ts 2.map +1 -0
  55. package/vendor/node_modules/@agent-recorder/cli/commands/export.d.ts.map +1 -0
  56. package/vendor/node_modules/@agent-recorder/cli/commands/export.js +56 -0
  57. package/vendor/node_modules/@agent-recorder/cli/commands/export.js 2.map +1 -0
  58. package/vendor/node_modules/@agent-recorder/cli/commands/export.js.map +1 -0
  59. package/vendor/node_modules/@agent-recorder/cli/commands/install 2.js +77 -0
  60. package/vendor/node_modules/@agent-recorder/cli/commands/install.d 2.ts +13 -0
  61. package/vendor/node_modules/@agent-recorder/cli/commands/install.d.ts +13 -0
  62. package/vendor/node_modules/@agent-recorder/cli/commands/install.d.ts 2.map +1 -0
  63. package/vendor/node_modules/@agent-recorder/cli/commands/install.d.ts.map +1 -0
  64. package/vendor/node_modules/@agent-recorder/cli/commands/install.js +77 -0
  65. package/vendor/node_modules/@agent-recorder/cli/commands/install.js 2.map +1 -0
  66. package/vendor/node_modules/@agent-recorder/cli/commands/install.js.map +1 -0
  67. package/vendor/node_modules/@agent-recorder/cli/commands/logs 2.js +40 -0
  68. package/vendor/node_modules/@agent-recorder/cli/commands/logs.d 2.ts +8 -0
  69. package/vendor/node_modules/@agent-recorder/cli/commands/logs.d.ts +8 -0
  70. package/vendor/node_modules/@agent-recorder/cli/commands/logs.d.ts 2.map +1 -0
  71. package/vendor/node_modules/@agent-recorder/cli/commands/logs.d.ts.map +1 -0
  72. package/vendor/node_modules/@agent-recorder/cli/commands/logs.js +40 -0
  73. package/vendor/node_modules/@agent-recorder/cli/commands/logs.js 2.map +1 -0
  74. package/vendor/node_modules/@agent-recorder/cli/commands/logs.js.map +1 -0
  75. package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp 2.js +188 -0
  76. package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d 2.ts +10 -0
  77. package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d.ts +10 -0
  78. package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d.ts 2.map +1 -0
  79. package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d.ts.map +1 -0
  80. package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.js +188 -0
  81. package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.js 2.map +1 -0
  82. package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.js.map +1 -0
  83. package/vendor/node_modules/@agent-recorder/cli/commands/restart 2.js +67 -0
  84. package/vendor/node_modules/@agent-recorder/cli/commands/restart.d 2.ts +9 -0
  85. package/vendor/node_modules/@agent-recorder/cli/commands/restart.d.ts +9 -0
  86. package/vendor/node_modules/@agent-recorder/cli/commands/restart.d.ts 2.map +1 -0
  87. package/vendor/node_modules/@agent-recorder/cli/commands/restart.d.ts.map +1 -0
  88. package/vendor/node_modules/@agent-recorder/cli/commands/restart.js +67 -0
  89. package/vendor/node_modules/@agent-recorder/cli/commands/restart.js 2.map +1 -0
  90. package/vendor/node_modules/@agent-recorder/cli/commands/restart.js.map +1 -0
  91. package/vendor/node_modules/@agent-recorder/cli/commands/sessions 2.js +333 -0
  92. package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d 2.ts +52 -0
  93. package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d.ts +52 -0
  94. package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d.ts 2.map +1 -0
  95. package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d.ts.map +1 -0
  96. package/vendor/node_modules/@agent-recorder/cli/commands/sessions.js +333 -0
  97. package/vendor/node_modules/@agent-recorder/cli/commands/sessions.js 2.map +1 -0
  98. package/vendor/node_modules/@agent-recorder/cli/commands/sessions.js.map +1 -0
  99. package/vendor/node_modules/@agent-recorder/cli/commands/start 2.js +174 -0
  100. package/vendor/node_modules/@agent-recorder/cli/commands/start.d 2.ts +10 -0
  101. package/vendor/node_modules/@agent-recorder/cli/commands/start.d.ts +10 -0
  102. package/vendor/node_modules/@agent-recorder/cli/commands/start.d.ts 2.map +1 -0
  103. package/vendor/node_modules/@agent-recorder/cli/commands/start.d.ts.map +1 -0
  104. package/vendor/node_modules/@agent-recorder/cli/commands/start.js +174 -0
  105. package/vendor/node_modules/@agent-recorder/cli/commands/start.js 2.map +1 -0
  106. package/vendor/node_modules/@agent-recorder/cli/commands/start.js.map +1 -0
  107. package/vendor/node_modules/@agent-recorder/cli/commands/status 2.js +104 -0
  108. package/vendor/node_modules/@agent-recorder/cli/commands/status.d 2.ts +5 -0
  109. package/vendor/node_modules/@agent-recorder/cli/commands/status.d.ts +5 -0
  110. package/vendor/node_modules/@agent-recorder/cli/commands/status.d.ts 2.map +1 -0
  111. package/vendor/node_modules/@agent-recorder/cli/commands/status.d.ts.map +1 -0
  112. package/vendor/node_modules/@agent-recorder/cli/commands/status.js +104 -0
  113. package/vendor/node_modules/@agent-recorder/cli/commands/status.js 2.map +1 -0
  114. package/vendor/node_modules/@agent-recorder/cli/commands/status.js.map +1 -0
  115. package/vendor/node_modules/@agent-recorder/cli/commands/stop 2.js +89 -0
  116. package/vendor/node_modules/@agent-recorder/cli/commands/stop.d 2.ts +8 -0
  117. package/vendor/node_modules/@agent-recorder/cli/commands/stop.d.ts +8 -0
  118. package/vendor/node_modules/@agent-recorder/cli/commands/stop.d.ts 2.map +1 -0
  119. package/vendor/node_modules/@agent-recorder/cli/commands/stop.d.ts.map +1 -0
  120. package/vendor/node_modules/@agent-recorder/cli/commands/stop.js +89 -0
  121. package/vendor/node_modules/@agent-recorder/cli/commands/stop.js 2.map +1 -0
  122. package/vendor/node_modules/@agent-recorder/cli/commands/stop.js.map +1 -0
  123. package/vendor/node_modules/@agent-recorder/cli/commands/tui 2.js +14 -0
  124. package/vendor/node_modules/@agent-recorder/cli/commands/tui.d 2.ts +5 -0
  125. package/vendor/node_modules/@agent-recorder/cli/commands/tui.d.ts +5 -0
  126. package/vendor/node_modules/@agent-recorder/cli/commands/tui.d.ts 2.map +1 -0
  127. package/vendor/node_modules/@agent-recorder/cli/commands/tui.d.ts.map +1 -0
  128. package/vendor/node_modules/@agent-recorder/cli/commands/tui.js +14 -0
  129. package/vendor/node_modules/@agent-recorder/cli/commands/tui.js 2.map +1 -0
  130. package/vendor/node_modules/@agent-recorder/cli/commands/tui.js.map +1 -0
  131. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths 2.js +117 -0
  132. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d 2.ts +55 -0
  133. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d.ts +55 -0
  134. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d.ts 2.map +1 -0
  135. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d.ts.map +1 -0
  136. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.js +117 -0
  137. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.js 2.map +1 -0
  138. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.js.map +1 -0
  139. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test 2.js +152 -0
  140. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d 2.ts +5 -0
  141. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d.ts +5 -0
  142. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d.ts 2.map +1 -0
  143. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d.ts.map +1 -0
  144. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.js +152 -0
  145. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.js 2.map +1 -0
  146. package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.js.map +1 -0
  147. package/vendor/node_modules/@agent-recorder/cli/index 2.js +194 -0
  148. package/vendor/node_modules/@agent-recorder/cli/index.d 2.ts +10 -0
  149. package/vendor/node_modules/@agent-recorder/cli/index.d.ts +10 -0
  150. package/vendor/node_modules/@agent-recorder/cli/index.d.ts 2.map +1 -0
  151. package/vendor/node_modules/@agent-recorder/cli/index.d.ts.map +1 -0
  152. package/vendor/node_modules/@agent-recorder/cli/index.js +194 -0
  153. package/vendor/node_modules/@agent-recorder/cli/index.js 2.map +1 -0
  154. package/vendor/node_modules/@agent-recorder/cli/index.js.map +1 -0
  155. package/vendor/node_modules/@agent-recorder/cli/package 2.json +17 -0
  156. package/vendor/node_modules/@agent-recorder/cli/package.json +17 -0
  157. package/vendor/node_modules/@agent-recorder/cli/tui/App 2.js +84 -0
  158. package/vendor/node_modules/@agent-recorder/cli/tui/App.d 2.ts +6 -0
  159. package/vendor/node_modules/@agent-recorder/cli/tui/App.d.ts +6 -0
  160. package/vendor/node_modules/@agent-recorder/cli/tui/App.d.ts 2.map +1 -0
  161. package/vendor/node_modules/@agent-recorder/cli/tui/App.d.ts.map +1 -0
  162. package/vendor/node_modules/@agent-recorder/cli/tui/App.js +84 -0
  163. package/vendor/node_modules/@agent-recorder/cli/tui/App.js 2.map +1 -0
  164. package/vendor/node_modules/@agent-recorder/cli/tui/App.js.map +1 -0
  165. package/vendor/node_modules/@agent-recorder/cli/tui/api 2.js +105 -0
  166. package/vendor/node_modules/@agent-recorder/cli/tui/api.d 2.ts +31 -0
  167. package/vendor/node_modules/@agent-recorder/cli/tui/api.d.ts +31 -0
  168. package/vendor/node_modules/@agent-recorder/cli/tui/api.d.ts 2.map +1 -0
  169. package/vendor/node_modules/@agent-recorder/cli/tui/api.d.ts.map +1 -0
  170. package/vendor/node_modules/@agent-recorder/cli/tui/api.js +105 -0
  171. package/vendor/node_modules/@agent-recorder/cli/tui/api.js 2.map +1 -0
  172. package/vendor/node_modules/@agent-recorder/cli/tui/api.js.map +1 -0
  173. package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel 2.js +45 -0
  174. package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d 2.ts +11 -0
  175. package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d.ts +11 -0
  176. package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d.ts 2.map +1 -0
  177. package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d.ts.map +1 -0
  178. package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.js +45 -0
  179. package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.js 2.map +1 -0
  180. package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.js.map +1 -0
  181. package/vendor/node_modules/@agent-recorder/cli/tui/components/Header 2.js +13 -0
  182. package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d 2.ts +17 -0
  183. package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d.ts +17 -0
  184. package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d.ts 2.map +1 -0
  185. package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d.ts.map +1 -0
  186. package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.js +13 -0
  187. package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.js 2.map +1 -0
  188. package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.js.map +1 -0
  189. package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner 2.js +21 -0
  190. package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d 2.ts +12 -0
  191. package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d.ts +12 -0
  192. package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d.ts 2.map +1 -0
  193. package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d.ts.map +1 -0
  194. package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.js +21 -0
  195. package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.js 2.map +1 -0
  196. package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.js.map +1 -0
  197. package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge 2.js +50 -0
  198. package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d 2.ts +16 -0
  199. package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d.ts +16 -0
  200. package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d.ts 2.map +1 -0
  201. package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d.ts.map +1 -0
  202. package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.js +50 -0
  203. package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.js 2.map +1 -0
  204. package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.js.map +1 -0
  205. package/vendor/node_modules/@agent-recorder/cli/tui/components/Table 2.js +20 -0
  206. package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d 2.ts +21 -0
  207. package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d.ts +21 -0
  208. package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d.ts 2.map +1 -0
  209. package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d.ts.map +1 -0
  210. package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.js +20 -0
  211. package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.js 2.map +1 -0
  212. package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.js.map +1 -0
  213. package/vendor/node_modules/@agent-recorder/cli/tui/components/index 2.js +8 -0
  214. package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d 2.ts +8 -0
  215. package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d.ts +8 -0
  216. package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d.ts 2.map +1 -0
  217. package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d.ts.map +1 -0
  218. package/vendor/node_modules/@agent-recorder/cli/tui/components/index.js +8 -0
  219. package/vendor/node_modules/@agent-recorder/cli/tui/components/index.js 2.map +1 -0
  220. package/vendor/node_modules/@agent-recorder/cli/tui/components/index.js.map +1 -0
  221. package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream 2.js +75 -0
  222. package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d 2.ts +22 -0
  223. package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d.ts +22 -0
  224. package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d.ts 2.map +1 -0
  225. package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d.ts.map +1 -0
  226. package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.js +75 -0
  227. package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.js 2.map +1 -0
  228. package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.js.map +1 -0
  229. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen 2.js +190 -0
  230. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d 2.ts +13 -0
  231. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d.ts +13 -0
  232. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d.ts 2.map +1 -0
  233. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d.ts.map +1 -0
  234. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.js +190 -0
  235. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.js 2.map +1 -0
  236. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.js.map +1 -0
  237. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen 2.js +166 -0
  238. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d 2.ts +10 -0
  239. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d.ts +10 -0
  240. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d.ts 2.map +1 -0
  241. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d.ts.map +1 -0
  242. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.js +166 -0
  243. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.js 2.map +1 -0
  244. package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.js.map +1 -0
  245. package/vendor/node_modules/@agent-recorder/cli/tui/screens/index 2.js +6 -0
  246. package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d 2.ts +6 -0
  247. package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d.ts +6 -0
  248. package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d.ts 2.map +1 -0
  249. package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d.ts.map +1 -0
  250. package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.js +6 -0
  251. package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.js 2.map +1 -0
  252. package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.js.map +1 -0
  253. package/vendor/node_modules/@agent-recorder/core/config 2.js +44 -0
  254. package/vendor/node_modules/@agent-recorder/core/config.d 2.ts +25 -0
  255. package/vendor/node_modules/@agent-recorder/core/config.d.ts +25 -0
  256. package/vendor/node_modules/@agent-recorder/core/config.d.ts 2.map +1 -0
  257. package/vendor/node_modules/@agent-recorder/core/config.d.ts.map +1 -0
  258. package/vendor/node_modules/@agent-recorder/core/config.js +44 -0
  259. package/vendor/node_modules/@agent-recorder/core/config.js.map +1 -0
  260. package/vendor/node_modules/@agent-recorder/core/config.test.d.ts +5 -0
  261. package/vendor/node_modules/@agent-recorder/core/config.test.d.ts.map +1 -0
  262. package/vendor/node_modules/@agent-recorder/core/config.test.js +78 -0
  263. package/vendor/node_modules/@agent-recorder/core/config.test.js.map +1 -0
  264. package/vendor/node_modules/@agent-recorder/core/daemon-paths.d.ts +50 -0
  265. package/vendor/node_modules/@agent-recorder/core/daemon-paths.d.ts.map +1 -0
  266. package/vendor/node_modules/@agent-recorder/core/daemon-paths.js +113 -0
  267. package/vendor/node_modules/@agent-recorder/core/daemon-paths.js.map +1 -0
  268. package/vendor/node_modules/@agent-recorder/core/daemon-paths.test.d.ts +5 -0
  269. package/vendor/node_modules/@agent-recorder/core/daemon-paths.test.d.ts.map +1 -0
  270. package/vendor/node_modules/@agent-recorder/core/daemon-paths.test.js +143 -0
  271. package/vendor/node_modules/@agent-recorder/core/daemon-paths.test.js.map +1 -0
  272. package/vendor/node_modules/@agent-recorder/core/db/connection.d 2.ts +15 -0
  273. package/vendor/node_modules/@agent-recorder/core/db/connection.d.ts +15 -0
  274. package/vendor/node_modules/@agent-recorder/core/db/connection.d.ts.map +1 -0
  275. package/vendor/node_modules/@agent-recorder/core/db/connection.js +30 -0
  276. package/vendor/node_modules/@agent-recorder/core/db/connection.js.map +1 -0
  277. package/vendor/node_modules/@agent-recorder/core/db/events.d.ts +65 -0
  278. package/vendor/node_modules/@agent-recorder/core/db/events.d.ts.map +1 -0
  279. package/vendor/node_modules/@agent-recorder/core/db/events.js +117 -0
  280. package/vendor/node_modules/@agent-recorder/core/db/events.js.map +1 -0
  281. package/vendor/node_modules/@agent-recorder/core/db/events.test.d.ts +5 -0
  282. package/vendor/node_modules/@agent-recorder/core/db/events.test.d.ts.map +1 -0
  283. package/vendor/node_modules/@agent-recorder/core/db/events.test.js +72 -0
  284. package/vendor/node_modules/@agent-recorder/core/db/events.test.js.map +1 -0
  285. package/vendor/node_modules/@agent-recorder/core/db/index.d.ts +9 -0
  286. package/vendor/node_modules/@agent-recorder/core/db/index.d.ts.map +1 -0
  287. package/vendor/node_modules/@agent-recorder/core/db/index.js +9 -0
  288. package/vendor/node_modules/@agent-recorder/core/db/index.js.map +1 -0
  289. package/vendor/node_modules/@agent-recorder/core/db/migrations.d.ts +17 -0
  290. package/vendor/node_modules/@agent-recorder/core/db/migrations.d.ts.map +1 -0
  291. package/vendor/node_modules/@agent-recorder/core/db/migrations.js +56 -0
  292. package/vendor/node_modules/@agent-recorder/core/db/migrations.js.map +1 -0
  293. package/vendor/node_modules/@agent-recorder/core/db/sequences.d.ts +17 -0
  294. package/vendor/node_modules/@agent-recorder/core/db/sequences.d.ts.map +1 -0
  295. package/vendor/node_modules/@agent-recorder/core/db/sequences.js +41 -0
  296. package/vendor/node_modules/@agent-recorder/core/db/sequences.js.map +1 -0
  297. package/vendor/node_modules/@agent-recorder/core/db/sessions.d.ts +17 -0
  298. package/vendor/node_modules/@agent-recorder/core/db/sessions.d.ts.map +1 -0
  299. package/vendor/node_modules/@agent-recorder/core/db/sessions.js +61 -0
  300. package/vendor/node_modules/@agent-recorder/core/db/sessions.js.map +1 -0
  301. package/vendor/node_modules/@agent-recorder/core/index.d.ts +13 -0
  302. package/vendor/node_modules/@agent-recorder/core/index.d.ts.map +1 -0
  303. package/vendor/node_modules/@agent-recorder/core/index.js +13 -0
  304. package/vendor/node_modules/@agent-recorder/core/index.js.map +1 -0
  305. package/vendor/node_modules/@agent-recorder/core/lockfile.d.ts +42 -0
  306. package/vendor/node_modules/@agent-recorder/core/lockfile.d.ts.map +1 -0
  307. package/vendor/node_modules/@agent-recorder/core/lockfile.js +122 -0
  308. package/vendor/node_modules/@agent-recorder/core/lockfile.js.map +1 -0
  309. package/vendor/node_modules/@agent-recorder/core/lockfile.test.d.ts +5 -0
  310. package/vendor/node_modules/@agent-recorder/core/lockfile.test.d.ts.map +1 -0
  311. package/vendor/node_modules/@agent-recorder/core/lockfile.test.js +136 -0
  312. package/vendor/node_modules/@agent-recorder/core/lockfile.test.js.map +1 -0
  313. package/vendor/node_modules/@agent-recorder/core/migrations/001_initial 2.sql +40 -0
  314. package/vendor/node_modules/@agent-recorder/core/migrations/001_initial.sql +40 -0
  315. package/vendor/node_modules/@agent-recorder/core/migrations/002_session_sequences 2.sql +8 -0
  316. package/vendor/node_modules/@agent-recorder/core/migrations/002_session_sequences.sql +8 -0
  317. package/vendor/node_modules/@agent-recorder/core/migrations/003_add_tool_columns 2.sql +9 -0
  318. package/vendor/node_modules/@agent-recorder/core/migrations/003_add_tool_columns.sql +9 -0
  319. package/vendor/node_modules/@agent-recorder/core/migrations/004_add_cancelled_status 2.sql +23 -0
  320. package/vendor/node_modules/@agent-recorder/core/migrations/004_add_cancelled_status.sql +23 -0
  321. package/vendor/node_modules/@agent-recorder/core/migrations/005_add_error_category 2.sql +6 -0
  322. package/vendor/node_modules/@agent-recorder/core/migrations/005_add_error_category.sql +6 -0
  323. package/vendor/node_modules/@agent-recorder/core/package 2.json +18 -0
  324. package/vendor/node_modules/@agent-recorder/core/package.json +18 -0
  325. package/vendor/node_modules/@agent-recorder/core/types/events.d 2.ts +69 -0
  326. package/vendor/node_modules/@agent-recorder/core/types/events.d.ts +69 -0
  327. package/vendor/node_modules/@agent-recorder/core/types/events.d.ts.map +1 -0
  328. package/vendor/node_modules/@agent-recorder/core/types/events.js +6 -0
  329. package/vendor/node_modules/@agent-recorder/core/types/events.js.map +1 -0
  330. package/vendor/node_modules/@agent-recorder/core/types/index 2.js +2 -0
  331. package/vendor/node_modules/@agent-recorder/core/types/index.d.ts +3 -0
  332. package/vendor/node_modules/@agent-recorder/core/types/index.d.ts.map +1 -0
  333. package/vendor/node_modules/@agent-recorder/core/types/index.js +2 -0
  334. package/vendor/node_modules/@agent-recorder/core/types/index.js 2.map +1 -0
  335. package/vendor/node_modules/@agent-recorder/core/types/index.js.map +1 -0
  336. package/vendor/node_modules/@agent-recorder/core/types/session 2.js +6 -0
  337. package/vendor/node_modules/@agent-recorder/core/types/session.d 2.ts +22 -0
  338. package/vendor/node_modules/@agent-recorder/core/types/session.d.ts +22 -0
  339. package/vendor/node_modules/@agent-recorder/core/types/session.d.ts 2.map +1 -0
  340. package/vendor/node_modules/@agent-recorder/core/types/session.d.ts.map +1 -0
  341. package/vendor/node_modules/@agent-recorder/core/types/session.js +6 -0
  342. package/vendor/node_modules/@agent-recorder/core/types/session.js 2.map +1 -0
  343. package/vendor/node_modules/@agent-recorder/core/types/session.js.map +1 -0
  344. package/vendor/node_modules/@agent-recorder/core/utils/error-category 2.js +58 -0
  345. package/vendor/node_modules/@agent-recorder/core/utils/error-category.d 2.ts +22 -0
  346. package/vendor/node_modules/@agent-recorder/core/utils/error-category.d.ts +22 -0
  347. package/vendor/node_modules/@agent-recorder/core/utils/error-category.d.ts 2.map +1 -0
  348. package/vendor/node_modules/@agent-recorder/core/utils/error-category.d.ts.map +1 -0
  349. package/vendor/node_modules/@agent-recorder/core/utils/error-category.js +58 -0
  350. package/vendor/node_modules/@agent-recorder/core/utils/error-category.js 2.map +1 -0
  351. package/vendor/node_modules/@agent-recorder/core/utils/error-category.js.map +1 -0
  352. package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d 2.ts +5 -0
  353. package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d.ts +5 -0
  354. package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d.ts 2.map +1 -0
  355. package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d.ts.map +1 -0
  356. package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.js +89 -0
  357. package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.js 2.map +1 -0
  358. package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.js.map +1 -0
  359. package/vendor/node_modules/@agent-recorder/core/utils/index 2.js +6 -0
  360. package/vendor/node_modules/@agent-recorder/core/utils/index.d 2.ts +6 -0
  361. package/vendor/node_modules/@agent-recorder/core/utils/index.d.ts +6 -0
  362. package/vendor/node_modules/@agent-recorder/core/utils/index.d.ts 2.map +1 -0
  363. package/vendor/node_modules/@agent-recorder/core/utils/index.d.ts.map +1 -0
  364. package/vendor/node_modules/@agent-recorder/core/utils/index.js +6 -0
  365. package/vendor/node_modules/@agent-recorder/core/utils/index.js 2.map +1 -0
  366. package/vendor/node_modules/@agent-recorder/core/utils/index.js.map +1 -0
  367. package/vendor/node_modules/@agent-recorder/core/utils/redact.d 2.ts +19 -0
  368. package/vendor/node_modules/@agent-recorder/core/utils/redact.d.ts +19 -0
  369. package/vendor/node_modules/@agent-recorder/core/utils/redact.d.ts 2.map +1 -0
  370. package/vendor/node_modules/@agent-recorder/core/utils/redact.d.ts.map +1 -0
  371. package/vendor/node_modules/@agent-recorder/core/utils/redact.js +52 -0
  372. package/vendor/node_modules/@agent-recorder/core/utils/redact.js 2.map +1 -0
  373. package/vendor/node_modules/@agent-recorder/core/utils/redact.js.map +1 -0
  374. package/vendor/node_modules/@agent-recorder/service/index 2.js +128 -0
  375. package/vendor/node_modules/@agent-recorder/service/index.d 2.ts +36 -0
  376. package/vendor/node_modules/@agent-recorder/service/index.d.ts +36 -0
  377. package/vendor/node_modules/@agent-recorder/service/index.d.ts 2.map +1 -0
  378. package/vendor/node_modules/@agent-recorder/service/index.d.ts.map +1 -0
  379. package/vendor/node_modules/@agent-recorder/service/index.js +128 -0
  380. package/vendor/node_modules/@agent-recorder/service/index.js 2.map +1 -0
  381. package/vendor/node_modules/@agent-recorder/service/index.js.map +1 -0
  382. package/vendor/node_modules/@agent-recorder/service/mcp/index 2.js +7 -0
  383. package/vendor/node_modules/@agent-recorder/service/mcp/index.d 2.ts +7 -0
  384. package/vendor/node_modules/@agent-recorder/service/mcp/index.d.ts +7 -0
  385. package/vendor/node_modules/@agent-recorder/service/mcp/index.d.ts 2.map +1 -0
  386. package/vendor/node_modules/@agent-recorder/service/mcp/index.d.ts.map +1 -0
  387. package/vendor/node_modules/@agent-recorder/service/mcp/index.js +7 -0
  388. package/vendor/node_modules/@agent-recorder/service/mcp/index.js 2.map +1 -0
  389. package/vendor/node_modules/@agent-recorder/service/mcp/index.js.map +1 -0
  390. package/vendor/node_modules/@agent-recorder/service/mcp/proxy 2.js +223 -0
  391. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d 2.ts +26 -0
  392. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts +26 -0
  393. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts 2.map +1 -0
  394. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts.map +1 -0
  395. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js +223 -0
  396. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js 2.map +1 -0
  397. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js.map +1 -0
  398. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d 2.ts +5 -0
  399. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d.ts +5 -0
  400. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d.ts 2.map +1 -0
  401. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d.ts.map +1 -0
  402. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.js +367 -0
  403. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.js 2.map +1 -0
  404. package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.js.map +1 -0
  405. package/vendor/node_modules/@agent-recorder/service/mcp/recorder 2.js +62 -0
  406. package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d 2.ts +31 -0
  407. package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d.ts +31 -0
  408. package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d.ts 2.map +1 -0
  409. package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d.ts.map +1 -0
  410. package/vendor/node_modules/@agent-recorder/service/mcp/recorder.js +62 -0
  411. package/vendor/node_modules/@agent-recorder/service/mcp/recorder.js 2.map +1 -0
  412. package/vendor/node_modules/@agent-recorder/service/mcp/recorder.js.map +1 -0
  413. package/vendor/node_modules/@agent-recorder/service/mcp/types 2.js +15 -0
  414. package/vendor/node_modules/@agent-recorder/service/mcp/types.d 2.ts +40 -0
  415. package/vendor/node_modules/@agent-recorder/service/mcp/types.d.ts +40 -0
  416. package/vendor/node_modules/@agent-recorder/service/mcp/types.d.ts 2.map +1 -0
  417. package/vendor/node_modules/@agent-recorder/service/mcp/types.d.ts.map +1 -0
  418. package/vendor/node_modules/@agent-recorder/service/mcp/types.js +15 -0
  419. package/vendor/node_modules/@agent-recorder/service/mcp/types.js 2.map +1 -0
  420. package/vendor/node_modules/@agent-recorder/service/mcp/types.js.map +1 -0
  421. package/vendor/node_modules/@agent-recorder/service/package 2.json +15 -0
  422. package/vendor/node_modules/@agent-recorder/service/package.json +15 -0
  423. package/vendor/node_modules/@agent-recorder/service/routes/events 2.js +71 -0
  424. package/vendor/node_modules/@agent-recorder/service/routes/events.d 2.ts +11 -0
  425. package/vendor/node_modules/@agent-recorder/service/routes/events.d.ts +11 -0
  426. package/vendor/node_modules/@agent-recorder/service/routes/events.d.ts 2.map +1 -0
  427. package/vendor/node_modules/@agent-recorder/service/routes/events.d.ts.map +1 -0
  428. package/vendor/node_modules/@agent-recorder/service/routes/events.js +71 -0
  429. package/vendor/node_modules/@agent-recorder/service/routes/events.js 2.map +1 -0
  430. package/vendor/node_modules/@agent-recorder/service/routes/events.js.map +1 -0
  431. package/vendor/node_modules/@agent-recorder/service/routes/health 2.js +18 -0
  432. package/vendor/node_modules/@agent-recorder/service/routes/health.d 2.ts +6 -0
  433. package/vendor/node_modules/@agent-recorder/service/routes/health.d.ts +6 -0
  434. package/vendor/node_modules/@agent-recorder/service/routes/health.d.ts 2.map +1 -0
  435. package/vendor/node_modules/@agent-recorder/service/routes/health.d.ts.map +1 -0
  436. package/vendor/node_modules/@agent-recorder/service/routes/health.js +18 -0
  437. package/vendor/node_modules/@agent-recorder/service/routes/health.js 2.map +1 -0
  438. package/vendor/node_modules/@agent-recorder/service/routes/health.js.map +1 -0
  439. package/vendor/node_modules/@agent-recorder/service/routes/sessions 2.js +80 -0
  440. package/vendor/node_modules/@agent-recorder/service/routes/sessions.d 2.ts +12 -0
  441. package/vendor/node_modules/@agent-recorder/service/routes/sessions.d.ts +12 -0
  442. package/vendor/node_modules/@agent-recorder/service/routes/sessions.d.ts 2.map +1 -0
  443. package/vendor/node_modules/@agent-recorder/service/routes/sessions.d.ts.map +1 -0
  444. package/vendor/node_modules/@agent-recorder/service/routes/sessions.js +80 -0
  445. package/vendor/node_modules/@agent-recorder/service/routes/sessions.js 2.map +1 -0
  446. package/vendor/node_modules/@agent-recorder/service/routes/sessions.js.map +1 -0
  447. package/vendor/node_modules/@agent-recorder/service/server 2.js +36 -0
  448. package/vendor/node_modules/@agent-recorder/service/server.d 2.ts +19 -0
  449. package/vendor/node_modules/@agent-recorder/service/server.d.ts +19 -0
  450. package/vendor/node_modules/@agent-recorder/service/server.d.ts 2.map +1 -0
  451. package/vendor/node_modules/@agent-recorder/service/server.d.ts.map +1 -0
  452. package/vendor/node_modules/@agent-recorder/service/server.js +36 -0
  453. package/vendor/node_modules/@agent-recorder/service/server.js 2.map +1 -0
  454. package/vendor/node_modules/@agent-recorder/service/server.js.map +1 -0
  455. package/vendor/node_modules/@agent-recorder/service/server.test 2.js +296 -0
  456. package/vendor/node_modules/@agent-recorder/service/server.test.d 2.ts +5 -0
  457. package/vendor/node_modules/@agent-recorder/service/server.test.d.ts +5 -0
  458. package/vendor/node_modules/@agent-recorder/service/server.test.d.ts 2.map +1 -0
  459. package/vendor/node_modules/@agent-recorder/service/server.test.d.ts.map +1 -0
  460. package/vendor/node_modules/@agent-recorder/service/server.test.js +296 -0
  461. package/vendor/node_modules/@agent-recorder/service/server.test.js.map +1 -0
  462. package/vendor/node_modules/@agent-recorder/service/session-manager 2.js +22 -0
  463. package/vendor/node_modules/@agent-recorder/service/session-manager.d 2.ts +16 -0
  464. package/vendor/node_modules/@agent-recorder/service/session-manager.d.ts +16 -0
  465. package/vendor/node_modules/@agent-recorder/service/session-manager.d.ts 2.map +1 -0
  466. package/vendor/node_modules/@agent-recorder/service/session-manager.d.ts.map +1 -0
  467. package/vendor/node_modules/@agent-recorder/service/session-manager.js +22 -0
  468. package/vendor/node_modules/@agent-recorder/service/session-manager.js 2.map +1 -0
  469. package/vendor/node_modules/@agent-recorder/service/session-manager.js.map +1 -0
  470. package/vendor/node_modules/@agent-recorder/service/session-manager.test 2.js +61 -0
  471. package/vendor/node_modules/@agent-recorder/service/session-manager.test.d 2.ts +5 -0
  472. package/vendor/node_modules/@agent-recorder/service/session-manager.test.d.ts +5 -0
  473. package/vendor/node_modules/@agent-recorder/service/session-manager.test.d.ts 2.map +1 -0
  474. package/vendor/node_modules/@agent-recorder/service/session-manager.test.d.ts.map +1 -0
  475. package/vendor/node_modules/@agent-recorder/service/session-manager.test.js +61 -0
  476. package/vendor/node_modules/@agent-recorder/service/session-manager.test.js 2.map +1 -0
  477. package/vendor/node_modules/@agent-recorder/service/session-manager.test.js.map +1 -0
@@ -0,0 +1,253 @@
1
+ /**
2
+ * Tests for session analytics pure functions.
3
+ */
4
+ import { describe, it, expect } from "vitest";
5
+ import { computeSessionSummary, formatSummaryText, formatStatsText, formatConciseSummary, } from "./session-analytics.js";
6
+ /** Create a mock event for testing */
7
+ function mockEvent(overrides = {}) {
8
+ return {
9
+ id: "test-id",
10
+ sessionId: "session-1",
11
+ parentEventId: null,
12
+ sequence: 1,
13
+ eventType: "tool_call",
14
+ agentRole: "assistant",
15
+ agentName: "claude-code",
16
+ skillName: null,
17
+ toolName: "read_file",
18
+ mcpMethod: "tools/call",
19
+ startedAt: "2024-01-01T00:00:00.000Z",
20
+ endedAt: "2024-01-01T00:00:01.000Z",
21
+ status: "success",
22
+ inputJson: "{}",
23
+ outputJson: "{}",
24
+ errorCategory: null,
25
+ createdAt: "2024-01-01T00:00:00.000Z",
26
+ ...overrides,
27
+ };
28
+ }
29
+ describe("computeSessionSummary", () => {
30
+ it("computes correct total events", () => {
31
+ const events = [
32
+ mockEvent({ sequence: 1 }),
33
+ mockEvent({ sequence: 2 }),
34
+ mockEvent({ sequence: 3 }),
35
+ ];
36
+ const summary = computeSessionSummary(events);
37
+ expect(summary.totalEvents).toBe(3);
38
+ });
39
+ it("counts events by status", () => {
40
+ const events = [
41
+ mockEvent({ sequence: 1, status: "success" }),
42
+ mockEvent({ sequence: 2, status: "success" }),
43
+ mockEvent({
44
+ sequence: 3,
45
+ status: "error",
46
+ errorCategory: "jsonrpc_error",
47
+ }),
48
+ mockEvent({
49
+ sequence: 4,
50
+ status: "timeout",
51
+ errorCategory: "downstream_timeout",
52
+ }),
53
+ ];
54
+ const summary = computeSessionSummary(events);
55
+ expect(summary.byStatus["success"]).toBe(2);
56
+ expect(summary.byStatus["error"]).toBe(1);
57
+ expect(summary.byStatus["timeout"]).toBe(1);
58
+ expect(summary.successCount).toBe(2);
59
+ expect(summary.errorCount).toBe(1);
60
+ expect(summary.timeoutCount).toBe(1);
61
+ });
62
+ it("counts events by tool name", () => {
63
+ const events = [
64
+ mockEvent({ sequence: 1, toolName: "read_file" }),
65
+ mockEvent({ sequence: 2, toolName: "write_file" }),
66
+ mockEvent({ sequence: 3, toolName: "read_file" }),
67
+ ];
68
+ const summary = computeSessionSummary(events);
69
+ expect(summary.byToolName["read_file"]).toBe(2);
70
+ expect(summary.byToolName["write_file"]).toBe(1);
71
+ });
72
+ it("computes error rate correctly", () => {
73
+ const events = [
74
+ mockEvent({ sequence: 1, status: "success" }),
75
+ mockEvent({
76
+ sequence: 2,
77
+ status: "error",
78
+ errorCategory: "jsonrpc_error",
79
+ }),
80
+ mockEvent({
81
+ sequence: 3,
82
+ status: "timeout",
83
+ errorCategory: "downstream_timeout",
84
+ }),
85
+ mockEvent({ sequence: 4, status: "success" }),
86
+ ];
87
+ const summary = computeSessionSummary(events);
88
+ expect(summary.errorRate).toBe(0.5); // 2 errors out of 4
89
+ });
90
+ it("computes average duration", () => {
91
+ const events = [
92
+ mockEvent({
93
+ sequence: 1,
94
+ startedAt: "2024-01-01T00:00:00.000Z",
95
+ endedAt: "2024-01-01T00:00:01.000Z", // 1000ms
96
+ }),
97
+ mockEvent({
98
+ sequence: 2,
99
+ startedAt: "2024-01-01T00:00:02.000Z",
100
+ endedAt: "2024-01-01T00:00:05.000Z", // 3000ms
101
+ }),
102
+ ];
103
+ const summary = computeSessionSummary(events);
104
+ expect(summary.avgDurationMs).toBe(2000);
105
+ expect(summary.totalDurationMs).toBe(4000);
106
+ });
107
+ it("handles events with no end time", () => {
108
+ const events = [
109
+ mockEvent({
110
+ sequence: 1,
111
+ status: "running",
112
+ startedAt: "2024-01-01T00:00:00.000Z",
113
+ endedAt: null,
114
+ }),
115
+ ];
116
+ const summary = computeSessionSummary(events);
117
+ expect(summary.avgDurationMs).toBeNull();
118
+ expect(summary.totalDurationMs).toBe(0);
119
+ });
120
+ it("counts error categories", () => {
121
+ const events = [
122
+ mockEvent({
123
+ sequence: 1,
124
+ status: "error",
125
+ errorCategory: "jsonrpc_error",
126
+ }),
127
+ mockEvent({
128
+ sequence: 2,
129
+ status: "timeout",
130
+ errorCategory: "downstream_timeout",
131
+ }),
132
+ mockEvent({
133
+ sequence: 3,
134
+ status: "error",
135
+ errorCategory: "jsonrpc_error",
136
+ }),
137
+ ];
138
+ const summary = computeSessionSummary(events);
139
+ expect(summary.byErrorCategory["jsonrpc_error"]).toBe(2);
140
+ expect(summary.byErrorCategory["downstream_timeout"]).toBe(1);
141
+ });
142
+ it("computes top tools sorted by count", () => {
143
+ const events = [
144
+ mockEvent({ sequence: 1, toolName: "read_file" }),
145
+ mockEvent({ sequence: 2, toolName: "read_file" }),
146
+ mockEvent({ sequence: 3, toolName: "read_file" }),
147
+ mockEvent({ sequence: 4, toolName: "write_file" }),
148
+ mockEvent({ sequence: 5, toolName: "write_file" }),
149
+ mockEvent({ sequence: 6, toolName: "bash" }),
150
+ ];
151
+ const summary = computeSessionSummary(events);
152
+ expect(summary.topTools).toHaveLength(3);
153
+ expect(summary.topTools[0]).toEqual({ name: "read_file", count: 3 });
154
+ expect(summary.topTools[1]).toEqual({ name: "write_file", count: 2 });
155
+ expect(summary.topTools[2]).toEqual({ name: "bash", count: 1 });
156
+ });
157
+ it("computes slowest calls", () => {
158
+ const events = [
159
+ mockEvent({
160
+ sequence: 1,
161
+ toolName: "fast_tool",
162
+ startedAt: "2024-01-01T00:00:00.000Z",
163
+ endedAt: "2024-01-01T00:00:00.100Z", // 100ms
164
+ }),
165
+ mockEvent({
166
+ sequence: 2,
167
+ toolName: "slow_tool",
168
+ startedAt: "2024-01-01T00:00:01.000Z",
169
+ endedAt: "2024-01-01T00:00:06.000Z", // 5000ms
170
+ }),
171
+ mockEvent({
172
+ sequence: 3,
173
+ toolName: "medium_tool",
174
+ startedAt: "2024-01-01T00:00:07.000Z",
175
+ endedAt: "2024-01-01T00:00:08.000Z", // 1000ms
176
+ }),
177
+ ];
178
+ const summary = computeSessionSummary(events);
179
+ expect(summary.slowestCalls).toHaveLength(3);
180
+ expect(summary.slowestCalls[0]).toEqual({
181
+ sequence: 2,
182
+ toolName: "slow_tool",
183
+ durationMs: 5000,
184
+ });
185
+ expect(summary.slowestCalls[1]).toEqual({
186
+ sequence: 3,
187
+ toolName: "medium_tool",
188
+ durationMs: 1000,
189
+ });
190
+ });
191
+ it("handles empty events array", () => {
192
+ const summary = computeSessionSummary([]);
193
+ expect(summary.totalEvents).toBe(0);
194
+ expect(summary.errorRate).toBe(0);
195
+ expect(summary.avgDurationMs).toBeNull();
196
+ expect(summary.topTools).toHaveLength(0);
197
+ expect(summary.slowestCalls).toHaveLength(0);
198
+ });
199
+ });
200
+ describe("formatSummaryText", () => {
201
+ it("formats summary as text", () => {
202
+ const events = [
203
+ mockEvent({ sequence: 1, toolName: "read_file", status: "success" }),
204
+ ];
205
+ const summary = computeSessionSummary(events);
206
+ const text = formatSummaryText(summary);
207
+ expect(text).toContain("Session Summary");
208
+ expect(text).toContain("Total Events: 1");
209
+ expect(text).toContain("read_file: 1");
210
+ expect(text).toContain("success: 1");
211
+ });
212
+ it("includes error categories when present", () => {
213
+ const events = [
214
+ mockEvent({
215
+ sequence: 1,
216
+ status: "error",
217
+ errorCategory: "jsonrpc_error",
218
+ }),
219
+ ];
220
+ const summary = computeSessionSummary(events);
221
+ const text = formatSummaryText(summary);
222
+ expect(text).toContain("Error Categories:");
223
+ expect(text).toContain("jsonrpc_error: 1");
224
+ });
225
+ });
226
+ describe("formatStatsText", () => {
227
+ it("formats stats output", () => {
228
+ const events = [
229
+ mockEvent({ sequence: 1, toolName: "read_file" }),
230
+ mockEvent({ sequence: 2, toolName: "read_file" }),
231
+ ];
232
+ const summary = computeSessionSummary(events);
233
+ const text = formatStatsText(summary);
234
+ expect(text).toContain("Session Statistics");
235
+ expect(text).toContain("Tool Call Counts");
236
+ expect(text).toContain("read_file");
237
+ expect(text).toContain("Summary:");
238
+ expect(text).toContain("Total Events:");
239
+ });
240
+ });
241
+ describe("formatConciseSummary", () => {
242
+ it("formats concise one-liner summary", () => {
243
+ const events = [
244
+ mockEvent({ sequence: 1, toolName: "read_file" }),
245
+ mockEvent({ sequence: 2, toolName: "write_file" }),
246
+ ];
247
+ const summary = computeSessionSummary(events);
248
+ const text = formatConciseSummary(events, summary);
249
+ expect(text).toContain("2 tool calls");
250
+ expect(text).toContain("read_file");
251
+ });
252
+ });
253
+ //# sourceMappingURL=session-analytics.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-analytics.test.js","sourceRoot":"","sources":["../../src/analytics/session-analytics.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAGhC,sCAAsC;AACtC,SAAS,SAAS,CAAC,YAAgC,EAAE;IACnD,OAAO;QACL,EAAE,EAAE,SAAS;QACb,SAAS,EAAE,WAAW;QACtB,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,CAAC;QACX,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,aAAa;QACxB,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,WAAW;QACrB,SAAS,EAAE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,0 +1 @@
1
+ {"version":3,"file":"session-analytics.test.js","sourceRoot":"","sources":["../../src/analytics/session-analytics.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAGhC,sCAAsC;AACtC,SAAS,SAAS,CAAC,YAAgC,EAAE;IACnD,OAAO;QACL,EAAE,EAAE,SAAS;QACb,SAAS,EAAE,WAAW;QACtB,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,CAAC;QACX,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,aAAa;QACxB,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,WAAW;QACrB,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,0BAA0B;QACrC,OAAO,EAAE,0BAA0B;QACnC,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,IAAI;QACnB,SAAS,EAAE,0BAA0B;QACrC,GAAG,SAAS;KACb,CAAC;AACJ,CAAC;AAED,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,MAAM,GAAG;YACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;YAC1B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;YAC1B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;SAC3B,CAAC;QAEF,MAAM,OAAO,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;QAE9C,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACtC,CAAC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,GAAG,EAAE;IACpC,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,MAAM,GAAG;YACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;YACjD,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;SACnD,CAAC;QACF,MAAM,OAAO,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;QAE9C,MAAM,IAAI,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAEnD,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACvC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,144 @@
1
+ /**
2
+ * Configure commands - manage Claude Code integration.
3
+ */
4
+ import { loadConfig } from "@agent-recorder/core";
5
+ import { detectClaudeConfig, getV2ConfigPath, getLegacyConfigPath, readJsonFile, writeJsonFileAtomic, createBackup, getMcpServerEntry, setMcpServerEntry, formatPath, } from "../config/claude-paths.js";
6
+ /**
7
+ * Configure Claude Code to use Agent Recorder.
8
+ */
9
+ export async function configureClaudeCommand(options = {}) {
10
+ const config = loadConfig();
11
+ const expectedUrl = `http://127.0.0.1:${config.mcpProxyPort}/`;
12
+ // Determine which config file to use
13
+ let configPath;
14
+ let configKind;
15
+ if (options.path) {
16
+ configPath = options.path;
17
+ configKind = "v2"; // Assume v2 format for custom paths
18
+ }
19
+ else if (options.legacy) {
20
+ configPath = getLegacyConfigPath();
21
+ configKind = "legacy";
22
+ }
23
+ else {
24
+ // Auto-detect or default to v2
25
+ const detected = detectClaudeConfig();
26
+ if (detected.kind !== "none" && detected.path) {
27
+ configPath = detected.path;
28
+ configKind = detected.kind;
29
+ }
30
+ else {
31
+ // Default to v2 if no config exists
32
+ configPath = getV2ConfigPath();
33
+ configKind = "v2";
34
+ }
35
+ }
36
+ // Read existing config or start fresh
37
+ let existingConfig = readJsonFile(configPath);
38
+ const isNewFile = existingConfig === null;
39
+ if (existingConfig === null) {
40
+ existingConfig = {};
41
+ }
42
+ // Check current state
43
+ const currentEntry = getMcpServerEntry(existingConfig);
44
+ const currentUrl = currentEntry?.url;
45
+ // Create new config with updated URL
46
+ const newConfig = setMcpServerEntry(existingConfig, expectedUrl);
47
+ // Determine what changed
48
+ const urlChanged = currentUrl !== expectedUrl;
49
+ if (options.dryRun) {
50
+ console.log("Dry run - no changes will be made\n");
51
+ console.log(`Config file: ${formatPath(configPath)} (${configKind})`);
52
+ console.log(`File exists: ${!isNewFile}`);
53
+ console.log("");
54
+ if (isNewFile) {
55
+ console.log("Would create new file with:");
56
+ }
57
+ else if (urlChanged) {
58
+ console.log("Would update:");
59
+ if (currentUrl) {
60
+ console.log(` - mcpServers.agent-recorder.url: ${currentUrl}`);
61
+ }
62
+ console.log(` + mcpServers.agent-recorder.url: ${expectedUrl}`);
63
+ }
64
+ else {
65
+ console.log("No changes needed - URL already correct.");
66
+ }
67
+ return;
68
+ }
69
+ // Create backup if file exists
70
+ let backupPath = null;
71
+ if (!isNewFile) {
72
+ backupPath = createBackup(configPath);
73
+ }
74
+ // Write the config
75
+ writeJsonFileAtomic(configPath, newConfig);
76
+ // Report results
77
+ if (isNewFile) {
78
+ console.log(`Created: ${formatPath(configPath)} (${configKind})`);
79
+ }
80
+ else {
81
+ console.log(`Found: ${formatPath(configPath)} (${configKind})`);
82
+ console.log(`Backup: ${formatPath(backupPath)}`);
83
+ }
84
+ console.log(`Set: mcpServers.agent-recorder.url = ${expectedUrl}`);
85
+ console.log("");
86
+ console.log("Restart Claude Code to apply changes.");
87
+ }
88
+ /**
89
+ * Show current Claude Code configuration status.
90
+ */
91
+ export async function configureShowCommand() {
92
+ const config = loadConfig();
93
+ const expectedUrl = `http://127.0.0.1:${config.mcpProxyPort}/`;
94
+ console.log("Claude Code Configuration");
95
+ console.log("=========================");
96
+ console.log("");
97
+ // Detect config
98
+ const detected = detectClaudeConfig();
99
+ if (detected.kind === "none") {
100
+ console.log("Config file: not found");
101
+ console.log("Checked:");
102
+ console.log(` - ${formatPath(getV2ConfigPath())} (v2)`);
103
+ console.log(` - ${formatPath(getLegacyConfigPath())} (legacy)`);
104
+ console.log("");
105
+ console.log("Run 'agent-recorder configure claude' to create config.");
106
+ return;
107
+ }
108
+ console.log(`Config file: ${formatPath(detected.path)} (${detected.kind})`);
109
+ // Read and check config
110
+ const configData = readJsonFile(detected.path);
111
+ if (configData === null) {
112
+ console.log("Status: error reading file");
113
+ return;
114
+ }
115
+ const entry = getMcpServerEntry(configData);
116
+ if (entry === null) {
117
+ console.log("MCP entry: not present");
118
+ console.log("");
119
+ console.log("Run 'agent-recorder configure claude' to add entry.");
120
+ return;
121
+ }
122
+ console.log("MCP entry: present");
123
+ if (entry.url) {
124
+ const matches = entry.url === expectedUrl;
125
+ const symbol = matches ? "\u2713" : "\u2717";
126
+ console.log(`URL: ${entry.url}`);
127
+ if (matches) {
128
+ console.log(` (${symbol} matches expected port ${config.mcpProxyPort})`);
129
+ }
130
+ else {
131
+ console.log(` (${symbol} expected ${expectedUrl})`);
132
+ console.log("");
133
+ console.log("Run 'agent-recorder configure claude' to fix URL.");
134
+ }
135
+ }
136
+ else if (entry.command) {
137
+ console.log(`Command: ${entry.command}`);
138
+ if (entry.args) {
139
+ console.log(`Args: ${entry.args.join(" ")}`);
140
+ }
141
+ console.log(" (stdio mode - not managed by agent-recorder)");
142
+ }
143
+ }
144
+ //# sourceMappingURL=configure.js.map
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Configure commands - manage Claude Code integration.
3
+ */
4
+ export interface ConfigureClaudeOptions {
5
+ path?: string;
6
+ legacy?: boolean;
7
+ dryRun?: boolean;
8
+ }
9
+ /**
10
+ * Configure Claude Code to use Agent Recorder.
11
+ */
12
+ export declare function configureClaudeCommand(options?: ConfigureClaudeOptions): Promise<void>;
13
+ /**
14
+ * Show current Claude Code configuration status.
15
+ */
16
+ export declare function configureShowCommand(): Promise<void>;
17
+ //# sourceMappingURL=configure.d.ts.map
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Configure commands - manage Claude Code integration.
3
+ */
4
+ export interface ConfigureClaudeOptions {
5
+ path?: string;
6
+ legacy?: boolean;
7
+ dryRun?: boolean;
8
+ }
9
+ /**
10
+ * Configure Claude Code to use Agent Recorder.
11
+ */
12
+ export declare function configureClaudeCommand(options?: ConfigureClaudeOptions): Promise<void>;
13
+ /**
14
+ * Show current Claude Code configuration status.
15
+ */
16
+ export declare function configureShowCommand(): Promise<void>;
17
+ //# sourceMappingURL=configure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../src/commands/configure.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,IAAI,CAAC,CAoFf;AAED;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CA8D1D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../src/commands/configure.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,IAAI,CAAC,CAoFf;AAED;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CA8D1D"}
@@ -0,0 +1,144 @@
1
+ /**
2
+ * Configure commands - manage Claude Code integration.
3
+ */
4
+ import { loadConfig } from "@agent-recorder/core";
5
+ import { detectClaudeConfig, getV2ConfigPath, getLegacyConfigPath, readJsonFile, writeJsonFileAtomic, createBackup, getMcpServerEntry, setMcpServerEntry, formatPath, } from "../config/claude-paths.js";
6
+ /**
7
+ * Configure Claude Code to use Agent Recorder.
8
+ */
9
+ export async function configureClaudeCommand(options = {}) {
10
+ const config = loadConfig();
11
+ const expectedUrl = `http://127.0.0.1:${config.mcpProxyPort}/`;
12
+ // Determine which config file to use
13
+ let configPath;
14
+ let configKind;
15
+ if (options.path) {
16
+ configPath = options.path;
17
+ configKind = "v2"; // Assume v2 format for custom paths
18
+ }
19
+ else if (options.legacy) {
20
+ configPath = getLegacyConfigPath();
21
+ configKind = "legacy";
22
+ }
23
+ else {
24
+ // Auto-detect or default to v2
25
+ const detected = detectClaudeConfig();
26
+ if (detected.kind !== "none" && detected.path) {
27
+ configPath = detected.path;
28
+ configKind = detected.kind;
29
+ }
30
+ else {
31
+ // Default to v2 if no config exists
32
+ configPath = getV2ConfigPath();
33
+ configKind = "v2";
34
+ }
35
+ }
36
+ // Read existing config or start fresh
37
+ let existingConfig = readJsonFile(configPath);
38
+ const isNewFile = existingConfig === null;
39
+ if (existingConfig === null) {
40
+ existingConfig = {};
41
+ }
42
+ // Check current state
43
+ const currentEntry = getMcpServerEntry(existingConfig);
44
+ const currentUrl = currentEntry?.url;
45
+ // Create new config with updated URL
46
+ const newConfig = setMcpServerEntry(existingConfig, expectedUrl);
47
+ // Determine what changed
48
+ const urlChanged = currentUrl !== expectedUrl;
49
+ if (options.dryRun) {
50
+ console.log("Dry run - no changes will be made\n");
51
+ console.log(`Config file: ${formatPath(configPath)} (${configKind})`);
52
+ console.log(`File exists: ${!isNewFile}`);
53
+ console.log("");
54
+ if (isNewFile) {
55
+ console.log("Would create new file with:");
56
+ }
57
+ else if (urlChanged) {
58
+ console.log("Would update:");
59
+ if (currentUrl) {
60
+ console.log(` - mcpServers.agent-recorder.url: ${currentUrl}`);
61
+ }
62
+ console.log(` + mcpServers.agent-recorder.url: ${expectedUrl}`);
63
+ }
64
+ else {
65
+ console.log("No changes needed - URL already correct.");
66
+ }
67
+ return;
68
+ }
69
+ // Create backup if file exists
70
+ let backupPath = null;
71
+ if (!isNewFile) {
72
+ backupPath = createBackup(configPath);
73
+ }
74
+ // Write the config
75
+ writeJsonFileAtomic(configPath, newConfig);
76
+ // Report results
77
+ if (isNewFile) {
78
+ console.log(`Created: ${formatPath(configPath)} (${configKind})`);
79
+ }
80
+ else {
81
+ console.log(`Found: ${formatPath(configPath)} (${configKind})`);
82
+ console.log(`Backup: ${formatPath(backupPath)}`);
83
+ }
84
+ console.log(`Set: mcpServers.agent-recorder.url = ${expectedUrl}`);
85
+ console.log("");
86
+ console.log("Restart Claude Code to apply changes.");
87
+ }
88
+ /**
89
+ * Show current Claude Code configuration status.
90
+ */
91
+ export async function configureShowCommand() {
92
+ const config = loadConfig();
93
+ const expectedUrl = `http://127.0.0.1:${config.mcpProxyPort}/`;
94
+ console.log("Claude Code Configuration");
95
+ console.log("=========================");
96
+ console.log("");
97
+ // Detect config
98
+ const detected = detectClaudeConfig();
99
+ if (detected.kind === "none") {
100
+ console.log("Config file: not found");
101
+ console.log("Checked:");
102
+ console.log(` - ${formatPath(getV2ConfigPath())} (v2)`);
103
+ console.log(` - ${formatPath(getLegacyConfigPath())} (legacy)`);
104
+ console.log("");
105
+ console.log("Run 'agent-recorder configure claude' to create config.");
106
+ return;
107
+ }
108
+ console.log(`Config file: ${formatPath(detected.path)} (${detected.kind})`);
109
+ // Read and check config
110
+ const configData = readJsonFile(detected.path);
111
+ if (configData === null) {
112
+ console.log("Status: error reading file");
113
+ return;
114
+ }
115
+ const entry = getMcpServerEntry(configData);
116
+ if (entry === null) {
117
+ console.log("MCP entry: not present");
118
+ console.log("");
119
+ console.log("Run 'agent-recorder configure claude' to add entry.");
120
+ return;
121
+ }
122
+ console.log("MCP entry: present");
123
+ if (entry.url) {
124
+ const matches = entry.url === expectedUrl;
125
+ const symbol = matches ? "\u2713" : "\u2717";
126
+ console.log(`URL: ${entry.url}`);
127
+ if (matches) {
128
+ console.log(` (${symbol} matches expected port ${config.mcpProxyPort})`);
129
+ }
130
+ else {
131
+ console.log(` (${symbol} expected ${expectedUrl})`);
132
+ console.log("");
133
+ console.log("Run 'agent-recorder configure claude' to fix URL.");
134
+ }
135
+ }
136
+ else if (entry.command) {
137
+ console.log(`Command: ${entry.command}`);
138
+ if (entry.args) {
139
+ console.log(`Args: ${entry.args.join(" ")}`);
140
+ }
141
+ console.log(" (stdio mode - not managed by agent-recorder)");
142
+ }
143
+ }
144
+ //# sourceMappingURL=configure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configure.js","sourceRoot":"","sources":["../../src/commands/configure.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,GACX,MAAM,2BAA2B,CAAC;AAQnC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,UAAkC,EAAE;IAEpC,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,MAAM,WAAW,GAAG,oBAAoB,MAAM,CAAC,YAAY,GAAG,CAAC;IAE/D,qCAAqC;IACrC,IAAI,UAAkB,CAAC;IACvB,IAAI,UAA2B,CAAC;IAEhC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACjB,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;QAC1B,UAAU,GAAG,IAAI,CAAC,CAAC,oCAAoC;IACzD,CAAC;SAAM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