Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
feat(browser-extension): only the official Cindy Chrome provides My browser
Dash1254447222b0
diff --git a/apps/desktop/resources/system-skills/cindy-plugin-creator/references/plugin-browser-extension.md b/apps/desktop/resources/system-skills/cindy-plugin-creator/references/plugin-browser-extension.mdindex 8302e04340..bbae262953 100644--- a/apps/desktop/resources/system-skills/cindy-plugin-creator/references/plugin-browser-extension.md+++ b/apps/desktop/resources/system-skills/cindy-plugin-creator/references/plugin-browser-extension.md@@ -19,7 +19,8 @@下的二进制复制到本机私有目录并向各浏览器注册;二进制由你随包提供并签名。- `pageControl: true` 表示扩展实现**页面控制契约**(tabs / navigate / snapshot / extract / act),用户在设置 →「自动操作」选「我的浏览器」后,Agent 的 `browser` 工具会经它操作用户正在用的- 浏览器。只做翻译/字幕通道的扩展不要声明它。+ 浏览器。目前只有官方 Cindy Chrome 的声明生效,其它插件声明了也不会接管「我的浏览器」。+ 只做翻译/字幕通道的扩展不要声明它。运行期两条管子:diff --git a/apps/desktop/src/main/cindy-brain/__tests__/browserExtensionSlot.test.ts b/apps/desktop/src/main/cindy-brain/__tests__/browserExtensionSlot.test.tsindex d5cca697af..bc767bb89f 100644--- a/apps/desktop/src/main/cindy-brain/__tests__/browserExtensionSlot.test.ts+++ b/apps/desktop/src/main/cindy-brain/__tests__/browserExtensionSlot.test.ts@@ -266,6 +266,16 @@ describe('browserExtensionSlot · 桥接随花名册启停', () => {expect(natives).toHaveLength(0);expect(slot.getPageControl()).toBeNull();});++ // 2026-10-30: only the official Cindy Chrome takes over My browser; another plugin's declaration is ignored.+ it('其它插件声明 pageControl 也不会成为「我的浏览器」', async () => {+ const ghosts = [extGhost({ id: 'other-browser', nativeHost: false })];+ const { slot, bridges, settle } = await makeSlot({}, ghosts);+ slot.reconcile(ghosts);+ await settle();+ expect(bridges).toHaveLength(1);+ expect(slot.getPageControl()).toBeNull();+ });});describe('browserExtensionSlot · 管子上行', () => {diff --git a/apps/desktop/src/main/cindy-brain/browserExtensionSlot.ts b/apps/desktop/src/main/cindy-brain/browserExtensionSlot.tsindex ad5fd73206..e63577a4c5 100644--- a/apps/desktop/src/main/cindy-brain/browserExtensionSlot.ts+++ b/apps/desktop/src/main/cindy-brain/browserExtensionSlot.ts@@ -71,6 +71,15 @@ export function mayInstallNativeHost(ghost: InstalledGhost): boolean {);}+/** 「我的浏览器」只由官方 Cindy Chrome 提供;其它插件声明 pageControl 一律忽略(2026-10-30 决定)。 */+export function mayProvidePageControl(ghost: InstalledGhost): boolean {+ return (+ ghost.manifest.browserExtension?.pageControl === true &&+ ghost.namespace == null &&+ OFFICIAL_NATIVE_HOSTS.has(ghost.manifest.id)+ );+}+export interface BrowserExtensionSlotDeps {getGhost(id: string): InstalledGhost | null;/** 把转交事件投到插件逻辑页;false = 逻辑页不在线。 */@@ -424,7 +433,7 @@ export class GhostBrowserExtensionSlot {getPageControl(): UserBrowserPageControl | null {for (const [instanceId, entry] of this.entries) {- if (entry.ghost.manifest.browserExtension?.pageControl === true) {+ if (mayProvidePageControl(entry.ghost)) {return {bridge: entry.bridge,ghostId: entry.ghost.manifest.id,diff --git a/docs/dev-rules/plugin-security-and-authoring.md b/docs/dev-rules/plugin-security-and-authoring.mdindex c8d95f391b..5c4ec75ca2 100644--- a/docs/dev-rules/plugin-security-and-authoring.md+++ b/docs/dev-rules/plugin-security-and-authoring.md@@ -135,7 +135,8 @@ Library 请求同时绑定迁移代次和安装批准,根解析、排队及开Cindy 共用一份注册,宿主只为官方 Cindy Chrome(`my-browser`、`com.makecindy.browser`、声明了 Node 程序)安装,其它插件的声明被忽略(2026-10-29 决定,宿主代码点名具体插件的唯一例外);注册在没有任何运行中的 Cindy 仍在使用时撤销。可选 `pageControl: true` 表示扩展实现- 页面控制契约、可作为 Browser Use 的「我的浏览器」执行端。宿主代码里不得出现具体插件名+ 页面控制契约、可作为 Browser Use 的「我的浏览器」执行端;同样只有官方 Cindy Chrome 的声明生效,其它+ 插件声明了也不会接管「我的浏览器」(2026-10-30 决定)。宿主代码里不得出现具体插件名或专有协议:桥接按声明启停(`cindy-brain/browserExtensionSlot.ts`),扩展发起的请求经`browser-extension-relay` 事件转交给声明插件,插件经 `browser-extension-request` 投递作业、推送站点策略与配对身份。站点策略归插件所有,宿主只缓存到 owner 私有目录并在每个作业上