Skip to content

Hob v1.23.0

Latest

Choose a tag to compare

@FFatTiger FFatTiger released this 03 Dec 06:45
· 25 commits to main since this release

What's new in 1.23.0

Apps

Assistants can now keep programs running for you. When you want something that stays up, such as a small dashboard, a form or a tool page, the assistant starts it as an app with start_app. Hob keeps it running, restarts it after a crash, and brings it back after Hob restarts.

  • Cards in the chat. An app shows up as a card in the conversation that created it, with its status and address. Open it to see the output, restart or stop it. Back from an app opened in a chat returns to that chat.
  • The app list. The sidebar has an Apps entry listing every app with where it lives (assistant, topic or group) and a filter by assistant or group. Each conversation's side panel has an Apps tab with only the apps created there; when a topic or group is archived or deleted, its apps move to the assistant's main conversation and keep running.
  • Who can open it.
    • Only me (default): you need to be signed in to Hob.
    • Access key: copy a link with the key from the app page and send it to the people who should use it. They open it directly, or type the key on the page Hob shows. Getting a new key makes old links stop working. The key is never shown to the assistant.
    • Anyone: anyone with the address.
    • When an assistant wants to share an app, it asks you on a card first.
  • Visit data. The app page shows visits and visitors for today, 7 days and 30 days, a 14-day chart, requests and errors, how long it has been running and how often it restarted. The list shows today's visits. Assistants see the same numbers with show_app.
  • Start with Hob. Turn off "Start with Hob" on the app page (or the assistant passes autostart: false) for apps you only open now and then; they stay stopped after Hob restarts.
  • Where apps are served. By default on a second port (Hob's port + 1), so scripts in app pages can't act as you in Hob. You can also use another domain, a subdomain per app or the same origin. Settings → Apps shows the mode, the address and whether your browser can reach it. With Docker, publish port 30149 too (compose.yaml already does). See the README for setup.

Fixes

  • A custom avatar series no longer disappears while its base image is still being drawn.
  • The reference image and the step row on the avatar series design page display correctly again.

1.23.0 更新内容

应用

助手现在能替你一直挂着程序。想要一个一直在的东西,比如小看板、表单、工具页,助手就用 start_app 把它起成应用:Hob 一直替你跑着,挂了自动重启,Hob 重启后也会把它拉起来。

  • 对话里的卡片:应用在建它的那个对话里显示成一张卡片,有状态和地址。点进去能看输出、重启或停下。从对话里点进应用,返回时回到这个对话。
  • 应用列表:侧栏有「应用」入口,列出全部应用和它在哪里(助手、话题或群),可以按助手或群筛选。每个对话的右栏有「应用」页签,只列在这个对话里建的;话题或群归档、删除后,它的应用回到助手的主会话,照常运行。
  • 谁能打开:
    • 只有我(默认):登录了 Hob 才能打开。
    • 凭密钥:在应用页复制带密钥的链接发给要用的人,点开直接进,或者在 Hob 给出的页面里填密钥。换一个密钥,旧链接就打不开了。密钥不会给助手看到。
    • 任何人:拿到地址就能打开。
    • 助手要把应用给别人看,会先发卡片问你。
  • 访问数据:应用页显示今天、7 天、30 天的访问次数和访问人数,14 天的小柱状图,请求数和出错数,这次运行了多久、最近重启过几次。列表里显示今天的访问次数。助手用 show_app 也看得到。
  • 随 Hob 启动:只是偶尔打开用一下的应用,在应用页关掉「Hob 启动时自动运行」(或者助手填 autostart: false),Hob 重启后它保持停着。
  • 应用的地址:默认放在另一个端口(Hob 端口 + 1),应用网页里的脚本不能以你的身份用 Hob。也可以用另一个域名、每个应用一个子域名,或者同源。设置 → 应用显示现在的方式、地址和浏览器能不能连上。用 Docker 时要把 30149 也映射出来(compose.yaml 里已经有)。配置方法见 README。

修复

  • 自己设计的头像系列在底图还没画完时不会再消失。
  • 头像系列设计页的参考图和步骤行恢复正常显示。