ai-helper-agent 2.8.5 → 2.8.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.
@@ -1,4 +1,4 @@
1
- import{a as e,c as t,l as n}from"./i18n-B1Q34rTV.js";import{T as r}from"./utils-kuoro4rx.js";import{f as i,h as a,m as o,s}from"./markdown-render-B-UF5L3c.js";import{AlignmentType as c,BorderStyle as l,Document as u,ExternalHyperlink as d,HeadingLevel as f,ImageRun as p,LevelFormat as m,Packer as h,Paragraph as g,Table as ee,TableCell as te,TableRow as ne,TextRun as _,WidthType as v,convertInchesToTwip as y}from"./dist-BUuoW_84.js";var re=40,b=3e3,x=/^\s{0,3}(`{3,}|~{3,})/,S=/^\s{0,3}(#{1,6})[ \t]+(.*)$/,C=/^\s{0,3}=+\s*$/,w=/^\s{0,3}([-*_])(?:\s*\1){2,}\s*$/,T=/^\s*\|.*\|\s*$/,E=/^\s*(?:\d+(?:\.\d+)+[.、))]?\s*|\d+[.、))]\s*|[一二三四五六七八九十]+[、.]\s*|[((][一二三四五六七八九十\d]+[))]\s*)/,D=/[/\\:*?"<>|]/g,ie=/[\u0000-\u001f\u007f\u200b-\u200f\u2028\u2029\ufeff]/g,O=`
1
+ import{a as e,c as t,l as n}from"./i18n-B1Q34rTV.js";import{T as r}from"./utils-kuoro4rx.js";import{f as i,h as a,m as o,s}from"./markdown-render-ns6Pa-5H.js";import{AlignmentType as c,BorderStyle as l,Document as u,ExternalHyperlink as d,HeadingLevel as f,ImageRun as p,LevelFormat as m,Packer as h,Paragraph as g,Table as ee,TableCell as te,TableRow as ne,TextRun as _,WidthType as v,convertInchesToTwip as y}from"./dist-BUuoW_84.js";var re=40,b=3e3,x=/^\s{0,3}(`{3,}|~{3,})/,S=/^\s{0,3}(#{1,6})[ \t]+(.*)$/,C=/^\s{0,3}=+\s*$/,w=/^\s{0,3}([-*_])(?:\s*\1){2,}\s*$/,T=/^\s*\|.*\|\s*$/,E=/^\s*(?:\d+(?:\.\d+)+[.、))]?\s*|\d+[.、))]\s*|[一二三四五六七八九十]+[、.]\s*|[((][一二三四五六七八九十\d]+[))]\s*)/,D=/[/\\:*?"<>|]/g,ie=/[\u0000-\u001f\u007f\u200b-\u200f\u2028\u2029\ufeff]/g,O=`
2
2
  `;function ae(e){return typeof e==`string`?e.replace(/\r\n?/g,O).replace(/\n{3,}/g,`
3
3
 
4
4
  `):``}function oe(e){return(e.length>b?e.slice(0,b):e).split(O).slice(0,re).join(O)}function se(e){return String(e).replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/`+/g,``).replace(/(\*\*|__|\*|_|~~)/g,``).replace(/https?:\/\/\S+/gi,``).replace(/<[^>]+>/g,``)}function k(e){if(typeof e!=`string`||!e.trim())return``;let t=se(e);return t=t.replace(ie,``),t=t.replace(E,``),t=t.replace(D,`_`),t=t.replace(/\s+/g,`-`).replace(/-{2,}/g,`-`),t=t.replace(/^[-_.\s]+/,``).replace(/[-_.\s]+$/,``),t}function A(e,t=40){let n=Array.from(e);return(n.length>t?n.slice(0,t).join(``):e).replace(/[-_.,;:、,。;:\s]+$/u,``)}function ce(e){if(typeof e!=`string`||!e.trim())return``;let t=oe(e).split(O),n=[],r=``;for(let e=0;e<t.length;e++){let i=t[e],a=i.match(x);if(r){a&&a[1][0]===r&&(r=``);continue}if(a){r=a[1][0];continue}let o=i.match(S);if(o){let e=o[2].replace(/[ \t]+#+[ \t]*$/,``).trim();e&&n.push({level:o[1].length,text:e});continue}let s=t[e+1];s&&C.test(s)&&i.trim()&&!w.test(i)&&!T.test(i)&&(n.push({level:1,text:i.trim()}),e++)}return n.length===0?``:A(k((n.find(e=>e.level===1)||n[0]).text))}function le({title:e=``,kind:t,timestamp:n,ext:r}){let i=`${t}-${n}.${r}`,a=A(k(e));return a?`${a}-${i}`:i}function j(e,{kind:t,ext:n,timestamp:r=Date.now()}){return le({title:ce(e),kind:t,timestamp:r,ext:n})}e(`zh`,{chatExport:{exportFailed:`导出失败:{message}`,pdfLibNotLoaded:`PDF 库未加载,无法导出`,noContent:`没有可导出的内容`,imageLibNotLoaded:`图片库未加载,无法导出为图片`,imagePlaceholder:`[图片: {name}]`,canvasFailed:`Canvas 转 DataURL 失败:{message}`,svgLoadFailed:`SVG 图片加载失败`}}),e(`en`,{chatExport:{exportFailed:`Export failed: {message}`,pdfLibNotLoaded:`PDF library not loaded, cannot export`,noContent:`No content to export`,imageLibNotLoaded:`Image library not loaded, cannot export as image`,imagePlaceholder:`[Image: {name}]`,canvasFailed:`Canvas to DataURL failed: {message}`,svgLoadFailed:`SVG image loading failed`}});var M=new Map,N=/Mac|iPhone|iPad|iPod/i.test(typeof navigator<`u`?navigator.userAgent:``)?`Apple Color Emoji`:`Segoe UI Emoji`,P=RegExp(`(?:\\p{Regional_Indicator}{2})|(?:\\p{Emoji_Presentation}|\\p{Extended_Pictographic}\\uFE0F)(?:[\\u{1F3FB}-\\u{1F3FF}]|\\u200D(?:\\p{Emoji_Presentation}|\\p{Extended_Pictographic}\\uFE0F))*`,`gu`),F=/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uFFFE\uFFFF]/g,I=/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g;function L(e){return e==null||e===``?e:String(e).replace(F,``).replace(I,`�`)}var R=0;function z(){return R+=1,R}var B=new Set([`png`,`jpg`,`jpeg`,`gif`,`bmp`]);function V(e){return B.has(String(e||``).toLowerCase())}function H(e,t={}){if(!e)return[];let n=[];return String(e).split(/\r?\n/).forEach((e,r)=>{r>0&&n.push(new _({...t,break:1}));let i=0;for(let r of e.matchAll(P))r.index>i&&n.push(new _({...t,text:e.slice(i,r.index)})),n.push(new _({...t,text:r[0],font:{name:N}})),i=r.index+r[0].length;i<e.length&&n.push(new _({...t,text:e.slice(i)}))}),n}function U(e){if(!e)return[];let r=/(\*\*(.+?)\*\*|(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)|__(.+?)__|(?<!_)_(?!_)(.+?)(?<!_)_(?!_)|`([^`]+)`|\[([^\]]+)\]\(([^)]+)\)|!\[([^\]]*)\]\(([^)]+)\))/,i=[],a=e;for(;a.length>0;){let e=a.match(r);if(!e){i.push(...H(a));break}let o=e.index;o>0&&i.push(...H(a.slice(0,o)));let s=e[1];if(e[2]!==void 0)i.push(...H(e[2],{bold:!0}));else if(e[3]!==void 0)i.push(...H(e[3],{italics:!0}));else if(e[4]!==void 0)i.push(...H(e[4],{bold:!0}));else if(e[5]!==void 0)i.push(...H(e[5],{italics:!0}));else if(e[6]!==void 0)i.push(new _({text:e[6],font:`Consolas`,size:20}));else if(e[7]!==void 0)i.push(new d({children:[new _({text:e[7],style:`Hyperlink`})],link:e[8]}));else if(e[9]!==void 0){let r=e[10];if(r.startsWith(`data:`))try{let[n,a]=r.split(`,`),o=n.match(/data:(image\/(\w+))/);if(o&&a&&V(o[2])){let t=atob(a),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);let r=o[2],s=ue(n,r),c=s.width,l=s.height;if(c>567){let e=567/c;c=Math.round(c*e),l=Math.round(l*e)}i.push(new p({data:n,transformation:{width:c,height:l},type:r,altText:{id:z(),name:e[9]||`image`}}))}else i.push(new _({text:t(`chatExport.imagePlaceholder`,{name:e[9]||`image`}),italics:!0,color:`999999`}))}catch(r){n.warn(`[ChatExport] ImageRun create failed:`,r.message),i.push(new _({text:t(`chatExport.imagePlaceholder`,{name:e[9]||`image`}),italics:!0,color:`999999`}))}else i.push(new _({text:t(`chatExport.imagePlaceholder`,{name:e[9]||r}),italics:!0,color:`999999`}))}a=a.slice(o+s.length)}return i}function ue(e,t){if(t===`png`&&e.length>24){let t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{width:t.getUint32(16),height:t.getUint32(20)}}if((t===`jpeg`||t===`jpg`)&&e.length>100){let t=2;for(;t<e.length-9;)if(e[t]===255){let n=e[t+1];if(n>=192&&n<=195){let n=new DataView(e.buffer,e.byteOffset,e.byteLength);return{height:n.getUint16(t+5),width:n.getUint16(t+7)}}t+=2+(e[t+2]<<8|e[t+3])}else t++}return{width:600,height:400}}async function W(e){if(!e||!e.trim())return[new g({children:[new _({text:``})]})];let t=[],n=L(e),r=[];n=n.replace(/```(\w*)\n([\s\S]*?)```/g,(e,t,n)=>{let i=r.length;return r.push({lang:t||``,code:n.trimEnd()}),`\n\n%%CODEBLOCK_${i}%%\n\n`});let i=[];n=n.replace(/<table[\s\S]*?<\/table>/gi,e=>{let t=i.length;return i.push(e),`\n\n%%HTMLTABLE_${t}%%\n\n`});let a=[];n=n.replace(/(?:^\|.+\|\s*$\n)+^\|[\s\-:|]+\|\s*$\n(?:^\|.+\|\s*$\n?)+/gm,e=>{let t=a.length;return a.push(e),`\n\n%%MDTABLE_${t}%%\n\n`});let o=n.split(/\n{2,}/).filter(e=>e.trim());for(let e of o){let n=e.trim(),o=n.match(/^%%CODEBLOCK_(\d+)%%$/);if(o){let{lang:e,code:n}=r[parseInt(o[1])],i=e?`${e} code`:`code`;t.push(new g({children:[new _({text:i,bold:!0,font:`Consolas`,size:18})]}));let a=n.split(`
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/workspace-manager-LZpwqfIG.js","assets/chunk-CMxvf4Kt.js","assets/session-store-KgAFlPe7.js","assets/model-profiles-Cq93mdbc.js","assets/i18n-B1Q34rTV.js","assets/side_panel.js","assets/version-bJ7-5Neg.js","assets/voice-shortcut-Dtt3nhkz.js","assets/agent-store-BmOcvz_2.js","assets/utils-kuoro4rx.js"])))=>i.map(i=>d[i]);
2
- import{a as e,c as t,l as n}from"./i18n-B1Q34rTV.js";import{N as r}from"./session-store-KgAFlPe7.js";import{l as i,u as a}from"./version-bJ7-5Neg.js";import{T as o,a as s,c}from"./utils-kuoro4rx.js";var l=null,u=null,d=null;function f(e){return{startOnLoad:!1,theme:(e||a())===`dark`?`dark`:`default`,securityLevel:`loose`,fontFamily:`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`}}function p(e){return new Promise((t,n)=>{if(document.querySelector(`script[src="${e}"]`)){t();return}let r=document.createElement(`script`);r.src=e,r.onload=t,r.onerror=()=>n(Error(`Failed to load script: ${e}`)),document.head.appendChild(r)})}function m(){return window.mermaid===void 0?(l||=p(`libs/mermaid.min.js`).then(()=>(window.mermaid!==void 0&&window.mermaid.initialize(f()),window.mermaid)).catch(e=>{throw l=null,e}),l):Promise.resolve(window.mermaid)}function h(){return window.jspdf&&window.jspdf.jsPDF?Promise.resolve(window.jspdf.jsPDF):(u||=p(`libs/jspdf.min.js`).then(()=>{let e=window.jspdf&&window.jspdf.jsPDF;if(!e)throw Error(`jsPDF not available after loading`);return e}).catch(e=>{throw u=null,e}),u)}function g(){return window.html2canvas?Promise.resolve(window.html2canvas):(d||=p(`libs/html2canvas.min.js`).then(()=>{if(!window.html2canvas)throw Error(`html2canvas not available after loading`);return window.html2canvas}).catch(e=>{throw d=null,e}),d)}async function ee(){let[e,t]=await Promise.all([h(),g()]);return{jsPDF:e,html2canvas:t}}e(`zh`,{chat:{fileLinkTitle:`点击在工作目录中定位该文件`,fileLinkFailed:`定位文件失败`},markdown:{copyCode:`复制代码`,copyMdTableTitle:`复制 Markdown 表格
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/workspace-manager-LZpwqfIG.js","assets/chunk-CMxvf4Kt.js","assets/session-store-KgAFlPe7.js","assets/model-profiles-Cq93mdbc.js","assets/i18n-B1Q34rTV.js","assets/side_panel.js","assets/version-DS3gqyX5.js","assets/voice-shortcut-Dtt3nhkz.js","assets/agent-store-BmOcvz_2.js","assets/utils-kuoro4rx.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,c as t,l as n}from"./i18n-B1Q34rTV.js";import{N as r}from"./session-store-KgAFlPe7.js";import{l as i,u as a}from"./version-DS3gqyX5.js";import{T as o,a as s,c}from"./utils-kuoro4rx.js";var l=null,u=null,d=null;function f(e){return{startOnLoad:!1,theme:(e||a())===`dark`?`dark`:`default`,securityLevel:`loose`,fontFamily:`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`}}function p(e){return new Promise((t,n)=>{if(document.querySelector(`script[src="${e}"]`)){t();return}let r=document.createElement(`script`);r.src=e,r.onload=t,r.onerror=()=>n(Error(`Failed to load script: ${e}`)),document.head.appendChild(r)})}function m(){return window.mermaid===void 0?(l||=p(`libs/mermaid.min.js`).then(()=>(window.mermaid!==void 0&&window.mermaid.initialize(f()),window.mermaid)).catch(e=>{throw l=null,e}),l):Promise.resolve(window.mermaid)}function h(){return window.jspdf&&window.jspdf.jsPDF?Promise.resolve(window.jspdf.jsPDF):(u||=p(`libs/jspdf.min.js`).then(()=>{let e=window.jspdf&&window.jspdf.jsPDF;if(!e)throw Error(`jsPDF not available after loading`);return e}).catch(e=>{throw u=null,e}),u)}function g(){return window.html2canvas?Promise.resolve(window.html2canvas):(d||=p(`libs/html2canvas.min.js`).then(()=>{if(!window.html2canvas)throw Error(`html2canvas not available after loading`);return window.html2canvas}).catch(e=>{throw d=null,e}),d)}async function ee(){let[e,t]=await Promise.all([h(),g()]);return{jsPDF:e,html2canvas:t}}e(`zh`,{chat:{fileLinkTitle:`点击在工作目录中定位该文件`,fileLinkFailed:`定位文件失败`},markdown:{copyCode:`复制代码`,copyMdTableTitle:`复制 Markdown 表格
3
3
  按住 Ctrl/⌘ 点击复制富文本表格`,downloadExcel:`下载 Excel`,exportTableImage:`导出表格为图片`,downloadFailed:`下载失败: {message}`,unknownError:`未知错误`,chartRenderFailed:`图表渲染失败: {detail}`,zoomIn:`放大`,zoomOut:`缩小`,reset:`重置`,copyToClipboard:`复制到剪贴板`,downloadImage:`下载图片`,viewSource:`查看源代码`,mermaidCopied:`Mermaid 图表已复制到剪贴板!`,autoDownloadChart:`已自动转为下载方式保存图表`,copyFailed:`复制失败: {message}`,copySourceTitle:`复制源代码`,backToChart:`返回图表`,codeBlockLabel:`代码块`,codeLabel:`代码`,copiedToClipboard:`{label}已复制到剪贴板`,codeCopied:`代码已复制到剪贴板`,copiedRichTable:`已复制富文本表格`,copyRichTableFailed:`复制富文本表格失败`,copyFailedShort:`复制失败`,copiedMdTable:`已复制 Markdown 表格`,imageExportLibMissing:`图片导出库未加载`,tableImageExported:`表格图片已导出`,exportImageFailed:`导出图片失败`,canvasExportFailed:`Canvas toDataURL 失败,无法导出图片`,svgLoadFailed:`SVG 图片加载失败: {message}`}}),e(`en`,{chat:{fileLinkTitle:`Click to locate this file in the working directory`,fileLinkFailed:`Failed to locate file`},markdown:{copyCode:`Copy code`,copyMdTableTitle:`Copy Markdown table
4
4
  Ctrl/Cmd+click to copy rich-text table`,downloadExcel:`Download Excel`,exportTableImage:`Export table as image`,downloadFailed:`Download failed: {message}`,unknownError:`Unknown error`,chartRenderFailed:`Chart rendering failed: {detail}`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,reset:`Reset`,copyToClipboard:`Copy to clipboard`,downloadImage:`Download image`,viewSource:`View source`,mermaidCopied:`Mermaid chart copied to clipboard!`,autoDownloadChart:`Automatically switched to download to save the chart`,copyFailed:`Copy failed: {message}`,copySourceTitle:`Copy source code`,backToChart:`Back to chart`,codeBlockLabel:`Code block`,codeLabel:`Code`,copiedToClipboard:`{label} copied to clipboard`,codeCopied:`Code copied to clipboard`,copiedRichTable:`Rich-text table copied`,copyRichTableFailed:`Failed to copy rich-text table`,copyFailedShort:`Copy failed`,copiedMdTable:`Markdown table copied`,imageExportLibMissing:`Image export library not loaded`,tableImageExported:`Table image exported`,exportImageFailed:`Failed to export image`,canvasExportFailed:`Canvas toDataURL failed, unable to export image`,svgLoadFailed:`SVG image load failed: {message}`}});var _=2e3;function te(e){let t=e.closest(`.mermaid`);if(!t)return!1;let n=t.getAttribute(`data-raw-code`);if(!n)return!1;try{let e=decodeURIComponent(n);return/^\s*classDiagram/im.test(e)}catch{return!1}}function ne(e){e.querySelectorAll(`foreignObject`).forEach(e=>{let t=e.querySelector(`div`);if(!t){e.remove();return}let n=t.querySelector(`span`),r=(n||t).textContent.trim();if(!r){e.remove();return}let i=parseFloat(e.getAttribute(`width`))||100,a=parseFloat(e.getAttribute(`height`))||30,o=e.getAttribute(`transform`),s=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);s.setAttribute(`x`,String(i/2)),s.setAttribute(`y`,String(a/2)),s.setAttribute(`text-anchor`,`middle`),s.setAttribute(`dominant-baseline`,`central`),o&&s.setAttribute(`transform`,o);let c=n?n.getAttribute(`class`):``;c&&s.setAttribute(`class`,c),s.textContent=r,e.parentNode.replaceChild(s,e)})}function v(e){let t=e.cloneNode(!0),n=document.createElement(`div`);return n.style.cssText=`position:absolute;visibility:hidden;width:0;height:0;overflow:hidden;`,n.appendChild(t),document.body.appendChild(n),te(e)?ne(t):t.querySelectorAll(`foreignObject`).forEach(e=>{let t=e.querySelector(`div`);if(!t){e.remove();return}let n=document.createElementNS(`http://www.w3.org/2000/svg`,`text`),r=parseFloat(e.getAttribute(`x`))||0,i=parseFloat(e.getAttribute(`y`))||0,a=parseFloat(e.getAttribute(`width`))||100,o=parseFloat(e.getAttribute(`height`))||30,s=t.querySelector(`span`)||t,c=window.getComputedStyle(s);n.textContent=s.textContent.trim(),n.setAttribute(`x`,String(r+a/2)),n.setAttribute(`y`,String(i+o/2)),n.setAttribute(`text-anchor`,`middle`),n.setAttribute(`dominant-baseline`,`central`),n.setAttribute(`fill`,c.color||`#333`),n.setAttribute(`font-family`,c.fontFamily||`sans-serif`),n.setAttribute(`font-size`,c.fontSize||`14px`),(c.fontWeight===`bold`||parseInt(c.fontWeight)>=600)&&n.setAttribute(`font-weight`,`bold`),e.parentNode.replaceChild(n,e)}),t.querySelectorAll(`image`).forEach(e=>{let t=e.getAttribute(`href`)||e.getAttributeNS(`http://www.w3.org/1999/xlink`,`href`)||``;/^https?:/i.test(t)&&e.remove()}),t.querySelectorAll(`use`).forEach(e=>{let t=e.getAttribute(`href`)||e.getAttributeNS(`http://www.w3.org/1999/xlink`,`href`)||``;/^https?:/i.test(t)&&e.remove()}),document.body.removeChild(n),t}function y(e){let t=e.getAttribute(`viewBox`);if(t){let e=t.split(/[\s,]+/).map(parseFloat);if(e.length===4&&!isNaN(e[2])&&!isNaN(e[3])&&e[2]>0&&e[3]>0)return{width:e[2],height:e[3]}}let n=parseFloat(e.getAttribute(`width`)),r=parseFloat(e.getAttribute(`height`));if(!isNaN(n)&&!isNaN(r)&&n>0&&r>0)return{width:n,height:r};try{let t=e.getBoundingClientRect();if(t.width>0&&t.height>0)return{width:t.width,height:t.height}}catch{}return{width:800,height:600}}function b(e){try{let t=e.toDataURL(`image/png`);if(t&&t.length>100)return t}catch(e){n.debug(`[SidePanel] PNG toDataURL failed,downgrade to JPEG:`,e.message)}try{let t=e.toDataURL(`image/jpeg`,.92);if(t&&t.length>100)return t}catch(e){n.debug(`[SidePanel] JPEG toDataURL also failed:`,e.message)}throw Error(t(`markdown.canvasExportFailed`))}function x(e){return new Promise((r,i)=>{try{let{width:a,height:o}=y(e);n.debug(`[SidePanel] svgToPngDataUrl size:`,a,`x`,o);let s=2;if(a>_||o>_){let e=Math.min(_/a,_/o);a*=e,o*=e,s=1.5}let c=v(e),l=new XMLSerializer().serializeToString(c),u=`data:image/svg+xml;charset=utf-8,`+encodeURIComponent(l),d=new Image;d.crossOrigin=`anonymous`,d.onload=function(){try{let e=document.createElement(`canvas`);e.width=Math.ceil((a+20)*s),e.height=Math.ceil((o+20)*s),n.debug(`[SidePanel] Canvas size:`,e.width,`x`,e.height);let t=e.getContext(`2d`);t.fillStyle=`#ffffff`,t.fillRect(0,0,e.width,e.height),t.drawImage(d,10*s,10*s,a*s,o*s),r(b(e))}catch(e){i(e)}},d.onerror=function(e){i(Error(t(`markdown.svgLoadFailed`,{message:String(e?.message||e)})))},d.src=u}catch(e){i(e)}})}function S(e){if(!e)return``;let t=[],n=e.replace(/```[\s\S]*?```/g,e=>(t.push(e),`\u0000F${t.length-1}\u0000`)),r=n.replace(/^[ \t]*\[\[artifact:[^\]]*\]\][ \t]*\n/gm,``).replace(/[ \t]*\[\[artifact:[^\]]*\]\][ \t]*/g,``);return(r===n?n:r.replace(/\n{3,}/g,`
5
5
 
@@ -1,4 +1,4 @@
1
- import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./i18n-B1Q34rTV.js";import{$ as l,F as u,Y as d,Z as f,_ as p,a as m,b as h,c as g,d as _,et as v,g as y,h as b,i as ee,k as x,m as te,n as ne,o as re,p as ie,r as S,s as C,t as ae,u as oe,v as w,x as T}from"./model-profiles-Cq93mdbc.js";import{r as se}from"./network-scope-0d6MoKgI.js";import{i as ce,r as le}from"./voice-shortcut-Dtt3nhkz.js";import{a as ue,c as E,d as D,f as de,i as fe,l as pe,m as me,o as he,p as ge,r as _e,s as ve,t as O}from"./version-bJ7-5Neg.js";e(`zh`,{optionsConst:{aiSearch:`AI搜索`,explain:`解释`,translate:`翻译`,summary:`总结`,copy:`复制`,defaultSystemPrompt:`AI Helper:IT技术助手。
1
+ import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./i18n-B1Q34rTV.js";import{$ as l,F as u,Y as d,Z as f,_ as p,a as m,b as h,c as g,d as _,et as v,g as y,h as b,i as ee,k as x,m as te,n as ne,o as re,p as ie,r as S,s as C,t as ae,u as oe,v as w,x as T}from"./model-profiles-Cq93mdbc.js";import{r as se}from"./network-scope-0d6MoKgI.js";import{i as ce,r as le}from"./voice-shortcut-Dtt3nhkz.js";import{a as ue,c as E,d as D,f as de,i as fe,l as pe,m as me,o as he,p as ge,r as _e,s as ve,t as O}from"./version-DS3gqyX5.js";e(`zh`,{optionsConst:{aiSearch:`AI搜索`,explain:`解释`,translate:`翻译`,summary:`总结`,copy:`复制`,defaultSystemPrompt:`AI Helper:IT技术助手。
2
2
 
3
3
  ## 能力
4
4
  编程开发与调试(Java/Python/JavaScript/Go/C++)、架构优化、性能调优、代码审查、文档编写、浏览器工具调用