feat(prometheus): allow bash commands for Prometheus agent

Remove bash tool restriction from prometheus-md-only hook. Prometheus
can now execute bash commands for better plan generation context.
This commit is contained in:
YeonGyu-Kim
2026-02-10 17:13:31 +09:00
parent 67fdc1450e
commit d96258d832
3 changed files with 3 additions and 17 deletions
+2 -2
View File
@@ -173,7 +173,7 @@ describe("prometheus-md-only", () => {
).rejects.toThrow("can only write/edit .md files")
})
test("should block bash commands from Prometheus", async () => {
test("should allow bash commands from Prometheus", async () => {
// given
const hook = createPrometheusMdOnlyHook(createMockPluginInput())
const input = {
@@ -188,7 +188,7 @@ describe("prometheus-md-only", () => {
// when / #then
await expect(
hook["tool.execute.before"](input, output)
).rejects.toThrow("cannot execute bash commands")
).resolves.toBeUndefined()
})
test("should not affect non-blocked tools", async () => {