@myrialabs/clopen 0.2.1 → 0.2.2
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/backend/{lib/auth → auth}/auth-service.ts +2 -2
- package/backend/{lib/chat → chat}/stream-manager.ts +1 -1
- package/backend/{lib/engine → engine}/adapters/claude/environment.ts +1 -1
- package/backend/{lib/engine → engine}/adapters/opencode/message-converter.ts +1 -1
- package/backend/{lib/files → files}/file-watcher.ts +1 -1
- package/backend/{lib/git → git}/git-executor.ts +1 -1
- package/backend/index.ts +7 -7
- package/backend/{lib/mcp → mcp}/README.md +68 -79
- package/backend/{lib/mcp → mcp}/config.ts +1 -1
- package/backend/{lib/mcp → mcp}/servers/browser-automation/actions.ts +4 -4
- package/backend/{lib/mcp → mcp}/servers/browser-automation/browser.ts +3 -3
- package/backend/{lib/mcp → mcp}/servers/browser-automation/inspection.ts +3 -3
- package/backend/middleware/cors.ts +1 -1
- package/backend/middleware/error-handler.ts +1 -1
- package/backend/{lib/preview → preview}/browser/browser-preview-service.ts +1 -1
- package/backend/{lib/preview → preview}/browser/browser-tab-manager.ts +1 -1
- package/backend/{lib/preview → preview}/browser/types.ts +1 -1
- package/backend/{lib/project → project}/status-manager.ts +223 -223
- package/backend/{lib/terminal → terminal}/shell-utils.ts +1 -1
- package/backend/{lib/utils → utils}/ws.ts +2 -2
- package/backend/ws/README.md +9 -9
- package/backend/ws/auth/invites.ts +2 -2
- package/backend/ws/auth/login.ts +9 -9
- package/backend/ws/auth/status.ts +2 -2
- package/backend/ws/auth/users.ts +1 -1
- package/backend/ws/chat/background.ts +2 -2
- package/backend/ws/chat/stream.ts +3 -3
- package/backend/ws/engine/claude/accounts.ts +4 -4
- package/backend/ws/engine/claude/status.ts +1 -1
- package/backend/ws/files/read.ts +2 -2
- package/backend/ws/files/watch.ts +2 -2
- package/backend/ws/files/write.ts +1 -1
- package/backend/ws/git/branch.ts +2 -2
- package/backend/ws/git/commit.ts +2 -2
- package/backend/ws/git/conflict.ts +2 -2
- package/backend/ws/git/diff.ts +2 -2
- package/backend/ws/git/log.ts +2 -2
- package/backend/ws/git/remote.ts +2 -2
- package/backend/ws/git/staging.ts +2 -2
- package/backend/ws/git/status.ts +3 -3
- package/backend/ws/messages/crud.ts +1 -1
- package/backend/ws/preview/browser/cleanup.ts +2 -2
- package/backend/ws/preview/browser/console.ts +2 -2
- package/backend/ws/preview/browser/interact.ts +2 -2
- package/backend/ws/preview/browser/mcp.ts +1 -1
- package/backend/ws/preview/browser/native-ui.ts +2 -2
- package/backend/ws/preview/browser/stats.ts +2 -2
- package/backend/ws/preview/browser/tab-info.ts +2 -2
- package/backend/ws/preview/browser/tab.ts +2 -2
- package/backend/ws/preview/browser/webcodecs.ts +2 -2
- package/backend/ws/projects/crud.ts +3 -3
- package/backend/ws/projects/presence.ts +3 -3
- package/backend/ws/projects/status.ts +3 -3
- package/backend/ws/sessions/crud.ts +2 -2
- package/backend/ws/settings/crud.ts +2 -2
- package/backend/ws/snapshot/restore.ts +5 -5
- package/backend/ws/snapshot/timeline.ts +3 -3
- package/backend/ws/system/operations.ts +1 -1
- package/backend/ws/terminal/persistence.ts +3 -3
- package/backend/ws/terminal/session.ts +6 -6
- package/backend/ws/terminal/stream.ts +2 -2
- package/backend/ws/tunnel/operations.ts +1 -1
- package/backend/ws/user/crud.ts +4 -4
- package/frontend/App.svelte +13 -13
- package/frontend/{lib/components → components}/auth/InvitePage.svelte +2 -2
- package/frontend/{lib/components → components}/auth/LoginPage.svelte +1 -1
- package/frontend/{lib/components → components}/auth/SetupPage.svelte +6 -6
- package/frontend/{lib/components → components}/chat/ChatInterface.svelte +14 -14
- package/frontend/{lib/components → components}/chat/formatters/ErrorMessage.svelte +1 -1
- package/frontend/{lib/components → components}/chat/formatters/MessageFormatter.svelte +4 -4
- package/frontend/{lib/components → components}/chat/formatters/TextMessage.svelte +1 -1
- package/frontend/{lib/components → components}/chat/formatters/Tools.svelte +1 -1
- package/frontend/{lib/components → components}/chat/input/ChatInput.svelte +12 -12
- package/frontend/{lib/components → components}/chat/input/components/ChatInputActions.svelte +1 -1
- package/frontend/{lib/components → components}/chat/input/components/EditModeIndicator.svelte +2 -2
- package/frontend/{lib/components → components}/chat/input/components/EngineModelPicker.svelte +9 -9
- package/frontend/{lib/components → components}/chat/input/components/FileAttachmentPreview.svelte +1 -1
- package/frontend/{lib/components → components}/chat/input/components/LoadingIndicator.svelte +2 -2
- package/frontend/{lib/components → components}/chat/input/composables/use-chat-actions.svelte.ts +8 -8
- package/frontend/{lib/components → components}/chat/input/composables/use-file-handling.svelte.ts +1 -1
- package/frontend/{lib/components → components}/chat/input/composables/use-input-state.svelte.ts +6 -6
- package/frontend/{lib/components → components}/chat/message/ChatMessage.svelte +8 -8
- package/frontend/{lib/components → components}/chat/message/ChatMessages.svelte +7 -7
- package/frontend/{lib/components → components}/chat/message/MessageBubble.svelte +1 -1
- package/frontend/{lib/components → components}/chat/message/MessageHeader.svelte +2 -2
- package/frontend/{lib/components → components}/chat/modal/DebugModal.svelte +2 -2
- package/frontend/{lib/components → components}/chat/modal/TokenUsageModal.svelte +2 -2
- package/frontend/{lib/components → components}/chat/tools/AskUserQuestionTool.svelte +4 -4
- package/frontend/{lib/components → components}/chat/tools/CustomMcpTool.svelte +1 -1
- package/frontend/{lib/components → components}/chat/tools/EditTool.svelte +1 -1
- package/frontend/{lib/components → components}/chat/tools/TodoWriteTool.svelte +1 -1
- package/frontend/{lib/components → components}/chat/tools/components/CodeBlock.svelte +2 -2
- package/frontend/{lib/components → components}/chat/tools/components/DiffBlock.svelte +1 -1
- package/frontend/{lib/components → components}/chat/tools/components/FileHeader.svelte +2 -2
- package/frontend/{lib/components → components}/chat/tools/components/InfoLine.svelte +1 -1
- package/frontend/{lib/components → components}/chat/widgets/FloatingTodoList.svelte +3 -3
- package/frontend/{lib/components → components}/chat/widgets/TokenUsage.svelte +4 -4
- package/frontend/{lib/components → components}/checkpoint/TimelineModal.svelte +10 -10
- package/frontend/{lib/components → components}/checkpoint/timeline/TimelineNode.svelte +1 -1
- package/frontend/{lib/components/common → components/common/display}/Icon.svelte +2 -2
- package/frontend/{lib/components/common → components/common/display}/PageTemplate.svelte +1 -1
- package/frontend/{lib/components/common → components/common/display}/ProjectUserAvatars.svelte +1 -1
- package/frontend/{lib/components/common → components/common/display}/ThemeToggle.svelte +1 -1
- package/frontend/{lib/components/common → components/common/editor}/MonacoEditor.svelte +2 -2
- package/frontend/{lib/components/common → components/common/feedback}/Alert.svelte +1 -1
- package/frontend/{lib/components/common → components/common/feedback}/ConnectionBanner.svelte +3 -3
- package/frontend/{lib/components/common → components/common/feedback}/LoadingScreen.svelte +1 -1
- package/frontend/{lib/components/common → components/common/feedback}/NotificationToast.svelte +2 -2
- package/frontend/{lib/components/common → components/common/feedback}/UpdateBanner.svelte +3 -3
- package/frontend/{lib/components/common → components/common/form}/Checkbox.svelte +1 -1
- package/frontend/{lib/components/common → components/common/form}/FolderBrowser.svelte +6 -6
- package/frontend/{lib/components/common → components/common/form}/Input.svelte +1 -1
- package/frontend/{lib/components/common → components/common/form}/ModelSelector.svelte +3 -3
- package/frontend/{lib/components/common → components/common/form}/Select.svelte +1 -1
- package/frontend/{lib/components/common → components/common/form}/Textarea.svelte +1 -1
- package/frontend/{lib/components/common → components/common/overlay}/Dialog.svelte +1 -1
- package/frontend/{lib/components/common → components/common/overlay}/Lightbox.svelte +3 -3
- package/frontend/{lib/components/common → components/common/overlay}/ModalProvider.svelte +2 -2
- package/frontend/{lib/components → components}/common/xterm/XTerm.svelte +5 -5
- package/frontend/{lib/components → components}/common/xterm/xterm-service.ts +2 -2
- package/frontend/{lib/components → components}/files/FileNode.svelte +3 -3
- package/frontend/{lib/components → components}/files/FileTree.svelte +5 -5
- package/frontend/{lib/components → components}/files/FileViewer.svelte +7 -7
- package/frontend/{lib/components → components}/files/SearchResults.svelte +3 -3
- package/frontend/{lib/components → components}/git/BranchManager.svelte +6 -6
- package/frontend/{lib/components → components}/git/ChangesSection.svelte +1 -1
- package/frontend/{lib/components → components}/git/CommitForm.svelte +1 -1
- package/frontend/{lib/components → components}/git/ConflictResolver.svelte +1 -1
- package/frontend/{lib/components → components}/git/DiffViewer.svelte +7 -7
- package/frontend/{lib/components → components}/git/FileChangeItem.svelte +3 -3
- package/frontend/{lib/components → components}/git/GitButton.svelte +1 -1
- package/frontend/{lib/components → components}/git/GitLog.svelte +2 -2
- package/frontend/{lib/components → components}/git/GitModal.svelte +3 -3
- package/frontend/{lib/components → components}/history/HistoryModal.svelte +11 -11
- package/frontend/{lib/components → components}/history/HistoryView.svelte +12 -12
- package/frontend/{lib/components → components}/index.ts +9 -9
- package/frontend/{lib/components → components}/preview/browser/BrowserPreview.svelte +3 -3
- package/frontend/{lib/components → components}/preview/browser/components/Canvas.svelte +2 -2
- package/frontend/{lib/components → components}/preview/browser/components/ConsolePanel.svelte +1 -1
- package/frontend/{lib/components → components}/preview/browser/components/Container.svelte +2 -2
- package/frontend/{lib/components → components}/preview/browser/components/ContextMenu.svelte +1 -1
- package/frontend/{lib/components → components}/preview/browser/components/SelectDropdown.svelte +1 -1
- package/frontend/{lib/components → components}/preview/browser/components/Toolbar.svelte +2 -2
- package/frontend/{lib/components → components}/preview/browser/core/cleanup.svelte.ts +1 -1
- package/frontend/{lib/components → components}/preview/browser/core/coordinator.svelte.ts +4 -4
- package/frontend/{lib/components → components}/preview/browser/core/interactions.svelte.ts +3 -3
- package/frontend/{lib/components → components}/preview/browser/core/mcp-handlers.svelte.ts +2 -2
- package/frontend/{lib/components → components}/preview/browser/core/native-ui-handlers.svelte.ts +2 -2
- package/frontend/{lib/components → components}/preview/browser/core/tab-manager.svelte.ts +1 -1
- package/frontend/{lib/components → components}/preview/browser/core/tab-operations.svelte.ts +3 -3
- package/frontend/{lib/components → components}/settings/SettingsModal.svelte +4 -4
- package/frontend/{lib/components → components}/settings/SettingsView.svelte +2 -2
- package/frontend/{lib/components → components}/settings/admin/InviteManagement.svelte +5 -5
- package/frontend/{lib/components → components}/settings/admin/UserManagement.svelte +5 -5
- package/frontend/{lib/components → components}/settings/appearance/AppearanceSettings.svelte +3 -3
- package/frontend/{lib/components → components}/settings/appearance/LayoutPresetSettings.svelte +3 -3
- package/frontend/{lib/components → components}/settings/appearance/LayoutPreview.svelte +1 -1
- package/frontend/{lib/components → components}/settings/engines/AIEnginesSettings.svelte +6 -6
- package/frontend/{lib/components → components}/settings/general/AdvancedSettings.svelte +5 -5
- package/frontend/{lib/components → components}/settings/general/AuthModeSettings.svelte +5 -5
- package/frontend/{lib/components → components}/settings/general/DataManagementSettings.svelte +9 -9
- package/frontend/{lib/components → components}/settings/general/UpdateSettings.svelte +3 -3
- package/frontend/{lib/components → components}/settings/model/ModelSettings.svelte +2 -2
- package/frontend/{lib/components → components}/settings/notifications/NotificationSettings.svelte +4 -4
- package/frontend/{lib/components → components}/settings/user/UserSettings.svelte +5 -5
- package/frontend/{lib/components → components}/terminal/Terminal.svelte +9 -9
- package/frontend/{lib/components → components}/terminal/TerminalTabs.svelte +1 -1
- package/frontend/{lib/components → components}/terminal/TerminalView.svelte +5 -5
- package/frontend/{lib/components → components}/tunnel/TunnelActive.svelte +3 -3
- package/frontend/{lib/components → components}/tunnel/TunnelButton.svelte +2 -2
- package/frontend/{lib/components → components}/tunnel/TunnelInactive.svelte +4 -4
- package/frontend/{lib/components → components}/tunnel/TunnelModal.svelte +2 -2
- package/frontend/{lib/components → components}/workspace/DesktopNavigator.svelte +372 -372
- package/frontend/{lib/components → components}/workspace/MobileNavigator.svelte +380 -380
- package/frontend/{lib/components → components}/workspace/PanelContainer.svelte +3 -3
- package/frontend/{lib/components → components}/workspace/PanelHeader.svelte +10 -10
- package/frontend/{lib/components → components}/workspace/ViewMenu.svelte +4 -4
- package/frontend/{lib/components → components}/workspace/WorkspaceLayout.svelte +17 -17
- package/frontend/{lib/components → components}/workspace/layout/DesktopLayout.svelte +1 -1
- package/frontend/{lib/components → components}/workspace/layout/MobileLayout.svelte +1 -1
- package/frontend/{lib/components → components}/workspace/layout/split-pane/Container.svelte +1 -1
- package/frontend/{lib/components → components}/workspace/layout/split-pane/Handle.svelte +2 -2
- package/frontend/{lib/components → components}/workspace/layout/split-pane/Layout.svelte +2 -2
- package/frontend/{lib/components → components}/workspace/panels/ChatPanel.svelte +14 -14
- package/frontend/{lib/components → components}/workspace/panels/FilesPanel.svelte +10 -10
- package/frontend/{lib/components → components}/workspace/panels/GitPanel.svelte +14 -14
- package/frontend/{lib/components → components}/workspace/panels/PreviewPanel.svelte +5 -5
- package/frontend/{lib/components → components}/workspace/panels/TerminalPanel.svelte +6 -6
- package/frontend/{lib/services → services}/chat/chat.service.ts +8 -8
- package/frontend/{lib/services → services}/notification/global-stream-monitor.ts +117 -117
- package/frontend/{lib/services → services}/notification/push.service.ts +1 -1
- package/frontend/{lib/services → services}/notification/sound.service.ts +1 -1
- package/frontend/{lib/services → services}/preview/browser/browser-console.service.ts +1 -1
- package/frontend/{lib/services → services}/preview/browser/browser-webcodecs.service.ts +1 -1
- package/frontend/{lib/services → services}/preview/browser/mcp-integration.svelte.ts +2 -2
- package/frontend/{lib/services → services}/project/status.service.ts +160 -160
- package/frontend/{lib/services → services}/snapshot/snapshot.service.ts +2 -2
- package/frontend/{lib/services → services}/terminal/background/index.ts +1 -1
- package/frontend/{lib/services → services}/terminal/background/session-restore.ts +1 -1
- package/frontend/{lib/services → services}/terminal/background/stream-manager.ts +1 -1
- package/frontend/{lib/services → services}/terminal/project.service.ts +2 -2
- package/frontend/{lib/services → services}/terminal/terminal.service.ts +2 -2
- package/frontend/{lib/stores → stores}/core/app.svelte.ts +1 -1
- package/frontend/{lib/stores → stores}/core/presence.svelte.ts +4 -4
- package/frontend/{lib/stores → stores}/core/projects.svelte.ts +5 -5
- package/frontend/{lib/stores → stores}/core/sessions.svelte.ts +3 -3
- package/frontend/{lib/stores → stores}/features/auth.svelte.ts +2 -2
- package/frontend/{lib/stores → stores}/features/claude-accounts.svelte.ts +1 -1
- package/frontend/{lib/stores → stores}/features/models.svelte.ts +1 -1
- package/frontend/{lib/stores → stores}/features/settings.svelte.ts +2 -2
- package/frontend/{lib/stores → stores}/features/terminal.svelte.ts +4 -4
- package/frontend/{lib/stores → stores}/features/tunnel.svelte.ts +1 -1
- package/frontend/{lib/stores → stores}/features/user.svelte.ts +1 -1
- package/frontend/{lib/stores → stores}/ui/edit-mode.svelte.ts +3 -3
- package/frontend/{lib/stores → stores}/ui/update.svelte.ts +2 -2
- package/frontend/{lib/utils → utils}/theme.ts +1 -1
- package/frontend/{lib/utils → utils}/ws.ts +1 -1
- package/package.json +1 -1
- package/scripts/dev.ts +1 -1
- package/scripts/generate-icons.ts +2 -2
- package/shared/types/ui/icons.ts +4 -4
- package/shared/utils/anonymous-user.ts +1 -1
- package/shared/utils/ws-server.ts +3 -3
- /package/backend/{lib/auth → auth}/index.ts +0 -0
- /package/backend/{lib/auth → auth}/permissions.ts +0 -0
- /package/backend/{lib/auth → auth}/rate-limiter.ts +0 -0
- /package/backend/{lib/auth → auth}/tokens.ts +0 -0
- /package/backend/{lib/chat → chat}/helpers.ts +0 -0
- /package/backend/{lib/chat → chat}/index.ts +0 -0
- /package/backend/{lib/database → database}/README.md +0 -0
- /package/backend/{lib/database → database}/index.ts +0 -0
- /package/backend/{lib/database → database}/migrations/001_create_projects_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/002_create_chat_sessions_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/003_create_messages_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/004_create_prompt_templates_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/005_create_settings_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/006_add_user_to_messages.ts +0 -0
- /package/backend/{lib/database → database}/migrations/007_create_stream_states_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/008_create_message_snapshots_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/009_add_delta_snapshot_fields.ts +0 -0
- /package/backend/{lib/database → database}/migrations/010_add_soft_delete_and_branch_support.ts +0 -0
- /package/backend/{lib/database → database}/migrations/011_git_like_commit_graph.ts +0 -0
- /package/backend/{lib/database → database}/migrations/012_add_file_change_statistics.ts +0 -0
- /package/backend/{lib/database → database}/migrations/013_checkpoint_tree_state.ts +0 -0
- /package/backend/{lib/database → database}/migrations/014_add_engine_to_sessions.ts +0 -0
- /package/backend/{lib/database → database}/migrations/015_add_model_to_sessions.ts +0 -0
- /package/backend/{lib/database → database}/migrations/016_create_user_projects_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/017_add_current_session_to_user_projects.ts +0 -0
- /package/backend/{lib/database → database}/migrations/018_create_claude_accounts_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/019_add_claude_account_to_sessions.ts +0 -0
- /package/backend/{lib/database → database}/migrations/020_add_snapshot_tree_hash.ts +0 -0
- /package/backend/{lib/database → database}/migrations/021_drop_prompt_templates_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/022_add_snapshot_changes_column.ts +0 -0
- /package/backend/{lib/database → database}/migrations/023_create_user_unread_sessions_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/024_create_users_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/025_create_auth_sessions_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/026_create_invite_tokens_table.ts +0 -0
- /package/backend/{lib/database → database}/migrations/index.ts +0 -0
- /package/backend/{lib/database → database}/queries/auth-queries.ts +0 -0
- /package/backend/{lib/database → database}/queries/checkpoint-queries.ts +0 -0
- /package/backend/{lib/database → database}/queries/engine-queries.ts +0 -0
- /package/backend/{lib/database → database}/queries/index.ts +0 -0
- /package/backend/{lib/database → database}/queries/message-queries.ts +0 -0
- /package/backend/{lib/database → database}/queries/project-queries.ts +0 -0
- /package/backend/{lib/database → database}/queries/session-queries.ts +0 -0
- /package/backend/{lib/database → database}/queries/settings-queries.ts +0 -0
- /package/backend/{lib/database → database}/queries/snapshot-queries.ts +0 -0
- /package/backend/{lib/database → database}/queries/utils-queries.ts +0 -0
- /package/backend/{lib/database → database}/seeders/index.ts +0 -0
- /package/backend/{lib/database → database}/seeders/settings_seeder.ts +0 -0
- /package/backend/{lib/database → database}/utils/connection.ts +0 -0
- /package/backend/{lib/database → database}/utils/index.ts +0 -0
- /package/backend/{lib/database → database}/utils/migration-runner.ts +0 -0
- /package/backend/{lib/database → database}/utils/seeder-runner.ts +0 -0
- /package/backend/{lib/engine → engine}/adapters/claude/error-handler.ts +0 -0
- /package/backend/{lib/engine → engine}/adapters/claude/index.ts +0 -0
- /package/backend/{lib/engine → engine}/adapters/claude/path-utils.ts +0 -0
- /package/backend/{lib/engine → engine}/adapters/claude/stream.ts +0 -0
- /package/backend/{lib/engine → engine}/adapters/opencode/index.ts +0 -0
- /package/backend/{lib/engine → engine}/adapters/opencode/server.ts +0 -0
- /package/backend/{lib/engine → engine}/adapters/opencode/stream.ts +0 -0
- /package/backend/{lib/engine → engine}/index.ts +0 -0
- /package/backend/{lib/engine → engine}/types.ts +0 -0
- /package/backend/{lib/files → files}/file-operations.ts +0 -0
- /package/backend/{lib/files → files}/file-reading.ts +0 -0
- /package/backend/{lib/files → files}/path-browsing.ts +0 -0
- /package/backend/{lib/git → git}/git-parser.ts +0 -0
- /package/backend/{lib/git → git}/git-service.ts +0 -0
- /package/backend/{lib/mcp → mcp}/index.ts +0 -0
- /package/backend/{lib/mcp → mcp}/project-context.ts +0 -0
- /package/backend/{lib/mcp → mcp}/remote-server.ts +0 -0
- /package/backend/{lib/mcp → mcp}/servers/browser-automation/index.ts +0 -0
- /package/backend/{lib/mcp → mcp}/servers/helper.ts +0 -0
- /package/backend/{lib/mcp → mcp}/servers/index.ts +0 -0
- /package/backend/{lib/mcp → mcp}/servers/weather/get-temperature.ts +0 -0
- /package/backend/{lib/mcp → mcp}/servers/weather/index.ts +0 -0
- /package/backend/{lib/mcp → mcp}/types.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/browser-audio-capture.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/browser-console-manager.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/browser-dialog-handler.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/browser-interaction-handler.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/browser-mcp-control.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/browser-native-ui-handler.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/browser-navigation-tracker.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/browser-pool.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/browser-video-capture.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/scripts/audio-stream.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/scripts/cursor-tracking.ts +0 -0
- /package/backend/{lib/preview → preview}/browser/scripts/video-stream.ts +0 -0
- /package/backend/{lib/preview → preview}/index.ts +0 -0
- /package/backend/{lib/project → project}/index.ts +0 -0
- /package/backend/{lib/snapshot → snapshot}/blob-store.ts +0 -0
- /package/backend/{lib/snapshot → snapshot}/gitignore.ts +0 -0
- /package/backend/{lib/snapshot → snapshot}/helpers.ts +0 -0
- /package/backend/{lib/snapshot → snapshot}/snapshot-service.ts +0 -0
- /package/backend/{lib/terminal → terminal}/helpers.ts +0 -0
- /package/backend/{lib/terminal → terminal}/index.ts +0 -0
- /package/backend/{lib/terminal → terminal}/pty-manager.ts +0 -0
- /package/backend/{lib/terminal → terminal}/pty-session-manager.ts +0 -0
- /package/backend/{lib/terminal → terminal}/stream-manager.ts +0 -0
- /package/backend/{lib/tunnel → tunnel}/global-tunnel-manager.ts +0 -0
- /package/backend/{lib/tunnel → tunnel}/project-tunnel-manager.ts +0 -0
- /package/backend/{lib/shared → utils}/env.ts +0 -0
- /package/backend/{lib/shared → utils}/index.ts +0 -0
- /package/backend/{lib/shared → utils}/port-utils.ts +0 -0
- /package/backend/{lib/shared → utils}/process-manager.ts +0 -0
- /package/backend/{lib/user/helpers.ts → utils/user-helpers.ts} +0 -0
- /package/frontend/{lib/app-environment.ts → app-environment.ts} +0 -0
- /package/frontend/{lib/components → components}/chat/formatters/index.ts +0 -0
- /package/frontend/{lib/components → components}/chat/input/components/DragDropOverlay.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/input/composables/use-animations.svelte.ts +0 -0
- /package/frontend/{lib/components → components}/chat/input/composables/use-textarea-resize.svelte.ts +0 -0
- /package/frontend/{lib/components → components}/chat/message/DateSeparator.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/shared/index.ts +0 -0
- /package/frontend/{lib/components → components}/chat/shared/utils.ts +0 -0
- /package/frontend/{lib/components → components}/chat/tools/AgentTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/BashOutputTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/BashTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/EnterPlanModeTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/ExitPlanModeTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/GlobTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/GrepTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/ListMcpResourcesTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/NotebookEditTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/ReadMcpResourceTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/ReadTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/TaskStopTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/TaskTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/WebFetchTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/WebSearchTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/WriteTool.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/components/StatsBadges.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/components/TerminalCommand.svelte +0 -0
- /package/frontend/{lib/components → components}/chat/tools/components/index.ts +0 -0
- /package/frontend/{lib/components → components}/chat/tools/index.ts +0 -0
- /package/frontend/{lib/components → components}/checkpoint/timeline/TimelineEdge.svelte +0 -0
- /package/frontend/{lib/components → components}/checkpoint/timeline/TimelineGraph.svelte +0 -0
- /package/frontend/{lib/components → components}/checkpoint/timeline/TimelineVersionGroup.svelte +0 -0
- /package/frontend/{lib/components → components}/checkpoint/timeline/animation.ts +0 -0
- /package/frontend/{lib/components → components}/checkpoint/timeline/config.ts +0 -0
- /package/frontend/{lib/components → components}/checkpoint/timeline/graph-builder.ts +0 -0
- /package/frontend/{lib/components → components}/checkpoint/timeline/types.ts +0 -0
- /package/frontend/{lib/components → components}/checkpoint/timeline/utils.ts +0 -0
- /package/frontend/{lib/components/common → components/common/display}/AvatarBubble.svelte +0 -0
- /package/frontend/{lib/components/common → components/common/display}/Button.svelte +0 -0
- /package/frontend/{lib/components/common → components/common/display}/Card.svelte +0 -0
- /package/frontend/{lib/components/common → components/common/feedback}/LoadingSpinner.svelte +0 -0
- /package/frontend/{lib/components → components}/common/lucide-icons.ts +0 -0
- /package/frontend/{lib/components → components}/common/material-icons.ts +0 -0
- /package/frontend/{lib/components/common → components/common/overlay}/Modal.svelte +0 -0
- /package/frontend/{lib/components → components}/common/xterm/index.ts +0 -0
- /package/frontend/{lib/components → components}/common/xterm/terminal-config.ts +0 -0
- /package/frontend/{lib/components → components}/common/xterm/types.ts +0 -0
- /package/frontend/{lib/components → components}/preview/browser/components/VirtualCursor.svelte +0 -0
- /package/frontend/{lib/components → components}/preview/browser/core/stream-handler.svelte.ts +0 -0
- /package/frontend/{lib/components → components}/preview/index.ts +0 -0
- /package/frontend/{lib/components → components}/settings/account/AccountSettings.svelte +0 -0
- /package/frontend/{lib/components → components}/settings/general/GeneralSettings.svelte +0 -0
- /package/frontend/{lib/components → components}/settings/security/SecuritySettings.svelte +0 -0
- /package/frontend/{lib/components → components}/settings/system/SystemSettings.svelte +0 -0
- /package/frontend/{lib/components → components}/tunnel/TunnelQRCode.svelte +0 -0
- /package/frontend/{lib/services → services}/chat/index.ts +0 -0
- /package/frontend/{lib/services → services}/notification/index.ts +0 -0
- /package/frontend/{lib/services → services}/preview/index.ts +0 -0
- /package/frontend/{lib/services → services}/project/index.ts +0 -0
- /package/frontend/{lib/services → services}/terminal/index.ts +0 -0
- /package/frontend/{lib/services → services}/terminal/persistence.service.ts +0 -0
- /package/frontend/{lib/services → services}/terminal/session.service.ts +0 -0
- /package/frontend/{lib/stores → stores}/core/files.svelte.ts +0 -0
- /package/frontend/{lib/stores → stores}/ui/chat-input.svelte.ts +0 -0
- /package/frontend/{lib/stores → stores}/ui/chat-model.svelte.ts +0 -0
- /package/frontend/{lib/stores → stores}/ui/connection.svelte.ts +0 -0
- /package/frontend/{lib/stores → stores}/ui/dialog.svelte.ts +0 -0
- /package/frontend/{lib/stores → stores}/ui/notification.svelte.ts +0 -0
- /package/frontend/{lib/stores → stores}/ui/settings-modal.svelte.ts +0 -0
- /package/frontend/{lib/stores → stores}/ui/theme.svelte.ts +0 -0
- /package/frontend/{lib/stores → stores}/ui/workspace.svelte.ts +0 -0
- /package/frontend/{lib/utils → utils}/chat/date-separator.ts +0 -0
- /package/frontend/{lib/utils → utils}/chat/message-grouper.ts +0 -0
- /package/frontend/{lib/utils → utils}/chat/message-processor.ts +0 -0
- /package/frontend/{lib/utils → utils}/chat/tool-handler.ts +0 -0
- /package/frontend/{lib/utils → utils}/chat/virtual-scroll.svelte.ts +0 -0
- /package/frontend/{lib/utils → utils}/click-outside.ts +0 -0
- /package/frontend/{lib/utils → utils}/context-manager.ts +0 -0
- /package/frontend/{lib/utils → utils}/file-icon-mappings.ts +0 -0
- /package/frontend/{lib/utils → utils}/folder-icon-mappings.ts +0 -0
- /package/frontend/{lib/utils → utils}/git-status.ts +0 -0
- /package/frontend/{lib/types → utils}/native-ui.ts +0 -0
- /package/frontend/{lib/utils → utils}/platform.ts +0 -0
- /package/frontend/{lib/utils → utils}/port-check.ts +0 -0
- /package/frontend/{lib/constants/preview.ts → utils/preview-constants.ts} +0 -0
- /package/frontend/{lib/utils/terminalFormatter.ts → utils/terminal-formatter.ts} +0 -0
- /package/frontend/{lib/utils → utils}/tree-visualizer.ts +0 -0
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import { t } from 'elysia';
|
|
17
17
|
import { spawn } from 'bun-pty';
|
|
18
18
|
import { createRouter } from '$shared/utils/ws-server';
|
|
19
|
-
import { ws } from '$backend/
|
|
20
|
-
import { engineQueries } from '../../../
|
|
21
|
-
import { resetEnvironment, getClaudeUserConfigDir } from '../../../
|
|
19
|
+
import { ws } from '$backend/utils/ws';
|
|
20
|
+
import { engineQueries } from '../../../database/queries';
|
|
21
|
+
import { resetEnvironment, getClaudeUserConfigDir } from '../../../engine/adapters/claude/environment';
|
|
22
22
|
import { debug } from '$shared/utils/logger';
|
|
23
|
-
import { getCleanSpawnEnv } from '../../../
|
|
23
|
+
import { getCleanSpawnEnv } from '../../../utils/env';
|
|
24
24
|
import { resolveCommand } from '../utils';
|
|
25
25
|
|
|
26
26
|
// ── Helpers ──
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { t } from 'elysia';
|
|
8
8
|
import { createRouter } from '$shared/utils/ws-server';
|
|
9
|
-
import { engineQueries } from '../../../
|
|
9
|
+
import { engineQueries } from '../../../database/queries';
|
|
10
10
|
import { debug } from '$shared/utils/logger';
|
|
11
11
|
import { getBackendOS, detectCLI } from '../utils';
|
|
12
12
|
|
package/backend/ws/files/read.ts
CHANGED
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
buildFileTree,
|
|
17
17
|
listDirectoryContents,
|
|
18
18
|
readFileContents
|
|
19
|
-
} from '../../
|
|
20
|
-
import { handlePathBrowsing } from '../../
|
|
19
|
+
} from '../../files/file-reading';
|
|
20
|
+
import { handlePathBrowsing } from '../../files/path-browsing';
|
|
21
21
|
|
|
22
22
|
// Bun-compatible existsSync implementation
|
|
23
23
|
async function existsSync(path: string): Promise<boolean> {
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
import { t } from 'elysia';
|
|
11
11
|
import { createRouter } from '$shared/utils/ws-server';
|
|
12
|
-
import { fileWatcher } from '$backend/
|
|
12
|
+
import { fileWatcher } from '$backend/files/file-watcher';
|
|
13
13
|
import { debug } from '$shared/utils/logger';
|
|
14
|
-
import { ws } from '$backend/
|
|
14
|
+
import { ws } from '$backend/utils/ws';
|
|
15
15
|
|
|
16
16
|
export const watchHandler = createRouter()
|
|
17
17
|
// Start watching a project directory
|
package/backend/ws/git/branch.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { t } from 'elysia';
|
|
6
6
|
import { createRouter } from '$shared/utils/ws-server';
|
|
7
|
-
import { gitService } from '../../
|
|
8
|
-
import { projectQueries } from '../../
|
|
7
|
+
import { gitService } from '../../git/git-service';
|
|
8
|
+
import { projectQueries } from '../../database/queries/project-queries';
|
|
9
9
|
|
|
10
10
|
const BranchSchema = t.Object({
|
|
11
11
|
name: t.String(),
|
package/backend/ws/git/commit.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { t } from 'elysia';
|
|
6
6
|
import { createRouter } from '$shared/utils/ws-server';
|
|
7
|
-
import { gitService } from '../../
|
|
8
|
-
import { projectQueries } from '../../
|
|
7
|
+
import { gitService } from '../../git/git-service';
|
|
8
|
+
import { projectQueries } from '../../database/queries/project-queries';
|
|
9
9
|
|
|
10
10
|
export const commitHandler = createRouter()
|
|
11
11
|
.http('git:commit', {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { t } from 'elysia';
|
|
6
6
|
import { createRouter } from '$shared/utils/ws-server';
|
|
7
|
-
import { gitService } from '../../
|
|
8
|
-
import { projectQueries } from '../../
|
|
7
|
+
import { gitService } from '../../git/git-service';
|
|
8
|
+
import { projectQueries } from '../../database/queries/project-queries';
|
|
9
9
|
|
|
10
10
|
const ConflictMarkerSchema = t.Object({
|
|
11
11
|
ourStart: t.Number(),
|
package/backend/ws/git/diff.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { t } from 'elysia';
|
|
6
6
|
import { createRouter } from '$shared/utils/ws-server';
|
|
7
|
-
import { gitService } from '../../
|
|
8
|
-
import { projectQueries } from '../../
|
|
7
|
+
import { gitService } from '../../git/git-service';
|
|
8
|
+
import { projectQueries } from '../../database/queries/project-queries';
|
|
9
9
|
|
|
10
10
|
const DiffHunkLineSchema = t.Object({
|
|
11
11
|
type: t.Union([t.Literal('add'), t.Literal('delete'), t.Literal('context'), t.Literal('header')]),
|
package/backend/ws/git/log.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { t } from 'elysia';
|
|
6
6
|
import { createRouter } from '$shared/utils/ws-server';
|
|
7
|
-
import { gitService } from '../../
|
|
8
|
-
import { projectQueries } from '../../
|
|
7
|
+
import { gitService } from '../../git/git-service';
|
|
8
|
+
import { projectQueries } from '../../database/queries/project-queries';
|
|
9
9
|
|
|
10
10
|
export const logHandler = createRouter()
|
|
11
11
|
.http('git:log', {
|
package/backend/ws/git/remote.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { t } from 'elysia';
|
|
6
6
|
import { createRouter } from '$shared/utils/ws-server';
|
|
7
|
-
import { gitService } from '../../
|
|
8
|
-
import { projectQueries } from '../../
|
|
7
|
+
import { gitService } from '../../git/git-service';
|
|
8
|
+
import { projectQueries } from '../../database/queries/project-queries';
|
|
9
9
|
|
|
10
10
|
export const remoteHandler = createRouter()
|
|
11
11
|
.http('git:remotes', {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { t } from 'elysia';
|
|
6
6
|
import { createRouter } from '$shared/utils/ws-server';
|
|
7
|
-
import { gitService } from '../../
|
|
8
|
-
import { projectQueries } from '../../
|
|
7
|
+
import { gitService } from '../../git/git-service';
|
|
8
|
+
import { projectQueries } from '../../database/queries/project-queries';
|
|
9
9
|
|
|
10
10
|
export const stagingHandler = createRouter()
|
|
11
11
|
.http('git:stage', {
|
package/backend/ws/git/status.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import { t } from 'elysia';
|
|
6
6
|
import { createRouter } from '$shared/utils/ws-server';
|
|
7
|
-
import { gitService } from '../../
|
|
8
|
-
import { projectQueries } from '../../
|
|
9
|
-
import { ws as wsServer } from '../../
|
|
7
|
+
import { gitService } from '../../git/git-service';
|
|
8
|
+
import { projectQueries } from '../../database/queries/project-queries';
|
|
9
|
+
import { ws as wsServer } from '../../utils/ws';
|
|
10
10
|
|
|
11
11
|
export const statusHandler = createRouter()
|
|
12
12
|
.http('git:status', {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { t } from 'elysia';
|
|
11
11
|
import { createRouter } from '$shared/utils/ws-server';
|
|
12
|
-
import { messageQueries } from '../../
|
|
12
|
+
import { messageQueries } from '../../database/queries';
|
|
13
13
|
import { formatDatabaseMessage } from '$shared/utils/message-formatter';
|
|
14
14
|
|
|
15
15
|
export const crudHandler = createRouter()
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import { t } from 'elysia';
|
|
8
8
|
import { createRouter } from '$shared/utils/ws-server';
|
|
9
|
-
import { browserPreviewServiceManager } from '../../../
|
|
10
|
-
import { ws } from '$backend/
|
|
9
|
+
import { browserPreviewServiceManager } from '../../../preview/index';
|
|
10
|
+
import { ws } from '$backend/utils/ws';
|
|
11
11
|
import { debug } from '$shared/utils/logger';
|
|
12
12
|
|
|
13
13
|
export const cleanupPreviewHandler = createRouter()
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import { t } from 'elysia';
|
|
8
8
|
import { createRouter } from '$shared/utils/ws-server';
|
|
9
|
-
import { browserPreviewServiceManager } from '../../../
|
|
10
|
-
import { ws } from '$backend/
|
|
9
|
+
import { browserPreviewServiceManager } from '../../../preview/index';
|
|
10
|
+
import { ws } from '$backend/utils/ws';
|
|
11
11
|
import { debug } from '$shared/utils/logger';
|
|
12
12
|
|
|
13
13
|
export const consolePreviewHandler = createRouter()
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import { t } from 'elysia';
|
|
8
8
|
import { createRouter } from '$shared/utils/ws-server';
|
|
9
|
-
import { browserPreviewServiceManager } from '../../../
|
|
10
|
-
import { ws } from '$backend/
|
|
9
|
+
import { browserPreviewServiceManager } from '../../../preview/index';
|
|
10
|
+
import { ws } from '$backend/utils/ws';
|
|
11
11
|
import type { KeyInput } from 'puppeteer';
|
|
12
12
|
import { debug } from '$shared/utils/logger';
|
|
13
13
|
import { sleep } from '$shared/utils/async';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { createRouter } from '$shared/utils/ws-server';
|
|
8
8
|
import { t } from 'elysia';
|
|
9
|
-
import { browserMcpControl } from '$backend/
|
|
9
|
+
import { browserMcpControl } from '$backend/preview';
|
|
10
10
|
import { debug } from '$shared/utils/logger';
|
|
11
11
|
|
|
12
12
|
// Tab response types
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
import { t } from 'elysia';
|
|
11
11
|
import { createRouter } from '$shared/utils/ws-server';
|
|
12
12
|
import { debug } from '$shared/utils/logger';
|
|
13
|
-
import { browserPreviewServiceManager } from '../../../
|
|
14
|
-
import { ws } from '$backend/
|
|
13
|
+
import { browserPreviewServiceManager } from '../../../preview/index';
|
|
14
|
+
import { ws } from '$backend/utils/ws';
|
|
15
15
|
|
|
16
16
|
// Event forwarding is now handled automatically by BrowserPreviewServiceManager
|
|
17
17
|
// when service instances are created, ensuring proper project isolation.
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import { t } from 'elysia';
|
|
8
8
|
import { createRouter } from '$shared/utils/ws-server';
|
|
9
|
-
import { browserPreviewServiceManager } from '../../../
|
|
10
|
-
import { ws } from '$backend/
|
|
9
|
+
import { browserPreviewServiceManager } from '../../../preview/index';
|
|
10
|
+
import { ws } from '$backend/utils/ws';
|
|
11
11
|
|
|
12
12
|
export const statsPreviewHandler = createRouter()
|
|
13
13
|
.http('preview:browser-tab-stats', {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import { t } from 'elysia';
|
|
8
8
|
import { createRouter } from '$shared/utils/ws-server';
|
|
9
|
-
import { browserPreviewServiceManager } from '../../../
|
|
10
|
-
import { ws } from '$backend/
|
|
9
|
+
import { browserPreviewServiceManager } from '../../../preview/index';
|
|
10
|
+
import { ws } from '$backend/utils/ws';
|
|
11
11
|
import { debug } from '$shared/utils/logger';
|
|
12
12
|
|
|
13
13
|
export const tabInfoPreviewHandler = createRouter()
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import { t } from 'elysia';
|
|
8
8
|
import { createRouter } from '$shared/utils/ws-server';
|
|
9
|
-
import { browserPreviewServiceManager } from '../../../
|
|
10
|
-
import { ws } from '$backend/
|
|
9
|
+
import { browserPreviewServiceManager } from '../../../preview/index';
|
|
10
|
+
import { ws } from '$backend/utils/ws';
|
|
11
11
|
import { debug } from '$shared/utils/logger';
|
|
12
12
|
|
|
13
13
|
// Timeout for browser tab open (60 seconds)
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
import { createRouter } from '$shared/utils/ws-server';
|
|
10
10
|
import { t } from 'elysia';
|
|
11
|
-
import { browserPreviewServiceManager } from '$backend/
|
|
12
|
-
import { ws } from '$backend/
|
|
11
|
+
import { browserPreviewServiceManager } from '$backend/preview';
|
|
12
|
+
import { ws } from '$backend/utils/ws';
|
|
13
13
|
|
|
14
14
|
export const streamPreviewHandler = createRouter()
|
|
15
15
|
// Start streaming
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
import { t } from 'elysia';
|
|
13
13
|
import { createRouter } from '$shared/utils/ws-server';
|
|
14
|
-
import { initializeDatabase } from '../../
|
|
15
|
-
import { projectQueries } from '../../
|
|
16
|
-
import { ws } from '$backend/
|
|
14
|
+
import { initializeDatabase } from '../../database';
|
|
15
|
+
import { projectQueries } from '../../database/queries';
|
|
16
|
+
import { ws } from '$backend/utils/ws';
|
|
17
17
|
|
|
18
18
|
export const crudHandler = createRouter()
|
|
19
19
|
// List all projects for the current user
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
import { t } from 'elysia';
|
|
11
11
|
import { createRouter } from '$shared/utils/ws-server';
|
|
12
|
-
import { updateUserPresence, getProjectStatusData } from '../../
|
|
13
|
-
import { streamManager } from '../../
|
|
14
|
-
import { ws } from '$backend/
|
|
12
|
+
import { updateUserPresence, getProjectStatusData } from '../../project/status-manager';
|
|
13
|
+
import { streamManager } from '../../chat/stream-manager';
|
|
14
|
+
import { ws } from '$backend/utils/ws';
|
|
15
15
|
import { debug } from '$shared/utils/logger';
|
|
16
16
|
|
|
17
17
|
export const presenceHandler = createRouter()
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
import { t } from 'elysia';
|
|
14
14
|
import { createRouter } from '$shared/utils/ws-server';
|
|
15
|
-
import { getProjectStatusData, updateUserPresence } from '../../
|
|
16
|
-
import { streamManager } from '../../
|
|
17
|
-
import { ws } from '$backend/
|
|
15
|
+
import { getProjectStatusData, updateUserPresence } from '../../project/status-manager';
|
|
16
|
+
import { streamManager } from '../../chat/stream-manager';
|
|
17
|
+
import { ws } from '$backend/utils/ws';
|
|
18
18
|
import { debug } from '$shared/utils/logger';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
import { t } from 'elysia';
|
|
14
14
|
import { createRouter } from '$shared/utils/ws-server';
|
|
15
15
|
import type { EngineType } from '$shared/types/engine';
|
|
16
|
-
import { sessionQueries, messageQueries, projectQueries } from '../../
|
|
17
|
-
import { ws } from '$backend/
|
|
16
|
+
import { sessionQueries, messageQueries, projectQueries } from '../../database/queries';
|
|
17
|
+
import { ws } from '$backend/utils/ws';
|
|
18
18
|
import { debug } from '$shared/utils/logger';
|
|
19
19
|
|
|
20
20
|
export const crudHandler = createRouter()
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
import { t } from 'elysia';
|
|
11
11
|
import { createRouter } from '$shared/utils/ws-server';
|
|
12
|
-
import { settingsQueries } from '../../
|
|
13
|
-
import { initializeEngine } from '../../
|
|
12
|
+
import { settingsQueries } from '../../database/queries';
|
|
13
|
+
import { initializeEngine } from '../../engine';
|
|
14
14
|
import { CLAUDE_CODE_MODELS, registerModels } from '$shared/constants/engines';
|
|
15
15
|
import type { EngineType } from '$shared/types/engine';
|
|
16
16
|
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
import { t } from 'elysia';
|
|
10
10
|
import { createRouter } from '$shared/utils/ws-server';
|
|
11
|
-
import { messageQueries, sessionQueries, projectQueries, checkpointQueries } from '../../
|
|
12
|
-
import { snapshotService } from '../../
|
|
11
|
+
import { messageQueries, sessionQueries, projectQueries, checkpointQueries } from '../../database/queries';
|
|
12
|
+
import { snapshotService } from '../../snapshot/snapshot-service';
|
|
13
13
|
import { debug } from '$shared/utils/logger';
|
|
14
14
|
import {
|
|
15
15
|
buildCheckpointTree,
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
findCheckpointForHead,
|
|
18
18
|
findSessionEnd,
|
|
19
19
|
INITIAL_NODE_ID
|
|
20
|
-
} from '../../
|
|
21
|
-
import { ws } from '$backend/
|
|
20
|
+
} from '../../snapshot/helpers';
|
|
21
|
+
import { ws } from '$backend/utils/ws';
|
|
22
22
|
|
|
23
23
|
export const restoreHandler = createRouter()
|
|
24
24
|
/**
|
|
@@ -121,7 +121,7 @@ export const restoreHandler = createRouter()
|
|
|
121
121
|
debug.log('snapshot', 'HEAD cleared (initial state)');
|
|
122
122
|
|
|
123
123
|
// Clear latest_sdk_session_id so next chat starts fresh
|
|
124
|
-
const db = (await import('../../
|
|
124
|
+
const db = (await import('../../database')).getDatabase();
|
|
125
125
|
db.prepare(`UPDATE chat_sessions SET latest_sdk_session_id = NULL WHERE id = ?`).run(sessionId);
|
|
126
126
|
|
|
127
127
|
// Clear checkpoint_tree_state
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { t } from 'elysia';
|
|
9
9
|
import { createRouter } from '$shared/utils/ws-server';
|
|
10
|
-
import { messageQueries, sessionQueries, checkpointQueries, snapshotQueries } from '../../
|
|
10
|
+
import { messageQueries, sessionQueries, checkpointQueries, snapshotQueries } from '../../database/queries';
|
|
11
11
|
import { debug } from '$shared/utils/logger';
|
|
12
12
|
import {
|
|
13
13
|
extractMessageText,
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
isDescendant,
|
|
18
18
|
getCheckpointFileStats,
|
|
19
19
|
INITIAL_NODE_ID
|
|
20
|
-
} from '../../
|
|
21
|
-
import type { CheckpointNode, TimelineResponse } from '../../
|
|
20
|
+
} from '../../snapshot/helpers';
|
|
21
|
+
import type { CheckpointNode, TimelineResponse } from '../../snapshot/helpers';
|
|
22
22
|
import type { SDKMessage } from '$shared/types/messaging';
|
|
23
23
|
|
|
24
24
|
export const timelineHandler = createRouter()
|
|
@@ -11,7 +11,7 @@ import { t } from 'elysia';
|
|
|
11
11
|
import { join } from 'node:path';
|
|
12
12
|
import { readFileSync } from 'node:fs';
|
|
13
13
|
import { createRouter } from '$shared/utils/ws-server';
|
|
14
|
-
import { initializeDatabase, getDatabase } from '../../
|
|
14
|
+
import { initializeDatabase, getDatabase } from '../../database';
|
|
15
15
|
import { debug } from '$shared/utils/logger';
|
|
16
16
|
|
|
17
17
|
/** Read current version from package.json */
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
import { t } from 'elysia';
|
|
11
11
|
import { createRouter } from '$shared/utils/ws-server';
|
|
12
|
-
import { terminalStreamManager } from '../../
|
|
12
|
+
import { terminalStreamManager } from '../../terminal/stream-manager';
|
|
13
13
|
import { debug } from '$shared/utils/logger';
|
|
14
|
-
import { ws } from '$backend/
|
|
15
|
-
import { ptySessionManager } from '../../
|
|
14
|
+
import { ws } from '$backend/utils/ws';
|
|
15
|
+
import { ptySessionManager } from '../../terminal/pty-session-manager';
|
|
16
16
|
|
|
17
17
|
export const persistenceHandler = createRouter()
|
|
18
18
|
// Get stream status
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { t } from 'elysia';
|
|
14
14
|
import { createRouter } from '$shared/utils/ws-server';
|
|
15
|
-
import { ptySessionManager } from '../../
|
|
16
|
-
import { terminalStreamManager } from '../../
|
|
15
|
+
import { ptySessionManager } from '../../terminal/pty-session-manager';
|
|
16
|
+
import { terminalStreamManager } from '../../terminal/stream-manager';
|
|
17
17
|
import { debug } from '$shared/utils/logger';
|
|
18
18
|
import { resolve } from 'path';
|
|
19
|
-
import { isWindows } from '../../
|
|
20
|
-
import { existsSync } from '../../
|
|
21
|
-
import { ws } from '$backend/
|
|
22
|
-
import { activePtyProcesses } from '../../
|
|
19
|
+
import { isWindows } from '../../terminal/shell-utils';
|
|
20
|
+
import { existsSync } from '../../terminal/helpers';
|
|
21
|
+
import { ws } from '$backend/utils/ws';
|
|
22
|
+
import { activePtyProcesses } from '../../terminal/pty-manager';
|
|
23
23
|
|
|
24
24
|
export const sessionHandler = createRouter()
|
|
25
25
|
// Create new terminal session
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
import { t } from 'elysia';
|
|
13
13
|
import { createRouter } from '$shared/utils/ws-server';
|
|
14
|
-
import { ptySessionManager } from '../../
|
|
14
|
+
import { ptySessionManager } from '../../terminal/pty-session-manager';
|
|
15
15
|
import { debug } from '$shared/utils/logger';
|
|
16
|
-
import { ws } from '$backend/
|
|
16
|
+
import { ws } from '$backend/utils/ws';
|
|
17
17
|
|
|
18
18
|
export const streamHandler = createRouter()
|
|
19
19
|
// Send keyboard input to terminal
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { t } from 'elysia';
|
|
11
11
|
import { createRouter } from '$shared/utils/ws-server';
|
|
12
|
-
import { globalTunnelManager } from '../../
|
|
12
|
+
import { globalTunnelManager } from '../../tunnel/global-tunnel-manager';
|
|
13
13
|
import { debug } from '$shared/utils/logger';
|
|
14
14
|
|
|
15
15
|
export const operationsHandler = createRouter()
|
package/backend/ws/user/crud.ts
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
import { t } from 'elysia';
|
|
12
12
|
import { createRouter } from '$shared/utils/ws-server';
|
|
13
|
-
import { generateAnonymousUser, generateColorFromString, getInitials } from '../../
|
|
14
|
-
import type { AnonymousUser } from '../../
|
|
15
|
-
import { ws } from '$backend/
|
|
16
|
-
import { settingsQueries } from '$backend/
|
|
13
|
+
import { generateAnonymousUser, generateColorFromString, getInitials } from '../../utils/user-helpers';
|
|
14
|
+
import type { AnonymousUser } from '../../utils/user-helpers';
|
|
15
|
+
import { ws } from '$backend/utils/ws';
|
|
16
|
+
import { settingsQueries } from '$backend/database/queries';
|
|
17
17
|
import { debug } from '$shared/utils/logger';
|
|
18
18
|
|
|
19
19
|
/**
|
package/frontend/App.svelte
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { onMount, onDestroy } from 'svelte';
|
|
3
|
-
import { authStore } from '$frontend/
|
|
4
|
-
import WorkspaceLayout from '$frontend/
|
|
5
|
-
import ConnectionBanner from '$frontend/
|
|
6
|
-
import UpdateBanner from '$frontend/
|
|
7
|
-
import LoadingScreen from '$frontend/
|
|
8
|
-
import SetupPage from '$frontend/
|
|
9
|
-
import LoginPage from '$frontend/
|
|
10
|
-
import InvitePage from '$frontend/
|
|
11
|
-
import { backgroundTerminalService } from '$frontend/
|
|
12
|
-
import { initializeMCPPreview } from '$frontend/
|
|
13
|
-
import { globalStreamMonitor } from '$frontend/
|
|
14
|
-
import { tunnelStore } from '$frontend/
|
|
15
|
-
import { startUpdateChecker, stopUpdateChecker } from '$frontend/
|
|
3
|
+
import { authStore } from '$frontend/stores/features/auth.svelte';
|
|
4
|
+
import WorkspaceLayout from '$frontend/components/workspace/WorkspaceLayout.svelte';
|
|
5
|
+
import ConnectionBanner from '$frontend/components/common/feedback/ConnectionBanner.svelte';
|
|
6
|
+
import UpdateBanner from '$frontend/components/common/feedback/UpdateBanner.svelte';
|
|
7
|
+
import LoadingScreen from '$frontend/components/common/feedback/LoadingScreen.svelte';
|
|
8
|
+
import SetupPage from '$frontend/components/auth/SetupPage.svelte';
|
|
9
|
+
import LoginPage from '$frontend/components/auth/LoginPage.svelte';
|
|
10
|
+
import InvitePage from '$frontend/components/auth/InvitePage.svelte';
|
|
11
|
+
import { backgroundTerminalService } from '$frontend/services/terminal/background';
|
|
12
|
+
import { initializeMCPPreview } from '$frontend/services/preview';
|
|
13
|
+
import { globalStreamMonitor } from '$frontend/services/notification/global-stream-monitor';
|
|
14
|
+
import { tunnelStore } from '$frontend/stores/features/tunnel.svelte';
|
|
15
|
+
import { startUpdateChecker, stopUpdateChecker } from '$frontend/stores/ui/update.svelte';
|
|
16
16
|
|
|
17
17
|
let servicesInitialized = false;
|
|
18
18
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { onMount } from 'svelte';
|
|
3
|
-
import { authStore } from '$frontend/
|
|
4
|
-
import ws from '$frontend/
|
|
3
|
+
import { authStore } from '$frontend/stores/features/auth.svelte';
|
|
4
|
+
import ws from '$frontend/utils/ws';
|
|
5
5
|
|
|
6
6
|
let name = $state('');
|
|
7
7
|
let error = $state('');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { onMount, onDestroy } from 'svelte';
|
|
3
|
-
import { authStore } from '$frontend/
|
|
4
|
-
import { themeStore, toggleDarkMode, isDarkMode, initializeTheme } from '$frontend/
|
|
5
|
-
import { settings, updateSettings, applyFontSize } from '$frontend/
|
|
3
|
+
import { authStore } from '$frontend/stores/features/auth.svelte';
|
|
4
|
+
import { themeStore, toggleDarkMode, isDarkMode, initializeTheme } from '$frontend/stores/ui/theme.svelte';
|
|
5
|
+
import { settings, updateSettings, applyFontSize } from '$frontend/stores/features/settings.svelte';
|
|
6
6
|
import { ENGINES } from '$shared/constants/engines';
|
|
7
|
-
import { claudeAccountsStore, type ClaudeAccountItem } from '$frontend/
|
|
8
|
-
import Icon from '$frontend/
|
|
9
|
-
import ws from '$frontend/
|
|
7
|
+
import { claudeAccountsStore, type ClaudeAccountItem } from '$frontend/stores/features/claude-accounts.svelte';
|
|
8
|
+
import Icon from '$frontend/components/common/display/Icon.svelte';
|
|
9
|
+
import ws from '$frontend/utils/ws';
|
|
10
10
|
import type { AuthMode } from '$shared/types/stores/settings';
|
|
11
11
|
import type { IconName } from '$shared/types/ui/icons';
|
|
12
12
|
|
|
@@ -10,29 +10,29 @@
|
|
|
10
10
|
-->
|
|
11
11
|
|
|
12
12
|
<script lang="ts">
|
|
13
|
-
import { sessionState, setCurrentSession, createNewChatSession, clearMessages, loadMessagesForSession } from '$frontend/
|
|
14
|
-
import { projectState } from '$frontend/
|
|
15
|
-
import { appState, isSessionUnread } from '$frontend/
|
|
16
|
-
import { presenceState, isSessionWaitingInput } from '$frontend/
|
|
17
|
-
import { userStore } from '$frontend/
|
|
18
|
-
import { addNotification } from '$frontend/
|
|
19
|
-
import { chatService } from '$frontend/
|
|
13
|
+
import { sessionState, setCurrentSession, createNewChatSession, clearMessages, loadMessagesForSession } from '$frontend/stores/core/sessions.svelte';
|
|
14
|
+
import { projectState } from '$frontend/stores/core/projects.svelte';
|
|
15
|
+
import { appState, isSessionUnread } from '$frontend/stores/core/app.svelte';
|
|
16
|
+
import { presenceState, isSessionWaitingInput } from '$frontend/stores/core/presence.svelte';
|
|
17
|
+
import { userStore } from '$frontend/stores/features/user.svelte';
|
|
18
|
+
import { addNotification } from '$frontend/stores/ui/notification.svelte';
|
|
19
|
+
import { chatService } from '$frontend/services/chat/chat.service';
|
|
20
20
|
import { onMount } from 'svelte';
|
|
21
21
|
import { fade } from 'svelte/transition';
|
|
22
22
|
import ChatMessages from './message/ChatMessages.svelte';
|
|
23
23
|
import ChatInput from './input/ChatInput.svelte';
|
|
24
24
|
import FloatingTodoList from './widgets/FloatingTodoList.svelte';
|
|
25
|
-
import TimelineModal from '$frontend/
|
|
25
|
+
import TimelineModal from '$frontend/components/checkpoint/TimelineModal.svelte';
|
|
26
26
|
// import TokenUsage from './widgets/TokenUsage.svelte'; // DISABLED
|
|
27
|
-
import Icon from '$frontend/
|
|
28
|
-
import AvatarBubble from '$frontend/
|
|
29
|
-
import Button from '$frontend/
|
|
30
|
-
import PageTemplate from '$frontend/
|
|
31
|
-
import Modal from '$frontend/
|
|
27
|
+
import Icon from '$frontend/components/common/display/Icon.svelte';
|
|
28
|
+
import AvatarBubble from '$frontend/components/common/display/AvatarBubble.svelte';
|
|
29
|
+
import Button from '$frontend/components/common/display/Button.svelte';
|
|
30
|
+
import PageTemplate from '$frontend/components/common/display/PageTemplate.svelte';
|
|
31
|
+
import Modal from '$frontend/components/common/overlay/Modal.svelte';
|
|
32
32
|
import type { IconName } from '$shared/types/ui/icons';
|
|
33
33
|
import type { ChatSession } from '$shared/types/database/schema';
|
|
34
34
|
import { debug } from '$shared/utils/logger';
|
|
35
|
-
import ws from '$frontend/
|
|
35
|
+
import ws from '$frontend/utils/ws';
|
|
36
36
|
|
|
37
37
|
// Welcome state - don't show during restoration
|
|
38
38
|
const isWelcomeState = $derived(
|