@almadar/std 16.254.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 +10 -10
- package/behaviors/lolo/agent/evals/eval-agent-builder.lolo +15 -8
- package/behaviors/lolo/agent/organisms/std-agent-builder.lolo +6 -5
- package/behaviors/registry/agent/atoms/std-agent-context.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-fix-loop.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-planner.orb +1 -1
- package/behaviors/registry/agent/atoms/std-agent-pool.orb +1 -1
- 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 -1
- 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-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-detail-layout.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-market-flow.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 +1 -1
- package/dist/behaviors-embeddings.json +1 -1
- package/dist/knob-embeddings.hash.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"std-learn-generate","version":"1.0.0","description":"Generic instrument generator — GENERATE { subject, context } picks one learning instrument for a subject and writes its roster. It lists the installed behaviors under `scope` (optionally narrowed to the `instruments` allow-list), keeps those whose trait listens for ROSTER_LOADED (an instrument that takes its roster at runtime), asks the model to CHOOSE one, then to FILL a roster whose fields are exactly that instrument's ROSTER_LOADED payload; the tool loop checks the roster against those declared fields before it is accepted. GENERATED { behavior, mode, roster } carries the instrument, its mode (the behavior's name, the matchMode a lab router uses) and the roster as JSON, ready to send as that instrument's ROSTER_LOADED. It never writes a program: when no instrument in scope fits or the roster cannot be filled, it emits GENERATE_FAILED { error }. The instrument list is read once and kept for later requests.","orbitals":[{"name":"LearnGenerateOrbital","id":"orb_5QP7TF966HK38KB9X59N82WBR7","uses":[{"from":"std/behaviors/std-agent-tool-loop","as":"ToolLoop"}],"entity":{"name":"LearnGeneration","id":"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"subject","type":"string","default":""},{"name":"context","type":"string","default":""},{"name":"candidates","type":"array","default":[],"items":{"type":"object","properties":{"vectors":{"name":"vectors","type":"object","required":false,"items":{"type":"array","items":{"type":"number"}}},"description":{"name":"description","type":"string","required":false},"traits":{"name":"traits","type":"array","required":true,"items":{"type":"trait"}},"behavior":{"name":"behavior","type":"string","required":true}}}},{"name":"instruments","type":"array","default":[],"items":{"type":"object","properties":{"fields":{"name":"fields","type":"array","required":true,"items":{"type":"object","properties":{"name":{"name":"name","type":"string","required":true},"required":{"name":"required","type":"boolean","required":false},"type":{"name":"type","type":"string","required":true},"values":{"name":"values","type":"array","required":false,"items":{"type":"string"}},"properties":{"name":"properties","type":"array","required":false,"items":{"type":"union","values":["AgentToolField"]}},"description":{"name":"description","type":"string","required":false}}}},"description":{"name":"description","type":"string","required":false},"behavior":{"name":"behavior","type":"string","required":true}}}},{"name":"cursor","type":"number","default":0},{"name":"chosen","type":"string","default":""},{"name":"roster","type":"string","default":""},{"name":"error","type":"string","default":""},{"name":"status","type":"string","default":"idle","values":["idle","listing","sourcing","choosing","filling","done","failed"]}]},"traits":[{"name":"LearnGenerate","id":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6","effectRow":[{"kind":"behavior/catalog"},{"kind":"behavior/source"},{"kind":"emit","resource":"CONVERSE"},{"kind":"emit","resource":"GENERATED"},{"kind":"emit","resource":"GENERATE_FAILED"},{"kind":"emit","resource":"GENERATION_FAILED"},{"kind":"emit","resource":"INSTRUMENTS_READY"},{"kind":"render-ui","resource":"@config.statusSlot","resolved":false},{"kind":"set","resource":"@entity.candidates"},{"kind":"set","resource":"@entity.chosen"},{"kind":"set","resource":"@entity.context"},{"kind":"set","resource":"@entity.cursor"},{"kind":"set","resource":"@entity.error"},{"kind":"set","resource":"@entity.instruments"},{"kind":"set","resource":"@entity.roster"},{"kind":"set","resource":"@entity.status"},{"kind":"set","resource":"@entity.subject"}],"category":"lifecycle","linkedEntity":"LearnGeneration","linkedEntityId":"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1","entityRefIds":{"LearnGeneration":"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1"},"emits":[{"event":"GENERATED","eventId":"evt_J8GC332TZ5DFJH4Y345DGG91QM","description":"The chosen instrument, its mode (the behavior's name) and its roster as JSON, ready to send as that instrument's ROSTER_LOADED","scope":"external","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"mode","type":"string","required":true},{"name":"roster","type":"string","required":true}]},{"event":"GENERATION_FAILED","eventId":"evt_252FMX1636K1K3GF2PB223JB8R","description":"No instrument could be generated for the subject; nothing is shown","scope":"external","payloadSchema":[{"name":"error","type":"string","required":true}]},{"event":"CONVERSE","eventId":"evt_V5DY1RTGM88A47GR6B5D0JNEMJ","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"entity":"AgentChatMessage"},{"name":"instructions","type":"string"},{"name":"tools","type":"[object]","properties":[{"name":"event","type":"EventAddress","required":true},{"name":"payload","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"entity":"AgentToolInput"},{"name":"ephemeral","type":"boolean"}]},{"event":"CATALOG_LISTED","eventId":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"traits","type":"[trait]","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"entity":"CatalogHit"}]},{"event":"SOURCED","eventId":"evt_9FH4KW0PCRB6CD98VZECHKEETS","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"orbitals","type":"[object]","properties":[{"name":"traits","type":"[object]","properties":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}]}]}]}]},{"event":"INSTRUMENTS_READY","eventId":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET"},{"event":"GENERATE_FAILED","eventId":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","payloadSchema":[{"name":"error","type":"string","required":true}]}],"listens":[{"event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","triggers":"ASSISTANT_REPLIED","triggersId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","source":{"kind":"trait","trait":"LearnGenerateTools","traitId":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G"}},{"event":"ASSISTANT_REPLY_FAILED","triggers":"TOOLS_FAILED","triggersId":"evt_HSAECZ2N93AMHKJPVXWWMYK893","source":{"kind":"trait","trait":"LearnGenerateTools","traitId":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G"}}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"listing"},{"name":"sourcing"},{"name":"choosing"},{"name":"filling"},{"name":"done"},{"name":"failed"}],"events":[{"key":"INIT","id":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","name":"Initialize"},{"key":"CHOOSE","id":"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV","name":"Choose","payloadSchema":[{"name":"choice","type":"string","required":true}],"external":true,"listened":true},{"key":"FILL","id":"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9","name":"Fill","payloadSchema":[{"name":"roster","type":"SExpr","required":true}],"external":true,"listened":true},{"key":"GENERATE","id":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","name":"Generate","description":"Generate an instrument and roster for this subject; `context` is any extra the model should know (the lesson's wording, what to visualise)","synonyms":"visualise, make an instrument, generate","payloadSchema":[{"name":"subject","type":"string","required":true},{"name":"context","type":"string"}],"external":true,"listened":true},{"key":"CATALOG_LISTED","id":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","name":"Catalog Listed","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"traits","type":"[trait]","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"entity":"CatalogHit"}]},{"key":"GENERATE_FAILED","id":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","name":"Generate Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"SOURCED","id":"evt_9FH4KW0PCRB6CD98VZECHKEETS","name":"Sourced","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"orbitals","type":"[object]","properties":[{"name":"traits","type":"[object]","properties":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}]}]}]}]},{"key":"INSTRUMENTS_READY","id":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET","name":"Instruments Ready"},{"key":"ASSISTANT_REPLIED","id":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","name":"Assistant Replied"},{"key":"TOOLS_FAILED","id":"evt_HSAECZ2N93AMHKJPVXWWMYK893","name":"Tools Failed","payloadSchema":[{"name":"error","type":"string","required":true}],"listened":true},{"key":"GENERATED","id":"evt_J8GC332TZ5DFJH4Y345DGG91QM","name":"Generated","description":"The chosen instrument, its mode (the behavior's name) and its roster as JSON, ready to send as that instrument's ROSTER_LOADED","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"mode","type":"string","required":true},{"name":"roster","type":"string","required":true}]},{"key":"GENERATION_FAILED","id":"evt_252FMX1636K1K3GF2PB223JB8R","name":"Generation Failed","description":"No instrument could be generated for the subject; nothing is shown","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"CONVERSE","id":"evt_V5DY1RTGM88A47GR6B5D0JNEMJ","name":"Converse","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"entity":"AgentChatMessage"},{"name":"instructions","type":"string"},{"name":"tools","type":"[object]","properties":[{"name":"event","type":"EventAddress","required":true},{"name":"payload","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"entity":"AgentToolInput"},{"name":"ephemeral","type":"boolean"}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","idle"]]},{"from":"idle","to":"idle","event":"CHOOSE","eventId":"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV"},{"from":"idle","to":"idle","event":"FILL","eventId":"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9"},{"from":"idle","to":"listing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":["=",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.error",""],["set","@entity.status","listing"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Finding an instrument…"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"failure":"GENERATE_FAILED","success":"CATALOG_LISTED"}}]]},{"from":"idle","to":"choosing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":[">",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.error",""],["set","@entity.status","choosing"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Choosing an instrument…"}],["emit","CONVERSE",{"messages":[{"role":"user","content":["str/concat","Subject: ","@payload.subject",["if",["=",["object/get","@payload","context",""],""],"",["str/concat","\nContext: ",["object/get","@payload","context",""]]]]}],"instructions":["str/concat","You pick the one interactive learning instrument that best lets a learner explore the subject. The installed instruments:\n",["str/join",["array/map","@entity.instruments",["fn","i",["str/concat","- ",["object/get","@i","behavior"],": ",["object/get","@i","description",""]]]],"\n"],"\nCall the CHOOSE tool once with exactly one of them, then reply with one sentence."],"tools":[{"event":"@config.chooseEvent","payload":[{"name":"choice","type":"string","required":true,"values":["array/map","@entity.instruments",["fn","i",["object/get","@i","behavior"]]]}]}],"ephemeral":true}]]},{"from":"listing","to":"listing","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","listing"]]},{"from":"listing","to":"sourcing","event":"CATALOG_LISTED","eventId":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","guard":[">",["array/len",["array/filter","@payload.result",["fn","h",["or",["=",["array/len","@config.instruments"],0],["array/includes","@config.instruments",["object/get","@h","behavior"]]]]]],0],"effects":[["let",[["hits",["array/filter","@payload.result",["fn","h",["or",["=",["array/len","@config.instruments"],0],["array/includes","@config.instruments",["object/get","@h","behavior"]]]]]]],["do",["set","@entity.candidates","@hits"],["set","@entity.cursor",0],["set","@entity.status","sourcing"],["behavior/source",{"behavior":["object/get",["array/first","@hits"],"behavior"]},{"emit":{"failure":"GENERATE_FAILED","success":"SOURCED"}}]]]]},{"from":"listing","to":"failed","event":"CATALOG_LISTED","eventId":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","guard":["=",["array/len",["array/filter","@payload.result",["fn","h",["or",["=",["array/len","@config.instruments"],0],["array/includes","@config.instruments",["object/get","@h","behavior"]]]]]],0],"effects":[["set","@entity.error","No behavior in scope to choose from"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATE_FAILED",{"error":"No behavior in scope to choose from"}]]},{"from":"listing","to":"failed","event":"GENERATE_FAILED","eventId":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"@payload.error"}]]},{"from":"sourcing","to":"sourcing","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","sourcing"]]},{"from":"sourcing","to":"sourcing","event":"SOURCED","eventId":"evt_9FH4KW0PCRB6CD98VZECHKEETS","guard":["<",["+","@entity.cursor",1],["array/len","@entity.candidates"]],"effects":[["let",[["fields",["array/flatten",["array/map",["object/get","@payload.result","orbitals",[]],["fn","o",["array/flatten",["array/map",["object/get","@o","traits",[]],["fn","t",["array/flatten",["array/map",["array/filter",["object/get",["object/get","@t","stateMachine",{}],"events",[]],["fn","e",["=",["object/get","@e","key",""],"ROSTER_LOADED"]]],["fn","e",["array/filter",["object/get","@e","payloadSchema",[]],["fn","f",["!=",["object/get","@f","name",""],"mode"]]]]]]]]]]]]]],["do",["set","@entity.instruments",["if",[">",["array/len","@fields"],0],["array/append","@entity.instruments",{"behavior":["object/get",["array/nth","@entity.candidates","@entity.cursor"],"behavior"],"description":["object/get",["array/nth","@entity.candidates","@entity.cursor"],"description",""],"fields":"@fields"}],"@entity.instruments"]],["let",[["next",["+","@entity.cursor",1]]],["do",["set","@entity.cursor","@next"],["behavior/source",{"behavior":["object/get",["array/nth","@entity.candidates","@next"],"behavior"]},{"emit":{"failure":"GENERATE_FAILED","success":"SOURCED"}}]]]]]]},{"from":"sourcing","to":"choosing","event":"SOURCED","eventId":"evt_9FH4KW0PCRB6CD98VZECHKEETS","guard":[">=",["+","@entity.cursor",1],["array/len","@entity.candidates"]],"effects":[["let",[["fields",["array/flatten",["array/map",["object/get","@payload.result","orbitals",[]],["fn","o",["array/flatten",["array/map",["object/get","@o","traits",[]],["fn","t",["array/flatten",["array/map",["array/filter",["object/get",["object/get","@t","stateMachine",{}],"events",[]],["fn","e",["=",["object/get","@e","key",""],"ROSTER_LOADED"]]],["fn","e",["array/filter",["object/get","@e","payloadSchema",[]],["fn","f",["!=",["object/get","@f","name",""],"mode"]]]]]]]]]]]]]],["do",["set","@entity.instruments",["if",[">",["array/len","@fields"],0],["array/append","@entity.instruments",{"behavior":["object/get",["array/nth","@entity.candidates","@entity.cursor"],"behavior"],"description":["object/get",["array/nth","@entity.candidates","@entity.cursor"],"description",""],"fields":"@fields"}],"@entity.instruments"]],["set","@entity.status","choosing"],["emit","INSTRUMENTS_READY",{}]]]]},{"from":"sourcing","to":"failed","event":"GENERATE_FAILED","eventId":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"@payload.error"}]]},{"from":"choosing","to":"choosing","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","choosing"]]},{"from":"choosing","to":"choosing","event":"INSTRUMENTS_READY","eventId":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET","guard":[">",["array/len","@entity.instruments"],0],"effects":[["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Choosing an instrument…"}],["emit","CONVERSE",{"messages":[{"role":"user","content":["str/concat","Subject: ","@entity.subject",["if",["=","@entity.context",""],"",["str/concat","\nContext: ","@entity.context"]]]}],"instructions":["str/concat","You pick the one interactive learning instrument that best lets a learner explore the subject. The installed instruments:\n",["str/join",["array/map","@entity.instruments",["fn","i",["str/concat","- ",["object/get","@i","behavior"],": ",["object/get","@i","description",""]]]],"\n"],"\nCall the CHOOSE tool once with exactly one of them, then reply with one sentence."],"tools":[{"event":"@config.chooseEvent","payload":[{"name":"choice","type":"string","required":true,"values":["array/map","@entity.instruments",["fn","i",["object/get","@i","behavior"]]]}]}],"ephemeral":true}]]},{"from":"choosing","to":"failed","event":"INSTRUMENTS_READY","eventId":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET","guard":["=",["array/len","@entity.instruments"],0],"effects":[["set","@entity.error","No instrument in scope takes a roster"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"No instrument in scope takes a roster"}]]},{"from":"choosing","to":"choosing","event":"CHOOSE","eventId":"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV","effects":[["set","@entity.chosen","@payload.choice"]]},{"from":"choosing","to":"filling","event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","guard":["array/some","@entity.instruments",["fn","i",["=",["object/get","@i","behavior"],"@entity.chosen"]]],"effects":[["set","@entity.status","filling"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Writing the roster…"}],["emit","CONVERSE",{"messages":[{"role":"user","content":["str/concat","Subject: ","@entity.subject",["if",["=","@entity.context",""],"",["str/concat","\nContext: ","@entity.context"]]]}],"instructions":["str/concat","You write the content roster for the learning instrument ","@entity.chosen",": ",["object/get",["array/find","@entity.instruments",["fn","i",["=",["object/get","@i","behavior"],"@entity.chosen"]]],"description",""],"\nCall the FILL tool once with a roster of realistic, accurate, pedagogically useful content about the subject. If the tool reports issues, call it again with them fixed. Then reply with one sentence."],"tools":[{"event":"@config.fillEvent","payload":[{"name":"roster","type":"object","required":true,"properties":["object/get",["array/find","@entity.instruments",["fn","i",["=",["object/get","@i","behavior"],"@entity.chosen"]]],"fields",[]]}]}],"ephemeral":true}]]},{"from":"choosing","to":"failed","event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","guard":["not",["array/some","@entity.instruments",["fn","i",["=",["object/get","@i","behavior"],"@entity.chosen"]]]],"effects":[["set","@entity.error","The model chose no installed instrument"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"The model chose no installed instrument"}]]},{"from":"choosing","to":"failed","event":"TOOLS_FAILED","eventId":"evt_HSAECZ2N93AMHKJPVXWWMYK893","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"@payload.error"}]]},{"from":"filling","to":"filling","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","filling"]]},{"from":"filling","to":"filling","event":"FILL","eventId":"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9","effects":[["set","@entity.roster",["json/stringify","@payload.roster"]]]},{"from":"filling","to":"done","event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","guard":["!=","@entity.roster",""],"effects":[["set","@entity.status","done"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Instrument ready"}],["emit","GENERATED",{"behavior":"@entity.chosen","mode":["array/last",["str/split","@entity.chosen","/"]],"roster":"@entity.roster"}]]},{"from":"filling","to":"failed","event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","guard":["=","@entity.roster",""],"effects":[["set","@entity.error","The model wrote no roster that matches the instrument"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"The model wrote no roster that matches the instrument"}]]},{"from":"filling","to":"failed","event":"TOOLS_FAILED","eventId":"evt_HSAECZ2N93AMHKJPVXWWMYK893","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"@payload.error"}]]},{"from":"done","to":"done","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","done"]]},{"from":"done","to":"listing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":["=",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.status","listing"],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"failure":"GENERATE_FAILED","success":"CATALOG_LISTED"}}]]},{"from":"done","to":"choosing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":[">",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.status","choosing"],["emit","INSTRUMENTS_READY",{}]]},{"from":"failed","to":"failed","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","failed"]]},{"from":"failed","to":"listing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":["=",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.error",""],["set","@entity.status","listing"],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"failure":"GENERATE_FAILED","success":"CATALOG_LISTED"}}]]},{"from":"failed","to":"choosing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":[">",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.error",""],["set","@entity.status","choosing"],["emit","INSTRUMENTS_READY",{}]]}]},"config":{"scope":{"type":"[string]","default":["almadar-std/ui/learning"],"label":"Behavior folders","description":"Registry folders (`<prefix>/<topic>[/<tier>]`) the generator may draw instruments from; nothing outside them is ever offered","synonyms":"scope, catalog, folders","tier":"domain","items":{"type":"string"}},"statusSlot":{"type":"slot","default":"main","label":"Status slot","description":"Where the atom shows its one-line status; a page running it in the background sends it to `system`","synonyms":"status area, slot","tier":"presentation"},"instruments":{"type":"[string]","default":[],"label":"Allowed instruments","description":"Behavior names (`almadar-std/std-learn-predict`) to choose among; empty offers every instrument in the folders","synonyms":"allow list, instrument list","tier":"domain","items":{"type":"string"}},"chooseEvent":{"type":"EventAddress","default":"LearnGenerate.CHOOSE","label":"Choose tool event","description":"The address the model's CHOOSE tool fires; a consumer that renames this trait sets it to its own name (`VizGen.CHOOSE`)","tier":"internal"},"fillEvent":{"type":"EventAddress","default":"LearnGenerate.FILL","label":"Fill tool event","description":"The address the model's FILL tool fires; a consumer that renames this trait sets it to its own name (`VizGen.FILL`)","tier":"internal"}},"scope":"instance"},{"ref":"ToolLoop.traits.AgentToolLoop","id":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G","name":"LearnGenerateTools","config":{"quiet":{"type":"unknown","default":true},"cancelKey":{"type":"unknown","default":"std-learn-generate"},"maxSteps":{"type":"unknown","default":4}},"listens":[{"event":"CONVERSE","triggers":"CONVERSE","source":{"kind":"trait","trait":"LearnGenerate"}}]}],"pages":[{"name":"LearnGeneratePage","id":"pag_4MKRQN2DRS6WCJ457CSQ2T6GHC","path":"/learn-generate","traits":[{"ref":"LearnGenerate","refId":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},{"ref":"LearnGenerateTools","refId":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G"}]}],"types":{"AgentChatMessage":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"AgentToolField":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]},{"name":"description","type":"string"}],"AgentToolInput":[{"name":"event","type":"EventAddress","required":true},{"name":"payload","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"CatalogHit":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"traits","type":"[trait]","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"LearnInstrument":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"fields","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"ProgramEvent":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"ProgramMachine":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}],"ProgramOrbital":[{"name":"traits","type":"[object]","properties":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}]}],"ProgramTrait":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}],"SourcedProgram":[{"name":"orbitals","type":"[object]","properties":[{"name":"traits","type":"[object]","properties":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}]}]}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1":{"id":"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1","kind":"entity","bakedName":"LearnGeneration","curName":"LearnGeneration","renames":[],"owner":"workspace"},"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE":{"id":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","kind":"event","bakedName":"CATALOG_LISTED","curName":"CATALOG_LISTED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_252FMX1636K1K3GF2PB223JB8R":{"id":"evt_252FMX1636K1K3GF2PB223JB8R","kind":"event","bakedName":"GENERATION_FAILED","curName":"GENERATION_FAILED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60":{"id":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","kind":"event","bakedName":"ASSISTANT_REPLIED","curName":"ASSISTANT_REPLIED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_7QDC70XC1QP0VMYWSMD9VZ18HG":{"id":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","kind":"event","bakedName":"GENERATE_FAILED","curName":"GENERATE_FAILED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_9FH4KW0PCRB6CD98VZECHKEETS":{"id":"evt_9FH4KW0PCRB6CD98VZECHKEETS","kind":"event","bakedName":"SOURCED","curName":"SOURCED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9":{"id":"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9","kind":"event","bakedName":"FILL","curName":"FILL","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET":{"id":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET","kind":"event","bakedName":"INSTRUMENTS_READY","curName":"INSTRUMENTS_READY","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_HSAECZ2N93AMHKJPVXWWMYK893":{"id":"evt_HSAECZ2N93AMHKJPVXWWMYK893","kind":"event","bakedName":"TOOLS_FAILED","curName":"TOOLS_FAILED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_J8GC332TZ5DFJH4Y345DGG91QM":{"id":"evt_J8GC332TZ5DFJH4Y345DGG91QM","kind":"event","bakedName":"GENERATED","curName":"GENERATED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_V5DY1RTGM88A47GR6B5D0JNEMJ":{"id":"evt_V5DY1RTGM88A47GR6B5D0JNEMJ","kind":"event","bakedName":"CONVERSE","curName":"CONVERSE","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_VPXBMKWYYRFFCA3GJYVERXQFND":{"id":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2":{"id":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","kind":"event","bakedName":"GENERATE","curName":"GENERATE","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV":{"id":"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV","kind":"event","bakedName":"CHOOSE","curName":"CHOOSE","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"orb_5QP7TF966HK38KB9X59N82WBR7":{"id":"orb_5QP7TF966HK38KB9X59N82WBR7","kind":"orbital","bakedName":"LearnGenerateOrbital","curName":"LearnGenerateOrbital","renames":[],"owner":"workspace"},"pag_4MKRQN2DRS6WCJ457CSQ2T6GHC":{"id":"pag_4MKRQN2DRS6WCJ457CSQ2T6GHC","kind":"page","bakedName":"LearnGeneratePage","curName":"LearnGeneratePage","renames":[],"owner":"workspace"},"trt_10FH2E7DYFPZ7X9RMG0F1KY55G":{"id":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G","kind":"trait","bakedName":"LearnGenerateTools","curName":"LearnGenerateTools","renames":[],"owner":"workspace"},"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6":{"id":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6","kind":"trait","bakedName":"LearnGenerate","curName":"LearnGenerate","renames":[],"owner":"workspace"}}}}
|
|
1
|
+
{"name":"std-learn-generate","version":"1.0.0","description":"Generic instrument generator — GENERATE { subject, context } picks one learning instrument for a subject and writes its roster. It lists the installed behaviors under `scope` (optionally narrowed to the `instruments` allow-list), keeps those whose trait listens for ROSTER_LOADED (an instrument that takes its roster at runtime), asks the model to CHOOSE one, then to FILL a roster whose fields are exactly that instrument's ROSTER_LOADED payload; the tool loop checks the roster against those declared fields before it is accepted. GENERATED { behavior, mode, roster } carries the instrument, its mode (the behavior's name, the matchMode a lab router uses) and the roster as JSON, ready to send as that instrument's ROSTER_LOADED. It never writes a program: when no instrument in scope fits or the roster cannot be filled, it emits GENERATE_FAILED { error }. The instrument list is read once and kept for later requests.","orbitals":[{"name":"LearnGenerateOrbital","id":"orb_5QP7TF966HK38KB9X59N82WBR7","uses":[{"from":"std/behaviors/std-agent-tool-loop","as":"ToolLoop"}],"entity":{"name":"LearnGeneration","id":"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1","persistence":"runtime","fields":[{"name":"id","type":"string","required":true},{"name":"subject","type":"string","default":""},{"name":"context","type":"string","default":""},{"name":"candidates","type":"array","default":[],"items":{"type":"object","properties":{"traits":{"name":"traits","type":"array","required":true,"items":{"type":"trait"}},"behavior":{"name":"behavior","type":"string","required":true},"vectors":{"name":"vectors","type":"object","required":false,"items":{"type":"array","items":{"type":"number"}}},"description":{"name":"description","type":"string","required":false}}}},{"name":"instruments","type":"array","default":[],"items":{"type":"object","properties":{"fields":{"name":"fields","type":"array","required":true,"items":{"type":"object","properties":{"type":{"name":"type","type":"string","required":true},"properties":{"name":"properties","type":"array","required":false,"items":{"type":"union","values":["AgentToolField"]}},"required":{"name":"required","type":"boolean","required":false},"description":{"name":"description","type":"string","required":false},"name":{"name":"name","type":"string","required":true},"values":{"name":"values","type":"array","required":false,"items":{"type":"string"}}}}},"behavior":{"name":"behavior","type":"string","required":true},"description":{"name":"description","type":"string","required":false}}}},{"name":"cursor","type":"number","default":0},{"name":"chosen","type":"string","default":""},{"name":"roster","type":"string","default":""},{"name":"error","type":"string","default":""},{"name":"status","type":"string","default":"idle","values":["idle","listing","sourcing","choosing","filling","done","failed"]}]},"traits":[{"name":"LearnGenerate","id":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6","effectRow":[{"kind":"behavior/catalog"},{"kind":"behavior/source"},{"kind":"emit","resource":"CONVERSE"},{"kind":"emit","resource":"GENERATED"},{"kind":"emit","resource":"GENERATE_FAILED"},{"kind":"emit","resource":"GENERATION_FAILED"},{"kind":"emit","resource":"INSTRUMENTS_READY"},{"kind":"render-ui","resource":"@config.statusSlot","resolved":false},{"kind":"set","resource":"@entity.candidates"},{"kind":"set","resource":"@entity.chosen"},{"kind":"set","resource":"@entity.context"},{"kind":"set","resource":"@entity.cursor"},{"kind":"set","resource":"@entity.error"},{"kind":"set","resource":"@entity.instruments"},{"kind":"set","resource":"@entity.roster"},{"kind":"set","resource":"@entity.status"},{"kind":"set","resource":"@entity.subject"}],"category":"lifecycle","linkedEntity":"LearnGeneration","linkedEntityId":"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1","entityRefIds":{"LearnGeneration":"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1"},"emits":[{"event":"GENERATED","eventId":"evt_J8GC332TZ5DFJH4Y345DGG91QM","description":"The chosen instrument, its mode (the behavior's name) and its roster as JSON, ready to send as that instrument's ROSTER_LOADED","scope":"external","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"mode","type":"string","required":true},{"name":"roster","type":"string","required":true}]},{"event":"GENERATION_FAILED","eventId":"evt_252FMX1636K1K3GF2PB223JB8R","description":"No instrument could be generated for the subject; nothing is shown","scope":"external","payloadSchema":[{"name":"error","type":"string","required":true}]},{"event":"CONVERSE","eventId":"evt_V5DY1RTGM88A47GR6B5D0JNEMJ","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"entity":"AgentChatMessage"},{"name":"instructions","type":"string"},{"name":"tools","type":"[object]","properties":[{"name":"event","type":"EventAddress","required":true},{"name":"payload","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"entity":"AgentToolInput"},{"name":"ephemeral","type":"boolean"}]},{"event":"CATALOG_LISTED","eventId":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"traits","type":"[trait]","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"entity":"CatalogHit"}]},{"event":"SOURCED","eventId":"evt_9FH4KW0PCRB6CD98VZECHKEETS","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"orbitals","type":"[object]","properties":[{"name":"traits","type":"[object]","properties":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}]}]}]}]},{"event":"INSTRUMENTS_READY","eventId":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET"},{"event":"GENERATE_FAILED","eventId":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","payloadSchema":[{"name":"error","type":"string","required":true}]}],"listens":[{"event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","triggers":"ASSISTANT_REPLIED","triggersId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","source":{"kind":"trait","trait":"LearnGenerateTools","traitId":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G"}},{"event":"ASSISTANT_REPLY_FAILED","triggers":"TOOLS_FAILED","triggersId":"evt_HSAECZ2N93AMHKJPVXWWMYK893","source":{"kind":"trait","trait":"LearnGenerateTools","traitId":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G"}}],"stateMachine":{"states":[{"name":"idle","isInitial":true},{"name":"listing"},{"name":"sourcing"},{"name":"choosing"},{"name":"filling"},{"name":"done"},{"name":"failed"}],"events":[{"key":"INIT","id":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","name":"Initialize"},{"key":"CHOOSE","id":"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV","name":"Choose","payloadSchema":[{"name":"choice","type":"string","required":true}],"external":true,"listened":true},{"key":"FILL","id":"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9","name":"Fill","payloadSchema":[{"name":"roster","type":"SExpr","required":true}],"external":true,"listened":true},{"key":"GENERATE","id":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","name":"Generate","description":"Generate an instrument and roster for this subject; `context` is any extra the model should know (the lesson's wording, what to visualise)","synonyms":"visualise, make an instrument, generate","payloadSchema":[{"name":"subject","type":"string","required":true},{"name":"context","type":"string"}],"external":true,"listened":true},{"key":"CATALOG_LISTED","id":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","name":"Catalog Listed","payloadSchema":[{"name":"result","type":"[object]","required":true,"properties":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"traits","type":"[trait]","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"entity":"CatalogHit"}]},{"key":"GENERATE_FAILED","id":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","name":"Generate Failed","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"SOURCED","id":"evt_9FH4KW0PCRB6CD98VZECHKEETS","name":"Sourced","payloadSchema":[{"name":"result","type":"object","required":true,"properties":[{"name":"orbitals","type":"[object]","properties":[{"name":"traits","type":"[object]","properties":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}]}]}]}]},{"key":"INSTRUMENTS_READY","id":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET","name":"Instruments Ready"},{"key":"ASSISTANT_REPLIED","id":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","name":"Assistant Replied"},{"key":"TOOLS_FAILED","id":"evt_HSAECZ2N93AMHKJPVXWWMYK893","name":"Tools Failed","payloadSchema":[{"name":"error","type":"string","required":true}],"listened":true},{"key":"GENERATED","id":"evt_J8GC332TZ5DFJH4Y345DGG91QM","name":"Generated","description":"The chosen instrument, its mode (the behavior's name) and its roster as JSON, ready to send as that instrument's ROSTER_LOADED","payloadSchema":[{"name":"behavior","type":"string","required":true},{"name":"mode","type":"string","required":true},{"name":"roster","type":"string","required":true}]},{"key":"GENERATION_FAILED","id":"evt_252FMX1636K1K3GF2PB223JB8R","name":"Generation Failed","description":"No instrument could be generated for the subject; nothing is shown","payloadSchema":[{"name":"error","type":"string","required":true}]},{"key":"CONVERSE","id":"evt_V5DY1RTGM88A47GR6B5D0JNEMJ","name":"Converse","payloadSchema":[{"name":"messages","type":"[object]","required":true,"properties":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"entity":"AgentChatMessage"},{"name":"instructions","type":"string"},{"name":"tools","type":"[object]","properties":[{"name":"event","type":"EventAddress","required":true},{"name":"payload","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"entity":"AgentToolInput"},{"name":"ephemeral","type":"boolean"}]}],"transitions":[{"from":"idle","to":"idle","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","idle"]]},{"from":"idle","to":"idle","event":"CHOOSE","eventId":"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV"},{"from":"idle","to":"idle","event":"FILL","eventId":"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9"},{"from":"idle","to":"listing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":["=",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.error",""],["set","@entity.status","listing"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Finding an instrument…"}],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"failure":"GENERATE_FAILED","success":"CATALOG_LISTED"}}]]},{"from":"idle","to":"choosing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":[">",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.error",""],["set","@entity.status","choosing"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Choosing an instrument…"}],["emit","CONVERSE",{"messages":[{"role":"user","content":["str/concat","Subject: ","@payload.subject",["if",["=",["object/get","@payload","context",""],""],"",["str/concat","\nContext: ",["object/get","@payload","context",""]]]]}],"instructions":["str/concat","You pick the one interactive learning instrument that best lets a learner explore the subject. The installed instruments:\n",["str/join",["array/map","@entity.instruments",["fn","i",["str/concat","- ",["object/get","@i","behavior"],": ",["object/get","@i","description",""]]]],"\n"],"\nCall the CHOOSE tool once with exactly one of them, then reply with one sentence."],"tools":[{"event":"@config.chooseEvent","payload":[{"name":"choice","type":"string","required":true,"values":["array/map","@entity.instruments",["fn","i",["object/get","@i","behavior"]]]}]}],"ephemeral":true}]]},{"from":"listing","to":"listing","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","listing"]]},{"from":"listing","to":"sourcing","event":"CATALOG_LISTED","eventId":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","guard":[">",["array/len",["array/filter","@payload.result",["fn","h",["or",["=",["array/len","@config.instruments"],0],["array/includes","@config.instruments",["object/get","@h","behavior"]]]]]],0],"effects":[["let",[["hits",["array/filter","@payload.result",["fn","h",["or",["=",["array/len","@config.instruments"],0],["array/includes","@config.instruments",["object/get","@h","behavior"]]]]]]],["do",["set","@entity.candidates","@hits"],["set","@entity.cursor",0],["set","@entity.status","sourcing"],["behavior/source",{"behavior":["object/get",["array/first","@hits"],"behavior"]},{"emit":{"failure":"GENERATE_FAILED","success":"SOURCED"}}]]]]},{"from":"listing","to":"failed","event":"CATALOG_LISTED","eventId":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","guard":["=",["array/len",["array/filter","@payload.result",["fn","h",["or",["=",["array/len","@config.instruments"],0],["array/includes","@config.instruments",["object/get","@h","behavior"]]]]]],0],"effects":[["set","@entity.error","No behavior in scope to choose from"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATE_FAILED",{"error":"No behavior in scope to choose from"}]]},{"from":"listing","to":"failed","event":"GENERATE_FAILED","eventId":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"@payload.error"}]]},{"from":"sourcing","to":"sourcing","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","sourcing"]]},{"from":"sourcing","to":"sourcing","event":"SOURCED","eventId":"evt_9FH4KW0PCRB6CD98VZECHKEETS","guard":["<",["+","@entity.cursor",1],["array/len","@entity.candidates"]],"effects":[["let",[["fields",["array/flatten",["array/map",["object/get","@payload.result","orbitals",[]],["fn","o",["array/flatten",["array/map",["object/get","@o","traits",[]],["fn","t",["array/flatten",["array/map",["array/filter",["object/get",["object/get","@t","stateMachine",{}],"events",[]],["fn","e",["=",["object/get","@e","key",""],"ROSTER_LOADED"]]],["fn","e",["array/filter",["object/get","@e","payloadSchema",[]],["fn","f",["!=",["object/get","@f","name",""],"mode"]]]]]]]]]]]]]],["do",["set","@entity.instruments",["if",[">",["array/len","@fields"],0],["array/append","@entity.instruments",{"behavior":["object/get",["array/nth","@entity.candidates","@entity.cursor"],"behavior"],"description":["object/get",["array/nth","@entity.candidates","@entity.cursor"],"description",""],"fields":"@fields"}],"@entity.instruments"]],["let",[["next",["+","@entity.cursor",1]]],["do",["set","@entity.cursor","@next"],["behavior/source",{"behavior":["object/get",["array/nth","@entity.candidates","@next"],"behavior"]},{"emit":{"failure":"GENERATE_FAILED","success":"SOURCED"}}]]]]]]},{"from":"sourcing","to":"choosing","event":"SOURCED","eventId":"evt_9FH4KW0PCRB6CD98VZECHKEETS","guard":[">=",["+","@entity.cursor",1],["array/len","@entity.candidates"]],"effects":[["let",[["fields",["array/flatten",["array/map",["object/get","@payload.result","orbitals",[]],["fn","o",["array/flatten",["array/map",["object/get","@o","traits",[]],["fn","t",["array/flatten",["array/map",["array/filter",["object/get",["object/get","@t","stateMachine",{}],"events",[]],["fn","e",["=",["object/get","@e","key",""],"ROSTER_LOADED"]]],["fn","e",["array/filter",["object/get","@e","payloadSchema",[]],["fn","f",["!=",["object/get","@f","name",""],"mode"]]]]]]]]]]]]]],["do",["set","@entity.instruments",["if",[">",["array/len","@fields"],0],["array/append","@entity.instruments",{"behavior":["object/get",["array/nth","@entity.candidates","@entity.cursor"],"behavior"],"description":["object/get",["array/nth","@entity.candidates","@entity.cursor"],"description",""],"fields":"@fields"}],"@entity.instruments"]],["set","@entity.status","choosing"],["emit","INSTRUMENTS_READY",{}]]]]},{"from":"sourcing","to":"failed","event":"GENERATE_FAILED","eventId":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"@payload.error"}]]},{"from":"choosing","to":"choosing","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","choosing"]]},{"from":"choosing","to":"choosing","event":"INSTRUMENTS_READY","eventId":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET","guard":[">",["array/len","@entity.instruments"],0],"effects":[["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Choosing an instrument…"}],["emit","CONVERSE",{"messages":[{"role":"user","content":["str/concat","Subject: ","@entity.subject",["if",["=","@entity.context",""],"",["str/concat","\nContext: ","@entity.context"]]]}],"instructions":["str/concat","You pick the one interactive learning instrument that best lets a learner explore the subject. The installed instruments:\n",["str/join",["array/map","@entity.instruments",["fn","i",["str/concat","- ",["object/get","@i","behavior"],": ",["object/get","@i","description",""]]]],"\n"],"\nCall the CHOOSE tool once with exactly one of them, then reply with one sentence."],"tools":[{"event":"@config.chooseEvent","payload":[{"name":"choice","type":"string","required":true,"values":["array/map","@entity.instruments",["fn","i",["object/get","@i","behavior"]]]}]}],"ephemeral":true}]]},{"from":"choosing","to":"failed","event":"INSTRUMENTS_READY","eventId":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET","guard":["=",["array/len","@entity.instruments"],0],"effects":[["set","@entity.error","No instrument in scope takes a roster"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"No instrument in scope takes a roster"}]]},{"from":"choosing","to":"choosing","event":"CHOOSE","eventId":"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV","effects":[["set","@entity.chosen","@payload.choice"]]},{"from":"choosing","to":"filling","event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","guard":["array/some","@entity.instruments",["fn","i",["=",["object/get","@i","behavior"],"@entity.chosen"]]],"effects":[["set","@entity.status","filling"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Writing the roster…"}],["emit","CONVERSE",{"messages":[{"role":"user","content":["str/concat","Subject: ","@entity.subject",["if",["=","@entity.context",""],"",["str/concat","\nContext: ","@entity.context"]]]}],"instructions":["str/concat","You write the content roster for the learning instrument ","@entity.chosen",": ",["object/get",["array/find","@entity.instruments",["fn","i",["=",["object/get","@i","behavior"],"@entity.chosen"]]],"description",""],"\nCall the FILL tool once with a roster of realistic, accurate, pedagogically useful content about the subject. If the tool reports issues, call it again with them fixed. Then reply with one sentence."],"tools":[{"event":"@config.fillEvent","payload":[{"name":"roster","type":"object","required":true,"properties":["object/get",["array/find","@entity.instruments",["fn","i",["=",["object/get","@i","behavior"],"@entity.chosen"]]],"fields",[]]}]}],"ephemeral":true}]]},{"from":"choosing","to":"failed","event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","guard":["not",["array/some","@entity.instruments",["fn","i",["=",["object/get","@i","behavior"],"@entity.chosen"]]]],"effects":[["set","@entity.error","The model chose no installed instrument"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"The model chose no installed instrument"}]]},{"from":"choosing","to":"failed","event":"TOOLS_FAILED","eventId":"evt_HSAECZ2N93AMHKJPVXWWMYK893","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"@payload.error"}]]},{"from":"filling","to":"filling","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","filling"]]},{"from":"filling","to":"filling","event":"FILL","eventId":"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9","effects":[["set","@entity.roster",["json/stringify","@payload.roster"]]]},{"from":"filling","to":"done","event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","guard":["!=","@entity.roster",""],"effects":[["set","@entity.status","done"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"Instrument ready"}],["emit","GENERATED",{"behavior":"@entity.chosen","mode":["array/last",["str/split","@entity.chosen","/"]],"roster":"@entity.roster"}]]},{"from":"filling","to":"failed","event":"ASSISTANT_REPLIED","eventId":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","guard":["=","@entity.roster",""],"effects":[["set","@entity.error","The model wrote no roster that matches the instrument"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"The model wrote no roster that matches the instrument"}]]},{"from":"filling","to":"failed","event":"TOOLS_FAILED","eventId":"evt_HSAECZ2N93AMHKJPVXWWMYK893","effects":[["set","@entity.error","@payload.error"],["set","@entity.status","failed"],["render-ui","@config.statusSlot",{"type":"typography","variant":"caption","role":"status","content":"No instrument could be generated"}],["emit","GENERATION_FAILED",{"error":"@payload.error"}]]},{"from":"done","to":"done","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","done"]]},{"from":"done","to":"listing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":["=",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.status","listing"],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"failure":"GENERATE_FAILED","success":"CATALOG_LISTED"}}]]},{"from":"done","to":"choosing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":[">",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.status","choosing"],["emit","INSTRUMENTS_READY",{}]]},{"from":"failed","to":"failed","event":"INIT","eventId":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","effects":[["set","@entity.status","failed"]]},{"from":"failed","to":"listing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":["=",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.error",""],["set","@entity.status","listing"],["behavior/catalog",{"paths":"@config.scope"},{"emit":{"failure":"GENERATE_FAILED","success":"CATALOG_LISTED"}}]]},{"from":"failed","to":"choosing","event":"GENERATE","eventId":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","guard":[">",["array/len","@entity.instruments"],0],"effects":[["set","@entity.subject","@payload.subject"],["set","@entity.context",["object/get","@payload","context",""]],["set","@entity.chosen",""],["set","@entity.roster",""],["set","@entity.error",""],["set","@entity.status","choosing"],["emit","INSTRUMENTS_READY",{}]]}]},"config":{"chooseEvent":{"type":"EventAddress","default":"LearnGenerate.CHOOSE","label":"Choose tool event","description":"The address the model's CHOOSE tool fires; a consumer that renames this trait sets it to its own name (`VizGen.CHOOSE`)","tier":"internal"},"fillEvent":{"type":"EventAddress","default":"LearnGenerate.FILL","label":"Fill tool event","description":"The address the model's FILL tool fires; a consumer that renames this trait sets it to its own name (`VizGen.FILL`)","tier":"internal"},"instruments":{"type":"[string]","default":[],"label":"Allowed instruments","description":"Behavior names (`almadar-std/std-learn-predict`) to choose among; empty offers every instrument in the folders","synonyms":"allow list, instrument list","tier":"domain","items":{"type":"string"}},"statusSlot":{"type":"slot","default":"main","label":"Status slot","description":"Where the atom shows its one-line status; a page running it in the background sends it to `system`","synonyms":"status area, slot","tier":"presentation"},"scope":{"type":"[string]","default":["almadar-std/ui/learning"],"label":"Behavior folders","description":"Registry folders (`<prefix>/<topic>[/<tier>]`) the generator may draw instruments from; nothing outside them is ever offered","synonyms":"scope, catalog, folders","tier":"domain","items":{"type":"string"}}},"scope":"instance"},{"ref":"ToolLoop.traits.AgentToolLoop","id":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G","name":"LearnGenerateTools","config":{"cancelKey":{"type":"unknown","default":"std-learn-generate"},"quiet":{"type":"unknown","default":true},"maxSteps":{"type":"unknown","default":4}},"listens":[{"event":"CONVERSE","triggers":"CONVERSE","source":{"kind":"trait","trait":"LearnGenerate"}}]}],"pages":[{"name":"LearnGeneratePage","id":"pag_4MKRQN2DRS6WCJ457CSQ2T6GHC","path":"/learn-generate","traits":[{"ref":"LearnGenerate","refId":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},{"ref":"LearnGenerateTools","refId":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G"}]}],"types":{"AgentChatMessage":[{"name":"role","type":"string","values":["user","assistant"]},{"name":"content","type":"string","required":true}],"AgentToolField":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]},{"name":"description","type":"string"}],"AgentToolInput":[{"name":"event","type":"EventAddress","required":true},{"name":"payload","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"CatalogHit":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"traits","type":"[trait]","required":true},{"name":"vectors","type":"Map<string,[number]>"}],"LearnInstrument":[{"name":"behavior","type":"string","required":true},{"name":"description","type":"string"},{"name":"fields","type":"[object]","required":true,"properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"ProgramEvent":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}],"ProgramMachine":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}],"ProgramOrbital":[{"name":"traits","type":"[object]","properties":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}]}],"ProgramTrait":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}],"SourcedProgram":[{"name":"orbitals","type":"[object]","properties":[{"name":"traits","type":"[object]","properties":[{"name":"stateMachine","type":"object","properties":[{"name":"events","type":"[object]","properties":[{"name":"key","type":"string"},{"name":"payloadSchema","type":"[object]","properties":[{"name":"name","type":"string","required":true},{"name":"type","type":"string","required":true},{"name":"required","type":"boolean"},{"name":"values","type":"[string]"},{"name":"properties","type":"[AgentToolField]","properties":[]},{"name":"description","type":"string"}]}]}]}]}]}]}}],"schemaVersion":1,"ledger":{"schemaVersion":1,"entries":{"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1":{"id":"ent_PGHJJ8AERK7C9WPWKMC2M0VQY1","kind":"entity","bakedName":"LearnGeneration","curName":"LearnGeneration","renames":[],"owner":"workspace"},"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE":{"id":"evt_0ZMTJSXDV4PXJEG7NG5AC0GFXE","kind":"event","bakedName":"CATALOG_LISTED","curName":"CATALOG_LISTED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_252FMX1636K1K3GF2PB223JB8R":{"id":"evt_252FMX1636K1K3GF2PB223JB8R","kind":"event","bakedName":"GENERATION_FAILED","curName":"GENERATION_FAILED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60":{"id":"evt_4ET5TFGJ8K949QR8KCGZ7GWQ60","kind":"event","bakedName":"ASSISTANT_REPLIED","curName":"ASSISTANT_REPLIED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_7QDC70XC1QP0VMYWSMD9VZ18HG":{"id":"evt_7QDC70XC1QP0VMYWSMD9VZ18HG","kind":"event","bakedName":"GENERATE_FAILED","curName":"GENERATE_FAILED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_9FH4KW0PCRB6CD98VZECHKEETS":{"id":"evt_9FH4KW0PCRB6CD98VZECHKEETS","kind":"event","bakedName":"SOURCED","curName":"SOURCED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9":{"id":"evt_AJ3WVE01EB0Q5NRA3EZD7YM0W9","kind":"event","bakedName":"FILL","curName":"FILL","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET":{"id":"evt_C4H0HY1CQ4PBJ0G68PZC1QDZET","kind":"event","bakedName":"INSTRUMENTS_READY","curName":"INSTRUMENTS_READY","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_HSAECZ2N93AMHKJPVXWWMYK893":{"id":"evt_HSAECZ2N93AMHKJPVXWWMYK893","kind":"event","bakedName":"TOOLS_FAILED","curName":"TOOLS_FAILED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_J8GC332TZ5DFJH4Y345DGG91QM":{"id":"evt_J8GC332TZ5DFJH4Y345DGG91QM","kind":"event","bakedName":"GENERATED","curName":"GENERATED","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_V5DY1RTGM88A47GR6B5D0JNEMJ":{"id":"evt_V5DY1RTGM88A47GR6B5D0JNEMJ","kind":"event","bakedName":"CONVERSE","curName":"CONVERSE","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_VPXBMKWYYRFFCA3GJYVERXQFND":{"id":"evt_VPXBMKWYYRFFCA3GJYVERXQFND","kind":"event","bakedName":"INIT","curName":"INIT","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2":{"id":"evt_XCR6BHHTJXX9EHA7AQJEV1SRH2","kind":"event","bakedName":"GENERATE","curName":"GENERATE","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV":{"id":"evt_YVYJ14CYRFFC7Z8KT3GGQ454DV","kind":"event","bakedName":"CHOOSE","curName":"CHOOSE","renames":[],"owner":"workspace","parent":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6"},"orb_5QP7TF966HK38KB9X59N82WBR7":{"id":"orb_5QP7TF966HK38KB9X59N82WBR7","kind":"orbital","bakedName":"LearnGenerateOrbital","curName":"LearnGenerateOrbital","renames":[],"owner":"workspace"},"pag_4MKRQN2DRS6WCJ457CSQ2T6GHC":{"id":"pag_4MKRQN2DRS6WCJ457CSQ2T6GHC","kind":"page","bakedName":"LearnGeneratePage","curName":"LearnGeneratePage","renames":[],"owner":"workspace"},"trt_10FH2E7DYFPZ7X9RMG0F1KY55G":{"id":"trt_10FH2E7DYFPZ7X9RMG0F1KY55G","kind":"trait","bakedName":"LearnGenerateTools","curName":"LearnGenerateTools","renames":[],"owner":"workspace"},"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6":{"id":"trt_NTPN2SKG5MR2TB5YDA3QA5Q3C6","kind":"trait","bakedName":"LearnGenerate","curName":"LearnGenerate","renames":[],"owner":"workspace"}}}}
|