Commit Graph

13 Commits

Author SHA1 Message Date
JiangJiahao
f5ebe5c353 fix(desktop): degrade unavailable x64 iOS simulator helper
Signed-off-by: JiangJiahao <jiangjiahao@xd.com>
2026-08-10 14:56:21 +08:00
JiangJiahao
ee17ee94c3 Merge remote-tracking branch 'upstream/main' into feat/issue-397-ios-simulator-native-framebuffer
Signed-off-by: JiangJiahao <jiangjiahao@xd.com>

# Conflicts:
#	apps/desktop/src/main/maker-host/index.ts
#	apps/desktop/src/main/usage/__tests__/modelPricing.test.ts
#	apps/desktop/src/main/usage/__tests__/turnCostCalculator.test.ts
#	apps/desktop/src/main/usage/__tests__/usageHistory.test.ts
2026-08-06 13:14:39 +08:00
Dash
3499ad433d feat(desktop): 支持 RSB 浏览器 Passkey 登录 (#1826)
* feat(desktop): 支持 RSB Passkey WebAuthn

Signed-off-by: Dash <dashhuang@gmail.com>

* test(mac): normalize provisioning profile paths on Windows

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(desktop): resolve RSB native popup WebAuthn owners

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(build): preserve explicit empty WebAuthn team id

Signed-off-by: Dash <dashhuang@gmail.com>

* test(mac): strengthen provisioning profile command assertions

Signed-off-by: Dash <dashhuang@gmail.com>

---------

Signed-off-by: Dash <dashhuang@gmail.com>
2026-08-05 23:59:34 +08:00
JiangJiahao
8d2aed5600 Merge upstream/main into feat/issue-397-ios-simulator-native-framebuffer
Signed-off-by: JiangJiahao <jiangjiahao@xd.com>
2026-08-04 14:33:05 +08:00
Lizi
6ef0db1d0b fix(desktop): Pi 不再进正式安装包,公证失败直接暴露 Apple 原因
Pi 此前既走 CDN 运行时下载,又在安装包内保留 resources/pi 作为兜底。
这份包内兜底与 Claude Code / Codex 的分发方式不一致,并且让未签名的
Pi 目录进入 Cindy.app 参加 Apple 公证,是本次 macOS 公证失败的根因。

Pi 分发对齐 CC/CX:
- 移除 forge 的 stagePi() 与 resources/pi 的 extraResource 装包配置,
  以及针对 resources/pi 的 Windows 签名遍历。
- pi-host 只认本次启动已成功准备好的二进制,不再回落到包内路径,也不
  复用上一次的旧缓存;CDN 不可用时 Pi 本次不可用,但不影响 Cindy 启动。
- 补齐发布包不含 Pi 的校验与相关单测,同步法律声明中"随包分发"的表述。

macOS 公证:
- notarytool submit 改 --output-format json 并显式判定 status,不再把
  Invalid 当成功继续 staple。
- 非 Accepted 时保留 zip 供诊断,并拉取 Apple notarization log 打印真实
  失败原因;notarytool 自身非 0 退出时同样从 stdout 救回 submission id
  去拉日志(Invalid 的 exit code 随 Xcode 版本变化)。
- 所有回显与日志对 App 专用密码打码。

验证:pnpm test:unit 全绿(341 tests / 340 pass / 1 skip / 0 fail,
apps/desktop 与 apps/mobile 均 PASS);pnpm --filter desktop typecheck 通过;
git diff --check 通过。Apple 真实公证需下一次 macOS CI 连 Apple 服务验证。

Signed-off-by: Lizi <jiali@magiclizi.com>
2026-08-02 19:38:58 +08:00
JiangJiahao
83ed73368c feat(ios-simulator): implement host-owned native simulator
Signed-off-by: JiangJiahao <jiangjiahao@xd.com>
2026-07-27 17:38:20 +08:00
Kmny
65cc2d7e22 fix(desktop): preserve versionless direct builds (#580)
Signed-off-by: xuxiaowei <xuxiaowei@xd.com>
2026-07-27 13:51:32 +08:00
Dash
6ca0cfc0a6 feat(region): 将 Global 设为默认区域 (#475)
* feat: 将 Global 设为默认区域

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(region): 让本地入口与测试显式使用区域

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(region): 同步本地构建身份并改进清单错误

Signed-off-by: Dash <dashhuang@gmail.com>

---------

Signed-off-by: Dash <dashhuang@gmail.com>
2026-07-26 09:21:10 +08:00
zhanghengxd
714fccc5eb feat(desktop): 支持在 Linux arm64 上打 deb 并让 arm64 包拿到对架构的 agent 二进制 (#451) 2026-07-26 02:17:11 +08:00
guyong-zapo
75baac1ee3 fix(desktop): global 桌面包全部可见名称统一为 Cindy (#461)
海外(global)桌面包此前在 Windows 桌面/开始菜单快捷方式、安装目录、
mac .app 名与菜单栏标题显示 CindyGlobal。owner 决策显示名统一为 Cindy:
executableNameByRegion.global 由 'CindyGlobal' 改为 'Cindy',exe /
.app / 安装目录 / 快捷方式 / 右键菜单 / ProgId 全部随单点自动切换。

代价与决策:cn/global 同机双装的文件层隔离(安装目录 / .app / .lnk
互不同名)随之放弃,双装互抢场景明确不再支持;appId 与 userData 目录
仍按区域分离,系统身份、通知与数据隔离不受影响;dev 区域保持 CindyDev。
存量 global 用户的升级迁移按 owner 决策不做处理。

同步改动:
- ci/lib.mjs 镜像表 PACKAGED_APP_NAME_BY_REGION 同步
- brand-identity-sync.test.mjs 补上按区域映射表的一致性断言
  (此前 lib.mjs 注释声称有此兜底但测试实际未覆盖)
- brandIdentity.test.ts 双装不变量断言更新为新决策
- forge.config.ts / installer.nsh / 各运行时消费点的陈旧注释更新

Signed-off-by: guyong <guyong@xd.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-26 01:29:12 +08:00
nanaco
49bf600d7e feat(computer-use): 完成 macOS 权限引导流程 (#248)
* feat(computer-use): complete macOS permission guide with native coach UI

Implement the full Computer Use permission onboarding flow for macOS:

- Add native AppKit helper (NSPanel + NSDraggingSession) that overlays
  System Settings without activating the Electron app
- Add Electron BrowserWindow fallback with backdrop, drag-to-grant, and
  animated cursor guidance
- Add switch-target locator using CuaDriver accessibility inspection to
  detect permission toggle coordinates and state changes
- Add permission probe with fresh-restart and cache-bypass support to
  work around CGPreflightScreenCaptureAccess process-level caching
- Add placement logic to center guide on System Settings window
- Refactor ComputerUseSection settings UI with distinct permission states
  (missing/checking/granted) and recheck button
- Add i18n strings for all four supported languages
- Update forge config and CI signing for bundled native helper
- Add comprehensive test coverage for guide window, switch target, native
  host, and permission flow state machine

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(computer-use): 优化 macOS 权限引导面板层级与授权回调

- 将 NSPanel 从 floating 降为 normal 级别,使用 order(.above, relativeTo:)
  跟随 System Settings 窗口,避免遮挡系统授权弹窗
- 检测 System Settings 模态对话框(指纹/密码授权),自动隐藏引导面板
- 授权完成后发送 auth-sheet-dismissed 事件,立即重新检查权限状态
- 移除引导卡片上无法点击的关闭按钮

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(computer-use): 修复权限引导 review 问题

* fix(computer-use): 保留 CLI-only 授权回退

* fix(computer-use): 修复权限引导异常生命周期

* fix(computer-use): 补齐原生引导主题与多语言

* fix(computer-use): 兜底引导加载与状态持久化

* fix(computer-use): 兜底授权弹窗检测与签名路径

* fix(computer-use): 仅在明确缺权时启动引导

* fix(computer-use): 收紧弹窗回退识别

* fix(computer-use): 对齐原生拖拽行无障碍标签

* fix(computer-use): address follow-up review feedback

* fix(computer-use): preserve permission state on transient probes

* fix(desktop): harden permission guide windows

* fix(computer-use): target stable switch label

* fix(computer-use): preserve guide preflight status

* fix(computer-use): clean up fallback close lifecycle

* fix(computer-use): preserve paused guide status

* fix(desktop): address permission guide review feedback

* fix(desktop): harden computer permission onboarding

* fix(desktop): secure permission guide lifecycle

* fix(desktop): close permission guide state gaps

---------

Co-authored-by: XW <xw@XWdeMacBook-Air.local>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: nana <823073145@qq.com>
2026-07-25 13:51:04 +08:00
guyong-zapo
3add55e19b fix(desktop): 公证密码直接传值,去掉 --password @env: 间接 (#276)
* fix(desktop): 公证密码直接传值,去掉 --password @env: 间接

## 背景
notarizeMacApp 用 `--password "@env:CINDY_NOTARY_PASSWORD"` 传密码。
旧版 xcrun notarytool 不认 @env: 前缀,会把字面量 "@env:..." 当密码本身
发出去,导致 `HTTP 401 … not allowed for primary authentication`——同一
套 apple-id/team-id/app-specific-password 用 `notarytool history` 与
`--password <字面量>` 均可正常认证,证明密码有效、问题出在 @env: 传参。

## 改动
apps/desktop/scripts/ci/lib.mjs 的 notarizeMacApp:
- 改用 spawnSync 参数数组,把 identity.applePassword 作为 --password 的值
  直接传给 notarytool(不经 shell、不再依赖 @env: 间接)
- 日志回显命令时对密码打码(credentials 规则:输出不得含凭证明文);
  密码不进命令字符串,ps 里也看不到明文 argv
- 显式检查 spawnSync 的 error/status,非 0 抛错(保持 fail-closed)

## 验证
- pnpm --filter desktop typecheck:通过
- node --check apps/desktop/scripts/ci/lib.mjs:通过
- pnpm test:unit:1 个 FAIL 为上游既有(addProviderWizardOpenAiAuth,
  在无本改动的 upstream/main c03be7f 上同样失败),与本构建脚本改动无关

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(desktop): notary 提交注释写准 argv 暴露 + 处理 signal 终止

回应 code review:
- 注释更正:spawnSync 参数数组只避免 shell 注入,密码仍作为 xcrun 明文
  argv,--wait 期间(≤30min)同机进程 ps/proc 可读;注明为受控构建机取舍,
  并指出后续可用 --keychain-profile 彻底消除 argv 暴露。
- 错误处理:补 submitResult.signal 分支——超时被 SIGTERM kill 时 status 为
  null,原逻辑会抛 "exit null",现显式报出 signal。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-24 14:32:11 +08:00
Lizi
bb3f71d084 chore: Cindy 首次开源提交 / initial open-source release
Cindy 是心动网络 (X.D. Network Inc.) 的跨端 AI Agent 客户端。
本次提交包含 Desktop(Electron)、Mobile(Expo)及全部共享 packages
的完整源码,以 Apache-2.0 协议开源。

This is the first public release of Cindy, X.D. Network's cross-platform
AI agent client: the Electron desktop app, the Expo mobile app, and all
shared workspace packages, licensed under Apache-2.0.

- 许可与合规:根 LICENSE(Apache-2.0)+ NOTICE;第三方组件归属声明与
  SPDX SBOM 收口在 docs/legal/notices/,由 pnpm licenses:generate 生成。
- 社区文件:README / CONTRIBUTING / CODE_OF_CONDUCT / SECURITY / SUPPORT
  中英双语;issue / PR 模板与 CI workflow 在 .github/。
- 协议层以公开 submodule 引入:github.com/makecindy/cindy-protocol。
- 提交前已通过仓库门禁:全量 pnpm test:unit 与涉及 package 的 typecheck。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 08:30:44 +08:00