Skip to main content

thread_flow/
lib.rs

1// SPDX-FileCopyrightText: 2025 Knitli Inc. <knitli@knit.li>
2// SPDX-License-Identifier: AGPL-3.0-or-later
3
4//! # Thread CocoIndex Integration
5//!
6//! This crate implements the bridge between Thread's imperative library and
7//! CocoIndex's declarative dataflow engine.
8//!
9//! It follows the Service-Library architecture using the following patterns:
10//! - **Adapter**: Wraps Thread logic in CocoIndex operators
11//! - **Bridge**: Implements thread-services traits using CocoIndex
12//! - **Builder**: Constructs analysis flows
13//! - **Strategy**: Handles runtime differences (CLI vs Edge)
14
15pub mod batch;
16pub mod bridge;
17pub mod cache;
18pub mod conversion;
19pub mod flows;
20pub mod functions;
21pub mod incremental;
22pub mod monitoring;
23pub mod registry;
24pub mod runtime;
25pub mod sources;
26pub mod targets;
27
28#[cfg(test)]
29// Re-exports
30pub use bridge::CocoIndexAnalyzer;
31pub use flows::builder::ThreadFlowBuilder;
32pub use registry::ThreadOperators;
33pub use runtime::{EdgeStrategy, LocalStrategy, RuntimeStrategy};