mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-23 02:08:09 +00:00
refactor(agents): drop runtime metadata re-export
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user