MCPcopy Create free account
hub / github.com/METR/vivaria / getDefaultTaskHelperCode

Function getDefaultTaskHelperCode

server/src/DriverImpl.ts:38–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37let taskHelperCode: string | undefined
38function getDefaultTaskHelperCode(): string {
39 if (taskHelperCode == null) {
40 taskHelperCode = fs.readFileSync(findAncestorPath('./scripts/taskhelper.py'), 'utf8')
41 }
42 return taskHelperCode
43}
44export function findAncestorPath(relativePath: string): string {
45 let currentDir = __dirname
46 const root = path.parse(currentDir).root

Callers 1

constructorMethod · 0.70

Calls 1

findAncestorPathFunction · 0.85

Tested by

no test coverage detected