本卡屬 FR-182(母卡 CM-3609 https://app.notion.com/p/FR-182-Agent-Agent-P1-License-Center-4-3-410346da4cd0816ea5e2c4757ebc4fbb),P3 主系統端,卡 P3-4b,Stage 7(P1 LC 端已 Done 上 188/189;P2 Agent 端 CM-3621~3623 Stage 4)。只改 FE。依賴:P3-1。
主系統「遠端 Agent 管理」列表多一欄「授權」:每台顯示狀態標籤(正常/N 天後到期/寬限期/已過期/尚未開通/照無效)與到期日;還沒升到會回報的舊版 Agent 顯示「—」。另外把 P3-2 加的五個 error code 補進 FE 的錯誤碼字典(中英)。等 FR-181 B-3 合回(它動同一支 RemoteAgentManage.vue)。
extend:src/views/remote-agent/RemoteAgentManage.vue 列表在「連線」欄後加「授權」欄:license_status 對 Tag(valid 綠「正常」/notice 黃「N 天後到期」/grace 紅「寬限期」/expired 紅「已過期」/missing 灰「尚未開通」/invalid、mismatch 紅「照無效」;NULL → 「—」+ tooltip「舊版 Agent 未回報」)+ license_expires_at 日期;一格一值(Tag 一格、日期一格);i18n remote-agent.json(zh-tw、en);error-code.json(zh-tw、en、zh-cn 若有)補 GRC_AGENT_LICENSE_* 五碼。等 181 B-3 合回(同檔)。
repo:~/Projects/Billows/Audit-Manager/compliance-manager-fe
改既有:src/views/remote-agent/RemoteAgentManage.vue
改既有:src/config/locales/i18n/zh-tw/remote-agent.json
改既有:src/config/locales/i18n/en/remote-agent.json
改既有:src/config/locales/i18n/zh-tw/error-code.json
改既有:src/config/locales/i18n/en/error-code.json
src/views/remote-agent/RemoteAgentManage.vue 450~480 列表欄(181 B-3 已改「連線」欄為二態,本卡在它後面加);AgentConnectionCell.vue(Tag 的寫法);remote-agent.json 既有鍵;BE docs/claude/frontend-overview.md §3;memory feedback_table_one_value_per_cell_and_side_by_side_colors。<Column>:「授權」(license_status → Tag:valid success「正常」/notice warning「N 天後到期」(算 license_expires_at - today)/grace danger「寬限期」/expired danger「已過期」/missing secondary「尚未開通」/invalid、mismatch danger「照無效」;null → <span class="text-500">—</span> 加 v-tooltip 「舊版 Agent 未回報」)、「授權到期」(日期 YYYY-MM-DD,null —)。不做進度條、不兩值一格。remote-agent.json zh-tw/en 加 license、license_expires_at、license_status.<七態>、license_legacy_tip;error-code.json zh-tw/en(zh-cn 若 CI 檢查就一起)補 P3-2 的五碼句子(白話:「找不到此開通序號」「此序號已被使用」「嘗試次數過多,請稍後再試或改走離線開通」「主系統連不到授權伺服器」「授權伺服器暫時無法服務」)。npm run build、npm run lint;DEV 列表實看。npm run build、lint 無新 error;DEV 列表:123 Agent(P3-3 版)顯示「正常」+到期日,未升版的 Agent 顯示「—」;grep -c GRC_AGENT_LICENSE src/config/locales/i18n/*/error-code.json 各 5;grep -c border-left 該檔不變
~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-182-2611-agent-license/design.md(D6 不擋啟動但不起 sync、D8 用既有 integrity 驗章、§4.2 照 payload、§4.8 Agent 端);討論稿 ~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-182-2611-agent-license/discussion.md §2.2 Agent 端盤點、§2.4 與 FR-181/FR-179 接點、§3.7 狀態表~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-182-2611-agent-license/prototype/agent-console-license.html(七場景;P2-3 對照刻,P2-1/P2-2 看資料要長什麼樣)~/Projects/Billows/Audit-Manager/evidence-agent/CLAUDE.md、docs/ARCHITECTURE.md(模組分工、依賴方向、守衛)~/Projects/Billows/Audit-Manager/license_center(branch feature/FR-172)CLI agent-issue/agent-activate/agent-verify;export PYTHONPATH=src; env -u VIRTUAL_ENV poetry run python -m license_center.cli.main agent-issue --help;passphrase 走 LC .envcards_p3.py 檔頭有核對清單——181 套件工作區 .worktrees/CM-3595 動的檔本案不碰;FR-181 母卡 CM-3595