Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 11 lines 369 Bytes
Raw
1 import {
2 type CommandIdentity,
3 type CommandMetaShape,
4 resolveCommandMeta,
5 } from 'src/invocation/command-identity';
6
7 /** The identity of a root registration at `path` that declares `meta`. */
8 export const commandIdentity = (
9 path: ReadonlyArray<string>,
10 meta: CommandMetaShape = {}
11 ): CommandIdentity => ({ path, meta: resolveCommandMeta(undefined, meta) });