refactor(agents): narrow internal event constants · openclaw/openclaw@c40e904
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,15 +2,15 @@
|
2 | 2 | // formatters. Keep values stable because they cross agent runtime boundaries. |
3 | 3 | export const AGENT_INTERNAL_EVENT_TYPE_TASK_COMPLETION = "task_completion" as const; |
4 | 4 | |
5 | | -export const AGENT_INTERNAL_EVENT_SOURCES = [ |
| 5 | +const AGENT_INTERNAL_EVENT_SOURCES = [ |
6 | 6 | "subagent", |
7 | 7 | "cron", |
8 | 8 | "image_generation", |
9 | 9 | "video_generation", |
10 | 10 | "music_generation", |
11 | 11 | ] as const; |
12 | 12 | |
13 | | -export const AGENT_INTERNAL_EVENT_STATUSES = ["ok", "timeout", "error", "unknown"] as const; |
| 13 | +const AGENT_INTERNAL_EVENT_STATUSES = ["ok", "timeout", "error", "unknown"] as const; |
14 | 14 | |
15 | 15 | export type AgentInternalEventSource = (typeof AGENT_INTERNAL_EVENT_SOURCES)[number]; |
16 | 16 | export type AgentInternalEventStatus = (typeof AGENT_INTERNAL_EVENT_STATUSES)[number]; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。