# Python build artifacts
packaging/
prebuild_packages/
*.o
*.so
*.a
*.pyc
*.pickle
config.log
config.status
pyconfig.h
Makefile.pre
/python3.9
/python
/python3
.Python
build/
__pycache__/
.pytest_cache/
*.bak
*.bak.*
*.orig
*.rej
*~

# OS artifacts
.DS_Store
Thumbs.db

# ═══════════════════════════════════════
# 归档产物(不上传 git)
# 原则:git 追踪"怎么编译"(补丁+manifest+知识库),不追踪"编译结果"
# archives/ 骨架保留,以下内容忽略
# ═══════════════════════════════════════

# 原始 tarball(应从 URL 重新获取)
archives/**/*.tar.gz
# 预生成 autotools 文件(CI 无 automake/libtoolize,需随配方提交)
!archives/**/prebuilt.tar.gz
archives/**/*.tar.xz
archives/**/*.tar.bz2
archives/**/*.zip
archives/**/*.tgz

# 编译产物(二进制/共享库/静态库)— 可从源码+补丁重建
archives/**/bin/
archives/**/lib/
archives/**/lib64/
archives/**/include/
archives/**/share/

# 构建上下文(环境相关,不可移植)
.build-context-*

# 运行时标记文件(每次编译重新生成)
.staging-verified
.manual-mode-stop
.build-closed
.built
.configured
.installed
.knowledge-done
.packaged
.patched
.tested
.unpack
.verify-passed
.verify-passed-partial
.g0-verified
.g0-passed
.build-closed
.ci-result.json
ci-metadata.json
.downloads/
conanbuild.sh
conanbuildenv-*.sh
conanrun.sh
conanrunenv-*.sh
deactivate_conanbuild.sh
deactivate_conanrun.sh
EXCLUDE_LIST
TASK_CARD.md
*.handoff.json
*.build-status.json

# 质量报告(每次重新生成)
reports/
reports/quality-report.md
reports/test-report.md
reports/calibration-report.md

# 例外:允许 tcping 的测试报告(用户要求)
!archives/t/tcping/2.1.0/reports/
!archives/t/tcping/2.1.0/reports/*.md

# 打包产物(package.sh 生成,含签名)
archives/**/packaging/*.tar.gz
archives/**/packaging/*.tar.gz.sig
archives/**/packaging/*.tar.gz.asc
archives/**/packaging/pkg-*/
archives/**/packaging/debug-symbols/
archives/**/packaging/install-*.sh
archives/**/packaging/.packaged

# 临时构建工作区
tmp/
/tmp/

# 补丁备份目录(finish-build 自动生成,可删除)
archives/**/patches/.patch-backup-*/
archives/**/patches.bak*
archives/**/patches/.patch-staging

# 打包标记(packaging/ 目录存在即为标记)
archives/**/packaging/.packaged

# BitFun snapshot data - auto managed
.bitfun/
.cmd-pkgs-cache.json
# skill-creator evaluation data
evals/

# Conan/CMake build artifacts
**/CMakeUserPresets.json
**/CMakePresets.json
**/.pre-scan-report.yaml
**/conan-create.log
**/baseline.json
**/.conan-verified

# Pre-scan report should never be committed as a patch
**/patches/*pre-scan-report*.patch

# ═══════════════════════════════════════
# 产物清理规则(防止异常提交)
# ═══════════════════════════════════════

# Conan build artifacts
*/test_package/conanbuild*.sh
*/test_package/conanrun*.sh
*/test_package/deactivate_conan*.sh

# Python cache
__pycache__/
*.pyc

# Binary packaging artifacts
*/packaging/*.tar.gz
*/packaging/*.tar.xz
*/packaging/*.tgz
*/packaging/lib/*.so*

# Log files
*/logs/*.log
*/reports/*.log
*/logs/test*.log

# Old patch backups
*/patches.old-*/

# CI generated artifacts
.ci_logs/
ci-metadata.json
.build-status.json

# IDE/tool config
.arts/
.*.txt
openharmony-compile-agent.mdp
tarballs/
archives/_migrate_batch*.sh
config/.zshrc
.ci-result.json
**/deactivate_conanrunenv-*.sh