feat(athena): inject intent runtime guidance and action flows

This commit is contained in:
ismeth
2026-03-01 00:18:39 +01:00
committed by YeonGyu-Kim
parent ed2bb1ead7
commit c265200f5f
8 changed files with 825 additions and 12 deletions
+34
View File
@@ -86,6 +86,40 @@ describe("switch_agent tool", () => {
expect(entry?.agent).toBe("prometheus")
})
//#given valid hephaestus switch args
//#when execute is called
//#then it stores pending switch for hephaestus
test("should queue switch to hephaestus", async () => {
const tool = createToolWithMockClient()
const result = await tool.execute(
{ agent: "Hephaestus", context: "Implement the selected diagnosis fix" },
toolContext
)
expect(result).toContain("hephaestus")
expect(result).toContain("switch")
const entry = consumePendingSwitch(sessionID)
expect(entry?.agent).toBe("hephaestus")
})
//#given valid sisyphus switch args
//#when execute is called
//#then it stores pending switch for sisyphus
test("should queue switch to sisyphus", async () => {
const tool = createToolWithMockClient()
const result = await tool.execute(
{ agent: "Sisyphus", context: "Implement the selected diagnosis fix" },
toolContext
)
expect(result).toContain("sisyphus")
expect(result).toContain("switch")
const entry = consumePendingSwitch(sessionID)
expect(entry?.agent).toBe("sisyphus")
})
//#given an invalid agent name
//#when execute is called
//#then it returns an error