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

Function workspacePlanBackingPath

apps/sim/lib/copilot/vfs/workflow-aliases.ts:138–151  ·  view source on GitHub ↗
(planRelativePath: string)

Source from the content-addressed store, hash-verified

136}
137
138export function workspacePlanBackingPath(planRelativePath: string): string {
139 const segments = decodeVfsPathSegments(planRelativePath)
140 if (segments.length === 0) {
141 throw new Error('Workspace plan alias must include a plan file path')
142 }
143 return canonicalWorkspaceFilePath({
144 folderPath: [
145 WORKFLOW_PLANS_BACKING_FOLDER,
146 WORKSPACE_PLANS_BACKING_FOLDER,
147 ...segments.slice(0, -1),
148 ].join('/'),
149 name: segments[segments.length - 1],
150 })
151}
152
153export function workflowPlanBackingPath(workflowId: string, planRelativePath: string): string {
154 const segments = decodeVfsPathSegments(planRelativePath)

Callers 3

materializeFilesMethod · 0.90

Calls 3

decodeVfsPathSegmentsFunction · 0.90
joinMethod · 0.80

Tested by

no test coverage detected