claude-mux 0.7.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/.beads/README.md +81 -0
- package/.beads/config.yaml +62 -0
- package/.beads/interactions.jsonl +0 -0
- package/.beads/issues.jsonl +5 -0
- package/.beads/metadata.json +4 -0
- package/.eslintrc.json +25 -0
- package/.gitattributes +3 -0
- package/.prettierrc +7 -0
- package/CLAUDE.md +123 -0
- package/LICENSE +21 -0
- package/PLAN-beads-integration.md +250 -0
- package/README.md +366 -0
- package/dist/app.d.ts +2 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +147 -0
- package/dist/app.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +65 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/index.d.ts +5 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +5 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/serve.d.ts +8 -0
- package/dist/commands/serve.d.ts.map +1 -0
- package/dist/commands/serve.js +59 -0
- package/dist/commands/serve.js.map +1 -0
- package/dist/commands/setup.d.ts +4 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +12 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/commands/tui.d.ts +9 -0
- package/dist/commands/tui.d.ts.map +1 -0
- package/dist/commands/tui.js +234 -0
- package/dist/commands/tui.js.map +1 -0
- package/dist/commands/uninstall.d.ts +4 -0
- package/dist/commands/uninstall.d.ts.map +1 -0
- package/dist/commands/uninstall.js +12 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/components/Header.d.ts +7 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Header.js +14 -0
- package/dist/components/Header.js.map +1 -0
- package/dist/components/HelpDialog.d.ts +6 -0
- package/dist/components/HelpDialog.d.ts.map +1 -0
- package/dist/components/HelpDialog.js +14 -0
- package/dist/components/HelpDialog.js.map +1 -0
- package/dist/components/SessionEntry.d.ts +17 -0
- package/dist/components/SessionEntry.d.ts.map +1 -0
- package/dist/components/SessionEntry.js +102 -0
- package/dist/components/SessionEntry.js.map +1 -0
- package/dist/components/SessionList.d.ts +14 -0
- package/dist/components/SessionList.d.ts.map +1 -0
- package/dist/components/SessionList.js +57 -0
- package/dist/components/SessionList.js.map +1 -0
- package/dist/components/StatusBar.d.ts +6 -0
- package/dist/components/StatusBar.d.ts.map +1 -0
- package/dist/components/StatusBar.js +7 -0
- package/dist/components/StatusBar.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +6 -0
- package/dist/components/index.js.map +1 -0
- package/dist/db/index.d.ts +2 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +3 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/schema.d.ts +4 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/db/schema.js +23 -0
- package/dist/db/schema.js.map +1 -0
- package/dist/db/sessions-json.d.ts +85 -0
- package/dist/db/sessions-json.d.ts.map +1 -0
- package/dist/db/sessions-json.js +242 -0
- package/dist/db/sessions-json.js.map +1 -0
- package/dist/db/sessions.d.ts +38 -0
- package/dist/db/sessions.d.ts.map +1 -0
- package/dist/db/sessions.js +87 -0
- package/dist/db/sessions.js.map +1 -0
- package/dist/hooks/claude-mux-hook.d.ts +15 -0
- package/dist/hooks/claude-mux-hook.d.ts.map +1 -0
- package/dist/hooks/claude-mux-hook.js +396 -0
- package/dist/hooks/claude-mux-hook.js.map +1 -0
- package/dist/hooks/claude-watch-hook.d.ts +15 -0
- package/dist/hooks/claude-watch-hook.d.ts.map +1 -0
- package/dist/hooks/claude-watch-hook.js +396 -0
- package/dist/hooks/claude-watch-hook.js.map +1 -0
- package/dist/server/custom-server.d.ts +13 -0
- package/dist/server/custom-server.d.ts.map +1 -0
- package/dist/server/custom-server.js +63 -0
- package/dist/server/custom-server.js.map +1 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +1143 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/middleware/cors.d.ts +2 -0
- package/dist/server/middleware/cors.d.ts.map +1 -0
- package/dist/server/middleware/cors.js +11 -0
- package/dist/server/middleware/cors.js.map +1 -0
- package/dist/server/routes/sessions.d.ts +3 -0
- package/dist/server/routes/sessions.d.ts.map +1 -0
- package/dist/server/routes/sessions.js +78 -0
- package/dist/server/routes/sessions.js.map +1 -0
- package/dist/server/routes/stream.d.ts +3 -0
- package/dist/server/routes/stream.d.ts.map +1 -0
- package/dist/server/routes/stream.js +45 -0
- package/dist/server/routes/stream.js.map +1 -0
- package/dist/server/types.d.ts +28 -0
- package/dist/server/types.d.ts.map +1 -0
- package/dist/server/types.js +2 -0
- package/dist/server/types.js.map +1 -0
- package/dist/server/watcher.d.ts +22 -0
- package/dist/server/watcher.d.ts.map +1 -0
- package/dist/server/watcher.js +119 -0
- package/dist/server/watcher.js.map +1 -0
- package/dist/server/websocket.d.ts +51 -0
- package/dist/server/websocket.d.ts.map +1 -0
- package/dist/server/websocket.js +156 -0
- package/dist/server/websocket.js.map +1 -0
- package/dist/server/ws-handlers.d.ts +174 -0
- package/dist/server/ws-handlers.d.ts.map +1 -0
- package/dist/server/ws-handlers.js +695 -0
- package/dist/server/ws-handlers.js.map +1 -0
- package/dist/setup/hooks.d.ts +44 -0
- package/dist/setup/hooks.d.ts.map +1 -0
- package/dist/setup/hooks.js +267 -0
- package/dist/setup/hooks.js.map +1 -0
- package/dist/setup/index.d.ts +3 -0
- package/dist/setup/index.d.ts.map +1 -0
- package/dist/setup/index.js +3 -0
- package/dist/setup/index.js.map +1 -0
- package/dist/setup/wizard.d.ts +4 -0
- package/dist/setup/wizard.d.ts.map +1 -0
- package/dist/setup/wizard.js +72 -0
- package/dist/setup/wizard.js.map +1 -0
- package/dist/tmux/detect.d.ts +25 -0
- package/dist/tmux/detect.d.ts.map +1 -0
- package/dist/tmux/detect.js +71 -0
- package/dist/tmux/detect.js.map +1 -0
- package/dist/tmux/navigate.d.ts +13 -0
- package/dist/tmux/navigate.d.ts.map +1 -0
- package/dist/tmux/navigate.js +41 -0
- package/dist/tmux/navigate.js.map +1 -0
- package/dist/tmux/pane.d.ts +57 -0
- package/dist/tmux/pane.d.ts.map +1 -0
- package/dist/tmux/pane.js +156 -0
- package/dist/tmux/pane.js.map +1 -0
- package/dist/tmux/resize.d.ts +10 -0
- package/dist/tmux/resize.d.ts.map +1 -0
- package/dist/tmux/resize.js +25 -0
- package/dist/tmux/resize.js.map +1 -0
- package/dist/utils/paths.d.ts +7 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +9 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/pid.d.ts +5 -0
- package/dist/utils/pid.d.ts.map +1 -0
- package/dist/utils/pid.js +14 -0
- package/dist/utils/pid.js.map +1 -0
- package/dist/utils/version.d.ts +6 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +6 -0
- package/dist/utils/version.js.map +1 -0
- package/dist/web/client/_app/immutable/assets/0.WptSHSUl.css +1 -0
- package/dist/web/client/_app/immutable/assets/2.s6Kx4oz1.css +1 -0
- package/dist/web/client/_app/immutable/assets/4.DoNWy7tW.css +1 -0
- package/dist/web/client/_app/immutable/assets/AllSessionsPanel.CGHY3HLy.css +1 -0
- package/dist/web/client/_app/immutable/chunks/-3mUPuLP.js +1 -0
- package/dist/web/client/_app/immutable/chunks/B5U4_V3d.js +1 -0
- package/dist/web/client/_app/immutable/chunks/BHwiZXRv.js +1 -0
- package/dist/web/client/_app/immutable/chunks/C9P-coqM.js +1 -0
- package/dist/web/client/_app/immutable/chunks/Cegv0r8x.js +1 -0
- package/dist/web/client/_app/immutable/chunks/DU91Ml7U.js +3 -0
- package/dist/web/client/_app/immutable/chunks/DmdO6ygw.js +1 -0
- package/dist/web/client/_app/immutable/chunks/HKNo9LID.js +5 -0
- package/dist/web/client/_app/immutable/chunks/U4ip-C0d.js +2 -0
- package/dist/web/client/_app/immutable/chunks/cgUjKIhX.js +2 -0
- package/dist/web/client/_app/immutable/entry/app.CGIBnoln.js +2 -0
- package/dist/web/client/_app/immutable/entry/start.CJk8zB1j.js +1 -0
- package/dist/web/client/_app/immutable/nodes/0.CqlJ9a31.js +1 -0
- package/dist/web/client/_app/immutable/nodes/1.BQUZh2-w.js +1 -0
- package/dist/web/client/_app/immutable/nodes/2.CCV1YdgF.js +1 -0
- package/dist/web/client/_app/immutable/nodes/3.D9tDCdq8.js +1 -0
- package/dist/web/client/_app/immutable/nodes/4.BqPyNkFA.js +6 -0
- package/dist/web/client/_app/version.json +1 -0
- package/dist/web/client/robots.txt +3 -0
- package/dist/web/env.js +32 -0
- package/dist/web/handler.js +744 -0
- package/dist/web/index.js +49 -0
- package/dist/web/server/chunks/0-BHWsmCJv.js +23 -0
- package/dist/web/server/chunks/0-BHWsmCJv.js.map +1 -0
- package/dist/web/server/chunks/1-YRx6A8Tm.js +17 -0
- package/dist/web/server/chunks/1-YRx6A8Tm.js.map +1 -0
- package/dist/web/server/chunks/2-eC6JuGAo.js +22 -0
- package/dist/web/server/chunks/2-eC6JuGAo.js.map +1 -0
- package/dist/web/server/chunks/3-Bk-wV20p.js +32 -0
- package/dist/web/server/chunks/3-Bk-wV20p.js.map +1 -0
- package/dist/web/server/chunks/4-nteBgDrW.js +21 -0
- package/dist/web/server/chunks/4-nteBgDrW.js.map +1 -0
- package/dist/web/server/chunks/AllSessionsPanel.svelte_svelte_type_style_lang-Bt4B0-oi.js +35 -0
- package/dist/web/server/chunks/AllSessionsPanel.svelte_svelte_type_style_lang-Bt4B0-oi.js.map +1 -0
- package/dist/web/server/chunks/_layout.svelte-BIF9eZCY.js +453 -0
- package/dist/web/server/chunks/_layout.svelte-BIF9eZCY.js.map +1 -0
- package/dist/web/server/chunks/_page.svelte-Be6iabRn.js +34 -0
- package/dist/web/server/chunks/_page.svelte-Be6iabRn.js.map +1 -0
- package/dist/web/server/chunks/_page.svelte-C_fGJVSE.js +576 -0
- package/dist/web/server/chunks/_page.svelte-C_fGJVSE.js.map +1 -0
- package/dist/web/server/chunks/_page.svelte-CnfJk6cu.js +2722 -0
- package/dist/web/server/chunks/_page.svelte-CnfJk6cu.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-3WAmKvn2.js +34 -0
- package/dist/web/server/chunks/_server.ts-3WAmKvn2.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BAWJCSFb.js +29 -0
- package/dist/web/server/chunks/_server.ts-BAWJCSFb.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BPpMOZCm.js +24 -0
- package/dist/web/server/chunks/_server.ts-BPpMOZCm.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BUKgRb6U.js +13 -0
- package/dist/web/server/chunks/_server.ts-BUKgRb6U.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BVHUS8fm.js +41 -0
- package/dist/web/server/chunks/_server.ts-BVHUS8fm.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-BrF3od0O.js +45 -0
- package/dist/web/server/chunks/_server.ts-BrF3od0O.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-C4oPmOJR.js +38 -0
- package/dist/web/server/chunks/_server.ts-C4oPmOJR.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-CDAUUmG_.js +21 -0
- package/dist/web/server/chunks/_server.ts-CDAUUmG_.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-CR0uWvpz.js +24 -0
- package/dist/web/server/chunks/_server.ts-CR0uWvpz.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-CSqdCNGi.js +21 -0
- package/dist/web/server/chunks/_server.ts-CSqdCNGi.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-DI9fzUo9.js +52 -0
- package/dist/web/server/chunks/_server.ts-DI9fzUo9.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-DNjJTClI.js +46 -0
- package/dist/web/server/chunks/_server.ts-DNjJTClI.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-DdbOAkOj.js +22 -0
- package/dist/web/server/chunks/_server.ts-DdbOAkOj.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-Df2isGQc.js +41 -0
- package/dist/web/server/chunks/_server.ts-Df2isGQc.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-Vpw25_-3.js +12 -0
- package/dist/web/server/chunks/_server.ts-Vpw25_-3.js.map +1 -0
- package/dist/web/server/chunks/_server.ts-WldRpSRi.js +26 -0
- package/dist/web/server/chunks/_server.ts-WldRpSRi.js.map +1 -0
- package/dist/web/server/chunks/alert-dialog-description-DDA6u-nS.js +2890 -0
- package/dist/web/server/chunks/alert-dialog-description-DDA6u-nS.js.map +1 -0
- package/dist/web/server/chunks/auth-DrUf-v4J.js +51 -0
- package/dist/web/server/chunks/auth-DrUf-v4J.js.map +1 -0
- package/dist/web/server/chunks/button-D6xS9rHt.js +2335 -0
- package/dist/web/server/chunks/button-D6xS9rHt.js.map +1 -0
- package/dist/web/server/chunks/chunk-EKzHsMy_.js +42 -0
- package/dist/web/server/chunks/chunks-DmdqVYC7.js +58 -0
- package/dist/web/server/chunks/chunks-DmdqVYC7.js.map +1 -0
- package/dist/web/server/chunks/client-CUrSQijh.js +18 -0
- package/dist/web/server/chunks/client-CUrSQijh.js.map +1 -0
- package/dist/web/server/chunks/clsx-FzI4_gi0.js +332 -0
- package/dist/web/server/chunks/clsx-FzI4_gi0.js.map +1 -0
- package/dist/web/server/chunks/error.svelte-D-c-9pTE.js +27 -0
- package/dist/web/server/chunks/error.svelte-D-c-9pTE.js.map +1 -0
- package/dist/web/server/chunks/events-BDBlYddw.js +89 -0
- package/dist/web/server/chunks/events-BDBlYddw.js.map +1 -0
- package/dist/web/server/chunks/exports-CCurQ-Tl.js +131 -0
- package/dist/web/server/chunks/exports-CCurQ-Tl.js.map +1 -0
- package/dist/web/server/chunks/hooks.server-BK1bopsh.js +86 -0
- package/dist/web/server/chunks/hooks.server-BK1bopsh.js.map +1 -0
- package/dist/web/server/chunks/index2-BQnysSj-.js +2588 -0
- package/dist/web/server/chunks/index2-BQnysSj-.js.map +1 -0
- package/dist/web/server/chunks/internal-DLENj6YI.js +61 -0
- package/dist/web/server/chunks/internal-DLENj6YI.js.map +1 -0
- package/dist/web/server/chunks/pane-Dg3pKvsm.js +94 -0
- package/dist/web/server/chunks/pane-Dg3pKvsm.js.map +1 -0
- package/dist/web/server/chunks/sessions-json-DgfkCLO7.js +107 -0
- package/dist/web/server/chunks/sessions-json-DgfkCLO7.js.map +1 -0
- package/dist/web/server/chunks/sessions.svelte-Ds82MvkB.js +178 -0
- package/dist/web/server/chunks/sessions.svelte-Ds82MvkB.js.map +1 -0
- package/dist/web/server/chunks/state.svelte-xeAZvWZ6.js +7 -0
- package/dist/web/server/chunks/state.svelte-xeAZvWZ6.js.map +1 -0
- package/dist/web/server/chunks/ws-handlers-B4r5eSP2.js +733 -0
- package/dist/web/server/chunks/ws-handlers-B4r5eSP2.js.map +1 -0
- package/dist/web/server/index.js +4907 -0
- package/dist/web/server/index.js.map +1 -0
- package/dist/web/server/manifest.js +233 -0
- package/dist/web/server/manifest.js.map +1 -0
- package/docs/images/desktop-dashboard.png +0 -0
- package/docs/images/desktop-session.png +0 -0
- package/docs/images/mobile-dashboard.png +0 -0
- package/docs/images/mobile-session.png +0 -0
- package/docs/release-checklist.md +228 -0
- package/docs/removing-hooks.md +135 -0
- package/docs/state-transitions.md +109 -0
- package/package.json +71 -0
- package/src/app.tsx +188 -0
- package/src/cli.ts +83 -0
- package/src/commands/index.ts +4 -0
- package/src/commands/serve.ts +75 -0
- package/src/commands/setup.ts +13 -0
- package/src/commands/tui.ts +255 -0
- package/src/commands/uninstall.ts +13 -0
- package/src/components/Header.tsx +32 -0
- package/src/components/HelpDialog.tsx +45 -0
- package/src/components/SessionEntry.tsx +202 -0
- package/src/components/SessionList.tsx +98 -0
- package/src/components/StatusBar.tsx +26 -0
- package/src/components/index.ts +5 -0
- package/src/db/index.ts +20 -0
- package/src/db/sessions-json.ts +314 -0
- package/src/hooks/claude-mux-hook.ts +498 -0
- package/src/server/watcher.ts +128 -0
- package/src/server/ws-handlers.ts +922 -0
- package/src/setup/hooks.ts +333 -0
- package/src/setup/index.ts +2 -0
- package/src/setup/wizard.ts +81 -0
- package/src/tmux/detect.ts +87 -0
- package/src/tmux/navigate.ts +42 -0
- package/src/tmux/pane.ts +167 -0
- package/src/tmux/resize.ts +28 -0
- package/src/utils/paths.ts +11 -0
- package/src/utils/pid.ts +12 -0
- package/src/utils/version.ts +5 -0
- package/tests/components/Header.test.tsx +42 -0
- package/tests/components/SessionEntry-extended.test.tsx +165 -0
- package/tests/components/SessionEntry.test.tsx +138 -0
- package/tests/components/SessionList.test.tsx +110 -0
- package/tests/components/StatusBar.test.tsx +31 -0
- package/tests/db/index.test.ts +78 -0
- package/tests/db/sessions.test.ts +230 -0
- package/tests/server/integration.test.ts +319 -0
- package/tests/server/sessions.test.ts +114 -0
- package/tests/setup/hooks-integration.test.ts +148 -0
- package/tests/setup/hooks.test.ts +123 -0
- package/tests/tmux/detect.test.ts +54 -0
- package/tests/tmux/navigate.test.ts +30 -0
- package/tests/utils/pid.test.ts +17 -0
- package/tsconfig.cli.json +9 -0
- package/tsconfig.json +22 -0
- package/vitest.config.ts +29 -0
- package/web/.svelte-kit/adapter-bun/.vite/manifest.json +408 -0
- package/web/.svelte-kit/adapter-bun/_app/immutable/assets/AllSessionsPanel.BKhqOrbV.css +1 -0
- package/web/.svelte-kit/adapter-bun/_app/immutable/assets/_layout.WptSHSUl.css +1 -0
- package/web/.svelte-kit/adapter-bun/_app/immutable/assets/_page.DldLgTc-.css +1 -0
- package/web/.svelte-kit/adapter-bun/_app/immutable/assets/_page.DoNWy7tW.css +1 -0
- package/web/.svelte-kit/adapter-bun/chunks/AllSessionsPanel.svelte_svelte_type_style_lang.js +49 -0
- package/web/.svelte-kit/adapter-bun/chunks/alert-dialog-description.js +2670 -0
- package/web/.svelte-kit/adapter-bun/chunks/auth.js +59 -0
- package/web/.svelte-kit/adapter-bun/chunks/button.js +82 -0
- package/web/.svelte-kit/adapter-bun/chunks/client.js +29 -0
- package/web/.svelte-kit/adapter-bun/chunks/context.js +133 -0
- package/web/.svelte-kit/adapter-bun/chunks/environment.js +34 -0
- package/web/.svelte-kit/adapter-bun/chunks/events.js +121 -0
- package/web/.svelte-kit/adapter-bun/chunks/exports.js +174 -0
- package/web/.svelte-kit/adapter-bun/chunks/false.js +4 -0
- package/web/.svelte-kit/adapter-bun/chunks/index.js +59 -0
- package/web/.svelte-kit/adapter-bun/chunks/index2.js +2828 -0
- package/web/.svelte-kit/adapter-bun/chunks/internal.js +920 -0
- package/web/.svelte-kit/adapter-bun/chunks/pane.js +82 -0
- package/web/.svelte-kit/adapter-bun/chunks/sessions-json.js +124 -0
- package/web/.svelte-kit/adapter-bun/chunks/sessions.svelte.js +229 -0
- package/web/.svelte-kit/adapter-bun/chunks/shared.js +542 -0
- package/web/.svelte-kit/adapter-bun/chunks/state.svelte.js +16 -0
- package/web/.svelte-kit/adapter-bun/chunks/utils.js +43 -0
- package/web/.svelte-kit/adapter-bun/chunks/ws-handlers.js +782 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/auth/login/_server.ts.js +22 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/auth/logout/_server.ts.js +9 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/beads/_server.ts.js +22 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/browse/_server.ts.js +50 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/chrome/_server.ts.js +30 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/files/image/_server.ts.js +53 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/health/_server.ts.js +7 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/projects/new-session/_server.ts.js +44 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/_server.ts.js +20 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/kill/_server.ts.js +36 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/restart/_server.ts.js +40 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/screenshots/_server.ts.js +28 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_id_/send/_server.ts.js +29 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_server.ts.js +49 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/sessions/_target_/output/_server.ts.js +14 -0
- package/web/.svelte-kit/adapter-bun/entries/endpoints/api/tmux/panes/_server.ts.js +21 -0
- package/web/.svelte-kit/adapter-bun/entries/fallbacks/error.svelte.js +27 -0
- package/web/.svelte-kit/adapter-bun/entries/hooks.server.js +105 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/_layout.svelte.js +499 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/_page.svelte.js +3057 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/login/_page.server.ts.js +15 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/login/_page.svelte.js +37 -0
- package/web/.svelte-kit/adapter-bun/entries/pages/session/_target_/_page.svelte.js +653 -0
- package/web/.svelte-kit/adapter-bun/index.js +3864 -0
- package/web/.svelte-kit/adapter-bun/internal.js +13 -0
- package/web/.svelte-kit/adapter-bun/manifest-full.js +167 -0
- package/web/.svelte-kit/adapter-bun/manifest.js +171 -0
- package/web/.svelte-kit/adapter-bun/nodes/0.js +8 -0
- package/web/.svelte-kit/adapter-bun/nodes/1.js +8 -0
- package/web/.svelte-kit/adapter-bun/nodes/2.js +8 -0
- package/web/.svelte-kit/adapter-bun/nodes/3.js +10 -0
- package/web/.svelte-kit/adapter-bun/nodes/4.js +8 -0
- package/web/.svelte-kit/adapter-bun/remote-entry.js +541 -0
- package/web/.svelte-kit/adapter-node/.vite/manifest.json +223 -0
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_layout.4NiX29PU.css +1 -0
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_page.BEMzYUGV.css +1 -0
- package/web/.svelte-kit/adapter-node/_app/immutable/assets/_page.DOJn7TG7.css +1 -0
- package/web/.svelte-kit/adapter-node/chunks/context.js +121 -0
- package/web/.svelte-kit/adapter-node/chunks/environment.js +34 -0
- package/web/.svelte-kit/adapter-node/chunks/exports.js +174 -0
- package/web/.svelte-kit/adapter-node/chunks/false.js +4 -0
- package/web/.svelte-kit/adapter-node/chunks/index.js +59 -0
- package/web/.svelte-kit/adapter-node/chunks/index2.js +2710 -0
- package/web/.svelte-kit/adapter-node/chunks/internal.js +1005 -0
- package/web/.svelte-kit/adapter-node/chunks/sessions-json.js +109 -0
- package/web/.svelte-kit/adapter-node/chunks/sessions.svelte.js +67 -0
- package/web/.svelte-kit/adapter-node/chunks/shared.js +542 -0
- package/web/.svelte-kit/adapter-node/chunks/state.svelte.js +16 -0
- package/web/.svelte-kit/adapter-node/chunks/utils.js +43 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/browse/_server.ts.js +50 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/health/_server.ts.js +7 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/projects/new-session/_server.ts.js +44 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/_server.ts.js +20 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/kill/_server.ts.js +30 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_id_/send/_server.ts.js +22 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_server.ts.js +126 -0
- package/web/.svelte-kit/adapter-node/entries/endpoints/api/sessions/_target_/output/_server.ts.js +14 -0
- package/web/.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js +44 -0
- package/web/.svelte-kit/adapter-node/entries/pages/_layout.svelte.js +12 -0
- package/web/.svelte-kit/adapter-node/entries/pages/_page.svelte.js +87 -0
- package/web/.svelte-kit/adapter-node/entries/pages/session/_target_/_page.svelte.js +76 -0
- package/web/.svelte-kit/adapter-node/index.js +3864 -0
- package/web/.svelte-kit/adapter-node/internal.js +13 -0
- package/web/.svelte-kit/adapter-node/manifest-full.js +103 -0
- package/web/.svelte-kit/adapter-node/manifest.js +107 -0
- package/web/.svelte-kit/adapter-node/nodes/0.js +8 -0
- package/web/.svelte-kit/adapter-node/nodes/1.js +8 -0
- package/web/.svelte-kit/adapter-node/nodes/2.js +8 -0
- package/web/.svelte-kit/adapter-node/nodes/3.js +8 -0
- package/web/.svelte-kit/adapter-node/remote-entry.js +541 -0
- package/web/.svelte-kit/ambient.d.ts +187 -0
- package/web/.svelte-kit/generated/client/app.js +33 -0
- package/web/.svelte-kit/generated/client/matchers.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/0.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/1.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/2.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/3.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/4.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/app.js +33 -0
- package/web/.svelte-kit/generated/client-optimized/matchers.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/0.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/1.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/2.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/3.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/4.js +1 -0
- package/web/.svelte-kit/generated/root.js +3 -0
- package/web/.svelte-kit/generated/root.svelte +68 -0
- package/web/.svelte-kit/generated/server/internal.js +53 -0
- package/web/.svelte-kit/non-ambient.d.ts +73 -0
- package/web/.svelte-kit/output/client/.vite/manifest.json +203 -0
- package/web/.svelte-kit/output/client/_app/immutable/assets/0.WptSHSUl.css +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/assets/2.s6Kx4oz1.css +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/assets/4.DoNWy7tW.css +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/assets/AllSessionsPanel.CGHY3HLy.css +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/-3mUPuLP.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/B5U4_V3d.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/BHwiZXRv.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/C9P-coqM.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/Cegv0r8x.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DU91Ml7U.js +3 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DmdO6ygw.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/HKNo9LID.js +5 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/U4ip-C0d.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/cgUjKIhX.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/entry/app.CGIBnoln.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.CJk8zB1j.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/0.CqlJ9a31.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/1.BQUZh2-w.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/2.CCV1YdgF.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/3.D9tDCdq8.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/4.BqPyNkFA.js +6 -0
- package/web/.svelte-kit/output/client/_app/version.json +1 -0
- package/web/.svelte-kit/output/client/robots.txt +3 -0
- package/web/.svelte-kit/output/server/.vite/manifest.json +408 -0
- package/web/.svelte-kit/output/server/_app/immutable/assets/AllSessionsPanel.BKhqOrbV.css +1 -0
- package/web/.svelte-kit/output/server/_app/immutable/assets/_layout.WptSHSUl.css +1 -0
- package/web/.svelte-kit/output/server/_app/immutable/assets/_page.DldLgTc-.css +1 -0
- package/web/.svelte-kit/output/server/_app/immutable/assets/_page.DoNWy7tW.css +1 -0
- package/web/.svelte-kit/output/server/chunks/AllSessionsPanel.svelte_svelte_type_style_lang.js +49 -0
- package/web/.svelte-kit/output/server/chunks/alert-dialog-description.js +2670 -0
- package/web/.svelte-kit/output/server/chunks/auth.js +59 -0
- package/web/.svelte-kit/output/server/chunks/button.js +82 -0
- package/web/.svelte-kit/output/server/chunks/client.js +29 -0
- package/web/.svelte-kit/output/server/chunks/context.js +133 -0
- package/web/.svelte-kit/output/server/chunks/environment.js +34 -0
- package/web/.svelte-kit/output/server/chunks/events.js +121 -0
- package/web/.svelte-kit/output/server/chunks/exports.js +174 -0
- package/web/.svelte-kit/output/server/chunks/false.js +4 -0
- package/web/.svelte-kit/output/server/chunks/index.js +59 -0
- package/web/.svelte-kit/output/server/chunks/index2.js +2828 -0
- package/web/.svelte-kit/output/server/chunks/internal.js +920 -0
- package/web/.svelte-kit/output/server/chunks/pane.js +82 -0
- package/web/.svelte-kit/output/server/chunks/sessions-json.js +124 -0
- package/web/.svelte-kit/output/server/chunks/sessions.svelte.js +229 -0
- package/web/.svelte-kit/output/server/chunks/shared.js +542 -0
- package/web/.svelte-kit/output/server/chunks/state.svelte.js +16 -0
- package/web/.svelte-kit/output/server/chunks/utils.js +43 -0
- package/web/.svelte-kit/output/server/chunks/ws-handlers.js +782 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/auth/login/_server.ts.js +22 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/auth/logout/_server.ts.js +9 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/beads/_server.ts.js +22 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/browse/_server.ts.js +50 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/chrome/_server.ts.js +30 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/files/image/_server.ts.js +53 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/health/_server.ts.js +7 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/projects/new-session/_server.ts.js +44 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/_server.ts.js +20 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/kill/_server.ts.js +36 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/restart/_server.ts.js +40 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/screenshots/_server.ts.js +28 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_id_/send/_server.ts.js +29 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_server.ts.js +49 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/sessions/_target_/output/_server.ts.js +14 -0
- package/web/.svelte-kit/output/server/entries/endpoints/api/tmux/panes/_server.ts.js +21 -0
- package/web/.svelte-kit/output/server/entries/fallbacks/error.svelte.js +27 -0
- package/web/.svelte-kit/output/server/entries/hooks.server.js +105 -0
- package/web/.svelte-kit/output/server/entries/pages/_layout.svelte.js +499 -0
- package/web/.svelte-kit/output/server/entries/pages/_page.svelte.js +3057 -0
- package/web/.svelte-kit/output/server/entries/pages/login/_page.server.ts.js +15 -0
- package/web/.svelte-kit/output/server/entries/pages/login/_page.svelte.js +37 -0
- package/web/.svelte-kit/output/server/entries/pages/session/_target_/_page.svelte.js +653 -0
- package/web/.svelte-kit/output/server/index.js +3864 -0
- package/web/.svelte-kit/output/server/internal.js +13 -0
- package/web/.svelte-kit/output/server/manifest-full.js +167 -0
- package/web/.svelte-kit/output/server/manifest.js +167 -0
- package/web/.svelte-kit/output/server/nodes/0.js +8 -0
- package/web/.svelte-kit/output/server/nodes/1.js +8 -0
- package/web/.svelte-kit/output/server/nodes/2.js +8 -0
- package/web/.svelte-kit/output/server/nodes/3.js +10 -0
- package/web/.svelte-kit/output/server/nodes/4.js +8 -0
- package/web/.svelte-kit/output/server/remote-entry.js +541 -0
- package/web/.svelte-kit/tsconfig.json +58 -0
- package/web/.svelte-kit/types/route_meta_data.json +55 -0
- package/web/.svelte-kit/types/src/routes/$types.d.ts +24 -0
- package/web/.svelte-kit/types/src/routes/api/auth/login/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/auth/logout/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/beads/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/browse/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/chrome/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/files/image/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/health/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/projects/new-session/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/kill/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/restart/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/screenshots/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[id]/send/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/sessions/[target]/output/$types.d.ts +11 -0
- package/web/.svelte-kit/types/src/routes/api/tmux/panes/$types.d.ts +10 -0
- package/web/.svelte-kit/types/src/routes/login/$types.d.ts +25 -0
- package/web/.svelte-kit/types/src/routes/login/proxy+page.server.ts +19 -0
- package/web/.svelte-kit/types/src/routes/session/[target]/$types.d.ts +19 -0
- package/web/README.md +42 -0
- package/web/components.json +16 -0
- package/web/package.json +35 -0
- package/web/src/app.css +128 -0
- package/web/src/app.d.ts +13 -0
- package/web/src/app.html +11 -0
- package/web/src/hooks.server.ts +156 -0
- package/web/src/lib/assets/favicon.svg +1 -0
- package/web/src/lib/components/AllSessionsPanel.svelte +789 -0
- package/web/src/lib/components/BeadsPanel.svelte +146 -0
- package/web/src/lib/components/IssueItem.svelte +287 -0
- package/web/src/lib/components/ScreenshotsPanel.svelte +336 -0
- package/web/src/lib/components/SessionsSidebar.svelte +312 -0
- package/web/src/lib/components/TerminalRenderer.svelte +189 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte +18 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte +18 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte +29 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte +17 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte +20 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte +20 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte +20 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-portal.svelte +7 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte +17 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte +7 -0
- package/web/src/lib/components/ui/alert-dialog/alert-dialog.svelte +7 -0
- package/web/src/lib/components/ui/alert-dialog/index.ts +37 -0
- package/web/src/lib/components/ui/badge/badge.svelte +50 -0
- package/web/src/lib/components/ui/badge/index.ts +2 -0
- package/web/src/lib/components/ui/button/button.svelte +86 -0
- package/web/src/lib/components/ui/button/index.ts +17 -0
- package/web/src/lib/components/ui/checkbox/checkbox.svelte +36 -0
- package/web/src/lib/components/ui/checkbox/index.ts +6 -0
- package/web/src/lib/components/ui/dialog/dialog-close.svelte +7 -0
- package/web/src/lib/components/ui/dialog/dialog-content.svelte +45 -0
- package/web/src/lib/components/ui/dialog/dialog-description.svelte +17 -0
- package/web/src/lib/components/ui/dialog/dialog-footer.svelte +20 -0
- package/web/src/lib/components/ui/dialog/dialog-header.svelte +20 -0
- package/web/src/lib/components/ui/dialog/dialog-overlay.svelte +20 -0
- package/web/src/lib/components/ui/dialog/dialog-portal.svelte +7 -0
- package/web/src/lib/components/ui/dialog/dialog-title.svelte +17 -0
- package/web/src/lib/components/ui/dialog/dialog-trigger.svelte +7 -0
- package/web/src/lib/components/ui/dialog/dialog.svelte +7 -0
- package/web/src/lib/components/ui/dialog/index.ts +34 -0
- package/web/src/lib/components/ui/scroll-area/index.ts +10 -0
- package/web/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte +31 -0
- package/web/src/lib/components/ui/scroll-area/scroll-area.svelte +43 -0
- package/web/src/lib/components/ui/textarea/index.ts +7 -0
- package/web/src/lib/components/ui/textarea/textarea.svelte +23 -0
- package/web/src/lib/index.ts +1 -0
- package/web/src/lib/server/auth.ts +90 -0
- package/web/src/lib/stores/beads.svelte.ts +163 -0
- package/web/src/lib/stores/input-injection.svelte.ts +39 -0
- package/web/src/lib/stores/preferences.svelte.ts +55 -0
- package/web/src/lib/stores/sessions.svelte.ts +108 -0
- package/web/src/lib/stores/terminal.svelte.ts +96 -0
- package/web/src/lib/stores/websocket-base.svelte.ts +209 -0
- package/web/src/lib/types/terminal.ts +31 -0
- package/web/src/lib/utils/terminal-parser.ts +239 -0
- package/web/src/lib/utils.ts +13 -0
- package/web/src/routes/+layout.svelte +450 -0
- package/web/src/routes/+page.svelte +19 -0
- package/web/src/routes/api/auth/login/+server.ts +34 -0
- package/web/src/routes/api/auth/logout/+server.ts +10 -0
- package/web/src/routes/api/beads/+server.ts +28 -0
- package/web/src/routes/api/browse/+server.ts +59 -0
- package/web/src/routes/api/chrome/+server.ts +35 -0
- package/web/src/routes/api/files/image/+server.ts +64 -0
- package/web/src/routes/api/health/+server.ts +6 -0
- package/web/src/routes/api/projects/new-session/+server.ts +50 -0
- package/web/src/routes/api/sessions/+server.ts +62 -0
- package/web/src/routes/api/sessions/[id]/+server.ts +19 -0
- package/web/src/routes/api/sessions/[id]/kill/+server.ts +46 -0
- package/web/src/routes/api/sessions/[id]/restart/+server.ts +59 -0
- package/web/src/routes/api/sessions/[id]/screenshots/+server.ts +32 -0
- package/web/src/routes/api/sessions/[id]/send/+server.ts +31 -0
- package/web/src/routes/api/sessions/[target]/output/+server.ts +13 -0
- package/web/src/routes/api/tmux/panes/+server.ts +32 -0
- package/web/src/routes/login/+page.server.ts +18 -0
- package/web/src/routes/login/+page.svelte +69 -0
- package/web/src/routes/session/[target]/+page.svelte +450 -0
- package/web/static/robots.txt +3 -0
- package/web/svelte.config.js +20 -0
- package/web/tsconfig.json +20 -0
- package/web/vite.config.ts +154 -0
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from 'svelte';
|
|
3
|
+
import { goto } from '$app/navigation';
|
|
4
|
+
import { page } from '$app/stores';
|
|
5
|
+
import { sessionStore, stateColor, getProjectColor, type Session } from '$lib/stores/sessions.svelte';
|
|
6
|
+
import { Button } from '$lib/components/ui/button';
|
|
7
|
+
import { Badge } from '$lib/components/ui/badge';
|
|
8
|
+
import { Checkbox } from '$lib/components/ui/checkbox';
|
|
9
|
+
import * as AlertDialog from '$lib/components/ui/alert-dialog';
|
|
10
|
+
import * as Dialog from '$lib/components/ui/dialog';
|
|
11
|
+
import { ScrollArea } from '$lib/components/ui/scroll-area';
|
|
12
|
+
|
|
13
|
+
interface Props {
|
|
14
|
+
onSessionSelect?: () => void;
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let { onSessionSelect, compact = false }: Props = $props();
|
|
19
|
+
|
|
20
|
+
interface TmuxPane {
|
|
21
|
+
target: string;
|
|
22
|
+
session: string;
|
|
23
|
+
command: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let tmuxPanes = $state<TmuxPane[]>([]);
|
|
27
|
+
let showFolderBrowser = $state(false);
|
|
28
|
+
let browserPath = $state('');
|
|
29
|
+
let browserFolders = $state<{ name: string; path: string }[]>([]);
|
|
30
|
+
let browserShowHidden = $state(false);
|
|
31
|
+
let browserIsRoot = $state(false);
|
|
32
|
+
let browserParent = $state<string | null>(null);
|
|
33
|
+
let browserError = $state('');
|
|
34
|
+
|
|
35
|
+
// AlertDialog state
|
|
36
|
+
let alertOpen = $state(false);
|
|
37
|
+
let alertTitle = $state('');
|
|
38
|
+
let alertMessage = $state('');
|
|
39
|
+
let alertOnConfirm = $state<() => void>(() => {});
|
|
40
|
+
|
|
41
|
+
function showConfirm(title: string, message: string, onConfirm: () => void) {
|
|
42
|
+
alertTitle = title;
|
|
43
|
+
alertMessage = message;
|
|
44
|
+
alertOnConfirm = onConfirm;
|
|
45
|
+
alertOpen = true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Project tree node type
|
|
49
|
+
interface ProjectNode {
|
|
50
|
+
cwd: string;
|
|
51
|
+
sessions: Session[];
|
|
52
|
+
children: ProjectNode[];
|
|
53
|
+
depth: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Group sessions by project (cwd)
|
|
57
|
+
const sessionsByProject = $derived.by(() => {
|
|
58
|
+
const groups = new Map<string, Session[]>();
|
|
59
|
+
for (const session of sessionStore.sessions) {
|
|
60
|
+
const key = session.cwd || 'unknown';
|
|
61
|
+
if (!groups.has(key)) groups.set(key, []);
|
|
62
|
+
groups.get(key)!.push(session);
|
|
63
|
+
}
|
|
64
|
+
return groups;
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// Get all projects (from sessions + saved)
|
|
68
|
+
const allProjects = $derived.by(() => {
|
|
69
|
+
const projects = new Set<string>();
|
|
70
|
+
for (const session of sessionStore.sessions) {
|
|
71
|
+
if (session.cwd) projects.add(session.cwd);
|
|
72
|
+
}
|
|
73
|
+
for (const cwd of sessionStore.savedProjects) {
|
|
74
|
+
projects.add(cwd);
|
|
75
|
+
}
|
|
76
|
+
return [...projects].sort();
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// Flatten tree for rendering with depth info
|
|
80
|
+
function flattenTree(nodes: ProjectNode[]): ProjectNode[] {
|
|
81
|
+
const result: ProjectNode[] = [];
|
|
82
|
+
for (const node of nodes) {
|
|
83
|
+
result.push(node);
|
|
84
|
+
if (node.children.length > 0) {
|
|
85
|
+
result.push(...flattenTree(node.children));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Build project tree with parent/child relationships
|
|
92
|
+
const projectTree = $derived.by(() => {
|
|
93
|
+
const projects = allProjects;
|
|
94
|
+
const sessionsMap = sessionsByProject;
|
|
95
|
+
|
|
96
|
+
// Sort by path length (shorter = potential parents)
|
|
97
|
+
const sorted = [...projects].sort((a, b) => a.length - b.length);
|
|
98
|
+
|
|
99
|
+
const roots: ProjectNode[] = [];
|
|
100
|
+
const nodeMap = new Map<string, ProjectNode>();
|
|
101
|
+
|
|
102
|
+
for (const cwd of sorted) {
|
|
103
|
+
const node: ProjectNode = {
|
|
104
|
+
cwd,
|
|
105
|
+
sessions: sessionsMap.get(cwd) || [],
|
|
106
|
+
children: [],
|
|
107
|
+
depth: 0
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// Find parent (longest matching prefix that's also a project)
|
|
111
|
+
let parent: ProjectNode | null = null;
|
|
112
|
+
for (const potentialParent of sorted) {
|
|
113
|
+
if (potentialParent === cwd) continue;
|
|
114
|
+
if (cwd.startsWith(potentialParent + '/')) {
|
|
115
|
+
const parentNode = nodeMap.get(potentialParent);
|
|
116
|
+
if (parentNode && (!parent || potentialParent.length > parent.cwd.length)) {
|
|
117
|
+
parent = parentNode;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (parent) {
|
|
123
|
+
node.depth = parent.depth + 1;
|
|
124
|
+
parent.children.push(node);
|
|
125
|
+
} else {
|
|
126
|
+
roots.push(node);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
nodeMap.set(cwd, node);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return roots;
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const flatProjects = $derived.by(() => flattenTree(projectTree));
|
|
136
|
+
|
|
137
|
+
// Filter tmux panes to exclude Claude sessions
|
|
138
|
+
const otherTmuxPanes = $derived.by(() => {
|
|
139
|
+
const claudeTargets = new Set(sessionStore.sessions.map(s => s.tmux_target));
|
|
140
|
+
return tmuxPanes.filter(p => !claudeTargets.has(p.target));
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
// Check if a session is currently active (matches current route)
|
|
144
|
+
const currentTarget = $derived($page.url.pathname.startsWith('/session/')
|
|
145
|
+
? decodeURIComponent($page.url.pathname.split('/session/')[1])
|
|
146
|
+
: null);
|
|
147
|
+
|
|
148
|
+
async function fetchTmuxPanes() {
|
|
149
|
+
try {
|
|
150
|
+
const res = await fetch('/api/tmux/panes');
|
|
151
|
+
tmuxPanes = await res.json();
|
|
152
|
+
} catch {
|
|
153
|
+
tmuxPanes = [];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
onMount(() => {
|
|
158
|
+
sessionStore.loadSavedProjects();
|
|
159
|
+
fetchTmuxPanes();
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
function killSession(id: string, pid: number, tmux_target: string | null) {
|
|
163
|
+
showConfirm('Kill Session', 'Are you sure you want to kill this session?', async () => {
|
|
164
|
+
await fetch(`/api/sessions/${encodeURIComponent(id)}/kill`, {
|
|
165
|
+
method: 'POST',
|
|
166
|
+
headers: { 'Content-Type': 'application/json' },
|
|
167
|
+
body: JSON.stringify({ pid, tmux_target })
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function deleteProject(cwd: string) {
|
|
173
|
+
showConfirm('Delete Project', `Delete project "${cwd}" and all its sessions?`, async () => {
|
|
174
|
+
// Kill all sessions in this project
|
|
175
|
+
const sessions = sessionsByProject.get(cwd) || [];
|
|
176
|
+
for (const s of sessions) {
|
|
177
|
+
await fetch(`/api/sessions/${encodeURIComponent(s.id)}/kill`, {
|
|
178
|
+
method: 'POST',
|
|
179
|
+
headers: { 'Content-Type': 'application/json' },
|
|
180
|
+
body: JSON.stringify({ pid: s.pid, tmux_target: s.tmux_target })
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
sessionStore.removeProject(cwd);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
async function newSessionInProject(cwd: string) {
|
|
188
|
+
const res = await fetch('/api/projects/new-session', {
|
|
189
|
+
method: 'POST',
|
|
190
|
+
headers: { 'Content-Type': 'application/json' },
|
|
191
|
+
body: JSON.stringify({ cwd })
|
|
192
|
+
});
|
|
193
|
+
const data = await res.json();
|
|
194
|
+
sessionStore.saveProject(cwd);
|
|
195
|
+
if (data.ok && data.session) {
|
|
196
|
+
const tmuxTarget = data.session + ':1.1';
|
|
197
|
+
goto(`/session/${encodeURIComponent(tmuxTarget)}`);
|
|
198
|
+
onSessionSelect?.();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
async function openFolderBrowser() {
|
|
203
|
+
showFolderBrowser = true;
|
|
204
|
+
await browseTo('~');
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
async function browseTo(path: string) {
|
|
208
|
+
browserError = '';
|
|
209
|
+
const res = await fetch(`/api/browse?path=${encodeURIComponent(path)}&showHidden=${browserShowHidden}`);
|
|
210
|
+
const data = await res.json();
|
|
211
|
+
if (data.error) {
|
|
212
|
+
browserError = data.error;
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
browserPath = data.current;
|
|
216
|
+
browserFolders = data.folders;
|
|
217
|
+
browserIsRoot = data.isRoot;
|
|
218
|
+
browserParent = data.parent;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
async function selectFolder() {
|
|
222
|
+
showFolderBrowser = false;
|
|
223
|
+
await newSessionInProject(browserPath);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
function getProjectName(cwd: string): string {
|
|
227
|
+
return cwd.split('/').pop() || cwd;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function handleSessionClick(e: MouseEvent, tmuxTarget: string) {
|
|
231
|
+
e.preventDefault();
|
|
232
|
+
goto(`/session/${encodeURIComponent(tmuxTarget)}`);
|
|
233
|
+
onSessionSelect?.();
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
async function closeChrome() {
|
|
237
|
+
await fetch('/api/chrome', { method: 'DELETE' });
|
|
238
|
+
}
|
|
239
|
+
</script>
|
|
240
|
+
|
|
241
|
+
<div class="all-sessions-panel" class:compact>
|
|
242
|
+
<header class="header">
|
|
243
|
+
<a href="/" class="title-link">
|
|
244
|
+
<h1>claude-mux</h1>
|
|
245
|
+
</a>
|
|
246
|
+
<div class="header-actions">
|
|
247
|
+
{#if !compact}
|
|
248
|
+
<Button
|
|
249
|
+
variant="secondary"
|
|
250
|
+
size="icon"
|
|
251
|
+
onclick={closeChrome}
|
|
252
|
+
title="Close Chrome/Brave debugging instances"
|
|
253
|
+
>
|
|
254
|
+
<iconify-icon icon="mdi:google-chrome"></iconify-icon>
|
|
255
|
+
</Button>
|
|
256
|
+
{/if}
|
|
257
|
+
<Button
|
|
258
|
+
variant={sessionStore.paused ? 'destructive' : 'secondary'}
|
|
259
|
+
size="icon"
|
|
260
|
+
onclick={() => sessionStore.togglePause()}
|
|
261
|
+
title={sessionStore.paused ? 'Resume' : 'Pause'}
|
|
262
|
+
>
|
|
263
|
+
<iconify-icon icon={sessionStore.paused ? 'mdi:play' : 'mdi:pause'}></iconify-icon>
|
|
264
|
+
</Button>
|
|
265
|
+
<Button variant="secondary" size="icon" onclick={openFolderBrowser} title="New Project">
|
|
266
|
+
<iconify-icon icon="mdi:plus"></iconify-icon>
|
|
267
|
+
</Button>
|
|
268
|
+
</div>
|
|
269
|
+
</header>
|
|
270
|
+
|
|
271
|
+
<p class="count">{sessionStore.sessions.length} session{sessionStore.sessions.length !== 1 ? 's' : ''}</p>
|
|
272
|
+
|
|
273
|
+
<div class="scroll-content">
|
|
274
|
+
{#if flatProjects.length === 0}
|
|
275
|
+
<div class="empty">No sessions yet. Click + to add a project.</div>
|
|
276
|
+
{:else}
|
|
277
|
+
{#each flatProjects as project}
|
|
278
|
+
{@const color = getProjectColor(project.cwd)}
|
|
279
|
+
{@const isNested = project.depth > 0}
|
|
280
|
+
{@const firstSession = project.sessions[0]}
|
|
281
|
+
<div class="project-group" class:nested={isNested} style="margin-left: {project.depth * (compact ? 16 : 24)}px; border-left-color: {color}">
|
|
282
|
+
<div class="project-header">
|
|
283
|
+
<div class="project-info">
|
|
284
|
+
{#if isNested}
|
|
285
|
+
<span class="nest-indicator">└</span>
|
|
286
|
+
{/if}
|
|
287
|
+
<span class="name">{getProjectName(project.cwd)}</span>
|
|
288
|
+
<div class="meta">
|
|
289
|
+
<Badge variant="secondary" class="text-xs">{project.sessions.length}</Badge>
|
|
290
|
+
{#if !compact}
|
|
291
|
+
{#if firstSession?.git_root}<Badge variant="outline" class="border-orange-700 text-orange-400">git</Badge>{/if}
|
|
292
|
+
{#if firstSession?.beads_enabled}<Badge variant="outline" class="border-purple-700 text-purple-400">beads</Badge>{/if}
|
|
293
|
+
{/if}
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
<div class="project-actions">
|
|
297
|
+
<Button variant="ghost" size="icon-sm" onclick={() => newSessionInProject(project.cwd)} title="New Session">
|
|
298
|
+
<iconify-icon icon="mdi:plus"></iconify-icon>
|
|
299
|
+
</Button>
|
|
300
|
+
{#if !compact}
|
|
301
|
+
<Button variant="ghost" size="icon-sm" class="hover:bg-red-900/50 hover:text-red-300" onclick={() => deleteProject(project.cwd)} title="Delete Project">
|
|
302
|
+
<iconify-icon icon="mdi:delete"></iconify-icon>
|
|
303
|
+
</Button>
|
|
304
|
+
{/if}
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
<div class="project-sessions">
|
|
308
|
+
{#each project.sessions as session}
|
|
309
|
+
{#if session.tmux_target}
|
|
310
|
+
{@const isActive = session.tmux_target === currentTarget}
|
|
311
|
+
<a
|
|
312
|
+
href="/session/{encodeURIComponent(session.tmux_target)}"
|
|
313
|
+
class="session {session.state}"
|
|
314
|
+
class:active={isActive}
|
|
315
|
+
onclick={(e) => handleSessionClick(e, session.tmux_target!)}
|
|
316
|
+
>
|
|
317
|
+
<span class="state" style="background: {stateColor(session.state)}"></span>
|
|
318
|
+
<div class="session-info">
|
|
319
|
+
<div class="target">{session.pane_title || session.tmux_target}</div>
|
|
320
|
+
<div class="action">{session.current_action || session.state}</div>
|
|
321
|
+
</div>
|
|
322
|
+
{#if !compact}
|
|
323
|
+
<div class="actions">
|
|
324
|
+
<Button
|
|
325
|
+
variant="ghost-destructive"
|
|
326
|
+
size="icon-sm"
|
|
327
|
+
onclick={(e: MouseEvent) => { e.preventDefault(); e.stopPropagation(); killSession(session.id, session.pid, session.tmux_target); }}
|
|
328
|
+
title="Kill"
|
|
329
|
+
>
|
|
330
|
+
<iconify-icon icon="mdi:power"></iconify-icon>
|
|
331
|
+
</Button>
|
|
332
|
+
</div>
|
|
333
|
+
{/if}
|
|
334
|
+
</a>
|
|
335
|
+
{:else}
|
|
336
|
+
<div class="session {session.state} no-tmux">
|
|
337
|
+
<span class="state" style="background: {stateColor(session.state)}"></span>
|
|
338
|
+
<div class="session-info">
|
|
339
|
+
<div class="target">{session.id}</div>
|
|
340
|
+
<div class="action">{session.current_action || session.state}</div>
|
|
341
|
+
<div class="no-tmux-label">No tmux pane</div>
|
|
342
|
+
</div>
|
|
343
|
+
{#if !compact}
|
|
344
|
+
<div class="actions">
|
|
345
|
+
<Button
|
|
346
|
+
variant="ghost-destructive"
|
|
347
|
+
size="icon-sm"
|
|
348
|
+
onclick={() => killSession(session.id, session.pid, session.tmux_target)}
|
|
349
|
+
title="Kill"
|
|
350
|
+
>
|
|
351
|
+
<iconify-icon icon="mdi:power"></iconify-icon>
|
|
352
|
+
</Button>
|
|
353
|
+
</div>
|
|
354
|
+
{/if}
|
|
355
|
+
</div>
|
|
356
|
+
{/if}
|
|
357
|
+
{:else}
|
|
358
|
+
<div class="empty-project">No active sessions</div>
|
|
359
|
+
{/each}
|
|
360
|
+
</div>
|
|
361
|
+
</div>
|
|
362
|
+
{/each}
|
|
363
|
+
{/if}
|
|
364
|
+
|
|
365
|
+
{#if otherTmuxPanes.length > 0}
|
|
366
|
+
<div class="other-tmux">
|
|
367
|
+
<div class="other-tmux-header">
|
|
368
|
+
<h2>Other tmux</h2>
|
|
369
|
+
<Button variant="ghost" size="icon-sm" onclick={fetchTmuxPanes} title="Refresh">
|
|
370
|
+
<iconify-icon icon="mdi:refresh"></iconify-icon>
|
|
371
|
+
</Button>
|
|
372
|
+
</div>
|
|
373
|
+
<div class="other-tmux-list">
|
|
374
|
+
{#each otherTmuxPanes as pane}
|
|
375
|
+
<a
|
|
376
|
+
href="/session/{encodeURIComponent(pane.target)}"
|
|
377
|
+
class="tmux-pane"
|
|
378
|
+
onclick={(e) => handleSessionClick(e, pane.target)}
|
|
379
|
+
>
|
|
380
|
+
<iconify-icon icon="mdi:console" class="pane-icon"></iconify-icon>
|
|
381
|
+
<div class="pane-info">
|
|
382
|
+
<span class="pane-target">{pane.target}</span>
|
|
383
|
+
{#if !compact}
|
|
384
|
+
<span class="pane-command">{pane.command}</span>
|
|
385
|
+
{/if}
|
|
386
|
+
</div>
|
|
387
|
+
</a>
|
|
388
|
+
{/each}
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
{/if}
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
<Dialog.Root bind:open={showFolderBrowser}>
|
|
396
|
+
<Dialog.Content class="max-w-md">
|
|
397
|
+
<Dialog.Header>
|
|
398
|
+
<Dialog.Title>Select Folder</Dialog.Title>
|
|
399
|
+
</Dialog.Header>
|
|
400
|
+
<div class="fb-path">
|
|
401
|
+
{browserPath}
|
|
402
|
+
</div>
|
|
403
|
+
{#if browserError}
|
|
404
|
+
<p class="text-sm text-destructive">{browserError}</p>
|
|
405
|
+
{/if}
|
|
406
|
+
<div class="flex items-center gap-2 py-2">
|
|
407
|
+
<Checkbox id="show-hidden" checked={browserShowHidden} onCheckedChange={(v) => { browserShowHidden = !!v; browseTo(browserPath); }} />
|
|
408
|
+
<label for="show-hidden" class="text-sm text-muted-foreground cursor-pointer">Show hidden</label>
|
|
409
|
+
</div>
|
|
410
|
+
<ScrollArea class="h-64 rounded-md border">
|
|
411
|
+
<div class="p-2">
|
|
412
|
+
{#if !browserIsRoot && browserParent}
|
|
413
|
+
<button class="fb-item" onclick={() => browseTo(browserParent!)}>
|
|
414
|
+
<iconify-icon icon="mdi:folder-arrow-up"></iconify-icon>
|
|
415
|
+
..
|
|
416
|
+
</button>
|
|
417
|
+
{/if}
|
|
418
|
+
{#each browserFolders as folder}
|
|
419
|
+
<button class="fb-item" onclick={() => browseTo(folder.path)}>
|
|
420
|
+
<iconify-icon icon="mdi:folder"></iconify-icon>
|
|
421
|
+
{folder.name}
|
|
422
|
+
</button>
|
|
423
|
+
{/each}
|
|
424
|
+
</div>
|
|
425
|
+
</ScrollArea>
|
|
426
|
+
<Dialog.Footer>
|
|
427
|
+
<Button variant="outline" onclick={() => showFolderBrowser = false}>Cancel</Button>
|
|
428
|
+
<Button onclick={selectFolder}>Select</Button>
|
|
429
|
+
</Dialog.Footer>
|
|
430
|
+
</Dialog.Content>
|
|
431
|
+
</Dialog.Root>
|
|
432
|
+
|
|
433
|
+
<AlertDialog.Root bind:open={alertOpen}>
|
|
434
|
+
<AlertDialog.Content>
|
|
435
|
+
<AlertDialog.Header>
|
|
436
|
+
<AlertDialog.Title>{alertTitle}</AlertDialog.Title>
|
|
437
|
+
<AlertDialog.Description>{alertMessage}</AlertDialog.Description>
|
|
438
|
+
</AlertDialog.Header>
|
|
439
|
+
<AlertDialog.Footer>
|
|
440
|
+
<AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
|
|
441
|
+
<AlertDialog.Action onclick={() => { alertOnConfirm(); alertOpen = false; }} class="bg-destructive text-destructive-foreground hover:bg-destructive/90">Confirm</AlertDialog.Action>
|
|
442
|
+
</AlertDialog.Footer>
|
|
443
|
+
</AlertDialog.Content>
|
|
444
|
+
</AlertDialog.Root>
|
|
445
|
+
|
|
446
|
+
<style>
|
|
447
|
+
.all-sessions-panel {
|
|
448
|
+
display: flex;
|
|
449
|
+
flex-direction: column;
|
|
450
|
+
height: 100%;
|
|
451
|
+
overflow: hidden;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.header {
|
|
455
|
+
display: flex;
|
|
456
|
+
justify-content: space-between;
|
|
457
|
+
align-items: center;
|
|
458
|
+
padding: 16px;
|
|
459
|
+
padding-bottom: 12px;
|
|
460
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
461
|
+
flex-shrink: 0;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.title-link {
|
|
465
|
+
text-decoration: none;
|
|
466
|
+
color: inherit;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.title-link:hover h1 {
|
|
470
|
+
color: hsl(var(--primary));
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.header h1 {
|
|
474
|
+
font-size: 18px;
|
|
475
|
+
margin: 0;
|
|
476
|
+
transition: color 0.15s;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.header-actions {
|
|
480
|
+
display: flex;
|
|
481
|
+
gap: 8px;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.count {
|
|
485
|
+
color: hsl(var(--muted-foreground));
|
|
486
|
+
font-size: 13px;
|
|
487
|
+
margin: 0;
|
|
488
|
+
padding: 8px 16px;
|
|
489
|
+
flex-shrink: 0;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.scroll-content {
|
|
493
|
+
flex: 1;
|
|
494
|
+
overflow-y: auto;
|
|
495
|
+
padding: 0 12px 12px;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.empty {
|
|
499
|
+
color: hsl(var(--muted-foreground));
|
|
500
|
+
text-align: center;
|
|
501
|
+
padding: 40px 16px;
|
|
502
|
+
font-size: 14px;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.project-group {
|
|
506
|
+
margin-bottom: 16px;
|
|
507
|
+
border-left: 3px solid;
|
|
508
|
+
border-radius: 6px;
|
|
509
|
+
overflow: hidden;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.project-group.nested {
|
|
513
|
+
margin-bottom: 10px;
|
|
514
|
+
margin-top: -6px;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.project-header {
|
|
518
|
+
display: flex;
|
|
519
|
+
align-items: center;
|
|
520
|
+
justify-content: space-between;
|
|
521
|
+
padding: 10px 12px;
|
|
522
|
+
background: #292524;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.project-info {
|
|
526
|
+
display: flex;
|
|
527
|
+
align-items: center;
|
|
528
|
+
gap: 6px;
|
|
529
|
+
min-width: 0;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.nest-indicator {
|
|
533
|
+
font-family: monospace;
|
|
534
|
+
color: hsl(var(--muted-foreground));
|
|
535
|
+
margin-right: -2px;
|
|
536
|
+
font-size: 12px;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.project-header .name {
|
|
540
|
+
font-weight: 600;
|
|
541
|
+
font-size: 14px;
|
|
542
|
+
overflow: hidden;
|
|
543
|
+
text-overflow: ellipsis;
|
|
544
|
+
white-space: nowrap;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.project-header .meta {
|
|
548
|
+
display: flex;
|
|
549
|
+
align-items: center;
|
|
550
|
+
gap: 4px;
|
|
551
|
+
flex-shrink: 0;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.project-actions {
|
|
555
|
+
display: flex;
|
|
556
|
+
gap: 2px;
|
|
557
|
+
opacity: 0.5;
|
|
558
|
+
transition: opacity 0.15s;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.project-header:hover .project-actions {
|
|
562
|
+
opacity: 1;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.project-sessions .session {
|
|
566
|
+
display: flex;
|
|
567
|
+
align-items: center;
|
|
568
|
+
gap: 10px;
|
|
569
|
+
padding: 12px;
|
|
570
|
+
padding-left: 10px;
|
|
571
|
+
background: #111;
|
|
572
|
+
border-top: 1px solid #222;
|
|
573
|
+
text-decoration: none;
|
|
574
|
+
color: inherit;
|
|
575
|
+
transition: background 0.15s;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.project-sessions .session:hover {
|
|
579
|
+
background: #1a1a1a;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.project-sessions .session.active {
|
|
583
|
+
background: color-mix(in oklch, var(--primary), transparent 75%);
|
|
584
|
+
border-left: 4px solid var(--primary);
|
|
585
|
+
padding-left: 6px;
|
|
586
|
+
box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--primary), transparent 70%);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.project-sessions .session.active .target {
|
|
590
|
+
color: var(--primary);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.session .state {
|
|
594
|
+
width: 12px;
|
|
595
|
+
height: 12px;
|
|
596
|
+
border-radius: 50%;
|
|
597
|
+
flex-shrink: 0;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.session-info {
|
|
601
|
+
flex: 1;
|
|
602
|
+
min-width: 0;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.session .target {
|
|
606
|
+
font-weight: 600;
|
|
607
|
+
font-size: 14px;
|
|
608
|
+
overflow: hidden;
|
|
609
|
+
text-overflow: ellipsis;
|
|
610
|
+
white-space: nowrap;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.session .action {
|
|
614
|
+
color: hsl(var(--muted-foreground));
|
|
615
|
+
font-size: 12px;
|
|
616
|
+
overflow: hidden;
|
|
617
|
+
text-overflow: ellipsis;
|
|
618
|
+
white-space: nowrap;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.session.no-tmux {
|
|
622
|
+
cursor: default;
|
|
623
|
+
opacity: 0.7;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.no-tmux-label {
|
|
627
|
+
color: hsl(var(--muted-foreground));
|
|
628
|
+
font-size: 11px;
|
|
629
|
+
font-style: italic;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.empty-project {
|
|
633
|
+
padding: 12px;
|
|
634
|
+
background: #111;
|
|
635
|
+
color: hsl(var(--muted-foreground));
|
|
636
|
+
text-align: center;
|
|
637
|
+
font-size: 13px;
|
|
638
|
+
border-radius: 0 0 6px 6px;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.actions {
|
|
642
|
+
display: flex;
|
|
643
|
+
gap: 4px;
|
|
644
|
+
flex-shrink: 0;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/* Folder browser items */
|
|
648
|
+
.fb-path {
|
|
649
|
+
padding: 12px;
|
|
650
|
+
background: hsl(var(--muted));
|
|
651
|
+
font-family: monospace;
|
|
652
|
+
font-size: 14px;
|
|
653
|
+
color: hsl(var(--muted-foreground));
|
|
654
|
+
word-break: break-all;
|
|
655
|
+
border-radius: 6px;
|
|
656
|
+
margin-bottom: 8px;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.fb-item {
|
|
660
|
+
display: flex;
|
|
661
|
+
align-items: center;
|
|
662
|
+
gap: 12px;
|
|
663
|
+
width: 100%;
|
|
664
|
+
padding: 10px 12px;
|
|
665
|
+
background: transparent;
|
|
666
|
+
border: none;
|
|
667
|
+
color: hsl(var(--foreground));
|
|
668
|
+
font-size: 14px;
|
|
669
|
+
text-align: left;
|
|
670
|
+
cursor: pointer;
|
|
671
|
+
border-radius: 6px;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.fb-item:hover {
|
|
675
|
+
background: hsl(var(--accent));
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/* Other tmux section */
|
|
679
|
+
.other-tmux {
|
|
680
|
+
margin-top: 24px;
|
|
681
|
+
padding-top: 16px;
|
|
682
|
+
border-top: 1px solid #333;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.other-tmux-header {
|
|
686
|
+
display: flex;
|
|
687
|
+
align-items: center;
|
|
688
|
+
justify-content: space-between;
|
|
689
|
+
margin-bottom: 8px;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.other-tmux-header h2 {
|
|
693
|
+
font-size: 14px;
|
|
694
|
+
font-weight: 600;
|
|
695
|
+
color: hsl(var(--muted-foreground));
|
|
696
|
+
margin: 0;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.other-tmux-list {
|
|
700
|
+
display: flex;
|
|
701
|
+
flex-direction: column;
|
|
702
|
+
gap: 4px;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.tmux-pane {
|
|
706
|
+
display: flex;
|
|
707
|
+
align-items: center;
|
|
708
|
+
gap: 10px;
|
|
709
|
+
padding: 8px 12px;
|
|
710
|
+
background: #1a1a1a;
|
|
711
|
+
border-radius: 6px;
|
|
712
|
+
text-decoration: none;
|
|
713
|
+
color: inherit;
|
|
714
|
+
transition: background 0.15s;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.tmux-pane:hover {
|
|
718
|
+
background: #252525;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.pane-icon {
|
|
722
|
+
color: hsl(var(--muted-foreground));
|
|
723
|
+
font-size: 16px;
|
|
724
|
+
flex-shrink: 0;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.pane-info {
|
|
728
|
+
display: flex;
|
|
729
|
+
align-items: center;
|
|
730
|
+
gap: 10px;
|
|
731
|
+
min-width: 0;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.pane-target {
|
|
735
|
+
font-family: monospace;
|
|
736
|
+
font-size: 12px;
|
|
737
|
+
color: hsl(var(--foreground));
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.pane-command {
|
|
741
|
+
font-size: 12px;
|
|
742
|
+
color: hsl(var(--muted-foreground));
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/* Compact mode adjustments */
|
|
746
|
+
.compact .header {
|
|
747
|
+
padding: 12px;
|
|
748
|
+
padding-bottom: 8px;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.compact .header h1 {
|
|
752
|
+
font-size: 16px;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.compact .count {
|
|
756
|
+
padding: 6px 12px;
|
|
757
|
+
font-size: 12px;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.compact .scroll-content {
|
|
761
|
+
padding: 0 8px 8px;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.compact .project-header {
|
|
765
|
+
padding: 8px 10px;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.compact .project-header .name {
|
|
769
|
+
font-size: 13px;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
.compact .project-sessions .session {
|
|
773
|
+
padding: 10px 8px;
|
|
774
|
+
gap: 8px;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.compact .session .state {
|
|
778
|
+
width: 10px;
|
|
779
|
+
height: 10px;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.compact .session .target {
|
|
783
|
+
font-size: 13px;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.compact .session .action {
|
|
787
|
+
font-size: 11px;
|
|
788
|
+
}
|
|
789
|
+
</style>
|