@jgengine/shell 0.10.0 → 0.11.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/CHANGELOG.md +13 -2
- package/LICENSE +203 -661
- package/README.md +1 -1
- package/dist/GamePhaseStamp.d.ts +1 -0
- package/dist/GamePhaseStamp.js +9 -0
- package/dist/GamePlayerShell.d.ts +0 -12
- package/dist/GamePlayerShell.js +88 -1043
- package/dist/GameUiPreview.js +0 -2
- package/dist/audio/audioEngine.js +30 -8
- package/dist/audio/audioWire.d.ts +22 -0
- package/dist/audio/audioWire.js +19 -0
- package/dist/behaviour.d.ts +2 -1
- package/dist/behaviour.js +2 -1
- package/dist/behaviourAttach.d.ts +1 -0
- package/dist/behaviourAttach.js +1 -0
- package/dist/behaviourDriver.d.ts +1 -0
- package/dist/behaviourDriver.js +1 -0
- package/dist/boundActionDispatch.d.ts +13 -0
- package/dist/boundActionDispatch.js +37 -0
- package/dist/camera/GameCameraRig.d.ts +5 -2
- package/dist/camera/GameCameraRig.js +2 -2
- package/dist/camera/GameFirstPersonCamera.d.ts +9 -2
- package/dist/camera/GameFirstPersonCamera.js +8 -3
- package/dist/camera/GameInspectionCamera.d.ts +1 -1
- package/dist/camera/GameInspectionCamera.js +2 -2
- package/dist/camera/GameOrbitCamera.js +24 -9
- package/dist/camera/cameraBlendMath.d.ts +3 -0
- package/dist/camera/cameraBlendMath.js +3 -0
- package/dist/camera/fovPreference.d.ts +6 -1
- package/dist/camera/fovPreference.js +6 -1
- package/dist/camera/index.d.ts +4 -7
- package/dist/camera/index.js +4 -7
- package/dist/camera/inspectionCameraMath.d.ts +7 -2
- package/dist/camera/inspectionCameraMath.js +7 -2
- package/dist/camera/orbitCameraMath.d.ts +36 -6
- package/dist/camera/orbitCameraMath.js +56 -6
- package/dist/camera/rigMath.d.ts +94 -24
- package/dist/camera/rigMath.js +100 -24
- package/dist/camera/rigResolve.d.ts +4 -2
- package/dist/camera/rigResolve.js +4 -2
- package/dist/camera/shakeChannel.d.ts +6 -2
- package/dist/camera/shakeChannel.js +6 -2
- package/dist/camera/shakeChannelMath.d.ts +1 -0
- package/dist/camera/shakeChannelMath.js +1 -0
- package/dist/cartridge/runtime.d.ts +15 -0
- package/dist/cartridge/runtime.js +556 -0
- package/dist/cartridge/spec.d.ts +188 -0
- package/dist/cartridge/spec.js +19 -0
- package/dist/cartridge/validate.d.ts +2 -0
- package/dist/cartridge/validate.js +78 -0
- package/dist/cartridge.d.ts +1 -1
- package/dist/cartridge.js +3 -3
- package/dist/commandSink.d.ts +8 -3
- package/dist/commandSink.js +8 -3
- package/dist/defineGame.js +25 -6
- package/dist/devtools/ColPanel.d.ts +1 -0
- package/dist/devtools/ColPanel.js +14 -0
- package/dist/devtools/DevtoolsOverlay.d.ts +7 -3
- package/dist/devtools/DevtoolsOverlay.js +19 -450
- package/dist/devtools/KeysPanel.d.ts +4 -0
- package/dist/devtools/KeysPanel.js +31 -0
- package/dist/devtools/LogsPanel.d.ts +1 -0
- package/dist/devtools/LogsPanel.js +12 -0
- package/dist/devtools/NetPanel.d.ts +4 -0
- package/dist/devtools/NetPanel.js +10 -0
- package/dist/devtools/PerfPanel.d.ts +4 -0
- package/dist/devtools/PerfPanel.js +53 -0
- package/dist/devtools/TunePanel.d.ts +3 -0
- package/dist/devtools/TunePanel.js +309 -0
- package/dist/devtools/agentBridge.d.ts +41 -0
- package/dist/devtools/agentBridge.js +262 -0
- package/dist/devtools/collisionDebug.d.ts +6 -0
- package/dist/devtools/collisionDebug.js +6 -0
- package/dist/devtools/collisionDebugMath.d.ts +8 -2
- package/dist/devtools/collisionDebugMath.js +24 -5
- package/dist/devtools/devtoolsOverrides.d.ts +6 -0
- package/dist/devtools/devtoolsOverrides.js +48 -0
- package/dist/devtools/panelAtoms.d.ts +9 -0
- package/dist/devtools/panelAtoms.js +10 -0
- package/dist/devtools/perfDiagnose.d.ts +2 -0
- package/dist/devtools/perfDiagnose.js +43 -0
- package/dist/diagnostics/RuntimeDiagnostics.d.ts +29 -0
- package/dist/diagnostics/RuntimeDiagnostics.js +69 -0
- package/dist/drivers/FrameDriver.d.ts +37 -0
- package/dist/drivers/FrameDriver.js +232 -0
- package/dist/drivers/HudOnlyDriver.d.ts +16 -0
- package/dist/drivers/HudOnlyDriver.js +60 -0
- package/dist/environment/Daylight.d.ts +23 -7
- package/dist/environment/Daylight.js +106 -13
- package/dist/environment/EnvironmentScene.js +32 -6
- package/dist/environment/VolumetricClouds.d.ts +17 -0
- package/dist/environment/VolumetricClouds.js +202 -0
- package/dist/environment/daylightCycle.d.ts +3 -1
- package/dist/environment/daylightCycle.js +3 -1
- package/dist/environment/groundPadMath.d.ts +3 -0
- package/dist/environment/groundPadMath.js +3 -0
- package/dist/environment/index.d.ts +1 -0
- package/dist/environment/index.js +1 -0
- package/dist/environment/skyLightingPolicy.d.ts +2 -0
- package/dist/environment/skyLightingPolicy.js +2 -0
- package/dist/hotbarActions.d.ts +26 -0
- package/dist/hotbarActions.js +27 -0
- package/dist/inputSink.d.ts +16 -4
- package/dist/inputSink.js +57 -7
- package/dist/materialOverride.d.ts +10 -0
- package/dist/materialOverride.js +15 -3
- package/dist/multiplayer.js +8 -2
- package/dist/postfx/PostProcessing.js +47 -9
- package/dist/postfx/gradeShader.js +9 -1
- package/dist/registry.d.ts +3 -2
- package/dist/render/EnvironmentLighting.d.ts +10 -0
- package/dist/render/EnvironmentLighting.js +34 -0
- package/dist/render/SceneLighting.d.ts +7 -0
- package/dist/render/SceneLighting.js +18 -0
- package/dist/render/SceneModels.d.ts +14 -0
- package/dist/render/SceneModels.js +337 -0
- package/dist/render/defaultSurface.d.ts +29 -0
- package/dist/render/defaultSurface.js +101 -0
- package/dist/render/modelLoad.d.ts +24 -0
- package/dist/render/modelLoad.js +73 -0
- package/dist/render/modelRender.d.ts +11 -0
- package/dist/render/modelRender.js +15 -0
- package/dist/render/resolveModel.d.ts +39 -3
- package/dist/render/resolveModel.js +79 -2
- package/dist/render/useEntityRenderCues.d.ts +13 -0
- package/dist/render/useEntityRenderCues.js +62 -0
- package/dist/scatter/InstancedScatter.d.ts +24 -0
- package/dist/scatter/InstancedScatter.js +130 -0
- package/dist/scatter/scatterModels.d.ts +25 -0
- package/dist/scatter/scatterModels.js +61 -0
- package/dist/scatter/scatterProxies.d.ts +6 -0
- package/dist/scatter/scatterProxies.js +94 -0
- package/dist/scatter.d.ts +1 -0
- package/dist/scatter.js +1 -0
- package/dist/scene/AuthoredScene.d.ts +82 -0
- package/dist/scene/AuthoredScene.js +173 -0
- package/dist/scene/GeneratedAssetRenderer.d.ts +14 -0
- package/dist/scene/GeneratedAssetRenderer.js +59 -0
- package/dist/scene/GrassFieldRenderer.d.ts +2 -0
- package/dist/scene/GrassFieldRenderer.js +25 -0
- package/dist/scene/SoilPatchRenderer.d.ts +2 -0
- package/dist/scene/SoilPatchRenderer.js +21 -0
- package/dist/scene/StudioStage.d.ts +37 -0
- package/dist/scene/StudioStage.js +42 -0
- package/dist/scene/WaterRenderer.d.ts +2 -0
- package/dist/scene/WaterRenderer.js +37 -0
- package/dist/scene/builtinSceneKindRenderers.d.ts +2 -0
- package/dist/scene/builtinSceneKindRenderers.js +22 -0
- package/dist/scene/sceneKindRenderers.d.ts +28 -0
- package/dist/scene/sceneKindRenderers.js +17 -0
- package/dist/scene.d.ts +1 -0
- package/dist/scene.js +1 -0
- package/dist/settings/appliedSettings.d.ts +5 -0
- package/dist/settings/appliedSettings.js +9 -0
- package/dist/settings/settingsController.d.ts +2 -0
- package/dist/settings/settingsController.js +22 -1
- package/dist/shellConstants.d.ts +4 -0
- package/dist/shellConstants.js +4 -0
- package/dist/shellMovement.d.ts +8 -0
- package/dist/shellMovement.js +11 -0
- package/dist/shellPointer.d.ts +20 -0
- package/dist/shellPointer.js +28 -0
- package/dist/structures/PlacementGhost.d.ts +4 -0
- package/dist/structures/PlacementGhost.js +4 -0
- package/dist/structures/TransformGizmo.d.ts +43 -0
- package/dist/structures/TransformGizmo.js +55 -0
- package/dist/structures/index.d.ts +1 -0
- package/dist/structures/index.js +1 -0
- package/dist/terrain/GrassField.js +1 -1
- package/dist/terrain/TerraformBrushCursor.js +3 -0
- package/dist/terrain/grassBudget.d.ts +11 -2
- package/dist/terrain/grassBudget.js +20 -4
- package/dist/terrain/grassGeometry.d.ts +3 -0
- package/dist/terrain/grassGeometry.js +3 -0
- package/dist/terrain/grassMaterial.d.ts +2 -0
- package/dist/terrain/grassMaterial.js +2 -0
- package/dist/terrain/random.d.ts +3 -0
- package/dist/terrain/random.js +3 -0
- package/dist/terrain/soilPatchMaterial.d.ts +10 -0
- package/dist/terrain/soilPatchMaterial.js +109 -0
- package/dist/terrain/terrainDetailMaterial.d.ts +19 -2
- package/dist/terrain/terrainDetailMaterial.js +72 -5
- package/dist/terrain/terrainMath.d.ts +8 -1
- package/dist/terrain/terrainMath.js +8 -1
- package/dist/touch/TouchControlsOverlay.d.ts +9 -5
- package/dist/touch/TouchControlsOverlay.js +201 -22
- package/dist/useShellMultiplayerSync.d.ts +9 -0
- package/dist/useShellMultiplayerSync.js +98 -0
- package/dist/visibility/CullingProvider.js +1 -1
- package/dist/water/OceanConfig.d.ts +2 -0
- package/dist/water/OceanConfig.js +2 -0
- package/dist/weather/fireSpreadPose.d.ts +1 -0
- package/dist/weather/fireSpreadPose.js +1 -0
- package/dist/weather/weatherGeometry.d.ts +1 -0
- package/dist/weather/weatherGeometry.js +1 -0
- package/dist/weather/weatherMath.d.ts +3 -0
- package/dist/weather/weatherMath.js +3 -0
- package/dist/weather/weatherUniforms.d.ts +3 -0
- package/dist/weather/weatherUniforms.js +3 -0
- package/dist/world/RetainedVfx.d.ts +10 -0
- package/dist/world/RetainedVfx.js +136 -0
- package/dist/world/WorldHud.d.ts +49 -2
- package/dist/world/WorldHud.js +87 -2
- package/dist/world/WorldScene.d.ts +21 -0
- package/dist/world/WorldScene.js +159 -0
- package/dist/world/WorldVfx.d.ts +9 -0
- package/dist/world/WorldVfx.js +184 -0
- package/dist/world/entityPose.d.ts +2 -0
- package/dist/world/entityPose.js +2 -0
- package/dist/world/floatTextStyle.d.ts +1 -0
- package/dist/world/floatTextStyle.js +1 -0
- package/dist/world/telegraphPulse.d.ts +1 -0
- package/dist/world/telegraphPulse.js +1 -0
- package/dist/world/worldBarSamples.d.ts +25 -0
- package/dist/world/worldBarSamples.js +38 -0
- package/dist/worldSky.d.ts +5 -0
- package/dist/worldSky.js +11 -0
- package/dist/worldSync.d.ts +2 -1
- package/dist/worldSync.js +2 -1
- package/package.json +6 -6
- package/skills/jgengine/SKILL.md +51 -0
- package/skills/jgengine/api.md +434 -0
- package/skills/jgengine/capabilities.md +29 -0
- package/skills/jgengine/reference-cartridge.md +72 -0
- package/skills/jgengine-ui/SKILL.md +36 -0
- package/skills/jgengine-ui/api.md +1852 -0
- package/skills/jgengine-ui/capabilities.md +142 -0
- package/skills/jgengine-ui/reference.md +500 -0
- package/skills/jgengine-ui/references/visual-scorecard.md +73 -0
- package/skills/jgengine-world/SKILL.md +38 -0
- package/skills/jgengine-world/api.md +2652 -0
- package/skills/jgengine-world/capabilities.md +370 -0
- package/skills/jgengine-world/reference.md +222 -0
- package/llms.txt +0 -2761
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/gen-capability-index.ts — do not edit. Regenerate: bun run gen:capabilities -->
|
|
2
|
+
|
|
3
|
+
# jgengine-ui — capability index
|
|
4
|
+
|
|
5
|
+
Reach for these before hand-rolling. Each row is *the thing you need* → *the primitive that already does it*.
|
|
6
|
+
|
|
7
|
+
## action-bar — drop-in cooldown/cost/hotkey action bar over the headless action model
|
|
8
|
+
|
|
9
|
+
- `ActionBar` (function) · `import { ActionBar } from "@jgengine/react"`
|
|
10
|
+
|
|
11
|
+
## action-bar-chrome — accessible grid/list toolbar renderer over an action-bar model with swappable item chrome
|
|
12
|
+
|
|
13
|
+
- `ActionBarChrome` (function) · `import { ActionBarChrome } from "@jgengine/react"`
|
|
14
|
+
|
|
15
|
+
## action-bar-model — headless action-collection model with focus, hover, keyboard, and hotkey routing
|
|
16
|
+
|
|
17
|
+
- `useActionBar` (function) · `import { useActionBar } from "@jgengine/react"`
|
|
18
|
+
|
|
19
|
+
## action-button — cooldown/cost/hotkey action button with complete interaction states
|
|
20
|
+
|
|
21
|
+
- `ActionButton` (function) · `import { ActionButton } from "@jgengine/react"`
|
|
22
|
+
|
|
23
|
+
## action-from-ability-slot — adapt a combat ability-kit snapshot into an action-bar action def
|
|
24
|
+
|
|
25
|
+
- `actionFromAbilitySlot` (function) · `import { actionFromAbilitySlot } from "@jgengine/react"`
|
|
26
|
+
|
|
27
|
+
## action-tooltip — structured action tooltip body (title, cost, cooldown, blocking notes)
|
|
28
|
+
|
|
29
|
+
- `ActionTooltip` (function) · `import { ActionTooltip } from "@jgengine/react"`
|
|
30
|
+
|
|
31
|
+
## clock-format — format a signed time gap like a race split (+/- m:ss.ff)
|
|
32
|
+
|
|
33
|
+
- `formatDelta` (function) · `import { formatDelta } from "@jgengine/core/ui"`
|
|
34
|
+
- `formatDuration` (function) · `import { formatDuration } from "@jgengine/core/ui"`
|
|
35
|
+
|
|
36
|
+
## controls-list — keybind-derived control legend that hides on touch
|
|
37
|
+
|
|
38
|
+
- `ControlsList` (function) · `import { ControlsList } from "@jgengine/react"`
|
|
39
|
+
|
|
40
|
+
## default-look — one field that lights a scene like a shipped game (opt out with "flat")
|
|
41
|
+
|
|
42
|
+
- `LookPreset` (type) · `import { LookPreset } from "@jgengine/core/ui"`
|
|
43
|
+
|
|
44
|
+
## distance-format — render meters as m or km for HUD stats, telemetry, and range readouts
|
|
45
|
+
|
|
46
|
+
- `formatDistance` (function) · `import { formatDistance } from "@jgengine/core/ui"`
|
|
47
|
+
|
|
48
|
+
## entity-portrait — selectable entity portrait tile with vitals and selected/focus states
|
|
49
|
+
|
|
50
|
+
- `EntityPortrait` (function) · `import { EntityPortrait } from "@jgengine/react"`
|
|
51
|
+
|
|
52
|
+
## entity-render-cues — live velocity/bob/fire/reload/hit/death cues for a custom renderEntity or viewmodel component
|
|
53
|
+
|
|
54
|
+
- `useEntityRenderCues` (function) · `import { useEntityRenderCues } from "@jgengine/shell/render/useEntityRenderCues"`
|
|
55
|
+
|
|
56
|
+
## entity-summary — primary selected-entity detail panel (name, tags, vitals)
|
|
57
|
+
|
|
58
|
+
- `EntitySummary` (function) · `import { EntitySummary } from "@jgengine/react"`
|
|
59
|
+
|
|
60
|
+
## event-meter-hud — render a core event/heat meter's live value, fraction, tier, and ready state in a HUD gauge
|
|
61
|
+
|
|
62
|
+
- `useEventMeter` (function) · `import { useEventMeter } from "@jgengine/react"`
|
|
63
|
+
|
|
64
|
+
## key-hint — keyboard/mouse control hint that hides itself on touch
|
|
65
|
+
|
|
66
|
+
- `KeyHint` (function) · `import { KeyHint } from "@jgengine/react"`
|
|
67
|
+
|
|
68
|
+
## keycap — styled keyboard/mouse key cap for control hints
|
|
69
|
+
|
|
70
|
+
- `Keycap` (function) · `import { Keycap } from "@jgengine/react"`
|
|
71
|
+
|
|
72
|
+
## minimap — framed circular minimap with terrain bake, fog, markers, and facing arrow
|
|
73
|
+
|
|
74
|
+
- `Minimap` (function) · `import { Minimap } from "@jgengine/react"`
|
|
75
|
+
|
|
76
|
+
## minimap-chrome — ring frame plus edge-clamped, heading-aware marker dots to nest inside a game's own `<svg>`
|
|
77
|
+
|
|
78
|
+
- `MinimapChrome` (function) · `import { MinimapChrome } from "@jgengine/react"`
|
|
79
|
+
|
|
80
|
+
## minimap-panel — circular minimap with zone label, clock, and compass composed together
|
|
81
|
+
|
|
82
|
+
- `MinimapPanel` (function) · `import { MinimapPanel } from "@jgengine/react"`
|
|
83
|
+
|
|
84
|
+
## nameplates — billboarded name + HP bar over nearby entities
|
|
85
|
+
|
|
86
|
+
- `WorldNameplates` (function) · `import { WorldNameplates } from "@jgengine/shell/world/WorldHud"`
|
|
87
|
+
|
|
88
|
+
## ordinal-format — format a placement number as 1st/2nd/3rd for HUD ranks
|
|
89
|
+
|
|
90
|
+
- `formatOrdinal` (function) · `import { formatOrdinal } from "@jgengine/core/ui"`
|
|
91
|
+
|
|
92
|
+
## placement-ghost — render valid/invalid placement preview mesh
|
|
93
|
+
|
|
94
|
+
- `PlacementGhost` (function) · `import { PlacementGhost } from "@jgengine/shell/structures"`
|
|
95
|
+
|
|
96
|
+
## popover — viewport-flipping, viewport-clamped anchored popover/tooltip shell
|
|
97
|
+
|
|
98
|
+
- `Popover` (function) · `import { Popover } from "@jgengine/react"`
|
|
99
|
+
|
|
100
|
+
## resolve-game-look — expand a look preset into concrete lighting/backdrop/post knobs
|
|
101
|
+
|
|
102
|
+
- `resolveGameLook` (function) · `import { resolveGameLook } from "@jgengine/core/ui"`
|
|
103
|
+
|
|
104
|
+
## selection-collection — accessible portrait-strip / group-chip renderer over a selection model
|
|
105
|
+
|
|
106
|
+
- `SelectionCollectionChrome` (function) · `import { SelectionCollectionChrome } from "@jgengine/react"`
|
|
107
|
+
|
|
108
|
+
## selection-group-chip — same-kind selection chip (icon + count) for a grouped selection
|
|
109
|
+
|
|
110
|
+
- `SelectionGroupChip` (function) · `import { SelectionGroupChip } from "@jgengine/react"`
|
|
111
|
+
|
|
112
|
+
## selection-model — headless multi-entity selection model with primary focus, grouping, and virtualization
|
|
113
|
+
|
|
114
|
+
- `useSelectionView` (function) · `import { useSelectionView } from "@jgengine/react"`
|
|
115
|
+
|
|
116
|
+
## selection-panel — drop-in selection panel: primary summary beside a portrait strip / group chips
|
|
117
|
+
|
|
118
|
+
- `SelectionPanel` (function) · `import { SelectionPanel } from "@jgengine/react"`
|
|
119
|
+
|
|
120
|
+
## speed-format — render a m/s speed as km/h, mph, knots, or m/s for speedometers and telemetry HUDs
|
|
121
|
+
|
|
122
|
+
- `formatSpeed` (function) · `import { formatSpeed } from "@jgengine/core/ui"`
|
|
123
|
+
|
|
124
|
+
## start-screen — headless title/attract overlay the game fills and skins
|
|
125
|
+
|
|
126
|
+
- `StartScreen` (function) · `import { StartScreen } from "@jgengine/react"`
|
|
127
|
+
|
|
128
|
+
## studio-stage — cinematic lighting rig + backdrop + turntable for parametric studios
|
|
129
|
+
|
|
130
|
+
- `StudioStage` (function) · `import { StudioStage } from "@jgengine/shell/scene/StudioStage"`
|
|
131
|
+
|
|
132
|
+
## transform-gizmo — in-game select/move/rotate/scale gizmo
|
|
133
|
+
|
|
134
|
+
- `TransformGizmo` (const) · `import { TransformGizmo } from "@jgengine/shell/structures"`
|
|
135
|
+
|
|
136
|
+
## vital-bar — compact current/max vital meter for an entity summary
|
|
137
|
+
|
|
138
|
+
- `VitalBar` (function) · `import { VitalBar } from "@jgengine/react"`
|
|
139
|
+
|
|
140
|
+
## world-object-highlights — ground-ring highlight over every selected placed object
|
|
141
|
+
|
|
142
|
+
- `WorldObjectHighlights` (function) · `import { WorldObjectHighlights } from "@jgengine/shell/world/WorldHud"`
|