# 我有東西要賣:開發與協作指引 AI 整理商品與內部商店;MD、成果歸檔、轉單、付款記錄與人工出貨登記由中央平台提供。 ## 要 Fork 哪一個 Repo? 平台此頁與中央規則:https://github.com/FreeTWAI/freedom-platform Fork:https://github.com/FreeTWAI/freedom-platform/fork - 相關專案:https://github.com/FreeTWAI/freedom-supplier-client ;先讀該 Repo 的開場說明與 AGENTS.md,再決定修改位置。 ## 從哪裡讀程式? - https://github.com/FreeTWAI/freedom-platform/blob/main/apps/portal-web/src/modules/CommercePanels.tsx - https://github.com/FreeTWAI/freedom-platform/blob/main/modules/agent-commerce/imports.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/modules/agent-commerce/orders.ts - https://github.com/FreeTWAI/freedom-platform/blob/main/packages/shop-agent/internal.md - https://github.com/FreeTWAI/freedom-platform/blob/main/packages/shop-agent/common.md - https://github.com/FreeTWAI/freedom-platform/blob/main/docs/development/supplier-retail-pricing.md ## 第一個可做的改進 修改 AI 開店包與成果匯入時,閱讀 packages/shop-agent 及 modules/agent-commerce;保留舊版唯讀 client 權限。 ## 怎麼驗證? 先依 README 啟動隔離的測試資料庫與執行環境;不要對正式資料執行測試。 ```sh npm run build ``` ```sh npx tsx --test tests/runtime/agent-commerce.test.ts tests/runtime/commerce.test.ts tests/runtime/client-connections.test.ts ``` ```sh npx playwright test tests/e2e/agent-shops.spec.ts tests/e2e/commerce-modules.spec.ts ``` ## 要保留的邊界 - 客戶端讀取憑證不能作為會員 session,也不能直接改中央 DB。 - 中央會員、權限與業務資料只經授權 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