Skip to main content

punch_types/
lib.rs

1pub mod a2a;
2pub mod approval;
3pub mod audit;
4pub mod browser;
5pub mod capability;
6pub mod cdp;
7pub mod config;
8pub mod coordinator;
9pub mod creed;
10pub mod error;
11pub mod event;
12pub mod fighter;
13pub mod gorilla;
14pub mod hot_reload;
15pub mod image_gen;
16pub mod link;
17pub mod media;
18pub mod message;
19pub mod model_catalog;
20pub mod patch;
21pub mod prompt_guard;
22pub mod provider_health;
23pub mod reply;
24pub mod sandbox;
25pub mod secret_store;
26pub mod signing;
27pub mod ssrf;
28pub mod taint;
29pub mod tenant;
30pub mod tool;
31pub mod tool_policy;
32pub mod troop;
33pub mod workspace;
34
35pub use a2a::{
36    A2AAuth, A2AClient, A2AMessage, A2ARegistry, A2ATask, A2ATaskInput, A2ATaskOutput,
37    A2ATaskStatus, AgentCard, HttpA2AClient,
38};
39pub use approval::{
40    ApprovalDecision, ApprovalHandler, ApprovalPolicy, ApprovalRequest, AutoApproveHandler,
41    DenyAllHandler, PolicyEngine, RiskLevel,
42};
43pub use audit::{AuditAction, AuditEntry, AuditLog, AuditVerifyError};
44pub use browser::{
45    BrowserAction, BrowserConfig, BrowserDriver, BrowserPool, BrowserResult, BrowserSession,
46    BrowserState,
47};
48pub use capability::{Capability, CapabilityGrant};
49pub use cdp::{
50    CdpBrowserDriver, CdpCommand, CdpConfig, CdpError, CdpResponse, CdpSession, CdpTargetInfo,
51    build_click_command, build_evaluate_command, build_get_content_command, build_get_html_command,
52    build_navigate_command, build_screenshot_command, build_type_text_command,
53    build_wait_for_selector_command, chrome_candidate_paths, find_chrome,
54};
55pub use config::{ModelConfig, Provider, PunchConfig};
56pub use coordinator::{AgentCoordinator, AgentInfo, AgentMessageResult};
57pub use creed::{
58    Creed, CreedId, DelegationRule, HeartbeatTask, InteractionStyle, LearnedBehavior, Relationship,
59    SelfModel,
60};
61pub use error::{PunchError, PunchResult};
62pub use event::{EventPayload, PunchEvent};
63pub use fighter::{FighterId, FighterManifest, FighterStats, FighterStatus, WeightClass};
64pub use gorilla::{
65    GorillaId, GorillaManifest, GorillaMetrics, GorillaStatus, capabilities_from_move,
66};
67pub use hot_reload::{
68    ConfigChange, ConfigChangeSet, ConfigValidationError, ConfigWatcher, ValidationSeverity,
69    diff_configs, validate_config,
70};
71pub use image_gen::{ImageFormat, ImageGenRequest, ImageGenResult, ImageGenerator, ImageStyle};
72pub use link::{LinkContent, LinkContentType, LinkExtractor, LinkMetadata};
73pub use media::{
74    AudioMimeType, ImageMimeType, MediaAnalysis, MediaAnalyzer, MediaInput, MediaType,
75};
76pub use message::{Message, Role, ToolCall, ToolCallResult};
77pub use model_catalog::{
78    ModelCapability, ModelCatalog, ModelInfo, ModelPricing, ModelRequirements, ModelUsageStats,
79};
80pub use patch::{
81    ConflictType, FilePatch, PatchConflict, PatchHunk, PatchLine, PatchSet, apply_patch,
82    apply_patch_fuzzy, generate_unified_diff, parse_unified_diff, reverse_patch, validate_patch,
83};
84pub use prompt_guard::{
85    InjectionAlert, InjectionPattern, InjectionSeverity, PromptGuard, PromptGuardConfig,
86    PromptGuardResult, RecommendedAction, ScanDecision, ThreatLevel,
87};
88pub use provider_health::{
89    CircuitBreakerConfig, HealthStatus, ProviderHealth, ProviderHealthMonitor,
90};
91pub use reply::{ReplyDirective, ReplyFormat, ReplyTone, apply_directive};
92pub use sandbox::{SandboxConfig, SandboxEnforcer, SandboxViolation};
93pub use secret_store::{
94    EnvSecretProvider, FileSecretProvider, Secret, SecretProvider, SecretProviderError,
95    SecretStore, SecretString, mask_secret,
96};
97pub use signing::{
98    SignedManifest, SigningError, SigningKeyPair, generate_keypair, sign_and_wrap, sign_manifest,
99    verify_manifest, verify_signed_manifest, verifying_key_from_hex,
100};
101pub use ssrf::{SsrfProtector, SsrfViolation};
102pub use taint::{
103    Sensitivity, ShellBleedDetector, ShellBleedWarning, TaintLabel, TaintSource, TaintTracker,
104};
105pub use tenant::{Tenant, TenantId, TenantQuota, TenantStatus};
106pub use tool::{ToolCategory, ToolDefinition, ToolResult};
107pub use tool_policy::{
108    PolicyCondition, PolicyDecision, PolicyEffect, PolicyRule, PolicyScope, ToolPolicyEngine,
109};
110pub use troop::{
111    AgentMessage, AgentMessageType, AuctionBid, CoordinationStrategy, MessageChannel,
112    MessagePriority, RestartStrategy, SelectionCriteria, SubtaskStatus, SwarmSubtask, SwarmTask,
113    Troop, TroopId, TroopStatus,
114};
115pub use workspace::{ActiveFile, ChangeType, FileChange, GitInfo, ProjectType, WorkspaceContext};