chore(web): 清理 IwoooS D2 註解語氣
All checks were successful
CD Pipeline / tests (push) Successful in 1m23s
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / build-and-deploy (push) Successful in 4m18s
CD Pipeline / post-deploy-checks (push) Successful in 1m44s

This commit is contained in:
Your Name
2026-06-05 01:11:44 +08:00
parent 8f8c914a9e
commit 6ccdf199ad
26 changed files with 72 additions and 37 deletions

View File

@@ -94,7 +94,7 @@ interface AgentState {
// ==================== Constants ====================
// 統帥鐵律: 禁止任何 Fallback IP
// 專案鐵律: 禁止任何 Fallback IP
const getApiBaseUrl = (): string => {
if (typeof window === 'undefined') return ''
const url = process.env.NEXT_PUBLIC_API_URL

View File

@@ -128,7 +128,7 @@ const MAX_SSE_RECONNECT_ATTEMPTS = 10
const BASE_RECONNECT_DELAY = 1000 // 1 second
const MAX_RECONNECT_DELAY = 30000 // 30 seconds
// 統帥鐵律: 禁止任何 Fallback IP
// 專案鐵律: 禁止任何 Fallback IP
const getApiBaseUrl = (): string => {
if (typeof window === 'undefined') return ''
const url = process.env.NEXT_PUBLIC_API_URL

View File

@@ -201,7 +201,7 @@ export const useDashboardStore = create<DashboardState>()(
eventSource = null
}
// 統帥鐵律: 禁止任何 Fallback IP
// 專案鐵律: 禁止任何 Fallback IP
const resolvedApiBaseUrl = apiBaseUrl ||
(typeof window !== 'undefined' ? process.env.NEXT_PUBLIC_API_URL : '')
@@ -352,7 +352,7 @@ export const useDashboardStore = create<DashboardState>()(
return snapshotFetchInFlight
}
// 統帥鐵律: 禁止任何 Fallback IP
// 專案鐵律: 禁止任何 Fallback IP
const resolvedApiBaseUrl = apiBaseUrl ||
(typeof window !== 'undefined' ? process.env.NEXT_PUBLIC_API_URL : '')

View File

@@ -10,7 +10,7 @@
* - 防止偽造: 前端不可直接新增事件,必須透過 API 回調
* - OOM 防護: maxEvents=100 限制記憶體使用
*
* 事件類型對應統帥規格:
* 事件類型對應專案規格:
* - [SYSTEM] 系統接收告警
* - [AGENT] OpenClaw AI 分析完成
* - [SECURITY] 權限阻擋 (Access Denied)
@@ -21,10 +21,10 @@
import { create } from 'zustand'
// =============================================================================
// API Configuration (統帥鐵律: 禁止 hardcode localhost)
// API Configuration (專案鐵律: 禁止 hardcode localhost)
// =============================================================================
// 統帥鐵律: 禁止任何 Fallback IP
// 專案鐵律: 禁止任何 Fallback IP
const getApiBaseUrl = (): string => {
if (typeof window === 'undefined') return ''
const url = process.env.NEXT_PUBLIC_API_URL
@@ -38,7 +38,7 @@ const getApiBaseUrl = (): string => {
const API_BASE_URL = getApiBaseUrl()
// =============================================================================
// Types (統帥規格)
// Types (專案規格)
// =============================================================================
export type TimelineEventType =