(workspace: Workspace, inputPath: string)
| 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) { |
no test coverage detected