18 lines
431 B
TypeScript
18 lines
431 B
TypeScript
import generateRepoMap from "../../util/generateRepoMap";
|
|
|
|
import { ToolImpl } from ".";
|
|
|
|
export const viewRepoMapImpl: ToolImpl = async (args, extras) => {
|
|
const repoMap = await generateRepoMap(extras.llm, extras.ide, {
|
|
outputRelativeUriPaths: true,
|
|
includeSignatures: true,
|
|
});
|
|
return [
|
|
{
|
|
name: "Repo map",
|
|
description: "Overview of the repository structure",
|
|
content: repoMap,
|
|
},
|
|
];
|
|
};
|