mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
refactor: trim agent helper shape exports
This commit is contained in:
@@ -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 }>;
|
||||
};
|
||||
|
||||
@@ -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[];
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js";
|
||||
|
||||
export type ExecApprovalResult =
|
||||
type ExecApprovalResult =
|
||||
| {
|
||||
kind: "denied";
|
||||
raw: string;
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@ export type QueuedFileWriter = {
|
||||
flush: () => Promise<void>;
|
||||
};
|
||||
|
||||
export type QueuedFileWriterOptions = {
|
||||
type QueuedFileWriterOptions = {
|
||||
maxFileBytes?: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user