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 678c8b8 point at it.
Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
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);