/** * Standalone configuration page. * * This profile runs with the native settings surface disabled * (`ui-settings` is turned off in `cordis.patch.yml`), so the plugin ships its * own HTML page at `/cloud-memory`. It is deliberately dependency-free: no * bundler assets, no CDN, no fonts — one file the host web server can emit. * * The page renders tokens as masked values only; the plaintext never leaves * `$DSH_HOME/cloud-memory.json`. */ /** Escape a value for safe interpolation into HTML text/attributes. */ export function escapeHtml(value) { return value .replaceAll('&', '&') .replaceAll('<', '<') .replaceAll('>', '>') .replaceAll('"', '"') .replaceAll("'", '''); } /** Render the configuration page. */ export function renderConfigPage(options) { // The client script is plain ES2020 and avoids template literals so this // outer template stays readable. return `
v${escapeHtml(options.version)} · 每轮结束上报活动计数 · 提供 memory_search / memory_read / memory_add 工具
activity:write 与 memory:write 两个令牌并写入本机。
密码只在这一次请求里使用:不保存、不写日志、不回显,换取成功后立即从内存丢弃。
管理员账号不能创建个人令牌,请用普通用户账号。
activity:write 与 memory:write 密钥(一个密钥只有一种权限,所以需要两个)。${escapeHtml(options.settingsPath)}(进程退出不丢),不会进入会话上下文、不会上传到云端、也不会出现在本页回显里。
| 时间 | 状态 | 结果 | HTTP | turn_id |
|---|---|---|---|---|
| 暂无记录 | ||||