mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
10 lines
551 B
TypeScript
10 lines
551 B
TypeScript
import { runCodexHook, hookFailure } from '../../../scripts/lib/codex-mod-runtime.mjs'
|
|
import { newStats, STATUS_PATH, statusText } from './status'
|
|
import { answer } from './command'
|
|
import { verdict } from './guard'
|
|
|
|
runCodexHook({ name: 'ruflo-ddd', writers: ['memory_store', 'agentdb_hierarchical-store'], verdict, newStats, statusPath: STATUS_PATH, answer,
|
|
statusText: (stats, now) => statusText(stats, true, now),
|
|
count: (stats, tool, input, reason) => { if (reason !== undefined) stats.blocked++; },
|
|
}).catch(() => hookFailure('ruflo-ddd'))
|