{"version":3,"sources":["../src/channel-host-matrix.ts","../src/compatibility/channel-host-matrix.json","../src/compatibility.ts"],"sourcesContent":["export {\n  CHANNEL_HOST_COMPATIBILITY_MATRIX as channel_host_matrix,\n  findChannelHostCompatibilityEntry,\n  isChannelHostCompatibilitySupported,\n} from \"./compatibility.js\";\n\nexport type { ChannelHostCompatibilityEntry } from \"./compatibility.js\";\n\nexport { CHANNEL_HOST_COMPATIBILITY_MATRIX as default } from \"./compatibility.js\";\n","[\n  {\n    \"plugin_type\": \"channel_adapter\",\n    \"plugin_api_version\": \"1.0.0\",\n    \"host_api_version\": \"1.0.0\",\n    \"status\": \"supported\"\n  }\n]\n","import matrixJson from \"./compatibility/channel-host-matrix.json\" with { type: \"json\" };\n\nexport type PluginCompatibilityStatus = \"supported\" | \"deprecated\" | \"unsupported\";\n\nexport interface ChannelHostCompatibilityEntry {\n  readonly plugin_type: \"channel_adapter\";\n  readonly plugin_api_version: string;\n  readonly host_api_version: string;\n  readonly status: PluginCompatibilityStatus;\n  readonly notes?: string;\n}\n\nexport const CHANNEL_HOST_COMPATIBILITY_MATRIX = Object.freeze(\n  matrixJson.map((entry) => Object.freeze({ ...entry })),\n) as readonly ChannelHostCompatibilityEntry[];\n\nexport function findChannelHostCompatibilityEntry(params: {\n  plugin_type: string;\n  plugin_api_version: string;\n  host_api_version: string;\n}): ChannelHostCompatibilityEntry | undefined {\n  return CHANNEL_HOST_COMPATIBILITY_MATRIX.find(\n    (entry) =>\n      entry.plugin_type === params.plugin_type &&\n      entry.plugin_api_version === params.plugin_api_version &&\n      entry.host_api_version === params.host_api_version,\n  );\n}\n\nexport function isChannelHostCompatibilitySupported(params: {\n  plugin_type: string;\n  plugin_api_version: string;\n  host_api_version: string;\n}): boolean {\n  const entry = findChannelHostCompatibilityEntry(params);\n  return entry?.status === \"supported\";\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA,EACE;AAAA,IACE,aAAe;AAAA,IACf,oBAAsB;AAAA,IACtB,kBAAoB;AAAA,IACpB,QAAU;AAAA,EACZ;AACF;;;ACKO,IAAM,oCAAoC,OAAO;AAAA,EACtD,4BAAW,IAAI,CAAC,UAAU,OAAO,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC;AACvD;AAEO,SAAS,kCAAkC,QAIJ;AAC5C,SAAO,kCAAkC;AAAA,IACvC,CAAC,UACC,MAAM,gBAAgB,OAAO,eAC7B,MAAM,uBAAuB,OAAO,sBACpC,MAAM,qBAAqB,OAAO;AAAA,EACtC;AACF;AAEO,SAAS,oCAAoC,QAIxC;AACV,QAAM,QAAQ,kCAAkC,MAAM;AACtD,SAAO,OAAO,WAAW;AAC3B;","names":[]}