Commit Graph

977 Commits

Author SHA1 Message Date
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
046bfb7654 feat(plugins): reuse saved PATs through host injection
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 19:24:38 +08:00
liugaowei
5bd4cde1a5 fix(plugins): 对齐宿主基线与协议文档入口
统一随包 Skill 版本为98,移除 Node Host 对已删除 helper 的接线。将平台能力协议记录原文迁至专题,保持必读入口页在门禁预算内。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:26:00 +08:00
liugaowei
e1af8c96ab fix(plugins): 统一运行时宿主资源退出清理
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:25:34 +08: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
1528d3cdb2 fix(plugins): 明确无界面宿主未提供的服务
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:23:54 +08:00
liugaowei
a6f23e9953 feat(host): 复用任务历史与输入授权服务
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:23:29 +08:00
liugaowei
a7f5289e84 feat(host): 接入插件公共宿主工具与客户端确认
Node Host 复用同一 helper registry、终端服务和调用授权,首次能力批准保存在既有 receipt。确认按客户端协商并绑定真实控制窗口,取消与断线不进入任务事件回放。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:23:29 +08:00
liugaowei
3975f6d870 feat(plugins): 通过共享宿主终端管理命令与后台作业
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:23:29 +08:00
liugaowei
d4751913d4 feat(plugins): 提供已有账号选择与安全撤销入口
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:22:20 +08:00
liugaowei
0d13ee126d feat(plugins): 支持已有 OAuth 账号的宿主引用
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:22:20 +08:00
liugaowei
8f54d8ef91 feat(plugins): 补齐宿主流式连接与 WebSocket
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:22:20 +08:00
liugaowei
d16826987a feat(plugins): 支持精确网络来源与自定义端口
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:21:47 +08:00
liugaowei
020e931cd6 feat(plugins): 补齐在途调用的工作目录操作
复用宿主文件核心与 watcher,支持读取、列举、独立删除确认和带游标的目录变更续读。调用结束或身份变化时关闭监听,保留私有目录与保存票据的既有行为。同步 12 种语言权限说明与作者文档。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:21:47 +08:00
liugaowei
2c0e66c8ac fix(plugin): restrict history attachments to existing host grants
Reject historical file paths and legacy file URLs instead of reading or importing them. Reuse the existing managed-media ledger and plugin handoff receipts, document the reduced attachment scope, and cover forged JSON without file access.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:03:41 +08:00
liugaowei
ee5288f98b fix(plugin): reuse scheduler execution guards
Carry checked schedule definitions through the existing caller scope and shared scheduler dependency into the native execution precondition. Cover concurrent script changes and the existing remote argument contract while preserving Agent behavior.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:14:32 +08:00
liugaowei
d85b816e14 refactor(plugins): narrow host capability scope
Keep local attachments, lifecycle-only task events, existing schedule handlers, and fresh approval reads. Reject unsupported remote attachments and no-node script scheduling, removing auxiliary transfer, batching, confirmation, and read-cache mechanisms.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:14:32 +08:00
liugaowei
a78189d777 fix(plugin): bound task events and preserve host approval boundaries
Keep Electron attachment dependencies in the composition root and project new remote history results through source visibility checks. Page teammate metadata, batch subscribed events, and deduplicate receipt IO only within synchronous request segments.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:14:00 +08:00
liugaowei
68c049dc32 fix(plugins): 复用媒体分块并静态装配宿主服务
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:59 +08:00
liugaowei
59da2f0ba6 feat(tasks): 沿既有回执跨电脑传递插件调用方
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:09 +08:00
liugaowei
c6ea25a995 feat(tasks): 共用权限提交与插件消息来源
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:09 +08:00
liugaowei
d91eb02e67 feat(tasks): 共用消息分叉与检查点回退入口
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:09 +08:00
liugaowei
1443e6800d feat(tasks): 共用宿主删除任务与逐次授权
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:08 +08:00
liugaowei
29919bb748 feat(plugins): 按批准索引订阅消息与任务状态
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:08 +08:00
liugaowei
f7475f8f61 feat(history): 共用任务附件读取与既有交接通道
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:08 +08:00
liugaowei
4dca6fccde feat(tasks): 共用完整伙伴目录与隐藏任务元数据
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:13:07 +08:00
liugaowei
c6de4a14a1 feat(plugins): 共用 Agent 宿主工具调用与授权
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 17:11:41 +08:00
Dash
e405db1be9 docs(dev-rules): 协议兼容拆成必读规则页与每项能力一份记录
protocol-compatibility.md 已长到 555 KB、194 节:文档抬头落在第 1290 行,
§1 的规则被挤到无关小节下面,Review 清单在第 3967 行。每个协议改动都要求
先读它,但没有 Agent 能读完;新记录又都往同一处插,近 30 天 453 次提交改这
一个文件,彼此反复冲突。

- 原页只留对所有跨端改动都成立的规则(事实来源、§1–§3、自建中转同步维护、
  Review 清单),10 KB;新增一节说明检索与新增记录的做法。
- 205 项能力记录各占 protocol-compatibility/ 下一个文件,正文逐行保留,只
  提升标题层级并修正相对链接;11 个挂在无关章节下的小节独立成篇。
- 7 处「上一节/见下文」改为指向具体文件;其他文档里 29 处按章节名或锚点
  的引用改指新文件。
- dev-docs 契约新增一条:规则页不超过 16 KB、记录一文件一标题,防止再次堆回。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 00:33:32 +13:00
Lizi
b339ec678d Merge pull request #9527 from makecindy/cindy/lively-feynman
fix(desktop): 识别 Codex 供应商认证并引导独立账号登录 #9517
2026-11-10 18:31:26 +08:00
Dash
eaf91da1db Merge remote-tracking branch 'origin/main' into cindy/host-web-reliability 2026-11-10 22:21:01 +13:00
DavidShen
2c5425b59d Merge main to resolve subscription account fixture conflicts
Keep the upstream empty-account UI and both provider-auth recovery fixture scenarios. Revalidate the combined account flow.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-10 17:13:42 +08:00
Lizi
8d4afd2af8 Merge pull request #9669 from makecindy/cindy/elegant-noether
fix(tasks): 来源不绑项目时按执行目录归入已登记项目
2026-11-10 17:07:19 +08:00
Dash
0c334b9e91 Merge remote-tracking branch 'origin/main' into cindy/host-web-reliability
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

# Conflicts:
#	apps/desktop/src/main/messagePersistBroadcaster.ts
2026-11-10 21:57:16 +13:00
Lizi
5365e13d20 Merge pull request #9664 from makecindy/cindy/sincere-torvalds
feat(interaction): 保留异步问题、支持模型撤回并统一回答输入框
2026-11-10 16:53:07 +08:00
Dash
a6f7f30a69 Merge origin/main into cindy/host-web-reliability
Main changed the Pi catalog upstream selection in pi-host.ts, which this PR
moved to pi-native-catalog.ts; the same change is applied there.

fix(host): forward the coordinator's authorization inputs on send and steer

The executor rebuilt the Session send options and dropped the protected
auto-review source content, so a message with expanded references fell back
to the full expanded body and quoted pages or plugin resources counted as the
user's own words in Auto mode. Steer called the Session with no options at
all. Both now pass the source content, the restored intent and the delegated
marker (an MCP App message grants nothing).

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 21:45:24 +13:00
DavidShen
638e2555b3 Merge main to refresh PR CI
Bring in the built-in Skill bundle version 91 fix from main. Preserve the existing account recovery changes.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-10 16:21:23 +08:00
Dash
0e1f68e4af Merge remote-tracking branch 'origin/main' into cindy/host-web-reliability 2026-11-10 21:05:48 +13:00
Dash
6303893900 fix(tasks): 来源不绑项目时按执行目录归入已登记项目
伙伴的对话不绑项目,省略 project_path 时它开出的任务也不绑项目,
即使执行目录就在某个已登记项目里,用户在项目下找不到这些任务。

- resolveSessionProject:来源不绑项目且省略 project_path 时,从请求的
  working_dir 向上匹配最近的已登记、可见且目录存在的项目;只匹配已有
  项目,不登记、不恢复。显式路径、显式 null 与继承到的项目不受影响。
- send_to_session 新建与 start_session_task 的创建回执新增 project_note,
  说明归属由执行目录决定或任务未绑项目。
- 更新两个工具的说明、伙伴开任务指引,以及归属规则文档。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 19:10:59 +13:00
Dash
3488789983 merge: 同步主分支并保留异步提问管理
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 18:55:12 +13:00
Dash
b1337523bb feat(interaction): 保留异步问题并支持模型撤回与全宽回答输入
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 18:51:07 +13:00
Dash
172359ce7e fix(plugin): 服务端缺按需读取接口时回退整份目录,迁移不再误标市场插件
客户端 62588f5ff0 改用 defaults / resolve / catalog 读取插件市场,但对应的
plugin-server eb701e0d4 尚未上线:旧服务端把 defaults 当插件 ID 返回 400,
resolve 返回 404。插件页因此读不到官方目录,迁移助理把官方市场安装的插件
标成「只在那台电脑上,手动搬」,也没有提示这次读取不完整。

- 插件市场 API:只对「接口不存在」回退到旧的整份目录读取,并在进程内按市场
  地址记住 10 分钟;网络、鉴权、5xx 等错误照旧失败。
- 迁移助理:官方目录没读到时,按本机安装记录确认官方市场来源,照常迁移,
  并把插件部分标为未完整读取;真正手装与本地开发安装仍为 local-only。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 17:46:07 +13:00
Lizi
0870dd0864 Merge pull request #9597 from makecindy/cindy/cheerful-newton
fix(maker-core): 实时生成速度改为从首字节起算,并用真实用量校准
2026-11-10 11:45:07 +08:00
Lizi
16c567ab79 Merge pull request #9563 from zhanghengxd/feat/targets-resolve-session
feat(plugins): 支持按会话解析 targets 目标
2026-11-10 11:36:37 +08:00
Dash
2cdab9a41d fix: measure live tok/s from each request's first byte, corrected by real usage
The speed panel counted streamed text with a word estimate that was only
replaced by real usage when a Claude Code turn ended, so a running turn showed
20-50% of its real output and average, and the curve dropped to zero after
every stretch of thinking. Codex divided each response by its model time
including the wait for the first byte and produced one reading per response;
Pi started its clock when the request was sent and showed a reply in flight at
about 45% of its output.

All three now share one meter:
- the clock runs from a request's first byte; waits, tools and approvals are
  not generation time
- each request's reported usage (with its thinking/reasoning count) replaces
  the stream estimate and calibrates the next one
- thinking is counted from its summary, from provider token estimates, or by
  its learned pace when it streams nothing
- output generated before the first byte is credited time at the measured
  speed instead of inflating it

Recorded Claude Code and Codex turns, reduced to timing and sizes, are kept as
fixtures; scripts/token-speed-capture.ts records new ones and
scripts/token-speed-replay.ts compares what the panel shows with real usage.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 13:16:30 +13:00
Dash
c48ee1cea6 Merge main into the headless runtime and restore desktop initialization
Preserve upstream behavior while sharing platform-independent runtime services.
Repair eager desktop port capture and settle silent startup owner boundaries.
Keep the ongoing headless work local; full confirmation is recorded separately.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 11:54:40 +13:00
Dash
2c230ea21f WIP: share headless runtime services with desktop adapters
Preserve the implemented task, Device Link, plugin and model runtime work locally before integrating main. Full multi-client, automation and platform acceptance remains incomplete.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 11:11:41 +13:00