Why are scripts visible in YAML but do not show up in UI?

Below is the UI of my scripts
t


Yet my YAML contains a number of scripts that do not show up in the UI, and I cannot work out why. The partial YAML is below. As you can see Security Alarm - House and Security Alarm - Sonos do not show up in the UI, but Visitors Gone and Someone Home do show up.

So what am I doing incorrectly in the YAML? The only thing I can see is that the alias for the scripts that do not show up have a “-” in the alias, but so do a lot of the other scripts that do show up in the UI.

visitors_gone:
  sequence:
  - condition: state
    entity_id: input_boolean.guest_mode
    state: 'on'
  - service: input_boolean.turn_off
    data:
      entity_id: input_boolean.guest_mode
  mode: single
  alias: Visitors Gone
  icon: mdi:human-greeting

security_alarm_house:
  alias: Security Alarm - House
  icon: mdi:alarm-bell
  sequence:
  - service: sonos_snapshot
    target:
      entity_id:
      - media_player.sonos_living_room
  - service: sonos_unjoin
    target:
      entity_id:
      - media_player.sonos_living_room
  - service: media_player.volume_set
    data:
      volume_level: 1
    target:
      entity_id:
      - media_player.sonos_living_room
  - repeat:
      while:
      - condition: state
        entity_id: input_boolean.security_alarm
        state: 'on'
      - condition: template
        value_template: '{{ repeat.index <= 50 }}'
      sequence:
      - service: media_player.play_media
        data:
          media_content_id: http://homeassistant:8123/local/zapsplat_emergency_alarm_2.mp3
          media_content_type: audio/mp3
        target:
          entity_id: media_player.sonos_living_room
      - delay: 00:00:09
  mode: single

security_alarm_sonos:
  sequence:
  - service: sonos_snapshot
    target:
      entity_id:
      - media_player.sonos_living_room
  - service: sonos_unjoin
    target:
      entity_id:
      - media_player.sonos_living_room
  - service: media_player.volume_set
    data:
      volume_level: 1
    target:
      entity_id:
      - media_player.sonos_living_room
  - repeat:
      while:
      - condition: state
        entity_id: input_boolean.security_alarm
        state: 'on'
      - condition: template
        value_template: '{{ repeat.index <= 50 }}'
      sequence:
      - service: media_player.play_media
        data:
          media_content_id: http://homeassistant:8123/local/zapsplat_emergency_alarm_2.mp3
          media_content_type: audio/mp3
        target:
          entity_id: media_player.sonos_living_room
      - delay: 00:00:09
  mode: single
  alias: Security Alarm - Sonos
  icon: mdi:alarm-bell

someone_home:
  sequence:
  - service: alarm_control_panel.alarm_disarm
    target:
      entity_id: alarm_control_panel.carpe_diem_alarm
    data:
      code: 'xxxxx'
  - service: script.vacation_canceled
  - service: script.evening_lights_on
  - service: script.garden_lights_on
  mode: single
  alias: Someone Home
  icon: mdi:home-city-outline

Have you split your config and moved your script config to a folder with include_dir or something like that.
I have tried to do that but it did not work. the gui added scripts config to ./scripts.yaml. but it looks like it were looking for the scripts under ./scripts/scripts.yaml as i had spec. in my config file. when i changed in configuration file from "script: !include_dir_merge_named script " to “script: !include scripts.yaml” and copied all my scripts from ./scripts/scripts.yaml to .scripts.yaml. it have started to work and it shows all my scripts