feat(governance): 新增 AI Agent 專業任務擴展
This commit is contained in:
@@ -334,6 +334,11 @@ export const apiClient = {
|
||||
return handleResponse<AiAgent12AgentWarRoomSnapshot>(res)
|
||||
},
|
||||
|
||||
async getAiAgentProfessionalTaskExpansion() {
|
||||
const res = await fetch(`${API_BASE_URL}/agents/agent-professional-task-expansion`)
|
||||
return handleResponse<AiAgentProfessionalTaskExpansionSnapshot>(res)
|
||||
},
|
||||
|
||||
async getAiAgentProactiveOperationsContract() {
|
||||
const res = await fetch(`${API_BASE_URL}/agents/agent-proactive-operations-contract`)
|
||||
return handleResponse<AiAgentProactiveOperationsContractSnapshot>(res)
|
||||
@@ -1418,6 +1423,110 @@ export interface AiAgent12AgentWarRoomSnapshot {
|
||||
}
|
||||
}
|
||||
|
||||
export interface AiAgentProfessionalTaskExpansionSnapshot {
|
||||
schema_version: 'ai_agent_professional_task_expansion_v1'
|
||||
generated_at: string
|
||||
program_status: {
|
||||
overall_completion_percent: number
|
||||
current_priority: 'P0' | 'P1' | 'P2' | 'P3'
|
||||
current_task_id: 'P2-405A'
|
||||
next_task_id: 'P2-405B'
|
||||
read_only_mode: true
|
||||
runtime_authority: 'professional_task_expansion_and_telegram_bridge_read_only_no_send'
|
||||
status_note: string
|
||||
}
|
||||
source_refs: string[]
|
||||
telegram_runtime_bridge: {
|
||||
canonical_room: string
|
||||
canonical_room_env: string
|
||||
gateway_required: boolean
|
||||
gateway_owner: string
|
||||
arbiter: string
|
||||
receipt_owner: string
|
||||
replay_owner: string
|
||||
no_send_preview_ready: boolean
|
||||
queue_preview_readback_ready: boolean
|
||||
approved_canary_required: boolean
|
||||
direct_bot_api_allowed: boolean
|
||||
bot_api_call_enabled: boolean
|
||||
gateway_queue_write_enabled: boolean
|
||||
telegram_send_enabled: boolean
|
||||
delivery_receipt_write_enabled: boolean
|
||||
stages: Array<{
|
||||
stage_id: string
|
||||
title: string
|
||||
status: string
|
||||
allowed_output: string
|
||||
live_send_enabled: boolean
|
||||
exit_condition: string
|
||||
}>
|
||||
message_types: Array<{
|
||||
message_type_id: string
|
||||
title: string
|
||||
cadence: string
|
||||
risk_scope: string
|
||||
delivery_gate: string
|
||||
}>
|
||||
}
|
||||
professional_task_domains: Array<{
|
||||
domain_id: string
|
||||
title: string
|
||||
summary: string
|
||||
primary_owner: string
|
||||
task_count: number
|
||||
}>
|
||||
professional_tasks: Array<{
|
||||
task_id: string
|
||||
title: string
|
||||
domain_id: string
|
||||
owner_agent: string
|
||||
risk_tier: 'low' | 'medium' | 'high' | 'critical'
|
||||
automation_mode: string
|
||||
telegram_policy: string
|
||||
required_mcp: string[]
|
||||
required_rag: string[]
|
||||
approval_required: boolean
|
||||
current_live_count_24h: number
|
||||
blocked_actions: string[]
|
||||
}>
|
||||
reporting_contract: Record<'daily' | 'weekly' | 'monthly' | 'action_required', {
|
||||
required: boolean
|
||||
delivery_mode: string
|
||||
sections: string[]
|
||||
}>
|
||||
redaction_contract: {
|
||||
redaction_required: boolean
|
||||
conversation_transcript_display_allowed: boolean
|
||||
raw_prompt_display_allowed: boolean
|
||||
private_reasoning_display_allowed: boolean
|
||||
secret_value_display_allowed: boolean
|
||||
raw_runtime_payload_display_allowed: boolean
|
||||
telegram_message_must_be_sanitized: boolean
|
||||
frontend_display_policy: string
|
||||
}
|
||||
rollups: {
|
||||
professional_task_count: number
|
||||
domain_count: number
|
||||
telegram_stage_count: number
|
||||
telegram_message_type_count: number
|
||||
approval_required_count: number
|
||||
low_risk_task_count: number
|
||||
medium_risk_task_count: number
|
||||
high_risk_task_count: number
|
||||
critical_risk_task_count: number
|
||||
current_live_count: number
|
||||
gateway_queue_write_count: number
|
||||
telegram_send_count: number
|
||||
bot_api_call_count: number
|
||||
delivery_receipt_write_count: number
|
||||
production_write_count: number
|
||||
secret_read_count: number
|
||||
paid_api_call_count: number
|
||||
host_write_count: number
|
||||
kubectl_action_count: number
|
||||
}
|
||||
}
|
||||
|
||||
export interface AiAgentProactiveOperationsContractSnapshot {
|
||||
schema_version: 'ai_agent_proactive_operations_contract_v1'
|
||||
generated_at: string
|
||||
|
||||
Reference in New Issue
Block a user