File size: 513 Bytes
bdbd3b2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import type { CommandDescribeInput, Origin } from 'claude-code'
/**
* A visible command's description as the engine asks for it, pinned to
* who provides the command.
*
* @param command the command's name, no slash
* @param provider who provides it, as the engine pinned it
* @returns the `command.describe` input
*/
export const commandDescribed = (
command: string,
provider: Origin,
): CommandDescribeInput => ({
command,
description: 'd',
isHidden: false,
immediate: false,
provider,
})
|