Format the entire config as a readable tree (leaf values only).
(config: PluginConfig)
| 80 | |
| 81 | /** Format the entire config as a readable tree (leaf values only). */ |
| 82 | function formatConfigTree(config: PluginConfig): string { |
| 83 | const allKeys = listAllKeys(config); |
| 84 | const writableKeys = allKeys.filter((k) => isValidConfigPath(config, k)); |
| 85 | const lines = writableKeys.map((k) => { |
| 86 | const value = getConfigAtPath(config, k); |
| 87 | return ` ${k}: ${JSON.stringify(value)}`; |
| 88 | }); |
| 89 | return lines.join("\n"); |
| 90 | } |
| 91 | |
| 92 | export function handleAgentWardCommand( |
| 93 | ctx: CommandContext, |
no test coverage detected