refactor: trim subagent store type exports · openclaw/openclaw@14e8318
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,15 +20,24 @@ const SUBAGENT_SESSION_ROLES: readonly SubagentSessionRole[] = [
|
20 | 20 | type SubagentControlScope = "children" | "none"; |
21 | 21 | const SUBAGENT_CONTROL_SCOPES: readonly SubagentControlScope[] = ["children", "none"] as const; |
22 | 22 | |
23 | | -export type SessionCapabilityEntry = { |
| 23 | +type SessionCapabilityEntry = { |
24 | 24 | sessionId?: unknown; |
25 | 25 | spawnDepth?: unknown; |
26 | 26 | subagentRole?: unknown; |
27 | 27 | subagentControlScope?: unknown; |
28 | 28 | spawnedBy?: unknown; |
29 | 29 | }; |
30 | 30 | |
31 | | -export type SessionCapabilityStore = Record<string, SessionCapabilityEntry>; |
| 31 | +export type SessionCapabilityStore = Record< |
| 32 | +string, |
| 33 | +{ |
| 34 | +sessionId?: unknown; |
| 35 | +spawnDepth?: unknown; |
| 36 | +subagentRole?: unknown; |
| 37 | +subagentControlScope?: unknown; |
| 38 | +spawnedBy?: unknown; |
| 39 | +} |
| 40 | +>; |
32 | 41 | |
33 | 42 | function normalizeSubagentRole(value: unknown): SubagentSessionRole | undefined { |
34 | 43 | const trimmed = normalizeOptionalLowercaseString(value); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。