Files
cindy/apps/desktop/help-knowledge/plugins.md
Lizi 771c5cde3e feat(plugins): 安装与扩权更新前请用户确认插件权限 (#5088)
* feat(plugins): 安装与扩权更新前请用户确认插件权限

首次安装一律先列出插件声明的权限请用户确认;更新只在新版本权限变多时确认,
权限没变的更新照常静默完成;服务端 defaultInstall 下发的插件首装与更新都不确认。

- 插件页、拖入、双击 .cindy 由发起窗口弹确认框,只接受该窗口的回答
- Agent 调用 ghost_market_install / ghost_forge_install 不论任务权限档都在任务里
  弹宿主权限确认卡(复用 permission 交互),桌面、手机远控与 IM 渠道卡都能处理
- 确认在所有安装锁与 owner 租约之外求得,落位前在安装锁内用真实包复核;各装入
  路径的确认参数改为必填
- 后台自动更新遇到扩权放弃本轮、不退避、不重复下载,插件卡提示「需确认新权限」
- 同步插件安全规则、应用内帮助、FORGE_GUIDE 与 5 语言文案

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(plugins): 确认等待不占用安装锁与 owner 租约

市场/Agent/Forge 安装先在 mutation 与 owner 租约外求确认,落位前再取锁复核。
任务卡展示权限 detail/detailKey;defaultInstall 豁免只绑当前用户下发资格;
自定义市场暂停记录同时钉住包内容指纹。确认框行高改用无单位比例。

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(plugins): 确认后钉住 packing owner 与包摘要

Forge 在 packing 时捕获 owner,等安装锁结束后若账号已切换则拒绝取租约。
确认指纹带上确认前的 packageSha256,锁内复核时字节被替换就拒绝落位。

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(plugins): packing owner 传入装入入口并拒绝过期确认

Forge 在打包租约内捕获 owner 并交给装入入口;确认与等锁都不持租约,
落位前用这份身份取新租约。已确认的更新若等待期间受体被换成权限已覆盖
候选包的版本,锁内复核按过期拒绝,不再因无需确认而静默落位。

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(plugins): 自定义市场确认前释放来源租约并钉住受体 receipt

Git/本地市场在 cache-path 租约内只打包独立临时包,释放后再求确认;
落位仍复核来源。确认指纹纳入已装受体 approval token,同 version、
同权限投影但 receipt 不同的替换不能沿用过期确认。

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(plugins): 延后对账记下扩权暂停后立刻刷新目录徽章

Renderer 走 deferred snapshot 时,扩权暂停不改已装插件、没有 ghosts:changed。
记下新的 updateRequiresConsent hold 后推给插件页重投影,徽章不必等无关前台刷新。

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* test(desktop): Windows 分片给 Codex proxy 冷启动更长 hook 预算

满载 Windows shard 2/2 上文件级 beforeAll 导入 SUT 模块图超过 60s,
断言本身未失败。本文件不加载 maker-host/index,与插件确认改动无关。
Windows 给 120s,其它平台仍 60s。

Signed-off-by: MagicLizi <jiali@magiclizi.com>

---------

Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-09-26 04:45:14 +08:00

5.4 KiB

id, title, summary, tab
id title summary tab
plugins Plugins (extending what the agents can do) What plugins are, how to browse / install / enable / disable them, per-working-directory control, the permission model, and invoking one with a $command. ghosts

Plugins (internally "意识" / Ghost) extend what the agents can do — they add AI-callable tools, dockable UI panels, and "ask Cindy to make it" media generation. Each plugin is a self-contained .cindy capability pack that runs in its own isolated sandbox.

The Plugins page:

  • Open it from the Plugins entry in the left sidebar.
  • Browse by origin: all / built-in / team-shared / external. The team-shared (enterprise) group only shows if your account belongs to an organization.
  • Each plugin has a detail page — that's where you enable it, connect an account / enter an API key, and read what it can do.

Built-in plugins that ship with the app:

  • Cindy Art ($cindy-art) — generate and edit images and short videos.
  • Cindy Web Search ($cindy-web-search) — public web search (add your own Brave or Tavily key on its detail page).
  • Cindy Mermaid ($cindy-mermaid) — build / repair Mermaid diagrams.
  • Cindy GitHub ($cindy-github) / Cindy GitLab ($cindy-gitlab) — read / write issues, PRs / MRs, reviews, CI, releases.
  • Filo Google ($filo-google) — Gmail / Calendar / Drive / Sheets.

Enabling and disabling:

  • Enable / disable (globally) from the plugin's detail page. Disabling puts its tools and panel to sleep but keeps the plugin installed — its layout position is remembered and restored when you re-enable it.
  • Disable for one working directory only — a plugin can be turned off just for a specific project. In that project's sessions it behaves as if it isn't installed (its tools and $command are unavailable there); everywhere else it stays on.

Installing:

  • Install from the marketplace, or add a .cindy file manually (drag it in / pick it from disk).
  • Choosing Install, dragging a package, or picking one from disk first shows a confirmation dialog listing everything the plugin declares it can do (network domains, credentials, background tasks, skills, bundled code, panels…). Nothing is installed until you confirm; after that the plugin is enabled right away.
  • When you ask an agent to install a plugin (ghost_market_install / ghost_forge_install), the same confirmation appears as a card in that task — whatever the task's permission mode, including Full Access. It also works from the phone when you control this computer remotely. If you deny it, nothing is installed.
  • Plugins pushed by your organization (server default installs) are installed and updated silently without a confirmation.
  • The server selects the release appropriate for this Cindy version before marketplace delivery. Desktop does not apply a second minCindyVersion gate; custom marketplaces and local .cindy packages follow the same install policy.
  • Updates from stable marketplace sources are applied automatically when the plugin is idle — as long as the new version doesn't need more permissions. If it does, the automatic update pauses, the old version keeps working, and the plugin card shows "New permissions need confirmation"; clicking Update shows the added permissions for you to confirm. Failed attempts retry later; you can still click Update to retry immediately.

Using a plugin with $command:

  • Type its command at the start of a message — e.g. $cindy-art a poster for…. Only enabled plugins that declare that command match.
  • You don't have to use $command: the agents can also pick an enabled plugin's tools on their own when a task calls for it.

The permission / sandbox model (why plugins are safe):

  • A plugin's sandbox has no direct filesystem, network, or system access. The host mediates every operation and enforces its actual execution context.
  • Autonomous/background plugin behavior must stay within the capabilities and scopes declared directly in its manifest. Whether an in-flight plugin tool runs is decided by the existing Agent authorization flow; network and working-directory operations bind to that call, while bundled code and CLIs continue to use the existing Node worker. Plugin authors do not need a client change or a manifest Slot to pre-register a specific command, host, or path.
  • Autonomous network access is limited to a domain allowlist the plugin declares; the host proxies every request. Credentials never enter the sandbox — the host injects them only into declared requests whose target matches that declaration.
  • Because of this, a plugin can't see your files on its own. A file reaches a plugin only when you or the agent explicitly hand one over (an image attachment, or a directory the host passes through after an ownership check).

Configuring a plugin's account / API key:

  • Do it on the plugin's detail page. Plugins that use a key (web-search, GitHub/GitLab tokens) have a field there; the value goes straight into the host's encrypted store and can't be read back.
  • Plugins that use OAuth (for example Filo Google) show a Connect account button instead.

Notes:

  • Enabling or disabling a plugin takes effect on the next agent query, not retroactively in the current turn.
  • Skills (/ slash commands) and Plugins ($ commands) are two tabs of the same management surface — see the Skills topic for skills.