(ctx: ToolFrame)
| 273 | } |
| 274 | |
| 275 | function fallbackInline(ctx: ToolFrame): ToolInline { |
| 276 | const title = text(ctx.state.title) || (Object.keys(ctx.input).length > 0 ? JSON.stringify(ctx.input) : "Unknown") |
| 277 | |
| 278 | return { |
| 279 | icon: "⚙", |
| 280 | title: `${ctx.name} ${title}`, |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | function count(n: number, label: string): string { |
| 285 | return `${n} ${label}${n === 1 ? "" : "es"}` |
no test coverage detected