Commit Graph

3 Commits

Author SHA1 Message Date
fmfsaisai
53110d5e80 feat(release): publish the page generation manual per client version
Add scripts/publish-page-manual.mjs to upload the bundled
PAGE-GENERATION.md to {cdnBaseUrl}/plugin-pages/manual/{version}/ with a
manifest.json. Version, region and commit come from build-info.json; the
manual bytes come from the build commit, and builds without the manual
are skipped. Versioned objects are never overwritten.

The shared path helper lives in apps/desktop/src/shared/pluginPageManual.mjs
so the client runtime can build the same URL later.

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-31 11:34:16 +08:00
DavidShenXD
c3018b8abb fix(test): 修复 Windows 下符号链接权限与模块解析导致的测试失败 (#2382)
* fix(test): 修复 Windows 下符号链接权限与模块解析导致的测试失败

- ensure-android-platform-tools.mjs: jszip 顶层 import → extractVerifiedFiles 内动态 import
- oss.mjs: ali-oss 顶层 require → createOSSClient 内惰性 require,消除模块求值期对外部依赖的解析
- test-workspaces.test.mjs: 兼容 Windows 上 resolvePnpmInvocation 通过 cmd.exe + CINDY_PNPM_CMD_ARG_N 环境变量传参
- ios-simulator-artifact.test.ts / project-adapter.test.ts / review-read-scope.test.ts: 统一使用 canCreateSymlink() 探针检测 OS 能力,替代 process.platform 猜测,开发者模式 Windows 可正常跑 symlink 测试

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

* fix(test): project-adapter 目录 symlink 改用 junction,无需权限探针

Windows 上 Escape.xcworkspace 是目录链接,用 fs.symlink 的 'junction' 类型
即可创建,不需要管理员/开发者模式, 文件探针不能代表
目录链接能力。改用显式类型后,Escape.xcworkspace 的逃逸断言在所有平台
统一执行。

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

* fix(test): review-read-scope 补充目录 junction 逃逸覆盖

Windows 上 canCreateSymlink() 文件探针为 false 时,文件符号链接测试被跳过,
但目录 junction 无需管理员权限即可创建,是同等攻击面。新增独立测试用例:
- 在 worktree 外创建含凭证文件和普通文件的目录
- 用 junction(Win)/ dir(其他)链接到工作区内
- 验证 resolveReviewReadPath 通过 realpath 正确拒绝 junction 下的文件

文件 symlink 测试仍保留 skipIf(!canLink)。

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

---------

Signed-off-by: david <david@xd.com>
2026-08-11 03:04:09 +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