MCPcopy Index your code
hub / github.com/Waishnav/devspace / resolveReadPath

Method resolveReadPath

src/workspaces.ts:130–150  ·  view source on GitHub ↗
(workspace: Workspace, inputPath: string)

Source from the content-addressed store, hash-verified

128 }
129
130 resolveReadPath(workspace: Workspace, inputPath: string): WorkspaceReadPath {
131 try {
132 return {
133 absolutePath: this.resolvePath(workspace, inputPath),
134 readRoots: [workspace.root],
135 };
136 } catch (workspaceError) {
137 const skillRead = resolveSkillReadPath(
138 workspace.skills,
139 workspace.activatedSkillDirs,
140 inputPath,
141 );
142 if (!skillRead) throw workspaceError;
143
144 return {
145 absolutePath: skillRead.absolutePath,
146 readRoots: [workspace.root, skillRead.skill.baseDir],
147 skillRead,
148 };
149 }
150 }
151
152 markReadPathLoaded(workspace: Workspace, readPath: WorkspaceReadPath): void {
153 if (readPath.skillRead?.isSkillFile) {

Callers 1

createMcpServerFunction · 0.80

Calls 2

resolvePathMethod · 0.95
resolveSkillReadPathFunction · 0.85

Tested by

no test coverage detected