Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { html, nothing } from "lit";
import type { SkillStatusEntry } from "../types.ts";
export function computeSkillMissing(skill: SkillStatusEntry): string[] {
return [
...skill.missing.bins.map((b) => `bin:${b}`),
...skill.missing.env.map((e) => `env:${e}`),
...skill.missing.config.map((c) => `config:${c}`),
...skill.missing.os.map((o) => `os:${o}`),
];
}
export function computeSkillReasons(skill: SkillStatusEntry): string[] {
const reasons: string[] = [];
if (skill.disabled) {
reasons.push("disabled");
}
if (skill.blockedByAllowlist) {
reasons.push("blocked by allowlist");
}
return reasons;
}
export function renderSkillStatusChips(params: {
skill: SkillStatusEntry;
showBundledBadge?: boolean;
}) {
const skill = params.skill;
const showBundledBadge = Boolean(params.showBundledBadge);
return html`
<div class="chip-row" style="margin-top: 6px;">
<span class="chip">${skill.source}</span>
${showBundledBadge ? html` <span class="chip">bundled</span> ` : nothing}
<span class="chip ${skill.eligible ? "chip-ok" : "chip-warn"}">
${skill.eligible ? "eligible" : "blocked"}
</span>
${skill.disabled ? html` <span class="chip chip-warn">disabled</span> ` : nothing}
</div>
`;
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.34Bemerkung:
(vorverarbeitet am 2026-04-27)
¤
*Bot Zugriff