@almadar/std 16.238.0 → 16.239.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 (511) hide show
  1. package/behaviors/behaviors-registry.json +31586 -26790
  2. package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +2 -2
  3. package/behaviors/lolo/agent/atoms/std-agent-session.lolo +337 -167
  4. package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +48 -9
  5. package/behaviors/lolo/agent/atoms/std-agent-trace.lolo +45 -8
  6. package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +33 -9
  7. package/behaviors/lolo/ui/avl/atoms/ui-avl-glyph.lolo +6 -1
  8. package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +5 -0
  9. package/behaviors/lolo/ui/core/.hand-authored.json +0 -4
  10. package/behaviors/lolo/ui/core/atoms/std-billable-hour.lolo +23 -10
  11. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +30 -100
  12. package/behaviors/lolo/ui/core/atoms/std-graphs.lolo +2 -2
  13. package/behaviors/lolo/ui/core/atoms/std-panel-launcher.lolo +97 -0
  14. package/behaviors/lolo/ui/core/atoms/std-stats.lolo +1 -1
  15. package/behaviors/lolo/ui/core/atoms/ui-animated-graphic.lolo +5 -0
  16. package/behaviors/lolo/ui/core/atoms/ui-animated-reveal.lolo +5 -0
  17. package/behaviors/lolo/ui/core/atoms/ui-aside.lolo +5 -0
  18. package/behaviors/lolo/ui/core/atoms/ui-atlas-image.lolo +5 -0
  19. package/behaviors/lolo/ui/core/atoms/ui-atlas-panel.lolo +5 -0
  20. package/behaviors/lolo/ui/core/atoms/ui-avatar.lolo +5 -0
  21. package/behaviors/lolo/ui/core/atoms/ui-badge.lolo +5 -0
  22. package/behaviors/lolo/ui/core/atoms/ui-box.lolo +5 -0
  23. package/behaviors/lolo/ui/core/atoms/ui-button.lolo +5 -0
  24. package/behaviors/lolo/ui/core/atoms/ui-card.lolo +5 -0
  25. package/behaviors/lolo/ui/core/atoms/ui-center.lolo +5 -0
  26. package/behaviors/lolo/ui/core/atoms/ui-checkbox.lolo +6 -0
  27. package/behaviors/lolo/ui/core/atoms/ui-confetti-effect.lolo +5 -0
  28. package/behaviors/lolo/ui/core/atoms/ui-day-cell.lolo +5 -0
  29. package/behaviors/lolo/ui/core/atoms/ui-dialog.lolo +5 -0
  30. package/behaviors/lolo/ui/core/atoms/ui-divider.lolo +5 -0
  31. package/behaviors/lolo/ui/core/atoms/ui-filter-pill.lolo +5 -0
  32. package/behaviors/lolo/ui/core/atoms/ui-flip-container.lolo +5 -0
  33. package/behaviors/lolo/ui/core/atoms/ui-game-icon.lolo +5 -0
  34. package/behaviors/lolo/ui/core/atoms/ui-hstack.lolo +5 -0
  35. package/behaviors/lolo/ui/core/atoms/ui-icon.lolo +5 -0
  36. package/behaviors/lolo/ui/core/atoms/ui-image.lolo +5 -0
  37. package/behaviors/lolo/ui/core/atoms/ui-infinite-scroll-sentinel.lolo +5 -0
  38. package/behaviors/lolo/ui/core/atoms/ui-input.lolo +5 -0
  39. package/behaviors/lolo/ui/core/atoms/ui-label.lolo +5 -0
  40. package/behaviors/lolo/ui/core/atoms/ui-law-reference-tooltip.lolo +5 -0
  41. package/behaviors/lolo/ui/core/atoms/ui-overlay.lolo +5 -0
  42. package/behaviors/lolo/ui/core/atoms/ui-pattern-tile.lolo +5 -0
  43. package/behaviors/lolo/ui/core/atoms/ui-presence.lolo +6 -1
  44. package/behaviors/lolo/ui/core/atoms/ui-progress-bar.lolo +6 -1
  45. package/behaviors/lolo/ui/core/atoms/ui-radio.lolo +6 -0
  46. package/behaviors/lolo/ui/core/atoms/ui-range-slider.lolo +7 -0
  47. package/behaviors/lolo/ui/core/atoms/ui-section-header.lolo +5 -0
  48. package/behaviors/lolo/ui/core/atoms/ui-select.lolo +5 -0
  49. package/behaviors/lolo/ui/core/atoms/ui-spacer.lolo +5 -0
  50. package/behaviors/lolo/ui/core/atoms/ui-sparkline.lolo +5 -0
  51. package/behaviors/lolo/ui/core/atoms/ui-spinner.lolo +5 -0
  52. package/behaviors/lolo/ui/core/atoms/ui-stack.lolo +5 -0
  53. package/behaviors/lolo/ui/core/atoms/ui-status-dot.lolo +5 -0
  54. package/behaviors/lolo/ui/core/atoms/ui-svg-branch.lolo +5 -0
  55. package/behaviors/lolo/ui/core/atoms/ui-svg-connection.lolo +5 -0
  56. package/behaviors/lolo/ui/core/atoms/ui-svg-flow.lolo +5 -0
  57. package/behaviors/lolo/ui/core/atoms/ui-svg-grid.lolo +5 -0
  58. package/behaviors/lolo/ui/core/atoms/ui-svg-lobe.lolo +5 -0
  59. package/behaviors/lolo/ui/core/atoms/ui-svg-mesh.lolo +5 -0
  60. package/behaviors/lolo/ui/core/atoms/ui-svg-morph.lolo +5 -0
  61. package/behaviors/lolo/ui/core/atoms/ui-svg-node.lolo +5 -0
  62. package/behaviors/lolo/ui/core/atoms/ui-svg-pulse.lolo +5 -0
  63. package/behaviors/lolo/ui/core/atoms/ui-svg-ring.lolo +5 -0
  64. package/behaviors/lolo/ui/core/atoms/ui-svg-shield.lolo +5 -0
  65. package/behaviors/lolo/ui/core/atoms/ui-svg-stack.lolo +5 -0
  66. package/behaviors/lolo/ui/core/atoms/ui-switch.lolo +6 -0
  67. package/behaviors/lolo/ui/core/atoms/ui-text-highlight.lolo +7 -0
  68. package/behaviors/lolo/ui/core/atoms/ui-textarea.lolo +5 -0
  69. package/behaviors/lolo/ui/core/atoms/ui-theme-toggle.lolo +5 -0
  70. package/behaviors/lolo/ui/core/atoms/ui-time-slot-cell.lolo +6 -0
  71. package/behaviors/lolo/ui/core/atoms/ui-trend-indicator.lolo +5 -0
  72. package/behaviors/lolo/ui/core/atoms/ui-typewriter-text.lolo +5 -0
  73. package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +5 -0
  74. package/behaviors/lolo/ui/core/atoms/ui-vstack.lolo +5 -0
  75. package/behaviors/lolo/ui/core/molecules/ui-accordion.lolo +10 -0
  76. package/behaviors/lolo/ui/core/molecules/ui-activation-block.lolo +5 -0
  77. package/behaviors/lolo/ui/core/molecules/ui-agent-activity-feed.lolo +249 -0
  78. package/behaviors/lolo/ui/core/molecules/ui-agent-activity-row.lolo +218 -0
  79. package/behaviors/lolo/ui/core/molecules/ui-agent-chat-feed.lolo +231 -0
  80. package/behaviors/lolo/ui/core/molecules/ui-alert.lolo +5 -0
  81. package/behaviors/lolo/ui/core/molecules/ui-animated-counter.lolo +5 -0
  82. package/behaviors/lolo/ui/core/molecules/ui-bloom-quiz-block.lolo +5 -0
  83. package/behaviors/lolo/ui/core/molecules/ui-branching-logic-builder.lolo +10 -0
  84. package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +5 -0
  85. package/behaviors/lolo/ui/core/molecules/ui-calendar-grid.lolo +14 -0
  86. package/behaviors/lolo/ui/core/molecules/ui-carousel.lolo +5 -0
  87. package/behaviors/lolo/ui/core/molecules/ui-change-list.lolo +5 -0
  88. package/behaviors/lolo/ui/core/molecules/ui-chart-legend.lolo +5 -0
  89. package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +10 -0
  90. package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +12 -0
  91. package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +6 -0
  92. package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +7 -0
  93. package/behaviors/lolo/ui/core/molecules/ui-confirm-dialog.lolo +5 -0
  94. package/behaviors/lolo/ui/core/molecules/ui-connection-block.lolo +5 -0
  95. package/behaviors/lolo/ui/core/molecules/ui-container.lolo +5 -0
  96. package/behaviors/lolo/ui/core/molecules/ui-content-renderer.lolo +5 -9
  97. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +18 -4
  98. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +18 -4
  99. package/behaviors/lolo/ui/core/molecules/ui-date-range-picker.lolo +6 -0
  100. package/behaviors/lolo/ui/core/molecules/ui-date-range-selector.lolo +5 -0
  101. package/behaviors/lolo/ui/core/molecules/ui-doc-breadcrumb.lolo +5 -0
  102. package/behaviors/lolo/ui/core/molecules/ui-doc-pagination.lolo +5 -0
  103. package/behaviors/lolo/ui/core/molecules/ui-doc-search.lolo +5 -0
  104. package/behaviors/lolo/ui/core/molecules/ui-doc-sidebar.lolo +5 -0
  105. package/behaviors/lolo/ui/core/molecules/ui-doc-toc.lolo +5 -0
  106. package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +8 -0
  107. package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +7 -0
  108. package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +10 -0
  109. package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +5 -0
  110. package/behaviors/lolo/ui/core/molecules/ui-edge-decoration.lolo +5 -0
  111. package/behaviors/lolo/ui/core/molecules/ui-emoji-picker.lolo +6 -1
  112. package/behaviors/lolo/ui/core/molecules/ui-empty-state.lolo +5 -0
  113. package/behaviors/lolo/ui/core/molecules/ui-error-boundary.lolo +5 -0
  114. package/behaviors/lolo/ui/core/molecules/ui-error-state.lolo +5 -0
  115. package/behaviors/lolo/ui/core/molecules/ui-feature-card.lolo +5 -0
  116. package/behaviors/lolo/ui/core/molecules/ui-feature-grid.lolo +5 -0
  117. package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +5 -0
  118. package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +7 -0
  119. package/behaviors/lolo/ui/core/molecules/ui-flex.lolo +5 -0
  120. package/behaviors/lolo/ui/core/molecules/ui-flip-card.lolo +5 -0
  121. package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +5 -0
  122. package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +5 -0
  123. package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +5 -0
  124. package/behaviors/lolo/ui/core/molecules/ui-form-field.lolo +5 -0
  125. package/behaviors/lolo/ui/core/molecules/ui-form-layout.lolo +5 -0
  126. package/behaviors/lolo/ui/core/molecules/ui-form-section-header.lolo +5 -0
  127. package/behaviors/lolo/ui/core/molecules/ui-fx-overlay.lolo +5 -0
  128. package/behaviors/lolo/ui/core/molecules/ui-gantt.lolo +14 -0
  129. package/behaviors/lolo/ui/core/molecules/ui-geometric-pattern.lolo +5 -0
  130. package/behaviors/lolo/ui/core/molecules/ui-gradient-divider.lolo +5 -0
  131. package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +40 -5
  132. package/behaviors/lolo/ui/core/molecules/ui-graph-view.lolo +10 -0
  133. package/behaviors/lolo/ui/core/molecules/ui-grid.lolo +5 -0
  134. package/behaviors/lolo/ui/core/molecules/ui-header.lolo +5 -0
  135. package/behaviors/lolo/ui/core/molecules/ui-icon-button.lolo +5 -0
  136. package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +10 -0
  137. package/behaviors/lolo/ui/core/molecules/ui-import-progress.lolo +5 -0
  138. package/behaviors/lolo/ui/core/molecules/ui-import-source-picker.lolo +5 -0
  139. package/behaviors/lolo/ui/core/molecules/ui-input-group.lolo +5 -0
  140. package/behaviors/lolo/ui/core/molecules/ui-jazari-state-machine.lolo +5 -0
  141. package/behaviors/lolo/ui/core/molecules/ui-lightbox.lolo +5 -0
  142. package/behaviors/lolo/ui/core/molecules/ui-likert-scale.lolo +5 -0
  143. package/behaviors/lolo/ui/core/molecules/ui-line-chart.lolo +5 -0
  144. package/behaviors/lolo/ui/core/molecules/ui-loading-state.lolo +5 -0
  145. package/behaviors/lolo/ui/core/molecules/ui-map-view.lolo +10 -0
  146. package/behaviors/lolo/ui/core/molecules/ui-markdown-content.lolo +5 -0
  147. package/behaviors/lolo/ui/core/molecules/ui-matrix-question.lolo +5 -0
  148. package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +5 -0
  149. package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +5 -0
  150. package/behaviors/lolo/ui/core/molecules/ui-modal.lolo +5 -0
  151. package/behaviors/lolo/ui/core/molecules/ui-navigation.lolo +5 -0
  152. package/behaviors/lolo/ui/core/molecules/ui-notification.lolo +5 -0
  153. package/behaviors/lolo/ui/core/molecules/ui-number-stepper.lolo +7 -0
  154. package/behaviors/lolo/ui/core/molecules/ui-option-constraint-group.lolo +20 -0
  155. package/behaviors/lolo/ui/core/molecules/ui-orbital-visualization.lolo +5 -0
  156. package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +5 -0
  157. package/behaviors/lolo/ui/core/molecules/ui-page-transition.lolo +5 -0
  158. package/behaviors/lolo/ui/core/molecules/ui-pagination.lolo +6 -0
  159. package/behaviors/lolo/ui/core/molecules/ui-popover.lolo +6 -0
  160. package/behaviors/lolo/ui/core/molecules/ui-positioned-canvas.lolo +7 -0
  161. package/behaviors/lolo/ui/core/molecules/ui-progress-dots.lolo +5 -0
  162. package/behaviors/lolo/ui/core/molecules/ui-pull-to-refresh.lolo +5 -0
  163. package/behaviors/lolo/ui/core/molecules/ui-qr-scanner.lolo +5 -0
  164. package/behaviors/lolo/ui/core/molecules/ui-quiz-block.lolo +5 -0
  165. package/behaviors/lolo/ui/core/molecules/ui-reflection-block.lolo +5 -0
  166. package/behaviors/lolo/ui/core/molecules/ui-relation-select.lolo +6 -0
  167. package/behaviors/lolo/ui/core/molecules/ui-repeatable-form-section.lolo +5 -0
  168. package/behaviors/lolo/ui/core/molecules/ui-reply-tree.lolo +7 -0
  169. package/behaviors/lolo/ui/core/molecules/ui-rich-text-editor.lolo +6 -0
  170. package/behaviors/lolo/ui/core/molecules/ui-scaled-diagram.lolo +5 -0
  171. package/behaviors/lolo/ui/core/molecules/ui-search-input.lolo +7 -1
  172. package/behaviors/lolo/ui/core/molecules/ui-section.lolo +5 -0
  173. package/behaviors/lolo/ui/core/molecules/ui-side-panel.lolo +5 -0
  174. package/behaviors/lolo/ui/core/molecules/ui-sidebar.lolo +6 -0
  175. package/behaviors/lolo/ui/core/molecules/ui-signature-pad.lolo +5 -0
  176. package/behaviors/lolo/ui/core/molecules/ui-simple-grid.lolo +5 -0
  177. package/behaviors/lolo/ui/core/molecules/ui-skeleton.lolo +10 -0
  178. package/behaviors/lolo/ui/core/molecules/ui-social-proof.lolo +5 -0
  179. package/behaviors/lolo/ui/core/molecules/ui-sortable-list.lolo +7 -0
  180. package/behaviors/lolo/ui/core/molecules/ui-split.lolo +5 -0
  181. package/behaviors/lolo/ui/core/molecules/ui-star-rating.lolo +7 -0
  182. package/behaviors/lolo/ui/core/molecules/ui-stat-display.lolo +10 -0
  183. package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +8 -0
  184. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +14 -0
  185. package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +5 -0
  186. package/behaviors/lolo/ui/core/molecules/ui-tag-input.lolo +5 -0
  187. package/behaviors/lolo/ui/core/molecules/ui-tooltip.lolo +5 -0
  188. package/behaviors/lolo/ui/core/molecules/ui-top-nav-item.lolo +5 -0
  189. package/behaviors/lolo/ui/core/molecules/ui-upload-drop-zone.lolo +5 -0
  190. package/behaviors/lolo/ui/core/molecules/ui-version-diff.lolo +5 -0
  191. package/behaviors/lolo/ui/core/molecules/ui-violation-alert.lolo +5 -0
  192. package/behaviors/lolo/ui/core/molecules/ui-vote-stack.lolo +5 -0
  193. package/behaviors/lolo/ui/core/molecules/ui-wizard-container.lolo +5 -0
  194. package/behaviors/lolo/ui/core/molecules/ui-wizard-navigation.lolo +8 -0
  195. package/behaviors/lolo/ui/core/molecules/ui-wizard-progress.lolo +5 -0
  196. package/behaviors/lolo/ui/core/organisms/ui-chat-bar.lolo +16 -0
  197. package/behaviors/lolo/ui/core/organisms/ui-code-runner-panel.lolo +5 -0
  198. package/behaviors/lolo/ui/core/organisms/ui-dashboard-grid.lolo +10 -0
  199. package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +21 -5
  200. package/behaviors/lolo/ui/core/organisms/ui-dock-layout.lolo +8 -3
  201. package/behaviors/lolo/ui/core/organisms/ui-drawer-slot.lolo +5 -0
  202. package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +16 -0
  203. package/behaviors/lolo/ui/core/organisms/ui-form.lolo +16 -0
  204. package/behaviors/lolo/ui/core/organisms/ui-master-detail-layout.lolo +5 -0
  205. package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +14 -0
  206. package/behaviors/lolo/ui/core/organisms/ui-modal-slot.lolo +5 -0
  207. package/behaviors/lolo/ui/core/organisms/ui-runtime-debugger.lolo +5 -0
  208. package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +9 -3
  209. package/behaviors/lolo/ui/core/organisms/ui-split-pane.lolo +6 -0
  210. package/behaviors/lolo/ui/core/organisms/ui-stat-card.lolo +14 -0
  211. package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +8 -3
  212. package/behaviors/lolo/ui/core/organisms/ui-subagent-trace-panel.lolo +232 -0
  213. package/behaviors/lolo/ui/core/organisms/ui-tabbed-container.lolo +5 -0
  214. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +14 -0
  215. package/behaviors/lolo/ui/core/organisms/ui-toast-slot.lolo +5 -0
  216. package/behaviors/lolo/ui/core/templates/ui-counter-template.lolo +5 -0
  217. package/behaviors/lolo/ui/core/templates/ui-generic-app-template.lolo +5 -0
  218. package/behaviors/lolo/ui/game/.hand-authored.json +2 -2
  219. package/behaviors/lolo/ui/game/atoms/ui-action-palette.lolo +5 -0
  220. package/behaviors/lolo/ui/game/atoms/ui-action-tile.lolo +5 -0
  221. package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +5 -0
  222. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +5 -0
  223. package/behaviors/lolo/ui/game/atoms/ui-choice-button.lolo +5 -0
  224. package/behaviors/lolo/ui/game/atoms/ui-control-button.lolo +5 -0
  225. package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +5 -0
  226. package/behaviors/lolo/ui/game/atoms/ui-dialogue-bubble.lolo +5 -0
  227. package/behaviors/lolo/ui/game/atoms/ui-game-audio-toggle.lolo +5 -0
  228. package/behaviors/lolo/ui/game/atoms/ui-game-hud.lolo +5 -0
  229. package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +5 -0
  230. package/behaviors/lolo/ui/game/atoms/ui-health-bar.lolo +5 -0
  231. package/behaviors/lolo/ui/game/atoms/ui-score-display.lolo +5 -0
  232. package/behaviors/lolo/ui/game/atoms/ui-sequence-bar.lolo +5 -0
  233. package/behaviors/lolo/ui/game/atoms/ui-stat-badge.lolo +5 -0
  234. package/behaviors/lolo/ui/game/atoms/ui-state-graph.lolo +5 -0
  235. package/behaviors/lolo/ui/game/atoms/ui-state-json-view.lolo +5 -0
  236. package/behaviors/lolo/ui/game/atoms/ui-trait-slot.lolo +7 -0
  237. package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +5 -0
  238. package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +6 -0
  239. package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +6 -0
  240. package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +6 -0
  241. package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +6 -0
  242. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +6 -0
  243. package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +6 -0
  244. package/behaviors/lolo-behavior-contracts.json +1 -1
  245. package/behaviors/registry/agent/atoms/std-agent-memory.orb +30 -7
  246. package/behaviors/registry/agent/atoms/std-agent-session.orb +1509 -601
  247. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +549 -116
  248. package/behaviors/registry/agent/atoms/std-agent-trace.orb +383 -87
  249. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +116 -9
  250. package/behaviors/registry/factory-signatures.json +1 -1
  251. package/behaviors/registry/ui/avl/atoms/ui-avl-glyph.orb +20 -0
  252. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +19 -0
  253. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +44 -21
  254. package/behaviors/registry/ui/core/atoms/std-browse.orb +117 -142
  255. package/behaviors/registry/ui/core/atoms/std-graphs.orb +14 -2
  256. package/behaviors/registry/ui/core/atoms/std-panel-launcher.orb +312 -0
  257. package/behaviors/registry/ui/core/atoms/std-stats.orb +1 -1
  258. package/behaviors/registry/ui/core/atoms/ui-animated-graphic.orb +19 -0
  259. package/behaviors/registry/ui/core/atoms/ui-animated-reveal.orb +19 -0
  260. package/behaviors/registry/ui/core/atoms/ui-aside.orb +19 -0
  261. package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +19 -0
  262. package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +19 -0
  263. package/behaviors/registry/ui/core/atoms/ui-avatar.orb +19 -0
  264. package/behaviors/registry/ui/core/atoms/ui-badge.orb +19 -0
  265. package/behaviors/registry/ui/core/atoms/ui-box.orb +19 -0
  266. package/behaviors/registry/ui/core/atoms/ui-button.orb +19 -0
  267. package/behaviors/registry/ui/core/atoms/ui-card.orb +19 -0
  268. package/behaviors/registry/ui/core/atoms/ui-center.orb +19 -0
  269. package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +20 -0
  270. package/behaviors/registry/ui/core/atoms/ui-confetti-effect.orb +19 -0
  271. package/behaviors/registry/ui/core/atoms/ui-day-cell.orb +19 -0
  272. package/behaviors/registry/ui/core/atoms/ui-dialog.orb +19 -0
  273. package/behaviors/registry/ui/core/atoms/ui-divider.orb +19 -0
  274. package/behaviors/registry/ui/core/atoms/ui-filter-pill.orb +19 -0
  275. package/behaviors/registry/ui/core/atoms/ui-flip-container.orb +19 -0
  276. package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +19 -0
  277. package/behaviors/registry/ui/core/atoms/ui-hstack.orb +19 -0
  278. package/behaviors/registry/ui/core/atoms/ui-icon.orb +19 -0
  279. package/behaviors/registry/ui/core/atoms/ui-image.orb +19 -0
  280. package/behaviors/registry/ui/core/atoms/ui-infinite-scroll-sentinel.orb +19 -0
  281. package/behaviors/registry/ui/core/atoms/ui-input.orb +19 -0
  282. package/behaviors/registry/ui/core/atoms/ui-label.orb +19 -0
  283. package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +19 -0
  284. package/behaviors/registry/ui/core/atoms/ui-overlay.orb +19 -0
  285. package/behaviors/registry/ui/core/atoms/ui-pattern-tile.orb +19 -0
  286. package/behaviors/registry/ui/core/atoms/ui-presence.orb +20 -0
  287. package/behaviors/registry/ui/core/atoms/ui-progress-bar.orb +20 -1
  288. package/behaviors/registry/ui/core/atoms/ui-radio.orb +20 -0
  289. package/behaviors/registry/ui/core/atoms/ui-range-slider.orb +21 -0
  290. package/behaviors/registry/ui/core/atoms/ui-section-header.orb +19 -0
  291. package/behaviors/registry/ui/core/atoms/ui-select.orb +19 -0
  292. package/behaviors/registry/ui/core/atoms/ui-spacer.orb +19 -0
  293. package/behaviors/registry/ui/core/atoms/ui-sparkline.orb +19 -0
  294. package/behaviors/registry/ui/core/atoms/ui-spinner.orb +19 -0
  295. package/behaviors/registry/ui/core/atoms/ui-stack.orb +19 -0
  296. package/behaviors/registry/ui/core/atoms/ui-status-dot.orb +19 -0
  297. package/behaviors/registry/ui/core/atoms/ui-svg-branch.orb +19 -0
  298. package/behaviors/registry/ui/core/atoms/ui-svg-connection.orb +19 -0
  299. package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +19 -0
  300. package/behaviors/registry/ui/core/atoms/ui-svg-grid.orb +19 -0
  301. package/behaviors/registry/ui/core/atoms/ui-svg-lobe.orb +19 -0
  302. package/behaviors/registry/ui/core/atoms/ui-svg-mesh.orb +19 -0
  303. package/behaviors/registry/ui/core/atoms/ui-svg-morph.orb +19 -0
  304. package/behaviors/registry/ui/core/atoms/ui-svg-node.orb +19 -0
  305. package/behaviors/registry/ui/core/atoms/ui-svg-pulse.orb +19 -0
  306. package/behaviors/registry/ui/core/atoms/ui-svg-ring.orb +19 -0
  307. package/behaviors/registry/ui/core/atoms/ui-svg-shield.orb +19 -0
  308. package/behaviors/registry/ui/core/atoms/ui-svg-stack.orb +19 -0
  309. package/behaviors/registry/ui/core/atoms/ui-switch.orb +20 -0
  310. package/behaviors/registry/ui/core/atoms/ui-text-highlight.orb +21 -0
  311. package/behaviors/registry/ui/core/atoms/ui-textarea.orb +19 -0
  312. package/behaviors/registry/ui/core/atoms/ui-theme-toggle.orb +19 -0
  313. package/behaviors/registry/ui/core/atoms/ui-time-slot-cell.orb +20 -0
  314. package/behaviors/registry/ui/core/atoms/ui-trend-indicator.orb +19 -0
  315. package/behaviors/registry/ui/core/atoms/ui-typewriter-text.orb +19 -0
  316. package/behaviors/registry/ui/core/atoms/ui-typography.orb +19 -0
  317. package/behaviors/registry/ui/core/atoms/ui-vstack.orb +19 -0
  318. package/behaviors/registry/ui/core/molecules/ui-accordion.orb +31 -0
  319. package/behaviors/registry/ui/core/molecules/ui-activation-block.orb +19 -0
  320. package/behaviors/registry/ui/core/molecules/ui-agent-activity-feed.orb +1881 -0
  321. package/behaviors/registry/ui/core/molecules/ui-agent-activity-row.orb +1817 -0
  322. package/behaviors/registry/ui/core/molecules/ui-agent-chat-feed.orb +1792 -0
  323. package/behaviors/registry/ui/core/molecules/ui-alert.orb +19 -0
  324. package/behaviors/registry/ui/core/molecules/ui-animated-counter.orb +19 -0
  325. package/behaviors/registry/ui/core/molecules/ui-bloom-quiz-block.orb +19 -0
  326. package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +31 -0
  327. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +19 -0
  328. package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +35 -0
  329. package/behaviors/registry/ui/core/molecules/ui-carousel.orb +19 -0
  330. package/behaviors/registry/ui/core/molecules/ui-change-list.orb +19 -0
  331. package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +19 -0
  332. package/behaviors/registry/ui/core/molecules/ui-chart.orb +32 -0
  333. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +26 -0
  334. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +20 -0
  335. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +21 -0
  336. package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +19 -0
  337. package/behaviors/registry/ui/core/molecules/ui-connection-block.orb +19 -0
  338. package/behaviors/registry/ui/core/molecules/ui-container.orb +19 -0
  339. package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +19 -38
  340. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +42 -0
  341. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +42 -0
  342. package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +20 -0
  343. package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +19 -0
  344. package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +19 -0
  345. package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +19 -0
  346. package/behaviors/registry/ui/core/molecules/ui-doc-search.orb +19 -0
  347. package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +19 -0
  348. package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +19 -0
  349. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +22 -0
  350. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +21 -0
  351. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +31 -0
  352. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +19 -0
  353. package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +19 -0
  354. package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +20 -1
  355. package/behaviors/registry/ui/core/molecules/ui-empty-state.orb +19 -0
  356. package/behaviors/registry/ui/core/molecules/ui-error-boundary.orb +19 -0
  357. package/behaviors/registry/ui/core/molecules/ui-error-state.orb +19 -0
  358. package/behaviors/registry/ui/core/molecules/ui-feature-card.orb +19 -0
  359. package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +19 -0
  360. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +19 -0
  361. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +21 -0
  362. package/behaviors/registry/ui/core/molecules/ui-flex.orb +19 -0
  363. package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +19 -0
  364. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +19 -0
  365. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +19 -0
  366. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +19 -0
  367. package/behaviors/registry/ui/core/molecules/ui-form-field.orb +19 -0
  368. package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +19 -0
  369. package/behaviors/registry/ui/core/molecules/ui-form-section-header.orb +19 -0
  370. package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +19 -0
  371. package/behaviors/registry/ui/core/molecules/ui-gantt.orb +35 -0
  372. package/behaviors/registry/ui/core/molecules/ui-geometric-pattern.orb +19 -0
  373. package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +19 -0
  374. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +579 -108
  375. package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +31 -0
  376. package/behaviors/registry/ui/core/molecules/ui-grid.orb +19 -0
  377. package/behaviors/registry/ui/core/molecules/ui-header.orb +19 -0
  378. package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +19 -0
  379. package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +31 -0
  380. package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +19 -0
  381. package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +19 -0
  382. package/behaviors/registry/ui/core/molecules/ui-input-group.orb +19 -0
  383. package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +19 -0
  384. package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +19 -0
  385. package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +19 -0
  386. package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +19 -0
  387. package/behaviors/registry/ui/core/molecules/ui-loading-state.orb +19 -0
  388. package/behaviors/registry/ui/core/molecules/ui-map-view.orb +31 -0
  389. package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +19 -0
  390. package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +19 -0
  391. package/behaviors/registry/ui/core/molecules/ui-menu.orb +19 -0
  392. package/behaviors/registry/ui/core/molecules/ui-meter.orb +19 -0
  393. package/behaviors/registry/ui/core/molecules/ui-modal.orb +19 -0
  394. package/behaviors/registry/ui/core/molecules/ui-navigation.orb +19 -0
  395. package/behaviors/registry/ui/core/molecules/ui-notification.orb +19 -0
  396. package/behaviors/registry/ui/core/molecules/ui-number-stepper.orb +21 -0
  397. package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +97 -0
  398. package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +19 -0
  399. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +20 -0
  400. package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +19 -0
  401. package/behaviors/registry/ui/core/molecules/ui-pagination.orb +20 -0
  402. package/behaviors/registry/ui/core/molecules/ui-popover.orb +20 -0
  403. package/behaviors/registry/ui/core/molecules/ui-positioned-canvas.orb +21 -0
  404. package/behaviors/registry/ui/core/molecules/ui-progress-dots.orb +19 -0
  405. package/behaviors/registry/ui/core/molecules/ui-pull-to-refresh.orb +19 -0
  406. package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +19 -0
  407. package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +19 -0
  408. package/behaviors/registry/ui/core/molecules/ui-reflection-block.orb +19 -0
  409. package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +20 -0
  410. package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +19 -0
  411. package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +21 -0
  412. package/behaviors/registry/ui/core/molecules/ui-rich-text-editor.orb +20 -0
  413. package/behaviors/registry/ui/core/molecules/ui-scaled-diagram.orb +19 -0
  414. package/behaviors/registry/ui/core/molecules/ui-search-input.orb +21 -1
  415. package/behaviors/registry/ui/core/molecules/ui-section.orb +19 -0
  416. package/behaviors/registry/ui/core/molecules/ui-side-panel.orb +19 -0
  417. package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +20 -0
  418. package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +19 -0
  419. package/behaviors/registry/ui/core/molecules/ui-simple-grid.orb +19 -0
  420. package/behaviors/registry/ui/core/molecules/ui-skeleton.orb +38 -0
  421. package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +19 -0
  422. package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +21 -0
  423. package/behaviors/registry/ui/core/molecules/ui-split.orb +19 -0
  424. package/behaviors/registry/ui/core/molecules/ui-star-rating.orb +21 -0
  425. package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +31 -0
  426. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +22 -0
  427. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +36 -0
  428. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +19 -0
  429. package/behaviors/registry/ui/core/molecules/ui-tag-input.orb +19 -0
  430. package/behaviors/registry/ui/core/molecules/ui-tooltip.orb +19 -0
  431. package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +19 -0
  432. package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +19 -0
  433. package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +19 -0
  434. package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +19 -0
  435. package/behaviors/registry/ui/core/molecules/ui-vote-stack.orb +19 -0
  436. package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +19 -0
  437. package/behaviors/registry/ui/core/molecules/ui-wizard-navigation.orb +22 -0
  438. package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +19 -0
  439. package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +53 -0
  440. package/behaviors/registry/ui/core/organisms/ui-code-runner-panel.orb +19 -0
  441. package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +31 -0
  442. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +45 -1
  443. package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +22 -3
  444. package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +19 -0
  445. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +38 -0
  446. package/behaviors/registry/ui/core/organisms/ui-form.orb +38 -0
  447. package/behaviors/registry/ui/core/organisms/ui-master-detail-layout.orb +19 -0
  448. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +35 -0
  449. package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +19 -0
  450. package/behaviors/registry/ui/core/organisms/ui-runtime-debugger.orb +19 -0
  451. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +39 -8
  452. package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +20 -0
  453. package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +35 -0
  454. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +22 -0
  455. package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +2222 -48
  456. package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +19 -0
  457. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +36 -0
  458. package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +19 -0
  459. package/behaviors/registry/ui/core/templates/ui-counter-template.orb +19 -0
  460. package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +19 -0
  461. package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +19 -0
  462. package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +19 -0
  463. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +19 -0
  464. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +19 -0
  465. package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +19 -0
  466. package/behaviors/registry/ui/game/atoms/ui-control-button.orb +19 -0
  467. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +19 -0
  468. package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +19 -0
  469. package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +19 -0
  470. package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +19 -0
  471. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +19 -0
  472. package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +19 -0
  473. package/behaviors/registry/ui/game/atoms/ui-score-display.orb +19 -0
  474. package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +19 -0
  475. package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +19 -0
  476. package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +19 -0
  477. package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +19 -0
  478. package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +21 -0
  479. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +19 -0
  480. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +20 -0
  481. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +20 -0
  482. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +20 -0
  483. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +20 -0
  484. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +20 -0
  485. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +20 -0
  486. package/behaviors/signatures.lolo +5306 -611
  487. package/dist/behaviors/exports-reader.js +10247 -13979
  488. package/dist/behaviors/functions/index.d.ts +655 -970
  489. package/dist/behaviors/functions/index.js +10234 -13951
  490. package/dist/behaviors/index.d.ts +1 -1
  491. package/dist/behaviors/index.js +10248 -13980
  492. package/dist/behaviors/query.js +10247 -13979
  493. package/dist/behaviors-embeddings.hash.json +3 -3
  494. package/dist/behaviors-embeddings.json +33 -33
  495. package/dist/behaviors-registry.json +31586 -26790
  496. package/dist/index.d.ts +1 -1
  497. package/dist/index.js +10248 -13980
  498. package/dist/knob-embeddings.hash.json +3 -3
  499. package/dist/knob-embeddings.json +1151 -815
  500. package/dist/registry/factory-signatures.json +1 -1
  501. package/package.json +3 -3
  502. package/behaviors/lolo/ui/core/atoms/std-list.lolo +0 -613
  503. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -399
  504. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +0 -379
  505. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +0 -447
  506. package/behaviors/lolo/ui/core/organisms/ui-master-detail.lolo +0 -276
  507. package/behaviors/registry/ui/core/atoms/std-list.orb +0 -2135
  508. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -1346
  509. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +0 -1248
  510. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -1761
  511. package/behaviors/registry/ui/core/organisms/ui-master-detail.orb +0 -715
@@ -1,2135 +0,0 @@
1
- {
2
- "description": "std-list as a Function",
3
- "ledger": {
4
- "entries": {
5
- "ent_01KXG04GRM21DW0QXZ09W7KPP3": {
6
- "bakedName": "ListItem",
7
- "curName": "ListItem",
8
- "id": "ent_01KXG04GRM21DW0QXZ09W7KPP3",
9
- "kind": "entity",
10
- "owner": "workspace",
11
- "renames": []
12
- },
13
- "evt_01KXG04GRM98X7EWV7WPJDZ0TB": {
14
- "bakedName": "CREATE",
15
- "curName": "CREATE",
16
- "id": "evt_01KXG04GRM98X7EWV7WPJDZ0TB",
17
- "kind": "event",
18
- "owner": "workspace",
19
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
20
- "renames": []
21
- },
22
- "evt_01KXG04GRMAJN1SEMTAB4H1ZDR": {
23
- "bakedName": "ITEM_UPDATED",
24
- "curName": "ITEM_UPDATED",
25
- "id": "evt_01KXG04GRMAJN1SEMTAB4H1ZDR",
26
- "kind": "event",
27
- "owner": "workspace",
28
- "parent": "trt_01KXG04GRMPQ2950NQGRW3NWJZ",
29
- "renames": []
30
- },
31
- "evt_01KXG04GRMBG4KHX9P46NPJPM4": {
32
- "bakedName": "DELETE",
33
- "curName": "DELETE",
34
- "id": "evt_01KXG04GRMBG4KHX9P46NPJPM4",
35
- "kind": "event",
36
- "owner": "workspace",
37
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
38
- "renames": []
39
- },
40
- "evt_01KXG04GRMFADBF7N7V069FCFY": {
41
- "bakedName": "DO_DELETE",
42
- "curName": "DO_DELETE",
43
- "id": "evt_01KXG04GRMFADBF7N7V069FCFY",
44
- "kind": "event",
45
- "owner": "workspace",
46
- "parent": "trt_01KXG04GRMPQ2950NQGRW3NWJZ",
47
- "renames": []
48
- },
49
- "evt_01KXG04GRMGHG0EZZ2BDQN17NY": {
50
- "bakedName": "ITEM_DELETED",
51
- "curName": "ITEM_DELETED",
52
- "id": "evt_01KXG04GRMGHG0EZZ2BDQN17NY",
53
- "kind": "event",
54
- "owner": "workspace",
55
- "parent": "trt_01KXG04GRMPQ2950NQGRW3NWJZ",
56
- "renames": []
57
- },
58
- "evt_01KXG04GRMGN6M6TP47HW7RTNH": {
59
- "bakedName": "DO_CREATE",
60
- "curName": "DO_CREATE",
61
- "id": "evt_01KXG04GRMGN6M6TP47HW7RTNH",
62
- "kind": "event",
63
- "owner": "workspace",
64
- "parent": "trt_01KXG04GRMPQ2950NQGRW3NWJZ",
65
- "renames": []
66
- },
67
- "evt_01KXG04GRMHJ0X8P7NDFZNE963": {
68
- "bakedName": "INIT",
69
- "curName": "INIT",
70
- "id": "evt_01KXG04GRMHJ0X8P7NDFZNE963",
71
- "kind": "event",
72
- "owner": "workspace",
73
- "parent": "trt_01KXG04GRMPQ2950NQGRW3NWJZ",
74
- "renames": []
75
- },
76
- "evt_01KXG04GRMNR4HJV0ME35VBPNC": {
77
- "bakedName": "ListItemLoadFailed",
78
- "curName": "ListItemLoadFailed",
79
- "id": "evt_01KXG04GRMNR4HJV0ME35VBPNC",
80
- "kind": "event",
81
- "owner": "workspace",
82
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
83
- "renames": []
84
- },
85
- "evt_01KXG04GRMNWNQDDEX1S5EDA2F": {
86
- "bakedName": "ListItemLoaded",
87
- "curName": "ListItemLoaded",
88
- "id": "evt_01KXG04GRMNWNQDDEX1S5EDA2F",
89
- "kind": "event",
90
- "owner": "workspace",
91
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
92
- "renames": []
93
- },
94
- "evt_01KXG04GRMQA2Y1RDHRK3CG1R5": {
95
- "bakedName": "ITEM_CREATED",
96
- "curName": "ITEM_CREATED",
97
- "id": "evt_01KXG04GRMQA2Y1RDHRK3CG1R5",
98
- "kind": "event",
99
- "owner": "workspace",
100
- "parent": "trt_01KXG04GRMPQ2950NQGRW3NWJZ",
101
- "renames": []
102
- },
103
- "evt_01KXG04GRMTA8SW99YMBCGA1VM": {
104
- "bakedName": "DO_UPDATE",
105
- "curName": "DO_UPDATE",
106
- "id": "evt_01KXG04GRMTA8SW99YMBCGA1VM",
107
- "kind": "event",
108
- "owner": "workspace",
109
- "parent": "trt_01KXG04GRMPQ2950NQGRW3NWJZ",
110
- "renames": []
111
- },
112
- "evt_01KXG04GRMTCDJ94FS3AXEZ45Z": {
113
- "bakedName": "INIT",
114
- "curName": "INIT",
115
- "id": "evt_01KXG04GRMTCDJ94FS3AXEZ45Z",
116
- "kind": "event",
117
- "owner": "workspace",
118
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
119
- "renames": []
120
- },
121
- "evt_01KXG04GRMWW5X0FMZ8QB3J2FJ": {
122
- "bakedName": "EDIT",
123
- "curName": "EDIT",
124
- "id": "evt_01KXG04GRMWW5X0FMZ8QB3J2FJ",
125
- "kind": "event",
126
- "owner": "workspace",
127
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
128
- "renames": []
129
- },
130
- "evt_01KYXKHAR210J771VGPVXZVQF9": {
131
- "bakedName": "RETRY",
132
- "curName": "RETRY",
133
- "id": "evt_01KYXKHAR210J771VGPVXZVQF9",
134
- "kind": "event",
135
- "owner": "workspace",
136
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
137
- "renames": []
138
- },
139
- "evt_01M11H5NGB5118T8DNXTX8AQAS": {
140
- "bakedName": "REFETCH_PAGE",
141
- "curName": "REFETCH_PAGE",
142
- "id": "evt_01M11H5NGB5118T8DNXTX8AQAS",
143
- "kind": "event",
144
- "owner": "workspace",
145
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
146
- "renames": []
147
- },
148
- "evt_01M11H5NGBD1AW48VWAQRK1CXS": {
149
- "bakedName": "REFETCH_QUERY",
150
- "curName": "REFETCH_QUERY",
151
- "id": "evt_01M11H5NGBD1AW48VWAQRK1CXS",
152
- "kind": "event",
153
- "owner": "workspace",
154
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
155
- "renames": []
156
- },
157
- "evt_01M11H5NGBW953ZPSZR6G9G59R": {
158
- "bakedName": "REFETCH_FILTER",
159
- "curName": "REFETCH_FILTER",
160
- "id": "evt_01M11H5NGBW953ZPSZR6G9G59R",
161
- "kind": "event",
162
- "owner": "workspace",
163
- "parent": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
164
- "renames": []
165
- },
166
- "orb_01KXG04GRMFV2N5D00GQN2CRT6": {
167
- "bakedName": "ListItemOrbital",
168
- "curName": "ListItemOrbital",
169
- "id": "orb_01KXG04GRMFV2N5D00GQN2CRT6",
170
- "kind": "orbital",
171
- "owner": "workspace",
172
- "renames": []
173
- },
174
- "pag_01KXG04GRMCEJP32A6KRQESBQ6": {
175
- "bakedName": "ListItemPage",
176
- "curName": "ListItemPage",
177
- "id": "pag_01KXG04GRMCEJP32A6KRQESBQ6",
178
- "kind": "page",
179
- "owner": "workspace",
180
- "renames": []
181
- },
182
- "trt_01KXG04GRMJ7J1JZZS36V7QP45": {
183
- "bakedName": "ListItemBrowse",
184
- "curName": "ListItemBrowse",
185
- "id": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
186
- "kind": "trait",
187
- "owner": "workspace",
188
- "renames": []
189
- },
190
- "trt_01KXG04GRMPQ2950NQGRW3NWJZ": {
191
- "bakedName": "ListItemPersistor",
192
- "curName": "ListItemPersistor",
193
- "id": "trt_01KXG04GRMPQ2950NQGRW3NWJZ",
194
- "kind": "trait",
195
- "owner": "workspace",
196
- "renames": []
197
- },
198
- "trt_01KXZ44YCW5G9DNC2ZXZBGZNFM": {
199
- "bakedName": "ListItemEdit",
200
- "curName": "ListItemEdit",
201
- "id": "trt_01KXZ44YCW5G9DNC2ZXZBGZNFM",
202
- "kind": "trait",
203
- "owner": "workspace",
204
- "renames": []
205
- },
206
- "trt_01KXZ44YCW87W8423TFY0S4NSP": {
207
- "bakedName": "ListItemDelete",
208
- "curName": "ListItemDelete",
209
- "id": "trt_01KXZ44YCW87W8423TFY0S4NSP",
210
- "kind": "trait",
211
- "owner": "workspace",
212
- "renames": []
213
- },
214
- "trt_01KXZ44YCWF6ZE27401K4N5CX6": {
215
- "bakedName": "ListItemCreate",
216
- "curName": "ListItemCreate",
217
- "id": "trt_01KXZ44YCWF6ZE27401K4N5CX6",
218
- "kind": "trait",
219
- "owner": "workspace",
220
- "renames": []
221
- },
222
- "trt_01M3SFBP29125B6XWS09H2479Q": {
223
- "bakedName": "ListItemCreateButton",
224
- "curName": "ListItemCreateButton",
225
- "id": "trt_01M3SFBP29125B6XWS09H2479Q",
226
- "kind": "trait",
227
- "owner": "workspace",
228
- "renames": []
229
- },
230
- "trt_01M3SFBP2919B7ZZAVP0866HMK": {
231
- "bakedName": "ListItemCreateGate",
232
- "curName": "ListItemCreateGate",
233
- "id": "trt_01M3SFBP2919B7ZZAVP0866HMK",
234
- "kind": "trait",
235
- "owner": "workspace",
236
- "renames": []
237
- }
238
- },
239
- "schemaVersion": 1
240
- },
241
- "name": "std-list",
242
- "orbitals": [
243
- {
244
- "entity": {
245
- "collection": "listitems",
246
- "fields": [
247
- {
248
- "name": "id",
249
- "required": true,
250
- "type": "string"
251
- },
252
- {
253
- "description": "The text displayed for this list item.",
254
- "name": "name",
255
- "required": true,
256
- "synonyms": "label, text, display",
257
- "type": "string"
258
- },
259
- {
260
- "description": "A brief explanation of the list item's content.",
261
- "name": "description",
262
- "synonyms": "text, details, notes, explanation",
263
- "type": "string"
264
- },
265
- {
266
- "default": "active",
267
- "description": "Current operational state of the item.",
268
- "name": "status",
269
- "synonyms": "state, condition, flag",
270
- "type": "string",
271
- "values": [
272
- "active",
273
- "inactive",
274
- "pending"
275
- ]
276
- },
277
- {
278
- "name": "createdAt",
279
- "type": "string"
280
- },
281
- {
282
- "default": "",
283
- "description": "Identifier for a related, pending item.",
284
- "name": "pendingId",
285
- "synonyms": "reference, relatedId, linkId",
286
- "type": "string"
287
- }
288
- ],
289
- "id": "ent_01KXG04GRM21DW0QXZ09W7KPP3",
290
- "name": "ListItem",
291
- "persistence": "persistent"
292
- },
293
- "id": "orb_01KXG04GRMFV2N5D00GQN2CRT6",
294
- "name": "ListItemOrbital",
295
- "pages": [
296
- {
297
- "id": "pag_01KXG04GRMCEJP32A6KRQESBQ6",
298
- "name": "ListItemPage",
299
- "path": "/listitems",
300
- "traits": [
301
- {
302
- "ref": "ListItemBrowse",
303
- "refId": "trt_01KXG04GRMJ7J1JZZS36V7QP45"
304
- },
305
- {
306
- "ref": "ListItemCreate",
307
- "refId": "trt_01KXZ44YCWF6ZE27401K4N5CX6"
308
- },
309
- {
310
- "ref": "ListItemEdit",
311
- "refId": "trt_01KXZ44YCW5G9DNC2ZXZBGZNFM"
312
- },
313
- {
314
- "ref": "ListItemDelete",
315
- "refId": "trt_01KXZ44YCW87W8423TFY0S4NSP"
316
- },
317
- {
318
- "ref": "ListItemPersistor",
319
- "refId": "trt_01KXG04GRMPQ2950NQGRW3NWJZ"
320
- }
321
- ]
322
- }
323
- ],
324
- "traits": [
325
- {
326
- "category": "interaction",
327
- "config": {
328
- "bodySearch": {
329
- "default": false,
330
- "description": "Embeds a search box above the grid. Set true only when the page has no other search affordance (e.g. no page-level std-search), so the surface shows one search box instead of two. False is the default — this atom has never had a search box (0 consumers today).",
331
- "label": "Show the list's own search box?",
332
- "synonyms": "inline search, list search, built-in search, show search",
333
- "tier": "presentation",
334
- "type": "boolean"
335
- },
336
- "createRoles": {
337
- "default": [],
338
- "description": "Roles (matched against viewerRole) that see the Create button. Empty = everyone.",
339
- "items": {
340
- "type": "string"
341
- },
342
- "label": "Roles that can create",
343
- "tier": "policy",
344
- "type": "[string]"
345
- },
346
- "displayPageSize": {
347
- "default": 20.0,
348
- "description": "Rows visible per page before the data-grid's own pagination control appears — 20 matches the CRUD-list density sweet spot (Miller's law, 10-25 rows).",
349
- "label": "How many rows to show at once?",
350
- "synonyms": "visible rows, items per page, display limit, show per page",
351
- "tier": "presentation",
352
- "type": "number"
353
- },
354
- "filterBarLook": {
355
- "default": "toolbar",
356
- "description": "Visual treatment for the embedded filter bar, mirroring std-filter's own enum. Only applies when `filters` is non-empty.",
357
- "label": "Filter bar look",
358
- "synonyms": "filter bar style, facet style, chips, pills",
359
- "tier": "presentation",
360
- "type": "string",
361
- "values": [
362
- "toolbar",
363
- "chips",
364
- "pills",
365
- "popover-trigger",
366
- "inline-column-header"
367
- ]
368
- },
369
- "filters": {
370
- "default": [],
371
- "description": "Dropdown filter facets by field, rendered as an embedded filter bar above the rows; each selection fires REFETCH_FILTER on this trait. Empty (the default) = no filter bar, the right setting whenever the page already composes std-filter beside this list and routes XFilter.FILTER -> REFETCH_FILTER — that is the wired owner and remains the primary path. Use this knob only for a standalone list with no page-level filter affordance.",
372
- "items": {
373
- "properties": {
374
- "field": {
375
- "name": "field",
376
- "required": true,
377
- "type": "string"
378
- },
379
- "label": {
380
- "name": "label",
381
- "required": false,
382
- "type": "string"
383
- },
384
- "options": {
385
- "items": {
386
- "type": "string"
387
- },
388
- "name": "options",
389
- "required": false,
390
- "type": "array"
391
- }
392
- },
393
- "type": "object"
394
- },
395
- "label": "Which filters should appear above the grid?",
396
- "synonyms": "filter bar, faceted filters, field filters, dropdowns",
397
- "tier": "presentation",
398
- "type": "[FilterSpec]"
399
- },
400
- "itemActions": {
401
- "default": [
402
- {
403
- "event": "EDIT",
404
- "label": "Edit",
405
- "variant": "ghost"
406
- },
407
- {
408
- "event": "DELETE",
409
- "label": "Delete",
410
- "variant": "danger"
411
- }
412
- ],
413
- "description": "Actions offered on each row; give an item `roles` to show it only to those viewer roles.",
414
- "items": {
415
- "properties": {
416
- "event": {
417
- "name": "event",
418
- "required": false,
419
- "type": "event"
420
- },
421
- "label": {
422
- "name": "label",
423
- "required": true,
424
- "type": "string"
425
- },
426
- "roles": {
427
- "items": {
428
- "type": "string"
429
- },
430
- "name": "roles",
431
- "required": false,
432
- "type": "array"
433
- },
434
- "variant": {
435
- "name": "variant",
436
- "required": false,
437
- "type": "string"
438
- },
439
- "when": {
440
- "name": "when",
441
- "required": false,
442
- "type": "object"
443
- }
444
- },
445
- "type": "object"
446
- },
447
- "label": "Row actions",
448
- "tier": "presentation",
449
- "type": "[ItemAction]"
450
- },
451
- "itemClickEvent": {
452
- "default": "EDIT",
453
- "description": "Row-click channel; empty = rows are not clickable.",
454
- "label": "Which event does clicking a row fire?",
455
- "refId": "evt_01KXG04GRMWW5X0FMZ8QB3J2FJ",
456
- "synonyms": "row click event, item click, open event",
457
- "tier": "presentation",
458
- "type": "event"
459
- },
460
- "pageSize": {
461
- "default": 20.0,
462
- "description": "Records fetched from the server per REFETCH_PAGE request. The initial load and search/filter refetches remain unpaginated (load everything that matches) unless a consumer wires REFETCH_PAGE, so the default list surface is unchanged.",
463
- "label": "How many rows per page when paging?",
464
- "synonyms": "fetch limit, records per page, page limit",
465
- "tier": "presentation",
466
- "type": "number"
467
- },
468
- "searchField": {
469
- "default": "name",
470
- "description": "Name the field on this entity the search box's str/includes filter matches against. Declared, never inferred: an entity with no `name` column must set this to a real field (e.g. title, label) or the search box can never match a row.",
471
- "label": "Which column does the search box match against?",
472
- "synonyms": "search column, search on field, match field, search key",
473
- "tier": "policy",
474
- "type": "string"
475
- },
476
- "searchPlaceholder": {
477
- "default": "Search…",
478
- "description": "Hint text inside the list search box.",
479
- "label": "Search box placeholder text",
480
- "synonyms": "search hint, placeholder, search box text",
481
- "tier": "presentation",
482
- "type": "string"
483
- },
484
- "viewerRole": {
485
- "default": "",
486
- "description": "The signed-in viewer's role that each action's `roles` is checked against. Bind it explicitly at the call site (e.g. `viewerRole: @user.role`) in an app whose identity carries a role; left empty, only actions with no `roles` show.",
487
- "label": "Viewer's role",
488
- "tier": "policy",
489
- "type": "string"
490
- }
491
- },
492
- "effectRow": [
493
- {
494
- "kind": "fetch",
495
- "resource": "ListItem"
496
- },
497
- {
498
- "kind": "render-ui",
499
- "resource": "main"
500
- },
501
- {
502
- "kind": "render-ui",
503
- "resource": "toast"
504
- }
505
- ],
506
- "emits": [
507
- {
508
- "description": "Signals a new item has been successfully created.",
509
- "event": "CREATE",
510
- "eventId": "evt_01KXG04GRM98X7EWV7WPJDZ0TB",
511
- "synonyms": "added, new, added, insert",
512
- "tier": "domain"
513
- },
514
- {
515
- "event": "EDIT",
516
- "eventId": "evt_01KXG04GRMWW5X0FMZ8QB3J2FJ",
517
- "payloadSchema": [
518
- {
519
- "name": "id",
520
- "required": true,
521
- "type": "string"
522
- },
523
- {
524
- "name": "row",
525
- "properties": [
526
- {
527
- "name": "id",
528
- "required": true,
529
- "type": "string"
530
- },
531
- {
532
- "name": "name",
533
- "required": true,
534
- "type": "string"
535
- },
536
- {
537
- "name": "description",
538
- "type": "string"
539
- },
540
- {
541
- "name": "status",
542
- "type": "string"
543
- },
544
- {
545
- "name": "createdAt",
546
- "type": "string"
547
- }
548
- ],
549
- "type": "object"
550
- }
551
- ]
552
- },
553
- {
554
- "event": "DELETE",
555
- "eventId": "evt_01KXG04GRMBG4KHX9P46NPJPM4",
556
- "payloadSchema": [
557
- {
558
- "name": "id",
559
- "required": true,
560
- "type": "string"
561
- },
562
- {
563
- "name": "row",
564
- "properties": [
565
- {
566
- "name": "id",
567
- "required": true,
568
- "type": "string"
569
- },
570
- {
571
- "name": "name",
572
- "required": true,
573
- "type": "string"
574
- },
575
- {
576
- "name": "description",
577
- "type": "string"
578
- },
579
- {
580
- "name": "status",
581
- "type": "string"
582
- },
583
- {
584
- "name": "createdAt",
585
- "type": "string"
586
- }
587
- ],
588
- "type": "object"
589
- }
590
- ]
591
- },
592
- {
593
- "description": "Signals a list item has been successfully loaded.",
594
- "event": "ListItemLoaded",
595
- "eventId": "evt_01KXG04GRMNWNQDDEX1S5EDA2F",
596
- "payloadSchema": [
597
- {
598
- "entity": "ListItem",
599
- "name": "data",
600
- "properties": [
601
- {
602
- "name": "id",
603
- "required": true,
604
- "type": "string"
605
- },
606
- {
607
- "name": "name",
608
- "required": true,
609
- "type": "string"
610
- },
611
- {
612
- "name": "description",
613
- "type": "string"
614
- },
615
- {
616
- "name": "status",
617
- "type": "string"
618
- },
619
- {
620
- "name": "createdAt",
621
- "type": "string"
622
- },
623
- {
624
- "name": "pendingId",
625
- "type": "string"
626
- }
627
- ],
628
- "type": "[object]"
629
- }
630
- ],
631
- "scope": "internal",
632
- "synonyms": "loaded, fetched, retrieved",
633
- "tier": "domain"
634
- },
635
- {
636
- "description": "Indicates a failure to load a list item.",
637
- "event": "ListItemLoadFailed",
638
- "eventId": "evt_01KXG04GRMNR4HJV0ME35VBPNC",
639
- "payloadSchema": [
640
- {
641
- "name": "error",
642
- "required": true,
643
- "type": "string"
644
- },
645
- {
646
- "name": "code",
647
- "type": "string"
648
- }
649
- ],
650
- "scope": "internal",
651
- "synonyms": "error, failure, problem, unsuccessful",
652
- "tier": "internal"
653
- }
654
- ],
655
- "entityContract": {
656
- "provides": [],
657
- "requires": []
658
- },
659
- "entityRebindable": true,
660
- "entityRefIds": {
661
- "ListItem": "ent_01KXG04GRM21DW0QXZ09W7KPP3"
662
- },
663
- "id": "trt_01KXG04GRMJ7J1JZZS36V7QP45",
664
- "linkedEntity": "ListItem",
665
- "linkedEntityId": "ent_01KXG04GRM21DW0QXZ09W7KPP3",
666
- "listens": [
667
- {
668
- "event": "ITEM_CREATED",
669
- "eventId": "evt_01KXG04GRMQA2Y1RDHRK3CG1R5",
670
- "source": {
671
- "kind": "trait",
672
- "trait": "ListItemPersistor",
673
- "traitId": "trt_01KXG04GRMPQ2950NQGRW3NWJZ"
674
- },
675
- "triggers": "INIT",
676
- "triggersId": "evt_01KXG04GRMTCDJ94FS3AXEZ45Z"
677
- },
678
- {
679
- "event": "ITEM_UPDATED",
680
- "eventId": "evt_01KXG04GRMAJN1SEMTAB4H1ZDR",
681
- "source": {
682
- "kind": "trait",
683
- "trait": "ListItemPersistor",
684
- "traitId": "trt_01KXG04GRMPQ2950NQGRW3NWJZ"
685
- },
686
- "triggers": "INIT",
687
- "triggersId": "evt_01KXG04GRMTCDJ94FS3AXEZ45Z"
688
- },
689
- {
690
- "event": "ITEM_DELETED",
691
- "eventId": "evt_01KXG04GRMGHG0EZZ2BDQN17NY",
692
- "source": {
693
- "kind": "trait",
694
- "trait": "ListItemPersistor",
695
- "traitId": "trt_01KXG04GRMPQ2950NQGRW3NWJZ"
696
- },
697
- "triggers": "INIT",
698
- "triggersId": "evt_01KXG04GRMTCDJ94FS3AXEZ45Z"
699
- }
700
- ],
701
- "name": "ListItemBrowse",
702
- "scope": "collection",
703
- "stateMachine": {
704
- "events": [
705
- {
706
- "id": "evt_01KXG04GRMTCDJ94FS3AXEZ45Z",
707
- "key": "INIT",
708
- "name": "Initialize"
709
- },
710
- {
711
- "description": "Signals a list item has been successfully loaded.",
712
- "id": "evt_01KXG04GRMNWNQDDEX1S5EDA2F",
713
- "key": "ListItemLoaded",
714
- "name": "ListItem loaded",
715
- "payloadSchema": [
716
- {
717
- "entity": "ListItem",
718
- "name": "data",
719
- "properties": [
720
- {
721
- "name": "id",
722
- "required": true,
723
- "type": "string"
724
- },
725
- {
726
- "name": "name",
727
- "required": true,
728
- "type": "string"
729
- },
730
- {
731
- "name": "description",
732
- "type": "string"
733
- },
734
- {
735
- "name": "status",
736
- "type": "string"
737
- },
738
- {
739
- "name": "createdAt",
740
- "type": "string"
741
- },
742
- {
743
- "name": "pendingId",
744
- "type": "string"
745
- }
746
- ],
747
- "type": "[object]"
748
- }
749
- ],
750
- "synonyms": "loaded, fetched, retrieved",
751
- "tier": "domain"
752
- },
753
- {
754
- "description": "Indicates a failure to load a list item.",
755
- "id": "evt_01KXG04GRMNR4HJV0ME35VBPNC",
756
- "key": "ListItemLoadFailed",
757
- "name": "ListItem load failed",
758
- "payloadSchema": [
759
- {
760
- "name": "error",
761
- "required": true,
762
- "type": "string"
763
- },
764
- {
765
- "name": "code",
766
- "type": "string"
767
- }
768
- ],
769
- "synonyms": "error, failure, problem, unsuccessful",
770
- "tier": "internal"
771
- },
772
- {
773
- "description": "Triggers a list refresh based on the current search term.",
774
- "id": "evt_01M11H5NGBD1AW48VWAQRK1CXS",
775
- "key": "REFETCH_QUERY",
776
- "name": "Refetch Query",
777
- "payloadSchema": [
778
- {
779
- "name": "searchTerm",
780
- "required": true,
781
- "type": "string"
782
- }
783
- ],
784
- "synonyms": "refresh, reload, update, re-query, search",
785
- "tier": "domain"
786
- },
787
- {
788
- "description": "Triggers a list refresh based on current filter criteria.",
789
- "id": "evt_01M11H5NGBW953ZPSZR6G9G59R",
790
- "key": "REFETCH_FILTER",
791
- "name": "Refetch Filter",
792
- "payloadSchema": [
793
- {
794
- "name": "entity",
795
- "required": true,
796
- "type": "string"
797
- },
798
- {
799
- "name": "field",
800
- "required": true,
801
- "type": "string"
802
- },
803
- {
804
- "name": "value",
805
- "required": true,
806
- "type": "string"
807
- },
808
- {
809
- "name": "query",
810
- "type": "string"
811
- }
812
- ],
813
- "synonyms": "refresh, filter, update, reload",
814
- "tier": "domain"
815
- },
816
- {
817
- "description": "Triggers a list page refresh.",
818
- "id": "evt_01M11H5NGB5118T8DNXTX8AQAS",
819
- "key": "REFETCH_PAGE",
820
- "name": "Refetch Page",
821
- "payloadSchema": [
822
- {
823
- "name": "page",
824
- "required": true,
825
- "type": "number"
826
- }
827
- ],
828
- "synonyms": "reload, refresh, update, paginate",
829
- "tier": "domain"
830
- },
831
- {
832
- "id": "evt_01KYXKHAR210J771VGPVXZVQF9",
833
- "key": "RETRY",
834
- "name": "Retry"
835
- },
836
- {
837
- "description": "Signals a new item has been successfully created.",
838
- "id": "evt_01KXG04GRM98X7EWV7WPJDZ0TB",
839
- "key": "CREATE",
840
- "name": "Create",
841
- "synonyms": "added, new, added, insert",
842
- "tier": "domain"
843
- },
844
- {
845
- "id": "evt_01KXG04GRMWW5X0FMZ8QB3J2FJ",
846
- "key": "EDIT",
847
- "name": "Edit",
848
- "payloadSchema": [
849
- {
850
- "name": "id",
851
- "required": true,
852
- "type": "string"
853
- },
854
- {
855
- "name": "row",
856
- "properties": [
857
- {
858
- "name": "id",
859
- "required": true,
860
- "type": "string"
861
- },
862
- {
863
- "name": "name",
864
- "required": true,
865
- "type": "string"
866
- },
867
- {
868
- "name": "description",
869
- "type": "string"
870
- },
871
- {
872
- "name": "status",
873
- "type": "string"
874
- },
875
- {
876
- "name": "createdAt",
877
- "type": "string"
878
- }
879
- ],
880
- "type": "object"
881
- }
882
- ]
883
- },
884
- {
885
- "id": "evt_01KXG04GRMBG4KHX9P46NPJPM4",
886
- "key": "DELETE",
887
- "name": "Delete",
888
- "payloadSchema": [
889
- {
890
- "name": "id",
891
- "required": true,
892
- "type": "string"
893
- },
894
- {
895
- "name": "row",
896
- "properties": [
897
- {
898
- "name": "id",
899
- "required": true,
900
- "type": "string"
901
- },
902
- {
903
- "name": "name",
904
- "required": true,
905
- "type": "string"
906
- },
907
- {
908
- "name": "description",
909
- "type": "string"
910
- },
911
- {
912
- "name": "status",
913
- "type": "string"
914
- },
915
- {
916
- "name": "createdAt",
917
- "type": "string"
918
- }
919
- ],
920
- "type": "object"
921
- }
922
- ]
923
- }
924
- ],
925
- "states": [
926
- {
927
- "isInitial": true,
928
- "name": "loading"
929
- },
930
- {
931
- "name": "browsing"
932
- },
933
- {
934
- "name": "error"
935
- }
936
- ],
937
- "transitions": [
938
- {
939
- "effects": [
940
- [
941
- "fetch",
942
- "ListItem",
943
- {
944
- "emit": {
945
- "failure": "ListItemLoadFailed",
946
- "success": "ListItemLoaded"
947
- }
948
- }
949
- ],
950
- [
951
- "render-ui",
952
- "main",
953
- {
954
- "children": [
955
- {
956
- "type": "skeleton",
957
- "variant": "header"
958
- },
959
- {
960
- "rows": 6.0,
961
- "type": "skeleton",
962
- "variant": "list"
963
- }
964
- ],
965
- "direction": "vertical",
966
- "gap": "lg",
967
- "type": "stack"
968
- }
969
- ]
970
- ],
971
- "event": "INIT",
972
- "eventId": "evt_01KXG04GRMTCDJ94FS3AXEZ45Z",
973
- "from": "loading",
974
- "to": "loading"
975
- },
976
- {
977
- "effects": [
978
- [
979
- "render-ui",
980
- "main",
981
- {
982
- "children": [
983
- {
984
- "children": [
985
- {
986
- "children": [
987
- {
988
- "name": "list",
989
- "size": "xl",
990
- "type": "icon"
991
- },
992
- {
993
- "content": "ListItems",
994
- "type": "typography",
995
- "variant": "h2"
996
- }
997
- ],
998
- "direction": "horizontal",
999
- "gap": "md",
1000
- "type": "stack"
1001
- },
1002
- "@trait.ListItemCreateGate"
1003
- ],
1004
- "direction": "horizontal",
1005
- "gap": "md",
1006
- "justify": "between",
1007
- "type": "stack"
1008
- },
1009
- {
1010
- "type": "divider"
1011
- },
1012
- [
1013
- "if",
1014
- "@config.bodySearch",
1015
- {
1016
- "children": [
1017
- {
1018
- "className": "w-full max-w-md",
1019
- "clearable": true,
1020
- "event": "REFETCH_QUERY",
1021
- "placeholder": "@config.searchPlaceholder",
1022
- "type": "search-input"
1023
- }
1024
- ],
1025
- "direction": "horizontal",
1026
- "gap": "sm",
1027
- "type": "stack"
1028
- },
1029
- {
1030
- "children": [],
1031
- "gap": "none",
1032
- "type": "stack"
1033
- }
1034
- ],
1035
- [
1036
- "if",
1037
- [
1038
- ">",
1039
- [
1040
- "array/len",
1041
- "@config.filters"
1042
- ],
1043
- 0.0
1044
- ],
1045
- {
1046
- "children": [
1047
- {
1048
- "entity": "ListItem",
1049
- "event": "REFETCH_FILTER",
1050
- "filters": "@config.filters",
1051
- "look": "@config.filterBarLook",
1052
- "type": "filter-group"
1053
- }
1054
- ],
1055
- "direction": "horizontal",
1056
- "gap": "sm",
1057
- "type": "stack"
1058
- },
1059
- {
1060
- "children": [],
1061
- "gap": "none",
1062
- "type": "stack"
1063
- }
1064
- ],
1065
- {
1066
- "entity": "@payload.data",
1067
- "fields": [
1068
- {
1069
- "icon": "list",
1070
- "label": "Name",
1071
- "name": "name",
1072
- "variant": "h4"
1073
- },
1074
- {
1075
- "label": "Description",
1076
- "name": "description",
1077
- "variant": "caption"
1078
- },
1079
- {
1080
- "label": "Status",
1081
- "name": "status",
1082
- "variant": "badge"
1083
- }
1084
- ],
1085
- "itemActions": [
1086
- "array/filter",
1087
- "@config.itemActions",
1088
- [
1089
- "fn",
1090
- "action",
1091
- [
1092
- "or",
1093
- [
1094
- "=",
1095
- [
1096
- "array/len",
1097
- [
1098
- "object/get",
1099
- "@action",
1100
- "roles",
1101
- []
1102
- ]
1103
- ],
1104
- 0.0
1105
- ],
1106
- [
1107
- "array/includes",
1108
- [
1109
- "object/get",
1110
- "@action",
1111
- "roles",
1112
- []
1113
- ],
1114
- "@config.viewerRole"
1115
- ]
1116
- ]
1117
- ]
1118
- ],
1119
- "itemClickEvent": "@config.itemClickEvent",
1120
- "pageSize": "@config.displayPageSize",
1121
- "type": "data-grid"
1122
- }
1123
- ],
1124
- "className": "max-w-5xl mx-auto w-full",
1125
- "direction": "vertical",
1126
- "gap": "lg",
1127
- "type": "stack"
1128
- }
1129
- ]
1130
- ],
1131
- "event": "ListItemLoaded",
1132
- "eventId": "evt_01KXG04GRMNWNQDDEX1S5EDA2F",
1133
- "from": "loading",
1134
- "to": "browsing"
1135
- },
1136
- {
1137
- "effects": [
1138
- [
1139
- "render-ui",
1140
- "main",
1141
- {
1142
- "align": "center",
1143
- "children": [
1144
- {
1145
- "color": "error",
1146
- "name": "alert-triangle",
1147
- "size": "lg",
1148
- "type": "icon"
1149
- },
1150
- {
1151
- "content": "Failed to load list",
1152
- "type": "typography",
1153
- "variant": "h3"
1154
- },
1155
- {
1156
- "color": "muted",
1157
- "content": "@payload.error",
1158
- "type": "typography",
1159
- "variant": "body"
1160
- },
1161
- {
1162
- "action": "RETRY",
1163
- "icon": "rotate-ccw",
1164
- "label": "Retry",
1165
- "type": "button",
1166
- "variant": "primary"
1167
- }
1168
- ],
1169
- "className": "py-12",
1170
- "direction": "vertical",
1171
- "gap": "md",
1172
- "type": "stack"
1173
- }
1174
- ]
1175
- ],
1176
- "event": "ListItemLoadFailed",
1177
- "eventId": "evt_01KXG04GRMNR4HJV0ME35VBPNC",
1178
- "from": "loading",
1179
- "to": "error"
1180
- },
1181
- {
1182
- "effects": [
1183
- [
1184
- "fetch",
1185
- "ListItem",
1186
- {
1187
- "emit": {
1188
- "failure": "ListItemLoadFailed",
1189
- "success": "ListItemLoaded"
1190
- }
1191
- }
1192
- ],
1193
- [
1194
- "render-ui",
1195
- "main",
1196
- {
1197
- "children": [
1198
- {
1199
- "type": "skeleton",
1200
- "variant": "header"
1201
- },
1202
- {
1203
- "rows": 6.0,
1204
- "type": "skeleton",
1205
- "variant": "list"
1206
- }
1207
- ],
1208
- "direction": "vertical",
1209
- "gap": "lg",
1210
- "type": "stack"
1211
- }
1212
- ]
1213
- ],
1214
- "event": "INIT",
1215
- "eventId": "evt_01KXG04GRMTCDJ94FS3AXEZ45Z",
1216
- "from": "browsing",
1217
- "to": "loading"
1218
- },
1219
- {
1220
- "effects": [
1221
- [
1222
- "fetch",
1223
- "ListItem",
1224
- {
1225
- "emit": {
1226
- "failure": "ListItemLoadFailed",
1227
- "success": "ListItemLoaded"
1228
- },
1229
- "filter": [
1230
- "or",
1231
- [
1232
- "=",
1233
- "@payload.searchTerm",
1234
- ""
1235
- ],
1236
- [
1237
- "str/includes",
1238
- [
1239
- "object/get",
1240
- "@entity",
1241
- "@config.searchField"
1242
- ],
1243
- "@payload.searchTerm"
1244
- ]
1245
- ]
1246
- }
1247
- ]
1248
- ],
1249
- "event": "REFETCH_QUERY",
1250
- "eventId": "evt_01M11H5NGBD1AW48VWAQRK1CXS",
1251
- "from": "browsing",
1252
- "to": "browsing"
1253
- },
1254
- {
1255
- "effects": [
1256
- [
1257
- "fetch",
1258
- "ListItem",
1259
- {
1260
- "emit": {
1261
- "failure": "ListItemLoadFailed",
1262
- "success": "ListItemLoaded"
1263
- },
1264
- "filter": [
1265
- "or",
1266
- [
1267
- "=",
1268
- "@payload.value",
1269
- ""
1270
- ],
1271
- [
1272
- "=",
1273
- [
1274
- "object/get",
1275
- "@entity",
1276
- "@payload.field"
1277
- ],
1278
- "@payload.value"
1279
- ]
1280
- ]
1281
- }
1282
- ]
1283
- ],
1284
- "event": "REFETCH_FILTER",
1285
- "eventId": "evt_01M11H5NGBW953ZPSZR6G9G59R",
1286
- "from": "browsing",
1287
- "to": "browsing"
1288
- },
1289
- {
1290
- "effects": [
1291
- [
1292
- "fetch",
1293
- "ListItem",
1294
- {
1295
- "emit": {
1296
- "failure": "ListItemLoadFailed",
1297
- "success": "ListItemLoaded"
1298
- },
1299
- "limit": "@config.pageSize",
1300
- "offset": [
1301
- "*",
1302
- [
1303
- "-",
1304
- "@payload.page",
1305
- 1.0
1306
- ],
1307
- "@config.pageSize"
1308
- ]
1309
- }
1310
- ]
1311
- ],
1312
- "event": "REFETCH_PAGE",
1313
- "eventId": "evt_01M11H5NGB5118T8DNXTX8AQAS",
1314
- "from": "browsing",
1315
- "to": "browsing"
1316
- },
1317
- {
1318
- "effects": [
1319
- [
1320
- "render-ui",
1321
- "toast",
1322
- {
1323
- "dismissible": true,
1324
- "message": [
1325
- "str/concat",
1326
- "Couldn't refresh the list — ",
1327
- "@payload.error"
1328
- ],
1329
- "type": "alert",
1330
- "variant": "error"
1331
- }
1332
- ]
1333
- ],
1334
- "event": "ListItemLoadFailed",
1335
- "eventId": "evt_01KXG04GRMNR4HJV0ME35VBPNC",
1336
- "from": "browsing",
1337
- "to": "browsing"
1338
- },
1339
- {
1340
- "effects": [
1341
- [
1342
- "render-ui",
1343
- "main",
1344
- {
1345
- "children": [
1346
- {
1347
- "children": [
1348
- {
1349
- "children": [
1350
- {
1351
- "name": "list",
1352
- "size": "xl",
1353
- "type": "icon"
1354
- },
1355
- {
1356
- "content": "ListItems",
1357
- "type": "typography",
1358
- "variant": "h2"
1359
- }
1360
- ],
1361
- "direction": "horizontal",
1362
- "gap": "md",
1363
- "type": "stack"
1364
- },
1365
- "@trait.ListItemCreateGate"
1366
- ],
1367
- "direction": "horizontal",
1368
- "gap": "md",
1369
- "justify": "between",
1370
- "type": "stack"
1371
- },
1372
- {
1373
- "type": "divider"
1374
- },
1375
- [
1376
- "if",
1377
- "@config.bodySearch",
1378
- {
1379
- "children": [
1380
- {
1381
- "className": "w-full max-w-md",
1382
- "clearable": true,
1383
- "event": "REFETCH_QUERY",
1384
- "placeholder": "@config.searchPlaceholder",
1385
- "type": "search-input"
1386
- }
1387
- ],
1388
- "direction": "horizontal",
1389
- "gap": "sm",
1390
- "type": "stack"
1391
- },
1392
- {
1393
- "children": [],
1394
- "gap": "none",
1395
- "type": "stack"
1396
- }
1397
- ],
1398
- [
1399
- "if",
1400
- [
1401
- ">",
1402
- [
1403
- "array/len",
1404
- "@config.filters"
1405
- ],
1406
- 0.0
1407
- ],
1408
- {
1409
- "children": [
1410
- {
1411
- "entity": "ListItem",
1412
- "event": "REFETCH_FILTER",
1413
- "filters": "@config.filters",
1414
- "look": "@config.filterBarLook",
1415
- "type": "filter-group"
1416
- }
1417
- ],
1418
- "direction": "horizontal",
1419
- "gap": "sm",
1420
- "type": "stack"
1421
- },
1422
- {
1423
- "children": [],
1424
- "gap": "none",
1425
- "type": "stack"
1426
- }
1427
- ],
1428
- {
1429
- "entity": "@payload.data",
1430
- "fields": [
1431
- {
1432
- "icon": "list",
1433
- "label": "Name",
1434
- "name": "name",
1435
- "variant": "h4"
1436
- },
1437
- {
1438
- "label": "Description",
1439
- "name": "description",
1440
- "variant": "caption"
1441
- },
1442
- {
1443
- "label": "Status",
1444
- "name": "status",
1445
- "variant": "badge"
1446
- }
1447
- ],
1448
- "itemActions": [
1449
- "array/filter",
1450
- "@config.itemActions",
1451
- [
1452
- "fn",
1453
- "action",
1454
- [
1455
- "or",
1456
- [
1457
- "=",
1458
- [
1459
- "array/len",
1460
- [
1461
- "object/get",
1462
- "@action",
1463
- "roles",
1464
- []
1465
- ]
1466
- ],
1467
- 0.0
1468
- ],
1469
- [
1470
- "array/includes",
1471
- [
1472
- "object/get",
1473
- "@action",
1474
- "roles",
1475
- []
1476
- ],
1477
- "@config.viewerRole"
1478
- ]
1479
- ]
1480
- ]
1481
- ],
1482
- "itemClickEvent": "@config.itemClickEvent",
1483
- "pageSize": "@config.displayPageSize",
1484
- "type": "data-grid"
1485
- }
1486
- ],
1487
- "className": "max-w-5xl mx-auto w-full",
1488
- "direction": "vertical",
1489
- "gap": "lg",
1490
- "type": "stack"
1491
- }
1492
- ]
1493
- ],
1494
- "event": "ListItemLoaded",
1495
- "eventId": "evt_01KXG04GRMNWNQDDEX1S5EDA2F",
1496
- "from": "browsing",
1497
- "to": "browsing"
1498
- },
1499
- {
1500
- "effects": [
1501
- [
1502
- "fetch",
1503
- "ListItem",
1504
- {
1505
- "emit": {
1506
- "failure": "ListItemLoadFailed",
1507
- "success": "ListItemLoaded"
1508
- }
1509
- }
1510
- ],
1511
- [
1512
- "render-ui",
1513
- "main",
1514
- {
1515
- "children": [
1516
- {
1517
- "type": "skeleton",
1518
- "variant": "header"
1519
- },
1520
- {
1521
- "rows": 6.0,
1522
- "type": "skeleton",
1523
- "variant": "list"
1524
- }
1525
- ],
1526
- "direction": "vertical",
1527
- "gap": "lg",
1528
- "type": "stack"
1529
- }
1530
- ]
1531
- ],
1532
- "event": "INIT",
1533
- "eventId": "evt_01KXG04GRMTCDJ94FS3AXEZ45Z",
1534
- "from": "error",
1535
- "to": "loading"
1536
- },
1537
- {
1538
- "effects": [
1539
- [
1540
- "fetch",
1541
- "ListItem",
1542
- {
1543
- "emit": {
1544
- "failure": "ListItemLoadFailed",
1545
- "success": "ListItemLoaded"
1546
- }
1547
- }
1548
- ],
1549
- [
1550
- "render-ui",
1551
- "main",
1552
- {
1553
- "children": [
1554
- {
1555
- "type": "skeleton",
1556
- "variant": "header"
1557
- },
1558
- {
1559
- "rows": 6.0,
1560
- "type": "skeleton",
1561
- "variant": "list"
1562
- }
1563
- ],
1564
- "direction": "vertical",
1565
- "gap": "lg",
1566
- "type": "stack"
1567
- }
1568
- ]
1569
- ],
1570
- "event": "RETRY",
1571
- "eventId": "evt_01KYXKHAR210J771VGPVXZVQF9",
1572
- "from": "error",
1573
- "to": "loading"
1574
- }
1575
- ]
1576
- },
1577
- "traitEmbedIds": {
1578
- "ListItemCreateGate": "trt_01M3SFBP2919B7ZZAVP0866HMK"
1579
- }
1580
- },
1581
- {
1582
- "config": {
1583
- "action": {
1584
- "default": "CREATE",
1585
- "type": "unknown"
1586
- },
1587
- "icon": {
1588
- "default": "plus",
1589
- "type": "unknown"
1590
- },
1591
- "label": {
1592
- "default": "Create",
1593
- "type": "unknown"
1594
- },
1595
- "variant": {
1596
- "default": "primary",
1597
- "type": "unknown"
1598
- }
1599
- },
1600
- "id": "trt_01M3SFBP29125B6XWS09H2479Q",
1601
- "name": "ListItemCreateButton",
1602
- "ref": "Button.traits.ButtonRender"
1603
- },
1604
- {
1605
- "config": {
1606
- "content": {
1607
- "default": "@trait.ListItemCreateButton",
1608
- "type": "unknown"
1609
- },
1610
- "roles": {
1611
- "default": "@config.createRoles",
1612
- "type": "unknown"
1613
- },
1614
- "viewerRole": {
1615
- "default": "@config.viewerRole",
1616
- "type": "unknown"
1617
- }
1618
- },
1619
- "id": "trt_01M3SFBP2919B7ZZAVP0866HMK",
1620
- "name": "ListItemCreateGate",
1621
- "ref": "RoleGate.traits.RoleGate"
1622
- },
1623
- {
1624
- "config": {
1625
- "fields": {
1626
- "default": [
1627
- "name",
1628
- "description",
1629
- "status"
1630
- ],
1631
- "type": "unknown"
1632
- },
1633
- "icon": {
1634
- "default": "plus-circle",
1635
- "type": "unknown"
1636
- },
1637
- "mode": {
1638
- "default": "create",
1639
- "type": "unknown"
1640
- },
1641
- "title": {
1642
- "default": "Create ListItem",
1643
- "type": "unknown"
1644
- }
1645
- },
1646
- "events": {
1647
- "OPEN": "CREATE",
1648
- "SAVE": "LIST_ITEM_CREATED"
1649
- },
1650
- "id": "trt_01KXZ44YCWF6ZE27401K4N5CX6",
1651
- "linkedEntity": "ListItem",
1652
- "linkedEntityId": "ent_01KXG04GRM21DW0QXZ09W7KPP3",
1653
- "listens": [
1654
- {
1655
- "event": "CREATE",
1656
- "source": {
1657
- "kind": "trait",
1658
- "trait": "ListItemBrowse"
1659
- },
1660
- "triggers": "CREATE"
1661
- }
1662
- ],
1663
- "name": "ListItemCreate",
1664
- "ref": "Modal.traits.ModalRecordModal"
1665
- },
1666
- {
1667
- "config": {
1668
- "fields": {
1669
- "default": [
1670
- "name",
1671
- "description",
1672
- "status"
1673
- ],
1674
- "type": "unknown"
1675
- },
1676
- "icon": {
1677
- "default": "edit",
1678
- "type": "unknown"
1679
- },
1680
- "mode": {
1681
- "default": "edit",
1682
- "type": "unknown"
1683
- },
1684
- "title": {
1685
- "default": "Edit ListItem",
1686
- "type": "unknown"
1687
- }
1688
- },
1689
- "events": {
1690
- "OPEN": "EDIT",
1691
- "SAVE": "LIST_ITEM_UPDATED"
1692
- },
1693
- "id": "trt_01KXZ44YCW5G9DNC2ZXZBGZNFM",
1694
- "linkedEntity": "ListItem",
1695
- "linkedEntityId": "ent_01KXG04GRM21DW0QXZ09W7KPP3",
1696
- "listens": [
1697
- {
1698
- "event": "EDIT",
1699
- "source": {
1700
- "kind": "trait",
1701
- "trait": "ListItemBrowse"
1702
- },
1703
- "triggers": "EDIT"
1704
- }
1705
- ],
1706
- "name": "ListItemEdit",
1707
- "ref": "Modal.traits.ModalRecordModal"
1708
- },
1709
- {
1710
- "config": {
1711
- "alertMessage": {
1712
- "default": "This action cannot be undone.",
1713
- "type": "unknown"
1714
- },
1715
- "confirmLabel": {
1716
- "default": "Delete",
1717
- "type": "unknown"
1718
- },
1719
- "icon": {
1720
- "default": "alert-triangle",
1721
- "type": "unknown"
1722
- },
1723
- "title": {
1724
- "default": "Delete ListItem",
1725
- "type": "unknown"
1726
- }
1727
- },
1728
- "events": {
1729
- "CONFIRM": "CONFIRM_DELETE",
1730
- "REQUEST": "DELETE"
1731
- },
1732
- "id": "trt_01KXZ44YCW87W8423TFY0S4NSP",
1733
- "linkedEntity": "ListItem",
1734
- "linkedEntityId": "ent_01KXG04GRM21DW0QXZ09W7KPP3",
1735
- "listens": [
1736
- {
1737
- "event": "DELETE",
1738
- "source": {
1739
- "kind": "trait",
1740
- "trait": "ListItemBrowse"
1741
- },
1742
- "triggers": "DELETE"
1743
- }
1744
- ],
1745
- "name": "ListItemDelete",
1746
- "ref": "Confirmation.traits.ConfirmActionConfirmation"
1747
- },
1748
- {
1749
- "category": "lifecycle",
1750
- "effectRow": [
1751
- {
1752
- "kind": "persist",
1753
- "resource": "ListItem"
1754
- }
1755
- ],
1756
- "emits": [
1757
- {
1758
- "description": "Signals a new item has been added to the list.",
1759
- "event": "ITEM_CREATED",
1760
- "eventId": "evt_01KXG04GRMQA2Y1RDHRK3CG1R5",
1761
- "payloadSchema": [
1762
- {
1763
- "name": "id",
1764
- "required": true,
1765
- "type": "string"
1766
- }
1767
- ],
1768
- "scope": "external",
1769
- "synonyms": "added, new, appended",
1770
- "tier": "domain"
1771
- },
1772
- {
1773
- "description": "Signals a change in an item's data.",
1774
- "event": "ITEM_UPDATED",
1775
- "eventId": "evt_01KXG04GRMAJN1SEMTAB4H1ZDR",
1776
- "payloadSchema": [
1777
- {
1778
- "name": "id",
1779
- "required": true,
1780
- "type": "string"
1781
- }
1782
- ],
1783
- "scope": "external",
1784
- "synonyms": "modified, changed, refreshed",
1785
- "tier": "presentation"
1786
- },
1787
- {
1788
- "description": "Signals that a list item has been removed.",
1789
- "event": "ITEM_DELETED",
1790
- "eventId": "evt_01KXG04GRMGHG0EZZ2BDQN17NY",
1791
- "payloadSchema": [
1792
- {
1793
- "name": "id",
1794
- "required": true,
1795
- "type": "string"
1796
- }
1797
- ],
1798
- "scope": "external",
1799
- "synonyms": "removed, discarded, purged",
1800
- "tier": "domain"
1801
- }
1802
- ],
1803
- "entityRefIds": {
1804
- "ListItem": "ent_01KXG04GRM21DW0QXZ09W7KPP3"
1805
- },
1806
- "id": "trt_01KXG04GRMPQ2950NQGRW3NWJZ",
1807
- "linkedEntity": "ListItem",
1808
- "linkedEntityId": "ent_01KXG04GRM21DW0QXZ09W7KPP3",
1809
- "listens": [
1810
- {
1811
- "event": "LIST_ITEM_CREATED",
1812
- "source": {
1813
- "kind": "trait",
1814
- "trait": "ListItemCreate",
1815
- "traitId": "trt_01KXZ44YCWF6ZE27401K4N5CX6"
1816
- },
1817
- "triggers": "DO_CREATE",
1818
- "triggersId": "evt_01KXG04GRMGN6M6TP47HW7RTNH"
1819
- },
1820
- {
1821
- "event": "LIST_ITEM_UPDATED",
1822
- "source": {
1823
- "kind": "trait",
1824
- "trait": "ListItemEdit",
1825
- "traitId": "trt_01KXZ44YCW5G9DNC2ZXZBGZNFM"
1826
- },
1827
- "triggers": "DO_UPDATE",
1828
- "triggersId": "evt_01KXG04GRMTA8SW99YMBCGA1VM"
1829
- },
1830
- {
1831
- "event": "CONFIRM_DELETE",
1832
- "source": {
1833
- "kind": "trait",
1834
- "trait": "ListItemDelete",
1835
- "traitId": "trt_01KXZ44YCW87W8423TFY0S4NSP"
1836
- },
1837
- "triggers": "DO_DELETE",
1838
- "triggersId": "evt_01KXG04GRMFADBF7N7V069FCFY"
1839
- }
1840
- ],
1841
- "name": "ListItemPersistor",
1842
- "scope": "instance",
1843
- "stateMachine": {
1844
- "events": [
1845
- {
1846
- "id": "evt_01KXG04GRMHJ0X8P7NDFZNE963",
1847
- "key": "INIT",
1848
- "name": "Initialize"
1849
- },
1850
- {
1851
- "description": "Indicates a request to create a new item.",
1852
- "id": "evt_01KXG04GRMGN6M6TP47HW7RTNH",
1853
- "key": "DO_CREATE",
1854
- "name": "Do Create",
1855
- "payloadSchema": [
1856
- {
1857
- "entity": "ListItem",
1858
- "name": "data",
1859
- "properties": [
1860
- {
1861
- "name": "id",
1862
- "required": true,
1863
- "type": "string"
1864
- },
1865
- {
1866
- "name": "name",
1867
- "required": true,
1868
- "type": "string"
1869
- },
1870
- {
1871
- "name": "description",
1872
- "type": "string"
1873
- },
1874
- {
1875
- "name": "status",
1876
- "type": "string"
1877
- },
1878
- {
1879
- "name": "createdAt",
1880
- "type": "string"
1881
- },
1882
- {
1883
- "name": "pendingId",
1884
- "type": "string"
1885
- }
1886
- ],
1887
- "required": true,
1888
- "type": "object"
1889
- }
1890
- ],
1891
- "synonyms": "add, new, insert",
1892
- "tier": "domain"
1893
- },
1894
- {
1895
- "description": "Indicates a data item has been modified.",
1896
- "id": "evt_01KXG04GRMTA8SW99YMBCGA1VM",
1897
- "key": "DO_UPDATE",
1898
- "name": "Do Update",
1899
- "payloadSchema": [
1900
- {
1901
- "entity": "ListItem",
1902
- "name": "data",
1903
- "properties": [
1904
- {
1905
- "name": "id",
1906
- "required": true,
1907
- "type": "string"
1908
- },
1909
- {
1910
- "name": "name",
1911
- "required": true,
1912
- "type": "string"
1913
- },
1914
- {
1915
- "name": "description",
1916
- "type": "string"
1917
- },
1918
- {
1919
- "name": "status",
1920
- "type": "string"
1921
- },
1922
- {
1923
- "name": "createdAt",
1924
- "type": "string"
1925
- },
1926
- {
1927
- "name": "pendingId",
1928
- "type": "string"
1929
- }
1930
- ],
1931
- "required": true,
1932
- "type": "object"
1933
- }
1934
- ],
1935
- "synonyms": "modified, changed, refreshed",
1936
- "tier": "domain"
1937
- },
1938
- {
1939
- "description": "Indicates a request to remove an item from the list.",
1940
- "id": "evt_01KXG04GRMFADBF7N7V069FCFY",
1941
- "key": "DO_DELETE",
1942
- "name": "Do Delete",
1943
- "payloadSchema": [
1944
- {
1945
- "name": "id",
1946
- "required": true,
1947
- "type": "string"
1948
- }
1949
- ],
1950
- "synonyms": "remove, discard, erase",
1951
- "tier": "domain"
1952
- },
1953
- {
1954
- "description": "Signals a new item has been added to the list.",
1955
- "id": "evt_01KXG04GRMQA2Y1RDHRK3CG1R5",
1956
- "key": "ITEM_CREATED",
1957
- "name": "Item Created",
1958
- "payloadSchema": [
1959
- {
1960
- "name": "id",
1961
- "required": true,
1962
- "type": "string"
1963
- }
1964
- ],
1965
- "synonyms": "added, new, appended",
1966
- "tier": "domain"
1967
- },
1968
- {
1969
- "description": "Signals a change in an item's data.",
1970
- "id": "evt_01KXG04GRMAJN1SEMTAB4H1ZDR",
1971
- "key": "ITEM_UPDATED",
1972
- "name": "Item Updated",
1973
- "payloadSchema": [
1974
- {
1975
- "name": "id",
1976
- "required": true,
1977
- "type": "string"
1978
- }
1979
- ],
1980
- "synonyms": "modified, changed, refreshed",
1981
- "tier": "presentation"
1982
- },
1983
- {
1984
- "description": "Signals that a list item has been removed.",
1985
- "id": "evt_01KXG04GRMGHG0EZZ2BDQN17NY",
1986
- "key": "ITEM_DELETED",
1987
- "name": "Item Deleted",
1988
- "payloadSchema": [
1989
- {
1990
- "name": "id",
1991
- "required": true,
1992
- "type": "string"
1993
- }
1994
- ],
1995
- "synonyms": "removed, discarded, purged",
1996
- "tier": "domain"
1997
- }
1998
- ],
1999
- "states": [
2000
- {
2001
- "isInitial": true,
2002
- "name": "idle"
2003
- }
2004
- ],
2005
- "transitions": [
2006
- {
2007
- "event": "INIT",
2008
- "eventId": "evt_01KXG04GRMHJ0X8P7NDFZNE963",
2009
- "from": "idle",
2010
- "to": "idle"
2011
- },
2012
- {
2013
- "effects": [
2014
- [
2015
- "persist",
2016
- "create",
2017
- "ListItem",
2018
- "@payload.data",
2019
- {
2020
- "emit": {
2021
- "success": "ITEM_CREATED"
2022
- }
2023
- }
2024
- ]
2025
- ],
2026
- "event": "DO_CREATE",
2027
- "eventId": "evt_01KXG04GRMGN6M6TP47HW7RTNH",
2028
- "from": "idle",
2029
- "to": "idle"
2030
- },
2031
- {
2032
- "effects": [
2033
- [
2034
- "persist",
2035
- "update",
2036
- "ListItem",
2037
- "@payload.data",
2038
- {
2039
- "emit": {
2040
- "success": "ITEM_UPDATED"
2041
- }
2042
- }
2043
- ]
2044
- ],
2045
- "event": "DO_UPDATE",
2046
- "eventId": "evt_01KXG04GRMTA8SW99YMBCGA1VM",
2047
- "from": "idle",
2048
- "to": "idle"
2049
- },
2050
- {
2051
- "effects": [
2052
- [
2053
- "persist",
2054
- "delete",
2055
- "ListItem",
2056
- "@payload.id",
2057
- {
2058
- "emit": {
2059
- "success": "ITEM_DELETED"
2060
- }
2061
- }
2062
- ]
2063
- ],
2064
- "event": "DO_DELETE",
2065
- "eventId": "evt_01KXG04GRMFADBF7N7V069FCFY",
2066
- "from": "idle",
2067
- "to": "idle"
2068
- }
2069
- ]
2070
- }
2071
- }
2072
- ],
2073
- "types": {
2074
- "FilterSpec": [
2075
- {
2076
- "name": "field",
2077
- "required": true,
2078
- "type": "string"
2079
- },
2080
- {
2081
- "name": "label",
2082
- "type": "string"
2083
- },
2084
- {
2085
- "name": "options",
2086
- "type": "[string]"
2087
- }
2088
- ],
2089
- "ItemAction": [
2090
- {
2091
- "name": "label",
2092
- "required": true,
2093
- "type": "string"
2094
- },
2095
- {
2096
- "name": "event",
2097
- "type": "event"
2098
- },
2099
- {
2100
- "name": "variant",
2101
- "type": "string"
2102
- },
2103
- {
2104
- "name": "roles",
2105
- "type": "[string]"
2106
- },
2107
- {
2108
- "name": "when",
2109
- "type": "SExpr"
2110
- }
2111
- ]
2112
- },
2113
- "uses": [
2114
- {
2115
- "as": "RoleGate",
2116
- "from": "std/behaviors/std-role-gate"
2117
- },
2118
- {
2119
- "as": "Button",
2120
- "from": "std/behaviors/ui-button"
2121
- },
2122
- {
2123
- "as": "Confirmation",
2124
- "from": "std/behaviors/std-confirmation"
2125
- },
2126
- {
2127
- "as": "Modal",
2128
- "from": "std/behaviors/std-modal"
2129
- }
2130
- ]
2131
- }
2132
- ],
2133
- "schemaVersion": 1,
2134
- "version": "1.0.0"
2135
- }