Skip to main content

perspt_core/
lib.rs

1//! perspt-core: Core types and LLM provider abstraction
2
3pub mod config;
4pub mod events;
5pub mod llm_provider;
6pub mod memory;
7pub mod normalize;
8pub mod path;
9pub mod paths;
10pub mod plugin;
11pub mod types;
12
13pub use config::Config;
14pub use events::{ActionType, AgentAction, AgentEvent, NodeStatus};
15pub use llm_provider::{
16    detect_provider_from_env, GenAIProvider, LlmResponse, ResolvedProvider, EOT_SIGNAL,
17};
18pub use memory::ProjectMemory;
19pub use plugin::{
20    InitOptions, JsPlugin, LanguagePlugin, LspConfig, PluginRegistry, PythonPlugin, RustPlugin,
21};
22
23// Re-export commonly used types
24pub use types::{
25    AgentContext, AgentMessage, ArtifactKind, BehavioralContract, BlockedDependency,
26    BranchFlushRecord, BranchLineage, BudgetEnvelope, CommandContract, ContextBudget,
27    ContextPackage, ContextProvenance, Criticality, DependencyExpectation, EnergyComponents,
28    ErrorType, EscalationCategory, EscalationReport, FeatureCharter, InterfaceSealRecord,
29    ModelTier, NodeState, OwnershipManifest, PlanRevision, PlanRevisionStatus, PlannedContract,
30    PlannedTask, PlannedTest, PlanningPolicy, ProvisionalBranch, ProvisionalBranchState,
31    RepairFootprint, RestrictionMap, RetryPolicy, RewriteAction, RewriteRecord, SRBNNode,
32    SensorStatus, SessionOutcome, SheafValidationResult, SheafValidatorClass, StabilityMonitor,
33    StageOutcome, StructuralDigest, SummaryDigest, SummaryKind, TargetedRequeue, TaskPlan,
34    TaskType, TokenBudget, VerificationResult, WeightedTest, WorkspaceState,
35};