Skip to content

🤖 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.

20.6 KB
Raw Blame
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>第 5 步 · 让它记住你 · 新手引导预览</title>
<style>
body{margin:0;background:#060706}
*,*::before,*::after{box-sizing:border-box}
button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}
input,textarea{font:inherit}
a{color:#d7ff00}a:hover{color:#e9ff66}
</style>
<link rel="stylesheet" href="css/bots.css">
<link rel="stylesheet" href="css/proto.css">
</head>
<body data-page="memory">
<div style="min-height: 100vh; display: flex; flex-wrap: wrap; background: #060706; color: #fafaf7; font-family: Geist, 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif; font-size: 14px; line-height: 1.5">

  <aside aria-label="机器人" style="flex: 1 1 248px; max-width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 12px; background: #0a0b0a; border-right: 1px solid rgba(255,255,255,.10)">
    <div aria-hidden="true" style="display: flex; gap: 8px; padding: 4px 6px 14px">
      <span style="width: 11px; height: 11px; border-radius: 50%; background: rgba(127,127,127,.45)"></span>
      <span style="width: 11px; height: 11px; border-radius: 50%; background: rgba(127,127,127,.45)"></span>
      <span style="width: 11px; height: 11px; border-radius: 50%; background: rgba(127,127,127,.45)"></span>
    </div>
    <button type="button" style="display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: #a1a1aa; font-size: 13.5px">
      <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>
      新建机器人
    </button>
    <div style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; color: #a1a1aa; padding: 10px 10px 4px">机器人</div>
    <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="color: #a1a1aa; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">记得:回答简短,结论先行。</span>
      </span>
    </a>
    <div style="flex: 1"></div>
    <a href="Main.html" style="display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: rgba(215,255,0,.10); box-shadow: inset 0 0 0 1px rgba(215,255,0,.30); color: #fafaf7; font-size: 13.5px; text-decoration: none">
      <span style="display: flex; gap: 3px" aria-hidden="true">
        <span style="width: 5px; height: 14px; border-radius: 2px; background: #d7ff00"></span>
        <span style="width: 5px; height: 14px; border-radius: 2px; background: #d7ff00"></span>
        <span style="width: 5px; height: 14px; border-radius: 2px; background: #d7ff00"></span>
        <span style="width: 5px; height: 14px; border-radius: 2px; background: #d7ff00"></span>
        <span style="width: 5px; height: 14px; border-radius: 2px; background: #d7ff00"></span>
        <span style="width: 5px; height: 14px; border-radius: 2px; background: rgba(255,255,255,.16)"></span>
      </span>
      <span style="flex: 1; font-weight: 500">上手清单</span>
      <span style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: #d7ff00">5 / 6</span>
    </a>
    <button type="button" style="display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px; border-radius: 12px; text-align: left">
      <span aria-hidden="true" style="display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #d7ff00; color: #161a00; font-weight: 700; font-size: 13px">Z</span>
      <span style="flex: 1; font-size: 13.5px">我的账户</span>
      <span style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px; color: #a1a1aa">$12.36</span>
    </button>
  </aside>

  <div style="flex: 999 1 560px; min-width: 0; display: flex; flex-wrap: wrap; min-height: 100vh">
    <main style="position: relative; flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column">
      <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">
          <svg width="17" height="17" 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 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg>
        </button>
        <button type="button" aria-label="信息面板" aria-pressed="true" style="display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); color: #fafaf7">
          <svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="M15 4v16"/></svg>
        </button>
      </header>

      <div style="flex: 1; overflow: auto">
        <div id="log" style="max-width: 720px; margin: 0 auto; padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 22px">
          <div style="align-self: flex-end; max-width: 80%; padding: 10px 16px; border-radius: 18px; background: rgba(255,255,255,.07)">记住:回答尽量简短,结论放在最前面。</div>
          <div style="display: flex; flex-direction: column; gap: 8px; align-items: flex-start">
            <span style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; color: #a1a1aa">用时 2 秒</span>
            <p style="margin: 0; line-height: 1.75">记下了。以后先说结论,尽量简短。</p>
            <span style="display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(215,255,0,.10); box-shadow: inset 0 0 0 1px rgba(215,255,0,.30); color: #d7ff00; font-size: 12px">
              <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 4h14v16l-7-4-7 4z"/></svg>
              已写入记忆
            </span>
          </div>
          <div style="align-self: flex-end; max-width: 80%; padding: 10px 16px; border-radius: 18px; background: rgba(255,255,255,.07)">你还记得我的习惯吗?</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">用时 1 秒</span>
            <p style="margin: 0; line-height: 1.75">记得:回答简短,结论先行。</p>
          </div>
        </div>
      </div>

      <!-- 引导卡片:指向右侧「记忆」 -->
      <section id="coach" hidden aria-label="上手引导" style="position: absolute; right: 22px; top: 300px; z-index: 3; width: 340px; padding: 20px 20px 16px; border-radius: 20px; background: #0b0b10; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 30px 80px -20px rgba(0,0,0,.75)">
        <span class="face" data-char="blue" style="position: absolute; right: 18px; top: -40px; width: 52px; height: 52px"></span>
        <span id="arrow" aria-hidden="true" style="position: absolute; right: -7px; top: 40px; width: 14px; height: 14px; transform: rotate(45deg); background: #0b0b10; box-shadow: 1px -1px 0 rgba(255,255,255,.18)"></span>
        <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">05 / 06</span>上手清单
          <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; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0">
            <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m5 12 5 5 9-10"/></svg>完成
          </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>
        <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>
          <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>
        </ul>
        <div id="c-try" style="display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 10px 10px 14px; border-radius: 14px; background: #101110; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)">
          <span style="font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .06em; color: #a1a1aa" id="c-try-label">再试试</span>
          <span id="c-try-text" style="flex: 1; min-width: 140px; font-size: 13.5px">忘掉:每天的待办记在「今日待办.md」</span>
        </div>
        <div style="display: flex; align-items: center; justify-content: space-between; gap: 8px">
          <button type="button" id="c-later" style="min-height: 36px; padding: 0 4px; color: #a1a1aa; font-size: 13.5px">稍后再说</button>
          <a id="c-next" href="Step6-Media.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>

      <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>
          <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>
            </button>
            <button type="button" style="display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; color: #a1a1aa; font-size: 12.5px">
              <svg width="14" height="14" 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 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z"/></svg>
              工作区可写
            </button>
            <span style="flex: 1"></span>
            <button type="button" style="display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; color: #a1a1aa; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px">gpt-6.1-terra</button>
            <button type="button" id="send" aria-label="发送" style="display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #161a00; color: #d7ff00; opacity: .5">
              <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 19V5M5 12l7-7 7 7"/></svg>
            </button>
          </div>
        </div>
      </div>
    </main>

    <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>
        <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>
        <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"><path d="M6 6l12 12M18 6 6 18"/></svg>
        </button>
      </div>
      <div style="flex: 1; overflow: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px">
        <div style="padding: 0 6px; 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; min-height: 52px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.10)">
            <span style="flex: 1"><span style="display: block; font-weight: 500">飞书</span></span>
            <span style="height: 22px; padding: 0 9px; border-radius: 999px; background: #101110; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); color: #a1a1aa; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; line-height: 22px">未连接</span>
          </div>
          <div style="display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px">
            <span style="flex: 1"><span style="display: block; font-weight: 500">微信</span></span>
            <span style="display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(111,217,155,.12); color: #6fd99b; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px">
              <span aria-hidden="true" style="width: 6px; height: 6px; border-radius: 50%; background: #6fd99b"></span>已连接
            </span>
          </div>
        </div>

        <div style="padding: 14px 6px 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; color: #a1a1aa">待审批</div>
        <div style="padding: 14px; border-radius: 16px; background: #0b0b10; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); color: #a1a1aa; font-size: 13px">没有待处理的审批</div>

        <div style="display: flex; align-items: center; padding: 14px 6px 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; color: #a1a1aa">
          <span style="flex: 1">记忆</span>
          <span id="mem-count" style="letter-spacing: 0">2 条</span>
        </div>
        <div id="mem" style="border-radius: 16px; background: #0b0b10; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)">
          <div style="display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 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">机器人记忆 · 刚刚</span>
            </span>
            <button type="button" aria-label="删除这条记忆" style="display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #a1a1aa">
              <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"/></svg>
            </button>
          </div>
          <div style="display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 14px">
            <span style="flex: 1; min-width: 0">
              <span style="display: block; font-size: 13.5px">每天的待办记在工作区「今日待办.md」</span>
              <span style="display: block; color: #a1a1aa; font-size: 12px">机器人记忆 · 自动整理</span>
            </span>
            <button type="button" aria-label="删除这条记忆" style="display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #a1a1aa">
              <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"/></svg>
            </button>
          </div>
        </div>

        <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="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">
            <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">3 分钟前</span>
          </div>
        </div>
      </div>
    </aside>
  </div>
</div>

<script type="module" src="js/page-memory.js"></script>
</body>
</html>