本文档是 /Users/ar/Projects/Taglauncher 的代码管理、Git 使用、交付和 Agent 协作规范。根目录 AGENTS.md 是强制入口;本文件是完整执行标准。
/Users/ar/Projects/Taglauncher。/Users/ar/Projects/Taglauncher/src。src/ 下维护。/Users/ar/Projects/Taglauncher-*source、/Users/ar/Projects/Apptag-* 等外部源码目录。git status --short 2>&1 | head -c 6000
git branch --show-current 2>&1 | head -c 2000
git worktree list --porcelain 2>&1 | head -c 6000
git reset --hard、git checkout --、git clean 等破坏性命令,除非用户明确要求并确认目标。main 是主线,不在脏工作区中直接做实验。codex/ 前缀,例如:git switch -c codex/fix-quick-search-index
git switch -c codex/relocate-source-to-src
git status --short 2>&1 | head -c 6000
git diff --stat 2>&1 | head -c 6000
git diff --cached --stat 2>&1 | head -c 6000
Fix quick search system app matchingRelease 7.8.22 Apple default app catalogRelocate app source under srcgit tag -a v7.8.22-build20260608.1324 -m "Release 7.8.22 build 20260608.1324"
pre-* 安全 tag,例如:git tag -a pre-src-migration-main-YYYYMMDD.HHMM -m "Pre src migration main"
Info.plist、CHANGELOG.md、Release/ 资料、最终安装包文件名和 build 编号必须一致。CHANGELOG.md 提取当前商店版本之后到目标版本之间的累计用户可感知变更。/Users/ar/Projects/Taglauncher-*source 或 /Users/ar/Projects/Apptag-* 这类容易被误认为正式源码根目录的位置。git worktree remove WORKTREE_PATH 2>&1 | head -c 6000
git worktree prune 2>&1 | head -c 6000
git worktree list --porcelain 2>&1 | head -c 6000
build/、临时安装包、编译缓存、用户本地数据、钥匙串资料、p12 证书、provisioning profile 默认不进源码提交。src/Release/.../Archive/,并必须配套说明、hash、版本和 QA 证据。接手旧线程、长期任务、发布任务或迁移任务时,必须先完成以下检查,不得等待旧线程:
git status --short 2>&1 | head -c 6000
git branch --show-current 2>&1 | head -c 2000
git log --oneline --decorate --graph --max-count=12 2>&1 | head -c 6000
git worktree list --porcelain 2>&1 | head -c 6000
任何未知或可能很大的命令输出都必须 byte-cap:
COMMAND 2>&1 | head -c 6000
rg / rg --files。src/ 外新增 App 源码副本。git status 的情况下提交、合并、发布或清理。git status --short 2>&1 | head -c 6000
git branch --show-current 2>&1 | head -c 2000
git log --oneline --decorate --graph --max-count=12 2>&1 | head -c 6000
git worktree list --porcelain 2>&1 | head -c 6000
git diff --stat 2>&1 | head -c 6000
git diff --cached --stat 2>&1 | head -c 6000
git ls-files src 2>&1 | wc -l | head -c 2000
从源码根目录运行 QA:
cd /Users/ar/Projects/Taglauncher/src
bash Scripts/apple_default_apps_resource_qa.sh 2>&1 | head -c 12000
bash Scripts/apple_default_note_policy_qa.sh 2>&1 | head -c 12000
bash Scripts/smartstart_catalog_resource_qa.sh 2>&1 | head -c 12000
bash Scripts/quick_search_app_name_qa.sh 2>&1 | head -c 12000
bash Scripts/quick_search_system_app_qa.sh 2>&1 | head -c 12000