Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

chore(plugins): 合入 main 并解决冲突

liugaowei013de623f8aa
diff --cc apps/desktop/src/main/maker-host/index.ts
index e81ce86564,f5b534d929..5966165f93
--- a/apps/desktop/src/main/maker-host/index.ts
+++ b/apps/desktop/src/main/maker-host/index.ts
@@@ -1,5 -1,5 +1,6 @@@
+ import { configureSessionModelInterfaceStorage, sessionModelInterface } from './session-model-interface.js';
import { readGeneratedImageEpoch } from '../cindy-media/generatedImageStorage';
+import { resolveHelperSurface } from '../mcp-integrations/helperSurface.js';
import { readAgentCapabilityCatalog, RUNTIME_MCP_NAMES_KEY, type AgentCapabilityQuery } from './agentCapabilityCatalog.js';
import { listCindyManagedSkills, prepareCindyCodexSkills } from './managed-skills.js';
import { scanLocalCustomizations } from '../skillhub/customizationScanHost';
diff --cc apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx
index 6d2ac3b3ab,dafd5d4701..28e512b1d8
--- a/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx
+++ b/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx
@@@ -1,13 -1,6 +1,13 @@@
+import { useContributionPreview } from './lib/useContributionPreview';
import { CatalogDeviceScope, type CatalogDeviceControl } from './useCatalogDevice';
import { RemotePluginPage } from './RemotePluginPage';
+import { PluginVersionFacts } from './PluginVersionFacts';
+import { useSignInToCindy } from '@/hooks/useSignInToCindy';
+import { rememberContributionIntent, consumeContributionIntent, matchesContributionIntent } from './lib/contributionIntent';
+import { MyPluginsPage, contributionErrorKey, type MyPluginsPageCache, type PluginSubmitOptions } from './MyPluginsPage';
+import { localPublishingUnavailableKey } from './lib/ghostPluginDetailModel';
+import type { MyPluginView } from '../../../shared/pluginContributions';
- import { featureRetirementById } from '../../../shared/featureRetirements';
+ import { featureRetirementById, type FeatureRetirement } from '../../../shared/featureRetirements';
import { RetiredFeatureDetail } from './RetiredFeatureDetail';
import { Button } from '@/components/ui/button';
/**
diff --cc docs/dev-rules/protocol-compatibility.md
index 8c3ceb2c79,fa003519f5..1a5d3df57c
--- a/docs/dev-rules/protocol-compatibility.md
+++ b/docs/dev-rules/protocol-compatibility.md
@@@ -3224,35 -3438,14 +3438,43 @@@ namespace + id 下同一插件的有�
无法复核时不投递,不自动重放;已送达历史保留。未知投递结果仍要求先读取目标核实。
没有新 relay channel、服务端变更、数据库 migration 或 Mobile 原生指纹变化。
+ ### 转达原话的核实标记(2026-10-23)
+
+ `maker:session:handoff` 与伙伴跨电脑私信的 `requestSource` 增加可选 `ownerVerified: true`:发送端只在宿主
+ 核实为主人代办的轮次里转达时携带。接收端经 `readForwardedRequestSource` 只认字面量 `true`,并继续用
+ `matchesForwardedRequest` 校验正文;正文三行格式不变。旧接收端忽略该字段,行为与之前相同;旧发送端
+ 不发送,新接收端按未核实处理。同账号鉴权、行动回执与共享访客限制不变。产品语义见
+ [伙伴代表谁](../product-rules/teammate-authority.md)。
+
+## 普通个人的社区插件贡献
+
+已安装清单可选追加只读 `publishingSource`,由 Host 既有实例记录、批准回执与安装台账重建。
+它仅用于个人提审入口的来源准入,不改变列表的来源展示、安装来源、自动更新或发布权限。
+缺失或无法核实来源时不开放提审;本地安装和公开安装都不会因提审或过审自动转换来源,不新增持久化关联记录。
+
+新增独立 `/api/plugin-contributions` 和精确 `plugin-contributions:*` IPC,不改企业发布、
+旧公开市场 DTO 或 device-link allowlist。两仓分别维护等价
+[HTTP / DTO 契约](../plugin-community-contribution-contract.md)。客户端使用当前个人 Access Token,
+以可信 auth discovery 的 issuer 与 token sub 核对所有作者响应主体;`cn/global` 只用于选择 Host 配置,
+不能当作 issuer。服务器仍做验签和 public 提交 ACL,包内作者声明不授予提交权。
+
+prepare / PUT / commit 复用同一固定包和持久幂等键;202 仅表示处理。结果不明先查原操作;
+不换包、不换键自动新建发布操作。receipt 的 uploadedPackage SHA 与实际 releaseRevision SHA 分开,
+`outcome`、修订审核与市场 `available` 分开。处理历史以独立 eventId 分页,旧修订不套用当前修订结果。
+Host 持久操作按账号隔离、异步结果按 owner generation 拦截;审核结果通过用户打开、刷新、前台恢复及前台定时读取同步。
+本地 `review-updates` / `mark-review-read` IPC 仅供可信桌面 Renderer,不加入 device-link 白名单。
+提示点复用现有作者列表和精确修订的审核记录,Main 只额外保存按账号隔离的本机已读标记;
+不新增服务端通知/已读 API,不改变审核事实,不因列表查询或 AI 查询而清除提示。
+旧服务器未实现接口时如实显示读取/发布失败,不试探企业或 Platform 身份,也不伪造空列表或成功。
+存量插件安装、批准记录、启用状态、包格式和市场来源枚举均保持原契约;本能力需要两端更新。
+
+## 社区版本提审 v2(2026-10-16)
+
+manifest 可选字符串 `releaseNotes`;旧包缺字段仍可安装。首次上架可不填写,曾上架插件的后续提审须提供完整非空更新说明。
+个人只读 preflight 查询版本、待审与提交权限;SubmissionView 追加真实时间及允许取消动作。
+审核状态增加 cancelled;Main/preload 新增精确 cancelReview,AI 对应 ghost_cancel_plugin_review。
+旧 journal 字段可选只为读取/原操作恢复,不允许新客户端静默绕过新版预检。
+个人投稿复用原审核请求及上架流程,不增加启用开关、审核令牌或历史比较包门槛。取消仅针对本人仍有提交授权的精确待审修订,已通过或驳回时按真实状态返回。
## 伙伴跟进邀请(2026-10-21)
diff --cc docs/product-rules/agent-user-parity.md
index 55d74a20bd,bf84a93254..315ee0ee64
--- a/docs/product-rules/agent-user-parity.md
+++ b/docs/product-rules/agent-user-parity.md
@@@ -139,16 -149,9 +150,23 @@@ Host 不因当前输入缺少主人标�
跨电脑任务互发要求双方支持
行动回执,旧端明确提示不支持;未增加观察数据权限。实机多端验收仍待完成。
+ 2026-10-24 修订:每个独立 MCP 请求隔离启动共享传输时遗留的行动上下文,
+ 再按绑定的当前调用方执行原有权限判定;进程内调用沿同一隔离边界。
+ 普通任务获准后不继承旧调用的行动证据,也不因此强制排队。
+ 当前调用的委托、权限撤销和延迟交付检查继续保留;不恢复过期授权,不自动重发。
+ 实现见 `maker-ipc/taskActionAuthorization.ts`、`taskActionHost.ts` 与
+ `mcp-integrations/codexHttpBridge.ts`;回归见各自授权及 HTTP 桥接测试。
++
+## 社区插件贡献
+
+普通个人作者的独立入口为 `ghost_contribution_prepare`、`ghost_contribution_submit`、
+`ghost_contribution_status`、`ghost_contribution_stop`、`ghost_my_plugins`、`ghost_cancel_plugin_review`,由 `cindy-tools`
+直接提供工具说明。手动和 AI 复用 Host 的精确安装快照、操作键、回执及个人读取接口;AI 不拿到
+Bearer、PUT 票据或受管文件路径。公开写入遵循当前任务 Full Access / Auto / Ask,不加最后人工点击。
+共享任务访客及既有 helper surface 判为 restricted 的插件托管任务(包括其 Worker)不得读取个人
+个人插件发布资料或执行发布。普通用户自己的 Worker、自动任务沿相同账号边界与任务权限;人工审核不由 Agent 执行。
+客户端提交边界见 [社区贡献实现说明](../plugin-community-contribution.md)。
+
+2026-10-16:个人发布 prepare 返回包内 releaseNotes 和远端只读预检;submit 前重新校验所见快照内容。
+`ghost_cancel_plugin_review` 使用本人版本的精确 revision,区分停止上传与取消审核,沿现有 Full Access/Auto/Ask 授权。
+旧版本包仍可安装,成功提审后的同版本不再支持改包重提。