fix cyclical import

This commit is contained in:
uinstinct 2026-01-08 18:16:23 +05:30
parent 6182a3ffa0
commit fc5e22f5ad

View file

@ -1,5 +1,4 @@
import { services } from "../services/index.js";
import { executeSubAgent } from "../subagent/executor.js";
import {
generateSubagentToolDescription,
getSubagent,
@ -95,6 +94,8 @@ export const subagentTool: GetTool = (params) => ({
// Create abort controller for child execution
const abortController = new AbortController();
const { executeSubAgent } = await import("../subagent/executor.js"); // prevent cyclical import
// Execute subagent with output streaming
const result = await executeSubAgent({
agent,