|
|
@@ -1782,6 +1782,9 @@ NOTE: At any point in time through this workflow you should feel free to ask the
|
|
|
export async function command(input: CommandInput) {
|
|
|
log.info("command", input)
|
|
|
const command = await Command.get(input.command)
|
|
|
+ if (!command) {
|
|
|
+ throw new NamedError.Unknown({ message: `Command not found: "${input.command}"` })
|
|
|
+ }
|
|
|
const agentName = command.agent ?? input.agent ?? (await Agent.defaultAgent())
|
|
|
|
|
|
const raw = input.arguments.match(argsRegex) ?? []
|