# 🚀 CodeBuddy Code v2.77.0 Release

## ✨ New Features

### Plugin System Major Upgrade

The plugin system has received a major enhancement, significantly improving plugin installation, management, and extensibility:

- **Multi-source Installation**: Support installing plugins via npm packages and Git repository subdirectories, flexibly adapting to different plugin distribution methods
- **MCP Bundle Support**: Support loading pre-packaged MCP services (.mcpb/.dxt/.zip) from remote URLs or local files, simplifying MCP service integration
- **Output Style Extension**: Plugins can provide custom output styles to personalize Agent output presentation
- **Default Agent Configuration**: Plugins support setting a default Agent via `settings.agent`, serving as the lowest-priority base layer
- **PATH Auto-injection**: Enabled plugins' `bin/` directories are automatically injected into the Bash tool's PATH
- **User Configuration Options**: Plugins support defining `userConfig` fields for interactive user configuration collection during installation
- **Dependency Resolution**: Support DFS closure algorithm for resolving plugin transitive dependencies, including cycle detection

### Plugin Security & Management

- **Marketplace Name Protection**: Four-layer defense mechanism to prevent third-party impersonation of the official marketplace
- **Enterprise Policy Service**: Control plugin enable/disable via managed-settings to meet enterprise compliance requirements
- **`--plugin-dir` Flag**: Support loading plugins from a local directory for development and testing
- **`/reload-plugins` Command**: Reload all plugin components without restarting
- **`/plugin-validate` Command**: Four-layer validation of plugin directory structure and manifest validity

## 🔧 Improvements

- **Venus Endpoint Compatibility Adapter**: Support Prompt cache injection and request field sanitization for Venus OpenAI-compatible proxy endpoints; model adapters and endpoint adapters can be stacked
- **SDK MCP Tool Filter**: Ensure permission and deny rules are correctly applied to custom tools registered via the SDK

## 🐛 Bug Fixes

- **AskPanel Race Condition Fix**: Fix the invocation order issue between doneAsk/rejectAsk and approve/reject, preventing tools from continuing execution before receiving an answer
- **Image Message Type Fix**: `stripImageContent` now uses the correct `input_text` type to replace image placeholders, avoiding type mismatches

## 📝 Documentation Updates

- **Plugin Marketplace Documentation**: Comprehensive update of the plugin marketplace usage guide
- **CLI Documentation Update**: Updated CLI reference, environment variables, HTTP API, slash commands, and other documentation in both Chinese and English
