Report which shapes form one electrically connected geometric component across
a caller-selected set of conductor and via layers -- no PDK deck, no device
recognition. Same-layer touching shapes on one conductor always merge; two
different conductors join only where an explicit via is declared and actually
lands on both -- bare XY overlap between un-via'd conductors never joins two
components. Useful for inspecting unnamed, device-free metal, annotation
geometry, an incomplete layout, or a deliberately limited layer subset that
`klt extract`'s curated, PDK-specific decks are not a fit for. Runs fully
headless via KLayout's native batch database API -- no GUI, no Qt. See
docs/cli/components.md.

positional arguments:
  file path to a GDSII or OASIS layout file

options:
  -h, --help show this help message and exit
  --conductors CONDUCTORS conductor layer set as a path to a JSON file, or an inline JSON array of {"name": str, "layer": [layer, datatype]} objects (e.g. '[{"name": "m1", "layer": [68, 20]}]'); an entry may add "and"/"not": lists of [layer, datatype] pairs that keep only the part of its layer overlapping / outside those layers. Not validated by argparse -- an empty/malformed value exits 1 with a clean error, per docs/cli/components.md's exit-code contract, rather than argparse's usage-error exit 2.
  --vias VIAS optional via mapping as a path to a JSON file, or an inline JSON array of {"name": str, "layer": [layer, datatype], "between": [conductor_name_a, conductor_name_b]} objects (e.g. '[{"name": "mcon", "layer": [67, 44], "between": ["li", "m1"]}]'); each via joins the two named --conductors entries only where its own shapes actually land on both. Takes the same optional "and"/"not" qualifiers as --conductors. Omit for a purely same-layer connectivity report.
  --label-layers LABEL_LAYERS optional GDS text layers to scan for names/labels/pins, as a path to a JSON file or an inline JSON array of {"name": str, "layer": [layer, datatype], "conductor": str} objects. When 'conductor' names one of the --conductors entries, that label layer's texts are only matched against that conductor's own shapes, so a text sitting on a lower conductor's pin/label layer is never attributed to a different, upper-layer component whose geometry merely crosses over it in XY with no via joining them. 'conductor' is optional; omit it to keep the original any-layer behaviour, matching a text against every conductor/via layer present in a component. A matched text is reported in that component's 'labels' list. Omit --label-layers entirely to skip name/label/pin detection.
  --region REGION optional crop window as an inline JSON array of four micrometre coordinates [left, bottom, right, top] (e.g. '[0, 0, 100, 100]'); every conductor/via/label- layer shape is clipped to this window before components are computed. Omit to report every shape on the given layers.
  --top TOP top cell to report on when the stream has more than one; omit to report every top cell
  --format {text,json} output format (default: text)
