Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ fvm flutter test test/widget_test.dart # 單一測試檔
## 測試與 lint 現況(2026-11-08 實測)

- `fvm flutter analyze`:無任何 issue(exit code 0),新改動應維持零 issue。
- `fvm flutter test`:190 個測試全過,涵蓋安心助手入口(WebView 路由、無障礙點擊、200% 字級)、app shell、無障礙 bridge(`tts` 生命週期、`haptic`、`a11y_state`)、ASR/TTS 的 bridge 與 service、表單帶入。
- `frontend/agent-mvp/`:`pnpm lint`、`pnpm test`(425 個)、`pnpm build`、`pnpm test:e2e`(35 個,含 axe 的 WCAG 2.1 AA 掃描)全過。
- `tools/townpass/`:`pnpm typecheck`、`pnpm test`(34 個)全過。
- `fvm flutter test`:204 個測試全過,涵蓋安心助手入口(WebView 路由、無障礙點擊、200% 字級)、app shell、無障礙 bridge(`tts` 生命週期、`haptic`、`a11y_state`)、ASR/TTS 的 bridge 與 service、表單帶入、`userinfo` 來源檢查、`open_link` 帶入回覆、麥克風入口。
- `frontend/agent-mvp/`:`pnpm lint`、`pnpm test`(541 個)、`pnpm build`、`pnpm test:e2e`(47 個,含 axe 的 WCAG 2.1 AA 掃描)全過。
- `tools/townpass/`:`pnpm typecheck`、`pnpm test`(114 個)全過。
- CI 另外執行 Kotlin TTS 生命週期測試(job `kotlin-tts`,`TtsLifecycleTest.kt`)與 Python TTS 工具測試(job `python-tts`,`tools/tts-android/`)。
- `integration_test/` 的 LLM/ASR/TTS 伺服器測試需要實機與手動安裝的模型,CI 不執行。

## 架構入門點
Expand Down
6 changes: 3 additions & 3 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ The Care Assistant entry on the app's home screen opens the assistant. The on-de

| Scope | Commands | Status |
| --- | --- | --- |
| Flutter | `fvm flutter analyze`, `fvm flutter test` | no issues; 190 tests pass |
| Care Assistant | `pnpm lint`, `pnpm test`, `pnpm build`, `pnpm test:e2e` | 425 unit tests and 35 end-to-end tests (with axe scans) pass |
| Tools | `pnpm typecheck`, `pnpm test` (in `tools/townpass`) | 34 tests pass |
| Flutter | `fvm flutter analyze`, `fvm flutter test` | no issues; 204 tests pass |
| Care Assistant | `pnpm lint`, `pnpm test`, `pnpm build`, `pnpm test:e2e` | 541 unit tests and 47 end-to-end tests (with axe scans) pass |
| Tools | `pnpm typecheck`, `pnpm test` (in `tools/townpass`) | 114 tests pass |

CI only checks the parts affected by a change; see [CONTRIBUTING.md](CONTRIBUTING.md) (in Chinese).

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ App 首頁的「安心助手」入口會開啟助手。手機本機模型需要

| 範圍 | 指令 | 現況 |
| --- | --- | --- |
| Flutter | `fvm flutter analyze`、`fvm flutter test` | 無 issue;190 個測試通過 |
| 安心助手 | `pnpm lint`、`pnpm test`、`pnpm build`、`pnpm test:e2e` | 425 個單元測試、35 個 e2e 測試(含 axe 掃描)通過 |
| 工具 | `pnpm typecheck`、`pnpm test`(`tools/townpass`) | 34 個測試通過 |
| Flutter | `fvm flutter analyze`、`fvm flutter test` | 無 issue;204 個測試通過 |
| 安心助手 | `pnpm lint`、`pnpm test`、`pnpm build`、`pnpm test:e2e` | 541 個單元測試、47 個 e2e 測試(含 axe 掃描)通過 |
| 工具 | `pnpm typecheck`、`pnpm test`(`tools/townpass`) | 114 個測試通過 |

CI 會依改動的路徑只檢查受影響的部分,見 [CONTRIBUTING.md](CONTRIBUTING.md#pr-規範)。

Expand Down
22 changes: 11 additions & 11 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@

- [x] 解決 #11 與 `frontend` 在 README 的衝突,review 後合併進 `frontend`
- [ ] UI/UX 與無障礙驗證(#12):無障礙層已接上新 UI(#34),待 TalkBack 與實機字級驗證
- [ ] 資料來源頁 `/about`:列出所有資料來源與開放資料顯名
- [x] 資料來源頁 `/about`:列出所有資料來源與開放資料顯名(#46)
- [x] 使用者資料與定位:透過 JS bridge 取得,不在 app 內時有替代方式
- [ ] 範本地圖頁的 Google Maps `apiKey` 改讀環境變數,key 名稱登記到 `.env.example`
- [x] 範本地圖頁的 Google Maps `apiKey` 改讀環境變數,key 名稱登記到 `.env.example`(#57)

## Agent(`frontend/agent-mvp/`)

- [x] 用 `tools/townpass/` 取代 `DemoToolClient`(預設啟用,直接函式呼叫)
- [x] 接上手機 LFM3,取代規則模擬與暫用的 Qwen3 1.7B
- [ ] 接上正式服務後,重新驗證逾時、取消、工具失敗與模型輸出格式錯誤的處理
- [ ] 緊急狀況的對話摘要重新載入後只剩文字、沒有撥號按鈕
- [ ] `open_link` 帶入資料失敗時(舊版 App、表單欄位對不上)沒有任何回饋
- [ ] 系統高對比模式要涵蓋新 UI 的 token(`--primary`、`--surface`、`--bubble`、`--user-bubble`)
- [ ] 朗讀內容要包含緊急卡片的撥號說明
- [ ] 停車:「愛心車位」等用詞對應到身障車位;重新載入後停車操作列會消失;孕婦車位入口尚未提供
- [x] 緊急狀況的對話摘要重新載入後只剩文字、沒有撥號按鈕(#47)
- [x] `open_link` 帶入資料失敗時(舊版 App、表單欄位對不上)沒有任何回饋(#49)
- [x] 系統高對比模式要涵蓋新 UI 的 token(`--primary`、`--surface`、`--bubble`、`--user-bubble`)(#50)
- [x] 朗讀內容要包含緊急卡片的撥號說明(#47)
- [x] 停車:「愛心車位」等用詞對應到身障車位;重新載入後停車操作列會消失;孕婦車位入口尚未提供(#48)

## 模型(`model`)

- [x] 推理服務:手機上以 native 子行程載入 LFM3 1.7B 並推論(`tools/llm-android/`)
- [x] 推理服務:手機上以 native 子行程載入 LFM3-VL-2B 並推論(`tools/llm-android/`)
- [ ] 工具呼叫格式:模型固定輸出「工具名稱+參數」,與 `ModelAdapter` 對齊
- [ ] 訓練與評估腳本(權重放雲端,不進 git)

Expand All @@ -47,11 +47,11 @@
- [ ] `AndroidManifest.xml` 已補 `TTS_SERVICE` 的 `<queries>`,待實機確認能朗讀
- [x] `TtsMessageHandler` 每次呼叫都能切換語言
- [x] `flutter test` 加回 CI
- [ ] `userinfo` handler 加上來源與主 frame 檢查(目前任何載入的頁面都能取得會員資料)
- [x] `userinfo` handler 加上來源與主 frame 檢查(目前任何載入的頁面都能取得會員資料)(#45)
- [ ] 本機 LLM/ASR/TTS 的來源白名單加入正式 HTTPS 網域(Dart `kLlmAllowedOrigins` 與 TTS native `allowed_origin`)
- [ ] BlueMagpie 實機驗證:首句延遲、觸控與 TalkBack 能否解鎖音訊、與 LLM 同時載入的記憶體
- [ ] ASR:前端還沒有入口;`asr_stop` 無法取消進行中的 `asr_start`;`onDestroy` 不會停掉 ASR
- [ ] `TtsLifecycleTest.kt` 與 `tools/*-android` 的 Python 測試尚未納入 CI
- [x] ASR:前端還沒有入口;`asr_stop` 無法取消進行中的 `asr_start`;`onDestroy` 不會停掉 ASR(#53、#68)
- [x] `TtsLifecycleTest.kt` 與 `tools/*-android` 的 Python 測試尚未納入 CI(#64)

## Repo 與部署(維護者)

Expand Down
Loading