MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isAtCommand

Function isAtCommand

packages/cli/src/ui/utils/commandUtils.ts:18–20  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

16 * @returns True if the query looks like an '@' command, false otherwise.
17 */
18export const isAtCommand = (query: string): boolean =>
19 // Check if starts with @ OR has a space, then @
20 query.startsWith('@') || /\s@/.test(query);
21
22/**
23 * Checks if a query string potentially represents an '/' command.

Callers 2

useAnusStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected