Clone
1
Home
Mr.Lee edited this page 2026-11-27 06:53:17 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cindy 镜像同步记录与项目分析

维护说明:本页由 gitea-mirror-wiki 技能生成(2026-11-27 06:53),记录该仓库在 GPD Gitea 的镜像状态与代码速览。Wiki 属于本地维护内容,不来自上游,也不受 8 小时同步影响。 补写说明:本页属于历史仓库批量补写,未逐仓保留当时的迁移耗时等操作日志;下列同步信息以当前数据库与裸仓实测状态为准。

一、仓库概况

项目 值
上游 https://github.com/makecindy/cindy.git
本地镜像 http://192.168.1.99:3000/jarod/cindy
公网入口 https://git.lxj.ai/jarod/cindy
状态 活跃镜像(8 小时自动同步)
默认分支 main
仓库大小 约 4498.4 MB(DB 4716960148 字节;裸仓约 4600043 KB)
refs 131 分支 / 150 标签 / HEAD 历史 17899 提交
建立时间 2026-11-14 19:06:01
描述 Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

二、同步过程与当前状态

迁移方式(平台统一流程)

  • POST /api/v1/repos/migrate,mirror:true、mirror_interval:"8h0m0s"、private:false,origin 指向官方 GitHub
  • 代理链路:mihomo 127.0.0.1:7890 → gitea-proxy-bridge.service(0.0.0.0:17890)→ 容器 HTTP_PROXY/HTTPS_PROXY 环境变量;gitconfig 对 Gitea 无效
  • 超时:app.ini [git.timeout] MIRROR=3600 / MIGRATE=14400;>500MB 用后台、>1GB 看代理节点质量、>3GB 需宿主分批 fetch + 本地接管

当前校验状态

检查项 结果
is_mirror / is_empty 1 / 0
HEAD refs/heads/main → e3e824cc90
remote.origin.url https://github.com/makecindy/cindy.git
remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
自动同步排期 updated 2026-11-26 23:45:07 → next 2026-11-27 07:45:07

页面验证:GET /jarod/cindy/wiki 返回 200 即表示 Wiki 裸仓已被 Gitea 正确识别。

三、项目功能速览

README 来源:README.md

Cindy is an **open-source AI agent, ready out of the box and yours to shape**.
Connect your computers and phone, bring the models and subscriptions you already
use, and build a companion that knows how you like to work.
## All your devices. One Cindy.
Your work computer, home desktop, laptop and phone belong together.
- **Pick up the same work.** Open a session from another device, continue the
conversation, and access its files without copying everything into a new chat.
- **Share more than a screen.** Use model providers configured on another
computer — including supported subscriptions, API providers and local models.
- **Reach your whole desktop.** Built-in remote desktop on your phone lets you
open apps, type and operate a connected computer when a chat isn't enough.
Your computer becomes your server: **no server rental or self-hosting setup**.
For remote access to your computers, keep them online, sign in with the same
account and enable the relevant permissions. Model sharing requires allowing

检出的技术栈 / 构建信号:GitHub Actions CI、Node.js / 前端(npm)、TypeScript、pnpm 锁文件、Rust、Python(pip)、C/C++(CMake)、Java / Android(Gradle)、PHP(Composer)、npm 锁文件

顶层目录:(根目录)、.githooks、.github、.greptile、appicon、apps、config、dependency-patches、docs、i18n、packages、prototypes、scripts、tools

维护记录补充:2.46GB 巨仓(裸仓约 3.8G)。日志里 16 条 GetRefCommitID object does not exist 是 GitHub 已删临时分支在 branch 表的陈旧记录,只刷日志、不影响同步,未擅自改表。

四、代码安全快检(自动)

  • 本仓库体积较大(>500 MB)或扫描超时,采用轻量模式:跳过全树关键词扫描,仅做文件名与结构检查,需人工复核。
  • 敏感文件(.env / *.pem / *.p12 / 私钥 / credentials 等):.npmrc、apps/desktop/.env.example、apps/mobile/.env.example、packages/remote-credentials-native/Sources/CindyRemoteCredentials/Resources/credentials.json
  • 硬编码 PEM 私钥:未完成扫描
  • 危险脚本模式(curl|bash / eval / base64 -d / chmod 777):未完成扫描

五、风险提示

  1. 自动快检只覆盖常见模式,不替代人工审计;部署前核对依赖来源、锁文件与 CI 中的 ${{ secrets.* }} 用法。
  2. 远程控制 / Agent / 文件上传 / 解析外部文档类项目,优先放在内网隔离环境,避免直接暴露公网。
  3. 注意许可证(GPL / AGPL 等)对二次分发与闭源集成的约束。

六、维护约定

  • Gitea 对 is_mirror=1 的仓库禁止 Wiki API / UI 写入(POST .../wiki/pages 返回 405),但读正常;本页由服务端直接维护 <repo>.wiki.git 裸仓。
  • 更新方式:临时 chown -R root:root,用 hash-object -w + mktree + commit-tree + update-ref 提交,最后 chown -R 1000:1000;root 直接 git clone 会触发 dubious ownership。
  • Wiki 是独立裸仓,8 小时 mirror-sync --prune 只操作主裸仓,不会影响本页;删除并重建仓库会连带删除 Wiki,Gitea 迁移/备份时须单独带上 .wiki.git。
  • 每次人工发起的镜像同步完成后,按 gitea-mirror-wiki 技能更新本页;后台自动同步不重复生成。