Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

377 B
Raw Blame
const availableVars = {
  BASE_URL: window.location.origin,
};
export function parseCredsShemaPlaceholders(path: string) {
  if (!path) return '';

  return path.replace(/{{\s*(.*?)\s*}}/g, (match, key) => {
    const varName = key.trim();
    const value = availableVars[varName as keyof typeof availableVars];

    return value !== undefined ? String(value) : match;
  });
}