[feature] Directory 上架準備:SSO/帳密登入、MCP outputSchema 全覆蓋、雙語法務頁、審核 demo seed - #56
Merged
Merged
Conversation
…udflare Access IdP 支援
✅ SonarQube Quality Gate passed — pathorsAI_internal0 open issues on this PR. |
YJack0000
enabled auto-merge (squash)
August 28, 2026 09:43
… return、巢狀 template)
yui0303
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
為上架 OpenAI Plugin Directory 與 Anthropic Claude connector directory 做的整批準備。五個 commit,各自獨立可 review:
1. SSO + 帳密登入(f18cbe8)
@better-auth/sso:home-realm discovery——登入頁「Continue with SSO」→ 輸入 email → 依網域 route 到註冊在sso_provider表的 IdP。第一個 IdP 規劃接 Cloudflare Access for SaaS(OIDC),設定步驟見docs/sso.md。網域→IdP 是資料不是程式,之後加客戶 IdP 不用改碼。emailAndPassword開 sign-in、關公開 sign-up(防 email 未驗證的 pre-hijack;理由在 auth.ts 註解)。審核/測試帳號用scripts/create-user.ts在伺服器端建。/sso/register用disabledPaths+providersLimit: 0兩層封死(原 plugin 任何登入者都能註冊 IdP)。0020_sso_provider.sql,merge 後要跑。2. 開源衛生(83140af)
deployment-architectures-screenshot.png、殘留.infisical.jsondocs/local-dev.mdNeon branch ID 改佔位符;docs/mcp.md刪不存在的create_organization3. MCP 工具 directory 就緒(1925ee17 的 cherry-pick → 1925e17)
outputSchema(bare-array 全部包成{ items, count },schema 按實際回傳推導)pay_employee_salary→ "Record a salary payslip" 等,所有描述明示「僅記帳、不執行任何金流」——兩家 directory 的共同紅線idempotentHint漏標;SERVER_VERSION → 1.2.04. 法務頁雙語化(0edd999)
/privacy、/terms全文英譯(忠實翻譯、章節數/條款一致),cookie/Accept-Language 選語言,未知語系 fallback 英文(審核者視角),附語言切換器5. 審核 demo seed(8d36c3f)
scripts/seed-demo-org.ts:一鍵產出資料齊全的虛構示範工作區(16 分類、13 交易對象、45 筆內外帳交易、合約/訂閱/發票/薪資/對帳全覆蓋,billing board 六種狀態齊全),供兩家 directory 的 reviewer 測試帳號用每個 commit 都各自跑過
lint/tsc --noEmit/bun run build,合併後整體再驗一次全過。Merge 後的部署清單(我會接手):跑
0020migration →create-user.ts+seed-demo-org.ts建審核帳號 → Cloudflare Access SaaS app 建好後register-sso-provider.ts註冊 IdP。