MCPcopy
hub / github.com/CodebuffAI/codebuff / getStubProjectFileContext

Function getStubProjectFileContext

common/src/util/file.ts:137–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135}
136
137export const getStubProjectFileContext = (): ProjectFileContext => ({
138 projectRoot: '',
139 cwd: '',
140 fileTree: [],
141 fileTokenScores: {},
142 knowledgeFiles: {},
143 userKnowledgeFiles: {},
144 agentTemplates: {},
145 customToolDefinitions: {},
146 skills: {},
147 gitChanges: {
148 status: '',
149 diff: '',
150 diffCached: '',
151 lastCommitMessages: '',
152 },
153 changesSinceLastChat: {},
154 shellConfigFiles: {},
155 systemInfo: {
156 platform: '',
157 shell: '',
158 nodeVersion: '',
159 arch: '',
160 homedir: '',
161 cpus: 0,
162 chromeAvailable: false,
163 },
164})
165
166export const createMarkdownFileBlock = (filePath: string, content: string) => {
167 return `\`\`\`${filePath}\n${content}\n\`\`\``

Calls

no outgoing calls

Tested by 1

buildMockFileContextFunction · 0.72