Expand description
Cross-Crate Integration Module
This module provides integration between Driven, Generator, and DCP crates, enabling seamless cross-crate operations and shared binary format compatibility.
§Features
- Driven tool registration in DCP
- Spec scaffolding with Generator templates
- Hook message passing via DCP
- DX ∞ binary format compatibility
§Usage
ⓘ
use driven::integration::{DrivenDcpBridge, SpecScaffolder, HookMessenger};
// Register driven tools in DCP
let mut bridge = DrivenDcpBridge::new(dcp_client);
bridge.register_driven_tools()?;
// Generate spec scaffolding
let scaffolder = SpecScaffolder::new(generator_bridge);
scaffolder.create_spec("feature-001", ¶ms)?;
// Send hook messages via DCP
let messenger = HookMessenger::new(dcp_client);
messenger.send_hook_message(&hook, &context)?;Structs§
- Binary
Format Checker - Binary format compatibility checker for DX ∞ format
- Cross
Crate Header - Binary format header for cross-crate compatibility
- Driven
DcpBridge - Bridge between Driven and DCP for tool registration and communication
- Driven
Tool - Driven tool definitions for DCP registration
- Hook
Message - A hook message to be sent via DCP
- Hook
Messenger - Hook messenger for sending hook messages via DCP
- Spec
Scaffold Result - Result of spec scaffolding
- Spec
Scaffolder - Spec scaffolder that integrates with Generator for template-based scaffolding
- Validation
Result - Result of binary format validation
Enums§
- Driven
Tool Category - Categories of Driven tools
- Source
Crate - Source crate identifiers