UNPKG

@agentled/cli

Version:

CLI for Agentled — manage workflows, apps, and knowledge from the command line. Zero context-window cost for AI agents.

30 lines (29 loc) 948 B
export interface WorkspaceMeta { workspaceId: string; slug: string; name: string; apiBase: string; syncedAt: string; } export declare function slugifyWorkspaceRef(value: string): string; /** * The external workspace endpoint returns * `{ workspace: { id, name }, company, team, knowledgeLists }`, while * older/internal callers may still hand us a top-level workspace object. * Normalize both shapes and fall back to the active auth profile. Workspace ids * are valid identities, but never valid local folder slugs: if no slug, alias, or * name can be resolved, fail instead of creating an `agentled_<workspaceId>/` * folder. */ export declare function resolveWorkspaceMeta(input: { response?: unknown; authWorkspace?: { id?: string; name?: string; alias?: string; baseUrl?: string; }; slugOverride?: string; apiBase: string; syncedAt?: string; }): WorkspaceMeta;