Expand description
Test-only constructors, seed helpers and dispatch interception for
Workspace, so tests here and cross-crate tests can drive a workspace
without a real subprocess.
Re-exportsΒ§
use std::collections::HashMap;πuse std::collections::HashSet;πuse std::path::PathBuf;πuse std::sync::Arc;πuse parking_lot::Mutex;πuse tokio::sync::mpsc;πuse crate::config::LoadedConfig;πuse crate::domain_session::PendingInteractions;πuse crate::protocol::SessionUpdate;πuse crate::target::ProjectKey;πuse crate::target::SessionSlot;πuse crate::update_fanout::SeatUpdate;πuse crate::update_fanout::SubscriberRole;πuse crate::update_fanout::UpdateFanout;πuse crate::workspace::KickRequest;πuse crate::workspace::PendingInteractionKind;πuse crate::workspace::PooledAgent;πuse crate::workspace::Workspace;πuse forge_gateway::AccountKey;πuse forge_primitives::SessionId;π
ConstantsΒ§
- TEST_
DOCUMENT_ πPATH - The path a seeded document hand-off parks at. The registration IS the state a seeder produces - nothing reads the file - so the fixture names one rather than touching disk.
- TEST_
TOOL_ ID - The tool id a parked test prompt answers to, so a test addresses the one it seeded rather than a key it has to know how the fixture built.
FunctionsΒ§
- set_
seat_ ring_ cap - Drive a seatβs frame window down, so a fixture reaches the transcript fallback without emitting a windowβs worth of frames. The window is otherwise the constant it ships as, and the module this sits in is the gate that keeps it out of production.
- test_
permission π - A permission prompt for a fixture to park on a seat: the smallest one a
dock can draw, carrying the id
TEST_TOOL_IDanswers to. A fixture is the only place a prompt is invented, so it says what it invents. - test_
prompt π test_permissionortest_questionwith a receiver nobody keeps.- test_
question π - The same, for a question.
- test_
tool_ πcall - The tool call a fixtureβs prompt is about.