@almadar/std 16.253.0 → 16.255.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.
- package/behaviors/lolo/agent/atoms/std-agent-pool.lolo +355 -0
- package/behaviors/lolo/agent/evals/eval-agent-builder.lolo +159 -0
- package/behaviors/lolo/agent/organisms/std-agent-builder.lolo +321 -26
- package/behaviors/lolo-behavior-contracts.json +1 -1
- package/behaviors/registry/agent/atoms/std-agent-context.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-memory.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-planner.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-pool.orb +1 -0
- package/behaviors/registry/agent/atoms/std-agent-proposal.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-session.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-suggestions.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-trace.orb +1 -1
- package/behaviors/registry/agent/evals/eval-agent-builder.orb +1 -0
- package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1 -1
- package/behaviors/registry/agent/organisms/std-agent-builder.orb +1 -1
- package/behaviors/registry/infra/atoms/std-analytics.orb +1 -1
- package/behaviors/registry/infra/atoms/std-approval-gate.orb +1 -1
- package/behaviors/registry/infra/atoms/std-audit-capture.orb +1 -1
- package/behaviors/registry/infra/atoms/std-cache-aside.orb +1 -1
- package/behaviors/registry/infra/atoms/std-calendar-sync.orb +1 -1
- package/behaviors/registry/infra/atoms/std-cascade-on-delete.orb +1 -1
- package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +1 -1
- package/behaviors/registry/infra/atoms/std-cross-reference.orb +1 -1
- package/behaviors/registry/infra/atoms/std-data-erasure.orb +1 -1
- package/behaviors/registry/infra/atoms/std-data-import.orb +1 -1
- package/behaviors/registry/infra/atoms/std-global-search.orb +1 -1
- package/behaviors/registry/infra/atoms/std-knowledge-loop.orb +1 -1
- package/behaviors/registry/infra/atoms/std-lifecycle.orb +1 -1
- package/behaviors/registry/infra/atoms/std-migration-job.orb +1 -1
- package/behaviors/registry/infra/atoms/std-mod-queue.orb +1 -1
- package/behaviors/registry/infra/atoms/std-notification-center.orb +1 -1
- package/behaviors/registry/infra/atoms/std-notification-preferences.orb +1 -1
- package/behaviors/registry/infra/atoms/std-notify-on-event.orb +1 -1
- package/behaviors/registry/infra/atoms/std-page-search.orb +1 -1
- package/behaviors/registry/infra/atoms/std-page-watch.orb +1 -1
- package/behaviors/registry/infra/atoms/std-permission-matrix.orb +1 -1
- package/behaviors/registry/infra/atoms/std-rate-limiter.orb +1 -1
- package/behaviors/registry/infra/atoms/std-reminder-scheduler.orb +1 -1
- package/behaviors/registry/infra/atoms/std-review-cycle.orb +1 -1
- package/behaviors/registry/infra/atoms/std-row-access-control.orb +1 -1
- package/behaviors/registry/infra/atoms/std-status-lifecycle.orb +1 -1
- package/behaviors/registry/infra/organisms/std-status-lifecycle-control.orb +1 -1
- package/behaviors/registry/ml/atoms/std-data-collector.orb +1 -1
- package/behaviors/registry/ml/atoms/std-graph-builder.orb +1 -1
- package/behaviors/registry/ml/atoms/std-ml-classify.orb +1 -1
- package/behaviors/registry/ml/atoms/std-ml-exact-check.orb +1 -1
- package/behaviors/registry/ml/atoms/std-ml-infer.orb +1 -1
- package/behaviors/registry/ml/atoms/std-ml-label-capture.orb +1 -1
- package/behaviors/registry/ml/atoms/std-ml-lookup.orb +1 -1
- package/behaviors/registry/ml/atoms/std-ml-posterior.orb +1 -1
- package/behaviors/registry/ml/atoms/std-ml-similarity.orb +1 -1
- package/behaviors/registry/ml/atoms/std-tokenizer.orb +1 -1
- package/behaviors/registry/ml/atoms/std-weight-validator.orb +1 -1
- package/behaviors/registry/ml/organisms/std-escalating-decision.orb +1 -1
- package/behaviors/registry/ml/organisms/std-knowledge-tracing.orb +1 -1
- package/behaviors/registry/ui/avl/atoms/std-avl-cosmic-zoom.orb +1 -1
- package/behaviors/registry/ui/avl/atoms/ui-avl-glyph.orb +1 -1
- package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +1 -1
- package/behaviors/registry/ui/avl/atoms/ui-avl-transition-detail.orb +1 -1
- package/behaviors/registry/ui/avl/atoms/ui-avl-transition-explainer.orb +1 -1
- package/behaviors/registry/ui/avl/atoms/ui-behavior-view.orb +1 -1
- package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +1 -1
- package/behaviors/registry/ui/avl/organisms/ui-flow-canvas.orb +1 -1
- package/behaviors/registry/ui/avl/organisms/ui-layers-panel.orb +1 -1
- package/behaviors/registry/ui/avl/organisms/ui-orb-inspector.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-app-layout.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-app-search.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-behavior-catalog.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-behavior-tour.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-board.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-book-reader.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-browse.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-calendar.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-card-grid.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-confirmation.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-dashboard-grid-embedded.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-date-range.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-doc-page.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-esign-request.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-event-log.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-export.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-file-store.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-filter.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-form-advanced.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-gallery.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-gantt-schedule.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-geosearch.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-graphs.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-hero.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-home.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-import.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-language-picker.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-media-section.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-modal-editor.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-modal.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-multi-party-flow.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-notification-panel.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-panel-launcher.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-pricing.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-proof.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-prose.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-rating-review.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-record-detail.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-recurrence.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-related.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-role-gate.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-saved-search.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-scatter.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-scoped-list.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-search.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-selection.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-site-footer.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-site-header.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-slide-deck.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-stat-band.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-stats.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-step-flow.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-steps.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-tabs.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-thread.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-tree.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-version-history.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-wizard.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-workspace-layout.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-animated-graphic.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-animated-reveal.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-aside.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-avatar.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-badge.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-box.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-button.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-card.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-center.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-conditional-wrapper.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-confetti-effect.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-day-cell.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-dialog.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-divider.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-filter-pill.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-flip-container.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-hstack.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-icon.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-image.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-infinite-scroll-sentinel.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-input.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-label.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-overlay.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-pattern-tile.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-presence.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-progress-bar.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-radio.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-range-slider.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-section-header.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-select.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-spacer.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-sparkline.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-spinner.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-stack.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-status-dot.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-branch.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-connection.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-grid.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-lobe.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-mesh.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-morph.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-node.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-pulse.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-ring.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-shield.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-svg-stack.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-switch.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-text-highlight.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-textarea.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-theme-toggle.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-time-slot-cell.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-trend-indicator.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-typewriter-text.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-typography.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-video-embed.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-vstack.orb +1 -1
- package/behaviors/registry/ui/core/molecules/std-stat-rows.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-accordion.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-activation-block.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-activity-rail.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-agent-activity-feed.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-agent-activity-row.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-agent-chat-feed.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-alert.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-animated-counter.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-bloom-quiz-block.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-carousel.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-change-list.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-chart.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-code-block.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-connection-block.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-container.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-data-list.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-doc-search.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-document-details.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-drawer.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-empty-state.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-error-boundary.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-error-state.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-feature-card.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-flex.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-form-field.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-form-section-header.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-gantt.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-geometric-pattern.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-grid.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-header.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-input-group.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-loading-state.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-map-view.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-menu.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-meter.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-modal.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-navigation.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-notification.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-number-stepper.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-page-header.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-pagination.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-popover.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-positioned-canvas.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-progress-dots.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-pull-to-refresh.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-reflection-block.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-rich-text-editor.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-scaled-diagram.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-search-input.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-section.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-side-panel.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-simple-grid.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-skeleton.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-split.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-star-rating.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-table-view.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-tabs.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-tag-input.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-tooltip.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-vote-stack.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-wizard-navigation.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-code-runner-panel.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-form-section.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-form.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-master-detail-layout.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-runtime-debugger.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-timeline.orb +1 -1
- package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +1 -1
- package/behaviors/registry/ui/core/templates/ui-auth-layout.orb +1 -1
- package/behaviors/registry/ui/core/templates/ui-counter-template.orb +1 -1
- package/behaviors/registry/ui/core/templates/ui-dashboard-layout.orb +1 -1
- package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-arcade-play.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-area-fill.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-audio-cue.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-camera-rig.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-chase-ai.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-choice-gate.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-coef-pad.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-curve-fog.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-dungeon-combat.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-fx-narrative.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-fx-trail.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-gate-lock.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-gather.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-gold.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-grid-tactics.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-hero-nav.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-lives.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-loop-lock.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-motion-body.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-objective-reach.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-pad-lock.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-patience.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-patrol-hazard.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-pickup.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-platformer-body.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-production.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-score.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-tutorial-autodemo.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-tutorial-overlay.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-velocity-gate.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-xp.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-zone-card.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-canvas.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-control-button.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-group.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-shape-layer.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-shape.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-skinned-mesh.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-sprite-layer.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-text-layer.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-text.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-game-audio-cue.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-score-display.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-timer-display.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +1 -1
- package/behaviors/registry/ui/game/organisms/std-worldmap-board-2d.orb +1 -1
- package/behaviors/registry/ui/game/templates/ui-game-shell.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-compare.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-fx-cues.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-generate.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-measure.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-param-explorer.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-perturb.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-sample-accumulator.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-sim-3d.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-slope-probe.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +1 -1
- package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +1 -1
- package/dist/behaviors-embeddings.hash.json +2 -2
- package/dist/behaviors-embeddings.json +1 -1
- package/dist/knob-embeddings.hash.json +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"std-learn-live-sim","version":"1.0.0","description":"Generic continuous particle-dynamics instrument — the live-integration sibling of std-physics-projectile: config-declared initial bodies (position, velocity, radius, color) fall under gravity, lose speed to damping, and bounce off the world bounds every tick while Run is engaged; Pause freezes the simulation and Reset restores the initial bodies. Gravity and damping are each exposed as a range-slider so the learner can retune the dynamics live, with a readout of elapsed ticks and a sample body's current speed. So the same mechanism serves any bouncing-particle domain (gas molecules, falling objects, orbit sketches, and beyond) on a physics-canvas. Standalone by default; behind a lab router set matchMode and it renders only when MODE_SELECTED matches.","orbitals":[{"name":"LearnLiveSimOrbital","id":"orb_MAVF2DVV7GXKR3KJ47SZH5Z194","entity":{"name":"LiveSimScene","id":"ent_7JP506H9DBMPNW26SP58P5CRFY","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"active","type":"boolean","default":false},{"name":"title","type":"string"},{"name":"bodies","type":"array","items":{"type":"object","properties":{"radius":{"name":"radius","type":"number","required":false},"x":{"name":"x","type":"number","required":true},"id":{"name":"id","type":"string","required":false},"vx":{"name":"vx","type":"number","required":false},"color":{"name":"color","type":"string","required":false},"y":{"name":"y","type":"number","required":true},"vy":{"name":"vy","type":"number","required":false}}}},{"name":"loadedBodies","type":"array","items":{"type":"object","properties":{"x":{"name":"x","type":"number","required":true},"y":{"name":"y","type":"number","required":true},"id":{"name":"id","type":"string","required":false},"vy":{"name":"vy","type":"number","required":false},"vx":{"name":"vx","type":"number","required":false},"radius":{"name":"radius","type":"number","required":false},"color":{"name":"color","type":"string","required":false}}}},{"name":"running","type":"boolean","default":false},{"name":"gravity","type":"number","default":0},{"name":"damping","type":"number","default":1},{"name":"tickCount","type":"number","default":0},{"name":"sampleSpeed","type":"number","default":0}]},"traits":[{"name":"LiveSimSim","id":"trt_H0PYDGP02F017REWPBCDPK38TB","entityRebindable":true,"entityContract":{"requires":[],"provides":["active","bodies","damping","gravity","loadedBodies","running","sampleSpeed","tickCount","title"]},"effectRow":[{"kind":"emit","resource":"RUN_TOGGLED"},{"kind":"emit","resource":"SIM_RESET"},{"kind":"render-ui","resource":"main"},{"kind":"render-ui","resource":"main","site":"tick"},{"kind":"set","resource":"@entity.active"},{"kind":"set","resource":"@entity.bodies"},{"kind":"set","resource":"@entity.bodies","site":"tick"},{"kind":"set","resource":"@entity.damping"},{"kind":"set","resource":"@entity.gravity"},{"kind":"set","resource":"@entity.loadedBodies"},{"kind":"set","resource":"@entity.running"},{"kind":"set","resource":"@entity.sampleSpeed"},{"kind":"set","resource":"@entity.sampleSpeed","site":"tick"},{"kind":"set","resource":"@entity.tickCount"},{"kind":"set","resource":"@entity.tickCount","site":"tick"},{"kind":"set","resource":"@entity.title"},{"kind":"ticks","site":"tick"}],"category":"interaction","linkedEntity":"LiveSimScene","linkedEntityId":"ent_7JP506H9DBMPNW26SP58P5CRFY","entityRefIds":{"LiveSimScene":"ent_7JP506H9DBMPNW26SP58P5CRFY"},"emits":[{"event":"RUN_TOGGLED","eventId":"evt_5ZB9EAQYX1ZEGQHJSHFKKTB2PT","description":"The simulation was started or paused — a composed listener (readout, grader) can subscribe; a harmless no-op when the atom runs standalone.","synonyms":"run state, play pause, sim toggle","tier":"domain","scope":"external","payloadSchema":[{"name":"running","type":"boolean"}]},{"event":"SIM_RESET","eventId":"evt_5HPGBVBN0WTGE3X3Y2GN417FTT","description":"The learner reset the simulation back to its configured initial bodies and dynamics.","synonyms":"sim restart, clear run, revert bodies","tier":"domain","scope":"external","payloadSchema":[{"name":"bodyCount","type":"number"}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_T3VSFFD9TDMX6G31GYSR6Z8FBZ","name":"Initialize"},{"key":"MODE_SELECTED","id":"evt_2JSM7RMQF1BQGN1TM105TYJ4XW","name":"Mode Selected","description":"Lab router broadcast naming the active mode; this instrument renders when the mode equals matchMode, otherwise renders null.","tier":"domain","payloadSchema":[{"name":"mode","type":"string"}],"listened":true},{"key":"ROSTER_LOADED","id":"evt_6V4FBNAD4G6J83KW8J52R245G0","name":"Roster Loaded","description":"Runtime content feed, honoured only when rosterSource is event — mode names the instrument it is for (the matchMode it carries, blank when standalone) and bodies is the initial body list; a matching instrument re-initialises from it exactly as INIT does from config, any other instrument hides.","tier":"domain","payloadSchema":[{"name":"mode","type":"string","required":true},{"name":"bodies","type":"[object]","required":true,"properties":[{"name":"id","type":"string"},{"name":"x","type":"number","required":true},{"name":"y","type":"number","required":true},{"name":"radius","type":"number"},{"name":"color","type":"string"},{"name":"vx","type":"number"},{"name":"vy","type":"number"}]}],"listened":true},{"key":"TOGGLE_RUN","id":"evt_ZPP3XY45G22R17PR0MARFF8FFA","name":"Toggle Run","description":"Learner pressed the Play/Pause toggle — flips the running flag.","tier":"domain","listened":true},{"key":"RUN","id":"evt_SCM5H54EKH79RHWQQ866Y5DECX","name":"Run","description":"Learner pressed Run — the tick begins integrating gravity, damping, and wall bounce for every body.","tier":"domain","listened":true},{"key":"PAUSE","id":"evt_VA3VMJZ3BJHNSAY0X2NCN33FFG","name":"Pause","description":"Learner pressed Pause — the simulation freezes at its current positions and velocities.","tier":"domain","listened":true},{"key":"RESET","id":"evt_G032R8S94QMJBQAJZX4GJ1GW9Q","name":"Reset","description":"Learner pressed Reset — bodies, gravity, and damping revert to their configured initial values and the tick counter clears.","tier":"domain","listened":true},{"key":"SET_GRAVITY","id":"evt_93MVQBFTSDXCPJ1JB7AGYDGCD7","name":"Set Gravity","description":"Learner dragged the gravity slider — value is the new downward acceleration applied to every body each tick.","tier":"domain","payloadSchema":[{"name":"value","type":"number"}],"listened":true},{"key":"SET_DAMPING","id":"evt_P3WWQVA0KX09YZB4X6XKF3F9YY","name":"Set Damping","description":"Learner dragged the damping slider — value is the new fraction of velocity retained each tick (air resistance).","tier":"domain","payloadSchema":[{"name":"value","type":"number"}],"listened":true},{"key":"RUN_TOGGLED","id":"evt_5ZB9EAQYX1ZEGQHJSHFKKTB2PT","name":"Run Toggled","description":"The simulation was started or paused — a composed listener (readout, grader) can subscribe; a harmless no-op when the atom runs standalone.","synonyms":"run state, play pause, sim toggle","tier":"domain","payloadSchema":[{"name":"running","type":"boolean"}]},{"key":"SIM_RESET","id":"evt_5HPGBVBN0WTGE3X3Y2GN417FTT","name":"Sim Reset","description":"The learner reset the simulation back to its configured initial bodies and dynamics.","synonyms":"sim restart, clear run, revert bodies","tier":"domain","payloadSchema":[{"name":"bodyCount","type":"number"}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_T3VSFFD9TDMX6G31GYSR6Z8FBZ","guard":["and",["==","@config.matchMode",""],["==","@config.rosterSource","config"]],"effects":[["set","@entity.active",true],["set","@entity.title","@config.title"],["set","@entity.loadedBodies","@config.bodies"],["set","@entity.bodies","@config.bodies"],["set","@entity.running","@config.running"],["set","@entity.gravity","@config.gravity"],["set","@entity.damping","@config.damping"],["set","@entity.tickCount",0],["set","@entity.sampleSpeed",0],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]},{"from":"idle","to":"idle","event":"MODE_SELECTED","eventId":"evt_2JSM7RMQF1BQGN1TM105TYJ4XW","guard":["and",["not",["==","@config.matchMode",""]],["not",["==","@payload.mode","@config.matchMode"]]],"effects":[["set","@entity.active",false],["set","@entity.running",false],["render-ui","main",null]]},{"from":"idle","to":"idle","event":"MODE_SELECTED","eventId":"evt_2JSM7RMQF1BQGN1TM105TYJ4XW","guard":["and",["==","@payload.mode","@config.matchMode"],["==","@config.rosterSource","config"]],"effects":[["set","@entity.active",true],["set","@entity.title","@config.title"],["set","@entity.loadedBodies","@config.bodies"],["set","@entity.bodies","@config.bodies"],["set","@entity.running","@config.running"],["set","@entity.gravity","@config.gravity"],["set","@entity.damping","@config.damping"],["set","@entity.tickCount",0],["set","@entity.sampleSpeed",0],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]},{"from":"idle","to":"idle","event":"ROSTER_LOADED","eventId":"evt_6V4FBNAD4G6J83KW8J52R245G0","guard":["and",["==","@config.rosterSource","event"],["and",["==","@payload.mode","@config.matchMode"],[">",["array/len","@payload.bodies"],0]]],"effects":[["set","@entity.active",true],["set","@entity.title","@config.title"],["set","@entity.loadedBodies","@payload.bodies"],["set","@entity.bodies","@payload.bodies"],["set","@entity.running","@config.running"],["set","@entity.gravity","@config.gravity"],["set","@entity.damping","@config.damping"],["set","@entity.tickCount",0],["set","@entity.sampleSpeed",0],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]},{"from":"idle","to":"idle","event":"ROSTER_LOADED","eventId":"evt_6V4FBNAD4G6J83KW8J52R245G0","guard":["and",["==","@config.rosterSource","event"],["not",["==","@payload.mode","@config.matchMode"]]],"effects":[["set","@entity.active",false],["set","@entity.running",false],["render-ui","main",null]]},{"from":"idle","to":"idle","event":"TOGGLE_RUN","eventId":"evt_ZPP3XY45G22R17PR0MARFF8FFA","guard":["==","@entity.active",true],"effects":[["set","@entity.running",["not","@entity.running"]],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}],["emit","RUN_TOGGLED",{"running":"@entity.running"}]]},{"from":"idle","to":"idle","event":"RUN","eventId":"evt_SCM5H54EKH79RHWQQ866Y5DECX","guard":["==","@entity.active",true],"effects":[["set","@entity.running",true],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}],["emit","RUN_TOGGLED",{"running":"@entity.running"}]]},{"from":"idle","to":"idle","event":"PAUSE","eventId":"evt_VA3VMJZ3BJHNSAY0X2NCN33FFG","guard":["==","@entity.active",true],"effects":[["set","@entity.running",false],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}],["emit","RUN_TOGGLED",{"running":"@entity.running"}]]},{"from":"idle","to":"idle","event":"RESET","eventId":"evt_G032R8S94QMJBQAJZX4GJ1GW9Q","guard":["==","@entity.active",true],"effects":[["set","@entity.bodies","@entity.loadedBodies"],["set","@entity.running",false],["set","@entity.gravity","@config.gravity"],["set","@entity.damping","@config.damping"],["set","@entity.tickCount",0],["set","@entity.sampleSpeed",0],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}],["emit","SIM_RESET",{"bodyCount":["array/len","@entity.bodies"]}]]},{"from":"idle","to":"idle","event":"SET_GRAVITY","eventId":"evt_93MVQBFTSDXCPJ1JB7AGYDGCD7","guard":["==","@entity.active",true],"effects":[["set","@entity.gravity",["math/clamp","@payload.value",-1,1.5]],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]},{"from":"idle","to":"idle","event":"SET_DAMPING","eventId":"evt_P3WWQVA0KX09YZB4X6XKF3F9YY","guard":["==","@entity.active",true],"effects":[["set","@entity.damping",["math/clamp","@payload.value",0.9,1]],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]}]},"ticks":[{"name":"liveSimTick","interval":32,"guard":"@entity.running","effects":[["set","@entity.bodies",["array/map","@entity.bodies",["fn","b",["let",[["r",["object/get","@b","radius"]],["nvx",["*",["object/get","@b","vx"],"@entity.damping"]],["nvy",["*",["+",["object/get","@b","vy"],"@entity.gravity"],"@entity.damping"]]],["let",[["nx",["+",["object/get","@b","x"],"@nvx"]],["ny",["+",["object/get","@b","y"],"@nvy"]]],["let",[["hitx",["or",["<","@nx","@r"],[">","@nx",["-","@config.width","@r"]]]],["hity",["or",["<","@ny","@r"],[">","@ny",["-","@config.height","@r"]]]]],["object/merge","@b",{"x":["math/clamp","@nx","@r",["-","@config.width","@r"]],"y":["math/clamp","@ny","@r",["-","@config.height","@r"]],"vx":["if","@hitx",["*","@nvx",["*",-1,"@config.restitution"]],"@nvx"],"vy":["if","@hity",["*","@nvy",["*",-1,"@config.restitution"]],"@nvy"]}]]]]]]],["set","@entity.tickCount",["+","@entity.tickCount",1]],["set","@entity.sampleSpeed",["let",[["s",["array/first","@entity.bodies"]]],["math/sqrt",["+",["*",["object/get","@s","vx"],["object/get","@s","vx"]],["*",["object/get","@s","vy"],["object/get","@s","vy"]]]]]],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]}],"config":{"height":{"type":"number","default":400,"label":"Height","description":"Simulation height in pixels; bounds the bounce.","tier":"presentation"},"summary":{"type":"string","default":"","label":"Concept","description":"One line under the title saying what the learner is looking at (keep it under ~65 characters). Empty shows no line.","tier":"presentation"},"restitution":{"type":"number","default":0.78,"label":"Restitution","description":"Fraction of speed kept when a body bounces off a wall.","tier":"domain"},"running":{"type":"boolean","default":false,"label":"Running","description":"Whether the simulation starts already running on INIT.","tier":"domain"},"damping":{"type":"number","default":0.995,"label":"Damping","description":"Initial fraction of velocity retained each tick (air resistance); adjustable live via the Damping slider.","tier":"domain"},"gravity":{"type":"number","default":0.4,"label":"Gravity","description":"Initial downward acceleration added to each body's vy every tick; adjustable live via the Gravity slider.","tier":"domain"},"backgroundColor":{"type":"string","default":"","label":"Background Color","description":"Canvas ground override; empty uses the theme's drawing ground.","tier":"presentation"},"rosterSource":{"type":"string","default":"config","label":"Roster Source","description":"Where the body roster comes from: config reads the bodies knob at INIT; event waits for ROSTER_LOADED and takes the bodies from its payload.","tier":"domain","values":["config","event"]},"velocityScale":{"type":"number","default":8,"label":"Velocity Scale","description":"Length multiplier for the velocity arrows.","tier":"presentation"},"width":{"type":"number","default":600,"label":"Width","description":"Simulation width in pixels; bounds the bounce.","tier":"presentation"},"showVelocity":{"type":"boolean","default":true,"label":"Show Velocity","description":"Draw each body's velocity vector as an arrow.","tier":"presentation"},"title":{"type":"string","default":"Live Sim","label":"Title","description":"The instrument's name, the header's one hero.","tier":"presentation"},"bodies":{"type":"[LiveSimBody]","default":[{"id":"ball-a","x":100,"y":60,"radius":14,"color":"series-1","vx":4,"vy":0},{"id":"ball-b","x":260,"y":90,"radius":18,"color":"series-2","vx":-3,"vy":2},{"id":"ball-c","x":420,"y":40,"radius":11,"color":"series-3","vx":2,"vy":-1}],"label":"Bodies","description":"Initial bodies; each carries position (x,y), radius, color, and velocity (vx,vy). Restored on Reset. Used when rosterSource is config.","tier":"presentation","items":{"type":"object","properties":{"vy":{"name":"vy","type":"number","required":false},"y":{"name":"y","type":"number","required":true},"color":{"name":"color","type":"string","required":false},"id":{"name":"id","type":"string","required":false},"vx":{"name":"vx","type":"number","required":false},"x":{"name":"x","type":"number","required":true},"radius":{"name":"radius","type":"number","required":false}}}},"matchMode":{"type":"string","default":"","label":"Match Mode","description":"When composed behind a lab router, the MODE_SELECTED mode value this instrument responds to. Empty string means standalone — render immediately on INIT (or on ROSTER_LOADED when rosterSource is event).","tier":"presentation"}},"scope":"instance"}],"pages":[{"name":"LearnLiveSimPage","id":"pag_EDXZ4M1PDVV6XHBAZC7AXYBQ9D","path":"/learn-live-sim","traits":[{"ref":"LiveSimSim","refId":"trt_H0PYDGP02F017REWPBCDPK38TB"}]}],"types":{"LiveSimBody":[{"name":"id","type":"string"},{"name":"x","type":"number","required":true},{"name":"y","type":"number","required":true},{"name":"radius","type":"number"},{"name":"color","type":"string"},{"name":"vx","type":"number"},{"name":"vy","type":"number"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_7JP506H9DBMPNW26SP58P5CRFY":{"id":"ent_7JP506H9DBMPNW26SP58P5CRFY","kind":"entity","bakedName":"LiveSimScene","curName":"LiveSimScene","renames":[],"owner":"workspace"},"evt_2JSM7RMQF1BQGN1TM105TYJ4XW":{"id":"evt_2JSM7RMQF1BQGN1TM105TYJ4XW","kind":"event","bakedName":"MODE_SELECTED","curName":"MODE_SELECTED","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_5HPGBVBN0WTGE3X3Y2GN417FTT":{"id":"evt_5HPGBVBN0WTGE3X3Y2GN417FTT","kind":"event","bakedName":"SIM_RESET","curName":"SIM_RESET","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_5ZB9EAQYX1ZEGQHJSHFKKTB2PT":{"id":"evt_5ZB9EAQYX1ZEGQHJSHFKKTB2PT","kind":"event","bakedName":"RUN_TOGGLED","curName":"RUN_TOGGLED","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_6V4FBNAD4G6J83KW8J52R245G0":{"id":"evt_6V4FBNAD4G6J83KW8J52R245G0","kind":"event","bakedName":"ROSTER_LOADED","curName":"ROSTER_LOADED","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_93MVQBFTSDXCPJ1JB7AGYDGCD7":{"id":"evt_93MVQBFTSDXCPJ1JB7AGYDGCD7","kind":"event","bakedName":"SET_GRAVITY","curName":"SET_GRAVITY","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_G032R8S94QMJBQAJZX4GJ1GW9Q":{"id":"evt_G032R8S94QMJBQAJZX4GJ1GW9Q","kind":"event","bakedName":"RESET","curName":"RESET","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_P3WWQVA0KX09YZB4X6XKF3F9YY":{"id":"evt_P3WWQVA0KX09YZB4X6XKF3F9YY","kind":"event","bakedName":"SET_DAMPING","curName":"SET_DAMPING","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_SCM5H54EKH79RHWQQ866Y5DECX":{"id":"evt_SCM5H54EKH79RHWQQ866Y5DECX","kind":"event","bakedName":"RUN","curName":"RUN","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_T3VSFFD9TDMX6G31GYSR6Z8FBZ":{"id":"evt_T3VSFFD9TDMX6G31GYSR6Z8FBZ","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_VA3VMJZ3BJHNSAY0X2NCN33FFG":{"id":"evt_VA3VMJZ3BJHNSAY0X2NCN33FFG","kind":"event","bakedName":"PAUSE","curName":"PAUSE","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_ZPP3XY45G22R17PR0MARFF8FFA":{"id":"evt_ZPP3XY45G22R17PR0MARFF8FFA","kind":"event","bakedName":"TOGGLE_RUN","curName":"TOGGLE_RUN","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"orb_MAVF2DVV7GXKR3KJ47SZH5Z194":{"id":"orb_MAVF2DVV7GXKR3KJ47SZH5Z194","kind":"orbital","bakedName":"LearnLiveSimOrbital","curName":"LearnLiveSimOrbital","renames":[],"owner":"workspace"},"pag_EDXZ4M1PDVV6XHBAZC7AXYBQ9D":{"id":"pag_EDXZ4M1PDVV6XHBAZC7AXYBQ9D","kind":"page","bakedName":"LearnLiveSimPage","curName":"LearnLiveSimPage","renames":[],"owner":"workspace"},"trt_H0PYDGP02F017REWPBCDPK38TB":{"id":"trt_H0PYDGP02F017REWPBCDPK38TB","kind":"trait","bakedName":"LiveSimSim","curName":"LiveSimSim","renames":[],"owner":"workspace"}}}}
|
|
1
|
+
{"name":"std-learn-live-sim","version":"1.0.0","description":"Generic continuous particle-dynamics instrument — the live-integration sibling of std-physics-projectile: config-declared initial bodies (position, velocity, radius, color) fall under gravity, lose speed to damping, and bounce off the world bounds every tick while Run is engaged; Pause freezes the simulation and Reset restores the initial bodies. Gravity and damping are each exposed as a range-slider so the learner can retune the dynamics live, with a readout of elapsed ticks and a sample body's current speed. So the same mechanism serves any bouncing-particle domain (gas molecules, falling objects, orbit sketches, and beyond) on a physics-canvas. Standalone by default; behind a lab router set matchMode and it renders only when MODE_SELECTED matches.","orbitals":[{"name":"LearnLiveSimOrbital","id":"orb_MAVF2DVV7GXKR3KJ47SZH5Z194","entity":{"name":"LiveSimScene","id":"ent_7JP506H9DBMPNW26SP58P5CRFY","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"active","type":"boolean","default":false},{"name":"title","type":"string"},{"name":"bodies","type":"array","items":{"type":"object","properties":{"id":{"name":"id","type":"string","required":false},"x":{"name":"x","type":"number","required":true},"color":{"name":"color","type":"string","required":false},"y":{"name":"y","type":"number","required":true},"radius":{"name":"radius","type":"number","required":false},"vy":{"name":"vy","type":"number","required":false},"vx":{"name":"vx","type":"number","required":false}}}},{"name":"loadedBodies","type":"array","items":{"type":"object","properties":{"y":{"name":"y","type":"number","required":true},"vx":{"name":"vx","type":"number","required":false},"radius":{"name":"radius","type":"number","required":false},"x":{"name":"x","type":"number","required":true},"color":{"name":"color","type":"string","required":false},"vy":{"name":"vy","type":"number","required":false},"id":{"name":"id","type":"string","required":false}}}},{"name":"running","type":"boolean","default":false},{"name":"gravity","type":"number","default":0},{"name":"damping","type":"number","default":1},{"name":"tickCount","type":"number","default":0},{"name":"sampleSpeed","type":"number","default":0}]},"traits":[{"name":"LiveSimSim","id":"trt_H0PYDGP02F017REWPBCDPK38TB","entityRebindable":true,"entityContract":{"requires":[],"provides":["active","bodies","damping","gravity","loadedBodies","running","sampleSpeed","tickCount","title"]},"effectRow":[{"kind":"emit","resource":"RUN_TOGGLED"},{"kind":"emit","resource":"SIM_RESET"},{"kind":"render-ui","resource":"main"},{"kind":"render-ui","resource":"main","site":"tick"},{"kind":"set","resource":"@entity.active"},{"kind":"set","resource":"@entity.bodies"},{"kind":"set","resource":"@entity.bodies","site":"tick"},{"kind":"set","resource":"@entity.damping"},{"kind":"set","resource":"@entity.gravity"},{"kind":"set","resource":"@entity.loadedBodies"},{"kind":"set","resource":"@entity.running"},{"kind":"set","resource":"@entity.sampleSpeed"},{"kind":"set","resource":"@entity.sampleSpeed","site":"tick"},{"kind":"set","resource":"@entity.tickCount"},{"kind":"set","resource":"@entity.tickCount","site":"tick"},{"kind":"set","resource":"@entity.title"},{"kind":"ticks","site":"tick"}],"category":"interaction","linkedEntity":"LiveSimScene","linkedEntityId":"ent_7JP506H9DBMPNW26SP58P5CRFY","entityRefIds":{"LiveSimScene":"ent_7JP506H9DBMPNW26SP58P5CRFY"},"emits":[{"event":"RUN_TOGGLED","eventId":"evt_5ZB9EAQYX1ZEGQHJSHFKKTB2PT","description":"The simulation was started or paused — a composed listener (readout, grader) can subscribe; a harmless no-op when the atom runs standalone.","synonyms":"run state, play pause, sim toggle","tier":"domain","scope":"external","payloadSchema":[{"name":"running","type":"boolean"}]},{"event":"SIM_RESET","eventId":"evt_5HPGBVBN0WTGE3X3Y2GN417FTT","description":"The learner reset the simulation back to its configured initial bodies and dynamics.","synonyms":"sim restart, clear run, revert bodies","tier":"domain","scope":"external","payloadSchema":[{"name":"bodyCount","type":"number"}]}],"stateMachine":{"states":[{"name":"idle","isInitial":true}],"events":[{"key":"INIT","id":"evt_T3VSFFD9TDMX6G31GYSR6Z8FBZ","name":"Initialize"},{"key":"MODE_SELECTED","id":"evt_2JSM7RMQF1BQGN1TM105TYJ4XW","name":"Mode Selected","description":"Lab router broadcast naming the active mode; this instrument renders when the mode equals matchMode, otherwise renders null.","tier":"domain","payloadSchema":[{"name":"mode","type":"string"}],"listened":true},{"key":"ROSTER_LOADED","id":"evt_6V4FBNAD4G6J83KW8J52R245G0","name":"Roster Loaded","description":"Runtime content feed, honoured only when rosterSource is event — mode names the instrument it is for (the matchMode it carries, blank when standalone) and bodies is the initial body list; a matching instrument re-initialises from it exactly as INIT does from config, any other instrument hides.","tier":"domain","payloadSchema":[{"name":"mode","type":"string","required":true},{"name":"bodies","type":"[object]","required":true,"properties":[{"name":"id","type":"string"},{"name":"x","type":"number","required":true},{"name":"y","type":"number","required":true},{"name":"radius","type":"number"},{"name":"color","type":"string"},{"name":"vx","type":"number"},{"name":"vy","type":"number"}]}],"listened":true},{"key":"TOGGLE_RUN","id":"evt_ZPP3XY45G22R17PR0MARFF8FFA","name":"Toggle Run","description":"Learner pressed the Play/Pause toggle — flips the running flag.","tier":"domain","listened":true},{"key":"RUN","id":"evt_SCM5H54EKH79RHWQQ866Y5DECX","name":"Run","description":"Learner pressed Run — the tick begins integrating gravity, damping, and wall bounce for every body.","tier":"domain","listened":true},{"key":"PAUSE","id":"evt_VA3VMJZ3BJHNSAY0X2NCN33FFG","name":"Pause","description":"Learner pressed Pause — the simulation freezes at its current positions and velocities.","tier":"domain","listened":true},{"key":"RESET","id":"evt_G032R8S94QMJBQAJZX4GJ1GW9Q","name":"Reset","description":"Learner pressed Reset — bodies, gravity, and damping revert to their configured initial values and the tick counter clears.","tier":"domain","listened":true},{"key":"SET_GRAVITY","id":"evt_93MVQBFTSDXCPJ1JB7AGYDGCD7","name":"Set Gravity","description":"Learner dragged the gravity slider — value is the new downward acceleration applied to every body each tick.","tier":"domain","payloadSchema":[{"name":"value","type":"number"}],"listened":true},{"key":"SET_DAMPING","id":"evt_P3WWQVA0KX09YZB4X6XKF3F9YY","name":"Set Damping","description":"Learner dragged the damping slider — value is the new fraction of velocity retained each tick (air resistance).","tier":"domain","payloadSchema":[{"name":"value","type":"number"}],"listened":true},{"key":"RUN_TOGGLED","id":"evt_5ZB9EAQYX1ZEGQHJSHFKKTB2PT","name":"Run Toggled","description":"The simulation was started or paused — a composed listener (readout, grader) can subscribe; a harmless no-op when the atom runs standalone.","synonyms":"run state, play pause, sim toggle","tier":"domain","payloadSchema":[{"name":"running","type":"boolean"}]},{"key":"SIM_RESET","id":"evt_5HPGBVBN0WTGE3X3Y2GN417FTT","name":"Sim Reset","description":"The learner reset the simulation back to its configured initial bodies and dynamics.","synonyms":"sim restart, clear run, revert bodies","tier":"domain","payloadSchema":[{"name":"bodyCount","type":"number"}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_T3VSFFD9TDMX6G31GYSR6Z8FBZ","guard":["and",["==","@config.matchMode",""],["==","@config.rosterSource","config"]],"effects":[["set","@entity.active",true],["set","@entity.title","@config.title"],["set","@entity.loadedBodies","@config.bodies"],["set","@entity.bodies","@config.bodies"],["set","@entity.running","@config.running"],["set","@entity.gravity","@config.gravity"],["set","@entity.damping","@config.damping"],["set","@entity.tickCount",0],["set","@entity.sampleSpeed",0],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]},{"from":"idle","to":"idle","event":"MODE_SELECTED","eventId":"evt_2JSM7RMQF1BQGN1TM105TYJ4XW","guard":["and",["not",["==","@config.matchMode",""]],["not",["==","@payload.mode","@config.matchMode"]]],"effects":[["set","@entity.active",false],["set","@entity.running",false],["render-ui","main",null]]},{"from":"idle","to":"idle","event":"MODE_SELECTED","eventId":"evt_2JSM7RMQF1BQGN1TM105TYJ4XW","guard":["and",["==","@payload.mode","@config.matchMode"],["==","@config.rosterSource","config"]],"effects":[["set","@entity.active",true],["set","@entity.title","@config.title"],["set","@entity.loadedBodies","@config.bodies"],["set","@entity.bodies","@config.bodies"],["set","@entity.running","@config.running"],["set","@entity.gravity","@config.gravity"],["set","@entity.damping","@config.damping"],["set","@entity.tickCount",0],["set","@entity.sampleSpeed",0],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]},{"from":"idle","to":"idle","event":"ROSTER_LOADED","eventId":"evt_6V4FBNAD4G6J83KW8J52R245G0","guard":["and",["==","@config.rosterSource","event"],["and",["==","@payload.mode","@config.matchMode"],[">",["array/len","@payload.bodies"],0]]],"effects":[["set","@entity.active",true],["set","@entity.title","@config.title"],["set","@entity.loadedBodies","@payload.bodies"],["set","@entity.bodies","@payload.bodies"],["set","@entity.running","@config.running"],["set","@entity.gravity","@config.gravity"],["set","@entity.damping","@config.damping"],["set","@entity.tickCount",0],["set","@entity.sampleSpeed",0],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]},{"from":"idle","to":"idle","event":"ROSTER_LOADED","eventId":"evt_6V4FBNAD4G6J83KW8J52R245G0","guard":["and",["==","@config.rosterSource","event"],["not",["==","@payload.mode","@config.matchMode"]]],"effects":[["set","@entity.active",false],["set","@entity.running",false],["render-ui","main",null]]},{"from":"idle","to":"idle","event":"TOGGLE_RUN","eventId":"evt_ZPP3XY45G22R17PR0MARFF8FFA","guard":["==","@entity.active",true],"effects":[["set","@entity.running",["not","@entity.running"]],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}],["emit","RUN_TOGGLED",{"running":"@entity.running"}]]},{"from":"idle","to":"idle","event":"RUN","eventId":"evt_SCM5H54EKH79RHWQQ866Y5DECX","guard":["==","@entity.active",true],"effects":[["set","@entity.running",true],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}],["emit","RUN_TOGGLED",{"running":"@entity.running"}]]},{"from":"idle","to":"idle","event":"PAUSE","eventId":"evt_VA3VMJZ3BJHNSAY0X2NCN33FFG","guard":["==","@entity.active",true],"effects":[["set","@entity.running",false],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}],["emit","RUN_TOGGLED",{"running":"@entity.running"}]]},{"from":"idle","to":"idle","event":"RESET","eventId":"evt_G032R8S94QMJBQAJZX4GJ1GW9Q","guard":["==","@entity.active",true],"effects":[["set","@entity.bodies","@entity.loadedBodies"],["set","@entity.running",false],["set","@entity.gravity","@config.gravity"],["set","@entity.damping","@config.damping"],["set","@entity.tickCount",0],["set","@entity.sampleSpeed",0],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}],["emit","SIM_RESET",{"bodyCount":["array/len","@entity.bodies"]}]]},{"from":"idle","to":"idle","event":"SET_GRAVITY","eventId":"evt_93MVQBFTSDXCPJ1JB7AGYDGCD7","guard":["==","@entity.active",true],"effects":[["set","@entity.gravity",["math/clamp","@payload.value",-1,1.5]],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]},{"from":"idle","to":"idle","event":"SET_DAMPING","eventId":"evt_P3WWQVA0KX09YZB4X6XKF3F9YY","guard":["==","@entity.active",true],"effects":[["set","@entity.damping",["math/clamp","@payload.value",0.9,1]],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]}]},"ticks":[{"name":"liveSimTick","interval":32,"guard":"@entity.running","effects":[["set","@entity.bodies",["array/map","@entity.bodies",["fn","b",["let",[["r",["object/get","@b","radius"]],["nvx",["*",["object/get","@b","vx"],"@entity.damping"]],["nvy",["*",["+",["object/get","@b","vy"],"@entity.gravity"],"@entity.damping"]]],["let",[["nx",["+",["object/get","@b","x"],"@nvx"]],["ny",["+",["object/get","@b","y"],"@nvy"]]],["let",[["hitx",["or",["<","@nx","@r"],[">","@nx",["-","@config.width","@r"]]]],["hity",["or",["<","@ny","@r"],[">","@ny",["-","@config.height","@r"]]]]],["object/merge","@b",{"x":["math/clamp","@nx","@r",["-","@config.width","@r"]],"y":["math/clamp","@ny","@r",["-","@config.height","@r"]],"vx":["if","@hitx",["*","@nvx",["*",-1,"@config.restitution"]],"@nvx"],"vy":["if","@hity",["*","@nvy",["*",-1,"@config.restitution"]],"@nvy"]}]]]]]]],["set","@entity.tickCount",["+","@entity.tickCount",1]],["set","@entity.sampleSpeed",["let",[["s",["array/first","@entity.bodies"]]],["math/sqrt",["+",["*",["object/get","@s","vx"],["object/get","@s","vx"]],["*",["object/get","@s","vy"],["object/get","@s","vy"]]]]]],["render-ui","main",{"type":"box","padding":"md","children":[{"type":"stack","direction":"vertical","gap":"md","children":[{"type":"stack","direction":"horizontal","justify":"between","align":"start","gap":"md","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"h4","content":"@entity.title"},["if",["==","@config.summary",""],null,{"type":"typography","variant":"body2","color":"muted","content":"@config.summary"}]]},{"type":"badge","label":["if","@entity.running","Running","Paused"],"variant":["if","@entity.running","primary","neutral"]}]},{"type":"stack","direction":"horizontal","align":"center","gap":"sm","wrap":true,"children":[["if","@entity.running",{"type":"button","action":"TOGGLE_RUN","label":"Pause","icon":"pause","variant":"primary","aria-pressed":"true"},{"type":"button","action":"TOGGLE_RUN","label":"Play","icon":"play","variant":"primary","aria-pressed":"false"}],{"type":"button","action":"RESET","label":"Reset","icon":"rotate-ccw","variant":"ghost"},{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Tick ","@entity.tickCount"]}]},{"type":"physics-canvas","keyMap":{"Space":"TOGGLE_RUN","KeyR":"RESET"},"width":"@config.width","height":"@config.height","backgroundColor":"@config.backgroundColor","bodies":"@entity.bodies","showVelocity":"@config.showVelocity","showForces":false,"velocityScale":"@config.velocityScale"},{"type":"stack","direction":"vertical","gap":"sm","children":[{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Gravity: ",["math/round","@entity.gravity",2]]},{"type":"range-slider","min":-1,"max":1.5,"step":0.05,"value":"@entity.gravity","showTooltip":true,"action":"SET_GRAVITY"}]},{"type":"stack","direction":"vertical","gap":"xs","children":[{"type":"typography","variant":"caption","color":"muted","content":["str/concat","Damping: ",["math/round","@entity.damping",3]]},{"type":"range-slider","min":0.9,"max":1,"step":0.005,"value":"@entity.damping","showTooltip":true,"action":"SET_DAMPING"}]}]},{"type":"typography","variant":"body","content":["str/concat","Sample body speed ",["math/round","@entity.sampleSpeed",2]]}]}]}]]}],"config":{"damping":{"type":"number","default":0.995,"label":"Damping","description":"Initial fraction of velocity retained each tick (air resistance); adjustable live via the Damping slider.","tier":"domain"},"title":{"type":"string","default":"Live Sim","label":"Title","description":"The instrument's name, the header's one hero.","tier":"presentation"},"running":{"type":"boolean","default":false,"label":"Running","description":"Whether the simulation starts already running on INIT.","tier":"domain"},"gravity":{"type":"number","default":0.4,"label":"Gravity","description":"Initial downward acceleration added to each body's vy every tick; adjustable live via the Gravity slider.","tier":"domain"},"summary":{"type":"string","default":"","label":"Concept","description":"One line under the title saying what the learner is looking at (keep it under ~65 characters). Empty shows no line.","tier":"presentation"},"showVelocity":{"type":"boolean","default":true,"label":"Show Velocity","description":"Draw each body's velocity vector as an arrow.","tier":"presentation"},"rosterSource":{"type":"string","default":"config","label":"Roster Source","description":"Where the body roster comes from: config reads the bodies knob at INIT; event waits for ROSTER_LOADED and takes the bodies from its payload.","tier":"domain","values":["config","event"]},"height":{"type":"number","default":400,"label":"Height","description":"Simulation height in pixels; bounds the bounce.","tier":"presentation"},"velocityScale":{"type":"number","default":8,"label":"Velocity Scale","description":"Length multiplier for the velocity arrows.","tier":"presentation"},"restitution":{"type":"number","default":0.78,"label":"Restitution","description":"Fraction of speed kept when a body bounces off a wall.","tier":"domain"},"width":{"type":"number","default":600,"label":"Width","description":"Simulation width in pixels; bounds the bounce.","tier":"presentation"},"backgroundColor":{"type":"string","default":"","label":"Background Color","description":"Canvas ground override; empty uses the theme's drawing ground.","tier":"presentation"},"matchMode":{"type":"string","default":"","label":"Match Mode","description":"When composed behind a lab router, the MODE_SELECTED mode value this instrument responds to. Empty string means standalone — render immediately on INIT (or on ROSTER_LOADED when rosterSource is event).","tier":"presentation"},"bodies":{"type":"[LiveSimBody]","default":[{"id":"ball-a","x":100,"y":60,"radius":14,"color":"series-1","vx":4,"vy":0},{"id":"ball-b","x":260,"y":90,"radius":18,"color":"series-2","vx":-3,"vy":2},{"id":"ball-c","x":420,"y":40,"radius":11,"color":"series-3","vx":2,"vy":-1}],"label":"Bodies","description":"Initial bodies; each carries position (x,y), radius, color, and velocity (vx,vy). Restored on Reset. Used when rosterSource is config.","tier":"presentation","items":{"type":"object","properties":{"id":{"name":"id","type":"string","required":false},"color":{"name":"color","type":"string","required":false},"y":{"name":"y","type":"number","required":true},"vx":{"name":"vx","type":"number","required":false},"radius":{"name":"radius","type":"number","required":false},"x":{"name":"x","type":"number","required":true},"vy":{"name":"vy","type":"number","required":false}}}}},"scope":"instance"}],"pages":[{"name":"LearnLiveSimPage","id":"pag_EDXZ4M1PDVV6XHBAZC7AXYBQ9D","path":"/learn-live-sim","traits":[{"ref":"LiveSimSim","refId":"trt_H0PYDGP02F017REWPBCDPK38TB"}]}],"types":{"LiveSimBody":[{"name":"id","type":"string"},{"name":"x","type":"number","required":true},{"name":"y","type":"number","required":true},{"name":"radius","type":"number"},{"name":"color","type":"string"},{"name":"vx","type":"number"},{"name":"vy","type":"number"}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_7JP506H9DBMPNW26SP58P5CRFY":{"id":"ent_7JP506H9DBMPNW26SP58P5CRFY","kind":"entity","bakedName":"LiveSimScene","curName":"LiveSimScene","renames":[],"owner":"workspace"},"evt_2JSM7RMQF1BQGN1TM105TYJ4XW":{"id":"evt_2JSM7RMQF1BQGN1TM105TYJ4XW","kind":"event","bakedName":"MODE_SELECTED","curName":"MODE_SELECTED","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_5HPGBVBN0WTGE3X3Y2GN417FTT":{"id":"evt_5HPGBVBN0WTGE3X3Y2GN417FTT","kind":"event","bakedName":"SIM_RESET","curName":"SIM_RESET","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_5ZB9EAQYX1ZEGQHJSHFKKTB2PT":{"id":"evt_5ZB9EAQYX1ZEGQHJSHFKKTB2PT","kind":"event","bakedName":"RUN_TOGGLED","curName":"RUN_TOGGLED","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_6V4FBNAD4G6J83KW8J52R245G0":{"id":"evt_6V4FBNAD4G6J83KW8J52R245G0","kind":"event","bakedName":"ROSTER_LOADED","curName":"ROSTER_LOADED","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_93MVQBFTSDXCPJ1JB7AGYDGCD7":{"id":"evt_93MVQBFTSDXCPJ1JB7AGYDGCD7","kind":"event","bakedName":"SET_GRAVITY","curName":"SET_GRAVITY","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_G032R8S94QMJBQAJZX4GJ1GW9Q":{"id":"evt_G032R8S94QMJBQAJZX4GJ1GW9Q","kind":"event","bakedName":"RESET","curName":"RESET","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_P3WWQVA0KX09YZB4X6XKF3F9YY":{"id":"evt_P3WWQVA0KX09YZB4X6XKF3F9YY","kind":"event","bakedName":"SET_DAMPING","curName":"SET_DAMPING","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_SCM5H54EKH79RHWQQ866Y5DECX":{"id":"evt_SCM5H54EKH79RHWQQ866Y5DECX","kind":"event","bakedName":"RUN","curName":"RUN","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_T3VSFFD9TDMX6G31GYSR6Z8FBZ":{"id":"evt_T3VSFFD9TDMX6G31GYSR6Z8FBZ","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_VA3VMJZ3BJHNSAY0X2NCN33FFG":{"id":"evt_VA3VMJZ3BJHNSAY0X2NCN33FFG","kind":"event","bakedName":"PAUSE","curName":"PAUSE","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"evt_ZPP3XY45G22R17PR0MARFF8FFA":{"id":"evt_ZPP3XY45G22R17PR0MARFF8FFA","kind":"event","bakedName":"TOGGLE_RUN","curName":"TOGGLE_RUN","renames":[],"owner":"workspace","parent":"trt_H0PYDGP02F017REWPBCDPK38TB"},"orb_MAVF2DVV7GXKR3KJ47SZH5Z194":{"id":"orb_MAVF2DVV7GXKR3KJ47SZH5Z194","kind":"orbital","bakedName":"LearnLiveSimOrbital","curName":"LearnLiveSimOrbital","renames":[],"owner":"workspace"},"pag_EDXZ4M1PDVV6XHBAZC7AXYBQ9D":{"id":"pag_EDXZ4M1PDVV6XHBAZC7AXYBQ9D","kind":"page","bakedName":"LearnLiveSimPage","curName":"LearnLiveSimPage","renames":[],"owner":"workspace"},"trt_H0PYDGP02F017REWPBCDPK38TB":{"id":"trt_H0PYDGP02F017REWPBCDPK38TB","kind":"trait","bakedName":"LiveSimSim","curName":"LiveSimSim","renames":[],"owner":"workspace"}}}}
|