From 830e15ec12cc24575df2c9ffd7ec9d5fcad235e4 Mon Sep 17 00:00:00 2001 From: Daniel Campagnoli Date: Mon, 4 Aug 2025 10:37:14 +0800 Subject: [PATCH] Update detect.ts --- src/cli/detect.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/detect.ts b/src/cli/detect.ts index b7f5dc82..3948a69c 100644 --- a/src/cli/detect.ts +++ b/src/cli/detect.ts @@ -1,6 +1,5 @@ import '#fastify/trace-init/trace-init'; // leave an empty line next so this doesn't get sorted from the first line -import { detectProjectInfo } from 'dist/src/swe/projectDetection'; import { agentContext } from '#agent/agentContextLocalStorage'; import type { RunWorkflowConfig } from '#agent/autonomous/autonomousAgentRunner'; import { runWorkflowAgent } from '#agent/workflow/workflowAgentRunner'; @@ -8,6 +7,7 @@ import { initApplicationContext } from '#app/applicationContext'; import { shutdownTrace } from '#fastify/trace-init/trace-init'; import { defaultLLMs } from '#llm/services/defaultLlms'; import type { AgentLLMs } from '#shared/agent/agent.model'; +import { getProjectInfo } from '#swe/projectDetection'; async function main() { await initApplicationContext(); @@ -29,7 +29,7 @@ async function main() { await runWorkflowAgent(config, async () => { const agent = agentContext(); - const projectInfo = await detectProjectInfo(); + const projectInfo = await getProjectInfo(true); console.log(projectInfo); console.log('Written to .typedai.json'); });