Buckets:
| import { ALL_BUILTIN_TOOL_IDS } from '@llmindset/hf-mcp'; | |
| import { normalizeBuiltInTools } from './tool-normalizer.js'; | |
| export const DEFAULT_SPACE_TOOLS = [ | |
| { | |
| _id: '6931936f57adaf3524388f9c', | |
| name: 'mcp-tools/Z-Image-Turbo', | |
| subdomain: 'mcp-tools-z-image-turbo', | |
| emoji: '🖼️', | |
| }, | |
| ]; | |
| const defaultSettings = { | |
| builtInTools: normalizeBuiltInTools([...ALL_BUILTIN_TOOL_IDS]), | |
| spaceTools: [...DEFAULT_SPACE_TOOLS], | |
| }; | |
| let settings = { ...defaultSettings }; | |
| export const settingsService = { | |
| getSettings() { | |
| return { ...settings }; | |
| }, | |
| updateBuiltInTools(builtInTools) { | |
| const normalized = normalizeBuiltInTools(builtInTools); | |
| settings = { | |
| ...settings, | |
| builtInTools: [...normalized], | |
| }; | |
| return { ...settings }; | |
| }, | |
| updateSpaceTools(spaceTools) { | |
| settings = { | |
| ...settings, | |
| spaceTools: [...spaceTools], | |
| }; | |
| return { ...settings }; | |
| }, | |
| resetSettings() { | |
| settings = { ...defaultSettings }; | |
| return { ...settings }; | |
| }, | |
| isToolEnabled(toolId) { | |
| return settings.builtInTools.includes(toolId); | |
| }, | |
| }; | |
| //# sourceMappingURL=settings.js.map |
Xet Storage Details
- Size:
- 1.24 kB
- Xet hash:
- 1e0a7c40f24dd860918305fd8f3a5781e7636959106d3fad83155869c9370462
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.