Releases: heimoshuiyu/opencode-share
Releases · heimoshuiyu/opencode-share
OpenCode Share v1.0.183
🚀 OpenCode Share v1.0.183
本次发布包含多项重要更新和修复。
✨ 新功能
- 改进数据格式兼容性 - 改为支持任意 JSON 格式,提升客户端兼容性
- 增加测试覆盖 - 添加 Rust 测试代码,提高代码质量
🐛 Bug 修复
- 修复前端交互问题 - 修复工具输出展开按钮无法点击的问题
- 安全更新 - 修复前端 XSS 漏洞,提升安全性
📦 资产说明
此版本包含预编译的 Linux 二进制文件,可直接下载运行。
📥 快速开始
# 下载二进制文件
chmod +x opencode-share
./opencode-share完整变更日志: v1.0.0...v1.0.183
OpenCode Share v1.0.0 - Initial Release
🚀 OpenCode Share v1.0.0 - Initial Release
This is the first stable release of OpenCode Share Service built with Rust! A high-performance, type-safe implementation for sharing AI coding agent sessions.
✨ Key Features
Core Functionality
- High Performance: Built with Rust and Axum async framework for maximum throughput
- Type Safety: Compile-time checked SQL queries and strongly typed data structures
- Event Sourcing: Efficient event-driven data synchronization with JSONB storage
- Secret-based Authentication: Secure sharing without user account management
- Rich Share Page: Interactive UI for viewing AI coding sessions
Frontend Features
- 🔧 Tool Call Visualization - Beautiful cards showing bash commands, file operations, grep, etc.
- 📦 Collapsible Reasoning Blocks - Display AI "thinking" with expand/collapse functionality
- 🔢 Step Markers - Visual indicators for reasoning steps with token usage tracking
- 📝 Split Diff Viewer - Side-by-side file change visualization with synchronized scrolling
- 🎨 Syntax Highlighting - Code blocks with monospace fonts and proper styling
- 📊 Token Usage Tracking - Display message and session token consumption
Production Ready
- Docker Support: Multi-stage builds for optimized container images
- Structured Logging: Comprehensive request/response logging with emoji indicators
- CORS Support: Full cross-origin support for frontend integration
- Environment Configuration: Flexible configuration via environment variables
🛠️ Technology Stack
| Component | Technology | Version |
|---|---|---|
| Language | Rust | 2021 edition |
| Web Framework | Axum | 0.7 |
| Runtime | Tokio | 1.0 (async) |
| Database | PostgreSQL | (via SQLx) |
| ORM | SQLx | 0.7 (compile-time checked) |
| Serialization | Serde | 1.0 |
| Frontend | Vanilla ES6+ JavaScript + CSS3 |
🚀 Quick Start
Using Docker Compose (Recommended)
docker-compose up -dThe server will start at http://localhost:3006
Manual Build
# Build release binary
cargo build --release
# Run
./target/release/opencode-share📡 API Endpoints
- POST
/api/share- Create a new share - POST
/api/share/{shareID}/sync- Sync share data - GET
/api/share/{shareID}/data- Get share data - DELETE
/api/share/{shareID}- Remove a share - GET
/share/{shareID}- View share page
📦 Assets
This release includes a pre-built Linux binary for easy deployment.
🔗 Links
Built with ❤️ using Rust