Commit Graph

119 Commits

Author SHA1 Message Date
liugaowei
15cd88b14f fix(plugin): 同步平台基线并拒绝云元数据网络来源
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 13:45:15 +08:00
liugaowei
d6a8decccd fix(plugin): 同步宿主基线并修复电脑与任务进程生命周期
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 13:30:20 +08:00
liugaowei
fc70f77c00 Merge main into feature/plugin-host-capabilities
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 11:46:18 +08:00
liugaowei
150b755b82 merge: 同步网络凭证分支的叠加基线
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 10:15:52 +08:00
liugaowei
a921f296f5 merge: 合入插件公共入口最新基线
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-13 06:15:49 +08:00
liugaowei
c20969dd1c Merge origin/main into feature/plugin-host-capabilities
保留宿主工具组和主干插件界面扩展的声明,解决作者手册冲突。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 20:10:52 +08:00
Dash
8bf9683d96 Merge main into dash/desktop-live-screen
Retain upstream plugin titlebar contributions alongside remote task device and desktop controls. Preserve platform-specific placement and existing candidate ownership. 128 targeted tests, both UI fixture matrices, Desktop typecheck and Skill bundle history verification pass.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 01:09:08 +13:00
liugaowei
b8f08ee167 feat(plugins): 独立开放受控网络与已有凭证引用
保留第 23、25 项完整实现,叠加在已拆分的平台服务上。所有明文请求仅限既有分类器识别的私网、回环与 localhost;托管凭证只经 HTTPS/WSS 注入。安装与批准做提前校验,逐跳运行时检查作为最终边界,协议包保持零运行依赖。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 14:40:02 +08:00
liugaowei
e8beeb45fa refactor(plugins): 将网络与凭证能力拆出平台服务
保留授权文件、托管作业、存储、能力目录和 Node Host 公共入口;第 23、25 项在独立叠加分支保留完整实现。共享协议与作者文档按能力分离,保持原生命周期修正及作业、确认背压预算。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 14:12:51 +08:00
liugaowei
374bfeca5d merge: 同步插件公共入口与主干宿主装配
合入 209212431e,保留凭证复用和现有风险守卫;Node 平台 provider 与插件共用,Skill 迁移到记录制版本 113。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 10:29:34 +08:00
liugaowei
209212431e merge: 同步主干并保留插件宿主能力批准
合并 origin/main 59702e7da2,保留界面、外观、hostTools 和订阅批准,Skill 版本为 BASE 108 加四条记录。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 10:12:33 +08:00
Dash
767c731aa8 Merge origin/main into dash/desktop-live-screen
Preserve plugin-view invalidation alongside upstream UI cleanup, and retain local-only resource task views without widening taskView.remote. Sidebar and remote view regressions pass; Desktop typecheck reports the unchanged main UserMessage pluginUi test fixture error.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-12 03:37:25 +13:00
liugaowei
0f7a2501d7 fix(plugins): preserve edits and refresh host contributions
Keep legacy host entries when historical extensions are invalid, discard attachment output after edits, and subscribe window projections to the shared roster.

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 21:19:38 +08:00
liugaowei
c7eb84ab98 merge: 同步插件界面基线并登记随包手册版本
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 20:39:59 +08:00
liugaowei
127719a8cb feat(plugins): 补齐标题栏按钮与输入取消时序
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 20:33:24 +08:00
liugaowei
d98bdf13c9 feat(plugins): 接入附件处理与折叠侧栏视图
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 20:21:31 +08:00
liugaowei
4146715660 feat(plugins): 开放导航、任务菜单、补全与统一设置
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 19:47:19 +08:00
liugaowei
646ce07775 Merge feature/plugin-host-capabilities into feature/plugin-platform-services
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:51:40 +08:00
liugaowei
3dc70b4de6 Merge origin/main into cindy/witty-leakey
Preserve merged runtime-control grants alongside plugin UI and appearance grants.
Advance the combined built-in Skill bundle to102.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:47:25 +08:00
liugaowei
dd2b0dc511 Merge origin/main into feature/plugin-host-capabilities
Preserve runtime control approvals alongside host tool groups and event topics. Set the bundled Skill version to 103.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:40:47 +08:00
Dash
9850c1ce57 Merge origin/main into dash/desktop-live-screen
Include upstream Pi CI assertion fix; resolve built-in Skill bundle version at 102.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 23:31:52 +13:00
liugaowei
bd1b36ee46 feat(plugins): 提供共享宿主服务能力目录
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:25:21 +08:00
liugaowei
e7fbd7b063 feat(plugins): 开放共享浏览器电脑连接与文档服务
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:24:59 +08:00
liugaowei
5577e963bb feat(plugins): 复用宿主存储并开放跨插件副本分享
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:24:37 +08:00
liugaowei
9e97ece527 feat(plugins): 开放亲选目录的共享宿主文件服务
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:24:15 +08:00
liugaowei
3975f6d870 feat(plugins): 通过共享宿主终端管理命令与后台作业
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:23:29 +08:00
liugaowei
d16826987a feat(plugins): 支持精确网络来源与自定义端口
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:21:47 +08:00
liugaowei
4b3b1323c6 docs(plugins): 对齐任务工具索引与事件契约
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:58 +08:00
liugaowei
29919bb748 feat(plugins): 按批准索引订阅消息与任务状态
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:08 +08:00
liugaowei
ef80d2b26d feat(plugins): 逐组确认宿主工具能力
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:11:41 +08:00
Dash
63e519f472 refactor(desktop): 远程设备画面改由插件自己的任务页显示,宿主只提供通道
任务在同账号另一台电脑上、且那台电脑的插件为该任务开着设备时,本机不再自绘设备面板,
而是打开同一个插件自己的任务页:界面、手势和手指提示都由插件完成,与任务在本机时一致。

- 新增 taskView.remote 声明(需同时声明 liveScreen):远程任务里只保留声明了它的插件任务页,
  页面地址多带 device=<那台电脑的设备 ID>
- 新增 cindy.liveScreenView()(live-screen-view-request):插件只能列出、打开那台电脑上同一
  来源同一 id 的插件的设备,拿到带一次性令牌的本机回环地址(插件自己的画面流格式 + 设备输入)
- 连接仍是普通设备画面租约:主窗口持有并把视频重新编码后交给 Main 转发,Main 绑定目标并校验
- 本机没装、没开启或版本太旧时不打开任何页面,提示并带用户去安装 / 开启 / 更新该插件
- 撤掉宿主自绘的设备面板、live-screen 页签、触控板专用通道与画面运行时里的桌面手势

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 19:27:12 +13:00
liugaowei
15096796ef fix(plugin-ui): adapt host pages and preserve appearance grants
Keep sessionless page calls out of task restoration and include default appearance fields in receipt approval.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 10:10:21 +08:00
liugaowei
1fb872e939 feat(plugins): add ordered task system prompt fragments
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 10:08:43 +08:00
liugaowei
0ef2c993e9 feat(plugins): compose task context and memory search providers
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 10:08:27 +08:00
liugaowei
c7b3c8511d feat(plugins): add task-scoped model request controls
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 10:08:01 +08:00
liugaowei
84ea4f807a fix(plugin-ui): remove plugin Dock icon capability
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-10 17:31:54 +08:00
liugaowei
1be6ad1598 merge: 同步主干并保留插件 UI 与消息引用能力
合并助手正文的选区引用边界和插件展示入口,推进合并后作者材料版本以发布两侧更新。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-10 13:45:18 +08:00
liugaowei
085a0a7523 feat(plugins): 补齐 MCP Apps 宿主能力并消除重复同步
沿原设置与窗口所有者开放区域显隐、自有外观资源、自定义运行图标、草稿选区替换和入口旁页面,同步声明、批准、作者资料及示例。

过滤无语义变化的光标通知,选区更新省略未变化的文档;合并同字体的在途读取和解码,并保留撤权、关闭和过期结果保护。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-10 13:43:52 +08:00
liugaowei
3f3b448d4e feat(plugins): 基于 MCP Apps 开放插件界面扩展
复用现有 Host、资源和工具执行链,支持具名全局/任务页面、八类界面入口及按批准开放的宿主操作。
按实际消费者同步原生状态,合并突发更新,并在关闭页面或菜单后释放订阅。
同步作者手册、可打包示例、兼容说明和定向回归,保留旧插件与原文展示。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-09 16:49:55 +08:00
liugaowei
62588f5ff0 feat(plugin): 重做插件页并按需加载市场
分开展示已安装与插件市场,每批加载 10 项,保留全局搜索、来源数量和现有管理入口。
接入今日推荐、目标查询和批量维护,限制列表缓存与渲染,避免重复计数和过时搜索请求。
保留旧 Host 兼容路径,不改变安装批准规则。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-09 15:27:30 +08:00
Zhao Dengfeng
1c58b1433f fix(plugin): preserve historical market parameter sizes
Keep the original UTF-16 parameter limit for stored releases in protocol and Desktop validators while preserving strict UTF-8 validation for new packages. Cover delivery parsing and real install, update and receipt reload, and document the compatibility boundary.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-11-06 21:55:48 +08:00
Zhao Dengfeng
7be4376252 fix(plugin): measure parameter limit in UTF-8 bytes
Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-11-06 21:55:31 +08:00
liugaowei
44f8025396 revert(plugin): 整体撤回原生界面接入
This reverts commit 80a84b27aa,
reversing changes made to 502acd4e66.

保留 #9093 的 Dock 修复及后续无关改动;同步撤回原生界面手册、示例和已移除能力的测试依赖,递增内置手册版本以替换旧缓存。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-06 14:09:25 +08:00
Dash
94cf14252a fix(plugins): bound readme image scan and inline reference images for mobile
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 02:35:05 +13:00
Dash
6a66892986 fix(plugins): readme image detection, locale reload and symlink test probe
- Collect readme images from real Markdown image syntax (inline, reference,
  shortcut) and skip code blocks and HTML <img>; Forge packing and runtime
  reading share this result. The manual no longer promises <img> support.
- The installed-plugin readme reloads when the UI language changes; the UI
  language is passed to ghosts:readme.
- Use a symlink capability probe instead of skipping on Windows (CI guard).

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 01:34:06 +13:00
Dash
fe31bb20cf feat(plugins): add detailed plugin introduction (manifest.readme)
Plugins can now declare `readme` in ghost.json: a locale map to package
Markdown files (en required). The introduction is shown below the short
description on the installed plugin detail page, the market detail page
(custom markets read the source copy; the official market reads an
optional `readme` field the server can return for `?readmeLocale=`), and
the mobile plugin detail page (fetched on demand via `readme:get`).

Only package images are shown: paths are resolved with
`resolveGhostReadmeAssetPath`, read with link-rejecting bounded reads and
handed to the UI as data URLs; MarkdownRenderer gains `resolveImageSrc` so
remote and inline data images never load. The content never enters model
context. Old clients ignore the field and keep showing `description`.

Forge packing checks readme files and referenced images; the plugin
creator manual documents the contract.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 01:15:09 +13:00
liugaowei
52b4396a19 feat(plugins): 开放客户端原生 UI、独立视图与个性化能力
提供原生贡献、命令与上下文桥;命名视图复用原有页签布局。
开放本机外观、显隐及运行时应用图标,并同步作者契约与回归测试。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-05 11:53:46 +08:00
xd-bobo
2f50302f93 feat(plugins): let plugins view the owner's teammates (cindy.companions)
Adds agent.companions, one independent plugin permission for reading the
owner's teammates from a desktop logic page:

- list: every teammate of the account, including those whose home is another
  computer (read from that computer over device-link), with the sidebar's
  status, the public working phase, the titles of requests waiting for the
  owner and the time of the latest reply; offline homes show as offline
- reply: the text of the latest visible reply (the end of a run)
- open: show the conversation, or the task holding a request, in Cindy;
  requests are always handled in Cindy's own cards
- watch/unwatch: content-free change notices, at most once a second

The home computer answers maker:companion-live:read with the same view;
older homes fall back to the released teammate list. Approval follows the
observe capability (install consent, first-use prompt, detail page retry),
with 12-locale wording, author reference 4.11.9 and rule docs updated.

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-11-04 15:45:23 +08:00
Dash
cce80f1953 Merge origin/main into dash/simulator-on-phone
Also: the task page stops offering live screens when the computer goes
offline, instead of keeping the last list until it is back.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 20:44:18 +13:00
Dash
3d7de9a81a fix(plugin-protocol): refuse liveScreen without a node worker
A live screen is driven through the plugin's node worker, so the declaration
alone could never run; both manifest validators now require the pair
instead of installing a plugin whose feature silently never appears.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 20:28:00 +13:00