﻿# Dependencies
node_modules/

# Build output
dist/
build/

# Environment files
.env
.env.local
.env.*.local

# Logs
*.log
npm-debug.log*

# OS files
.DS_Store
Thumbs.db

# Uploads
uploads/

# Runtime data (generated at runtime, not source code)
/data/
usage.json

# External project (not part of this repo)
diffrhythm-local/

# Temp files
_*.py
_*.txt
_*.cjs
_*.sql
_*.js
_*.html
_*.png
tsc_out.txt
*.tar.gz

# IDE
.vscode/
.idea/

# Test artifacts
test*.txt
test*.html

# Backup directories
_local_bak_*/
_hermes_bak/
_bak_design_v14/
web_backup_v9/
src/web_backup_v9/
src/_rollback-0602/
src/web/_rollback-0602/
*.bak
*.bak-*
*.func
*.old

# Misc temp files
_cross_check*.js
_live_index.html
_livepage.html
_install_*.ps1
ssh3-stdout.txt
_admin_dump.txt
_align*.txt
_align_check*.py
_agent_list.*
tsc_out.txt
.smoke-test.js
ecosystem.config.cjs

workspace/
docs/dev/*鎵?.md

# 鏃х増姝荤洰褰曪紙鏍圭洰褰?index.ts 鎵嶆槸鐪熸鍏ュ彛锛宻rc/src/ 鏄簾寮冨壇鏈級
src/src/

# 鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲
# 2026-08-20 琛ュ叏锛氶樆濉炰笂 GitHub 鐨勬硠闇?鍨冨溇鏂囦欢
# 鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲

# 鈹€鈹€ 鎶ラ€佹潗鏂?/ 涓汉鏉愭枡锛堝惈涓汉淇℃伅锛岀粷瀵逛笉鑳藉紑婧愶級鈹€鈹€
*绠楀姏澶т細*
*鐏电妧寮曟搸鎴愭灉寰侀泦*
*鎶ラ€佹潗鏂?

# 鈹€鈹€ 鏍圭洰褰曟暎钀界殑鍚勭璋冭瘯/涓存椂鑴氭湰 鈹€鈹€
check_fix*.cjs
check_fix*.js
check_fix_out*.txt
grep_db_persist.py
inspect_chat*.py
pack-deploy.cjs
tmp_*.cjs
tmp_*.js

# 鈹€鈹€ 澶囦唤 / 楠岃瘉涓存椂鐩綍 鈹€鈹€
_verify_tmp/
_pkgtest/
_secfix_backup_*/

# 鈹€鈹€ 鎵撳寘浜х墿 鈹€鈹€
lingxi-engine-*.tar.gz

# 鈹€鈹€ 瀹¤鎶ュ憡 / 閮ㄧ讲鎸囧崡锛堥潪浠ｇ爜锛屽睘浜庨」鐩唴閮ㄦ枃妗ｏ紝鎸夐渶寮€婧愶級鈹€鈹€
浠ｇ爜瀹¤鎶ュ憡*.md
閮ㄧ讲涓庢祴璇曟寚鍗?md
BUGFIX_*.md
REFACTOR_REPORT.md
FINAL_AUDIT_REPORT.md
SOCIAL_FIX_REPORT_*.md

# 鈹€鈹€ 鏍圭洰褰曠殑澶囦唤鏂囦欢 鈹€鈹€
_bak_*
_bak_*_*
index.ts.bak-*

# 鈹€鈹€ 鏃х増姝绘枃浠?鈹€鈹€
*.bak-persist-fix-*
*.bak-routes-*
*.bak-timeout-fix

# 鈹€鈹€ 鏍圭洰褰曟暎钀界殑涓枃鏂囨。锛堝唴閮ㄧ敤锛夆攢鈹€
鐏电妧寮曟搸寮€婧愯鍒?

# 鈹€鈹€ 绉诲姩绔瀯寤轰骇鐗?鈹€鈹€
mobile-dist/

# 鈹€鈹€ 鏈嶅姟鍣ㄦ棩蹇?鈹€鈹€
server_restart.log

# 鈹€鈹€ 鎴浘锛堟寜闇€淇濈暀锛岄粯璁や笉鎻愪氦锛夆攢鈹€
screenshot-*.png

# 鈹€鈹€ 鏍圭洰褰曟潅椤硅剼鏈?鈹€鈹€
av_check.py
check_env2.py
check_mirrors.py
check_muq_progress.py
check_net.py
check_portable.py
cleanup.cjs
cleanup.py
disk_check.ps1
dl_direct.py
download_muq.py
download_weights.py
env_check2.py
find_docx.py
find_docx2.py
find_espeak.py
find_ffmpeg2.py
find_muq.py
generate.py
generate_music.py
generate_song.py
install_music.bat
install_song_env.bat
list_e.py
list_e2.py
list_lingxi.py
lscheck.cjs
make_final_video.py
modify_docs.py
peek_collab.cjs
peek_tsc.cjs
pe_check.py
probe.cjs
probe.js
probe_engine.py
probe_engine2.py
probe_engine3.py
probe_env.py
probe_hf.py
proc_check.ps1
query_muq.py
read_front.cjs
read_shutdown.cjs
route_compare.py
scan_pretrained.py
search_markdirty.cjs
song_mcp_server.py
step1_start_comfy.cjs
test.docx
test_api.py
test_chat_full.py
test_cloud_model.py
test_full.py
test_g2p.py
test_phonemizer.py
test_read_docx.py
test_song_env.py
test_speed.py

# 鈹€鈹€ 鏍圭洰褰曠殑鏉傞」涓存椂鐩綍 鈹€鈹€
tmp-verify/
tmp-verify-cron/
friend_test/
video_task/
song_maker/
music/
ai-song-maker/

# 鈹€鈹€ 鏍圭洰褰曠殑鏉傞」鏂囦欢 鈹€鈹€
marker_probe.txt
FINAL_SETUP_GUIDE.md
README_song_production.md
song_production_plan.md
song_tech_stack.md
bug_check_round2.txt
bug_report_2026-08-09.md
tmp_chat.json

# 鈹€鈹€ workspace 涓嬬殑鍚勭璋冭瘯鑴氭湰锛坵orkspace 鏈韩宸?ignore锛屼絾淇濋櫓璧疯锛夆攢鈹€
workspace/*

# 鈹€鈹€ 婧愮爜澶囦唤鏂囦欢锛?pre-platform-鏃堕棿鎴筹級鈹€鈹€
*.pre-platform-*

# 鈹€鈹€ 鎵撳寘楠岃瘉涓存椂鑴氭湰 鈹€鈹€
_verify_pack.ps1
  
# 2026-08-22 AGI杩涘寲鍓嶅揩鐓э細缂栬緫鍣ㄨ嚜鍔ㄥ浠藉壇鏈紝涓嶅叆搴? 
*.~1~  
*.~2~  

# ---- release hardening (added by build_release.ps1) ----
platform-config.js
src/web/platform-config.js
*.db
*.sqlite
*.sqlite3

# runtime SQLite storage（只忽略数据目录，不误伤 src/storage 源码目录）
/storage/
data/storage/
!src/storage/


# Python bytecode cache
__pycache__/
*.pyc

# negation: __init__.py is NOT a temp file despite leading underscore
!__init__.py


# test run outputs (regenerated on every run)
lingxi_engine/tests/run_all_result.txt
lingxi_engine/tests/stage4_e2e_result.txt
lingxi_engine/tests/verify_stage4_result.txt
lingxi_engine/tests/data/data/
# lingxi_engine 运行时自我实验数据（引擎自写，非源码）
lingxi_engine/tests/data/*.json 

# 2026-09-07: 打包残留/备份目录/废弃副本
backup-*/
backup_*/
release/
release-v2/
# src/index.ts  # 2026-09-20: landmine removed - this rule silently ignored the monolith-split entry file; root index.ts remains the real entry until split is redone with CI ratchet
 
# 2026-09-16 mobile app build artifacts
mobile-app/.gradle/ 
mobile-app/app/build/ 
mobile-app/local.properties
app/android/app/src/main/assets/nodejs-project/ 
app/ios/App/App/nodejs-project/

# 2026-09-18: local scratch/junk never to be tracked
fo_main.txt
tsc_main.txt
query_db.cjs
query_db.mjs
patch_backend.cjs
patch-platform-admin.mjs
_boot-bench*
_smoke_v5_data/
data-boottest/
data-smoke-b13b/
ws-boot.log

# CI fix report + session skills ARE tracked (negate if ignored)
!docs/ci-fix-report-*.md

# 2026-09-20: root scratch archive + bench runtime data (kept on disk, never tracked)
_archive/
# 2026-10-19: scratch archive renamed without leading _ so tsconfig's "archive*" exclude
# skips it — leftover one-off .ts scripts here must not break `npm run typecheck`.
archive_scratch_*/
data-bench*/
_creditfix/
data-v36local/
data-v36/
data-smoke-2022/
data-preflight-tmp/
bench/out/
bench/results/selftest-tmp/

# [FEATURE_MARKET] marketplace — OFFLINE, excluded from the open-source build.
# Source archived at stage/market-archive-0930/ (local only, never committed).
# Revive with: restore files + set FEATURE_MARKET=true
src/routes/market.ts
src/routes/mvp-market.ts
src/routes/wallet.ts
src/core/mvp-market/
src/storage/migrations/mvp-market-schema.ts
src/tests/mvp-*.test.ts
web/market.html
web/market.js
web/market.css
web/js/market.js
web/css/market.css
skills/ai-market-integration.json
skills/existing-repo-mvp-execution.json
skills/marketplace-payment-*.json
src/skills/ai-market-integration.json

# local backup / staging archives (marketplace source, rollback snapshots) - never commit
stage/
_stage/

# ── 2026-09-30 开源收尾：构建产物 / 站点包 / 临时转储 ──
# 这些是部署时的中间产物，不该进仓库（base64 包里可能裹进未来的配置）
deploy/*.tar.gz
deploy/*.tar.gz.b64
deploy/**/*.tar.gz.b64
deploy/*.tgz
deploy/site.tar.gz*
deploy/site.tar
deploy/_oneshot-template.sh
deploy/_synbad.sh
deploy/_verify-syntax.sh
deploy/FIX-443-NOW.sh
deploy/RESCUE-443-BROKEN.sh
*.tar.gz.b64
*.tgz
workspace/*.tmp.gz
# ── 2026-10-21 清理：历史调试/测试垃圾（已归档到 _trash_20261021/）──
_trash_*/
_archive_*/
data-bench*/
data-apptest*/
data-hubtest/
data-pctest/
data-pcui/
data-uitest/
data-smoke-*/
data-v36*
data-boottest/
data-verify/
data-platform/
*.bak_*
*.bak-*
