spiracha 1.5.0 → 2.1.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 (401) hide show
  1. package/AGENTS.md +114 -205
  2. package/README.md +94 -269
  3. package/apps/ui/AGENTS.md +17 -7
  4. package/apps/ui/README.md +52 -8
  5. package/apps/ui/components.json +21 -0
  6. package/apps/ui/package.json +65 -0
  7. package/apps/ui/src/components/antigravity-conversations-table.tsx +245 -0
  8. package/apps/ui/src/components/antigravity-keychain-panel.tsx +76 -0
  9. package/apps/ui/src/components/antigravity-workspaces-table.tsx +63 -0
  10. package/apps/ui/src/components/app-shell.tsx +125 -0
  11. package/apps/ui/src/components/breadcrumbs.tsx +71 -0
  12. package/apps/ui/src/components/claude-code-sessions-table.tsx +150 -0
  13. package/apps/ui/src/components/claude-code-workspaces-table.tsx +57 -0
  14. package/apps/ui/src/components/cursor-threads-table.tsx +152 -0
  15. package/apps/ui/src/components/cursor-workspaces-table.tsx +140 -0
  16. package/apps/ui/src/components/data-table.tsx +243 -0
  17. package/apps/ui/src/components/delete-confirm-dialog.tsx +88 -0
  18. package/apps/ui/src/components/export-dialog.tsx +174 -0
  19. package/apps/ui/src/components/grok-sessions-table.tsx +146 -0
  20. package/apps/ui/src/components/grok-workspaces-table.tsx +53 -0
  21. package/apps/ui/src/components/json-panel.tsx +17 -0
  22. package/apps/ui/src/components/kiro-sessions-table.tsx +148 -0
  23. package/apps/ui/src/components/kiro-workspaces-table.tsx +53 -0
  24. package/apps/ui/src/components/list-search-input.tsx +18 -0
  25. package/apps/ui/src/components/loading-panel.tsx +23 -0
  26. package/apps/ui/src/components/metadata-section.tsx +31 -0
  27. package/apps/ui/src/components/metric-card.tsx +19 -0
  28. package/apps/ui/src/components/opencode-sessions-table.tsx +164 -0
  29. package/apps/ui/src/components/opencode-workspaces-table.tsx +57 -0
  30. package/apps/ui/src/components/page-header.tsx +39 -0
  31. package/apps/ui/src/components/projects-loading-state.tsx +74 -0
  32. package/apps/ui/src/components/projects-table.tsx +108 -0
  33. package/apps/ui/src/components/qoder-sessions-table.tsx +133 -0
  34. package/apps/ui/src/components/qoder-workspaces-table.tsx +57 -0
  35. package/apps/ui/src/components/recent-threads-list.tsx +52 -0
  36. package/apps/ui/src/components/reload-error-panel.tsx +20 -0
  37. package/apps/ui/src/components/selection-actions-toolbar.tsx +80 -0
  38. package/apps/ui/src/components/text-document-panel.tsx +19 -0
  39. package/apps/ui/src/components/theme-toggle.tsx +48 -0
  40. package/apps/ui/src/components/threads-table.tsx +165 -0
  41. package/apps/ui/src/components/transcript-view.tsx +648 -0
  42. package/apps/ui/src/components/ui/alert-dialog.tsx +160 -0
  43. package/apps/ui/src/components/ui/badge.tsx +45 -0
  44. package/apps/ui/src/components/ui/button.tsx +62 -0
  45. package/apps/ui/src/components/ui/checkbox.tsx +29 -0
  46. package/apps/ui/src/components/ui/dialog.tsx +137 -0
  47. package/apps/ui/src/components/ui/dropdown-menu.tsx +217 -0
  48. package/apps/ui/src/components/ui/input.tsx +21 -0
  49. package/apps/ui/src/components/ui/scroll-area.tsx +46 -0
  50. package/apps/ui/src/components/ui/select.tsx +163 -0
  51. package/apps/ui/src/components/ui/separator.tsx +28 -0
  52. package/apps/ui/src/components/ui/sheet.tsx +107 -0
  53. package/apps/ui/src/components/ui/skeleton.tsx +7 -0
  54. package/apps/ui/src/components/ui/table.tsx +76 -0
  55. package/apps/ui/src/components/ui/tabs.tsx +71 -0
  56. package/apps/ui/src/components/ui/tooltip.tsx +44 -0
  57. package/apps/ui/src/integrations/tanstack-query/devtools.tsx +6 -0
  58. package/apps/ui/src/integrations/tanstack-query/root-provider.tsx +10 -0
  59. package/apps/ui/src/lib/antigravity-conversation-state.ts +41 -0
  60. package/apps/ui/src/lib/antigravity-queries.ts +33 -0
  61. package/apps/ui/src/lib/antigravity-server.ts +273 -0
  62. package/apps/ui/src/lib/antigravity-transcript-events.ts +343 -0
  63. package/apps/ui/src/lib/claude-code-queries.ts +34 -0
  64. package/apps/ui/src/lib/claude-code-server.ts +243 -0
  65. package/apps/ui/src/lib/claude-code-transcript-events.ts +161 -0
  66. package/apps/ui/src/lib/codex-queries.ts +82 -0
  67. package/apps/ui/src/lib/codex-server.ts +291 -0
  68. package/apps/ui/src/lib/cursor-queries.ts +37 -0
  69. package/apps/ui/src/lib/cursor-server.ts +315 -0
  70. package/apps/ui/src/lib/cursor-transcript-events.ts +229 -0
  71. package/apps/ui/src/lib/download.ts +166 -0
  72. package/apps/ui/src/lib/formatters.ts +147 -0
  73. package/apps/ui/src/lib/grok-queries.ts +22 -0
  74. package/apps/ui/src/lib/grok-server.ts +169 -0
  75. package/apps/ui/src/lib/grok-transcript-events.ts +149 -0
  76. package/apps/ui/src/lib/kiro-queries.ts +22 -0
  77. package/apps/ui/src/lib/kiro-server.ts +151 -0
  78. package/apps/ui/src/lib/kiro-transcript-events.ts +113 -0
  79. package/apps/ui/src/lib/opencode-queries.ts +37 -0
  80. package/apps/ui/src/lib/opencode-server.ts +151 -0
  81. package/apps/ui/src/lib/opencode-transcript-events.ts +221 -0
  82. package/apps/ui/src/lib/package-metadata.ts +16 -0
  83. package/apps/ui/src/lib/path-utils.ts +13 -0
  84. package/apps/ui/src/lib/qoder-queries.ts +22 -0
  85. package/apps/ui/src/lib/qoder-server.ts +135 -0
  86. package/apps/ui/src/lib/qoder-transcript-events.ts +139 -0
  87. package/apps/ui/src/lib/route-search.ts +182 -0
  88. package/apps/ui/src/lib/settings-store.tsx +59 -0
  89. package/apps/ui/src/lib/source-session-export-server.ts +139 -0
  90. package/apps/ui/src/lib/text-filter.ts +22 -0
  91. package/apps/ui/src/lib/thread-id.ts +3 -0
  92. package/apps/ui/src/lib/thread-transcript-load.ts +15 -0
  93. package/apps/ui/src/lib/thread-transcript-stats.ts +57 -0
  94. package/apps/ui/src/lib/utils.ts +7 -0
  95. package/apps/ui/src/lib/workspace-delete-navigation.ts +12 -0
  96. package/apps/ui/src/routeTree.gen.ts +837 -0
  97. package/apps/ui/src/router.tsx +20 -0
  98. package/apps/ui/src/routes/$threadId.tsx +22 -0
  99. package/apps/ui/src/routes/__root.tsx +127 -0
  100. package/apps/ui/src/routes/analytics.tsx +143 -0
  101. package/apps/ui/src/routes/antigravity-conversations.$conversationId.tsx +504 -0
  102. package/apps/ui/src/routes/antigravity.$workspaceKey.tsx +365 -0
  103. package/apps/ui/src/routes/antigravity.index.tsx +51 -0
  104. package/apps/ui/src/routes/api.v1.conversation-query.ts +12 -0
  105. package/apps/ui/src/routes/api.v1.conversations.$source.$id.export.ts +12 -0
  106. package/apps/ui/src/routes/api.v1.conversations.$source.$id.ts +16 -0
  107. package/apps/ui/src/routes/api.v1.conversations.delete.ts +12 -0
  108. package/apps/ui/src/routes/api.v1.conversations.export.ts +12 -0
  109. package/apps/ui/src/routes/api.v1.conversations.ts +12 -0
  110. package/apps/ui/src/routes/api.v1.resolve.ts +12 -0
  111. package/apps/ui/src/routes/api.v1.sources.ts +12 -0
  112. package/apps/ui/src/routes/claude-code-sessions.$sessionId.tsx +468 -0
  113. package/apps/ui/src/routes/claude-code.$workspaceKey.tsx +274 -0
  114. package/apps/ui/src/routes/claude-code.index.tsx +48 -0
  115. package/apps/ui/src/routes/codex.$project.tsx +390 -0
  116. package/apps/ui/src/routes/codex.index.tsx +116 -0
  117. package/apps/ui/src/routes/cursor-threads.$composerId.tsx +435 -0
  118. package/apps/ui/src/routes/cursor.$workspaceKey.tsx +426 -0
  119. package/apps/ui/src/routes/cursor.index.tsx +120 -0
  120. package/apps/ui/src/routes/grok-sessions.$sessionId.tsx +388 -0
  121. package/apps/ui/src/routes/grok.$workspaceKey.tsx +301 -0
  122. package/apps/ui/src/routes/grok.index.tsx +48 -0
  123. package/apps/ui/src/routes/index.tsx +124 -0
  124. package/apps/ui/src/routes/kiro-sessions.$sessionId.tsx +396 -0
  125. package/apps/ui/src/routes/kiro.$workspaceKey.tsx +303 -0
  126. package/apps/ui/src/routes/kiro.index.tsx +48 -0
  127. package/apps/ui/src/routes/opencode-sessions.$sessionId.tsx +420 -0
  128. package/apps/ui/src/routes/opencode.$workspaceKey.tsx +327 -0
  129. package/apps/ui/src/routes/opencode.index.tsx +61 -0
  130. package/apps/ui/src/routes/qoder-sessions.$sessionId.tsx +344 -0
  131. package/apps/ui/src/routes/qoder.$workspaceKey.tsx +186 -0
  132. package/apps/ui/src/routes/qoder.index.tsx +48 -0
  133. package/apps/ui/src/routes/settings.tsx +91 -0
  134. package/apps/ui/src/routes/threads.$threadId.tsx +1103 -0
  135. package/apps/ui/src/styles.css +122 -0
  136. package/apps/ui/tsconfig.json +29 -0
  137. package/apps/ui/vite.config.ts +84 -0
  138. package/bin/spiracha.ts +32 -0
  139. package/package.json +54 -80
  140. package/src/client.ts +423 -0
  141. package/src/lib/antigravity-db.ts +414 -44
  142. package/src/lib/antigravity-exporter-types.ts +4 -0
  143. package/src/lib/antigravity-projects.ts +201 -0
  144. package/src/lib/claude-code-db.ts +498 -32
  145. package/src/lib/claude-code-exporter-types.ts +5 -0
  146. package/src/lib/claude-code-transcript-phase.ts +60 -1
  147. package/src/lib/claude-code-transcript.ts +8 -5
  148. package/src/lib/codex-analytics.ts +1 -1
  149. package/src/lib/codex-browser-db.ts +410 -74
  150. package/src/lib/codex-browser-export.ts +29 -41
  151. package/src/lib/codex-browser-types.ts +1 -1
  152. package/src/lib/codex-thread-cache.ts +41 -13
  153. package/src/lib/codex-thread-parser.ts +86 -35
  154. package/src/lib/{codex-exporter-types.ts → codex-thread-types.ts} +2 -30
  155. package/src/lib/codex-transcript-filter.ts +31 -0
  156. package/src/lib/{codex-exporter-transcript.ts → codex-transcript-renderer.ts} +104 -48
  157. package/src/lib/concurrency.ts +41 -0
  158. package/src/lib/conversation-api.ts +1172 -0
  159. package/src/lib/conversation-data/adapter-helpers.ts +110 -0
  160. package/src/lib/conversation-data/antigravity-adapter.ts +167 -0
  161. package/src/lib/conversation-data/claude-code-adapter.ts +206 -0
  162. package/src/lib/conversation-data/codex-adapter.ts +269 -0
  163. package/src/lib/conversation-data/cursor-adapter.ts +205 -0
  164. package/src/lib/conversation-data/grok-adapter.ts +210 -0
  165. package/src/lib/conversation-data/index.ts +386 -0
  166. package/src/lib/conversation-data/kiro-adapter.ts +174 -0
  167. package/src/lib/conversation-data/message-selector.ts +37 -0
  168. package/src/lib/conversation-data/opencode-adapter.ts +202 -0
  169. package/src/lib/conversation-data/path-match.ts +79 -0
  170. package/src/lib/conversation-data/qoder-adapter.ts +255 -0
  171. package/src/lib/conversation-data/types.ts +159 -0
  172. package/src/lib/conversation-zip-export.ts +57 -0
  173. package/src/lib/cursor-db.ts +100 -25
  174. package/src/lib/cursor-exporter-types.ts +0 -19
  175. package/src/lib/grok-db.ts +1026 -0
  176. package/src/lib/grok-exporter-types.ts +110 -0
  177. package/src/lib/grok-transcript-phase.ts +52 -0
  178. package/src/lib/grok-transcript.ts +154 -0
  179. package/src/lib/kiro-db.ts +52 -1
  180. package/src/lib/model-label.ts +11 -3
  181. package/src/lib/opencode-db.ts +598 -55
  182. package/src/lib/opencode-transcript.ts +8 -5
  183. package/src/lib/qoder-acp-client.ts +268 -0
  184. package/src/lib/qoder-db.ts +1601 -0
  185. package/src/lib/qoder-exporter-types.ts +114 -0
  186. package/src/lib/qoder-transcript-phase.ts +41 -0
  187. package/src/lib/qoder-transcript.ts +112 -0
  188. package/src/lib/shared.ts +12 -0
  189. package/src/lib/transcript-load-limiter.ts +82 -0
  190. package/src/lib/ui-cache.ts +43 -17
  191. package/src/lib/ui-export-archive.ts +60 -0
  192. package/apps/ui/dist/client/assets/_threadId-CAIeH5mq.js +0 -1
  193. package/apps/ui/dist/client/assets/analytics-DOy1b6Sh.js +0 -1
  194. package/apps/ui/dist/client/assets/antigravity-conversations._conversationId-DqySVO2K.js +0 -7
  195. package/apps/ui/dist/client/assets/antigravity-conversations._conversationId-KAcXtNxI.js +0 -1
  196. package/apps/ui/dist/client/assets/antigravity-keychain-panel-B77qJz6f.js +0 -1
  197. package/apps/ui/dist/client/assets/antigravity._workspaceKey-B3NM6gRH.js +0 -1
  198. package/apps/ui/dist/client/assets/antigravity._workspaceKey-ByitGWki.js +0 -1
  199. package/apps/ui/dist/client/assets/antigravity.index-DP9JC2P9.js +0 -1
  200. package/apps/ui/dist/client/assets/antigravity.index-DgW25FEV.js +0 -1
  201. package/apps/ui/dist/client/assets/badge-C3i4OKs8.js +0 -1
  202. package/apps/ui/dist/client/assets/checkbox-CdHitXWQ.js +0 -1
  203. package/apps/ui/dist/client/assets/claude-code-sessions._sessionId-8pQ55ci2.js +0 -1
  204. package/apps/ui/dist/client/assets/claude-code-sessions._sessionId-DVz5UmtU.js +0 -1
  205. package/apps/ui/dist/client/assets/claude-code._workspaceKey-BBKskSum.js +0 -1
  206. package/apps/ui/dist/client/assets/claude-code._workspaceKey-OkikMUFs.js +0 -1
  207. package/apps/ui/dist/client/assets/claude-code.index-Cwu76dbb.js +0 -1
  208. package/apps/ui/dist/client/assets/claude-code.index-D6eMd08t.js +0 -1
  209. package/apps/ui/dist/client/assets/createServerFn-B-KkwmHU.js +0 -3
  210. package/apps/ui/dist/client/assets/cursor-threads._composerId-CmBFclK8.js +0 -1
  211. package/apps/ui/dist/client/assets/cursor-threads._composerId-hBWlP1D-.js +0 -1
  212. package/apps/ui/dist/client/assets/cursor._workspaceKey-BFPkIRi-.js +0 -1
  213. package/apps/ui/dist/client/assets/cursor._workspaceKey-CaAZjGmm.js +0 -1
  214. package/apps/ui/dist/client/assets/cursor.index-8y4o20kb.js +0 -2
  215. package/apps/ui/dist/client/assets/cursor.index-CrnMwDCi.js +0 -1
  216. package/apps/ui/dist/client/assets/data-table-Br78_dk3.js +0 -4
  217. package/apps/ui/dist/client/assets/delete-confirm-dialog-Bxs07u-j.js +0 -7
  218. package/apps/ui/dist/client/assets/dist-B9pyYCVU.js +0 -1
  219. package/apps/ui/dist/client/assets/dist-BrJhN2A0.js +0 -5
  220. package/apps/ui/dist/client/assets/dist-Cmd3AIfD.js +0 -1
  221. package/apps/ui/dist/client/assets/dist-DvMS2965.js +0 -1
  222. package/apps/ui/dist/client/assets/download-Bf0QJKD3.js +0 -1
  223. package/apps/ui/dist/client/assets/dropdown-menu-D5cvPaZt.js +0 -1
  224. package/apps/ui/dist/client/assets/es2015-ad6040dw.js +0 -41
  225. package/apps/ui/dist/client/assets/export-dialog-Dr8d2MqD.js +0 -1
  226. package/apps/ui/dist/client/assets/formatters-BtqyrX_c.js +0 -1
  227. package/apps/ui/dist/client/assets/index-C-STgIH4.js +0 -166
  228. package/apps/ui/dist/client/assets/jsx-runtime-DGeXAQPT.js +0 -1
  229. package/apps/ui/dist/client/assets/kiro-sessions._sessionId-CKgfJ7GR.js +0 -1
  230. package/apps/ui/dist/client/assets/kiro-sessions._sessionId-zvIJHtQF.js +0 -1
  231. package/apps/ui/dist/client/assets/kiro._workspaceKey-DhVuJuZB.js +0 -1
  232. package/apps/ui/dist/client/assets/kiro._workspaceKey-QArsjkTY.js +0 -1
  233. package/apps/ui/dist/client/assets/kiro.index-C-fr4m7i.js +0 -1
  234. package/apps/ui/dist/client/assets/kiro.index-OYgAdtZd.js +0 -1
  235. package/apps/ui/dist/client/assets/metric-card-Dplm0ZiM.js +0 -1
  236. package/apps/ui/dist/client/assets/opencode-sessions._sessionId-DLjiTst-.js +0 -1
  237. package/apps/ui/dist/client/assets/opencode-sessions._sessionId-biBwrRbt.js +0 -8
  238. package/apps/ui/dist/client/assets/opencode._workspaceKey-C7OIzMOJ.js +0 -1
  239. package/apps/ui/dist/client/assets/opencode._workspaceKey-sBakX0oI.js +0 -1
  240. package/apps/ui/dist/client/assets/opencode.index-Bl_kNs9N.js +0 -1
  241. package/apps/ui/dist/client/assets/opencode.index-CN53bVmb.js +0 -1
  242. package/apps/ui/dist/client/assets/page-header-Cwa3p6Tl.js +0 -1
  243. package/apps/ui/dist/client/assets/preload-helper-B8fFrdxC.js +0 -1
  244. package/apps/ui/dist/client/assets/projects._project-D8WloxQN.js +0 -1
  245. package/apps/ui/dist/client/assets/projects._project-DSDwH4NF.js +0 -1
  246. package/apps/ui/dist/client/assets/projects.index-5xRtuJdX.js +0 -3
  247. package/apps/ui/dist/client/assets/projects.index-DEfhWqa8.js +0 -1
  248. package/apps/ui/dist/client/assets/react-dom-DL96Jor4.js +0 -1
  249. package/apps/ui/dist/client/assets/refresh-ccw-BgKjOiA6.js +0 -1
  250. package/apps/ui/dist/client/assets/reload-error-panel-AHqu0akK.js +0 -1
  251. package/apps/ui/dist/client/assets/routes-DnzF_9CX.js +0 -1
  252. package/apps/ui/dist/client/assets/scroll-text-fM0sMOB3.js +0 -1
  253. package/apps/ui/dist/client/assets/select-CYF6pF37.js +0 -1
  254. package/apps/ui/dist/client/assets/settings-Dx70jgP_.js +0 -1
  255. package/apps/ui/dist/client/assets/sqlite-error-B6uZjUe8.js +0 -1
  256. package/apps/ui/dist/client/assets/styles-B7Zi9EFA.css +0 -1
  257. package/apps/ui/dist/client/assets/tabs-CmuhkT-c.js +0 -7
  258. package/apps/ui/dist/client/assets/text-filter-DVAZySUS.js +0 -2
  259. package/apps/ui/dist/client/assets/thread-transcript-stats-BUNz6u7F.js +0 -1
  260. package/apps/ui/dist/client/assets/threads._threadId-BB9tTsV4.js +0 -1
  261. package/apps/ui/dist/client/assets/threads._threadId-BMRSFow3.js +0 -1
  262. package/apps/ui/dist/client/assets/useMutation-BSFult2i.js +0 -1
  263. package/apps/ui/dist/client/assets/useQuery-CjINKZf1.js +0 -1
  264. package/apps/ui/dist/server/assets/_tanstack-start-manifest_v-CQ8Jjs3B.js +0 -387
  265. package/apps/ui/dist/server/assets/_threadId-B6SrBR9E.js +0 -6
  266. package/apps/ui/dist/server/assets/analytics-CYP_LT5Y.js +0 -16
  267. package/apps/ui/dist/server/assets/analytics-CtpOMVMO.js +0 -146
  268. package/apps/ui/dist/server/assets/antigravity-conversation-state-HgzS302O.js +0 -16
  269. package/apps/ui/dist/server/assets/antigravity-conversations._conversationId-BKOyL2T6.js +0 -613
  270. package/apps/ui/dist/server/assets/antigravity-conversations._conversationId-D426O-64.js +0 -11
  271. package/apps/ui/dist/server/assets/antigravity-conversations._conversationId-eS87Dx7g.js +0 -20
  272. package/apps/ui/dist/server/assets/antigravity-db-Bh8_U9uw.js +0 -580
  273. package/apps/ui/dist/server/assets/antigravity-keychain-DOiuHDwK.js +0 -126
  274. package/apps/ui/dist/server/assets/antigravity-keychain-panel-CC7FLmAK.js +0 -55
  275. package/apps/ui/dist/server/assets/antigravity-queries-CGrJO9Vr.js +0 -37
  276. package/apps/ui/dist/server/assets/antigravity-server-CHRjVFqN.js +0 -114
  277. package/apps/ui/dist/server/assets/antigravity._workspaceKey-3m_MzNFA.js +0 -11
  278. package/apps/ui/dist/server/assets/antigravity._workspaceKey-B0QeYUOh.js +0 -28
  279. package/apps/ui/dist/server/assets/antigravity._workspaceKey-C3kP-qyN.js +0 -210
  280. package/apps/ui/dist/server/assets/antigravity.index-CPCYkqCi.js +0 -104
  281. package/apps/ui/dist/server/assets/antigravity.index-DudTB3Tq.js +0 -11
  282. package/apps/ui/dist/server/assets/badge-EvdhKK_Z.js +0 -26
  283. package/apps/ui/dist/server/assets/button-CmTDnzOn.js +0 -46
  284. package/apps/ui/dist/server/assets/checkbox-C0hovF41.js +0 -19
  285. package/apps/ui/dist/server/assets/claude-code-db-Ik3VStKZ.js +0 -361
  286. package/apps/ui/dist/server/assets/claude-code-queries-Cgzi4K-e.js +0 -37
  287. package/apps/ui/dist/server/assets/claude-code-server-PfraClXS.js +0 -72
  288. package/apps/ui/dist/server/assets/claude-code-sessions._sessionId-C55oe6zj.js +0 -18
  289. package/apps/ui/dist/server/assets/claude-code-sessions._sessionId-D1RYYi3j.js +0 -473
  290. package/apps/ui/dist/server/assets/claude-code-sessions._sessionId-DSvPLEUL.js +0 -11
  291. package/apps/ui/dist/server/assets/claude-code-transcript-C-bxh3cS.js +0 -139
  292. package/apps/ui/dist/server/assets/claude-code-transcript-phase-DmUMc8VU.js +0 -10
  293. package/apps/ui/dist/server/assets/claude-code._workspaceKey-B5Xg_-tE.js +0 -28
  294. package/apps/ui/dist/server/assets/claude-code._workspaceKey-BPlzyXPa.js +0 -11
  295. package/apps/ui/dist/server/assets/claude-code._workspaceKey-DqDve2wl.js +0 -191
  296. package/apps/ui/dist/server/assets/claude-code.index-B7yYR7dD.js +0 -92
  297. package/apps/ui/dist/server/assets/claude-code.index-BUHThG1W.js +0 -11
  298. package/apps/ui/dist/server/assets/codex-queries-CtgeZ7VL.js +0 -99
  299. package/apps/ui/dist/server/assets/codex-server-CGXU4H8-.js +0 -2294
  300. package/apps/ui/dist/server/assets/concurrency-VXtYvlGh.js +0 -18
  301. package/apps/ui/dist/server/assets/createServerRpc-CF_DEwnm.js +0 -12
  302. package/apps/ui/dist/server/assets/createSsrRpc-C754NPki.js +0 -16
  303. package/apps/ui/dist/server/assets/cursor-db-CZnYy7aT.js +0 -830
  304. package/apps/ui/dist/server/assets/cursor-exporter-types-CI3goo-c.js +0 -34
  305. package/apps/ui/dist/server/assets/cursor-queries-NCIM0Nat.js +0 -67
  306. package/apps/ui/dist/server/assets/cursor-recovery-CXpO8KcD.js +0 -361
  307. package/apps/ui/dist/server/assets/cursor-server-DNu52A3K.js +0 -213
  308. package/apps/ui/dist/server/assets/cursor-threads._composerId-BB0Y_Mao.js +0 -11
  309. package/apps/ui/dist/server/assets/cursor-threads._composerId-Ckn6ItHI.js +0 -582
  310. package/apps/ui/dist/server/assets/cursor-threads._composerId-p9-ARAzc.js +0 -18
  311. package/apps/ui/dist/server/assets/cursor-transcript-B7tGnqtn.js +0 -125
  312. package/apps/ui/dist/server/assets/cursor._workspaceKey-CZuohIUL.js +0 -28
  313. package/apps/ui/dist/server/assets/cursor._workspaceKey-DPp5JSjy.js +0 -401
  314. package/apps/ui/dist/server/assets/cursor._workspaceKey-nmg3YIOQ.js +0 -11
  315. package/apps/ui/dist/server/assets/cursor.index-CcsX7DG0.js +0 -11
  316. package/apps/ui/dist/server/assets/cursor.index-DkWT-mxw.js +0 -189
  317. package/apps/ui/dist/server/assets/data-table-Cdct823O.js +0 -189
  318. package/apps/ui/dist/server/assets/delete-confirm-dialog-BcBNCxWB.js +0 -144
  319. package/apps/ui/dist/server/assets/download-DMmiy1xf.js +0 -92
  320. package/apps/ui/dist/server/assets/dropdown-menu-Dy_9t6TN.js +0 -36
  321. package/apps/ui/dist/server/assets/empty-plugin-adapters-B3lHh1La.js +0 -5
  322. package/apps/ui/dist/server/assets/export-dialog-D88ze9Gy.js +0 -240
  323. package/apps/ui/dist/server/assets/formatters-FJaGZgJk.js +0 -91
  324. package/apps/ui/dist/server/assets/kiro-db--fXrED_-.js +0 -552
  325. package/apps/ui/dist/server/assets/kiro-queries-CzNlM2ok.js +0 -37
  326. package/apps/ui/dist/server/assets/kiro-server-9WRxg2Au.js +0 -72
  327. package/apps/ui/dist/server/assets/kiro-sessions._sessionId-CRY2c7YO.js +0 -11
  328. package/apps/ui/dist/server/assets/kiro-sessions._sessionId-F1UlwxmR.js +0 -449
  329. package/apps/ui/dist/server/assets/kiro-sessions._sessionId-bvTulT7C.js +0 -18
  330. package/apps/ui/dist/server/assets/kiro-transcript-DoekQBaH.js +0 -112
  331. package/apps/ui/dist/server/assets/kiro-transcript-phase-CJG40nQg.js +0 -27
  332. package/apps/ui/dist/server/assets/kiro._workspaceKey-BDe9sQwo.js +0 -11
  333. package/apps/ui/dist/server/assets/kiro._workspaceKey-CJsjgNwO.js +0 -28
  334. package/apps/ui/dist/server/assets/kiro._workspaceKey-D_-4Qb7y.js +0 -193
  335. package/apps/ui/dist/server/assets/kiro.index-C__-UROk.js +0 -11
  336. package/apps/ui/dist/server/assets/kiro.index-CmTbqeYj.js +0 -93
  337. package/apps/ui/dist/server/assets/loading-panel-BGFnWseS.js +0 -27
  338. package/apps/ui/dist/server/assets/metric-card-ByEeLu0r.js +0 -23
  339. package/apps/ui/dist/server/assets/model-label-B1NWGc65.js +0 -13
  340. package/apps/ui/dist/server/assets/opencode-db-BM7KjOzc.js +0 -397
  341. package/apps/ui/dist/server/assets/opencode-queries-BeNYXnQv.js +0 -50
  342. package/apps/ui/dist/server/assets/opencode-server-BpQ_kRze.js +0 -72
  343. package/apps/ui/dist/server/assets/opencode-sessions._sessionId-CGQ-t0vD.js +0 -518
  344. package/apps/ui/dist/server/assets/opencode-sessions._sessionId-D8Q7in_Z.js +0 -18
  345. package/apps/ui/dist/server/assets/opencode-sessions._sessionId-DKOvi0lV.js +0 -11
  346. package/apps/ui/dist/server/assets/opencode-think-tags-CAoD-EcZ.js +0 -87
  347. package/apps/ui/dist/server/assets/opencode-transcript-BNTcGNym.js +0 -141
  348. package/apps/ui/dist/server/assets/opencode-transcript-phase-OqLkiQD0.js +0 -32
  349. package/apps/ui/dist/server/assets/opencode._workspaceKey-BdqcWHw1.js +0 -11
  350. package/apps/ui/dist/server/assets/opencode._workspaceKey-CfH96HTT.js +0 -28
  351. package/apps/ui/dist/server/assets/opencode._workspaceKey-DdbHPDrO.js +0 -207
  352. package/apps/ui/dist/server/assets/opencode.index-BbVzkJXP.js +0 -11
  353. package/apps/ui/dist/server/assets/opencode.index-Vh_Gq_1L.js +0 -93
  354. package/apps/ui/dist/server/assets/page-header-VNSaM3xd.js +0 -29
  355. package/apps/ui/dist/server/assets/path-transforms-DL2IwtYd.js +0 -31
  356. package/apps/ui/dist/server/assets/projects._project-4io5LO0E.js +0 -20
  357. package/apps/ui/dist/server/assets/projects._project-Bshqk7JA.js +0 -12
  358. package/apps/ui/dist/server/assets/projects._project-D6ZoGhJ8.js +0 -395
  359. package/apps/ui/dist/server/assets/projects.index-BLXOx5eL.js +0 -12
  360. package/apps/ui/dist/server/assets/projects.index-BkLiF2FF.js +0 -182
  361. package/apps/ui/dist/server/assets/projects.index-DesYXwfi.js +0 -14
  362. package/apps/ui/dist/server/assets/reload-error-panel-BJMxY3U1.js +0 -25
  363. package/apps/ui/dist/server/assets/route-search-ts4W9MJ9.js +0 -38
  364. package/apps/ui/dist/server/assets/router-Sac2DGk6.js +0 -518
  365. package/apps/ui/dist/server/assets/routes-Bsact1uB.js +0 -184
  366. package/apps/ui/dist/server/assets/routes-BzkJgq4W.js +0 -34
  367. package/apps/ui/dist/server/assets/select-GW76p-ld.js +0 -76
  368. package/apps/ui/dist/server/assets/settings-OayxIYQQ.js +0 -100
  369. package/apps/ui/dist/server/assets/settings-store-DpEJEQ7M.js +0 -52
  370. package/apps/ui/dist/server/assets/shared-DyhChtHf.js +0 -137
  371. package/apps/ui/dist/server/assets/source-session-export-server-DNutCawb.js +0 -38
  372. package/apps/ui/dist/server/assets/sqlite-error-LZDrnxdd.js +0 -13
  373. package/apps/ui/dist/server/assets/start-B_HFwkkk.js +0 -4
  374. package/apps/ui/dist/server/assets/tabs-DkaChNVg.js +0 -501
  375. package/apps/ui/dist/server/assets/text-filter-CGKxMCKt.js +0 -36
  376. package/apps/ui/dist/server/assets/thread-transcript-stats-Dh34mt2u.js +0 -45
  377. package/apps/ui/dist/server/assets/threads._threadId-BSSK4nkI.js +0 -26
  378. package/apps/ui/dist/server/assets/threads._threadId-BeXEc4Lo.js +0 -648
  379. package/apps/ui/dist/server/assets/threads._threadId-Ci0S4mKU.js +0 -18
  380. package/apps/ui/dist/server/assets/ui-export-files-BHLX9bhN.js +0 -83
  381. package/apps/ui/dist/server/assets/utils-C_uf36nf.js +0 -8
  382. package/apps/ui/dist/server/server.js +0 -5895
  383. package/bin/codex-chats-claude.js +0 -5
  384. package/bin/codex-chats.js +0 -5
  385. package/bin/spiracha.js +0 -5
  386. package/src/export-chats.ts +0 -120
  387. package/src/export-claude.ts +0 -36
  388. package/src/export-cursor.ts +0 -244
  389. package/src/lib/claude-exporter.ts +0 -864
  390. package/src/lib/codex-exporter-cli.ts +0 -277
  391. package/src/lib/codex-exporter-db.ts +0 -319
  392. package/src/lib/codex-exporter.ts +0 -115
  393. package/src/lib/cursor-exporter.ts +0 -266
  394. package/src/lib/interactive-cli.ts +0 -433
  395. package/src/lib/native-open.ts +0 -54
  396. package/src/mcp-server.ts +0 -137
  397. package/src/spiracha.ts +0 -116
  398. package/src/ui-cli.ts +0 -310
  399. /package/apps/ui/{dist/client → public}/icon.svg +0 -0
  400. /package/apps/ui/{dist/client → public}/manifest.json +0 -0
  401. /package/apps/ui/{dist/client → public}/robots.txt +0 -0
@@ -1,141 +0,0 @@
1
- import { a as cleanExtractedText, g as renderSection, h as renderMetadataBlock, l as formatInlineLiteral, m as renderDocumentTitle, o as cleanInlineTitle, p as renderCodeBlock } from "./shared-DyhChtHf.js";
2
- import { t as splitOpenCodeThinkTaggedText } from "./opencode-think-tags-CAoD-EcZ.js";
3
- import { n as getOpenCodeTextPartPhase, t as getFinalOpenCodeAssistantTextPartIds } from "./opencode-transcript-phase-OqLkiQD0.js";
4
- //#region ../../src/lib/opencode-transcript.ts
5
- var TOOL_OUTPUT_PREVIEW_LIMIT = 4e3;
6
- var MIN_DATE_MS = -864e13;
7
- var MAX_DATE_MS = 864e13;
8
- var formatUnixMillis = (value) => {
9
- if (value === null || value === void 0 || !Number.isFinite(value) || value < MIN_DATE_MS || value > MAX_DATE_MS) return null;
10
- return new Date(value).toISOString();
11
- };
12
- var getSessionTitle = (session) => {
13
- return cleanInlineTitle(session.title || session.sessionId);
14
- };
15
- var buildMetadataEntries = (session) => [
16
- {
17
- key: "exported_from",
18
- value: "opencode_sqlite"
19
- },
20
- {
21
- key: "session_id",
22
- value: session.sessionId
23
- },
24
- {
25
- key: "title",
26
- value: session.title
27
- },
28
- {
29
- key: "slug",
30
- value: session.slug
31
- },
32
- {
33
- key: "project_id",
34
- value: session.projectId
35
- },
36
- {
37
- key: "worktree",
38
- value: session.worktree
39
- },
40
- {
41
- key: "directory",
42
- value: session.directory
43
- },
44
- {
45
- key: "agent",
46
- value: session.agent
47
- },
48
- {
49
- key: "model",
50
- value: session.modelLabel
51
- },
52
- {
53
- key: "created_at_unix_ms",
54
- value: session.createdAtMs
55
- },
56
- {
57
- key: "created_at_iso",
58
- value: formatUnixMillis(session.createdAtMs)
59
- },
60
- {
61
- key: "last_updated_at_unix_ms",
62
- value: session.lastUpdatedAtMs
63
- },
64
- {
65
- key: "last_updated_at_iso",
66
- value: formatUnixMillis(session.lastUpdatedAtMs)
67
- },
68
- {
69
- key: "message_count",
70
- value: session.messageCount
71
- },
72
- {
73
- key: "part_count",
74
- value: session.partCount
75
- },
76
- {
77
- key: "total_tokens",
78
- value: session.totalTokens
79
- },
80
- {
81
- key: "cost",
82
- value: session.cost
83
- }
84
- ];
85
- var roleTitle = (role) => {
86
- if (role === "assistant") return "Assistant";
87
- if (role === "user") return "User";
88
- if (role === "system") return "System";
89
- return role ? cleanInlineTitle(role) : "Message";
90
- };
91
- var truncateOutput = (text) => {
92
- if (text.length <= TOOL_OUTPUT_PREVIEW_LIMIT) return text;
93
- return `${text.slice(0, TOOL_OUTPUT_PREVIEW_LIMIT)}\n... (truncated)`;
94
- };
95
- var renderTextPart = (part, options, finalAssistantTextPartIds) => {
96
- const { reasoningBlocks, visibleText } = part.role === "assistant" ? splitOpenCodeThinkTaggedText(part.text ?? "") : {
97
- reasoningBlocks: [],
98
- visibleText: part.text ?? ""
99
- };
100
- const sections = [];
101
- if (options.includeCommentary) sections.push(...reasoningBlocks.map((block) => cleanExtractedText(block).trim()).filter(Boolean).map((block) => renderSection("Reasoning", block, options.outputFormat)));
102
- const text = cleanExtractedText(visibleText).trim();
103
- if (text && (getOpenCodeTextPartPhase(part, finalAssistantTextPartIds) !== "commentary" || options.includeCommentary)) sections.push(renderSection(roleTitle(part.role), text, options.outputFormat));
104
- return sections.join("\n\n");
105
- };
106
- var renderReasoningPart = (part, options) => {
107
- if (!options.includeCommentary) return "";
108
- const { reasoningBlocks, visibleText } = splitOpenCodeThinkTaggedText(part.text ?? "");
109
- const text = cleanExtractedText([...reasoningBlocks, visibleText].filter(Boolean).join("\n\n")).trim();
110
- return text ? renderSection("Reasoning", text, options.outputFormat) : "";
111
- };
112
- var renderToolPart = (part, options) => {
113
- if (!options.includeTools) return "";
114
- const lines = [`Tool: ${formatInlineLiteral(part.toolName ?? "unknown", options.outputFormat)}`];
115
- if (part.status) lines.push(`Status: ${part.status}`);
116
- if (part.callId) lines.push(`Call ID: ${part.callId}`);
117
- if (part.title) lines.push(`Title: ${part.title}`);
118
- if (part.argumentsText?.trim()) lines.push("", "Input:", "", renderCodeBlock(part.argumentsText.trim(), options.outputFormat));
119
- if (part.outputText?.trim()) lines.push("", "Output:", "", renderCodeBlock(truncateOutput(part.outputText.trim()), options.outputFormat));
120
- return renderSection("Tool Call", lines.join("\n"), options.outputFormat);
121
- };
122
- var renderPart = (part, options, finalAssistantTextPartIds) => {
123
- if (part.type === "text") return renderTextPart(part, options, finalAssistantTextPartIds);
124
- if (part.type === "reasoning") return renderReasoningPart(part, options);
125
- if (part.type === "tool") return renderToolPart(part, options);
126
- return "";
127
- };
128
- var renderOpenCodeTranscript = (transcript, options) => {
129
- const partsList = transcript.messages.flatMap((message) => message.parts);
130
- const finalAssistantTextPartIds = getFinalOpenCodeAssistantTextPartIds(partsList);
131
- const sections = partsList.map((part) => renderPart(part, options, finalAssistantTextPartIds)).filter(Boolean);
132
- if (sections.length === 0) return null;
133
- return `${[
134
- renderDocumentTitle(getSessionTitle(transcript.session), options.outputFormat),
135
- "",
136
- options.includeMetadata ? renderMetadataBlock(buildMetadataEntries(transcript.session), options.outputFormat) : "",
137
- ...sections
138
- ].filter(Boolean).join("\n").trimEnd()}\n`;
139
- };
140
- //#endregion
141
- export { renderOpenCodeTranscript };
@@ -1,32 +0,0 @@
1
- import { t as splitOpenCodeThinkTaggedText } from "./opencode-think-tags-CAoD-EcZ.js";
2
- //#region ../../src/lib/opencode-transcript-phase.ts
3
- var getFinalOpenCodeAssistantTextPartIds = (parts) => {
4
- const finalPartIds = /* @__PURE__ */ new Set();
5
- let latestAssistantTextPartId = null;
6
- const flushAssistantRun = () => {
7
- if (latestAssistantTextPartId) {
8
- finalPartIds.add(latestAssistantTextPartId);
9
- latestAssistantTextPartId = null;
10
- }
11
- };
12
- for (const part of parts) {
13
- if (part.role === "user") {
14
- flushAssistantRun();
15
- continue;
16
- }
17
- if (part.role !== "assistant") continue;
18
- if (part.type === "tool") {
19
- latestAssistantTextPartId = null;
20
- continue;
21
- }
22
- if (part.type === "text" && splitOpenCodeThinkTaggedText(part.text ?? "").visibleText.trim()) latestAssistantTextPartId = part.partId;
23
- }
24
- flushAssistantRun();
25
- return finalPartIds;
26
- };
27
- var getOpenCodeTextPartPhase = (part, finalAssistantTextPartIds) => {
28
- if (part.role !== "assistant") return null;
29
- return finalAssistantTextPartIds.has(part.partId) ? "final_answer" : "commentary";
30
- };
31
- //#endregion
32
- export { getOpenCodeTextPartPhase as n, getFinalOpenCodeAssistantTextPartIds as t };
@@ -1,11 +0,0 @@
1
- import { t as ReloadErrorPanel } from "./reload-error-panel-BJMxY3U1.js";
2
- import { jsx } from "react/jsx-runtime";
3
- //#region src/routes/opencode.$workspaceKey.tsx?tsr-split=errorComponent
4
- function OpenCodeWorkspaceErrorComponent({ error }) {
5
- return /* @__PURE__ */ jsx(ReloadErrorPanel, {
6
- description: error.message,
7
- title: "Failed to load OpenCode workspace"
8
- });
9
- }
10
- //#endregion
11
- export { OpenCodeWorkspaceErrorComponent as errorComponent };
@@ -1,28 +0,0 @@
1
- import { n as openCodeSessionsQueryOptions, r as openCodeWorkspacesQueryOptions } from "./opencode-queries-BeNYXnQv.js";
2
- import { t as LoadingPanel } from "./loading-panel-BGFnWseS.js";
3
- import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
- import { jsx } from "react/jsx-runtime";
5
- //#region src/routes/opencode.$workspaceKey.tsx?tsr-shared=1
6
- var findWorkspaceOrThrow = (workspaces, workspaceKey) => {
7
- const workspace = workspaces.find((candidate) => candidate.key === workspaceKey);
8
- if (!workspace) throw new Error(`OpenCode workspace not found: ${workspaceKey}`);
9
- return workspace;
10
- };
11
- //#endregion
12
- //#region src/routes/opencode.$workspaceKey.tsx
13
- var $$splitErrorComponentImporter = () => import("./opencode._workspaceKey-BdqcWHw1.js");
14
- var $$splitComponentImporter = () => import("./opencode._workspaceKey-DdbHPDrO.js");
15
- var Route = createFileRoute("/opencode/$workspaceKey")({
16
- component: lazyRouteComponent($$splitComponentImporter, "component"),
17
- errorComponent: lazyRouteComponent($$splitErrorComponentImporter, "errorComponent"),
18
- loader: async ({ context, params }) => {
19
- findWorkspaceOrThrow(await context.queryClient.ensureQueryData(openCodeWorkspacesQueryOptions()), params.workspaceKey);
20
- await context.queryClient.ensureQueryData(openCodeSessionsQueryOptions(params.workspaceKey));
21
- },
22
- pendingComponent: () => /* @__PURE__ */ jsx(LoadingPanel, {
23
- description: "Loading OpenCode sessions and transcript metadata.",
24
- title: "Loading workspace"
25
- })
26
- });
27
- //#endregion
28
- export { findWorkspaceOrThrow as n, Route as t };
@@ -1,207 +0,0 @@
1
- import { t as Button } from "./button-CmTDnzOn.js";
2
- import { i as exportOpenCodeSessionFn, n as openCodeSessionsQueryOptions, r as openCodeWorkspacesQueryOptions } from "./opencode-queries-BeNYXnQv.js";
3
- import { n as findWorkspaceOrThrow, t as Route } from "./opencode._workspaceKey-CfH96HTT.js";
4
- import { t as DataTable } from "./data-table-Cdct823O.js";
5
- import { t as PageHeader } from "./page-header-VNSaM3xd.js";
6
- import { o as formatNumber, r as formatDateTime, s as formatTokens } from "./formatters-FJaGZgJk.js";
7
- import { t as Badge } from "./badge-EvdhKK_Z.js";
8
- import { n as downloadUrlFile, t as downloadTextFile } from "./download-DMmiy1xf.js";
9
- import { i as DropdownMenuTrigger, n as DropdownMenuContent, r as DropdownMenuItem, t as DropdownMenu } from "./dropdown-menu-Dy_9t6TN.js";
10
- import { n as ListSearchInput, t as matchesTextQuery } from "./text-filter-CGKxMCKt.js";
11
- import { t as ExportDialog } from "./export-dialog-D88ze9Gy.js";
12
- import { useDeferredValue, useMemo, useState } from "react";
13
- import { Link } from "@tanstack/react-router";
14
- import { jsx, jsxs } from "react/jsx-runtime";
15
- import { useMutation, useSuspenseQuery } from "@tanstack/react-query";
16
- import { Download, MoreHorizontal } from "lucide-react";
17
- import { createColumnHelper } from "@tanstack/react-table";
18
- //#region src/components/opencode-sessions-table.tsx
19
- var columnHelper = createColumnHelper();
20
- var defaultSorting = [{
21
- desc: true,
22
- id: "updatedAt"
23
- }];
24
- var formatCost = (value) => {
25
- if (value <= 0) return "$0";
26
- return `$${value.toFixed(value < .01 ? 4 : 2)}`;
27
- };
28
- var columns = (onExportSession) => [
29
- columnHelper.accessor("title", {
30
- cell: (info) => /* @__PURE__ */ jsxs(Link, {
31
- className: "block w-[16rem] max-w-[22rem] space-y-1 rounded-md outline-none transition hover:opacity-80 focus-visible:ring-2 focus-visible:ring-[var(--accent)] lg:w-auto",
32
- params: { sessionId: info.row.original.sessionId },
33
- to: "/opencode-sessions/$sessionId",
34
- children: [/* @__PURE__ */ jsxs("div", {
35
- className: "flex items-center gap-2",
36
- children: [/* @__PURE__ */ jsx("p", {
37
- className: "truncate font-medium underline-offset-2 hover:underline",
38
- children: info.getValue()
39
- }), info.row.original.archivedAtMs ? /* @__PURE__ */ jsx(Badge, {
40
- variant: "outline",
41
- children: "archived"
42
- }) : null]
43
- }), /* @__PURE__ */ jsxs("p", {
44
- className: "truncate text-[var(--muted-foreground)] text-xs",
45
- children: [
46
- info.row.original.slug,
47
- " · ",
48
- info.row.original.sessionId
49
- ]
50
- })]
51
- }),
52
- header: "Session"
53
- }),
54
- columnHelper.accessor("lastUpdatedAtMs", {
55
- cell: (info) => /* @__PURE__ */ jsx("span", {
56
- className: "whitespace-nowrap text-sm",
57
- suppressHydrationWarning: true,
58
- children: formatDateTime(info.getValue())
59
- }),
60
- header: "Updated",
61
- id: "updatedAt"
62
- }),
63
- columnHelper.accessor("agent", {
64
- cell: (info) => /* @__PURE__ */ jsx("span", {
65
- className: "font-mono text-sm",
66
- children: info.getValue() ?? "unknown"
67
- }),
68
- header: "Agent"
69
- }),
70
- columnHelper.accessor("modelLabel", {
71
- cell: (info) => /* @__PURE__ */ jsx("span", {
72
- className: "text-sm",
73
- children: info.getValue() ?? "unknown"
74
- }),
75
- header: "Model"
76
- }),
77
- columnHelper.accessor("messageCount", {
78
- cell: (info) => /* @__PURE__ */ jsx("span", {
79
- className: "font-mono text-sm",
80
- children: formatNumber(info.getValue())
81
- }),
82
- header: "Messages"
83
- }),
84
- columnHelper.accessor("totalTokens", {
85
- cell: (info) => /* @__PURE__ */ jsx("span", {
86
- className: "whitespace-nowrap font-mono text-sm",
87
- children: formatTokens(info.getValue())
88
- }),
89
- header: "Tokens"
90
- }),
91
- columnHelper.accessor("cost", {
92
- cell: (info) => /* @__PURE__ */ jsx("span", {
93
- className: "font-mono text-sm",
94
- children: formatCost(info.getValue())
95
- }),
96
- header: "Cost"
97
- }),
98
- columnHelper.display({
99
- cell: (info) => /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
100
- asChild: true,
101
- children: /* @__PURE__ */ jsx(Button, {
102
- "aria-label": `Actions for ${info.row.original.title}`,
103
- className: "rounded-full",
104
- size: "icon",
105
- type: "button",
106
- variant: "ghost",
107
- onClick: (event) => event.stopPropagation(),
108
- children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" })
109
- })
110
- }), /* @__PURE__ */ jsx(DropdownMenuContent, {
111
- align: "end",
112
- children: /* @__PURE__ */ jsxs(DropdownMenuItem, {
113
- disabled: info.row.original.renderablePartCount === 0,
114
- onClick: () => onExportSession(info.row.original),
115
- children: [/* @__PURE__ */ jsx(Download, { className: "mr-2 size-4" }), "Export session"]
116
- })
117
- })] }),
118
- enableSorting: false,
119
- header: "",
120
- id: "actions"
121
- })
122
- ];
123
- var OpenCodeSessionsTable = ({ onExportSession, sessions }) => {
124
- return /* @__PURE__ */ jsx(DataTable, {
125
- columns: useMemo(() => columns(onExportSession), [onExportSession]),
126
- data: sessions,
127
- emptyMessage: "No OpenCode sessions match the current workspace filter.",
128
- initialSorting: defaultSorting
129
- });
130
- };
131
- //#endregion
132
- //#region src/routes/opencode.$workspaceKey.tsx?tsr-split=component
133
- function OpenCodeWorkspacePage() {
134
- const params = Route.useParams();
135
- const workspaces = useSuspenseQuery(openCodeWorkspacesQueryOptions()).data;
136
- const workspace = findWorkspaceOrThrow(workspaces, params.workspaceKey);
137
- const sessions = useSuspenseQuery(openCodeSessionsQueryOptions(workspace.key)).data;
138
- const [searchInput, setSearchInput] = useState("");
139
- const [pendingExport, setPendingExport] = useState(null);
140
- const deferredSearch = useDeferredValue(searchInput);
141
- const exportMutation = useMutation({
142
- mutationFn: async (options) => {
143
- if (!pendingExport) throw new Error("No OpenCode session selected for export");
144
- const download = await exportOpenCodeSessionFn({ data: {
145
- includeCommentary: options.includeCommentary,
146
- includeMetadata: options.includeMetadata,
147
- includeTools: options.includeTools,
148
- outputFormat: options.outputFormat,
149
- sessionId: pendingExport.sessionId,
150
- zipArchive: options.zipArchive
151
- } });
152
- if (download.mode === "download") {
153
- downloadTextFile(download.fileName, download.content, download.mimeType);
154
- return;
155
- }
156
- await downloadUrlFile(download.fileName, download.downloadUrl);
157
- },
158
- onSuccess: () => {
159
- setPendingExport(null);
160
- }
161
- });
162
- const visibleSessions = sessions.filter((session) => matchesTextQuery(deferredSearch, [
163
- session.title,
164
- session.sessionId,
165
- session.slug,
166
- session.agent,
167
- session.modelLabel,
168
- session.directory
169
- ]));
170
- return /* @__PURE__ */ jsxs("div", {
171
- className: "space-y-6",
172
- children: [
173
- /* @__PURE__ */ jsx(PageHeader, {
174
- actions: /* @__PURE__ */ jsx(ListSearchInput, {
175
- placeholder: "Search session title, id, model, or agent",
176
- value: searchInput,
177
- onValueChange: setSearchInput
178
- }),
179
- eyebrow: "OpenCode workspace",
180
- subtitle: "Inspect local OpenCode sessions, transcript parts, tool calls, reasoning, token totals, and exportable conversation text.",
181
- title: workspace.label
182
- }),
183
- /* @__PURE__ */ jsx(OpenCodeSessionsTable, {
184
- sessions: visibleSessions,
185
- onExportSession: setPendingExport
186
- }),
187
- /* @__PURE__ */ jsx(ExportDialog, {
188
- open: pendingExport !== null,
189
- pending: exportMutation.isPending,
190
- title: pendingExport ? `Export ${pendingExport.title}` : "Export session",
191
- onExport: (options) => exportMutation.mutate(options),
192
- onOpenChange: (open) => {
193
- if (!open) {
194
- setPendingExport(null);
195
- exportMutation.reset();
196
- }
197
- }
198
- }),
199
- exportMutation.isError ? /* @__PURE__ */ jsx("p", {
200
- className: "text-[var(--destructive)] text-sm",
201
- children: exportMutation.error instanceof Error ? exportMutation.error.message : "Session export failed"
202
- }) : null
203
- ]
204
- });
205
- }
206
- //#endregion
207
- export { OpenCodeWorkspacePage as component };
@@ -1,11 +0,0 @@
1
- import { t as ReloadErrorPanel } from "./reload-error-panel-BJMxY3U1.js";
2
- import { jsx } from "react/jsx-runtime";
3
- //#region src/routes/opencode.index.tsx?tsr-split=errorComponent
4
- var OpenCodeErrorComponent = ({ error }) => {
5
- return /* @__PURE__ */ jsx(ReloadErrorPanel, {
6
- description: error.message,
7
- title: "Failed to load OpenCode workspaces"
8
- });
9
- };
10
- //#endregion
11
- export { OpenCodeErrorComponent as errorComponent };
@@ -1,93 +0,0 @@
1
- import { r as openCodeWorkspacesQueryOptions } from "./opencode-queries-BeNYXnQv.js";
2
- import { t as DataTable } from "./data-table-Cdct823O.js";
3
- import { t as PageHeader } from "./page-header-VNSaM3xd.js";
4
- import { o as formatNumber, r as formatDateTime } from "./formatters-FJaGZgJk.js";
5
- import { n as ListSearchInput, t as matchesTextQuery } from "./text-filter-CGKxMCKt.js";
6
- import { useDeferredValue, useState } from "react";
7
- import { Link } from "@tanstack/react-router";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- import { useSuspenseQuery } from "@tanstack/react-query";
10
- import { createColumnHelper } from "@tanstack/react-table";
11
- //#region src/components/opencode-workspaces-table.tsx
12
- var columnHelper = createColumnHelper();
13
- var columns = [
14
- columnHelper.accessor("label", {
15
- cell: (info) => /* @__PURE__ */ jsxs(Link, {
16
- className: "block w-[16rem] max-w-[22rem] space-y-1 rounded-md outline-none transition hover:opacity-80 focus-visible:ring-2 focus-visible:ring-[var(--accent)] lg:w-auto",
17
- params: { workspaceKey: info.row.original.key },
18
- to: "/opencode/$workspaceKey",
19
- children: [/* @__PURE__ */ jsx("p", {
20
- className: "truncate font-medium underline-offset-2 hover:underline",
21
- children: info.getValue()
22
- }), /* @__PURE__ */ jsx("p", {
23
- className: "truncate text-[var(--muted-foreground)] text-xs",
24
- children: info.row.original.worktree
25
- })]
26
- }),
27
- header: "Workspace"
28
- }),
29
- columnHelper.accessor("sessionCount", {
30
- cell: (info) => /* @__PURE__ */ jsx("span", {
31
- className: "font-mono text-sm",
32
- children: formatNumber(info.getValue())
33
- }),
34
- header: "Sessions"
35
- }),
36
- columnHelper.accessor("messageCount", {
37
- cell: (info) => /* @__PURE__ */ jsx("span", {
38
- className: "font-mono text-sm",
39
- children: formatNumber(info.getValue())
40
- }),
41
- header: "Messages"
42
- }),
43
- columnHelper.accessor("partCount", {
44
- cell: (info) => /* @__PURE__ */ jsx("span", {
45
- className: "font-mono text-sm",
46
- children: formatNumber(info.getValue())
47
- }),
48
- header: "Parts"
49
- }),
50
- columnHelper.accessor("lastActiveMs", {
51
- cell: (info) => /* @__PURE__ */ jsx("span", {
52
- className: "whitespace-nowrap text-sm",
53
- suppressHydrationWarning: true,
54
- children: formatDateTime(info.getValue())
55
- }),
56
- header: "Last updated"
57
- })
58
- ];
59
- var OpenCodeWorkspacesTable = ({ workspaces }) => {
60
- return /* @__PURE__ */ jsx(DataTable, {
61
- columns,
62
- data: workspaces,
63
- emptyMessage: "No OpenCode workspaces match the current search."
64
- });
65
- };
66
- //#endregion
67
- //#region src/routes/opencode.index.tsx?tsr-split=component
68
- var OpenCodePage = () => {
69
- const workspaces = useSuspenseQuery(openCodeWorkspacesQueryOptions()).data;
70
- const [searchInput, setSearchInput] = useState("");
71
- const deferredSearch = useDeferredValue(searchInput);
72
- const visibleWorkspaces = workspaces.filter((workspace) => matchesTextQuery(deferredSearch, [
73
- workspace.label,
74
- workspace.worktree,
75
- workspace.key,
76
- workspace.projectId
77
- ]));
78
- return /* @__PURE__ */ jsxs("div", {
79
- className: "space-y-6",
80
- children: [/* @__PURE__ */ jsx(PageHeader, {
81
- actions: /* @__PURE__ */ jsx(ListSearchInput, {
82
- placeholder: "Search workspace name or path",
83
- value: searchInput,
84
- onValueChange: setSearchInput
85
- }),
86
- eyebrow: "Inventory",
87
- subtitle: "Workspace groups are derived from the local OpenCode project, session, message, and part tables.",
88
- title: "OpenCode"
89
- }), /* @__PURE__ */ jsx(OpenCodeWorkspacesTable, { workspaces: visibleWorkspaces })]
90
- });
91
- };
92
- //#endregion
93
- export { OpenCodePage as component };
@@ -1,29 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- //#region src/components/page-header.tsx
3
- function PageHeader({ actions, breadcrumb, eyebrow, subtitle, title }) {
4
- return /* @__PURE__ */ jsxs("div", {
5
- className: "flex flex-col gap-4 border-[var(--border)] border-b pb-5 sm:flex-row sm:items-end sm:justify-between",
6
- children: [/* @__PURE__ */ jsxs("div", {
7
- className: "space-y-2",
8
- children: [
9
- breadcrumb ? /* @__PURE__ */ jsx("div", { children: breadcrumb }) : null,
10
- eyebrow ? /* @__PURE__ */ jsx("p", {
11
- className: "font-semibold text-[11px] text-[var(--muted-foreground)] uppercase tracking-[0.18em]",
12
- children: eyebrow
13
- }) : null,
14
- /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h2", {
15
- className: "font-semibold text-2xl tracking-[-0.03em] sm:text-[2rem]",
16
- children: title
17
- }), subtitle ? /* @__PURE__ */ jsx("p", {
18
- className: "mt-2 max-w-[60rem] whitespace-pre-wrap break-words text-[var(--muted-foreground)] text-sm",
19
- children: subtitle
20
- }) : null] })
21
- ]
22
- }), actions ? /* @__PURE__ */ jsx("div", {
23
- className: "flex flex-wrap items-center gap-2",
24
- children: actions
25
- }) : null]
26
- });
27
- }
28
- //#endregion
29
- export { PageHeader as t };
@@ -1,31 +0,0 @@
1
- //#region ../../src/lib/path-transforms.ts
2
- var escapeForRegex = (value) => value.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
3
- var toUniquePathVariants = (projectPath) => {
4
- const normalized = projectPath.trim();
5
- const variants = [
6
- normalized,
7
- normalized.replaceAll("\\", "/"),
8
- normalized.replaceAll("/", "\\")
9
- ].filter(Boolean);
10
- return [...new Set(variants)].sort((left, right) => right.length - left.length);
11
- };
12
- var replaceExactProjectPath = (text, projectPath) => {
13
- let result = text;
14
- for (const variant of toUniquePathVariants(projectPath)) {
15
- const escapedVariant = escapeForRegex(variant);
16
- result = result.replace(new RegExp(`${escapedVariant}(?<separator>[\\\\/])`, "gu"), "");
17
- result = result.replace(new RegExp(`${escapedVariant}(?=$|[^A-Za-z0-9._-])`, "gu"), ".");
18
- }
19
- return result;
20
- };
21
- var redactRemainingUsernames = (text) => {
22
- return text.replace(/\/home\/[^/\\]+(?=\/|$)/gu, "~").replace(/\/Users\/[^/\\]+(?=\/|$)/gu, "~").replace(/[A-Za-z]:[\\/]+Users[\\/]+[^\\/]+(?=[\\/]|$)/gu, "~");
23
- };
24
- var applyPathTransforms = (text, settings) => {
25
- let result = text;
26
- if (settings.convertToProjectRoot && settings.projectPath) result = replaceExactProjectPath(result, settings.projectPath);
27
- if (settings.redactUsername) result = redactRemainingUsernames(result);
28
- return result;
29
- };
30
- //#endregion
31
- export { applyPathTransforms as t };
@@ -1,20 +0,0 @@
1
- import { r as projectThreadsQueryOptions } from "./codex-queries-CtgeZ7VL.js";
2
- import { i as parseTextQuerySearch } from "./route-search-ts4W9MJ9.js";
3
- import { t as LoadingPanel } from "./loading-panel-BGFnWseS.js";
4
- import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
5
- import { jsx } from "react/jsx-runtime";
6
- //#region src/routes/projects.$project.tsx
7
- var $$splitErrorComponentImporter = () => import("./projects._project-Bshqk7JA.js");
8
- var $$splitComponentImporter = () => import("./projects._project-D6ZoGhJ8.js");
9
- var Route = createFileRoute("/projects/$project")({
10
- component: lazyRouteComponent($$splitComponentImporter, "component"),
11
- errorComponent: lazyRouteComponent($$splitErrorComponentImporter, "errorComponent"),
12
- loader: ({ context, params }) => context.queryClient.ensureQueryData(projectThreadsQueryOptions(params.project)),
13
- pendingComponent: () => /* @__PURE__ */ jsx(LoadingPanel, {
14
- description: "Loading project threads and transcript summaries. Large projects can take a moment.",
15
- title: "Loading project"
16
- }),
17
- validateSearch: parseTextQuerySearch
18
- });
19
- //#endregion
20
- export { Route as t };
@@ -1,12 +0,0 @@
1
- import { t as ReloadErrorPanel } from "./reload-error-panel-BJMxY3U1.js";
2
- import { jsx } from "react/jsx-runtime";
3
- //#region src/routes/projects.$project.tsx?tsr-split=errorComponent
4
- function ProjectDetailErrorComponent({ error }) {
5
- const isSqlite = error.message.includes("unable to open database") || error.message.includes("database is locked");
6
- return /* @__PURE__ */ jsx(ReloadErrorPanel, {
7
- description: isSqlite ? "Codex may have an exclusive lock on the database. Reload to retry." : error.message,
8
- title: isSqlite ? "Database unavailable" : "Failed to load Codex project"
9
- });
10
- }
11
- //#endregion
12
- export { ProjectDetailErrorComponent as errorComponent };