feat(core): wire v2 subagent tool (#34320)

This commit is contained in:
Kit Langton
2026-06-28 12:52:39 -04:00
committed by GitHub
parent 41283933ff
commit 94e3a29d2f
15 changed files with 631 additions and 49 deletions
+5 -1
View File
@@ -258,6 +258,7 @@ const execution = Layer.effect(
resume: coordinator.run,
wake: coordinator.wake,
interrupt: coordinator.interrupt,
awaitIdle: coordinator.awaitIdle,
})
}),
).pipe(Layer.provide(runner))
@@ -380,7 +381,10 @@ const recordedEventTypes = (id: SessionV2.ID) =>
.where(eq(EventTable.aggregate_id, id))
.orderBy(asc(EventTable.seq))
.all()
.pipe(Effect.orDie, Effect.map((rows) => rows.map((row) => row.type)))
.pipe(
Effect.orDie,
Effect.map((rows) => rows.map((row) => row.type)),
)
})
const replaySessionProjection = (id: SessionV2.ID) =>