JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
feat: SkillNet 技能评估(后端 + Web)
lairuofei69cdee42160d
diff --git a/jiuwenclaw/agentserver/interface.py b/jiuwenclaw/agentserver/interface.pyindex 1c6669ecf3..217d022377 100644--- a/jiuwenclaw/agentserver/interface.py+++ b/jiuwenclaw/agentserver/interface.py@@ -136,6 +136,7 @@ _SKILL_ROUTES: dict[ReqMethod, str] = {ReqMethod.SKILLS_SKILLNET_SEARCH: "handle_skills_skillnet_search",ReqMethod.SKILLS_SKILLNET_INSTALL: "handle_skills_skillnet_install",ReqMethod.SKILLS_SKILLNET_INSTALL_STATUS: "handle_skills_skillnet_install_status",+ ReqMethod.SKILLS_SKILLNET_EVALUATE: "handle_skills_skillnet_evaluate",}diff --git a/jiuwenclaw/agentserver/skill_manager.py b/jiuwenclaw/agentserver/skill_manager.pyindex 9c9c7ca09f..9efd7da7c0 100644--- a/jiuwenclaw/agentserver/skill_manager.py+++ b/jiuwenclaw/agentserver/skill_manager.py@@ -404,6 +404,32 @@ class SkillManager:"skill": job.get("skill"),}+ async def handle_skills_skillnet_evaluate(self, params: dict) -> dict:+ """使用 skillnet-ai 的 evaluate,LLM 配置复用 react.model_client_config + model_name."""+ skill_url = str(params.get("url", "")).strip()+ if not skill_url:+ return {"success": False, "detail": "缺少参数: url"}++ try:+ out = await asyncio.to_thread(SkillManager._skillnet_evaluate_sync, skill_url)+ except Exception as exc:+ logger.error("SkillNet 评估失败: %s", exc)+ raw = str(exc).strip()+ return {+ "success": False,+ "detail": raw or "评估失败,请稍后重试。",+ "detail_key": "skills.skillNet.errors.evaluateFailedFallback",+ }++ if not out.get("ok"):+ detail = str(out.get("detail", "")).strip() or "评估失败,请稍后重试。"+ resp: dict[str, Any] = {"success": False, "detail": detail}+ if out.get("detail_key"):+ resp["detail_key"] = out["detail_key"]+ return resp++ return {"success": True, "evaluation": out.get("evaluation")}+async def _skillnet_install_background(self,install_id: str,@@ -1092,6 +1118,71 @@ class SkillManager:def _get_github_token() -> str:return (os.getenv("GITHUB_TOKEN") or "").strip()+ @staticmethod+ def _skillnet_eval_llm_params() -> dict[str, str | None]:+ """与主对话一致的 API Key / Base URL / 模型名(config.yaml react 段)."""+ try:+ from jiuwenclaw.config import get_config+ except Exception:+ return {+ "api_key": (os.getenv("API_KEY") or "").strip() or None,+ "base_url": (os.getenv("API_BASE") or "").strip() or None,+ "model": (os.getenv("MODEL_NAME") or "gpt-4o").strip(),+ }++ cfg = get_config() or {}+ react = cfg.get("react") or {}+ mcc = react.get("model_client_config") or {}+ api_key = (mcc.get("api_key") or os.getenv("API_KEY") or "").strip()+ base_url = (mcc.get("api_base") or os.getenv("API_BASE") or "").strip()+ model = (react.get("model_name") or os.getenv("MODEL_NAME") or "gpt-4o").strip()+ if base_url.endswith("/chat/completions"):+ base_url = base_url.rsplit("/chat/completions", 1)[0]+ return {+ "api_key": api_key or None,+ "base_url": base_url or None,+ "model": model or "gpt-4o",+ }++ @staticmethod+ def _skillnet_evaluate_sync(skill_url: str) -> dict[str, Any]:+ """同步 evaluate,供 asyncio.to_thread 调用."""+ try:+ from skillnet_ai import SkillNetClient+ from skillnet_ai.client import SkillNetError+ except Exception as exc:+ return {+ "ok": False,+ "detail": "未安装 skillnet-ai,请先安装依赖: pip install skillnet-ai",+ "detail_key": "skills.skillNet.errors.skillnetAiMissing",+ }++ llm = SkillManager._skillnet_eval_llm_params()+ if not llm.get("api_key"):+ return {+ "ok": False,+ "detail": "",+ "detail_key": "skills.skillNet.errors.evaluateNoApiKey",+ }++ kwargs: dict[str, Any] = {+ "api_key": llm["api_key"],+ "base_url": llm["base_url"],+ "github_token": SkillManager._get_github_token() or None,+ }+ try:+ client = SkillNetClient(**kwargs)+ result = client.evaluate(target=skill_url, model=str(llm["model"]))+ except SkillNetError as exc:+ return {"ok": False, "detail": str(exc).strip() or "评估失败。"}+ except Exception as exc:+ logger.exception("SkillNet evaluate 异常")+ return {"ok": False, "detail": str(exc).strip() or "评估失败。"}++ if not isinstance(result, dict):+ return {"ok": True, "evaluation": result}+ return {"ok": True, "evaluation": result}+@staticmethoddef _skillnet_search_sync(search_kwargs: dict[str, Any]) -> list[Any]:"""同步调用 skillnet-ai search,供 asyncio.to_thread 使用."""diff --git a/jiuwenclaw/app.py b/jiuwenclaw/app.pyindex 7fd1690917..7da95f5820 100644--- a/jiuwenclaw/app.py+++ b/jiuwenclaw/app.py@@ -117,6 +117,7 @@ _FORWARD_REQ_METHODS = frozenset({"skills.skillnet.search","skills.skillnet.install","skills.skillnet.install_status",+ "skills.skillnet.evaluate",})_FORWARD_NO_LOCAL_HANDLER_METHODS = frozenset({@@ -133,6 +134,7 @@ _FORWARD_NO_LOCAL_HANDLER_METHODS = frozenset({"skills.skillnet.search","skills.skillnet.install","skills.skillnet.install_status",+ "skills.skillnet.evaluate",})# 配置信息:config.get 返回、config.set 可修改的键(前端 param 名 -> 环境变量名)diff --git a/jiuwenclaw/schema/message.py b/jiuwenclaw/schema/message.pyindex b7fdd024b7..7a6ddd85bd 100644--- a/jiuwenclaw/schema/message.py+++ b/jiuwenclaw/schema/message.py@@ -46,6 +46,7 @@ class ReqMethod(Enum):SKILLS_SKILLNET_SEARCH = "skills.skillnet.search"SKILLS_SKILLNET_INSTALL = "skills.skillnet.install"SKILLS_SKILLNET_INSTALL_STATUS = "skills.skillnet.install_status"+ SKILLS_SKILLNET_EVALUATE = "skills.skillnet.evaluate"HEARTBEAT_GET_CONF = "heartbeat.get_conf"HEARTBEAT_SET_CONF = "heartbeat.set_conf"diff --git a/jiuwenclaw/web/src/features/SkillNetSearchModal/index.tsx b/jiuwenclaw/web/src/features/SkillNetSearchModal/index.tsxindex 53355df55b..d63d8fbea1 100644--- a/jiuwenclaw/web/src/features/SkillNetSearchModal/index.tsx+++ b/jiuwenclaw/web/src/features/SkillNetSearchModal/index.tsx@@ -5,12 +5,70 @@import { useCallback, useEffect, useRef, useState } from "react";import { Trans, useTranslation } from "react-i18next";import { webRequest } from "../../services/webClient";+import type { WebError } from "../../types/websocket";import { normalizeSkillNetUrl } from "../../utils/skillNetUrl";const SKILLNET_UPSTREAM_REPO_URL = "https://github.com/zjunlp/SkillNet";/** 同时进行的 SkillNet 安装任务上限(与后端 asyncio 能力匹配,避免前端狂点拖垮) */const SKILLNET_MAX_CONCURRENT_INSTALLS = 5;+/** 评估结果展示顺序(与 skillnet-ai 五维一致) */+const EVAL_DIMENSION_KEYS = [+ "safety",+ "completeness",+ "executability",+ "maintainability",+ "cost_awareness",+] as const;++function isEvaluateRequestAborted(err: unknown): boolean {+ return (+ typeof err === "object" &&+ err !== null &&+ "code" in err &&+ (err as WebError).code === "REQUEST_ABORTED"+ );+}++function levelPillClass(level: string | undefined): string {+ const l = (level || "").toLowerCase();+ if (+ l.includes("good") ||+ l.includes("excellent") ||+ l.includes("优") ||+ l.includes("佳")+ ) {+ return "border-[color:var(--border-ok)] bg-ok-subtle text-ok";+ }+ if (+ l.includes("poor") ||+ l.includes("bad") ||+ l.includes("差") ||+ l.includes("critical")+ ) {+ return "border-danger/40 bg-danger/10 text-danger";+ }+ if (+ l.includes("average") ||+ l.includes("fair") ||+ l.includes("moderate") ||+ l.includes("中")+ ) {+ return "border-amber-500/45 bg-amber-500/15 text-amber-900 dark:text-amber-400";+ }+ return "border-border bg-secondary text-text-muted";+}++type EvaluateOverlayState =+ | { phase: "loading"; item: SkillNetItem }+ | {+ phase: "result";+ item: SkillNetItem;+ ok: true;+ evaluation: SkillNetEvaluation;+ }+ | { phase: "result"; item: SkillNetItem; ok: false; message: string };+type SkillNetItem = {skill_name: string;skill_description: string;@@ -20,6 +78,14 @@ type SkillNetItem = {category: string;};+/** skillnet-ai evaluate 返回的五维结构 */+type SkillNetEvalDimension = {+ level?: string;+ reason?: string;+};++type SkillNetEvaluation = Record<string, SkillNetEvalDimension | undefined>;+type LoadState = "idle" | "loading" | "success" | "error";interface SkillNetSearchModalProps {@@ -58,6 +124,22 @@ export function SkillNetSearchModal({const [installErrorByUrl, setInstallErrorByUrl] = useState<Record<string, string>>({});const [installedSuccess, setInstalledSuccess] = useState<string | null>(null);const installedSuccessTimerRef = useRef<number | null>(null);+ /** 仅允许同时进行一条评估(SkillNet 会调 LLM,较慢) */+ const [evaluatingUrl, setEvaluatingUrl] = useState<string | null>(null);+ /** 评估过程与结果:独立叠层弹窗 */+ const [evaluateOverlay, setEvaluateOverlay] =+ useState<EvaluateOverlayState | null>(null);+ /** 用于取消评估请求、避免关闭叠层后仍全局禁用「评估」按钮 */+ const evaluateSeqRef = useRef(0);+ const evaluateAbortRef = useRef<AbortController | null>(null);++ const dismissEvaluateOverlay = useCallback(() => {+ evaluateSeqRef.current += 1;+ evaluateAbortRef.current?.abort();+ evaluateAbortRef.current = null;+ setEvaluateOverlay(null);+ setEvaluatingUrl(null);+ }, []);const withSession = useCallback((params?: Record<string, unknown>) => ({@@ -67,14 +149,30 @@ export function SkillNetSearchModal({[sessionId]);+ useEffect(() => {+ if (!open) {+ evaluateSeqRef.current += 1;+ evaluateAbortRef.current?.abort();+ evaluateAbortRef.current = null;+ setEvaluateOverlay(null);+ setEvaluatingUrl(null);+ }+ }, [open]);+useEffect(() => {if (!open) return;const onKeyDown = (e: KeyboardEvent) => {- if (e.key === "Escape") onClose();+ if (e.key !== "Escape") return;+ if (evaluateOverlay) {+ e.preventDefault();+ dismissEvaluateOverlay();+ return;+ }+ onClose();};window.addEventListener("keydown", onKeyDown);return () => window.removeEventListener("keydown", onKeyDown);- }, [open, onClose]);+ }, [open, onClose, evaluateOverlay, dismissEvaluateOverlay]);useEffect(() => {return () => {@@ -115,6 +213,7 @@ export function SkillNetSearchModal({setResults(data.skills || []);setLoadState("success");setExpandedUrl(null);+ dismissEvaluateOverlay();} catch (err) {console.error(err);setResults([]);@@ -128,7 +227,85 @@ export function SkillNetSearchModal({t("skills.errors.skillNetSearchErrorBanner", { detail }));}- }, [query, t, withSession]);+ }, [query, t, withSession, dismissEvaluateOverlay]);++ const handleEvaluate = useCallback(+ async (item: SkillNetItem) => {+ const url = item.skill_url;+ if (!url || evaluatingUrl) return;+ const seq = ++evaluateSeqRef.current;+ const ac = new AbortController();+ evaluateAbortRef.current = ac;+ setEvaluatingUrl(url);+ setEvaluateOverlay({ phase: "loading", item });+ try {+ const data = await webRequest<{+ success: boolean;+ evaluation?: SkillNetEvaluation;+ detail?: string;+ detail_key?: string;+ detail_params?: Record<string, unknown>;+ }>("skills.skillnet.evaluate", withSession({ url }), {+ timeoutMs: 120_000,+ signal: ac.signal,+ });+ if (!data.success) {+ const message = data.detail_key+ ? t(+ data.detail_key,+ data.detail_params as Record<string, string> | undefined+ )+ : (data.detail?.trim() || t("skills.skillNet.evaluateFailed"));+ setEvaluateOverlay({+ phase: "result",+ item,+ ok: false,+ message,+ });+ return;+ }+ const ev = data.evaluation;+ if (ev && typeof ev === "object" && !Array.isArray(ev)) {+ setEvaluateOverlay({+ phase: "result",+ item,+ ok: true,+ evaluation: ev,+ });+ } else {+ setEvaluateOverlay({+ phase: "result",+ item,+ ok: false,+ message: t("skills.skillNet.evaluateEmptyResult"),+ });+ }+ } catch (err) {+ if (isEvaluateRequestAborted(err)) {+ return;+ }+ console.error(err);+ const message =+ err instanceof Error && err.message.trim()+ ? err.message.trim()+ : t("skills.skillNet.evaluateFailed");+ setEvaluateOverlay({+ phase: "result",+ item,+ ok: false,+ message,+ });+ } finally {+ if (evaluateAbortRef.current === ac) {+ evaluateAbortRef.current = null;+ }+ if (seq === evaluateSeqRef.current) {+ setEvaluatingUrl(null);+ }+ }+ },+ [evaluatingUrl, t, withSession]+ );const syncInstallingState = useCallback(() => {setInstallingUrls(new Set(installingUrlsRef.current));@@ -376,6 +553,8 @@ export function SkillNetSearchModal({atConcurrentLimit && !isInstalling;const isExpanded = expandedUrl === item.skill_url;const rowInstallError = installErrorByUrl[item.skill_url];+ const evalBusy = evaluatingUrl === item.skill_url;+ const evalGloballyBusy = evaluatingUrl !== null;return (<divkey={item.skill_url}@@ -460,6 +639,23 @@ export function SkillNetSearchModal({: t("skills.skillNet.installFromResult")}</button>)}+ <button+ type="button"+ onClick={(e) => {+ e.stopPropagation();+ void handleEvaluate(item);+ }}+ disabled={evalGloballyBusy}+ className={`px-3 py-1.5 rounded-md text-xs whitespace-nowrap transition-colors border border-border ${+ evalGloballyBusy+ ? "bg-secondary text-text-muted cursor-not-allowed"+ : "bg-secondary text-text hover:bg-tertiary"+ }`}+ >+ {evalBusy+ ? t("skills.skillNet.evaluating")+ : t("skills.skillNet.evaluateSkill")}+ </button>{rowInstallError ? (<pclassName="text-[11px] text-danger text-right leading-snug break-words"@@ -477,6 +673,162 @@ export function SkillNetSearchModal({</div>)}</div>++ {evaluateOverlay ? (+ <div+ className="absolute inset-0 z-[60] flex items-end justify-center sm:items-center p-3 sm:p-5 rounded-xl"+ role="presentation"+ >+ <button+ type="button"+ className="absolute inset-0 z-0 m-0 cursor-pointer rounded-xl border-0 bg-bg-muted/50 p-0 appearance-none backdrop-brightness-[0.92] backdrop-saturate-[0.55] focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent/35"+ aria-label={t("skills.skillNet.evaluateModalBackdrop")}+ onClick={dismissEvaluateOverlay}+ />+ <div+ role="dialog"+ aria-modal="true"+ aria-labelledby="skillnet-eval-dialog-title"+ className="relative z-10 mb-2 sm:mb-0 flex w-full max-w-lg max-h-[min(82vh,640px)] flex-col rounded-2xl border border-border/80 bg-card shadow-[0_25px_80px_-16px_rgba(0,0,0,0.55)] overflow-hidden ring-1 ring-black/5 dark:ring-white/10"+ onClick={(e) => e.stopPropagation()}+ >+ {evaluateOverlay.phase === "loading" ? (+ <>+ <div className="flex-shrink-0 flex items-center justify-between gap-3 px-4 py-3 sm:px-5 border-b border-border/80 bg-panel/40">+ <h2+ id="skillnet-eval-dialog-title"+ className="text-sm font-semibold text-text truncate min-w-0"+ >+ {t("skills.skillNet.evaluating")}+ </h2>+ <button+ type="button"+ onClick={dismissEvaluateOverlay}+ className="flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-medium bg-secondary text-text-muted hover:text-text hover:bg-tertiary border border-border transition-colors"+ >+ {t("skills.skillNet.evaluateCancel")}+ </button>+ </div>+ <div className="px-6 py-10 flex flex-col items-center gap-5 text-center">+ <div+ className="h-11 w-11 rounded-full border-[3px] border-accent/25 border-t-accent animate-spin"+ aria-hidden+ />+ <p className="text-xs text-text-muted line-clamp-2 px-2">+ {evaluateOverlay.item.skill_name}+ </p>+ </div>+ </>+ ) : evaluateOverlay.ok ? (+ <>+ <div className="flex-shrink-0 px-5 pt-5 pb-3 border-b border-border/80 bg-gradient-to-b from-accent/8 to-transparent">+ <div className="flex items-start justify-between gap-3">+ <div className="min-w-0">+ <h2+ id="skillnet-eval-dialog-title"+ className="text-lg font-semibold text-text tracking-tight"+ >+ {t("skills.skillNet.evaluateModalTitle")}+ </h2>+ <p className="text-xs text-text-muted mt-1 leading-relaxed">+ {t("skills.skillNet.evaluateModalSubtitle")}+ </p>+ <p className="text-sm font-medium text-text mt-2.5 truncate">+ {evaluateOverlay.item.skill_name}+ </p>+ </div>+ <button+ type="button"+ onClick={dismissEvaluateOverlay}+ className="flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-medium bg-secondary text-text-muted hover:text-text hover:bg-tertiary border border-border transition-colors"+ >+ {t("skills.skillNet.evaluateModalClose")}+ </button>+ </div>+ </div>+ <div className="flex-1 min-h-0 overflow-y-auto px-5 py-4 space-y-3">+ {EVAL_DIMENSION_KEYS.map((key) => {+ const dim = evaluateOverlay.evaluation[key];+ if (!dim) return null;+ return (+ <div+ key={key}+ className="rounded-xl border border-border/90 bg-secondary/40 px-3.5 py-3 shadow-sm"+ >+ <div className="flex items-center justify-between gap-2 mb-2">+ <span className="text-sm font-semibold text-text">+ {t(`skills.skillNet.evalDim.${key}`, {+ defaultValue: key,+ })}+ </span>+ {dim.level ? (+ <span+ className={`text-[11px] font-semibold px-2 py-0.5 rounded-md border ${levelPillClass(dim.level)}`}+ >+ {dim.level}+ </span>+ ) : null}+ </div>+ {dim.reason ? (+ <p className="text-xs text-text-muted leading-relaxed whitespace-pre-wrap">+ {dim.reason}+ </p>+ ) : null}+ </div>+ );+ })}+ </div>+ <div className="flex-shrink-0 px-5 py-3 border-t border-border/80 bg-panel/50">+ <button+ type="button"+ onClick={dismissEvaluateOverlay}+ className="w-full py-2.5 rounded-xl text-sm font-medium bg-accent text-white hover:bg-accent-hover transition-colors"+ >+ {t("skills.skillNet.evaluateModalClose")}+ </button>+ </div>+ </>+ ) : (+ <>+ <div className="px-5 pt-5 pb-3 border-b border-border/80">+ <div className="flex items-start justify-between gap-3">+ <h2+ id="skillnet-eval-dialog-title"+ className="text-lg font-semibold text-danger"+ >+ {t("skills.skillNet.evaluateFailed")}+ </h2>+ <button+ type="button"+ onClick={dismissEvaluateOverlay}+ className="flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-medium bg-secondary text-text-muted hover:text-text border border-border"+ >+ {t("skills.skillNet.evaluateModalClose")}+ </button>+ </div>+ <p className="text-sm font-medium text-text mt-2 truncate">+ {evaluateOverlay.item.skill_name}+ </p>+ </div>+ <div className="px-5 py-4 flex-1 min-h-0 overflow-y-auto">+ <p className="text-sm text-text-muted leading-relaxed whitespace-pre-wrap break-words">+ {evaluateOverlay.message}+ </p>+ </div>+ <div className="px-5 py-3 border-t border-border/80">+ <button+ type="button"+ onClick={dismissEvaluateOverlay}+ className="w-full py-2.5 rounded-xl text-sm font-medium bg-secondary text-text hover:bg-tertiary border border-border transition-colors"+ >+ {t("skills.skillNet.evaluateModalClose")}+ </button>+ </div>+ </>+ )}+ </div>+ </div>+ ) : null}</div></div>);diff --git a/jiuwenclaw/web/src/i18n/locales/en.json b/jiuwenclaw/web/src/i18n/locales/en.jsonindex b108c85c10..6a02a97d79 100644--- a/jiuwenclaw/web/src/i18n/locales/en.json+++ b/jiuwenclaw/web/src/i18n/locales/en.json@@ -524,7 +524,26 @@"mirrorPlaceholder": "https://ghfast.top/","mirrorExamples": "Examples: https://ghfast.top/, https://ghproxy.com/","mirrorInvalid": "Enter a valid http(s) URL or clear this field.",+ "evaluateSkill": "Evaluate",+ "evaluating": "Evaluating…",+ "evaluateFailed": "Evaluation failed",+ "evaluateEmptyResult": "No evaluation result returned",+ "evaluateModalTitle": "SkillNet quality report",+ "evaluateModalSubtitle": "Five-dimension scores are model-generated from the skill content (indicative only).",+ "evaluateModalClose": "Close",+ "evaluateCancel": "Cancel",+ "evaluateModalBackdrop": "Close evaluation",+ "evalDim": {+ "safety": "Safety",+ "completeness": "Completeness",+ "executability": "Executability",+ "maintainability": "Maintainability",+ "cost_awareness": "Cost awareness"+ },"errors": {+ "evaluateNoApiKey": "No API key for the chat model. Add it in settings to use SkillNet evaluation.",+ "evaluateFailedFallback": "Evaluation failed. Please try again later.",+ "skillnetAiMissing": "skillnet-ai is not installed.","searchFailedFallback": "Search failed. Please try again later.","sessionExpired": "Install session expired. Please click Install again.","downloadTimeout": "Download timed out (over {{seconds}}s). Please try again later. If the network is slow, check the skill list later to see if it was installed.",diff --git a/jiuwenclaw/web/src/i18n/locales/zh.json b/jiuwenclaw/web/src/i18n/locales/zh.jsonindex 741643c769..bccec67ff9 100644--- a/jiuwenclaw/web/src/i18n/locales/zh.json+++ b/jiuwenclaw/web/src/i18n/locales/zh.json@@ -524,7 +524,26 @@"mirrorPlaceholder": "https://ghfast.top/","mirrorExamples": "示例:https://ghfast.top/, https://ghproxy.com/","mirrorInvalid": "请输入有效的 http(s) 地址,或留空。",+ "evaluateSkill": "评估",+ "evaluating": "评估中…",+ "evaluateFailed": "评估失败",+ "evaluateEmptyResult": "未返回评估结果",+ "evaluateModalTitle": "SkillNet 质量评估",+ "evaluateModalSubtitle": "五维评分由模型根据技能内容生成,仅供参考。",+ "evaluateModalClose": "关闭",+ "evaluateCancel": "取消",+ "evaluateModalBackdrop": "关闭评估结果",+ "evalDim": {+ "safety": "安全性",+ "completeness": "完整性",+ "executability": "可执行性",+ "maintainability": "可维护性",+ "cost_awareness": "成本意识"+ },"errors": {+ "evaluateNoApiKey": "未配置对话模型的 API Key,无法使用 SkillNet 评估。请在配置中填写。",+ "evaluateFailedFallback": "评估失败,请稍后重试。",+ "skillnetAiMissing": "未安装 skillnet-ai 依赖。","searchFailedFallback": "搜索失败,请稍后重试。","sessionExpired": "安装会话已过期,请重新点击安装。","downloadTimeout": "下载超时(超过 {{seconds}} 秒),请稍后重试。若网络较慢,可稍后在技能列表中查看是否已安装成功。",