crca 1.4.0__py3-none-any.whl
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.
- .github/ISSUE_TEMPLATE/bug_report.md +65 -0
- .github/ISSUE_TEMPLATE/feature_request.md +41 -0
- .github/PULL_REQUEST_TEMPLATE.md +20 -0
- .github/workflows/publish-manual.yml +61 -0
- .github/workflows/publish.yml +64 -0
- .gitignore +214 -0
- CRCA.py +4156 -0
- LICENSE +201 -0
- MANIFEST.in +43 -0
- PKG-INFO +5035 -0
- README.md +4959 -0
- __init__.py +17 -0
- branches/CRCA-Q.py +2728 -0
- branches/crca_cg/corposwarm.py +9065 -0
- branches/crca_cg/fix_rancher_docker_creds.ps1 +155 -0
- branches/crca_cg/package.json +5 -0
- branches/crca_cg/test_bolt_integration.py +446 -0
- branches/crca_cg/test_corposwarm_comprehensive.py +773 -0
- branches/crca_cg/test_new_features.py +163 -0
- branches/crca_sd/__init__.py +149 -0
- branches/crca_sd/crca_sd_core.py +770 -0
- branches/crca_sd/crca_sd_governance.py +1325 -0
- branches/crca_sd/crca_sd_mpc.py +1130 -0
- branches/crca_sd/crca_sd_realtime.py +1844 -0
- branches/crca_sd/crca_sd_tui.py +1133 -0
- crca-1.4.0.dist-info/METADATA +5035 -0
- crca-1.4.0.dist-info/RECORD +501 -0
- crca-1.4.0.dist-info/WHEEL +4 -0
- crca-1.4.0.dist-info/licenses/LICENSE +201 -0
- docs/CRCA-Q.md +2333 -0
- examples/config.yaml.example +25 -0
- examples/crca_sd_example.py +513 -0
- examples/data_broker_example.py +294 -0
- examples/logistics_corporation.py +861 -0
- examples/palantir_example.py +299 -0
- examples/policy_bench.py +934 -0
- examples/pridnestrovia-sd.py +705 -0
- examples/pridnestrovia_realtime.py +1902 -0
- prompts/__init__.py +10 -0
- prompts/default_crca.py +101 -0
- pyproject.toml +151 -0
- requirements.txt +76 -0
- schemas/__init__.py +43 -0
- schemas/mcpSchemas.py +51 -0
- schemas/policy.py +458 -0
- templates/__init__.py +38 -0
- templates/base_specialized_agent.py +195 -0
- templates/drift_detection.py +325 -0
- templates/examples/causal_agent_template.py +309 -0
- templates/examples/drag_drop_example.py +213 -0
- templates/examples/logistics_agent_template.py +207 -0
- templates/examples/trading_agent_template.py +206 -0
- templates/feature_mixins.py +253 -0
- templates/graph_management.py +442 -0
- templates/llm_integration.py +194 -0
- templates/module_registry.py +276 -0
- templates/mpc_planner.py +280 -0
- templates/policy_loop.py +1168 -0
- templates/prediction_framework.py +448 -0
- templates/statistical_methods.py +778 -0
- tests/sanity.yml +31 -0
- tests/sanity_check +406 -0
- tests/test_core.py +47 -0
- tests/test_crca_excel.py +166 -0
- tests/test_crca_sd.py +780 -0
- tests/test_data_broker.py +424 -0
- tests/test_palantir.py +349 -0
- tools/__init__.py +38 -0
- tools/actuators.py +437 -0
- tools/bolt.diy/Dockerfile +103 -0
- tools/bolt.diy/app/components/@settings/core/AvatarDropdown.tsx +175 -0
- tools/bolt.diy/app/components/@settings/core/ControlPanel.tsx +345 -0
- tools/bolt.diy/app/components/@settings/core/constants.tsx +108 -0
- tools/bolt.diy/app/components/@settings/core/types.ts +114 -0
- tools/bolt.diy/app/components/@settings/index.ts +12 -0
- tools/bolt.diy/app/components/@settings/shared/components/TabTile.tsx +151 -0
- tools/bolt.diy/app/components/@settings/shared/service-integration/ConnectionForm.tsx +193 -0
- tools/bolt.diy/app/components/@settings/shared/service-integration/ConnectionTestIndicator.tsx +60 -0
- tools/bolt.diy/app/components/@settings/shared/service-integration/ErrorState.tsx +102 -0
- tools/bolt.diy/app/components/@settings/shared/service-integration/LoadingState.tsx +94 -0
- tools/bolt.diy/app/components/@settings/shared/service-integration/ServiceHeader.tsx +72 -0
- tools/bolt.diy/app/components/@settings/shared/service-integration/index.ts +6 -0
- tools/bolt.diy/app/components/@settings/tabs/data/DataTab.tsx +721 -0
- tools/bolt.diy/app/components/@settings/tabs/data/DataVisualization.tsx +384 -0
- tools/bolt.diy/app/components/@settings/tabs/event-logs/EventLogsTab.tsx +1013 -0
- tools/bolt.diy/app/components/@settings/tabs/features/FeaturesTab.tsx +295 -0
- tools/bolt.diy/app/components/@settings/tabs/github/GitHubTab.tsx +281 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/GitHubAuthDialog.tsx +173 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/GitHubCacheManager.tsx +367 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/GitHubConnection.tsx +233 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/GitHubErrorBoundary.tsx +105 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/GitHubProgressiveLoader.tsx +266 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/GitHubRepositoryCard.tsx +121 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/GitHubRepositorySelector.tsx +312 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/GitHubStats.tsx +291 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/GitHubUserProfile.tsx +46 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/shared/GitHubStateIndicators.tsx +264 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/shared/RepositoryCard.tsx +361 -0
- tools/bolt.diy/app/components/@settings/tabs/github/components/shared/index.ts +11 -0
- tools/bolt.diy/app/components/@settings/tabs/gitlab/GitLabTab.tsx +305 -0
- tools/bolt.diy/app/components/@settings/tabs/gitlab/components/GitLabAuthDialog.tsx +186 -0
- tools/bolt.diy/app/components/@settings/tabs/gitlab/components/GitLabConnection.tsx +253 -0
- tools/bolt.diy/app/components/@settings/tabs/gitlab/components/GitLabRepositorySelector.tsx +358 -0
- tools/bolt.diy/app/components/@settings/tabs/gitlab/components/RepositoryCard.tsx +79 -0
- tools/bolt.diy/app/components/@settings/tabs/gitlab/components/RepositoryList.tsx +142 -0
- tools/bolt.diy/app/components/@settings/tabs/gitlab/components/StatsDisplay.tsx +91 -0
- tools/bolt.diy/app/components/@settings/tabs/gitlab/components/index.ts +4 -0
- tools/bolt.diy/app/components/@settings/tabs/mcp/McpServerList.tsx +99 -0
- tools/bolt.diy/app/components/@settings/tabs/mcp/McpServerListItem.tsx +70 -0
- tools/bolt.diy/app/components/@settings/tabs/mcp/McpStatusBadge.tsx +37 -0
- tools/bolt.diy/app/components/@settings/tabs/mcp/McpTab.tsx +239 -0
- tools/bolt.diy/app/components/@settings/tabs/netlify/NetlifyTab.tsx +1393 -0
- tools/bolt.diy/app/components/@settings/tabs/netlify/components/NetlifyConnection.tsx +990 -0
- tools/bolt.diy/app/components/@settings/tabs/netlify/components/index.ts +1 -0
- tools/bolt.diy/app/components/@settings/tabs/notifications/NotificationsTab.tsx +300 -0
- tools/bolt.diy/app/components/@settings/tabs/profile/ProfileTab.tsx +181 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/cloud/CloudProvidersTab.tsx +308 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/local/ErrorBoundary.tsx +68 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/local/HealthStatusBadge.tsx +64 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/local/LoadingSkeleton.tsx +107 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/local/LocalProvidersTab.tsx +556 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/local/ModelCard.tsx +106 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/local/ProviderCard.tsx +120 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/local/SetupGuide.tsx +671 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/local/StatusDashboard.tsx +91 -0
- tools/bolt.diy/app/components/@settings/tabs/providers/local/types.ts +44 -0
- tools/bolt.diy/app/components/@settings/tabs/settings/SettingsTab.tsx +215 -0
- tools/bolt.diy/app/components/@settings/tabs/supabase/SupabaseTab.tsx +1089 -0
- tools/bolt.diy/app/components/@settings/tabs/vercel/VercelTab.tsx +909 -0
- tools/bolt.diy/app/components/@settings/tabs/vercel/components/VercelConnection.tsx +368 -0
- tools/bolt.diy/app/components/@settings/tabs/vercel/components/index.ts +1 -0
- tools/bolt.diy/app/components/@settings/utils/tab-helpers.ts +54 -0
- tools/bolt.diy/app/components/chat/APIKeyManager.tsx +169 -0
- tools/bolt.diy/app/components/chat/Artifact.tsx +296 -0
- tools/bolt.diy/app/components/chat/AssistantMessage.tsx +192 -0
- tools/bolt.diy/app/components/chat/BaseChat.module.scss +47 -0
- tools/bolt.diy/app/components/chat/BaseChat.tsx +522 -0
- tools/bolt.diy/app/components/chat/Chat.client.tsx +670 -0
- tools/bolt.diy/app/components/chat/ChatAlert.tsx +108 -0
- tools/bolt.diy/app/components/chat/ChatBox.tsx +334 -0
- tools/bolt.diy/app/components/chat/CodeBlock.module.scss +10 -0
- tools/bolt.diy/app/components/chat/CodeBlock.tsx +85 -0
- tools/bolt.diy/app/components/chat/DicussMode.tsx +17 -0
- tools/bolt.diy/app/components/chat/ExamplePrompts.tsx +37 -0
- tools/bolt.diy/app/components/chat/FilePreview.tsx +38 -0
- tools/bolt.diy/app/components/chat/GitCloneButton.tsx +327 -0
- tools/bolt.diy/app/components/chat/ImportFolderButton.tsx +141 -0
- tools/bolt.diy/app/components/chat/LLMApiAlert.tsx +109 -0
- tools/bolt.diy/app/components/chat/MCPTools.tsx +129 -0
- tools/bolt.diy/app/components/chat/Markdown.module.scss +171 -0
- tools/bolt.diy/app/components/chat/Markdown.spec.ts +48 -0
- tools/bolt.diy/app/components/chat/Markdown.tsx +252 -0
- tools/bolt.diy/app/components/chat/Messages.client.tsx +102 -0
- tools/bolt.diy/app/components/chat/ModelSelector.tsx +797 -0
- tools/bolt.diy/app/components/chat/NetlifyDeploymentLink.client.tsx +51 -0
- tools/bolt.diy/app/components/chat/ProgressCompilation.tsx +110 -0
- tools/bolt.diy/app/components/chat/ScreenshotStateManager.tsx +33 -0
- tools/bolt.diy/app/components/chat/SendButton.client.tsx +39 -0
- tools/bolt.diy/app/components/chat/SpeechRecognition.tsx +28 -0
- tools/bolt.diy/app/components/chat/StarterTemplates.tsx +38 -0
- tools/bolt.diy/app/components/chat/SupabaseAlert.tsx +199 -0
- tools/bolt.diy/app/components/chat/SupabaseConnection.tsx +339 -0
- tools/bolt.diy/app/components/chat/ThoughtBox.tsx +43 -0
- tools/bolt.diy/app/components/chat/ToolInvocations.tsx +409 -0
- tools/bolt.diy/app/components/chat/UserMessage.tsx +101 -0
- tools/bolt.diy/app/components/chat/VercelDeploymentLink.client.tsx +158 -0
- tools/bolt.diy/app/components/chat/chatExportAndImport/ExportChatButton.tsx +49 -0
- tools/bolt.diy/app/components/chat/chatExportAndImport/ImportButtons.tsx +96 -0
- tools/bolt.diy/app/components/deploy/DeployAlert.tsx +197 -0
- tools/bolt.diy/app/components/deploy/DeployButton.tsx +277 -0
- tools/bolt.diy/app/components/deploy/GitHubDeploy.client.tsx +171 -0
- tools/bolt.diy/app/components/deploy/GitHubDeploymentDialog.tsx +1041 -0
- tools/bolt.diy/app/components/deploy/GitLabDeploy.client.tsx +171 -0
- tools/bolt.diy/app/components/deploy/GitLabDeploymentDialog.tsx +764 -0
- tools/bolt.diy/app/components/deploy/NetlifyDeploy.client.tsx +246 -0
- tools/bolt.diy/app/components/deploy/VercelDeploy.client.tsx +235 -0
- tools/bolt.diy/app/components/editor/codemirror/BinaryContent.tsx +7 -0
- tools/bolt.diy/app/components/editor/codemirror/CodeMirrorEditor.tsx +555 -0
- tools/bolt.diy/app/components/editor/codemirror/EnvMasking.ts +80 -0
- tools/bolt.diy/app/components/editor/codemirror/cm-theme.ts +192 -0
- tools/bolt.diy/app/components/editor/codemirror/indent.ts +68 -0
- tools/bolt.diy/app/components/editor/codemirror/languages.ts +112 -0
- tools/bolt.diy/app/components/git/GitUrlImport.client.tsx +147 -0
- tools/bolt.diy/app/components/header/Header.tsx +42 -0
- tools/bolt.diy/app/components/header/HeaderActionButtons.client.tsx +54 -0
- tools/bolt.diy/app/components/mandate/MandateSubmission.tsx +167 -0
- tools/bolt.diy/app/components/observability/DeploymentStatus.tsx +168 -0
- tools/bolt.diy/app/components/observability/EventTimeline.tsx +119 -0
- tools/bolt.diy/app/components/observability/FileDiffViewer.tsx +121 -0
- tools/bolt.diy/app/components/observability/GovernanceStatus.tsx +197 -0
- tools/bolt.diy/app/components/observability/GovernorMetrics.tsx +246 -0
- tools/bolt.diy/app/components/observability/LogStream.tsx +244 -0
- tools/bolt.diy/app/components/observability/MandateDetails.tsx +201 -0
- tools/bolt.diy/app/components/observability/ObservabilityDashboard.tsx +200 -0
- tools/bolt.diy/app/components/sidebar/HistoryItem.tsx +187 -0
- tools/bolt.diy/app/components/sidebar/Menu.client.tsx +536 -0
- tools/bolt.diy/app/components/sidebar/date-binning.ts +59 -0
- tools/bolt.diy/app/components/txt +1 -0
- tools/bolt.diy/app/components/ui/BackgroundRays/index.tsx +18 -0
- tools/bolt.diy/app/components/ui/BackgroundRays/styles.module.scss +246 -0
- tools/bolt.diy/app/components/ui/Badge.tsx +53 -0
- tools/bolt.diy/app/components/ui/BranchSelector.tsx +270 -0
- tools/bolt.diy/app/components/ui/Breadcrumbs.tsx +101 -0
- tools/bolt.diy/app/components/ui/Button.tsx +46 -0
- tools/bolt.diy/app/components/ui/Card.tsx +55 -0
- tools/bolt.diy/app/components/ui/Checkbox.tsx +32 -0
- tools/bolt.diy/app/components/ui/CloseButton.tsx +49 -0
- tools/bolt.diy/app/components/ui/CodeBlock.tsx +103 -0
- tools/bolt.diy/app/components/ui/Collapsible.tsx +9 -0
- tools/bolt.diy/app/components/ui/ColorSchemeDialog.tsx +378 -0
- tools/bolt.diy/app/components/ui/Dialog.tsx +449 -0
- tools/bolt.diy/app/components/ui/Dropdown.tsx +63 -0
- tools/bolt.diy/app/components/ui/EmptyState.tsx +154 -0
- tools/bolt.diy/app/components/ui/FileIcon.tsx +346 -0
- tools/bolt.diy/app/components/ui/FilterChip.tsx +92 -0
- tools/bolt.diy/app/components/ui/GlowingEffect.tsx +192 -0
- tools/bolt.diy/app/components/ui/GradientCard.tsx +100 -0
- tools/bolt.diy/app/components/ui/IconButton.tsx +84 -0
- tools/bolt.diy/app/components/ui/Input.tsx +22 -0
- tools/bolt.diy/app/components/ui/Label.tsx +20 -0
- tools/bolt.diy/app/components/ui/LoadingDots.tsx +27 -0
- tools/bolt.diy/app/components/ui/LoadingOverlay.tsx +32 -0
- tools/bolt.diy/app/components/ui/PanelHeader.tsx +20 -0
- tools/bolt.diy/app/components/ui/PanelHeaderButton.tsx +36 -0
- tools/bolt.diy/app/components/ui/Popover.tsx +29 -0
- tools/bolt.diy/app/components/ui/Progress.tsx +22 -0
- tools/bolt.diy/app/components/ui/RepositoryStats.tsx +87 -0
- tools/bolt.diy/app/components/ui/ScrollArea.tsx +41 -0
- tools/bolt.diy/app/components/ui/SearchInput.tsx +80 -0
- tools/bolt.diy/app/components/ui/SearchResultItem.tsx +134 -0
- tools/bolt.diy/app/components/ui/Separator.tsx +22 -0
- tools/bolt.diy/app/components/ui/SettingsButton.tsx +35 -0
- tools/bolt.diy/app/components/ui/Slider.tsx +73 -0
- tools/bolt.diy/app/components/ui/StatusIndicator.tsx +90 -0
- tools/bolt.diy/app/components/ui/Switch.tsx +37 -0
- tools/bolt.diy/app/components/ui/Tabs.tsx +52 -0
- tools/bolt.diy/app/components/ui/TabsWithSlider.tsx +112 -0
- tools/bolt.diy/app/components/ui/ThemeSwitch.tsx +29 -0
- tools/bolt.diy/app/components/ui/Tooltip.tsx +122 -0
- tools/bolt.diy/app/components/ui/index.ts +38 -0
- tools/bolt.diy/app/components/ui/use-toast.ts +66 -0
- tools/bolt.diy/app/components/workbench/DiffView.tsx +796 -0
- tools/bolt.diy/app/components/workbench/EditorPanel.tsx +174 -0
- tools/bolt.diy/app/components/workbench/ExpoQrModal.tsx +55 -0
- tools/bolt.diy/app/components/workbench/FileBreadcrumb.tsx +150 -0
- tools/bolt.diy/app/components/workbench/FileTree.tsx +565 -0
- tools/bolt.diy/app/components/workbench/Inspector.tsx +126 -0
- tools/bolt.diy/app/components/workbench/InspectorPanel.tsx +146 -0
- tools/bolt.diy/app/components/workbench/LockManager.tsx +262 -0
- tools/bolt.diy/app/components/workbench/PortDropdown.tsx +91 -0
- tools/bolt.diy/app/components/workbench/Preview.tsx +1049 -0
- tools/bolt.diy/app/components/workbench/ScreenshotSelector.tsx +293 -0
- tools/bolt.diy/app/components/workbench/Search.tsx +257 -0
- tools/bolt.diy/app/components/workbench/Workbench.client.tsx +506 -0
- tools/bolt.diy/app/components/workbench/terminal/Terminal.tsx +131 -0
- tools/bolt.diy/app/components/workbench/terminal/TerminalManager.tsx +68 -0
- tools/bolt.diy/app/components/workbench/terminal/TerminalTabs.tsx +277 -0
- tools/bolt.diy/app/components/workbench/terminal/theme.ts +36 -0
- tools/bolt.diy/app/components/workflow/WorkflowPhase.tsx +109 -0
- tools/bolt.diy/app/components/workflow/WorkflowStatus.tsx +60 -0
- tools/bolt.diy/app/components/workflow/WorkflowTimeline.tsx +150 -0
- tools/bolt.diy/app/entry.client.tsx +7 -0
- tools/bolt.diy/app/entry.server.tsx +80 -0
- tools/bolt.diy/app/root.tsx +156 -0
- tools/bolt.diy/app/routes/_index.tsx +175 -0
- tools/bolt.diy/app/routes/api.bug-report.ts +254 -0
- tools/bolt.diy/app/routes/api.chat.ts +463 -0
- tools/bolt.diy/app/routes/api.check-env-key.ts +41 -0
- tools/bolt.diy/app/routes/api.configured-providers.ts +110 -0
- tools/bolt.diy/app/routes/api.corporate-swarm-status.ts +55 -0
- tools/bolt.diy/app/routes/api.enhancer.ts +137 -0
- tools/bolt.diy/app/routes/api.export-api-keys.ts +44 -0
- tools/bolt.diy/app/routes/api.git-info.ts +69 -0
- tools/bolt.diy/app/routes/api.git-proxy.$.ts +178 -0
- tools/bolt.diy/app/routes/api.github-branches.ts +166 -0
- tools/bolt.diy/app/routes/api.github-deploy.ts +67 -0
- tools/bolt.diy/app/routes/api.github-stats.ts +198 -0
- tools/bolt.diy/app/routes/api.github-template.ts +242 -0
- tools/bolt.diy/app/routes/api.github-user.ts +287 -0
- tools/bolt.diy/app/routes/api.gitlab-branches.ts +143 -0
- tools/bolt.diy/app/routes/api.gitlab-deploy.ts +67 -0
- tools/bolt.diy/app/routes/api.gitlab-projects.ts +105 -0
- tools/bolt.diy/app/routes/api.health.ts +8 -0
- tools/bolt.diy/app/routes/api.llmcall.ts +298 -0
- tools/bolt.diy/app/routes/api.mandate.ts +351 -0
- tools/bolt.diy/app/routes/api.mcp-check.ts +16 -0
- tools/bolt.diy/app/routes/api.mcp-update-config.ts +23 -0
- tools/bolt.diy/app/routes/api.models.$provider.ts +2 -0
- tools/bolt.diy/app/routes/api.models.ts +90 -0
- tools/bolt.diy/app/routes/api.netlify-deploy.ts +240 -0
- tools/bolt.diy/app/routes/api.netlify-user.ts +142 -0
- tools/bolt.diy/app/routes/api.supabase-user.ts +199 -0
- tools/bolt.diy/app/routes/api.supabase.query.ts +92 -0
- tools/bolt.diy/app/routes/api.supabase.ts +56 -0
- tools/bolt.diy/app/routes/api.supabase.variables.ts +32 -0
- tools/bolt.diy/app/routes/api.system.diagnostics.ts +142 -0
- tools/bolt.diy/app/routes/api.system.disk-info.ts +311 -0
- tools/bolt.diy/app/routes/api.system.git-info.ts +332 -0
- tools/bolt.diy/app/routes/api.update.ts +21 -0
- tools/bolt.diy/app/routes/api.vercel-deploy.ts +497 -0
- tools/bolt.diy/app/routes/api.vercel-user.ts +161 -0
- tools/bolt.diy/app/routes/api.workflow-status.$proposalId.ts +309 -0
- tools/bolt.diy/app/routes/chat.$id.tsx +8 -0
- tools/bolt.diy/app/routes/execute.$mandateId.tsx +432 -0
- tools/bolt.diy/app/routes/git.tsx +25 -0
- tools/bolt.diy/app/routes/observability.$mandateId.tsx +50 -0
- tools/bolt.diy/app/routes/webcontainer.connect.$id.tsx +32 -0
- tools/bolt.diy/app/routes/webcontainer.preview.$id.tsx +97 -0
- tools/bolt.diy/app/routes/workflow.$proposalId.tsx +170 -0
- tools/bolt.diy/app/styles/animations.scss +49 -0
- tools/bolt.diy/app/styles/components/code.scss +9 -0
- tools/bolt.diy/app/styles/components/editor.scss +135 -0
- tools/bolt.diy/app/styles/components/resize-handle.scss +30 -0
- tools/bolt.diy/app/styles/components/terminal.scss +3 -0
- tools/bolt.diy/app/styles/components/toast.scss +23 -0
- tools/bolt.diy/app/styles/diff-view.css +72 -0
- tools/bolt.diy/app/styles/index.scss +73 -0
- tools/bolt.diy/app/styles/variables.scss +255 -0
- tools/bolt.diy/app/styles/z-index.scss +37 -0
- tools/bolt.diy/app/types/GitHub.ts +182 -0
- tools/bolt.diy/app/types/GitLab.ts +103 -0
- tools/bolt.diy/app/types/actions.ts +85 -0
- tools/bolt.diy/app/types/artifact.ts +5 -0
- tools/bolt.diy/app/types/context.ts +26 -0
- tools/bolt.diy/app/types/design-scheme.ts +93 -0
- tools/bolt.diy/app/types/global.d.ts +13 -0
- tools/bolt.diy/app/types/mandate.ts +333 -0
- tools/bolt.diy/app/types/model.ts +25 -0
- tools/bolt.diy/app/types/netlify.ts +94 -0
- tools/bolt.diy/app/types/supabase.ts +54 -0
- tools/bolt.diy/app/types/template.ts +8 -0
- tools/bolt.diy/app/types/terminal.ts +9 -0
- tools/bolt.diy/app/types/theme.ts +1 -0
- tools/bolt.diy/app/types/vercel.ts +67 -0
- tools/bolt.diy/app/utils/buffer.ts +29 -0
- tools/bolt.diy/app/utils/classNames.ts +65 -0
- tools/bolt.diy/app/utils/constants.ts +147 -0
- tools/bolt.diy/app/utils/debounce.ts +13 -0
- tools/bolt.diy/app/utils/debugLogger.ts +1284 -0
- tools/bolt.diy/app/utils/diff.spec.ts +11 -0
- tools/bolt.diy/app/utils/diff.ts +117 -0
- tools/bolt.diy/app/utils/easings.ts +3 -0
- tools/bolt.diy/app/utils/fileLocks.ts +96 -0
- tools/bolt.diy/app/utils/fileUtils.ts +121 -0
- tools/bolt.diy/app/utils/folderImport.ts +73 -0
- tools/bolt.diy/app/utils/formatSize.ts +12 -0
- tools/bolt.diy/app/utils/getLanguageFromExtension.ts +24 -0
- tools/bolt.diy/app/utils/githubStats.ts +9 -0
- tools/bolt.diy/app/utils/gitlabStats.ts +54 -0
- tools/bolt.diy/app/utils/logger.ts +162 -0
- tools/bolt.diy/app/utils/markdown.ts +155 -0
- tools/bolt.diy/app/utils/mobile.ts +4 -0
- tools/bolt.diy/app/utils/os.ts +4 -0
- tools/bolt.diy/app/utils/path.ts +19 -0
- tools/bolt.diy/app/utils/projectCommands.ts +197 -0
- tools/bolt.diy/app/utils/promises.ts +19 -0
- tools/bolt.diy/app/utils/react.ts +6 -0
- tools/bolt.diy/app/utils/sampler.ts +49 -0
- tools/bolt.diy/app/utils/selectStarterTemplate.ts +255 -0
- tools/bolt.diy/app/utils/shell.ts +384 -0
- tools/bolt.diy/app/utils/stacktrace.ts +27 -0
- tools/bolt.diy/app/utils/stripIndent.ts +23 -0
- tools/bolt.diy/app/utils/terminal.ts +11 -0
- tools/bolt.diy/app/utils/unreachable.ts +3 -0
- tools/bolt.diy/app/vite-env.d.ts +2 -0
- tools/bolt.diy/assets/entitlements.mac.plist +25 -0
- tools/bolt.diy/assets/icons/icon.icns +0 -0
- tools/bolt.diy/assets/icons/icon.ico +0 -0
- tools/bolt.diy/assets/icons/icon.png +0 -0
- tools/bolt.diy/bindings.js +78 -0
- tools/bolt.diy/bindings.sh +33 -0
- tools/bolt.diy/docker-compose.yaml +145 -0
- tools/bolt.diy/electron/main/index.ts +201 -0
- tools/bolt.diy/electron/main/tsconfig.json +30 -0
- tools/bolt.diy/electron/main/ui/menu.ts +29 -0
- tools/bolt.diy/electron/main/ui/window.ts +54 -0
- tools/bolt.diy/electron/main/utils/auto-update.ts +110 -0
- tools/bolt.diy/electron/main/utils/constants.ts +4 -0
- tools/bolt.diy/electron/main/utils/cookie.ts +40 -0
- tools/bolt.diy/electron/main/utils/reload.ts +35 -0
- tools/bolt.diy/electron/main/utils/serve.ts +71 -0
- tools/bolt.diy/electron/main/utils/store.ts +3 -0
- tools/bolt.diy/electron/main/utils/vite-server.ts +44 -0
- tools/bolt.diy/electron/main/vite.config.ts +44 -0
- tools/bolt.diy/electron/preload/index.ts +22 -0
- tools/bolt.diy/electron/preload/tsconfig.json +7 -0
- tools/bolt.diy/electron/preload/vite.config.ts +31 -0
- tools/bolt.diy/electron-builder.yml +64 -0
- tools/bolt.diy/electron-update.yml +4 -0
- tools/bolt.diy/eslint.config.mjs +57 -0
- tools/bolt.diy/functions/[[path]].ts +12 -0
- tools/bolt.diy/icons/angular.svg +1 -0
- tools/bolt.diy/icons/astro.svg +8 -0
- tools/bolt.diy/icons/chat.svg +1 -0
- tools/bolt.diy/icons/expo-brand.svg +1 -0
- tools/bolt.diy/icons/expo.svg +4 -0
- tools/bolt.diy/icons/logo-text.svg +1 -0
- tools/bolt.diy/icons/logo.svg +4 -0
- tools/bolt.diy/icons/mcp.svg +1 -0
- tools/bolt.diy/icons/nativescript.svg +1 -0
- tools/bolt.diy/icons/netlify.svg +10 -0
- tools/bolt.diy/icons/nextjs.svg +1 -0
- tools/bolt.diy/icons/nuxt.svg +1 -0
- tools/bolt.diy/icons/qwik.svg +1 -0
- tools/bolt.diy/icons/react.svg +1 -0
- tools/bolt.diy/icons/remix.svg +24 -0
- tools/bolt.diy/icons/remotion.svg +1 -0
- tools/bolt.diy/icons/shadcn.svg +21 -0
- tools/bolt.diy/icons/slidev.svg +60 -0
- tools/bolt.diy/icons/solidjs.svg +1 -0
- tools/bolt.diy/icons/stars.svg +1 -0
- tools/bolt.diy/icons/svelte.svg +1 -0
- tools/bolt.diy/icons/typescript.svg +1 -0
- tools/bolt.diy/icons/vite.svg +1 -0
- tools/bolt.diy/icons/vue.svg +1 -0
- tools/bolt.diy/load-context.ts +9 -0
- tools/bolt.diy/notarize.cjs +31 -0
- tools/bolt.diy/package.json +218 -0
- tools/bolt.diy/playwright.config.preview.ts +35 -0
- tools/bolt.diy/pre-start.cjs +26 -0
- tools/bolt.diy/public/apple-touch-icon-precomposed.png +0 -0
- tools/bolt.diy/public/apple-touch-icon.png +0 -0
- tools/bolt.diy/public/favicon.ico +0 -0
- tools/bolt.diy/public/favicon.svg +4 -0
- tools/bolt.diy/public/icons/AmazonBedrock.svg +1 -0
- tools/bolt.diy/public/icons/Anthropic.svg +4 -0
- tools/bolt.diy/public/icons/Cohere.svg +4 -0
- tools/bolt.diy/public/icons/Deepseek.svg +5 -0
- tools/bolt.diy/public/icons/Default.svg +4 -0
- tools/bolt.diy/public/icons/Google.svg +4 -0
- tools/bolt.diy/public/icons/Groq.svg +4 -0
- tools/bolt.diy/public/icons/HuggingFace.svg +4 -0
- tools/bolt.diy/public/icons/Hyperbolic.svg +3 -0
- tools/bolt.diy/public/icons/LMStudio.svg +5 -0
- tools/bolt.diy/public/icons/Mistral.svg +4 -0
- tools/bolt.diy/public/icons/Ollama.svg +4 -0
- tools/bolt.diy/public/icons/OpenAI.svg +4 -0
- tools/bolt.diy/public/icons/OpenAILike.svg +4 -0
- tools/bolt.diy/public/icons/OpenRouter.svg +4 -0
- tools/bolt.diy/public/icons/Perplexity.svg +4 -0
- tools/bolt.diy/public/icons/Together.svg +4 -0
- tools/bolt.diy/public/icons/xAI.svg +5 -0
- tools/bolt.diy/public/inspector-script.js +292 -0
- tools/bolt.diy/public/logo-dark-styled.png +0 -0
- tools/bolt.diy/public/logo-dark.png +0 -0
- tools/bolt.diy/public/logo-light-styled.png +0 -0
- tools/bolt.diy/public/logo-light.png +0 -0
- tools/bolt.diy/public/logo.svg +15 -0
- tools/bolt.diy/public/social_preview_index.jpg +0 -0
- tools/bolt.diy/scripts/clean.js +45 -0
- tools/bolt.diy/scripts/electron-dev.mjs +181 -0
- tools/bolt.diy/scripts/setup-env.sh +41 -0
- tools/bolt.diy/scripts/update-imports.sh +7 -0
- tools/bolt.diy/scripts/update.sh +52 -0
- tools/bolt.diy/services/execution-governor/Dockerfile +41 -0
- tools/bolt.diy/services/execution-governor/config.ts +42 -0
- tools/bolt.diy/services/execution-governor/index.ts +683 -0
- tools/bolt.diy/services/execution-governor/metrics.ts +141 -0
- tools/bolt.diy/services/execution-governor/package.json +31 -0
- tools/bolt.diy/services/execution-governor/priority-queue.ts +139 -0
- tools/bolt.diy/services/execution-governor/tsconfig.json +21 -0
- tools/bolt.diy/services/execution-governor/types.ts +145 -0
- tools/bolt.diy/services/headless-executor/Dockerfile +43 -0
- tools/bolt.diy/services/headless-executor/executor.ts +210 -0
- tools/bolt.diy/services/headless-executor/index.ts +323 -0
- tools/bolt.diy/services/headless-executor/package.json +27 -0
- tools/bolt.diy/services/headless-executor/tsconfig.json +21 -0
- tools/bolt.diy/services/headless-executor/types.ts +38 -0
- tools/bolt.diy/test-workflows.sh +240 -0
- tools/bolt.diy/tests/integration/corporate-swarm.test.ts +208 -0
- tools/bolt.diy/tests/mandates/budget-limited.json +34 -0
- tools/bolt.diy/tests/mandates/complex.json +53 -0
- tools/bolt.diy/tests/mandates/constraint-enforced.json +36 -0
- tools/bolt.diy/tests/mandates/simple.json +35 -0
- tools/bolt.diy/tsconfig.json +37 -0
- tools/bolt.diy/types/istextorbinary.d.ts +15 -0
- tools/bolt.diy/uno.config.ts +279 -0
- tools/bolt.diy/vite-electron.config.ts +76 -0
- tools/bolt.diy/vite.config.ts +112 -0
- tools/bolt.diy/worker-configuration.d.ts +22 -0
- tools/bolt.diy/wrangler.toml +6 -0
- tools/code_generator.py +461 -0
- tools/file_operations.py +465 -0
- tools/mandate_generator.py +337 -0
- tools/mcpClientUtils.py +1216 -0
- tools/sensors.py +285 -0
- utils/Agent_types.py +15 -0
- utils/AnyToStr.py +0 -0
- utils/HHCS.py +277 -0
- utils/__init__.py +30 -0
- utils/agent.py +3627 -0
- utils/aop.py +2948 -0
- utils/canonical.py +143 -0
- utils/conversation.py +1195 -0
- utils/doctrine_versioning +230 -0
- utils/formatter.py +474 -0
- utils/ledger.py +311 -0
- utils/out_types.py +16 -0
- utils/rollback.py +339 -0
- utils/router.py +929 -0
- utils/tui.py +1908 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow preview route.
|
|
3
|
+
*
|
|
4
|
+
* Shows complete workflow from proposal creation through deployment.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { json, type LoaderFunctionArgs, type MetaFunction } from '@remix-run/cloudflare';
|
|
8
|
+
import { useLoaderData, useParams } from '@remix-run/react';
|
|
9
|
+
import { useEffect, useState } from 'react';
|
|
10
|
+
import { ClientOnly } from 'remix-utils/client-only';
|
|
11
|
+
import { WorkflowTimeline } from '~/components/workflow/WorkflowTimeline';
|
|
12
|
+
import { Workbench } from '~/components/workbench/Workbench.client';
|
|
13
|
+
import { Header } from '~/components/header/Header';
|
|
14
|
+
import BackgroundRays from '~/components/ui/BackgroundRays';
|
|
15
|
+
import type { WorkflowStatus } from '~/routes/api.workflow-status.$proposalId';
|
|
16
|
+
|
|
17
|
+
export const meta: MetaFunction<typeof loader> = ({ data }) => {
|
|
18
|
+
return [
|
|
19
|
+
{ title: `Workflow - ${data?.proposalId || 'Unknown'}` },
|
|
20
|
+
{ name: 'description', content: 'Complete workflow visualization from proposal to deployment' },
|
|
21
|
+
];
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export async function loader({ params }: LoaderFunctionArgs) {
|
|
25
|
+
const proposalId = params.proposalId;
|
|
26
|
+
|
|
27
|
+
if (!proposalId) {
|
|
28
|
+
throw new Response('Proposal ID is required', { status: 400 });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Fetch initial workflow status
|
|
32
|
+
try {
|
|
33
|
+
const baseUrl = process.env.BOLT_DIY_URL || 'http://localhost:5173';
|
|
34
|
+
const response = await fetch(`${baseUrl}/api/workflow-status/${proposalId}`, {
|
|
35
|
+
headers: { 'Content-Type': 'application/json' },
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
if (response.ok) {
|
|
39
|
+
const workflowStatus = await response.json();
|
|
40
|
+
return json({ proposalId, initialStatus: workflowStatus });
|
|
41
|
+
}
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error('Error loading workflow status:', error);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return json({ proposalId, initialStatus: null });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export default function WorkflowRoute() {
|
|
50
|
+
const { proposalId, initialStatus } = useLoaderData<typeof loader>();
|
|
51
|
+
const params = useParams();
|
|
52
|
+
const finalProposalId = proposalId || params.proposalId;
|
|
53
|
+
const [workflowStatus, setWorkflowStatus] = useState<WorkflowStatus | null>(initialStatus);
|
|
54
|
+
const [isConnected, setIsConnected] = useState(false);
|
|
55
|
+
const [lastUpdate, setLastUpdate] = useState<Date>(new Date());
|
|
56
|
+
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (!finalProposalId) return;
|
|
59
|
+
|
|
60
|
+
// Set up EventSource for real-time updates
|
|
61
|
+
const baseUrl = window.location.origin;
|
|
62
|
+
const eventSource = new EventSource(`${baseUrl}/api/workflow-status/${finalProposalId}?stream=true`);
|
|
63
|
+
|
|
64
|
+
eventSource.onopen = () => {
|
|
65
|
+
setIsConnected(true);
|
|
66
|
+
setLastUpdate(new Date());
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
eventSource.onmessage = (event) => {
|
|
70
|
+
try {
|
|
71
|
+
const data = JSON.parse(event.data);
|
|
72
|
+
setWorkflowStatus(data);
|
|
73
|
+
setLastUpdate(new Date());
|
|
74
|
+
setIsConnected(true);
|
|
75
|
+
} catch (error) {
|
|
76
|
+
console.error('Error parsing workflow status update:', error);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
let pollInterval: NodeJS.Timeout | null = null;
|
|
81
|
+
|
|
82
|
+
eventSource.onerror = (error) => {
|
|
83
|
+
console.error('EventSource error:', error);
|
|
84
|
+
setIsConnected(false);
|
|
85
|
+
eventSource.close();
|
|
86
|
+
|
|
87
|
+
// Fallback to polling if EventSource fails
|
|
88
|
+
pollInterval = setInterval(async () => {
|
|
89
|
+
try {
|
|
90
|
+
const response = await fetch(`${baseUrl}/api/workflow-status/${finalProposalId}`);
|
|
91
|
+
if (response.ok) {
|
|
92
|
+
const data = await response.json();
|
|
93
|
+
setWorkflowStatus(data);
|
|
94
|
+
setLastUpdate(new Date());
|
|
95
|
+
setIsConnected(true);
|
|
96
|
+
}
|
|
97
|
+
} catch (error) {
|
|
98
|
+
console.error('Error polling workflow status:', error);
|
|
99
|
+
setIsConnected(false);
|
|
100
|
+
}
|
|
101
|
+
}, 5000);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
return () => {
|
|
105
|
+
eventSource.close();
|
|
106
|
+
if (pollInterval) {
|
|
107
|
+
clearInterval(pollInterval);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}, [finalProposalId]);
|
|
111
|
+
|
|
112
|
+
if (!finalProposalId) {
|
|
113
|
+
return (
|
|
114
|
+
<div className="flex flex-col h-full w-full bg-bolt-elements-background-depth-1 p-8">
|
|
115
|
+
<div className="max-w-4xl mx-auto">
|
|
116
|
+
<h1 className="text-2xl font-bold text-bolt-elements-textPrimary mb-4">Error</h1>
|
|
117
|
+
<p className="text-bolt-elements-textSecondary">Proposal ID is required</p>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return (
|
|
124
|
+
<div className="flex flex-col h-full w-full bg-bolt-elements-background-depth-1">
|
|
125
|
+
<BackgroundRays />
|
|
126
|
+
<Header />
|
|
127
|
+
<div className="flex-1 overflow-hidden flex">
|
|
128
|
+
{/* Workbench - Code Editor */}
|
|
129
|
+
<div className="flex-1 min-w-0">
|
|
130
|
+
<ClientOnly fallback={<div className="h-full flex items-center justify-center text-bolt-elements-textSecondary">Loading workbench...</div>}>
|
|
131
|
+
{() => <Workbench chatStarted={true} />}
|
|
132
|
+
</ClientOnly>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
{/* Workflow Timeline Sidebar */}
|
|
136
|
+
<div className="w-96 border-l border-bolt-elements-borderColor bg-bolt-elements-background-depth-2 overflow-auto">
|
|
137
|
+
<div className="p-6">
|
|
138
|
+
<div className="mb-6">
|
|
139
|
+
<div className="flex items-center justify-between mb-2">
|
|
140
|
+
<h1 className="text-2xl font-bold text-bolt-elements-textPrimary">
|
|
141
|
+
Workflow Status
|
|
142
|
+
</h1>
|
|
143
|
+
<div className="flex items-center gap-2">
|
|
144
|
+
<div className={`w-2 h-2 rounded-full ${isConnected ? 'bg-green-500' : 'bg-red-500'}`} title={isConnected ? 'Connected' : 'Disconnected'} />
|
|
145
|
+
<span className="text-xs text-bolt-elements-textSecondary">
|
|
146
|
+
{isConnected ? 'Live' : 'Polling'} • {lastUpdate.toLocaleTimeString()}
|
|
147
|
+
</span>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
<p className="text-sm text-bolt-elements-textSecondary">
|
|
151
|
+
Proposal ID: {finalProposalId}
|
|
152
|
+
</p>
|
|
153
|
+
</div>
|
|
154
|
+
|
|
155
|
+
{workflowStatus ? (
|
|
156
|
+
<WorkflowTimeline workflowStatus={workflowStatus} />
|
|
157
|
+
) : (
|
|
158
|
+
<div className="bg-bolt-elements-background-depth-3 border border-bolt-elements-borderColor rounded-lg p-8 text-center">
|
|
159
|
+
<p className="text-bolt-elements-textSecondary">
|
|
160
|
+
Loading workflow status...
|
|
161
|
+
</p>
|
|
162
|
+
</div>
|
|
163
|
+
)}
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.animated {
|
|
2
|
+
animation-fill-mode: both;
|
|
3
|
+
animation-duration: var(--animate-duration, 0.2s);
|
|
4
|
+
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
5
|
+
|
|
6
|
+
&.fadeInRight {
|
|
7
|
+
animation-name: fadeInRight;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&.fadeOutRight {
|
|
11
|
+
animation-name: fadeOutRight;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes fadeInRight {
|
|
16
|
+
from {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
transform: translate3d(100%, 0, 0);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
to {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
transform: translate3d(0, 0, 0);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes fadeOutRight {
|
|
28
|
+
from {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
to {
|
|
33
|
+
opacity: 0;
|
|
34
|
+
transform: translate3d(100%, 0, 0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dropdown-animation {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
animation: fadeMoveDown 0.15s forwards;
|
|
41
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes fadeMoveDown {
|
|
45
|
+
to {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
transform: translateY(6px);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.actions .shiki {
|
|
2
|
+
background-color: var(--bolt-elements-actions-code-background) !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.shiki {
|
|
6
|
+
&:not(:has(.actions), .actions *, .mcp-tool-invocation-code *) {
|
|
7
|
+
background-color: var(--bolt-elements-messages-code-background) !important;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--cm-backgroundColor: var(--bolt-elements-editor-backgroundColor, var(--bolt-elements-bg-depth-1));
|
|
3
|
+
--cm-textColor: var(--bolt-elements-editor-textColor, var(--bolt-elements-textPrimary));
|
|
4
|
+
|
|
5
|
+
/* Gutter */
|
|
6
|
+
|
|
7
|
+
--cm-gutter-backgroundColor: var(--bolt-elements-editor-gutter-backgroundColor, var(--cm-backgroundColor));
|
|
8
|
+
--cm-gutter-textColor: var(--bolt-elements-editor-gutter-textColor, var(--bolt-elements-textSecondary));
|
|
9
|
+
--cm-gutter-activeLineTextColor: var(--bolt-elements-editor-gutter-activeLineTextColor, var(--cm-gutter-textColor));
|
|
10
|
+
|
|
11
|
+
/* Fold Gutter */
|
|
12
|
+
|
|
13
|
+
--cm-foldGutter-textColor: var(--bolt-elements-editor-foldGutter-textColor, var(--cm-gutter-textColor));
|
|
14
|
+
--cm-foldGutter-textColorHover: var(--bolt-elements-editor-foldGutter-textColorHover, var(--cm-gutter-textColor));
|
|
15
|
+
|
|
16
|
+
/* Active Line */
|
|
17
|
+
|
|
18
|
+
--cm-activeLineBackgroundColor: var(--bolt-elements-editor-activeLineBackgroundColor, rgb(224 231 235 / 30%));
|
|
19
|
+
|
|
20
|
+
/* Cursor */
|
|
21
|
+
|
|
22
|
+
--cm-cursor-width: 2px;
|
|
23
|
+
--cm-cursor-backgroundColor: var(--bolt-elements-editor-cursorColor, var(--bolt-elements-textSecondary));
|
|
24
|
+
|
|
25
|
+
/* Matching Brackets */
|
|
26
|
+
|
|
27
|
+
--cm-matching-bracket: var(--bolt-elements-editor-matchingBracketBackgroundColor, rgb(50 140 130 / 0.3));
|
|
28
|
+
|
|
29
|
+
/* Selection */
|
|
30
|
+
|
|
31
|
+
--cm-selection-backgroundColorFocused: var(--bolt-elements-editor-selection-backgroundColor, #42b4ff);
|
|
32
|
+
--cm-selection-backgroundOpacityFocused: var(--bolt-elements-editor-selection-backgroundOpacity, 0.3);
|
|
33
|
+
--cm-selection-backgroundColorBlured: var(--bolt-elements-editor-selection-inactiveBackgroundColor, #c9e9ff);
|
|
34
|
+
--cm-selection-backgroundOpacityBlured: var(--bolt-elements-editor-selection-inactiveBackgroundOpacity, 0.3);
|
|
35
|
+
|
|
36
|
+
/* Panels */
|
|
37
|
+
|
|
38
|
+
--cm-panels-borderColor: var(--bolt-elements-editor-panels-borderColor, var(--bolt-elements-borderColor));
|
|
39
|
+
|
|
40
|
+
/* Search */
|
|
41
|
+
|
|
42
|
+
--cm-search-backgroundColor: var(--bolt-elements-editor-search-backgroundColor, var(--cm-backgroundColor));
|
|
43
|
+
--cm-search-textColor: var(--bolt-elements-editor-search-textColor, var(--bolt-elements-textSecondary));
|
|
44
|
+
--cm-search-closeButton-backgroundColor: var(--bolt-elements-editor-search-closeButton-backgroundColor, transparent);
|
|
45
|
+
|
|
46
|
+
--cm-search-closeButton-backgroundColorHover: var(
|
|
47
|
+
--bolt-elements-editor-search-closeButton-backgroundColorHover,
|
|
48
|
+
var(--bolt-elements-item-backgroundActive)
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
--cm-search-closeButton-textColor: var(
|
|
52
|
+
--bolt-elements-editor-search-closeButton-textColor,
|
|
53
|
+
var(--bolt-elements-item-contentDefault)
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
--cm-search-closeButton-textColorHover: var(
|
|
57
|
+
--bolt-elements-editor-search-closeButton-textColorHover,
|
|
58
|
+
var(--bolt-elements-item-contentActive)
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
--cm-search-button-backgroundColor: var(
|
|
62
|
+
--bolt-elements-editor-search-button-backgroundColor,
|
|
63
|
+
var(--bolt-elements-item-backgroundDefault)
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
--cm-search-button-backgroundColorHover: var(
|
|
67
|
+
--bolt-elements-editor-search-button-backgroundColorHover,
|
|
68
|
+
var(--bolt-elements-item-backgroundActive)
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
--cm-search-button-textColor: var(--bolt-elements-editor-search-button-textColor, var(--bolt-elements-textSecondary));
|
|
72
|
+
|
|
73
|
+
--cm-search-button-textColorHover: var(
|
|
74
|
+
--bolt-elements-editor-search-button-textColorHover,
|
|
75
|
+
var(--bolt-elements-textPrimary)
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
--cm-search-button-borderColor: var(--bolt-elements-editor-search-button-borderColor, transparent);
|
|
79
|
+
--cm-search-button-borderColorHover: var(--bolt-elements-editor-search-button-borderColorHover, transparent);
|
|
80
|
+
|
|
81
|
+
--cm-search-button-borderColorFocused: var(
|
|
82
|
+
--bolt-elements-editor-search-button-borderColorFocused,
|
|
83
|
+
var(--bolt-elements-borderColorActive)
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
--cm-search-input-backgroundColor: var(--bolt-elements-editor-search-input-backgroundColor, transparent);
|
|
87
|
+
--cm-search-input-textColor: var(--bolt-elements-editor-search-input-textColor, var(--bolt-elements-textPrimary));
|
|
88
|
+
--cm-search-input-borderColor: var(--bolt-elements-editor-search-input-borderColor, var(--bolt-elements-borderColor));
|
|
89
|
+
|
|
90
|
+
--cm-search-input-borderColorFocused: var(
|
|
91
|
+
--bolt-elements-editor-search-input-borderColorFocused,
|
|
92
|
+
var(--bolt-elements-borderColorActive)
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
/* Tooltip */
|
|
96
|
+
|
|
97
|
+
--cm-tooltip-backgroundColor: var(--bolt-elements-editor-tooltip-backgroundColor, var(--cm-backgroundColor));
|
|
98
|
+
--cm-tooltip-textColor: var(--bolt-elements-editor-tooltip-textColor, var(--bolt-elements-textPrimary));
|
|
99
|
+
|
|
100
|
+
--cm-tooltip-backgroundColorSelected: var(
|
|
101
|
+
--bolt-elements-editor-tooltip-backgroundColorSelected,
|
|
102
|
+
theme('colors.alpha.accent.30')
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
--cm-tooltip-textColorSelected: var(
|
|
106
|
+
--bolt-elements-editor-tooltip-textColorSelected,
|
|
107
|
+
var(--bolt-elements-textPrimary)
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
--cm-tooltip-borderColor: var(--bolt-elements-editor-tooltip-borderColor, var(--bolt-elements-borderColor));
|
|
111
|
+
|
|
112
|
+
--cm-searchMatch-backgroundColor: var(--bolt-elements-editor-searchMatch-backgroundColor, rgba(234, 92, 0, 0.33));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
html[data-theme='light'] {
|
|
116
|
+
--bolt-elements-editor-gutter-textColor: #237893;
|
|
117
|
+
--bolt-elements-editor-gutter-activeLineTextColor: var(--bolt-elements-textPrimary);
|
|
118
|
+
--bolt-elements-editor-foldGutter-textColorHover: var(--bolt-elements-textPrimary);
|
|
119
|
+
--bolt-elements-editor-activeLineBackgroundColor: rgb(50 53 63 / 5%);
|
|
120
|
+
--bolt-elements-editor-tooltip-backgroundColorSelected: theme('colors.alpha.accent.20');
|
|
121
|
+
--bolt-elements-editor-search-button-backgroundColor: theme('colors.gray.100');
|
|
122
|
+
--bolt-elements-editor-search-button-backgroundColorHover: theme('colors.alpha.gray.10');
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
html[data-theme='dark'] {
|
|
126
|
+
--cm-backgroundColor: var(--bolt-elements-bg-depth-2);
|
|
127
|
+
--bolt-elements-editor-gutter-textColor: var(--bolt-elements-textTertiary);
|
|
128
|
+
--bolt-elements-editor-gutter-activeLineTextColor: var(--bolt-elements-textSecondary);
|
|
129
|
+
--bolt-elements-editor-selection-inactiveBackgroundOpacity: 0.3;
|
|
130
|
+
--bolt-elements-editor-activeLineBackgroundColor: rgb(50 53 63 / 50%);
|
|
131
|
+
--bolt-elements-editor-foldGutter-textColorHover: var(--bolt-elements-textPrimary);
|
|
132
|
+
--bolt-elements-editor-matchingBracketBackgroundColor: rgba(66, 180, 255, 0.3);
|
|
133
|
+
--bolt-elements-editor-search-button-backgroundColor: theme('colors.gray.800');
|
|
134
|
+
--bolt-elements-editor-search-button-backgroundColorHover: theme('colors.alpha.white.10');
|
|
135
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use '../z-index';
|
|
2
|
+
|
|
3
|
+
[data-resize-handle] {
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
&[data-panel-group-direction='horizontal']:after {
|
|
7
|
+
content: '';
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
left: -6px;
|
|
12
|
+
right: -5px;
|
|
13
|
+
z-index: z-index.$zIndexMax;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[data-panel-group-direction='vertical']:after {
|
|
17
|
+
content: '';
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
top: -5px;
|
|
22
|
+
bottom: -6px;
|
|
23
|
+
z-index: z-index.$zIndexMax;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[data-resize-handle-state='hover']:after,
|
|
27
|
+
&[data-resize-handle-state='drag']:after {
|
|
28
|
+
background-color: #8882;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use '../z-index';
|
|
2
|
+
|
|
3
|
+
.Toastify__toast-container {
|
|
4
|
+
@extend .z-toast;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.Toastify__toast {
|
|
8
|
+
--at-apply: shadow-md;
|
|
9
|
+
|
|
10
|
+
background-color: var(--bolt-elements-bg-depth-2);
|
|
11
|
+
color: var(--bolt-elements-textPrimary);
|
|
12
|
+
border: 1px solid var(--bolt-elements-borderColor);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.Toastify__close-button {
|
|
16
|
+
color: var(--bolt-elements-item-contentDefault);
|
|
17
|
+
opacity: 1;
|
|
18
|
+
transition: none;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
color: var(--bolt-elements-item-contentActive);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
.diff-panel-content {
|
|
2
|
+
scrollbar-width: thin;
|
|
3
|
+
scrollbar-color: rgba(155, 155, 155, 0.5) transparent;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.diff-panel-content::-webkit-scrollbar {
|
|
7
|
+
width: 8px;
|
|
8
|
+
height: 8px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.diff-panel-content::-webkit-scrollbar-track {
|
|
12
|
+
background: transparent;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.diff-panel-content::-webkit-scrollbar-thumb {
|
|
16
|
+
background-color: rgba(155, 155, 155, 0.5);
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
border: 2px solid transparent;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.diff-panel-content::-webkit-scrollbar-thumb:hover {
|
|
22
|
+
background-color: rgba(155, 155, 155, 0.7);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Hide scrollbar for the left panel when not hovered */
|
|
26
|
+
.diff-panel:not(:hover) .diff-panel-content::-webkit-scrollbar {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.diff-panel:not(:hover) .diff-panel-content {
|
|
31
|
+
scrollbar-width: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Estilos para as linhas de diff */
|
|
35
|
+
.diff-block-added {
|
|
36
|
+
@apply bg-green-500/20 border-l-4 border-green-500;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.diff-block-removed {
|
|
40
|
+
@apply bg-red-500/20 border-l-4 border-red-500;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Melhorar contraste para mudanças */
|
|
44
|
+
.diff-panel-content .group:hover .diff-block-added {
|
|
45
|
+
@apply bg-green-500/30;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.diff-panel-content .group:hover .diff-block-removed {
|
|
49
|
+
@apply bg-red-500/30;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Estilos unificados para ambas as visualizações */
|
|
53
|
+
.diff-line {
|
|
54
|
+
@apply flex group min-w-fit transition-colors duration-150;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.diff-line-number {
|
|
58
|
+
@apply w-12 shrink-0 pl-2 py-0.5 text-left font-mono text-bolt-elements-textTertiary border-r border-bolt-elements-borderColor bg-bolt-elements-background-depth-1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.diff-line-content {
|
|
62
|
+
@apply px-4 py-0.5 font-mono whitespace-pre flex-1 group-hover:bg-bolt-elements-background-depth-2 text-bolt-elements-textPrimary;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Cores específicas para adições/remoções */
|
|
66
|
+
.diff-added {
|
|
67
|
+
@apply bg-green-500/20 border-l-4 border-green-500;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.diff-removed {
|
|
71
|
+
@apply bg-red-500/20 border-l-4 border-red-500;
|
|
72
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@use 'variables.scss';
|
|
2
|
+
@use 'z-index.scss';
|
|
3
|
+
@use 'animations.scss';
|
|
4
|
+
@use 'components/terminal.scss';
|
|
5
|
+
@use 'components/resize-handle.scss';
|
|
6
|
+
@use 'components/code.scss';
|
|
7
|
+
@use 'components/editor.scss';
|
|
8
|
+
@use 'components/toast.scss';
|
|
9
|
+
|
|
10
|
+
html,
|
|
11
|
+
body {
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
background-color: var(--bolt-elements-bg-depth-1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:root {
|
|
18
|
+
--gradient-opacity: 0.8;
|
|
19
|
+
--primary-color: rgba(158, 117, 240, var(--gradient-opacity));
|
|
20
|
+
--secondary-color: rgba(138, 43, 226, var(--gradient-opacity));
|
|
21
|
+
--accent-color: rgba(128, 59, 239, var(--gradient-opacity));
|
|
22
|
+
// --primary-color: rgba(147, 112, 219, var(--gradient-opacity));
|
|
23
|
+
// --secondary-color: rgba(138, 43, 226, var(--gradient-opacity));
|
|
24
|
+
// --accent-color: rgba(180, 170, 220, var(--gradient-opacity));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.modern-scrollbar {
|
|
28
|
+
overflow: auto;
|
|
29
|
+
|
|
30
|
+
// WebKit scrollbar styling
|
|
31
|
+
&::-webkit-scrollbar {
|
|
32
|
+
width: 2px;
|
|
33
|
+
height: 4px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&::-webkit-scrollbar-track {
|
|
37
|
+
background: transparent;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&::-webkit-scrollbar-thumb {
|
|
41
|
+
// Use CSS variables for colors
|
|
42
|
+
background-color: var(--modern-scrollbar-thumb-background);
|
|
43
|
+
border-radius: 9999px; // pill shape
|
|
44
|
+
border: 2px solid transparent; // for padding-like effect
|
|
45
|
+
background-clip: content-box;
|
|
46
|
+
transition: background-color 0.2s ease-in-out; // Add transition
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
50
|
+
// Use CSS variable for hover color
|
|
51
|
+
background-color: var(--modern-scrollbar-thumb-backgroundHover);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Firefox support
|
|
55
|
+
scrollbar-width: thin;
|
|
56
|
+
// Use CSS variables for Firefox colors
|
|
57
|
+
scrollbar-color: var(--modern-scrollbar-thumb-backgroundHover) transparent; // Use hover color for thumb for consistency
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.modern-scrollbar-invert {
|
|
61
|
+
&::-webkit-scrollbar-thumb {
|
|
62
|
+
// Override with a contrasting color, e.g., primary text color with transparency
|
|
63
|
+
background-color: color-mix(in srgb, var(--bolt-elements-textPrimary), transparent 70%);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
67
|
+
// Darker/more opaque version on hover
|
|
68
|
+
background-color: color-mix(in srgb, var(--bolt-elements-textPrimary), transparent 50%);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Firefox support for inverted colors
|
|
72
|
+
scrollbar-color: color-mix(in srgb, var(--bolt-elements-textPrimary), transparent 50%) transparent;
|
|
73
|
+
}
|