本提交为 dsh_mcn_workshop 仓库的首个提交(旧仓 dsh_MCNProject 已停用), 完整固化 C:/Users/Administrator/.dsh 当前磁盘状态。 1) 临时数据清理:移出 sessions/(81M)、logs/、skill-backup-20260906/(14M)、 scripts/__pycache__、storages/workspace.json.bak —— 合计 94M(.dsh 162M → 68M) 2) 凭据脱敏:.credentials.yaml(含明文 DEEPSEEK_API_KEY)移出 git 跟踪并加入 .gitignore;mcn-data-insight/scripts/setup_redfox_key.py 中真实 key 示例改为占位符 3) .gitignore 增补 logs/、skill-backup-*/ 规则 4) 技能结构以当前磁盘状态为准:skills/ = mcn-short-video / impeccable / taste-skill / dsh-multi-user-migration;旧技能目录(mcn-dou-analysis、storyboard-prompt、 short-video-script、browser-harness、mcn-data-insight)与 profiles/web/node_modules/dsh-vision-router 本地已不存在,本提交记为删除
46 lines
1.8 KiB
Plaintext
46 lines
1.8 KiB
Plaintext
# DSH 数据仓库 .gitignore
|
|
# 排除历史备份目录(无用)
|
|
profiles_backup_web_nm/
|
|
# 排除 DSH fallback 安装区(含 junction 链接,DSH 自管理,换机器自动重建;入库会破坏链接结构)
|
|
profiles/node_modules/
|
|
# 排除临时
|
|
*.tmp
|
|
*.log
|
|
|
|
# dev profile 的 node_modules 与 web 同为独立实体副本,随仓库入库
|
|
# —— 修改为:仅保留自研插件副本入库;依赖树(pnpm 布局含 junction/硬链接)跨机器同步会损坏
|
|
# 链接结构与文件权限,导致本机 npm/pnpm 缓存写入失败,故不入库(由 DSH 本机安装自动重建)
|
|
profiles/dev/node_modules/*
|
|
profiles/web/node_modules/*
|
|
!profiles/dev/node_modules/dsh-plugin-mcn/
|
|
!profiles/dev/node_modules/dsh-plugin-douyin-accounts/
|
|
!profiles/dev/node_modules/dsh-plugin-douyin-account-detail/
|
|
!profiles/dev/node_modules/dsh-plugin-douyin-video-detail/
|
|
!profiles/dev/node_modules/dsh-vision-router/
|
|
!profiles/web/node_modules/dsh-plugin-mcn/
|
|
!profiles/web/node_modules/dsh-plugin-douyin-accounts/
|
|
!profiles/web/node_modules/dsh-plugin-douyin-account-detail/
|
|
!profiles/web/node_modules/dsh-plugin-douyin-video-detail/
|
|
!profiles/web/node_modules/dsh-vision-router/
|
|
!profiles/web/node_modules/dsh-plugin-mcn-schedule/
|
|
|
|
# 误创建的字面 %SystemDrive% 目录(工具未展开环境变量时产生,防误入库)
|
|
%SystemDrive%/
|
|
|
|
# 运行时数据入库策略(2026-08-24 调整):
|
|
# sessions/ 会话日志(单文件可达 30M+、持续增长)不再入库,避免仓库膨胀到数百 M;
|
|
# 会话改用同步工具在机器间传输。storages / mcn-plugin.db 仍入库(体积可接受)。
|
|
sessions/
|
|
|
|
|
|
# Python 缓存
|
|
__pycache__/
|
|
*.pyc
|
|
|
|
# 凭据文件(含明文 API Key,禁止入库)
|
|
.credentials.yaml
|
|
|
|
# 运行时日志与迁移备份目录
|
|
logs/
|
|
skill-backup-*/
|