moi-computer 0.13.1-next.4 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/moi.mjs +10 -6
- package/dist/{chunk-k32585ne.js → chunk-828s864r.js} +61 -61
- package/dist/chunk-9ffaaaw3.css +1 -0
- package/dist/chunk-gh11h6dc.js +2 -0
- package/dist/chunk-hhgsmxsq.js +1 -0
- package/dist/chunk-ht9zmff2.js +5 -0
- package/dist/{chunk-0t8m1ehd.js → chunk-jqa4c92z.js} +2 -2
- package/dist/{chunk-qtkv7hp8.js → chunk-kkhswjz8.js} +2 -2
- package/dist/{chunk-wjbejzek.js → chunk-nqh3kx2x.js} +1 -1
- package/dist/chunk-rb2vsqvb.js +1 -0
- package/dist/{chunk-c8g5x288.js → chunk-t22yw8s6.js} +1 -1
- package/dist/chunk-yv6n9e3z.js +72 -0
- package/dist/dot-2bdkpg3k.png +0 -0
- package/dist/duet-3ab8xyzd.png +0 -0
- package/dist/grok-bot-yv07qj9f.png +0 -0
- package/dist/index.html +1 -1
- package/dist/instinct-ypmq6t0w.png +0 -0
- package/dist/muse-qr7zwsvf.png +0 -0
- package/package.json +39 -40
- package/runtime/applets/chunk-bzxakh65.js +2 -0
- package/runtime/applets/chunk-qhjskz2m.js +2 -0
- package/runtime/applets/collab.js +1 -0
- package/runtime/applets/moi.js +1 -0
- package/runtime/applets/rpc.js +2 -0
- package/runtime/assets/shadcn.css +629 -0
- package/runtime/assets/tw-animate.css +1 -0
- package/runtime/build-worker-entry.js +2 -0
- package/runtime/chunk-00rk365r.js +83 -0
- package/runtime/chunk-4wj1jzhr.js +3 -0
- package/runtime/chunk-5egvk1rz.js +3 -0
- package/runtime/chunk-7c0zbz74.js +3 -0
- package/runtime/chunk-8fvgvm56.js +2 -0
- package/runtime/chunk-c3qyet60.js +128 -0
- package/runtime/chunk-ewc55jga.js +32623 -0
- package/runtime/chunk-gbkjshyt.js +26 -0
- package/runtime/chunk-ggphq7nk.js +66 -0
- package/runtime/chunk-h2bwhk81.js +3 -0
- package/runtime/chunk-hjzfk1cr.js +3 -0
- package/runtime/chunk-j0nd7kw0.js +52 -0
- package/runtime/chunk-jb63ns1z.js +2 -0
- package/runtime/chunk-k049dtaq.js +3 -0
- package/runtime/chunk-kjp60rqs.js +3 -0
- package/runtime/chunk-q06m17nb.js +3 -0
- package/runtime/chunk-r5s8rm8n.js +3 -0
- package/runtime/chunk-sdyqhxe1.js +10 -0
- package/runtime/chunk-w1fx9tsc.js +3 -0
- package/runtime/chunk-w6ksnv8y.js +2 -0
- package/runtime/chunk-wvarpvem.js +78 -0
- package/runtime/chunk-zm7k0v1c.js +3 -0
- package/runtime/chunk-zwvtkb81.js +139 -0
- package/runtime/cli.js +246 -0
- package/runtime/functions-worker.js +2 -0
- package/runtime/gateway-client.js +2 -0
- package/runtime/third-party-notices.txt +6830 -0
- package/runtime/worker.js +2 -0
- package/runtime/xdg-open +1267 -0
- package/bunfig.toml +0 -7
- package/client/AGENTS.md +0 -40
- package/client/api/app-config.ts +0 -58
- package/client/api/http.ts +0 -44
- package/client/api/query-client.ts +0 -5
- package/client/api/query-options.ts +0 -6
- package/client/api/workspace-keys.ts +0 -18
- package/client/app/app-provider.tsx +0 -39
- package/client/app/app-router.tsx +0 -57
- package/client/app/routes/home-route.tsx +0 -27
- package/client/app/routes/onboarding-route.tsx +0 -11
- package/client/app/routes/settings-route.tsx +0 -10
- package/client/app/routes/workspace-registration.tsx +0 -68
- package/client/app/routes/workspace-route.tsx +0 -127
- package/client/app/shell/sidebar-layout.tsx +0 -247
- package/client/assets/claude.svg +0 -3
- package/client/assets/favicon.png +0 -0
- package/client/assets/floppy-disk.webp +0 -0
- package/client/assets/hermes.png +0 -0
- package/client/assets/mcp/.gitkeep +0 -0
- package/client/assets/mcp/airtable.png +0 -0
- package/client/assets/mcp/apollo.png +0 -0
- package/client/assets/mcp/asana.png +0 -0
- package/client/assets/mcp/atlassian.png +0 -0
- package/client/assets/mcp/box.png +0 -0
- package/client/assets/mcp/chrome.svg +0 -33
- package/client/assets/mcp/clickup.png +0 -0
- package/client/assets/mcp/cloudflare.png +0 -0
- package/client/assets/mcp/context7.png +0 -0
- package/client/assets/mcp/datadog.png +0 -0
- package/client/assets/mcp/discord.png +0 -0
- package/client/assets/mcp/dropbox.png +0 -0
- package/client/assets/mcp/elevenlabs.png +0 -0
- package/client/assets/mcp/exa.png +0 -0
- package/client/assets/mcp/figma.png +0 -0
- package/client/assets/mcp/firecrawl.png +0 -0
- package/client/assets/mcp/github.png +0 -0
- package/client/assets/mcp/gitlab.png +0 -0
- package/client/assets/mcp/gmail.png +0 -0
- package/client/assets/mcp/googlecalendar.png +0 -0
- package/client/assets/mcp/googledrive.png +0 -0
- package/client/assets/mcp/grafana.png +0 -0
- package/client/assets/mcp/granola.png +0 -0
- package/client/assets/mcp/hubspot.png +0 -0
- package/client/assets/mcp/huggingface.png +0 -0
- package/client/assets/mcp/intercom.png +0 -0
- package/client/assets/mcp/linear.png +0 -0
- package/client/assets/mcp/monday.png +0 -0
- package/client/assets/mcp/mongodb.png +0 -0
- package/client/assets/mcp/neon.png +0 -0
- package/client/assets/mcp/notion.png +0 -0
- package/client/assets/mcp/paper.png +0 -0
- package/client/assets/mcp/paypal.png +0 -0
- package/client/assets/mcp/perplexity.png +0 -0
- package/client/assets/mcp/postgresql.png +0 -0
- package/client/assets/mcp/posthog.png +0 -0
- package/client/assets/mcp/puppeteer.png +0 -0
- package/client/assets/mcp/railway.png +0 -0
- package/client/assets/mcp/redis.png +0 -0
- package/client/assets/mcp/salesforce.png +0 -0
- package/client/assets/mcp/sentry.png +0 -0
- package/client/assets/mcp/shopify.png +0 -0
- package/client/assets/mcp/slack.png +0 -0
- package/client/assets/mcp/snowflake.png +0 -0
- package/client/assets/mcp/stripe.png +0 -0
- package/client/assets/mcp/supabase.png +0 -0
- package/client/assets/mcp/telegram.png +0 -0
- package/client/assets/mcp/twilio.png +0 -0
- package/client/assets/mcp/vercel.png +0 -0
- package/client/assets/mcp/zapier.png +0 -0
- package/client/assets/moi-logo.svg +0 -11
- package/client/assets/openai.svg +0 -1
- package/client/assets/openclaw.svg +0 -22
- package/client/assets.d.ts +0 -14
- package/client/components/shared/agent-blobatar.tsx +0 -93
- package/client/components/shared/bottom-panel.tsx +0 -65
- package/client/components/shared/composer.tsx +0 -125
- package/client/components/shared/led-logo.tsx +0 -181
- package/client/components/shared/panel-header.tsx +0 -16
- package/client/components/shared/reorderable-list.tsx +0 -204
- package/client/components/shared/screen-shell.tsx +0 -23
- package/client/components/shared/ultrafast-icon.tsx +0 -61
- package/client/components/shared/workspace-icon.tsx +0 -83
- package/client/components/ui/alert-dialog.tsx +0 -1
- package/client/components/ui/button.tsx +0 -1
- package/client/components/ui/checkbox.tsx +0 -1
- package/client/components/ui/collapsible.tsx +0 -1
- package/client/components/ui/dialog.tsx +0 -1
- package/client/components/ui/dropdown-menu.tsx +0 -1
- package/client/components/ui/hover-card.tsx +0 -1
- package/client/components/ui/inline-input.tsx +0 -84
- package/client/components/ui/input.tsx +0 -1
- package/client/components/ui/popover.tsx +0 -1
- package/client/components/ui/resizable.tsx +0 -1
- package/client/components/ui/skeleton.tsx +0 -1
- package/client/components/ui/slider.tsx +0 -1
- package/client/components/ui/spinner.tsx +0 -1
- package/client/components/ui/switch.tsx +0 -1
- package/client/components/ui/tabs.tsx +0 -1
- package/client/components/ui/textarea.tsx +0 -1
- package/client/components/ui/toast.tsx +0 -220
- package/client/components/ui/tooltip.tsx +0 -1
- package/client/dev/index.html +0 -43
- package/client/dev/index.ts +0 -15
- package/client/externalize-react.ts +0 -41
- package/client/features/account/account-menu.tsx +0 -96
- package/client/features/account/account-provider.tsx +0 -93
- package/client/features/account/account-test-utils.tsx +0 -310
- package/client/features/account/api.ts +0 -67
- package/client/features/account/profile-actions.ts +0 -29
- package/client/features/app-settings/api.ts +0 -33
- package/client/features/app-settings/avatar-upload.tsx +0 -62
- package/client/features/app-settings/general-settings.tsx +0 -39
- package/client/features/app-settings/profile-settings.tsx +0 -105
- package/client/features/app-settings/settings-page.tsx +0 -45
- package/client/features/app-settings/settings-section.tsx +0 -26
- package/client/features/applets/api.ts +0 -38
- package/client/features/applets/applet-cache.ts +0 -95
- package/client/features/applets/applet-container.tsx +0 -33
- package/client/features/applets/applet-log.ts +0 -81
- package/client/features/applets/applet-runtime.ts +0 -325
- package/client/features/applets/applet-styles.ts +0 -81
- package/client/features/applets/applet-thumbnail.ts +0 -294
- package/client/features/applets/use-applet.ts +0 -210
- package/client/features/applets/widget-error-boundary.tsx +0 -62
- package/client/features/applets/widget-shell.tsx +0 -56
- package/client/features/chat/applet-chat-intents.ts +0 -173
- package/client/features/chat/chat-panel.tsx +0 -326
- package/client/features/chat/chat-popup.tsx +0 -175
- package/client/features/chat/chat-send.ts +0 -259
- package/client/features/chat/chat-store.ts +0 -328
- package/client/features/chat/composer/attachments/attachment-chip.tsx +0 -99
- package/client/features/chat/composer/attachments/draft-attachments.ts +0 -185
- package/client/features/chat/composer/attachments/drawing-attachment-chip.tsx +0 -37
- package/client/features/chat/composer/attachments/file-attachment-chip.tsx +0 -22
- package/client/features/chat/composer/attachments/text-attachment-chip.tsx +0 -11
- package/client/features/chat/composer/attachments/types.ts +0 -25
- package/client/features/chat/composer/attachments/uploads.ts +0 -26
- package/client/features/chat/composer/banners/composer-banner.tsx +0 -16
- package/client/features/chat/composer/banners/error-banner.tsx +0 -36
- package/client/features/chat/composer/banners/skill-update-banner.tsx +0 -93
- package/client/features/chat/composer/chat-composer.tsx +0 -290
- package/client/features/chat/composer/model-order.ts +0 -110
- package/client/features/chat/composer/model-picker.tsx +0 -408
- package/client/features/chat/composer/use-workspace-composer-state.tsx +0 -69
- package/client/features/chat/composer/use-workspace-skill-updates.ts +0 -160
- package/client/features/chat/connection/chat-connection.ts +0 -64
- package/client/features/chat/connection/chat-frames.ts +0 -153
- package/client/features/chat/messages/chat-empty-state.tsx +0 -294
- package/client/features/chat/messages/chat-prompt-bubbles.tsx +0 -72
- package/client/features/chat/messages/fork-history.ts +0 -14
- package/client/features/chat/messages/group-turns.ts +0 -74
- package/client/features/chat/messages/interleave-notices.ts +0 -80
- package/client/features/chat/messages/markdown-content.tsx +0 -89
- package/client/features/chat/messages/preview-turn.ts +0 -37
- package/client/features/chat/messages/shimmer-text.tsx +0 -20
- package/client/features/chat/messages/tool-group/code-block.tsx +0 -41
- package/client/features/chat/messages/tool-group/collapse.tsx +0 -28
- package/client/features/chat/messages/tool-group/detect.ts +0 -93
- package/client/features/chat/messages/tool-group/fixtures.ts +0 -309
- package/client/features/chat/messages/tool-group/format/claude.ts +0 -49
- package/client/features/chat/messages/tool-group/format/codex.ts +0 -130
- package/client/features/chat/messages/tool-group/format/hermes.ts +0 -69
- package/client/features/chat/messages/tool-group/format/index.ts +0 -34
- package/client/features/chat/messages/tool-group/format/mcp.ts +0 -68
- package/client/features/chat/messages/tool-group/format/openclaw.ts +0 -120
- package/client/features/chat/messages/tool-group/format/shared.ts +0 -49
- package/client/features/chat/messages/tool-group/format/shell.ts +0 -162
- package/client/features/chat/messages/tool-group/index.ts +0 -9
- package/client/features/chat/messages/tool-group/read-image-preview.tsx +0 -46
- package/client/features/chat/messages/tool-group/subagent-card.tsx +0 -138
- package/client/features/chat/messages/tool-group/timeline-row.tsx +0 -159
- package/client/features/chat/messages/tool-group/tool-call-group.tsx +0 -279
- package/client/features/chat/messages/tool-group/tool-output.tsx +0 -125
- package/client/features/chat/messages/turn-view.tsx +0 -270
- package/client/features/chat/messages/use-stick-to-bottom.ts +0 -96
- package/client/features/chat/messages/user-message-bubble.tsx +0 -63
- package/client/features/chat/sessions/api.ts +0 -193
- package/client/features/chat/sessions/chat-selector.tsx +0 -399
- package/client/features/chat/sessions/session-view.ts +0 -53
- package/client/features/chat/sessions/use-selected-session.ts +0 -171
- package/client/features/chat/use-chat.ts +0 -229
- package/client/features/collab/applet-api.ts +0 -35
- package/client/features/collab/components/cursors.tsx +0 -241
- package/client/features/collab/components/presence-avatars.tsx +0 -74
- package/client/features/collab/components/presence-frame.tsx +0 -122
- package/client/features/collab/components/presence-group.tsx +0 -31
- package/client/features/collab/components/presence-helpers.ts +0 -50
- package/client/features/collab/components/user-avatar-group.tsx +0 -35
- package/client/features/collab/components/user-avatar.tsx +0 -65
- package/client/features/collab/components/user.tsx +0 -69
- package/client/features/collab/host-state.ts +0 -160
- package/client/features/collab/index.ts +0 -5
- package/client/features/collab/local-user.ts +0 -46
- package/client/features/collab/members/api.ts +0 -17
- package/client/features/collab/members/hooks.ts +0 -97
- package/client/features/collab/members/store.ts +0 -148
- package/client/features/collab/members/types.ts +0 -55
- package/client/features/collab/presence/client.ts +0 -242
- package/client/features/collab/presence/hooks.tsx +0 -160
- package/client/features/collab/presence/presence-publisher.ts +0 -30
- package/client/features/collab/presence/presence-target.ts +0 -8
- package/client/features/collab/presence/provider.tsx +0 -74
- package/client/features/collab/presence/store.ts +0 -156
- package/client/features/collab/presence/users.ts +0 -87
- package/client/features/collab/proxy-user.ts +0 -28
- package/client/features/collab/sharing/agent-invite.tsx +0 -30
- package/client/features/collab/sharing/workspace-members.tsx +0 -269
- package/client/features/collab/sharing/workspace-sharing-menu.tsx +0 -179
- package/client/features/collab/testing/component-fixtures.tsx +0 -54
- package/client/features/collab/testing/fake-engine.ts +0 -120
- package/client/features/connectors/api.ts +0 -25
- package/client/features/connectors/icon-mcp.tsx +0 -21
- package/client/features/connectors/mcp-icons.ts +0 -183
- package/client/features/connectors/mcp-server-cards.tsx +0 -105
- package/client/features/connectors/read-connectors.ts +0 -35
- package/client/features/demo/demo-dialog.tsx +0 -194
- package/client/features/dev/blobatar-shapes-page.tsx +0 -344
- package/client/features/dev/chat-states-fixtures.ts +0 -755
- package/client/features/dev/chat-states-page.tsx +0 -476
- package/client/features/dev/collab/collab-page.tsx +0 -24
- package/client/features/dev/collab/collab-playground.tsx +0 -614
- package/client/features/dev/collab/local-user-settings.tsx +0 -120
- package/client/features/dev/collab/playground-room.ts +0 -33
- package/client/features/dev/dev-index-page.tsx +0 -83
- package/client/features/dev/dev-routes.tsx +0 -43
- package/client/features/dev/harness-debug-page.tsx +0 -607
- package/client/features/dev/onboarding-preview-page.tsx +0 -76
- package/client/features/dev/texture-lab-page.tsx +0 -149
- package/client/features/dev/tool-calls-page.tsx +0 -79
- package/client/features/dev/ui-components/ui-component-previews.tsx +0 -855
- package/client/features/dev/ui-components/ui-components-page.tsx +0 -60
- package/client/features/dev/workspace-setup-mocks.ts +0 -103
- package/client/features/dev/workspace-setup-page.tsx +0 -11
- package/client/features/dev/workspace-setup-preview.tsx +0 -249
- package/client/features/drawings/capture-element.ts +0 -57
- package/client/features/drawings/drawing-layer.tsx +0 -49
- package/client/features/drawings/drawing-toolbar.tsx +0 -95
- package/client/features/drawings/use-chat-annotation.ts +0 -228
- package/client/features/drawings/use-drawing-layer.ts +0 -756
- package/client/features/drawings/use-view-sketch.ts +0 -154
- package/client/features/harness/api.ts +0 -69
- package/client/features/harness/device-login-steps.tsx +0 -103
- package/client/features/harness/harness-login-panel.tsx +0 -232
- package/client/features/harness/harness-presentation.ts +0 -15
- package/client/features/harness/harness-selector.tsx +0 -119
- package/client/features/harness/use-harness-login.ts +0 -77
- package/client/features/home/api.ts +0 -135
- package/client/features/home/home-logo.tsx +0 -344
- package/client/features/home/home-page.tsx +0 -305
- package/client/features/home/shared-workspaces.tsx +0 -70
- package/client/features/home/workspace-invitations.tsx +0 -101
- package/client/features/home/workspace-preview.tsx +0 -213
- package/client/features/identity/host-api.ts +0 -35
- package/client/features/identity/store.ts +0 -26
- package/client/features/identity/types.ts +0 -41
- package/client/features/identity/use-identity.ts +0 -6
- package/client/features/onboarding/agent-setup-step.tsx +0 -57
- package/client/features/onboarding/api.ts +0 -42
- package/client/features/onboarding/onboarding-idea-disk.tsx +0 -129
- package/client/features/onboarding/onboarding-page.tsx +0 -33
- package/client/features/onboarding/onboarding-screen.tsx +0 -20
- package/client/features/onboarding/onboarding-status.tsx +0 -24
- package/client/features/onboarding/workspace-setup-step.tsx +0 -239
- package/client/features/overview/api.ts +0 -28
- package/client/features/overview/default/registry.tsx +0 -34
- package/client/features/overview/default/views-widget.tsx +0 -246
- package/client/features/overview/grid.ts +0 -77
- package/client/features/overview/hidden-panel.tsx +0 -111
- package/client/features/overview/overview.tsx +0 -299
- package/client/features/overview/use-grid-reconcile.ts +0 -94
- package/client/features/overview/widget-canvas.tsx +0 -166
- package/client/features/overview/widget-frame.tsx +0 -77
- package/client/features/overview/workspace-name.tsx +0 -55
- package/client/features/scratchpad/scratch-session.ts +0 -71
- package/client/features/scratchpad/scratchpad-controls.tsx +0 -516
- package/client/features/scratchpad/scratchpad.tsx +0 -360
- package/client/features/scratchpad/use-scratchpad-snapshot.tsx +0 -133
- package/client/features/update/api.ts +0 -35
- package/client/features/update/update-control.tsx +0 -102
- package/client/features/views/api.ts +0 -188
- package/client/features/views/pending-view-screen.tsx +0 -303
- package/client/features/views/use-view-actions.ts +0 -119
- package/client/features/views/use-view-drafts.ts +0 -88
- package/client/features/views/view-manager.tsx +0 -293
- package/client/features/views/view-presentation.ts +0 -12
- package/client/features/views/view-residency.ts +0 -77
- package/client/features/views/view-submission.ts +0 -56
- package/client/features/workspace/add/api.ts +0 -61
- package/client/features/workspace/add/create-workspace-dialog.tsx +0 -230
- package/client/features/workspace/add/import-workspace-dialog.tsx +0 -81
- package/client/features/workspace/add/use-workspace-import.ts +0 -61
- package/client/features/workspace/add/workspace-agent-options.ts +0 -53
- package/client/features/workspace/add/workspace-agent-selector.tsx +0 -96
- package/client/features/workspace/add/workspace-dialog-content.tsx +0 -22
- package/client/features/workspace/api.ts +0 -180
- package/client/features/workspace/harness-transition.ts +0 -81
- package/client/features/workspace/moi-context.ts +0 -129
- package/client/features/workspace/remote.ts +0 -34
- package/client/features/workspace/settings/api.ts +0 -112
- package/client/features/workspace/settings/connectors-settings.tsx +0 -110
- package/client/features/workspace/settings/environment-settings.tsx +0 -149
- package/client/features/workspace/settings/general-settings.tsx +0 -180
- package/client/features/workspace/settings/icon-picker-options.ts +0 -30
- package/client/features/workspace/settings/settings-layout.tsx +0 -53
- package/client/features/workspace/settings/use-env-vars.ts +0 -20
- package/client/features/workspace/settings/workspace-icon-picker.tsx +0 -318
- package/client/features/workspace/settings/workspace-settings-dialog.tsx +0 -65
- package/client/features/workspace/setup/workspace-login-state.tsx +0 -56
- package/client/features/workspace/setup/workspace-recovery-states.tsx +0 -142
- package/client/features/workspace/setup/workspace-setup.tsx +0 -98
- package/client/features/workspace/setup/workspace-welcome-state.tsx +0 -81
- package/client/features/workspace/tab-resolution.ts +0 -32
- package/client/features/workspace/theme-panel.tsx +0 -191
- package/client/features/workspace/unavailable-page.tsx +0 -21
- package/client/features/workspace/use-fits-split-layout.ts +0 -69
- package/client/features/workspace/use-workspace-navigation.ts +0 -265
- package/client/features/workspace/use-workspace-socket.ts +0 -51
- package/client/features/workspace/workspace-content.tsx +0 -597
- package/client/features/workspace/workspace-context.tsx +0 -21
- package/client/features/workspace/workspace-frame.tsx +0 -64
- package/client/features/workspace/workspace-identity.tsx +0 -40
- package/client/features/workspace/workspace-layout-context.tsx +0 -156
- package/client/features/workspace/workspace-menu.tsx +0 -67
- package/client/features/workspace/workspace-pane.tsx +0 -22
- package/client/features/workspace/workspace-pending-screen.tsx +0 -26
- package/client/features/workspace/workspace-preferences.ts +0 -91
- package/client/features/workspace/workspace-presentation.tsx +0 -35
- package/client/features/workspace/workspace-screen.tsx +0 -28
- package/client/features/workspace/workspace-split-layout.tsx +0 -116
- package/client/features/workspace/workspace-state.ts +0 -206
- package/client/features/workspace/workspace-tabs.tsx +0 -233
- package/client/features/workspace/workspace-test-utils.ts +0 -23
- package/client/global.d.ts +0 -5
- package/client/index.css +0 -247
- package/client/index.html +0 -81
- package/client/index.tsx +0 -45
- package/client/lib/agent-availability.ts +0 -14
- package/client/lib/browser-tab-id.ts +0 -4
- package/client/lib/cn.ts +0 -6
- package/client/lib/flags.ts +0 -11
- package/client/lib/identity-icon-registry.ts +0 -150
- package/client/lib/rate-limit.ts +0 -77
- package/client/lib/use-latest-ref.ts +0 -11
- package/client/lib/user-display-name.ts +0 -6
- package/client/lib/ws-url.ts +0 -10
- package/client/main.tsx +0 -43
- package/client/runtime/app-context.ts +0 -20
- package/client/runtime/app-events.ts +0 -75
- package/client/runtime/hmr-watchdog.ts +0 -39
- package/client/runtime/reconnecting-socket.ts +0 -115
- package/client/runtime/use-client-events.ts +0 -69
- package/client/runtime/workspace-theme.ts +0 -175
- package/client/store/ui.ts +0 -94
- package/client/store/workspace-session.ts +0 -30
- package/client/structured-clone-shim.ts +0 -14
- package/client/tailwind-config.ts +0 -43
- package/dist/chunk-851bx8ss.js +0 -72
- package/dist/chunk-cty37f3v.js +0 -1
- package/dist/chunk-dy6f6h3e.js +0 -5
- package/dist/chunk-j6928pwm.js +0 -1
- package/dist/chunk-kffcah9w.css +0 -1
- package/dist/chunk-rh58dc0y.js +0 -2
- package/lib/applet-selector.ts +0 -24
- package/lib/attachment-note.ts +0 -66
- package/lib/chat-title.ts +0 -11
- package/lib/collab/colors.ts +0 -30
- package/lib/collab/protocol.ts +0 -84
- package/lib/collab/types.ts +0 -52
- package/lib/default-widgets.ts +0 -32
- package/lib/events.ts +0 -61
- package/lib/format.ts +0 -348
- package/lib/harness-instructions.ts +0 -30
- package/lib/harness-types.ts +0 -13
- package/lib/identity-icons.ts +0 -73
- package/lib/ids.ts +0 -33
- package/lib/message-attachments.ts +0 -40
- package/lib/moi-attachments.ts +0 -204
- package/lib/moi-context.ts +0 -305
- package/lib/navigation.ts +0 -65
- package/lib/onboarding.ts +0 -41
- package/lib/scratchpad-skew.ts +0 -64
- package/lib/session-drafts.ts +0 -10
- package/lib/speed-mode.ts +0 -5
- package/lib/system-messages.ts +0 -241
- package/lib/themes.ts +0 -241
- package/lib/types.ts +0 -776
- package/lib/update.ts +0 -2
- package/lib/view-build-directives.ts +0 -11
- package/lib/workspace-config.ts +0 -48
- package/lib/workspace-icon.ts +0 -20
- package/lib/workspace-layout.ts +0 -15
- package/lib/workspace-name.ts +0 -17
- package/lib/workspace-tabs.ts +0 -29
- package/server/AGENTS.md +0 -17
- package/server/README.md +0 -123
- package/server/agent-caller.ts +0 -16
- package/server/agent-launcher.ts +0 -27
- package/server/api/harnesses.ts +0 -79
- package/server/api/index.ts +0 -1351
- package/server/api/onboarding.ts +0 -46
- package/server/app-config.ts +0 -264
- package/server/app-settings.ts +0 -69
- package/server/applets/api-base.ts +0 -4
- package/server/applets/applet-css.ts +0 -55
- package/server/applets/build-applet.ts +0 -475
- package/server/applets/build-worker.ts +0 -179
- package/server/applets/bundle-queue.ts +0 -19
- package/server/applets/config.ts +0 -226
- package/server/applets/declarations.ts +0 -45
- package/server/applets/dependencies.ts +0 -206
- package/server/applets/functions-worker.ts +0 -121
- package/server/applets/functions.ts +0 -392
- package/server/applets/index.ts +0 -504
- package/server/applets/log.ts +0 -149
- package/server/applets/runtime/collab.ts +0 -94
- package/server/applets/runtime/moi.ts +0 -35
- package/server/applets/runtime/rpc.ts +0 -15
- package/server/applets/thumbnails.ts +0 -200
- package/server/applets/typecheck.ts +0 -100
- package/server/applets/ui-components.ts +0 -241
- package/server/applets/view-source.ts +0 -73
- package/server/applets/views.ts +0 -323
- package/server/applets/widgets.ts +0 -181
- package/server/cli/applet-selector.ts +0 -19
- package/server/cli/args.ts +0 -5
- package/server/cli/colors.ts +0 -20
- package/server/cli/commands/bundle.ts +0 -119
- package/server/cli/commands/call-server-fn.ts +0 -42
- package/server/cli/commands/check.ts +0 -53
- package/server/cli/commands/config.ts +0 -120
- package/server/cli/commands/debug.ts +0 -119
- package/server/cli/commands/env.ts +0 -162
- package/server/cli/commands/hermes.ts +0 -149
- package/server/cli/commands/init.ts +0 -323
- package/server/cli/commands/navigate.ts +0 -35
- package/server/cli/commands/openclaw.ts +0 -168
- package/server/cli/commands/refresh.ts +0 -45
- package/server/cli/commands/remote.ts +0 -330
- package/server/cli/commands/scratch.ts +0 -496
- package/server/cli/commands/service.ts +0 -298
- package/server/cli/commands/skill.ts +0 -121
- package/server/cli/commands/start.ts +0 -112
- package/server/cli/commands/status.ts +0 -80
- package/server/cli/commands/tabs.ts +0 -36
- package/server/cli/commands/theme.ts +0 -192
- package/server/cli/commands/ui-components.ts +0 -15
- package/server/cli/commands/update.ts +0 -192
- package/server/cli/commands/version.ts +0 -9
- package/server/cli/commands/views.ts +0 -87
- package/server/cli/control.ts +0 -120
- package/server/cli/env.ts +0 -259
- package/server/cli/index.ts +0 -175
- package/server/cli/pc.ts +0 -20
- package/server/cli/provider.ts +0 -25
- package/server/cli/remote-command.ts +0 -77
- package/server/cli/remote-control.ts +0 -73
- package/server/cli/remote-operations.ts +0 -247
- package/server/cli/server-version.ts +0 -16
- package/server/cli/server.ts +0 -93
- package/server/cli/ui-components.ts +0 -294
- package/server/cli/ui.ts +0 -52
- package/server/cli.ts +0 -3
- package/server/collab/cloudflare-access.ts +0 -78
- package/server/collab/config.ts +0 -13
- package/server/collab/manager.ts +0 -413
- package/server/collab/service.ts +0 -136
- package/server/collab/skill/index.ts +0 -7
- package/server/collab/worker-messages.ts +0 -10
- package/server/collab/worker.ts +0 -52
- package/server/constants.ts +0 -13
- package/server/control-client.ts +0 -124
- package/server/control.ts +0 -572
- package/server/data-dir.ts +0 -22
- package/server/debug.ts +0 -10
- package/server/events.ts +0 -25
- package/server/harness/README.md +0 -381
- package/server/harness/acp/NOTES.md +0 -426
- package/server/harness/acp/adapter.ts +0 -206
- package/server/harness/acp/archived.ts +0 -88
- package/server/harness/acp/client.ts +0 -329
- package/server/harness/acp/discovery.ts +0 -127
- package/server/harness/acp/model-state.ts +0 -57
- package/server/harness/acp/run-durations.ts +0 -68
- package/server/harness/acp/session.ts +0 -786
- package/server/harness/acp/wire.ts +0 -132
- package/server/harness/auth.ts +0 -272
- package/server/harness/claude-code/NOTES.md +0 -651
- package/server/harness/claude-code/adapter.ts +0 -876
- package/server/harness/claude-code/auth.ts +0 -178
- package/server/harness/claude-code/cli.ts +0 -42
- package/server/harness/claude-code/git-worktree.ts +0 -35
- package/server/harness/claude-code/index.ts +0 -171
- package/server/harness/claude-code/mcp.ts +0 -152
- package/server/harness/claude-code/models.ts +0 -102
- package/server/harness/claude-code/permissions.ts +0 -34
- package/server/harness/claude-code/run-action.ts +0 -123
- package/server/harness/claude-code/session-title.ts +0 -104
- package/server/harness/claude-code/session.ts +0 -969
- package/server/harness/claude-code/sessions.ts +0 -153
- package/server/harness/codex/NOTES.md +0 -259
- package/server/harness/codex/adapter.ts +0 -633
- package/server/harness/codex/auth.ts +0 -140
- package/server/harness/codex/client.ts +0 -439
- package/server/harness/codex/connectors.ts +0 -92
- package/server/harness/codex/discovery.ts +0 -106
- package/server/harness/codex/index.ts +0 -107
- package/server/harness/codex/pagination.ts +0 -27
- package/server/harness/codex/permissions.ts +0 -80
- package/server/harness/codex/probe.ts +0 -183
- package/server/harness/codex/run-action.ts +0 -93
- package/server/harness/codex/session-title.ts +0 -147
- package/server/harness/codex/session.ts +0 -1196
- package/server/harness/codex/status.ts +0 -31
- package/server/harness/codex/thread-list.ts +0 -78
- package/server/harness/codex/transport.ts +0 -191
- package/server/harness/command.ts +0 -45
- package/server/harness/debug.ts +0 -57
- package/server/harness/detect.ts +0 -164
- package/server/harness/executable.ts +0 -125
- package/server/harness/fork.ts +0 -14
- package/server/harness/hermes/NOTES.md +0 -833
- package/server/harness/hermes/discovery.ts +0 -175
- package/server/harness/hermes/index.ts +0 -167
- package/server/harness/hermes/models.ts +0 -99
- package/server/harness/install.ts +0 -49
- package/server/harness/openclaw/NOTES.md +0 -749
- package/server/harness/openclaw/adapter.ts +0 -336
- package/server/harness/openclaw/compat.ts +0 -95
- package/server/harness/openclaw/cron-view.ts +0 -78
- package/server/harness/openclaw/discovery.ts +0 -456
- package/server/harness/openclaw/gateway.ts +0 -467
- package/server/harness/openclaw/index.ts +0 -125
- package/server/harness/openclaw/session.ts +0 -1512
- package/server/harness/openclaw/strip.ts +0 -184
- package/server/harness/openclaw/thinking.ts +0 -150
- package/server/harness/registry.ts +0 -39
- package/server/harness/run-action.ts +0 -85
- package/server/harness/session-title.ts +0 -59
- package/server/harness/shell-path.ts +0 -89
- package/server/harness/types.ts +0 -170
- package/server/navigation-relay.ts +0 -110
- package/server/onboarding/brief.ts +0 -29
- package/server/onboarding/ideas.ts +0 -48
- package/server/onboarding/jobs.ts +0 -291
- package/server/open-browser.ts +0 -7
- package/server/operations/commands.ts +0 -46
- package/server/operations/files.ts +0 -148
- package/server/operations/server.ts +0 -206
- package/server/remote/agent.ts +0 -103
- package/server/remote/broker-client.ts +0 -76
- package/server/remote/broker.ts +0 -81
- package/server/remote/client.ts +0 -725
- package/server/remote/errors.ts +0 -2
- package/server/remote/routes.ts +0 -121
- package/server/remote/workspace.ts +0 -34
- package/server/scratchpad/assets.ts +0 -258
- package/server/scratchpad/document.ts +0 -312
- package/server/scratchpad/executor.ts +0 -499
- package/server/scratchpad/relay.ts +0 -44
- package/server/scratchpad/shape-defaults.ts +0 -82
- package/server/server-cwd.ts +0 -23
- package/server/service.ts +0 -800
- package/server/sessions/archive.ts +0 -23
- package/server/sessions/attachment-message.ts +0 -95
- package/server/sessions/config.ts +0 -45
- package/server/sessions/lifecycle.ts +0 -19
- package/server/sessions/pending-views.ts +0 -158
- package/server/sessions/selected.ts +0 -113
- package/server/sessions/send-message.ts +0 -102
- package/server/sessions/store.ts +0 -54
- package/server/sessions/view-sessions.ts +0 -192
- package/server/skills/locations.ts +0 -82
- package/server/skills/lock.ts +0 -29
- package/server/skills/template.ts +0 -94
- package/server/skills/update.ts +0 -94
- package/server/skills/version.ts +0 -129
- package/server/skills/workspace.ts +0 -121
- package/server/state.ts +0 -40
- package/server/static.ts +0 -25
- package/server/status.ts +0 -110
- package/server/tldraw-package.d.ts +0 -4
- package/server/update.ts +0 -429
- package/server/uploads.ts +0 -290
- package/server/vendor.ts +0 -63
- package/server/version.ts +0 -41
- package/server/web.ts +0 -350
- package/server/workspace-state/file.ts +0 -181
- package/server/workspace-state/index.ts +0 -169
- package/server/workspace-state/lock.ts +0 -42
- package/server/workspace-state/types.ts +0 -16
- package/server/workspaces/api.ts +0 -24
- package/server/workspaces/change-harness.ts +0 -77
- package/server/workspaces/config.ts +0 -42
- package/server/workspaces/env-apply.ts +0 -20
- package/server/workspaces/env.ts +0 -424
- package/server/workspaces/harness-transition.ts +0 -29
- package/server/workspaces/icon.ts +0 -13
- package/server/workspaces/import.ts +0 -74
- package/server/workspaces/init.ts +0 -74
- package/server/workspaces/layout.ts +0 -190
- package/server/workspaces/preview.ts +0 -72
- package/server/workspaces/registry.ts +0 -330
- package/server/workspaces/required-env.ts +0 -19
- package/server/workspaces/scaffold.ts +0 -189
- package/server/workspaces/shared.ts +0 -74
- package/server/workspaces/tabs.ts +0 -35
- package/server/workspaces/theme.ts +0 -58
- package/tsconfig.json +0 -20
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react'
|
|
2
|
-
|
|
3
|
-
import { IconPlus, IconSandbox, IconSmartHome } from '@tabler/icons-react'
|
|
4
|
-
import { useQueryClient } from '@tanstack/react-query'
|
|
5
|
-
import { Link, useLocation } from 'wouter'
|
|
6
|
-
|
|
7
|
-
import { homePath, useAppConfig } from '@/client/api/app-config'
|
|
8
|
-
import {
|
|
9
|
-
useReorderWorkspaces,
|
|
10
|
-
useWorkspaceMetadata,
|
|
11
|
-
useWorkspaces
|
|
12
|
-
} from '@/client/features/home/api'
|
|
13
|
-
import { BROWSER_TAB_ID } from '@/client/lib/browser-tab-id'
|
|
14
|
-
import {
|
|
15
|
-
UpdateButton as UpdateButtonComponent,
|
|
16
|
-
useUpdateControl
|
|
17
|
-
} from '@/client/features/update/update-control'
|
|
18
|
-
import { workspaceKeys } from '@/client/api/workspace-keys'
|
|
19
|
-
import { useClientEvent } from '@/client/runtime/use-client-events'
|
|
20
|
-
import { CreateWorkspaceDialog } from '@/client/features/workspace/add/create-workspace-dialog'
|
|
21
|
-
import { useAccount } from '@/client/features/account/account-provider'
|
|
22
|
-
import { AccountMenu } from '@/client/features/account/account-menu'
|
|
23
|
-
import { DemoDialog } from '@/client/features/demo/demo-dialog'
|
|
24
|
-
import { ReorderableList } from '@/client/components/shared/reorderable-list'
|
|
25
|
-
import type { ReorderableRenderState } from '@/client/components/shared/reorderable-list'
|
|
26
|
-
import { WorkspaceIcon } from '@/client/components/shared/workspace-icon'
|
|
27
|
-
import { Button, buttonVariants } from '@/client/components/ui/button'
|
|
28
|
-
import {
|
|
29
|
-
Tooltip,
|
|
30
|
-
TooltipContent,
|
|
31
|
-
TooltipProvider,
|
|
32
|
-
TooltipTrigger
|
|
33
|
-
} from '@/client/components/ui/tooltip'
|
|
34
|
-
import { workspaceDisplayName } from '@/client/features/workspace/workspace-presentation'
|
|
35
|
-
import { cn } from '@/client/lib/cn'
|
|
36
|
-
import type { WorkspaceEntry } from '@/lib/types'
|
|
37
|
-
|
|
38
|
-
function sidebarNavButtonClass(active: boolean): string {
|
|
39
|
-
return cn(
|
|
40
|
-
buttonVariants({ variant: 'ghost', size: 'icon-lg' }),
|
|
41
|
-
active && 'bg-accent text-accent-foreground'
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
type SidebarLayoutProps = {
|
|
46
|
-
// Full panel content — the page supplies its own header (compose it with
|
|
47
|
-
// <PanelHeader>) and body.
|
|
48
|
-
children?: ReactNode
|
|
49
|
-
showWorkspaces?: boolean
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// App shell: a slim icon rail beside the page content. The page owns the panel's
|
|
53
|
-
// header and body.
|
|
54
|
-
export function SidebarLayout({ children, showWorkspaces = true }: SidebarLayoutProps) {
|
|
55
|
-
const { data: entries } = useWorkspaces()
|
|
56
|
-
const workspaces = useWorkspaceMetadata(entries ?? [])
|
|
57
|
-
|
|
58
|
-
// Identity, theme, and registry changes can all alter a workspace's sidebar
|
|
59
|
-
// presentation. Refetch the list so the sidebar reflects them live. Exact:
|
|
60
|
-
// `workspaceKeys.all` is the
|
|
61
|
-
// prefix of every workspace query — a prefix invalidation would refetch
|
|
62
|
-
// transcripts, widgets, and MCP probes in every connected client.
|
|
63
|
-
const qc = useQueryClient()
|
|
64
|
-
useClientEvent(e => {
|
|
65
|
-
if (e.type === 'workspace-config:changed' || e.type === 'workspaces-list:changed') {
|
|
66
|
-
// Shared config saves update the layout cache; the sidebar list still needs a refetch.
|
|
67
|
-
if (e.type !== 'workspace-config:changed' && e.origin === BROWSER_TAB_ID) return
|
|
68
|
-
qc.invalidateQueries({ queryKey: workspaceKeys.all, exact: true })
|
|
69
|
-
}
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<div className="flex h-dvh bg-muted transition-colors duration-100 ease-out motion-reduce:transition-none">
|
|
74
|
-
<Sidebar workspaces={showWorkspaces ? (workspaces ?? []) : []} />
|
|
75
|
-
<main className="flex min-w-0 flex-1 flex-col">{children}</main>
|
|
76
|
-
</div>
|
|
77
|
-
)
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
type SidebarProps = {
|
|
81
|
-
workspaces: WorkspaceEntry[]
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function Sidebar({ workspaces }: SidebarProps) {
|
|
85
|
-
const { environment } = useAppConfig()
|
|
86
|
-
const { demo } = useAccount()
|
|
87
|
-
const reorder = useReorderWorkspaces()
|
|
88
|
-
|
|
89
|
-
return (
|
|
90
|
-
<TooltipProvider delay={500}>
|
|
91
|
-
<aside className="flex h-full shrink-0 flex-col items-center gap-4 px-2 py-5 [font-family:var(--default-sans)]">
|
|
92
|
-
<Tooltip>
|
|
93
|
-
<TooltipTrigger
|
|
94
|
-
render={
|
|
95
|
-
<Link href={homePath()} aria-label="Home" className={sidebarNavButtonClass}>
|
|
96
|
-
<IconSmartHome stroke={1.5} />
|
|
97
|
-
</Link>
|
|
98
|
-
}
|
|
99
|
-
/>
|
|
100
|
-
<TooltipContent side="right">Home</TooltipContent>
|
|
101
|
-
</Tooltip>
|
|
102
|
-
|
|
103
|
-
<nav className="flex max-h-full min-h-0 w-14 flex-1 flex-col items-center justify-center gap-4">
|
|
104
|
-
{workspaces.length > 0 && (
|
|
105
|
-
<>
|
|
106
|
-
<div className="no-scrollbar min-h-0 scroll-fade overflow-y-auto [--scroll-fade-reveal:16px]">
|
|
107
|
-
<ReorderableList
|
|
108
|
-
items={workspaces}
|
|
109
|
-
getId={ws => ws.id}
|
|
110
|
-
className="flex flex-col gap-4"
|
|
111
|
-
onReorder={ids => reorder.mutate(ids)}
|
|
112
|
-
renderPlaceholder={() => (
|
|
113
|
-
<div className="pointer-events-none absolute top-0 left-1 size-12 rounded-xl bg-accent" />
|
|
114
|
-
)}
|
|
115
|
-
renderOverlay={ws => <WorkspaceButton workspace={ws} dragOverlay />}
|
|
116
|
-
renderItem={(ws, state) => <WorkspaceButton workspace={ws} dragState={state} />}
|
|
117
|
-
/>
|
|
118
|
-
</div>
|
|
119
|
-
<div className="shrink-0">
|
|
120
|
-
<Tooltip>
|
|
121
|
-
<CreateWorkspaceDialog
|
|
122
|
-
trigger={
|
|
123
|
-
<TooltipTrigger
|
|
124
|
-
render={
|
|
125
|
-
<Button
|
|
126
|
-
type="button"
|
|
127
|
-
variant="ghost"
|
|
128
|
-
size="icon-lg"
|
|
129
|
-
aria-label="Create new workspace"
|
|
130
|
-
className="text-muted-foreground hover:text-foreground"
|
|
131
|
-
>
|
|
132
|
-
<IconPlus data-icon="inline-start" stroke={1.5} />
|
|
133
|
-
</Button>
|
|
134
|
-
}
|
|
135
|
-
/>
|
|
136
|
-
}
|
|
137
|
-
/>
|
|
138
|
-
<TooltipContent side="right">Create new workspace</TooltipContent>
|
|
139
|
-
</Tooltip>
|
|
140
|
-
</div>
|
|
141
|
-
</>
|
|
142
|
-
)}
|
|
143
|
-
</nav>
|
|
144
|
-
|
|
145
|
-
<div className="flex shrink-0 flex-col items-center gap-4">
|
|
146
|
-
{environment === 'local' && <UpdateButton />}
|
|
147
|
-
{demo ? (
|
|
148
|
-
<Tooltip>
|
|
149
|
-
<DemoDialog
|
|
150
|
-
trigger={
|
|
151
|
-
<TooltipTrigger
|
|
152
|
-
render={
|
|
153
|
-
<Button size="icon" aria-label="Set up Moi">
|
|
154
|
-
<IconSandbox stroke={1.5} />
|
|
155
|
-
</Button>
|
|
156
|
-
}
|
|
157
|
-
/>
|
|
158
|
-
}
|
|
159
|
-
/>
|
|
160
|
-
<TooltipContent side="right">Set up Moi</TooltipContent>
|
|
161
|
-
</Tooltip>
|
|
162
|
-
) : (
|
|
163
|
-
<AccountMenu />
|
|
164
|
-
)}
|
|
165
|
-
</div>
|
|
166
|
-
</aside>
|
|
167
|
-
</TooltipProvider>
|
|
168
|
-
)
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function UpdateButton() {
|
|
172
|
-
const updateControl = useUpdateControl()
|
|
173
|
-
|
|
174
|
-
return updateControl.status === 'available' ? (
|
|
175
|
-
<UpdateButtonComponent {...updateControl.button} />
|
|
176
|
-
) : null
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
type WorkspaceButtonProps = {
|
|
180
|
-
workspace: WorkspaceEntry
|
|
181
|
-
dragOverlay?: boolean
|
|
182
|
-
dragState?: ReorderableRenderState
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
function WorkspaceButton({ workspace, dragOverlay = false, dragState }: WorkspaceButtonProps) {
|
|
186
|
-
const [location] = useLocation()
|
|
187
|
-
const href = `/workspace/${workspace.id}`
|
|
188
|
-
const label = workspaceDisplayName(workspace)
|
|
189
|
-
// A workspace URL carries a destination (`/workspace/:id/views/orders`), so the
|
|
190
|
-
// rail matches the workspace segment, not the whole path. The trailing slash
|
|
191
|
-
// keeps `/workspace/ws1` from lighting up a sibling `/workspace/ws1-other`.
|
|
192
|
-
const active = location === href || location.startsWith(`${href}/`)
|
|
193
|
-
const icon = (
|
|
194
|
-
<div
|
|
195
|
-
className={cn(
|
|
196
|
-
buttonVariants({ variant: 'ghost', size: 'icon-lg' }),
|
|
197
|
-
'pointer-events-none size-12 transition-[border-radius,background-color,color] duration-100 ease-out motion-reduce:transition-none',
|
|
198
|
-
dragOverlay
|
|
199
|
-
? 'bg-background shadow-lg'
|
|
200
|
-
: 'group-hover:bg-accent group-hover:text-accent-foreground group-focus-visible:ring-3 group-focus-visible:ring-ring/50',
|
|
201
|
-
active && !dragOverlay && 'bg-accent text-accent-foreground'
|
|
202
|
-
)}
|
|
203
|
-
>
|
|
204
|
-
<WorkspaceIcon
|
|
205
|
-
icon={workspace.icon}
|
|
206
|
-
harness={workspace.harness}
|
|
207
|
-
workspaceTheme={workspace.theme}
|
|
208
|
-
className="size-7 shrink-0 rounded-md transition-[border-radius] duration-100 ease-out motion-reduce:transition-none"
|
|
209
|
-
/>
|
|
210
|
-
</div>
|
|
211
|
-
)
|
|
212
|
-
const labelElement = (
|
|
213
|
-
<span className="mt-0.5 line-clamp-2 w-full text-center text-[11px] leading-snug font-medium text-ellipsis text-foreground">
|
|
214
|
-
{label}
|
|
215
|
-
</span>
|
|
216
|
-
)
|
|
217
|
-
|
|
218
|
-
if (dragOverlay) {
|
|
219
|
-
return (
|
|
220
|
-
<span className="flex w-14 flex-col items-center">
|
|
221
|
-
{icon}
|
|
222
|
-
{labelElement}
|
|
223
|
-
</span>
|
|
224
|
-
)
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
return (
|
|
228
|
-
<Link
|
|
229
|
-
href={href}
|
|
230
|
-
aria-label={label}
|
|
231
|
-
onClick={event => {
|
|
232
|
-
if (dragState?.isDragging) event.preventDefault()
|
|
233
|
-
}}
|
|
234
|
-
className={cn(
|
|
235
|
-
'group flex w-14 flex-col items-center rounded-xl outline-none',
|
|
236
|
-
dragState?.isDragging && 'invisible'
|
|
237
|
-
)}
|
|
238
|
-
{...dragState?.dragHandleProps}
|
|
239
|
-
>
|
|
240
|
-
{icon}
|
|
241
|
-
<Tooltip>
|
|
242
|
-
<TooltipTrigger render={labelElement} />
|
|
243
|
-
<TooltipContent side="right">{label}</TooltipContent>
|
|
244
|
-
</Tooltip>
|
|
245
|
-
</Link>
|
|
246
|
-
)
|
|
247
|
-
}
|
package/client/assets/claude.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="248" height="248" viewBox="0 0 248 248" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z" fill="#D97757"/>
|
|
3
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
package/client/assets/hermes.png
DELETED
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="15.5 15.5 224.5 224.5">
|
|
2
|
-
<defs>
|
|
3
|
-
<radialGradient cy="0" cx="0.5" id="r">
|
|
4
|
-
<stop offset="0" stop-color="#f06b59"/>
|
|
5
|
-
<stop offset="1" stop-color="#df2227"/>
|
|
6
|
-
</radialGradient>
|
|
7
|
-
<radialGradient r="0.76" cy="0.3" cx="0.65" id="g">
|
|
8
|
-
<stop offset="0.65" stop-color="#4cb749"/>
|
|
9
|
-
<stop offset="1" stop-color="#388b41"/>
|
|
10
|
-
</radialGradient>
|
|
11
|
-
<radialGradient r="0.8" cy="0.25" cx="0.36" id="y">
|
|
12
|
-
<stop offset="0.6" stop-color="#FCD209"/>
|
|
13
|
-
<stop offset="0.7" stop-color="#f7c616"/>
|
|
14
|
-
<stop offset="1" stop-color="#bc821e"/>
|
|
15
|
-
</radialGradient>
|
|
16
|
-
<radialGradient r="1" cy="0" cx="0.5" spreadMethod="pad" id="cf">
|
|
17
|
-
<stop offset="0.1" stop-color="#7FB3DF"/>
|
|
18
|
-
<stop offset="0.9" stop-color="#0F5B94"/>
|
|
19
|
-
</radialGradient>
|
|
20
|
-
<radialGradient id="cb" r="1" cy="0" cx="0.5">
|
|
21
|
-
<stop offset="0" stop-color="#F6F0EE"/>
|
|
22
|
-
<stop offset="1" stop-color="#ddd"/>
|
|
23
|
-
</radialGradient>
|
|
24
|
-
</defs>
|
|
25
|
-
<path d="m198,148a70,70 0 0 0 -140,0l20,0a50,50 0 0 1 100,0" fill-opacity="0.1"/>
|
|
26
|
-
<circle r="45" cx="127.5" cy="127.6" fill="url(#cf)" stroke="url(#cb)" stroke-width="9" />
|
|
27
|
-
<path d="m228,78a112,112 0 0 0 -193,-13l45,78a50,50 0 0 1 47,-65" fill="url(#r)"/>
|
|
28
|
-
<path d="m35,65a112,112 0 0 0 84,174l47,-80a50,50 0 0 1 -86,-16" fill="url(#g)"/>
|
|
29
|
-
<path d="m119,239a112,112 0 0 0 109,-161l-101,0a50,50 0 0 1 39,81" fill="url(#y)"/>
|
|
30
|
-
<path d="m35,65l45,78a50,50 0 0 1 2,-34l-45,-47" opacity="0.075"/>
|
|
31
|
-
<path d="m119,239l47,-80a50,50 0 0 1 -29,17l-20,63" opacity="0.05"/>
|
|
32
|
-
<path d="m228,78l-101,0a50,50 0 0 1 39,19l64,-16" opacity="0.05"/>
|
|
33
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<svg width="1052" height="697" viewBox="0 0 1052 697" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0_4902_59)">
|
|
3
|
-
<path d="M225.085 167.018C248.024 168.122 236.544 212.045 234.575 225.326C231.744 244.427 227.083 259.857 219.327 277.35C216.087 284.655 206.556 323.214 211.744 328.829C219.355 329.663 231.764 311.026 236.971 305.581C251.975 289.889 266.131 272.923 282.625 258.754C288.32 253.289 302.288 244.614 306.942 239.011C326.819 215.08 347.936 196.337 366.314 235.32C369.638 242.371 373.834 249.94 375.882 258.422C377.198 263.781 377.582 269.326 377.015 274.814C376.267 282.138 368.122 301.189 374.684 306.028C380.609 306.278 390.98 293.546 395.507 289.03C408.932 275.637 421.295 260.303 435.495 247.752C447.332 237.292 462.187 229.612 474.296 219.409C481.031 213.703 485.54 206.543 493.193 201.361C502.43 195.212 513.755 193.046 524.606 195.353C541.849 199.052 546.735 214.931 543.955 230.523C541.206 245.939 532.395 259.143 527.392 273.83C521.606 290.803 516.738 308.016 511.198 325.056C506.171 342.703 497.198 359.568 491.38 376.744C484.36 397.464 480.017 416.262 469.242 435.69C465.029 443.283 461.459 458.101 459.178 467.089C457.07 475.398 453.11 490.596 457.066 498.617C458.141 500.405 459.751 500.79 461.587 501.078C469.566 499.278 521.116 452.822 528.335 442.272C534.005 431.184 536.62 416.862 541.622 405.65C550.421 386.577 557.824 366.683 566.623 347.671C570.529 340.089 576.114 332.53 579.8 324.917C596.295 290.83 623.365 264.212 649.474 237.436C653.999 232.966 665.161 217.141 670.904 215.359C683.548 211.44 707.073 204.13 719.723 201.733C757.013 194.671 779.46 223.558 803.493 245.788C814.606 256.552 815.91 272.434 818.188 286.59C822.695 314.576 826.301 312.057 843.727 294.93C859.115 279.679 874.685 264.616 890.434 249.743C904.07 236.645 916.604 222.126 933.167 212.579C945.394 205.018 959.312 203.904 972.097 198.41C987.558 191.771 1001.44 195.09 1000.4 214.755C1000.04 221.436 996.136 230.395 993.032 236.554C979.524 263.31 975.979 293.419 966.611 321.58C963.629 332.135 955.302 343.789 952.35 354.015C943.594 384.373 932.481 413.525 921.38 442.903C917.081 454.267 901.59 505.689 926.664 500.846C931.213 499.964 958.277 478.404 964.296 475.08C971.595 470.353 989.646 456.184 996.791 461.389C1001.89 470.481 971.907 500.594 965.527 508.285L938.72 540.113C925.611 555.677 918.667 564.029 901.878 576.147C889.803 584.866 879.945 597.1 865.911 604.454C855.092 610.123 847.591 614.599 834.604 610.993C816.223 606.376 806.23 584.309 807.565 566.662C808.379 555.892 814.471 545.366 817.331 535.03C820.05 527.175 820.846 513.11 824.63 505.946C835.48 485.415 841.333 465.479 847.101 443.166C849.122 435.347 854.302 426.059 856.678 417.946C858.937 410.231 861.331 402.326 863.842 394.684C865.911 388.408 872.64 374.239 873.626 368.777C876.51 352.815 887.801 325.231 880.386 310.37C879.363 308.325 876.841 306.512 874.722 306.126C865.195 304.393 849.789 316.673 841.664 321.928C837.194 324.893 827.63 327.415 826.375 330.397C823.08 338.246 822.615 350.855 821.182 359.575C819.884 367.014 818.225 374.386 816.21 381.667C803.811 426.579 784.26 469.202 758.323 507.899C752.494 516.778 747.118 525.436 740.432 533.732C729.563 547.074 717.342 559.247 703.963 570.073C690.792 580.696 658.487 597.81 641.979 602.39C635.832 604.098 629.568 604.919 623.2 604.196C616.342 603.413 609.803 601.098 603.343 598.771C580.381 590.499 576.126 582.674 560.328 565.456C551.37 555.69 543.165 547.558 538.145 534.975C536.816 531.638 535.524 528.24 534.575 524.78C532.597 517.537 531.966 505.848 527.129 500.178C525.996 498.849 524.472 497.913 522.665 497.986C512.444 498.409 467.912 558.665 457.895 568.921C450.094 576.906 441.098 582.68 432.125 589.195C420.769 597.437 408.721 609.579 393.61 609.383C387.696 609.285 382.059 606.86 377.923 602.629C370.73 595.269 359.461 571.646 359.609 560.698C359.789 547.289 364.671 537.278 368.39 524.823C372.097 512.406 375.969 500.233 379.719 487.889C383.257 476.249 385.378 463.483 389.652 452.026C393.412 441.948 399.203 432.947 403.425 422.832C409.453 408.394 413.017 394.096 417.758 379.321C421.976 366.861 428.672 354.75 428.911 341.326C429.013 335.606 427.508 324.78 419.454 326.505C409.654 328.604 399.803 341.65 393.559 349.055C368.937 378.262 348.228 410.855 331.997 445.42C317.916 476.574 307.75 511.279 286.582 539.353C279.321 548.985 268.751 555.53 259.442 562.933C253.84 567.409 248.499 572.038 242.479 575.92C237.976 578.822 229.477 580.831 225.45 576.183C218.363 568.009 222.297 551.342 224.225 541.852C227.109 527.646 233.47 514.739 238.566 501.305C241.995 492.157 244.43 482.36 247.644 473.145C250.21 465.791 252.929 458.652 255.593 451.298C259.645 439.615 261.018 426.781 265.029 415.135C269.316 402.681 274.996 390.918 277.834 377.974C279.948 369.476 281.664 360.891 281.576 352.147C281.521 346.783 278.251 339.013 271.91 340.104C262.675 341.693 251.997 354.609 246.425 361.411C228.561 383.228 212.448 406.593 199.146 431.453C190.856 447.085 183.908 464.089 176.449 480.15C171.53 490.742 165.923 500.619 161.313 511.322C155.086 525.785 154.8 541.356 146.963 555.181C142.418 563.203 135.131 569.313 130.169 576.355C123.363 586.017 118.722 595.961 111.151 605.464C103.422 615.169 95.2682 622.957 86.8539 631.946C82.2684 637.365 77.2707 643.329 73.2056 649.14C66.2786 659.028 58.3946 666.682 49.6901 674.899C45.6348 677.961 39.0935 687.164 35.1791 689.423C16.9287 699.936 22.726 674.348 25.3797 666.909C30.6658 652.079 36.6467 641.663 43.1415 627.917C48.3007 616.987 50.9612 606.835 55.3061 595.74C59.4337 585.656 65.5004 575.939 69.7388 565.37C77.0699 547.087 80.6108 528.84 86.2147 510.165C88.8892 498.966 97.4449 486.597 100.252 475.802C106.892 450.269 114.114 426.316 123.709 401.732C127.946 390.876 129.101 376.566 132.374 365.147C135.05 355.815 139.495 347.175 140.113 337.603C140.373 331.118 137.832 324.329 133.564 320.473C115.182 303.868 87.4393 341.043 70.5917 344.438C69.2495 344.714 68.1113 343.483 67.1854 342.554C63.522 326.011 112.538 279.881 123.166 265.128C126.072 261.093 137.535 254.992 142.133 252.173C147.177 249.054 151.897 245.438 156.223 241.381C179.183 219.586 198.055 195.661 218.129 171.289C220.02 168.993 222.353 167.962 225.085 167.018ZM643.865 527.964C678.638 518.296 700.913 485.777 718.162 456.166C721.524 450.385 723.887 444.795 726.753 438.96C734.064 424.081 736.586 409.055 740.67 393.282C744.093 380.044 748.826 367.351 749.365 353.354C750.106 345.828 748.349 338.489 747.847 331.05C747.253 322.325 747.626 314.638 745.085 306.11C740.205 289.752 731.97 270.724 711.176 273.642C697.301 278.213 688.906 288.536 678.185 297.977C670.451 304.79 661.175 311.511 654.213 318.967C650.864 322.49 648.035 326.475 645.812 330.801C642.824 336.611 640.595 343.636 637.638 349.435C633.137 358.27 626.451 367.155 622.612 376.376C605.951 416.433 599.289 458.107 612.84 500.252C616.128 510.489 621.828 521.137 631.692 525.883C635.47 527.72 639.695 528.442 643.865 527.964Z" fill="black"/>
|
|
4
|
-
<path d="M1046.03 4.79971C1048.85 4.50335 1049.85 4.30925 1052.06 6.21352C1053.3 9.87265 1048.57 17.9483 1047.13 21.9265C1043.46 32.0173 1041.8 41.7541 1040.38 52.2876C1038.78 64.2073 1048.71 68.7549 1049.14 79.8242C1048.91 95.2542 1023.16 123.145 1012.46 134.379C1004.31 142.941 982.182 166.484 970.634 166.105C965.693 165.943 962.919 163.795 959.558 160.484C954.408 153.249 953.625 141.468 948.585 133.149C945.701 128.378 939.15 123.98 938.017 119.116C936.327 111.816 947.471 100.616 951.231 94.1442C953.404 90.9822 955.186 87.4762 956.76 83.9897C962.656 70.9305 962.754 58.2741 975.178 49.1869C981.778 44.3632 988.753 39.2125 995.298 34.1989C1003.39 28.0006 1010.72 20.0534 1019.53 14.7944C1027.32 10.1384 1037.26 6.96911 1046.03 4.79971Z" fill="black"/>
|
|
5
|
-
</g>
|
|
6
|
-
<defs>
|
|
7
|
-
<clipPath id="clip0_4902_59">
|
|
8
|
-
<rect width="1052" height="697" fill="white"/>
|
|
9
|
-
</clipPath>
|
|
10
|
-
</defs>
|
|
11
|
-
</svg>
|
package/client/assets/openai.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenAI</title><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z" fill="#111111"></path></svg>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient id="lobster-gradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
4
|
-
<stop offset="0%" stop-color="#ff4d4d"/>
|
|
5
|
-
<stop offset="100%" stop-color="#991b1b"/>
|
|
6
|
-
</linearGradient>
|
|
7
|
-
</defs>
|
|
8
|
-
<!-- Body -->
|
|
9
|
-
<path d="M60 10 C30 10 15 35 15 55 C15 75 30 95 45 100 L45 110 L55 110 L55 100 C55 100 60 102 65 100 L65 110 L75 110 L75 100 C90 95 105 75 105 55 C105 35 90 10 60 10Z" fill="url(#lobster-gradient)"/>
|
|
10
|
-
<!-- Left Claw -->
|
|
11
|
-
<path d="M20 45 C5 40 0 50 5 60 C10 70 20 65 25 55 C28 48 25 45 20 45Z" fill="url(#lobster-gradient)"/>
|
|
12
|
-
<!-- Right Claw -->
|
|
13
|
-
<path d="M100 45 C115 40 120 50 115 60 C110 70 100 65 95 55 C92 48 95 45 100 45Z" fill="url(#lobster-gradient)"/>
|
|
14
|
-
<!-- Antenna -->
|
|
15
|
-
<path d="M45 15 Q35 5 30 8" stroke="#ff4d4d" stroke-width="3" stroke-linecap="round"/>
|
|
16
|
-
<path d="M75 15 Q85 5 90 8" stroke="#ff4d4d" stroke-width="3" stroke-linecap="round"/>
|
|
17
|
-
<!-- Eyes -->
|
|
18
|
-
<circle cx="45" cy="35" r="6" fill="#050810"/>
|
|
19
|
-
<circle cx="75" cy="35" r="6" fill="#050810"/>
|
|
20
|
-
<circle cx="46" cy="34" r="2.5" fill="#00e5cc"/>
|
|
21
|
-
<circle cx="76" cy="34" r="2.5" fill="#00e5cc"/>
|
|
22
|
-
</svg>
|
package/client/assets.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Blobatar } from '@blobatar/react'
|
|
2
|
-
import type { Expression, Palette } from 'blobatar'
|
|
3
|
-
import {
|
|
4
|
-
happy,
|
|
5
|
-
idle,
|
|
6
|
-
sad,
|
|
7
|
-
shy,
|
|
8
|
-
sleepy,
|
|
9
|
-
smug,
|
|
10
|
-
surprised,
|
|
11
|
-
thinking,
|
|
12
|
-
unsure,
|
|
13
|
-
wink
|
|
14
|
-
} from 'blobatar/expression'
|
|
15
|
-
|
|
16
|
-
import { cn } from '@/client/lib/cn'
|
|
17
|
-
import { AGENT_THEMES, DEFAULT_WORKSPACE_THEME } from '@/lib/themes'
|
|
18
|
-
import type { AgentTheme } from '@/lib/types'
|
|
19
|
-
|
|
20
|
-
const AGENT_BLOBATAR_SEED = 'moi-agent'
|
|
21
|
-
|
|
22
|
-
type AgentBlobatarColor = 'primary' | 'secondary' | 'default'
|
|
23
|
-
export type AgentBlobatarExpression =
|
|
24
|
-
| 'idle'
|
|
25
|
-
| 'happy'
|
|
26
|
-
| 'sad'
|
|
27
|
-
| 'surprised'
|
|
28
|
-
| 'wink'
|
|
29
|
-
| 'sleepy'
|
|
30
|
-
| 'smug'
|
|
31
|
-
| 'unsure'
|
|
32
|
-
| 'shy'
|
|
33
|
-
| 'thinking'
|
|
34
|
-
|
|
35
|
-
const AGENT_PALETTES = {
|
|
36
|
-
default: {
|
|
37
|
-
head: 'var(--foreground)',
|
|
38
|
-
eye: 'var(--background)'
|
|
39
|
-
},
|
|
40
|
-
primary: {
|
|
41
|
-
head: 'var(--primary)',
|
|
42
|
-
eye: 'var(--primary-foreground)'
|
|
43
|
-
},
|
|
44
|
-
secondary: {
|
|
45
|
-
head: 'var(--accent)',
|
|
46
|
-
eye: 'var(--accent-foreground)'
|
|
47
|
-
}
|
|
48
|
-
} satisfies Record<AgentBlobatarColor, Palette>
|
|
49
|
-
|
|
50
|
-
const AGENT_EXPRESSIONS = {
|
|
51
|
-
idle,
|
|
52
|
-
happy,
|
|
53
|
-
sad,
|
|
54
|
-
surprised,
|
|
55
|
-
wink,
|
|
56
|
-
sleepy,
|
|
57
|
-
smug,
|
|
58
|
-
unsure,
|
|
59
|
-
shy,
|
|
60
|
-
thinking
|
|
61
|
-
} satisfies Record<AgentBlobatarExpression, Expression>
|
|
62
|
-
|
|
63
|
-
type AgentBlobatarProps = {
|
|
64
|
-
size?: number
|
|
65
|
-
preset?: AgentTheme
|
|
66
|
-
animated?: boolean
|
|
67
|
-
color?: AgentBlobatarColor
|
|
68
|
-
expression?: AgentBlobatarExpression
|
|
69
|
-
className?: string
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function AgentBlobatar({
|
|
73
|
-
size = 56,
|
|
74
|
-
preset = DEFAULT_WORKSPACE_THEME.agent,
|
|
75
|
-
animated = false,
|
|
76
|
-
color = 'default',
|
|
77
|
-
expression = 'idle',
|
|
78
|
-
className
|
|
79
|
-
}: AgentBlobatarProps) {
|
|
80
|
-
return (
|
|
81
|
-
<Blobatar
|
|
82
|
-
name={AGENT_BLOBATAR_SEED}
|
|
83
|
-
size={size}
|
|
84
|
-
animate={animated ? 'always' : 'hover'}
|
|
85
|
-
palette={AGENT_PALETTES[color]}
|
|
86
|
-
expression={expression ? AGENT_EXPRESSIONS[expression] : undefined}
|
|
87
|
-
className={cn('shrink-0', className)}
|
|
88
|
-
traits={AGENT_THEMES[preset].traits}
|
|
89
|
-
/>
|
|
90
|
-
)
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export { AgentBlobatar }
|