Skip to main content

chant/operations/
mod.rs

1//! Shared business logic layer for spec operations.
2//!
3//! This module provides the canonical implementation of spec operations,
4//! used by both CLI commands and MCP handlers to ensure consistency.
5
6pub mod archive;
7pub mod cancel;
8pub mod commits;
9pub mod create;
10pub mod finalize;
11pub mod model;
12pub mod pause;
13pub mod reset;
14pub mod update;
15pub mod verify;
16
17pub use archive::{archive_spec, ArchiveOptions};
18pub use cancel::{cancel_spec, CancelOptions};
19pub use commits::{
20    detect_agent_in_commit, get_commits_for_spec, get_commits_for_spec_allow_no_commits,
21    get_commits_for_spec_with_branch, get_commits_for_spec_with_branch_allow_no_commits,
22    AgentDetectionResult, CommitError,
23};
24pub use create::create_spec;
25pub use finalize::{finalize_spec, FinalizeOptions};
26pub use model::{get_model_name, get_model_name_with_default};
27pub use pause::{pause_spec, PauseOptions};
28pub use reset::{reset_spec, ResetOptions};
29pub use update::{update_spec, UpdateOptions};
30pub use verify::{
31    extract_acceptance_criteria, parse_verification_response,
32    update_spec_with_verification_results, verify_spec, CriterionResult, VerificationStatus,
33    VerifyOptions,
34};