(state: SessionState, config: PluginConfig)
| 32 | } |
| 33 | |
| 34 | function getVisibleCommands(state: SessionState, config: PluginConfig): [string, string][] { |
| 35 | const commands = [...TUI_COMMANDS] |
| 36 | |
| 37 | if (compressPermission(state, config) !== "deny") { |
| 38 | commands.push(TOOL_COMMANDS.compress) |
| 39 | } |
| 40 | |
| 41 | return commands |
| 42 | } |
| 43 | |
| 44 | export function formatHelpMessage(state: SessionState, config: PluginConfig): string { |
| 45 | const commands = getVisibleCommands(state, config) |
no test coverage detected