chore: D22 落地——docs/SDD/wiki/CLAUDE.md 進 repo(Gitea private 預設全 push)
頂層 D22 決策(leo 2026-07-03 拍板):推什麼由開發環境歸屬決定, Gitea private=除機敏值/build 產物/.github 外全 push。 解 T1.5 卡點:雲端工人 clone 拿得到 credential-store-migration.md,可就地改寫 SDD。 機敏掃描兩輪通過(新增 189 檔約 2.1MB,node_modules/dist/wasm 照舊排除)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// Matrix App Launcher 九宮格清單
|
||||
// 來源:matrix/identity/.agents/specs/identity/apps.json(v0 過渡複製,未來 v1 抽進 @matrix/identity-ui)
|
||||
// 規範:matrix/identity/.agents/specs/identity/design.md §2.5
|
||||
|
||||
export type AppEntry = {
|
||||
id: string;
|
||||
name: string;
|
||||
url: string;
|
||||
icon?: string;
|
||||
description?: string;
|
||||
access?: 'public' | 'allowlist';
|
||||
allowlist_emails?: string[];
|
||||
locked_tooltip?: string;
|
||||
};
|
||||
|
||||
export const MATRIX_APPS: AppEntry[] = [
|
||||
{
|
||||
id: 'arcrun',
|
||||
name: 'Arcrun',
|
||||
url: 'https://arcrun.dev',
|
||||
icon: '🔄',
|
||||
description: '工作流引擎與零件平台',
|
||||
},
|
||||
{
|
||||
id: 'dashboard',
|
||||
name: 'Dashboard',
|
||||
url: 'https://arcrun.dev/dashboard',
|
||||
icon: '🔑',
|
||||
description: 'API Key 管理',
|
||||
},
|
||||
{
|
||||
id: 'integrations',
|
||||
name: 'Integrations',
|
||||
url: 'https://arcrun.dev/integrations',
|
||||
icon: '🧩',
|
||||
description: '服務目錄',
|
||||
},
|
||||
{
|
||||
id: 'mira',
|
||||
name: 'Mira',
|
||||
url: 'https://arcrun.dev/mira',
|
||||
icon: '🌊',
|
||||
description: '個人化 KM 河道',
|
||||
access: 'allowlist',
|
||||
allowlist_emails: ['leo21c@gmail.com'],
|
||||
locked_tooltip: '即將開放',
|
||||
},
|
||||
];
|
||||
|
||||
export function isAppAccessible(app: AppEntry, userEmail: string | null): boolean {
|
||||
if (app.access !== 'allowlist') return true;
|
||||
if (!userEmail) return false;
|
||||
return (app.allowlist_emails ?? []).includes(userEmail);
|
||||
}
|
||||
Reference in New Issue
Block a user