{# _erd_cmdpalette.html ───────────────────────────────────────────────────────────────────────────── T1-6: Cmd-K Global Command Palette - shared partial. Include ONCE per page, just before . Requires: • ERD_CONST (from _erd_features_constants.html) - must be included first • erdEsc(), erdTrunc(), erdBreadcrumbHTML() - from _erd_features_constants.html (erdBreadcrumbHTML is defined in erd.html; on browse pages it is defined inline below as a fallback) • window.CMD_PALETTE_DATA - array of result objects (populated at page init) Shape: [{ type: 'schema'|'table'|'column'|'query', key, schemaName, table, column, label, url }, ...] • window.KEY - current schema key (optional; used for schema-local searches) • window.BASE_PATH - reverse-proxy prefix (optional) The palette loads data from: 1. window.CMD_PALETTE_DATA if pre-populated by the host page 2. GET /api/search?q= for cross-schema results 3. local SCHEMA variable on erd.html for instant local results Dependencies: none (fuse.js is NOT required - uses substring matching). Bundle cost: 0 KB added (pure inline JS). #}