diff --git a/.build_status/latest.txt b/.build_status/latest.txt new file mode 100644 index 00000000..673450fe --- /dev/null +++ b/.build_status/latest.txt @@ -0,0 +1,9 @@ +⏰ 2026-04-03 20:00:01 + +⏳ Flutter SDK: 安装中... + 下载进度: 12M / 731MB +⏳ APK: 构建中或等待 Flutter +⬇️ 状态: Flutter SDK 下载中 +📤 Git: 1356 commits + +⏰ 下次汇报: 20:20 diff --git a/.build_status/report_1775217589.txt b/.build_status/report_1775217589.txt new file mode 100644 index 00000000..f9410dc8 --- /dev/null +++ b/.build_status/report_1775217589.txt @@ -0,0 +1,9 @@ +⏰ 2026-04-03 19:59:49 + +⏳ Flutter SDK: 安装中... + 下载进度: 11M / 731MB +⏳ APK: 构建中或等待 Flutter +⬇️ 状态: Flutter SDK 下载中 +📤 Git: 1356 commits + +⏰ 下次汇报: 20:19 diff --git a/.build_status/report_1775217592.txt b/.build_status/report_1775217592.txt new file mode 100644 index 00000000..a64996eb --- /dev/null +++ b/.build_status/report_1775217592.txt @@ -0,0 +1,9 @@ +⏰ 2026-04-03 19:59:52 + +⏳ Flutter SDK: 安装中... + 下载进度: 12M / 731MB +⏳ APK: 构建中或等待 Flutter +⬇️ 状态: Flutter SDK 下载中 +📤 Git: 1356 commits + +⏰ 下次汇报: 20:19 diff --git a/.build_status/report_1775217601.txt b/.build_status/report_1775217601.txt new file mode 100644 index 00000000..673450fe --- /dev/null +++ b/.build_status/report_1775217601.txt @@ -0,0 +1,9 @@ +⏰ 2026-04-03 20:00:01 + +⏳ Flutter SDK: 安装中... + 下载进度: 12M / 731MB +⏳ APK: 构建中或等待 Flutter +⬇️ 状态: Flutter SDK 下载中 +📤 Git: 1356 commits + +⏰ 下次汇报: 20:20 diff --git a/.gitignore b/.gitignore index 5043a870..a3b377e7 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,7 @@ untranlated.json more_build_data.json trans.txt android/app/.cxx + +# Build status reports +.build_status/ +/tmp/build_report.log diff --git a/auto_report.sh b/auto_report.sh new file mode 100755 index 00000000..ea475396 --- /dev/null +++ b/auto_report.sh @@ -0,0 +1,62 @@ +#!/bin/bash +# OpenCode Client 自动汇报脚本 - 供主会话读取 + +STATUS_DIR="/root/.openclaw/workspace/flutter_opencode_client/.build_status" +mkdir -p $STATUS_DIR + +REPORT_FILE="$STATUS_DIR/report_$(date +%s).txt" +LATEST_FILE="$STATUS_DIR/latest.txt" +GIT_REPO="/root/.openclaw/workspace/flutter_opencode_client" +APK_OUTPUT="$GIT_REPO/build/app/outputs/flutter-apk/app-release.apk" + +# 生成报告 +{ +echo "⏰ $(date '+%Y-%m-%d %H:%M:%S')" +echo "" + +# 检查 Flutter SDK +if [ -f "/opt/flutter/bin/cache/dart-sdk/bin/dart" ]; then + echo "✅ Flutter SDK: 已就绪" + export PATH="$PATH:/opt/flutter/bin" +else + echo "⏳ Flutter SDK: 安装中..." + if [ -f "/tmp/flutter_linux.tar.xz" ]; then + SIZE=$(ls -lh /tmp/flutter_linux.tar.xz | awk '{print $5}') + echo " 下载进度: $SIZE / 731MB" + fi +fi + +# 检查构建状态 +if [ -f "$APK_OUTPUT" ]; then + APK_SIZE=$(ls -lh $APK_OUTPUT | awk '{print $5}') + echo "✅ APK: 构建成功 ($APK_SIZE)" +else + echo "⏳ APK: 构建中或等待 Flutter" +fi + +# 检查活跃进程 +if pgrep -f "flutter.*build" >/dev/null; then + echo "🔨 状态: flutter build 运行中" +elif pgrep -f "curl.*flutter" >/dev/null; then + echo "⬇️ 状态: Flutter SDK 下载中" +else + echo "⏸️ 状态: 等待中" +fi + +# Git 状态 +cd $GIT_REPO 2>/dev/null || true +COMMITS=$(git rev-list --count opencode/main 2>/dev/null || echo "0") +echo "📤 Git: $COMMITS commits" + +echo "" +echo "⏰ 下次汇报: $(date -d '+20 minutes' '+%H:%M')" +} > $REPORT_FILE + +# 更新最新报告链接 +cp $REPORT_FILE $LATEST_FILE + +# 输出到日志(便于调试) +cat $REPORT_FILE >> /tmp/build_report.log + +# 保留最近10份报告 +ls -t $STATUS_DIR/report_*.txt 2>/dev/null | tail -n +11 | xargs rm -f 2>/dev/null diff --git a/check_build_progress.sh b/check_build_progress.sh new file mode 100755 index 00000000..309fb8cb --- /dev/null +++ b/check_build_progress.sh @@ -0,0 +1,94 @@ +#!/bin/bash +# 自动构建进度检查和汇报脚本 - 发送消息到 OpenClaw + +REPORT_FILE="/tmp/build_progress_report.txt" +GIT_REPO="/root/.openclaw/workspace/flutter_opencode_client" +APK_OUTPUT="$GIT_REPO/build/app/outputs/flutter-apk/app-release.apk" + +# 生成报告 +echo "=== OpenCode Client 构建进度报告 ===" > $REPORT_FILE +echo "时间: $(date '+%Y-%m-%d %H:%M:%S')" >> $REPORT_FILE +echo "" >> $REPORT_FILE + +# 检查 Flutter SDK 状态 +echo "📦 Flutter SDK 状态:" >> $REPORT_FILE +if [ -f "/opt/flutter/bin/cache/dart-sdk/bin/dart" ]; then + echo " ✅ Dart SDK: 已就绪" >> $REPORT_FILE + export PATH="$PATH:/opt/flutter/bin" + cd $GIT_REPO + FLUTTER_VERSION=$(/opt/flutter/bin/flutter --version 2>/dev/null | head -1 || echo "无法获取版本") + echo " 📋 $FLUTTER_VERSION" >> $REPORT_FILE +else + echo " ⏳ Dart SDK: 下载/解压中..." >> $REPORT_FILE + if [ -f "/opt/flutter/bin/cache/dart-sdk-linux-x64.zip" ]; then + ZIP_SIZE=$(ls -lh /opt/flutter/bin/cache/dart-sdk-linux-x64.zip 2>/dev/null | awk '{print $5}') + echo " 📊 下载文件大小: $ZIP_SIZE" >> $REPORT_FILE + fi +fi + +echo "" >> $REPORT_FILE + +# 检查 Android SDK +echo "📱 Android SDK 状态:" >> $REPORT_FILE +if [ -d "/opt/android-sdk/platforms" ]; then + PLATFORM_COUNT=$(ls /opt/android-sdk/platforms/ 2>/dev/null | wc -l) + echo " ✅ 已安装平台: $PLATFORM_COUNT 个" >> $REPORT_FILE +else + echo " ❌ 平台未安装" >> $REPORT_FILE +fi + +if [ -d "/opt/android-sdk/build-tools" ]; then + BUILD_TOOLS=$(ls /opt/android-sdk/build-tools/ 2>/dev/null | tr '\n' ', ') + echo " ✅ 构建工具: $BUILD_TOOLS" >> $REPORT_FILE +else + echo " ❌ 构建工具未安装" >> $REPORT_FILE +fi + +echo "" >> $REPORT_FILE + +# 检查 APK 构建状态 +echo "🔨 APK 构建状态:" >> $REPORT_FILE +if [ -f "$APK_OUTPUT" ]; then + APK_SIZE=$(ls -lh $APK_OUTPUT | awk '{print $5}') + echo " ✅ APK 构建成功!" >> $REPORT_FILE + echo " 📦 文件大小: $APK_SIZE" >> $REPORT_FILE + echo " 📍 路径: $APK_OUTPUT" >> $REPORT_FILE +else + echo " ⏳ APK 尚未构建" >> $REPORT_FILE +fi + +echo "" >> $REPORT_FILE + +# 检查活跃进程 +echo "🔄 活跃进程:" >> $REPORT_FILE +FLUTTER_PUB=$(pgrep -f "flutter.*pub.get" 2>/dev/null) +FLUTTER_BUILD=$(pgrep -f "flutter.*build" 2>/dev/null) +CURL_FLUTTER=$(pgrep -f "curl.*flutter" 2>/dev/null) + +if [ -n "$FLUTTER_PUB" ]; then + echo " 📦 flutter pub get 运行中 (PID: $FLUTTER_PUB)" >> $REPORT_FILE +fi +if [ -n "$FLUTTER_BUILD" ]; then + echo " 🔨 flutter build 运行中 (PID: $FLUTTER_BUILD)" >> $REPORT_FILE +fi +if [ -n "$CURL_FLUTTER" ]; then + echo " ⬇️ Flutter SDK 下载中 (PID: $CURL_FLUTTER)" >> $REPORT_FILE +fi + +if [ -z "$FLUTTER_PUB" ] && [ -z "$FLUTTER_BUILD" ] && [ -z "$CURL_FLUTTER" ]; then + echo " ⏸️ 无活跃构建进程" >> $REPORT_FILE +fi + +echo "" >> $REPORT_FILE + +# 检查 Git 状态 +cd $GIT_REPO 2>/dev/null || true +echo "📤 Git 推送状态:" >> $REPORT_FILE +COMMIT_COUNT=$(git rev-list --count opencode/main 2>/dev/null || echo "0") +echo " 📊 远程仓库提交数: $COMMIT_COUNT" >> $REPORT_FILE + +echo "" >> $REPORT_FILE +echo "⏰ 下次检查: $(date -d '+20 minutes' '+%H:%M')" >> $REPORT_FILE + +# 输出报告到 stdout +cat $REPORT_FILE diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 6b09adae..f6eccf90 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -6,8 +6,8 @@ import starlight from '@astrojs/starlight'; export default defineConfig({ integrations: [ starlight({ - title: 'Server Box', - description: 'A comprehensive cross-platform server management application built with Flutter', + title: 'OpenCode Client', + description: 'A comprehensive cross-platform server management application with OpenCode integration, built with Flutter', defaultLocale: 'root', locales: { root: { @@ -39,7 +39,7 @@ export default defineConfig({ src: './src/assets/logo.svg', }, social: [ - { icon: 'github', label: 'GitHub', href: 'https://github.com/lollipopkit/flutter_server_box' }, + { icon: 'github', label: 'GitHub', href: 'https://git.wqyblog.cn/wuqiyang312/flutter_opencode_client' }, ], sidebar: [ { diff --git a/docs/src/content/docs/development/building.md b/docs/src/content/docs/development/building.md index 2c98a917..a12fdd4d 100644 --- a/docs/src/content/docs/development/building.md +++ b/docs/src/content/docs/development/building.md @@ -3,12 +3,14 @@ title: Building description: Build instructions for different platforms --- -Server Box uses a custom build system (`fl_build`) for cross-platform builds. +OpenCode Client uses a custom build system (`fl_build`) for cross-platform builds. ## Prerequisites -- Flutter SDK (stable channel) +- Flutter SDK 3.29+ (stable channel) +- Dart 3.11+ - Platform-specific tools (Xcode for iOS, Android Studio for Android) +- Java 17+ - Rust toolchain (for some native dependencies) ## Development Build @@ -37,6 +39,28 @@ dart run fl_build -p # - windows ``` +Or use Flutter directly: + +```bash +# Android APK +flutter build apk --release + +# Android App Bundle +flutter build appbundle --release + +# iOS +flutter build ios --release + +# macOS +flutter build macos --release + +# Linux +flutter build linux --release + +# Windows +flutter build windows --release +``` + ## Platform-Specific Builds ### iOS @@ -53,13 +77,17 @@ Requires: ### Android ```bash +# Using fl_build dart run fl_build -p android + +# Or Flutter directly +flutter build apk --release ``` Requires: - Android SDK -- Java Development Kit -- Keystore for signing +- Java Development Kit (17+) +- Keystore for signing (debug.keystore is pre-configured) ### macOS @@ -81,6 +109,27 @@ dart run fl_build -p windows Requires Windows with Visual Studio. +## Custom Build from Source + +To build OpenCode Client from source: + +```bash +# Clone the repository +git clone ssh://git@git.wqyblog.cn:2222/wuqiyang312/flutter_opencode_client.git +cd flutter_opencode_client + +# Get dependencies +flutter pub get + +# Run code generation +dart run build_runner build --delete-conflicting-outputs + +# Build for Android +flutter build apk --release + +# Output: build/app/outputs/flutter-apk/app-release.apk +``` + ## Pre/Post Build The `make.dart` script handles: @@ -106,6 +155,13 @@ Ensure all dependencies are compatible: flutter pub upgrade ``` +### Flutter Doctor + +Check your environment: +```bash +flutter doctor +``` + ## Release Checklist 1. Update version in `pubspec.yaml` diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx index dd90afa4..fbd02517 100644 --- a/docs/src/content/docs/index.mdx +++ b/docs/src/content/docs/index.mdx @@ -1,15 +1,15 @@ --- -title: Server Box -description: A comprehensive cross-platform server management application +title: OpenCode Client +description: A comprehensive cross-platform server management application with OpenCode integration hero: - tagline: Manage your Linux servers from anywhere + tagline: Manage your Linux servers from anywhere with OpenCode integration actions: - text: Get Started link: /introduction/ icon: right-arrow variant: primary - text: View on GitHub - link: https://github.com/lollipopkit/flutter_server_box + link: https://git.wqyblog.cn/wuqiyang312/flutter_opencode_client icon: github variant: minimal --- @@ -28,19 +28,24 @@ import { Card, CardGrid } from '@astrojs/starlight/components'; Manage files on your servers with the built-in SFTP client and local file browser. + + Connect to your servers through secure SSH tunnels with OpenCode (opencode.ai) integration. + Start, stop, and monitor Docker containers with an intuitive interface. Available on iOS, Android, macOS, Linux, Windows, and watchOS. - - Full localization support including English, Chinese, German, French, and more. - +## About This Fork + +This is a fork of [Server Box](https://github.com/lollipopkit/flutter_server_box) with added [OpenCode](https://opencode.ai) integration for enhanced remote development capabilities. + ## Quick Links - **Download**: Available on [App Store](https://apps.apple.com/app/id1586449703), [GitHub](https://github.com/lollipopkit/flutter_server_box/releases), and [F-Droid](https://f-droid.org/) -- **Documentation**: Explore the guides to get started with Server Box +- **Custom Build**: See [Installation](/installation/) for building from source +- **Documentation**: Explore the guides to get started with OpenCode Client - **Support**: Join our community on GitHub for discussions and issues diff --git a/docs/src/content/docs/installation.mdx b/docs/src/content/docs/installation.mdx index 22c073e3..4c55a5e6 100644 --- a/docs/src/content/docs/installation.mdx +++ b/docs/src/content/docs/installation.mdx @@ -1,9 +1,9 @@ --- title: Installation -description: Download and install Server Box on your device +description: Download and install OpenCode Client on your device --- -Server Box is available on multiple platforms. Choose your preferred method of installation. +OpenCode Client is available on multiple platforms. Choose your preferred method of installation. ## Mobile Apps @@ -44,8 +44,34 @@ Available on the **[App Store](https://apps.apple.com/app/id1586449703)** as par ## Building from Source -To build Server Box from source, see the [Building](/development/building) section in the Development documentation. +To build OpenCode Client from source: + +```bash +# Clone the repository +git clone ssh://git@git.wqyblog.cn:2222/wuqiyang312/flutter_opencode_client.git +cd flutter_opencode_client + +# Get dependencies +flutter pub get + +# Build for Android +flutter build apk --release + +# Or build for other platforms +flutter build linux --release +flutter build windows --release +flutter build macos --release +``` + +### Build Requirements + +- Flutter SDK 3.29+ +- Dart 3.11+ +- Android SDK (for Android builds) +- Java 17+ + +See the [Development](/development/building) section for more details. ## Version Information -Check the [GitHub Releases](https://github.com/lollipopkit/flutter_server_box/releases) page for the latest version and changelog. +Check the [GitHub Releases](https://git.wqyblog.cn/wuqiyang312/flutter_opencode_client) page for the latest version and changelog. diff --git a/docs/src/content/docs/introduction.mdx b/docs/src/content/docs/introduction.mdx index 6094f40e..4473a10f 100644 --- a/docs/src/content/docs/introduction.mdx +++ b/docs/src/content/docs/introduction.mdx @@ -1,32 +1,47 @@ --- title: Introduction -description: Learn what Server Box is and what it can do +description: Learn what OpenCode Client is and what it can do --- -Server Box is a comprehensive cross-platform server management application built with Flutter. It allows you to monitor, manage, and control your Linux, Unix, and Windows servers from anywhere. +OpenCode Client is a comprehensive cross-platform server management application built with Flutter, forked from Server Box with added OpenCode integration. It allows you to monitor, manage, and control your Linux, Unix, and Windows servers from anywhere. -## What is Server Box? +## What is OpenCode Client? -Server Box provides a unified interface for server administration tasks through SSH connections. Whether you're a system administrator, developer, or hobbyist running home servers, this app puts powerful server management tools in your pocket. +OpenCode Client provides a unified interface for server administration tasks through SSH connections. This fork adds [OpenCode](https://opencode.ai) integration, enabling secure SSH tunnel connections for enhanced remote development capabilities. + +Whether you're a system administrator, developer, or hobbyist running home servers, this app puts powerful server management tools in your pocket. ## Key Capabilities - **Real-time Monitoring**: Track CPU, memory, disk usage, network speed, GPU status, and system temperatures - **SSH Terminal**: Full terminal access with multi-tab support and customizable appearance - **SFTP Client**: Browse and manage files on your servers +- **OpenCode Integration**: Connect through secure SSH tunnels for remote development - **Docker Management**: Control containers with ease - **Process Management**: View and manage system processes - **Systemd Services**: Start, stop, and monitor systemd services - **Network Tools**: iPerf testing, ping, and Wake-on-LAN - **Snippets**: Save and execute custom shell commands +## OpenCode Integration + +This fork includes OpenCode (opencode.ai) integration, providing: + +- **SSH Tunnel Support**: Connect to your servers through secure SSH tunnels +- **Remote Development**: Enhanced capabilities for remote development workflows +- **AI-Powered Assistance**: Leverage OpenCode platform features for server management + ## Supported Platforms -Server Box is truly cross-platform: +OpenCode Client is truly cross-platform: - **Mobile**: iOS and Android - **Desktop**: macOS, Linux, and Windows +## Origin + +This project is a fork of [Server Box](https://github.com/lollipopkit/flutter_server_box) by lollipopkit. We are grateful for the original work and continue to build upon it. + ## License -This project is licensed under AGPL v3. Source code is available on [GitHub](https://github.com/lollipopkit/flutter_server_box). +This project is licensed under AGPL v3. Source code is available on [GitHub](https://git.wqyblog.cn/wuqiyang312/flutter_opencode_client). diff --git a/docs/src/content/docs/quick-start.mdx b/docs/src/content/docs/quick-start.mdx index a41a3c60..44fea64f 100644 --- a/docs/src/content/docs/quick-start.mdx +++ b/docs/src/content/docs/quick-start.mdx @@ -1,13 +1,13 @@ --- title: Quick Start -description: Get up and running with Server Box in minutes +description: Get up and running with OpenCode Client in minutes --- Follow this quick start guide to connect to your first server and start monitoring. ## Step 1: Add a Server -1. Open Server Box +1. Open OpenCode Client 2. Tap the **+** button to add a new server 3. Fill in the server information: - **Name**: A friendly name for your server @@ -37,9 +37,11 @@ Once connected, you can: - **Manage Containers**: View and control Docker containers - **View Processes**: Check running processes - **Run Snippets**: Execute saved commands +- **OpenCode Integration**: Use SSH tunnel features for remote development ## Tips - **Biometric Authentication**: Enable Face ID / Touch ID / Fingerprint for quick access (mobile) - **Home Screen Widgets**: Add server status widgets to your home screen (iOS/Android) - **Background Running**: Keep connections alive in the background (Android) +- **OpenCode**: Connect through secure SSH tunnels for enhanced remote development diff --git a/docs/src/content/docs/zh/index.mdx b/docs/src/content/docs/zh/index.mdx index 3a12af7e..c20b8de3 100644 --- a/docs/src/content/docs/zh/index.mdx +++ b/docs/src/content/docs/zh/index.mdx @@ -1,15 +1,15 @@ --- -title: Server Box -description: 一款全面的跨平台服务器管理应用 +title: OpenCode Client +description: 一款全面的跨平台服务器管理应用,集成 OpenCode 功能 hero: - tagline: 随时随地管理您的 Linux 服务器 + tagline: 随时随地管理您的 Linux 服务器,集成 OpenCode 远程开发 actions: - text: 开始使用 link: /zh/introduction/ icon: right-arrow variant: primary - text: 在 GitHub 上查看 - link: https://github.com/lollipopkit/flutter_server_box + link: https://git.wqyblog.cn/wuqiyang312/flutter_opencode_client icon: github variant: minimal --- @@ -28,19 +28,24 @@ import { Card, CardGrid } from '@astrojs/starlight/components'; 使用内置 SFTP 客户端和本地文件浏览器管理服务器上的文件。 + + 通过安全 SSH 隧道连接服务器,集成 OpenCode (opencode.ai) 远程开发。 + 通过直观的界面启动、停止和监控 Docker 和 Podman 容器。 支持 iOS、Android、macOS、Linux、Windows 和 watchOS。 - - 完善的本地化支持,包括英语、中文、德语、法语等。 - +## 关于此分支 + +这是 [Server Box](https://github.com/lollipopkit/flutter_server_box) 的一个分支,添加了 [OpenCode](https://opencode.ai) 集成功能,增强远程开发能力。 + ## 快速链接 -- **下载**: 可在 [App Store](https://apps.apple.com/app/id1586449703), [GitHub](https://github.com/lollipopkit/flutter_server_box/releases), [F-Droid](https://f-droid.org/packages/tech.lolli.toolbox), [CDN](https://cdn.lpkt.cn/serverbox/pkg/?sort=time&order=desc&layout=grid) 和 [OpenAPK](https://www.openapk.net/serverbox/tech.lolli.toolbox/) 获取 -- **文档**: 探索指南以开始使用 Server Box +- **下载**: 可在 [App Store](https://apps.apple.com/app/id1586449703), [GitHub](https://github.com/lollipopkit/flutter_server_box/releases), [F-Droid](https://f-droid.org/packages/tech.lolli.toolbox) 获取 +- **自定义构建**: 参见[安装指南](/zh/installation/)了解如何从源码构建 +- **文档**: 探索指南以开始使用 OpenCode Client - **支持**: 加入我们的 GitHub 社区进行讨论和问题反馈 diff --git a/docs/src/content/docs/zh/installation.mdx b/docs/src/content/docs/zh/installation.mdx index bf2f6192..de2ee2c9 100644 --- a/docs/src/content/docs/zh/installation.mdx +++ b/docs/src/content/docs/zh/installation.mdx @@ -1,9 +1,9 @@ --- title: 安装 -description: 在您的设备上下载并安装 Server Box +description: 在您的设备上下载并安装 OpenCode Client --- -Server Box 适用于多个平台。选择您偏好的安装方式。 +OpenCode Client 适用于多个平台。选择您偏好的安装方式。 ## 移动应用 @@ -17,8 +17,6 @@ Server Box 适用于多个平台。选择您偏好的安装方式。 - **[F-Droid](https://f-droid.org/packages/tech.lolli.toolbox)** - 适合偏好 FOSS 来源的用户 - **[GitHub Releases](https://github.com/lollipopkit/flutter_server_box/releases)** - 直接从源获取最新版本 -- **[CDN](https://cdn.lpkt.cn/serverbox/pkg/?sort=time&order=desc&layout=grid)** - CDN -- **[OpenAPK](https://www.openapk.net/serverbox/tech.lolli.toolbox/)** - 第三方应用商店 ## 桌面应用 @@ -46,8 +44,34 @@ Server Box 适用于多个平台。选择您偏好的安装方式。 ## 从源码构建 -要从源码构建 Server Box,请参阅开发文档中的[构建](/zh/development/building)部分。 +要从源码构建 OpenCode Client: + +```bash +# 克隆仓库 +git clone ssh://git@git.wqyblog.cn:2222/wuqiyang312/flutter_opencode_client.git +cd flutter_opencode_client + +# 获取依赖 +flutter pub get + +# 构建 Android APK +flutter build apk --release + +# 或构建其他平台 +flutter build linux --release +flutter build windows --release +flutter build macos --release +``` + +### 构建要求 + +- Flutter SDK 3.29+ +- Dart 3.11+ +- Android SDK(用于 Android 构建) +- Java 17+ + +更多详情请参见[开发文档](/zh/development/building)部分。 ## 版本信息 -查看 [GitHub Releases](https://github.com/lollipopkit/flutter_server_box/releases) 页面以获取最新版本和变更日志。 +查看 [GitHub Releases](https://git.wqyblog.cn/wuqiyang312/flutter_opencode_client) 页面以获取最新版本和变更日志。 diff --git a/docs/src/content/docs/zh/introduction.mdx b/docs/src/content/docs/zh/introduction.mdx index 9ed341c6..b591f810 100644 --- a/docs/src/content/docs/zh/introduction.mdx +++ b/docs/src/content/docs/zh/introduction.mdx @@ -1,32 +1,47 @@ --- title: 介绍 -description: 了解 Server Box 是什么以及它能做什么 +description: 了解 OpenCode Client 是什么以及它能做什么 --- -Server Box 是一款使用 Flutter 构建的全面跨平台服务器管理应用。它允许您随时随地监控、管理和控制您的 Linux、Unix 和 Windows 服务器。 +OpenCode Client 是一款使用 Flutter 构建的全面跨平台服务器管理应用,基于 Server Box 分支并添加了 OpenCode 集成功能。它允许您随时随地监控、管理和控制您的 Linux、Unix 和 Windows 服务器。 -## 什么是 Server Box? +## 什么是 OpenCode Client? -Server Box 通过 SSH 连接为服务器管理任务提供统一的界面。无论您是系统管理员、开发人员,还是运行家庭服务器的爱好者,此应用都能为您提供强大的服务器管理工具。 +OpenCode Client 通过 SSH 连接为服务器管理任务提供统一的界面。此分支添加了 [OpenCode](https://opencode.ai) 集成,通过安全 SSH 隧道连接实现增强的远程开发能力。 + +无论您是系统管理员、开发人员,还是运行家庭服务器的爱好者,此应用都能为您提供强大的服务器管理工具。 ## 核心功能 - **实时监控**:追踪 CPU、内存、磁盘使用率、网络速度、GPU 状态和系统温度 - **SSH 终端**:全功能终端访问,支持多标签页和可自定义外观 - **SFTP 客户端**:浏览和管理服务器上的文件 +- **OpenCode 集成**:通过安全 SSH 隧道连接,支持远程开发 - **容器管理**:轻松控制 Docker 和 Podman 容器 - **进程管理**:查看和管理系统进程 - **Systemd 服务**:启动、停止和监控 systemd 服务 - **网络工具**:iPerf 测试、Ping 和网络唤醒 (WoL) - **代码片段**:保存并执行自定义 Shell 命令 +## OpenCode 集成 + +此分支包含 OpenCode (opencode.ai) 集成,提供: + +- **SSH 隧道支持**:通过安全 SSH 隧道连接到您的服务器 +- **远程开发**:增强的远程开发工作流能力 +- **AI 驱动辅助**:利用 OpenCode 平台功能进行服务器管理 + ## 支持平台 -Server Box 是真正的跨平台应用: +OpenCode Client 是真正的跨平台应用: - **移动端**:iOS 和 Android - **桌面端**:macOS、Linux 和 Windows +## 项目来源 + +此项目是 [Server Box](https://github.com/lollipopkit/flutter_server_box) 的分支,由 lollipopkit 创建。我们感谢原作者的工作,并在此基础上继续构建。 + ## 许可证 -本项目采用 AGPL v3 许可证。源代码可在 [GitHub](https://github.com/lollipopkit/flutter_server_box) 上获得。 +本项目采用 AGPL v3 许可证。源代码可在 [GitHub](https://git.wqyblog.cn/wuqiyang312/flutter_opencode_client) 上获得。 diff --git a/docs/src/content/docs/zh/quick-start.mdx b/docs/src/content/docs/zh/quick-start.mdx index aa787f2b..360e0679 100644 --- a/docs/src/content/docs/zh/quick-start.mdx +++ b/docs/src/content/docs/zh/quick-start.mdx @@ -1,13 +1,13 @@ --- title: 快速开始 -description: 在几分钟内开始使用 Server Box +description: 在几分钟内开始使用 OpenCode Client --- 按照本快速入门指南连接您的第一台服务器并开始监控。 ## 第一步:添加服务器 -1. 打开 Server Box +1. 打开 OpenCode Client 2. 点击 **+** 按钮添加新服务器 3. 填写服务器信息: - **名称 (Name)**:服务器的友好名称 @@ -37,9 +37,11 @@ description: 在几分钟内开始使用 Server Box - **管理容器**:查看和控制 Docker/Podman 容器 - **查看进程**:检查正在运行的进程 - **运行片段**:执行保存的命令 +- **OpenCode 集成**:使用 SSH 隧道功能进行远程开发 ## 提示 - **生物识别身份验证**:启用 Face ID / Touch ID / 指纹以快速访问(移动端) - **主屏幕小组件**:将服务器状态小组件添加到您的主屏幕(iOS/Android) - **后台运行**:在后台保持连接(Android) +- **OpenCode**:通过安全 SSH 隧道连接,增强远程开发能力