refactor: trim agent helper shape exports

This commit is contained in:
Peter Steinberger
2026-05-01 21:29:41 +01:00
parent 732aa11f2b
commit 2e8e9cd6ca
7 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
import type { BundleLspServerConfig } from "../plugins/bundle-lsp.js";
import { loadEnabledBundleLspConfig } from "../plugins/bundle-lsp.js";
export type EmbeddedPiLspConfig = {
type EmbeddedPiLspConfig = {
lspServers: Record<string, BundleLspServerConfig>;
diagnostics: Array<{ pluginId: string; message: string }>;
};

View File

@@ -2,7 +2,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
import type { BundleMcpDiagnostic, BundleMcpServerConfig } from "../plugins/bundle-mcp.js";
import { loadMergedBundleMcpConfig } from "./bundle-mcp-config.js";
export type EmbeddedPiMcpConfig = {
type EmbeddedPiMcpConfig = {
mcpServers: Record<string, BundleMcpServerConfig>;
diagnostics: BundleMcpDiagnostic[];
};

View File

@@ -1,6 +1,6 @@
import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js";
export type ExecApprovalResult =
type ExecApprovalResult =
| {
kind: "denied";
raw: string;

View File

@@ -4,7 +4,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
import { resolveAgentConfig } from "./agent-scope.js";
import { modelKey } from "./model-ref-shared.js";
export type FastModeState = {
type FastModeState = {
enabled: boolean;
source: "session" | "agent" | "config" | "default";
};

View File

@@ -8,7 +8,7 @@ export type QueuedFileWriter = {
flush: () => Promise<void>;
};
export type QueuedFileWriterOptions = {
type QueuedFileWriterOptions = {
maxFileBytes?: number;
};

View File

@@ -2,7 +2,7 @@ import { formatErrorMessage } from "../infra/errors.js";
export const AGENT_CLEANUP_STEP_TIMEOUT_MS = 10_000;
export type AgentCleanupLogger = {
type AgentCleanupLogger = {
warn: (message: string) => void;
};

View File

@@ -13,7 +13,7 @@ const NATIVE_KIMI_TOOL_CALL_ID_RE = /^functions\.[A-Za-z0-9_-]+:\d+$/;
const STRICT9_LEN = 9;
const TOOL_CALL_TYPES = new Set(["toolCall", "toolUse", "functionCall"]);
export type ToolCallLike = {
type ToolCallLike = {
id: string;
name?: string;
};