feat: brain-engine + brain-ui + docs — template full stack standalone

- brain-engine: server, embed, search, RAG, MCP, start.sh (standalone)
- brain-ui: source React complète, build.sh, DocsView avec tier colors
- docs: 14 pages guides humains (getting-started, architecture, sessions, workflows, agents, vues tier)
- brain-compose.yml v0.9.0: tier featured ajouté, sessions/agents par tier, coach_level, API key schema
- DISTRIBUTION_CHECKLIST v1.2: brain-engine + brain-ui + docs dans la checklist
This commit is contained in:
2026-03-20 20:25:40 +01:00
parent c249d417f5
commit 8244a07881
93 changed files with 12088 additions and 34 deletions

View File

@@ -0,0 +1,21 @@
import type { ReactNode } from 'react'
interface TierGateProps {
feature: string
hasFeature: (f: string) => boolean
fallback?: ReactNode
children: ReactNode
}
export default function TierGate({ feature, hasFeature, fallback, children }: TierGateProps) {
if (!hasFeature(feature)) {
return fallback ? <>{fallback}</> : (
<div className="flex flex-col items-center justify-center h-full" style={{ color: '#4b5563' }}>
<div className="text-3xl mb-3">🔒</div>
<div className="text-sm font-medium">Fonctionnalité non disponible</div>
<div className="text-xs mt-1 font-mono" style={{ color: '#374151' }}>{feature} tier insuffisant</div>
</div>
)
}
return <>{children}</>
}