jevhooks.git / plugin / types / index.d.ts

What the daemon answers a deciding event with (jevhooks-events' Decision).

2export type Decision = {
3  verdict: 'allow' | 'ask' | 'pass'
4  /** One line for the user: what was judged and how sure Jev was. */
5  line: string
6  /** The daemon's time, Jev included. */
7  ms: number
8  session_usd: number
9}

The last decision, as the band above the prompt shows it.

12export type Shown = Decision & { kind: 'command' | 'turn end' }
14declare module 'claude-code' {
15  interface PluginState {
16    jevhooks: { last: Shown | null }
17  }
18}