refactor(config): hide session helper types

This commit is contained in:
Vincent Koc
2026-06-17 12:15:58 +08:00
parent 04255b247c
commit cc451f98cb
4 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ type ConfigClobberSnapshotFs = {
): unknown;
};
export type ConfigClobberSnapshotDeps = {
type ConfigClobberSnapshotDeps = {
fs: ConfigClobberSnapshotFs;
logger: Pick<typeof console, "warn">;
};

View File

@@ -2,7 +2,7 @@
import { hasSessionAutoModelFallbackProvenance } from "./model-override-provenance.js";
import type { SessionEntry } from "./types.js";
export type ResetPreservedSelectionState = Pick<
type ResetPreservedSelectionState = Pick<
SessionEntry,
| "providerOverride"
| "modelOverride"

View File

@@ -464,7 +464,7 @@ export async function appendSessionTranscriptMessageWithOwnedWriteLock<TMessage>
return await activeLockRunner(() => appendSessionTranscriptMessageLocked(params));
}
export type AppendSessionTranscriptEventParams = {
type AppendSessionTranscriptEventParams = {
config?: OpenClawConfig;
event: unknown;
transcriptPath: string;

View File

@@ -3,7 +3,7 @@ import { randomUUID } from "node:crypto";
import { CURRENT_SESSION_VERSION } from "./version.js";
/** Inputs for the first JSONL entry in a session transcript. */
export type SessionTranscriptHeaderParams = {
type SessionTranscriptHeaderParams = {
sessionId?: string;
cwd?: string;
};