@@ -3,37 +3,22 @@ import type {
|
3 | 3 | SessionTranscriptRuntimeScope, |
4 | 4 | SessionTranscriptRuntimeTarget, |
5 | 5 | } 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"; |
11 | 7 | import { |
12 | 8 | persistTranscriptStateMutation, |
13 | 9 | readTranscriptFileState, |
14 | 10 | type TranscriptFileState, |
15 | 11 | type TranscriptPersistedEntry, |
16 | | -writeTranscriptFileAtomic, |
17 | 12 | } from "./transcript-file-state.js"; |
18 | 13 | |
19 | 14 | export type RuntimeTranscriptScope = SessionTranscriptRuntimeScope; |
20 | | -export type RuntimeTranscriptTarget = SessionTranscriptRuntimeTarget; |
| 15 | +type RuntimeTranscriptTarget = SessionTranscriptRuntimeTarget; |
21 | 16 | |
22 | | -export type RuntimeTranscriptState = { |
| 17 | +type RuntimeTranscriptState = { |
23 | 18 | state: TranscriptFileState; |
24 | 19 | target: RuntimeTranscriptTarget; |
25 | 20 | }; |
26 | 21 | |
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 | | - |
37 | 22 | /** |
38 | 23 | * Resolves the runtime transcript target for read/probe operations without |
39 | 24 | * linking missing file-backed metadata into the session store. |
@@ -72,16 +57,6 @@ export async function persistRuntimeTranscriptStateMutation(params: {
|
72 | 57 | }); |
73 | 58 | } |
74 | 59 | |
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 | | - |
85 | 60 | /** |
86 | 61 | * Checks existence of the current runtime transcript without exposing path |
87 | 62 | * identity to callers. |
|