Commit Graph

20 Commits

Author SHA1 Message Date
Dash
e405db1be9 docs(dev-rules): 协议兼容拆成必读规则页与每项能力一份记录
protocol-compatibility.md 已长到 555 KB、194 节:文档抬头落在第 1290 行,
§1 的规则被挤到无关小节下面,Review 清单在第 3967 行。每个协议改动都要求
先读它,但没有 Agent 能读完;新记录又都往同一处插,近 30 天 453 次提交改这
一个文件,彼此反复冲突。

- 原页只留对所有跨端改动都成立的规则(事实来源、§1–§3、自建中转同步维护、
  Review 清单),10 KB;新增一节说明检索与新增记录的做法。
- 205 项能力记录各占 protocol-compatibility/ 下一个文件,正文逐行保留,只
  提升标题层级并修正相对链接;11 个挂在无关章节下的小节独立成篇。
- 7 处「上一节/见下文」改为指向具体文件;其他文档里 29 处按章节名或锚点
  的引用改指新文件。
- dev-docs 契约新增一条:规则页不超过 16 KB、记录一文件一标题,防止再次堆回。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 00:33:32 +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
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
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
Zhao Dengfeng
35cc6588f9 docs(desktop): correct root development command
Signed-off-by: Zhao Dengfeng <2370187+zhaodengfeng@users.noreply.github.com>
2026-10-26 18:28:48 +08:00
Dash
75089bf711 refactor: organize session workflow boundaries and developer guidance
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-24 01:20:13 +13: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
bobo
8cb21fed2e fix(auth): 将验证码重发倒计时与服务端统一为 60 秒 (#5244)
* fix(auth): 将验证码重发倒计时与服务端统一为 60 秒

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(auth): 同步登录 QA 预览的 60 秒倒计时

Signed-off-by: xd-bobo <caojianbo@xd.com>

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-09-29 19:38:09 +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
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
Dash
e78f44ae56 feat(i18n): 支持繁体中文语言 (#2148)
* feat(i18n): add Traditional Chinese locale support

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

* fix(i18n): align Traditional Chinese catalog keys

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

* fix(i18n): align mobile language order and release fallback

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

* fix(i18n): sync Traditional Chinese keys with main

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

* fix(i18n): polish Traditional Chinese copy

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

* fix(i18n): sync Traditional Chinese stream copy

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

* fix(i18n): sync Traditional Chinese resume copy

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

* fix(i18n): sync Traditional Chinese help copy

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

* fix(i18n): unify Traditional Chinese plugin terminology

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

* fix(i18n): localize session notifications

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

* fix(plugin): preserve manifest locale compatibility

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

* fix(i18n): close Traditional Chinese review gaps

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

* fix(plugin): clamp app-context locale values

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

* fix(i18n): localize presets and secure login preview

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

* fix(desktop): scope nested dialog dismissal

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

* fix(desktop): make dismissal and title formatting deterministic

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

* fix(i18n): unify Traditional Chinese privacy policy term

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

* fix(docs): align login QA locale coverage

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

* fix(docs): derive locale QA from supported languages

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

* fix(i18n): sync Traditional Chinese with latest main

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

---------

Signed-off-by: Dash <dashhuang@gmail.com>
2026-08-10 03:25:41 +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
Dash
3499ad433d feat(desktop): 支持 RSB 浏览器 Passkey 登录 (#1826)
* feat(desktop): 支持 RSB Passkey WebAuthn

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

* test(mac): normalize provisioning profile paths on Windows

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

* fix(desktop): resolve RSB native popup WebAuthn owners

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

* fix(build): preserve explicit empty WebAuthn team id

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

* test(mac): strengthen provisioning profile command assertions

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

---------

Signed-off-by: Dash <dashhuang@gmail.com>
2026-08-05 23:59:34 +08:00
Zymonody7
5c0585c1b1 docs: fix dangling internal links and widen the link gate (#1502)
* docs: fix dangling internal links and widen the link gate

`docs/legal/README.md` and `docs/README.md` still linked the two WeChat
compliance records that 1260b7c4 ("chore(docs): remove wechat related
documents") deleted, and `openai-chat-dual-channel-plan.md` pointed at two
files that never existed in this repository's history.

- `docs/legal/README.md`: drop the now-empty "人工维护的合规记录" section.
- `docs/README.md`: drop the index row for the deleted record.
- `openai-chat-dual-channel-plan.md`: `subscription-bridge.md` has no
  successor doc, so reference `packages/anthropic-responses-bridge` (whose
  description covers exactly that Anthropic Messages -> OpenAI Responses
  bridge) instead; repoint `configuration-design-principles.md` to its
  successor `dev-rules/configuration-and-overrides.md`, which owns the
  override / restore-default semantics the sentence relies on.

The existing "developer documentation links resolve" test only covered
CONTRIBUTING plus three canonical docs, so none of these were caught. Widen
it to AGENTS.md, both CONTRIBUTING files and every markdown file under
`docs/` (5 -> 47 documents).

Extending the coverage requires ignoring code, because design-rules/DESIGN.md
demonstrates markdown link syntax inline (`[x](y)`). `stripCodeSpans` removes
fenced blocks before inline spans (fences contain backticks, so the reverse
order eats the fence itself). Links written as [`foo.md`](./foo.md) keep
working: stripping leaves [](./foo.md) and the target is still inside the
parentheses.

Note: the WeChat connector itself still ships (`packages/wechat-ilink`); this
change only removes references to files that are already gone. Whether those
compliance records should be restored is a maintainer/legal call, not part of
this change.

Verification:
- `node --test scripts/__tests__/dev-docs-contract.test.mjs` -> 6/6 pass.
- Negative check: re-adding one dangling link fails the widened test with
  `broken local link in docs/legal/README.md: ./wechat-open-sdk-compliance.md`;
  reverting it goes back to green.
- `pnpm test:unit` -> 56 workspaces PASS, 0 FAIL.
- No package with a `typecheck` script is touched (docs plus the root
  `scripts/` test), so the per-package typecheck step is a no-op.

Signed-off-by: Zymonody7 <2196905367@qq.com>

* test(docs-contract): strip indented fences and multi-backtick code spans

Review follow-up (Greptile): `stripCodeSpans` only recognised fences at column
0 and single-backtick inline spans, and both forms already exist in the docs it
now checks:

- indented fences (inside list items) — `docs/design-rules/DESIGN.md:435` and
  `docs/dev-rules/pi-remaining-work.md:27`;
- a multi-backtick span whose content itself contains backticks —
  `docs/product-rules/task-and-conversation-naming.md:390`
  (`` `${n} 个会话` ``).

Neither currently holds markdown-link syntax, so the gate passes either way.
The risk is latent: adding a link example inside one of them would fail the
gate on something that is not a link.

- Fences now allow leading whitespace on both the opener and the closer.
- Inline spans pair on equal-length backtick runs, so a span containing
  backticks is removed whole. Deliberately does not cross newlines — a stray
  backtick must not silently disable link checking for the rest of the file.

Verification:
- `node --test scripts/__tests__/dev-docs-contract.test.mjs` -> 6/6 pass
  (unchanged across all 47 documents).
- Behaviour spot-checks on the stripper: links inside an indented fence, inside
  a single-backtick span, and inside a multi-backtick span are all dropped,
  while a plain link and [`foo.md`](./foo.md) both survive.
- Negative check still holds: re-adding a dangling link fails with
  `broken local link in docs/legal/README.md: ./wechat-open-sdk-compliance.md`.
- `pnpm test:unit` -> 56 workspaces PASS, 0 FAIL.

Signed-off-by: Zymonody7 <2196905367@qq.com>

---------

Signed-off-by: Zymonody7 <2196905367@qq.com>
2026-08-04 01:00:52 +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
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