@almadar/std 16.238.0 → 16.241.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/behaviors-registry.json +31682 -26740
- package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +2 -2
- package/behaviors/lolo/agent/atoms/std-agent-session.lolo +337 -167
- package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +48 -9
- package/behaviors/lolo/agent/atoms/std-agent-trace.lolo +45 -8
- package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +33 -9
- package/behaviors/lolo/ui/avl/atoms/ui-avl-glyph.lolo +6 -1
- package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +5 -0
- package/behaviors/lolo/ui/core/.hand-authored.json +0 -4
- package/behaviors/lolo/ui/core/atoms/std-billable-hour.lolo +23 -10
- package/behaviors/lolo/ui/core/atoms/std-board.lolo +53 -6
- package/behaviors/lolo/ui/core/atoms/std-browse.lolo +30 -100
- package/behaviors/lolo/ui/core/atoms/std-graphs.lolo +2 -2
- package/behaviors/lolo/ui/core/atoms/std-panel-launcher.lolo +97 -0
- package/behaviors/lolo/ui/core/atoms/std-site-header.lolo +15 -3
- package/behaviors/lolo/ui/core/atoms/std-stats.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/std-tag-strip.lolo +2 -2
- package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +7 -7
- package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/ui-animated-graphic.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-animated-reveal.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-aside.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-atlas-image.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-atlas-panel.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-avatar.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-badge.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-box.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-button.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-card.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-center.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-checkbox.lolo +6 -0
- package/behaviors/lolo/ui/core/atoms/ui-confetti-effect.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-day-cell.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-dialog.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-divider.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-filter-pill.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-flip-container.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-game-icon.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-hstack.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-icon.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-image.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-infinite-scroll-sentinel.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-input.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-label.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-law-reference-tooltip.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-overlay.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-pattern-tile.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-presence.lolo +6 -1
- package/behaviors/lolo/ui/core/atoms/ui-progress-bar.lolo +6 -1
- package/behaviors/lolo/ui/core/atoms/ui-radio.lolo +6 -0
- package/behaviors/lolo/ui/core/atoms/ui-range-slider.lolo +7 -0
- package/behaviors/lolo/ui/core/atoms/ui-section-header.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-select.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-spacer.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-sparkline.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-spinner.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-stack.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-status-dot.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-branch.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-connection.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-flow.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-grid.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-lobe.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-mesh.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-morph.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-node.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-pulse.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-ring.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-shield.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-stack.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-switch.lolo +6 -0
- package/behaviors/lolo/ui/core/atoms/ui-text-highlight.lolo +7 -0
- package/behaviors/lolo/ui/core/atoms/ui-textarea.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-theme-toggle.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-time-slot-cell.lolo +6 -0
- package/behaviors/lolo/ui/core/atoms/ui-trend-indicator.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-typewriter-text.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-vstack.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-accordion.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-activation-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-agent-activity-feed.lolo +249 -0
- package/behaviors/lolo/ui/core/molecules/ui-agent-activity-row.lolo +218 -0
- package/behaviors/lolo/ui/core/molecules/ui-agent-chat-feed.lolo +231 -0
- package/behaviors/lolo/ui/core/molecules/ui-alert.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-animated-counter.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-bloom-quiz-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-branching-logic-builder.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-calendar-grid.lolo +14 -0
- package/behaviors/lolo/ui/core/molecules/ui-carousel.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-change-list.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-chart-legend.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +12 -0
- package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-confirm-dialog.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-connection-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-container.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-content-renderer.lolo +5 -9
- package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +18 -4
- package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +18 -4
- package/behaviors/lolo/ui/core/molecules/ui-date-range-picker.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-date-range-selector.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-breadcrumb.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-pagination.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-search.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-sidebar.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-toc.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +8 -0
- package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-edge-decoration.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-emoji-picker.lolo +6 -1
- package/behaviors/lolo/ui/core/molecules/ui-empty-state.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-error-boundary.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-error-state.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-feature-card.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-feature-grid.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-flex.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-flip-card.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-form-field.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-form-layout.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-form-section-header.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-fx-overlay.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-gantt.lolo +14 -0
- package/behaviors/lolo/ui/core/molecules/ui-geometric-pattern.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-gradient-divider.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +40 -5
- package/behaviors/lolo/ui/core/molecules/ui-graph-view.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-grid.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-header.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-icon-button.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-import-progress.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-import-source-picker.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-input-group.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-jazari-state-machine.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-lightbox.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-likert-scale.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-line-chart.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-loading-state.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-map-view.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-markdown-content.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-matrix-question.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-modal.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-navigation.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-notification.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-number-stepper.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-option-constraint-group.lolo +20 -0
- package/behaviors/lolo/ui/core/molecules/ui-orbital-visualization.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-page-transition.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-pagination.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-popover.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-positioned-canvas.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-progress-dots.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-pull-to-refresh.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-qr-scanner.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-quiz-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-reflection-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-relation-select.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-repeatable-form-section.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-reply-tree.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-rich-text-editor.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-scaled-diagram.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-search-input.lolo +7 -1
- package/behaviors/lolo/ui/core/molecules/ui-section.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-side-panel.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-sidebar.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-signature-pad.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-simple-grid.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-skeleton.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-social-proof.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-sortable-list.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-split.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-star-rating.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-stat-display.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +8 -0
- package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +14 -0
- package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-tag-input.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-tooltip.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-top-nav-item.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-upload-drop-zone.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-version-diff.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-violation-alert.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-vote-stack.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-wizard-container.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-wizard-navigation.lolo +8 -0
- package/behaviors/lolo/ui/core/molecules/ui-wizard-progress.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-chat-bar.lolo +16 -0
- package/behaviors/lolo/ui/core/organisms/ui-code-runner-panel.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-dashboard-grid.lolo +10 -0
- package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +21 -5
- package/behaviors/lolo/ui/core/organisms/ui-dock-layout.lolo +8 -3
- package/behaviors/lolo/ui/core/organisms/ui-drawer-slot.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +16 -0
- package/behaviors/lolo/ui/core/organisms/ui-form.lolo +16 -0
- package/behaviors/lolo/ui/core/organisms/ui-master-detail-layout.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +14 -0
- package/behaviors/lolo/ui/core/organisms/ui-modal-slot.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-runtime-debugger.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +9 -3
- package/behaviors/lolo/ui/core/organisms/ui-split-pane.lolo +6 -0
- package/behaviors/lolo/ui/core/organisms/ui-stat-card.lolo +14 -0
- package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +8 -3
- package/behaviors/lolo/ui/core/organisms/ui-subagent-trace-panel.lolo +232 -0
- package/behaviors/lolo/ui/core/organisms/ui-tabbed-container.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +14 -0
- package/behaviors/lolo/ui/core/organisms/ui-toast-slot.lolo +5 -0
- package/behaviors/lolo/ui/core/templates/ui-counter-template.lolo +5 -0
- package/behaviors/lolo/ui/core/templates/ui-generic-app-template.lolo +5 -0
- package/behaviors/lolo/ui/game/.hand-authored.json +2 -2
- package/behaviors/lolo/ui/game/atoms/ui-action-palette.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-action-tile.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-choice-button.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-control-button.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-dialogue-bubble.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-game-audio-toggle.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-game-hud.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-health-bar.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-score-display.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-sequence-bar.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-stat-badge.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-state-graph.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-state-json-view.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-trait-slot.lolo +7 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +5 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +6 -0
- package/behaviors/lolo-behavior-contracts.json +1 -1
- package/behaviors/registry/agent/atoms/std-agent-memory.orb +30 -7
- package/behaviors/registry/agent/atoms/std-agent-session.orb +1509 -601
- package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +549 -116
- package/behaviors/registry/agent/atoms/std-agent-trace.orb +383 -87
- package/behaviors/registry/agent/organisms/std-agent-assistant.orb +116 -9
- package/behaviors/registry/factory-signatures.json +1 -1
- package/behaviors/registry/ui/avl/atoms/ui-avl-glyph.orb +20 -0
- package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +19 -0
- package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +44 -21
- package/behaviors/registry/ui/core/atoms/std-board.orb +110 -14
- package/behaviors/registry/ui/core/atoms/std-browse.orb +117 -142
- package/behaviors/registry/ui/core/atoms/std-graphs.orb +14 -2
- package/behaviors/registry/ui/core/atoms/std-panel-launcher.orb +312 -0
- package/behaviors/registry/ui/core/atoms/std-site-header.orb +40 -2
- package/behaviors/registry/ui/core/atoms/std-stats.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +2 -0
- package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +24 -0
- package/behaviors/registry/ui/core/atoms/std-version-history.orb +8 -1
- package/behaviors/registry/ui/core/atoms/ui-animated-graphic.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-animated-reveal.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-aside.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-avatar.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-badge.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-box.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-button.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-card.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-center.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-confetti-effect.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-day-cell.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-dialog.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-divider.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-filter-pill.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-flip-container.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-hstack.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-icon.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-image.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-infinite-scroll-sentinel.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-input.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-label.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-overlay.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-pattern-tile.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-presence.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-progress-bar.orb +20 -1
- package/behaviors/registry/ui/core/atoms/ui-radio.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-range-slider.orb +21 -0
- package/behaviors/registry/ui/core/atoms/ui-section-header.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-select.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-spacer.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-sparkline.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-spinner.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-stack.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-status-dot.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-branch.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-connection.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-grid.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-lobe.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-mesh.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-morph.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-node.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-pulse.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-ring.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-shield.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-stack.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-switch.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-text-highlight.orb +21 -0
- package/behaviors/registry/ui/core/atoms/ui-textarea.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-theme-toggle.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-time-slot-cell.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-trend-indicator.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-typewriter-text.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-typography.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-vstack.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-accordion.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-activation-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-agent-activity-feed.orb +1881 -0
- package/behaviors/registry/ui/core/molecules/ui-agent-activity-row.orb +1817 -0
- package/behaviors/registry/ui/core/molecules/ui-agent-chat-feed.orb +1792 -0
- package/behaviors/registry/ui/core/molecules/ui-alert.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-animated-counter.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-bloom-quiz-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +35 -0
- package/behaviors/registry/ui/core/molecules/ui-carousel.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-change-list.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-chart.orb +32 -0
- package/behaviors/registry/ui/core/molecules/ui-code-block.orb +26 -0
- package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-connection-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-container.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +19 -38
- package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +42 -0
- package/behaviors/registry/ui/core/molecules/ui-data-list.orb +42 -0
- package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-search.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-document-details.orb +22 -0
- package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-drawer.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +20 -1
- package/behaviors/registry/ui/core/molecules/ui-empty-state.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-error-boundary.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-error-state.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-feature-card.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-flex.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-form-field.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-form-section-header.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-gantt.orb +35 -0
- package/behaviors/registry/ui/core/molecules/ui-geometric-pattern.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +579 -108
- package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-grid.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-header.orb +26 -0
- package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-input-group.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-loading-state.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-map-view.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-menu.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-meter.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-modal.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-navigation.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-notification.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-number-stepper.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +97 -0
- package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-page-header.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-pagination.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-popover.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-positioned-canvas.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-progress-dots.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-pull-to-refresh.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-reflection-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-rich-text-editor.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-scaled-diagram.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-search-input.orb +21 -1
- package/behaviors/registry/ui/core/molecules/ui-section.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-side-panel.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-simple-grid.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-skeleton.orb +38 -0
- package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-split.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-star-rating.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +22 -0
- package/behaviors/registry/ui/core/molecules/ui-table-view.orb +36 -0
- package/behaviors/registry/ui/core/molecules/ui-tabs.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-tag-input.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-tooltip.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-vote-stack.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-wizard-navigation.orb +22 -0
- package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +53 -0
- package/behaviors/registry/ui/core/organisms/ui-code-runner-panel.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +31 -0
- package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +45 -1
- package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +22 -3
- package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-form-section.orb +38 -0
- package/behaviors/registry/ui/core/organisms/ui-form.orb +38 -0
- package/behaviors/registry/ui/core/organisms/ui-master-detail-layout.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +35 -0
- package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-runtime-debugger.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +39 -8
- package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +20 -0
- package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +35 -0
- package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +22 -0
- package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +2222 -48
- package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-timeline.orb +36 -0
- package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +19 -0
- package/behaviors/registry/ui/core/templates/ui-counter-template.orb +19 -0
- package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-canvas.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-control-button.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-score-display.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +21 -0
- package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +19 -0
- package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +20 -0
- package/behaviors/signatures.lolo +5306 -611
- package/canonical-operators.json +35 -1
- package/dist/behaviors/exports-reader.js +10353 -13958
- package/dist/behaviors/functions/index.d.ts +666 -974
- package/dist/behaviors/functions/index.js +10340 -13930
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +10354 -13959
- package/dist/behaviors/query.js +10353 -13958
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +35 -35
- package/dist/behaviors-registry.json +31682 -26740
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10392 -13959
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +1167 -815
- package/dist/modules/anim.d.ts +1 -1
- package/dist/modules/array.d.ts +1 -1
- package/dist/modules/async.d.ts +1 -1
- package/dist/modules/behavior.d.ts +1 -1
- package/dist/modules/browser.d.ts +1 -1
- package/dist/modules/composition.d.ts +1 -1
- package/dist/modules/contract.d.ts +1 -1
- package/dist/modules/core.d.ts +1 -1
- package/dist/modules/core.js +2 -0
- package/dist/modules/data.d.ts +1 -1
- package/dist/modules/ease.d.ts +1 -1
- package/dist/modules/format.d.ts +1 -1
- package/dist/modules/geo.d.ts +1 -1
- package/dist/modules/graph.d.ts +1 -1
- package/dist/modules/grid.d.ts +1 -1
- package/dist/modules/i18n.d.ts +17 -0
- package/dist/modules/i18n.js +22 -0
- package/dist/modules/index.d.ts +2 -1
- package/dist/modules/index.js +24 -1
- package/dist/modules/integration.d.ts +1 -1
- package/dist/modules/json.d.ts +1 -1
- package/dist/modules/llm.d.ts +1 -1
- package/dist/modules/math.d.ts +1 -1
- package/dist/modules/memory.d.ts +1 -1
- package/dist/modules/nn.d.ts +1 -1
- package/dist/modules/noise.d.ts +1 -1
- package/dist/modules/object.d.ts +1 -1
- package/dist/modules/os.d.ts +1 -1
- package/dist/modules/path.d.ts +1 -1
- package/dist/modules/prob.d.ts +1 -1
- package/dist/modules/session.d.ts +1 -1
- package/dist/modules/str.d.ts +1 -1
- package/dist/modules/tensor.d.ts +1 -1
- package/dist/modules/time.d.ts +1 -1
- package/dist/modules/trace.d.ts +1 -1
- package/dist/modules/train.d.ts +1 -1
- package/dist/modules/validate.d.ts +1 -1
- package/dist/modules/vector.d.ts +1 -1
- package/dist/modules/workspace.d.ts +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/dist/registry.d.ts +10 -3
- package/dist/registry.js +31 -1
- package/dist/{types-DLx38UFZ.d.ts → types-Cdb321uM.d.ts} +9 -3
- package/i18n/ar.json +1 -0
- package/i18n/en.json +1 -0
- package/i18n/sl.json +1 -0
- package/package.json +3 -3
- package/behaviors/lolo/ui/core/atoms/std-list.lolo +0 -613
- package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -399
- package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +0 -379
- package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +0 -447
- package/behaviors/lolo/ui/core/organisms/ui-master-detail.lolo +0 -276
- package/behaviors/registry/ui/core/atoms/std-list.orb +0 -2135
- package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -1346
- package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +0 -1248
- package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -1761
- package/behaviors/registry/ui/core/organisms/ui-master-detail.orb +0 -715
|
@@ -57,14 +57,14 @@ orbital AgentMemoryOrbital {
|
|
|
57
57
|
|
|
58
58
|
state recalling {
|
|
59
59
|
MemoryEmbedded -> recalling
|
|
60
|
-
(set @entity.queryVector (array/first ?embeddings))
|
|
60
|
+
(set @entity.queryVector (if (= (array/len ?embeddings) 0) [] (array/first ?embeddings)))
|
|
61
61
|
(fetch AgentMemory {
|
|
62
62
|
emit: { failure: AgentMemoriesLoadFailed, success: MemoriesForRecall }
|
|
63
63
|
})
|
|
64
64
|
MemoriesForRecall -> ready
|
|
65
65
|
(emit RECALLED {
|
|
66
66
|
messages: @entity.pendingMessages
|
|
67
|
-
context: (str/join (array/map (array/take (array/sort (array/map (array/filter ?data (fn item (= (array/len @item.embedding) (array/len @entity.queryVector)))) (fn item { content: @item.content, score: (array/cosine @item.embedding @entity.queryVector) })) score desc) @config.recallLimit) (fn item @item.content)) "\n")
|
|
67
|
+
context: (str/join (array/map (array/take (array/sort (array/map (array/filter ?data (fn item (and (> (array/len @entity.queryVector) 0) (= (array/len @item.embedding) (array/len @entity.queryVector))))) (fn item { content: @item.content, score: (array/cosine @item.embedding @entity.queryVector) })) score desc) @config.recallLimit) (fn item @item.content)) "\n")
|
|
68
68
|
})
|
|
69
69
|
MemoryEmbedFailed -> ready
|
|
70
70
|
(emit RECALLED { messages: @entity.pendingMessages, context: "" })
|
|
@@ -1,14 +1,71 @@
|
|
|
1
|
-
app std-agent-session "
|
|
2
|
-
"std-agent-session — the
|
|
1
|
+
app std-agent-session "3.0.0"
|
|
2
|
+
"std-agent-session — the conversation with an in-app assistant. AgentThread owns the persisted AgentMessage rows (role, content, ownerId stamped with the real @user, createdAt): SEND stores the user's message, reloads the thread and emits CONVERSE with the whole conversation, oldest first, for std-agent-tool-loop to answer; REPLIED stores the reply. AgentConversation is what the user sees, in the browser: the thread as chat bubbles with every step the assistant takes interleaved live (STEP: each model call, each tool it used and what the app answered), a thinking row while it works, and a chat bar. Rows are meant to be private to their owner: owner-scoped access needs an [identity] roster, so the binding organism declares the @read/@create scoping on AgentMessage — this generic atom cannot."
|
|
3
3
|
|
|
4
4
|
type AgentChatMessage = {
|
|
5
|
-
role : "user" | "assistant"
|
|
5
|
+
role : "user" | "assistant"!
|
|
6
6
|
content : string!
|
|
7
7
|
}
|
|
8
8
|
type AgentLink = {
|
|
9
9
|
label : string!
|
|
10
10
|
href : string!
|
|
11
11
|
}
|
|
12
|
+
type AgentThreadRow = {
|
|
13
|
+
role : "user" | "assistant"!
|
|
14
|
+
content : string!
|
|
15
|
+
createdAt : number
|
|
16
|
+
}
|
|
17
|
+
type AgentToolKind = "input" | "read" | "invalid"
|
|
18
|
+
type AgentMessageEntry = {
|
|
19
|
+
type : "message"!
|
|
20
|
+
role : "user" | "assistant"!
|
|
21
|
+
content : string!
|
|
22
|
+
timestamp : number!
|
|
23
|
+
}
|
|
24
|
+
type AgentErrorEntry = {
|
|
25
|
+
type : "error"!
|
|
26
|
+
message : string!
|
|
27
|
+
timestamp : number!
|
|
28
|
+
}
|
|
29
|
+
type AgentToolCallActivity = {
|
|
30
|
+
type : "tool_call"!
|
|
31
|
+
tool : string!
|
|
32
|
+
kind : AgentToolKind
|
|
33
|
+
argsText : string!
|
|
34
|
+
timestamp : number!
|
|
35
|
+
isExecuting : boolean
|
|
36
|
+
}
|
|
37
|
+
type AgentToolResultActivity = {
|
|
38
|
+
type : "tool_result"!
|
|
39
|
+
tool : string!
|
|
40
|
+
kind : AgentToolKind
|
|
41
|
+
success : boolean!
|
|
42
|
+
detail : string
|
|
43
|
+
rows : number
|
|
44
|
+
resultText : string!
|
|
45
|
+
timestamp : number!
|
|
46
|
+
}
|
|
47
|
+
type AgentLlmCall = {
|
|
48
|
+
service : string!
|
|
49
|
+
provider : string!
|
|
50
|
+
model : string!
|
|
51
|
+
systemPrompt : string!
|
|
52
|
+
userPrompt : string!
|
|
53
|
+
toolCallsJson : string
|
|
54
|
+
attempt : number
|
|
55
|
+
durationMs : number!
|
|
56
|
+
promptTokens : number
|
|
57
|
+
completionTokens : number
|
|
58
|
+
cachedPromptTokens : number
|
|
59
|
+
costUSD : number
|
|
60
|
+
}
|
|
61
|
+
type AgentLlmResponseActivity = {
|
|
62
|
+
type : "llm_response"!
|
|
63
|
+
content : string!
|
|
64
|
+
llm : AgentLlmCall
|
|
65
|
+
timestamp : number!
|
|
66
|
+
}
|
|
67
|
+
type AgentActivity = AgentToolCallActivity | AgentToolResultActivity | AgentLlmResponseActivity
|
|
68
|
+
type AgentFeedEntry = AgentMessageEntry | AgentToolCallActivity | AgentToolResultActivity | AgentLlmResponseActivity | AgentErrorEntry
|
|
12
69
|
|
|
13
70
|
orbital AgentSessionOrbital {
|
|
14
71
|
type AgentMessagesLoaded = Event { data : [AgentMessage] } "Fired when the conversation finishes loading"
|
|
@@ -22,125 +79,23 @@ orbital AgentSessionOrbital {
|
|
|
22
79
|
role : "user" | "assistant" @description "Who said it." @synonyms "speaker, author" = user
|
|
23
80
|
content : string! @description "What was said." @synonyms "text, message, body"
|
|
24
81
|
createdAt : number @description "When it was said (ms)." @synonyms "time, timestamp" = 0
|
|
25
|
-
draft : string @intrinsic @description "The message being typed." = ""
|
|
26
82
|
}
|
|
27
83
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
@tier "presentation"
|
|
34
|
-
placeholder : string = "Ask the assistant…"
|
|
35
|
-
@label "Message placeholder"
|
|
36
|
-
@tier "presentation"
|
|
37
|
-
links : [AgentLink] = []
|
|
38
|
-
@label "Links above the conversation"
|
|
39
|
-
@description "Related pages (e.g. the run history), shown under the title."
|
|
40
|
-
@tier "presentation"
|
|
41
|
-
}
|
|
42
|
-
initial: loading
|
|
84
|
+
entity AgentConversationView [runtime] {
|
|
85
|
+
id : string!
|
|
86
|
+
entries : [AgentFeedEntry] @description "The conversation as shown: messages with the assistant's steps between them." = []
|
|
87
|
+
working : boolean @description "The assistant is answering." = false
|
|
88
|
+
}
|
|
43
89
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
(fetch AgentMessage {
|
|
47
|
-
emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
|
|
48
|
-
})
|
|
49
|
-
(render-ui main {
|
|
50
|
-
type: stack
|
|
51
|
-
direction: vertical
|
|
52
|
-
gap: lg
|
|
53
|
-
children: [{ type: skeleton, variant: header }, { type: skeleton, variant: list, rows: 6 }]
|
|
54
|
-
})
|
|
55
|
-
AgentMessagesLoaded -> chatting
|
|
56
|
-
(render-ui main {
|
|
57
|
-
children: [{
|
|
58
|
-
content: @config.title
|
|
59
|
-
type: typography
|
|
60
|
-
variant: h4
|
|
61
|
-
}, {
|
|
62
|
-
children: (array/map @config.links (fn item {
|
|
63
|
-
href: @item.href
|
|
64
|
-
label: @item.label
|
|
65
|
-
type: button
|
|
66
|
-
variant: ghost
|
|
67
|
-
}))
|
|
68
|
-
direction: horizontal
|
|
69
|
-
gap: sm
|
|
70
|
-
type: stack
|
|
71
|
-
}, {
|
|
72
|
-
entity: (array/sort ?data createdAt asc)
|
|
73
|
-
fields: []
|
|
74
|
-
gap: sm
|
|
75
|
-
renderItem: (fn item {
|
|
76
|
-
children: [{
|
|
77
|
-
label: @item.role
|
|
78
|
-
size: sm
|
|
79
|
-
type: badge
|
|
80
|
-
variant: neutral
|
|
81
|
-
}, {
|
|
82
|
-
content: @item.content
|
|
83
|
-
type: typography
|
|
84
|
-
variant: body
|
|
85
|
-
}]
|
|
86
|
-
direction: vertical
|
|
87
|
-
gap: xs
|
|
88
|
-
type: stack
|
|
89
|
-
})
|
|
90
|
-
type: data-list
|
|
91
|
-
}, {
|
|
92
|
-
children: [{
|
|
93
|
-
aria-label: "Message"
|
|
94
|
-
onChange: EDIT_MESSAGE
|
|
95
|
-
placeholder: @config.placeholder
|
|
96
|
-
type: textarea
|
|
97
|
-
}, {
|
|
98
|
-
action: SEND_DRAFT
|
|
99
|
-
icon: send
|
|
100
|
-
label: Send
|
|
101
|
-
type: button
|
|
102
|
-
variant: primary
|
|
103
|
-
}]
|
|
104
|
-
direction: horizontal
|
|
105
|
-
gap: sm
|
|
106
|
-
type: stack
|
|
107
|
-
}]
|
|
108
|
-
direction: vertical
|
|
109
|
-
gap: md
|
|
110
|
-
type: stack
|
|
111
|
-
})
|
|
112
|
-
AgentMessagesLoadFailed -> chatting
|
|
113
|
-
(render-ui main {
|
|
114
|
-
message: ?error
|
|
115
|
-
type: alert
|
|
116
|
-
variant: error
|
|
117
|
-
})
|
|
118
|
-
}
|
|
90
|
+
trait AgentThread -> @rebindable AgentMessage [lifecycle] {
|
|
91
|
+
initial: ready
|
|
119
92
|
|
|
120
|
-
state
|
|
121
|
-
INIT ->
|
|
93
|
+
state ready {
|
|
94
|
+
INIT -> ready
|
|
122
95
|
(fetch AgentMessage {
|
|
123
96
|
emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
|
|
124
97
|
})
|
|
125
|
-
|
|
126
|
-
type: stack
|
|
127
|
-
direction: vertical
|
|
128
|
-
gap: lg
|
|
129
|
-
children: [{ type: skeleton, variant: header }, { type: skeleton, variant: list, rows: 6 }]
|
|
130
|
-
})
|
|
131
|
-
EDIT_MESSAGE -> chatting
|
|
132
|
-
(set @entity.draft ?value)
|
|
133
|
-
SEND_DRAFT -> waiting when (not ["=", (str/default @entity.draft ""), ""])
|
|
134
|
-
(persist create AgentMessage {
|
|
135
|
-
ownerId: @user.id
|
|
136
|
-
role: user
|
|
137
|
-
content: @entity.draft
|
|
138
|
-
createdAt: @now
|
|
139
|
-
} {
|
|
140
|
-
emit: { failure: AgentMessageSaveFailed, success: AgentMessageSaved }
|
|
141
|
-
})
|
|
142
|
-
(set @entity.draft "")
|
|
143
|
-
SEND -> waiting when (not ["=", (str/default ?message ""), ""])
|
|
98
|
+
SEND -> ready when (not ["=", (str/default ?message ""), ""])
|
|
144
99
|
(persist create AgentMessage {
|
|
145
100
|
ownerId: @user.id
|
|
146
101
|
role: user
|
|
@@ -149,57 +104,31 @@ orbital AgentSessionOrbital {
|
|
|
149
104
|
} {
|
|
150
105
|
emit: { failure: AgentMessageSaveFailed, success: AgentMessageSaved }
|
|
151
106
|
})
|
|
152
|
-
|
|
153
|
-
(persist create AgentMessage {
|
|
154
|
-
ownerId: @user.id
|
|
155
|
-
role: assistant
|
|
156
|
-
content: ?reply
|
|
157
|
-
createdAt: @now
|
|
158
|
-
})
|
|
159
|
-
(fetch AgentMessage {
|
|
160
|
-
emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
|
|
161
|
-
})
|
|
162
|
-
REPLY_FAILED -> loading
|
|
163
|
-
(fetch AgentMessage {
|
|
164
|
-
emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
|
|
165
|
-
})
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
state waiting {
|
|
169
|
-
AgentMessageSaved -> waiting
|
|
107
|
+
AgentMessageSaved -> ready
|
|
170
108
|
(fetch AgentMessage {
|
|
171
109
|
emit: { failure: AgentMessagesLoadFailed, success: AgentConversationLoaded }
|
|
172
110
|
})
|
|
173
|
-
|
|
174
|
-
size: sm
|
|
175
|
-
type: spinner
|
|
176
|
-
})
|
|
177
|
-
AgentConversationLoaded -> waiting
|
|
111
|
+
AgentConversationLoaded -> ready
|
|
178
112
|
(emit CONVERSE {
|
|
179
113
|
messages: (array/map (array/sort ?data createdAt asc) (fn item { role: @item.role, content: @item.content }))
|
|
180
114
|
})
|
|
181
|
-
REPLIED ->
|
|
115
|
+
REPLIED -> ready
|
|
182
116
|
(persist create AgentMessage {
|
|
183
117
|
ownerId: @user.id
|
|
184
118
|
role: assistant
|
|
185
119
|
content: ?reply
|
|
186
120
|
createdAt: @now
|
|
187
121
|
})
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
REPLY_FAILED -> loading
|
|
192
|
-
(fetch AgentMessage {
|
|
193
|
-
emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
|
|
194
|
-
})
|
|
195
|
-
AgentMessageSaveFailed -> chatting
|
|
196
|
-
(render-ui main {
|
|
122
|
+
AgentMessagesLoadFailed -> ready
|
|
123
|
+
(emit THREAD_FAILED { error: ?error })
|
|
124
|
+
(render-ui toast {
|
|
197
125
|
message: ?error
|
|
198
126
|
type: alert
|
|
199
127
|
variant: error
|
|
200
128
|
})
|
|
201
|
-
|
|
202
|
-
(
|
|
129
|
+
AgentMessageSaveFailed -> ready
|
|
130
|
+
(emit THREAD_FAILED { error: ?error })
|
|
131
|
+
(render-ui toast {
|
|
203
132
|
message: ?error
|
|
204
133
|
type: alert
|
|
205
134
|
variant: error
|
|
@@ -207,51 +136,292 @@ orbital AgentSessionOrbital {
|
|
|
207
136
|
}
|
|
208
137
|
|
|
209
138
|
emits {
|
|
139
|
+
THREAD_FAILED -> external {
|
|
140
|
+
error : string!
|
|
141
|
+
}
|
|
142
|
+
@description "The conversation could not be loaded or a message could not be stored."
|
|
143
|
+
@synonyms "failed, error"
|
|
144
|
+
@tier "domain"
|
|
210
145
|
CONVERSE -> external {
|
|
211
146
|
messages : [AgentChatMessage]!
|
|
212
147
|
}
|
|
213
148
|
@description "The conversation to answer, oldest first; the last turn is the request."
|
|
214
149
|
@synonyms "ask, converse, request"
|
|
215
150
|
@tier "domain"
|
|
216
|
-
|
|
217
|
-
data : [AgentMessage]
|
|
218
|
-
}
|
|
219
|
-
@tier "internal"
|
|
220
|
-
AgentMessagesLoaded {
|
|
151
|
+
AgentMessagesLoaded -> external {
|
|
221
152
|
data : [AgentMessage]
|
|
222
153
|
}
|
|
223
154
|
@description "The conversation finished loading."
|
|
224
155
|
@tier "internal"
|
|
225
|
-
AgentMessagesLoadFailed {
|
|
156
|
+
AgentMessagesLoadFailed -> external {
|
|
226
157
|
error : string
|
|
227
158
|
code : string
|
|
159
|
+
}
|
|
160
|
+
@description "The conversation could not be loaded."
|
|
161
|
+
@tier "internal"
|
|
162
|
+
AgentConversationLoaded -> internal {
|
|
163
|
+
data : [AgentMessage]
|
|
228
164
|
}
|
|
229
165
|
@tier "internal"
|
|
230
166
|
AgentMessageSaved
|
|
231
167
|
@description "A message persisted — payload is the created AgentMessage row itself."
|
|
232
168
|
@tier "internal"
|
|
233
|
-
AgentMessageSaveFailed {
|
|
169
|
+
AgentMessageSaveFailed -> external {
|
|
234
170
|
error : string
|
|
235
171
|
code : string
|
|
236
172
|
}
|
|
173
|
+
@description "The message could not be stored."
|
|
237
174
|
@tier "internal"
|
|
238
|
-
|
|
239
|
-
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
listens {
|
|
178
|
+
AgentConversation.SEND -> SEND
|
|
179
|
+
SEND {
|
|
180
|
+
message : string!
|
|
181
|
+
}
|
|
182
|
+
@description "Store the user's message and ask the assistant."
|
|
183
|
+
@synonyms "ask, message, chat"
|
|
184
|
+
REPLIED {
|
|
185
|
+
reply : string!
|
|
240
186
|
}
|
|
241
|
-
@description "
|
|
187
|
+
@description "Store the assistant's answer."
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
trait AgentConversation -> @rebindable AgentConversationView [interaction, instance] {
|
|
192
|
+
config {
|
|
193
|
+
placeholder : string = "Ask the assistant…"
|
|
194
|
+
@label "Message placeholder"
|
|
195
|
+
@tier "presentation"
|
|
196
|
+
emptyTitle : string = "Ask me to do something in this app"
|
|
197
|
+
@label "Empty conversation title"
|
|
198
|
+
@tier "presentation"
|
|
199
|
+
links : [AgentLink] = []
|
|
200
|
+
@label "Links above the conversation"
|
|
201
|
+
@description "Related pages (e.g. the run history)."
|
|
242
202
|
@tier "presentation"
|
|
243
|
-
|
|
203
|
+
}
|
|
204
|
+
initial: idle
|
|
205
|
+
|
|
206
|
+
state idle {
|
|
207
|
+
INIT -> idle
|
|
208
|
+
(render-ui main {
|
|
209
|
+
children: [{
|
|
210
|
+
children: (array/map @config.links (fn item {
|
|
211
|
+
href: @item.href
|
|
212
|
+
label: @item.label
|
|
213
|
+
type: button
|
|
214
|
+
variant: ghost
|
|
215
|
+
}))
|
|
216
|
+
direction: horizontal
|
|
217
|
+
gap: sm
|
|
218
|
+
type: stack
|
|
219
|
+
}, {
|
|
220
|
+
activities: @entity.entries
|
|
221
|
+
className: flex-1
|
|
222
|
+
emptyTitle: @config.emptyTitle
|
|
223
|
+
idPrefix: agent-conversation
|
|
224
|
+
rawLlmPreferenceKey: agent-conversation-raw-llm
|
|
225
|
+
type: agent-chat-feed
|
|
226
|
+
working: @entity.working
|
|
227
|
+
}, {
|
|
228
|
+
placeholder: @config.placeholder
|
|
229
|
+
sendEvent: ASK
|
|
230
|
+
type: chat-bar
|
|
231
|
+
}]
|
|
232
|
+
className: "h-full min-h-0 flex-1"
|
|
233
|
+
direction: vertical
|
|
234
|
+
gap: sm
|
|
235
|
+
type: stack
|
|
236
|
+
})
|
|
237
|
+
THREAD_LOADED -> idle
|
|
238
|
+
(set @entity.entries (array/map (array/sort ?data createdAt asc) (fn item { type: message, role: @item.role, content: @item.content, timestamp: @item.createdAt })))
|
|
239
|
+
(render-ui main {
|
|
240
|
+
children: [{
|
|
241
|
+
children: (array/map @config.links (fn item {
|
|
242
|
+
href: @item.href
|
|
243
|
+
label: @item.label
|
|
244
|
+
type: button
|
|
245
|
+
variant: ghost
|
|
246
|
+
}))
|
|
247
|
+
direction: horizontal
|
|
248
|
+
gap: sm
|
|
249
|
+
type: stack
|
|
250
|
+
}, {
|
|
251
|
+
activities: @entity.entries
|
|
252
|
+
className: flex-1
|
|
253
|
+
emptyTitle: @config.emptyTitle
|
|
254
|
+
idPrefix: agent-conversation
|
|
255
|
+
rawLlmPreferenceKey: agent-conversation-raw-llm
|
|
256
|
+
type: agent-chat-feed
|
|
257
|
+
working: @entity.working
|
|
258
|
+
}, {
|
|
259
|
+
placeholder: @config.placeholder
|
|
260
|
+
sendEvent: ASK
|
|
261
|
+
type: chat-bar
|
|
262
|
+
}]
|
|
263
|
+
className: "h-full min-h-0 flex-1"
|
|
264
|
+
direction: vertical
|
|
265
|
+
gap: sm
|
|
266
|
+
type: stack
|
|
267
|
+
})
|
|
268
|
+
ASK -> idle when (and (not @entity.working) (not ["=", (str/default ?message ""), ""]))
|
|
269
|
+
(set @entity.entries (array/append @entity.entries { type: message, role: user, content: ?message, timestamp: @now }))
|
|
270
|
+
(set @entity.working true)
|
|
271
|
+
(emit SEND { message: ?message })
|
|
272
|
+
(render-ui main {
|
|
273
|
+
children: [{
|
|
274
|
+
children: (array/map @config.links (fn item {
|
|
275
|
+
href: @item.href
|
|
276
|
+
label: @item.label
|
|
277
|
+
type: button
|
|
278
|
+
variant: ghost
|
|
279
|
+
}))
|
|
280
|
+
direction: horizontal
|
|
281
|
+
gap: sm
|
|
282
|
+
type: stack
|
|
283
|
+
}, {
|
|
284
|
+
activities: @entity.entries
|
|
285
|
+
className: flex-1
|
|
286
|
+
emptyTitle: @config.emptyTitle
|
|
287
|
+
idPrefix: agent-conversation
|
|
288
|
+
rawLlmPreferenceKey: agent-conversation-raw-llm
|
|
289
|
+
type: agent-chat-feed
|
|
290
|
+
working: @entity.working
|
|
291
|
+
}, {
|
|
292
|
+
placeholder: @config.placeholder
|
|
293
|
+
sendEvent: ASK
|
|
294
|
+
type: chat-bar
|
|
295
|
+
}]
|
|
296
|
+
className: "h-full min-h-0 flex-1"
|
|
297
|
+
direction: vertical
|
|
298
|
+
gap: sm
|
|
299
|
+
type: stack
|
|
300
|
+
})
|
|
301
|
+
STEP -> idle
|
|
302
|
+
(set @entity.entries (array/append @entity.entries ?activity))
|
|
303
|
+
(render-ui main {
|
|
304
|
+
children: [{
|
|
305
|
+
children: (array/map @config.links (fn item {
|
|
306
|
+
href: @item.href
|
|
307
|
+
label: @item.label
|
|
308
|
+
type: button
|
|
309
|
+
variant: ghost
|
|
310
|
+
}))
|
|
311
|
+
direction: horizontal
|
|
312
|
+
gap: sm
|
|
313
|
+
type: stack
|
|
314
|
+
}, {
|
|
315
|
+
activities: @entity.entries
|
|
316
|
+
className: flex-1
|
|
317
|
+
emptyTitle: @config.emptyTitle
|
|
318
|
+
idPrefix: agent-conversation
|
|
319
|
+
rawLlmPreferenceKey: agent-conversation-raw-llm
|
|
320
|
+
type: agent-chat-feed
|
|
321
|
+
working: @entity.working
|
|
322
|
+
}, {
|
|
323
|
+
placeholder: @config.placeholder
|
|
324
|
+
sendEvent: ASK
|
|
325
|
+
type: chat-bar
|
|
326
|
+
}]
|
|
327
|
+
className: "h-full min-h-0 flex-1"
|
|
328
|
+
direction: vertical
|
|
329
|
+
gap: sm
|
|
330
|
+
type: stack
|
|
331
|
+
})
|
|
332
|
+
REPLIED -> idle
|
|
333
|
+
(set @entity.entries (array/append @entity.entries { type: message, role: assistant, content: ?reply, timestamp: @now }))
|
|
334
|
+
(set @entity.working false)
|
|
335
|
+
(render-ui main {
|
|
336
|
+
children: [{
|
|
337
|
+
children: (array/map @config.links (fn item {
|
|
338
|
+
href: @item.href
|
|
339
|
+
label: @item.label
|
|
340
|
+
type: button
|
|
341
|
+
variant: ghost
|
|
342
|
+
}))
|
|
343
|
+
direction: horizontal
|
|
344
|
+
gap: sm
|
|
345
|
+
type: stack
|
|
346
|
+
}, {
|
|
347
|
+
activities: @entity.entries
|
|
348
|
+
className: flex-1
|
|
349
|
+
emptyTitle: @config.emptyTitle
|
|
350
|
+
idPrefix: agent-conversation
|
|
351
|
+
rawLlmPreferenceKey: agent-conversation-raw-llm
|
|
352
|
+
type: agent-chat-feed
|
|
353
|
+
working: @entity.working
|
|
354
|
+
}, {
|
|
355
|
+
placeholder: @config.placeholder
|
|
356
|
+
sendEvent: ASK
|
|
357
|
+
type: chat-bar
|
|
358
|
+
}]
|
|
359
|
+
className: "h-full min-h-0 flex-1"
|
|
360
|
+
direction: vertical
|
|
361
|
+
gap: sm
|
|
362
|
+
type: stack
|
|
363
|
+
})
|
|
364
|
+
REPLY_FAILED -> idle
|
|
365
|
+
(set @entity.entries (array/append @entity.entries { type: error, message: ?error, timestamp: @now }))
|
|
366
|
+
(set @entity.working false)
|
|
367
|
+
(render-ui main {
|
|
368
|
+
children: [{
|
|
369
|
+
children: (array/map @config.links (fn item {
|
|
370
|
+
href: @item.href
|
|
371
|
+
label: @item.label
|
|
372
|
+
type: button
|
|
373
|
+
variant: ghost
|
|
374
|
+
}))
|
|
375
|
+
direction: horizontal
|
|
376
|
+
gap: sm
|
|
377
|
+
type: stack
|
|
378
|
+
}, {
|
|
379
|
+
activities: @entity.entries
|
|
380
|
+
className: flex-1
|
|
381
|
+
emptyTitle: @config.emptyTitle
|
|
382
|
+
idPrefix: agent-conversation
|
|
383
|
+
rawLlmPreferenceKey: agent-conversation-raw-llm
|
|
384
|
+
type: agent-chat-feed
|
|
385
|
+
working: @entity.working
|
|
386
|
+
}, {
|
|
387
|
+
placeholder: @config.placeholder
|
|
388
|
+
sendEvent: ASK
|
|
389
|
+
type: chat-bar
|
|
390
|
+
}]
|
|
391
|
+
className: "h-full min-h-0 flex-1"
|
|
392
|
+
direction: vertical
|
|
393
|
+
gap: sm
|
|
394
|
+
type: stack
|
|
395
|
+
})
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
emits {
|
|
399
|
+
SEND -> external {
|
|
400
|
+
message : string!
|
|
401
|
+
}
|
|
402
|
+
@description "The user asked something; AgentThread stores it and asks the assistant."
|
|
403
|
+
@synonyms "ask, send, submit"
|
|
404
|
+
@tier "domain"
|
|
405
|
+
ASK {
|
|
406
|
+
message : string!
|
|
407
|
+
}
|
|
244
408
|
@description "Send the typed message."
|
|
245
409
|
@synonyms "send, ask, submit"
|
|
246
|
-
@tier "
|
|
410
|
+
@tier "presentation"
|
|
247
411
|
}
|
|
248
412
|
|
|
249
413
|
listens {
|
|
250
|
-
|
|
251
|
-
|
|
414
|
+
AgentThread.AgentMessagesLoaded -> THREAD_LOADED
|
|
415
|
+
AgentThread.THREAD_FAILED -> REPLY_FAILED
|
|
416
|
+
THREAD_LOADED {
|
|
417
|
+
data : [AgentThreadRow]
|
|
252
418
|
}
|
|
253
|
-
@description "
|
|
254
|
-
|
|
419
|
+
@description "Show the stored conversation."
|
|
420
|
+
STEP {
|
|
421
|
+
activity : AgentActivity!
|
|
422
|
+
}
|
|
423
|
+
@description "One step the assistant just took, shown as it happens."
|
|
424
|
+
@synonyms "progress, activity, working"
|
|
255
425
|
REPLIED {
|
|
256
426
|
reply : string!
|
|
257
427
|
}
|
|
@@ -263,5 +433,5 @@ orbital AgentSessionOrbital {
|
|
|
263
433
|
}
|
|
264
434
|
}
|
|
265
435
|
|
|
266
|
-
page "/agent-session" as AgentSessionPage -> AgentThread
|
|
436
|
+
page "/agent-session" as AgentSessionPage -> AgentConversation, AgentThread
|
|
267
437
|
}
|