clay-server 5.1.1-beta.1 → 5.2.0-beta.10
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/lib/account-auth-policy.js +21 -0
- package/lib/account-auth-socket.js +30 -0
- package/lib/account-auth-throttle.js +44 -0
- package/lib/account-auth-transport.js +48 -0
- package/lib/account-login-page.js +28 -0
- package/lib/account-passkey-challenges.js +31 -0
- package/lib/account-passkey-page.js +89 -0
- package/lib/account-passkey-policy.js +39 -0
- package/lib/account-password-page.js +69 -0
- package/lib/account-passwords.js +36 -0
- package/lib/account-remembered.js +77 -0
- package/lib/account-session-page.js +51 -0
- package/lib/account-session-store.js +82 -0
- package/lib/builtin-mates.js +19 -16
- package/lib/bundled-skills/clay-agent-browser/SKILL.md +6 -2
- package/lib/canonical-clay-record-authority.js +15 -0
- package/lib/canonical-clay-scheduling-authority.js +19 -0
- package/lib/claude-hook-installer.js +1 -239
- package/lib/claude-jsonl-watcher.js +1 -204
- package/lib/clay-control-presentation-binding.js +96 -0
- package/lib/clay-control-presentation.js +128 -0
- package/lib/clay-control-target-projection.js +26 -0
- package/lib/clay-mate-chat-receipts.js +26 -0
- package/lib/clay-mate-chat.js +88 -0
- package/lib/clay-mate-knowledge-input.js +26 -0
- package/lib/clay-mate-knowledge.js +95 -0
- package/lib/clay-mate-lifecycle.js +95 -0
- package/lib/clay-product-control-input.js +33 -0
- package/lib/clay-product-control-tools.js +51 -0
- package/lib/clay-product-control.js +247 -0
- package/lib/clay-project-lifecycle.js +154 -0
- package/lib/clay-project-record-input.js +44 -0
- package/lib/clay-project-records.js +84 -0
- package/lib/clay-scheduling-input.js +21 -0
- package/lib/clay-scheduling-receipts.js +26 -0
- package/lib/clay-scheduling.js +119 -0
- package/lib/clay-screen-controls.js +104 -0
- package/lib/clay-skill-install.js +1 -33
- package/lib/clay-workspace-controls.js +84 -0
- package/lib/clay-workspace-input.js +17 -0
- package/lib/clay-workspace-receipts.js +26 -0
- package/lib/cli-sessions.js +1 -300
- package/lib/codex-defaults.js +1 -28
- package/lib/context-usage.js +3 -2
- package/lib/contextual-screen-snapshot.js +38 -0
- package/lib/daemon-project-access.js +11 -0
- package/lib/daemon-project-lifecycle-callbacks.js +15 -0
- package/lib/daemon-project-lifecycle.js +262 -0
- package/lib/daemon-projects.js +1 -1
- package/lib/daemon.js +80 -276
- package/lib/default-ai-runtime.js +4 -8
- package/lib/dm-digest-cursor.js +120 -0
- package/lib/email-mcp-server.js +1 -1
- package/lib/issues-service.js +29 -15
- package/lib/kiro-defaults.js +1 -22
- package/lib/knowledge-db-import-validation.js +46 -0
- package/lib/knowledge-db-import.js +99 -0
- package/lib/knowledge-db-service.js +24 -33
- package/lib/knowledge-db-storage-nedb-maintenance.js +99 -0
- package/lib/knowledge-db-storage-nedb.js +66 -0
- package/lib/knowledge-db-storage.js +72 -0
- package/lib/knowledge-db-validation.js +0 -0
- package/lib/knowledge-document-index.js +2 -1
- package/lib/knowledge-file-store.js +7 -1
- package/lib/knowledge-product-operations.js +46 -0
- package/lib/mate-avatar-catalog.js +12 -0
- package/lib/mate-avatar-migration.js +41 -0
- package/lib/mate-context-service.js +138 -0
- package/lib/mate-context-tools.js +21 -0
- package/lib/mate-creation-mcp-server.js +2 -0
- package/lib/mate-knowledge-canonical-access.js +10 -0
- package/lib/mate-knowledge-mate-bound.js +53 -0
- package/lib/mate-knowledge-mcp-server.js +55 -8
- package/lib/mate-knowledge-service.js +16 -34
- package/lib/mate-knowledge-text-tools.js +106 -0
- package/lib/mate-lifecycle-service.js +94 -0
- package/lib/mate-message-delivery.js +43 -0
- package/lib/mate-ready-creation.js +9 -1
- package/lib/mate-schedule-input.js +29 -0
- package/lib/mate-schedule-lifecycle.js +151 -0
- package/lib/mate-scheduling.js +103 -0
- package/lib/mates.js +18 -6
- package/lib/mcp-agent-tools.js +117 -0
- package/lib/mcp-connection-store.js +119 -15
- package/lib/mcp-import-credentials.js +31 -0
- package/lib/mcp-local-transport.js +13 -0
- package/lib/mcp-oauth.js +8 -6
- package/lib/mcp-proxy.js +2 -32
- package/lib/mcp-query-bridge.js +30 -0
- package/lib/mcp-remote-connections.js +74 -20
- package/lib/mcp-source-adapters.js +1 -0
- package/lib/mcp-source-context.js +1 -0
- package/lib/mcp-source-discovery.js +1 -0
- package/lib/mcp-source-plugins.js +1 -0
- package/lib/mcp-source-restrictions.js +1 -0
- package/lib/mcp-tool-policy.js +9 -0
- package/lib/migrate-single-user.js +3 -23
- package/lib/notes-checklist.js +50 -0
- package/lib/notes.js +49 -3
- package/lib/os-user-diagnostics.js +2 -4
- package/lib/os-users.js +24 -70
- package/lib/pane-pending-interactions.js +20 -0
- package/lib/pane-session-activation.js +114 -0
- package/lib/pane-session-transport.js +26 -0
- package/lib/project-admin-overview.js +51 -0
- package/lib/project-ask-user.js +8 -4
- package/lib/project-connection.js +14 -10
- package/lib/project-control-git-view.js +12 -0
- package/lib/project-debate.js +1 -0
- package/lib/project-delegated-follow-up.js +2 -1
- package/lib/project-directory-claim.js +65 -0
- package/lib/project-file-operations.js +61 -0
- package/lib/project-filesystem.js +15 -85
- package/lib/project-full-access.js +23 -2
- package/lib/project-http.js +7 -4
- package/lib/project-knowledge.js +32 -18
- package/lib/project-lifecycle-operations.js +98 -0
- package/lib/project-lifecycle-process-witness.js +32 -0
- package/lib/project-lifecycle-runtime.js +50 -0
- package/lib/project-linux-access.js +22 -0
- package/lib/project-logs-canonical-clay.js +27 -0
- package/lib/project-logs-clay-query.js +16 -0
- package/lib/project-logs-schema.js +4 -2
- package/lib/project-logs-service.js +8 -7
- package/lib/project-logs.js +1 -0
- package/lib/project-loop.js +1 -0
- package/lib/project-mate-chat-control.js +55 -0
- package/lib/project-mate-creation-proposal.js +18 -3
- package/lib/project-mate-interaction.js +40 -62
- package/lib/project-mcp.js +54 -16
- package/lib/project-models.js +14 -31
- package/lib/project-notifications.js +76 -17
- package/lib/project-ownership.js +77 -0
- package/lib/project-pair-result-delivery.js +14 -3
- package/lib/project-pair-usage.js +12 -13
- package/lib/project-pending-message-queue.js +4 -1
- package/lib/project-product-control.js +89 -0
- package/lib/project-product-session-queue.js +46 -0
- package/lib/project-push-access.js +28 -0
- package/lib/project-scheduled-message-queue.js +30 -0
- package/lib/project-scheduled-messages.js +67 -68
- package/lib/project-scheduled-task-control.js +83 -0
- package/lib/project-scheduled-tasks.js +13 -2
- package/lib/project-scheduling-access.js +10 -0
- package/lib/project-server-settings.js +1 -0
- package/lib/project-session-actions.js +65 -0
- package/lib/project-session-delete.js +8 -1
- package/lib/project-session-document.js +27 -7
- package/lib/project-session-github.js +63 -19
- package/lib/project-session-history-actions.js +167 -0
- package/lib/project-session-linear.js +14 -6
- package/lib/project-session-notes.js +7 -3
- package/lib/project-session-pair.js +1 -1
- package/lib/project-session-runtime-actions.js +64 -0
- package/lib/project-session-spawn.js +2 -3
- package/lib/project-session-vendor.js +55 -0
- package/lib/project-sessions.js +103 -272
- package/lib/project-shared-browser.js +78 -17
- package/lib/project-studio-presentation.js +58 -0
- package/lib/project-user-knowledge.js +2 -1
- package/lib/project-user-message.js +67 -1
- package/lib/project-vendor-login.js +6 -36
- package/lib/project-workspace-operations.js +126 -0
- package/lib/project-workspace-query.js +19 -2
- package/lib/project.js +178 -45
- package/lib/public/app.js +46 -0
- package/lib/public/appearance-bootstrap.js +16 -0
- package/lib/public/auth/account-login.css +98 -0
- package/lib/public/auth/account-login.js +104 -0
- package/lib/public/css/clay-tool-activity.css +51 -0
- package/lib/public/css/clay-workspace.css +29 -0
- package/lib/public/css/command-palette.css +12 -33
- package/lib/public/css/contextual-clay.css +240 -0
- package/lib/public/css/home-debate-planning.css +2 -0
- package/lib/public/css/home-mate-creation.css +5 -0
- package/lib/public/css/input.css +6 -0
- package/lib/public/css/mate-avatar-gallery.css +12 -0
- package/lib/public/css/mate-conversation.css +10 -5
- package/lib/public/css/messages.css +6 -2
- package/lib/public/css/overlays.css +4 -2
- package/lib/public/css/project-admin-overview.css +13 -0
- package/lib/public/css/session-folders.css +11 -0
- package/lib/public/css/session-github.css +46 -1
- package/lib/public/css/shared-browser.css +35 -1
- package/lib/public/css/sticky-notes.css +87 -1
- package/lib/public/css/user-settings-sessions.css +42 -0
- package/lib/public/index.html +28 -10
- package/lib/public/mate-avatars/B01.png +0 -0
- package/lib/public/mate-avatars/B02.png +0 -0
- package/lib/public/mate-avatars/B03.png +0 -0
- package/lib/public/mate-avatars/B04.png +0 -0
- package/lib/public/mate-avatars/B05.png +0 -0
- package/lib/public/mate-avatars/B06.png +0 -0
- package/lib/public/mate-avatars/B07.png +0 -0
- package/lib/public/mate-avatars/B08.png +0 -0
- package/lib/public/mate-avatars/B09.png +0 -0
- package/lib/public/mate-avatars/B10.png +0 -0
- package/lib/public/mate-avatars/B11.png +0 -0
- package/lib/public/mate-avatars/B12.png +0 -0
- package/lib/public/mate-avatars/B13.png +0 -0
- package/lib/public/mate-avatars/B14.png +0 -0
- package/lib/public/mate-avatars/B15.png +0 -0
- package/lib/public/mate-avatars/B16.png +0 -0
- package/lib/public/mate-avatars/B17.png +0 -0
- package/lib/public/mate-avatars/B18.png +0 -0
- package/lib/public/mate-avatars/B19.png +0 -0
- package/lib/public/mate-avatars/B20.png +0 -0
- package/lib/public/mate-avatars/B21.png +0 -0
- package/lib/public/mate-avatars/B22.png +0 -0
- package/lib/public/mate-avatars/B23.png +0 -0
- package/lib/public/mate-avatars/B24.png +0 -0
- package/lib/public/mate-avatars/B25.png +0 -0
- package/lib/public/mate-avatars/B26.png +0 -0
- package/lib/public/mate-avatars/B27.png +0 -0
- package/lib/public/mate-avatars/B28.png +0 -0
- package/lib/public/mate-avatars/B29.png +0 -0
- package/lib/public/mate-avatars/B30.png +0 -0
- package/lib/public/mate-avatars/B31.png +0 -0
- package/lib/public/mate-avatars/B32.png +0 -0
- package/lib/public/mate-avatars/B33.png +0 -0
- package/lib/public/mate-avatars/B34.png +0 -0
- package/lib/public/mate-avatars/B35.png +0 -0
- package/lib/public/mate-avatars/B36.png +0 -0
- package/lib/public/mate-avatars/B37.png +0 -0
- package/lib/public/mate-avatars/B38.png +0 -0
- package/lib/public/mate-avatars/B39.png +0 -0
- package/lib/public/mate-avatars/B40.png +0 -0
- package/lib/public/mate-avatars/B41.png +0 -0
- package/lib/public/mate-avatars/B42.png +0 -0
- package/lib/public/mate-avatars/B43.png +0 -0
- package/lib/public/mate-avatars/B44.png +0 -0
- package/lib/public/mate-avatars/B45.png +0 -0
- package/lib/public/mate-avatars/B46.png +0 -0
- package/lib/public/mate-avatars/B47.png +0 -0
- package/lib/public/mate-avatars/B48.png +0 -0
- package/lib/public/mate-avatars/C01.png +0 -0
- package/lib/public/mate-avatars/C02.png +0 -0
- package/lib/public/mate-avatars/C03.png +0 -0
- package/lib/public/mate-avatars/C04.png +0 -0
- package/lib/public/mate-avatars/C05.png +0 -0
- package/lib/public/mate-avatars/C06.png +0 -0
- package/lib/public/mate-avatars/C07.png +0 -0
- package/lib/public/mate-avatars/C08.png +0 -0
- package/lib/public/mate-avatars/C09.png +0 -0
- package/lib/public/mate-avatars/C10.png +0 -0
- package/lib/public/mate-avatars/C11.png +0 -0
- package/lib/public/mate-avatars/C12.png +0 -0
- package/lib/public/mate-avatars/C13.png +0 -0
- package/lib/public/mate-avatars/C14.png +0 -0
- package/lib/public/mate-avatars/C15.png +0 -0
- package/lib/public/mate-avatars/C16.png +0 -0
- package/lib/public/mate-avatars/C17.png +0 -0
- package/lib/public/mate-avatars/C18.png +0 -0
- package/lib/public/mate-avatars/C19.png +0 -0
- package/lib/public/mate-avatars/C20.png +0 -0
- package/lib/public/mate-avatars/C21.png +0 -0
- package/lib/public/mate-avatars/C22.png +0 -0
- package/lib/public/mate-avatars/C23.png +0 -0
- package/lib/public/mate-avatars/C24.png +0 -0
- package/lib/public/mate-avatars/C25.png +0 -0
- package/lib/public/mate-avatars/C26.png +0 -0
- package/lib/public/mate-avatars/C27.png +0 -0
- package/lib/public/mate-avatars/C28.png +0 -0
- package/lib/public/mate-avatars/C29.png +0 -0
- package/lib/public/mate-avatars/C30.png +0 -0
- package/lib/public/mate-avatars/C31.png +0 -0
- package/lib/public/mate-avatars/C32.png +0 -0
- package/lib/public/mate-avatars/C33.png +0 -0
- package/lib/public/mate-avatars/C34.png +0 -0
- package/lib/public/mate-avatars/C35.png +0 -0
- package/lib/public/mate-avatars/C36.png +0 -0
- package/lib/public/mate-avatars/C37.png +0 -0
- package/lib/public/mate-avatars/C38.png +0 -0
- package/lib/public/mate-avatars/C39.png +0 -0
- package/lib/public/mate-avatars/C40.png +0 -0
- package/lib/public/mate-avatars/C41.png +0 -0
- package/lib/public/mate-avatars/C42.png +0 -0
- package/lib/public/mate-avatars/C43.png +0 -0
- package/lib/public/mate-avatars/C44.png +0 -0
- package/lib/public/mate-avatars/C45.png +0 -0
- package/lib/public/mate-avatars/C46.png +0 -0
- package/lib/public/mate-avatars/C47.png +0 -0
- package/lib/public/mate-avatars/C48.png +0 -0
- package/lib/public/mate-avatars/catalog.json +482 -0
- package/lib/public/mate-avatars/lead-clay.png +0 -0
- package/lib/public/modules/account-auth-settings.js +71 -0
- package/lib/public/modules/account-transport-settings.js +51 -0
- package/lib/public/modules/admin-settings-projects.js +6 -2
- package/lib/public/modules/app-connection.js +11 -1
- package/lib/public/modules/app-favicon.js +18 -9
- package/lib/public/modules/app-header.js +7 -4
- package/lib/public/modules/app-loop-ui.js +2 -0
- package/lib/public/modules/app-message-router.js +22 -1
- package/lib/public/modules/app-messages.js +119 -17
- package/lib/public/modules/app-misc.js +3 -1
- package/lib/public/modules/app-notifications.js +11 -5
- package/lib/public/modules/app-panels.js +61 -123
- package/lib/public/modules/app-projects.js +13 -0
- package/lib/public/modules/app-rate-limit.js +7 -27
- package/lib/public/modules/app-rendering.js +4 -3
- package/lib/public/modules/avatar.js +15 -41
- package/lib/public/modules/chat-render-runtime.js +20 -0
- package/lib/public/modules/clay-browser-links.js +47 -0
- package/lib/public/modules/clay-control-activity.js +214 -0
- package/lib/public/modules/clay-control-copy.js +36 -0
- package/lib/public/modules/clay-control-detail-targets.js +44 -0
- package/lib/public/modules/clay-control-object-targets.js +52 -0
- package/lib/public/modules/clay-control-target-visibility.js +12 -0
- package/lib/public/modules/clay-control-targets.js +44 -0
- package/lib/public/modules/clay-log-links.js +23 -0
- package/lib/public/modules/clay-navigation-render.js +52 -0
- package/lib/public/modules/clay-owner-navigation.js +33 -0
- package/lib/public/modules/clay-session-links.js +31 -0
- package/lib/public/modules/clay-studio-bridge.js +20 -0
- package/lib/public/modules/clay-studio-document.js +67 -0
- package/lib/public/modules/clay-studio-render.js +146 -0
- package/lib/public/modules/clay-tool-activity.js +140 -0
- package/lib/public/modules/clay-tool-presentation.js +342 -0
- package/lib/public/modules/command-palette.js +162 -40
- package/lib/public/modules/contextual-ask-session.js +26 -0
- package/lib/public/modules/contextual-clay-geometry.js +155 -0
- package/lib/public/modules/contextual-clay-session.js +130 -0
- package/lib/public/modules/contextual-clay-workspace.js +169 -0
- package/lib/public/modules/contextual-clay.js +250 -0
- package/lib/public/modules/contextual-composer.js +91 -0
- package/lib/public/modules/contextual-mate-context.js +117 -0
- package/lib/public/modules/contextual-mate-hint.js +40 -0
- package/lib/public/modules/contextual-mate-identity.js +23 -0
- package/lib/public/modules/contextual-mate-sessions.js +134 -0
- package/lib/public/modules/contextual-search.js +137 -0
- package/lib/public/modules/contextual-session-citations.js +58 -0
- package/lib/public/modules/debate.js +1 -0
- package/lib/public/modules/default-ai.js +11 -3
- package/lib/public/modules/elicitation-form.js +5 -0
- package/lib/public/modules/filebrowser.js +20 -1
- package/lib/public/modules/generation-stop.js +8 -5
- package/lib/public/modules/git-panel.js +3 -1
- package/lib/public/modules/history-replay-batch.js +13 -1
- package/lib/public/modules/home-debate-live.js +2 -0
- package/lib/public/modules/home-debate-planning.js +7 -7
- package/lib/public/modules/home-mate-avatar-editor.js +127 -208
- package/lib/public/modules/home-mate-chat.js +8 -6
- package/lib/public/modules/home-mate-creation.js +73 -1
- package/lib/public/modules/home-mate-settings.js +19 -12
- package/lib/public/modules/icon-strip-tooltip.js +2 -1
- package/lib/public/modules/input.js +88 -10
- package/lib/public/modules/issues-render.js +3 -2
- package/lib/public/modules/knowledge-db-workbench.js +4 -4
- package/lib/public/modules/markdown.js +6 -34
- package/lib/public/modules/mate-avatar-catalog.js +97 -0
- package/lib/public/modules/mate-knowledge-workbench.js +1 -1
- package/lib/public/modules/mate-management.js +40 -7
- package/lib/public/modules/mcp-connection-view.js +31 -13
- package/lib/public/modules/mcp-discovery-view.js +31 -0
- package/lib/public/modules/mcp-ui.js +23 -4
- package/lib/public/modules/mention.js +3 -0
- package/lib/public/modules/message-delivery.js +20 -2
- package/lib/public/modules/model-picker.js +2 -0
- package/lib/public/modules/pane-activation.js +214 -0
- package/lib/public/modules/pane-binding.js +82 -0
- package/lib/public/modules/pane-bridge.js +7 -4
- package/lib/public/modules/pane-browser-bridge.js +22 -0
- package/lib/public/modules/pane-file-bridge.js +4 -0
- package/lib/public/modules/pane-issue-bridge.js +4 -1
- package/lib/public/modules/passkey-browser.js +69 -0
- package/lib/public/modules/passkey-server-settings.js +57 -0
- package/lib/public/modules/pending-message-queue.js +1 -0
- package/lib/public/modules/permission-control.js +5 -4
- package/lib/public/modules/personal-settings-dialog.js +7 -1
- package/lib/public/modules/product-review.js +26 -0
- package/lib/public/modules/profile.js +1 -238
- package/lib/public/modules/project-access-recovery.js +17 -0
- package/lib/public/modules/project-admin-overview.js +21 -0
- package/lib/public/modules/project-chat-identity.js +13 -4
- package/lib/public/modules/project-logs-render.js +6 -2
- package/lib/public/modules/project-mate-navigation.js +144 -22
- package/lib/public/modules/rewind.js +5 -0
- package/lib/public/modules/scheduled-tasks.js +2 -0
- package/lib/public/modules/scheduler.js +2 -0
- package/lib/public/modules/search-clay-chat.js +5 -440
- package/lib/public/modules/server-settings-controls.js +10 -0
- package/lib/public/modules/server-settings.js +7 -2
- package/lib/public/modules/session-actions.js +5 -2
- package/lib/public/modules/session-context-menu.js +5 -0
- package/lib/public/modules/session-create-form.js +10 -10
- package/lib/public/modules/session-folder-layout.js +1 -1
- package/lib/public/modules/session-folder-view-menu.js +9 -0
- package/lib/public/modules/session-github.js +85 -14
- package/lib/public/modules/session-rich-drafts.js +21 -0
- package/lib/public/modules/session-switch-defer.js +67 -0
- package/lib/public/modules/session-work-primary.js +51 -0
- package/lib/public/modules/settings-defaults.js +27 -28
- package/lib/public/modules/shared-browser-settings.js +112 -0
- package/lib/public/modules/shared-browser-tabs.js +13 -3
- package/lib/public/modules/shared-browser.js +29 -6
- package/lib/public/modules/sidebar-mobile.js +4 -3
- package/lib/public/modules/sidebar-projects.js +1 -0
- package/lib/public/modules/sidebar-session-folders-ui.js +1 -1
- package/lib/public/modules/sidebar-sessions.js +1 -0
- package/lib/public/modules/split-group-restore.js +68 -0
- package/lib/public/modules/split-pair-ui.js +1 -0
- package/lib/public/modules/split-pane-reconciler.js +15 -0
- package/lib/public/modules/split-pane-renderer.js +87 -6
- package/lib/public/modules/split-session-boundary.js +1 -1
- package/lib/public/modules/split-view.js +60 -68
- package/lib/public/modules/sticky-note-markdown.js +72 -6
- package/lib/public/modules/sticky-notes-actions.js +30 -0
- package/lib/public/modules/sticky-notes-browser.js +9 -2
- package/lib/public/modules/sticky-notes-card.js +23 -7
- package/lib/public/modules/sticky-notes-checklist.js +116 -0
- package/lib/public/modules/sticky-notes-editor.js +108 -44
- package/lib/public/modules/sticky-notes-shared.js +50 -2
- package/lib/public/modules/sticky-notes-state.js +66 -0
- package/lib/public/modules/sticky-notes.js +34 -51
- package/lib/public/modules/stt-controller.js +4 -1
- package/lib/public/modules/stt-recording.js +1 -1
- package/lib/public/modules/stt.js +7 -2
- package/lib/public/modules/terminal.js +9 -0
- package/lib/public/modules/theme.js +8 -1
- package/lib/public/modules/thinking-lifecycle.js +33 -3
- package/lib/public/modules/thinking-view.js +23 -1
- package/lib/public/modules/tools.js +60 -11
- package/lib/public/modules/tui-grab.js +1 -2
- package/lib/public/modules/user-settings-account.js +14 -1
- package/lib/public/modules/user-settings-appearance.js +10 -3
- package/lib/public/modules/user-settings-editors.js +1 -1
- package/lib/public/modules/user-settings-layout.js +11 -2
- package/lib/public/modules/user-settings-preferences.js +6 -2
- package/lib/public/modules/user-settings-profile.js +12 -2
- package/lib/public/modules/user-settings-sessions.js +120 -0
- package/lib/public/modules/user-settings.js +6 -2
- package/lib/public/modules/vendor-login-browser.js +5 -3
- package/lib/public/modules/vendor-login.js +2 -2
- package/lib/public/modules/vendor-priority.js +15 -1
- package/lib/public/modules/wireframe-workbench.js +5 -2
- package/lib/public/modules/you-activity.js +3 -1
- package/lib/public/modules/you.js +91 -6
- package/lib/public/muse-avatar.svg +4 -0
- package/lib/public/style.css +6 -0
- package/lib/public/sw.js +3 -1
- package/lib/safe-bash-commands.js +3 -45
- package/lib/scheduled-task-records.js +3 -1
- package/lib/scheduler.js +2 -0
- package/lib/sdk-bridge.js +342 -401
- package/lib/sdk-foreground-admission.js +16 -0
- package/lib/sdk-mcp-descriptors.js +2 -37
- package/lib/sdk-message-processor.js +52 -17
- package/lib/sdk-quota-snapshot.js +1 -1
- package/lib/sdk-response-recovery.js +1 -0
- package/lib/sdk-worker.js +2 -677
- package/lib/server-account-passkeys.js +186 -0
- package/lib/server-account-passwords.js +127 -0
- package/lib/server-account-security.js +53 -0
- package/lib/server-admin.js +63 -16
- package/lib/server-appearance-settings.js +13 -1
- package/lib/server-auth.js +107 -79
- package/lib/server-contextual-clay-settings.js +40 -0
- package/lib/server-contextual-mate-sessions.js +70 -0
- package/lib/server-dm.js +2 -1
- package/lib/server-global-ws.js +10 -20
- package/lib/server-home-chat-events.js +18 -4
- package/lib/server-home-chat.js +22 -20
- package/lib/server-home-clay-entry.js +23 -4
- package/lib/server-home-clay-session-links.js +29 -9
- package/lib/server-home-mate-creation.js +1 -0
- package/lib/server-home-mcp-consent.js +14 -0
- package/lib/server-mates.js +25 -62
- package/lib/server-owner-ui.js +118 -0
- package/lib/server-path-access.js +38 -0
- package/lib/server-project-removal.js +22 -0
- package/lib/server-settings.js +8 -2
- package/lib/server.js +165 -43
- package/lib/session-config-transition.js +45 -0
- package/lib/session-folders.js +7 -2
- package/lib/session-fork-history.js +21 -0
- package/lib/session-github.js +9 -2
- package/lib/session-hygiene.js +3 -35
- package/lib/session-permission-mode.js +4 -3
- package/lib/session-skill-scope.js +11 -0
- package/lib/session-visibility.js +5 -2
- package/lib/session-work-primary.js +50 -0
- package/lib/sessions.js +64 -99
- package/lib/shared-browser-cookie-sync.js +32 -0
- package/lib/shared-browser-cookies.js +79 -0
- package/lib/shared-browser-runtime.js +25 -9
- package/lib/shared-browser-storage-sync.js +43 -0
- package/lib/shared-browser-storage.js +101 -0
- package/lib/shared-browser-tools.js +2 -1
- package/lib/shared-browser-worker.js +46 -10
- package/lib/terminal-manager.js +65 -6
- package/lib/tool-llm.js +1 -1
- package/lib/tui-transcript-index.js +1 -132
- package/lib/user-knowledge-service.js +23 -1
- package/lib/users-auth.js +38 -3
- package/lib/users-contextual-clay-preferences.js +31 -0
- package/lib/users-create.js +97 -0
- package/lib/users-permissions.js +2 -8
- package/lib/users-server-pin.js +37 -0
- package/lib/users.js +18 -84
- package/lib/vendor-login-browser.js +1 -11
- package/lib/workspace-assignment-service.js +25 -0
- package/lib/workspace-query-access.js +4 -1
- package/lib/workspace-query-mcp-server.js +1 -1
- package/lib/workspace-query-service.js +13 -2
- package/lib/ws-request.js +1 -0
- package/lib/ws-schema.js +18 -2
- package/lib/yoke/acp-agent-profiles.js +7 -5
- package/lib/yoke/adapters/antigravity.js +3 -14
- package/lib/yoke/adapters/claude-query-contract.js +9 -0
- package/lib/yoke/adapters/claude.js +54 -50
- package/lib/yoke/adapters/codex-query-contract.js +24 -0
- package/lib/yoke/adapters/codex.js +53 -111
- package/lib/yoke/adapters/kiro.js +3 -1
- package/lib/yoke/adapters/muse-query-contract.js +7 -0
- package/lib/yoke/adapters/muse.js +122 -0
- package/lib/yoke/auth-events.js +17 -0
- package/lib/yoke/claude-hook-installer.js +271 -0
- package/lib/yoke/claude-jsonl-watcher.js +204 -0
- package/lib/yoke/claude-maintenance.js +55 -0
- package/lib/yoke/claude-permission-patterns.js +53 -0
- package/lib/yoke/claude-response-recovery.js +155 -0
- package/lib/yoke/claude-transcript-hygiene.js +34 -0
- package/lib/yoke/claude-worker-startup.js +28 -0
- package/lib/yoke/clay-skill-install.js +33 -0
- package/lib/yoke/cli-sessions.js +300 -0
- package/lib/yoke/codex-app-server.js +7 -12
- package/lib/yoke/codex-idle-recovery.js +81 -1
- package/lib/yoke/codex-recovery-admission.js +164 -0
- package/lib/yoke/configuration.js +13 -0
- package/lib/yoke/discovery.js +70 -0
- package/lib/yoke/errors.js +8 -0
- package/lib/yoke/host-environment.js +7 -0
- package/lib/yoke/index.js +9 -51
- package/lib/yoke/interface.js +116 -0
- package/lib/yoke/kiro-acp-server.js +5 -5
- package/lib/yoke/legacy-sessions.js +89 -0
- package/lib/yoke/login-protocol.js +25 -0
- package/lib/yoke/maintenance.js +12 -0
- package/lib/yoke/mcp-proxy.js +32 -0
- package/lib/yoke/mcp-source-adapters.js +91 -0
- package/lib/yoke/mcp-source-context.js +42 -0
- package/lib/yoke/mcp-source-discovery.js +169 -0
- package/lib/yoke/mcp-source-plugins.js +68 -0
- package/lib/yoke/mcp-source-restrictions.js +47 -0
- package/lib/yoke/mcp-tool-policy-normalize.js +28 -0
- package/lib/yoke/model-preferences.js +6 -0
- package/lib/yoke/muse-artifacts.js +36 -0
- package/lib/yoke/muse-controls.js +50 -0
- package/lib/yoke/muse-input.js +64 -0
- package/lib/yoke/muse-items.js +157 -0
- package/lib/yoke/muse-policy.js +52 -0
- package/lib/yoke/muse-query.js +428 -0
- package/lib/yoke/muse-runtime.js +211 -0
- package/lib/yoke/muse-services.js +79 -0
- package/lib/yoke/muse-skills.js +79 -0
- package/lib/yoke/muse-turns.js +71 -0
- package/lib/yoke/options/acp.js +2 -0
- package/lib/yoke/options/antigravity.js +2 -0
- package/lib/yoke/options/claude.js +21 -0
- package/lib/yoke/options/codex-defaults.js +29 -0
- package/lib/yoke/options/codex-settings.js +21 -0
- package/lib/yoke/options/codex.js +6 -0
- package/lib/yoke/options/kiro-defaults.js +22 -0
- package/lib/yoke/options/kiro.js +5 -0
- package/lib/yoke/options/muse.js +5 -0
- package/lib/yoke/provider-contract.js +5 -0
- package/lib/yoke/providers/antigravity-executable.js +8 -0
- package/lib/yoke/providers/claude-executable.js +40 -0
- package/lib/yoke/providers/claude-model-descriptions.js +14 -0
- package/lib/yoke/providers/claude-process.js +97 -0
- package/lib/yoke/providers/claude-provision.js +75 -0
- package/lib/yoke/providers/codex-errors.js +8 -0
- package/lib/yoke/providers/muse-executable.js +17 -0
- package/lib/yoke/provisioning.js +6 -0
- package/lib/yoke/query-options.js +10 -0
- package/lib/yoke/response-recovery.js +41 -0
- package/lib/yoke/sdk-mcp-descriptors.js +37 -0
- package/lib/yoke/sdk-server-factory.js +7 -0
- package/lib/yoke/session-history.js +8 -0
- package/lib/yoke/session-tool-transport.js +34 -13
- package/lib/yoke/settings.js +23 -0
- package/lib/yoke/source-locations.js +4 -0
- package/lib/yoke/title-query.js +18 -7
- package/lib/yoke/tui-transcript-index.js +132 -0
- package/lib/yoke/usage.js +48 -0
- package/lib/yoke/user-input.js +13 -0
- package/lib/yoke/vendor-registry.js +81 -1
- package/package.json +11 -4
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: Geist;
|
|
3
|
+
src: url('/auth/login-font.woff2') format('woff2');
|
|
4
|
+
font-weight: 100 900;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
}
|
|
7
|
+
:root {
|
|
8
|
+
color-scheme: light dark;
|
|
9
|
+
--canvas: #f2f2ef;
|
|
10
|
+
--surface: #fafaf7;
|
|
11
|
+
--ink: #262720;
|
|
12
|
+
--muted: #696d61;
|
|
13
|
+
--edge: #dedfd5;
|
|
14
|
+
--field: #fff;
|
|
15
|
+
--accent: #5857fc;
|
|
16
|
+
--danger: #a12c2c;
|
|
17
|
+
}
|
|
18
|
+
* { box-sizing: border-box; }
|
|
19
|
+
[hidden] { display: none !important; }
|
|
20
|
+
body {
|
|
21
|
+
margin: 0;
|
|
22
|
+
min-height: 100svh;
|
|
23
|
+
padding: clamp(48px, 18svh, 160px) 20px 40px;
|
|
24
|
+
background: var(--canvas);
|
|
25
|
+
color: var(--ink);
|
|
26
|
+
font: 14px/1.5 Geist, system-ui, sans-serif;
|
|
27
|
+
}
|
|
28
|
+
main { width: 100%; max-width: 400px; margin: 0 auto; }
|
|
29
|
+
.brand { text-align: center; margin: 0 0 32px; }
|
|
30
|
+
.brand-lockup { display: flex; flex-direction: column; align-items: center; gap: clamp(.65rem, 1.2vw, .9rem); }
|
|
31
|
+
.symbol { width: clamp(58px, 6vw, 82px); height: auto; object-fit: contain; filter: drop-shadow(0 12px 28px rgb(88 87 252 / .12)); }
|
|
32
|
+
.wordmark { display: block; width: clamp(142px, 15vw, 184px); height: auto; filter: brightness(0); }
|
|
33
|
+
.panel { padding: 26px; border: 1px solid var(--edge); border-radius: 14px; background: var(--surface); box-shadow: 0 3px 12px #00000003; }
|
|
34
|
+
[data-stage="welcome"] .panel { width: calc(100% - 54px); margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
|
|
35
|
+
.panel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
|
|
36
|
+
h1 { font-size: 19px; font-weight: 550; letter-spacing: -.35px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
|
|
37
|
+
[data-stage="welcome"] .panel-header, [data-stage="welcome"] #description { display: none; }
|
|
38
|
+
#description { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
|
|
39
|
+
button, input { font: inherit; }
|
|
40
|
+
button { cursor: pointer; min-height: 36px; border: 1px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 7px 12px; font-size: 13px; font-weight: 500; transition: background-color 120ms, border-color 120ms, transform 100ms; }
|
|
41
|
+
button:disabled { cursor: wait; opacity: .6; }
|
|
42
|
+
button:hover:not(:disabled) { filter: brightness(.96); }
|
|
43
|
+
button:active:not(:disabled) { transform: translateY(1px); }
|
|
44
|
+
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
45
|
+
.primary { display: block; width: 100%; background: var(--accent); border-color: var(--accent); color: #fff; margin-top: 18px; }
|
|
46
|
+
.method { min-height: 42px; margin-top: 10px; }
|
|
47
|
+
#welcome > .method:first-of-type { margin-top: 0; }
|
|
48
|
+
#accounts:not(:empty) { margin-bottom: 12px; }
|
|
49
|
+
.secondary { background: transparent; border-color: var(--edge); color: var(--ink); }
|
|
50
|
+
.quiet { background: transparent; border: 0; color: var(--muted); font-size: 12px; display: block; margin: 10px auto 0; padding: 6px 4px; }
|
|
51
|
+
.back { display: grid; place-items: center; flex-shrink: 0; width: 28px; min-height: 28px; padding: 0; margin-left: -5px; border: 0; background: transparent; color: var(--muted); }
|
|
52
|
+
label { display: block; font-size: 12px; font-weight: 500; margin: 16px 0 6px; }
|
|
53
|
+
form > label:first-child { margin-top: 0; }
|
|
54
|
+
input { width: 100%; height: 40px; border: 1px solid var(--edge); border-radius: 8px; background: var(--field); color: var(--ink); padding: 8px 11px; font-size: 14px; }
|
|
55
|
+
.secret-field { position: relative; }
|
|
56
|
+
.secret-field input { padding-right: 60px; }
|
|
57
|
+
.secret-field button { position: absolute; right: 4px; top: 3px; min-height: 34px; border: 0; background: transparent; padding: 5px 8px; font-size: 12px; color: var(--muted); }
|
|
58
|
+
.account-row { display: flex; border: 1px solid var(--edge); border-radius: 10px; margin-bottom: 8px; background: var(--field); }
|
|
59
|
+
.account-choice { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: transparent; padding: 12px; border-radius: 10px 0 0 10px; }
|
|
60
|
+
.account-copy, .identity-chip > div { min-width: 0; }
|
|
61
|
+
.account-copy strong, .identity-chip strong { display: block; font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
62
|
+
.account-copy small, .identity-chip small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
63
|
+
.forget { border: 0; background: transparent; font-size: 12px; color: var(--muted); padding: 8px 12px; border-radius: 0 10px 10px 0; }
|
|
64
|
+
.avatar { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--edge); background: var(--canvas); font-size: 12px; font-weight: 550; }
|
|
65
|
+
.identity-chip { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
|
|
66
|
+
#status, #error { font-size: 12px; margin: 14px 0 0; }
|
|
67
|
+
#status:empty, #error:empty { display: none; }
|
|
68
|
+
#status { color: var(--muted); }
|
|
69
|
+
#error { color: var(--danger); }
|
|
70
|
+
footer { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
|
|
71
|
+
footer details { max-width: 320px; }
|
|
72
|
+
footer summary { cursor: pointer; padding: 3px 6px; }
|
|
73
|
+
footer p { line-height: 1.6; margin: 8px 0; }
|
|
74
|
+
#server-address { overflow-wrap: anywhere; font-size: 11px; }
|
|
75
|
+
.offscreen { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
|
|
76
|
+
.view:not([hidden]) { animation: arrive 140ms ease-out; }
|
|
77
|
+
@keyframes arrive { from { transform: translateY(3px); } to { transform: translateY(0); } }
|
|
78
|
+
@media (prefers-color-scheme: dark) {
|
|
79
|
+
:root { --canvas: #181a17; --surface: #20231e; --ink: #eeeee7; --muted: #a6ab9d; --edge: #393e34; --field: #181b17; --danger: #ffaaaa; }
|
|
80
|
+
.wordmark { filter: brightness(0) invert(1); }
|
|
81
|
+
}
|
|
82
|
+
@media (max-width: 440px) {
|
|
83
|
+
body { padding: 64px 16px 28px; }
|
|
84
|
+
.brand { margin-bottom: 28px; }
|
|
85
|
+
.panel { padding: 22px; }
|
|
86
|
+
[data-stage="welcome"] .panel { width: calc(100% - 46px); }
|
|
87
|
+
input { font-size: 16px; }
|
|
88
|
+
}
|
|
89
|
+
@media (max-height: 600px) { body { padding-top: 24px; } }
|
|
90
|
+
@media (pointer: coarse) {
|
|
91
|
+
.primary { min-height: 42px; }
|
|
92
|
+
.back { width: 36px; min-height: 36px; }
|
|
93
|
+
.quiet { min-height: 40px; }
|
|
94
|
+
}
|
|
95
|
+
@media (prefers-reduced-motion: reduce) {
|
|
96
|
+
.view:not([hidden]) { animation: none; }
|
|
97
|
+
button { transition: none; }
|
|
98
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { supported, getPasskey, passkeyError, request } from '/auth/passkey-browser.js';
|
|
2
|
+
var root = document.getElementById('login');
|
|
3
|
+
var password = root.dataset.password === 'true';
|
|
4
|
+
var selected = null;
|
|
5
|
+
var pin = !password;
|
|
6
|
+
var busy = false;
|
|
7
|
+
var stage = 'welcome';
|
|
8
|
+
var accounts = [];
|
|
9
|
+
var credentialBack = 'welcome';
|
|
10
|
+
function el(id) { return document.getElementById(id); }
|
|
11
|
+
function initials(name) {
|
|
12
|
+
var words = (name || '?').trim().split(/\s+/);
|
|
13
|
+
return (Array.from(words[0])[0] + (words.length > 1 ? Array.from(words[words.length - 1])[0] : '')).toUpperCase();
|
|
14
|
+
}
|
|
15
|
+
function show(next, moveFocus) {
|
|
16
|
+
stage = next;
|
|
17
|
+
root.dataset.stage = next;
|
|
18
|
+
document.querySelectorAll('.view').forEach(function (view) { view.hidden = view.id !== next; });
|
|
19
|
+
el('error').textContent = ''; el('status').textContent = ''; el('back').hidden = next === 'welcome';
|
|
20
|
+
el('secret').value = ''; el('secret').type = 'password'; el('reveal').textContent = 'Show'; el('reveal').setAttribute('aria-pressed', 'false');
|
|
21
|
+
var copy = {
|
|
22
|
+
welcome: ['Sign in', 'Choose how to sign in.'],
|
|
23
|
+
identity: ['Sign in', 'Enter your username to continue.'],
|
|
24
|
+
credential: ['Sign in', pin ? 'Enter your account PIN to continue.' : 'Enter your password to continue.'],
|
|
25
|
+
enroll: ['Set your password.', 'Your administrator has enabled passwords. Use 15–128 characters. Your account PIN is replaced only after saving.'],
|
|
26
|
+
email: ['Sign in with email', 'We’ll send a sign-in code to your account’s email address.'],
|
|
27
|
+
code: ['Check your inbox.', 'Enter the six-digit code we sent you.'],
|
|
28
|
+
};
|
|
29
|
+
el('heading').textContent = copy[next][0]; el('description').textContent = copy[next][1];
|
|
30
|
+
if (next === 'credential') {
|
|
31
|
+
el('selected-name').textContent = selected.name; el('selected-username').textContent = selected.username;
|
|
32
|
+
el('selected-username').hidden = selected.name.toLowerCase() === selected.username.toLowerCase();
|
|
33
|
+
el('selected-avatar').textContent = initials(selected.name); el('credential-username').value = selected.username;
|
|
34
|
+
el('secret-label').textContent = pin ? 'Account PIN' : 'Password';
|
|
35
|
+
el('secret').inputMode = pin ? 'numeric' : 'text'; el('secret').maxLength = pin ? 6 : 256;
|
|
36
|
+
if (pin) el('secret').setAttribute('pattern', '[0-9]{6}'); else el('secret').removeAttribute('pattern');
|
|
37
|
+
el('use-pin').hidden = !password; el('use-pin').textContent = pin ? 'Use my password' : 'I still use an account PIN';
|
|
38
|
+
}
|
|
39
|
+
var focus = { identity: 'username', credential: 'secret', enroll: 'new-password', email: 'email-address', code: 'otp' };
|
|
40
|
+
if (moveFocus !== false) {
|
|
41
|
+
if (focus[next]) el(focus[next]).focus({ preventScroll: true });
|
|
42
|
+
else el('account').focus({ preventScroll: true });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function renderAccounts() {
|
|
46
|
+
el('accounts').replaceChildren();
|
|
47
|
+
accounts.forEach(function (account) {
|
|
48
|
+
var row = document.createElement('div'); row.className = 'account-row';
|
|
49
|
+
var button = document.createElement('button'); button.className = 'account-choice';
|
|
50
|
+
var avatar = document.createElement('span'); avatar.className = 'avatar'; avatar.textContent = initials(account.name);
|
|
51
|
+
var copy = document.createElement('span'); copy.className = 'account-copy';
|
|
52
|
+
var name = document.createElement('strong'); name.textContent = account.name;
|
|
53
|
+
var username = document.createElement('small'); username.textContent = account.username;
|
|
54
|
+
username.hidden = account.name.toLowerCase() === account.username.toLowerCase();
|
|
55
|
+
copy.append(name, username); button.append(avatar, copy);
|
|
56
|
+
button.onclick = function () { selected = account; credentialBack = 'welcome'; pin = !password; show('credential'); };
|
|
57
|
+
var forget = document.createElement('button'); forget.className = 'forget'; forget.textContent = 'Forget';
|
|
58
|
+
forget.setAttribute('aria-label', 'Forget ' + account.name + ' on this browser');
|
|
59
|
+
forget.onclick = function () { run(async function () { var result = await request('/auth/accounts', { forget: account.id }); accounts = result.accounts; renderAccounts(); show('welcome'); }); };
|
|
60
|
+
row.append(button, forget); el('accounts').append(row);
|
|
61
|
+
});
|
|
62
|
+
el('account').textContent = accounts.length ? 'Use another account' : 'Sign in with an account';
|
|
63
|
+
el('account').classList.toggle('secondary', accounts.length > 0 || !el('passkey').hidden);
|
|
64
|
+
}
|
|
65
|
+
async function run(action) {
|
|
66
|
+
if (busy) return;
|
|
67
|
+
busy = true; el('error').textContent = ''; el('status').textContent = 'Just a moment…';
|
|
68
|
+
document.querySelectorAll('button').forEach(function (button) { button.disabled = true; });
|
|
69
|
+
try { await action(); } catch (error) { el('error').textContent = passkeyError(error); }
|
|
70
|
+
finally { busy = false; el('status').textContent = ''; document.querySelectorAll('button').forEach(function (button) { button.disabled = false; }); }
|
|
71
|
+
}
|
|
72
|
+
function enter() { location.assign('/'); }
|
|
73
|
+
el('server-address').textContent = location.host;
|
|
74
|
+
el('account').onclick = function () { show('identity'); };
|
|
75
|
+
el('back').onclick = function () { el('new-password').value = ''; el('confirm-password').value = ''; el('otp').value = ''; show(stage === 'code' ? 'email' : stage === 'credential' ? credentialBack : 'welcome'); };
|
|
76
|
+
el('identity').onsubmit = function (event) { event.preventDefault(); var username = el('username').value.trim(); if (!username) return; selected = { username: username, name: username }; credentialBack = 'identity'; pin = !password; show('credential'); };
|
|
77
|
+
el('use-pin').onclick = function () { pin = !pin; show('credential'); };
|
|
78
|
+
el('reveal').onclick = function () { var visible = el('secret').type === 'password'; el('secret').type = visible ? 'text' : 'password'; el('reveal').textContent = visible ? 'Hide' : 'Show'; el('reveal').setAttribute('aria-pressed', String(visible)); };
|
|
79
|
+
el('credential').onsubmit = function (event) {
|
|
80
|
+
event.preventDefault(); run(async function () {
|
|
81
|
+
var data = { username: selected.username }; data[pin ? 'pin' : 'password'] = el('secret').value;
|
|
82
|
+
var result = await request('/auth/login', data); if (result.passwordRequired) show('enroll'); else enter();
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
el('enroll').onsubmit = function (event) {
|
|
86
|
+
event.preventDefault(); run(async function () {
|
|
87
|
+
var value = el('new-password').value; var confirmation = el('confirm-password').value;
|
|
88
|
+
if (value !== confirmation) throw new Error('Passwords do not match.');
|
|
89
|
+
await request('/auth/password-transition', { password: value, confirmPassword: confirmation }); enter();
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
async function sendCode() { await request('/auth/request-otp', { email: el('email-address').value.trim() }); el('otp').value = ''; show('code'); }
|
|
93
|
+
el('email-method').hidden = root.dataset.email !== 'true';
|
|
94
|
+
el('email-method').onclick = function () { show('email'); };
|
|
95
|
+
el('email').onsubmit = function (event) { event.preventDefault(); run(sendCode); };
|
|
96
|
+
el('resend').onclick = function () { run(sendCode); };
|
|
97
|
+
el('code').onsubmit = function (event) { event.preventDefault(); run(async function () { await request('/auth/verify-otp', { email: el('email-address').value.trim(), code: el('otp').value }); enter(); }); };
|
|
98
|
+
el('passkey').onclick = function () { run(async function () { var options = await request('/auth/passkeys/login/options', {}); var response = await getPasskey(options.options); await request('/auth/passkeys/login/verify', { response: response }); enter(); }); };
|
|
99
|
+
async function initialize() {
|
|
100
|
+
try { var result = await request('/auth/accounts'); accounts = result.accounts; renderAccounts(); if (stage === 'welcome') show('welcome', false); } catch (error) { /* Account sign-in remains available without remembered names. */ }
|
|
101
|
+
if (!password || !supported()) return;
|
|
102
|
+
try { var status = await request('/auth/passkeys/status'); if (status.origin === location.origin) { el('passkey').hidden = false; renderAccounts(); } } catch (error) { /* Password sign-in remains available without passkeys. */ }
|
|
103
|
+
}
|
|
104
|
+
initialize();
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* Keep internal activity in the established compact tool disclosure rows. */
|
|
2
|
+
.clay-tool-activity .tool-name {
|
|
3
|
+
flex-shrink: 1;
|
|
4
|
+
min-width: 0;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-overflow: ellipsis;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
}
|
|
9
|
+
.clay-tool-activity .tool-desc {
|
|
10
|
+
font-family: var(--font-ui);
|
|
11
|
+
flex: 0 1 auto;
|
|
12
|
+
}
|
|
13
|
+
.clay-tool-activity .tool-status-icon { margin-left: auto; }
|
|
14
|
+
.clay-tool-activity .tool-subtitle { display: none; }
|
|
15
|
+
.tool-header[role="button"]:focus-visible,
|
|
16
|
+
.tool-group-header[role="button"]:focus-visible {
|
|
17
|
+
outline: 2px solid var(--accent);
|
|
18
|
+
outline-offset: 2px;
|
|
19
|
+
}
|
|
20
|
+
.clay-tool-activity[data-activity-phase="running"] .tool-bullet {
|
|
21
|
+
animation: pulse 1.5s ease-in-out infinite;
|
|
22
|
+
}
|
|
23
|
+
.clay-tool-activity[data-activity-phase="pending"] .tool-bullet,
|
|
24
|
+
.tool-group[data-activity-phase="pending"] .tool-group-bullet {
|
|
25
|
+
background: var(--text-muted);
|
|
26
|
+
animation: none;
|
|
27
|
+
}
|
|
28
|
+
.clay-tool-activity[data-activity-phase="error"] .tool-name,
|
|
29
|
+
.clay-tool-activity[data-activity-phase="cancelled"] .tool-name,
|
|
30
|
+
.tool-group[data-activity-phase="error"] .tool-group-label { color: var(--error); }
|
|
31
|
+
.clay-tool-technical-name,
|
|
32
|
+
.clay-tool-evidence-label {
|
|
33
|
+
padding: 8px 14px 0;
|
|
34
|
+
color: var(--text-muted);
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
overflow-wrap: anywhere;
|
|
37
|
+
}
|
|
38
|
+
.clay-tool-technical-name { font-family: "Roboto Mono", monospace; }
|
|
39
|
+
.clay-tool-evidence-label { font-weight: 600; }
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
.clay-tool-activity .tool-bullet { animation: none; }
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (max-width: 600px) {
|
|
45
|
+
.clay-tool-activity .tool-name {
|
|
46
|
+
white-space: normal;
|
|
47
|
+
overflow-wrap: anywhere;
|
|
48
|
+
line-height: 1.4;
|
|
49
|
+
}
|
|
50
|
+
.clay-tool-activity .tool-desc { max-width: 35%; }
|
|
51
|
+
}
|
|
@@ -4,6 +4,35 @@
|
|
|
4
4
|
padding: 0;
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
}
|
|
7
|
+
.clay-brand-flip {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: block;
|
|
10
|
+
width: 38px;
|
|
11
|
+
height: 38px;
|
|
12
|
+
transform-style: preserve-3d;
|
|
13
|
+
transition: transform 220ms cubic-bezier(.2,.75,.25,1);
|
|
14
|
+
}
|
|
15
|
+
.clay-brand-face {
|
|
16
|
+
position: absolute;
|
|
17
|
+
inset: 0;
|
|
18
|
+
width: 38px;
|
|
19
|
+
height: 38px;
|
|
20
|
+
object-fit: contain;
|
|
21
|
+
backface-visibility: hidden;
|
|
22
|
+
transition: opacity 120ms ease;
|
|
23
|
+
}
|
|
24
|
+
.clay-brand-avatar { transform: rotateY(180deg); border-radius: 11px; }
|
|
25
|
+
.icon-strip-brand[data-clay-mode="mate"] .clay-brand-flip { transform: rotateY(180deg); }
|
|
26
|
+
.icon-strip-brand:hover .clay-brand-flip,
|
|
27
|
+
.icon-strip-brand:focus-visible .clay-brand-flip,
|
|
28
|
+
.icon-strip-brand.clay-speaking[data-clay-mode="project"] .clay-brand-flip { transform: rotateY(180deg); }
|
|
29
|
+
.icon-strip-brand[data-clay-mode="mate"]:hover .clay-brand-flip,
|
|
30
|
+
.icon-strip-brand[data-clay-mode="mate"]:focus-visible .clay-brand-flip { transform: rotateY(0deg); }
|
|
31
|
+
.icon-strip-brand.clay-speaking[data-clay-mode="mate"] .clay-brand-flip { transform: rotateY(180deg); }
|
|
32
|
+
.icon-strip-brand.clay-speaking .clay-brand-face { transition-duration: 80ms; }
|
|
33
|
+
@media (prefers-reduced-motion: reduce) {
|
|
34
|
+
.clay-brand-flip, .clay-brand-face { transition: none; }
|
|
35
|
+
}
|
|
7
36
|
.icon-strip-brand:hover::before {
|
|
8
37
|
background: var(--bg-alt);
|
|
9
38
|
box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.08);
|
|
@@ -550,41 +550,20 @@ body.mate-dm-active .search-clay-transcript .search-clay-message-user .bubble,
|
|
|
550
550
|
.clayos-issue-link { --record-color: var(--link, var(--accent)); }
|
|
551
551
|
.clayos-log-link { --record-color: var(--accent); }
|
|
552
552
|
|
|
553
|
-
.clayos-session-link {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
border-radius: 7px;
|
|
562
|
-
background: color-mix(in srgb, var(--accent) 7%, var(--bg-alt));
|
|
563
|
-
color: var(--text);
|
|
564
|
-
font: inherit;
|
|
565
|
-
font-size: 11px;
|
|
566
|
-
line-height: 1;
|
|
567
|
-
vertical-align: middle;
|
|
568
|
-
cursor: pointer;
|
|
553
|
+
.clayos-session-link { --record-color: var(--accent); }
|
|
554
|
+
|
|
555
|
+
#messages .session-entry-target {
|
|
556
|
+
outline: 2px solid color-mix(in srgb, var(--accent) 72%, transparent);
|
|
557
|
+
outline-offset: 3px;
|
|
558
|
+
border-radius: 8px;
|
|
559
|
+
background: color-mix(in srgb, var(--accent) 7%, transparent);
|
|
560
|
+
animation: sessionEntryTargetFade 1800ms ease-out forwards;
|
|
569
561
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
width: 17px;
|
|
575
|
-
height: 17px;
|
|
576
|
-
border-radius: 5px;
|
|
577
|
-
background: color-mix(in srgb, var(--accent) 14%, transparent);
|
|
578
|
-
color: var(--accent);
|
|
579
|
-
font-size: 12px;
|
|
562
|
+
|
|
563
|
+
@keyframes sessionEntryTargetFade {
|
|
564
|
+
0%, 72% { background: color-mix(in srgb, var(--accent) 10%, transparent); }
|
|
565
|
+
100% { background: transparent; }
|
|
580
566
|
}
|
|
581
|
-
.clayos-session-link > span { font-weight: 620; }
|
|
582
|
-
.clayos-session-link > small { color: var(--text-muted); font-size: 10px; }
|
|
583
|
-
.clayos-session-link:hover { border-color: color-mix(in srgb, var(--accent) 52%, var(--border)); background: color-mix(in srgb, var(--accent) 11%, var(--bg-alt)); }
|
|
584
|
-
.clayos-session-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
585
|
-
.clayos-session-link.is-loading { opacity: 0.62; cursor: progress; }
|
|
586
|
-
.clayos-session-link.is-loading::before { animation: searchClaySpin 1.2s linear infinite; }
|
|
587
|
-
.clayos-session-link.is-error { border-color: color-mix(in srgb, var(--warning) 48%, var(--border)); }
|
|
588
567
|
|
|
589
568
|
.search-clay-pending {
|
|
590
569
|
align-self: flex-start;
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/* Anchored shell around the unchanged production conversation renderer. */
|
|
2
|
+
#contextual-clay {
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 160;
|
|
5
|
+
top: var(--contextual-top, 38px);
|
|
6
|
+
left: var(--contextual-left, 64px);
|
|
7
|
+
width: var(--contextual-width, 480px);
|
|
8
|
+
height: var(--contextual-height, 640px);
|
|
9
|
+
max-width: calc(100vw - 16px);
|
|
10
|
+
max-height: calc(100dvh - 16px);
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
border: 1px solid var(--border);
|
|
15
|
+
border-radius: 12px;
|
|
16
|
+
background: var(--bg);
|
|
17
|
+
color: var(--text);
|
|
18
|
+
box-shadow: 0 1px 3px rgba(var(--shadow-rgb), .08), 0 12px 28px rgba(var(--shadow-rgb), .14);
|
|
19
|
+
transform-origin: top left;
|
|
20
|
+
transition: top 150ms ease, left 150ms ease, width 150ms ease, height 150ms ease, opacity 120ms ease, transform 120ms ease;
|
|
21
|
+
}
|
|
22
|
+
#contextual-clay[hidden], #contextual-clay [hidden] { display: none; }
|
|
23
|
+
#contextual-clay .contextual-clay-body { position: relative; isolation: isolate; display: flex; flex: 1; min-height: 0; }
|
|
24
|
+
#contextual-clay [data-contextual-ask-status] { position: absolute; inset: 0; z-index: 2; padding: 16px 12px; flex-direction: column; overflow: auto; background: var(--bg); font-size: 12px; line-height: 1.5; }
|
|
25
|
+
#contextual-clay [data-contextual-ask-status]:not([hidden]) { display: flex; }
|
|
26
|
+
#contextual-clay .contextual-pending-question { display: flex; flex-direction: column; min-height: 0; width: fit-content; max-width: 85%; max-height: 45%; margin: 0 0 12px auto; }
|
|
27
|
+
#contextual-clay .contextual-pending-question > span { display: block; margin: 0 6px 5px; color: var(--text-muted); font-size: 11px; }
|
|
28
|
+
#contextual-clay [data-ask-question] { margin: 0; padding: 12px 18px; border: 1px solid var(--border-subtle); border-radius: 18px 18px 4px 18px; background: var(--user-bubble, var(--bg-alt)); font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 0; max-height: 180px; overflow: auto; }
|
|
29
|
+
#contextual-clay .contextual-pending-progress { flex-shrink: 0; max-width: 85%; margin-left: auto; padding: 0 6px; color: var(--text-muted); }
|
|
30
|
+
#contextual-clay .contextual-pending-progress > div { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
31
|
+
#contextual-clay[data-ask-pending="true"] iframe { visibility: hidden; }
|
|
32
|
+
html.contextual-pane-boot #connect-overlay { display: none !important; }
|
|
33
|
+
#contextual-clay [data-contextual-ask-status] p { margin: 0 0 4px; overflow-wrap: anywhere; }
|
|
34
|
+
#contextual-clay .contextual-conversation-tools { display: flex; align-items: center; gap: 2px; }
|
|
35
|
+
#contextual-clay [data-mate-new] { display: inline-flex; gap: 5px; align-items: center; padding-inline: 6px; white-space: nowrap; }
|
|
36
|
+
#contextual-clay [data-mate-new]:disabled { opacity: .55; cursor: wait; }
|
|
37
|
+
#contextual-clay [data-mate-history] summary { display: grid; place-items: center; cursor: pointer; list-style: none; width: 28px; height: 28px; border-radius: 6px; color: var(--text-muted); touch-action: manipulation; }
|
|
38
|
+
#contextual-clay [data-mate-history] summary::-webkit-details-marker { display: none; }
|
|
39
|
+
#contextual-clay [data-mate-history] summary .lucide { width: 15px; height: 15px; }
|
|
40
|
+
#contextual-clay [data-mate-history] summary:hover { color: var(--text); background: var(--bg-alt); }
|
|
41
|
+
#contextual-clay [data-mate-history] summary:focus-visible { outline: 2px solid var(--accent); }
|
|
42
|
+
#contextual-clay [data-mate-history] > div { position: absolute; z-index: 5; top: 50px; right: 10px; left: 10px; padding: 5px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 3px 10px rgba(var(--shadow-rgb), .12); cursor: default; touch-action: auto; }
|
|
43
|
+
#contextual-clay [data-mate-history] .contextual-history-label { display: block; padding: 6px 8px; font-size: 12px; color: var(--text-secondary); }
|
|
44
|
+
#contextual-clay [data-mate-session-list] { max-height: min(280px, 40dvh); overflow: auto; overscroll-behavior: contain; }
|
|
45
|
+
#contextual-clay [data-mate-session-list] p { margin: 8px; font-size: 12px; color: var(--text-muted); }
|
|
46
|
+
#contextual-clay [data-mate-session-list] button { display: flex; align-items: center; gap: 12px; width: 100%; height: 36px; white-space: nowrap; text-align: left; padding: 6px 8px; }
|
|
47
|
+
#contextual-clay [data-mate-session-list] button span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
|
|
48
|
+
#contextual-clay [data-mate-session-list] small { color: var(--text-muted); font-size: 11px; }
|
|
49
|
+
#contextual-clay [data-mate-session-list] button[aria-current="true"] { color: var(--accent); background: var(--accent-8, var(--bg-alt)); }
|
|
50
|
+
#contextual-clay [data-conversation-notice]:not([hidden]) { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 6px 12px; border-bottom: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-secondary); }
|
|
51
|
+
#contextual-clay [data-conversation-notice] span { flex: 1; }
|
|
52
|
+
#contextual-clay [data-conversation-notice] button { color: var(--accent); white-space: nowrap; }
|
|
53
|
+
#contextual-clay [data-clay-expand] span { display: none; }
|
|
54
|
+
@media (pointer: coarse) { #contextual-clay [data-mate-history] summary, #contextual-clay [data-mate-session-list] button { min-width: 44px; min-height: 44px; } }
|
|
55
|
+
@starting-style {
|
|
56
|
+
#contextual-clay[data-mode="popover"]:not([hidden]) { opacity: 0; transform: translateX(-4px); }
|
|
57
|
+
}
|
|
58
|
+
#contextual-clay header { display: flex; align-items: center; gap: 9px; flex-shrink: 0; min-height: 52px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--border-subtle); background: var(--sidebar-bg, var(--bg)); }
|
|
59
|
+
.contextual-clay-avatar { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
|
|
60
|
+
.contextual-clay-identity { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.4; }
|
|
61
|
+
#contextual-clay strong { font-size: 13px; font-weight: 600; }
|
|
62
|
+
#contextual-clay [data-clay-context] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-secondary); }
|
|
63
|
+
#contextual-clay [data-clay-context] { display: flex; align-items: center; }
|
|
64
|
+
#contextual-clay [data-context-project] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
65
|
+
#contextual-clay [data-context-status] { flex-shrink: 0; white-space: pre; }
|
|
66
|
+
.contextual-clay-actions { display: flex; align-items: center; gap: 3px; }
|
|
67
|
+
.contextual-clay-context { min-width: 0; }
|
|
68
|
+
.contextual-clay-context summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 5px; border-radius: 3px; }
|
|
69
|
+
.contextual-context-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
|
|
70
|
+
.contextual-clay-context { flex-shrink: 0; }
|
|
71
|
+
.contextual-clay-context summary { padding: 2px; color: var(--text-muted); }
|
|
72
|
+
.contextual-clay-context summary::-webkit-details-marker { display: none; }
|
|
73
|
+
.contextual-clay-context summary .lucide { width: 14px; height: 14px; }
|
|
74
|
+
.contextual-clay-context p { white-space: pre-line; cursor: auto; }
|
|
75
|
+
@media (pointer: coarse) { .contextual-clay-context summary { min-width: 32px; min-height: 32px; justify-content: center; } }
|
|
76
|
+
.contextual-clay-context summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
77
|
+
.contextual-clay-context p { max-height: min(360px, calc(100% - 70px)); overflow: auto; overscroll-behavior: contain; position: absolute; z-index: 1; left: 12px; right: 12px; top: 48px; margin: 0; padding: 10px 12px; font-size: 13px; line-height: 1.6; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); box-shadow: 0 2px 6px rgba(var(--shadow-rgb), .12); }
|
|
78
|
+
#contextual-clay button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; height: 28px; min-width: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; transition: color 120ms ease, background 120ms ease; }
|
|
79
|
+
#contextual-clay button:hover { color: var(--text); background: var(--sidebar-hover, var(--bg-alt)); }
|
|
80
|
+
#contextual-clay button:active { transform: translateY(1px); }
|
|
81
|
+
#contextual-clay button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; color: var(--text); }
|
|
82
|
+
#contextual-clay button .lucide { width: 15px; height: 15px; }
|
|
83
|
+
#contextual-clay iframe { border: 0; flex: 1; width: 100%; min-height: 0; background: var(--bg); }
|
|
84
|
+
#contextual-clay [data-clay-loading]:not([hidden]) { position: absolute; inset: 0; margin: 0; padding: 18px 12px; display: block; color: var(--text-muted); font-size: 13px; background: var(--bg); pointer-events: none; }
|
|
85
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) { --content-width: 760px; }
|
|
86
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) #messages { padding-top: 14px; }
|
|
87
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) #messages .msg-assistant .md-content,
|
|
88
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) #messages .msg-user .bubble { font-size: 15px; line-height: 1.7; }
|
|
89
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) #input-area { padding-inline: 12px; }
|
|
90
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) #input-wrapper { margin-top: 4px; }
|
|
91
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) .ask-user-question-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-weight: 400; }
|
|
92
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) .ask-user-answer-summary { overflow-wrap: anywhere; }
|
|
93
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) .ask-user-answer-label { white-space: pre-wrap; }
|
|
94
|
+
.product-review { min-width: 0; overflow-wrap: anywhere; }
|
|
95
|
+
.product-review-action { display: block; font-size: 14px; font-weight: 600; }
|
|
96
|
+
.product-review p { margin: 6px 0; font-size: 13px; line-height: 1.6; }
|
|
97
|
+
.product-review-context { color: var(--text-secondary); }
|
|
98
|
+
.product-review details { margin-top: 10px; font-size: 12px; }
|
|
99
|
+
.product-review summary { cursor: pointer; color: var(--text-muted); padding: 4px 0; }
|
|
100
|
+
.product-review summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
101
|
+
.product-review pre { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 0; max-height: 180px; overflow: auto; padding: 10px; border: 1px solid var(--border-subtle); border-radius: 6px; font-size: 12px; line-height: 1.6; }
|
|
102
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) #input-bottom-right > #generation-stop { width: auto; min-width: 56px; padding-inline: 8px; border-radius: 8px; display: inline-flex; gap: 5px; }
|
|
103
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) #input-bottom-right > #generation-stop.hidden { display: none; }
|
|
104
|
+
/* A pending draft and running action share a composer, without squeezing the
|
|
105
|
+
writing measure into the space left by Stop and the voice controls. */
|
|
106
|
+
body.contextual-clay-native #input-row:has(#generation-stop:not(.hidden)):has(#send-btn:not(.stop)) #input-textarea-wrap { grid-area: 4 / 1 / 5 / -1; }
|
|
107
|
+
body.contextual-clay-native #input-row:has(#generation-stop:not(.hidden)):has(#send-btn:not(.stop))::before { grid-area: 4 / 1 / 6 / -1; }
|
|
108
|
+
body.contextual-clay-native #input-row:has(#generation-stop:not(.hidden)):has(#send-btn:not(.stop)) #generation-stop { grid-row: 5; }
|
|
109
|
+
body.contextual-clay-native #input-row:has(#generation-stop:not(.hidden)):has(#send-btn:not(.stop)) .stt-controls { grid-row: 5; }
|
|
110
|
+
body.contextual-clay-native #input-row:has(#generation-stop:not(.hidden)):has(#send-btn:not(.stop)) #send-btn { grid-row: 5; }
|
|
111
|
+
body.contextual-clay-native #input-row:has(#generation-stop:not(.hidden)):has(#send-btn:not(.stop)) #attach-wrap,
|
|
112
|
+
body.contextual-clay-native #input-row:has(#generation-stop:not(.hidden)):has(#send-btn:not(.stop)) #config-chip-wrap { grid-row: 6; }
|
|
113
|
+
/* The question remains above; a single answer does not repeat its full brief. */
|
|
114
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) .ask-user-answer-summary:has(> .ask-user-answer-row:only-child) .ask-user-answer-label { display: none; }
|
|
115
|
+
body:is(.contextual-chat-pane, .contextual-clay-native) #new-msg-btn { position: static; transform: none; align-self: center; flex-shrink: 0; margin: 4px auto 0; padding: 4px 10px; border-radius: 8px; box-shadow: 0 1px 3px rgba(var(--shadow-rgb), .12); }
|
|
116
|
+
#contextual-session-warning { margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--error-25); border-radius: 8px; background: var(--error-8); color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
|
|
117
|
+
@media (max-width: 768px) {
|
|
118
|
+
#contextual-clay { top: 48px; left: 8px; bottom: calc(64px + var(--safe-bottom, 0px)); width: calc(100vw - 16px); height: auto; z-index: 210; transition: opacity 120ms ease, transform 120ms ease; }
|
|
119
|
+
.contextual-clay-mobile-trigger { position: fixed; z-index: 220; top: 4px; left: 4px; width: 38px; height: 38px; background: var(--bg); border-radius: 10px; }
|
|
120
|
+
.contextual-clay-mobile #header-left { padding-left: 40px; }
|
|
121
|
+
}
|
|
122
|
+
@media (pointer: coarse) { #contextual-clay button { height: 44px; min-width: 44px; } }
|
|
123
|
+
@media (prefers-reduced-motion: reduce) { #contextual-clay, #contextual-clay button { transition: none; transform: none; } }
|
|
124
|
+
#clay-control-activity { position: fixed; z-index: 170; width: min(240px, calc(100vw - 24px)); display: grid; justify-items: start; align-content: start; gap: 4px; pointer-events: none; color: var(--text); font-size: 12px; line-height: 1.45; }
|
|
125
|
+
#clay-control-activity[hidden] { display: none; }
|
|
126
|
+
#clay-control-activity.is-inline { position: static; width: auto; margin: 6px 12px; flex-shrink: 0; }
|
|
127
|
+
#clay-control-activity .clay-control-identity { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; height: 26px; box-sizing: border-box; padding: 3px 9px 3px 3px; border-radius: 13px; background: var(--brand-indigo); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; }
|
|
128
|
+
#clay-control-activity .clay-control-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
129
|
+
#clay-control-activity img { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--bg); }
|
|
130
|
+
#clay-control-activity img[hidden] { display: none; }
|
|
131
|
+
#clay-control-activity .clay-control-bubble { box-sizing: border-box; width: 100%; padding: 7px 9px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 3px rgba(var(--shadow-rgb), .1); overflow-wrap: anywhere; }
|
|
132
|
+
#clay-control-activity .clay-control-pointer { display: none; }
|
|
133
|
+
#clay-control-activity.has-target .clay-control-pointer { display: block; position: absolute; left: var(--tip-x); top: var(--tip-y); width: 18px; height: 28px; background: var(--brand-indigo); clip-path: polygon(0 0, 100% 57%, 61% 61%, 89% 89%, 67% 96%, 39% 68%, 17% 86%); transform-origin: left top; transform: scale(var(--cursor-x, 1), var(--cursor-y, 1)); }
|
|
134
|
+
#clay-control-activity.is-reversed { --cursor-x: -1; justify-items: end; }
|
|
135
|
+
#clay-control-activity.is-flipped { --cursor-y: -1; }
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
/* The popover opens the existing native Mate shell; it never becomes a full overlay. */
|
|
140
|
+
#contextual-workspace-back { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; min-height: 28px; padding: 3px 7px; margin-right: 6px; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--bg); color: var(--text-secondary); font: inherit; font-size: 12px; cursor: pointer; }
|
|
141
|
+
#contextual-workspace-back[hidden] { display: none; }
|
|
142
|
+
#contextual-workspace-back .lucide { width: 14px; height: 14px; }
|
|
143
|
+
#contextual-workspace-back:hover { background: var(--bg-alt); color: var(--text); }
|
|
144
|
+
#contextual-workspace-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
145
|
+
@media (pointer: coarse) { #contextual-workspace-back { min-height: 44px; } }
|
|
146
|
+
|
|
147
|
+
/* Direct manipulation keeps the mounted conversation in place. */
|
|
148
|
+
#contextual-clay > header { cursor: grab; touch-action: none; }
|
|
149
|
+
#contextual-clay > header:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
|
|
150
|
+
#contextual-clay [data-clay-resize] { position: absolute; z-index: 2; padding: 0; border: 0; border-radius: 0; background: transparent; min-width: 0; min-height: 0; opacity: .45; touch-action: none; }
|
|
151
|
+
#contextual-clay [data-clay-resize="e"] { top: 60px; right: 0; bottom: 18px; width: 7px; height: auto; cursor: ew-resize; }
|
|
152
|
+
#contextual-clay [data-clay-resize="s"] { bottom: 0; left: 16px; right: 18px; width: auto; height: 7px; cursor: ns-resize; }
|
|
153
|
+
#contextual-clay [data-clay-resize="se"] { bottom: 0; right: 0; width: 18px; height: 18px; cursor: nwse-resize; }
|
|
154
|
+
#contextual-clay [data-clay-resize="se"]::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 7px; height: 7px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); border-radius: 0 0 2px 0; }
|
|
155
|
+
#contextual-clay [data-clay-resize]:hover, #contextual-clay [data-clay-resize]:focus-visible { opacity: 1; background: rgba(var(--shadow-rgb), .08); }
|
|
156
|
+
#contextual-clay.contextual-clay-manipulating { transition: none; user-select: none; }
|
|
157
|
+
#contextual-clay.contextual-clay-manipulating > header { cursor: grabbing; }
|
|
158
|
+
#contextual-clay.contextual-clay-manipulating iframe { pointer-events: none; }
|
|
159
|
+
@media (max-width: 768px) {
|
|
160
|
+
#contextual-clay > header { cursor: default; }
|
|
161
|
+
#contextual-clay [data-clay-resize] { display: none; }
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* The second click belongs to the strip icon, with a persistent quiet hint. */
|
|
165
|
+
#contextual-mate-hint { position: fixed; z-index: 225; min-height: 28px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text-secondary); box-shadow: 0 1px 3px rgba(var(--shadow-rgb), .10); font: inherit; font-size: 12px; line-height: 18px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
|
|
166
|
+
#contextual-mate-hint[hidden] { display: none; }
|
|
167
|
+
#contextual-mate-hint:hover { color: var(--text); border-color: var(--text-muted); }
|
|
168
|
+
#contextual-mate-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
169
|
+
#contextual-clay strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
170
|
+
#contextual-clay [data-clay-expand] { max-width: 150px; }
|
|
171
|
+
#contextual-clay [data-clay-expand] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
172
|
+
#contextual-clay iframe[hidden] { display: none; }
|
|
173
|
+
@media (max-width: 768px) {
|
|
174
|
+
.contextual-mate-mobile-trigger { position: fixed; z-index: 220; top: 4px; left: 4px; display: flex; width: 38px; height: 38px; margin: 0; background: var(--bg); border-radius: 10px; }
|
|
175
|
+
.contextual-mate-ordinary-mobile > .icon-strip-brand { visibility: hidden; }
|
|
176
|
+
.contextual-mate-hint-mobile .title-bar-content { visibility: hidden; }
|
|
177
|
+
#contextual-mate-hint { min-height: 32px; border-radius: 16px; }
|
|
178
|
+
#contextual-clay [data-clay-expand] { max-width: 122px; }
|
|
179
|
+
}
|
|
180
|
+
@media (pointer: coarse) { #contextual-mate-hint { min-height: 36px; } }
|
|
181
|
+
@media (pointer: coarse) {
|
|
182
|
+
.contextual-clay-mobile-trigger, .contextual-mate-mobile-trigger { width: 44px; height: 44px; top: 2px; left: 2px; }
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* A quiet role summary stays separate from the current-context disclosure. */
|
|
186
|
+
#contextual-clay .contextual-capabilities {
|
|
187
|
+
flex-shrink: 0;
|
|
188
|
+
margin: 0;
|
|
189
|
+
padding: 7px 12px;
|
|
190
|
+
border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border-subtle));
|
|
191
|
+
color: var(--text-secondary);
|
|
192
|
+
background: color-mix(in srgb, var(--accent) 8%, var(--bg));
|
|
193
|
+
font-size: 12px;
|
|
194
|
+
line-height: 1.45;
|
|
195
|
+
overflow-wrap: anywhere;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Floating chat keeps writing and controls inside one quiet composer. */
|
|
199
|
+
body.contextual-chat-pane #input-row,
|
|
200
|
+
body.contextual-chat-pane #input-row:focus-within { position: relative; grid-template-columns: 36px minmax(0, 1fr) auto 58px 42px; gap: 0 3px; }
|
|
201
|
+
body.contextual-chat-pane #input-row::before { grid-area: 4 / 1 / 6 / -1; border-radius: 16px; }
|
|
202
|
+
body.contextual-chat-pane #input-textarea-wrap { grid-area: 4 / 1 / 5 / -1; min-width: 0; }
|
|
203
|
+
body.contextual-chat-pane #input, body.contextual-chat-pane #ghost-suggestion { padding: 11px 13px 5px; }
|
|
204
|
+
body.contextual-chat-pane #contextual-attach-btn { grid-area: 5 / 1 / 6 / 2; position: relative; align-self: center; justify-self: center; width: 32px; height: 34px; margin: 3px 0 6px 6px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
|
|
205
|
+
body.contextual-chat-pane #contextual-attach-btn .lucide { width: 18px; height: 18px; }
|
|
206
|
+
body.contextual-chat-pane #contextual-attach-btn:hover { background: var(--bg-alt); color: var(--text); }
|
|
207
|
+
body.contextual-chat-pane #contextual-attach-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
208
|
+
body.contextual-chat-pane #config-chip-wrap { grid-area: 5 / 2 / 6 / 3; min-width: 0; max-width: 100%; justify-self: start; align-self: center; margin-bottom: 3px; }
|
|
209
|
+
body.contextual-chat-pane #config-chip { max-width: 100%; min-width: 0; padding: 0 5px; height: 34px; }
|
|
210
|
+
body.contextual-chat-pane #config-chip-label { display: block; overflow: hidden; text-overflow: ellipsis; }
|
|
211
|
+
body.contextual-chat-pane #config-chip .config-chip-icon { display: none; }
|
|
212
|
+
body.contextual-chat-pane #config-chip .lucide:last-child { display: block; flex-shrink: 0; }
|
|
213
|
+
body.contextual-chat-pane #input-bottom-right > #generation-stop { grid-area: 5 / 3 / 6 / 4; width: 60px; min-width: 0; box-sizing: border-box; margin: 3px 0 6px; }
|
|
214
|
+
body.contextual-chat-pane #input-bottom-right > .stt-controls { grid-area: 5 / 4 / 6 / 5; align-self: center; margin: 0 0 3px; }
|
|
215
|
+
body.contextual-chat-pane #stt-btn { margin: 3px 0 6px; }
|
|
216
|
+
body.contextual-chat-pane #send-btn { grid-area: 5 / 5 / 6 / 6; margin: 3px 7px 6px 0; }
|
|
217
|
+
body.contextual-chat-pane #contextual-attach-popover,
|
|
218
|
+
body.contextual-chat-pane #config-popover { position: fixed; right: auto; min-width: 0; box-sizing: border-box; overflow: auto; overscroll-behavior: contain; z-index: 220; }
|
|
219
|
+
body.contextual-chat-pane #contextual-attach-popover { padding: 5px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); box-shadow: 0 3px 12px rgba(var(--shadow-rgb), .15); }
|
|
220
|
+
body.contextual-chat-pane #contextual-attach-popover[hidden] { display: none; }
|
|
221
|
+
body.contextual-chat-pane #attach-wrap,
|
|
222
|
+
body.contextual-chat-pane #attach-wrap .composer-tool-group-inputs { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
|
|
223
|
+
body.contextual-chat-pane #attach-wrap #input-more-btn { display: none !important; }
|
|
224
|
+
body.contextual-chat-pane #attach-file-btn,
|
|
225
|
+
body.contextual-chat-pane #attach-image-btn,
|
|
226
|
+
body.contextual-chat-pane #context-sources-add { display: flex !important; align-items: center; justify-content: start; gap: 8px; width: 100%; height: 34px; padding: 0 9px; font: inherit; font-size: 13px; border-radius: 6px; }
|
|
227
|
+
body.contextual-chat-pane #context-sources-btn-wrap { display: block !important; }
|
|
228
|
+
body.contextual-chat-pane #context-sources-picker { position: static; width: 100%; min-width: 0; max-height: 220px; box-shadow: none; }
|
|
229
|
+
body.contextual-chat-pane #attach-file-btn .lucide,
|
|
230
|
+
body.contextual-chat-pane #attach-image-btn .lucide { width: 16px; height: 16px; }
|
|
231
|
+
body.contextual-chat-pane .stt-recording #contextual-attach-btn { display: none; }
|
|
232
|
+
body.contextual-chat-pane #input-row.stt-recording::before,
|
|
233
|
+
body.contextual-chat-pane #input-row:has(.stt-progress:not([hidden]))::before { grid-area: 4 / 1 / 7 / -1; }
|
|
234
|
+
body.contextual-chat-pane #input-row .stt-progress { grid-area: 6 / 1 / 7 / -1; width: auto; margin: 0 8px 6px; }
|
|
235
|
+
@media (pointer: coarse) {
|
|
236
|
+
body.contextual-chat-pane #input-row, body.contextual-chat-pane #input-row:focus-within { grid-template-columns: 44px minmax(0, 1fr) auto 58px 46px; }
|
|
237
|
+
body.contextual-chat-pane #contextual-attach-btn, body.contextual-chat-pane #config-chip,
|
|
238
|
+
body.contextual-chat-pane #attach-file-btn, body.contextual-chat-pane #attach-image-btn,
|
|
239
|
+
body.contextual-chat-pane #context-sources-add { min-height: 44px; }
|
|
240
|
+
}
|
|
@@ -87,6 +87,8 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.home-debate-question-text { margin: 0 0 14px; font-size: 15px; }
|
|
90
|
+
.mcp-import-consent .home-debate-question-text,
|
|
91
|
+
.mcp-import-consent .ask-user-question-text { white-space: pre-line; font-size: 13px; line-height: 1.6; }
|
|
90
92
|
.home-debate-question-form { display: grid; gap: 8px; }
|
|
91
93
|
.home-debate-question-option {
|
|
92
94
|
display: grid;
|
|
@@ -32,3 +32,8 @@
|
|
|
32
32
|
.home-mate-proposal-facts dd + dt { margin-top: 7px; }
|
|
33
33
|
.home-mate-proposal-actions button { flex: 1; }
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
.home-mate-proposal-schedule-details { margin-top: 2px; color: var(--text-dimmer); }
|
|
37
|
+
.home-mate-proposal-schedule-details summary { width: fit-content; padding-block: 3px; cursor: pointer; font-weight: 400; }
|
|
38
|
+
.home-mate-proposal-schedule-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
39
|
+
.home-mate-proposal-schedule-details[open] > div { padding-top: 3px; color: var(--text-muted); }
|
package/lib/public/css/input.css
CHANGED
|
@@ -1754,3 +1754,9 @@ body:not(.worker-pane-locked) #input-bottom-right:has(#send-btn.stop:not(:disabl
|
|
|
1754
1754
|
margin: 8px auto 0;
|
|
1755
1755
|
}
|
|
1756
1756
|
#input-area > #generation-stop.hidden { display: none; }
|
|
1757
|
+
|
|
1758
|
+
.session-switch-wait {
|
|
1759
|
+
padding: 6px 8px;
|
|
1760
|
+
font-size: 12px;
|
|
1761
|
+
color: var(--text-secondary);
|
|
1762
|
+
}
|