Commit Graph

62 Commits

Author SHA1 Message Date
Lizi
ccb06878f6 Merge pull request #10260 from makecindy/cindy/steady-euclid
fix(notifications): 清理跨设备已读和已回答的手机推送
2026-11-13 06:25:19 +08:00
Dash
9ccaa3a857 Merge main and preserve Dynamic Island resume behavior
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 09:49:13 +13:00
Dash
4770682803 Merge origin/main into cindy/steady-euclid
Preserve notification action payloads and request-specific event identities alongside exact notification retirement IDs and alert fallback identities.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 09:48:55 +13:00
Dash
8ff662d14a fix(mobile): preserve current screen when returning from Dynamic Island
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 09:40:46 +13:00
Dash
ef68bc35c1 fix(notifications): clear mobile pushes after cross-device handling
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 08:30:35 +13:00
Dash
ce3e341ea3 feat(notifications): answer questions and act on task alerts from the notification
Task alerts on iPhone can now be acted on without opening the app:

- A question the agent asked shows a custom card when the alert is expanded
  (task, full question, what each option means) with one system button per
  option, plus "Reply" and "Open task".
- A finished task can be replied to from the alert.
- A low-risk permission request whose whole operation fits the alert offers
  "Allow once" (unlocked device only) and "Deny".

The press is handled in the background: the app reconnects, re-reads the
pending request from the computer, and answers only the request the alert
described. A press that does not get through is reported with a local alert.
Login credentials become readable after first unlock so this works while the
phone is locked; a locked background cold launch is held instead of being
treated as signed out.

The agent Live Activity also gains a compact layout for the Apple Watch Smart
Stack.

Protocol: NotifyPayload gains an optional `action`. Old servers and apps
ignore it.

Native changes (new content extension target, background-work module,
notification categories, Keychain accessibility) change the mobile runtime
fingerprint and need a native release.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-12 18:05:27 +13:00
Dash
eed830cc3c fix(mobile): 保留锁屏实时活动内容并改善过期恢复
Preserve confirmed activity content across background suspension, use state-aware freshness windows, and recover stale push registrations in foreground without replacing server-owned aggregates.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 13:49:05 +13:00
Lizi
01c41cc4c7 merge: integrate current main for Agent-Net delivery
Resolve desktop and Node Host module extraction, preserve scheduler provider-group bootstrapping and both notification lifecycles, and register encrypted-only settings in search.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-10 22:53:46 +08: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
Dash
be16fb5f1a fix(mobile): open home from the collapsed Dynamic Island
Keep explicit task links in the expanded island and lock-screen presentation. Route stale activity taps home and preserve the installed app scheme.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 20:46:15 +13:00
Dash
dcc5f089c4 chore: merge main into credits balance PR
Sync with origin/main at 0c867dd037 to rerun CI against the current base.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 12:08:36 +13:00
Dash
48ba7bfb2c fix(mobile): 同步桌面素材源哈希并澄清过期口径
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 06:29:28 +13:00
Dash
5f48dccbd6 merge: 同步 main 并保留两项增量协议文档
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 04:49:20 +13:00
Dash
6e05a48a0c fix(mobile): 使用桌面 Cindy 角色作为灵动岛形象
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 03:37:29 +13:00
Dash
6f568ea471 fix(mobile): 补齐灵动岛未读结果计数与展示优先级
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 03:19:06 +13:00
Dash
7c6ce0f40b feat(mobile): 添加复用桌面美术的 iPhone 任务灵动岛
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 00:25:29 +13:00
Dash
e44316f8c3 fix(mobile): keep communication entitlement on containing app
Xcode cannot provision Communication Notifications on the notification service extension. Retain it on the application and preserve the extension implementation.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-09 10:33:04 +13: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
Dash
26c7169308 feat(mobile): 支持 iOS 与 Android 锁屏余量和每日用量组件 (#9130)
* feat(mobile): 支持 iOS 锁屏余量和每日用量组件

Add circular, rectangular and inline widgets with horizontal quota bars, provider icons, lowest-quota selection and actual daily usage trends.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(mobile): 保留锁屏余量填充和完整辅助朗读

Constrain the emphasized bar gap at 2x and share reset timing between single and paired inline readings.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* feat(mobile): 安卓用量组件支持放到原生锁屏

两个组件声明 home_screen|keyguard,在 Android 16 QPR2 起的原生锁屏组件页
可直接添加,沿用桌面版式、账号排序与数据来源设置;锁屏点击由系统先要求解锁。
文档记录三星 One UI 8.5 原生锁屏不放行第三方组件的实测结论与模拟器验证方法。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 10:37:57 +08:00
Dash
3907f4f004 fix(widgets): stack remaining credits and preserve accessible precision
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-05 13:21:32 +13:00
Lizi
e98940c6d8 Merge pull request #8255 from makecindy/dash/iphone-widget-account-picker
feat(quota): 订阅余量小组件可设排在前面与隐藏的账号,液面加圆角
2026-11-02 10:17:41 +09:00
Chris
64860e212b fix(mobile): reconcile native share copy after main sync
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-01 23:34:34 +08:00
Chris
e43f81a01d Merge current main to unblock share PR checks
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-01 23:30:08 +08:00
DavidShen
986a748f22 fix(i18n): 补齐客户端原生界面与附带内容的十语支持
Signed-off-by: DavidShen <david@xd.com>
2026-10-31 22:43:13 +08:00
Dash
c27ce630cc fix(quota): 小组件账号匹配不再单凭连接 id,全部隐藏时保留排序
- 跨电脑认同一账号按「图标 + 名字」,id 只作确认:各电脑内置 OpenAI 连接 id 相同而登录账号可不同,不能按 id 回退。
- 每个选择都从完整来源里匹配再去重,重复选择不会回退到同名的另一个账号。
- 全部隐藏时显示全部,仍保留「排在前面」的顺序,与 Mac 面板一致。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:47:42 +13:00
Dash
c2bf9eda8b feat(quota): 订阅余量小组件可设排在前面与隐藏的账号,液面加圆角
- iPhone「订阅余量」编辑页新增「排在前面的账号」(小/中/大最多 4/6/7 个,可拖动、删除)与「隐藏的账号」;
  其余账号(含以后新加的)按电脑顺序跟在后面,全部隐藏时显示全部,与 Mac 菜单栏设置同一思路。
- 所选账号存为 id + 图标 + 名字:各电脑给同一订阅的 id 不同时按图标与名字找回;重复选择只显示一次。
- 小号版式只对其余账号做「订阅优先」,排在前面的照原样显示。
- iPhone 小组件与 Mac 菜单栏面板的液面顶角改为 4pt 圆角(液面很低时按高度缩小),Mac 液面晃动时圆角跟着波形。
- 编辑页文案补齐 10 种语言;DESIGN.md 与 mobile-development.md 登记规则。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:11:17 +13:00
Chris
dc8078aa33 Merge current main and refresh generated share design inventory
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

# Conflicts:
#	docs/design-rules/design-inventory.md
2026-10-31 15:43:30 +08:00
Chris
026fe68958 fix(mobile): restore share-to-new-task routing and simplify destination UI
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 15:39:17 +08:00
Dash
9c4a70263b fix(quota): 账号切换不串数据、拒绝状态保持红色、组件旧用量显示真实日期
- 汇总构建结果绑定账号,切换账号期间手机请求拿不到旧账号数据
- 电脑仍列出但未读到有效读数的账号视为读取失败,保留旧读数并重试
- 输入框胶囊:服务端明确拒绝时整条变红,不被黄色窗口挡住
- 手机组件:同一账号冷启动保留快照,按账号 id 而非代次清理
- 自动来源只在全部电脑过旧或被固定时才换成「需要更新」
- 每日用量快照跨天后显示实际日期,不再标「今天」
- 同步 modelSourceDetails 测试到 ≤30% 变黄的新门槛

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:54 +13:00
Dash
465054c2c7 fix(quota): quota red is #EF4444 everywhere
#D91F37 read too dark on dark widgets. The Mac panel, the iPhone widgets and the mobile
quotaBarCrit use the desktop's existing #EF4444, so the desktop --quota-bar-crit token stays
on --error-flat with no change.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:53 +13:00
Dash
393196ee31 feat(mobile): widgets in German, Spanish, French and Portuguese
Matches the app's ten languages; wording follows the desktop panel, with its Spanish word
order and German "bill" slips corrected.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:52 +13:00
Dash
05f2eb3f0a feat(quota): no reset reminder for the Cindy period quota; widget ja/ko
The Cindy period quota is a budget, so its reset time never colors. The widgets and their
edit sheet are translated into Japanese and Korean, using the desktop panel's wording.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:52 +13:00
Dash
046ac1c57d feat(quota): color the reset time when quota will go unused
A window longer than a day that will not be used up at the current pace colors its reset
time on the Mac panel and the iPhone widgets: a day or less to go is yellow, six hours or
less is red. A period quota uses its daily burn. The widget counts it from the current time.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:51 +13:00
Dash
3d082afcd3 fix(quota): keep numbers in ink on tube surfaces
On the Mac panel and the iPhone widgets only the liquid, its glow and the detail ring
carry the quota color; percentages, amounts and reset times keep their ink.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:50 +13:00
Dash
7b9b2c6111 feat(quota): one yellow/red rule for every quota surface
- Add @cindy/maker-shared/quota-level: the tightest window turns yellow at 30% left and
  red at 10%; a provider warning is at least yellow, exceeded/rejected is red.
- Use it in the menu bar view model (and so the iPhone widgets), the Desktop quota bar,
  hover card, composer chip (Codex windows now color too) and model picker, and the
  mobile model picker and session menu (whose warning was invisible).
- Colors: yellow #F3A115 and red #D91F37 everywhere; Desktop --quota-bar-crit now
  aliases the status-family --card-status-error. Plenty stays neutral in the apps and
  the Mac panel; the iPhone widget liquid is teal.
- DESIGN.md and the decision log record the rule.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:50 +13:00
Dash
33e0ecc483 feat(quota): standalone quota overview, offline computers, widget data source
- Move collection, caches and rebuild cadence out of the macOS menu bar panel into
  quota-overview/service.ts; the panel holds it, phone requests lease it, so any
  platform answers the widgets whether or not a panel runs.
- Keep an unreachable computer's accounts with their last reading for up to 3 days,
  marked with their age and never recommended; retry failed remote reads after 1 min.
- Store each computer's widget state in the App Group; widgets pick a data source
  (automatic = the computer that answered last, or a specific computer).

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:49 +13:00
Dash
c9ba3d2d9c feat(mobile): 每日用量小组件以 token 为主,金额作补充
大字、日均、柱高、分模型列表与占比都改为 token,订阅等值金额放到小字;模型按近 30 天
token 排名,与用量历史的模型配色口径一致。余量组件里的近 30 天卡片仍按金额。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:49 +13:00
Dash
96a18fba52 feat(mobile): 每日用量小组件按模型拆分
快照附带近 30 天最忙的 5 个模型与其余合计的逐日数值(只给小组件,不发给菜单栏
helper);用量组件的柱图、中号的今日列表与大号的占比条改为按模型拆分,配色沿用
用量历史的模型色;旧电脑没有模型数据时仍按 Agent 拆分。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:49 +13:00
Dash
573b7640a3 feat(mobile): 只有一个余量来源时,桌面小组件改用 Mac 详情页的圆环
快照为每个来源附带菜单栏详情页的圆环数据(各窗口余量、中心数值、图例);
组件只有一个来源时按小 / 中 / 大三种尺寸画圆环,代替一排里孤零零的一根试管。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:49 +13:00
Dash
985214bc11 feat(mobile): iPhone 桌面小组件(订阅余量、每日用量)
新增 WidgetKit 扩展 CindyHomeWidgets,照 Mac 菜单栏面板的试管、数字字体与配色绘制
订阅余量与每日用量两种组件(小 / 中 / 大)。Desktop 新增只读通道
device-link:usage-widget:snapshot:v1,投影菜单栏面板已构建的视图;手机 App 在前台
时读取快照写入 App Group 并刷新组件,切换或退出账号时清空。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:48 +13:00
Chris
4821c50324 fix(chat): show readable notifications with precise conversation context
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-24 22:26:23 +08:00
Chris
1be2cb1f10 feat(chat): connect cross-platform notifications and message responses
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-24 17:57:26 +08:00
Chris
64155643b5 fix(mobile): decode shared file URL data and raw image types
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-21 11:54:21 +08:00
Chris
3e1ffa0c0d fix(mobile): classify shared file URLs from original content
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-21 11:17:42 +08:00
Chris
993df6e576 fix(mobile): persist unreadable share fences and retain image exports
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-21 01:42:01 +08:00
Chris
85407a84c1 fix(mobile): retry share rejection cleanup and preserve property lists
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-21 01:22:16 +08:00
Chris
4b5f9d8679 fix(mobile): retain shared URLs and track native share resources
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-21 01:01:39 +08:00
Chris
aab48b5454 fix(mobile): fence shared content and preserve original exports
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-21 00:23:53 +08:00
Chris
fcb5e1ccd3 fix(mobile): preserve concrete text file share exports
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-20 23:53:52 +08:00