input.ts
This file
Path
apps/cli/src/hook/input.ts
16 lines · 502 bytes · TypeScript
Last changed by
Merge build/comments-cli-protocol-checks into mainoscabrielbefore adoptionc86204f
History of this fileTake it
The walk stopped after 200 commits: lines older than 25a727e point at it.
Run the swarm's pell on opencode-go/qwen3.8-flash, since pi here has no OpenCode Zen keyoscabrielbefore adoption25a727e
lines 1–16why, one step back1import { Schema } from "effect";23export const HookInput = Schema.Struct({4 cwd: Schema.String,5 hook_event_name: Schema.String,6 session_id: Schema.NonEmptyString,7 stop_hook_active: Schema.optionalKey(Schema.Boolean),8 tool_input: Schema.optionalKey(Schema.Record(Schema.String, Schema.Unknown)),9 tool_name: Schema.optionalKey(Schema.String),10});1112export type HookInput = typeof HookInput.Type;1314export const decodeHookInput = Schema.decodeUnknownEffect(15 Schema.fromJsonString(HookInput)16);