(options: {
messageText: string;
agentSkillDescriptors: AgentSkillDescriptor[];
api: APIClient | null;
discovery: SkillResolutionTarget | null;
})
| 117 | } |
| 118 | |
| 119 | export async function parseCommandWithSkillInvocation(options: { |
| 120 | messageText: string; |
| 121 | agentSkillDescriptors: AgentSkillDescriptor[]; |
| 122 | api: APIClient | null; |
| 123 | discovery: SkillResolutionTarget | null; |
| 124 | }): Promise<{ parsed: ParsedCommand; skillInvocation: SkillInvocation | null }> { |
| 125 | const parsed = parseCommand(options.messageText); |
| 126 | const skillInvocation = await resolveSkillInvocation({ |
| 127 | messageText: options.messageText, |
| 128 | parsed, |
| 129 | agentSkillDescriptors: options.agentSkillDescriptors, |
| 130 | api: options.api, |
| 131 | discovery: options.discovery, |
| 132 | }); |
| 133 | |
| 134 | return { |
| 135 | parsed: skillInvocation == null ? parsed : null, |
| 136 | skillInvocation, |
| 137 | }; |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Resolve inline `$skill` references found in the user's authored message text. |
no test coverage detected