pub fn phase_group(
parsed: &[ParsedFile],
trees: &[(PathBuf, PathBuf)],
platform: Platform,
consumes_bynk: bool,
consumes_cloudflare: bool,
overlay: &HashMap<PathBuf, String>,
errors: &mut ErrorSink,
) -> (BTreeMap<String, Vec<usize>>, BTreeMap<String, UnitKind>, BTreeMap<String, Vec<usize>>, BTreeMap<String, Vec<usize>>, HashMap<String, AdapterBinding>, BTreeMap<String, String>)Expand description
Phase 3: group the parsed units by qualified name (production units, unit
tests, and integration suites tracked separately), run the per-directory
and path/name consistency checks, enforce the reserved bynk namespace and
the adapter binding rules, resolve each adapter’s binding module, and fold
the adapters’ pinned npm dependencies. Pushes diagnostics into errors and
returns the production groups/kinds, the test/integration groups, the
resolved adapter_bindings, and the collected npm_deps.