refactor(tools): remove stale inventory re-exports · openclaw/openclaw@71ef6b2
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,6 @@ import {
|
15 | 15 | filterRuntimeCompatibleTools, |
16 | 16 | type RuntimeToolSchemaDiagnostic, |
17 | 17 | } from "./tool-schema-projection.js"; |
18 | | -import { buildEffectiveToolInventoryGroups } from "./tools-effective-inventory-groups.js"; |
19 | 18 | import { |
20 | 19 | disambiguateEffectiveToolLabels, |
21 | 20 | resolveEffectiveToolLabel, |
@@ -215,5 +214,3 @@ export function buildRuntimeCompatibleToolInventory(params: {
|
215 | 214 | }), |
216 | 215 | }; |
217 | 216 | } |
218 | | - |
219 | | -export { buildEffectiveToolInventoryGroups }; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,23 +22,15 @@ import { resolveModel } from "./embedded-agent-runner/model.js";
|
22 | 22 | import { resolveBundledStaticCatalogModel } from "./embedded-agent-runner/model.static-catalog.js"; |
23 | 23 | import { normalizeStaticProviderModelId } from "./model-ref-shared.js"; |
24 | 24 | import { normalizeToolName } from "./tool-policy.js"; |
25 | | -import { |
26 | | -buildEffectiveToolInventoryGroups, |
27 | | -buildRuntimeCompatibleToolInventory, |
28 | | -} from "./tools-effective-inventory-build.js"; |
| 25 | +import { buildRuntimeCompatibleToolInventory } from "./tools-effective-inventory-build.js"; |
| 26 | +import { buildEffectiveToolInventoryGroups } from "./tools-effective-inventory-groups.js"; |
29 | 27 | import type { |
30 | 28 | EffectiveToolInventoryNotice, |
31 | 29 | EffectiveToolInventoryEntry, |
32 | 30 | EffectiveToolInventoryResult, |
33 | 31 | ResolveEffectiveToolInventoryParams, |
34 | 32 | } from "./tools-effective-inventory.types.js"; |
35 | 33 | |
36 | | -export { |
37 | | -buildEffectiveToolInventoryEntries, |
38 | | -buildEffectiveToolInventoryGroups, |
39 | | -buildRuntimeCompatibleToolInventory, |
40 | | -} from "./tools-effective-inventory-build.js"; |
41 | | - |
42 | 34 | function listIncludesTool(list: string[] | undefined, toolName: string): boolean { |
43 | 35 | if (!Array.isArray(list)) { |
44 | 36 | return false; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。