MCPcopy Index your code
hub / github.com/simstudioai/sim / isWorkflowAliasPath

Function isWorkflowAliasPath

apps/sim/lib/copilot/vfs/workflow-aliases.ts:266–274  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

264}
265
266export function isWorkflowAliasPath(path: string): boolean {
267 const normalizedPath = path.trim().replace(/^\/+|\/+$/g, '')
268 return (
269 normalizedPath.startsWith('workflows/') &&
270 (normalizedPath.endsWith(`/${WORKFLOW_CHANGELOG_ALIAS_NAME}`) ||
271 normalizedPath.includes(`/${WORKFLOW_PLANS_ALIAS_DIR}/`) ||
272 normalizedPath.endsWith(`/${WORKFLOW_PLANS_ALIAS_DIR}`))
273 )
274}
275
276export function isWorkspacePlanAliasPath(path: string): boolean {
277 const normalizedPath = path.trim().replace(/^\/+|\/+$/g, '')

Callers 1

isPlanAliasPathFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected