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 / tests / fixtures / agent-offered.ts
14 lines · 434 BRaw
1import type { AgentOfferInput, Origin } from 'claude-code'
2
3/**
4 * An agent type's offer as the engine asks for it, pinned to who provides
5 * the agent.
6 *
7 * @param agent the agent type
8 * @param provider who provides it, as the engine pinned it
9 * @returns the `agent.offer` input
10 */
11export const agentOffered = (
12 agent: string,
13 provider: Origin,
14): AgentOfferInput => ({ agent, description: 'd', source: 'plugin', provider })