use super::*;
use crate::agents::registry::AgentRegistry;
use serde_json::json;
use std::sync::Arc;
#[cfg(feature = "deep-wasm")]
use crate::services::deep_wasm::{
AnalysisFocus, DeepWasmAnalysisRequest, DeepWasmService, ReportGenerator, SourceLanguage,
};
pub struct DeepWasmAnalyzeTool {
_registry: Arc<AgentRegistry>,
}
impl DeepWasmAnalyzeTool {
#[provable_contracts_macros::contract("pmat-core.yaml", equation = "check_compliance")]
pub fn new(registry: Arc<AgentRegistry>) -> Self {
Self {
_registry: registry,
}
}
}
pub struct DeepWasmQueryMappingTool {
_registry: Arc<AgentRegistry>,
}
impl DeepWasmQueryMappingTool {
#[provable_contracts_macros::contract("pmat-core.yaml", equation = "check_compliance")]
pub fn new(registry: Arc<AgentRegistry>) -> Self {
Self {
_registry: registry,
}
}
}
pub struct DeepWasmTraceExecutionTool {
_registry: Arc<AgentRegistry>,
}
impl DeepWasmTraceExecutionTool {
#[provable_contracts_macros::contract("pmat-core.yaml", equation = "check_compliance")]
pub fn new(registry: Arc<AgentRegistry>) -> Self {
Self {
_registry: registry,
}
}
}
pub struct DeepWasmCompareOptimizationsTool {
_registry: Arc<AgentRegistry>,
}
impl DeepWasmCompareOptimizationsTool {
#[provable_contracts_macros::contract("pmat-core.yaml", equation = "check_compliance")]
pub fn new(registry: Arc<AgentRegistry>) -> Self {
Self {
_registry: registry,
}
}
}
pub struct DeepWasmDetectIssuesTool {
_registry: Arc<AgentRegistry>,
}
impl DeepWasmDetectIssuesTool {
#[provable_contracts_macros::contract("pmat-core.yaml", equation = "check_compliance")]
pub fn new(registry: Arc<AgentRegistry>) -> Self {
Self {
_registry: registry,
}
}
}
include!("deep_wasm_tools_analyze.rs");
include!("deep_wasm_tools_query_mapping.rs");
include!("deep_wasm_tools_stub_tools.rs");
include!("deep_wasm_tools_tests.rs");