Commit Graph

15 Commits

Author SHA1 Message Date
Dash
05d306379f fix(mobile): 修复多类线上闪退并留存 iOS 崩溃符号
按商店后台与 Xcode Organizer 里的线上崩溃日志逐类处理:

- JS 致命错误:启动稳定后(根布局首次提交 20 秒后),渲染报错由根级
  RootErrorBoundary 显示可重新加载的错误页,回调与定时器里的未捕获报错由
  jsErrorGuard 降为非致命。窗口内保持致命,expo-updates 的错误恢复照旧回滚坏热更。
  本机诊断记录新增 `js error` 事件,只含报错类型与打包文件行列号。
- iOS 0xdead10cc:后台启动时不读取入站分享暂存区(读取期间持有 App Group 文件锁),
  回到前台再读。
- Android 图片绘制崩溃:expo-image 补丁在绘制前修正未预乘标记,画布仍拒绝时丢弃
  这张图;该模块改为从源码编译,否则补丁进不了包。
- Android 长按输入框崩溃:expo-paste-input 补丁在选区没有可见宽度时让本次触摸
  不触发长按,避开系统零尺寸拖拽缩略图的异常。
- build-ios.mjs 把 archive 里的 dSYM 打成 .dSYMs.zip 留在 .ipa 旁边。

只改变 Android 的 runtime fingerprint(iOS 不变):两个 Android 补丁须随冷更发布,
其余为纯 JS 改动。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 18:31:29 +13:00
Lizi
2bc707061f Merge latest main into feat/agent-net-phase0
Merge origin/main at 00f65f30db. Move the remote connection settings onto the shared settings components, read the APNs environment through the signed profile, keep the communication entitlement on the app target only while the notification extension retains its keychain group, and regenerate the glossary and help knowledge from the merged source.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-10 18:19:23 +08:00
Lizi
8f651cf80d feat(agent-net): 接通独立中转与桌面手机完整业务路径
为自建和本机中转接入独立 V2 身份、配对、加密传输及既有 Device Link 业务。
共享任务和供应商分享固定私有来源,保留 V1 兼容,补齐执行电脑、媒体、恢复和账号边界。
手机接入原生签名、UDP、发现、加密通知和按需视频;宿主与 CLI 支持运营者的推送桥。
加入原生 CI、部署接线与验证记录;生产部署和真机推送验收另按交接手册执行。

验证:Desktop Main 458 项、相关 Device Link 422 项、Mobile 122 项、原生 SDK 27 项、内核 31 项通过。
iOS/Android 原生构建与系统视频探针通过;类型、多语言、定向深浅色 UI 与测试卫生检查通过。
全分支 UI 关联构建因资源增长终止;已记录定向覆盖和未完成的目标环境验收。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-08 02:03:35 +08: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
fmfsaisai
08bf3529f3 fix(plugins): 保留历史页面声明兼容并校验安全路径
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-29 23:32:35 +08:00
Dash
991a184ae6 feat(mobile): 文件预览视频改用系统播放器,显示取回与缓冲进度 (#5542)
* feat(mobile): 文件预览视频改用系统播放器并显示取回与缓冲进度

- 视频预览改用 expo-video 原生播放器,控件、全屏与旋转交给系统
- 电脑上传期间按真实字节显示百分比与速度
- 缓冲时显示已加载百分比;音频与 data: 地址保留 WebView 播放器

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

* docs(design): 刷新设计台账以纳入原生视频播放器

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

* test(mobile): 视频画布与图片 lightbox 同列恒深颜色豁免

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

* fix(mobile): 原生播放器不支持的格式退回 WebView 播放器,补播放器行为测试

- 原生播放器报错(如 iOS 上的 WebM)时改用原 WebView 播放器,不再显示播放失败
- 新增 NativeVideoPlayer 行为测试:缓冲提示延迟、恢复后隐藏、计时器清理、失活暂停与错误回调

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-07 19:57:10 +08:00
Chris Zhang
1bde0037e4 feat(mobile): 接入插件页面与原生交互 (#5359)
* feat(mobile): integrate plugin pages and native interactions

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(mobile): register plugin UI in design inventory

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(mobile): preserve plugin receipts and page lifecycle

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(mobile): align Traditional Chinese plugin terminology

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(plugins): run mobile-host interop in Node environment

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(mobile): guard plugin navigation and align integration regressions

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(mobile): isolate plugin polling in drawer lifecycle fixture

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-02 06:26:26 +08:00
Dash
f58c2f110e feat(mobile): 原生接收远程桌面并保留后台画中画 (#4630)
* feat(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>

* test(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-18 21:04:51 +07:00
Dash
f70d22d483 fix(device-link): 区分内容恢复状态并加快前台切网恢复 (#3947)
* fix(device-link): 区分内容恢复状态并加快前台切网恢复

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

* fix(device-link): preserve weak-network tolerance and invalidate peer recovery

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-05 14:20:15 +08:00
Dash
f46baf5157 feat(mobile): iOS 外壳改用系统导航栏、菜单与选项 Sheet (#3500)
* feat(mobile): iOS 外壳改用系统导航栏、菜单与选项 Sheet

首页顶栏和简单页走系统 UINavigationBar;附着菜单走 UIMenu;
左滑选项走 Expo UI BottomSheet + List。Android 保持自绘。
为接入 @expo/ui,mobile 升到 Expo SDK 57,会改变 runtime fingerprint。

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

* fix(mobile): 避免 iOS 动作菜单串扰并补回桌面 user-event

旧 Sheet 的延迟回调不再结算后来的请求;重命名等 Sheet 真正关闭后再挂弹窗;
开关补回无障碍名称。lockfile 再生时补回桌面测试依赖 @testing-library/user-event。

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

* fix(mobile): 删除确认等 Sheet 关闭后再弹,读屏可切换开关

删除与重命名一样会再 present 系统对话框,必须等选项 Sheet 卸掉。
NativeSwitch 外层无障碍节点补上激活手势,双击才能真正切换。

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

* fix(mobile): 原生范围菜单补回打开设备与重命名

iOS 标题 UIMenu 先前只能切换范围。每台电脑改为子菜单,保留查看任务、打开设备详情和重命名。

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

* fix(mobile): 设置子页也走系统导航栏,避免叠两层顶栏

语音词典和本机改名仍在 /settings 路由内切换,Expo Router 会保留主页的 native header。
这两页改为 SimpleStackHeader,iOS 只留一层系统顶栏。

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

* fix(mobile): iOS 系统顶栏只放单行标题

compact UINavigationBar 装不下 eyebrow/subtitle。这些字段继续给 Android
自绘 ScreenHeader,iOS 全部 SimpleStackHeader 入口只渲染 title。

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

* fix(mobile): Web 上开关退回 RN Switch

Expo UI 的系统 Switch 只在 iOS/Android 挂载;Web 继续用 React Native Switch,避免 pnpm --filter mobile web 路径挂上没有原生 toolkit 的组件。

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-08-29 00:33:25 +08:00
Dash
a3b3e7ebc3 feat(mobile): 支持将对话分享为图片 (#2188)
* feat(mobile): support conversation image sharing

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

* fix(mobile): harden conversation image sharing

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

* fix(mobile): improve conversation image sharing reliability

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

* feat(mobile): bundle rich content assets for sharing

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

* fix(mobile): preserve visible content in shared images

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

* fix(mobile): harden shared conversation rendering

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

* fix(mobile): exclude collapsed messages from share

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

* fix(mobile): streamline conversation share rendering

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

* fix(mobile): harden conversation share fallback

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

* fix(mobile): guard screenshot sharing overlays

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

* fix(mobile): keep share exports current

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

* fix(mobile): keep collapsed share exports visible

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

* fix(mobile): close share review gaps

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

* fix(mobile): preserve collapsed share previews

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

* fix(mobile): bound collapsed share projections

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

* fix(mobile): keep share state current

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

* refactor(mobile): simplify share projections

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

* fix(mobile): keep share export active during branding load

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

* fix(mobile): avoid decoding share attachment images

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

* fix(mobile): harden share resource lifecycles

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

---------

Signed-off-by: Dash <dashhuang@gmail.com>
2026-08-10 09:35:43 +08:00
Lizi
09971745e2 fix(mobile): 移除 expo-observe,修复无 EAS projectId 的安卓包启动必崩 (#364)
fix(mobile): 移除 expo-observe,修复无 EAS projectId 的安卓包启动必崩

expo-observe 在 manifest 缺少 EAS projectId 时 Android 原生层初始化直接崩溃,自建线/本地构建 100% 复现。该遥测从未在自建线工作过且产品决定不需要,整体移除。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-25 02:47:57 +08:00
Lizi
e1b17eac25 feat(mobile): 补齐移动端多语言(zh-CN/en/ja/ko,默认跟随系统,设置内可切换) (#260)
与 desktop 对齐引入 i18next + react-i18next:
- src/i18n 基础设施:同步 init、四语按区域分文件组装单一 common namespace、
  AsyncStorage 语言偏好(只存显式 override,跟随系统=删除存储项)、
  LocaleProvider/useLocale、手写 catalog(login/newSession/fullAccess)override 桥
- 设置页新增「语言」分组:跟随系统 + 四语单选,切换即时生效并持久化
- 全部界面硬编码中文迁入 catalog(~1080 key × 4 语,zh-CN 与迁移前逐字节一致);
  Relay 状态等原共享包中文直出文案改为 mobile 侧 i18n
- 新增四语平价 vitest 门禁(key 集/非空/占位符一致)与偏好存储测试;
  vitest 全局 alias expo-localization mock;涉中文断言测试固定 zh-CN

验证:根 pnpm test:unit 全过;pnpm --filter mobile typecheck 干净;
mobile 全量 2186 测试通过;独立审查(切换链路/语言冻结/残留扫描/翻译抽查)通过

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 12:15:21 +08:00
Lizi
e69e0cac75 Migrated from makecindy/cindy-temp#502 (#232)
Transplanted onto the open-source root; diff identical to the original PR.

Co-authored-by: Dash <dashhuang@gmail.com>
2026-07-24 09:13:52 +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