spiracha 1.5.0 → 2.0.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.
- package/AGENTS.md +114 -205
- package/README.md +89 -269
- package/apps/ui/AGENTS.md +17 -7
- package/apps/ui/README.md +34 -8
- package/apps/ui/components.json +21 -0
- package/apps/ui/package.json +65 -0
- package/apps/ui/src/components/antigravity-conversations-table.tsx +206 -0
- package/apps/ui/src/components/antigravity-keychain-panel.tsx +76 -0
- package/apps/ui/src/components/antigravity-workspaces-table.tsx +63 -0
- package/apps/ui/src/components/app-shell.tsx +124 -0
- package/apps/ui/src/components/breadcrumbs.tsx +53 -0
- package/apps/ui/src/components/claude-code-sessions-table.tsx +114 -0
- package/apps/ui/src/components/claude-code-workspaces-table.tsx +55 -0
- package/apps/ui/src/components/cursor-threads-table.tsx +189 -0
- package/apps/ui/src/components/cursor-workspaces-table.tsx +140 -0
- package/apps/ui/src/components/data-table.tsx +241 -0
- package/apps/ui/src/components/delete-confirm-dialog.tsx +88 -0
- package/apps/ui/src/components/export-dialog.tsx +184 -0
- package/apps/ui/src/components/json-panel.tsx +17 -0
- package/apps/ui/src/components/kiro-sessions-table.tsx +112 -0
- package/apps/ui/src/components/kiro-workspaces-table.tsx +53 -0
- package/apps/ui/src/components/list-search-input.tsx +18 -0
- package/apps/ui/src/components/loading-panel.tsx +23 -0
- package/apps/ui/src/components/metadata-section.tsx +31 -0
- package/apps/ui/src/components/metric-card.tsx +19 -0
- package/apps/ui/src/components/opencode-sessions-table.tsx +128 -0
- package/apps/ui/src/components/opencode-workspaces-table.tsx +57 -0
- package/apps/ui/src/components/page-header.tsx +33 -0
- package/apps/ui/src/components/projects-loading-state.tsx +74 -0
- package/apps/ui/src/components/projects-table.tsx +108 -0
- package/apps/ui/src/components/qoder-sessions-table.tsx +112 -0
- package/apps/ui/src/components/qoder-workspaces-table.tsx +53 -0
- package/apps/ui/src/components/recent-threads-list.tsx +52 -0
- package/apps/ui/src/components/reload-error-panel.tsx +20 -0
- package/apps/ui/src/components/text-document-panel.tsx +19 -0
- package/apps/ui/src/components/theme-toggle.tsx +48 -0
- package/apps/ui/src/components/threads-table.tsx +202 -0
- package/apps/ui/src/components/transcript-view.tsx +552 -0
- package/apps/ui/src/components/ui/alert-dialog.tsx +160 -0
- package/apps/ui/src/components/ui/badge.tsx +45 -0
- package/apps/ui/src/components/ui/button.tsx +62 -0
- package/apps/ui/src/components/ui/checkbox.tsx +29 -0
- package/apps/ui/src/components/ui/dialog.tsx +137 -0
- package/apps/ui/src/components/ui/dropdown-menu.tsx +217 -0
- package/apps/ui/src/components/ui/input.tsx +21 -0
- package/apps/ui/src/components/ui/scroll-area.tsx +46 -0
- package/apps/ui/src/components/ui/select.tsx +163 -0
- package/apps/ui/src/components/ui/separator.tsx +28 -0
- package/apps/ui/src/components/ui/sheet.tsx +107 -0
- package/apps/ui/src/components/ui/skeleton.tsx +7 -0
- package/apps/ui/src/components/ui/table.tsx +76 -0
- package/apps/ui/src/components/ui/tabs.tsx +71 -0
- package/apps/ui/src/components/ui/tooltip.tsx +44 -0
- package/apps/ui/src/integrations/tanstack-query/devtools.tsx +6 -0
- package/apps/ui/src/integrations/tanstack-query/root-provider.tsx +10 -0
- package/apps/ui/src/lib/antigravity-conversation-state.ts +28 -0
- package/apps/ui/src/lib/antigravity-queries.ts +33 -0
- package/apps/ui/src/lib/antigravity-server.ts +128 -0
- package/apps/ui/src/lib/antigravity-transcript-events.ts +335 -0
- package/apps/ui/src/lib/claude-code-queries.ts +26 -0
- package/apps/ui/src/lib/claude-code-server.ts +75 -0
- package/apps/ui/src/lib/claude-code-transcript-events.ts +154 -0
- package/apps/ui/src/lib/codex-queries.ts +66 -0
- package/apps/ui/src/lib/codex-server.ts +209 -0
- package/apps/ui/src/lib/cursor-queries.ts +37 -0
- package/apps/ui/src/lib/cursor-server.ts +272 -0
- package/apps/ui/src/lib/cursor-transcript-events.ts +229 -0
- package/apps/ui/src/lib/download.ts +166 -0
- package/apps/ui/src/lib/formatters.ts +149 -0
- package/apps/ui/src/lib/kiro-queries.ts +22 -0
- package/apps/ui/src/lib/kiro-server.ts +73 -0
- package/apps/ui/src/lib/kiro-transcript-events.ts +113 -0
- package/apps/ui/src/lib/opencode-queries.ts +37 -0
- package/apps/ui/src/lib/opencode-server.ts +73 -0
- package/apps/ui/src/lib/opencode-transcript-events.ts +221 -0
- package/apps/ui/src/lib/package-metadata.ts +16 -0
- package/apps/ui/src/lib/path-utils.ts +13 -0
- package/apps/ui/src/lib/qoder-queries.ts +22 -0
- package/apps/ui/src/lib/qoder-server.ts +79 -0
- package/apps/ui/src/lib/qoder-transcript-events.ts +139 -0
- package/apps/ui/src/lib/route-search.ts +68 -0
- package/apps/ui/src/lib/settings-store.tsx +59 -0
- package/apps/ui/src/lib/source-session-export-server.ts +56 -0
- package/apps/ui/src/lib/text-filter.ts +22 -0
- package/apps/ui/src/lib/thread-id.ts +3 -0
- package/apps/ui/src/lib/thread-transcript-stats.ts +57 -0
- package/apps/ui/src/lib/utils.ts +7 -0
- package/apps/ui/src/routeTree.gen.ts +730 -0
- package/apps/ui/src/router.tsx +20 -0
- package/apps/ui/src/routes/$threadId.tsx +22 -0
- package/apps/ui/src/routes/__root.tsx +127 -0
- package/apps/ui/src/routes/analytics.tsx +143 -0
- package/apps/ui/src/routes/antigravity-conversations.$conversationId.tsx +438 -0
- package/apps/ui/src/routes/antigravity.$workspaceKey.tsx +127 -0
- package/apps/ui/src/routes/antigravity.index.tsx +51 -0
- package/apps/ui/src/routes/api.v1.conversation-query.ts +12 -0
- package/apps/ui/src/routes/api.v1.conversations.$source.$id.export.ts +12 -0
- package/apps/ui/src/routes/api.v1.conversations.$source.$id.ts +12 -0
- package/apps/ui/src/routes/api.v1.conversations.ts +12 -0
- package/apps/ui/src/routes/api.v1.resolve.ts +12 -0
- package/apps/ui/src/routes/api.v1.sources.ts +12 -0
- package/apps/ui/src/routes/claude-code-sessions.$sessionId.tsx +342 -0
- package/apps/ui/src/routes/claude-code.$workspaceKey.tsx +135 -0
- package/apps/ui/src/routes/claude-code.index.tsx +48 -0
- package/apps/ui/src/routes/codex.$project.tsx +390 -0
- package/apps/ui/src/routes/codex.index.tsx +116 -0
- package/apps/ui/src/routes/cursor-threads.$composerId.tsx +435 -0
- package/apps/ui/src/routes/cursor.$workspaceKey.tsx +416 -0
- package/apps/ui/src/routes/cursor.index.tsx +120 -0
- package/apps/ui/src/routes/index.tsx +124 -0
- package/apps/ui/src/routes/kiro-sessions.$sessionId.tsx +345 -0
- package/apps/ui/src/routes/kiro.$workspaceKey.tsx +136 -0
- package/apps/ui/src/routes/kiro.index.tsx +48 -0
- package/apps/ui/src/routes/opencode-sessions.$sessionId.tsx +334 -0
- package/apps/ui/src/routes/opencode.$workspaceKey.tsx +135 -0
- package/apps/ui/src/routes/opencode.index.tsx +48 -0
- package/apps/ui/src/routes/qoder-sessions.$sessionId.tsx +341 -0
- package/apps/ui/src/routes/qoder.$workspaceKey.tsx +139 -0
- package/apps/ui/src/routes/qoder.index.tsx +48 -0
- package/apps/ui/src/routes/settings.tsx +91 -0
- package/apps/ui/src/routes/threads.$threadId.tsx +619 -0
- package/apps/ui/src/styles.css +122 -0
- package/apps/ui/tsconfig.json +29 -0
- package/apps/ui/vite.config.ts +84 -0
- package/bin/spiracha.ts +32 -0
- package/package.json +46 -73
- package/src/client.ts +290 -0
- package/src/lib/antigravity-db.ts +213 -19
- package/src/lib/antigravity-exporter-types.ts +1 -0
- package/src/lib/codex-analytics.ts +1 -1
- package/src/lib/codex-browser-db.ts +410 -74
- package/src/lib/codex-browser-export.ts +6 -14
- package/src/lib/codex-browser-types.ts +1 -1
- package/src/lib/{codex-exporter-types.ts → codex-thread-types.ts} +2 -30
- package/src/lib/{codex-exporter-transcript.ts → codex-transcript-renderer.ts} +64 -28
- package/src/lib/conversation-api.ts +792 -0
- package/src/lib/conversation-data/adapter-helpers.ts +110 -0
- package/src/lib/conversation-data/antigravity-adapter.ts +148 -0
- package/src/lib/conversation-data/claude-code-adapter.ts +175 -0
- package/src/lib/conversation-data/codex-adapter.ts +245 -0
- package/src/lib/conversation-data/cursor-adapter.ts +171 -0
- package/src/lib/conversation-data/index.ts +311 -0
- package/src/lib/conversation-data/kiro-adapter.ts +140 -0
- package/src/lib/conversation-data/message-selector.ts +37 -0
- package/src/lib/conversation-data/opencode-adapter.ts +180 -0
- package/src/lib/conversation-data/path-match.ts +79 -0
- package/src/lib/conversation-data/qoder-adapter.ts +230 -0
- package/src/lib/conversation-data/types.ts +116 -0
- package/src/lib/cursor-db.ts +67 -21
- package/src/lib/cursor-exporter-types.ts +0 -19
- package/src/lib/qoder-acp-client.ts +268 -0
- package/src/lib/qoder-db.ts +1601 -0
- package/src/lib/qoder-exporter-types.ts +114 -0
- package/src/lib/qoder-transcript-phase.ts +41 -0
- package/src/lib/qoder-transcript.ts +112 -0
- package/apps/ui/dist/client/assets/_threadId-CAIeH5mq.js +0 -1
- package/apps/ui/dist/client/assets/analytics-DOy1b6Sh.js +0 -1
- package/apps/ui/dist/client/assets/antigravity-conversations._conversationId-DqySVO2K.js +0 -7
- package/apps/ui/dist/client/assets/antigravity-conversations._conversationId-KAcXtNxI.js +0 -1
- package/apps/ui/dist/client/assets/antigravity-keychain-panel-B77qJz6f.js +0 -1
- package/apps/ui/dist/client/assets/antigravity._workspaceKey-B3NM6gRH.js +0 -1
- package/apps/ui/dist/client/assets/antigravity._workspaceKey-ByitGWki.js +0 -1
- package/apps/ui/dist/client/assets/antigravity.index-DP9JC2P9.js +0 -1
- package/apps/ui/dist/client/assets/antigravity.index-DgW25FEV.js +0 -1
- package/apps/ui/dist/client/assets/badge-C3i4OKs8.js +0 -1
- package/apps/ui/dist/client/assets/checkbox-CdHitXWQ.js +0 -1
- package/apps/ui/dist/client/assets/claude-code-sessions._sessionId-8pQ55ci2.js +0 -1
- package/apps/ui/dist/client/assets/claude-code-sessions._sessionId-DVz5UmtU.js +0 -1
- package/apps/ui/dist/client/assets/claude-code._workspaceKey-BBKskSum.js +0 -1
- package/apps/ui/dist/client/assets/claude-code._workspaceKey-OkikMUFs.js +0 -1
- package/apps/ui/dist/client/assets/claude-code.index-Cwu76dbb.js +0 -1
- package/apps/ui/dist/client/assets/claude-code.index-D6eMd08t.js +0 -1
- package/apps/ui/dist/client/assets/createServerFn-B-KkwmHU.js +0 -3
- package/apps/ui/dist/client/assets/cursor-threads._composerId-CmBFclK8.js +0 -1
- package/apps/ui/dist/client/assets/cursor-threads._composerId-hBWlP1D-.js +0 -1
- package/apps/ui/dist/client/assets/cursor._workspaceKey-BFPkIRi-.js +0 -1
- package/apps/ui/dist/client/assets/cursor._workspaceKey-CaAZjGmm.js +0 -1
- package/apps/ui/dist/client/assets/cursor.index-8y4o20kb.js +0 -2
- package/apps/ui/dist/client/assets/cursor.index-CrnMwDCi.js +0 -1
- package/apps/ui/dist/client/assets/data-table-Br78_dk3.js +0 -4
- package/apps/ui/dist/client/assets/delete-confirm-dialog-Bxs07u-j.js +0 -7
- package/apps/ui/dist/client/assets/dist-B9pyYCVU.js +0 -1
- package/apps/ui/dist/client/assets/dist-BrJhN2A0.js +0 -5
- package/apps/ui/dist/client/assets/dist-Cmd3AIfD.js +0 -1
- package/apps/ui/dist/client/assets/dist-DvMS2965.js +0 -1
- package/apps/ui/dist/client/assets/download-Bf0QJKD3.js +0 -1
- package/apps/ui/dist/client/assets/dropdown-menu-D5cvPaZt.js +0 -1
- package/apps/ui/dist/client/assets/es2015-ad6040dw.js +0 -41
- package/apps/ui/dist/client/assets/export-dialog-Dr8d2MqD.js +0 -1
- package/apps/ui/dist/client/assets/formatters-BtqyrX_c.js +0 -1
- package/apps/ui/dist/client/assets/index-C-STgIH4.js +0 -166
- package/apps/ui/dist/client/assets/jsx-runtime-DGeXAQPT.js +0 -1
- package/apps/ui/dist/client/assets/kiro-sessions._sessionId-CKgfJ7GR.js +0 -1
- package/apps/ui/dist/client/assets/kiro-sessions._sessionId-zvIJHtQF.js +0 -1
- package/apps/ui/dist/client/assets/kiro._workspaceKey-DhVuJuZB.js +0 -1
- package/apps/ui/dist/client/assets/kiro._workspaceKey-QArsjkTY.js +0 -1
- package/apps/ui/dist/client/assets/kiro.index-C-fr4m7i.js +0 -1
- package/apps/ui/dist/client/assets/kiro.index-OYgAdtZd.js +0 -1
- package/apps/ui/dist/client/assets/metric-card-Dplm0ZiM.js +0 -1
- package/apps/ui/dist/client/assets/opencode-sessions._sessionId-DLjiTst-.js +0 -1
- package/apps/ui/dist/client/assets/opencode-sessions._sessionId-biBwrRbt.js +0 -8
- package/apps/ui/dist/client/assets/opencode._workspaceKey-C7OIzMOJ.js +0 -1
- package/apps/ui/dist/client/assets/opencode._workspaceKey-sBakX0oI.js +0 -1
- package/apps/ui/dist/client/assets/opencode.index-Bl_kNs9N.js +0 -1
- package/apps/ui/dist/client/assets/opencode.index-CN53bVmb.js +0 -1
- package/apps/ui/dist/client/assets/page-header-Cwa3p6Tl.js +0 -1
- package/apps/ui/dist/client/assets/preload-helper-B8fFrdxC.js +0 -1
- package/apps/ui/dist/client/assets/projects._project-D8WloxQN.js +0 -1
- package/apps/ui/dist/client/assets/projects._project-DSDwH4NF.js +0 -1
- package/apps/ui/dist/client/assets/projects.index-5xRtuJdX.js +0 -3
- package/apps/ui/dist/client/assets/projects.index-DEfhWqa8.js +0 -1
- package/apps/ui/dist/client/assets/react-dom-DL96Jor4.js +0 -1
- package/apps/ui/dist/client/assets/refresh-ccw-BgKjOiA6.js +0 -1
- package/apps/ui/dist/client/assets/reload-error-panel-AHqu0akK.js +0 -1
- package/apps/ui/dist/client/assets/routes-DnzF_9CX.js +0 -1
- package/apps/ui/dist/client/assets/scroll-text-fM0sMOB3.js +0 -1
- package/apps/ui/dist/client/assets/select-CYF6pF37.js +0 -1
- package/apps/ui/dist/client/assets/settings-Dx70jgP_.js +0 -1
- package/apps/ui/dist/client/assets/sqlite-error-B6uZjUe8.js +0 -1
- package/apps/ui/dist/client/assets/styles-B7Zi9EFA.css +0 -1
- package/apps/ui/dist/client/assets/tabs-CmuhkT-c.js +0 -7
- package/apps/ui/dist/client/assets/text-filter-DVAZySUS.js +0 -2
- package/apps/ui/dist/client/assets/thread-transcript-stats-BUNz6u7F.js +0 -1
- package/apps/ui/dist/client/assets/threads._threadId-BB9tTsV4.js +0 -1
- package/apps/ui/dist/client/assets/threads._threadId-BMRSFow3.js +0 -1
- package/apps/ui/dist/client/assets/useMutation-BSFult2i.js +0 -1
- package/apps/ui/dist/client/assets/useQuery-CjINKZf1.js +0 -1
- package/apps/ui/dist/server/assets/_tanstack-start-manifest_v-CQ8Jjs3B.js +0 -387
- package/apps/ui/dist/server/assets/_threadId-B6SrBR9E.js +0 -6
- package/apps/ui/dist/server/assets/analytics-CYP_LT5Y.js +0 -16
- package/apps/ui/dist/server/assets/analytics-CtpOMVMO.js +0 -146
- package/apps/ui/dist/server/assets/antigravity-conversation-state-HgzS302O.js +0 -16
- package/apps/ui/dist/server/assets/antigravity-conversations._conversationId-BKOyL2T6.js +0 -613
- package/apps/ui/dist/server/assets/antigravity-conversations._conversationId-D426O-64.js +0 -11
- package/apps/ui/dist/server/assets/antigravity-conversations._conversationId-eS87Dx7g.js +0 -20
- package/apps/ui/dist/server/assets/antigravity-db-Bh8_U9uw.js +0 -580
- package/apps/ui/dist/server/assets/antigravity-keychain-DOiuHDwK.js +0 -126
- package/apps/ui/dist/server/assets/antigravity-keychain-panel-CC7FLmAK.js +0 -55
- package/apps/ui/dist/server/assets/antigravity-queries-CGrJO9Vr.js +0 -37
- package/apps/ui/dist/server/assets/antigravity-server-CHRjVFqN.js +0 -114
- package/apps/ui/dist/server/assets/antigravity._workspaceKey-3m_MzNFA.js +0 -11
- package/apps/ui/dist/server/assets/antigravity._workspaceKey-B0QeYUOh.js +0 -28
- package/apps/ui/dist/server/assets/antigravity._workspaceKey-C3kP-qyN.js +0 -210
- package/apps/ui/dist/server/assets/antigravity.index-CPCYkqCi.js +0 -104
- package/apps/ui/dist/server/assets/antigravity.index-DudTB3Tq.js +0 -11
- package/apps/ui/dist/server/assets/badge-EvdhKK_Z.js +0 -26
- package/apps/ui/dist/server/assets/button-CmTDnzOn.js +0 -46
- package/apps/ui/dist/server/assets/checkbox-C0hovF41.js +0 -19
- package/apps/ui/dist/server/assets/claude-code-db-Ik3VStKZ.js +0 -361
- package/apps/ui/dist/server/assets/claude-code-queries-Cgzi4K-e.js +0 -37
- package/apps/ui/dist/server/assets/claude-code-server-PfraClXS.js +0 -72
- package/apps/ui/dist/server/assets/claude-code-sessions._sessionId-C55oe6zj.js +0 -18
- package/apps/ui/dist/server/assets/claude-code-sessions._sessionId-D1RYYi3j.js +0 -473
- package/apps/ui/dist/server/assets/claude-code-sessions._sessionId-DSvPLEUL.js +0 -11
- package/apps/ui/dist/server/assets/claude-code-transcript-C-bxh3cS.js +0 -139
- package/apps/ui/dist/server/assets/claude-code-transcript-phase-DmUMc8VU.js +0 -10
- package/apps/ui/dist/server/assets/claude-code._workspaceKey-B5Xg_-tE.js +0 -28
- package/apps/ui/dist/server/assets/claude-code._workspaceKey-BPlzyXPa.js +0 -11
- package/apps/ui/dist/server/assets/claude-code._workspaceKey-DqDve2wl.js +0 -191
- package/apps/ui/dist/server/assets/claude-code.index-B7yYR7dD.js +0 -92
- package/apps/ui/dist/server/assets/claude-code.index-BUHThG1W.js +0 -11
- package/apps/ui/dist/server/assets/codex-queries-CtgeZ7VL.js +0 -99
- package/apps/ui/dist/server/assets/codex-server-CGXU4H8-.js +0 -2294
- package/apps/ui/dist/server/assets/concurrency-VXtYvlGh.js +0 -18
- package/apps/ui/dist/server/assets/createServerRpc-CF_DEwnm.js +0 -12
- package/apps/ui/dist/server/assets/createSsrRpc-C754NPki.js +0 -16
- package/apps/ui/dist/server/assets/cursor-db-CZnYy7aT.js +0 -830
- package/apps/ui/dist/server/assets/cursor-exporter-types-CI3goo-c.js +0 -34
- package/apps/ui/dist/server/assets/cursor-queries-NCIM0Nat.js +0 -67
- package/apps/ui/dist/server/assets/cursor-recovery-CXpO8KcD.js +0 -361
- package/apps/ui/dist/server/assets/cursor-server-DNu52A3K.js +0 -213
- package/apps/ui/dist/server/assets/cursor-threads._composerId-BB0Y_Mao.js +0 -11
- package/apps/ui/dist/server/assets/cursor-threads._composerId-Ckn6ItHI.js +0 -582
- package/apps/ui/dist/server/assets/cursor-threads._composerId-p9-ARAzc.js +0 -18
- package/apps/ui/dist/server/assets/cursor-transcript-B7tGnqtn.js +0 -125
- package/apps/ui/dist/server/assets/cursor._workspaceKey-CZuohIUL.js +0 -28
- package/apps/ui/dist/server/assets/cursor._workspaceKey-DPp5JSjy.js +0 -401
- package/apps/ui/dist/server/assets/cursor._workspaceKey-nmg3YIOQ.js +0 -11
- package/apps/ui/dist/server/assets/cursor.index-CcsX7DG0.js +0 -11
- package/apps/ui/dist/server/assets/cursor.index-DkWT-mxw.js +0 -189
- package/apps/ui/dist/server/assets/data-table-Cdct823O.js +0 -189
- package/apps/ui/dist/server/assets/delete-confirm-dialog-BcBNCxWB.js +0 -144
- package/apps/ui/dist/server/assets/download-DMmiy1xf.js +0 -92
- package/apps/ui/dist/server/assets/dropdown-menu-Dy_9t6TN.js +0 -36
- package/apps/ui/dist/server/assets/empty-plugin-adapters-B3lHh1La.js +0 -5
- package/apps/ui/dist/server/assets/export-dialog-D88ze9Gy.js +0 -240
- package/apps/ui/dist/server/assets/formatters-FJaGZgJk.js +0 -91
- package/apps/ui/dist/server/assets/kiro-db--fXrED_-.js +0 -552
- package/apps/ui/dist/server/assets/kiro-queries-CzNlM2ok.js +0 -37
- package/apps/ui/dist/server/assets/kiro-server-9WRxg2Au.js +0 -72
- package/apps/ui/dist/server/assets/kiro-sessions._sessionId-CRY2c7YO.js +0 -11
- package/apps/ui/dist/server/assets/kiro-sessions._sessionId-F1UlwxmR.js +0 -449
- package/apps/ui/dist/server/assets/kiro-sessions._sessionId-bvTulT7C.js +0 -18
- package/apps/ui/dist/server/assets/kiro-transcript-DoekQBaH.js +0 -112
- package/apps/ui/dist/server/assets/kiro-transcript-phase-CJG40nQg.js +0 -27
- package/apps/ui/dist/server/assets/kiro._workspaceKey-BDe9sQwo.js +0 -11
- package/apps/ui/dist/server/assets/kiro._workspaceKey-CJsjgNwO.js +0 -28
- package/apps/ui/dist/server/assets/kiro._workspaceKey-D_-4Qb7y.js +0 -193
- package/apps/ui/dist/server/assets/kiro.index-C__-UROk.js +0 -11
- package/apps/ui/dist/server/assets/kiro.index-CmTbqeYj.js +0 -93
- package/apps/ui/dist/server/assets/loading-panel-BGFnWseS.js +0 -27
- package/apps/ui/dist/server/assets/metric-card-ByEeLu0r.js +0 -23
- package/apps/ui/dist/server/assets/model-label-B1NWGc65.js +0 -13
- package/apps/ui/dist/server/assets/opencode-db-BM7KjOzc.js +0 -397
- package/apps/ui/dist/server/assets/opencode-queries-BeNYXnQv.js +0 -50
- package/apps/ui/dist/server/assets/opencode-server-BpQ_kRze.js +0 -72
- package/apps/ui/dist/server/assets/opencode-sessions._sessionId-CGQ-t0vD.js +0 -518
- package/apps/ui/dist/server/assets/opencode-sessions._sessionId-D8Q7in_Z.js +0 -18
- package/apps/ui/dist/server/assets/opencode-sessions._sessionId-DKOvi0lV.js +0 -11
- package/apps/ui/dist/server/assets/opencode-think-tags-CAoD-EcZ.js +0 -87
- package/apps/ui/dist/server/assets/opencode-transcript-BNTcGNym.js +0 -141
- package/apps/ui/dist/server/assets/opencode-transcript-phase-OqLkiQD0.js +0 -32
- package/apps/ui/dist/server/assets/opencode._workspaceKey-BdqcWHw1.js +0 -11
- package/apps/ui/dist/server/assets/opencode._workspaceKey-CfH96HTT.js +0 -28
- package/apps/ui/dist/server/assets/opencode._workspaceKey-DdbHPDrO.js +0 -207
- package/apps/ui/dist/server/assets/opencode.index-BbVzkJXP.js +0 -11
- package/apps/ui/dist/server/assets/opencode.index-Vh_Gq_1L.js +0 -93
- package/apps/ui/dist/server/assets/page-header-VNSaM3xd.js +0 -29
- package/apps/ui/dist/server/assets/path-transforms-DL2IwtYd.js +0 -31
- package/apps/ui/dist/server/assets/projects._project-4io5LO0E.js +0 -20
- package/apps/ui/dist/server/assets/projects._project-Bshqk7JA.js +0 -12
- package/apps/ui/dist/server/assets/projects._project-D6ZoGhJ8.js +0 -395
- package/apps/ui/dist/server/assets/projects.index-BLXOx5eL.js +0 -12
- package/apps/ui/dist/server/assets/projects.index-BkLiF2FF.js +0 -182
- package/apps/ui/dist/server/assets/projects.index-DesYXwfi.js +0 -14
- package/apps/ui/dist/server/assets/reload-error-panel-BJMxY3U1.js +0 -25
- package/apps/ui/dist/server/assets/route-search-ts4W9MJ9.js +0 -38
- package/apps/ui/dist/server/assets/router-Sac2DGk6.js +0 -518
- package/apps/ui/dist/server/assets/routes-Bsact1uB.js +0 -184
- package/apps/ui/dist/server/assets/routes-BzkJgq4W.js +0 -34
- package/apps/ui/dist/server/assets/select-GW76p-ld.js +0 -76
- package/apps/ui/dist/server/assets/settings-OayxIYQQ.js +0 -100
- package/apps/ui/dist/server/assets/settings-store-DpEJEQ7M.js +0 -52
- package/apps/ui/dist/server/assets/shared-DyhChtHf.js +0 -137
- package/apps/ui/dist/server/assets/source-session-export-server-DNutCawb.js +0 -38
- package/apps/ui/dist/server/assets/sqlite-error-LZDrnxdd.js +0 -13
- package/apps/ui/dist/server/assets/start-B_HFwkkk.js +0 -4
- package/apps/ui/dist/server/assets/tabs-DkaChNVg.js +0 -501
- package/apps/ui/dist/server/assets/text-filter-CGKxMCKt.js +0 -36
- package/apps/ui/dist/server/assets/thread-transcript-stats-Dh34mt2u.js +0 -45
- package/apps/ui/dist/server/assets/threads._threadId-BSSK4nkI.js +0 -26
- package/apps/ui/dist/server/assets/threads._threadId-BeXEc4Lo.js +0 -648
- package/apps/ui/dist/server/assets/threads._threadId-Ci0S4mKU.js +0 -18
- package/apps/ui/dist/server/assets/ui-export-files-BHLX9bhN.js +0 -83
- package/apps/ui/dist/server/assets/utils-C_uf36nf.js +0 -8
- package/apps/ui/dist/server/server.js +0 -5895
- package/bin/codex-chats-claude.js +0 -5
- package/bin/codex-chats.js +0 -5
- package/bin/spiracha.js +0 -5
- package/src/export-chats.ts +0 -120
- package/src/export-claude.ts +0 -36
- package/src/export-cursor.ts +0 -244
- package/src/lib/claude-exporter.ts +0 -864
- package/src/lib/codex-exporter-cli.ts +0 -277
- package/src/lib/codex-exporter-db.ts +0 -319
- package/src/lib/codex-exporter.ts +0 -115
- package/src/lib/cursor-exporter.ts +0 -266
- package/src/lib/interactive-cli.ts +0 -433
- package/src/lib/native-open.ts +0 -54
- package/src/mcp-server.ts +0 -137
- package/src/spiracha.ts +0 -116
- package/src/ui-cli.ts +0 -310
- /package/apps/ui/{dist/client → public}/icon.svg +0 -0
- /package/apps/ui/{dist/client → public}/manifest.json +0 -0
- /package/apps/ui/{dist/client → public}/robots.txt +0 -0
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { t as Button } from "./button-CmTDnzOn.js";
|
|
2
|
-
import { a as deleteCursorWorkspaceFn, c as recoverCursorWorkspaceFn, r as cursorWorkspacesQueryOptions } from "./cursor-queries-NCIM0Nat.js";
|
|
3
|
-
import { t as DataTable } from "./data-table-Cdct823O.js";
|
|
4
|
-
import { t as PageHeader } from "./page-header-VNSaM3xd.js";
|
|
5
|
-
import { o as formatNumber, r as formatDateTime } from "./formatters-FJaGZgJk.js";
|
|
6
|
-
import { t as Badge } from "./badge-EvdhKK_Z.js";
|
|
7
|
-
import { i as DropdownMenuTrigger, n as DropdownMenuContent, r as DropdownMenuItem, t as DropdownMenu } from "./dropdown-menu-Dy_9t6TN.js";
|
|
8
|
-
import { n as ListSearchInput, t as matchesTextQuery } from "./text-filter-CGKxMCKt.js";
|
|
9
|
-
import { t as DeleteConfirmDialog } from "./delete-confirm-dialog-BcBNCxWB.js";
|
|
10
|
-
import { useDeferredValue, useState } from "react";
|
|
11
|
-
import { Link } from "@tanstack/react-router";
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useMutation, useQueryClient, useSuspenseQuery } from "@tanstack/react-query";
|
|
14
|
-
import { MoreHorizontal, RefreshCcw, Trash2 } from "lucide-react";
|
|
15
|
-
import { createColumnHelper } from "@tanstack/react-table";
|
|
16
|
-
//#region src/components/cursor-workspaces-table.tsx
|
|
17
|
-
var columnHelper = createColumnHelper();
|
|
18
|
-
var getWorkspaceLocation = (workspace) => workspace.folders[0] ?? workspace.uri;
|
|
19
|
-
var getWorkspaceStorageLabel = (workspace) => {
|
|
20
|
-
if (workspace.buckets.length === 0) return "File history";
|
|
21
|
-
return `${formatNumber(workspace.buckets.length)} bucket${workspace.buckets.length === 1 ? "" : "s"}`;
|
|
22
|
-
};
|
|
23
|
-
var getWorkspaceStateLabel = (workspace) => {
|
|
24
|
-
if (workspace.needsRecovery) return "Recovery available";
|
|
25
|
-
if (workspace.buckets.length === 0) return "Activity only";
|
|
26
|
-
return "Current";
|
|
27
|
-
};
|
|
28
|
-
var columns = (onDeleteWorkspace, onRecoverWorkspace) => [
|
|
29
|
-
columnHelper.accessor("label", {
|
|
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: { workspaceKey: info.row.original.key },
|
|
33
|
-
to: "/cursor/$workspaceKey",
|
|
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.needsRecovery ? /* @__PURE__ */ jsx(Badge, {
|
|
40
|
-
variant: "outline",
|
|
41
|
-
children: "recover"
|
|
42
|
-
}) : null]
|
|
43
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
44
|
-
className: "truncate text-[var(--muted-foreground)] text-xs",
|
|
45
|
-
children: getWorkspaceLocation(info.row.original)
|
|
46
|
-
})]
|
|
47
|
-
}),
|
|
48
|
-
header: "Workspace"
|
|
49
|
-
}),
|
|
50
|
-
columnHelper.accessor("threadCount", {
|
|
51
|
-
cell: (info) => /* @__PURE__ */ jsx("span", {
|
|
52
|
-
className: "font-mono text-sm",
|
|
53
|
-
children: formatNumber(info.getValue())
|
|
54
|
-
}),
|
|
55
|
-
header: "Threads"
|
|
56
|
-
}),
|
|
57
|
-
columnHelper.display({
|
|
58
|
-
cell: (info) => /* @__PURE__ */ jsx("span", {
|
|
59
|
-
className: "text-sm",
|
|
60
|
-
children: getWorkspaceStorageLabel(info.row.original)
|
|
61
|
-
}),
|
|
62
|
-
header: "Storage",
|
|
63
|
-
id: "storage"
|
|
64
|
-
}),
|
|
65
|
-
columnHelper.display({
|
|
66
|
-
cell: (info) => /* @__PURE__ */ jsx("span", {
|
|
67
|
-
className: "text-sm",
|
|
68
|
-
children: getWorkspaceStateLabel(info.row.original)
|
|
69
|
-
}),
|
|
70
|
-
header: "State",
|
|
71
|
-
id: "state"
|
|
72
|
-
}),
|
|
73
|
-
columnHelper.accessor("lastActiveMs", {
|
|
74
|
-
cell: (info) => /* @__PURE__ */ jsx("span", {
|
|
75
|
-
className: "whitespace-nowrap text-sm",
|
|
76
|
-
suppressHydrationWarning: true,
|
|
77
|
-
children: formatDateTime(info.getValue())
|
|
78
|
-
}),
|
|
79
|
-
header: "Last updated"
|
|
80
|
-
}),
|
|
81
|
-
columnHelper.display({
|
|
82
|
-
cell: (info) => /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
83
|
-
asChild: true,
|
|
84
|
-
children: /* @__PURE__ */ jsx(Button, {
|
|
85
|
-
"aria-label": `Actions for ${info.row.original.label}`,
|
|
86
|
-
className: "rounded-full",
|
|
87
|
-
size: "icon",
|
|
88
|
-
type: "button",
|
|
89
|
-
variant: "ghost",
|
|
90
|
-
onClick: (event) => event.stopPropagation(),
|
|
91
|
-
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" })
|
|
92
|
-
})
|
|
93
|
-
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
94
|
-
align: "end",
|
|
95
|
-
children: [info.row.original.needsRecovery ? /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
96
|
-
onClick: () => onRecoverWorkspace(info.row.original),
|
|
97
|
-
children: [/* @__PURE__ */ jsx(RefreshCcw, { className: "mr-2 size-4" }), "Recover workspace"]
|
|
98
|
-
}) : null, /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
99
|
-
className: "text-[var(--destructive)]",
|
|
100
|
-
onClick: () => onDeleteWorkspace(info.row.original),
|
|
101
|
-
children: [/* @__PURE__ */ jsx(Trash2, { className: "mr-2 size-4" }), "Delete workspace"]
|
|
102
|
-
})]
|
|
103
|
-
})] }),
|
|
104
|
-
header: "",
|
|
105
|
-
id: "actions"
|
|
106
|
-
})
|
|
107
|
-
];
|
|
108
|
-
var CursorWorkspacesTable = ({ onDeleteWorkspace, onRecoverWorkspace, workspaces }) => {
|
|
109
|
-
return /* @__PURE__ */ jsx(DataTable, {
|
|
110
|
-
columns: columns(onDeleteWorkspace, onRecoverWorkspace),
|
|
111
|
-
data: workspaces,
|
|
112
|
-
emptyMessage: "No Cursor workspaces match the current search."
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/routes/cursor.index.tsx?tsr-split=component
|
|
117
|
-
var CursorPage = () => {
|
|
118
|
-
const queryClient = useQueryClient();
|
|
119
|
-
const workspaces = useSuspenseQuery(cursorWorkspacesQueryOptions()).data;
|
|
120
|
-
const [searchInput, setSearchInput] = useState("");
|
|
121
|
-
const [pendingDelete, setPendingDelete] = useState(null);
|
|
122
|
-
const deferredSearch = useDeferredValue(searchInput);
|
|
123
|
-
const invalidateCursorQueries = async () => {
|
|
124
|
-
await queryClient.invalidateQueries({ queryKey: ["cursor-workspaces"] });
|
|
125
|
-
};
|
|
126
|
-
const recoverWorkspaceMutation = useMutation({
|
|
127
|
-
mutationFn: (workspace) => recoverCursorWorkspaceFn({ data: {
|
|
128
|
-
apply: true,
|
|
129
|
-
workspaceKey: workspace.key
|
|
130
|
-
} }),
|
|
131
|
-
onSuccess: invalidateCursorQueries
|
|
132
|
-
});
|
|
133
|
-
const deleteWorkspaceMutation = useMutation({
|
|
134
|
-
mutationFn: (workspace) => deleteCursorWorkspaceFn({ data: { workspaceKey: workspace.key } }),
|
|
135
|
-
onSuccess: async () => {
|
|
136
|
-
await invalidateCursorQueries();
|
|
137
|
-
setPendingDelete(null);
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
const visibleWorkspaces = workspaces.filter((workspace) => matchesTextQuery(deferredSearch, [
|
|
141
|
-
workspace.label,
|
|
142
|
-
workspace.uri,
|
|
143
|
-
workspace.folders.join("\n"),
|
|
144
|
-
workspace.kind
|
|
145
|
-
]));
|
|
146
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
147
|
-
className: "space-y-6",
|
|
148
|
-
children: [
|
|
149
|
-
/* @__PURE__ */ jsx(PageHeader, {
|
|
150
|
-
actions: /* @__PURE__ */ jsx(ListSearchInput, {
|
|
151
|
-
placeholder: "Search workspace name or path",
|
|
152
|
-
value: searchInput,
|
|
153
|
-
onValueChange: setSearchInput
|
|
154
|
-
}),
|
|
155
|
-
eyebrow: "Inventory",
|
|
156
|
-
subtitle: "Workspace groups are derived from Cursor storage buckets and activity metadata. Open a workspace to inspect, export, recover, or delete its threads.",
|
|
157
|
-
title: "Cursor"
|
|
158
|
-
}),
|
|
159
|
-
/* @__PURE__ */ jsx(CursorWorkspacesTable, {
|
|
160
|
-
onDeleteWorkspace: setPendingDelete,
|
|
161
|
-
onRecoverWorkspace: (workspace) => recoverWorkspaceMutation.mutate(workspace),
|
|
162
|
-
workspaces: visibleWorkspaces
|
|
163
|
-
}),
|
|
164
|
-
recoverWorkspaceMutation.isError ? /* @__PURE__ */ jsx("p", {
|
|
165
|
-
className: "text-[var(--destructive)] text-sm",
|
|
166
|
-
children: recoverWorkspaceMutation.error instanceof Error ? recoverWorkspaceMutation.error.message : "Workspace recovery failed"
|
|
167
|
-
}) : null,
|
|
168
|
-
deleteWorkspaceMutation.isError ? /* @__PURE__ */ jsx("p", {
|
|
169
|
-
className: "text-[var(--destructive)] text-sm",
|
|
170
|
-
children: deleteWorkspaceMutation.error instanceof Error ? deleteWorkspaceMutation.error.message : "Workspace deletion failed"
|
|
171
|
-
}) : null,
|
|
172
|
-
/* @__PURE__ */ jsx(DeleteConfirmDialog, {
|
|
173
|
-
confirmLabel: deleteWorkspaceMutation.isPending ? "Deleting..." : "Delete workspace",
|
|
174
|
-
description: pendingDelete ? `Permanently delete every thread for "${pendingDelete.label}" from Cursor's database and remove any on-disk transcript directories. Quit Cursor first. This cannot be undone.` : "",
|
|
175
|
-
open: pendingDelete !== null,
|
|
176
|
-
title: "Delete Cursor workspace?",
|
|
177
|
-
onConfirm: () => {
|
|
178
|
-
if (!pendingDelete) return;
|
|
179
|
-
deleteWorkspaceMutation.mutate(pendingDelete);
|
|
180
|
-
},
|
|
181
|
-
onOpenChange: (open) => {
|
|
182
|
-
if (!open) setPendingDelete(null);
|
|
183
|
-
}
|
|
184
|
-
})
|
|
185
|
-
]
|
|
186
|
-
});
|
|
187
|
-
};
|
|
188
|
-
//#endregion
|
|
189
|
-
export { CursorPage as component };
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-C_uf36nf.js";
|
|
2
|
-
import { t as Checkbox } from "./checkbox-C0hovF41.js";
|
|
3
|
-
import { useRef, useState } from "react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { ArrowDownUp } from "lucide-react";
|
|
6
|
-
import { flexRender, getCoreRowModel, getFilteredRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
7
|
-
//#region src/components/ui/table.tsx
|
|
8
|
-
function Table({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx("div", {
|
|
10
|
-
"data-slot": "table-container",
|
|
11
|
-
className: "relative w-full overflow-x-auto",
|
|
12
|
-
children: /* @__PURE__ */ jsx("table", {
|
|
13
|
-
"data-slot": "table",
|
|
14
|
-
className: cn("w-full caption-bottom text-sm", className),
|
|
15
|
-
...props
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function TableHeader({ className, ...props }) {
|
|
20
|
-
return /* @__PURE__ */ jsx("thead", {
|
|
21
|
-
"data-slot": "table-header",
|
|
22
|
-
className: cn("[&_tr]:border-b", className),
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function TableBody({ className, ...props }) {
|
|
27
|
-
return /* @__PURE__ */ jsx("tbody", {
|
|
28
|
-
"data-slot": "table-body",
|
|
29
|
-
className: cn("[&_tr:last-child]:border-0", className),
|
|
30
|
-
...props
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function TableRow({ className, ...props }) {
|
|
34
|
-
return /* @__PURE__ */ jsx("tr", {
|
|
35
|
-
"data-slot": "table-row",
|
|
36
|
-
className: cn("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", className),
|
|
37
|
-
...props
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
function TableHead({ className, ...props }) {
|
|
41
|
-
return /* @__PURE__ */ jsx("th", {
|
|
42
|
-
"data-slot": "table-head",
|
|
43
|
-
className: cn("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
|
|
44
|
-
...props
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
function TableCell({ className, ...props }) {
|
|
48
|
-
return /* @__PURE__ */ jsx("td", {
|
|
49
|
-
"data-slot": "table-cell",
|
|
50
|
-
className: cn("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
|
|
51
|
-
...props
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/components/data-table.tsx
|
|
56
|
-
var getSortIndicator = (value) => {
|
|
57
|
-
if (value === "asc") return "↑";
|
|
58
|
-
if (value === "desc") return "↓";
|
|
59
|
-
return /* @__PURE__ */ jsx(ArrowDownUp, { className: "size-3" });
|
|
60
|
-
};
|
|
61
|
-
var getRangeRowIds = (visibleRowIds, anchorRowId, targetRowId) => {
|
|
62
|
-
const anchorIndex = visibleRowIds.indexOf(anchorRowId);
|
|
63
|
-
const targetIndex = visibleRowIds.indexOf(targetRowId);
|
|
64
|
-
if (anchorIndex === -1 || targetIndex === -1) return null;
|
|
65
|
-
const [startIndex, endIndex] = anchorIndex <= targetIndex ? [anchorIndex, targetIndex] : [targetIndex, anchorIndex];
|
|
66
|
-
return visibleRowIds.slice(startIndex, endIndex + 1);
|
|
67
|
-
};
|
|
68
|
-
var applySelectionState = (selection, rowIds, checked) => {
|
|
69
|
-
const nextSelection = { ...selection };
|
|
70
|
-
for (const rowId of rowIds) {
|
|
71
|
-
if (checked) {
|
|
72
|
-
nextSelection[rowId] = true;
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
delete nextSelection[rowId];
|
|
76
|
-
}
|
|
77
|
-
return nextSelection;
|
|
78
|
-
};
|
|
79
|
-
function DataTable({ className, columns, data, emptyMessage, enableRowSelection = false, getRowId, initialSorting = [], onRowClick, renderToolbar }) {
|
|
80
|
-
const [sorting, setSorting] = useState(initialSorting);
|
|
81
|
-
const [rowSelection, setRowSelection] = useState({});
|
|
82
|
-
const lastSelectedRowIdRef = useRef(null);
|
|
83
|
-
const updateSelectionForRow = (rowId, checked, shiftKey) => {
|
|
84
|
-
const visibleRowIds = table.getRowModel().rows.map((row) => row.id);
|
|
85
|
-
if (shiftKey && lastSelectedRowIdRef.current) {
|
|
86
|
-
const rangeRowIds = getRangeRowIds(visibleRowIds, lastSelectedRowIdRef.current, rowId);
|
|
87
|
-
if (rangeRowIds) {
|
|
88
|
-
setRowSelection(applySelectionState(rowSelection, rangeRowIds, checked));
|
|
89
|
-
lastSelectedRowIdRef.current = rowId;
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
setRowSelection(applySelectionState(rowSelection, [rowId], checked));
|
|
94
|
-
lastSelectedRowIdRef.current = rowId;
|
|
95
|
-
};
|
|
96
|
-
const tableColumns = enableRowSelection ? [{
|
|
97
|
-
cell: ({ row }) => /* @__PURE__ */ jsx(Checkbox, {
|
|
98
|
-
"aria-label": `Select row ${row.id}`,
|
|
99
|
-
checked: row.getIsSelected(),
|
|
100
|
-
onClick: (event) => {
|
|
101
|
-
event.stopPropagation();
|
|
102
|
-
event.preventDefault();
|
|
103
|
-
updateSelectionForRow(row.id, !row.getIsSelected(), event.shiftKey);
|
|
104
|
-
},
|
|
105
|
-
onCheckedChange: (checked) => {
|
|
106
|
-
if (typeof checked !== "boolean") return;
|
|
107
|
-
updateSelectionForRow(row.id, checked, false);
|
|
108
|
-
}
|
|
109
|
-
}),
|
|
110
|
-
enableSorting: false,
|
|
111
|
-
header: ({ table }) => /* @__PURE__ */ jsx(Checkbox, {
|
|
112
|
-
"aria-label": "Select all rows",
|
|
113
|
-
checked: table.getIsAllPageRowsSelected() ? true : table.getIsSomePageRowsSelected() ? "indeterminate" : false,
|
|
114
|
-
onCheckedChange: (checked) => table.toggleAllPageRowsSelected(checked === true)
|
|
115
|
-
}),
|
|
116
|
-
id: "select"
|
|
117
|
-
}, ...columns] : [...columns];
|
|
118
|
-
const table = useReactTable({
|
|
119
|
-
autoResetPageIndex: false,
|
|
120
|
-
columns: tableColumns,
|
|
121
|
-
data,
|
|
122
|
-
enableRowSelection,
|
|
123
|
-
enableSortingRemoval: false,
|
|
124
|
-
getCoreRowModel: getCoreRowModel(),
|
|
125
|
-
getFilteredRowModel: getFilteredRowModel(),
|
|
126
|
-
getRowId,
|
|
127
|
-
getSortedRowModel: getSortedRowModel(),
|
|
128
|
-
onRowSelectionChange: setRowSelection,
|
|
129
|
-
onSortingChange: setSorting,
|
|
130
|
-
sortDescFirst: false,
|
|
131
|
-
state: {
|
|
132
|
-
rowSelection,
|
|
133
|
-
sorting
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
const selectedRows = table.getSelectedRowModel().rows.map((row) => row.original);
|
|
137
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
138
|
-
className: cn("w-full overflow-x-auto rounded-[1.5rem] border border-[var(--border)] bg-[var(--panel)]", className),
|
|
139
|
-
children: [renderToolbar ? /* @__PURE__ */ jsx("div", {
|
|
140
|
-
className: "border-[var(--border)] border-b px-4 py-3",
|
|
141
|
-
children: renderToolbar({
|
|
142
|
-
clearSelection: () => setRowSelection({}),
|
|
143
|
-
selectedRows
|
|
144
|
-
})
|
|
145
|
-
}) : null, /* @__PURE__ */ jsxs(Table, {
|
|
146
|
-
className: "min-w-full",
|
|
147
|
-
children: [/* @__PURE__ */ jsx(TableHeader, {
|
|
148
|
-
className: "bg-[var(--panel-secondary)]",
|
|
149
|
-
children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(TableRow, {
|
|
150
|
-
className: "border-[var(--border)] hover:bg-transparent",
|
|
151
|
-
children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx(TableHead, {
|
|
152
|
-
className: "h-10 whitespace-nowrap px-4 font-semibold text-[11px] text-[var(--muted-foreground)] uppercase tracking-[0.18em]",
|
|
153
|
-
children: header.isPlaceholder ? null : header.column.getCanSort() ? /* @__PURE__ */ jsxs("button", {
|
|
154
|
-
className: "inline-flex items-center gap-1.5 text-left",
|
|
155
|
-
type: "button",
|
|
156
|
-
onClick: header.column.getToggleSortingHandler(),
|
|
157
|
-
children: [/* @__PURE__ */ jsx("span", { children: flexRender(header.column.columnDef.header, header.getContext()) }), /* @__PURE__ */ jsx("span", {
|
|
158
|
-
"aria-hidden": "true",
|
|
159
|
-
className: "text-[10px]",
|
|
160
|
-
children: getSortIndicator(header.column.getIsSorted())
|
|
161
|
-
})]
|
|
162
|
-
}) : flexRender(header.column.columnDef.header, header.getContext())
|
|
163
|
-
}, header.id))
|
|
164
|
-
}, headerGroup.id))
|
|
165
|
-
}), /* @__PURE__ */ jsx(TableBody, { children: table.getRowModel().rows.length === 0 ? /* @__PURE__ */ jsx(TableRow, {
|
|
166
|
-
className: "border-[var(--border)]",
|
|
167
|
-
children: /* @__PURE__ */ jsx(TableCell, {
|
|
168
|
-
className: "px-4 py-10 text-center text-[var(--muted-foreground)] text-sm",
|
|
169
|
-
colSpan: tableColumns.length,
|
|
170
|
-
children: emptyMessage
|
|
171
|
-
})
|
|
172
|
-
}) : table.getRowModel().rows.map((row) => {
|
|
173
|
-
return /* @__PURE__ */ jsx(TableRow, {
|
|
174
|
-
className: cn("border-[var(--border)] hover:bg-[var(--panel-secondary)]/75", Boolean(onRowClick) ? "cursor-pointer" : ""),
|
|
175
|
-
onClick: () => {
|
|
176
|
-
if (!onRowClick) return;
|
|
177
|
-
onRowClick(row.original);
|
|
178
|
-
},
|
|
179
|
-
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx(TableCell, {
|
|
180
|
-
className: "px-4 py-2.5 align-top",
|
|
181
|
-
children: flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
182
|
-
}, cell.id))
|
|
183
|
-
}, row.id);
|
|
184
|
-
}) })]
|
|
185
|
-
})]
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
export { DataTable as t };
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-C_uf36nf.js";
|
|
2
|
-
import { t as Button } from "./button-CmTDnzOn.js";
|
|
3
|
-
import { t as Checkbox$1 } from "./checkbox-C0hovF41.js";
|
|
4
|
-
import { useEffect, useId, useState } from "react";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { AlertDialog } from "radix-ui";
|
|
7
|
-
//#region src/components/ui/alert-dialog.tsx
|
|
8
|
-
function AlertDialog$1({ ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(AlertDialog.Root, {
|
|
10
|
-
"data-slot": "alert-dialog",
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function AlertDialogPortal({ ...props }) {
|
|
15
|
-
return /* @__PURE__ */ jsx(AlertDialog.Portal, {
|
|
16
|
-
"data-slot": "alert-dialog-portal",
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function AlertDialogOverlay({ className, ...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx(AlertDialog.Overlay, {
|
|
22
|
-
"data-slot": "alert-dialog-overlay",
|
|
23
|
-
className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in", className),
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function AlertDialogContent({ className, size = "default", ...props }) {
|
|
28
|
-
return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {}), /* @__PURE__ */ jsx(AlertDialog.Content, {
|
|
29
|
-
"data-slot": "alert-dialog-content",
|
|
30
|
-
"data-size": size,
|
|
31
|
-
className: cn("group/alert-dialog-content data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=open]:animate-in data-[size=default]:sm:max-w-lg", className),
|
|
32
|
-
...props
|
|
33
|
-
})] });
|
|
34
|
-
}
|
|
35
|
-
function AlertDialogHeader({ className, ...props }) {
|
|
36
|
-
return /* @__PURE__ */ jsx("div", {
|
|
37
|
-
"data-slot": "alert-dialog-header",
|
|
38
|
-
className: cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
|
|
39
|
-
...props
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function AlertDialogFooter({ className, ...props }) {
|
|
43
|
-
return /* @__PURE__ */ jsx("div", {
|
|
44
|
-
"data-slot": "alert-dialog-footer",
|
|
45
|
-
className: cn("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", className),
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function AlertDialogTitle({ className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */ jsx(AlertDialog.Title, {
|
|
51
|
-
"data-slot": "alert-dialog-title",
|
|
52
|
-
className: cn("font-semibold text-lg sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className),
|
|
53
|
-
...props
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
function AlertDialogDescription({ className, ...props }) {
|
|
57
|
-
return /* @__PURE__ */ jsx(AlertDialog.Description, {
|
|
58
|
-
"data-slot": "alert-dialog-description",
|
|
59
|
-
className: cn("text-muted-foreground text-sm", className),
|
|
60
|
-
...props
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function AlertDialogAction({ className, variant = "default", size = "default", ...props }) {
|
|
64
|
-
return /* @__PURE__ */ jsx(Button, {
|
|
65
|
-
variant,
|
|
66
|
-
size,
|
|
67
|
-
asChild: true,
|
|
68
|
-
children: /* @__PURE__ */ jsx(AlertDialog.Action, {
|
|
69
|
-
"data-slot": "alert-dialog-action",
|
|
70
|
-
className: cn(className),
|
|
71
|
-
...props
|
|
72
|
-
})
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function AlertDialogCancel({ className, variant = "outline", size = "default", ...props }) {
|
|
76
|
-
return /* @__PURE__ */ jsx(Button, {
|
|
77
|
-
variant,
|
|
78
|
-
size,
|
|
79
|
-
asChild: true,
|
|
80
|
-
children: /* @__PURE__ */ jsx(AlertDialog.Cancel, {
|
|
81
|
-
"data-slot": "alert-dialog-cancel",
|
|
82
|
-
className: cn(className),
|
|
83
|
-
...props
|
|
84
|
-
})
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region src/components/delete-confirm-dialog.tsx
|
|
89
|
-
function DeleteConfirmDialog({ confirmLabel = "Delete", defaultDeleteSessionFiles = false, description, errorMessage = null, open, showDeleteSessionFilesOption = false, title, onConfirm, onOpenChange }) {
|
|
90
|
-
const checkboxId = useId();
|
|
91
|
-
const checkboxDescriptionId = useId();
|
|
92
|
-
const [deleteSessionFiles, setDeleteSessionFiles] = useState(defaultDeleteSessionFiles);
|
|
93
|
-
useEffect(() => {
|
|
94
|
-
if (!open) setDeleteSessionFiles(defaultDeleteSessionFiles);
|
|
95
|
-
}, [defaultDeleteSessionFiles, open]);
|
|
96
|
-
return /* @__PURE__ */ jsx(AlertDialog$1, {
|
|
97
|
-
open,
|
|
98
|
-
onOpenChange,
|
|
99
|
-
children: /* @__PURE__ */ jsxs(AlertDialogContent, {
|
|
100
|
-
className: "border-[var(--border)] bg-[var(--panel)] text-[var(--foreground)]",
|
|
101
|
-
children: [
|
|
102
|
-
/* @__PURE__ */ jsxs(AlertDialogHeader, { children: [/* @__PURE__ */ jsx(AlertDialogTitle, { children: title }), /* @__PURE__ */ jsx(AlertDialogDescription, {
|
|
103
|
-
className: "text-[var(--muted-foreground)]",
|
|
104
|
-
children: description
|
|
105
|
-
})] }),
|
|
106
|
-
showDeleteSessionFilesOption ? /* @__PURE__ */ jsxs("div", {
|
|
107
|
-
className: "flex items-start gap-3 rounded-xl border border-[var(--border)] bg-[var(--background)]/70 px-4 py-3 text-sm",
|
|
108
|
-
children: [/* @__PURE__ */ jsx(Checkbox$1, {
|
|
109
|
-
"aria-label": "Delete Session files",
|
|
110
|
-
"aria-describedby": checkboxDescriptionId,
|
|
111
|
-
checked: deleteSessionFiles,
|
|
112
|
-
id: checkboxId,
|
|
113
|
-
onCheckedChange: (checked) => setDeleteSessionFiles(checked === true)
|
|
114
|
-
}), /* @__PURE__ */ jsxs("span", {
|
|
115
|
-
className: "space-y-1",
|
|
116
|
-
children: [/* @__PURE__ */ jsx("label", {
|
|
117
|
-
className: "block font-medium",
|
|
118
|
-
htmlFor: checkboxId,
|
|
119
|
-
children: "Delete Session files"
|
|
120
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
121
|
-
className: "block text-[var(--muted-foreground)] text-xs",
|
|
122
|
-
id: checkboxDescriptionId,
|
|
123
|
-
children: "Remove the rollout JSONL from disk as well, so Codex cannot backfill this thread later."
|
|
124
|
-
})]
|
|
125
|
-
})]
|
|
126
|
-
}) : null,
|
|
127
|
-
errorMessage ? /* @__PURE__ */ jsx("p", {
|
|
128
|
-
className: "text-[var(--destructive)] text-sm",
|
|
129
|
-
children: errorMessage
|
|
130
|
-
}) : null,
|
|
131
|
-
/* @__PURE__ */ jsxs(AlertDialogFooter, { children: [/* @__PURE__ */ jsx(AlertDialogCancel, {
|
|
132
|
-
className: "border-[var(--border)]",
|
|
133
|
-
children: "Cancel"
|
|
134
|
-
}), /* @__PURE__ */ jsx(AlertDialogAction, {
|
|
135
|
-
className: "bg-[var(--destructive)] text-[var(--destructive-foreground)] hover:bg-[var(--destructive)]/90",
|
|
136
|
-
onClick: () => onConfirm({ deleteSessionFiles }),
|
|
137
|
-
children: confirmLabel
|
|
138
|
-
})] })
|
|
139
|
-
]
|
|
140
|
-
})
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
//#endregion
|
|
144
|
-
export { DeleteConfirmDialog as t };
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
//#region src/lib/download.ts
|
|
2
|
-
var DEFAULT_DOWNLOAD_ATTEMPTS = 6;
|
|
3
|
-
var DEFAULT_DOWNLOAD_RETRY_DELAY_MS = 250;
|
|
4
|
-
var DEFAULT_INLINE_REVOKE_DELAY_MS = 3e4;
|
|
5
|
-
var logDownloadEvent = (logger, level, event, details) => {
|
|
6
|
-
logger[level](`[spiracha:download] ${event}`, details);
|
|
7
|
-
};
|
|
8
|
-
var delay = (delayMs) => new Promise((resolve) => {
|
|
9
|
-
window.setTimeout(resolve, delayMs);
|
|
10
|
-
});
|
|
11
|
-
var triggerAnchorDownload = (documentRef, href, fileName) => {
|
|
12
|
-
const link = documentRef.createElement("a");
|
|
13
|
-
link.href = href;
|
|
14
|
-
link.download = fileName;
|
|
15
|
-
documentRef.body.append(link);
|
|
16
|
-
link.click();
|
|
17
|
-
link.remove();
|
|
18
|
-
};
|
|
19
|
-
var isReadyStatus = (status) => {
|
|
20
|
-
return status >= 200 && status < 400 || status === 405;
|
|
21
|
-
};
|
|
22
|
-
var waitForDownloadUrlAvailability = async (downloadUrl, fileName, { fetchImpl = fetch, logger = console, maxAttempts = DEFAULT_DOWNLOAD_ATTEMPTS, retryDelayMs = DEFAULT_DOWNLOAD_RETRY_DELAY_MS, sleep = delay } = {}) => {
|
|
23
|
-
for (let attempt = 1; attempt <= maxAttempts; attempt += 1) {
|
|
24
|
-
try {
|
|
25
|
-
const response = await fetchImpl(downloadUrl, {
|
|
26
|
-
cache: "no-store",
|
|
27
|
-
method: "HEAD"
|
|
28
|
-
});
|
|
29
|
-
if (isReadyStatus(response.status)) {
|
|
30
|
-
logDownloadEvent(logger, "info", "url_ready", {
|
|
31
|
-
attempt,
|
|
32
|
-
downloadUrl,
|
|
33
|
-
fileName,
|
|
34
|
-
status: response.status
|
|
35
|
-
});
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
logDownloadEvent(logger, "warn", "url_not_ready", {
|
|
39
|
-
attempt,
|
|
40
|
-
downloadUrl,
|
|
41
|
-
fileName,
|
|
42
|
-
status: response.status
|
|
43
|
-
});
|
|
44
|
-
} catch (error) {
|
|
45
|
-
logDownloadEvent(logger, "warn", "url_probe_failed", {
|
|
46
|
-
attempt,
|
|
47
|
-
downloadUrl,
|
|
48
|
-
error: error instanceof Error ? error.message : String(error),
|
|
49
|
-
fileName
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
if (attempt < maxAttempts) await sleep(retryDelayMs);
|
|
53
|
-
}
|
|
54
|
-
throw new Error(`Download file was not available after ${maxAttempts} attempts: ${fileName}`);
|
|
55
|
-
};
|
|
56
|
-
var downloadUrlFile = async (fileName, downloadUrl, { documentRef = document, fetchImpl = fetch, logger = console, maxAttempts = DEFAULT_DOWNLOAD_ATTEMPTS, retryDelayMs = DEFAULT_DOWNLOAD_RETRY_DELAY_MS, sleep = delay } = {}) => {
|
|
57
|
-
logDownloadEvent(logger, "info", "start", {
|
|
58
|
-
downloadUrl,
|
|
59
|
-
fileName
|
|
60
|
-
});
|
|
61
|
-
await waitForDownloadUrlAvailability(downloadUrl, fileName, {
|
|
62
|
-
fetchImpl,
|
|
63
|
-
logger,
|
|
64
|
-
maxAttempts,
|
|
65
|
-
retryDelayMs,
|
|
66
|
-
sleep
|
|
67
|
-
});
|
|
68
|
-
triggerAnchorDownload(documentRef, downloadUrl, fileName);
|
|
69
|
-
logDownloadEvent(logger, "info", "triggered", {
|
|
70
|
-
downloadUrl,
|
|
71
|
-
fileName
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
var downloadTextFile = (fileName, content, mimeType, { createObjectUrl = (blob) => URL.createObjectURL(blob), documentRef = document, logger = console, revokeDelayMs = DEFAULT_INLINE_REVOKE_DELAY_MS, revokeObjectUrl = (url) => URL.revokeObjectURL(url), schedule = (callback, delayMs) => {
|
|
75
|
-
window.setTimeout(callback, delayMs);
|
|
76
|
-
} } = {}) => {
|
|
77
|
-
logDownloadEvent(logger, "info", "inline_start", {
|
|
78
|
-
fileName,
|
|
79
|
-
mimeType,
|
|
80
|
-
sizeBytes: content.length
|
|
81
|
-
});
|
|
82
|
-
const url = createObjectUrl(new Blob([content], { type: mimeType }));
|
|
83
|
-
triggerAnchorDownload(documentRef, url, fileName);
|
|
84
|
-
schedule(() => revokeObjectUrl(url), revokeDelayMs);
|
|
85
|
-
logDownloadEvent(logger, "info", "inline_triggered", {
|
|
86
|
-
fileName,
|
|
87
|
-
mimeType,
|
|
88
|
-
sizeBytes: content.length
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
//#endregion
|
|
92
|
-
export { downloadUrlFile as n, downloadTextFile as t };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-C_uf36nf.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import "lucide-react";
|
|
4
|
-
import { DropdownMenu } from "radix-ui";
|
|
5
|
-
//#region src/components/ui/dropdown-menu.tsx
|
|
6
|
-
function DropdownMenu$1({ ...props }) {
|
|
7
|
-
return /* @__PURE__ */ jsx(DropdownMenu.Root, {
|
|
8
|
-
"data-slot": "dropdown-menu",
|
|
9
|
-
...props
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function DropdownMenuTrigger({ ...props }) {
|
|
13
|
-
return /* @__PURE__ */ jsx(DropdownMenu.Trigger, {
|
|
14
|
-
"data-slot": "dropdown-menu-trigger",
|
|
15
|
-
...props
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
19
|
-
return /* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx(DropdownMenu.Content, {
|
|
20
|
-
"data-slot": "dropdown-menu-content",
|
|
21
|
-
sideOffset,
|
|
22
|
-
className: cn("data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in", className),
|
|
23
|
-
...props
|
|
24
|
-
}) });
|
|
25
|
-
}
|
|
26
|
-
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
27
|
-
return /* @__PURE__ */ jsx(DropdownMenu.Item, {
|
|
28
|
-
"data-slot": "dropdown-menu-item",
|
|
29
|
-
"data-inset": inset,
|
|
30
|
-
"data-variant": variant,
|
|
31
|
-
className: cn("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive!", className),
|
|
32
|
-
...props
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { DropdownMenuTrigger as i, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenu$1 as t };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.14/node_modules/@tanstack/start-server-core/dist/esm/empty-plugin-adapters.js
|
|
2
|
-
var pluginSerializationAdapters = [];
|
|
3
|
-
var hasPluginAdapters = false;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { hasPluginAdapters, pluginSerializationAdapters };
|