Sync public_surface.txt and drop unused import in chat_gate

Remove unused bail import in chat_gate.rs and synchronize
tests/public_surface.txt with the current mind-body library surface.
This commit is contained in:
Meta Vens 2026-12-06 08:22:43 +01:00
commit 232d6e3e15
2 changed files with 15 additions and 8 deletions

View file

@ -11,7 +11,7 @@ use std::collections::{BTreeMap, BTreeSet};
use std::fs;
use std::path::{Path, PathBuf};
use anyhow::{Context, Result, anyhow, bail, ensure};
use anyhow::{Context, Result, anyhow, ensure};
use chrono::DateTime;
use eureka_pipeline::Slug;
use serde::{Deserialize, Serialize};

View file

@ -101,15 +101,15 @@ mind_body::chat_client: struct MouthRefused # [derive (Clone , Copy , Debug , Pa
mind_body::chat_client: struct ReplyTo # [derive (Clone , Debug , PartialEq , Eq , Serialize)] pub-fields[event_id: String, sender: String, excerpt: Option < String >, at_cap: bool]
mind_body::chat_client: struct SendBasis # [derive (Clone , Debug , PartialEq , Eq , Serialize , Deserialize)] pub-fields[seen_event_id: Option < String >, since_unix_ms: u64]
mind_body::chat_client: struct TailLine # [derive (Clone , Debug , PartialEq , Eq , Serialize , Deserialize)] pub-fields[room: String, event_id: String, at_unix_ms: u64, sender: String, form: Form, basis: Option < Basis >, body: String, reply_to: ReplyLink]
mind_body::chat_gate: # [derive (Clone , Debug , PartialEq , Eq , Serialize , Deserialize)] # [serde (tag = "op" , rename_all = "snake_case" , deny_unknown_fields)] pub enum Request { Pending { ack : bool , } , Tail { room : Option < String > , } , Say { room : String , text : Option < String > , resend : Option < String > , } , Ack { through : u64 , } , MarkRead { room : String , event : String , at_unix_ms : u64 , } , OpenDirect { user : String , text : String , } , Status , }
mind_body::chat_gate: # [derive (Clone , Debug , PartialEq , Eq , Serialize , Deserialize)] # [serde (tag = "op" , rename_all = "snake_case" , deny_unknown_fields)] pub enum Request { Pending { ack : bool } , Tail { room : Option < String > } , Say { room : String , text : Option < String > , resend : Option < String > } , Ack { through : u64 } , MarkRead { room : String , event : String , at_unix_ms : u64 } , OpenDirect { user : String , text : String } , Status , }
mind_body::chat_gate: const STATE_FILE : & str
mind_body::chat_gate: const UNSETTLED_WINDOW_S : i64
mind_body::chat_gate: fn call_socket (socket : & Path , request : & Request) -> Result < Answer >
mind_body::chat_gate: fn serve_gate (config : Config , chat : impl Chat , socket : & Path , now_ms : impl Fn () -> u64) -> Result < () >
mind_body::chat_gate: impl Answer
mind_body::chat_gate: impl Engine < C >: fn handle (& mut self , request : Request , now_ms : u64) -> Result < Answer >
mind_body::chat_gate: impl Engine < C >: fn open (config : Config , chat : C , now_ms : u64) -> Result < Self >
mind_body::chat_gate: impl< C : Chat > Engine < C >
mind_body::chat_gate: impl< C : Chat > Engine < C >: fn handle (& mut self , request : Request , now_ms : u64) -> Result < Answer >
mind_body::chat_gate: impl< C : Chat > Engine < C >: fn open (config : Config , chat : C , now_ms : u64) -> Result < Self >
mind_body::chat_gate: struct Answer # [derive (Clone , Debug , PartialEq , Eq , Serialize , Deserialize)] pub-fields[exit: u8, stdout: String, stderr: String]
mind_body::chat_gate: struct Config # [derive (Clone , Debug , PartialEq , Eq)] pub-fields[instance: Slug, state_dir: PathBuf, minds: Vec < String >, operators: Vec < String >, own_sender: String, daily_cap: Option < u32 >]
mind_body::chat_gate: struct Engine< C : Chat > pub-fields[]
@ -231,7 +231,7 @@ mind_body::lease_client: struct LeaseRequest # [derive (Clone , Debug , PartialE
mind_body::lease_client: struct SocketLender pub-fields[]
mind_body::lease_client: struct TokenFd pub-fields[]
mind_body::lease_client::socket: impl Lease for Granted
mind_body::persona: # [derive (Debug , PartialEq , Eq)] pub enum Outcome { Dead (HeldReason) , Drained { wakes : usize , acked_through : Option < u64 > } , Failed (String) , }
mind_body::persona: # [derive (Debug , PartialEq , Eq)] pub enum Outcome { Dead (HeldReason) , Drained { wakes : usize , turns : usize , ended : Option < End > , acked_through : Option < u64 > } , Held { until : DateTime < Utc > } , Failed (String) , }
mind_body::persona: const AGENT : & str
mind_body::persona: const ENV_MINDS : & str
mind_body::persona: const ENV_MODEL : & str
@ -257,11 +257,16 @@ mind_body::persona: impl TraceView for TraceSnapshot
mind_body::persona: impl fmt :: Display for Outcome
mind_body::persona: pub trait Trace : TraceView { fn record (& self , key : & str , record : & Value) -> Result < () > ; }
mind_body::persona: pub trait TraceView { fn records (& self) -> Result < Vec < Value > > ; }
mind_body::persona: pub use live :: End ;
mind_body::persona: struct Config # [derive (Clone , Debug , PartialEq , Eq)] pub-fields[rooms: Vec < String >, operators: Vec < String >, minds: Vec < String >, own_sender: String, model: String, review_room: Option < String >]
mind_body::persona: struct FileTrace pub-fields[]
mind_body::persona: struct Start< C : Chat > pub-fields[config: Config, persona: Box < dyn PersonaStore >, chat: C, trace: Box < dyn Trace >, addressing: Option < Box < dyn HeartbeatView > >, model: Box < dyn Model >, agent: Box < dyn Steps >, domain: Option < Box < dyn DomainSource > >, reads: Option < Box < dyn ReadSource > >, tuning: PathBuf, session: PathBuf, box_socket: PathBuf, clock: Box < dyn Fn () -> DateTime < Utc > >]
mind_body::persona: struct Start< C : Chat > pub-fields[config: Config, persona: Box < dyn PersonaStore >, chat: C, trace: Box < dyn Trace >, addressing: Option < Box < dyn HeartbeatView > >, model: Box < dyn Model >, agent: Box < dyn Steps >, domain: Option < Box < dyn DomainSource > >, reads: Option < Box < dyn ReadSource > >, tuning: PathBuf, session: PathBuf, box_socket: PathBuf, clock: Box < dyn Fn () -> DateTime < Utc > >, pause: Box < dyn Fn (std :: time :: Duration) >]
mind_body::persona: struct TraceSnapshot pub-fields[]
mind_body::persona: struct TurnRecord # [derive (Clone , Debug , PartialEq , DatabaseEntry)] pub-fields[value: Value]
mind_body::persona::live: # [derive (Clone , Copy , Debug , PartialEq , Eq)] pub enum End { Failed , DayCap , Spend , Span , Idle , }
mind_body::persona::live: impl End
mind_body::persona::live: impl Hearing < '_ >
mind_body::persona::live: impl std :: fmt :: Display for End
mind_body::projection: # [derive (Clone , Copy , Debug , Default , PartialEq , Eq , serde :: Deserialize)] # [serde (rename_all = "snake_case")] pub enum Through { # [default] Projector , Persona , }
mind_body::projection: # [derive (Debug , PartialEq , Eq)] pub enum Put { Committed , Stale , Refused (String) , }
mind_body::projection: fn project (organs : & Organs , request : & Request , now : DateTime < Utc >) -> Result < Value >
@ -314,7 +319,7 @@ mind_body::projection::agent: struct Receipt # [derive (Clone , Debug , PartialE
mind_body::projection::agent: struct Session # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[items: Vec < InputItem >, digest: String, retention: CacheRetention, created_at: DateTime < Utc >, last_call_at: DateTime < Utc >, last_usage: Option < Spent >]
mind_body::projection::agent: struct TraceLedger< 'a > pub-fields[]
mind_body::projection::agent: struct Turn # [derive (Clone , Debug , PartialEq)] pub-fields[ended: Ended, text: String, receipts: Vec < Receipt >, model_calls: usize, tool_calls: usize, usd: f64]
mind_body::projection::agent: struct Wake< 'a > pub-fields[id: & 'a str, instructions: & 'a str, input: & 'a str, fresh: & 'a str]
mind_body::projection::agent: struct Wake< 'a > pub-fields[id: & 'a str, wake: & 'a str, instructions: & 'a str, opening: & 'a str, input: & 'a str, fresh: & 'a str, first: bool]
mind_body::projection::agent::read: impl Executor for Read < '_ >
mind_body::projection::agent::read: struct Read< 'a > pub-fields[source: Option < & 'a dyn ReadSource >, since: DateTime < Utc >]
mind_body::projection::agent::request_tool: impl Executor for RequestTool
@ -407,6 +412,8 @@ mind_body::projection::select: impl< 'a > Inputs < 'a >
mind_body::projection::simulate: fn simulate (harness : & Harness , plan_path : & Path) -> Result < String >
mind_body::projection::simulate: impl HeartbeatView for Names < '_ >
mind_body::projection::simulate: impl MouthReader for View < '_ >
mind_body::projection::simulate: impl PersonaSource for InRun
mind_body::projection::simulate: impl PersonaStore for InRun
mind_body::projection::simulate: impl ReadSource for CastReads < '_ >
mind_body::projection::tuning: const TUNING_FILE : & str
mind_body::projection::tuning: const TUNING_ROOT : & str
@ -423,7 +430,7 @@ mind_body::projection::tuning: impl Default for SelectTuning
mind_body::projection::tuning: impl Default for Tuning
mind_body::projection::tuning: impl Price
mind_body::projection::tuning: impl Tuning
mind_body::projection::tuning: struct AgentTuning # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[model: String, tool_calls: usize, model_calls: usize, wake_usd: f64, day_usd: f64, max_session_tokens: u64, retention: CacheRetention, ttl_s: CacheTtl, cache_min_tokens: u64, prices: BTreeMap < String , Price >]
mind_body::projection::tuning: struct AgentTuning # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[model: String, tool_calls: usize, model_calls: usize, wake_usd: f64, day_usd: f64, unmetered_usd: f64, idle_s: u64, span_s: u64, max_session_tokens: u64, retention: CacheRetention, ttl_s: CacheTtl, cache_min_tokens: u64, prices: BTreeMap < String , Price >]
mind_body::projection::tuning: struct CacheTtl # [derive (Clone , Copy , Debug , PartialEq , Eq , Serialize , Deserialize)] pub-fields[short: u64, long: u64]
mind_body::projection::tuning: struct InterpreterTuning # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[model: String]
mind_body::projection::tuning: struct LensWeights # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[body_and_hour: f64, person_present: f64, unresolved_want: f64, memory_surfacing: f64, wondering: f64]