1#!/usr/bin/env node2'use strict';34// Adopt a quick-mode crosswalk into the standard crosswalk for adopt-only import tasks.5//6// node scripts/crosswalk-adopt.js --project-dir <dir> [--dry-run] [--site-id <id>]7// [--source <file>] [--adapter <quick adapter id>] [--bindings <json file>]8//9// Reads state/crosswalk/<adapter id>.json (the adapter id comes from state/quick-import-started.json),10// takes the adopted refs and their keys from the approved mapping plan (`adopt-only-no-writes`) and the11// execution manifest when present, and appends the missing rows to state/crosswalk/crosswalk.ndjson.12// Idempotent; never overwrites a row. Prints ids and counts only. Exit 2 when it reports conflicts.1314const