docs: tambah doc comment, logging, dan inline comments di semua 255 file
Meliputi: - File-level //! doc comment: tujuan file, alur kerja, komponen utama - Function-level /// doc comment: apa, parameter, return, flow, edge cases - Struct/enum/trait /// doc comment: peran, field docs - Tracing logging (tracing::info!/debug!/trace!/warn!/error!) di setiap fungsi - Inline comments untuk variable dan branching logic penting - Seluruh 8 crates di workspace: zesdex-backend, zesdex-cms, zesdex-entities, zesdex-iam, zesdex-infra, zesdex-ipc, zesdex-middleware, zesdex-utils - Build: 0 errors, 242/242 tests passed
This commit is contained in:
@@ -1,15 +1,26 @@
|
||||
//! Compile-time embedded text resources: the system prompt, tool descriptions,
|
||||
//! and the in-app help screen shown on Ctrl+H.
|
||||
|
||||
/// System prompt that defines the agent's core identity and behavior.
|
||||
pub const SYSTEM_PROMPT: &str = include_str!("../src-misc/system-prompt.txt");
|
||||
|
||||
/// Tool descriptions injected into the system message for function-calling.
|
||||
pub const SYSTEM_TOOLS: &str = include_str!("../src-misc/system-tools.txt");
|
||||
|
||||
/// Prompt templates for auto-subagent types (inline quick review,
|
||||
/// test generation, architecture review, security review).
|
||||
/// Prompt template used by the inline quick-review subagent.
|
||||
pub const AUTO_REVIEWER_PROMPT: &str = include_str!("../src-misc/auto-reviewer-prompt.txt");
|
||||
|
||||
/// Prompt template used by the test-generation subagent (fired asynchronously
|
||||
/// at the end of each turn).
|
||||
pub const TEST_GENERATOR_PROMPT: &str = include_str!("../src-misc/test-generator-prompt.txt");
|
||||
|
||||
/// Prompt template used by the architecture-review subagent.
|
||||
pub const ARCH_REVIEWER_PROMPT: &str = include_str!("../src-misc/arch-reviewer-prompt.txt");
|
||||
|
||||
/// Prompt template used by the security-review subagent.
|
||||
pub const SECURITY_REVIEWER_PROMPT: &str = include_str!("../src-misc/security-reviewer-prompt.txt");
|
||||
|
||||
/// In-app help screen text shown on Ctrl+H (navigation, input, commands).
|
||||
pub const HELP_TEXT: &str = "
|
||||
ZESDEX - Help
|
||||
=============
|
||||
|
||||
Reference in New Issue
Block a user