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.
TypeScript
import type { Tier } from 'claude-code'
/**
* A continuation as the gate is handed it: answers `served` when gone on
* to, stamped with a caller in the tier given, or with no origin at all.
*
* @param tier the caller's tier; undefined for a call that names no origin
* @returns the continuation
*/
export const nextOf = (tier: Tier | undefined) =>
Object.assign(() => 'served', {
origin: tier === undefined ? undefined : { plugin: 'caller', tier },
})