* Sanitize an agent type name for use as a directory name. * Replaces colons (invalid on Windows, used in plugin-namespaced agent * types like "my-plugin:my-agent") with dashes.
(agentType: string)
| 18 | * types like "my-plugin:my-agent") with dashes. |
| 19 | */ |
| 20 | function sanitizeAgentTypeForPath(agentType: string): string { |
| 21 | return agentType.replace(/:/g, '-') |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Returns the local agent memory directory, which is project-specific and not checked into VCS. |