feat(core): wire v2 subagent tool

This commit is contained in:
Kit Langton 2026-06-28 11:15:36 -04:00
commit 7ac3128c74
11 changed files with 406 additions and 46 deletions

View file

@ -102,6 +102,16 @@ describe("SessionV2.create", () => {
}),
)
it.effect("inherits location from an existing parent when omitted", () =>
Effect.gen(function* () {
const session = yield* SessionV2.Service
const parent = yield* session.create({ location })
const child = yield* session.create({ parentID: parent.id, title: "child" })
expect(child).toMatchObject({ parentID: parent.id, location })
}),
)
it.effect("returns the existing Session when one ID is reused with different create arguments", () =>
Effect.gen(function* () {
const session = yield* SessionV2.Service