12 lines
338 B
TypeScript
12 lines
338 B
TypeScript
|
|
export const HOOK_NAME = "auto-slash-command" as const
|
||
|
|
|
||
|
|
export const AUTO_SLASH_COMMAND_TAG_OPEN = "<auto-slash-command>"
|
||
|
|
export const AUTO_SLASH_COMMAND_TAG_CLOSE = "</auto-slash-command>"
|
||
|
|
|
||
|
|
export const SLASH_COMMAND_PATTERN = /^\/([a-zA-Z][\w-]*)\s*(.*)/
|
||
|
|
|
||
|
|
export const EXCLUDED_COMMANDS = new Set([
|
||
|
|
"ralph-loop",
|
||
|
|
"cancel-ralph",
|
||
|
|
])
|