mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-07 05:18:08 +08:00
A user can share any provider that already allows remote use with
users of other Cindy accounts. The Agent keeps running on the sharer's
computer with the sharer's login; the invitee's files and commands stay
on the invitee's computer. Product rules: docs/product-rules/
provider-sharing.md; cross-repo contract: docs/provider-sharing-
contract.md (server side lands in cindy-server).
Sharer (Desktop main):
- one-time 5-minute links, approval with a 4-digit pairing code,
pause/resume/remove, notifications without the pairing code;
- invitees (provider-share peers) may only use maker:remote-agent:v1
and a provider list filtered to the shared provider; subscriptions
and every other channel are refused, late results after revocation
are rewritten to ACCESS_REVOKED;
- guest isolation for Claude Code, Codex and Pi: open payloads are
allowlisted (no hooks/env/apiKeyHelper, neutralized out-of-tree @
imports and ! commands), no host personal config, managed skills,
roster or contacts rules, guest-only resume, Codex in a separate
CODEX_HOME with read-only token access, Pi without host context;
- per-invitee, per-model usage in userData/remote-agent (no schema
change); pausing ends tasks at once, removal also deletes the
invitee's shadow workspace, attachments and Agent transcripts.
Invitee (Desktop):
- apply dialog from deep links or a pasted link, waiting state with
the pairing code, withdraw, leave;
- shared providers appear in the model list as
"{provider} · {device} · 来自 {owner} 的分享"; tasks bind with
agent_device_id = share:<shareId>;
- cross-region shares (server switch, default off) use identity cards
and an in-memory share credential on a second relay connection.
Mobile: reads the controlled computer's received shares for the model
list, localizes the new errors, and only says "open on a computer" for
share links (JS only, runtime fingerprint unchanged).
Protocol: Envelope.providerShare scope with capability
provider-share-v1 (append-only; old relays and clients keep same-account
routing), new same-account channel
maker:provider-share:received-catalogs.
Signed-off-by: Lizi <jiali@magiclizi.com>
供应商分享:交互设计稿
打开 交互设计稿 查看供应商分享的界面方案。页面自包含,所有账号、用量与链接都是模拟数据,品牌图标为占位符,不连接真实账号或设备。
产品规则正本见 docs/product-rules/provider-sharing.md。
六个场景:
- 设置入口:「允许被远程调用」一行开关左侧的「管理分享」图标;可切换「全部开启/供应商未开放/未开远程控制」三种能力状态,看不可点击时的提示。
- 管理页:待处理(待审批申请)、已分享的人、按模型的用量(近 7 天/本月/全部),关闭/恢复/删除均可点击演示。
- 生成链接:一次性链接、5 分钟倒计时与重新生成。
- 受邀者申请:确认申请(含身份展示说明)、等待同意(显示配对码)、已同意、链接已失效(已被使用或已过期)四种弹窗状态。
- 分享者审批:只显示申请人的昵称和头像,以及同一个配对码供核对;同意分享/拒绝申请。
- 受邀者模型列表:分享来的供应商与同账号远程供应商的标题对比,以及已暂停、分享者离线两种不可用状态。
支持浅色与深色切换。这是设计参考,不是运行中的客户端,也不代表 Electron 实机验收。