@myrialabs/clopen 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +6 -0
- package/.github/workflows/release.yml +60 -0
- package/.github/workflows/test.yml +40 -0
- package/CONTRIBUTING.md +499 -0
- package/LICENSE +21 -0
- package/README.md +209 -0
- package/backend/index.ts +156 -0
- package/backend/lib/chat/helpers.ts +42 -0
- package/backend/lib/chat/index.ts +2 -0
- package/backend/lib/chat/stream-manager.ts +1126 -0
- package/backend/lib/database/README.md +77 -0
- package/backend/lib/database/index.ts +119 -0
- package/backend/lib/database/migrations/001_create_projects_table.ts +31 -0
- package/backend/lib/database/migrations/002_create_chat_sessions_table.ts +33 -0
- package/backend/lib/database/migrations/003_create_messages_table.ts +32 -0
- package/backend/lib/database/migrations/004_create_prompt_templates_table.ts +34 -0
- package/backend/lib/database/migrations/005_create_settings_table.ts +24 -0
- package/backend/lib/database/migrations/006_add_user_to_messages.ts +58 -0
- package/backend/lib/database/migrations/007_create_stream_states_table.ts +41 -0
- package/backend/lib/database/migrations/008_create_message_snapshots_table.ts +62 -0
- package/backend/lib/database/migrations/009_add_delta_snapshot_fields.ts +41 -0
- package/backend/lib/database/migrations/010_add_soft_delete_and_branch_support.ts +70 -0
- package/backend/lib/database/migrations/011_git_like_commit_graph.ts +156 -0
- package/backend/lib/database/migrations/012_add_file_change_statistics.ts +41 -0
- package/backend/lib/database/migrations/013_checkpoint_tree_state.ts +118 -0
- package/backend/lib/database/migrations/014_add_engine_to_sessions.ts +18 -0
- package/backend/lib/database/migrations/015_add_model_to_sessions.ts +18 -0
- package/backend/lib/database/migrations/016_create_user_projects_table.ts +34 -0
- package/backend/lib/database/migrations/017_add_current_session_to_user_projects.ts +32 -0
- package/backend/lib/database/migrations/018_create_claude_accounts_table.ts +24 -0
- package/backend/lib/database/migrations/019_add_claude_account_to_sessions.ts +18 -0
- package/backend/lib/database/migrations/020_add_snapshot_tree_hash.ts +32 -0
- package/backend/lib/database/migrations/021_drop_prompt_templates_table.ts +33 -0
- package/backend/lib/database/migrations/index.ts +154 -0
- package/backend/lib/database/queries/checkpoint-queries.ts +87 -0
- package/backend/lib/database/queries/engine-queries.ts +75 -0
- package/backend/lib/database/queries/index.ts +9 -0
- package/backend/lib/database/queries/message-queries.ts +472 -0
- package/backend/lib/database/queries/project-queries.ts +117 -0
- package/backend/lib/database/queries/session-queries.ts +271 -0
- package/backend/lib/database/queries/settings-queries.ts +34 -0
- package/backend/lib/database/queries/snapshot-queries.ts +326 -0
- package/backend/lib/database/queries/utils-queries.ts +59 -0
- package/backend/lib/database/seeders/index.ts +13 -0
- package/backend/lib/database/seeders/settings_seeder.ts +84 -0
- package/backend/lib/database/utils/connection.ts +174 -0
- package/backend/lib/database/utils/index.ts +4 -0
- package/backend/lib/database/utils/migration-runner.ts +118 -0
- package/backend/lib/database/utils/seeder-runner.ts +121 -0
- package/backend/lib/engine/adapters/claude/environment.ts +164 -0
- package/backend/lib/engine/adapters/claude/error-handler.ts +60 -0
- package/backend/lib/engine/adapters/claude/index.ts +1 -0
- package/backend/lib/engine/adapters/claude/path-utils.ts +38 -0
- package/backend/lib/engine/adapters/claude/stream.ts +177 -0
- package/backend/lib/engine/adapters/opencode/index.ts +2 -0
- package/backend/lib/engine/adapters/opencode/message-converter.ts +862 -0
- package/backend/lib/engine/adapters/opencode/server.ts +104 -0
- package/backend/lib/engine/adapters/opencode/stream.ts +755 -0
- package/backend/lib/engine/index.ts +196 -0
- package/backend/lib/engine/types.ts +58 -0
- package/backend/lib/files/file-operations.ts +478 -0
- package/backend/lib/files/file-reading.ts +308 -0
- package/backend/lib/files/file-watcher.ts +383 -0
- package/backend/lib/files/path-browsing.ts +382 -0
- package/backend/lib/git/git-executor.ts +88 -0
- package/backend/lib/git/git-parser.ts +411 -0
- package/backend/lib/git/git-service.ts +505 -0
- package/backend/lib/mcp/README.md +1144 -0
- package/backend/lib/mcp/config.ts +316 -0
- package/backend/lib/mcp/index.ts +35 -0
- package/backend/lib/mcp/project-context.ts +236 -0
- package/backend/lib/mcp/servers/browser-automation/actions.ts +156 -0
- package/backend/lib/mcp/servers/browser-automation/browser.ts +419 -0
- package/backend/lib/mcp/servers/browser-automation/index.ts +791 -0
- package/backend/lib/mcp/servers/browser-automation/inspection.ts +501 -0
- package/backend/lib/mcp/servers/helper.ts +143 -0
- package/backend/lib/mcp/servers/index.ts +45 -0
- package/backend/lib/mcp/servers/weather/get-temperature.ts +56 -0
- package/backend/lib/mcp/servers/weather/index.ts +31 -0
- package/backend/lib/mcp/stdio-server.ts +103 -0
- package/backend/lib/mcp/types.ts +65 -0
- package/backend/lib/preview/browser/browser-audio-capture.ts +86 -0
- package/backend/lib/preview/browser/browser-console-manager.ts +263 -0
- package/backend/lib/preview/browser/browser-dialog-handler.ts +222 -0
- package/backend/lib/preview/browser/browser-interaction-handler.ts +421 -0
- package/backend/lib/preview/browser/browser-mcp-control.ts +415 -0
- package/backend/lib/preview/browser/browser-native-ui-handler.ts +512 -0
- package/backend/lib/preview/browser/browser-navigation-tracker.ts +104 -0
- package/backend/lib/preview/browser/browser-pool.ts +357 -0
- package/backend/lib/preview/browser/browser-preview-service.ts +882 -0
- package/backend/lib/preview/browser/browser-tab-manager.ts +935 -0
- package/backend/lib/preview/browser/browser-video-capture.ts +695 -0
- package/backend/lib/preview/browser/scripts/audio-stream.ts +292 -0
- package/backend/lib/preview/browser/scripts/cursor-tracking.ts +85 -0
- package/backend/lib/preview/browser/scripts/video-stream.ts +438 -0
- package/backend/lib/preview/browser/types.ts +359 -0
- package/backend/lib/preview/index.ts +24 -0
- package/backend/lib/project/index.ts +2 -0
- package/backend/lib/project/status-manager.ts +182 -0
- package/backend/lib/shared/index.ts +2 -0
- package/backend/lib/shared/port-utils.ts +25 -0
- package/backend/lib/shared/process-manager.ts +281 -0
- package/backend/lib/snapshot/blob-store.ts +227 -0
- package/backend/lib/snapshot/gitignore.ts +307 -0
- package/backend/lib/snapshot/helpers.ts +397 -0
- package/backend/lib/snapshot/snapshot-service.ts +483 -0
- package/backend/lib/terminal/helpers.ts +14 -0
- package/backend/lib/terminal/index.ts +8 -0
- package/backend/lib/terminal/pty-manager.ts +4 -0
- package/backend/lib/terminal/pty-session-manager.ts +387 -0
- package/backend/lib/terminal/shell-utils.ts +313 -0
- package/backend/lib/terminal/stream-manager.ts +293 -0
- package/backend/lib/tunnel/global-tunnel-manager.ts +243 -0
- package/backend/lib/tunnel/project-tunnel-manager.ts +311 -0
- package/backend/lib/user/helpers.ts +87 -0
- package/backend/lib/utils/ws.ts +944 -0
- package/backend/lib/vite-dev.ts +353 -0
- package/backend/middleware/cors.ts +15 -0
- package/backend/middleware/error-handler.ts +49 -0
- package/backend/middleware/logger.ts +9 -0
- package/backend/types/api.ts +24 -0
- package/backend/ws/README.md +1505 -0
- package/backend/ws/chat/background.ts +198 -0
- package/backend/ws/chat/index.ts +21 -0
- package/backend/ws/chat/stream.ts +707 -0
- package/backend/ws/engine/claude/accounts.ts +401 -0
- package/backend/ws/engine/claude/index.ts +13 -0
- package/backend/ws/engine/claude/status.ts +43 -0
- package/backend/ws/engine/index.ts +14 -0
- package/backend/ws/engine/opencode/index.ts +11 -0
- package/backend/ws/engine/opencode/status.ts +30 -0
- package/backend/ws/engine/utils.ts +36 -0
- package/backend/ws/files/index.ts +30 -0
- package/backend/ws/files/read.ts +189 -0
- package/backend/ws/files/search.ts +453 -0
- package/backend/ws/files/watch.ts +124 -0
- package/backend/ws/files/write.ts +143 -0
- package/backend/ws/git/branch.ts +106 -0
- package/backend/ws/git/commit.ts +39 -0
- package/backend/ws/git/conflict.ts +68 -0
- package/backend/ws/git/diff.ts +69 -0
- package/backend/ws/git/index.ts +24 -0
- package/backend/ws/git/log.ts +41 -0
- package/backend/ws/git/remote.ts +214 -0
- package/backend/ws/git/staging.ts +84 -0
- package/backend/ws/git/status.ts +90 -0
- package/backend/ws/index.ts +69 -0
- package/backend/ws/mcp/index.ts +61 -0
- package/backend/ws/messages/crud.ts +74 -0
- package/backend/ws/messages/index.ts +14 -0
- package/backend/ws/preview/browser/cleanup.ts +129 -0
- package/backend/ws/preview/browser/console.ts +114 -0
- package/backend/ws/preview/browser/interact.ts +513 -0
- package/backend/ws/preview/browser/mcp.ts +129 -0
- package/backend/ws/preview/browser/native-ui.ts +235 -0
- package/backend/ws/preview/browser/stats.ts +55 -0
- package/backend/ws/preview/browser/tab-info.ts +126 -0
- package/backend/ws/preview/browser/tab.ts +166 -0
- package/backend/ws/preview/browser/webcodecs.ts +293 -0
- package/backend/ws/preview/index.ts +146 -0
- package/backend/ws/projects/crud.ts +113 -0
- package/backend/ws/projects/index.ts +25 -0
- package/backend/ws/projects/presence.ts +46 -0
- package/backend/ws/projects/status.ts +116 -0
- package/backend/ws/sessions/crud.ts +327 -0
- package/backend/ws/sessions/index.ts +33 -0
- package/backend/ws/settings/crud.ts +112 -0
- package/backend/ws/settings/index.ts +14 -0
- package/backend/ws/snapshot/index.ts +17 -0
- package/backend/ws/snapshot/restore.ts +173 -0
- package/backend/ws/snapshot/timeline.ts +141 -0
- package/backend/ws/system/index.ts +14 -0
- package/backend/ws/system/operations.ts +49 -0
- package/backend/ws/terminal/index.ts +40 -0
- package/backend/ws/terminal/persistence.ts +153 -0
- package/backend/ws/terminal/session.ts +382 -0
- package/backend/ws/terminal/stream.ts +79 -0
- package/backend/ws/tunnel/index.ts +14 -0
- package/backend/ws/tunnel/operations.ts +91 -0
- package/backend/ws/types.ts +20 -0
- package/backend/ws/user/crud.ts +156 -0
- package/backend/ws/user/index.ts +14 -0
- package/bin/clopen.ts +307 -0
- package/bun.lock +1352 -0
- package/frontend/App.svelte +34 -0
- package/frontend/app.css +313 -0
- package/frontend/lib/app-environment.ts +10 -0
- package/frontend/lib/components/chat/ChatInterface.svelte +407 -0
- package/frontend/lib/components/chat/formatters/ErrorMessage.svelte +57 -0
- package/frontend/lib/components/chat/formatters/MessageFormatter.svelte +224 -0
- package/frontend/lib/components/chat/formatters/TextMessage.svelte +395 -0
- package/frontend/lib/components/chat/formatters/Tools.svelte +70 -0
- package/frontend/lib/components/chat/formatters/index.ts +3 -0
- package/frontend/lib/components/chat/input/ChatInput.svelte +421 -0
- package/frontend/lib/components/chat/input/components/ChatInputActions.svelte +78 -0
- package/frontend/lib/components/chat/input/components/DragDropOverlay.svelte +30 -0
- package/frontend/lib/components/chat/input/components/EditModeIndicator.svelte +33 -0
- package/frontend/lib/components/chat/input/components/EngineModelPicker.svelte +619 -0
- package/frontend/lib/components/chat/input/components/FileAttachmentPreview.svelte +48 -0
- package/frontend/lib/components/chat/input/components/LoadingIndicator.svelte +31 -0
- package/frontend/lib/components/chat/input/composables/use-animations.svelte.ts +201 -0
- package/frontend/lib/components/chat/input/composables/use-chat-actions.svelte.ts +148 -0
- package/frontend/lib/components/chat/input/composables/use-file-handling.svelte.ts +216 -0
- package/frontend/lib/components/chat/input/composables/use-input-state.svelte.ts +357 -0
- package/frontend/lib/components/chat/input/composables/use-textarea-resize.svelte.ts +57 -0
- package/frontend/lib/components/chat/message/ChatMessage.svelte +478 -0
- package/frontend/lib/components/chat/message/ChatMessages.svelte +541 -0
- package/frontend/lib/components/chat/message/DateSeparator.svelte +86 -0
- package/frontend/lib/components/chat/message/MessageBubble.svelte +86 -0
- package/frontend/lib/components/chat/message/MessageHeader.svelte +157 -0
- package/frontend/lib/components/chat/modal/DebugModal.svelte +59 -0
- package/frontend/lib/components/chat/modal/TokenUsageModal.svelte +124 -0
- package/frontend/lib/components/chat/shared/index.ts +2 -0
- package/frontend/lib/components/chat/shared/utils.ts +116 -0
- package/frontend/lib/components/chat/tools/BashOutputTool.svelte +35 -0
- package/frontend/lib/components/chat/tools/BashTool.svelte +46 -0
- package/frontend/lib/components/chat/tools/CustomMcpTool.svelte +139 -0
- package/frontend/lib/components/chat/tools/EditTool.svelte +48 -0
- package/frontend/lib/components/chat/tools/ExitPlanModeTool.svelte +32 -0
- package/frontend/lib/components/chat/tools/GlobTool.svelte +51 -0
- package/frontend/lib/components/chat/tools/GrepTool.svelte +90 -0
- package/frontend/lib/components/chat/tools/KillShellTool.svelte +26 -0
- package/frontend/lib/components/chat/tools/ListMcpResourcesTool.svelte +31 -0
- package/frontend/lib/components/chat/tools/NotebookEditTool.svelte +38 -0
- package/frontend/lib/components/chat/tools/ReadMcpResourceTool.svelte +34 -0
- package/frontend/lib/components/chat/tools/ReadTool.svelte +41 -0
- package/frontend/lib/components/chat/tools/TaskTool.svelte +64 -0
- package/frontend/lib/components/chat/tools/TodoWriteTool.svelte +75 -0
- package/frontend/lib/components/chat/tools/WebFetchTool.svelte +35 -0
- package/frontend/lib/components/chat/tools/WebSearchTool.svelte +84 -0
- package/frontend/lib/components/chat/tools/WriteTool.svelte +33 -0
- package/frontend/lib/components/chat/tools/components/CodeBlock.svelte +79 -0
- package/frontend/lib/components/chat/tools/components/DiffBlock.svelte +408 -0
- package/frontend/lib/components/chat/tools/components/FileHeader.svelte +45 -0
- package/frontend/lib/components/chat/tools/components/InfoLine.svelte +19 -0
- package/frontend/lib/components/chat/tools/components/StatsBadges.svelte +27 -0
- package/frontend/lib/components/chat/tools/components/TerminalCommand.svelte +54 -0
- package/frontend/lib/components/chat/tools/components/index.ts +7 -0
- package/frontend/lib/components/chat/tools/index.ts +26 -0
- package/frontend/lib/components/chat/widgets/FloatingTodoList.svelte +249 -0
- package/frontend/lib/components/chat/widgets/TokenUsage.svelte +78 -0
- package/frontend/lib/components/checkpoint/TimelineModal.svelte +391 -0
- package/frontend/lib/components/checkpoint/timeline/TimelineEdge.svelte +26 -0
- package/frontend/lib/components/checkpoint/timeline/TimelineGraph.svelte +87 -0
- package/frontend/lib/components/checkpoint/timeline/TimelineNode.svelte +108 -0
- package/frontend/lib/components/checkpoint/timeline/TimelineVersionGroup.svelte +59 -0
- package/frontend/lib/components/checkpoint/timeline/animation.ts +168 -0
- package/frontend/lib/components/checkpoint/timeline/config.ts +44 -0
- package/frontend/lib/components/checkpoint/timeline/graph-builder.ts +304 -0
- package/frontend/lib/components/checkpoint/timeline/types.ts +65 -0
- package/frontend/lib/components/checkpoint/timeline/utils.ts +53 -0
- package/frontend/lib/components/common/Alert.svelte +139 -0
- package/frontend/lib/components/common/AvatarBubble.svelte +56 -0
- package/frontend/lib/components/common/Button.svelte +71 -0
- package/frontend/lib/components/common/Card.svelte +102 -0
- package/frontend/lib/components/common/Checkbox.svelte +48 -0
- package/frontend/lib/components/common/Dialog.svelte +249 -0
- package/frontend/lib/components/common/FolderBrowser.svelte +843 -0
- package/frontend/lib/components/common/Icon.svelte +58 -0
- package/frontend/lib/components/common/Input.svelte +72 -0
- package/frontend/lib/components/common/Lightbox.svelte +233 -0
- package/frontend/lib/components/common/LoadingScreen.svelte +52 -0
- package/frontend/lib/components/common/LoadingSpinner.svelte +48 -0
- package/frontend/lib/components/common/Modal.svelte +177 -0
- package/frontend/lib/components/common/ModalProvider.svelte +28 -0
- package/frontend/lib/components/common/ModelSelector.svelte +110 -0
- package/frontend/lib/components/common/MonacoEditor.svelte +569 -0
- package/frontend/lib/components/common/NotificationToast.svelte +113 -0
- package/frontend/lib/components/common/PageTemplate.svelte +76 -0
- package/frontend/lib/components/common/ProjectUserAvatars.svelte +79 -0
- package/frontend/lib/components/common/Select.svelte +98 -0
- package/frontend/lib/components/common/Textarea.svelte +80 -0
- package/frontend/lib/components/common/ThemeToggle.svelte +44 -0
- package/frontend/lib/components/common/lucide-icons.ts +1642 -0
- package/frontend/lib/components/common/material-icons.ts +1082 -0
- package/frontend/lib/components/common/xterm/XTerm.svelte +796 -0
- package/frontend/lib/components/common/xterm/index.ts +16 -0
- package/frontend/lib/components/common/xterm/terminal-config.ts +68 -0
- package/frontend/lib/components/common/xterm/types.ts +31 -0
- package/frontend/lib/components/common/xterm/xterm-service.ts +353 -0
- package/frontend/lib/components/files/FileNode.svelte +384 -0
- package/frontend/lib/components/files/FileTree.svelte +681 -0
- package/frontend/lib/components/files/FileViewer.svelte +728 -0
- package/frontend/lib/components/files/SearchResults.svelte +303 -0
- package/frontend/lib/components/git/BranchManager.svelte +458 -0
- package/frontend/lib/components/git/ChangesSection.svelte +107 -0
- package/frontend/lib/components/git/CommitForm.svelte +76 -0
- package/frontend/lib/components/git/ConflictResolver.svelte +158 -0
- package/frontend/lib/components/git/DiffViewer.svelte +364 -0
- package/frontend/lib/components/git/FileChangeItem.svelte +97 -0
- package/frontend/lib/components/git/GitButton.svelte +33 -0
- package/frontend/lib/components/git/GitLog.svelte +361 -0
- package/frontend/lib/components/git/GitModal.svelte +80 -0
- package/frontend/lib/components/history/HistoryModal.svelte +563 -0
- package/frontend/lib/components/history/HistoryView.svelte +615 -0
- package/frontend/lib/components/index.ts +34 -0
- package/frontend/lib/components/preview/browser/BrowserPreview.svelte +549 -0
- package/frontend/lib/components/preview/browser/components/Canvas.svelte +1058 -0
- package/frontend/lib/components/preview/browser/components/ConsolePanel.svelte +757 -0
- package/frontend/lib/components/preview/browser/components/Container.svelte +450 -0
- package/frontend/lib/components/preview/browser/components/ContextMenu.svelte +236 -0
- package/frontend/lib/components/preview/browser/components/SelectDropdown.svelte +224 -0
- package/frontend/lib/components/preview/browser/components/Toolbar.svelte +339 -0
- package/frontend/lib/components/preview/browser/components/VirtualCursor.svelte +36 -0
- package/frontend/lib/components/preview/browser/core/cleanup.svelte.ts +155 -0
- package/frontend/lib/components/preview/browser/core/coordinator.svelte.ts +837 -0
- package/frontend/lib/components/preview/browser/core/interactions.svelte.ts +113 -0
- package/frontend/lib/components/preview/browser/core/mcp-handlers.svelte.ts +296 -0
- package/frontend/lib/components/preview/browser/core/native-ui-handlers.svelte.ts +391 -0
- package/frontend/lib/components/preview/browser/core/stream-handler.svelte.ts +231 -0
- package/frontend/lib/components/preview/browser/core/tab-manager.svelte.ts +210 -0
- package/frontend/lib/components/preview/browser/core/tab-operations.svelte.ts +239 -0
- package/frontend/lib/components/preview/index.ts +2 -0
- package/frontend/lib/components/settings/SettingsModal.svelte +235 -0
- package/frontend/lib/components/settings/SettingsView.svelte +36 -0
- package/frontend/lib/components/settings/appearance/AppearanceSettings.svelte +51 -0
- package/frontend/lib/components/settings/appearance/LayoutPresetSettings.svelte +160 -0
- package/frontend/lib/components/settings/appearance/LayoutPreview.svelte +76 -0
- package/frontend/lib/components/settings/engines/AIEnginesSettings.svelte +917 -0
- package/frontend/lib/components/settings/general/AdvancedSettings.svelte +187 -0
- package/frontend/lib/components/settings/general/DataManagementSettings.svelte +203 -0
- package/frontend/lib/components/settings/general/GeneralSettings.svelte +10 -0
- package/frontend/lib/components/settings/model/ModelSettings.svelte +357 -0
- package/frontend/lib/components/settings/notifications/NotificationSettings.svelte +205 -0
- package/frontend/lib/components/settings/user/UserSettings.svelte +197 -0
- package/frontend/lib/components/terminal/Terminal.svelte +368 -0
- package/frontend/lib/components/terminal/TerminalTabs.svelte +87 -0
- package/frontend/lib/components/terminal/TerminalView.svelte +55 -0
- package/frontend/lib/components/tunnel/TunnelActive.svelte +142 -0
- package/frontend/lib/components/tunnel/TunnelButton.svelte +54 -0
- package/frontend/lib/components/tunnel/TunnelInactive.svelte +284 -0
- package/frontend/lib/components/tunnel/TunnelModal.svelte +47 -0
- package/frontend/lib/components/tunnel/TunnelQRCode.svelte +49 -0
- package/frontend/lib/components/workspace/DesktopNavigator.svelte +382 -0
- package/frontend/lib/components/workspace/MobileNavigator.svelte +403 -0
- package/frontend/lib/components/workspace/PanelContainer.svelte +100 -0
- package/frontend/lib/components/workspace/PanelHeader.svelte +505 -0
- package/frontend/lib/components/workspace/ViewMenu.svelte +162 -0
- package/frontend/lib/components/workspace/WorkspaceLayout.svelte +169 -0
- package/frontend/lib/components/workspace/layout/DesktopLayout.svelte +15 -0
- package/frontend/lib/components/workspace/layout/MobileLayout.svelte +17 -0
- package/frontend/lib/components/workspace/layout/split-pane/Container.svelte +42 -0
- package/frontend/lib/components/workspace/layout/split-pane/Handle.svelte +85 -0
- package/frontend/lib/components/workspace/layout/split-pane/Layout.svelte +37 -0
- package/frontend/lib/components/workspace/panels/ChatPanel.svelte +274 -0
- package/frontend/lib/components/workspace/panels/FilesPanel.svelte +1261 -0
- package/frontend/lib/components/workspace/panels/GitPanel.svelte +1560 -0
- package/frontend/lib/components/workspace/panels/PreviewPanel.svelte +150 -0
- package/frontend/lib/components/workspace/panels/TerminalPanel.svelte +73 -0
- package/frontend/lib/constants/preview.ts +45 -0
- package/frontend/lib/services/chat/chat.service.ts +704 -0
- package/frontend/lib/services/chat/index.ts +7 -0
- package/frontend/lib/services/notification/global-stream-monitor.ts +86 -0
- package/frontend/lib/services/notification/index.ts +8 -0
- package/frontend/lib/services/notification/push.service.ts +144 -0
- package/frontend/lib/services/notification/sound.service.ts +127 -0
- package/frontend/lib/services/preview/browser/browser-console.service.ts +61 -0
- package/frontend/lib/services/preview/browser/browser-webcodecs.service.ts +1499 -0
- package/frontend/lib/services/preview/browser/mcp-integration.svelte.ts +67 -0
- package/frontend/lib/services/preview/index.ts +23 -0
- package/frontend/lib/services/project/index.ts +8 -0
- package/frontend/lib/services/project/status.service.ts +159 -0
- package/frontend/lib/services/snapshot/snapshot.service.ts +47 -0
- package/frontend/lib/services/terminal/background/index.ts +130 -0
- package/frontend/lib/services/terminal/background/session-restore.ts +274 -0
- package/frontend/lib/services/terminal/background/stream-manager.ts +286 -0
- package/frontend/lib/services/terminal/index.ts +14 -0
- package/frontend/lib/services/terminal/persistence.service.ts +260 -0
- package/frontend/lib/services/terminal/project.service.ts +953 -0
- package/frontend/lib/services/terminal/session.service.ts +364 -0
- package/frontend/lib/services/terminal/terminal.service.ts +369 -0
- package/frontend/lib/stores/core/app.svelte.ts +117 -0
- package/frontend/lib/stores/core/files.svelte.ts +73 -0
- package/frontend/lib/stores/core/presence.svelte.ts +48 -0
- package/frontend/lib/stores/core/projects.svelte.ts +317 -0
- package/frontend/lib/stores/core/sessions.svelte.ts +383 -0
- package/frontend/lib/stores/features/claude-accounts.svelte.ts +58 -0
- package/frontend/lib/stores/features/models.svelte.ts +89 -0
- package/frontend/lib/stores/features/settings.svelte.ts +87 -0
- package/frontend/lib/stores/features/terminal.svelte.ts +701 -0
- package/frontend/lib/stores/features/tunnel.svelte.ts +161 -0
- package/frontend/lib/stores/features/user.svelte.ts +96 -0
- package/frontend/lib/stores/ui/chat-input.svelte.ts +57 -0
- package/frontend/lib/stores/ui/chat-model.svelte.ts +61 -0
- package/frontend/lib/stores/ui/dialog.svelte.ts +59 -0
- package/frontend/lib/stores/ui/edit-mode.svelte.ts +214 -0
- package/frontend/lib/stores/ui/notification.svelte.ts +166 -0
- package/frontend/lib/stores/ui/settings-modal.svelte.ts +88 -0
- package/frontend/lib/stores/ui/theme.svelte.ts +179 -0
- package/frontend/lib/stores/ui/workspace.svelte.ts +754 -0
- package/frontend/lib/types/native-ui.ts +73 -0
- package/frontend/lib/utils/chat/date-separator.ts +39 -0
- package/frontend/lib/utils/chat/message-grouper.ts +219 -0
- package/frontend/lib/utils/chat/message-processor.ts +135 -0
- package/frontend/lib/utils/chat/tool-handler.ts +161 -0
- package/frontend/lib/utils/chat/virtual-scroll.svelte.ts +142 -0
- package/frontend/lib/utils/click-outside.ts +20 -0
- package/frontend/lib/utils/context-manager.ts +257 -0
- package/frontend/lib/utils/file-icon-mappings.ts +769 -0
- package/frontend/lib/utils/folder-icon-mappings.ts +1030 -0
- package/frontend/lib/utils/git-status.ts +68 -0
- package/frontend/lib/utils/platform.ts +113 -0
- package/frontend/lib/utils/port-check.ts +65 -0
- package/frontend/lib/utils/terminalFormatter.ts +207 -0
- package/frontend/lib/utils/theme.ts +6 -0
- package/frontend/lib/utils/tree-visualizer.ts +320 -0
- package/frontend/lib/utils/ws.ts +44 -0
- package/frontend/main.ts +13 -0
- package/index.html +70 -0
- package/package.json +111 -0
- package/scripts/generate-icons.ts +87 -0
- package/scripts/pre-publish-check.sh +142 -0
- package/scripts/setup-hooks.sh +134 -0
- package/scripts/validate-branch-name.sh +47 -0
- package/scripts/validate-commit-msg.sh +42 -0
- package/shared/constants/engines.ts +134 -0
- package/shared/types/database/connection.ts +16 -0
- package/shared/types/database/index.ts +6 -0
- package/shared/types/database/schema.ts +141 -0
- package/shared/types/engine/index.ts +45 -0
- package/shared/types/filesystem/index.ts +22 -0
- package/shared/types/git.ts +171 -0
- package/shared/types/messaging/index.ts +239 -0
- package/shared/types/messaging/tool.ts +526 -0
- package/shared/types/network/api.ts +18 -0
- package/shared/types/network/index.ts +5 -0
- package/shared/types/stores/app.ts +23 -0
- package/shared/types/stores/dialog.ts +21 -0
- package/shared/types/stores/index.ts +3 -0
- package/shared/types/stores/settings.ts +15 -0
- package/shared/types/terminal/index.ts +44 -0
- package/shared/types/ui/components.ts +61 -0
- package/shared/types/ui/icons.ts +23 -0
- package/shared/types/ui/index.ts +22 -0
- package/shared/types/ui/notifications.ts +14 -0
- package/shared/types/ui/theme.ts +12 -0
- package/shared/types/websocket/index.ts +43 -0
- package/shared/types/window.d.ts +13 -0
- package/shared/utils/anonymous-user.ts +168 -0
- package/shared/utils/async.ts +10 -0
- package/shared/utils/diff-calculator.ts +184 -0
- package/shared/utils/file-type-detection.ts +166 -0
- package/shared/utils/logger.ts +158 -0
- package/shared/utils/message-formatter.ts +79 -0
- package/shared/utils/path.ts +47 -0
- package/shared/utils/ws-client.ts +768 -0
- package/shared/utils/ws-server.ts +660 -0
- package/static/audio/notification.ogg +0 -0
- package/static/favicon.svg +8 -0
- package/static/fonts/dm-sans/dm-sans-italic-latin-ext.woff2 +0 -0
- package/static/fonts/dm-sans/dm-sans-italic-latin.woff2 +0 -0
- package/static/fonts/dm-sans/dm-sans-normal-latin-ext.woff2 +0 -0
- package/static/fonts/dm-sans/dm-sans-normal-latin.woff2 +0 -0
- package/static/fonts/dm-sans.css +96 -0
- package/svelte.config.js +20 -0
- package/vite.config.ts +33 -0
|
@@ -0,0 +1,769 @@
|
|
|
1
|
+
import type { IconName } from '$shared/types/ui/icons';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Comprehensive file type icon mapping - using Material Icons
|
|
5
|
+
* This file contains mappings for 800+ file extensions and special filenames
|
|
6
|
+
* Uses Material icons for all file types and programming languages
|
|
7
|
+
*/
|
|
8
|
+
export const fileIcons: Record<string, IconName> = {
|
|
9
|
+
// === PROGRAMMING LANGUAGES ===
|
|
10
|
+
|
|
11
|
+
// JavaScript & TypeScript Family
|
|
12
|
+
'.js': 'material:javascript',
|
|
13
|
+
'.jsx': 'material:react',
|
|
14
|
+
'.ts': 'material:typescript',
|
|
15
|
+
'.tsx': 'material:react-ts',
|
|
16
|
+
'.mjs': 'material:javascript',
|
|
17
|
+
'.cjs': 'material:javascript',
|
|
18
|
+
'.es6': 'material:javascript',
|
|
19
|
+
'.es': 'material:javascript',
|
|
20
|
+
'.tsbuildinfo': 'material:typescript',
|
|
21
|
+
|
|
22
|
+
// Frontend Frameworks & Libraries
|
|
23
|
+
'.vue': 'material:vue',
|
|
24
|
+
'.svelte': 'material:svelte',
|
|
25
|
+
'.html': 'material:html',
|
|
26
|
+
'.htm': 'material:html',
|
|
27
|
+
'.xhtml': 'material:xml',
|
|
28
|
+
|
|
29
|
+
// Stylesheets & Preprocessing
|
|
30
|
+
'.css': 'material:css',
|
|
31
|
+
'.scss': 'material:sass',
|
|
32
|
+
'.sass': 'material:sass',
|
|
33
|
+
'.less': 'material:less',
|
|
34
|
+
'.styl': 'material:stylus',
|
|
35
|
+
'.stylus': 'material:stylus',
|
|
36
|
+
|
|
37
|
+
// Backend Languages - Popular
|
|
38
|
+
'.py': 'material:python',
|
|
39
|
+
'.pyw': 'material:python',
|
|
40
|
+
'.pyi': 'material:python',
|
|
41
|
+
'.pyc': 'material:python-misc',
|
|
42
|
+
'.pyo': 'material:python-misc',
|
|
43
|
+
'.java': 'material:java',
|
|
44
|
+
'.class': 'material:javaclass',
|
|
45
|
+
'.jar': 'material:jar',
|
|
46
|
+
'.php': 'material:php',
|
|
47
|
+
'.php3': 'material:php',
|
|
48
|
+
'.php4': 'material:php',
|
|
49
|
+
'.php5': 'material:php',
|
|
50
|
+
'.phtml': 'material:php',
|
|
51
|
+
'artisan': 'material:laravel',
|
|
52
|
+
'.go': 'material:go',
|
|
53
|
+
'.rs': 'material:rust',
|
|
54
|
+
'.cpp': 'material:cpp',
|
|
55
|
+
'.cxx': 'material:cpp',
|
|
56
|
+
'.cc': 'material:cpp',
|
|
57
|
+
'.c': 'material:c',
|
|
58
|
+
'.h': 'material:c',
|
|
59
|
+
'.hpp': 'material:hpp',
|
|
60
|
+
'.hxx': 'material:hpp',
|
|
61
|
+
'.cs': 'material:csharp',
|
|
62
|
+
'.vb': 'material:document',
|
|
63
|
+
'.rb': 'material:ruby',
|
|
64
|
+
'.rbw': 'material:ruby',
|
|
65
|
+
'.swift': 'material:swift',
|
|
66
|
+
'.kt': 'material:kotlin',
|
|
67
|
+
'.kts': 'material:kotlin',
|
|
68
|
+
'.scala': 'material:scala',
|
|
69
|
+
'.sc': 'material:scala',
|
|
70
|
+
|
|
71
|
+
// Emerging & Modern Languages
|
|
72
|
+
'.dart': 'material:dart',
|
|
73
|
+
'.elm': 'material:elm',
|
|
74
|
+
'.hs': 'material:haskell',
|
|
75
|
+
'.lhs': 'material:haskell',
|
|
76
|
+
'.ex': 'material:elixir',
|
|
77
|
+
'.exs': 'material:elixir',
|
|
78
|
+
'.erl': 'material:erlang',
|
|
79
|
+
'.hrl': 'material:erlang',
|
|
80
|
+
'.clj': 'material:clojure',
|
|
81
|
+
'.cljs': 'material:clojure',
|
|
82
|
+
'.cljc': 'material:clojure',
|
|
83
|
+
'.fs': 'material:fsharp',
|
|
84
|
+
'.fsi': 'material:fsharp',
|
|
85
|
+
'.fsx': 'material:fsharp',
|
|
86
|
+
'.ml': 'material:ocaml',
|
|
87
|
+
'.mli': 'material:ocaml',
|
|
88
|
+
'.r': 'material:r',
|
|
89
|
+
'.R': 'material:r',
|
|
90
|
+
'.rdata': 'material:r',
|
|
91
|
+
'.rds': 'material:r',
|
|
92
|
+
'.m': 'material:objective-c',
|
|
93
|
+
'.pl': 'material:perl',
|
|
94
|
+
'.pm': 'material:perl',
|
|
95
|
+
'.lua': 'material:lua',
|
|
96
|
+
'.jl': 'material:julia',
|
|
97
|
+
'.nim': 'material:nim',
|
|
98
|
+
'.nims': 'material:nim',
|
|
99
|
+
'.zig': 'material:zig',
|
|
100
|
+
'.asm': 'material:assembly',
|
|
101
|
+
'.s': 'material:assembly',
|
|
102
|
+
'.pas': 'material:pascal',
|
|
103
|
+
'.pp': 'material:pascal',
|
|
104
|
+
'.dpr': 'material:pascal',
|
|
105
|
+
'.f': 'material:fortran',
|
|
106
|
+
'.f90': 'material:fortran',
|
|
107
|
+
'.f95': 'material:fortran',
|
|
108
|
+
'.cob': 'material:cobol',
|
|
109
|
+
'.cbl': 'material:cobol',
|
|
110
|
+
'.ada': 'material:ada',
|
|
111
|
+
'.adb': 'material:ada',
|
|
112
|
+
'.ads': 'material:ada',
|
|
113
|
+
'.cr': 'material:crystal',
|
|
114
|
+
'.d': 'material:d',
|
|
115
|
+
'.hx': 'material:haxe',
|
|
116
|
+
'.re': 'material:reason',
|
|
117
|
+
'.rei': 'material:reason',
|
|
118
|
+
'.purs': 'material:purescript',
|
|
119
|
+
|
|
120
|
+
// === SCRIPTS & SHELL ===
|
|
121
|
+
'.sh': 'material:console',
|
|
122
|
+
'.bash': 'material:console',
|
|
123
|
+
'.zsh': 'material:console',
|
|
124
|
+
'.fish': 'material:console',
|
|
125
|
+
'.csh': 'material:console',
|
|
126
|
+
'.tcsh': 'material:console',
|
|
127
|
+
'.ksh': 'material:console',
|
|
128
|
+
'.ps1': 'material:powershell',
|
|
129
|
+
'.psm1': 'material:powershell',
|
|
130
|
+
'.psd1': 'material:powershell',
|
|
131
|
+
'.bat': 'material:console',
|
|
132
|
+
'.cmd': 'material:console',
|
|
133
|
+
|
|
134
|
+
// === DATA & CONFIG FORMATS ===
|
|
135
|
+
'.json': 'material:json',
|
|
136
|
+
'.jsonc': 'material:json',
|
|
137
|
+
'.json5': 'material:json',
|
|
138
|
+
'.xml': 'material:xml',
|
|
139
|
+
'.xsd': 'material:xml',
|
|
140
|
+
'.xsl': 'material:xml',
|
|
141
|
+
'.xslt': 'material:xml',
|
|
142
|
+
'.yml': 'material:yaml',
|
|
143
|
+
'.yaml': 'material:yaml',
|
|
144
|
+
'.toml': 'material:toml',
|
|
145
|
+
'.ini': 'material:settings',
|
|
146
|
+
'.cfg': 'material:settings',
|
|
147
|
+
'.conf': 'material:settings',
|
|
148
|
+
'.config': 'material:settings',
|
|
149
|
+
'.properties': 'material:settings',
|
|
150
|
+
|
|
151
|
+
// === API & SCHEMA FORMATS ===
|
|
152
|
+
'.graphql': 'material:graphql',
|
|
153
|
+
'.gql': 'material:graphql',
|
|
154
|
+
'.proto': 'material:proto',
|
|
155
|
+
'.thrift': 'material:apiblueprint',
|
|
156
|
+
'.avro': 'material:apiblueprint',
|
|
157
|
+
'.avsc': 'material:apiblueprint',
|
|
158
|
+
'.avdl': 'material:apiblueprint',
|
|
159
|
+
|
|
160
|
+
// === DATABASE ===
|
|
161
|
+
'.sql': 'material:database',
|
|
162
|
+
'.psql': 'material:database',
|
|
163
|
+
'.mysql': 'material:database',
|
|
164
|
+
'.sqlite': 'material:database',
|
|
165
|
+
'.sqlite3': 'material:database',
|
|
166
|
+
'.db': 'material:database',
|
|
167
|
+
'.mdb': 'material:database',
|
|
168
|
+
|
|
169
|
+
// === DOCUMENTATION ===
|
|
170
|
+
'.md': 'material:markdown',
|
|
171
|
+
'.markdown': 'material:markdown',
|
|
172
|
+
'.mdown': 'material:markdown',
|
|
173
|
+
'.mkd': 'material:markdown',
|
|
174
|
+
'.mdx': 'material:mdx',
|
|
175
|
+
'.txt': 'material:document',
|
|
176
|
+
'.rst': 'material:document',
|
|
177
|
+
'.asciidoc': 'material:asciidoc',
|
|
178
|
+
'.adoc': 'material:asciidoc',
|
|
179
|
+
'.org': 'material:document',
|
|
180
|
+
|
|
181
|
+
// === MEDIA FILES ===
|
|
182
|
+
// Images
|
|
183
|
+
'.png': 'material:image',
|
|
184
|
+
'.jpg': 'material:image',
|
|
185
|
+
'.jpeg': 'material:image',
|
|
186
|
+
'.gif': 'material:image',
|
|
187
|
+
'.bmp': 'material:image',
|
|
188
|
+
'.tiff': 'material:image',
|
|
189
|
+
'.tif': 'material:image',
|
|
190
|
+
'.webp': 'material:image',
|
|
191
|
+
'.svg': 'material:svg',
|
|
192
|
+
'.ico': 'material:image',
|
|
193
|
+
'.icon': 'material:image',
|
|
194
|
+
'.icns': 'material:image',
|
|
195
|
+
'.psd': 'material:adobe-photoshop',
|
|
196
|
+
'.ai': 'material:adobe-illustrator',
|
|
197
|
+
'.eps': 'material:image',
|
|
198
|
+
'.raw': 'material:image',
|
|
199
|
+
'.cr2': 'material:image',
|
|
200
|
+
'.nef': 'material:image',
|
|
201
|
+
'.orf': 'material:image',
|
|
202
|
+
'.sr2': 'material:image',
|
|
203
|
+
|
|
204
|
+
// Videos
|
|
205
|
+
'.mp4': 'material:video',
|
|
206
|
+
'.avi': 'material:video',
|
|
207
|
+
'.mov': 'material:video',
|
|
208
|
+
'.wmv': 'material:video',
|
|
209
|
+
'.flv': 'material:video',
|
|
210
|
+
'.webm': 'material:video',
|
|
211
|
+
'.mkv': 'material:video',
|
|
212
|
+
'.m4v': 'material:video',
|
|
213
|
+
'.3gp': 'material:video',
|
|
214
|
+
'.mpg': 'material:video',
|
|
215
|
+
'.mpeg': 'material:video',
|
|
216
|
+
'.ogv': 'material:video',
|
|
217
|
+
'.asf': 'material:video',
|
|
218
|
+
'.rm': 'material:video',
|
|
219
|
+
'.rmvb': 'material:video',
|
|
220
|
+
'.vob': 'material:video',
|
|
221
|
+
'.m2ts': 'material:video',
|
|
222
|
+
|
|
223
|
+
// Audio
|
|
224
|
+
'.mp3': 'material:audio',
|
|
225
|
+
'.wav': 'material:audio',
|
|
226
|
+
'.flac': 'material:audio',
|
|
227
|
+
'.ogg': 'material:audio',
|
|
228
|
+
'.m4a': 'material:audio',
|
|
229
|
+
'.aac': 'material:audio',
|
|
230
|
+
'.wma': 'material:audio',
|
|
231
|
+
'.opus': 'material:audio',
|
|
232
|
+
'.ape': 'material:audio',
|
|
233
|
+
'.au': 'material:audio',
|
|
234
|
+
'.ra': 'material:audio',
|
|
235
|
+
'.mid': 'material:audio',
|
|
236
|
+
'.midi': 'material:audio',
|
|
237
|
+
'.kar': 'material:audio',
|
|
238
|
+
|
|
239
|
+
// === ARCHIVE & COMPRESSION ===
|
|
240
|
+
'.zip': 'material:zip',
|
|
241
|
+
'.rar': 'material:zip',
|
|
242
|
+
'.7z': 'material:zip',
|
|
243
|
+
'.tar': 'material:zip',
|
|
244
|
+
'.gz': 'material:zip',
|
|
245
|
+
'.bz2': 'material:zip',
|
|
246
|
+
'.xz': 'material:zip',
|
|
247
|
+
'.lz': 'material:zip',
|
|
248
|
+
'.lzma': 'material:zip',
|
|
249
|
+
'.Z': 'material:zip',
|
|
250
|
+
'.cab': 'material:zip',
|
|
251
|
+
'.iso': 'material:zip',
|
|
252
|
+
'.dmg': 'material:zip',
|
|
253
|
+
'.img': 'material:zip',
|
|
254
|
+
'.deb': 'material:zip',
|
|
255
|
+
'.rpm': 'material:zip',
|
|
256
|
+
'.pkg': 'material:zip',
|
|
257
|
+
'.msi': 'material:zip',
|
|
258
|
+
'.apk': 'material:android',
|
|
259
|
+
'.ipa': 'material:zip',
|
|
260
|
+
|
|
261
|
+
// === OFFICE DOCUMENTS ===
|
|
262
|
+
'.pdf': 'material:pdf',
|
|
263
|
+
'.doc': 'material:word',
|
|
264
|
+
'.docx': 'material:word',
|
|
265
|
+
'.docm': 'material:word',
|
|
266
|
+
'.dot': 'material:word',
|
|
267
|
+
'.dotx': 'material:word',
|
|
268
|
+
'.dotm': 'material:word',
|
|
269
|
+
'.odt': 'material:word',
|
|
270
|
+
'.rtf': 'material:word',
|
|
271
|
+
'.wps': 'material:word',
|
|
272
|
+
'.xls': 'material:document',
|
|
273
|
+
'.xlsx': 'material:document',
|
|
274
|
+
'.xlsm': 'material:document',
|
|
275
|
+
'.xlsb': 'material:document',
|
|
276
|
+
'.xlt': 'material:document',
|
|
277
|
+
'.xltx': 'material:document',
|
|
278
|
+
'.xltm': 'material:document',
|
|
279
|
+
'.xlam': 'material:document',
|
|
280
|
+
'.ods': 'material:document',
|
|
281
|
+
'.csv': 'material:table',
|
|
282
|
+
'.tsv': 'material:table',
|
|
283
|
+
'.ppt': 'material:powerpoint',
|
|
284
|
+
'.pptx': 'material:powerpoint',
|
|
285
|
+
'.pptm': 'material:powerpoint',
|
|
286
|
+
'.pps': 'material:powerpoint',
|
|
287
|
+
'.ppsx': 'material:powerpoint',
|
|
288
|
+
'.ppsm': 'material:powerpoint',
|
|
289
|
+
'.pot': 'material:powerpoint',
|
|
290
|
+
'.potx': 'material:powerpoint',
|
|
291
|
+
'.potm': 'material:powerpoint',
|
|
292
|
+
'.odp': 'material:powerpoint',
|
|
293
|
+
|
|
294
|
+
// === ENVIRONMENT & CONFIGURATION ===
|
|
295
|
+
'.env': 'material:settings',
|
|
296
|
+
'.env.example': 'material:settings',
|
|
297
|
+
'.env.local': 'material:settings',
|
|
298
|
+
'.env.development': 'material:settings',
|
|
299
|
+
'.env.production': 'material:settings',
|
|
300
|
+
'.env.test': 'material:settings',
|
|
301
|
+
'.envrc': 'material:settings',
|
|
302
|
+
'.flaskenv': 'material:settings',
|
|
303
|
+
|
|
304
|
+
// === VERSION CONTROL ===
|
|
305
|
+
'.gitignore': 'material:git',
|
|
306
|
+
'.gitattributes': 'material:git',
|
|
307
|
+
'.gitmodules': 'material:git',
|
|
308
|
+
'.gitkeep': 'material:git',
|
|
309
|
+
'.hgignore': 'material:document',
|
|
310
|
+
'.bzrignore': 'material:document',
|
|
311
|
+
'.svnignore': 'material:document',
|
|
312
|
+
'.gitmessage': 'material:git',
|
|
313
|
+
'.gitconfig': 'material:git',
|
|
314
|
+
|
|
315
|
+
// === PACKAGE MANAGERS & BUILD TOOLS ===
|
|
316
|
+
'.npmrc': 'material:npm',
|
|
317
|
+
'.nvmrc': 'material:nodejs',
|
|
318
|
+
'.yarnrc': 'material:yarn',
|
|
319
|
+
'.yarnrc.yml': 'material:yarn',
|
|
320
|
+
'yarn.lock': 'material:yarn',
|
|
321
|
+
'package-lock.json': 'material:npm',
|
|
322
|
+
'pnpm-lock.yaml': 'material:pnpm',
|
|
323
|
+
'bun.lockb': 'material:bun',
|
|
324
|
+
'.pnpmfile.cjs': 'material:pnpm',
|
|
325
|
+
'.pnpmfile.js': 'material:pnpm',
|
|
326
|
+
'pnpm-workspace.yaml': 'material:pnpm',
|
|
327
|
+
'Pipfile': 'material:python',
|
|
328
|
+
'Pipfile.lock': 'material:python',
|
|
329
|
+
'pyproject.toml': 'material:python',
|
|
330
|
+
'poetry.lock': 'material:python',
|
|
331
|
+
'requirements.txt': 'material:python',
|
|
332
|
+
'requirements-dev.txt': 'material:python',
|
|
333
|
+
'environment.yml': 'material:document',
|
|
334
|
+
'Gemfile': 'material:ruby',
|
|
335
|
+
'Gemfile.lock': 'material:ruby',
|
|
336
|
+
'Rakefile': 'material:ruby',
|
|
337
|
+
'Podfile': 'material:document',
|
|
338
|
+
'Cartfile': 'material:document',
|
|
339
|
+
'Cargo.toml': 'material:rust',
|
|
340
|
+
'Cargo.lock': 'material:rust',
|
|
341
|
+
'composer.json': 'material:php',
|
|
342
|
+
'composer.lock': 'material:php',
|
|
343
|
+
'build.gradle': 'material:gradle',
|
|
344
|
+
'build.gradle.kts': 'material:gradle',
|
|
345
|
+
'settings.gradle': 'material:gradle',
|
|
346
|
+
'pom.xml': 'material:maven',
|
|
347
|
+
'build.xml': 'material:document',
|
|
348
|
+
'build.sbt': 'material:document',
|
|
349
|
+
'project.clj': 'material:document',
|
|
350
|
+
|
|
351
|
+
// === LINTING & FORMATTING ===
|
|
352
|
+
'.eslintrc': 'material:eslint',
|
|
353
|
+
'.eslintrc.js': 'material:eslint',
|
|
354
|
+
'.eslintrc.json': 'material:eslint',
|
|
355
|
+
'.eslintrc.yml': 'material:eslint',
|
|
356
|
+
'.eslintrc.yaml': 'material:eslint',
|
|
357
|
+
'.eslintignore': 'material:eslint',
|
|
358
|
+
'.prettierrc': 'material:prettier',
|
|
359
|
+
'.prettierrc.js': 'material:prettier',
|
|
360
|
+
'.prettierrc.json': 'material:prettier',
|
|
361
|
+
'.prettierrc.yml': 'material:prettier',
|
|
362
|
+
'.prettierrc.yaml': 'material:prettier',
|
|
363
|
+
'.prettierignore': 'material:prettier',
|
|
364
|
+
'.stylelintrc': 'material:stylelint',
|
|
365
|
+
'.stylelintrc.js': 'material:stylelint',
|
|
366
|
+
'.stylelintrc.json': 'material:stylelint',
|
|
367
|
+
'.stylelintrc.yml': 'material:stylelint',
|
|
368
|
+
'.stylelintrc.yaml': 'material:stylelint',
|
|
369
|
+
'.stylelintignore': 'material:stylelint',
|
|
370
|
+
'.editorconfig': 'material:editorconfig',
|
|
371
|
+
'commitlint.config.js': 'material:commitlint',
|
|
372
|
+
'.commitlintrc': 'material:commitlint',
|
|
373
|
+
'.commitlintrc.js': 'material:commitlint',
|
|
374
|
+
'.commitlintrc.json': 'material:commitlint',
|
|
375
|
+
'.huskyrc': 'material:husky',
|
|
376
|
+
'.huskyrc.js': 'material:husky',
|
|
377
|
+
'.huskyrc.json': 'material:husky',
|
|
378
|
+
'.lintstagedrc': 'material:husky',
|
|
379
|
+
'.lintstagedrc.js': 'material:husky',
|
|
380
|
+
'.lintstagedrc.json': 'material:husky',
|
|
381
|
+
'.pre-commit-config.yaml': 'material:pre-commit',
|
|
382
|
+
|
|
383
|
+
// === BUILD TOOLS & BUNDLERS ===
|
|
384
|
+
'webpack.config.js': 'material:webpack',
|
|
385
|
+
'webpack.config.ts': 'material:webpack',
|
|
386
|
+
'webpack.dev.js': 'material:webpack',
|
|
387
|
+
'webpack.prod.js': 'material:webpack',
|
|
388
|
+
'rollup.config.js': 'material:rollup',
|
|
389
|
+
'rollup.config.ts': 'material:rollup',
|
|
390
|
+
'vite.config.js': 'material:vite',
|
|
391
|
+
'vite.config.ts': 'material:vite',
|
|
392
|
+
'babel.config.js': 'material:babel',
|
|
393
|
+
'babel.config.json': 'material:babel',
|
|
394
|
+
'.babelrc': 'material:babel',
|
|
395
|
+
'.babelrc.js': 'material:babel',
|
|
396
|
+
'.babelrc.json': 'material:babel',
|
|
397
|
+
'.parcelrc': 'material:parcel',
|
|
398
|
+
|
|
399
|
+
// === TESTING FRAMEWORKS ===
|
|
400
|
+
'jest.config.js': 'material:jest',
|
|
401
|
+
'jest.config.ts': 'material:jest',
|
|
402
|
+
'jest.config.json': 'material:jest',
|
|
403
|
+
'.jestrc': 'material:jest',
|
|
404
|
+
'.jestrc.js': 'material:jest',
|
|
405
|
+
'.jestrc.json': 'material:jest',
|
|
406
|
+
'mocha.opts': 'material:mocha',
|
|
407
|
+
'.mocharc.js': 'material:mocha',
|
|
408
|
+
'.mocharc.json': 'material:mocha',
|
|
409
|
+
'.mocharc.yml': 'material:mocha',
|
|
410
|
+
'.mocharc.yaml': 'material:mocha',
|
|
411
|
+
'cypress.config.js': 'material:cypress',
|
|
412
|
+
'cypress.config.ts': 'material:cypress',
|
|
413
|
+
'cypress.json': 'material:cypress',
|
|
414
|
+
'playwright.config.js': 'material:playwright',
|
|
415
|
+
'playwright.config.ts': 'material:playwright',
|
|
416
|
+
'.storybook': 'material:storybook',
|
|
417
|
+
'storybook': 'material:storybook',
|
|
418
|
+
|
|
419
|
+
// === CONTAINER & DEPLOYMENT ===
|
|
420
|
+
'Dockerfile': 'material:docker',
|
|
421
|
+
'docker-compose.yml': 'material:docker',
|
|
422
|
+
'docker-compose.yaml': 'material:docker',
|
|
423
|
+
'docker-compose.override.yml': 'material:docker',
|
|
424
|
+
'.dockerignore': 'material:docker',
|
|
425
|
+
'Vagrantfile': 'material:vagrant',
|
|
426
|
+
'.terraform': 'material:terraform',
|
|
427
|
+
'main.tf': 'material:terraform',
|
|
428
|
+
'variables.tf': 'material:terraform',
|
|
429
|
+
'outputs.tf': 'material:terraform',
|
|
430
|
+
'terraform.tfvars': 'material:terraform',
|
|
431
|
+
'Chart.yaml': 'material:helm',
|
|
432
|
+
'values.yaml': 'material:helm',
|
|
433
|
+
'ansible.cfg': 'material:settings',
|
|
434
|
+
'playbook.yml': 'material:settings',
|
|
435
|
+
'inventory': 'material:settings',
|
|
436
|
+
'Jenkinsfile': 'material:jenkins',
|
|
437
|
+
'Makefile': 'material:makefile',
|
|
438
|
+
'makefile': 'material:makefile',
|
|
439
|
+
|
|
440
|
+
// === CLOUD & CI/CD ===
|
|
441
|
+
'.gitlab-ci.yml': 'material:gitlab',
|
|
442
|
+
'.travis.yml': 'material:travis',
|
|
443
|
+
'appveyor.yml': 'material:appveyor',
|
|
444
|
+
'.circleci': 'material:circleci',
|
|
445
|
+
'azure-pipelines.yml': 'material:azure-pipelines',
|
|
446
|
+
'buildspec.yml': 'material:settings',
|
|
447
|
+
'cloudbuild.yaml': 'material:gcp',
|
|
448
|
+
'vercel.json': 'material:vercel',
|
|
449
|
+
'netlify.toml': 'material:netlify',
|
|
450
|
+
'_redirects': 'material:netlify',
|
|
451
|
+
'_headers': 'material:netlify',
|
|
452
|
+
'Procfile': 'material:heroku',
|
|
453
|
+
'app.json': 'material:heroku',
|
|
454
|
+
'heroku.yml': 'material:heroku',
|
|
455
|
+
|
|
456
|
+
// === DEVELOPMENT ENVIRONMENTS ===
|
|
457
|
+
'.gitpod.yml': 'material:gitpod',
|
|
458
|
+
'.devcontainer': 'material:settings',
|
|
459
|
+
'devcontainer.json': 'material:settings',
|
|
460
|
+
'.codespaces': 'material:settings',
|
|
461
|
+
|
|
462
|
+
// === FRAMEWORK CONFIG FILES ===
|
|
463
|
+
'next.config.js': 'material:next',
|
|
464
|
+
'next.config.mjs': 'material:next',
|
|
465
|
+
'nuxt.config.js': 'material:nuxt',
|
|
466
|
+
'nuxt.config.ts': 'material:nuxt',
|
|
467
|
+
'gatsby-config.js': 'material:gatsby',
|
|
468
|
+
'gatsby-node.js': 'material:gatsby',
|
|
469
|
+
'gatsby-browser.js': 'material:gatsby',
|
|
470
|
+
'gatsby-ssr.js': 'material:gatsby',
|
|
471
|
+
'angular.json': 'material:angular',
|
|
472
|
+
'.angular-cli.json': 'material:angular',
|
|
473
|
+
'ember-cli-build.js': 'material:ember',
|
|
474
|
+
'.ember-cli': 'material:ember',
|
|
475
|
+
'svelte.config.js': 'material:svelte',
|
|
476
|
+
'svelte.config.mjs': 'material:svelte',
|
|
477
|
+
|
|
478
|
+
// === SPECIAL PROJECT FILES ===
|
|
479
|
+
'README': 'material:readme',
|
|
480
|
+
'README.md': 'material:readme',
|
|
481
|
+
'README.txt': 'material:readme',
|
|
482
|
+
'READ_ME': 'material:readme',
|
|
483
|
+
'CHANGELOG': 'material:changelog',
|
|
484
|
+
'CHANGELOG.md': 'material:changelog',
|
|
485
|
+
'HISTORY': 'material:changelog',
|
|
486
|
+
'HISTORY.md': 'material:changelog',
|
|
487
|
+
'LICENSE': 'material:certificate',
|
|
488
|
+
'LICENSE.md': 'material:certificate',
|
|
489
|
+
'LICENSE.txt': 'material:certificate',
|
|
490
|
+
'COPYING': 'material:certificate',
|
|
491
|
+
'NOTICE': 'material:certificate',
|
|
492
|
+
'AUTHORS': 'material:authors',
|
|
493
|
+
'AUTHORS.md': 'material:authors',
|
|
494
|
+
'CONTRIBUTORS': 'material:contributing',
|
|
495
|
+
'CONTRIBUTORS.md': 'material:contributing',
|
|
496
|
+
'CONTRIBUTING': 'material:contributing',
|
|
497
|
+
'CONTRIBUTING.md': 'material:contributing',
|
|
498
|
+
'CODE_OF_CONDUCT': 'material:conduct',
|
|
499
|
+
'CODE_OF_CONDUCT.md': 'material:conduct',
|
|
500
|
+
'SECURITY': 'material:certificate',
|
|
501
|
+
'SECURITY.md': 'material:certificate',
|
|
502
|
+
'TODO': 'material:todo',
|
|
503
|
+
'TODO.md': 'material:todo',
|
|
504
|
+
'TODO.txt': 'material:todo',
|
|
505
|
+
'ROADMAP': 'material:roadmap',
|
|
506
|
+
'ROADMAP.md': 'material:roadmap',
|
|
507
|
+
'FUNDING.yml': 'material:github-sponsors',
|
|
508
|
+
'.github': 'material:github-actions-workflow',
|
|
509
|
+
'CODEOWNERS': 'material:codeowners',
|
|
510
|
+
|
|
511
|
+
// === MISC FILES ===
|
|
512
|
+
'.log': 'material:log',
|
|
513
|
+
'.pid': 'material:settings',
|
|
514
|
+
'.lock': 'material:lock',
|
|
515
|
+
'.tmp': 'material:settings',
|
|
516
|
+
'.temp': 'material:settings',
|
|
517
|
+
'.cache': 'material:settings',
|
|
518
|
+
'.DS_Store': 'material:settings',
|
|
519
|
+
'Thumbs.db': 'material:settings',
|
|
520
|
+
'.cert': 'material:certificate',
|
|
521
|
+
'.crt': 'material:certificate',
|
|
522
|
+
'.pem': 'material:certificate',
|
|
523
|
+
'.key': 'material:key',
|
|
524
|
+
'.p12': 'material:certificate',
|
|
525
|
+
'.pfx': 'material:certificate',
|
|
526
|
+
'.der': 'material:certificate',
|
|
527
|
+
'.csr': 'material:certificate',
|
|
528
|
+
'.jks': 'material:certificate',
|
|
529
|
+
'.keystore': 'material:certificate',
|
|
530
|
+
'.truststore': 'material:certificate',
|
|
531
|
+
|
|
532
|
+
// === ADDITIONAL WEB & FRONTEND ===
|
|
533
|
+
'.wasm': 'material:webassembly',
|
|
534
|
+
'.webmanifest': 'material:favicon',
|
|
535
|
+
'.manifest': 'material:favicon',
|
|
536
|
+
'.appcache': 'material:settings',
|
|
537
|
+
'.browserconfig.xml': 'material:settings',
|
|
538
|
+
|
|
539
|
+
// === ADDITIONAL SCRIPT TYPES ===
|
|
540
|
+
'.coffee': 'material:coffee',
|
|
541
|
+
'.litcoffee': 'material:coffee',
|
|
542
|
+
'.cson': 'material:coffee',
|
|
543
|
+
'.applescript': 'material:applescript',
|
|
544
|
+
'.scpt': 'material:applescript',
|
|
545
|
+
|
|
546
|
+
// === TEMPLATE ENGINES ===
|
|
547
|
+
'.pug': 'material:pug',
|
|
548
|
+
'.jade': 'material:pug',
|
|
549
|
+
'.handlebars': 'material:handlebars',
|
|
550
|
+
'.hbs': 'material:handlebars',
|
|
551
|
+
'.mustache': 'material:handlebars',
|
|
552
|
+
'.twig': 'material:twig',
|
|
553
|
+
'.liquid': 'material:liquid',
|
|
554
|
+
'.njk': 'material:nunjucks',
|
|
555
|
+
'.nunjucks': 'material:nunjucks',
|
|
556
|
+
|
|
557
|
+
// === ADDITIONAL DATA FORMATS ===
|
|
558
|
+
'.hjson': 'material:hjson',
|
|
559
|
+
'.jsonld': 'material:json',
|
|
560
|
+
'.jsonnet': 'material:json',
|
|
561
|
+
'.libsonnet': 'material:json',
|
|
562
|
+
|
|
563
|
+
// === SPECIALIZED FILES ===
|
|
564
|
+
'.astro': 'material:astro',
|
|
565
|
+
'.mojo': 'material:mojo',
|
|
566
|
+
'.🔥': 'material:mojo',
|
|
567
|
+
'.grain': 'material:grain',
|
|
568
|
+
'.toit': 'material:settings',
|
|
569
|
+
'.vlang': 'material:vlang',
|
|
570
|
+
'.v': 'material:vlang',
|
|
571
|
+
'.odin': 'material:odin',
|
|
572
|
+
|
|
573
|
+
// === GAME DEVELOPMENT ===
|
|
574
|
+
'.gd': 'material:godot',
|
|
575
|
+
'.tres': 'material:godot-assets',
|
|
576
|
+
'.tscn': 'material:godot-assets',
|
|
577
|
+
'.unity': 'material:unity',
|
|
578
|
+
'.unitypackage': 'material:unity',
|
|
579
|
+
|
|
580
|
+
// === MOBILE DEVELOPMENT ===
|
|
581
|
+
'.gradle': 'material:gradle',
|
|
582
|
+
'.gradle.kts': 'material:gradle',
|
|
583
|
+
'.xcodeproj': 'material:settings',
|
|
584
|
+
'.xcworkspace': 'material:settings',
|
|
585
|
+
'.storyboard': 'material:settings',
|
|
586
|
+
'.xib': 'material:settings',
|
|
587
|
+
|
|
588
|
+
// === BLOCKCHAIN & SMART CONTRACTS ===
|
|
589
|
+
'.sol': 'material:solidity',
|
|
590
|
+
'.vy': 'material:solidity',
|
|
591
|
+
'.vyper': 'material:solidity',
|
|
592
|
+
'.move': 'material:solidity',
|
|
593
|
+
|
|
594
|
+
// === CONFIGURATION & TOOL FILES ===
|
|
595
|
+
'tsconfig.json': 'material:tsconfig',
|
|
596
|
+
'jsconfig.json': 'material:jsconfig',
|
|
597
|
+
'package.json': 'material:nodejs',
|
|
598
|
+
'bower.json': 'material:bower',
|
|
599
|
+
'component.json': 'material:nodejs',
|
|
600
|
+
'deno.json': 'material:deno',
|
|
601
|
+
'deno.jsonc': 'material:deno',
|
|
602
|
+
'.denoflare': 'material:deno',
|
|
603
|
+
'wrangler.toml': 'material:wrangler',
|
|
604
|
+
'turbo.json': 'material:turborepo',
|
|
605
|
+
'nx.json': 'material:nx',
|
|
606
|
+
'workspace.json': 'material:nx',
|
|
607
|
+
'project.json': 'material:nx',
|
|
608
|
+
'rush.json': 'material:nodejs',
|
|
609
|
+
'lerna.json': 'material:lerna',
|
|
610
|
+
'bun.toml': 'material:bun',
|
|
611
|
+
'bunfig.toml': 'material:bun',
|
|
612
|
+
|
|
613
|
+
// === DATABASE & ORM ===
|
|
614
|
+
'schema.prisma': 'material:prisma',
|
|
615
|
+
'.prisma': 'material:prisma',
|
|
616
|
+
'drizzle.config.ts': 'material:drizzle',
|
|
617
|
+
'drizzle.config.js': 'material:drizzle',
|
|
618
|
+
'sequelize.config.js': 'material:sequelize',
|
|
619
|
+
'.sequelizerc': 'material:sequelize',
|
|
620
|
+
|
|
621
|
+
// === TESTING SPECIFIC ===
|
|
622
|
+
'vitest.config.ts': 'material:vitest',
|
|
623
|
+
'vitest.config.js': 'material:vitest',
|
|
624
|
+
'vite.config.test.ts': 'material:vitest',
|
|
625
|
+
'karma.conf.js': 'material:karma',
|
|
626
|
+
'protractor.conf.js': 'material:protractor',
|
|
627
|
+
'webdriver.conf.js': 'material:settings',
|
|
628
|
+
'wdio.conf.js': 'material:settings',
|
|
629
|
+
'wallaby.js': 'material:wallaby',
|
|
630
|
+
'wallaby.json': 'material:wallaby',
|
|
631
|
+
'ava.config.js': 'material:settings',
|
|
632
|
+
'tape.config.js': 'material:settings',
|
|
633
|
+
|
|
634
|
+
// === DESKTOP APPLICATION ===
|
|
635
|
+
'electron.js': 'material:nodejs',
|
|
636
|
+
'main.electron.js': 'material:nodejs',
|
|
637
|
+
'tauri.conf.json': 'material:tauri',
|
|
638
|
+
'Tauri.toml': 'material:tauri',
|
|
639
|
+
'capacitor.config.ts': 'material:capacitor',
|
|
640
|
+
'capacitor.config.json': 'material:capacitor',
|
|
641
|
+
|
|
642
|
+
// === SECURITY & SCANNING ===
|
|
643
|
+
'.snyk': 'material:snyk',
|
|
644
|
+
'snyk.json': 'material:snyk',
|
|
645
|
+
'sonar-project.properties': 'material:sonarcloud',
|
|
646
|
+
'codecov.yml': 'material:codecov',
|
|
647
|
+
'codecov.yaml': 'material:codecov',
|
|
648
|
+
'.codecov.yml': 'material:codecov',
|
|
649
|
+
'.codeclimate.yml': 'material:code-climate',
|
|
650
|
+
'.rnd': 'material:settings',
|
|
651
|
+
|
|
652
|
+
// === SERVERLESS & EDGE ===
|
|
653
|
+
'serverless.yml': 'material:serverless',
|
|
654
|
+
'serverless.yaml': 'material:serverless',
|
|
655
|
+
'serverless.json': 'material:serverless',
|
|
656
|
+
'serverless.ts': 'material:serverless',
|
|
657
|
+
'functions.js': 'material:serverless',
|
|
658
|
+
'handler.js': 'material:serverless',
|
|
659
|
+
'_worker.js': 'material:javascript',
|
|
660
|
+
'worker.js': 'material:javascript',
|
|
661
|
+
|
|
662
|
+
// === DOCUMENTATION GENERATORS ===
|
|
663
|
+
'docusaurus.config.js': 'material:document',
|
|
664
|
+
'docs.config.js': 'material:document',
|
|
665
|
+
'typedoc.json': 'material:document',
|
|
666
|
+
'typedoc.js': 'material:document',
|
|
667
|
+
'jsdoc.json': 'material:document',
|
|
668
|
+
'jsdoc.conf.js': 'material:document',
|
|
669
|
+
|
|
670
|
+
// === GRAPHICS & DESIGN ===
|
|
671
|
+
'.sketch': 'material:document',
|
|
672
|
+
'.fig': 'material:document',
|
|
673
|
+
'.figma': 'material:document',
|
|
674
|
+
'.xd': 'material:document',
|
|
675
|
+
'.afdesign': 'material:document',
|
|
676
|
+
'.afphoto': 'material:document',
|
|
677
|
+
'.afpub': 'material:document',
|
|
678
|
+
'.glyphs': 'material:document',
|
|
679
|
+
|
|
680
|
+
// === 3D & MODELING ===
|
|
681
|
+
'.blend': 'material:document',
|
|
682
|
+
'.fbx': 'material:document',
|
|
683
|
+
'.obj': 'material:document',
|
|
684
|
+
'.dae': 'material:document',
|
|
685
|
+
'.3ds': 'material:document',
|
|
686
|
+
'.max': 'material:document',
|
|
687
|
+
'.ma': 'material:document',
|
|
688
|
+
'.mb': 'material:document',
|
|
689
|
+
'.scad': 'material:document',
|
|
690
|
+
|
|
691
|
+
// === AUDIO PRODUCTION ===
|
|
692
|
+
'.aup': 'material:document',
|
|
693
|
+
'.aup3': 'material:document',
|
|
694
|
+
'.logic': 'material:document',
|
|
695
|
+
'.als': 'material:document',
|
|
696
|
+
'.flp': 'material:document',
|
|
697
|
+
'.reason': 'material:document',
|
|
698
|
+
|
|
699
|
+
// === FONT FILES ===
|
|
700
|
+
'.otf': 'material:font',
|
|
701
|
+
'.ttf': 'material:font',
|
|
702
|
+
'.woff': 'material:font',
|
|
703
|
+
'.woff2': 'material:font',
|
|
704
|
+
'.eot': 'material:font',
|
|
705
|
+
'.fnt': 'material:font',
|
|
706
|
+
'.fon': 'material:font',
|
|
707
|
+
|
|
708
|
+
// === ADDITIONAL COMMON FILES ===
|
|
709
|
+
'.bak': 'material:document',
|
|
710
|
+
'.backup': 'material:document',
|
|
711
|
+
'.swp': 'material:document',
|
|
712
|
+
'.swo': 'material:document',
|
|
713
|
+
'.out': 'material:document',
|
|
714
|
+
'.err': 'material:document',
|
|
715
|
+
'.accdb': 'material:document',
|
|
716
|
+
'.localized': 'material:document',
|
|
717
|
+
|
|
718
|
+
// === ADDITIONAL MODERN EXTENSIONS ===
|
|
719
|
+
'.mts': 'material:typescript',
|
|
720
|
+
'.cts': 'material:typescript',
|
|
721
|
+
'.d.ts': 'material:typescript-def',
|
|
722
|
+
'.d.mts': 'material:typescript-def',
|
|
723
|
+
'.d.cts': 'material:typescript-def',
|
|
724
|
+
'.stories.js': 'material:storybook',
|
|
725
|
+
'.stories.ts': 'material:storybook',
|
|
726
|
+
'.stories.jsx': 'material:storybook',
|
|
727
|
+
'.stories.tsx': 'material:storybook',
|
|
728
|
+
'.story.js': 'material:storybook',
|
|
729
|
+
'.story.ts': 'material:storybook',
|
|
730
|
+
'.story.jsx': 'material:storybook',
|
|
731
|
+
'.story.tsx': 'material:storybook',
|
|
732
|
+
'.bench.js': 'material:bench-js',
|
|
733
|
+
'.bench.ts': 'material:bench-ts',
|
|
734
|
+
'.bench.jsx': 'material:bench-jsx',
|
|
735
|
+
'.test.js': 'material:test-js',
|
|
736
|
+
'.test.ts': 'material:test-ts',
|
|
737
|
+
'.test.jsx': 'material:test-jsx',
|
|
738
|
+
'.spec.js': 'material:test-js',
|
|
739
|
+
'.spec.ts': 'material:test-ts',
|
|
740
|
+
'.spec.jsx': 'material:test-jsx',
|
|
741
|
+
'.e2e.js': 'material:test-js',
|
|
742
|
+
'.e2e.ts': 'material:test-ts',
|
|
743
|
+
'.e2e.jsx': 'material:test-jsx',
|
|
744
|
+
'.mdsvex': 'material:mdsvex',
|
|
745
|
+
'.svx': 'material:mdsvex',
|
|
746
|
+
'.qwik.ts': 'material:qwik',
|
|
747
|
+
'.qwik.tsx': 'material:qwik',
|
|
748
|
+
'.remix.ts': 'material:remix',
|
|
749
|
+
'.remix.tsx': 'material:remix'
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Get the appropriate icon for a file based on its name and type
|
|
754
|
+
*/
|
|
755
|
+
export function getFileIcon(fileName: string): IconName {
|
|
756
|
+
// First try exact filename match (for files like README, Dockerfile, etc.)
|
|
757
|
+
if (fileIcons[fileName]) {
|
|
758
|
+
return fileIcons[fileName];
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
// Then try extension-based matching
|
|
762
|
+
const extension = fileName.substring(fileName.lastIndexOf('.'));
|
|
763
|
+
if (fileIcons[extension]) {
|
|
764
|
+
return fileIcons[extension];
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
// Fallback to generic file icon
|
|
768
|
+
return 'material:document';
|
|
769
|
+
}
|