(host: SlashCommandHost)
| 184 | } |
| 185 | |
| 186 | async function loadSessionUsageReport(host: SlashCommandHost): Promise<SessionUsageResult> { |
| 187 | try { |
| 188 | return { usage: await host.requireSession().getUsage() }; |
| 189 | } catch (error) { |
| 190 | return { error: formatErrorMessage(error) }; |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | async function loadRuntimeStatusReport(host: SlashCommandHost): Promise<RuntimeStatusResult> { |
| 195 | try { |
no test coverage detected