MCPcopy
hub / github.com/nukeop/nuclear / normalizeId

Function normalizeId

packages/player/src/stores/settingsStore.ts:72–77  ·  view source on GitHub ↗
(source: SettingSource, id: string)

Source from the content-addressed store, hash-verified

70}));
71
72const normalizeId = (source: SettingSource, id: string): string => {
73 if (source.type === 'plugin') {
74 return `plugin.${source.pluginId}.${id}`;
75 }
76 return `core.${id}`;
77};
78
79export const initializeSettingsStore = async (): Promise<void> => {
80 await useSettingsStore.getState().loadFromDisk();

Callers 1

settingsStore.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected