@almadar/std 16.252.0 → 16.253.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 (448) hide show
  1. package/behaviors/lolo/agent/atoms/std-agent-suggestions.lolo +16 -2
  2. package/behaviors/lolo/ui/learning/atoms/std-learn-generate.lolo +6 -4
  3. package/behaviors/registry/agent/atoms/std-agent-context.orb +1 -1
  4. package/behaviors/registry/agent/atoms/std-agent-memory.orb +1 -1
  5. package/behaviors/registry/agent/atoms/std-agent-planner.orb +1 -1
  6. package/behaviors/registry/agent/atoms/std-agent-proposal.orb +1 -1
  7. package/behaviors/registry/agent/atoms/std-agent-session.orb +1 -1
  8. package/behaviors/registry/agent/atoms/std-agent-suggestions.orb +1 -1
  9. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +1 -1
  10. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +1 -1
  11. package/behaviors/registry/agent/atoms/std-agent-trace.orb +1 -1
  12. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1 -1
  13. package/behaviors/registry/infra/atoms/std-analytics.orb +1 -1
  14. package/behaviors/registry/infra/atoms/std-approval-gate.orb +1 -1
  15. package/behaviors/registry/infra/atoms/std-audit-capture.orb +1 -1
  16. package/behaviors/registry/infra/atoms/std-cache-aside.orb +1 -1
  17. package/behaviors/registry/infra/atoms/std-calendar-sync.orb +1 -1
  18. package/behaviors/registry/infra/atoms/std-cascade-on-delete.orb +1 -1
  19. package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +1 -1
  20. package/behaviors/registry/infra/atoms/std-cross-reference.orb +1 -1
  21. package/behaviors/registry/infra/atoms/std-data-erasure.orb +1 -1
  22. package/behaviors/registry/infra/atoms/std-data-import.orb +1 -1
  23. package/behaviors/registry/infra/atoms/std-global-search.orb +1 -1
  24. package/behaviors/registry/infra/atoms/std-knowledge-loop.orb +1 -1
  25. package/behaviors/registry/infra/atoms/std-lifecycle.orb +1 -1
  26. package/behaviors/registry/infra/atoms/std-migration-job.orb +1 -1
  27. package/behaviors/registry/infra/atoms/std-mod-queue.orb +1 -1
  28. package/behaviors/registry/infra/atoms/std-notification-center.orb +1 -1
  29. package/behaviors/registry/infra/atoms/std-notification-preferences.orb +1 -1
  30. package/behaviors/registry/infra/atoms/std-notify-on-event.orb +1 -1
  31. package/behaviors/registry/infra/atoms/std-page-search.orb +1 -1
  32. package/behaviors/registry/infra/atoms/std-page-watch.orb +1 -1
  33. package/behaviors/registry/infra/atoms/std-permission-matrix.orb +1 -1
  34. package/behaviors/registry/infra/atoms/std-rate-limiter.orb +1 -1
  35. package/behaviors/registry/infra/atoms/std-reminder-scheduler.orb +1 -1
  36. package/behaviors/registry/infra/atoms/std-review-cycle.orb +1 -1
  37. package/behaviors/registry/infra/atoms/std-row-access-control.orb +1 -1
  38. package/behaviors/registry/infra/atoms/std-status-lifecycle.orb +1 -1
  39. package/behaviors/registry/infra/organisms/std-status-lifecycle-control.orb +1 -1
  40. package/behaviors/registry/ml/atoms/std-data-collector.orb +1 -1
  41. package/behaviors/registry/ml/atoms/std-graph-builder.orb +1 -1
  42. package/behaviors/registry/ml/atoms/std-ml-classify.orb +1 -1
  43. package/behaviors/registry/ml/atoms/std-ml-infer.orb +1 -1
  44. package/behaviors/registry/ml/atoms/std-ml-label-capture.orb +1 -1
  45. package/behaviors/registry/ml/atoms/std-ml-posterior.orb +1 -1
  46. package/behaviors/registry/ml/atoms/std-ml-similarity.orb +1 -1
  47. package/behaviors/registry/ml/atoms/std-tokenizer.orb +1 -1
  48. package/behaviors/registry/ml/atoms/std-weight-validator.orb +1 -1
  49. package/behaviors/registry/ml/organisms/std-escalating-decision.orb +1 -1
  50. package/behaviors/registry/ml/organisms/std-knowledge-tracing.orb +1 -1
  51. package/behaviors/registry/ui/avl/atoms/std-avl-cosmic-zoom.orb +1 -1
  52. package/behaviors/registry/ui/avl/atoms/ui-avl-glyph.orb +1 -1
  53. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +1 -1
  54. package/behaviors/registry/ui/avl/atoms/ui-avl-transition-detail.orb +1 -1
  55. package/behaviors/registry/ui/avl/atoms/ui-avl-transition-explainer.orb +1 -1
  56. package/behaviors/registry/ui/avl/atoms/ui-behavior-view.orb +1 -1
  57. package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +1 -1
  58. package/behaviors/registry/ui/avl/organisms/ui-flow-canvas.orb +1 -1
  59. package/behaviors/registry/ui/avl/organisms/ui-layers-panel.orb +1 -1
  60. package/behaviors/registry/ui/avl/organisms/ui-orb-inspector.orb +1 -1
  61. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +1 -1
  62. package/behaviors/registry/ui/core/atoms/std-app-search.orb +1 -1
  63. package/behaviors/registry/ui/core/atoms/std-behavior-catalog.orb +1 -1
  64. package/behaviors/registry/ui/core/atoms/std-behavior-tour.orb +1 -1
  65. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +1 -1
  66. package/behaviors/registry/ui/core/atoms/std-board.orb +1 -1
  67. package/behaviors/registry/ui/core/atoms/std-book-reader.orb +1 -1
  68. package/behaviors/registry/ui/core/atoms/std-browse.orb +1 -1
  69. package/behaviors/registry/ui/core/atoms/std-calendar.orb +1 -1
  70. package/behaviors/registry/ui/core/atoms/std-card-grid.orb +1 -1
  71. package/behaviors/registry/ui/core/atoms/std-confirmation.orb +1 -1
  72. package/behaviors/registry/ui/core/atoms/std-dashboard-grid-embedded.orb +1 -1
  73. package/behaviors/registry/ui/core/atoms/std-detail-layout.orb +1 -1
  74. package/behaviors/registry/ui/core/atoms/std-doc-page.orb +1 -1
  75. package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +1 -1
  76. package/behaviors/registry/ui/core/atoms/std-esign-request.orb +1 -1
  77. package/behaviors/registry/ui/core/atoms/std-event-log.orb +1 -1
  78. package/behaviors/registry/ui/core/atoms/std-export.orb +1 -1
  79. package/behaviors/registry/ui/core/atoms/std-file-store.orb +1 -1
  80. package/behaviors/registry/ui/core/atoms/std-filter.orb +1 -1
  81. package/behaviors/registry/ui/core/atoms/std-form-advanced.orb +1 -1
  82. package/behaviors/registry/ui/core/atoms/std-gallery.orb +1 -1
  83. package/behaviors/registry/ui/core/atoms/std-gantt-schedule.orb +1 -1
  84. package/behaviors/registry/ui/core/atoms/std-geosearch.orb +1 -1
  85. package/behaviors/registry/ui/core/atoms/std-graphs.orb +1 -1
  86. package/behaviors/registry/ui/core/atoms/std-hero.orb +1 -1
  87. package/behaviors/registry/ui/core/atoms/std-home.orb +1 -1
  88. package/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +1 -1
  89. package/behaviors/registry/ui/core/atoms/std-import.orb +1 -1
  90. package/behaviors/registry/ui/core/atoms/std-language-picker.orb +1 -1
  91. package/behaviors/registry/ui/core/atoms/std-media-section.orb +1 -1
  92. package/behaviors/registry/ui/core/atoms/std-modal-editor.orb +1 -1
  93. package/behaviors/registry/ui/core/atoms/std-modal.orb +1 -1
  94. package/behaviors/registry/ui/core/atoms/std-multi-party-flow.orb +1 -1
  95. package/behaviors/registry/ui/core/atoms/std-notification-panel.orb +1 -1
  96. package/behaviors/registry/ui/core/atoms/std-panel-launcher.orb +1 -1
  97. package/behaviors/registry/ui/core/atoms/std-pricing.orb +1 -1
  98. package/behaviors/registry/ui/core/atoms/std-proof.orb +1 -1
  99. package/behaviors/registry/ui/core/atoms/std-prose.orb +1 -1
  100. package/behaviors/registry/ui/core/atoms/std-rating-review.orb +1 -1
  101. package/behaviors/registry/ui/core/atoms/std-record-detail.orb +1 -1
  102. package/behaviors/registry/ui/core/atoms/std-recurrence.orb +1 -1
  103. package/behaviors/registry/ui/core/atoms/std-related.orb +1 -1
  104. package/behaviors/registry/ui/core/atoms/std-saved-search.orb +1 -1
  105. package/behaviors/registry/ui/core/atoms/std-scatter.orb +1 -1
  106. package/behaviors/registry/ui/core/atoms/std-scoped-list.orb +1 -1
  107. package/behaviors/registry/ui/core/atoms/std-selection.orb +1 -1
  108. package/behaviors/registry/ui/core/atoms/std-site-footer.orb +1 -1
  109. package/behaviors/registry/ui/core/atoms/std-site-header.orb +1 -1
  110. package/behaviors/registry/ui/core/atoms/std-slide-deck.orb +1 -1
  111. package/behaviors/registry/ui/core/atoms/std-stat-band.orb +1 -1
  112. package/behaviors/registry/ui/core/atoms/std-stats.orb +1 -1
  113. package/behaviors/registry/ui/core/atoms/std-step-flow.orb +1 -1
  114. package/behaviors/registry/ui/core/atoms/std-steps.orb +1 -1
  115. package/behaviors/registry/ui/core/atoms/std-tabs.orb +1 -1
  116. package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +1 -1
  117. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +1 -1
  118. package/behaviors/registry/ui/core/atoms/std-thread.orb +1 -1
  119. package/behaviors/registry/ui/core/atoms/std-tree.orb +1 -1
  120. package/behaviors/registry/ui/core/atoms/std-version-history.orb +1 -1
  121. package/behaviors/registry/ui/core/atoms/std-wizard.orb +1 -1
  122. package/behaviors/registry/ui/core/atoms/std-workspace-layout.orb +1 -1
  123. package/behaviors/registry/ui/core/atoms/ui-animated-graphic.orb +1 -1
  124. package/behaviors/registry/ui/core/atoms/ui-animated-reveal.orb +1 -1
  125. package/behaviors/registry/ui/core/atoms/ui-aside.orb +1 -1
  126. package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +1 -1
  127. package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +1 -1
  128. package/behaviors/registry/ui/core/atoms/ui-avatar.orb +1 -1
  129. package/behaviors/registry/ui/core/atoms/ui-badge.orb +1 -1
  130. package/behaviors/registry/ui/core/atoms/ui-box.orb +1 -1
  131. package/behaviors/registry/ui/core/atoms/ui-button.orb +1 -1
  132. package/behaviors/registry/ui/core/atoms/ui-card.orb +1 -1
  133. package/behaviors/registry/ui/core/atoms/ui-center.orb +1 -1
  134. package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +1 -1
  135. package/behaviors/registry/ui/core/atoms/ui-conditional-wrapper.orb +1 -1
  136. package/behaviors/registry/ui/core/atoms/ui-confetti-effect.orb +1 -1
  137. package/behaviors/registry/ui/core/atoms/ui-day-cell.orb +1 -1
  138. package/behaviors/registry/ui/core/atoms/ui-dialog.orb +1 -1
  139. package/behaviors/registry/ui/core/atoms/ui-divider.orb +1 -1
  140. package/behaviors/registry/ui/core/atoms/ui-filter-pill.orb +1 -1
  141. package/behaviors/registry/ui/core/atoms/ui-flip-container.orb +1 -1
  142. package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +1 -1
  143. package/behaviors/registry/ui/core/atoms/ui-hstack.orb +1 -1
  144. package/behaviors/registry/ui/core/atoms/ui-icon.orb +1 -1
  145. package/behaviors/registry/ui/core/atoms/ui-image.orb +1 -1
  146. package/behaviors/registry/ui/core/atoms/ui-infinite-scroll-sentinel.orb +1 -1
  147. package/behaviors/registry/ui/core/atoms/ui-input.orb +1 -1
  148. package/behaviors/registry/ui/core/atoms/ui-label.orb +1 -1
  149. package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +1 -1
  150. package/behaviors/registry/ui/core/atoms/ui-overlay.orb +1 -1
  151. package/behaviors/registry/ui/core/atoms/ui-pattern-tile.orb +1 -1
  152. package/behaviors/registry/ui/core/atoms/ui-presence.orb +1 -1
  153. package/behaviors/registry/ui/core/atoms/ui-progress-bar.orb +1 -1
  154. package/behaviors/registry/ui/core/atoms/ui-radio.orb +1 -1
  155. package/behaviors/registry/ui/core/atoms/ui-range-slider.orb +1 -1
  156. package/behaviors/registry/ui/core/atoms/ui-section-header.orb +1 -1
  157. package/behaviors/registry/ui/core/atoms/ui-select.orb +1 -1
  158. package/behaviors/registry/ui/core/atoms/ui-spacer.orb +1 -1
  159. package/behaviors/registry/ui/core/atoms/ui-sparkline.orb +1 -1
  160. package/behaviors/registry/ui/core/atoms/ui-spinner.orb +1 -1
  161. package/behaviors/registry/ui/core/atoms/ui-stack.orb +1 -1
  162. package/behaviors/registry/ui/core/atoms/ui-status-dot.orb +1 -1
  163. package/behaviors/registry/ui/core/atoms/ui-svg-branch.orb +1 -1
  164. package/behaviors/registry/ui/core/atoms/ui-svg-connection.orb +1 -1
  165. package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +1 -1
  166. package/behaviors/registry/ui/core/atoms/ui-svg-grid.orb +1 -1
  167. package/behaviors/registry/ui/core/atoms/ui-svg-lobe.orb +1 -1
  168. package/behaviors/registry/ui/core/atoms/ui-svg-mesh.orb +1 -1
  169. package/behaviors/registry/ui/core/atoms/ui-svg-morph.orb +1 -1
  170. package/behaviors/registry/ui/core/atoms/ui-svg-node.orb +1 -1
  171. package/behaviors/registry/ui/core/atoms/ui-svg-pulse.orb +1 -1
  172. package/behaviors/registry/ui/core/atoms/ui-svg-ring.orb +1 -1
  173. package/behaviors/registry/ui/core/atoms/ui-svg-shield.orb +1 -1
  174. package/behaviors/registry/ui/core/atoms/ui-svg-stack.orb +1 -1
  175. package/behaviors/registry/ui/core/atoms/ui-switch.orb +1 -1
  176. package/behaviors/registry/ui/core/atoms/ui-text-highlight.orb +1 -1
  177. package/behaviors/registry/ui/core/atoms/ui-textarea.orb +1 -1
  178. package/behaviors/registry/ui/core/atoms/ui-theme-toggle.orb +1 -1
  179. package/behaviors/registry/ui/core/atoms/ui-time-slot-cell.orb +1 -1
  180. package/behaviors/registry/ui/core/atoms/ui-trend-indicator.orb +1 -1
  181. package/behaviors/registry/ui/core/atoms/ui-typewriter-text.orb +1 -1
  182. package/behaviors/registry/ui/core/atoms/ui-typography.orb +1 -1
  183. package/behaviors/registry/ui/core/atoms/ui-video-embed.orb +1 -1
  184. package/behaviors/registry/ui/core/atoms/ui-vstack.orb +1 -1
  185. package/behaviors/registry/ui/core/molecules/std-stat-rows.orb +1 -1
  186. package/behaviors/registry/ui/core/molecules/ui-accordion.orb +1 -1
  187. package/behaviors/registry/ui/core/molecules/ui-activation-block.orb +1 -1
  188. package/behaviors/registry/ui/core/molecules/ui-activity-rail.orb +1 -1
  189. package/behaviors/registry/ui/core/molecules/ui-agent-activity-feed.orb +1 -1
  190. package/behaviors/registry/ui/core/molecules/ui-agent-activity-row.orb +1 -1
  191. package/behaviors/registry/ui/core/molecules/ui-agent-chat-feed.orb +1 -1
  192. package/behaviors/registry/ui/core/molecules/ui-alert.orb +1 -1
  193. package/behaviors/registry/ui/core/molecules/ui-animated-counter.orb +1 -1
  194. package/behaviors/registry/ui/core/molecules/ui-bloom-quiz-block.orb +1 -1
  195. package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +1 -1
  196. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +1 -1
  197. package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +1 -1
  198. package/behaviors/registry/ui/core/molecules/ui-carousel.orb +1 -1
  199. package/behaviors/registry/ui/core/molecules/ui-change-list.orb +1 -1
  200. package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +1 -1
  201. package/behaviors/registry/ui/core/molecules/ui-chart.orb +1 -1
  202. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +1 -1
  203. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +1 -1
  204. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +1 -1
  205. package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +1 -1
  206. package/behaviors/registry/ui/core/molecules/ui-connection-block.orb +1 -1
  207. package/behaviors/registry/ui/core/molecules/ui-container.orb +1 -1
  208. package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +1 -1
  209. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +1 -1
  210. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +1 -1
  211. package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +1 -1
  212. package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +1 -1
  213. package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +1 -1
  214. package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +1 -1
  215. package/behaviors/registry/ui/core/molecules/ui-doc-search.orb +1 -1
  216. package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +1 -1
  217. package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +1 -1
  218. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +1 -1
  219. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +1 -1
  220. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +1 -1
  221. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +1 -1
  222. package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +1 -1
  223. package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +1 -1
  224. package/behaviors/registry/ui/core/molecules/ui-empty-state.orb +1 -1
  225. package/behaviors/registry/ui/core/molecules/ui-error-boundary.orb +1 -1
  226. package/behaviors/registry/ui/core/molecules/ui-error-state.orb +1 -1
  227. package/behaviors/registry/ui/core/molecules/ui-feature-card.orb +1 -1
  228. package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +1 -1
  229. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +1 -1
  230. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +1 -1
  231. package/behaviors/registry/ui/core/molecules/ui-flex.orb +1 -1
  232. package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +1 -1
  233. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +1 -1
  234. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +1 -1
  235. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +1 -1
  236. package/behaviors/registry/ui/core/molecules/ui-form-field.orb +1 -1
  237. package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +1 -1
  238. package/behaviors/registry/ui/core/molecules/ui-form-section-header.orb +1 -1
  239. package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +1 -1
  240. package/behaviors/registry/ui/core/molecules/ui-gantt.orb +1 -1
  241. package/behaviors/registry/ui/core/molecules/ui-geometric-pattern.orb +1 -1
  242. package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +1 -1
  243. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +1 -1
  244. package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +1 -1
  245. package/behaviors/registry/ui/core/molecules/ui-grid.orb +1 -1
  246. package/behaviors/registry/ui/core/molecules/ui-header.orb +1 -1
  247. package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +1 -1
  248. package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +1 -1
  249. package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +1 -1
  250. package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +1 -1
  251. package/behaviors/registry/ui/core/molecules/ui-input-group.orb +1 -1
  252. package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +1 -1
  253. package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +1 -1
  254. package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +1 -1
  255. package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +1 -1
  256. package/behaviors/registry/ui/core/molecules/ui-loading-state.orb +1 -1
  257. package/behaviors/registry/ui/core/molecules/ui-map-view.orb +1 -1
  258. package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +1 -1
  259. package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +1 -1
  260. package/behaviors/registry/ui/core/molecules/ui-menu.orb +1 -1
  261. package/behaviors/registry/ui/core/molecules/ui-meter.orb +1 -1
  262. package/behaviors/registry/ui/core/molecules/ui-modal.orb +1 -1
  263. package/behaviors/registry/ui/core/molecules/ui-navigation.orb +1 -1
  264. package/behaviors/registry/ui/core/molecules/ui-notification.orb +1 -1
  265. package/behaviors/registry/ui/core/molecules/ui-number-stepper.orb +1 -1
  266. package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +1 -1
  267. package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +1 -1
  268. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +1 -1
  269. package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +1 -1
  270. package/behaviors/registry/ui/core/molecules/ui-pagination.orb +1 -1
  271. package/behaviors/registry/ui/core/molecules/ui-popover.orb +1 -1
  272. package/behaviors/registry/ui/core/molecules/ui-positioned-canvas.orb +1 -1
  273. package/behaviors/registry/ui/core/molecules/ui-progress-dots.orb +1 -1
  274. package/behaviors/registry/ui/core/molecules/ui-pull-to-refresh.orb +1 -1
  275. package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +1 -1
  276. package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +1 -1
  277. package/behaviors/registry/ui/core/molecules/ui-reflection-block.orb +1 -1
  278. package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +1 -1
  279. package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +1 -1
  280. package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +1 -1
  281. package/behaviors/registry/ui/core/molecules/ui-rich-text-editor.orb +1 -1
  282. package/behaviors/registry/ui/core/molecules/ui-scaled-diagram.orb +1 -1
  283. package/behaviors/registry/ui/core/molecules/ui-search-input.orb +1 -1
  284. package/behaviors/registry/ui/core/molecules/ui-section.orb +1 -1
  285. package/behaviors/registry/ui/core/molecules/ui-side-panel.orb +1 -1
  286. package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +1 -1
  287. package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +1 -1
  288. package/behaviors/registry/ui/core/molecules/ui-simple-grid.orb +1 -1
  289. package/behaviors/registry/ui/core/molecules/ui-skeleton.orb +1 -1
  290. package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +1 -1
  291. package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +1 -1
  292. package/behaviors/registry/ui/core/molecules/ui-split.orb +1 -1
  293. package/behaviors/registry/ui/core/molecules/ui-star-rating.orb +1 -1
  294. package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +1 -1
  295. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +1 -1
  296. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +1 -1
  297. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +1 -1
  298. package/behaviors/registry/ui/core/molecules/ui-tag-input.orb +1 -1
  299. package/behaviors/registry/ui/core/molecules/ui-tooltip.orb +1 -1
  300. package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +1 -1
  301. package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +1 -1
  302. package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +1 -1
  303. package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +1 -1
  304. package/behaviors/registry/ui/core/molecules/ui-vote-stack.orb +1 -1
  305. package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +1 -1
  306. package/behaviors/registry/ui/core/molecules/ui-wizard-navigation.orb +1 -1
  307. package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +1 -1
  308. package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +1 -1
  309. package/behaviors/registry/ui/core/organisms/ui-code-runner-panel.orb +1 -1
  310. package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +1 -1
  311. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +1 -1
  312. package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +1 -1
  313. package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +1 -1
  314. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +1 -1
  315. package/behaviors/registry/ui/core/organisms/ui-form.orb +1 -1
  316. package/behaviors/registry/ui/core/organisms/ui-master-detail-layout.orb +1 -1
  317. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +1 -1
  318. package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +1 -1
  319. package/behaviors/registry/ui/core/organisms/ui-runtime-debugger.orb +1 -1
  320. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +1 -1
  321. package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +1 -1
  322. package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +1 -1
  323. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +1 -1
  324. package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +1 -1
  325. package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +1 -1
  326. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +1 -1
  327. package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +1 -1
  328. package/behaviors/registry/ui/core/templates/ui-auth-layout.orb +1 -1
  329. package/behaviors/registry/ui/core/templates/ui-counter-template.orb +1 -1
  330. package/behaviors/registry/ui/core/templates/ui-dashboard-layout.orb +1 -1
  331. package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +1 -1
  332. package/behaviors/registry/ui/game/atoms/std-arcade-play.orb +1 -1
  333. package/behaviors/registry/ui/game/atoms/std-area-fill.orb +1 -1
  334. package/behaviors/registry/ui/game/atoms/std-audio-cue.orb +1 -1
  335. package/behaviors/registry/ui/game/atoms/std-camera-rig.orb +1 -1
  336. package/behaviors/registry/ui/game/atoms/std-chase-ai.orb +1 -1
  337. package/behaviors/registry/ui/game/atoms/std-choice-gate.orb +1 -1
  338. package/behaviors/registry/ui/game/atoms/std-coef-pad.orb +1 -1
  339. package/behaviors/registry/ui/game/atoms/std-curve-fog.orb +1 -1
  340. package/behaviors/registry/ui/game/atoms/std-dungeon-combat.orb +1 -1
  341. package/behaviors/registry/ui/game/atoms/std-fx-narrative.orb +1 -1
  342. package/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -1
  343. package/behaviors/registry/ui/game/atoms/std-fx-trail.orb +1 -1
  344. package/behaviors/registry/ui/game/atoms/std-gate-lock.orb +1 -1
  345. package/behaviors/registry/ui/game/atoms/std-gather.orb +1 -1
  346. package/behaviors/registry/ui/game/atoms/std-gold.orb +1 -1
  347. package/behaviors/registry/ui/game/atoms/std-grid-tactics.orb +1 -1
  348. package/behaviors/registry/ui/game/atoms/std-hero-nav.orb +1 -1
  349. package/behaviors/registry/ui/game/atoms/std-lives.orb +1 -1
  350. package/behaviors/registry/ui/game/atoms/std-loop-lock.orb +1 -1
  351. package/behaviors/registry/ui/game/atoms/std-market-flow.orb +1 -1
  352. package/behaviors/registry/ui/game/atoms/std-motion-body.orb +1 -1
  353. package/behaviors/registry/ui/game/atoms/std-objective-reach.orb +1 -1
  354. package/behaviors/registry/ui/game/atoms/std-pad-lock.orb +1 -1
  355. package/behaviors/registry/ui/game/atoms/std-patience.orb +1 -1
  356. package/behaviors/registry/ui/game/atoms/std-patrol-hazard.orb +1 -1
  357. package/behaviors/registry/ui/game/atoms/std-pickup.orb +1 -1
  358. package/behaviors/registry/ui/game/atoms/std-platformer-body.orb +1 -1
  359. package/behaviors/registry/ui/game/atoms/std-production.orb +1 -1
  360. package/behaviors/registry/ui/game/atoms/std-score.orb +1 -1
  361. package/behaviors/registry/ui/game/atoms/std-tutorial-autodemo.orb +1 -1
  362. package/behaviors/registry/ui/game/atoms/std-tutorial-overlay.orb +1 -1
  363. package/behaviors/registry/ui/game/atoms/std-velocity-gate.orb +1 -1
  364. package/behaviors/registry/ui/game/atoms/std-xp.orb +1 -1
  365. package/behaviors/registry/ui/game/atoms/std-zone-card.orb +1 -1
  366. package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +1 -1
  367. package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +1 -1
  368. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +1 -1
  369. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +1 -1
  370. package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +1 -1
  371. package/behaviors/registry/ui/game/atoms/ui-control-button.orb +1 -1
  372. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +1 -1
  373. package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +1 -1
  374. package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +1 -1
  375. package/behaviors/registry/ui/game/atoms/ui-draw-group.orb +1 -1
  376. package/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +1 -1
  377. package/behaviors/registry/ui/game/atoms/ui-draw-shape-layer.orb +1 -1
  378. package/behaviors/registry/ui/game/atoms/ui-draw-shape.orb +1 -1
  379. package/behaviors/registry/ui/game/atoms/ui-draw-skinned-mesh.orb +1 -1
  380. package/behaviors/registry/ui/game/atoms/ui-draw-sprite-layer.orb +1 -1
  381. package/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +1 -1
  382. package/behaviors/registry/ui/game/atoms/ui-draw-text-layer.orb +1 -1
  383. package/behaviors/registry/ui/game/atoms/ui-draw-text.orb +1 -1
  384. package/behaviors/registry/ui/game/atoms/ui-game-audio-cue.orb +1 -1
  385. package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +1 -1
  386. package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +1 -1
  387. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +1 -1
  388. package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +1 -1
  389. package/behaviors/registry/ui/game/atoms/ui-score-display.orb +1 -1
  390. package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +1 -1
  391. package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +1 -1
  392. package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +1 -1
  393. package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +1 -1
  394. package/behaviors/registry/ui/game/atoms/ui-timer-display.orb +1 -1
  395. package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +1 -1
  396. package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +1 -1
  397. package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +1 -1
  398. package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +1 -1
  399. package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +1 -1
  400. package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +1 -1
  401. package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +1 -1
  402. package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +1 -1
  403. package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +1 -1
  404. package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +1 -1
  405. package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +1 -1
  406. package/behaviors/registry/ui/game/organisms/std-worldmap-board-2d.orb +1 -1
  407. package/behaviors/registry/ui/game/templates/ui-game-shell.orb +1 -1
  408. package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +1 -1
  409. package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1 -1
  410. package/behaviors/registry/ui/learning/atoms/std-learn-compare.orb +1 -1
  411. package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +1 -1
  412. package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +1 -1
  413. package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +1 -1
  414. package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +1 -1
  415. package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +1 -1
  416. package/behaviors/registry/ui/learning/atoms/std-learn-fx-cues.orb +1 -1
  417. package/behaviors/registry/ui/learning/atoms/std-learn-generate.orb +1 -1
  418. package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +1 -1
  419. package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +1 -1
  420. package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +1 -1
  421. package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +1 -1
  422. package/behaviors/registry/ui/learning/atoms/std-learn-measure.orb +1 -1
  423. package/behaviors/registry/ui/learning/atoms/std-learn-param-explorer.orb +1 -1
  424. package/behaviors/registry/ui/learning/atoms/std-learn-perturb.orb +1 -1
  425. package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +1 -1
  426. package/behaviors/registry/ui/learning/atoms/std-learn-sample-accumulator.orb +1 -1
  427. package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +1 -1
  428. package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1 -1
  429. package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +1 -1
  430. package/behaviors/registry/ui/learning/atoms/std-learn-sim-3d.orb +1 -1
  431. package/behaviors/registry/ui/learning/atoms/std-learn-slope-probe.orb +1 -1
  432. package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +1 -1
  433. package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +1 -1
  434. package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +1 -1
  435. package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +1 -1
  436. package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +1 -1
  437. package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +1 -1
  438. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +1 -1
  439. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +1 -1
  440. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +1 -1
  441. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +1 -1
  442. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +1 -1
  443. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +1 -1
  444. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +1 -1
  445. package/dist/behaviors-embeddings.hash.json +1 -1
  446. package/dist/behaviors-embeddings.json +1 -1
  447. package/dist/knob-embeddings.hash.json +1 -1
  448. package/package.json +1 -1
@@ -1 +1 @@
1
- {"name":"std-app-search","version":"1.0.0","description":"std-app-search — reusable global search: wraps a host content view and, on a SEARCH trigger, fetches the linked entity filtered by @config.searchField and renders the matching results, then CLEAR_SEARCH returns to the host view. Rebind to any entity; point @config.idleContent at the normal view and wire a trigger (e.g. AppLayout SEARCH) into SEARCH.","orbitals":[{"name":"AppSearchOrbital","id":"orb_63PRDW0GF487J12SRNR8H557YN","entity":{"name":"AppSearchTarget","id":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"name","type":"string","description":"The primary human-readable label matched by search.","synonyms":"title, label, productName"},{"name":"searchTerm","type":"string","default":"","intrinsic":true,"description":"The current search query the user submitted.","synonyms":"query, term, q"}]},"traits":[{"name":"AppSearchIdleHint","id":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79","effectRow":[{"kind":"render-ui","resource":"main"}],"category":"interaction","linkedEntity":"AppSearchTarget","linkedEntityId":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG","entityRefIds":{"AppSearchTarget":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG"},"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_35GXHC13M7HT3YA7ARCMGA83YM","name":"Initialize"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_35GXHC13M7HT3YA7ARCMGA83YM","effects":[["render-ui","main",{"type":"stack","align":"center","direction":"vertical","gap":"sm","className":"py-12","children":[{"type":"icon","name":"search","size":"lg","color":"muted"},{"type":"typography","variant":"caption","color":"muted","content":"Start typing to search"}]}]]}]},"scope":"instance"},{"name":"AppSearch","id":"trt_MP2M0NE0GH088Q1QPSBAMM92N3","entityRebindable":true,"entityContract":{"requires":[],"provides":["searchTerm"]},"effectRow":[{"kind":"fetch","resource":"AppSearchTarget"},{"kind":"render-ui","resource":"main"},{"kind":"set","resource":"@entity.searchTerm"}],"category":"interaction","linkedEntity":"AppSearchTarget","linkedEntityId":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG","entityRefIds":{"AppSearchTarget":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG"},"traitEmbedIds":{"AppSearchIdleHint":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79"},"emits":[{"event":"AppSearchLoaded","eventId":"evt_F1SJPVRNNSATWX9DT9E5G8F37S","description":"Filtered search results loaded","scope":"internal","payloadSchema":[{"name":"data","type":"[object]","properties":[{"name":"id","type":"string","required":true},{"name":"name","type":"string"},{"name":"searchTerm","type":"string"}],"entity":"AppSearchTarget"}]},{"event":"AppSearchFailed","eventId":"evt_DQHRXRADMY6TF0M48S3S9FTTC1","description":"Search fetch failed","scope":"internal","payloadSchema":[{"name":"error","type":"string"}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"searching"},{"name":"results"}],"events":[{"key":"INIT","id":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","name":"Initialize"},{"key":"APP_SEARCH","id":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","name":"App Search","description":"A search query was submitted (e.g. from the AppLayout top-bar search).","synonyms":"query, find, lookup","tier":"domain","payloadSchema":[{"name":"value","type":"string"}],"listened":true},{"key":"AppSearchLoaded","id":"evt_F1SJPVRNNSATWX9DT9E5G8F37S","name":"App search loaded","payloadSchema":[{"name":"data","type":"[object]","properties":[{"name":"id","type":"string","required":true},{"name":"name","type":"string"},{"name":"searchTerm","type":"string"}],"entity":"AppSearchTarget"}]},{"key":"AppSearchFailed","id":"evt_DQHRXRADMY6TF0M48S3S9FTTC1","name":"App search failed","payloadSchema":[{"name":"error","type":"string"}],"listened":true},{"key":"CLEAR_SEARCH","id":"evt_FE9WKARRY8CF445Y2G6SVGR551","name":"Clear Search"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","effects":[["fetch","AppSearchTarget",{}],["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":["@config.idleContent"]}]]},{"from":"idle","to":"searching","event":"APP_SEARCH","eventId":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","effects":[["set","@entity.searchTerm","@payload.value"],["fetch","AppSearchTarget",{"filter":["or",["=","@payload.value",""],["str/includes",["object/get","@entity","@config.searchField"],"@payload.value"]],"emit":{"success":"AppSearchLoaded","failure":"AppSearchFailed"}}],["render-ui","main",{"type":"stack","align":"center","direction":"vertical","gap":"md","className":"py-12","children":[{"type":"spinner"},{"type":"typography","variant":"caption","color":"muted","content":"Searching…"}]}]]},{"from":"searching","to":"idle","event":"INIT","eventId":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","effects":[["set","@entity.searchTerm",""],["fetch","AppSearchTarget",{}],["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":["@config.idleContent"]}]]},{"from":"searching","to":"searching","event":"APP_SEARCH","eventId":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","effects":[["set","@entity.searchTerm","@payload.value"],["fetch","AppSearchTarget",{"filter":["or",["=","@payload.value",""],["str/includes",["object/get","@entity","@config.searchField"],"@payload.value"]],"emit":{"success":"AppSearchLoaded","failure":"AppSearchFailed"}}],["render-ui","main",{"type":"stack","align":"center","direction":"vertical","gap":"md","className":"py-12","children":[{"type":"spinner"},{"type":"typography","variant":"caption","color":"muted","content":"Searching…"}]}]]},{"from":"searching","to":"results","event":"AppSearchLoaded","eventId":"evt_F1SJPVRNNSATWX9DT9E5G8F37S","effects":[["render-ui","main",{"type":"stack","direction":"vertical","gap":"lg","className":"max-w-6xl mx-auto w-full p-4","children":[{"type":"stack","direction":"horizontal","gap":"sm","justify":"between","align":"center","children":[{"size":"xl","type":"icon","name":"search"},{"type":"typography","variant":"h2","content":"@config.resultsTitle"},{"type":"button","variant":"ghost","icon":"x","label":"Clear search","action":"CLEAR_SEARCH"}]},{"type":"typography","variant":"caption","color":"muted","content":["str/concat",["str/concat","Matching “","@entity.searchTerm"],"”"]},{"type":"divider"},{"type":"data-grid","entity":"@payload.data","fields":"@config.resultFields","itemActions":["array/filter","@config.resultActions",["fn","action",["or",["=",["array/len",["object/get","@action","roles",[]]],0],["array/includes",["object/get","@action","roles",[]],"@config.viewerRole"]]]]}]}]]},{"from":"searching","to":"idle","event":"AppSearchFailed","eventId":"evt_DQHRXRADMY6TF0M48S3S9FTTC1","effects":[["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"alert","variant":"error","message":"@payload.error"},"@config.idleContent"]}]]},{"from":"results","to":"idle","event":"INIT","eventId":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","effects":[["set","@entity.searchTerm",""],["fetch","AppSearchTarget",{}],["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":["@config.idleContent"]}]]},{"from":"results","to":"searching","event":"APP_SEARCH","eventId":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","effects":[["set","@entity.searchTerm","@payload.value"],["fetch","AppSearchTarget",{"filter":["or",["=","@payload.value",""],["str/includes",["object/get","@entity","@config.searchField"],"@payload.value"]],"emit":{"success":"AppSearchLoaded","failure":"AppSearchFailed"}}],["render-ui","main",{"type":"stack","align":"center","direction":"vertical","gap":"md","className":"py-12","children":[{"type":"spinner"},{"type":"typography","variant":"caption","color":"muted","content":"Searching…"}]}]]},{"from":"results","to":"idle","event":"CLEAR_SEARCH","eventId":"evt_FE9WKARRY8CF445Y2G6SVGR551","effects":[["set","@entity.searchTerm",""],["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":["@config.idleContent"]}]]}]},"config":{"resultActions":{"type":"[AppSearchActionSpec]","default":[],"label":"Result row actions","description":"Optional per-row actions on a result, e.g. { label: \"View Details\", event: \"VIEW\" }.","tier":"presentation","items":{"type":"object","properties":{"event":{"name":"event","type":"event","required":true},"roles":{"name":"roles","type":"array","required":false,"items":{"type":"string"}},"disabled":{"name":"disabled","type":"boolean","required":false},"confirm":{"name":"confirm","type":"string","required":false},"payload":{"name":"payload","type":"string","required":false},"label":{"name":"label","type":"string","required":true},"icon":{"name":"icon","type":"string","required":false},"hidden":{"name":"hidden","type":"boolean","required":false},"href":{"name":"href","type":"string","required":false},"variant":{"name":"variant","type":"string","required":false,"values":["primary","secondary","ghost","danger"]}}}},"idleContent":{"type":"trait","default":"@trait.AppSearchIdleHint","label":"Idle content","description":"The normal content view (e.g. the data ledger/browse trait) shown when no search is active.","tier":"presentation","refId":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79"},"resultFields":{"type":"[AppSearchFieldSpec]","default":[{"label":"Name","name":"name","variant":"h4"}],"label":"Result columns","description":"Columns shown in the search-results grid; maps entity fields to display cells.","tier":"presentation","items":{"type":"object","properties":{"hidden":{"name":"hidden","type":"boolean","required":false},"href":{"name":"href","type":"string","required":false},"icon":{"name":"icon","type":"string","required":false},"payload":{"name":"payload","type":"string","required":false},"label":{"name":"label","type":"string","required":false},"confirm":{"name":"confirm","type":"string","required":false},"name":{"name":"name","type":"string","required":true},"event":{"name":"event","type":"string","required":false},"format":{"name":"format","type":"string","required":false,"values":["date","currency","number","boolean","percent"]},"variant":{"name":"variant","type":"string","required":false,"values":["h3","h4","body","caption","badge","small","progress"]},"disabled":{"name":"disabled","type":"boolean","required":false}}}},"resultsTitle":{"type":"string","default":"Search results","label":"Results title","description":"Heading shown above the search-results grid.","tier":"presentation"},"viewerRole":{"type":"string","default":"","label":"Viewer's role","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.","tier":"policy"},"searchField":{"type":"string","default":"name","label":"Search field","description":"Entity field matched against the query (case-insensitive substring).","tier":"presentation"}},"scope":"collection"}],"pages":[{"name":"AppSearchPage","id":"pag_RGZ185YB1R5GW2NYJPA2P2BVZM","path":"/app-search","traits":[{"ref":"AppSearch","refId":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"}]}],"types":{"AppSearchActionSpec":[{"name":"label","type":"string","required":true},{"name":"event","type":"event","required":true},{"name":"variant","type":"string","values":["primary","secondary","ghost","danger"]},{"name":"icon","type":"string"},{"name":"href","type":"string"},{"name":"payload","type":"string"},{"name":"disabled","type":"boolean"},{"name":"confirm","type":"string"},{"name":"hidden","type":"boolean"},{"name":"roles","type":"[string]"}],"AppSearchFieldSpec":[{"name":"name","type":"string","required":true},{"name":"label","type":"string"},{"name":"variant","type":"string","values":["h3","h4","body","caption","badge","small","progress"]},{"name":"icon","type":"string"},{"name":"format","type":"string","values":["date","currency","number","boolean","percent"]},{"name":"event","type":"string"},{"name":"href","type":"string"},{"name":"payload","type":"string"},{"name":"disabled","type":"boolean"},{"name":"confirm","type":"string"},{"name":"hidden","type":"boolean"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG":{"id":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG","kind":"entity","bakedName":"AppSearchTarget","curName":"AppSearchTarget","renames":[],"owner":"workspace"},"evt_35GXHC13M7HT3YA7ARCMGA83YM":{"id":"evt_35GXHC13M7HT3YA7ARCMGA83YM","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79"},"evt_9EE7PE00HG08RAZT8MZNRPGF3V":{"id":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","kind":"event","bakedName":"APP_SEARCH","curName":"APP_SEARCH","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"evt_DQHRXRADMY6TF0M48S3S9FTTC1":{"id":"evt_DQHRXRADMY6TF0M48S3S9FTTC1","kind":"event","bakedName":"AppSearchFailed","curName":"AppSearchFailed","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"evt_F1SJPVRNNSATWX9DT9E5G8F37S":{"id":"evt_F1SJPVRNNSATWX9DT9E5G8F37S","kind":"event","bakedName":"AppSearchLoaded","curName":"AppSearchLoaded","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"evt_FE9WKARRY8CF445Y2G6SVGR551":{"id":"evt_FE9WKARRY8CF445Y2G6SVGR551","kind":"event","bakedName":"CLEAR_SEARCH","curName":"CLEAR_SEARCH","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"evt_VPPBXHYWZ0EFG8HHK07819VKJR":{"id":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"orb_63PRDW0GF487J12SRNR8H557YN":{"id":"orb_63PRDW0GF487J12SRNR8H557YN","kind":"orbital","bakedName":"AppSearchOrbital","curName":"AppSearchOrbital","renames":[],"owner":"workspace"},"pag_RGZ185YB1R5GW2NYJPA2P2BVZM":{"id":"pag_RGZ185YB1R5GW2NYJPA2P2BVZM","kind":"page","bakedName":"AppSearchPage","curName":"AppSearchPage","renames":[],"owner":"workspace"},"trt_MP2M0NE0GH088Q1QPSBAMM92N3":{"id":"trt_MP2M0NE0GH088Q1QPSBAMM92N3","kind":"trait","bakedName":"AppSearch","curName":"AppSearch","renames":[],"owner":"workspace"},"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79":{"id":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79","kind":"trait","bakedName":"AppSearchIdleHint","curName":"AppSearchIdleHint","renames":[],"owner":"workspace"}}}}
1
+ {"name":"std-app-search","version":"1.0.0","description":"std-app-search — reusable global search: wraps a host content view and, on a SEARCH trigger, fetches the linked entity filtered by @config.searchField and renders the matching results, then CLEAR_SEARCH returns to the host view. Rebind to any entity; point @config.idleContent at the normal view and wire a trigger (e.g. AppLayout SEARCH) into SEARCH.","orbitals":[{"name":"AppSearchOrbital","id":"orb_63PRDW0GF487J12SRNR8H557YN","entity":{"name":"AppSearchTarget","id":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"name","type":"string","description":"The primary human-readable label matched by search.","synonyms":"title, label, productName"},{"name":"searchTerm","type":"string","default":"","intrinsic":true,"description":"The current search query the user submitted.","synonyms":"query, term, q"}]},"traits":[{"name":"AppSearchIdleHint","id":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79","effectRow":[{"kind":"render-ui","resource":"main"}],"category":"interaction","linkedEntity":"AppSearchTarget","linkedEntityId":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG","entityRefIds":{"AppSearchTarget":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG"},"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_35GXHC13M7HT3YA7ARCMGA83YM","name":"Initialize"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_35GXHC13M7HT3YA7ARCMGA83YM","effects":[["render-ui","main",{"type":"stack","align":"center","direction":"vertical","gap":"sm","className":"py-12","children":[{"type":"icon","name":"search","size":"lg","color":"muted"},{"type":"typography","variant":"caption","color":"muted","content":"Start typing to search"}]}]]}]},"scope":"instance"},{"name":"AppSearch","id":"trt_MP2M0NE0GH088Q1QPSBAMM92N3","entityRebindable":true,"entityContract":{"requires":[],"provides":["searchTerm"]},"effectRow":[{"kind":"fetch","resource":"AppSearchTarget"},{"kind":"render-ui","resource":"main"},{"kind":"set","resource":"@entity.searchTerm"}],"category":"interaction","linkedEntity":"AppSearchTarget","linkedEntityId":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG","entityRefIds":{"AppSearchTarget":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG"},"traitEmbedIds":{"AppSearchIdleHint":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79"},"emits":[{"event":"AppSearchLoaded","eventId":"evt_F1SJPVRNNSATWX9DT9E5G8F37S","description":"Filtered search results loaded","scope":"internal","payloadSchema":[{"name":"data","type":"[object]","properties":[{"name":"id","type":"string","required":true},{"name":"name","type":"string"},{"name":"searchTerm","type":"string"}],"entity":"AppSearchTarget"}]},{"event":"AppSearchFailed","eventId":"evt_DQHRXRADMY6TF0M48S3S9FTTC1","description":"Search fetch failed","scope":"internal","payloadSchema":[{"name":"error","type":"string"}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"searching"},{"name":"results"}],"events":[{"key":"INIT","id":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","name":"Initialize"},{"key":"APP_SEARCH","id":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","name":"App Search","description":"A search query was submitted (e.g. from the AppLayout top-bar search).","synonyms":"query, find, lookup","tier":"domain","payloadSchema":[{"name":"value","type":"string"}],"listened":true},{"key":"AppSearchLoaded","id":"evt_F1SJPVRNNSATWX9DT9E5G8F37S","name":"App search loaded","payloadSchema":[{"name":"data","type":"[object]","properties":[{"name":"id","type":"string","required":true},{"name":"name","type":"string"},{"name":"searchTerm","type":"string"}],"entity":"AppSearchTarget"}]},{"key":"AppSearchFailed","id":"evt_DQHRXRADMY6TF0M48S3S9FTTC1","name":"App search failed","payloadSchema":[{"name":"error","type":"string"}],"listened":true},{"key":"CLEAR_SEARCH","id":"evt_FE9WKARRY8CF445Y2G6SVGR551","name":"Clear Search"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","effects":[["fetch","AppSearchTarget",{}],["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":["@config.idleContent"]}]]},{"from":"idle","to":"searching","event":"APP_SEARCH","eventId":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","effects":[["set","@entity.searchTerm","@payload.value"],["fetch","AppSearchTarget",{"filter":["or",["=","@payload.value",""],["str/includes",["object/get","@entity","@config.searchField"],"@payload.value"]],"emit":{"success":"AppSearchLoaded","failure":"AppSearchFailed"}}],["render-ui","main",{"type":"stack","align":"center","direction":"vertical","gap":"md","className":"py-12","children":[{"type":"spinner"},{"type":"typography","variant":"caption","color":"muted","content":"Searching…"}]}]]},{"from":"searching","to":"idle","event":"INIT","eventId":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","effects":[["set","@entity.searchTerm",""],["fetch","AppSearchTarget",{}],["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":["@config.idleContent"]}]]},{"from":"searching","to":"searching","event":"APP_SEARCH","eventId":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","effects":[["set","@entity.searchTerm","@payload.value"],["fetch","AppSearchTarget",{"filter":["or",["=","@payload.value",""],["str/includes",["object/get","@entity","@config.searchField"],"@payload.value"]],"emit":{"success":"AppSearchLoaded","failure":"AppSearchFailed"}}],["render-ui","main",{"type":"stack","align":"center","direction":"vertical","gap":"md","className":"py-12","children":[{"type":"spinner"},{"type":"typography","variant":"caption","color":"muted","content":"Searching…"}]}]]},{"from":"searching","to":"results","event":"AppSearchLoaded","eventId":"evt_F1SJPVRNNSATWX9DT9E5G8F37S","effects":[["render-ui","main",{"type":"stack","direction":"vertical","gap":"lg","className":"max-w-6xl mx-auto w-full p-4","children":[{"type":"stack","direction":"horizontal","gap":"sm","justify":"between","align":"center","children":[{"size":"xl","type":"icon","name":"search"},{"type":"typography","variant":"h2","content":"@config.resultsTitle"},{"type":"button","variant":"ghost","icon":"x","label":"Clear search","action":"CLEAR_SEARCH"}]},{"type":"typography","variant":"caption","color":"muted","content":["str/concat",["str/concat","Matching “","@entity.searchTerm"],"”"]},{"type":"divider"},{"type":"data-grid","entity":"@payload.data","fields":"@config.resultFields","itemActions":["array/filter","@config.resultActions",["fn","action",["or",["=",["array/len",["object/get","@action","roles",[]]],0],["array/includes",["object/get","@action","roles",[]],"@config.viewerRole"]]]]}]}]]},{"from":"searching","to":"idle","event":"AppSearchFailed","eventId":"evt_DQHRXRADMY6TF0M48S3S9FTTC1","effects":[["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"alert","variant":"error","message":"@payload.error"},"@config.idleContent"]}]]},{"from":"results","to":"idle","event":"INIT","eventId":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","effects":[["set","@entity.searchTerm",""],["fetch","AppSearchTarget",{}],["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":["@config.idleContent"]}]]},{"from":"results","to":"searching","event":"APP_SEARCH","eventId":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","effects":[["set","@entity.searchTerm","@payload.value"],["fetch","AppSearchTarget",{"filter":["or",["=","@payload.value",""],["str/includes",["object/get","@entity","@config.searchField"],"@payload.value"]],"emit":{"success":"AppSearchLoaded","failure":"AppSearchFailed"}}],["render-ui","main",{"type":"stack","align":"center","direction":"vertical","gap":"md","className":"py-12","children":[{"type":"spinner"},{"type":"typography","variant":"caption","color":"muted","content":"Searching…"}]}]]},{"from":"results","to":"idle","event":"CLEAR_SEARCH","eventId":"evt_FE9WKARRY8CF445Y2G6SVGR551","effects":[["set","@entity.searchTerm",""],["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":["@config.idleContent"]}]]}]},"config":{"idleContent":{"type":"trait","default":"@trait.AppSearchIdleHint","label":"Idle content","description":"The normal content view (e.g. the data ledger/browse trait) shown when no search is active.","tier":"presentation","refId":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79"},"resultsTitle":{"type":"string","default":"Search results","label":"Results title","description":"Heading shown above the search-results grid.","tier":"presentation"},"resultFields":{"type":"[AppSearchFieldSpec]","default":[{"label":"Name","name":"name","variant":"h4"}],"label":"Result columns","description":"Columns shown in the search-results grid; maps entity fields to display cells.","tier":"presentation","items":{"type":"object","properties":{"name":{"name":"name","type":"string","required":true},"hidden":{"name":"hidden","type":"boolean","required":false},"icon":{"name":"icon","type":"string","required":false},"label":{"name":"label","type":"string","required":false},"disabled":{"name":"disabled","type":"boolean","required":false},"format":{"name":"format","type":"string","required":false,"values":["date","currency","number","boolean","percent"]},"variant":{"name":"variant","type":"string","required":false,"values":["h3","h4","body","caption","badge","small","progress"]},"confirm":{"name":"confirm","type":"string","required":false},"payload":{"name":"payload","type":"string","required":false},"href":{"name":"href","type":"string","required":false},"event":{"name":"event","type":"string","required":false}}}},"resultActions":{"type":"[AppSearchActionSpec]","default":[],"label":"Result row actions","description":"Optional per-row actions on a result, e.g. { label: \"View Details\", event: \"VIEW\" }.","tier":"presentation","items":{"type":"object","properties":{"icon":{"name":"icon","type":"string","required":false},"label":{"name":"label","type":"string","required":true},"event":{"name":"event","type":"event","required":true},"payload":{"name":"payload","type":"string","required":false},"href":{"name":"href","type":"string","required":false},"hidden":{"name":"hidden","type":"boolean","required":false},"confirm":{"name":"confirm","type":"string","required":false},"disabled":{"name":"disabled","type":"boolean","required":false},"roles":{"name":"roles","type":"array","required":false,"items":{"type":"string"}},"variant":{"name":"variant","type":"string","required":false,"values":["primary","secondary","ghost","danger"]}}}},"viewerRole":{"type":"string","default":"","label":"Viewer's role","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.","tier":"policy"},"searchField":{"type":"string","default":"name","label":"Search field","description":"Entity field matched against the query (case-insensitive substring).","tier":"presentation"}},"scope":"collection"}],"pages":[{"name":"AppSearchPage","id":"pag_RGZ185YB1R5GW2NYJPA2P2BVZM","path":"/app-search","traits":[{"ref":"AppSearch","refId":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"}]}],"types":{"AppSearchActionSpec":[{"name":"label","type":"string","required":true},{"name":"event","type":"event","required":true},{"name":"variant","type":"string","values":["primary","secondary","ghost","danger"]},{"name":"icon","type":"string"},{"name":"href","type":"string"},{"name":"payload","type":"string"},{"name":"disabled","type":"boolean"},{"name":"confirm","type":"string"},{"name":"hidden","type":"boolean"},{"name":"roles","type":"[string]"}],"AppSearchFieldSpec":[{"name":"name","type":"string","required":true},{"name":"label","type":"string"},{"name":"variant","type":"string","values":["h3","h4","body","caption","badge","small","progress"]},{"name":"icon","type":"string"},{"name":"format","type":"string","values":["date","currency","number","boolean","percent"]},{"name":"event","type":"string"},{"name":"href","type":"string"},{"name":"payload","type":"string"},{"name":"disabled","type":"boolean"},{"name":"confirm","type":"string"},{"name":"hidden","type":"boolean"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG":{"id":"ent_A406VYZ6HFK8QMJJCCSZ8TVCRG","kind":"entity","bakedName":"AppSearchTarget","curName":"AppSearchTarget","renames":[],"owner":"workspace"},"evt_35GXHC13M7HT3YA7ARCMGA83YM":{"id":"evt_35GXHC13M7HT3YA7ARCMGA83YM","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79"},"evt_9EE7PE00HG08RAZT8MZNRPGF3V":{"id":"evt_9EE7PE00HG08RAZT8MZNRPGF3V","kind":"event","bakedName":"APP_SEARCH","curName":"APP_SEARCH","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"evt_DQHRXRADMY6TF0M48S3S9FTTC1":{"id":"evt_DQHRXRADMY6TF0M48S3S9FTTC1","kind":"event","bakedName":"AppSearchFailed","curName":"AppSearchFailed","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"evt_F1SJPVRNNSATWX9DT9E5G8F37S":{"id":"evt_F1SJPVRNNSATWX9DT9E5G8F37S","kind":"event","bakedName":"AppSearchLoaded","curName":"AppSearchLoaded","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"evt_FE9WKARRY8CF445Y2G6SVGR551":{"id":"evt_FE9WKARRY8CF445Y2G6SVGR551","kind":"event","bakedName":"CLEAR_SEARCH","curName":"CLEAR_SEARCH","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"evt_VPPBXHYWZ0EFG8HHK07819VKJR":{"id":"evt_VPPBXHYWZ0EFG8HHK07819VKJR","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_MP2M0NE0GH088Q1QPSBAMM92N3"},"orb_63PRDW0GF487J12SRNR8H557YN":{"id":"orb_63PRDW0GF487J12SRNR8H557YN","kind":"orbital","bakedName":"AppSearchOrbital","curName":"AppSearchOrbital","renames":[],"owner":"workspace"},"pag_RGZ185YB1R5GW2NYJPA2P2BVZM":{"id":"pag_RGZ185YB1R5GW2NYJPA2P2BVZM","kind":"page","bakedName":"AppSearchPage","curName":"AppSearchPage","renames":[],"owner":"workspace"},"trt_MP2M0NE0GH088Q1QPSBAMM92N3":{"id":"trt_MP2M0NE0GH088Q1QPSBAMM92N3","kind":"trait","bakedName":"AppSearch","curName":"AppSearch","renames":[],"owner":"workspace"},"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79":{"id":"trt_TW3ZRSGF2D7H6Y5GCKAQ76DK79","kind":"trait","bakedName":"AppSearchIdleHint","curName":"AppSearchIdleHint","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"name":"std-behavior-catalog","version":"1.3.0","description":"std-behavior-catalog — browse the installed behaviors under the `scope` registry folders (`behavior/catalog`), search them by meaning (the query is embedded with `call-service llm embed` and ranked by cosine similarity to each behavior's description; results under `minScore` drop out), open one's knobs and events (`behavior/describe`), and pick one: PICKED { behavior, trait, value } carries the behavior name, its first trait as a value ready to bind, and the whole behavior as a value ready to embed or store. With `pick: toggle` each card carries an on/off switch instead: TOGGLED { behavior, checked, topic, value } per change, and SELECTION { behaviors } seeds which are on. Pick for block libraries, plugin pickers, plugin on/off settings and any page that lets users choose a building block.","orbitals":[{"name":"BehaviorCatalogOrbital","id":"orb_EA1NVKFM8YT4FD2972R201T6KV","entity":{"name":"BehaviorCatalogView","id":"ent_GY95FGJNA4AN21VVWH4V014SSM","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"query","type":"string","default":""},{"name":"entries","type":"array","default":[],"items":{"type":"object","properties":{"description":{"name":"description","type":"string","required":true},"behavior":{"name":"behavior","type":"string","required":true},"vectors":{"name":"vectors","type":"object","required":false,"items":{"type":"array","items":{"type":"number"}}},"value":{"name":"value","type":"behavior","required":true},"topic":{"name":"topic","type":"string","required":true},"level":{"name":"level","type":"string","required":true},"traits":{"name":"traits","type":"array","required":true,"items":{"type":"trait"}},"capabilities":{"name":"capabilities","type":"array","required":false,"items":{"type":"string"}}}}},{"name":"rows","type":"array","default":[],"items":{"type":"object","properties":{"description":{"name":"description","type":"string","required":true},"score":{"name":"score","type":"number","required":true},"level":{"name":"level","type":"string","required":true},"topic":{"name":"topic","type":"string","required":true},"behavior":{"name":"behavior","type":"string","required":true}}}},{"name":"detail","type":"string","default":""},{"name":"knobs","type":"array","default":[],"items":{"type":"object","properties":{"type":{"name":"type","type":"string","required":true},"name":{"name":"name","type":"string","required":true},"description":{"name":"description","type":"string","required":false},"label":{"name":"label","type":"string","required":false}}}},{"name":"error","type":"string","default":""},{"name":"selected","type":"array","default":[],"items":{"type":"string"}},{"name":"status","type":"string","default":"loading","values":["loading","ready","searching","describing","failed"]}]},"traits":[{"name":"BehaviorCatalog","id":"trt_T8V9S3PWP7EB3M4H05PEF4830D","entityRebindable":true,"entityContract":{"requires":[],"provides":["detail","entries","error","knobs","query","rows","selected","status"]},"effectRow":[{"kind":"behavior/catalog"},{"kind":"behavior/describe"},{"kind":"call-service","resource":"llm.embed"},{"kind":"emit","resource":"CATALOG_SHOWN"},{"kind":"emit","resource":"PICKED"},{"kind":"emit","resource":"TOGGLED"},{"kind":"render-ui","resource":"main"},{"kind":"render-ui","resource":"toast"},{"kind":"set","resource":"@entity.detail"},{"kind":"set","resource":"@entity.entries"},{"kind":"set","resource":"@entity.error"},{"kind":"set","resource":"@entity.knobs"},{"kind":"set","resource":"@entity.query"},{"kind":"set","resource":"@entity.rows"},{"kind":"set","resource":"@entity.selected"},{"kind":"set","resource":"@entity.status"}],"category":"interaction","linkedEntity":"BehaviorCatalogView","linkedEntityId":"ent_GY95FGJNA4AN21VVWH4V014SSM","entityRefIds":{"BehaviorCatalogView":"ent_GY95FGJNA4AN21VVWH4V014SSM"},"emits":[{"event":"PICKED","eventId":"evt_JH6KVQ4KTQ9XBKRJDGMNCBZRC1","scope":"external","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"trait","type":"trait"},{"name":"value","type":"behavior"}]},{"event":"TOGGLED","eventId":"evt_274R36YR1RC0WE2YDZE9K18J8S","scope":"external","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"checked","type":"boolean","required":true},{"name":"topic","type":"string","required":true},{"name":"value","type":"behavior"}]},{"event":"CATALOG_SHOWN","eventId":"evt_1GY6JZZT23X11RQBDQ2357GGEZ"},{"event":"LISTED","eventId":"evt_50M0Q891K7GSKM9Y22SN6GE98D","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string","required":true},{"name":"topic","type":"string","required":true},{"name":"level","type":"string","required":true},{"name":"capabilities","type":"[string]"},{"name":"traits","type":"[trait]","required":true},{"name":"value","type":"behavior","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"entity":"CatalogHit"}]},{"event":"LIST_FAILED","eventId":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","payloadSchema":[{"name":"error","type":"string","required":true}]},{"event":"EMBEDDED","eventId":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","payloadSchema":[{"name":"embeddings","type":"[[number]]","required":true}]},{"event":"SEARCH_FAILED","eventId":"evt_6FBS0SCAN05AG9GSPG78SCKWEA","payloadSchema":[{"name":"error","type":"string","required":true}]},{"event":"DESCRIBED","eventId":"evt_EFQ8VDMSTWCXEA7F2XG1H74E55","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]},{"name":"orbitals","type":"[object]","required":true,"properties":[{"name":"traits","type":"[object]","required":true,"properties":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}]}]}]}]},{"event":"DESCRIBE_FAILED","eventId":"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A","payloadSchema":[{"name":"error","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"loading","isInitial":true},{"name":"ready"},{"name":"searching"},{"name":"describing"},{"name":"failed"}],"events":[{"key":"INIT","id":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","name":"Initialize"},{"key":"SELECTION","id":"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN","name":"Selection","payloadSchema":[{"name":"behaviors","type":"[string]","required":true}],"listened":true},{"key":"LISTED","id":"evt_50M0Q891K7GSKM9Y22SN6GE98D","name":"Listed","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string","required":true},{"name":"topic","type":"string","required":true},{"name":"level","type":"string","required":true},{"name":"capabilities","type":"[string]"},{"name":"traits","type":"[trait]","required":true},{"name":"value","type":"behavior","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"entity":"CatalogHit"}]},{"key":"LIST_FAILED","id":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","name":"List Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"CATALOG_SHOWN","id":"evt_1GY6JZZT23X11RQBDQ2357GGEZ","name":"Catalog Shown"},{"key":"SEARCH","id":"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM","name":"Search","payloadSchema":[{"name":"searchTerm","type":"string","required":true}],"listened":true},{"key":"PICK","id":"evt_WX8GVYBETVQDDWV8DB1NH2WV5M","name":"Pick","payloadSchema":[{"name":"behavior","type":"string","required":true}],"listened":true},{"key":"TOGGLE","id":"evt_4TAWV2JF2S7HCJH7RCAMNR469E","name":"Toggle","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"checked","type":"boolean","required":true}],"listened":true},{"key":"DESCRIBE","id":"evt_94D10F75Y1JZ0HZDJP0WW01GEW","name":"Describe","payloadSchema":[{"name":"behavior","type":"string","required":true}],"listened":true},{"key":"EMBEDDED","id":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","name":"Embedded","payloadSchema":[{"name":"embeddings","type":"[[number]]","required":true}]},{"key":"SEARCH_FAILED","id":"evt_6FBS0SCAN05AG9GSPG78SCKWEA","name":"Search Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"DESCRIBED","id":"evt_EFQ8VDMSTWCXEA7F2XG1H74E55","name":"Described","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]},{"name":"orbitals","type":"[object]","required":true,"properties":[{"name":"traits","type":"[object]","required":true,"properties":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}]}]}]}]},{"key":"DESCRIBE_FAILED","id":"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A","name":"Describe Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"RETRY","id":"evt_7ZPTFV9DXPPYV86HGXGXZE0XTX","name":"Retry","listened":true},{"key":"PICKED","id":"evt_JH6KVQ4KTQ9XBKRJDGMNCBZRC1","name":"Picked","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"trait","type":"trait"},{"name":"value","type":"behavior"}]},{"key":"TOGGLED","id":"evt_274R36YR1RC0WE2YDZE9K18J8S","name":"Toggled","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"checked","type":"boolean","required":true},{"name":"topic","type":"string","required":true},{"name":"value","type":"behavior"}]}],"transitions":[{"from":"loading","to":"loading","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","effects":[["set","@entity.status","loading"],["render-ui","main",{"type":"loading-state","message":"Loading the catalog"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"success":"LISTED","failure":"LIST_FAILED"}}]]},{"from":"loading","to":"loading","event":"SELECTION","eventId":"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN","effects":[["set","@entity.selected","@payload.behaviors"]]},{"from":"loading","to":"ready","event":"LISTED","eventId":"evt_50M0Q891K7GSKM9Y22SN6GE98D","effects":[["set","@entity.entries","@payload.result"],["set","@entity.rows",["array/map","@payload.result",["fn","e",{"behavior":"@e.behavior","description":"@e.description","topic":"@e.topic","level":"@e.level","score":0}]]],["set","@entity.status","ready"],["emit","CATALOG_SHOWN",{}]]},{"from":"loading","to":"failed","event":"LIST_FAILED","eventId":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","guard":["=","@config.look","chips"],"effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","main",null]]},{"from":"loading","to":"failed","event":"LIST_FAILED","eventId":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","guard":["!=","@config.look","chips"],"effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","main",{"type":"error-state","title":"The catalog could not be listed","message":"@payload.error","retryEvent":"RETRY"}]]},{"from":"ready","to":"ready","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","effects":[["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"ready","event":"CATALOG_SHOWN","eventId":"evt_1GY6JZZT23X11RQBDQ2357GGEZ","guard":["=","@config.look","chips"],"effects":[["render-ui","main",{"type":"stack","direction":"horizontal","gap":"sm","justify":"center","className":["if",["=","@entity.query",""],"hidden","flex-wrap"],"children":["array/map",["array/take","@entity.rows","@config.maxChips"],["fn","row",{"type":"button","label":"@row.behavior","variant":"secondary","size":"sm","className":"rounded-full","action":"PICK","actionPayload":{"behavior":"@row.behavior"}}]]}]]},{"from":"ready","to":"ready","event":"CATALOG_SHOWN","eventId":"evt_1GY6JZZT23X11RQBDQ2357GGEZ","guard":["!=","@config.look","chips"],"effects":[["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"search-input","placeholder":"@config.searchPlaceholder","value":"@entity.query","event":"SEARCH"},{"type":"empty-state","icon":"@config.emptyIcon","title":"@config.emptyLabel","description":"@config.emptyDescription","className":["if",["=",["array/len","@entity.rows"],0],"","hidden"]},{"type":"stack","direction":"vertical","gap":"sm","children":["array/map","@entity.rows",["fn","row",{"type":"card","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"stack","direction":"horizontal","gap":"sm","align":"center","children":[{"type":"typography","content":"@row.behavior","variant":"h4","weight":"semibold"},{"type":"badge","label":"@row.topic","variant":"default"},{"type":"badge","label":"@row.level","variant":"info"},{"type":"badge","label":["str/concat",["math/round",["*","@row.score",100]],"%"],"variant":"success","className":["if",[">","@row.score",0],"","hidden"]}]},{"type":"typography","content":"@row.description","variant":"body","color":"muted"},{"type":"stack","direction":"horizontal","gap":"sm","align":"center","children":[{"type":"button","label":"@config.pickLabel","variant":"primary","size":"sm","action":"PICK","actionPayload":{"behavior":"@row.behavior"},"className":["if",["=","@config.pick","toggle"],"hidden",""]},{"type":"switch","label":"@config.toggleLabel","checked":["array/includes","@entity.selected","@row.behavior"],"action":"TOGGLE","actionPayload":{"behavior":"@row.behavior"},"className":["if",["=","@config.pick","toggle"],"","hidden"]},{"type":"button","label":"@config.describeLabel","variant":"ghost","size":"sm","action":"DESCRIBE","actionPayload":{"behavior":"@row.behavior"}}]},{"type":"stack","direction":"vertical","gap":"xs","className":["if",["=","@entity.detail","@row.behavior"],"","hidden"],"children":["array/map","@entity.knobs",["fn","k",{"type":"typography","content":["str/concat",["object/get","@k","label","@k.name"]," · ","@k.type"," — ",["object/get","@k","description",""]],"variant":"caption"}]]}]}]}]]}]}]]},{"from":"ready","to":"ready","event":"SEARCH","eventId":"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM","guard":["=","@payload.searchTerm",""],"effects":[["set","@entity.query",""],["set","@entity.rows",["array/map","@entity.entries",["fn","e",{"behavior":"@e.behavior","description":"@e.description","topic":"@e.topic","level":"@e.level","score":0}]]],["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"searching","event":"SEARCH","eventId":"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM","guard":["!=","@payload.searchTerm",""],"effects":[["set","@entity.query","@payload.searchTerm"],["set","@entity.status","searching"],["call-service","llm","embed",{"texts":["@payload.searchTerm"]},{"emit":{"success":"EMBEDDED","failure":"SEARCH_FAILED"}}]]},{"from":"ready","to":"ready","event":"PICK","eventId":"evt_WX8GVYBETVQDDWV8DB1NH2WV5M","effects":[["emit","PICKED",{"behavior":"@payload.behavior","description":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"description",""],"trait":["array/first",["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"traits",[]]],"value":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"value"]}]]},{"from":"ready","to":"ready","event":"TOGGLE","eventId":"evt_4TAWV2JF2S7HCJH7RCAMNR469E","guard":"@payload.checked","effects":[["set","@entity.selected",["array/append",["array/filter","@entity.selected",["fn","b",["!=","@b","@payload.behavior"]]],"@payload.behavior"]],["emit","TOGGLED",{"behavior":"@payload.behavior","checked":true,"topic":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"topic",""],"value":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"value"]}],["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"ready","event":"TOGGLE","eventId":"evt_4TAWV2JF2S7HCJH7RCAMNR469E","guard":["not","@payload.checked"],"effects":[["set","@entity.selected",["array/filter","@entity.selected",["fn","b",["!=","@b","@payload.behavior"]]]],["emit","TOGGLED",{"behavior":"@payload.behavior","checked":false,"topic":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"topic",""],"value":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"value"]}],["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"ready","event":"SELECTION","eventId":"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN","effects":[["set","@entity.selected","@payload.behaviors"],["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"describing","event":"DESCRIBE","eventId":"evt_94D10F75Y1JZ0HZDJP0WW01GEW","effects":[["set","@entity.detail","@payload.behavior"],["set","@entity.status","describing"],["behavior/describe",{"behavior":"@payload.behavior"},{"emit":{"success":"DESCRIBED","failure":"DESCRIBE_FAILED"}}]]},{"from":"searching","to":"loading","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","effects":[["set","@entity.status","loading"],["render-ui","main",{"type":"loading-state","message":"Loading the catalog"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"success":"LISTED","failure":"LIST_FAILED"}}]]},{"from":"searching","to":"ready","event":"EMBEDDED","eventId":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","guard":[">",["array/len","@payload.embeddings"],0],"effects":[["set","@entity.rows",["array/sort",["array/filter",["array/map","@entity.entries",["fn","e",{"behavior":"@e.behavior","description":"@e.description","topic":"@e.topic","level":"@e.level","score":["array/cosine",["object/get","@e.vectors","description"],["array/first","@payload.embeddings"]]}]],["fn","r",[">=","@r.score","@config.minScore"]]],"score","desc"]],["set","@entity.status","ready"],["emit","CATALOG_SHOWN",{}]]},{"from":"searching","to":"ready","event":"EMBEDDED","eventId":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","guard":["=",["array/len","@payload.embeddings"],0],"effects":[["set","@entity.error","The model returned no embedding"],["set","@entity.status","ready"],["render-ui","toast",{"type":"alert","variant":"error","message":"Search is unavailable: the model returned no embedding."}],["emit","CATALOG_SHOWN",{}]]},{"from":"searching","to":"ready","event":"SEARCH_FAILED","eventId":"evt_6FBS0SCAN05AG9GSPG78SCKWEA","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","ready"],["render-ui","toast",{"type":"alert","variant":"error","message":["str/concat","Search failed: ","@payload.error"]}],["emit","CATALOG_SHOWN",{}]]},{"from":"describing","to":"loading","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","effects":[["set","@entity.status","loading"],["render-ui","main",{"type":"loading-state","message":"Loading the catalog"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"success":"LISTED","failure":"LIST_FAILED"}}]]},{"from":"describing","to":"ready","event":"DESCRIBED","eventId":"evt_EFQ8VDMSTWCXEA7F2XG1H74E55","effects":[["set","@entity.knobs",["object/get","@payload.result","knobs",[]]],["set","@entity.status","ready"],["emit","CATALOG_SHOWN",{}]]},{"from":"describing","to":"ready","event":"DESCRIBE_FAILED","eventId":"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A","effects":[["set","@entity.error","@payload.error"],["set","@entity.knobs",[]],["set","@entity.status","ready"],["render-ui","toast",{"type":"alert","variant":"error","message":["str/concat","Details failed: ","@payload.error"]}],["emit","CATALOG_SHOWN",{}]]},{"from":"failed","to":"failed","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","guard":["=","@config.look","chips"],"effects":[["render-ui","main",null]]},{"from":"failed","to":"failed","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","guard":["!=","@config.look","chips"],"effects":[["render-ui","main",{"type":"error-state","title":"The catalog could not be listed","message":"@entity.error","retryEvent":"RETRY"}]]},{"from":"failed","to":"loading","event":"RETRY","eventId":"evt_7ZPTFV9DXPPYV86HGXGXZE0XTX","effects":[["set","@entity.status","loading"],["render-ui","main",{"type":"loading-state","message":"Loading the catalog"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"success":"LISTED","failure":"LIST_FAILED"}}]]}]},"config":{"minScore":{"type":"number","default":0.3,"label":"Minimum match","description":"Cosine similarity a behavior needs to its description to stay in search results.","tier":"policy"},"emptyLabel":{"type":"string","default":"Nothing matches.","label":"Empty message","tier":"presentation"},"pickLabel":{"type":"string","default":"Use","label":"Pick button label","tier":"presentation"},"searchPlaceholder":{"type":"string","default":"Search building blocks","label":"Search placeholder","tier":"presentation"},"describeLabel":{"type":"string","default":"Details","label":"Details button label","tier":"presentation"},"emptyDescription":{"type":"string","default":"","label":"Empty explanation","description":"A line under the empty message saying why nothing is listed.","tier":"presentation"},"toggleLabel":{"type":"string","default":"Enabled","label":"Switch label","tier":"presentation"},"scope":{"type":"[string]","default":["almadar-std/ui/core"],"label":"Where to look","description":"Registry folders (`<prefix>/<topic>[/<tier>]`) the catalog lists.","tier":"domain","items":{"type":"string"}},"emptyIcon":{"type":"string","default":"search","label":"Empty icon","tier":"presentation"},"look":{"type":"string","default":"list","label":"How are behaviors shown?","description":"list = a search box over a card per behavior with Use and Details; chips = the best matches for the current query as a row of chips under a prompt that lives elsewhere (route its text to SEARCH), nothing while the query is empty.","synonyms":"suggestion chips, prompt suggestions, compact catalog","tier":"presentation","values":["list","chips"]},"maxChips":{"type":"number","default":4,"label":"How many chips?","description":"In the chips look, how many of the best matches are shown.","tier":"presentation"},"pick":{"type":"string","default":"button","label":"How is a behavior chosen?","description":"button = a Use button per card that picks it once (PICKED); toggle = an on/off switch per card for a set of chosen behaviors (TOGGLED), seeded by SELECTION.","synonyms":"enable disable, on off switch, plugin toggles, choose many","tier":"presentation","values":["button","toggle"]}},"scope":"instance"}],"pages":[{"name":"BehaviorCatalogPage","id":"pag_7RJJJWNR0PW0BEN9M4YZB4KWBF","path":"/behavior-catalog","traits":[{"ref":"BehaviorCatalog","refId":"trt_T8V9S3PWP7EB3M4H05PEF4830D"}]}],"types":{"BehaviorDescription":[{"name":"behavior","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]},{"name":"orbitals","type":"[object]","required":true,"properties":[{"name":"traits","type":"[object]","required":true,"properties":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}]}]}],"CatalogHit":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string","required":true},{"name":"topic","type":"string","required":true},{"name":"level","type":"string","required":true},{"name":"capabilities","type":"[string]"},{"name":"traits","type":"[trait]","required":true},{"name":"value","type":"behavior","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"CatalogRow":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string","required":true},{"name":"topic","type":"string","required":true},{"name":"level","type":"string","required":true},{"name":"score","type":"number","required":true}],"DescribedOrbital":[{"name":"traits","type":"[object]","required":true,"properties":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}]}],"DescribedTrait":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}],"KnobField":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_GY95FGJNA4AN21VVWH4V014SSM":{"id":"ent_GY95FGJNA4AN21VVWH4V014SSM","kind":"entity","bakedName":"BehaviorCatalogView","curName":"BehaviorCatalogView","renames":[],"owner":"workspace"},"evt_1GY6JZZT23X11RQBDQ2357GGEZ":{"id":"evt_1GY6JZZT23X11RQBDQ2357GGEZ","kind":"event","bakedName":"CATALOG_SHOWN","curName":"CATALOG_SHOWN","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_274R36YR1RC0WE2YDZE9K18J8S":{"id":"evt_274R36YR1RC0WE2YDZE9K18J8S","kind":"event","bakedName":"TOGGLED","curName":"TOGGLED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_4TAWV2JF2S7HCJH7RCAMNR469E":{"id":"evt_4TAWV2JF2S7HCJH7RCAMNR469E","kind":"event","bakedName":"TOGGLE","curName":"TOGGLE","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_50M0Q891K7GSKM9Y22SN6GE98D":{"id":"evt_50M0Q891K7GSKM9Y22SN6GE98D","kind":"event","bakedName":"LISTED","curName":"LISTED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_6FBS0SCAN05AG9GSPG78SCKWEA":{"id":"evt_6FBS0SCAN05AG9GSPG78SCKWEA","kind":"event","bakedName":"SEARCH_FAILED","curName":"SEARCH_FAILED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A":{"id":"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A","kind":"event","bakedName":"DESCRIBE_FAILED","curName":"DESCRIBE_FAILED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_7ZPTFV9DXPPYV86HGXGXZE0XTX":{"id":"evt_7ZPTFV9DXPPYV86HGXGXZE0XTX","kind":"event","bakedName":"RETRY","curName":"RETRY","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_94D10F75Y1JZ0HZDJP0WW01GEW":{"id":"evt_94D10F75Y1JZ0HZDJP0WW01GEW","kind":"event","bakedName":"DESCRIBE","curName":"DESCRIBE","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN":{"id":"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN","kind":"event","bakedName":"SELECTION","curName":"SELECTION","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_EFQ8VDMSTWCXEA7F2XG1H74E55":{"id":"evt_EFQ8VDMSTWCXEA7F2XG1H74E55","kind":"event","bakedName":"DESCRIBED","curName":"DESCRIBED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2":{"id":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","kind":"event","bakedName":"LIST_FAILED","curName":"LIST_FAILED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_JH6KVQ4KTQ9XBKRJDGMNCBZRC1":{"id":"evt_JH6KVQ4KTQ9XBKRJDGMNCBZRC1","kind":"event","bakedName":"PICKED","curName":"PICKED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_KM1PXBYDP16V0PFXYFG2N1FZT4":{"id":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_KNZJ2XZ05BG2NG6VMFY12DE640":{"id":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","kind":"event","bakedName":"EMBEDDED","curName":"EMBEDDED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM":{"id":"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM","kind":"event","bakedName":"SEARCH","curName":"SEARCH","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_WX8GVYBETVQDDWV8DB1NH2WV5M":{"id":"evt_WX8GVYBETVQDDWV8DB1NH2WV5M","kind":"event","bakedName":"PICK","curName":"PICK","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"orb_EA1NVKFM8YT4FD2972R201T6KV":{"id":"orb_EA1NVKFM8YT4FD2972R201T6KV","kind":"orbital","bakedName":"BehaviorCatalogOrbital","curName":"BehaviorCatalogOrbital","renames":[],"owner":"workspace"},"pag_7RJJJWNR0PW0BEN9M4YZB4KWBF":{"id":"pag_7RJJJWNR0PW0BEN9M4YZB4KWBF","kind":"page","bakedName":"BehaviorCatalogPage","curName":"BehaviorCatalogPage","renames":[],"owner":"workspace"},"trt_T8V9S3PWP7EB3M4H05PEF4830D":{"id":"trt_T8V9S3PWP7EB3M4H05PEF4830D","kind":"trait","bakedName":"BehaviorCatalog","curName":"BehaviorCatalog","renames":[],"owner":"workspace"}}}}
1
+ {"name":"std-behavior-catalog","version":"1.3.0","description":"std-behavior-catalog — browse the installed behaviors under the `scope` registry folders (`behavior/catalog`), search them by meaning (the query is embedded with `call-service llm embed` and ranked by cosine similarity to each behavior's description; results under `minScore` drop out), open one's knobs and events (`behavior/describe`), and pick one: PICKED { behavior, trait, value } carries the behavior name, its first trait as a value ready to bind, and the whole behavior as a value ready to embed or store. With `pick: toggle` each card carries an on/off switch instead: TOGGLED { behavior, checked, topic, value } per change, and SELECTION { behaviors } seeds which are on. Pick for block libraries, plugin pickers, plugin on/off settings and any page that lets users choose a building block.","orbitals":[{"name":"BehaviorCatalogOrbital","id":"orb_EA1NVKFM8YT4FD2972R201T6KV","entity":{"name":"BehaviorCatalogView","id":"ent_GY95FGJNA4AN21VVWH4V014SSM","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"query","type":"string","default":""},{"name":"entries","type":"array","default":[],"items":{"type":"object","properties":{"behavior":{"name":"behavior","type":"string","required":true},"value":{"name":"value","type":"behavior","required":true},"traits":{"name":"traits","type":"array","required":true,"items":{"type":"trait"}},"level":{"name":"level","type":"string","required":true},"capabilities":{"name":"capabilities","type":"array","required":false,"items":{"type":"string"}},"topic":{"name":"topic","type":"string","required":true},"vectors":{"name":"vectors","type":"object","required":false,"items":{"type":"array","items":{"type":"number"}}},"description":{"name":"description","type":"string","required":true}}}},{"name":"rows","type":"array","default":[],"items":{"type":"object","properties":{"level":{"name":"level","type":"string","required":true},"score":{"name":"score","type":"number","required":true},"description":{"name":"description","type":"string","required":true},"topic":{"name":"topic","type":"string","required":true},"behavior":{"name":"behavior","type":"string","required":true}}}},{"name":"detail","type":"string","default":""},{"name":"knobs","type":"array","default":[],"items":{"type":"object","properties":{"label":{"name":"label","type":"string","required":false},"description":{"name":"description","type":"string","required":false},"type":{"name":"type","type":"string","required":true},"name":{"name":"name","type":"string","required":true}}}},{"name":"error","type":"string","default":""},{"name":"selected","type":"array","default":[],"items":{"type":"string"}},{"name":"status","type":"string","default":"loading","values":["loading","ready","searching","describing","failed"]}]},"traits":[{"name":"BehaviorCatalog","id":"trt_T8V9S3PWP7EB3M4H05PEF4830D","entityRebindable":true,"entityContract":{"requires":[],"provides":["detail","entries","error","knobs","query","rows","selected","status"]},"effectRow":[{"kind":"behavior/catalog"},{"kind":"behavior/describe"},{"kind":"call-service","resource":"llm.embed"},{"kind":"emit","resource":"CATALOG_SHOWN"},{"kind":"emit","resource":"PICKED"},{"kind":"emit","resource":"TOGGLED"},{"kind":"render-ui","resource":"main"},{"kind":"render-ui","resource":"toast"},{"kind":"set","resource":"@entity.detail"},{"kind":"set","resource":"@entity.entries"},{"kind":"set","resource":"@entity.error"},{"kind":"set","resource":"@entity.knobs"},{"kind":"set","resource":"@entity.query"},{"kind":"set","resource":"@entity.rows"},{"kind":"set","resource":"@entity.selected"},{"kind":"set","resource":"@entity.status"}],"category":"interaction","linkedEntity":"BehaviorCatalogView","linkedEntityId":"ent_GY95FGJNA4AN21VVWH4V014SSM","entityRefIds":{"BehaviorCatalogView":"ent_GY95FGJNA4AN21VVWH4V014SSM"},"emits":[{"event":"PICKED","eventId":"evt_JH6KVQ4KTQ9XBKRJDGMNCBZRC1","scope":"external","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"trait","type":"trait"},{"name":"value","type":"behavior"}]},{"event":"TOGGLED","eventId":"evt_274R36YR1RC0WE2YDZE9K18J8S","scope":"external","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"checked","type":"boolean","required":true},{"name":"topic","type":"string","required":true},{"name":"value","type":"behavior"}]},{"event":"CATALOG_SHOWN","eventId":"evt_1GY6JZZT23X11RQBDQ2357GGEZ"},{"event":"LISTED","eventId":"evt_50M0Q891K7GSKM9Y22SN6GE98D","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string","required":true},{"name":"topic","type":"string","required":true},{"name":"level","type":"string","required":true},{"name":"capabilities","type":"[string]"},{"name":"traits","type":"[trait]","required":true},{"name":"value","type":"behavior","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"entity":"CatalogHit"}]},{"event":"LIST_FAILED","eventId":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","payloadSchema":[{"name":"error","type":"string","required":true}]},{"event":"EMBEDDED","eventId":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","payloadSchema":[{"name":"embeddings","type":"[[number]]","required":true}]},{"event":"SEARCH_FAILED","eventId":"evt_6FBS0SCAN05AG9GSPG78SCKWEA","payloadSchema":[{"name":"error","type":"string","required":true}]},{"event":"DESCRIBED","eventId":"evt_EFQ8VDMSTWCXEA7F2XG1H74E55","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]},{"name":"orbitals","type":"[object]","required":true,"properties":[{"name":"traits","type":"[object]","required":true,"properties":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}]}]}]}]},{"event":"DESCRIBE_FAILED","eventId":"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A","payloadSchema":[{"name":"error","type":"string","required":true}]}],"stateMachine":{"states":[{"name":"loading","isInitial":true},{"name":"ready"},{"name":"searching"},{"name":"describing"},{"name":"failed"}],"events":[{"key":"INIT","id":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","name":"Initialize"},{"key":"SELECTION","id":"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN","name":"Selection","payloadSchema":[{"name":"behaviors","type":"[string]","required":true}],"listened":true},{"key":"LISTED","id":"evt_50M0Q891K7GSKM9Y22SN6GE98D","name":"Listed","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string","required":true},{"name":"topic","type":"string","required":true},{"name":"level","type":"string","required":true},{"name":"capabilities","type":"[string]"},{"name":"traits","type":"[trait]","required":true},{"name":"value","type":"behavior","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"entity":"CatalogHit"}]},{"key":"LIST_FAILED","id":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","name":"List Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"CATALOG_SHOWN","id":"evt_1GY6JZZT23X11RQBDQ2357GGEZ","name":"Catalog Shown"},{"key":"SEARCH","id":"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM","name":"Search","payloadSchema":[{"name":"searchTerm","type":"string","required":true}],"listened":true},{"key":"PICK","id":"evt_WX8GVYBETVQDDWV8DB1NH2WV5M","name":"Pick","payloadSchema":[{"name":"behavior","type":"string","required":true}],"listened":true},{"key":"TOGGLE","id":"evt_4TAWV2JF2S7HCJH7RCAMNR469E","name":"Toggle","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"checked","type":"boolean","required":true}],"listened":true},{"key":"DESCRIBE","id":"evt_94D10F75Y1JZ0HZDJP0WW01GEW","name":"Describe","payloadSchema":[{"name":"behavior","type":"string","required":true}],"listened":true},{"key":"EMBEDDED","id":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","name":"Embedded","payloadSchema":[{"name":"embeddings","type":"[[number]]","required":true}]},{"key":"SEARCH_FAILED","id":"evt_6FBS0SCAN05AG9GSPG78SCKWEA","name":"Search Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"DESCRIBED","id":"evt_EFQ8VDMSTWCXEA7F2XG1H74E55","name":"Described","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]},{"name":"orbitals","type":"[object]","required":true,"properties":[{"name":"traits","type":"[object]","required":true,"properties":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}]}]}]}]},{"key":"DESCRIBE_FAILED","id":"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A","name":"Describe Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"RETRY","id":"evt_7ZPTFV9DXPPYV86HGXGXZE0XTX","name":"Retry","listened":true},{"key":"PICKED","id":"evt_JH6KVQ4KTQ9XBKRJDGMNCBZRC1","name":"Picked","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"trait","type":"trait"},{"name":"value","type":"behavior"}]},{"key":"TOGGLED","id":"evt_274R36YR1RC0WE2YDZE9K18J8S","name":"Toggled","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"checked","type":"boolean","required":true},{"name":"topic","type":"string","required":true},{"name":"value","type":"behavior"}]}],"transitions":[{"from":"loading","to":"loading","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","effects":[["set","@entity.status","loading"],["render-ui","main",{"type":"loading-state","message":"Loading the catalog"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"success":"LISTED","failure":"LIST_FAILED"}}]]},{"from":"loading","to":"loading","event":"SELECTION","eventId":"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN","effects":[["set","@entity.selected","@payload.behaviors"]]},{"from":"loading","to":"ready","event":"LISTED","eventId":"evt_50M0Q891K7GSKM9Y22SN6GE98D","effects":[["set","@entity.entries","@payload.result"],["set","@entity.rows",["array/map","@payload.result",["fn","e",{"behavior":"@e.behavior","description":"@e.description","topic":"@e.topic","level":"@e.level","score":0}]]],["set","@entity.status","ready"],["emit","CATALOG_SHOWN",{}]]},{"from":"loading","to":"failed","event":"LIST_FAILED","eventId":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","guard":["=","@config.look","chips"],"effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","main",null]]},{"from":"loading","to":"failed","event":"LIST_FAILED","eventId":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","guard":["!=","@config.look","chips"],"effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","main",{"type":"error-state","title":"The catalog could not be listed","message":"@payload.error","retryEvent":"RETRY"}]]},{"from":"ready","to":"ready","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","effects":[["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"ready","event":"CATALOG_SHOWN","eventId":"evt_1GY6JZZT23X11RQBDQ2357GGEZ","guard":["=","@config.look","chips"],"effects":[["render-ui","main",{"type":"stack","direction":"horizontal","gap":"sm","justify":"center","className":["if",["=","@entity.query",""],"hidden","flex-wrap"],"children":["array/map",["array/take","@entity.rows","@config.maxChips"],["fn","row",{"type":"button","label":"@row.behavior","variant":"secondary","size":"sm","className":"rounded-full","action":"PICK","actionPayload":{"behavior":"@row.behavior"}}]]}]]},{"from":"ready","to":"ready","event":"CATALOG_SHOWN","eventId":"evt_1GY6JZZT23X11RQBDQ2357GGEZ","guard":["!=","@config.look","chips"],"effects":[["render-ui","main",{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"search-input","placeholder":"@config.searchPlaceholder","value":"@entity.query","event":"SEARCH"},{"type":"empty-state","icon":"@config.emptyIcon","title":"@config.emptyLabel","description":"@config.emptyDescription","className":["if",["=",["array/len","@entity.rows"],0],"","hidden"]},{"type":"stack","direction":"vertical","gap":"sm","children":["array/map","@entity.rows",["fn","row",{"type":"card","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"stack","direction":"horizontal","gap":"sm","align":"center","children":[{"type":"typography","content":"@row.behavior","variant":"h4","weight":"semibold"},{"type":"badge","label":"@row.topic","variant":"default"},{"type":"badge","label":"@row.level","variant":"info"},{"type":"badge","label":["str/concat",["math/round",["*","@row.score",100]],"%"],"variant":"success","className":["if",[">","@row.score",0],"","hidden"]}]},{"type":"typography","content":"@row.description","variant":"body","color":"muted"},{"type":"stack","direction":"horizontal","gap":"sm","align":"center","children":[{"type":"button","label":"@config.pickLabel","variant":"primary","size":"sm","action":"PICK","actionPayload":{"behavior":"@row.behavior"},"className":["if",["=","@config.pick","toggle"],"hidden",""]},{"type":"switch","label":"@config.toggleLabel","checked":["array/includes","@entity.selected","@row.behavior"],"action":"TOGGLE","actionPayload":{"behavior":"@row.behavior"},"className":["if",["=","@config.pick","toggle"],"","hidden"]},{"type":"button","label":"@config.describeLabel","variant":"ghost","size":"sm","action":"DESCRIBE","actionPayload":{"behavior":"@row.behavior"}}]},{"type":"stack","direction":"vertical","gap":"xs","className":["if",["=","@entity.detail","@row.behavior"],"","hidden"],"children":["array/map","@entity.knobs",["fn","k",{"type":"typography","content":["str/concat",["object/get","@k","label","@k.name"]," · ","@k.type"," — ",["object/get","@k","description",""]],"variant":"caption"}]]}]}]}]]}]}]]},{"from":"ready","to":"ready","event":"SEARCH","eventId":"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM","guard":["=","@payload.searchTerm",""],"effects":[["set","@entity.query",""],["set","@entity.rows",["array/map","@entity.entries",["fn","e",{"behavior":"@e.behavior","description":"@e.description","topic":"@e.topic","level":"@e.level","score":0}]]],["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"searching","event":"SEARCH","eventId":"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM","guard":["!=","@payload.searchTerm",""],"effects":[["set","@entity.query","@payload.searchTerm"],["set","@entity.status","searching"],["call-service","llm","embed",{"texts":["@payload.searchTerm"]},{"emit":{"success":"EMBEDDED","failure":"SEARCH_FAILED"}}]]},{"from":"ready","to":"ready","event":"PICK","eventId":"evt_WX8GVYBETVQDDWV8DB1NH2WV5M","effects":[["emit","PICKED",{"behavior":"@payload.behavior","description":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"description",""],"trait":["array/first",["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"traits",[]]],"value":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"value"]}]]},{"from":"ready","to":"ready","event":"TOGGLE","eventId":"evt_4TAWV2JF2S7HCJH7RCAMNR469E","guard":"@payload.checked","effects":[["set","@entity.selected",["array/append",["array/filter","@entity.selected",["fn","b",["!=","@b","@payload.behavior"]]],"@payload.behavior"]],["emit","TOGGLED",{"behavior":"@payload.behavior","checked":true,"topic":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"topic",""],"value":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"value"]}],["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"ready","event":"TOGGLE","eventId":"evt_4TAWV2JF2S7HCJH7RCAMNR469E","guard":["not","@payload.checked"],"effects":[["set","@entity.selected",["array/filter","@entity.selected",["fn","b",["!=","@b","@payload.behavior"]]]],["emit","TOGGLED",{"behavior":"@payload.behavior","checked":false,"topic":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"topic",""],"value":["object/get",["array/find","@entity.entries",["fn","e",["=","@e.behavior","@payload.behavior"]]],"value"]}],["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"ready","event":"SELECTION","eventId":"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN","effects":[["set","@entity.selected","@payload.behaviors"],["emit","CATALOG_SHOWN",{}]]},{"from":"ready","to":"describing","event":"DESCRIBE","eventId":"evt_94D10F75Y1JZ0HZDJP0WW01GEW","effects":[["set","@entity.detail","@payload.behavior"],["set","@entity.status","describing"],["behavior/describe",{"behavior":"@payload.behavior"},{"emit":{"success":"DESCRIBED","failure":"DESCRIBE_FAILED"}}]]},{"from":"searching","to":"loading","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","effects":[["set","@entity.status","loading"],["render-ui","main",{"type":"loading-state","message":"Loading the catalog"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"success":"LISTED","failure":"LIST_FAILED"}}]]},{"from":"searching","to":"ready","event":"EMBEDDED","eventId":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","guard":[">",["array/len","@payload.embeddings"],0],"effects":[["set","@entity.rows",["array/sort",["array/filter",["array/map","@entity.entries",["fn","e",{"behavior":"@e.behavior","description":"@e.description","topic":"@e.topic","level":"@e.level","score":["array/cosine",["object/get","@e.vectors","description"],["array/first","@payload.embeddings"]]}]],["fn","r",[">=","@r.score","@config.minScore"]]],"score","desc"]],["set","@entity.status","ready"],["emit","CATALOG_SHOWN",{}]]},{"from":"searching","to":"ready","event":"EMBEDDED","eventId":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","guard":["=",["array/len","@payload.embeddings"],0],"effects":[["set","@entity.error","The model returned no embedding"],["set","@entity.status","ready"],["render-ui","toast",{"type":"alert","variant":"error","message":"Search is unavailable: the model returned no embedding."}],["emit","CATALOG_SHOWN",{}]]},{"from":"searching","to":"ready","event":"SEARCH_FAILED","eventId":"evt_6FBS0SCAN05AG9GSPG78SCKWEA","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","ready"],["render-ui","toast",{"type":"alert","variant":"error","message":["str/concat","Search failed: ","@payload.error"]}],["emit","CATALOG_SHOWN",{}]]},{"from":"describing","to":"loading","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","effects":[["set","@entity.status","loading"],["render-ui","main",{"type":"loading-state","message":"Loading the catalog"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"success":"LISTED","failure":"LIST_FAILED"}}]]},{"from":"describing","to":"ready","event":"DESCRIBED","eventId":"evt_EFQ8VDMSTWCXEA7F2XG1H74E55","effects":[["set","@entity.knobs",["object/get","@payload.result","knobs",[]]],["set","@entity.status","ready"],["emit","CATALOG_SHOWN",{}]]},{"from":"describing","to":"ready","event":"DESCRIBE_FAILED","eventId":"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A","effects":[["set","@entity.error","@payload.error"],["set","@entity.knobs",[]],["set","@entity.status","ready"],["render-ui","toast",{"type":"alert","variant":"error","message":["str/concat","Details failed: ","@payload.error"]}],["emit","CATALOG_SHOWN",{}]]},{"from":"failed","to":"failed","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","guard":["=","@config.look","chips"],"effects":[["render-ui","main",null]]},{"from":"failed","to":"failed","event":"INIT","eventId":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","guard":["!=","@config.look","chips"],"effects":[["render-ui","main",{"type":"error-state","title":"The catalog could not be listed","message":"@entity.error","retryEvent":"RETRY"}]]},{"from":"failed","to":"loading","event":"RETRY","eventId":"evt_7ZPTFV9DXPPYV86HGXGXZE0XTX","effects":[["set","@entity.status","loading"],["render-ui","main",{"type":"loading-state","message":"Loading the catalog"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"success":"LISTED","failure":"LIST_FAILED"}}]]}]},"config":{"emptyDescription":{"type":"string","default":"","label":"Empty explanation","description":"A line under the empty message saying why nothing is listed.","tier":"presentation"},"searchPlaceholder":{"type":"string","default":"Search building blocks","label":"Search placeholder","tier":"presentation"},"scope":{"type":"[string]","default":["almadar-std/ui/core"],"label":"Where to look","description":"Registry folders (`<prefix>/<topic>[/<tier>]`) the catalog lists.","tier":"domain","items":{"type":"string"}},"look":{"type":"string","default":"list","label":"How are behaviors shown?","description":"list = a search box over a card per behavior with Use and Details; chips = the best matches for the current query as a row of chips under a prompt that lives elsewhere (route its text to SEARCH), nothing while the query is empty.","synonyms":"suggestion chips, prompt suggestions, compact catalog","tier":"presentation","values":["list","chips"]},"emptyIcon":{"type":"string","default":"search","label":"Empty icon","tier":"presentation"},"pickLabel":{"type":"string","default":"Use","label":"Pick button label","tier":"presentation"},"emptyLabel":{"type":"string","default":"Nothing matches.","label":"Empty message","tier":"presentation"},"describeLabel":{"type":"string","default":"Details","label":"Details button label","tier":"presentation"},"maxChips":{"type":"number","default":4,"label":"How many chips?","description":"In the chips look, how many of the best matches are shown.","tier":"presentation"},"minScore":{"type":"number","default":0.3,"label":"Minimum match","description":"Cosine similarity a behavior needs to its description to stay in search results.","tier":"policy"},"toggleLabel":{"type":"string","default":"Enabled","label":"Switch label","tier":"presentation"},"pick":{"type":"string","default":"button","label":"How is a behavior chosen?","description":"button = a Use button per card that picks it once (PICKED); toggle = an on/off switch per card for a set of chosen behaviors (TOGGLED), seeded by SELECTION.","synonyms":"enable disable, on off switch, plugin toggles, choose many","tier":"presentation","values":["button","toggle"]}},"scope":"instance"}],"pages":[{"name":"BehaviorCatalogPage","id":"pag_7RJJJWNR0PW0BEN9M4YZB4KWBF","path":"/behavior-catalog","traits":[{"ref":"BehaviorCatalog","refId":"trt_T8V9S3PWP7EB3M4H05PEF4830D"}]}],"types":{"BehaviorDescription":[{"name":"behavior","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]},{"name":"orbitals","type":"[object]","required":true,"properties":[{"name":"traits","type":"[object]","required":true,"properties":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}]}]}],"CatalogHit":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string","required":true},{"name":"topic","type":"string","required":true},{"name":"level","type":"string","required":true},{"name":"capabilities","type":"[string]"},{"name":"traits","type":"[trait]","required":true},{"name":"value","type":"behavior","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"CatalogRow":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string","required":true},{"name":"topic","type":"string","required":true},{"name":"level","type":"string","required":true},{"name":"score","type":"number","required":true}],"DescribedOrbital":[{"name":"traits","type":"[object]","required":true,"properties":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}]}],"DescribedTrait":[{"name":"trait","type":"string","required":true},{"name":"knobs","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}],"KnobField":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"label","type":"string"},{"name":"description","type":"string"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_GY95FGJNA4AN21VVWH4V014SSM":{"id":"ent_GY95FGJNA4AN21VVWH4V014SSM","kind":"entity","bakedName":"BehaviorCatalogView","curName":"BehaviorCatalogView","renames":[],"owner":"workspace"},"evt_1GY6JZZT23X11RQBDQ2357GGEZ":{"id":"evt_1GY6JZZT23X11RQBDQ2357GGEZ","kind":"event","bakedName":"CATALOG_SHOWN","curName":"CATALOG_SHOWN","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_274R36YR1RC0WE2YDZE9K18J8S":{"id":"evt_274R36YR1RC0WE2YDZE9K18J8S","kind":"event","bakedName":"TOGGLED","curName":"TOGGLED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_4TAWV2JF2S7HCJH7RCAMNR469E":{"id":"evt_4TAWV2JF2S7HCJH7RCAMNR469E","kind":"event","bakedName":"TOGGLE","curName":"TOGGLE","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_50M0Q891K7GSKM9Y22SN6GE98D":{"id":"evt_50M0Q891K7GSKM9Y22SN6GE98D","kind":"event","bakedName":"LISTED","curName":"LISTED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_6FBS0SCAN05AG9GSPG78SCKWEA":{"id":"evt_6FBS0SCAN05AG9GSPG78SCKWEA","kind":"event","bakedName":"SEARCH_FAILED","curName":"SEARCH_FAILED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A":{"id":"evt_7YC1DJ1ZVFZXQJJTBRS6G2761A","kind":"event","bakedName":"DESCRIBE_FAILED","curName":"DESCRIBE_FAILED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_7ZPTFV9DXPPYV86HGXGXZE0XTX":{"id":"evt_7ZPTFV9DXPPYV86HGXGXZE0XTX","kind":"event","bakedName":"RETRY","curName":"RETRY","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_94D10F75Y1JZ0HZDJP0WW01GEW":{"id":"evt_94D10F75Y1JZ0HZDJP0WW01GEW","kind":"event","bakedName":"DESCRIBE","curName":"DESCRIBE","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN":{"id":"evt_B67WY6FT57X2KHM5AXRJ9SQ0HN","kind":"event","bakedName":"SELECTION","curName":"SELECTION","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_EFQ8VDMSTWCXEA7F2XG1H74E55":{"id":"evt_EFQ8VDMSTWCXEA7F2XG1H74E55","kind":"event","bakedName":"DESCRIBED","curName":"DESCRIBED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2":{"id":"evt_FW5VF2DKK5SSJGHYG0ZJ8ZPST2","kind":"event","bakedName":"LIST_FAILED","curName":"LIST_FAILED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_JH6KVQ4KTQ9XBKRJDGMNCBZRC1":{"id":"evt_JH6KVQ4KTQ9XBKRJDGMNCBZRC1","kind":"event","bakedName":"PICKED","curName":"PICKED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_KM1PXBYDP16V0PFXYFG2N1FZT4":{"id":"evt_KM1PXBYDP16V0PFXYFG2N1FZT4","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_KNZJ2XZ05BG2NG6VMFY12DE640":{"id":"evt_KNZJ2XZ05BG2NG6VMFY12DE640","kind":"event","bakedName":"EMBEDDED","curName":"EMBEDDED","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM":{"id":"evt_PVB5J9ZTNAXAN4ARDR77RVCQEM","kind":"event","bakedName":"SEARCH","curName":"SEARCH","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"evt_WX8GVYBETVQDDWV8DB1NH2WV5M":{"id":"evt_WX8GVYBETVQDDWV8DB1NH2WV5M","kind":"event","bakedName":"PICK","curName":"PICK","renames":[],"owner":"workspace","parent":"trt_T8V9S3PWP7EB3M4H05PEF4830D"},"orb_EA1NVKFM8YT4FD2972R201T6KV":{"id":"orb_EA1NVKFM8YT4FD2972R201T6KV","kind":"orbital","bakedName":"BehaviorCatalogOrbital","curName":"BehaviorCatalogOrbital","renames":[],"owner":"workspace"},"pag_7RJJJWNR0PW0BEN9M4YZB4KWBF":{"id":"pag_7RJJJWNR0PW0BEN9M4YZB4KWBF","kind":"page","bakedName":"BehaviorCatalogPage","curName":"BehaviorCatalogPage","renames":[],"owner":"workspace"},"trt_T8V9S3PWP7EB3M4H05PEF4830D":{"id":"trt_T8V9S3PWP7EB3M4H05PEF4830D","kind":"trait","bakedName":"BehaviorCatalog","curName":"BehaviorCatalog","renames":[],"owner":"workspace"}}}}
@@ -1 +1 @@
1
- {"name":"std-behavior-tour","version":"1.0.0","description":"std-behavior-tour — plays a real behavior through a scripted sequence so people can watch it work: a guided demo on a website, or a step-by-step tutorial. The composing program embeds the running behavior in the `demo` slot and lists `events` (the event each step sends) and `captions` (what is shown while it plays; only ever rendered, so they may be translated). The composed std-learn-transport owns Play / Pause / Step / Reset and the clock; on every step the tour emits TOUR_STEP { index, event } and shows that step's caption, and the program routes TOUR_STEP to the behavior's own events with a filtered listen (`Tour.TOUR_STEP -> MOVE when (= ?event \"MOVE\")`). Reset emits TOUR_RESET. `loop` quietly resets the demo after the last step (TOUR_RESET, intro caption) and plays again. `playWhenVisible` starts it the first time it scrolls into view (never under reduced motion), and `compact` keeps only Play / Pause and Reset, and `demoTheme` shows the demo in its own theme so it stands apart from the page. Pick to demonstrate or teach a behavior.","orbitals":[{"name":"BehaviorTourOrbital","id":"orb_Y2TGKCSPS6VCK0H4K7B7QY3W88","uses":[{"from":"std/behaviors/std-learn-transport","as":"LearnTransport"}],"entity":{"name":"TourScene","id":"ent_K9QMWVT34A1J5528JPWE47WWA9","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"active","type":"boolean","default":false},{"name":"title","type":"string"},{"name":"running","type":"boolean","default":false},{"name":"steps","type":"number","default":0},{"name":"elapsedMs","type":"number","default":0},{"name":"done","type":"boolean","default":false},{"name":"cursor","type":"number","default":0},{"name":"shown","type":"number","default":-1},{"name":"offscreenPaused","type":"boolean","default":false}],"shared":true},"traits":[{"ref":"LearnTransport.traits.LearnTransportSim","id":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA","name":"TourTransport","linkedEntity":"TourScene","linkedEntityId":"ent_K9QMWVT34A1J5528JPWE47WWA9","config":{"ofWord":{"type":"unknown","default":"@config.ofWord"},"playLabel":{"type":"unknown","default":"@config.playLabel"},"stepIntervalMs":{"type":"unknown","default":"@config.stepIntervalMs"},"resetLabel":{"type":"unknown","default":"@config.resetLabel"},"compact":{"type":"unknown","default":"@config.compact"},"title":{"type":"unknown","default":"@config.title"},"runningLabel":{"type":"unknown","default":"@config.runningLabel"},"pauseLabel":{"type":"unknown","default":"@config.pauseLabel"},"stepLabel":{"type":"unknown","default":"@config.stepLabel"},"speedLabel":{"type":"unknown","default":"@config.speedLabel"},"summary":{"type":"unknown","default":"@config.summary"},"stepWord":{"type":"unknown","default":"@config.stepWord"},"autoRun":{"type":"unknown","default":"@config.autoPlay"},"pausedLabel":{"type":"unknown","default":"@config.pausedLabel"},"runWhenVisible":{"type":"unknown","default":false},"doneLabel":{"type":"unknown","default":"@config.doneLabel"}},"listens":[{"event":"TOUR_PLAY","triggers":"TOGGLE_RUN","source":{"kind":"trait","trait":"BehaviorTour"}}]},{"name":"TourEmptyDemo","id":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH","effectRow":[{"kind":"render-ui","resource":"main"}],"category":"interaction","linkedEntity":"TourScene","linkedEntityId":"ent_K9QMWVT34A1J5528JPWE47WWA9","entityRefIds":{"TourScene":"ent_K9QMWVT34A1J5528JPWE47WWA9"},"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_AR8CKFNV8RXMCF8J0NGE2M2HX8","name":"Initialize"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_AR8CKFNV8RXMCF8J0NGE2M2HX8","effects":[["render-ui","main",null]]}]},"scope":"instance"},{"name":"BehaviorTour","id":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3","entityRebindable":true,"entityContract":{"requires":["active","running"],"provides":["cursor","done","offscreenPaused","shown"]},"effectRow":[{"kind":"emit","resource":"TOUR_PLAY"},{"kind":"emit","resource":"TOUR_RESET"},{"kind":"emit","resource":"TOUR_STEP"},{"kind":"render-ui","resource":"main"},{"kind":"set","resource":"@entity.cursor"},{"kind":"set","resource":"@entity.done"},{"kind":"set","resource":"@entity.offscreenPaused"},{"kind":"set","resource":"@entity.shown"}],"category":"interaction","linkedEntity":"TourScene","linkedEntityId":"ent_K9QMWVT34A1J5528JPWE47WWA9","entityRefIds":{"TourScene":"ent_K9QMWVT34A1J5528JPWE47WWA9"},"traitEmbedIds":{"TourTransport":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA","TourEmptyDemo":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH"},"emits":[{"event":"TOUR_PLAY","eventId":"evt_5VF07BHGX2REHDV8JB19JDVB5R","description":"Toggles the composed transport's clock: the demo scrolled into view with playWhenVisible on, or it left the view while playing (paused) and came back (resumed).","tier":"internal"},{"event":"TOUR_STEP","eventId":"evt_V14GXG32X5HEJH7M7EVQ2EJ98T","description":"One scripted step: the program routes it to the demo behavior's own event with a filtered listen on `event`.","synonyms":"tour step, demo step, tutorial step, next step","tier":"domain","scope":"external","payloadSchema":[{"name":"index","type":"int"},{"name":"event","type":"string"}]},{"event":"TOUR_RESET","eventId":"evt_1WJKYQ97HDKRPY66JKHATW205X","description":"Reset was pressed: the program returns the demo behavior to its starting state.","synonyms":"restart tour, reset demo","tier":"domain","scope":"external"}],"listens":[{"event":"LEARN_STEP","eventId":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","triggers":"LEARN_STEP","triggersId":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","source":{"kind":"trait","trait":"TourTransport","traitId":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA"}},{"event":"LEARN_RESET","eventId":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","triggers":"LEARN_RESET","triggersId":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","source":{"kind":"trait","trait":"TourTransport","traitId":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA"}}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_XSX7QMNM7ST3WZZCKRSNFM5GVK","name":"Initialize"},{"key":"LEARN_STEP","id":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","name":"Learn Step","description":"One tick of the composed transport, or its Step button.","tier":"internal","payloadSchema":[{"name":"steps","type":"int"}],"listened":true},{"key":"TOUR_VISIBLE","id":"evt_YX1B8CGE1J70S3Z0PN4JJ03T3W","name":"Tour Visible"},{"key":"TOUR_HIDDEN","id":"evt_E6SW20HHDKRPSZHXKTW193YB2R","name":"Tour Hidden"},{"key":"TOUR_SHOWN","id":"evt_EH3C19Q57CJKPDHRXCK92DB1Q3","name":"Tour Shown"},{"key":"LEARN_RESET","id":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","name":"Learn Reset","description":"The composed transport's Reset.","tier":"internal","listened":true},{"key":"TOUR_PLAY","id":"evt_5VF07BHGX2REHDV8JB19JDVB5R","name":"Tour Play","description":"Toggles the composed transport's clock: the demo scrolled into view with playWhenVisible on, or it left the view while playing (paused) and came back (resumed).","tier":"internal"},{"key":"TOUR_STEP","id":"evt_V14GXG32X5HEJH7M7EVQ2EJ98T","name":"Tour Step","description":"One scripted step: the program routes it to the demo behavior's own event with a filtered listen on `event`.","synonyms":"tour step, demo step, tutorial step, next step","tier":"domain","payloadSchema":[{"name":"index","type":"int"},{"name":"event","type":"string"}]},{"key":"TOUR_RESET","id":"evt_1WJKYQ97HDKRPY66JKHATW205X","name":"Tour Reset","description":"Reset was pressed: the program returns the demo behavior to its starting state.","synonyms":"restart tour, reset demo","tier":"domain"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_XSX7QMNM7ST3WZZCKRSNFM5GVK","effects":[["set","@entity.cursor",0],["set","@entity.shown",-1],["render-ui","main","@config.tourContent"]]},{"from":"idle","to":"idle","event":"LEARN_STEP","eventId":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","guard":["and",["==","@entity.active",true],["not",["==","@entity.done",true]],[">",["array/len","@config.events"],0],[">=","@entity.cursor",["array/len","@config.events"]]],"effects":[["set","@entity.cursor",0],["set","@entity.shown",-1],["emit","TOUR_RESET",{}],["render-ui","main","@config.tourContent"]]},{"from":"idle","to":"idle","event":"LEARN_STEP","eventId":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","guard":["and",["==","@entity.active",true],["not",["==","@entity.done",true]],["<","@entity.cursor",["array/len","@config.events"]]],"effects":[["let",[["count",["array/len","@config.events"]],["at","@entity.cursor"],["next",["+","@at",1]]],["do",["set","@entity.shown","@at"],["set","@entity.cursor","@next"],["set","@entity.done",["and",["not","@config.loop"],[">=","@next","@count"]]],["emit","TOUR_STEP",{"index":"@at","event":["array/nth","@config.events","@at"]}]]],["render-ui","main","@config.tourContent"]]},{"from":"idle","to":"idle","event":"TOUR_VISIBLE","eventId":"evt_YX1B8CGE1J70S3Z0PN4JJ03T3W","guard":["and",["==","@entity.active",true],["not",["==","@entity.running",true]],["not",["==","@entity.done",true]]],"effects":[["emit","TOUR_PLAY",{}],["render-ui","main","@config.tourContent"]]},{"from":"idle","to":"idle","event":"TOUR_HIDDEN","eventId":"evt_E6SW20HHDKRPSZHXKTW193YB2R","guard":["and",["==","@entity.active",true],["==","@entity.running",true],["not",["==","@entity.done",true]]],"effects":[["set","@entity.offscreenPaused",true],["emit","TOUR_PLAY",{}]]},{"from":"idle","to":"idle","event":"TOUR_SHOWN","eventId":"evt_EH3C19Q57CJKPDHRXCK92DB1Q3","guard":["and",["==","@entity.offscreenPaused",true],["not",["==","@entity.running",true]]],"effects":[["set","@entity.offscreenPaused",false],["emit","TOUR_PLAY",{}]]},{"from":"idle","to":"idle","event":"LEARN_RESET","eventId":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","effects":[["set","@entity.cursor",0],["set","@entity.done",false],["set","@entity.shown",-1],["emit","TOUR_RESET",{}],["render-ui","main","@config.tourContent"]]}]},"config":{"desktopFrame":{"type":"boolean","default":false,"label":"Desktop frame","description":"Show the demo as a whole app window: rendered at desktop size (1280 by 800) in a browser-style frame and scaled down to fit, so a full page keeps its real layout at any width","tier":"presentation"},"autoPlay":{"type":"boolean","default":false,"label":"Play on load","description":"Start playing as soon as the tour appears","tier":"presentation"},"pausedLabel":{"type":"string","default":"Paused","label":"Paused label","tier":"presentation"},"pauseLabel":{"type":"string","default":"Pause","label":"Pause label","tier":"presentation"},"playLabel":{"type":"string","default":"Play","label":"Play label","tier":"presentation"},"loop":{"type":"boolean","default":true,"label":"Loop","description":"Start again from the first step after the last one instead of stopping","tier":"presentation"},"speedLabel":{"type":"string","default":"Speed","label":"Speed label","tier":"presentation"},"summary":{"type":"string","default":"","label":"Summary","description":"One line under the title; empty hides it","tier":"presentation"},"stepIntervalMs":{"type":"number","default":2200,"label":"Step interval","description":"Milliseconds each step stays on screen while playing","tier":"presentation"},"controlsAt":{"type":"string","default":"below","label":"Controls position","description":"Where Play / Pause and Reset sit: below the demo, or over its top corner, shown while the demo is hovered or focused, so the demo starts level with whatever sits beside it","tier":"presentation","values":["below","corner"]},"doneLabel":{"type":"string","default":"Done","label":"Done label","tier":"presentation"},"resetLabel":{"type":"string","default":"Reset","label":"Reset label","tier":"presentation"},"events":{"type":"[string]","default":[],"label":"Step events","description":"In order: the event name each step sends to the demo","synonyms":"script, walkthrough, tutorial steps","tier":"domain","items":{"type":"string"}},"stepWord":{"type":"string","default":"Step","label":"Step word","tier":"presentation"},"stepLabel":{"type":"string","default":"Step","label":"Step label","tier":"presentation"},"title":{"type":"string","default":"","label":"Title","description":"Shown in the control bar; empty hides it","tier":"presentation"},"playWhenVisible":{"type":"boolean","default":false,"label":"Play when visible","description":"Start playing the first time the tour scrolls into view (never under reduced motion)","tier":"presentation"},"demoTheme":{"type":"string","default":"","label":"Demo theme","description":"Theme the running demo is shown in (a theme name with its mode, such as almadar-dark), so a live demo stands apart from the page around it; empty keeps the page's theme","tier":"presentation"},"runningLabel":{"type":"string","default":"Running","label":"Running label","tier":"presentation"},"captions":{"type":"[string]","default":[],"label":"Step captions","description":"In the same order as the events: what is shown while each step plays (rendered only, so it may be translated)","tier":"presentation","items":{"type":"string"}},"compact":{"type":"boolean","default":true,"label":"Compact controls","description":"Show only Play / Pause and Reset","tier":"presentation"},"ofWord":{"type":"string","default":"of","label":"Of word","tier":"presentation"},"introCaption":{"type":"string","default":"","label":"Intro caption","description":"Shown before the first step and after Reset","tier":"presentation"},"demo":{"type":"trait","default":"@trait.TourEmptyDemo","label":"Demo","description":"The running behavior the tour plays, as a @trait reference","tier":"domain","refId":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH"},"tourContent":{"type":"render-ui","default":{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"box","className":"relative group","children":[["if",["==","@config.controlsAt","corner"],{"type":"box","className":"absolute top-2 end-2 z-10 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100","children":["@trait.TourTransport"]},null],{"type":"animated-reveal","trigger":"scroll","animation":"none","threshold":0.4,"revealEvent":["if","@config.playWhenVisible","TOUR_VISIBLE",""],"enterEvent":"TOUR_SHOWN","leaveEvent":"TOUR_HIDDEN","children":[{"type":"box","data-theme":"@config.demoTheme","animateChanges":true,"className":["if","@config.desktopFrame","rounded-container overflow-hidden border border-border shadow-elevation-popover bg-background","rounded-container"],"children":[["if","@config.desktopFrame",{"type":"stack","direction":"vertical","gap":"none","children":[{"type":"stack","direction":"horizontal","gap":"xs","align":"center","className":"px-3 py-2 bg-muted border-b border-border","aria-hidden":true,"children":[{"type":"box","className":"w-2.5 h-2.5 rounded-full bg-error"},{"type":"box","className":"w-2.5 h-2.5 rounded-full bg-warning"},{"type":"box","className":"w-2.5 h-2.5 rounded-full bg-success"}]},{"type":"scaled-diagram","children":[{"type":"box","className":"w-[1280px] h-[800px] overflow-hidden bg-background","children":["@config.demo"]}]}]},{"type":"card","padding":"md","children":["@config.demo"]}]]}]}]},{"type":"box","animateChanges":true,"children":[{"type":"stack","direction":"horizontal","gap":"sm","align":"start","className":["if",["==",["str/default",["if",["<","@entity.shown",0],"@config.introCaption",["array/nth","@config.captions","@entity.shown"]],""],""],"hidden",""],"children":[{"type":"icon","name":"message-square-text","size":"md","color":"primary"},{"type":"typography","variant":"body","content":["if",["<","@entity.shown",0],"@config.introCaption",["array/nth","@config.captions","@entity.shown"]]}]}]},["if",["==","@config.controlsAt","below"],"@trait.TourTransport",null]]},"label":"Tour layout","tier":"internal"}},"scope":"instance"}],"pages":[{"name":"BehaviorTourPage","id":"pag_2JKAPENPB1V5GV9CRVDK9R8CNS","path":"/tour","traits":[{"ref":"BehaviorTour","refId":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_K9QMWVT34A1J5528JPWE47WWA9":{"id":"ent_K9QMWVT34A1J5528JPWE47WWA9","kind":"entity","bakedName":"TourScene","curName":"TourScene","renames":[],"owner":"workspace"},"evt_1WJKYQ97HDKRPY66JKHATW205X":{"id":"evt_1WJKYQ97HDKRPY66JKHATW205X","kind":"event","bakedName":"TOUR_RESET","curName":"TOUR_RESET","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_5VF07BHGX2REHDV8JB19JDVB5R":{"id":"evt_5VF07BHGX2REHDV8JB19JDVB5R","kind":"event","bakedName":"TOUR_PLAY","curName":"TOUR_PLAY","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_AR8CKFNV8RXMCF8J0NGE2M2HX8":{"id":"evt_AR8CKFNV8RXMCF8J0NGE2M2HX8","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH"},"evt_E6SW20HHDKRPSZHXKTW193YB2R":{"id":"evt_E6SW20HHDKRPSZHXKTW193YB2R","kind":"event","bakedName":"TOUR_HIDDEN","curName":"TOUR_HIDDEN","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_EH3C19Q57CJKPDHRXCK92DB1Q3":{"id":"evt_EH3C19Q57CJKPDHRXCK92DB1Q3","kind":"event","bakedName":"TOUR_SHOWN","curName":"TOUR_SHOWN","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG":{"id":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","kind":"event","bakedName":"LEARN_RESET","curName":"LEARN_RESET","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK":{"id":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","kind":"event","bakedName":"LEARN_STEP","curName":"LEARN_STEP","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_V14GXG32X5HEJH7M7EVQ2EJ98T":{"id":"evt_V14GXG32X5HEJH7M7EVQ2EJ98T","kind":"event","bakedName":"TOUR_STEP","curName":"TOUR_STEP","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_XSX7QMNM7ST3WZZCKRSNFM5GVK":{"id":"evt_XSX7QMNM7ST3WZZCKRSNFM5GVK","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_YX1B8CGE1J70S3Z0PN4JJ03T3W":{"id":"evt_YX1B8CGE1J70S3Z0PN4JJ03T3W","kind":"event","bakedName":"TOUR_VISIBLE","curName":"TOUR_VISIBLE","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"orb_Y2TGKCSPS6VCK0H4K7B7QY3W88":{"id":"orb_Y2TGKCSPS6VCK0H4K7B7QY3W88","kind":"orbital","bakedName":"BehaviorTourOrbital","curName":"BehaviorTourOrbital","renames":[],"owner":"workspace"},"pag_2JKAPENPB1V5GV9CRVDK9R8CNS":{"id":"pag_2JKAPENPB1V5GV9CRVDK9R8CNS","kind":"page","bakedName":"BehaviorTourPage","curName":"BehaviorTourPage","renames":[],"owner":"workspace"},"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3":{"id":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3","kind":"trait","bakedName":"BehaviorTour","curName":"BehaviorTour","renames":[],"owner":"workspace"},"trt_D3MHYC8PV7BDKNT20E3SN8RFSA":{"id":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA","kind":"trait","bakedName":"TourTransport","curName":"TourTransport","renames":[],"owner":"workspace"},"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH":{"id":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH","kind":"trait","bakedName":"TourEmptyDemo","curName":"TourEmptyDemo","renames":[],"owner":"workspace"}}}}
1
+ {"name":"std-behavior-tour","version":"1.0.0","description":"std-behavior-tour — plays a real behavior through a scripted sequence so people can watch it work: a guided demo on a website, or a step-by-step tutorial. The composing program embeds the running behavior in the `demo` slot and lists `events` (the event each step sends) and `captions` (what is shown while it plays; only ever rendered, so they may be translated). The composed std-learn-transport owns Play / Pause / Step / Reset and the clock; on every step the tour emits TOUR_STEP { index, event } and shows that step's caption, and the program routes TOUR_STEP to the behavior's own events with a filtered listen (`Tour.TOUR_STEP -> MOVE when (= ?event \"MOVE\")`). Reset emits TOUR_RESET. `loop` quietly resets the demo after the last step (TOUR_RESET, intro caption) and plays again. `playWhenVisible` starts it the first time it scrolls into view (never under reduced motion), and `compact` keeps only Play / Pause and Reset, and `demoTheme` shows the demo in its own theme so it stands apart from the page. Pick to demonstrate or teach a behavior.","orbitals":[{"name":"BehaviorTourOrbital","id":"orb_Y2TGKCSPS6VCK0H4K7B7QY3W88","uses":[{"from":"std/behaviors/std-learn-transport","as":"LearnTransport"}],"entity":{"name":"TourScene","id":"ent_K9QMWVT34A1J5528JPWE47WWA9","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"active","type":"boolean","default":false},{"name":"title","type":"string"},{"name":"running","type":"boolean","default":false},{"name":"steps","type":"number","default":0},{"name":"elapsedMs","type":"number","default":0},{"name":"done","type":"boolean","default":false},{"name":"cursor","type":"number","default":0},{"name":"shown","type":"number","default":-1},{"name":"offscreenPaused","type":"boolean","default":false}],"shared":true},"traits":[{"ref":"LearnTransport.traits.LearnTransportSim","id":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA","name":"TourTransport","linkedEntity":"TourScene","linkedEntityId":"ent_K9QMWVT34A1J5528JPWE47WWA9","config":{"runningLabel":{"type":"unknown","default":"@config.runningLabel"},"pausedLabel":{"type":"unknown","default":"@config.pausedLabel"},"summary":{"type":"unknown","default":"@config.summary"},"ofWord":{"type":"unknown","default":"@config.ofWord"},"pauseLabel":{"type":"unknown","default":"@config.pauseLabel"},"autoRun":{"type":"unknown","default":"@config.autoPlay"},"stepLabel":{"type":"unknown","default":"@config.stepLabel"},"resetLabel":{"type":"unknown","default":"@config.resetLabel"},"runWhenVisible":{"type":"unknown","default":false},"stepWord":{"type":"unknown","default":"@config.stepWord"},"playLabel":{"type":"unknown","default":"@config.playLabel"},"compact":{"type":"unknown","default":"@config.compact"},"speedLabel":{"type":"unknown","default":"@config.speedLabel"},"stepIntervalMs":{"type":"unknown","default":"@config.stepIntervalMs"},"doneLabel":{"type":"unknown","default":"@config.doneLabel"},"title":{"type":"unknown","default":"@config.title"}},"listens":[{"event":"TOUR_PLAY","triggers":"TOGGLE_RUN","source":{"kind":"trait","trait":"BehaviorTour"}}]},{"name":"TourEmptyDemo","id":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH","effectRow":[{"kind":"render-ui","resource":"main"}],"category":"interaction","linkedEntity":"TourScene","linkedEntityId":"ent_K9QMWVT34A1J5528JPWE47WWA9","entityRefIds":{"TourScene":"ent_K9QMWVT34A1J5528JPWE47WWA9"},"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_AR8CKFNV8RXMCF8J0NGE2M2HX8","name":"Initialize"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_AR8CKFNV8RXMCF8J0NGE2M2HX8","effects":[["render-ui","main",null]]}]},"scope":"instance"},{"name":"BehaviorTour","id":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3","entityRebindable":true,"entityContract":{"requires":["active","running"],"provides":["cursor","done","offscreenPaused","shown"]},"effectRow":[{"kind":"emit","resource":"TOUR_PLAY"},{"kind":"emit","resource":"TOUR_RESET"},{"kind":"emit","resource":"TOUR_STEP"},{"kind":"render-ui","resource":"main"},{"kind":"set","resource":"@entity.cursor"},{"kind":"set","resource":"@entity.done"},{"kind":"set","resource":"@entity.offscreenPaused"},{"kind":"set","resource":"@entity.shown"}],"category":"interaction","linkedEntity":"TourScene","linkedEntityId":"ent_K9QMWVT34A1J5528JPWE47WWA9","entityRefIds":{"TourScene":"ent_K9QMWVT34A1J5528JPWE47WWA9"},"traitEmbedIds":{"TourTransport":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA","TourEmptyDemo":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH"},"emits":[{"event":"TOUR_PLAY","eventId":"evt_5VF07BHGX2REHDV8JB19JDVB5R","description":"Toggles the composed transport's clock: the demo scrolled into view with playWhenVisible on, or it left the view while playing (paused) and came back (resumed).","tier":"internal"},{"event":"TOUR_STEP","eventId":"evt_V14GXG32X5HEJH7M7EVQ2EJ98T","description":"One scripted step: the program routes it to the demo behavior's own event with a filtered listen on `event`.","synonyms":"tour step, demo step, tutorial step, next step","tier":"domain","scope":"external","payloadSchema":[{"name":"index","type":"int"},{"name":"event","type":"string"}]},{"event":"TOUR_RESET","eventId":"evt_1WJKYQ97HDKRPY66JKHATW205X","description":"Reset was pressed: the program returns the demo behavior to its starting state.","synonyms":"restart tour, reset demo","tier":"domain","scope":"external"}],"listens":[{"event":"LEARN_STEP","eventId":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","triggers":"LEARN_STEP","triggersId":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","source":{"kind":"trait","trait":"TourTransport","traitId":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA"}},{"event":"LEARN_RESET","eventId":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","triggers":"LEARN_RESET","triggersId":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","source":{"kind":"trait","trait":"TourTransport","traitId":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA"}}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_XSX7QMNM7ST3WZZCKRSNFM5GVK","name":"Initialize"},{"key":"LEARN_STEP","id":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","name":"Learn Step","description":"One tick of the composed transport, or its Step button.","tier":"internal","payloadSchema":[{"name":"steps","type":"int"}],"listened":true},{"key":"TOUR_VISIBLE","id":"evt_YX1B8CGE1J70S3Z0PN4JJ03T3W","name":"Tour Visible"},{"key":"TOUR_HIDDEN","id":"evt_E6SW20HHDKRPSZHXKTW193YB2R","name":"Tour Hidden"},{"key":"TOUR_SHOWN","id":"evt_EH3C19Q57CJKPDHRXCK92DB1Q3","name":"Tour Shown"},{"key":"LEARN_RESET","id":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","name":"Learn Reset","description":"The composed transport's Reset.","tier":"internal","listened":true},{"key":"TOUR_PLAY","id":"evt_5VF07BHGX2REHDV8JB19JDVB5R","name":"Tour Play","description":"Toggles the composed transport's clock: the demo scrolled into view with playWhenVisible on, or it left the view while playing (paused) and came back (resumed).","tier":"internal"},{"key":"TOUR_STEP","id":"evt_V14GXG32X5HEJH7M7EVQ2EJ98T","name":"Tour Step","description":"One scripted step: the program routes it to the demo behavior's own event with a filtered listen on `event`.","synonyms":"tour step, demo step, tutorial step, next step","tier":"domain","payloadSchema":[{"name":"index","type":"int"},{"name":"event","type":"string"}]},{"key":"TOUR_RESET","id":"evt_1WJKYQ97HDKRPY66JKHATW205X","name":"Tour Reset","description":"Reset was pressed: the program returns the demo behavior to its starting state.","synonyms":"restart tour, reset demo","tier":"domain"}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_XSX7QMNM7ST3WZZCKRSNFM5GVK","effects":[["set","@entity.cursor",0],["set","@entity.shown",-1],["render-ui","main","@config.tourContent"]]},{"from":"idle","to":"idle","event":"LEARN_STEP","eventId":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","guard":["and",["==","@entity.active",true],["not",["==","@entity.done",true]],[">",["array/len","@config.events"],0],[">=","@entity.cursor",["array/len","@config.events"]]],"effects":[["set","@entity.cursor",0],["set","@entity.shown",-1],["emit","TOUR_RESET",{}],["render-ui","main","@config.tourContent"]]},{"from":"idle","to":"idle","event":"LEARN_STEP","eventId":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","guard":["and",["==","@entity.active",true],["not",["==","@entity.done",true]],["<","@entity.cursor",["array/len","@config.events"]]],"effects":[["let",[["count",["array/len","@config.events"]],["at","@entity.cursor"],["next",["+","@at",1]]],["do",["set","@entity.shown","@at"],["set","@entity.cursor","@next"],["set","@entity.done",["and",["not","@config.loop"],[">=","@next","@count"]]],["emit","TOUR_STEP",{"index":"@at","event":["array/nth","@config.events","@at"]}]]],["render-ui","main","@config.tourContent"]]},{"from":"idle","to":"idle","event":"TOUR_VISIBLE","eventId":"evt_YX1B8CGE1J70S3Z0PN4JJ03T3W","guard":["and",["==","@entity.active",true],["not",["==","@entity.running",true]],["not",["==","@entity.done",true]]],"effects":[["emit","TOUR_PLAY",{}],["render-ui","main","@config.tourContent"]]},{"from":"idle","to":"idle","event":"TOUR_HIDDEN","eventId":"evt_E6SW20HHDKRPSZHXKTW193YB2R","guard":["and",["==","@entity.active",true],["==","@entity.running",true],["not",["==","@entity.done",true]]],"effects":[["set","@entity.offscreenPaused",true],["emit","TOUR_PLAY",{}]]},{"from":"idle","to":"idle","event":"TOUR_SHOWN","eventId":"evt_EH3C19Q57CJKPDHRXCK92DB1Q3","guard":["and",["==","@entity.offscreenPaused",true],["not",["==","@entity.running",true]]],"effects":[["set","@entity.offscreenPaused",false],["emit","TOUR_PLAY",{}]]},{"from":"idle","to":"idle","event":"LEARN_RESET","eventId":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","effects":[["set","@entity.cursor",0],["set","@entity.done",false],["set","@entity.shown",-1],["emit","TOUR_RESET",{}],["render-ui","main","@config.tourContent"]]}]},"config":{"stepIntervalMs":{"type":"number","default":2200,"label":"Step interval","description":"Milliseconds each step stays on screen while playing","tier":"presentation"},"demo":{"type":"trait","default":"@trait.TourEmptyDemo","label":"Demo","description":"The running behavior the tour plays, as a @trait reference","tier":"domain","refId":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH"},"stepWord":{"type":"string","default":"Step","label":"Step word","tier":"presentation"},"tourContent":{"type":"render-ui","default":{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"box","className":"relative group","children":[["if",["==","@config.controlsAt","corner"],{"type":"box","className":"absolute top-2 end-2 z-10 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100","children":["@trait.TourTransport"]},null],{"type":"animated-reveal","trigger":"scroll","animation":"none","threshold":0.4,"revealEvent":["if","@config.playWhenVisible","TOUR_VISIBLE",""],"enterEvent":"TOUR_SHOWN","leaveEvent":"TOUR_HIDDEN","children":[{"type":"box","data-theme":"@config.demoTheme","animateChanges":true,"className":["if","@config.desktopFrame","rounded-container overflow-hidden border border-border shadow-elevation-popover bg-background","rounded-container"],"children":[["if","@config.desktopFrame",{"type":"stack","direction":"vertical","gap":"none","children":[{"type":"stack","direction":"horizontal","gap":"xs","align":"center","className":"px-3 py-2 bg-muted border-b border-border","aria-hidden":true,"children":[{"type":"box","className":"w-2.5 h-2.5 rounded-full bg-error"},{"type":"box","className":"w-2.5 h-2.5 rounded-full bg-warning"},{"type":"box","className":"w-2.5 h-2.5 rounded-full bg-success"}]},{"type":"scaled-diagram","children":[{"type":"box","className":"w-[1280px] h-[800px] overflow-hidden bg-background","children":["@config.demo"]}]}]},{"type":"card","padding":"md","children":["@config.demo"]}]]}]}]},{"type":"box","animateChanges":true,"children":[{"type":"stack","direction":"horizontal","gap":"sm","align":"start","className":["if",["==",["str/default",["if",["<","@entity.shown",0],"@config.introCaption",["array/nth","@config.captions","@entity.shown"]],""],""],"hidden",""],"children":[{"type":"icon","name":"message-square-text","size":"md","color":"primary"},{"type":"typography","variant":"body","content":["if",["<","@entity.shown",0],"@config.introCaption",["array/nth","@config.captions","@entity.shown"]]}]}]},["if",["==","@config.controlsAt","below"],"@trait.TourTransport",null]]},"label":"Tour layout","tier":"internal"},"ofWord":{"type":"string","default":"of","label":"Of word","tier":"presentation"},"captions":{"type":"[string]","default":[],"label":"Step captions","description":"In the same order as the events: what is shown while each step plays (rendered only, so it may be translated)","tier":"presentation","items":{"type":"string"}},"pauseLabel":{"type":"string","default":"Pause","label":"Pause label","tier":"presentation"},"title":{"type":"string","default":"","label":"Title","description":"Shown in the control bar; empty hides it","tier":"presentation"},"resetLabel":{"type":"string","default":"Reset","label":"Reset label","tier":"presentation"},"doneLabel":{"type":"string","default":"Done","label":"Done label","tier":"presentation"},"stepLabel":{"type":"string","default":"Step","label":"Step label","tier":"presentation"},"introCaption":{"type":"string","default":"","label":"Intro caption","description":"Shown before the first step and after Reset","tier":"presentation"},"runningLabel":{"type":"string","default":"Running","label":"Running label","tier":"presentation"},"playWhenVisible":{"type":"boolean","default":false,"label":"Play when visible","description":"Start playing the first time the tour scrolls into view (never under reduced motion)","tier":"presentation"},"playLabel":{"type":"string","default":"Play","label":"Play label","tier":"presentation"},"demoTheme":{"type":"string","default":"","label":"Demo theme","description":"Theme the running demo is shown in (a theme name with its mode, such as almadar-dark), so a live demo stands apart from the page around it; empty keeps the page's theme","tier":"presentation"},"desktopFrame":{"type":"boolean","default":false,"label":"Desktop frame","description":"Show the demo as a whole app window: rendered at desktop size (1280 by 800) in a browser-style frame and scaled down to fit, so a full page keeps its real layout at any width","tier":"presentation"},"pausedLabel":{"type":"string","default":"Paused","label":"Paused label","tier":"presentation"},"controlsAt":{"type":"string","default":"below","label":"Controls position","description":"Where Play / Pause and Reset sit: below the demo, or over its top corner, shown while the demo is hovered or focused, so the demo starts level with whatever sits beside it","tier":"presentation","values":["below","corner"]},"summary":{"type":"string","default":"","label":"Summary","description":"One line under the title; empty hides it","tier":"presentation"},"compact":{"type":"boolean","default":true,"label":"Compact controls","description":"Show only Play / Pause and Reset","tier":"presentation"},"speedLabel":{"type":"string","default":"Speed","label":"Speed label","tier":"presentation"},"loop":{"type":"boolean","default":true,"label":"Loop","description":"Start again from the first step after the last one instead of stopping","tier":"presentation"},"autoPlay":{"type":"boolean","default":false,"label":"Play on load","description":"Start playing as soon as the tour appears","tier":"presentation"},"events":{"type":"[string]","default":[],"label":"Step events","description":"In order: the event name each step sends to the demo","synonyms":"script, walkthrough, tutorial steps","tier":"domain","items":{"type":"string"}}},"scope":"instance"}],"pages":[{"name":"BehaviorTourPage","id":"pag_2JKAPENPB1V5GV9CRVDK9R8CNS","path":"/tour","traits":[{"ref":"BehaviorTour","refId":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"}]}]}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_K9QMWVT34A1J5528JPWE47WWA9":{"id":"ent_K9QMWVT34A1J5528JPWE47WWA9","kind":"entity","bakedName":"TourScene","curName":"TourScene","renames":[],"owner":"workspace"},"evt_1WJKYQ97HDKRPY66JKHATW205X":{"id":"evt_1WJKYQ97HDKRPY66JKHATW205X","kind":"event","bakedName":"TOUR_RESET","curName":"TOUR_RESET","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_5VF07BHGX2REHDV8JB19JDVB5R":{"id":"evt_5VF07BHGX2REHDV8JB19JDVB5R","kind":"event","bakedName":"TOUR_PLAY","curName":"TOUR_PLAY","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_AR8CKFNV8RXMCF8J0NGE2M2HX8":{"id":"evt_AR8CKFNV8RXMCF8J0NGE2M2HX8","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH"},"evt_E6SW20HHDKRPSZHXKTW193YB2R":{"id":"evt_E6SW20HHDKRPSZHXKTW193YB2R","kind":"event","bakedName":"TOUR_HIDDEN","curName":"TOUR_HIDDEN","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_EH3C19Q57CJKPDHRXCK92DB1Q3":{"id":"evt_EH3C19Q57CJKPDHRXCK92DB1Q3","kind":"event","bakedName":"TOUR_SHOWN","curName":"TOUR_SHOWN","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG":{"id":"evt_NPWB2MZH3XRHYWPGQ80DEK4GTG","kind":"event","bakedName":"LEARN_RESET","curName":"LEARN_RESET","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK":{"id":"evt_TNK0CAWB5J5JSDQ7R6PP6GJ5WK","kind":"event","bakedName":"LEARN_STEP","curName":"LEARN_STEP","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_V14GXG32X5HEJH7M7EVQ2EJ98T":{"id":"evt_V14GXG32X5HEJH7M7EVQ2EJ98T","kind":"event","bakedName":"TOUR_STEP","curName":"TOUR_STEP","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_XSX7QMNM7ST3WZZCKRSNFM5GVK":{"id":"evt_XSX7QMNM7ST3WZZCKRSNFM5GVK","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"evt_YX1B8CGE1J70S3Z0PN4JJ03T3W":{"id":"evt_YX1B8CGE1J70S3Z0PN4JJ03T3W","kind":"event","bakedName":"TOUR_VISIBLE","curName":"TOUR_VISIBLE","renames":[],"owner":"workspace","parent":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3"},"orb_Y2TGKCSPS6VCK0H4K7B7QY3W88":{"id":"orb_Y2TGKCSPS6VCK0H4K7B7QY3W88","kind":"orbital","bakedName":"BehaviorTourOrbital","curName":"BehaviorTourOrbital","renames":[],"owner":"workspace"},"pag_2JKAPENPB1V5GV9CRVDK9R8CNS":{"id":"pag_2JKAPENPB1V5GV9CRVDK9R8CNS","kind":"page","bakedName":"BehaviorTourPage","curName":"BehaviorTourPage","renames":[],"owner":"workspace"},"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3":{"id":"trt_5TNF6CWK9V9MXZAGW4SSC5RPE3","kind":"trait","bakedName":"BehaviorTour","curName":"BehaviorTour","renames":[],"owner":"workspace"},"trt_D3MHYC8PV7BDKNT20E3SN8RFSA":{"id":"trt_D3MHYC8PV7BDKNT20E3SN8RFSA","kind":"trait","bakedName":"TourTransport","curName":"TourTransport","renames":[],"owner":"workspace"},"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH":{"id":"trt_Q4V3EC6G3R81W9YDB1K9NSNXDH","kind":"trait","bakedName":"TourEmptyDemo","curName":"TourEmptyDemo","renames":[],"owner":"workspace"}}}}