Merge remote-tracking branch 'origin/master' into structured-output-subagent-seam

# Conflicts:
#	docs/config-catalog.md
This commit is contained in:
Tianyi Cui
2026-07-07 21:40:07 +08:00
105 changed files with 2828 additions and 371 deletions

View File

@@ -51,6 +51,8 @@ export const Config: z<Config> = z.object({
* empty — i.e. fresh — child). The result is contiguous from seq 0 (the live
* log keeps `seq === index`), so it is a valid session seed; the in-flight,
* unbalanced turn is dropped so the invariants replay accepts it.
* @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[] {
const events = parent.session.events