feat: add tmp/ directory for temp files and cookie, add .gitignore

- tmp/ 用于存放临时文件(文档缓存、cookie等),已加入 .gitignore
- 文档中所有临时文件和 cookie 路径统一指向 tmp/
- SKILL.md 架构图增加 tmp/ 说明

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-16 18:59:32 +08:00
parent a2c3463d15
commit 1cb565161c
5 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ mcporter config add netdisk \
--env "NETDISK_QUARK_COOKIE=粘贴你的完整Cookie"
```
> Cookie 是敏感信息,建议保存在单独的文件(如 `项目根目录/cookie/quark.txt`
> 使用时 `COOKIE=$(cat cookie/quark.txt)`,避免在命令行历史中泄露。
> Cookie 是敏感信息,保存在 `tmp/cookie_quark.txt`(已加入 `.gitignore`),
> 使用时 `COOKIE=$(cat tmp/cookie_quark.txt)`,避免在命令行历史中泄露。
### 3. 验证
+1 -1
View File
@@ -69,7 +69,7 @@ mcporter call 'netdisk.list(cloud: "quark", path: "/目标目录")'
```bash
# 从文件读取避免泄露(推荐)
COOKIE=$(cat cookie/quark.txt)
COOKIE=$(cat tmp/cookie_quark.txt)
# 或直接写入(注意命令行历史)
# COOKIE="你的夸克Cookie"