Function: sanitizeAgentWorkspaceId()
sanitizeAgentWorkspaceId(
raw):string
Defined in: packages/agentos/src/core/workspace/AgentWorkspace.ts:25
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