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

Function getDialogSettingsByType

packages/cli/src/utils/settingsUtils.ts:222–229  ·  view source on GitHub ↗
(
  type: SettingDefinition['type'],
)

Source from the content-addressed store, hash-verified

220 * Get settings by type that should be shown in the dialog
221 */
222export function getDialogSettingsByType(
223 type: SettingDefinition['type'],
224): Array<SettingDefinition & { key: string }> {
225 return Object.values(FLATTENED_SCHEMA).filter(
226 (definition) =>
227 definition.type === type && definition.showInDialog !== false,
228 );
229}
230
231/**
232 * Get all setting keys that should be shown in the dialog

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected