visionA/.gitignore
jim800121chen 8369cab85c feat(db): migration 0005 agents 模型(個人設備管理 A' 走向第二階段地基)
- 新增 agents 表 + devices 加 4 欄(agent_id/agent_local_device_id/
  registered_at/is_representative)+ 2 index + 純 SQL data migration
- data migration 採 R-A:agent.id := device.id 決定性推導、冪等、
  soft-deleted device 排除(WHERE deleted_at IS NULL)
- 守住 ADR-018 走向 A':不碰 session_tokens FK、不改現有 partial
  unique index uq_devices_owner_serial_active、對 0001-0003 零破壞
- migrate_0005_db_test.go 6 個 dbtest case(apply/data migration/
  rollback 對稱/re-apply 冪等/session_tokens 零影響/既有 device 讀寫回歸)
- 修 TestMigrate_UpDownUp 編號 gap 假設(0001/2/3/5 無 0004):
  assert.Equal(topVer-1) → assert.Less(downVer, topVer)
- .gitignore 加 .logs/ + **/.logs/(本機執行 log per-branch 不進 git)

Reviewer 通過(0 Critical/0 Major/3 Minor/4 Sug)。全 db package 41
dbtest 130 綠、build/vet/test 綠、gitleaks 0。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-16 04:05:53 +08:00

84 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# OS
.DS_Store
Thumbs.db
.AppleDouble
.LSOverride
# Editor
.vscode/
.idea/
*.swp
*.swo
# ─────────────────────────────────────
# local-tool 子專案的 build 產物
# ─────────────────────────────────────
# 不進 git 的依賴與產物(決策 R4-D2
# 注意:使用 /** 而非 /,否則後面的 ! 例外無法 re-includegit 規則:
# 父目錄被排除時無法 re-include 檔案)— R5-6b 需要 macOS ffmpeg binary 進 git
local-tool/vendor/**
local-tool/dist/
local-tool/payload/
# R5-6bmacOS LGPL ffmpeg binary 進 git沒有現成 LGPL binary 來源,自 build 成本高,
# commit 後開發者 clone 即可用,不必每次重 build ~15 分鐘)
!local-tool/vendor/ffmpeg/
!local-tool/vendor/ffmpeg/macos/
!local-tool/vendor/ffmpeg/macos/**
# Go server 的 embed 與 build 產物
local-tool/server/web/out/
local-tool/server/visiona-local-server
# Frontend
local-tool/frontend/node_modules/
local-tool/frontend/.next/
local-tool/frontend/out/
# Wails 產物
local-tool/visiona-local/build/bin/
local-tool/visiona-local/build/darwin/Resources/
local-tool/visiona-local/build/windows/Resources/
local-tool/visiona-local/build/linux/Resources/
local-tool/visiona-local/visiona-local
local-tool/visiona-local/visiona-local.exe
local-tool/visiona-local/payload/
# 環境變數
.env
.env.local
.env.*.local
# dev 環境docker-compose.dev.yml
.env.dev
.env.dev.generated
# stage 環境docker-compose.stage.yml— 不進 git由人工放到 stage host
# 用 .env.stage*(而非精確匹配)涵蓋人工備份檔(如 .env.stage.backup-YYYYMMDD-*
# 這些備份含 stage secrets一個 git add -A 就會進 git進了就沒救
.env.stage*
# 範本檔不含 secrets明確 re-include 進 git
!.env.stage.example
# 簡報 / office 文件不進 gitrepo 內出現的多半是內部討論素材,可能含內部資訊)
*.pptx
# Claude Code 本地 session / memory不入 git
.claude/
# Autoflow Agent由 autoflow-agent init 自動產生)
# 整包 ignoreprogress.md / review 報告 / 個人筆記皆 per-branch
# 共享文件PRD / 設計 / 架構 / 交付)走 docs/ 進 git
graphify-out/
# sub-agent 工作 logper-branch、不進 git
.autoflow-logs/
**/.autoflow-logs/
# 本機執行 log如 local-tool/server/scripts/.logs/per-branch、不進 git
.logs/
**/.logs/
.autoflow/
.autoflow/CLAUDE.md.backup.*
.autoflow/.backups/
.mcp.json