plan writing

This commit is contained in:
justsisyphus 2026-01-19 14:52:32 +09:00
parent b0bb4048c9
commit f935231184

View File

@ -80,7 +80,7 @@ export function createPrometheusMdOnlyHook(ctx: PluginInput) {
output: { args: Record<string, unknown>; message?: string } output: { args: Record<string, unknown>; message?: string }
): Promise<void> => { ): Promise<void> => {
const agentName = getAgentFromSession(input.sessionID) const agentName = getAgentFromSession(input.sessionID)
if (!agentName || !PROMETHEUS_AGENTS.includes(agentName)) { if (!agentName || !PROMETHEUS_AGENTS.includes(agentName)) {
return return
} }
@ -120,7 +120,8 @@ export function createPrometheusMdOnlyHook(ctx: PluginInput) {
throw new Error( throw new Error(
`[${HOOK_NAME}] Prometheus (Planner) can only write/edit .md files inside .sisyphus/ directory. ` + `[${HOOK_NAME}] Prometheus (Planner) can only write/edit .md files inside .sisyphus/ directory. ` +
`Attempted to modify: ${filePath}. ` + `Attempted to modify: ${filePath}. ` +
`Prometheus is a READ-ONLY planner. Use /start-work to execute the plan.` `Prometheus is a READ-ONLY planner. Use /start-work to execute the plan. ` +
`APOLOGIZE TO THE USER, REMIND OF YOUR PLAN WRITING PROCESSES, TELL USER WHAT YOU WILL GOING TO DO AS THE PROCESS, WRITE THE PLAN`
) )
} }