MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getDialogSettingsByCategory

Function getDialogSettingsByCategory

packages/cli/src/utils/settingsUtils.ts:197–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 * Get all settings that should be shown in the dialog, grouped by category
196 */
197export function getDialogSettingsByCategory(): Record<
198 string,
199 Array<SettingDefinition & { key: string }>
200> {
201 const categories: Record<
202 string,
203 Array<SettingDefinition & { key: string }>
204 > = {};
205
206 Object.values(FLATTENED_SCHEMA)
207 .filter((definition) => definition.showInDialog !== false)
208 .forEach((definition) => {
209 const category = definition.category;
210 if (!categories[category]) {
211 categories[category] = [];
212 }
213 categories[category].push(definition);
214 });
215
216 return categories;
217}
218
219/**
220 * Get settings by type that should be shown in the dialog

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected