()
| 135 | } |
| 136 | |
| 137 | export 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 | |
| 166 | export const createMarkdownFileBlock = (filePath: string, content: string) => { |
| 167 | return `\`\`\`${filePath}\n${content}\n\`\`\`` |
no outgoing calls