refactor(agents): extract shared tool model helpers

This commit is contained in:
Peter Steinberger
2026-03-02 07:08:34 +00:00
parent 45888276a3
commit c3948800f4
4 changed files with 72 additions and 77 deletions

View File

@@ -0,0 +1,13 @@
export { getApiKeyForModel, requireApiKey } from "../model-auth.js";
export { runWithImageModelFallback } from "../model-fallback.js";
export { ensureOpenClawModelsJson } from "../models-config.js";
export { discoverAuthStorage, discoverModels } from "../pi-model-discovery.js";
export {
createSandboxBridgeReadFile,
resolveSandboxedBridgeMediaPath,
type SandboxedBridgeMediaPathConfig,
} from "../sandbox-media-paths.js";
export type { SandboxFsBridge } from "../sandbox/fs-bridge.js";
export type { ToolFsPolicy } from "../tool-fs-policy.js";
export { normalizeWorkspaceDir } from "../workspace-dir.js";
export type { AnyAgentTool } from "./common.js";