refactor: trim agent helper shape exports · openclaw/openclaw@2e8e9cd
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
2 | 2 | import type { BundleLspServerConfig } from "../plugins/bundle-lsp.js"; |
3 | 3 | import { loadEnabledBundleLspConfig } from "../plugins/bundle-lsp.js"; |
4 | 4 | |
5 | | -export type EmbeddedPiLspConfig = { |
| 5 | +type EmbeddedPiLspConfig = { |
6 | 6 | lspServers: Record<string, BundleLspServerConfig>; |
7 | 7 | diagnostics: Array<{ pluginId: string; message: string }>; |
8 | 8 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
2 | 2 | import type { BundleMcpDiagnostic, BundleMcpServerConfig } from "../plugins/bundle-mcp.js"; |
3 | 3 | import { loadMergedBundleMcpConfig } from "./bundle-mcp-config.js"; |
4 | 4 | |
5 | | -export type EmbeddedPiMcpConfig = { |
| 5 | +type EmbeddedPiMcpConfig = { |
6 | 6 | mcpServers: Record<string, BundleMcpServerConfig>; |
7 | 7 | diagnostics: BundleMcpDiagnostic[]; |
8 | 8 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js"; |
2 | 2 | |
3 | | -export type ExecApprovalResult = |
| 3 | +type ExecApprovalResult = |
4 | 4 | | { |
5 | 5 | kind: "denied"; |
6 | 6 | raw: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
4 | 4 | import { resolveAgentConfig } from "./agent-scope.js"; |
5 | 5 | import { modelKey } from "./model-ref-shared.js"; |
6 | 6 | |
7 | | -export type FastModeState = { |
| 7 | +type FastModeState = { |
8 | 8 | enabled: boolean; |
9 | 9 | source: "session" | "agent" | "config" | "default"; |
10 | 10 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ export type QueuedFileWriter = {
|
8 | 8 | flush: () => Promise<void>; |
9 | 9 | }; |
10 | 10 | |
11 | | -export type QueuedFileWriterOptions = { |
| 11 | +type QueuedFileWriterOptions = { |
12 | 12 | maxFileBytes?: number; |
13 | 13 | }; |
14 | 14 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import { formatErrorMessage } from "../infra/errors.js";
|
2 | 2 | |
3 | 3 | export const AGENT_CLEANUP_STEP_TIMEOUT_MS = 10_000; |
4 | 4 | |
5 | | -export type AgentCleanupLogger = { |
| 5 | +type AgentCleanupLogger = { |
6 | 6 | warn: (message: string) => void; |
7 | 7 | }; |
8 | 8 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ const NATIVE_KIMI_TOOL_CALL_ID_RE = /^functions\.[A-Za-z0-9_-]+:\d+$/;
|
13 | 13 | const STRICT9_LEN = 9; |
14 | 14 | const TOOL_CALL_TYPES = new Set(["toolCall", "toolUse", "functionCall"]); |
15 | 15 | |
16 | | -export type ToolCallLike = { |
| 16 | +type ToolCallLike = { |
17 | 17 | id: string; |
18 | 18 | name?: string; |
19 | 19 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。