The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(neuron): single neurons are applied for real; their doses reach ±3
purple0f600dee9ea9
diff --git a/src/components/neuron/NeuronView.tsx b/src/components/neuron/NeuronView.tsxindex 54a93c1f..ade5d71d 100644--- a/src/components/neuron/NeuronView.tsx+++ b/src/components/neuron/NeuronView.tsx@@ -19,7 +19,7 @@ import {backendNote, effectiveStrengths, entriesFor, hasPersonaProfile,clampStrength, steeringPersona, strengthWarning, tweakedModelNote, buildTimeNote, warningText, type BackendKind, type Strengths,} from '../../lib/neuron'-import { featureVectorId, neuronVectorId, recipeOwnId, type Recipe, type RecipeEntry } from '../../lib/neuron-recipe'+import { NEURON_MAX_DOSE, featureVectorId, neuronVectorId, recipeOwnId, type Recipe, type RecipeEntry } from '../../lib/neuron-recipe'import { editingKey, useNeuronStore } from '../../stores/neuronStore'import { useModelStore } from '../../stores/modelStore'import { useChatStore } from '../../stores/chatStore'@@ -231,7 +231,7 @@ export function NeuronView() {// they fell to 0 when the saved scope was already "persona").const move = (id: string, value: number) => {if (editKey in profiles) setStrength(editKey, id, value)- else setProfile(editKey, { ...strengths, [id]: clampStrength(value) })+ else setProfile(editKey, { ...strengths, [id]: clampStrength(value, id) })}const reset = () => {@@ -274,7 +274,7 @@ export function NeuronView() {next[id] = clampStrength(e.strength)if (st.state === 'prepare') jobs.push(() => neuronBuildOwn(modelPath, e.name, e.more, e.less, id))} else {- next[neuronVectorId(e.layer, e.neuron)] = clampStrength(e.dose)+ next[neuronVectorId(e.layer, e.neuron)] = clampStrength(e.dose, neuronVectorId(e.layer, e.neuron))if (st.state === 'prepare' && mlp) jobs.push(() => mlp(modelPath, e.layer, e.neuron))}}@@ -498,7 +498,7 @@ export function NeuronView() {{neurons.length > 0 && (<div className="space-y-2 mb-4">{neurons.map((v) => (- <SliderRow key={v.id} id={v.id} left="Less" right={v.name} value={strengths[v.id] ?? 0} computed disabled={running} onChange={(x) => move(v.id, x)} onDelete={() => deleteVector(v.id)} />+ <SliderRow key={v.id} id={v.id} left={v.left || 'Less'} right={v.name} value={strengths[v.id] ?? 0} max={NEURON_MAX_DOSE} computed disabled={running} onChange={(x) => move(v.id, x)} onDelete={() => deleteVector(v.id)} />))}</div>)}diff --git a/src/components/neuron/__tests__/neurons-for-beginners.test.tsx b/src/components/neuron/__tests__/neurons-for-beginners.test.tsxindex 2f32fead..411e5214 100644--- a/src/components/neuron/__tests__/neurons-for-beginners.test.tsx+++ b/src/components/neuron/__tests__/neurons-for-beginners.test.tsx@@ -21,7 +21,8 @@ const buildOwn = vi.fn(async (..._a: unknown[]) => ({ started: true }))const vectors: Array<Record<string, unknown>> = []const job = vi.hoisted(() => ({ status: 'idle', error: null as string | null, kind: '', phaseLabel: '', step: 0, total: 0, etaSecs: null as number | null, elapsedSecs: 0 }))const est = vi.hoisted(() => ({ build: { lowSecs: 4, highSecs: 30, measured: false }, own: { lowSecs: 6, highSecs: 45, measured: false } }))-const facts = vi.hoisted(() => ({ tweaked: [] as string[], original: null as string | null }))+const facts = vi.hoisted(() => ({ tweaked: [] as string[], original: null as string | null, name: 'Qwen2.5 0.5B Instruct', nLayer: 24, mlpNeurons: false, nFf: null as number | null }))+const mlpAdd = vi.fn(async (_path: string, _layer: number, _neuron: number) => ({ started: true }))vi.mock('../../../api/neuron', () => ({neuronPresets: async () => [@@ -30,7 +31,8 @@ vi.mock('../../../api/neuron', () => ({{ id: 'cheerful', left: 'Serious', right: 'Cheerful' },],neuronInfo: async () => ({- facts: { arch: 'qwen2', nLayer: 24, nEmbd: 896, template: 'chatMl', name: 'Qwen2.5 0.5B Instruct', tweaked: [...facts.tweaked], original: facts.original },+ facts: { arch: 'qwen2', nLayer: facts.nLayer, nEmbd: 896, template: 'chatMl', name: facts.name, tweaked: [...facts.tweaked], original: facts.original },+ mlpNeurons: facts.mlpNeurons, nFf: facts.nFf,modelKey: 'qwen-1', generator: true, band: [3, 20], vectors: [...vectors], sae: null, activeMix: null,buildEstimate: { ...est.build }, ownEstimate: { ...est.own },}),@@ -38,6 +40,7 @@ vi.mock('../../../api/neuron', () => ({neuronApply: (p: string, e: unknown[], t?: unknown) => apply(p, e, t),neuronBuildPreset: (p: string, id: string) => buildPreset(p, id),neuronBuildOwn: (...a: unknown[]) => buildOwn(...a),+ neuronMlpAdd: (p: string, l: number, n: number) => mlpAdd(p, l, n),neuronCancel: vi.fn(), neuronCompare: vi.fn(), neuronDelete: vi.fn(), neuronDismiss: vi.fn(),neuronFeatureAdd: vi.fn(), neuronSaeDownload: vi.fn(), neuronSaeSearch: vi.fn(),}))@@ -68,8 +71,8 @@ beforeEach(() => {Object.assign(job, { status: 'idle', error: null, kind: '', phaseLabel: '', step: 0, total: 0, etaSecs: null, elapsedSecs: 0 })est.build = { lowSecs: 4, highSecs: 30, measured: false }est.own = { lowSecs: 6, highSecs: 45, measured: false }- facts.tweaked = []- facts.original = null+ Object.assign(facts, { tweaked: [], original: null, name: 'Qwen2.5 0.5B Instruct', nLayer: 24, mlpNeurons: false, nFf: null })+ mlpAdd.mockClear()useNeuronStore.setState({ profiles: {}, scopeByModel: {}, introSeen: true })useNeuronIntroRequest.setState({ open: false })useModelStore.setState({ activeModel: 'openai::qwen2.5-0.5b-instruct-q8_0' })@@ -203,32 +206,80 @@ describe('coordinates', () => {expect(screen.queryByTestId('neuron-coords-use')).toBeNull()})- it('names what it cannot do yet: single neurons and other models', async () => {+ it('says when the numbers belong to another model', async () => {+ Object.assign(facts, { mlpNeurons: true, nFf: 4864 })render(createElement(NeuronView))fireEvent.click(await screen.findByTestId('neuron-way-coords'))fireEvent.change(await screen.findByTestId('neuron-coords-input'), { target: { value: 'Qwen3.5-4B: L13N7956-1.0 L14N8949+1.0' } })expect(screen.getByTestId('neuron-coords-other-model').textContent).toMatch(/one exact model/)- expect(screen.getAllByTestId('neuron-coords-line')[0].textContent).toMatch(/arrive with the next LU Engine update.*Next update$/)- // Nothing the box could unlock, so no box.+ // Neuron 7956 is past this model's 4864: nothing the box could unlock.+ expect(screen.getAllByTestId('neuron-coords-line')[0].textContent).toMatch(/This layer has 4864 neurons, numbered 0 to 4863\.Not usable$/)expect(screen.queryByTestId('neuron-coords-anyway')).toBeNull()- // Zentrale 31.10.: never silent. Use says plainly why nothing changed.- const before = JSON.stringify(useNeuronStore.getState().profiles)- fireEvent.click(screen.getByTestId('neuron-coords-use'))- expect(screen.getByTestId('neuron-coords-later').textContent).toBe('2 single neurons were not applied. Single neurons arrive with the next LU Engine update. LU already reads, checks and shares these lines.')- expect(JSON.stringify(useNeuronStore.getState().profiles)).toBe(before)+ expect((screen.getByTestId('neuron-coords-use') as HTMLButtonElement).disabled).toBe(true)})- it('applies the rest of a mixed recipe and names the neuron it left out', async () => {+ it('applies the rest of a mixed recipe on a model without single neurons, and says why', async () => {vectors.push(CHEERFUL)render(createElement(NeuronView))await screen.findByTestId('neuron-slider-cheerful')fireEvent.click(screen.getByTestId('neuron-way-coords'))fireEvent.change(await screen.findByTestId('neuron-coords-input'), { target: { value: '@cheerful+0.4 L14N8949+1.0' } })+ expect(screen.getAllByTestId('neuron-coords-line')[1].textContent).toMatch(/experts \(MoE\).*Not usable$/)// FEHLER-N2 #1: one value, said as one.expect(screen.getByTestId('neuron-coords-use').textContent?.trim()).toBe('Use the one usable value')fireEvent.click(screen.getByTestId('neuron-coords-use'))expect(useNeuronStore.getState().profiles['qwen-1']).toEqual({ cheerful: 0.4 })- expect(screen.getByTestId('neuron-coords-later').textContent).toMatch(/^One single neuron was not applied\./)+ expect(mlpAdd).not.toHaveBeenCalled()+ })+})++// David, 31.10.2026: single neurons come in 3.0.9 (P11 neuron_mlp_add).+// The shared "Evil Qwen" recipe (Lyra, 23.10.) is applied for real.+describe('single neurons', () => {+ beforeEach(() => Object.assign(facts, { name: 'Qwen3.5 4B', nLayer: 32, mlpNeurons: true, nFf: 9216 }))++ it('prepares and sets the shared Qwen3.5-4B neurons, one after the other', async () => {+ render(createElement(NeuronView))+ fireEvent.click(await screen.findByTestId('neuron-way-coords'))+ fireEvent.click(await screen.findByText('A shared neuron (Qwen3.5-4B)'))+ await waitFor(() => expect(screen.getAllByTestId('neuron-coords-line')).toHaveLength(2))+ expect(screen.getByTestId('neuron-coords-preview').textContent).toMatch(/That is the model you picked/)+ for (const line of screen.getAllByTestId('neuron-coords-line')) expect(line.textContent).toMatch(/Will be prepared$/)+ expect(screen.queryByText(/next LU Engine update/)).toBeNull()+ fireEvent.click(screen.getByTestId('neuron-coords-use'))+ expect(useNeuronStore.getState().profiles['qwen-1']).toEqual({ 'n-L13-N7956': -1, 'n-L14-N8949': 1 })+ await waitFor(() => expect(mlpAdd).toHaveBeenCalledWith('/models/qwen.gguf', 13, 7956))+ expect(mlpAdd).toHaveBeenCalledTimes(1)+ expect(screen.getByTestId('neuron-queue').textContent).toMatch(/^1 more to prepare/)+ })++ it('keeps a dose above 1 and gives the neuron slider room to ±3', async () => {+ vectors.push({ id: 'n-L14-N8949', kind: 'neuron', name: 'L14 N8949', left: 'Less', right: 'More', unit: 31.5, builtAt: 1, more: [], less: [] })+ render(createElement(NeuronView))+ fireEvent.click(await screen.findByTestId('neuron-way-coords'))+ fireEvent.change(await screen.findByTestId('neuron-coords-input'), { target: { value: 'L14N8949+1.5' } })+ expect(screen.getAllByTestId('neuron-coords-line')[0].textContent).toMatch(/Ready$/)+ fireEvent.click(screen.getByTestId('neuron-coords-use'))+ expect(useNeuronStore.getState().profiles['qwen-1']).toEqual({ 'n-L14-N8949': 1.5 })+ const range = within(await screen.findByTestId('neuron-slider-n-L14-N8949')).getByRole('slider') as HTMLInputElement+ expect([range.min, range.max, range.value]).toEqual(['-3', '3', '1.5'])+ expect(mlpAdd).not.toHaveBeenCalled()+ // The engine gets the dose, not one cut to 1 (AN-N2-P11.md).+ await waitFor(() => expect(apply).toHaveBeenCalled())+ expect(apply.mock.calls.at(-1)![1]).toEqual([{ id: 'n-L14-N8949', strength: 1.5 }])+ fireEvent.change(range, { target: { value: '2.5' } })+ expect(useNeuronStore.getState().profiles['qwen-1']).toEqual({ 'n-L14-N8949': 2.5 })+ })++ it('names the layers and neurons a model has before anything runs', async () => {+ render(createElement(NeuronView))+ fireEvent.click(await screen.findByTestId('neuron-way-coords'))+ fireEvent.change(await screen.findByTestId('neuron-coords-input'), { target: { value: 'L0N5+1 L31N5+1 L13N9216+1' } })+ const lines = screen.getAllByTestId('neuron-coords-line').map((l) => l.textContent)+ expect(lines[0]).toMatch(/Single neurons work in layers 1 to 30 of this model\.Not usable$/)+ expect(lines[1]).toMatch(/Single neurons work in layers 1 to 30 of this model\.Not usable$/)+ expect(lines[2]).toMatch(/This layer has 9216 neurons, numbered 0 to 9215\.Not usable$/)+ expect(screen.getByTestId('neuron-coords-use').textContent?.trim()).toBe('Nothing usable on this model')})})diff --git a/src/components/neuron/panels.tsx b/src/components/neuron/panels.tsxindex 07c91dd8..8471cfa6 100644--- a/src/components/neuron/panels.tsx+++ b/src/components/neuron/panels.tsx@@ -149,11 +149,12 @@ export function FeaturePanel({ info, modelPath, vectors, strengths, disabled, onexport type EntryState =| { state: 'ready' }| { state: 'prepare' }- | { state: 'blocked'; why: string; later?: boolean }+ | { state: 'blocked'; why: string }-/** Single neurons need an LU Engine piece that is not in 3.0.9 (Zentrale,- * 31.10.2026: never look broken, say it plainly when applied). */-export const NEURONS_LATER = 'Single neurons arrive with the next LU Engine update. LU already reads, checks and shares these lines.'+/** Single neurons in 3.0.9 (David, 31.10.2026: "Ja, in 3.0.9"; engine piece+ * P11 neuron_mlp_add). The limits the engine names, checked before a job+ * starts so a recipe line says it at once. */+export const NEURON_NO_MLP = 'This model routes each word through a few of many experts (MoE), so a single neuron has no fixed place in it.'/** Whether a recipe line can run on this model, and if not, why. */export function entryState(e: RecipeEntry, info: NeuronInfoPlus, vectorIds: ReadonlySet<string>, ids: { feature: (n: number) => string; neuron: (l: number, n: number) => string; own: (e: Extract<RecipeEntry, { kind: 'own' }>) => string }): EntryState {@@ -170,10 +171,12 @@ export function entryState(e: RecipeEntry, info: NeuronInfoPlus, vectorIds: Readif (vectorIds.has(ids.feature(e.feature))) return { state: 'ready' }return info.sae.downloaded ? { state: 'prepare' } : { state: 'blocked', why: 'Download the feature data first (Features tab).' }case 'neuron':- if (e.layer >= info.facts.nLayer) return { state: 'blocked', why: `This model has ${info.facts.nLayer} layers (0–${info.facts.nLayer - 1}).` }- if (info.nFf && e.neuron >= info.nFf) return { state: 'blocked', why: `Layers of this model have ${info.nFf} neurons.` }if (vectorIds.has(ids.neuron(e.layer, e.neuron))) return { state: 'ready' }- if (!info.mlpNeurons) return { state: 'blocked', why: NEURONS_LATER, later: true }+ if (!info.mlpNeurons) return { state: 'blocked', why: NEURON_NO_MLP }+ // llama.cpp takes no direction for block 0, and the last block is not+ // measured (AN-N2-P11.md): the engine's own words.+ if (e.layer < 1 || e.layer > info.facts.nLayer - 2) return { state: 'blocked', why: `Single neurons work in layers 1 to ${info.facts.nLayer - 2} of this model.` }+ if (info.nFf && e.neuron >= info.nFf) return { state: 'blocked', why: `This layer has ${info.nFf} neurons, numbered 0 to ${info.nFf - 1}.` }return { state: 'prepare' }}}@@ -204,7 +207,6 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabled}) {const [text, setText] = useState('')const [anyway, setAnyway] = useState(false)- const [laterNote, setLaterNote] = useState<string | null>(null)const presetIds = useMemo(() => new Set(presets.map((p) => p.id)), [presets])const parsed = useMemo(() => (text.trim() ? parseRecipe(text, presetIds) : null), [text, presetIds])const fit: ModelFit = parsed?.ok ? modelFit(parsed.recipe.model, ...modelNames) : 'unknown'@@ -217,7 +219,6 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabledreturn p ? `${p.left} ↔ ${p.right}` : id}const usable = parsed?.ok ? parsed.recipe.entries.filter((e) => states(e).state !== 'blocked') : []- const later = parsed?.ok ? parsed.recipe.entries.filter((e) => { const st = states(e); return st.state === 'blocked' && !!st.later }) : []const blockedByModel = fit === 'other' && boundUsable && !anywayreturn (<div className="space-y-3" data-testid="neuron-coords">@@ -226,7 +227,7 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabled<textarearows={3}value={text}- onChange={(e) => { setText(e.target.value); setAnyway(false); setLaterNote(null) }}+ onChange={(e) => { setText(e.target.value); setAnyway(false) }}placeholder={'Qwen3.5-4B: L13N7956-1.0 L14N8949+1.0\n@cheerful+0.5 F11690+0.8\nlocallyuncensored://neuron?v=1&…'}spellCheck={false}className={`${field} t-mono`}@@ -261,7 +262,7 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabled{st.state === 'blocked' && <p className="t-micro text-gray-200 mt-0.5">{st.why}</p>}</div><span className={`t-micro pt-1 ${st.state === 'ready' ? 'text-emerald-600 dark:text-emerald-400' : st.state === 'prepare' ? 'text-lu-accent' : HINWEIS_TEXT.ruhig}`}>- {st.state === 'ready' ? 'Ready' : st.state === 'prepare' ? 'Will be prepared' : st.later ? 'Next update' : 'Not usable'}+ {st.state === 'ready' ? 'Ready' : st.state === 'prepare' ? 'Will be prepared' : 'Not usable'}</span></li>)@@ -277,21 +278,15 @@ export function CoordinatesPanel({ presets, modelNames, states, onUse, disabled<div className="flex flex-wrap items-center gap-2 pt-1"><buttontype="button"- disabled={disabled || (usable.length === 0 && later.length === 0) || blockedByModel}- onClick={() => {- if (usable.length) onUse({ model: parsed.recipe.model, entries: usable })- setLaterNote(later.length- ? `${later.length === 1 ? 'One single neuron was' : `${later.length} single neurons were`} not applied. ${NEURONS_LATER}`- : null)- }}+ disabled={disabled || usable.length === 0 || blockedByModel}+ onClick={() => onUse({ model: parsed.recipe.model, entries: usable })}data-testid="neuron-coords-use"className="lu-control lu-primary">- {usable.length === 0 && later.length === 0 ? 'Nothing usable on this model' : usable.length === parsed.recipe.entries.length || usable.length === 0 ? 'Use these values' : usable.length === 1 ? 'Use the one usable value' : `Use the ${usable.length} usable values`} <ArrowRight size={ICON_SM} />+ {usable.length === 0 ? 'Nothing usable on this model' : usable.length === parsed.recipe.entries.length ? 'Use these values' : usable.length === 1 ? 'Use the one usable value' : `Use the ${usable.length} usable values`} <ArrowRight size={ICON_SM} /></button><span className={`t-micro ${HINWEIS_TEXT.ruhig}`}>{usable.length ? 'Replaces your current sliders. You can undo.' : 'Nothing changes on your sliders.'}</span></div>- {laterNote && <p className="t-body text-gray-200" role="status" data-testid="neuron-coords-later">{laterNote}</p>}</div>)}diff --git a/src/components/neuron/parts.tsx b/src/components/neuron/parts.tsxindex 817d2fca..03e0f3e1 100644--- a/src/components/neuron/parts.tsx+++ b/src/components/neuron/parts.tsx@@ -63,6 +63,8 @@ export interface SliderRowProps {onDelete?: () => void/** The line next to "Prepare": how long it takes, when that is said above. */prepareHint?: string+ /** How far the slider goes each way: 1, or a single neuron's dose limit. */+ max?: number}/** Next to "Prepare" when nothing above says how long it takes. */@@ -76,7 +78,7 @@ export function signedValue(v: number): string {/** A slider as one card row: both ends and the value on one line, the* slider under it across the whole row. Not computed yet: the same line,* and in place of the slider the button that prepares it. */-export function SliderRow({ id, left, right, value, computed, disabled, tag, onChange, onCompute, onDelete, prepareHint = PREPARE_HINT }: SliderRowProps) {+export function SliderRow({ id, left, right, value, computed, disabled, tag, onChange, onCompute, onDelete, prepareHint = PREPARE_HINT, max = 1 }: SliderRowProps) {const on = computed && value !== 0return (<div@@ -100,8 +102,8 @@ export function SliderRow({ id, left, right, value, computed, disabled, tag, onC{computed ? (<inputtype="range"- min={-1}- max={1}+ min={-max}+ max={max}step={0.05}value={value}disabled={disabled}diff --git a/src/lib/neuron-recipe.ts b/src/lib/neuron-recipe.tsindex 9e064d45..d53f8ae1 100644--- a/src/lib/neuron-recipe.ts+++ b/src/lib/neuron-recipe.ts@@ -40,6 +40,7 @@ export const RECIPE_MAX_ENTRIES = 24/** Neuron doses are in median residual norms (the neuronary unit); shared* recipes stay within about ±1.2, and ±3 already wrecks any model. */export const NEURON_MAX_DOSE = 3+const MAX_LAYER = 511const MAX_INDEX = 1 << 20const OWN_MAX_LINES = 40diff --git a/src/lib/neuron.ts b/src/lib/neuron.tsindex cf0fa519..aeae74b7 100644--- a/src/lib/neuron.ts+++ b/src/lib/neuron.ts@@ -51,18 +51,25 @@ export function hasPersonaProfile(profiles: Profiles, modelKey: string, personaIreturn personaProfileKey(modelKey, personaId) in profiles}-export function clampStrength(v: number): number {+/** A single neuron's slider (`n-L13-N7956`) carries the recipe dose, up to+ * ±3 (P11 NEURON_MAX_DOSE, the same in Rust); every other slider ±1. */+export function strengthLimit(id?: string): number {+ return id && /^n-L\d+-N\d+$/.test(id) ? 3 : 1+}++export function clampStrength(v: number, id?: string): number {if (!Number.isFinite(v)) return 0+ const lim = strengthLimit(id)// Two decimals, so a slider dragged back to the middle is exactly 0 and the// mix (and with it the engine) is exactly the unsteered one.- const r = Math.round(Math.max(-1, Math.min(1, v)) * 100) / 100+ const r = Math.round(Math.max(-lim, Math.min(lim, v)) * 100) / 100return Math.abs(r) < 0.02 ? 0 : r}/** What goes to Rust: only sliders that are on and computed for this model. */export function entriesFor(strengths: Strengths, available: ReadonlySet<string>): NeuronEntry[] {return Object.entries(strengths)- .map(([id, s]) => ({ id, strength: clampStrength(s) }))+ .map(([id, s]) => ({ id, strength: clampStrength(s, id) })).filter((e) => e.strength !== 0 && available.has(e.id)).sort((a, b) => a.id.localeCompare(b.id))}diff --git a/src/stores/neuronStore.ts b/src/stores/neuronStore.tsindex fe6c98b7..2a130316 100644--- a/src/stores/neuronStore.ts+++ b/src/stores/neuronStore.ts@@ -33,7 +33,7 @@ export const useNeuronStore = create<NeuronState>()(profiles: {},scopeByModel: {},setStrength: (key, id, value) =>- set((s) => ({ profiles: { ...s.profiles, [key]: { ...(s.profiles[key] ?? {}), [id]: clampStrength(value) } } })),+ set((s) => ({ profiles: { ...s.profiles, [key]: { ...(s.profiles[key] ?? {}), [id]: clampStrength(value, id) } } })),setProfile: (key, strengths) => set((s) => ({ profiles: { ...s.profiles, [key]: strengths } })),removeProfile: (key) =>set((s) => {