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 / sec-default / hooks / held-verdict / verdicts / plugin-of.ts
GitHub Actions (publish-mods)chore: Update mods/ 5a2676e · 4 days ago History
13 lines · 487 BRaw
1import type { StampedVerdict } from './stamped-verdict.js'
2
3/**
4 * The plugin the engine names on a `tool.check` ask, as the hook that made it.
5 *
6 * The released declarations this mod is checked against name neither this key
7 * nor `e.approver` until the next release, so it reads the shape it needs.
8 *
9 * @param verdict a verdict
10 * @returns the plugin, or undefined on an ask no hook made
11 */
12export const pluginOf = (verdict: StampedVerdict): string | undefined =>
13 verdict.plugin