diff --git a/PROMPT.md b/PROMPT.md index 866cf53..efc02a1 100644 --- a/PROMPT.md +++ b/PROMPT.md @@ -5,6 +5,32 @@ --- +## Version Management - CRITICAL + +**Current version is 6.1.0 - DO NOT CHANGE without explicit approval!** + +### Rules + +1. **Version is 6.1.0 across ALL workspace crates** +2. **NEVER change version without explicit user approval** +3. **All workspace crates share version 6.1.0** +4. **BotLib does not have migrations - all migrations are in botserver/** + +--- + +## Official Icons - Reference + +**BotLib does not contain icons.** Icons are managed in: +- `botui/ui/suite/assets/icons/` - Runtime UI icons +- `botbook/src/assets/icons/` - Documentation icons + +When documenting or referencing UI elements in BotLib: +- Reference icons by name (e.g., `gb-chat.svg`, `gb-drive.svg`) +- Never generate or embed icon content +- See `botui/PROMPT.md` for the complete icon list + +--- + ## Project Overview BotLib is the shared foundation library for the General Bots workspace. It provides common types, utilities, error handling, and optional integrations that are consumed by botserver, botui, and botapp. @@ -207,6 +233,24 @@ cargo test --- +## Final Checks Before Commit + +```bash +# Verify version is 6.1.0 +grep "^version" Cargo.toml | grep "6.1.0" + +# Build with all features +cargo build --all-features + +# Check for warnings +cargo check --all-features 2>&1 | grep warning + +# Run tests +cargo test --all-features +``` + +--- + ## Rules - Keep botlib minimal and focused @@ -214,4 +258,5 @@ cargo test - Feature gate all optional dependencies - Maintain backward compatibility - Document all public APIs -- Target zero warnings \ No newline at end of file +- Target zero warnings +- **Version**: Always 6.1.0 - do not change without approval \ No newline at end of file diff --git a/src/models.rs b/src/models.rs index 1bc25b1..d438544 100644 --- a/src/models.rs +++ b/src/models.rs @@ -222,6 +222,25 @@ impl BotResponse { } } +impl Default for BotResponse { + fn default() -> Self { + Self { + bot_id: String::new(), + user_id: String::new(), + session_id: String::new(), + channel: String::new(), + content: String::new(), + message_type: MessageType::BOT_RESPONSE, + stream_token: None, + is_complete: true, + suggestions: Vec::new(), + context_name: None, + context_length: 0, + context_max_length: 0, + } + } +} + /// Attachment for media files in messages #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Attachment {