Files
BossAi/web.html
T
selfreleaseandDevin 4e2b4666aa
CI / 后端测试 (push) Has been cancelled
CI / 前端构建 (push) Has been cancelled
feat: 品牌更名、用户管理增强、画像版本管理、对话体验优化
- 品牌统一为"左右(BossAi)":网页标签、侧边栏、登录页、manifest、后端
- 用户管理:搜索、对话统计、重置密码、激活/停用账号
- 用户画像:确认事实步骤(带入内容+追问内容)、版本历史管理、PUT /profile/me
- 对话历史:按场景分组、保密模式标题处理
- AI助手页面:话题区可收起、模式选择紧凑化、footer免责声明
- 设置页:toggle宽度修复、工单文案改为专家咨询
- 去掉工单功能(前后端)

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-08-30 09:05:31 +08:00

7 lines
1.4 KiB
HTML

<!doctype html><meta charset="utf-8"><title>左右(BossAi)</title>
<style>body{font:16px system-ui;max-width:760px;margin:40px auto;padding:0 16px}textarea{width:100%;height:100px}button{padding:8px 14px;margin:6px 4px 6px 0}.card{white-space:pre-wrap;background:#f5f6f8;padding:16px;border-radius:8px}</style>
<h1>左右(BossAi)</h1><p>老板经营、法务与情绪支持助手</p>
<select id="mode"><option value="normal">普通模式</option><option value="confidential">保密模式</option><option value="ephemeral">阅后即焚</option></select><button onclick="start()">新建会话</button>
<textarea id="q" placeholder="例如:员工工伤后能否开除?"></textarea><button onclick="ask()">分析</button><button onclick="destroy()">隐私急停/销毁</button><div id="out" class="card"></div>
<script>let sid;async function start(){let r=await fetch('/sessions',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({mode:mode.value})});sid=(await r.json()).session_id;out.textContent='会话已创建:'+sid}async function ask(){if(!sid)await start();let r=await fetch('/sessions/'+sid+'/ask',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({question:q.value})});out.textContent=JSON.stringify(await r.json(),null,2)}async function destroy(){if(!sid)return;let r=await fetch('/sessions/'+sid+'/destroy',{method:'POST'});out.textContent=JSON.stringify(await r.json())}</script>