refactor(agents): hide compaction helper types · openclaw/openclaw@c624ae4
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
File tree
src/agents/embedded-agent-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -113,7 +113,7 @@ export async function runPostCompactionSideEffects(params: {
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** Narrow adapter over the global hook runner methods used by compaction. */ |
116 | | -export type CompactionHookRunner = { |
| 116 | +type CompactionHookRunner = { |
117 | 117 | hasHooks?: (hookName?: string) => boolean; |
118 | 118 | runBeforeCompaction?: ( |
119 | 119 | metrics: { messageCount: number; tokenCount?: number; sessionFile?: string }, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,7 @@ import {
|
17 | 17 | resolveSelectedOpenAIRuntimeProvider, |
18 | 18 | } from "../openai-routing.js"; |
19 | 19 | |
20 | | -export type EmbeddedCompactionRuntimeContext = { |
| 20 | +type EmbeddedCompactionRuntimeContext = { |
21 | 21 | sessionKey?: string; |
22 | 22 | messageChannel?: string; |
23 | 23 | messageProvider?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
6 | 6 | import type { ContextEngineRuntimeContext } from "../../context-engine/types.js"; |
7 | 7 | import { resolveBoundAgentIdForSession } from "../session-agent-binding.js"; |
8 | 8 | |
9 | | -export type ResolveContextEngineCapabilitiesParams = { |
| 9 | +type ResolveContextEngineCapabilitiesParams = { |
10 | 10 | config?: OpenClawConfig; |
11 | 11 | sessionKey?: string; |
12 | 12 | agentId?: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。