Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
docs(readme): 移除「内容合规审查(仅中国区发布版)」一节
Lizibd0f577dc2e6
diff --git a/README.en.md b/README.en.mdindex 195697b12a..6be0b50b77 100644--- a/README.en.md+++ b/README.en.md@@ -154,56 +154,6 @@ and are never uploaded automatically.`apps/desktop/src/renderer/index.tsx` (implementation lives in`apps/desktop/src/renderer/analytics/`).-## Content compliance review (China-region releases only)--To meet mainland-China content-safety compliance requirements for publicly-offered generative-AI services, the client ships a content-review interface-(implementation:-[`apps/desktop/src/main/content-moderation/`](apps/desktop/src/main/content-moderation/)).-This section discloses its behavior and boundaries to both users and developers.--**When it is NOT enabled (and how to keep it off):**--- **Global-region releases**: never enabled;-- **Dev / running from source: off by default** — it only activates in test- mode if you explicitly pass the `--content-moderation` launch flag (or set- `XDT_CONTENT_MODERATION=1` when unpackaged) *and* configure- `moderationSignTestApiBaseUrl`; neither exists in the repo defaults, so doing- nothing keeps it off;-- **Local mode (not signed in) or organization accounts**: not enabled;-- **Building from source yourself**: note that a **packaged** cn-region build- fetches the official cn endpoint manifest at startup just like official- releases, so review **does activate** once you sign in with a personal- account. To keep it off, run unpackaged (dev), package for the global- region, or point `cdnBaseUrl` at your own endpoint manifest that omits- `moderationSignApiBaseUrl`.--**When it is enabled (all conditions must hold; decision logic in-[`eligibility.ts`](apps/desktop/src/main/content-moderation/eligibility.ts)):**--1. An official **packaged China-region (cn) build** — the region is baked at- build time via `VITE_CINDY_AUTH_REGION` and cannot be switched at runtime;-2. Signed in with a **personal cloud account** (organization accounts do not go- through this interface);-3. The endpoint manifest fetched at startup from the region CDN carries a- non-empty `moderationSignApiBaseUrl` — packaged builds always resolve their- endpoint manifest from the official CDN at runtime (resolution logic in- `apps/desktop/src/main/clientEndpointsService.ts`), and the official- China-region manifest supplies this URL; the in-repo- [`config/endpoint.json`](config/endpoint.json) is only used by dev- (unpackaged) runs and leaves it empty.--**What is reviewed when enabled:** messages you send to the assistant (text and-image attachments), the assistant's streamed replies, your custom prompt, and-your nickname / avatar. That content is submitted through Cindy's moderation-signing service to a content-safety service for an allow/reject decision. A-rejected input is not sent and is returned to the composer; when a reply is-rejected the turn is aborted — text already shown is kept and a fixed notice is-appended. Internal messages from the-scheduler and multi-agent (Orca) coordination are not submitted. If the review-service is unreachable or times out, the client fails open — normal use is never-blocked by review-infrastructure failures.-## License / 许可证Except as otherwise noted, the source code in this repository is licensed underdiff --git a/README.md b/README.mdindex 17582956a2..6f87f191ea 100644--- a/README.md+++ b/README.md@@ -136,44 +136,6 @@ Cindy 服务发送在线心跳(仅账号 ID、平台与版本号)。崩溃- 桌面端可移除 `apps/desktop/src/renderer/index.tsx` 中的 `initTapdb()` 调用(实现见 `apps/desktop/src/renderer/analytics/`),即可完全剥离。-## 内容合规审查(仅中国区发布版)--为满足中国大陆对面向公众提供生成式 AI 服务的内容安全合规要求,客户端内置了-内容审查接口(实现见-[`apps/desktop/src/main/content-moderation/`](apps/desktop/src/main/content-moderation/))。-在此如实向用户与开发者披露它的行为和边界。--**什么情况下不启用(如何不启用):**--- **海外(global)发布版**:永不启用;-- **dev / 源码运行:默认不启用** —— 只有显式传入 `--content-moderation`- 启动参数(或未打包运行时设置环境变量 `XDT_CONTENT_MODERATION=1`),且端点- 配置了 `moderationSignTestApiBaseUrl`,才会进入测试环境审查;两者仓库内默认- 都没有,所以不做任何设置即为关闭;-- **本地模式(未登录)或组织账号登录**:不启用;-- **自行从源码构建**:注意——按 cn 区**打包**的产物启动时同样会拉取官方 cn- 端点清单,用个人账号登录后审查**会启用**,这一点与官方发布版一致。想保持- 关闭,请以 dev(未打包)方式运行、按 global 区打包,或在构建时把- `cdnBaseUrl` 指向你自己的端点清单且不下发 `moderationSignApiBaseUrl`。--**什么情况下会启用(必须同时满足,判定入口-[`eligibility.ts`](apps/desktop/src/main/content-moderation/eligibility.ts)):**--1. 官方**打包发布**的**中国区(cn)构建** —— 区域在构建期由- `VITE_CINDY_AUTH_REGION` 烘焙,运行期不可切换;-2. 以**个人云端账号**登录(组织账号不经由该接口);-3. 启动时从区域 CDN 拉取的端点清单中 `moderationSignApiBaseUrl` 非空 ——- 打包构建的端点清单一律在运行时从官方 CDN 下发(解析逻辑见- `apps/desktop/src/main/clientEndpointsService.ts`),官方中国区清单会下发该- 地址;仓库内 [`config/endpoint.json`](config/endpoint.json) 仅供 dev(未打包)- 运行使用,该字段为空。--**启用时审查什么:** 你发送给助手的消息(文本与图片附件)、助手的流式回复、-自定义提示词、昵称与头像。这些内容会经 Cindy 的审查签名服务提交给内容安全服务-判定放行或拦截:输入被拦截时消息不会发出并退回输入框;回复被拦截时本轮输出中止,-已展示的内容保留,并追加一条固定提示语。定时任务与多 agent 协同的内部消息不送审;-审查服务不可用或超时按放行处理(fail-open),不会阻断正常使用。-## 许可证 / License除非另有说明,本仓库的源代码依据 [Apache License 2.0](LICENSE) 授权。