@almadar/ui 5.74.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 +39646 -43579
- package/dist/avl/index.css +0 -504
- package/dist/avl/index.d.ts +43 -43
- package/dist/avl/index.js +38906 -42838
- 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/RepeatableFormSection.d.ts +6 -5
- 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/{atoms → 2d/atoms}/ActionButton.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/ChoiceButton.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/ControlButton.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/atoms}/GameAudioToggle.d.ts +1 -3
- package/dist/components/game/2d/atoms/GameCard.d.ts +26 -0
- package/dist/components/game/2d/atoms/GameIcon.d.ts +18 -0
- package/dist/components/game/2d/atoms/HealthBar.d.ts +26 -0
- package/dist/components/game/{atoms → 2d/atoms}/ItemSlot.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/MiniMap.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/ResourceCounter.d.ts +2 -2
- package/dist/components/game/{atoms → 2d/atoms}/ScoreDisplay.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/Sprite.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/StateIndicator.d.ts +5 -4
- package/dist/components/game/{atoms → 2d/atoms}/StatusEffect.d.ts +2 -2
- package/dist/components/game/{atoms → 2d/atoms}/WaypointMarker.d.ts +1 -1
- 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/{molecules → 2d/molecules}/GameHud.d.ts +3 -1
- package/dist/components/game/{molecules → 2d/molecules}/GameMenu.d.ts +1 -1
- package/dist/components/game/{molecules → 2d/molecules}/InventoryGrid.d.ts +3 -2
- package/dist/components/game/{molecules → 2d/molecules}/ResourceBar.d.ts +3 -1
- package/dist/components/game/{molecules → 2d/molecules}/StatBadge.d.ts +1 -1
- package/dist/components/game/2d/molecules/index.d.ts +107 -0
- package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/ActionPalette.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/ActionTile.d.ts +2 -2
- package/dist/components/game/{organisms → 2d/organisms}/BattleBoard.d.ts +4 -3
- package/dist/components/game/{organisms → 2d/organisms}/BoardgameBoard.d.ts +5 -5
- package/dist/components/game/{organisms/puzzles/builder → 2d/organisms}/BuilderBoard.d.ts +7 -3
- package/dist/components/game/{organisms → 2d/organisms}/CanvasEffect.d.ts +4 -4
- package/dist/components/game/{organisms → 2d/organisms}/CardBattlerBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/CastleBoard.d.ts +2 -1
- package/dist/components/game/{organisms → 2d/organisms}/CityBuilderBoard.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/classifier → 2d/organisms}/ClassifierBoard.d.ts +7 -3
- package/dist/components/game/{organisms/puzzles/debugger → 2d/organisms}/DebuggerBoard.d.ts +7 -3
- package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/EventHandlerBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/FishingBoard.d.ts +12 -2
- package/dist/components/game/{organisms → 2d/organisms}/HexStrategyBoard.d.ts +13 -6
- package/dist/components/game/{organisms → 2d/organisms}/HolidayRunnerBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/MatchPuzzleBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/MinigolfBoard.d.ts +5 -5
- package/dist/components/game/{organisms/puzzles/negotiator → 2d/organisms}/NegotiatorBoard.d.ts +7 -3
- package/dist/components/game/{organisms → 2d/organisms}/PinballBoard.d.ts +12 -4
- package/dist/components/game/{organisms → 2d/organisms}/PirateBoard.d.ts +13 -6
- package/dist/components/game/{organisms → 2d/organisms}/PlatformerBoard.d.ts +9 -14
- package/dist/components/game/{organisms → 2d/organisms}/RacingBoard.d.ts +13 -6
- package/dist/components/game/{organisms → 2d/organisms}/RoguelikeBoard.d.ts +2 -2
- package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/SequenceBar.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/SequencerBoard.d.ts +1 -1
- package/dist/components/game/{organisms/physics-sim → 2d/organisms}/SimulationCanvas.d.ts +3 -2
- package/dist/components/game/{organisms/physics-sim → 2d/organisms}/SimulationControls.d.ts +6 -1
- package/dist/components/game/{organisms/puzzles/simulator → 2d/organisms}/SimulatorBoard.d.ts +7 -3
- package/dist/components/game/{organisms → 2d/organisms}/SokobanBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/SpaceShmupBoard.d.ts +13 -6
- package/dist/components/game/{organisms → 2d/organisms}/SpaceStationBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/SportsBoard.d.ts +5 -5
- package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/StateArchitectBoard.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/StateNode.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/TanksBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/TowerDefenseBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/TraitSlot.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/TraitStateViewer.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/TransitionArrow.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/UncontrolledBattleBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/VisualNovelBoard.d.ts +1 -9
- package/dist/components/game/{organisms → 2d/organisms}/WorldMapBoard.d.ts +4 -3
- package/dist/components/game/{templates → 2d/templates}/BattleTemplate.d.ts +2 -2
- package/dist/components/game/{templates → 2d/templates}/CardBattlerTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/CastleTemplate.d.ts +2 -2
- package/dist/components/game/{templates → 2d/templates}/CityBuilderTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/GameTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/PlatformerTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/RoguelikeTemplate.d.ts +2 -2
- package/dist/components/game/{templates → 2d/templates}/TopDownShooterTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/TowerDefenseTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/VisualNovelTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/WorldMapTemplate.d.ts +2 -2
- package/dist/components/game/3d/molecules/Canvas3D.d.ts +45 -0
- package/dist/components/game/{molecules → 3d/molecules}/GameCanvas3D.d.ts +3 -3
- package/dist/components/game/{molecules/three → 3d/molecules}/index.d.ts +22 -21
- package/dist/components/game/{organisms → 3d/organisms}/GameBoard3D.d.ts +1 -1
- package/dist/components/game/{templates → 3d/templates}/GameCanvas3DBattleTemplate.d.ts +3 -3
- package/dist/components/game/{templates → 3d/templates}/GameCanvas3DCastleTemplate.d.ts +3 -3
- package/dist/components/game/{templates → 3d/templates}/GameCanvas3DWorldMapTemplate.d.ts +3 -3
- package/dist/components/game/{organisms/utils → shared}/canvasEffects.d.ts +1 -1
- package/dist/components/game/{organisms/utils → shared}/combatPresets.d.ts +1 -1
- package/dist/components/game/{organisms/types → shared}/game.d.ts +2 -2
- package/dist/components/game/{molecules/three → shared}/hooks/useAssetLoader.d.ts +1 -1
- package/dist/components/game/{organisms → shared}/hooks/useBattleState.d.ts +1 -1
- package/dist/components/game/{organisms → shared}/hooks/useCamera.d.ts +1 -1
- package/dist/components/game/{organisms → shared/hooks}/useCanvasEffects.d.ts +1 -1
- package/dist/components/game/{molecules/three → shared}/hooks/useGameCanvas3DEvents.d.ts +1 -1
- package/dist/components/game/{molecules/three → shared}/hooks/useThree.d.ts +1 -1
- package/dist/components/game/{molecules → shared/hooks}/useUnitSpriteAtlas.d.ts +2 -2
- package/dist/components/game/shared/index.d.ts +21 -0
- package/dist/components/game/{organisms/types/isometric.d.ts → shared/isometricTypes.d.ts} +3 -7
- package/dist/components/game/{organisms/editor → shared/lib}/editorUtils.d.ts +6 -1
- package/dist/components/game/{templates → shared/lib}/game3dAssetManifest.d.ts +1 -1
- package/dist/components/game/{organisms/physics-sim/presets → shared/lib}/mechanics.d.ts +1 -1
- package/dist/components/game/{organisms/physics-sim/presets/index.d.ts → shared/lib/physicsPresets.d.ts} +2 -2
- package/dist/components/game/{organisms/puzzles/event-handler → shared/lib}/puzzleObject.d.ts +1 -1
- package/dist/components/game/{organisms → shared/providers}/GameAudioProvider.d.ts +3 -4
- package/dist/components/game/{organisms/utils → shared}/spriteAnimation.d.ts +1 -1
- package/dist/components/game/{organisms/utils → shared}/spriteSheetConstants.d.ts +1 -1
- package/dist/components/index.cjs +26303 -27705
- package/dist/components/index.css +0 -504
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +25707 -27155
- package/dist/context/index.cjs +93 -829
- package/dist/context/index.d.ts +8 -8
- package/dist/context/index.js +3 -809
- package/dist/hooks/index.cjs +14 -285
- package/dist/hooks/index.d.ts +5 -6
- package/dist/hooks/index.js +16 -269
- 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 +40362 -43663
- package/dist/providers/index.css +0 -504
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +41036 -44336
- 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 +41094 -45072
- package/dist/runtime/index.css +0 -504
- package/dist/runtime/index.d.ts +11 -11
- package/dist/runtime/index.js +40822 -44823
- 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 +14 -31
- package/dist/components/core/atoms/ThemeSelector.d.ts +0 -21
- package/dist/components/game/atoms/HealthBar.d.ts +0 -18
- package/dist/components/game/atoms/XPBar.d.ts +0 -20
- package/dist/components/game/atoms/index.d.ts +0 -25
- package/dist/components/game/molecules/ActionButtons.d.ts +0 -38
- package/dist/components/game/molecules/CardHand.d.ts +0 -35
- package/dist/components/game/molecules/CombatLog.d.ts +0 -30
- package/dist/components/game/molecules/CraftingRecipe.d.ts +0 -40
- package/dist/components/game/molecules/DPad.d.ts +0 -26
- package/dist/components/game/molecules/DialogueBox.d.ts +0 -66
- package/dist/components/game/molecules/EnemyPlate.d.ts +0 -30
- package/dist/components/game/molecules/GameCanvas2D.d.ts +0 -27
- package/dist/components/game/molecules/GameOverScreen.d.ts +0 -57
- package/dist/components/game/molecules/HealthPanel.d.ts +0 -31
- package/dist/components/game/molecules/InventoryPanel.d.ts +0 -58
- package/dist/components/game/molecules/IsometricCanvas.d.ts +0 -137
- package/dist/components/game/molecules/PlatformerCanvas.d.ts +0 -60
- package/dist/components/game/molecules/PowerupSlots.d.ts +0 -26
- package/dist/components/game/molecules/QuestTracker.d.ts +0 -20
- package/dist/components/game/molecules/ScoreBoard.d.ts +0 -18
- package/dist/components/game/molecules/TurnPanel.d.ts +0 -32
- package/dist/components/game/molecules/UnitCommandBar.d.ts +0 -25
- package/dist/components/game/molecules/index.d.ts +0 -32
- package/dist/components/game/molecules/three/components/PhysicsObject3D.d.ts +0 -74
- package/dist/components/game/molecules/three/components/index.d.ts +0 -10
- package/dist/components/game/molecules/three/index.cjs +0 -7798
- package/dist/components/game/molecules/three/index.css +0 -503
- package/dist/components/game/molecules/three/index.js +0 -7717
- package/dist/components/game/molecules/three/patterns.d.ts +0 -20
- package/dist/components/game/molecules/three/renderers/FeatureRenderer.d.ts +0 -38
- package/dist/components/game/molecules/three/renderers/FeatureRenderer3D.d.ts +0 -44
- package/dist/components/game/molecules/three/renderers/TileRenderer.d.ts +0 -57
- package/dist/components/game/molecules/three/renderers/UnitRenderer.d.ts +0 -46
- package/dist/components/game/molecules/three/renderers/index.d.ts +0 -11
- package/dist/components/game/organisms/editor/index.d.ts +0 -9
- package/dist/components/game/organisms/hooks/usePhysics2D.d.ts +0 -45
- package/dist/components/game/organisms/hooks/useSpriteAnimations.d.ts +0 -43
- package/dist/components/game/organisms/index.d.ts +0 -66
- package/dist/components/game/organisms/managers/PhysicsManager.d.ts +0 -103
- package/dist/components/game/organisms/physics-sim/index.d.ts +0 -7
- package/dist/components/game/organisms/puzzles/builder/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/classifier/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/debugger/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/event-handler/index.d.ts +0 -8
- package/dist/components/game/organisms/puzzles/negotiator/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/sequencer/index.d.ts +0 -8
- package/dist/components/game/organisms/puzzles/simulator/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/state-architect/index.d.ts +0 -10
- package/dist/components/game/organisms/utils/combatEffects.d.ts +0 -64
- package/dist/components/game/templates/index.d.ts +0 -4
- package/dist/docs/index.cjs +0 -6969
- package/dist/docs/index.css +0 -1756
- package/dist/docs/index.d.cts +0 -574
- package/dist/docs/index.d.ts +0 -29
- package/dist/docs/index.js +0 -6926
- 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/{atoms → 2d/atoms}/ComboCounter.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d/atoms}/DamageNumber.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d/atoms}/DialogueBubble.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d/atoms}/TimerDisplay.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d/atoms}/TurnIndicator.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/EventLog.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/ObjectRulePanel.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/RuleEditor.d.ts +0 -0
- /package/dist/components/game/{organisms/physics-sim → 2d/organisms}/SimulationGraph.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/StateJsonView.d.ts +0 -0
- /package/dist/components/game/{organisms → 2d/organisms}/TopDownShooterBoard.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/VariablePanel.d.ts +0 -0
- /package/dist/components/game/{templates → 2d/templates}/GameShell.d.ts +0 -0
- /package/dist/components/game/{molecules/three → 3d/molecules}/Camera3D.d.ts +0 -0
- /package/dist/components/game/{molecules/three/components → 3d/molecules}/Canvas3DErrorBoundary.d.ts +0 -0
- /package/dist/components/game/{molecules/three/components → 3d/molecules}/Canvas3DLoadingState.d.ts +0 -0
- /package/dist/components/game/{molecules/three → 3d/molecules}/Lighting3D.d.ts +0 -0
- /package/dist/components/game/{molecules/three/components → 3d/molecules}/ModelLoader.d.ts +0 -0
- /package/dist/components/game/{molecules/three → 3d/molecules}/Scene3D.d.ts +0 -0
- /package/dist/components/game/{organisms → shared}/boardEntity.d.ts +0 -0
- /package/dist/components/game/{organisms/types → shared}/effects.d.ts +0 -0
- /package/dist/components/game/{organisms → shared}/hooks/useGameAudio.d.ts +0 -0
- /package/dist/components/game/{molecules/three → shared}/hooks/useRaycaster.d.ts +0 -0
- /package/dist/components/game/{molecules/three → shared}/hooks/useSceneGraph.d.ts +0 -0
- /package/dist/components/game/{organisms/utils → shared}/isometric.d.ts +0 -0
- /package/dist/components/game/{molecules/three/loaders → shared/lib}/AssetLoader.d.ts +0 -0
- /package/dist/components/game/{molecules/three/utils → shared/lib}/culling.d.ts +0 -0
- /package/dist/components/game/{molecules/three/utils → shared/lib}/grid3D.d.ts +0 -0
- /package/dist/components/game/{organisms/physics-sim/presets/types.d.ts → shared/lib/physicsTypes.d.ts} +0 -0
- /package/dist/components/game/{organisms/utils → shared}/makeAsset.d.ts +0 -0
- /package/dist/components/game/{organisms/types/spriteAnimation.d.ts → shared/spriteAnimationTypes.d.ts} +0 -0
- /package/dist/components/game/{organisms/hooks → shared}/useImageCache.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.cjs
CHANGED
|
@@ -160,12 +160,10 @@ function useFileSystem() {
|
|
|
160
160
|
const flattenTree = (obj, basePath = "") => {
|
|
161
161
|
for (const [key, value] of Object.entries(obj)) {
|
|
162
162
|
const path = basePath ? `${basePath}/${key}` : key;
|
|
163
|
-
if (value &&
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const dirObj = value;
|
|
168
|
-
flattenTree(dirObj.directory, path);
|
|
163
|
+
if (value && "file" in value) {
|
|
164
|
+
filesArray.push({ path, content: value.file.contents || "" });
|
|
165
|
+
} else if (value && "directory" in value) {
|
|
166
|
+
flattenTree(value.directory, path);
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
169
|
};
|
|
@@ -1024,8 +1022,6 @@ var ALL_SLOTS = [
|
|
|
1024
1022
|
"toast",
|
|
1025
1023
|
"hud-top",
|
|
1026
1024
|
"hud-bottom",
|
|
1027
|
-
"hud-left",
|
|
1028
|
-
"hud-right",
|
|
1029
1025
|
"floating"
|
|
1030
1026
|
];
|
|
1031
1027
|
var DEFAULT_SLOTS = ALL_SLOTS.reduce(
|
|
@@ -1042,10 +1038,6 @@ var DEFAULT_SOURCES = ALL_SLOTS.reduce(
|
|
|
1042
1038
|
},
|
|
1043
1039
|
{}
|
|
1044
1040
|
);
|
|
1045
|
-
var idCounter = 0;
|
|
1046
|
-
function generateId() {
|
|
1047
|
-
return `slot-content-${++idCounter}-${Date.now()}`;
|
|
1048
|
-
}
|
|
1049
1041
|
function aggregateSlot(sources) {
|
|
1050
1042
|
if (!sources) return null;
|
|
1051
1043
|
const entries = Object.entries(sources);
|
|
@@ -1122,8 +1114,8 @@ function useUISlotManager() {
|
|
|
1122
1114
|
}, []);
|
|
1123
1115
|
const render = react.useCallback(
|
|
1124
1116
|
(config) => {
|
|
1125
|
-
const id = generateId();
|
|
1126
1117
|
const sourceKey = config.sourceTrait ?? DEFAULT_SOURCE_KEY;
|
|
1118
|
+
const id = `slot-content-${config.target}-${sourceKey}`;
|
|
1127
1119
|
const content = {
|
|
1128
1120
|
id,
|
|
1129
1121
|
pattern: config.pattern,
|
|
@@ -1139,10 +1131,12 @@ function useUISlotManager() {
|
|
|
1139
1131
|
};
|
|
1140
1132
|
if (config.autoDismissMs && config.autoDismissMs > 0) {
|
|
1141
1133
|
content.autoDismissAt = Date.now() + config.autoDismissMs;
|
|
1134
|
+
const prevTimer = timersRef.current.get(id);
|
|
1135
|
+
if (prevTimer) clearTimeout(prevTimer);
|
|
1142
1136
|
const timer = setTimeout(() => {
|
|
1143
1137
|
setSources((prev) => {
|
|
1144
1138
|
const slotSources = prev[config.target];
|
|
1145
|
-
if (slotSources && slotSources[sourceKey]
|
|
1139
|
+
if (slotSources && slotSources[sourceKey] === content) {
|
|
1146
1140
|
content.onDismiss?.();
|
|
1147
1141
|
const next = { ...slotSources };
|
|
1148
1142
|
delete next[sourceKey];
|
|
@@ -1295,7 +1289,7 @@ function useUISlotManager() {
|
|
|
1295
1289
|
});
|
|
1296
1290
|
traitIndexRef.current.clear();
|
|
1297
1291
|
}, [notifySubscribers, notifyTraitSubscribers]);
|
|
1298
|
-
const
|
|
1292
|
+
const subscribe = react.useCallback((callback) => {
|
|
1299
1293
|
subscribersRef.current.add(callback);
|
|
1300
1294
|
return () => {
|
|
1301
1295
|
subscribersRef.current.delete(callback);
|
|
@@ -1306,7 +1300,7 @@ function useUISlotManager() {
|
|
|
1306
1300
|
[slots]
|
|
1307
1301
|
);
|
|
1308
1302
|
const getContent = react.useCallback(
|
|
1309
|
-
(slot) => slots[slot],
|
|
1303
|
+
(slot) => slots[slot] ?? null,
|
|
1310
1304
|
[slots]
|
|
1311
1305
|
);
|
|
1312
1306
|
const getTraitContent = react.useCallback(
|
|
@@ -1334,7 +1328,7 @@ function useUISlotManager() {
|
|
|
1334
1328
|
);
|
|
1335
1329
|
const updateTraitContent = react.useCallback(
|
|
1336
1330
|
(traitName, content) => {
|
|
1337
|
-
const id =
|
|
1331
|
+
const id = `slot-content-trait-${traitName}`;
|
|
1338
1332
|
const fullContent = { ...content, id, sourceTrait: traitName };
|
|
1339
1333
|
indexTraitRender(traitName, fullContent);
|
|
1340
1334
|
notifyTraitSubscribers(traitName, fullContent);
|
|
@@ -1349,7 +1343,7 @@ function useUISlotManager() {
|
|
|
1349
1343
|
clearBySource,
|
|
1350
1344
|
clearById,
|
|
1351
1345
|
clearAll,
|
|
1352
|
-
subscribe
|
|
1346
|
+
subscribe,
|
|
1353
1347
|
hasContent,
|
|
1354
1348
|
getContent,
|
|
1355
1349
|
getTraitContent,
|
|
@@ -1478,117 +1472,6 @@ function parseQueryBinding(binding) {
|
|
|
1478
1472
|
};
|
|
1479
1473
|
}
|
|
1480
1474
|
|
|
1481
|
-
// stores/entityStore.ts
|
|
1482
|
-
var entities = /* @__PURE__ */ new Map();
|
|
1483
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
1484
|
-
var idCounter2 = 0;
|
|
1485
|
-
function subscribe(listener) {
|
|
1486
|
-
listeners.add(listener);
|
|
1487
|
-
return () => listeners.delete(listener);
|
|
1488
|
-
}
|
|
1489
|
-
function notify() {
|
|
1490
|
-
listeners.forEach((listener) => listener());
|
|
1491
|
-
}
|
|
1492
|
-
function getEntity(id) {
|
|
1493
|
-
return entities.get(id);
|
|
1494
|
-
}
|
|
1495
|
-
function getByType(type) {
|
|
1496
|
-
const types = Array.isArray(type) ? type : [type];
|
|
1497
|
-
return [...entities.values()].filter((e) => types.includes(e.type));
|
|
1498
|
-
}
|
|
1499
|
-
function getAllEntities() {
|
|
1500
|
-
return [...entities.values()];
|
|
1501
|
-
}
|
|
1502
|
-
function getSingleton(type) {
|
|
1503
|
-
return [...entities.values()].find((e) => e.type === type);
|
|
1504
|
-
}
|
|
1505
|
-
function spawnEntity(config) {
|
|
1506
|
-
const id = config.id ?? `entity_${++idCounter2}`;
|
|
1507
|
-
const entity = { ...config, id };
|
|
1508
|
-
entities = new Map(entities);
|
|
1509
|
-
entities.set(id, entity);
|
|
1510
|
-
notify();
|
|
1511
|
-
return id;
|
|
1512
|
-
}
|
|
1513
|
-
function updateEntity(id, updates) {
|
|
1514
|
-
const entity = entities.get(id);
|
|
1515
|
-
if (entity) {
|
|
1516
|
-
entities = new Map(entities);
|
|
1517
|
-
entities.set(id, { ...entity, ...updates });
|
|
1518
|
-
notify();
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
function updateSingleton(type, updates) {
|
|
1522
|
-
const entity = getSingleton(type);
|
|
1523
|
-
if (entity) {
|
|
1524
|
-
updateEntity(entity.id, updates);
|
|
1525
|
-
}
|
|
1526
|
-
}
|
|
1527
|
-
function removeEntity(id) {
|
|
1528
|
-
if (entities.has(id)) {
|
|
1529
|
-
entities = new Map(entities);
|
|
1530
|
-
entities.delete(id);
|
|
1531
|
-
notify();
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
function clearEntities() {
|
|
1535
|
-
entities = /* @__PURE__ */ new Map();
|
|
1536
|
-
notify();
|
|
1537
|
-
}
|
|
1538
|
-
function getSnapshot() {
|
|
1539
|
-
return entities;
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
// hooks/useEntities.ts
|
|
1543
|
-
function useEntities() {
|
|
1544
|
-
const entities2 = react.useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
1545
|
-
return {
|
|
1546
|
-
entities: entities2,
|
|
1547
|
-
getEntity,
|
|
1548
|
-
getByType,
|
|
1549
|
-
getAllEntities,
|
|
1550
|
-
getSingleton,
|
|
1551
|
-
spawnEntity,
|
|
1552
|
-
updateEntity,
|
|
1553
|
-
updateSingleton,
|
|
1554
|
-
removeEntity,
|
|
1555
|
-
clearEntities
|
|
1556
|
-
};
|
|
1557
|
-
}
|
|
1558
|
-
function useEntity(id) {
|
|
1559
|
-
const entities2 = react.useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
1560
|
-
return entities2.get(id);
|
|
1561
|
-
}
|
|
1562
|
-
function useEntitiesByType(type) {
|
|
1563
|
-
const entities2 = react.useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
1564
|
-
return [...entities2.values()].filter((e) => e.type === type);
|
|
1565
|
-
}
|
|
1566
|
-
function useSingletonEntity(type) {
|
|
1567
|
-
const entities2 = react.useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
1568
|
-
return [...entities2.values()].find((e) => e.type === type);
|
|
1569
|
-
}
|
|
1570
|
-
function usePlayer() {
|
|
1571
|
-
const player = useSingletonEntity("Player");
|
|
1572
|
-
const update = react.useCallback((updates) => {
|
|
1573
|
-
if (player) updateEntity(player.id, updates);
|
|
1574
|
-
}, [player?.id]);
|
|
1575
|
-
return { player, updatePlayer: update };
|
|
1576
|
-
}
|
|
1577
|
-
function usePhysics() {
|
|
1578
|
-
const physics = useSingletonEntity("Physics");
|
|
1579
|
-
const update = react.useCallback((updates) => {
|
|
1580
|
-
if (physics) updateEntity(physics.id, updates);
|
|
1581
|
-
}, [physics?.id]);
|
|
1582
|
-
return { physics, updatePhysics: update };
|
|
1583
|
-
}
|
|
1584
|
-
function useInput() {
|
|
1585
|
-
const input = useSingletonEntity("Input");
|
|
1586
|
-
const update = react.useCallback((updates) => {
|
|
1587
|
-
if (input) updateEntity(input.id, updates);
|
|
1588
|
-
}, [input?.id]);
|
|
1589
|
-
return { input, updateInput: update };
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
1475
|
// locales/en.json
|
|
1593
1476
|
var en_default = {
|
|
1594
1477
|
$meta: {
|
|
@@ -2473,49 +2356,6 @@ function usePullToRefresh(onRefresh, options = {}) {
|
|
|
2473
2356
|
endRefresh
|
|
2474
2357
|
};
|
|
2475
2358
|
}
|
|
2476
|
-
function getDistance(touches) {
|
|
2477
|
-
const dx = touches[0].clientX - touches[1].clientX;
|
|
2478
|
-
const dy = touches[0].clientY - touches[1].clientY;
|
|
2479
|
-
return Math.sqrt(dx * dx + dy * dy);
|
|
2480
|
-
}
|
|
2481
|
-
function usePinchZoom(options = {}) {
|
|
2482
|
-
const { minScale = 0.5, maxScale = 4 } = options;
|
|
2483
|
-
const [scale, setScale] = react.useState(1);
|
|
2484
|
-
const [isPinching, setIsPinching] = react.useState(false);
|
|
2485
|
-
const initialDistance = react.useRef(0);
|
|
2486
|
-
const initialScale = react.useRef(1);
|
|
2487
|
-
const onTouchStart = react.useCallback((e) => {
|
|
2488
|
-
if (e.touches.length === 2) {
|
|
2489
|
-
initialDistance.current = getDistance(e.touches);
|
|
2490
|
-
initialScale.current = scale;
|
|
2491
|
-
setIsPinching(true);
|
|
2492
|
-
}
|
|
2493
|
-
}, [scale]);
|
|
2494
|
-
const onTouchMove = react.useCallback((e) => {
|
|
2495
|
-
if (e.touches.length !== 2 || !isPinching) return;
|
|
2496
|
-
e.preventDefault();
|
|
2497
|
-
const currentDistance = getDistance(e.touches);
|
|
2498
|
-
const ratio = currentDistance / initialDistance.current;
|
|
2499
|
-
const newScale = Math.min(maxScale, Math.max(minScale, initialScale.current * ratio));
|
|
2500
|
-
setScale(newScale);
|
|
2501
|
-
}, [isPinching, minScale, maxScale]);
|
|
2502
|
-
const onTouchEnd = react.useCallback(() => {
|
|
2503
|
-
setIsPinching(false);
|
|
2504
|
-
}, []);
|
|
2505
|
-
const resetZoom = react.useCallback(() => {
|
|
2506
|
-
setScale(1);
|
|
2507
|
-
}, []);
|
|
2508
|
-
return {
|
|
2509
|
-
scale,
|
|
2510
|
-
isPinching,
|
|
2511
|
-
gestureProps: {
|
|
2512
|
-
onTouchStart,
|
|
2513
|
-
onTouchMove,
|
|
2514
|
-
onTouchEnd
|
|
2515
|
-
},
|
|
2516
|
-
resetZoom
|
|
2517
|
-
};
|
|
2518
|
-
}
|
|
2519
2359
|
function localPoint(canvas, clientX, clientY) {
|
|
2520
2360
|
if (!canvas) return { x: clientX, y: clientY };
|
|
2521
2361
|
const rect = canvas.getBoundingClientRect();
|
|
@@ -2759,9 +2599,9 @@ function useRenderInterpolation(options = {}) {
|
|
|
2759
2599
|
const prevRef = react.useRef(null);
|
|
2760
2600
|
const currRef = react.useRef(null);
|
|
2761
2601
|
const rafRef = react.useRef(null);
|
|
2762
|
-
const onSnapshot = react.useCallback((
|
|
2602
|
+
const onSnapshot = react.useCallback((entities) => {
|
|
2763
2603
|
prevRef.current = currRef.current;
|
|
2764
|
-
currRef.current = { entities
|
|
2604
|
+
currRef.current = { entities, arrivedAt: performance.now() };
|
|
2765
2605
|
}, []);
|
|
2766
2606
|
const getInterpolated = react.useCallback((now) => {
|
|
2767
2607
|
const out = /* @__PURE__ */ new Map();
|
|
@@ -2821,99 +2661,6 @@ function useRenderInterpolation(options = {}) {
|
|
|
2821
2661
|
}, []);
|
|
2822
2662
|
return { onSnapshot, getInterpolated, startLoop };
|
|
2823
2663
|
}
|
|
2824
|
-
var EMPTY_STATE = {
|
|
2825
|
-
activities: [],
|
|
2826
|
-
subagents: [],
|
|
2827
|
-
coordinatorMessages: [],
|
|
2828
|
-
status: "idle"
|
|
2829
|
-
};
|
|
2830
|
-
function upsertSubagent(subagents, id, patch) {
|
|
2831
|
-
const idx = subagents.findIndex((s) => s.id === id);
|
|
2832
|
-
if (idx === -1) {
|
|
2833
|
-
const next = {
|
|
2834
|
-
id,
|
|
2835
|
-
name: patch.name ?? id,
|
|
2836
|
-
role: patch.role ?? "",
|
|
2837
|
-
status: patch.status ?? "running",
|
|
2838
|
-
task: patch.task ?? "",
|
|
2839
|
-
messages: []
|
|
2840
|
-
};
|
|
2841
|
-
if (patch.orbitalName !== void 0) next.orbitalName = patch.orbitalName;
|
|
2842
|
-
if (patch.parentId !== void 0) next.parentId = patch.parentId;
|
|
2843
|
-
if (patch.durationMs !== void 0) next.durationMs = patch.durationMs;
|
|
2844
|
-
return [...subagents, next];
|
|
2845
|
-
}
|
|
2846
|
-
const merged = { ...subagents[idx] };
|
|
2847
|
-
if (patch.name !== void 0) merged.name = patch.name;
|
|
2848
|
-
if (patch.role !== void 0) merged.role = patch.role;
|
|
2849
|
-
if (patch.orbitalName !== void 0) merged.orbitalName = patch.orbitalName;
|
|
2850
|
-
if (patch.parentId !== void 0) merged.parentId = patch.parentId;
|
|
2851
|
-
if (patch.status !== void 0) merged.status = patch.status;
|
|
2852
|
-
if (patch.task !== void 0) merged.task = patch.task;
|
|
2853
|
-
if (patch.durationMs !== void 0) merged.durationMs = patch.durationMs;
|
|
2854
|
-
const out = subagents.slice();
|
|
2855
|
-
out[idx] = merged;
|
|
2856
|
-
return out;
|
|
2857
|
-
}
|
|
2858
|
-
function appendSubagentMessage(subagents, id, message) {
|
|
2859
|
-
const idx = subagents.findIndex((s) => s.id === id);
|
|
2860
|
-
if (idx === -1) return subagents;
|
|
2861
|
-
const out = subagents.slice();
|
|
2862
|
-
out[idx] = { ...out[idx], messages: [...out[idx].messages, message] };
|
|
2863
|
-
return out;
|
|
2864
|
-
}
|
|
2865
|
-
function setCoordinatorMessage(messages, index, message) {
|
|
2866
|
-
if (index < messages.length) {
|
|
2867
|
-
const out = messages.slice();
|
|
2868
|
-
out[index] = message;
|
|
2869
|
-
return out;
|
|
2870
|
-
}
|
|
2871
|
-
return [...messages, message];
|
|
2872
|
-
}
|
|
2873
|
-
function reduce(state, update) {
|
|
2874
|
-
switch (update.kind) {
|
|
2875
|
-
case "activity":
|
|
2876
|
-
return { ...state, activities: [...state.activities, update.activity] };
|
|
2877
|
-
case "subagent-upsert":
|
|
2878
|
-
return { ...state, subagents: upsertSubagent(state.subagents, update.id, update.subagent) };
|
|
2879
|
-
case "subagent-message":
|
|
2880
|
-
return { ...state, subagents: appendSubagentMessage(state.subagents, update.id, update.message) };
|
|
2881
|
-
case "coordinator-message":
|
|
2882
|
-
return {
|
|
2883
|
-
...state,
|
|
2884
|
-
coordinatorMessages: setCoordinatorMessage(state.coordinatorMessages, update.index, update.message)
|
|
2885
|
-
};
|
|
2886
|
-
case "status":
|
|
2887
|
-
return { ...state, status: update.status };
|
|
2888
|
-
case "reset":
|
|
2889
|
-
return EMPTY_STATE;
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
function traceReducer(state, action) {
|
|
2893
|
-
if (action.type === "apply") return reduce(state, action.update);
|
|
2894
|
-
return action.updates.reduce(reduce, state);
|
|
2895
|
-
}
|
|
2896
|
-
function useAgentTrace() {
|
|
2897
|
-
const [state, dispatch] = react.useReducer(traceReducer, EMPTY_STATE);
|
|
2898
|
-
const apply = react.useCallback((update) => {
|
|
2899
|
-
dispatch({ type: "apply", update });
|
|
2900
|
-
}, []);
|
|
2901
|
-
const applyAll = react.useCallback((updates) => {
|
|
2902
|
-
dispatch({ type: "applyAll", updates });
|
|
2903
|
-
}, []);
|
|
2904
|
-
const reset = react.useCallback(() => {
|
|
2905
|
-
dispatch({ type: "apply", update: { kind: "reset" } });
|
|
2906
|
-
}, []);
|
|
2907
|
-
return {
|
|
2908
|
-
activities: state.activities,
|
|
2909
|
-
subagents: state.subagents,
|
|
2910
|
-
coordinatorMessages: state.coordinatorMessages,
|
|
2911
|
-
status: state.status,
|
|
2912
|
-
apply,
|
|
2913
|
-
applyAll,
|
|
2914
|
-
reset
|
|
2915
|
-
};
|
|
2916
|
-
}
|
|
2917
2664
|
var API_BASE = typeof process !== "undefined" && process.env?.VITE_API_URL ? process.env.VITE_API_URL : "http://localhost:3000";
|
|
2918
2665
|
function getUserId() {
|
|
2919
2666
|
return localStorage.getItem("userId") || "anonymous";
|
|
@@ -2993,19 +2740,9 @@ function useGitHubBranches(owner, repo, enabled = true) {
|
|
|
2993
2740
|
exports.ALMADAR_DND_MIME = ALMADAR_DND_MIME;
|
|
2994
2741
|
exports.DEFAULT_SLOTS = DEFAULT_SLOTS;
|
|
2995
2742
|
exports.I18nProvider = I18nProvider;
|
|
2996
|
-
exports.clearEntities = clearEntities;
|
|
2997
2743
|
exports.createTranslate = createTranslate;
|
|
2998
|
-
exports.getAllEntities = getAllEntities;
|
|
2999
|
-
exports.getByType = getByType;
|
|
3000
|
-
exports.getEntity = getEntity;
|
|
3001
|
-
exports.getSingleton = getSingleton;
|
|
3002
2744
|
exports.parseQueryBinding = parseQueryBinding;
|
|
3003
|
-
exports.removeEntity = removeEntity;
|
|
3004
|
-
exports.spawnEntity = spawnEntity;
|
|
3005
|
-
exports.updateEntity = updateEntity;
|
|
3006
|
-
exports.updateSingleton = updateSingleton;
|
|
3007
2745
|
exports.useAgentChat = useAgentChat;
|
|
3008
|
-
exports.useAgentTrace = useAgentTrace;
|
|
3009
2746
|
exports.useAuthContext = useAuthContext;
|
|
3010
2747
|
exports.useCanvasGestures = useCanvasGestures;
|
|
3011
2748
|
exports.useCompile = useCompile;
|
|
@@ -3016,9 +2753,6 @@ exports.useDragReorder = useDragReorder;
|
|
|
3016
2753
|
exports.useDraggable = useDraggable;
|
|
3017
2754
|
exports.useDropZone = useDropZone;
|
|
3018
2755
|
exports.useEmitEvent = useEmitEvent;
|
|
3019
|
-
exports.useEntities = useEntities;
|
|
3020
|
-
exports.useEntitiesByType = useEntitiesByType;
|
|
3021
|
-
exports.useEntityById = useEntity;
|
|
3022
2756
|
exports.useEventBus = useEventBus;
|
|
3023
2757
|
exports.useEventListener = useEventListener;
|
|
3024
2758
|
exports.useExtensions = useExtensions;
|
|
@@ -3029,17 +2763,12 @@ exports.useGitHubRepo = useGitHubRepo;
|
|
|
3029
2763
|
exports.useGitHubRepos = useGitHubRepos;
|
|
3030
2764
|
exports.useGitHubStatus = useGitHubStatus;
|
|
3031
2765
|
exports.useInfiniteScroll = useInfiniteScroll;
|
|
3032
|
-
exports.useInput = useInput;
|
|
3033
2766
|
exports.useLongPress = useLongPress;
|
|
3034
2767
|
exports.useOrbitalHistory = useOrbitalHistory;
|
|
3035
|
-
exports.usePhysics = usePhysics;
|
|
3036
|
-
exports.usePinchZoom = usePinchZoom;
|
|
3037
|
-
exports.usePlayer = usePlayer;
|
|
3038
2768
|
exports.usePreview = usePreview;
|
|
3039
2769
|
exports.usePullToRefresh = usePullToRefresh;
|
|
3040
2770
|
exports.useQuerySingleton = useQuerySingleton;
|
|
3041
2771
|
exports.useRenderInterpolation = useRenderInterpolation;
|
|
3042
|
-
exports.useSingletonEntity = useSingletonEntity;
|
|
3043
2772
|
exports.useSwipeGesture = useSwipeGesture;
|
|
3044
2773
|
exports.useTapReveal = useTapReveal;
|
|
3045
2774
|
exports.useTraitListens = useTraitListens;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hooks barrel export
|
|
3
3
|
*/
|
|
4
|
-
export { useOrbitalHistory, type HistoryTimelineItem, type RevertResult, type
|
|
4
|
+
export { useOrbitalHistory, type HistoryTimelineItem, type RevertResult, type HistoryChangeSummary, type UseOrbitalHistoryOptions, type UseOrbitalHistoryResult, } from './useOrbitalHistory';
|
|
5
5
|
export { useFileSystem, type FileSystemStatus, type FileSystemFile, type SelectedFile, type UseFileSystemResult, } from './useFileSystem';
|
|
6
6
|
export { useExtensions, type Extension, type ExtensionManifest, type UseExtensionsOptions, type UseExtensionsResult, } from './useExtensions';
|
|
7
7
|
export { useFileEditor, type OpenFile, type UseFileEditorOptions, type UseFileEditorResult, } from './useFileEditor';
|
|
@@ -11,11 +11,12 @@ export { useAgentChat } from './useAgentChat';
|
|
|
11
11
|
export { useValidation } from './useValidation';
|
|
12
12
|
export { useDeepAgentGeneration } from './useDeepAgentGeneration';
|
|
13
13
|
export { useEventBus, useEventListener, useEmitEvent } from './useEventBus';
|
|
14
|
-
export type { BusEvent, BusEventSource,
|
|
15
|
-
|
|
14
|
+
export type { BusEvent, BusEventSource, BusEventListener, Unsubscribe, EventBusContextType, } from '../types/event-bus-types';
|
|
15
|
+
/** @deprecated Use BusEventListener. */
|
|
16
|
+
export type { BusEventListener as EventListener } from '../types/event-bus-types';
|
|
17
|
+
export { useUISlotManager, DEFAULT_SLOTS, type UISlot, type SlotAnimation, type SlotContent, type SlotRenderConfig, type SlotChangeCallback, type UISlotManager, } from './useUISlots';
|
|
16
18
|
export { useUIEvents, useTraitListens, type TraitListenSpec } from './useUIEvents';
|
|
17
19
|
export { useQuerySingleton, parseQueryBinding, type QueryState, type QuerySingletonEntity, type QuerySingletonResult, type QuerySingletonState, } from './useQuerySingleton';
|
|
18
|
-
export { useEntities, useEntity as useEntityById, useEntitiesByType, useSingletonEntity, usePlayer, usePhysics, useInput, spawnEntity, updateEntity, updateSingleton, removeEntity, clearEntities, getEntity, getByType, getAllEntities, getSingleton, type Entity, } from './useEntities';
|
|
19
20
|
export { useTranslate, I18nProvider, createTranslate, type TranslateFunction, type I18nContextValue, } from './useTranslate';
|
|
20
21
|
export { useAuthContext, type AuthUser, type AuthContextValue, } from './useAuthContext';
|
|
21
22
|
export { useSwipeGesture, type SwipeGestureOptions, type SwipeGestureResult, type SwipeHandlers, } from './useSwipeGesture';
|
|
@@ -23,11 +24,9 @@ export { useLongPress, type LongPressOptions, type LongPressHandlers, } from './
|
|
|
23
24
|
export { useDragReorder, type DragReorderResult, } from './useDragReorder';
|
|
24
25
|
export { useInfiniteScroll, type InfiniteScrollOptions, type InfiniteScrollResult, } from './useInfiniteScroll';
|
|
25
26
|
export { usePullToRefresh, type PullToRefreshOptions, type PullToRefreshResult, } from './usePullToRefresh';
|
|
26
|
-
export { usePinchZoom, type PinchZoomOptions, type PinchZoomResult, } from './usePinchZoom';
|
|
27
27
|
export { useCanvasGestures, type UseCanvasGesturesOptions, type CanvasGestureCallbacks, type CanvasGestureHandlers, } from './useCanvasGestures';
|
|
28
28
|
export { useTapReveal, type TapRevealOptions, type TapRevealResult, } from './useTapReveal';
|
|
29
29
|
export { useDraggable, ALMADAR_DND_MIME, type DraggablePayload, type UseDraggableOptions, type UseDraggableResult, } from './useDraggable';
|
|
30
30
|
export { useDropZone, type UseDropZoneOptions, type UseDropZoneResult, } from './useDropZone';
|
|
31
31
|
export { useRenderInterpolation, type Positioned, type RenderInterpolationOptions, type RenderInterpolationHandle, } from './useRenderInterpolation';
|
|
32
|
-
export { useAgentTrace, type UseAgentTraceResult, type AgentTraceState, type TraceStatus, type TraceUpdate, type SubagentUpsert, } from './useAgentTrace';
|
|
33
32
|
export { useGitHubStatus, useConnectGitHub, useDisconnectGitHub, useGitHubRepos, useGitHubRepo, useGitHubBranches, type GitHubStatus, type GitHubRepo, } from './useGitHub';
|