refactor: Rename ClawBot → OpenClaw across documentation

- Update .awoooi-agent-rules.md (4 occurrences)
- Update docs/api/openapi.yaml (all schema references)
- Update apps/web/tailwind.config.ts (comment)
- Update apps/api/src/core/config.py (comment)

Legacy CLAWBOT_URL field kept for backward compatibility.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-23 14:05:53 +08:00
parent b0302329f4
commit 962b1e75a5
4 changed files with 1821 additions and 14 deletions

View File

@@ -218,7 +218,7 @@ const API_KEY = process.env.API_KEY
| **機械爪藍** | `#4A90D9` (claw-blue) | AI 核心 LED 發光色 |
| **思維紫** | `#8B5CF6` (status-thinking) | AI 思考狀態專用 |
#### ClawBot 視覺規範
#### OpenClaw 視覺規範
```tsx
// 機械爪面板 - 3D 骨架風格
@@ -312,7 +312,7 @@ import { Eye, Sparkles } from 'lucide-react'
|-----|------|------|
| **192.168.0.110** | DevOps 金庫 | Harbor:5000 (`awoooi/` Project), GH Runner (`awoooi-runner`) |
| **192.168.0.112** | Kali Security | Scanner API:8080 (Header 區分: `X-Source: awoooi`) |
| **192.168.0.188** | AI+Web 中心 | Nginx SSL, Ollama:11434, **ClawBot:8089**, **SigNoz:3301 (OTEL 收集器)** |
| **192.168.0.188** | AI+Web 中心 | Nginx SSL, Ollama:11434, **OpenClaw:8089**, **SigNoz:3301 (OTEL 收集器)** |
| **192.168.0.120** | K3s Master | **awoooi-prod (API:32334, Frontend:32335)** ⚠️ 唯一部署目標 |
| **192.168.0.121** | K3s Worker | HA 備援 |
@@ -320,7 +320,7 @@ import { Eye, Sparkles } from 'lucide-react'
> ⚠️ **絕對禁令**: 禁止部署 UAT 環境,僅使用 Prod (32334/32335)
| 環境 | Frontend | API | ClawBot | 狀態 |
| 環境 | Frontend | API | OpenClaw | 狀態 |
|------|----------|-----|---------|------|
| **AWOOOI Prod** | **32335** | **32334** | 8089 | ✅ 唯一部署目標 |
| ~~AWOOOI UAT~~ | ~~32235~~ | ~~32234~~ | - | ❌ **已廢除** |
@@ -531,7 +531,7 @@ scp awoooi.wooo.work.conf root@192.168.0.188:/etc/nginx/
此操作將:
- 向 Webhook API 發送模擬告警
- 觸發 ClawBot AI 分析
- 觸發 OpenClaw AI 分析
- 建立一筆待簽核卡片
統帥,是否授權執行? [Y/n]
@@ -786,6 +786,62 @@ qaCheck()
---
## 🧠 架構溯源義務 (Architecture Traceability)
> **2026-03-23 新增 (ADR-008)**: 模組化開發必須具備跨模組架構記憶
### 條款 17跨模組溯源義務
**在修改任何 `packages/` 下的核心積木前AI 必須先讀取以下檔案:**
| 檔案 | 用途 |
|------|------|
| `docs/adr/` | 架構決策記錄 (ADR) |
| `docs/api/api-contract.yaml` | API 通訊契約 |
| `docs/ARCHITECTURE_MEMORY.md` | 模組地圖索引 |
**確保新代碼與既有模組通訊契約相容。**
### 條款 18自動化 ADR 更新
**當新增獨立模組或重大 API 變更時AI 必須主動產出 ADR**
```markdown
# ADR-XXX: [決策標題]
**狀態**: 已批准/提議中
**日期**: YYYY-MM-DD
## 背景
[為什麼需要這個決策]
## 決策
[採用的方案]
## 後果
[優缺點分析]
```
### 條款 19模組註冊義務
**新增積木後,必須在 `docs/ARCHITECTURE_MEMORY.md` 登記:**
- 模組名稱與職責
- 對外介面 (ABC/API)
- 關聯 ADR 編號
### 條款 20接口防撞檢查
**執行 `pnpm build` 或 `pip install` 前,必須先確認模組間無命名衝突:**
```bash
# 檢查 Python 模組是否可引用
python -c "from lewooogo_brain.interfaces import IProposalEngine; print('OK')"
python -c "from lewooogo_data.interfaces import IMemoryProvider; print('OK')"
```
---
## 🏗️ 專案結構
```
@@ -795,13 +851,9 @@ awoooi/
│ ├── web/ # Next.js 前端
│ └── api/ # FastAPI BFF Gateway
├── packages/
│ ├── lewooogo-core/ # 核心引擎
│ ├── lewooogo-input/ # INPUT 積木
│ ├── lewooogo-brain/ # BRAIN 積木
│ ├── lewooogo-output/ # OUTPUT 積木
│ ├── lewooogo-action/ # ACTION 積木
│ ├── lewooogo-data/ # DATA 積木
│ └── lewooogo-ui/ # UI 積木
│ ├── lewooogo-core/ # 核心引擎 (TS)
│ ├── lewooogo-brain/ # BRAIN 積木 (Python) ← ADR-008
│ ├── lewooogo-data/ # DATA 積木 (Python) ← ADR-008
├── docs/
│ ├── adr/ # 架構決策記錄
│ └── api/ # OpenAPI 規格

View File

@@ -105,8 +105,8 @@ class Settings(BaseSettings):
)
# Deprecated: use OPENCLAW_URL instead
CLAWBOT_URL: str = Field(
default="http://192.168.0.188:8088", # 🔧 修正: ClawBot 實際 port 是 8088
description="[Deprecated] ClawBot URL - use OPENCLAW_URL",
default="http://192.168.0.188:8088", # 🔧 修正: OpenClaw 實際 port 是 8088
description="[Deprecated] Legacy ClawBot URL - use OPENCLAW_URL",
)
KALI_SCANNER_URL: str = Field(
default="http://192.168.0.112:8080",

View File

@@ -37,7 +37,7 @@ const config: Config = {
critical: '#FF3300', // 橘紅 - 嚴重
idle: '#A3A3A3', // 灰色 - 閒置
},
// 智慧之眼 - ClawBot 品牌藍
// 智慧之眼 - OpenClaw 品牌藍
claw: {
blue: '#4A90D9', // 智慧之眼核心藍
'blue-light': '#6BA3E0', // 淺藍光暈

1755
docs/api/openapi.yaml Normal file

File diff suppressed because it is too large Load Diff