

























@@ -7408,14 +7408,16 @@ module.exports = {
74087408body: `module.exports = { id: "runtime-introspection", register(api) {
74097409 const runtime = api.runtime ?? {};
74107410 const keys = Object.keys(runtime);
7411- if (!keys.includes("channel")) {
7412- throw new Error("runtime channel key missing");
7413- }
7414- if (!("channel" in runtime)) {
7415- throw new Error("runtime channel missing from has check");
7416- }
7417- if (!Object.getOwnPropertyDescriptor(runtime, "channel")) {
7418- throw new Error("runtime channel descriptor missing");
7411+ for (const key of ["channel", "mediaUnderstanding", "llm"]) {
7412+ if (!keys.includes(key)) {
7413+ throw new Error("runtime " + key + " key missing");
7414+ }
7415+ if (!(key in runtime)) {
7416+ throw new Error("runtime " + key + " missing from has check");
7417+ }
7418+ if (!Object.getOwnPropertyDescriptor(runtime, key)) {
7419+ throw new Error("runtime " + key + " descriptor missing");
7420+ }
74197421 }
74207422} };`,
74217423});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。