- 本地化命令描述(英文→中文) - 删除未使用命令文件 - 新增 summarize-conversation 命令 - 更新 AI 模型配置为 DeepSeek - 新增 agent-browser 技能 - 重构技能目录结构(重命名)
1.8 KiB
1.8 KiB
description
| description |
|---|
| 查看当前 Gitea 配置和 Runner 状态 |
Display the current Gitea configuration and runner status.
工作目录
macOS / Linux:
~/.config/gitea/
Windows:
%USERPROFILE%\.config\gitea\
Please perform the following:
-
Check if configuration exists:
- Config file:
- macOS/Linux:
~/.config/gitea/config.env - Windows:
%USERPROFILE%\.config\gitea\config.env
- macOS/Linux:
- If not exists, prompt user to run
/gitea-reset
- Config file:
-
Load and display configuration:
macOS / Linux:
source ~/.config/gitea/config.env
Windows PowerShell:
Get-Content "$env:USERPROFILE\.config\gitea\config.env" | ForEach-Object {
if ($_ -match '^([^=]+)=(.*)$') {
[Environment]::SetEnvironmentVariable($matches[1], $matches[2], 'Process')
}
}
Show in Chinese:
- Gitea URL
- Default organization (if set)
- Config file path (根据平台显示正确路径)
-
Validate token and display user info:
- Call API:
GET ${GITEA_URL}/api/v1/user - Header:
Authorization: token ${GITEA_TOKEN} - Show: Token status (✓ 有效 / ✗ 无效), username, email
- Call API:
-
Display runner information:
- Runners directory:
- macOS/Linux:
~/.config/gitea/runners - Windows:
%USERPROFILE%\.config\gitea\runners
- macOS/Linux:
- Count configured runners
- List each runner with status:
- 🟢 运行中 (process running)
- 🔴 已停止 (process not running)
- ⚠️ 配置异常 (config file missing)
- Runners directory:
-
Show management commands:
管理命令:
- 重置配置: /gitea-reset
- 切换组织: /gitea-switch-org <org-name>
- 列出 Runners: /gitea-list-runners
- 创建仓库: /create-gitea-repo <repo-name>
Use jq to parse JSON responses and pgrep to check runner process status.