spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / record / mark-outcome / mark-outcome.ts
12 lines · 396 BRaw
1import type { Host } from '../../host'
2
3/**
4 * How a marked feature went: fine, or degraded for a reason, with the
5 * properties the built-in panel's mark carries beside it.
6 *
7 * The pane never marks `bad`: a failed fetch keeps the last good diff on
8 * screen.
9 */
10export type MarkOutcome = ({ kind: 'ok' } | { kind: 'sad'; reason: string }) & {
11 props?: Parameters<Host['mark']>[0]['props']
12}