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

Function workflowPlanBackingPath

apps/sim/lib/copilot/vfs/workflow-aliases.ts:153–162  ·  view source on GitHub ↗
(workflowId: string, planRelativePath: string)

Source from the content-addressed store, hash-verified

151}
152
153export function workflowPlanBackingPath(workflowId: string, planRelativePath: string): string {
154 const segments = decodeVfsPathSegments(planRelativePath)
155 if (segments.length === 0) {
156 throw new Error('Workflow plan alias must include a plan file path')
157 }
158 return canonicalWorkspaceFilePath({
159 folderPath: [WORKFLOW_PLANS_BACKING_FOLDER, workflowId, ...segments.slice(0, -1)].join('/'),
160 name: segments[segments.length - 1],
161 })
162}
163
164function workflowAliasTargetForPath(workflow: WorkflowAliasWorkflow, rawPath: string) {
165 const workflowPath = workflowVfsPath(workflow)

Callers 1

Calls 3

decodeVfsPathSegmentsFunction · 0.90
joinMethod · 0.80

Tested by

no test coverage detected