MCPcopy
hub / github.com/continuedev/continue / getAllDotContinueDefinitionFiles

Function getAllDotContinueDefinitionFiles

core/config/loadLocalAssistants.ts:131–156  ·  view source on GitHub ↗
(
  ide: IDE,
  options: LoadAssistantFilesOptions,
  subDirName: string,
)

Source from the content-addressed store, hash-verified

129 * for all YAML/Markdown files in the specified subdirectory, for example .continue/assistants or .continue/prompts
130 */
131export async function getAllDotContinueDefinitionFiles(
132 ide: IDE,
133 options: LoadAssistantFilesOptions,
134 subDirName: string,
135): Promise<{ path: string; content: string }[]> {
136 const workspaceDirs = await ide.getWorkspaceDirs();
137
138 // Get all directories to check for assistant files
139 const fullDirs = getDotContinueSubDirs(
140 ide,
141 options,
142 workspaceDirs,
143 subDirName,
144 );
145
146 // Get all definition files from the directories
147 const definitionFiles = (
148 await Promise.all(
149 fullDirs.map((dir) =>
150 getDefinitionFilesInDir(ide, dir, options.fileExtType),
151 ),
152 )
153 ).flat();
154
155 return definitionFiles;
156}

Callers 5

loadMarkdownSkillsFunction · 0.90
loadMarkdownRulesFunction · 0.90
loadConfigYamlFunction · 0.90
getLocalProfilesMethod · 0.85

Calls 3

getDotContinueSubDirsFunction · 0.85
getDefinitionFilesInDirFunction · 0.85
getWorkspaceDirsMethod · 0.65

Tested by

no test coverage detected