@tenonai/yew 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.md +41 -2
  2. package/README.md +9 -18
  3. package/dist/cli/app.js +23 -26
  4. package/dist/cli/export.js +5 -5
  5. package/dist/cli/main.js +0 -14
  6. package/dist/cli/mcp.js +7 -7
  7. package/dist/cli/remote.js +6 -6
  8. package/dist/cli/run.js +3 -3
  9. package/dist/cli/schedule.js +3 -3
  10. package/dist/cli/send.js +5 -6
  11. package/dist/cli/serve.js +13 -11
  12. package/dist/cli/service.js +14 -41
  13. package/dist/server/agent/context.js +2 -3
  14. package/dist/server/agent/runner.js +1 -1
  15. package/dist/server/data-usage.js +2 -3
  16. package/dist/server/db/database.js +1 -1
  17. package/dist/server/db/migrations.js +4 -0
  18. package/dist/server/export.js +2 -2
  19. package/dist/server/folder-picker.js +1 -1
  20. package/dist/server/http/api.js +3 -0
  21. package/dist/server/http/app.js +3 -3
  22. package/dist/server/http/data.js +1 -1
  23. package/dist/server/http/mcp.js +2 -2
  24. package/dist/server/http/problem.js +1 -1
  25. package/dist/server/http/security.js +5 -5
  26. package/dist/server/keys.js +5 -24
  27. package/dist/server/mail/post.js +2 -2
  28. package/dist/server/mcp-builtin.js +2 -3
  29. package/dist/server/mcp-config.js +4 -4
  30. package/dist/server/mcp-oauth.js +6 -6
  31. package/dist/server/paths.js +6 -15
  32. package/dist/server/settings.js +3 -0
  33. package/dist/server/skills.js +1 -2
  34. package/dist/server/store.js +2 -2
  35. package/dist/server/tools/mail.js +1 -1
  36. package/dist/server/tools/registry.js +2 -2
  37. package/dist/shared/policy.js +3 -3
  38. package/dist/shared/version.js +2 -0
  39. package/package.json +2 -2
  40. package/web/dist/THIRD-PARTY-NOTICES.txt +1 -1
  41. package/web/dist/assets/index-B_NesKxw.js +68 -0
  42. package/web/dist/assets/index-BqTqnE18.css +1 -0
  43. package/web/dist/index.html +3 -3
  44. package/web/dist/mascot/alarm.webp +0 -0
  45. package/web/dist/mascot/books.webp +0 -0
  46. package/web/dist/mascot/bow.webp +0 -0
  47. package/web/dist/mascot/branch.webp +0 -0
  48. package/web/dist/mascot/clipboard.webp +0 -0
  49. package/web/dist/mascot/dozing.webp +0 -0
  50. package/web/dist/mascot/fired-up.webp +0 -0
  51. package/web/dist/mascot/giftbox.webp +0 -0
  52. package/web/dist/mascot/halt.webp +0 -0
  53. package/web/dist/mascot/jump.webp +0 -0
  54. package/web/dist/mascot/letter-run.webp +0 -0
  55. package/web/dist/mascot/magnifier.webp +0 -0
  56. package/web/dist/mascot/mini.webp +0 -0
  57. package/web/dist/mascot/nap.webp +0 -0
  58. package/web/dist/mascot/pajamas.webp +0 -0
  59. package/web/dist/mascot/paper-plane.webp +0 -0
  60. package/web/dist/mascot/peek.webp +0 -0
  61. package/web/dist/mascot/phone.webp +0 -0
  62. package/web/dist/mascot/pointing.webp +0 -0
  63. package/web/dist/mascot/portrait.webp +0 -0
  64. package/web/dist/mascot/pout.webp +0 -0
  65. package/web/dist/mascot/proud.webp +0 -0
  66. package/web/dist/mascot/reading.webp +0 -0
  67. package/web/dist/mascot/stamp.webp +0 -0
  68. package/web/dist/mascot/stretch.webp +0 -0
  69. package/web/dist/mascot/surprised.webp +0 -0
  70. package/web/dist/mascot/tea.webp +0 -0
  71. package/web/dist/mascot/teary.webp +0 -0
  72. package/web/dist/mascot/typing.webp +0 -0
  73. package/dist/server/from-jig.js +0 -98
  74. package/web/dist/assets/index-BtK_SzpF.css +0 -1
  75. package/web/dist/assets/index-C0rnUFI-.js +0 -68
@@ -3,7 +3,7 @@
3
3
  * The iPhone app carries the same paragraphs in its string catalog; test/ios.test.ts keeps them equal.
4
4
  * A change raises the version and the date; earlier versions stay in Git.
5
5
  */
6
- export const POLICY_VERSION = "2.4";
6
+ export const POLICY_VERSION = "2.5";
7
7
  export const POLICY = {
8
8
  zh: {
9
9
  date: "2026 年 11 月 18 日",
@@ -12,7 +12,7 @@ export const POLICY = {
12
12
  "保存在你电脑上的数据:会话、消息、工具调用记录、操作授权、会话之间的信件、你在审批中心做的决定、定时任务和设置存在 Yew 的数据目录(默认 ~/.yew)里的数据库中;服务商的 API Key,以及你在浏览器里登录 MCP 服务得到的访问令牌、刷新令牌和 Yew 为它注册的客户端,存在系统钥匙串里;MCP 服务的配置写在数据目录的 mcp.json 里,包括你填的密钥和你自己建的 Google 客户端的 ID 和密钥;超长的命令输出存在数据目录的 tmp 文件夹里;会话存下的产物(文档、页面、数据和图表)的各个版本存在数据目录的 artifacts 文件夹里。Yew 自带浏览器的资料(你在这个浏览器里登录过的网站的 Cookie、缓存和浏览记录)存在数据目录的 browser 文件夹里。用 yew service 设了开机启动时,运行日志(启动、出错和连接中继的记录,不含对话内容)存在数据目录的 logs 文件夹里。这些数据一直保存,直到你删除。你在设置里指定了审批记录文件时,Yew 把每个决定追加到那个文件里。",
13
13
  "手机访问:你在电脑上打开「允许手机访问」后,电脑上的 Yew 连接中继服务,手机上的 Yew 经中继和它通信。默认的中继由榫卯 Tenon AI 运行,你也可以自己部署。两端之间端到端加密,中继只转发密文,看不到也不保存内容。榫卯 Tenon AI 运行的中继为保障网络安全记录连接日志:时间、IP 地址、请求的路径(其中有你电脑的标识,是它公钥的哈希)和状态,不含内容,保存 184 天后自动删除。中继服务器位于中国境内。电脑上的 Yew 记下配对的手机:名称、公钥、配对时间和最近连接的时间。iPhone 上的 Yew 把配对信息和自己的密钥存在 iOS 钥匙串里,只存在这台设备上。打开通知后,iPhone 把 Apple 给它的推送令牌经加密通道交给你的电脑保存;电脑把通知的内容为这台 iPhone 加密,经中继交给 Apple 的推送服务。中继和 Apple 经手推送令牌和密文,看不到通知的内容。安卓上的 Yew 把配对信息和自己的密钥存在应用的私有文件里,用 Android 密钥库里的密钥加密,只存在这台设备上,不进系统备份和换机传输。安卓上的 Yew 不使用推送服务,也没有推送令牌:打开通知后,它用一个前台服务在后台保持到中继的连接,电脑经端到端加密的通道把通知的内容发给手机,中继只转发密文;系统会为这条连接显示一条常驻通知,系统停掉 Yew 时收不到通知。扫描配对二维码时用到相机,画面只在手机上识别,不保存也不发出。手机上另记着通知的开关和已经看到的待办的编号,不含内容。",
14
14
  "发给第三方的数据:你为会话选的模型服务商会收到发给它的对话内容,包括会话读到的文件、命令输出、MCP 工具返回的内容(比如你连接的邮箱、日历和云端硬盘里的邮件、日程和文件),以及会话使用浏览器和电脑操控工具时取得的网页内容和屏幕截图;屏幕截图会拍下当时屏幕上显示的内容,包括其他应用的窗口,这部分适用该服务商的隐私政策。默认服务商 DeepSeek 由中国公司深度求索提供,内容怎样处理和存放以它的隐私政策为准;你选境外服务商时,这些内容会发往境外。会话抓取网页或用自带浏览器打开网页时,网站会收到请求;在自带浏览器里登录过的网站,会收到带着你登录状态的请求。你配了搜索服务的密钥后,会话联网搜索时,这家搜索服务会收到查询词,适用该搜索服务的隐私政策;选境外的搜索服务(Tavily、Brave)时,查询词会发往境外。Yew 默认启动两个开源的 MCP 服务:浏览器(微软的 Playwright MCP)和电脑操控(computer-use-mcp),它们在你的电脑上运行,可以在设置里停用。这两个服务,以及你一键添加的、要在本机运行的常用服务,Yew 第一次使用时从 npm 下载安装,npm 会收到下载请求。你添加的 MCP 服务(写在 mcp.json 里)会收到会话调用它的工具时传的内容;你在浏览器里登录过的服务,会收到以你的账号发出的请求。这些服务适用各自的隐私政策;选境外的服务(比如 Google、Linear、Vercel)时,传给它的内容会发往境外。这些工具每次调用都先问你,你对某个工具选了「总是允许」后不再问;电脑操控的点击、输入和按键,以及 Yew 认出会发送、发布或删除东西的 MCP 工具,不能选「总是允许」,每次都问。",
15
- "查询、导出与删除:你可以直接查看数据目录里的文件。删除某个服务商的 Key:在设置里删除,或运行 yew key delete;删除配对的手机:在电脑上的「手机访问」里移除,或在手机上断开配对;退出 MCP 服务的登录:在「MCP 服务」里点「退出登录」,服务支持时 Yew 先请它作废令牌,再删除本机保存的令牌;要确认授权已经撤销,到该服务的账号设置里查看或移除;删除自带浏览器的登录状态:删除数据目录的 browser 文件夹;删除全部数据:停掉 yew serve 后删除数据目录。从 Jig 升级的,还要删除 ~/.jig(多半只是指向新目录的链接;升级时 Jig 还在运行的,数据可能还在那里),以及系统钥匙串里服务名为 asia.tenon.jig 的条目。",
15
+ "查询、导出与删除:你可以直接查看数据目录里的文件。删除某个服务商的 Key:在设置里删除,或运行 yew key delete;删除配对的手机:在电脑上的「手机访问」里移除,或在手机上断开配对;退出 MCP 服务的登录:在「MCP 服务」里点「退出登录」,服务支持时 Yew 先请它作废令牌,再删除本机保存的令牌;要确认授权已经撤销,到该服务的账号设置里查看或移除;删除自带浏览器的登录状态:删除数据目录的 browser 文件夹;删除全部数据:停掉 yew serve 后删除数据目录。",
16
16
  "联系我们:support@tenonai.cn。",
17
17
  ],
18
18
  terms: [
@@ -29,7 +29,7 @@ export const POLICY = {
29
29
  "Data kept on your computer: sessions, messages, tool call records, permissions you granted, letters between sessions, the decisions you make in the approval center, scheduled tasks and settings are stored in a database in Yew's data folder (~/.yew by default); provider API keys, and the access tokens, refresh tokens and client registrations Yew gets when you sign in to an MCP server in your browser, are stored in the system keychain; MCP server settings are kept in mcp.json in the data folder, including keys you enter and the ID and secret of a Google client you created yourself; very long command output is stored in the tmp folder of the data folder; every version of the artifacts sessions save (documents, pages, data and charts) is stored in its artifacts folder. The profile of Yew's built-in browser (cookies, cache and history of the sites you signed in to there) is stored in the browser folder of the data folder. When you set Yew to start at login with yew service, its service log (start-up, errors and relay connection lines, without conversation content) is stored in the logs folder of the data folder. This data stays until you delete it. If you set a decision log file in Settings, Yew adds each decision to that file.",
30
30
  "Phone access: when you turn on phone access on your computer, Yew on the computer connects to a relay, and Yew on your phone talks to it through the relay. The default relay is run by Tenon AI; you can also run your own. The two ends are encrypted end to end: the relay only passes ciphertext along and can neither read nor keep the content. For network security, the relay run by Tenon AI keeps a connection log: the time, the IP address, the path requested (which carries your computer's identifier, a hash of its public key) and the status, without content, deleted automatically after 184 days. The relay server is in mainland China. Yew on the computer records each paired phone: its name, public key, when it was paired and when it last connected. Yew on iPhone keeps the pairing and its own key in the iOS keychain, on that device only. With notifications on, Yew on iPhone gives the push token it got from Apple to your computer over the encrypted channel, and the computer keeps it; the computer encrypts what a notification says for that iPhone and hands it to Apple's push service through the relay. The relay and Apple handle the push token and the ciphertext, and cannot read what the notification says. Yew on Android keeps the pairing and its own key in a private file of the app, encrypted with a key in the Android Keystore, on that device only; it is left out of system backups and device transfers. Yew on Android uses no push service and has no push token: with notifications on, a foreground service keeps a connection to the relay open in the background, and the computer sends what a notification says to the phone over the end-to-end encrypted channel; the relay only passes ciphertext along. Android shows a standing notification for this connection, and notifications do not arrive while the system has stopped Yew. Scanning the pairing QR code uses the camera; the picture is read on the phone and is neither kept nor sent. The phone also remembers whether notifications are on and the ids of the items it has already seen, without their content.",
31
31
  "Data sent to third parties: the model provider you choose for a session receives the conversation sent to it, including files the session read, command output, what MCP tools return (such as the emails, events and files in a mailbox, calendar or drive you connected), and the page content and screenshots a session obtains when it uses the browser and computer control tools; a screenshot captures whatever is on the screen at that moment, including other apps' windows; that provider's privacy policy applies. The default provider, DeepSeek, is a service of the Chinese company DeepSeek; how it handles and stores this content is set out in its privacy policy. If you choose a provider outside mainland China, this content goes abroad. When a session fetches a web page or opens one in the built-in browser, that site receives the request; a site you signed in to in the built-in browser receives requests that carry your sign-in. Once you save a key for a search service, that service receives the query when a session searches the web, and its privacy policy applies; with a search service outside mainland China (Tavily, Brave), the query goes abroad. By default Yew starts two open-source MCP servers: a browser (Microsoft's Playwright MCP) and computer control (computer-use-mcp). They run on your computer, and you can turn them off in Settings. Yew downloads and installs these two, and the common servers you add with one click that run on your computer, from npm the first time it uses them; npm receives the download request. An MCP server you add (it is written in mcp.json) receives what a session passes to its tools, and a service you signed in to in your browser receives requests made with your account. These services' own privacy policies apply; with a service outside mainland China (such as Google, Linear or Vercel), what is passed to it goes abroad. These tools ask you before each call, until you choose Always allow for a tool; the clicks, typing and key presses of computer control, and MCP tools that Yew recognizes as sending, publishing or deleting something, cannot be set to Always allow and ask every time.",
32
- "Access, export and deletion: you can look at the files in the data folder directly. To delete a provider's key, delete it in Settings or run yew key delete; to remove a paired phone, remove it under Phone access on the computer, or unpair on the phone; to sign out of an MCP server, choose Sign out under MCP servers: where the service supports it, Yew first asks it to cancel the tokens, then deletes the ones kept on this computer; to make sure the access you granted is revoked, check or remove it in that service's account settings; to clear the built-in browser's sign-ins, delete the browser folder in the data folder; to delete everything, stop yew serve and delete the data folder. If you upgraded from Jig, also delete ~/.jig (usually just a link to the new folder; if Jig was running during the upgrade, the data may still be there) and the entries in the system keychain whose service name is asia.tenon.jig.",
32
+ "Access, export and deletion: you can look at the files in the data folder directly. To delete a provider's key, delete it in Settings or run yew key delete; to remove a paired phone, remove it under Phone access on the computer, or unpair on the phone; to sign out of an MCP server, choose Sign out under MCP servers: where the service supports it, Yew first asks it to cancel the tokens, then deletes the ones kept on this computer; to make sure the access you granted is revoked, check or remove it in that service's account settings; to clear the built-in browser's sign-ins, delete the browser folder in the data folder; to delete everything, stop yew serve and delete the data folder.",
33
33
  "Contact: support@tenonai.cn.",
34
34
  ],
35
35
  terms: [
@@ -3,6 +3,8 @@ import { readFileSync } from "node:fs";
3
3
  // do: two folders up from this file, in both layouts.
4
4
  const pkg = JSON.parse(readFileSync(new URL("../../package.json", import.meta.url), "utf8"));
5
5
  export const NAME = "yew";
6
+ /** The product's name where people read it (blueprint, section 12); `NAME` is the command's. */
7
+ export const PRODUCT = "Yew Harness";
6
8
  export const VERSION = pkg.version;
7
9
  export const PUBLISHER = "Tenon AI";
8
10
  export const WEBSITE = "https://tenonai.cn/";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenonai/yew",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "An AI-native multi-agent workbench",
5
5
  "keywords": [
6
6
  "agent",
@@ -44,7 +44,7 @@
44
44
  "build:web": "vite build --config web/vite.config.ts",
45
45
  "watch:web": "vite build --config web/vite.config.ts --watch",
46
46
  "relay:publish": "bash deploy/relay/publish.sh",
47
- "build": "tsc -p tsconfig.build.json && npm run build:web && node scripts/notices.mjs",
47
+ "build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json && npm run build:web && node scripts/notices.mjs",
48
48
  "prepack": "npm run build"
49
49
  },
50
50
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- Jig's web interface is built from these packages. Each stays under its own license.
1
+ Yew Harness's web interface is built from these packages. Each stays under its own license.
2
2
 
3
3
  ========================================================================
4
4
  @ungap/structured-clone 1.4.0 (ISC)