visionA/.gitignore
jim800121chen cabbdde495 feat(visionA-backend): DB 接入後續 — OIDC/pairing FK 收尾 + B4 metadata + nginx healthz + 補測試
DB 接入塊 0-5 上主幹後的收尾工作,讓 DB-on 模式可真人使用 + 補齊功能與測試。

OIDC / pairing FK 修復(接 DB 上線必要):
- 新建 internal/user package(User + Store + InMemory + Postgres);OIDC callback
  驗證 id_token 成功後 fail-closed upsert users(sub 直接當 users.id,MC sub 為 UUID)
- pairing exchange 雲端自建 device(不動 local-tool)+ 同 tx 綁 session token;
  自建 device 空 serial 寫 NULL(避免撞 partial unique)
- device.SaveTx / session.CreateTx 新增 tx-aware 版本

B4 model metadata:
- 轉檔 result 的 analysis_info(input_shape/classes/framework)串進 model:
  converter_client → flow → adapter → model.Model → PG → ModelResponse DTO
- input_shape 優先用陣列、後備四維組 NCHW、缺一不亂組;全 optional 防禦性
- 前端詳細頁顯示(另 repo);轉檔端串接交接檔 b4-converter-handoff.md

nginx healthz(部署層):
- 新增 /healthz/deep 轉發 backend(ping PG+Redis、down 回 503)給 LB
- 修掉 default_server return 444 短路 bug(docker healthcheck 長期 unhealthy 真因)

storage error 統一映射(不洩漏 storage 後端細節)。

測試:補 internal/api(storage/errors handler)、cmd/api-server(seed/adapter)、
internal/db(redis)、relay/session 弱處,含 testcontainers integration。
DB 接入相關 package 真環境覆蓋達 88-94%。全程 Reviewer 審查 + 130 真 PG/Redis dbtest 綠。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 06:36:35 +08:00

69 lines
2.0 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
# Claude Code 本地 session / memory不入 git
.claude/
# Autoflow Agent由 autoflow-agent init 自動產生)
# 整包 ignoreprogress.md / review 報告 / 個人筆記皆 per-branch
# 共享文件PRD / 設計 / 架構 / 交付)走 docs/ 進 git
.autoflow/
graphify-out/
# sub-agent 工作 logper-branch、不進 git
.autoflow-logs/
**/.autoflow-logs/