Repository navigation
Hob v1.5.0
What's new
Data directory
HOB_HOMEis now grouped by ownership:system/for config, keys, engine, Lore and memory;cache/for anything that can be rebuilt; andassistants/<id>/holding each assistant's conversation, routines, approvals, jobs and files (uploads, images, pages, screenshots). Archiving an assistant moves all of it in one go.- Existing data is migrated automatically on the first start. Before anything moves, Hob makes a full copy in
HOB_HOME/backup-v1-<time>/and checks every file against it; if there is not enough disk space or the copy does not match, Hob refuses to start and leaves the data untouched. An interrupted migration is restored from the backup and run again on the next start. - Old conversations, job reports and knowledge entries keep working: paths recorded before the move still open the moved files. Conversation and job session files are left byte-for-byte unchanged.
- The backup is not deleted automatically. Remove it once you are happy, or run
hob layout --restore(npm run layout -- --restorein a checkout) to go back to the old layout before downgrading.
Routines
- A routine can carry a check script that runs first on each tick. No output means nothing changed: no job, no message, no model call. When it prints something, the routine either leaves that text in the conversation as a reminder or starts a job with it. Check counts, hits and the last failure show on the routine; failures are reported once when they start and once when they recover.
- Each routine has its own directory where the check script runs and keeps its state; the assistant is told the path so helper files can live there too.
- A routine can run once at a given time, and can be set to stop after its first hit (or after one run, if it has no check). Stopped routines stay in the list and can be switched back on.
- Intervals such as every 10 minutes are shown in words.
Home and sidebar
- Pinned assistants can be dragged into a new order; assistants in the regular list can be dragged up into the pinned area, or reordered within the list. A small grip appears on hover. (Pin dragging contributed by @xiaofsu.)
- Files can be dropped anywhere in the window to attach them to the current conversation. (Contributed by @xiaofsu.)
Cloud desktop
TZand the newDESKTOP_LANGset the desktop's time zone and language, including the browser's interface,navigator.languagesandAccept-Language. Keeping them consistent with the network the desktop uses helps sites that compare them.
Fixes
- Numbered and bulleted lists in a job's transcript no longer hang off the left edge on phones.
- The README is back to the screenshots used in 1.3.0.
更新内容
数据目录
HOB_HOME按归属重新排好:system/放配置、密钥、引擎、Lore 和记忆;cache/放删了能重建的东西;assistants/<id>/里是这个助手的对话、定时任务、审批、任务和文件(上传、图片、网页、截图)。归档助手时这些一起搬走。- 老数据在第一次启动时自动迁移。搬之前先把整个目录完整复制到
HOB_HOME/backup-v1-<时间>/,逐个文件核对;磁盘空间不够或核对不上,Hob 拒绝启动,数据不动。迁移中途断掉的,下次启动先从备份恢复再重来。 - 老对话、任务报告和知识库条目照常能用:迁移前记下的路径仍然能打开搬走后的文件。对话和任务的会话文件一个字节都不改。
- 备份不会自动删,确认没问题后自己删掉;要降级回旧版本,先运行
hob layout --restore(源码目录里是npm run layout -- --restore)恢复老布局。
定时任务
- 定时任务可以带一个检查脚本,到点先跑。没有输出就当没变化:不开任务、不发消息、不调用模型。有输出时,要么把这段文字作为提醒发到对话里,要么带着它开一个任务。定时任务上显示检查次数、触发次数和最近一次失败的原因;检查失败只在坏掉和恢复时各说一次。
- 每个定时任务有自己的目录,检查脚本在这里运行、记录状态;助手知道这个路径,脚本要用的其他文件也可以放进来。
- 定时任务可以只在某个时间跑一次,也可以设成触发一次就停(没有检查脚本的,跑完一次就停)。停了的定时任务还在列表里,可以重新打开。
- 「每 10 分钟」这类间隔显示成中文。
首页和左栏
- 置顶的助手可以拖动换先后;日常里的助手可以往上拖进置顶区,也可以在日常里拖着换顺序。鼠标放上去会出现一个小抓手。(置顶拖动由 @xiaofsu 贡献)
- 文件可以直接拖进窗口,加到当前对话的输入框。(由 @xiaofsu 贡献)
云桌面
- 用
TZ和新的DESKTOP_LANG设置桌面的时区和语言,浏览器界面、navigator.languages和Accept-Language都跟着变。和桌面实际使用的网络保持一致,会对照这些信息的网站更不容易把它拦下。
修复
- 手机上任务过程里的编号和圆点列表不再挂到屏幕左边外面。
- README 换回 1.3.0 的截图。