MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / formatConfigTree

Function formatConfigTree

core/commands.ts:82–90  ·  view source on GitHub ↗

Format the entire config as a readable tree (leaf values only).

(config: PluginConfig)

Source from the content-addressed store, hash-verified

80
81/** Format the entire config as a readable tree (leaf values only). */
82function 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
92export function handleAgentWardCommand(
93 ctx: CommandContext,

Callers 1

handleAgentWardCommandFunction · 0.85

Calls 3

listAllKeysFunction · 0.85
isValidConfigPathFunction · 0.85
getConfigAtPathFunction · 0.85

Tested by

no test coverage detected