Skip to main content

Module integration

Module integration 

Source
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", &params)?;

// Send hook messages via DCP
let messenger = HookMessenger::new(dcp_client);
messenger.send_hook_message(&hook, &context)?;

Structs§

BinaryFormatChecker
Binary format compatibility checker for DX ∞ format
CrossCrateHeader
Binary format header for cross-crate compatibility
DrivenDcpBridge
Bridge between Driven and DCP for tool registration and communication
DrivenTool
Driven tool definitions for DCP registration
HookMessage
A hook message to be sent via DCP
HookMessenger
Hook messenger for sending hook messages via DCP
SpecScaffoldResult
Result of spec scaffolding
SpecScaffolder
Spec scaffolder that integrates with Generator for template-based scaffolding
ValidationResult
Result of binary format validation

Enums§

DrivenToolCategory
Categories of Driven tools
SourceCrate
Source crate identifiers