mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
refactor: trim subagent store type exports
This commit is contained in:
@@ -20,7 +20,7 @@ const SUBAGENT_SESSION_ROLES: readonly SubagentSessionRole[] = [
|
||||
type SubagentControlScope = "children" | "none";
|
||||
const SUBAGENT_CONTROL_SCOPES: readonly SubagentControlScope[] = ["children", "none"] as const;
|
||||
|
||||
export type SessionCapabilityEntry = {
|
||||
type SessionCapabilityEntry = {
|
||||
sessionId?: unknown;
|
||||
spawnDepth?: unknown;
|
||||
subagentRole?: unknown;
|
||||
@@ -28,7 +28,16 @@ export type SessionCapabilityEntry = {
|
||||
spawnedBy?: unknown;
|
||||
};
|
||||
|
||||
export type SessionCapabilityStore = Record<string, SessionCapabilityEntry>;
|
||||
export type SessionCapabilityStore = Record<
|
||||
string,
|
||||
{
|
||||
sessionId?: unknown;
|
||||
spawnDepth?: unknown;
|
||||
subagentRole?: unknown;
|
||||
subagentControlScope?: unknown;
|
||||
spawnedBy?: unknown;
|
||||
}
|
||||
>;
|
||||
|
||||
function normalizeSubagentRole(value: unknown): SubagentSessionRole | undefined {
|
||||
const trimmed = normalizeOptionalLowercaseString(value);
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
import { resolveExecDetail } from "./tool-display-exec.js";
|
||||
import { asRecord } from "./tool-display-record.js";
|
||||
|
||||
export type ToolDisplayActionSpec = {
|
||||
type ToolDisplayActionSpec = {
|
||||
label?: string;
|
||||
detailKeys?: string[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user