@customize-agent/server 4.60.4 → 4.60.5

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.
Files changed (51) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +12 -12
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/required-server-files.json +1 -1
  5. package/.next/server/chunks/1243.js +1 -1
  6. package/.next/server/chunks/2328.js +1 -1
  7. package/.next/server/chunks/6822.js +1 -1
  8. package/.next/server/chunks/{4683.js → 7848.js} +66 -66
  9. package/.next/server/chunks/9399.js +1 -1
  10. package/.next/server/chunks/9666.js +17 -17
  11. package/.next/server/instrumentation.js +1 -1
  12. package/.next/server/instrumentation.js.nft.json +1 -1
  13. package/.next/server/middleware-build-manifest.js +1 -1
  14. package/.next/server/pages/404.html +1 -1
  15. package/.next/server/pages/500.html +1 -1
  16. package/.next/server/pages/api/health.js +1 -1
  17. package/.next/server/pages/canvas/[id].html +1 -1
  18. package/.next/server/pages/canvas.html +1 -1
  19. package/.next/server/pages/documents.html +1 -1
  20. package/.next/server/pages/guide.html +1 -1
  21. package/.next/server/pages/index.html +1 -1
  22. package/.next/server/pages/knowledge/file-detail.html +1 -1
  23. package/.next/server/pages/knowledge/files.html +1 -1
  24. package/.next/server/pages/knowledge/manage.html +1 -1
  25. package/.next/server/pages/knowledge/source-preview.html +1 -1
  26. package/.next/server/pages/knowledge.html +1 -1
  27. package/.next/server/pages/models.html +1 -1
  28. package/.next/server/pages/overview.html +1 -1
  29. package/.next/server/pages/prompt.html +1 -1
  30. package/.next/server/pages/settings.html +1 -1
  31. package/.next/server/pages/skills/[id]/edit.html +1 -1
  32. package/.next/server/pages/skills/[id].html +1 -1
  33. package/.next/server/pages/skills/new.html +1 -1
  34. package/.next/server/pages/skills.html +1 -1
  35. package/.next/server/pages/system/logs.html +1 -1
  36. package/.next/server/pages-manifest.json +34 -34
  37. package/.next/static/{77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539 → bcd9506c939180bc91621d6b3be7ff59672127f893afe452d0b04ec42a25b8a7}/_buildManifest.js +1 -1
  38. package/.next/static/chunks/2-434e34e83819f4e4.js +1 -0
  39. package/.next/static/chunks/257-6938c7ab284ab21c.js +1 -0
  40. package/.next/static/chunks/pages/knowledge/{file-detail-4ccc50ced6382dab.js → file-detail-dc1807f8ed32cd59.js} +1 -1
  41. package/.next/static/chunks/pages/knowledge/source-preview-4309277bf497521c.js +1 -0
  42. package/.next/static/chunks/pages/{prompt-f00bf2272142bfa1.js → prompt-d75de6a6fead73c9.js} +1 -1
  43. package/.next/static/chunks/pages/skills/[id]-5130d68546be49cb.js +1 -0
  44. package/.next/static/css/f4f2d386cfeae8e4.css +1 -0
  45. package/package.json +1 -1
  46. package/.next/static/chunks/2-8570cd2beee4da6e.js +0 -1
  47. package/.next/static/chunks/257-3ea888b096943bc8.js +0 -1
  48. package/.next/static/chunks/pages/knowledge/source-preview-56ce59763fa015db.js +0 -1
  49. package/.next/static/chunks/pages/skills/[id]-101d753aa8fbf7a9.js +0 -1
  50. package/.next/static/css/39e9d8f998ce517b.css +0 -1
  51. /package/.next/static/{77a0c591cb44f2d0fda8be7c18cd915e32ecb5272d201914c0e332124a63d539 → bcd9506c939180bc91621d6b3be7ff59672127f893afe452d0b04ec42a25b8a7}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";exports.id=9399,exports.ids=[9399],exports.modules={8160:(a,b,c)=>{c.d(b,{e:()=>h});var d=c(8732),e=c(9328),f=c.n(e),g=c(79270);function h({title:a,description:b,extra:c}){return(0,d.jsx)("div",{className:"skillStickyHeader",children:(0,d.jsx)("div",{className:"bg-[var(--colorBgContainer)] rounded-2xl border border-[var(--borderColor)] px-5 py-4",children:(0,d.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center min-w-0",children:[(0,d.jsxs)(f(),{href:"/skills",className:"mr-4 text-sm text-[var(--colorTextSecondary)] hover:text-[var(--colorText)] inline-flex items-center gap-1 shrink-0",children:[(0,d.jsx)(g.ArrowLeftOutlined,{})," 返回技能库"]}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h1",{className:"text-xl font-bold text-[var(--colorText)] mb-0.5 truncate",children:a}),b?(0,d.jsx)("p",{className:"text-xs text-[var(--colorTextSecondary)] m-0 truncate",children:b}):null]})]}),c?(0,d.jsx)("div",{className:"shrink-0 flex items-center gap-2",children:c}):null]})})})}},22488:(a,b,c)=>{c.d(b,{F:()=>f,Ie:()=>j,Oz:()=>h,RW:()=>m,SS:()=>e,eT:()=>d,m6:()=>i});let d={"Content-Type":"application/json"};async function e(a,b){try{let c,d=await fetch(a,b),e=await d.text();try{c=e?JSON.parse(e):void 0}catch{c=void 0}if(!d.ok){let a=c??{};return{ok:!1,status:d.status,message:a.error??`HTTP ${d.status}`,issues:Array.isArray(a.errors)?a.errors:[]}}return{ok:!0,data:c}}catch(a){return{ok:!1,status:0,message:a instanceof Error?a.message:"网络请求失败",issues:[]}}}let f="内置技能只读,随应用版本更新。可新建用户技能进行配置。";function g(a){return[...new Set((a??[]).map(a=>a.trim()).filter(a=>a.length>0))]}function h(a){return"string"==typeof a?a:a.phrase}function i(a){return{id:a.id,enabled:a.enabled,match:{chapterDomain:a.match.chapterDomain,projectTypes:[...a.match.projectTypes],sectionKeywords:[...a.match.sectionKeywords],...a.match.sectionRegex?{sectionRegex:a.match.sectionRegex}:{}},requires:a.requires.map(a=>({...a})),structure:a.structure.map(a=>({title:a.title,required:[...a.required??[]]})),forbidden:a.forbidden.map(h),knowledge:a.knowledge.map(a=>({kind:a.kind,...a.ids?{ids:[...a.ids]}:{},...a.note?{note:a.note}:{}})),acceptance:a.acceptance.map(a=>({kind:"llmChecklist",checklistItems:[...a.items]})),...void 0!==a.outputTitle?{outputTitle:a.outputTitle}:{},...a.chapterChecklist?{chapterChecklist:{...a.chapterChecklist,...a.chapterChecklist.sections?{sections:[...a.chapterChecklist.sections]}:{}}}:{}}}function j(){return{id:`skill-${Date.now()}`,enabled:!0,match:{projectTypes:[],sectionKeywords:[]},requires:[{source:"boq",required:!1}],structure:[{}],forbidden:[],knowledge:[],acceptance:[{kind:"llmChecklist",checklistItems:[]}]}}function k(a){return(a.ids??[]).length>0}function l(a){return(a.checklistItems??[]).length>0}function m(a,b,c){let d={chapterDomain:a.match?.chapterDomain,projectTypes:[...a.match?.projectTypes??[]],sectionKeywords:g(a.match?.sectionKeywords),...a.match?.sectionRegex?.trim()?{sectionRegex:a.match.sectionRegex.trim()}:{}},e=(a.requires??[]).filter(a=>(a.key??"").trim().length>0).map(a=>({key:(a.key??"").trim(),source:a.source,required:!0===a.required})),f=(a.structure??[]).filter(a=>(a.title??"").trim().length>0).map(a=>({title:(a.title??"").trim(),required:g(a.required)})),h=(a.knowledge??[]).filter(k).map(a=>({kind:"processCard",ids:g(a.ids),...a.note?.trim()?{note:a.note.trim()}:{}})),i=(a.acceptance??[]).filter(l).map(a=>({kind:"llmChecklist",items:g(a.checklistItems),nonDeterministic:!0}));return{id:a.id.trim(),version:b,source:"user",enabled:!1!==a.enabled,match:d,requires:e,structure:f,forbidden:g(a.forbidden),knowledge:h,acceptance:i,...function(a){let b=a.outputTitle?.trim()??"",c=a.chapterChecklist,d={sections:g(c?.sections),queries:g(c?.queries),requiredFacts:g(c?.requiredFacts),tableSections:g(c?.tableSections),tableRequirements:g(c?.tableRequirements),pinnedEvidenceFilePaths:g(c?.pinnedEvidenceFilePaths)},e=!!c?.purpose?.trim()||Object.values(d).some(a=>a.length>0);return{...b?{outputTitle:b}:{},...e?{chapterChecklist:{...c?.purpose?.trim()?{purpose:c.purpose.trim()}:{},...Object.fromEntries(Object.entries(d).filter(([,a])=>a.length>0))}}:{}}}(a),...c?{examples:c}:{}}}},35365:(a,b,c)=>{c.d(b,{PZ:()=>h,RU:()=>i,jT:()=>k,n$:()=>j});var d=c(8732),e=c(60056),f=c(79270);let{Text:g}=e.o5;function h({title:a,description:b,hint:c,className:f,children:g}){return(0,d.jsxs)(e.Zp,{size:"small",className:`rounded-2xl border-[var(--borderColor)] ${f??""}`,title:(0,d.jsx)("span",{className:"font-semibold",children:a}),extra:c?(0,d.jsx)("span",{className:"text-xs text-[var(--colorTextTertiary)]",children:c}):null,styles:{body:{padding:"16px 20px 20px"}},children:[b&&(0,d.jsx)("p",{className:"text-xs text-[var(--colorTextSecondary)] mb-4 mt-0 leading-relaxed",children:b}),g]})}function i({label:a,children:b,empty:c}){let e=null==b||!1===b;return(0,d.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,d.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] sm:pt-1",children:a}),(0,d.jsx)("div",{className:"min-w-0 text-sm leading-6",children:e?(0,d.jsx)(g,{type:"secondary",className:"text-xs",children:c??"未声明"}):b})]})}function j({items:a,empty:b}){return 0===a.length?(0,d.jsx)(g,{type:"secondary",className:"text-xs",children:b??"未声明"}):(0,d.jsx)("div",{className:"flex flex-wrap gap-1",children:a.map((a,b)=>(0,d.jsx)("span",{children:a},b))})}function k({children:a,columns:b="md:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",onRemove:c,removeLabel:g="删除这一行"}){return(0,d.jsxs)("div",{className:"flex items-start gap-2 rounded-xl border border-[var(--borderColor)] bg-[var(--colorFillAlter)] px-3 py-2.5 transition-colors hover:bg-[var(--colorBgHover)]",children:[(0,d.jsx)("div",{className:`min-w-0 flex-1 grid grid-cols-1 ${b} gap-x-3 gap-y-1 items-start`,children:a}),(0,d.jsx)(e.$x,{size:0,className:"pt-6",children:(0,d.jsx)(e.$n,{type:"text",danger:!0,size:"small",icon:(0,d.jsx)(f.DeleteOutlined,{}),"aria-label":g,title:g,onClick:c})})]})}},60790:(a,b,c)=>{c.d(b,{G:()=>f});var d=c(82015),e=c(22488);function f(){let[a,b]=(0,d.useState)([]),[c,f]=(0,d.useState)(),[g,h]=(0,d.useState)([]),[i,j]=(0,d.useState)(!0),[k,l]=(0,d.useState)("");return{skills:a,options:c,invalid:g,loading:i,failed:k,reload:(0,d.useCallback)(async()=>{j(!0);let a=await (0,e.SS)("/api/skills");a.ok?(b(a.data.skills),f(a.data.options),h(a.data.invalid??[]),l("")):l(a.message),j(!1)},[]),applySkills:b}}}};
1
+ "use strict";exports.id=9399,exports.ids=[9399],exports.modules={8160:(a,b,c)=>{c.d(b,{e:()=>h});var d=c(8732),e=c(9328),f=c.n(e),g=c(79270);function h({title:a,description:b,extra:c}){return(0,d.jsx)("div",{className:"skillStickyHeader",children:(0,d.jsx)("div",{className:"bg-[var(--colorBgContainer)] rounded-2xl border border-[var(--borderColor)] p-6",children:(0,d.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-6",children:[(0,d.jsxs)("div",{className:"flex items-center min-w-0",children:[(0,d.jsxs)(f(),{href:"/skills",className:"mr-4 text-sm text-[var(--colorTextSecondary)] hover:text-[var(--colorText)] inline-flex items-center gap-1 shrink-0",children:[(0,d.jsx)(g.ArrowLeftOutlined,{})," 返回技能库"]}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h1",{className:"text-2xl font-bold text-[var(--colorText)] mb-1 truncate",children:a}),b?(0,d.jsx)("p",{className:"text-sm text-[var(--colorTextSecondary)] m-0 truncate",children:b}):null]})]}),c?(0,d.jsx)("div",{className:"shrink-0 flex items-center gap-2",children:c}):null]})})})}},22488:(a,b,c)=>{c.d(b,{F:()=>f,Ie:()=>j,Oz:()=>h,RW:()=>m,SS:()=>e,eT:()=>d,m6:()=>i});let d={"Content-Type":"application/json"};async function e(a,b){try{let c,d=await fetch(a,b),e=await d.text();try{c=e?JSON.parse(e):void 0}catch{c=void 0}if(!d.ok){let a=c??{};return{ok:!1,status:d.status,message:a.error??`HTTP ${d.status}`,issues:Array.isArray(a.errors)?a.errors:[]}}return{ok:!0,data:c}}catch(a){return{ok:!1,status:0,message:a instanceof Error?a.message:"网络请求失败",issues:[]}}}let f="内置技能只读,随应用版本更新。可新建用户技能进行配置。";function g(a){return[...new Set((a??[]).map(a=>a.trim()).filter(a=>a.length>0))]}function h(a){return"string"==typeof a?a:a.phrase}function i(a){return{id:a.id,enabled:a.enabled,match:{chapterDomain:a.match.chapterDomain,projectTypes:[...a.match.projectTypes],sectionKeywords:[...a.match.sectionKeywords],...a.match.sectionRegex?{sectionRegex:a.match.sectionRegex}:{}},requires:a.requires.map(a=>({...a})),structure:a.structure.map(a=>({title:a.title,required:[...a.required??[]]})),forbidden:a.forbidden.map(h),knowledge:a.knowledge.map(a=>({kind:a.kind,...a.ids?{ids:[...a.ids]}:{},...a.note?{note:a.note}:{}})),acceptance:a.acceptance.map(a=>({kind:"llmChecklist",checklistItems:[...a.items]})),...void 0!==a.outputTitle?{outputTitle:a.outputTitle}:{},...a.chapterChecklist?{chapterChecklist:{...a.chapterChecklist,...a.chapterChecklist.sections?{sections:[...a.chapterChecklist.sections]}:{}}}:{}}}function j(){return{id:`skill-${Date.now()}`,enabled:!0,match:{projectTypes:[],sectionKeywords:[]},requires:[{source:"boq",required:!1}],structure:[{}],forbidden:[],knowledge:[],acceptance:[{kind:"llmChecklist",checklistItems:[]}]}}function k(a){return(a.ids??[]).length>0}function l(a){return(a.checklistItems??[]).length>0}function m(a,b,c){let d={chapterDomain:a.match?.chapterDomain,projectTypes:[...a.match?.projectTypes??[]],sectionKeywords:g(a.match?.sectionKeywords),...a.match?.sectionRegex?.trim()?{sectionRegex:a.match.sectionRegex.trim()}:{}},e=(a.requires??[]).filter(a=>(a.key??"").trim().length>0).map(a=>({key:(a.key??"").trim(),source:a.source,required:!0===a.required})),f=(a.structure??[]).filter(a=>(a.title??"").trim().length>0).map(a=>({title:(a.title??"").trim(),required:g(a.required)})),h=(a.knowledge??[]).filter(k).map(a=>({kind:"processCard",ids:g(a.ids),...a.note?.trim()?{note:a.note.trim()}:{}})),i=(a.acceptance??[]).filter(l).map(a=>({kind:"llmChecklist",items:g(a.checklistItems),nonDeterministic:!0}));return{id:a.id.trim(),version:b,source:"user",enabled:!1!==a.enabled,match:d,requires:e,structure:f,forbidden:g(a.forbidden),knowledge:h,acceptance:i,...function(a){let b=a.outputTitle?.trim()??"",c=a.chapterChecklist,d={sections:g(c?.sections),queries:g(c?.queries),requiredFacts:g(c?.requiredFacts),tableSections:g(c?.tableSections),tableRequirements:g(c?.tableRequirements),pinnedEvidenceFilePaths:g(c?.pinnedEvidenceFilePaths)},e=!!c?.purpose?.trim()||Object.values(d).some(a=>a.length>0);return{...b?{outputTitle:b}:{},...e?{chapterChecklist:{...c?.purpose?.trim()?{purpose:c.purpose.trim()}:{},...Object.fromEntries(Object.entries(d).filter(([,a])=>a.length>0))}}:{}}}(a),...c?{examples:c}:{}}}},35365:(a,b,c)=>{c.d(b,{PZ:()=>h,RU:()=>i,jT:()=>k,n$:()=>j});var d=c(8732),e=c(60056),f=c(79270);let{Text:g}=e.o5;function h({title:a,description:b,hint:c,className:f,children:g}){return(0,d.jsxs)(e.Zp,{className:`rounded-2xl border-[var(--borderColor)] ${f??""}`,title:(0,d.jsx)("span",{className:"font-semibold",children:a}),extra:c?(0,d.jsx)("span",{className:"text-xs text-[var(--colorTextTertiary)]",children:c}):null,children:[b&&(0,d.jsx)("p",{className:"text-xs text-[var(--colorTextSecondary)] mb-4 mt-0 leading-relaxed",children:b}),g]})}function i({label:a,children:b,empty:c}){let e=null==b||!1===b;return(0,d.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,d.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] sm:pt-1",children:a}),(0,d.jsx)("div",{className:"min-w-0 text-sm leading-6",children:e?(0,d.jsx)(g,{type:"secondary",className:"text-xs",children:c??"未声明"}):b})]})}function j({items:a,empty:b}){return 0===a.length?(0,d.jsx)(g,{type:"secondary",className:"text-xs",children:b??"未声明"}):(0,d.jsx)("div",{className:"flex flex-wrap gap-1",children:a.map((a,b)=>(0,d.jsx)("span",{children:a},b))})}function k({children:a,columns:b="md:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",onRemove:c,removeLabel:g="删除这一行"}){return(0,d.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,d.jsx)("div",{className:`min-w-0 flex-1 grid grid-cols-1 ${b} gap-x-3 gap-y-1 items-start`,children:a}),(0,d.jsx)(e.$x,{size:0,className:"self-center",children:(0,d.jsx)(e.$n,{type:"text",danger:!0,size:"small",icon:(0,d.jsx)(f.DeleteOutlined,{}),"aria-label":g,title:g,onClick:c})})]})}},60790:(a,b,c)=>{c.d(b,{G:()=>f});var d=c(82015),e=c(22488);function f(){let[a,b]=(0,d.useState)([]),[c,f]=(0,d.useState)(),[g,h]=(0,d.useState)([]),[i,j]=(0,d.useState)(!0),[k,l]=(0,d.useState)("");return{skills:a,options:c,invalid:g,loading:i,failed:k,reload:(0,d.useCallback)(async()=>{j(!0);let a=await (0,e.SS)("/api/skills");a.ok?(b(a.data.skills),f(a.data.options),h(a.data.invalid??[]),l("")):l(a.message),j(!1)},[]),applySkills:b}}}};