Commit Graph

33 Commits

Author SHA1 Message Date
Dash
dfe5bf738f fix(permissions): 简化跨端权限选择与说明
统一使用中性色和打开的锁图标,直接显示各档位说明及 AI 审批等待提示。用户选择完全访问后直接生效,手机收起时保留纯图标。修复本地模拟器构建的 Agent-Net 架构选择。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 14:23:28 +13:00
DavidShen
e1553cffe1 fix(mobile): 区分 APK 指纹缺失与读取失败
读取非零退出后核对 APK 文件清单,仅确认缺项时提示重建;目录读取故障保持失败。
补充真实 CLI 回归及读取失败保护测试。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-09 16:28:50 +08:00
DavidShen
f9b47da8a8 fix(mobile): 保留行内公式语义并支持 Android 验收
修复样式命令参数与符号边界,补齐 Android 验收入口及指纹读取失败回归。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-09 15:59:07 +08:00
Dash
56322dab74 merge: 同步 main 并移植 react-native-screens 同栈移动修复到 4.30.1
main 为 react-native-screens@4.26.2 补丁新增了同一栈内 Fabric 重排(Remove + Insert)保留实时视图的修复。
本分支已升级到 4.30.1,原补丁段无法套用,按 4.30.1 的 addSnapshotToView 路径重写后保留同样行为,并重新生成 pnpm-lock.yaml。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 20:54:05 +13:00
Dash
551405a32f build(mobile): 升级 Expo SDK 58 并适配原生依赖
保留原有手势、导航、文件读写和自建 OTA 行为,迁移原生补丁并记录真机构建与资源对比。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 20:41:04 +13:00
Dash
b417281e39 fix(mobile): keep task messages visible through navigation and keyboard layout
Preserve live screens during same-stack Fabric moves and animate a disposable reveal cover instead of the retained message list. Add native replay fixtures, visibility diagnostics and a mounted regression for stale opacity writes.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 19:04:48 +13:00
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
Lizi
08cf7af51d Merge pull request #8560 from makecindy/dash/mobile-quiet-dev-warnings
fix(mobile): 去掉开发模式警告提示,并在模拟器验证后检查 Metro 日志
2026-11-03 21:11:37 +08:00
Dash
1065df1bc5 fix(mobile): per-launch private Metro log, full writes, no device-link allowlist
Each Metro launch writes its log in a fresh mkdtemp directory recorded in the
port owner record, so logcheck only reads that launch's log and never a
predictable path. Short writes discard the log like failed ones. device-link
warnings are no longer known: relay errors can hide auth failures.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 20:48:00 +13:00
Dash
1f09a5bb3d fix(mobile): delete the Metro log when its Metro exits
The raw output may carry credentials and logcheck already rejects a stopped
Metro, so sim-start removes the log on child exit and on spawn errors.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 20:09:59 +13:00
Dash
390775ba70 fix(mobile): keep raw Metro logs out of the worktree
Metro output can carry credentials, so the captured log now lives under the
system temp directory, one folder per worktree, instead of apps/mobile/logs.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 19:57:26 +13:00
Dash
88e2fb9cb0 fix(mobile): reject Metro logs not written for the running launch
sim-start writes a launch id into the log header and the Metro owner record
(null when the log could not be created). logcheck reports unknown unless
they match, so an old log that could be neither replaced nor deleted cannot
pass.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 19:30:52 +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
Dash
60b0f00fd8 fix(mobile): quiet dev-only warning noise
Hide React Native's fixed 'Open debugger to view warnings' banner, disable
Reanimated strict logging, and replace the deprecated getId screen prop.
Warnings still reach Metro and the debugger; error banners are unaffected.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 17:35:05 +13:00
Dash
1bd965796f docs(mobile): 模拟器调试入口改用 cindy-simulator 插件名
插件已改名为 cindy-simulator,同步调试文档、无已开机设备时的提示语及对应测试。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 15:00:41 +13:00
Dash
13783a40d6 fix(mobile): Cindy 模拟器可用时不再悄悄改用系统模拟器 (#8313)
* fix(mobile): keep simulator tests on Cindy's simulator while it is available

An idle Cindy simulator made whoami and rebuild silently pick a system device,
so a task could run on the wrong backend without any signal. Stay on Cindy until
the plugin is unavailable or a --udid names another device, report the reason
and reusable devices, and flag the system simulator while Cindy's is available.

Stop reporting native-missing when no exact target was probed, and align the
test workflow: occupied Cindy devices are not a reason to fall back, parallel
devices stay in the selected backend, and handoffs name the backend and model.

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

* fix(mobile): fail closed when Cindy's simulator cannot be listed

A failed device listing was read as an empty one: whoami reported cindy-idle,
while rebuild and open silently moved on to a system device. Keep the failure
and stop without choosing a backend unless an exact UDID may live elsewhere.

Treat the Cindy devices directory given as an absolute path as Cindy's
simulator so it gets the same notices as CINDY_MOBILE_SIMULATOR=cindy.

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 13:25:54 +09:00
Dash
6e2b0c1960 docs: align secret-field and test-build notes with existing repo rules
Address review feedback on #8261:

- plugin-security-and-authoring, browser-use: the "my browser" notes said
  password, payment and one-time-code fields are readable and fillable, which
  read as contradicting the input-handoff boundary. State that the extension
  does not block by field type, but values the owner enters through ask_owner
  still go only to the host and never into the model, and that task
  permission tiers and automatic review do not replace that boundary.
- simulator-debugging: the side-by-side test build recipe omitted
  CINDY_USE_LOCAL_REGION_CONFIG=1, without which app.config.js ignores the
  temporary self-host-regions.json and silently keeps the built-in bundle ID.
  Add the switch, say which variables only change the display name, require
  checking the built bundle ID before install, and name the two entitlements
  to remove.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 04:02:16 +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
Dash
c588311756 docs(mobile): require an explicit request before taking over another task's Metro
A test request now only authorizes restarting this task's own or an orphaned
8081 Metro; a live worktree's Metro defaults to the parallel-device path and
is taken over only when the user explicitly asks in the current task.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:24:53 +13:00
Dash
a1c698a13d docs(mobile): add boot step and accurate whoami port range to parallel-device recipe
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:21:40 +13:00
Dash
a6a80287a6 docs(mobile): make the repo the only simulator test workflow
Move the generic rules that only lived in a personal simulator skill into
the simulator guide: what a test request authorizes and excludes, how the
target worktree and device are chosen, how to use Cindy's simulator plugin,
and what a delivery must report. Personal setup now keeps only private
preferences such as the usual device and simulator backend.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 01:52:53 +13:00
Dash
68a43f429e docs(mobile): document parallel simulators via RCT_jsLocation
The simulator guide claimed the iOS debug app only ever loads Metro on 8081,
so agents concluded two worktrees could not run on two simulators at once.
React Native first reads the per-device RCT_jsLocation default and only
falls back to 8081 when that Metro does not answer.

Document how the app picks Metro, the two silent fallbacks, the parallel
device recipe (rebuild --udid, start --port, point the device, verify with
whoami --udid --port and the build label, clean up), and what is still
unverified on Android. Align the dev rules and sim-start comments.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 01:47:24 +13:00
Dash
189ef0678e fix(mobile): 透传 Metro 进程身份探测错误
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-29 21:28:15 +13:00
Dash
c414c879fd fix(mobile): 提前检查模拟器构建工具并改善诊断流程
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-29 21:28:12 +13:00
Dash
200bf3e64c feat(mobile): 模拟器脚本默认优先 Cindy 模拟器,没有再用系统模拟器
mobile:sim:whoami / rebuild / open 不再固定系统(Xcode)设备目录:默认先找 Cindy
模拟器(官方 Baguette 插件的独立设备目录)中已启动的设备,未安装、插件关闭运行或
没有已启动设备时用系统模拟器;--udid 跟随设备所在目录。个人选择放在仓库外的
CINDY_MOBILE_SIMULATOR=auto|cindy|system|<设备目录绝对路径>。

非系统目录的设备用通用目标编译、simctl --set 安装启动;它们没有外部窗口,open 拒绝、
whoami --viewer 报不可用。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 16:43:08 +13:00
Dash
118a919113 fix(mobile): 减少隐藏弹层键盘处理并修正性能诊断 (#5999)
* fix(mobile): 停止隐藏弹层键盘监听并校准性能诊断

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

* test(mobile): 为滚动手势测试注入真实日志采样器

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-14 00:44:43 +08:00
DavidShen
9d750ca429 perf(mobile): 选择性使用安卓原生容器
Signed-off-by: DavidShen <david@xd.com>
2026-10-01 07:25:03 +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
Dash
9018f7c47a fix(mobile): 统一模拟器启动身份校验并保留依赖现场 (#4599)
* fix(mobile): 统一模拟器启动身份校验并保留依赖现场

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

* fix(mobile): 复用模拟器 UDID 参数解析并修正文档示例

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-17 17:01:22 +07:00
Dash
66adfb5d7b feat(mobile): 支持详细本地 Debug 日志与手动上传摘要 (#4092)
* feat(mobile): 支持本地诊断日志与手动上传

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

* feat(mobile): 记录详细本地 Debug 日志并简化设置

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

* test(mobile): 补齐滚动手势测试的 Debug 依赖

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

* fix(mobile): 补齐转义凭证脱敏与关闭后的日志清理

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

* fix(mobile): 完整过滤多字段鉴权头

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

* fix(mobile): 立即停止关闭后的采集并校验商店上传配置

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-09 02:42:05 +08:00
DavidShen
a146eb5041 fix(dev): 修复 Windows 移动端调试与测试门禁
Signed-off-by: DavidShen <david@xd.com>
2026-08-31 14:54:34 +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
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