Commit Graph

80 Commits

Author SHA1 Message Date
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
liugaowei
0ece30efb4 feat(plugins): 统一能力授权与 local 开发安装
按声明、实例批准和用户授权使用通用能力,移除插件名称与官方来源门禁。
本地文件与 Forge 默认进入 local,同名市场安装继续保留并独立更新。
工具审批统一消费已批准声明,无声明时使用任务审批,不保留按名例外。
补齐历史凭据迁移、受保护头像下载、端口确认、原生桥归属及投稿远程接线。
企业 OIDC 判定与确认保持原样,Broker 继续受企业绑定约束。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-02 16:30:03 +08:00
Dash
29db732713 feat(remote-desktop): 手机上查看并操作插件提供的设备画面(模拟器)
- 插件 manifest 新增 liveScreen 声明;Cindy 主进程经 Node broker 调用固定的 liveScreen.* 方法
- 远程桌面新增实时屏幕租约:screens 列表、start.screen、touch/press 输入,采集页解码 H.264 后走现有 WebRTC
- 手机:远程桌面页模拟器模式(多点触控、设备按键、文字),任务页右上角第二位与「更多 → 打开」入口

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 14:50:33 +13:00
Chris
0925ecc88e feat(plugins): let plugins publish models to the model picker
Replace the hard-coded "let a plugin choose" row with a generic wire. A plugin
declares models in its manifest and publishes the list at runtime; the picker lists
what was published, with the plugin's own text, and never calls the plugin to open.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-01 01:12:52 +08:00
DavidShen
986a748f22 fix(i18n): 补齐客户端原生界面与附带内容的十语支持
Signed-off-by: DavidShen <david@xd.com>
2026-10-31 22:43:13 +08:00
Naozhong AI
867a248997 feat(plugins): 插件只读查看项目任务列表与状态 (agent.observe)
新增独立能力 agent.observe:插件可按已登记本机项目读取任务的标题、Agent 类型、
归档与状态元数据(与侧边栏同一读模型),并在主窗口打开其中的任务。

- 不依赖 agent.tasks;单列 agent:observe 权限,需 Host receipt 的
  observeCapabilityApproved 显式批准,首次调用复用既有宿主确认
- 旧 tasks/targets 批准与历史未知字段不授予查看
- 只返回元数据,不含消息、计划或文件;不能发送、修改或停止任务
- 仅本机 Desktop 逻辑页,Mobile 页面返回 UNSUPPORTED_CAPABILITY

Refs #8118

Signed-off-by: Naozhong AI <oursnoah@gmail.com>
2026-10-31 18:38:05 +09:00
fmfsaisai
b497966547 merge origin/main ec189bf8bb and resolve plugin capability conflicts
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-30 12:49:01 +08:00
fmfsaisai
b88fec3268 fix(plugins): set interactive page version floor to 0.1.122-beta
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-30 11:09:05 +08:00
fmfsaisai
08bf3529f3 fix(plugins): 保留历史页面声明兼容并校验安全路径
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-29 23:32:35 +08:00
fmfsaisai
41bce9e507 refactor(plugins): 用 mcpApps 声明标准交互页面资源
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-29 23:31:55 +08:00
fmfsaisai
712f70084e chore(plugins): 将交互页面最低版本定为 0.1.121-beta
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-29 23:31:55 +08:00
fmfsaisai
9d08d91f09 feat(plugins): 声明交互页面并独立确认页面权限
增加 v3 顶层 ui 页面资源与工具可见性,保留旧批准记录的兼容读取。

PLUGIN_UI_MIN_CINDY_VERSION 保持 9999.0.0,正式版本待定。

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-29 23:31:53 +08:00
Leng Jingxu
2cede009a3 feat(plugin): 收敛鉴权票据上传并补齐伙伴执行收据
Signed-off-by: Leng Jingxu <lengjingxu@users.noreply.github.com>
2026-10-29 18:15:08 +08:00
Leng Jingxu
3e4f1cb8f8 wip(plugin): 保存凭据桥接与委派接口移植供范围复核
Work paused pending plugin-first contract review. Not release-ready: final typecheck, full integration and packaging remain unverified.

Signed-off-by: Leng Jingxu <lengjingxu@users.noreply.github.com>
2026-10-29 16:27:46 +08:00
Lizi
c8ccb06de5 Merge pull request #7657 from makecindy/feature/local-plugin-sharing
feat(plugin): 支持本地插件分享
2026-10-29 11:33:31 +08:00
liugaowei
1319c3a89d feat(plugin): 支持本地插件分享与固定版本安装
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-28 16:36:43 +08:00
liugaowei
2be475d895 docs(plugin): 明确逐插件默认配置和任务授权边界
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-28 14:35:28 +08:00
liugaowei
2f2721a49b revert(plugins): 回退 Harness 插件能力桥接
移除每个流式事件同步扫描全部已安装插件的事件桥接,避免主进程在输出期间被反复磁盘扫描阻塞。保留后续插件投稿和公开分享改动,并将内置作者手册升至新版本以更新回退后的内容。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-27 21:54:34 +08:00
liugaowei
433589a8c2 chore(plugins): 合入 main 并保留详情分享与发布入口
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-27 15:50:41 +08:00
liugaowei
bdc4a7ff08 fix(plugin): 对齐主干并修复分享接收链路
保留无参分享链接与创建区域语言;补齐插件深链的 preload 投影和登录保留,复用一次性消费;修正素材就绪前点击的测试时序,并将本地预览代理绑定到两个固定目标。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-27 10:43:56 +08:00
liugaowei
7056870f6b chore(plugins): 合入 main 并解决工具入口冲突
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-26 19:18:46 +08:00
liugaowei
1e75178b4a chore(plugin): 对齐主干并保留桌面分享集成
合并当前 main,保留插件分享深链与主干设置入口,合并五语独立文案段落,并修正分享契约中已淘汰的 Auth 记录职责说明。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-26 16:33:40 +08:00
liugaowei
cd71d42633 fix(protocol): 同步公开插件分享的图标字段
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-26 13:59:58 +08:00
liugaowei
80d517b4a0 feat(plugins): 开放任务运行能力接口
为获准插件提供能力发现、历史读取、事件、Hook和受控动作。
复用原生执行与现有插件批准链路,隔离过期回合和迟到回执。
包含协议、作者文档及权限与原生适配回归,不包含压缩插件策略。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-23 15:14:12 +08:00
liugaowei
ae84cb8db1 feat(plugin): 支持公共插件链接与图片分享
在公共插件详情中提供分享入口,预览并复制链接或图片。
沿现有端点、账号与深链流程承接实时署名和已安装插件,保持原安装批准与更新边界。
同步公开展示 DTO v1 和本地界面确认原型。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-23 11:24:34 +08:00
liugaowei
9a06b7c728 Merge main into feature/plugin-community-contribution
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-23 10:22:42 +08:00
Dash
e2ff9bc7a9 feat(plugins): 插件可声明跟对话的任务页 taskView
插件此前只有不跟对话的界面(右侧栏全局面板、主视图),跟着任务走的只有
插件请求打开的浏览器标签,外观就是浏览器。现在插件可声明 taskView:

- 身份卡新增 taskView {title?, html}(v3 直接声明,v2 与 task-view 槽成对),
  协议正本 packages/plugin-protocol 与桌面镜像同步;多语言标题、入口白名单、
  安装确认里的能力条目与 Forge 文件检查一并支持。旧版 Host 把它当未知字段保留
  并忽略,已装插件不受影响。
- 新的右侧栏页签类型 plugin-task:存在各任务自己的页签桶里,随任务切换;用插件
  自己的包内页面渲染(与 panel / mainView 同一沙箱),页签头由 Cindy 绘制,没有
  地址栏;页面经查询参数 session 得知所在任务。插件停用、卸载、不再声明任务页
  或远程任务时隐藏。
- 逻辑页 cindy.taskView({sessionId?})(管子 task-view-request)在指定任务(缺省
  台前任务)打开或聚焦本插件的任务页,同一任务每个插件至多一个;回执带回落点
  任务。只承载包内页面、不收网址,Host 只做资格审与落点解析。分离侧栏窗口经
  新命令 open-plugin-task 转发。
- 回环嵌入例外从面板扩展到主视图与任务页:声明自绘页面 + node + 回环预览的插件,
  其页面可嵌入自己本机 Node 进程提供的画面,其余网络边界不变。
- 作者手册新增 §4.22,插件安全规则同步。

Signed-off-by: Dash <dashhuang@gmail.com>
2026-10-23 09:15:26 +13:00
liugaowei
64917d0e50 Merge main into feature/plugin-community-contribution
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-22 10:58:26 +08:00
nana
ca84bcd292 chore: 同步主干并保留手机插件配置改动
Signed-off-by: nana <823073145@qq.com>
2026-10-21 18:37:23 +08:00
nana
6551b7a4ec feat(mobile): 支持远程插件管理与原配置页
Signed-off-by: nana <823073145@qq.com>
2026-10-21 18:24:05 +08:00
liugaowei
60110fa673 feat(plugins): 支持本地插件提审与我的插件管理
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-21 17:48:10 +08:00
liugaowei
1bc9ee9f33 chore(plugin): 同步主干并解决目标接口冲突
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-21 12:07:41 +08:00
zqchris
b87f64e128 feat(plugins): 支持同账号电脑间加密交换插件资料
Signed-off-by: zqchris <chrisz83@gmail.com>
2026-10-20 18:22:35 +08:00
liugaowei
ae9d33a556 chore(plugin): 同步主干并迁移目标接口手册
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-20 10:21:44 +08:00
liugaowei
ec97ea6864 fix(plugin): 补齐目标授权与持久投递边界
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-20 10:15:06 +08:00
Dash
838e197f3b 页签窗口 review 收敛:owner 边界销毁、协议镜像、搬入 / 关闭 / 交回一致性、页签记录承载页面
- owner 提交边界同步销毁全部页签窗口并广播空状态,新 owner 不再看到旧任务 / 插件内容
- plugin-protocol 镜像 panel.position 四边与 mainView.open / side / multiple(含测试)
- 多页签窗口数据交接:后续指派只并入新增页签的内存态;搬入的任务页签按数据库强制刷新;
  新搬入页签有宽限,不立刻当作已消失;关闭未收尾时不销毁窗口;窗口里关掉的页签经 closed
  通知让主窗丢掉缓存副本(不可持久化会话不再复活);合并回侧栏前释放浏览器 guest,
  保留逻辑只保留本 renderer 仍承载的页签
- 全局页签记录承载的页面(panel / main):左侧导航入口放进侧栏的是主视图,单实例只看主视图那一份,
  panel 与 mainView 不同页面时可并存;mainView.open:sidebar 默认右侧
- 弹在窗口里的全局页签经 returnTab 真正交回主窗,再更新放置记忆(在侧边栏中打开 / 恢复默认位置)

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-20 02:29:27 +13:00
GaoWei Liu
216cca16a8 Merge pull request #6209 from makecindy/feature/plugin-task-preferences-opt-out
feat(plugin): 支持插件隐藏默认模型与任务配置卡
2026-10-19 16:40:35 +08:00
Dash
653df10afc fix(mail): 隔离附件快照并对齐邮件声明校验
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 16:03:11 +13:00
Dash
a70d6afec2 fix(mail): 严格校验已读能力并同步设计统计
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 15:26:54 +13:00
Dash
53abb9ffc7 fix(mail): 修复草稿恢复、引用同步与阅读边界
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 14:33:31 +13:00