ito_core/lib.rs
1//! Core Ito application behavior.
2//!
3//! `ito-core` implements the main orchestration logic behind the CLI: reading and
4//! writing Ito state on disk, running workflows, validating inputs, and
5//! delegating to installers and harness integrations.
6//!
7//! This crate is intentionally "policy heavy" but "UI light": it defines the
8//! core semantics of commands without owning the CLI argument surface.
9
10#![warn(missing_docs)]
11
12/// Archive completed changes and update specifications.
13pub mod archive;
14
15/// Audit log infrastructure: writer, reader, reconciliation, worktree discovery.
16pub mod audit;
17
18/// Filesystem-backed change repository implementation.
19pub mod change_repository;
20
21/// JSON configuration file CRUD operations.
22pub mod config;
23
24/// Create new modules/changes and initial scaffolding.
25pub mod create;
26
27/// Distribution/build metadata helpers.
28pub mod distribution;
29
30/// Core-layer error types and result alias.
31pub mod errors;
32
33/// Git synchronization helpers for coordination workflows.
34pub mod git;
35
36mod error_bridge;
37
38/// Process execution boundary and default runner.
39pub mod process;
40
41/// Installers for project/home templates and harness assets.
42pub mod installers;
43
44/// List/query project entities (modules, changes, tasks).
45pub mod list;
46
47/// Filesystem-backed module repository implementation.
48pub mod module_repository;
49
50/// Planning directory initialization (filesystem I/O).
51pub mod planning_init;
52
53/// Filesystem-backed task repository implementation.
54pub mod task_repository;
55
56/// Clock helpers (`now_time`, `now_date`).
57pub mod time;
58
59/// Task-focused orchestration use-cases.
60pub mod tasks;
61
62/// Ralph Wiggum loop support.
63pub mod ralph;
64
65/// Indexing helpers for repository contents.
66pub mod repo_index;
67
68/// Display and inspection commands.
69pub mod show;
70
71/// Statistics collection and computation for command usage.
72pub mod stats;
73
74/// State management operations for `planning/STATE.md`.
75pub mod state;
76
77/// Validation utilities for on-disk state.
78pub mod validate;
79
80/// Schema templates execution and planning.
81pub mod templates;
82
83// Re-export domain types for CLI convenience
84pub use ito_domain::changes::{ChangeRepository, ChangeTargetResolution};
85pub use ito_domain::tasks::TaskRepository as DomainTaskRepository;
86
87/// Harness integrations for running AI-assisted workflows.
88pub mod harness;
89
90/// Re-exported schema types from [`ito_domain::schemas`].
91pub mod schemas {
92 pub use ito_domain::schemas::*;
93}
94
95/// Re-exported domain modules
96pub mod domain {
97 /// Planning domain module
98 pub use ito_domain::planning;
99 /// State domain module
100 pub use ito_domain::state;
101}
102
103// Re-export utility functions for CLI convenience
104pub use ito_common::id::parse_change_id;
105pub use ito_common::id::parse_module_id;
106pub use ito_common::match_::nearest_matches;
107
108/// Re-exported path utilities from [`ito_common::paths`].
109pub mod paths {
110 pub use ito_common::paths::changes_dir;
111 pub use ito_common::paths::spec_markdown_path;
112 pub use ito_common::paths::specs_dir;
113}