Commit Graph

14 Commits

Author SHA1 Message Date
Dash
544e452423 feat(mobile): pnpm mobile:sim:up starts the phone app in one command
Agents had to chain boot, Metro, rebuild and whoami themselves, and after
one step failed they kept reporting the phone app as unbuildable. The new
command picks a device without disturbing other tasks (several candidates
make it ask instead of guessing), boots it, reuses or starts this
worktree's Metro (on a free port when 8081 belongs to another task),
installs the matching native app, launches it, waits for the bundle,
brings it back to the foreground when the system pushed it behind after
boot, and checks identity. It reads the Metro log sim-start records and
keeps its own output in the system temp directory, never in the worktree.
It can be rerun after the device idles off, and always ends with one JSON
line giving a code and the next step.

The root AGENTS.md module table now routes "seeing changes on the phone"
to the Mobile docs; the command and the rule that only a fresh run's code
counts as evidence live in docs/dev-rules/mobile-development.md.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-04 16:53:33 +13:00
Dash
eb865b7f92 feat(mobile): check Metro logs after simulator verification
sim:start now writes Metro output to apps/mobile/logs/metro-<port>.log, and
mobile:sim:logcheck reports what happened after the latest entry bundle: ERROR
and failed bundles fail, unlisted warnings must be reported, and an unknown
state is not a pass. Add the check to the simulator verification rules.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 17:37:40 +13:00
Chris Zhang
80c3020bb1 fix(test): 本地测试默认独立运行,收窄选测与执行要求 (#5042)
* fix(test): make local test serialization opt-in

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(test): retain checked text inputs and portable Git fixtures

Signed-off-by: zqchris <chrisz83@gmail.com>

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-09-24 22:58:31 +08:00
Dash
79ffdcd97c fix(mobile): 修复 Xcode 27 启动并校验原生包兼容性 (#4689)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-18 22:33:16 +07:00
Lizi
635977dd9c feat(desktop): use Codex package in development
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-09-03 00:11:05 +08:00
DavidShen
a146eb5041 fix(dev): 修复 Windows 移动端调试与测试门禁
Signed-off-by: DavidShen <david@xd.com>
2026-08-31 14:54:34 +08:00
MagicLizi
173df24fb6 feat: default desktop restart to stable dev sandbox
Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-08-26 12:48:12 +08:00
Lizi
a94d019579 feat(test): 本地提交默认只跑和改动相关的单测
本地门禁改为 pnpm test:unit:related:按相对 main 的全部改动选测。
改到测试调度或依赖清单时退回全量。CI 仍跑完整 pnpm test:unit。

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-08-14 01:24:44 +08:00
Lizi
4c94194709 feat(desktop): pi 二进制接入 CDN 运行时分发链(splash prepare + 可选资产降级)
- agent-binaries 新增 'pi' kind:整目录 tar.gz 分发(tar-gz-dir artifact),
  解压容错上移上游嵌套布局,主执行文件缺失即失败不写 .verified
- pi 为可选资产:manifest 缺 pi 字段不计入 splash 下载步数,下载失败不广播
  failed payload(不打断启动);pi-host 依次回退受管下载版 → resources/pi
  安装包自带分发,全缺则本次不注册 pi
- splash 顺序下载支持三段 (x/3) 进度标签与逐段 reset(claude → codex → pi)
- manifest 增加可选 pi 字段;binary-version IPC 接受 'pi'
- 第三方开源声明加入 pi coding agent(bundled binary)条目并重新生成全部
  notices/SBOM;help 文案与 runner 测试同步 install:pi / update:pi
- 新增 factory tar-gz-dir 回归测试(平铺/嵌套/缺主执行文件/二次命中/optionalAsset)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-08-02 17:08:05 +08:00
DavidShenXD
cd1aee1f10 perf(test): 优化单测并行与 Desktop worker 配置 (#543)
* perf(test): bound workspace unit concurrency

Signed-off-by: david <david@xd.com>

* perf(test): benchmark desktop worker scaling

Signed-off-by: david <david@xd.com>

* perf(test): use eight desktop workers

Signed-off-by: david <david@xd.com>

* fix(test): address runner review feedback

Signed-off-by: david <david@xd.com>

* fix(test): harden runner output handling

Signed-off-by: david <david@xd.com>

---------

Signed-off-by: david <david@xd.com>
2026-07-27 09:28:33 +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
DavidShenXD
43cf161cca revert(desktop): revert PR #409 shared dev migration changes (#441)
Revert "fix(desktop): block shared primary dev migrations (#409)"

This reverts commit a629cd90de.

恢复 #409 之前的共享 dev migration 语义;未含 #409 之后 main 上其他提交(fix cmd log 已保留)��\82

Signed-off-by: david <david@xd.com>
2026-07-25 21:20:43 +08:00
DavidShenXD
a629cd90de fix(desktop): block shared primary dev migrations (#409)
* fix(desktop): block shared primary dev migrations

Signed-off-by: david <david@xd.com>

* fix(desktop): close shared dev migration gaps

Signed-off-by: david <david@xd.com>

* fix(desktop): clarify shared dev startup guidance

Signed-off-by: david <david@xd.com>

* fix(desktop): reject release userData aliases

Signed-off-by: david <david@xd.com>

* fix(desktop): harden shared dev data isolation

Signed-off-by: david <david@xd.com>

* test(desktop): stabilize user data policy paths

Signed-off-by: david <david@xd.com>

---------

Signed-off-by: david <david@xd.com>
2026-07-25 18:14:34 +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