A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Paint every danger color with one --bt-danger
Fei241126a6f5aa8cf6
diff --git a/ds-bot/client.js b/ds-bot/client.jsindex 137da9c0..6c020071 100644--- a/ds-bot/client.js+++ b/ds-bot/client.js@@ -1859,7 +1859,7 @@ function useLinger(value, ms) {// src/client/styles.jsvar SKIN_FOOT = ':is(div,footer):not([class*="_footArea"]):has(> div > [data-slot="sidebar.footer.action"] > .bt-connect-wrap)';var SHELL_CSS = `-body{--bt-ink:#141414;--bt-ink-2:rgba(20,20,20,.6);--bt-ink-3:rgba(20,20,20,.36);--bt-bubble:#eeeeee;--bt-sidebar:#f7f7f7;--bt-main:#fcfcfc;--bt-line:rgba(20,20,20,.08);--bt-line-2:rgba(20,20,20,.15);--bt-line-weak:rgba(20,20,20,.1);--bt-hover:rgba(119,119,119,.09);--bt-active:rgba(119,119,119,.17);--bt-card:#ffffff;--bt-accent:#4d6bfe;--bt-green:#00c972;--bt-star:#ff9800;--bt-user:#070707;--bt-user-ink:#fcfcfc;--bt-tag-bg:rgba(20,20,20,.06);--bt-tag-ink:rgba(20,20,20,.56)}+body{--bt-ink:#141414;--bt-danger:#e02135;--bt-ink-2:rgba(20,20,20,.6);--bt-ink-3:rgba(20,20,20,.36);--bt-bubble:#eeeeee;--bt-sidebar:#f7f7f7;--bt-main:#fcfcfc;--bt-line:rgba(20,20,20,.08);--bt-line-2:rgba(20,20,20,.15);--bt-line-weak:rgba(20,20,20,.1);--bt-hover:rgba(119,119,119,.09);--bt-active:rgba(119,119,119,.17);--bt-card:#ffffff;--bt-accent:#4d6bfe;--bt-green:#00c972;--bt-star:#ff9800;--bt-user:#070707;--bt-user-ink:#fcfcfc;--bt-tag-bg:rgba(20,20,20,.06);--bt-tag-ink:rgba(20,20,20,.56)}body[data-ds-dark-theme]{--bt-ink:#f2f2f2;--bt-ink-2:rgba(242,242,242,.6);--bt-ink-3:rgba(242,242,242,.36);--bt-bubble:#262626;--bt-sidebar:#1b1b1b;--bt-main:#141414;--bt-line:rgba(255,255,255,.08);--bt-line-2:rgba(255,255,255,.15);--bt-line-weak:rgba(255,255,255,.1);--bt-hover:rgba(160,160,160,.12);--bt-active:rgba(160,160,160,.2);--bt-card:#1f1f1f;--bt-user:#f2f2f2;--bt-user-ink:#141414;--bt-tag-bg:rgba(255,255,255,.09);--bt-tag-ink:rgba(242,242,242,.62)}${Object.entries(INKS).map(([name, [light]]) => `body{--bt-ink-${name}:${light}}`).join("")}${Object.entries(INKS).map(([name, [, dark]]) => `body[data-ds-dark-theme]{--bt-ink-${name}:${dark}}`).join("")}@@ -2156,7 +2156,7 @@ button.bt-q-opt:active{background:var(--bt-active)}@media (prefers-reduced-motion:reduce){.bt-create-card,.bt-create-pop{animation:none}}.bt-send{height:40px;min-width:40px;border-radius:999px;border:0;background:var(--bt-accent);color:var(--bt-accent-ink,#fff);font-size:14px;padding:0 14px;cursor:pointer;flex:none;white-space:nowrap}.bt-send:disabled{opacity:.35;cursor:default}-.bt-error{padding:0 14px 10px;color:#e02135;font-size:12px}+.bt-error{padding:0 14px 10px;color:var(--bt-danger);font-size:12px}.bt-pane{position:fixed;top:var(--dsh-frame-chrome-top,0px);right:0;bottom:0;z-index:45;pointer-events:auto;background:var(--bt-main);color:var(--bt-ink);display:flex;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}.bt-dialog{flex:1;display:flex;flex-direction:column;min-width:0}@@ -2224,7 +2224,7 @@ button.bt-q-opt:active{background:var(--bt-active)}.bt-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.bt-kv{display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:20px;color:var(--bt-ink-2)}.bt-kv span:last-child{color:var(--bt-ink);font-variant-numeric:tabular-nums}-.bt-danger{color:#e02135}+.bt-danger{color:var(--bt-danger)}/* Bot settings: fields, the avatar editor popover, and the details-pane sub-view. */.bt-field{display:flex;flex-direction:column;gap:6px}@@ -2275,7 +2275,7 @@ button.bt-q-opt:active{background:var(--bt-active)}.bt-drawer-model{display:flex;flex-direction:column}.bt-drawer-model .bt-note{margin-top:6px}.bt-drawer-permission{display:flex;flex-direction:column}-.bt-seg button.bt-perm-danger,.bt-seg button.bt-perm-danger[aria-pressed=true],.bt-kv span.bt-perm-danger{color:#e02135}+.bt-seg button.bt-perm-danger,.bt-seg button.bt-perm-danger[aria-pressed=true],.bt-kv span.bt-perm-danger{color:var(--bt-danger)}/* Settings dialog: a 198px page list beside the page. */.bt-settings-layer{position:fixed;inset:var(--dsh-frame-chrome-top,0px) 0 0;z-index:60;display:flex;align-items:center;justify-content:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}@@ -2342,12 +2342,12 @@ button.bt-set-row:hover{background:var(--bt-hover)}.bt-connector-name{font-size:14px;line-height:20px;font-weight:500}.bt-connector-status{font-size:12px;line-height:16px;color:var(--bt-ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bt-connector[data-state=ready] .bt-connector-status{color:var(--bt-ink-2)}-.bt-connector[data-state=error] .bt-connector-status{color:#e02135;white-space:normal}+.bt-connector[data-state=error] .bt-connector-status{color:var(--bt-danger);white-space:normal}.bt-connector-actions{flex:none;display:flex;gap:6px}.bt-connector-form{display:flex;flex-direction:column;gap:8px;padding-left:48px;animation:bt-q-in ${SPRING_SHAPE.duration}ms ${SPRING_SHAPE.easing},bt-veil-in .2s ease-out}.bt-connector-form-row{display:flex;align-items:center;gap:6px}.bt-connector-link{flex:1;font-size:12px;color:var(--bt-ink-2)}-.bt-connector-error{padding-left:48px;font-size:12px;line-height:16px;color:#e02135}+.bt-connector-error{padding-left:48px;font-size:12px;line-height:16px;color:var(--bt-danger)}/* Shell chrome reshaped for the team view. Selectors use stable data attributes where theshell offers them and CSS-module name suffixes elsewhere. */@@ -2388,7 +2388,7 @@ ${SKIN_FOOT}>div:has(> [data-slot="sidebar.settings"]){order:-1!important;flex:n.bt-voice-name{font-size:16px;line-height:22px;font-weight:500}.bt-voice-status{font-size:13px;line-height:18px;color:var(--bt-ink-2);min-height:18px}.bt-voice-caption{min-height:44px;font-size:15px;line-height:22px;color:var(--bt-ink);animation:bt-blur-in .25s ease-out;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}-.bt-voice-note{font-size:12px;color:#e02135}+.bt-voice-note{font-size:12px;color:var(--bt-danger)}.bt-voice-setup{height:32px;padding:0 14px;border-radius:16px;border:0;background:var(--bt-hover);color:var(--bt-ink);font:inherit;font-size:13px;cursor:pointer;transition:background-color .15s ease}.bt-voice-setup:hover{background:var(--bt-active)}.bt-voice-bar{display:flex;gap:16px;padding:0 0 32px}@@ -2439,7 +2439,7 @@ button:hover .bt-you{background:color-mix(in srgb,var(--bt-ink) 9%,var(--bt-side.bt-menu button{display:flex;align-items:center;gap:4px;width:100%;min-height:30px;text-align:left;border:0;background:none;border-radius:6px;padding:6px 8px;font:inherit;font-size:13px;line-height:18px;color:var(--bt-ink);cursor:pointer;box-sizing:border-box}.bt-menu button:hover{background:var(--bt-hover)}.bt-menu button svg{flex:none;width:16px;height:16px;margin:0 1px}-.bt-menu .bt-danger{color:#c21d2e}+.bt-menu .bt-danger{color:var(--bt-danger)}.bt-menu-sep{height:.5px;flex:none;background:var(--bt-line-2);margin:4px 8px}.bt-menu-up{--bt-origin:bottom left;animation-name:bt-pop-lift,bt-veil-in}.bt-menu[data-leaving]{pointer-events:none;animation:bt-pop-out .12s cubic-bezier(.4,0,1,1) forwards}@@ -2595,7 +2595,7 @@ body[data-ds-dark-theme] .bt-theme-chip i{background:var(--da)}.bt-mem-remove{flex:none;height:28px;min-width:28px;border-radius:999px;border:0;background:none;color:var(--bt-ink-3);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0 6px;font:inherit;font-size:12px;opacity:0;transition:opacity .12s ease,background-color .12s ease,color .12s ease}.bt-mem-entry:hover .bt-mem-remove,.bt-mem-remove:focus-visible,.bt-mem-remove[data-confirm]{opacity:1}.bt-mem-remove:hover{background:var(--bt-hover);color:var(--bt-ink)}-.bt-mem-remove[data-confirm]{background:rgba(224,33,53,.1);color:#e02135;padding:0 10px}+.bt-mem-remove[data-confirm]{background:color-mix(in srgb,var(--bt-danger) 10%,transparent);color:var(--bt-danger);padding:0 10px}@media (hover:none){.bt-mem-remove{opacity:1}}.bt-mem-none{font-size:13px;line-height:18px;color:var(--bt-ink-3);padding:8px 4px}.bt-mem-foot{flex:none;padding:8px 20px 20px;display:flex;flex-direction:column;gap:10px}@@ -2606,7 +2606,7 @@ body[data-ds-dark-theme] .bt-theme-chip i{background:var(--da)}.bt-mem-reply-text{font-size:14px;line-height:21px;padding-right:8px;overflow-wrap:anywhere}.bt-mem-changes{list-style:none;margin:2px 0 0;padding:0 8px 0 0;display:flex;flex-direction:column;gap:4px}.bt-mem-changes li{display:flex;align-items:flex-start;gap:6px;font-size:13px;line-height:18px;color:var(--bt-ink-2);overflow-wrap:anywhere}-.bt-mem-changes li svg{flex:none;margin-top:1px;color:#e02135;animation:bt-check-pop ${SPRING_POP.duration}ms ${SPRING_POP.easing} .12s backwards}+.bt-mem-changes li svg{flex:none;margin-top:1px;color:var(--bt-danger);animation:bt-check-pop ${SPRING_POP.duration}ms ${SPRING_POP.easing} .12s backwards}.bt-mem-changes li[data-ok] svg{color:var(--bt-green)}.bt-mem-ask{display:flex;align-items:center;gap:8px;height:52px;padding:0 8px 0 22px;border-radius:999px;border:.5px solid var(--bt-line-2);background:var(--bt-card);box-shadow:0 4px 16px rgba(0,0,0,.06);box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.bt-mem-ask:focus-within{border-color:var(--bt-ink-3);box-shadow:0 4px 20px rgba(0,0,0,.1)}@@ -3787,7 +3787,7 @@ var SECRET_CSS = `.bt-secret-note{font-size:12px;line-height:17px;color:var(--bt-ink-3)}.bt-secret-note code,.bt-secret-about code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px}.bt-secret-warn{display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px;font-size:12px;line-height:16px;color:#b25e09;background:color-mix(in srgb,#f59e0b 12%,transparent)}-.bt-secret-error{font-size:12px;line-height:16px;color:#e02135}+.bt-secret-error{font-size:12px;line-height:16px;color:var(--bt-danger)}.bt-secret .bt-q-btn:disabled{opacity:.5;cursor:default}.bt-secret-done .bt-q-head{align-items:center}.bt-secret-done .bt-q-title{font-size:13px;line-height:18px;color:var(--bt-ink-2);font-weight:500}@@ -3817,7 +3817,7 @@ var SECRET_CSS = `.bt-secret-inline{display:flex;gap:8px;align-items:center}.bt-secret-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.bt-secret-row-actions .bt-set-hint{flex:1}-.bt-secret-danger{color:#e02135;display:inline-flex;align-items:center;gap:4px}+.bt-secret-danger{color:var(--bt-danger);display:inline-flex;align-items:center;gap:4px}.bt-secret-danger svg{width:13px;height:13px}.bt-secret-add .bt-input{height:34px}@media (prefers-reduced-motion:reduce){.bt-secret-glide{transition:none}.bt-secret-check,.bt-secret-done,.bt-secret-ok,.bt-secret-edit{animation:none}}@@ -5644,7 +5644,7 @@ var SIDEBAR_CSS = `@keyframes bt-update-pop{from{opacity:0;transform:scale(.96);filter:blur(4px)}}.bt-update-title{font-size:14px;line-height:20px;font-weight:600}.bt-update-text{margin-top:2px;font-size:12.5px;line-height:18px;color:var(--bt-ink-2)}-.bt-update-error{margin-top:8px;font-size:12px;line-height:17px;color:#c21d2e;overflow-wrap:anywhere;max-height:90px;overflow:auto}+.bt-update-error{margin-top:8px;font-size:12px;line-height:17px;color:var(--bt-danger);overflow-wrap:anywhere;max-height:90px;overflow:auto}.bt-update-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px}.bt-update-notes{margin-right:auto;font-size:12.5px;color:var(--bt-ink-2);text-decoration:none}.bt-update-notes:hover{color:var(--bt-ink);text-decoration:underline}@@ -6828,7 +6828,7 @@ var MODEL_CSS = `.bt-model-trigger{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;height:auto;min-height:32px;padding:4px 8px 4px 10px;border:0;border-radius:8px;background:var(--bt-hover);color:var(--bt-ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .12s ease}.bt-model-trigger:hover,.bt-model-trigger[aria-expanded=true]{background:var(--bt-active)}.bt-model-trigger:focus-visible{outline:2px solid var(--bt-accent);outline-offset:1px}-.bt-model-trigger[data-missing] .bt-model-provider{color:#c21d2e}+.bt-model-trigger[data-missing] .bt-model-provider{color:var(--bt-danger)}.bt-model-trigger[data-wide]{display:flex;width:100%;min-height:48px;padding:7px 12px;justify-content:space-between;border-radius:12px;background:var(--bt-card);box-shadow:inset 0 0 0 1px var(--bt-line)}.bt-model-trigger[data-wide]:hover,.bt-model-trigger[data-wide][aria-expanded=true]{background:var(--bt-hover)}.bt-model-copy{display:flex;flex-direction:column;min-width:0}@@ -7011,7 +7011,7 @@ var FOLDER_CSS = `.bt-folder-input:focus{border-color:var(--bt-accent)}.bt-menu .bt-folder-use{justify-content:center;font-weight:500;color:var(--bt-accent)}.bt-menu .bt-folder-use:disabled{color:var(--bt-ink-3);cursor:default;background:none}-.bt-folder-error{padding:4px 8px;font-size:12px;line-height:16px;color:#c21d2e;overflow-wrap:anywhere}+.bt-folder-error{padding:4px 8px;font-size:12px;line-height:16px;color:var(--bt-danger);overflow-wrap:anywhere}@media (prefers-reduced-motion:reduce){.bt-folder-view{animation:none}}`;@@ -7313,7 +7313,7 @@ var SCHEDULE_CSS = `.bt-task-next{flex:none;font-size:12px;line-height:16px;color:var(--bt-ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}.bt-task-remove{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;color:var(--bt-ink-3)}.bt-task-remove svg{width:14px;height:14px}-.bt-task-remove[data-confirm]{background:rgba(224,33,53,.1);color:#e02135}+.bt-task-remove[data-confirm]{background:color-mix(in srgb,var(--bt-danger) 10%,transparent);color:var(--bt-danger)}.bt-task-head{display:flex;align-items:center;gap:6px}.bt-task-form{animation:bt-q-in .4s cubic-bezier(.22,1,.36,1),bt-veil-in .2s ease-out}.bt-task-bot{width:auto;min-width:160px;max-width:58%}@@ -8326,9 +8326,9 @@ label.bt-bs-row{cursor:text}.bt-bs-stack{flex-direction:column;align-items:stretch;gap:8px}.bt-bs-area{flex:none;width:auto;min-height:112px;height:auto;margin:0 -6px -4px;padding:8px;line-height:19px;text-align:left;resize:vertical;background:var(--bt-hover)}.bt-bs-area:hover{background:var(--bt-active)}-.bt-bs-danger .bt-bs-label{color:#c21d2e}-.bt-bs-danger[data-confirm]{background:color-mix(in srgb,#e02135 8%,transparent)}-.bt-bs-danger[data-confirm]:hover{background:color-mix(in srgb,#e02135 12%,transparent)}+.bt-bs-danger .bt-bs-label{color:var(--bt-danger)}+.bt-bs-danger[data-confirm]{background:color-mix(in srgb,var(--bt-danger) 8%,transparent)}+.bt-bs-danger[data-confirm]:hover{background:color-mix(in srgb,var(--bt-danger) 12%,transparent)}.bt-switch{position:relative;flex:none;width:36px;height:20px;padding:0;border:0;border-radius:999px;background:var(--bt-line-2);cursor:pointer;transition:background-color .2s ease}.bt-switch[aria-checked=true]{background:var(--bt-accent)}.bt-switch:disabled{opacity:.45;cursor:default}@@ -10662,15 +10662,15 @@ var FEEDBACK_CSS = `.bt-fb-primary:active{filter:brightness(.94)}.bt-fb-note{margin:-8px 4px 0}.bt-fb-entry{cursor:default;align-items:flex-start}-.bt-fb-dot{flex:none;width:6px;height:6px;border-radius:50%;margin-top:6px;background:#e02135}+.bt-fb-dot{flex:none;width:6px;height:6px;border-radius:50%;margin-top:6px;background:var(--bt-danger,#e02135)}.bt-fb-dot[data-level=warn]{background:#e3a008}.bt-fb-text{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.bt-fb-code{flex:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}-.bt-event-error{color:#e02135}+.bt-event-error{color:var(--bt-danger,#e02135)}.bt-toast{position:fixed;left:50%;bottom:28px;z-index:1000;display:flex;align-items:center;gap:8px;max-width:min(560px,calc(100vw - 32px));padding:8px 8px 8px 14px;border-radius:12px;background:var(--bt-card,#fff);color:var(--bt-ink,#141414);border:1px solid var(--bt-line-2,rgba(0,0,0,.15));box-shadow:0 8px 28px rgba(0,0,0,.14);font-size:13px;line-height:18px;transform:translateX(-50%);animation:bt-toast-in ${SPRING_SHAPE.duration}ms ${SPRING_SHAPE.easing},bt-veil-in .2s ease-out}.bt-toast[data-leaving]{opacity:0;transform:translate(-50%,6px) scale(.98);filter:blur(3px);transition:opacity .18s ease-in,transform .18s ease-in,filter .18s ease-in}.bt-toast-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}-.bt-toast-text::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#e02135;margin:0 8px 1px 0}+.bt-toast-text::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--bt-danger,#e02135);margin:0 8px 1px 0}.bt-toast-link{flex:none;border:0;background:none;color:var(--bt-ink-2);font:inherit;font-size:12px;cursor:pointer;padding:4px 6px;border-radius:6px}.bt-toast-link:hover{background:var(--bt-hover);color:var(--bt-ink)}.bt-toast-close{flex:none}diff --git a/ds-bot/src/client/bot-settings.js b/ds-bot/src/client/bot-settings.jsindex 3651a710..d7b3ed25 100644--- a/ds-bot/src/client/bot-settings.js+++ b/ds-bot/src/client/bot-settings.js@@ -276,9 +276,9 @@ label.bt-bs-row{cursor:text}.bt-bs-stack{flex-direction:column;align-items:stretch;gap:8px}.bt-bs-area{flex:none;width:auto;min-height:112px;height:auto;margin:0 -6px -4px;padding:8px;line-height:19px;text-align:left;resize:vertical;background:var(--bt-hover)}.bt-bs-area:hover{background:var(--bt-active)}-.bt-bs-danger .bt-bs-label{color:#c21d2e}-.bt-bs-danger[data-confirm]{background:color-mix(in srgb,#e02135 8%,transparent)}-.bt-bs-danger[data-confirm]:hover{background:color-mix(in srgb,#e02135 12%,transparent)}+.bt-bs-danger .bt-bs-label{color:var(--bt-danger)}+.bt-bs-danger[data-confirm]{background:color-mix(in srgb,var(--bt-danger) 8%,transparent)}+.bt-bs-danger[data-confirm]:hover{background:color-mix(in srgb,var(--bt-danger) 12%,transparent)}.bt-switch{position:relative;flex:none;width:36px;height:20px;padding:0;border:0;border-radius:999px;background:var(--bt-line-2);cursor:pointer;transition:background-color .2s ease}.bt-switch[aria-checked=true]{background:var(--bt-accent)}.bt-switch:disabled{opacity:.45;cursor:default}diff --git a/ds-bot/src/client/feedback.js b/ds-bot/src/client/feedback.jsindex 69e2cfdd..e05d18cd 100644--- a/ds-bot/src/client/feedback.js+++ b/ds-bot/src/client/feedback.js@@ -164,15 +164,15 @@ export const FEEDBACK_CSS = `.bt-fb-primary:active{filter:brightness(.94)}.bt-fb-note{margin:-8px 4px 0}.bt-fb-entry{cursor:default;align-items:flex-start}-.bt-fb-dot{flex:none;width:6px;height:6px;border-radius:50%;margin-top:6px;background:#e02135}+.bt-fb-dot{flex:none;width:6px;height:6px;border-radius:50%;margin-top:6px;background:var(--bt-danger,#e02135)}.bt-fb-dot[data-level=warn]{background:#e3a008}.bt-fb-text{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.bt-fb-code{flex:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}-.bt-event-error{color:#e02135}+.bt-event-error{color:var(--bt-danger,#e02135)}.bt-toast{position:fixed;left:50%;bottom:28px;z-index:1000;display:flex;align-items:center;gap:8px;max-width:min(560px,calc(100vw - 32px));padding:8px 8px 8px 14px;border-radius:12px;background:var(--bt-card,#fff);color:var(--bt-ink,#141414);border:1px solid var(--bt-line-2,rgba(0,0,0,.15));box-shadow:0 8px 28px rgba(0,0,0,.14);font-size:13px;line-height:18px;transform:translateX(-50%);animation:bt-toast-in ${SPRING_SHAPE.duration}ms ${SPRING_SHAPE.easing},bt-veil-in .2s ease-out}.bt-toast[data-leaving]{opacity:0;transform:translate(-50%,6px) scale(.98);filter:blur(3px);transition:opacity .18s ease-in,transform .18s ease-in,filter .18s ease-in}.bt-toast-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}-.bt-toast-text::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#e02135;margin:0 8px 1px 0}+.bt-toast-text::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--bt-danger,#e02135);margin:0 8px 1px 0}.bt-toast-link{flex:none;border:0;background:none;color:var(--bt-ink-2);font:inherit;font-size:12px;cursor:pointer;padding:4px 6px;border-radius:6px}.bt-toast-link:hover{background:var(--bt-hover);color:var(--bt-ink)}.bt-toast-close{flex:none}diff --git a/ds-bot/src/client/folder-menu.js b/ds-bot/src/client/folder-menu.jsindex 0741b770..d715b750 100644--- a/ds-bot/src/client/folder-menu.js+++ b/ds-bot/src/client/folder-menu.js@@ -105,6 +105,6 @@ export const FOLDER_CSS = `.bt-folder-input:focus{border-color:var(--bt-accent)}.bt-menu .bt-folder-use{justify-content:center;font-weight:500;color:var(--bt-accent)}.bt-menu .bt-folder-use:disabled{color:var(--bt-ink-3);cursor:default;background:none}-.bt-folder-error{padding:4px 8px;font-size:12px;line-height:16px;color:#c21d2e;overflow-wrap:anywhere}+.bt-folder-error{padding:4px 8px;font-size:12px;line-height:16px;color:var(--bt-danger);overflow-wrap:anywhere}@media (prefers-reduced-motion:reduce){.bt-folder-view{animation:none}}`diff --git a/ds-bot/src/client/model-menu.js b/ds-bot/src/client/model-menu.jsindex 28cd67da..e2e149a0 100644--- a/ds-bot/src/client/model-menu.js+++ b/ds-bot/src/client/model-menu.js@@ -275,7 +275,7 @@ export const MODEL_CSS = `.bt-model-trigger{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;height:auto;min-height:32px;padding:4px 8px 4px 10px;border:0;border-radius:8px;background:var(--bt-hover);color:var(--bt-ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .12s ease}.bt-model-trigger:hover,.bt-model-trigger[aria-expanded=true]{background:var(--bt-active)}.bt-model-trigger:focus-visible{outline:2px solid var(--bt-accent);outline-offset:1px}-.bt-model-trigger[data-missing] .bt-model-provider{color:#c21d2e}+.bt-model-trigger[data-missing] .bt-model-provider{color:var(--bt-danger)}.bt-model-trigger[data-wide]{display:flex;width:100%;min-height:48px;padding:7px 12px;justify-content:space-between;border-radius:12px;background:var(--bt-card);box-shadow:inset 0 0 0 1px var(--bt-line)}.bt-model-trigger[data-wide]:hover,.bt-model-trigger[data-wide][aria-expanded=true]{background:var(--bt-hover)}.bt-model-copy{display:flex;flex-direction:column;min-width:0}diff --git a/ds-bot/src/client/schedules.js b/ds-bot/src/client/schedules.jsindex 6916b7cb..c35a7929 100644--- a/ds-bot/src/client/schedules.js+++ b/ds-bot/src/client/schedules.js@@ -239,7 +239,7 @@ export const SCHEDULE_CSS = `.bt-task-next{flex:none;font-size:12px;line-height:16px;color:var(--bt-ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}.bt-task-remove{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;color:var(--bt-ink-3)}.bt-task-remove svg{width:14px;height:14px}-.bt-task-remove[data-confirm]{background:rgba(224,33,53,.1);color:#e02135}+.bt-task-remove[data-confirm]{background:color-mix(in srgb,var(--bt-danger) 10%,transparent);color:var(--bt-danger)}.bt-task-head{display:flex;align-items:center;gap:6px}.bt-task-form{animation:bt-q-in .4s cubic-bezier(.22,1,.36,1),bt-veil-in .2s ease-out}.bt-task-bot{width:auto;min-width:160px;max-width:58%}diff --git a/ds-bot/src/client/secret-card.js b/ds-bot/src/client/secret-card.jsindex 56671dff..aac8e4f4 100644--- a/ds-bot/src/client/secret-card.js+++ b/ds-bot/src/client/secret-card.js@@ -296,7 +296,7 @@ export const SECRET_CSS = `.bt-secret-note{font-size:12px;line-height:17px;color:var(--bt-ink-3)}.bt-secret-note code,.bt-secret-about code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px}.bt-secret-warn{display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px;font-size:12px;line-height:16px;color:#b25e09;background:color-mix(in srgb,#f59e0b 12%,transparent)}-.bt-secret-error{font-size:12px;line-height:16px;color:#e02135}+.bt-secret-error{font-size:12px;line-height:16px;color:var(--bt-danger)}.bt-secret .bt-q-btn:disabled{opacity:.5;cursor:default}.bt-secret-done .bt-q-head{align-items:center}.bt-secret-done .bt-q-title{font-size:13px;line-height:18px;color:var(--bt-ink-2);font-weight:500}@@ -326,7 +326,7 @@ export const SECRET_CSS = `.bt-secret-inline{display:flex;gap:8px;align-items:center}.bt-secret-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.bt-secret-row-actions .bt-set-hint{flex:1}-.bt-secret-danger{color:#e02135;display:inline-flex;align-items:center;gap:4px}+.bt-secret-danger{color:var(--bt-danger);display:inline-flex;align-items:center;gap:4px}.bt-secret-danger svg{width:13px;height:13px}.bt-secret-add .bt-input{height:34px}@media (prefers-reduced-motion:reduce){.bt-secret-glide{transition:none}.bt-secret-check,.bt-secret-done,.bt-secret-ok,.bt-secret-edit{animation:none}}diff --git a/ds-bot/src/client/sidebar.js b/ds-bot/src/client/sidebar.jsindex 8ab9fe69..9c4a0bc2 100644--- a/ds-bot/src/client/sidebar.js+++ b/ds-bot/src/client/sidebar.js@@ -626,7 +626,7 @@ export const SIDEBAR_CSS = `@keyframes bt-update-pop{from{opacity:0;transform:scale(.96);filter:blur(4px)}}.bt-update-title{font-size:14px;line-height:20px;font-weight:600}.bt-update-text{margin-top:2px;font-size:12.5px;line-height:18px;color:var(--bt-ink-2)}-.bt-update-error{margin-top:8px;font-size:12px;line-height:17px;color:#c21d2e;overflow-wrap:anywhere;max-height:90px;overflow:auto}+.bt-update-error{margin-top:8px;font-size:12px;line-height:17px;color:var(--bt-danger);overflow-wrap:anywhere;max-height:90px;overflow:auto}.bt-update-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px}.bt-update-notes{margin-right:auto;font-size:12.5px;color:var(--bt-ink-2);text-decoration:none}.bt-update-notes:hover{color:var(--bt-ink);text-decoration:underline}diff --git a/ds-bot/src/client/styles.js b/ds-bot/src/client/styles.jsindex a99bcb98..39098a8c 100644--- a/ds-bot/src/client/styles.js+++ b/ds-bot/src/client/styles.js@@ -18,7 +18,7 @@ const SKIN_FOOT = ':is(div,footer):not([class*="_footArea"]):has(> div > [data-s// CONVERSATION_CSS re-skins the shell's own conversation DOM and styles what only// the conversation renders.export const SHELL_CSS = `-body{--bt-ink:#141414;--bt-ink-2:rgba(20,20,20,.6);--bt-ink-3:rgba(20,20,20,.36);--bt-bubble:#eeeeee;--bt-sidebar:#f7f7f7;--bt-main:#fcfcfc;--bt-line:rgba(20,20,20,.08);--bt-line-2:rgba(20,20,20,.15);--bt-line-weak:rgba(20,20,20,.1);--bt-hover:rgba(119,119,119,.09);--bt-active:rgba(119,119,119,.17);--bt-card:#ffffff;--bt-accent:#4d6bfe;--bt-green:#00c972;--bt-star:#ff9800;--bt-user:#070707;--bt-user-ink:#fcfcfc;--bt-tag-bg:rgba(20,20,20,.06);--bt-tag-ink:rgba(20,20,20,.56)}+body{--bt-ink:#141414;--bt-danger:#e02135;--bt-ink-2:rgba(20,20,20,.6);--bt-ink-3:rgba(20,20,20,.36);--bt-bubble:#eeeeee;--bt-sidebar:#f7f7f7;--bt-main:#fcfcfc;--bt-line:rgba(20,20,20,.08);--bt-line-2:rgba(20,20,20,.15);--bt-line-weak:rgba(20,20,20,.1);--bt-hover:rgba(119,119,119,.09);--bt-active:rgba(119,119,119,.17);--bt-card:#ffffff;--bt-accent:#4d6bfe;--bt-green:#00c972;--bt-star:#ff9800;--bt-user:#070707;--bt-user-ink:#fcfcfc;--bt-tag-bg:rgba(20,20,20,.06);--bt-tag-ink:rgba(20,20,20,.56)}body[data-ds-dark-theme]{--bt-ink:#f2f2f2;--bt-ink-2:rgba(242,242,242,.6);--bt-ink-3:rgba(242,242,242,.36);--bt-bubble:#262626;--bt-sidebar:#1b1b1b;--bt-main:#141414;--bt-line:rgba(255,255,255,.08);--bt-line-2:rgba(255,255,255,.15);--bt-line-weak:rgba(255,255,255,.1);--bt-hover:rgba(160,160,160,.12);--bt-active:rgba(160,160,160,.2);--bt-card:#1f1f1f;--bt-user:#f2f2f2;--bt-user-ink:#141414;--bt-tag-bg:rgba(255,255,255,.09);--bt-tag-ink:rgba(242,242,242,.62)}${Object.entries(INKS).map(([name, [light]]) => `body{--bt-ink-${name}:${light}}`).join('')}${Object.entries(INKS).map(([name, [, dark]]) => `body[data-ds-dark-theme]{--bt-ink-${name}:${dark}}`).join('')}@@ -315,7 +315,7 @@ button.bt-q-opt:active{background:var(--bt-active)}@media (prefers-reduced-motion:reduce){.bt-create-card,.bt-create-pop{animation:none}}.bt-send{height:40px;min-width:40px;border-radius:999px;border:0;background:var(--bt-accent);color:var(--bt-accent-ink,#fff);font-size:14px;padding:0 14px;cursor:pointer;flex:none;white-space:nowrap}.bt-send:disabled{opacity:.35;cursor:default}-.bt-error{padding:0 14px 10px;color:#e02135;font-size:12px}+.bt-error{padding:0 14px 10px;color:var(--bt-danger);font-size:12px}.bt-pane{position:fixed;top:var(--dsh-frame-chrome-top,0px);right:0;bottom:0;z-index:45;pointer-events:auto;background:var(--bt-main);color:var(--bt-ink);display:flex;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}.bt-dialog{flex:1;display:flex;flex-direction:column;min-width:0}@@ -383,7 +383,7 @@ button.bt-q-opt:active{background:var(--bt-active)}.bt-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.bt-kv{display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:20px;color:var(--bt-ink-2)}.bt-kv span:last-child{color:var(--bt-ink);font-variant-numeric:tabular-nums}-.bt-danger{color:#e02135}+.bt-danger{color:var(--bt-danger)}/* Bot settings: fields, the avatar editor popover, and the details-pane sub-view. */.bt-field{display:flex;flex-direction:column;gap:6px}@@ -434,7 +434,7 @@ button.bt-q-opt:active{background:var(--bt-active)}.bt-drawer-model{display:flex;flex-direction:column}.bt-drawer-model .bt-note{margin-top:6px}.bt-drawer-permission{display:flex;flex-direction:column}-.bt-seg button.bt-perm-danger,.bt-seg button.bt-perm-danger[aria-pressed=true],.bt-kv span.bt-perm-danger{color:#e02135}+.bt-seg button.bt-perm-danger,.bt-seg button.bt-perm-danger[aria-pressed=true],.bt-kv span.bt-perm-danger{color:var(--bt-danger)}/* Settings dialog: a 198px page list beside the page. */.bt-settings-layer{position:fixed;inset:var(--dsh-frame-chrome-top,0px) 0 0;z-index:60;display:flex;align-items:center;justify-content:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}@@ -501,12 +501,12 @@ button.bt-set-row:hover{background:var(--bt-hover)}.bt-connector-name{font-size:14px;line-height:20px;font-weight:500}.bt-connector-status{font-size:12px;line-height:16px;color:var(--bt-ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bt-connector[data-state=ready] .bt-connector-status{color:var(--bt-ink-2)}-.bt-connector[data-state=error] .bt-connector-status{color:#e02135;white-space:normal}+.bt-connector[data-state=error] .bt-connector-status{color:var(--bt-danger);white-space:normal}.bt-connector-actions{flex:none;display:flex;gap:6px}.bt-connector-form{display:flex;flex-direction:column;gap:8px;padding-left:48px;animation:bt-q-in ${SPRING_SHAPE.duration}ms ${SPRING_SHAPE.easing},bt-veil-in .2s ease-out}.bt-connector-form-row{display:flex;align-items:center;gap:6px}.bt-connector-link{flex:1;font-size:12px;color:var(--bt-ink-2)}-.bt-connector-error{padding-left:48px;font-size:12px;line-height:16px;color:#e02135}+.bt-connector-error{padding-left:48px;font-size:12px;line-height:16px;color:var(--bt-danger)}/* Shell chrome reshaped for the team view. Selectors use stable data attributes where theshell offers them and CSS-module name suffixes elsewhere. */@@ -547,7 +547,7 @@ ${SKIN_FOOT}>div:has(> [data-slot="sidebar.settings"]){order:-1!important;flex:n.bt-voice-name{font-size:16px;line-height:22px;font-weight:500}.bt-voice-status{font-size:13px;line-height:18px;color:var(--bt-ink-2);min-height:18px}.bt-voice-caption{min-height:44px;font-size:15px;line-height:22px;color:var(--bt-ink);animation:bt-blur-in .25s ease-out;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}-.bt-voice-note{font-size:12px;color:#e02135}+.bt-voice-note{font-size:12px;color:var(--bt-danger)}.bt-voice-setup{height:32px;padding:0 14px;border-radius:16px;border:0;background:var(--bt-hover);color:var(--bt-ink);font:inherit;font-size:13px;cursor:pointer;transition:background-color .15s ease}.bt-voice-setup:hover{background:var(--bt-active)}.bt-voice-bar{display:flex;gap:16px;padding:0 0 32px}@@ -598,7 +598,7 @@ button:hover .bt-you{background:color-mix(in srgb,var(--bt-ink) 9%,var(--bt-side.bt-menu button{display:flex;align-items:center;gap:4px;width:100%;min-height:30px;text-align:left;border:0;background:none;border-radius:6px;padding:6px 8px;font:inherit;font-size:13px;line-height:18px;color:var(--bt-ink);cursor:pointer;box-sizing:border-box}.bt-menu button:hover{background:var(--bt-hover)}.bt-menu button svg{flex:none;width:16px;height:16px;margin:0 1px}-.bt-menu .bt-danger{color:#c21d2e}+.bt-menu .bt-danger{color:var(--bt-danger)}.bt-menu-sep{height:.5px;flex:none;background:var(--bt-line-2);margin:4px 8px}.bt-menu-up{--bt-origin:bottom left;animation-name:bt-pop-lift,bt-veil-in}.bt-menu[data-leaving]{pointer-events:none;animation:bt-pop-out .12s cubic-bezier(.4,0,1,1) forwards}@@ -754,7 +754,7 @@ body[data-ds-dark-theme] .bt-theme-chip i{background:var(--da)}.bt-mem-remove{flex:none;height:28px;min-width:28px;border-radius:999px;border:0;background:none;color:var(--bt-ink-3);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0 6px;font:inherit;font-size:12px;opacity:0;transition:opacity .12s ease,background-color .12s ease,color .12s ease}.bt-mem-entry:hover .bt-mem-remove,.bt-mem-remove:focus-visible,.bt-mem-remove[data-confirm]{opacity:1}.bt-mem-remove:hover{background:var(--bt-hover);color:var(--bt-ink)}-.bt-mem-remove[data-confirm]{background:rgba(224,33,53,.1);color:#e02135;padding:0 10px}+.bt-mem-remove[data-confirm]{background:color-mix(in srgb,var(--bt-danger) 10%,transparent);color:var(--bt-danger);padding:0 10px}@media (hover:none){.bt-mem-remove{opacity:1}}.bt-mem-none{font-size:13px;line-height:18px;color:var(--bt-ink-3);padding:8px 4px}.bt-mem-foot{flex:none;padding:8px 20px 20px;display:flex;flex-direction:column;gap:10px}@@ -765,7 +765,7 @@ body[data-ds-dark-theme] .bt-theme-chip i{background:var(--da)}.bt-mem-reply-text{font-size:14px;line-height:21px;padding-right:8px;overflow-wrap:anywhere}.bt-mem-changes{list-style:none;margin:2px 0 0;padding:0 8px 0 0;display:flex;flex-direction:column;gap:4px}.bt-mem-changes li{display:flex;align-items:flex-start;gap:6px;font-size:13px;line-height:18px;color:var(--bt-ink-2);overflow-wrap:anywhere}-.bt-mem-changes li svg{flex:none;margin-top:1px;color:#e02135;animation:bt-check-pop ${SPRING_POP.duration}ms ${SPRING_POP.easing} .12s backwards}+.bt-mem-changes li svg{flex:none;margin-top:1px;color:var(--bt-danger);animation:bt-check-pop ${SPRING_POP.duration}ms ${SPRING_POP.easing} .12s backwards}.bt-mem-changes li[data-ok] svg{color:var(--bt-green)}.bt-mem-ask{display:flex;align-items:center;gap:8px;height:52px;padding:0 8px 0 22px;border-radius:999px;border:.5px solid var(--bt-line-2);background:var(--bt-card);box-shadow:0 4px 16px rgba(0,0,0,.06);box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.bt-mem-ask:focus-within{border-color:var(--bt-ink-3);box-shadow:0 4px 20px rgba(0,0,0,.1)}diff --git a/ds-bot/test/user-bubble.test.js b/ds-bot/test/user-bubble.test.jsindex 20be9f85..bdc9eb87 100644--- a/ds-bot/test/user-bubble.test.js+++ b/ds-bot/test/user-bubble.test.js@@ -123,6 +123,20 @@ test('a preset accent takes its dark value in dark mode; a custom accent stays t}})+// UI standard §14 #1: the danger red was written out as #e02135 and #c21d2e in 22+// places. Every danger color reads --bt-danger, which the base sheet sets once.+test('every danger color reads --bt-danger, which the base sheet sets once', () => {+ assert.equal([...bundle.matchAll(/--bt-danger:#e02135/g)].length, 1)+ const allowed = before => before.endsWith('--bt-danger:') // the one value+ || before.endsWith('var(--bt-danger,') // feedback.js: its toast shows without the base sheet too+ || before.endsWith('.bt-voice-end:hover{background:') // recording reds: not decided yet+ || /FF3E51['"],\s*['"]$/i.test(before) // the red Bot color, not a danger color+ const loose = [...bundle.matchAll(/#e02135|#c21d2e/gi)]+ .map(match => bundle.slice(Math.max(0, match.index - 40), match.index))+ .filter(before => !allowed(before))+ assert.deepEqual(loose, [])+})+// A dark skin repaints the host bubble surface (dsh-dream-skin's underwater theme// sets this value) and leaves ds-bot's colors alone.const DARK_SKIN = { '--dsw-specific-bubble': 'rgba(31,33,38,.92)', '--dsw-alias-label-primary': '#ffffff' }