Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
Merge origin/main into tiammomo/desktop/fix-legacy-asar-migration
tiammomo4bd5826c7d73
diff --cc .github/workflows/ci.ymlindex 65beadb5a5,3c267f5c9a..a150a4a5ea--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@@ -84,40 -86,17 +86,51 @@@ jobs- name: Install dependenciesrun: pnpm install --frozen-lockfile+ # @cindy/model-access-protocol exposes only generated dist artifacts.+ # Build it before any consumer typecheck or test collection resolves the+ # workspace package.+ - name: Build model-access protocol+ run: pnpm --filter @cindy/model-access-protocol build++ # test:unit 的 runner 自测不能跟着 Vitest 分片重复执行;在检查 job 中跑一次,+ # 两个 Linux 单测分片只负责 workspace unit tier。+ - name: Run test runner self-tests+ run: pnpm test:runner++ # 默认 unit tier 会排除 migration 测试,而 CI 的常规安装也会跳过 Electron+ # 二进制。只有相关路径变化时才补下载锁定 runtime,强制跑真实 .asar 复制回归。+ - name: Run Electron ASAR migration regression+ if: ${{ github.event_name == 'pull_request' }}+ env:+ CINDY_REQUIRE_ELECTRON_RUNTIME_TEST: '1'+ ELECTRON_OVERRIDE_DIST_PATH: ''+ ELECTRON_SKIP_BINARY_DOWNLOAD: ''+ PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}+ run: |+ if git diff --quiet "$PR_BASE_SHA"...HEAD -- \+ .github/workflows/ci.yml \+ package.json \+ pnpm-lock.yaml \+ apps/desktop/package.json \+ apps/desktop/vite.main.config.ts \+ apps/desktop/vitest.config.ts \+ apps/desktop/src/main/legacyUserDataMigration.ts \+ apps/desktop/src/main/__tests__/legacyUserDataMigration.test.ts; then+ echo "Electron ASAR migration paths unchanged; skipping runtime regression."+ exit 0+ fi+ node node_modules/electron/install.js+ pnpm --filter desktop exec vitest run src/main/__tests__/legacyUserDataMigration.test.ts++ # XDT_SKIP_AGENT_BIN_INSTALL 跳过了 postinstall 的全部 agent 二进制,但+ # runtime-configs.ts 模块顶层的 bundledRipgrepDir() 缺 rg 时直接 throw,+ # 会让 apps/desktop 单测在收集阶段全挂——ripgrep 必须单独装回来。+ # install:ripgrep 不带 --best-effort,不受上面的 skip 环境变量影响。+ - name: Install bundled ripgrep+ env:+ GITHUB_TOKEN: ${{ github.token }}+ run: pnpm install:ripgrep+- name: Check endpoint literalsrun: pnpm check:endpoints