Skip to content

Commit c5c33d6

Browse files
rm: slop
1 parent aa63902 commit c5c33d6

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/prompt.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,8 @@ import { readFileSync } from "fs"
22
import { join } from "path"
33

44
export function loadPrompt(name: string): string {
5-
// Dev-first: source tree (../lib/prompts) when running from repo
6-
const srcPath = join(__dirname, "..", "..", "lib", "prompts", `${name}.txt`)
7-
8-
try {
9-
return readFileSync(srcPath, "utf8").trim()
10-
} catch (error) {
11-
// Fallback: prompts shipped alongside compiled JS (dist/lib/prompts)
12-
const distPath = join(__dirname, "prompts", `${name}.txt`)
13-
return readFileSync(distPath, "utf8").trim()
14-
}
5+
const filePath = join(__dirname, "prompts", `${name}.txt`)
6+
return readFileSync(filePath, "utf8").trim()
157
}
168

179
function minimizeMessages(messages: any[], alreadyPrunedIds?: string[], protectedToolCallIds?: string[]): any[] {

0 commit comments

Comments
 (0)