# 我的好友:開發與協作指引 查看已接受好友、收到及送出的邀請,搜尋與分頁後開啟名片或私訊。 ## 要 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/FriendsPanel.tsx - https://github.com/FreeTWAI/freedom-platform/blob/main/modules/identity-membership/member-connections.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/apps/platform-api/src/routes/members.ts ## 第一個可做的改進 改善一項好友名單操作,核對邀請方向、當下關係、會員範圍與分頁。 ## 怎麼驗證? 先依 README 啟動隔離的測試資料庫與執行環境;不要對正式資料執行測試。 ```sh npm run build ``` ```sh npm run typecheck ``` ```sh npx tsx --test tests/runtime/member-connections.test.ts ``` ```sh npx playwright test tests/e2e/member-connections.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