donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
16 lines • 645 B
TypeScript
import type { WebTargetConfig } from '../models/RunConfig';
/**
* Mirrors `getDisplayText` from frontend/src/lib/utils.ts. Returns the
* hostname for http(s) URLs, the final path segment for file:// URLs, or
* the input string unchanged if it can't be parsed as a URL.
*/
export declare function getDisplayText(url: string): string;
/**
* Mirrors the fallback used in frontend FlowsTable for the display name of a
* flow, but can also apply to tests.
*/
export declare function getDisplayName({ name, web }: {
name: string | null;
web?: WebTargetConfig;
}, fallbackName?: string): string;
//# sourceMappingURL=displayName.d.ts.map