Function sanitizeAgentWorkspaceId

  • Sanitize an arbitrary agent identifier into a safe folder name.

    • trims whitespace
    • replaces slashes with '-'
    • collapses non-alphanumerics to '-'
    • limits length to 80 chars

    Parameters

    • raw: string

    Returns string