From 712eead2d967b17784b3d2101035c9f634b0b9f3 Mon Sep 17 00:00:00 2001 From: Arjan Singh Date: Mon, 1 Sep 2025 19:19:58 -0700 Subject: [PATCH] docs: simplify CLAUDE.md for feature flags and settings --- CLAUDE.md | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 2ac2ab06e8..377e8a6906 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -82,39 +82,9 @@ When referencing Comfy-Org repos: 2. Use GitHub API for branches/PRs/metadata 3. Curl GitHub website if needed -## Settings and Feature Flags Quick Reference +## Settings and Feature Flags -### Settings Usage -```typescript -const settingStore = useSettingStore() -const value = settingStore.get('Comfy.SomeSetting') // Get setting -await settingStore.set('Comfy.SomeSetting', newValue) // Update setting -``` - -### Dynamic Defaults -```typescript -{ - id: 'Comfy.Example.Setting', - defaultValue: () => window.innerWidth < 1024 ? 'small' : 'large' // Runtime context -} -``` - -### Version-Based Defaults -```typescript -{ - id: 'Comfy.Example.Feature', - defaultValue: 'legacy', - defaultsByInstallVersion: { '1.25.0': 'enhanced' } // Gradual rollout -} -``` - -### Feature Flags -```typescript -if (api.serverSupportsFeature('feature_name')) { // Check capability - // Use enhanced feature -} -const value = api.getServerFeature('config_name', defaultValue) // Get config -``` +Extensive capabilities to adding settings and feature flags. Read documentation. **Documentation:** - Settings system: `docs/SETTINGS.md`