Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
chore: 注释里指代本产品的旧品牌名 XDMaker 统一为 Cindy
Lizic9ede4d9ecd0
diff --git a/apps/desktop/forge.config.ts b/apps/desktop/forge.config.tsindex 10b8d8e3ea..c65057a72b 100644--- a/apps/desktop/forge.config.ts+++ b/apps/desktop/forge.config.ts@@ -1165,8 +1165,8 @@ const config: ForgeConfig = {// 双 scheme 注册:cindy:// 主 + xdt-maker:// 永久兼容(存量分享链接不死)。{ name: 'Cindy Deep Link', schemes: [...allDeepLinkSchemes()] },],- // macOS 文件夹右键 "打开方式 → XDMaker" 入口:- // 声明 app 能接受 public.folder, Finder 自动把 XDMaker 出现在 "打开方式" 列表。+ // macOS 文件夹右键 "打开方式 → Cindy" 入口:+ // 声明 app 能接受 public.folder, Finder 自动把 Cindy 出现在 "打开方式" 列表。// LSHandlerRank=Alternate: 不抢 Finder 默认 handler, 仅作为可选项之一。// CFBundleTypeRole=Editor: 用户对该类型有 "打开+操作" 能力 (而非 Viewer 只看)。// 触发后 macOS 通过 app.on('open-file') 事件把目录路径推给 main 进程,diff --git a/apps/desktop/src/main/appSessionPolicy.ts b/apps/desktop/src/main/appSessionPolicy.tsindex 24f8c775ff..9b81e0977a 100644--- a/apps/desktop/src/main/appSessionPolicy.ts+++ b/apps/desktop/src/main/appSessionPolicy.ts@@ -24,7 +24,9 @@ export function isLocalDbOwnerCurrent(}/**- * Return the verified cloud owner eligible for XDMaker migration.+ * Return the verified cloud owner eligible for the legacy XDMaker userData+ * migration. ("XDMaker" here is the pre-rebrand product whose userData we+ * migrate FROM — not the current app; do not rename it to Cindy.)* Local and signed-out modes deterministically return null and therefore must* never probe the legacy userData directory.*/diff --git a/apps/desktop/src/main/bootstrap-electron.ts b/apps/desktop/src/main/bootstrap-electron.tsindex 092fc2a36d..77dde6ad5d 100644--- a/apps/desktop/src/main/bootstrap-electron.ts+++ b/apps/desktop/src/main/bootstrap-electron.ts@@ -1891,7 +1891,7 @@ app.on('open-url', (event, url) => {handleIncomingDeepLink(url, 'open-url');});-// macOS Finder "打开方式 → XDMaker" 入口:声明 CFBundleDocumentTypes 接受+// macOS Finder "打开方式 → Cindy" 入口:声明 CFBundleDocumentTypes 接受// public.folder 后,Finder 把目录路径通过 open-file 事件推过来 (冷启动 / 已运行// 都走此路径)。事件也可能被文件触发:.cindy 意识走双击装入,其余文件// 静默忽略。@@ -2009,7 +2009,7 @@ if (}}-// 冷启动 argv 扫描 — Windows 上首次点链接 / 右键 "通过 XDMaker 打开" 启动 app+// 冷启动 argv 扫描 — Windows 上首次点链接 / 右键 "通过 Cindy 打开" 启动 app// 时, URL 或 --open-folder 在 process.argv 末尾。macOS deep link 走 open-url// (已在上面 attach), 这里扫到也不会重复 dispatch; --open-folder 是 Windows-only// 入口 (mac 走 LSItemContentTypes / open-file 事件), 也不会在 mac argv 出现。@@ -2257,14 +2257,14 @@ const createWindow = () => {// 那之后 Renderer 的 visibilityState 就不再反映真实可见性,细节见模块头注释。installWindowHiddenBroadcast(mainWindow);- // App badge: 用户把任意 XDMaker 窗口点回前台(Dock 点击 / taskbar / alt-tab / 点窗口)即视为+ // App badge: 用户把任意 Cindy 窗口点回前台(Dock 点击 / taskbar / alt-tab / 点窗口)即视为// 「已查看」,直接清空整个 dock 红点。badge 是 app 级状态,不该依赖当前停在哪个// 路由 / 开没开会话 —— 之前清除逻辑寄生在 cc-agent sidebar 且只清 activeSessionId,// 离开会话页(设置 / skillhub)或红点属于后台会话时就清不掉。clearAllSessionAttention// 只清 app 级 badge,不向 Agent Island 转发逐 session 已读;in-app 的会话小圆点仍由// renderer 自行管理(点进会话才消),随后通过 clearSessionAttention 显式同步。// Agent Island smart suppression 同样按 app 级焦点判断:主窗 blur 到「在新窗口打开」- // 的会话副窗时,用户仍在 XDMaker 内,不能把 appFocused 置 false。+ // 的会话副窗时,用户仍在 Cindy 内,不能把 appFocused 置 false。// Find-in-page: forward Chromium's match results back to the renderer overlay.// The renderer drives findInPage / stopFindInPage via IPC (see registerIpcHandlers).diff --git a/apps/desktop/src/main/filePathPolicy.ts b/apps/desktop/src/main/filePathPolicy.tsindex c3aa26de24..fa993d19a5 100644--- a/apps/desktop/src/main/filePathPolicy.ts+++ b/apps/desktop/src/main/filePathPolicy.ts@@ -373,7 +373,7 @@ export function buildSensitiveMediaBlocklist(pushHome('.gnome2', 'keyrings'); // legacy gnome-keyring location// Chrome/Chromium user-data root varies by channel AND by config prefix:// Chromium honors $CHROME_CONFIG_HOME as an alternate prefix (falling back- // to $XDG_CONFIG_HOME, then ~/.config). Cover every base XDMaker can+ // to $XDG_CONFIG_HOME, then ~/.config). Cover every base Cindy can// observe so a profile under any of them is denied.const chromeBases = new Set<string>();if (posixEnv.CHROME_CONFIG_HOME) chromeBases.add(posixEnv.CHROME_CONFIG_HOME);diff --git a/apps/desktop/src/main/learn-host/profile.ts b/apps/desktop/src/main/learn-host/profile.tsindex 60ae34acf0..7b2f46fb99 100644--- a/apps/desktop/src/main/learn-host/profile.ts+++ b/apps/desktop/src/main/learn-host/profile.ts@@ -5,7 +5,7 @@* 偏好什么、在做什么",让蒸馏产物真正为该用户改写,而不是程序化裁剪。** 来源边界(防跨项目张冠李戴 —— 实测踩过:把别的项目的 build 禁令写进- * XDMaker skill):+ * Cindy skill):* - user_* 分片:person 级事实,取自**所有** workdir 的 memory 目录* - feedback_* / project_* 分片:项目域规则,只取**触发会话所在 workdir*** 的 memory 目录,且格式化时标注来源,prompt 里禁止跨项目移植diff --git a/apps/desktop/src/main/learn-host/promptBuilder.ts b/apps/desktop/src/main/learn-host/promptBuilder.tsindex 114d0d0c32..c6bf6f38ab 100644--- a/apps/desktop/src/main/learn-host/promptBuilder.ts+++ b/apps/desktop/src/main/learn-host/promptBuilder.ts@@ -13,7 +13,7 @@import { BRAND_NAME } from '@cindy/maker-shared/branding';/**- * XDMaker 的 skill 编写规范 —— 蒸馏产物必须符合本地加载器(Claude Code /+ * Cindy 的 skill 编写规范 —— 蒸馏产物必须符合本地加载器(Claude Code /* Codex customization scanner)与 skill hub 校验(frontmatterValidation)的要求。* 常量单独导出供单测断言关键约束存在。*/diff --git a/apps/desktop/src/main/maker-host/auth-adapters.ts b/apps/desktop/src/main/maker-host/auth-adapters.tsindex bcbb01946e..d2bc05ebc7 100644--- a/apps/desktop/src/main/maker-host/auth-adapters.ts+++ b/apps/desktop/src/main/maker-host/auth-adapters.ts@@ -204,7 +204,7 @@ export function readCodexOneShotCreds(): { accessToken: string; accountId: strin}}-/** 删除 XDMaker 自管且无法按账号归属的 Codex 模型 cache。 */+/** 删除 Cindy 自管且无法按账号归属的 Codex 模型 cache。 */async function removeDesktopCodexModelsCache(codexHome: string): Promise<boolean> {const cachePath = path.join(codexHome, 'models_cache.json');try {diff --git a/apps/desktop/src/main/maker-host/claude-credentials-store.ts b/apps/desktop/src/main/maker-host/claude-credentials-store.tsindex 858fe47898..ca2486abd4 100644--- a/apps/desktop/src/main/maker-host/claude-credentials-store.ts+++ b/apps/desktop/src/main/maker-host/claude-credentials-store.ts@@ -2,7 +2,7 @@* claude-credentials-store —— 读/写系统 Claude Code 的 OAuth 凭证(claudeAiOauth)。** 设计目标:'oauth' 模式下与**本地已登录的 Claude Code 自动兼容**(像 Codex reconcile- * ~/.codex/auth.json 那样),并让 XDMaker 的浏览器授权结果落到同一处,cc 子进程原生读取。+ * ~/.codex/auth.json 那样),并让 Cindy 的浏览器授权结果落到同一处,cc 子进程原生读取。** 存储位置(与 cc-code utils/secureStorage 完全一致,默认 config dir = ~/.claude):* - macOS → 系统 Keychain 的 generic-password,service = "Claude Code-credentials"diff --git a/apps/desktop/src/main/maker-host/claude-oauth-refresh.ts b/apps/desktop/src/main/maker-host/claude-oauth-refresh.tsindex ee99bb291b..6661306f4a 100644--- a/apps/desktop/src/main/maker-host/claude-oauth-refresh.ts+++ b/apps/desktop/src/main/maker-host/claude-oauth-refresh.ts@@ -2,7 +2,7 @@* claude-oauth-refresh —— Claude.ai 订阅 OAuth access token 的 host 侧到期刷新。** 为什么 host 要管刷新(cc >= 2.1.19x 语义变化):- * XDMaker 给 cc 子进程注入 CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1(防 workdir+ * Cindy 给 cc 子进程注入 CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1(防 workdir* settings.json 覆盖 app 注入的 provider 路由,见 env-builder.ts)。cc 2.1.198 起* 该 flag 的语义从「过滤 settings 来源的 provider env」扩大为「凭证也由 host 全权* 提供」——设了 flag 后 cc **完全不再读**系统凭证库(keychain / .credentials.json)@@ -17,7 +17,7 @@** 跨进程互斥(阻塞级约束):* refresh token 是轮换制;并发刷新者不止本进程——用户终端里的 standalone `claude`- * (没被注 flag,自己会刷)、dev + release 双开的另一个 XDMaker 实例。基于旧值刷新+ * (没被注 flag,自己会刷)、dev + release 双开的另一个 Cindy 实例。基于旧值刷新* 会触发服务端 refresh-token 复用检测把两边同时登出,陈旧整块回写还会静默回滚* 凭证 blob 里 cc 的 mcpOAuth 等字段。cc 自己的刷新走跨进程锁协议* (反编译 2.1.198:proper-lockfile,lockfilePath = <configDir>/.oauth_refresh.lock,@@ -113,7 +113,7 @@ export interface SubscriptionProfile {/*** best-effort 拉订阅身份 profile(subscriptionType / rateLimitTier)。*- * 为什么需要:经 XDMaker 浏览器 OAuth 登录写入的凭证 subscriptionType 为 null——+ * 为什么需要:经 Cindy 浏览器 OAuth 登录写入的凭证 subscriptionType 为 null——* 旧链路靠「cc 子进程读凭证后自行 refresh 时拉 profile 回填」,而本修复后 cc 不再* 读凭证库,回填责任随刷新一起转移到 host。协议对齐反编译 cc n0e/pCn:* GET /api/oauth/profile + Bearer,organization.organization_type 映射档位。@@ -216,7 +216,7 @@ export function createClaudeOAuthRefresher(deps: ClaudeOAuthRefresherDeps): {} catch (e) {const code = (e as NodeJS.ErrnoException).code;if (code === 'ENOENT') {- // 父目录(config dir)不存在:macOS 上仅经 XDMaker 浏览器 OAuth 登录的用户凭证+ // 父目录(config dir)不存在:macOS 上仅经 Cindy 浏览器 OAuth 登录的用户凭证// 在 Keychain,~/.claude 可能从未被创建 —— 锁拿不到会导致刷新永远被跳过,// 过期后订阅会话全断。先建父目录再重试一次(recursive 幂等)。try {@@ -424,7 +424,7 @@ export function createClaudeOAuthRefresher(deps: ClaudeOAuthRefresherDeps): {}/**- * 订阅身份回填(锁外后台,best-effort):经 XDMaker 浏览器 OAuth 登录的凭证+ * 订阅身份回填(锁外后台,best-effort):经 Cindy 浏览器 OAuth 登录的凭证* subscriptionType/rateLimitTier 为 null(旧链路由 cc 刷新时补全,本修复后 cc 不读* 凭证库)。刷新主流程落盘后异步触发:锁外拉 profile(纯网络,不占临界区)→ 重新拿锁* → 锁内重读最新凭证 → 字段仍缺才 merge 写回(只补身份字段、不动 token —— 期间他人diff --git a/apps/desktop/src/main/maker-host/codex-auth-invalidation.ts b/apps/desktop/src/main/maker-host/codex-auth-invalidation.tsindex d2fc243b79..57cf426e3f 100644--- a/apps/desktop/src/main/maker-host/codex-auth-invalidation.ts+++ b/apps/desktop/src/main/maker-host/codex-auth-invalidation.ts@@ -11,7 +11,7 @@* 用户显式断开产生的 durable marker 是例外,系统 CLI 后续任何变化都不能自动接回。** 背景 (2026-07-03 线上实踩):- * token 失效 → 用户在 XDMaker 里重新授权成功 → 旧实现无条件清掉标记和 suppress →+ * token 失效 → 用户在 Cindy 里重新授权成功 → 旧实现无条件清掉标记和 suppress →* 下一次 getState/getAuthEnv 的 reconcile 把 ~/.codex 里未变的坏 token 硬链回来,* 覆盖刚拿到的新 token → 服务端再次 invalidate → 授权界面「成功 → 几秒后失败」死循环。*/@@ -20,7 +20,7 @@ import path from 'node:path';import { createHash } from 'node:crypto';/**- * 用户主动断开 XDMaker 内的 Codex OAuth;这是 durable sentinel:系统 CLI 后续刷新 / 重登+ * 用户主动断开 Cindy 内的 Codex OAuth;这是 durable sentinel:系统 CLI 后续刷新 / 重登* 也不能自动接回,只抑制凭证回灌,不作为鉴权错误展示。*/export const CODEX_USER_DISCONNECT_REASON = 'user_disconnected';@@ -28,7 +28,7 @@ export const CODEX_USER_DISCONNECT_REASON = 'user_disconnected';/** 失效标记文件内容: 失效原因 + 当时 ~/.codex/auth.json 的文件指纹。 */export type InvalidatedSystemCodexAuthMarker = {reason: string;- /** 用户曾在 XDMaker 显式断开;后续 transient token invalidation 不得解除这道永久抑制。 */+ /** 用户曾在 Cindy 显式断开;后续 transient token invalidation 不得解除这道永久抑制。 */durableDisconnect?: boolean;dev: number;ino: number;@@ -294,7 +294,7 @@ export function clearInvalidatedSystemCodexAuthMarker(codexHome: string): void {* 等系统文件指纹变化后, reconcile 主流程的指纹比对会自动解除 suppress。* - 无标记 / 指纹已不一致 (系统文件已变或已删) → 清标记, 返回 keepSuppressed=false,* 调用方可正常做登录后 reconcile。- * - durable disconnect marker → 永远 keepSuppressed=true;显式 XDMaker 登录使用隔离 local auth。+ * - durable disconnect marker → 永远 keepSuppressed=true;显式 Cindy 登录使用隔离 local auth。*/export function settleInvalidationMarkerAfterLogin(codexHome: string,diff --git a/apps/desktop/src/main/maker-host/codex-model-discovery.ts b/apps/desktop/src/main/maker-host/codex-model-discovery.tsindex 1d4c51f377..e9deec1cb3 100644--- a/apps/desktop/src/main/maker-host/codex-model-discovery.ts+++ b/apps/desktop/src/main/maker-host/codex-model-discovery.ts@@ -9,7 +9,7 @@** 只读、纯派生。读取失败返回 null(保留上次快照 / 静态兜底),合法空 cache 返回 []。* mapper 与 fs 读分离:`mapCodexModelsToCatalog` 是纯函数(单测覆盖),`readCodexDiscoveredModels`- * 只负责验证 XDMaker OAuth 边界并读自管 cache。+ * 只负责验证 Cindy OAuth 边界并读自管 cache。*/import { app } from 'electron';@@ -195,12 +195,12 @@ export function mapCodexAppServerModelsToCatalog(return out;}-/** XDMaker 自管的 Codex home;系统 ~/.codex 属于独立登录边界,不能混读其账号缓存。 */+/** Cindy 自管的 Codex home;系统 ~/.codex 属于独立登录边界,不能混读其账号缓存。 */function desktopCodexHome(): string {return path.join(app.getPath('userData'), 'codex-home');}-/** 仅在 XDMaker 当前确有未被 disconnect marker 抑制的 OAuth token 时读取模型 cache。 */+/** 仅在 Cindy 当前确有未被 disconnect marker 抑制的 OAuth token 时读取模型 cache。 */async function hasActiveDesktopCodexOAuth(codexHome: string): Promise<boolean> {const authPath = path.join(codexHome, 'auth.json');if (shouldSuppressLocalCodexAuth(codexHome, authPath)) return false;@@ -217,7 +217,7 @@ async function hasActiveDesktopCodexOAuth(codexHome: string): Promise<boolean> {/*** 读 codex models_cache.json 并派生规范化快照。失败(文件缺失 / 非 JSON / 非 cache 结构)* 返回 null;合法 cache 即使 models 为空也返回 [],让调用方区分「上游空」与「没读到」。- * cache 本身没有账号 ID,不能回退读取系统 ~/.codex 的 cache;否则 XDMaker 登出或切换+ * cache 本身没有账号 ID,不能回退读取系统 ~/.codex 的 cache;否则 Cindy 登出或切换* ChatGPT 账号后会把系统/上一账号的有效旧 cache 重新发布为当前模型。* 异步读 —— 调用点在 catalog 加载的 promise 链里,不在 splash 关键路径塞同步 IO。*/diff --git a/apps/desktop/src/main/maker-host/shared-global-skills.ts b/apps/desktop/src/main/maker-host/shared-global-skills.tsindex 9046761c7f..87838143e4 100644--- a/apps/desktop/src/main/maker-host/shared-global-skills.ts+++ b/apps/desktop/src/main/maker-host/shared-global-skills.ts@@ -308,7 +308,7 @@ async function linkEntriesIntoRoot(* Makes global skills usable from both Claude Code and Codex without moving user data.** Rules:- * - ~/.agents/skills is the shared index that XDMaker Codex already scans.+ * - ~/.agents/skills is the shared index that Cindy Codex already scans.* - Existing ~/.claude/skills entries are linked into ~/.agents/skills so Codex can see them.* - ~/.agents/skills and ~/.codex/skills entries are linked into ~/.claude/skills so Claude can see them.* - Existing non-symlink paths are never overwritten.diff --git a/apps/desktop/src/main/mcp-integrations/android.ts b/apps/desktop/src/main/mcp-integrations/android.tsindex 7dbda8d5b0..5a5d87ca2c 100644--- a/apps/desktop/src/main/mcp-integrations/android.ts+++ b/apps/desktop/src/main/mcp-integrations/android.ts@@ -147,7 +147,7 @@ export function setServerPreExistedForTest(value: boolean | null): void {* 已有 server),fire-and-forget 一个 `adb kill-server` 收掉它。detached + unref,* 绝不阻塞退出。*- * 如果用户在 XDMaker 之前已有 server 在跑(Android Studio / SDK 等),我们的+ * 如果用户在 Cindy 之前已有 server 在跑(Android Studio / SDK 等),我们的* bundled adb 只是复用了它,此时 kill-server 会杀掉用户的 server、中断其 logcat* / 设备连接——这种情况不触发 kill。判断依据是首次使用前对 5037 端口的探活结果,* 记录在 serverPreExistedBeforeUs 中(一次检测,整个会话生效)。diff --git a/apps/desktop/src/main/scheduler-host/hook-script-generator.ts b/apps/desktop/src/main/scheduler-host/hook-script-generator.tsindex b8ca115b2a..2245b47f7c 100644--- a/apps/desktop/src/main/scheduler-host/hook-script-generator.ts+++ b/apps/desktop/src/main/scheduler-host/hook-script-generator.ts@@ -5,7 +5,7 @@** 设计要点(规则 9:确定性逻辑全在代码里,LLM 只产脚本正文):* - 统一生成 **Node ESM (.mjs)** 脚本:跨平台唯一可行的公共载体- * (bash Windows 没有、cmd/PowerShell macOS 没有;XDMaker 用户机器上+ * (bash Windows 没有、cmd/PowerShell macOS 没有;Cindy 用户机器上* node 由开发环境保证,生成的命令显式写 `node`,与 hook 执行器的* Windows shebang 限制天然兼容)。* - 代码负责:prompt 组装、代码块提取、文件名/路径解析、落盘、命令拼装;diff --git a/apps/desktop/src/main/scheduler-host/pre-run-hook.ts b/apps/desktop/src/main/scheduler-host/pre-run-hook.tsindex 25318d7451..a87241da53 100644--- a/apps/desktop/src/main/scheduler-host/pre-run-hook.ts+++ b/apps/desktop/src/main/scheduler-host/pre-run-hook.ts@@ -58,7 +58,7 @@ export interface PreRunHookInput {}/**- * `xdt-node` 命令前缀:用 XDMaker 自带的 Electron 运行时以 Node 模式执行脚本+ * `xdt-node` 命令前缀:用 Cindy 自带的 Electron 运行时以 Node 模式执行脚本* (ELECTRON_RUN_AS_NODE)。给"机器上没有系统 node"的用户兜底——AI 生成器探测* 不到系统 node 时改发 `xdt-node <script>`,执行时在这里解析成当前 app 的* process.execPath,**不把 exe 绝对路径写进 DB**(app 升级/换装路径变了命令diff --git a/apps/desktop/src/main/security/csp.ts b/apps/desktop/src/main/security/csp.tsindex 2c90088fbd..ad30128e34 100644--- a/apps/desktop/src/main/security/csp.ts+++ b/apps/desktop/src/main/security/csp.ts@@ -1,5 +1,5 @@/**- * csp.ts — Content-Security-Policy for the XDMaker desktop app window(s).+ * csp.ts — Content-Security-Policy for the Cindy desktop app window(s).* ---------------------------------------------------------------------------* WHY: the main window renders untrusted content (agent output, markdown,* file previews, web-search results) while `preload` exposes highly privilegeddiff --git a/apps/desktop/src/main/selection-context-menu.ts b/apps/desktop/src/main/selection-context-menu.tsindex fb63f9e9b1..7366c60999 100644--- a/apps/desktop/src/main/selection-context-menu.ts+++ b/apps/desktop/src/main/selection-context-menu.ts@@ -2,7 +2,7 @@* App-owned BrowserWindow text-selection context menu.** Electron does not expose Chromium's full native menu as a safe reusable- * default, so we intentionally build the small platform set XDMaker needs:+ * default, so we intentionally build the small platform set Cindy needs:* macOS gets Copy / Look Up; Windows gets Copy / web search. Browser-only* actions such as reload, view source, and inspect are never included.*/@@ -130,7 +130,7 @@ export function buildSelectionContextMenuTemplate(];}-/** Keep custom context-menu labels aligned with XDMaker's effective UI locale. */+/** Keep custom context-menu labels aligned with Cindy's effective UI locale. */export function setSelectionContextMenuLocale(locale: SupportedLocale): void {currentLocale = locale;}diff --git a/apps/desktop/src/main/skillhub/registerIpc.ts b/apps/desktop/src/main/skillhub/registerIpc.tsindex 265ab40a19..5d7a60dd94 100644--- a/apps/desktop/src/main/skillhub/registerIpc.ts+++ b/apps/desktop/src/main/skillhub/registerIpc.ts@@ -429,7 +429,7 @@ export function registerSkillhubIpc(options: RegisterSkillhubIpcOptions): void {);// 读取单个 skill 的本地真实使用表现。只返回派生统计;原始 transcript 内容仍留在- // Claude/Codex 自己的 JSONL 文件里,不复制进 XDMaker DB。+ // Claude/Codex 自己的 JSONL 文件里,不复制进 Cindy DB。ipcMain.handle('skillhub:get-usage-summary',async (_event, { name, mdPath }: { name: string; mdPath?: string }) => {diff --git a/apps/desktop/src/preload/preload.ts b/apps/desktop/src/preload/preload.tsindex 5f23486160..725ba95f81 100644--- a/apps/desktop/src/preload/preload.ts+++ b/apps/desktop/src/preload/preload.ts@@ -2397,7 +2397,7 @@ contextBridge.exposeInMainWorld('electronAPI', {// payload 形态在 vite-env.d.ts 上声明:// - { type: 'session', id, messageClientId? } : 跳路由到指定 session(可带消息锚点)// - { type: 'project', workingDir } : 聚焦已有 project 节点- // - { type: 'new-session', workingDir }: 新建对话且预填 workingDir (右键 "通过 XDMaker 打开")+ // - { type: 'new-session', workingDir }: 新建对话且预填 workingDir (右键 "通过 Cindy 打开")// - { type: 'share-import', filePath } : 打开 .cshare/.xdtshare 会话导入向导onDeepLinkNavigate: (callback: (diff --git a/apps/desktop/src/renderer/components/layout/GlobalDropImportListener.tsx b/apps/desktop/src/renderer/components/layout/GlobalDropImportListener.tsxindex 4fa78fb397..dd0898ab73 100644--- a/apps/desktop/src/renderer/components/layout/GlobalDropImportListener.tsx+++ b/apps/desktop/src/renderer/components/layout/GlobalDropImportListener.tsx@@ -18,7 +18,7 @@** 冒泡层(兜底,仅"落在空白处"且 capture 未接管的 drop 会到达——内层 drop 区* stopPropagation、capture 接管过的 defaultPrevented 直接跳过):- * - directory → 以该目录为 workingDir 进入新建会话(与「通过 XDMaker 打开」+ * - directory → 以该目录为 workingDir 进入新建会话(与「通过 Cindy 打开」* 深链同链路:patchDraft 预填 + 清 extraDirs,navigate /cc-agent/new)* - other → 静默忽略,不 toast 打扰*diff --git a/apps/desktop/src/renderer/components/layout/MainLayout.tsx b/apps/desktop/src/renderer/components/layout/MainLayout.tsxindex 802b9f62db..e34884f8c4 100644--- a/apps/desktop/src/renderer/components/layout/MainLayout.tsx+++ b/apps/desktop/src/renderer/components/layout/MainLayout.tsx@@ -534,7 +534,7 @@ export function MainLayout() {// unmounted 的,信号会沉淀直到下次 mount。所以这两种情况强制 navigate// 回 /cc-agent index, 触发 CCAgentIndexRedirect → ExpandedView mount// → effect 跑 → expand + scroll。- // new-session: 右键 "通过 XDMaker 打开" 入口。把 workingDir 写进 newMakerDraft+ // new-session: 右键 "通过 Cindy 打开" 入口。把 workingDir 写进 newMakerDraft// (并清空 extraDirs,旧目录的附加只读引用对新目录无意义),然后// navigate('/cc-agent/new')。NewMakerDraftRoute 订阅 store 自动反映。const handleDeepLinkPayload = useCallback(@@ -583,7 +583,7 @@ export function MainLayout() {// 缓存在 main 端的 deep link / --open-folder payload, MainLayout 第一次 mount// 时拉一次消费。已运行场景始终返回 null,no-op。//- // 关键场景:未登录用户右键 "通过 XDMaker 打开" → 冷启动 → LoginPage 接管 →+ // 关键场景:未登录用户右键 "通过 Cindy 打开" → 冷启动 → LoginPage 接管 →// 用户走完 Feishu OAuth → MainLayout (在 ProtectedRoute 之内) 第一次 mount →// 此 effect 跑一次 take + dispatch → 用户回到 /cc-agent/new 且 workingDir// 已预填,不会因为登录流程跳过而丢失意图。diff --git a/apps/desktop/src/renderer/features/cc-agent/hooks/helpers/sidebarFilterCore.ts b/apps/desktop/src/renderer/features/cc-agent/hooks/helpers/sidebarFilterCore.tsindex 9b5189c557..eb2afa8436 100644--- a/apps/desktop/src/renderer/features/cc-agent/hooks/helpers/sidebarFilterCore.ts+++ b/apps/desktop/src/renderer/features/cc-agent/hooks/helpers/sidebarFilterCore.ts@@ -198,7 +198,7 @@ const GROUP_BY_VALUES: ReadonlySet<string> = new Set<FilterGroupBy>(['project',/*** 读 localStorage 中的 groupBy;任何异常 / 非法值 / 未设置 → 'project'。- * 「按工作目录分组」是 XDMaker 作为工作台的设计基线默认值;用户显式切到+ * 「按工作目录分组」是 Cindy 作为工作台的设计基线默认值;用户显式切到* 'date' 时由 persistGroupBy 写入 storage,下次启动读回,保留其选择。*/export function loadGroupBy(): FilterGroupBy {diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionTooltip.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionTooltip.tsxindex 1845822853..dfd261f70a 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionTooltip.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionTooltip.tsx@@ -5,7 +5,7 @@* 1. **PR 引用**(session-git-pr-context):有 PR 引用时显示 owner/repo#N +* 状态 + 未解决评论 + 标题;状态按需加载(首次悬停打开触发* fetchStatusesForSession,共享缓存 + main 60s TTL,规则 7 不做 loading 态)。- * 2. **项目来源**(sourceLabel):无 PR 时展示"XDMaker""对话"等来源标签,+ * 2. **项目来源**(sourceLabel):无 PR 时展示"Cindy""对话"等来源标签,* 与工作空间左下角同口径,orca-lead / 罕见来源走 workingDir basename 回退* (规则见 lib/sessionSourceLabel.ts)。* 3. 两者都无 → 直接透传 children,保持"密集列表少挂 Tip"的既有取舍。diff --git a/apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/FileBrowserBody.tsx b/apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/FileBrowserBody.tsxindex 68c3aae761..1572ee055a 100644--- a/apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/FileBrowserBody.tsx+++ b/apps/desktop/src/renderer/features/right-sidebar/plugins/file-browser/FileBrowserBody.tsx@@ -708,8 +708,8 @@ function TreeHeader({onRefresh: () => void;}) {const { t } = useTranslation();- // workdir basename:POSIX 用最后一段(/Users/sam/Documents/XDMaker → XDMaker);- // Windows 'C:\\Users\\sam\\XDMaker' 也按 / 和 \ 切。空值兜底空串。+ // workdir basename:POSIX 用最后一段(/Users/sam/Documents/Cindy → Cindy);+ // Windows 'C:\\Users\\sam\\Cindy' 也按 / 和 \ 切。空值兜底空串。const displayName = workdir.split(/[/\\]/).filter(Boolean).pop() ?? '';return (diff --git a/apps/desktop/src/renderer/features/skillhub/SkillhubDetailView.tsx b/apps/desktop/src/renderer/features/skillhub/SkillhubDetailView.tsxindex aec726426e..586fd1e5d1 100644--- a/apps/desktop/src/renderer/features/skillhub/SkillhubDetailView.tsx+++ b/apps/desktop/src/renderer/features/skillhub/SkillhubDetailView.tsx@@ -1389,7 +1389,7 @@ export function SkillhubDetailView() {name: entry.name,installPath: entry.absolutePath,version: latestVersion,- // 主动"更新到 vN":完整替换,但保留 XDMaker 备份。即使 dirty 判定漏掉,+ // 主动"更新到 vN":完整替换,但保留 Cindy 备份。即使 dirty 判定漏掉,// 旧目录也不会在更新成功后被直接删除;替换失败会尽力恢复旧目录。force: true,skipBackup: false,diff --git a/apps/desktop/src/shared/providerSecrets.ts b/apps/desktop/src/shared/providerSecrets.tsindex 9355783855..21d6478f00 100644--- a/apps/desktop/src/shared/providerSecrets.ts+++ b/apps/desktop/src/shared/providerSecrets.ts@@ -3,7 +3,7 @@* ---------------------------------------------------------------------------* 供应商 API key(密钥)在本机的存储约定 —— 单一事实来源(SSoT)。*- * 设计背景:XDMaker 的供应商密钥一律 **本地 only**,只存 Electron safeStorage+ * 设计背景:Cindy 的供应商密钥一律 **本地 only**,只存 Electron safeStorage* (委托 OS keychain / DPAPI 加密),从不同步 / 上传到服务器。历史上各处用裸字符串* ("api_key" / "mivo_api_key")指代存储键名,随供应商增多容易散落、写错。本模块* 把「providerId → safeStorage 存储键名」收敛成唯一映射:diff --git a/packages/browser-control-runtime/src/shim/channel-actions.ts b/packages/browser-control-runtime/src/shim/channel-actions.tsindex 126d021525..4917aeaabf 100644--- a/packages/browser-control-runtime/src/shim/channel-actions.ts+++ b/packages/browser-control-runtime/src/shim/channel-actions.ts@@ -2,7 +2,7 @@* Shim: openclaw/plugin-sdk/channel-actions.** These build agent-tool JSON Schema / result envelopes for the UPSTREAM- * browser tool (browser-tool.schema.ts), which we do NOT vendor — XDMaker+ * browser tool (browser-tool.schema.ts), which we do NOT vendor — Cindy* exposes its own MCP tool in @cindy/mcps. They are only re-exported by the* dropped `sdk-setup-tools` bridge and never called on the dispatcher path.* `stringEnum`/`optionalStringEnum` keep a typebox-compatible shape in case adiff --git a/packages/browser-control-runtime/src/shim/logging-core.ts b/packages/browser-control-runtime/src/shim/logging-core.tsindex f1648ed0f8..3a4e809dd3 100644--- a/packages/browser-control-runtime/src/shim/logging-core.ts+++ b/packages/browser-control-runtime/src/shim/logging-core.ts@@ -5,7 +5,7 @@* 54 config types). The browser core only calls a small surface* (`createSubsystemLogger(name).child(sub).{trace,debug,info,warn,error}`), so* we provide a minimal console-backed logger with the same shape. The host can- * replace the sink via `setBrowserRuntimeLogSink` so logs flow into XDMaker's+ * replace the sink via `setBrowserRuntimeLogSink` so logs flow into Cindy's* unified logger instead of console.** redactSensitiveText / redactToolPayloadText reuse the conservative localdiff --git a/packages/browser-control-runtime/src/shim/media-runtime.ts b/packages/browser-control-runtime/src/shim/media-runtime.tsindex e8f008f6d2..af5e74cd05 100644--- a/packages/browser-control-runtime/src/shim/media-runtime.ts+++ b/packages/browser-control-runtime/src/shim/media-runtime.ts@@ -3,7 +3,7 @@** Upstream uses `rastermill` (an OpenClaw image lib) + an OpenClaw media store.* We re-implement the small surface the browser core actually calls using- * `sharp` (already a first-class dep in XDMaker) for image ops, and plain fs+ * `sharp` (already a first-class dep in Cindy) for image ops, and plain fs* for media persistence. Image resize/metadata are standard, well-defined ops* (not security-sensitive). The media dir is the neutral scratch CONFIG_DIR.*/diff --git a/packages/browser-control-runtime/src/shim/media-understanding-runtime.ts b/packages/browser-control-runtime/src/shim/media-understanding-runtime.tsindex 471b6abf39..10311e94f4 100644--- a/packages/browser-control-runtime/src/shim/media-understanding-runtime.ts+++ b/packages/browser-control-runtime/src/shim/media-understanding-runtime.ts@@ -3,7 +3,7 @@** `describeImageFile` (LLM screenshot description for text-only models) is only* referenced by the dropped `sdk-setup-tools` bridge re-export and is never- * called on the in-process dispatcher path. XDMaker performs its own image+ * called on the in-process dispatcher path. Cindy performs its own image* understanding upstream of this runtime, so this is a host-injectable hook* that defaults to a clear "not configured" result.*/@@ -11,7 +11,7 @@ export type DescribeImageFn = (filePath: string, prompt?: string) => Promise<strlet describeImpl: DescribeImageFn | null = null;-/** Host hook: wire XDMaker image-understanding here if screenshot description is wanted. */+/** Host hook: wire Cindy image-understanding here if screenshot description is wanted. */export function setDescribeImageFile(fn: DescribeImageFn | null): void {describeImpl = fn;}diff --git a/packages/browser-control-runtime/src/shim/plugin-config-runtime.ts b/packages/browser-control-runtime/src/shim/plugin-config-runtime.tsindex 5df9e130ef..163ce0c93a 100644--- a/packages/browser-control-runtime/src/shim/plugin-config-runtime.ts+++ b/packages/browser-control-runtime/src/shim/plugin-config-runtime.ts@@ -5,7 +5,7 @@* runtime has no plugin system — the browser plugin is always the active* subject — so `normalizePluginsConfig` passes through and* `resolveEffectiveEnableState` honors `enabledByDefault` (default true).- * Plugin gating in XDMaker happens one layer up in the MCP provider registry.+ * Plugin gating in Cindy happens one layer up in the MCP provider registry.*/export function normalizePluginsConfig<T>(config: T): T {return config;diff --git a/packages/browser-control-runtime/src/shim/runtime-config-snapshot.ts b/packages/browser-control-runtime/src/shim/runtime-config-snapshot.tsindex cbc8ecb572..1c041b29bd 100644--- a/packages/browser-control-runtime/src/shim/runtime-config-snapshot.ts+++ b/packages/browser-control-runtime/src/shim/runtime-config-snapshot.ts@@ -2,7 +2,7 @@* Shim: openclaw/plugin-sdk/runtime-config-snapshot.** Upstream reads a live global config singleton. We expose a host-settable- * in-memory config (seeded by XDMaker: browser profiles, ssrf policy, ports).+ * in-memory config (seeded by Cindy: browser profiles, ssrf policy, ports).* Defaults to an empty config so the runtime starts with built-in defaults.*/import type { OpenClawConfig } from './config-contracts.js';diff --git a/packages/browser-control-runtime/src/types.ts b/packages/browser-control-runtime/src/types.tsindex 9ee6dcd29e..20465b0d77 100644--- a/packages/browser-control-runtime/src/types.ts+++ b/packages/browser-control-runtime/src/types.ts@@ -1,5 +1,5 @@/**- * Neutral browser-control runtime contract used by XDMaker hosts.+ * Neutral browser-control runtime contract used by Cindy hosts.** The concrete runtime can be backed by an upstream-synced implementation. This* file is the stable boundary consumed by MCP wrappers and desktop host code.diff --git a/packages/lizi-mcps/src/xdt-helper/capabilities.ts b/packages/lizi-mcps/src/xdt-helper/capabilities.tsindex 334f8c7230..409c875923 100644--- a/packages/lizi-mcps/src/xdt-helper/capabilities.ts+++ b/packages/lizi-mcps/src/xdt-helper/capabilities.ts@@ -1,7 +1,7 @@/*** xdt-helper/capabilities.ts* ---------------------------------------------------------------------------- * XDMaker 用户视角能力清单的"单一事实源"。+ * Cindy 用户视角能力清单的"单一事实源"。** 编辑规则:* - one-liner 给模型用,要让模型一眼判断要不要拉 detail。控制在 ~50 字。@@ -14,7 +14,7 @@* - "用户产品功能" 一类一个 bucket(ai-chat / session-management / scheduler 等)* - "外部数据源 / 服务的 MCP 接入" 各自独立 bucket(jira / confluence / google-sheets / ai-art)* - 飞书较特殊:"基础接入(登录/通知/MCP 文档表格等)" 与 "移动办公接管 session" 拆两个 bucket,- * 因为后者是 XDMaker 最差异化的能力,值得独立索引项让模型一眼能查到。+ * 因为后者是 Cindy 最差异化的能力,值得独立索引项让模型一眼能查到。*/import { BRAND_NAME } from '@cindy/maker-shared/branding';diff --git a/packages/maker-core/src/agents/claude-code/env-builder.ts b/packages/maker-core/src/agents/claude-code/env-builder.tsindex bf96f1a29f..d3eaa86596 100644--- a/packages/maker-core/src/agents/claude-code/env-builder.ts+++ b/packages/maker-core/src/agents/claude-code/env-builder.ts@@ -95,7 +95,7 @@ export const SENSITIVE_ANTHROPIC_ENV_KEYS = ['CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR','CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR',// 订阅身份元数据(与 OAUTH_TOKEN 配套,cc env-token 分支消费):不剥离的话,从- // 带这些变量的 shell 启动 XDMaker(典型:终端里的 cc 会话内跑 dev)会把**别人的+ // 带这些变量的 shell 启动 Cindy(典型:终端里的 cc 会话内跑 dev)会把**别人的// 档位/scopes**漏进子进程 —— 凭证库没提供时 getAuthEnv 不注入对应 key,继承残留// 会顶上,订阅会话以错误 scopes/tier 起跑。'CLAUDE_CODE_OAUTH_SCOPES',