// Centralized zustand/vanilla store for global bot state.
// Replaces scattered module-level `let` variables, process.env mutations,
// and mutable arrays with a single immutable state atom.
// See discord/skills/zustand-centralized-state/SKILL.md for the pattern.
import { createStore } from 'zustand/vanilla';
export const store = createStore(() => ({
    dataDir: null,
    defaultVerbosity: 'text_and_essential_tools',
    defaultMentionMode: false,
    critiqueEnabled: true,
    verboseOpencodeServer: false,
    discordBaseUrl: 'https://discord.com',
    gatewayToken: null,
    registeredUserCommands: [],
    threads: new Map(),
    test: { deterministicTranscription: null },
}));
