(shellRunId: string)
| 182 | } |
| 183 | |
| 184 | export function shellRunResourceRef(shellRunId: string): string { |
| 185 | if (!isShellRunId(shellRunId)) throw new Error('Invalid shell run id'); |
| 186 | return `${SHELL_RUN_RESOURCE_PREFIX}/${encodeURIComponent(shellRunId)}`; |
| 187 | } |
| 188 | |
| 189 | export function isShellRunResourceRef(ref: string): boolean { |
| 190 | return parseShellRunResourceRef(ref) !== null; |
no test coverage detected