mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-03 23:11:16 +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>