Repository navigation
ProkBot Plus 1.7.0
Bot 在自己的电脑上也能读到 Host 里的记忆文件。 由 @jun9100 贡献(#5)。只有 Host 变化。
Bots can now read their Host memory files on their own computer. Contributed by @jun9100 in #5. Only the Host changes.
变化 / Changes
- 记忆挂进 Bot 的电脑 / Memory in the Bot's computer:同机部署时,Bot 的电脑只挂入
agents、user-memory、workflows、plugins、managed-skills五个目录,路径和原版 Host 一致(/data/runtime/host-data/<目录>),原版的路径保护照样生效:Read 读不了store.db。对话记录、模型 Key、登录凭据、连接器密钥不挂入。On same-machine deployments the Bot's computer gets only these five trees, at the original Host path, so the original path protection still applies and Read refusesstore.db. Transcripts, model keys, credentials and connector secrets stay out. - 主动用记忆 / Proactive memory:Bot 的提示里会说明记忆的位置,让它需要时主动去读,上一轮读不到时重新检查。
--host-only和分开部署的执行电脑不加这段说明。The prompt says where memory lives, so the Bot reads it proactively and rechecks an earlier failure. This note is not added for--host-onlyor separate execution nodes. - Docker 版本要求 / Docker versions:同机部署需要 Docker Engine 26.0+ 和 Compose 2.26.0+。旧版 Compose 可能把整个数据目录挂进 Bot 的电脑,所以部署工具会在改动任何东西之前拒绝旧版本。Ubuntu 24.04 系统仓库自带的 Docker 29.1 / Compose 2.40 满足要求。
--host-only不受限制。Same-machine deployments need Docker Engine 26.0+ and Compose 2.26.0+. Older Compose may mount the whole data directory, so the deployment tool refuses older versions before changing anything. Ubuntu 24.04's own packages (Docker 29.1, Compose 2.40) qualify, and--host-onlyis not restricted. - 记录 / Records:官方 iOS 已到 1.27.0,Windows 和 Mac 仍是 1.2.3。Official iOS is at 1.27.0; Windows and Mac remain at 1.2.3.
怎么升级 / How to upgrade
- Host:先确认
docker version和docker compose version达到上面的版本,再用新的 Host 包执行python3 deploy.py update < /dev/null。升级前会自动备份,Bot 的电脑会重建,已有数据和配对不受影响。Host: check thatdocker versionanddocker compose versionmeet the minimums, then runpython3 deploy.py update < /dev/nullfrom the new Host package. The update backs up first and recreates the Bot's computer; existing data and pairings are kept. - Windows、Mac、Android、网页版和 iOS 与 1.6.0 相同,不用重新生成。Windows, Mac, Android, web and iOS are the same as 1.6.0; nothing to rebuild.
验证 / Validation
在 Ubuntu 24.04(Docker 29.1.3、Compose 2.40.3)的独立测试实例上验收,生产实例未动:
- 从 1.6.0 带数据升级,升级前自动备份;
- 用真实模型对话,Bot 用 Shell 和 Read 读到升级前存的记忆,Read
store.db被拒绝; - 备份后恢复成一个新实例,挂载和数据都完整;
- 模拟旧版 Docker / Compose 时,各部署命令在写入任何东西之前拒绝。
五套测试全部通过;六个工具包分别解压后测试通过,Windows、Android 和网页版包对官方 1.1.0、0.71.2 安装包的 --verify-only 都通过。
Accepted on an isolated Ubuntu 24.04 instance (Docker 29.1.3, Compose 2.40.3); production was not touched:
- an upgrade from 1.6.0 with data, backed up automatically first;
- in a real-model chat, the Bot read memory saved before the upgrade with both Shell and Read, while Read on
store.dbwas refused; - backup and recovery into a new instance, with mounts and data intact;
- with old Docker and Compose simulated, every deployment command refused before writing anything.
All five suites pass. Each of the six tool packages passed its tests after separate extraction, and --verify-only in the Windows, Android and web packages passed with both official installers.
下载 / Downloads
六个工具包按平台分开,SHA256SUMS.txt 是校验文件。工具包里没有官方程序,也没有打好补丁的客户端或网页版界面包。
Six tool packages, one per platform, plus SHA256SUMS.txt. They contain no official programs, no patched clients and no web client bundles.