refactor: trim subagent store type exports

This commit is contained in:
Peter Steinberger
2026-05-02 01:34:12 +01:00
parent 644caea8a7
commit 14e8318648
2 changed files with 12 additions and 3 deletions

View File

@@ -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);

View File

@@ -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[];
};