Commit Graph

17 Commits

Author SHA1 Message Date
Zhao Dengfeng
01add54fb0 merge: refresh SwiftUI toolchain documentation against main
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-11-11 22:56:54 +08:00
Dash
3ab35fcd9d fix(mobile): 自动使用用户 gem 目录中的 CocoaPods
iOS 构建脚本只在 PATH 里找 pod。Agent 子进程的 PATH 通常不含
Gem.user_dir/bin,已安装的 CocoaPods 因此被报成 pod=missing,任务反复
要求安装 Homebrew。

PATH 找不到 pod 时只读查询用户 gem 目录,命中后追加到本次进程 PATH 末尾,
不遮蔽已有命令;PATH 上已有但运行失败的 pod 仍如实报告。同步修正错误提示
和环境文档。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 11:20:19 +13:00
Dash
8b6503cd41 docs: move agent-learned product and dev knowledge into the repo
Decisions and debugging knowledge that only lived in one person's agent
memory now live where every contributor and agent reads them:

- environment-setup: keep git auto-maintenance in the foreground for
  multi-worktree partial clones (git 2.54 loses the maintenance lock)
- simulator-debugging: evidence-first physical-iPhone debugging and the
  side-by-side test build parameters
- remote-desktop: zero frames from ScreenCaptureKit means check replayd
- model-catalog-maintenance: Cindy AI name suffixes, AI Gateway repos
- design-decision-log: extra model cost display (10-30), remote desktop
  resolution tiers with effect words (10-06)
- core-product-principles: transient failures recover automatically,
  background status hints stay light and never reflow lists
- engineering-conventions: name Chinese variants by script, not region
- REVIEW.md: do not demand mechanisms for rare benign edges
- configuration-and-overrides: four tiers for settings visibility
- protocol-compatibility: manual continuation of interrupted scheduled
  runs; X delete keeps the mention requirement
- plugin-security-and-authoring: "my browser" capability parity, user
  non-interference baseline, on-demand debugger permission, page badge
- new docs/dev-rules/browser-use.md: shared-layer optimizations, no
  capability limits with risk handled by approval, external link handoff,
  recipe catalog maintenance
- new docs/product-rules/mail-card.md: mail card editing, sending,
  reading, read marks, avatars and Google contacts scope
- system-skills README: bundled Skills stay repo-agnostic; pr triggers
  only on explicit PR intent

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 03:39:40 +13:00
Zhao Dengfeng
504d1720b6 Merge main into docs/macos-swiftui-toolchain
Retain both the SwiftUI helper workaround and the upstream iOS simulator toolchain guidance.

Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-10-29 22:59:08 +08:00
Dash
c414c879fd fix(mobile): 提前检查模拟器构建工具并改善诊断流程
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-29 21:28:12 +13:00
fmfsaisai
12641d4709 fix(codex): use bundled CLI inside task shells
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-25 23:29:57 +08:00
Dash
75089bf711 refactor: organize session workflow boundaries and developer guidance
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-24 01:20:13 +13:00
Zhao Dengfeng
52605c854b docs(desktop): require a TTY for the SDKROOT workaround
Explain the macOS terminal handoff and require stdin/stdout TTYs before launching the example. Agents can allocate a PTY to keep SDKROOT in the inherited environment.

Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-10-18 07:19:37 +08:00
Zhao Dengfeng
2d2ee2adb0 docs(desktop): explain missing SwiftUI macro toolchain recovery
Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-10-18 06:59:45 +08:00
Dash
a9a1ebc1a2 fix(dev): 新 worktree 装完依赖即可用,开发版启动失败能看到原因 (#5815)
* fix(dev): 新 worktree 装完依赖即可用,开发版启动失败能看到原因

- postinstall 末尾复核 Electron dist,缺失时补装:pnpm side-effects cache
  记下「electron 已构建但无产物」后,同机新 worktree 都会跳过 Electron
  自己的 postinstall
- workspace 测试开跑前只读检查依赖与 Electron,未就绪直接给出处置命令
- macOS 无 TTY 启动时用 script(1) 把 dev 终端输出写入
  apps/desktop/logs/dev-terminal.log,失败时打印日志末尾并在 verdict 带 log=
- USERDATA_IN_USE 给出改用本 worktree 沙箱的 next
- 进程归属按最深 worktree 判定,主 checkout restart 不再误杀
  .cindy-worktrees 下的实例
- 同步环境准备、Desktop 启动与 worktree 会话文档

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(dev): 收紧依赖预检范围,终端日志限长并覆盖所有失败结论

- 依赖预检只在选中 Desktop 时检查 Electron,并把缺失的
  node_modules/electron 判为安装不完整
- 终端日志经命名管道只保留前 8MB,长期运行的 dev 不再让文件无限增长;
  环境变量前缀紧贴 script,cd 失败时整组命令不执行
- ready 后进程退出导致的 WHOAMI_MISMATCH 也打印日志末尾并带 log=
- ensure-deps 测试去掉 CI 继承的 ELECTRON_OVERRIDE_DIST_PATH

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* test(dev): 终端日志命令断言按平台路径拼接

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-12 06:00:50 +08:00
Lizi
abc3061def feat(cindy-make): unify preparation and manage task lifecycle
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-09-17 12:45:15 +08:00
Lizi
c0377026a0 feat(cindy-make): centralize preparation and reuse prepared dependencies
Keep environment and source preparation in Main while preserving per-request workflows and progress across navigation. Install complete dependencies on the personal baseline and reuse the cache and toolchain, including Python, for task worktrees.

Simplify preparation UI and compare upstream PRs with the actual running revision. Add coverage for concurrent workflows, explicit cancellation, source recovery, and cross-platform Git behavior.

Signed-off-by: Lizi <jiali@magiclizi.com>
2026-09-16 12:20:24 +08:00
bobo
b247c2d324 refactor(protocol): 本地化跨端协议包 (#2373)
* refactor(protocol): localize shared protocol packages

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(protocol): align localized contracts with consumers

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(protocol): keep model currency optional

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(protocol): align legacy model and plugin fields

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(protocol): preserve plugin oauth metadata

Signed-off-by: xd-bobo <caojianbo@xd.com>

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-08-11 15:31:27 +08:00
Lizi
3b2d7bcc33 fix dev pi 2026-08-02 20:04:59 +08:00
zhanghengxd
3d358056e5 docs(dev-rules): chrome-sandbox 提权前先断开 pnpm store 硬链接 (#253)
pnpm side-effects cache 会把 electron postinstall 产物 hardlink 进共享
store(实测 nlink=2),直接 chown/chmod 会把 store 副本一并改成
root+setuid,波及其它复用同版本 Electron 的项目/worktree。改为先原位
复制断链再提权,并同步修正 worktree 注意事项。

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 12:03:06 +08:00
zhanghengxd
c299024449 fix(tools): 补齐 claude/codex/ripgrep 下载脚本的 linux-arm64 平台支持 (#251)
* fix(tools): 补齐 claude/codex/ripgrep 下载脚本的 linux-arm64 平台支持

linux-arm64 机器上 dev 启动时,ensure-agent-binaries 因三个
tools/*/update.mjs 的 PLATFORMS 白名单缺少 linux-arm64 直接抛
"Unknown platform key",连官方上游都没请求就落入 CDN 兜底并 404。

三家上游其实都有官方 arm64 产物,按各自 x64 的既有约定补条目:
- claude: linux-arm64 (glibc),官方 manifest 含 checksum
- codex: codex-aarch64-unknown-linux-musl.tar.gz(与 x64 同为 musl)
- ripgrep: aarch64-unknown-linux-gnu.tar.gz + .sha256(aarch64 无 musl)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(desktop): 补齐 sqlite-vec linux-arm64 native 扩展(LFS)

dev 启动的 ensure-dev-runtime-assets 检查当前平台的
apps/desktop/native/sqlite-vec/<platform>/vec0.so,linux-arm64 缺失
导致启动被拦。从官方 asg017/sqlite-vec v0.1.9 release 的
loadable-linux-aarch64 包 vendored(与既有 linux-x64 同源:官方
loadable-linux-x86_64 包内 vec0.so 的 sha256 与仓库 LFS pointer 完全
一致,证实原封未改),已实机加载验证 vec_version() == v0.1.9。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* docs(dev-rules): 记录 Linux Electron SUID sandbox 权限修复步骤

较新 Ubuntu 限制非特权 user namespace 后,dev 启动报 SUID sandbox
helper 配置错误,需要 root:root + 4755;该权限随依赖重装被重置,
属于所有 Linux 开发者首启必踩的坑,记入 environment-setup.md。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 10:31:56 +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