🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.
Python ai-agentai-assistantchatbotclaudecomputer-usedeepseekdesktop-appdshelectronfeishugeminigptgrokllmlocal-firstmodelflaremulti-modelopenai-compatiblepersonal-ai-agentwechat
feat(ui): 角色不再绑定岗位,选模板不换头像,中文名字和官网统一
dyk981532d7b74671
diff --git a/anymodelbot_design/onboarding/Main.html b/anymodelbot_design/onboarding/Main.htmlindex 2711495..bc0f1e3 100644--- a/anymodelbot_design/onboarding/Main.html+++ b/anymodelbot_design/onboarding/Main.html@@ -32,7 +32,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<a href="Main.html" style="display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fafaf7; text-decoration: none"><span class="face" data-char="blue" style="width: 34px; height: 34px; flex: none"></span><span style="display: flex; flex-direction: column; min-width: 0">- <span style="font-weight: 600; font-size: 14px">小蓝</span>+ <span style="font-weight: 600; font-size: 14px">天天</span><span style="color: #a1a1aa; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">还没有消息</span></span></a>@@ -62,7 +62,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<header style="display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.10)"><button type="button" style="display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); font-weight: 600; font-size: 14px"><span class="face" data-char="blue" style="width: 24px; height: 24px"></span>- 小蓝+ 天天</button><span style="flex: 1"></span><button type="button" aria-label="开始新的一段对话" style="display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #a1a1aa">@@ -86,7 +86,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}上手清单</p><h1 style="margin: 0; font-size: 34px; line-height: 1.2; font-weight: 600; letter-spacing: -.012em">- <span style="display: block">嗨,我是小蓝。</span>+ <span style="display: block">嗨,我是天天。</span><span style="display: block; color: #a1a1aa">花 5 分钟,看看我能帮你做什么。</span></h1></header>@@ -106,7 +106,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<span aria-hidden="true" style="flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #d7ff00; color: #d7ff00; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px">1</span><div style="flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px"><div>- <div style="font-size: 16px; font-weight: 600">跟小蓝打个招呼</div>+ <div style="font-size: 16px; font-weight: 600">跟天天打个招呼</div><div style="color: #a1a1aa; margin-top: 2px">在这里直接和机器人聊天,回复会边写边出来。</div></div><div style="display: flex; flex-wrap: wrap; gap: 8px 18px; color: #a1a1aa; font-size: 13px">@@ -140,7 +140,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<a href="Step3-Weixin.html" style="display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 16px; border-radius: 16px; color: #fafaf7; text-decoration: none"><span aria-hidden="true" style="flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: #a1a1aa; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px">3</span><span style="flex: 1; min-width: 0">- <span style="display: block; font-size: 15px; font-weight: 500">把小蓝接到微信</span>+ <span style="display: block; font-size: 15px; font-weight: 500">把天天接到微信</span><span style="display: block; color: #a1a1aa; font-size: 13.5px">扫码后在微信里直接私聊它,不用装新 App;电脑开着它就在线。</span></span><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#a1a1aa" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 6 6 6-6 6"/></svg>@@ -203,7 +203,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<a href="Step2-Model.html" style="display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 999px; background: #d7ff00; color: #161a00; font-weight: 600; font-size: 14px; text-decoration: none">下一步</a></div></section>- <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「小蓝」发消息,/ 查看命令"></textarea>+ <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「天天」发消息,/ 查看命令"></textarea><div style="display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px"><button type="button" aria-label="更多操作" style="display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #a1a1aa"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>diff --git a/anymodelbot_design/onboarding/Step2-Model.html b/anymodelbot_design/onboarding/Step2-Model.htmlindex 51a9bb9..5cc1011 100644--- a/anymodelbot_design/onboarding/Step2-Model.html+++ b/anymodelbot_design/onboarding/Step2-Model.html@@ -31,7 +31,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<a href="Main.html" style="display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fafaf7; text-decoration: none"><span class="face" data-char="blue" style="width: 34px; height: 34px; flex: none"></span><span style="display: flex; flex-direction: column; min-width: 0">- <span style="font-weight: 600; font-size: 14px">小蓝</span>+ <span style="font-weight: 600; font-size: 14px">天天</span><span style="color: #a1a1aa; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">我能帮你聊天答疑、写东西…</span></span></a>@@ -59,7 +59,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<header style="display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.10)"><button type="button" style="display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); font-weight: 600; font-size: 14px"><span class="face" data-char="blue" style="width: 24px; height: 24px"></span>- 小蓝+ 天天</button><span style="flex: 1"></span><button type="button" aria-label="开始新的一段对话" style="display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #a1a1aa">@@ -176,7 +176,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}</section><div style="border-radius: 18px; background: #101110; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)">- <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「小蓝」发消息,/ 查看命令"></textarea>+ <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「天天」发消息,/ 查看命令"></textarea><div style="display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px"><button type="button" aria-label="更多操作" style="display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #a1a1aa"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>diff --git a/anymodelbot_design/onboarding/Step3-Weixin.html b/anymodelbot_design/onboarding/Step3-Weixin.htmlindex 50fed4d..4377dda 100644--- a/anymodelbot_design/onboarding/Step3-Weixin.html+++ b/anymodelbot_design/onboarding/Step3-Weixin.html@@ -31,7 +31,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<a href="Main.html" style="display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fafaf7; text-decoration: none"><span class="face" data-char="blue" style="width: 34px; height: 34px; flex: none"></span><span style="display: flex; flex-direction: column; min-width: 0">- <span style="font-weight: 600; font-size: 14px">小蓝</span>+ <span style="font-weight: 600; font-size: 14px">天天</span><span style="color: #a1a1aa; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">换好了,现在用 gpt-6.1-terra…</span></span></a>@@ -61,7 +61,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<header style="display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.10)"><button type="button" id="capsule" aria-pressed="false" style="position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(215,255,0,.10); box-shadow: 0 0 0 2px #d7ff00, 0 0 0 7px rgba(215,255,0,.16); font-weight: 600; font-size: 14px"><span class="face" data-char="blue" style="width: 24px; height: 24px"></span>- 小蓝+ 天天<span class="mk" data-mk="1" aria-hidden="true" style="position: absolute; right: -10px; top: -10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #d7ff00; color: #161a00; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; font-weight: 600">1</span></button><span style="flex: 1"></span>@@ -78,7 +78,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<div style="align-self: flex-end; max-width: 80%; padding: 10px 16px; border-radius: 18px; background: rgba(255,255,255,.07)">换成 gpt-6.1-terra,用一句话介绍你自己。</div><div style="display: flex; flex-direction: column; gap: 6px"><span style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; color: #a1a1aa">gpt-6.1-terra · 用时 3 秒</span>- <p style="margin: 0; line-height: 1.75">换好了,现在用 gpt-6.1-terra。我是住在你电脑里的小蓝:能聊、能写、能动手,还记得你交代过的事。</p>+ <p style="margin: 0; line-height: 1.75">换好了,现在用 gpt-6.1-terra。我是住在你电脑里的天天:能聊、能写、能动手,还记得你交代过的事。</p></div></div></div>@@ -90,10 +90,10 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<p id="c-kick" style="display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12.5px; letter-spacing: .06em; color: #a1a1aa"><span style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: #d7ff00">03 / 06</span>上手清单</p>- <h2 id="c-title" style="margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em">把小蓝接到微信</h2>- <p id="c-body" style="margin: 0 0 14px; color: #a1a1aa; line-height: 1.7">扫码后,在微信里直接私聊小蓝,不用装新 App。电脑开着,它就在线。</p>+ <h2 id="c-title" style="margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em">把天天接到微信</h2>+ <p id="c-body" style="margin: 0 0 14px; color: #a1a1aa; line-height: 1.7">扫码后,在微信里直接私聊天天,不用装新 App。电脑开着,它就在线。</p><ol id="c-list" style="list-style: none; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.10); display: flex; flex-direction: column; gap: 10px; font-size: 13.5px">- <li data-s="1" style="display: flex; gap: 10px; align-items: flex-start; transition: opacity .3s"><span aria-hidden="true" style="flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #d7ff00; color: #161a00; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; font-weight: 600">1</span>点顶部的「小蓝」,打开信息面板</li>+ <li data-s="1" style="display: flex; gap: 10px; align-items: flex-start; transition: opacity .3s"><span aria-hidden="true" style="flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #d7ff00; color: #161a00; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; font-weight: 600">1</span>点顶部的「天天」,打开信息面板</li><li data-s="2" style="display: flex; gap: 10px; align-items: flex-start; transition: opacity .3s"><span aria-hidden="true" style="flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #d7ff00; color: #161a00; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; font-weight: 600">2</span>在「渠道」里点「微信」→「扫码登录」</li><li data-s="3" style="display: flex; gap: 10px; align-items: flex-start; transition: opacity .3s"><span aria-hidden="true" style="flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #d7ff00; color: #161a00; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; font-weight: 600">3</span>用微信扫码,在手机上确认</li></ol>@@ -110,7 +110,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<div style="padding: 0 24px 24px"><div style="max-width: 720px; margin: 0 auto; border-radius: 18px; background: #101110; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)">- <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「小蓝」发消息,/ 查看命令"></textarea>+ <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「天天」发消息,/ 查看命令"></textarea><div style="display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px"><button type="button" aria-label="更多操作" style="display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #a1a1aa"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>@@ -132,7 +132,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<!-- 信息面板 --><aside id="panel" hidden aria-label="信息面板" style="flex: 1 1 340px; max-width: 100%; display: flex; flex-direction: column; background: #0a0b0a; border-left: 1px solid rgba(255,255,255,.10)"><div style="display: flex; align-items: center; gap: 4px; height: 54px; padding: 0 10px 0 18px; border-bottom: 1px solid rgba(255,255,255,.10)">- <span style="flex: 1; font-weight: 600">小蓝</span>+ <span style="flex: 1; font-weight: 600">天天</span><button type="button" aria-label="机器人设置" style="display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #a1a1aa"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"/></svg></button>@@ -157,7 +157,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}</button><div id="wx-body" hidden style="display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 14px 16px"><button type="button" id="wx-login" style="min-height: 38px; padding: 0 18px; border-radius: 999px; background: #d7ff00; color: #161a00; font-weight: 600; font-size: 13.5px">扫码登录</button>- <p id="wx-done" hidden style="margin: 0; align-self: stretch; padding: 10px 12px; border-radius: 12px; background: rgba(111,217,155,.10); color: #6fd99b; font-size: 13px">已绑定「小蓝」· 现在可以在微信里私聊它了</p>+ <p id="wx-done" hidden style="margin: 0; align-self: stretch; padding: 10px 12px; border-radius: 12px; background: rgba(111,217,155,.10); color: #6fd99b; font-size: 13px">已绑定「天天」· 现在可以在微信里私聊它了</p><div id="wx-qr" hidden style="position: relative; padding: 12px; border-radius: 14px; background: #ffffff"><span id="wx-scan" class="scan" aria-hidden="true"></span><div id="wx-scanned" hidden style="position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 2px; border-radius: 14px; background: rgba(255,255,255,.93); color: #161a00; text-align: center; font-weight: 600; font-size: 14px"><span>已扫码</span><span style="font-weight: 400; font-size: 12px; color: #465612">请在手机上点「确认」</span></div>diff --git a/anymodelbot_design/onboarding/Step4-Hands.html b/anymodelbot_design/onboarding/Step4-Hands.htmlindex 0c2c210..7d51abe 100644--- a/anymodelbot_design/onboarding/Step4-Hands.html+++ b/anymodelbot_design/onboarding/Step4-Hands.html@@ -31,7 +31,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<a href="Main.html" style="display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fafaf7; text-decoration: none"><span class="face" data-char="blue" style="width: 34px; height: 34px; flex: none"></span><span style="display: flex; flex-direction: column; min-width: 0">- <span style="font-weight: 600; font-size: 14px">小蓝</span>+ <span style="font-weight: 600; font-size: 14px">天天</span><span style="color: #a1a1aa; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">建好了,列了三件事…</span></span></a>@@ -59,7 +59,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<header style="display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.10)"><button type="button" style="display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); font-weight: 600; font-size: 14px"><span class="face" data-char="blue" style="width: 24px; height: 24px"></span>- 小蓝+ 天天</button><span style="flex: 1"></span><button type="button" aria-label="开始新的一段对话" style="display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #a1a1aa">@@ -119,7 +119,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}</span></p><h2 id="c-title" style="margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em">做好的文件,就在这里</h2>- <p id="c-body" style="margin: 0 0 12px; color: #a1a1aa; line-height: 1.7">小蓝能在自己的工作区里写文件、跑命令。做好的文件会出现在对话里;在微信、飞书里会直接发给你。</p>+ <p id="c-body" style="margin: 0 0 12px; color: #a1a1aa; line-height: 1.7">天天能在自己的工作区里写文件、跑命令。做好的文件会出现在对话里;在微信、飞书里会直接发给你。</p><ul id="c-list" style="list-style: none; margin: 0 0 16px; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.10); display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #a1a1aa"><li style="display: flex; gap: 10px"><span aria-hidden="true" style="flex: none; width: 10px; height: 6px; margin-top: 6px; border-left: 2px solid #d7ff00; border-bottom: 2px solid #d7ff00; transform: rotate(-45deg)"></span>它只改自己工作区里的东西</li><li style="display: flex; gap: 10px"><span aria-hidden="true" style="flex: none; width: 10px; height: 6px; margin-top: 6px; border-left: 2px solid #d7ff00; border-bottom: 2px solid #d7ff00; transform: rotate(-45deg)"></span>要动工作区以外的文件,会先弹卡片问你,你点「允许」才做</li>@@ -135,7 +135,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<div style="padding: 0 24px 24px"><div style="max-width: 760px; margin: 0 auto; border-radius: 18px; background: #101110; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)">- <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「小蓝」发消息,/ 查看命令"></textarea>+ <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「天天」发消息,/ 查看命令"></textarea><div style="display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px"><button type="button" aria-label="更多操作" style="display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #a1a1aa"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>diff --git a/anymodelbot_design/onboarding/Step5-Memory.html b/anymodelbot_design/onboarding/Step5-Memory.htmlindex b954509..d231603 100644--- a/anymodelbot_design/onboarding/Step5-Memory.html+++ b/anymodelbot_design/onboarding/Step5-Memory.html@@ -31,7 +31,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<a href="Main.html" style="display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fafaf7; text-decoration: none"><span class="face" data-char="blue" style="width: 34px; height: 34px; flex: none"></span><span style="display: flex; flex-direction: column; min-width: 0">- <span style="font-weight: 600; font-size: 14px">小蓝</span>+ <span style="font-weight: 600; font-size: 14px">天天</span><span style="color: #a1a1aa; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">记得:回答简短,结论先行。</span></span></a>@@ -60,7 +60,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<header style="display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.10)"><button type="button" aria-pressed="true" style="display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-weight: 600; font-size: 14px"><span class="face" data-char="blue" style="width: 24px; height: 24px"></span>- 小蓝+ 天天</button><span style="flex: 1"></span><button type="button" aria-label="开始新的一段对话" style="display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #a1a1aa">@@ -101,7 +101,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}</span></p><h2 id="c-title" style="margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em">让它记住你</h2>- <p id="c-body" style="margin: 0 0 12px; color: #a1a1aa; line-height: 1.7">告诉小蓝你的习惯和常用信息,它会记下来。开新对话、到微信里,它都记得。</p>+ <p id="c-body" style="margin: 0 0 12px; color: #a1a1aa; line-height: 1.7">告诉天天你的习惯和常用信息,它会记下来。开新对话、到微信里,它都记得。</p><ul id="c-list" style="list-style: none; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.10); display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: #a1a1aa"><li style="display: flex; gap: 10px"><span aria-hidden="true" style="flex: none; width: 10px; height: 6px; margin-top: 6px; border-left: 2px solid #d7ff00; border-bottom: 2px solid #d7ff00; transform: rotate(-45deg)"></span>说「记住……」就行;聊天中它也会自己记下重要的事</li><li style="display: flex; gap: 10px"><span aria-hidden="true" style="flex: none; width: 10px; height: 6px; margin-top: 6px; border-left: 2px solid #d7ff00; border-bottom: 2px solid #d7ff00; transform: rotate(-45deg)"></span>想让它忘掉,说「忘掉……」,或在右边删掉</li>@@ -119,7 +119,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<div style="padding: 0 24px 24px"><div style="max-width: 720px; margin: 0 auto; border-radius: 18px; background: #101110; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)">- <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「小蓝」发消息,/ 查看命令"></textarea>+ <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「天天」发消息,/ 查看命令"></textarea><div style="display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px"><button type="button" aria-label="更多操作" style="display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #a1a1aa"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>@@ -140,7 +140,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<aside aria-label="信息面板" style="flex: 1 1 340px; max-width: 100%; display: flex; flex-direction: column; background: #0a0b0a; border-left: 1px solid rgba(255,255,255,.10)"><div style="display: flex; align-items: center; gap: 4px; height: 54px; padding: 0 10px 0 18px; border-bottom: 1px solid rgba(255,255,255,.10)">- <span style="flex: 1; font-weight: 600">小蓝</span>+ <span style="flex: 1; font-weight: 600">天天</span><button type="button" aria-label="机器人设置" style="display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #a1a1aa"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"/></svg></button>@@ -194,7 +194,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<div style="padding: 14px 6px 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; color: #a1a1aa">最近会话</div><div style="border-radius: 16px; background: #0b0b10; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)"><div style="display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.10)">- <span style="flex: 1; min-width: 0"><span style="display: block; font-size: 13.5px">网页 · 小蓝</span><span style="display: block; color: #a1a1aa; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">记得:回答简短,结论先行。</span></span>+ <span style="flex: 1; min-width: 0"><span style="display: block; font-size: 13.5px">网页 · 天天</span><span style="display: block; color: #a1a1aa; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">记得:回答简短,结论先行。</span></span><span style="font-family: 'Geist Mono', ui-monospace, monospace; color: #a1a1aa; font-size: 11.5px">刚刚</span></div><div style="display: flex; align-items: center; gap: 10px; padding: 10px 14px">diff --git a/anymodelbot_design/onboarding/Step6-Media.html b/anymodelbot_design/onboarding/Step6-Media.htmlindex 01eba49..018ecb8 100644--- a/anymodelbot_design/onboarding/Step6-Media.html+++ b/anymodelbot_design/onboarding/Step6-Media.html@@ -31,7 +31,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<a href="Main.html" style="display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fafaf7; text-decoration: none"><span class="face" data-char="blue" style="width: 34px; height: 34px; flex: none"></span><span style="display: flex; flex-direction: column; min-width: 0">- <span style="font-weight: 600; font-size: 14px">小蓝</span>+ <span style="font-weight: 600; font-size: 14px">天天</span><span style="color: #a1a1aa; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">等你确认:生成图片</span></span></a>@@ -59,7 +59,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<header style="display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.10)"><button type="button" style="display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); font-weight: 600; font-size: 14px"><span class="face" data-char="blue" style="width: 24px; height: 24px"></span>- 小蓝+ 天天</button><span style="flex: 1"></span><button type="button" aria-label="开始新的一段对话" style="display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #a1a1aa">@@ -139,7 +139,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<span style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: #d7ff00">06 / 06</span>上手清单</p><h2 id="c-title" style="margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em">生成一张图</h2>- <p id="c-body" style="margin: 0 0 12px; color: #a1a1aa; line-height: 1.7">小蓝可以画图、做视频。每次生成前,都会先问你用哪个模型,并给出参考价。</p>+ <p id="c-body" style="margin: 0 0 12px; color: #a1a1aa; line-height: 1.7">天天可以画图、做视频。每次生成前,都会先问你用哪个模型,并给出参考价。</p><ul id="c-list" style="list-style: none; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.10); display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: #a1a1aa"><li style="display: flex; gap: 10px"><span aria-hidden="true" style="flex: none; width: 10px; height: 6px; margin-top: 6px; border-left: 2px solid #d7ff00; border-bottom: 2px solid #d7ff00; transform: rotate(-45deg)"></span>你点「确认生成」才会生成,才会花钱</li><li style="display: flex; gap: 10px"><span aria-hidden="true" style="flex: none; width: 10px; height: 6px; margin-top: 6px; border-left: 2px solid #d7ff00; border-bottom: 2px solid #d7ff00; transform: rotate(-45deg)"></span>可以换个模型,或者直接取消</li>@@ -156,7 +156,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<div style="padding: 0 24px 24px"><div style="max-width: 760px; margin: 0 auto; border-radius: 18px; background: #101110; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)">- <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「小蓝」发消息,/ 查看命令"></textarea>+ <textarea id="input" class="input" rows="1" aria-label="消息" placeholder="给「天天」发消息,/ 查看命令"></textarea><div style="display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px"><button type="button" aria-label="更多操作" style="display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #a1a1aa"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>diff --git a/anymodelbot_design/onboarding/Tips.html b/anymodelbot_design/onboarding/Tips.htmlindex bb378a8..19993b9 100644--- a/anymodelbot_design/onboarding/Tips.html+++ b/anymodelbot_design/onboarding/Tips.html@@ -61,7 +61,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<p style="display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 13px; color: #a1a1aa"><span style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: #d7ff00">02</span>第一次打开信息面板</p><div style="display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #060706; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)"><div style="display: flex; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.10)">- <span style="flex: 1; font-weight: 600; font-size: 13.5px">小蓝</span>+ <span style="flex: 1; font-weight: 600; font-size: 13.5px">天天</span><span aria-hidden="true" style="display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fafaf7; box-shadow: 0 0 0 2px #d7ff00, 0 0 0 6px rgba(215,255,0,.14)"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"/></svg></span>@@ -76,7 +76,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<div style="display: flex; gap: 10px; padding: 14px; border-radius: 16px; background: #101110; box-shadow: 0 0 0 1px rgba(255,255,255,.18)"><span class="face" data-char="blue" style="flex: none; width: 30px; height: 30px"></span><div style="flex: 1; min-width: 0">- <div style="font-weight: 600; font-size: 14.5px; margin-bottom: 2px">关于小蓝的一切都在这里</div>+ <div style="font-weight: 600; font-size: 14.5px; margin-bottom: 2px">关于天天的一切都在这里</div><p style="margin: 0 0 10px; color: #a1a1aa; font-size: 13px; line-height: 1.65">渠道、待审批、记忆和最近会话都在这个面板。点 ⚙ 可以改它的模型、权限和预算。</p><button type="button" style="min-height: 30px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 12.5px">知道了</button></div>@@ -98,7 +98,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<span class="face" data-char="blue" style="flex: none; width: 30px; height: 30px"></span><div style="flex: 1; min-width: 0"><div style="font-weight: 600; font-size: 14.5px; margin-bottom: 2px">换个话题?开一段新对话</div>- <p style="margin: 0 0 10px; color: #a1a1aa; font-size: 13px; line-height: 1.65">旧对话会归档,小蓝会留一张交接便条;长期记忆不受影响。</p>+ <p style="margin: 0 0 10px; color: #a1a1aa; font-size: 13px; line-height: 1.65">旧对话会归档,天天会留一张交接便条;长期记忆不受影响。</p><button type="button" style="min-height: 30px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 12.5px">知道了</button></div></div>@@ -195,7 +195,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<p style="display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 13px; color: #a1a1aa"><span style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: #d7ff00">08</span>第一次关闭窗口(桌面版)</p><div role="dialog" aria-label="关闭窗口" style="display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 24px; background: #101110; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 30px 60px -20px rgba(0,0,0,.7)"><span class="face" data-char="blue" style="width: 48px; height: 48px"></span>- <div style="font-weight: 600; font-size: 16px">小蓝会留在托盘里</div>+ <div style="font-weight: 600; font-size: 16px">天天会留在托盘里</div><p style="margin: 0; color: #a1a1aa; font-size: 13px; line-height: 1.65">窗口关了,它还在后台继续收发微信、飞书消息。想完全退出,在托盘菜单里选「退出」。</p><div style="display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px"><button type="button" style="min-height: 34px; padding: 0 16px; border-radius: 999px; background: #d7ff00; color: #161a00; font-weight: 600; font-size: 13px">好的</button>@@ -230,7 +230,7 @@ a{color:#d7ff00}a:hover{color:#e9ff66}<p style="margin: 0 0 14px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .06em">上手清单 · 6 / 6</p><h2 style="margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.18; letter-spacing: -.012em; font-weight: 600"><span style="display: block">六件事都做完了。</span>- <span style="display: block; color: #465612">小蓝已经准备好了。</span>+ <span style="display: block; color: #465612">天天已经准备好了。</span></h2><div style="display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px"><button type="button" style="min-height: 44px; padding: 0 22px; border-radius: 999px; background: #161a00; color: #d7ff00; font-weight: 600; font-size: 14.5px">再养一个机器人</button>diff --git a/anymodelbot_design/onboarding/css/bots.css b/anymodelbot_design/onboarding/css/bots.cssindex 62836d9..77f7627 100644--- a/anymodelbot_design/onboarding/css/bots.css+++ b/anymodelbot_design/onboarding/css/bots.css@@ -36,16 +36,16 @@--bf-hop: 2.4s; /* 等你批准:跳两下停一下 */--bf-snore: 3.6s; /* 睡觉 */--bf-perk: .9s; /* 悬停时天线弹一下 */- --bf-ring: 1.5s; /* 小蓝的天线信号 */+ --bf-ring: 1.5s; /* 天天的天线信号 */--bf-ring-gap: .5s;--bf-sway: .55s; /* 天线、角左右晃 */- --bf-twinkle: 1.3s; /* 小萌的星星、紫钻的闪光 */- --bf-flutter: .9s; /* 绿草的叶子 */- --bf-beat: .6s; /* 红魔的灯带节拍 */- --bf-spin: 3.2s; /* 紫钻的宝石转动 */- --bf-float: 2.2s; /* 紫钻的宝石悬浮 */- --bf-sweep: 2.2s; /* 探险者护目镜的反光 */- --bf-scan: 1.6s; /* 探险者四处搜寻 */+ --bf-twinkle: 1.3s; /* 闪闪的星星、晶晶的闪光 */+ --bf-flutter: .9s; /* 芽芽的叶子 */+ --bf-beat: .6s; /* 哒哒的灯带节拍 */+ --bf-spin: 3.2s; /* 晶晶的宝石转动 */+ --bf-float: 2.2s; /* 晶晶的宝石悬浮 */+ --bf-sweep: 2.2s; /* 飞飞护目镜的反光 */+ --bf-scan: 1.6s; /* 飞飞四处搜寻 */--bf-dot: 1.2s; /* 思考气泡里的点 */--bf-bang: 1.2s;--bf-z: 3s;@@ -78,7 +78,7 @@.bf-ear-r .bf-glow { background-position-x: calc(600% / 7); }.bf-top .bf-glow { background-position-x: 100%; }.bf-glow { opacity: 0; mix-blend-mode: plus-lighter; filter: drop-shadow(0 0 calc(var(--s) * .03) var(--bf-glow)); }-.bot-face:not([data-char="red"], [data-char="purple"]) .bf-glow { display: none; } /* 只有红魔、紫钻有发光层 */+.bot-face:not([data-char="red"], [data-char="purple"]) .bf-glow { display: none; } /* 只有哒哒、晶晶有发光层 */.bf-ear-l, .bf-ear-l .bf-pin { transform-origin: var(--o-el); }.bf-ear-r, .bf-ear-r .bf-pin { transform-origin: var(--o-er); }.bf-top, .bf-top .bf-pin, .bf-top .bf-img { transform-origin: var(--o-top); }@@ -103,7 +103,7 @@}.bot-face:is([data-eyes="happy"], [data-eyes="heart"]) .bf-blush { opacity: .9; scale: 1; }-/* 探险者的护目镜:镜片上扫过一道反光 */+/* 飞飞的护目镜:镜片上扫过一道反光 */.bf-lens { position: absolute; width: var(--lens); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden; }.bf-lens::after {content: ""; position: absolute; inset: -30%; translate: -110% 0;@@ -307,14 +307,14 @@.bot-face[data-shot="error"] .bf-top { rotate: 12deg; }/* —— 角色的招牌动作 —— */-/* 小蓝:天线左右晃、天线球亮起来、一圈圈发出信号;完成时天线球闪一下 */+/* 天天:天线左右晃、天线球亮起来、一圈圈发出信号;完成时天线球闪一下 */.bot-face[data-char="blue"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-sway var(--bf-sway) var(--ease-in-out) infinite alternate; }.bot-face[data-char="blue"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top .bf-img { animation: bf-bulb var(--bf-ring) var(--ease-in-out) infinite; }.bot-face[data-char="blue"]:is([data-shot="done"], [data-shot="hello"]) .bf-top .bf-img { animation: bf-bulb var(--bot-poke) var(--ease-out) 2; }@keyframes bf-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }@keyframes bf-bulb { 0%, 100% { filter: none; } 40% { filter: brightness(1.45) drop-shadow(0 0 calc(var(--s) * .05) var(--bf-glow)); } }-/* 小萌:星星一闪一闪、身边冒小星星;完成时星星像硬币一样转两圈 */+/* 闪闪:星星一闪一闪、身边冒小星星;完成时星星像硬币一样转两圈 */.bot-face[data-char="yellow"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-twinkle var(--bf-twinkle) var(--ease-in-out) infinite; }.bot-face[data-char="yellow"]:is([data-shot="done"], [data-shot="hello"], [data-shot="love"]) .bf-top .bf-pin { animation: bf-coin var(--bot-done) var(--ease-out); }@keyframes bf-twinkle {@@ -328,7 +328,7 @@100% { transform: perspective(calc(var(--s) * 2)) translateY(0) rotateY(720deg); }}-/* 绿草:叶子像被风吹一样扑簌;完成时嫩芽长高一截、飘下一片叶子;出错时蔫了 */+/* 芽芽:叶子像被风吹一样扑簌;完成时嫩芽长高一截、飘下一片叶子;出错时蔫了 */.bot-face[data-char="green"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-flutter var(--bf-flutter) var(--ease-in-out) infinite; }.bot-face[data-char="green"]:is([data-shot="done"], [data-shot="hello"]) .bf-top .bf-pin { animation: bf-grow var(--bot-done) var(--ease-out); }.bot-face[data-char="green"][data-shot="error"] .bf-top { rotate: 22deg; scale: 1 .86; }@@ -341,7 +341,7 @@84% { transform: scale(.98); }}-/* 红魔:耳机灯带跟着节拍亮(左耳 → 角 → 右耳),耳机一下一下地震;完成时灯带闪三下;出错时灯带乱闪 */+/* 哒哒:耳机灯带跟着节拍亮(左耳 → 角 → 右耳),耳机一下一下地震;完成时灯带闪三下;出错时灯带乱闪 */.bot-face[data-char="red"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-glow { animation: bf-beat var(--bf-beat) var(--ease-out) infinite; }.bot-face[data-char="red"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top .bf-glow { animation-delay: calc(var(--bf-beat) / 3); }.bot-face[data-char="red"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-ear-r .bf-glow { animation-delay: calc(var(--bf-beat) * 2 / 3); }@@ -355,7 +355,7 @@@keyframes bf-flash3 { 0%, 30%, 62%, 100% { opacity: 0; } 14%, 46%, 78% { opacity: 1; } }@keyframes bf-flicker { 0%, 12%, 30%, 44%, 70% { opacity: 1; } 6%, 22%, 38%, 58%, 100% { opacity: 0; } }-/* 紫钻:宝石浮起来慢慢转、霓虹线一明一暗、身边闪光;完成时宝石飞快转两圈;出错时霓虹乱闪 */+/* 晶晶:宝石浮起来慢慢转、霓虹线一明一暗、身边闪光;完成时宝石飞快转两圈;出错时霓虹乱闪 */.bot-face[data-char="purple"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-levitate var(--bf-float) var(--ease-in-out) infinite alternate; }.bot-face[data-char="purple"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top .bf-img { animation: bf-gem var(--bf-spin) linear infinite; }.bot-face[data-char="purple"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-glow { animation: bf-neon var(--bf-float) var(--ease-in-out) infinite alternate; }@@ -367,7 +367,7 @@@keyframes bf-gem { from { transform: perspective(calc(var(--s) * 2)) rotateY(0); } to { transform: perspective(calc(var(--s) * 2)) rotateY(360deg); } }@keyframes bf-neon { from { opacity: .15; } to { opacity: .9; } }-/* 探险者:天线一蹦一蹦、眼睛大范围地左右搜寻、护目镜反光;完成时两只镜片一起闪 */+/* 飞飞:天线一蹦一蹦、眼睛大范围地左右搜寻、护目镜反光;完成时两只镜片一起闪 */.bot-face[data-char="orange"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-sway var(--bf-sway) var(--ease-back) infinite alternate; }.bot-face[data-char="orange"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-glance { animation: bf-scan var(--bf-scan) var(--ease-in-out) infinite alternate; }.bot-face[data-char="orange"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-lens::after { animation: bf-glint var(--bf-sweep) var(--ease-in-out) infinite; }@@ -460,7 +460,7 @@100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--s) * -.62 * var(--far, 1))) scale(1) rotate(90deg); }}-/* 绿草长高时飘下来的叶子 */+/* 芽芽长高时飘下来的叶子 */.fx-leaf {left: var(--tip-x); top: var(--tip-y); width: calc(var(--s) * .12); height: calc(var(--s) * .07);border-radius: 0 100%; background: color-mix(in srgb, var(--bf-glow) 60%, var(--bf-eye));diff --git a/anymodelbot_design/onboarding/js/page-hands.js b/anymodelbot_design/onboarding/js/page-hands.jsindex 06cc100..dcaf344 100644--- a/anymodelbot_design/onboarding/js/page-hands.js+++ b/anymodelbot_design/onboarding/js/page-hands.js@@ -1,4 +1,4 @@-// 04 让它动手:输入框里已替你写好一句 → 发送 → 小蓝思考、干活(头像上下浮动)→ 逐字回复、清单逐条出现 →+// 04 让它动手:输入框里已替你写好一句 → 发送 → 天天思考、干活(头像上下浮动)→ 逐字回复、清单逐条出现 →// 文件卡片弹出、内容一行行写进去 → 余额扣一点 → 第 4 步完成import * as P from "./proto.js";@@ -23,7 +23,7 @@ function stage(s) {$("#c-badge").hidden = !done;$("#c-list").hidden = !done;$("#c-title").textContent = done ? orig.title : "让它动手做件事";- $("#c-body").textContent = done ? orig.body : "小蓝能在自己的工作区里写文件、跑命令,做好的文件会交给你。输入框里已经替你写好了一句,点发送试试。";+ $("#c-body").textContent = done ? orig.body : "天天能在自己的工作区里写文件、跑命令,做好的文件会交给你。输入框里已经替你写好了一句,点发送试试。";}setTimeout(() => P.coach(coach, () => stage("A")), 500);$("#c-later").addEventListener("click", () => P.leave(coach));diff --git a/anymodelbot_design/onboarding/js/page-index.js b/anymodelbot_design/onboarding/js/page-index.jsindex f4a17a1..454f2ee 100644--- a/anymodelbot_design/onboarding/js/page-index.js+++ b/anymodelbot_design/onboarding/js/page-index.js@@ -1,4 +1,4 @@-// 目录页:标题旁的小蓝一进来就弹出来打招呼,之后会动、能戳+// 目录页:标题旁的天天一进来就弹出来打招呼,之后会动、能戳import * as P from "./proto.js";P.init();diff --git a/anymodelbot_design/onboarding/js/page-main.js b/anymodelbot_design/onboarding/js/page-main.jsindex 87c0f5b..9255e21 100644--- a/anymodelbot_design/onboarding/js/page-main.js+++ b/anymodelbot_design/onboarding/js/page-main.js@@ -1,4 +1,4 @@-// 01 上手清单:清单依次浮现 → 发出第一句 → 清单缩进左下角 → 小蓝思考、逐字回复 → 第 1 步完成+// 01 上手清单:清单依次浮现 → 发出第一句 → 清单缩进左下角 → 天天思考、逐字回复 → 第 1 步完成import * as P from "./proto.js";P.init({ progress: 0 });@@ -51,7 +51,7 @@ async function run(text) {if (!done) {done = true;await P.wait(300);- P.stepDone(1, "跟小蓝打个招呼", head);+ P.stepDone(1, "跟天天打个招呼", head);await P.wait(800);P.coach(coach);}diff --git a/anymodelbot_design/onboarding/js/page-media.js b/anymodelbot_design/onboarding/js/page-media.jsindex 2be48da..2e16ee1 100644--- a/anymodelbot_design/onboarding/js/page-media.js+++ b/anymodelbot_design/onboarding/js/page-media.js@@ -1,4 +1,4 @@-// 06 生成一张图:发出一句 → 小蓝想一下 → 弹出「先确认」卡片(头像跳着等你)→ 选模型、确认 →+// 06 生成一张图:发出一句 → 天天想一下 → 弹出「先确认」卡片(头像跳着等你)→ 选模型、确认 →// 生成中(闪光 + 进度)→ 图片从模糊到清晰 → 余额扣一点 → 第 6 步完成,清单全部完成,撒彩带import * as P from "./proto.js";@@ -20,9 +20,9 @@ function stage(s) {$("#c-note").hidden = s !== "B";$("#c-next").hidden = s !== "C";const T = {- A: ["生成一张图", "小蓝可以画图、做视频。输入框里已经替你写好了一句,点发送看看。"],+ A: ["生成一张图", "天天可以画图、做视频。输入框里已经替你写好了一句,点发送看看。"],B: [orig.title, orig.body],- C: ["六件事都做完了", "小蓝已经准备好了。还有一些小提示,会在你第一次用到对应功能时出现。"],+ C: ["六件事都做完了", "天天已经准备好了。还有一些小提示,会在你第一次用到对应功能时出现。"],X: ["没关系,这次没花钱", "想好了再让它画。换个说法,或者换个模型都行。"],}[s];$("#c-title").textContent = T[0];@@ -123,7 +123,7 @@ async function generate(name) {await P.wait(700);P.confetti(result, 70);P.stepDone(6, "生成一张图");- setTimeout(() => P.toast("上手清单全部完成", "小蓝已经准备好了"), 900);+ setTimeout(() => P.toast("上手清单全部完成", "天天已经准备好了"), 900);await P.wait(800);P.coach(coach, () => stage("C"));busy = false;diff --git a/anymodelbot_design/onboarding/js/page-model.js b/anymodelbot_design/onboarding/js/page-model.jsindex 85bd3d1..15936ce 100644--- a/anymodelbot_design/onboarding/js/page-model.js+++ b/anymodelbot_design/onboarding/js/page-model.js@@ -46,7 +46,7 @@ function stage(s) {l.hidden = false;} else {t.textContent = "换好了";- b.textContent = `现在小蓝用的是 ${model},只对这段对话生效。问它一句试试,或者继续下一步。`;+ b.textContent = `现在天天用的是 ${model},只对这段对话生效。问它一句试试,或者继续下一步。`;l.hidden = true;if (!$("#c-badge")) kick.insertAdjacentHTML("beforeend", `<span id="c-badge" style="display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: #d7ff00; color: #161a00; ${MONO}; font-size: 11px; letter-spacing: 0">${P.ICON.check}完成</span>`);}@@ -124,7 +124,7 @@ async function pick(opt) {}}-$("#set-default").addEventListener("click", () => P.toast("已设为小蓝的默认模型", model));+$("#set-default").addEventListener("click", () => P.toast("已设为天天的默认模型", model));// —— 换了模型后问一句 ——const chat = P.composer({ input: $("#input"), send: $("#send"), onSend: ask });@@ -136,7 +136,7 @@ async function ask(text) {const r = P.botReply(log);await P.wait(900);P.setState(head, "replying");- await r.say(`现在是 ${model} 在回答你:我是住在你电脑里的小蓝,能聊、能写、能动手,还记得你交代过的事。`);+ await r.say(`现在是 ${model} 在回答你:我是住在你电脑里的天天,能聊、能写、能动手,还记得你交代过的事。`);r.done(`${model} · `);P.setState(head, "idle");busy = false;diff --git a/anymodelbot_design/onboarding/js/page-weixin.js b/anymodelbot_design/onboarding/js/page-weixin.jsindex 2306585..337968e 100644--- a/anymodelbot_design/onboarding/js/page-weixin.js+++ b/anymodelbot_design/onboarding/js/page-weixin.js@@ -38,7 +38,7 @@ function stage(n) {}$$("#c-list li").forEach((li) => (li.style.opacity = Number(li.dataset.s) === n ? "1" : ".42"));if (n === 4) {- $("#c-title").textContent = "小蓝已经在微信里了";+ $("#c-title").textContent = "天天已经在微信里了";$("#c-body").textContent = "在微信里给它发条消息试试:同一个机器人,同一份记忆。";$("#c-list").hidden = true;if (!$("#c-badge")) $("#c-kick").insertAdjacentHTML("beforeend", `<span id="c-badge" style="display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: #d7ff00; color: #161a00; ${MONO}; font-size: 11px; letter-spacing: 0">${P.ICON.check}完成</span>`);@@ -107,7 +107,7 @@ async function connected() {P.setState(head, "idle");P.confetti(badgeEl, 36);P.playShot(head, "love");- P.stepDone(3, "把小蓝接到微信");+ P.stepDone(3, "把天天接到微信");P.lastMessage("微信已连接");await P.wait(600);P.coach(coach, () => stage(4));diff --git a/anymodelbot_design/onboarding/js/proto.js b/anymodelbot_design/onboarding/js/proto.jsindex 147b3a3..d38d758 100644--- a/anymodelbot_design/onboarding/js/proto.js+++ b/anymodelbot_design/onboarding/js/proto.js@@ -11,9 +11,9 @@ export const wait = (ms) => new Promise((r) => setTimeout(r, reduce ? Math.min(mexport const PAGES = ["Main.html", "Step2-Model.html", "Step3-Weixin.html", "Step4-Hands.html", "Step5-Memory.html", "Step6-Media.html", "Tips.html"];export const STEPS = [- ["跟小蓝打个招呼", "Main.html"],+ ["跟天天打个招呼", "Main.html"],["换个模型", "Step2-Model.html"],- ["把小蓝接到微信", "Step3-Weixin.html"],+ ["把天天接到微信", "Step3-Weixin.html"],["让它动手做件事", "Step4-Hands.html"],["让它记住你", "Step5-Memory.html"],["生成一张图", "Step6-Media.html"],diff --git a/scripts/build-bot-avatars.py b/scripts/build-bot-avatars.pyindex 99f80fa..3e63846 100644--- a/scripts/build-bot-avatars.py+++ b/scripts/build-bot-avatars.py@@ -7,7 +7,7 @@1 earL 左耳(向头里多留一截,转动时不露缝;头那一层盖住多出来的部分)2 earR 右耳3 top 头顶配件(天线球 / 星星 / 嫩芽 / 角 / 宝石 / 天线),同样向头里多留一截- 4–7 上面四层各自的"发光部分"(红魔的灯带、紫钻的霓虹线),没有就是空的+ 4–7 上面四层各自的"发光部分"(哒哒的灯带、晶晶的霓虹线),没有就是空的只用 numpy + Pillow: python3 scripts/build-bot-avatars.py官网的 AVIF 版要从无损的精灵图编码(site/scripts/make-bot-avif.ts): python3 scripts/build-bot-avatars.py --out <目录> --png@@ -24,7 +24,7 @@ ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))SRC = os.path.join(ROOT, "anymodelbot_design", "logo avator")OUT = os.path.join(ROOT, "ui", "design", "bots")-# 源图 1536×1024。取以 (767, 511) 为中心、边长 1290 的正方形(刚好装下最宽的红魔),缩到 CELL。+# 源图 1536×1024。取以 (767, 511) 为中心、边长 1290 的正方形(刚好装下最宽的哒哒),缩到 CELL。SIDE, CX, CY = 1290, 767, 511CELL = 448QUALITY = 86@@ -34,7 +34,7 @@ CHARS = {# visor: 面罩 x0, y0, x1, y1, 圆角(抹眼睛只在面罩里进行,不碰外圈绒毛)# ear: cutL/cutR 是头的侧边(耳朵和头的分界),y0–y1 是耳朵的纵向范围# top: x0–x1 × (0, cut) 是配件;stem 是配件插进头里的那一段(多留的部分只在这段宽度里)- # keep: 抹眼睛时要保住的椭圆(小萌面罩上的腮红)+ # keep: 抹眼睛时要保住的椭圆(闪闪面罩上的腮红)# glow: 发光部分 = (通道, 从, 到, 出现在哪些层:h 头 / l 左耳 / r 右耳 / t 配件)"blue": dict(src="主-蓝色.png", eyes=[(622.7, 678.6), (906.6, 678.6)], er=44, patch=(1.5, 2.3), visor=(460, 532, 1075, 820, 140),ear=dict(cutL=356, cutR=1179, y0=515, y1=822), top=dict(x0=630, x1=900, cut=276, stem=(718, 815))),diff --git a/src/agent/settings.ts b/src/agent/settings.tsindex dc77f9a..a46bc6f 100644--- a/src/agent/settings.ts+++ b/src/agent/settings.ts@@ -5,7 +5,7 @@ export type CuBackend = "cua" | "codex";export type CuApproval = "auto" | "ask-input";/** auto = 只在预计花费超过上限时问(视频算不出花费也问);always = 每次生成前都问 */export type MediaConfirm = "auto" | "always";-/** 内置头像角色(ui/components/avatar.js 的 BOT_CHARS);blue 是主角 */+/** 内置头像角色(ui/components/avatar.js 的 BOT_CHARS);blue 是默认头像 */export const BOT_AVATARS = ["blue", "yellow", "green", "red", "purple", "orange"] as const;export type BotAvatarKey = (typeof BOT_AVATARS)[number];diff --git a/src/tasks/attention.ts b/src/tasks/attention.tsindex 643662b..f0bdba6 100644--- a/src/tasks/attention.ts+++ b/src/tasks/attention.ts@@ -43,7 +43,7 @@ export interface AttentionItem {status: string;/*** 界面上的那一句(不带机器人名):「「GPU 价格调研」在等你回答」「微信登录已过期」。几个机器人时界面在前面加上名字- * (「小蓝的「GPU 价格调研」在等你回答」);侧栏机器人行的第二行也是它+ * (「天天的「GPU 价格调研」在等你回答」);侧栏机器人行的第二行也是它*/head: string;/** 第二行:问题、命令、失败原因、没送到的那句话 */@@ -268,7 +268,7 @@ export function botLine(it: AttentionItem): string {return it.head;}-/** 系统通知:标题「小蓝 需要你」,正文「GPU 价格调研:报告用中文还是英文?」(设计第 6 节);没有第二行时是那一句 */+/** 系统通知:标题「天天 需要你」,正文「GPU 价格调研:报告用中文还是英文?」(设计第 6 节);没有第二行时是那一句 */export function notificationOf(it: AttentionItem): { title: string; body: string } {const body = it.line ? `${it.subject}:${it.line}` : botLine(it);return { title: tr("tasks.notifyTitle", { name: it.botName }), body: body.length > 120 ? body.slice(0, 119) + "…" : body };diff --git a/src/tasks/service.ts b/src/tasks/service.tsindex 089f25f..85e5c20 100644--- a/src/tasks/service.ts+++ b/src/tasks/service.ts@@ -2941,7 +2941,7 @@ function questionOf(b: any): TaskReport["question"] | undefined {/** 比引用时去掉空白、记号和末尾的省略号(引用可能被截短) */const normQuote = (s: string) => s.replace(/\s+/g, "").replace(/[❓⚠\uFE0F]/g, "").replace(/(…|\.\.\.)+$/, "");-/** 前面可能带着发送者的名字("小蓝:") */+/** 前面可能带着发送者的名字("天天:") */const unnamed = (q: string) => q.replace(/^[^::「]{1,24}[::]/, "");/** 引用的是不是推出去的那一条:去掉空白和记号再比;引用可能被截短(末尾省略号)、前面带名字 */diff --git a/ui/components/avatar.js b/ui/components/avatar.jsindex 55887bd..7666558 100644--- a/ui/components/avatar.js+++ b/ui/components/avatar.js@@ -1,4 +1,4 @@-// 机器人头像:6 个内置毛绒角色(蓝色"小蓝"是主角),每个机器人配一个;会看指针、眨眼,并对平台里发生的事做出反应。+// 机器人头像:6 个内置毛绒角色(蓝色的"天天"是默认头像),每个机器人配一个,只决定长相,和它做什么无关;会看指针、眨眼,并对平台里发生的事做出反应。// 图层由 scripts/build-bot-avatars.py 从 anymodelbot_design/logo avator/ 生成(ui/design/bots/<key>.webp);// 下面的几何是相对头像方框的百分比,和脚本输出的是同一套数,换图后要一起更新。import { useEffect, useRef, useState } from "preact/hooks";@@ -8,9 +8,9 @@ import { t } from "../lib/i18n.js";/*** 角色。eyes:两眼中心;r:眼睛半径;earL / earR / top:耳朵与头顶配件的转轴;tip:配件的中心(特效从这里发出);- * lens:护目镜镜片(只有探险者有)。- * 名字 name、定位 role、介绍 pick(适合配给哪些机器人,新建页模板按这个配对)在词典 avatar.chars.<key> 里,- * 用 charText(key) 取;BOT_CHARS[key].name / .role / .pick 也能读(getter,读的时候按当前语言翻译)。+ * lens:护目镜镜片(只有飞飞有)。+ * 名字 name、一句介绍 about 在词典 avatar.chars.<key> 里,用 charText(key) 取;BOT_CHARS[key].name / .about 也能读(getter,读的时候按当前语言翻译)。+ * 角色没有定位:机器人做什么由人设决定,不要在这里给角色写岗位,也不要让模板绑定角色。*/export const BOT_CHARS = {blue: {@@ -36,10 +36,10 @@ export const BOT_CHARS = {export const CHAR_KEYS = Object.keys(BOT_CHARS);export const MAIN_CHAR = "blue";-/** 角色的名字、定位和介绍(按当前语言) */-export const charText = (key) => ({ name: t(`avatar.chars.${key}.name`), role: t(`avatar.chars.${key}.role`), pick: t(`avatar.chars.${key}.pick`) });+/** 角色的名字和介绍(按当前语言) */+export const charText = (key) => ({ name: t(`avatar.chars.${key}.name`), about: t(`avatar.chars.${key}.about`) });for (const k of CHAR_KEYS)- for (const f of ["name", "role", "pick"]) Object.defineProperty(BOT_CHARS[k], f, { get: () => t(`avatar.chars.${k}.${f}`), enumerable: true });+ for (const f of ["name", "about"]) Object.defineProperty(BOT_CHARS[k], f, { get: () => t(`avatar.chars.${k}.${f}`), enumerable: true });function hash(s) {let h = 2166136261;@@ -49,7 +49,7 @@ function hash(s) {}return h >>> 0;}-/** 机器人用哪个角色:设置里选过的 > 默认机器人用主角 > 由 id 稳定地挑一个 */+/** 机器人用哪个角色:设置里选过的 > 默认机器人用默认头像 > 由 id 稳定地挑一个 */export function charOf(bot) {const a = bot && bot.settings && bot.settings.avatar;if (a && BOT_CHARS[a]) return a;@@ -233,7 +233,7 @@ export function AvatarPicker({ value, fallback, onChange, size = 44, label = t("${CHAR_KEYS.map((k) => {const c = charText(k);return html`<button type="button" key=${k} class=${`avatar-opt${k === cur ? " on" : ""}`} role="radio" aria-checked=${k === cur}- title=${`${c.name} · ${c.pick}`} onClick=${() => k !== cur && onChange(k)}>+ title=${`${c.name} · ${c.about}`} onClick=${() => k !== cur && onChange(k)}><${BotAvatar} char=${k} size=${size} state=${k === cur ? "listening" : "idle"} /><span class="avatar-name">${c.name}</span></button>`;diff --git a/ui/design/README.md b/ui/design/README.mdindex b87b950..dcec2f4 100644--- a/ui/design/README.md+++ b/ui/design/README.md@@ -318,18 +318,20 @@ JS 组件(`ui/components/ui.js`)只是给常用组合一个带逻辑的写## 头像-6 个内置毛绒角色(原图在 `anymodelbot_design/logo avator/`),蓝色的**小蓝是主角**:默认机器人、新建页的默认选择、启动和连接页的吉祥物都是它。+6 个内置毛绒角色(原图在 `anymodelbot_design/logo avator/`),蓝色的**天天是默认头像**:默认机器人、新建页的默认选择、启动和连接页的吉祥物都是它。-| 角色 | key | 招牌动作 | 推荐配给 |-|---|---|---|---|-| 小蓝 | `blue` | 天线晃、天线球亮、一圈圈发信号 | 默认助手、会议纪要 |-| 小萌 | `yellow` | 星星一闪一闪、完成时像硬币一样转 | 客服 |-| 绿草 | `green` | 叶子被风吹、完成时长高一截、出错时蔫了 | 群聊日报 |-| 红魔 | `red` | 耳机灯带跟着节拍亮、耳机震 | 代码助手 |-| 紫钻 | `purple` | 宝石浮起来转、霓虹线一明一暗 | 写作助手 |-| 探险者 | `orange` | 眼睛大范围搜寻、护目镜反光 | 翻译官 |--- **配对**:机器人设置的 `settings.avatar`(新建页和机器人设置里选;模板自带推荐,见 `screens/new-bot.js` 的 `TEMPLATES`);没选过时 `charOf(bot)` 由 id 稳定地挑一个,`default` 机器人是小蓝。+角色只决定长相和小动作,不决定机器人做什么:不要给角色写岗位或"适合配给谁",模板也不绑定角色。++| 角色 | key | 招牌动作 |+|---|---|---|+| 天天 | `blue` | 天线晃、天线球亮、一圈圈发信号 |+| 闪闪 | `yellow` | 星星一闪一闪、完成时像硬币一样转 |+| 芽芽 | `green` | 叶子被风吹、完成时长高一截、出错时蔫了 |+| 哒哒 | `red` | 耳机灯带跟着节拍亮、耳机震 |+| 晶晶 | `purple` | 宝石浮起来转、霓虹线一明一暗 |+| 飞飞 | `orange` | 眼睛大范围搜寻、护目镜反光 |++- **选择**:机器人设置的 `settings.avatar`(新建页和机器人设置里选);没选过时 `charOf(bot)` 由 id 稳定地挑一个,`default` 机器人是天天。- **持续状态** `state`:`idle`、`listening`(你在输入)、`thinking`(还没出字)、`replying`、`working`(后台任务)、`waiting`(等你批准)、`sleep`(连不上本机服务)。- **一次性反应** `cue={ kind, at }`:`hello`(新建 / 打招呼,`greet` 在挂载时播)、`done`(忙 → 不忙时自动播)、`error`、以及戳头像触发的 `poke` / `love`(连戳三下)/ `dizzy`(戳六下)。时长是 `tokens/motion.css` 的 `--bot-*`。- **lively**:只给大头像(空态、新建页、启动页):呼吸、眨眼、四处看、脚下有影子。小于 36px 不画粒子。@@ -346,7 +348,7 @@ JS 组件(`ui/components/ui.js`)只是给常用组合一个带逻辑的写| 已进行 12 分钟,花了约 $0.08 | 进行中 · 12 分钟 · 约 $0.08 || 观察中,明天 08:00 再运行 | 观察中 · 下次 明天 08:00 || 第 1 次运行,用了 12 分钟 | 第 1 次 · 开始 · 34 步 · 12 分钟 |- | 小蓝的「GPU 价格调研」在等你回答 | 小蓝 · GPU 价格调研 · 等你回答 |+ | 天天的「GPU 价格调研」在等你回答 | 天天 · GPU 价格调研 · 等你回答 || 后台任务「GPU 价格调研」进行中 | 后台任务 · GPU 价格调研 · 进行中 || 规则「看 X 价格」已观察 3 次,需要你来决定是否执行 | 已观察 3 次 · 改为执行? |diff --git a/ui/design/components/avatar.css b/ui/design/components/avatar.cssindex 47a3320..b7c94b4 100644--- a/ui/design/components/avatar.css+++ b/ui/design/components/avatar.css@@ -22,16 +22,16 @@--bf-hop: 2.4s; /* 等你批准:跳两下停一下 */--bf-snore: 3.6s; /* 睡觉 */--bf-perk: .9s; /* 悬停时天线弹一下 */- --bf-ring: 1.5s; /* 小蓝的天线信号 */+ --bf-ring: 1.5s; /* 天天的天线信号 */--bf-ring-gap: .5s;--bf-sway: .55s; /* 天线、角左右晃 */- --bf-twinkle: 1.3s; /* 小萌的星星、紫钻的闪光 */- --bf-flutter: .9s; /* 绿草的叶子 */- --bf-beat: .6s; /* 红魔的灯带节拍 */- --bf-spin: 3.2s; /* 紫钻的宝石转动 */- --bf-float: 2.2s; /* 紫钻的宝石悬浮 */- --bf-sweep: 2.2s; /* 探险者护目镜的反光 */- --bf-scan: 1.6s; /* 探险者四处搜寻 */+ --bf-twinkle: 1.3s; /* 闪闪的星星、晶晶的闪光 */+ --bf-flutter: .9s; /* 芽芽的叶子 */+ --bf-beat: .6s; /* 哒哒的灯带节拍 */+ --bf-spin: 3.2s; /* 晶晶的宝石转动 */+ --bf-float: 2.2s; /* 晶晶的宝石悬浮 */+ --bf-sweep: 2.2s; /* 飞飞护目镜的反光 */+ --bf-scan: 1.6s; /* 飞飞四处搜寻 */--bf-dot: 1.2s; /* 思考气泡里的点 */--bf-bang: 1.2s;--bf-z: 3s;@@ -64,7 +64,7 @@.bf-ear-r .bf-glow { background-position-x: calc(600% / 7); }.bf-top .bf-glow { background-position-x: 100%; }.bf-glow { opacity: 0; mix-blend-mode: plus-lighter; filter: drop-shadow(0 0 calc(var(--s) * .03) var(--bf-glow)); }-.bot-face:not([data-char="red"], [data-char="purple"]) .bf-glow { display: none; } /* 只有红魔、紫钻有发光层 */+.bot-face:not([data-char="red"], [data-char="purple"]) .bf-glow { display: none; } /* 只有哒哒、晶晶有发光层 */.bf-ear-l, .bf-ear-l .bf-pin { transform-origin: var(--o-el); }.bf-ear-r, .bf-ear-r .bf-pin { transform-origin: var(--o-er); }.bf-top, .bf-top .bf-pin, .bf-top .bf-img { transform-origin: var(--o-top); }@@ -89,7 +89,7 @@}.bot-face:is([data-eyes="happy"], [data-eyes="heart"]) .bf-blush { opacity: .9; scale: 1; }-/* 探险者的护目镜:镜片上扫过一道反光 */+/* 飞飞的护目镜:镜片上扫过一道反光 */.bf-lens { position: absolute; width: var(--lens); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden; }.bf-lens::after {content: ""; position: absolute; inset: -30%; translate: -110% 0;@@ -293,14 +293,14 @@.bot-face[data-shot="error"] .bf-top { rotate: 12deg; }/* —— 角色的招牌动作 —— */-/* 小蓝:天线左右晃、天线球亮起来、一圈圈发出信号;完成时天线球闪一下 */+/* 天天:天线左右晃、天线球亮起来、一圈圈发出信号;完成时天线球闪一下 */.bot-face[data-char="blue"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-sway var(--bf-sway) var(--ease-in-out) infinite alternate; }.bot-face[data-char="blue"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top .bf-img { animation: bf-bulb var(--bf-ring) var(--ease-in-out) infinite; }.bot-face[data-char="blue"]:is([data-shot="done"], [data-shot="hello"]) .bf-top .bf-img { animation: bf-bulb var(--bot-poke) var(--ease-out) 2; }@keyframes bf-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }@keyframes bf-bulb { 0%, 100% { filter: none; } 40% { filter: brightness(1.45) drop-shadow(0 0 calc(var(--s) * .05) var(--bf-glow)); } }-/* 小萌:星星一闪一闪、身边冒小星星;完成时星星像硬币一样转两圈 */+/* 闪闪:星星一闪一闪、身边冒小星星;完成时星星像硬币一样转两圈 */.bot-face[data-char="yellow"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-twinkle var(--bf-twinkle) var(--ease-in-out) infinite; }.bot-face[data-char="yellow"]:is([data-shot="done"], [data-shot="hello"], [data-shot="love"]) .bf-top .bf-pin { animation: bf-coin var(--bot-done) var(--ease-out); }@keyframes bf-twinkle {@@ -314,7 +314,7 @@100% { transform: perspective(calc(var(--s) * 2)) translateY(0) rotateY(720deg); }}-/* 绿草:叶子像被风吹一样扑簌;完成时嫩芽长高一截、飘下一片叶子;出错时蔫了 */+/* 芽芽:叶子像被风吹一样扑簌;完成时嫩芽长高一截、飘下一片叶子;出错时蔫了 */.bot-face[data-char="green"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-flutter var(--bf-flutter) var(--ease-in-out) infinite; }.bot-face[data-char="green"]:is([data-shot="done"], [data-shot="hello"]) .bf-top .bf-pin { animation: bf-grow var(--bot-done) var(--ease-out); }.bot-face[data-char="green"][data-shot="error"] .bf-top { rotate: 22deg; scale: 1 .86; }@@ -327,7 +327,7 @@84% { transform: scale(.98); }}-/* 红魔:耳机灯带跟着节拍亮(左耳 → 角 → 右耳),耳机一下一下地震;完成时灯带闪三下;出错时灯带乱闪 */+/* 哒哒:耳机灯带跟着节拍亮(左耳 → 角 → 右耳),耳机一下一下地震;完成时灯带闪三下;出错时灯带乱闪 */.bot-face[data-char="red"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-glow { animation: bf-beat var(--bf-beat) var(--ease-out) infinite; }.bot-face[data-char="red"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top .bf-glow { animation-delay: calc(var(--bf-beat) / 3); }.bot-face[data-char="red"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-ear-r .bf-glow { animation-delay: calc(var(--bf-beat) * 2 / 3); }@@ -341,7 +341,7 @@@keyframes bf-flash3 { 0%, 30%, 62%, 100% { opacity: 0; } 14%, 46%, 78% { opacity: 1; } }@keyframes bf-flicker { 0%, 12%, 30%, 44%, 70% { opacity: 1; } 6%, 22%, 38%, 58%, 100% { opacity: 0; } }-/* 紫钻:宝石浮起来慢慢转、霓虹线一明一暗、身边闪光;完成时宝石飞快转两圈;出错时霓虹乱闪 */+/* 晶晶:宝石浮起来慢慢转、霓虹线一明一暗、身边闪光;完成时宝石飞快转两圈;出错时霓虹乱闪 */.bot-face[data-char="purple"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-levitate var(--bf-float) var(--ease-in-out) infinite alternate; }.bot-face[data-char="purple"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top .bf-img { animation: bf-gem var(--bf-spin) linear infinite; }.bot-face[data-char="purple"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-glow { animation: bf-neon var(--bf-float) var(--ease-in-out) infinite alternate; }@@ -353,7 +353,7 @@@keyframes bf-gem { from { transform: perspective(calc(var(--s) * 2)) rotateY(0); } to { transform: perspective(calc(var(--s) * 2)) rotateY(360deg); } }@keyframes bf-neon { from { opacity: .15; } to { opacity: .9; } }-/* 探险者:天线一蹦一蹦、眼睛大范围地左右搜寻、护目镜反光;完成时两只镜片一起闪 */+/* 飞飞:天线一蹦一蹦、眼睛大范围地左右搜寻、护目镜反光;完成时两只镜片一起闪 */.bot-face[data-char="orange"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-sway var(--bf-sway) var(--ease-back) infinite alternate; }.bot-face[data-char="orange"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-glance { animation: bf-scan var(--bf-scan) var(--ease-in-out) infinite alternate; }.bot-face[data-char="orange"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-lens::after { animation: bf-glint var(--bf-sweep) var(--ease-in-out) infinite; }@@ -368,7 +368,7 @@.fx-rings { left: var(--tip-x); top: var(--tip-y); }.fx-rings i {width: calc(var(--s) * .22); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;- border: calc(var(--s) * .016) solid var(--bf-glow); /* 描边:小蓝天线发出的信号圈,是图形不是容器 */+ border: calc(var(--s) * .016) solid var(--bf-glow); /* 描边:天天天线发出的信号圈,是图形不是容器 */animation: bf-ring var(--bf-ring) var(--ease-out) infinite;}.fx-rings i:nth-child(2) { animation-delay: var(--bf-ring-gap); }@@ -446,7 +446,7 @@100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--s) * -.62 * var(--far, 1))) scale(1) rotate(90deg); }}-/* 绿草长高时飘下来的叶子 */+/* 芽芽长高时飘下来的叶子 */.fx-leaf {left: var(--tip-x); top: var(--tip-y); width: calc(var(--s) * .12); height: calc(var(--s) * .07);border-radius: 0 100%; background: color-mix(in srgb, var(--bf-glow) 60%, var(--bf-eye));diff --git a/ui/design/gallery.js b/ui/design/gallery.jsindex 208f03b..ed0e7cd 100644--- a/ui/design/gallery.js+++ b/ui/design/gallery.js@@ -3,7 +3,6 @@ import { render, createContext } from "preact";import { useContext, useEffect, useLayoutEffect, useRef, useState } from "preact/hooks";import { html, Icon, ICONS, Button, IconButton, Seg, Switch, MenuButton, Menu, Badge, Notice, Skeleton, Spinner, CopyButton, Toasts, DialogHost, Splitter } from "../components/ui.js";import { BotAvatar, AvatarPicker, AppMark, BOT_CHARS, CHAR_KEYS, MAIN_CHAR } from "../components/avatar.js";-import { TEMPLATES } from "../screens/new-bot.js";import { NeedItem, NeedsRow } from "../screens/needs-you.js";import { RuleRow, RuleDetail } from "../components/rules.js";import { PausedLine, TaskChip, TaskGroup, TaskRow } from "../components/tasks.js";@@ -163,8 +162,8 @@ function AvatarCastDemo() {return html`<div class="cluster" style="--gap: var(--space-6); align-items: start">${CHAR_KEYS.map((k) => html`<div class="stack" style="--gap: var(--space-1); justify-items: center; text-align: center; width: 120px"><${BotAvatar} char=${k} size=${96} lively pokeable greet />- <b class="t-title">${BOT_CHARS[k].name}${k === MAIN_CHAR ? " · 主角" : ""}</b>- <span class="t-meta">${BOT_CHARS[k].pick}</span>+ <b class="t-title">${BOT_CHARS[k].name}${k === MAIN_CHAR ? " · 默认" : ""}</b>+ <span class="t-meta">${BOT_CHARS[k].about}</span></div>`)}</div>`;}@@ -200,15 +199,9 @@ function AvatarSizeDemo() {</div>`;}-function AvatarPairDemo() {+function AvatarPickerDemo() {const [v, setV] = useState("");- return html`<div class="stack" style="--gap: var(--space-4)">- <div class="cluster" style="--gap: var(--space-4)">- ${[{ key: "", name: "空白新建", avatar: MAIN_CHAR }, ...TEMPLATES].map((t) => html`<div class="cluster" style="--gap: var(--space-2)">- <${BotAvatar} char=${t.avatar} size=${30} /><span class="t-body">${t.name}</span></div>`)}- </div>- <${AvatarPicker} value=${v} fallback=${MAIN_CHAR} onChange=${setV} />- </div>`;+ return html`<${AvatarPicker} value=${v} fallback=${MAIN_CHAR} onChange=${setV} />`;}// —— 材质:环境光上叠几层玻璃,底下放有颜色的内容,才看得出透光和模糊 ——@@ -411,7 +404,7 @@ function WinApp({ screen = "chat", open: initial = false }) {? html`<button type="button" class="nav-item sel"><${Icon} name="sliders" size="md" /><span>常规</span></button><button type="button" class="nav-item"><${Icon} name="palette" size="md" /><span>外观</span></button>`: html`<div class="thread sel"><${BotAvatar} char="blue" size=${38} /><span class="body">- <span class="line"><span class="title">小蓝</span><span class="when num">09:26</span></span>+ <span class="line"><span class="title">天天</span><span class="when num">09:26</span></span><span class="line"><span class="snip">整理好了,截图按日期分进了 3 个文件夹</span></span></span></div>`}</nav></aside>@@ -422,7 +415,7 @@ function WinApp({ screen = "chat", open: initial = false }) {<div class="row"><div class="who"><div class="name">开机自启</div><div class="sub">登录系统后在后台启动</div></div><div class="ctl"><${Switch} label="开机自启" value=${true} onChange=${() => {}} /></div></div></div></div></section>`: html`<section class="chat"><header class="chat-head">- <button type="button" class="head-bot" aria-pressed=${open} onClick=${toggle}><${BotAvatar} char="blue" size=${22} /><span class="name">小蓝</span></button>+ <button type="button" class="head-bot" aria-pressed=${open} onClick=${toggle}><${BotAvatar} char="blue" size=${22} /><span class="name">天天</span></button><span class="grow"></span><${IconButton} icon="compose" iconSize="md" label="新对话" /><${IconButton} icon="panel" iconSize="md" label="信息面板" on=${open} aria-pressed=${open} onClick=${toggle} />@@ -434,7 +427,7 @@ function WinApp({ screen = "chat", open: initial = false }) {</main>${fx.mounted && html`<div class=${`panel-scrim${fx.leaving ? " leaving" : ""}`} onClick=${() => setOpen(false)}></div><aside class=${`panel${fx.leaving ? " leaving" : ""}`}>- <div class="panel-head"><span class="title">小蓝</span>+ <div class="panel-head"><span class="title">天天</span><${IconButton} icon="gear" iconSize="md" label="机器人设置" /><${IconButton} icon="close" iconSize="md" label="关闭" class="panel-close" onClick=${() => setOpen(false)} /></div><div class="panel-body"><div class="list-head">渠道</div><div class="list"><div class="row compact"><div class="who"><div class="name">微信</div><div class="sub">已连接</div></div></div>@@ -666,11 +659,11 @@ const { mounted, leaving } = usePresence(open); /* design/motion.js:退场<//><//>- <${Section} id="avatars" title="头像" lead="6 个内置毛绒角色,蓝色的小蓝是主角。每个机器人配一个:新建页和机器人设置里可以选,模板自带推荐,没选过时由 id 决定,默认机器人是小蓝。持续状态跟着平台走(你在输入、思考、回复、工作、等批准、睡觉),完成、出错、新建时播一次性反应;指针靠近时会看过去,大头像可以戳。">+ <${Section} id="avatars" title="头像" lead="6 个内置毛绒角色,蓝色的天天是默认头像。每个机器人配一个,只决定长相,和它做什么无关:新建页和机器人设置里可以选,没选过时由 id 决定,默认机器人是天天。持续状态跟着平台走(你在输入、思考、回复、工作、等批准、睡觉),完成、出错、新建时播一次性反应;指针靠近时会看过去,大头像可以戳。"><${Demo} title="角色" note="96px · lively · 可以戳(连戳三下、六下试试)">${() => html`<${AvatarCastDemo} />`}<//><${Demo} title="状态与反应" note="上面切持续状态,按钮播一次性反应;点右边的小头像换成主视图">${() => html`<${AvatarStateDemo} />`}<//><${Demo} title="尺寸" note="22 顶栏 / 38 侧栏 / 56 / 96 空态;小于 36px 不画粒子。悬停 38px 那排,天线会弹一下">${() => html`<${AvatarSizeDemo} />`}<//>- <${Demo} title="配对" note="新建页的模板 → 角色;下面是选择器(AvatarPicker)">${() => html`<${AvatarPairDemo} />`}<//>+ <${Demo} title="选择器" note="AvatarPicker:只选长相,和模板、人设无关">${() => html`<${AvatarPickerDemo} />`}<//><//><${Section} id="patterns" title="对话" lead="ui/css/chat.css 里的页面模式(顶栏参考 Grok Bot,对话流与输入框参考 Codex):用户消息是浅灰气泡,回复是整列正文,上方一行工作状态,下方悬停出现操作。">@@ -720,7 +713,7 @@ const { mounted, leaving } = usePresence(open); /* design/motion.js:退场<${NeedsRow} count=${3} onClick=${() => {}} /><${NeedsRow} count=${2} on onClick=${() => {}} /><${NeedsRow} count=${0} /></div>`}<//>- <${Demo} flush col title="列表" note="NeedItem:标题行是一句话,几个机器人时带上名字(「小蓝的「GPU 价格调研」在等你回答」)。等你回答 / 等你回答(任务接着在做,不回复就按默认)/ 等你批准 / 预算用完(再给 $1 继续?)/ 未送达 / 失败 / 规则本月预算用完 / 登录过期 / 预算留给聊天 / 观察够了,要不要改为执行(不推送)">+ <${Demo} flush col title="列表" note="NeedItem:标题行是一句话,几个机器人时带上名字(「天天的「GPU 价格调研」在等你回答」)。等你回答 / 等你回答(任务接着在做,不回复就按默认)/ 等你批准 / 预算用完(再给 $1 继续?)/ 未送达 / 失败 / 规则本月预算用完 / 登录过期 / 预算留给聊天 / 观察够了,要不要改为执行(不推送)">${() => html`<div class="list needs-list">${NEEDS.map((it) => html`<${NeedItem} item=${it} multiBot onAct=${async () => {}} />`)}</div>`}<//><//>@@ -796,20 +789,20 @@ const { mounted, leaving } = usePresence(open); /* design/motion.js:退场/** 「需要你」的样例(单人:一个人用自己的机器人) */const NEEDS = [- { id: "q", kind: "question", botName: "小蓝", subject: "GPU 价格调研", status: "等你回答", head: "「GPU 价格调研」在等你回答", line: "报告用中文还是英文?", since: Date.now() - 2 * 60_000, severity: "warn", questions: [{ id: "a", question: "报告用中文还是英文?", options: [{ label: "中文" }, { label: "英文" }] }] },- { id: "qd", kind: "question", botName: "小蓝", subject: "竞品周报", status: "等你回答", head: "「竞品周报」在等你回答", line: "报告用中文还是英文?", note: "不回复就按中文做", since: Date.now() - 3 * 60_000, severity: "warn", taskId: "t4", questions: [{ id: "answer", question: "报告用中文还是英文?", options: [{ label: "中文" }, { label: "英文" }], default: "中文" }] },- { id: "a", kind: "approval", botName: "小蓝", subject: "清理旧构建", status: "等你批准", head: "「清理旧构建」在等你批准", line: "rm -rf build/", since: Date.now() - 5 * 60_000, severity: "warn" },- { id: "bq", kind: "question", botName: "小蓝", subject: "季度报告 PPT", status: "预算用完", head: "「季度报告 PPT」预算用完了", line: "已用约 $1.00,再给 $1 继续?", since: Date.now() - 8 * 60_000, severity: "warn", questions: [{ id: "budget", question: "已用约 $1.00,再给 $1 继续?", options: [{ label: "继续" }, { label: "停止" }] }] },- { id: "d", kind: "delivery", botName: "小蓝", subject: "1 条结果未送达微信", status: "在微信里发条消息就能收到", head: "1 条结果未送达微信,在微信里发条消息就能收到", line: "季度报告做好了,在 tasks 文件夹里。", since: Date.now() - 20 * 60_000, severity: "warn", actions: [] },- { id: "f", kind: "failed", botName: "红魔", subject: "季度报告", status: "失败", head: "「季度报告」失败了", line: "X 云的价格页要登录,我进不去", since: Date.now() - 40 * 60_000, severity: "err" },- { id: "r", kind: "rule", botName: "红魔", subject: "规则「每日 issue 巡检」", status: "连续失败 3 次,已暂停", head: "规则「每日 issue 巡检」连续失败 3 次,已暂停", line: "GitHub 返回 401:令牌可能过期了", since: Date.now() - 90 * 60_000, severity: "err", actions: ["retry"] },- { id: "rb", kind: "rule", botName: "小蓝", subject: "规则「看 X 价格」", status: "本月预算用完", head: "规则「看 X 价格」本月预算用完了", line: "已用约 $3.00,下月自动恢复。再给 $3 继续?", since: Date.now() - 2 * 3600_000, severity: "warn", actions: ["continue"] },- { id: "l", kind: "login", botName: "绿草", subject: "微信登录已过期", status: "", head: "微信登录已过期", line: "", since: Date.now() - 3 * 3600_000, severity: "err" },- { id: "rs", kind: "budget", botName: "小蓝", subject: "后台工作已停", status: "", head: "后台工作已停", line: "机器人预算只剩约 $1.80(共 $10),留给聊天", since: Date.now() - 4 * 3600_000, severity: "warn", actions: ["open"] },- { id: "s", kind: "suggest", botName: "小蓝", subject: "规则「看 X 价格」已观察 3 次,需要你来决定是否执行", status: "", head: "规则「看 X 价格」已观察 3 次,需要你来决定是否执行", line: "本会发送:“X 降价了,现在 ¥199(昨天 ¥259)”", since: Date.now() - 6 * 3600_000, severity: "warn", actions: ["act", "dismiss"], ruleTitle: "看 X 价格" },+ { id: "q", kind: "question", botName: "天天", subject: "GPU 价格调研", status: "等你回答", head: "「GPU 价格调研」在等你回答", line: "报告用中文还是英文?", since: Date.now() - 2 * 60_000, severity: "warn", questions: [{ id: "a", question: "报告用中文还是英文?", options: [{ label: "中文" }, { label: "英文" }] }] },+ { id: "qd", kind: "question", botName: "天天", subject: "竞品周报", status: "等你回答", head: "「竞品周报」在等你回答", line: "报告用中文还是英文?", note: "不回复就按中文做", since: Date.now() - 3 * 60_000, severity: "warn", taskId: "t4", questions: [{ id: "answer", question: "报告用中文还是英文?", options: [{ label: "中文" }, { label: "英文" }], default: "中文" }] },+ { id: "a", kind: "approval", botName: "天天", subject: "清理旧构建", status: "等你批准", head: "「清理旧构建」在等你批准", line: "rm -rf build/", since: Date.now() - 5 * 60_000, severity: "warn" },+ { id: "bq", kind: "question", botName: "天天", subject: "季度报告 PPT", status: "预算用完", head: "「季度报告 PPT」预算用完了", line: "已用约 $1.00,再给 $1 继续?", since: Date.now() - 8 * 60_000, severity: "warn", questions: [{ id: "budget", question: "已用约 $1.00,再给 $1 继续?", options: [{ label: "继续" }, { label: "停止" }] }] },+ { id: "d", kind: "delivery", botName: "天天", subject: "1 条结果未送达微信", status: "在微信里发条消息就能收到", head: "1 条结果未送达微信,在微信里发条消息就能收到", line: "季度报告做好了,在 tasks 文件夹里。", since: Date.now() - 20 * 60_000, severity: "warn", actions: [] },+ { id: "f", kind: "failed", botName: "哒哒", subject: "季度报告", status: "失败", head: "「季度报告」失败了", line: "X 云的价格页要登录,我进不去", since: Date.now() - 40 * 60_000, severity: "err" },+ { id: "r", kind: "rule", botName: "哒哒", subject: "规则「每日 issue 巡检」", status: "连续失败 3 次,已暂停", head: "规则「每日 issue 巡检」连续失败 3 次,已暂停", line: "GitHub 返回 401:令牌可能过期了", since: Date.now() - 90 * 60_000, severity: "err", actions: ["retry"] },+ { id: "rb", kind: "rule", botName: "天天", subject: "规则「看 X 价格」", status: "本月预算用完", head: "规则「看 X 价格」本月预算用完了", line: "已用约 $3.00,下月自动恢复。再给 $3 继续?", since: Date.now() - 2 * 3600_000, severity: "warn", actions: ["continue"] },+ { id: "l", kind: "login", botName: "芽芽", subject: "微信登录已过期", status: "", head: "微信登录已过期", line: "", since: Date.now() - 3 * 3600_000, severity: "err" },+ { id: "rs", kind: "budget", botName: "天天", subject: "后台工作已停", status: "", head: "后台工作已停", line: "机器人预算只剩约 $1.80(共 $10),留给聊天", since: Date.now() - 4 * 3600_000, severity: "warn", actions: ["open"] },+ { id: "s", kind: "suggest", botName: "天天", subject: "规则「看 X 价格」已观察 3 次,需要你来决定是否执行", status: "", head: "规则「看 X 价格」已观察 3 次,需要你来决定是否执行", line: "本会发送:“X 降价了,现在 ¥199(昨天 ¥259)”", since: Date.now() - 6 * 3600_000, severity: "warn", actions: ["act", "dismiss"], ruleTitle: "看 X 价格" },];-/** 任务的样例(单人:自己的机器人小蓝):在调研的、问了个有默认回答的问题接着在做的、等你回答的、昨天做完的(文件夹 3 天后清理) */+/** 任务的样例(单人:自己的机器人天天):在调研的、问了个有默认回答的问题接着在做的、等你回答的、昨天做完的(文件夹 3 天后清理) */const ago = (min) => Date.now() - min * 60_000;const task = (o) => ({ botId: "b", conversationId: "b:weixin:me", channel: "weixin", latest: "", runs: 1, spentUsd: 0, budgetUsd: 1, cleanupAt: 0, endedAt: 0, ...o });const TASKS = [@@ -851,7 +844,7 @@ const ENDED_DETAIL = {runs: [{ id: "r2", cause: "launch", state: "ended", outcome: "done", queuedAt: ago(27 * 1440 + 10), startedAt: ago(27 * 1440 + 10), endedAt: ago(27 * 1440 - 20), steps: 0 }],};-/** 规则的样例(单人:自己的机器人小蓝):每天 8 点看 X 价格(观察中)、每周的 issue 周报、暂停了的巡检、一次性的提醒 */+/** 规则的样例(单人:自己的机器人天天):每天 8 点看 X 价格(观察中)、每周的 issue 周报、暂停了的巡检、一次性的提醒 */const at = (days, h, m = 0) => {const d = new Date();d.setDate(d.getDate() + days);diff --git a/ui/locales/en/avatar.js b/ui/locales/en/avatar.jsindex 8871d39..b775c3e 100644--- a/ui/locales/en/avatar.js+++ b/ui/locales/en/avatar.js@@ -2,11 +2,11 @@export default {label: "Avatar",chars: {- blue: { name: "Ping", role: "Lead · All-rounder", pick: "Its antenna pings the moment a message lands. Default assistant, meeting notes." },- yellow: { name: "Twinkle", role: "Support & chat", pick: "A little star on top — it blushes when it smiles. Support, Q&A, casual chat." },- green: { name: "Sprout", role: "Digests & tidying", pick: "Grows a little every day. Digests, memory tidying, knowledge base." },- red: { name: "Beat", role: "Code & automation", pick: "Headset on, it's in the zone. Coding, scripts, automation." },- purple: { name: "Crystal", role: "Writing & ideas", pick: "Ideas crystallize on top. Writing, polishing, brainstorming." },- orange: { name: "Pilot", role: "Translation & search", pick: "Goggles down, it scours the world for answers. Translation, search, computer use." },+ blue: { name: "Ping", about: "Its antenna pings the moment a message lands." },+ yellow: { name: "Twinkle", about: "A little star on top that twinkles when it smiles. It blushes, too." },+ green: { name: "Sprout", about: "A sprout on top that grows a little every day." },+ red: { name: "Beat", about: "Headset on, it moves to the beat." },+ purple: { name: "Crystal", about: "A crystal on top that catches the light." },+ orange: { name: "Pilot", about: "Goggles down, ready for takeoff." },},};diff --git a/ui/locales/en/newBot.js b/ui/locales/en/newBot.jsindex eb71f00..4f45863 100644--- a/ui/locales/en/newBot.js+++ b/ui/locales/en/newBot.js@@ -4,14 +4,14 @@ export default {cancel: "Cancel (Esc)",firstTitle: "Create your first bot",title: "New bot",- lead: "Pick a buddy, give it a name and a few lines of persona, or start from a template below.",+ lead: "You decide who it is: give it a name and a few lines of persona. The avatar only changes its look, not what it can do.",name: "Name",namePlaceholder: "e.g. Group digest",persona: "Persona",personaHint: "Optional — you can change it later in bot settings",personaPlaceholder: "e.g. You are a helpful assistant. Keep answers concise and accurate.",create: "Create",- fromTemplate: "Start from a template",+ fromTemplate: "Not sure what to write? Start from a template",tpl: {digest: {name: "Group digest",diff --git a/ui/locales/zh-CN/avatar.js b/ui/locales/zh-CN/avatar.jsindex c3d3955..554dd1c 100644--- a/ui/locales/zh-CN/avatar.js+++ b/ui/locales/zh-CN/avatar.js@@ -1,13 +1,13 @@-// avatar · zh-CN:机器人头像角色(components/avatar.js)+// avatar · zh-CN:机器人头像角色(components/avatar.js)。名字和介绍与官网一致(site/src/i18n/zh.ts 的 bots.looks)export default {label: "头像",- /** 每个角色:name 名字、role 定位、pick 介绍(头像选择器的提示里显示) */+ /** 每个角色:name 名字、about 一句介绍(头像选择器的提示里显示)。只讲长相和配饰,不写岗位:机器人做什么由人设决定 */chars: {- blue: { name: "小蓝", role: "主角 · 通用助手", pick: "天线一直在线,什么信号都接得住。默认助手、会议纪要。" },- yellow: { name: "小萌", role: "客服 · 陪聊", pick: "头顶一颗小星星,一笑就脸红。客服、答疑、陪聊。" },- green: { name: "绿草", role: "日报 · 整理", pick: "每天长高一点点。群聊日报、记忆整理、知识库。" },- red: { name: "红魔", role: "代码 · 自动化", pick: "戴上耳机就进入状态。写代码、跑脚本、自动化。" },- purple: { name: "紫钻", role: "写作 · 创意", pick: "灵感会在头顶结晶。写作、润色、出点子。" },- orange: { name: "探险者", role: "翻译 · 搜索", pick: "护目镜一戴,满世界找答案。翻译、搜索、操作电脑。" },+ blue: { name: "天天", about: "头顶的天线天天在线,消息一到就接住。" },+ yellow: { name: "闪闪", about: "头顶一颗小星星,一笑就闪闪发亮,还会脸红。" },+ green: { name: "芽芽", about: "头顶一株嫩芽,每天都长高一点。" },+ red: { name: "哒哒", about: "耳机一戴,节拍就哒哒哒响个不停。" },+ purple: { name: "晶晶", about: "头顶结着一颗水晶,转起来亮晶晶。" },+ orange: { name: "飞飞", about: "飞行护目镜一戴,随时准备起飞。" },},};diff --git a/ui/locales/zh-CN/guide.js b/ui/locales/zh-CN/guide.jsindex 18af723..f77e523 100644--- a/ui/locales/zh-CN/guide.js+++ b/ui/locales/zh-CN/guide.js@@ -1,7 +1,7 @@// guide · zh-CN:新手引导(上手清单)。lib/guide.js 的步骤文案 + components/guide.js 的界面export default {- /** 文案里 {name} 的缺省值:主角机器人的名字 */- defaultBotName: "小蓝",+ /** 文案里 {name} 的缺省值:默认机器人的名字 */+ defaultBotName: "天天",/** 清单菜单里各步骤标题的 {name}(不针对某个机器人) */nameGeneric: "机器人",/** 完成一步时提示里的 {name} */diff --git a/ui/locales/zh-CN/newBot.js b/ui/locales/zh-CN/newBot.jsindex 1332fa9..bc3f8ae 100644--- a/ui/locales/zh-CN/newBot.js+++ b/ui/locales/zh-CN/newBot.js@@ -4,14 +4,14 @@ export default {cancel: "取消(Esc)",firstTitle: "创建你的第一个机器人",title: "新建机器人",- lead: "挑一个伙伴,起个名字、写几句人设,或者从下面的模板开始。",+ lead: "它是谁由你决定:起个名字,写几句人设。头像只管长相,不影响它能做什么。",name: "名称",namePlaceholder: "例如:群聊日报",persona: "人设",personaHint: "可选,之后在机器人设置里也能改",personaPlaceholder: "例如:你是一个乐于助人的中文助手,回答简洁准确。",create: "创建",- fromTemplate: "从模板开始",+ fromTemplate: "不知道怎么写?从模板开始改",/** 模板:选中后 name 填进名称、prompt 填进人设 */tpl: {digest: {diff --git a/ui/screens/needs-you.js b/ui/screens/needs-you.jsindex 669c9e8..34acd76 100644--- a/ui/screens/needs-you.js+++ b/ui/screens/needs-you.js@@ -29,7 +29,7 @@ function choices(item) {}/**- * 一件事:标题行(一句话和时间:「小蓝的「GPU 价格调研」在等你回答」;只有一个机器人时不写机器人名)、第二行(问题 / 命令 / 原因)、+ * 一件事:标题行(一句话和时间:「天天的「GPU 价格调研」在等你回答」;只有一个机器人时不写机器人名)、第二行(问题 / 命令 / 原因)、* 行内操作。onAct(action, body) 返回 Promise*/export function NeedItem({ item, multiBot, onAct, onOpenChat, onRelogin, onOpenBotSettings }) {@@ -60,7 +60,7 @@ export function NeedItem({ item, multiBot, onAct, onOpenChat, onRelogin, onOpenBconst expands = !!item.taskId || !!item.ruleId;const canOpen = expands || item.channel === "web";const head = () => (expands ? setOpen((v) => !v) : onOpenChat?.(item.botId));- // 几个机器人时前面加上名字;那一句以数字、字母开头时中间空一格(「小蓝的 1 条结果…」)+ // 几个机器人时前面加上名字;那一句以数字、字母开头时中间空一格(「天天的 1 条结果…」)const who = multiBot ? t(/^[0-9A-Za-z]/.test(item.head) ? "needs.headSpaced" : "needs.head", { bot: html`<b>${item.botName}</b>`, what: item.head }) : item.head;const headIn = html`<span class="need-who">${who}</span><span class="need-when num">${fmtAgo(item.since)}</span>diff --git a/ui/screens/new-bot.js b/ui/screens/new-bot.jsindex d100daa..7c434a8 100644--- a/ui/screens/new-bot.js+++ b/ui/screens/new-bot.js@@ -1,5 +1,5 @@// 新建机器人(参考 Grok Bot 的创建页):头像角色 + 名称 + 人设,下面是从模板开始。-// 默认是主角小蓝;每个模板配了一个合适的角色(avatar),选模板时一起换,也可以自己挑。+// 默认头像是天天。头像只管长相,选模板不会换头像:机器人做什么由人设决定。import { useEffect, useRef, useState } from "preact/hooks";import { html, Icon, IconButton, Button, autoGrow } from "../components/ui.js";import { BotAvatar, AvatarPicker, MAIN_CHAR } from "../components/avatar.js";@@ -8,10 +8,9 @@ import { failed } from "../lib/store.js";import { t } from "../lib/i18n.js";/** 模板。名称、简介和人设在词典 newBot.tpl.<key> 里,读的时候按当前语言翻译(选模板时按当时的语言填进表单) */-const template = (key, icon, avatar) => ({+const template = (key, icon) => ({key,icon,- avatar,get name() {return t(`newBot.tpl.${key}.name`);},@@ -23,12 +22,12 @@ const template = (key, icon, avatar) => ({},});export const TEMPLATES = [- template("digest", "file", "green"),- template("support", "chat", "yellow"),- template("translate", "globe", "orange"),- template("minutes", "clock", "blue"),- template("writer", "compose", "purple"),- template("coder", "code", "red"),+ template("digest", "file"),+ template("support", "chat"),+ template("translate", "globe"),+ template("minutes", "clock"),+ template("writer", "compose"),+ template("coder", "code"),];export function NewBotScreen({ first, onCreated, onCancel }) {@@ -47,7 +46,6 @@ export function NewBotScreen({ first, onCreated, onCancel }) {const pick = (tp) => {setTpl(tp.key);- if (tp.avatar !== avatar) choose(tp.avatar);setName(tp.name);setPrompt(tp.prompt);requestAnimationFrame(() => (nameRef.current?.focus(), nameRef.current?.select()));