@johpaz/hive 1.7.2 → 1.7.3
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/README.md +178 -36
- package/dist/hive.js +315124 -0
- package/package.json +11 -3
- package/packages/core/src/index.ts +0 -1
- package/.dockerignore +0 -9
- package/CONTRIBUTING.md +0 -44
- package/Dockerfile +0 -67
- package/docker-compose.yml +0 -19
- package/packages/cli/package.json +0 -28
- package/packages/cli/src/commands/agent-run.ts +0 -168
- package/packages/cli/src/commands/agents.ts +0 -398
- package/packages/cli/src/commands/chat.ts +0 -142
- package/packages/cli/src/commands/config.ts +0 -50
- package/packages/cli/src/commands/cron.ts +0 -161
- package/packages/cli/src/commands/dev.ts +0 -95
- package/packages/cli/src/commands/doctor.ts +0 -133
- package/packages/cli/src/commands/gateway.ts +0 -422
- package/packages/cli/src/commands/logs.ts +0 -57
- package/packages/cli/src/commands/mcp.ts +0 -175
- package/packages/cli/src/commands/message.ts +0 -77
- package/packages/cli/src/commands/onboard.ts +0 -1696
- package/packages/cli/src/commands/security.ts +0 -144
- package/packages/cli/src/commands/service.ts +0 -50
- package/packages/cli/src/commands/sessions.ts +0 -116
- package/packages/cli/src/commands/skills.ts +0 -187
- package/packages/cli/src/commands/update.ts +0 -25
- package/packages/cli/src/index.ts +0 -190
- package/packages/cli/src/utils/token.ts +0 -6
- package/packages/code-bridge/README.md +0 -78
- package/packages/code-bridge/package.json +0 -18
- package/packages/code-bridge/src/index.ts +0 -95
- package/packages/code-bridge/src/process-manager.ts +0 -212
- package/packages/code-bridge/src/schemas.ts +0 -133
- package/packages/core/package.json +0 -55
- package/packages/core/src/agent/agent-loop.ts +0 -520
- package/packages/core/src/agent/compaction.ts +0 -183
- package/packages/core/src/agent/context-compiler.ts +0 -544
- package/packages/core/src/agent/context-guard.ts +0 -91
- package/packages/core/src/agent/conversation-store.ts +0 -193
- package/packages/core/src/agent/curator.ts +0 -158
- package/packages/core/src/agent/hooks.ts +0 -166
- package/packages/core/src/agent/llm-client.ts +0 -503
- package/packages/core/src/agent/native-tools.ts +0 -31
- package/packages/core/src/agent/playbook-selector.ts +0 -143
- package/packages/core/src/agent/prompt-builder.ts +0 -167
- package/packages/core/src/agent/providers/index.ts +0 -186
- package/packages/core/src/agent/providers.ts +0 -1
- package/packages/core/src/agent/reflector.ts +0 -200
- package/packages/core/src/agent/service.ts +0 -266
- package/packages/core/src/agent/skill-selector.ts +0 -413
- package/packages/core/src/agent/stuck-loop.ts +0 -133
- package/packages/core/src/agent/tool-selector.ts +0 -623
- package/packages/core/src/agent/tracer.ts +0 -102
- package/packages/core/src/canvas/canvas-manager.ts +0 -319
- package/packages/core/src/canvas/canvas-tools.ts +0 -420
- package/packages/core/src/canvas/emitter.ts +0 -119
- package/packages/core/src/canvas/index.ts +0 -2
- package/packages/core/src/channels/base.ts +0 -140
- package/packages/core/src/channels/discord.ts +0 -260
- package/packages/core/src/channels/index.ts +0 -7
- package/packages/core/src/channels/manager.ts +0 -383
- package/packages/core/src/channels/slack.ts +0 -287
- package/packages/core/src/channels/telegram.ts +0 -552
- package/packages/core/src/channels/webchat.ts +0 -139
- package/packages/core/src/channels/whatsapp.ts +0 -375
- package/packages/core/src/config/index.ts +0 -12
- package/packages/core/src/config/loader.ts +0 -529
- package/packages/core/src/events/agent-bus.ts +0 -460
- package/packages/core/src/events/event-bus.ts +0 -169
- package/packages/core/src/gateway/helpers/cors.ts +0 -32
- package/packages/core/src/gateway/helpers/index.ts +0 -4
- package/packages/core/src/gateway/helpers/narration.ts +0 -60
- package/packages/core/src/gateway/helpers/path.ts +0 -13
- package/packages/core/src/gateway/helpers/redact.ts +0 -61
- package/packages/core/src/gateway/index.ts +0 -5
- package/packages/core/src/gateway/initializer.ts +0 -332
- package/packages/core/src/gateway/lane-queue.ts +0 -169
- package/packages/core/src/gateway/resolver.ts +0 -108
- package/packages/core/src/gateway/router.ts +0 -124
- package/packages/core/src/gateway/routes/agents.ts +0 -187
- package/packages/core/src/gateway/routes/channels.ts +0 -203
- package/packages/core/src/gateway/routes/chat.ts +0 -241
- package/packages/core/src/gateway/routes/config.ts +0 -12
- package/packages/core/src/gateway/routes/cron.ts +0 -42
- package/packages/core/src/gateway/routes/ethics.ts +0 -46
- package/packages/core/src/gateway/routes/mcp.ts +0 -346
- package/packages/core/src/gateway/routes/models.ts +0 -93
- package/packages/core/src/gateway/routes/projects.ts +0 -179
- package/packages/core/src/gateway/routes/providers.ts +0 -192
- package/packages/core/src/gateway/routes/setup.ts +0 -267
- package/packages/core/src/gateway/routes/skills.ts +0 -70
- package/packages/core/src/gateway/routes/system.ts +0 -165
- package/packages/core/src/gateway/routes/tasks.ts +0 -44
- package/packages/core/src/gateway/routes/tools.ts +0 -35
- package/packages/core/src/gateway/routes/users.ts +0 -118
- package/packages/core/src/gateway/routes/voice.ts +0 -73
- package/packages/core/src/gateway/routes/workspace.ts +0 -281
- package/packages/core/src/gateway/server.ts +0 -1978
- package/packages/core/src/gateway/session.ts +0 -95
- package/packages/core/src/gateway/slash-commands.ts +0 -193
- package/packages/core/src/heartbeat/index.ts +0 -157
- package/packages/core/src/mcp/hot-reload.ts +0 -213
- package/packages/core/src/mcp/singleton.ts +0 -21
- package/packages/core/src/memory/index.ts +0 -1
- package/packages/core/src/memory/notes.ts +0 -68
- package/packages/core/src/plugins/api.ts +0 -128
- package/packages/core/src/plugins/index.ts +0 -2
- package/packages/core/src/plugins/loader.ts +0 -365
- package/packages/core/src/resilience/circuit-breaker.ts +0 -225
- package/packages/core/src/security/google-chat.ts +0 -269
- package/packages/core/src/security/index.ts +0 -192
- package/packages/core/src/security/pairing.ts +0 -250
- package/packages/core/src/security/rate-limit.ts +0 -270
- package/packages/core/src/security/signal.ts +0 -321
- package/packages/core/src/state/store.ts +0 -312
- package/packages/core/src/storage/crypto.ts +0 -101
- package/packages/core/src/storage/onboarding.ts +0 -1609
- package/packages/core/src/storage/schema.ts +0 -567
- package/packages/core/src/storage/seed.ts +0 -608
- package/packages/core/src/storage/sqlite.ts +0 -363
- package/packages/core/src/storage/usage.ts +0 -270
- package/packages/core/src/tools/agents/index.ts +0 -607
- package/packages/core/src/tools/bridge-events.ts +0 -26
- package/packages/core/src/tools/canvas/index.ts +0 -281
- package/packages/core/src/tools/cli/index.ts +0 -142
- package/packages/core/src/tools/codebridge/index.ts +0 -179
- package/packages/core/src/tools/core/index.ts +0 -257
- package/packages/core/src/tools/cron/index.ts +0 -373
- package/packages/core/src/tools/filesystem/fs-delete.ts +0 -78
- package/packages/core/src/tools/filesystem/fs-edit.ts +0 -106
- package/packages/core/src/tools/filesystem/fs-exists.ts +0 -63
- package/packages/core/src/tools/filesystem/fs-glob.ts +0 -108
- package/packages/core/src/tools/filesystem/fs-list.ts +0 -129
- package/packages/core/src/tools/filesystem/fs-read.ts +0 -72
- package/packages/core/src/tools/filesystem/fs-write.ts +0 -67
- package/packages/core/src/tools/filesystem/index.ts +0 -34
- package/packages/core/src/tools/filesystem/workspace-guard.ts +0 -62
- package/packages/core/src/tools/index.ts +0 -197
- package/packages/core/src/tools/projects/index.ts +0 -37
- package/packages/core/src/tools/projects/project-create.ts +0 -94
- package/packages/core/src/tools/projects/project-done.ts +0 -66
- package/packages/core/src/tools/projects/project-fail.ts +0 -66
- package/packages/core/src/tools/projects/project-list.ts +0 -96
- package/packages/core/src/tools/projects/project-update.ts +0 -72
- package/packages/core/src/tools/projects/task-create.ts +0 -68
- package/packages/core/src/tools/projects/task-evaluate.ts +0 -93
- package/packages/core/src/tools/projects/task-update.ts +0 -93
- package/packages/core/src/tools/search-knowledge/search-knowledge.ts +0 -155
- package/packages/core/src/tools/types.ts +0 -39
- package/packages/core/src/tools/voice/index.ts +0 -104
- package/packages/core/src/tools/web/browser-click.ts +0 -54
- package/packages/core/src/tools/web/browser-navigate.ts +0 -84
- package/packages/core/src/tools/web/browser-screenshot.ts +0 -54
- package/packages/core/src/tools/web/browser-type.ts +0 -60
- package/packages/core/src/tools/web/index.ts +0 -31
- package/packages/core/src/tools/web/web-fetch.ts +0 -78
- package/packages/core/src/tools/web/web-search.ts +0 -123
- package/packages/core/src/utils/benchmark.ts +0 -80
- package/packages/core/src/utils/crypto.ts +0 -73
- package/packages/core/src/utils/date.ts +0 -42
- package/packages/core/src/utils/index.ts +0 -5
- package/packages/core/src/utils/logger.ts +0 -389
- package/packages/core/src/utils/retry.ts +0 -70
- package/packages/core/src/utils/toon.ts +0 -356
- package/packages/core/src/voice/index.ts +0 -583
- package/packages/hive-ui/README.md +0 -52
- package/packages/hive-ui/components.json +0 -20
- package/packages/hive-ui/index.html +0 -30
- package/packages/hive-ui/package.json +0 -90
- package/packages/hive-ui/public/favicon.ico +0 -0
- package/packages/hive-ui/public/placeholder.svg +0 -1
- package/packages/hive-ui/src/App.tsx +0 -115
- package/packages/hive-ui/src/components/CronJobsPanel.tsx +0 -200
- package/packages/hive-ui/src/components/NavLink.tsx +0 -34
- package/packages/hive-ui/src/components/NotesPanel.tsx +0 -79
- package/packages/hive-ui/src/components/SystemMonitor.tsx +0 -270
- package/packages/hive-ui/src/components/UsageStatsPanel.tsx +0 -334
- package/packages/hive-ui/src/components/WelcomeDialog.tsx +0 -279
- package/packages/hive-ui/src/components/ui/accordion.tsx +0 -52
- package/packages/hive-ui/src/components/ui/alert-dialog.tsx +0 -104
- package/packages/hive-ui/src/components/ui/alert.tsx +0 -45
- package/packages/hive-ui/src/components/ui/aspect-ratio.tsx +0 -5
- package/packages/hive-ui/src/components/ui/avatar.tsx +0 -38
- package/packages/hive-ui/src/components/ui/badge.tsx +0 -29
- package/packages/hive-ui/src/components/ui/bee-loader.tsx +0 -68
- package/packages/hive-ui/src/components/ui/breadcrumb.tsx +0 -90
- package/packages/hive-ui/src/components/ui/button.tsx +0 -47
- package/packages/hive-ui/src/components/ui/calendar.tsx +0 -54
- package/packages/hive-ui/src/components/ui/card.tsx +0 -45
- package/packages/hive-ui/src/components/ui/carousel.tsx +0 -224
- package/packages/hive-ui/src/components/ui/chart.tsx +0 -303
- package/packages/hive-ui/src/components/ui/checkbox.tsx +0 -26
- package/packages/hive-ui/src/components/ui/collapsible.tsx +0 -9
- package/packages/hive-ui/src/components/ui/command.tsx +0 -133
- package/packages/hive-ui/src/components/ui/context-menu.tsx +0 -178
- package/packages/hive-ui/src/components/ui/dialog.tsx +0 -95
- package/packages/hive-ui/src/components/ui/drawer.tsx +0 -87
- package/packages/hive-ui/src/components/ui/dropdown-menu.tsx +0 -179
- package/packages/hive-ui/src/components/ui/form.tsx +0 -129
- package/packages/hive-ui/src/components/ui/hover-card.tsx +0 -27
- package/packages/hive-ui/src/components/ui/input-otp.tsx +0 -61
- package/packages/hive-ui/src/components/ui/input.tsx +0 -22
- package/packages/hive-ui/src/components/ui/label.tsx +0 -17
- package/packages/hive-ui/src/components/ui/menubar.tsx +0 -207
- package/packages/hive-ui/src/components/ui/navigation-menu.tsx +0 -120
- package/packages/hive-ui/src/components/ui/pagination.tsx +0 -80
- package/packages/hive-ui/src/components/ui/popover.tsx +0 -29
- package/packages/hive-ui/src/components/ui/progress.tsx +0 -23
- package/packages/hive-ui/src/components/ui/radio-group.tsx +0 -36
- package/packages/hive-ui/src/components/ui/resizable.tsx +0 -37
- package/packages/hive-ui/src/components/ui/scroll-area.tsx +0 -38
- package/packages/hive-ui/src/components/ui/select.tsx +0 -143
- package/packages/hive-ui/src/components/ui/separator.tsx +0 -20
- package/packages/hive-ui/src/components/ui/sheet.tsx +0 -107
- package/packages/hive-ui/src/components/ui/sidebar.tsx +0 -636
- package/packages/hive-ui/src/components/ui/skeleton.tsx +0 -7
- package/packages/hive-ui/src/components/ui/slider.tsx +0 -23
- package/packages/hive-ui/src/components/ui/sonner.tsx +0 -27
- package/packages/hive-ui/src/components/ui/switch.tsx +0 -27
- package/packages/hive-ui/src/components/ui/table.tsx +0 -72
- package/packages/hive-ui/src/components/ui/tabs.tsx +0 -53
- package/packages/hive-ui/src/components/ui/textarea.tsx +0 -21
- package/packages/hive-ui/src/components/ui/toast.tsx +0 -111
- package/packages/hive-ui/src/components/ui/toaster.tsx +0 -24
- package/packages/hive-ui/src/components/ui/toggle-group.tsx +0 -49
- package/packages/hive-ui/src/components/ui/toggle.tsx +0 -37
- package/packages/hive-ui/src/components/ui/tooltip.tsx +0 -28
- package/packages/hive-ui/src/components/ui/use-toast.ts +0 -3
- package/packages/hive-ui/src/hooks/use-mobile.tsx +0 -19
- package/packages/hive-ui/src/hooks/use-toast.ts +0 -186
- package/packages/hive-ui/src/hooks/useAgentConfig.ts +0 -25
- package/packages/hive-ui/src/hooks/useAgents.ts +0 -38
- package/packages/hive-ui/src/hooks/useBridge.ts +0 -38
- package/packages/hive-ui/src/hooks/useCanvas.ts +0 -24
- package/packages/hive-ui/src/hooks/useChannels.ts +0 -2
- package/packages/hive-ui/src/hooks/useEthics.ts +0 -51
- package/packages/hive-ui/src/hooks/useProviders.ts +0 -14
- package/packages/hive-ui/src/hooks/useTheme.ts +0 -29
- package/packages/hive-ui/src/hooks/useUserConfig.ts +0 -17
- package/packages/hive-ui/src/hooks/useWebSocket.ts +0 -12
- package/packages/hive-ui/src/index.css +0 -620
- package/packages/hive-ui/src/lib/api.ts +0 -100
- package/packages/hive-ui/src/lib/constants.ts +0 -6
- package/packages/hive-ui/src/lib/models.ts +0 -64
- package/packages/hive-ui/src/lib/swal.ts +0 -30
- package/packages/hive-ui/src/lib/utils.ts +0 -6
- package/packages/hive-ui/src/lib/websocket.ts +0 -7
- package/packages/hive-ui/src/main.tsx +0 -5
- package/packages/hive-ui/src/modules/agent-config/details/AgentDetailsEditor.tsx +0 -524
- package/packages/hive-ui/src/modules/agent-config/ethics/EthicsConflictDetector.tsx +0 -18
- package/packages/hive-ui/src/modules/agent-config/ethics/EthicsEditor.tsx +0 -19
- package/packages/hive-ui/src/modules/agent-config/ethics/EthicsRulesList.tsx +0 -36
- package/packages/hive-ui/src/modules/agent-config/ethics/EthicsTemplateGallery.tsx +0 -361
- package/packages/hive-ui/src/modules/agent-config/ethics/index.ts +0 -4
- package/packages/hive-ui/src/modules/agent-config/index.ts +0 -6
- package/packages/hive-ui/src/modules/agent-config/mcp/MCPServerAdd.tsx +0 -322
- package/packages/hive-ui/src/modules/agent-config/mcp/MCPServerCard.tsx +0 -93
- package/packages/hive-ui/src/modules/agent-config/mcp/MCPServerConfig.tsx +0 -427
- package/packages/hive-ui/src/modules/agent-config/mcp/MCPServerList.tsx +0 -85
- package/packages/hive-ui/src/modules/agent-config/mcp/MCPToolExplorer.tsx +0 -79
- package/packages/hive-ui/src/modules/agent-config/mcp/index.ts +0 -5
- package/packages/hive-ui/src/modules/agent-config/shared/ConfigEditorLayout.tsx +0 -30
- package/packages/hive-ui/src/modules/agent-config/shared/ConfigExporter.tsx +0 -26
- package/packages/hive-ui/src/modules/agent-config/shared/ConfigImporter.tsx +0 -25
- package/packages/hive-ui/src/modules/agent-config/shared/DiffViewer.tsx +0 -31
- package/packages/hive-ui/src/modules/agent-config/shared/MarkdownEditor.tsx +0 -32
- package/packages/hive-ui/src/modules/agent-config/shared/SaveStatusIndicator.tsx +0 -23
- package/packages/hive-ui/src/modules/agent-config/shared/ValidationPanel.tsx +0 -36
- package/packages/hive-ui/src/modules/agent-config/shared/index.ts +0 -7
- package/packages/hive-ui/src/modules/agent-config/skills/SkillCard.tsx +0 -81
- package/packages/hive-ui/src/modules/agent-config/skills/SkillConfigEditor.tsx +0 -22
- package/packages/hive-ui/src/modules/agent-config/skills/SkillCreator.tsx +0 -60
- package/packages/hive-ui/src/modules/agent-config/skills/SkillInstaller.tsx +0 -23
- package/packages/hive-ui/src/modules/agent-config/skills/SkillList.tsx +0 -72
- package/packages/hive-ui/src/modules/agent-config/skills/SkillsTab.tsx +0 -202
- package/packages/hive-ui/src/modules/agent-config/skills/index.ts +0 -5
- package/packages/hive-ui/src/modules/agent-config/tools/ToolCard.tsx +0 -27
- package/packages/hive-ui/src/modules/agent-config/tools/ToolConfigPanel.tsx +0 -22
- package/packages/hive-ui/src/modules/agent-config/tools/ToolManager.tsx +0 -266
- package/packages/hive-ui/src/modules/agent-config/tools/ToolPermissions.tsx +0 -287
- package/packages/hive-ui/src/modules/agent-config/tools/ToolRegistry.tsx +0 -84
- package/packages/hive-ui/src/modules/agent-config/tools/ToolUsageStats.tsx +0 -52
- package/packages/hive-ui/src/modules/agent-config/tools/index.ts +0 -4
- package/packages/hive-ui/src/modules/agent-config/user/ActiveAgentsList.tsx +0 -109
- package/packages/hive-ui/src/modules/agent-config/user/GlobalConfigOverview.tsx +0 -119
- package/packages/hive-ui/src/modules/agent-config/user/UserMemoryManager.tsx +0 -54
- package/packages/hive-ui/src/modules/agent-config/user/UserPreferencesForm.tsx +0 -163
- package/packages/hive-ui/src/modules/agent-config/user/UserProfileEditor.tsx +0 -261
- package/packages/hive-ui/src/modules/agent-config/user/index.ts +0 -3
- package/packages/hive-ui/src/modules/agents/AgentActivityLog.tsx +0 -25
- package/packages/hive-ui/src/modules/agents/AgentCard.tsx +0 -305
- package/packages/hive-ui/src/modules/agents/AgentCreateForm.tsx +0 -446
- package/packages/hive-ui/src/modules/agents/AgentDetail.tsx +0 -28
- package/packages/hive-ui/src/modules/agents/AgentInternalCard.tsx +0 -162
- package/packages/hive-ui/src/modules/agents/AgentList.tsx +0 -29
- package/packages/hive-ui/src/modules/agents/AgentStatusBadge.tsx +0 -34
- package/packages/hive-ui/src/modules/agents/ModelSelector.tsx +0 -151
- package/packages/hive-ui/src/modules/bridge/BridgeLogViewer.tsx +0 -61
- package/packages/hive-ui/src/modules/bridge/BridgeProcessList.tsx +0 -77
- package/packages/hive-ui/src/modules/bridge/BridgeStatus.tsx +0 -23
- package/packages/hive-ui/src/modules/bridge/BridgeTerminal.tsx +0 -7
- package/packages/hive-ui/src/modules/canvas/CanvasButton.tsx +0 -3
- package/packages/hive-ui/src/modules/canvas/CanvasChart.tsx +0 -3
- package/packages/hive-ui/src/modules/canvas/CanvasComponentMap.tsx +0 -605
- package/packages/hive-ui/src/modules/canvas/CanvasContainer.tsx +0 -360
- package/packages/hive-ui/src/modules/canvas/CanvasForm.tsx +0 -3
- package/packages/hive-ui/src/modules/canvas/CanvasMarkdown.tsx +0 -3
- package/packages/hive-ui/src/modules/canvas/CanvasTable.tsx +0 -3
- package/packages/hive-ui/src/modules/canvas/ComponentRenderer.tsx +0 -30
- package/packages/hive-ui/src/modules/canvas/DynamicRenderer.tsx +0 -3
- package/packages/hive-ui/src/modules/channels/available/AvailableChannelsGrid.tsx +0 -89
- package/packages/hive-ui/src/modules/channels/available/ChannelAuthForm.tsx +0 -33
- package/packages/hive-ui/src/modules/channels/available/ChannelSetupWizard.tsx +0 -48
- package/packages/hive-ui/src/modules/channels/available/ChannelTestConnection.tsx +0 -37
- package/packages/hive-ui/src/modules/channels/available/ChannelTypeCard.tsx +0 -30
- package/packages/hive-ui/src/modules/channels/available/ChannelWebhookConfig.tsx +0 -30
- package/packages/hive-ui/src/modules/channels/available/index.ts +0 -6
- package/packages/hive-ui/src/modules/channels/connected/ChannelCard.tsx +0 -95
- package/packages/hive-ui/src/modules/channels/connected/ChannelConfigPanel.tsx +0 -260
- package/packages/hive-ui/src/modules/channels/connected/ChannelDisconnectButton.tsx +0 -21
- package/packages/hive-ui/src/modules/channels/connected/ChannelLogsViewer.tsx +0 -42
- package/packages/hive-ui/src/modules/channels/connected/ChannelQRCode.tsx +0 -32
- package/packages/hive-ui/src/modules/channels/connected/ChannelReconnectButton.tsx +0 -16
- package/packages/hive-ui/src/modules/channels/connected/ChannelStatusBadge.tsx +0 -26
- package/packages/hive-ui/src/modules/channels/connected/ConnectedChannelsList.tsx +0 -40
- package/packages/hive-ui/src/modules/channels/connected/index.ts +0 -8
- package/packages/hive-ui/src/modules/channels/shared/ChannelCard.tsx +0 -84
- package/packages/hive-ui/src/modules/channels/shared/ChannelConfigDialog.tsx +0 -279
- package/packages/hive-ui/src/modules/channels/shared/ChannelIcon.tsx +0 -40
- package/packages/hive-ui/src/modules/channels/shared/ChannelStats.tsx +0 -37
- package/packages/hive-ui/src/modules/channels/shared/ChannelTypeBadge.tsx +0 -23
- package/packages/hive-ui/src/modules/channels/shared/ConnectionHealthIndicator.tsx +0 -20
- package/packages/hive-ui/src/modules/channels/shared/MessagePreview.tsx +0 -19
- package/packages/hive-ui/src/modules/channels/shared/index.ts +0 -5
- package/packages/hive-ui/src/modules/chat/ChatContainer.tsx +0 -268
- package/packages/hive-ui/src/modules/chat/ChatHistory.tsx +0 -101
- package/packages/hive-ui/src/modules/chat/ChatInput.tsx +0 -108
- package/packages/hive-ui/src/modules/chat/ChatMessage.tsx +0 -137
- package/packages/hive-ui/src/modules/chat/ThinkingIndicator.tsx +0 -10
- package/packages/hive-ui/src/modules/layout/AppLayout.tsx +0 -45
- package/packages/hive-ui/src/modules/layout/ConnectionStatus.tsx +0 -19
- package/packages/hive-ui/src/modules/layout/Header.tsx +0 -20
- package/packages/hive-ui/src/modules/layout/HiveSidebar.tsx +0 -173
- package/packages/hive-ui/src/modules/layout/ThemeToggle.tsx +0 -18
- package/packages/hive-ui/src/modules/providers/ProviderCard.tsx +0 -319
- package/packages/hive-ui/src/modules/providers/ProviderConfigForm.tsx +0 -146
- package/packages/hive-ui/src/modules/providers/ProviderFailoverConfig.tsx +0 -110
- package/packages/hive-ui/src/modules/providers/ProviderList.tsx +0 -33
- package/packages/hive-ui/src/modules/providers/ProviderStatusIndicator.tsx +0 -23
- package/packages/hive-ui/src/modules/providers/configs/ProviderAPIKeyManager.tsx +0 -39
- package/packages/hive-ui/src/modules/providers/configs/ProviderEndpointConfig.tsx +0 -27
- package/packages/hive-ui/src/modules/providers/configs/ProviderRateLimits.tsx +0 -37
- package/packages/hive-ui/src/modules/providers/configs/ProviderRetryPolicy.tsx +0 -46
- package/packages/hive-ui/src/modules/providers/configs/index.ts +0 -4
- package/packages/hive-ui/src/modules/providers/index.ts +0 -5
- package/packages/hive-ui/src/modules/providers/models/ModelBenchmarkBadge.tsx +0 -21
- package/packages/hive-ui/src/modules/providers/models/ModelCapabilities.tsx +0 -44
- package/packages/hive-ui/src/modules/providers/models/ModelCard.tsx +0 -36
- package/packages/hive-ui/src/modules/providers/models/ModelComparisonTable.tsx +0 -47
- package/packages/hive-ui/src/modules/providers/models/ModelList.tsx +0 -51
- package/packages/hive-ui/src/modules/providers/models/ModelPricingInfo.tsx +0 -17
- package/packages/hive-ui/src/modules/providers/models/ModelSelector.tsx +0 -32
- package/packages/hive-ui/src/modules/providers/models/index.ts +0 -7
- package/packages/hive-ui/src/pages/AgentDetailPage.tsx +0 -74
- package/packages/hive-ui/src/pages/AgentNewPage.tsx +0 -5
- package/packages/hive-ui/src/pages/AgentsPage.tsx +0 -147
- package/packages/hive-ui/src/pages/BridgePage.tsx +0 -83
- package/packages/hive-ui/src/pages/CanvasPage.tsx +0 -32
- package/packages/hive-ui/src/pages/ChannelsPage.tsx +0 -176
- package/packages/hive-ui/src/pages/DashboardPage.tsx +0 -321
- package/packages/hive-ui/src/pages/Index.tsx +0 -14
- package/packages/hive-ui/src/pages/LogsPage.tsx +0 -252
- package/packages/hive-ui/src/pages/NotFound.tsx +0 -24
- package/packages/hive-ui/src/pages/ProjectsPage.tsx +0 -241
- package/packages/hive-ui/src/pages/ProvidersPage.tsx +0 -111
- package/packages/hive-ui/src/pages/SettingsPage.tsx +0 -147
- package/packages/hive-ui/src/pages/SetupPage.tsx +0 -1177
- package/packages/hive-ui/src/pages/WebChatPage.tsx +0 -15
- package/packages/hive-ui/src/stores/agentConfigStore.ts +0 -32
- package/packages/hive-ui/src/stores/agentStore.ts +0 -5
- package/packages/hive-ui/src/stores/bridgeStore.ts +0 -237
- package/packages/hive-ui/src/stores/canvasStore.ts +0 -250
- package/packages/hive-ui/src/stores/channelStore.ts +0 -5
- package/packages/hive-ui/src/stores/chatStore.ts +0 -42
- package/packages/hive-ui/src/stores/ethicsStore.ts +0 -141
- package/packages/hive-ui/src/stores/mcpStore.ts +0 -5
- package/packages/hive-ui/src/stores/modelStore.ts +0 -2
- package/packages/hive-ui/src/stores/projectsStore.ts +0 -141
- package/packages/hive-ui/src/stores/providerStore.ts +0 -2
- package/packages/hive-ui/src/stores/skillStore.ts +0 -5
- package/packages/hive-ui/src/stores/toolStore.ts +0 -5
- package/packages/hive-ui/src/stores/useGlobalConfigStore.ts +0 -937
- package/packages/hive-ui/src/stores/useLoaderStore.ts +0 -21
- package/packages/hive-ui/src/stores/useNotesAndCronsStore.ts +0 -144
- package/packages/hive-ui/src/stores/useWebSocketStore.ts +0 -152
- package/packages/hive-ui/src/stores/useWelcomeStore.ts +0 -37
- package/packages/hive-ui/src/stores/userConfigStore.ts +0 -23
- package/packages/hive-ui/src/stores/userStore.ts +0 -82
- package/packages/hive-ui/src/test/setup.ts +0 -15
- package/packages/hive-ui/src/types/agent-config.ts +0 -33
- package/packages/hive-ui/src/types/agent.ts +0 -65
- package/packages/hive-ui/src/types/bridge.ts +0 -27
- package/packages/hive-ui/src/types/canvas.ts +0 -76
- package/packages/hive-ui/src/types/channels.ts +0 -109
- package/packages/hive-ui/src/types/chat.ts +0 -25
- package/packages/hive-ui/src/types/connections.ts +0 -17
- package/packages/hive-ui/src/types/ethics.ts +0 -41
- package/packages/hive-ui/src/types/index.ts +0 -15
- package/packages/hive-ui/src/types/mcp.ts +0 -36
- package/packages/hive-ui/src/types/notes-crons.ts +0 -31
- package/packages/hive-ui/src/types/providers.ts +0 -145
- package/packages/hive-ui/src/types/skill.ts +0 -12
- package/packages/hive-ui/src/types/tool.ts +0 -44
- package/packages/hive-ui/src/types/user.ts +0 -26
- package/packages/hive-ui/src/types/websocket.ts +0 -14
- package/packages/hive-ui/src/vite-env.d.ts +0 -1
- package/packages/mcp/package.json +0 -26
- package/packages/mcp/src/config.ts +0 -13
- package/packages/mcp/src/index.ts +0 -1
- package/packages/mcp/src/logger.ts +0 -42
- package/packages/mcp/src/manager.ts +0 -439
- package/packages/mcp/src/transports/index.ts +0 -67
- package/packages/mcp/src/transports/sse.ts +0 -241
- package/packages/mcp/src/transports/websocket.ts +0 -159
- package/packages/skills/package.json +0 -21
- package/packages/skills/src/index.ts +0 -1
- package/packages/skills/src/loader.ts +0 -346
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
import * as Dialog from "@radix-ui/react-dialog";
|
|
3
|
-
import { X } from "lucide-react";
|
|
4
|
-
import { useWelcomeStore, type WelcomeData } from "@/stores/useWelcomeStore";
|
|
5
|
-
|
|
6
|
-
// Bee SVG Component
|
|
7
|
-
function Bee({ delay, startX, startY, duration }: { delay: number; startX: number; startY: number; duration: number }) {
|
|
8
|
-
const style: React.CSSProperties = {
|
|
9
|
-
position: "absolute",
|
|
10
|
-
left: `${startX}%`,
|
|
11
|
-
top: `${startY}%`,
|
|
12
|
-
animation: `flyBee ${duration}s ease-in-out ${delay}s infinite`,
|
|
13
|
-
opacity: 0,
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<svg
|
|
18
|
-
style={style}
|
|
19
|
-
width="24"
|
|
20
|
-
height="24"
|
|
21
|
-
viewBox="0 0 24 24"
|
|
22
|
-
fill="none"
|
|
23
|
-
className="drop-shadow-lg"
|
|
24
|
-
>
|
|
25
|
-
<ellipse cx="12" cy="14" rx="6" ry="8" fill="#FBBF24" />
|
|
26
|
-
<ellipse cx="12" cy="14" rx="3" ry="6" fill="#1F2937" />
|
|
27
|
-
<circle cx="8" cy="10" r="2" fill="#1F2937" />
|
|
28
|
-
<circle cx="16" cy="10" r="2" fill="#1F2937" />
|
|
29
|
-
<path
|
|
30
|
-
d="M6 8 Q4 4 8 6"
|
|
31
|
-
stroke="#1F2937"
|
|
32
|
-
strokeWidth="1"
|
|
33
|
-
fill="none"
|
|
34
|
-
/>
|
|
35
|
-
<path
|
|
36
|
-
d="M18 8 Q20 4 16 6"
|
|
37
|
-
stroke="#1F2937"
|
|
38
|
-
strokeWidth="1"
|
|
39
|
-
fill="none"
|
|
40
|
-
/>
|
|
41
|
-
<path
|
|
42
|
-
d="M9 18 L6 22 L9 20 Z"
|
|
43
|
-
fill="#1F2937"
|
|
44
|
-
/>
|
|
45
|
-
<path
|
|
46
|
-
d="M15 18 L18 22 L15 20 Z"
|
|
47
|
-
fill="#1F2937"
|
|
48
|
-
/>
|
|
49
|
-
</svg>
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// Star sparkle
|
|
54
|
-
function Sparkle({ delay, x, y }: { delay: number; x: number; y: number }) {
|
|
55
|
-
const style: React.CSSProperties = {
|
|
56
|
-
position: "absolute",
|
|
57
|
-
left: `${x}%`,
|
|
58
|
-
top: `${y}%`,
|
|
59
|
-
animation: `sparkle 2s ease-in-out ${delay}s infinite`,
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
return (
|
|
63
|
-
<svg style={style} width="12" height="12" viewBox="0 0 24 24" fill="none">
|
|
64
|
-
<path
|
|
65
|
-
d="M12 2 L14 10 L22 12 L14 14 L12 22 L10 14 L2 12 L10 10 Z"
|
|
66
|
-
fill="#FCD34D"
|
|
67
|
-
className="animate-pulse"
|
|
68
|
-
/>
|
|
69
|
-
</svg>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function WelcomeDialog() {
|
|
74
|
-
const { isOpen, data, close } = useWelcomeStore();
|
|
75
|
-
const [countdown, setCountdown] = useState(4);
|
|
76
|
-
|
|
77
|
-
useEffect(() => {
|
|
78
|
-
if (isOpen) {
|
|
79
|
-
setCountdown(4);
|
|
80
|
-
const timer = setInterval(() => {
|
|
81
|
-
setCountdown((prev) => {
|
|
82
|
-
if (prev <= 1) {
|
|
83
|
-
clearInterval(timer);
|
|
84
|
-
close();
|
|
85
|
-
return 0;
|
|
86
|
-
}
|
|
87
|
-
return prev - 1;
|
|
88
|
-
});
|
|
89
|
-
}, 1000);
|
|
90
|
-
|
|
91
|
-
return () => clearInterval(timer);
|
|
92
|
-
}
|
|
93
|
-
}, [isOpen, close]);
|
|
94
|
-
|
|
95
|
-
if (!isOpen || !data) return null;
|
|
96
|
-
|
|
97
|
-
const channelList = data.channels?.length > 0
|
|
98
|
-
? data.channels.join(", ")
|
|
99
|
-
: "WebChat";
|
|
100
|
-
|
|
101
|
-
return (
|
|
102
|
-
<Dialog.Root open={isOpen} onOpenChange={(open) => !open && close()}>
|
|
103
|
-
<Dialog.Portal>
|
|
104
|
-
<Dialog.Overlay className="fixed inset-0 bg-black/60 backdrop-blur-sm z-50 animate-fade-in" />
|
|
105
|
-
<Dialog.Content className="fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 w-full max-w-lg focus:outline-none">
|
|
106
|
-
<Dialog.Title className="sr-only">Bienvenido al Enjambre</Dialog.Title>
|
|
107
|
-
<div className="relative bg-gradient-to-br from-amber-50 via-yellow-50 to-orange-100 rounded-3xl shadow-2xl overflow-hidden border-4 border-amber-300/50">
|
|
108
|
-
{/* Animated background with bees */}
|
|
109
|
-
<div className="absolute inset-0 overflow-hidden pointer-events-none">
|
|
110
|
-
{/* Gradient overlay */}
|
|
111
|
-
<div className="absolute inset-0 bg-gradient-to-b from-amber-200/30 to-orange-200/30" />
|
|
112
|
-
|
|
113
|
-
{/* Bees */}
|
|
114
|
-
<Bee delay={0} startX={10} startY={20} duration={8} />
|
|
115
|
-
<Bee delay={1} startX={80} startY={30} duration={7} />
|
|
116
|
-
<Bee delay={2} startX={20} startY={60} duration={9} />
|
|
117
|
-
<Bee delay={0.5} startX={70} startY={70} duration={8} />
|
|
118
|
-
<Bee delay={1.5} startX={40} startY={10} duration={10} />
|
|
119
|
-
<Bee delay={2.5} startX={60} startY={50} duration={7} />
|
|
120
|
-
|
|
121
|
-
{/* Sparkles */}
|
|
122
|
-
<Sparkle delay={0} x={15} y={15} />
|
|
123
|
-
<Sparkle delay={0.5} x={85} y={25} />
|
|
124
|
-
<Sparkle delay={1} x={25} y={75} />
|
|
125
|
-
<Sparkle delay={1.5} x={75} y={80} />
|
|
126
|
-
<Sparkle delay={2} x={50} y={10} />
|
|
127
|
-
</div>
|
|
128
|
-
|
|
129
|
-
{/* Content */}
|
|
130
|
-
<div className="relative p-8 text-center">
|
|
131
|
-
{/* Header */}
|
|
132
|
-
<div className="mb-6">
|
|
133
|
-
<h1 className="text-4xl font-black text-transparent bg-clip-text bg-gradient-to-r from-amber-600 via-orange-600 to-amber-700 drop-shadow-sm">
|
|
134
|
-
🐝 BIENVENIDO AL ENJAMBRE 🐝
|
|
135
|
-
</h1>
|
|
136
|
-
<p className="text-lg font-semibold text-amber-800 mt-2">
|
|
137
|
-
✦在你的 Hive✦
|
|
138
|
-
</p>
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
{/* Divider */}
|
|
142
|
-
<div className="w-full h-px bg-gradient-to-r from-transparent via-amber-400 to-transparent mb-6" />
|
|
143
|
-
|
|
144
|
-
{/* User Info */}
|
|
145
|
-
<div className="mb-6">
|
|
146
|
-
{data.user && (
|
|
147
|
-
<p className="text-2xl font-bold text-gray-800 mb-4">
|
|
148
|
-
👋 Hola, <span className="text-amber-700">{data.user.name}</span>!
|
|
149
|
-
</p>
|
|
150
|
-
)}
|
|
151
|
-
|
|
152
|
-
<div className="flex flex-col gap-2 text-left bg-white/60 rounded-xl p-4 backdrop-blur-sm">
|
|
153
|
-
{data.agent && (
|
|
154
|
-
<p className="text-gray-700">
|
|
155
|
-
<span className="font-semibold">🤖 Tu agente:</span>{" "}
|
|
156
|
-
<span className="text-amber-700">{data.agent.name}</span>
|
|
157
|
-
</p>
|
|
158
|
-
)}
|
|
159
|
-
{data.agent && (
|
|
160
|
-
<p className="text-gray-700">
|
|
161
|
-
<span className="font-semibold">🧠 Provider:</span>{" "}
|
|
162
|
-
<span className="text-amber-700">{data.agent.provider}/{data.agent.model}</span>
|
|
163
|
-
</p>
|
|
164
|
-
)}
|
|
165
|
-
<p className="text-gray-700">
|
|
166
|
-
<span className="font-semibold">📡 Canales:</span>{" "}
|
|
167
|
-
<span className="text-amber-700">{channelList}</span>
|
|
168
|
-
</p>
|
|
169
|
-
{data.voice?.enabled && (
|
|
170
|
-
<p className="text-gray-700">
|
|
171
|
-
<span className="font-semibold">🎤 Voz:</span>{" "}
|
|
172
|
-
<span className="text-amber-700">
|
|
173
|
-
{data.voice.sttProvider} + {data.voice.ttsProvider}
|
|
174
|
-
</span>
|
|
175
|
-
</p>
|
|
176
|
-
)}
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
|
|
180
|
-
{/* Divider */}
|
|
181
|
-
<div className="w-full h-px bg-gradient-to-r from-transparent via-amber-400 to-transparent mb-6" />
|
|
182
|
-
|
|
183
|
-
{/* Hive Capabilities */}
|
|
184
|
-
<div className="mb-6 text-left">
|
|
185
|
-
<p className="text-lg font-bold text-gray-800 mb-3 text-center">
|
|
186
|
-
💡 LO QUE PUEDES HACER CON HIVE:
|
|
187
|
-
</p>
|
|
188
|
-
<div className="grid grid-cols-2 gap-2 text-sm">
|
|
189
|
-
<Capability icon="🗣️" text="Voz en tiempo real (STT/TTS)" />
|
|
190
|
-
<Capability icon="🔧" text="Code Bridge (claude-code, gemini)" />
|
|
191
|
-
<Capability icon="🔌" text="MCP Servers" />
|
|
192
|
-
<Capability icon="🎨" text="Canvas visual" />
|
|
193
|
-
<Capability icon="📱" text="Múltiples canales" />
|
|
194
|
-
<Capability icon="🧠" text="Múltiples agentes" />
|
|
195
|
-
<Capability icon="💬" text="Memoria conversacional" />
|
|
196
|
-
<Capability icon="⚡" text="Ejecución de tools" />
|
|
197
|
-
</div>
|
|
198
|
-
</div>
|
|
199
|
-
|
|
200
|
-
{/* Footer */}
|
|
201
|
-
<div className="mt-4">
|
|
202
|
-
<p className="text-amber-600 font-medium animate-pulse">
|
|
203
|
-
🌐 Abriendo Dashboard en {countdown}s...
|
|
204
|
-
</p>
|
|
205
|
-
</div>
|
|
206
|
-
|
|
207
|
-
{/* Close button */}
|
|
208
|
-
<Dialog.Close asChild>
|
|
209
|
-
<button
|
|
210
|
-
className="absolute top-4 right-4 p-2 rounded-full bg-amber-200/80 hover:bg-amber-300 transition-colors"
|
|
211
|
-
aria-label="Cerrar"
|
|
212
|
-
>
|
|
213
|
-
<X className="w-5 h-5 text-amber-800" />
|
|
214
|
-
</button>
|
|
215
|
-
</Dialog.Close>
|
|
216
|
-
</div>
|
|
217
|
-
</div>
|
|
218
|
-
</Dialog.Content>
|
|
219
|
-
</Dialog.Portal>
|
|
220
|
-
|
|
221
|
-
<style>{`
|
|
222
|
-
@keyframes flyBee {
|
|
223
|
-
0% {
|
|
224
|
-
transform: translate(0, 0) rotate(0deg);
|
|
225
|
-
opacity: 0;
|
|
226
|
-
}
|
|
227
|
-
10% {
|
|
228
|
-
opacity: 1;
|
|
229
|
-
}
|
|
230
|
-
25% {
|
|
231
|
-
transform: translate(100px, -50px) rotate(15deg);
|
|
232
|
-
}
|
|
233
|
-
50% {
|
|
234
|
-
transform: translate(50px, 50px) rotate(-10deg);
|
|
235
|
-
}
|
|
236
|
-
75% {
|
|
237
|
-
transform: translate(-80px, 20px) rotate(20deg);
|
|
238
|
-
}
|
|
239
|
-
90% {
|
|
240
|
-
opacity: 1;
|
|
241
|
-
}
|
|
242
|
-
100% {
|
|
243
|
-
transform: translate(0, 0) rotate(0deg);
|
|
244
|
-
opacity: 0;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
@keyframes sparkle {
|
|
249
|
-
0%, 100% {
|
|
250
|
-
opacity: 0;
|
|
251
|
-
transform: scale(0.5);
|
|
252
|
-
}
|
|
253
|
-
50% {
|
|
254
|
-
opacity: 1;
|
|
255
|
-
transform: scale(1.2);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.animate-fade-in {
|
|
260
|
-
animation: fadeIn 0.3s ease-out;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
@keyframes fadeIn {
|
|
264
|
-
from { opacity: 0; }
|
|
265
|
-
to { opacity: 1; }
|
|
266
|
-
}
|
|
267
|
-
`}</style>
|
|
268
|
-
</Dialog.Root>
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
function Capability({ icon, text }: { icon: string; text: string }) {
|
|
273
|
-
return (
|
|
274
|
-
<div className="flex items-center gap-2 bg-white/50 rounded-lg px-3 py-2">
|
|
275
|
-
<span className="text-lg">{icon}</span>
|
|
276
|
-
<span className="text-gray-700 text-xs">{text}</span>
|
|
277
|
-
</div>
|
|
278
|
-
);
|
|
279
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
-
import { ChevronDown } from "lucide-react";
|
|
4
|
-
|
|
5
|
-
import { cn } from "@/lib/utils";
|
|
6
|
-
|
|
7
|
-
const Accordion = AccordionPrimitive.Root;
|
|
8
|
-
|
|
9
|
-
const AccordionItem = React.forwardRef<
|
|
10
|
-
React.ElementRef<typeof AccordionPrimitive.Item>,
|
|
11
|
-
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
|
|
12
|
-
>(({ className, ...props }, ref) => (
|
|
13
|
-
<AccordionPrimitive.Item ref={ref} className={cn("border-b", className)} {...props} />
|
|
14
|
-
));
|
|
15
|
-
AccordionItem.displayName = "AccordionItem";
|
|
16
|
-
|
|
17
|
-
const AccordionTrigger = React.forwardRef<
|
|
18
|
-
React.ElementRef<typeof AccordionPrimitive.Trigger>,
|
|
19
|
-
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
|
|
20
|
-
>(({ className, children, ...props }, ref) => (
|
|
21
|
-
<AccordionPrimitive.Header className="flex">
|
|
22
|
-
<AccordionPrimitive.Trigger
|
|
23
|
-
ref={ref}
|
|
24
|
-
className={cn(
|
|
25
|
-
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
26
|
-
className,
|
|
27
|
-
)}
|
|
28
|
-
{...props}
|
|
29
|
-
>
|
|
30
|
-
{children}
|
|
31
|
-
<ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />
|
|
32
|
-
</AccordionPrimitive.Trigger>
|
|
33
|
-
</AccordionPrimitive.Header>
|
|
34
|
-
));
|
|
35
|
-
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
36
|
-
|
|
37
|
-
const AccordionContent = React.forwardRef<
|
|
38
|
-
React.ElementRef<typeof AccordionPrimitive.Content>,
|
|
39
|
-
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
|
|
40
|
-
>(({ className, children, ...props }, ref) => (
|
|
41
|
-
<AccordionPrimitive.Content
|
|
42
|
-
ref={ref}
|
|
43
|
-
className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
|
|
44
|
-
{...props}
|
|
45
|
-
>
|
|
46
|
-
<div className={cn("pb-4 pt-0", className)}>{children}</div>
|
|
47
|
-
</AccordionPrimitive.Content>
|
|
48
|
-
));
|
|
49
|
-
|
|
50
|
-
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
51
|
-
|
|
52
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
-
|
|
4
|
-
import { cn } from "@/lib/utils";
|
|
5
|
-
import { buttonVariants } from "@/components/ui/button";
|
|
6
|
-
|
|
7
|
-
const AlertDialog = AlertDialogPrimitive.Root;
|
|
8
|
-
|
|
9
|
-
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
10
|
-
|
|
11
|
-
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
12
|
-
|
|
13
|
-
const AlertDialogOverlay = React.forwardRef<
|
|
14
|
-
React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
|
|
15
|
-
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
|
|
16
|
-
>(({ className, ...props }, ref) => (
|
|
17
|
-
<AlertDialogPrimitive.Overlay
|
|
18
|
-
className={cn(
|
|
19
|
-
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
20
|
-
className,
|
|
21
|
-
)}
|
|
22
|
-
{...props}
|
|
23
|
-
ref={ref}
|
|
24
|
-
/>
|
|
25
|
-
));
|
|
26
|
-
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
27
|
-
|
|
28
|
-
const AlertDialogContent = React.forwardRef<
|
|
29
|
-
React.ElementRef<typeof AlertDialogPrimitive.Content>,
|
|
30
|
-
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
|
|
31
|
-
>(({ className, ...props }, ref) => (
|
|
32
|
-
<AlertDialogPortal>
|
|
33
|
-
<AlertDialogOverlay />
|
|
34
|
-
<AlertDialogPrimitive.Content
|
|
35
|
-
ref={ref}
|
|
36
|
-
className={cn(
|
|
37
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
38
|
-
className,
|
|
39
|
-
)}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
</AlertDialogPortal>
|
|
43
|
-
));
|
|
44
|
-
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
45
|
-
|
|
46
|
-
const AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
47
|
-
<div className={cn("flex flex-col space-y-2 text-center sm:text-left", className)} {...props} />
|
|
48
|
-
);
|
|
49
|
-
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
50
|
-
|
|
51
|
-
const AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
|
52
|
-
<div className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)} {...props} />
|
|
53
|
-
);
|
|
54
|
-
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
55
|
-
|
|
56
|
-
const AlertDialogTitle = React.forwardRef<
|
|
57
|
-
React.ElementRef<typeof AlertDialogPrimitive.Title>,
|
|
58
|
-
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
|
|
59
|
-
>(({ className, ...props }, ref) => (
|
|
60
|
-
<AlertDialogPrimitive.Title ref={ref} className={cn("text-lg font-semibold", className)} {...props} />
|
|
61
|
-
));
|
|
62
|
-
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
63
|
-
|
|
64
|
-
const AlertDialogDescription = React.forwardRef<
|
|
65
|
-
React.ElementRef<typeof AlertDialogPrimitive.Description>,
|
|
66
|
-
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
|
|
67
|
-
>(({ className, ...props }, ref) => (
|
|
68
|
-
<AlertDialogPrimitive.Description ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />
|
|
69
|
-
));
|
|
70
|
-
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
71
|
-
|
|
72
|
-
const AlertDialogAction = React.forwardRef<
|
|
73
|
-
React.ElementRef<typeof AlertDialogPrimitive.Action>,
|
|
74
|
-
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>
|
|
75
|
-
>(({ className, ...props }, ref) => (
|
|
76
|
-
<AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />
|
|
77
|
-
));
|
|
78
|
-
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
79
|
-
|
|
80
|
-
const AlertDialogCancel = React.forwardRef<
|
|
81
|
-
React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
|
|
82
|
-
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
|
|
83
|
-
>(({ className, ...props }, ref) => (
|
|
84
|
-
<AlertDialogPrimitive.Cancel
|
|
85
|
-
ref={ref}
|
|
86
|
-
className={cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className)}
|
|
87
|
-
{...props}
|
|
88
|
-
/>
|
|
89
|
-
));
|
|
90
|
-
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
91
|
-
|
|
92
|
-
export {
|
|
93
|
-
AlertDialog,
|
|
94
|
-
AlertDialogPortal,
|
|
95
|
-
AlertDialogOverlay,
|
|
96
|
-
AlertDialogTrigger,
|
|
97
|
-
AlertDialogContent,
|
|
98
|
-
AlertDialogHeader,
|
|
99
|
-
AlertDialogFooter,
|
|
100
|
-
AlertDialogTitle,
|
|
101
|
-
AlertDialogDescription,
|
|
102
|
-
AlertDialogAction,
|
|
103
|
-
AlertDialogCancel,
|
|
104
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
3
|
-
|
|
4
|
-
import { cn } from "@/lib/utils";
|
|
5
|
-
|
|
6
|
-
const alertVariants = cva(
|
|
7
|
-
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "bg-background text-foreground",
|
|
12
|
-
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
defaultVariants: {
|
|
16
|
-
variant: "default",
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
const Alert = React.forwardRef<
|
|
22
|
-
HTMLDivElement,
|
|
23
|
-
React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
|
|
24
|
-
>(({ className, variant, ...props }, ref) => (
|
|
25
|
-
<div ref={ref} role="alert" className={cn(alertVariants({ variant }), className)} {...props} />
|
|
26
|
-
));
|
|
27
|
-
Alert.displayName = "Alert";
|
|
28
|
-
|
|
29
|
-
const AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
|
|
30
|
-
({ className, children, ...props }, ref) => (
|
|
31
|
-
<h5 ref={ref} className={cn("mb-1 font-medium leading-none tracking-tight", className)} {...props}>
|
|
32
|
-
{children}
|
|
33
|
-
</h5>
|
|
34
|
-
),
|
|
35
|
-
);
|
|
36
|
-
AlertTitle.displayName = "AlertTitle";
|
|
37
|
-
|
|
38
|
-
const AlertDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
|
|
39
|
-
({ className, ...props }, ref) => (
|
|
40
|
-
<div ref={ref} className={cn("text-sm [&_p]:leading-relaxed", className)} {...props} />
|
|
41
|
-
),
|
|
42
|
-
);
|
|
43
|
-
AlertDescription.displayName = "AlertDescription";
|
|
44
|
-
|
|
45
|
-
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
-
|
|
4
|
-
import { cn } from "@/lib/utils";
|
|
5
|
-
|
|
6
|
-
const Avatar = React.forwardRef<
|
|
7
|
-
React.ElementRef<typeof AvatarPrimitive.Root>,
|
|
8
|
-
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
|
|
9
|
-
>(({ className, ...props }, ref) => (
|
|
10
|
-
<AvatarPrimitive.Root
|
|
11
|
-
ref={ref}
|
|
12
|
-
className={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)}
|
|
13
|
-
{...props}
|
|
14
|
-
/>
|
|
15
|
-
));
|
|
16
|
-
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
17
|
-
|
|
18
|
-
const AvatarImage = React.forwardRef<
|
|
19
|
-
React.ElementRef<typeof AvatarPrimitive.Image>,
|
|
20
|
-
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
|
|
21
|
-
>(({ className, ...props }, ref) => (
|
|
22
|
-
<AvatarPrimitive.Image ref={ref} className={cn("aspect-square h-full w-full", className)} {...props} />
|
|
23
|
-
));
|
|
24
|
-
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
25
|
-
|
|
26
|
-
const AvatarFallback = React.forwardRef<
|
|
27
|
-
React.ElementRef<typeof AvatarPrimitive.Fallback>,
|
|
28
|
-
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
|
|
29
|
-
>(({ className, ...props }, ref) => (
|
|
30
|
-
<AvatarPrimitive.Fallback
|
|
31
|
-
ref={ref}
|
|
32
|
-
className={cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)}
|
|
33
|
-
{...props}
|
|
34
|
-
/>
|
|
35
|
-
));
|
|
36
|
-
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
37
|
-
|
|
38
|
-
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
3
|
-
|
|
4
|
-
import { cn } from "@/lib/utils";
|
|
5
|
-
|
|
6
|
-
const badgeVariants = cva(
|
|
7
|
-
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
12
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
13
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
14
|
-
outline: "text-foreground",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
defaultVariants: {
|
|
18
|
-
variant: "default",
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
|
|
24
|
-
|
|
25
|
-
function Badge({ className, variant, ...props }: BadgeProps) {
|
|
26
|
-
return <div className={cn(badgeVariants({ variant }), className)} {...props} />;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { Badge, badgeVariants };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { useLoaderStore } from "@/stores/useLoaderStore";
|
|
3
|
-
import { cn } from "@/lib/utils";
|
|
4
|
-
|
|
5
|
-
export const BeeLoader: React.FC = () => {
|
|
6
|
-
const { isLoading, message } = useLoaderStore();
|
|
7
|
-
|
|
8
|
-
if (!isLoading) return null;
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<div className="fixed inset-0 z-[9999] flex flex-col items-center justify-center bg-background/60 backdrop-blur-md animate-in fade-in duration-300">
|
|
12
|
-
<div className="relative h-32 w-32 animate-bounce duration-[2000ms]">
|
|
13
|
-
{/* SVG Bee */}
|
|
14
|
-
<svg
|
|
15
|
-
viewBox="0 0 100 100"
|
|
16
|
-
className="h-full w-full drop-shadow-[0_0_15px_rgba(245,158,11,0.5)]"
|
|
17
|
-
>
|
|
18
|
-
{/* Wings */}
|
|
19
|
-
<g className="animate-[wing-flap_0.1s_infinite]">
|
|
20
|
-
<path
|
|
21
|
-
d="M50 40 C30 20 10 30 20 50 C30 70 50 60 50 40"
|
|
22
|
-
fill="rgba(255,255,255,0.7)"
|
|
23
|
-
stroke="white"
|
|
24
|
-
strokeWidth="1"
|
|
25
|
-
/>
|
|
26
|
-
<path
|
|
27
|
-
d="M50 40 C70 20 90 30 80 50 C70 70 50 60 50 40"
|
|
28
|
-
fill="rgba(255,255,255,0.7)"
|
|
29
|
-
stroke="white"
|
|
30
|
-
strokeWidth="1"
|
|
31
|
-
/>
|
|
32
|
-
</g>
|
|
33
|
-
|
|
34
|
-
{/* Body */}
|
|
35
|
-
<ellipse cx="50" cy="55" rx="20" ry="15" fill="#F59E0B" />
|
|
36
|
-
<path d="M40 45 Q50 40 60 45" fill="none" stroke="#1F2937" strokeWidth="2" strokeLinecap="round" />
|
|
37
|
-
<path d="M35 55 Q50 50 65 55" fill="none" stroke="#1F2937" strokeWidth="3" />
|
|
38
|
-
<path d="M40 65 Q50 60 60 65" fill="none" stroke="#1F2937" strokeWidth="2" />
|
|
39
|
-
|
|
40
|
-
{/* Head */}
|
|
41
|
-
<circle cx="68" cy="50" r="8" fill="#F59E0B" />
|
|
42
|
-
<circle cx="72" cy="48" r="1.5" fill="#1F2937" />
|
|
43
|
-
|
|
44
|
-
{/* Antennae */}
|
|
45
|
-
<path d="M70 42 Q75 35 80 38" fill="none" stroke="#1F2937" strokeWidth="1" />
|
|
46
|
-
<path d="M68 42 Q65 35 60 38" fill="none" stroke="#1F2937" strokeWidth="1" />
|
|
47
|
-
|
|
48
|
-
{/* Stinger */}
|
|
49
|
-
<path d="M30 55 L20 55" stroke="#1F2937" strokeWidth="2" strokeLinecap="round" />
|
|
50
|
-
</svg>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
{message && (
|
|
54
|
-
<p className="mt-8 text-lg font-medium tracking-wide text-primary animate-pulse italic">
|
|
55
|
-
{message}
|
|
56
|
-
</p>
|
|
57
|
-
)}
|
|
58
|
-
|
|
59
|
-
<style dangerouslySetInnerHTML={{
|
|
60
|
-
__html: `
|
|
61
|
-
@keyframes wing-flap {
|
|
62
|
-
0%, 100% { transform: scaleY(1); }
|
|
63
|
-
50% { transform: scaleY(0.5); }
|
|
64
|
-
}
|
|
65
|
-
`}} />
|
|
66
|
-
</div>
|
|
67
|
-
);
|
|
68
|
-
};
|