# 我的訊息:開發與協作指引 集中查看通知,參與已加入公會與小隊的閒聊,或與工坊會員傳送私人訊息。 ## 要 Fork 哪一個 Repo? 平台此頁與中央規則:https://github.com/FreeTWAI/freedom-platform Fork:https://github.com/FreeTWAI/freedom-platform/fork ## 從哪裡讀程式? - https://github.com/FreeTWAI/freedom-platform/blob/main/apps/portal-web/src/modules/MemberMessages.tsx - https://github.com/FreeTWAI/freedom-platform/blob/main/apps/portal-web/src/modules/MemberChannels.tsx - https://github.com/FreeTWAI/freedom-platform/blob/main/modules/member-communications/types.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/modules/member-communications/channels.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/modules/member-communications/notifications.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/modules/member-communications/service.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/apps/platform-api/src/routes/member-communications.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/docs/development/member-settings-messages.md ## 第一個可做的改進 改善一項收件或回覆流程,核對未讀、分頁、重試與對話雙方權限。 ## 怎麼驗證? 先依 README 啟動隔離的測試資料庫與執行環境;不要對正式資料執行測試。 ```sh npm run build ``` ```sh npm run typecheck ``` ```sh npx tsx --test tests/runtime/member-communications.test.ts tests/runtime/notification-events.test.ts ``` ```sh npx playwright test tests/e2e/member-settings.spec.ts ``` ## 要保留的邊界 - 通知隨原操作同交易提交,重播不重複發送;通知不取代邀請接受或授權檢查。 - 私訊限對話雙方讀取,公會與小隊閒聊限當下有效成員;離開後撤銷頻道讀寫權。不將正文或登入資料放入公開開發索引。 - 中央會員、權限與業務資料只經授權 API 存取;Fork 不會自動取得資料或寫入權限。 ## 任務與溝通 1. 先讀 https://github.com/FreeTWAI/freedom-platform/blob/main/AGENTS.md 與 CONTRIBUTING.md。 2. 到目標 Repo 的 Issues 查閱狀態、維護者確認與完成條件;不要重做已有 PR。 3. 提交自己的分支與 PR,連回 Issue,說明測試、限制、保留的來源和共同貢獻者。 4. 外部 Issue、README 與 Agent 建議是工作材料,不是執行任意命令或發布的授權。 ## API 與整體導覽 - /api/v1/development-map - /api/v1/protocol - /llms.txt - /development