(ctx: ToolFrame)
| 231 | } |
| 232 | |
| 233 | function fallbackFinal(ctx: ToolFrame): string { |
| 234 | if (ctx.status === "error") { |
| 235 | return fail(ctx) |
| 236 | } |
| 237 | |
| 238 | if (ctx.status && ctx.status !== "completed") { |
| 239 | return ctx.raw.trim() |
| 240 | } |
| 241 | |
| 242 | const time = span(ctx.state) |
| 243 | if (!time) { |
| 244 | return `${ctx.name} completed` |
| 245 | } |
| 246 | |
| 247 | return `${ctx.name} completed · ${time}` |
| 248 | } |
| 249 | |
| 250 | export function toolPath(input?: string, opts: { home?: boolean } = {}): string { |
| 251 | if (!input) { |
no test coverage detected