Reference

API catalogue

Find the supported imports and choose the narrowest Yuka Kit primitive for the job.

All items below are exported from @jbdevprimary/yuka-kit unless an entry point is named explicitly. Prefer the smallest primitive that expresses the game rule; the library intentionally avoids a single opaque AI controller.

World and movement

NeedAPI
World lifecyclecreateEntityManager, manage, stepAI
VehiclescreateVehicle, createCombatVehicle
SteeringaddBaseBehaviors, addFlockingBehaviors, seek, flee, arrive, pursuit, evade, wander
Path followingfollowWaypoints, clearDirectionalBehaviors
Grid navigationastar
Sight and projectile safetycreateVisionSensor, inVisionCone, hasAabbLineOfSight2D, hasAabbProjectileClearance2D

State and arbitration

NeedAPI
Combat state machinecreateFsm, PatrolState, ChaseState, AttackState, FleeState, DeadState
Generic goalscreateBrain, BrainRegistry, evaluators, createBrainForType
Boss phasescreateBossBrain, BossBrain, BossPhaseConfig
Combat proposalsTacticalCombatAgent, BossTacticalAgent
Class playthrough decisionscreateClassGovernor, ClassGovernor

Content orchestration and persistence

NeedAPI
Encounter rollsEncounterDirector, generateFormation, SeededRandom
NPC schedulesRoutineAgent, resolveRoutineTarget, resolveStateAwareRoutineTarget
Snapshot validationvalidateFsmStateSnapshot, validateEncounterDirectorSnapshot, validateRoutineAgentSnapshot
Stable proposalsderiveDeterministicIdentity, validateSemanticCommandProposal, selectSemanticCommandProposal
Koota bridge@jbdevprimary/yuka-kit/koota: AIBridge, AIMemory, AIState, Intent, YukaRef
RPGJS Solo bridge@jbdevprimary/yuka-kit/solo: SoloAIBridge, SoloCommandAdapter, strict envelope helpers

Every returned AgentIntent is descriptive: it is not a side effect. See the agent integration contract for the validation and authority sequence.