17 lines
429 B
TypeScript
17 lines
429 B
TypeScript
import generateRepoMap from "../../util/generateRepoMap";
|
|
|
|
import { ToolImpl } from ".";
|
|
|
|
export const viewSubdirectoryImpl: ToolImpl = async (args: any, extras) => {
|
|
const { directory_path } = args;
|
|
const repoMap = await generateRepoMap(extras.llm, extras.ide, {
|
|
dirs: [directory_path],
|
|
});
|
|
return [
|
|
{
|
|
name: "Repo map",
|
|
description: `Map of ${directory_path}`,
|
|
content: repoMap,
|
|
},
|
|
];
|
|
};
|