Refuses a release step until a person marks it played.

Refuses a release step until a person marks it played.
Status: stub. Tested with Claude Code 2.1.287.
hooks/register.ts 15 lines1import type { Register } from 'claude-code'
2
3// STUB. Loads, validates, and answers /human-signoff with what it will become.
4// The shape it is heading for: tool.call guard on release commands; /signoff <thing> marks it
5export const register: Register = on => {
6 on('session.start', async ($, e, next) => {
7 await $.command.register({ name: 'human-signoff', description: "Refuses a release step until a person marks it played." })
8 return next(e)
9 })
10
11 on('command.run', { command: 'human-signoff' }, async () => {
12 return { text: 'Not built yet. ' + "Refuses a release step until a person marks it played." }
13 })
14}
15