Clone
1
Home
Mr.Lee edited this page 2026-11-27 06:53:19 +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.

craft-anything 镜像同步记录与项目分析

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

一、仓库概况

项目 值
上游 https://github.com/storytold/craft-anything.git
本地镜像 http://192.168.1.99:3000/jarod/craft-anything
公网入口 https://git.lxj.ai/jarod/craft-anything
状态 活跃镜像(8 小时自动同步)
默认分支 main
仓库大小 约 73.8 MB(DB 77406799 字节;裸仓约 76449 KB)
refs 280 分支 / 7 标签 / HEAD 历史 1988 提交
建立时间 2026-11-22 21:46:26
描述 Craft Anything: understand how any software works, and craft your own.

二、同步过程与当前状态

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

  • 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 → 3e59a9c36
remote.origin.url https://github.com/storytold/craft-anything.git
remote.origin.fetch +refs/*:refs/* / +refs/tags/*:refs/tags/*
自动同步排期 updated 2026-11-26 23:53:10 → next 2026-11-27 07:53:10

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

三、项目功能速览

README 来源:README.md

Point it at a target, say what you want, and it studies the original with real inspection tools,<br>
has a coding agent build a new project, checks the result against the original and refines it.
> filmmakers, illustrators, designers, animators, hobbyists, and people who picked up a pencil
> last week. If you make things, you're one of us. **[Come say hi on Discord](https://discord.gg/artcraft).**
Websites, desktop apps, phone apps, games and files: real inspection tools find out how they're built and what they do, with the evidence behind every answer.
Say what you want ("Recreate this website", "Recreate this game's gameplay in Rust") and a coding agent builds a new project in the stack you ask for.
Every build is compared with the original (pages at three screen widths, a game's own self-test, an app's runs) and refined until it's close.
320 tools, each one a CLI command and an MCP tool, so any agent can drive the same engine the app uses. No AI is needed to inspect.
## How it works
Point Craft Anything at a target, say what you want, and press Start. It works in four steps,
asking you in plain words when a decision is yours:
1. **Study:** inspect the original: its pages at every width, its code, its files, how it runs.
2. **Build:** a coding agent builds a new project, in the language, framework or engine your
request names (or a sensible default).

检出的技术栈 / 构建信号:GitHub Actions CI、Rust

顶层目录:.cargo、(根目录)、.githooks、.github、apps、assets、crates、docs、examples、packaging、vendor、xtask

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

  • password|secret|token|api_key|private_key|access_key 命中 2873 处;此类命中多为变量名、UI 文案或协议字段,需人工复核,不等于存在凭据泄露。
  • 敏感文件(.env / *.pem / *.p12 / 私钥 / credentials 等):未检出
  • 硬编码 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 技能更新本页;后台自动同步不重复生成。