Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

chore(repo): cindy-updater.exe 不再入仓,CODEOWNERS 补齐生效前提

Lizi0863de3f1036
diff --git a/.gitattributes b/.gitattributes
index 4c18db896c..b682047e95 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -17,7 +17,9 @@ apps/desktop/native/sqlite-vec/**/*.so filter=lfs diff=lfs merge=lfs -text
# Android platform-tools 二进制—— 走 Git LFS
apps/android-platform-tools-bin/**/*.exe filter=lfs diff=lfs merge=lfs -text
apps/android-platform-tools-bin/**/*.dll filter=lfs diff=lfs merge=lfs -text
-apps/desktop/resources/cindy-updater.exe filter=lfs diff=lfs merge=lfs -text
+# cindy-updater.exe 不再进 git/LFS——Windows 打包的 prePackage 每次都从
+# apps/desktop/cindy-updater/ 现场 cargo build 并覆盖 resources/ 下的产物
+# (见 forge.config.ts buildCindyUpdater);路径已在 .gitignore 中排除。
# Pencil 设计稿(加密二进制,体积大且改动频繁)—— 走 Git LFS
*.pen filter=lfs diff=lfs merge=lfs -text
# Vendored browser-control-runtime:由 scripts/browser-runtime/sync.mjs 从上游同步生成,非手写源码。
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 07bf1f5158..7251139c73 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1,3 +1,11 @@
-# 默认所有路径由维护者团队 review。仓库公开后请把下面的 team 换成
-# 实际存在的 GitHub team 或维护者账号列表。
-* @makecindy/maintainers
+# 默认所有路径由维护者 review。
+#
+# 生效前提(缺一条 GitHub 就静默跳过该 owner,不报错):
+# - team 必须真实存在于 makecindy 组织下,slug 与此处一致;
+# - 该 team 必须对本仓库有 write 及以上权限;
+# - 个人账号同样需要对本仓库有 write 及以上权限。
+# 组织级设置见 https://github.com/orgs/makecindy/teams
+#
+# 这里同时列出 team 与个人:即使 team 尚未建好或未授权,自动指派仍然生效。
+# team 确认可用后可以删掉个人账号那一项。
+* @makecindy/maintainers @MagicLizi
diff --git a/.gitignore b/.gitignore
index acc8c2074d..8646a4acbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,6 +37,10 @@ apps/desktop/resources/tools/
apps/desktop/resources/cc-manager/
apps/desktop/resources/anthropic-compat-proxy/
apps/desktop/resources/remote-file-service/
+# Windows 打包时由 prePackage 现场 cargo build 生成并覆盖(forge.config.ts
+# buildCindyUpdater);源码在 apps/desktop/cindy-updater/,不入仓避免 4.5MB
+# 二进制持续消耗 Git LFS 流量。
+apps/desktop/resources/cindy-updater.exe
# ── Agent CLI 本地二进制 ─────────────────────────────────────
# 实体文件按 tools/<kind>/latest.json 的 pin 下载,不进 Git/LFS。
diff --git a/apps/desktop/cindy-updater/README.md b/apps/desktop/cindy-updater/README.md
index 9013eb7d5e..9fbf65cfa3 100644
--- a/apps/desktop/cindy-updater/README.md
+++ b/apps/desktop/cindy-updater/README.md
@@ -15,17 +15,22 @@ that the Electron main process previously generated in `executeUpdateWindows`
`%TEMP%\cindy-updater-{ts}.exe` before launch, so the in-`resources/` copy is
no longer file-locked and the new release's updater can overwrite it.
-## Building & the prebuilt binary
+## Building
- The full source lives in this directory (`src-tauri/` — Rust + Tauri, plus
the `ui/` webview assets). Nothing about the updater is closed-source.
- Official Windows packaging **always rebuilds it from this source**:
`forge.config.ts` (`buildCindyUpdater`) runs `cargo build --release` during
- `prePackage` and hard-fails if the toolchain is missing — a release never
- ships a stale binary.
-- `apps/desktop/resources/cindy-updater.exe` (tracked via Git LFS) is a
- prebuilt convenience copy so day-to-day desktop development doesn't require
- a Rust toolchain. To reproduce or replace it yourself:
+ `prePackage`, patches the embedded manifest, copies the result to
+ `apps/desktop/resources/cindy-updater.exe`, and hard-fails if the toolchain
+ is missing — a release never ships a stale binary.
+- **No prebuilt copy is committed.** `apps/desktop/resources/cindy-updater.exe`
+ is a build artifact and is git-ignored: keeping a 4.5 MB binary in Git LFS
+ would burn LFS bandwidth on every clone. Day-to-day development never reads
+ it — at runtime the path resolves under `process.resourcesPath`, which only
+ exists in a packaged app, and `updateService.ts` degrades gracefully
+ (`updater_missing`) when it is absent.
+- To produce one locally (Windows, needs the prerequisites at the bottom):
```bash
cargo build --release --manifest-path apps/desktop/cindy-updater/src-tauri/Cargo.toml
diff --git a/apps/desktop/resources/cindy-updater.exe b/apps/desktop/resources/cindy-updater.exe
deleted file mode 100644
index a8b241b041..0000000000
--- a/apps/desktop/resources/cindy-updater.exe
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:e5da546d8805f12953e5a1c6105b4f6ef47b63010e89ce0045fd4868814ddbd8
-size 4505088
diff --git a/scripts/generate-third-party-notices.mjs b/scripts/generate-third-party-notices.mjs
index b62faed741..f74de26650 100644
--- a/scripts/generate-third-party-notices.mjs
+++ b/scripts/generate-third-party-notices.mjs
@@ -1200,10 +1200,11 @@ function assertTrackedBinariesRegistered() {
".woff",
".woff2",
]);
+ // cindy-updater.exe 不在列:它已不入仓(Windows 打包时现场 cargo build 生成,
+ // 见 .gitignore)。若有人绕过 ignore 把它提交回来,这里会主动拦下要求登记。
const registeredPrefixes = [
"apps/android-platform-tools-bin/",
"apps/desktop/native/sqlite-vec/",
- "apps/desktop/resources/cindy-updater.exe",
"apps/mobile/assets/fonts/JetBrainsMono-",
];
const files = execFileSync("git", ["ls-files", "-z"], {