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
56 lines
2.0 KiB
Rust
56 lines
2.0 KiB
Rust
//! 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 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
|
|
=============
|
|
Navigation:
|
|
Ctrl+Q Quit
|
|
Ctrl+H Help (this screen)
|
|
Ctrl+P Settings
|
|
Ctrl+A Toggle yolo arm
|
|
Ctrl+B Bash panel
|
|
Ctrl+S Session hub
|
|
Ctrl+T Task list
|
|
Ctrl+W Workflow view
|
|
Ctrl+K Key input mode
|
|
Esc Cancel / back
|
|
Tab Autocomplete
|
|
Up/Down History navigation
|
|
|
|
Input:
|
|
/help Show help
|
|
/clear Clear screen
|
|
/model Select AI model provider
|
|
|
|
/todo Open task list
|
|
/usage Open usage details
|
|
/compact Compact conversation history
|
|
/exit Exit application
|
|
|
|
Commands:
|
|
Any text is sent to the AI assistant as a prompt.
|
|
File paths use workspace-relative notation.
|
|
Use [0]/path for multi-workspace setups.
|
|
";
|