Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

447 B
Raw Blame
export const OP_SEPARATOR = '.'
export const COMMAND_SEPARATOR = ' '

export function commandWords(id: string): readonly string[] {
  return id.split(OP_SEPARATOR)
}

/** An op id as the words it is typed as: `get.console_app` -> `get console_app`. */
export function spacedId(id: string): string {
  return commandWords(id).join(COMMAND_SEPARATOR)
}

export function dottedId(path: readonly string[]): string {
  return path.join(OP_SEPARATOR)
}