# Community bundle for the stock DSH Web profile. Installation contributes a
# Host gateway and a browser Client face; it does not patch DSH source files.
- id: directory-picker
  name: '@deepseek-ai/dsh-host-directory-picker-auto'
  disabled: true

- insert:
    - id: directory-picker-mobile-host
      name: '@deepseek-ai/dsh-host-directory-picker-browse'
      # Windows DSH Desktop supplies its own browse pair after user patches.
      # Its `desktopProfiles` service can appear before `desktopRuntime`; keep
      # the platform guard so a Desktop profile on macOS/Linux retains the
      # portable in-page picker.
      disabled: !!js process.platform === 'win32' && (ctx.get('desktopRuntime')?.platform === 'win32' || ctx.get('desktopProfiles') !== undefined)

    - id: directory-picker-mobile-surface
      name: '@deepseek-ai/dsh-client-ui-directory-picker-browse'
      disabled: !!js process.platform === 'win32' && (ctx.get('desktopRuntime')?.platform === 'win32' || ctx.get('desktopProfiles') !== undefined)

    - id: mobile-access
      name: dsh-mobile
      inject: [webServer, connection]
      config:
        setupFile: !!js dshHomePath('mobile-access/setup.json')
        stateFile: !!js dshHomePath('mobile-access/devices.json')
        controlFile: !!js dshHomePath('mobile-access/control.json')
        customCssFile: !!js dshHomePath('mobile-access/mobile.css')
        customScriptFile: !!js dshHomePath('mobile-access/mobile.js')
        initiallyEnabled: false
        listenHost: 127.0.0.1
        listenPort: 3443
        allowedCidrs: [127.0.0.0/8]
        tls:
          mode: disabled

    # Keep long question titles and answer options in one card scrollport.
    # The component switch restores the upstream layout immediately.
    # DSH anchors this file entry beside the bundle patch, independent of pnpm's linker.
    - id: dsh-ui-fixes
      name: ./packages/question-fixes/lib/index.mjs

