Commit Graph

53 Commits

Author SHA1 Message Date
MagicLizi
339c0e7b1e ci: recover Linux test tools from stalled Ubuntu mirror
Use reachable official Ubuntu mirrors and bound apt network waits.
Keep every Linux shard and required check intact.

Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-11-12 23:31:16 +08:00
Lizi
739e92efdf fix(subscription-accounts): 多账号按供应商组规则分配、限流与换号
Apply account-pool settings to implicit native subscription tasks. Share hard concurrency limits with provider groups, reserve account handoffs through runtime takeover, and fail over unavailable accounts with context recovery and persisted cooldowns.

Resolve Codex defaults through connected-provider routing, clear stale cooldowns on re-login or removal, keep read-only quota separate from concurrency admission, and localize desktop/mobile capacity errors. Use the Kernel Archives Ubuntu mirror with the existing Ubuntu signature verification so Linux checks can install their test tools.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-12 00:32:45 +08: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
Dash
5246c47588 ci(host): typecheck the Host and document the shared-code convention
- host-regressions now also runs `pnpm --filter @cindy/host typecheck` once (on
  Linux; types are platform independent) inside the change-selected job that
  verify already requires. A shared desktop body that gains a port wired only
  in the desktop assembly passes the desktop checks but is caught here instead
  of at runtime in the Host.
- architecture-invariants §5 records the convention for bodies shared by the
  desktop and the Node Host: no direct Electron dependency, desktop assembly
  in *.desktop.ts, factory port injection, wire a new dependency into both
  launchers, run the Host test and typecheck. AGENTS.md and the dev-rules
  README point to it.
- headless-runtime-plan.md: the merged batches no longer say "local,
  unpublished".

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 00:09:46 +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
Dash
042e95d7ed Merge pull request #9316 from joei4cm/fix/codex-auth-windows-symlink-9277
fix(desktop): stop sharing Codex auth with Windows hardlinks
2026-11-10 12:46:34 +13:00
Dash
2d3fcf3a8f fix(skills): version bundled resources and detect reused versions
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 11:33:09 +13:00
Cindy
bfc51dd187 fix(codex-auth): consume Windows staging files during exclusive publication
Use same-directory no-overwrite moves for capture, publication and recovery. Cover post-publication logout and filesystems without hardlink support, and exercise the Windows move in CI.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Cindy <cindy@Cindys-Mac-mini.local>
2026-11-10 03:42:33 +13:00
Dash
4a88fe2082 Merge pull request #9246 from iamcheyan/feat/cindy-host
feat(host): add an opt-in experimental browser client
2026-11-10 00:22:21 +13:00
Dash
3277176fe0 ci: 缓存 bundled ripgrep,避免 GitHub Releases 504 让单测分片整批变红
各单测分片、Windows 自测和 Git 集成任务都各自从 GitHub Releases 下载
ripgrep,没有缓存;备用 CDN 又没有 15.1.0,下载一返回 504 就整批失败。
在每处 Install bundled ripgrep 前缓存 apps/ripgrep-bin,key 随
tools/ripgrep/latest.json 的 pin 版本变化,命中后 install:ripgrep 按
.version 标记直接跳过下载。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-09 09:54:59 +13:00
Dash
36ef5cb15a ci(host): select cross-platform regressions by changed paths
Skip the Host matrix for unrelated changes while retaining fail-closed verification for PRs, merge groups and main pushes.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-08 13:40:12 +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
cc99b6b059 fix(host): harden browser pairing, credentials and task execution for the experimental web client
Address the open review findings on the Host web client without changing how
the desktop starts: the desktop no longer auto-discovers and joins a running
Host (only an explicit CINDY_HOST_API does).

- pairing: one-time pairing exchanges for a session cookie; the home page no
  longer issues credentials or embeds the API token; Host/Origin checks,
  session expiry closes event streams, logout clears cookies.
- credentials/accounts: provider keys are scoped by account/provider/engine and
  never fall back to the gateway key; model catalog cache is isolated per
  account; logout reuses the desktop saved-account tombstone policy; macOS and
  Windows credentials go through a private Electron safeStorage helper.
- execution: input queue claims its slot before async preparation, keeps input on
  failure, stops cleanly while preserving streamed output, pauses on save
  failure, and deleting a task stops and clears it; SDK session context is
  restored after refresh and Host restart.
- web shim: unsupported actions fail instead of reporting success.
- desktop explicit Host mode: auth, interaction and input-queue events reach the
  existing channels; shared storage cores (project aliases, recent workdirs,
  ghost snapshot worker) are used by both desktop and Host.
- CI: Host regression matrix on macOS, Windows and Linux; fix the task tag
  migration test to use the new migration config.

Out of scope here: a windowless Electron helper and custom MCP storage
extraction. Simulated OS tests do not replace real keychain/DPAPI or
three-platform validation; see docs/host/pr-9246-completion.md.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-08 00:31:13 +13:00
DavidShen
8a49c3febd Merge origin/main into cindy/zealous-kernighan
Resolve settings search definitions and preserve dynamic plugin shortcuts.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-05 15:06:37 +08:00
Dash
3f7ec9e449 ci(database): gate real migration replay on database changes
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-04 21:38:11 +13:00
DavidShen
c249bca6b4 merge: sync main and regenerate design inventory
Signed-off-by: DavidShen <david@xd.com>
2026-11-03 00:46:38 +08:00
DavidShen
ba19c720db fix(desktop): 统一设置搜索定义并修复 Markdown 预览快捷键
Signed-off-by: DavidShen <david@xd.com>
2026-11-02 20:29:16 +08:00
kirozeng
0063d16a07 chore(design): 设计台账只保留登记与人工区,统计改为按需生成
台账 GENERATED 区块移除可达组件、样式来源与 Token / 裸颜色 / 裸圆角统计,
只留 surface ID、平台、标题、生产入口与路由覆盖。统计随任意样式改动漂移,
每个 surface 只占一行,改到同一 surface 的 PR 合并时必然冲突且只能重跑
生成器解决;这项检查也不拦欠账增加。

- check:design-inventory 保留全部登记结构检查,CI 步骤改名为 registration
- 新增 pnpm design:inventory:report,统计输出到 gitignore 的 tmp/
- 治理 §2.1 / §9 与设计系统索引同步更新

Signed-off-by: kirozeng <kirozeng@gmail.com>
2026-11-02 13:39:11 +08:00
Chris Zhang
3e93bb8e47 docs(readme): add daily star history with a quiet Cindy flourish (#7236) 2026-11-01 11:44:39 +08:00
MagicLizi
26121008ee fix(test): preserve regression guards and complete hygiene checks
Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-10-16 15:22:16 +08:00
MagicLizi
e2f05349d4 perf(ci): speed up unit test gate and add hygiene checks
Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-10-16 13:03:56 +08:00
Lizi
d1fc07e23a ci: run client-ci for merge queue groups (#6089)
Required checks (verify, Windows unit tests) must report on merge_group events once main requires a merge queue; otherwise every queued entry waits until the check timeout. Use the merge group's base_sha as the comparison base for design colours and SQLite migrations.

Signed-off-by: Lizi <jiali@magiclizi.com>
2026-10-15 10:02:40 +08:00
Chris Zhang
757d9797d5 refactor(plugins): 移除内置 iOS 模拟器并引导存量用户迁移 (#5412)
* refactor(plugins): retire embedded iOS simulator with migration guidance

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

* fix(plugins): show retirement notices before acknowledging them

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

* fix(plugins): include retired state in discovery error types

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

* test(worktree): preserve legacy Windows lease path normalization

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-06 09:25:03 +08:00
Dash
891a66c7bb feat(linux): support managed user installs and updates on Arch/Omarchy (#3922)
* feat(linux): support managed user installs and updates on Arch/Omarchy

Add verified user-owned installation transactions, stable desktop and login callbacks, and keyring selector preservation. Document migration and release acceptance; cover native updater failures and Linux test fixtures.

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

* fix(linux): recover managed install transaction

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-17 18:59:15 +07:00
kirozeng
881f07acf8 ci(design-system): DS-7 启用成熟范围的设计检查
Signed-off-by: kirozeng <kirozeng@gmail.com>
2026-09-10 12:21:16 +08:00
Dash
30a91a4ce9 test(device-link): 恢复拆仓后的连接集成测试并接入 CI (#3943)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-08 13:51:08 +08:00
DavidShen
04394cfbde test: retain platform gates and expose explicit e2e entry
Signed-off-by: DavidShen <david@xd.com>
2026-09-08 12:45:45 +08:00
DavidShen
9daddddfb3 ci: preserve pnpm entry when running workspace test shards
Signed-off-by: DavidShen <david@xd.com>
2026-09-08 12:25:58 +08:00
DavidShen
fc522e55e3 test: stabilize test scheduling and consolidate validation cases
Signed-off-by: DavidShen <david@xd.com>
2026-09-08 12:11:17 +08:00
Chris Zhang
96e1202e73 feat(mobile): 补齐伙伴与跨电脑远程控制 (#3912)
* feat(bots): 伙伴档案、Home 与轻量运行时基座

伙伴是永久 Profile + 可替换物理 Session 的两层结构:SOUL/记忆/自有技能落在
账号隔离的 Bot Home,canonical 卷每日 04:00 CAS 换代并归档,模型走 1-5 项
候选链,只有「候选不可用」才推进。运行时按 allowlist 装配能力:不继承
Cindy 全局 Skill/MCP/项目上下文;pi 关闭原生 subagent 扩展并传
--no-context-files,codex 置 project_doc_max_bytes=0,显式挂载 docs 工具集
时 cindy_docs 才进入 MCP allowlist —— 提示词承诺与工具面同进同退。
数据库为 6 张只增量新表(migration 0101)。

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

* feat(bots): 委派协作、交互卡与用户不可见的完成信号

协作只有一个直接入口 collaborate_with_bot:status 查空闲,notify 发不追踪
的消息,delegate 委派给另一个伙伴,start_task 把大活开成一条真正的 Cindy
任务(出现在主任务列表、走自己的权限门)。两种委派共用同一张 bot_delegations
表(target_bot_id 为空即 Cindy 任务)、同一张实时协作卡与同一条完成信号。

完成信号重做:不再往时间线落机读文本,改为 synthetic-trigger 隐藏行 ——
对模型是接手指令,对用户不可见,可见终态由协作卡承载;发起方父卷被每日
换卷归档时改投该伙伴当前 canonical 卷,不静默丢失。委派服务不再依赖
automation 上下文、token 预算层、投递 outbox 与 IM 路由。

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

* feat(bots): 桌面聊天面——名册、对话与最小设置

左侧伙伴名册(IM 式未读)、复用真实任务与 ChatInput 的聊天面、@伙伴结构化
引用,以及只剩三页的设置(成长/模型/维护)。创建收敛成「名字 + 自动色相
头像 + 人设文本」,不暴露 Session、压缩、fallback 等工程概念;记忆与自学
技能在设置页可见、可删。五语言 i18n 同步。

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

* docs(bots): 产品契约、设计规范与术语

《Cindy 伙伴运行时》契约与工程完成矩阵按 v1 范围重写:Bot Home 权威边界、
每日换卷、模型候选链、能力 allowlist、委派与完成信号的呈现契约;设计规范
登记伙伴头像色相与未读徽章的窄作用域 token,并把头像图收敛为保留命名空间。

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

* feat(bots): 伙伴会话不受通用回收与生命周期入口影响

worktree 回收器与通用任务生命周期入口跳过 source='bot' 的会话 —— 伙伴卷的
归档与替换只归 Bot Renew 管;崩溃恢复快照剥离 Bot 宿主瞬态引用。

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

* chore(bots): 清理砍单后的术语表残留与死注释

术语表移除已退出 v1 的「作品」「日程」两条,Teammate 描述收敛到当前范围;
botPersona 不再引用已删除的模板文件。

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

* feat(bots): unify tracked call orchestration

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

* fix(bots): simplify roster and create teammates directly

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

* fix(bots): show Cindy calls as task cards

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

* feat(bots): add bounded private conversations

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

* fix(bots): route direct teammate requests to private chat

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

* fix(bots): keep direct message traces visible

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

* fix(bots): ignore direct messages for unread alerts

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

* feat(mobile): browse host-managed resources

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

* refactor(bots): unify teammate profile settings

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

* refactor(bots): show teammate settings on one page

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

* refactor(bots): simplify teammate settings

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

* fix(bots): restore professional teammate presets

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

* fix(bots): restore teammate ability presets

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

* fix(bots): equip built-in partners with skills

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

* feat(bots): present generated files as usable artifacts

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

* fix(bots): separate session tasks from bot messages

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

* refactor(bots): stabilize tasks and communication

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

* fix(bots): repair durable messages and verify runtime capabilities

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

* fix(bots): prevent deletion of shared collaboration history

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

* test(bots): accept Windows line endings in navigation contract

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

* fix(bots): prevent sidebar menu misclicks and refine unread display

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

* test(bots): close memory databases before temporary directory cleanup

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

* fix(bots): simplify creation into a dialog with avatar uploads

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

* feat(bots): personalize companion invitations and simplify profile settings

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

* fix(bots): require confirmation by default and restore permission controls

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

* refactor(bots): use static Main imports and inject invitation callbacks

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

* fix(bots): restore model picker scrolling in settings drawer

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

* feat(bots): connect remote companions and use automatic review

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

* fix(bots): scope helper tools to companion sessions

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

* fix(desktop): reject hidden remote companion details

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

* fix(bots): unify remote visibility and omit host artifact paths

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

* fix(mobile): mark companion read after task content is shown

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

* fix(bots): check shared history before deletion preparation

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

* fix(device-link): retain activity updates when authorization queue is full

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

* fix(bots): synchronize deletion and direct message writes

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

* fix: fence companion read receipts and remote private thread viewers

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

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-09-07 12:28:43 +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
JiangJiahao
08edd9efa7 Merge upstream/main into feat/issue-397-ios-simulator-native-framebuffer
Signed-off-by: JiangJiahao <jiangjiahao@xd.com>
2026-08-08 20:58:28 +08:00
fmfsaisai
28ad06d094 ci: 并行拆分 Linux 单元测试 (#2177)
* ci: shard Linux unit tests

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>

* ci: guard protocol before Linux shards

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>

---------

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-08-08 19:40:44 +08:00
dependabot[bot]
5de1fc5db1 chore(deps): bump pnpm/action-setup in the actions group (#2118)
Bumps the actions group with 1 update: [pnpm/action-setup](https://github.com/pnpm/action-setup).


Updates `pnpm/action-setup` from 6.0.9 to 6.0.10
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](0ebf47130e...0977fd9972)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: 6.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-08 12:55:28 +08:00
JustinBao
8970c9cfe8 ci: build model access protocol before checks (#1676)
Signed-off-by: justin <justinbao@outlook.com>
2026-08-08 10:27:26 +08:00
JiangJiahao
ee17ee94c3 Merge remote-tracking branch 'upstream/main' into feat/issue-397-ios-simulator-native-framebuffer
Signed-off-by: JiangJiahao <jiangjiahao@xd.com>

# Conflicts:
#	apps/desktop/src/main/maker-host/index.ts
#	apps/desktop/src/main/usage/__tests__/modelPricing.test.ts
#	apps/desktop/src/main/usage/__tests__/turnCostCalculator.test.ts
#	apps/desktop/src/main/usage/__tests__/usageHistory.test.ts
2026-08-06 13:14:39 +08:00
Kros Dai
168bd4dfdf chore(ci): 更新 code review workflow pin (#1843)
* 🔧 chore(ci): update review workflow pin

- 🔧 track the latest upstream `v1` commit
Signed-off-by: Kros Dai <xdanger@gmail.com>

* 🔧 chore(ci): honor downstream review policy

- 🔧 pin upstream workflow with repository policy support
Signed-off-by: Kros Dai <xdanger@gmail.com>

---------

Signed-off-by: Kros Dai <xdanger@gmail.com>
2026-08-06 11:24:42 +08:00
Chris Zhang
7fcd81e24c ci: reject protocol submodule rollback (#1751)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-08-05 18:22:49 +08:00
JiangJiahao
8d2aed5600 Merge upstream/main into feat/issue-397-ios-simulator-native-framebuffer
Signed-off-by: JiangJiahao <jiangjiahao@xd.com>
2026-08-04 14:33:05 +08:00
Lizi
337453df07 Merge pull request #1371 from zqchris/xdt/auto-bimv92
feat(desktop): 插件页全面改版——已安装/推荐分区、卡片主动作三分、一键全部更新、面板收束
2026-08-03 09:16:41 +08:00
Chris Zhang
ca09428adc ci: verify 的 Typecheck desktop 步骤 heap 提升到 8GB (#1403)
desktop tsc 全量 typecheck 峰值内存随仓体增长突破 4GB:2026-08-02 起
所有 PR 的 verify 在 Typecheck desktop 步骤稳定 OOM(exit 134),含纯
mobile 改动的 PR(#1401 与 android-landscape-drawer-crash 分支双重复现,
失败栈均为 node OOMErrorHandler)。

公开仓 ubuntu-latest runner 内存 16GB,8GB heap 安全;本地同款修法
(NODE_OPTIONS=--max-old-space-size=8192)已验证 typecheck 通过。

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-08-03 02:10:55 +08:00
Chris
45cbd39fd8 fix: address review — 批准绑定入队代际 + 抬高 desktop typecheck 堆上限
扩权批准的代际绑定:
- 代际与账号归属改为**入队时**捕获(上一轮误改成执行时捕获)。等排到自己
  才读当前批次,会让账号切换 / 新批次接管后的旧点击重新绑定到新批次里同
  pluginId 的待确认项上——等于未经批准放行新账号或新 release 的扩权。
  现在代际不符一律作废,账号失配走 voidStaleBatch,绝不改绑。
- 在途批准计数改为**按代际分桶**(inflightByGeneration)。全局单计数下,
  旧代际的在途项会把新批次的收尾拖住:减到 0 时代际已不匹配、跳过收尾,
  新批次就永远不释放 running。每个代际只对自己的桶负责。
- 回归测试补:首项安装进行中切账号并启动新批次 → 旧队列项延迟执行时整体
  作废(install 调用数不变)、新批次的待确认项原封不动仍等用户批准。
  连续批准两项的串行与收尾时序由上一轮用例覆盖。

CI verify 的 typecheck OOM:
desktop 的 tsc 峰值内存已贴着全局 4096MB 上限(本地实测约 4.2GB,
Types ~125 万 / Instantiations ~277 万),runner 上随机 OOM。已排除是本 PR
引入:本 PR 对 apps/desktop/src 净增仅 284 行(3181 插入 / 2897 删除),
移走最大的单个新增测试文件只省 ~5MB、移走 1400 行的插件页组件只省 ~14MB,
skipLibCheck 也早已开启——是整仓类型规模的自然结果,没有单点热点可优化。
给「Typecheck desktop」这一步单独设 6144MB,其它步骤维持全局值。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-08-03 00:50:29 +08:00
DavidShenXD
917d49e677 ci: 并行拆分 Windows 单测门禁 (#1354)
* ci: 并行拆分 Windows 单测门禁

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

* fix(ci): 收窄空分片兼容范围

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

---------

Signed-off-by: david <david@xd.com>
2026-08-02 15:43:24 +08:00
DavidShenXD
2bce883017 test: 建立 Windows 路径单测门禁 (#1348)
* test: 建立 Windows 路径单测门禁

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

* fix(scripts): 统一 Windows worktree 实路径

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

* test(desktop): 覆盖 Windows no-follow 回退

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

* test(desktop): 对齐 Windows 真实路径夹具

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

---------

Signed-off-by: david <david@xd.com>
2026-08-02 13:22:32 +08:00
hushaowu-rh
c240bc7205 feat(device-link): improve continuity after reconnect (#1143)
* feat(device-link): improve continuity after reconnect

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(device-link): harden reconnect continuity

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(device-link): retain offline broadcast tap

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(device-link): clear queued pushes on disconnect

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(device-link): close explicit link queue boundary

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(mobile): invalidate closed device links

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(mobile): require complete reconnect recovery

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(mobile): reconcile authoritative message windows

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(mobile): preserve stable live message tails

Use the host's stable message ordering when reconciling a delayed authoritative latest window so same-timestamp live rows with a larger rowid remain visible.\n\nCo-Authored-By: Claude <noreply@anthropic.com>

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(device-link): cover relay reconnect gaps

Queue subscribed push traffic while the Desktop relay connection is unavailable, and preserve arrival order for same-timestamp live messages whose push frame has no host rowid.\n\nCo-Authored-By: Claude <noreply@anthropic.com>

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(mobile): distinguish retained link state

Track whether a reusable openLink request is still pending so completed retained links cannot indefinitely defer stale mirror cleanup after a DEVICE_OFFLINE verdict.\n\nCo-Authored-By: Claude <noreply@anthropic.com>

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(mobile): retain pending live message tails

Preserve explicitly tracked live assistant identities when an authoritative latest-window fetch resolves at the same timestamp, without retaining stale persisted rows missing from the window.\n\nCo-Authored-By: Claude <noreply@anthropic.com>

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(device-link): close lifecycle reconciliation gaps

Prune untracked stale message tails from authoritative windows, release active topics on revocation, and include accepted topicless modern links in explicit Desktop teardown.\n\nCo-Authored-By: Claude <noreply@anthropic.com>

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* ci: preserve existing PR review workflow

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(mobile): invalidate live ACKs on peer close

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

* fix(device-link): retain modern protocol state

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>

---------

Signed-off-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>
Co-authored-by: Shao-Wu Hu <271197399+hushaowu-rh@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-08-01 23:30:16 +08:00
Kros Dai
c44dfae6aa 🔧 chore(ci): pin pr-code-review to latest v1 (#1246)
- ⬆️ track upstream krosdai/.github v1 (Opus 5)

Signed-off-by: Kros Dai <xdanger@gmail.com>
2026-08-01 02:12:46 +08:00
Kros Dai
466db34682 ci: 接入 Claude Code 自动 code review (#985)
* ci: 接入 Claude Code 自动 code review

调用 krosdai/.github 的复用 workflow,用法参照 krosdai/scaffold 的调用方,
按本仓惯例做三处收紧:

- 钉死 commit SHA 而非浮动 tag @v1。这是跨 org 的复用 workflow,持有
  pull-requests:write 并决定喂给模型的 prompt,tag 可被上游重新指向。
  dependabot 已开 github-actions 生态,升级 PR 照常来。
- 权限收到被调用 workflow 声明的最小集(actions:read / contents:read /
  id-token:write / pull-requests:write),不带 scaffold 里用不到的 issues:write。
- 不在调用方设 concurrency:被调用 workflow 已按 repo + PR number 分组并
  cancel-in-progress。

新增根目录 REVIEW.md 作为审阅口径。被调用 workflow 的 prompt 写死在上游,
REVIEW.md 是本仓唯一的定制入口,主要解决三件事:

- 严重度映射。上游 prompt 用 P1/P2 且 P3 不报,本仓 development-workflow.md §3
  用 P0/P1/P2 且 P2 不报,两套词表撞了;不映射会把本仓口径的「可选优化」
  当成上游 P2 报上来。
- 划掉与 client-ci 等机器门禁重合的检查项,把有限的 finding 名额留给
  凭证落盘、Electron 进程边界、migration companion 脚本、mobile 冷更
  fingerprint、协议兼容、UI 双模式这些机器查不到的部分。
- 写明评审环境限制(cindy-protocol submodule 未 checkout、fetch-depth 100、
  依赖未安装),避免据此误报文件缺失。

定位为建议性检查,不替代人工 review 与 client-ci;fork PR 一律跳过
(取不到 secrets,且外部分支内容进 prompt 有注入面)。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGFHz5VqmoRC73g72KJYET
Signed-off-by: Claude <noreply@anthropic.com>

* docs(ci): 修正 pr-code-review 前置配置注释的自相矛盾

原注释写「缺任一项本 workflow 会失败」,但紧接着的 ANTHROPIC_BASE_URL 是可选项,
不设会走 api.anthropic.com 默认值。改成按必需/可选分别标注,避免排查时被误导。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGFHz5VqmoRC73g72KJYET
Signed-off-by: Claude <noreply@anthropic.com>

* fix(ci): pr-code-review 排除 dependabot 触发的 run

Dependabot 的分支在本仓,同仓判断拦不住它,但 GitHub 把 Dependabot 触发的
pull_request 当 fork 处理:GITHUB_TOKEN 只读,且 Actions secrets 一律不可见
(只有 Dependabot secrets 可见)。于是 job 会照常启动然后必然失败——拿不到
ANTHROPIC_API_KEY,也拿不到 pull-requests:write 去发评论。

本仓 dependabot 每周巡检 github-actions 与 npm 两个生态,上限 5 个 PR,不排除
就是每周固定几条红。

被调用 workflow 的 allowed_bots 输入解决不了这个:它管的是 claude-code-action
自己的 bot 作者校验,与 GitHub 扣发 secrets 是两层;上游注释也写明要禁 bot 就在
调用方 gate。

判定用 github.actor 而不是 pull_request.user.login:约束的实质是「谁触发了这次
run」。人往 dependabot 分支上推 commit 时 run 由该人触发,secrets 与写权限都正常,
那次 review 应该照跑,用 user.login 会连这种情况一起误杀。

若以后希望 dependabot PR 也过 review,把 ANTHROPIC_API_KEY 以同名加到 Dependabot
secrets,再删掉这一行条件即可。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGFHz5VqmoRC73g72KJYET
Signed-off-by: Claude <noreply@anthropic.com>

* docs(ci): 记录 pr-code-review 内层 action 未 pin 的残余风险

钉住 uses: 那一行锁的是「跑哪份 workflow 文件、什么 prompt、什么权限声明、
什么工具白名单」,锁不住「该文件在运行期拉取并执行哪个版本的 action」。

截至 0838103,被调用文件内部是两个浮动 tag——actions/checkout@v6 与
anthropics/claude-code-action@v1——它们运行在持有 ANTHROPIC_API_KEY 与
pull-requests:write 的 job 里。

由 Codex 在 PR #985 上指出。经确认接受该残余风险:这两个分别是 GitHub 与
Anthropic 的第一方 action,tag 被恶意重指向属于行业级事件,不构成本仓特有的
暴露面;代价是与本仓「全部 action 钉 40 位 SHA」的惯例留了一处不一致。

真正的修法在上游(让 krosdai/.github 把内部 action 钉到 SHA,本仓再 re-pin),
本仓改不掉,故只作显式记录。背景见 PR #985 与安全门 issue #999。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGFHz5VqmoRC73g72KJYET
Signed-off-by: Claude <noreply@anthropic.com>

* docs(review): 更正 REVIEW.md 里「PR 模板结构已被机器门禁覆盖」的错误声明

原文把「PR 模板结构」列进「已被机器门禁逐条断言、不要重复上报」的清单,这是
事实错误。pr-template-rules.yml 带 paths 过滤,只在模板文件、校验脚本或该
workflow 自身变动时才跑;check-pr-template-rules.mjs 校验的是
.github/PULL_REQUEST_TEMPLATE.md 这个模板文件本身的二级标题,从不读取任何
具体 PR 的正文。也就是说某个 PR 缺「怎么验证的」这类必填段落时,机器并不会拦。

仍然让自动 reviewer 略过 PR 叙述质量问题,但把理由改成范围划分(属于人工
review 的范围,不该占用有限的 finding 名额),而不是虚假的覆盖声明。

顺带给保留的「引用的设计规范」字段标注了它的实际生效条件(pr-design-basis
仅在变更命中 UI 路径时校验)。

由 Codex 在 PR #985 上指出。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGFHz5VqmoRC73g72KJYET
Signed-off-by: Claude <noreply@anthropic.com>

* docs(ci): 更正 dependabot 排除注释里关于 pull-requests:write 的错误说法

原注释把排除 dependabot 的原因写成「拿不到 ANTHROPIC_API_KEY,也拿不到
pull-requests:write 去发评论」。后半句不对:GITHUB_TOKEN 对 Dependabot 触发的
run 确实默认只读,但那只是默认值——自 2021-10 起这类 run 会遵循 workflow 的
permissions key,而本文件已经声明了 pull-requests:write。

唯一真正卡住的是 secrets:Actions secrets 对 Dependabot 触发的 run 一律不可见,
只有 Dependabot secrets 可见,所以拿不到 ANTHROPIC_API_KEY。排除的结论不变,
但理由要写准——否则日后有人照这条注释去排查,会往权限方向查错方向。

同时给「如何恢复 dependabot review」的说明补了一句:权限侧不需要额外动作,但这
条链路(Dependabot + reusable workflow + permissions key)没有实机验证过,真要
恢复时先拿一个 dependabot PR 实跑确认。

这处错误在 6587787 的 commit message 里也有,历史无法改写,以本注释为准。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGFHz5VqmoRC73g72KJYET
Signed-off-by: Claude <noreply@anthropic.com>

---------

Signed-off-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-07-30 21:32:03 +08:00
DavidShenXD
45c50e4fbc test(desktop): 分层协调多 worktree 测试资源 (#796)
* 改为纯序列化测试

X-XDT-Session: 73eb7a4d-4a83-442a-8df6-32908f69e0f6
X-XDT-Kind: after-edit
X-XDT-Anchor: 054c0e4a-d152-475d-bd8a-98865b4d92e8
X-XDT-Branch: xdt/auto-49r99t
Signed-off-by: DavidShen <david@xd.com>

* 改造测试目录模板避免资源争抢

X-XDT-Session: 73eb7a4d-4a83-442a-8df6-32908f69e0f6
X-XDT-Kind: after-edit
X-XDT-Anchor: 66d1a5a4-d1ce-4655-9338-e5d78e25b65e
X-XDT-Branch: xdt/auto-49r99t
Signed-off-by: DavidShen <david@xd.com>

* 本轮开始前的未提交改动

X-XDT-Session: 73eb7a4d-4a83-442a-8df6-32908f69e0f6
X-XDT-Kind: before-edit
X-XDT-Anchor: 5bd85d7b-6fd6-491e-94dc-d7b92b4d7a96
X-XDT-Branch: xdt/auto-49r99t
Signed-off-by: DavidShen <david@xd.com>

* 本轮开始前的未提交改动

X-XDT-Session: 73eb7a4d-4a83-442a-8df6-32908f69e0f6
X-XDT-Kind: before-edit
X-XDT-Anchor: 79e78304-4a59-4c9d-9c3b-c4c32d223b36
X-XDT-Branch: xdt/auto-49r99t
Signed-off-by: DavidShen <david@xd.com>

* 完善分层测试锁配置说明

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

* fix(test): 保持 Vitest 分层项目的 tier 排除

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

* fix(test): harden layered test coordination

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

* test(desktop): split real git integration tier

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

* ci(test): run desktop git integration tier

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

* test(desktop): remove artifact capture wait overhead

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

* test: normalize source-contract line endings

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

* fix(test): treat reset lock ports as occupied

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

---------

Signed-off-by: DavidShen <david@xd.com>
2026-07-28 23:23:27 +08:00
JiangJiahao
83ed73368c feat(ios-simulator): implement host-owned native simulator
Signed-off-by: JiangJiahao <jiangjiahao@xd.com>
2026-07-27 17:38:20 +08:00
Lizi
1bed48d65b ci(workflows): 钉死 cindy-protocol submodule 来源再拉取
`.gitmodules` 由 PR 分支提供,fork PR 可以把 cindy-protocol 的 url / path 改成任意
仓库,`git submodule sync` 会照单执行,让第三方内容进入 CI 并被 pnpm install 解析。

在 sync/update 之前加一步来源校验:url 必须是
`https://github.com/makecindy/cindy-protocol.git`、path 必须是 `cindy-protocol`,
读不到(如 `.gitmodules` 被删)同样视为不合格并退出 1。

gitlink 的 commit 同样来自 PR,但来源钉死后只能从 makecindy/cindy-protocol 拉取,
外部无法向该仓库推送,所以取到的一定是本组织的历史;因此只校验来源即可。

现有 CI 全程不使用 secrets、权限为 contents: read,本改动是纵深防御,不改变任何
既有验证步骤。

验证:
- 本地 `pnpm test:unit` 全绿(25 PASS / 6 SKIP / 0 FAIL,退出码 0)
- 校验脚本三种场景实测:正常通过(0)、url 被改(1)、`.gitmodules` 被删(1)
- ci.yml YAML 解析通过,17 个步骤

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-07-26 10:27:10 +08:00