Remove legacy orchestration and MCP aliases; reroute recursive pipeline API
This commit is contained in:
@@ -107,8 +107,7 @@ test("recursive fanout/fan-in avoids deadlock at maxConcurrentAgents=1", async (
|
||||
const session = manager.createSession("recursive-deadlock");
|
||||
|
||||
const executionOrder: string[] = [];
|
||||
const result = await manager.runRecursiveAgent({
|
||||
sessionId: session.id,
|
||||
const result = await session.runRecursive({
|
||||
depth: 0,
|
||||
run: async ({ sessionId, intent }) => {
|
||||
executionOrder.push(`${sessionId}:${intent?.task ?? "root"}`);
|
||||
@@ -151,8 +150,7 @@ test("rejects recursive child spawn above depth limit", async () => {
|
||||
|
||||
await assert.rejects(
|
||||
() =>
|
||||
manager.runRecursiveAgent({
|
||||
sessionId: session.id,
|
||||
session.runRecursive({
|
||||
depth: 0,
|
||||
run: async ({ depth }) => {
|
||||
if (depth < 3) {
|
||||
@@ -195,8 +193,7 @@ test("closing parent session aborts active recursive work and releases child res
|
||||
let abortCount = 0;
|
||||
let releaseCount = 0;
|
||||
|
||||
const runPromise = manager.runRecursiveAgent({
|
||||
sessionId: session.id,
|
||||
const runPromise = session.runRecursive({
|
||||
depth: 0,
|
||||
run: async ({ intent, signal }) => {
|
||||
if (!intent) {
|
||||
@@ -286,8 +283,7 @@ test("recursive children can be isolated via middleware-backed suballocation", a
|
||||
const childLeases = new Map<string, Awaited<ReturnType<typeof provisioner.provisionChildSession>>>();
|
||||
|
||||
try {
|
||||
await manager.runRecursiveAgent({
|
||||
sessionId: session.id,
|
||||
await session.runRecursive({
|
||||
depth: 0,
|
||||
run: async ({ intent, sessionId }) => {
|
||||
if (!intent) {
|
||||
|
||||
Reference in New Issue
Block a user