From 933e503a2ff4053f57b528d0366a757b9485eb4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=B4=E9=99=88=E5=A8=81?= Date: Thu, 20 Nov 2025 17:30:58 +0800 Subject: [PATCH] feat: export agent files utils --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 79814cd..8a8a7bc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -594,7 +594,7 @@ function parseAgentsContent( /** * Merge AGENTS.md files from multiple sources */ -function mergeAgentsFiles(agentsFiles: string[]): string { +export function mergeAgentsFiles(agentsFiles: string[]): string { const allSections: Record< string, { title: string; level: number; contents: string[] } @@ -638,7 +638,7 @@ function mergeAgentsFiles(agentsFiles: string[]): string { /** * Collect AGENTS.md files from template directories */ -function collectAgentsFiles(agentsMdSearchDirs: string[]): string[] { +export function collectAgentsFiles(agentsMdSearchDirs: string[]): string[] { const agentsFiles: string[] = []; for (const dir of agentsMdSearchDirs) {