MCPcopy Index your code
hub / github.com/Waishnav/devspace / loadInitialAgentsFiles

Method loadInitialAgentsFiles

src/workspaces.ts:242–255  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

240 }
241
242 private loadInitialAgentsFiles(root: string): LoadedAgentsFile[] {
243 const agentDir = resolve(this.config.agentDir);
244
245 return loadProjectContextFiles({ cwd: root, agentDir })
246 .filter((file) => {
247 const path = resolve(file.path);
248 if (isPathInsideRoot(path, agentDir)) return true;
249 return isPathInsideRoot(path, root) && dirname(path) === root;
250 })
251 .map((file) => ({
252 path: resolve(file.path),
253 content: file.content,
254 }));
255 }
256
257 private async findAvailableAgentsFiles(
258 root: string,

Callers 1

Calls 1

isPathInsideRootFunction · 0.85

Tested by

no test coverage detected