@almadar/ui 5.79.1 → 5.79.2
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/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
- package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
- package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
- package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
- package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
- package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
- package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
- package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
- package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
- package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
- package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
- package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
- package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
- package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
- package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
- package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
- package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
- package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
- package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
- package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
- package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
- package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
- package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
- package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
- package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
- package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
- package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
- package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
- package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
- package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
- package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
- package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
- package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
- package/dist/avl/index.cjs +64422 -0
- package/dist/avl/index.css +1252 -0
- package/dist/avl/index.d.cts +1853 -0
- package/dist/avl/index.d.ts +64 -0
- package/dist/avl/index.js +64310 -0
- package/dist/components/avl/atoms/Avl3DLabel.d.ts +23 -0
- package/dist/components/avl/atoms/Avl3DTooltip.d.ts +25 -0
- package/dist/components/avl/atoms/AvlApplication.d.ts +8 -0
- package/dist/components/avl/atoms/AvlBinding.d.ts +12 -0
- package/dist/components/avl/atoms/AvlBindingRef.d.ts +7 -0
- package/dist/components/avl/atoms/AvlEffect.d.ts +10 -0
- package/dist/components/avl/atoms/AvlEntity.d.ts +9 -0
- package/dist/components/avl/atoms/AvlEvent.d.ts +7 -0
- package/dist/components/avl/atoms/AvlField.d.ts +10 -0
- package/dist/components/avl/atoms/AvlFieldType.d.ts +8 -0
- package/dist/components/avl/atoms/AvlGuard.d.ts +7 -0
- package/dist/components/avl/atoms/AvlLiteral.d.ts +7 -0
- package/dist/components/avl/atoms/AvlOperator.d.ts +8 -0
- package/dist/components/avl/atoms/AvlOrbital.d.ts +11 -0
- package/dist/components/avl/atoms/AvlPage.d.ts +7 -0
- package/dist/components/avl/atoms/AvlPersistence.d.ts +8 -0
- package/dist/components/avl/atoms/AvlSExpr.d.ts +8 -0
- package/dist/components/avl/atoms/AvlState.d.ts +15 -0
- package/dist/components/avl/atoms/AvlTrait.d.ts +13 -0
- package/dist/components/avl/atoms/AvlTransition.d.ts +18 -0
- package/dist/components/avl/atoms/index.d.ts +24 -0
- package/dist/components/avl/hooks/useCanvasDnd.d.ts +155 -0
- package/dist/components/avl/lib/avl-3d-layout.d.ts +116 -0
- package/dist/components/avl/lib/avl-behavior-compose-converter.d.ts +55 -0
- package/dist/components/avl/lib/avl-elk-layout.d.ts +55 -0
- package/dist/components/avl/lib/avl-flow-converter.d.ts +17 -0
- package/dist/components/avl/lib/avl-layout.d.ts +32 -0
- package/dist/components/avl/lib/avl-preview-converter.d.ts +71 -0
- package/dist/components/avl/lib/avl-schema-parser.d.ts +128 -0
- package/dist/components/avl/lib/avl-story-schemas.d.ts +34 -0
- package/dist/components/avl/lib/avl-zoom-band.d.ts +19 -0
- package/dist/components/avl/lib/avl-zoom-state.d.ts +72 -0
- package/dist/components/avl/lib/derive-edit-focus.d.ts +8 -0
- package/dist/components/avl/lib/wire-validation.d.ts +30 -0
- package/dist/components/avl/molecules/Avl3DCrossWire.d.ts +22 -0
- package/dist/components/avl/molecules/Avl3DEntityCore.d.ts +26 -0
- package/dist/components/avl/molecules/Avl3DExprTree.d.ts +21 -0
- package/dist/components/avl/molecules/Avl3DOrbitalNode.d.ts +29 -0
- package/dist/components/avl/molecules/Avl3DStateNode.d.ts +34 -0
- package/dist/components/avl/molecules/Avl3DTransitionArc.d.ts +38 -0
- package/dist/components/avl/molecules/AvlBackwardEdge.d.ts +8 -0
- package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +61 -0
- package/dist/components/avl/molecules/AvlBindingEdge.d.ts +9 -0
- package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +20 -0
- package/dist/components/avl/molecules/AvlEmitListen.d.ts +16 -0
- package/dist/components/avl/molecules/AvlEventWireEdge.d.ts +15 -0
- package/dist/components/avl/molecules/AvlExprTree.d.ts +13 -0
- package/dist/components/avl/molecules/AvlOrbitalNode.d.ts +12 -0
- package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +20 -0
- package/dist/components/avl/molecules/AvlPageEdge.d.ts +8 -0
- package/dist/components/avl/molecules/AvlSlotMap.d.ts +18 -0
- package/dist/components/avl/molecules/AvlStateMachine.d.ts +22 -0
- package/dist/components/avl/molecules/AvlSwimLane.d.ts +10 -0
- package/dist/components/avl/molecules/AvlTransitionEdge.d.ts +17 -0
- package/dist/components/avl/molecules/AvlTransitionLane.d.ts +18 -0
- package/dist/components/avl/molecules/BehaviorComposeNode.d.ts +13 -0
- package/dist/components/avl/molecules/BehaviorView.d.ts +12 -0
- package/dist/components/avl/molecules/DetailView.d.ts +13 -0
- package/dist/components/avl/molecules/EventFlowEdge.d.ts +13 -0
- package/dist/components/avl/molecules/MiniStateMachine.d.ts +14 -0
- package/dist/components/avl/molecules/ModuleCard.d.ts +22 -0
- package/dist/components/avl/molecules/OrbPreviewNode.d.ts +38 -0
- package/dist/components/avl/molecules/SystemNode.d.ts +12 -0
- package/dist/components/avl/molecules/TraitCardNode.d.ts +33 -0
- package/dist/components/avl/molecules/index.d.ts +38 -0
- package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +19 -0
- package/dist/components/avl/organisms/Avl3DEffects.d.ts +18 -0
- package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +23 -0
- package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +19 -0
- package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +17 -0
- package/dist/components/avl/organisms/Avl3DViewer.d.ts +40 -0
- package/dist/components/avl/organisms/AvlClickTarget.d.ts +31 -0
- package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +41 -0
- package/dist/components/avl/organisms/AvlLegend.d.ts +15 -0
- package/dist/components/avl/organisms/AvlOrbitalsCosmicZoom.d.ts +54 -0
- package/dist/components/avl/organisms/AvlTraitScene.d.ts +17 -0
- package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +20 -0
- package/dist/components/avl/organisms/AvlTransitionScene.d.ts +13 -0
- package/dist/components/avl/organisms/FlowCanvas.d.ts +134 -0
- package/dist/components/avl/organisms/OrbInspector.d.ts +45 -0
- package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +16 -0
- package/dist/components/avl/organisms/ZoomLegend.d.ts +10 -0
- package/dist/components/avl/organisms/index.d.ts +19 -0
- package/dist/components/avl/providers/avl-3d-context.d.ts +32 -0
- package/dist/components/avl/types/avl-atom-types.d.ts +53 -0
- package/dist/components/avl/types/avl-behavior-compose-types.d.ts +120 -0
- package/dist/components/avl/types/avl-canvas-types.d.ts +39 -0
- package/dist/components/avl/types/avl-preview-types.d.ts +240 -0
- package/dist/components/core/atoms/Aside.d.ts +15 -0
- package/dist/components/core/atoms/Avatar.d.ts +61 -0
- package/dist/components/core/atoms/Badge.d.ts +26 -0
- package/dist/components/core/atoms/Box.d.ts +66 -0
- package/dist/components/core/atoms/Button.d.ts +31 -0
- package/dist/components/core/atoms/Card.d.ts +34 -0
- package/dist/components/core/atoms/Center.d.ts +33 -0
- package/dist/components/core/atoms/Checkbox.d.ts +14 -0
- package/dist/components/core/atoms/ConditionalWrapper.d.ts +69 -0
- package/dist/components/core/atoms/ConfettiEffect.d.ts +19 -0
- package/dist/components/core/atoms/DayCell.d.ts +22 -0
- package/dist/components/core/atoms/Dialog.d.ts +18 -0
- package/dist/components/core/atoms/Divider.d.ts +29 -0
- package/dist/components/core/atoms/FilterPill.d.ts +30 -0
- package/dist/components/core/atoms/FlipContainer.d.ts +21 -0
- package/dist/components/core/atoms/Icon.d.ts +57 -0
- package/dist/components/core/atoms/InfiniteScrollSentinel.d.ts +24 -0
- package/dist/components/core/atoms/Input.d.ts +39 -0
- package/dist/components/core/atoms/Label.d.ts +12 -0
- package/dist/components/core/atoms/LawReferenceTooltip.d.ts +48 -0
- package/dist/components/core/atoms/Overlay.d.ts +17 -0
- package/dist/components/core/atoms/ProgressBar.d.ts +63 -0
- package/dist/components/core/atoms/Radio.d.ts +35 -0
- package/dist/components/core/atoms/RangeSlider.d.ts +34 -0
- package/dist/components/core/atoms/SectionHeader.d.ts +14 -0
- package/dist/components/core/atoms/Select.d.ts +49 -0
- package/dist/components/core/atoms/Spacer.d.ts +25 -0
- package/dist/components/core/atoms/Sparkline.d.ts +30 -0
- package/dist/components/core/atoms/Spinner.d.ts +10 -0
- package/dist/components/core/atoms/Stack.d.ts +67 -0
- package/dist/components/core/atoms/StatusDot.d.ts +16 -0
- package/dist/components/core/atoms/Switch.d.ts +12 -0
- package/dist/components/core/atoms/TextHighlight.d.ts +54 -0
- package/dist/components/core/atoms/Textarea.d.ts +17 -0
- package/dist/components/core/atoms/ThemeToggle.d.ts +33 -0
- package/dist/components/core/atoms/TimeSlotCell.d.ts +23 -0
- package/dist/components/core/atoms/TraitFrame.d.ts +54 -0
- package/dist/components/core/atoms/TrendIndicator.d.ts +20 -0
- package/dist/components/core/atoms/TypewriterText.d.ts +20 -0
- package/dist/components/core/atoms/Typography.d.ts +39 -0
- package/dist/components/core/atoms/index.d.ts +50 -0
- package/dist/components/core/atoms/svg/SvgBranch.d.ts +16 -0
- package/dist/components/core/atoms/svg/SvgConnection.d.ts +17 -0
- package/dist/components/core/atoms/svg/SvgFlow.d.ts +14 -0
- package/dist/components/core/atoms/svg/SvgGrid.d.ts +18 -0
- package/dist/components/core/atoms/svg/SvgLobe.d.ts +17 -0
- package/dist/components/core/atoms/svg/SvgMesh.d.ts +16 -0
- package/dist/components/core/atoms/svg/SvgMorph.d.ts +15 -0
- package/dist/components/core/atoms/svg/SvgNode.d.ts +16 -0
- package/dist/components/core/atoms/svg/SvgPulse.d.ts +16 -0
- package/dist/components/core/atoms/svg/SvgRing.d.ts +17 -0
- package/dist/components/core/atoms/svg/SvgShield.d.ts +15 -0
- package/dist/components/core/atoms/svg/SvgStack.d.ts +17 -0
- package/dist/components/core/atoms/svg/index.d.ts +12 -0
- package/dist/components/core/atoms/types.d.ts +47 -0
- package/dist/components/core/molecules/Accordion.d.ts +71 -0
- package/dist/components/core/molecules/ActivationBlock.d.ts +22 -0
- package/dist/components/core/molecules/Alert.d.ts +25 -0
- package/dist/components/core/molecules/AnimatedCounter.d.ts +18 -0
- package/dist/components/core/molecules/AssetPicker.d.ts +21 -0
- package/dist/components/core/molecules/BloomQuizBlock.d.ts +25 -0
- package/dist/components/core/molecules/BranchingLogicBuilder.d.ts +33 -0
- package/dist/components/core/molecules/Breadcrumb.d.ts +55 -0
- package/dist/components/core/molecules/ButtonGroup.d.ts +77 -0
- package/dist/components/core/molecules/CalendarGrid.d.ts +61 -0
- package/dist/components/core/molecules/Card.d.ts +58 -0
- package/dist/components/core/molecules/Carousel.d.ts +42 -0
- package/dist/components/core/molecules/Chart.d.ts +106 -0
- package/dist/components/core/molecules/ChartLegend.d.ts +20 -0
- package/dist/components/core/molecules/Coachmark.d.ts +47 -0
- package/dist/components/core/molecules/ConfirmDialog.d.ts +49 -0
- package/dist/components/core/molecules/ConnectionBlock.d.ts +18 -0
- package/dist/components/core/molecules/Container.d.ts +30 -0
- package/dist/components/core/molecules/ContentRenderer.d.ts +23 -0
- package/dist/components/core/molecules/DataGrid.d.ts +117 -0
- package/dist/components/core/molecules/DataList.d.ts +129 -0
- package/dist/components/core/molecules/DateRangePicker.d.ts +56 -0
- package/dist/components/core/molecules/DateRangeSelector.d.ts +21 -0
- package/dist/components/core/molecules/DocBreadcrumb.d.ts +20 -0
- package/dist/components/core/molecules/DocPagination.d.ts +21 -0
- package/dist/components/core/molecules/DocSearch.d.ts +22 -0
- package/dist/components/core/molecules/DocSidebar.d.ts +24 -0
- package/dist/components/core/molecules/DocTOC.d.ts +24 -0
- package/dist/components/core/molecules/DocumentViewer.d.ts +61 -0
- package/dist/components/core/molecules/Drawer.d.ts +47 -0
- package/dist/components/core/molecules/EdgeDecoration.d.ts +36 -0
- package/dist/components/core/molecules/EmptyState.d.ts +29 -0
- package/dist/components/core/molecules/ErrorBoundary.d.ts +54 -0
- package/dist/components/core/molecules/ErrorState.d.ts +14 -0
- package/dist/components/core/molecules/FeatureGrid.d.ts +19 -0
- package/dist/components/core/molecules/FileTree.d.ts +37 -0
- package/dist/components/core/molecules/FilterGroup.d.ts +61 -0
- package/dist/components/core/molecules/Flex.d.ts +43 -0
- package/dist/components/core/molecules/FlipCard.d.ts +24 -0
- package/dist/components/core/molecules/FloatingActionButton.d.ts +83 -0
- package/dist/components/core/molecules/FormField.d.ts +16 -0
- package/dist/components/core/molecules/FormSection.d.ts +39 -0
- package/dist/components/core/molecules/FormSectionHeader.d.ts +31 -0
- package/dist/components/core/molecules/GradientDivider.d.ts +15 -0
- package/dist/components/core/molecules/GraphCanvas.d.ts +83 -0
- package/dist/components/core/molecules/GraphView.d.ts +45 -0
- package/dist/components/core/molecules/Grid.d.ts +54 -0
- package/dist/components/core/molecules/GridPicker.d.ts +44 -0
- package/dist/components/core/molecules/Header.d.ts +113 -0
- package/dist/components/core/molecules/IconPicker.d.ts +18 -0
- package/dist/components/core/molecules/InputGroup.d.ts +24 -0
- package/dist/components/core/molecules/JazariStateMachine.d.ts +34 -0
- package/dist/components/core/molecules/JsonTreeEditor.d.ts +13 -0
- package/dist/components/core/molecules/Lightbox.d.ts +26 -0
- package/dist/components/core/molecules/LikertScale.d.ts +34 -0
- package/dist/components/core/molecules/LineChart.d.ts +33 -0
- package/dist/components/core/molecules/LoadingState.d.ts +7 -0
- package/dist/components/core/molecules/MapView.d.ts +87 -0
- package/dist/components/core/molecules/MatrixQuestion.d.ts +35 -0
- package/dist/components/core/molecules/Menu.d.ts +44 -0
- package/dist/components/core/molecules/Meter.d.ts +52 -0
- package/dist/components/core/molecules/Modal.d.ts +36 -0
- package/dist/components/core/molecules/Navigation.d.ts +67 -0
- package/dist/components/core/molecules/NodeSlotEditor.d.ts +17 -0
- package/dist/components/core/molecules/NumberStepper.d.ts +28 -0
- package/dist/components/core/molecules/OnboardingSpotlight.d.ts +27 -0
- package/dist/components/core/molecules/OptionConstraintGroup.d.ts +44 -0
- package/dist/components/core/molecules/OrbitalVisualization.d.ts +48 -0
- package/dist/components/core/molecules/PageHeader.d.ts +60 -0
- package/dist/components/core/molecules/Pagination.d.ts +71 -0
- package/dist/components/core/molecules/Popover.d.ts +39 -0
- package/dist/components/core/molecules/PositionedCanvas.d.ts +40 -0
- package/dist/components/core/molecules/ProgressDots.d.ts +24 -0
- package/dist/components/core/molecules/PropertyInspector.d.ts +38 -0
- package/dist/components/core/molecules/PullToRefresh.d.ts +22 -0
- package/dist/components/core/molecules/QrScanner.d.ts +24 -0
- package/dist/components/core/molecules/QuizBlock.d.ts +20 -0
- package/dist/components/core/molecules/ReflectionBlock.d.ts +23 -0
- package/dist/components/core/molecules/RelationSelect.d.ts +48 -0
- package/dist/components/core/molecules/RepeatableFormSection.d.ts +60 -0
- package/dist/components/core/molecules/ReplyTree.d.ts +46 -0
- package/dist/components/core/molecules/RichBlockEditor.d.ts +43 -0
- package/dist/components/core/molecules/ScaledDiagram.d.ts +20 -0
- package/dist/components/core/molecules/SearchInput.d.ts +60 -0
- package/dist/components/core/molecules/Section.d.ts +43 -0
- package/dist/components/core/molecules/SidePanel.d.ts +53 -0
- package/dist/components/core/molecules/Sidebar.d.ts +72 -0
- package/dist/components/core/molecules/SignaturePad.d.ts +46 -0
- package/dist/components/core/molecules/SimpleGrid.d.ts +27 -0
- package/dist/components/core/molecules/Skeleton.d.ts +35 -0
- package/dist/components/core/molecules/SocialProof.d.ts +25 -0
- package/dist/components/core/molecules/SortableList.d.ts +19 -0
- package/dist/components/core/molecules/Split.d.ts +41 -0
- package/dist/components/core/molecules/StarRating.d.ts +27 -0
- package/dist/components/core/molecules/StatDisplay.d.ts +58 -0
- package/dist/components/core/molecules/SwipeableRow.d.ts +26 -0
- package/dist/components/core/molecules/TableView.d.ts +111 -0
- package/dist/components/core/molecules/Tabs.d.ts +58 -0
- package/dist/components/core/molecules/TagInput.d.ts +52 -0
- package/dist/components/core/molecules/Toast.d.ts +36 -0
- package/dist/components/core/molecules/Tooltip.d.ts +25 -0
- package/dist/components/core/molecules/UploadDropZone.d.ts +28 -0
- package/dist/components/core/molecules/VersionDiff.d.ts +62 -0
- package/dist/components/core/molecules/ViolationAlert.d.ts +46 -0
- package/dist/components/core/molecules/VoteStack.d.ts +35 -0
- package/dist/components/core/molecules/WizardContainer.d.ts +160 -0
- package/dist/components/core/molecules/WizardNavigation.d.ts +61 -0
- package/dist/components/core/molecules/WizardProgress.d.ts +45 -0
- package/dist/components/core/molecules/index.d.ts +137 -0
- package/dist/components/core/molecules/lessonSegmentUtils.d.ts +18 -0
- package/dist/components/core/molecules/markdown/CodeBlock.d.ts +108 -0
- package/dist/components/core/molecules/markdown/MarkdownContent.d.ts +26 -0
- package/dist/components/core/molecules/markdown/index.d.ts +2 -0
- package/dist/components/core/molecules/parseLessonSegments.d.ts +44 -0
- package/dist/components/core/molecules/useDataDnd.d.ts +63 -0
- package/dist/components/core/organisms/CardGrid.d.ts +84 -0
- package/dist/components/core/organisms/ChatBar.d.ts +31 -0
- package/dist/components/core/organisms/CodeRunnerPanel.d.ts +42 -0
- package/dist/components/core/organisms/ComponentPatterns.d.ts +185 -0
- package/dist/components/core/organisms/CustomPattern.d.ts +105 -0
- package/dist/components/core/organisms/DataTable.d.ts +75 -0
- package/dist/components/core/organisms/DetailPanel.d.ts +80 -0
- package/dist/components/core/organisms/DrawerSlot.d.ts +40 -0
- package/dist/components/core/organisms/Form.d.ts +214 -0
- package/dist/components/core/organisms/LayoutPatterns.d.ts +108 -0
- package/dist/components/core/organisms/List.d.ts +81 -0
- package/dist/components/core/organisms/MasterDetail.d.ts +35 -0
- package/dist/components/core/organisms/MediaGallery.d.ts +63 -0
- package/dist/components/core/organisms/ModalSlot.d.ts +36 -0
- package/dist/components/core/organisms/NotifyListener.d.ts +15 -0
- package/dist/components/core/organisms/SegmentRenderer.d.ts +38 -0
- package/dist/components/core/organisms/StatCard.d.ts +65 -0
- package/dist/components/core/organisms/StateMachineView.d.ts +45 -0
- package/dist/components/core/organisms/SubagentTracePanel.d.ts +50 -0
- package/dist/components/core/organisms/Timeline.d.ts +71 -0
- package/dist/components/core/organisms/ToastSlot.d.ts +39 -0
- package/dist/components/core/organisms/UISlotRenderer.d.ts +116 -0
- package/dist/components/core/organisms/book/index.d.ts +7 -0
- package/dist/components/core/organisms/book/types.d.ts +62 -0
- package/dist/components/core/organisms/component-registry.generated.d.ts +9 -0
- package/dist/components/core/organisms/debug/RuntimeDebugger.d.ts +29 -0
- package/dist/components/core/organisms/debug/WalkMinimap.d.ts +17 -0
- package/dist/components/core/organisms/debug/hooks/useDebugData.d.ts +25 -0
- package/dist/components/core/organisms/debug/index.d.ts +13 -0
- package/dist/components/core/organisms/debug/tabs/EntitiesTab.d.ts +14 -0
- package/dist/components/core/organisms/debug/tabs/EventDispatcherTab.d.ts +18 -0
- package/dist/components/core/organisms/debug/tabs/EventFlowTab.d.ts +14 -0
- package/dist/components/core/organisms/debug/tabs/GuardsPanel.d.ts +14 -0
- package/dist/components/core/organisms/debug/tabs/ServerBridgeTab.d.ts +20 -0
- package/dist/components/core/organisms/debug/tabs/TicksTab.d.ts +14 -0
- package/dist/components/core/organisms/debug/tabs/TraitsTab.d.ts +14 -0
- package/dist/components/core/organisms/debug/tabs/TransitionTimeline.d.ts +19 -0
- package/dist/components/core/organisms/debug/tabs/VerificationTab.d.ts +17 -0
- package/dist/components/core/organisms/index.d.ts +33 -0
- package/dist/components/core/organisms/layout/DashboardGrid.d.ts +33 -0
- package/dist/components/core/organisms/layout/MasterDetailLayout.d.ts +32 -0
- package/dist/components/core/organisms/layout/SplitPane.d.ts +34 -0
- package/dist/components/core/organisms/layout/TabbedContainer.d.ts +42 -0
- package/dist/components/core/organisms/layout/index.d.ts +9 -0
- package/dist/components/core/organisms/marketing-types.d.ts +8 -0
- package/dist/components/core/organisms/trace-edit-focus.d.ts +14 -0
- package/dist/components/core/organisms/types.d.ts +72 -0
- package/dist/components/core/templates/CounterTemplate.d.ts +44 -0
- package/dist/components/core/templates/DashboardLayout.d.ts +110 -0
- package/dist/components/core/templates/GenericAppTemplate.d.ts +24 -0
- package/dist/components/core/templates/index.d.ts +21 -0
- package/dist/components/core/templates/types.d.ts +35 -0
- package/dist/components/game/2d/atoms/ActionButton.d.ts +29 -0
- package/dist/components/game/2d/atoms/ChoiceButton.d.ts +25 -0
- package/dist/components/game/2d/atoms/ComboCounter.d.ts +20 -0
- package/dist/components/game/2d/atoms/ControlButton.d.ts +35 -0
- package/dist/components/game/2d/atoms/DamageNumber.d.ts +18 -0
- package/dist/components/game/2d/atoms/DialogueBubble.d.ts +18 -0
- package/dist/components/game/2d/atoms/GameAudioToggle.d.ts +29 -0
- package/dist/components/game/2d/atoms/GameCard.d.ts +26 -0
- package/dist/components/game/2d/atoms/GameIcon.d.ts +19 -0
- package/dist/components/game/2d/atoms/HealthBar.d.ts +27 -0
- package/dist/components/game/2d/atoms/ItemSlot.d.ts +29 -0
- package/dist/components/game/2d/atoms/MiniMap.d.ts +35 -0
- package/dist/components/game/2d/atoms/ResourceCounter.d.ts +26 -0
- package/dist/components/game/2d/atoms/ScoreDisplay.d.ts +25 -0
- package/dist/components/game/2d/atoms/Sprite.d.ts +52 -0
- package/dist/components/game/2d/atoms/StateIndicator.d.ts +29 -0
- package/dist/components/game/2d/atoms/StatusEffect.d.ts +25 -0
- package/dist/components/game/2d/atoms/TimerDisplay.d.ts +19 -0
- package/dist/components/game/2d/atoms/TurnIndicator.d.ts +22 -0
- package/dist/components/game/2d/atoms/WaypointMarker.d.ts +23 -0
- package/dist/components/game/2d/molecules/Canvas2D.d.ts +161 -0
- package/dist/components/game/2d/molecules/ControlGrid.d.ts +42 -0
- package/dist/components/game/2d/molecules/GameHud.d.ts +52 -0
- package/dist/components/game/2d/molecules/GameMenu.d.ts +45 -0
- package/dist/components/game/2d/molecules/InventoryGrid.d.ts +35 -0
- package/dist/components/game/2d/molecules/ResourceBar.d.ts +26 -0
- package/dist/components/game/2d/molecules/StatBadge.d.ts +39 -0
- package/dist/components/game/2d/molecules/index.d.ts +107 -0
- package/dist/components/game/2d/organisms/ActionPalette.d.ts +34 -0
- package/dist/components/game/2d/organisms/ActionTile.d.ts +30 -0
- package/dist/components/game/2d/organisms/BattleBoard.d.ts +132 -0
- package/dist/components/game/2d/organisms/BoardgameBoard.d.ts +37 -0
- package/dist/components/game/2d/organisms/BuilderBoard.d.ts +60 -0
- package/dist/components/game/2d/organisms/CanvasEffect.d.ts +70 -0
- package/dist/components/game/2d/organisms/CardBattlerBoard.d.ts +45 -0
- package/dist/components/game/2d/organisms/CastleBoard.d.ts +107 -0
- package/dist/components/game/2d/organisms/CityBuilderBoard.d.ts +62 -0
- package/dist/components/game/2d/organisms/ClassifierBoard.d.ts +66 -0
- package/dist/components/game/2d/organisms/DebuggerBoard.d.ts +61 -0
- package/dist/components/game/2d/organisms/EventHandlerBoard.d.ts +42 -0
- package/dist/components/game/2d/organisms/EventLog.d.ts +31 -0
- package/dist/components/game/2d/organisms/FishingBoard.d.ts +41 -0
- package/dist/components/game/2d/organisms/HexStrategyBoard.d.ts +44 -0
- package/dist/components/game/2d/organisms/HolidayRunnerBoard.d.ts +37 -0
- package/dist/components/game/2d/organisms/MatchPuzzleBoard.d.ts +37 -0
- package/dist/components/game/2d/organisms/MinigolfBoard.d.ts +37 -0
- package/dist/components/game/2d/organisms/NegotiatorBoard.d.ts +56 -0
- package/dist/components/game/2d/organisms/ObjectRulePanel.d.ts +27 -0
- package/dist/components/game/2d/organisms/PinballBoard.d.ts +43 -0
- package/dist/components/game/2d/organisms/PirateBoard.d.ts +44 -0
- package/dist/components/game/2d/organisms/PlatformerBoard.d.ts +46 -0
- package/dist/components/game/2d/organisms/RacingBoard.d.ts +44 -0
- package/dist/components/game/2d/organisms/RoguelikeBoard.d.ts +60 -0
- package/dist/components/game/2d/organisms/RuleEditor.d.ts +39 -0
- package/dist/components/game/2d/organisms/SequenceBar.d.ts +41 -0
- package/dist/components/game/2d/organisms/SequencerBoard.d.ts +65 -0
- package/dist/components/game/2d/organisms/SimulationCanvas.d.ts +27 -0
- package/dist/components/game/2d/organisms/SimulationControls.d.ts +34 -0
- package/dist/components/game/2d/organisms/SimulationGraph.d.ts +25 -0
- package/dist/components/game/2d/organisms/SimulatorBoard.d.ts +58 -0
- package/dist/components/game/2d/organisms/SokobanBoard.d.ts +37 -0
- package/dist/components/game/2d/organisms/SpaceShmupBoard.d.ts +44 -0
- package/dist/components/game/2d/organisms/SpaceStationBoard.d.ts +37 -0
- package/dist/components/game/2d/organisms/SportsBoard.d.ts +37 -0
- package/dist/components/game/2d/organisms/StateArchitectBoard.d.ts +61 -0
- package/dist/components/game/2d/organisms/StateJsonView.d.ts +17 -0
- package/dist/components/game/2d/organisms/StateNode.d.ts +31 -0
- package/dist/components/game/2d/organisms/TanksBoard.d.ts +37 -0
- package/dist/components/game/2d/organisms/TopDownShooterBoard.d.ts +63 -0
- package/dist/components/game/2d/organisms/TowerDefenseBoard.d.ts +85 -0
- package/dist/components/game/2d/organisms/TraitSlot.d.ts +96 -0
- package/dist/components/game/2d/organisms/TraitStateViewer.d.ts +54 -0
- package/dist/components/game/2d/organisms/TransitionArrow.d.ts +31 -0
- package/dist/components/game/2d/organisms/UncontrolledBattleBoard.d.ts +43 -0
- package/dist/components/game/2d/organisms/VariablePanel.d.ts +22 -0
- package/dist/components/game/2d/organisms/VisualNovelBoard.d.ts +44 -0
- package/dist/components/game/2d/organisms/WorldMapBoard.d.ts +155 -0
- package/dist/components/game/2d/templates/BattleTemplate.d.ts +34 -0
- package/dist/components/game/2d/templates/CardBattlerTemplate.d.ts +35 -0
- package/dist/components/game/2d/templates/CastleTemplate.d.ts +32 -0
- package/dist/components/game/2d/templates/CityBuilderTemplate.d.ts +40 -0
- package/dist/components/game/2d/templates/GameShell.d.ts +34 -0
- package/dist/components/game/2d/templates/GameTemplate.d.ts +32 -0
- package/dist/components/game/2d/templates/PlatformerTemplate.d.ts +27 -0
- package/dist/components/game/2d/templates/RoguelikeTemplate.d.ts +23 -0
- package/dist/components/game/2d/templates/TopDownShooterTemplate.d.ts +42 -0
- package/dist/components/game/2d/templates/TowerDefenseTemplate.d.ts +43 -0
- package/dist/components/game/2d/templates/VisualNovelTemplate.d.ts +28 -0
- package/dist/components/game/2d/templates/WorldMapTemplate.d.ts +38 -0
- package/dist/components/game/3d/index.cjs +7050 -0
- package/dist/components/game/3d/index.css +503 -0
- package/dist/components/game/3d/index.d.ts +13 -0
- package/dist/components/game/3d/index.js +6974 -0
- package/dist/components/game/3d/molecules/Camera3D.d.ts +60 -0
- package/dist/components/game/3d/molecules/Canvas3D.d.ts +45 -0
- package/dist/components/game/3d/molecules/Canvas3DErrorBoundary.d.ts +51 -0
- package/dist/components/game/3d/molecules/Canvas3DLoadingState.d.ts +44 -0
- package/dist/components/game/3d/molecules/GameCanvas3D.d.ts +226 -0
- package/dist/components/game/3d/molecules/Lighting3D.d.ts +47 -0
- package/dist/components/game/3d/molecules/ModelLoader.d.ts +44 -0
- package/dist/components/game/3d/molecules/Scene3D.d.ts +37 -0
- package/dist/components/game/3d/molecules/index.d.ts +36 -0
- package/dist/components/game/3d/organisms/GameBoard3D.d.ts +66 -0
- package/dist/components/game/3d/patterns.d.ts +20 -0
- package/dist/components/game/3d/templates/GameCanvas3DBattleTemplate.d.ts +82 -0
- package/dist/components/game/3d/templates/GameCanvas3DCastleTemplate.d.ts +87 -0
- package/dist/components/game/3d/templates/GameCanvas3DWorldMapTemplate.d.ts +95 -0
- package/dist/components/game/shared/boardEntity.d.ts +44 -0
- package/dist/components/game/shared/canvasEffects.d.ts +50 -0
- package/dist/components/game/shared/combatPresets.d.ts +15 -0
- package/dist/components/game/shared/effects.d.ts +253 -0
- package/dist/components/game/shared/game.d.ts +92 -0
- package/dist/components/game/shared/hooks/useAssetLoader.d.ts +58 -0
- package/dist/components/game/shared/hooks/useBattleState.d.ts +47 -0
- package/dist/components/game/shared/hooks/useCamera.d.ts +57 -0
- package/dist/components/game/shared/hooks/useCanvasEffects.d.ts +27 -0
- package/dist/components/game/shared/hooks/useGameAudio.d.ts +47 -0
- package/dist/components/game/shared/hooks/useGameCanvas3DEvents.d.ts +123 -0
- package/dist/components/game/shared/hooks/useRaycaster.d.ts +86 -0
- package/dist/components/game/shared/hooks/useSceneGraph.d.ts +67 -0
- package/dist/components/game/shared/hooks/useThree.d.ts +58 -0
- package/dist/components/game/shared/hooks/useUnitSpriteAtlas.d.ts +24 -0
- package/dist/components/game/shared/index.d.ts +21 -0
- package/dist/components/game/shared/isometric.d.ts +83 -0
- package/dist/components/game/shared/isometricTypes.d.ts +130 -0
- package/dist/components/game/shared/lib/AssetLoader.d.ts +80 -0
- package/dist/components/game/shared/lib/culling.d.ts +134 -0
- package/dist/components/game/shared/lib/editorUtils.d.ts +114 -0
- package/dist/components/game/shared/lib/game3dAssetManifest.d.ts +48 -0
- package/dist/components/game/shared/lib/grid3D.d.ts +154 -0
- package/dist/components/game/shared/lib/mechanics.d.ts +4 -0
- package/dist/components/game/shared/lib/physicsPresets.d.ts +4 -0
- package/dist/components/game/shared/lib/physicsTypes.d.ts +43 -0
- package/dist/components/game/shared/lib/puzzleObject.d.ts +32 -0
- package/dist/components/game/shared/makeAsset.d.ts +5 -0
- package/dist/components/game/shared/providers/GameAudioProvider.d.ts +53 -0
- package/dist/components/game/shared/spriteAnimation.d.ts +85 -0
- package/dist/components/game/shared/spriteAnimationTypes.d.ts +97 -0
- package/dist/components/game/shared/spriteSheetConstants.d.ts +16 -0
- package/dist/components/game/shared/useImageCache.d.ts +16 -0
- package/dist/components/index.cjs +57594 -0
- package/dist/components/index.css +1252 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +57335 -0
- package/dist/components/learning/atoms/LearningCanvas.d.ts +80 -0
- package/dist/components/learning/molecules/BiologyCanvas.d.ts +47 -0
- package/dist/components/learning/molecules/ChemistryCanvas.d.ts +55 -0
- package/dist/components/learning/molecules/MathCanvas.d.ts +61 -0
- package/dist/components/learning/molecules/PhysicsCanvas.d.ts +54 -0
- package/dist/components/marketing/atoms/AnimatedCounter.d.ts +20 -0
- package/dist/components/marketing/atoms/AnimatedGraphic.d.ts +32 -0
- package/dist/components/marketing/atoms/AnimatedReveal.d.ts +26 -0
- package/dist/components/marketing/atoms/ContentSection.d.ts +16 -0
- package/dist/components/marketing/atoms/MarketingStatCard.d.ts +13 -0
- package/dist/components/marketing/atoms/PatternTile.d.ts +41 -0
- package/dist/components/marketing/molecules/ArticleSection.d.ts +18 -0
- package/dist/components/marketing/molecules/CTABanner.d.ts +26 -0
- package/dist/components/marketing/molecules/CaseStudyCard.d.ts +24 -0
- package/dist/components/marketing/molecules/CommunityLinks.d.ts +28 -0
- package/dist/components/marketing/molecules/FeatureCard.d.ts +26 -0
- package/dist/components/marketing/molecules/GeometricPattern.d.ts +33 -0
- package/dist/components/marketing/molecules/HeroSection.d.ts +28 -0
- package/dist/components/marketing/molecules/InstallBox.d.ts +16 -0
- package/dist/components/marketing/molecules/MarketingFooter.d.ts +29 -0
- package/dist/components/marketing/molecules/PricingCard.d.ts +19 -0
- package/dist/components/marketing/molecules/PricingGrid.d.ts +13 -0
- package/dist/components/marketing/molecules/PullQuote.d.ts +14 -0
- package/dist/components/marketing/molecules/ServiceCatalog.d.ts +19 -0
- package/dist/components/marketing/molecules/ShowcaseCard.d.ts +18 -0
- package/dist/components/marketing/molecules/SplitSection.d.ts +19 -0
- package/dist/components/marketing/molecules/StatsGrid.d.ts +18 -0
- package/dist/components/marketing/molecules/StepFlow.d.ts +21 -0
- package/dist/components/marketing/molecules/TagCloud.d.ts +18 -0
- package/dist/components/marketing/molecules/TeamCard.d.ts +19 -0
- package/dist/components/marketing/organisms/CaseStudyOrganism.d.ts +29 -0
- package/dist/components/marketing/organisms/FeatureGridOrganism.d.ts +30 -0
- package/dist/components/marketing/organisms/HeroOrganism.d.ts +42 -0
- package/dist/components/marketing/organisms/PricingOrganism.d.ts +33 -0
- package/dist/components/marketing/organisms/ShowcaseOrganism.d.ts +34 -0
- package/dist/components/marketing/organisms/StatsOrganism.d.ts +23 -0
- package/dist/components/marketing/organisms/StepFlowOrganism.d.ts +29 -0
- package/dist/components/marketing/organisms/TeamOrganism.d.ts +28 -0
- package/dist/components/marketing/organisms/book/BookChapterView.d.ts +21 -0
- package/dist/components/marketing/organisms/book/BookCoverPage.d.ts +21 -0
- package/dist/components/marketing/organisms/book/BookNavBar.d.ts +19 -0
- package/dist/components/marketing/organisms/book/BookTableOfContents.d.ts +20 -0
- package/dist/components/marketing/organisms/book/BookViewer.d.ts +31 -0
- package/dist/components/marketing/templates/AboutPageTemplate.d.ts +53 -0
- package/dist/components/marketing/templates/AuthLayout.d.ts +15 -0
- package/dist/components/marketing/templates/FeatureDetailPageTemplate.d.ts +37 -0
- package/dist/components/marketing/templates/LandingPageTemplate.d.ts +70 -0
- package/dist/components/marketing/templates/PricingPageTemplate.d.ts +44 -0
- package/dist/context/index.cjs +957 -0
- package/dist/context/index.d.ts +11 -0
- package/dist/context/index.js +899 -0
- package/dist/hooks/index.cjs +2778 -0
- package/dist/hooks/index.d.ts +32 -0
- package/dist/hooks/index.js +2738 -0
- package/dist/hooks/useAgentChat.d.ts +105 -0
- package/dist/hooks/useAlmadarDndCollision.d.ts +34 -0
- package/dist/hooks/useAuthContext.d.ts +25 -0
- package/dist/hooks/useCanvasGestures.d.ts +44 -0
- package/dist/hooks/useClientEffects.d.ts +88 -0
- package/dist/hooks/useCompile.d.ts +18 -0
- package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
- package/dist/hooks/useDragReorder.d.ts +26 -0
- package/dist/hooks/useDraggable.d.ts +25 -0
- package/dist/hooks/useDropZone.d.ts +23 -0
- package/dist/hooks/useEventBus.d.ts +99 -0
- package/dist/hooks/useExtensions.d.ts +32 -0
- package/dist/hooks/useFileEditor.d.ts +32 -0
- package/dist/hooks/useFileSystem.d.ts +50 -0
- package/dist/hooks/useGitHub.d.ts +58 -0
- package/dist/hooks/useInfiniteScroll.d.ts +13 -0
- package/dist/hooks/useLongPress.d.ts +16 -0
- package/dist/hooks/useOrbitalHistory.d.ts +39 -0
- package/dist/hooks/usePreview.d.ts +57 -0
- package/dist/hooks/usePullToRefresh.d.ts +25 -0
- package/dist/hooks/useQuerySingleton.d.ts +79 -0
- package/dist/hooks/useRenderInterpolation.d.ts +33 -0
- package/dist/hooks/useResolvedSchema.d.ts +45 -0
- package/dist/hooks/useSwipeGesture.d.ts +26 -0
- package/dist/hooks/useTapReveal.d.ts +32 -0
- package/dist/hooks/useTraitStateMachine.d.ts +105 -0
- package/dist/hooks/useTranslate.d.ts +35 -0
- package/dist/hooks/useUIEvents.d.ts +41 -0
- package/dist/hooks/useUISlots.d.ts +214 -0
- package/dist/hooks/useValidation.d.ts +46 -0
- package/dist/lib/api-client.d.ts +43 -0
- package/dist/lib/client-effect-executor.d.ts +57 -0
- package/dist/lib/cn.d.ts +6 -0
- package/dist/lib/createClientEffectHandlers.d.ts +42 -0
- package/dist/lib/data-resolver.d.ts +55 -0
- package/dist/lib/debug.d.ts +36 -0
- package/dist/lib/debugRegistry.d.ts +30 -0
- package/dist/lib/debugUtils.d.ts +27 -0
- package/dist/lib/embedded-traits.d.ts +39 -0
- package/dist/lib/entityDebug.d.ts +39 -0
- package/dist/lib/fn-form-lambda.d.ts +27 -0
- package/dist/lib/getNestedValue.d.ts +34 -0
- package/dist/lib/guardRegistry.d.ts +33 -0
- package/dist/lib/iconFamily.d.ts +41 -0
- package/dist/lib/index.cjs +1616 -0
- package/dist/lib/index.d.ts +18 -0
- package/dist/lib/index.js +1524 -0
- package/dist/lib/init.d.ts +14 -0
- package/dist/lib/jazari/index.d.ts +5 -0
- package/dist/lib/jazari/layout.d.ts +31 -0
- package/dist/lib/jazari/svg-paths.d.ts +61 -0
- package/dist/lib/jazari/types.d.ts +91 -0
- package/dist/lib/offline-executor.d.ts +239 -0
- package/dist/lib/orbitalsByTrait.d.ts +34 -0
- package/dist/lib/parseContentSegments.d.ts +42 -0
- package/dist/lib/pattern-resolver.d.ts +88 -0
- package/dist/lib/perf.d.ts +32 -0
- package/dist/lib/prepareSchemaForPreview.d.ts +71 -0
- package/dist/lib/slot-definitions.d.ts +33 -0
- package/dist/lib/themeTokens.d.ts +55 -0
- package/dist/lib/tickRegistry.d.ts +40 -0
- package/dist/lib/trait-binding-resolver.d.ts +57 -0
- package/dist/lib/traitRegistry.d.ts +34 -0
- package/dist/lib/verificationRegistry.d.ts +91 -0
- package/dist/lib/visualizer/browser.d.ts +48 -0
- package/dist/lib/visualizer/index.d.ts +144 -0
- package/dist/lib/wrapCallbackForEvent.d.ts +16 -0
- package/dist/locales/index.cjs +1761 -0
- package/dist/locales/index.d.ts +20 -0
- package/dist/locales/index.js +1757 -0
- package/dist/marketing/index.cjs +6966 -0
- package/dist/marketing/index.d.cts +1061 -0
- package/dist/marketing/index.d.ts +72 -0
- package/dist/marketing/index.js +6903 -0
- package/dist/providers/CurrentPagePathContext.d.ts +9 -0
- package/dist/providers/DesignThemeContext.d.ts +21 -0
- package/dist/providers/EntitySchemaContext.d.ts +81 -0
- package/dist/providers/EventBusProvider.d.ts +47 -0
- package/dist/providers/OfflineModeProvider.d.ts +79 -0
- package/dist/providers/OrbitalProvider.d.ts +110 -0
- package/dist/providers/OrbitalThemeProvider.d.ts +37 -0
- package/dist/providers/SelectionProvider.d.ts +82 -0
- package/dist/providers/ServerBridge.d.ts +102 -0
- package/dist/providers/ThemeContext.d.ts +104 -0
- package/dist/providers/TraitProvider.d.ts +53 -0
- package/dist/providers/TraitScopeProvider.d.ts +43 -0
- package/dist/providers/UISlotContext.d.ts +75 -0
- package/dist/providers/UserContext.d.ts +112 -0
- package/dist/providers/VerificationProvider.d.ts +64 -0
- package/dist/providers/index.cjs +54679 -0
- package/dist/providers/index.css +1252 -0
- package/dist/providers/index.d.ts +25 -0
- package/dist/providers/index.js +54580 -0
- package/dist/providers/navigation.d.ts +142 -0
- package/dist/renderer/index.cjs +855 -0
- package/dist/renderer/index.d.ts +28 -0
- package/dist/renderer/index.js +766 -0
- package/dist/runtime/BrowserPlayground.d.ts +34 -0
- package/dist/runtime/OrbPreview.d.ts +84 -0
- package/dist/runtime/index.cjs +54856 -0
- package/dist/runtime/index.css +1252 -0
- package/dist/runtime/index.d.ts +21 -0
- package/dist/runtime/index.js +54759 -0
- package/dist/scripts/audit-tailwind-safelist.d.ts +27 -0
- package/dist/scripts/generate-design-system.d.ts +29 -0
- package/dist/scripts/generate-theme-from-schema.d.ts +10 -0
- package/dist/scripts/generate.d.ts +12 -0
- package/dist/scripts/suggest-components.d.ts +31 -0
- package/dist/scripts/types.d.ts +129 -0
- package/dist/tsup.config.d.ts +3 -0
- package/dist/types/event-bus-types.d.ts +64 -0
- package/dist/types/renderer-types.d.ts +146 -0
- package/dist/types/runtime-types.d.ts +21 -0
- package/dist/types/slot-types.d.ts +49 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1616 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var clsx = require('clsx');
|
|
4
|
+
var tailwindMerge = require('tailwind-merge');
|
|
5
|
+
var logger = require('@almadar/logger');
|
|
6
|
+
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
function cn(...inputs) {
|
|
11
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// lib/api-client.ts
|
|
15
|
+
var API_BASE_URL = typeof process !== "undefined" && process.env?.VITE_API_URL ? process.env.VITE_API_URL : "/api";
|
|
16
|
+
var ApiError = class extends Error {
|
|
17
|
+
constructor(status, statusText, message) {
|
|
18
|
+
super(message || `API Error: ${status} ${statusText}`);
|
|
19
|
+
__publicField(this, "status", status);
|
|
20
|
+
__publicField(this, "statusText", statusText);
|
|
21
|
+
this.name = "ApiError";
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
async function handleResponse(response) {
|
|
25
|
+
if (!response.ok) {
|
|
26
|
+
let message;
|
|
27
|
+
try {
|
|
28
|
+
const errorData = await response.json();
|
|
29
|
+
message = errorData.message || errorData.error;
|
|
30
|
+
} catch {
|
|
31
|
+
}
|
|
32
|
+
throw new ApiError(response.status, response.statusText, message);
|
|
33
|
+
}
|
|
34
|
+
const text = await response.text();
|
|
35
|
+
if (!text) {
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
return JSON.parse(text);
|
|
39
|
+
}
|
|
40
|
+
function getHeaders() {
|
|
41
|
+
const headers = {
|
|
42
|
+
"Content-Type": "application/json"
|
|
43
|
+
};
|
|
44
|
+
const token = typeof localStorage !== "undefined" ? localStorage.getItem("authToken") : null;
|
|
45
|
+
if (token) {
|
|
46
|
+
headers["Authorization"] = `Bearer ${token}`;
|
|
47
|
+
}
|
|
48
|
+
return headers;
|
|
49
|
+
}
|
|
50
|
+
var apiClient = {
|
|
51
|
+
/**
|
|
52
|
+
* GET request
|
|
53
|
+
*/
|
|
54
|
+
async get(endpoint) {
|
|
55
|
+
const response = await fetch(`${API_BASE_URL}${endpoint}`, {
|
|
56
|
+
method: "GET",
|
|
57
|
+
headers: getHeaders()
|
|
58
|
+
});
|
|
59
|
+
return handleResponse(response);
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* POST request
|
|
63
|
+
*/
|
|
64
|
+
async post(endpoint, data) {
|
|
65
|
+
const response = await fetch(`${API_BASE_URL}${endpoint}`, {
|
|
66
|
+
method: "POST",
|
|
67
|
+
headers: getHeaders(),
|
|
68
|
+
body: data ? JSON.stringify(data) : void 0
|
|
69
|
+
});
|
|
70
|
+
return handleResponse(response);
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* PUT request
|
|
74
|
+
*/
|
|
75
|
+
async put(endpoint, data) {
|
|
76
|
+
const response = await fetch(`${API_BASE_URL}${endpoint}`, {
|
|
77
|
+
method: "PUT",
|
|
78
|
+
headers: getHeaders(),
|
|
79
|
+
body: data ? JSON.stringify(data) : void 0
|
|
80
|
+
});
|
|
81
|
+
return handleResponse(response);
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* PATCH request
|
|
85
|
+
*/
|
|
86
|
+
async patch(endpoint, data) {
|
|
87
|
+
const response = await fetch(`${API_BASE_URL}${endpoint}`, {
|
|
88
|
+
method: "PATCH",
|
|
89
|
+
headers: getHeaders(),
|
|
90
|
+
body: data ? JSON.stringify(data) : void 0
|
|
91
|
+
});
|
|
92
|
+
return handleResponse(response);
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* DELETE request
|
|
96
|
+
*/
|
|
97
|
+
async delete(endpoint) {
|
|
98
|
+
const response = await fetch(`${API_BASE_URL}${endpoint}`, {
|
|
99
|
+
method: "DELETE",
|
|
100
|
+
headers: getHeaders()
|
|
101
|
+
});
|
|
102
|
+
return handleResponse(response);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
var NAMESPACE = "almadar:ui:debug";
|
|
106
|
+
var log = logger.createLogger(NAMESPACE);
|
|
107
|
+
var inputLog = logger.createLogger("almadar:ui:debug:input");
|
|
108
|
+
var collisionLog = logger.createLogger("almadar:ui:debug:collision");
|
|
109
|
+
var physicsLog = logger.createLogger("almadar:ui:debug:physics");
|
|
110
|
+
var gameStateLog = logger.createLogger("almadar:ui:debug:game-state");
|
|
111
|
+
function gateEnabled(level, ns = NAMESPACE) {
|
|
112
|
+
return logger.isLogLevelEnabled(level, ns);
|
|
113
|
+
}
|
|
114
|
+
function isDebugEnabled() {
|
|
115
|
+
return gateEnabled("DEBUG");
|
|
116
|
+
}
|
|
117
|
+
function debug(...args) {
|
|
118
|
+
if (!gateEnabled("DEBUG")) return;
|
|
119
|
+
const [first, ...rest] = args;
|
|
120
|
+
const message = typeof first === "string" ? first : "<debug>";
|
|
121
|
+
if (rest.length === 0 && typeof first === "string") {
|
|
122
|
+
log.debug(message);
|
|
123
|
+
} else {
|
|
124
|
+
log.debug(message, { args: rest.length > 0 ? formatArgs(rest) : formatArgs([first]) });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function debugGroup(label) {
|
|
128
|
+
if (gateEnabled("DEBUG")) console.group(`[${NAMESPACE}] ${label}`);
|
|
129
|
+
}
|
|
130
|
+
function debugGroupEnd() {
|
|
131
|
+
if (gateEnabled("DEBUG")) console.groupEnd();
|
|
132
|
+
}
|
|
133
|
+
function debugWarn(...args) {
|
|
134
|
+
if (!gateEnabled("WARN")) return;
|
|
135
|
+
const [first, ...rest] = args;
|
|
136
|
+
const message = typeof first === "string" ? first : "<warn>";
|
|
137
|
+
log.warn(message, rest.length > 0 ? { args: formatArgs(rest) } : void 0);
|
|
138
|
+
}
|
|
139
|
+
function debugError(...args) {
|
|
140
|
+
if (!gateEnabled("ERROR")) return;
|
|
141
|
+
const [first, ...rest] = args;
|
|
142
|
+
const message = typeof first === "string" ? first : "<error>";
|
|
143
|
+
log.error(message, rest.length > 0 ? { args: formatArgs(rest) } : void 0);
|
|
144
|
+
}
|
|
145
|
+
function debugTable(data) {
|
|
146
|
+
if (gateEnabled("DEBUG")) console.table(data);
|
|
147
|
+
}
|
|
148
|
+
function debugTime(label) {
|
|
149
|
+
if (gateEnabled("DEBUG")) console.time(`[${NAMESPACE}] ${label}`);
|
|
150
|
+
}
|
|
151
|
+
function debugTimeEnd(label) {
|
|
152
|
+
if (gateEnabled("DEBUG")) console.timeEnd(`[${NAMESPACE}] ${label}`);
|
|
153
|
+
}
|
|
154
|
+
function debugInput(inputType, data) {
|
|
155
|
+
inputLog.debug(inputType, { data: formatArgs([data]) });
|
|
156
|
+
}
|
|
157
|
+
function debugCollision(entityA, entityB, details) {
|
|
158
|
+
collisionLog.debug("collision", () => ({
|
|
159
|
+
a: entityA.type ?? entityA.id ?? null,
|
|
160
|
+
b: entityB.type ?? entityB.id ?? null,
|
|
161
|
+
details: details === void 0 ? null : formatArgs([details])
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
function debugPhysics(entityId, physics) {
|
|
165
|
+
physicsLog.debug("physics", { entityId, data: formatArgs([physics]) });
|
|
166
|
+
}
|
|
167
|
+
function debugGameState(stateName, value) {
|
|
168
|
+
gameStateLog.debug(stateName, { value: formatArgs([value]) });
|
|
169
|
+
}
|
|
170
|
+
function formatArgs(values) {
|
|
171
|
+
if (values.length === 1) return toLogMetaValue(values[0]);
|
|
172
|
+
return values.map(toLogMetaValue);
|
|
173
|
+
}
|
|
174
|
+
function toLogMetaValue(v) {
|
|
175
|
+
if (v === null || v === void 0) return v;
|
|
176
|
+
if (v instanceof Error) return v;
|
|
177
|
+
const t = typeof v;
|
|
178
|
+
if (t === "string" || t === "number" || t === "boolean") return v;
|
|
179
|
+
if (Array.isArray(v)) return v.map(toLogMetaValue);
|
|
180
|
+
if (t === "object") {
|
|
181
|
+
const out = {};
|
|
182
|
+
for (const [k, val] of Object.entries(v)) {
|
|
183
|
+
out[k] = toLogMetaValue(val);
|
|
184
|
+
}
|
|
185
|
+
return out;
|
|
186
|
+
}
|
|
187
|
+
return String(v);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// lib/debugUtils.ts
|
|
191
|
+
var DEBUG_STORAGE_KEY = "orbital-debug";
|
|
192
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
193
|
+
function isDebugEnabled2() {
|
|
194
|
+
if (typeof window === "undefined") return false;
|
|
195
|
+
return localStorage.getItem(DEBUG_STORAGE_KEY) === "true";
|
|
196
|
+
}
|
|
197
|
+
function setDebugEnabled(enabled) {
|
|
198
|
+
if (typeof window === "undefined") return;
|
|
199
|
+
localStorage.setItem(DEBUG_STORAGE_KEY, String(enabled));
|
|
200
|
+
listeners.forEach((listener) => listener(enabled));
|
|
201
|
+
}
|
|
202
|
+
function toggleDebug() {
|
|
203
|
+
const newValue = !isDebugEnabled2();
|
|
204
|
+
setDebugEnabled(newValue);
|
|
205
|
+
return newValue;
|
|
206
|
+
}
|
|
207
|
+
function onDebugToggle(listener) {
|
|
208
|
+
listeners.add(listener);
|
|
209
|
+
return () => listeners.delete(listener);
|
|
210
|
+
}
|
|
211
|
+
function initDebugShortcut() {
|
|
212
|
+
if (typeof window === "undefined") return () => {
|
|
213
|
+
};
|
|
214
|
+
const handleKeyDown = (e) => {
|
|
215
|
+
if (e.ctrlKey && e.shiftKey && e.key === "D") {
|
|
216
|
+
e.preventDefault();
|
|
217
|
+
toggleDebug();
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
221
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// lib/entityDebug.ts
|
|
225
|
+
var entityProvider = null;
|
|
226
|
+
function setEntityProvider(provider) {
|
|
227
|
+
entityProvider = provider;
|
|
228
|
+
}
|
|
229
|
+
function clearEntityProvider() {
|
|
230
|
+
entityProvider = null;
|
|
231
|
+
}
|
|
232
|
+
function getEntitySnapshot() {
|
|
233
|
+
if (!entityProvider) {
|
|
234
|
+
return null;
|
|
235
|
+
}
|
|
236
|
+
const entities = entityProvider();
|
|
237
|
+
return {
|
|
238
|
+
entities,
|
|
239
|
+
timestamp: Date.now(),
|
|
240
|
+
totalCount: entities.length,
|
|
241
|
+
singletons: {},
|
|
242
|
+
runtime: entities.map((e) => ({ id: e.id, type: e.type, data: e.fields })),
|
|
243
|
+
persistent: {}
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
function getEntityById(id) {
|
|
247
|
+
if (!entityProvider) {
|
|
248
|
+
return void 0;
|
|
249
|
+
}
|
|
250
|
+
return entityProvider().find((e) => e.id === id);
|
|
251
|
+
}
|
|
252
|
+
function getEntitiesByType(type) {
|
|
253
|
+
if (!entityProvider) {
|
|
254
|
+
return [];
|
|
255
|
+
}
|
|
256
|
+
return entityProvider().filter((e) => e.type === type);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// lib/debugRegistry.ts
|
|
260
|
+
var events = [];
|
|
261
|
+
var listeners2 = /* @__PURE__ */ new Set();
|
|
262
|
+
var MAX_EVENTS = 500;
|
|
263
|
+
function notifyListeners() {
|
|
264
|
+
listeners2.forEach((listener) => listener());
|
|
265
|
+
}
|
|
266
|
+
function logDebugEvent(type, source, message, data) {
|
|
267
|
+
const event = {
|
|
268
|
+
id: `event-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
|
|
269
|
+
type,
|
|
270
|
+
source,
|
|
271
|
+
message,
|
|
272
|
+
data,
|
|
273
|
+
timestamp: Date.now()
|
|
274
|
+
};
|
|
275
|
+
events.unshift(event);
|
|
276
|
+
if (events.length > MAX_EVENTS) {
|
|
277
|
+
events.pop();
|
|
278
|
+
}
|
|
279
|
+
notifyListeners();
|
|
280
|
+
}
|
|
281
|
+
function logStateChange(source, from, to, event) {
|
|
282
|
+
logDebugEvent("state-change", source, `${from} \u2192 ${to}`, { from, to, event: event ?? null });
|
|
283
|
+
}
|
|
284
|
+
function logEventFired(source, eventName, payload) {
|
|
285
|
+
logDebugEvent("event-fired", source, eventName, { eventName, payload: payload ?? null });
|
|
286
|
+
}
|
|
287
|
+
function logEffectExecuted(source, effectType, details) {
|
|
288
|
+
logDebugEvent("effect-executed", source, effectType, { effectType, details: details ?? null });
|
|
289
|
+
}
|
|
290
|
+
function logError(source, message, error) {
|
|
291
|
+
logDebugEvent("error", source, message, { error: error?.message ?? null });
|
|
292
|
+
}
|
|
293
|
+
function logWarning(source, message, data) {
|
|
294
|
+
logDebugEvent("warning", source, message, data);
|
|
295
|
+
}
|
|
296
|
+
function logInfo(source, message, data) {
|
|
297
|
+
logDebugEvent("info", source, message, data);
|
|
298
|
+
}
|
|
299
|
+
function getDebugEvents() {
|
|
300
|
+
return [...events];
|
|
301
|
+
}
|
|
302
|
+
function getRecentEvents(count) {
|
|
303
|
+
return events.slice(0, count);
|
|
304
|
+
}
|
|
305
|
+
function getEventsByType(type) {
|
|
306
|
+
return events.filter((e) => e.type === type);
|
|
307
|
+
}
|
|
308
|
+
function getEventsBySource(source) {
|
|
309
|
+
return events.filter((e) => e.source === source);
|
|
310
|
+
}
|
|
311
|
+
function subscribeToDebugEvents(listener) {
|
|
312
|
+
listeners2.add(listener);
|
|
313
|
+
return () => listeners2.delete(listener);
|
|
314
|
+
}
|
|
315
|
+
function clearDebugEvents() {
|
|
316
|
+
events.length = 0;
|
|
317
|
+
notifyListeners();
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// lib/guardRegistry.ts
|
|
321
|
+
var guardHistory = [];
|
|
322
|
+
var listeners3 = /* @__PURE__ */ new Set();
|
|
323
|
+
var MAX_HISTORY = 100;
|
|
324
|
+
function notifyListeners2() {
|
|
325
|
+
listeners3.forEach((listener) => listener());
|
|
326
|
+
}
|
|
327
|
+
function recordGuardEvaluation(evaluation) {
|
|
328
|
+
const entry = {
|
|
329
|
+
...evaluation,
|
|
330
|
+
id: `guard-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
|
|
331
|
+
timestamp: Date.now()
|
|
332
|
+
};
|
|
333
|
+
guardHistory.unshift(entry);
|
|
334
|
+
if (guardHistory.length > MAX_HISTORY) {
|
|
335
|
+
guardHistory.pop();
|
|
336
|
+
}
|
|
337
|
+
notifyListeners2();
|
|
338
|
+
}
|
|
339
|
+
function getGuardHistory() {
|
|
340
|
+
return [...guardHistory];
|
|
341
|
+
}
|
|
342
|
+
function getRecentGuardEvaluations(count) {
|
|
343
|
+
return guardHistory.slice(0, count);
|
|
344
|
+
}
|
|
345
|
+
function getGuardEvaluationsForTrait(traitName) {
|
|
346
|
+
return guardHistory.filter((g) => g.traitName === traitName);
|
|
347
|
+
}
|
|
348
|
+
function subscribeToGuardChanges(listener) {
|
|
349
|
+
listeners3.add(listener);
|
|
350
|
+
return () => listeners3.delete(listener);
|
|
351
|
+
}
|
|
352
|
+
function clearGuardHistory() {
|
|
353
|
+
guardHistory.length = 0;
|
|
354
|
+
notifyListeners2();
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// lib/tickRegistry.ts
|
|
358
|
+
var ticks = /* @__PURE__ */ new Map();
|
|
359
|
+
var listeners4 = /* @__PURE__ */ new Set();
|
|
360
|
+
function notifyListeners3() {
|
|
361
|
+
listeners4.forEach((listener) => listener());
|
|
362
|
+
}
|
|
363
|
+
function registerTick(tick) {
|
|
364
|
+
ticks.set(tick.id, tick);
|
|
365
|
+
notifyListeners3();
|
|
366
|
+
}
|
|
367
|
+
function updateTickExecution(id, timestamp) {
|
|
368
|
+
const tick = ticks.get(id);
|
|
369
|
+
if (tick) {
|
|
370
|
+
tick.lastExecuted = timestamp;
|
|
371
|
+
tick.nextExecution = timestamp + tick.interval;
|
|
372
|
+
tick.executionCount++;
|
|
373
|
+
notifyListeners3();
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
function setTickActive(id, isActive) {
|
|
377
|
+
const tick = ticks.get(id);
|
|
378
|
+
if (tick) {
|
|
379
|
+
tick.isActive = isActive;
|
|
380
|
+
notifyListeners3();
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
function unregisterTick(id) {
|
|
384
|
+
ticks.delete(id);
|
|
385
|
+
notifyListeners3();
|
|
386
|
+
}
|
|
387
|
+
function getAllTicks() {
|
|
388
|
+
return Array.from(ticks.values());
|
|
389
|
+
}
|
|
390
|
+
function getTick(id) {
|
|
391
|
+
return ticks.get(id);
|
|
392
|
+
}
|
|
393
|
+
function subscribeToTickChanges(listener) {
|
|
394
|
+
listeners4.add(listener);
|
|
395
|
+
return () => listeners4.delete(listener);
|
|
396
|
+
}
|
|
397
|
+
function clearTicks() {
|
|
398
|
+
ticks.clear();
|
|
399
|
+
notifyListeners3();
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// lib/traitRegistry.ts
|
|
403
|
+
var traits = /* @__PURE__ */ new Map();
|
|
404
|
+
var listeners5 = /* @__PURE__ */ new Set();
|
|
405
|
+
function notifyListeners4() {
|
|
406
|
+
listeners5.forEach((listener) => listener());
|
|
407
|
+
}
|
|
408
|
+
function registerTrait(info) {
|
|
409
|
+
traits.set(info.id, info);
|
|
410
|
+
notifyListeners4();
|
|
411
|
+
}
|
|
412
|
+
function updateTraitState(id, newState) {
|
|
413
|
+
const trait = traits.get(id);
|
|
414
|
+
if (trait) {
|
|
415
|
+
trait.currentState = newState;
|
|
416
|
+
trait.transitionCount++;
|
|
417
|
+
notifyListeners4();
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function updateGuardResult(traitId, guardName, result) {
|
|
421
|
+
const trait = traits.get(traitId);
|
|
422
|
+
if (trait) {
|
|
423
|
+
const guard = trait.guards.find((g) => g.name === guardName);
|
|
424
|
+
if (guard) {
|
|
425
|
+
guard.lastResult = result;
|
|
426
|
+
notifyListeners4();
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
function unregisterTrait(id) {
|
|
431
|
+
traits.delete(id);
|
|
432
|
+
notifyListeners4();
|
|
433
|
+
}
|
|
434
|
+
function getAllTraits() {
|
|
435
|
+
return Array.from(traits.values());
|
|
436
|
+
}
|
|
437
|
+
function getTrait(id) {
|
|
438
|
+
return traits.get(id);
|
|
439
|
+
}
|
|
440
|
+
function subscribeToTraitChanges(listener) {
|
|
441
|
+
listeners5.add(listener);
|
|
442
|
+
return () => listeners5.delete(listener);
|
|
443
|
+
}
|
|
444
|
+
function clearTraits() {
|
|
445
|
+
traits.clear();
|
|
446
|
+
notifyListeners4();
|
|
447
|
+
}
|
|
448
|
+
var log2 = logger.createLogger("almadar:bridge");
|
|
449
|
+
var MAX_TRANSITIONS = 500;
|
|
450
|
+
function getState() {
|
|
451
|
+
if (typeof window !== "undefined") {
|
|
452
|
+
const w = window;
|
|
453
|
+
if (!w.__verificationRegistryState) {
|
|
454
|
+
w.__verificationRegistryState = {
|
|
455
|
+
checks: /* @__PURE__ */ new Map(),
|
|
456
|
+
transitions: [],
|
|
457
|
+
bridgeHealth: null,
|
|
458
|
+
listeners: /* @__PURE__ */ new Set(),
|
|
459
|
+
traitSnapshots: /* @__PURE__ */ new Map()
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
return w.__verificationRegistryState;
|
|
463
|
+
}
|
|
464
|
+
return {
|
|
465
|
+
checks: /* @__PURE__ */ new Map(),
|
|
466
|
+
transitions: [],
|
|
467
|
+
bridgeHealth: null,
|
|
468
|
+
listeners: /* @__PURE__ */ new Set(),
|
|
469
|
+
traitSnapshots: /* @__PURE__ */ new Map()
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
function notifyListeners5() {
|
|
473
|
+
getState().listeners.forEach((l) => l());
|
|
474
|
+
exposeOnWindow();
|
|
475
|
+
}
|
|
476
|
+
function registerCheck(id, label, status = "pending", details) {
|
|
477
|
+
getState().checks.set(id, { id, label, status, details, updatedAt: Date.now() });
|
|
478
|
+
notifyListeners5();
|
|
479
|
+
}
|
|
480
|
+
function updateCheck(id, status, details) {
|
|
481
|
+
const check = getState().checks.get(id);
|
|
482
|
+
if (check) {
|
|
483
|
+
check.status = status;
|
|
484
|
+
if (details !== void 0) check.details = details;
|
|
485
|
+
check.updatedAt = Date.now();
|
|
486
|
+
} else {
|
|
487
|
+
getState().checks.set(id, { id, label: id, status, details, updatedAt: Date.now() });
|
|
488
|
+
}
|
|
489
|
+
notifyListeners5();
|
|
490
|
+
}
|
|
491
|
+
function getAllChecks() {
|
|
492
|
+
return Array.from(getState().checks.values());
|
|
493
|
+
}
|
|
494
|
+
function recordTransition(trace) {
|
|
495
|
+
const entry = {
|
|
496
|
+
...trace,
|
|
497
|
+
id: `t-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`
|
|
498
|
+
};
|
|
499
|
+
log2.debug("transition:recorded", { trait: trace.traitName, from: trace.from, to: trace.to, event: trace.event, effectCount: trace.effects.length });
|
|
500
|
+
getState().transitions.push(entry);
|
|
501
|
+
if (getState().transitions.length > MAX_TRANSITIONS) {
|
|
502
|
+
getState().transitions.shift();
|
|
503
|
+
}
|
|
504
|
+
if (entry.event === "INIT") {
|
|
505
|
+
const hasFetch = entry.effects.some((e) => e.type === "fetch");
|
|
506
|
+
const checkId = `init-fetch-${entry.traitName}`;
|
|
507
|
+
if (hasFetch) {
|
|
508
|
+
registerCheck(
|
|
509
|
+
checkId,
|
|
510
|
+
`INIT transition for "${entry.traitName}" has fetch effect`,
|
|
511
|
+
"pass"
|
|
512
|
+
);
|
|
513
|
+
} else {
|
|
514
|
+
const hasRenderUI = entry.effects.some((e) => e.type === "render-ui");
|
|
515
|
+
if (hasRenderUI) {
|
|
516
|
+
registerCheck(
|
|
517
|
+
checkId,
|
|
518
|
+
`INIT transition for "${entry.traitName}" missing fetch effect`,
|
|
519
|
+
"fail",
|
|
520
|
+
"Entity-bound render-ui without a fetch effect will show empty data"
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
const failedEffects = entry.effects.filter((e) => e.status === "failed");
|
|
526
|
+
if (failedEffects.length > 0) {
|
|
527
|
+
registerCheck(
|
|
528
|
+
`effects-${entry.id}`,
|
|
529
|
+
`Effects failed in ${entry.traitName}: ${entry.from} -> ${entry.to}`,
|
|
530
|
+
"fail",
|
|
531
|
+
failedEffects.map((e) => `${e.type}: ${e.error}`).join("; ")
|
|
532
|
+
);
|
|
533
|
+
}
|
|
534
|
+
notifyListeners5();
|
|
535
|
+
}
|
|
536
|
+
function getTransitions() {
|
|
537
|
+
return [...getState().transitions];
|
|
538
|
+
}
|
|
539
|
+
function getTransitionsForTrait(traitName) {
|
|
540
|
+
return getState().transitions.filter((t) => t.traitName === traitName);
|
|
541
|
+
}
|
|
542
|
+
function recordServerResponse(orbitalName, event, response) {
|
|
543
|
+
const serverResponse = {
|
|
544
|
+
...response,
|
|
545
|
+
orbitalName,
|
|
546
|
+
timestamp: Date.now()
|
|
547
|
+
};
|
|
548
|
+
const entry = {
|
|
549
|
+
id: `srv-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
|
|
550
|
+
traitName: `server:${orbitalName}`,
|
|
551
|
+
from: "server",
|
|
552
|
+
to: "server",
|
|
553
|
+
event,
|
|
554
|
+
effects: [],
|
|
555
|
+
serverResponse,
|
|
556
|
+
timestamp: Date.now()
|
|
557
|
+
};
|
|
558
|
+
getState().transitions.push(entry);
|
|
559
|
+
if (getState().transitions.length > MAX_TRANSITIONS) {
|
|
560
|
+
getState().transitions.shift();
|
|
561
|
+
}
|
|
562
|
+
if (!response.success && response.error) {
|
|
563
|
+
registerCheck(
|
|
564
|
+
`server-error-${entry.id}`,
|
|
565
|
+
`Server error for ${orbitalName}:${event}`,
|
|
566
|
+
"fail",
|
|
567
|
+
response.error
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
notifyListeners5();
|
|
571
|
+
}
|
|
572
|
+
function updateBridgeHealth(health) {
|
|
573
|
+
getState().bridgeHealth = { ...health };
|
|
574
|
+
const checkId = "server-bridge";
|
|
575
|
+
if (health.connected) {
|
|
576
|
+
registerCheck(checkId, "Server bridge connected", "pass");
|
|
577
|
+
} else {
|
|
578
|
+
registerCheck(
|
|
579
|
+
checkId,
|
|
580
|
+
"Server bridge disconnected",
|
|
581
|
+
"fail",
|
|
582
|
+
health.lastError || "Bridge is not connected"
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
notifyListeners5();
|
|
586
|
+
}
|
|
587
|
+
function getBridgeHealth() {
|
|
588
|
+
const bh = getState().bridgeHealth;
|
|
589
|
+
return bh ? { ...bh } : null;
|
|
590
|
+
}
|
|
591
|
+
function getSummary() {
|
|
592
|
+
const allChecks = getAllChecks();
|
|
593
|
+
return {
|
|
594
|
+
totalChecks: allChecks.length,
|
|
595
|
+
passed: allChecks.filter((c) => c.status === "pass").length,
|
|
596
|
+
failed: allChecks.filter((c) => c.status === "fail").length,
|
|
597
|
+
warnings: allChecks.filter((c) => c.status === "warn").length,
|
|
598
|
+
pending: allChecks.filter((c) => c.status === "pending").length
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
function getSnapshot() {
|
|
602
|
+
return {
|
|
603
|
+
checks: getAllChecks(),
|
|
604
|
+
transitions: getTransitions(),
|
|
605
|
+
bridge: getBridgeHealth(),
|
|
606
|
+
summary: getSummary(),
|
|
607
|
+
traits: getTraitSnapshots()
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
function getTraitSnapshots() {
|
|
611
|
+
const snapshots = [];
|
|
612
|
+
for (const [traitName, getter] of getState().traitSnapshots.entries()) {
|
|
613
|
+
try {
|
|
614
|
+
snapshots.push(getter());
|
|
615
|
+
} catch (err) {
|
|
616
|
+
log2.error("traitSnapshot getter failed", { trait: traitName, err: String(err) });
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
return snapshots;
|
|
620
|
+
}
|
|
621
|
+
function subscribeToVerification(listener) {
|
|
622
|
+
getState().listeners.add(listener);
|
|
623
|
+
return () => getState().listeners.delete(listener);
|
|
624
|
+
}
|
|
625
|
+
function defaultGetTraitState(traitName) {
|
|
626
|
+
const getter = getState().traitSnapshots.get(traitName);
|
|
627
|
+
if (getter === void 0) return void 0;
|
|
628
|
+
try {
|
|
629
|
+
return getter().currentState;
|
|
630
|
+
} catch {
|
|
631
|
+
return void 0;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
function exposeOnWindow() {
|
|
635
|
+
if (typeof window === "undefined") return;
|
|
636
|
+
if (!window.__orbitalVerification) {
|
|
637
|
+
window.__orbitalVerification = {
|
|
638
|
+
getSnapshot,
|
|
639
|
+
getChecks: getAllChecks,
|
|
640
|
+
getTransitions,
|
|
641
|
+
getBridge: getBridgeHealth,
|
|
642
|
+
getSummary,
|
|
643
|
+
waitForTransition,
|
|
644
|
+
getTraitSnapshots,
|
|
645
|
+
getTraitState: defaultGetTraitState
|
|
646
|
+
};
|
|
647
|
+
} else {
|
|
648
|
+
if (!window.__orbitalVerification.getTraitSnapshots) {
|
|
649
|
+
window.__orbitalVerification.getTraitSnapshots = getTraitSnapshots;
|
|
650
|
+
}
|
|
651
|
+
if (!window.__orbitalVerification.getTraitState) {
|
|
652
|
+
window.__orbitalVerification.getTraitState = defaultGetTraitState;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
function waitForTransition(event, timeoutMs = 1e4) {
|
|
657
|
+
return new Promise((resolve) => {
|
|
658
|
+
const existing = getState().transitions.find((t) => t.event === event);
|
|
659
|
+
if (existing) {
|
|
660
|
+
resolve(existing);
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
const timeout = setTimeout(() => {
|
|
664
|
+
unsub();
|
|
665
|
+
resolve(null);
|
|
666
|
+
}, timeoutMs);
|
|
667
|
+
const unsub = subscribeToVerification(() => {
|
|
668
|
+
const found = getState().transitions.find((t) => t.event === event);
|
|
669
|
+
if (found) {
|
|
670
|
+
clearTimeout(timeout);
|
|
671
|
+
unsub();
|
|
672
|
+
resolve(found);
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
function bindEventBus(eventBus) {
|
|
678
|
+
if (typeof window === "undefined") return;
|
|
679
|
+
log2.info("bindEventBus", { hasOnAny: !!eventBus.onAny });
|
|
680
|
+
exposeOnWindow();
|
|
681
|
+
if (window.__orbitalVerification) {
|
|
682
|
+
window.__orbitalVerification.sendEvent = (event, payload, traitScope) => {
|
|
683
|
+
const prefixed = event.startsWith("UI:") ? event : traitScope ? `UI:${traitScope}.${event}` : `UI:${event}`;
|
|
684
|
+
log2.debug("sendEvent", { event: prefixed, traitScope, payloadKeys: payload ? Object.keys(payload) : [] });
|
|
685
|
+
eventBus.emit(prefixed, payload);
|
|
686
|
+
};
|
|
687
|
+
const eventLog = [];
|
|
688
|
+
window.__orbitalVerification.eventLog = eventLog;
|
|
689
|
+
window.__orbitalVerification.clearEventLog = () => {
|
|
690
|
+
eventLog.length = 0;
|
|
691
|
+
};
|
|
692
|
+
if (eventBus.onAny) {
|
|
693
|
+
const verificationRegistryEventLogger = (event) => {
|
|
694
|
+
if (eventLog.length < 200) {
|
|
695
|
+
eventLog.push({
|
|
696
|
+
type: event.type,
|
|
697
|
+
payload: event.payload,
|
|
698
|
+
timestamp: Date.now()
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
Object.defineProperty(verificationRegistryEventLogger, "name", {
|
|
703
|
+
value: "verificationRegistry:eventLog"
|
|
704
|
+
});
|
|
705
|
+
eventBus.onAny(verificationRegistryEventLogger);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
function bindTraitStateGetter(getter) {
|
|
710
|
+
if (typeof window === "undefined") return;
|
|
711
|
+
exposeOnWindow();
|
|
712
|
+
if (window.__orbitalVerification) {
|
|
713
|
+
window.__orbitalVerification.getTraitState = getter;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
function registerTraitSnapshot(traitName, getter) {
|
|
717
|
+
if (typeof window === "undefined") return () => {
|
|
718
|
+
};
|
|
719
|
+
getState().traitSnapshots.set(traitName, getter);
|
|
720
|
+
exposeOnWindow();
|
|
721
|
+
notifyListeners5();
|
|
722
|
+
return () => {
|
|
723
|
+
const s = getState();
|
|
724
|
+
if (s.traitSnapshots.get(traitName) === getter) {
|
|
725
|
+
s.traitSnapshots.delete(traitName);
|
|
726
|
+
notifyListeners5();
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
function bindCanvasCapture(captureFn) {
|
|
731
|
+
if (typeof window === "undefined") return;
|
|
732
|
+
exposeOnWindow();
|
|
733
|
+
if (window.__orbitalVerification) {
|
|
734
|
+
window.__orbitalVerification.captureFrame = captureFn;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
function updateAssetStatus(url, status) {
|
|
738
|
+
if (typeof window === "undefined") return;
|
|
739
|
+
exposeOnWindow();
|
|
740
|
+
if (window.__orbitalVerification) {
|
|
741
|
+
if (!window.__orbitalVerification.assetStatus) {
|
|
742
|
+
window.__orbitalVerification.assetStatus = {};
|
|
743
|
+
}
|
|
744
|
+
window.__orbitalVerification.assetStatus[url] = status;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
function clearVerification() {
|
|
748
|
+
getState().checks.clear();
|
|
749
|
+
getState().transitions.length = 0;
|
|
750
|
+
getState().bridgeHealth = null;
|
|
751
|
+
notifyListeners5();
|
|
752
|
+
}
|
|
753
|
+
exposeOnWindow();
|
|
754
|
+
|
|
755
|
+
// lib/getNestedValue.ts
|
|
756
|
+
function getNestedValue(obj, path) {
|
|
757
|
+
if (obj === null || obj === void 0 || !path) {
|
|
758
|
+
return void 0;
|
|
759
|
+
}
|
|
760
|
+
if (!path.includes(".")) {
|
|
761
|
+
return obj[path];
|
|
762
|
+
}
|
|
763
|
+
const parts = path.split(".");
|
|
764
|
+
let value = obj;
|
|
765
|
+
for (const part of parts) {
|
|
766
|
+
if (value === null || value === void 0) {
|
|
767
|
+
return void 0;
|
|
768
|
+
}
|
|
769
|
+
if (typeof value !== "object" || Array.isArray(value)) {
|
|
770
|
+
return void 0;
|
|
771
|
+
}
|
|
772
|
+
value = value[part];
|
|
773
|
+
}
|
|
774
|
+
return value;
|
|
775
|
+
}
|
|
776
|
+
function formatNestedFieldLabel(path) {
|
|
777
|
+
const lastPart = path.includes(".") ? path.split(".").pop() : path;
|
|
778
|
+
return lastPart.replace(/([A-Z])/g, " $1").replace(/^./, (str) => str.toUpperCase()).replace(/Id$/, "").trim();
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
// lib/visualizer/index.ts
|
|
782
|
+
function formatSExprGuardToDomain(guard, _entityName) {
|
|
783
|
+
if (Array.isArray(guard)) {
|
|
784
|
+
const [op, ...args] = guard;
|
|
785
|
+
return `${op}(${args.map((a) => JSON.stringify(a)).join(", ")})`;
|
|
786
|
+
}
|
|
787
|
+
return JSON.stringify(guard);
|
|
788
|
+
}
|
|
789
|
+
function formatSExprEffectToDomain(effect, _entityName) {
|
|
790
|
+
if (Array.isArray(effect)) {
|
|
791
|
+
const [op, ...args] = effect;
|
|
792
|
+
return `${op}(${args.map((a) => JSON.stringify(a)).join(", ")})`;
|
|
793
|
+
}
|
|
794
|
+
return JSON.stringify(effect);
|
|
795
|
+
}
|
|
796
|
+
function isArraySExpr(expr) {
|
|
797
|
+
return Array.isArray(expr);
|
|
798
|
+
}
|
|
799
|
+
var DEFAULT_CONFIG = {
|
|
800
|
+
nodeRadius: 70,
|
|
801
|
+
nodeSpacing: 650,
|
|
802
|
+
// Increased to give more room for transitions
|
|
803
|
+
initialIndicatorOffset: 45,
|
|
804
|
+
arrowSize: 12,
|
|
805
|
+
colors: {
|
|
806
|
+
background: "#0d1117",
|
|
807
|
+
node: "#161b22",
|
|
808
|
+
nodeBorder: "#30363d",
|
|
809
|
+
nodeText: "#e6edf3",
|
|
810
|
+
initialNode: "#238636",
|
|
811
|
+
finalNode: "#f85149",
|
|
812
|
+
arrow: "#8b949e",
|
|
813
|
+
arrowText: "#8b949e",
|
|
814
|
+
effectText: "#ffb86c",
|
|
815
|
+
guardText: "#ff79c6",
|
|
816
|
+
initial: "#238636"
|
|
817
|
+
},
|
|
818
|
+
fonts: {
|
|
819
|
+
node: '18px "Inter", sans-serif',
|
|
820
|
+
event: '16px "JetBrains Mono", monospace',
|
|
821
|
+
effect: '14px "JetBrains Mono", monospace'
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
function isBinding(val) {
|
|
825
|
+
return typeof val === "string" && val.startsWith("@");
|
|
826
|
+
}
|
|
827
|
+
function parseBinding(binding) {
|
|
828
|
+
if (!isBinding(binding)) return null;
|
|
829
|
+
const withoutAt = binding.substring(1);
|
|
830
|
+
const parts = withoutAt.split(".");
|
|
831
|
+
return {
|
|
832
|
+
root: parts[0],
|
|
833
|
+
path: parts.slice(1),
|
|
834
|
+
raw: binding
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
function formatGuard(guard) {
|
|
838
|
+
let text = "";
|
|
839
|
+
if (typeof guard === "string") {
|
|
840
|
+
text = guard;
|
|
841
|
+
} else if (Array.isArray(guard)) {
|
|
842
|
+
text = formatSExprCompact(guard);
|
|
843
|
+
}
|
|
844
|
+
return text ? `[${text}]` : "";
|
|
845
|
+
}
|
|
846
|
+
function formatGuardHuman(guard, entityName) {
|
|
847
|
+
if (!guard) return "";
|
|
848
|
+
if (typeof guard === "string") {
|
|
849
|
+
return `if ${guard}`;
|
|
850
|
+
}
|
|
851
|
+
if (isArraySExpr(guard)) {
|
|
852
|
+
return formatSExprGuardToDomain(guard);
|
|
853
|
+
}
|
|
854
|
+
return "";
|
|
855
|
+
}
|
|
856
|
+
function formatEffectsHuman(effects, entityName) {
|
|
857
|
+
if (!Array.isArray(effects) || effects.length === 0) return [];
|
|
858
|
+
return effects.map((effect) => {
|
|
859
|
+
if (isArraySExpr(effect)) {
|
|
860
|
+
return formatSExprEffectToDomain(effect);
|
|
861
|
+
}
|
|
862
|
+
return String(effect);
|
|
863
|
+
}).filter(Boolean);
|
|
864
|
+
}
|
|
865
|
+
function formatSExprCompact(expr) {
|
|
866
|
+
if (!Array.isArray(expr) || expr.length === 0) return "[]";
|
|
867
|
+
const op = expr[0];
|
|
868
|
+
const args = expr.slice(1);
|
|
869
|
+
const formattedArgs = args.map((a) => {
|
|
870
|
+
if (isBinding(a)) {
|
|
871
|
+
const parsed = parseBinding(a);
|
|
872
|
+
if (parsed && parsed.path.length > 0) {
|
|
873
|
+
return `${parsed.root}.${parsed.path.join(".")}`;
|
|
874
|
+
}
|
|
875
|
+
return parsed?.root || a;
|
|
876
|
+
}
|
|
877
|
+
if (typeof a === "string") return a;
|
|
878
|
+
if (typeof a === "number" || typeof a === "boolean") return String(a);
|
|
879
|
+
if (Array.isArray(a)) return formatSExprCompact(a);
|
|
880
|
+
return "{...}";
|
|
881
|
+
});
|
|
882
|
+
return `${op} ${formattedArgs.join(" ")}`;
|
|
883
|
+
}
|
|
884
|
+
function getEffectSummary(effects) {
|
|
885
|
+
if (!Array.isArray(effects) || effects.length === 0) return "";
|
|
886
|
+
const setFields = [];
|
|
887
|
+
const otherEffects = [];
|
|
888
|
+
effects.forEach((effect) => {
|
|
889
|
+
if (!Array.isArray(effect)) return;
|
|
890
|
+
const op = effect[0];
|
|
891
|
+
if (op === "set" && effect[1] && typeof effect[1] === "string") {
|
|
892
|
+
const parsed = parseBinding(effect[1]);
|
|
893
|
+
if (parsed && parsed.path.length > 0) {
|
|
894
|
+
setFields.push(parsed.path[parsed.path.length - 1]);
|
|
895
|
+
} else {
|
|
896
|
+
setFields.push("field");
|
|
897
|
+
}
|
|
898
|
+
} else {
|
|
899
|
+
otherEffects.push(effect);
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
const summaries = [];
|
|
903
|
+
if (setFields.length > 0) {
|
|
904
|
+
summaries.push(`\u2192 ${setFields.join(", ")}`);
|
|
905
|
+
}
|
|
906
|
+
otherEffects.forEach((effect) => {
|
|
907
|
+
const op = effect[0];
|
|
908
|
+
switch (op) {
|
|
909
|
+
case "emit":
|
|
910
|
+
summaries.push(`\u2191 ${effect[1] || "event"}`);
|
|
911
|
+
break;
|
|
912
|
+
case "notify":
|
|
913
|
+
summaries.push(`\u{1F4E7} ${effect[1] || ""}`);
|
|
914
|
+
break;
|
|
915
|
+
case "persist":
|
|
916
|
+
summaries.push(`\u{1F4BE} ${effect[1] || "save"}`);
|
|
917
|
+
break;
|
|
918
|
+
case "navigate":
|
|
919
|
+
summaries.push(`\u{1F517} nav`);
|
|
920
|
+
break;
|
|
921
|
+
case "spawn":
|
|
922
|
+
summaries.push(`+ ${effect[1] || "spawn"}`);
|
|
923
|
+
break;
|
|
924
|
+
case "despawn":
|
|
925
|
+
summaries.push(`- despawn`);
|
|
926
|
+
break;
|
|
927
|
+
default:
|
|
928
|
+
summaries.push(op);
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
return summaries.join(" | ");
|
|
932
|
+
}
|
|
933
|
+
function extractOutputsFromTransitions(transitions) {
|
|
934
|
+
const outputs = /* @__PURE__ */ new Set();
|
|
935
|
+
transitions.forEach((t) => {
|
|
936
|
+
if (t.effects) {
|
|
937
|
+
t.effects.forEach((effect) => {
|
|
938
|
+
if (Array.isArray(effect)) {
|
|
939
|
+
const op = effect[0];
|
|
940
|
+
if (["emit", "notify", "persist", "navigate", "call-service"].includes(op)) {
|
|
941
|
+
if (isArraySExpr(effect)) {
|
|
942
|
+
const humanText = formatSExprEffectToDomain(effect);
|
|
943
|
+
outputs.add(humanText);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
return Array.from(outputs);
|
|
951
|
+
}
|
|
952
|
+
function getNodeRadius(stateName, config) {
|
|
953
|
+
const baseRadius = config.nodeRadius;
|
|
954
|
+
const textLength = stateName.length;
|
|
955
|
+
if (textLength > 12) return baseRadius + 25;
|
|
956
|
+
if (textLength > 8) return baseRadius + 15;
|
|
957
|
+
if (textLength > 6) return baseRadius + 8;
|
|
958
|
+
return baseRadius;
|
|
959
|
+
}
|
|
960
|
+
function calculateLayout(states, transitions, options, config) {
|
|
961
|
+
const positions = {};
|
|
962
|
+
const entityBoxWidth = options.hasEntity ? 200 : 0;
|
|
963
|
+
const outputBoxWidth = options.hasOutputs ? 200 : 0;
|
|
964
|
+
const leftOffset = 100 + entityBoxWidth;
|
|
965
|
+
const initialState = states.find((s) => s.isInitial) || states[0];
|
|
966
|
+
states.filter((s) => s.isFinal);
|
|
967
|
+
states.filter((s) => !s.isInitial && !s.isFinal);
|
|
968
|
+
let maxLabelLength = 0;
|
|
969
|
+
transitions.forEach((t) => {
|
|
970
|
+
if (t.effects && t.effects.length > 0) {
|
|
971
|
+
const summary = getEffectSummary(t.effects);
|
|
972
|
+
maxLabelLength = Math.max(maxLabelLength, summary.length);
|
|
973
|
+
}
|
|
974
|
+
if (t.guard) {
|
|
975
|
+
const guardStr = formatGuard(t.guard);
|
|
976
|
+
maxLabelLength = Math.max(maxLabelLength, guardStr.length);
|
|
977
|
+
}
|
|
978
|
+
if (t.event) {
|
|
979
|
+
maxLabelLength = Math.max(maxLabelLength, t.event.length);
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
const labelWidth = Math.min(maxLabelLength * 10, 350);
|
|
983
|
+
const dynamicSpacing = Math.min(Math.max(config.nodeSpacing, labelWidth + 100), 400);
|
|
984
|
+
const stateColumn = {};
|
|
985
|
+
if (initialState) {
|
|
986
|
+
const queue = [{ name: initialState.name, col: 0 }];
|
|
987
|
+
const visited = /* @__PURE__ */ new Set();
|
|
988
|
+
while (queue.length > 0) {
|
|
989
|
+
const { name, col } = queue.shift();
|
|
990
|
+
if (visited.has(name)) continue;
|
|
991
|
+
visited.add(name);
|
|
992
|
+
if (stateColumn[name] === void 0) {
|
|
993
|
+
stateColumn[name] = col;
|
|
994
|
+
}
|
|
995
|
+
transitions.forEach((t) => {
|
|
996
|
+
if (t.from === name && t.from !== t.to && !visited.has(t.to)) {
|
|
997
|
+
queue.push({ name: t.to, col: col + 1 });
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
states.forEach((s) => {
|
|
1003
|
+
if (stateColumn[s.name] === void 0) {
|
|
1004
|
+
stateColumn[s.name] = 0;
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
const columns = {};
|
|
1008
|
+
Object.entries(stateColumn).forEach(([name, col]) => {
|
|
1009
|
+
if (!columns[col]) columns[col] = [];
|
|
1010
|
+
columns[col].push(name);
|
|
1011
|
+
});
|
|
1012
|
+
Object.values(columns).forEach((stateNames) => {
|
|
1013
|
+
stateNames.sort((a, b) => {
|
|
1014
|
+
const stateA = states.find((s) => s.name === a);
|
|
1015
|
+
const stateB = states.find((s) => s.name === b);
|
|
1016
|
+
if (stateA?.isInitial) return -1;
|
|
1017
|
+
if (stateB?.isInitial) return 1;
|
|
1018
|
+
if (stateA?.isFinal && !stateB?.isFinal) return 1;
|
|
1019
|
+
if (stateB?.isFinal && !stateA?.isFinal) return -1;
|
|
1020
|
+
return a.localeCompare(b);
|
|
1021
|
+
});
|
|
1022
|
+
});
|
|
1023
|
+
const numColumns = Math.max(...Object.keys(columns).map(Number)) + 1;
|
|
1024
|
+
const maxRowsInColumn = Math.max(...Object.values(columns).map((arr) => arr.length));
|
|
1025
|
+
const minVerticalSpacing = 420;
|
|
1026
|
+
const tooltipPadding = 150;
|
|
1027
|
+
const width = Math.max(1400, numColumns * dynamicSpacing + entityBoxWidth + outputBoxWidth + 400);
|
|
1028
|
+
const height = Math.max(1e3, maxRowsInColumn * minVerticalSpacing + 350 + tooltipPadding);
|
|
1029
|
+
Object.entries(columns).forEach(([colStr, stateNames]) => {
|
|
1030
|
+
const col = parseInt(colStr);
|
|
1031
|
+
const x = leftOffset + col * dynamicSpacing;
|
|
1032
|
+
const numInColumn = stateNames.length;
|
|
1033
|
+
const verticalSpacing = Math.max(minVerticalSpacing, height / (numInColumn + 1));
|
|
1034
|
+
stateNames.forEach((stateName, rowIndex) => {
|
|
1035
|
+
const state = states.find((s) => s.name === stateName);
|
|
1036
|
+
if (state) {
|
|
1037
|
+
const y = verticalSpacing * (rowIndex + 1);
|
|
1038
|
+
positions[stateName] = { x, y, state };
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
});
|
|
1042
|
+
return { positions, width, height: height + 60 };
|
|
1043
|
+
}
|
|
1044
|
+
function escapeXml(unsafe) {
|
|
1045
|
+
return unsafe.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1046
|
+
}
|
|
1047
|
+
function createArrowMarkerSvg(id, color, config) {
|
|
1048
|
+
return `<marker id="${id}" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="${config.arrowSize}" markerHeight="${config.arrowSize}" orient="auto-start-reverse">
|
|
1049
|
+
<path d="M 0 0 L 10 5 L 0 10 z" fill="${color}"/>
|
|
1050
|
+
</marker>`;
|
|
1051
|
+
}
|
|
1052
|
+
function drawStateSvg(name, x, y, state, config) {
|
|
1053
|
+
const radius = getNodeRadius(name, config);
|
|
1054
|
+
let borderColor = config.colors.nodeBorder;
|
|
1055
|
+
let borderWidth = 2;
|
|
1056
|
+
if (state.isInitial) {
|
|
1057
|
+
borderColor = config.colors.initialNode;
|
|
1058
|
+
borderWidth = 3;
|
|
1059
|
+
} else if (state.isFinal) {
|
|
1060
|
+
borderColor = config.colors.finalNode;
|
|
1061
|
+
borderWidth = 3;
|
|
1062
|
+
}
|
|
1063
|
+
let svg = `<g class="state-node">
|
|
1064
|
+
<circle cx="${x}" cy="${y}" r="${radius}" fill="${config.colors.node}" stroke="${borderColor}" stroke-width="${borderWidth}"/>`;
|
|
1065
|
+
if (state.isFinal) {
|
|
1066
|
+
svg += `<circle cx="${x}" cy="${y}" r="${radius - 6}" fill="none" stroke="${borderColor}" stroke-width="2"/>`;
|
|
1067
|
+
}
|
|
1068
|
+
if (state.isInitial) {
|
|
1069
|
+
svg += `<path d="M ${x - radius - config.initialIndicatorOffset} ${y} L ${x - radius - 5} ${y}" stroke="${config.colors.initial}" stroke-width="2" fill="none" marker-end="url(#arrow-initial)"/>`;
|
|
1070
|
+
}
|
|
1071
|
+
svg += `<text x="${x}" y="${y + 7}" text-anchor="middle" fill="${config.colors.nodeText}" font-family="Inter, sans-serif" font-size="18px" font-weight="600">${escapeXml(name)}</text>`;
|
|
1072
|
+
svg += `</g>`;
|
|
1073
|
+
return svg;
|
|
1074
|
+
}
|
|
1075
|
+
function drawTransitionPathSvg(from, to, transitions, positions, config) {
|
|
1076
|
+
const fromPos = positions[from];
|
|
1077
|
+
const toPos = positions[to];
|
|
1078
|
+
if (!fromPos || !toPos) return "";
|
|
1079
|
+
const relevantTransitions = transitions.filter((t) => t.from === from && t.to === to);
|
|
1080
|
+
if (relevantTransitions.length === 0) return "";
|
|
1081
|
+
const fromRadius = getNodeRadius(from, config);
|
|
1082
|
+
const toRadius = getNodeRadius(to, config);
|
|
1083
|
+
const dx = toPos.x - fromPos.x;
|
|
1084
|
+
const dy = toPos.y - fromPos.y;
|
|
1085
|
+
const dist = Math.sqrt(dx * dx + dy * dy);
|
|
1086
|
+
if (dist === 0) return "";
|
|
1087
|
+
const nx = dx / dist;
|
|
1088
|
+
const ny = dy / dist;
|
|
1089
|
+
const startX = fromPos.x + nx * fromRadius;
|
|
1090
|
+
const startY = fromPos.y + ny * fromRadius;
|
|
1091
|
+
const endX = toPos.x - nx * (toRadius + 5);
|
|
1092
|
+
const endY = toPos.y - ny * (toRadius + 5);
|
|
1093
|
+
const hasReverse = transitions.some((t) => t.from === to && t.to === from);
|
|
1094
|
+
const isReverse = hasReverse && from > to;
|
|
1095
|
+
const baseOffset = hasReverse ? 50 : 30;
|
|
1096
|
+
const curveOffset = baseOffset + (relevantTransitions.length > 1 ? 20 : 0);
|
|
1097
|
+
const curveDirection = isReverse ? 1 : -1;
|
|
1098
|
+
const midX = (startX + endX) / 2;
|
|
1099
|
+
const midY = (startY + endY) / 2 + curveOffset * curveDirection;
|
|
1100
|
+
return `<path class="transition-path" data-from="${from}" data-to="${to}" d="M ${startX} ${startY} Q ${midX} ${midY} ${endX} ${endY}" stroke="${config.colors.arrow}" stroke-width="1.5" fill="none" marker-end="url(#arrow)"/>`;
|
|
1101
|
+
}
|
|
1102
|
+
function drawTransitionLabelsSvg(from, to, transitions, positions, config) {
|
|
1103
|
+
const fromPos = positions[from];
|
|
1104
|
+
const toPos = positions[to];
|
|
1105
|
+
if (!fromPos || !toPos) return "";
|
|
1106
|
+
const relevantTransitions = transitions.filter((t) => t.from === from && t.to === to);
|
|
1107
|
+
if (relevantTransitions.length === 0) return "";
|
|
1108
|
+
const fromRadius = getNodeRadius(from, config);
|
|
1109
|
+
const toRadius = getNodeRadius(to, config);
|
|
1110
|
+
const dx = toPos.x - fromPos.x;
|
|
1111
|
+
const dy = toPos.y - fromPos.y;
|
|
1112
|
+
const dist = Math.sqrt(dx * dx + dy * dy);
|
|
1113
|
+
if (dist === 0) return "";
|
|
1114
|
+
const nx = dx / dist;
|
|
1115
|
+
const ny = dy / dist;
|
|
1116
|
+
const startX = fromPos.x + nx * fromRadius;
|
|
1117
|
+
const startY = fromPos.y + ny * fromRadius;
|
|
1118
|
+
const endX = toPos.x - nx * (toRadius + 5);
|
|
1119
|
+
const endY = toPos.y - ny * (toRadius + 5);
|
|
1120
|
+
const hasReverse = transitions.some((t) => t.from === to && t.to === from);
|
|
1121
|
+
const isReverse = hasReverse && from > to;
|
|
1122
|
+
const baseOffset = hasReverse ? 50 : 40;
|
|
1123
|
+
const curveOffset = baseOffset + (relevantTransitions.length > 1 ? 25 : 0);
|
|
1124
|
+
const curveDirection = isReverse ? 1 : -1;
|
|
1125
|
+
const midX = (startX + endX) / 2;
|
|
1126
|
+
const midY = (startY + endY) / 2 + curveOffset * curveDirection;
|
|
1127
|
+
let svg = "";
|
|
1128
|
+
relevantTransitions.forEach((transition, index) => {
|
|
1129
|
+
const blockOffset = index * 60 * curveDirection;
|
|
1130
|
+
const dataAttrs = `data-from="${from}" data-to="${to}" data-event="${transition.event}"`;
|
|
1131
|
+
const labelY = midY + curveDirection * 5 + blockOffset;
|
|
1132
|
+
svg += `<g class="transition-group" ${dataAttrs}>`;
|
|
1133
|
+
svg += `<text class="transition-label transition-event" x="${midX}" y="${labelY}" text-anchor="middle" fill="${config.colors.arrowText}" font-family="JetBrains Mono, monospace" font-size="14px" font-weight="600">${escapeXml(transition.event)}</text>`;
|
|
1134
|
+
const hasGuard = !!transition.guard;
|
|
1135
|
+
const guardText = hasGuard && transition.guard !== void 0 ? formatGuardHuman(transition.guard) : "";
|
|
1136
|
+
const effectLines = transition.effects ? formatEffectsHuman(transition.effects) : [];
|
|
1137
|
+
const hasEffects = effectLines.length > 0;
|
|
1138
|
+
if (hasGuard || hasEffects) {
|
|
1139
|
+
const tooltipStartY = labelY + 20 * curveDirection;
|
|
1140
|
+
const lineHeight = 18;
|
|
1141
|
+
const padding = 12;
|
|
1142
|
+
let maxTextWidth = 0;
|
|
1143
|
+
if (guardText) maxTextWidth = Math.max(maxTextWidth, guardText.length * 7);
|
|
1144
|
+
effectLines.forEach((line) => {
|
|
1145
|
+
maxTextWidth = Math.max(maxTextWidth, line.length * 7);
|
|
1146
|
+
});
|
|
1147
|
+
const boxWidth = Math.max(180, Math.min(maxTextWidth + padding * 2 + 20, 400));
|
|
1148
|
+
const numLines = (hasGuard ? 1 : 0) + effectLines.length;
|
|
1149
|
+
const boxHeight = numLines * lineHeight + padding * 2;
|
|
1150
|
+
const boxY = curveDirection > 0 ? tooltipStartY : tooltipStartY - boxHeight;
|
|
1151
|
+
svg += `<g class="transition-detail">`;
|
|
1152
|
+
svg += `<rect x="${midX - boxWidth / 2}" y="${boxY}" width="${boxWidth}" height="${boxHeight}" fill="rgba(22, 27, 34, 0.95)" stroke="${config.colors.nodeBorder}" stroke-width="1" rx="6"/>`;
|
|
1153
|
+
let currentY = boxY + padding + 12;
|
|
1154
|
+
if (hasGuard && guardText) {
|
|
1155
|
+
svg += `<text x="${midX - boxWidth / 2 + padding}" y="${currentY}" fill="${config.colors.guardText}" font-family="Inter, sans-serif" font-size="12px">`;
|
|
1156
|
+
svg += `<tspan font-weight="600">Guard:</tspan> ${escapeXml(guardText)}</text>`;
|
|
1157
|
+
currentY += lineHeight;
|
|
1158
|
+
}
|
|
1159
|
+
if (hasEffects) {
|
|
1160
|
+
effectLines.forEach((effectText, idx) => {
|
|
1161
|
+
const prefix = idx === 0 ? "Then: " : " ";
|
|
1162
|
+
svg += `<text x="${midX - boxWidth / 2 + padding}" y="${currentY}" fill="${config.colors.effectText}" font-family="Inter, sans-serif" font-size="12px">`;
|
|
1163
|
+
svg += `<tspan font-weight="${idx === 0 ? "600" : "400"}">${prefix}</tspan>${escapeXml(effectText)}</text>`;
|
|
1164
|
+
currentY += lineHeight;
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
svg += `</g>`;
|
|
1168
|
+
}
|
|
1169
|
+
svg += `</g>`;
|
|
1170
|
+
});
|
|
1171
|
+
return svg;
|
|
1172
|
+
}
|
|
1173
|
+
function drawEntityInputSvg(entity, x, y, _height) {
|
|
1174
|
+
const fieldCount = entity.fields ? entity.fields.length : 0;
|
|
1175
|
+
const boxWidth = 160;
|
|
1176
|
+
const boxHeight = Math.max(80, fieldCount * 22 + 50);
|
|
1177
|
+
const boxY = y - boxHeight / 2;
|
|
1178
|
+
let svg = `<g class="entity-input">
|
|
1179
|
+
<rect x="${x}" y="${boxY}" width="${boxWidth}" height="${boxHeight}" fill="#1a1f2e" stroke="#4a9eff" stroke-width="2" rx="8"/>
|
|
1180
|
+
<text x="${x + boxWidth / 2}" y="${boxY + 24}" text-anchor="middle" fill="#4a9eff" font-family="Inter, sans-serif" font-size="14px" font-weight="600">\u{1F4E6} ${escapeXml(entity.name || "Entity")}</text>`;
|
|
1181
|
+
if (entity.fields && entity.fields.length > 0) {
|
|
1182
|
+
entity.fields.forEach((field, idx) => {
|
|
1183
|
+
const fieldName = typeof field === "string" ? field : field.name;
|
|
1184
|
+
svg += `<text x="${x + 12}" y="${boxY + 48 + idx * 20}" fill="#8b949e" font-family="JetBrains Mono, monospace" font-size="11px">\u2022 ${escapeXml(fieldName)}</text>`;
|
|
1185
|
+
});
|
|
1186
|
+
}
|
|
1187
|
+
svg += `<path d="M ${x + boxWidth + 5} ${y} L ${x + boxWidth + 40} ${y}" stroke="#4a9eff" stroke-width="2" fill="none" marker-end="url(#arrow-input)"/>`;
|
|
1188
|
+
svg += `</g>`;
|
|
1189
|
+
return svg;
|
|
1190
|
+
}
|
|
1191
|
+
function drawOutputsSvg(outputs, x, y, height) {
|
|
1192
|
+
if (!outputs || outputs.length === 0) return "";
|
|
1193
|
+
const maxOutputLength = Math.max(...outputs.map((o) => o.length));
|
|
1194
|
+
const boxWidth = Math.max(200, maxOutputLength * 7 + 30);
|
|
1195
|
+
const lineHeight = 22;
|
|
1196
|
+
const boxHeight = outputs.length * lineHeight + 50;
|
|
1197
|
+
const boxY = y - boxHeight / 2;
|
|
1198
|
+
let svg = `<g class="outputs">
|
|
1199
|
+
<rect x="${x}" y="${boxY}" width="${boxWidth}" height="${boxHeight}" fill="#1a1f2e" stroke="#ffb86c" stroke-width="2" rx="8"/>
|
|
1200
|
+
<text x="${x + boxWidth / 2}" y="${boxY + 24}" text-anchor="middle" fill="#ffb86c" font-family="Inter, sans-serif" font-size="13px" font-weight="600">\u{1F4E4} External Effects</text>`;
|
|
1201
|
+
outputs.forEach((output, idx) => {
|
|
1202
|
+
svg += `<text x="${x + 12}" y="${boxY + 48 + idx * lineHeight}" fill="#e6edf3" font-family="Inter, sans-serif" font-size="11px">\u2022 ${escapeXml(output)}</text>`;
|
|
1203
|
+
});
|
|
1204
|
+
svg += `</g>`;
|
|
1205
|
+
return svg;
|
|
1206
|
+
}
|
|
1207
|
+
function drawLegendSvg(y, config) {
|
|
1208
|
+
const items = [
|
|
1209
|
+
{ label: "Initial", color: config.colors.initialNode },
|
|
1210
|
+
{ label: "Final", color: config.colors.finalNode },
|
|
1211
|
+
{ label: "State", color: config.colors.nodeBorder }
|
|
1212
|
+
];
|
|
1213
|
+
let svg = `<g class="legend">`;
|
|
1214
|
+
let x = 20;
|
|
1215
|
+
items.forEach((item) => {
|
|
1216
|
+
svg += `<circle cx="${x}" cy="${y}" r="6" fill="${config.colors.node}" stroke="${item.color}" stroke-width="2"/>`;
|
|
1217
|
+
svg += `<text x="${x + 12}" y="${y + 4}" fill="${config.colors.arrowText}" font-family="Inter, sans-serif" font-size="10px">${escapeXml(item.label)}</text>`;
|
|
1218
|
+
x += 70;
|
|
1219
|
+
});
|
|
1220
|
+
svg += `</g>`;
|
|
1221
|
+
return svg;
|
|
1222
|
+
}
|
|
1223
|
+
function renderStateMachineToSvg(stateMachine, options = {}, config = DEFAULT_CONFIG) {
|
|
1224
|
+
const states = stateMachine.states || [];
|
|
1225
|
+
const transitions = stateMachine.transitions || [];
|
|
1226
|
+
const title = options.title || "";
|
|
1227
|
+
const entity = options.entity;
|
|
1228
|
+
const outputs = extractOutputsFromTransitions(transitions);
|
|
1229
|
+
const layoutOptions = {
|
|
1230
|
+
hasEntity: !!entity,
|
|
1231
|
+
hasOutputs: outputs.length > 0
|
|
1232
|
+
};
|
|
1233
|
+
const { positions, width, height } = calculateLayout(states, transitions, layoutOptions, config);
|
|
1234
|
+
let svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height + 40}" viewBox="0 0 ${width} ${height + 40}" class="orbital-state-machine" style="display: block; max-width: none;">`;
|
|
1235
|
+
svg += `<defs>`;
|
|
1236
|
+
svg += createArrowMarkerSvg("arrow", config.colors.arrow, config);
|
|
1237
|
+
svg += createArrowMarkerSvg("arrow-initial", config.colors.initial, config);
|
|
1238
|
+
svg += createArrowMarkerSvg("arrow-input", "#4a9eff", config);
|
|
1239
|
+
svg += createArrowMarkerSvg("arrow-output", "#ffb86c", config);
|
|
1240
|
+
svg += `</defs>`;
|
|
1241
|
+
svg += `<rect x="0" y="0" width="${width}" height="${height + 40}" fill="${config.colors.background}" rx="8"/>`;
|
|
1242
|
+
if (title) {
|
|
1243
|
+
svg += `<text x="${width / 2}" y="20" text-anchor="middle" fill="${config.colors.nodeText}" font-family="Inter, sans-serif" font-size="14px" font-weight="600">${escapeXml(title)}</text>`;
|
|
1244
|
+
}
|
|
1245
|
+
const offsetY = title ? 30 : 0;
|
|
1246
|
+
svg += `<g transform="translate(0, ${offsetY})">`;
|
|
1247
|
+
if (entity) {
|
|
1248
|
+
svg += drawEntityInputSvg(entity, 20, height / 2);
|
|
1249
|
+
}
|
|
1250
|
+
const drawnPairs = /* @__PURE__ */ new Set();
|
|
1251
|
+
transitions.forEach((transition) => {
|
|
1252
|
+
const pairKey = `${transition.from}->${transition.to}`;
|
|
1253
|
+
if (!drawnPairs.has(pairKey)) {
|
|
1254
|
+
drawnPairs.add(pairKey);
|
|
1255
|
+
svg += drawTransitionPathSvg(transition.from, transition.to, transitions, positions, config);
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1258
|
+
for (const [name, pos] of Object.entries(positions)) {
|
|
1259
|
+
svg += drawStateSvg(name, pos.x, pos.y, pos.state, config);
|
|
1260
|
+
}
|
|
1261
|
+
drawnPairs.clear();
|
|
1262
|
+
transitions.forEach((transition) => {
|
|
1263
|
+
const pairKey = `${transition.from}->${transition.to}`;
|
|
1264
|
+
if (!drawnPairs.has(pairKey)) {
|
|
1265
|
+
drawnPairs.add(pairKey);
|
|
1266
|
+
svg += drawTransitionLabelsSvg(transition.from, transition.to, transitions, positions, config);
|
|
1267
|
+
}
|
|
1268
|
+
});
|
|
1269
|
+
if (outputs.length > 0) {
|
|
1270
|
+
const maxX = Math.max(...Object.values(positions).map((p) => p.x));
|
|
1271
|
+
svg += drawOutputsSvg(outputs, maxX + config.nodeRadius + 60, height / 2);
|
|
1272
|
+
}
|
|
1273
|
+
svg += `</g>`;
|
|
1274
|
+
svg += drawLegendSvg(height + 25, config);
|
|
1275
|
+
svg += `</svg>`;
|
|
1276
|
+
return svg;
|
|
1277
|
+
}
|
|
1278
|
+
function extractStateMachine(data) {
|
|
1279
|
+
if (!data || typeof data !== "object") return null;
|
|
1280
|
+
const obj = data;
|
|
1281
|
+
if (obj.states && obj.transitions) {
|
|
1282
|
+
return { states: obj.states, transitions: obj.transitions };
|
|
1283
|
+
}
|
|
1284
|
+
if (obj.stateMachine) {
|
|
1285
|
+
return obj.stateMachine;
|
|
1286
|
+
}
|
|
1287
|
+
if (Array.isArray(obj.traits)) {
|
|
1288
|
+
const traitWithSM = obj.traits.find((t) => t.stateMachine != null);
|
|
1289
|
+
if (traitWithSM?.stateMachine) {
|
|
1290
|
+
return traitWithSM.stateMachine;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
return null;
|
|
1294
|
+
}
|
|
1295
|
+
function calculateTransitionPathData(from, to, transitions, positions, config) {
|
|
1296
|
+
const fromPos = positions[from];
|
|
1297
|
+
const toPos = positions[to];
|
|
1298
|
+
if (!fromPos || !toPos) return null;
|
|
1299
|
+
const relevantTransitions = transitions.filter((t) => t.from === from && t.to === to);
|
|
1300
|
+
if (relevantTransitions.length === 0) return null;
|
|
1301
|
+
const fromRadius = getNodeRadius(from, config);
|
|
1302
|
+
const toRadius = getNodeRadius(to, config);
|
|
1303
|
+
if (from === to) {
|
|
1304
|
+
const loopRadius = 50;
|
|
1305
|
+
const cx = fromPos.x;
|
|
1306
|
+
const cy = fromPos.y - fromRadius - loopRadius;
|
|
1307
|
+
const startAngle = -0.5;
|
|
1308
|
+
const endAngle = 0.5;
|
|
1309
|
+
const startX2 = fromPos.x + Math.cos(-Math.PI / 2 + startAngle) * fromRadius;
|
|
1310
|
+
const startY2 = fromPos.y + Math.sin(-Math.PI / 2 + startAngle) * fromRadius;
|
|
1311
|
+
const endX2 = fromPos.x + Math.cos(-Math.PI / 2 + endAngle) * fromRadius;
|
|
1312
|
+
const endY2 = fromPos.y + Math.sin(-Math.PI / 2 + endAngle) * fromRadius;
|
|
1313
|
+
const pathData = `M ${startX2} ${startY2} A ${loopRadius} ${loopRadius} 0 1 1 ${endX2} ${endY2}`;
|
|
1314
|
+
return {
|
|
1315
|
+
pathData,
|
|
1316
|
+
labelX: cx,
|
|
1317
|
+
labelY: cy - loopRadius * 0.5
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
const dx = toPos.x - fromPos.x;
|
|
1321
|
+
const dy = toPos.y - fromPos.y;
|
|
1322
|
+
const dist = Math.sqrt(dx * dx + dy * dy);
|
|
1323
|
+
if (dist === 0) return null;
|
|
1324
|
+
const nx = dx / dist;
|
|
1325
|
+
const ny = dy / dist;
|
|
1326
|
+
const startX = fromPos.x + nx * fromRadius;
|
|
1327
|
+
const startY = fromPos.y + ny * fromRadius;
|
|
1328
|
+
const endX = toPos.x - nx * (toRadius + 5);
|
|
1329
|
+
const endY = toPos.y - ny * (toRadius + 5);
|
|
1330
|
+
const hasReverse = transitions.some((t) => t.from === to && t.to === from);
|
|
1331
|
+
const isReverse = hasReverse && from > to;
|
|
1332
|
+
const baseOffset = hasReverse ? 50 : 30;
|
|
1333
|
+
const curveOffset = baseOffset + (relevantTransitions.length > 1 ? 20 : 0);
|
|
1334
|
+
const curveDirection = isReverse ? 1 : -1;
|
|
1335
|
+
const midX = (startX + endX) / 2;
|
|
1336
|
+
const midY = (startY + endY) / 2 + curveOffset * curveDirection;
|
|
1337
|
+
return {
|
|
1338
|
+
pathData: `M ${startX} ${startY} Q ${midX} ${midY} ${endX} ${endY}`,
|
|
1339
|
+
labelX: midX,
|
|
1340
|
+
labelY: midY + curveDirection * 5
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
function renderStateMachineToDomData(stateMachine, options = {}, config = DEFAULT_CONFIG) {
|
|
1344
|
+
const states = stateMachine.states || [];
|
|
1345
|
+
const transitions = stateMachine.transitions || [];
|
|
1346
|
+
const title = options.title || "";
|
|
1347
|
+
const entity = options.entity;
|
|
1348
|
+
const outputs = extractOutputsFromTransitions(transitions);
|
|
1349
|
+
const layoutOptions = {
|
|
1350
|
+
hasEntity: !!entity,
|
|
1351
|
+
hasOutputs: outputs.length > 0
|
|
1352
|
+
};
|
|
1353
|
+
const { positions, width, height } = calculateLayout(states, transitions, layoutOptions, config);
|
|
1354
|
+
const domStates = Object.entries(positions).map(([name, pos]) => ({
|
|
1355
|
+
id: `state-${name}`,
|
|
1356
|
+
name,
|
|
1357
|
+
x: pos.x,
|
|
1358
|
+
y: pos.y,
|
|
1359
|
+
radius: getNodeRadius(name, config),
|
|
1360
|
+
isInitial: pos.state.isInitial ?? false,
|
|
1361
|
+
isFinal: pos.state.isFinal ?? false,
|
|
1362
|
+
description: pos.state.description
|
|
1363
|
+
}));
|
|
1364
|
+
const domPaths = [];
|
|
1365
|
+
const domLabels = [];
|
|
1366
|
+
const drawnPairs = /* @__PURE__ */ new Set();
|
|
1367
|
+
transitions.forEach((transition, idx) => {
|
|
1368
|
+
const pairKey = `${transition.from}->${transition.to}`;
|
|
1369
|
+
if (!drawnPairs.has(pairKey)) {
|
|
1370
|
+
drawnPairs.add(pairKey);
|
|
1371
|
+
const pathData2 = calculateTransitionPathData(
|
|
1372
|
+
transition.from,
|
|
1373
|
+
transition.to,
|
|
1374
|
+
transitions,
|
|
1375
|
+
positions,
|
|
1376
|
+
config
|
|
1377
|
+
);
|
|
1378
|
+
if (pathData2) {
|
|
1379
|
+
domPaths.push({
|
|
1380
|
+
id: `path-${transition.from}-${transition.to}`,
|
|
1381
|
+
from: transition.from,
|
|
1382
|
+
to: transition.to,
|
|
1383
|
+
pathData: pathData2.pathData,
|
|
1384
|
+
labelX: pathData2.labelX,
|
|
1385
|
+
labelY: pathData2.labelY
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
const guardText = transition.guard ? formatGuardHuman(transition.guard) : void 0;
|
|
1390
|
+
const effectTexts = transition.effects ? formatEffectsHuman(transition.effects) : [];
|
|
1391
|
+
const hasDetails = !!guardText || effectTexts.length > 0;
|
|
1392
|
+
const pathData = calculateTransitionPathData(
|
|
1393
|
+
transition.from,
|
|
1394
|
+
transition.to,
|
|
1395
|
+
transitions,
|
|
1396
|
+
positions,
|
|
1397
|
+
config
|
|
1398
|
+
);
|
|
1399
|
+
if (pathData) {
|
|
1400
|
+
const sameEventIndex = domLabels.filter(
|
|
1401
|
+
(l) => l.from === transition.from && l.to === transition.to
|
|
1402
|
+
).length;
|
|
1403
|
+
const labelOffset = sameEventIndex * 60;
|
|
1404
|
+
domLabels.push({
|
|
1405
|
+
id: `label-${transition.from}-${transition.to}-${idx}`,
|
|
1406
|
+
from: transition.from,
|
|
1407
|
+
to: transition.to,
|
|
1408
|
+
event: transition.event,
|
|
1409
|
+
x: pathData.labelX,
|
|
1410
|
+
y: pathData.labelY + labelOffset,
|
|
1411
|
+
guardText,
|
|
1412
|
+
effectTexts,
|
|
1413
|
+
hasDetails
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
});
|
|
1417
|
+
let domEntity;
|
|
1418
|
+
if (entity) {
|
|
1419
|
+
const fieldCount = entity.fields ? entity.fields.length : 0;
|
|
1420
|
+
const boxWidth = 160;
|
|
1421
|
+
const boxHeight = Math.max(80, fieldCount * 22 + 50);
|
|
1422
|
+
domEntity = {
|
|
1423
|
+
name: entity.name || "Entity",
|
|
1424
|
+
fields: entity.fields?.map((f) => typeof f === "string" ? f : f.name) || [],
|
|
1425
|
+
x: 20,
|
|
1426
|
+
y: height / 2 - boxHeight / 2,
|
|
1427
|
+
width: boxWidth,
|
|
1428
|
+
height: boxHeight
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
let domOutputs;
|
|
1432
|
+
if (outputs.length > 0) {
|
|
1433
|
+
const maxX = Math.max(...Object.values(positions).map((p) => p.x));
|
|
1434
|
+
const maxOutputLength = Math.max(...outputs.map((o) => o.length));
|
|
1435
|
+
const boxWidth = Math.max(200, maxOutputLength * 7 + 30);
|
|
1436
|
+
const lineHeight = 22;
|
|
1437
|
+
const boxHeight = outputs.length * lineHeight + 50;
|
|
1438
|
+
domOutputs = {
|
|
1439
|
+
outputs,
|
|
1440
|
+
x: maxX + config.nodeRadius + 300,
|
|
1441
|
+
y: height / 2 - boxHeight / 2,
|
|
1442
|
+
width: boxWidth,
|
|
1443
|
+
height: boxHeight
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
return {
|
|
1447
|
+
width,
|
|
1448
|
+
height: height + 40,
|
|
1449
|
+
title: title || void 0,
|
|
1450
|
+
states: domStates,
|
|
1451
|
+
paths: domPaths,
|
|
1452
|
+
labels: domLabels,
|
|
1453
|
+
entity: domEntity,
|
|
1454
|
+
outputs: domOutputs,
|
|
1455
|
+
config
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
// lib/parseContentSegments.ts
|
|
1460
|
+
function tryParseOrbitalSchema(code) {
|
|
1461
|
+
try {
|
|
1462
|
+
const parsed = JSON.parse(code);
|
|
1463
|
+
if (typeof parsed !== "object" || parsed === null) return null;
|
|
1464
|
+
if ("states" in parsed && "transitions" in parsed || Array.isArray(parsed.orbitals)) {
|
|
1465
|
+
return parsed;
|
|
1466
|
+
}
|
|
1467
|
+
} catch {
|
|
1468
|
+
}
|
|
1469
|
+
return null;
|
|
1470
|
+
}
|
|
1471
|
+
function parseMarkdownWithCodeBlocks(content) {
|
|
1472
|
+
if (!content) return [];
|
|
1473
|
+
const segments = [];
|
|
1474
|
+
const codeBlockRegex = /```(\w+)?\n([\s\S]*?)```/g;
|
|
1475
|
+
let lastIndex = 0;
|
|
1476
|
+
let match;
|
|
1477
|
+
while ((match = codeBlockRegex.exec(content)) !== null) {
|
|
1478
|
+
const before = content.slice(lastIndex, match.index);
|
|
1479
|
+
if (before.trim()) {
|
|
1480
|
+
segments.push({ type: "markdown", content: before });
|
|
1481
|
+
}
|
|
1482
|
+
const language = match[1] || "text";
|
|
1483
|
+
const code = match[2].trim();
|
|
1484
|
+
if (language === "json" || language === "orb") {
|
|
1485
|
+
const schema = tryParseOrbitalSchema(code);
|
|
1486
|
+
if (schema) {
|
|
1487
|
+
segments.push({ type: "orbital", language, content: code, schema });
|
|
1488
|
+
lastIndex = codeBlockRegex.lastIndex;
|
|
1489
|
+
continue;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
segments.push({ type: "code", language, content: code });
|
|
1493
|
+
lastIndex = codeBlockRegex.lastIndex;
|
|
1494
|
+
}
|
|
1495
|
+
const remaining = content.slice(lastIndex);
|
|
1496
|
+
if (remaining.trim()) {
|
|
1497
|
+
segments.push({ type: "markdown", content: remaining });
|
|
1498
|
+
}
|
|
1499
|
+
return segments;
|
|
1500
|
+
}
|
|
1501
|
+
function parseContentSegments(content) {
|
|
1502
|
+
if (!content) return [];
|
|
1503
|
+
const segments = [];
|
|
1504
|
+
const tagRegex = /<question>([\s\S]*?)<\/question>\s*<answer>([\s\S]*?)<\/answer>/gi;
|
|
1505
|
+
let lastIndex = 0;
|
|
1506
|
+
let match;
|
|
1507
|
+
while ((match = tagRegex.exec(content)) !== null) {
|
|
1508
|
+
const before = content.slice(lastIndex, match.index);
|
|
1509
|
+
if (before.trim()) {
|
|
1510
|
+
segments.push(...parseMarkdownWithCodeBlocks(before));
|
|
1511
|
+
}
|
|
1512
|
+
segments.push({
|
|
1513
|
+
type: "quiz",
|
|
1514
|
+
question: match[1].trim(),
|
|
1515
|
+
answer: match[2].trim()
|
|
1516
|
+
});
|
|
1517
|
+
lastIndex = tagRegex.lastIndex;
|
|
1518
|
+
}
|
|
1519
|
+
const remaining = content.slice(lastIndex);
|
|
1520
|
+
if (remaining.trim()) {
|
|
1521
|
+
segments.push(...parseMarkdownWithCodeBlocks(remaining));
|
|
1522
|
+
}
|
|
1523
|
+
return segments;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
exports.ApiError = ApiError;
|
|
1527
|
+
exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
|
|
1528
|
+
exports.apiClient = apiClient;
|
|
1529
|
+
exports.bindCanvasCapture = bindCanvasCapture;
|
|
1530
|
+
exports.bindEventBus = bindEventBus;
|
|
1531
|
+
exports.bindTraitStateGetter = bindTraitStateGetter;
|
|
1532
|
+
exports.clearDebugEvents = clearDebugEvents;
|
|
1533
|
+
exports.clearEntityProvider = clearEntityProvider;
|
|
1534
|
+
exports.clearGuardHistory = clearGuardHistory;
|
|
1535
|
+
exports.clearTicks = clearTicks;
|
|
1536
|
+
exports.clearTraits = clearTraits;
|
|
1537
|
+
exports.clearVerification = clearVerification;
|
|
1538
|
+
exports.cn = cn;
|
|
1539
|
+
exports.debug = debug;
|
|
1540
|
+
exports.debugCollision = debugCollision;
|
|
1541
|
+
exports.debugError = debugError;
|
|
1542
|
+
exports.debugGameState = debugGameState;
|
|
1543
|
+
exports.debugGroup = debugGroup;
|
|
1544
|
+
exports.debugGroupEnd = debugGroupEnd;
|
|
1545
|
+
exports.debugInput = debugInput;
|
|
1546
|
+
exports.debugPhysics = debugPhysics;
|
|
1547
|
+
exports.debugTable = debugTable;
|
|
1548
|
+
exports.debugTime = debugTime;
|
|
1549
|
+
exports.debugTimeEnd = debugTimeEnd;
|
|
1550
|
+
exports.debugWarn = debugWarn;
|
|
1551
|
+
exports.extractOutputsFromTransitions = extractOutputsFromTransitions;
|
|
1552
|
+
exports.extractStateMachine = extractStateMachine;
|
|
1553
|
+
exports.formatGuard = formatGuard;
|
|
1554
|
+
exports.formatNestedFieldLabel = formatNestedFieldLabel;
|
|
1555
|
+
exports.getAllChecks = getAllChecks;
|
|
1556
|
+
exports.getAllTicks = getAllTicks;
|
|
1557
|
+
exports.getAllTraits = getAllTraits;
|
|
1558
|
+
exports.getBridgeHealth = getBridgeHealth;
|
|
1559
|
+
exports.getDebugEvents = getDebugEvents;
|
|
1560
|
+
exports.getEffectSummary = getEffectSummary;
|
|
1561
|
+
exports.getEntitiesByType = getEntitiesByType;
|
|
1562
|
+
exports.getEntityById = getEntityById;
|
|
1563
|
+
exports.getEntitySnapshot = getEntitySnapshot;
|
|
1564
|
+
exports.getEventsBySource = getEventsBySource;
|
|
1565
|
+
exports.getEventsByType = getEventsByType;
|
|
1566
|
+
exports.getGuardEvaluationsForTrait = getGuardEvaluationsForTrait;
|
|
1567
|
+
exports.getGuardHistory = getGuardHistory;
|
|
1568
|
+
exports.getNestedValue = getNestedValue;
|
|
1569
|
+
exports.getRecentEvents = getRecentEvents;
|
|
1570
|
+
exports.getRecentGuardEvaluations = getRecentGuardEvaluations;
|
|
1571
|
+
exports.getSnapshot = getSnapshot;
|
|
1572
|
+
exports.getSummary = getSummary;
|
|
1573
|
+
exports.getTick = getTick;
|
|
1574
|
+
exports.getTrait = getTrait;
|
|
1575
|
+
exports.getTraitSnapshots = getTraitSnapshots;
|
|
1576
|
+
exports.getTransitions = getTransitions;
|
|
1577
|
+
exports.getTransitionsForTrait = getTransitionsForTrait;
|
|
1578
|
+
exports.initDebugShortcut = initDebugShortcut;
|
|
1579
|
+
exports.isDebugEnabled = isDebugEnabled;
|
|
1580
|
+
exports.logDebugEvent = logDebugEvent;
|
|
1581
|
+
exports.logEffectExecuted = logEffectExecuted;
|
|
1582
|
+
exports.logError = logError;
|
|
1583
|
+
exports.logEventFired = logEventFired;
|
|
1584
|
+
exports.logInfo = logInfo;
|
|
1585
|
+
exports.logStateChange = logStateChange;
|
|
1586
|
+
exports.logWarning = logWarning;
|
|
1587
|
+
exports.onDebugToggle = onDebugToggle;
|
|
1588
|
+
exports.parseContentSegments = parseContentSegments;
|
|
1589
|
+
exports.parseMarkdownWithCodeBlocks = parseMarkdownWithCodeBlocks;
|
|
1590
|
+
exports.recordGuardEvaluation = recordGuardEvaluation;
|
|
1591
|
+
exports.recordServerResponse = recordServerResponse;
|
|
1592
|
+
exports.recordTransition = recordTransition;
|
|
1593
|
+
exports.registerCheck = registerCheck;
|
|
1594
|
+
exports.registerTick = registerTick;
|
|
1595
|
+
exports.registerTrait = registerTrait;
|
|
1596
|
+
exports.registerTraitSnapshot = registerTraitSnapshot;
|
|
1597
|
+
exports.renderStateMachineToDomData = renderStateMachineToDomData;
|
|
1598
|
+
exports.renderStateMachineToSvg = renderStateMachineToSvg;
|
|
1599
|
+
exports.setDebugEnabled = setDebugEnabled;
|
|
1600
|
+
exports.setEntityProvider = setEntityProvider;
|
|
1601
|
+
exports.setTickActive = setTickActive;
|
|
1602
|
+
exports.subscribeToDebugEvents = subscribeToDebugEvents;
|
|
1603
|
+
exports.subscribeToGuardChanges = subscribeToGuardChanges;
|
|
1604
|
+
exports.subscribeToTickChanges = subscribeToTickChanges;
|
|
1605
|
+
exports.subscribeToTraitChanges = subscribeToTraitChanges;
|
|
1606
|
+
exports.subscribeToVerification = subscribeToVerification;
|
|
1607
|
+
exports.toggleDebug = toggleDebug;
|
|
1608
|
+
exports.unregisterTick = unregisterTick;
|
|
1609
|
+
exports.unregisterTrait = unregisterTrait;
|
|
1610
|
+
exports.updateAssetStatus = updateAssetStatus;
|
|
1611
|
+
exports.updateBridgeHealth = updateBridgeHealth;
|
|
1612
|
+
exports.updateCheck = updateCheck;
|
|
1613
|
+
exports.updateGuardResult = updateGuardResult;
|
|
1614
|
+
exports.updateTickExecution = updateTickExecution;
|
|
1615
|
+
exports.updateTraitState = updateTraitState;
|
|
1616
|
+
exports.waitForTransition = waitForTransition;
|