@uibot/mcp-server 0.18.1 → 0.20.0

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 (125) hide show
  1. package/README.md +34 -0
  2. package/dist/http.js +93 -93
  3. package/dist/resources/bundle.json +1 -1
  4. package/dist/resources/design-md/frontend-principles.design.md +12 -0
  5. package/dist/resources/shells/shadcn-admin-shell.yaml +5 -4
  6. package/dist/resources/templates/auth.yaml +84 -67
  7. package/dist/resources/templates/shadcn-admin.yaml +12210 -122
  8. package/dist/server.d.ts +3 -0
  9. package/dist/server.js +93 -93
  10. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/licenses/UIBot-LICENSE +21 -0
  11. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/licenses/blocks-icons-LICENSE +46 -0
  12. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/licenses/shadcn-THIRD_PARTY_LICENSE +21 -0
  13. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-apps.json +61 -0
  14. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-chats.json +54 -0
  15. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-dashboard.json +70 -0
  16. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-401.json +54 -0
  17. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-403.json +54 -0
  18. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-404.json +54 -0
  19. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-500.json +54 -0
  20. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-error-503.json +54 -0
  21. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-forgot-password.json +59 -0
  22. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-help.json +53 -0
  23. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-otp.json +59 -0
  24. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-overview.json +62 -0
  25. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-account.json +61 -0
  26. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-appearance.json +61 -0
  27. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-display.json +61 -0
  28. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-notifications.json +61 -0
  29. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings-profile.json +61 -0
  30. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-settings.json +65 -0
  31. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-shell.json +173 -0
  32. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-sign-in-2.json +67 -0
  33. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-sign-in.json +59 -0
  34. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-sign-up.json +59 -0
  35. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-tasks.json +66 -0
  36. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/admin-users.json +66 -0
  37. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/ai-chat.json +74 -0
  38. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/analytics-dashboard.json +65 -0
  39. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-floating.json +54 -0
  40. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-icon-rail.json +54 -0
  41. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-inset.json +54 -0
  42. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-settings.json +54 -0
  43. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-sidebar.json +54 -0
  44. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/app-shell-workspace.json +54 -0
  45. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-centered.json +61 -0
  46. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-enterprise.json +61 -0
  47. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-recovery.json +64 -0
  48. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-registration.json +63 -0
  49. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth-split.json +67 -0
  50. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/auth.json +61 -0
  51. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/blog.json +64 -0
  52. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/charts.json +238 -0
  53. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-artifact.json +49 -0
  54. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-focused.json +49 -0
  55. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-history.json +49 -0
  56. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-knowledge.json +49 -0
  57. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-support.json +49 -0
  58. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/chat-workspace.json +136 -0
  59. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/collection-shared.json +23 -0
  60. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/commerce-workspace.json +69 -0
  61. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-billing.json +68 -0
  62. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-page.json +289 -0
  63. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/console-shell.json +29 -0
  64. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/content.json +444 -0
  65. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/creation-shared.json +24 -0
  66. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/crm-workspace.json +73 -0
  67. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/crm.json +67 -0
  68. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/dashboard-01.json +78 -0
  69. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/dashboard.json +257 -0
  70. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/data-studio.json +368 -0
  71. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/data-table.json +352 -0
  72. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/data.json +405 -0
  73. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-assistant.json +54 -0
  74. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-library.json +49 -0
  75. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-reading.json +49 -0
  76. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-workspace.json +164 -0
  77. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/document-writing.json +49 -0
  78. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/drilldown-menu.json +233 -0
  79. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/ecommerce.json +65 -0
  80. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/education-workspace.json +82 -0
  81. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/feedback.json +344 -0
  82. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/field.json +164 -0
  83. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/form.json +429 -0
  84. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/grid.json +188 -0
  85. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/interactive.json +355 -0
  86. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/item-grid.json +219 -0
  87. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/kanban.json +154 -0
  88. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/layout.json +790 -0
  89. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/lms.json +74 -0
  90. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/marketing.json +402 -0
  91. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/nav.json +285 -0
  92. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/portfolio.json +62 -0
  93. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/presentation.json +454 -0
  94. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/pricing.json +63 -0
  95. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/primitives.json +360 -0
  96. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/saas-landing.json +60 -0
  97. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sections.json +734 -0
  98. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/settings.json +72 -0
  99. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/shadcn-admin-shell.json +49 -0
  100. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/shadcn-admin.json +77 -0
  101. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-01.json +42 -0
  102. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-02.json +42 -0
  103. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-03.json +30 -0
  104. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-04.json +30 -0
  105. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-05.json +36 -0
  106. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-06.json +42 -0
  107. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-07.json +54 -0
  108. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-08.json +54 -0
  109. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-09.json +36 -0
  110. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-10.json +66 -0
  111. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-11.json +30 -0
  112. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-12.json +48 -0
  113. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-13.json +30 -0
  114. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-14.json +30 -0
  115. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-15.json +84 -0
  116. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-16.json +66 -0
  117. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-drilldown.json +29 -0
  118. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/sidebar-primitives.json +155 -0
  119. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/store.json +75 -0
  120. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/support-inbox.json +63 -0
  121. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/team-directory.json +59 -0
  122. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/uibot-base.json +30 -0
  123. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/r/workspace.json +181 -0
  124. package/dist/snapshots/4501a880e17691677109b35118b89434252d4e65aa7b9a7c3a174a38ce2b418f/snapshot.json +1 -0
  125. package/package.json +10 -9
@@ -0,0 +1,188 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "grid",
4
+ "type": "registry:ui",
5
+ "description": "Declarative grid layout. Maps cols/gap/responsive props to Tailwind grid classes; children become grid cells directly.",
6
+ "dependencies": [
7
+ "react@19.3.0"
8
+ ],
9
+ "registryDependencies": [
10
+ "@uibot/uibot-base"
11
+ ],
12
+ "files": [
13
+ {
14
+ "path": "components/uibot/grid.tsx",
15
+ "target": "components/uibot/grid.tsx",
16
+ "content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport type { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\n// Static literal class maps so Tailwind's content scanner keeps these in the\n// build. Never interpolate the column count into a template string — a dynamic\n// `grid-cols-${n}` would be purged by the JIT compiler.\nconst COLS: Record<string, string> = {\n \"1\": \"grid-cols-1\",\n \"2\": \"grid-cols-2\",\n \"3\": \"grid-cols-3\",\n \"4\": \"grid-cols-4\",\n \"5\": \"grid-cols-5\",\n \"6\": \"grid-cols-6\",\n auto: \"grid-cols-[repeat(auto-fit,minmax(220px,1fr))]\",\n};\n\n// Responsive ladders — explicit literal classes, one per supported column count.\nconst RESP: Record<string, string> = {\n \"2\": \"grid-cols-1 sm:grid-cols-2\",\n \"3\": \"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3\",\n \"4\": \"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4\",\n \"5\": \"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5\",\n \"6\": \"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6\",\n};\n\nconst GAP: Record<string, string> = {\n none: \"gap-0\",\n xs: \"gap-1\",\n sm: \"gap-2\",\n md: \"gap-4\",\n lg: \"gap-6\",\n xl: \"gap-8\",\n};\n\n/**\n * Declarative grid layout. Maps `cols`/`gap`/`responsive` props onto static\n * Tailwind grid classes; children become grid cells directly. This is the\n * primary way a spec expresses overall page layout in studio dogfooding.\n */\nexport const Grid: RendererComponent = (props, ctx) => {\n const cols = String(props[\"cols\"] ?? \"auto\");\n const responsive = props[\"responsive\"] === true;\n const colsCls = (responsive && RESP[cols]) || COLS[cols] || COLS[\"auto\"];\n const gap = GAP[typeof props[\"gap\"] === \"string\" ? props[\"gap\"] : \"\"] ?? GAP[\"md\"];\n const align = typeof props[\"align\"] === \"string\" ? `items-${props[\"align\"]}` : \"\";\n const justify = typeof props[\"justify\"] === \"string\" ? `justify-${props[\"justify\"]}` : \"\";\n const userCls = typeof props[\"className\"] === \"string\" ? props[\"className\"] : \"\";\n\n return (\n <div\n className={cn(\"uibot-grid grid\", colsCls, gap, align, justify, userCls)}\n data-uibot-type=\"Grid\"\n role=\"group\"\n aria-label=\"Grid layout\"\n >\n {ctx.children as ReactNode[]}\n </div>\n );\n};\n",
17
+ "type": "registry:ui"
18
+ },
19
+ {
20
+ "path": "components/uibot/grid.uibot.json",
21
+ "target": "components/uibot/grid.uibot.json",
22
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"grid\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"Grid\",\n \"export\": \"Grid\",\n \"module\": \"grid.tsx\",\n \"catalog\": {\n \"name\": \"Grid\",\n \"description\": \"Declarative grid layout. Maps cols/gap/responsive props to Tailwind grid classes; children become grid cells directly.\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"layout\",\n \"grid\",\n \"container\"\n ],\n \"props\": {\n \"cols\": {\n \"enum\": [\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"auto\",\n 1,\n 2,\n 3,\n 4,\n 5,\n 6\n ],\n \"default\": \"auto\",\n \"description\": \"Column count, or 'auto' for auto-fit minmax(220px,1fr)\"\n },\n \"gap\": {\n \"type\": \"string\",\n \"enum\": [\n \"none\",\n \"xs\",\n \"sm\",\n \"md\",\n \"lg\",\n \"xl\"\n ],\n \"default\": \"md\"\n },\n \"responsive\": {\n \"type\": \"boolean\",\n \"default\": false,\n \"description\": \"Use a mobile-first ladder (grid-cols-1 → sm:2 → lg:N) instead of a fixed column count\"\n },\n \"align\": {\n \"type\": \"string\",\n \"enum\": [\n \"start\",\n \"center\",\n \"end\",\n \"stretch\"\n ]\n },\n \"justify\": {\n \"type\": \"string\",\n \"enum\": [\n \"start\",\n \"center\",\n \"end\",\n \"between\",\n \"around\"\n ]\n }\n },\n \"usageScenarios\": [\n \"4-up Stat dashboard row (cols=4)\",\n \"Responsive card gallery (cols=3, responsive=true)\",\n \"Two-column form layout (cols=2)\"\n ],\n \"constraints\": [\n \"Grid children become grid cells directly; do not wrap each child in a Box\",\n \"Use cols='auto' when the number of children is dynamic\"\n ]\n }\n }\n ]\n}\n",
23
+ "type": "registry:ui"
24
+ }
25
+ ],
26
+ "meta": {
27
+ "category": "primitive",
28
+ "level": "L1",
29
+ "props": {
30
+ "cols": {
31
+ "enum": [
32
+ "1",
33
+ "2",
34
+ "3",
35
+ "4",
36
+ "5",
37
+ "6",
38
+ "auto",
39
+ 1,
40
+ 2,
41
+ 3,
42
+ 4,
43
+ 5,
44
+ 6
45
+ ],
46
+ "default": "auto",
47
+ "description": "Column count, or 'auto' for auto-fit minmax(220px,1fr)"
48
+ },
49
+ "gap": {
50
+ "type": "string",
51
+ "enum": [
52
+ "none",
53
+ "xs",
54
+ "sm",
55
+ "md",
56
+ "lg",
57
+ "xl"
58
+ ],
59
+ "default": "md"
60
+ },
61
+ "responsive": {
62
+ "type": "boolean",
63
+ "default": false,
64
+ "description": "Use a mobile-first ladder (grid-cols-1 → sm:2 → lg:N) instead of a fixed column count"
65
+ },
66
+ "align": {
67
+ "type": "string",
68
+ "enum": [
69
+ "start",
70
+ "center",
71
+ "end",
72
+ "stretch"
73
+ ]
74
+ },
75
+ "justify": {
76
+ "type": "string",
77
+ "enum": [
78
+ "start",
79
+ "center",
80
+ "end",
81
+ "between",
82
+ "around"
83
+ ]
84
+ }
85
+ },
86
+ "scenarios": [
87
+ "4-up Stat dashboard row (cols=4)",
88
+ "Responsive card gallery (cols=3, responsive=true)",
89
+ "Two-column form layout (cols=2)"
90
+ ],
91
+ "constraints": [
92
+ "Grid children become grid cells directly; do not wrap each child in a Box",
93
+ "Use cols='auto' when the number of children is dynamic"
94
+ ],
95
+ "provides": [
96
+ "Grid"
97
+ ],
98
+ "uibot": {
99
+ "schema": "uibot.registry.item.v1",
100
+ "item": "grid",
101
+ "channel": "public",
102
+ "components": [
103
+ {
104
+ "name": "Grid",
105
+ "export": "Grid",
106
+ "module": "grid.tsx",
107
+ "catalog": {
108
+ "name": "Grid",
109
+ "description": "Declarative grid layout. Maps cols/gap/responsive props to Tailwind grid classes; children become grid cells directly.",
110
+ "category": "primitive",
111
+ "level": "L1",
112
+ "tags": [
113
+ "layout",
114
+ "grid",
115
+ "container"
116
+ ],
117
+ "props": {
118
+ "cols": {
119
+ "enum": [
120
+ "1",
121
+ "2",
122
+ "3",
123
+ "4",
124
+ "5",
125
+ "6",
126
+ "auto",
127
+ 1,
128
+ 2,
129
+ 3,
130
+ 4,
131
+ 5,
132
+ 6
133
+ ],
134
+ "default": "auto",
135
+ "description": "Column count, or 'auto' for auto-fit minmax(220px,1fr)"
136
+ },
137
+ "gap": {
138
+ "type": "string",
139
+ "enum": [
140
+ "none",
141
+ "xs",
142
+ "sm",
143
+ "md",
144
+ "lg",
145
+ "xl"
146
+ ],
147
+ "default": "md"
148
+ },
149
+ "responsive": {
150
+ "type": "boolean",
151
+ "default": false,
152
+ "description": "Use a mobile-first ladder (grid-cols-1 → sm:2 → lg:N) instead of a fixed column count"
153
+ },
154
+ "align": {
155
+ "type": "string",
156
+ "enum": [
157
+ "start",
158
+ "center",
159
+ "end",
160
+ "stretch"
161
+ ]
162
+ },
163
+ "justify": {
164
+ "type": "string",
165
+ "enum": [
166
+ "start",
167
+ "center",
168
+ "end",
169
+ "between",
170
+ "around"
171
+ ]
172
+ }
173
+ },
174
+ "usageScenarios": [
175
+ "4-up Stat dashboard row (cols=4)",
176
+ "Responsive card gallery (cols=3, responsive=true)",
177
+ "Two-column form layout (cols=2)"
178
+ ],
179
+ "constraints": [
180
+ "Grid children become grid cells directly; do not wrap each child in a Box",
181
+ "Use cols='auto' when the number of children is dynamic"
182
+ ]
183
+ }
184
+ }
185
+ ]
186
+ }
187
+ }
188
+ }
@@ -0,0 +1,355 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
+ "name": "interactive",
4
+ "type": "registry:ui",
5
+ "description": "Table with a built-in search box. Typing dispatches SetState onto searchKey and filters the resolved rows (case-insensitive substring across all columns).",
6
+ "dependencies": [
7
+ "react@19.3.0"
8
+ ],
9
+ "registryDependencies": [
10
+ "@uibot/uibot-base"
11
+ ],
12
+ "files": [
13
+ {
14
+ "path": "components/uibot/interactive.tsx",
15
+ "target": "components/uibot/interactive.tsx",
16
+ "content": "import type { ActionChain } from \"@/lib/uibot-contracts\";\nimport type { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\nimport type { RendererComponent } from \"@/lib/uibot-renderer\";\n\n/** Build a one-step SetState ActionChain targeting `path`. */\nfunction setState(path: string, value: unknown): ActionChain {\n return [{ action: \"SetState\", params: { path, value: value as never } }];\n}\n\n// ── SearchableTable ───────────────────────────────────────────────────────────\n\ninterface Column {\n key: string;\n label: string;\n align?: \"left\" | \"center\" | \"right\" | undefined;\n}\n\nfunction parseColumns(raw: unknown): Column[] {\n if (!Array.isArray(raw)) return [];\n return raw\n .filter((c): c is Record<string, unknown> => Boolean(c) && typeof c === \"object\")\n .map(\n (c): Column => ({\n key: typeof c[\"key\"] === \"string\" ? c[\"key\"] : \"\",\n label: typeof c[\"label\"] === \"string\" ? c[\"label\"] : \"\",\n align:\n c[\"align\"] === \"right\" || c[\"align\"] === \"center\"\n ? (c[\"align\"] as \"right\" | \"center\")\n : \"left\",\n }),\n )\n .filter((c) => c.key);\n}\n\nfunction parseRows(raw: unknown): Array<Record<string, unknown>> {\n return Array.isArray(raw)\n ? raw.filter((r): r is Record<string, unknown> => Boolean(r) && typeof r === \"object\")\n : [];\n}\n\n/**\n * Table with a built-in search box. Typing dispatches a SetState onto\n * `searchKey` (default `search`) so the host's `_filter` expression can narrow\n * `rows`. The block itself also filters its already-resolved `rows` client-side\n * (case-insensitive substring across all column values) so it stays useful even\n * when no host dispatch is wired.\n */\nexport const SearchableTable: RendererComponent = (props, ctx) => {\n const columns = parseColumns(props[\"columns\"]);\n const rows = parseRows(props[\"rows\"]);\n const searchKey = typeof props[\"searchKey\"] === \"string\" ? props[\"searchKey\"] : \"search\";\n const placeholder = typeof props[\"placeholder\"] === \"string\" ? props[\"placeholder\"] : \"Search…\";\n const emptyText =\n typeof props.emptyText === \"string\" && props.emptyText.trim()\n ? props.emptyText\n : \"No matching rows\";\n const query = String(ctx.resolve.getState(searchKey) ?? \"\").toLowerCase();\n\n const visibleRows = query\n ? rows.filter((row) =>\n columns.some((col) =>\n String(row[col.key] ?? \"\")\n .toLowerCase()\n .includes(query),\n ),\n )\n : rows;\n\n return (\n <div\n className=\"uibot-searchable-table space-y-3\"\n data-uibot-type=\"SearchableTable\"\n data-empty={visibleRows.length === 0}\n >\n <input\n type=\"search\"\n defaultValue={query}\n placeholder={placeholder}\n aria-label={placeholder}\n className=\"h-9 w-full max-w-xs rounded-md border bg-background px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n onChange={(e) => ctx.dispatch?.(setState(searchKey, e.currentTarget.value), { event: e })}\n />\n <div\n className=\"w-full overflow-auto rounded-lg border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n role=\"region\"\n aria-label=\"Table results\"\n tabIndex={0}\n >\n <table className=\"w-full text-sm\">\n <thead>\n <tr className=\"border-b bg-muted/50\">\n {columns.map((col) => (\n <th\n key={col.key}\n scope=\"col\"\n className={cn(\n \"px-4 py-3 text-xs font-medium uppercase tracking-wide text-muted-foreground\",\n col.align === \"right\"\n ? \"text-right\"\n : col.align === \"center\"\n ? \"text-center\"\n : \"text-left\",\n )}\n >\n {col.label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {visibleRows.map((row, i) => (\n <tr key={i} className=\"border-b transition-colors last:border-0 hover:bg-muted/30\">\n {columns.map((col) => (\n <td\n key={col.key}\n className={cn(\n \"px-4 py-3 text-foreground\",\n col.align === \"right\"\n ? \"text-right\"\n : col.align === \"center\"\n ? \"text-center\"\n : \"\",\n )}\n >\n {String(row[col.key] ?? \"\")}\n </td>\n ))}\n </tr>\n ))}\n {visibleRows.length === 0 && (\n <tr>\n <td\n colSpan={columns.length || 1}\n className=\"px-4 py-10 text-center text-sm text-muted-foreground\"\n >\n {emptyText}\n </td>\n </tr>\n )}\n </tbody>\n </table>\n </div>\n </div>\n );\n};\n\n// ── SplitMasterDetail ─────────────────────────────────────────────────────────\n\ninterface MasterItem {\n id: string;\n title: string;\n subtitle?: string | undefined;\n}\n\nfunction parseItems(raw: unknown): MasterItem[] {\n if (!Array.isArray(raw)) return [];\n return raw\n .map((it, i) => {\n if (!it || typeof it !== \"object\") return null;\n const rec = it as Record<string, unknown>;\n return {\n id: typeof rec[\"id\"] === \"string\" ? rec[\"id\"] : `item-${i}`,\n title: typeof rec[\"title\"] === \"string\" ? rec[\"title\"] : \"\",\n subtitle: typeof rec[\"subtitle\"] === \"string\" ? rec[\"subtitle\"] : undefined,\n } as MasterItem;\n })\n .filter((it): it is MasterItem => it !== null);\n}\n\n/**\n * Master/detail split: a selectable left list and a right detail pane. Clicking\n * an item dispatches SetState onto `selectKey` (default `selectedId`); the host\n * typically reads it back via `_find` to drive the detail slot. The detail pane\n * renders the `detail` slot (host-composed) when present, else `children`.\n */\nexport const SplitMasterDetail: RendererComponent = (props, ctx) => {\n const items = parseItems(props[\"items\"]);\n const selectKey = typeof props[\"selectKey\"] === \"string\" ? props[\"selectKey\"] : \"selectedId\";\n const selectedId = String(ctx.resolve.getState(selectKey) ?? items[0]?.id ?? \"\");\n const detail = ctx.slots[\"detail\"] as ReactNode[] | undefined;\n\n return (\n <div\n className=\"uibot-split-master-detail grid gap-4 md:grid-cols-[minmax(220px,1fr)_2fr]\"\n data-uibot-type=\"SplitMasterDetail\"\n >\n <ul className=\"space-y-1 rounded-lg border bg-muted/20 p-2\" role=\"listbox\" aria-label=\"Items\">\n {items.map((it) => {\n const active = it.id === selectedId;\n return (\n <li key={it.id}>\n <button\n type=\"button\"\n role=\"option\"\n aria-selected={active}\n onClick={(e) => ctx.dispatch?.(setState(selectKey, it.id), { event: e })}\n className={cn(\n \"w-full rounded-md px-3 py-2 text-left text-sm transition-colors\",\n active ? \"bg-accent text-accent-foreground\" : \"hover:bg-accent/50\",\n )}\n >\n <span className=\"block font-medium\">{it.title}</span>\n {it.subtitle && (\n <span className=\"block text-xs text-muted-foreground\">{it.subtitle}</span>\n )}\n </button>\n </li>\n );\n })}\n {items.length === 0 && (\n <li className=\"px-3 py-4 text-center text-xs text-muted-foreground\">No items</li>\n )}\n </ul>\n <div className=\"rounded-lg border bg-card p-5\">\n {detail && detail.length > 0 ? detail : (ctx.children as ReactNode[])}\n </div>\n </div>\n );\n};\n\n// ── DetailField ───────────────────────────────────────────────────────────────\n\n/** Label + value display row, for use inside a detail pane. */\nexport const DetailField: RendererComponent = (props) => {\n const label = typeof props[\"label\"] === \"string\" ? props[\"label\"] : \"\";\n const value = props[\"value\"];\n const inline = props[\"inline\"] === true;\n\n return (\n <div\n className={cn(\n \"uibot-detail-field\",\n inline ? \"flex items-baseline gap-2\" : \"flex flex-col gap-0.5 py-1.5\",\n )}\n data-uibot-type=\"DetailField\"\n >\n <dt className=\"text-xs font-medium uppercase tracking-wide text-muted-foreground\">{label}</dt>\n <dd className=\"text-sm text-foreground\">\n {value === undefined || value === null || value === \"\" ? \"—\" : String(value)}\n </dd>\n </div>\n );\n};\n\n// ── BadgeGroup ────────────────────────────────────────────────────────────────\n\ntype BadgeTone = \"default\" | \"success\" | \"warning\" | \"error\" | \"info\";\n\nconst BADGE_TONE: Record<BadgeTone, string> = {\n default: \"bg-secondary text-secondary-foreground\",\n success: \"bg-green-100 text-green-700\",\n warning: \"bg-amber-100 text-amber-700\",\n error: \"bg-destructive/10 text-destructive\",\n info: \"bg-sky-100 text-sky-700\",\n};\n\ninterface BadgeItem {\n label: string;\n tone?: BadgeTone | undefined;\n onClick?: ActionChain | undefined;\n}\n\nfunction parseBadges(raw: unknown): BadgeItem[] {\n if (!Array.isArray(raw)) return [];\n return raw\n .map((b) => {\n if (typeof b === \"string\") return { label: b } as BadgeItem;\n if (b && typeof b === \"object\") {\n const rec = b as Record<string, unknown>;\n const tone = rec[\"tone\"];\n const onClick = rec[\"onClick\"];\n return {\n label: typeof rec[\"label\"] === \"string\" ? rec[\"label\"] : \"\",\n tone:\n tone === \"success\" || tone === \"warning\" || tone === \"error\" || tone === \"info\"\n ? (tone as BadgeTone)\n : \"default\",\n onClick: Array.isArray(onClick) ? (onClick as ActionChain) : undefined,\n } as BadgeItem;\n }\n return null;\n })\n .filter((b): b is BadgeItem => b !== null && b.label.length > 0);\n}\n\nconst BADGE_BASE = \"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium\";\n\n/**\n * A horizontal group of status badges. Items carrying an `onClick` ActionChain\n * render as focusable `<button>`s that dispatch the chain on click (so e.g. a\n * tag chip can drive a SetState filter); items without `onClick` stay as inert\n * `<span>`s.\n */\nexport const BadgeGroup: RendererComponent = (props, ctx) => {\n const items = parseBadges(props[\"items\"]);\n return (\n <div\n className=\"uibot-badge-group flex flex-wrap items-center gap-1.5\"\n data-uibot-type=\"BadgeGroup\"\n >\n {items.map((b, i) =>\n b.onClick ? (\n <button\n key={i}\n type=\"button\"\n onClick={(e) => ctx.dispatch?.(b.onClick!, { event: e })}\n className={cn(BADGE_BASE, \"cursor-pointer\", BADGE_TONE[b.tone ?? \"default\"])}\n >\n {b.label}\n </button>\n ) : (\n <span key={i} className={cn(BADGE_BASE, BADGE_TONE[b.tone ?? \"default\"])}>\n {b.label}\n </span>\n ),\n )}\n </div>\n );\n};\n\n// ── KeyValueGrid ──────────────────────────────────────────────────────────────\n\ninterface KVPair {\n key: string;\n value: unknown;\n}\n\nfunction parsePairs(raw: unknown): KVPair[] {\n if (Array.isArray(raw)) {\n return raw\n .filter((p): p is Record<string, unknown> => Boolean(p) && typeof p === \"object\")\n .map((p) => ({ key: typeof p[\"key\"] === \"string\" ? p[\"key\"] : \"\", value: p[\"value\"] }))\n .filter((p) => p.key);\n }\n if (raw && typeof raw === \"object\") {\n return Object.entries(raw as Record<string, unknown>).map(([key, value]) => ({ key, value }));\n }\n return [];\n}\n\n// Static literal columns map — see grid.tsx for the purge rationale.\nconst KV_COLS: Record<string, string> = {\n \"1\": \"sm:grid-cols-1\",\n \"2\": \"sm:grid-cols-2\",\n \"3\": \"sm:grid-cols-3\",\n};\n\n/** Two-column key/value grid for compact metadata display. */\nexport const KeyValueGrid: RendererComponent = (props) => {\n const pairs = parsePairs(props[\"items\"] ?? props[\"data\"]);\n const cols = String(props[\"cols\"] ?? \"2\");\n const colsCls = KV_COLS[cols] ?? KV_COLS[\"2\"];\n\n return (\n <dl\n className={cn(\"uibot-key-value-grid grid grid-cols-1 gap-x-6 gap-y-2\", colsCls)}\n data-uibot-type=\"KeyValueGrid\"\n >\n {pairs.map((p, i) => (\n <div key={i} className=\"flex flex-col gap-0.5 border-b border-dashed py-1.5 last:border-0\">\n <dt className=\"text-xs font-medium uppercase tracking-wide text-muted-foreground\">\n {p.key}\n </dt>\n <dd className=\"text-sm text-foreground\">\n {p.value === undefined || p.value === null || p.value === \"\" ? \"—\" : String(p.value)}\n </dd>\n </div>\n ))}\n </dl>\n );\n};\n",
17
+ "type": "registry:ui"
18
+ },
19
+ {
20
+ "path": "components/uibot/interactive.uibot.json",
21
+ "target": "components/uibot/interactive.uibot.json",
22
+ "content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"interactive\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"BadgeGroup\",\n \"export\": \"BadgeGroup\",\n \"module\": \"interactive.tsx\",\n \"catalog\": {\n \"name\": \"BadgeGroup\",\n \"description\": \"Horizontal group of status badges. Items may be plain strings or {label, tone}.\",\n \"category\": \"composite\",\n \"level\": \"L1\",\n \"tags\": [\n \"badge\",\n \"status\",\n \"tags\"\n ],\n \"props\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"tone\": {\n \"type\": \"string\",\n \"enum\": [\n \"default\",\n \"success\",\n \"warning\",\n \"error\",\n \"info\"\n ]\n }\n }\n },\n \"description\": \"Array of strings or [{label, tone?}]\"\n }\n },\n \"usageScenarios\": [\n \"Status / tag chips on a list row\",\n \"Capability flags on an agent card\"\n ],\n \"constraints\": [\n \"tone defaults to 'default' when omitted or unrecognised\"\n ]\n }\n },\n {\n \"name\": \"DetailField\",\n \"export\": \"DetailField\",\n \"module\": \"interactive.tsx\",\n \"catalog\": {\n \"name\": \"DetailField\",\n \"description\": \"Label + value display row, for use inside a detail pane.\",\n \"category\": \"primitive\",\n \"level\": \"L1\",\n \"tags\": [\n \"detail\",\n \"field\",\n \"display\"\n ],\n \"props\": {\n \"label\": {\n \"type\": \"string\"\n },\n \"value\": {\n \"type\": \"string\",\n \"description\": \"Any scalar; rendered as '—' when empty\"\n },\n \"inline\": {\n \"type\": \"boolean\",\n \"default\": false,\n \"description\": \"Render label and value on one line\"\n }\n },\n \"usageScenarios\": [\n \"Field row inside a SplitMasterDetail detail pane\",\n \"Read-only record summary\"\n ],\n \"constraints\": [\n \"Use for scalar values; for structured data prefer KeyValueGrid\"\n ]\n }\n },\n {\n \"name\": \"KeyValueGrid\",\n \"export\": \"KeyValueGrid\",\n \"module\": \"interactive.tsx\",\n \"catalog\": {\n \"name\": \"KeyValueGrid\",\n \"description\": \"Compact key/value grid for metadata. Accepts an items array or a plain record object.\",\n \"category\": \"composite\",\n \"level\": \"L1\",\n \"tags\": [\n \"key-value\",\n \"metadata\",\n \"grid\",\n \"display\"\n ],\n \"props\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"key\": {\n \"type\": \"string\"\n },\n \"value\": {\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"[{key, value}] pairs (or pass a plain object as `data`)\"\n },\n \"cols\": {\n \"enum\": [\n \"1\",\n \"2\",\n \"3\",\n 1,\n 2,\n 3\n ],\n \"default\": \"2\"\n }\n },\n \"usageScenarios\": [\n \"Model metadata panel (provider, context, pricing)\",\n \"Request / response header summary\"\n ],\n \"constraints\": [\n \"Values are stringified for display; pass pre-formatted strings for control\"\n ]\n }\n },\n {\n \"name\": \"SearchableTable\",\n \"export\": \"SearchableTable\",\n \"module\": \"interactive.tsx\",\n \"catalog\": {\n \"name\": \"SearchableTable\",\n \"description\": \"Table with a built-in search box. Typing dispatches SetState onto searchKey and filters the resolved rows (case-insensitive substring across all columns).\",\n \"category\": \"feature\",\n \"level\": \"L3\",\n \"tags\": [\n \"table\",\n \"search\",\n \"interactive\",\n \"data\"\n ],\n \"props\": {\n \"columns\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"key\": {\n \"type\": \"string\"\n },\n \"label\": {\n \"type\": \"string\"\n },\n \"align\": {\n \"type\": \"string\",\n \"enum\": [\n \"left\",\n \"center\",\n \"right\"\n ]\n }\n }\n }\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\"\n },\n \"description\": \"Row objects keyed to column.key\"\n },\n \"searchKey\": {\n \"type\": \"string\",\n \"default\": \"search\",\n \"description\": \"State path the search query writes to\"\n },\n \"placeholder\": {\n \"type\": \"string\",\n \"default\": \"Search…\"\n },\n \"emptyText\": {\n \"type\": \"string\",\n \"default\": \"No matching rows\",\n \"description\": \"Copy shown when the filtered row set is empty\"\n }\n },\n \"usageScenarios\": [\n \"Searchable plugins / catalog list in studio\",\n \"User management table with live filtering\"\n ],\n \"constraints\": [\n \"Requires a live host (dispatch) for the search box to update host state; client-side filtering still works on already-resolved rows\"\n ]\n }\n },\n {\n \"name\": \"SplitMasterDetail\",\n \"export\": \"SplitMasterDetail\",\n \"module\": \"interactive.tsx\",\n \"catalog\": {\n \"name\": \"SplitMasterDetail\",\n \"description\": \"Master/detail split: a selectable left list and a right detail pane. Clicking an item dispatches SetState onto selectKey; the detail slot (or children) renders the right pane.\",\n \"category\": \"feature\",\n \"level\": \"L3\",\n \"tags\": [\n \"split\",\n \"master-detail\",\n \"interactive\",\n \"layout\"\n ],\n \"props\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"subtitle\": {\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"[{id, title, subtitle?}] left-list entries\"\n },\n \"selectKey\": {\n \"type\": \"string\",\n \"default\": \"selectedId\",\n \"description\": \"State path the selected id writes to\"\n }\n },\n \"slots\": {\n \"detail\": {\n \"description\": \"Right-pane content; usually host-composed from the selected item via _find\"\n }\n },\n \"usageScenarios\": [\n \"Skills list → skill detail\",\n \"Agents directory → agent inspector\"\n ],\n \"constraints\": [\n \"Selection defaults to the first item's id until the host updates selectKey\"\n ]\n }\n }\n ]\n}\n",
23
+ "type": "registry:ui"
24
+ }
25
+ ],
26
+ "meta": {
27
+ "category": "feature",
28
+ "level": "L3",
29
+ "props": {
30
+ "columns": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "object",
34
+ "properties": {
35
+ "key": {
36
+ "type": "string"
37
+ },
38
+ "label": {
39
+ "type": "string"
40
+ },
41
+ "align": {
42
+ "type": "string",
43
+ "enum": [
44
+ "left",
45
+ "center",
46
+ "right"
47
+ ]
48
+ }
49
+ }
50
+ }
51
+ },
52
+ "rows": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object"
56
+ },
57
+ "description": "Row objects keyed to column.key"
58
+ },
59
+ "searchKey": {
60
+ "type": "string",
61
+ "default": "search",
62
+ "description": "State path the search query writes to"
63
+ },
64
+ "placeholder": {
65
+ "type": "string",
66
+ "default": "Search…"
67
+ },
68
+ "emptyText": {
69
+ "type": "string",
70
+ "default": "No matching rows",
71
+ "description": "Copy shown when the filtered row set is empty"
72
+ }
73
+ },
74
+ "scenarios": [
75
+ "Searchable plugins / catalog list in studio",
76
+ "User management table with live filtering"
77
+ ],
78
+ "constraints": [
79
+ "Requires a live host (dispatch) for the search box to update host state; client-side filtering still works on already-resolved rows"
80
+ ],
81
+ "provides": [
82
+ "SearchableTable",
83
+ "SplitMasterDetail",
84
+ "DetailField",
85
+ "BadgeGroup",
86
+ "KeyValueGrid"
87
+ ],
88
+ "uibot": {
89
+ "schema": "uibot.registry.item.v1",
90
+ "item": "interactive",
91
+ "channel": "public",
92
+ "components": [
93
+ {
94
+ "name": "BadgeGroup",
95
+ "export": "BadgeGroup",
96
+ "module": "interactive.tsx",
97
+ "catalog": {
98
+ "name": "BadgeGroup",
99
+ "description": "Horizontal group of status badges. Items may be plain strings or {label, tone}.",
100
+ "category": "composite",
101
+ "level": "L1",
102
+ "tags": [
103
+ "badge",
104
+ "status",
105
+ "tags"
106
+ ],
107
+ "props": {
108
+ "items": {
109
+ "type": "array",
110
+ "items": {
111
+ "type": "object",
112
+ "properties": {
113
+ "label": {
114
+ "type": "string"
115
+ },
116
+ "tone": {
117
+ "type": "string",
118
+ "enum": [
119
+ "default",
120
+ "success",
121
+ "warning",
122
+ "error",
123
+ "info"
124
+ ]
125
+ }
126
+ }
127
+ },
128
+ "description": "Array of strings or [{label, tone?}]"
129
+ }
130
+ },
131
+ "usageScenarios": [
132
+ "Status / tag chips on a list row",
133
+ "Capability flags on an agent card"
134
+ ],
135
+ "constraints": [
136
+ "tone defaults to 'default' when omitted or unrecognised"
137
+ ]
138
+ }
139
+ },
140
+ {
141
+ "name": "DetailField",
142
+ "export": "DetailField",
143
+ "module": "interactive.tsx",
144
+ "catalog": {
145
+ "name": "DetailField",
146
+ "description": "Label + value display row, for use inside a detail pane.",
147
+ "category": "primitive",
148
+ "level": "L1",
149
+ "tags": [
150
+ "detail",
151
+ "field",
152
+ "display"
153
+ ],
154
+ "props": {
155
+ "label": {
156
+ "type": "string"
157
+ },
158
+ "value": {
159
+ "type": "string",
160
+ "description": "Any scalar; rendered as '—' when empty"
161
+ },
162
+ "inline": {
163
+ "type": "boolean",
164
+ "default": false,
165
+ "description": "Render label and value on one line"
166
+ }
167
+ },
168
+ "usageScenarios": [
169
+ "Field row inside a SplitMasterDetail detail pane",
170
+ "Read-only record summary"
171
+ ],
172
+ "constraints": [
173
+ "Use for scalar values; for structured data prefer KeyValueGrid"
174
+ ]
175
+ }
176
+ },
177
+ {
178
+ "name": "KeyValueGrid",
179
+ "export": "KeyValueGrid",
180
+ "module": "interactive.tsx",
181
+ "catalog": {
182
+ "name": "KeyValueGrid",
183
+ "description": "Compact key/value grid for metadata. Accepts an items array or a plain record object.",
184
+ "category": "composite",
185
+ "level": "L1",
186
+ "tags": [
187
+ "key-value",
188
+ "metadata",
189
+ "grid",
190
+ "display"
191
+ ],
192
+ "props": {
193
+ "items": {
194
+ "type": "array",
195
+ "items": {
196
+ "type": "object",
197
+ "properties": {
198
+ "key": {
199
+ "type": "string"
200
+ },
201
+ "value": {
202
+ "type": "string"
203
+ }
204
+ }
205
+ },
206
+ "description": "[{key, value}] pairs (or pass a plain object as `data`)"
207
+ },
208
+ "cols": {
209
+ "enum": [
210
+ "1",
211
+ "2",
212
+ "3",
213
+ 1,
214
+ 2,
215
+ 3
216
+ ],
217
+ "default": "2"
218
+ }
219
+ },
220
+ "usageScenarios": [
221
+ "Model metadata panel (provider, context, pricing)",
222
+ "Request / response header summary"
223
+ ],
224
+ "constraints": [
225
+ "Values are stringified for display; pass pre-formatted strings for control"
226
+ ]
227
+ }
228
+ },
229
+ {
230
+ "name": "SearchableTable",
231
+ "export": "SearchableTable",
232
+ "module": "interactive.tsx",
233
+ "catalog": {
234
+ "name": "SearchableTable",
235
+ "description": "Table with a built-in search box. Typing dispatches SetState onto searchKey and filters the resolved rows (case-insensitive substring across all columns).",
236
+ "category": "feature",
237
+ "level": "L3",
238
+ "tags": [
239
+ "table",
240
+ "search",
241
+ "interactive",
242
+ "data"
243
+ ],
244
+ "props": {
245
+ "columns": {
246
+ "type": "array",
247
+ "items": {
248
+ "type": "object",
249
+ "properties": {
250
+ "key": {
251
+ "type": "string"
252
+ },
253
+ "label": {
254
+ "type": "string"
255
+ },
256
+ "align": {
257
+ "type": "string",
258
+ "enum": [
259
+ "left",
260
+ "center",
261
+ "right"
262
+ ]
263
+ }
264
+ }
265
+ }
266
+ },
267
+ "rows": {
268
+ "type": "array",
269
+ "items": {
270
+ "type": "object"
271
+ },
272
+ "description": "Row objects keyed to column.key"
273
+ },
274
+ "searchKey": {
275
+ "type": "string",
276
+ "default": "search",
277
+ "description": "State path the search query writes to"
278
+ },
279
+ "placeholder": {
280
+ "type": "string",
281
+ "default": "Search…"
282
+ },
283
+ "emptyText": {
284
+ "type": "string",
285
+ "default": "No matching rows",
286
+ "description": "Copy shown when the filtered row set is empty"
287
+ }
288
+ },
289
+ "usageScenarios": [
290
+ "Searchable plugins / catalog list in studio",
291
+ "User management table with live filtering"
292
+ ],
293
+ "constraints": [
294
+ "Requires a live host (dispatch) for the search box to update host state; client-side filtering still works on already-resolved rows"
295
+ ]
296
+ }
297
+ },
298
+ {
299
+ "name": "SplitMasterDetail",
300
+ "export": "SplitMasterDetail",
301
+ "module": "interactive.tsx",
302
+ "catalog": {
303
+ "name": "SplitMasterDetail",
304
+ "description": "Master/detail split: a selectable left list and a right detail pane. Clicking an item dispatches SetState onto selectKey; the detail slot (or children) renders the right pane.",
305
+ "category": "feature",
306
+ "level": "L3",
307
+ "tags": [
308
+ "split",
309
+ "master-detail",
310
+ "interactive",
311
+ "layout"
312
+ ],
313
+ "props": {
314
+ "items": {
315
+ "type": "array",
316
+ "items": {
317
+ "type": "object",
318
+ "properties": {
319
+ "id": {
320
+ "type": "string"
321
+ },
322
+ "title": {
323
+ "type": "string"
324
+ },
325
+ "subtitle": {
326
+ "type": "string"
327
+ }
328
+ }
329
+ },
330
+ "description": "[{id, title, subtitle?}] left-list entries"
331
+ },
332
+ "selectKey": {
333
+ "type": "string",
334
+ "default": "selectedId",
335
+ "description": "State path the selected id writes to"
336
+ }
337
+ },
338
+ "slots": {
339
+ "detail": {
340
+ "description": "Right-pane content; usually host-composed from the selected item via _find"
341
+ }
342
+ },
343
+ "usageScenarios": [
344
+ "Skills list → skill detail",
345
+ "Agents directory → agent inspector"
346
+ ],
347
+ "constraints": [
348
+ "Selection defaults to the first item's id until the host updates selectKey"
349
+ ]
350
+ }
351
+ }
352
+ ]
353
+ }
354
+ }
355
+ }