refactor(agents): remove tool display record facade · openclaw/openclaw@4552ea7
vincentkoc
·
2026-06-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,14 +3,16 @@
|
3 | 3 | * Redacts and summarizes arguments into short labels/details for chat and UI |
4 | 4 | * tool update streams. |
5 | 5 | */ |
| 6 | +import { |
| 7 | +asOptionalObjectRecord as asRecord, |
| 8 | +} from "@openclaw/normalization-core/record-coerce"; |
6 | 9 | import { |
7 | 10 | normalizeLowercaseStringOrEmpty, |
8 | 11 | normalizeOptionalString, |
9 | 12 | } from "@openclaw/normalization-core/string-coerce"; |
10 | 13 | import { parseStrictFiniteNumber } from "../infra/parse-finite-number.js"; |
11 | 14 | import { redactToolPayloadText } from "../logging/redact.js"; |
12 | 15 | import { resolveExecDetail, type ToolDetailMode } from "./tool-display-exec.js"; |
13 | | -import { asRecord } from "./tool-display-record.js"; |
14 | 16 | |
15 | 17 | type ToolDisplayActionSpec = { |
16 | 18 | label?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,6 +3,7 @@
|
3 | 3 | * |
4 | 4 | * Turns common shell commands into short redacted labels for tool timelines and transcripts. |
5 | 5 | */ |
| 6 | +import { asOptionalObjectRecord as asRecord } from "@openclaw/normalization-core/record-coerce"; |
6 | 7 | import { redactToolPayloadText } from "../logging/redact.js"; |
7 | 8 | import { |
8 | 9 | binaryName, |
@@ -17,7 +18,6 @@ import {
|
17 | 18 | trimLeadingEnv, |
18 | 19 | unwrapShellWrapper, |
19 | 20 | } from "./tool-display-exec-shell.js"; |
20 | | -import { asRecord } from "./tool-display-record.js"; |
21 | 21 | |
22 | 22 | function summarizeKnownExec(words: string[]): string { |
23 | 23 | if (words.length === 0) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,11 +3,11 @@
|
3 | 3 | * |
4 | 4 | * Identifies mutating tool calls and file targets so retry/recovery logic can reason about side effects. |
5 | 5 | */ |
| 6 | +import { asOptionalObjectRecord as asRecord } from "@openclaw/normalization-core/record-coerce"; |
6 | 7 | import { |
7 | 8 | normalizeLowercaseStringOrEmpty, |
8 | 9 | normalizeOptionalLowercaseString, |
9 | 10 | } from "@openclaw/normalization-core/string-coerce"; |
10 | | -import { asRecord } from "./tool-display-record.js"; |
11 | 11 | |
12 | 12 | const MUTATING_TOOL_NAMES = new Set([ |
13 | 13 | "write", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。