2026-01-11 20:30:29 +11:00
|
|
|
import { describe, test, expect } from "bun:test"
|
2026-02-01 16:47:50 +09:00
|
|
|
import { PROMETHEUS_SYSTEM_PROMPT } from "./prometheus"
|
2026-01-11 20:30:29 +11:00
|
|
|
|
|
|
|
|
describe("PROMETHEUS_SYSTEM_PROMPT Momus invocation policy", () => {
|
|
|
|
|
test("should direct providing ONLY the file path string when invoking Momus", () => {
|
2026-02-01 16:47:50 +09:00
|
|
|
// given
|
2026-01-11 20:30:29 +11:00
|
|
|
const prompt = PROMETHEUS_SYSTEM_PROMPT
|
|
|
|
|
|
2026-02-01 16:47:50 +09:00
|
|
|
// when / #then
|
2026-01-11 20:30:29 +11:00
|
|
|
// Should mention Momus and providing only the path
|
|
|
|
|
expect(prompt.toLowerCase()).toMatch(/momus.*only.*path|path.*only.*momus/)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
test("should forbid wrapping Momus invocation in explanations or markdown", () => {
|
2026-02-01 16:47:50 +09:00
|
|
|
// given
|
2026-01-11 20:30:29 +11:00
|
|
|
const prompt = PROMETHEUS_SYSTEM_PROMPT
|
|
|
|
|
|
2026-02-01 16:47:50 +09:00
|
|
|
// when / #then
|
2026-01-11 20:30:29 +11:00
|
|
|
// Should mention not wrapping or using markdown for the path
|
|
|
|
|
expect(prompt.toLowerCase()).toMatch(/not.*wrap|no.*explanation|no.*markdown/)
|
|
|
|
|
})
|
|
|
|
|
})
|