hunk.code_window: //// Tag ////
   /// @shared(id: pub_id)
   model Tag {
       id              Int      @id @default(autoincrement())
       pub_id          Bytes    @unique
       name            String?
       color           String?
       total_objects   Int?     @default(0)
       // Enum: ??
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace keep
hunk.after_edit:     id     Int     @id @default(autoincrement())
       pub_id Bytes   @unique
       name   String?
       color  String?
  
hunk.file_path: core/prisma/schema.prisma
hunk.type: replace
file: import { useSnapshot } from 'valtio';
  import { valtioPersist } from '../lib/valito';
  
  export interface DebugState {
  	enabled: boolean;
  	rspcLogger: boolean;
  	reactQueryDevtools: 'enabled' | 'disabled' | 'invisible';
  	shareTelemetry: boolean; // used for sending telemetry even if the app is in debug mode, and ONLY if client settings also allow telemetry sharing
  	telemetryLogging: boolean;
  }
  
  const debugState: DebugState = valtioPersist('sd-debugState', {
  	enabled: globalThis.isDev,
  	rspcLogger: false,
  	reactQueryDevtools: globalThis.isDev ? 'invisible' : 'enabled',
  	shareTelemetry: false,
  	telemetryLogging: false
  });
  
  export function useDebugState() {
  	return useSnapshot(debugState);
  }
  
  export function getDebugState() {
  	return debugState;
  }
  