factorio-sensei 0.1.4

AI coaching copilot for Factorio 2.x — connects to your live game via RCON and gives real-time advice powered by Claude
Documentation
//! Rig tools for reading Factorio game state via RCON.
//!
//! Each tool implements the [`rig::tool::Tool`] trait so it can be registered with
//! a Rig agent. Every tool holds a [`SharedRcon`](crate::SharedRcon) handle and
//! delegates Lua generation to [`crate::lua`], JSON transport to
//! [`crate::rcon_ext::execute_lua_json`], and deserialization to serde.
//!
//! Tools are read-only — they observe the game but never execute actions.

mod assemblers;
mod entities;
mod furnaces;
mod inventory;
mod position;
mod power;
mod production;
mod recipe;
mod research;
mod resources;

pub use assemblers::{GetAssemblers, GetAssemblersArgs};
pub use entities::{GetNearbyEntities, GetNearbyEntitiesArgs};
pub use furnaces::{GetFurnaces, GetFurnacesArgs};
pub use inventory::{GetPlayerInventory, GetPlayerInventoryArgs};
pub use position::{GetPlayerPosition, GetPlayerPositionArgs};
pub use power::{GetPowerStats, GetPowerStatsArgs};
pub use production::{GetProductionStats, GetProductionStatsArgs};
pub use recipe::{GetRecipe, GetRecipeArgs};
pub use research::{GetResearchStatus, GetResearchStatusArgs};
pub use resources::{GetNearbyResources, GetNearbyResourcesArgs};