Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "deepwiki-rs"
version = "1.2.6"
version = "1.2.7"
edition = "2024"

description = "deepwiki-rs(also known as Litho) is a high-performance automatic generation engine for C4 architecture documentation, developed using Rust. It can intelligently analyze project structures, identify core components, parse dependency relationships, and leverage large language models (LLMs) to automatically generate professional architecture documentation."
Expand Down
6 changes: 6 additions & 0 deletions src/types/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ pub enum CodePurpose {
Dao,
/// Context component
Context,
/// command-line interface (CLI) commandsx or message/request handlers
Command,
/// Other uncategorized or unknown
#[serde(alias = "unknown", alias = "misc", alias = "miscellaneous")]
Other,
Expand Down Expand Up @@ -185,6 +187,7 @@ impl CodePurpose {
CodePurpose::Types => "Program Interface Definition",
CodePurpose::Dao => "Data Access Layer Component",
CodePurpose::Context => "Context Component",
CodePurpose::Command => "Command",
}
}
}
Expand Down Expand Up @@ -339,6 +342,9 @@ impl CodePurposeMapper {
if name_lower.contains("readme") || name_lower.contains("doc") {
return CodePurpose::Doc;
}
if name_lower.contains("cli") || name_lower.contains("commands") {
return CodePurpose::Command;
}

CodePurpose::Other
}
Expand Down