從 local-tool 複製出獨立的「visionA Agent」桌面應用(A3 純橋樑: tunnel client + 配對 UI + 設定,不開 HTTP port、不做本機裝置/推論 UI)。 Bundle ID 與 local-tool 不同(com.innovedus.visiona-agent vs visiona-local), 雙 app 可共存。fork 後不主動 sync,需要時手動 cherry-pick。 Backend / Wails Go(AB1-AB13): - internal/tunnel:6 狀態機(Idle/Connecting/Connected/Reconnecting/Failed/Stopped) + Pair/Unpair/Reconnect/Disconnect binding + ClientHooks event - internal/auth:encrypted file token store(AES-GCM + scrypt + machineID fallback salt + 13 tests) - internal/config:YAML validation + atomic write + 11 tests - internal/log:ring buffer + ExportLog 升級 zip - visionA-backend /api/pairing/exchange:SessionTokenStore + 17 new tests - 三平台 build 驗證(macOS DMG 160 MB / Windows EXE / Linux AppImage) - end-to-end 5 milestone 全綠(pairing → tunnel → forward → reuse 防護 → tunnel drop failover) Frontend / Next.js(AF1-AF7,沿用 visionA-frontend 基礎): - AppShell + Header + TabNav(StatusView / PairView / SettingsView 三 tab) - ConnectionStatusBadge 5 種狀態 - TokenInput regex 驗證 + 7 種錯誤 + 0.5s auto-switch 到狀態頁 - 設定頁 4 區塊(含重新配對 AlertDialog) - agent-api.ts 封裝 Wails bindings(mock/real 雙實作)+ 90 tests Phase 0.7 review-driven fix(Round 2): - A1 Session fixation 防護(RotateSessionID) - A3 mock pairing 預設改 false(必須明確 opt-in)+ startup log - A4 Pair 失敗後 state 清理矩陣(exchange/Save/Start fail 各自終態) - A5 Pair/Unpair/Reconnect lifecycleMu + 50 goroutine race test - F1 重新配對次按鈕 / F2 PairView Esc cancel / F3 Wails BrowserOpenURL / F4 Settings draft 持久 + 未儲存 badge 驗證:agent backend go test -race -count=3 ./... 4 packages 全綠 / agent frontend pnpm test 119 tests 全綠 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
55 lines
2.4 KiB
XML
55 lines
2.4 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
|
||
<!-- visionA Local — Logo -->
|
||
<!--
|
||
設計理念:
|
||
- 外層 rounded square 作為 app icon 的標準容器
|
||
- 深色背景 (#1A1F36) 襯托鏡頭感
|
||
- 同心圓 = 相機鏡頭 / 視覺感測器
|
||
- 中央幾何 "V" (vision 的縮寫) 用電子藍點陣強調「AI / edge」感
|
||
- 一點 mint 點綴用來打破純藍的冰冷
|
||
-->
|
||
<defs>
|
||
<linearGradient id="bgGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||
<stop offset="0%" stop-color="#1A1F36"/>
|
||
<stop offset="100%" stop-color="#0E1222"/>
|
||
</linearGradient>
|
||
<linearGradient id="lensGrad" x1="30%" y1="20%" x2="70%" y2="80%">
|
||
<stop offset="0%" stop-color="#6EA8FF"/>
|
||
<stop offset="100%" stop-color="#4F7EFF"/>
|
||
</linearGradient>
|
||
<radialGradient id="centerGrad" cx="50%" cy="45%" r="60%">
|
||
<stop offset="0%" stop-color="#6EF3C5" stop-opacity="0.9"/>
|
||
<stop offset="60%" stop-color="#4F7EFF" stop-opacity="0.2"/>
|
||
<stop offset="100%" stop-color="#4F7EFF" stop-opacity="0"/>
|
||
</radialGradient>
|
||
</defs>
|
||
|
||
<!-- 背景圓角方框 -->
|
||
<rect x="0" y="0" width="1024" height="1024" rx="220" ry="220" fill="url(#bgGrad)"/>
|
||
|
||
<!-- 外層鏡頭圓環(最粗) -->
|
||
<circle cx="512" cy="512" r="360" fill="none" stroke="url(#lensGrad)" stroke-width="36"/>
|
||
|
||
<!-- 中層鏡頭圓環(細) -->
|
||
<circle cx="512" cy="512" r="296" fill="none" stroke="#4F7EFF" stroke-width="14" stroke-opacity="0.6"/>
|
||
|
||
<!-- 內層光暈(中央感測器意象) -->
|
||
<circle cx="512" cy="512" r="240" fill="url(#centerGrad)"/>
|
||
|
||
<!-- 中央 "V" 幾何標誌(vision) -->
|
||
<!-- 用兩條粗線組成,線條頂端有 pixel dot,底部交會 -->
|
||
<g stroke="#FFFFFF" stroke-width="44" stroke-linecap="round" stroke-linejoin="round" fill="none">
|
||
<path d="M 360 360 L 512 640"/>
|
||
<path d="M 664 360 L 512 640"/>
|
||
</g>
|
||
|
||
<!-- Pixel accent dots(三個像素點強化 edge AI 的概念) -->
|
||
<circle cx="360" cy="360" r="22" fill="#6EF3C5"/>
|
||
<circle cx="664" cy="360" r="22" fill="#6EA8FF"/>
|
||
<circle cx="512" cy="640" r="26" fill="#FFFFFF"/>
|
||
|
||
<!-- 右上角 active indicator(科技感點綴) -->
|
||
<circle cx="760" cy="264" r="14" fill="#6EF3C5" opacity="0.85"/>
|
||
<circle cx="760" cy="264" r="24" fill="none" stroke="#6EF3C5" stroke-width="3" opacity="0.4"/>
|
||
</svg>
|