@@ -3,37 +3,22 @@ import type {
33 SessionTranscriptRuntimeScope ,
44 SessionTranscriptRuntimeTarget ,
55} from "../../config/sessions/session-accessor.js" ;
6- import {
7- resolveSessionTranscriptRuntimeReadTarget ,
8- resolveSessionTranscriptRuntimeTarget ,
9- } from "../../config/sessions/session-accessor.js" ;
10- import type { SessionEntry , SessionHeader } from "../sessions/index.js" ;
6+ import { resolveSessionTranscriptRuntimeReadTarget } from "../../config/sessions/session-accessor.js" ;
117import {
128 persistTranscriptStateMutation ,
139 readTranscriptFileState ,
1410 type TranscriptFileState ,
1511 type TranscriptPersistedEntry ,
16- writeTranscriptFileAtomic ,
1712} from "./transcript-file-state.js" ;
1813
1914export type RuntimeTranscriptScope = SessionTranscriptRuntimeScope ;
20- export type RuntimeTranscriptTarget = SessionTranscriptRuntimeTarget ;
15+ type RuntimeTranscriptTarget = SessionTranscriptRuntimeTarget ;
2116
22- export type RuntimeTranscriptState = {
17+ type RuntimeTranscriptState = {
2318 state : TranscriptFileState ;
2419 target : RuntimeTranscriptTarget ;
2520} ;
2621
27- /**
28- * Resolves the current file-backed transcript target for runtime state
29- * operations. The returned path is an implementation detail, not identity.
30- */
31- export async function resolveRuntimeTranscriptTarget (
32- scope : RuntimeTranscriptScope ,
33- ) : Promise < RuntimeTranscriptTarget > {
34- return await resolveSessionTranscriptRuntimeTarget ( scope ) ;
35- }
36-
3722/**
3823 * Resolves the runtime transcript target for read/probe operations without
3924 * linking missing file-backed metadata into the session store.
@@ -72,16 +57,6 @@ export async function persistRuntimeTranscriptStateMutation(params: {
7257 } ) ;
7358}
7459
75- /**
76- * Atomically replaces the file-backed transcript for a runtime transcript.
77- */
78- export async function replaceRuntimeTranscriptEntries ( params : {
79- entries : Array < SessionHeader | SessionEntry > ;
80- target : RuntimeTranscriptTarget ;
81- } ) : Promise < void > {
82- await writeTranscriptFileAtomic ( params . target . sessionFile , params . entries ) ;
83- }
84-
8560/**
8661 * Checks existence of the current runtime transcript without exposing path
8762 * identity to callers.
0 commit comments