MCPcopy Create free account
hub / github.com/freecodexyz/free-code / isSlashCommand

Function isSlashCommand

src/utils/messageQueueManager.ts:541–547  ·  view source on GitHub ↗
(cmd: QueuedCommand)

Source from the content-addressed store, hash-verified

539 * as slash commands — their text is meant for the model.
540 */
541export function isSlashCommand(cmd: QueuedCommand): boolean {
542 return (
543 typeof cmd.value === 'string' &&
544 cmd.value.trim().startsWith('/') &&
545 !cmd.skipSlashCommands
546 )
547}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected