oneie 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/AGENTS.md +245 -0
  2. package/CLAUDE.md +534 -0
  3. package/README.md +61 -4
  4. package/one/.obsidian/app.json +1 -0
  5. package/one/.obsidian/appearance.json +1 -0
  6. package/one/.obsidian/core-plugins.json +33 -0
  7. package/one/.obsidian/workspace.json +211 -0
  8. package/one/connections/a2a.md +551 -0
  9. package/one/connections/acp.md +761 -0
  10. package/one/connections/acps.md +731 -0
  11. package/one/connections/agui.md +767 -0
  12. package/one/connections/any-backend.md +1702 -0
  13. package/one/connections/ap2.md +998 -0
  14. package/one/connections/api-docs.md +1891 -0
  15. package/one/connections/api.md +2190 -0
  16. package/one/connections/architecture-diagram.md +94 -0
  17. package/one/connections/communications.md +449 -0
  18. package/one/connections/connections.md +339 -0
  19. package/one/connections/cryptonetworks.md +781 -0
  20. package/one/connections/documentation.md +1120 -0
  21. package/one/connections/effect.md +279 -0
  22. package/one/connections/elizaos.md +1290 -0
  23. package/one/connections/inference.md +58 -0
  24. package/one/connections/kyc.md +632 -0
  25. package/one/connections/mcp.md +842 -0
  26. package/one/connections/membership.md +1152 -0
  27. package/one/connections/middleware.md +1067 -0
  28. package/one/connections/multitenant.md +1341 -0
  29. package/one/connections/n8n.md +1015 -0
  30. package/one/connections/patterns.md +89 -0
  31. package/one/connections/protocols.md +279 -0
  32. package/one/connections/relationships.md +107 -0
  33. package/one/connections/schema.md +587 -0
  34. package/one/connections/service-layer.md +550 -0
  35. package/one/connections/structure.md +0 -0
  36. package/one/connections/vectors.md +207 -0
  37. package/one/connections/wordpress.md +1302 -0
  38. package/one/connections/workflow-copy.md +905 -0
  39. package/one/connections/workflow-examples.md +741 -0
  40. package/one/connections/workflow.md +905 -0
  41. package/one/connections/workflows/delegation.md +885 -0
  42. package/one/connections/workflows/frontend.md +1037 -0
  43. package/one/connections/workflows/strategy.md +903 -0
  44. package/one/connections/workflows/tasks.md +698 -0
  45. package/one/connections/x402.md +1249 -0
  46. package/one/events/events.md +545 -0
  47. package/one/knowledge/ai-platform.md +305 -0
  48. package/one/knowledge/architecture-diagram.md +94 -0
  49. package/one/knowledge/architecture-frontend.md +930 -0
  50. package/one/knowledge/architecture.md +2077 -0
  51. package/one/knowledge/crypto.md +960 -0
  52. package/one/knowledge/dsl.md +1660 -0
  53. package/one/knowledge/files.md +2471 -0
  54. package/one/knowledge/frontend.md +1038 -0
  55. package/one/knowledge/hono.md +2109 -0
  56. package/one/knowledge/implementation-examples.md +2536 -0
  57. package/one/knowledge/inference-score.md +159 -0
  58. package/one/knowledge/knowledge.md +642 -0
  59. package/one/knowledge/language.md +980 -0
  60. package/one/knowledge/lessons-learned.md +70 -0
  61. package/one/knowledge/ontology-6-dimensions.md +0 -0
  62. package/one/knowledge/ontology-documentation.md +356 -0
  63. package/one/knowledge/ontology-engineering-specification.md +1292 -0
  64. package/one/knowledge/ontology-engineering.md +1652 -0
  65. package/one/knowledge/ontology-frontend-copy-2.md +1492 -0
  66. package/one/knowledge/ontology-frontend-copy.md +753 -0
  67. package/one/knowledge/ontology-frontend-specifications.md +2188 -0
  68. package/one/knowledge/ontology-frontend.md +2427 -0
  69. package/one/knowledge/ontology-minimal.yaml +299 -0
  70. package/one/knowledge/ontology.md +2819 -0
  71. package/one/knowledge/ontology.yaml +1165 -0
  72. package/one/knowledge/patterns/backend/convex-mutation-pattern.md +100 -0
  73. package/one/knowledge/patterns/backend/convex-query-pattern.md +88 -0
  74. package/one/knowledge/patterns/backend/mutation-template.md +231 -0
  75. package/one/knowledge/patterns/backend/query-template.md +267 -0
  76. package/one/knowledge/patterns/backend/service-template.md +237 -0
  77. package/one/knowledge/patterns/design/component-architecture.md +399 -0
  78. package/one/knowledge/patterns/design/test-driven-design-pattern.md +162 -0
  79. package/one/knowledge/patterns/design/wireframe-template.md +216 -0
  80. package/one/knowledge/patterns/frontend/component-template.md +195 -0
  81. package/one/knowledge/patterns/frontend/form-template.md +276 -0
  82. package/one/knowledge/patterns/frontend/page-template.md +178 -0
  83. package/one/knowledge/patterns/frontend/react-component-pattern.md +128 -0
  84. package/one/knowledge/patterns/test/acceptance-criteria-template.md +378 -0
  85. package/one/knowledge/patterns/test/technical-test-template.md +544 -0
  86. package/one/knowledge/patterns/test/test-driven-pattern.md +140 -0
  87. package/one/knowledge/patterns/test/user-flow-template.md +254 -0
  88. package/one/knowledge/quality-loop.md +401 -0
  89. package/one/knowledge/readme.md +131 -0
  90. package/one/knowledge/rules.md +626 -0
  91. package/one/knowledge/score.md +67 -0
  92. package/one/knowledge/specifications.md +855 -0
  93. package/one/knowledge/tags.md +130 -0
  94. package/one/organisation/one.md +599 -0
  95. package/one/organisation/organisation.md +438 -0
  96. package/one/organisation/revenue.md +673 -0
  97. package/one/organisation/strategy.md +869 -0
  98. package/one/organisation/vision.md +98 -0
  99. package/one/people/anthony-o-connell.md +440 -0
  100. package/one/people/people.md +567 -0
  101. package/one/repomix-output.md +92634 -0
  102. package/one/things/agentkit.md +349 -0
  103. package/one/things/agents/agent-backend.md +1401 -0
  104. package/one/things/agents/agent-builder.md +955 -0
  105. package/one/things/agents/agent-clean.md +709 -0
  106. package/one/things/agents/agent-clone.md +1341 -0
  107. package/one/things/agents/agent-designer.md +2177 -0
  108. package/one/things/agents/agent-director.md +1508 -0
  109. package/one/things/agents/agent-documenter.md +1049 -0
  110. package/one/things/agents/agent-frontend.md +1119 -0
  111. package/one/things/agents/agent-integrator.md +1192 -0
  112. package/one/things/agents/agent-problem-solver.md +1379 -0
  113. package/one/things/agents/agent-quality.md +1353 -0
  114. package/one/things/agents/agent-sales.md +986 -0
  115. package/one/things/cascade/cascade.yaml +464 -0
  116. package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +470 -0
  117. package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +264 -0
  118. package/one/things/cascade/docs/examples/1-1-agent-prompts.md +486 -0
  119. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +497 -0
  120. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +227 -0
  121. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +516 -0
  122. package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +544 -0
  123. package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +223 -0
  124. package/one/things/cascade/docs/examples/1-3-event-coordination.md +508 -0
  125. package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +609 -0
  126. package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +195 -0
  127. package/one/things/cascade/docs/examples/1-4-knowledge-management.md +577 -0
  128. package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +797 -0
  129. package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +212 -0
  130. package/one/things/cascade/docs/examples/1-5-quality-loops.md +641 -0
  131. package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +610 -0
  132. package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +213 -0
  133. package/one/things/cascade/docs/examples/1-6-numbering-structure.md +575 -0
  134. package/one/things/cascade/docs/examples/readme.md +222 -0
  135. package/one/things/cascade/docs/getting-started.md +515 -0
  136. package/one/things/cascade/docs/workflow.md +1372 -0
  137. package/one/things/cascade/readme.md +336 -0
  138. package/one/things/cascade/templates/feature-template.md +267 -0
  139. package/one/things/claude/agents/advocacy-activation-manager.md +685 -0
  140. package/one/things/claude/agents/advocacy-campaign-designer.md +663 -0
  141. package/one/things/claude/agents/analyst.md +483 -0
  142. package/one/things/claude/agents/architect.md +480 -0
  143. package/one/things/claude/agents/brand-identity-specialist.md +513 -0
  144. package/one/things/claude/agents/bstp-token-strategist.md +667 -0
  145. package/one/things/claude/agents/builder-repo.md +489 -0
  146. package/one/things/claude/agents/bullstamp-community-builder.md +574 -0
  147. package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +506 -0
  148. package/one/things/claude/agents/bulltilt-platform-growth.md +567 -0
  149. package/one/things/claude/agents/company-bullstamp-character.md +587 -0
  150. package/one/things/claude/agents/company-bullstamp-community.md +292 -0
  151. package/one/things/claude/agents/company-bullstamp-marketing.md +292 -0
  152. package/one/things/claude/agents/company-bullstamp-token.md +292 -0
  153. package/one/things/claude/agents/company-bulltilt-growth.md +292 -0
  154. package/one/things/claude/agents/content-bibliography-formatter.md +381 -0
  155. package/one/things/claude/agents/content-calendar-planner.md +448 -0
  156. package/one/things/claude/agents/content-chapter-formatter.md +488 -0
  157. package/one/things/claude/agents/content-formatter.md +546 -0
  158. package/one/things/claude/agents/content-hook-specialist.md +462 -0
  159. package/one/things/claude/agents/content-image-formatter.md +535 -0
  160. package/one/things/claude/agents/content-introduction-formatter.md +485 -0
  161. package/one/things/claude/agents/content-multiplication-engine.md +556 -0
  162. package/one/things/claude/agents/content-playbook-writer.md +448 -0
  163. package/one/things/claude/agents/content-team-manager.md +622 -0
  164. package/one/things/claude/agents/content-toc-formatter.md +522 -0
  165. package/one/things/claude/agents/convex-backend-specialist.md +2561 -0
  166. package/one/things/claude/agents/core-manager.md +582 -0
  167. package/one/things/claude/agents/core-master.md +403 -0
  168. package/one/things/claude/agents/cross-functional-manager.md +471 -0
  169. package/one/things/claude/agents/crypto-airdrop-strategist.md +602 -0
  170. package/one/things/claude/agents/crypto-analytics-educator.md +553 -0
  171. package/one/things/claude/agents/crypto-architecture-specialist.md +466 -0
  172. package/one/things/claude/agents/crypto-community-analyst.md +298 -0
  173. package/one/things/claude/agents/crypto-community-psychologist.md +509 -0
  174. package/one/things/claude/agents/crypto-dex-optimization-expert.md +538 -0
  175. package/one/things/claude/agents/crypto-dex-optimizer.md +292 -0
  176. package/one/things/claude/agents/crypto-diamond-formation-specialist.md +513 -0
  177. package/one/things/claude/agents/crypto-diamond-hands.md +292 -0
  178. package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +554 -0
  179. package/one/things/claude/agents/crypto-engagement-specialist.md +540 -0
  180. package/one/things/claude/agents/crypto-market-researcher.md +292 -0
  181. package/one/things/claude/agents/crypto-marketing-orchestrator.md +523 -0
  182. package/one/things/claude/agents/crypto-network-effect-amplifier.md +569 -0
  183. package/one/things/claude/agents/crypto-optimization-analyst.md +554 -0
  184. package/one/things/claude/agents/crypto-strategic-synthesizer.md +517 -0
  185. package/one/things/claude/agents/crypto-team-manager.md +387 -0
  186. package/one/things/claude/agents/crypto-token-analyst.md +278 -0
  187. package/one/things/claude/agents/crypto-viral-content-creator.md +546 -0
  188. package/one/things/claude/agents/crypto-wallet-identification-expert.md +517 -0
  189. package/one/things/claude/agents/crypto-wallet-identifier.md +292 -0
  190. package/one/things/claude/agents/customer-journey-designer.md +481 -0
  191. package/one/things/claude/agents/customer-success-manager.md +581 -0
  192. package/one/things/claude/agents/dev.md +413 -0
  193. package/one/things/claude/agents/documenter.md +546 -0
  194. package/one/things/claude/agents/elevate-marketing-orchestrator.md +410 -0
  195. package/one/things/claude/agents/engagement-specialist.md +509 -0
  196. package/one/things/claude/agents/engineering-architect.md +387 -0
  197. package/one/things/claude/agents/engineering-business-analyst.md +537 -0
  198. package/one/things/claude/agents/engineering-developer.md +387 -0
  199. package/one/things/claude/agents/engineering-director.md +282 -0
  200. package/one/things/claude/agents/engineering-ingestor.md +649 -0
  201. package/one/things/claude/agents/engineering-product-manager.md +537 -0
  202. package/one/things/claude/agents/engineering-product-owner.md +537 -0
  203. package/one/things/claude/agents/engineering-project-coordinator.md +537 -0
  204. package/one/things/claude/agents/engineering-quality-assurance.md +393 -0
  205. package/one/things/claude/agents/engineering-team-manager.md +512 -0
  206. package/one/things/claude/agents/engineering-user-experience.md +387 -0
  207. package/one/things/claude/agents/framework-elevate-manager.md +294 -0
  208. package/one/things/claude/agents/improver.md +763 -0
  209. package/one/things/claude/agents/intelligence-team-manager.md +385 -0
  210. package/one/things/claude/agents/lead-capture-expert.md +466 -0
  211. package/one/things/claude/agents/lead-magnet-creator.md +453 -0
  212. package/one/things/claude/agents/market-research-analyst.md +412 -0
  213. package/one/things/claude/agents/marketing-brand-identity.md +314 -0
  214. package/one/things/claude/agents/marketing-content-hooks.md +450 -0
  215. package/one/things/claude/agents/marketing-content-multiplier.md +326 -0
  216. package/one/things/claude/agents/marketing-content-poster.md +361 -0
  217. package/one/things/claude/agents/marketing-customer-journey.md +326 -0
  218. package/one/things/claude/agents/marketing-director.md +397 -0
  219. package/one/things/claude/agents/marketing-engagement.md +326 -0
  220. package/one/things/claude/agents/marketing-lead-capture.md +326 -0
  221. package/one/things/claude/agents/marketing-lead-magnet.md +326 -0
  222. package/one/things/claude/agents/marketing-network-effects.md +326 -0
  223. package/one/things/claude/agents/marketing-nurture-campaigns.md +326 -0
  224. package/one/things/claude/agents/marketing-share-optimizer.md +326 -0
  225. package/one/things/claude/agents/marketing-team-manager.md +446 -0
  226. package/one/things/claude/agents/marketing-viral-growth.md +201 -0
  227. package/one/things/claude/agents/mission-commander.md +373 -0
  228. package/one/things/claude/agents/network-effect-analyst.md +587 -0
  229. package/one/things/claude/agents/nextjs-15-specialist.md +1547 -0
  230. package/one/things/claude/agents/npx.md +890 -0
  231. package/one/things/claude/agents/nurture-campaign-manager.md +531 -0
  232. package/one/things/claude/agents/one-master.md +355 -0
  233. package/one/things/claude/agents/one-orchestrator.md +315 -0
  234. package/one/things/claude/agents/one.md +601 -0
  235. package/one/things/claude/agents/playbook-generator.md +503 -0
  236. package/one/things/claude/agents/pm.md +326 -0
  237. package/one/things/claude/agents/po.md +345 -0
  238. package/one/things/claude/agents/qa.md +336 -0
  239. package/one/things/claude/agents/research-foundation-analyst.md +307 -0
  240. package/one/things/claude/agents/research-intelligence-gatherer.md +408 -0
  241. package/one/things/claude/agents/research-market-analyst.md +307 -0
  242. package/one/things/claude/agents/research-team-manager.md +482 -0
  243. package/one/things/claude/agents/sales-environment-optimizer.md +494 -0
  244. package/one/things/claude/agents/sales-team-manager.md +400 -0
  245. package/one/things/claude/agents/sales-upsell-strategist.md +307 -0
  246. package/one/things/claude/agents/service-advocacy-campaigns.md +307 -0
  247. package/one/things/claude/agents/service-advocacy-manager.md +307 -0
  248. package/one/things/claude/agents/service-success-manager.md +307 -0
  249. package/one/things/claude/agents/service-team-manager.md +400 -0
  250. package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +2302 -0
  251. package/one/things/claude/agents/share-optimization-specialist.md +551 -0
  252. package/one/things/claude/agents/sm.md +327 -0
  253. package/one/things/claude/agents/story-teller.md +473 -0
  254. package/one/things/claude/agents/task-master.md +596 -0
  255. package/one/things/claude/agents/tauri-cross-platform-specialist.md +1827 -0
  256. package/one/things/claude/agents/tester.md +556 -0
  257. package/one/things/claude/agents/the-bull-character-manager.md +580 -0
  258. package/one/things/claude/agents/tools-playbook-generator.md +489 -0
  259. package/one/things/claude/agents/turbo-repo-builder.md +316 -0
  260. package/one/things/claude/agents/upsell-strategist.md +480 -0
  261. package/one/things/claude/agents/ux-expert.md +335 -0
  262. package/one/things/claude/agents/viral-growth-orchestrator.md +497 -0
  263. package/one/things/claude/claude-code-hooks-development.json +21 -0
  264. package/one/things/claude/claude-code-hooks-production.json +21 -0
  265. package/one/things/claude/claude-code-hooks.json +25 -0
  266. package/one/things/claude/commands/agent.md +104 -0
  267. package/one/things/claude/commands/cascade-status.md +128 -0
  268. package/one/things/claude/commands/ingest.md +290 -0
  269. package/one/things/claude/commands/ingestor.md +136 -0
  270. package/one/things/claude/commands/mission.md +83 -0
  271. package/one/things/claude/commands/npx.md +133 -0
  272. package/one/things/claude/commands/one.md +440 -0
  273. package/one/things/claude/commands/quality-check.md +204 -0
  274. package/one/things/claude/commands/smart-route.md +220 -0
  275. package/one/things/claude/commands/start.md +121 -0
  276. package/one/things/claude/commands/story.md +83 -0
  277. package/one/things/claude/commands/task.md +173 -0
  278. package/one/things/claude/hook-bypass.json +32 -0
  279. package/one/things/claude/hooks/agent-hook-config.json +427 -0
  280. package/one/things/claude/hooks/agent-hook-manager.js +525 -0
  281. package/one/things/claude/hooks/agent-load-balancer.js +271 -0
  282. package/one/things/claude/hooks/agent-request-interceptor.js +70 -0
  283. package/one/things/claude/hooks/build-hook.sh +156 -0
  284. package/one/things/claude/hooks/cascade-feedback.js +297 -0
  285. package/one/things/claude/hooks/cascade-integration-hooks.js +648 -0
  286. package/one/things/claude/hooks/cleanup-hook.sh +201 -0
  287. package/one/things/claude/hooks/continuous-improvement-monitor.js +510 -0
  288. package/one/things/claude/hooks/file-organization-engine.js +427 -0
  289. package/one/things/claude/hooks/file-organization-hook.sh +80 -0
  290. package/one/things/claude/hooks/file-organization-monitor.js +269 -0
  291. package/one/things/claude/hooks/format-hook.sh +43 -0
  292. package/one/things/claude/hooks/hook-bypass.sh +293 -0
  293. package/one/things/claude/hooks/hook-config-manager.js +202 -0
  294. package/one/things/claude/hooks/hook-debouncer.sh +62 -0
  295. package/one/things/claude/hooks/hook-logger.sh +89 -0
  296. package/one/things/claude/hooks/hook-orchestrator.js +662 -0
  297. package/one/things/claude/hooks/hook-performance-report.js +120 -0
  298. package/one/things/claude/hooks/lint-hook.sh +140 -0
  299. package/one/things/claude/hooks/mcp-cascade-integration.js +816 -0
  300. package/one/things/claude/hooks/memory-optimizer.js +510 -0
  301. package/one/things/claude/hooks/notification-hook.sh +204 -0
  302. package/one/things/claude/hooks/ontology-compliance.js +394 -0
  303. package/one/things/claude/hooks/ontology-hook-manager.js +316 -0
  304. package/one/things/claude/hooks/ontology-validation-engine.js +317 -0
  305. package/one/things/claude/hooks/ontology-validation-hook.sh +86 -0
  306. package/one/things/claude/hooks/performance-metrics.json +25 -0
  307. package/one/things/claude/hooks/performance-monitoring-hook.js +422 -0
  308. package/one/things/claude/hooks/quality-scoring-engine.js +834 -0
  309. package/one/things/claude/hooks/security-hook.sh +256 -0
  310. package/one/things/claude/hooks/simple-load-balancer.js +238 -0
  311. package/one/things/claude/hooks/startup-optimizer.js +625 -0
  312. package/one/things/claude/hooks/story-scoring-system.js +445 -0
  313. package/one/things/claude/hooks/story-validation-engine.js +473 -0
  314. package/one/things/claude/hooks/story-validation-hook-enhanced.sh +210 -0
  315. package/one/things/claude/hooks/story-validation-hook.sh +145 -0
  316. package/one/things/claude/hooks/structure-synchronizer.js +194 -0
  317. package/one/things/claude/hooks/sub-agent-output-validator.js +647 -0
  318. package/one/things/claude/hooks/sub-agent-validation-hook.js +343 -0
  319. package/one/things/claude/hooks/test-hook.sh +145 -0
  320. package/one/things/claude/hooks/test-story-validation.sh +170 -0
  321. package/one/things/claude/hooks/trinity-validation-system.js +392 -0
  322. package/one/things/claude/settings-local.json +86 -0
  323. package/one/things/cli-code.md +652 -0
  324. package/one/things/cli-compiler-code.md +652 -0
  325. package/one/things/cli.md +1045 -0
  326. package/one/things/components/card-shadcn.md +929 -0
  327. package/one/things/components/card.md +1050 -0
  328. package/one/things/components.md +1669 -0
  329. package/one/things/componets.md +4 -0
  330. package/one/things/copilotkit.md +1559 -0
  331. package/one/things/creator-diagram.md +166 -0
  332. package/one/things/examples/children/lemonade-stand.md +366 -0
  333. package/one/things/examples/enterprise/crm-saas.md +1429 -0
  334. package/one/things/features/1-1-agent-prompts/design.md +470 -0
  335. package/one/things/features/1-1-agent-prompts/tests.md +264 -0
  336. package/one/things/features/1-1-agent-prompts.md +486 -0
  337. package/one/things/features/1-2-yaml-orchestrator/design.md +497 -0
  338. package/one/things/features/1-2-yaml-orchestrator/tests.md +227 -0
  339. package/one/things/features/1-2-yaml-orchestrator.md +516 -0
  340. package/one/things/features/1-3-event-coordination/design.md +544 -0
  341. package/one/things/features/1-3-event-coordination/tests.md +223 -0
  342. package/one/things/features/1-3-event-coordination.md +508 -0
  343. package/one/things/features/1-4-knowledge-management/design.md +609 -0
  344. package/one/things/features/1-4-knowledge-management/tests.md +195 -0
  345. package/one/things/features/1-4-knowledge-management.md +577 -0
  346. package/one/things/features/1-5-quality-loops/design.md +797 -0
  347. package/one/things/features/1-5-quality-loops/tests.md +212 -0
  348. package/one/things/features/1-5-quality-loops.md +641 -0
  349. package/one/things/features/1-6-numbering-structure/design.md +610 -0
  350. package/one/things/features/1-6-numbering-structure/tests.md +213 -0
  351. package/one/things/features/1-6-numbering-structure.md +575 -0
  352. package/one/things/features/2-cli.md +1235 -0
  353. package/one/things/features/use-one-backend.md +1180 -0
  354. package/one/things/ideas/1-create-workflow.md +189 -0
  355. package/one/things/plans/1-create-workflow-status.md +555 -0
  356. package/one/things/plans/1-create-workflow.md +713 -0
  357. package/one/things/plans/app.md +761 -0
  358. package/one/things/plans/better-auth-any-backend-revised.md +1065 -0
  359. package/one/things/plans/better-auth-any-backend.md +1852 -0
  360. package/one/things/plans/better-auth-available-features.md +235 -0
  361. package/one/things/plans/big-plan.md +38 -0
  362. package/one/things/plans/convex-better-auth.md +1109 -0
  363. package/one/things/plans/convex-on-off.md +389 -0
  364. package/one/things/plans/desktop.md +1121 -0
  365. package/one/things/plans/effect-components.md +1669 -0
  366. package/one/things/plans/effect.md +973 -0
  367. package/one/things/plans/email.md +953 -0
  368. package/one/things/plans/enhance-auth.md +1669 -0
  369. package/one/things/plans/install-components.md +198 -0
  370. package/one/things/plans/landing.md +728 -0
  371. package/one/things/plans/layout.md +205 -0
  372. package/one/things/plans/mail-backend.md +1308 -0
  373. package/one/things/plans/mail.md +2624 -0
  374. package/one/things/plans/next-features.md +83 -0
  375. package/one/things/plans/one.md +658 -0
  376. package/one/things/plans/ontology-6-dimensions.md +2216 -0
  377. package/one/things/plans/ontology-driven-strategy.md +866 -0
  378. package/one/things/plans/ontology-ui-approach.md +357 -0
  379. package/one/things/plans/open-agent.md +785 -0
  380. package/one/things/plans/performace.md +90 -0
  381. package/one/things/plans/releases.md +809 -0
  382. package/one/things/plans/repos.md +76 -0
  383. package/one/things/plans/separate-copy-2.md +1293 -0
  384. package/one/things/plans/separate-copy-3.md +2458 -0
  385. package/one/things/plans/separate-copy.md +1293 -0
  386. package/one/things/plans/separate.md +1983 -0
  387. package/one/things/plans/shadcn-integration-summary.md +450 -0
  388. package/one/things/plans/sidebar.md +172 -0
  389. package/one/things/plans/small-fixes.md +5 -0
  390. package/one/things/plans/test-backend-connection.md +476 -0
  391. package/one/things/plans/workflow-files.md +1196 -0
  392. package/one/things/plans/workflow.md +1372 -0
  393. package/one/things/products/cascade-landing-page.md +737 -0
  394. package/one/things/products/cascade.md +1518 -0
  395. package/one/things/products/context-engineering.md +1427 -0
  396. package/one/things/products/onthology.md +0 -0
  397. package/one/things/products/ontology-ui-shadcn.md +1280 -0
  398. package/one/things/products/ontology-ui.md +1387 -0
  399. package/one/things/products/ontology.md +717 -0
  400. package/one/things/products/sdk.md +557 -0
  401. package/one/things/promptkit.md +903 -0
  402. package/one/things/service-providers-new.md +982 -0
  403. package/one/things/service-providers.md +1092 -0
  404. package/one/things/things.md +349 -0
  405. package/one/things/todo.md +1248 -0
  406. package/package.json +5 -2
@@ -0,0 +1,1387 @@
1
+ # Ontology UI Specification
2
+
3
+ **Frontend-complete ontology: Data model + UI model = Complete specification**
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ The ONE ontology extends beyond data modeling to include UI rendering instructions. For each thing type, we define not just **what data it contains**, but **how it should be displayed**.
10
+
11
+ **Benefits:**
12
+ - ✅ Generic components work for all 66 thing types
13
+ - ✅ Consistent UI across entire platform
14
+ - ✅ Add new type → UI updates automatically
15
+ - ✅ Frontend is just a renderer (no hardcoded logic)
16
+ - ✅ Customizable per organization
17
+
18
+ **Implementation:**
19
+ - Built on [shadcn/ui](https://ui.shadcn.com) - Beautiful, accessible components
20
+ - Uses Radix UI primitives (WAI-ARIA compliant)
21
+ - Styled with Tailwind CSS
22
+ - Dark mode included
23
+ - You own the code (copy-paste components)
24
+
25
+ ---
26
+
27
+ ## UI Metadata Schema
28
+
29
+ For each thing type, add a `ui` object:
30
+
31
+ ```typescript
32
+ interface ThingTypeUI {
33
+ // Primary component type
34
+ component: 'Card' | 'List' | 'Table' | 'Kanban' | 'Timeline' | 'Custom'
35
+
36
+ // Layout configurations
37
+ layouts: {
38
+ grid?: { columns: number; gap: string; responsive?: boolean }
39
+ list?: { orientation: 'horizontal' | 'vertical'; gap: string; compact?: boolean }
40
+ detail?: { width: string; centered?: boolean; sidebar?: boolean }
41
+ table?: { density: 'compact' | 'comfortable' | 'spacious'; sortable?: boolean }
42
+ }
43
+
44
+ // Field rendering instructions
45
+ fields: Record<string, FieldUI>
46
+
47
+ // Available views
48
+ views: {
49
+ card?: { default?: boolean; fields: string[] }
50
+ list?: { fields: string[] }
51
+ detail?: { fields: string[] | '*' }
52
+ table?: { fields: string[] }
53
+ }
54
+
55
+ // User actions
56
+ actions: {
57
+ primary?: ActionConfig
58
+ secondary?: ActionConfig[]
59
+ context?: ActionConfig[] // Right-click/long-press menu
60
+ }
61
+
62
+ // Connection display
63
+ connections?: Record<string, ConnectionUI>
64
+
65
+ // Empty state
66
+ empty?: EmptyStateConfig
67
+
68
+ // Search configuration
69
+ search?: {
70
+ fields: string[] // Which fields to search
71
+ placeholder: string
72
+ filters?: FilterConfig[]
73
+ }
74
+
75
+ // Grouping/sorting
76
+ organization?: {
77
+ groupBy?: string[] // Fields that can group by
78
+ sortBy?: string[] // Fields that can sort by
79
+ defaultSort?: { field: string; order: 'asc' | 'desc' }
80
+ }
81
+ }
82
+
83
+ interface FieldUI {
84
+ component: string // 'Heading' | 'Text' | 'Price' | 'Image' | 'Badge' | etc.
85
+ label?: string // Display label
86
+ required?: boolean
87
+ hidden?: boolean // Hide in certain views
88
+ // Component-specific props
89
+ [key: string]: any
90
+ }
91
+
92
+ interface ActionConfig {
93
+ action: string // 'create' | 'edit' | 'delete' | 'enroll' | 'purchase' | etc.
94
+ label: string
95
+ icon?: string
96
+ variant?: 'primary' | 'secondary' | 'ghost' | 'danger'
97
+ confirm?: string // Confirmation message
98
+ permission?: string // Required permission
99
+ }
100
+
101
+ interface ConnectionUI {
102
+ label: string // "{count} students" or "by {name}"
103
+ icon?: string
104
+ display: 'badge' | 'inline' | 'avatar' | 'list'
105
+ link?: boolean // Make clickable
106
+ max?: number // Max items to show
107
+ }
108
+
109
+ interface EmptyStateConfig {
110
+ icon: string
111
+ title: string
112
+ description: string
113
+ action?: ActionConfig
114
+ }
115
+ ```
116
+
117
+ ---
118
+
119
+ ## Thing Type Specifications
120
+
121
+ ### 1. Course
122
+
123
+ ```typescript
124
+ {
125
+ type: "course",
126
+ description: "Educational course or training program",
127
+
128
+ properties: {
129
+ title: { type: "string", required: true },
130
+ description: { type: "string", required: true },
131
+ price: { type: "number", required: false },
132
+ currency: { type: "string", default: "USD" },
133
+ duration: { type: "string", required: false },
134
+ level: { type: "enum", values: ["beginner", "intermediate", "advanced"] },
135
+ category: { type: "string", required: false },
136
+ tags: { type: "array", items: "string" },
137
+ thumbnail: { type: "url", required: false },
138
+ publishedAt: { type: "timestamp", required: false },
139
+ featured: { type: "boolean", default: false },
140
+ status: { type: "enum", values: ["draft", "published", "archived"] }
141
+ },
142
+
143
+ ui: {
144
+ component: "Card",
145
+
146
+ layouts: {
147
+ grid: {
148
+ columns: 3,
149
+ gap: "lg",
150
+ responsive: true // 1 col mobile, 2 tablet, 3 desktop
151
+ },
152
+ list: {
153
+ orientation: "horizontal",
154
+ gap: "md",
155
+ compact: false
156
+ },
157
+ detail: {
158
+ width: "prose",
159
+ centered: true,
160
+ sidebar: true // Show related content in sidebar
161
+ }
162
+ },
163
+
164
+ fields: {
165
+ title: {
166
+ component: "Heading",
167
+ size: "xl",
168
+ weight: "bold",
169
+ truncate: 2, // Max 2 lines
170
+ required: true
171
+ },
172
+ description: {
173
+ component: "Text",
174
+ lines: 3, // Show 3 lines max
175
+ size: "base",
176
+ color: "muted",
177
+ expandable: true // "Read more" on click
178
+ },
179
+ price: {
180
+ component: "Price",
181
+ currency: "USD",
182
+ format: "compact", // $99 vs $99.00
183
+ badge: true, // Show as badge
184
+ free: { label: "Free", badge: true } // Show "Free" if price = 0
185
+ },
186
+ thumbnail: {
187
+ component: "Image",
188
+ aspect: "video", // 16:9
189
+ lazy: true,
190
+ placeholder: "/defaults/course.jpg",
191
+ fallback: "/defaults/course-fallback.jpg"
192
+ },
193
+ level: {
194
+ component: "Badge",
195
+ colors: {
196
+ beginner: "green",
197
+ intermediate: "yellow",
198
+ advanced: "red"
199
+ },
200
+ icon: {
201
+ beginner: "leaf",
202
+ intermediate: "zap",
203
+ advanced: "flame"
204
+ }
205
+ },
206
+ category: {
207
+ component: "Text",
208
+ size: "sm",
209
+ color: "muted",
210
+ icon: "folder"
211
+ },
212
+ tags: {
213
+ component: "TagList",
214
+ max: 3,
215
+ color: "blue",
216
+ moreLabel: "+{count} more"
217
+ },
218
+ duration: {
219
+ component: "Text",
220
+ size: "sm",
221
+ icon: "clock",
222
+ format: (value) => `${value} hours`
223
+ },
224
+ publishedAt: {
225
+ component: "Date",
226
+ format: "relative", // "2 days ago"
227
+ icon: "calendar"
228
+ },
229
+ featured: {
230
+ component: "Badge",
231
+ label: "Featured",
232
+ color: "purple",
233
+ icon: "star",
234
+ showOnlyIf: true // Only show if featured = true
235
+ },
236
+ status: {
237
+ component: "Badge",
238
+ colors: {
239
+ draft: "gray",
240
+ published: "green",
241
+ archived: "red"
242
+ }
243
+ }
244
+ },
245
+
246
+ views: {
247
+ card: {
248
+ default: true,
249
+ fields: ["thumbnail", "title", "description", "price", "level", "duration"]
250
+ },
251
+ list: {
252
+ fields: ["thumbnail", "title", "category", "duration", "price"]
253
+ },
254
+ detail: {
255
+ fields: "*" // All fields
256
+ },
257
+ table: {
258
+ fields: ["title", "category", "level", "price", "publishedAt", "status"]
259
+ }
260
+ },
261
+
262
+ actions: {
263
+ primary: {
264
+ action: "enroll",
265
+ label: "Enroll Now",
266
+ icon: "check",
267
+ variant: "primary"
268
+ },
269
+ secondary: [
270
+ {
271
+ action: "preview",
272
+ label: "Preview",
273
+ icon: "eye",
274
+ variant: "ghost"
275
+ },
276
+ {
277
+ action: "share",
278
+ label: "Share",
279
+ icon: "share",
280
+ variant: "ghost"
281
+ },
282
+ {
283
+ action: "bookmark",
284
+ label: "Save",
285
+ icon: "bookmark",
286
+ variant: "ghost"
287
+ }
288
+ ],
289
+ context: [
290
+ {
291
+ action: "edit",
292
+ label: "Edit",
293
+ icon: "edit",
294
+ permission: "course.edit"
295
+ },
296
+ {
297
+ action: "duplicate",
298
+ label: "Duplicate",
299
+ icon: "copy"
300
+ },
301
+ {
302
+ action: "delete",
303
+ label: "Delete",
304
+ icon: "trash",
305
+ variant: "danger",
306
+ confirm: "Are you sure you want to delete this course?"
307
+ }
308
+ ]
309
+ },
310
+
311
+ connections: {
312
+ enrolled_in: {
313
+ label: "{count} students enrolled",
314
+ icon: "users",
315
+ display: "badge",
316
+ link: true
317
+ },
318
+ contains: {
319
+ label: "{count} lessons",
320
+ icon: "list",
321
+ display: "inline",
322
+ link: true
323
+ },
324
+ created_by: {
325
+ label: "by {name}",
326
+ icon: "user",
327
+ display: "avatar",
328
+ link: true
329
+ },
330
+ tagged_with: {
331
+ label: "{name}",
332
+ icon: "tag",
333
+ display: "badge",
334
+ max: 5
335
+ }
336
+ },
337
+
338
+ empty: {
339
+ icon: "book",
340
+ title: "No courses yet",
341
+ description: "Create your first course to get started",
342
+ action: {
343
+ action: "create",
344
+ label: "Create Course",
345
+ icon: "plus",
346
+ variant: "primary"
347
+ }
348
+ },
349
+
350
+ search: {
351
+ fields: ["title", "description", "tags", "category"],
352
+ placeholder: "Search courses...",
353
+ filters: [
354
+ {
355
+ field: "level",
356
+ label: "Level",
357
+ type: "select",
358
+ options: ["beginner", "intermediate", "advanced"]
359
+ },
360
+ {
361
+ field: "category",
362
+ label: "Category",
363
+ type: "select"
364
+ },
365
+ {
366
+ field: "price",
367
+ label: "Price",
368
+ type: "range",
369
+ min: 0,
370
+ max: 500
371
+ }
372
+ ]
373
+ },
374
+
375
+ organization: {
376
+ groupBy: ["category", "level", "status"],
377
+ sortBy: ["title", "price", "publishedAt", "enrollments"],
378
+ defaultSort: { field: "publishedAt", order: "desc" }
379
+ }
380
+ }
381
+ }
382
+ ```
383
+
384
+ ---
385
+
386
+ ### 2. Lesson
387
+
388
+ ```typescript
389
+ {
390
+ type: "lesson",
391
+ description: "Individual lesson within a course",
392
+
393
+ properties: {
394
+ title: { type: "string", required: true },
395
+ description: { type: "string", required: false },
396
+ content: { type: "markdown", required: true },
397
+ videoUrl: { type: "url", required: false },
398
+ duration: { type: "number", required: false }, // minutes
399
+ order: { type: "number", required: true },
400
+ completed: { type: "boolean", default: false },
401
+ type: { type: "enum", values: ["video", "text", "quiz", "assignment"] },
402
+ resources: { type: "array", items: "object" }
403
+ },
404
+
405
+ ui: {
406
+ component: "List",
407
+
408
+ layouts: {
409
+ list: {
410
+ orientation: "vertical",
411
+ gap: "sm",
412
+ compact: true
413
+ },
414
+ detail: {
415
+ width: "prose",
416
+ centered: true,
417
+ sidebar: true
418
+ }
419
+ },
420
+
421
+ fields: {
422
+ title: {
423
+ component: "Heading",
424
+ size: "lg",
425
+ weight: "semibold"
426
+ },
427
+ description: {
428
+ component: "Text",
429
+ size: "sm",
430
+ color: "muted",
431
+ lines: 2
432
+ },
433
+ content: {
434
+ component: "Markdown",
435
+ className: "prose prose-lg"
436
+ },
437
+ videoUrl: {
438
+ component: "Video",
439
+ controls: true,
440
+ autoplay: false,
441
+ muted: false
442
+ },
443
+ duration: {
444
+ component: "Text",
445
+ size: "sm",
446
+ icon: "clock",
447
+ format: (value) => `${value} min`
448
+ },
449
+ order: {
450
+ component: "Badge",
451
+ label: "Lesson {value}",
452
+ color: "gray",
453
+ size: "sm"
454
+ },
455
+ completed: {
456
+ component: "Checkbox",
457
+ label: "Mark as complete",
458
+ checkedIcon: "check-circle",
459
+ uncheckedIcon: "circle"
460
+ },
461
+ type: {
462
+ component: "Badge",
463
+ colors: {
464
+ video: "blue",
465
+ text: "gray",
466
+ quiz: "purple",
467
+ assignment: "orange"
468
+ },
469
+ icons: {
470
+ video: "play",
471
+ text: "file-text",
472
+ quiz: "help-circle",
473
+ assignment: "edit"
474
+ }
475
+ },
476
+ resources: {
477
+ component: "ResourceList",
478
+ showDownload: true,
479
+ showPreview: true
480
+ }
481
+ },
482
+
483
+ views: {
484
+ list: {
485
+ default: true,
486
+ fields: ["order", "title", "type", "duration", "completed"]
487
+ },
488
+ detail: {
489
+ fields: "*"
490
+ }
491
+ },
492
+
493
+ actions: {
494
+ primary: {
495
+ action: "start",
496
+ label: "Start Lesson",
497
+ icon: "play",
498
+ variant: "primary"
499
+ },
500
+ secondary: [
501
+ {
502
+ action: "complete",
503
+ label: "Mark Complete",
504
+ icon: "check",
505
+ variant: "ghost"
506
+ },
507
+ {
508
+ action: "next",
509
+ label: "Next Lesson",
510
+ icon: "arrow-right",
511
+ variant: "ghost"
512
+ }
513
+ ]
514
+ },
515
+
516
+ connections: {
517
+ part_of: {
518
+ label: "Part of {name}",
519
+ icon: "folder",
520
+ display: "inline",
521
+ link: true
522
+ },
523
+ completed_by: {
524
+ label: "{count} completed",
525
+ icon: "check",
526
+ display: "badge"
527
+ }
528
+ },
529
+
530
+ empty: {
531
+ icon: "file-text",
532
+ title: "No lessons yet",
533
+ description: "Add lessons to build your course",
534
+ action: {
535
+ action: "create",
536
+ label: "Add Lesson",
537
+ icon: "plus"
538
+ }
539
+ }
540
+ }
541
+ }
542
+ ```
543
+
544
+ ---
545
+
546
+ ### 3. Product
547
+
548
+ ```typescript
549
+ {
550
+ type: "product",
551
+ description: "Physical product for sale",
552
+
553
+ properties: {
554
+ name: { type: "string", required: true },
555
+ description: { type: "string", required: true },
556
+ price: { type: "number", required: true },
557
+ compareAtPrice: { type: "number", required: false },
558
+ currency: { type: "string", default: "USD" },
559
+ sku: { type: "string", required: false },
560
+ inventory: { type: "number", default: 0 },
561
+ images: { type: "array", items: "url" },
562
+ category: { type: "string", required: false },
563
+ tags: { type: "array", items: "string" },
564
+ weight: { type: "number", required: false },
565
+ dimensions: { type: "object", required: false },
566
+ shippable: { type: "boolean", default: true },
567
+ featured: { type: "boolean", default: false }
568
+ },
569
+
570
+ ui: {
571
+ component: "Card",
572
+
573
+ layouts: {
574
+ grid: {
575
+ columns: 4,
576
+ gap: "md",
577
+ responsive: true
578
+ },
579
+ list: {
580
+ orientation: "horizontal",
581
+ gap: "md",
582
+ compact: false
583
+ },
584
+ detail: {
585
+ width: "full",
586
+ centered: false,
587
+ sidebar: true
588
+ }
589
+ },
590
+
591
+ fields: {
592
+ name: {
593
+ component: "Heading",
594
+ size: "xl",
595
+ weight: "bold",
596
+ truncate: 2
597
+ },
598
+ description: {
599
+ component: "Text",
600
+ size: "base",
601
+ color: "default",
602
+ lines: 3,
603
+ expandable: true
604
+ },
605
+ price: {
606
+ component: "Price",
607
+ currency: "USD",
608
+ size: "lg",
609
+ weight: "bold"
610
+ },
611
+ compareAtPrice: {
612
+ component: "Price",
613
+ currency: "USD",
614
+ size: "sm",
615
+ strikethrough: true,
616
+ color: "muted"
617
+ },
618
+ images: {
619
+ component: "ImageGallery",
620
+ aspect: "square",
621
+ lazy: true,
622
+ zoom: true,
623
+ thumbnails: true
624
+ },
625
+ inventory: {
626
+ component: "Badge",
627
+ label: (value) => value > 0 ? `${value} in stock` : "Out of stock",
628
+ color: (value) => value > 0 ? "green" : "red",
629
+ icon: "package"
630
+ },
631
+ sku: {
632
+ component: "Text",
633
+ size: "xs",
634
+ color: "muted",
635
+ label: "SKU:",
636
+ monospace: true
637
+ },
638
+ tags: {
639
+ component: "TagList",
640
+ max: 5,
641
+ color: "blue"
642
+ },
643
+ category: {
644
+ component: "Breadcrumb",
645
+ separator: "/"
646
+ },
647
+ featured: {
648
+ component: "Badge",
649
+ label: "Featured",
650
+ color: "yellow",
651
+ icon: "star",
652
+ showOnlyIf: true
653
+ }
654
+ },
655
+
656
+ views: {
657
+ card: {
658
+ default: true,
659
+ fields: ["images", "name", "price", "compareAtPrice"]
660
+ },
661
+ list: {
662
+ fields: ["images", "name", "price", "inventory", "sku"]
663
+ },
664
+ detail: {
665
+ fields: "*"
666
+ },
667
+ table: {
668
+ fields: ["name", "sku", "price", "inventory", "category"]
669
+ }
670
+ },
671
+
672
+ actions: {
673
+ primary: {
674
+ action: "addToCart",
675
+ label: "Add to Cart",
676
+ icon: "shopping-cart",
677
+ variant: "primary"
678
+ },
679
+ secondary: [
680
+ {
681
+ action: "wishlist",
682
+ label: "Add to Wishlist",
683
+ icon: "heart",
684
+ variant: "ghost"
685
+ },
686
+ {
687
+ action: "share",
688
+ label: "Share",
689
+ icon: "share",
690
+ variant: "ghost"
691
+ }
692
+ ]
693
+ },
694
+
695
+ connections: {
696
+ purchased_by: {
697
+ label: "{count} sold",
698
+ icon: "shopping-bag",
699
+ display: "badge"
700
+ },
701
+ reviewed_by: {
702
+ label: "{count} reviews",
703
+ icon: "star",
704
+ display: "badge",
705
+ link: true
706
+ },
707
+ in_category: {
708
+ label: "{name}",
709
+ icon: "folder",
710
+ display: "inline",
711
+ link: true
712
+ }
713
+ },
714
+
715
+ empty: {
716
+ icon: "shopping-bag",
717
+ title: "No products yet",
718
+ description: "Add products to start selling",
719
+ action: {
720
+ action: "create",
721
+ label: "Add Product",
722
+ icon: "plus"
723
+ }
724
+ },
725
+
726
+ search: {
727
+ fields: ["name", "description", "sku", "tags"],
728
+ placeholder: "Search products...",
729
+ filters: [
730
+ {
731
+ field: "category",
732
+ label: "Category",
733
+ type: "select"
734
+ },
735
+ {
736
+ field: "price",
737
+ label: "Price",
738
+ type: "range",
739
+ min: 0,
740
+ max: 1000
741
+ },
742
+ {
743
+ field: "inventory",
744
+ label: "In Stock",
745
+ type: "boolean"
746
+ }
747
+ ]
748
+ },
749
+
750
+ organization: {
751
+ groupBy: ["category", "featured"],
752
+ sortBy: ["name", "price", "inventory", "createdAt"],
753
+ defaultSort: { field: "createdAt", order: "desc" }
754
+ }
755
+ }
756
+ }
757
+ ```
758
+
759
+ ---
760
+
761
+ ### 4. Post (Blog Post)
762
+
763
+ ```typescript
764
+ {
765
+ type: "post",
766
+ description: "Blog post or article",
767
+
768
+ properties: {
769
+ title: { type: "string", required: true },
770
+ content: { type: "markdown", required: true },
771
+ excerpt: { type: "string", required: false },
772
+ featuredImage: { type: "url", required: false },
773
+ author: { type: "string", required: true },
774
+ publishedAt: { type: "timestamp", required: false },
775
+ slug: { type: "string", required: true },
776
+ category: { type: "string", required: false },
777
+ tags: { type: "array", items: "string" },
778
+ status: { type: "enum", values: ["draft", "published", "scheduled", "archived"] },
779
+ readTime: { type: "number", required: false }, // minutes
780
+ views: { type: "number", default: 0 },
781
+ featured: { type: "boolean", default: false }
782
+ },
783
+
784
+ ui: {
785
+ component: "Card",
786
+
787
+ layouts: {
788
+ grid: {
789
+ columns: 3,
790
+ gap: "lg",
791
+ responsive: true
792
+ },
793
+ list: {
794
+ orientation: "vertical",
795
+ gap: "lg",
796
+ compact: false
797
+ },
798
+ detail: {
799
+ width: "prose",
800
+ centered: true,
801
+ sidebar: false
802
+ }
803
+ },
804
+
805
+ fields: {
806
+ title: {
807
+ component: "Heading",
808
+ size: "2xl",
809
+ weight: "bold",
810
+ lineHeight: "tight"
811
+ },
812
+ content: {
813
+ component: "Markdown",
814
+ className: "prose prose-lg prose-headings:font-bold prose-a:text-blue-600"
815
+ },
816
+ excerpt: {
817
+ component: "Text",
818
+ size: "base",
819
+ color: "muted",
820
+ lines: 3,
821
+ italic: true
822
+ },
823
+ featuredImage: {
824
+ component: "Image",
825
+ aspect: "wide", // 21:9
826
+ lazy: true,
827
+ sizes: "(max-width: 768px) 100vw, 768px"
828
+ },
829
+ author: {
830
+ component: "Text",
831
+ size: "sm",
832
+ weight: "medium",
833
+ icon: "user"
834
+ },
835
+ publishedAt: {
836
+ component: "Date",
837
+ format: "full", // "January 15, 2024"
838
+ icon: "calendar"
839
+ },
840
+ category: {
841
+ component: "Badge",
842
+ color: "purple",
843
+ size: "sm"
844
+ },
845
+ tags: {
846
+ component: "TagList",
847
+ max: 5,
848
+ color: "gray"
849
+ },
850
+ status: {
851
+ component: "Badge",
852
+ colors: {
853
+ draft: "gray",
854
+ published: "green",
855
+ scheduled: "blue",
856
+ archived: "red"
857
+ }
858
+ },
859
+ readTime: {
860
+ component: "Text",
861
+ size: "sm",
862
+ color: "muted",
863
+ icon: "clock",
864
+ format: (value) => `${value} min read`
865
+ },
866
+ views: {
867
+ component: "Text",
868
+ size: "sm",
869
+ color: "muted",
870
+ icon: "eye",
871
+ format: (value) => `${value.toLocaleString()} views`
872
+ },
873
+ featured: {
874
+ component: "Badge",
875
+ label: "Featured",
876
+ color: "yellow",
877
+ icon: "star",
878
+ showOnlyIf: true
879
+ }
880
+ },
881
+
882
+ views: {
883
+ card: {
884
+ default: true,
885
+ fields: ["featuredImage", "category", "title", "excerpt", "author", "publishedAt", "readTime"]
886
+ },
887
+ list: {
888
+ fields: ["featuredImage", "title", "excerpt", "author", "publishedAt", "views"]
889
+ },
890
+ detail: {
891
+ fields: "*"
892
+ }
893
+ },
894
+
895
+ actions: {
896
+ primary: {
897
+ action: "read",
898
+ label: "Read Article",
899
+ icon: "arrow-right",
900
+ variant: "primary"
901
+ },
902
+ secondary: [
903
+ {
904
+ action: "bookmark",
905
+ label: "Save",
906
+ icon: "bookmark",
907
+ variant: "ghost"
908
+ },
909
+ {
910
+ action: "share",
911
+ label: "Share",
912
+ icon: "share",
913
+ variant: "ghost"
914
+ }
915
+ ],
916
+ context: [
917
+ {
918
+ action: "edit",
919
+ label: "Edit",
920
+ icon: "edit",
921
+ permission: "post.edit"
922
+ },
923
+ {
924
+ action: "delete",
925
+ label: "Delete",
926
+ icon: "trash",
927
+ variant: "danger",
928
+ confirm: "Delete this post?"
929
+ }
930
+ ]
931
+ },
932
+
933
+ connections: {
934
+ written_by: {
935
+ label: "by {name}",
936
+ icon: "user",
937
+ display: "avatar",
938
+ link: true
939
+ },
940
+ tagged_with: {
941
+ label: "{name}",
942
+ icon: "tag",
943
+ display: "badge",
944
+ max: 5
945
+ },
946
+ commented_on: {
947
+ label: "{count} comments",
948
+ icon: "message-circle",
949
+ display: "badge",
950
+ link: true
951
+ }
952
+ },
953
+
954
+ empty: {
955
+ icon: "file-text",
956
+ title: "No posts yet",
957
+ description: "Write your first blog post",
958
+ action: {
959
+ action: "create",
960
+ label: "Write Post",
961
+ icon: "plus"
962
+ }
963
+ },
964
+
965
+ search: {
966
+ fields: ["title", "content", "excerpt", "tags"],
967
+ placeholder: "Search posts...",
968
+ filters: [
969
+ {
970
+ field: "category",
971
+ label: "Category",
972
+ type: "select"
973
+ },
974
+ {
975
+ field: "author",
976
+ label: "Author",
977
+ type: "select"
978
+ },
979
+ {
980
+ field: "publishedAt",
981
+ label: "Published",
982
+ type: "dateRange"
983
+ }
984
+ ]
985
+ },
986
+
987
+ organization: {
988
+ groupBy: ["category", "author", "status"],
989
+ sortBy: ["title", "publishedAt", "views"],
990
+ defaultSort: { field: "publishedAt", order: "desc" }
991
+ }
992
+ }
993
+ }
994
+ ```
995
+
996
+ ---
997
+
998
+ ### 5. Person (Creator)
999
+
1000
+ ```typescript
1001
+ {
1002
+ type: "person",
1003
+ subtype: "creator",
1004
+ description: "Content creator, instructor, or team member",
1005
+
1006
+ properties: {
1007
+ name: { type: "string", required: true },
1008
+ email: { type: "email", required: true },
1009
+ bio: { type: "markdown", required: false },
1010
+ avatar: { type: "url", required: false },
1011
+ role: { type: "enum", values: ["org_owner", "org_admin", "org_member", "instructor", "author"] },
1012
+ title: { type: "string", required: false },
1013
+ company: { type: "string", required: false },
1014
+ location: { type: "string", required: false },
1015
+ website: { type: "url", required: false },
1016
+ social: { type: "object", required: false }, // { twitter, linkedin, github }
1017
+ verified: { type: "boolean", default: false },
1018
+ featured: { type: "boolean", default: false }
1019
+ },
1020
+
1021
+ ui: {
1022
+ component: "Card",
1023
+
1024
+ layouts: {
1025
+ grid: {
1026
+ columns: 4,
1027
+ gap: "md",
1028
+ responsive: true
1029
+ },
1030
+ list: {
1031
+ orientation: "horizontal",
1032
+ gap: "md",
1033
+ compact: true
1034
+ },
1035
+ detail: {
1036
+ width: "prose",
1037
+ centered: true,
1038
+ sidebar: true
1039
+ }
1040
+ },
1041
+
1042
+ fields: {
1043
+ name: {
1044
+ component: "Heading",
1045
+ size: "xl",
1046
+ weight: "bold"
1047
+ },
1048
+ email: {
1049
+ component: "Text",
1050
+ size: "sm",
1051
+ color: "muted",
1052
+ icon: "mail",
1053
+ link: true, // mailto: link
1054
+ privacy: "private" // Only show to authorized users
1055
+ },
1056
+ bio: {
1057
+ component: "Markdown",
1058
+ className: "prose prose-sm",
1059
+ lines: 5,
1060
+ expandable: true
1061
+ },
1062
+ avatar: {
1063
+ component: "Avatar",
1064
+ size: "xl",
1065
+ shape: "circle",
1066
+ fallback: "initials" // Show initials if no avatar
1067
+ },
1068
+ role: {
1069
+ component: "Badge",
1070
+ colors: {
1071
+ org_owner: "purple",
1072
+ org_admin: "blue",
1073
+ org_member: "gray",
1074
+ instructor: "green",
1075
+ author: "yellow"
1076
+ },
1077
+ labels: {
1078
+ org_owner: "Owner",
1079
+ org_admin: "Admin",
1080
+ org_member: "Member",
1081
+ instructor: "Instructor",
1082
+ author: "Author"
1083
+ }
1084
+ },
1085
+ title: {
1086
+ component: "Text",
1087
+ size: "sm",
1088
+ weight: "medium",
1089
+ color: "default"
1090
+ },
1091
+ company: {
1092
+ component: "Text",
1093
+ size: "sm",
1094
+ color: "muted",
1095
+ icon: "building"
1096
+ },
1097
+ location: {
1098
+ component: "Text",
1099
+ size: "sm",
1100
+ color: "muted",
1101
+ icon: "map-pin"
1102
+ },
1103
+ website: {
1104
+ component: "Link",
1105
+ size: "sm",
1106
+ icon: "external-link",
1107
+ external: true
1108
+ },
1109
+ social: {
1110
+ component: "SocialLinks",
1111
+ display: "icons",
1112
+ size: "md",
1113
+ platforms: ["twitter", "linkedin", "github", "youtube"]
1114
+ },
1115
+ verified: {
1116
+ component: "Badge",
1117
+ label: "Verified",
1118
+ color: "blue",
1119
+ icon: "check-circle",
1120
+ showOnlyIf: true
1121
+ },
1122
+ featured: {
1123
+ component: "Badge",
1124
+ label: "Featured",
1125
+ color: "purple",
1126
+ icon: "star",
1127
+ showOnlyIf: true
1128
+ }
1129
+ },
1130
+
1131
+ views: {
1132
+ card: {
1133
+ default: true,
1134
+ fields: ["avatar", "name", "title", "company", "role"]
1135
+ },
1136
+ list: {
1137
+ fields: ["avatar", "name", "title", "location", "social"]
1138
+ },
1139
+ detail: {
1140
+ fields: "*"
1141
+ }
1142
+ },
1143
+
1144
+ actions: {
1145
+ primary: {
1146
+ action: "viewProfile",
1147
+ label: "View Profile",
1148
+ icon: "user",
1149
+ variant: "primary"
1150
+ },
1151
+ secondary: [
1152
+ {
1153
+ action: "message",
1154
+ label: "Message",
1155
+ icon: "mail",
1156
+ variant: "ghost"
1157
+ },
1158
+ {
1159
+ action: "follow",
1160
+ label: "Follow",
1161
+ icon: "user-plus",
1162
+ variant: "ghost"
1163
+ }
1164
+ ]
1165
+ },
1166
+
1167
+ connections: {
1168
+ created: {
1169
+ label: "{count} courses",
1170
+ icon: "book",
1171
+ display: "badge",
1172
+ link: true
1173
+ },
1174
+ taught: {
1175
+ label: "{count} students",
1176
+ icon: "users",
1177
+ display: "badge"
1178
+ },
1179
+ member_of: {
1180
+ label: "{name}",
1181
+ icon: "building",
1182
+ display: "inline",
1183
+ link: true
1184
+ }
1185
+ },
1186
+
1187
+ empty: {
1188
+ icon: "users",
1189
+ title: "No team members yet",
1190
+ description: "Invite people to join your team",
1191
+ action: {
1192
+ action: "invite",
1193
+ label: "Invite Member",
1194
+ icon: "user-plus"
1195
+ }
1196
+ },
1197
+
1198
+ search: {
1199
+ fields: ["name", "email", "title", "bio"],
1200
+ placeholder: "Search people...",
1201
+ filters: [
1202
+ {
1203
+ field: "role",
1204
+ label: "Role",
1205
+ type: "select"
1206
+ },
1207
+ {
1208
+ field: "verified",
1209
+ label: "Verified",
1210
+ type: "boolean"
1211
+ }
1212
+ ]
1213
+ },
1214
+
1215
+ organization: {
1216
+ groupBy: ["role", "company"],
1217
+ sortBy: ["name", "createdAt"],
1218
+ defaultSort: { field: "name", order: "asc" }
1219
+ }
1220
+ }
1221
+ }
1222
+ ```
1223
+
1224
+ ---
1225
+
1226
+ ## Field Component Types
1227
+
1228
+ All field components are built with shadcn/ui for consistency and accessibility:
1229
+
1230
+ ### Text Components
1231
+ - `Heading` - Headings (h1-h6)
1232
+ - `Text` - Body text
1233
+ - `Markdown` - Markdown content
1234
+ - `RichText` - Rich text editor output
1235
+
1236
+ ### Media Components
1237
+ - `Image` - Single image
1238
+ - `ImageGallery` - Multiple images
1239
+ - `Video` - Video player
1240
+ - `Audio` - Audio player
1241
+ - `Avatar` - User avatar
1242
+
1243
+ ### Data Components
1244
+ - `Price` - Formatted price
1245
+ - `Date` - Formatted date/time
1246
+ - `Number` - Formatted number
1247
+ - `Percentage` - Formatted percentage
1248
+ - `Badge` - Status badge
1249
+ - `Tag` - Single tag
1250
+ - `TagList` - Multiple tags
1251
+
1252
+ ### Interactive Components
1253
+ - `Link` - Hyperlink
1254
+ - `Button` - Action button
1255
+ - `Checkbox` - Checkbox input
1256
+ - `Toggle` - Toggle switch
1257
+ - `Rating` - Star rating
1258
+ - `Progress` - Progress bar
1259
+
1260
+ ### Complex Components
1261
+ - `Table` - Data table
1262
+ - `List` - Item list
1263
+ - `Grid` - Item grid
1264
+ - `Timeline` - Event timeline
1265
+ - `Chart` - Data visualization
1266
+ - `Map` - Geographic map
1267
+
1268
+ ### Social Components
1269
+ - `SocialLinks` - Social media links
1270
+ - `ShareButtons` - Share buttons
1271
+ - `CommentList` - Comments
1272
+ - `LikeButton` - Like/favorite
1273
+
1274
+ ---
1275
+
1276
+ ## Quick Setup
1277
+
1278
+ ```bash
1279
+ # Install shadcn/ui components
1280
+ npx shadcn-ui@latest init
1281
+ npx shadcn-ui@latest add card button badge avatar separator
1282
+ ```
1283
+
1284
+ That's it! Components use shadcn/ui automatically.
1285
+
1286
+ ---
1287
+
1288
+ ## Usage in Frontend
1289
+
1290
+ ### Generic Component Example
1291
+
1292
+ ```tsx
1293
+ // frontend/src/components/generic/Card.tsx
1294
+ import { useThingConfig } from '@/ontology/hooks'
1295
+ import { Card as ShadCard, CardContent, CardFooter } from '@/components/ui/card'
1296
+ import { Button } from '@/components/ui/button'
1297
+
1298
+ export function Card({ thing }) {
1299
+ // Get UI config from ontology
1300
+ const config = useThingConfig(thing.type)
1301
+ const view = config.ui.views.card
1302
+
1303
+ return (
1304
+ <ShadCard>
1305
+ <CardContent className="pt-6">
1306
+ {view.fields.map(fieldName => (
1307
+ <Field
1308
+ key={fieldName}
1309
+ name={fieldName}
1310
+ value={thing.properties[fieldName]}
1311
+ config={config.ui.fields[fieldName]}
1312
+ />
1313
+ ))}
1314
+ </CardContent>
1315
+
1316
+ {config.ui.actions.primary && (
1317
+ <CardFooter>
1318
+ <Button
1319
+ onClick={() => handleAction(thing, config.ui.actions.primary.action)}
1320
+ >
1321
+ {config.ui.actions.primary.label}
1322
+ </Button>
1323
+ </CardFooter>
1324
+ )}
1325
+ </ShadCard>
1326
+ )
1327
+ }
1328
+ ```
1329
+
1330
+ ### Usage
1331
+
1332
+ ```tsx
1333
+ // Works for ANY thing type!
1334
+ <Card thing={course} />
1335
+ <Card thing={product} />
1336
+ <Card thing={post} />
1337
+ <Card thing={lesson} />
1338
+ <Card thing={person} />
1339
+ ```
1340
+
1341
+ ---
1342
+
1343
+ ## Next Steps
1344
+
1345
+ ### Immediate (Week 1)
1346
+ - [ ] Complete UI specs for top 10 types
1347
+ - [ ] Build generic Card component
1348
+ - [ ] Build generic Field component
1349
+ - [ ] Test with 3 different types
1350
+
1351
+ ### Short Term (Week 2-4)
1352
+ - [ ] Add UI specs for remaining 56 types
1353
+ - [ ] Build all field component types
1354
+ - [ ] Build ThingList, ThingDetail, ThingTable
1355
+ - [ ] Refactor existing type-specific components
1356
+
1357
+ ### Long Term (Month 2+)
1358
+ - [ ] Add customization API (override UI config)
1359
+ - [ ] Add theme support (light/dark)
1360
+ - [ ] Add responsive breakpoints
1361
+ - [ ] Add accessibility features
1362
+ - [ ] Add internationalization
1363
+
1364
+ ---
1365
+
1366
+ ## Customization
1367
+
1368
+ Organizations can override UI config:
1369
+
1370
+ ```typescript
1371
+ // Custom UI for your organization
1372
+ const customCourseUI = {
1373
+ ...defaultCourseUI,
1374
+ fields: {
1375
+ ...defaultCourseUI.fields,
1376
+ price: {
1377
+ ...defaultCourseUI.fields.price,
1378
+ currency: "EUR", // Override to EUR
1379
+ badge: false // Don't show as badge
1380
+ }
1381
+ }
1382
+ }
1383
+ ```
1384
+
1385
+ ---
1386
+
1387
+ **With ontology-ui, ONE frontend becomes a universal renderer for all 66 thing types.**