@almadar/ui 5.75.0 → 5.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avl/index.cjs +2545 -6006
- package/dist/avl/index.d.ts +43 -43
- package/dist/avl/index.js +1250 -4711
- package/dist/components/avl/atoms/AvlApplication.d.ts +1 -1
- package/dist/components/avl/atoms/AvlBindingRef.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEffect.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEntity.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEvent.d.ts +1 -1
- package/dist/components/avl/atoms/AvlField.d.ts +1 -1
- package/dist/components/avl/atoms/AvlFieldType.d.ts +1 -1
- package/dist/components/avl/atoms/AvlGuard.d.ts +1 -1
- package/dist/components/avl/atoms/AvlLiteral.d.ts +1 -1
- package/dist/components/avl/atoms/AvlOperator.d.ts +1 -1
- package/dist/components/avl/atoms/AvlPage.d.ts +1 -1
- package/dist/components/avl/atoms/AvlPersistence.d.ts +1 -1
- package/dist/components/avl/atoms/AvlSExpr.d.ts +1 -1
- package/dist/components/avl/atoms/AvlState.d.ts +2 -2
- package/dist/components/avl/atoms/index.d.ts +4 -4
- package/dist/components/avl/{molecules → lib}/avl-behavior-compose-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-elk-layout.d.ts +2 -2
- package/dist/components/avl/{molecules → lib}/avl-flow-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-preview-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-story-schemas.d.ts +6 -6
- package/dist/components/avl/{molecules → lib}/avl-zoom-band.d.ts +1 -1
- package/dist/components/avl/molecules/Avl3DExprTree.d.ts +1 -1
- package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +1 -1
- package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +1 -1
- package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +1 -1
- package/dist/components/avl/molecules/AvlStateMachine.d.ts +1 -1
- package/dist/components/avl/molecules/AvlTransitionLane.d.ts +1 -1
- package/dist/components/avl/molecules/BehaviorView.d.ts +1 -1
- package/dist/components/avl/molecules/DetailView.d.ts +1 -1
- package/dist/components/avl/molecules/MiniStateMachine.d.ts +1 -1
- package/dist/components/avl/molecules/ModuleCard.d.ts +1 -1
- package/dist/components/avl/molecules/OrbPreviewNode.d.ts +1 -1
- package/dist/components/avl/molecules/SystemNode.d.ts +1 -1
- package/dist/components/avl/molecules/index.d.ts +9 -9
- package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DEffects.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DViewer.d.ts +2 -2
- package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +1 -1
- package/dist/components/avl/organisms/AvlLegend.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTraitScene.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTransitionScene.d.ts +1 -1
- package/dist/components/avl/organisms/FlowCanvas.d.ts +2 -2
- package/dist/components/avl/organisms/OrbInspector.d.ts +1 -1
- package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +1 -1
- package/dist/components/avl/organisms/ZoomLegend.d.ts +1 -1
- package/dist/components/avl/organisms/index.d.ts +2 -2
- package/dist/components/avl/{molecules → types}/avl-behavior-compose-types.d.ts +1 -1
- package/dist/components/avl/{molecules → types}/avl-canvas-types.d.ts +1 -1
- package/dist/components/core/atoms/index.d.ts +2 -3
- package/dist/components/core/molecules/Breadcrumb.d.ts +1 -1
- package/dist/components/core/molecules/Card.d.ts +1 -1
- package/dist/components/core/molecules/Chart.d.ts +0 -2
- package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -2
- package/dist/components/core/molecules/DataGrid.d.ts +1 -1
- package/dist/components/core/molecules/DataList.d.ts +1 -1
- package/dist/components/core/molecules/EmptyState.d.ts +1 -1
- package/dist/components/core/molecules/FloatingActionButton.d.ts +1 -1
- package/dist/components/core/molecules/FormSectionHeader.d.ts +1 -1
- package/dist/components/core/molecules/GraphCanvas.d.ts +0 -2
- package/dist/components/core/molecules/Header.d.ts +1 -1
- package/dist/components/core/molecules/Menu.d.ts +1 -1
- package/dist/components/core/molecules/Navigation.d.ts +1 -1
- package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -2
- package/dist/components/core/molecules/PageHeader.d.ts +1 -1
- package/dist/components/core/molecules/Section.d.ts +0 -2
- package/dist/components/core/molecules/Sidebar.d.ts +1 -1
- package/dist/components/core/molecules/SignaturePad.d.ts +0 -2
- package/dist/components/core/molecules/Split.d.ts +0 -2
- package/dist/components/core/molecules/StatDisplay.d.ts +1 -1
- package/dist/components/core/molecules/SwipeableRow.d.ts +1 -1
- package/dist/components/core/molecules/TableView.d.ts +1 -1
- package/dist/components/core/molecules/Tabs.d.ts +1 -1
- package/dist/components/core/molecules/UploadDropZone.d.ts +1 -1
- package/dist/components/core/molecules/WizardContainer.d.ts +0 -2
- package/dist/components/core/molecules/index.d.ts +1 -1
- package/dist/components/core/organisms/UISlotRenderer.d.ts +1 -1
- package/dist/components/core/organisms/index.d.ts +4 -4
- package/dist/components/core/templates/index.d.ts +12 -12
- package/dist/components/game/2d/{ActionButton.d.ts → atoms/ActionButton.d.ts} +1 -1
- package/dist/components/game/2d/{ChoiceButton.d.ts → atoms/ChoiceButton.d.ts} +1 -1
- package/dist/components/game/2d/{ControlButton.d.ts → atoms/ControlButton.d.ts} +1 -1
- package/dist/components/game/2d/{GameAudioToggle.d.ts → atoms/GameAudioToggle.d.ts} +1 -3
- package/dist/components/game/2d/atoms/GameIcon.d.ts +18 -0
- package/dist/components/game/2d/{ItemSlot.d.ts → atoms/ItemSlot.d.ts} +1 -1
- package/dist/components/game/2d/{MiniMap.d.ts → atoms/MiniMap.d.ts} +1 -1
- package/dist/components/game/2d/{ResourceCounter.d.ts → atoms/ResourceCounter.d.ts} +2 -2
- package/dist/components/game/2d/{ScoreDisplay.d.ts → atoms/ScoreDisplay.d.ts} +1 -1
- package/dist/components/game/2d/{Sprite.d.ts → atoms/Sprite.d.ts} +1 -1
- package/dist/components/game/2d/{StateIndicator.d.ts → atoms/StateIndicator.d.ts} +5 -4
- package/dist/components/game/2d/{StatusEffect.d.ts → atoms/StatusEffect.d.ts} +2 -2
- package/dist/components/game/2d/{WaypointMarker.d.ts → atoms/WaypointMarker.d.ts} +1 -1
- package/dist/components/game/2d/{Canvas2D.d.ts → molecules/Canvas2D.d.ts} +3 -3
- package/dist/components/game/2d/{ControlGrid.d.ts → molecules/ControlGrid.d.ts} +3 -2
- package/dist/components/game/2d/{GameHud.d.ts → molecules/GameHud.d.ts} +3 -1
- package/dist/components/game/2d/{GameMenu.d.ts → molecules/GameMenu.d.ts} +1 -1
- package/dist/components/game/2d/{InventoryGrid.d.ts → molecules/InventoryGrid.d.ts} +3 -2
- package/dist/components/game/2d/{ResourceBar.d.ts → molecules/ResourceBar.d.ts} +3 -1
- package/dist/components/game/2d/{StatBadge.d.ts → molecules/StatBadge.d.ts} +1 -1
- package/dist/components/game/2d/molecules/index.d.ts +107 -0
- package/dist/components/game/2d/{ActionTile.d.ts → organisms/ActionTile.d.ts} +1 -1
- package/dist/components/game/2d/{BattleBoard.d.ts → organisms/BattleBoard.d.ts} +4 -3
- package/dist/components/game/2d/{BoardgameBoard.d.ts → organisms/BoardgameBoard.d.ts} +3 -3
- package/dist/components/game/2d/{BuilderBoard.d.ts → organisms/BuilderBoard.d.ts} +7 -3
- package/dist/components/game/2d/{CanvasEffect.d.ts → organisms/CanvasEffect.d.ts} +4 -4
- package/dist/components/game/2d/{CardBattlerBoard.d.ts → organisms/CardBattlerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{CastleBoard.d.ts → organisms/CastleBoard.d.ts} +2 -1
- package/dist/components/game/2d/{CityBuilderBoard.d.ts → organisms/CityBuilderBoard.d.ts} +1 -1
- package/dist/components/game/2d/{ClassifierBoard.d.ts → organisms/ClassifierBoard.d.ts} +7 -3
- package/dist/components/game/2d/{DebuggerBoard.d.ts → organisms/DebuggerBoard.d.ts} +7 -3
- package/dist/components/game/2d/{EventHandlerBoard.d.ts → organisms/EventHandlerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{FishingBoard.d.ts → organisms/FishingBoard.d.ts} +12 -2
- package/dist/components/game/2d/{HexStrategyBoard.d.ts → organisms/HexStrategyBoard.d.ts} +13 -6
- package/dist/components/game/2d/{HolidayRunnerBoard.d.ts → organisms/HolidayRunnerBoard.d.ts} +3 -3
- package/dist/components/game/2d/{MatchPuzzleBoard.d.ts → organisms/MatchPuzzleBoard.d.ts} +3 -3
- package/dist/components/game/2d/{MinigolfBoard.d.ts → organisms/MinigolfBoard.d.ts} +3 -3
- package/dist/components/game/2d/{NegotiatorBoard.d.ts → organisms/NegotiatorBoard.d.ts} +7 -3
- package/dist/components/game/2d/{PinballBoard.d.ts → organisms/PinballBoard.d.ts} +12 -4
- package/dist/components/game/2d/{PirateBoard.d.ts → organisms/PirateBoard.d.ts} +13 -6
- package/dist/components/game/2d/{PlatformerBoard.d.ts → organisms/PlatformerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{RacingBoard.d.ts → organisms/RacingBoard.d.ts} +13 -6
- package/dist/components/game/2d/{RoguelikeBoard.d.ts → organisms/RoguelikeBoard.d.ts} +2 -2
- package/dist/components/game/2d/{SequencerBoard.d.ts → organisms/SequencerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{SimulationCanvas.d.ts → organisms/SimulationCanvas.d.ts} +3 -2
- package/dist/components/game/2d/{SimulationControls.d.ts → organisms/SimulationControls.d.ts} +6 -1
- package/dist/components/game/2d/{SimulatorBoard.d.ts → organisms/SimulatorBoard.d.ts} +7 -3
- package/dist/components/game/2d/{SokobanBoard.d.ts → organisms/SokobanBoard.d.ts} +3 -3
- package/dist/components/game/2d/{SpaceShmupBoard.d.ts → organisms/SpaceShmupBoard.d.ts} +13 -6
- package/dist/components/game/2d/{SpaceStationBoard.d.ts → organisms/SpaceStationBoard.d.ts} +3 -3
- package/dist/components/game/2d/{SportsBoard.d.ts → organisms/SportsBoard.d.ts} +3 -3
- package/dist/components/game/2d/{StateArchitectBoard.d.ts → organisms/StateArchitectBoard.d.ts} +1 -1
- package/dist/components/game/2d/{StateNode.d.ts → organisms/StateNode.d.ts} +1 -1
- package/dist/components/game/2d/{TanksBoard.d.ts → organisms/TanksBoard.d.ts} +3 -3
- package/dist/components/game/2d/{TowerDefenseBoard.d.ts → organisms/TowerDefenseBoard.d.ts} +1 -1
- package/dist/components/game/2d/{TraitSlot.d.ts → organisms/TraitSlot.d.ts} +1 -1
- package/dist/components/game/2d/{TraitStateViewer.d.ts → organisms/TraitStateViewer.d.ts} +2 -2
- package/dist/components/game/2d/{TransitionArrow.d.ts → organisms/TransitionArrow.d.ts} +1 -1
- package/dist/components/game/2d/{UncontrolledBattleBoard.d.ts → organisms/UncontrolledBattleBoard.d.ts} +1 -1
- package/dist/components/game/2d/{VisualNovelBoard.d.ts → organisms/VisualNovelBoard.d.ts} +1 -9
- package/dist/components/game/2d/{WorldMapBoard.d.ts → organisms/WorldMapBoard.d.ts} +4 -3
- package/dist/components/game/2d/{BattleTemplate.d.ts → templates/BattleTemplate.d.ts} +4 -4
- package/dist/components/game/2d/{CardBattlerTemplate.d.ts → templates/CardBattlerTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{CastleTemplate.d.ts → templates/CastleTemplate.d.ts} +4 -4
- package/dist/components/game/2d/{CityBuilderTemplate.d.ts → templates/CityBuilderTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{GameTemplate.d.ts → templates/GameTemplate.d.ts} +1 -1
- package/dist/components/game/2d/{PlatformerTemplate.d.ts → templates/PlatformerTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{RoguelikeTemplate.d.ts → templates/RoguelikeTemplate.d.ts} +3 -3
- package/dist/components/game/2d/{TopDownShooterTemplate.d.ts → templates/TopDownShooterTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{TowerDefenseTemplate.d.ts → templates/TowerDefenseTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{VisualNovelTemplate.d.ts → templates/VisualNovelTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{WorldMapTemplate.d.ts → templates/WorldMapTemplate.d.ts} +4 -4
- package/dist/components/game/3d/{Canvas3D.d.ts → molecules/Canvas3D.d.ts} +1 -1
- package/dist/components/game/3d/{GameCanvas3D.d.ts → molecules/GameCanvas3D.d.ts} +3 -3
- package/dist/components/game/3d/{index.d.ts → molecules/index.d.ts} +20 -25
- package/dist/components/game/3d/{GameBoard3D.d.ts → organisms/GameBoard3D.d.ts} +2 -2
- package/dist/components/game/3d/{GameCanvas3DBattleTemplate.d.ts → templates/GameCanvas3DBattleTemplate.d.ts} +3 -3
- package/dist/components/game/3d/{GameCanvas3DCastleTemplate.d.ts → templates/GameCanvas3DCastleTemplate.d.ts} +3 -3
- package/dist/components/game/3d/{GameCanvas3DWorldMapTemplate.d.ts → templates/GameCanvas3DWorldMapTemplate.d.ts} +3 -3
- package/dist/components/game/{3d → shared/hooks}/useAssetLoader.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useBattleState.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useCamera.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useCanvasEffects.d.ts +1 -1
- package/dist/components/game/{3d → shared/hooks}/useGameCanvas3DEvents.d.ts +1 -1
- package/dist/components/game/{3d → shared/hooks}/useThree.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useUnitSpriteAtlas.d.ts +2 -2
- package/dist/components/game/shared/index.d.ts +0 -2
- package/dist/components/game/{2d → shared/lib}/editorUtils.d.ts +6 -1
- package/dist/components/game/{2d → shared/lib}/game3dAssetManifest.d.ts +1 -1
- package/dist/components/game/{2d → shared/lib}/mechanics.d.ts +1 -1
- package/dist/components/game/{2d → shared/lib}/physicsPresets.d.ts +2 -2
- package/dist/components/game/{2d → shared/lib}/puzzleObject.d.ts +1 -1
- package/dist/components/game/{2d → shared/providers}/GameAudioProvider.d.ts +3 -4
- package/dist/components/index.cjs +4459 -5117
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +3378 -4061
- package/dist/context/index.cjs +93 -827
- package/dist/context/index.d.ts +8 -8
- package/dist/context/index.js +3 -807
- package/dist/hooks/index.cjs +9 -278
- package/dist/hooks/index.d.ts +5 -6
- package/dist/hooks/index.js +11 -262
- package/dist/hooks/useAgentChat.d.ts +7 -6
- package/dist/{renderer → hooks}/useClientEffects.d.ts +1 -1
- package/dist/hooks/useCompile.d.ts +2 -6
- package/dist/hooks/useDeepAgentGeneration.d.ts +4 -4
- package/dist/hooks/useEventBus.d.ts +5 -3
- package/dist/hooks/useFileSystem.d.ts +11 -1
- package/dist/hooks/useOrbitalHistory.d.ts +2 -2
- package/dist/hooks/useQuerySingleton.d.ts +5 -4
- package/dist/{runtime → hooks}/useResolvedSchema.d.ts +1 -1
- package/dist/{runtime → hooks}/useTraitStateMachine.d.ts +5 -5
- package/dist/hooks/useUISlots.d.ts +7 -10
- package/dist/lib/api-client.d.ts +4 -3
- package/dist/{renderer → lib}/client-effect-executor.d.ts +4 -15
- package/dist/{runtime → lib}/createClientEffectHandlers.d.ts +4 -4
- package/dist/{renderer → lib}/data-resolver.d.ts +3 -16
- package/dist/lib/debugRegistry.d.ts +8 -7
- package/dist/lib/entityDebug.d.ts +4 -3
- package/dist/lib/getNestedValue.d.ts +15 -3
- package/dist/lib/guardRegistry.d.ts +3 -2
- package/dist/lib/index.cjs +11 -12
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +11 -12
- package/dist/lib/jazari/layout.d.ts +3 -2
- package/dist/{renderer → lib}/offline-executor.d.ts +6 -5
- package/dist/lib/parseContentSegments.d.ts +2 -1
- package/dist/{renderer → lib}/pattern-resolver.d.ts +2 -2
- package/dist/{runtime → lib}/perf.d.ts +0 -2
- package/dist/{renderer → lib}/slot-definitions.d.ts +3 -15
- package/dist/{renderer → lib}/trait-binding-resolver.d.ts +6 -2
- package/dist/lib/visualizer/browser.d.ts +3 -2
- package/dist/lib/visualizer/index.d.ts +6 -5
- package/dist/marketing/index.cjs +6 -6
- package/dist/marketing/index.js +6 -6
- package/dist/{runtime → providers}/EntitySchemaContext.d.ts +0 -4
- package/dist/providers/EventBusProvider.d.ts +3 -2
- package/dist/providers/OfflineModeProvider.d.ts +1 -1
- package/dist/providers/OrbitalProvider.d.ts +5 -4
- package/dist/providers/SelectionProvider.d.ts +6 -5
- package/dist/{runtime → providers}/ServerBridge.d.ts +14 -11
- package/dist/{context → providers}/ThemeContext.d.ts +5 -5
- package/dist/{runtime → providers}/TraitProvider.d.ts +4 -3
- package/dist/{context → providers}/UISlotContext.d.ts +2 -2
- package/dist/{context → providers}/UserContext.d.ts +3 -2
- package/dist/providers/VerificationProvider.d.ts +2 -1
- package/dist/providers/index.cjs +2101 -4930
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +1263 -4092
- package/dist/{renderer → providers}/navigation.d.ts +7 -7
- package/dist/renderer/index.cjs +84 -322
- package/dist/renderer/index.d.ts +12 -12
- package/dist/renderer/index.js +30 -301
- package/dist/runtime/OrbPreview.d.ts +1 -1
- package/dist/runtime/index.cjs +2809 -6315
- package/dist/runtime/index.d.ts +11 -11
- package/dist/runtime/index.js +1740 -5270
- package/dist/{hooks → types}/event-bus-types.d.ts +2 -1
- package/dist/{renderer/types.d.ts → types/renderer-types.d.ts} +14 -28
- package/dist/types/runtime-types.d.ts +21 -0
- package/dist/{runtime/ui → types}/slot-types.d.ts +5 -4
- package/locales/index.ts +1 -1
- package/package.json +4 -21
- package/dist/components/core/atoms/ThemeSelector.d.ts +0 -21
- package/dist/components/game/2d/CardHand.d.ts +0 -35
- package/dist/components/game/2d/CombatLog.d.ts +0 -30
- package/dist/components/game/2d/CraftingRecipe.d.ts +0 -40
- package/dist/components/game/2d/DialogueBox.d.ts +0 -66
- package/dist/components/game/2d/EnemyPlate.d.ts +0 -30
- package/dist/components/game/2d/GameCanvas2D.d.ts +0 -27
- package/dist/components/game/2d/GameOverScreen.d.ts +0 -57
- package/dist/components/game/2d/HealthPanel.d.ts +0 -31
- package/dist/components/game/2d/InventoryPanel.d.ts +0 -58
- package/dist/components/game/2d/IsometricCanvas.d.ts +0 -137
- package/dist/components/game/2d/PlatformerCanvas.d.ts +0 -60
- package/dist/components/game/2d/PowerupSlots.d.ts +0 -26
- package/dist/components/game/2d/QuestTracker.d.ts +0 -20
- package/dist/components/game/2d/ScoreBoard.d.ts +0 -18
- package/dist/components/game/2d/TurnPanel.d.ts +0 -32
- package/dist/components/game/2d/UnitCommandBar.d.ts +0 -25
- package/dist/components/game/2d/index.d.ts +0 -122
- package/dist/components/game/3d/FeatureRenderer.d.ts +0 -38
- package/dist/components/game/3d/FeatureRenderer3D.d.ts +0 -44
- package/dist/components/game/3d/PhysicsObject3D.d.ts +0 -74
- package/dist/components/game/3d/TileRenderer.d.ts +0 -57
- package/dist/components/game/3d/UnitRenderer.d.ts +0 -46
- package/dist/components/game/3d/index.cjs +0 -7715
- package/dist/components/game/3d/index.css +0 -503
- package/dist/components/game/3d/index.js +0 -7633
- package/dist/components/game/3d/patterns.d.ts +0 -20
- package/dist/components/game/shared/combatEffects.d.ts +0 -64
- package/dist/docs/index.cjs +0 -7024
- package/dist/docs/index.css +0 -1252
- package/dist/docs/index.d.cts +0 -574
- package/dist/docs/index.d.ts +0 -29
- package/dist/docs/index.js +0 -6981
- package/dist/hooks/useAgentTrace.d.ts +0 -85
- package/dist/hooks/useEntities.d.ts +0 -52
- package/dist/hooks/usePinchZoom.d.ts +0 -22
- package/dist/runtime/types.d.ts +0 -37
- package/dist/stores/entityStore.d.ts +0 -99
- package/dist/stores/filtering.d.ts +0 -51
- package/dist/stores/index.cjs +0 -217
- package/dist/stores/index.d.ts +0 -7
- package/dist/stores/index.js +0 -194
- /package/dist/components/avl/{molecules → hooks}/useCanvasDnd.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-3d-layout.d.ts +0 -0
- /package/dist/components/avl/{molecules → lib}/avl-layout.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-schema-parser.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-zoom-state.d.ts +0 -0
- /package/dist/components/avl/{derive-edit-focus.d.ts → lib/derive-edit-focus.d.ts} +0 -0
- /package/dist/components/avl/{molecules → lib}/wire-validation.d.ts +0 -0
- /package/dist/components/avl/{organisms → providers}/avl-3d-context.d.ts +0 -0
- /package/dist/components/avl/{atoms/types.d.ts → types/avl-atom-types.d.ts} +0 -0
- /package/dist/components/avl/{molecules → types}/avl-preview-types.d.ts +0 -0
- /package/dist/components/game/2d/{ComboCounter.d.ts → atoms/ComboCounter.d.ts} +0 -0
- /package/dist/components/game/2d/{DamageNumber.d.ts → atoms/DamageNumber.d.ts} +0 -0
- /package/dist/components/game/2d/{DialogueBubble.d.ts → atoms/DialogueBubble.d.ts} +0 -0
- /package/dist/components/game/2d/{GameCard.d.ts → atoms/GameCard.d.ts} +0 -0
- /package/dist/components/game/2d/{HealthBar.d.ts → atoms/HealthBar.d.ts} +0 -0
- /package/dist/components/game/2d/{TimerDisplay.d.ts → atoms/TimerDisplay.d.ts} +0 -0
- /package/dist/components/game/2d/{TurnIndicator.d.ts → atoms/TurnIndicator.d.ts} +0 -0
- /package/dist/components/game/2d/{ActionPalette.d.ts → organisms/ActionPalette.d.ts} +0 -0
- /package/dist/components/game/2d/{EventLog.d.ts → organisms/EventLog.d.ts} +0 -0
- /package/dist/components/game/2d/{ObjectRulePanel.d.ts → organisms/ObjectRulePanel.d.ts} +0 -0
- /package/dist/components/game/2d/{RuleEditor.d.ts → organisms/RuleEditor.d.ts} +0 -0
- /package/dist/components/game/2d/{SequenceBar.d.ts → organisms/SequenceBar.d.ts} +0 -0
- /package/dist/components/game/2d/{SimulationGraph.d.ts → organisms/SimulationGraph.d.ts} +0 -0
- /package/dist/components/game/2d/{StateJsonView.d.ts → organisms/StateJsonView.d.ts} +0 -0
- /package/dist/components/game/2d/{TopDownShooterBoard.d.ts → organisms/TopDownShooterBoard.d.ts} +0 -0
- /package/dist/components/game/2d/{VariablePanel.d.ts → organisms/VariablePanel.d.ts} +0 -0
- /package/dist/components/game/2d/{GameShell.d.ts → templates/GameShell.d.ts} +0 -0
- /package/dist/components/game/3d/{Camera3D.d.ts → molecules/Camera3D.d.ts} +0 -0
- /package/dist/components/game/3d/{Canvas3DErrorBoundary.d.ts → molecules/Canvas3DErrorBoundary.d.ts} +0 -0
- /package/dist/components/game/3d/{Canvas3DLoadingState.d.ts → molecules/Canvas3DLoadingState.d.ts} +0 -0
- /package/dist/components/game/3d/{Lighting3D.d.ts → molecules/Lighting3D.d.ts} +0 -0
- /package/dist/components/game/3d/{ModelLoader.d.ts → molecules/ModelLoader.d.ts} +0 -0
- /package/dist/components/game/3d/{Scene3D.d.ts → molecules/Scene3D.d.ts} +0 -0
- /package/dist/components/game/{2d → shared/hooks}/useGameAudio.d.ts +0 -0
- /package/dist/components/game/{3d → shared/hooks}/useRaycaster.d.ts +0 -0
- /package/dist/components/game/{3d → shared/hooks}/useSceneGraph.d.ts +0 -0
- /package/dist/components/game/{3d → shared/lib}/AssetLoader.d.ts +0 -0
- /package/dist/components/game/{3d → shared/lib}/culling.d.ts +0 -0
- /package/dist/components/game/{3d → shared/lib}/grid3D.d.ts +0 -0
- /package/dist/components/game/{2d/types.d.ts → shared/lib/physicsTypes.d.ts} +0 -0
- /package/dist/{runtime → lib}/embedded-traits.d.ts +0 -0
- /package/dist/{runtime → lib}/fn-form-lambda.d.ts +0 -0
- /package/dist/{renderer → lib}/init.d.ts +0 -0
- /package/dist/{runtime → lib}/orbitalsByTrait.d.ts +0 -0
- /package/dist/{runtime → lib}/prepareSchemaForPreview.d.ts +0 -0
- /package/dist/{context → lib}/themeTokens.d.ts +0 -0
- /package/dist/{runtime → lib}/wrapCallbackForEvent.d.ts +0 -0
- /package/dist/{context → providers}/CurrentPagePathContext.d.ts +0 -0
- /package/dist/{context → providers}/DesignThemeContext.d.ts +0 -0
- /package/dist/{context → providers}/OrbitalThemeProvider.d.ts +0 -0
package/dist/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContext, useCallback, useState, useEffect, useMemo, useContext, useRef
|
|
1
|
+
import { createContext, useCallback, useState, useEffect, useMemo, useContext, useRef } from 'react';
|
|
2
2
|
import { createLogger } from '@almadar/logger';
|
|
3
3
|
import { EventBusContext, useTraitScope } from '@almadar/ui/providers';
|
|
4
4
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
@@ -158,12 +158,10 @@ function useFileSystem() {
|
|
|
158
158
|
const flattenTree = (obj, basePath = "") => {
|
|
159
159
|
for (const [key, value] of Object.entries(obj)) {
|
|
160
160
|
const path = basePath ? `${basePath}/${key}` : key;
|
|
161
|
-
if (value &&
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
const dirObj = value;
|
|
166
|
-
flattenTree(dirObj.directory, path);
|
|
161
|
+
if (value && "file" in value) {
|
|
162
|
+
filesArray.push({ path, content: value.file.contents || "" });
|
|
163
|
+
} else if (value && "directory" in value) {
|
|
164
|
+
flattenTree(value.directory, path);
|
|
167
165
|
}
|
|
168
166
|
}
|
|
169
167
|
};
|
|
@@ -1022,8 +1020,6 @@ var ALL_SLOTS = [
|
|
|
1022
1020
|
"toast",
|
|
1023
1021
|
"hud-top",
|
|
1024
1022
|
"hud-bottom",
|
|
1025
|
-
"hud-left",
|
|
1026
|
-
"hud-right",
|
|
1027
1023
|
"floating"
|
|
1028
1024
|
];
|
|
1029
1025
|
var DEFAULT_SLOTS = ALL_SLOTS.reduce(
|
|
@@ -1291,7 +1287,7 @@ function useUISlotManager() {
|
|
|
1291
1287
|
});
|
|
1292
1288
|
traitIndexRef.current.clear();
|
|
1293
1289
|
}, [notifySubscribers, notifyTraitSubscribers]);
|
|
1294
|
-
const
|
|
1290
|
+
const subscribe = useCallback((callback) => {
|
|
1295
1291
|
subscribersRef.current.add(callback);
|
|
1296
1292
|
return () => {
|
|
1297
1293
|
subscribersRef.current.delete(callback);
|
|
@@ -1302,7 +1298,7 @@ function useUISlotManager() {
|
|
|
1302
1298
|
[slots]
|
|
1303
1299
|
);
|
|
1304
1300
|
const getContent = useCallback(
|
|
1305
|
-
(slot) => slots[slot],
|
|
1301
|
+
(slot) => slots[slot] ?? null,
|
|
1306
1302
|
[slots]
|
|
1307
1303
|
);
|
|
1308
1304
|
const getTraitContent = useCallback(
|
|
@@ -1345,7 +1341,7 @@ function useUISlotManager() {
|
|
|
1345
1341
|
clearBySource,
|
|
1346
1342
|
clearById,
|
|
1347
1343
|
clearAll,
|
|
1348
|
-
subscribe
|
|
1344
|
+
subscribe,
|
|
1349
1345
|
hasContent,
|
|
1350
1346
|
getContent,
|
|
1351
1347
|
getTraitContent,
|
|
@@ -1474,117 +1470,6 @@ function parseQueryBinding(binding) {
|
|
|
1474
1470
|
};
|
|
1475
1471
|
}
|
|
1476
1472
|
|
|
1477
|
-
// stores/entityStore.ts
|
|
1478
|
-
var entities = /* @__PURE__ */ new Map();
|
|
1479
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
1480
|
-
var idCounter = 0;
|
|
1481
|
-
function subscribe(listener) {
|
|
1482
|
-
listeners.add(listener);
|
|
1483
|
-
return () => listeners.delete(listener);
|
|
1484
|
-
}
|
|
1485
|
-
function notify() {
|
|
1486
|
-
listeners.forEach((listener) => listener());
|
|
1487
|
-
}
|
|
1488
|
-
function getEntity(id) {
|
|
1489
|
-
return entities.get(id);
|
|
1490
|
-
}
|
|
1491
|
-
function getByType(type) {
|
|
1492
|
-
const types = Array.isArray(type) ? type : [type];
|
|
1493
|
-
return [...entities.values()].filter((e) => types.includes(e.type));
|
|
1494
|
-
}
|
|
1495
|
-
function getAllEntities() {
|
|
1496
|
-
return [...entities.values()];
|
|
1497
|
-
}
|
|
1498
|
-
function getSingleton(type) {
|
|
1499
|
-
return [...entities.values()].find((e) => e.type === type);
|
|
1500
|
-
}
|
|
1501
|
-
function spawnEntity(config) {
|
|
1502
|
-
const id = config.id ?? `entity_${++idCounter}`;
|
|
1503
|
-
const entity = { ...config, id };
|
|
1504
|
-
entities = new Map(entities);
|
|
1505
|
-
entities.set(id, entity);
|
|
1506
|
-
notify();
|
|
1507
|
-
return id;
|
|
1508
|
-
}
|
|
1509
|
-
function updateEntity(id, updates) {
|
|
1510
|
-
const entity = entities.get(id);
|
|
1511
|
-
if (entity) {
|
|
1512
|
-
entities = new Map(entities);
|
|
1513
|
-
entities.set(id, { ...entity, ...updates });
|
|
1514
|
-
notify();
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
function updateSingleton(type, updates) {
|
|
1518
|
-
const entity = getSingleton(type);
|
|
1519
|
-
if (entity) {
|
|
1520
|
-
updateEntity(entity.id, updates);
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
function removeEntity(id) {
|
|
1524
|
-
if (entities.has(id)) {
|
|
1525
|
-
entities = new Map(entities);
|
|
1526
|
-
entities.delete(id);
|
|
1527
|
-
notify();
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
function clearEntities() {
|
|
1531
|
-
entities = /* @__PURE__ */ new Map();
|
|
1532
|
-
notify();
|
|
1533
|
-
}
|
|
1534
|
-
function getSnapshot() {
|
|
1535
|
-
return entities;
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
// hooks/useEntities.ts
|
|
1539
|
-
function useEntities() {
|
|
1540
|
-
const entities2 = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
1541
|
-
return {
|
|
1542
|
-
entities: entities2,
|
|
1543
|
-
getEntity,
|
|
1544
|
-
getByType,
|
|
1545
|
-
getAllEntities,
|
|
1546
|
-
getSingleton,
|
|
1547
|
-
spawnEntity,
|
|
1548
|
-
updateEntity,
|
|
1549
|
-
updateSingleton,
|
|
1550
|
-
removeEntity,
|
|
1551
|
-
clearEntities
|
|
1552
|
-
};
|
|
1553
|
-
}
|
|
1554
|
-
function useEntity(id) {
|
|
1555
|
-
const entities2 = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
1556
|
-
return entities2.get(id);
|
|
1557
|
-
}
|
|
1558
|
-
function useEntitiesByType(type) {
|
|
1559
|
-
const entities2 = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
1560
|
-
return [...entities2.values()].filter((e) => e.type === type);
|
|
1561
|
-
}
|
|
1562
|
-
function useSingletonEntity(type) {
|
|
1563
|
-
const entities2 = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
1564
|
-
return [...entities2.values()].find((e) => e.type === type);
|
|
1565
|
-
}
|
|
1566
|
-
function usePlayer() {
|
|
1567
|
-
const player = useSingletonEntity("Player");
|
|
1568
|
-
const update = useCallback((updates) => {
|
|
1569
|
-
if (player) updateEntity(player.id, updates);
|
|
1570
|
-
}, [player?.id]);
|
|
1571
|
-
return { player, updatePlayer: update };
|
|
1572
|
-
}
|
|
1573
|
-
function usePhysics() {
|
|
1574
|
-
const physics = useSingletonEntity("Physics");
|
|
1575
|
-
const update = useCallback((updates) => {
|
|
1576
|
-
if (physics) updateEntity(physics.id, updates);
|
|
1577
|
-
}, [physics?.id]);
|
|
1578
|
-
return { physics, updatePhysics: update };
|
|
1579
|
-
}
|
|
1580
|
-
function useInput() {
|
|
1581
|
-
const input = useSingletonEntity("Input");
|
|
1582
|
-
const update = useCallback((updates) => {
|
|
1583
|
-
if (input) updateEntity(input.id, updates);
|
|
1584
|
-
}, [input?.id]);
|
|
1585
|
-
return { input, updateInput: update };
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
1473
|
// locales/en.json
|
|
1589
1474
|
var en_default = {
|
|
1590
1475
|
$meta: {
|
|
@@ -2469,49 +2354,6 @@ function usePullToRefresh(onRefresh, options = {}) {
|
|
|
2469
2354
|
endRefresh
|
|
2470
2355
|
};
|
|
2471
2356
|
}
|
|
2472
|
-
function getDistance(touches) {
|
|
2473
|
-
const dx = touches[0].clientX - touches[1].clientX;
|
|
2474
|
-
const dy = touches[0].clientY - touches[1].clientY;
|
|
2475
|
-
return Math.sqrt(dx * dx + dy * dy);
|
|
2476
|
-
}
|
|
2477
|
-
function usePinchZoom(options = {}) {
|
|
2478
|
-
const { minScale = 0.5, maxScale = 4 } = options;
|
|
2479
|
-
const [scale, setScale] = useState(1);
|
|
2480
|
-
const [isPinching, setIsPinching] = useState(false);
|
|
2481
|
-
const initialDistance = useRef(0);
|
|
2482
|
-
const initialScale = useRef(1);
|
|
2483
|
-
const onTouchStart = useCallback((e) => {
|
|
2484
|
-
if (e.touches.length === 2) {
|
|
2485
|
-
initialDistance.current = getDistance(e.touches);
|
|
2486
|
-
initialScale.current = scale;
|
|
2487
|
-
setIsPinching(true);
|
|
2488
|
-
}
|
|
2489
|
-
}, [scale]);
|
|
2490
|
-
const onTouchMove = useCallback((e) => {
|
|
2491
|
-
if (e.touches.length !== 2 || !isPinching) return;
|
|
2492
|
-
e.preventDefault();
|
|
2493
|
-
const currentDistance = getDistance(e.touches);
|
|
2494
|
-
const ratio = currentDistance / initialDistance.current;
|
|
2495
|
-
const newScale = Math.min(maxScale, Math.max(minScale, initialScale.current * ratio));
|
|
2496
|
-
setScale(newScale);
|
|
2497
|
-
}, [isPinching, minScale, maxScale]);
|
|
2498
|
-
const onTouchEnd = useCallback(() => {
|
|
2499
|
-
setIsPinching(false);
|
|
2500
|
-
}, []);
|
|
2501
|
-
const resetZoom = useCallback(() => {
|
|
2502
|
-
setScale(1);
|
|
2503
|
-
}, []);
|
|
2504
|
-
return {
|
|
2505
|
-
scale,
|
|
2506
|
-
isPinching,
|
|
2507
|
-
gestureProps: {
|
|
2508
|
-
onTouchStart,
|
|
2509
|
-
onTouchMove,
|
|
2510
|
-
onTouchEnd
|
|
2511
|
-
},
|
|
2512
|
-
resetZoom
|
|
2513
|
-
};
|
|
2514
|
-
}
|
|
2515
2357
|
function localPoint(canvas, clientX, clientY) {
|
|
2516
2358
|
if (!canvas) return { x: clientX, y: clientY };
|
|
2517
2359
|
const rect = canvas.getBoundingClientRect();
|
|
@@ -2755,9 +2597,9 @@ function useRenderInterpolation(options = {}) {
|
|
|
2755
2597
|
const prevRef = useRef(null);
|
|
2756
2598
|
const currRef = useRef(null);
|
|
2757
2599
|
const rafRef = useRef(null);
|
|
2758
|
-
const onSnapshot = useCallback((
|
|
2600
|
+
const onSnapshot = useCallback((entities) => {
|
|
2759
2601
|
prevRef.current = currRef.current;
|
|
2760
|
-
currRef.current = { entities
|
|
2602
|
+
currRef.current = { entities, arrivedAt: performance.now() };
|
|
2761
2603
|
}, []);
|
|
2762
2604
|
const getInterpolated = useCallback((now) => {
|
|
2763
2605
|
const out = /* @__PURE__ */ new Map();
|
|
@@ -2817,99 +2659,6 @@ function useRenderInterpolation(options = {}) {
|
|
|
2817
2659
|
}, []);
|
|
2818
2660
|
return { onSnapshot, getInterpolated, startLoop };
|
|
2819
2661
|
}
|
|
2820
|
-
var EMPTY_STATE = {
|
|
2821
|
-
activities: [],
|
|
2822
|
-
subagents: [],
|
|
2823
|
-
coordinatorMessages: [],
|
|
2824
|
-
status: "idle"
|
|
2825
|
-
};
|
|
2826
|
-
function upsertSubagent(subagents, id, patch) {
|
|
2827
|
-
const idx = subagents.findIndex((s) => s.id === id);
|
|
2828
|
-
if (idx === -1) {
|
|
2829
|
-
const next = {
|
|
2830
|
-
id,
|
|
2831
|
-
name: patch.name ?? id,
|
|
2832
|
-
role: patch.role ?? "",
|
|
2833
|
-
status: patch.status ?? "running",
|
|
2834
|
-
task: patch.task ?? "",
|
|
2835
|
-
messages: []
|
|
2836
|
-
};
|
|
2837
|
-
if (patch.orbitalName !== void 0) next.orbitalName = patch.orbitalName;
|
|
2838
|
-
if (patch.parentId !== void 0) next.parentId = patch.parentId;
|
|
2839
|
-
if (patch.durationMs !== void 0) next.durationMs = patch.durationMs;
|
|
2840
|
-
return [...subagents, next];
|
|
2841
|
-
}
|
|
2842
|
-
const merged = { ...subagents[idx] };
|
|
2843
|
-
if (patch.name !== void 0) merged.name = patch.name;
|
|
2844
|
-
if (patch.role !== void 0) merged.role = patch.role;
|
|
2845
|
-
if (patch.orbitalName !== void 0) merged.orbitalName = patch.orbitalName;
|
|
2846
|
-
if (patch.parentId !== void 0) merged.parentId = patch.parentId;
|
|
2847
|
-
if (patch.status !== void 0) merged.status = patch.status;
|
|
2848
|
-
if (patch.task !== void 0) merged.task = patch.task;
|
|
2849
|
-
if (patch.durationMs !== void 0) merged.durationMs = patch.durationMs;
|
|
2850
|
-
const out = subagents.slice();
|
|
2851
|
-
out[idx] = merged;
|
|
2852
|
-
return out;
|
|
2853
|
-
}
|
|
2854
|
-
function appendSubagentMessage(subagents, id, message) {
|
|
2855
|
-
const idx = subagents.findIndex((s) => s.id === id);
|
|
2856
|
-
if (idx === -1) return subagents;
|
|
2857
|
-
const out = subagents.slice();
|
|
2858
|
-
out[idx] = { ...out[idx], messages: [...out[idx].messages, message] };
|
|
2859
|
-
return out;
|
|
2860
|
-
}
|
|
2861
|
-
function setCoordinatorMessage(messages, index, message) {
|
|
2862
|
-
if (index < messages.length) {
|
|
2863
|
-
const out = messages.slice();
|
|
2864
|
-
out[index] = message;
|
|
2865
|
-
return out;
|
|
2866
|
-
}
|
|
2867
|
-
return [...messages, message];
|
|
2868
|
-
}
|
|
2869
|
-
function reduce(state, update) {
|
|
2870
|
-
switch (update.kind) {
|
|
2871
|
-
case "activity":
|
|
2872
|
-
return { ...state, activities: [...state.activities, update.activity] };
|
|
2873
|
-
case "subagent-upsert":
|
|
2874
|
-
return { ...state, subagents: upsertSubagent(state.subagents, update.id, update.subagent) };
|
|
2875
|
-
case "subagent-message":
|
|
2876
|
-
return { ...state, subagents: appendSubagentMessage(state.subagents, update.id, update.message) };
|
|
2877
|
-
case "coordinator-message":
|
|
2878
|
-
return {
|
|
2879
|
-
...state,
|
|
2880
|
-
coordinatorMessages: setCoordinatorMessage(state.coordinatorMessages, update.index, update.message)
|
|
2881
|
-
};
|
|
2882
|
-
case "status":
|
|
2883
|
-
return { ...state, status: update.status };
|
|
2884
|
-
case "reset":
|
|
2885
|
-
return EMPTY_STATE;
|
|
2886
|
-
}
|
|
2887
|
-
}
|
|
2888
|
-
function traceReducer(state, action) {
|
|
2889
|
-
if (action.type === "apply") return reduce(state, action.update);
|
|
2890
|
-
return action.updates.reduce(reduce, state);
|
|
2891
|
-
}
|
|
2892
|
-
function useAgentTrace() {
|
|
2893
|
-
const [state, dispatch] = useReducer(traceReducer, EMPTY_STATE);
|
|
2894
|
-
const apply = useCallback((update) => {
|
|
2895
|
-
dispatch({ type: "apply", update });
|
|
2896
|
-
}, []);
|
|
2897
|
-
const applyAll = useCallback((updates) => {
|
|
2898
|
-
dispatch({ type: "applyAll", updates });
|
|
2899
|
-
}, []);
|
|
2900
|
-
const reset = useCallback(() => {
|
|
2901
|
-
dispatch({ type: "apply", update: { kind: "reset" } });
|
|
2902
|
-
}, []);
|
|
2903
|
-
return {
|
|
2904
|
-
activities: state.activities,
|
|
2905
|
-
subagents: state.subagents,
|
|
2906
|
-
coordinatorMessages: state.coordinatorMessages,
|
|
2907
|
-
status: state.status,
|
|
2908
|
-
apply,
|
|
2909
|
-
applyAll,
|
|
2910
|
-
reset
|
|
2911
|
-
};
|
|
2912
|
-
}
|
|
2913
2662
|
var API_BASE = typeof process !== "undefined" && process.env?.VITE_API_URL ? process.env.VITE_API_URL : "http://localhost:3000";
|
|
2914
2663
|
function getUserId() {
|
|
2915
2664
|
return localStorage.getItem("userId") || "anonymous";
|
|
@@ -2986,4 +2735,4 @@ function useGitHubBranches(owner, repo, enabled = true) {
|
|
|
2986
2735
|
});
|
|
2987
2736
|
}
|
|
2988
2737
|
|
|
2989
|
-
export { ALMADAR_DND_MIME, DEFAULT_SLOTS, I18nProvider,
|
|
2738
|
+
export { ALMADAR_DND_MIME, DEFAULT_SLOTS, I18nProvider, createTranslate, parseQueryBinding, useAgentChat, useAuthContext, useCanvasGestures, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useDragReorder, useDraggable, useDropZone, useEmitEvent, useEventBus, useEventListener, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInfiniteScroll, useLongPress, useOrbitalHistory, usePreview, usePullToRefresh, useQuerySingleton, useRenderInterpolation, useSwipeGesture, useTapReveal, useTraitListens, useTranslate, useUIEvents, useUISlotManager, useValidation };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DeepAgentInterrupt } from './useDeepAgentGeneration';
|
|
2
|
+
import type { FieldValue, OrbitalSchema } from '@almadar/core';
|
|
2
3
|
export interface ChatMessage {
|
|
3
4
|
id: string;
|
|
4
5
|
role: 'user' | 'assistant' | 'system';
|
|
@@ -16,13 +17,13 @@ export type Activity = {
|
|
|
16
17
|
} | {
|
|
17
18
|
type: 'tool_call';
|
|
18
19
|
tool: string;
|
|
19
|
-
args: Record<string,
|
|
20
|
+
args: Record<string, FieldValue>;
|
|
20
21
|
timestamp: number;
|
|
21
22
|
isExecuting?: boolean;
|
|
22
23
|
} | {
|
|
23
24
|
type: 'tool_result';
|
|
24
25
|
tool: string;
|
|
25
|
-
result:
|
|
26
|
+
result: FieldValue | null;
|
|
26
27
|
success: boolean;
|
|
27
28
|
timestamp: number;
|
|
28
29
|
} | {
|
|
@@ -79,8 +80,8 @@ export interface SchemaDiff {
|
|
|
79
80
|
export type AgentStatus = 'idle' | 'running' | 'complete' | 'error' | 'interrupted';
|
|
80
81
|
export interface UseAgentChatOptions {
|
|
81
82
|
appId?: string;
|
|
82
|
-
onComplete?: (schema?:
|
|
83
|
-
onSchemaChange?: (diff?:
|
|
83
|
+
onComplete?: (schema?: OrbitalSchema) => void;
|
|
84
|
+
onSchemaChange?: (diff?: OrbitalSchema) => void;
|
|
84
85
|
onError?: (error: Error | string) => void;
|
|
85
86
|
}
|
|
86
87
|
export interface UseAgentChatResult {
|
|
@@ -94,9 +95,9 @@ export interface UseAgentChatResult {
|
|
|
94
95
|
threadId: string | null;
|
|
95
96
|
interrupt: DeepAgentInterrupt | null;
|
|
96
97
|
sendMessage: (content: string) => Promise<void>;
|
|
97
|
-
startGeneration: (skill: string | string[], prompt: string, options?: Record<string,
|
|
98
|
+
startGeneration: (skill: string | string[], prompt: string, options?: Record<string, FieldValue>) => Promise<void>;
|
|
98
99
|
continueConversation: (message: string | string[]) => Promise<void>;
|
|
99
|
-
resumeWithDecision: (decisions:
|
|
100
|
+
resumeWithDecision: (decisions: FieldValue[]) => Promise<void>;
|
|
100
101
|
cancel: () => void;
|
|
101
102
|
clearMessages: () => void;
|
|
102
103
|
clearHistory: () => void;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
name: string;
|
|
3
|
-
version?: string;
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
}
|
|
1
|
+
import type { OrbitalSchema } from '@almadar/core';
|
|
6
2
|
export type CompileStage = 'idle' | 'compiling' | 'done' | 'error';
|
|
7
3
|
export interface CompileResult {
|
|
8
4
|
success: boolean;
|
|
@@ -17,6 +13,6 @@ export interface UseCompileResult {
|
|
|
17
13
|
stage: CompileStage;
|
|
18
14
|
lastResult: CompileResult | null;
|
|
19
15
|
error: string | null;
|
|
20
|
-
compileSchema: (schema:
|
|
16
|
+
compileSchema: (schema: OrbitalSchema) => Promise<CompileResult | null>;
|
|
21
17
|
}
|
|
22
18
|
export declare function useCompile(): UseCompileResult;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { OrbitalSchema } from '@almadar/core';
|
|
1
|
+
import type { OrbitalSchema, FieldValue } from '@almadar/core';
|
|
2
2
|
export interface DeepAgentActionRequest {
|
|
3
3
|
id: string;
|
|
4
4
|
type: string;
|
|
5
5
|
tool: string;
|
|
6
|
-
args: Record<string,
|
|
6
|
+
args: Record<string, FieldValue>;
|
|
7
7
|
description?: string;
|
|
8
8
|
allowedDecisions: ('approve' | 'edit' | 'reject')[];
|
|
9
9
|
status: 'pending' | 'approved' | 'rejected' | 'edited';
|
|
@@ -38,9 +38,9 @@ export interface UseDeepAgentGenerationResult {
|
|
|
38
38
|
error: string | null;
|
|
39
39
|
interrupt: DeepAgentInterrupt | null;
|
|
40
40
|
generate: (prompt: string) => Promise<OrbitalSchema | null>;
|
|
41
|
-
startGeneration: (skill: string, prompt: string, options?: Record<string,
|
|
41
|
+
startGeneration: (skill: string, prompt: string, options?: Record<string, FieldValue>) => Promise<void>;
|
|
42
42
|
cancelGeneration: () => void;
|
|
43
43
|
clearRequests: () => void;
|
|
44
|
-
submitInterruptDecisions: (decisions:
|
|
44
|
+
submitInterruptDecisions: (decisions: FieldValue[]) => void;
|
|
45
45
|
}
|
|
46
46
|
export declare function useDeepAgentGeneration(): UseDeepAgentGenerationResult;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { BusEvent, BusEventSource,
|
|
1
|
+
import type { BusEvent, BusEventSource, BusEventListener, Unsubscribe, EventBusContextType } from '../types/event-bus-types';
|
|
2
2
|
import type { EventPayload } from '@almadar/core';
|
|
3
|
-
export type { BusEvent, BusEventSource,
|
|
3
|
+
export type { BusEvent, BusEventSource, BusEventListener, Unsubscribe, EventBusContextType };
|
|
4
|
+
/** @deprecated Use BusEventListener from @almadar/core. */
|
|
5
|
+
export type { BusEventListener as EventListener };
|
|
4
6
|
declare global {
|
|
5
7
|
interface Window {
|
|
6
8
|
__kflowEventBus?: EventBusContextType | null;
|
|
@@ -73,7 +75,7 @@ export declare function useEventBus(): EventBusContextType;
|
|
|
73
75
|
* });
|
|
74
76
|
* ```
|
|
75
77
|
*/
|
|
76
|
-
export declare function useEventListener(event: string, handler:
|
|
78
|
+
export declare function useEventListener(event: string, handler: BusEventListener): void;
|
|
77
79
|
/**
|
|
78
80
|
* Alias for useEventListener for backward compatibility
|
|
79
81
|
*/
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
interface FileSystemTree {
|
|
2
|
+
[name: string]: {
|
|
3
|
+
file: {
|
|
4
|
+
contents: string;
|
|
5
|
+
};
|
|
6
|
+
} | {
|
|
7
|
+
directory: FileSystemTree;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
1
10
|
export interface FileNode {
|
|
2
11
|
path: string;
|
|
3
12
|
name: string;
|
|
@@ -24,7 +33,7 @@ export interface UseFileSystemResult {
|
|
|
24
33
|
selectedPath: string | null;
|
|
25
34
|
previewUrl: string | null;
|
|
26
35
|
boot: () => Promise<void>;
|
|
27
|
-
mountFiles: (files: FileSystemFile[] |
|
|
36
|
+
mountFiles: (files: FileSystemFile[] | FileSystemTree) => Promise<void>;
|
|
28
37
|
readFile: (path: string) => Promise<string>;
|
|
29
38
|
writeFile: (path: string, content: string) => Promise<void>;
|
|
30
39
|
selectFile: (path: string) => Promise<void>;
|
|
@@ -38,3 +47,4 @@ export interface UseFileSystemResult {
|
|
|
38
47
|
startDevServer: () => Promise<void>;
|
|
39
48
|
}
|
|
40
49
|
export declare function useFileSystem(): UseFileSystemResult;
|
|
50
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OrbitalSchema } from '@almadar/core';
|
|
2
|
-
export interface
|
|
2
|
+
export interface HistoryChangeSummary {
|
|
3
3
|
added: number;
|
|
4
4
|
modified: number;
|
|
5
5
|
removed: number;
|
|
@@ -11,7 +11,7 @@ export interface HistoryTimelineItem {
|
|
|
11
11
|
timestamp: number;
|
|
12
12
|
description: string;
|
|
13
13
|
source?: string;
|
|
14
|
-
summary?:
|
|
14
|
+
summary?: HistoryChangeSummary;
|
|
15
15
|
reason?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface RevertResult {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { FieldValue } from '@almadar/core';
|
|
1
2
|
/**
|
|
2
3
|
* Query state for filters and search
|
|
3
4
|
*/
|
|
4
5
|
export interface QueryState {
|
|
5
6
|
search?: string;
|
|
6
|
-
filters?: Record<string,
|
|
7
|
+
filters?: Record<string, FieldValue>;
|
|
7
8
|
sortField?: string;
|
|
8
9
|
sortDirection?: 'asc' | 'desc';
|
|
9
10
|
}
|
|
@@ -12,7 +13,7 @@ export interface QueryState {
|
|
|
12
13
|
*/
|
|
13
14
|
export interface QuerySingletonEntity {
|
|
14
15
|
name: string;
|
|
15
|
-
fields: Record<string,
|
|
16
|
+
fields: Record<string, FieldValue>;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Query singleton result type
|
|
@@ -28,9 +29,9 @@ export interface QuerySingletonState {
|
|
|
28
29
|
/** Set search term */
|
|
29
30
|
setSearch: (value: string) => void;
|
|
30
31
|
/** Current filters */
|
|
31
|
-
filters: Record<string,
|
|
32
|
+
filters: Record<string, FieldValue>;
|
|
32
33
|
/** Set a filter value */
|
|
33
|
-
setFilter: (key: string, value:
|
|
34
|
+
setFilter: (key: string, value: FieldValue) => void;
|
|
34
35
|
/** Clear all filters */
|
|
35
36
|
clearFilters: () => void;
|
|
36
37
|
/** Current sort field */
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @packageDocumentation
|
|
13
13
|
*/
|
|
14
14
|
import type { OrbitalSchema } from '@almadar/core';
|
|
15
|
-
import type { ResolvedIR, ResolvedPage, ResolvedTrait, ResolvedEntity, ResolvedTraitBinding } from '
|
|
15
|
+
import type { ResolvedIR, ResolvedPage, ResolvedTrait, ResolvedEntity, ResolvedTraitBinding } from '../types/runtime-types';
|
|
16
16
|
export interface ResolvedSchemaResult {
|
|
17
17
|
/** The resolved page (or undefined if not found) */
|
|
18
18
|
page: ResolvedPage | undefined;
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @packageDocumentation
|
|
18
18
|
*/
|
|
19
|
-
import type { EventPayload } from '@almadar/core';
|
|
19
|
+
import type { EventPayload, ServiceParams } from '@almadar/core';
|
|
20
20
|
import { type TraitState } from '@almadar/runtime';
|
|
21
|
-
import type { ResolvedTraitBinding } from '
|
|
22
|
-
import type { useUISlots } from '../
|
|
21
|
+
import type { ResolvedTraitBinding } from '../types/runtime-types';
|
|
22
|
+
import type { useUISlots } from '../providers/UISlotContext';
|
|
23
23
|
export type { TraitState };
|
|
24
24
|
export interface TraitStateMachineResult {
|
|
25
25
|
/** Current state for each trait */
|
|
@@ -45,7 +45,7 @@ export interface UseTraitStateMachineOptions {
|
|
|
45
45
|
*/
|
|
46
46
|
onEventProcessed?: (eventKey: string, payload?: EventPayload, dispatchedOrbitals?: Set<string>) => void | Promise<void>;
|
|
47
47
|
/** Router navigate function for navigate effects */
|
|
48
|
-
navigate?: (path: string, params?: Record<string,
|
|
48
|
+
navigate?: (path: string, params?: Record<string, string>) => void;
|
|
49
49
|
/** Notification function for notify effects */
|
|
50
50
|
notify?: (message: string, type?: 'success' | 'error' | 'warning' | 'info') => void;
|
|
51
51
|
/**
|
|
@@ -58,7 +58,7 @@ export interface UseTraitStateMachineOptions {
|
|
|
58
58
|
*/
|
|
59
59
|
persistence?: import('@almadar/runtime').PersistenceAdapter;
|
|
60
60
|
/** Optional consumer `call-service` hook forwarded to the mock server handlers. */
|
|
61
|
-
callService?: (service: string, action: string, params
|
|
61
|
+
callService?: (service: string, action: string, params?: ServiceParams) => Promise<EventPayload>;
|
|
62
62
|
/**
|
|
63
63
|
* Trait configs keyed by trait name. Threaded into setTraitConfig so
|
|
64
64
|
* `@config.X` resolves inside guard expressions on the client. Page-level
|
|
@@ -30,11 +30,8 @@
|
|
|
30
30
|
* @packageDocumentation
|
|
31
31
|
*/
|
|
32
32
|
import type React from 'react';
|
|
33
|
-
import type { EventPayloadValue, RenderItemLambda } from '@almadar/core';
|
|
34
|
-
|
|
35
|
-
* Valid UI slot names
|
|
36
|
-
*/
|
|
37
|
-
export type UISlot = 'main' | 'sidebar' | 'modal' | 'drawer' | 'overlay' | 'center' | 'toast' | 'hud-top' | 'hud-bottom' | 'hud-left' | 'hud-right' | 'floating';
|
|
33
|
+
import type { EventPayloadValue, RenderItemLambda, UISlot } from '@almadar/core';
|
|
34
|
+
export type { UISlot };
|
|
38
35
|
/**
|
|
39
36
|
* Animation types for slot transitions
|
|
40
37
|
*/
|
|
@@ -95,7 +92,7 @@ export interface SlotContent {
|
|
|
95
92
|
sourceTrait?: string;
|
|
96
93
|
/** Stable node ID from the schema pattern tree (for edit mode overlay targeting) */
|
|
97
94
|
nodeId?: string;
|
|
98
|
-
/** Slot this content was rendered into (=
|
|
95
|
+
/** Slot this content was rendered into (= SlotRenderConfig.target) — contextual-edit address. */
|
|
99
96
|
slot?: string;
|
|
100
97
|
/** Transition event key that produced this render (raw, as fired). */
|
|
101
98
|
transitionEvent?: string;
|
|
@@ -107,7 +104,7 @@ export interface SlotContent {
|
|
|
107
104
|
/**
|
|
108
105
|
* Configuration for render_ui effect
|
|
109
106
|
*/
|
|
110
|
-
export interface
|
|
107
|
+
export interface SlotRenderConfig {
|
|
111
108
|
/** Target slot */
|
|
112
109
|
target: UISlot;
|
|
113
110
|
/** Pattern/component to render */
|
|
@@ -156,9 +153,9 @@ export interface UISlotManager {
|
|
|
156
153
|
* pattern configs in insertion order. Single consumers can continue
|
|
157
154
|
* to read `slots[slot]` without knowing the slot is multi-source.
|
|
158
155
|
*/
|
|
159
|
-
slots: Record<UISlot, SlotContent | null
|
|
156
|
+
slots: Partial<Record<UISlot, SlotContent | null>>;
|
|
160
157
|
/** Render content to a slot */
|
|
161
|
-
render: (config:
|
|
158
|
+
render: (config: SlotRenderConfig) => string;
|
|
162
159
|
/** Clear all source entries from a slot */
|
|
163
160
|
clear: (slot: UISlot) => void;
|
|
164
161
|
/** Clear a single source's contribution from a slot, keeping others */
|
|
@@ -206,7 +203,7 @@ export interface UISlotManager {
|
|
|
206
203
|
*/
|
|
207
204
|
updateTraitContent: (traitName: string, content: Omit<SlotContent, 'id' | 'sourceTrait'>) => string;
|
|
208
205
|
}
|
|
209
|
-
declare const DEFAULT_SLOTS: Record<UISlot, SlotContent | null
|
|
206
|
+
declare const DEFAULT_SLOTS: Partial<Record<UISlot, SlotContent | null>>;
|
|
210
207
|
/**
|
|
211
208
|
* Create a UI Slot Manager instance.
|
|
212
209
|
*
|
package/dist/lib/api-client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
|
+
import type { FieldValue } from '@almadar/core';
|
|
9
10
|
/**
|
|
10
11
|
* API Error class for handling HTTP errors
|
|
11
12
|
*/
|
|
@@ -25,15 +26,15 @@ export declare const apiClient: {
|
|
|
25
26
|
/**
|
|
26
27
|
* POST request
|
|
27
28
|
*/
|
|
28
|
-
post<T>(endpoint: string, data?:
|
|
29
|
+
post<T>(endpoint: string, data?: Record<string, FieldValue>): Promise<T>;
|
|
29
30
|
/**
|
|
30
31
|
* PUT request
|
|
31
32
|
*/
|
|
32
|
-
put<T>(endpoint: string, data?:
|
|
33
|
+
put<T>(endpoint: string, data?: Record<string, FieldValue>): Promise<T>;
|
|
33
34
|
/**
|
|
34
35
|
* PATCH request
|
|
35
36
|
*/
|
|
36
|
-
patch<T>(endpoint: string, data?:
|
|
37
|
+
patch<T>(endpoint: string, data?: Record<string, FieldValue>): Promise<T>;
|
|
37
38
|
/**
|
|
38
39
|
* DELETE request
|
|
39
40
|
*/
|