Skip to content

Yew Harness 1.9.0

Latest

Choose a tag to compare

@dozybot001 dozybot001 released this 20 Nov 07:11
· 61 commits to main since this release

新增

  • 消息附件与离线 PDF:网页输入框支持选择、粘贴和拖入图片、PDF 和文本文件,消息记录里显示缩略图与原图灯箱;附件独立存在数据目录的 attachments/,按所选模型的能力自动发图或降级为说明。read 工具和新增的 read_attachment 工具用本地离线的 pdfjs-dist 读取 PDF 文字与页数,支持按 pages 参数读取页段或渲染扫描页。数据管理新增「附件」占比与导出。
  • 多目录工作区:会话设置里可以添加多个「只读」或「可读写」附加目录,权限引擎和系统沙箱一并生效;密钥位置和「会话读不到的目录」始终禁止添加和读取。
  • 系统沙箱分级放行域名:设置的「启动」里新增全局沙箱放行域名,会话设置里新增会话级放行域名;沙箱联网审批在能确定发起方时,可选对本会话「总是允许」。
  • 双模式定时任务:定时任务新增「每次新开任务会话」方式,触发时继承归属会话的模型、目录和权限设置独立运行,结束后向归属会话和主对话回报,可选完成后自动归档;列表里可直接点开上次运行的任务会话。
  • 自动授权跨会话溯源:自动方式(review)的模型检查现在会直接从数据库读取本会话已核验的决定卡,以及该信件链源自「主对话」里你亲自发出的消息原文(可在「默认设置」里关掉主对话溯源),不再只看本会话里的直接对话。
  • 原地开启新上下文(renew):常设会话输入框旁新增按钮,可在不新建会话、保留上方全部历史与搜索记录的前提下,原地重置发给模型的上下文窗口(可选带交接摘要或清空开始),未回复的来信请求会自动带入新上下文。
  • 输入框统一触发器:输入 @ 可模糊搜索并插入会话名或工作区/附加目录下的文件路径;行首输入 / 可触发当前会话已启用的技能,以及 /compact 和 /renew。
  • 远程操作预览:ssh、scp 和 rsync 命令在审批卡片里会拆出目标主机、端口和远程命令摘要。
  • 手机端对齐:iPhone 和安卓应用对齐 1.7.0+ 的审批与授权分层,显示审批原因、自动检查未放行理由、文件改动 diff、管理变更项、沙箱运行中列表、acts-as-you 二次确认和工具自动放行/风险标记;支持查看消息图片与灯箱,以及从相册选择压缩图片随消息发送。

变更

  • 用户协议更新到 2.9:不在 MIT 许可证授权范围内的名称写全为「榫卯 Tenon AI」。
  • 沙箱外命令的外层保护拆分:核心保护(Yew Harness 数据、Mac 应用登录存储、启动项、shell 配置、~/.gitconfig、~/.ssh/config、.git/hooks、appleevent-send)继续永久锁死;单条静态的本地仓库初始化/配置命令(git init、git clone、git remote、git config --local)和拉起桌面应用命令(open -a)归为三种方式下都必须由你审批的事项,批准单次执行时外层保护仅放开对应单项,仓库配置命令强制清空 GIT_TEMPLATE_DIR 并在结束后审计 .git/config。

修复

  • 修复同一批工具调用同时包含只读工具(如多个 delegate)与需要授权的非只读工具时,批准后该调用状态仍停留在「等你授权」、且整批退化为串行导致后续调用被长时间阻塞的问题;现在批准后立即清除「等你授权」状态,连续只读段并发执行并保持与写操作的先后顺序,同时在运行中的 delegate 助手折叠行下直接展示当前子步骤摘要。
  • yew app install 在签名之后才去掉应用上的隔离属性:由仍带着这个属性的旧 Yew Harness 更新时,签名会重写程序,原来的做法会让程序又带上它。

安全

  • 在沙箱外初始化或配置仓库时,外层保护只放开会话可写目录里仓库自己的设置文件,其他位置照旧锁住。带 -C、--git-dir、-c、环境变量赋值或 env 前缀的写法,clone 的 --upload-pack、--config、--template 等,以及会让 git 运行程序的设置项(core.fsmonitor、core.hooksPath、credential.*、alias.*、include.path 等),都不再放开;git config 只放开 user.*、远程地址、分支设置和 init.defaultBranch。审批卡写明要改的仓库,跑完后检查也会标出会运行程序的设置。

  • 拉起桌面应用只认 open -a <应用名> 一种写法,应用必须装在「应用程序」里,终端和脚本类应用不放行;审批卡写明这个应用会在保护之外运行。

  • 附加目录不能是包含密钥位置的上级目录(如 /Users、~/.config),也不能是 ~/Library 和主目录下以点开头的文件夹,只读也不行。

  • 自动方式的检查只看本轮信件链源头那条主对话原话;决定卡里写明标题和选项是会话写的。

  • 读一份 PDF 最多 60 秒,超时就停。

  • 定时任务无人值守运行期间,即使会话处于跳过方式,也禁止修改定时任务配置或借 manage_yew 自我提权。

  • 手机端审批接口仅在收到新版应用显式确认后的 confirmedWarning: true 时才放行 acts-as-you 工具的「总是允许」,旧版应用继续降级为「仅允许本次」。

  • 附件上传按文件魔数严格校验图片与 PDF,显式拒绝 SVG 和伪装扩展名的图片。

手机端

  • 安卓版 Yew-1.9.0.apk:对齐新的审批分层(审批原因、自动检查未放行的理由、文件改动、acts-as-you 二次确认),可看消息图片、从相册选图随消息发送;应用里的隐私政策和用户协议更新到 2.9。签名证书没有变,SHA-256 指纹是 9F:F5:6E:EA:A8:3C:DC:01:BA:66:D8:79:23:9C:DE:5A:2A:69:C3:AE:D2:60:5C:D8:E1:B9:34:8D:BF:28:61:B2。安装包从提交 c9bcde6 构建,也就是标签 v1.9.0 指向的提交。
  • 安装包 Yew-1.9.0.apk 的 SHA-256:8da83c9015e467f80ac0bc4ddd2ec3ac62694ce215dbf6e2e4fd91a39b27b41c,和附件 SHA256SUMS 一致。
  • iPhone 版之后经 App Store 发布。

电脑端:npm install -g @tenonai/yew;已装 1.8.0 以上的,在设置的「关于」里一键更新。


English

Added

  • Message attachments and offline PDFs: attach images, PDFs and text files in the web composer by choosing, pasting or dropping them; images show as thumbnails with a full-size view. Attachments are kept in attachments/ in the data folder and sent as images or described, by what the chosen model can take. The read tool and a new read_attachment tool read a PDF's text and page count locally with pdfjs-dist, by page ranges, and render scanned pages. Data management shows and exports attachments.
  • Workspaces with several folders: a session can have extra folders, read-only or read-write; permissions and the system sandbox follow them. Credential locations and folders kept from sessions can never be added.
  • Allowed sites in two tiers: global ones under Startup in the settings, and per-session ones in the session's settings; a sandbox network question can be set to always allow for that session when its origin is known.
  • Scheduled tasks in two modes: besides a letter to a standing session, a task can start a new task session each time, with the owning session's model, folders and permissions, report to it and to the main conversation, and archive itself when done.
  • The Auto mode's check now also reads, from the database, the decisions the person made on cards for this session and the person's own message in the main conversation that started the letter chain (can be turned off under Defaults).
  • A fresh context in place (renew) for standing sessions, keeping the history above, with or without a handover summary.
  • One trigger in the composer: @ finds sessions and files, / at the start of a line runs skills, /compact and /renew.
  • ssh, scp and rsync approval cards show the target host, port and remote command.
  • The phone apps follow the new permission and decision layers, show images and can send photos.

Changed

  • The terms are now 2.9: the names not covered by the MIT license are written in full as "榫卯 Tenon AI".
  • The outer guard for commands outside the sandbox is split: the core stays locked; plain local repository setup (git init, git clone, git remote, git config for a short list of keys) and open -a are decisions in every mode, and an approved one opens only its own item for that command.

Fixed

  • A batch of tool calls mixing read-only tools with ones that need permission no longer stays "waiting for you" after approval or runs all in series.
  • yew app install removes the quarantine attribute after signing.

Security

  • Repository setup lets only the settings of repositories in the session's writable folders through; options that point git elsewhere, set things, run programs or use templates, abbreviations included, get no unlock; the card names the repository, and the check afterwards flags settings that run programs.
  • Launching an app takes only open -a <name> for an app in Applications, not terminals or script runners; the card says the app runs outside Yew Harness's protection.
  • Extra folders cannot be a folder that holds a credential location, ~/Library or a hidden folder of the home folder.
  • Unattended scheduled runs cannot change scheduled tasks or raise their own permissions through manage_yew, even in Skip.
  • From the phone, "always allow" for acts-as-you tools needs the newer app's explicit confirmation.
  • Attachments are checked by their content; SVG and disguised images are refused. A PDF is read for at most 60 seconds.

Phones

  • Android Yew-1.9.0.apk: the new approval layers, images in messages and photos to send; privacy policy and terms 2.9. Signing certificate unchanged, SHA-256 9F:F5:6E:EA:A8:3C:DC:01:BA:66:D8:79:23:9C:DE:5A:2A:69:C3:AE:D2:60:5C:D8:E1:B9:34:8D:BF:28:61:B2. Built from commit c9bcde6, the one tag v1.9.0 points to.
  • SHA-256 of Yew-1.9.0.apk: 8da83c9015e467f80ac0bc4ddd2ec3ac62694ce215dbf6e2e4fd91a39b27b41c, as in the attached SHA256SUMS.
  • The iPhone app comes through the App Store later.

Computer: npm install -g @tenonai/yew; from 1.8.0 on, update with one click under About in the settings.