refactor: hide remaining subagent helpers

This commit is contained in:
Tianyi Cui
2026-07-14 02:45:34 +08:00
parent f85b831bd2
commit 65521b589f
7 files changed
+25 -31

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ export const Config: z<Config> = z.object({
* @param parent - the agent whose session log to slice.
* @returns the seed events, contiguous from seq 0; empty when no turn has completed.
*/
export function completedTurnPrefix(parent: Agent): SessionEvent[] {
function completedTurnPrefix(parent: Agent): SessionEvent[] {
const events = parent.session.events
const lastEnd = events.findLast(e => e.type === 'turn/end')
if (lastEnd === undefined) return []