@customize-agent/server 4.60.4 → 4.60.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +12 -12
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.json +1 -1
- package/.next/server/chunks/1243.js +1 -1
- package/.next/server/chunks/2328.js +1 -1
- package/.next/server/chunks/6822.js +1 -1
- package/.next/server/chunks/{4683.js → 7848.js} +66 -66
- package/.next/server/chunks/9399.js +1 -1
- package/.next/server/chunks/9666.js +18 -18
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/instrumentation.js.nft.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/api/health.js +1 -1
- package/.next/server/pages/canvas/[id].html +1 -1
- package/.next/server/pages/canvas.html +1 -1
- package/.next/server/pages/documents.html +1 -1
- package/.next/server/pages/guide.html +1 -1
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/knowledge/file-detail.html +1 -1
- package/.next/server/pages/knowledge/files.html +1 -1
- package/.next/server/pages/knowledge/manage.html +1 -1
- package/.next/server/pages/knowledge/source-preview.html +1 -1
- package/.next/server/pages/knowledge.html +1 -1
- package/.next/server/pages/models.html +1 -1
- package/.next/server/pages/overview.html +1 -1
- package/.next/server/pages/prompt.html +1 -1
- package/.next/server/pages/settings.html +1 -1
- package/.next/server/pages/skills/[id]/edit.html +1 -1
- package/.next/server/pages/skills/[id].html +1 -1
- package/.next/server/pages/skills/new.html +1 -1
- package/.next/server/pages/skills.html +1 -1
- package/.next/server/pages/system/logs.html +1 -1
- package/.next/server/pages-manifest.json +33 -33
- package/.next/static/{77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539 → 3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b}/_buildManifest.js +1 -1
- package/.next/static/chunks/2-434e34e83819f4e4.js +1 -0
- package/.next/static/chunks/257-6938c7ab284ab21c.js +1 -0
- package/.next/static/chunks/pages/knowledge/{file-detail-4ccc50ced6382dab.js → file-detail-dc1807f8ed32cd59.js} +1 -1
- package/.next/static/chunks/pages/knowledge/source-preview-4309277bf497521c.js +1 -0
- package/.next/static/chunks/pages/{prompt-f00bf2272142bfa1.js → prompt-d75de6a6fead73c9.js} +1 -1
- package/.next/static/chunks/pages/skills/[id]-5130d68546be49cb.js +1 -0
- package/.next/static/css/f4f2d386cfeae8e4.css +1 -0
- package/package.json +1 -1
- package/.next/static/chunks/2-8570cd2beee4da6e.js +0 -1
- package/.next/static/chunks/257-3ea888b096943bc8.js +0 -1
- package/.next/static/chunks/pages/knowledge/source-preview-56ce59763fa015db.js +0 -1
- package/.next/static/chunks/pages/skills/[id]-101d753aa8fbf7a9.js +0 -1
- package/.next/static/css/39e9d8f998ce517b.css +0 -1
- /package/.next/static/{77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539 → 3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" data-next-head=""/><link rel="icon" type="image/svg+xml" href="/favicon.svg" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="preload" href="/_next/static/css/39e9d8f998ce517b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/39e9d8f998ce517b.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-6224d37324e372cb.js" defer=""></script><script src="/_next/static/chunks/framework-4b565b3ddc94cdac.js" defer=""></script><script src="/_next/static/chunks/main-0c91f573696223ca.js" defer=""></script><script src="/_next/static/chunks/pages/_app-3f5aa4ff7951feca.js" defer=""></script><script src="/_next/static/chunks/324-650dc02536b071bf.js" defer=""></script><script src="/_next/static/chunks/280-3ce590d421b5c47d.js" defer=""></script><script src="/_next/static/chunks/665-0634aa49137defc4.js" defer=""></script><script src="/_next/static/chunks/576-6699fed6c88502fe.js" defer=""></script><script src="/_next/static/chunks/569-2bfdde9e402af5b2.js" defer=""></script><script src="/_next/static/chunks/787-207289f4bb577708.js" defer=""></script><script src="/_next/static/chunks/864-b06700e1a4e573f2.js" defer=""></script><script src="/_next/static/chunks/819-96247c9054ad9683.js" defer=""></script><script src="/_next/static/chunks/2-8570cd2beee4da6e.js" defer=""></script><script src="/_next/static/chunks/257-3ea888b096943bc8.js" defer=""></script><script src="/_next/static/chunks/pages/skills/new-124599c772150a1d.js" defer=""></script><script src="/_next/static/77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539/_buildManifest.js" defer=""></script><script src="/_next/static/77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="css-1pi45l5 ant-app css-var-_R_56_"><aside class="sidebar sidebarCollapsedSelf"><div class="sidebarLogoRow"><a class="min-w-0 flex-1" href="/overview"><div class="sidebarLogo"><div class="w-8 h-8 rounded-lg bg-black dark:bg-white flex items-center justify-center shrink-0"><svg width="26" height="26" viewBox="0 0 24 24" class="text-white dark:text-black" aria-hidden="true" focusable="false"><g transform="translate(12.2475 11.7525) scale(1.0500) translate(0.9636 0.0000) rotate(5.00)"><path d="M8.561 5.168 A10 10 0 1 1 1.544 -9.880 A8.5 8.5 0 1 0 8.561 5.168 Z" fill="currentColor"></path></g></svg></div><div class="sidebarLogoTitle"><span class="logoGradient">Customize Agent</span></div></div></a></div><nav class="sidebarNav mt-2"><a href="/overview"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layout-dashboard"><rect width="7" height="9" x="3" y="3" rx="1"></rect><rect width="7" height="5" x="14" y="3" rx="1"></rect><rect width="7" height="9" x="14" y="12" rx="1"></rect><rect width="7" height="5" x="3" y="16" rx="1"></rect></svg><span class="sidebarLabel">总览</span></div></a><a href="/knowledge"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-database"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5V19A9 3 0 0 0 21 19V5"></path><path d="M3 12A9 3 0 0 0 21 12"></path></svg><span class="sidebarLabel">知识库</span></div></a><a href="/models"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cpu"><rect width="16" height="16" x="4" y="4" rx="2"></rect><rect width="6" height="6" x="9" y="9" rx="1"></rect><path d="M15 2v2"></path><path d="M15 20v2"></path><path d="M2 15h2"></path><path d="M2 9h2"></path><path d="M20 15h2"></path><path d="M20 9h2"></path><path d="M9 2v2"></path><path d="M9 20v2"></path></svg><span class="sidebarLabel">模型配置</span></div></a><a href="/prompt"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="sidebarLabel">提示词管理</span></div></a><a href="/skills"><div class="sidebarItem sidebarItemActive"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg><span class="sidebarLabel">技能库</span></div></a><a href="/canvas"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-network"><rect x="16" y="16" width="6" height="6" rx="1"></rect><rect x="2" y="16" width="6" height="6" rx="1"></rect><rect x="9" y="2" width="6" height="6" rx="1"></rect><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"></path><path d="M12 12V8"></path></svg><span class="sidebarLabel">生成画布</span></div></a><a href="/guide"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg><span class="sidebarLabel">指引</span></div></a><a href="/settings"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx="12" cy="12" r="3"></circle></svg><span class="sidebarLabel">设置</span></div></a></nav></aside><div class="mainContent"><header class="topbar"><div class="flex-1"></div><span class="ant-badge css-1pi45l5 css-var-_R_56_"><button type="button" class="ant-btn css-1pi45l5 css-var-_R_56_ ant-btn-default ant-btn-color-default ant-btn-variant-outlined topbarBtn"><span class="ant-btn-icon"><span role="img" aria-label="clock-circle" class="anticon anticon-clock-circle"><svg viewBox="64 64 896 896" focusable="false" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></span></span><span>后台任务</span></button></span><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg><span>深色</span></button><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-languages"><path d="m5 8 6 6"></path><path d="m4 14 6-6 2-3"></path><path d="M2 5h12"></path><path d="M7 2h1"></path><path d="m22 22-5-10-5 10"></path><path d="M14 18h6"></path></svg><span>English</span></button></header><main class="mainInner"><div class="space-y-5 animateFadeIn"><div class="ant-skeleton ant-skeleton-active css-1pi45l5 css-var-_R_56_"><div class="ant-skeleton-section"><h3 class="ant-skeleton-title" style="width:38%"></h3><ul class="ant-skeleton-paragraph"><li></li><li style="width:61%"></li></ul></div></div><div class="ant-skeleton ant-skeleton-active css-1pi45l5 css-var-_R_56_"><div class="ant-skeleton-section"><h3 class="ant-skeleton-title" style="width:38%"></h3><ul class="ant-skeleton-paragraph"><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li style="width:61%"></li></ul></div></div></div></main></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/skills/new","query":{},"buildId":"77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" data-next-head=""/><link rel="icon" type="image/svg+xml" href="/favicon.svg" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="preload" href="/_next/static/css/f4f2d386cfeae8e4.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f4f2d386cfeae8e4.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-6224d37324e372cb.js" defer=""></script><script src="/_next/static/chunks/framework-4b565b3ddc94cdac.js" defer=""></script><script src="/_next/static/chunks/main-0c91f573696223ca.js" defer=""></script><script src="/_next/static/chunks/pages/_app-3f5aa4ff7951feca.js" defer=""></script><script src="/_next/static/chunks/324-650dc02536b071bf.js" defer=""></script><script src="/_next/static/chunks/280-3ce590d421b5c47d.js" defer=""></script><script src="/_next/static/chunks/665-0634aa49137defc4.js" defer=""></script><script src="/_next/static/chunks/576-6699fed6c88502fe.js" defer=""></script><script src="/_next/static/chunks/569-2bfdde9e402af5b2.js" defer=""></script><script src="/_next/static/chunks/787-207289f4bb577708.js" defer=""></script><script src="/_next/static/chunks/864-b06700e1a4e573f2.js" defer=""></script><script src="/_next/static/chunks/819-96247c9054ad9683.js" defer=""></script><script src="/_next/static/chunks/2-434e34e83819f4e4.js" defer=""></script><script src="/_next/static/chunks/257-6938c7ab284ab21c.js" defer=""></script><script src="/_next/static/chunks/pages/skills/new-124599c772150a1d.js" defer=""></script><script src="/_next/static/3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b/_buildManifest.js" defer=""></script><script src="/_next/static/3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="css-1pi45l5 ant-app css-var-_R_56_"><aside class="sidebar sidebarCollapsedSelf"><div class="sidebarLogoRow"><a class="min-w-0 flex-1" href="/overview"><div class="sidebarLogo"><div class="w-8 h-8 rounded-lg bg-black dark:bg-white flex items-center justify-center shrink-0"><svg width="26" height="26" viewBox="0 0 24 24" class="text-white dark:text-black" aria-hidden="true" focusable="false"><g transform="translate(12.2475 11.7525) scale(1.0500) translate(0.9636 0.0000) rotate(5.00)"><path d="M8.561 5.168 A10 10 0 1 1 1.544 -9.880 A8.5 8.5 0 1 0 8.561 5.168 Z" fill="currentColor"></path></g></svg></div><div class="sidebarLogoTitle"><span class="logoGradient">Customize Agent</span></div></div></a></div><nav class="sidebarNav mt-2"><a href="/overview"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layout-dashboard"><rect width="7" height="9" x="3" y="3" rx="1"></rect><rect width="7" height="5" x="14" y="3" rx="1"></rect><rect width="7" height="9" x="14" y="12" rx="1"></rect><rect width="7" height="5" x="3" y="16" rx="1"></rect></svg><span class="sidebarLabel">总览</span></div></a><a href="/knowledge"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-database"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5V19A9 3 0 0 0 21 19V5"></path><path d="M3 12A9 3 0 0 0 21 12"></path></svg><span class="sidebarLabel">知识库</span></div></a><a href="/models"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cpu"><rect width="16" height="16" x="4" y="4" rx="2"></rect><rect width="6" height="6" x="9" y="9" rx="1"></rect><path d="M15 2v2"></path><path d="M15 20v2"></path><path d="M2 15h2"></path><path d="M2 9h2"></path><path d="M20 15h2"></path><path d="M20 9h2"></path><path d="M9 2v2"></path><path d="M9 20v2"></path></svg><span class="sidebarLabel">模型配置</span></div></a><a href="/prompt"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="sidebarLabel">提示词管理</span></div></a><a href="/skills"><div class="sidebarItem sidebarItemActive"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg><span class="sidebarLabel">技能库</span></div></a><a href="/canvas"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-network"><rect x="16" y="16" width="6" height="6" rx="1"></rect><rect x="2" y="16" width="6" height="6" rx="1"></rect><rect x="9" y="2" width="6" height="6" rx="1"></rect><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"></path><path d="M12 12V8"></path></svg><span class="sidebarLabel">生成画布</span></div></a><a href="/guide"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg><span class="sidebarLabel">指引</span></div></a><a href="/settings"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx="12" cy="12" r="3"></circle></svg><span class="sidebarLabel">设置</span></div></a></nav></aside><div class="mainContent"><header class="topbar"><div class="flex-1"></div><span class="ant-badge css-1pi45l5 css-var-_R_56_"><button type="button" class="ant-btn css-1pi45l5 css-var-_R_56_ ant-btn-default ant-btn-color-default ant-btn-variant-outlined topbarBtn"><span class="ant-btn-icon"><span role="img" aria-label="clock-circle" class="anticon anticon-clock-circle"><svg viewBox="64 64 896 896" focusable="false" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></span></span><span>后台任务</span></button></span><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg><span>深色</span></button><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-languages"><path d="m5 8 6 6"></path><path d="m4 14 6-6 2-3"></path><path d="M2 5h12"></path><path d="M7 2h1"></path><path d="m22 22-5-10-5 10"></path><path d="M14 18h6"></path></svg><span>English</span></button></header><main class="mainInner"><div class="space-y-5 animateFadeIn"><div class="ant-skeleton ant-skeleton-active css-1pi45l5 css-var-_R_56_"><div class="ant-skeleton-section"><h3 class="ant-skeleton-title" style="width:38%"></h3><ul class="ant-skeleton-paragraph"><li></li><li style="width:61%"></li></ul></div></div><div class="ant-skeleton ant-skeleton-active css-1pi45l5 css-var-_R_56_"><div class="ant-skeleton-section"><h3 class="ant-skeleton-title" style="width:38%"></h3><ul class="ant-skeleton-paragraph"><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li style="width:61%"></li></ul></div></div></div></main></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/skills/new","query":{},"buildId":"3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" data-next-head=""/><link rel="icon" type="image/svg+xml" href="/favicon.svg" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="preload" href="/_next/static/css/39e9d8f998ce517b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/39e9d8f998ce517b.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-6224d37324e372cb.js" defer=""></script><script src="/_next/static/chunks/framework-4b565b3ddc94cdac.js" defer=""></script><script src="/_next/static/chunks/main-0c91f573696223ca.js" defer=""></script><script src="/_next/static/chunks/pages/_app-3f5aa4ff7951feca.js" defer=""></script><script src="/_next/static/chunks/324-650dc02536b071bf.js" defer=""></script><script src="/_next/static/chunks/280-3ce590d421b5c47d.js" defer=""></script><script src="/_next/static/chunks/665-0634aa49137defc4.js" defer=""></script><script src="/_next/static/chunks/569-2bfdde9e402af5b2.js" defer=""></script><script src="/_next/static/chunks/499-2233cadc6d4da647.js" defer=""></script><script src="/_next/static/chunks/787-207289f4bb577708.js" defer=""></script><script src="/_next/static/chunks/338-19ccbaec57a7bf9c.js" defer=""></script><script src="/_next/static/chunks/964-569c27befeaff602.js" defer=""></script><script src="/_next/static/chunks/425-42f2568bcdd98f4c.js" defer=""></script><script src="/_next/static/chunks/pages/skills-476714776be63ce5.js" defer=""></script><script src="/_next/static/77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539/_buildManifest.js" defer=""></script><script src="/_next/static/77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="css-1pi45l5 ant-app css-var-_R_56_"><aside class="sidebar sidebarCollapsedSelf"><div class="sidebarLogoRow"><a class="min-w-0 flex-1" href="/overview"><div class="sidebarLogo"><div class="w-8 h-8 rounded-lg bg-black dark:bg-white flex items-center justify-center shrink-0"><svg width="26" height="26" viewBox="0 0 24 24" class="text-white dark:text-black" aria-hidden="true" focusable="false"><g transform="translate(12.2475 11.7525) scale(1.0500) translate(0.9636 0.0000) rotate(5.00)"><path d="M8.561 5.168 A10 10 0 1 1 1.544 -9.880 A8.5 8.5 0 1 0 8.561 5.168 Z" fill="currentColor"></path></g></svg></div><div class="sidebarLogoTitle"><span class="logoGradient">Customize Agent</span></div></div></a></div><nav class="sidebarNav mt-2"><a href="/overview"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layout-dashboard"><rect width="7" height="9" x="3" y="3" rx="1"></rect><rect width="7" height="5" x="14" y="3" rx="1"></rect><rect width="7" height="9" x="14" y="12" rx="1"></rect><rect width="7" height="5" x="3" y="16" rx="1"></rect></svg><span class="sidebarLabel">总览</span></div></a><a href="/knowledge"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-database"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5V19A9 3 0 0 0 21 19V5"></path><path d="M3 12A9 3 0 0 0 21 12"></path></svg><span class="sidebarLabel">知识库</span></div></a><a href="/models"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cpu"><rect width="16" height="16" x="4" y="4" rx="2"></rect><rect width="6" height="6" x="9" y="9" rx="1"></rect><path d="M15 2v2"></path><path d="M15 20v2"></path><path d="M2 15h2"></path><path d="M2 9h2"></path><path d="M20 15h2"></path><path d="M20 9h2"></path><path d="M9 2v2"></path><path d="M9 20v2"></path></svg><span class="sidebarLabel">模型配置</span></div></a><a href="/prompt"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="sidebarLabel">提示词管理</span></div></a><a href="/skills"><div class="sidebarItem sidebarItemActive"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg><span class="sidebarLabel">技能库</span></div></a><a href="/canvas"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-network"><rect x="16" y="16" width="6" height="6" rx="1"></rect><rect x="2" y="16" width="6" height="6" rx="1"></rect><rect x="9" y="2" width="6" height="6" rx="1"></rect><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"></path><path d="M12 12V8"></path></svg><span class="sidebarLabel">生成画布</span></div></a><a href="/guide"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg><span class="sidebarLabel">指引</span></div></a><a href="/settings"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx="12" cy="12" r="3"></circle></svg><span class="sidebarLabel">设置</span></div></a></nav></aside><div class="mainContent"><header class="topbar"><div class="flex-1"></div><span class="ant-badge css-1pi45l5 css-var-_R_56_"><button type="button" class="ant-btn css-1pi45l5 css-var-_R_56_ ant-btn-default ant-btn-color-default ant-btn-variant-outlined topbarBtn"><span class="ant-btn-icon"><span role="img" aria-label="clock-circle" class="anticon anticon-clock-circle"><svg viewBox="64 64 896 896" focusable="false" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></span></span><span>后台任务</span></button></span><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg><span>深色</span></button><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-languages"><path d="m5 8 6 6"></path><path d="m4 14 6-6 2-3"></path><path d="M2 5h12"></path><path d="M7 2h1"></path><path d="m22 22-5-10-5 10"></path><path d="M14 18h6"></path></svg><span>English</span></button></header><main class="mainInner"><div class="space-y-6 animateFadeIn"><div class="ant-card ant-card-bordered rounded-2xl mb-6 css-1pi45l5 css-var-_R_56_"><div class="ant-card-head"><div class="ant-card-head-wrapper"><div class="ant-card-head-title"><div class="ant-space css-1pi45l5 ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small css-var-_R_56_"><div class="ant-space-item"><span role="img" aria-label="safety-certificate" class="anticon anticon-safety-certificate"><svg viewBox="64 64 896 896" focusable="false" data-icon="safety-certificate" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"></path></svg></span></div><div class="ant-space-item">技能库</div></div></div><div class="ant-card-extra"><button type="button" class="ant-btn css-1pi45l5 css-var-_R_56_ ant-btn-primary ant-btn-color-primary ant-btn-variant-solid rounded-xl" disabled=""><span class="ant-btn-icon"><span role="img" aria-label="plus" class="anticon anticon-plus"><svg viewBox="64 64 896 896" focusable="false" data-icon="plus" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"></path><path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"></path></svg></span></span><span>新建技能</span></button></div></div></div><div class="ant-card-body"><div class="ant-typography ant-typography-secondary !mb-4 css-1pi45l5 css-var-_R_56_">技能提供专业主题、资料需求、工艺知识和写作核对提示,按章域、工程类型与具体对象选用。 本次任务的实际章节职责由主控规划确定。保存时会校验技能字段与工艺卡引用。</div><div class="py-10 text-center"><div class="ant-spin ant-spin-spinning ant-spin-section css-1pi45l5 css-var-_R_56_" aria-live="polite" aria-busy="true"><span class="ant-spin-dot-holder"><span class="ant-spin-dot ant-spin-dot-spin"><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i></span></span></div></div></div></div></div></main></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/skills","query":{},"buildId":"77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" data-next-head=""/><link rel="icon" type="image/svg+xml" href="/favicon.svg" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="preload" href="/_next/static/css/f4f2d386cfeae8e4.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f4f2d386cfeae8e4.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-6224d37324e372cb.js" defer=""></script><script src="/_next/static/chunks/framework-4b565b3ddc94cdac.js" defer=""></script><script src="/_next/static/chunks/main-0c91f573696223ca.js" defer=""></script><script src="/_next/static/chunks/pages/_app-3f5aa4ff7951feca.js" defer=""></script><script src="/_next/static/chunks/324-650dc02536b071bf.js" defer=""></script><script src="/_next/static/chunks/280-3ce590d421b5c47d.js" defer=""></script><script src="/_next/static/chunks/665-0634aa49137defc4.js" defer=""></script><script src="/_next/static/chunks/569-2bfdde9e402af5b2.js" defer=""></script><script src="/_next/static/chunks/499-2233cadc6d4da647.js" defer=""></script><script src="/_next/static/chunks/787-207289f4bb577708.js" defer=""></script><script src="/_next/static/chunks/338-19ccbaec57a7bf9c.js" defer=""></script><script src="/_next/static/chunks/964-569c27befeaff602.js" defer=""></script><script src="/_next/static/chunks/425-42f2568bcdd98f4c.js" defer=""></script><script src="/_next/static/chunks/pages/skills-476714776be63ce5.js" defer=""></script><script src="/_next/static/3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b/_buildManifest.js" defer=""></script><script src="/_next/static/3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="css-1pi45l5 ant-app css-var-_R_56_"><aside class="sidebar sidebarCollapsedSelf"><div class="sidebarLogoRow"><a class="min-w-0 flex-1" href="/overview"><div class="sidebarLogo"><div class="w-8 h-8 rounded-lg bg-black dark:bg-white flex items-center justify-center shrink-0"><svg width="26" height="26" viewBox="0 0 24 24" class="text-white dark:text-black" aria-hidden="true" focusable="false"><g transform="translate(12.2475 11.7525) scale(1.0500) translate(0.9636 0.0000) rotate(5.00)"><path d="M8.561 5.168 A10 10 0 1 1 1.544 -9.880 A8.5 8.5 0 1 0 8.561 5.168 Z" fill="currentColor"></path></g></svg></div><div class="sidebarLogoTitle"><span class="logoGradient">Customize Agent</span></div></div></a></div><nav class="sidebarNav mt-2"><a href="/overview"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layout-dashboard"><rect width="7" height="9" x="3" y="3" rx="1"></rect><rect width="7" height="5" x="14" y="3" rx="1"></rect><rect width="7" height="9" x="14" y="12" rx="1"></rect><rect width="7" height="5" x="3" y="16" rx="1"></rect></svg><span class="sidebarLabel">总览</span></div></a><a href="/knowledge"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-database"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5V19A9 3 0 0 0 21 19V5"></path><path d="M3 12A9 3 0 0 0 21 12"></path></svg><span class="sidebarLabel">知识库</span></div></a><a href="/models"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cpu"><rect width="16" height="16" x="4" y="4" rx="2"></rect><rect width="6" height="6" x="9" y="9" rx="1"></rect><path d="M15 2v2"></path><path d="M15 20v2"></path><path d="M2 15h2"></path><path d="M2 9h2"></path><path d="M20 15h2"></path><path d="M20 9h2"></path><path d="M9 2v2"></path><path d="M9 20v2"></path></svg><span class="sidebarLabel">模型配置</span></div></a><a href="/prompt"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="sidebarLabel">提示词管理</span></div></a><a href="/skills"><div class="sidebarItem sidebarItemActive"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg><span class="sidebarLabel">技能库</span></div></a><a href="/canvas"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-network"><rect x="16" y="16" width="6" height="6" rx="1"></rect><rect x="2" y="16" width="6" height="6" rx="1"></rect><rect x="9" y="2" width="6" height="6" rx="1"></rect><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"></path><path d="M12 12V8"></path></svg><span class="sidebarLabel">生成画布</span></div></a><a href="/guide"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg><span class="sidebarLabel">指引</span></div></a><a href="/settings"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx="12" cy="12" r="3"></circle></svg><span class="sidebarLabel">设置</span></div></a></nav></aside><div class="mainContent"><header class="topbar"><div class="flex-1"></div><span class="ant-badge css-1pi45l5 css-var-_R_56_"><button type="button" class="ant-btn css-1pi45l5 css-var-_R_56_ ant-btn-default ant-btn-color-default ant-btn-variant-outlined topbarBtn"><span class="ant-btn-icon"><span role="img" aria-label="clock-circle" class="anticon anticon-clock-circle"><svg viewBox="64 64 896 896" focusable="false" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></span></span><span>后台任务</span></button></span><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg><span>深色</span></button><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-languages"><path d="m5 8 6 6"></path><path d="m4 14 6-6 2-3"></path><path d="M2 5h12"></path><path d="M7 2h1"></path><path d="m22 22-5-10-5 10"></path><path d="M14 18h6"></path></svg><span>English</span></button></header><main class="mainInner"><div class="space-y-6 animateFadeIn"><div class="ant-card ant-card-bordered rounded-2xl mb-6 css-1pi45l5 css-var-_R_56_"><div class="ant-card-head"><div class="ant-card-head-wrapper"><div class="ant-card-head-title"><div class="ant-space css-1pi45l5 ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small css-var-_R_56_"><div class="ant-space-item"><span role="img" aria-label="safety-certificate" class="anticon anticon-safety-certificate"><svg viewBox="64 64 896 896" focusable="false" data-icon="safety-certificate" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"></path></svg></span></div><div class="ant-space-item">技能库</div></div></div><div class="ant-card-extra"><button type="button" class="ant-btn css-1pi45l5 css-var-_R_56_ ant-btn-primary ant-btn-color-primary ant-btn-variant-solid rounded-xl" disabled=""><span class="ant-btn-icon"><span role="img" aria-label="plus" class="anticon anticon-plus"><svg viewBox="64 64 896 896" focusable="false" data-icon="plus" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"></path><path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"></path></svg></span></span><span>新建技能</span></button></div></div></div><div class="ant-card-body"><div class="ant-typography ant-typography-secondary !mb-4 css-1pi45l5 css-var-_R_56_">技能提供专业主题、资料需求、工艺知识和写作核对提示,按章域、工程类型与具体对象选用。 本次任务的实际章节职责由主控规划确定。保存时会校验技能字段与工艺卡引用。</div><div class="py-10 text-center"><div class="ant-spin ant-spin-spinning ant-spin-section css-1pi45l5 css-var-_R_56_" aria-live="polite" aria-busy="true"><span class="ant-spin-dot-holder"><span class="ant-spin-dot ant-spin-dot-spin"><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i></span></span></div></div></div></div></div></main></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/skills","query":{},"buildId":"3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" data-next-head=""/><link rel="icon" type="image/svg+xml" href="/favicon.svg" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="preload" href="/_next/static/css/39e9d8f998ce517b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/39e9d8f998ce517b.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-6224d37324e372cb.js" defer=""></script><script src="/_next/static/chunks/framework-4b565b3ddc94cdac.js" defer=""></script><script src="/_next/static/chunks/main-0c91f573696223ca.js" defer=""></script><script src="/_next/static/chunks/pages/_app-3f5aa4ff7951feca.js" defer=""></script><script src="/_next/static/chunks/324-650dc02536b071bf.js" defer=""></script><script src="/_next/static/chunks/280-3ce590d421b5c47d.js" defer=""></script><script src="/_next/static/chunks/665-0634aa49137defc4.js" defer=""></script><script src="/_next/static/chunks/576-6699fed6c88502fe.js" defer=""></script><script src="/_next/static/chunks/499-2233cadc6d4da647.js" defer=""></script><script src="/_next/static/chunks/338-19ccbaec57a7bf9c.js" defer=""></script><script src="/_next/static/chunks/964-569c27befeaff602.js" defer=""></script><script src="/_next/static/chunks/pages/system/logs-40edb648d89b0749.js" defer=""></script><script src="/_next/static/77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539/_buildManifest.js" defer=""></script><script src="/_next/static/77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="css-1pi45l5 ant-app css-var-_R_56_"><aside class="sidebar sidebarCollapsedSelf"><div class="sidebarLogoRow"><a class="min-w-0 flex-1" href="/overview"><div class="sidebarLogo"><div class="w-8 h-8 rounded-lg bg-black dark:bg-white flex items-center justify-center shrink-0"><svg width="26" height="26" viewBox="0 0 24 24" class="text-white dark:text-black" aria-hidden="true" focusable="false"><g transform="translate(12.2475 11.7525) scale(1.0500) translate(0.9636 0.0000) rotate(5.00)"><path d="M8.561 5.168 A10 10 0 1 1 1.544 -9.880 A8.5 8.5 0 1 0 8.561 5.168 Z" fill="currentColor"></path></g></svg></div><div class="sidebarLogoTitle"><span class="logoGradient">Customize Agent</span></div></div></a></div><nav class="sidebarNav mt-2"><a href="/overview"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layout-dashboard"><rect width="7" height="9" x="3" y="3" rx="1"></rect><rect width="7" height="5" x="14" y="3" rx="1"></rect><rect width="7" height="9" x="14" y="12" rx="1"></rect><rect width="7" height="5" x="3" y="16" rx="1"></rect></svg><span class="sidebarLabel">总览</span></div></a><a href="/knowledge"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-database"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5V19A9 3 0 0 0 21 19V5"></path><path d="M3 12A9 3 0 0 0 21 12"></path></svg><span class="sidebarLabel">知识库</span></div></a><a href="/models"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cpu"><rect width="16" height="16" x="4" y="4" rx="2"></rect><rect width="6" height="6" x="9" y="9" rx="1"></rect><path d="M15 2v2"></path><path d="M15 20v2"></path><path d="M2 15h2"></path><path d="M2 9h2"></path><path d="M20 15h2"></path><path d="M20 9h2"></path><path d="M9 2v2"></path><path d="M9 20v2"></path></svg><span class="sidebarLabel">模型配置</span></div></a><a href="/prompt"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="sidebarLabel">提示词管理</span></div></a><a href="/skills"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg><span class="sidebarLabel">技能库</span></div></a><a href="/canvas"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-network"><rect x="16" y="16" width="6" height="6" rx="1"></rect><rect x="2" y="16" width="6" height="6" rx="1"></rect><rect x="9" y="2" width="6" height="6" rx="1"></rect><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"></path><path d="M12 12V8"></path></svg><span class="sidebarLabel">生成画布</span></div></a><a href="/guide"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg><span class="sidebarLabel">指引</span></div></a><a href="/settings"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx="12" cy="12" r="3"></circle></svg><span class="sidebarLabel">设置</span></div></a></nav></aside><div class="mainContent"><header class="topbar"><div class="flex-1"></div><span class="ant-badge css-1pi45l5 css-var-_R_56_"><button type="button" class="ant-btn css-1pi45l5 css-var-_R_56_ ant-btn-default ant-btn-color-default ant-btn-variant-outlined topbarBtn"><span class="ant-btn-icon"><span role="img" aria-label="clock-circle" class="anticon anticon-clock-circle"><svg viewBox="64 64 896 896" focusable="false" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></span></span><span>后台任务</span></button></span><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg><span>深色</span></button><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-languages"><path d="m5 8 6 6"></path><path d="m4 14 6-6 2-3"></path><path d="M2 5h12"></path><path d="M7 2h1"></path><path d="m22 22-5-10-5 10"></path><path d="M14 18h6"></path></svg><span>English</span></button></header><main class="mainInner"><div class="space-y-8 animateFadeIn"><div class="ant-skeleton ant-skeleton-active css-1pi45l5 css-var-_R_56_"><div class="ant-skeleton-section"><h3 class="ant-skeleton-title" style="width:38%"></h3><ul class="ant-skeleton-paragraph"><li style="width:61%"></li></ul></div></div><div class="ant-skeleton ant-skeleton-active css-1pi45l5 css-var-_R_56_"><div class="ant-skeleton-section"><h3 class="ant-skeleton-title" style="width:38%"></h3><ul class="ant-skeleton-paragraph"><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li style="width:61%"></li></ul></div></div></div></main></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/system/logs","query":{},"buildId":"77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" data-next-head=""/><link rel="icon" type="image/svg+xml" href="/favicon.svg" data-next-head=""/><link rel="icon" href="/favicon.ico" sizes="any" data-next-head=""/><link rel="apple-touch-icon" href="/apple-touch-icon.png" data-next-head=""/><link rel="preload" href="/_next/static/css/f4f2d386cfeae8e4.css" as="style"/><link rel="stylesheet" href="/_next/static/css/f4f2d386cfeae8e4.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-6224d37324e372cb.js" defer=""></script><script src="/_next/static/chunks/framework-4b565b3ddc94cdac.js" defer=""></script><script src="/_next/static/chunks/main-0c91f573696223ca.js" defer=""></script><script src="/_next/static/chunks/pages/_app-3f5aa4ff7951feca.js" defer=""></script><script src="/_next/static/chunks/324-650dc02536b071bf.js" defer=""></script><script src="/_next/static/chunks/280-3ce590d421b5c47d.js" defer=""></script><script src="/_next/static/chunks/665-0634aa49137defc4.js" defer=""></script><script src="/_next/static/chunks/576-6699fed6c88502fe.js" defer=""></script><script src="/_next/static/chunks/499-2233cadc6d4da647.js" defer=""></script><script src="/_next/static/chunks/338-19ccbaec57a7bf9c.js" defer=""></script><script src="/_next/static/chunks/964-569c27befeaff602.js" defer=""></script><script src="/_next/static/chunks/pages/system/logs-40edb648d89b0749.js" defer=""></script><script src="/_next/static/3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b/_buildManifest.js" defer=""></script><script src="/_next/static/3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="css-1pi45l5 ant-app css-var-_R_56_"><aside class="sidebar sidebarCollapsedSelf"><div class="sidebarLogoRow"><a class="min-w-0 flex-1" href="/overview"><div class="sidebarLogo"><div class="w-8 h-8 rounded-lg bg-black dark:bg-white flex items-center justify-center shrink-0"><svg width="26" height="26" viewBox="0 0 24 24" class="text-white dark:text-black" aria-hidden="true" focusable="false"><g transform="translate(12.2475 11.7525) scale(1.0500) translate(0.9636 0.0000) rotate(5.00)"><path d="M8.561 5.168 A10 10 0 1 1 1.544 -9.880 A8.5 8.5 0 1 0 8.561 5.168 Z" fill="currentColor"></path></g></svg></div><div class="sidebarLogoTitle"><span class="logoGradient">Customize Agent</span></div></div></a></div><nav class="sidebarNav mt-2"><a href="/overview"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layout-dashboard"><rect width="7" height="9" x="3" y="3" rx="1"></rect><rect width="7" height="5" x="14" y="3" rx="1"></rect><rect width="7" height="9" x="14" y="12" rx="1"></rect><rect width="7" height="5" x="3" y="16" rx="1"></rect></svg><span class="sidebarLabel">总览</span></div></a><a href="/knowledge"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-database"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5V19A9 3 0 0 0 21 19V5"></path><path d="M3 12A9 3 0 0 0 21 12"></path></svg><span class="sidebarLabel">知识库</span></div></a><a href="/models"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cpu"><rect width="16" height="16" x="4" y="4" rx="2"></rect><rect width="6" height="6" x="9" y="9" rx="1"></rect><path d="M15 2v2"></path><path d="M15 20v2"></path><path d="M2 15h2"></path><path d="M2 9h2"></path><path d="M20 15h2"></path><path d="M20 9h2"></path><path d="M9 2v2"></path><path d="M9 20v2"></path></svg><span class="sidebarLabel">模型配置</span></div></a><a href="/prompt"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="sidebarLabel">提示词管理</span></div></a><a href="/skills"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg><span class="sidebarLabel">技能库</span></div></a><a href="/canvas"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-network"><rect x="16" y="16" width="6" height="6" rx="1"></rect><rect x="2" y="16" width="6" height="6" rx="1"></rect><rect x="9" y="2" width="6" height="6" rx="1"></rect><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"></path><path d="M12 12V8"></path></svg><span class="sidebarLabel">生成画布</span></div></a><a href="/guide"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg><span class="sidebarLabel">指引</span></div></a><a href="/settings"><div class="sidebarItem"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx="12" cy="12" r="3"></circle></svg><span class="sidebarLabel">设置</span></div></a></nav></aside><div class="mainContent"><header class="topbar"><div class="flex-1"></div><span class="ant-badge css-1pi45l5 css-var-_R_56_"><button type="button" class="ant-btn css-1pi45l5 css-var-_R_56_ ant-btn-default ant-btn-color-default ant-btn-variant-outlined topbarBtn"><span class="ant-btn-icon"><span role="img" aria-label="clock-circle" class="anticon anticon-clock-circle"><svg viewBox="64 64 896 896" focusable="false" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></span></span><span>后台任务</span></button></span><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg><span>深色</span></button><button class="topbarBtn"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-languages"><path d="m5 8 6 6"></path><path d="m4 14 6-6 2-3"></path><path d="M2 5h12"></path><path d="M7 2h1"></path><path d="m22 22-5-10-5 10"></path><path d="M14 18h6"></path></svg><span>English</span></button></header><main class="mainInner"><div class="space-y-8 animateFadeIn"><div class="ant-skeleton ant-skeleton-active css-1pi45l5 css-var-_R_56_"><div class="ant-skeleton-section"><h3 class="ant-skeleton-title" style="width:38%"></h3><ul class="ant-skeleton-paragraph"><li style="width:61%"></li></ul></div></div><div class="ant-skeleton ant-skeleton-active css-1pi45l5 css-var-_R_56_"><div class="ant-skeleton-section"><h3 class="ant-skeleton-title" style="width:38%"></h3><ul class="ant-skeleton-paragraph"><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li style="width:61%"></li></ul></div></div></div></main></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/system/logs","query":{},"buildId":"3a50a07d5e578847f7a1eefe9573b36527d6e1f5a7d0cb3b4883423ccfabc75b","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
{
|
|
2
2
|
"/_app": "pages/_app.js",
|
|
3
|
-
"/_error": "pages/_error.js",
|
|
4
3
|
"/api/assets/generated/preview": "pages/api/assets/generated/preview.js",
|
|
5
4
|
"/api/assets/generated": "pages/api/assets/generated.js",
|
|
6
|
-
"/api/config/embedding/healthCheck": "pages/api/config/embedding/healthCheck.js",
|
|
7
5
|
"/api/config/web-access": "pages/api/config/web-access.js",
|
|
8
6
|
"/api/documents/generate": "pages/api/documents/generate.js",
|
|
9
|
-
"/api/documents/generated/[id]/instruction": "pages/api/documents/generated/[id]/instruction.js",
|
|
10
|
-
"/api/documents/generated/[id]/nodes": "pages/api/documents/generated/[id]/nodes.js",
|
|
11
7
|
"/api/documents/generate/preview": "pages/api/documents/generate/preview.js",
|
|
8
|
+
"/api/config/embedding/healthCheck": "pages/api/config/embedding/healthCheck.js",
|
|
9
|
+
"/api/documents/generated/[id]/nodes": "pages/api/documents/generated/[id]/nodes.js",
|
|
10
|
+
"/api/documents/generated/[id]/pause": "pages/api/documents/generated/[id]/pause.js",
|
|
12
11
|
"/api/documents/generated/[id]/nodes/[nodeId]": "pages/api/documents/generated/[id]/nodes/[nodeId].js",
|
|
12
|
+
"/api/documents/generated/[id]/instruction": "pages/api/documents/generated/[id]/instruction.js",
|
|
13
13
|
"/api/documents/generated/[id]/preview": "pages/api/documents/generated/[id]/preview.js",
|
|
14
|
-
"/api/documents/generated/[id]/pause": "pages/api/documents/generated/[id]/pause.js",
|
|
15
14
|
"/api/documents/generated/[id]/repair/[rid]/confirm": "pages/api/documents/generated/[id]/repair/[rid]/confirm.js",
|
|
16
|
-
"/api/documents/generated/[id]/repair": "pages/api/documents/generated/[id]/repair.js",
|
|
17
15
|
"/api/documents/generated/[id]/report": "pages/api/documents/generated/[id]/report.js",
|
|
16
|
+
"/_error": "pages/_error.js",
|
|
17
|
+
"/api/documents/generated/[id]/resume-generate": "pages/api/documents/generated/[id]/resume-generate.js",
|
|
18
|
+
"/api/documents/generated/[id]/repair": "pages/api/documents/generated/[id]/repair.js",
|
|
18
19
|
"/api/documents/generated/[id]/repair/[rid]/rollback": "pages/api/documents/generated/[id]/repair/[rid]/rollback.js",
|
|
19
|
-
"/api/health": "pages/api/health.js",
|
|
20
20
|
"/api/documents/generated": "pages/api/documents/generated.js",
|
|
21
|
-
"/api/
|
|
21
|
+
"/api/health": "pages/api/health.js",
|
|
22
22
|
"/api/jobs/[id]": "pages/api/jobs/[id].js",
|
|
23
|
+
"/api/kb/categories": "pages/api/kb/categories.js",
|
|
23
24
|
"/api/kb/features": "pages/api/kb/features.js",
|
|
25
|
+
"/api/kb/files/detail": "pages/api/kb/files/detail.js",
|
|
24
26
|
"/api/kb/duplicates": "pages/api/kb/duplicates.js",
|
|
25
|
-
"/api/kb/files": "pages/api/kb/files.js",
|
|
26
27
|
"/api/kb/files/open": "pages/api/kb/files/open.js",
|
|
27
|
-
"/api/kb/files
|
|
28
|
-
"/api/documents/generated/[id]/resume-generate": "pages/api/documents/generated/[id]/resume-generate.js",
|
|
29
|
-
"/api/kb/ignore": "pages/api/kb/ignore.js",
|
|
30
|
-
"/api/kb/files/search": "pages/api/kb/files/search.js",
|
|
28
|
+
"/api/kb/files": "pages/api/kb/files.js",
|
|
31
29
|
"/api/kb/files/reindex": "pages/api/kb/files/reindex.js",
|
|
30
|
+
"/api/kb/files/search": "pages/api/kb/files/search.js",
|
|
31
|
+
"/api/kb/ignore": "pages/api/kb/ignore.js",
|
|
32
|
+
"/api/kb/material-groups": "pages/api/kb/material-groups.js",
|
|
32
33
|
"/api/kb/reindex": "pages/api/kb/reindex.js",
|
|
33
34
|
"/api/kb/operations": "pages/api/kb/operations.js",
|
|
34
|
-
"/api/kb/stats": "pages/api/kb/stats.js",
|
|
35
|
-
"/api/prompt": "pages/api/prompt.js",
|
|
36
|
-
"/api/kb/material-groups": "pages/api/kb/material-groups.js",
|
|
37
35
|
"/api/kb/tags": "pages/api/kb/tags.js",
|
|
36
|
+
"/api/kb/stats": "pages/api/kb/stats.js",
|
|
38
37
|
"/api/kb/upload/complete": "pages/api/kb/upload/complete.js",
|
|
39
38
|
"/api/skills/[id]": "pages/api/skills/[id].js",
|
|
40
|
-
"/api/skills/validate": "pages/api/skills/validate.js",
|
|
41
39
|
"/api/skills": "pages/api/skills.js",
|
|
40
|
+
"/api/skills/validate": "pages/api/skills/validate.js",
|
|
42
41
|
"/api/system/data-health": "pages/api/system/data-health.js",
|
|
43
|
-
"/api/
|
|
42
|
+
"/api/prompt": "pages/api/prompt.js",
|
|
44
43
|
"/api/system/logs": "pages/api/system/logs.js",
|
|
45
|
-
"/
|
|
44
|
+
"/api/system/reset": "pages/api/system/reset.js",
|
|
46
45
|
"/canvas": "pages/canvas.html",
|
|
47
|
-
"/guide": "pages/guide.html",
|
|
48
46
|
"/documents": "pages/documents.html",
|
|
47
|
+
"/canvas/[id]": "pages/canvas/[id].html",
|
|
48
|
+
"/guide": "pages/guide.html",
|
|
49
49
|
"/": "pages/index.html",
|
|
50
|
-
"/knowledge/
|
|
50
|
+
"/knowledge/file-detail": "pages/knowledge/file-detail.html",
|
|
51
51
|
"/knowledge/files": "pages/knowledge/files.html",
|
|
52
|
-
"/overview": "pages/overview.html",
|
|
53
52
|
"/knowledge": "pages/knowledge.html",
|
|
54
|
-
"/knowledge/
|
|
55
|
-
"/models": "pages/models.html",
|
|
53
|
+
"/knowledge/manage": "pages/knowledge/manage.html",
|
|
56
54
|
"/knowledge/source-preview": "pages/knowledge/source-preview.html",
|
|
55
|
+
"/overview": "pages/overview.html",
|
|
56
|
+
"/models": "pages/models.html",
|
|
57
|
+
"/prompt": "pages/prompt.html",
|
|
57
58
|
"/settings": "pages/settings.html",
|
|
58
|
-
"/skills/[id]
|
|
59
|
+
"/skills/[id]": "pages/skills/[id].html",
|
|
59
60
|
"/skills": "pages/skills.html",
|
|
60
|
-
"/prompt": "pages/prompt.html",
|
|
61
61
|
"/skills/new": "pages/skills/new.html",
|
|
62
|
+
"/skills/[id]/edit": "pages/skills/[id]/edit.html",
|
|
63
|
+
"/system/logs": "pages/system/logs.html",
|
|
64
|
+
"/api/config/models": "pages/api/config/models.js",
|
|
62
65
|
"/api/config/providers/[provider]": "pages/api/config/providers/[provider].js",
|
|
63
66
|
"/api/config/embedding": "pages/api/config/embedding.js",
|
|
64
|
-
"/api/config/healthCheck": "pages/api/config/healthCheck.js",
|
|
65
67
|
"/api/config/providers": "pages/api/config/providers.js",
|
|
66
|
-
"/api/config/
|
|
67
|
-
"/api/documents/canvas/[id]": "pages/api/documents/canvas/[id].js",
|
|
68
|
-
"/api/documents/generated/[id]/figure/[name]": "pages/api/documents/generated/[id]/figure/[name].js",
|
|
69
|
-
"/system/logs": "pages/system/logs.html",
|
|
70
|
-
"/skills/[id]": "pages/skills/[id].html",
|
|
68
|
+
"/api/config/healthCheck": "pages/api/config/healthCheck.js",
|
|
71
69
|
"/api/documents/generated/[id]": "pages/api/documents/generated/[id].js",
|
|
70
|
+
"/api/documents/canvas/[id]": "pages/api/documents/canvas/[id].js",
|
|
72
71
|
"/api/documents/generated/[id]/events": "pages/api/documents/generated/[id]/events.js",
|
|
72
|
+
"/api/documents/generated/[id]/figure/[name]": "pages/api/documents/generated/[id]/figure/[name].js",
|
|
73
73
|
"/api/kb/files/preview-pdf-page": "pages/api/kb/files/preview-pdf-page.js",
|
|
74
74
|
"/api/kb/files/export": "pages/api/kb/files/export.js",
|
|
75
75
|
"/api/kb/files/source-preview": "pages/api/kb/files/source-preview.js",
|
|
76
|
-
"/api/prompt/chat": "pages/api/prompt/chat.js",
|
|
77
76
|
"/api/kb/upload": "pages/api/kb/upload.js",
|
|
77
|
+
"/api/prompt/chat": "pages/api/prompt/chat.js",
|
|
78
78
|
"/api/system/stats": "pages/api/system/stats.js",
|
|
79
79
|
"/_document": "pages/_document.js",
|
|
80
80
|
"/api/documents/export": "pages/api/documents/export.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,e,c,a,t,i,d,n,k,u,l,f,g,h,
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,e,c,a,t,i,d,n,k,u,l,f,g,b,h,j,r,o,p,w,m,_,v){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:h,bitArray:[]},__routerFilterDynamic:{numItems:u,errorRate:1e-4,numBits:u,numHashes:h,bitArray:[]},"/":[j,r,"static/chunks/pages/index-cb27bfa36c212ab5.js"],"/_error":["static/chunks/pages/_error-282257fbdcc167b4.js"],"/canvas":[s,e,a,t,o,p,"static/chunks/pages/canvas-ffb08963e5cf9558.js"],"/canvas/[id]":[s,e,c,a,i,t,l,o,"static/chunks/579-fc0a2eb64aedb001.js",p,"static/chunks/pages/canvas/[id]-534b45f39f39630c.js"],"/documents":["static/chunks/pages/documents-e6a80f2de39c6fd2.js"],"/guide":[s,c,i,d,"static/chunks/162-a5be07e04aedf98a.js","static/chunks/pages/guide-82ae330966139191.js"],"/knowledge":[s,e,c,a,t,n,k,w,"static/chunks/pages/knowledge-84e386d765ddd311.js"],"/knowledge/file-detail":[s,e,c,a,i,t,d,n,k,l,w,"static/chunks/pages/knowledge/file-detail-dc1807f8ed32cd59.js"],"/knowledge/files":["static/chunks/pages/knowledge/files-b3ef5324e4b74c4a.js"],"/knowledge/manage":["static/chunks/pages/knowledge/manage-d9eaebf3a8307953.js"],"/knowledge/source-preview":[s,e,c,i,t,d,l,m,"static/chunks/781-a6b83dbcd1a33cab.js","static/chunks/pages/knowledge/source-preview-4309277bf497521c.js"],"/models":[s,e,a,n,f,m,"static/chunks/pages/models-5eee2d09deb081fb.js"],"/overview":[j,r,"static/chunks/pages/overview-8713b5d37af0eeb3.js"],"/prompt":[s,e,c,a,t,n,k,"static/chunks/711-40c1a2dbd15c2807.js","static/chunks/pages/prompt-d75de6a6fead73c9.js"],"/settings":["static/chunks/pages/settings-f6dfff648cf9ac0e.js"],"/skills":[s,e,c,i,t,d,n,k,"static/chunks/425-42f2568bcdd98f4c.js","static/chunks/pages/skills-476714776be63ce5.js"],"/skills/new":[s,e,c,a,i,d,f,_,g,v,"static/chunks/pages/skills/new-124599c772150a1d.js"],"/skills/[id]":[c,i,d,"static/chunks/564-d3426eef3e3e415b.js",g,"static/chunks/pages/skills/[id]-5130d68546be49cb.js"],"/skills/[id]/edit":[s,e,c,a,i,d,f,_,g,v,"static/chunks/pages/skills/[id]/edit-89bbed9a3a854b04.js"],"/system/logs":[s,e,c,a,t,n,k,"static/chunks/pages/system/logs-40edb648d89b0749.js"],sortedPages:["/","/_app","/_error","/canvas","/canvas/[id]","/documents","/guide","/knowledge","/knowledge/file-detail","/knowledge/files","/knowledge/manage","/knowledge/source-preview","/models","/overview","/prompt","/settings","/skills","/skills/new","/skills/[id]","/skills/[id]/edit","/system/logs"]}}("static/chunks/324-650dc02536b071bf.js","static/chunks/280-3ce590d421b5c47d.js","static/chunks/665-0634aa49137defc4.js","static/chunks/576-6699fed6c88502fe.js","static/chunks/499-2233cadc6d4da647.js","static/chunks/569-2bfdde9e402af5b2.js","static/chunks/787-207289f4bb577708.js","static/chunks/338-19ccbaec57a7bf9c.js","static/chunks/964-569c27befeaff602.js",0,"static/chunks/808-0506edc7454b5c0e.js","static/chunks/864-b06700e1a4e573f2.js","static/chunks/2-434e34e83819f4e4.js",1e-4,NaN,"static/chunks/880-64d8a15c524106d2.js","static/chunks/795-1c1cb3bf1f600e99.js","static/chunks/127-7d37d37dab02bd10.js","static/chunks/530-7e79396d68742829.js","static/css/2da1c822e3bdb4bb.css","static/chunks/318-ca122b774ea4ee84.js","static/chunks/819-96247c9054ad9683.js","static/chunks/257-6938c7ab284ab21c.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2],{14524:(e,t,r)=>{r.d(t,{PZ:()=>d,RU:()=>u,jT:()=>p,n$:()=>m});var l=r(65321),s=r(48399),n=r(68787),i=r(33442),a=r(85114),c=r(58209);let{Text:o}=s.A;function d(e){let{title:t,description:r,hint:s,className:i,children:a}=e;return(0,l.jsxs)(n.A,{className:"rounded-2xl border-[var(--borderColor)] ".concat(null!=i?i:""),title:(0,l.jsx)("span",{className:"font-semibold",children:t}),extra:s?(0,l.jsx)("span",{className:"text-xs text-[var(--colorTextTertiary)]",children:s}):null,children:[r&&(0,l.jsx)("p",{className:"text-xs text-[var(--colorTextSecondary)] mb-4 mt-0 leading-relaxed",children:r}),a]})}function u(e){let{label:t,children:r,empty:s}=e,n=null==r||!1===r;return(0,l.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-[132px_minmax(0,1fr)] gap-x-4 gap-y-1 py-2 border-b border-[var(--colorBorderSecondary)] last:border-0",children:[(0,l.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] sm:pt-1",children:t}),(0,l.jsx)("div",{className:"min-w-0 text-sm leading-6",children:n?(0,l.jsx)(o,{type:"secondary",className:"text-xs",children:null!=s?s:"未声明"}):r})]})}function m(e){let{items:t,empty:r}=e;return 0===t.length?(0,l.jsx)(o,{type:"secondary",className:"text-xs",children:null!=r?r:"未声明"}):(0,l.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map((e,t)=>(0,l.jsx)("span",{children:e},t))})}function p(e){let{children:t,columns:r="md:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",onRemove:s,removeLabel:n="删除这一行"}=e;return(0,l.jsxs)("div",{className:"flex items-start gap-3 rounded-xl border border-[var(--borderColor)] bg-[var(--colorFillAlter)] px-4 py-3 transition-colors hover:bg-[var(--colorBgHover)]",children:[(0,l.jsx)("div",{className:"min-w-0 flex-1 grid grid-cols-1 ".concat(r," gap-x-3 gap-y-1 items-start"),children:t}),(0,l.jsx)(i.A,{size:0,className:"self-center",children:(0,l.jsx)(a.Ay,{type:"text",danger:!0,size:"small",icon:(0,l.jsx)(c.A,{}),"aria-label":n,title:n,onClick:s})})]})}},33061:(e,t,r)=>{r.d(t,{G:()=>n});var l=r(97109),s=r(35071);function n(){let[e,t]=(0,l.useState)([]),[r,n]=(0,l.useState)(),[i,a]=(0,l.useState)([]),[c,o]=(0,l.useState)(!0),[d,u]=(0,l.useState)(""),m=(0,l.useCallback)(async()=>{o(!0);let e=await (0,s.SS)("/api/skills");if(e.ok){var r;t(e.data.skills),n(e.data.options),a(null!=(r=e.data.invalid)?r:[]),u("")}else u(e.message);o(!1)},[]);return(0,l.useEffect)(()=>{m()},[m]),{skills:e,options:r,invalid:i,loading:c,failed:d,reload:m,applySkills:t}}},35071:(e,t,r)=>{r.d(t,{F:()=>n,Ie:()=>o,Oz:()=>a,RW:()=>m,SS:()=>s,eT:()=>l,m6:()=>c});let l={"Content-Type":"application/json"};async function s(e,t){try{let l,s=await fetch(e,t),n=await s.text();try{l=n?JSON.parse(n):void 0}catch(e){l=void 0}if(!s.ok){var r;let e=null!=l?l:{};return{ok:!1,status:s.status,message:null!=(r=e.error)?r:"HTTP ".concat(s.status),issues:Array.isArray(e.errors)?e.errors:[]}}return{ok:!0,data:l}}catch(e){return{ok:!1,status:0,message:e instanceof Error?e.message:"网络请求失败",issues:[]}}}let n="内置技能只读,随应用版本更新。可新建用户技能进行配置。";function i(e){return[...new Set((null!=e?e:[]).map(e=>e.trim()).filter(e=>e.length>0))]}function a(e){return"string"==typeof e?e:e.phrase}function c(e){return{id:e.id,enabled:e.enabled,match:{chapterDomain:e.match.chapterDomain,projectTypes:[...e.match.projectTypes],sectionKeywords:[...e.match.sectionKeywords],...e.match.sectionRegex?{sectionRegex:e.match.sectionRegex}:{}},requires:e.requires.map(e=>({...e})),structure:e.structure.map(e=>{var t;return{title:e.title,required:[...null!=(t=e.required)?t:[]]}}),forbidden:e.forbidden.map(a),knowledge:e.knowledge.map(e=>({kind:e.kind,...e.ids?{ids:[...e.ids]}:{},...e.note?{note:e.note}:{}})),acceptance:e.acceptance.map(e=>({kind:"llmChecklist",checklistItems:[...e.items]})),...void 0!==e.outputTitle?{outputTitle:e.outputTitle}:{},...e.chapterChecklist?{chapterChecklist:{...e.chapterChecklist,...e.chapterChecklist.sections?{sections:[...e.chapterChecklist.sections]}:{}}}:{}}}function o(){return{id:"skill-".concat(Date.now()),enabled:!0,match:{projectTypes:[],sectionKeywords:[]},requires:[{source:"boq",required:!1}],structure:[{}],forbidden:[],knowledge:[],acceptance:[{kind:"llmChecklist",checklistItems:[]}]}}function d(e){var t;return(null!=(t=e.ids)?t:[]).length>0}function u(e){var t;return(null!=(t=e.checklistItems)?t:[]).length>0}function m(e,t,r){var l,s,n,a,c,o,m,p,x,h;let v={chapterDomain:null==(l=e.match)?void 0:l.chapterDomain,projectTypes:[...null!=(o=null==(s=e.match)?void 0:s.projectTypes)?o:[]],sectionKeywords:i(null==(n=e.match)?void 0:n.sectionKeywords),...(null==(c=e.match)||null==(a=c.sectionRegex)?void 0:a.trim())?{sectionRegex:e.match.sectionRegex.trim()}:{}},f=(null!=(m=e.requires)?m:[]).filter(e=>{var t;return(null!=(t=e.key)?t:"").trim().length>0}).map(e=>{var t;return{key:(null!=(t=e.key)?t:"").trim(),source:e.source,required:!0===e.required}}),k=(null!=(p=e.structure)?p:[]).filter(e=>{var t;return(null!=(t=e.title)?t:"").trim().length>0}).map(e=>{var t;return{title:(null!=(t=e.title)?t:"").trim(),required:i(e.required)}}),g=(null!=(x=e.knowledge)?x:[]).filter(d).map(e=>{var t;return{kind:"processCard",ids:i(e.ids),...(null==(t=e.note)?void 0:t.trim())?{note:e.note.trim()}:{}}}),b=(null!=(h=e.acceptance)?h:[]).filter(u).map(e=>({kind:"llmChecklist",items:i(e.checklistItems),nonDeterministic:!0}));return{id:e.id.trim(),version:t,source:"user",enabled:!1!==e.enabled,match:v,requires:f,structure:k,forbidden:i(e.forbidden),knowledge:g,acceptance:b,...function(e){var t,r,l,s;let n=null!=(s=null==(t=e.outputTitle)?void 0:t.trim())?s:"",a=e.chapterChecklist,c={sections:i(null==a?void 0:a.sections),queries:i(null==a?void 0:a.queries),requiredFacts:i(null==a?void 0:a.requiredFacts),tableSections:i(null==a?void 0:a.tableSections),tableRequirements:i(null==a?void 0:a.tableRequirements),pinnedEvidenceFilePaths:i(null==a?void 0:a.pinnedEvidenceFilePaths)},o=!!(null==a||null==(r=a.purpose)?void 0:r.trim())||Object.values(c).some(e=>e.length>0);return{...n?{outputTitle:n}:{},...o?{chapterChecklist:{...(null==a||null==(l=a.purpose)?void 0:l.trim())?{purpose:a.purpose.trim()}:{},...Object.fromEntries(Object.entries(c).filter(e=>{let[,t]=e;return t.length>0}))}}:{}}}(e),...r?{examples:r}:{}}}},62561:(e,t,r)=>{r.d(t,{e:()=>a});var l=r(65321),s=r(43220),n=r.n(s),i=r(47210);function a(e){let{title:t,description:r,extra:s}=e;return(0,l.jsx)("div",{className:"skillStickyHeader",children:(0,l.jsx)("div",{className:"bg-[var(--colorBgContainer)] rounded-2xl border border-[var(--borderColor)] p-6",children:(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-6",children:[(0,l.jsxs)("div",{className:"flex items-center min-w-0",children:[(0,l.jsxs)(n(),{href:"/skills",className:"mr-4 text-sm text-[var(--colorTextSecondary)] hover:text-[var(--colorText)] inline-flex items-center gap-1 shrink-0",children:[(0,l.jsx)(i.A,{})," 返回技能库"]}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold text-[var(--colorText)] mb-1 truncate",children:t}),r?(0,l.jsx)("p",{className:"text-sm text-[var(--colorTextSecondary)] m-0 truncate",children:r}):null]})]}),s?(0,l.jsx)("div",{className:"shrink-0 flex items-center gap-2",children:s}):null]})})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[257],{75257:(e,s,l)=>{l.d(s,{q:()=>F});var a=l(65321),r=l(97109),i=l(86109),t=l(48399),n=l(17807),c=l(63455),d=l(88762),o=l(85493),m=l(84253),x=l(85114),h=l(33442),p=l(99650),j=l(67547),u=l(43220),g=l.n(u),A=l(62561),b=l(7576),f=l(44534),v=l(57271),y=l(54746),k=l(39507),N=l(14524);let{Text:I}=t.A;function w(e){var s,l;let{form:r,options:i,idLocked:t}=e,n=(0,k.Vr)(),d=i.chapterDomains.map(e=>({value:e.value,label:e.label,title:e.note})),o=i.projectTypes.map(e=>({value:e.value,label:e.label})),m=i.factSources.map(e=>({value:e.value,label:e.label})),h=i.processCards.map(e=>({value:e.value,label:e.label}));return(0,a.jsxs)(c.A,{form:r,layout:"vertical",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-4 items-start",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)(N.PZ,{title:"基本信息",description:"技能的身份与启停;ID 是落盘文件名,新建后不再改。",children:[(0,a.jsx)(c.A.Item,{name:"id",label:"技能 ID",rules:[{required:!0,message:"技能 ID 必填"}],extra:"使用小写字母、数字和连字符,以字母开头。",children:(0,a.jsx)(b.A,{disabled:t,placeholder:"例如 c02-major-content-building"})}),(0,a.jsx)(c.A.Item,{name:"enabled",label:"启用",valuePropName:"checked",extra:"停用后本条技能不参与本次生成的技能匹配。",className:"!mb-0",children:(0,a.jsx)(f.A,{checkedChildren:"启用",unCheckedChildren:"停用"})})]}),(0,a.jsxs)(N.PZ,{title:"匹配条件",description:"决定这条技能在什么章域、什么工程类型、什么样的章节标题下被选用。",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-4",children:[(0,a.jsx)(c.A.Item,{name:["match","chapterDomain"],label:"章域",rules:[{required:!0,message:"章域必选"}],extra:"本章所属的专业内容范围。",children:(0,a.jsx)(v.A,{options:d,placeholder:"选择本章所属的内容域"})}),(0,a.jsx)(c.A.Item,{name:["match","projectTypes"],label:"适用工程类型",extra:"留空表示不限定工程类型。",children:(0,a.jsx)(v.A,{mode:"multiple",allowClear:!0,options:o,placeholder:"全类型"})})]}),(0,a.jsx)(c.A.Item,{name:["match","sectionKeywords"],label:"小节标题关键词",extra:"用于匹配相关小节标题,可输入多个关键词。",children:(0,a.jsx)(v.A,{mode:"tags",tokenSeparators:[",",","," "],placeholder:"输入后回车,例如:主要施工 / 分部分项"})}),(0,a.jsx)(c.A.Item,{name:["match","sectionRegex"],label:"小节标题匹配表达式(可选)",extra:"填写正则表达式文本;复杂或不安全的表达式会被校验拒绝。",className:"!mb-0",children:(0,a.jsx)(b.A,{placeholder:"例如 交通导改|导行|管线保护"})})]}),(0,a.jsx)(N.PZ,{title:"禁写项",description:"这条技能明确要求避免的内容或表达;没有就留空。",children:(0,a.jsx)(c.A.Item,{name:"forbidden",extra:"填错一条会挡住真实存在的内容,宁可留空。",className:"!mb-0",children:(0,a.jsx)(v.A,{mode:"tags",tokenSeparators:[",",","],placeholder:"输入后回车,例如:管道闭水试验"})})}),(0,a.jsx)(N.PZ,{title:"相关专业主题",description:"本条技能提供的专业内容主题;主题下的小标签写这一主题要覆盖的工序、条件、控制点或验收要求。",children:(0,a.jsx)(c.A.List,{name:"structure",children:(e,s)=>{let{add:l,remove:r}=s;return(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[e.map(e=>{let{key:s,name:l,...i}=e;return(0,a.jsxs)(N.jT,{onRemove:()=>r(l),columns:"md:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]",children:[(0,a.jsx)(c.A.Item,{...i,name:[l,"title"],rules:[{required:!0,message:"专业主题标题必填"}],className:"!mb-0",children:(0,a.jsx)(b.A,{placeholder:"专业主题标题"})}),(0,a.jsx)(c.A.Item,{...i,name:[l,"required"],extra:"按实际对象选用",className:"!mb-0",children:(0,a.jsx)(v.A,{mode:"tags",className:"w-full",placeholder:"工序、适用条件、控制要点或验收要求"})})]},s)}),(0,a.jsxs)(x.Ay,{type:"dashed",block:!0,icon:(0,a.jsx)(y.A,{}),onClick:()=>l({required:[]}),children:[n("common.add"),"专业主题"]})]})}})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(N.PZ,{title:"所需项目资料",description:"本条技能要求本次任务先查证的项目事实(事实键来自服务端闭集);标为必需而查不到时会被上游拦下。",children:(0,a.jsx)(c.A.List,{name:"requires",children:(e,s)=>{let{add:l,remove:r}=s;return(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[e.map(e=>{let{key:s,name:l,...i}=e;return(0,a.jsxs)(N.jT,{onRemove:()=>r(l),columns:"md:grid-cols-[minmax(0,2fr)_minmax(0,1fr)_auto]",children:[(0,a.jsx)(c.A.Item,{...i,name:[l,"key"],rules:[{required:!0,message:"事实键必填"}],className:"!mb-0",children:(0,a.jsx)(b.A,{placeholder:"事实键,如 boq.divisions"})}),(0,a.jsx)(c.A.Item,{...i,name:[l,"source"],rules:[{required:!0,message:"来源必选"}],className:"!mb-0",children:(0,a.jsx)(v.A,{options:m,placeholder:"事实来源"})}),(0,a.jsx)(c.A.Item,{...i,name:[l,"required"],valuePropName:"checked",className:"!mb-0",children:(0,a.jsx)(f.A,{checkedChildren:"必需",unCheckedChildren:"可选"})})]},s)}),(0,a.jsxs)(x.Ay,{type:"dashed",block:!0,icon:(0,a.jsx)(y.A,{}),onClick:()=>l({source:"boq",required:!1}),children:[n("common.add"),"事实需求"]})]})}})}),(0,a.jsxs)(N.PZ,{title:"文档业务提示",description:"给本次规划的建议:文档名称、本章职责与资料检索提示。实际章节职责由本次规划确定,专业主题在上面的卡片里单独填写。",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-4",children:[(0,a.jsx)(c.A.Item,{name:"outputTitle",label:"文档名称建议",extra:"提供文档名称建议,实际名称由本次生成配置确定。",children:(0,a.jsx)(b.A,{placeholder:"留空 = 本技能不对文档名称表态"})}),(0,a.jsx)(c.A.Item,{name:["chapterChecklist","purpose"],label:"章级内容提示",extra:"说明本章关注的专业内容。",children:(0,a.jsx)(b.A,{placeholder:"例如:说明本工程的安全管理目标与危大工程清单"})})]}),(0,a.jsxs)("div",{className:"mt-1 mb-3 border-t border-[var(--colorBorderSecondary)] pt-3",children:[(0,a.jsx)(I,{strong:!0,className:"text-sm",children:"章级清单"}),(0,a.jsx)(I,{type:"secondary",className:"text-xs ml-2",children:"章级候选内容与资料检索提示;实际职责由本次规划确定。"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-4",children:[(0,a.jsx)(c.A.Item,{name:["chapterChecklist","queries"],label:"资料检索词",extra:"帮助定位相关资料。",children:(0,a.jsx)(v.A,{mode:"tags",tokenSeparators:[",",","],className:"w-full",placeholder:"回车添加"})}),(0,a.jsx)(c.A.Item,{name:["chapterChecklist","requiredFacts"],label:"待核事实提示",extra:"提示应查证的项目事实。",children:(0,a.jsx)(v.A,{mode:"tags",tokenSeparators:[",",","],className:"w-full",placeholder:"回车添加"})}),(0,a.jsx)(c.A.Item,{name:["chapterChecklist","tableSections"],label:"成表内容建议",extra:"提示适合用表格表达的内容。",children:(0,a.jsx)(v.A,{mode:"tags",tokenSeparators:[",",","],className:"w-full",placeholder:"回车添加"})}),(0,a.jsx)(c.A.Item,{name:["chapterChecklist","tableRequirements"],label:"表格表达提示",extra:"提示表格列项与表达方式。",children:(0,a.jsx)(v.A,{mode:"tags",tokenSeparators:[",",","],className:"w-full",placeholder:"回车添加"})})]}),(0,a.jsx)(c.A.Item,{name:["chapterChecklist","pinnedEvidenceFilePaths"],label:"相关证据文件",extra:"填写需要关注的文件名;实际读取范围和来源资格仍由本次任务核对。",className:"!mb-0",children:(0,a.jsx)(v.A,{mode:"tags",tokenSeparators:[",",","],placeholder:"回车添加文件名"})}),(null!=(l=null==(s=i.absentCarriers)?void 0:s.length)?l:0)>0&&(0,a.jsxs)("div",{className:"mt-4 rounded-xl border border-[var(--borderColor)] bg-[var(--colorFillAlter)] px-4 py-3",children:[(0,a.jsx)("div",{className:"text-xs font-semibold mb-1",children:"不在这里配置的事项"}),(0,a.jsx)("div",{className:"text-xs text-[var(--colorTextSecondary)]",children:i.absentCarriers.map(e=>(0,a.jsxs)("div",{children:[e.label,":","formatting"===e.id?"排版要求由招标资料与导出设置管理,技能编辑器提供专业内容。":e.note]},e.id))})]})]}),(0,a.jsx)(N.PZ,{title:"可加载工艺知识",description:"选用后,这些工艺卡会作为专业参考进入本次写作;引用是否存在由保存前的校验核对。",children:(0,a.jsx)(c.A.List,{name:"knowledge",children:(e,s)=>{let{add:l,remove:r}=s;return(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[e.map(e=>{let{key:s,name:l,...i}=e;return(0,a.jsxs)(N.jT,{onRemove:()=>r(l),columns:"md:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[(0,a.jsx)(c.A.Item,{...i,name:[l,"ids"],rules:[{required:!0,type:"array",min:1,message:"请选择实际工艺卡"}],className:"!mb-0",children:(0,a.jsx)(v.A,{mode:"multiple",showSearch:!0,optionFilterProp:"label",options:h,placeholder:"按工艺卡名称搜索"})}),(0,a.jsx)(c.A.Item,{...i,name:[l,"note"],className:"!mb-0",children:(0,a.jsx)(b.A,{placeholder:"适用条件说明(可选)"})})]},s)}),(0,a.jsxs)(x.Ay,{type:"dashed",block:!0,icon:(0,a.jsx)(y.A,{}),onClick:()=>l({kind:"processCard",ids:[]}),children:[n("common.add"),"工艺知识"]})]})}})}),(0,a.jsx)(N.PZ,{title:"专业写作核对提示",description:"写清适用对象、方法和检验注意。提示供作者按具体任务选用,不构成评分、字数或参数数量要求。",children:(0,a.jsx)(c.A.List,{name:"acceptance",children:(e,s)=>{let{add:l,remove:r}=s;return(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[e.map(e=>{let{key:s,name:l,...i}=e;return(0,a.jsx)(N.jT,{onRemove:()=>r(l),columns:"md:grid-cols-[minmax(0,1fr)]",children:(0,a.jsx)(c.A.Item,{...i,name:[l,"checklistItems"],rules:[{required:!0,type:"array",min:1,message:"请输入专业注意事项"}],className:"!mb-0",children:(0,a.jsx)(v.A,{mode:"tags",className:"w-full",placeholder:"例如:保留实际检验对象、触发条件和转序要求"})})},s)}),(0,a.jsxs)(x.Ay,{type:"dashed",block:!0,icon:(0,a.jsx)(y.A,{}),onClick:()=>l({kind:"llmChecklist",checklistItems:[]}),children:[n("common.add"),"专业提示"]})]})}})})]})]}),(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(N.PZ,{title:"资料与采用边界",description:"以下边界由软件统一执行,技能不能扩大或豁免。",children:(0,a.jsx)("div",{className:"flex flex-col gap-2",children:i.isolationRules.map(e=>(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-baseline gap-1 sm:gap-2",children:[(0,a.jsx)(I,{className:"text-sm shrink-0",children:e.label}),(0,a.jsx)(I,{type:"secondary",className:"text-xs",children:e.note})]},e.id))})})})]})}var C=l(33061),S=l(35071);let{Text:q}=t.A;function F(e){let{mode:s,skillId:l}=e,{message:t}=n.A.useApp(),u=(0,i.useRouter)(),[b]=c.A.useForm(),f=(0,C.G)(),[v,y]=(0,r.useState)(!1),[k,N]=(0,r.useState)([]),I=(0,r.useMemo)(()=>"edit"===s&&l?f.skills.find(e=>e.id===l):void 0,[s,l,f.skills]),F="edit"===s&&!l,P="edit"===s&&!f.loading&&!f.failed&&!I&&void 0!==f.options,[T,R]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(T||f.loading||!f.options)return;if("create"===s){b.resetFields(),b.setFieldsValue((0,S.Ie)()),R(!0);return}if(!I)return;let e=I.promptBindings;Array.isArray(e)&&e.length>0&&t.warning("「".concat(I.id,"」里还留着 ").concat(e.length," 条已退休的提示词绑定(promptBindings):该字段已随角色配置页删除,本次保存会把它从技能里移除。")),b.resetFields(),b.setFieldsValue((0,S.m6)(I)),R(!0)},[T,f.loading,f.options,s,I,b,t]);let Z=async()=>{let e;if(!f.options)return;try{e=await b.validateFields()}catch(e){return}let s=(0,S.RW)(e,f.options.contractVersion,null==I?void 0:I.examples);y(!0),N([]);try{var l,a,r;let i=await (0,S.SS)("/api/skills/validate",{method:"POST",headers:S.eT,body:JSON.stringify(s)});if(!i.ok){t.error("校验请求失败:".concat(i.message)),N(i.issues);return}if(!i.data.ok){N(i.data.errors),t.error("校验未通过:".concat(i.data.errors.length," 处问题,请核对技能字段和工艺卡引用。"));return}let n=I?await (0,S.SS)("/api/skills/".concat(encodeURIComponent(I.id)),{method:"PUT",headers:S.eT,body:JSON.stringify(s)}):await (0,S.SS)("/api/skills",{method:"POST",headers:S.eT,body:JSON.stringify(s)});if(!n.ok){N(n.issues),t.error("保存失败:".concat(n.message));return}(null==(l=n.data.warnings)?void 0:l.length)&&t.warning("已保存,但有 ".concat(n.data.warnings.length," 条提示:").concat(n.data.warnings.map(e=>e.message).join(";"))),t.success("已保存"),await u.push("/skills/".concat(encodeURIComponent(null!=(r=null==(a=n.data.skill)?void 0:a.id)?r:e.id)))}finally{y(!1)}};return F||f.loading?(0,a.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,a.jsx)(d.A,{active:!0,title:!0,paragraph:{rows:2}}),(0,a.jsx)(d.A,{active:!0,paragraph:{rows:12}})]}):f.failed?(0,a.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,a.jsx)(A.e,{title:"create"===s?"新建技能":"编辑技能"}),(0,a.jsx)(o.A,{type:"error",showIcon:!0,message:"技能库读取失败",description:"".concat(f.failed,';这不是"技能不存在",请核对服务端状态后重试。')})]}):P?(0,a.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,a.jsx)(A.e,{title:"编辑技能"}),(0,a.jsx)(m.A,{description:"技能库里没有「".concat(l,"」这条技能(可能已被删除或改名)"),children:(0,a.jsx)(g(),{href:"/skills",children:(0,a.jsx)(x.Ay,{type:"primary",children:"返回技能库"})})})]}):f.options?(null==I?void 0:I.builtIn)?(0,a.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,a.jsx)(A.e,{title:"编辑技能 \xb7 ".concat(I.displayName),description:"内置技能随应用版本更新,不能在这里修改。",extra:(0,a.jsx)(g(),{href:"/skills/".concat(encodeURIComponent(I.id)),children:(0,a.jsx)(x.Ay,{icon:(0,a.jsx)(p.A,{}),children:"查看预览"})})}),(0,a.jsx)(o.A,{type:"info",showIcon:!0,message:"内置技能",description:S.F}),(0,a.jsx)("div",{children:(0,a.jsx)(g(),{href:"/skills/new",children:(0,a.jsx)(x.Ay,{type:"primary",children:"新建用户技能"})})})]}):(0,a.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,a.jsx)(A.e,{title:I?"编辑技能 \xb7 ".concat(I.displayName):"新建技能",description:I?"改动会在保存前做一次字段与工艺卡引用校验,通过后写入技能文件。":"技能提供专业主题、资料需求、工艺知识和写作核对提示;保存前同样会做引用校验。",extra:(0,a.jsxs)(a.Fragment,{children:[I?(0,a.jsx)(g(),{href:"/skills/".concat(encodeURIComponent(I.id)),children:(0,a.jsx)(x.Ay,{children:"放弃改动并返回预览"})}):(0,a.jsx)(g(),{href:"/skills",children:(0,a.jsx)(x.Ay,{children:"取消"})}),(0,a.jsxs)(h.A,{size:4,children:[(0,a.jsx)(q,{type:"secondary",className:"text-xs",children:"保存后自动进入预览"}),(0,a.jsx)(x.Ay,{type:"primary",icon:(0,a.jsx)(j.A,{}),loading:v,onClick:()=>{Z()},children:"保存"})]})]})}),(null==I?void 0:I.examples)&&(0,a.jsx)(o.A,{type:"info",showIcon:!0,message:"该技能带表达示例",description:"示例供理解专业表达,不能作为本项目事实;本编辑器不修改示例,保存时原样保留。"}),k.length>0&&(0,a.jsx)(o.A,{type:"error",showIcon:!0,message:"校验未通过:".concat(k.length," 处"),description:(0,a.jsx)("div",{className:"text-xs",children:k.map((e,s)=>{var l;return(0,a.jsxs)("div",{children:[(0,a.jsx)(q,{code:!0,children:e.path||"(root)"})," ",e.message]},"".concat(null!=(l=e.path)?l:"root","-").concat(s))})})}),(0,a.jsx)(w,{form:b,options:f.options,idLocked:!!I})]}):null}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[309],{9137:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>A});var n=l(9750),r=l(97109),a=l(42644),s=l(10252),o=l(74567),i=l(48921),c=l(98379),d=l(3638),u=l(632),m=l(34475),h=l(52093),g=l(60815),x=l(5741);let p=null,f=e=>e(),w=[],_={};function y(){let{getContainer:e,duration:t,rtl:l,maxCount:n,top:r,stack:a}=_,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:l,maxCount:n,top:r,stack:a}}let k=r.forwardRef((e,t)=>{let{messageConfig:l,sync:n}=e,{getPrefixCls:a}=(0,r.useContext)(o.QO),i=_.prefixCls||a("message"),c=(0,r.useContext)(s.B),[d,u]=(0,g.y)({...l,prefixCls:i,...c.message});return r.useImperativeHandle(t,()=>{let e={...d};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(n(),d[t].apply(d,e))}),{instance:e,sync:n}}),u}),v=r.forwardRef((e,t)=>{let[l,n]=r.useState(y),a=()=>{n(y)};r.useEffect(a,[]);let s=(0,i.cr)(),o=s.getRootPrefixCls(),c=s.getIconPrefixCls(),d=s.getTheme(),u=r.createElement(k,{ref:t,sync:a,messageConfig:l});return r.createElement(i.Ay,{prefixCls:o,iconPrefixCls:c,theme:d},s.holderRender?s.holderRender(u):u)}),b=()=>{if(!p){let e=document.createDocumentFragment(),t={fragment:e};p=t,f(()=>{(0,a.XX)(r.createElement(v,{ref:e=>{let{instance:l,sync:n}=e||{};Promise.resolve().then(()=>{!t.instance&&l&&(t.instance=l,t.sync=n,b())})}}),e)});return}p.instance&&(w.forEach(e=>{let{type:t,skipped:l}=e;if(!l)switch(t){case"open":f(()=>{let t=p.instance.open({..._,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case"destroy":f(()=>{p?.instance.destroy(e.key)});break;default:f(()=>{var l;let r=(l=p.instance)[t].apply(l,(0,n.A)(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),w=[])},j={open:function(e){let t=(0,x.E)(t=>{let l,n={type:"open",config:e,resolve:t,setCloseFn:e=>{l=e}};return w.push(n),()=>{l?f(()=>{l()}):n.skipped=!0}});return b(),t},destroy:e=>{w.push({type:"destroy",key:e}),b()},config:function(e){_={..._,...e},f(()=>{p?.sync?.()})},useMessage:g.A,_InternalPanelDoNotUseOrYouWillBeFired:m.Ay,_InternalListDoNotUseOrYouWillBeFired:e=>{let{items:t,classNames:l,style:n}=e,{getPrefixCls:a}=(0,o.TP)("message"),s=a("message"),i=(0,u.A)(s),[g,x]=(0,h.A)(s,i),p=`${s}-notice`,f=t.map(e=>{let{content:t,duration:l,key:n,type:r}=e,a=r?`${p}-icon-${r}`:void 0;return{key:n,duration:l,icon:(0,m.HC)(r),title:t,className:`${p}-${r}`,classNames:{wrapper:`${s}-${r}`,icon:a}}});return r.createElement(c.qb,{prefixCls:s,placement:"top",configList:f,className:(0,d.$)(g,x,i),classNames:{...l,wrapper:l?.wrapper,title:l?.title},style:n,stack:!1})}};["success","info","warning","error","loading"].forEach(e=>{j[e]=(...t)=>(function(e,t){(0,i.cr)();let l=(0,x.E)(l=>{let n,r={type:e,args:t,resolve:l,setCloseFn:e=>{n=e}};return w.push(r),()=>{n?f(()=>{n()}):r.skipped=!0}});return b(),l})(e,t)});let A=j},14569:e=>{e.exports={featureLabel:"style_featureLabel__XFSTX",featureValue:"style_featureValue__I_wMP",filterInput:"style_filterInput__4_Elu",filterSelect:"style_filterSelect__vUBJ9",statusCard:"style_statusCard__H7Mee",statusSummary:"style_statusSummary__7KavF",statusSummaryText:"style_statusSummaryText__Shw3j",statusClearBtn:"style_statusClearBtn__uJ9bE",statusExpandBtn:"style_statusExpandBtn__HhgIj",statusFilters:"style_statusFilters__g_LbG",filterPill:"style_filterPill__1pjFW",filterPillActive:"style_filterPillActive___UZVi",statusPanel:"style_statusPanel__9arTu",statusEmpty:"style_statusEmpty__8LWzH",timelineList:"style_timelineList__dqJrz",timelineItem:"style_timelineItem__dbuL_",timelineStatusIcon:"style_timelineStatusIcon__SkRwb",timelinePercent:"style_timelinePercent__pEyH4",timelineRow:"style_timelineRow__EDOVa",timelineTitle:"style_timelineTitle__Yujr8",timelineClose:"style_timelineClose__Byx_9",timelineDetail:"style_timelineDetail__nALei",timelineDesc:"style_timelineDesc__FMjWE",timelinePath:"style_timelinePath__C9VQI",timelineMeta:"style_timelineMeta__u_pCn",timelineMetaTag:"style_timelineMetaTag__G3jF1",timelineExpandArrow:"style_timelineExpandArrow__xIBdF",timelineExpandArrowOpen:"style_timelineExpandArrowOpen__TWWDC",fileNameCell:"style_fileNameCell__EHsnt",folderName:"style_folderName__VhLXP",folderRow:"style_folderRow__d7k9S",searchResultList:"style_searchResultList__cVKZg",searchResultItem:"style_searchResultItem__boj6D",searchResultHeader:"style_searchResultHeader__meVdJ",searchContent:"style_searchContent__XbUVk",pdfPreviewStrip:"style_pdfPreviewStrip__94_eG"}},37690:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge/file-detail",function(){return l(48200)}])},45551:(e,t,l)=>{"use strict";l.d(t,{Jm:()=>i,fw:()=>a,je:()=>n.j,mc:()=>c,z3:()=>r});var n=l(96538);function r(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),l=e/Math.pow(1024,t);return"".concat(l.toFixed(+(0!==t))," ").concat(["B","KB","MB","GB","TB"][t])}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";if(!e||e<=0)return"en-US"===t?"Never":"从未";let l=Math.floor(Math.floor((Date.now()-e)/1e3)/60),n=Math.floor(l/60),r=Math.floor(n/24);return r>30?new Date(e).toLocaleDateString(t):"en-US"===t?r>0?"".concat(r,"d ago"):n>0?"".concat(n,"h ago"):l>0?"".concat(l,"m ago"):"Just now":r>0?"".concat(r," 天前"):n>0?"".concat(n," 小时前"):l>0?"".concat(l," 分钟前"):"刚刚"}let s={document:"文档",spreadsheet:"表格",image:"图片",cad:"图纸",code:"代码",data:"数据",web:"网页",diagram:"图表",archive:"压缩包",other:"其他"},o={document:"Document",spreadsheet:"Spreadsheet",image:"Image",cad:"CAD",code:"Code",data:"Data",web:"Web",diagram:"Diagram",archive:"Archive",other:"Other"};function i(e){var t;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return null!=(t=("en-US"===l?o:s)[e])?t:e}let c={active:"common.statusIndexed",outdated:"common.statusOutdated",error:"common.statusAbnormal",deleted:"common.statusDeleted",disk:"common.statusNotIndexed"}},47210:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var n=l(97109),r=l(58970),a=l(88483);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(this,arguments)}let o=n.forwardRef((e,t)=>n.createElement(a.A,s({},e,{ref:t,icon:r.A})))},48200:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>S});var n=l(65321),r=l(97109),a=l(86109),s=l(48399),o=l(9137),i=l(11702),c=l(33442),d=l(88762),u=l(68787),m=l(85493),h=l(84253),g=l(85114),x=l(76506),p=l(7576),f=l(38964),w=l(47210),_=l(6578),y=l(39507),k=l(45551),v=l(14569),b=l.n(v),j=l(58690);let{Paragraph:A}=s.A;function C(e){if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}function N(e,t){let l=t.trim()?[t.trim(),...t.split(/[\s,,。;;::、]+/u)].filter(Boolean).sort((e,t)=>t.length-e.length):[];if(0===l.length)return e;let r=RegExp("(".concat(l.map(e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&")).join("|"),")"),"giu");return e.split(r).map((e,t)=>l.some(t=>t.toLowerCase()===e.toLowerCase())?(0,n.jsx)("mark",{children:e},t):e)}function S(){var e,t,l,s,v,S,I,F;let P=(0,y.Vr)(),E=(0,a.useRouter)(),M="string"==typeof E.query.relativePath?E.query.relativePath:"",T="string"==typeof E.query.projectRoot?E.query.projectRoot:void 0,[R,z]=(0,r.useState)(),[L,B]=(0,r.useState)(!1),[D,O]=(0,r.useState)(""),[J,H]=(0,r.useState)(!1),[U,V]=(0,r.useState)("");(0,r.useEffect)(()=>{M&&(B(!0),O(""),(0,_.xC)(M,T).then(z).catch(e=>{z(void 0),O(e instanceof Error?e.message:P("knowledge.fileDetailLoadFailed"))}).finally(()=>B(!1)))},[M,T,P]);let $=(0,r.useMemo)(()=>(function(e){let t=C(null==e?void 0:e.file.metadataJson);return"object"==typeof t.extraction&&t.extraction?t.extraction:t})(R),[R]),q=U.trim().toLowerCase(),K=(0,r.useMemo)(()=>{var e;return R&&q?R.chunks.filter(e=>{let t=C(e.metadataJson);return[e.content,e.sectionTitle,t.rowRange,t.chunkKind,t.parentId,JSON.stringify(t)].some(e=>String(null!=e?e:"").toLowerCase().includes(q))}):null!=(e=null==R?void 0:R.chunks)?e:[]},[R,q]),W=(0,r.useMemo)(()=>{var e;return R&&q?R.parents.filter(e=>[e.content,e.sectionTitle,e.parentId,e.metadataJson].some(e=>String(null!=e?e:"").toLowerCase().includes(q))):null!=(e=null==R?void 0:R.parents)?e:[]},[R,q]),X=async()=>{if(M){H(!0);try{let e=await (0,_.HC)(M,T);e.detail&&z(e.detail),o.Ay.success(P("knowledge.fileReindexed"))}finally{H(!1)}}},G=async e=>{M&&(await (0,_.tn)(M,e,T),o.Ay.success("file"===e?P("knowledge.openFileRequested"):P("knowledge.openDirectoryRequested")))},Q=[{title:P("knowledge.index"),key:"index",width:70,render:(e,t,l)=>l+1},{title:P("knowledge.chunkIndex"),dataIndex:"chunkIndex",width:90,render:e=>String(e)},{title:P("knowledge.chunkType"),width:110,render:(e,t)=>{var l;return(0,n.jsx)(i.A,{children:String(null!=(l=C(t.metadataJson).chunkKind)?l:t.category)})}},{title:P("knowledge.sectionOrRange"),width:220,render:(e,t)=>{let l=C(t.metadataJson),r="string"==typeof l.rowRange?l.rowRange:void 0;return(0,n.jsxs)(c.A,{wrap:!0,children:[t.sectionTitle?(0,n.jsx)(i.A,{color:"cyan",children:t.sectionTitle}):null,r?(0,n.jsxs)(i.A,{color:"gold",children:[P("knowledge.rowPrefix")," ",r]}):null]})}},{title:P("knowledge.tokens"),dataIndex:"tokenCount",width:90},{title:P("knowledge.chunkContent"),render:(e,t)=>(0,n.jsx)(A,{ellipsis:{rows:3,expandable:!0,symbol:P("knowledge.openExpand")},className:b().searchContent,children:N(t.content,U)})}],Y=[{title:P("knowledge.index"),key:"index",width:70,render:(e,t,l)=>l+1},{title:P("knowledge.parentChunkId"),dataIndex:"parentId",width:260,render:e=>(0,n.jsx)("span",{className:"break-all",children:e})},{title:P("knowledge.chunkCount"),dataIndex:"chunkCount",width:90},{title:P("knowledge.section"),dataIndex:"sectionTitle",width:220},{title:P("knowledge.chunkContent"),render:(e,t)=>(0,n.jsx)(A,{ellipsis:{rows:3,expandable:!0,symbol:P("knowledge.openExpand")},className:b().searchContent,children:N(t.content,U)})}];return L?(0,n.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,n.jsx)(d.A,{active:!0,paragraph:{rows:1}}),(0,n.jsx)(u.A,{size:"small",children:(0,n.jsx)(d.A,{active:!0,paragraph:{rows:6}})}),(0,n.jsx)(u.A,{size:"small",children:(0,n.jsx)(d.A,{active:!0,paragraph:{rows:4}})})]}):D?(0,n.jsx)(m.A,{type:"error",showIcon:!0,description:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:P("knowledge.fileDetailLoadFailed")}),(0,n.jsx)("div",{children:D})]})}):R?(0,n.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,n.jsx)("div",{className:"bg-[var(--colorBgContainer)] rounded-2xl overflow-hidden border border-[var(--borderColor)] p-6 mb-6",children:(0,n.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-6",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(g.Ay,{icon:(0,n.jsx)(w.A,{}),href:"/knowledge",type:"link",className:"p-0 mr-4 text-[var(--colorTextSecondary)] hover:text-[var(--colorText)] flex items-center h-auto",children:P("knowledge.backToFileList")}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text-2xl font-bold text-[var(--colorText)] mb-1 flex items-center gap-2",children:P("knowledge.fileDetailTitle")}),(0,n.jsx)("p",{className:"text-sm text-[var(--colorTextSecondary)] m-0",children:P("knowledge.fileDetailDesc")})]})]}),(0,n.jsxs)(c.A,{wrap:!0,className:"shrink-0",children:[(0,n.jsx)(g.Ay,{size:"small",onClick:()=>{E.push("/knowledge/source-preview?".concat(new URLSearchParams({relativePath:M,...T?{projectRoot:T}:{}})))},children:"解析核查预览"}),(0,n.jsx)(g.Ay,{size:"small",onClick:()=>{G("file")},children:P("assets.openFile")}),(0,n.jsx)(g.Ay,{size:"small",onClick:()=>{G("directory")},children:P("assets.openDirectory")}),(0,n.jsx)(g.Ay,{size:"small",type:"primary",loading:J,onClick:()=>{X()},children:P("knowledge.reindexFile")})]})]})}),(null==(e=R.parseAttempt)?void 0:e.status)==="error"&&(0,n.jsx)(m.A,{showIcon:!0,type:"error",message:P("knowledge.latestParseFailed"),description:"".concat(null!=(l=R.parseAttempt.error)?l:"").concat(R.parseAttempt.recordRetained?";".concat(P("knowledge.previousParseRetained")):"")}),(null==(t=R.parseAttempt)?void 0:t.status)==="parsing"&&(0,n.jsx)(m.A,{showIcon:!0,type:"info",message:P("knowledge.currentParseInProgress")}),(0,n.jsx)(u.A,{size:"small",className:"rounded-2xl border-[var(--borderColor)]",title:(0,n.jsx)("span",{className:"font-semibold",children:P("knowledge.basicInfo")}),children:(0,n.jsxs)(x.A,{size:"small",column:{xxl:3,xl:2,lg:2,md:1,sm:1,xs:1},bordered:!0,styles:{label:{width:"120px",background:"var(--colorFillAlter)",color:"var(--colorTextSecondary)"}},children:[(0,n.jsx)(x.A.Item,{label:P("knowledge.path"),span:3,children:(0,n.jsx)("span",{className:"break-all",children:R.file.relativePath})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.originalFile"),span:3,children:(0,n.jsx)("span",{className:"break-all",children:null!=(s=R.absolutePath)?s:"-"})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.directory"),span:3,children:(0,n.jsx)("span",{className:"break-all",children:null!=(v=R.directory)?v:"-"})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.fileCategory"),children:(0,n.jsxs)(c.A,{size:4,children:[(0,n.jsx)(i.A,{className:"m-0 border-0 bg-[var(--colorFillSecondary)]",children:(0,k.Jm)(R.file.category)})," ",(0,n.jsx)(i.A,{className:"m-0 border-0 bg-[var(--colorFillSecondary)]",children:R.file.format})]})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.fileSize"),children:(0,k.z3)(R.file.fileSize)}),(0,n.jsx)(x.A.Item,{label:P("knowledge.chunkCount"),children:R.file.chunkCount}),(0,n.jsx)(x.A.Item,{label:P("knowledge.status"),children:(0,n.jsx)(i.A,{color:"active"===R.file.status?"success":"error"===R.file.status?"error":"outdated"===R.file.status?"warning":"disk"===R.file.status||"deleted"===R.file.status?"default":"processing",className:"m-0",children:P(k.mc[R.file.status]||"common.unknown")})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.extractionMode"),children:String(null!=(S=$.extractionMode)?S:"-")}),(0,n.jsx)(x.A.Item,{label:P("knowledge.contentCoverage"),children:String(null!=(I=$.contentCoverage)?I:"-")}),(0,n.jsx)(x.A.Item,{label:P("knowledge.textLength"),children:String(null!=(F=$.textLength)?F:"-")})]})}),(0,n.jsx)(u.A,{size:"small",className:"rounded-2xl border-[var(--borderColor)]",title:(0,n.jsx)("span",{className:"font-semibold",children:P("knowledge.detailFilter")}),children:(0,n.jsxs)("div",{className:"flex flex-col w-full gap-4",children:[(0,n.jsx)(p.A,{allowClear:!0,size:"large",value:U,onChange:e=>V(e.target.value),placeholder:P("knowledge.detailFilterPlaceholder"),className:"rounded-xl bg-[var(--colorBgHover)] border-[var(--borderColor)] focus:bg-[var(--colorBgContainer)] hover:bg-[var(--colorBgContainer)] w-full"}),U?(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 items-center bg-[var(--colorFillAlter)] p-3 rounded-xl border border-[var(--colorBorderSecondary)]",children:[(0,n.jsx)("span",{className:"text-sm font-medium text-[var(--colorTextSecondary)] mr-2",children:"过滤结果:"}),(0,n.jsxs)(i.A,{color:"blue",className:"m-0 border-0",children:[P("knowledge.parentMatches")," ",W.length]}),(0,n.jsxs)(i.A,{color:"green",className:"m-0 border-0",children:[P("knowledge.childMatches")," ",K.length]}),(0,n.jsx)("div",{className:"w-[1px] h-3 bg-[var(--colorBorderSecondary)] mx-1"}),(0,n.jsxs)("span",{className:"text-xs text-[var(--colorTextTertiary)]",children:[P("knowledge.filterTerm")," ",(0,n.jsx)("strong",{className:"text-[var(--colorText)]",children:U})]})]}):null]})}),(0,n.jsxs)(u.A,{size:"small",className:"rounded-2xl border-[var(--borderColor)]",title:(0,n.jsxs)("span",{className:"font-semibold",children:[P("knowledge.parentChunks")," ",(0,n.jsxs)(i.A,{className:"ml-2 border-0 bg-[var(--colorFillSecondary)] text-xs font-normal",children:[W.length," / ",R.parents.length]})]}),children:[(0,n.jsx)(m.A,{type:"info",showIcon:!0,description:P("knowledge.parentChunkHint"),className:"mb-4 rounded-xl border-blue-200 bg-blue-50/50"}),(0,n.jsx)(f.A,{rowKey:"id",columns:Y,dataSource:W,pagination:(0,j.B)(P),size:"small",className:"custom-table"})]}),(0,n.jsx)(u.A,{size:"small",className:"rounded-2xl border-[var(--borderColor)]",title:(0,n.jsxs)("span",{className:"font-semibold",children:[P("knowledge.childChunks")," ",(0,n.jsxs)(i.A,{className:"ml-2 border-0 bg-[var(--colorFillSecondary)] text-xs font-normal",children:[K.length," / ",R.chunks.length]})]}),children:(0,n.jsx)(f.A,{rowKey:"id",columns:Q,dataSource:K,pagination:(0,j.B)(P),size:"small",className:"custom-table"})})]}):(0,n.jsx)(h.A,{description:P("knowledge.selectFile")})}},58690:(e,t,l)=>{"use strict";function n(e){var t,l,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{defaultPageSize:null!=(t=r.pageSize)?t:10,pageSizeOptions:null!=(l=r.pageSizeOptions)?l:[10,20,50,100],showSizeChanger:!0,showTotal:t=>{var l,n;return e(null!=(l=r.totalLabelKey)?l:"common.totalRows",null!=(n=r.totalLabelFallback)?n:"共 {count} 条").replace("{count}",String(t))},hideOnSinglePage:null!=(n=r.hideOnSinglePage)&&n,showQuickJumper:!1}}l.d(t,{B:()=>n})},58970:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"}},96538:(e,t,l)=>{"use strict";l.d(t,{a:()=>r,j:()=>a});let n={coarse:function(e,t){let l=Math.floor(e/1e3),n=Math.floor(l/86400),r=Math.floor(l%86400/3600),a=Math.floor(l%3600/60),s="en-US"===t;return n>0?s?"".concat(n,"d ").concat(r,"h"):"".concat(n," 天 ").concat(r," 小时"):r>0?s?"".concat(r,"h ").concat(a,"m"):"".concat(r," 小时 ").concat(a," 分"):a>0?s?"".concat(a,"m"):"".concat(a," 分"):s?"Just now":"刚刚"},fine:function(e){let t=Math.round(e/1e3);if(t<60)return"".concat(t," 秒");let l=Math.floor(t/60);return l<60?"".concat(l," 分 ").concat(t%60," 秒"):"".concat(Math.floor(l/60)," 小时 ").concat(l%60," 分")},"fine-decimal":function(e){return e>=6e4?"".concat(Math.floor(e/6e4)," 分 ").concat(Math.round(e%6e4/1e3)," 秒"):"".concat((e/1e3).toFixed(1)," 秒")},metric:function(e){return e<1e3?"".concat(Math.round(e),"ms"):e<6e4?"".concat((e/1e3).toFixed(1),"s"):"".concat((e/6e4).toFixed(1),"min")}};function r(e,t){var l;return n[t.style](function(e,t){let l="s"===t?1e3*e:e;return Number.isFinite(l)&&l>0?l:0}(e,t.unit),null!=(l=t.locale)?l:"zh-CN")}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return r(e,{unit:"s",style:"coarse",locale:t})}}},e=>{e.O(0,[324,280,665,576,569,499,787,338,964,808,636,593,792],()=>e(e.s=37690)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[309],{9137:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>A});var n=l(9750),r=l(97109),a=l(42644),s=l(10252),o=l(74567),i=l(48921),c=l(98379),d=l(3638),u=l(632),m=l(34475),h=l(52093),g=l(60815),x=l(5741);let p=null,f=e=>e(),w=[],_={};function y(){let{getContainer:e,duration:t,rtl:l,maxCount:n,top:r,stack:a}=_,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:l,maxCount:n,top:r,stack:a}}let k=r.forwardRef((e,t)=>{let{messageConfig:l,sync:n}=e,{getPrefixCls:a}=(0,r.useContext)(o.QO),i=_.prefixCls||a("message"),c=(0,r.useContext)(s.B),[d,u]=(0,g.y)({...l,prefixCls:i,...c.message});return r.useImperativeHandle(t,()=>{let e={...d};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(n(),d[t].apply(d,e))}),{instance:e,sync:n}}),u}),v=r.forwardRef((e,t)=>{let[l,n]=r.useState(y),a=()=>{n(y)};r.useEffect(a,[]);let s=(0,i.cr)(),o=s.getRootPrefixCls(),c=s.getIconPrefixCls(),d=s.getTheme(),u=r.createElement(k,{ref:t,sync:a,messageConfig:l});return r.createElement(i.Ay,{prefixCls:o,iconPrefixCls:c,theme:d},s.holderRender?s.holderRender(u):u)}),b=()=>{if(!p){let e=document.createDocumentFragment(),t={fragment:e};p=t,f(()=>{(0,a.XX)(r.createElement(v,{ref:e=>{let{instance:l,sync:n}=e||{};Promise.resolve().then(()=>{!t.instance&&l&&(t.instance=l,t.sync=n,b())})}}),e)});return}p.instance&&(w.forEach(e=>{let{type:t,skipped:l}=e;if(!l)switch(t){case"open":f(()=>{let t=p.instance.open({..._,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case"destroy":f(()=>{p?.instance.destroy(e.key)});break;default:f(()=>{var l;let r=(l=p.instance)[t].apply(l,(0,n.A)(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),w=[])},j={open:function(e){let t=(0,x.E)(t=>{let l,n={type:"open",config:e,resolve:t,setCloseFn:e=>{l=e}};return w.push(n),()=>{l?f(()=>{l()}):n.skipped=!0}});return b(),t},destroy:e=>{w.push({type:"destroy",key:e}),b()},config:function(e){_={..._,...e},f(()=>{p?.sync?.()})},useMessage:g.A,_InternalPanelDoNotUseOrYouWillBeFired:m.Ay,_InternalListDoNotUseOrYouWillBeFired:e=>{let{items:t,classNames:l,style:n}=e,{getPrefixCls:a}=(0,o.TP)("message"),s=a("message"),i=(0,u.A)(s),[g,x]=(0,h.A)(s,i),p=`${s}-notice`,f=t.map(e=>{let{content:t,duration:l,key:n,type:r}=e,a=r?`${p}-icon-${r}`:void 0;return{key:n,duration:l,icon:(0,m.HC)(r),title:t,className:`${p}-${r}`,classNames:{wrapper:`${s}-${r}`,icon:a}}});return r.createElement(c.qb,{prefixCls:s,placement:"top",configList:f,className:(0,d.$)(g,x,i),classNames:{...l,wrapper:l?.wrapper,title:l?.title},style:n,stack:!1})}};["success","info","warning","error","loading"].forEach(e=>{j[e]=(...t)=>(function(e,t){(0,i.cr)();let l=(0,x.E)(l=>{let n,r={type:e,args:t,resolve:l,setCloseFn:e=>{n=e}};return w.push(r),()=>{n?f(()=>{n()}):r.skipped=!0}});return b(),l})(e,t)});let A=j},14569:e=>{e.exports={featureLabel:"style_featureLabel__XFSTX",featureValue:"style_featureValue__I_wMP",filterInput:"style_filterInput__4_Elu",filterSelect:"style_filterSelect__vUBJ9",statusCard:"style_statusCard__H7Mee",statusSummary:"style_statusSummary__7KavF",statusSummaryText:"style_statusSummaryText__Shw3j",statusClearBtn:"style_statusClearBtn__uJ9bE",statusExpandBtn:"style_statusExpandBtn__HhgIj",statusFilters:"style_statusFilters__g_LbG",filterPill:"style_filterPill__1pjFW",filterPillActive:"style_filterPillActive___UZVi",statusPanel:"style_statusPanel__9arTu",statusEmpty:"style_statusEmpty__8LWzH",timelineList:"style_timelineList__dqJrz",timelineItem:"style_timelineItem__dbuL_",timelineStatusIcon:"style_timelineStatusIcon__SkRwb",timelinePercent:"style_timelinePercent__pEyH4",timelineRow:"style_timelineRow__EDOVa",timelineTitle:"style_timelineTitle__Yujr8",timelineClose:"style_timelineClose__Byx_9",timelineDetail:"style_timelineDetail__nALei",timelineDesc:"style_timelineDesc__FMjWE",timelinePath:"style_timelinePath__C9VQI",timelineMeta:"style_timelineMeta__u_pCn",timelineMetaTag:"style_timelineMetaTag__G3jF1",timelineExpandArrow:"style_timelineExpandArrow__xIBdF",timelineExpandArrowOpen:"style_timelineExpandArrowOpen__TWWDC",fileNameCell:"style_fileNameCell__EHsnt",folderName:"style_folderName__VhLXP",folderRow:"style_folderRow__d7k9S",searchResultList:"style_searchResultList__cVKZg",searchResultItem:"style_searchResultItem__boj6D",searchResultHeader:"style_searchResultHeader__meVdJ",searchContent:"style_searchContent__XbUVk",pdfPreviewStrip:"style_pdfPreviewStrip__94_eG"}},37690:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge/file-detail",function(){return l(48200)}])},45551:(e,t,l)=>{"use strict";l.d(t,{Jm:()=>i,fw:()=>a,je:()=>n.j,mc:()=>c,z3:()=>r});var n=l(96538);function r(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),l=e/Math.pow(1024,t);return"".concat(l.toFixed(+(0!==t))," ").concat(["B","KB","MB","GB","TB"][t])}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";if(!e||e<=0)return"en-US"===t?"Never":"从未";let l=Math.floor(Math.floor((Date.now()-e)/1e3)/60),n=Math.floor(l/60),r=Math.floor(n/24);return r>30?new Date(e).toLocaleDateString(t):"en-US"===t?r>0?"".concat(r,"d ago"):n>0?"".concat(n,"h ago"):l>0?"".concat(l,"m ago"):"Just now":r>0?"".concat(r," 天前"):n>0?"".concat(n," 小时前"):l>0?"".concat(l," 分钟前"):"刚刚"}let s={document:"文档",spreadsheet:"表格",image:"图片",cad:"图纸",code:"代码",data:"数据",web:"网页",diagram:"图表",archive:"压缩包",other:"其他"},o={document:"Document",spreadsheet:"Spreadsheet",image:"Image",cad:"CAD",code:"Code",data:"Data",web:"Web",diagram:"Diagram",archive:"Archive",other:"Other"};function i(e){var t;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return null!=(t=("en-US"===l?o:s)[e])?t:e}let c={active:"common.statusIndexed",outdated:"common.statusOutdated",error:"common.statusAbnormal",deleted:"common.statusDeleted",disk:"common.statusNotIndexed"}},47210:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var n=l(97109),r=l(58970),a=l(88483);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(this,arguments)}let o=n.forwardRef((e,t)=>n.createElement(a.A,s({},e,{ref:t,icon:r.A})))},48200:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>S});var n=l(65321),r=l(97109),a=l(86109),s=l(48399),o=l(9137),i=l(11702),c=l(33442),d=l(88762),u=l(68787),m=l(85493),h=l(84253),g=l(85114),x=l(76506),p=l(7576),f=l(38964),w=l(47210),_=l(6578),y=l(39507),k=l(45551),v=l(14569),b=l.n(v),j=l(58690);let{Paragraph:A}=s.A;function C(e){if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}function N(e,t){let l=t.trim()?[t.trim(),...t.split(/[\s,,。;;::、]+/u)].filter(Boolean).sort((e,t)=>t.length-e.length):[];if(0===l.length)return e;let r=RegExp("(".concat(l.map(e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&")).join("|"),")"),"giu");return e.split(r).map((e,t)=>l.some(t=>t.toLowerCase()===e.toLowerCase())?(0,n.jsx)("mark",{children:e},t):e)}function S(){var e,t,l,s,v,S,I,F;let P=(0,y.Vr)(),E=(0,a.useRouter)(),M="string"==typeof E.query.relativePath?E.query.relativePath:"",T="string"==typeof E.query.projectRoot?E.query.projectRoot:void 0,[R,L]=(0,r.useState)(),[z,B]=(0,r.useState)(!1),[D,O]=(0,r.useState)(""),[J,H]=(0,r.useState)(!1),[U,V]=(0,r.useState)("");(0,r.useEffect)(()=>{M&&(B(!0),O(""),(0,_.xC)(M,T).then(L).catch(e=>{L(void 0),O(e instanceof Error?e.message:P("knowledge.fileDetailLoadFailed"))}).finally(()=>B(!1)))},[M,T,P]);let $=(0,r.useMemo)(()=>(function(e){let t=C(null==e?void 0:e.file.metadataJson);return"object"==typeof t.extraction&&t.extraction?t.extraction:t})(R),[R]),q=U.trim().toLowerCase(),K=(0,r.useMemo)(()=>{var e;return R&&q?R.chunks.filter(e=>{let t=C(e.metadataJson);return[e.content,e.sectionTitle,t.rowRange,t.chunkKind,t.parentId,JSON.stringify(t)].some(e=>String(null!=e?e:"").toLowerCase().includes(q))}):null!=(e=null==R?void 0:R.chunks)?e:[]},[R,q]),W=(0,r.useMemo)(()=>{var e;return R&&q?R.parents.filter(e=>[e.content,e.sectionTitle,e.parentId,e.metadataJson].some(e=>String(null!=e?e:"").toLowerCase().includes(q))):null!=(e=null==R?void 0:R.parents)?e:[]},[R,q]),X=async()=>{if(M){H(!0);try{let e=await (0,_.HC)(M,T);e.detail&&L(e.detail),o.Ay.success(P("knowledge.fileReindexed"))}finally{H(!1)}}},G=async e=>{M&&(await (0,_.tn)(M,e,T),o.Ay.success("file"===e?P("knowledge.openFileRequested"):P("knowledge.openDirectoryRequested")))},Q=[{title:P("knowledge.index"),key:"index",width:70,render:(e,t,l)=>l+1},{title:P("knowledge.chunkIndex"),dataIndex:"chunkIndex",width:90,render:e=>String(e)},{title:P("knowledge.chunkType"),width:110,render:(e,t)=>{var l;return(0,n.jsx)(i.A,{children:String(null!=(l=C(t.metadataJson).chunkKind)?l:t.category)})}},{title:P("knowledge.sectionOrRange"),width:220,render:(e,t)=>{let l=C(t.metadataJson),r="string"==typeof l.rowRange?l.rowRange:void 0;return(0,n.jsxs)(c.A,{wrap:!0,children:[t.sectionTitle?(0,n.jsx)(i.A,{color:"cyan",children:t.sectionTitle}):null,r?(0,n.jsxs)(i.A,{color:"gold",children:[P("knowledge.rowPrefix")," ",r]}):null]})}},{title:P("knowledge.tokens"),dataIndex:"tokenCount",width:90},{title:P("knowledge.chunkContent"),render:(e,t)=>(0,n.jsx)(A,{ellipsis:{rows:3,expandable:!0,symbol:P("knowledge.openExpand")},className:b().searchContent,children:N(t.content,U)})}],Y=[{title:P("knowledge.index"),key:"index",width:70,render:(e,t,l)=>l+1},{title:P("knowledge.parentChunkId"),dataIndex:"parentId",width:260,render:e=>(0,n.jsx)("span",{className:"break-all",children:e})},{title:P("knowledge.chunkCount"),dataIndex:"chunkCount",width:90},{title:P("knowledge.section"),dataIndex:"sectionTitle",width:220},{title:P("knowledge.chunkContent"),render:(e,t)=>(0,n.jsx)(A,{ellipsis:{rows:3,expandable:!0,symbol:P("knowledge.openExpand")},className:b().searchContent,children:N(t.content,U)})}];return z?(0,n.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,n.jsx)(d.A,{active:!0,paragraph:{rows:1}}),(0,n.jsx)(u.A,{size:"small",children:(0,n.jsx)(d.A,{active:!0,paragraph:{rows:6}})}),(0,n.jsx)(u.A,{size:"small",children:(0,n.jsx)(d.A,{active:!0,paragraph:{rows:4}})})]}):D?(0,n.jsx)(m.A,{type:"error",showIcon:!0,description:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:P("knowledge.fileDetailLoadFailed")}),(0,n.jsx)("div",{children:D})]})}):R?(0,n.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,n.jsx)("div",{className:"bg-[var(--colorBgContainer)] rounded-2xl overflow-hidden border border-[var(--borderColor)] p-6 mb-6",children:(0,n.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-6",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(g.Ay,{icon:(0,n.jsx)(w.A,{}),href:"/knowledge",type:"link",className:"p-0 mr-4 text-[var(--colorTextSecondary)] hover:text-[var(--colorText)] flex items-center h-auto",children:P("knowledge.backToFileList")}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text-2xl font-bold text-[var(--colorText)] mb-1 flex items-center gap-2",children:P("knowledge.fileDetailTitle")}),(0,n.jsx)("p",{className:"text-sm text-[var(--colorTextSecondary)] m-0",children:P("knowledge.fileDetailDesc")})]})]}),(0,n.jsxs)(c.A,{wrap:!0,className:"shrink-0",children:[(0,n.jsx)(g.Ay,{size:"small",onClick:()=>{E.push("/knowledge/source-preview?".concat(new URLSearchParams({relativePath:M,...T?{projectRoot:T}:{}})))},children:"解析核查预览"}),(0,n.jsx)(g.Ay,{size:"small",onClick:()=>{G("file")},children:P("assets.openFile")}),(0,n.jsx)(g.Ay,{size:"small",onClick:()=>{G("directory")},children:P("assets.openDirectory")}),(0,n.jsx)(g.Ay,{size:"small",type:"primary",loading:J,onClick:()=>{X()},children:P("knowledge.reindexFile")})]})]})}),(null==(e=R.parseAttempt)?void 0:e.status)==="error"&&(0,n.jsx)(m.A,{showIcon:!0,type:"error",message:P("knowledge.latestParseFailed"),description:"".concat(null!=(l=R.parseAttempt.error)?l:"").concat(R.parseAttempt.recordRetained?";".concat(P("knowledge.previousParseRetained")):"")}),(null==(t=R.parseAttempt)?void 0:t.status)==="parsing"&&(0,n.jsx)(m.A,{showIcon:!0,type:"info",message:P("knowledge.currentParseInProgress")}),(0,n.jsx)(u.A,{className:"rounded-2xl border-[var(--borderColor)]",title:(0,n.jsx)("span",{className:"font-semibold",children:P("knowledge.basicInfo")}),children:(0,n.jsxs)(x.A,{size:"small",column:{xxl:3,xl:2,lg:2,md:1,sm:1,xs:1},bordered:!0,styles:{label:{width:"120px",background:"var(--colorFillAlter)",color:"var(--colorTextSecondary)"}},children:[(0,n.jsx)(x.A.Item,{label:P("knowledge.path"),span:3,children:(0,n.jsx)("span",{className:"break-all",children:R.file.relativePath})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.originalFile"),span:3,children:(0,n.jsx)("span",{className:"break-all",children:null!=(s=R.absolutePath)?s:"-"})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.directory"),span:3,children:(0,n.jsx)("span",{className:"break-all",children:null!=(v=R.directory)?v:"-"})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.fileCategory"),children:(0,n.jsxs)(c.A,{size:4,children:[(0,n.jsx)(i.A,{className:"m-0 border-0 bg-[var(--colorFillSecondary)]",children:(0,k.Jm)(R.file.category)})," ",(0,n.jsx)(i.A,{className:"m-0 border-0 bg-[var(--colorFillSecondary)]",children:R.file.format})]})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.fileSize"),children:(0,k.z3)(R.file.fileSize)}),(0,n.jsx)(x.A.Item,{label:P("knowledge.chunkCount"),children:R.file.chunkCount}),(0,n.jsx)(x.A.Item,{label:P("knowledge.status"),children:(0,n.jsx)(i.A,{color:"active"===R.file.status?"success":"error"===R.file.status?"error":"outdated"===R.file.status?"warning":"disk"===R.file.status||"deleted"===R.file.status?"default":"processing",className:"m-0",children:P(k.mc[R.file.status]||"common.unknown")})}),(0,n.jsx)(x.A.Item,{label:P("knowledge.extractionMode"),children:String(null!=(S=$.extractionMode)?S:"-")}),(0,n.jsx)(x.A.Item,{label:P("knowledge.contentCoverage"),children:String(null!=(I=$.contentCoverage)?I:"-")}),(0,n.jsx)(x.A.Item,{label:P("knowledge.textLength"),children:String(null!=(F=$.textLength)?F:"-")})]})}),(0,n.jsx)(u.A,{className:"rounded-2xl border-[var(--borderColor)]",title:(0,n.jsx)("span",{className:"font-semibold",children:P("knowledge.detailFilter")}),children:(0,n.jsxs)("div",{className:"flex flex-col w-full gap-4",children:[(0,n.jsx)(p.A,{allowClear:!0,size:"large",value:U,onChange:e=>V(e.target.value),placeholder:P("knowledge.detailFilterPlaceholder"),className:"rounded-xl bg-[var(--colorBgHover)] border-[var(--borderColor)] focus:bg-[var(--colorBgContainer)] hover:bg-[var(--colorBgContainer)] w-full"}),U?(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 items-center bg-[var(--colorFillAlter)] p-3 rounded-xl border border-[var(--colorBorderSecondary)]",children:[(0,n.jsx)("span",{className:"text-sm font-medium text-[var(--colorTextSecondary)] mr-2",children:"过滤结果:"}),(0,n.jsxs)(i.A,{color:"blue",className:"m-0 border-0",children:[P("knowledge.parentMatches")," ",W.length]}),(0,n.jsxs)(i.A,{color:"green",className:"m-0 border-0",children:[P("knowledge.childMatches")," ",K.length]}),(0,n.jsx)("div",{className:"w-[1px] h-3 bg-[var(--colorBorderSecondary)] mx-1"}),(0,n.jsxs)("span",{className:"text-xs text-[var(--colorTextTertiary)]",children:[P("knowledge.filterTerm")," ",(0,n.jsx)("strong",{className:"text-[var(--colorText)]",children:U})]})]}):null]})}),(0,n.jsxs)(u.A,{className:"rounded-2xl border-[var(--borderColor)]",title:(0,n.jsxs)("span",{className:"font-semibold",children:[P("knowledge.parentChunks")," ",(0,n.jsxs)(i.A,{className:"ml-2 border-0 bg-[var(--colorFillSecondary)] text-xs font-normal",children:[W.length," / ",R.parents.length]})]}),children:[(0,n.jsx)(m.A,{type:"info",showIcon:!0,description:P("knowledge.parentChunkHint"),className:"mb-4 rounded-xl border-blue-200 bg-blue-50/50"}),(0,n.jsx)(f.A,{rowKey:"id",columns:Y,dataSource:W,pagination:(0,j.B)(P),size:"small",className:"custom-table"})]}),(0,n.jsx)(u.A,{className:"rounded-2xl border-[var(--borderColor)]",title:(0,n.jsxs)("span",{className:"font-semibold",children:[P("knowledge.childChunks")," ",(0,n.jsxs)(i.A,{className:"ml-2 border-0 bg-[var(--colorFillSecondary)] text-xs font-normal",children:[K.length," / ",R.chunks.length]})]}),children:(0,n.jsx)(f.A,{rowKey:"id",columns:Q,dataSource:K,pagination:(0,j.B)(P),size:"small",className:"custom-table"})})]}):(0,n.jsx)(h.A,{description:P("knowledge.selectFile")})}},58690:(e,t,l)=>{"use strict";function n(e){var t,l,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{defaultPageSize:null!=(t=r.pageSize)?t:10,pageSizeOptions:null!=(l=r.pageSizeOptions)?l:[10,20,50,100],showSizeChanger:!0,showTotal:t=>{var l,n;return e(null!=(l=r.totalLabelKey)?l:"common.totalRows",null!=(n=r.totalLabelFallback)?n:"共 {count} 条").replace("{count}",String(t))},hideOnSinglePage:null!=(n=r.hideOnSinglePage)&&n,showQuickJumper:!1}}l.d(t,{B:()=>n})},58970:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"}},96538:(e,t,l)=>{"use strict";l.d(t,{a:()=>r,j:()=>a});let n={coarse:function(e,t){let l=Math.floor(e/1e3),n=Math.floor(l/86400),r=Math.floor(l%86400/3600),a=Math.floor(l%3600/60),s="en-US"===t;return n>0?s?"".concat(n,"d ").concat(r,"h"):"".concat(n," 天 ").concat(r," 小时"):r>0?s?"".concat(r,"h ").concat(a,"m"):"".concat(r," 小时 ").concat(a," 分"):a>0?s?"".concat(a,"m"):"".concat(a," 分"):s?"Just now":"刚刚"},fine:function(e){let t=Math.round(e/1e3);if(t<60)return"".concat(t," 秒");let l=Math.floor(t/60);return l<60?"".concat(l," 分 ").concat(t%60," 秒"):"".concat(Math.floor(l/60)," 小时 ").concat(l%60," 分")},"fine-decimal":function(e){return e>=6e4?"".concat(Math.floor(e/6e4)," 分 ").concat(Math.round(e%6e4/1e3)," 秒"):"".concat((e/1e3).toFixed(1)," 秒")},metric:function(e){return e<1e3?"".concat(Math.round(e),"ms"):e<6e4?"".concat((e/1e3).toFixed(1),"s"):"".concat((e/6e4).toFixed(1),"min")}};function r(e,t){var l;return n[t.style](function(e,t){let l="s"===t?1e3*e:e;return Number.isFinite(l)&&l>0?l:0}(e,t.unit),null!=(l=t.locale)?l:"zh-CN")}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return r(e,{unit:"s",style:"coarse",locale:t})}}},e=>{e.O(0,[324,280,665,576,569,499,787,338,964,808,636,593,792],()=>e(e.s=37690)),_N_E=e.O()}]);
|