refactor(agents): drop runtime metadata re-export

This commit is contained in:
Vincent Koc
2026-06-17 09:08:00 +08:00
parent 93216e1ca1
commit 53655f39f1
2 changed files with 1 additions and 4 deletions

View File

@@ -5,8 +5,7 @@ import { isAcpSessionKey } from "../routing/session-key.js";
* Leaf type for agent runtime classification. Defined here so that
* agent-runtime-metadata.ts can import applyAcpRuntimeOverlay without
* creating a circular dependency (agent-runtime-metadata → acp-runtime-overlay
* → agent-runtime-metadata). agent-runtime-metadata.ts re-exports this type
* so all existing consumers remain unaffected.
* → agent-runtime-metadata).
*/
export type AgentRuntimeMetadata = {
id: string;

View File

@@ -4,8 +4,6 @@ import { applyAcpRuntimeOverlay, type AgentRuntimeMetadata } from "./acp-runtime
import { resolveAgentHarnessPolicy } from "./harness/policy.js";
import { resolveDefaultModelForAgent } from "./model-selection.js";
export type { AgentRuntimeMetadata };
/** Resolves the runtime id/source that should be reported for a model-backed agent session. */
export function resolveModelAgentRuntimeMetadata(params: {
cfg: OpenClawConfig;