@bigduu/lotus-next 2026.11.13 → 2026.11.14

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
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ConversationClearDialogContent-BjUzjlW5.js","./rolldown-runtime-QTnfLwEv.js","./vendor-react-CCIEwYL0.js","./ui-DHEY0Lgx.js","./preload-helper-DYl5dUZ5.js","./shim-B7rqb4U2.js","./appStore-DhQwkuOp.js","./clipboard-CyQ_pZV9.js","./react-BqtYw2Yd.js","./api-CPcpMjoM.js","./runtimeConfig-DNyol2mX.js","./AgentService-BxkDZijx.js","./project-Bes6r3Er.js","./button-Cfb4l-V4.js","./bundle-mjs-B_AA55HL.js","./dist-F2p7j0vG.js","./utils-DqNhCx4L.js","./responsive-dialog-D6zJ6jIQ.js","./x-CH9nNoJJ.js","./createLucideIcon-5m7IB1Aa.js","./motion-A2StR0Mh.js","./dist-DF6JjXE-.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ConversationClearDialogContent-Crm59otF.js","./rolldown-runtime-QTnfLwEv.js","./vendor-react-CCIEwYL0.js","./ui-DHEY0Lgx.js","./preload-helper-DYl5dUZ5.js","./shim-B7rqb4U2.js","./appStore-C9vSUDXg.js","./clipboard-CyQ_pZV9.js","./react-BqtYw2Yd.js","./api-CPcpMjoM.js","./runtimeConfig-DNyol2mX.js","./AgentService-BxkDZijx.js","./project-Bes6r3Er.js","./button-Cfb4l-V4.js","./bundle-mjs-B_AA55HL.js","./dist-F2p7j0vG.js","./utils-DqNhCx4L.js","./responsive-dialog-D6zJ6jIQ.js","./x-CH9nNoJJ.js","./createLucideIcon-5m7IB1Aa.js","./motion-A2StR0Mh.js","./dist-DF6JjXE-.js"])))=>i.map(i=>d[i]);
2
2
  import{r as e,t}from"./rolldown-runtime-QTnfLwEv.js";import{i as n,t as r}from"./vendor-react-CCIEwYL0.js";import{t as i}from"./preload-helper-DYl5dUZ5.js";import{_ as a,a as o,d as s,f as c,g as l,h as u,m as d,p as f,v as p,y as m}from"./ui-DHEY0Lgx.js";import{t as h}from"./createLucideIcon-5m7IB1Aa.js";import{t as g}from"./ErrorBoundary-DZL5VW7G.js";import{t as _}from"./api-CPcpMjoM.js";import{t as v}from"./button-Cfb4l-V4.js";import{i as y,n as b,r as x,t as S}from"./responsive-dialog-D6zJ6jIQ.js";var C=t(((e,t)=>{t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}})),w=e(n()),T=e(C()),E=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function D(e){var t={type:`tag`,name:``,voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(T.default[n[1]]||e.charAt(e.length-2)===`/`)&&(t.voidElement=!0),t.name.startsWith(`!--`))){var r=e.indexOf(`-->`);return{type:`comment`,comment:r===-1?``:e.slice(4,r)}}for(var i=new RegExp(E),a=null;(a=i.exec(e))!==null;)if(a[0].trim())if(a[1]){var o=a[1].trim(),s=[o,``];o.indexOf(`=`)>-1&&(s=o.split(`=`)),t.attrs[s[0]]=s[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var ee=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,O=/^\s*$/,k=Object.create(null);function A(e,t){switch(t.type){case`text`:return e+t.content;case`tag`:return e+=`<`+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+`="`+e[n]+`"`);return t.length?` `+t.join(` `):``}(t.attrs):``)+(t.voidElement?`/>`:`>`),t.voidElement?e:e+t.children.reduce(A,``)+`</`+t.name+`>`;case`comment`:return e+`<!--`+t.comment+`-->`}}var j={parse:function(e,t){t||={},t.components||=k;var n,r=[],i=[],a=-1,o=!1;if(e.indexOf(`<`)!==0){var s=e.indexOf(`<`);r.push({type:`text`,content:s===-1?e:e.substring(0,s)})}return e.replace(ee,function(s,c){if(o){if(s!==`</`+n.name+`>`)return;o=!1}var l,u=s.charAt(1)!==`/`,d=s.startsWith(`<!--`),f=c+s.length,p=e.charAt(f);if(d){var m=D(s);return a<0?(r.push(m),r):((l=i[a]).children.push(m),r)}if(u&&(a++,(n=D(s)).type===`tag`&&t.components[n.name]&&(n.type=`component`,o=!0),n.voidElement||o||!p||p===`<`||n.children.push({type:`text`,content:e.slice(f,e.indexOf(`<`,f))}),a===0&&r.push(n),(l=i[a-1])&&l.children.push(n),i[a]=n),(!u||n.voidElement)&&(a>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(a--,n=a===-1?r:i[a]),!o&&p!==`<`&&p)){l=a===-1?r:i[a].children;var h=e.indexOf(`<`,f),g=e.slice(f,h===-1?void 0:h);O.test(g)&&(g=` `),(h>-1&&a+l.length>=0||g!==` `)&&l.push({type:`text`,content:g})}}),r},stringify:function(e){return e.reduce(function(e,t){return e+A(``,t)},``)}},M=(e,t)=>{if(!e)return!1;let n=e.props?.children??e.children;return t?n.length>0:!!n},N=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?F(t):t},P=e=>Array.isArray(e)&&e.every(w.isValidElement),F=e=>Array.isArray(e)?e:[e],I=(e,t)=>{let n={...t};return n.props={...t.props,...e.props},n},te=e=>{let t={};if(!e)return t;let n=e=>{F(e).forEach(e=>{l(e)||(M(e)?n(N(e)):u(e)&&!(0,w.isValidElement)(e)&&Object.assign(t,e))})};return n(e),t},L=(e,t,n,r)=>{if(!e)return``;let i=``,o=F(e),s=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return o.forEach((e,o)=>{if(l(e)){i+=`${e}`;return}if((0,w.isValidElement)(e)){let{props:a,type:c}=e,u=Object.keys(a).length,d=s.indexOf(c)>-1,f=a.children;if(!f&&d&&!u){i+=`<${c}/>`;return}if(!f&&(!d||u)||a.i18nIsDynamicList){i+=`<${o}></${o}>`;return}if(d&&u<=1){let e=l(f)?f:L(f,t,n,r);i+=`<${c}>${e}</${c}>`;return}let p=L(f,t,n,r);i+=`<${o}>${p}</${o}>`;return}if(e===null){a(n,`TRANS_NULL_VALUE`,`Passed in a null value as child`,{i18nKey:r});return}if(u(e)){let{format:t,...o}=e,s=Object.keys(o);if(s.length===1){let e=t?`${s[0]}, ${t}`:s[0];i+=`{{${e}}}`;return}a(n,`TRANS_INVALID_OBJ`,`Invalid child - Object should only have keys {{ value, format }} (format is optional).`,{i18nKey:r,child:e});return}a(n,`TRANS_INVALID_VAR`,`Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`,{i18nKey:r,child:e})}),i},R=(e,t=[],n={})=>{if(!e)return e;let r=Object.keys(n),i=[...t,...r],a=``,o=0;for(;o<e.length;)if(e[o]===`<`){let t=!1,n=e.slice(o).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(n){let e=n[1];(/^\d+$/.test(e)||i.includes(e))&&(t=!0,a+=n[0],o+=n[0].length)}if(!t){let n=e.slice(o).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(n){let e=n[1];(/^\d+$/.test(e)||i.includes(e))&&(t=!0,a+=n[0],o+=n[0].length)}}t||(a+=`&lt;`,o+=1)}else a+=e[o],o+=1;return a},ne=(e,t,n,r,i,a,o)=>{if(n===``)return[];let s=i.transKeepBasicHtmlNodesFor||[],c=n&&new RegExp(s.map(e=>`<${e}`).join(`|`)).test(n);if(!e&&!t&&!c&&!o)return[n];let p=t??{},m=e=>{F(e).forEach(e=>{l(e)||(M(e)?m(N(e)):u(e)&&!(0,w.isValidElement)(e)&&Object.assign(p,e))})};m(e);let h=R(n,s,p),g=j.parse(`<0>${h}</0>`),_={...p,...a},v=(e,t,n)=>{let r=N(e),i=b(r,t.children,n);return P(r)&&i.length===0||e.props?.i18nIsDynamicList?r:i},y=(e,t,n,r,i)=>{e.dummy?(e.children=t,n.push((0,w.cloneElement)(e,{key:r},i?void 0:t))):n.push(...w.Children.map([e],e=>{if(e.type===w.Fragment||e.props?.i18nIsDynamicList!==void 0){let n={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{t===`children`||t===`i18nIsDynamicList`||(n[t]=e.props[t])}),(0,w.createElement)(e.type,n,i?null:t)}let n={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{t===`ref`||t===`children`||(n[t]=e.props[t])}),(0,w.cloneElement)(e,n,i?null:t)}))},b=(e,n,a)=>{let p=F(e),m=F(n),h={};return m.reduce((e,n,m)=>{let g=n.children?.[0]?.content&&r.services.interpolator.interpolate(n.children[0].content,_,r.language);if(n.type===`tag`){let f=p[parseInt(n.name,10)];!f&&t&&(f=t[n.name]),a.length===1&&!f&&(f=a[0][n.name]),f||={};let x={...n.attrs};o&&Object.keys(x).forEach(e=>{let t=x[e];l(t)&&(x[e]=d(t))});let S=Object.keys(x).length===0?f:I({props:x},f),C=(0,w.isValidElement)(S),T=C&&M(n,!0)&&!n.voidElement,E=c&&u(S)&&S.dummy&&!C,D=u(t)&&Object.hasOwnProperty.call(t,n.name);if(l(S)){let t=r.services.interpolator.interpolate(S,_,r.language);e.push(t)}else if(M(S)||T)y(S,v(S,n,a),e,m);else if(E)y(S,b(p,n.children,a),e,m);else if(Number.isNaN(parseFloat(n.name)))if(D)y(S,v(S,n,a),e,m,n.voidElement);else if(i.transSupportBasicHtmlNodes&&s.indexOf(n.name)>-1)if(n.voidElement)e.push((0,w.createElement)(n.name,{key:`${n.name}-${m}`}));else{let t=h[n.name]||0;h[n.name]=t+1;let r,i=0;for(let e=0;e<p.length;e+=1){let a=p[e];if((0,w.isValidElement)(a)&&a.type===n.name){if(i===t){r=a;break}i+=1}}let o=b(r?F(N(r)):p,n.children,a);e.push((0,w.createElement)(n.name,{key:`${n.name}-${m}`},o))}else if(n.voidElement)e.push(`<${n.name} />`);else{let t=b(p,n.children,a);e.push(`<${n.name}>${t}</${n.name}>`)}else if(u(S)&&!C){let t=n.children[0]?g:null;t&&e.push(t)}else y(S,g,e,m,n.children.length!==1||!g)}else if(n.type===`text`){let t=i.transWrapTextNodes,a=typeof i.unescape==`function`?i.unescape:f().unescape,s=o?a(r.services.interpolator.interpolate(n.content,_,r.language)):r.services.interpolator.interpolate(n.content,_,r.language);t?e.push((0,w.createElement)(t,{key:`${n.name}-${m}`},s)):e.push(s)}return e},[])};return N(b([{dummy:!0,children:e||[]}],g,F(e||[]))[0])},z=(e,t,n)=>{let r=e.key||t,i=(0,w.cloneElement)(e,{key:r});if(!i.props||!i.props.children||n.indexOf(`${t}/>`)<0&&n.indexOf(`${t} />`)<0)return i;function a(){return(0,w.createElement)(w.Fragment,null,i)}return(0,w.createElement)(a,{key:r})},B=(e,t)=>e.map((e,n)=>z(e,n,t)),V=(e,t)=>{let n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:z(e[r],r,t)})}),n},re=(e,t,n,r)=>e?Array.isArray(e)?B(e,t):u(e)?V(e,t):(p(n,`TRANS_INVALID_COMPONENTS`,`<Trans /> "components" prop expects an object or array`,{i18nKey:r}),null):null,ie=e=>!u(e)||Array.isArray(e)?!1:Object.keys(e).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0);function ae({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:o,defaults:s,components:u,ns:d,i18n:h,t:g,shouldUnescape:_,...v}){let y=h||c();if(!y)return p(y,`NO_I18NEXT_INSTANCE`,`Trans: You need to pass in an i18next instance using i18nextReactModule`,{i18nKey:r}),e;let b=g||y.t.bind(y)||(e=>e),x={...f(),...y.options?.react},S=d||b.ns||y.options?.defaultNS;S=l(S)?[S]:S||[`translation`];let{transDefaultProps:C}=x,T=C?.tOptions?{...C.tOptions,...a}:a,E=_??C?.shouldUnescape,D=C?.values?{...C.values,...o}:o,ee=C?.components?{...C.components,...u}:u,O=L(e,x,y,r),k=s||T?.defaultValue||O||x.transEmptyNodeValue||(typeof r==`function`?m(r):r),{hashTransKey:A}=x,j=r||(A?A(O||k):O||k);o=y.options?.interpolation?.defaultVariables?D&&Object.keys(D).length>0?{...D,...y.options.interpolation.defaultVariables}:{...y.options.interpolation.defaultVariables}:D;let M=te(e);M&&typeof M.count==`number`&&t===void 0&&(t=M.count);let N=o||t!==void 0&&!y.options?.interpolation?.alwaysFormat||!e?T.interpolation:{interpolation:{...T.interpolation,prefix:`#$?`,suffix:`?$#`}},P={...T,context:i||T.context,count:t,...o,...N,defaultValue:k,ns:S},F=j?b(j,P):k;F===j&&k&&(F=k);let I=re(ee,F,y,r),R=I||e,z=null;ie(I)&&(z=I,R=e);let B=ne(R,z,F,y,x,P,E),V=n??x.defaultTransParent;return V?(0,w.createElement)(V,v,B):B}function oe({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:o,defaults:l,components:u,ns:d,i18n:f,t:p,shouldUnescape:m,...h}){let{i18n:g,defaultNS:_}=(0,w.useContext)(s)||{},v=f||g||c(),y=p||v?.t.bind(v);return ae({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a,values:o,defaults:l,components:u,ns:d||y?.ns||_||v?.options?.defaultNS,i18n:v,t:p,shouldUnescape:m,...h})}var se=h(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),ce=h(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),le=h(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),ue=h(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),de=h(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),fe=h(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),pe=h(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),me=h(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),he=h(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),H=`zenith.usedModels.v1`;function U(){if(typeof window>`u`)return[];try{let e=window.localStorage.getItem(H);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>typeof e==`string`&&e.trim().length>0):[]}catch{return[]}}function ge(){return U()}function _e(e){let t=typeof e==`string`?e.trim():``;if(!t||typeof window>`u`)return U();let n=[t,...U().filter(e=>e!==t)];try{window.localStorage.setItem(H,JSON.stringify(n))}catch{}return n}function ve(e){let t=typeof e==`string`?e.trim():``;if(!t||typeof window>`u`)return U();let n=U().filter(e=>e!==t);try{window.localStorage.setItem(H,JSON.stringify(n))}catch{}return n}var W=`mermaid_enhancement_enabled`,G=()=>localStorage.getItem(W)!==`false`,ye=e=>{localStorage.setItem(W,e.toString())},be=()=>`
3
3
 
4
4
  ## 📊 Visual Representation Guidelines
@@ -72,4 +72,4 @@ You are running on **${Te(e)}**.`;return e===`windows`?t+`
72
72
  - **Case Sensitivity**: Linux file systems are case-sensitive (File.txt and file.txt are different files)`:t},Y=`copilot_conclusion_with_options_enhancement_enabled`,X=()=>localStorage.getItem(Y)===`true`,De=e=>{try{localStorage.setItem(Y,e.toString())}catch(e){console.error(`[copilotConclusionWithOptionsEnhancement] Failed to persist setting:`,e)}},Oe=()=>"\n## Copilot Completion Confirmation Rule\n\nBefore ending the task, always call the `conclusion_with_options` tool to confirm whether the user still has additional requests.\n\nRequirements:\n- This rule applies at the end of every task turn.\n- Do not ask final confirmation in plain assistant text; use `conclusion_with_options` for the final confirmation step.\n- The `conclusion_with_options` call must include a `conclusion` object in its arguments.\n- `conclusion.summary` is required and should summarize progress/conclusions.\n- `conclusion.mermaid.graph` is required and must contain a Mermaid graph.\n- Ask a clear confirmation question and include `OK` as one of the selectable options.\n- Only treat the task as finished when the user explicitly selects or replies `OK`.\n- If the user gives any other response, continue assisting and do not end the task.\n- A response that ends the task without `conclusion_with_options` is invalid and must be corrected before finishing.\n",ke=`bamboo_system_prompt_enhancement`,Ae=()=>[`## Bamboo Operational Guidance`,``,"- For recurring or delayed tasks, use the `schedule_tasks` tool to create and manage schedule jobs instead of only describing manual steps.","- The `schedule_tasks` tool supports: `list`, `create`, `patch`, `delete`, `run_now`, and `list_sessions`.","- Bamboo configuration is stored in `${BAMBOO_DATA_DIR}/config.json`.","- Default config path: `~/.bamboo/config.json` (macOS/Linux) or `%USERPROFILE%\\\\.bamboo\\\\config.json` (Windows)."].join(`
73
73
  `),je=e=>e.map(e=>e.trim()).filter(e=>e.length>0).join(`
74
74
 
75
- `),Me=()=>{try{return localStorage.getItem(ke)??``}catch(e){return console.error(`Failed to load system prompt enhancement:`,e),``}},Ne=e=>{try{let t=e.trim()?e:``;localStorage.setItem(ke,t)}catch(e){console.error(`Failed to save system prompt enhancement:`,e)}},Pe=e=>{let t=[];t.push(Ee().trim()),t.push(Ae().trim());let n=Me().trim();return n&&t.push(n),G()&&t.push(be().trim()),J()&&t.push(Ce().trim()),(e??``).trim().toLowerCase()===`copilot`&&X()&&t.push(Oe().trim()),t},Fe=e=>je(Pe(e)),Z=`lotus_vdi_safe_mode`,Q=`lotus-vdi-safe-mode-change`,Ie=()=>{try{return localStorage.getItem(Z)===`true`}catch{return!1}},Le=e=>{try{localStorage.setItem(Z,e.toString())}catch(e){console.error(`[vdiSafeMode] Failed to persist setting:`,e)}},Re=e=>{let t=t=>{t.key!==null&&t.key!==Z||e()};return window.addEventListener(`storage`,t),window.addEventListener(Q,e),()=>{window.removeEventListener(`storage`,t),window.removeEventListener(Q,e)}},$=r(),ze=()=>i(()=>import(`./ConversationClearDialogContent-BjUzjlW5.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url);function Be({onClose:e,failed:t=!1}){let n=o();return(0,$.jsx)(S,{open:!0,onOpenChange:t=>{t||e()},children:(0,$.jsxs)(b,{className:`gap-3 p-4 sm:pb-4`,children:[(0,$.jsx)(y,{children:n(`conversation_clear_title`)}),(0,$.jsx)(x,{children:n(t?`conversation_clear_load_failed`:`loading_4927a53b`)}),(0,$.jsx)(v,{variant:`secondary`,size:`sm`,onClick:e,children:n(`cancel_2cd0f3be`)})]})})}function Ve({loadDialog:e=ze,...t}){let[n]=(0,w.useState)(()=>(0,w.lazy)(async()=>({default:(await e()).ConversationClearDialogContent})));return(0,$.jsx)(g,{name:`Conversation clear`,fallback:()=>(0,$.jsx)(Be,{failed:!0,onClose:t.onClose}),children:(0,$.jsx)(w.Suspense,{fallback:(0,$.jsx)(Be,{onClose:t.onClose}),children:(0,$.jsx)(n,{...t})})})}var He=new class{async listCommands(){return _.get(`/commands`)}async getCommand(e,t){return _.get(`/commands/${encodeURIComponent(e)}/${encodeURIComponent(t)}`)}async getWorkflowCommand(e){return this.getCommand(`workflow`,e)}};export{de as C,se as D,ce as E,oe as O,fe as S,le as T,_e as _,Re as a,me as b,Fe as c,De as d,J as f,ge as g,ye as h,Ie as i,Ne as l,G as m,Ve as n,Le as o,Se as p,Q as r,Me as s,He as t,X as u,ve as v,ue as w,pe as x,he as y};
75
+ `),Me=()=>{try{return localStorage.getItem(ke)??``}catch(e){return console.error(`Failed to load system prompt enhancement:`,e),``}},Ne=e=>{try{let t=e.trim()?e:``;localStorage.setItem(ke,t)}catch(e){console.error(`Failed to save system prompt enhancement:`,e)}},Pe=e=>{let t=[];t.push(Ee().trim()),t.push(Ae().trim());let n=Me().trim();return n&&t.push(n),G()&&t.push(be().trim()),J()&&t.push(Ce().trim()),(e??``).trim().toLowerCase()===`copilot`&&X()&&t.push(Oe().trim()),t},Fe=e=>je(Pe(e)),Z=`lotus_vdi_safe_mode`,Q=`lotus-vdi-safe-mode-change`,Ie=()=>{try{return localStorage.getItem(Z)===`true`}catch{return!1}},Le=e=>{try{localStorage.setItem(Z,e.toString())}catch(e){console.error(`[vdiSafeMode] Failed to persist setting:`,e)}},Re=e=>{let t=t=>{t.key!==null&&t.key!==Z||e()};return window.addEventListener(`storage`,t),window.addEventListener(Q,e),()=>{window.removeEventListener(`storage`,t),window.removeEventListener(Q,e)}},$=r(),ze=()=>i(()=>import(`./ConversationClearDialogContent-Crm59otF.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url);function Be({onClose:e,failed:t=!1}){let n=o();return(0,$.jsx)(S,{open:!0,onOpenChange:t=>{t||e()},children:(0,$.jsxs)(b,{className:`gap-3 p-4 sm:pb-4`,children:[(0,$.jsx)(y,{children:n(`conversation_clear_title`)}),(0,$.jsx)(x,{children:n(t?`conversation_clear_load_failed`:`loading_4927a53b`)}),(0,$.jsx)(v,{variant:`secondary`,size:`sm`,onClick:e,children:n(`cancel_2cd0f3be`)})]})})}function Ve({loadDialog:e=ze,...t}){let[n]=(0,w.useState)(()=>(0,w.lazy)(async()=>({default:(await e()).ConversationClearDialogContent})));return(0,$.jsx)(g,{name:`Conversation clear`,fallback:()=>(0,$.jsx)(Be,{failed:!0,onClose:t.onClose}),children:(0,$.jsx)(w.Suspense,{fallback:(0,$.jsx)(Be,{onClose:t.onClose}),children:(0,$.jsx)(n,{...t})})})}var He=new class{async listCommands(){return _.get(`/commands`)}async getCommand(e,t){return _.get(`/commands/${encodeURIComponent(e)}/${encodeURIComponent(t)}`)}async getWorkflowCommand(e){return this.getCommand(`workflow`,e)}};export{de as C,se as D,ce as E,oe as O,fe as S,le as T,_e as _,Re as a,me as b,Fe as c,De as d,J as f,ge as g,ye as h,Ie as i,Ne as l,G as m,Ve as n,Le as o,Se as p,Q as r,Me as s,He as t,X as u,ve as v,ue as w,pe as x,he as y};
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Root-kgWSyvAi.js","./rolldown-runtime-QTnfLwEv.js","./vendor-react-CCIEwYL0.js","./runtimeConfig-DNyol2mX.js","./preload-helper-DYl5dUZ5.js","./ui-DHEY0Lgx.js","./shim-B7rqb4U2.js","./command-CIuEm3dl.js","./createLucideIcon-5m7IB1Aa.js","./ErrorBoundary-DZL5VW7G.js","./button-Cfb4l-V4.js","./bundle-mjs-B_AA55HL.js","./dist-F2p7j0vG.js","./utils-DqNhCx4L.js","./api-CPcpMjoM.js","./responsive-dialog-D6zJ6jIQ.js","./x-CH9nNoJJ.js","./motion-A2StR0Mh.js","./dist-DF6JjXE-.js","./popover-Csd6fbme.js","./dist-C7Y4oZCX.js","./floating-ui.dom-BRnbq1vk.js","./circle-question-mark-psZ0qSH-.js","./loader-circle-B9fKDSy8.js","./arrow-left-wQDuPz_E.js","./useBrowserSession-jKAyolWq.js","./RightWorkbenchSurface-CMHluk_b.js","./check-D8KAspD5.js","./chevron-down-x8rJ6PKU.js","./dist-D8rsXFxT.js","./dist-DCRuquMi.js","./select-CmSs2Iud.js","./dist-fTqKuvxa.js","./dropdown-menu-Db0D8tOn.js","./copy-DmHig_f7.js","./composerStyles-BGNR54wZ.js","./commandFocusReturn-DRzRqGCt.js","./plus-Do3us3O5.js","./refresh-cw-DHR8UyeF.js","./search-DcePmjfr.js","./clipboard-CyQ_pZV9.js","./react-BqtYw2Yd.js","./appStore-DhQwkuOp.js","./AgentService-BxkDZijx.js","./project-Bes6r3Er.js","./dialog-CfOua_Le.js","./FileOperationsService-XcscMou0.js","./ExternalLinkDialog-BLhTAIN3.js","./earth-CjVWVKTC.js","./external-link-zzXjsZJY.js","./input-BDZy7WK3.js","./themeStore-iULXkh0N.js","./useWorkflowCatalog-CLMiMU7o.js","./projectSidebarPreferences-BReX5c6j.js","./SupervisorProjectScopeDialog-CzP4lg8j.js","./client-Cxjm7aQO.js","./textarea-BKzYyWL5.js","./state-BEeCkuhw.js","./ownerAccessContext-DnfKhLRV.js","./ticketWorkLabels-DuizmQP4.js","./runDiagnosticId-Chp3mq_m.js","./ErrorBoundary-RQjzfWIN.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,n,t as r}from"./vendor-react-CCIEwYL0.js";import{a as i,n as a,r as o,t as s}from"./runtimeConfig-DNyol2mX.js";import{t as c}from"./preload-helper-DYl5dUZ5.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=e(t(),1),u=n(),d=`lotus_next_backend_endpoint_v1`,f=`copilot_backend_base_url`,p=`Backend override migration could not be verified; the legacy override was preserved.`,m=`Canonical backend override is active, but legacy override preservation could not be verified.`,h=e=>Array.from(e).some(e=>{let t=e.charCodeAt(0);return t<=31||t===127}),g=e=>{let t=e.split(`.`);if(t.length!==4)return null;let n=t.map(e=>/^\d{1,3}$/.test(e)?Number(e):NaN);return n.every(e=>Number.isInteger(e)&&e>=0&&e<=255)?n:null},_=e=>{if(!e.includes(`:`))return null;let t=e.split(`::`);if(t.length>2)return null;let n=e=>{if(!e)return[];let t=e.split(`:`);return t.some(e=>!/^[\da-f]{1,4}$/.test(e))?null:t.map(e=>Number.parseInt(e,16))},r=n(t[0]??``),i=n(t[1]??``);if(!r||!i)return null;if(t.length===1)return r.length===8?r:null;let a=8-r.length-i.length;return a<1?null:[...r,...Array(a).fill(0),...i]},v=e=>{let t=e.trim().toLowerCase(),n=t.startsWith(`[`)&&t.endsWith(`]`)?t.slice(1,-1):t,r=g(n);if(r)return{kind:`ipv4`,octets:r};let i=_(n);return i?{kind:`ipv6`,hextets:i}:{kind:`dns`,labels:n.replace(/\.+$/,``).split(`.`)}},y=e=>{let t=v(e);if(t.kind===`dns`)return t.labels.at(-1)===`localhost`;if(t.kind===`ipv4`)return t.octets[0]===127;let n=t.hextets.slice(0,7).every(e=>e===0)&&t.hextets[7]===1,r=t.hextets.slice(0,5).every(e=>e===0)&&t.hextets[5]===65535,i=(t.hextets[6]??0)>>>8;return n||r&&i===127},b=e=>{if(!e?.href)return null;try{return new URL(e.href)}catch{throw new s(`The page location is not a valid URL.`)}},x=()=>{try{return globalThis.localStorage===void 0?null:globalThis.localStorage}catch{return null}},S=(e,t)=>{let n=!0,r=(t,r)=>{try{r===null?e.removeItem(t):e.setItem(t,r)}catch{n=!1}};r(d,t.versioned),r(f,t.legacy);try{n=e.getItem(`lotus_next_backend_endpoint_v1`)===t.versioned&&n}catch{n=!1}try{n=e.getItem(`copilot_backend_base_url`)===t.legacy&&n}catch{n=!1}return n},C=(e,t)=>{let n=o(e),r=new URL(n.nativeApi);if(t?.protocol===`https:`&&r.protocol!==`https:`)throw new s(`An HTTPS Lotus Next page cannot use an insecure HTTP backend endpoint.`);if(t&&(t.protocol===`http:`||t.protocol===`https:`)&&!y(t.hostname)&&y(r.hostname))throw new s(`A remotely served Lotus Next page cannot target a loopback backend.`);return n.nativeApi},w=e=>{if(h(e))return e;let t=e.trim();if(t.includes(`\\`)||t.includes(`?`)||t.includes(`#`))return e;let n=/^([A-Za-z][A-Za-z\d+.-]*:\/\/[^/]+)(\/.*)?$/.exec(t);return n&&/^\/v1\/*$/.test(n[2]??``)?`${n[1]}/api/v1`:e},T=(e,t,n,r)=>{let i=!1;try{e.removeItem(t),i=e.getItem(t)===null}catch{}let a=n instanceof s?n.message:`Backend override validation failed.`;r(`${i?`Removed`:`Ignored`} unsafe backend override: ${a}`)},E=(e,t,n)=>{if(!e)return null;let r;try{r=e.getItem(d)}catch{return null}if(r!==null)try{return C(r,t)}catch(t){return T(e,d,t,n),null}let i;try{i=e.getItem(f)}catch{return null}if(i===null)return null;let a;try{a=C(w(i),t)}catch(t){return T(e,f,t,n),null}let o=!1;try{e.setItem(d,a),o=e.getItem(d)===a}catch{}if(!o)return S(e,{versioned:null,legacy:i}),n(p),a;let s=!1;try{e.removeItem(f),s=e.getItem(f)===null}catch{}if(!s){let t=!1;try{e.setItem(f,i)}catch{}try{t=e.getItem(f)===i}catch{}n(t?p:m)}return a},D=e=>typeof e==`object`&&!!e&&typeof e.invoke==`function`,O=e=>!!(e&&(e.protocol===`http:`||e.protocol===`https:`)&&!y(e.hostname)),k=(e,t)=>{let n=D(e.tauriInternals)&&!O(t);return{kind:n?`bodhi-desktop`:e.embedded?`bamboo-embedded`:`browser`,capabilities:{nativeFileSystem:n,nativeNotifications:n,externalShell:n,sidecarBackend:n}}},A=(e,t)=>{if(!D(e.tauriInternals)||e.sidecarPort===void 0||e.sidecarPort===null)return null;if(O(t))throw new s(`A remotely served Lotus Next page cannot accept a loopback Bodhi sidecar injection.`);if(typeof e.sidecarPort!=`number`||!Number.isInteger(e.sidecarPort)||e.sidecarPort<1||e.sidecarPort>65535)throw new s(`The Bodhi sidecar port must be an integer from 1 to 65535.`);if(t?.protocol===`https:`)throw new s(`An HTTPS Lotus Next page cannot connect to an HTTP Bodhi sidecar.`);return`http://127.0.0.1:${e.sidecarPort}`},j=e=>{if(!e||e.protocol!==`http:`&&e.protocol!==`https:`)throw new s(`No supported backend endpoint was provided. Serve Lotus Next over HTTP(S) or inject a trusted Bodhi sidecar port.`);return e.origin},M=(e={})=>{let t=e.location===void 0?typeof globalThis.location?.href==`string`?{href:globalThis.location.href}:null:e.location,n=e.storage===void 0?x():e.storage,r=e.tauriInternals===void 0?typeof window>`u`?void 0:window.__TAURI_INTERNALS__:e.tauriInternals,i=e.sidecarPort===void 0?typeof window>`u`?void 0:window.__BAMBOO_BACKEND_PORT__:e.sidecarPort,o=e.embedded??(typeof window<`u`&&window.parent!==window),s={...e,tauriInternals:r,sidecarPort:i,embedded:o},c=b(t),l=e.warn??(e=>console.warn(`[runtime] ${e}`)),u=A(s,c),d=u?null:E(n,c,l),f=null;!u&&!d&&e.build?.backendBaseUrl?.trim()&&(f=C(e.build.backendBaseUrl,c));let p,m;return u?(p=`tauri-sidecar`,m=u):d?(p=`stored-override`,m=d):f?(p=`public-build-default`,m=f):(p=`page-origin`,m=j(c)),a({host:k(s,c),endpointSource:p,backendBaseUrl:m,mode:e.build?.mode,development:e.build?.development,version:e.build?.version,revision:e.build?.revision})},N=()=>M({build:{backendBaseUrl:void 0,version:`2026.11.13`,revision:`43ac37eee241f0e1f0507a9024a5f4016916b058`,mode:`production`,development:!1}}),P=/(?:^|\/)(?:Settings|WorkflowRunsContent|runDiagnostic|RunDiagnosticsDialogContent)-[A-Za-z0-9_-]+\.(?:js|css)(?:[?#]|$)/,F=e=>e instanceof Error?[e.message,...e.stack?.split(`
3
- `)??[]].some(e=>P.test(e.trim())):typeof e==`string`&&P.test(e),I=r(),L=!1;window.addEventListener(`vite:preloadError`,e=>{if(F(e.payload))return;let t=`bodhi_preload_reload_at`,n=Date.now(),r=0;try{r=Number(window.sessionStorage.getItem(t)??0)}catch{r=L?n:0}if(!(n-r<1e4)){e.preventDefault(),L=!0;try{window.sessionStorage.setItem(t,String(n))}catch{}window.location.reload()}});var R=document.getElementById(`root`);if(!R)throw Error(`Lotus Next root element is missing.`);(async()=>{i(N());let[{default:e},{default:t}]=await Promise.all([c(()=>import(`./Root-kgWSyvAi.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]),import.meta.url),c(()=>import(`./ErrorBoundary-RQjzfWIN.js`),__vite__mapDeps([61,9,1,2,5,4,6,8,10,11,12,13]),import.meta.url)]);(0,u.createRoot)(R).render((0,I.jsx)(l.StrictMode,{children:(0,I.jsx)(t,{name:`Root`,children:(0,I.jsx)(e,{})})}))})().catch(e=>{let t=e instanceof Error?e.message:String(e);console.error(`[runtime] Lotus Next bootstrap failed:`,e);let n=document.createElement(`main`);n.className=`flex min-h-screen items-center justify-center bg-background p-6 text-foreground`;let r=document.createElement(`section`);r.className=`w-full max-w-xl rounded-2xl border bg-card p-6 shadow-lg`;let i=document.createElement(`h1`);i.className=`text-xl font-semibold`;let a=window.navigator.language;try{a=window.localStorage.getItem(`lotus_ui_locale_v1`)||a}catch{}let o=a.toLowerCase().startsWith(`zh`);i.textContent=o?`Lotus Next 无法启动`:`Lotus Next could not start`;let s=document.createElement(`p`);s.className=`mt-3 text-sm leading-relaxed text-muted-foreground`,s.textContent=o?`当前宿主提供了不受支持或不安全的运行时配置。请升级匹配的完整前端与宿主制品,或修正公开后端地址后重新加载。`:`The host supplied unsupported or unsafe runtime configuration. Upgrade the matching frontend and host artifacts, or correct the public backend address and reload.`;let c=document.createElement(`pre`);c.className=`mt-4 overflow-auto rounded-lg bg-muted p-3 text-xs`,c.textContent=t,r.append(i,s,c),n.append(r),R.replaceChildren(n)});
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Root-_T_3-N3f.js","./rolldown-runtime-QTnfLwEv.js","./vendor-react-CCIEwYL0.js","./runtimeConfig-DNyol2mX.js","./preload-helper-DYl5dUZ5.js","./ui-DHEY0Lgx.js","./shim-B7rqb4U2.js","./command-C2qhILAZ.js","./createLucideIcon-5m7IB1Aa.js","./ErrorBoundary-DZL5VW7G.js","./button-Cfb4l-V4.js","./bundle-mjs-B_AA55HL.js","./dist-F2p7j0vG.js","./utils-DqNhCx4L.js","./api-CPcpMjoM.js","./responsive-dialog-D6zJ6jIQ.js","./x-CH9nNoJJ.js","./motion-A2StR0Mh.js","./dist-DF6JjXE-.js","./popover-Csd6fbme.js","./dist-C7Y4oZCX.js","./floating-ui.dom-BRnbq1vk.js","./circle-question-mark-psZ0qSH-.js","./loader-circle-B9fKDSy8.js","./arrow-left-wQDuPz_E.js","./useBrowserSession-jKAyolWq.js","./RightWorkbenchSurface-CMHluk_b.js","./check-D8KAspD5.js","./chevron-down-x8rJ6PKU.js","./dist-D8rsXFxT.js","./dist-DCRuquMi.js","./select-CmSs2Iud.js","./dist-fTqKuvxa.js","./dropdown-menu-Db0D8tOn.js","./copy-DmHig_f7.js","./composerStyles-BGNR54wZ.js","./commandFocusReturn-DRzRqGCt.js","./plus-Do3us3O5.js","./refresh-cw-DHR8UyeF.js","./search-DcePmjfr.js","./clipboard-CyQ_pZV9.js","./react-BqtYw2Yd.js","./appStore-C9vSUDXg.js","./AgentService-BxkDZijx.js","./project-Bes6r3Er.js","./dialog-CfOua_Le.js","./FileOperationsService-XcscMou0.js","./ExternalLinkDialog-BLhTAIN3.js","./earth-CjVWVKTC.js","./external-link-zzXjsZJY.js","./input-BDZy7WK3.js","./themeStore-iULXkh0N.js","./useWorkflowCatalog-CLMiMU7o.js","./projectSidebarPreferences-BReX5c6j.js","./SupervisorProjectScopeDialog-CzP4lg8j.js","./client-Cxjm7aQO.js","./textarea-BKzYyWL5.js","./state-BEeCkuhw.js","./ownerAccessContext-DnfKhLRV.js","./ticketWorkLabels-DuizmQP4.js","./runDiagnosticId-Chp3mq_m.js","./ErrorBoundary-RQjzfWIN.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,n,t as r}from"./vendor-react-CCIEwYL0.js";import{a as i,n as a,r as o,t as s}from"./runtimeConfig-DNyol2mX.js";import{t as c}from"./preload-helper-DYl5dUZ5.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=e(t(),1),u=n(),d=`lotus_next_backend_endpoint_v1`,f=`copilot_backend_base_url`,p=`Backend override migration could not be verified; the legacy override was preserved.`,m=`Canonical backend override is active, but legacy override preservation could not be verified.`,h=e=>Array.from(e).some(e=>{let t=e.charCodeAt(0);return t<=31||t===127}),g=e=>{let t=e.split(`.`);if(t.length!==4)return null;let n=t.map(e=>/^\d{1,3}$/.test(e)?Number(e):NaN);return n.every(e=>Number.isInteger(e)&&e>=0&&e<=255)?n:null},_=e=>{if(!e.includes(`:`))return null;let t=e.split(`::`);if(t.length>2)return null;let n=e=>{if(!e)return[];let t=e.split(`:`);return t.some(e=>!/^[\da-f]{1,4}$/.test(e))?null:t.map(e=>Number.parseInt(e,16))},r=n(t[0]??``),i=n(t[1]??``);if(!r||!i)return null;if(t.length===1)return r.length===8?r:null;let a=8-r.length-i.length;return a<1?null:[...r,...Array(a).fill(0),...i]},v=e=>{let t=e.trim().toLowerCase(),n=t.startsWith(`[`)&&t.endsWith(`]`)?t.slice(1,-1):t,r=g(n);if(r)return{kind:`ipv4`,octets:r};let i=_(n);return i?{kind:`ipv6`,hextets:i}:{kind:`dns`,labels:n.replace(/\.+$/,``).split(`.`)}},y=e=>{let t=v(e);if(t.kind===`dns`)return t.labels.at(-1)===`localhost`;if(t.kind===`ipv4`)return t.octets[0]===127;let n=t.hextets.slice(0,7).every(e=>e===0)&&t.hextets[7]===1,r=t.hextets.slice(0,5).every(e=>e===0)&&t.hextets[5]===65535,i=(t.hextets[6]??0)>>>8;return n||r&&i===127},b=e=>{if(!e?.href)return null;try{return new URL(e.href)}catch{throw new s(`The page location is not a valid URL.`)}},x=()=>{try{return globalThis.localStorage===void 0?null:globalThis.localStorage}catch{return null}},S=(e,t)=>{let n=!0,r=(t,r)=>{try{r===null?e.removeItem(t):e.setItem(t,r)}catch{n=!1}};r(d,t.versioned),r(f,t.legacy);try{n=e.getItem(`lotus_next_backend_endpoint_v1`)===t.versioned&&n}catch{n=!1}try{n=e.getItem(`copilot_backend_base_url`)===t.legacy&&n}catch{n=!1}return n},C=(e,t)=>{let n=o(e),r=new URL(n.nativeApi);if(t?.protocol===`https:`&&r.protocol!==`https:`)throw new s(`An HTTPS Lotus Next page cannot use an insecure HTTP backend endpoint.`);if(t&&(t.protocol===`http:`||t.protocol===`https:`)&&!y(t.hostname)&&y(r.hostname))throw new s(`A remotely served Lotus Next page cannot target a loopback backend.`);return n.nativeApi},w=e=>{if(h(e))return e;let t=e.trim();if(t.includes(`\\`)||t.includes(`?`)||t.includes(`#`))return e;let n=/^([A-Za-z][A-Za-z\d+.-]*:\/\/[^/]+)(\/.*)?$/.exec(t);return n&&/^\/v1\/*$/.test(n[2]??``)?`${n[1]}/api/v1`:e},T=(e,t,n,r)=>{let i=!1;try{e.removeItem(t),i=e.getItem(t)===null}catch{}let a=n instanceof s?n.message:`Backend override validation failed.`;r(`${i?`Removed`:`Ignored`} unsafe backend override: ${a}`)},E=(e,t,n)=>{if(!e)return null;let r;try{r=e.getItem(d)}catch{return null}if(r!==null)try{return C(r,t)}catch(t){return T(e,d,t,n),null}let i;try{i=e.getItem(f)}catch{return null}if(i===null)return null;let a;try{a=C(w(i),t)}catch(t){return T(e,f,t,n),null}let o=!1;try{e.setItem(d,a),o=e.getItem(d)===a}catch{}if(!o)return S(e,{versioned:null,legacy:i}),n(p),a;let s=!1;try{e.removeItem(f),s=e.getItem(f)===null}catch{}if(!s){let t=!1;try{e.setItem(f,i)}catch{}try{t=e.getItem(f)===i}catch{}n(t?p:m)}return a},D=e=>typeof e==`object`&&!!e&&typeof e.invoke==`function`,O=e=>!!(e&&(e.protocol===`http:`||e.protocol===`https:`)&&!y(e.hostname)),k=(e,t)=>{let n=D(e.tauriInternals)&&!O(t);return{kind:n?`bodhi-desktop`:e.embedded?`bamboo-embedded`:`browser`,capabilities:{nativeFileSystem:n,nativeNotifications:n,externalShell:n,sidecarBackend:n}}},A=(e,t)=>{if(!D(e.tauriInternals)||e.sidecarPort===void 0||e.sidecarPort===null)return null;if(O(t))throw new s(`A remotely served Lotus Next page cannot accept a loopback Bodhi sidecar injection.`);if(typeof e.sidecarPort!=`number`||!Number.isInteger(e.sidecarPort)||e.sidecarPort<1||e.sidecarPort>65535)throw new s(`The Bodhi sidecar port must be an integer from 1 to 65535.`);if(t?.protocol===`https:`)throw new s(`An HTTPS Lotus Next page cannot connect to an HTTP Bodhi sidecar.`);return`http://127.0.0.1:${e.sidecarPort}`},j=e=>{if(!e||e.protocol!==`http:`&&e.protocol!==`https:`)throw new s(`No supported backend endpoint was provided. Serve Lotus Next over HTTP(S) or inject a trusted Bodhi sidecar port.`);return e.origin},M=(e={})=>{let t=e.location===void 0?typeof globalThis.location?.href==`string`?{href:globalThis.location.href}:null:e.location,n=e.storage===void 0?x():e.storage,r=e.tauriInternals===void 0?typeof window>`u`?void 0:window.__TAURI_INTERNALS__:e.tauriInternals,i=e.sidecarPort===void 0?typeof window>`u`?void 0:window.__BAMBOO_BACKEND_PORT__:e.sidecarPort,o=e.embedded??(typeof window<`u`&&window.parent!==window),s={...e,tauriInternals:r,sidecarPort:i,embedded:o},c=b(t),l=e.warn??(e=>console.warn(`[runtime] ${e}`)),u=A(s,c),d=u?null:E(n,c,l),f=null;!u&&!d&&e.build?.backendBaseUrl?.trim()&&(f=C(e.build.backendBaseUrl,c));let p,m;return u?(p=`tauri-sidecar`,m=u):d?(p=`stored-override`,m=d):f?(p=`public-build-default`,m=f):(p=`page-origin`,m=j(c)),a({host:k(s,c),endpointSource:p,backendBaseUrl:m,mode:e.build?.mode,development:e.build?.development,version:e.build?.version,revision:e.build?.revision})},N=()=>M({build:{backendBaseUrl:void 0,version:`2026.11.14`,revision:`8d4dcf80ae99f1a2ea4f5f21cb1e1776993ee10a`,mode:`production`,development:!1}}),P=/(?:^|\/)(?:Settings|WorkflowRunsContent|runDiagnostic|RunDiagnosticsDialogContent)-[A-Za-z0-9_-]+\.(?:js|css)(?:[?#]|$)/,F=e=>e instanceof Error?[e.message,...e.stack?.split(`
3
+ `)??[]].some(e=>P.test(e.trim())):typeof e==`string`&&P.test(e),I=r(),L=!1;window.addEventListener(`vite:preloadError`,e=>{if(F(e.payload))return;let t=`bodhi_preload_reload_at`,n=Date.now(),r=0;try{r=Number(window.sessionStorage.getItem(t)??0)}catch{r=L?n:0}if(!(n-r<1e4)){e.preventDefault(),L=!0;try{window.sessionStorage.setItem(t,String(n))}catch{}window.location.reload()}});var R=document.getElementById(`root`);if(!R)throw Error(`Lotus Next root element is missing.`);(async()=>{i(N());let[{default:e},{default:t}]=await Promise.all([c(()=>import(`./Root-_T_3-N3f.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]),import.meta.url),c(()=>import(`./ErrorBoundary-RQjzfWIN.js`),__vite__mapDeps([61,9,1,2,5,4,6,8,10,11,12,13]),import.meta.url)]);(0,u.createRoot)(R).render((0,I.jsx)(l.StrictMode,{children:(0,I.jsx)(t,{name:`Root`,children:(0,I.jsx)(e,{})})}))})().catch(e=>{let t=e instanceof Error?e.message:String(e);console.error(`[runtime] Lotus Next bootstrap failed:`,e);let n=document.createElement(`main`);n.className=`flex min-h-screen items-center justify-center bg-background p-6 text-foreground`;let r=document.createElement(`section`);r.className=`w-full max-w-xl rounded-2xl border bg-card p-6 shadow-lg`;let i=document.createElement(`h1`);i.className=`text-xl font-semibold`;let a=window.navigator.language;try{a=window.localStorage.getItem(`lotus_ui_locale_v1`)||a}catch{}let o=a.toLowerCase().startsWith(`zh`);i.textContent=o?`Lotus Next 无法启动`:`Lotus Next could not start`;let s=document.createElement(`p`);s.className=`mt-3 text-sm leading-relaxed text-muted-foreground`,s.textContent=o?`当前宿主提供了不受支持或不安全的运行时配置。请升级匹配的完整前端与宿主制品,或修正公开后端地址后重新加载。`:`The host supplied unsupported or unsafe runtime configuration. Upgrade the matching frontend and host artifacts, or correct the public backend address and reload.`;let c=document.createElement(`pre`);c.className=`mt-4 overflow-auto rounded-lg bg-muted p-3 text-xs`,c.textContent=t,r.append(i,s,c),n.append(r),R.replaceChildren(n)});
@@ -111,7 +111,7 @@
111
111
  "modules": [],
112
112
  "packages": []
113
113
  },
114
- "assets/appStore-DhQwkuOp.js": {
114
+ "assets/appStore-C9vSUDXg.js": {
115
115
  "modules": [
116
116
  "src/lib/completedAnswerHandoff.ts",
117
117
  "src/lib/completedAnswerHandoffRegistry.ts",
@@ -542,7 +542,7 @@
542
542
  "modules": [],
543
543
  "packages": []
544
544
  },
545
- "assets/command-CIuEm3dl.js": {
545
+ "assets/command-C2qhILAZ.js": {
546
546
  "modules": [
547
547
  "src/components/chat/ConversationClearDialog.tsx",
548
548
  "src/services/command/CommandService.ts",
@@ -630,7 +630,7 @@
630
630
  "modules": [],
631
631
  "packages": []
632
632
  },
633
- "assets/ConversationClearDialogContent-BjUzjlW5.js": {
633
+ "assets/ConversationClearDialogContent-Crm59otF.js": {
634
634
  "modules": [
635
635
  "src/components/chat/ConversationClearDialogContent.tsx"
636
636
  ],
@@ -1486,7 +1486,7 @@
1486
1486
  "modules": [],
1487
1487
  "packages": []
1488
1488
  },
1489
- "assets/index-D6ZjT3if.js": {
1489
+ "assets/index-DB2hXQ9j.js": {
1490
1490
  "modules": [
1491
1491
  "src/index.css",
1492
1492
  "src/main.tsx",
@@ -1586,7 +1586,7 @@
1586
1586
  "@radix-ui/react-label"
1587
1587
  ]
1588
1588
  },
1589
- "assets/JianduProjectMemories-bTTYZdJm.js": {
1589
+ "assets/JianduProjectMemories-rD8x44mY.js": {
1590
1590
  "modules": [
1591
1591
  "src/components/chat/settings/JianduProjectMemories.tsx"
1592
1592
  ],
@@ -2655,7 +2655,7 @@
2655
2655
  "modules": [],
2656
2656
  "packages": []
2657
2657
  },
2658
- "assets/Root-kgWSyvAi.js": {
2658
+ "assets/Root-_T_3-N3f.js": {
2659
2659
  "modules": [
2660
2660
  "src/App.tsx",
2661
2661
  "src/Root.tsx",
@@ -2949,7 +2949,7 @@
2949
2949
  ],
2950
2950
  "packages": []
2951
2951
  },
2952
- "assets/Settings-DWx59xvd.js": {
2952
+ "assets/Settings-CJZ0B2vK.js": {
2953
2953
  "modules": [
2954
2954
  "src/components/chat/Settings.css",
2955
2955
  "src/components/chat/Settings.tsx",
@@ -3060,7 +3060,7 @@
3060
3060
  "use-sync-external-store"
3061
3061
  ]
3062
3062
  },
3063
- "assets/SidebarProjectDrag-CsY9x3a_.js": {
3063
+ "assets/SidebarProjectDrag-BXnEyWZA.js": {
3064
3064
  "modules": [
3065
3065
  "src/components/app/SidebarProjectDrag.tsx",
3066
3066
  "src/components/app/sidebarDrag.ts"
package/dist/index.html CHANGED
@@ -16,7 +16,7 @@
16
16
  <meta name="apple-mobile-web-app-title" content="Bodhi" />
17
17
  <meta name="theme-color" content="#0a0a0a" />
18
18
  <title>Bodhi</title>
19
- <script type="module" crossorigin src="./assets/index-D6ZjT3if.js"></script>
19
+ <script type="module" crossorigin src="./assets/index-DB2hXQ9j.js"></script>
20
20
  <link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-QTnfLwEv.js">
21
21
  <link rel="modulepreload" crossorigin href="./assets/vendor-react-CCIEwYL0.js">
22
22
  <link rel="modulepreload" crossorigin href="./assets/runtimeConfig-DNyol2mX.js">
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "packageName": "@bigduu/lotus-next",
4
- "packageVersion": "2026.11.13",
5
- "sourceRevision": "43ac37eee241f0e1f0507a9024a5f4016916b058",
4
+ "packageVersion": "2026.11.14",
5
+ "sourceRevision": "8d4dcf80ae99f1a2ea4f5f21cb1e1776993ee10a",
6
6
  "sourceDirty": false,
7
7
  "entrypoint": "index.html",
8
- "resourcesSha256": "d8fed3a4337f3c8cc9939ba95aab95b4ccb4cf1f63d6fdb5c5a9bef1e891d752",
8
+ "resourcesSha256": "909c727489a69086f2a5ec94d186712380f714482a53d6c5dcb090a66cd41f7d",
9
9
  "resources": [
10
10
  {
11
11
  "path": "asset-manifest.json",
12
12
  "size": 219282,
13
- "sha256": "c8d3eebbe50fa339692e74bd3eb90d1e8b781f10621d3ed7bbbe51bd3849ec2c"
13
+ "sha256": "2aca0ccaa7d3d174ef30a3cab53a96f2df5327c7be54d07d5231c0d894d4ea5e"
14
14
  },
15
15
  {
16
16
  "path": "assets/AgentService-BxkDZijx.js",
@@ -38,9 +38,9 @@
38
38
  "sha256": "3654a4ac56521c7509d7df5a5dc0d78aaa7fac7a64b6195099c6a2fc1c0ece30"
39
39
  },
40
40
  {
41
- "path": "assets/ConversationClearDialogContent-BjUzjlW5.js",
41
+ "path": "assets/ConversationClearDialogContent-Crm59otF.js",
42
42
  "size": 2816,
43
- "sha256": "cbf23945e147da8bd7718de5f72c8124b6fdf68a4aba33e89b3b6f5a1048001b"
43
+ "sha256": "13e19671a3f9caa9456c18a70b60943ec74fb8ade9b52aa1b685437cf25e5158"
44
44
  },
45
45
  {
46
46
  "path": "assets/ErrorBoundary-DZL5VW7G.js",
@@ -63,9 +63,9 @@
63
63
  "sha256": "507c93f10e72ddce9d6056d758d701c2f6376ba859e7a994d93c592594540957"
64
64
  },
65
65
  {
66
- "path": "assets/JianduProjectMemories-bTTYZdJm.js",
66
+ "path": "assets/JianduProjectMemories-rD8x44mY.js",
67
67
  "size": 16319,
68
- "sha256": "d10c601310ddb1e8f2e5e888d361b8a9d0813872bb7deb66eb22ce285c9fd1ea"
68
+ "sha256": "eb3a3ff944cc5bc47431d0de8c3570be19b26e590e7b1b45a2267be197fd7539"
69
69
  },
70
70
  {
71
71
  "path": "assets/Markdown-DcU5BDYf.js",
@@ -103,29 +103,29 @@
103
103
  "sha256": "ebdf6687af45b2d500a9f9e62ed0ab757be74a72be782fda63b163d2fd64194d"
104
104
  },
105
105
  {
106
- "path": "assets/Root-kgWSyvAi.js",
107
- "size": 589285,
108
- "sha256": "68e9353a96e087982b1efeaeb889fdfa8a10a401429e874fbf127fab48330ed4"
106
+ "path": "assets/Root-_T_3-N3f.js",
107
+ "size": 590176,
108
+ "sha256": "6ee3b3e634a3dbf4de541557443fc400a0e86b221e60c2960ddedd0a7a360009"
109
109
  },
110
110
  {
111
111
  "path": "assets/RunDiagnosticsDialogContent-CYQ_gQRw.js",
112
112
  "size": 8515,
113
113
  "sha256": "46d4e685555fa9fbd548452bda72e80d2d4814f8ff210d718a460532defd664b"
114
114
  },
115
+ {
116
+ "path": "assets/Settings-CJZ0B2vK.js",
117
+ "size": 344320,
118
+ "sha256": "c33524ea980459580b50a8e89f3afb85ff13f2a20de867a66da682efba76fbae"
119
+ },
115
120
  {
116
121
  "path": "assets/Settings-CmyQkAqB.css",
117
122
  "size": 5243,
118
123
  "sha256": "f7d26c51c2ae895e22492b396c1b1bc445bac188e22b3fb9810c3490a8062d8a"
119
124
  },
120
125
  {
121
- "path": "assets/Settings-DWx59xvd.js",
122
- "size": 344320,
123
- "sha256": "e1fe3418f1d7639b4cd2ef64e207e2474e67893c2d3b11e8ec73dbe4dd2f888f"
124
- },
125
- {
126
- "path": "assets/SidebarProjectDrag-CsY9x3a_.js",
126
+ "path": "assets/SidebarProjectDrag-BXnEyWZA.js",
127
127
  "size": 7028,
128
- "sha256": "dddd5f26612da7943c6311fb0e1e1f8b7acf8adcaa004831dca10fb958b8c856"
128
+ "sha256": "61fd0e2ee0bf1c63ef21cd61f5ac1978e6479a713031815f050f77a77ef7ed7c"
129
129
  },
130
130
  {
131
131
  "path": "assets/StreamdownMarkdown-BRtZQ3tC.css",
@@ -278,9 +278,9 @@
278
278
  "sha256": "fe2878b576692482da3da96476a70c93a68533cc15853722e337c4cfd96c9af8"
279
279
  },
280
280
  {
281
- "path": "assets/appStore-DhQwkuOp.js",
282
- "size": 221009,
283
- "sha256": "0d542a7b11f5fdd581e2d85c7130e8054509ff269391e7408f0afcbb0a26ea86"
281
+ "path": "assets/appStore-C9vSUDXg.js",
282
+ "size": 220721,
283
+ "sha256": "7ec8665d9739711474c2d09e3faaa95b16a185cb859df2bfb063d6e2835e1816"
284
284
  },
285
285
  {
286
286
  "path": "assets/applescript-CjifmVsR.js",
@@ -723,9 +723,9 @@
723
723
  "sha256": "2a73394bc1c30fb2952b0527fe409da94b316084356a3c3be80ecdaa0a258f83"
724
724
  },
725
725
  {
726
- "path": "assets/command-CIuEm3dl.js",
726
+ "path": "assets/command-C2qhILAZ.js",
727
727
  "size": 22359,
728
- "sha256": "95252fc6d98fa517c61679b997bb58333c5978c1465528585bc45feb8ee3383d"
728
+ "sha256": "ce56277e804b3f95cc779b800d4f74e5f09fbcdf27a86b7b01ce7a659eeec90c"
729
729
  },
730
730
  {
731
731
  "path": "assets/commandFocusReturn-DRzRqGCt.js",
@@ -1713,9 +1713,9 @@
1713
1713
  "sha256": "e6cf15d869487f9cc237023db4037abd4f8967d70396f710e376d78105c016ce"
1714
1714
  },
1715
1715
  {
1716
- "path": "assets/index-D6ZjT3if.js",
1716
+ "path": "assets/index-DB2hXQ9j.js",
1717
1717
  "size": 10438,
1718
- "sha256": "196b6f16910ea6ce986fa0d53aa31d25f1f55b45ffd2742ab8c1772861bde889"
1718
+ "sha256": "fd9709b7989c0cdcc8277cc673b34e67d9cc626690d7bac7e7ac272bcac53838"
1719
1719
  },
1720
1720
  {
1721
1721
  "path": "assets/index.es-BLAB3Q-7.js",
@@ -3920,7 +3920,7 @@
3920
3920
  {
3921
3921
  "path": "bundle-ownership.json",
3922
3922
  "size": 98890,
3923
- "sha256": "1854eab0372f6a13f468c8ed64a0fa2f32278f6fac4c0ee7000b9e1e7b646753"
3923
+ "sha256": "443f66e06d30c81d1a3374490a6a2c68b1798d156aa107129caf1c64719ecbdc"
3924
3924
  },
3925
3925
  {
3926
3926
  "path": "favicon.svg",
@@ -3935,7 +3935,7 @@
3935
3935
  {
3936
3936
  "path": "index.html",
3937
3937
  "size": 1441,
3938
- "sha256": "70f35340c1de4b7a3d7aecec7d35fdddcc7bd46c453a95f1a5fe62a682c33c1a"
3938
+ "sha256": "c6310eb7af0f88b2945e628daa1e9759fa344a906c4d4cf468ccb69dc4a52e8b"
3939
3939
  }
3940
3940
  ]
3941
3941
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bigduu/lotus-next",
3
3
  "private": false,
4
- "version": "2026.11.13",
4
+ "version": "2026.11.14",
5
5
  "description": "Standalone Lotus Next frontend assets for the Bamboo runtime and Bodhi shell.",
6
6
  "license": "MIT",
7
7
  "repository": {