@lobehub/cli 0.0.205 → 0.0.207

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.
@@ -167,7 +167,7 @@ Error generating stack: `+e.message+`
167
167
 
168
168
  `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=Ox,c=!qx.jitless,l=c&&mSe.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?dwe([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}}),cTe=Ux(`$ZodUnion`,(e,t)=>{lS.init(e,t),Bx(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),Bx(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Bx(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),Bx(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>Nxe(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>fwe(t,r,e,i)):fwe(o,r,e,i)}}),lTe=Ux(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,cTe.init(e,t);let n=e._zod.parse;Bx(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||wx(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=Ixe(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=Cx(()=>pwe(t));e._zod.parse=(i,a)=>{let o=i.value;if(!Ox(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),uTe=Ux(`$ZodIntersection`,(e,t)=>{lS.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>hwe(e,t,n)):hwe(e,i,a)}}),dTe=Ux(`$ZodRecord`,(e,t)=>{lS.init(e,t);let n=qx.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!kx(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Lx(e,i,Wx())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...Fx(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...Fx(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e))if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e);l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&tS.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>Lx(e,i,Wx())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...Fx(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...Fx(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),fTe=Ux(`$ZodEnum`,(e,t)=>{lS.init(e,t);let n=kxe(t.entries),r=new Set(n);e._zod.values=r,Bx(e,`pattern`,e=>{let t=kxe(e.def.entries).filter(e=>hSe.has(typeof e));return RegExp(t.length?`^(${t.map(e=>Ax(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),pTe=Ux(`$ZodLiteral`,(e,t)=>{lS.init(e,t);let n=new Set(t.values);e._zod.values=n,Bx(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?Ax(e):e?Ax(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),mTe=Ux(`$ZodTransform`,(e,t)=>{lS.init(e,t),e._zod.optin=`optional`,qx.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new TSe(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Kx;return n.value=i,n}}),hTe=Ux(`$ZodOptional`,(e,t)=>{lS.init(e,t),Bx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,Bx(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),Bx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Nxe(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>gwe(e,t)):gwe(e,r)}return t.innerType._zod.run(e,n)}}),gTe=Ux(`$ZodExactOptional`,(e,t)=>{hTe.init(e,t),Bx(e,`values`,e=>e.def.innerType._zod.values),Bx(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),_Te=Ux(`$ZodNullable`,(e,t)=>{lS.init(e,t),Bx(e,`optin`,e=>e.def.innerType._zod.optin),Bx(e,`optout`,e=>e.def.innerType._zod.optout),Bx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Nxe(t.source)}|null)$`):void 0}),Bx(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),vTe=Ux(`$ZodDefault`,(e,t)=>{lS.init(e,t),e._zod.optin=`defaulted`,Bx(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>_we(e,t)):_we(r,t)}}),yTe=Ux(`$ZodPrefault`,(e,t)=>{lS.init(e,t),e._zod.optin=`defaulted`,Bx(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),bTe=Ux(`$ZodNonOptional`,(e,t)=>{lS.init(e,t),Bx(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>vwe(t,e)):vwe(i,e)}}),xTe=Ux(`$ZodCatch`,(e,t)=>{lS.init(e,t),Bx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),Bx(e,`optout`,e=>e.def.innerType._zod.optout),Bx(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>ywe(e,r,t,n)):ywe(e,r,t,n)}}),STe=Ux(`$ZodPipe`,(e,t)=>{lS.init(e,t),Bx(e,`values`,e=>e.def.in._zod.values),Bx(e,`optin`,e=>e.def.in._zod.optin),Bx(e,`optout`,e=>e.def.out._zod.optout),Bx(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>cS(e,t.in,n)):cS(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>cS(e,t.out,n)):cS(r,t.out,n)}}),CTe=Ux(`$ZodPreprocess`,(e,t)=>{STe.init(e,t)}),wTe=Ux(`$ZodReadonly`,(e,t)=>{lS.init(e,t),Bx(e,`propValues`,e=>e.def.innerType._zod.propValues),Bx(e,`values`,e=>e.def.innerType._zod.values),Bx(e,`optin`,e=>e.def.innerType?._zod?.optin),Bx(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(bwe):bwe(r)}}),TTe=Ux(`$ZodLazy`,(e,t)=>{lS.init(e,t),Fxe(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),Bx(e,`pattern`,e=>e.innerType?._zod?.pattern),Bx(e,`propValues`,e=>e.innerType?._zod?.propValues),Bx(e,`optin`,e=>e.innerType?._zod?.optin??void 0),Bx(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),ETe=Ux(`$ZodCustom`,(e,t)=>{rS.init(e,t),lS.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>xwe(t,n,r,e));xwe(i,n,r,e)}})}));function OTe(e){return typeof e==`object`&&!!e}function kTe(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function pS(e,t,n){let r=ITe.get(e);if(r!==void 0)return r?_S:hS;if(t.has(e))return _S;t.add(e);let i=hS,a=e=>{if(i!==_S&&e?._zod){let r=pS(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=hS;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?gS:o.value?._zod?pS(o.value,t,n):hS;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=Ixe(c);s(e?o(e,!0):gS),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?pS(r,t,!1):gS);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(!(!n||typeof n!=`object`)){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),ATe(e,i)}function ATe(e,t){return t!==gS&&ITe.set(e,t===_S),t}function jTe(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function MTe(){return LTe}function NTe(e,t){let n=e[mS]?.backEdges;return n!==void 0&&OTe(t)&&n.has(t)}var PTe,mS,FTe,ITe,hS,gS,_S,vS,yS,LTe,RTe=o((()=>{Hx(),PTe=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},mS=`~memo`,FTe=[],ITe=new WeakMap,hS=0,gS=1,_S=2,yS=[],LTe={alloc(e,t,n){let r=vS;if(!r)return n;vS=void 0;let i={value:n,issues:null};return r.set(t.value,i),yS.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&NTe(n,e.value))throw new PTe;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=pS(e,new Set,!1);if(i===hS)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===_S||r?n=!0:r=!0}let l=s.value;if(!OTe(l))return t(s,c);let u=c[mS];u||(u={buckets:new WeakMap,backEdges:void 0},c[mS]=u);let d;i===c?d=a:(d=jTe(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...kTe(f.issues)):(s.memo=!0,u.backEdges??=new WeakSet,u.backEdges.add(f.value)),s;vS=d;let p=yS.length,m=t(s,c);vS=void 0;let h=yS.length>p?yS.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?kTe(e.issues):FTe),e)):(h&&(h.issues=m.issues.length?kTe(m.issues):FTe),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}}}));function zTe(){return{localeError:BTe()}}var BTe,VTe=o((()=>{Hx(),BTe=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(rSe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Uxe(e.values[0])}`:`Invalid option: expected one of ${Axe(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${Axe(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function HTe(){return new WTe}var UTe,WTe,bS,GTe=o((()=>{WTe=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(UTe=globalThis).__zod_globalRegistry??(UTe.__zod_globalRegistry=HTe()),bS=globalThis.__zod_globalRegistry})),KTe=o((()=>{}));function qTe(e){return e.checks&&=[...e.checks],e}function JTe(e,t){return new e(qTe({type:`string`,...Mx(t)}))}function YTe(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Mx(t)})}function XTe(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Mx(t)})}function ZTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Mx(t)})}function QTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Mx(t)})}function $Te(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Mx(t)})}function eEe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Mx(t)})}function tEe(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Mx(t)})}function nEe(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Mx(t)})}function rEe(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Mx(t)})}function iEe(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Mx(t)})}function aEe(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Mx(t)})}function oEe(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Mx(t)})}function sEe(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Mx(t)})}function cEe(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Mx(t)})}function lEe(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Mx(t)})}function uEe(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Mx(t)})}function dEe(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Mx(t)})}function fEe(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Mx(t)})}function pEe(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Mx(t)})}function mEe(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Mx(t)})}function hEe(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Mx(t)})}function gEe(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Mx(t)})}function _Ee(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Mx(t)})}function vEe(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Mx(t)})}function yEe(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Mx(t)})}function bEe(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Mx(t)})}function xEe(e,t){return new e(qTe({type:`number`,checks:[],...Mx(t)}))}function SEe(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Mx(t)})}function CEe(e,t){return new e({type:`boolean`,...Mx(t)})}function wEe(e,t){return new e({type:`undefined`,...Mx(t)})}function TEe(e,t){return new e({type:`null`,...Mx(t)})}function EEe(e){return new e({type:`any`})}function DEe(e){return new e({type:`unknown`})}function OEe(e,t){return new e({type:`never`,...Mx(t)})}function kEe(e,t){return new e({type:`date`,coerce:!0,...Mx(t)})}function AEe(e,t){return new jCe({check:`less_than`,...Mx(t),value:e,inclusive:!1})}function xS(e,t){return new jCe({check:`less_than`,...Mx(t),value:e,inclusive:!0})}function jEe(e,t){return new MCe({check:`greater_than`,...Mx(t),value:e,inclusive:!1})}function SS(e,t){return new MCe({check:`greater_than`,...Mx(t),value:e,inclusive:!0})}function MEe(e,t){return new NCe({check:`multiple_of`,...Mx(t),value:e})}function NEe(e,t){return new FCe({check:`max_length`,...Mx(t),maximum:e})}function CS(e,t){return new ICe({check:`min_length`,...Mx(t),minimum:e})}function PEe(e,t){return new LCe({check:`length_equals`,...Mx(t),length:e})}function FEe(e,t){return new RCe({check:`string_format`,format:`regex`,...Mx(t),pattern:e})}function IEe(e){return new zCe({check:`string_format`,format:`lowercase`,...Mx(e)})}function LEe(e){return new BCe({check:`string_format`,format:`uppercase`,...Mx(e)})}function REe(e,t){return new VCe({check:`string_format`,format:`includes`,...Mx(t),includes:e})}function zEe(e,t){return new HCe({check:`string_format`,format:`starts_with`,...Mx(t),prefix:e})}function BEe(e,t){return new UCe({check:`string_format`,format:`ends_with`,...Mx(t),suffix:e})}function wS(e){return new WCe({check:`overwrite`,tx:e})}function VEe(e){return wS(t=>t.normalize(e))}function HEe(){return wS(e=>e.trim())}function UEe(){return wS(e=>e.toLowerCase())}function WEe(){return wS(e=>e.toUpperCase())}function GEe(){return wS(e=>Vxe(e))}function KEe(e,t,n){return new e({type:`array`,element:t,...Mx(n)})}function qEe(e,t,n){let r=Mx(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function JEe(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Mx(n)})}function YEe(e,t){let n=XEe(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Rx(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Rx(r))}},e(t.value,t)),t);return n}function XEe(e,t){let n=new rS({check:`custom`,...Mx(t)});return n._zod.check=e,n}var ZEe=o((()=>{GCe(),Hx()}));function TS(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&wx(e,t,n[t]);return e}function QEe(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??bS,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function ES(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function DS(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,DS(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&TS(o.schema,c),t.io===`input`&&OS(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function $Ee(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function eDe(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${$Ee(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+$Ee(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
169
169
 
170
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function tDe(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;tDe(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function nDe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function rDe(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!oDe.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??nDe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}wx(n,r,e.length===1?e[0]:rDe(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=nDe(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function iDe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of oDe)if(t in e)return;let n=t.filter(e=>sDe.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=rDe(t);else{let e=n[0],i=sDe.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>rDe([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,TS(e,r))}function aDe(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):TS(i,s),TS(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())tDe(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])iDe(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}TS(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,wx(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:kS(t,`input`,e.processors),output:kS(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function OS(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return OS(r.element,n);if(r.type===`set`)return OS(r.valueType,n);if(r.type===`lazy`)return OS(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return OS(r.innerType,n);if(r.type===`intersection`)return OS(r.left,n)||OS(r.right,n);if(r.type===`record`||r.type===`map`)return OS(r.keyType,n)||OS(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:OS(r.in,n)||OS(r.out,n);if(r.type===`object`){for(let e in r.shape)if(OS(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(OS(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(OS(e,n))return!0;return!!(r.rest&&OS(r.rest,n))}return!1}var oDe,sDe,cDe,kS,AS=o((()=>{GTe(),Hx(),oDe=new Set([`type`,`properties`,`required`,`additionalProperties`]),sDe=[`oneOf`,`anyOf`],cDe=(e,t={})=>n=>{let r=QEe({...n,processors:t});return DS(e,r),eDe(r,e),aDe(r,e)},kS=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=QEe({...i??{},target:a,io:t,processors:n});return DS(e,o),eDe(o,e),aDe(o,e)}}));function jS(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)bDe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&NS(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&NS(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&PS(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&PS(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&pDe(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&hDe(t,i.mime);for(let e of i.patterns??[])mDe(t,e);return t}function MS(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?MS(t.out):t.type===`catch`?MS(t.innerType):e._zod.optin}function lDe(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=lDe(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>lDe(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?tS:TCe).source),p):p}function uDe(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of FS.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=lDe(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}function dDe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(ES(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),IS):JSON.parse(o)}var NS,PS,fDe,pDe,mDe,hDe,gDe,_De,vDe,yDe,bDe,xDe,SDe,CDe,wDe,TDe,EDe,DDe,ODe,kDe,ADe,jDe,MDe,NDe,PDe,FDe,IDe,LDe,RDe,zDe,BDe,FS,VDe,HDe,UDe,IS,WDe,GDe,KDe,qDe,JDe,YDe,XDe,ZDe=o((()=>{nS(),DTe(),AS(),Hx(),NS=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},PS=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},fDe=(e,t)=>{NS(e,`minimum`,t),PS(e,`maximum`,t)},pDe=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},mDe=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},hDe=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},gDe=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},_De=(e,t)=>NS(e,`minimum`,t.minimum),vDe=(e,t)=>PS(e,`maximum`,t.maximum),yDe=e=>(t,n)=>{gDe(t,n.format);let[r,i]=e[n.format];NS(t,`minimum`,r),PS(t,`maximum`,i)},bDe={greater_than:(e,t)=>NS(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>PS(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>pDe(e,t.value),number_format:yDe(gSe),bigint_format:yDe(_Se),min_length:_De,max_length:vDe,length_equals:(e,t)=>fDe(e,t.length),min_size:_De,max_size:vDe,size_equals:(e,t)=>fDe(e,t.size),string_format:(e,t)=>{gDe(e,t.format),t.pattern&&mDe(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>hDe(e,t.mime)},xDe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},SDe=new Map([[Wwe,vCe],[fS,yCe]]),CDe=e=>SDe.get(e)??e,wDe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=jS(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=xDe[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(CDe);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},TDe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=jS(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):ES(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},EDe=(e,t,n,r)=>{n.type=`boolean`},DDe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},ODe=(e,t,n,r)=>{ES(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},kDe=(e,t,n,r)=>{n.not={}},ADe=(e,t,n,r)=>{},jDe=(e,t,n,r)=>{},MDe=(e,t,n,r)=>{ES(e,t,n,r,`Date cannot be represented in JSON Schema`)},NDe=(e,t,n,r)=>{let i=e._zod.def,a=kxe(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},PDe=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(ES(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(ES(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},FDe=(e,t,n,r)=>{ES(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},IDe=(e,t,n,r)=>{ES(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},LDe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=jS(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=DS(a.element,t,{...r,path:[...r.path,`items`]})},RDe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&ES(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)wx(i.properties,e,DS(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?MS(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=DS(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},zDe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>DS(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},BDe=(e,t,n,r)=>{let i=e._zod.def,a=DS(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=DS(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},FS=new WeakMap,VDe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=jS(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=DS(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)wx(i.patternProperties,CDe(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=DS(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=FS.get(t);n||(n=[],FS.set(t,n),t.deferred.push(()=>uDe(t))),n.push(e)}i.additionalProperties=DS(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&MS(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},HDe=(e,t,n,r)=>{let i=e._zod.def,a=DS(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},UDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},IS=Symbol(),WDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=dDe(i.defaultValue,e,t,n,r);o!==IS&&(n.default=o)},GDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=dDe(i.defaultValue,e,t,n,r);o!==IS&&(n._prefault=o)},KDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{ES(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},qDe=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;DS(o,t,r);let s=t.seen.get(e);s.ref=o},JDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},YDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},XDe=(e,t,n,r)=>{let i=e._zod.innerType;DS(i,t,r);let a=t.seen.get(e);a.ref=i}})),LS=o((()=>{Jx(),XSe(),FSe(),DTe(),RTe(),GCe(),YCe(),Hx(),nS(),VTe(),GTe(),qCe(),KTe(),ZEe(),AS(),ZDe(),AS()})),QDe=o((()=>{LS()}));function RS(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var $De,eOe,zS,tOe=o((()=>{LS(),Hx(),$De=new WeakSet([Object.prototype,Error.prototype]),eOe=(e,t)=>{PSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);$De.has(n)||($De.add(n),RS(n,`format`,e=>t=>ASe(e,t)),RS(n,`flatten`,e=>t=>kSe(e,t)),RS(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,jxe,2)}),RS(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,jxe,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},zS=Ux(`ZodError`,eOe,void 0,{Parent:Error})})),nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,uOe,dOe,fOe,pOe,mOe=o((()=>{LS(),tOe(),nOe=Zx(zS),rOe=Qx(zS),iOe=$x(zS),aOe=eS(zS),oOe=HSe(zS),sOe=USe(zS),cOe=WSe(zS),lOe=GSe(zS),uOe=KSe(zS),dOe=qSe(zS),fOe=JSe(zS),pOe=YSe(zS)}));function hOe(){qx.localeError||Wx(zTe())}function BS(){qx.memoizer||Wx({memoizer:MTe()})}function H(e){return JTe(IOe,e)}function VS(e){return xEe(ake,e)}function gOe(e){return SEe(oke,e)}function HS(e){return CEe(ske,e)}function _Oe(e){return wEe(cke,e)}function vOe(e){return TEe(lke,e)}function US(){return EEe(uke)}function WS(){return DEe(dke)}function yOe(e){return OEe(fke,e)}function GS(e,t){return KEe(mke,e,t)}function KS(e,t){return new hke({type:`object`,shape:e??{},...Mx(t)})}function bOe(e,t){return new hke({type:`object`,shape:e,catchall:yOe(),...Mx(t)})}function qS(e,t){return new gke({type:`union`,options:e,...Mx(t)})}function JS(e,t,n){return new _ke({type:`union`,options:t,discriminator:e,...Mx(n)})}function xOe(e,t){return new vke({type:`intersection`,left:e,right:t})}function YS(e,t,n){return!t||!t._zod?new yke({type:`record`,keyType:H(),valueType:e,...Mx(t)}):new yke({type:`record`,keyType:e,valueType:t,...Mx(n)})}function XS(e,t){return new iC({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Mx(t)})}function ZS(e,t){return new iC({type:`enum`,entries:e,...Mx(t)})}function QS(e,t){return new bke({type:`literal`,values:Array.isArray(e)?e:[e],...Mx(t)})}function SOe(e){return new xke({type:`transform`,transform:e})}function COe(e){return new Ske({type:`optional`,innerType:e})}function wOe(e){return new Cke({type:`optional`,innerType:e})}function TOe(e){return new wke({type:`nullable`,innerType:e})}function EOe(e,t){return new Tke({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Hxe(t)}})}function DOe(e,t){return new Eke({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Hxe(t)}})}function OOe(e,t){return new Dke({type:`nonoptional`,innerType:e,...Mx(t)})}function kOe(e,t){return new Oke({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:uSe(t)})}function AOe(e,t){return new kke({type:`pipe`,in:e,out:t})}function jOe(e){return new jke({type:`readonly`,innerType:e})}function MOe(e){return new Mke({type:`lazy`,getter:e})}function $S(e,t){return qEe(Nke,e??(()=>!0),t)}function NOe(e,t={}){return JEe(Nke,e,t)}function POe(e,t){return YEe(e,t)}function eC(e,t){return new Ake({type:`pipe`,in:SOe(e),out:t})}var tC,FOe,IOe,nC,LOe,ROe,zOe,BOe,VOe,HOe,rC,UOe,WOe,GOe,KOe,qOe,JOe,YOe,XOe,ZOe,QOe,$Oe,eke,tke,nke,rke,ike,ake,oke,ske,cke,lke,uke,dke,fke,pke,mke,hke,gke,_ke,vke,yke,iC,bke,xke,Ske,Cke,wke,Tke,Eke,Dke,Oke,kke,Ake,jke,Mke,Nke,aC=o((()=>{LS(),ZDe(),AS(),VTe(),QDe(),mOe(),tC=Ux(`ZodType`,(e,t)=>(hOe(),lS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Dx(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return jx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(NOe(e,t))},superRefine(e,t){return this.check(POe(e,t))},overwrite(e){return this.check(wS(e))},optional(){return COe(this)},exactOptional(){return wOe(this)},nullable(){return TOe(this)},nullish(){return COe(TOe(this))},nonoptional(e){return OOe(this,e)},array(){return GS(this)},or(e){return qS([this,e])},and(e){return xOe(this,e)},transform(e){return AOe(this,SOe(e))},default(e){return EOe(this,e)},prefault(e){return DOe(this,e)},catch(e){return kOe(this,e)},pipe(e){return AOe(this,e)},readonly(){return jOe(this)},describe(e){let t=this.clone();return bS.add(t,{description:e}),t},meta(...e){if(e.length===0)return bS.get(this);let t=this.clone();return bS.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return aSe(this,`~standard`,{...ZCe(this),jsonSchema:{input:kS(this,`input`),output:kS(this,`output`)}})},set"~standard"(e){zx(this,`~standard`,e)},parse:function e(t,n){return nOe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await rOe(this,t,n,{callee:e})},safeParse(e,t){return iOe(this,e,t)},async safeParseAsync(e,t){return aOe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){zx(this,`spa`,e)},validate(e,t){return BSe(this,e,t)},validateAsync(e,t){return VSe(this,e,t)},encode:function e(t,n){return oOe(this,t,n,{callee:e})},decode:function e(t,n){return sOe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await cOe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await lOe(this,t,n,{callee:e})},safeEncode(e,t){return uOe(this,e,t)},safeDecode(e,t){return dOe(this,e,t)},async safeEncodeAsync(e,t){return fOe(this,e,t)},async safeDecodeAsync(e,t){return pOe(this,e,t)},toJSONSchema(e){return cDe(this,{})(e)},get description(){return bS.get(this)?.description},get _def(){return this._zod.def}}),FOe=Ux(`_ZodString`,(e,t)=>{uS.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wDe(e,t,n,r)},oSe({format:e=>jS(e).format??null,minLength:e=>jS(e).minimum??null,maxLength:e=>jS(e).maximum??null},{regex(...e){return this.check(FEe(...e))},includes(...e){return this.check(REe(...e))},startsWith(...e){return this.check(zEe(...e))},endsWith(...e){return this.check(BEe(...e))},min(...e){return this.check(CS(...e))},max(...e){return this.check(NEe(...e))},length(...e){return this.check(PEe(...e))},nonempty(...e){return this.check(CS(1,...e))},lowercase(e){return this.check(IEe(e))},uppercase(e){return this.check(LEe(e))},trim(){return this.check(HEe())},normalize(...e){return this.check(VEe(...e))},toLowerCase(){return this.check(UEe())},toUpperCase(){return this.check(WEe())},slugify(){return this.check(GEe())}})),IOe=Ux(`ZodString`,(e,t)=>{uS.init(e,t),FOe.init(e,t)},{email(e){return this.check(YTe(VOe,e))},url(e){return this.check(tEe(UOe,e))},jwt(e){return this.check(gEe(ike,e))},emoji(e){return this.check(nEe(WOe,e))},guid(e){return this.check(XTe(HOe,e))},uuid(e){return this.check(ZTe(rC,e))},uuidv4(e){return this.check(QTe(rC,e))},uuidv6(e){return this.check($Te(rC,e))},uuidv7(e){return this.check(eEe(rC,e))},nanoid(e){return this.check(rEe(GOe,e))},cuid(e){return this.check(iEe(KOe,e))},cuid2(e){return this.check(aEe(qOe,e))},ulid(e){return this.check(oEe(JOe,e))},base64(e){return this.check(pEe(tke,e))},base64url(e){return this.check(mEe(nke,e))},xid(e){return this.check(sEe(YOe,e))},ksuid(e){return this.check(cEe(XOe,e))},ipv4(e){return this.check(lEe(ZOe,e))},ipv6(e){return this.check(uEe(QOe,e))},cidrv4(e){return this.check(dEe($Oe,e))},cidrv6(e){return this.check(fEe(eke,e))},e164(e){return this.check(hEe(rke,e))},datetime(e){return this.check(_Ee(LOe,e))},date(e){return this.check(vEe(ROe,e))},time(e){return this.check(yEe(zOe,e))},duration(e){return this.check(bEe(BOe,e))}}),nC=Ux(`ZodStringFormat`,(e,t)=>{dS.init(e,t),FOe.init(e,t)}),LOe=Ux(`ZodISODateTime`,(e,t)=>{Fwe.init(e,t),nC.init(e,t)}),ROe=Ux(`ZodISODate`,(e,t)=>{Iwe.init(e,t),nC.init(e,t)}),zOe=Ux(`ZodISOTime`,(e,t)=>{Lwe.init(e,t),nC.init(e,t)}),BOe=Ux(`ZodISODuration`,(e,t)=>{Rwe.init(e,t),nC.init(e,t)}),VOe=Ux(`ZodEmail`,(e,t)=>{Twe.init(e,t),nC.init(e,t)}),HOe=Ux(`ZodGUID`,(e,t)=>{Cwe.init(e,t),nC.init(e,t)}),rC=Ux(`ZodUUID`,(e,t)=>{wwe.init(e,t),nC.init(e,t)}),UOe=Ux(`ZodURL`,(e,t)=>{Dwe.init(e,t),nC.init(e,t)}),WOe=Ux(`ZodEmoji`,(e,t)=>{Owe.init(e,t),nC.init(e,t)}),GOe=Ux(`ZodNanoID`,(e,t)=>{kwe.init(e,t),nC.init(e,t)}),KOe=Ux(`ZodCUID`,(e,t)=>{Awe.init(e,t),nC.init(e,t)}),qOe=Ux(`ZodCUID2`,(e,t)=>{jwe.init(e,t),nC.init(e,t)}),JOe=Ux(`ZodULID`,(e,t)=>{Mwe.init(e,t),nC.init(e,t)}),YOe=Ux(`ZodXID`,(e,t)=>{Nwe.init(e,t),nC.init(e,t)}),XOe=Ux(`ZodKSUID`,(e,t)=>{Pwe.init(e,t),nC.init(e,t)}),ZOe=Ux(`ZodIPv4`,(e,t)=>{zwe.init(e,t),nC.init(e,t)}),QOe=Ux(`ZodIPv6`,(e,t)=>{Vwe.init(e,t),nC.init(e,t)}),$Oe=Ux(`ZodCIDRv4`,(e,t)=>{Hwe.init(e,t),nC.init(e,t)}),eke=Ux(`ZodCIDRv6`,(e,t)=>{Uwe.init(e,t),nC.init(e,t)}),tke=Ux(`ZodBase64`,(e,t)=>{Gwe.init(e,t),nC.init(e,t)}),nke=Ux(`ZodBase64URL`,(e,t)=>{Kwe.init(e,t),nC.init(e,t)}),rke=Ux(`ZodE164`,(e,t)=>{qwe.init(e,t),nC.init(e,t)}),ike=Ux(`ZodJWT`,(e,t)=>{Jwe.init(e,t),nC.init(e,t)}),ake=Ux(`ZodNumber`,(e,t)=>{Ywe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>TDe(e,t,n,r),e.isFinite=!0},oSe({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=jS(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=jS(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=jS(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>jS(e).format??null},{gt(e,t){return this.check(jEe(e,t))},gte(e,t){return this.check(SS(e,t))},min(e,t){return this.check(SS(e,t))},lt(e,t){return this.check(AEe(e,t))},lte(e,t){return this.check(xS(e,t))},max(e,t){return this.check(xS(e,t))},int(e){return this.check(gOe(e))},safe(e){return this.check(gOe(e))},positive(e){return this.check(jEe(0,e))},nonnegative(e){return this.check(SS(0,e))},negative(e){return this.check(AEe(0,e))},nonpositive(e){return this.check(xS(0,e))},multipleOf(e,t){return this.check(MEe(e,t))},step(e,t){return this.check(MEe(e,t))},finite(){return this}})),oke=Ux(`ZodNumberFormat`,(e,t)=>{Xwe.init(e,t),ake.init(e,t)}),ske=Ux(`ZodBoolean`,(e,t)=>{Zwe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>EDe(e,t,n,r)}),cke=Ux(`ZodUndefined`,(e,t)=>{Qwe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ODe(e,t,n,r)}),lke=Ux(`ZodNull`,(e,t)=>{$we.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>DDe(e,t,n,r)}),uke=Ux(`ZodAny`,(e,t)=>{eTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ADe(e,t,n,r)}),dke=Ux(`ZodUnknown`,(e,t)=>{tTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jDe(e,t,n,r)}),fke=Ux(`ZodNever`,(e,t)=>{nTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kDe(e,t,n,r)}),pke=Ux(`ZodDate`,(e,t)=>{rTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>MDe(e,t,n,r),e.min=(t,n)=>e.check(SS(t,n)),e.max=(t,n)=>e.check(xS(t,n))},oSe({minDate:e=>{let{minimum:t}=jS(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=jS(e);return t?new Date(t):null}},{})),mke=Ux(`ZodArray`,(e,t)=>{BS(),iTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LDe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(CS(e,t))},nonempty(e){return this.check(CS(1,e))},max(e,t){return this.check(NEe(e,t))},length(e,t){return this.check(PEe(e,t))},unwrap(){return this.element}}),hke=Ux(`ZodObject`,(e,t)=>{BS(),sTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RDe(e,t,n,r),lSe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return XS(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Dx(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Dx(this._zod.def,{catchall:WS()}))},loose(){return this.clone(Dx(this._zod.def,{catchall:WS()}))},strict(){return this.clone(Dx(this._zod.def,{catchall:yOe()}))},strip(){return this.clone(Dx(this._zod.def,{catchall:void 0}))},extend(e){return qxe(this,e)},safeExtend(e){return Yxe(this,e)},merge(e){return Xxe(this,e)},pick(e){return Gxe(this,e)},omit(e){return Kxe(this,e)},partial(...e){return Zxe(Ske,this,e[0])},exactPartial(...e){return Zxe(Cke,this,e[0],`exactPartial`)},required(...e){return Qxe(Dke,this,e[0])}}),gke=Ux(`ZodUnion`,(e,t)=>{cTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zDe(e,t,n,r),e.options=t.options}),_ke=Ux(`ZodDiscriminatedUnion`,(e,t)=>{gke.init(e,t),lTe.init(e,t)}),vke=Ux(`ZodIntersection`,(e,t)=>{uTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BDe(e,t,n,r)}),yke=Ux(`ZodRecord`,(e,t)=>{BS(),dTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VDe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),iC=Ux(`ZodEnum`,(e,t)=>{fTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NDe(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new iC({...t,checks:[],...Mx(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new iC({...t,checks:[],...Mx(r),entries:i})}}),bke=Ux(`ZodLiteral`,(e,t)=>{pTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PDe(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),xke=Ux(`ZodTransform`,(e,t)=>{BS(),mTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IDe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new TSe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Rx(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Rx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),Ske=Ux(`ZodOptional`,(e,t)=>{hTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Cke=Ux(`ZodExactOptional`,(e,t)=>{gTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),wke=Ux(`ZodNullable`,(e,t)=>{_Te.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Tke=Ux(`ZodDefault`,(e,t)=>{vTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Eke=Ux(`ZodPrefault`,(e,t)=>{yTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Dke=Ux(`ZodNonOptional`,(e,t)=>{bTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Oke=Ux(`ZodCatch`,(e,t)=>{xTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),kke=Ux(`ZodPipe`,(e,t)=>{STe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qDe(e,t,n,r),e.in=t.in,e.out=t.out}),Ake=Ux(`ZodPreprocess`,(e,t)=>{kke.init(e,t),CTe.init(e,t)}),jke=Ux(`ZodReadonly`,(e,t)=>{wTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Mke=Ux(`ZodLazy`,(e,t)=>{TTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),Nke=Ux(`ZodCustom`,(e,t)=>{ETe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FDe(e,t,n,r)})})),Pke,Fke=o((()=>{LS(),Pke||={}}));function Ike(e){return _Ee(LOe,e)}var Lke=o((()=>{LS(),aC()}));function oC(e){return kEe(pke,e)}var Rke=o((()=>{LS(),aC()})),zke=o((()=>{LS(),aC(),QDe(),tOe(),mOe(),Fke(),ZDe(),GTe(),Hx(),QDe(),Lke(),aC(),DTe(),VTe(),Rke()})),sC=o((()=>{zke(),zke()})),cC,Bke,Vke,Hke,Uke,Wke,Gke=o((()=>{sC(),cC=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],Bke=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...cC,`authentication required`,`not logged in`,`please (?:log|sign) in`],signInCommand:`agy`},defaultCommand:`agy`,defaultTopicGroupMode:`byProject`,iconId:`Antigravity`,install:{commands:[],docsUrl:`https://antigravity.google/docs/cli/install/`},kind:`local-cli`,menuKey:`newAntigravityAgent`,menuLabelKey:`newAntigravityAgent`,resume:{supported:!0},title:`Antigravity`,type:`antigravity`},{auth:{docsUrl:`https://ampcode.com/manual`,errorMessage:"Amp could not authenticate. Run `amp login` or configure AMP_API_KEY, then retry.",patterns:[...cC,`please (?:log|sign) in`,`amp_api_key`],signInCommand:`amp login`},defaultCommand:`amp`,defaultTopicGroupMode:`byProject`,iconId:`Amp`,install:{commands:[`curl -fsSL https://ampcode.com/install.sh | bash`,`brew install ampcode/tap/ampcode`],docsUrl:`https://ampcode.com/manual`},kind:`local-cli`,menuKey:`newAmpAgent`,menuLabelKey:`newAmpAgent`,resume:{supported:!0},title:`Amp`,type:`amp`},{auth:{docsUrl:`https://docs.anthropic.com/en/docs/claude-code/setup`,errorMessage:`Claude Code could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:[...cC,`not logged in`],signInCommand:`claude`},defaultCommand:`claude`,defaultTopicGroupMode:`byProject`,iconId:`ClaudeCode`,install:{commands:[`curl -fsSL https://claude.ai/install.sh | bash`,`brew install --cask claude-code`],docsUrl:`https://docs.anthropic.com/en/docs/claude-code/setup`},kind:`local-cli`,menuKey:`newClaudeCodeAgent`,menuLabelKey:`newClaudeCodeAgent`,resume:{supported:!0},title:`Claude Code`,type:`claude-code`},{auth:{docsUrl:`https://www.codebuddy.ai/docs/cli/installation`,errorMessage:"CodeBuddy could not authenticate. Run `codebuddy`, use `/login`, then retry.",patterns:[...cC,`authentication required`,`please use \\/login`,`not logged in`],signInCommand:`codebuddy`},defaultCommand:`codebuddy`,defaultTopicGroupMode:`byProject`,iconId:`CodeBuddy`,install:{commands:[`npm install -g @tencent-ai/codebuddy-code`,`brew install Tencent-CodeBuddy/tap/codebuddy-code`],docsUrl:`https://www.codebuddy.ai/docs/cli/installation`},kind:`local-cli`,menuKey:`newCodeBuddyAgent`,menuLabelKey:`newCodeBuddyAgent`,resume:{supported:!0},title:`CodeBuddy`,type:`codebuddy`},{auth:{docsUrl:`https://github.com/openai/codex#installing-and-running-codex-cli`,errorMessage:`Codex could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:cC,signInCommand:`codex`},defaultCommand:`codex`,defaultTopicGroupMode:`byProject`,iconId:`Codex`,install:{commands:[`npm install -g @openai/codex`,`brew install --cask codex`],docsUrl:`https://github.com/openai/codex#installing-and-running-codex-cli`},kind:`local-cli`,menuKey:`newCodexAgent`,menuLabelKey:`newCodexAgent`,resume:{supported:!0},title:`Codex`,type:`codex`},{auth:{docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli`,errorMessage:"GitHub Copilot CLI could not authenticate. Run `copilot login` in your terminal, then retry.",patterns:[...cC,`authentication required`,`not authenticated`,`not logged in`,`copilot login`,`gh auth login`],signInCommand:`copilot login`},defaultCommand:`copilot`,defaultTopicGroupMode:`byProject`,iconId:`GithubCopilot`,install:{commands:[`curl -fsSL https://gh.io/copilot-install | bash`,`npm install -g @github/copilot`],docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli`},kind:`local-cli`,menuKey:`newCopilotAgent`,menuLabelKey:`newCopilotAgent`,resume:{supported:!0},title:`GitHub Copilot`,type:`copilot`},{auth:{docsUrl:`https://cursor.com/docs/cli/installation`,errorMessage:"Cursor could not authenticate. Run `agent login`, then retry.",patterns:[...cC,`authentication required`,`not logged in`],signInCommand:`agent login`},defaultCommand:`agent`,defaultTopicGroupMode:`byProject`,iconId:`Cursor`,install:{commands:[`curl https://cursor.com/install -fsS | bash`],docsUrl:`https://cursor.com/docs/cli/installation`},kind:`local-cli`,menuKey:`newCursorAgent`,menuLabelKey:`newCursorAgent`,resume:{supported:!0},title:`Cursor`,type:`cursor`},{auth:{docsUrl:`https://docs.factory.ai/cli/getting-started/quickstart`,errorMessage:"Factory Droid could not authenticate. Run `droid` to sign in or configure FACTORY_API_KEY, then retry.",patterns:[...cC,`authentication required`,`factory_api_key`,`device pairing`],signInCommand:`droid`},defaultCommand:`droid`,defaultTopicGroupMode:`byProject`,iconId:`Droid`,install:{commands:[`curl -fsSL https://app.factory.ai/cli | sh`,`irm https://app.factory.ai/cli/windows | iex`],docsUrl:`https://docs.factory.ai/cli/getting-started/quickstart`},kind:`local-cli`,menuKey:`newDroidAgent`,menuLabelKey:`newDroidAgent`,resume:{supported:!0},title:`Factory Droid`,type:`droid`},{auth:{docsUrl:`https://docs.devin.ai/cli/enterprise/devin-auth`,errorMessage:"Devin could not authenticate. Run `devin auth login`, then retry.",patterns:[...cC,`authentication required`,`not logged in`,`devin auth login`],signInCommand:`devin auth login`},defaultCommand:`devin`,defaultTopicGroupMode:`byProject`,iconId:`Devin`,install:{commands:[`curl -fsSL https://cli.devin.ai/install.sh | bash`,`irm https://static.devin.ai/cli/setup.ps1 | iex`],docsUrl:`https://docs.devin.ai/cli`},kind:`local-cli`,menuKey:`newDevinAgent`,menuLabelKey:`newDevinAgent`,resume:{supported:!0},title:`Devin`,type:`devin`},{auth:{docsUrl:`https://docs.x.ai/build/overview`,errorMessage:"Grok Build could not authenticate. Run `grok login`, then retry.",patterns:[...cC,`authentication required`,`no cached auth token found`,`session expired`,"run `grok login`"],signInCommand:`grok login`},defaultCommand:`grok`,defaultTopicGroupMode:`byProject`,iconId:`Grok`,install:{commands:[`curl -fsSL https://x.ai/cli/install.sh | bash`,`irm https://x.ai/cli/install.ps1 | iex`],docsUrl:`https://docs.x.ai/build/overview`},kind:`local-cli`,menuKey:`newGrokBuildAgent`,menuLabelKey:`newGrokBuildAgent`,resume:{supported:!0},title:`Grok Build`,type:`grok-build`},{auth:{docsUrl:`https://moonshotai.github.io/kimi-code/en/`,errorMessage:"Kimi Code could not authenticate. Run `kimi`, use `/login`, then retry.",patterns:[...cC,`no model configured`],signInCommand:`kimi`},defaultCommand:`kimi`,defaultTopicGroupMode:`byProject`,iconId:`Kimi`,install:{commands:[`curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash`,`irm https://code.kimi.com/kimi-code/install.ps1 | iex`],docsUrl:`https://moonshotai.github.io/kimi-code/en/`},kind:`local-cli`,menuKey:`newKimiCodeAgent`,menuLabelKey:`newKimiCodeAgent`,resume:{supported:!0},title:`Kimi Code`,type:`kimi-code`},{auth:{docsUrl:`https://opencode.ai/docs`,errorMessage:`OpenCode could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:[...cC,`authentication`,`invalid.*(?:credential|token|key)`],signInCommand:`opencode auth login`},defaultCommand:`opencode`,defaultTopicGroupMode:`byProject`,iconId:`OpenCode`,install:{commands:[`curl -fsSL https://opencode.ai/install | bash`],docsUrl:`https://opencode.ai/docs`},kind:`local-cli`,menuKey:`newOpenCodeAgent`,menuLabelKey:`newOpenCodeAgent`,resume:{supported:!0},title:`OpenCode`,type:`opencode`},{auth:{docsUrl:`https://github.com/earendil-works/pi`,errorMessage:"Pi could not authenticate. Run `pi`, use `/login`, then retry.",patterns:[...cC,`invalid (?:authentication )?(?:credentials?|tokens?|api keys?)`],signInCommand:`pi`},defaultCommand:`pi`,defaultTopicGroupMode:`byProject`,iconId:`Pi`,install:{commands:[`npm install -g @earendil-works/pi-coding-agent`],docsUrl:`https://github.com/earendil-works/pi`},kind:`local-cli`,menuKey:`newPiAgent`,menuLabelKey:`newPiAgent`,resume:{supported:!0},title:`Pi`,type:`pi`},{auth:{docsUrl:`https://docs.qoder.com/cli/auth.md`,errorMessage:"Qoder could not authenticate. Run `qodercli login`, then retry.",patterns:[...cC,`not logged in`,`please run \\/login`],signInCommand:`qodercli login`},defaultCommand:`qodercli`,defaultTopicGroupMode:`byProject`,iconId:`Qoder`,install:{commands:[`curl -fsSL https://qoder.com/install | bash`,`npm install -g @qoder-ai/qodercli`],docsUrl:`https://docs.qoder.com/cli/install.md`},kind:`local-cli`,menuKey:`newQoderAgent`,menuLabelKey:`newQoderAgent`,resume:{supported:!0},title:`Qoder`,type:`qoder`},{auth:{docsUrl:`https://docs.volcengine.com/docs/86677/2387326?lang=zh`,errorMessage:`TRAE CLI could not authenticate. Sign in through TRAE Enterprise, then retry.`,patterns:[...cC,`authentication required`,`not logged in`,`please (?:log|sign) in`],signInCommand:`traecli`},defaultCommand:`traecli`,defaultTopicGroupMode:`byProject`,iconId:`Trae`,install:{commands:[],docsUrl:`https://docs.volcengine.com/docs/86677/2387326?lang=zh`},kind:`local-cli`,menuKey:`newTraeAgent`,menuLabelKey:`newTraeAgent`,resume:{supported:!0},title:`TRAE CLI`,type:`trae`}],Vke=Bke.map(({type:e})=>e),XS(Vke),Hke=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],Uke=XS([...Vke,...Hke.map(({type:e})=>e)]),Wke=[{cli:{command:`openclaw`,validation:{helpKeywords:[`Usage: openclaw`],keywords:[`openclaw`],pattern:`^v?\\d+\\.\\d+\\.\\d+(?:[-+][\\dA-Za-z.-]+)?$`},wellKnownHomePaths:[`.openclaw/bin/openclaw`,`.local/bin/openclaw`]},kind:`remote-task`,title:`OpenClaw`,type:`openclaw`},{cli:{command:`hermes`,validation:{keywords:[`hermes`]},wellKnownHomePaths:[`.local/bin/hermes`]},kind:`remote-task`,title:`Hermes`,type:`hermes`}]})),lC,Kke,uC,qke,Jke,Yke,dC,Xke,Zke,Qke,$ke,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,cAe,lAe,uAe,dAe,fAe,pAe,mAe,hAe,gAe,_Ae,vAe,fC,pC,yAe,bAe,xAe,SAe,CAe,wAe,mC,hC,TAe,gC,EAe=o((()=>{Oxe(),lC=`default`,Kke=[`low`,`medium`,`high`,`ultra`],uC=[`low`,`medium`,`high`,`xhigh`,`max`],qke=[`low`,`medium`,`high`,`xhigh`,`max`],Jke=[`low`,`medium`,`high`,`xhigh`],Yke=[`--effort`,`--reasoning-effort`],dC=[`low`,`medium`,`high`,`xhigh`],Xke=[...dC,`max`,`ultra`],Zke=`model_reasoning_effort`,Qke=[`low`,`high`,`max`],$ke=[`high`,`max`],eAe=[...dC,`max`],tAe=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],nAe=[`gpt-6-astra`,`gpt-5.6-luna`],rAe=[`low`,`medium`,`high`,`xhigh`,`max`],iAe=`--reasoning-effort`,aAe=[`low`,`medium`,`high`,`xhigh`,`max`],oAe=`--reasoning-effort`,sAe=`service_tier`,cAe=[`fast`,`priority`],lAe=e=>!!e&&Kke.includes(e),uAe=e=>!!e&&uC.includes(e),dAe=e=>!!e&&Xke.includes(e),fAe=e=>!!e&&Jke.includes(e),pAe=e=>!!e&&rAe.includes(e),mAe=e=>!!e&&aAe.includes(e),hAe=e=>!!e&&cAe.includes(e),gAe=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?Qke:e===`glm-5.2`?$ke:tAe.includes(e)?Xke:nAe.includes(e)?eAe:dC,_Ae=e=>{let t=(xx(e?.args,`--mode`)??e?.mode)?.trim();return lAe(t)?t:lC},vAe=[`-m`,`--model`],fC=e=>{let t=(xx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:lC},pC=e=>{let t=(xx(e?.args,`--effort`)??e?.effort)?.trim();return uAe(t)?t:lC},yAe=e=>{let t=(Sxe(e?.args,vAe)??Sx(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:lC},bAe=e=>{let t=(Sx(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return dAe(t)?t:lC},xAe=e=>{let t=(Sx(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Sx(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:hAe(t)?`fast`:lC},SAe=e=>{let t=(Sxe(e?.args,Yke)??e?.effort)?.trim();return fAe(t)?t:lC},CAe=e=>{let t=(xx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return pAe(t)?t:lC},wAe=e=>{let t=(xx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return mAe(t)?t:lC},mC=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:lC},hC={flags:[`-m`,`--model`],kind:`flag`},TAe={antigravity:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:(e,t)=>t?t.find(t=>t.id===e)?.effortLevels??[]:qke,resolve:pC},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:fC,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:Kke,resolve:_Ae}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>uC,resolve:pC},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:fC,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>uC,resolve:pC},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:fC,source:`catalog`}},codex:{effort:{encodings:[{key:Zke,kind:`config`}],levels:gAe,resolve:bAe},model:{encodings:[hC,{key:`model`,kind:`config`}],resolve:yAe,source:`catalog`},speed:{encodings:[{key:sAe,kind:`config`}],resolve:xAe}},copilot:{effort:{encodings:[{flags:[oAe],kind:`flag`}],levels:()=>aAe,resolve:wAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:mC,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:mC,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:mC,source:`catalog`}},droid:{model:{encodings:[],resolve:mC,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:mC,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:Yke,kind:`flag`}],levels:()=>Jke,resolve:SAe},model:{encodings:[hC],resolve:mC,source:`catalog`}},"kimi-code":{model:{encodings:[hC],resolve:mC,source:`catalog`}},opencode:{model:{encodings:[hC],resolve:mC,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:mC,source:`catalog`}},qoder:{effort:{encodings:[{flags:[iAe],kind:`flag`}],levels:()=>rAe,resolve:CAe},model:{encodings:[hC],resolve:mC,source:`catalog`}},trae:{model:{encodings:[],resolve:mC,source:`catalog`}}},gC=e=>TAe[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),gC(`copilot`),gC(`grok-build`),gC(`kimi-code`),gC(`opencode`),gC(`pi`),gC(`qoder`)})),DAe=o((()=>{})),OAe=o((()=>{Gke(),DAe(),new Set([...Bke.map(({type:e})=>e),...Hke.map(({type:e})=>e),...Wke.map(({type:e})=>e)])})),kAe=o((()=>{})),AAe=o((()=>{})),jAe,MAe,NAe,PAe,FAe=o((()=>{sC(),jAe=KS({workingDirectory:H().optional()}),MAe=KS({memory:KS({effort:XS([`low`,`medium`,`high`]).optional(),enabled:HS().optional(),toolPermission:XS([`read-only`,`read-write`]).optional()}).optional()}),NAe=KS({selfIteration:KS({enabled:HS().optional()}).optional()}),PAe=KS({codexMaxReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:XS([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:XS([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:XS([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:HS().optional(),disableGatewayMode:HS().optional(),effort:XS([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:HS().optional(),enableAgentMode:HS().optional(),toolMode:XS([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:HS().optional(),enableCompressHistory:HS().optional(),enableContextCompression:HS().optional(),enableFollowUpChips:HS().optional(),enableHistoryCount:HS().optional(),enableMaxTokens:HS().optional(),enableReasoning:HS().optional(),enableReasoningEffort:HS().optional(),enableStreaming:HS().optional(),enableStaleToolResultTrim:HS().optional(),gpt5ReasoningEffort:XS([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:XS([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:XS([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:XS([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:XS([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:XS([`high`,`max`]).optional(),glm5_3ReasoningEffort:XS([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:XS([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:XS([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:XS([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:XS([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:XS([`high`,`xhigh`]).optional(),historyCount:VS().optional(),imageAspectRatio:H().optional(),imageAspectRatio2:H().optional(),imageResolution:XS([`1K`,`2K`,`4K`]).optional(),imageResolution2:XS([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:XS([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:jAe.optional(),preserveThinking:HS().optional(),reasoningBudgetToken:VS().optional(),reasoningBudgetToken32k:VS().optional(),reasoningBudgetToken80k:VS().optional(),reasoningEffort:XS([`low`,`medium`,`high`]).optional(),reasoningMode:XS([`standard`,`pro`]).optional(),searchFCModel:KS({model:H(),provider:H()}).optional(),searchMode:XS([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:XS([`low`,`high`]).optional(),skillActivateMode:XS([`auto`,`manual`]).optional(),textVerbosity:XS([`low`,`medium`,`high`]).optional(),thinking:XS([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:VS().optional(),thinkingLevel:XS([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:XS([`low`,`high`]).optional(),thinkingLevel3:XS([`low`,`medium`,`high`]).optional(),thinkingLevel4:XS([`minimal`,`high`]).optional(),thinkingLevel5:XS([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:VS().default(25e3),topicGroupMode:XS([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:HS().optional(),useModelBuiltinSearch:HS().optional()}).merge(MAe).merge(NAe)})),IAe=o((()=>{})),LAe=o((()=>{})),RAe,_C,zAe,BAe,VAe,HAe,UAe,WAe,GAe,KAe,qAe,JAe=o((()=>{RAe=`LobeHub Cloud`,_C=`LobeHub`,zAe=`Lobe AI`,BAe=`LobeHub`,VAe={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},HAe={discord:`https://discord.gg/AYFPHvv2jT`,github:`https://github.com/lobehub`,medium:`https://medium.com/@lobehub`,x:`https://x.com/lobehub`,youtube:`https://www.youtube.com/@lobehub`},UAe={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},WAe={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},GAe=`lobehub`,KAe=`© ${new Date().getFullYear()} ${BAe}`,qAe=`${KAe}. All rights reserved.`})),YAe,XAe,ZAe,vC,yC,QAe,$Ae,eje,tje,nje,rje,ije,aje,oje,sje,cje,lje,uje,dje,fje,pje,mje=o((()=>{YAe=`jev-1.14.0`,XAe=`typesafe`,ZAe=`openai`,vC=`deepseek-v4-flash`,yC=`deepseek`,QAe=`gpt-5.6-luna`,$Ae=`openai`,eje=`decision`,tje=`gpt-6-luna:decision`,nje=`openai`,rje=`gpt-4o-mini-transcribe`,ije=`openai`,aje=`gemini-3-flash-preview`,oje=`google`,sje=`gemini-3.8-flash`,cje=`google`,lje=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],uje=`glm-5.3-flash`,dje=`zhipu`,fje=`deepseek-flash`,pje=`deepseek`})),hje,gje=o((()=>{hje=[]})),_je,vje=o((()=>{_je=`chat_preview`})),yje=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>bje,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>WAe,BRANDING_INBOX_TITLE:()=>zAe,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>_C,BRANDING_PROVIDER:()=>GAe,BRANDING_URL:()=>VAe,BUSINESS_OIDC_CLIENTS:()=>hje,COPYRIGHT:()=>KAe,COPYRIGHT_FULL:()=>qAe,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>lje,DEFAULT_ASR_MODEL:()=>rje,DEFAULT_ASR_PROVIDER:()=>ije,DEFAULT_BOT_WAKE_ENGINE:()=>eje,DEFAULT_BOT_WAKE_MODEL:()=>tje,DEFAULT_BOT_WAKE_PROVIDER:()=>nje,DEFAULT_CHANNEL_ROUTING_MODEL:()=>YAe,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>XAe,DEFAULT_EMBEDDING_PROVIDER:()=>ZAe,DEFAULT_MINI_MODEL:()=>QAe,DEFAULT_MINI_PROVIDER:()=>$Ae,DEFAULT_MODEL:()=>vC,DEFAULT_ONBOARDING_MODEL:()=>aje,DEFAULT_ONBOARDING_PROVIDER:()=>oje,DEFAULT_PROVIDER:()=>yC,DEFAULT_REVIEW_PREDICT_MODEL:()=>sje,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>cje,DEFAULT_VERIFY_MODEL:()=>uje,DEFAULT_VERIFY_PLAN_MODEL:()=>fje,DEFAULT_VERIFY_PLAN_PROVIDER:()=>pje,DEFAULT_VERIFY_PROVIDER:()=>dje,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>UAe,LOBE_CHAT_CLOUD:()=>RAe,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>xje,ORG_NAME:()=>BAe,SOCIAL_URL:()=>HAe,UTM_SOURCE:()=>_je,isOfficialProvider:()=>Sje}),bje,xje,Sje,bC=o((()=>{JAe(),JAe(),mje(),gje(),vje(),bje=`sk-lh-`,xje=`The official provider cannot be disabled.`,Sje=e=>!1})),Cje=o((()=>{bC()})),wje=o((()=>{})),Tje=o((()=>{})),Eje,Dje,Oje=o((()=>{sC(),Eje=XS([`pinned`,`auto`,`disabled`]),Dje=qS([H(),KS({builtinOverride:QS(!0).optional(),identifier:H(),mode:Eje.optional()})])})),kje=o((()=>{sC(),FAe(),Oje(),KS({agencyConfig:$S().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:PAe.optional(),description:H().nullish(),editorData:WS().optional(),fewShots:WS().optional(),marketIdentifier:H().nullish(),metadata:YS(H(),WS()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:GS(H()).optional(),params:YS(H(),WS()).optional(),plugins:GS(Dje).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:GS(H()).optional(),title:H().nullish(),tts:$S().optional(),virtual:HS().nullish(),visibility:XS([`private`,`public`]).optional()})})),Aje=o((()=>{})),jje=o((()=>{})),Mje=o((()=>{})),Nje=o((()=>{})),Pje=o((()=>{})),Fje=o((()=>{OAe(),kAe(),AAe(),FAe(),IAe(),LAe(),Cje(),Oxe(),Gke(),wje(),Tje(),EAe(),kje(),Aje(),Oje(),jje(),Mje(),Nje(),Pje()})),Ije,Lje=o((()=>{Ije=[`mail`,`wallet`,`service`],[...Ije]})),Rje=o((()=>{})),zje=o((()=>{})),Bje,Vje,Hje=o((()=>{sC(),Bje=KS({ciStatus:XS([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:HS().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:VS(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),Vje=KS({environmentId:H().max(255).optional(),git:KS({activeWorktree:H().optional(),autoCreated:HS().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:HS().optional(),github:KS({extraPullRequestCount:VS().optional(),pullRequest:Bje.nullable().optional(),pullRequestStatus:XS([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:HS().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:KS({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:XS([`git`,`github`]).optional(),sessionPath:H().optional()})})),Uje=o((()=>{Hje()})),Wje,Gje=o((()=>{Wje=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),Kje=o((()=>{})),qje=o((()=>{})),Jje=o((()=>{})),Yje=o((()=>{sC(),Uje(),Gje(),Kje(),qje(),Jje(),KS({heteroPermissionMode:XS(Wje).optional(),heteroPlanMode:HS().optional(),repos:GS(H()).optional(),sandboxDrive:XS([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:HS().optional(),sandboxTemporary:HS().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:Vje.optional()})})),Xje,Zje=o((()=>{sC(),Xje=KS({allowDM:HS().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:GS(H()).optional(),personal:HS().optional(),revealDM:HS().optional(),systemPrompt:H().optional()}),KS({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:Xje.nullish(),content:H().nullish(),description:H().nullish(),editorData:YS(H(),US()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:HS().nullish(),title:H().nullish(),visibility:XS([`private`,`public`]).optional()})})),Qje,$je,eMe,tMe=o((()=>{sC(),Qje=XS([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),$je=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),eMe=bOe({allowedEnvVars:GS(H().regex(/^[A-Z_]\w*$/i)).optional(),body:YS(H(),WS()).optional(),delivery:XS([`fetch`,`qstash`]).optional(),eventFields:GS(H()).optional(),fallback:XS([`fetch`,`none`]).optional(),headers:YS(H(),H()).optional(),onError:XS([`continue`,`block`]).optional(),responseHandling:XS([`ignore`,`toolCall`]).optional(),timeout:VS().positive().max(2147483.647).optional(),url:H().min(1).refine(e=>{if(e.includes(`\\`))return!1;if(e.startsWith(`/`)&&!e.startsWith(`//`))return!0;try{let t=new URL(e);return[`http:`,`https:`].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}},`Webhook URL must be HTTP(S) or an application-relative path without credentials`)}).superRefine((e,t)=>{let n=e.responseHandling===`toolCall`;n&&e.delivery===`qstash`&&t.addIssue({code:`custom`,message:`toolCall response handling requires fetch delivery`}),!n&&e.onError===`block`&&t.addIssue({code:`custom`,message:`onError:block requires toolCall response handling`}),n&&(e.eventFields!==void 0||e.body!==void 0)&&t.addIssue({code:`custom`,message:`Control hooks cannot filter or override the event payload`})}),bOe({id:H(),matcher:$je.optional(),type:Qje,webhook:eMe}).superRefine((e,t)=>{e.matcher!==void 0&&![`beforeToolCall`,`afterToolCall`,`onToolCallError`].includes(e.type)&&t.addIssue({code:`custom`,message:`Matchers are only supported for tool events`}),e.webhook.responseHandling===`toolCall`&&![`beforeToolCall`,`afterToolCall`].includes(e.type)&&t.addIssue({code:`custom`,message:`toolCall response handling requires beforeToolCall or afterToolCall`})})})),nMe=o((()=>{sC(),JS(`decision`,[KS({decision:QS(`allow`)}),KS({decision:QS(`deny`),reason:H().optional()})])})),rMe=o((()=>{})),iMe,aMe=o((()=>{iMe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(iMe)})),oMe=o((()=>{})),sMe=o((()=>{})),cMe,lMe,uMe,dMe=o((()=>{cMe={messages:`msg`,threads:`thd`,topics:`tpc`},lMe=`[0-9a-zA-Z]{8,32}`,uMe=e=>RegExp(`^${cMe[e]}_${lMe}$`)})),fMe,pMe,mMe,hMe=o((()=>{sC(),fMe=KS({attribution:XS([`user`,`provider`,`harness`,`system`]).optional(),body:US().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:HS().optional(),httpStatus:VS().optional(),isFallback:HS().optional(),message:H().optional(),numericId:VS().optional(),retryable:HS().optional(),severity:XS([`info`,`warning`,`error`,`critical`]).optional(),type:qS([H(),VS()])}),pMe=KS({content:GS(YS(H(),WS())).optional(),encrypted_content:H().nullish(),id:H(),status:XS([`in_progress`,`completed`,`incomplete`]).optional(),summary:GS(KS({text:H(),type:QS(`summary_text`)})),type:QS(`reasoning`)}).passthrough(),mMe=KS({content:H().optional(),duration:VS().optional(),isMultimodal:HS().optional(),responseItems:GS(pMe).optional(),signature:H().optional()})})),gMe,_Me=o((()=>{gMe=function(e){return e.AgentMeta=`agent_meta`,e.AgentShare=`agent_share`,e.AgentSignal=`agent_signal`,e.Api=`api`,e.Asr=`asr`,e.Bot=`bot`,e.BuilderSuggestion=`builder_suggestion`,e.Chat=`chat`,e.Cli=`cli`,e.ContextCompression=`context_compression`,e.Cron=`cron`,e.Eval=`eval`,e.Expertise=`expertise`,e.FileEmbedding=`file_embedding`,e.FollowUp=`follow_up`,e.GenerationTopicTitle=`generation_topic_title`,e.Goal=`goal`,e.HistorySummary=`history_summary`,e.Image=`image`,e.Inbox=`inbox`,e.InputCompletion=`input_completion`,e.McpEvent=`mcp_event`,e.Memory=`memory`,e.MultimodalAnalysis=`multimodal_analysis`,e.Music=`music`,e.Notify=`notify`,e.Onboarding=`onboarding`,e.Openapi=`openapi`,e.PromptRewrite=`prompt_rewrite`,e.ProviderCheck=`provider_check`,e.Scheduled=`scheduled`,e.Scm=`scm`,e.SemanticSearch=`semantic_search`,e.SignupEmailLLMReview=`signup_email_llm_review`,e.Task=`task`,e.TaskCallback=`task_callback`,e.ThreadTitle=`thread_title`,e.Topic=`topic`,e.TopicAnalysis=`topic_analysis`,e.TopicSummary=`topic_summary`,e.TopicTitle=`topic_title`,e.Translate=`translate`,e.Tts=`tts`,e.Verify=`verify`,e.Video=`video`,e.Webhook=`webhook`,e}({})})),xC,vMe,yMe=o((()=>{sC(),xC=VS().catch(0),vMe=KS({bySource:KS({content:xC,fileContext:xC,reasoning:xC,thoughtSignature:xC,toolCallId:xC,toolCalls:xC,toolDefinition:xC}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:QS(`tokenx`).catch(`tokenx`),messageCount:xC,system:xC,total:xC})})),bMe,xMe,SC,SMe,CMe,wMe,TMe,EMe,DMe,OMe=o((()=>{sC(),bMe=XS([`markdown`,`text`,`xml`]),xMe=KS({endLine:VS().optional(),startLine:VS()}),SC=KS({content:H(),format:bMe.optional(),id:H(),lineRange:xMe.optional(),preview:H().optional(),title:H().optional()}),SMe=SC.extend({anchor:KS({endNodeId:H(),endOffset:VS(),startNodeId:H(),startOffset:VS()}).optional(),pageId:H(),source:QS(`page`),xml:H().optional()}),CMe=SC.extend({filePath:H(),language:H().optional(),side:XS([`additions`,`context`,`deletions`]).optional(),source:QS(`code`),workingDirectory:H().optional()}),wMe=SC.extend({source:QS(`text`)}),TMe=SC.extend({element:KS({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:QS(`element`)}),EMe=SC.extend({identifier:H(),source:QS(`mcpApp`)}),DMe=JS(`source`,[SMe,CMe,wMe,TMe,EMe])})),kMe,AMe=o((()=>{sC(),OMe(),kMe=SC.omit({lineRange:!0}).extend({anchor:KS({endNodeId:H(),endOffset:VS(),startNodeId:H(),startOffset:VS()}).optional(),startLine:VS().optional(),endLine:VS().optional(),pageId:H(),xml:H().optional()})})),jMe,MMe,CC,NMe,PMe,FMe,IMe,LMe,RMe,zMe,BMe,VMe,HMe,UMe,WMe,wC,GMe,KMe=o((()=>{sC(),_Me(),yMe(),OMe(),AMe(),jMe=qS([KS({action:XS([`create`,`update`,`delete`]),changeType:XS([`created`,`updated`]).optional(),targets:GS(KS({taskId:H().optional(),taskIdentifier:H().optional()})),type:QS(`task`)}),KS({args:YS(H(),WS()).optional(),data:WS(),provider:H(),toolName:H(),type:QS(`skill`)}),KS({action:QS(`register`),document:KS({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:XS([`created`,`updated`]),toolName:H()}),type:QS(`document`)}),KS({action:QS(`delete`),document:KS({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:QS(`document`)}),KS({action:QS(`register`),canvas:KS({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:KS({entry:H(),fileCount:VS(),manifestKey:H(),runtimeMajor:VS(),totalSize:VS()})}),type:QS(`canvas`)})]),MMe=KS({apiName:XS([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:YS(H(),WS()),capturedAt:H(),content:H().nullable(),error:WS().optional(),identifier:QS(`lobe-local-system`),result:WS().optional(),snapshotId:H(),state:WS().optional(),success:HS(),toolCallId:H()}),CC=KS({inputCachedTokens:VS().optional(),inputCacheMissTokens:VS().optional(),inputWriteCacheTokens:VS().optional(),inputCachedTextTokens:VS().optional(),inputCachedImageTokens:VS().optional(),inputCachedAudioTokens:VS().optional(),inputCachedVideoTokens:VS().optional(),inputTextTokens:VS().optional(),inputImageTokens:VS().optional(),inputAudioTokens:VS().optional(),inputVideoTokens:VS().optional(),inputCitationTokens:VS().optional(),inputToolTokens:VS().optional(),inputCharacters:VS().optional(),outputTextTokens:VS().optional(),outputImageTokens:VS().optional(),outputAudioTokens:VS().optional(),outputReasoningTokens:VS().optional(),outputVideoTokens:VS().optional(),acceptedPredictionTokens:VS().optional(),rejectedPredictionTokens:VS().optional(),totalInputTokens:VS().optional(),totalOutputTokens:VS().optional(),totalTokens:VS().optional(),cost:VS().optional(),credits:VS().optional()}),NMe=KS({tps:VS().optional(),ttft:VS().optional(),duration:VS().optional(),latency:VS().optional()}),PMe=KS({emoji:H(),count:VS(),users:GS(H())}),FMe=KS({sequence:VS().optional(),sourceToolCallId:H(),sourceToolName:H(),type:XS([`tool-stdout`,`tool-callback`,`task-completion`])}),IMe=KS({identifier:H()}),LMe=KS({agentId:H().optional(),name:H(),status:XS([`completed`,`error`]),threadId:H()}),RMe=KS({identifier:H(),reason:XS([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),zMe=KS({rootOperationId:H().min(1),userMessageId:H().optional()}),BMe=KS({kind:XS([`callAgent`]),visibility:QS(`internal`)}),VMe=KS({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:VS().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),HMe=KS({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),UMe=KS({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),WMe=CC.merge(NMe).extend({botSender:UMe.optional(),externalOrigin:HMe.optional(),agentDispatch:BMe.optional(),agentSender:VMe.optional(),collapsed:HS().optional(),contextAccounting:vMe.optional(),contextSelections:GS(DMe).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:VS().int().positive().optional(),inspectExpanded:HS().optional(),isMultimodal:HS().optional(),isSupervisor:HS().optional(),localSystemToolSnapshots:GS(MMe).optional(),mcpAppSource:IMe.optional(),operationId:H().min(1).optional(),orchestrationRole:XS([`supervisor`,`member`]).optional(),pageSelections:GS(kMe).optional(),performance:NMe.optional(),reactions:GS(PMe).optional(),scope:H().optional(),selectedSkillIds:GS(H()).optional(),selectedToolIds:GS(H()).optional(),signal:FMe.optional(),steer:HS().optional(),subAgentCallback:LMe.optional(),subAgentId:H().optional(),taskCallback:RMe.optional(),toolExecutionTimeMs:VS().optional(),toolResultSuccess:HS().optional(),toolResultStop:HS().optional(),toolWorkRegistration:jMe.optional(),trigger:ZS(gMe).optional(),verifyOperationId:H().optional(),verifyRound:VS().optional(),work:zMe.optional(),usage:CC.optional()}),wC=WMe.omit({agentSender:!0}),GMe=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),qMe,JMe=o((()=>{sC(),KMe(),qMe=WMe.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),KS({editorData:YS(H(),WS()).optional(),metadata:qMe.optional()}),Object.keys(qMe.shape)})),YMe,XMe=o((()=>{sC(),YMe=KS({alt:H(),height:VS().optional(),id:H(),mimeType:H().optional(),ratio:VS().optional(),url:H(),width:VS().optional()})})),ZMe=o((()=>{})),QMe,$Me,eNe,tNe=o((()=>{sC(),QMe=KS({batchId:H().optional(),itemIndex:VS().int().nonnegative().optional(),operationId:H().optional(),runtimeType:XS([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:HS().optional(),resolutionRequestId:H().optional(),skipped:HS().optional(),stepIndex:VS().int().nonnegative().optional(),status:XS([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),$Me=KS({function:KS({arguments:H(),name:H()}),id:H(),type:H()}),eNe=KS({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:QMe.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),nNe=o((()=>{})),rNe=o((()=>{})),TC=o((()=>{hMe(),JMe(),yMe(),OMe(),XMe(),ZMe(),KMe(),AMe(),tNe(),nNe(),rNe()})),iNe,aNe=o((()=>{sC(),iNe=KS({id:H(),similarity:VS()}),KS({id:H(),value:KS({fileChunks:GS(iNe),ragQueryId:H().optional()})})})),oNe,sNe,cNe=o((()=>{sC(),hMe(),tNe(),aNe(),TC(),AMe(),oNe=XS([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),sNe=KS({apiName:H(),arguments:H(),identifier:H(),type:H()}),KS({role:oNe,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:sNe.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:GS(H()).optional(),error:fMe.nullish(),traceId:H().optional(),fileChunks:GS(iNe).optional()}).passthrough(),KS({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:QMe.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:US().optional(),error:US().optional(),clientId:H().optional(),userId:H().optional()})})),lNe,uNe=o((()=>{sC(),lNe=KS({action:XS([`create`,`update`,`delete`]),agentEditable:HS().optional(),resourceType:XS([`document`,`task`])})})),EC,dNe,fNe,pNe,mNe,hNe,gNe=o((()=>{sC(),EC=XS([`never`,`required`,`always`]),dNe=qS([H(),KS({pattern:H(),type:XS([`exact`,`prefix`,`wildcard`,`regex`])})]),fNe=KS({match:YS(H(),dNe).optional(),policy:EC}),pNe=qS([EC,GS(fNe)]),KS({action:XS([`approve`,`reject`,`select`]),data:KS({remember:HS().optional(),selected:qS([H(),GS(H())]).optional()}).optional()}),KS({allowList:GS(H()).optional(),approvalMode:XS([`auto-run`,`allow-list`,`manual`,`headless`])}),mNe=KS({description:H(),match:YS(H(),dNe),policy:EC.optional()}),hNe=GS(mNe),KS({config:pNe.optional(),confirmedHistory:GS(H()).optional(),securityBlacklist:hNe.optional(),toolArgs:YS(H(),US()).optional(),toolKey:H().optional()})})),_Ne=o((()=>{})),DC,vNe,yNe,bNe,OC,xNe,SNe=o((()=>{sC(),uNe(),gNe(),_Ne(),uNe(),DC=KS({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:GS(H()).optional(),title:H()}),vNe=XS([`collapsed`,`expand`,`alwaysExpand`]),yNe=KS({default:EC.optional(),policy:EC.optional(),type:H()}),bNe=qS([pNe,KS({dynamic:yNe})]),OC=KS({defaultTimeoutMs:VS().int().positive().optional(),description:H(),humanIntervention:bNe.optional(),name:H(),ordered:HS().optional(),parameters:YS(H(),US()),renderDisplayControl:vNe.optional(),serializeBy:H().optional(),url:H().optional(),work:lNe.optional()}),xNe=KS({api:GS(OC),deviceClients:GS(XS([`cli`,`desktop`])).optional(),executors:GS(XS([`client`,`server`])).optional(),humanIntervention:bNe.optional(),identifier:H(),meta:DC,systemRole:H(),type:QS(`builtin`).optional()}),KS({discoverable:HS().optional(),hidden:HS().optional(),identifier:H(),manifest:xNe,type:QS(`builtin`)})})),CNe=o((()=>{})),wNe=o((()=>{})),TNe,ENe=o((()=>{sC(),SNe(),TNe=KS({properties:YS(H(),US()),required:GS(H()).optional(),type:QS(`object`)}),KS({$schema:H().optional(),api:GS(OC),connector:KS({id:H(),identifier:H()}).optional(),connectorLinks:KS({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:GS(KS({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:GS(OC).optional(),mcpModelOnlyTools:GS(H()).optional(),meta:DC,openapi:H().optional(),settings:TNe.optional(),systemRole:H().optional(),type:XS([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:KS({height:VS().optional(),mode:XS([`iframe`,`module`]).optional(),url:H(),width:VS().optional()}).optional(),version:H().optional()})})),DNe=o((()=>{})),ONe=o((()=>{})),kNe,ANe=o((()=>{sC(),kNe=KS({description:H().optional(),name:H(),parameters:KS({additionalProperties:HS().optional(),properties:YS(H(),US()),required:GS(H()).optional(),type:QS(`object`)})})})),jNe=o((()=>{SNe(),CNe(),wNe(),gNe(),ENe(),DNe(),ONe(),ANe()})),kC,MNe,NNe,AC,PNe,jC,FNe,MC,NC,PC,INe,LNe,RNe,FC,zNe,BNe,VNe,HNe,IC,UNe,WNe=o((()=>{sC(),kC=1e6,MNe=2e3,NNe=2e3,AC=12e3,PNe=KS({kind:QS(`writing`)}).strict(),jC=KS({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:HS()}).strict(),FNe=KS({errors:GS(jC).max(16),evidenceCount:VS().int().nonnegative().max(kC),failedCount:VS().int().nonnegative().max(kC),succeededCount:VS().int().nonnegative().max(kC)}).strict(),FNe.omit({errors:!0}).strip(),MC=e=>H().trim().min(1).max(e),NC=MC(256),PC=MC(MNe),INe=KS({content:MC(AC),reasoning:PC,tagline:NC}).strict(),LNe=e=>{if(!e||typeof e!=`object`||Array.isArray(e)||!(`salience`in e))return e;let{salience:t,...n}=e;return{...n,rank:n.rank??t}},RNe=eC(LNe,KS({description:PC,rank:VS().int().min(0).max(100),title:NC}).strict()),FC=e=>GS(RNe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),zNe=KS({composition:KS({identities:FC(6),interests:FC(8),lifeStyle:FC(6),social:FC(6),working:FC(6)}).strict(),personaProposal:INe,profile:KS({domains:GS(NC).max(8),description:PC,name:NC,pronoun:NC,roles:GS(NC).max(8),summary:PC,tagline:NC}).strict()}).strict(),KS({analysis:zNe,detailedPersona:INe.optional(),diagnostics:FNe,feedbackRevision:VS().int().nonnegative().max(kC).default(0),generationRevision:VS().int().nonnegative().max(kC).default(0),kind:QS(`proposal`),providers:GS(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),BNe=KS({content:H().trim().min(1).max(NNe),createdAt:H(),revision:VS().int().positive().max(kC)}).strict(),VNe=KS({revision:VS().int().nonnegative().max(kC),turns:GS(BNe).max(16)}).strict(),HNe=KS({completedAt:H().optional(),errors:GS(jC).max(16),failedCount:VS().int().nonnegative().max(kC),revision:VS().int().nonnegative().max(kC),status:XS([`pending`,`running`,`completed`,`failed`]),succeededCount:VS().int().nonnegative().max(kC)}).strict(),IC={detailed:JS(`status`,[KS({status:QS(`running`),updatedAt:H()}).strict(),KS({status:QS(`completed`),updatedAt:H()}).strict(),KS({error:jC,status:QS(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:VS().int().nonnegative().max(kC).default(0),generationRevision:VS().int().nonnegative().max(kC).default(0),sourceFingerprint:H(),updatedAt:H()},UNe=JS(`status`,[KS({...IC,resultMessageId:H().optional(),status:QS(`running`)}).strict(),KS({...IC,resultMessageId:H(),status:QS(`completed`)}).strict(),KS({...IC,error:jC,resultMessageId:H().optional(),status:QS(`failed`)}).strict()]),KS({confirmedAt:H().optional(),feedback:VNe.default({revision:0,turns:[]}),generationRevision:VS().int().nonnegative().max(kC).default(0),id:H(),sources:YS(H().max(64),HNe),writing:UNe.optional()}).strict()})),LC,GNe,KNe=o((()=>{sC(),WNe(),LC={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},GNe=KS({clientMode:HS().optional(),completedAt:H().optional(),duration:VS().optional(),error:US().optional(),model:H().optional(),onboardingUnderstanding:PNe.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:VS().optional(),totalLlmCalls:VS().optional(),totalMessages:VS().optional(),totalTokens:VS().optional(),totalSteps:VS().optional(),totalToolCalls:VS().optional()}),KS({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:GNe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:XS([LC.Continuation,LC.Eval,LC.Standalone,LC.Isolation])})})),qNe,JNe,RC,YNe,zC,XNe,ZNe=o((()=>{sC(),dMe(),TC(),cNe(),jNe(),KNe(),qNe=KS({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:XS([LC.Continuation,LC.Standalone,LC.Isolation])}),JNe=KS({content:H(),metadata:wC.optional(),plugin:KS({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:XS([`assistant`,`tool`]),tool_call_id:H().optional(),tools:GS(eNe).optional()}),RC=e=>H().regex(uMe(e)).optional(),KS({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:KS({agentId:H().optional(),id:RC(`messages`),metadata:YS(H(),WS()).optional().transform(GMe),model:H().optional(),provider:H().optional()}),newThread:qNe.optional(),newTopic:KS({id:RC(`topics`),metadata:$S().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:GS(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:GS(JNe).optional(),newUserMessage:KS({content:H(),contextSelections:GS(DMe).optional(),editorData:YS(H(),WS()).optional(),files:GS(H()).optional(),id:RC(`messages`),metadata:wC.optional(),pageSelections:GS(kMe).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:KS({excludeStatuses:GS(H()).optional(),excludeTriggers:GS(H()).optional(),includeTriggers:GS(H()).optional(),onlyMine:HS().optional()}).optional(),topicPageSize:VS().int().min(1).max(100).optional(),topicId:H().optional()}),YNe=KS({description:H().optional(),name:H(),schema:KS({$defs:US().optional(),additionalProperties:HS().optional(),properties:YS(H(),US()),required:GS(H()).optional(),type:QS(`object`)}),strict:HS().optional()}),KS({metadata:YS(H(),WS()).optional(),messages:GS(US()),model:H(),provider:H(),schema:YNe.optional(),tools:GS(KS({function:kNe,type:QS(`function`)})).optional(),tracing:KS({tracingId:H().uuid().optional()}).catchall(WS()).optional()}),zC=qS([H(),GS(WS()),YS(H(),WS())]),XNe=JS(`type`,[KS({criteria:KS({false:zC,true:zC}).optional(),instructions:zC,type:QS(`boolean`)}),KS({criteria:YS(H(),zC.nullable()),instructions:zC,type:QS(`choice`)}),KS({criteria:GS(zC).min(1),instructions:zC,type:QS(`score`)})]),KS({metadata:YS(H(),WS()).optional(),model:H(),provider:H(),questions:YS(H(),XNe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:zC,tracing:KS({tracingId:H().uuid().optional()}).catchall(WS()).optional()})})),QNe=o((()=>{sC()})),$Ne=o((()=>{})),ePe=o((()=>{})),tPe=o((()=>{})),nPe=o((()=>{})),rPe=o((()=>{})),iPe,aPe=o((()=>{Gke(),iPe=Wke.map(({type:e})=>e),[...Uke.options,...iPe]})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{sPe()})),lPe=o((()=>{})),uPe=o((()=>{})),dPe=o((()=>{})),fPe=o((()=>{})),pPe=o((()=>{})),mPe=o((()=>{})),hPe=o((()=>{})),gPe=o((()=>{})),_Pe=o((()=>{sC(),KS({connected:HS(),cpuCount:VS().int().min(1).max(4096),cpuPercent:VS().min(0).max(100).nullable(),diskTotalBytes:VS().int().min(0).nullish(),diskUsedBytes:VS().int().min(0).nullish(),load1:VS().min(0).nullable(),load5:VS().min(0).nullable(),load15:VS().min(0).nullable(),memoryTotalBytes:VS().int().min(0),memoryUsedBytes:VS().int().min(0),observedAt:VS().int().min(0)})})),vPe=o((()=>{})),yPe=o((()=>{})),bPe=o((()=>{})),xPe=o((()=>{})),SPe=o((()=>{})),CPe=o((()=>{})),wPe=o((()=>{})),TPe=o((()=>{})),EPe=o((()=>{vPe(),yPe(),bPe(),xPe(),SPe(),CPe(),wPe(),TPe()})),DPe=o((()=>{sC(),KS({shareId:H(),topicId:H(),visitorUserId:H()})})),OPe=o((()=>{})),kPe=o((()=>{})),APe=o((()=>{DPe(),OPe(),kPe()})),jPe=o((()=>{})),MPe=o((()=>{})),NPe=o((()=>{})),PPe=o((()=>{})),FPe=o((()=>{})),IPe=o((()=>{})),LPe=o((()=>{})),RPe=o((()=>{})),zPe=o((()=>{})),BPe=o((()=>{sC(),KS({ideal:H().optional(),question:H(),referenceFiles:H().or(GS(H())).optional()}),KS({description:H().optional(),knowledgeBaseId:H(),name:H()})})),VPe=o((()=>{})),HPe=o((()=>{})),UPe=o((()=>{})),WPe=o((()=>{sC(),KS({ideal:H().optional(),question:H(),referenceFiles:H().or(GS(H())).optional()}),KS({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),GPe=o((()=>{})),KPe=o((()=>{})),qPe=o((()=>{})),JPe,YPe=o((()=>{sC(),SNe(),JPe=KS({api:GS(OC.pick({name:!0,description:!0,parameters:!0}).strict().refine(e=>!e.name.includes(`____`),`Tool names cannot contain the routing separator`)).min(1),identifier:H().min(1).max(255).refine(e=>!e.includes(`____`),`Tool identifiers cannot contain the routing separator`),meta:DC,systemRole:H().optional(),type:XS([`builtin`,`default`,`markdown`,`mcp`,`standalone`]).optional()}).strict().refine(e=>new Set(e.api.map(e=>e.name)).size===e.api.length,`Tool names must be unique within a contract`),YS(H().min(1).max(255),JPe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),XPe=o((()=>{PPe(),FPe(),IPe(),LPe(),RPe(),zPe(),BPe(),VPe(),HPe(),UPe(),WPe(),GPe(),KPe(),qPe(),YPe()})),ZPe=o((()=>{})),QPe=o((()=>{})),$Pe=o((()=>{})),BC,eFe,tFe=o((()=>{BC={InvalidAccessCode:`InvalidAccessCode`,FreePlanLimit:`FreePlanLimit`,SubscriptionPlanLimit:`SubscriptionPlanLimit`,InsufficientBudgetForModel:`InsufficientBudgetForModel`,WorkspaceFrozenByAdmin:`WorkspaceFrozenByAdmin`,WorkspaceFrozenByRiskControl:`WorkspaceFrozenByRiskControl`,WorkspaceSubscriptionInactive:`WorkspaceSubscriptionInactive`,ShareMessageLimitExceeded:`ShareMessageLimitExceeded`,ShareSpendLimitExceeded:`ShareSpendLimitExceeded`,SharePromptTooLong:`SharePromptTooLong`,ShareHeterogeneousAgentUnsupported:`ShareHeterogeneousAgentUnsupported`,ShareHeteroDeviceUnavailable:`ShareHeteroDeviceUnavailable`,AgentShareProviderNotSupported:`AgentShareProviderNotSupported`,SupervisorDecisionFailed:`SupervisorDecisionFailed`,AgentConcurrencyLimitExceeded:`AgentConcurrencyLimitExceeded`,InsufficientBudgetForAgentRunFee:`InsufficientBudgetForAgentRunFee`,InvalidUserKey:`InvalidUserKey`,CreateMessageError:`CreateMessageError`,LobeHubModelDeprecated:`LobeHubModelDeprecated`,NoOpenAIAPIKey:`NoOpenAIAPIKey`,OllamaServiceUnavailable:`OllamaServiceUnavailable`,PluginFailToTransformArguments:`PluginFailToTransformArguments`,UnknownChatFetchError:`UnknownChatFetchError`,SystemTimeNotMatchError:`SystemTimeNotMatchError`,ServerAgentRuntimeError:`ServerAgentRuntimeError`,DeviceGatewayNotConfigured:`DeviceGatewayNotConfigured`,DeviceResponseTimeout:`DeviceResponseTimeout`,RemoteServerOffline:`RemoteServerOffline`,RemoteServerTimeout:`RemoteServerTimeout`,RemoteServerDNSFailed:`RemoteServerDNSFailed`,RemoteServerConnectionRefused:`RemoteServerConnectionRefused`,RemoteServerCertInvalid:`RemoteServerCertInvalid`,RemoteServerUnreachable:`RemoteServerUnreachable`,BadRequest:400,Unauthorized:401,Forbidden:403,ContentNotFound:404,MethodNotAllowed:405,TooManyRequests:429,InternalServerError:500,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504},eFe=[BC.RemoteServerOffline,BC.RemoteServerTimeout,BC.RemoteServerDNSFailed,BC.RemoteServerConnectionRefused,BC.RemoteServerCertInvalid,BC.RemoteServerUnreachable],new Set(eFe)})),nFe,rFe,iFe=o((()=>{sC(),nFe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),rFe=100,KS({category:H().optional(),filesOnly:HS().optional(),includeContentPreview:HS().optional(),knowledgeBaseId:H().optional(),limit:VS().int().positive().max(rFe).default(50),offset:VS().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:HS().default(!1),sortType:XS([`desc`,`asc`]).optional(),sorter:XS([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:ZS(nFe).optional(),visibility:XS([`private`,`public`]).optional()})})),aFe,oFe=o((()=>{sC(),aFe=KS({shareId:H(),visitorUserId:H()}),KS({agentShare:aFe.optional(),date:H(),dirname:H(),filename:H(),height:VS().optional(),path:H(),ratio:VS().optional(),width:VS().optional()}),KS({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:US().optional(),name:H(),size:VS(),source:H().optional(),url:H().optional()})})),sFe,cFe=o((()=>{iFe(),oFe(),sFe=function(e){return e.Acceptance=`acceptance`,e.AgentDocument=`agent-document`,e.Artboard=`artboard`,e.Canvas=`canvas`,e.ChatAttachment=`chat-attachment`,e.ImageGeneration=`image_generation`,e.Meeting=`meeting`,e.MusicGeneration=`music_generation`,e.PageEditor=`page-editor`,e.Skill=`skill`,e.ToolResult=`tool-result`,e.VideoGeneration=`video_generation`,e}({}),new Set(Object.values(sFe))})),lFe=o((()=>{})),uFe,dFe,fFe,pFe,VC,mFe,hFe,gFe,_Fe,vFe=o((()=>{sC(),uFe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],dFe=[`agentEmoji`,`agentName`,`fullName`],fFe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],pFe=[`agent_identity`,`user_identity`,`discovery`,`summary`],VC=H().trim().transform(e=>e.length>0?e:void 0).optional(),mFe=GS(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),XS(uFe),hFe=XS(dFe),gFe=XS(fFe),KS({agentEmoji:VC,agentName:VC,customInterests:mFe,fullName:VC,interests:mFe}).strict(),_Fe=XS(pFe),KS({discoveryUserMessageCount:VS().optional(),finished:HS(),missingStructuredFields:GS(hFe),phase:_Fe,remainingDiscoveryExchanges:VS().optional(),topicId:H().optional(),version:VS()}).strict(),KS({activeTopicId:H().optional(),discoveryStartUserMessageCount:VS().optional(),finishedAt:H().optional(),version:VS()}).strict(),KS({node:gFe,patch:KS({}).passthrough()}).strict()})),yFe,bFe,xFe=o((()=>{sC(),vFe(),yFe=qS([KS({kind:QS(`onboarding`),phase:_Fe}),KS({kind:QS(`chat`)})]),bFe=KS({model:H().min(1),provider:H().min(1)}),KS({hint:yFe.optional(),modelConfig:bFe,threadId:H().optional(),topicId:H().min(1)})})),SFe=o((()=>{})),CFe=o((()=>{})),wFe=o((()=>{})),TFe=o((()=>{})),HC,EFe,DFe,OFe,kFe,AFe,jFe,MFe,NFe,PFe=o((()=>{sC(),HC=GS(H().trim().min(1)).max(200),EFe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),DFe=eC(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||EFe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),OFe=[`dead_end`,`superseded`,`retry`],kFe=2e3,AFe=KS({kind:XS(OFe),lesson:H().trim().min(1).max(kFe),nodeIds:HC.min(1),reason:H().trim().min(1).max(kFe),title:H().trim().min(1).max(200)}).strict(),jFe=KS({detours:GS(AFe).max(20).default([]),findingIds:HC.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:HC.default([]),title:H().trim().min(1).max(200),workVersionIds:HC.default([])}).strict(),MFe=KS({nodeIds:HC.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),NFe=KS({edgeIds:HC.default([]),nodeIds:HC.min(1)}).strict(),KS({chapters:GS(jFe).min(1).max(30),deliverableWorkId:DFe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:NFe.optional(),nextSteps:GS(MFe).max(20).default([])}).strict()})),FFe=o((()=>{})),IFe=o((()=>{})),LFe=o((()=>{})),RFe=o((()=>{})),zFe,BFe,VFe,HFe=o((()=>{sC(),zFe=KS({apiName:H(),arguments:H(),id:H(),identifier:H(),type:QS(`default`)}),BFe=KS({clientId:H(),content:H(),createdAt:H().optional(),metadata:YS(H(),US()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:KS({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:YS(H(),US()).optional(),provider:H().optional(),reasoning:KS({content:H()}).passthrough().optional(),role:XS([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:GS(zFe).optional(),usage:YS(H(),US()).optional()}),VFe=KS({clientId:H(),messages:GS(BFe),sourceMessageClientId:H().optional(),status:XS([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:XS([`continuation`,`standalone`,`isolation`])}),KS({messages:GS(BFe),metadata:YS(H(),US()).optional(),sessionId:H(),source:XS([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:GS(VFe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),UFe=o((()=>{})),WFe=o((()=>{})),GFe=o((()=>{})),KFe=o((()=>{})),qFe,JFe=o((()=>{qFe=[`triage`,`backlog`,`unstarted`,`started`],[...qFe]})),YFe=o((()=>{})),XFe=o((()=>{})),ZFe=o((()=>{})),QFe=o((()=>{})),$Fe,eIe,tIe=o((()=>{sC(),$Fe=KS({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),eIe=KS({citations:GS(KS({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:GS($Fe).optional(),imageSearchQueries:GS(H()).optional(),searchQueries:GS(H()).optional()})})),nIe=o((()=>{sC(),tIe(),TC(),KS({content:H().optional(),editorData:YS(H(),US()).nullish(),error:fMe.nullish(),imageList:GS(YMe).optional(),metadata:wC.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:mMe.optional(),role:H().optional(),search:eIe.nullish(),toolCalls:GS($Me).optional(),tools:GS(eNe).nullish(),traceId:H().optional(),usage:CC.optional()}).passthrough()})),rIe=o((()=>{QFe(),nIe()})),iIe=o((()=>{})),aIe=o((()=>{})),oIe=o((()=>{})),sIe=o((()=>{})),cIe=o((()=>{iIe(),aIe(),oIe(),cNe(),aNe(),sIe()})),lIe=o((()=>{TC(),rIe(),cIe()})),uIe=o((()=>{sC(),KS({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:GS(H()).optional(),title:H().optional()})})),dIe=o((()=>{})),fIe=o((()=>{})),pIe,mIe=o((()=>{sC(),pIe=KS({accessToken:H().optional(),token:H().optional(),type:XS([`none`,`bearer`,`oauth2`])}).optional(),KS({auth:pIe,headers:YS(H(),H()).optional(),identifier:H(),metadata:KS({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),hIe=o((()=>{})),gIe=o((()=>{mIe(),hIe()})),_Ie=o((()=>{})),vIe=o((()=>{sC(),KS({fileIds:GS(H()).optional(),knowledgeIds:GS(H()).optional(),query:H(),topK:VS().optional()})})),yIe=o((()=>{})),bIe=o((()=>{})),xIe=o((()=>{})),SIe=o((()=>{})),CIe=o((()=>{})),wIe=o((()=>{})),TIe=o((()=>{})),EIe,DIe=o((()=>{EIe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),OIe=o((()=>{TIe(),DIe()})),kIe,AIe,jIe=o((()=>{kIe=`NO_REPLY`,AIe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${kIe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(AIe)})),MIe,NIe=o((()=>{sC(),MIe=KS({name:H(),url:H().url().optional()}),KS({author:qS([H(),MIe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:GS(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),PIe=o((()=>{})),FIe=o((()=>{})),IIe=o((()=>{})),LIe,RIe=o((()=>{LIe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],LIe[0]})),UC,zIe=o((()=>{UC=1440*60*1e3,30*UC,90*UC,7*UC})),BIe=o((()=>{FIe(),IIe(),RIe(),zIe()})),VIe=o((()=>{})),WC,HIe,UIe,WIe,GIe,KIe,qIe,JIe=o((()=>{sC(),WC=XS([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),KS({serverDefaultHeterogeneousProfiles:GS(H().min(1)).optional()}).passthrough(),HIe=KS({audio:HS().optional(),functionCall:HS().optional(),imageOutput:HS().optional(),reasoning:HS().optional(),search:HS().optional(),video:HS().optional(),vision:HS().optional()}),UIe=KS({codexMaxReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:XS([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:XS([`none`,`high`,`max`]).optional(),effort:XS([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:XS([`high`,`max`]).optional(),glm5_3ReasoningEffort:XS([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:XS([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:XS([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:XS([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:XS([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:XS([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:XS([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:XS([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:XS([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:XS([`low`,`high`,`max`]).optional(),opus47Effort:XS([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:XS([`low`,`medium`,`high`]).optional(),reasoningMode:XS([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:XS([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:XS([`low`,`high`]).optional(),thinkingLevel:XS([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:XS([`low`,`high`]).optional(),thinkingLevel3:XS([`low`,`medium`,`high`]).optional(),thinkingLevel4:XS([`minimal`,`high`]).optional(),thinkingLevel5:XS([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(UIe.shape),WIe=XS(`reasoningBudgetToken.reasoningBudgetToken32k.reasoningBudgetToken80k.enableReasoning.preserveThinking.enableAdaptiveThinking.disableContextCaching.effort.deepseekV4GAReasoningEffort.deepseekV4ReasoningEffort.qwen38ReasoningEffort.reasoningEffort.reasoningMode.gpt5ReasoningEffort.gpt5_1ReasoningEffort.gpt5_2ReasoningEffort.gpt5_2ProReasoningEffort.gpt5_6ReasoningEffort.gpt6ReasoningEffort.glm5_2ReasoningEffort.glm5_3ReasoningEffort.grok4_20ReasoningEffort.grok4_3ReasoningEffort.grok4_5ReasoningEffort.grok4_6ReasoningEffort.grok4_7ReasoningEffort.hy3ReasoningEffort.kimiK3ReasoningEffort.ring2_6ReasoningEffort.codexMaxReasoningEffort.opus47Effort.step3_5ReasoningEffort.textVerbosity.thinking.thinkingBudget.thinkingLevel.thinkingLevel2.thinkingLevel3.thinkingLevel4.thinkingLevel5.imageAspectRatio.imageAspectRatio2.imageResolution.imageResolution2.urlContext`.split(`.`)),GIe=XS([`tool`,`params`,`internal`]),KIe=XS([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),qIe=KS({disabledParams:GS(KIe).optional(),extendParams:GS(WIe).optional(),searchImpl:GIe.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),KS({abilities:HIe.optional(),contextWindowTokens:VS().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:qIe.optional(),type:WC.optional()}),KS({abilities:HIe.optional(),config:KS({deploymentName:H().optional()}).optional(),contextWindowTokens:VS().nullish(),displayName:H().nullish(),settings:qIe.optional(),type:WC.optional()}),KS({enabled:HS(),id:H(),providerId:H(),source:XS([`builtin`,`custom`,`remote`]).optional(),type:WC.optional()})})),YIe,GC,XIe,ZIe,QIe,$Ie,eLe,tLe,nLe=o((()=>{JIe(),sC(),Uje(),Gje(),YIe=KS({claimedAt:H(),expiresAt:H(),id:H()}),GC=KS({claim:YIe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),XIe=GC.extend({failedAssistantMessageId:H(),kind:QS(`resume_after_rate_limit`),rateLimit:KS({rateLimitType:H().optional(),resetsAt:VS().optional()}).optional(),resume:KS({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:QS(`heterogeneous_agent`),userMessageId:H()}),ZIe=GC.extend({kind:QS(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),KS({baseBranch:H().min(1).max(1024).optional(),deviceId:H().min(1).max(256),path:H().min(1).max(4096),repoType:XS([`git`,`github`]),sourcePath:H().min(1).max(4096)}),QIe=GC.extend({error:H().optional(),kind:QS(`worktree_start`),operationId:H(),retryable:HS().optional(),userMessageId:H(),waitingForDevice:HS().optional()}),$Ie=JS(`kind`,[XIe,ZIe,QIe]),KS({claim:YIe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:_Oe().optional(),rateLimit:KS({rateLimitType:H().optional(),resetsAt:VS().optional()}).optional(),reason:QS(`rate_limit`),resume:KS({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:QS(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),eLe=KS({boundDeviceId:H().optional(),heteroEffort:$S(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:YS(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:YS(H(),H()).optional(),heteroPermissionMode:XS(Wje).optional(),heteroPermissionModeFallback:XS([`outdatedCli`,`root`]).nullable().optional(),heteroPlanMode:HS().optional(),codexPlanDecision:KS({dismissed:HS(),itemId:H().min(1)}).nullable().optional(),heteroSpeed:XS([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:KS({comment:H().max(500).optional(),rating:XS([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:KS({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:KS({categoryHints:GS(H()),installedAgentIds:GS(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:GS(H()).optional(),skipReason:H().optional(),skippedAgentIds:GS(H()).optional(),status:XS([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:GS(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:XS([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:VS().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:UIe.optional(),repos:GS(H()).optional(),runningOperation:vOe().optional(),taskCallbackReservation:KS({messageId:H(),reservedAt:H()}).nullable().optional(),sandboxDrive:XS([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxWorkingDirectory:H().max(1024).optional(),scheduledRun:$Ie.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:Vje.optional()}),eLe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),tLe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],XS(tLe)})),rLe=o((()=>{VIe(),KNe(),nLe()})),iLe=o((()=>{})),aLe=o((()=>{})),oLe=o((()=>{sC(),KS({currentStep:VS().min(1).max(7).optional(),finishedAt:H().optional(),version:VS()})})),sLe=o((()=>{})),cLe,lLe,uLe=o((()=>{sC(),cLe=KS({checked:HS(),id:H().min(1).max(128),instruction:H().trim().min(1).max(4e3),providerId:H().trim().min(1).max(128),reason:H().trim().min(1).max(1e3),sources:GS(KS({subject:H().trim().min(1).max(500).optional(),title:H().trim().min(1).max(500).optional(),type:H().trim().min(1).max(128),url:H().trim().min(1).max(2048)}).strict()).min(1).max(16),title:H().trim().min(1).max(200)}).strict(),lLe=KS({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:HS()}).strict(),KS({completedAt:H().optional(),createdTaskIds:YS(H().max(128),H().max(512)),errors:GS(lLe).max(16),id:H().min(1).max(512),providerIds:GS(H().min(1).max(128)).max(16),recommendations:GS(cLe).max(48),sourceFingerprint:H().min(1).max(2048),status:XS([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),dLe,fLe,pLe,mLe,hLe=o((()=>{sC(),dLe=KS({docsMerged:HS().optional(),moveSettingsToAvatar:HS().optional(),topic:HS().optional(),uploadFileInKnowledgeBase:HS().optional()}),fLe=KS({enableAgentIdentity:HS().optional(),enableAgentGraphConfig:HS().optional(),enableArtifactDeployment:HS().optional(),enablePageCollab:HS().optional(),enableClaudeCodeSdk:HS().optional(),enableCodexAppServer:HS().optional(),enableDesktopSplitView:HS().optional(),enableHeteroSessionImport:HS().optional(),enableGroupChat:HS().optional(),enableImessage:HS().optional(),enableInputMarkdown:HS().optional(),enableMessageTextSelectionActions:HS().optional(),enableIntegrations:HS().optional(),enableOAuthApps:HS().optional(),enableProjects:HS().optional(),enableSelfLearning:HS().optional(),enableTaskVerify:HS().optional(),enableEvalCapture:HS().optional(),enableTopicBugReport:HS().optional(),enableGoals:HS().optional(),enableTopicAcceptance:HS().optional(),enableDeviceTunnel:HS().optional()}),pLe=KS({acceptOnMerge:HS().optional(),commentOnPrivateRepositories:HS().optional(),commentOnPublicRepositories:HS().optional(),wakeOnCiFailure:HS().optional(),wakeOnReview:HS().optional()}),mLe=KS({github:pLe.optional()}),KS({provider:H(),providerAccountId:H()}),KS({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:dLe.optional(),hideSyncAlert:HS().optional(),integration:mLe.optional(),lab:fLe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:XS([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:GS(H()).optional(),sidebarHiddenGroupIds:GS(H()).optional(),terminalFontFamily:H().optional(),telemetry:HS().nullable(),topicGroupMode:XS([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:HS().optional(),topicSortBy:XS([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:HS().optional(),workspace:KS({order:GS(H()).optional()}).optional()}).partial()})),gLe=o((()=>{})),_Le=o((()=>{})),vLe=o((()=>{})),yLe=o((()=>{})),bLe=o((()=>{})),xLe=o((()=>{})),SLe=o((()=>{})),CLe=o((()=>{})),wLe,KC,TLe=o((()=>{sC(),wLe=YS(H(),YS(H(),HS())),KC=KS({enabled:HS().optional(),items:wLe.optional()}).strict(),KS({content:KS({scheduledTaskSummary:HS().optional()}).strict().optional(),email:KC.optional(),im:KC.extend({platforms:YS(H(),KC.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:KC.optional(),push:KC.optional()}).strict()})),ELe=o((()=>{})),DLe=o((()=>{})),OLe=o((()=>{})),kLe=o((()=>{})),ALe=o((()=>{sC(),gLe(),_Le(),vLe(),yLe(),bLe(),xLe(),SLe(),CLe(),TLe(),ELe(),DLe(),OLe(),kLe(),KS({defaultAgent:US().optional(),general:US().optional(),hotkey:US().optional(),image:US().optional(),keyVaults:US().optional(),languageModel:US().optional(),market:US().optional(),memory:US().optional(),notification:US().optional(),systemAgent:US().optional(),tool:US().optional(),tts:US().optional()}).passthrough().partial()})),jLe=o((()=>{vFe(),oLe(),sLe(),uLe(),hLe(),ALe()})),MLe=o((()=>{})),NLe=o((()=>{})),PLe=o((()=>{})),FLe=o((()=>{})),ILe,LLe=o((()=>{sC(),ILe=XS([`personal`,`professional`,`demographic`]),KS({description:H().optional(),episodicDate:H().optional(),extractedLabels:GS(H()).optional(),labels:YS(H(),US()).optional(),relationship:H().optional(),role:H().optional(),type:ILe.optional(),userMemoryId:H().optional()}),KS({description:H().optional(),episodicDate:H().optional(),extractedLabels:GS(H()).optional(),labels:YS(H(),US()).optional(),relationship:H().optional(),role:H().optional(),type:ILe.optional()})})),RLe,zLe,BLe=o((()=>{RLe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(RLe),zLe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(zLe)})),VLe=o((()=>{})),HLe=o((()=>{})),ULe,WLe,GLe,qC,KLe,qLe,JLe,YLe=o((()=>{ULe=function(e){return e.Aunt=`aunt`,e.Brother=`brother`,e.Classmate=`classmate`,e.Colleague=`colleague`,e.Couple=`couple`,e.Coworker=`coworker`,e.Daughter=`daughter`,e.Father=`father`,e.Friend=`friend`,e.Granddaughter=`granddaughter`,e.Grandfather=`grandfather`,e.Grandmother=`grandmother`,e.Grandson=`grandson`,e.Husband=`husband`,e.Manager=`manager`,e.Mentee=`mentee`,e.Mentor=`mentor`,e.Mother=`mother`,e.Nephew=`nephew`,e.Niece=`niece`,e.Other=`other`,e.Partner=`partner`,e.Self=`self`,e.Sibling=`sibling`,e.Sister=`sister`,e.Son=`son`,e.Spouse=`spouse`,e.Teammate=`teammate`,e.Uncle=`uncle`,e.Wife=`wife`,e}({}),Object.values(ULe),WLe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(WLe),GLe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(GLe),qC=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(qC),KLe=function(e){return e.Activity=`activity`,e.Context=`context`,e.Event=`event`,e.Fact=`fact`,e.Location=`location`,e.Other=`other`,e.People=`people`,e.Preference=`preference`,e.Technology=`technology`,e.Topic=`topic`,e}({}),Object.values(KLe),qLe=function(e){return e.Aborted=`aborted`,e.Cancelled=`cancelled`,e.Completed=`completed`,e.Ongoing=`ongoing`,e.OnHold=`on_hold`,e.Planned=`planned`,e}({}),Object.values(qLe),JLe=function(e){return e.Appointment=`appointment`,e.Call=`call`,e.Celebration=`celebration`,e.Class=`class`,e.Conference=`conference`,e.Errand=`errand`,e.Event=`event`,e.Exercise=`exercise`,e.Meal=`meal`,e.Meeting=`meeting`,e.Other=`other`,e.ProjectSession=`project-session`,e.Social=`social`,e.Task=`task`,e.Trip=`trip`,e.Workshop=`workshop`,e}({}),Object.values(JLe)})),XLe=o((()=>{})),JC,ZLe,QLe,$Le,eRe,tRe,nRe,rRe,iRe,aRe,oRe,sRe,cRe,lRe=o((()=>{sC(),YLe(),JC=eC(e=>typeof e==`string`?[e]:e,GS(H().trim().min(1))),ZLe=e=>eC(e=>typeof e==`string`?[e]:e,GS(e)),QLe=XS([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),$Le=KS({activities:VS().int().min(0).optional(),contexts:VS().int().min(0).optional(),experiences:VS().int().min(0).optional(),identities:VS().int().min(0).optional(),preferences:VS().int().min(0).optional()}),eRe=KS({end:oC().optional(),field:QLe.optional(),start:oC().optional()}),tRe=XS([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),nRe=KS({date:oC(),selector:QS(`day`)}),rRe=KS({month:VS().int().min(1).max(12),selector:QS(`month`),year:VS().int().min(1970).max(9999)}),iRe=KS({end:oC().optional(),selector:QS(`range`),start:oC().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),aRe=KS({selector:QS(`year`),year:VS().int().min(1970).max(9999)}),oRe=XS([`today`,`yesterday`]),sRe=MOe(()=>qS([KS({selector:tRe}),nRe,rRe,KS({anchor:qS([oRe,sRe]),offsetDays:VS().int(),selector:QS(`relativeDay`)}),iRe,aRe])),KS({categories:JC.optional(),effort:XS([`low`,`medium`,`high`]).optional(),labels:JC.optional(),layers:ZLe(ZS(qC)).optional(),queries:JC.optional(),relationships:JC.optional(),status:JC.optional(),tags:JC.optional(),timeIntent:sRe.optional(),timeRange:eRe.optional(),topK:$Le.optional(),types:JC.optional()}),cRe=XS([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),KS({include:ZLe(cRe).optional(),layers:GS(ZS(qC)).optional(),limit:VS().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:eRe.optional()})})),uRe=o((()=>{})),dRe=o((()=>{MLe(),NLe(),PLe(),FLe(),LLe(),BLe(),VLe(),HLe(),YLe(),XLe(),lRe(),uRe()})),fRe=o((()=>{})),pRe=o((()=>{})),mRe=o((()=>{pRe()})),hRe=o((()=>{})),gRe=o((()=>{})),_Re=o((()=>{hRe(),gRe()})),vRe,yRe=o((()=>{vRe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(vRe).flatMap(([e,t])=>t.map(t=>[t,e])))})),bRe=o((()=>{})),xRe=o((()=>{sC(),KS({start:VS().finite().nonnegative()}).strict()})),SRe=o((()=>{sC(),KS({preconditions:GS(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:GS(KS({id:H().min(1),name:H().min(1),description:H().optional(),resource:KS({type:XS([`file`,`document`]),id:H().min(1)}).optional(),data:YS(H(),WS()).optional()})).max(100).optional(),steps:GS(KS({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:GS(H()).optional()})).max(200).optional()}).superRefine((e,t)=>{for(let n of[`fixtures`,`steps`]){let r=(e[n]??[]).map(e=>e.id);new Set(r).size!==r.length&&t.addIssue({code:`custom`,message:`Duplicate ${n} ids`,path:[n]})}let n=new Set(e.fixtures?.map(e=>e.id));e.steps?.some(e=>e.fixtureIds?.some(e=>!n.has(e)))&&t.addIssue({code:`custom`,message:`Unknown fixture reference`,path:[`steps`]})})})),YC,CRe,wRe=o((()=>{sC(),YC=KS({height:VS().finite(),width:VS().finite(),x:VS().finite(),y:VS().finite()}),CRe=KS({commit:H().max(200).optional(),context:YS(H().max(100),qS([H().max(500),VS(),HS()])).optional(),env:KS({consoleErrors:GS(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:XS([`change`,`comment`]),region:YC.optional(),regionRefs:GS(KS({box:YC,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:KS({x:VS().finite(),y:VS().finite()}),targets:GS(KS({code:KS({chain:GS(KS({file:H().max(500).optional(),line:VS().int().optional(),name:H().max(200)})).max(5),column:VS().int(),file:H().max(500),line:VS().int()}).optional(),label:H().max(200),rect:YC,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:QS(1),viewport:KS({dpr:VS().positive(),height:VS().finite(),width:VS().finite()})}),KS({anchor:CRe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:KS({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}).optional()}).refine(e=>!(e.parentId&&(e.anchor||e.screenshot)),{message:`A reply cannot carry an anchor or a screenshot`}).refine(e=>!e.anchor||JSON.stringify(e.anchor).length<=32768,{message:`Anchor is too large`}),KS({note:H().trim().max(2e3).optional(),verdict:XS([`accept`,`send_back`])})})),TRe,XC,ZC,QC,ERe,DRe,ORe,kRe,ARe,jRe,MRe,NRe=o((()=>{sC(),wRe(),TRe=[`region`,`element`,`sketch`],XC=VS().finite(),ZC=KS({height:XC,width:XC,x:XC,y:XC}),QC=CRe.shape,ERe=MOe(()=>KS({children:GS(ERe).max(50),rect:ZC,type:XS([`avatar`,`button`,`card`,`image`,`input`,`text`])})),DRe=KS({commit:QC.commit,context:QC.context,env:QC.env}),ORe=KS({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),kRe=KS({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:DRe.optional(),kind:XS(TRe),pageMeta:ORe.optional(),rectDocument:ZC,rectViewport:ZC,regionRefs:QC.regionRefs,regions:GS(ZC).max(6).optional(),routeKey:H().max(500),scroll:KS({x:XC,y:XC}),sketch:GS(ERe).max(50).optional(),targets:QC.targets.optional(),url:H().url().max(2e3),viewport:KS({dpr:VS().positive(),height:XC,width:XC})}),ARe=64*1024,jRe=KS({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),kRe.extend({screenshot:jRe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=ARe,{message:`Mark is too large`}),KS({content:H().trim().min(1).max(4e3).optional(),rectDocument:ZC.optional(),rectViewport:ZC.optional(),regionRefs:QC.regionRefs,regions:GS(ZC).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),KS({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),MRe=[`pass`,`not_fixed`],KS({reason:H().trim().max(2e3).optional(),verdict:XS(MRe)}),KS({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),PRe,FRe,$C,IRe,LRe,RRe,ew,tw,zRe,BRe,VRe=o((()=>{sC(),PRe=[`journey`,`options`,`references`,`other`],FRe=[`html`,`image`,`video`,`decision`],$C=H(),IRe=VS().finite(),LRe=VS().finite().positive(),KS({hash:H().min(1).nullable(),kind:QS(`file`),path:H().min(1)}),RRe=KS({kind:QS(`file`),path:H().min(1)}),ew=H().min(1).optional(),tw=H().min(1),zRe={expected:$C.optional(),groupId:tw.optional(),h:LRe.optional(),pageId:tw.optional(),recommended:HS().optional(),roundId:tw.optional(),source:RRe.optional(),title:$C,type:XS(FRe).optional(),w:LRe.optional(),x:IRe,y:IRe},BRe={desc:$C.optional(),kind:XS(PRe),pageId:tw.optional(),title:$C},JS(`type`,[KS({page:KS({name:$C.min(1)}),ref:ew,type:QS(`addPage`)}),KS({id:tw,patch:KS({name:$C.min(1)}),type:QS(`updatePage`)}),KS({id:tw,type:QS(`removePage`)}),KS({ref:ew,round:KS({batchId:tw.optional(),pageId:tw.optional(),title:$C.min(1)}),type:QS(`addRound`)}),KS({id:tw,patch:KS({title:$C.min(1)}),type:QS(`updateRound`)}),KS({group:KS(BRe),ref:ew,type:QS(`addGroup`)}),KS({id:tw,patch:KS({desc:$C,kind:XS(PRe),title:$C}).partial(),type:QS(`updateGroup`)}),KS({id:tw,type:QS(`removeGroup`)}),KS({board:KS(zRe),ref:ew,type:QS(`addBoard`)}),KS({id:tw,patch:KS({...zRe,groupId:tw.nullable(),roundId:tw.nullable()}).omit({pageId:!0,type:!0}).partial(),type:QS(`updateBoard`)}),KS({id:tw,type:QS(`removeBoard`)}),KS({edge:KS({condition:$C.optional(),from:tw,isDefault:HS().optional(),label:$C.optional(),to:tw}),ref:ew,type:QS(`addEdge`)}),KS({id:tw,type:QS(`removeEdge`)}),KS({boardId:tw,expected:$C,type:QS(`setCheck`)})])})),nw,rw,HRe,URe,WRe=o((()=>{sC(),nw={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},rw=H().min(1).max(nw.maxPathLength+2),HRe=qS([KS({content:H(),path:rw}).strict(),KS({fileRef:H().min(1),path:rw}).strict(),KS({base64:H().min(1),path:rw}).strict(),KS({path:rw,uploaded:QS(!0)}).strict(),KS({fromCanvas:KS({canvasId:H().min(1),version:VS().int().positive().optional()}).strict(),path:rw}).strict()]),GS(KS({path:rw,size:VS().int().nonnegative()}).strict()).min(1).max(nw.maxFiles),URe=KS({newText:H(),oldText:H().min(1),path:rw}).strict(),KS({deletes:GS(rw).max(nw.maxFiles).optional(),edits:GS(URe).max(200).optional(),writes:GS(HRe).max(nw.maxFiles).optional()}).strict()})),GRe=o((()=>{})),KRe=o((()=>{})),qRe=o((()=>{})),JRe=o((()=>{})),YRe=o((()=>{})),XRe=o((()=>{})),ZRe,QRe,iw,$Re,eze,tze,nze,rze,ize,aze=o((()=>{sC(),ZRe=[`new`,`reuse`],QRe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,iw=KS({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),$Re=KS({arguments:YS(H(),WS()),delivery:iw.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),eze=KS({cursor:H().nullable().optional(),deliveryStatus:KS({active:HS().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:VS().nonnegative().optional(),throttled:HS().optional()}).optional(),refreshBefore:Ike({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:HS().optional()}).strict(),tze=KS({scheme:QS(`standard_webhooks`)}).strict(),nze=KS({autoApprove:HS(),delivery:iw.optional(),identifier:H().regex(QRe).optional(),topicMode:XS(ZRe),topicId:H().min(1).optional()}).strict(),rze=KS({}).strict(),ize=KS({scheme:QS(`bearer_token`)}).strict(),JS(`kind`,[KS({kind:QS(`mcp_events`),config:$Re,state:eze,verification:tze}),KS({kind:QS(`generic`),config:nze,state:rze,verification:ize})])})),oze=o((()=>{})),sze=o((()=>{})),cze=o((()=>{})),lze=o((()=>{})),uze=o((()=>{})),dze=o((()=>{})),fze=o((()=>{})),pze=o((()=>{dze(),fze()})),mze=o((()=>{})),hze=o((()=>{})),gze=o((()=>{Fje(),Lje(),Rje(),zje(),Yje(),Zje(),tMe(),nMe(),rMe(),aMe(),oMe(),sMe(),ZNe(),QNe(),$Ne(),ePe(),tPe(),nPe(),rPe(),aPe(),oPe(),cPe(),lPe(),uPe(),dPe(),fPe(),pPe(),mPe(),Uje(),hPe(),gPe(),_Pe(),EPe(),APe(),jPe(),MPe(),dMe(),NPe(),XPe(),ZPe(),QPe(),$Pe(),tFe(),cFe(),lFe(),xFe(),SFe(),CFe(),wFe(),TFe(),PFe(),FFe(),IFe(),LFe(),RFe(),HFe(),UFe(),WFe(),GFe(),KFe(),JFe(),YFe(),XFe(),ZFe(),lIe(),uIe(),dIe(),fIe(),gIe(),_Ie(),vIe(),yIe(),bIe(),xIe(),SIe(),tIe(),CIe(),wIe(),OIe(),jIe(),NIe(),PIe(),BIe(),jNe(),rLe(),iLe(),aLe(),WNe(),jLe(),dRe(),fRe(),mRe(),_Re(),yRe(),bRe(),xRe(),SRe(),wRe(),NRe(),_Me(),VRe(),WRe(),GRe(),KRe(),qRe(),JRe(),Gje(),XRe(),aze(),oze(),sze(),cze(),lze(),uze(),pze(),WNe(),dRe(),mze(),YRe(),hze()})),_ze=o((()=>{})),vze,aw,yze=o((()=>{vze=[`*`,`agent:read`,`agent:write`,`agent:credential:write`,`eval:read`,`eval:write`,`chat:read`,`chat:write`,`model:invoke`,`model:read`,`model:write`,`file:read`,`file:write`,`knowledge:read`,`knowledge:write`,`generation:read`,`generation:write`,`mcp:read`,`mcp:write`,`usage:read`,`workspace:read`,`workspace:write`,`user:read`,`user:write`],new Set(vze),aw=(e,t)=>({read:e,write:t}),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,null),aw(`knowledge:read`,`knowledge:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,null),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`model:read`,`model:write`),aw(`model:read`,`model:write`),aw(`chat:read`,null),aw(`chat:read`,`chat:write`),aw(`knowledge:read`,`knowledge:write`),aw(`model:read`,`model:write`),aw(`agent:read`,null),aw(`knowledge:read`,`knowledge:write`),aw(`knowledge:read`,`knowledge:write`),aw(`knowledge:read`,`knowledge:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`user:read`,`user:write`),aw(`file:read`,`file:write`),aw(`file:read`,`file:write`),aw(`chat:read`,`chat:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`chat:read`,`chat:write`),aw(`knowledge:read`,`knowledge:write`),aw(`knowledge:read`,`knowledge:write`),aw(`agent:read`,`agent:write`),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`agent:read`,`agent:write`),aw(`knowledge:read`,`knowledge:write`),aw(`user:read`,`user:write`),aw(`chat:read`,`chat:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`chat:read`,null),aw(`chat:read`,null),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`file:read`,`file:write`),aw(`usage:read`,null),aw(`user:read`,`user:write`),aw(`user:read`,`user:write`),aw(`user:read`,`user:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,null),aw(`agent:read`,`agent:write`),aw(`workspace:read`,`workspace:write`),aw(`workspace:read`,null),aw(`workspace:read`,null),aw(`workspace:read`,`workspace:write`)})),ow,bze=o((()=>{ow=1024*1024,10*ow,10*ow,10*ow,10*ow,50*ow,50*ow,20*ow,5*ow,20*ow,2*ow,100*ow})),xze=o((()=>{}));function Sze(e){let t=[],n=[];if(e=e.filter(e=>e!==``),e.length===0)return``;if(typeof e[0]!=`string`)throw TypeError(`Url must be a string. Received `+e[0]);let r=wze.test(e[0]);Cze.test(e[0])&&e.length>1&&(e[0]=e.shift()+e[0]),e[0]===`/`&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(cw,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(cw,`$1://`));let i=!1;for(let r=0;r<e.length;r++){let a=e[r];if(typeof a!=`string`)throw TypeError(`Url must be a string. Received `+a);let o=a.startsWith(`/`),s=a.endsWith(`/`);if(r>0&&(a=a.replace(/^[\/]+/,``)),a=r<e.length-1?a.replace(/[\/]+$/,``):a.replace(/[\/]+$/,`/`),a===``){i||=o;continue}t.push(a),n.push(o||i),i=s}let a=``;for(let e=0;e<t.length;e++){let r=t[e];if(e===0){a+=r;continue}let i=t[e-1];if(i&&i.endsWith(`?`)){a+=r;continue}if(i.endsWith(`#`)){a+=(n[e]?`/`:``)+r;continue}a+=`/`+r}a=a.replace(/\/(\?|&|#[^!])/g,`$1`);let o=a.indexOf(`#`),s=o===-1?a:a.slice(0,o),c=o===-1?``:a.slice(o+1),[l,...u]=s.split(/(?:\?|&)+/),d=u.filter(Boolean);return a=l+(d.length>0?`?`:``)+d.join(`&`)+(c&&c.length>0?`#`+c:``),a}function sw(...e){return Sze(Array.from(Array.isArray(e[0])?e[0]:e))}var Cze,cw,wze,Tze=o((()=>{Cze=RegExp(`^[^/:\\d][^/:]*:/*$`),cw=RegExp(`^([^/:\\d][^/:]*):/*`),wze=/^[^/:]+:\d+(?:[/?#]|$)/})),Eze,lw,Dze,Oze,uw,dw,kze,fw,Aze,jze,Mze,Nze,Pze=o((()=>{Tze(),Eze=`https://app.lobehub.com`,lw=`https://lobehub.com`,Dze=lw,Oze=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},uw=`https://github.com/lobehub/lobehub`,sw(uw,`issues/new/choose`),dw=sw(lw,`/docs`),kze=sw(dw,`/usage`),fw=sw(dw,`/self-hosting`),sw(fw,`/server-database`),`${dw}`,sw(kze,`/plugins/development`),sw(fw,`/advanced/upstream-sync`),sw(lw,`blog`),sw(uw,`issues/new/choose`),sw(lw,`/privacy`),sw(lw,`/terms`),Aze=`https://github.com/lobehub/lobe-chat-agents`,sw(Aze,`issues/new`),jze=(e,t)=>`/agent/${e}`,Mze=(e,t,n)=>sw(`/agent`,e,t),Nze=(e,t)=>sw(`/group`,e,t),sw(uw,`releases`),sw(lw,`changelog`),sw(lw,`/downloads`),sw(lw,`/mobile`)})),Fze=o((()=>{Pze()})),Ize=o((()=>{Fze()})),pw,mw=o((()=>{pw=e=>`https://icons.duckduckgo.com/ip3/${e}.ico`})),Lze,Rze=o((()=>{mw(),Lze=[{auth:`oauth`,author:`AgentMail`,category:`automation`,description:`Give agents their own email inboxes to send and receive mail`,icon:pw(`agentmail.to`),identifier:`agentmail`,label:`AgentMail`,url:`https://mcp.agentmail.to/mcp`},{auth:`oauth`,author:`Browserless`,category:`automation`,description:`Drive cloud browsers to browse and act on websites`,icon:pw(`browserless.io`),identifier:`browserless`,label:`Browserless`,url:`https://mcp.browserless.io/mcp`},{auth:`oauth`,author:`IFTTT`,category:`automation`,description:`Run IFTTT applets across your apps and devices`,icon:pw(`ifttt.com`),identifier:`ifttt`,label:`IFTTT`,url:`https://ifttt.com/mcp`},{auth:`oauth`,author:`Make`,category:`automation`,description:`Run your Make scenarios as tools`,icon:pw(`make.com`),identifier:`make`,label:`Make`,url:`https://mcp.make.com`},{auth:`oauth`,author:`Speko`,category:`automation`,description:`Build and run voice AI agents with Speko`,icon:pw(`speko.ai`),identifier:`speko`,label:`Speko`,url:`https://mcp.speko.ai/mcp`},{auth:`oauth`,author:`TinyFish`,category:`automation`,description:`Search and browse websites with TinyFish agents`,icon:pw(`tinyfish.ai`),identifier:`tinyfish`,label:`TinyFish`,url:`https://agent.tinyfish.ai/mcp`},{auth:`oauth`,author:`Zapier`,category:`automation`,description:`Run actions across thousands of apps through your Zapier account`,icon:pw(`zapier.com`),identifier:`zapier`,label:`Zapier`,url:`https://mcp.zapier.com/api/mcp/mcp`}]})),zze,Bze=o((()=>{mw(),zze=[{auth:`oauth`,author:`Algolia`,category:`coding`,description:`Manage Algolia indices, records and search settings`,icon:pw(`algolia.com`),identifier:`algolia`,label:`Algolia`,url:`https://mcp.algolia.com/mcp`},{auth:`oauth`,author:`AppSignal`,category:`coding`,description:`Inspect errors, performance and logs in AppSignal`,icon:pw(`appsignal.com`),identifier:`appsignal`,label:`AppSignal`,url:`https://appsignal.com/api/mcp`},{auth:`none`,author:`AWS Knowledge`,category:`coding`,description:`Search AWS documentation and guidance`,icon:pw(`aws.amazon.com`),identifier:`aws-knowledge`,label:`AWS Knowledge`,url:`https://knowledge-mcp.global.api.aws`},{auth:`oauth`,author:`Base44`,category:`coding`,description:`Build and edit apps in Base44`,icon:pw(`base44.com`),identifier:`base44`,label:`Base44`,url:`https://app.base44.com/mcp`},{auth:`oauth`,author:`Better Stack`,category:`coding`,description:`Check uptime monitors, logs and incidents in Better Stack`,icon:pw(`betterstack.com`),identifier:`betterstack`,label:`Better Stack`,url:`https://mcp.betterstack.com`},{auth:`oauth`,author:`Buildkite`,category:`coding`,description:`Inspect Buildkite pipelines, builds and jobs`,icon:pw(`buildkite.com`),identifier:`buildkite`,label:`Buildkite`,url:`https://mcp.buildkite.com/mcp`},{auth:`none`,author:`Clerk`,category:`coding`,description:`Look up Clerk authentication docs and SDK guidance`,icon:pw(`clerk.com`),identifier:`clerk`,label:`Clerk`,url:`https://mcp.clerk.com/mcp`},{auth:`oauth`,author:`Cloud 66`,category:`coding`,description:`Manage Cloud 66 applications, deploys and servers`,icon:pw(`cloud66.com`),identifier:`cloud66`,label:`Cloud 66`,url:`https://app.cloud66.com/mcp`},{auth:`oauth`,author:`Cloudflare`,category:`coding`,description:`Manage Workers, KV, R2 and D1 in your Cloudflare account`,icon:pw(`cloudflare.com`),identifier:`cloudflare`,label:`Cloudflare`,url:`https://bindings.mcp.cloudflare.com/mcp`},{auth:`none`,author:`Cloudflare`,category:`coding`,description:`Search the Cloudflare developer documentation`,icon:pw(`developers.cloudflare.com`),identifier:`cloudflare-docs`,label:`Cloudflare Docs`,url:`https://docs.mcp.cloudflare.com/mcp`},{auth:`none`,author:`Upstash`,category:`coding`,description:`Fetch up-to-date library documentation and code examples`,icon:pw(`context7.com`),identifier:`context7`,label:`Context7`,url:`https://mcp.context7.com/mcp`},{auth:`none`,author:`Convex`,category:`coding`,description:`Get guidance for building on Convex`,icon:pw(`convex.dev`),identifier:`convex`,label:`Convex`,url:`https://mcp.convex.dev/mcp`},{auth:`oauth`,author:`Datadog`,category:`coding`,description:`Query logs, metrics, monitors and incidents in Datadog`,icon:pw(`datadoghq.com`),identifier:`datadog`,label:`Datadog`,url:`https://mcp.datadoghq.com/api/unstable/mcp-server/mcp`},{auth:`none`,author:`Cognition`,category:`coding`,description:`Ask questions about public GitHub repositories`,icon:pw(`deepwiki.com`),identifier:`deepwiki`,label:`DeepWiki`,url:`https://mcp.deepwiki.com/mcp`},{auth:`oauth`,author:`DigitalOcean`,category:`coding`,description:`Manage DigitalOcean droplets, apps and databases`,icon:pw(`digitalocean.com`),identifier:`digitalocean`,label:`DigitalOcean`,url:`https://mcp.digitalocean.com/mcp`},{auth:`none`,author:`Floot`,category:`coding`,description:`Build and edit web apps in Floot`,icon:pw(`floot.com`),identifier:`floot`,label:`Floot`,url:`https://mcp.floot.com/mcp`},{auth:`oauth`,author:`GitLab`,category:`coding`,description:`Search projects, issues and merge requests on GitLab`,icon:pw(`gitlab.com`),identifier:`gitlab`,label:`GitLab`,url:`https://gitlab.com/api/v4/mcp`},{auth:`oauth`,author:`Grafana Labs`,category:`coding`,description:`Search dashboards, query data sources and inspect alerts in Grafana Cloud`,icon:pw(`grafana.com`),identifier:`grafana`,label:`Grafana`,url:`https://mcp.grafana.com/mcp`},{auth:`oauth`,author:`Hostinger`,category:`coding`,description:`Manage Hostinger hosting, domains and DNS`,icon:pw(`hostinger.com`),identifier:`hostinger`,label:`Hostinger`,url:`https://mcp.hostinger.com`},{auth:`oauth`,author:`incident.io`,category:`coding`,description:`Review and manage incidents, alerts and on-call in incident.io`,icon:pw(`incident.io`),identifier:`incident-io`,label:`incident.io`,url:`https://mcp.incident.io/mcp`},{auth:`oauth`,author:`LaunchDarkly`,category:`coding`,description:`Manage feature flags and experiments in LaunchDarkly`,icon:pw(`launchdarkly.com`),identifier:`launchdarkly`,label:`LaunchDarkly`,url:`https://mcp.launchdarkly.com/mcp`},{auth:`oauth`,author:`Lovable`,category:`coding`,description:`Build apps from prompts in Lovable`,icon:pw(`lovable.dev`),identifier:`lovable`,label:`Lovable`,url:`https://mcp.lovable.dev`},{auth:`oauth`,author:`Neon`,category:`coding`,description:`Manage Neon Postgres projects, branches and queries`,icon:pw(`neon.tech`),identifier:`neon`,label:`Neon`,url:`https://mcp.neon.tech/mcp`},{auth:`oauth`,author:`Netlify`,category:`coding`,description:`Create, deploy and manage Netlify sites`,icon:pw(`netlify.com`),identifier:`netlify`,label:`Netlify`,url:`https://netlify-mcp.netlify.app/mcp`},{auth:`oauth`,author:`Postman`,category:`coding`,description:`Work with Postman workspaces, collections and APIs`,icon:pw(`postman.com`),identifier:`postman`,label:`Postman`,url:`https://mcp.postman.com/mcp`},{auth:`oauth`,author:`Prisma`,category:`coding`,description:`Manage Prisma Postgres databases and migrations`,icon:pw(`prisma.io`),identifier:`prisma`,label:`Prisma`,url:`https://mcp.prisma.io/mcp`},{auth:`oauth`,author:`Railway`,category:`coding`,description:`Deploy and manage services and environments on Railway`,icon:pw(`railway.com`),identifier:`railway`,label:`Railway`,url:`https://mcp.railway.com`},{auth:`oauth`,author:`Sanity`,category:`coding`,description:`Query and edit content documents in Sanity`,icon:pw(`sanity.io`),identifier:`sanity`,label:`Sanity`,url:`https://mcp.sanity.io`},{auth:`oauth`,author:`Sentry`,category:`coding`,description:`Look up issues, errors and releases in your Sentry projects`,icon:pw(`sentry.io`),identifier:`sentry`,label:`Sentry`,url:`https://mcp.sentry.dev/mcp`},{auth:`oauth`,author:`SonarQube Cloud`,category:`coding`,description:`Review code quality and security issues in SonarQube Cloud`,icon:pw(`sonarsource.com`),identifier:`sonarqube`,label:`SonarQube Cloud`,url:`https://api.sonarcloud.io/mcp`},{auth:`oauth`,author:`Statsig`,category:`coding`,description:`Manage feature gates and experiments in Statsig`,icon:pw(`statsig.com`),identifier:`statsig`,label:`Statsig`,url:`https://api.statsig.com/v3/mcp`},{auth:`oauth`,author:`Turso`,category:`coding`,description:`Manage Turso Cloud databases`,icon:pw(`turso.tech`),identifier:`turso`,label:`Turso`,url:`https://mcp.turso.ai/mcp`},{auth:`none`,author:`Twilio Docs`,category:`coding`,description:`Search Twilio API documentation`,icon:pw(`twilio.com`),identifier:`twilio-docs`,label:`Twilio Docs`,url:`https://mcp.twilio.com/docs`},{auth:`oauth`,author:`Wix`,category:`coding`,description:`Manage Wix sites and look up Wix developer docs`,icon:pw(`wix.com`),identifier:`wix`,label:`Wix`,url:`https://mcp.wix.com/mcp`},{auth:`oauth`,author:`WorkOS`,category:`coding`,description:`Administer WorkOS auth and SSO`,icon:pw(`workos.com`),identifier:`workos`,label:`WorkOS`,url:`https://mcp.workos.com/mcp`},{auth:`oauth`,author:`WPVibe`,category:`coding`,description:`Manage self-hosted WordPress sites with WPVibe`,icon:pw(`wpvibe.ai`),identifier:`wpvibe`,label:`WPVibe`,url:`https://mcp.wpvibe.ai/mcp`}]})),Vze,Hze=o((()=>{mw(),Vze=[{auth:`oauth`,author:`2Chat`,category:`communication`,description:`Send WhatsApp, SMS and voice messages from your 2Chat numbers`,icon:pw(`2chat.co`),identifier:`2chat`,label:`2Chat`,url:`https://mcp.2chat.io/mcp`},{auth:`oauth`,author:`Allo`,category:`communication`,description:`Make calls and send texts from your Allo business line`,icon:pw(`withallo.com`),identifier:`allo`,label:`Allo`,url:`https://mcp.withallo.com/mcp`},{auth:`oauth`,author:`Ando`,category:`communication`,description:`Chat with your team and agents in Ando`,icon:pw(`ando.so`),identifier:`ando`,label:`Ando`,url:`https://mcp.ando.so/mcp`},{auth:`oauth`,author:`Bird`,category:`communication`,description:`Send email, SMS and WhatsApp messages through Bird`,icon:pw(`bird.com`),identifier:`bird`,label:`Bird`,url:`https://mcp.bird.com`},{auth:`oauth`,author:`Quo`,category:`communication`,description:`Make calls and send texts from your Quo business number`,icon:pw(`quo.com`),identifier:`quo`,label:`Quo`,url:`https://mcp.quo.com/mcp`},{auth:`oauth`,author:`Restream`,category:`communication`,description:`Manage live streams and recordings in Restream`,icon:pw(`restream.io`),identifier:`restream`,label:`Restream`,url:`https://mcp.restream.io/mcp`}]})),Uze,Wze=o((()=>{mw(),Uze=[{auth:`oauth`,author:`Adobe Analytics`,category:`data`,description:`Pull Adobe Analytics reports, metrics and segments`,icon:pw(`business.adobe.com`),identifier:`adobe-analytics`,label:`Adobe Analytics`,url:`https://aa-mcp.adobe.io/mcp`},{auth:`oauth`,author:`Adspirer`,category:`data`,description:`Report on ad campaigns across your ad accounts`,icon:pw(`adspirer.com`),identifier:`adspirer`,label:`Adspirer`,url:`https://mcp.adspirer.com/mcp`},{auth:`oauth`,author:`Amplitude`,category:`data`,description:`Query charts, events and user analytics in Amplitude`,icon:pw(`amplitude.com`),identifier:`amplitude`,label:`Amplitude`,url:`https://mcp.amplitude.com/mcp`},{auth:`oauth`,author:`Artie`,category:`data`,description:`Monitor real-time database replication pipelines in Artie`,icon:pw(`artie.com`),identifier:`artie`,label:`Artie`,url:`https://mcp.artie.com/mcp`},{auth:`oauth`,author:`Atlan`,category:`data`,description:`Search data assets, owners and lineage in Atlan`,icon:pw(`atlan.com`),identifier:`atlan`,label:`Atlan`,url:`https://mcp.atlan.com/mcp`},{auth:`oauth`,author:`Clarify`,category:`data`,description:`Explore industrial time-series data in Clarify`,icon:pw(`clarify.io`),identifier:`clarify`,label:`Clarify`,url:`https://mcp.clarify.io/mcp`},{auth:`oauth`,author:`ClickHouse`,category:`data`,description:`Explore and query ClickHouse Cloud services`,icon:pw(`clickhouse.com`),identifier:`clickhouse`,label:`ClickHouse`,url:`https://mcp.clickhouse.cloud/mcp`},{auth:`oauth`,author:`Helium 10`,category:`data`,description:`Research Amazon products and keywords with Helium 10`,icon:pw(`helium10.com`),identifier:`helium10`,label:`Helium 10`,url:`https://mcp.helium10.com/mcp`},{auth:`oauth`,author:`Hex`,category:`data`,description:`Search and run Hex projects and data analyses`,icon:pw(`hex.tech`),identifier:`hex`,label:`Hex`,url:`https://app.hex.tech/mcp`},{auth:`oauth`,author:`Metricool`,category:`data`,description:`Analyze and plan social media with Metricool`,icon:pw(`metricool.com`),identifier:`metricool`,label:`Metricool`,url:`https://ai.metricool.com/mcp`},{auth:`oauth`,author:`Mixpanel`,category:`data`,description:`Query events, funnels and retention in Mixpanel`,icon:pw(`mixpanel.com`),identifier:`mixpanel`,label:`Mixpanel`,url:`https://mcp.mixpanel.com/mcp`},{auth:`oauth`,author:`Northbeam`,category:`data`,description:`Pull marketing attribution data from Northbeam`,icon:pw(`northbeam.io`),identifier:`northbeam`,label:`Northbeam`,url:`https://mcp.northbeam.io`},{auth:`oauth`,author:`Profound`,category:`data`,description:`Track brand visibility in AI search with Profound`,icon:pw(`tryprofound.com`),identifier:`profound`,label:`Profound`,url:`https://mcp.tryprofound.com/mcp`},{auth:`oauth`,author:`Ryze AI`,category:`data`,description:`Analyze ad campaign performance with Ryze AI`,icon:pw(`get-ryze.ai`),identifier:`ryze`,label:`Ryze AI`,url:`https://connector.get-ryze.ai/mcp`},{auth:`oauth`,author:`Tableau`,category:`data`,description:`Query Tableau Cloud data sources and views`,icon:pw(`tableau.com`),identifier:`tableau`,label:`Tableau`,url:`https://mcp.tableau.com`},{auth:`oauth`,author:`Windsor.ai`,category:`data`,description:`Pull marketing data from many sources with Windsor.ai`,icon:pw(`windsor.ai`),identifier:`windsor`,label:`Windsor.ai`,url:`https://mcp.windsor.ai`}]})),Gze,Kze=o((()=>{mw(),Gze=[{auth:`oauth`,author:`21st`,category:`design`,description:`Find React UI components and add them to your project`,icon:pw(`21st.dev`),identifier:`21st`,label:`21st`,url:`https://21st.dev/api/mcp`},{auth:`oauth`,author:`Canva`,category:`design`,description:`Search, create and edit designs in Canva`,icon:pw(`canva.com`),identifier:`canva`,label:`Canva`,url:`https://mcp.canva.com/mcp`},{auth:`oauth`,author:`Cartesia`,category:`design`,description:`Generate speech and manage voices with Cartesia`,icon:pw(`cartesia.ai`),identifier:`cartesia`,label:`Cartesia`,url:`https://mcp.cartesia.ai/mcp`},{auth:`oauth`,author:`Cloudinary`,category:`design`,description:`Manage and transform image and video assets in Cloudinary`,icon:pw(`cloudinary.com`),identifier:`cloudinary`,label:`Cloudinary`,url:`https://asset-management.mcp.cloudinary.com/mcp`},{auth:`oauth`,author:`Eden`,category:`design`,description:`Organize creator content and posts in Eden`,icon:pw(`eden.so`),identifier:`eden`,label:`Eden`,url:`https://mcp.eden.so/mcp`},{auth:`oauth`,author:`ElevenLabs`,category:`design`,description:`Generate speech, voices and voice agents with ElevenLabs`,icon:pw(`elevenlabs.io`),identifier:`elevenlabs`,label:`ElevenLabs`,url:`https://api.elevenlabs.io/v1/mcp`},{auth:`none`,author:`Excalidraw`,category:`design`,description:`Sketch hand-drawn diagrams with Excalidraw`,icon:pw(`excalidraw.com`),identifier:`excalidraw`,label:`Excalidraw`,url:`https://mcp.excalidraw.com/mcp`},{auth:`oauth`,author:`Higgsfield`,category:`design`,description:`Generate images, videos and audio with Higgsfield`,icon:pw(`higgsfield.ai`),identifier:`higgsfield`,label:`Higgsfield`,url:`https://mcp.higgsfield.ai/mcp`},{auth:`oauth`,author:`Magic Patterns`,category:`design`,description:`Generate UI prototypes with Magic Patterns`,icon:pw(`magicpatterns.com`),identifier:`magicpatterns`,label:`Magic Patterns`,url:`https://mcp.magicpatterns.com/mcp`},{auth:`oauth`,author:`Magnific`,category:`design`,description:`Upscale and generate images and video with Magnific`,icon:pw(`magnific.com`),identifier:`magnific`,label:`Magnific`,url:`https://mcp.magnific.com`},{auth:`oauth`,author:`Miro`,category:`design`,description:`Read and create content on Miro boards`,icon:pw(`miro.com`),identifier:`miro`,label:`Miro`,url:`https://mcp.miro.com/`},{auth:`oauth`,author:`Mobbin`,category:`design`,description:`Browse real app UI references on Mobbin`,icon:pw(`mobbin.com`),identifier:`mobbin`,label:`Mobbin`,url:`https://api.mobbin.com/mcp`},{auth:`oauth`,author:`Mural`,category:`design`,description:`Work with Mural canvases, stickies and diagrams`,icon:pw(`mural.co`),identifier:`mural`,label:`Mural`,url:`https://mcp-canvas.mural.co/mcp`},{auth:`oauth`,author:`Omneky`,category:`design`,description:`Generate ad creatives with Omneky`,icon:pw(`omneky.com`),identifier:`omneky`,label:`Omneky`,url:`https://mcp.omneky.com/mcp`},{auth:`oauth`,author:`OpusClip`,category:`design`,description:`Turn long videos into short clips with OpusClip`,icon:pw(`opus.pro`),identifier:`opusclip`,label:`OpusClip`,url:`https://mcp.opus.pro/mcp`},{auth:`oauth`,author:`Refero`,category:`design`,description:`Browse UI design references on Refero`,icon:pw(`refero.design`),identifier:`refero`,label:`Refero`,url:`https://api.refero.design/mcp`},{auth:`oauth`,author:`Riverside`,category:`design`,description:`Work with Riverside recordings, clips and transcripts`,icon:pw(`riverside.com`),identifier:`riverside`,label:`Riverside`,url:`https://mcp.riverside.com/mcp`},{auth:`oauth`,author:`Runway`,category:`design`,description:`Generate images and video with Runway`,icon:pw(`runway.com`),identifier:`runway`,label:`Runway`,url:`https://mcp.runwayml.com/mcp`},{auth:`oauth`,author:`Sunra`,category:`design`,description:`Generate images, video, audio and 3D with Sunra`,icon:pw(`sunra.ai`),identifier:`sunra`,label:`Sunra`,url:`https://mcp.sunra.ai`},{auth:`oauth`,author:`VideoGen`,category:`design`,description:`Create videos with VideoGen`,icon:pw(`videogen.io`),identifier:`videogen`,label:`VideoGen`,url:`https://mcp.videogen.io/mcp`},{auth:`oauth`,author:`Webflow`,category:`design`,description:`Manage Webflow sites, pages and CMS collections`,icon:pw(`webflow.com`),identifier:`webflow`,label:`Webflow`,url:`https://mcp.webflow.com/mcp`}]})),qze,Jze=o((()=>{mw(),qze=[{auth:`oauth`,author:`Coda`,category:`documents`,description:`Read and update Coda docs and tables`,icon:pw(`coda.io`),identifier:`coda`,label:`Coda`,url:`https://coda.io/apis/mcp`},{auth:`oauth`,author:`Craft`,category:`documents`,description:`Read and write Craft docs, notes and tasks`,icon:pw(`craft.do`),identifier:`craft`,label:`Craft`,url:`https://mcp.craft.do/my/mcp`},{auth:`oauth`,author:`Evernote`,category:`documents`,description:`Search and create notes and notebooks in Evernote`,icon:pw(`evernote.com`),identifier:`evernote`,label:`Evernote`,url:`https://mcp.evernote.com/mcp`},{auth:`oauth`,author:`GitBook`,category:`documents`,description:`Search and read your GitBook documentation spaces`,icon:pw(`gitbook.com`),identifier:`gitbook`,label:`GitBook`,url:`https://mcp.gitbook.com/mcp`},{auth:`oauth`,author:`Guru`,category:`documents`,description:`Search company knowledge in Guru`,icon:pw(`getguru.com`),identifier:`guru`,label:`Guru`,url:`https://mcp.api.getguru.com/mcp`},{auth:`oauth`,author:`Lark`,category:`documents`,description:`Work with Lark docs and team messages`,icon:pw(`larksuite.com`),identifier:`lark`,label:`Lark`,url:`https://mcp.larksuite.com/mcp`},{auth:`oauth`,author:`Mem`,category:`documents`,description:`Search and write notes in Mem`,icon:pw(`mem.ai`),identifier:`mem`,label:`Mem`,url:`https://mcp.mem.ai/mcp`},{auth:`oauth`,author:`PandaDoc`,category:`documents`,description:`Create documents, proposals and e-signatures in PandaDoc`,icon:pw(`pandadoc.com`),identifier:`pandadoc`,label:`PandaDoc`,url:`https://mcp.pandadoc.com/v1/mcp`},{auth:`oauth`,author:`Raindrop.io`,category:`documents`,description:`Save and search bookmarks and highlights in Raindrop.io`,icon:pw(`raindrop.io`),identifier:`raindrop`,label:`Raindrop.io`,url:`https://api.raindrop.io/rest/v2/ai/mcp`},{auth:`oauth`,author:`Roam Research`,category:`documents`,description:`Read and write pages in your Roam Research graph`,icon:pw(`roamresearch.com`),identifier:`roam`,label:`Roam Research`,url:`https://mcp.roamresearch.com/mcp`},{auth:`oauth`,author:`Spacefast`,category:`documents`,description:`Publish pages as shareable Spaces with Spacefast`,icon:pw(`spacefast.com`),identifier:`spacefast`,label:`Spacefast`,url:`https://mcp.spacefast.com`},{auth:`oauth`,author:`Automattic`,category:`documents`,description:`Read and publish posts on your WordPress.com sites`,icon:pw(`wordpress.com`),identifier:`wordpress`,label:`WordPress.com`,url:`https://public-api.wordpress.com/wpcom/v2/mcp/v1`}]})),Yze,Xze=o((()=>{mw(),Yze=[{auth:`none`,author:`1inch`,category:`finance`,description:`Look up 1inch swap API docs and SDK examples`,icon:pw(`business.1inch.com`),identifier:`1inch`,label:`1inch`,url:`https://api.1inch.com/mcp/protocol`},{auth:`oauth`,author:`Airwallex`,category:`finance`,description:`Check Airwallex balances, cards and transfers`,icon:pw(`airwallex.com`),identifier:`airwallex`,label:`Airwallex`,url:`https://mcp.airwallex.com/mcp`},{auth:`oauth`,author:`Aleph`,category:`finance`,description:`Query financial planning and reporting data in Aleph`,icon:pw(`getaleph.com`),identifier:`aleph`,label:`Aleph`,url:`https://mcp.getaleph.com/mcp`},{auth:`oauth`,author:`Alpha Vantage`,category:`finance`,description:`Fetch stock, forex and crypto market data from Alpha Vantage`,icon:pw(`alphavantage.co`),identifier:`alphavantage`,label:`Alpha Vantage`,url:`https://mcp.alphavantage.co/mcp`},{auth:`oauth`,author:`Brex`,category:`finance`,description:`Review Brex expenses, cards and bills`,icon:pw(`brex.com`),identifier:`brex`,label:`Brex`,url:`https://api.brex.com/mcp`},{auth:`oauth`,author:`DeepLedger`,category:`finance`,description:`Handle bookkeeping in QuickBooks and Xero through DeepLedger`,icon:pw(`deepledger.ai`),identifier:`deepledger`,label:`DeepLedger`,url:`https://mcp.deepledger.ai/mcp`},{auth:`oauth`,author:`Era`,category:`finance`,description:`Review personal finances in Era`,icon:pw(`era.app`),identifier:`era`,label:`Era`,url:`https://context.era.app/mcp`},{auth:`oauth`,author:`Extend`,category:`finance`,description:`Manage virtual cards and spend in Extend`,icon:pw(`paywithextend.com`),identifier:`extend`,label:`Extend`,url:`https://mcp.paywithextend.com/mcp`},{auth:`oauth`,author:`freee`,category:`finance`,description:`Work with accounting, HR and invoices in freee`,icon:pw(`freee.co.jp`),identifier:`freee`,label:`freee`,url:`https://mcp.freee.co.jp/mcp`},{auth:`oauth`,author:`Futu`,category:`finance`,description:`Check market data and your Futu portfolio`,icon:pw(`futunn.com`),identifier:`futu`,label:`Futu`,url:`https://mcp.futunn.com/mcp`},{auth:`oauth`,author:`IBKR`,category:`finance`,description:`Check Interactive Brokers account and portfolio data`,icon:pw(`interactivebrokers.com`),identifier:`ibkr`,label:`IBKR`,url:`https://api.ibkr.com/v1/api/mcp-public`},{auth:`oauth`,author:`Kensho`,category:`finance`,description:`Query S&P Global financial data through Kensho`,icon:pw(`kensho.com`),identifier:`kensho`,label:`Kensho`,url:`https://kfinance.kensho.com/integrations/mcp`},{auth:`oauth`,author:`Massive`,category:`finance`,description:`Fetch stock and crypto market data from Massive`,icon:pw(`massive.com`),identifier:`massive`,label:`Massive`,url:`https://mcp.massive.com`},{auth:`oauth`,author:`Mercury`,category:`finance`,description:`Check Mercury bank accounts and transactions`,icon:pw(`mercury.com`),identifier:`mercury`,label:`Mercury`,url:`https://mcp.mercury.com/mcp`},{auth:`oauth`,author:`Navan`,category:`finance`,description:`Review travel and expense data in Navan`,icon:pw(`navan.com`),identifier:`navan`,label:`Navan`,url:`https://mcp.navan.com/mcp`},{auth:`oauth`,author:`PayPal`,category:`finance`,description:`Manage invoices, orders and transactions in PayPal`,icon:pw(`paypal.com`),identifier:`paypal`,label:`PayPal`,url:`https://mcp.paypal.com/mcp`},{auth:`oauth`,author:`Pennylane`,category:`finance`,description:`Work with accounting and invoices in Pennylane`,icon:pw(`pennylane.com`),identifier:`pennylane`,label:`Pennylane`,url:`https://mcp.pennylane.com/mcp`},{auth:`oauth`,author:`Public`,category:`finance`,description:`Check Public brokerage accounts and trades`,icon:pw(`public.com`),identifier:`public`,label:`Public`,url:`https://mcp.public.com/mcp`},{auth:`oauth`,author:`Qonto`,category:`finance`,description:`Check Qonto business accounts and cards`,icon:pw(`qonto.com`),identifier:`qonto`,label:`Qonto`,url:`https://mcp.qonto.com/mcp`},{auth:`oauth`,author:`Ramp`,category:`finance`,description:`Review Ramp spend, cards and bills`,icon:pw(`ramp.com`),identifier:`ramp`,label:`Ramp`,url:`https://mcp.ramp.com/mcp`},{auth:`oauth`,author:`RevenueCat`,category:`finance`,description:`Manage subscriptions, products and paywalls in RevenueCat`,icon:pw(`revenuecat.com`),identifier:`revenuecat`,label:`RevenueCat`,url:`https://mcp.revenuecat.ai/mcp`},{auth:`oauth`,author:`Robinhood`,category:`finance`,description:`Check Robinhood accounts and place trades`,icon:pw(`robinhood.com`),identifier:`robinhood`,label:`Robinhood`,url:`https://agent.robinhood.com/mcp/trading`},{auth:`oauth`,author:`SnapTrade`,category:`finance`,description:`Check brokerage portfolios connected through SnapTrade`,icon:pw(`snaptrade.com`),identifier:`snaptrade`,label:`SnapTrade`,url:`https://agent.snaptrade.com/mcp/portfolio`},{auth:`oauth`,author:`Square`,category:`finance`,description:`Work with Square payments, orders and catalog`,icon:pw(`squareup.com`),identifier:`square`,label:`Square`,url:`https://mcp.squareup.com/mcp`},{auth:`oauth`,author:`Stripe`,category:`finance`,description:`Work with customers, payments, invoices and subscriptions in Stripe`,icon:pw(`stripe.com`),identifier:`stripe`,label:`Stripe`,url:`https://mcp.stripe.com`},{auth:`oauth`,author:`YNAB`,category:`finance`,description:`Review budgets and spending in YNAB`,icon:pw(`ynab.com`),identifier:`ynab`,label:`YNAB`,url:`https://api.ynab.com/mcp`}]})),Zze,Qze=o((()=>{mw(),Zze=[{auth:`oauth`,author:`Tessie`,category:`other`,description:`Check Tesla vehicle status and data through Tessie`,icon:pw(`tessie.com`),identifier:`tessie`,label:`Tessie`,url:`https://mcp.tessie.com`},{auth:`oauth`,author:`Upwork`,category:`other`,description:`Find freelance jobs and talent on Upwork`,icon:pw(`upwork.com`),identifier:`upwork`,label:`Upwork`,url:`https://mcp.upwork.com/mcp`},{auth:`oauth`,author:`Withings`,category:`other`,description:`Read your Withings health measurements`,icon:pw(`withings.com`),identifier:`withings`,label:`Withings`,url:`https://mcp.withings.com/mcp`}]})),$ze,eBe=o((()=>{mw(),$ze=[{auth:`oauth`,author:`Akiflow`,category:`productivity`,description:`Plan tasks and time blocks in Akiflow`,icon:pw(`akiflow.com`),identifier:`akiflow`,label:`Akiflow`,url:`https://mcp.akiflow.com/mcp`},{auth:`oauth`,author:`Atlassian`,category:`productivity`,description:`Search and update Jira issues and Confluence pages with the official Atlassian server`,icon:pw(`atlassian.com`),identifier:`atlassian`,label:`Atlassian`,url:`https://mcp.atlassian.com/v1/mcp`},{auth:`oauth`,author:`Basecamp`,category:`productivity`,description:`Manage projects, to-dos and messages in Basecamp`,icon:pw(`basecamp.com`),identifier:`basecamp`,label:`Basecamp`,url:`https://mcp.basecamp.com/mcp`},{auth:`oauth`,author:`Calendly`,category:`productivity`,description:`Check availability and manage scheduled events in Calendly`,icon:pw(`calendly.com`),identifier:`calendly`,label:`Calendly`,url:`https://mcp.calendly.com`},{auth:`oauth`,author:`Circleback`,category:`productivity`,description:`Search meeting notes and transcripts in Circleback`,icon:pw(`circleback.ai`),identifier:`circleback`,label:`Circleback`,url:`https://circleback.ai/api/mcp`},{auth:`oauth`,author:`Cobrain`,category:`productivity`,description:`Share memory across your AI agents with Cobrain`,icon:pw(`cobrain.space`),identifier:`cobrain`,label:`Cobrain`,url:`https://cobrain.space/mcp`},{auth:`oauth`,author:`Dart`,category:`productivity`,description:`Manage tasks and project docs in Dart`,icon:pw(`dartai.com`),identifier:`dart`,label:`Dart`,url:`https://mcp.dartai.com/mcp`},{auth:`oauth`,author:`DIDA`,category:`productivity`,description:`Add and organize tasks and lists in Dida365`,icon:pw(`dida365.com`),identifier:`dida365`,label:`DIDA`,url:`https://mcp.dida365.com`},{auth:`oauth`,author:`Fastmail`,category:`productivity`,description:`Read and send mail, and manage calendar and contacts in Fastmail`,icon:pw(`fastmail.com`),identifier:`fastmail`,label:`Fastmail`,url:`https://api.fastmail.com/mcp`},{auth:`oauth`,author:`Fathom`,category:`productivity`,description:`Search meeting notes and transcripts in Fathom`,icon:pw(`fathom.ai`),identifier:`fathom`,label:`Fathom`,url:`https://api.fathom.ai/mcp`},{auth:`oauth`,author:`Feishu`,category:`productivity`,description:`Work with Feishu docs, messages and groups`,icon:pw(`feishu.cn`),identifier:`feishu`,label:`Feishu`,url:`https://mcp.feishu.cn/mcp`},{auth:`oauth`,author:`Fellow`,category:`productivity`,description:`Review meeting notes and action items in Fellow`,icon:pw(`fellow.ai`),identifier:`fellow`,label:`Fellow`,url:`https://fellow.app/mcp`},{auth:`oauth`,author:`Fireflies.ai`,category:`productivity`,description:`Search meeting transcripts and summaries in Fireflies`,icon:pw(`fireflies.ai`),identifier:`fireflies`,label:`Fireflies`,url:`https://api.fireflies.ai/mcp`},{auth:`oauth`,author:`Granola`,category:`productivity`,description:`Search your Granola meeting notes and transcripts`,icon:pw(`granola.ai`),identifier:`granola`,label:`Granola`,url:`https://mcp.granola.ai/mcp`},{auth:`oauth`,author:`Hindsight`,category:`productivity`,description:`Keep a long-term memory for your agents with Hindsight`,icon:pw(`hindsight.vectorize.io`),identifier:`hindsight`,label:`Hindsight`,url:`https://api.hindsight.vectorize.io/mcp`},{auth:`oauth`,author:`Honcho`,category:`productivity`,description:`Carry your memory across AI tools with Honcho`,icon:pw(`honcho.dev`),identifier:`honcho`,label:`Honcho`,url:`https://mcp.honcho.dev`},{auth:`oauth`,author:`Hospitable`,category:`productivity`,description:`Manage short-term rental reservations and guests in Hospitable`,icon:pw(`hospitable.com`),identifier:`hospitable`,label:`Hospitable`,url:`https://mcp.hospitable.com/mcp`},{auth:`oauth`,author:`JobTread`,category:`productivity`,description:`Manage construction jobs, estimates and schedules in JobTread`,icon:pw(`jobtread.com`),identifier:`jobtread`,label:`JobTread`,url:`https://api.jobtread.com/mcp`},{auth:`oauth`,author:`Knowify`,category:`productivity`,description:`Manage contractor jobs and billing in Knowify`,icon:pw(`knowify.com`),identifier:`knowify`,label:`Knowify`,url:`https://assistant.knowify.com/api/v2/mcp`},{auth:`oauth`,author:`Krisp`,category:`productivity`,description:`Search meeting notes and transcripts in Krisp`,icon:pw(`krisp.ai`),identifier:`krisp`,label:`Krisp`,url:`https://mcp.krisp.ai/mcp`},{auth:`oauth`,author:`Littlebird`,category:`productivity`,description:`Recall your work context with Littlebird`,icon:pw(`littlebird.ai`),identifier:`littlebird`,label:`Littlebird`,url:`https://mcp.littlebird.ai/mcp`},{auth:`oauth`,author:`Mem0`,category:`productivity`,description:`Give agents a persistent memory with Mem0`,icon:pw(`mem0.ai`),identifier:`mem0`,label:`Mem0`,url:`https://mcp.mem0.ai/mcp/`},{auth:`oauth`,author:`monday.com`,category:`productivity`,description:`Manage boards, items and updates in monday.com`,icon:pw(`monday.com`),identifier:`monday`,label:`monday.com`,url:`https://mcp.monday.com/mcp`},{auth:`oauth`,author:`Otter.ai`,category:`productivity`,description:`Search meeting transcripts and notes in Otter.ai`,icon:pw(`otter.ai`),identifier:`otter`,label:`Otter.ai`,url:`https://mcp.otter.ai/mcp`},{auth:`oauth`,author:`Planning Center`,category:`productivity`,description:`Manage people, services and groups in Planning Center`,icon:pw(`planningcenter.com`),identifier:`planningcenter`,label:`Planning Center`,url:`https://mcp.planningcenteronline.com/mcp`},{auth:`oauth`,author:`Plaud`,category:`productivity`,description:`Search Plaud recordings, transcripts and summaries`,icon:pw(`plaud.ai`),identifier:`plaud`,label:`Plaud`,url:`https://mcp.plaud.ai/mcp`},{auth:`oauth`,author:`Read AI`,category:`productivity`,description:`Search meeting reports and transcripts in Read AI`,icon:pw(`read.ai`),identifier:`readai`,label:`Read AI`,url:`https://api.read.ai/mcp`},{auth:`oauth`,author:`ServiceM8`,category:`productivity`,description:`Manage field service jobs in ServiceM8`,icon:pw(`servicem8.com`),identifier:`servicem8`,label:`ServiceM8`,url:`https://api.servicem8.com/mcp`},{auth:`oauth`,author:`Sunsama`,category:`productivity`,description:`Plan your day and tasks in Sunsama`,icon:pw(`sunsama.com`),identifier:`sunsama`,label:`Sunsama`,url:`https://api.sunsama.com/mcp`},{auth:`oauth`,author:`Superhuman Mail`,category:`productivity`,description:`Read and send email, and check your calendar in Superhuman`,icon:pw(`superhuman.com`),identifier:`superhuman`,label:`Superhuman Mail`,url:`https://mcp.mail.superhuman.com/mcp`},{auth:`oauth`,author:`Supermemory`,category:`productivity`,description:`Keep memory across conversations with Supermemory`,icon:pw(`supermemory.ai`),identifier:`supermemory`,label:`Supermemory`,url:`https://mcp.supermemory.ai/mcp`},{auth:`oauth`,author:`Syncro`,category:`productivity`,description:`Manage MSP tickets and assets in Syncro`,icon:pw(`syncrosecure.com`),identifier:`syncro`,label:`Syncro`,url:`https://mcp.services.syncromsp.com/mcp/stream`},{auth:`oauth`,author:`TickTick`,category:`productivity`,description:`Manage tasks, lists, habits and focus in TickTick`,icon:pw(`ticktick.com`),identifier:`ticktick`,label:`TickTick`,url:`https://mcp.ticktick.com`},{auth:`oauth`,author:`Doist`,category:`productivity`,description:`Add, organize and complete tasks in Todoist`,icon:pw(`todoist.com`),identifier:`todoist`,label:`Todoist`,url:`https://ai.todoist.net/mcp`},{auth:`oauth`,author:`Trello`,category:`productivity`,description:`Manage Trello boards, lists and cards`,icon:pw(`trello.com`),identifier:`trello`,label:`Trello`,url:`https://mcp.trello.com/v1`},{auth:`oauth`,author:`Typeform`,category:`productivity`,description:`Create forms and read responses in Typeform`,icon:pw(`typeform.com`),identifier:`typeform`,label:`Typeform`,url:`https://api.typeform.com/mcp`}]})),tBe,nBe=o((()=>{mw(),tBe=[{auth:`oauth`,author:`Ahrefs`,category:`research`,description:`Pull SEO metrics, backlinks and keyword data from Ahrefs`,icon:pw(`ahrefs.com`),identifier:`ahrefs`,label:`Ahrefs`,url:`https://api.ahrefs.com/mcp/mcp`},{auth:`oauth`,author:`Apify`,category:`research`,description:`Run Apify actors to scrape and automate the web`,icon:pw(`apify.com`),identifier:`apify`,label:`Apify`,url:`https://mcp.apify.com`},{auth:`oauth`,author:`Bright Data`,category:`research`,description:`Search and scrape the web through Bright Data`,icon:pw(`brightdata.com`),identifier:`brightdata`,label:`Bright Data`,url:`https://mcp.brightdata.com/mcp`},{auth:`oauth`,author:`Crustdata`,category:`research`,description:`Look up company and people data in Crustdata`,icon:pw(`crustdata.com`),identifier:`crustdata`,label:`Crustdata`,url:`https://mcp.crustdata.com/mcp`},{auth:`oauth`,author:`DataForSEO`,category:`research`,description:`Pull SERP, keyword and backlink data from DataForSEO`,icon:pw(`dataforseo.com`),identifier:`dataforseo`,label:`DataForSEO`,url:`https://mcp.dataforseo.com/mcp`},{auth:`oauth`,author:`Dealroom`,category:`research`,description:`Research startups, investors and funding rounds in Dealroom`,icon:pw(`dealroom.co`),identifier:`dealroom`,label:`Dealroom`,url:`https://mcp.dealroom.co/mcp`},{auth:`none`,author:`Exa`,category:`research`,description:`Search the web and fetch page content with Exa`,icon:pw(`exa.ai`),identifier:`exa`,label:`Exa`,url:`https://mcp.exa.ai/mcp`},{auth:`oauth`,author:`Harmonic`,category:`research`,description:`Research companies and investors in Harmonic`,icon:pw(`harmonic.ai`),identifier:`harmonic`,label:`Harmonic`,url:`https://mcp.api.harmonic.ai`},{auth:`none`,author:`Parallel`,category:`research`,description:`Search and extract web content with Parallel`,icon:pw(`parallel.ai`),identifier:`parallel`,label:`Parallel`,url:`https://mcp.parallel.ai/mcp`},{auth:`oauth`,author:`Readwise`,category:`research`,description:`Search your highlights and saved reading in Readwise`,icon:pw(`readwise.io`),identifier:`readwise`,label:`Readwise`,url:`https://mcp2.readwise.io/mcp`},{auth:`oauth`,author:`Scrape Creators`,category:`research`,description:`Fetch public social media data with Scrape Creators`,icon:pw(`scrapecreators.com`),identifier:`scrapecreators`,label:`Scrape Creators`,url:`https://api.scrapecreators.com/mcp`},{auth:`oauth`,author:`SE Ranking`,category:`research`,description:`Pull SEO data and site audits from SE Ranking`,icon:pw(`seranking.com`),identifier:`seranking`,label:`SE Ranking`,url:`https://api.seranking.com/mcp`},{auth:`oauth`,author:`Search Atlas`,category:`research`,description:`Pull SEO, content and ads data from Search Atlas`,icon:pw(`searchatlas.com`),identifier:`searchatlas`,label:`Search Atlas`,url:`https://mcp.searchatlas.com/mcp`},{auth:`oauth`,author:`Semrush`,category:`research`,description:`Pull keyword, domain and traffic data from Semrush`,icon:pw(`semrush.com`),identifier:`semrush`,label:`Semrush`,url:`https://mcp.semrush.com/v1/mcp`},{auth:`oauth`,author:`SuperMe`,category:`research`,description:`Get advice from experienced people on SuperMe`,icon:pw(`superme.ai`),identifier:`superme`,label:`SuperMe`,url:`https://mcp.superme.ai/mcp`},{auth:`oauth`,author:`Tavily`,category:`research`,description:`Search the web for agents with Tavily`,icon:pw(`tavily.com`),identifier:`tavily`,label:`Tavily`,url:`https://mcp.tavily.com/mcp`},{auth:`oauth`,author:`TranscriptAPI`,category:`research`,description:`Fetch YouTube video transcripts`,icon:pw(`transcriptapi.com`),identifier:`transcriptapi`,label:`TranscriptAPI`,url:`https://transcriptapi.com/mcp`},{auth:`oauth`,author:`Ubersuggest`,category:`research`,description:`Research SEO keywords with Ubersuggest`,icon:pw(`ubersuggest.com`),identifier:`ubersuggest`,label:`Ubersuggest`,url:`https://ubersuggest-mcp.neilpatelapi.com/mcp`}]})),rBe,iBe=o((()=>{mw(),rBe=[{auth:`none`,author:`Affinity`,category:`sales`,description:`Look up relationships, deals and notes in Affinity`,icon:pw(`affinity.co`),identifier:`affinity`,label:`Affinity`,url:`https://mcp.affinity.co/mcp`},{auth:`oauth`,author:`Amplemarket`,category:`sales`,description:`Find and enrich sales prospects in Amplemarket`,icon:pw(`amplemarket.com`),identifier:`amplemarket`,label:`Amplemarket`,url:`https://mcp.amplemarket.com/mcp`},{auth:`oauth`,author:`Apollo`,category:`sales`,description:`Search B2B contacts and companies in Apollo`,icon:pw(`apollo.io`),identifier:`apollo`,label:`Apollo`,url:`https://mcp.apollo.io/mcp`},{auth:`oauth`,author:`Attio`,category:`sales`,description:`Work with records, lists and deals in Attio`,icon:pw(`attio.com`),identifier:`attio`,label:`Attio`,url:`https://mcp.attio.com/mcp`},{auth:`oauth`,author:`beehiiv`,category:`sales`,description:`Manage newsletter posts and subscribers in beehiiv`,icon:pw(`beehiiv.com`),identifier:`beehiiv`,label:`beehiiv`,url:`https://mcp.beehiiv.com/mcp`},{auth:`oauth`,author:`Buffer`,category:`sales`,description:`Schedule and publish social posts with Buffer`,icon:pw(`buffer.com`),identifier:`buffer`,label:`Buffer`,url:`https://mcp.buffer.com/mcp`},{auth:`oauth`,author:`Close`,category:`sales`,description:`Work with leads, deals and activities in Close`,icon:pw(`close.com`),identifier:`close`,label:`Close`,url:`https://mcp.close.com/mcp`},{auth:`oauth`,author:`Customer.io`,category:`sales`,description:`Work with customer profiles and messaging in Customer.io`,icon:pw(`customer.io`),identifier:`customerio`,label:`Customer.io`,url:`https://mcp.customer.io/mcp`},{auth:`oauth`,author:`folk`,category:`sales`,description:`Manage contacts and pipelines in folk`,icon:pw(`folk.app`),identifier:`folk`,label:`folk`,url:`https://mcp.folk.app/mcp`},{auth:`oauth`,author:`Gojiberry`,category:`sales`,description:`Find B2B leads from buying signals with Gojiberry`,icon:pw(`gojiberry.ai`),identifier:`gojiberry`,label:`Gojiberry`,url:`https://mcp.gojiberry.ai`},{auth:`oauth`,author:`Greenhouse`,category:`sales`,description:`Track candidates and hiring pipelines in Greenhouse`,icon:pw(`greenhouse.com`),identifier:`greenhouse`,label:`Greenhouse`,url:`https://mcp.greenhouse.io/mcp`},{auth:`oauth`,author:`Help Scout`,category:`sales`,description:`Handle support conversations and reports in Help Scout`,icon:pw(`helpscout.com`),identifier:`helpscout`,label:`Help Scout`,url:`https://mcp.helpscout.net/mcp`},{auth:`oauth`,author:`HeyReach`,category:`sales`,description:`Run LinkedIn outreach campaigns in HeyReach`,icon:pw(`heyreach.io`),identifier:`heyreach`,label:`HeyReach`,url:`https://mcp.heyreach.io/mcp`},{auth:`oauth`,author:`HighLevel`,category:`sales`,description:`Manage contacts, pipelines and campaigns in HighLevel`,icon:pw(`gohighlevel.com`),identifier:`highlevel`,label:`HighLevel`,url:`https://services.leadconnectorhq.com/mcp`},{auth:`oauth`,author:`Instantly`,category:`sales`,description:`Run cold email campaigns in Instantly`,icon:pw(`instantly.ai`),identifier:`instantly`,label:`Instantly`,url:`https://mcp.instantly.ai/mcp`},{auth:`oauth`,author:`Intercom`,category:`sales`,description:`Search conversations, contacts and help articles in Intercom`,icon:pw(`intercom.com`),identifier:`intercom`,label:`Intercom`,url:`https://mcp.intercom.com/mcp`},{auth:`oauth`,author:`Kajabi`,category:`sales`,description:`Manage courses, offers and customers in Kajabi`,icon:pw(`kajabi.com`),identifier:`kajabi`,label:`Kajabi`,url:`https://mcp.kajabi.com/mcp`},{auth:`oauth`,author:`Kit`,category:`sales`,description:`Manage email newsletters and subscribers in Kit`,icon:pw(`kit.com`),identifier:`kit`,label:`Kit`,url:`https://app.kit.com/mcp`},{auth:`oauth`,author:`Klaviyo`,category:`sales`,description:`Work with email and SMS marketing in Klaviyo`,icon:pw(`klaviyo.com`),identifier:`klaviyo`,label:`Klaviyo`,url:`https://mcp.klaviyo.com/mcp`},{auth:`oauth`,author:`lemlist`,category:`sales`,description:`Run sales outreach campaigns in lemlist`,icon:pw(`lemlist.com`),identifier:`lemlist`,label:`lemlist`,url:`https://app.lemlist.com/mcp`},{auth:`oauth`,author:`Lusha`,category:`sales`,description:`Look up B2B contacts and companies in Lusha`,icon:pw(`lusha.com`),identifier:`lusha`,label:`Lusha`,url:`https://mcp.lusha.com`},{auth:`oauth`,author:`MailerLite`,category:`sales`,description:`Manage email campaigns and subscribers in MailerLite`,icon:pw(`mailerlite.com`),identifier:`mailerlite`,label:`MailerLite`,url:`https://mcp.mailerlite.com/mcp`},{auth:`oauth`,author:`Omnisend`,category:`sales`,description:`Work with email and SMS marketing in Omnisend`,icon:pw(`omnisend.com`),identifier:`omnisend`,label:`Omnisend`,url:`https://mcp.omnisend.com/mcp`},{auth:`oauth`,author:`Pipedrive`,category:`sales`,description:`Manage deals and contacts in Pipedrive`,icon:pw(`pipedrive.com`),identifier:`pipedrive`,label:`Pipedrive`,url:`https://mcp.pipedrive.ai/mcp`},{auth:`oauth`,author:`Postiz`,category:`sales`,description:`Schedule social media posts with Postiz`,icon:pw(`postiz.com`),identifier:`postiz`,label:`Postiz`,url:`https://mcp.postiz.com/mcp-oauth-dynamic`},{auth:`oauth`,author:`Pylon`,category:`sales`,description:`Handle customer support issues in Pylon`,icon:pw(`usepylon.com`),identifier:`pylon`,label:`Pylon`,url:`https://mcp.usepylon.com`},{auth:`oauth`,author:`Salesloft`,category:`sales`,description:`Work with pipeline and cadences in Salesloft`,icon:pw(`salesloft.com`),identifier:`salesloft`,label:`Salesloft`,url:`https://mcp.salesloft.com/mcp`},{auth:`oauth`,author:`Smartlead`,category:`sales`,description:`Run cold email campaigns in Smartlead`,icon:pw(`smartlead.ai`),identifier:`smartlead`,label:`Smartlead`,url:`https://mcp.smartlead.ai/mcp`},{auth:`oauth`,author:`TryPost`,category:`sales`,description:`Schedule social media posts with TryPost`,icon:pw(`trypost.it`),identifier:`trypost`,label:`TryPost`,url:`https://app.trypost.it/mcp/trypost`},{auth:`oauth`,author:`Typefully`,category:`sales`,description:`Draft and schedule social posts in Typefully`,icon:pw(`typefully.com`),identifier:`typefully`,label:`Typefully`,url:`https://mcp.typefully.com/mcp`},{auth:`oauth`,author:`Whop`,category:`sales`,description:`Manage digital products and memberships on Whop`,icon:pw(`whop.com`),identifier:`whop`,label:`Whop`,url:`https://mcp.whop.com/mcp`},{auth:`oauth`,author:`Workable`,category:`sales`,description:`Manage hiring pipelines in Workable`,icon:pw(`workable.com`),identifier:`workable`,label:`Workable`,url:`https://mcp.workable.com/mcp`}]})),aBe=o((()=>{Rze(),Bze(),Hze(),Wze(),Kze(),Jze(),Xze(),Qze(),eBe(),nBe(),iBe(),[...$ze,...Vze,...qze,...rBe,...zze,...Uze,...tBe,...Gze,...Lze,...Yze,...Zze]})),oBe=o((()=>{aBe()})),sBe=o((()=>{})),hw,gw,_w,cBe,lBe=o((()=>{hw=e=>e.join(`+`),gw={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},_w=[{electronAccelerator:`Alt+Shift+Space`,id:gw.QuickComposer,uiKeys:hw([`alt`,`shift`,`space`])},{electronAccelerator:``,id:gw.QuickChat,uiKeys:``},{electronAccelerator:``,id:gw.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:gw.OpenSettings,nonEditable:!0,uiKeys:hw([`mod`,`comma`])}],cBe=_w.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),_w.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),uBe=o((()=>{lBe(),cBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),dBe,fBe,pBe,vw=o((()=>{bC(),dBe={},fBe=zAe,pBe=`/avatars/lobe-ai.png`})),yw=o((()=>{bC()})),mBe,hBe,gBe,bw,_Be=o((()=>{bC(),vw(),yw(),mBe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},hBe={model:vC,provider:yC},gBe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:hBe,searchMode:`auto`,selfIteration:{enabled:!1}},bw={chatConfig:gBe,model:vC,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:yC,systemRole:``,tts:mBe}})),vBe=o((()=>{})),yBe=o((()=>{})),bBe,xBe,SBe,CBe,wBe,TBe,EBe,DBe,OBe,kBe,ABe,jBe,MBe,NBe,PBe,FBe,IBe,LBe=o((()=>{bBe=`@lobehub/lobehub`,xBe=`2.3.4`,SBe=`LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.`,CBe=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],wBe=`https://github.com/lobehub/lobehub`,TBe={url:`https://github.com/lobehub/lobehub/issues/new/choose`},EBe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},DBe=`LobeHub <i@lobehub.com>`,OBe=[`./src/initialize.ts`,`./src/libs/providerIcon.ts`,`./src/spa/entry.auth.tsx`,`./src/spa/entry.desktop.tsx`,`./src/spa/entry.mobile.tsx`,`./src/spa/entry.popup.tsx`,`./src/spa/entry.web.tsx`],kBe=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],ABe={alint:`alint`,"alint:audit":`alint --config alint.audit.toml --format json --rule-concurrency 48 src packages`,"alint:setup":`bun packages/alint/setup.ts`,build:`bun run build:spa && bun run build:spa:auth && bun run build:spa:workbench && bun run build:spa:share && bun run build:spa:copy && bun run build:next`,"build:analyze":`cross-env NODE_OPTIONS=--max-old-space-size=81920 next experimental-analyze`,"build:artboard-viewer":`pnpm --filter @lobechat/artboard-viewer build`,"build:canvas-runtime":`pnpm --filter @lobechat/canvas-runtime build`,"build:docker":`pnpm run build:file-parse-worker && pnpm run build:spa && pnpm run build:spa:mobile && pnpm run build:spa:auth && pnpm run build:spa:workbench && pnpm run build:spa:share && cross-env WORKBENCH_REQUIRED=1 SHARE_REQUIRED=1 pnpm run build:spa:copy && cross-env NODE_OPTIONS=--max-old-space-size=8192 DOCKER=true next build`,"build:file-parse-worker":`tsx scripts/buildFileParseWorker.mts`,"build:next":`cross-env NODE_OPTIONS=--max-old-space-size=7168 bun run build:next:raw`,"build:next:raw":`pnpm run build:file-parse-worker && next build`,"build:raw":`bun run build:spa:raw && bun run build:spa:auth && bun run build:spa:workbench && bun run build:spa:share && bun run build:spa:copy && bun run build:next:raw`,"build:spa":`cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm run build:spa:raw`,"build:spa:auth":`rm -rf public/_spa public/_spa-auth && cross-env NODE_OPTIONS=--max-old-space-size=8192 AUTH=true vite build`,"build:spa:copy":`tsx scripts/copySpaBuild.mts && tsx scripts/generateSpaTemplates.mts`,"build:spa:mobile":`cross-env NODE_OPTIONS=--max-old-space-size=8192 MOBILE=true vite build`,"build:spa:raw":`rm -rf public/_spa && vite build`,"build:spa:share":`rm -rf dist/share public/_spa-share && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm --filter @lobehub/share build`,"build:spa:workbench":`rm -rf dist/workbench public/_spa-workbench && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm --filter @lobehub/workbench build`,"build:vercel":`cross-env-shell NODE_OPTIONS=--max-old-space-size=8192 "bun run build:raw && bun run db:migrate"`,"build-migrate-db":`bun run db:migrate`,check:`bun run .agents/scripts/check/cli.ts`,"clean:node_modules":`bash -lc 'set -e; echo "Removing all node_modules..."; rm -rf node_modules; pnpm -r exec rm -rf node_modules; rm -rf apps/desktop/node_modules; echo "All node_modules removed."'`,"db:generate":`drizzle-kit generate && tsx ./scripts/pruneMigrationSnapshots/index.ts && npm run workflow:dbml`,"db:install-fts-search-capture":`cross-env MIGRATION_DB=1 tsx ./scripts/installFtsSearchSyncCapture/index.ts`,"db:migrate":`cross-env MIGRATION_DB=1 tsx ./scripts/migrateServerDB/index.ts`,"db:studio":`drizzle-kit studio`,"db:visualize":`dbdocs build docs/development/database-schema.dbml --project lobe-chat`,"desktop:build:all":`npm run desktop:build:main`,"desktop:build:main":`npm run build:main --prefix=./apps/desktop`,"desktop:build-channel":`tsx scripts/electronWorkflow/buildDesktopChannel.ts`,"desktop:main:build":`npm run desktop:main:build --prefix=./apps/desktop`,"desktop:package:app":`npm run desktop:package:app:platform`,"desktop:package:app:platform":`tsx scripts/electronWorkflow/buildElectron.ts`,"desktop:package:local":`npm run package:local --prefix=./apps/desktop`,"desktop:package:local:reuse":`npm run package:local:reuse --prefix=./apps/desktop`,dev:`tsx scripts/devStartupSequence.mts`,"dev:bun":`bun run build:file-parse-worker && bun --bun next dev -p 3010`,"dev:desktop":`cd apps/desktop && pnpm run dev`,"dev:docker":`docker compose -f docker-compose/dev/docker-compose.yml up -d --wait postgresql redis rustfs searxng`,"dev:docker:down":`docker compose -f docker-compose/dev/docker-compose.yml down`,"dev:docker:reset":`docker compose -f docker-compose/dev/docker-compose.yml down -v && rm -rf docker-compose/dev/data && npm run dev:docker && pnpm db:migrate`,"dev:next":`bun run build:file-parse-worker && next dev -p 3010`,"dev:spa":`vite`,"dev:spa:auth":`cross-env AUTH=true vite`,"dev:spa:mobile":`cross-env MOBILE=true vite`,"dev:spa:share":`pnpm --filter @lobehub/share dev`,"dev:spa:workbench":`pnpm --filter @lobehub/workbench dev`,"docs:cdn":`npm run workflow:docs-cdn && npm run lint:mdx`,"docs:i18n":`lobe-i18n md && npm run lint:mdx`,"docs:seo":`lobe-seo && npm run lint:mdx`,e2e:`cd e2e && npm run test`,"e2e:install":`playwright install`,"e2e:ui":`playwright test --ui`,"fts-search:cleanup-ineligible-messages":`cross-env MIGRATION_DB=1 bun run scripts/elasticsearchCleanupIneligibleMessages/cli.ts`,"fts-search:reindex":`node scripts/elasticsearchReindex/runner.mjs`,"fts-search:sync":`cross-env MIGRATION_DB=1 bun run scripts/elasticsearchSync/cli.ts`,"gen:density":`tsx scripts/densityTokens.mts`,"gen:density:check":`tsx scripts/densityTokens.mts --check`,"hotfix:branch":`tsx ./scripts/hotfixWorkflow/index.ts`,i18n:`npm run workflow:i18n && lobe-i18n && prettier -c --write "locales/**"`,"i18n:unused":`tsx ./scripts/i18nWorkflow/analyzeUnusedKeys.ts`,"i18n:unused-clean":`tsx ./scripts/i18nWorkflow/cleanUnusedKeys.ts`,lint:`npm run lint:ts && npm run lint:style && npm run type-check && npm run lint:circular`,"lint:circular":`npm run lint:circular:main && npm run lint:circular:packages`,"lint:circular:main":`dpdm src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular`,"lint:circular:packages":`dpdm packages/**/src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular`,"lint:console":`tsx scripts/checkConsoleLog.mts`,"lint:md":`remark . --silent --output`,"lint:mdx":`npm run workflow:mdx && remark "docs/**/*.mdx" -r ./.remarkrc.mdx.mjs --silent --output`,"lint:style":`stylelint "{src,tests}/**/*.{css,less}" --fix --allow-empty-input`,"lint:ts":`oxlint src/ tests/ apps/server/src/`,"lint:unused":`knip --include files,exports,types,enumMembers,duplicates`,prepare:`git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath .githooks || true`,prettier:`prettier -c --write "**/**"`,pull:`git pull`,qstash:`pnpx @upstash/qstash-cli@latest dev`,"react-devtools":`cd apps/desktop && pnpm run react-devtools`,reinstall:`rm -rf .next && rm -rf node_modules && rm -rf ./packages/*/node_modules && pnpm -r exec rm -rf node_modules && pnpm install`,"reinstall:desktop":`rm -rf pnpm-lock.yaml && rm -rf node_modules && pnpm -r exec rm -rf node_modules && pnpm install --node-linker=hoisted`,release:`semantic-release`,"release:branch":`tsx ./scripts/releaseWorkflow/index.ts`,"self-hosting:docker":`docker build -t lobehub:local .`,"self-hosting:docker-cn":`docker build -t lobehub-local --build-arg USE_CN_MIRROR=true .`,start:`next start -p 3210`,"style-eq":`bun packages/style-equivalence/src/cli/index.ts`,"style-eq:test":`cd packages/style-equivalence && vitest run --silent=passed-only`,stylelint:`stylelint "src/**/*.{css,less}" --fix --allow-empty-input`,"stylex:migration":`tsx scripts/stylexMigration/index.ts`,"stylex:verify":`bun scripts/stylexMigration/verification/run.ts`,"stylex:verify:test":`vitest run --config scripts/stylexMigration/verification/vitest.config.ts --silent='passed-only'`,test:`npm run test-app && npm run test-server`,"test:e2e":`pnpm --filter @lobechat/e2e-tests test`,"test:e2e:smoke":`pnpm --filter @lobechat/e2e-tests test:smoke`,"test:update":`vitest -u`,"test-app":`vitest run`,"test-app:coverage":`vitest --coverage --silent='passed-only'`,"tunnel:cloudflare":`cloudflared tunnel --url http://localhost:3010 --protocol http2`,"tunnel:ngrok":`ngrok http http://localhost:3010`,"type-check":`tsrs --noEmit -p tsconfig.type-check.json --checkers 4`,"type-check:tsc":`tsc --noEmit`,"widget:tick":`tsx ./scripts/widgetTick/index.mts`,"workflow:cdn":`tsx ./scripts/cdnWorkflow/index.ts`,"workflow:changelog":`tsx ./scripts/changelogWorkflow/index.ts`,"workflow:changelog:gen":`tsx ./scripts/changelogWorkflow/generateChangelog.ts`,"workflow:countCharters":`tsx scripts/countEnWord.ts`,"workflow:dbml":`tsx ./scripts/dbmlWorkflow/index.ts`,"workflow:docs":`tsx ./scripts/docsWorkflow/index.ts`,"workflow:docs-cdn":`tsx ./scripts/docsWorkflow/autoCDN.ts`,"workflow:i18n":`tsx ./scripts/i18nWorkflow/index.ts`,"workflow:mdx":`tsx ./scripts/mdxWorkflow/index.ts`,"workflow:mobile-spa":`tsx scripts/mobileSpaWorkflow/index.ts`,"workflow:readme":`tsx ./scripts/readmeWorkflow/index.ts`,"workflow:reset-onboarding":`tsx ./scripts/resetOnboarding/index.ts`,"workflow:seed-user-info":`tsx ./scripts/seedUserInfo/index.ts`,"workflow:set-desktop-version":`tsx ./scripts/electronWorkflow/setDesktopVersion.ts`},jBe={"@types/react":`19.2.13`,"baseline-browser-mapping":`2.10.31`,"better-auth":`1.6.33`,"drizzle-orm":`^0.45.2`,"fast-xml-parser":`5.4.2`,lexical:`0.42.0`,"pdfjs-dist":`5.4.530`,"stylelint-config-clean-order":`7.0.0`},MBe=JSON.parse(`{"@aiden0z/pptx-renderer":"^1.2.4","@anthropic-ai/sdk":"^0.73.0","@atlaskit/pragmatic-drag-and-drop":"^1.8.1","@atlaskit/pragmatic-drag-and-drop-hitbox":"^1.2.0","@aws-sdk/client-bedrock-runtime":"^3.1107.0","@aws-sdk/client-s3":"~3.932.0","@aws-sdk/s3-request-presigner":"~3.932.0","@azure-rest/ai-inference":"1.0.0-beta.5","@azure/core-auth":"^1.11.0","@better-auth/expo":"1.6.33","@better-auth/passkey":"1.6.33","@cfworker/json-schema":"^4.1.1","@chat-adapter/discord":"~4.38.0","@chat-adapter/slack":"~4.38.0","@chat-adapter/state-ioredis":"~4.38.0","@chat-adapter/telegram":"~4.38.0","@codemirror/streamparser":"^6.0.0","@codesandbox/sandpack-react":"^2.20.0","@composio/core":"^0.10.0","@discordjs/rest":"^2.6.3","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emoji-mart/data":"^1.2.1","@emoji-mart/react":"^1.1.1","@emotion/react":"^11.14.0","@fal-ai/client":"^1.10.1","@floating-ui/react":"^0.27.20","@formkit/auto-animate":"^0.9.0","@google/genai":"^2.24.0","@henrygd/queue":"^1.2.0","@huggingface/inference":"^4.13.25","@icons-pack/react-simple-icons":"^13.15.1","@khmyznikov/pwa-install":"0.3.9","@larksuiteoapi/node-sdk":"^1.73.0","@lexical/list":"0.42.0","@lexical/rich-text":"0.42.0","@lexical/utils":"^0.42.0","@lobechat/agent-address-linq":"workspace:*","@lobechat/agent-address-mail":"workspace:*","@lobechat/agent-gateway-client":"workspace:*","@lobechat/agent-mock":"workspace:*","@lobechat/agent-runtime":"workspace:*","@lobechat/agent-signal":"workspace:*","@lobechat/agent-templates":"workspace:*","@lobechat/artifact-template":"workspace:*","@lobechat/builtin-agents":"workspace:*","@lobechat/builtin-skills":"workspace:*","@lobechat/builtin-tool-acceptance-evidence":"workspace:*","@lobechat/builtin-tool-activator":"workspace:*","@lobechat/builtin-tool-agent-account":"workspace:*","@lobechat/builtin-tool-agent-builder":"workspace:*","@lobechat/builtin-tool-agent-documents":"workspace:*","@lobechat/builtin-tool-agent-management":"workspace:*","@lobechat/builtin-tool-agent-signal":"workspace:*","@lobechat/builtin-tool-artboard":"workspace:*","@lobechat/builtin-tool-attachments":"workspace:*","@lobechat/builtin-tool-auv":"workspace:*","@lobechat/builtin-tool-brief":"workspace:*","@lobechat/builtin-tool-browser":"workspace:*","@lobechat/builtin-tool-calculator":"workspace:*","@lobechat/builtin-tool-canvas":"workspace:*","@lobechat/builtin-tool-channel":"workspace:*","@lobechat/builtin-tool-claude-code":"workspace:*","@lobechat/builtin-tool-cloud-sandbox":"workspace:*","@lobechat/builtin-tool-creds":"workspace:*","@lobechat/builtin-tool-dashboard":"workspace:*","@lobechat/builtin-tool-goal":"workspace:*","@lobechat/builtin-tool-group-agent-builder":"workspace:*","@lobechat/builtin-tool-group-management":"workspace:*","@lobechat/builtin-tool-image-generation":"workspace:*","@lobechat/builtin-tool-knowledge-base":"workspace:*","@lobechat/builtin-tool-lobe-agent":"workspace:*","@lobechat/builtin-tool-local-system":"workspace:*","@lobechat/builtin-tool-mcp-events":"workspace:*","@lobechat/builtin-tool-memory":"workspace:*","@lobechat/builtin-tool-message":"workspace:*","@lobechat/builtin-tool-notebook":"workspace:*","@lobechat/builtin-tool-page-agent":"workspace:*","@lobechat/builtin-tool-remote-device":"workspace:*","@lobechat/builtin-tool-self-iteration":"workspace:*","@lobechat/builtin-tool-skill-maintainer":"workspace:*","@lobechat/builtin-tool-skill-store":"workspace:*","@lobechat/builtin-tool-skills":"workspace:*","@lobechat/builtin-tool-task":"workspace:*","@lobechat/builtin-tool-user-interaction":"workspace:*","@lobechat/builtin-tool-verify":"workspace:*","@lobechat/builtin-tool-video-generation":"workspace:*","@lobechat/builtin-tool-web-browsing":"workspace:*","@lobechat/builtin-tool-web-onboarding":"workspace:*","@lobechat/builtin-tool-webhook":"workspace:*","@lobechat/builtin-tool-work":"workspace:*","@lobechat/builtin-tools":"workspace:*","@lobechat/business-config":"workspace:*","@lobechat/business-const":"workspace:*","@lobechat/business-knowledge":"workspace:*","@lobechat/business-model-bank":"workspace:*","@lobechat/business-model-runtime":"workspace:*","@lobechat/canvas":"workspace:*","@lobechat/chat-adapter-dingtalk":"workspace:*","@lobechat/chat-adapter-feishu":"workspace:*","@lobechat/chat-adapter-imessage":"workspace:*","@lobechat/chat-adapter-line":"workspace:*","@lobechat/chat-adapter-qq":"workspace:*","@lobechat/chat-adapter-wechat":"workspace:*","@lobechat/chat-adapter-wecom":"workspace:*","@lobechat/config":"workspace:*","@lobechat/connector-data":"workspace:*","@lobechat/const":"workspace:*","@lobechat/context-engine":"workspace:*","@lobechat/conversation-flow":"workspace:*","@lobechat/database":"workspace:*","@lobechat/desktop-bridge":"workspace:*","@lobechat/device-control":"workspace:*","@lobechat/device-gateway-client":"workspace:*","@lobechat/edge-config":"workspace:*","@lobechat/editor-runtime":"workspace:*","@lobechat/electron-client-ipc":"workspace:*","@lobechat/electron-server-ipc":"workspace:*","@lobechat/env":"workspace:*","@lobechat/eval-dataset-parser":"workspace:*","@lobechat/eval-rubric":"workspace:*","@lobechat/fetch-sse":"workspace:*","@lobechat/file-loaders":"workspace:*","@lobechat/heterogeneous-agents":"workspace:*","@lobechat/html-artifact":"workspace:*","@lobechat/llm-generation-tracing":"workspace:*","@lobechat/local-file-shell":"workspace:*","@lobechat/markdown-patch":"workspace:*","@lobechat/mecha":"workspace:*","@lobechat/memory-user-memory":"workspace:*","@lobechat/model-runtime":"workspace:*","@lobechat/observability-otel":"workspace:*","@lobechat/openapi":"workspace:*","@lobechat/prompts":"workspace:*","@lobechat/python-interpreter":"workspace:*","@lobechat/shared-tool-ui":"workspace:*","@lobechat/ssrf-safe-fetch":"workspace:*","@lobechat/tool-runtime":"workspace:*","@lobechat/tool-view-model":"workspace:*","@lobechat/utils":"workspace:*","@lobechat/web-crawler":"workspace:*","@lobechat/widget-spec":"workspace:*","@lobehub/analytics":"^1.6.4","@lobehub/charts":"^6.0.0","@lobehub/desktop-ipc-typings":"workspace:*","@lobehub/editor":"7.2.1","@lobehub/icons":"^6.15.2","@lobehub/market-sdk":"0.46.0","@lobehub/tts":"^6.1.0","@lobehub/ui":"^6.19.0","@modelcontextprotocol/client":"~2.4.0","@modelcontextprotocol/ext-apps":"^2.0.3","@neondatabase/serverless":"^1.1.0","@next/third-parties":"^16.3.0","@opentelemetry/auto-instrumentations-node":"^0.76.0","@opentelemetry/exporter-jaeger":"^2.10.0","@opentelemetry/resources":"^2.10.0","@opentelemetry/sdk-metrics":"^2.10.0","@opentelemetry/winston-transport":"^0.28.0","@pierre/trees":"1.0.0-beta.3","@react-pdf/renderer":"4.3.2","@react-three/drei":"^10.7.8","@react-three/fiber":"^9.7.0","@saintno/comfyui-sdk":"^0.2.53","@stylexjs/stylex":"0.19.1","@t3-oss/env-core":"^0.13.11","@t3-oss/env-nextjs":"^0.13.11","@tanstack/react-query":"^5.101.4","@trpc/client":"^11.18.0","@trpc/next":"^11.18.0","@trpc/react-query":"^11.18.0","@trpc/server":"^11.18.0","@upstash/qstash":"2.12.0","@upstash/workflow":"^0.2.23","@vercel/analytics":"^1.6.1","@vercel/edge-config":"^1.5.1","@vercel/functions":"^3.9.2","@vercel/speed-insights":"^1.3.1","@virtuoso.dev/masonry":"^1.4.3","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/addon-webgl":"^0.18.0","@xterm/xterm":"^5.5.0","@xyflow/react":"^12.11.5","@zumer/snapdom":"^2.24.10","ahooks":"^3.9.7","async-retry":"^1.3.3","bcryptjs":"^3.0.3","better-auth":"1.6.33","brotli-wasm":"^3.0.1","buffer.js":"npm:buffer@^6.0.3","chat":"~4.38.0","chroma-js":"^3.3.0","class-variance-authority":"^0.7.1","cmdk":"^1.1.1","cookie":"^1.1.1","countries-and-timezones":"^3.10.0","d3-dsv":"^3.0.1","dayjs":"^1.11.21","debug":"^4.4.3","diff":"^8.0.4","discord-api-types":"^0.38.53","docx-preview":"^0.4.0","drizzle-orm":"^0.45.2","drizzle-zod":"^0.8.3","entities":"^8.1.0","epub2":"^3.0.2","es-toolkit":"^1.50.0","exceljs":"^4.4.0","expo-server-sdk":"^6.1.0","fast-deep-equal":"^3.1.3","fflate":"^0.8.3","ffmpeg-static":"^5.3.0","file-type":"^21.3.4","fuse.js":"^7.5.0","gray-matter":"^4.0.3","hono":"^4.13.1","html-to-text":"^9.0.5","i18next":"^25.10.10","i18next-browser-languagedetector":"^8.2.1","i18next-resources-to-backend":"^1.2.3","immer":"^11.1.16","ioredis":"^5.11.1","jose":"^6.2.8","js-sha256":"^0.11.1","jsondiffpatch":"^0.7.6","jsonl-parse-stringify":"^1.0.3","keygrip":"^1.1.0","langfuse":"^3.38.20","langfuse-core":"^3.38.20","lexical":"0.42.0","local-replica":"^0.1.1","lucide-react":"^1.31.0","mammoth":"^1.12.1","marked":"^17.0.6","masonic":"^4.1.0","mdast-util-to-markdown":"^2.1.2","mesurer":"^0.1.0","model-bank":"workspace:*","motion":"^14.1.0","nanoid":"^5.1.16","next":"~16.3.8","next-mdx-remote":"^6.0.0","next-themes":"^0.4.6","nextjs-toploader":"^3.9.17","node-machine-id":"^1.1.12","nodemailer":"^9.1.1","numeral":"^2.0.6","nuqs":"^2.9.5","octokit":"^5.0.5","officeparser":"5.1.1","ogl":"^1.0.11","oidc-provider":"^9.11.3","ollama":"^0.6.3","openai":"^6.49.0","openapi-fetch":"^0.14.1","partial-json":"^0.1.7","path-browserify-esm":"^1.0.6","pathe":"^2.0.3","pdf-parse":"^1.1.4","pdfjs-dist":"5.4.530","pdfkit":"^0.17.2","pg":"^8.23.0","pinyin-pro":"^3.28.2","plaiceholder":"^3.0.0","polished":"^4.3.1","pure-rand":"^7.0.1","pwa-install-handler":"^2.6.5","query-string":"^9.5.0","random-words":"^2.0.1","rc-util":"^5.44.4","react":"19.2.7","react-confetti":"^6.4.0","react-dom":"19.2.7","react-fast-marquee":"^1.6.5","react-hotkeys-hook":"^5.3.3","react-i18next":"^16.6.6","react-lazy-load":"^4.0.1","react-markdown":"^10.1.0","react-pdf":"^10.4.1","react-responsive":"^10.0.1","react-rnd":"^10.5.3","react-router":"^8.3.0","react-scan":"^0.5.7","react-virtuoso":"^4.18.11","react-wrap-balancer":"^1.1.1","remark":"^15.0.1","remark-gfm":"^4.0.1","remark-html":"^16.0.1","remove-markdown":"^0.6.4","resend":"6.8.0","resolve-accept-language":"^3.2.2","rtl-detect":"^1.1.2","semver":"^7.8.5","sharp":"^0.34.5","shiki":"^4.4.3","standardwebhooks":"^1.1.1","stripe":"^17.7.0","superjson":"^2.2.6","svix":"^1.99.1","swr":"^2.5.0","three":"^0.181.2","tokenx":"^1.6.0","ts-md5":"^2.0.1","ua-parser-js":"^1.0.41","undici":"^7.29.0","unist-builder":"^4.0.0","url-join":"^5.0.0","use-merge-value":"^1.2.0","uuid":"^14.0.1","virtua":"^0.48.8","word-extractor":"^1.0.4","ws":"^8.21.3","xast-util-to-xml":"^4.0.0","xastscript":"^4.0.0","yaml":"^2.9.0","yjs":"^13.6.33","zod":"^4.4.3","zustand":"5.0.4","zustand-utils":"^2.1.1"}`),NBe={"@alint-js/cli":`0.7.3`,"@commitlint/cli":`^19.8.1`,"@edge-runtime/vm":`^5.0.0`,"@huggingface/tasks":`^0.19.90`,"@inquirer/prompts":`^8.5.2`,"@lobechat/agent-tracing":`workspace:*`,"@lobechat/types":`workspace:*`,"@lobehub/commitlint-config":`^3.0.0`,"@lobehub/i18n-cli":`^1.27.0`,"@lobehub/market-types":`^1.19.0`,"@lobehub/oxlint-config":`^3.0.0`,"@lobehub/prettier-config":`^3.0.0`,"@lobehub/remarklint-config":`^3.0.0`,"@lobehub/semantic-release-config":`^3.0.0`,"@lobehub/seo-cli":`^1.7.0`,"@lobehub/stylelint-config":`^3.0.0`,"@modelcontextprotocol/server":`~2.4.0`,"@peculiar/webcrypto":`^1.7.1`,"@playwright/test":`^1.62.1`,"@prettier/sync":`^0.6.1`,"@rolldown/plugin-transform-imports":`0.1.1`,"@semantic-release/exec":`^6.0.3`,"@stylexjs/unplugin":`0.19.1`,"@testing-library/jest-dom":`^6.9.1`,"@testing-library/react":`^16.3.2`,"@testing-library/user-event":`^14.6.3`,"@types/async-retry":`^1.4.9`,"@types/chroma-js":`^3.1.2`,"@types/crypto-js":`^4.2.2`,"@types/d3-dsv":`^3.0.7`,"@types/debug":`^4.1.13`,"@types/fs-extra":`^11.0.4`,"@types/html-to-text":`^9.0.4`,"@types/ip":`^1.1.3`,"@types/json-schema":`^7.0.15`,"@types/keygrip":`^1.0.6`,"@types/node":`^24.13.3`,"@types/nodemailer":`^7.0.12`,"@types/numeral":`^2.0.5`,"@types/oidc-provider":`^9.11.1`,"@types/pdf-parse":`^1.1.5`,"@types/pdfkit":`^0.17.6`,"@types/pg":`^8.21.0`,"@types/react":`19.2.13`,"@types/react-dom":`19.2.3`,"@types/rtl-detect":`^1.0.3`,"@types/semver":`^7.8.0`,"@types/three":`^0.181.0`,"@types/ua-parser-js":`^0.7.39`,"@types/unist":`^3.0.3`,"@types/ws":`^8.18.1`,"@types/xast":`^2.0.4`,"@vitejs/devtools":`0.2.0`,"@vitejs/plugin-react":`^6.0.5`,"@vitest/coverage-v8":`5.0.0`,ajv:`^8.20.0`,"ajv-keywords":`^5.1.0`,"code-inspector-plugin":`1.3.6`,commitlint:`^19.8.1`,consola:`^3.4.2`,"cross-env":`^10.1.0`,"crypto-js":`^4.2.0`,dbdocs:`^0.16.2`,dotenv:`^17.4.2`,"dotenv-expand":`^12.0.3`,"dpdm-fast":`^1.0.14`,"drizzle-dbml-generator":`^0.10.0`,"drizzle-kit":`^0.31.10`,esbuild:`^0.28.2`,"fake-indexeddb":`^6.2.5`,"fs-extra":`^11.4.0`,glob:`^13.0.6`,"happy-dom":`~20.11.15`,"import-in-the-middle":`^2.0.6`,"just-diff":`^6.0.2`,knip:`^5.88.1`,linkedom:`^0.18.13`,"lint-staged":`^16.4.0`,"markdown-table":`^3.0.4`,"mcp-hello-world":`^1.1.2`,mime:`^4.1.0`,"node-fetch":`^3.3.2`,"node-gyp":`^12.4.0`,"openapi-typescript":`^7.13.0`,oxlint:`1.90.0`,"p-map":`^7.0.6`,postcss:`8.5.23`,"postcss-selector-parser":`7.1.7`,"postcss-value-parser":`4.2.0`,prettier:`^3.9.6`,"raw-loader":`^4.0.2`,"remark-cjk-friendly":`^2.3.1`,"remark-cli":`^12.0.1`,"remark-frontmatter":`^5.0.0`,"remark-mdx":`^3.1.1`,"remark-parse":`^11.0.0`,"require-in-the-middle":`^8.0.1`,s3rver:`3.7.1`,"semantic-release":`^21.1.2`,stylelint:`^16.26.1`,tsrs:`0.20.1-ts7.1.0-beta`,tsx:`^4.23.12`,"type-fest":`^5.8.0`,typescript:`6.0.3`,unified:`^11.0.5`,"unist-util-visit":`^5.1.0`,vite:`8.0.16`,"vite-plugin-pwa":`^1.3.0`,"vite-tsconfig-paths":`^6.1.1`,vitest:`5.0.0`},PBe=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,FBe={access:`public`,registry:`https://registry.npmjs.org`},IBe={name:bBe,version:xBe,description:SBe,keywords:CBe,homepage:wBe,bugs:TBe,repository:EBe,license:`MIT`,author:DBe,sideEffects:OBe,workspaces:kBe,scripts:ABe,"lint-staged":{"*.md":[`remark --silent --silently-ignore --output --`,`prettier --write --no-error-on-unmatched-pattern`],"*.mdx":[`remark -r ./.remarkrc.mdx.mjs --silent --output --`],"*.json":[`prettier --write --no-error-on-unmatched-pattern`],"*.{mjs,cjs}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --write`],"*.{js,jsx}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --write`],"*.{ts,tsx}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --parser=typescript --write`],"*.{css,less}":[`stylelint --fix`,`prettier --write`]},overrides:jBe,dependencies:MBe,devDependencies:NBe,packageManager:PBe,publishConfig:FBe}})),xw,Sw,Cw=o((()=>{bC(),LBe(),xw=IBe.version,Sw=_C!==`LobeHub`})),ww,Tw,Ew,Dw,Ow,RBe,zBe=o((()=>{Cw(),ww=e=>e.join(`+`),Tw={Alt:`alt`,Backquote:`backquote`,Backslash:`backslash`,Backspace:`backspace`,BracketLeft:`bracketleft`,BracketRight:`bracketright`,Comma:`comma`,Ctrl:`ctrl`,Down:`down`,Enter:`enter`,Equal:`equal`,Esc:`esc`,Left:`left`,LeftClick:`left-click`,LeftDoubleClick:`left-double-click`,Meta:`meta`,MiddleClick:`middle-click`,Minus:`minus`,Mod:`mod`,Number:`1-9`,Period:`period`,Plus:`equal`,QuestionMark:`slash`,Quote:`quote`,Right:`right`,RightClick:`right-click`,RightDoubleClick:`right-double-click`,Semicolon:`semicolon`,Shift:`shift`,Slash:`slash`,Space:`space`,Tab:`tab`,Up:`up`,Zero:`0`},Ew={CommandPalette:`commandPalette`,DeleteAndRegenerateMessage:`deleteAndRegenerateMessage`,DeleteLastMessage:`deleteLastMessage`,EditMessage:`editMessage`,FindInTopic:`findInTopic`,NavigateToChat:`navigateToChat`,NextTab:`nextTab`,OpenChatSettings:`openChatSettings`,PrevTab:`prevTab`,OpenHotkeyHelper:`openHotkeyHelper`,OpenTaskFilter:`openTaskFilter`,RegenerateMessage:`regenerateMessage`,SaveDocument:`saveDocument`,SaveTopic:`saveTopic`,Search:`search`,ShowApp:`showApp`,SwitchAgent:`switchAgent`,SwitchTab:`switchTab`,ToggleFavorite:`toggleFavorite`,ToggleLeftPanel:`toggleLeftPanel`,ToggleRightPanel:`toggleRightPanel`,ToggleTerminalPanel:`toggleTerminalPanel`},Dw={Conversation:`conversation`,Essential:`essential`},Ow={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},RBe=[{group:Dw.Essential,id:Ew.CommandPalette,keys:ww([Tw.Mod,`k`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.Search,keys:ww([Tw.Mod,`j`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.SwitchAgent,keys:ww([Tw.Ctrl,Tw.Number]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.SwitchTab,keys:ww([Tw.Mod,Tw.Number]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.NextTab,keys:ww([Tw.Ctrl,Tw.Tab]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.PrevTab,keys:ww([Tw.Ctrl,Tw.Shift,Tw.Tab]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.NavigateToChat,keys:ww([Tw.Ctrl,Tw.Shift,Tw.Backquote]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleLeftPanel,keys:ww([Tw.Mod,Tw.BracketLeft]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleRightPanel,keys:ww([Tw.Mod,Tw.BracketRight]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.OpenHotkeyHelper,keys:ww([Tw.Ctrl,Tw.Shift,Tw.QuestionMark]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleFavorite,keys:ww([Tw.Alt,`f`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.OpenTaskFilter,keys:`f`,scopes:[Ow.Global]},{group:Dw.Conversation,id:Ew.FindInTopic,keys:ww([Tw.Mod,`f`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.ToggleTerminalPanel,keys:ww([Tw.Ctrl,Tw.Backquote]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.OpenChatSettings,keys:ww([Tw.Alt,Tw.Comma]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.RegenerateMessage,keys:ww([Tw.Alt,`r`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.DeleteLastMessage,keys:ww([Tw.Alt,`d`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.DeleteAndRegenerateMessage,keys:ww([Tw.Alt,Tw.Shift,`r`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.SaveTopic,keys:ww([Tw.Alt,`n`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.EditMessage,keys:ww([Tw.Alt,Tw.LeftDoubleClick]),nonEditable:!0,scopes:[Ow.Chat]},{group:Dw.Essential,id:Ew.SaveDocument,keys:ww([Tw.Mod,`s`]),scopes:[Ow.Files]}]})),BBe=o((()=>{zBe(),RBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),VBe=o((()=>{})),HBe=o((()=>{bC(),yw()})),UBe=o((()=>{})),WBe=o((()=>{})),GBe,kw,KBe=o((()=>{bC(),HBe(),yw(),GBe={model:vC,provider:yC},kw={model:QAe,provider:$Ae},kw.model,kw.provider,kw.model,kw.provider,kw.model,kw.provider,{...GBe},Reflect.get(yje,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(yje,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),qBe=o((()=>{})),JBe=o((()=>{})),Aw=o((()=>{_Be(),vBe(),yBe(),BBe(),VBe(),HBe(),yw(),UBe(),WBe(),KBe(),qBe(),JBe()})),YBe=o((()=>{Aw(),new Date().toISOString()})),XBe=o((()=>{})),ZBe=o((()=>{Object.freeze([])})),QBe=o((()=>{})),$Be,eVe,tVe,nVe=o((()=>{$Be=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],eVe=2*1024*1024*1024-1,`${eVe}`,tVe=64*1024*1024,`${tVe}`,[...$Be]})),rVe,iVe=o((()=>{bC(),`${_C}`,rVe=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(rVe)})),aVe,oVe=o((()=>{aVe=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(aVe)})),sVe=o((()=>{})),cVe=o((()=>{})),lVe=o((()=>{})),uVe=o((()=>{})),dVe=o((()=>{})),fVe=o((()=>{})),pVe,mVe=o((()=>{lc(),pVe=(e,t)=>ls({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),hVe,gVe,_Ve=o((()=>{vw(),Aw(),mVe(),hVe=`agent`,gVe={config:bw,createdAt:new Date,id:``,meta:dBe,model:bw.model,type:hVe,updatedAt:new Date},pVe(gVe,{id:`inbox`,meta:{avatar:pBe}})})),vVe=o((()=>{})),yVe=o((()=>{})),bVe=o((()=>{})),xVe=o((()=>{})),SVe=o((()=>{})),CVe=o((()=>{})),wVe=o((()=>{})),TVe=o((()=>{})),EVe,DVe,OVe=o((()=>{bC(),Aw(),EVe={activities:3,contexts:0,experiences:0,preferences:3},DVe={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...EVe}},DVe.high.contexts})),kVe=o((()=>{})),AVe=o((()=>{})),jw=o((()=>{lxe(),dxe(),fxe(),bxe(),_ze(),yze(),bze(),xze(),Ize(),oBe(),sBe(),uBe(),lBe(),YBe(),XBe(),ZBe(),QBe(),nVe(),iVe(),oVe(),sVe(),cVe(),Fze(),lVe(),vw(),aBe(),uVe(),dVe(),fVe(),_Ve(),Aw(),vVe(),yVe(),bVe(),xVe(),SVe(),CVe(),wVe(),Pze(),TVe(),OVe(),Cw(),kVe(),AVe()}));jw();var Mw=[[`LobeHub Cloud`,RAe,`LobeHub Cloud`],[`LobeHub`,_C,`LobeHub`],[`LobeChat`,_C,`LobeHub`],[`Lobe AI`,fBe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),jVe=new Map(Mw),MVe=`Lobe`,NVe=Mw.length?RegExp(`(?<!@)(${Mw.map(([e])=>e).join(`|`)})`,`g`):void 0,PVe=Mw.length>0,FVe=`brandStrings`,IVe=e=>!NVe||!e.includes(MVe)?e:e.replaceAll(NVe,e=>jVe.get(e)??e),LVe={name:FVe,process:e=>typeof e==`string`?IVe(e):e,type:`postProcessor`},RVe=PVe?{postProcess:[FVe]}:{},zVe=e=>PVe?e.use(LVe):e,BVe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},VVe=c({default:()=>HVe}),HVe,UVe=o((()=>{HVe={"directMention.progress.elapsed":`{{time}}`,"directMention.progress.running":`Running`,"directMention.progress.thinking":`Thinking…`,"directMention.progress.usingTool":`Using {{name}}…`,"directMention.progress.viewFullRecord":`View full record`,"sharePage.app.linkCopied":`Link copied`,"heteroAgent.antigravityQuota.title":`Antigravity quota`,"heteroAgent.antigravityQuota.tooltip":`View Antigravity model quotas`,"heteroAgent.antigravityQuota.fiveHour":`5 hours`,"heteroAgent.antigravityQuota.remainingAmount":`{{amount}} remaining`,"heteroAgent.antigravityQuota.unknown":`Unknown`,"heteroAgent.antigravityQuota.disabled":`Unavailable`,"heteroAgent.antigravityQuota.resetUnconfirmed":`Reset time reached. Refresh to check the latest quota.`,"heteroAgent.antigravityQuota.stale":`Showing the last query. Refresh to confirm current quota.`,"heteroAgent.antigravityQuota.authRequired":`Sign in with agy on the execution device, then try again.`,"heteroAgent.antigravityQuota.cliNotFound":`Antigravity CLI was not found on this device. Install agy, then refresh.`,"heteroAgent.antigravityQuota.unsupported":`Update agy to a version that supports structured quota queries, then refresh.`,"heteroAgent.antigravityQuota.timeout":`The quota query timed out. Check the device connection and try again.`,"heteroAgent.antigravityQuota.error":`Could not query Antigravity quota. Check the device and try again.`,"sharePage.app.open":`Open app`,"sharePage.app.help":`Trouble opening the app?`,"sharePage.app.helpDescription":`If this browser prevents opening the app, use its menu to open this page in your system browser. You can also keep reading here.`,"sharePage.app.browserGuide.dismiss":`Got it`,"sharePage.app.browserGuide.stepMenu":`Tap ··· in the top-right corner`,"sharePage.app.browserGuide.stepOpen":`Choose “Open in Browser” or a similar option`,"sharePage.app.browserGuide.title.dingtalk":`DingTalk can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.qq":`QQ can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.wechat":`WeChat can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.weibo":`Weibo can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.fallback.desc":`You may not have the LobeHub app yet, or this browser blocked the jump.`,"sharePage.app.fallback.dismiss":`Keep reading`,"sharePage.app.fallback.download":`Get the app`,"sharePage.app.fallback.title":`App didn’t open?`,newAntigravityAgent:`Add Antigravity`,"backgroundActivity.alertDesc":`{{name}} is using {{memory}} of memory and {{cpu}} CPU.`,"backgroundActivity.cpu":`CPU`,"backgroundActivity.details":`View details`,"backgroundActivity.empty":`No background activity`,"backgroundActivity.emptyDesc":`Dev servers, shells, and agents started from conversations appear here while they run.`,"backgroundActivity.highUsage":`High resource usage`,"backgroundActivity.memory":`Memory`,"backgroundActivity.processCount_one":`{{count}} process`,"backgroundActivity.processCount_other":`{{count}} processes`,"backgroundActivity.retry":`Retry`,"backgroundActivity.shared":`Shared / unassigned`,"backgroundActivity.stop":`Stop`,"backgroundActivity.stopFailed":`Could not stop this activity. Try again.`,"backgroundActivity.title":`Background activity`,"backgroundActivity.topic":`Conversation`,"backgroundActivity.unavailable":`Resource data is unavailable. Displayed values may be out of date.`,"heteroAgent.claudeQuota.accountNotSignedIn":`The Claude Code account {{account}} isn't signed in on this device. Sign in to it from Manage accounts, or switch to another account.`,"heteroAgent.claudeQuota.accountResolveFailed":`Couldn't look up this Claude Code account's login on this device. Try again, or switch to another account.`,"heteroAgent.claudeQuota.manage.add":`Add account`,"heteroAgent.claudeQuota.manage.addHintDesktop":`Each account signs in on this device; runs use the account you pick.`,"heteroAgent.claudeQuota.manage.loginFailed":`Sign-in didn't finish. Try again.`,"heteroAgent.claudeQuota.manage.loginSuccess":`Signed in as {{account}}`,"heteroAgent.claudeQuota.manage.loginWaiting":`Finish signing in in your browser…`,"heteroAgent.claudeQuota.manage.notSignedIn":`Not signed in on this device`,"heteroAgent.claudeQuota.manage.notSignedInOnDevice":`That account isn't signed in on this device yet. Sign in there first.`,"heteroAgent.claudeQuota.manage.switchFailed":`Couldn't switch the account. Try again.`,"heteroAgent.claudeQuota.manage.signIn":`Sign in`,"heteroAgent.claudeQuota.noRunnableAccount":`None of the Claude Code accounts in this agent's rotation are signed in on this device. Sign one in from Manage accounts, or add a signed-in account to the rotation.`,"processExplorer.copyPid":`Copy PID`,"processExplorer.filter":`Filter`,"processExplorer.live":`Live · updates every 2 s`,"processExplorer.name":`Name`,"processExplorer.processes":`Processes`,"processExplorer.gpu":`GPU`,"processExplorer.main":`Main process`,"processExplorer.pid":`PID`,"processExplorer.title":`Process Explorer`,"processExplorer.updated":`Updated {{time}}`,"processExplorer.utility":`Utility`,"processExplorer.window":`Window`,"response.contentSafetyNotice":`This reply was limited for content safety reasons. If this happens often, you may temporarily lose access to this model.`,"goalBatch.cell.accepted":`Accepted`,"goalBatch.cell.backlog":`Not run`,"goalBatch.cell.done":`Done`,"goalBatch.cell.human":`Needs you`,"goalBatch.cell.reopened":`Reopened in v{{revision}}`,"goalBatch.cell.runIn":`Runs in v{{revision}}`,"goalBatch.cell.running":`Running`,"goalBatch.cell.stale":`Superseded`,"goalBatch.cell.tooltip":`Wave {{wave}} · item {{index}} · {{title}} · {{state}}`,"goalBatch.enter":`Open`,"goalBatch.planPanel.compare":`Compare versions`,"goalBatch.planPanel.compareTitle":`Compare plan versions`,"goalBatch.planPanel.forked":`A forked plan: it starts again from the batch’s original outline instead of revising the previous version`,"goalBatch.planPanel.latest":`v{{revision}} · latest`,"goalBatch.planPanel.same":`Same as v{{base}}`,"goalBatch.probes.attemptNext":`Next run`,"goalBatch.probes.attemptOf":`Run {{current}} / {{total}}`,"goalBatch.probes.attemptPrevious":`Previous run`,"goalBatch.probes.cell.backlog":`Not started`,"goalBatch.probes.cell.done":`Done`,"goalBatch.probes.cell.human":`Needs you`,"goalBatch.probes.cell.running":`In progress`,"goalBatch.probes.cell.stale":`Superseded`,"goalBatch.gateCheck.axes_covered":`The trials covered every declared variant`,"goalBatch.gateCheck.count":`{{count}} / {{total}}`,"goalBatch.gateCheck.no_open_decision":`No decision in the batch is waiting on a person`,"goalBatch.gateCheck.plan_written":`The batch plan is written`,"goalBatch.gateCheck.uncovered":`Not covered: {{values}}`,"goalBatch.gateCheck.interventions_accounted":`Every person’s intervention was accounted for`,"goalBatch.gateCheck.reverified":`The delivered units passed the retro’s criteria`,"goalBatch.retro.added":`{{count}} new`,"goalBatch.retro.changes":`{{count}} steps changed`,"goalBatch.retro.criteria":`{{block}} blocking · {{warn}} advisory`,"goalBatch.retro.hint":`What the execution ran into, kept in two layers: experience goes into the plan skill every unit loads, criteria go into the verifier every unit is judged on. The gate opens only after the retro.`,"goalBatch.retro.interventionsShort":`{{accounted}}/{{total}} accounted`,"goalBatch.retro.loosened":`{{count}} loosened, needs you`,"goalBatch.retro.mark.blocked":`Unaccounted`,"goalBatch.retro.mark.done":`Exp v{{skill}} · Crit v{{verifier}}`,"goalBatch.retro.mark.pending":`Retro owed`,"goalBatch.retro.mark.pendingHint":`This wave finished; its retro has not run yet`,"goalBatch.retro.mark.running":`In retro`,"goalBatch.retro.skill":`Experience · plan skill v{{version}}`,"goalBatch.retro.status.blocked":`Interventions not accounted for`,"goalBatch.retro.status.done":`Retro done`,"goalBatch.retro.status.running":`In retro`,"goalBatch.retro.summary.interventions":`{{accounted}}/{{total}} interventions accounted for`,"goalBatch.retro.summary.reverify":`Re-verified {{passed}}/{{total}}`,"goalBatch.retro.summary.skill":`Plan skill v{{version}}: {{count}} steps changed`,"goalBatch.retro.summary.verifier":`Verifier v{{version}}: {{added}} added, {{loosened}} loosened`,"goalBatch.retro.title":`Retro · cold start`,"goalBatch.retro.titleWave":`Retro · wave {{wave}} sent back`,"goalBatch.retro.verifier":`Criteria · verifier v{{version}}`,"goalBatch.gateCheck.units_settled":`Every unit this round finished`,"goalBatch.gateCheck.units_succeeded":`Every unit this round ran through on its own — none failed or was sent back`,"goalBatch.gatePanel.learned":`What this gate taught`,"goalBatch.gatePanel.learnedHint":`Written into the plan every later unit loads, and added to the acceptance each of them must pass.`,"goalBatch.gatePanel.checks":`Checks`,"goalBatch.gatePanel.checksAt":`Verdict {{index}} · {{time}}`,"goalBatch.gatePanel.checksPlanned":`Not judged yet — these will be checked`,"goalBatch.gatePanel.question":`Revise the plan and re-probe, or fork a fresh one for the units that broke?`,"goalBatch.gatePanel.releaseQuestion":`Every check passed. Review the deliveries and the plan — release the next wave, or send the plan back to revise?`,"goalBatch.gatePanel.history":`Verdicts`,"goalBatch.gatePanel.history.blocked":`Held: {{checks}}`,"goalBatch.gatePanel.history.empty":`No verdict yet`,"goalBatch.gatePanel.history.released":`Released wave {{wave}} ({{count}} units)`,"goalBatch.gatePanel.history.unrecorded":`Judged before verdicts were recorded — no detail kept`,"goalBatch.gatePanel.history.unit":`“{{title}}” failed its own check — the batch was held at once`,"goalBatch.gatePanel.next.checking":`Every unit finished — judged on the coordinator’s next step`,"goalBatch.gatePanel.next.human":`Waiting on you: revise the plan, or fork a fresh one for the units that broke`,"goalBatch.gatePanel.next.release":`Waiting on you: review the deliveries and the plan, then release the next wave or revise the plan`,"goalBatch.gatePanel.next.locked":`Judged automatically once this round’s {{count}} units finish`,"goalBatch.gatePanel.next.passed":`Released wave {{wave}} ({{count}} units) — judged again once it finishes`,"goalBatch.gatePanel.next.passedDone":`The whole roster is released`,"goalBatch.gatePanel.next.distilling":`The main Agent is updating the plan from what the probes ran into — judged once it is done`,"goalBatch.gatePanel.next.revising":`The main Agent is rewriting the plan from your correction`,"goalBatch.gatePanel.next.rejected":`Reopened as v{{revision}} on your decision`,"goalBatch.gatePanel.verdict":`Verdict`,"goalBatch.gate.checkCount":`{{count}} checks`,"goalBatch.gate.hintSection.execution":`Execution`,"goalBatch.gate.hintSection.retro":`Retro & criteria`,"goalBatch.gate.hintTitle":`Checked before the rest are released:`,"goalBatch.gate.status.checking":`Judging`,"goalBatch.gate.status.human":`Needs your decision`,"goalBatch.gate.status.locked":`Not judged`,"goalBatch.gate.status.passed":`Passed`,"goalBatch.gate.status.rejected":`Sent back`,"goalBatch.gate.title":`Release gate`,"goalBatch.gate.titleRound":`Release gate · v{{revision}}`,"goalBatch.overviewCount":`Total: {{count}} batches · {{nodes}} nodes`,"goalBatch.probes.hint":`{{count}} representative units run first — the most different ones and the hardest. The rest are released only once every one of them runs through automatically and you approve the release.`,"goalBatch.probes.status.done":`Trials done`,"goalBatch.probes.status.pending":`Not started`,"goalBatch.probes.status.running":`Trials running`,"goalBatch.probes.title":`Cold start · trials`,"goalBatch.probes.rowLabel":`Trials`,"goalBatch.redispatch.foot":`{{count}} units · on v{{revision}}`,"goalBatch.redispatch.fromProbe":`Reopened from trial {{index}}`,"goalBatch.redispatch.fromRound":`Reopened from v{{revision}}`,"goalBatch.redispatch.fromWave":`Reopened from wave {{wave}}, item {{index}}`,"goalBatch.redispatch.title":`Waves · v{{revision}}`,"goalBatch.redispatch.labelRound":`v{{revision}}`,"goalBatch.redispatch.reopenedRow":`Reopened`,"goalBatch.round.foot":`{{count}} units`,"goalBatch.round.reviseEdge":`Sent back · revise`,"goalBatch.round.title":`Round {{revision}}`,"goalBatch.status.done":`All done`,"goalBatch.status.held":`Waiting for your release`,"goalBatch.status.human":`{{count}} need you`,"goalBatch.status.pending":`Not started`,"goalBatch.status.running":`In progress`,"goalBatch.status.stale":`{{count}} superseded`,"goalBatch.skill.forked":`Plan skill v{{revision}} · new class`,"goalBatch.skill.title":`Plan skill v{{revision}}`,"goalBatch.template.forked":`Plan v{{revision}} · new class`,"goalBatch.template.title":`Plan v{{revision}}`,"goalBatch.templatePlain":`Batch plan`,"goalBatch.title":`Repeated batch`,"goalBatch.waves.foot":`{{count}} units / {{waves}} waves`,"goalBatch.waves.row":`W{{number}}`,"goalBatch.waves.title":`Waves`,"goalExperiment.continuedFrom":`Continued exploration`,"goalExperiment.drill":`Explore inside`,"goalExperiment.drillNamed":`Explore inside: {{title}}`,"goalExperiment.location":`Exploration location`,"goalExperiment.expandScope":`Expand this view`,"goalExperiment.collapseScope":`Collapse this view`,"goalExperiment.emptyGraph":`This experiment has no internal nodes yet.`,"goalExperiment.overviewCount":`Total: {{count}} experiments · {{nodes}} nodes`,"goalExperiment.expandAll":`Expand all`,"goalExperiment.collapseAll":`Collapse all`,"goalExperiment.collapseNamed":`Collapse experiment: {{title}}`,"goalExperiment.projectedRelation":`{{relation}} (internal link)`,"goalExperiment.baseline":`Starting experiment · no parent experiment`,"goalExperiment.noResult":`No result has been recorded for this experiment yet.`,"goalExperiment.number":`Experiment #{{number}}`,"goalExperiment.execution":`Execution history`,"goalExperiment.delivery":`View delivery`,"goalExperiment.answers":`Candidate answer`,"goalExperiment.root":`All exploration`,"goalExperiment.inspect":`Experiment details`,"goalExperiment.members":`{{count}} nodes`,"goalExperiment.enter":`Expand in this graph`,"goalExperiment.status.proposed":`Not started`,"goalExperiment.status.active":`Exploring`,"goalExperiment.status.waiting":`Waiting for a decision`,"goalExperiment.status.resolved":`Work completed`,"goalExperiment.status.rejected":`Rejected`,"goalExperiment.status.retired":`Retired`,"goalExperiment.acceptance":`View verification`,"goalExperiment.result":`Experiment results`,"goalExperiment.lineage":`Experiment lineage`,"goalExperiment.parentLink":`From #{{number}} · {{title}}`,"goalExperiment.childLink":`Continued as #{{number}} · {{title}}`,"goalExperiment.instruction":`What this experiment tests`,"goalExperiment.inputs":`Pinned input versions ({{count}})`,"goalExperiment.inputHint":`These are version references recorded when the experiment was created. Execution history contains the actual dispatched input.`,"goalExperiment.unavailableInput":`Referenced work is unavailable`,"ModelSwitch.title":`Model`,active:`Active`,"audioPlayer.download":`Download audio`,"audioPlayer.pause":`Pause audio`,"audioPlayer.play":`Play audio`,"audioPlayer.seek":`Seek audio`,"agentBuilder.installPlugin.authRequired":`Cloud MCP requires sign-in to continue`,"agentBuilder.installPlugin.cancel":`Cancel`,"agentBuilder.installPlugin.clickApproveToConnect":`Click "Approve" to connect and authorize this Integration`,"agentBuilder.installPlugin.clickApproveToInstall":`Click "Approve" to install this Skill`,"agentBuilder.installPlugin.connectedAndEnabled":`Connected and enabled`,"agentBuilder.installPlugin.connectionFailed":`Connection failed. Retry, or check authorization and network settings.`,"agentBuilder.installPlugin.installFailed":`Installation failed. Retry, or view details and try again.`,"agentBuilder.installPlugin.installPlugin":`Install Skill`,"agentBuilder.installPlugin.installToEnable":`Install to enable this Skill for the Agent (you can do it later)`,"agentBuilder.installPlugin.installedAndEnabled":`Installed and enabled`,"agentBuilder.installPlugin.requiresAuth":`Requires authorization. Click "Approve" to connect`,"agentBuilder.installPlugin.retry":`Retry`,"agentBuilder.title":`Agent Builder`,"agentBuilder.welcome":`Tell me your use case.
170
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function tDe(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;tDe(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function nDe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function rDe(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!oDe.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??nDe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}wx(n,r,e.length===1?e[0]:rDe(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=nDe(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function iDe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of oDe)if(t in e)return;let n=t.filter(e=>sDe.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=rDe(t);else{let e=n[0],i=sDe.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>rDe([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,TS(e,r))}function aDe(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):TS(i,s),TS(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())tDe(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])iDe(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}TS(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,wx(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:kS(t,`input`,e.processors),output:kS(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function OS(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return OS(r.element,n);if(r.type===`set`)return OS(r.valueType,n);if(r.type===`lazy`)return OS(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return OS(r.innerType,n);if(r.type===`intersection`)return OS(r.left,n)||OS(r.right,n);if(r.type===`record`||r.type===`map`)return OS(r.keyType,n)||OS(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:OS(r.in,n)||OS(r.out,n);if(r.type===`object`){for(let e in r.shape)if(OS(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(OS(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(OS(e,n))return!0;return!!(r.rest&&OS(r.rest,n))}return!1}var oDe,sDe,cDe,kS,AS=o((()=>{GTe(),Hx(),oDe=new Set([`type`,`properties`,`required`,`additionalProperties`]),sDe=[`oneOf`,`anyOf`],cDe=(e,t={})=>n=>{let r=QEe({...n,processors:t});return DS(e,r),eDe(r,e),aDe(r,e)},kS=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=QEe({...i??{},target:a,io:t,processors:n});return DS(e,o),eDe(o,e),aDe(o,e)}}));function jS(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)bDe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&NS(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&NS(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&PS(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&PS(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&pDe(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&hDe(t,i.mime);for(let e of i.patterns??[])mDe(t,e);return t}function MS(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?MS(t.out):t.type===`catch`?MS(t.innerType):e._zod.optin}function lDe(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=lDe(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>lDe(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?tS:TCe).source),p):p}function uDe(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of FS.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=lDe(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}function dDe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(ES(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),IS):JSON.parse(o)}var NS,PS,fDe,pDe,mDe,hDe,gDe,_De,vDe,yDe,bDe,xDe,SDe,CDe,wDe,TDe,EDe,DDe,ODe,kDe,ADe,jDe,MDe,NDe,PDe,FDe,IDe,LDe,RDe,zDe,BDe,FS,VDe,HDe,UDe,IS,WDe,GDe,KDe,qDe,JDe,YDe,XDe,ZDe=o((()=>{nS(),DTe(),AS(),Hx(),NS=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},PS=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},fDe=(e,t)=>{NS(e,`minimum`,t),PS(e,`maximum`,t)},pDe=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},mDe=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},hDe=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},gDe=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},_De=(e,t)=>NS(e,`minimum`,t.minimum),vDe=(e,t)=>PS(e,`maximum`,t.maximum),yDe=e=>(t,n)=>{gDe(t,n.format);let[r,i]=e[n.format];NS(t,`minimum`,r),PS(t,`maximum`,i)},bDe={greater_than:(e,t)=>NS(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>PS(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>pDe(e,t.value),number_format:yDe(gSe),bigint_format:yDe(_Se),min_length:_De,max_length:vDe,length_equals:(e,t)=>fDe(e,t.length),min_size:_De,max_size:vDe,size_equals:(e,t)=>fDe(e,t.size),string_format:(e,t)=>{gDe(e,t.format),t.pattern&&mDe(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>hDe(e,t.mime)},xDe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},SDe=new Map([[Wwe,vCe],[fS,yCe]]),CDe=e=>SDe.get(e)??e,wDe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=jS(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=xDe[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(CDe);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},TDe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=jS(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):ES(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},EDe=(e,t,n,r)=>{n.type=`boolean`},DDe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},ODe=(e,t,n,r)=>{ES(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},kDe=(e,t,n,r)=>{n.not={}},ADe=(e,t,n,r)=>{},jDe=(e,t,n,r)=>{},MDe=(e,t,n,r)=>{ES(e,t,n,r,`Date cannot be represented in JSON Schema`)},NDe=(e,t,n,r)=>{let i=e._zod.def,a=kxe(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},PDe=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(ES(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(ES(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},FDe=(e,t,n,r)=>{ES(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},IDe=(e,t,n,r)=>{ES(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},LDe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=jS(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=DS(a.element,t,{...r,path:[...r.path,`items`]})},RDe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&ES(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)wx(i.properties,e,DS(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?MS(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=DS(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},zDe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>DS(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},BDe=(e,t,n,r)=>{let i=e._zod.def,a=DS(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=DS(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},FS=new WeakMap,VDe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=jS(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=DS(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)wx(i.patternProperties,CDe(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=DS(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=FS.get(t);n||(n=[],FS.set(t,n),t.deferred.push(()=>uDe(t))),n.push(e)}i.additionalProperties=DS(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&MS(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},HDe=(e,t,n,r)=>{let i=e._zod.def,a=DS(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},UDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},IS=Symbol(),WDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=dDe(i.defaultValue,e,t,n,r);o!==IS&&(n.default=o)},GDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=dDe(i.defaultValue,e,t,n,r);o!==IS&&(n._prefault=o)},KDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{ES(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},qDe=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;DS(o,t,r);let s=t.seen.get(e);s.ref=o},JDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},YDe=(e,t,n,r)=>{let i=e._zod.def;DS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},XDe=(e,t,n,r)=>{let i=e._zod.innerType;DS(i,t,r);let a=t.seen.get(e);a.ref=i}})),LS=o((()=>{Jx(),XSe(),FSe(),DTe(),RTe(),GCe(),YCe(),Hx(),nS(),VTe(),GTe(),qCe(),KTe(),ZEe(),AS(),ZDe(),AS()})),QDe=o((()=>{LS()}));function RS(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var $De,eOe,zS,tOe=o((()=>{LS(),Hx(),$De=new WeakSet([Object.prototype,Error.prototype]),eOe=(e,t)=>{PSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);$De.has(n)||($De.add(n),RS(n,`format`,e=>t=>ASe(e,t)),RS(n,`flatten`,e=>t=>kSe(e,t)),RS(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,jxe,2)}),RS(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,jxe,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},zS=Ux(`ZodError`,eOe,void 0,{Parent:Error})})),nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,uOe,dOe,fOe,pOe,mOe=o((()=>{LS(),tOe(),nOe=Zx(zS),rOe=Qx(zS),iOe=$x(zS),aOe=eS(zS),oOe=HSe(zS),sOe=USe(zS),cOe=WSe(zS),lOe=GSe(zS),uOe=KSe(zS),dOe=qSe(zS),fOe=JSe(zS),pOe=YSe(zS)}));function hOe(){qx.localeError||Wx(zTe())}function BS(){qx.memoizer||Wx({memoizer:MTe()})}function H(e){return JTe(IOe,e)}function VS(e){return xEe(ake,e)}function gOe(e){return SEe(oke,e)}function HS(e){return CEe(ske,e)}function _Oe(e){return wEe(cke,e)}function vOe(e){return TEe(lke,e)}function US(){return EEe(uke)}function WS(){return DEe(dke)}function yOe(e){return OEe(fke,e)}function GS(e,t){return KEe(mke,e,t)}function KS(e,t){return new hke({type:`object`,shape:e??{},...Mx(t)})}function bOe(e,t){return new hke({type:`object`,shape:e,catchall:yOe(),...Mx(t)})}function qS(e,t){return new gke({type:`union`,options:e,...Mx(t)})}function JS(e,t,n){return new _ke({type:`union`,options:t,discriminator:e,...Mx(n)})}function xOe(e,t){return new vke({type:`intersection`,left:e,right:t})}function YS(e,t,n){return!t||!t._zod?new yke({type:`record`,keyType:H(),valueType:e,...Mx(t)}):new yke({type:`record`,keyType:e,valueType:t,...Mx(n)})}function XS(e,t){return new iC({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Mx(t)})}function ZS(e,t){return new iC({type:`enum`,entries:e,...Mx(t)})}function QS(e,t){return new bke({type:`literal`,values:Array.isArray(e)?e:[e],...Mx(t)})}function SOe(e){return new xke({type:`transform`,transform:e})}function COe(e){return new Ske({type:`optional`,innerType:e})}function wOe(e){return new Cke({type:`optional`,innerType:e})}function TOe(e){return new wke({type:`nullable`,innerType:e})}function EOe(e,t){return new Tke({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Hxe(t)}})}function DOe(e,t){return new Eke({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Hxe(t)}})}function OOe(e,t){return new Dke({type:`nonoptional`,innerType:e,...Mx(t)})}function kOe(e,t){return new Oke({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:uSe(t)})}function AOe(e,t){return new kke({type:`pipe`,in:e,out:t})}function jOe(e){return new jke({type:`readonly`,innerType:e})}function MOe(e){return new Mke({type:`lazy`,getter:e})}function $S(e,t){return qEe(Nke,e??(()=>!0),t)}function NOe(e,t={}){return JEe(Nke,e,t)}function POe(e,t){return YEe(e,t)}function eC(e,t){return new Ake({type:`pipe`,in:SOe(e),out:t})}var tC,FOe,IOe,nC,LOe,ROe,zOe,BOe,VOe,HOe,rC,UOe,WOe,GOe,KOe,qOe,JOe,YOe,XOe,ZOe,QOe,$Oe,eke,tke,nke,rke,ike,ake,oke,ske,cke,lke,uke,dke,fke,pke,mke,hke,gke,_ke,vke,yke,iC,bke,xke,Ske,Cke,wke,Tke,Eke,Dke,Oke,kke,Ake,jke,Mke,Nke,aC=o((()=>{LS(),ZDe(),AS(),VTe(),QDe(),mOe(),tC=Ux(`ZodType`,(e,t)=>(hOe(),lS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Dx(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return jx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(NOe(e,t))},superRefine(e,t){return this.check(POe(e,t))},overwrite(e){return this.check(wS(e))},optional(){return COe(this)},exactOptional(){return wOe(this)},nullable(){return TOe(this)},nullish(){return COe(TOe(this))},nonoptional(e){return OOe(this,e)},array(){return GS(this)},or(e){return qS([this,e])},and(e){return xOe(this,e)},transform(e){return AOe(this,SOe(e))},default(e){return EOe(this,e)},prefault(e){return DOe(this,e)},catch(e){return kOe(this,e)},pipe(e){return AOe(this,e)},readonly(){return jOe(this)},describe(e){let t=this.clone();return bS.add(t,{description:e}),t},meta(...e){if(e.length===0)return bS.get(this);let t=this.clone();return bS.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return aSe(this,`~standard`,{...ZCe(this),jsonSchema:{input:kS(this,`input`),output:kS(this,`output`)}})},set"~standard"(e){zx(this,`~standard`,e)},parse:function e(t,n){return nOe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await rOe(this,t,n,{callee:e})},safeParse(e,t){return iOe(this,e,t)},async safeParseAsync(e,t){return aOe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){zx(this,`spa`,e)},validate(e,t){return BSe(this,e,t)},validateAsync(e,t){return VSe(this,e,t)},encode:function e(t,n){return oOe(this,t,n,{callee:e})},decode:function e(t,n){return sOe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await cOe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await lOe(this,t,n,{callee:e})},safeEncode(e,t){return uOe(this,e,t)},safeDecode(e,t){return dOe(this,e,t)},async safeEncodeAsync(e,t){return fOe(this,e,t)},async safeDecodeAsync(e,t){return pOe(this,e,t)},toJSONSchema(e){return cDe(this,{})(e)},get description(){return bS.get(this)?.description},get _def(){return this._zod.def}}),FOe=Ux(`_ZodString`,(e,t)=>{uS.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wDe(e,t,n,r)},oSe({format:e=>jS(e).format??null,minLength:e=>jS(e).minimum??null,maxLength:e=>jS(e).maximum??null},{regex(...e){return this.check(FEe(...e))},includes(...e){return this.check(REe(...e))},startsWith(...e){return this.check(zEe(...e))},endsWith(...e){return this.check(BEe(...e))},min(...e){return this.check(CS(...e))},max(...e){return this.check(NEe(...e))},length(...e){return this.check(PEe(...e))},nonempty(...e){return this.check(CS(1,...e))},lowercase(e){return this.check(IEe(e))},uppercase(e){return this.check(LEe(e))},trim(){return this.check(HEe())},normalize(...e){return this.check(VEe(...e))},toLowerCase(){return this.check(UEe())},toUpperCase(){return this.check(WEe())},slugify(){return this.check(GEe())}})),IOe=Ux(`ZodString`,(e,t)=>{uS.init(e,t),FOe.init(e,t)},{email(e){return this.check(YTe(VOe,e))},url(e){return this.check(tEe(UOe,e))},jwt(e){return this.check(gEe(ike,e))},emoji(e){return this.check(nEe(WOe,e))},guid(e){return this.check(XTe(HOe,e))},uuid(e){return this.check(ZTe(rC,e))},uuidv4(e){return this.check(QTe(rC,e))},uuidv6(e){return this.check($Te(rC,e))},uuidv7(e){return this.check(eEe(rC,e))},nanoid(e){return this.check(rEe(GOe,e))},cuid(e){return this.check(iEe(KOe,e))},cuid2(e){return this.check(aEe(qOe,e))},ulid(e){return this.check(oEe(JOe,e))},base64(e){return this.check(pEe(tke,e))},base64url(e){return this.check(mEe(nke,e))},xid(e){return this.check(sEe(YOe,e))},ksuid(e){return this.check(cEe(XOe,e))},ipv4(e){return this.check(lEe(ZOe,e))},ipv6(e){return this.check(uEe(QOe,e))},cidrv4(e){return this.check(dEe($Oe,e))},cidrv6(e){return this.check(fEe(eke,e))},e164(e){return this.check(hEe(rke,e))},datetime(e){return this.check(_Ee(LOe,e))},date(e){return this.check(vEe(ROe,e))},time(e){return this.check(yEe(zOe,e))},duration(e){return this.check(bEe(BOe,e))}}),nC=Ux(`ZodStringFormat`,(e,t)=>{dS.init(e,t),FOe.init(e,t)}),LOe=Ux(`ZodISODateTime`,(e,t)=>{Fwe.init(e,t),nC.init(e,t)}),ROe=Ux(`ZodISODate`,(e,t)=>{Iwe.init(e,t),nC.init(e,t)}),zOe=Ux(`ZodISOTime`,(e,t)=>{Lwe.init(e,t),nC.init(e,t)}),BOe=Ux(`ZodISODuration`,(e,t)=>{Rwe.init(e,t),nC.init(e,t)}),VOe=Ux(`ZodEmail`,(e,t)=>{Twe.init(e,t),nC.init(e,t)}),HOe=Ux(`ZodGUID`,(e,t)=>{Cwe.init(e,t),nC.init(e,t)}),rC=Ux(`ZodUUID`,(e,t)=>{wwe.init(e,t),nC.init(e,t)}),UOe=Ux(`ZodURL`,(e,t)=>{Dwe.init(e,t),nC.init(e,t)}),WOe=Ux(`ZodEmoji`,(e,t)=>{Owe.init(e,t),nC.init(e,t)}),GOe=Ux(`ZodNanoID`,(e,t)=>{kwe.init(e,t),nC.init(e,t)}),KOe=Ux(`ZodCUID`,(e,t)=>{Awe.init(e,t),nC.init(e,t)}),qOe=Ux(`ZodCUID2`,(e,t)=>{jwe.init(e,t),nC.init(e,t)}),JOe=Ux(`ZodULID`,(e,t)=>{Mwe.init(e,t),nC.init(e,t)}),YOe=Ux(`ZodXID`,(e,t)=>{Nwe.init(e,t),nC.init(e,t)}),XOe=Ux(`ZodKSUID`,(e,t)=>{Pwe.init(e,t),nC.init(e,t)}),ZOe=Ux(`ZodIPv4`,(e,t)=>{zwe.init(e,t),nC.init(e,t)}),QOe=Ux(`ZodIPv6`,(e,t)=>{Vwe.init(e,t),nC.init(e,t)}),$Oe=Ux(`ZodCIDRv4`,(e,t)=>{Hwe.init(e,t),nC.init(e,t)}),eke=Ux(`ZodCIDRv6`,(e,t)=>{Uwe.init(e,t),nC.init(e,t)}),tke=Ux(`ZodBase64`,(e,t)=>{Gwe.init(e,t),nC.init(e,t)}),nke=Ux(`ZodBase64URL`,(e,t)=>{Kwe.init(e,t),nC.init(e,t)}),rke=Ux(`ZodE164`,(e,t)=>{qwe.init(e,t),nC.init(e,t)}),ike=Ux(`ZodJWT`,(e,t)=>{Jwe.init(e,t),nC.init(e,t)}),ake=Ux(`ZodNumber`,(e,t)=>{Ywe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>TDe(e,t,n,r),e.isFinite=!0},oSe({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=jS(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=jS(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=jS(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>jS(e).format??null},{gt(e,t){return this.check(jEe(e,t))},gte(e,t){return this.check(SS(e,t))},min(e,t){return this.check(SS(e,t))},lt(e,t){return this.check(AEe(e,t))},lte(e,t){return this.check(xS(e,t))},max(e,t){return this.check(xS(e,t))},int(e){return this.check(gOe(e))},safe(e){return this.check(gOe(e))},positive(e){return this.check(jEe(0,e))},nonnegative(e){return this.check(SS(0,e))},negative(e){return this.check(AEe(0,e))},nonpositive(e){return this.check(xS(0,e))},multipleOf(e,t){return this.check(MEe(e,t))},step(e,t){return this.check(MEe(e,t))},finite(){return this}})),oke=Ux(`ZodNumberFormat`,(e,t)=>{Xwe.init(e,t),ake.init(e,t)}),ske=Ux(`ZodBoolean`,(e,t)=>{Zwe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>EDe(e,t,n,r)}),cke=Ux(`ZodUndefined`,(e,t)=>{Qwe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ODe(e,t,n,r)}),lke=Ux(`ZodNull`,(e,t)=>{$we.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>DDe(e,t,n,r)}),uke=Ux(`ZodAny`,(e,t)=>{eTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ADe(e,t,n,r)}),dke=Ux(`ZodUnknown`,(e,t)=>{tTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jDe(e,t,n,r)}),fke=Ux(`ZodNever`,(e,t)=>{nTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kDe(e,t,n,r)}),pke=Ux(`ZodDate`,(e,t)=>{rTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>MDe(e,t,n,r),e.min=(t,n)=>e.check(SS(t,n)),e.max=(t,n)=>e.check(xS(t,n))},oSe({minDate:e=>{let{minimum:t}=jS(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=jS(e);return t?new Date(t):null}},{})),mke=Ux(`ZodArray`,(e,t)=>{BS(),iTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LDe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(CS(e,t))},nonempty(e){return this.check(CS(1,e))},max(e,t){return this.check(NEe(e,t))},length(e,t){return this.check(PEe(e,t))},unwrap(){return this.element}}),hke=Ux(`ZodObject`,(e,t)=>{BS(),sTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RDe(e,t,n,r),lSe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return XS(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Dx(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Dx(this._zod.def,{catchall:WS()}))},loose(){return this.clone(Dx(this._zod.def,{catchall:WS()}))},strict(){return this.clone(Dx(this._zod.def,{catchall:yOe()}))},strip(){return this.clone(Dx(this._zod.def,{catchall:void 0}))},extend(e){return qxe(this,e)},safeExtend(e){return Yxe(this,e)},merge(e){return Xxe(this,e)},pick(e){return Gxe(this,e)},omit(e){return Kxe(this,e)},partial(...e){return Zxe(Ske,this,e[0])},exactPartial(...e){return Zxe(Cke,this,e[0],`exactPartial`)},required(...e){return Qxe(Dke,this,e[0])}}),gke=Ux(`ZodUnion`,(e,t)=>{cTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zDe(e,t,n,r),e.options=t.options}),_ke=Ux(`ZodDiscriminatedUnion`,(e,t)=>{gke.init(e,t),lTe.init(e,t)}),vke=Ux(`ZodIntersection`,(e,t)=>{uTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BDe(e,t,n,r)}),yke=Ux(`ZodRecord`,(e,t)=>{BS(),dTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VDe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),iC=Ux(`ZodEnum`,(e,t)=>{fTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NDe(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new iC({...t,checks:[],...Mx(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new iC({...t,checks:[],...Mx(r),entries:i})}}),bke=Ux(`ZodLiteral`,(e,t)=>{pTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PDe(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),xke=Ux(`ZodTransform`,(e,t)=>{BS(),mTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IDe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new TSe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Rx(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Rx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),Ske=Ux(`ZodOptional`,(e,t)=>{hTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Cke=Ux(`ZodExactOptional`,(e,t)=>{gTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),wke=Ux(`ZodNullable`,(e,t)=>{_Te.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Tke=Ux(`ZodDefault`,(e,t)=>{vTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Eke=Ux(`ZodPrefault`,(e,t)=>{yTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Dke=Ux(`ZodNonOptional`,(e,t)=>{bTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Oke=Ux(`ZodCatch`,(e,t)=>{xTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),kke=Ux(`ZodPipe`,(e,t)=>{STe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qDe(e,t,n,r),e.in=t.in,e.out=t.out}),Ake=Ux(`ZodPreprocess`,(e,t)=>{kke.init(e,t),CTe.init(e,t)}),jke=Ux(`ZodReadonly`,(e,t)=>{wTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Mke=Ux(`ZodLazy`,(e,t)=>{TTe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),Nke=Ux(`ZodCustom`,(e,t)=>{ETe.init(e,t),tC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FDe(e,t,n,r)})})),Pke,Fke=o((()=>{LS(),Pke||={}}));function Ike(e){return _Ee(LOe,e)}var Lke=o((()=>{LS(),aC()}));function oC(e){return kEe(pke,e)}var Rke=o((()=>{LS(),aC()})),zke=o((()=>{LS(),aC(),QDe(),tOe(),mOe(),Fke(),ZDe(),GTe(),Hx(),QDe(),Lke(),aC(),DTe(),VTe(),Rke()})),sC=o((()=>{zke(),zke()})),cC,Bke,Vke,Hke,Uke,Wke,Gke=o((()=>{sC(),cC=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],Bke=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...cC,`authentication required`,`not logged in`,`please (?:log|sign) in`],signInCommand:`agy`},defaultCommand:`agy`,defaultTopicGroupMode:`byProject`,iconId:`Antigravity`,install:{commands:[],docsUrl:`https://antigravity.google/docs/cli/install/`},kind:`local-cli`,menuKey:`newAntigravityAgent`,menuLabelKey:`newAntigravityAgent`,resume:{supported:!0},title:`Antigravity`,type:`antigravity`},{auth:{docsUrl:`https://ampcode.com/manual`,errorMessage:"Amp could not authenticate. Run `amp login` or configure AMP_API_KEY, then retry.",patterns:[...cC,`please (?:log|sign) in`,`amp_api_key`],signInCommand:`amp login`},defaultCommand:`amp`,defaultTopicGroupMode:`byProject`,iconId:`Amp`,install:{commands:[`curl -fsSL https://ampcode.com/install.sh | bash`,`brew install ampcode/tap/ampcode`],docsUrl:`https://ampcode.com/manual`},kind:`local-cli`,menuKey:`newAmpAgent`,menuLabelKey:`newAmpAgent`,resume:{supported:!0},title:`Amp`,type:`amp`},{auth:{docsUrl:`https://docs.anthropic.com/en/docs/claude-code/setup`,errorMessage:`Claude Code could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:[...cC,`not logged in`],signInCommand:`claude`},defaultCommand:`claude`,defaultTopicGroupMode:`byProject`,iconId:`ClaudeCode`,install:{commands:[`curl -fsSL https://claude.ai/install.sh | bash`,`brew install --cask claude-code`],docsUrl:`https://docs.anthropic.com/en/docs/claude-code/setup`},kind:`local-cli`,menuKey:`newClaudeCodeAgent`,menuLabelKey:`newClaudeCodeAgent`,resume:{supported:!0},title:`Claude Code`,type:`claude-code`},{auth:{docsUrl:`https://www.codebuddy.ai/docs/cli/installation`,errorMessage:"CodeBuddy could not authenticate. Run `codebuddy`, use `/login`, then retry.",patterns:[...cC,`authentication required`,`please use \\/login`,`not logged in`],signInCommand:`codebuddy`},defaultCommand:`codebuddy`,defaultTopicGroupMode:`byProject`,iconId:`CodeBuddy`,install:{commands:[`npm install -g @tencent-ai/codebuddy-code`,`brew install Tencent-CodeBuddy/tap/codebuddy-code`],docsUrl:`https://www.codebuddy.ai/docs/cli/installation`},kind:`local-cli`,menuKey:`newCodeBuddyAgent`,menuLabelKey:`newCodeBuddyAgent`,resume:{supported:!0},title:`CodeBuddy`,type:`codebuddy`},{auth:{docsUrl:`https://github.com/openai/codex#installing-and-running-codex-cli`,errorMessage:`Codex could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:cC,signInCommand:`codex`},defaultCommand:`codex`,defaultTopicGroupMode:`byProject`,iconId:`Codex`,install:{commands:[`npm install -g @openai/codex`,`brew install --cask codex`],docsUrl:`https://github.com/openai/codex#installing-and-running-codex-cli`},kind:`local-cli`,menuKey:`newCodexAgent`,menuLabelKey:`newCodexAgent`,resume:{supported:!0},title:`Codex`,type:`codex`},{auth:{docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli`,errorMessage:"GitHub Copilot CLI could not authenticate. Run `copilot login` in your terminal, then retry.",patterns:[...cC,`authentication required`,`not authenticated`,`not logged in`,`copilot login`,`gh auth login`],signInCommand:`copilot login`},defaultCommand:`copilot`,defaultTopicGroupMode:`byProject`,iconId:`GithubCopilot`,install:{commands:[`curl -fsSL https://gh.io/copilot-install | bash`,`npm install -g @github/copilot`],docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli`},kind:`local-cli`,menuKey:`newCopilotAgent`,menuLabelKey:`newCopilotAgent`,resume:{supported:!0},title:`GitHub Copilot`,type:`copilot`},{auth:{docsUrl:`https://cursor.com/docs/cli/installation`,errorMessage:"Cursor could not authenticate. Run `agent login`, then retry.",patterns:[...cC,`authentication required`,`not logged in`],signInCommand:`agent login`},defaultCommand:`agent`,defaultTopicGroupMode:`byProject`,iconId:`Cursor`,install:{commands:[`curl https://cursor.com/install -fsS | bash`],docsUrl:`https://cursor.com/docs/cli/installation`},kind:`local-cli`,menuKey:`newCursorAgent`,menuLabelKey:`newCursorAgent`,resume:{supported:!0},title:`Cursor`,type:`cursor`},{auth:{docsUrl:`https://docs.factory.ai/cli/getting-started/quickstart`,errorMessage:"Factory Droid could not authenticate. Run `droid` to sign in or configure FACTORY_API_KEY, then retry.",patterns:[...cC,`authentication required`,`factory_api_key`,`device pairing`],signInCommand:`droid`},defaultCommand:`droid`,defaultTopicGroupMode:`byProject`,iconId:`Droid`,install:{commands:[`curl -fsSL https://app.factory.ai/cli | sh`,`irm https://app.factory.ai/cli/windows | iex`],docsUrl:`https://docs.factory.ai/cli/getting-started/quickstart`},kind:`local-cli`,menuKey:`newDroidAgent`,menuLabelKey:`newDroidAgent`,resume:{supported:!0},title:`Factory Droid`,type:`droid`},{auth:{docsUrl:`https://docs.devin.ai/cli/enterprise/devin-auth`,errorMessage:"Devin could not authenticate. Run `devin auth login`, then retry.",patterns:[...cC,`authentication required`,`not logged in`,`devin auth login`],signInCommand:`devin auth login`},defaultCommand:`devin`,defaultTopicGroupMode:`byProject`,iconId:`Devin`,install:{commands:[`curl -fsSL https://cli.devin.ai/install.sh | bash`,`irm https://static.devin.ai/cli/setup.ps1 | iex`],docsUrl:`https://docs.devin.ai/cli`},kind:`local-cli`,menuKey:`newDevinAgent`,menuLabelKey:`newDevinAgent`,resume:{supported:!0},title:`Devin`,type:`devin`},{auth:{docsUrl:`https://docs.x.ai/build/overview`,errorMessage:"Grok Build could not authenticate. Run `grok login`, then retry.",patterns:[...cC,`authentication required`,`no cached auth token found`,`session expired`,"run `grok login`"],signInCommand:`grok login`},defaultCommand:`grok`,defaultTopicGroupMode:`byProject`,iconId:`Grok`,install:{commands:[`curl -fsSL https://x.ai/cli/install.sh | bash`,`irm https://x.ai/cli/install.ps1 | iex`],docsUrl:`https://docs.x.ai/build/overview`},kind:`local-cli`,menuKey:`newGrokBuildAgent`,menuLabelKey:`newGrokBuildAgent`,resume:{supported:!0},title:`Grok Build`,type:`grok-build`},{auth:{docsUrl:`https://moonshotai.github.io/kimi-code/en/`,errorMessage:"Kimi Code could not authenticate. Run `kimi`, use `/login`, then retry.",patterns:[...cC,`no model configured`],signInCommand:`kimi`},defaultCommand:`kimi`,defaultTopicGroupMode:`byProject`,iconId:`Kimi`,install:{commands:[`curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash`,`irm https://code.kimi.com/kimi-code/install.ps1 | iex`],docsUrl:`https://moonshotai.github.io/kimi-code/en/`},kind:`local-cli`,menuKey:`newKimiCodeAgent`,menuLabelKey:`newKimiCodeAgent`,resume:{supported:!0},title:`Kimi Code`,type:`kimi-code`},{auth:{docsUrl:`https://opencode.ai/docs`,errorMessage:`OpenCode could not authenticate. Sign in again or refresh its credentials, then retry.`,patterns:[...cC,`authentication`,`invalid.*(?:credential|token|key)`],signInCommand:`opencode auth login`},defaultCommand:`opencode`,defaultTopicGroupMode:`byProject`,iconId:`OpenCode`,install:{commands:[`curl -fsSL https://opencode.ai/install | bash`],docsUrl:`https://opencode.ai/docs`},kind:`local-cli`,menuKey:`newOpenCodeAgent`,menuLabelKey:`newOpenCodeAgent`,resume:{supported:!0},title:`OpenCode`,type:`opencode`},{auth:{docsUrl:`https://github.com/earendil-works/pi`,errorMessage:"Pi could not authenticate. Run `pi`, use `/login`, then retry.",patterns:[...cC,`invalid (?:authentication )?(?:credentials?|tokens?|api keys?)`],signInCommand:`pi`},defaultCommand:`pi`,defaultTopicGroupMode:`byProject`,iconId:`Pi`,install:{commands:[`npm install -g @earendil-works/pi-coding-agent`],docsUrl:`https://github.com/earendil-works/pi`},kind:`local-cli`,menuKey:`newPiAgent`,menuLabelKey:`newPiAgent`,resume:{supported:!0},title:`Pi`,type:`pi`},{auth:{docsUrl:`https://docs.qoder.com/cli/auth.md`,errorMessage:"Qoder could not authenticate. Run `qodercli login`, then retry.",patterns:[...cC,`not logged in`,`please run \\/login`],signInCommand:`qodercli login`},defaultCommand:`qodercli`,defaultTopicGroupMode:`byProject`,iconId:`Qoder`,install:{commands:[`curl -fsSL https://qoder.com/install | bash`,`npm install -g @qoder-ai/qodercli`],docsUrl:`https://docs.qoder.com/cli/install.md`},kind:`local-cli`,menuKey:`newQoderAgent`,menuLabelKey:`newQoderAgent`,resume:{supported:!0},title:`Qoder`,type:`qoder`},{auth:{docsUrl:`https://docs.volcengine.com/docs/86677/2387326?lang=zh`,errorMessage:`TRAE CLI could not authenticate. Sign in through TRAE Enterprise, then retry.`,patterns:[...cC,`authentication required`,`not logged in`,`please (?:log|sign) in`],signInCommand:`traecli`},defaultCommand:`traecli`,defaultTopicGroupMode:`byProject`,iconId:`Trae`,install:{commands:[],docsUrl:`https://docs.volcengine.com/docs/86677/2387326?lang=zh`},kind:`local-cli`,menuKey:`newTraeAgent`,menuLabelKey:`newTraeAgent`,resume:{supported:!0},title:`TRAE CLI`,type:`trae`}],Vke=Bke.map(({type:e})=>e),XS(Vke),Hke=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],Uke=XS([...Vke,...Hke.map(({type:e})=>e)]),Wke=[{cli:{command:`openclaw`,validation:{helpKeywords:[`Usage: openclaw`],keywords:[`openclaw`],pattern:`^v?\\d+\\.\\d+\\.\\d+(?:[-+][\\dA-Za-z.-]+)?$`},wellKnownHomePaths:[`.openclaw/bin/openclaw`,`.local/bin/openclaw`]},kind:`remote-task`,title:`OpenClaw`,type:`openclaw`},{cli:{command:`hermes`,validation:{keywords:[`hermes`]},wellKnownHomePaths:[`.local/bin/hermes`]},kind:`remote-task`,title:`Hermes`,type:`hermes`}]})),lC,Kke,uC,qke,Jke,Yke,dC,Xke,Zke,Qke,$ke,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,cAe,lAe,uAe,dAe,fAe,pAe,mAe,hAe,gAe,_Ae,vAe,fC,pC,yAe,bAe,xAe,SAe,CAe,wAe,mC,hC,TAe,gC,EAe=o((()=>{Oxe(),lC=`default`,Kke=[`low`,`medium`,`high`,`ultra`],uC=[`low`,`medium`,`high`,`xhigh`,`max`],qke=[`low`,`medium`,`high`,`xhigh`,`max`],Jke=[`low`,`medium`,`high`,`xhigh`],Yke=[`--effort`,`--reasoning-effort`],dC=[`low`,`medium`,`high`,`xhigh`],Xke=[...dC,`max`,`ultra`],Zke=`model_reasoning_effort`,Qke=[`low`,`high`,`max`],$ke=[`high`,`max`],eAe=[...dC,`max`],tAe=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],nAe=[`gpt-6-astra`,`gpt-5.6-luna`],rAe=[`low`,`medium`,`high`,`xhigh`,`max`],iAe=`--reasoning-effort`,aAe=[`low`,`medium`,`high`,`xhigh`,`max`],oAe=`--reasoning-effort`,sAe=`service_tier`,cAe=[`fast`,`priority`],lAe=e=>!!e&&Kke.includes(e),uAe=e=>!!e&&uC.includes(e),dAe=e=>!!e&&Xke.includes(e),fAe=e=>!!e&&Jke.includes(e),pAe=e=>!!e&&rAe.includes(e),mAe=e=>!!e&&aAe.includes(e),hAe=e=>!!e&&cAe.includes(e),gAe=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?Qke:e===`glm-5.2`?$ke:tAe.includes(e)?Xke:nAe.includes(e)?eAe:dC,_Ae=e=>{let t=(xx(e?.args,`--mode`)??e?.mode)?.trim();return lAe(t)?t:lC},vAe=[`-m`,`--model`],fC=e=>{let t=(xx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:lC},pC=e=>{let t=(xx(e?.args,`--effort`)??e?.effort)?.trim();return uAe(t)?t:lC},yAe=e=>{let t=(Sxe(e?.args,vAe)??Sx(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:lC},bAe=e=>{let t=(Sx(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return dAe(t)?t:lC},xAe=e=>{let t=(Sx(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Sx(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:hAe(t)?`fast`:lC},SAe=e=>{let t=(Sxe(e?.args,Yke)??e?.effort)?.trim();return fAe(t)?t:lC},CAe=e=>{let t=(xx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return pAe(t)?t:lC},wAe=e=>{let t=(xx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return mAe(t)?t:lC},mC=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:lC},hC={flags:[`-m`,`--model`],kind:`flag`},TAe={antigravity:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:(e,t)=>t?t.find(t=>t.id===e)?.effortLevels??[]:qke,resolve:pC},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:fC,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:Kke,resolve:_Ae}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>uC,resolve:pC},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:fC,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>uC,resolve:pC},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:fC,source:`catalog`}},codex:{effort:{encodings:[{key:Zke,kind:`config`}],levels:gAe,resolve:bAe},model:{encodings:[hC,{key:`model`,kind:`config`}],resolve:yAe,source:`catalog`},speed:{encodings:[{key:sAe,kind:`config`}],resolve:xAe}},copilot:{effort:{encodings:[{flags:[oAe],kind:`flag`}],levels:()=>aAe,resolve:wAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:mC,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:mC,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:mC,source:`catalog`}},droid:{model:{encodings:[],resolve:mC,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:mC,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:Yke,kind:`flag`}],levels:()=>Jke,resolve:SAe},model:{encodings:[hC],resolve:mC,source:`catalog`}},"kimi-code":{model:{encodings:[hC],resolve:mC,source:`catalog`}},opencode:{model:{encodings:[hC],resolve:mC,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:mC,source:`catalog`}},qoder:{effort:{encodings:[{flags:[iAe],kind:`flag`}],levels:()=>rAe,resolve:CAe},model:{encodings:[hC],resolve:mC,source:`catalog`}},trae:{model:{encodings:[],resolve:mC,source:`catalog`}}},gC=e=>TAe[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),gC(`copilot`),gC(`grok-build`),gC(`kimi-code`),gC(`opencode`),gC(`pi`),gC(`qoder`)})),DAe=o((()=>{})),OAe=o((()=>{Gke(),DAe(),new Set([...Bke.map(({type:e})=>e),...Hke.map(({type:e})=>e),...Wke.map(({type:e})=>e)])})),kAe=o((()=>{})),AAe=o((()=>{})),jAe,MAe,NAe,PAe,FAe=o((()=>{sC(),jAe=KS({workingDirectory:H().optional()}),MAe=KS({memory:KS({effort:XS([`low`,`medium`,`high`]).optional(),enabled:HS().optional(),toolPermission:XS([`read-only`,`read-write`]).optional()}).optional()}),NAe=KS({selfIteration:KS({enabled:HS().optional()}).optional()}),PAe=KS({codexMaxReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:XS([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:XS([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:XS([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:HS().optional(),disableGatewayMode:HS().optional(),effort:XS([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:HS().optional(),enableAgentMode:HS().optional(),toolMode:XS([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:HS().optional(),enableCompressHistory:HS().optional(),enableContextCompression:HS().optional(),enableFollowUpChips:HS().optional(),enableHistoryCount:HS().optional(),enableMaxTokens:HS().optional(),enableReasoning:HS().optional(),enableReasoningEffort:HS().optional(),enableStreaming:HS().optional(),enableStaleToolResultTrim:HS().optional(),gpt5ReasoningEffort:XS([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:XS([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:XS([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:XS([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:XS([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:XS([`high`,`max`]).optional(),glm5_3ReasoningEffort:XS([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:XS([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:XS([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:XS([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:XS([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:XS([`high`,`xhigh`]).optional(),historyCount:VS().optional(),imageAspectRatio:H().optional(),imageAspectRatio2:H().optional(),imageResolution:XS([`1K`,`2K`,`4K`]).optional(),imageResolution2:XS([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:XS([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:jAe.optional(),preserveThinking:HS().optional(),reasoningBudgetToken:VS().optional(),reasoningBudgetToken32k:VS().optional(),reasoningBudgetToken80k:VS().optional(),reasoningEffort:XS([`low`,`medium`,`high`]).optional(),reasoningMode:XS([`standard`,`pro`]).optional(),searchFCModel:KS({model:H(),provider:H()}).optional(),searchMode:XS([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:XS([`low`,`high`]).optional(),skillActivateMode:XS([`auto`,`manual`]).optional(),textVerbosity:XS([`low`,`medium`,`high`]).optional(),thinking:XS([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:VS().optional(),thinkingLevel:XS([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:XS([`low`,`high`]).optional(),thinkingLevel3:XS([`low`,`medium`,`high`]).optional(),thinkingLevel4:XS([`minimal`,`high`]).optional(),thinkingLevel5:XS([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:VS().default(25e3),topicGroupMode:XS([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:HS().optional(),useModelBuiltinSearch:HS().optional()}).merge(MAe).merge(NAe)})),IAe=o((()=>{})),LAe=o((()=>{})),RAe,_C,zAe,BAe,VAe,HAe,UAe,WAe,GAe,KAe,qAe,JAe=o((()=>{RAe=`LobeHub Cloud`,_C=`LobeHub`,zAe=`Lobe AI`,BAe=`LobeHub`,VAe={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},HAe={discord:`https://discord.gg/AYFPHvv2jT`,github:`https://github.com/lobehub`,medium:`https://medium.com/@lobehub`,x:`https://x.com/lobehub`,youtube:`https://www.youtube.com/@lobehub`},UAe={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},WAe={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},GAe=`lobehub`,KAe=`© ${new Date().getFullYear()} ${BAe}`,qAe=`${KAe}. All rights reserved.`})),YAe,XAe,ZAe,vC,yC,QAe,$Ae,eje,tje,nje,rje,ije,aje,oje,sje,cje,lje,uje,dje,fje,pje,mje=o((()=>{YAe=`jev-1.14.0`,XAe=`typesafe`,ZAe=`openai`,vC=`deepseek-v4-flash`,yC=`deepseek`,QAe=`gpt-5.6-luna`,$Ae=`openai`,eje=`decision`,tje=`gpt-6-luna:decision`,nje=`openai`,rje=`gpt-4o-mini-transcribe`,ije=`openai`,aje=`gemini-3-flash-preview`,oje=`google`,sje=`gemini-3.8-flash`,cje=`google`,lje=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],uje=`glm-5.3-flash`,dje=`zhipu`,fje=`deepseek-flash`,pje=`deepseek`})),hje,gje=o((()=>{hje=[]})),_je,vje=o((()=>{_je=`chat_preview`})),yje=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>bje,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>WAe,BRANDING_INBOX_TITLE:()=>zAe,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>_C,BRANDING_PROVIDER:()=>GAe,BRANDING_URL:()=>VAe,BUSINESS_OIDC_CLIENTS:()=>hje,COPYRIGHT:()=>KAe,COPYRIGHT_FULL:()=>qAe,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>lje,DEFAULT_ASR_MODEL:()=>rje,DEFAULT_ASR_PROVIDER:()=>ije,DEFAULT_BOT_WAKE_ENGINE:()=>eje,DEFAULT_BOT_WAKE_MODEL:()=>tje,DEFAULT_BOT_WAKE_PROVIDER:()=>nje,DEFAULT_CHANNEL_ROUTING_MODEL:()=>YAe,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>XAe,DEFAULT_EMBEDDING_PROVIDER:()=>ZAe,DEFAULT_MINI_MODEL:()=>QAe,DEFAULT_MINI_PROVIDER:()=>$Ae,DEFAULT_MODEL:()=>vC,DEFAULT_ONBOARDING_MODEL:()=>aje,DEFAULT_ONBOARDING_PROVIDER:()=>oje,DEFAULT_PROVIDER:()=>yC,DEFAULT_REVIEW_PREDICT_MODEL:()=>sje,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>cje,DEFAULT_VERIFY_MODEL:()=>uje,DEFAULT_VERIFY_PLAN_MODEL:()=>fje,DEFAULT_VERIFY_PLAN_PROVIDER:()=>pje,DEFAULT_VERIFY_PROVIDER:()=>dje,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>UAe,LOBE_CHAT_CLOUD:()=>RAe,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>xje,ORG_NAME:()=>BAe,SOCIAL_URL:()=>HAe,UTM_SOURCE:()=>_je,isOfficialProvider:()=>Sje}),bje,xje,Sje,bC=o((()=>{JAe(),JAe(),mje(),gje(),vje(),bje=`sk-lh-`,xje=`The official provider cannot be disabled.`,Sje=e=>!1})),Cje=o((()=>{bC()})),wje=o((()=>{})),Tje=o((()=>{})),Eje,Dje,Oje=o((()=>{sC(),Eje=XS([`pinned`,`auto`,`disabled`]),Dje=qS([H(),KS({builtinOverride:QS(!0).optional(),identifier:H(),mode:Eje.optional()})])})),kje=o((()=>{sC(),FAe(),Oje(),KS({agencyConfig:$S().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:PAe.optional(),description:H().nullish(),editorData:WS().optional(),fewShots:WS().optional(),marketIdentifier:H().nullish(),metadata:YS(H(),WS()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:GS(H()).optional(),params:YS(H(),WS()).optional(),plugins:GS(Dje).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:GS(H()).optional(),title:H().nullish(),tts:$S().optional(),virtual:HS().nullish(),visibility:XS([`private`,`public`]).optional()})})),Aje=o((()=>{})),jje=o((()=>{})),Mje=o((()=>{})),Nje=o((()=>{})),Pje=o((()=>{})),Fje=o((()=>{OAe(),kAe(),AAe(),FAe(),IAe(),LAe(),Cje(),Oxe(),Gke(),wje(),Tje(),EAe(),kje(),Aje(),Oje(),jje(),Mje(),Nje(),Pje()})),Ije,Lje=o((()=>{Ije=[`mail`,`wallet`,`service`],[...Ije]})),Rje=o((()=>{})),zje=o((()=>{})),Bje,Vje,Hje=o((()=>{sC(),Bje=KS({ciStatus:XS([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:HS().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:VS(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),Vje=KS({environmentId:H().max(255).optional(),git:KS({activeWorktree:H().optional(),autoCreated:HS().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:HS().optional(),github:KS({extraPullRequestCount:VS().optional(),pullRequest:Bje.nullable().optional(),pullRequestStatus:XS([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:HS().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:KS({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:XS([`git`,`github`]).optional(),sessionPath:H().optional()})})),Uje=o((()=>{Hje()})),Wje,Gje=o((()=>{Wje=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),Kje=o((()=>{})),qje=o((()=>{})),Jje=o((()=>{})),Yje=o((()=>{sC(),Uje(),Gje(),Kje(),qje(),Jje(),KS({heteroPermissionMode:XS(Wje).optional(),heteroPlanMode:HS().optional(),repos:GS(H()).optional(),sandboxDrive:XS([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:HS().optional(),sandboxTemporary:HS().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:Vje.optional()})})),Xje,Zje=o((()=>{sC(),Xje=KS({allowDM:HS().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:GS(H()).optional(),personal:HS().optional(),revealDM:HS().optional(),systemPrompt:H().optional()}),KS({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:Xje.nullish(),content:H().nullish(),description:H().nullish(),editorData:YS(H(),US()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:HS().nullish(),title:H().nullish(),visibility:XS([`private`,`public`]).optional()})})),Qje,$je,eMe,tMe=o((()=>{sC(),Qje=XS([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),$je=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),eMe=bOe({allowedEnvVars:GS(H().regex(/^[A-Z_]\w*$/i)).optional(),body:YS(H(),WS()).optional(),delivery:XS([`fetch`,`qstash`]).optional(),eventFields:GS(H()).optional(),fallback:XS([`fetch`,`none`]).optional(),headers:YS(H(),H()).optional(),onError:XS([`continue`,`block`]).optional(),responseHandling:XS([`ignore`,`toolCall`]).optional(),timeout:VS().positive().max(2147483.647).optional(),url:H().min(1).refine(e=>{if(e.includes(`\\`))return!1;if(e.startsWith(`/`)&&!e.startsWith(`//`))return!0;try{let t=new URL(e);return[`http:`,`https:`].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}},`Webhook URL must be HTTP(S) or an application-relative path without credentials`)}).superRefine((e,t)=>{let n=e.responseHandling===`toolCall`;n&&e.delivery===`qstash`&&t.addIssue({code:`custom`,message:`toolCall response handling requires fetch delivery`}),!n&&e.onError===`block`&&t.addIssue({code:`custom`,message:`onError:block requires toolCall response handling`}),n&&(e.eventFields!==void 0||e.body!==void 0)&&t.addIssue({code:`custom`,message:`Control hooks cannot filter or override the event payload`})}),bOe({id:H(),matcher:$je.optional(),type:Qje,webhook:eMe}).superRefine((e,t)=>{e.matcher!==void 0&&![`beforeToolCall`,`afterToolCall`,`onToolCallError`].includes(e.type)&&t.addIssue({code:`custom`,message:`Matchers are only supported for tool events`}),e.webhook.responseHandling===`toolCall`&&![`beforeToolCall`,`afterToolCall`].includes(e.type)&&t.addIssue({code:`custom`,message:`toolCall response handling requires beforeToolCall or afterToolCall`})})})),nMe=o((()=>{sC(),JS(`decision`,[KS({decision:QS(`allow`)}),KS({decision:QS(`deny`),reason:H().optional()})])})),rMe=o((()=>{})),iMe,aMe=o((()=>{iMe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(iMe)})),oMe=o((()=>{})),sMe=o((()=>{})),cMe,lMe,uMe,dMe=o((()=>{cMe={messages:`msg`,threads:`thd`,topics:`tpc`},lMe=`[0-9a-zA-Z]{8,32}`,uMe=e=>RegExp(`^${cMe[e]}_${lMe}$`)})),fMe,pMe,mMe,hMe=o((()=>{sC(),fMe=KS({attribution:XS([`user`,`provider`,`harness`,`system`]).optional(),body:US().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:HS().optional(),httpStatus:VS().optional(),isFallback:HS().optional(),message:H().optional(),numericId:VS().optional(),retryable:HS().optional(),severity:XS([`info`,`warning`,`error`,`critical`]).optional(),type:qS([H(),VS()])}),pMe=KS({content:GS(YS(H(),WS())).optional(),encrypted_content:H().nullish(),id:H(),status:XS([`in_progress`,`completed`,`incomplete`]).optional(),summary:GS(KS({text:H(),type:QS(`summary_text`)})),type:QS(`reasoning`)}).passthrough(),mMe=KS({content:H().optional(),duration:VS().optional(),isMultimodal:HS().optional(),responseItems:GS(pMe).optional(),signature:H().optional()})})),gMe,_Me=o((()=>{gMe=function(e){return e.AgentMeta=`agent_meta`,e.AgentShare=`agent_share`,e.AgentSignal=`agent_signal`,e.Api=`api`,e.Asr=`asr`,e.Bot=`bot`,e.BuilderSuggestion=`builder_suggestion`,e.Chat=`chat`,e.Cli=`cli`,e.ContextCompression=`context_compression`,e.Cron=`cron`,e.Eval=`eval`,e.Expertise=`expertise`,e.FileEmbedding=`file_embedding`,e.FollowUp=`follow_up`,e.GenerationTopicTitle=`generation_topic_title`,e.Goal=`goal`,e.HistorySummary=`history_summary`,e.Image=`image`,e.Inbox=`inbox`,e.InputCompletion=`input_completion`,e.McpEvent=`mcp_event`,e.Memory=`memory`,e.MultimodalAnalysis=`multimodal_analysis`,e.Music=`music`,e.Notify=`notify`,e.Onboarding=`onboarding`,e.Openapi=`openapi`,e.PromptRewrite=`prompt_rewrite`,e.ProviderCheck=`provider_check`,e.Scheduled=`scheduled`,e.Scm=`scm`,e.SemanticSearch=`semantic_search`,e.SignupEmailLLMReview=`signup_email_llm_review`,e.Task=`task`,e.TaskCallback=`task_callback`,e.ThreadTitle=`thread_title`,e.Topic=`topic`,e.TopicAnalysis=`topic_analysis`,e.TopicSummary=`topic_summary`,e.TopicTitle=`topic_title`,e.Translate=`translate`,e.Tts=`tts`,e.Verify=`verify`,e.Video=`video`,e.Webhook=`webhook`,e}({})})),xC,vMe,yMe=o((()=>{sC(),xC=VS().catch(0),vMe=KS({bySource:KS({content:xC,fileContext:xC,reasoning:xC,thoughtSignature:xC,toolCallId:xC,toolCalls:xC,toolDefinition:xC}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:QS(`tokenx`).catch(`tokenx`),messageCount:xC,system:xC,total:xC})})),bMe,xMe,SC,SMe,CMe,wMe,TMe,EMe,DMe,OMe=o((()=>{sC(),bMe=XS([`markdown`,`text`,`xml`]),xMe=KS({endLine:VS().optional(),startLine:VS()}),SC=KS({content:H(),format:bMe.optional(),id:H(),lineRange:xMe.optional(),preview:H().optional(),title:H().optional()}),SMe=SC.extend({anchor:KS({endNodeId:H(),endOffset:VS(),startNodeId:H(),startOffset:VS()}).optional(),pageId:H(),source:QS(`page`),xml:H().optional()}),CMe=SC.extend({filePath:H(),language:H().optional(),side:XS([`additions`,`context`,`deletions`]).optional(),source:QS(`code`),workingDirectory:H().optional()}),wMe=SC.extend({source:QS(`text`)}),TMe=SC.extend({element:KS({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:QS(`element`)}),EMe=SC.extend({identifier:H(),source:QS(`mcpApp`)}),DMe=JS(`source`,[SMe,CMe,wMe,TMe,EMe])})),kMe,AMe=o((()=>{sC(),OMe(),kMe=SC.omit({lineRange:!0}).extend({anchor:KS({endNodeId:H(),endOffset:VS(),startNodeId:H(),startOffset:VS()}).optional(),startLine:VS().optional(),endLine:VS().optional(),pageId:H(),xml:H().optional()})})),jMe,MMe,CC,NMe,PMe,FMe,IMe,LMe,RMe,zMe,BMe,VMe,HMe,UMe,WMe,wC,GMe,KMe=o((()=>{sC(),_Me(),yMe(),OMe(),AMe(),jMe=qS([KS({action:XS([`create`,`update`,`delete`]),changeType:XS([`created`,`updated`]).optional(),targets:GS(KS({taskId:H().optional(),taskIdentifier:H().optional()})),type:QS(`task`)}),KS({args:YS(H(),WS()).optional(),data:WS(),provider:H(),toolName:H(),type:QS(`skill`)}),KS({action:QS(`register`),document:KS({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:XS([`created`,`updated`]),toolName:H()}),type:QS(`document`)}),KS({action:QS(`delete`),document:KS({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:QS(`document`)}),KS({action:QS(`register`),canvas:KS({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:KS({entry:H(),fileCount:VS(),manifestKey:H(),runtimeMajor:VS(),totalSize:VS()})}),type:QS(`canvas`)})]),MMe=KS({apiName:XS([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:YS(H(),WS()),capturedAt:H(),content:H().nullable(),error:WS().optional(),identifier:QS(`lobe-local-system`),result:WS().optional(),snapshotId:H(),state:WS().optional(),success:HS(),toolCallId:H()}),CC=KS({inputCachedTokens:VS().optional(),inputCacheMissTokens:VS().optional(),inputWriteCacheTokens:VS().optional(),inputCachedTextTokens:VS().optional(),inputCachedImageTokens:VS().optional(),inputCachedAudioTokens:VS().optional(),inputCachedVideoTokens:VS().optional(),inputTextTokens:VS().optional(),inputImageTokens:VS().optional(),inputAudioTokens:VS().optional(),inputVideoTokens:VS().optional(),inputCitationTokens:VS().optional(),inputToolTokens:VS().optional(),inputCharacters:VS().optional(),outputTextTokens:VS().optional(),outputImageTokens:VS().optional(),outputAudioTokens:VS().optional(),outputReasoningTokens:VS().optional(),outputVideoTokens:VS().optional(),acceptedPredictionTokens:VS().optional(),rejectedPredictionTokens:VS().optional(),totalInputTokens:VS().optional(),totalOutputTokens:VS().optional(),totalTokens:VS().optional(),cost:VS().optional(),credits:VS().optional()}),NMe=KS({tps:VS().optional(),ttft:VS().optional(),duration:VS().optional(),latency:VS().optional()}),PMe=KS({emoji:H(),count:VS(),users:GS(H())}),FMe=KS({sequence:VS().optional(),sourceToolCallId:H(),sourceToolName:H(),type:XS([`tool-stdout`,`tool-callback`,`task-completion`])}),IMe=KS({identifier:H()}),LMe=KS({agentId:H().optional(),name:H(),status:XS([`completed`,`error`]),threadId:H()}),RMe=KS({identifier:H(),reason:XS([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),zMe=KS({rootOperationId:H().min(1),userMessageId:H().optional()}),BMe=KS({kind:XS([`callAgent`]),visibility:QS(`internal`)}),VMe=KS({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:VS().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),HMe=KS({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),UMe=KS({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),WMe=CC.merge(NMe).extend({botSender:UMe.optional(),externalOrigin:HMe.optional(),agentDispatch:BMe.optional(),agentSender:VMe.optional(),collapsed:HS().optional(),contextAccounting:vMe.optional(),contextSelections:GS(DMe).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:VS().int().positive().optional(),inspectExpanded:HS().optional(),isMultimodal:HS().optional(),isSupervisor:HS().optional(),localSystemToolSnapshots:GS(MMe).optional(),mcpAppSource:IMe.optional(),operationId:H().min(1).optional(),orchestrationRole:XS([`supervisor`,`member`]).optional(),pageSelections:GS(kMe).optional(),performance:NMe.optional(),reactions:GS(PMe).optional(),scope:H().optional(),selectedSkillIds:GS(H()).optional(),selectedToolIds:GS(H()).optional(),signal:FMe.optional(),steer:HS().optional(),subAgentCallback:LMe.optional(),subAgentId:H().optional(),taskCallback:RMe.optional(),toolExecutionTimeMs:VS().optional(),toolResultSuccess:HS().optional(),toolResultStop:HS().optional(),toolWorkRegistration:jMe.optional(),trigger:ZS(gMe).optional(),verifyOperationId:H().optional(),verifyRound:VS().optional(),work:zMe.optional(),usage:CC.optional()}),wC=WMe.omit({agentSender:!0}),GMe=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),qMe,JMe=o((()=>{sC(),KMe(),qMe=WMe.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),KS({editorData:YS(H(),WS()).optional(),metadata:qMe.optional()}),Object.keys(qMe.shape)})),YMe,XMe=o((()=>{sC(),YMe=KS({alt:H(),height:VS().optional(),id:H(),mimeType:H().optional(),ratio:VS().optional(),url:H(),width:VS().optional()})})),ZMe=o((()=>{})),QMe,$Me,eNe,tNe=o((()=>{sC(),QMe=KS({batchId:H().optional(),itemIndex:VS().int().nonnegative().optional(),operationId:H().optional(),runtimeType:XS([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:HS().optional(),resolutionRequestId:H().optional(),skipped:HS().optional(),stepIndex:VS().int().nonnegative().optional(),status:XS([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),$Me=KS({function:KS({arguments:H(),name:H()}),id:H(),type:H()}),eNe=KS({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:QMe.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),nNe=o((()=>{})),rNe=o((()=>{})),TC=o((()=>{hMe(),JMe(),yMe(),OMe(),XMe(),ZMe(),KMe(),AMe(),tNe(),nNe(),rNe()})),iNe,aNe=o((()=>{sC(),iNe=KS({id:H(),similarity:VS()}),KS({id:H(),value:KS({fileChunks:GS(iNe),ragQueryId:H().optional()})})})),oNe,sNe,cNe=o((()=>{sC(),hMe(),tNe(),aNe(),TC(),AMe(),oNe=XS([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),sNe=KS({apiName:H(),arguments:H(),identifier:H(),type:H()}),KS({role:oNe,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:sNe.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:GS(H()).optional(),error:fMe.nullish(),traceId:H().optional(),fileChunks:GS(iNe).optional()}).passthrough(),KS({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:QMe.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:US().optional(),error:US().optional(),clientId:H().optional(),userId:H().optional()})})),lNe,uNe=o((()=>{sC(),lNe=KS({action:XS([`create`,`update`,`delete`]),agentEditable:HS().optional(),resourceType:XS([`document`,`task`])})})),EC,dNe,fNe,pNe,mNe,hNe,gNe=o((()=>{sC(),EC=XS([`never`,`required`,`always`]),dNe=qS([H(),KS({pattern:H(),type:XS([`exact`,`prefix`,`wildcard`,`regex`])})]),fNe=KS({match:YS(H(),dNe).optional(),policy:EC}),pNe=qS([EC,GS(fNe)]),KS({action:XS([`approve`,`reject`,`select`]),data:KS({remember:HS().optional(),selected:qS([H(),GS(H())]).optional()}).optional()}),KS({allowList:GS(H()).optional(),approvalMode:XS([`auto-run`,`allow-list`,`manual`,`headless`])}),mNe=KS({description:H(),match:YS(H(),dNe),policy:EC.optional()}),hNe=GS(mNe),KS({config:pNe.optional(),confirmedHistory:GS(H()).optional(),securityBlacklist:hNe.optional(),toolArgs:YS(H(),US()).optional(),toolKey:H().optional()})})),_Ne=o((()=>{})),DC,vNe,yNe,bNe,OC,xNe,SNe=o((()=>{sC(),uNe(),gNe(),_Ne(),uNe(),DC=KS({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:GS(H()).optional(),title:H()}),vNe=XS([`collapsed`,`expand`,`alwaysExpand`]),yNe=KS({default:EC.optional(),policy:EC.optional(),type:H()}),bNe=qS([pNe,KS({dynamic:yNe})]),OC=KS({defaultTimeoutMs:VS().int().positive().optional(),description:H(),humanIntervention:bNe.optional(),name:H(),ordered:HS().optional(),parameters:YS(H(),US()),renderDisplayControl:vNe.optional(),serializeBy:H().optional(),url:H().optional(),work:lNe.optional()}),xNe=KS({api:GS(OC),deviceClients:GS(XS([`cli`,`desktop`])).optional(),executors:GS(XS([`client`,`server`])).optional(),humanIntervention:bNe.optional(),identifier:H(),meta:DC,systemRole:H(),type:QS(`builtin`).optional()}),KS({discoverable:HS().optional(),hidden:HS().optional(),identifier:H(),manifest:xNe,type:QS(`builtin`)})})),CNe=o((()=>{})),wNe=o((()=>{})),TNe,ENe=o((()=>{sC(),SNe(),TNe=KS({properties:YS(H(),US()),required:GS(H()).optional(),type:QS(`object`)}),KS({$schema:H().optional(),api:GS(OC),connector:KS({id:H(),identifier:H()}).optional(),connectorLinks:KS({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:GS(KS({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:GS(OC).optional(),mcpModelOnlyTools:GS(H()).optional(),meta:DC,openapi:H().optional(),settings:TNe.optional(),systemRole:H().optional(),type:XS([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:KS({height:VS().optional(),mode:XS([`iframe`,`module`]).optional(),url:H(),width:VS().optional()}).optional(),version:H().optional()})})),DNe=o((()=>{})),ONe=o((()=>{})),kNe,ANe=o((()=>{sC(),kNe=KS({description:H().optional(),name:H(),parameters:KS({additionalProperties:HS().optional(),properties:YS(H(),US()),required:GS(H()).optional(),type:QS(`object`)})})})),jNe=o((()=>{SNe(),CNe(),wNe(),gNe(),ENe(),DNe(),ONe(),ANe()})),kC,MNe,NNe,AC,PNe,jC,FNe,MC,NC,PC,INe,LNe,RNe,FC,zNe,BNe,VNe,HNe,IC,UNe,WNe=o((()=>{sC(),kC=1e6,MNe=2e3,NNe=2e3,AC=12e3,PNe=KS({kind:QS(`writing`)}).strict(),jC=KS({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:HS()}).strict(),FNe=KS({errors:GS(jC).max(16),evidenceCount:VS().int().nonnegative().max(kC),failedCount:VS().int().nonnegative().max(kC),succeededCount:VS().int().nonnegative().max(kC)}).strict(),FNe.omit({errors:!0}).strip(),MC=e=>H().trim().min(1).max(e),NC=MC(256),PC=MC(MNe),INe=KS({content:MC(AC),reasoning:PC,tagline:NC}).strict(),LNe=e=>{if(!e||typeof e!=`object`||Array.isArray(e)||!(`salience`in e))return e;let{salience:t,...n}=e;return{...n,rank:n.rank??t}},RNe=eC(LNe,KS({description:PC,rank:VS().int().min(0).max(100),title:NC}).strict()),FC=e=>GS(RNe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),zNe=KS({composition:KS({identities:FC(6),interests:FC(8),lifeStyle:FC(6),social:FC(6),working:FC(6)}).strict(),personaProposal:INe,profile:KS({domains:GS(NC).max(8),description:PC,name:NC,pronoun:NC,roles:GS(NC).max(8),summary:PC,tagline:NC}).strict()}).strict(),KS({analysis:zNe,detailedPersona:INe.optional(),diagnostics:FNe,feedbackRevision:VS().int().nonnegative().max(kC).default(0),generationRevision:VS().int().nonnegative().max(kC).default(0),kind:QS(`proposal`),providers:GS(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),BNe=KS({content:H().trim().min(1).max(NNe),createdAt:H(),revision:VS().int().positive().max(kC)}).strict(),VNe=KS({revision:VS().int().nonnegative().max(kC),turns:GS(BNe).max(16)}).strict(),HNe=KS({completedAt:H().optional(),errors:GS(jC).max(16),failedCount:VS().int().nonnegative().max(kC),revision:VS().int().nonnegative().max(kC),status:XS([`pending`,`running`,`completed`,`failed`]),succeededCount:VS().int().nonnegative().max(kC)}).strict(),IC={detailed:JS(`status`,[KS({status:QS(`running`),updatedAt:H()}).strict(),KS({status:QS(`completed`),updatedAt:H()}).strict(),KS({error:jC,status:QS(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:VS().int().nonnegative().max(kC).default(0),generationRevision:VS().int().nonnegative().max(kC).default(0),sourceFingerprint:H(),updatedAt:H()},UNe=JS(`status`,[KS({...IC,resultMessageId:H().optional(),status:QS(`running`)}).strict(),KS({...IC,resultMessageId:H(),status:QS(`completed`)}).strict(),KS({...IC,error:jC,resultMessageId:H().optional(),status:QS(`failed`)}).strict()]),KS({confirmedAt:H().optional(),feedback:VNe.default({revision:0,turns:[]}),generationRevision:VS().int().nonnegative().max(kC).default(0),id:H(),sources:YS(H().max(64),HNe),writing:UNe.optional()}).strict()})),LC,GNe,KNe=o((()=>{sC(),WNe(),LC={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},GNe=KS({clientMode:HS().optional(),completedAt:H().optional(),duration:VS().optional(),error:US().optional(),model:H().optional(),onboardingUnderstanding:PNe.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:VS().optional(),totalLlmCalls:VS().optional(),totalMessages:VS().optional(),totalTokens:VS().optional(),totalSteps:VS().optional(),totalToolCalls:VS().optional()}),KS({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:GNe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:XS([LC.Continuation,LC.Eval,LC.Standalone,LC.Isolation])})})),qNe,JNe,RC,YNe,zC,XNe,ZNe=o((()=>{sC(),dMe(),TC(),cNe(),jNe(),KNe(),qNe=KS({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:XS([LC.Continuation,LC.Standalone,LC.Isolation])}),JNe=KS({content:H(),metadata:wC.optional(),plugin:KS({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:XS([`assistant`,`tool`]),tool_call_id:H().optional(),tools:GS(eNe).optional()}),RC=e=>H().regex(uMe(e)).optional(),KS({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:KS({agentId:H().optional(),id:RC(`messages`),metadata:YS(H(),WS()).optional().transform(GMe),model:H().optional(),provider:H().optional()}),newThread:qNe.optional(),newTopic:KS({id:RC(`topics`),metadata:$S().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:GS(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:GS(JNe).optional(),newUserMessage:KS({content:H(),contextSelections:GS(DMe).optional(),editorData:YS(H(),WS()).optional(),files:GS(H()).optional(),id:RC(`messages`),metadata:wC.optional(),pageSelections:GS(kMe).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:KS({excludeStatuses:GS(H()).optional(),excludeTriggers:GS(H()).optional(),includeTriggers:GS(H()).optional(),onlyMine:HS().optional()}).optional(),topicPageSize:VS().int().min(1).max(100).optional(),topicId:H().optional()}),YNe=KS({description:H().optional(),name:H(),schema:KS({$defs:US().optional(),additionalProperties:HS().optional(),properties:YS(H(),US()),required:GS(H()).optional(),type:QS(`object`)}),strict:HS().optional()}),KS({metadata:YS(H(),WS()).optional(),messages:GS(US()),model:H(),provider:H(),schema:YNe.optional(),tools:GS(KS({function:kNe,type:QS(`function`)})).optional(),tracing:KS({tracingId:H().uuid().optional()}).catchall(WS()).optional()}),zC=qS([H(),GS(WS()),YS(H(),WS())]),XNe=JS(`type`,[KS({criteria:KS({false:zC,true:zC}).optional(),instructions:zC,type:QS(`boolean`)}),KS({criteria:YS(H(),zC.nullable()),instructions:zC,type:QS(`choice`)}),KS({criteria:GS(zC).min(1),instructions:zC,type:QS(`score`)})]),KS({metadata:YS(H(),WS()).optional(),model:H(),provider:H(),questions:YS(H(),XNe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:zC,tracing:KS({tracingId:H().uuid().optional()}).catchall(WS()).optional()})})),QNe=o((()=>{sC()})),$Ne=o((()=>{})),ePe=o((()=>{})),tPe=o((()=>{})),nPe=o((()=>{})),rPe=o((()=>{})),iPe,aPe=o((()=>{Gke(),iPe=Wke.map(({type:e})=>e),[...Uke.options,...iPe]})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{sPe()})),lPe=o((()=>{})),uPe=o((()=>{})),dPe=o((()=>{})),fPe=o((()=>{})),pPe=o((()=>{})),mPe=o((()=>{})),hPe=o((()=>{})),gPe=o((()=>{})),_Pe=o((()=>{sC(),KS({connected:HS(),cpuCount:VS().int().min(1).max(4096),cpuPercent:VS().min(0).max(100).nullable(),diskTotalBytes:VS().int().min(0).nullish(),diskUsedBytes:VS().int().min(0).nullish(),load1:VS().min(0).nullable(),load5:VS().min(0).nullable(),load15:VS().min(0).nullable(),memoryTotalBytes:VS().int().min(0),memoryUsedBytes:VS().int().min(0),observedAt:VS().int().min(0)})})),vPe=o((()=>{})),yPe=o((()=>{})),bPe=o((()=>{})),xPe=o((()=>{})),SPe=o((()=>{})),CPe=o((()=>{})),wPe=o((()=>{})),TPe=o((()=>{})),EPe=o((()=>{vPe(),yPe(),bPe(),xPe(),SPe(),CPe(),wPe(),TPe()})),DPe=o((()=>{sC(),KS({shareId:H(),topicId:H(),visitorUserId:H()})})),OPe=o((()=>{})),kPe=o((()=>{})),APe=o((()=>{DPe(),OPe(),kPe()})),jPe=o((()=>{})),MPe=o((()=>{})),NPe=o((()=>{})),PPe=o((()=>{})),FPe=o((()=>{})),IPe=o((()=>{})),LPe=o((()=>{})),RPe=o((()=>{})),zPe=o((()=>{})),BPe=o((()=>{sC(),KS({ideal:H().optional(),question:H(),referenceFiles:H().or(GS(H())).optional()}),KS({description:H().optional(),knowledgeBaseId:H(),name:H()})})),VPe=o((()=>{})),HPe=o((()=>{})),UPe=o((()=>{})),WPe=o((()=>{sC(),KS({ideal:H().optional(),question:H(),referenceFiles:H().or(GS(H())).optional()}),KS({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),GPe=o((()=>{})),KPe=o((()=>{})),qPe=o((()=>{})),JPe,YPe=o((()=>{sC(),SNe(),JPe=KS({api:GS(OC.pick({name:!0,description:!0,parameters:!0}).strict().refine(e=>!e.name.includes(`____`),`Tool names cannot contain the routing separator`)).min(1),identifier:H().min(1).max(255).refine(e=>!e.includes(`____`),`Tool identifiers cannot contain the routing separator`),meta:DC,systemRole:H().optional(),type:XS([`builtin`,`default`,`markdown`,`mcp`,`standalone`]).optional()}).strict().refine(e=>new Set(e.api.map(e=>e.name)).size===e.api.length,`Tool names must be unique within a contract`),YS(H().min(1).max(255),JPe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),XPe=o((()=>{PPe(),FPe(),IPe(),LPe(),RPe(),zPe(),BPe(),VPe(),HPe(),UPe(),WPe(),GPe(),KPe(),qPe(),YPe()})),ZPe=o((()=>{})),QPe=o((()=>{})),$Pe=o((()=>{})),BC,eFe,tFe=o((()=>{BC={InvalidAccessCode:`InvalidAccessCode`,FreePlanLimit:`FreePlanLimit`,SubscriptionPlanLimit:`SubscriptionPlanLimit`,InsufficientBudgetForModel:`InsufficientBudgetForModel`,WorkspaceFrozenByAdmin:`WorkspaceFrozenByAdmin`,WorkspaceFrozenByRiskControl:`WorkspaceFrozenByRiskControl`,WorkspaceSubscriptionInactive:`WorkspaceSubscriptionInactive`,ShareMessageLimitExceeded:`ShareMessageLimitExceeded`,ShareSpendLimitExceeded:`ShareSpendLimitExceeded`,SharePromptTooLong:`SharePromptTooLong`,ShareHeterogeneousAgentUnsupported:`ShareHeterogeneousAgentUnsupported`,ShareHeteroDeviceUnavailable:`ShareHeteroDeviceUnavailable`,AgentShareProviderNotSupported:`AgentShareProviderNotSupported`,SupervisorDecisionFailed:`SupervisorDecisionFailed`,AgentConcurrencyLimitExceeded:`AgentConcurrencyLimitExceeded`,InsufficientBudgetForAgentRunFee:`InsufficientBudgetForAgentRunFee`,InvalidUserKey:`InvalidUserKey`,CreateMessageError:`CreateMessageError`,LobeHubModelDeprecated:`LobeHubModelDeprecated`,NoOpenAIAPIKey:`NoOpenAIAPIKey`,OllamaServiceUnavailable:`OllamaServiceUnavailable`,PluginFailToTransformArguments:`PluginFailToTransformArguments`,UnknownChatFetchError:`UnknownChatFetchError`,SystemTimeNotMatchError:`SystemTimeNotMatchError`,ServerAgentRuntimeError:`ServerAgentRuntimeError`,DeviceGatewayNotConfigured:`DeviceGatewayNotConfigured`,DeviceResponseTimeout:`DeviceResponseTimeout`,RemoteServerOffline:`RemoteServerOffline`,RemoteServerTimeout:`RemoteServerTimeout`,RemoteServerDNSFailed:`RemoteServerDNSFailed`,RemoteServerConnectionRefused:`RemoteServerConnectionRefused`,RemoteServerCertInvalid:`RemoteServerCertInvalid`,RemoteServerUnreachable:`RemoteServerUnreachable`,BadRequest:400,Unauthorized:401,Forbidden:403,ContentNotFound:404,MethodNotAllowed:405,TooManyRequests:429,InternalServerError:500,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504},eFe=[BC.RemoteServerOffline,BC.RemoteServerTimeout,BC.RemoteServerDNSFailed,BC.RemoteServerConnectionRefused,BC.RemoteServerCertInvalid,BC.RemoteServerUnreachable],new Set(eFe)})),nFe,rFe,iFe=o((()=>{sC(),nFe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),rFe=100,KS({category:H().optional(),filesOnly:HS().optional(),includeContentPreview:HS().optional(),knowledgeBaseId:H().optional(),limit:VS().int().positive().max(rFe).default(50),offset:VS().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:HS().default(!1),sortType:XS([`desc`,`asc`]).optional(),sorter:XS([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:ZS(nFe).optional(),visibility:XS([`private`,`public`]).optional()})})),aFe,oFe=o((()=>{sC(),aFe=KS({shareId:H(),visitorUserId:H()}),KS({agentShare:aFe.optional(),date:H(),dirname:H(),filename:H(),height:VS().optional(),path:H(),ratio:VS().optional(),thumbhash:H().optional(),width:VS().optional()}),KS({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:US().optional(),name:H(),size:VS(),source:H().optional(),url:H().optional()})})),sFe,cFe=o((()=>{iFe(),oFe(),sFe=function(e){return e.Acceptance=`acceptance`,e.AgentDocument=`agent-document`,e.Artboard=`artboard`,e.Canvas=`canvas`,e.ChatAttachment=`chat-attachment`,e.ImageGeneration=`image_generation`,e.Meeting=`meeting`,e.MusicGeneration=`music_generation`,e.PageEditor=`page-editor`,e.Skill=`skill`,e.ToolResult=`tool-result`,e.VideoGeneration=`video_generation`,e}({}),new Set(Object.values(sFe))})),lFe=o((()=>{})),uFe,dFe,fFe,pFe,VC,mFe,hFe,gFe,_Fe,vFe=o((()=>{sC(),uFe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],dFe=[`agentEmoji`,`agentName`,`fullName`],fFe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],pFe=[`agent_identity`,`user_identity`,`discovery`,`summary`],VC=H().trim().transform(e=>e.length>0?e:void 0).optional(),mFe=GS(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),XS(uFe),hFe=XS(dFe),gFe=XS(fFe),KS({agentEmoji:VC,agentName:VC,customInterests:mFe,fullName:VC,interests:mFe}).strict(),_Fe=XS(pFe),KS({discoveryUserMessageCount:VS().optional(),finished:HS(),missingStructuredFields:GS(hFe),phase:_Fe,remainingDiscoveryExchanges:VS().optional(),topicId:H().optional(),version:VS()}).strict(),KS({activeTopicId:H().optional(),discoveryStartUserMessageCount:VS().optional(),finishedAt:H().optional(),version:VS()}).strict(),KS({node:gFe,patch:KS({}).passthrough()}).strict()})),yFe,bFe,xFe=o((()=>{sC(),vFe(),yFe=qS([KS({kind:QS(`onboarding`),phase:_Fe}),KS({kind:QS(`chat`)})]),bFe=KS({model:H().min(1),provider:H().min(1)}),KS({hint:yFe.optional(),modelConfig:bFe,threadId:H().optional(),topicId:H().min(1)})})),SFe=o((()=>{})),CFe=o((()=>{})),wFe=o((()=>{})),TFe=o((()=>{})),HC,EFe,DFe,OFe,kFe,AFe,jFe,MFe,NFe,PFe=o((()=>{sC(),HC=GS(H().trim().min(1)).max(200),EFe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),DFe=eC(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||EFe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),OFe=[`dead_end`,`superseded`,`retry`],kFe=2e3,AFe=KS({kind:XS(OFe),lesson:H().trim().min(1).max(kFe),nodeIds:HC.min(1),reason:H().trim().min(1).max(kFe),title:H().trim().min(1).max(200)}).strict(),jFe=KS({detours:GS(AFe).max(20).default([]),findingIds:HC.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:HC.default([]),title:H().trim().min(1).max(200),workVersionIds:HC.default([])}).strict(),MFe=KS({nodeIds:HC.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),NFe=KS({edgeIds:HC.default([]),nodeIds:HC.min(1)}).strict(),KS({chapters:GS(jFe).min(1).max(30),deliverableWorkId:DFe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:NFe.optional(),nextSteps:GS(MFe).max(20).default([])}).strict()})),FFe=o((()=>{})),IFe=o((()=>{})),LFe=o((()=>{})),RFe=o((()=>{})),zFe,BFe,VFe,HFe=o((()=>{sC(),zFe=KS({apiName:H(),arguments:H(),id:H(),identifier:H(),type:QS(`default`)}),BFe=KS({clientId:H(),content:H(),createdAt:H().optional(),metadata:YS(H(),US()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:KS({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:YS(H(),US()).optional(),provider:H().optional(),reasoning:KS({content:H()}).passthrough().optional(),role:XS([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:GS(zFe).optional(),usage:YS(H(),US()).optional()}),VFe=KS({clientId:H(),messages:GS(BFe),sourceMessageClientId:H().optional(),status:XS([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:XS([`continuation`,`standalone`,`isolation`])}),KS({messages:GS(BFe),metadata:YS(H(),US()).optional(),sessionId:H(),source:XS([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:GS(VFe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),UFe=o((()=>{})),WFe=o((()=>{})),GFe=o((()=>{})),KFe=o((()=>{})),qFe,JFe=o((()=>{qFe=[`triage`,`backlog`,`unstarted`,`started`],[...qFe]})),YFe=o((()=>{})),XFe=o((()=>{})),ZFe=o((()=>{})),QFe=o((()=>{})),$Fe,eIe,tIe=o((()=>{sC(),$Fe=KS({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),eIe=KS({citations:GS(KS({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:GS($Fe).optional(),imageSearchQueries:GS(H()).optional(),searchQueries:GS(H()).optional()})})),nIe=o((()=>{sC(),tIe(),TC(),KS({content:H().optional(),editorData:YS(H(),US()).nullish(),error:fMe.nullish(),imageList:GS(YMe).optional(),metadata:wC.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:mMe.optional(),role:H().optional(),search:eIe.nullish(),toolCalls:GS($Me).optional(),tools:GS(eNe).nullish(),traceId:H().optional(),usage:CC.optional()}).passthrough()})),rIe=o((()=>{QFe(),nIe()})),iIe=o((()=>{})),aIe=o((()=>{})),oIe=o((()=>{})),sIe=o((()=>{})),cIe=o((()=>{iIe(),aIe(),oIe(),cNe(),aNe(),sIe()})),lIe=o((()=>{TC(),rIe(),cIe()})),uIe=o((()=>{sC(),KS({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:GS(H()).optional(),title:H().optional()})})),dIe=o((()=>{})),fIe=o((()=>{})),pIe,mIe=o((()=>{sC(),pIe=KS({accessToken:H().optional(),token:H().optional(),type:XS([`none`,`bearer`,`oauth2`])}).optional(),KS({auth:pIe,headers:YS(H(),H()).optional(),identifier:H(),metadata:KS({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),hIe=o((()=>{})),gIe=o((()=>{mIe(),hIe()})),_Ie=o((()=>{})),vIe=o((()=>{sC(),KS({fileIds:GS(H()).optional(),knowledgeIds:GS(H()).optional(),query:H(),topK:VS().optional()})})),yIe=o((()=>{})),bIe=o((()=>{})),xIe=o((()=>{})),SIe=o((()=>{})),CIe=o((()=>{})),wIe=o((()=>{})),TIe=o((()=>{})),EIe,DIe=o((()=>{EIe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),OIe=o((()=>{TIe(),DIe()})),kIe,AIe,jIe=o((()=>{kIe=`NO_REPLY`,AIe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${kIe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(AIe)})),MIe,NIe=o((()=>{sC(),MIe=KS({name:H(),url:H().url().optional()}),KS({author:qS([H(),MIe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:GS(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),PIe=o((()=>{})),FIe=o((()=>{})),IIe=o((()=>{})),LIe,RIe=o((()=>{LIe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],LIe[0]})),UC,zIe=o((()=>{UC=1440*60*1e3,30*UC,90*UC,7*UC})),BIe=o((()=>{FIe(),IIe(),RIe(),zIe()})),VIe=o((()=>{})),WC,HIe,UIe,WIe,GIe,KIe,qIe,JIe=o((()=>{sC(),WC=XS([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),KS({serverDefaultHeterogeneousProfiles:GS(H().min(1)).optional()}).passthrough(),HIe=KS({audio:HS().optional(),functionCall:HS().optional(),imageOutput:HS().optional(),reasoning:HS().optional(),search:HS().optional(),video:HS().optional(),vision:HS().optional()}),UIe=KS({codexMaxReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:XS([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:XS([`none`,`high`,`max`]).optional(),effort:XS([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:XS([`high`,`max`]).optional(),glm5_3ReasoningEffort:XS([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:XS([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:XS([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:XS([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:XS([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:XS([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:XS([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:XS([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:XS([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:XS([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:XS([`low`,`high`,`max`]).optional(),opus47Effort:XS([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:XS([`low`,`medium`,`high`]).optional(),reasoningMode:XS([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:XS([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:XS([`low`,`high`]).optional(),thinkingLevel:XS([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:XS([`low`,`high`]).optional(),thinkingLevel3:XS([`low`,`medium`,`high`]).optional(),thinkingLevel4:XS([`minimal`,`high`]).optional(),thinkingLevel5:XS([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(UIe.shape),WIe=XS(`reasoningBudgetToken.reasoningBudgetToken32k.reasoningBudgetToken80k.enableReasoning.preserveThinking.enableAdaptiveThinking.disableContextCaching.effort.deepseekV4GAReasoningEffort.deepseekV4ReasoningEffort.qwen38ReasoningEffort.reasoningEffort.reasoningMode.gpt5ReasoningEffort.gpt5_1ReasoningEffort.gpt5_2ReasoningEffort.gpt5_2ProReasoningEffort.gpt5_6ReasoningEffort.gpt6ReasoningEffort.glm5_2ReasoningEffort.glm5_3ReasoningEffort.grok4_20ReasoningEffort.grok4_3ReasoningEffort.grok4_5ReasoningEffort.grok4_6ReasoningEffort.grok4_7ReasoningEffort.hy3ReasoningEffort.kimiK3ReasoningEffort.ring2_6ReasoningEffort.codexMaxReasoningEffort.opus47Effort.step3_5ReasoningEffort.textVerbosity.thinking.thinkingBudget.thinkingLevel.thinkingLevel2.thinkingLevel3.thinkingLevel4.thinkingLevel5.imageAspectRatio.imageAspectRatio2.imageResolution.imageResolution2.urlContext`.split(`.`)),GIe=XS([`tool`,`params`,`internal`]),KIe=XS([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),qIe=KS({disabledParams:GS(KIe).optional(),extendParams:GS(WIe).optional(),searchImpl:GIe.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),KS({abilities:HIe.optional(),contextWindowTokens:VS().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:qIe.optional(),type:WC.optional()}),KS({abilities:HIe.optional(),config:KS({deploymentName:H().optional()}).optional(),contextWindowTokens:VS().nullish(),displayName:H().nullish(),settings:qIe.optional(),type:WC.optional()}),KS({enabled:HS(),id:H(),providerId:H(),source:XS([`builtin`,`custom`,`remote`]).optional(),type:WC.optional()})})),YIe,GC,XIe,ZIe,QIe,$Ie,eLe,tLe,nLe=o((()=>{JIe(),sC(),Uje(),Gje(),YIe=KS({claimedAt:H(),expiresAt:H(),id:H()}),GC=KS({claim:YIe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),XIe=GC.extend({failedAssistantMessageId:H(),kind:QS(`resume_after_rate_limit`),rateLimit:KS({rateLimitType:H().optional(),resetsAt:VS().optional()}).optional(),resume:KS({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:QS(`heterogeneous_agent`),userMessageId:H()}),ZIe=GC.extend({kind:QS(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),KS({baseBranch:H().min(1).max(1024).optional(),deviceId:H().min(1).max(256),path:H().min(1).max(4096),repoType:XS([`git`,`github`]),sourcePath:H().min(1).max(4096)}),QIe=GC.extend({error:H().optional(),kind:QS(`worktree_start`),operationId:H(),retryable:HS().optional(),userMessageId:H(),waitingForDevice:HS().optional()}),$Ie=JS(`kind`,[XIe,ZIe,QIe]),KS({claim:YIe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:_Oe().optional(),rateLimit:KS({rateLimitType:H().optional(),resetsAt:VS().optional()}).optional(),reason:QS(`rate_limit`),resume:KS({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:QS(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),eLe=KS({boundDeviceId:H().optional(),heteroEffort:$S(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:YS(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:YS(H(),H()).optional(),heteroPermissionMode:XS(Wje).optional(),heteroPermissionModeFallback:XS([`outdatedCli`,`root`]).nullable().optional(),heteroPlanMode:HS().optional(),codexPlanDecision:KS({dismissed:HS(),itemId:H().min(1)}).nullable().optional(),heteroSpeed:XS([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:KS({comment:H().max(500).optional(),rating:XS([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:KS({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:KS({categoryHints:GS(H()),installedAgentIds:GS(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:GS(H()).optional(),skipReason:H().optional(),skippedAgentIds:GS(H()).optional(),status:XS([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:GS(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:XS([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:VS().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:UIe.optional(),repos:GS(H()).optional(),runningOperation:vOe().optional(),taskCallbackReservation:KS({messageId:H(),reservedAt:H()}).nullable().optional(),sandboxDrive:XS([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxWorkingDirectory:H().max(1024).optional(),scheduledRun:$Ie.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:Vje.optional()}),eLe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),tLe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],XS(tLe)})),rLe=o((()=>{VIe(),KNe(),nLe()})),iLe=o((()=>{})),aLe=o((()=>{})),oLe=o((()=>{sC(),KS({currentStep:VS().min(1).max(7).optional(),finishedAt:H().optional(),version:VS()})})),sLe=o((()=>{})),cLe,lLe,uLe=o((()=>{sC(),cLe=KS({checked:HS(),id:H().min(1).max(128),instruction:H().trim().min(1).max(4e3),providerId:H().trim().min(1).max(128),reason:H().trim().min(1).max(1e3),sources:GS(KS({subject:H().trim().min(1).max(500).optional(),title:H().trim().min(1).max(500).optional(),type:H().trim().min(1).max(128),url:H().trim().min(1).max(2048)}).strict()).min(1).max(16),title:H().trim().min(1).max(200)}).strict(),lLe=KS({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:HS()}).strict(),KS({completedAt:H().optional(),createdTaskIds:YS(H().max(128),H().max(512)),errors:GS(lLe).max(16),id:H().min(1).max(512),providerIds:GS(H().min(1).max(128)).max(16),recommendations:GS(cLe).max(48),sourceFingerprint:H().min(1).max(2048),status:XS([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),dLe,fLe,pLe,mLe,hLe=o((()=>{sC(),dLe=KS({docsMerged:HS().optional(),moveSettingsToAvatar:HS().optional(),topic:HS().optional(),uploadFileInKnowledgeBase:HS().optional()}),fLe=KS({enableAgentIdentity:HS().optional(),enableAgentGraphConfig:HS().optional(),enableArtifactDeployment:HS().optional(),enablePageCollab:HS().optional(),enableClaudeCodeSdk:HS().optional(),enableCodexAppServer:HS().optional(),enableDesktopSplitView:HS().optional(),enableHeteroSessionImport:HS().optional(),enableGroupChat:HS().optional(),enableImessage:HS().optional(),enableInputMarkdown:HS().optional(),enableMessageTextSelectionActions:HS().optional(),enableIntegrations:HS().optional(),enableOAuthApps:HS().optional(),enableProjects:HS().optional(),enableSelfLearning:HS().optional(),enableTaskVerify:HS().optional(),enableEvalCapture:HS().optional(),enableTopicBugReport:HS().optional(),enableGoals:HS().optional(),enableTopicAcceptance:HS().optional(),enableDeviceTunnel:HS().optional()}),pLe=KS({acceptOnMerge:HS().optional(),commentOnPrivateRepositories:HS().optional(),commentOnPublicRepositories:HS().optional(),wakeOnCiFailure:HS().optional(),wakeOnReview:HS().optional()}),mLe=KS({github:pLe.optional()}),KS({provider:H(),providerAccountId:H()}),KS({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:dLe.optional(),hideSyncAlert:HS().optional(),integration:mLe.optional(),lab:fLe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:XS([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:GS(H()).optional(),sidebarHiddenGroupIds:GS(H()).optional(),terminalFontFamily:H().optional(),telemetry:HS().nullable(),topicGroupMode:XS([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:HS().optional(),topicSortBy:XS([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:HS().optional(),workspace:KS({order:GS(H()).optional()}).optional()}).partial()})),gLe=o((()=>{})),_Le=o((()=>{})),vLe=o((()=>{})),yLe=o((()=>{})),bLe=o((()=>{})),xLe=o((()=>{})),SLe=o((()=>{})),CLe=o((()=>{})),wLe,KC,TLe=o((()=>{sC(),wLe=YS(H(),YS(H(),HS())),KC=KS({enabled:HS().optional(),items:wLe.optional()}).strict(),KS({content:KS({scheduledTaskSummary:HS().optional()}).strict().optional(),email:KC.optional(),im:KC.extend({platforms:YS(H(),KC.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:KC.optional(),push:KC.optional()}).strict()})),ELe=o((()=>{})),DLe=o((()=>{})),OLe=o((()=>{})),kLe=o((()=>{})),ALe=o((()=>{sC(),gLe(),_Le(),vLe(),yLe(),bLe(),xLe(),SLe(),CLe(),TLe(),ELe(),DLe(),OLe(),kLe(),KS({defaultAgent:US().optional(),general:US().optional(),hotkey:US().optional(),image:US().optional(),keyVaults:US().optional(),languageModel:US().optional(),market:US().optional(),memory:US().optional(),notification:US().optional(),systemAgent:US().optional(),tool:US().optional(),tts:US().optional()}).passthrough().partial()})),jLe=o((()=>{vFe(),oLe(),sLe(),uLe(),hLe(),ALe()})),MLe=o((()=>{})),NLe=o((()=>{})),PLe=o((()=>{})),FLe=o((()=>{})),ILe,LLe=o((()=>{sC(),ILe=XS([`personal`,`professional`,`demographic`]),KS({description:H().optional(),episodicDate:H().optional(),extractedLabels:GS(H()).optional(),labels:YS(H(),US()).optional(),relationship:H().optional(),role:H().optional(),type:ILe.optional(),userMemoryId:H().optional()}),KS({description:H().optional(),episodicDate:H().optional(),extractedLabels:GS(H()).optional(),labels:YS(H(),US()).optional(),relationship:H().optional(),role:H().optional(),type:ILe.optional()})})),RLe,zLe,BLe=o((()=>{RLe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(RLe),zLe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(zLe)})),VLe=o((()=>{})),HLe=o((()=>{})),ULe,WLe,GLe,qC,KLe,qLe,JLe,YLe=o((()=>{ULe=function(e){return e.Aunt=`aunt`,e.Brother=`brother`,e.Classmate=`classmate`,e.Colleague=`colleague`,e.Couple=`couple`,e.Coworker=`coworker`,e.Daughter=`daughter`,e.Father=`father`,e.Friend=`friend`,e.Granddaughter=`granddaughter`,e.Grandfather=`grandfather`,e.Grandmother=`grandmother`,e.Grandson=`grandson`,e.Husband=`husband`,e.Manager=`manager`,e.Mentee=`mentee`,e.Mentor=`mentor`,e.Mother=`mother`,e.Nephew=`nephew`,e.Niece=`niece`,e.Other=`other`,e.Partner=`partner`,e.Self=`self`,e.Sibling=`sibling`,e.Sister=`sister`,e.Son=`son`,e.Spouse=`spouse`,e.Teammate=`teammate`,e.Uncle=`uncle`,e.Wife=`wife`,e}({}),Object.values(ULe),WLe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(WLe),GLe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(GLe),qC=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(qC),KLe=function(e){return e.Activity=`activity`,e.Context=`context`,e.Event=`event`,e.Fact=`fact`,e.Location=`location`,e.Other=`other`,e.People=`people`,e.Preference=`preference`,e.Technology=`technology`,e.Topic=`topic`,e}({}),Object.values(KLe),qLe=function(e){return e.Aborted=`aborted`,e.Cancelled=`cancelled`,e.Completed=`completed`,e.Ongoing=`ongoing`,e.OnHold=`on_hold`,e.Planned=`planned`,e}({}),Object.values(qLe),JLe=function(e){return e.Appointment=`appointment`,e.Call=`call`,e.Celebration=`celebration`,e.Class=`class`,e.Conference=`conference`,e.Errand=`errand`,e.Event=`event`,e.Exercise=`exercise`,e.Meal=`meal`,e.Meeting=`meeting`,e.Other=`other`,e.ProjectSession=`project-session`,e.Social=`social`,e.Task=`task`,e.Trip=`trip`,e.Workshop=`workshop`,e}({}),Object.values(JLe)})),XLe=o((()=>{})),JC,ZLe,QLe,$Le,eRe,tRe,nRe,rRe,iRe,aRe,oRe,sRe,cRe,lRe=o((()=>{sC(),YLe(),JC=eC(e=>typeof e==`string`?[e]:e,GS(H().trim().min(1))),ZLe=e=>eC(e=>typeof e==`string`?[e]:e,GS(e)),QLe=XS([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),$Le=KS({activities:VS().int().min(0).optional(),contexts:VS().int().min(0).optional(),experiences:VS().int().min(0).optional(),identities:VS().int().min(0).optional(),preferences:VS().int().min(0).optional()}),eRe=KS({end:oC().optional(),field:QLe.optional(),start:oC().optional()}),tRe=XS([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),nRe=KS({date:oC(),selector:QS(`day`)}),rRe=KS({month:VS().int().min(1).max(12),selector:QS(`month`),year:VS().int().min(1970).max(9999)}),iRe=KS({end:oC().optional(),selector:QS(`range`),start:oC().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),aRe=KS({selector:QS(`year`),year:VS().int().min(1970).max(9999)}),oRe=XS([`today`,`yesterday`]),sRe=MOe(()=>qS([KS({selector:tRe}),nRe,rRe,KS({anchor:qS([oRe,sRe]),offsetDays:VS().int(),selector:QS(`relativeDay`)}),iRe,aRe])),KS({categories:JC.optional(),effort:XS([`low`,`medium`,`high`]).optional(),labels:JC.optional(),layers:ZLe(ZS(qC)).optional(),queries:JC.optional(),relationships:JC.optional(),status:JC.optional(),tags:JC.optional(),timeIntent:sRe.optional(),timeRange:eRe.optional(),topK:$Le.optional(),types:JC.optional()}),cRe=XS([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),KS({include:ZLe(cRe).optional(),layers:GS(ZS(qC)).optional(),limit:VS().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:eRe.optional()})})),uRe=o((()=>{})),dRe=o((()=>{MLe(),NLe(),PLe(),FLe(),LLe(),BLe(),VLe(),HLe(),YLe(),XLe(),lRe(),uRe()})),fRe=o((()=>{})),pRe=o((()=>{})),mRe=o((()=>{pRe()})),hRe=o((()=>{})),gRe=o((()=>{})),_Re=o((()=>{hRe(),gRe()})),vRe,yRe=o((()=>{vRe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(vRe).flatMap(([e,t])=>t.map(t=>[t,e])))})),bRe=o((()=>{})),xRe=o((()=>{sC(),KS({start:VS().finite().nonnegative()}).strict()})),SRe=o((()=>{sC(),KS({preconditions:GS(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:GS(KS({id:H().min(1),name:H().min(1),description:H().optional(),resource:KS({type:XS([`file`,`document`]),id:H().min(1)}).optional(),data:YS(H(),WS()).optional()})).max(100).optional(),steps:GS(KS({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:GS(H()).optional()})).max(200).optional()}).superRefine((e,t)=>{for(let n of[`fixtures`,`steps`]){let r=(e[n]??[]).map(e=>e.id);new Set(r).size!==r.length&&t.addIssue({code:`custom`,message:`Duplicate ${n} ids`,path:[n]})}let n=new Set(e.fixtures?.map(e=>e.id));e.steps?.some(e=>e.fixtureIds?.some(e=>!n.has(e)))&&t.addIssue({code:`custom`,message:`Unknown fixture reference`,path:[`steps`]})})})),YC,CRe,wRe=o((()=>{sC(),YC=KS({height:VS().finite(),width:VS().finite(),x:VS().finite(),y:VS().finite()}),CRe=KS({commit:H().max(200).optional(),context:YS(H().max(100),qS([H().max(500),VS(),HS()])).optional(),env:KS({consoleErrors:GS(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:XS([`change`,`comment`]),region:YC.optional(),regionRefs:GS(KS({box:YC,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:KS({x:VS().finite(),y:VS().finite()}),targets:GS(KS({code:KS({chain:GS(KS({file:H().max(500).optional(),line:VS().int().optional(),name:H().max(200)})).max(5),column:VS().int(),file:H().max(500),line:VS().int()}).optional(),label:H().max(200),rect:YC,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:QS(1),viewport:KS({dpr:VS().positive(),height:VS().finite(),width:VS().finite()})}),KS({anchor:CRe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:KS({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}).optional()}).refine(e=>!(e.parentId&&(e.anchor||e.screenshot)),{message:`A reply cannot carry an anchor or a screenshot`}).refine(e=>!e.anchor||JSON.stringify(e.anchor).length<=32768,{message:`Anchor is too large`}),KS({note:H().trim().max(2e3).optional(),verdict:XS([`accept`,`send_back`])})})),TRe,XC,ZC,QC,ERe,DRe,ORe,kRe,ARe,jRe,MRe,NRe=o((()=>{sC(),wRe(),TRe=[`region`,`element`,`sketch`],XC=VS().finite(),ZC=KS({height:XC,width:XC,x:XC,y:XC}),QC=CRe.shape,ERe=MOe(()=>KS({children:GS(ERe).max(50),rect:ZC,type:XS([`avatar`,`button`,`card`,`image`,`input`,`text`])})),DRe=KS({commit:QC.commit,context:QC.context,env:QC.env}),ORe=KS({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),kRe=KS({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:DRe.optional(),kind:XS(TRe),pageMeta:ORe.optional(),rectDocument:ZC,rectViewport:ZC,regionRefs:QC.regionRefs,regions:GS(ZC).max(6).optional(),routeKey:H().max(500),scroll:KS({x:XC,y:XC}),sketch:GS(ERe).max(50).optional(),targets:QC.targets.optional(),url:H().url().max(2e3),viewport:KS({dpr:VS().positive(),height:XC,width:XC})}),ARe=64*1024,jRe=KS({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),kRe.extend({screenshot:jRe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=ARe,{message:`Mark is too large`}),KS({content:H().trim().min(1).max(4e3).optional(),rectDocument:ZC.optional(),rectViewport:ZC.optional(),regionRefs:QC.regionRefs,regions:GS(ZC).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),KS({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),MRe=[`pass`,`not_fixed`],KS({reason:H().trim().max(2e3).optional(),verdict:XS(MRe)}),KS({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),PRe,FRe,$C,IRe,LRe,RRe,ew,tw,zRe,BRe,VRe=o((()=>{sC(),PRe=[`journey`,`options`,`references`,`other`],FRe=[`html`,`image`,`video`,`decision`],$C=H(),IRe=VS().finite(),LRe=VS().finite().positive(),KS({hash:H().min(1).nullable(),kind:QS(`file`),path:H().min(1)}),RRe=KS({kind:QS(`file`),path:H().min(1)}),ew=H().min(1).optional(),tw=H().min(1),zRe={expected:$C.optional(),groupId:tw.optional(),h:LRe.optional(),pageId:tw.optional(),recommended:HS().optional(),roundId:tw.optional(),source:RRe.optional(),title:$C,type:XS(FRe).optional(),w:LRe.optional(),x:IRe,y:IRe},BRe={desc:$C.optional(),kind:XS(PRe),pageId:tw.optional(),title:$C},JS(`type`,[KS({page:KS({name:$C.min(1)}),ref:ew,type:QS(`addPage`)}),KS({id:tw,patch:KS({name:$C.min(1)}),type:QS(`updatePage`)}),KS({id:tw,type:QS(`removePage`)}),KS({ref:ew,round:KS({batchId:tw.optional(),pageId:tw.optional(),title:$C.min(1)}),type:QS(`addRound`)}),KS({id:tw,patch:KS({title:$C.min(1)}),type:QS(`updateRound`)}),KS({group:KS(BRe),ref:ew,type:QS(`addGroup`)}),KS({id:tw,patch:KS({desc:$C,kind:XS(PRe),title:$C}).partial(),type:QS(`updateGroup`)}),KS({id:tw,type:QS(`removeGroup`)}),KS({board:KS(zRe),ref:ew,type:QS(`addBoard`)}),KS({id:tw,patch:KS({...zRe,groupId:tw.nullable(),roundId:tw.nullable()}).omit({pageId:!0,type:!0}).partial(),type:QS(`updateBoard`)}),KS({id:tw,type:QS(`removeBoard`)}),KS({edge:KS({condition:$C.optional(),from:tw,isDefault:HS().optional(),label:$C.optional(),to:tw}),ref:ew,type:QS(`addEdge`)}),KS({id:tw,type:QS(`removeEdge`)}),KS({boardId:tw,expected:$C,type:QS(`setCheck`)})])})),nw,rw,HRe,URe,WRe=o((()=>{sC(),nw={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},rw=H().min(1).max(nw.maxPathLength+2),HRe=qS([KS({content:H(),path:rw}).strict(),KS({fileRef:H().min(1),path:rw}).strict(),KS({base64:H().min(1),path:rw}).strict(),KS({path:rw,uploaded:QS(!0)}).strict(),KS({fromCanvas:KS({canvasId:H().min(1),version:VS().int().positive().optional()}).strict(),path:rw}).strict()]),GS(KS({path:rw,size:VS().int().nonnegative()}).strict()).min(1).max(nw.maxFiles),URe=KS({newText:H(),oldText:H().min(1),path:rw}).strict(),KS({deletes:GS(rw).max(nw.maxFiles).optional(),edits:GS(URe).max(200).optional(),writes:GS(HRe).max(nw.maxFiles).optional()}).strict()})),GRe=o((()=>{})),KRe=o((()=>{})),qRe=o((()=>{})),JRe=o((()=>{})),YRe=o((()=>{})),XRe=o((()=>{})),ZRe,QRe,iw,$Re,eze,tze,nze,rze,ize,aze=o((()=>{sC(),ZRe=[`new`,`reuse`],QRe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,iw=KS({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),$Re=KS({arguments:YS(H(),WS()),delivery:iw.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),eze=KS({cursor:H().nullable().optional(),deliveryStatus:KS({active:HS().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:VS().nonnegative().optional(),throttled:HS().optional()}).optional(),refreshBefore:Ike({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:HS().optional()}).strict(),tze=KS({scheme:QS(`standard_webhooks`)}).strict(),nze=KS({autoApprove:HS(),delivery:iw.optional(),identifier:H().regex(QRe).optional(),topicMode:XS(ZRe),topicId:H().min(1).optional()}).strict(),rze=KS({}).strict(),ize=KS({scheme:QS(`bearer_token`)}).strict(),JS(`kind`,[KS({kind:QS(`mcp_events`),config:$Re,state:eze,verification:tze}),KS({kind:QS(`generic`),config:nze,state:rze,verification:ize})])})),oze=o((()=>{})),sze=o((()=>{})),cze=o((()=>{})),lze=o((()=>{})),uze=o((()=>{})),dze=o((()=>{})),fze=o((()=>{})),pze=o((()=>{dze(),fze()})),mze=o((()=>{})),hze=o((()=>{})),gze=o((()=>{Fje(),Lje(),Rje(),zje(),Yje(),Zje(),tMe(),nMe(),rMe(),aMe(),oMe(),sMe(),ZNe(),QNe(),$Ne(),ePe(),tPe(),nPe(),rPe(),aPe(),oPe(),cPe(),lPe(),uPe(),dPe(),fPe(),pPe(),mPe(),Uje(),hPe(),gPe(),_Pe(),EPe(),APe(),jPe(),MPe(),dMe(),NPe(),XPe(),ZPe(),QPe(),$Pe(),tFe(),cFe(),lFe(),xFe(),SFe(),CFe(),wFe(),TFe(),PFe(),FFe(),IFe(),LFe(),RFe(),HFe(),UFe(),WFe(),GFe(),KFe(),JFe(),YFe(),XFe(),ZFe(),lIe(),uIe(),dIe(),fIe(),gIe(),_Ie(),vIe(),yIe(),bIe(),xIe(),SIe(),tIe(),CIe(),wIe(),OIe(),jIe(),NIe(),PIe(),BIe(),jNe(),rLe(),iLe(),aLe(),WNe(),jLe(),dRe(),fRe(),mRe(),_Re(),yRe(),bRe(),xRe(),SRe(),wRe(),NRe(),_Me(),VRe(),WRe(),GRe(),KRe(),qRe(),JRe(),Gje(),XRe(),aze(),oze(),sze(),cze(),lze(),uze(),pze(),WNe(),dRe(),mze(),YRe(),hze()})),_ze=o((()=>{})),vze,aw,yze=o((()=>{vze=[`*`,`agent:read`,`agent:write`,`agent:credential:write`,`eval:read`,`eval:write`,`chat:read`,`chat:write`,`model:invoke`,`model:read`,`model:write`,`file:read`,`file:write`,`knowledge:read`,`knowledge:write`,`generation:read`,`generation:write`,`mcp:read`,`mcp:write`,`usage:read`,`workspace:read`,`workspace:write`,`user:read`,`user:write`],new Set(vze),aw=(e,t)=>({read:e,write:t}),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,null),aw(`knowledge:read`,`knowledge:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,null),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`model:read`,`model:write`),aw(`model:read`,`model:write`),aw(`chat:read`,null),aw(`chat:read`,`chat:write`),aw(`knowledge:read`,`knowledge:write`),aw(`model:read`,`model:write`),aw(`agent:read`,null),aw(`knowledge:read`,`knowledge:write`),aw(`knowledge:read`,`knowledge:write`),aw(`knowledge:read`,`knowledge:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`user:read`,`user:write`),aw(`file:read`,`file:write`),aw(`file:read`,`file:write`),aw(`chat:read`,`chat:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`chat:read`,`chat:write`),aw(`knowledge:read`,`knowledge:write`),aw(`knowledge:read`,`knowledge:write`),aw(`agent:read`,`agent:write`),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`agent:read`,`agent:write`),aw(`knowledge:read`,`knowledge:write`),aw(`user:read`,`user:write`),aw(`chat:read`,`chat:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`chat:read`,null),aw(`chat:read`,null),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,`agent:write`),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`chat:read`,`chat:write`),aw(`file:read`,`file:write`),aw(`usage:read`,null),aw(`user:read`,`user:write`),aw(`user:read`,`user:write`),aw(`user:read`,`user:write`),aw(`agent:read`,`agent:write`),aw(`agent:read`,null),aw(`agent:read`,`agent:write`),aw(`workspace:read`,`workspace:write`),aw(`workspace:read`,null),aw(`workspace:read`,null),aw(`workspace:read`,`workspace:write`)})),ow,bze=o((()=>{ow=1024*1024,10*ow,10*ow,10*ow,10*ow,50*ow,50*ow,20*ow,5*ow,20*ow,2*ow,100*ow})),xze=o((()=>{}));function Sze(e){let t=[],n=[];if(e=e.filter(e=>e!==``),e.length===0)return``;if(typeof e[0]!=`string`)throw TypeError(`Url must be a string. Received `+e[0]);let r=wze.test(e[0]);Cze.test(e[0])&&e.length>1&&(e[0]=e.shift()+e[0]),e[0]===`/`&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(cw,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(cw,`$1://`));let i=!1;for(let r=0;r<e.length;r++){let a=e[r];if(typeof a!=`string`)throw TypeError(`Url must be a string. Received `+a);let o=a.startsWith(`/`),s=a.endsWith(`/`);if(r>0&&(a=a.replace(/^[\/]+/,``)),a=r<e.length-1?a.replace(/[\/]+$/,``):a.replace(/[\/]+$/,`/`),a===``){i||=o;continue}t.push(a),n.push(o||i),i=s}let a=``;for(let e=0;e<t.length;e++){let r=t[e];if(e===0){a+=r;continue}let i=t[e-1];if(i&&i.endsWith(`?`)){a+=r;continue}if(i.endsWith(`#`)){a+=(n[e]?`/`:``)+r;continue}a+=`/`+r}a=a.replace(/\/(\?|&|#[^!])/g,`$1`);let o=a.indexOf(`#`),s=o===-1?a:a.slice(0,o),c=o===-1?``:a.slice(o+1),[l,...u]=s.split(/(?:\?|&)+/),d=u.filter(Boolean);return a=l+(d.length>0?`?`:``)+d.join(`&`)+(c&&c.length>0?`#`+c:``),a}function sw(...e){return Sze(Array.from(Array.isArray(e[0])?e[0]:e))}var Cze,cw,wze,Tze=o((()=>{Cze=RegExp(`^[^/:\\d][^/:]*:/*$`),cw=RegExp(`^([^/:\\d][^/:]*):/*`),wze=/^[^/:]+:\d+(?:[/?#]|$)/})),Eze,lw,Dze,Oze,uw,dw,kze,fw,Aze,jze,Mze,Nze,Pze=o((()=>{Tze(),Eze=`https://app.lobehub.com`,lw=`https://lobehub.com`,Dze=lw,Oze=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},uw=`https://github.com/lobehub/lobehub`,sw(uw,`issues/new/choose`),dw=sw(lw,`/docs`),kze=sw(dw,`/usage`),fw=sw(dw,`/self-hosting`),sw(fw,`/server-database`),`${dw}`,sw(kze,`/plugins/development`),sw(fw,`/advanced/upstream-sync`),sw(lw,`blog`),sw(uw,`issues/new/choose`),sw(lw,`/privacy`),sw(lw,`/terms`),Aze=`https://github.com/lobehub/lobe-chat-agents`,sw(Aze,`issues/new`),jze=(e,t)=>`/agent/${e}`,Mze=(e,t,n)=>sw(`/agent`,e,t),Nze=(e,t)=>sw(`/group`,e,t),sw(uw,`releases`),sw(lw,`changelog`),sw(lw,`/downloads`),sw(lw,`/mobile`)})),Fze=o((()=>{Pze()})),Ize=o((()=>{Fze()})),pw,mw=o((()=>{pw=e=>`https://icons.duckduckgo.com/ip3/${e}.ico`})),Lze,Rze=o((()=>{mw(),Lze=[{auth:`oauth`,author:`AgentMail`,category:`automation`,description:`Give agents their own email inboxes to send and receive mail`,icon:pw(`agentmail.to`),identifier:`agentmail`,label:`AgentMail`,url:`https://mcp.agentmail.to/mcp`},{auth:`oauth`,author:`Browserless`,category:`automation`,description:`Drive cloud browsers to browse and act on websites`,icon:pw(`browserless.io`),identifier:`browserless`,label:`Browserless`,url:`https://mcp.browserless.io/mcp`},{auth:`oauth`,author:`IFTTT`,category:`automation`,description:`Run IFTTT applets across your apps and devices`,icon:pw(`ifttt.com`),identifier:`ifttt`,label:`IFTTT`,url:`https://ifttt.com/mcp`},{auth:`oauth`,author:`Make`,category:`automation`,description:`Run your Make scenarios as tools`,icon:pw(`make.com`),identifier:`make`,label:`Make`,url:`https://mcp.make.com`},{auth:`oauth`,author:`Speko`,category:`automation`,description:`Build and run voice AI agents with Speko`,icon:pw(`speko.ai`),identifier:`speko`,label:`Speko`,url:`https://mcp.speko.ai/mcp`},{auth:`oauth`,author:`TinyFish`,category:`automation`,description:`Search and browse websites with TinyFish agents`,icon:pw(`tinyfish.ai`),identifier:`tinyfish`,label:`TinyFish`,url:`https://agent.tinyfish.ai/mcp`},{auth:`oauth`,author:`Zapier`,category:`automation`,description:`Run actions across thousands of apps through your Zapier account`,icon:pw(`zapier.com`),identifier:`zapier`,label:`Zapier`,url:`https://mcp.zapier.com/api/mcp/mcp`}]})),zze,Bze=o((()=>{mw(),zze=[{auth:`oauth`,author:`Algolia`,category:`coding`,description:`Manage Algolia indices, records and search settings`,icon:pw(`algolia.com`),identifier:`algolia`,label:`Algolia`,url:`https://mcp.algolia.com/mcp`},{auth:`oauth`,author:`AppSignal`,category:`coding`,description:`Inspect errors, performance and logs in AppSignal`,icon:pw(`appsignal.com`),identifier:`appsignal`,label:`AppSignal`,url:`https://appsignal.com/api/mcp`},{auth:`none`,author:`AWS Knowledge`,category:`coding`,description:`Search AWS documentation and guidance`,icon:pw(`aws.amazon.com`),identifier:`aws-knowledge`,label:`AWS Knowledge`,url:`https://knowledge-mcp.global.api.aws`},{auth:`oauth`,author:`Base44`,category:`coding`,description:`Build and edit apps in Base44`,icon:pw(`base44.com`),identifier:`base44`,label:`Base44`,url:`https://app.base44.com/mcp`},{auth:`oauth`,author:`Better Stack`,category:`coding`,description:`Check uptime monitors, logs and incidents in Better Stack`,icon:pw(`betterstack.com`),identifier:`betterstack`,label:`Better Stack`,url:`https://mcp.betterstack.com`},{auth:`oauth`,author:`Buildkite`,category:`coding`,description:`Inspect Buildkite pipelines, builds and jobs`,icon:pw(`buildkite.com`),identifier:`buildkite`,label:`Buildkite`,url:`https://mcp.buildkite.com/mcp`},{auth:`none`,author:`Clerk`,category:`coding`,description:`Look up Clerk authentication docs and SDK guidance`,icon:pw(`clerk.com`),identifier:`clerk`,label:`Clerk`,url:`https://mcp.clerk.com/mcp`},{auth:`oauth`,author:`Cloud 66`,category:`coding`,description:`Manage Cloud 66 applications, deploys and servers`,icon:pw(`cloud66.com`),identifier:`cloud66`,label:`Cloud 66`,url:`https://app.cloud66.com/mcp`},{auth:`oauth`,author:`Cloudflare`,category:`coding`,description:`Manage Workers, KV, R2 and D1 in your Cloudflare account`,icon:pw(`cloudflare.com`),identifier:`cloudflare`,label:`Cloudflare`,url:`https://bindings.mcp.cloudflare.com/mcp`},{auth:`none`,author:`Cloudflare`,category:`coding`,description:`Search the Cloudflare developer documentation`,icon:pw(`developers.cloudflare.com`),identifier:`cloudflare-docs`,label:`Cloudflare Docs`,url:`https://docs.mcp.cloudflare.com/mcp`},{auth:`none`,author:`Upstash`,category:`coding`,description:`Fetch up-to-date library documentation and code examples`,icon:pw(`context7.com`),identifier:`context7`,label:`Context7`,url:`https://mcp.context7.com/mcp`},{auth:`none`,author:`Convex`,category:`coding`,description:`Get guidance for building on Convex`,icon:pw(`convex.dev`),identifier:`convex`,label:`Convex`,url:`https://mcp.convex.dev/mcp`},{auth:`oauth`,author:`Datadog`,category:`coding`,description:`Query logs, metrics, monitors and incidents in Datadog`,icon:pw(`datadoghq.com`),identifier:`datadog`,label:`Datadog`,url:`https://mcp.datadoghq.com/api/unstable/mcp-server/mcp`},{auth:`none`,author:`Cognition`,category:`coding`,description:`Ask questions about public GitHub repositories`,icon:pw(`deepwiki.com`),identifier:`deepwiki`,label:`DeepWiki`,url:`https://mcp.deepwiki.com/mcp`},{auth:`oauth`,author:`DigitalOcean`,category:`coding`,description:`Manage DigitalOcean droplets, apps and databases`,icon:pw(`digitalocean.com`),identifier:`digitalocean`,label:`DigitalOcean`,url:`https://mcp.digitalocean.com/mcp`},{auth:`none`,author:`Floot`,category:`coding`,description:`Build and edit web apps in Floot`,icon:pw(`floot.com`),identifier:`floot`,label:`Floot`,url:`https://mcp.floot.com/mcp`},{auth:`oauth`,author:`GitLab`,category:`coding`,description:`Search projects, issues and merge requests on GitLab`,icon:pw(`gitlab.com`),identifier:`gitlab`,label:`GitLab`,url:`https://gitlab.com/api/v4/mcp`},{auth:`oauth`,author:`Grafana Labs`,category:`coding`,description:`Search dashboards, query data sources and inspect alerts in Grafana Cloud`,icon:pw(`grafana.com`),identifier:`grafana`,label:`Grafana`,url:`https://mcp.grafana.com/mcp`},{auth:`oauth`,author:`Hostinger`,category:`coding`,description:`Manage Hostinger hosting, domains and DNS`,icon:pw(`hostinger.com`),identifier:`hostinger`,label:`Hostinger`,url:`https://mcp.hostinger.com`},{auth:`oauth`,author:`incident.io`,category:`coding`,description:`Review and manage incidents, alerts and on-call in incident.io`,icon:pw(`incident.io`),identifier:`incident-io`,label:`incident.io`,url:`https://mcp.incident.io/mcp`},{auth:`oauth`,author:`LaunchDarkly`,category:`coding`,description:`Manage feature flags and experiments in LaunchDarkly`,icon:pw(`launchdarkly.com`),identifier:`launchdarkly`,label:`LaunchDarkly`,url:`https://mcp.launchdarkly.com/mcp`},{auth:`oauth`,author:`Lovable`,category:`coding`,description:`Build apps from prompts in Lovable`,icon:pw(`lovable.dev`),identifier:`lovable`,label:`Lovable`,url:`https://mcp.lovable.dev`},{auth:`oauth`,author:`Neon`,category:`coding`,description:`Manage Neon Postgres projects, branches and queries`,icon:pw(`neon.tech`),identifier:`neon`,label:`Neon`,url:`https://mcp.neon.tech/mcp`},{auth:`oauth`,author:`Netlify`,category:`coding`,description:`Create, deploy and manage Netlify sites`,icon:pw(`netlify.com`),identifier:`netlify`,label:`Netlify`,url:`https://netlify-mcp.netlify.app/mcp`},{auth:`oauth`,author:`Postman`,category:`coding`,description:`Work with Postman workspaces, collections and APIs`,icon:pw(`postman.com`),identifier:`postman`,label:`Postman`,url:`https://mcp.postman.com/mcp`},{auth:`oauth`,author:`Prisma`,category:`coding`,description:`Manage Prisma Postgres databases and migrations`,icon:pw(`prisma.io`),identifier:`prisma`,label:`Prisma`,url:`https://mcp.prisma.io/mcp`},{auth:`oauth`,author:`Railway`,category:`coding`,description:`Deploy and manage services and environments on Railway`,icon:pw(`railway.com`),identifier:`railway`,label:`Railway`,url:`https://mcp.railway.com`},{auth:`oauth`,author:`Sanity`,category:`coding`,description:`Query and edit content documents in Sanity`,icon:pw(`sanity.io`),identifier:`sanity`,label:`Sanity`,url:`https://mcp.sanity.io`},{auth:`oauth`,author:`Sentry`,category:`coding`,description:`Look up issues, errors and releases in your Sentry projects`,icon:pw(`sentry.io`),identifier:`sentry`,label:`Sentry`,url:`https://mcp.sentry.dev/mcp`},{auth:`oauth`,author:`SonarQube Cloud`,category:`coding`,description:`Review code quality and security issues in SonarQube Cloud`,icon:pw(`sonarsource.com`),identifier:`sonarqube`,label:`SonarQube Cloud`,url:`https://api.sonarcloud.io/mcp`},{auth:`oauth`,author:`Statsig`,category:`coding`,description:`Manage feature gates and experiments in Statsig`,icon:pw(`statsig.com`),identifier:`statsig`,label:`Statsig`,url:`https://api.statsig.com/v3/mcp`},{auth:`oauth`,author:`Turso`,category:`coding`,description:`Manage Turso Cloud databases`,icon:pw(`turso.tech`),identifier:`turso`,label:`Turso`,url:`https://mcp.turso.ai/mcp`},{auth:`none`,author:`Twilio Docs`,category:`coding`,description:`Search Twilio API documentation`,icon:pw(`twilio.com`),identifier:`twilio-docs`,label:`Twilio Docs`,url:`https://mcp.twilio.com/docs`},{auth:`oauth`,author:`Wix`,category:`coding`,description:`Manage Wix sites and look up Wix developer docs`,icon:pw(`wix.com`),identifier:`wix`,label:`Wix`,url:`https://mcp.wix.com/mcp`},{auth:`oauth`,author:`WorkOS`,category:`coding`,description:`Administer WorkOS auth and SSO`,icon:pw(`workos.com`),identifier:`workos`,label:`WorkOS`,url:`https://mcp.workos.com/mcp`},{auth:`oauth`,author:`WPVibe`,category:`coding`,description:`Manage self-hosted WordPress sites with WPVibe`,icon:pw(`wpvibe.ai`),identifier:`wpvibe`,label:`WPVibe`,url:`https://mcp.wpvibe.ai/mcp`}]})),Vze,Hze=o((()=>{mw(),Vze=[{auth:`oauth`,author:`2Chat`,category:`communication`,description:`Send WhatsApp, SMS and voice messages from your 2Chat numbers`,icon:pw(`2chat.co`),identifier:`2chat`,label:`2Chat`,url:`https://mcp.2chat.io/mcp`},{auth:`oauth`,author:`Allo`,category:`communication`,description:`Make calls and send texts from your Allo business line`,icon:pw(`withallo.com`),identifier:`allo`,label:`Allo`,url:`https://mcp.withallo.com/mcp`},{auth:`oauth`,author:`Ando`,category:`communication`,description:`Chat with your team and agents in Ando`,icon:pw(`ando.so`),identifier:`ando`,label:`Ando`,url:`https://mcp.ando.so/mcp`},{auth:`oauth`,author:`Bird`,category:`communication`,description:`Send email, SMS and WhatsApp messages through Bird`,icon:pw(`bird.com`),identifier:`bird`,label:`Bird`,url:`https://mcp.bird.com`},{auth:`oauth`,author:`Quo`,category:`communication`,description:`Make calls and send texts from your Quo business number`,icon:pw(`quo.com`),identifier:`quo`,label:`Quo`,url:`https://mcp.quo.com/mcp`},{auth:`oauth`,author:`Restream`,category:`communication`,description:`Manage live streams and recordings in Restream`,icon:pw(`restream.io`),identifier:`restream`,label:`Restream`,url:`https://mcp.restream.io/mcp`}]})),Uze,Wze=o((()=>{mw(),Uze=[{auth:`oauth`,author:`Adobe Analytics`,category:`data`,description:`Pull Adobe Analytics reports, metrics and segments`,icon:pw(`business.adobe.com`),identifier:`adobe-analytics`,label:`Adobe Analytics`,url:`https://aa-mcp.adobe.io/mcp`},{auth:`oauth`,author:`Adspirer`,category:`data`,description:`Report on ad campaigns across your ad accounts`,icon:pw(`adspirer.com`),identifier:`adspirer`,label:`Adspirer`,url:`https://mcp.adspirer.com/mcp`},{auth:`oauth`,author:`Amplitude`,category:`data`,description:`Query charts, events and user analytics in Amplitude`,icon:pw(`amplitude.com`),identifier:`amplitude`,label:`Amplitude`,url:`https://mcp.amplitude.com/mcp`},{auth:`oauth`,author:`Artie`,category:`data`,description:`Monitor real-time database replication pipelines in Artie`,icon:pw(`artie.com`),identifier:`artie`,label:`Artie`,url:`https://mcp.artie.com/mcp`},{auth:`oauth`,author:`Atlan`,category:`data`,description:`Search data assets, owners and lineage in Atlan`,icon:pw(`atlan.com`),identifier:`atlan`,label:`Atlan`,url:`https://mcp.atlan.com/mcp`},{auth:`oauth`,author:`Clarify`,category:`data`,description:`Explore industrial time-series data in Clarify`,icon:pw(`clarify.io`),identifier:`clarify`,label:`Clarify`,url:`https://mcp.clarify.io/mcp`},{auth:`oauth`,author:`ClickHouse`,category:`data`,description:`Explore and query ClickHouse Cloud services`,icon:pw(`clickhouse.com`),identifier:`clickhouse`,label:`ClickHouse`,url:`https://mcp.clickhouse.cloud/mcp`},{auth:`oauth`,author:`Helium 10`,category:`data`,description:`Research Amazon products and keywords with Helium 10`,icon:pw(`helium10.com`),identifier:`helium10`,label:`Helium 10`,url:`https://mcp.helium10.com/mcp`},{auth:`oauth`,author:`Hex`,category:`data`,description:`Search and run Hex projects and data analyses`,icon:pw(`hex.tech`),identifier:`hex`,label:`Hex`,url:`https://app.hex.tech/mcp`},{auth:`oauth`,author:`Metricool`,category:`data`,description:`Analyze and plan social media with Metricool`,icon:pw(`metricool.com`),identifier:`metricool`,label:`Metricool`,url:`https://ai.metricool.com/mcp`},{auth:`oauth`,author:`Mixpanel`,category:`data`,description:`Query events, funnels and retention in Mixpanel`,icon:pw(`mixpanel.com`),identifier:`mixpanel`,label:`Mixpanel`,url:`https://mcp.mixpanel.com/mcp`},{auth:`oauth`,author:`Northbeam`,category:`data`,description:`Pull marketing attribution data from Northbeam`,icon:pw(`northbeam.io`),identifier:`northbeam`,label:`Northbeam`,url:`https://mcp.northbeam.io`},{auth:`oauth`,author:`Profound`,category:`data`,description:`Track brand visibility in AI search with Profound`,icon:pw(`tryprofound.com`),identifier:`profound`,label:`Profound`,url:`https://mcp.tryprofound.com/mcp`},{auth:`oauth`,author:`Ryze AI`,category:`data`,description:`Analyze ad campaign performance with Ryze AI`,icon:pw(`get-ryze.ai`),identifier:`ryze`,label:`Ryze AI`,url:`https://connector.get-ryze.ai/mcp`},{auth:`oauth`,author:`Tableau`,category:`data`,description:`Query Tableau Cloud data sources and views`,icon:pw(`tableau.com`),identifier:`tableau`,label:`Tableau`,url:`https://mcp.tableau.com`},{auth:`oauth`,author:`Windsor.ai`,category:`data`,description:`Pull marketing data from many sources with Windsor.ai`,icon:pw(`windsor.ai`),identifier:`windsor`,label:`Windsor.ai`,url:`https://mcp.windsor.ai`}]})),Gze,Kze=o((()=>{mw(),Gze=[{auth:`oauth`,author:`21st`,category:`design`,description:`Find React UI components and add them to your project`,icon:pw(`21st.dev`),identifier:`21st`,label:`21st`,url:`https://21st.dev/api/mcp`},{auth:`oauth`,author:`Canva`,category:`design`,description:`Search, create and edit designs in Canva`,icon:pw(`canva.com`),identifier:`canva`,label:`Canva`,url:`https://mcp.canva.com/mcp`},{auth:`oauth`,author:`Cartesia`,category:`design`,description:`Generate speech and manage voices with Cartesia`,icon:pw(`cartesia.ai`),identifier:`cartesia`,label:`Cartesia`,url:`https://mcp.cartesia.ai/mcp`},{auth:`oauth`,author:`Cloudinary`,category:`design`,description:`Manage and transform image and video assets in Cloudinary`,icon:pw(`cloudinary.com`),identifier:`cloudinary`,label:`Cloudinary`,url:`https://asset-management.mcp.cloudinary.com/mcp`},{auth:`oauth`,author:`Eden`,category:`design`,description:`Organize creator content and posts in Eden`,icon:pw(`eden.so`),identifier:`eden`,label:`Eden`,url:`https://mcp.eden.so/mcp`},{auth:`oauth`,author:`ElevenLabs`,category:`design`,description:`Generate speech, voices and voice agents with ElevenLabs`,icon:pw(`elevenlabs.io`),identifier:`elevenlabs`,label:`ElevenLabs`,url:`https://api.elevenlabs.io/v1/mcp`},{auth:`none`,author:`Excalidraw`,category:`design`,description:`Sketch hand-drawn diagrams with Excalidraw`,icon:pw(`excalidraw.com`),identifier:`excalidraw`,label:`Excalidraw`,url:`https://mcp.excalidraw.com/mcp`},{auth:`oauth`,author:`Higgsfield`,category:`design`,description:`Generate images, videos and audio with Higgsfield`,icon:pw(`higgsfield.ai`),identifier:`higgsfield`,label:`Higgsfield`,url:`https://mcp.higgsfield.ai/mcp`},{auth:`oauth`,author:`Magic Patterns`,category:`design`,description:`Generate UI prototypes with Magic Patterns`,icon:pw(`magicpatterns.com`),identifier:`magicpatterns`,label:`Magic Patterns`,url:`https://mcp.magicpatterns.com/mcp`},{auth:`oauth`,author:`Magnific`,category:`design`,description:`Upscale and generate images and video with Magnific`,icon:pw(`magnific.com`),identifier:`magnific`,label:`Magnific`,url:`https://mcp.magnific.com`},{auth:`oauth`,author:`Miro`,category:`design`,description:`Read and create content on Miro boards`,icon:pw(`miro.com`),identifier:`miro`,label:`Miro`,url:`https://mcp.miro.com/`},{auth:`oauth`,author:`Mobbin`,category:`design`,description:`Browse real app UI references on Mobbin`,icon:pw(`mobbin.com`),identifier:`mobbin`,label:`Mobbin`,url:`https://api.mobbin.com/mcp`},{auth:`oauth`,author:`Mural`,category:`design`,description:`Work with Mural canvases, stickies and diagrams`,icon:pw(`mural.co`),identifier:`mural`,label:`Mural`,url:`https://mcp-canvas.mural.co/mcp`},{auth:`oauth`,author:`Omneky`,category:`design`,description:`Generate ad creatives with Omneky`,icon:pw(`omneky.com`),identifier:`omneky`,label:`Omneky`,url:`https://mcp.omneky.com/mcp`},{auth:`oauth`,author:`OpusClip`,category:`design`,description:`Turn long videos into short clips with OpusClip`,icon:pw(`opus.pro`),identifier:`opusclip`,label:`OpusClip`,url:`https://mcp.opus.pro/mcp`},{auth:`oauth`,author:`Refero`,category:`design`,description:`Browse UI design references on Refero`,icon:pw(`refero.design`),identifier:`refero`,label:`Refero`,url:`https://api.refero.design/mcp`},{auth:`oauth`,author:`Riverside`,category:`design`,description:`Work with Riverside recordings, clips and transcripts`,icon:pw(`riverside.com`),identifier:`riverside`,label:`Riverside`,url:`https://mcp.riverside.com/mcp`},{auth:`oauth`,author:`Runway`,category:`design`,description:`Generate images and video with Runway`,icon:pw(`runway.com`),identifier:`runway`,label:`Runway`,url:`https://mcp.runwayml.com/mcp`},{auth:`oauth`,author:`Sunra`,category:`design`,description:`Generate images, video, audio and 3D with Sunra`,icon:pw(`sunra.ai`),identifier:`sunra`,label:`Sunra`,url:`https://mcp.sunra.ai`},{auth:`oauth`,author:`VideoGen`,category:`design`,description:`Create videos with VideoGen`,icon:pw(`videogen.io`),identifier:`videogen`,label:`VideoGen`,url:`https://mcp.videogen.io/mcp`},{auth:`oauth`,author:`Webflow`,category:`design`,description:`Manage Webflow sites, pages and CMS collections`,icon:pw(`webflow.com`),identifier:`webflow`,label:`Webflow`,url:`https://mcp.webflow.com/mcp`}]})),qze,Jze=o((()=>{mw(),qze=[{auth:`oauth`,author:`Coda`,category:`documents`,description:`Read and update Coda docs and tables`,icon:pw(`coda.io`),identifier:`coda`,label:`Coda`,url:`https://coda.io/apis/mcp`},{auth:`oauth`,author:`Craft`,category:`documents`,description:`Read and write Craft docs, notes and tasks`,icon:pw(`craft.do`),identifier:`craft`,label:`Craft`,url:`https://mcp.craft.do/my/mcp`},{auth:`oauth`,author:`Evernote`,category:`documents`,description:`Search and create notes and notebooks in Evernote`,icon:pw(`evernote.com`),identifier:`evernote`,label:`Evernote`,url:`https://mcp.evernote.com/mcp`},{auth:`oauth`,author:`GitBook`,category:`documents`,description:`Search and read your GitBook documentation spaces`,icon:pw(`gitbook.com`),identifier:`gitbook`,label:`GitBook`,url:`https://mcp.gitbook.com/mcp`},{auth:`oauth`,author:`Guru`,category:`documents`,description:`Search company knowledge in Guru`,icon:pw(`getguru.com`),identifier:`guru`,label:`Guru`,url:`https://mcp.api.getguru.com/mcp`},{auth:`oauth`,author:`Lark`,category:`documents`,description:`Work with Lark docs and team messages`,icon:pw(`larksuite.com`),identifier:`lark`,label:`Lark`,url:`https://mcp.larksuite.com/mcp`},{auth:`oauth`,author:`Mem`,category:`documents`,description:`Search and write notes in Mem`,icon:pw(`mem.ai`),identifier:`mem`,label:`Mem`,url:`https://mcp.mem.ai/mcp`},{auth:`oauth`,author:`PandaDoc`,category:`documents`,description:`Create documents, proposals and e-signatures in PandaDoc`,icon:pw(`pandadoc.com`),identifier:`pandadoc`,label:`PandaDoc`,url:`https://mcp.pandadoc.com/v1/mcp`},{auth:`oauth`,author:`Raindrop.io`,category:`documents`,description:`Save and search bookmarks and highlights in Raindrop.io`,icon:pw(`raindrop.io`),identifier:`raindrop`,label:`Raindrop.io`,url:`https://api.raindrop.io/rest/v2/ai/mcp`},{auth:`oauth`,author:`Roam Research`,category:`documents`,description:`Read and write pages in your Roam Research graph`,icon:pw(`roamresearch.com`),identifier:`roam`,label:`Roam Research`,url:`https://mcp.roamresearch.com/mcp`},{auth:`oauth`,author:`Spacefast`,category:`documents`,description:`Publish pages as shareable Spaces with Spacefast`,icon:pw(`spacefast.com`),identifier:`spacefast`,label:`Spacefast`,url:`https://mcp.spacefast.com`},{auth:`oauth`,author:`Automattic`,category:`documents`,description:`Read and publish posts on your WordPress.com sites`,icon:pw(`wordpress.com`),identifier:`wordpress`,label:`WordPress.com`,url:`https://public-api.wordpress.com/wpcom/v2/mcp/v1`}]})),Yze,Xze=o((()=>{mw(),Yze=[{auth:`none`,author:`1inch`,category:`finance`,description:`Look up 1inch swap API docs and SDK examples`,icon:pw(`business.1inch.com`),identifier:`1inch`,label:`1inch`,url:`https://api.1inch.com/mcp/protocol`},{auth:`oauth`,author:`Airwallex`,category:`finance`,description:`Check Airwallex balances, cards and transfers`,icon:pw(`airwallex.com`),identifier:`airwallex`,label:`Airwallex`,url:`https://mcp.airwallex.com/mcp`},{auth:`oauth`,author:`Aleph`,category:`finance`,description:`Query financial planning and reporting data in Aleph`,icon:pw(`getaleph.com`),identifier:`aleph`,label:`Aleph`,url:`https://mcp.getaleph.com/mcp`},{auth:`oauth`,author:`Alpha Vantage`,category:`finance`,description:`Fetch stock, forex and crypto market data from Alpha Vantage`,icon:pw(`alphavantage.co`),identifier:`alphavantage`,label:`Alpha Vantage`,url:`https://mcp.alphavantage.co/mcp`},{auth:`oauth`,author:`Brex`,category:`finance`,description:`Review Brex expenses, cards and bills`,icon:pw(`brex.com`),identifier:`brex`,label:`Brex`,url:`https://api.brex.com/mcp`},{auth:`oauth`,author:`DeepLedger`,category:`finance`,description:`Handle bookkeeping in QuickBooks and Xero through DeepLedger`,icon:pw(`deepledger.ai`),identifier:`deepledger`,label:`DeepLedger`,url:`https://mcp.deepledger.ai/mcp`},{auth:`oauth`,author:`Era`,category:`finance`,description:`Review personal finances in Era`,icon:pw(`era.app`),identifier:`era`,label:`Era`,url:`https://context.era.app/mcp`},{auth:`oauth`,author:`Extend`,category:`finance`,description:`Manage virtual cards and spend in Extend`,icon:pw(`paywithextend.com`),identifier:`extend`,label:`Extend`,url:`https://mcp.paywithextend.com/mcp`},{auth:`oauth`,author:`freee`,category:`finance`,description:`Work with accounting, HR and invoices in freee`,icon:pw(`freee.co.jp`),identifier:`freee`,label:`freee`,url:`https://mcp.freee.co.jp/mcp`},{auth:`oauth`,author:`Futu`,category:`finance`,description:`Check market data and your Futu portfolio`,icon:pw(`futunn.com`),identifier:`futu`,label:`Futu`,url:`https://mcp.futunn.com/mcp`},{auth:`oauth`,author:`IBKR`,category:`finance`,description:`Check Interactive Brokers account and portfolio data`,icon:pw(`interactivebrokers.com`),identifier:`ibkr`,label:`IBKR`,url:`https://api.ibkr.com/v1/api/mcp-public`},{auth:`oauth`,author:`Kensho`,category:`finance`,description:`Query S&P Global financial data through Kensho`,icon:pw(`kensho.com`),identifier:`kensho`,label:`Kensho`,url:`https://kfinance.kensho.com/integrations/mcp`},{auth:`oauth`,author:`Massive`,category:`finance`,description:`Fetch stock and crypto market data from Massive`,icon:pw(`massive.com`),identifier:`massive`,label:`Massive`,url:`https://mcp.massive.com`},{auth:`oauth`,author:`Mercury`,category:`finance`,description:`Check Mercury bank accounts and transactions`,icon:pw(`mercury.com`),identifier:`mercury`,label:`Mercury`,url:`https://mcp.mercury.com/mcp`},{auth:`oauth`,author:`Navan`,category:`finance`,description:`Review travel and expense data in Navan`,icon:pw(`navan.com`),identifier:`navan`,label:`Navan`,url:`https://mcp.navan.com/mcp`},{auth:`oauth`,author:`PayPal`,category:`finance`,description:`Manage invoices, orders and transactions in PayPal`,icon:pw(`paypal.com`),identifier:`paypal`,label:`PayPal`,url:`https://mcp.paypal.com/mcp`},{auth:`oauth`,author:`Pennylane`,category:`finance`,description:`Work with accounting and invoices in Pennylane`,icon:pw(`pennylane.com`),identifier:`pennylane`,label:`Pennylane`,url:`https://mcp.pennylane.com/mcp`},{auth:`oauth`,author:`Public`,category:`finance`,description:`Check Public brokerage accounts and trades`,icon:pw(`public.com`),identifier:`public`,label:`Public`,url:`https://mcp.public.com/mcp`},{auth:`oauth`,author:`Qonto`,category:`finance`,description:`Check Qonto business accounts and cards`,icon:pw(`qonto.com`),identifier:`qonto`,label:`Qonto`,url:`https://mcp.qonto.com/mcp`},{auth:`oauth`,author:`Ramp`,category:`finance`,description:`Review Ramp spend, cards and bills`,icon:pw(`ramp.com`),identifier:`ramp`,label:`Ramp`,url:`https://mcp.ramp.com/mcp`},{auth:`oauth`,author:`RevenueCat`,category:`finance`,description:`Manage subscriptions, products and paywalls in RevenueCat`,icon:pw(`revenuecat.com`),identifier:`revenuecat`,label:`RevenueCat`,url:`https://mcp.revenuecat.ai/mcp`},{auth:`oauth`,author:`Robinhood`,category:`finance`,description:`Check Robinhood accounts and place trades`,icon:pw(`robinhood.com`),identifier:`robinhood`,label:`Robinhood`,url:`https://agent.robinhood.com/mcp/trading`},{auth:`oauth`,author:`SnapTrade`,category:`finance`,description:`Check brokerage portfolios connected through SnapTrade`,icon:pw(`snaptrade.com`),identifier:`snaptrade`,label:`SnapTrade`,url:`https://agent.snaptrade.com/mcp/portfolio`},{auth:`oauth`,author:`Square`,category:`finance`,description:`Work with Square payments, orders and catalog`,icon:pw(`squareup.com`),identifier:`square`,label:`Square`,url:`https://mcp.squareup.com/mcp`},{auth:`oauth`,author:`Stripe`,category:`finance`,description:`Work with customers, payments, invoices and subscriptions in Stripe`,icon:pw(`stripe.com`),identifier:`stripe`,label:`Stripe`,url:`https://mcp.stripe.com`},{auth:`oauth`,author:`YNAB`,category:`finance`,description:`Review budgets and spending in YNAB`,icon:pw(`ynab.com`),identifier:`ynab`,label:`YNAB`,url:`https://api.ynab.com/mcp`}]})),Zze,Qze=o((()=>{mw(),Zze=[{auth:`oauth`,author:`Tessie`,category:`other`,description:`Check Tesla vehicle status and data through Tessie`,icon:pw(`tessie.com`),identifier:`tessie`,label:`Tessie`,url:`https://mcp.tessie.com`},{auth:`oauth`,author:`Upwork`,category:`other`,description:`Find freelance jobs and talent on Upwork`,icon:pw(`upwork.com`),identifier:`upwork`,label:`Upwork`,url:`https://mcp.upwork.com/mcp`},{auth:`oauth`,author:`Withings`,category:`other`,description:`Read your Withings health measurements`,icon:pw(`withings.com`),identifier:`withings`,label:`Withings`,url:`https://mcp.withings.com/mcp`}]})),$ze,eBe=o((()=>{mw(),$ze=[{auth:`oauth`,author:`Akiflow`,category:`productivity`,description:`Plan tasks and time blocks in Akiflow`,icon:pw(`akiflow.com`),identifier:`akiflow`,label:`Akiflow`,url:`https://mcp.akiflow.com/mcp`},{auth:`oauth`,author:`Atlassian`,category:`productivity`,description:`Search and update Jira issues and Confluence pages with the official Atlassian server`,icon:pw(`atlassian.com`),identifier:`atlassian`,label:`Atlassian`,url:`https://mcp.atlassian.com/v1/mcp`},{auth:`oauth`,author:`Basecamp`,category:`productivity`,description:`Manage projects, to-dos and messages in Basecamp`,icon:pw(`basecamp.com`),identifier:`basecamp`,label:`Basecamp`,url:`https://mcp.basecamp.com/mcp`},{auth:`oauth`,author:`Calendly`,category:`productivity`,description:`Check availability and manage scheduled events in Calendly`,icon:pw(`calendly.com`),identifier:`calendly`,label:`Calendly`,url:`https://mcp.calendly.com`},{auth:`oauth`,author:`Circleback`,category:`productivity`,description:`Search meeting notes and transcripts in Circleback`,icon:pw(`circleback.ai`),identifier:`circleback`,label:`Circleback`,url:`https://circleback.ai/api/mcp`},{auth:`oauth`,author:`Cobrain`,category:`productivity`,description:`Share memory across your AI agents with Cobrain`,icon:pw(`cobrain.space`),identifier:`cobrain`,label:`Cobrain`,url:`https://cobrain.space/mcp`},{auth:`oauth`,author:`Dart`,category:`productivity`,description:`Manage tasks and project docs in Dart`,icon:pw(`dartai.com`),identifier:`dart`,label:`Dart`,url:`https://mcp.dartai.com/mcp`},{auth:`oauth`,author:`DIDA`,category:`productivity`,description:`Add and organize tasks and lists in Dida365`,icon:pw(`dida365.com`),identifier:`dida365`,label:`DIDA`,url:`https://mcp.dida365.com`},{auth:`oauth`,author:`Fastmail`,category:`productivity`,description:`Read and send mail, and manage calendar and contacts in Fastmail`,icon:pw(`fastmail.com`),identifier:`fastmail`,label:`Fastmail`,url:`https://api.fastmail.com/mcp`},{auth:`oauth`,author:`Fathom`,category:`productivity`,description:`Search meeting notes and transcripts in Fathom`,icon:pw(`fathom.ai`),identifier:`fathom`,label:`Fathom`,url:`https://api.fathom.ai/mcp`},{auth:`oauth`,author:`Feishu`,category:`productivity`,description:`Work with Feishu docs, messages and groups`,icon:pw(`feishu.cn`),identifier:`feishu`,label:`Feishu`,url:`https://mcp.feishu.cn/mcp`},{auth:`oauth`,author:`Fellow`,category:`productivity`,description:`Review meeting notes and action items in Fellow`,icon:pw(`fellow.ai`),identifier:`fellow`,label:`Fellow`,url:`https://fellow.app/mcp`},{auth:`oauth`,author:`Fireflies.ai`,category:`productivity`,description:`Search meeting transcripts and summaries in Fireflies`,icon:pw(`fireflies.ai`),identifier:`fireflies`,label:`Fireflies`,url:`https://api.fireflies.ai/mcp`},{auth:`oauth`,author:`Granola`,category:`productivity`,description:`Search your Granola meeting notes and transcripts`,icon:pw(`granola.ai`),identifier:`granola`,label:`Granola`,url:`https://mcp.granola.ai/mcp`},{auth:`oauth`,author:`Hindsight`,category:`productivity`,description:`Keep a long-term memory for your agents with Hindsight`,icon:pw(`hindsight.vectorize.io`),identifier:`hindsight`,label:`Hindsight`,url:`https://api.hindsight.vectorize.io/mcp`},{auth:`oauth`,author:`Honcho`,category:`productivity`,description:`Carry your memory across AI tools with Honcho`,icon:pw(`honcho.dev`),identifier:`honcho`,label:`Honcho`,url:`https://mcp.honcho.dev`},{auth:`oauth`,author:`Hospitable`,category:`productivity`,description:`Manage short-term rental reservations and guests in Hospitable`,icon:pw(`hospitable.com`),identifier:`hospitable`,label:`Hospitable`,url:`https://mcp.hospitable.com/mcp`},{auth:`oauth`,author:`JobTread`,category:`productivity`,description:`Manage construction jobs, estimates and schedules in JobTread`,icon:pw(`jobtread.com`),identifier:`jobtread`,label:`JobTread`,url:`https://api.jobtread.com/mcp`},{auth:`oauth`,author:`Knowify`,category:`productivity`,description:`Manage contractor jobs and billing in Knowify`,icon:pw(`knowify.com`),identifier:`knowify`,label:`Knowify`,url:`https://assistant.knowify.com/api/v2/mcp`},{auth:`oauth`,author:`Krisp`,category:`productivity`,description:`Search meeting notes and transcripts in Krisp`,icon:pw(`krisp.ai`),identifier:`krisp`,label:`Krisp`,url:`https://mcp.krisp.ai/mcp`},{auth:`oauth`,author:`Littlebird`,category:`productivity`,description:`Recall your work context with Littlebird`,icon:pw(`littlebird.ai`),identifier:`littlebird`,label:`Littlebird`,url:`https://mcp.littlebird.ai/mcp`},{auth:`oauth`,author:`Mem0`,category:`productivity`,description:`Give agents a persistent memory with Mem0`,icon:pw(`mem0.ai`),identifier:`mem0`,label:`Mem0`,url:`https://mcp.mem0.ai/mcp/`},{auth:`oauth`,author:`monday.com`,category:`productivity`,description:`Manage boards, items and updates in monday.com`,icon:pw(`monday.com`),identifier:`monday`,label:`monday.com`,url:`https://mcp.monday.com/mcp`},{auth:`oauth`,author:`Otter.ai`,category:`productivity`,description:`Search meeting transcripts and notes in Otter.ai`,icon:pw(`otter.ai`),identifier:`otter`,label:`Otter.ai`,url:`https://mcp.otter.ai/mcp`},{auth:`oauth`,author:`Planning Center`,category:`productivity`,description:`Manage people, services and groups in Planning Center`,icon:pw(`planningcenter.com`),identifier:`planningcenter`,label:`Planning Center`,url:`https://mcp.planningcenteronline.com/mcp`},{auth:`oauth`,author:`Plaud`,category:`productivity`,description:`Search Plaud recordings, transcripts and summaries`,icon:pw(`plaud.ai`),identifier:`plaud`,label:`Plaud`,url:`https://mcp.plaud.ai/mcp`},{auth:`oauth`,author:`Read AI`,category:`productivity`,description:`Search meeting reports and transcripts in Read AI`,icon:pw(`read.ai`),identifier:`readai`,label:`Read AI`,url:`https://api.read.ai/mcp`},{auth:`oauth`,author:`ServiceM8`,category:`productivity`,description:`Manage field service jobs in ServiceM8`,icon:pw(`servicem8.com`),identifier:`servicem8`,label:`ServiceM8`,url:`https://api.servicem8.com/mcp`},{auth:`oauth`,author:`Sunsama`,category:`productivity`,description:`Plan your day and tasks in Sunsama`,icon:pw(`sunsama.com`),identifier:`sunsama`,label:`Sunsama`,url:`https://api.sunsama.com/mcp`},{auth:`oauth`,author:`Superhuman Mail`,category:`productivity`,description:`Read and send email, and check your calendar in Superhuman`,icon:pw(`superhuman.com`),identifier:`superhuman`,label:`Superhuman Mail`,url:`https://mcp.mail.superhuman.com/mcp`},{auth:`oauth`,author:`Supermemory`,category:`productivity`,description:`Keep memory across conversations with Supermemory`,icon:pw(`supermemory.ai`),identifier:`supermemory`,label:`Supermemory`,url:`https://mcp.supermemory.ai/mcp`},{auth:`oauth`,author:`Syncro`,category:`productivity`,description:`Manage MSP tickets and assets in Syncro`,icon:pw(`syncrosecure.com`),identifier:`syncro`,label:`Syncro`,url:`https://mcp.services.syncromsp.com/mcp/stream`},{auth:`oauth`,author:`TickTick`,category:`productivity`,description:`Manage tasks, lists, habits and focus in TickTick`,icon:pw(`ticktick.com`),identifier:`ticktick`,label:`TickTick`,url:`https://mcp.ticktick.com`},{auth:`oauth`,author:`Doist`,category:`productivity`,description:`Add, organize and complete tasks in Todoist`,icon:pw(`todoist.com`),identifier:`todoist`,label:`Todoist`,url:`https://ai.todoist.net/mcp`},{auth:`oauth`,author:`Trello`,category:`productivity`,description:`Manage Trello boards, lists and cards`,icon:pw(`trello.com`),identifier:`trello`,label:`Trello`,url:`https://mcp.trello.com/v1`},{auth:`oauth`,author:`Typeform`,category:`productivity`,description:`Create forms and read responses in Typeform`,icon:pw(`typeform.com`),identifier:`typeform`,label:`Typeform`,url:`https://api.typeform.com/mcp`}]})),tBe,nBe=o((()=>{mw(),tBe=[{auth:`oauth`,author:`Ahrefs`,category:`research`,description:`Pull SEO metrics, backlinks and keyword data from Ahrefs`,icon:pw(`ahrefs.com`),identifier:`ahrefs`,label:`Ahrefs`,url:`https://api.ahrefs.com/mcp/mcp`},{auth:`oauth`,author:`Apify`,category:`research`,description:`Run Apify actors to scrape and automate the web`,icon:pw(`apify.com`),identifier:`apify`,label:`Apify`,url:`https://mcp.apify.com`},{auth:`oauth`,author:`Bright Data`,category:`research`,description:`Search and scrape the web through Bright Data`,icon:pw(`brightdata.com`),identifier:`brightdata`,label:`Bright Data`,url:`https://mcp.brightdata.com/mcp`},{auth:`oauth`,author:`Crustdata`,category:`research`,description:`Look up company and people data in Crustdata`,icon:pw(`crustdata.com`),identifier:`crustdata`,label:`Crustdata`,url:`https://mcp.crustdata.com/mcp`},{auth:`oauth`,author:`DataForSEO`,category:`research`,description:`Pull SERP, keyword and backlink data from DataForSEO`,icon:pw(`dataforseo.com`),identifier:`dataforseo`,label:`DataForSEO`,url:`https://mcp.dataforseo.com/mcp`},{auth:`oauth`,author:`Dealroom`,category:`research`,description:`Research startups, investors and funding rounds in Dealroom`,icon:pw(`dealroom.co`),identifier:`dealroom`,label:`Dealroom`,url:`https://mcp.dealroom.co/mcp`},{auth:`none`,author:`Exa`,category:`research`,description:`Search the web and fetch page content with Exa`,icon:pw(`exa.ai`),identifier:`exa`,label:`Exa`,url:`https://mcp.exa.ai/mcp`},{auth:`oauth`,author:`Harmonic`,category:`research`,description:`Research companies and investors in Harmonic`,icon:pw(`harmonic.ai`),identifier:`harmonic`,label:`Harmonic`,url:`https://mcp.api.harmonic.ai`},{auth:`none`,author:`Parallel`,category:`research`,description:`Search and extract web content with Parallel`,icon:pw(`parallel.ai`),identifier:`parallel`,label:`Parallel`,url:`https://mcp.parallel.ai/mcp`},{auth:`oauth`,author:`Readwise`,category:`research`,description:`Search your highlights and saved reading in Readwise`,icon:pw(`readwise.io`),identifier:`readwise`,label:`Readwise`,url:`https://mcp2.readwise.io/mcp`},{auth:`oauth`,author:`Scrape Creators`,category:`research`,description:`Fetch public social media data with Scrape Creators`,icon:pw(`scrapecreators.com`),identifier:`scrapecreators`,label:`Scrape Creators`,url:`https://api.scrapecreators.com/mcp`},{auth:`oauth`,author:`SE Ranking`,category:`research`,description:`Pull SEO data and site audits from SE Ranking`,icon:pw(`seranking.com`),identifier:`seranking`,label:`SE Ranking`,url:`https://api.seranking.com/mcp`},{auth:`oauth`,author:`Search Atlas`,category:`research`,description:`Pull SEO, content and ads data from Search Atlas`,icon:pw(`searchatlas.com`),identifier:`searchatlas`,label:`Search Atlas`,url:`https://mcp.searchatlas.com/mcp`},{auth:`oauth`,author:`Semrush`,category:`research`,description:`Pull keyword, domain and traffic data from Semrush`,icon:pw(`semrush.com`),identifier:`semrush`,label:`Semrush`,url:`https://mcp.semrush.com/v1/mcp`},{auth:`oauth`,author:`SuperMe`,category:`research`,description:`Get advice from experienced people on SuperMe`,icon:pw(`superme.ai`),identifier:`superme`,label:`SuperMe`,url:`https://mcp.superme.ai/mcp`},{auth:`oauth`,author:`Tavily`,category:`research`,description:`Search the web for agents with Tavily`,icon:pw(`tavily.com`),identifier:`tavily`,label:`Tavily`,url:`https://mcp.tavily.com/mcp`},{auth:`oauth`,author:`TranscriptAPI`,category:`research`,description:`Fetch YouTube video transcripts`,icon:pw(`transcriptapi.com`),identifier:`transcriptapi`,label:`TranscriptAPI`,url:`https://transcriptapi.com/mcp`},{auth:`oauth`,author:`Ubersuggest`,category:`research`,description:`Research SEO keywords with Ubersuggest`,icon:pw(`ubersuggest.com`),identifier:`ubersuggest`,label:`Ubersuggest`,url:`https://ubersuggest-mcp.neilpatelapi.com/mcp`}]})),rBe,iBe=o((()=>{mw(),rBe=[{auth:`none`,author:`Affinity`,category:`sales`,description:`Look up relationships, deals and notes in Affinity`,icon:pw(`affinity.co`),identifier:`affinity`,label:`Affinity`,url:`https://mcp.affinity.co/mcp`},{auth:`oauth`,author:`Amplemarket`,category:`sales`,description:`Find and enrich sales prospects in Amplemarket`,icon:pw(`amplemarket.com`),identifier:`amplemarket`,label:`Amplemarket`,url:`https://mcp.amplemarket.com/mcp`},{auth:`oauth`,author:`Apollo`,category:`sales`,description:`Search B2B contacts and companies in Apollo`,icon:pw(`apollo.io`),identifier:`apollo`,label:`Apollo`,url:`https://mcp.apollo.io/mcp`},{auth:`oauth`,author:`Attio`,category:`sales`,description:`Work with records, lists and deals in Attio`,icon:pw(`attio.com`),identifier:`attio`,label:`Attio`,url:`https://mcp.attio.com/mcp`},{auth:`oauth`,author:`beehiiv`,category:`sales`,description:`Manage newsletter posts and subscribers in beehiiv`,icon:pw(`beehiiv.com`),identifier:`beehiiv`,label:`beehiiv`,url:`https://mcp.beehiiv.com/mcp`},{auth:`oauth`,author:`Buffer`,category:`sales`,description:`Schedule and publish social posts with Buffer`,icon:pw(`buffer.com`),identifier:`buffer`,label:`Buffer`,url:`https://mcp.buffer.com/mcp`},{auth:`oauth`,author:`Close`,category:`sales`,description:`Work with leads, deals and activities in Close`,icon:pw(`close.com`),identifier:`close`,label:`Close`,url:`https://mcp.close.com/mcp`},{auth:`oauth`,author:`Customer.io`,category:`sales`,description:`Work with customer profiles and messaging in Customer.io`,icon:pw(`customer.io`),identifier:`customerio`,label:`Customer.io`,url:`https://mcp.customer.io/mcp`},{auth:`oauth`,author:`folk`,category:`sales`,description:`Manage contacts and pipelines in folk`,icon:pw(`folk.app`),identifier:`folk`,label:`folk`,url:`https://mcp.folk.app/mcp`},{auth:`oauth`,author:`Gojiberry`,category:`sales`,description:`Find B2B leads from buying signals with Gojiberry`,icon:pw(`gojiberry.ai`),identifier:`gojiberry`,label:`Gojiberry`,url:`https://mcp.gojiberry.ai`},{auth:`oauth`,author:`Greenhouse`,category:`sales`,description:`Track candidates and hiring pipelines in Greenhouse`,icon:pw(`greenhouse.com`),identifier:`greenhouse`,label:`Greenhouse`,url:`https://mcp.greenhouse.io/mcp`},{auth:`oauth`,author:`Help Scout`,category:`sales`,description:`Handle support conversations and reports in Help Scout`,icon:pw(`helpscout.com`),identifier:`helpscout`,label:`Help Scout`,url:`https://mcp.helpscout.net/mcp`},{auth:`oauth`,author:`HeyReach`,category:`sales`,description:`Run LinkedIn outreach campaigns in HeyReach`,icon:pw(`heyreach.io`),identifier:`heyreach`,label:`HeyReach`,url:`https://mcp.heyreach.io/mcp`},{auth:`oauth`,author:`HighLevel`,category:`sales`,description:`Manage contacts, pipelines and campaigns in HighLevel`,icon:pw(`gohighlevel.com`),identifier:`highlevel`,label:`HighLevel`,url:`https://services.leadconnectorhq.com/mcp`},{auth:`oauth`,author:`Instantly`,category:`sales`,description:`Run cold email campaigns in Instantly`,icon:pw(`instantly.ai`),identifier:`instantly`,label:`Instantly`,url:`https://mcp.instantly.ai/mcp`},{auth:`oauth`,author:`Intercom`,category:`sales`,description:`Search conversations, contacts and help articles in Intercom`,icon:pw(`intercom.com`),identifier:`intercom`,label:`Intercom`,url:`https://mcp.intercom.com/mcp`},{auth:`oauth`,author:`Kajabi`,category:`sales`,description:`Manage courses, offers and customers in Kajabi`,icon:pw(`kajabi.com`),identifier:`kajabi`,label:`Kajabi`,url:`https://mcp.kajabi.com/mcp`},{auth:`oauth`,author:`Kit`,category:`sales`,description:`Manage email newsletters and subscribers in Kit`,icon:pw(`kit.com`),identifier:`kit`,label:`Kit`,url:`https://app.kit.com/mcp`},{auth:`oauth`,author:`Klaviyo`,category:`sales`,description:`Work with email and SMS marketing in Klaviyo`,icon:pw(`klaviyo.com`),identifier:`klaviyo`,label:`Klaviyo`,url:`https://mcp.klaviyo.com/mcp`},{auth:`oauth`,author:`lemlist`,category:`sales`,description:`Run sales outreach campaigns in lemlist`,icon:pw(`lemlist.com`),identifier:`lemlist`,label:`lemlist`,url:`https://app.lemlist.com/mcp`},{auth:`oauth`,author:`Lusha`,category:`sales`,description:`Look up B2B contacts and companies in Lusha`,icon:pw(`lusha.com`),identifier:`lusha`,label:`Lusha`,url:`https://mcp.lusha.com`},{auth:`oauth`,author:`MailerLite`,category:`sales`,description:`Manage email campaigns and subscribers in MailerLite`,icon:pw(`mailerlite.com`),identifier:`mailerlite`,label:`MailerLite`,url:`https://mcp.mailerlite.com/mcp`},{auth:`oauth`,author:`Omnisend`,category:`sales`,description:`Work with email and SMS marketing in Omnisend`,icon:pw(`omnisend.com`),identifier:`omnisend`,label:`Omnisend`,url:`https://mcp.omnisend.com/mcp`},{auth:`oauth`,author:`Pipedrive`,category:`sales`,description:`Manage deals and contacts in Pipedrive`,icon:pw(`pipedrive.com`),identifier:`pipedrive`,label:`Pipedrive`,url:`https://mcp.pipedrive.ai/mcp`},{auth:`oauth`,author:`Postiz`,category:`sales`,description:`Schedule social media posts with Postiz`,icon:pw(`postiz.com`),identifier:`postiz`,label:`Postiz`,url:`https://mcp.postiz.com/mcp-oauth-dynamic`},{auth:`oauth`,author:`Pylon`,category:`sales`,description:`Handle customer support issues in Pylon`,icon:pw(`usepylon.com`),identifier:`pylon`,label:`Pylon`,url:`https://mcp.usepylon.com`},{auth:`oauth`,author:`Salesloft`,category:`sales`,description:`Work with pipeline and cadences in Salesloft`,icon:pw(`salesloft.com`),identifier:`salesloft`,label:`Salesloft`,url:`https://mcp.salesloft.com/mcp`},{auth:`oauth`,author:`Smartlead`,category:`sales`,description:`Run cold email campaigns in Smartlead`,icon:pw(`smartlead.ai`),identifier:`smartlead`,label:`Smartlead`,url:`https://mcp.smartlead.ai/mcp`},{auth:`oauth`,author:`TryPost`,category:`sales`,description:`Schedule social media posts with TryPost`,icon:pw(`trypost.it`),identifier:`trypost`,label:`TryPost`,url:`https://app.trypost.it/mcp/trypost`},{auth:`oauth`,author:`Typefully`,category:`sales`,description:`Draft and schedule social posts in Typefully`,icon:pw(`typefully.com`),identifier:`typefully`,label:`Typefully`,url:`https://mcp.typefully.com/mcp`},{auth:`oauth`,author:`Whop`,category:`sales`,description:`Manage digital products and memberships on Whop`,icon:pw(`whop.com`),identifier:`whop`,label:`Whop`,url:`https://mcp.whop.com/mcp`},{auth:`oauth`,author:`Workable`,category:`sales`,description:`Manage hiring pipelines in Workable`,icon:pw(`workable.com`),identifier:`workable`,label:`Workable`,url:`https://mcp.workable.com/mcp`}]})),aBe=o((()=>{Rze(),Bze(),Hze(),Wze(),Kze(),Jze(),Xze(),Qze(),eBe(),nBe(),iBe(),[...$ze,...Vze,...qze,...rBe,...zze,...Uze,...tBe,...Gze,...Lze,...Yze,...Zze]})),oBe=o((()=>{aBe()})),sBe=o((()=>{})),hw,gw,_w,cBe,lBe=o((()=>{hw=e=>e.join(`+`),gw={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},_w=[{electronAccelerator:`Alt+Shift+Space`,id:gw.QuickComposer,uiKeys:hw([`alt`,`shift`,`space`])},{electronAccelerator:``,id:gw.QuickChat,uiKeys:``},{electronAccelerator:``,id:gw.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:gw.OpenSettings,nonEditable:!0,uiKeys:hw([`mod`,`comma`])}],cBe=_w.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),_w.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),uBe=o((()=>{lBe(),cBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),dBe,fBe,pBe,vw=o((()=>{bC(),dBe={},fBe=zAe,pBe=`/avatars/lobe-ai.png`})),yw=o((()=>{bC()})),mBe,hBe,gBe,bw,_Be=o((()=>{bC(),vw(),yw(),mBe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},hBe={model:vC,provider:yC},gBe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:hBe,searchMode:`auto`,selfIteration:{enabled:!1}},bw={chatConfig:gBe,model:vC,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:yC,systemRole:``,tts:mBe}})),vBe=o((()=>{})),yBe=o((()=>{})),bBe,xBe,SBe,CBe,wBe,TBe,EBe,DBe,OBe,kBe,ABe,jBe,MBe,NBe,PBe,FBe,IBe,LBe=o((()=>{bBe=`@lobehub/lobehub`,xBe=`2.3.4`,SBe=`LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.`,CBe=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],wBe=`https://github.com/lobehub/lobehub`,TBe={url:`https://github.com/lobehub/lobehub/issues/new/choose`},EBe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},DBe=`LobeHub <i@lobehub.com>`,OBe=[`./src/initialize.ts`,`./src/libs/providerIcon.ts`,`./src/spa/entry.auth.tsx`,`./src/spa/entry.desktop.tsx`,`./src/spa/entry.mobile.tsx`,`./src/spa/entry.popup.tsx`,`./src/spa/entry.web.tsx`],kBe=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],ABe={alint:`alint`,"alint:audit":`alint --config alint.audit.toml --format json --rule-concurrency 48 src packages`,"alint:setup":`bun packages/alint/setup.ts`,build:`bun run build:spa && bun run build:spa:auth && bun run build:spa:workbench && bun run build:spa:share && bun run build:spa:copy && bun run build:next`,"build:analyze":`cross-env NODE_OPTIONS=--max-old-space-size=81920 next experimental-analyze`,"build:artboard-viewer":`pnpm --filter @lobechat/artboard-viewer build`,"build:canvas-runtime":`pnpm --filter @lobechat/canvas-runtime build`,"build:docker":`pnpm run build:file-parse-worker && pnpm run build:spa && pnpm run build:spa:mobile && pnpm run build:spa:auth && pnpm run build:spa:workbench && pnpm run build:spa:share && cross-env WORKBENCH_REQUIRED=1 SHARE_REQUIRED=1 pnpm run build:spa:copy && cross-env NODE_OPTIONS=--max-old-space-size=8192 DOCKER=true next build`,"build:file-parse-worker":`tsx scripts/buildFileParseWorker.mts`,"build:next":`cross-env NODE_OPTIONS=--max-old-space-size=7168 bun run build:next:raw`,"build:next:raw":`pnpm run build:file-parse-worker && next build`,"build:raw":`bun run build:spa:raw && bun run build:spa:auth && bun run build:spa:workbench && bun run build:spa:share && bun run build:spa:copy && bun run build:next:raw`,"build:spa":`cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm run build:spa:raw`,"build:spa:auth":`rm -rf public/_spa public/_spa-auth && cross-env NODE_OPTIONS=--max-old-space-size=8192 AUTH=true vite build`,"build:spa:copy":`tsx scripts/copySpaBuild.mts && tsx scripts/generateSpaTemplates.mts`,"build:spa:mobile":`cross-env NODE_OPTIONS=--max-old-space-size=8192 MOBILE=true vite build`,"build:spa:raw":`rm -rf public/_spa && vite build`,"build:spa:share":`rm -rf dist/share public/_spa-share && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm --filter @lobehub/share build`,"build:spa:workbench":`rm -rf dist/workbench public/_spa-workbench && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm --filter @lobehub/workbench build`,"build:vercel":`cross-env-shell NODE_OPTIONS=--max-old-space-size=8192 "bun run build:raw && bun run db:migrate"`,"build-migrate-db":`bun run db:migrate`,check:`bun run .agents/scripts/check/cli.ts`,"clean:node_modules":`bash -lc 'set -e; echo "Removing all node_modules..."; rm -rf node_modules; pnpm -r exec rm -rf node_modules; rm -rf apps/desktop/node_modules; echo "All node_modules removed."'`,"db:generate":`drizzle-kit generate && tsx ./scripts/pruneMigrationSnapshots/index.ts && npm run workflow:dbml`,"db:install-fts-search-capture":`cross-env MIGRATION_DB=1 tsx ./scripts/installFtsSearchSyncCapture/index.ts`,"db:migrate":`cross-env MIGRATION_DB=1 tsx ./scripts/migrateServerDB/index.ts`,"db:studio":`drizzle-kit studio`,"db:visualize":`dbdocs build docs/development/database-schema.dbml --project lobe-chat`,"desktop:build:all":`npm run desktop:build:main`,"desktop:build:main":`npm run build:main --prefix=./apps/desktop`,"desktop:build-channel":`tsx scripts/electronWorkflow/buildDesktopChannel.ts`,"desktop:main:build":`npm run desktop:main:build --prefix=./apps/desktop`,"desktop:package:app":`npm run desktop:package:app:platform`,"desktop:package:app:platform":`tsx scripts/electronWorkflow/buildElectron.ts`,"desktop:package:local":`npm run package:local --prefix=./apps/desktop`,"desktop:package:local:reuse":`npm run package:local:reuse --prefix=./apps/desktop`,dev:`tsx scripts/devStartupSequence.mts`,"dev:bun":`bun run build:file-parse-worker && bun --bun next dev -p 3010`,"dev:desktop":`cd apps/desktop && pnpm run dev`,"dev:docker":`docker compose -f docker-compose/dev/docker-compose.yml up -d --wait postgresql redis rustfs searxng`,"dev:docker:down":`docker compose -f docker-compose/dev/docker-compose.yml down`,"dev:docker:reset":`docker compose -f docker-compose/dev/docker-compose.yml down -v && rm -rf docker-compose/dev/data && npm run dev:docker && pnpm db:migrate`,"dev:next":`bun run build:file-parse-worker && next dev -p 3010`,"dev:spa":`vite`,"dev:spa:auth":`cross-env AUTH=true vite`,"dev:spa:mobile":`cross-env MOBILE=true vite`,"dev:spa:share":`pnpm --filter @lobehub/share dev`,"dev:spa:workbench":`pnpm --filter @lobehub/workbench dev`,"docs:cdn":`npm run workflow:docs-cdn && npm run lint:mdx`,"docs:i18n":`lobe-i18n md && npm run lint:mdx`,"docs:seo":`lobe-seo && npm run lint:mdx`,e2e:`cd e2e && npm run test`,"e2e:install":`playwright install`,"e2e:ui":`playwright test --ui`,"fts-search:cleanup-ineligible-messages":`cross-env MIGRATION_DB=1 bun run scripts/elasticsearchCleanupIneligibleMessages/cli.ts`,"fts-search:reindex":`node scripts/elasticsearchReindex/runner.mjs`,"fts-search:sync":`cross-env MIGRATION_DB=1 bun run scripts/elasticsearchSync/cli.ts`,"gen:density":`tsx scripts/densityTokens.mts`,"gen:density:check":`tsx scripts/densityTokens.mts --check`,"hotfix:branch":`tsx ./scripts/hotfixWorkflow/index.ts`,i18n:`npm run workflow:i18n && lobe-i18n && prettier -c --write "locales/**"`,"i18n:unused":`tsx ./scripts/i18nWorkflow/analyzeUnusedKeys.ts`,"i18n:unused-clean":`tsx ./scripts/i18nWorkflow/cleanUnusedKeys.ts`,lint:`npm run lint:ts && npm run lint:style && npm run type-check && npm run lint:circular`,"lint:circular":`npm run lint:circular:main && npm run lint:circular:packages`,"lint:circular:main":`dpdm src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular`,"lint:circular:packages":`dpdm packages/**/src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular`,"lint:console":`tsx scripts/checkConsoleLog.mts`,"lint:md":`remark . --silent --output`,"lint:mdx":`npm run workflow:mdx && remark "docs/**/*.mdx" -r ./.remarkrc.mdx.mjs --silent --output`,"lint:style":`stylelint "{src,tests}/**/*.{css,less}" --fix --allow-empty-input`,"lint:ts":`oxlint src/ tests/ apps/server/src/`,"lint:unused":`knip --include files,exports,types,enumMembers,duplicates`,prepare:`git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath .githooks || true`,prettier:`prettier -c --write "**/**"`,pull:`git pull`,qstash:`pnpx @upstash/qstash-cli@latest dev`,"react-devtools":`cd apps/desktop && pnpm run react-devtools`,reinstall:`rm -rf .next && rm -rf node_modules && rm -rf ./packages/*/node_modules && pnpm -r exec rm -rf node_modules && pnpm install`,"reinstall:desktop":`rm -rf pnpm-lock.yaml && rm -rf node_modules && pnpm -r exec rm -rf node_modules && pnpm install --node-linker=hoisted`,release:`semantic-release`,"release:branch":`tsx ./scripts/releaseWorkflow/index.ts`,"self-hosting:docker":`docker build -t lobehub:local .`,"self-hosting:docker-cn":`docker build -t lobehub-local --build-arg USE_CN_MIRROR=true .`,start:`next start -p 3210`,"style-eq":`bun packages/style-equivalence/src/cli/index.ts`,"style-eq:test":`cd packages/style-equivalence && vitest run --silent=passed-only`,stylelint:`stylelint "src/**/*.{css,less}" --fix --allow-empty-input`,"stylex:migration":`tsx scripts/stylexMigration/index.ts`,"stylex:verify":`bun scripts/stylexMigration/verification/run.ts`,"stylex:verify:test":`vitest run --config scripts/stylexMigration/verification/vitest.config.ts --silent='passed-only'`,test:`npm run test-app && npm run test-server`,"test:e2e":`pnpm --filter @lobechat/e2e-tests test`,"test:e2e:smoke":`pnpm --filter @lobechat/e2e-tests test:smoke`,"test:update":`vitest -u`,"test-app":`vitest run`,"test-app:coverage":`vitest --coverage --silent='passed-only'`,"tunnel:cloudflare":`cloudflared tunnel --url http://localhost:3010 --protocol http2`,"tunnel:ngrok":`ngrok http http://localhost:3010`,"type-check":`tsrs --noEmit -p tsconfig.type-check.json --checkers 4`,"type-check:tsc":`tsc --noEmit`,"widget:tick":`tsx ./scripts/widgetTick/index.mts`,"workflow:cdn":`tsx ./scripts/cdnWorkflow/index.ts`,"workflow:changelog":`tsx ./scripts/changelogWorkflow/index.ts`,"workflow:changelog:gen":`tsx ./scripts/changelogWorkflow/generateChangelog.ts`,"workflow:countCharters":`tsx scripts/countEnWord.ts`,"workflow:dbml":`tsx ./scripts/dbmlWorkflow/index.ts`,"workflow:docs":`tsx ./scripts/docsWorkflow/index.ts`,"workflow:docs-cdn":`tsx ./scripts/docsWorkflow/autoCDN.ts`,"workflow:i18n":`tsx ./scripts/i18nWorkflow/index.ts`,"workflow:mdx":`tsx ./scripts/mdxWorkflow/index.ts`,"workflow:mobile-spa":`tsx scripts/mobileSpaWorkflow/index.ts`,"workflow:readme":`tsx ./scripts/readmeWorkflow/index.ts`,"workflow:reset-onboarding":`tsx ./scripts/resetOnboarding/index.ts`,"workflow:seed-user-info":`tsx ./scripts/seedUserInfo/index.ts`,"workflow:set-desktop-version":`tsx ./scripts/electronWorkflow/setDesktopVersion.ts`},jBe={"@types/react":`19.2.13`,"baseline-browser-mapping":`2.10.31`,"better-auth":`1.6.33`,"drizzle-orm":`^0.45.2`,"fast-xml-parser":`5.4.2`,lexical:`0.42.0`,"pdfjs-dist":`5.4.530`,"stylelint-config-clean-order":`7.0.0`},MBe=JSON.parse(`{"@aiden0z/pptx-renderer":"^1.2.4","@anthropic-ai/sdk":"^0.73.0","@atlaskit/pragmatic-drag-and-drop":"^1.8.1","@atlaskit/pragmatic-drag-and-drop-hitbox":"^1.2.0","@aws-sdk/client-bedrock-runtime":"^3.1107.0","@aws-sdk/client-s3":"~3.932.0","@aws-sdk/s3-request-presigner":"~3.932.0","@azure-rest/ai-inference":"1.0.0-beta.5","@azure/core-auth":"^1.11.0","@better-auth/expo":"1.6.33","@better-auth/passkey":"1.6.33","@cfworker/json-schema":"^4.1.1","@chat-adapter/discord":"~4.38.0","@chat-adapter/slack":"~4.38.0","@chat-adapter/state-ioredis":"~4.38.0","@chat-adapter/telegram":"~4.38.0","@codemirror/streamparser":"^6.0.0","@codesandbox/sandpack-react":"^2.20.0","@composio/core":"^0.10.0","@discordjs/rest":"^2.6.3","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emoji-mart/data":"^1.2.1","@emoji-mart/react":"^1.1.1","@emotion/react":"^11.14.0","@fal-ai/client":"^1.10.1","@floating-ui/react":"^0.27.20","@formkit/auto-animate":"^0.9.0","@google/genai":"^2.24.0","@henrygd/queue":"^1.2.0","@huggingface/inference":"^4.13.25","@icons-pack/react-simple-icons":"^13.15.1","@khmyznikov/pwa-install":"0.3.9","@larksuiteoapi/node-sdk":"^1.73.0","@lexical/list":"0.42.0","@lexical/rich-text":"0.42.0","@lexical/utils":"^0.42.0","@lobechat/agent-address-linq":"workspace:*","@lobechat/agent-address-mail":"workspace:*","@lobechat/agent-gateway-client":"workspace:*","@lobechat/agent-mock":"workspace:*","@lobechat/agent-runtime":"workspace:*","@lobechat/agent-signal":"workspace:*","@lobechat/agent-templates":"workspace:*","@lobechat/artifact-template":"workspace:*","@lobechat/builtin-agents":"workspace:*","@lobechat/builtin-skills":"workspace:*","@lobechat/builtin-tool-acceptance-evidence":"workspace:*","@lobechat/builtin-tool-activator":"workspace:*","@lobechat/builtin-tool-agent-account":"workspace:*","@lobechat/builtin-tool-agent-builder":"workspace:*","@lobechat/builtin-tool-agent-documents":"workspace:*","@lobechat/builtin-tool-agent-management":"workspace:*","@lobechat/builtin-tool-agent-signal":"workspace:*","@lobechat/builtin-tool-artboard":"workspace:*","@lobechat/builtin-tool-attachments":"workspace:*","@lobechat/builtin-tool-auv":"workspace:*","@lobechat/builtin-tool-brief":"workspace:*","@lobechat/builtin-tool-browser":"workspace:*","@lobechat/builtin-tool-calculator":"workspace:*","@lobechat/builtin-tool-canvas":"workspace:*","@lobechat/builtin-tool-channel":"workspace:*","@lobechat/builtin-tool-claude-code":"workspace:*","@lobechat/builtin-tool-cloud-sandbox":"workspace:*","@lobechat/builtin-tool-creds":"workspace:*","@lobechat/builtin-tool-dashboard":"workspace:*","@lobechat/builtin-tool-goal":"workspace:*","@lobechat/builtin-tool-group-agent-builder":"workspace:*","@lobechat/builtin-tool-group-management":"workspace:*","@lobechat/builtin-tool-image-generation":"workspace:*","@lobechat/builtin-tool-knowledge-base":"workspace:*","@lobechat/builtin-tool-lobe-agent":"workspace:*","@lobechat/builtin-tool-local-system":"workspace:*","@lobechat/builtin-tool-mcp-events":"workspace:*","@lobechat/builtin-tool-memory":"workspace:*","@lobechat/builtin-tool-message":"workspace:*","@lobechat/builtin-tool-notebook":"workspace:*","@lobechat/builtin-tool-page-agent":"workspace:*","@lobechat/builtin-tool-remote-device":"workspace:*","@lobechat/builtin-tool-self-iteration":"workspace:*","@lobechat/builtin-tool-skill-maintainer":"workspace:*","@lobechat/builtin-tool-skill-store":"workspace:*","@lobechat/builtin-tool-skills":"workspace:*","@lobechat/builtin-tool-task":"workspace:*","@lobechat/builtin-tool-user-interaction":"workspace:*","@lobechat/builtin-tool-verify":"workspace:*","@lobechat/builtin-tool-video-generation":"workspace:*","@lobechat/builtin-tool-web-browsing":"workspace:*","@lobechat/builtin-tool-web-onboarding":"workspace:*","@lobechat/builtin-tool-webhook":"workspace:*","@lobechat/builtin-tool-work":"workspace:*","@lobechat/builtin-tools":"workspace:*","@lobechat/business-config":"workspace:*","@lobechat/business-const":"workspace:*","@lobechat/business-knowledge":"workspace:*","@lobechat/business-model-bank":"workspace:*","@lobechat/business-model-runtime":"workspace:*","@lobechat/canvas":"workspace:*","@lobechat/chat-adapter-dingtalk":"workspace:*","@lobechat/chat-adapter-feishu":"workspace:*","@lobechat/chat-adapter-imessage":"workspace:*","@lobechat/chat-adapter-line":"workspace:*","@lobechat/chat-adapter-qq":"workspace:*","@lobechat/chat-adapter-wechat":"workspace:*","@lobechat/chat-adapter-wecom":"workspace:*","@lobechat/config":"workspace:*","@lobechat/connector-data":"workspace:*","@lobechat/const":"workspace:*","@lobechat/context-engine":"workspace:*","@lobechat/conversation-flow":"workspace:*","@lobechat/database":"workspace:*","@lobechat/desktop-bridge":"workspace:*","@lobechat/device-control":"workspace:*","@lobechat/device-gateway-client":"workspace:*","@lobechat/edge-config":"workspace:*","@lobechat/editor-runtime":"workspace:*","@lobechat/electron-client-ipc":"workspace:*","@lobechat/electron-server-ipc":"workspace:*","@lobechat/env":"workspace:*","@lobechat/eval-dataset-parser":"workspace:*","@lobechat/eval-rubric":"workspace:*","@lobechat/fetch-sse":"workspace:*","@lobechat/file-loaders":"workspace:*","@lobechat/heterogeneous-agents":"workspace:*","@lobechat/html-artifact":"workspace:*","@lobechat/llm-generation-tracing":"workspace:*","@lobechat/local-file-shell":"workspace:*","@lobechat/markdown-patch":"workspace:*","@lobechat/mecha":"workspace:*","@lobechat/memory-user-memory":"workspace:*","@lobechat/model-runtime":"workspace:*","@lobechat/observability-otel":"workspace:*","@lobechat/openapi":"workspace:*","@lobechat/prompts":"workspace:*","@lobechat/python-interpreter":"workspace:*","@lobechat/shared-tool-ui":"workspace:*","@lobechat/ssrf-safe-fetch":"workspace:*","@lobechat/tool-runtime":"workspace:*","@lobechat/tool-view-model":"workspace:*","@lobechat/utils":"workspace:*","@lobechat/web-crawler":"workspace:*","@lobechat/widget-spec":"workspace:*","@lobehub/analytics":"^1.6.4","@lobehub/charts":"^6.0.0","@lobehub/desktop-ipc-typings":"workspace:*","@lobehub/editor":"7.2.1","@lobehub/icons":"^6.15.2","@lobehub/market-sdk":"0.46.0","@lobehub/tts":"^6.1.0","@lobehub/ui":"^6.19.0","@modelcontextprotocol/client":"~2.4.0","@modelcontextprotocol/ext-apps":"^2.0.3","@neondatabase/serverless":"^1.1.0","@next/third-parties":"^16.3.0","@opentelemetry/auto-instrumentations-node":"^0.76.0","@opentelemetry/exporter-jaeger":"^2.10.0","@opentelemetry/resources":"^2.10.0","@opentelemetry/sdk-metrics":"^2.10.0","@opentelemetry/winston-transport":"^0.28.0","@pierre/trees":"1.0.0-beta.3","@react-pdf/renderer":"4.3.2","@react-three/drei":"^10.7.8","@react-three/fiber":"^9.7.0","@saintno/comfyui-sdk":"^0.2.53","@stylexjs/stylex":"0.19.1","@t3-oss/env-core":"^0.13.11","@t3-oss/env-nextjs":"^0.13.11","@tanstack/react-query":"^5.101.4","@trpc/client":"^11.18.0","@trpc/next":"^11.18.0","@trpc/react-query":"^11.18.0","@trpc/server":"^11.18.0","@upstash/qstash":"2.12.0","@upstash/workflow":"^0.2.23","@vercel/analytics":"^1.6.1","@vercel/edge-config":"^1.5.1","@vercel/functions":"^3.9.2","@vercel/speed-insights":"^1.3.1","@virtuoso.dev/masonry":"^1.4.3","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/addon-webgl":"^0.18.0","@xterm/xterm":"^5.5.0","@xyflow/react":"^12.11.5","@zumer/snapdom":"^2.24.10","ahooks":"^3.9.7","async-retry":"^1.3.3","bcryptjs":"^3.0.3","better-auth":"1.6.33","brotli-wasm":"^3.0.1","buffer.js":"npm:buffer@^6.0.3","chat":"~4.38.0","chroma-js":"^3.3.0","class-variance-authority":"^0.7.1","cmdk":"^1.1.1","cookie":"^1.1.1","countries-and-timezones":"^3.10.0","d3-dsv":"^3.0.1","dayjs":"^1.11.21","debug":"^4.4.3","diff":"^8.0.4","discord-api-types":"^0.38.53","docx-preview":"^0.4.0","drizzle-orm":"^0.45.2","drizzle-zod":"^0.8.3","entities":"^8.1.0","epub2":"^3.0.2","es-toolkit":"^1.50.0","exceljs":"^4.4.0","expo-server-sdk":"^6.1.0","fast-deep-equal":"^3.1.3","fflate":"^0.8.3","ffmpeg-static":"^5.3.0","file-type":"^21.3.4","fuse.js":"^7.5.0","gray-matter":"^4.0.3","hono":"^4.13.1","html-to-text":"^9.0.5","i18next":"^25.10.10","i18next-browser-languagedetector":"^8.2.1","i18next-resources-to-backend":"^1.2.3","immer":"^11.1.16","ioredis":"^5.11.1","jose":"^6.2.8","js-sha256":"^0.11.1","jsondiffpatch":"^0.7.6","jsonl-parse-stringify":"^1.0.3","keygrip":"^1.1.0","langfuse":"^3.38.20","langfuse-core":"^3.38.20","lexical":"0.42.0","local-replica":"^0.1.1","lucide-react":"^1.31.0","mammoth":"^1.12.1","marked":"^17.0.6","masonic":"^4.1.0","mdast-util-to-markdown":"^2.1.2","mesurer":"^0.1.0","model-bank":"workspace:*","motion":"^14.1.0","nanoid":"^5.1.16","next":"~16.3.8","next-mdx-remote":"^6.0.0","next-themes":"^0.4.6","nextjs-toploader":"^3.9.17","node-machine-id":"^1.1.12","nodemailer":"^9.1.1","numeral":"^2.0.6","nuqs":"^2.9.5","octokit":"^5.0.5","officeparser":"5.1.1","ogl":"^1.0.11","oidc-provider":"^9.11.3","ollama":"^0.6.3","openai":"^6.49.0","openapi-fetch":"^0.14.1","partial-json":"^0.1.7","path-browserify-esm":"^1.0.6","pathe":"^2.0.3","pdf-parse":"^1.1.4","pdfjs-dist":"5.4.530","pdfkit":"^0.17.2","pg":"^8.23.0","pinyin-pro":"^3.28.2","plaiceholder":"^3.0.0","polished":"^4.3.1","pure-rand":"^7.0.1","pwa-install-handler":"^2.6.5","query-string":"^9.5.0","random-words":"^2.0.1","rc-util":"^5.44.4","react":"19.2.7","react-confetti":"^6.4.0","react-dom":"19.2.7","react-fast-marquee":"^1.6.5","react-hotkeys-hook":"^5.3.3","react-i18next":"^16.6.6","react-lazy-load":"^4.0.1","react-markdown":"^10.1.0","react-pdf":"^10.4.1","react-responsive":"^10.0.1","react-rnd":"^10.5.3","react-router":"^8.3.0","react-scan":"^0.5.7","react-virtuoso":"^4.18.11","react-wrap-balancer":"^1.1.1","remark":"^15.0.1","remark-gfm":"^4.0.1","remark-html":"^16.0.1","remove-markdown":"^0.6.4","resend":"6.8.0","resolve-accept-language":"^3.2.2","rtl-detect":"^1.1.2","semver":"^7.8.5","sharp":"^0.34.5","shiki":"^4.4.3","standardwebhooks":"^1.1.1","stripe":"^17.7.0","superjson":"^2.2.6","svix":"^1.99.1","swr":"^2.5.0","three":"^0.181.2","tokenx":"^1.6.0","ts-md5":"^2.0.1","ua-parser-js":"^1.0.41","undici":"^7.29.0","unist-builder":"^4.0.0","url-join":"^5.0.0","use-merge-value":"^1.2.0","uuid":"^14.0.1","virtua":"^0.48.8","word-extractor":"^1.0.4","ws":"^8.21.3","xast-util-to-xml":"^4.0.0","xastscript":"^4.0.0","yaml":"^2.9.0","yjs":"^13.6.33","zod":"^4.4.3","zustand":"5.0.4","zustand-utils":"^2.1.1"}`),NBe={"@alint-js/cli":`0.7.3`,"@commitlint/cli":`^19.8.1`,"@edge-runtime/vm":`^5.0.0`,"@huggingface/tasks":`^0.19.90`,"@inquirer/prompts":`^8.5.2`,"@lobechat/agent-tracing":`workspace:*`,"@lobechat/types":`workspace:*`,"@lobehub/commitlint-config":`^3.0.0`,"@lobehub/i18n-cli":`^1.27.0`,"@lobehub/market-types":`^1.19.0`,"@lobehub/oxlint-config":`^3.0.0`,"@lobehub/prettier-config":`^3.0.0`,"@lobehub/remarklint-config":`^3.0.0`,"@lobehub/semantic-release-config":`^3.0.0`,"@lobehub/seo-cli":`^1.7.0`,"@lobehub/stylelint-config":`^3.0.0`,"@modelcontextprotocol/server":`~2.4.0`,"@peculiar/webcrypto":`^1.7.1`,"@playwright/test":`^1.62.1`,"@prettier/sync":`^0.6.1`,"@rolldown/plugin-transform-imports":`0.1.1`,"@semantic-release/exec":`^6.0.3`,"@stylexjs/unplugin":`0.19.1`,"@testing-library/jest-dom":`^6.9.1`,"@testing-library/react":`^16.3.2`,"@testing-library/user-event":`^14.6.3`,"@types/async-retry":`^1.4.9`,"@types/chroma-js":`^3.1.2`,"@types/crypto-js":`^4.2.2`,"@types/d3-dsv":`^3.0.7`,"@types/debug":`^4.1.13`,"@types/fs-extra":`^11.0.4`,"@types/html-to-text":`^9.0.4`,"@types/ip":`^1.1.3`,"@types/json-schema":`^7.0.15`,"@types/keygrip":`^1.0.6`,"@types/node":`^24.13.3`,"@types/nodemailer":`^7.0.12`,"@types/numeral":`^2.0.5`,"@types/oidc-provider":`^9.11.1`,"@types/pdf-parse":`^1.1.5`,"@types/pdfkit":`^0.17.6`,"@types/pg":`^8.21.0`,"@types/react":`19.2.13`,"@types/react-dom":`19.2.3`,"@types/rtl-detect":`^1.0.3`,"@types/semver":`^7.8.0`,"@types/three":`^0.181.0`,"@types/ua-parser-js":`^0.7.39`,"@types/unist":`^3.0.3`,"@types/ws":`^8.18.1`,"@types/xast":`^2.0.4`,"@vitejs/devtools":`0.2.0`,"@vitejs/plugin-react":`^6.0.5`,"@vitest/coverage-v8":`5.0.0`,ajv:`^8.20.0`,"ajv-keywords":`^5.1.0`,"code-inspector-plugin":`1.3.6`,commitlint:`^19.8.1`,consola:`^3.4.2`,"cross-env":`^10.1.0`,"crypto-js":`^4.2.0`,dbdocs:`^0.16.2`,dotenv:`^17.4.2`,"dotenv-expand":`^12.0.3`,"dpdm-fast":`^1.0.14`,"drizzle-dbml-generator":`^0.10.0`,"drizzle-kit":`^0.31.10`,esbuild:`^0.28.2`,"fake-indexeddb":`^6.2.5`,"fs-extra":`^11.4.0`,glob:`^13.0.6`,"happy-dom":`~20.11.15`,"import-in-the-middle":`^2.0.6`,"just-diff":`^6.0.2`,knip:`^5.88.1`,linkedom:`^0.18.13`,"lint-staged":`^16.4.0`,"markdown-table":`^3.0.4`,"mcp-hello-world":`^1.1.2`,mime:`^4.1.0`,"node-fetch":`^3.3.2`,"node-gyp":`^12.4.0`,"openapi-typescript":`^7.13.0`,oxlint:`1.90.0`,"p-map":`^7.0.6`,postcss:`8.5.23`,"postcss-selector-parser":`7.1.7`,"postcss-value-parser":`4.2.0`,prettier:`^3.9.6`,"raw-loader":`^4.0.2`,"remark-cjk-friendly":`^2.3.1`,"remark-cli":`^12.0.1`,"remark-frontmatter":`^5.0.0`,"remark-mdx":`^3.1.1`,"remark-parse":`^11.0.0`,"require-in-the-middle":`^8.0.1`,s3rver:`3.7.1`,"semantic-release":`^21.1.2`,stylelint:`^16.26.1`,tsrs:`0.20.1-ts7.1.0-beta`,tsx:`^4.23.12`,"type-fest":`^5.8.0`,typescript:`6.0.3`,unified:`^11.0.5`,"unist-util-visit":`^5.1.0`,vite:`8.0.16`,"vite-plugin-pwa":`^1.3.0`,"vite-tsconfig-paths":`^6.1.1`,vitest:`5.0.0`},PBe=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,FBe={access:`public`,registry:`https://registry.npmjs.org`},IBe={name:bBe,version:xBe,description:SBe,keywords:CBe,homepage:wBe,bugs:TBe,repository:EBe,license:`MIT`,author:DBe,sideEffects:OBe,workspaces:kBe,scripts:ABe,"lint-staged":{"*.md":[`remark --silent --silently-ignore --output --`,`prettier --write --no-error-on-unmatched-pattern`],"*.mdx":[`remark -r ./.remarkrc.mdx.mjs --silent --output --`],"*.json":[`prettier --write --no-error-on-unmatched-pattern`],"*.{mjs,cjs}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --write`],"*.{js,jsx}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --write`],"*.{ts,tsx}":[`oxlint --fix --no-error-on-unmatched-pattern`,`prettier --parser=typescript --write`],"*.{css,less}":[`stylelint --fix`,`prettier --write`]},overrides:jBe,dependencies:MBe,devDependencies:NBe,packageManager:PBe,publishConfig:FBe}})),xw,Sw,Cw=o((()=>{bC(),LBe(),xw=IBe.version,Sw=_C!==`LobeHub`})),ww,Tw,Ew,Dw,Ow,RBe,zBe=o((()=>{Cw(),ww=e=>e.join(`+`),Tw={Alt:`alt`,Backquote:`backquote`,Backslash:`backslash`,Backspace:`backspace`,BracketLeft:`bracketleft`,BracketRight:`bracketright`,Comma:`comma`,Ctrl:`ctrl`,Down:`down`,Enter:`enter`,Equal:`equal`,Esc:`esc`,Left:`left`,LeftClick:`left-click`,LeftDoubleClick:`left-double-click`,Meta:`meta`,MiddleClick:`middle-click`,Minus:`minus`,Mod:`mod`,Number:`1-9`,Period:`period`,Plus:`equal`,QuestionMark:`slash`,Quote:`quote`,Right:`right`,RightClick:`right-click`,RightDoubleClick:`right-double-click`,Semicolon:`semicolon`,Shift:`shift`,Slash:`slash`,Space:`space`,Tab:`tab`,Up:`up`,Zero:`0`},Ew={CommandPalette:`commandPalette`,DeleteAndRegenerateMessage:`deleteAndRegenerateMessage`,DeleteLastMessage:`deleteLastMessage`,EditMessage:`editMessage`,FindInTopic:`findInTopic`,NavigateToChat:`navigateToChat`,NextTab:`nextTab`,OpenChatSettings:`openChatSettings`,PrevTab:`prevTab`,OpenHotkeyHelper:`openHotkeyHelper`,OpenTaskFilter:`openTaskFilter`,RegenerateMessage:`regenerateMessage`,SaveDocument:`saveDocument`,SaveTopic:`saveTopic`,Search:`search`,ShowApp:`showApp`,SwitchAgent:`switchAgent`,SwitchTab:`switchTab`,ToggleFavorite:`toggleFavorite`,ToggleLeftPanel:`toggleLeftPanel`,ToggleRightPanel:`toggleRightPanel`,ToggleTerminalPanel:`toggleTerminalPanel`},Dw={Conversation:`conversation`,Essential:`essential`},Ow={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},RBe=[{group:Dw.Essential,id:Ew.CommandPalette,keys:ww([Tw.Mod,`k`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.Search,keys:ww([Tw.Mod,`j`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.SwitchAgent,keys:ww([Tw.Ctrl,Tw.Number]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.SwitchTab,keys:ww([Tw.Mod,Tw.Number]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.NextTab,keys:ww([Tw.Ctrl,Tw.Tab]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.PrevTab,keys:ww([Tw.Ctrl,Tw.Shift,Tw.Tab]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.NavigateToChat,keys:ww([Tw.Ctrl,Tw.Shift,Tw.Backquote]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleLeftPanel,keys:ww([Tw.Mod,Tw.BracketLeft]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleRightPanel,keys:ww([Tw.Mod,Tw.BracketRight]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.OpenHotkeyHelper,keys:ww([Tw.Ctrl,Tw.Shift,Tw.QuestionMark]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleFavorite,keys:ww([Tw.Alt,`f`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.OpenTaskFilter,keys:`f`,scopes:[Ow.Global]},{group:Dw.Conversation,id:Ew.FindInTopic,keys:ww([Tw.Mod,`f`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.ToggleTerminalPanel,keys:ww([Tw.Ctrl,Tw.Backquote]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.OpenChatSettings,keys:ww([Tw.Alt,Tw.Comma]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.RegenerateMessage,keys:ww([Tw.Alt,`r`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.DeleteLastMessage,keys:ww([Tw.Alt,`d`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.DeleteAndRegenerateMessage,keys:ww([Tw.Alt,Tw.Shift,`r`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.SaveTopic,keys:ww([Tw.Alt,`n`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.EditMessage,keys:ww([Tw.Alt,Tw.LeftDoubleClick]),nonEditable:!0,scopes:[Ow.Chat]},{group:Dw.Essential,id:Ew.SaveDocument,keys:ww([Tw.Mod,`s`]),scopes:[Ow.Files]}]})),BBe=o((()=>{zBe(),RBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),VBe=o((()=>{})),HBe=o((()=>{bC(),yw()})),UBe=o((()=>{})),WBe=o((()=>{})),GBe,kw,KBe=o((()=>{bC(),HBe(),yw(),GBe={model:vC,provider:yC},kw={model:QAe,provider:$Ae},kw.model,kw.provider,kw.model,kw.provider,kw.model,kw.provider,{...GBe},Reflect.get(yje,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(yje,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),qBe=o((()=>{})),JBe=o((()=>{})),Aw=o((()=>{_Be(),vBe(),yBe(),BBe(),VBe(),HBe(),yw(),UBe(),WBe(),KBe(),qBe(),JBe()})),YBe=o((()=>{Aw(),new Date().toISOString()})),XBe=o((()=>{})),ZBe=o((()=>{Object.freeze([])})),QBe=o((()=>{})),$Be,eVe,tVe,nVe=o((()=>{$Be=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],eVe=2*1024*1024*1024-1,`${eVe}`,tVe=64*1024*1024,`${tVe}`,[...$Be]})),rVe,iVe=o((()=>{bC(),`${_C}`,rVe=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(rVe)})),aVe,oVe=o((()=>{aVe=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(aVe)})),sVe=o((()=>{})),cVe=o((()=>{})),lVe=o((()=>{})),uVe=o((()=>{})),dVe=o((()=>{})),fVe=o((()=>{})),pVe,mVe=o((()=>{lc(),pVe=(e,t)=>ls({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),hVe,gVe,_Ve=o((()=>{vw(),Aw(),mVe(),hVe=`agent`,gVe={config:bw,createdAt:new Date,id:``,meta:dBe,model:bw.model,type:hVe,updatedAt:new Date},pVe(gVe,{id:`inbox`,meta:{avatar:pBe}})})),vVe=o((()=>{})),yVe=o((()=>{})),bVe=o((()=>{})),xVe=o((()=>{})),SVe=o((()=>{})),CVe=o((()=>{})),wVe=o((()=>{})),TVe=o((()=>{})),EVe,DVe,OVe=o((()=>{bC(),Aw(),EVe={activities:3,contexts:0,experiences:0,preferences:3},DVe={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...EVe}},DVe.high.contexts})),kVe=o((()=>{})),AVe=o((()=>{})),jw=o((()=>{lxe(),dxe(),fxe(),bxe(),_ze(),yze(),bze(),xze(),Ize(),oBe(),sBe(),uBe(),lBe(),YBe(),XBe(),ZBe(),QBe(),nVe(),iVe(),oVe(),sVe(),cVe(),Fze(),lVe(),vw(),aBe(),uVe(),dVe(),fVe(),_Ve(),Aw(),vVe(),yVe(),bVe(),xVe(),SVe(),CVe(),wVe(),Pze(),TVe(),OVe(),Cw(),kVe(),AVe()}));jw();var Mw=[[`LobeHub Cloud`,RAe,`LobeHub Cloud`],[`LobeHub`,_C,`LobeHub`],[`LobeChat`,_C,`LobeHub`],[`Lobe AI`,fBe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),jVe=new Map(Mw),MVe=`Lobe`,NVe=Mw.length?RegExp(`(?<!@)(${Mw.map(([e])=>e).join(`|`)})`,`g`):void 0,PVe=Mw.length>0,FVe=`brandStrings`,IVe=e=>!NVe||!e.includes(MVe)?e:e.replaceAll(NVe,e=>jVe.get(e)??e),LVe={name:FVe,process:e=>typeof e==`string`?IVe(e):e,type:`postProcessor`},RVe=PVe?{postProcess:[FVe]}:{},zVe=e=>PVe?e.use(LVe):e,BVe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},VVe=c({default:()=>HVe}),HVe,UVe=o((()=>{HVe={"directMention.progress.elapsed":`{{time}}`,"directMention.progress.running":`Running`,"directMention.progress.thinking":`Thinking…`,"directMention.progress.usingTool":`Using {{name}}…`,"directMention.progress.viewFullRecord":`View full record`,"sharePage.app.linkCopied":`Link copied`,"heteroAgent.antigravityQuota.title":`Antigravity quota`,"heteroAgent.antigravityQuota.tooltip":`View Antigravity model quotas`,"heteroAgent.antigravityQuota.fiveHour":`5 hours`,"heteroAgent.antigravityQuota.remainingAmount":`{{amount}} remaining`,"heteroAgent.antigravityQuota.unknown":`Unknown`,"heteroAgent.antigravityQuota.disabled":`Unavailable`,"heteroAgent.antigravityQuota.resetUnconfirmed":`Reset time reached. Refresh to check the latest quota.`,"heteroAgent.antigravityQuota.stale":`Showing the last query. Refresh to confirm current quota.`,"heteroAgent.antigravityQuota.authRequired":`Sign in with agy on the execution device, then try again.`,"heteroAgent.antigravityQuota.cliNotFound":`Antigravity CLI was not found on this device. Install agy, then refresh.`,"heteroAgent.antigravityQuota.unsupported":`Update agy to a version that supports structured quota queries, then refresh.`,"heteroAgent.antigravityQuota.timeout":`The quota query timed out. Check the device connection and try again.`,"heteroAgent.antigravityQuota.error":`Could not query Antigravity quota. Check the device and try again.`,"sharePage.app.open":`Open app`,"sharePage.app.help":`Trouble opening the app?`,"sharePage.app.helpDescription":`If this browser prevents opening the app, use its menu to open this page in your system browser. You can also keep reading here.`,"sharePage.app.browserGuide.dismiss":`Got it`,"sharePage.app.browserGuide.stepMenu":`Tap ··· in the top-right corner`,"sharePage.app.browserGuide.stepOpen":`Choose “Open in Browser” or a similar option`,"sharePage.app.browserGuide.title.dingtalk":`DingTalk can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.qq":`QQ can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.wechat":`WeChat can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.weibo":`Weibo can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.fallback.desc":`You may not have the LobeHub app yet, or this browser blocked the jump.`,"sharePage.app.fallback.dismiss":`Keep reading`,"sharePage.app.fallback.download":`Get the app`,"sharePage.app.fallback.title":`App didn’t open?`,newAntigravityAgent:`Add Antigravity`,"backgroundActivity.alertDesc":`{{name}} is using {{memory}} of memory and {{cpu}} CPU.`,"backgroundActivity.cpu":`CPU`,"backgroundActivity.details":`View details`,"backgroundActivity.empty":`No background activity`,"backgroundActivity.emptyDesc":`Dev servers, shells, and agents started from conversations appear here while they run.`,"backgroundActivity.highUsage":`High resource usage`,"backgroundActivity.memory":`Memory`,"backgroundActivity.processCount_one":`{{count}} process`,"backgroundActivity.processCount_other":`{{count}} processes`,"backgroundActivity.retry":`Retry`,"backgroundActivity.shared":`Shared / unassigned`,"backgroundActivity.stop":`Stop`,"backgroundActivity.stopFailed":`Could not stop this activity. Try again.`,"backgroundActivity.title":`Background activity`,"backgroundActivity.topic":`Conversation`,"backgroundActivity.unavailable":`Resource data is unavailable. Displayed values may be out of date.`,"heteroAgent.claudeQuota.accountNotSignedIn":`The Claude Code account {{account}} isn't signed in on this device. Sign in to it from Manage accounts, or switch to another account.`,"heteroAgent.claudeQuota.accountResolveFailed":`Couldn't look up this Claude Code account's login on this device. Try again, or switch to another account.`,"heteroAgent.claudeQuota.manage.add":`Add account`,"heteroAgent.claudeQuota.manage.addHintDesktop":`Each account signs in on this device; runs use the account you pick.`,"heteroAgent.claudeQuota.manage.loginFailed":`Sign-in didn't finish. Try again.`,"heteroAgent.claudeQuota.manage.loginSuccess":`Signed in as {{account}}`,"heteroAgent.claudeQuota.manage.loginWaiting":`Finish signing in in your browser…`,"heteroAgent.claudeQuota.manage.notSignedIn":`Not signed in on this device`,"heteroAgent.claudeQuota.manage.notSignedInOnDevice":`That account isn't signed in on this device yet. Sign in there first.`,"heteroAgent.claudeQuota.manage.switchFailed":`Couldn't switch the account. Try again.`,"heteroAgent.claudeQuota.manage.signIn":`Sign in`,"heteroAgent.claudeQuota.noRunnableAccount":`None of the Claude Code accounts in this agent's rotation are signed in on this device. Sign one in from Manage accounts, or add a signed-in account to the rotation.`,"processExplorer.copyPid":`Copy PID`,"processExplorer.filter":`Filter`,"processExplorer.live":`Live · updates every 2 s`,"processExplorer.name":`Name`,"processExplorer.processes":`Processes`,"processExplorer.gpu":`GPU`,"processExplorer.main":`Main process`,"processExplorer.pid":`PID`,"processExplorer.title":`Process Explorer`,"processExplorer.updated":`Updated {{time}}`,"processExplorer.utility":`Utility`,"processExplorer.window":`Window`,"response.contentSafetyNotice":`This reply was limited for content safety reasons. If this happens often, you may temporarily lose access to this model.`,"goalBatch.cell.accepted":`Accepted`,"goalBatch.cell.backlog":`Not run`,"goalBatch.cell.done":`Done`,"goalBatch.cell.human":`Needs you`,"goalBatch.cell.reopened":`Reopened in v{{revision}}`,"goalBatch.cell.runIn":`Runs in v{{revision}}`,"goalBatch.cell.running":`Running`,"goalBatch.cell.stale":`Superseded`,"goalBatch.cell.tooltip":`Wave {{wave}} · item {{index}} · {{title}} · {{state}}`,"goalBatch.enter":`Open`,"goalBatch.planPanel.compare":`Compare versions`,"goalBatch.planPanel.compareTitle":`Compare plan versions`,"goalBatch.planPanel.forked":`A forked plan: it starts again from the batch’s original outline instead of revising the previous version`,"goalBatch.planPanel.latest":`v{{revision}} · latest`,"goalBatch.planPanel.same":`Same as v{{base}}`,"goalBatch.probes.attemptNext":`Next run`,"goalBatch.probes.attemptOf":`Run {{current}} / {{total}}`,"goalBatch.probes.attemptPrevious":`Previous run`,"goalBatch.probes.cell.backlog":`Not started`,"goalBatch.probes.cell.done":`Done`,"goalBatch.probes.cell.human":`Needs you`,"goalBatch.probes.cell.running":`In progress`,"goalBatch.probes.cell.stale":`Superseded`,"goalBatch.gateCheck.axes_covered":`The trials covered every declared variant`,"goalBatch.gateCheck.count":`{{count}} / {{total}}`,"goalBatch.gateCheck.no_open_decision":`No decision in the batch is waiting on a person`,"goalBatch.gateCheck.plan_written":`The batch plan is written`,"goalBatch.gateCheck.uncovered":`Not covered: {{values}}`,"goalBatch.gateCheck.interventions_accounted":`Every person’s intervention was accounted for`,"goalBatch.gateCheck.reverified":`The delivered units passed the retro’s criteria`,"goalBatch.retro.added":`{{count}} new`,"goalBatch.retro.changes":`{{count}} steps changed`,"goalBatch.retro.criteria":`{{block}} blocking · {{warn}} advisory`,"goalBatch.retro.hint":`What the execution ran into, kept in two layers: experience goes into the plan skill every unit loads, criteria go into the verifier every unit is judged on. The gate opens only after the retro.`,"goalBatch.retro.interventionsShort":`{{accounted}}/{{total}} accounted`,"goalBatch.retro.loosened":`{{count}} loosened, needs you`,"goalBatch.retro.mark.blocked":`Unaccounted`,"goalBatch.retro.mark.done":`Exp v{{skill}} · Crit v{{verifier}}`,"goalBatch.retro.mark.pending":`Retro owed`,"goalBatch.retro.mark.pendingHint":`This wave finished; its retro has not run yet`,"goalBatch.retro.mark.running":`In retro`,"goalBatch.retro.skill":`Experience · plan skill v{{version}}`,"goalBatch.retro.status.blocked":`Interventions not accounted for`,"goalBatch.retro.status.done":`Retro done`,"goalBatch.retro.status.running":`In retro`,"goalBatch.retro.summary.interventions":`{{accounted}}/{{total}} interventions accounted for`,"goalBatch.retro.summary.reverify":`Re-verified {{passed}}/{{total}}`,"goalBatch.retro.summary.skill":`Plan skill v{{version}}: {{count}} steps changed`,"goalBatch.retro.summary.verifier":`Verifier v{{version}}: {{added}} added, {{loosened}} loosened`,"goalBatch.retro.title":`Retro · cold start`,"goalBatch.retro.titleWave":`Retro · wave {{wave}} sent back`,"goalBatch.retro.verifier":`Criteria · verifier v{{version}}`,"goalBatch.gateCheck.units_settled":`Every unit this round finished`,"goalBatch.gateCheck.units_succeeded":`Every unit this round ran through on its own — none failed or was sent back`,"goalBatch.gatePanel.learned":`What this gate taught`,"goalBatch.gatePanel.learnedHint":`Written into the plan every later unit loads, and added to the acceptance each of them must pass.`,"goalBatch.gatePanel.checks":`Checks`,"goalBatch.gatePanel.checksAt":`Verdict {{index}} · {{time}}`,"goalBatch.gatePanel.checksPlanned":`Not judged yet — these will be checked`,"goalBatch.gatePanel.question":`Revise the plan and re-probe, or fork a fresh one for the units that broke?`,"goalBatch.gatePanel.releaseQuestion":`Every check passed. Review the deliveries and the plan — release the next wave, or send the plan back to revise?`,"goalBatch.gatePanel.history":`Verdicts`,"goalBatch.gatePanel.history.blocked":`Held: {{checks}}`,"goalBatch.gatePanel.history.empty":`No verdict yet`,"goalBatch.gatePanel.history.released":`Released wave {{wave}} ({{count}} units)`,"goalBatch.gatePanel.history.unrecorded":`Judged before verdicts were recorded — no detail kept`,"goalBatch.gatePanel.history.unit":`“{{title}}” failed its own check — the batch was held at once`,"goalBatch.gatePanel.next.checking":`Every unit finished — judged on the coordinator’s next step`,"goalBatch.gatePanel.next.human":`Waiting on you: revise the plan, or fork a fresh one for the units that broke`,"goalBatch.gatePanel.next.release":`Waiting on you: review the deliveries and the plan, then release the next wave or revise the plan`,"goalBatch.gatePanel.next.locked":`Judged automatically once this round’s {{count}} units finish`,"goalBatch.gatePanel.next.passed":`Released wave {{wave}} ({{count}} units) — judged again once it finishes`,"goalBatch.gatePanel.next.passedDone":`The whole roster is released`,"goalBatch.gatePanel.next.distilling":`The main Agent is updating the plan from what the probes ran into — judged once it is done`,"goalBatch.gatePanel.next.revising":`The main Agent is rewriting the plan from your correction`,"goalBatch.gatePanel.next.rejected":`Reopened as v{{revision}} on your decision`,"goalBatch.gatePanel.verdict":`Verdict`,"goalBatch.gate.checkCount":`{{count}} checks`,"goalBatch.gate.hintSection.execution":`Execution`,"goalBatch.gate.hintSection.retro":`Retro & criteria`,"goalBatch.gate.hintTitle":`Checked before the rest are released:`,"goalBatch.gate.status.checking":`Judging`,"goalBatch.gate.status.human":`Needs your decision`,"goalBatch.gate.status.locked":`Not judged`,"goalBatch.gate.status.passed":`Passed`,"goalBatch.gate.status.rejected":`Sent back`,"goalBatch.gate.title":`Release gate`,"goalBatch.gate.titleRound":`Release gate · v{{revision}}`,"goalBatch.overviewCount":`Total: {{count}} batches · {{nodes}} nodes`,"goalBatch.probes.hint":`{{count}} representative units run first — the most different ones and the hardest. The rest are released only once every one of them runs through automatically and you approve the release.`,"goalBatch.probes.status.done":`Trials done`,"goalBatch.probes.status.pending":`Not started`,"goalBatch.probes.status.running":`Trials running`,"goalBatch.probes.title":`Cold start · trials`,"goalBatch.probes.rowLabel":`Trials`,"goalBatch.redispatch.foot":`{{count}} units · on v{{revision}}`,"goalBatch.redispatch.fromProbe":`Reopened from trial {{index}}`,"goalBatch.redispatch.fromRound":`Reopened from v{{revision}}`,"goalBatch.redispatch.fromWave":`Reopened from wave {{wave}}, item {{index}}`,"goalBatch.redispatch.title":`Waves · v{{revision}}`,"goalBatch.redispatch.labelRound":`v{{revision}}`,"goalBatch.redispatch.reopenedRow":`Reopened`,"goalBatch.round.foot":`{{count}} units`,"goalBatch.round.reviseEdge":`Sent back · revise`,"goalBatch.round.title":`Round {{revision}}`,"goalBatch.status.done":`All done`,"goalBatch.status.held":`Waiting for your release`,"goalBatch.status.human":`{{count}} need you`,"goalBatch.status.pending":`Not started`,"goalBatch.status.running":`In progress`,"goalBatch.status.stale":`{{count}} superseded`,"goalBatch.skill.forked":`Plan skill v{{revision}} · new class`,"goalBatch.skill.title":`Plan skill v{{revision}}`,"goalBatch.template.forked":`Plan v{{revision}} · new class`,"goalBatch.template.title":`Plan v{{revision}}`,"goalBatch.templatePlain":`Batch plan`,"goalBatch.title":`Repeated batch`,"goalBatch.waves.foot":`{{count}} units / {{waves}} waves`,"goalBatch.waves.row":`W{{number}}`,"goalBatch.waves.title":`Waves`,"goalExperiment.continuedFrom":`Continued exploration`,"goalExperiment.drill":`Explore inside`,"goalExperiment.drillNamed":`Explore inside: {{title}}`,"goalExperiment.location":`Exploration location`,"goalExperiment.expandScope":`Expand this view`,"goalExperiment.collapseScope":`Collapse this view`,"goalExperiment.emptyGraph":`This experiment has no internal nodes yet.`,"goalExperiment.overviewCount":`Total: {{count}} experiments · {{nodes}} nodes`,"goalExperiment.expandAll":`Expand all`,"goalExperiment.collapseAll":`Collapse all`,"goalExperiment.collapseNamed":`Collapse experiment: {{title}}`,"goalExperiment.projectedRelation":`{{relation}} (internal link)`,"goalExperiment.baseline":`Starting experiment · no parent experiment`,"goalExperiment.noResult":`No result has been recorded for this experiment yet.`,"goalExperiment.number":`Experiment #{{number}}`,"goalExperiment.execution":`Execution history`,"goalExperiment.delivery":`View delivery`,"goalExperiment.answers":`Candidate answer`,"goalExperiment.root":`All exploration`,"goalExperiment.inspect":`Experiment details`,"goalExperiment.members":`{{count}} nodes`,"goalExperiment.enter":`Expand in this graph`,"goalExperiment.status.proposed":`Not started`,"goalExperiment.status.active":`Exploring`,"goalExperiment.status.waiting":`Waiting for a decision`,"goalExperiment.status.resolved":`Work completed`,"goalExperiment.status.rejected":`Rejected`,"goalExperiment.status.retired":`Retired`,"goalExperiment.acceptance":`View verification`,"goalExperiment.result":`Experiment results`,"goalExperiment.lineage":`Experiment lineage`,"goalExperiment.parentLink":`From #{{number}} · {{title}}`,"goalExperiment.childLink":`Continued as #{{number}} · {{title}}`,"goalExperiment.instruction":`What this experiment tests`,"goalExperiment.inputs":`Pinned input versions ({{count}})`,"goalExperiment.inputHint":`These are version references recorded when the experiment was created. Execution history contains the actual dispatched input.`,"goalExperiment.unavailableInput":`Referenced work is unavailable`,"ModelSwitch.title":`Model`,active:`Active`,"audioPlayer.download":`Download audio`,"audioPlayer.pause":`Pause audio`,"audioPlayer.play":`Play audio`,"audioPlayer.seek":`Seek audio`,"agentBuilder.installPlugin.authRequired":`Cloud MCP requires sign-in to continue`,"agentBuilder.installPlugin.cancel":`Cancel`,"agentBuilder.installPlugin.clickApproveToConnect":`Click "Approve" to connect and authorize this Integration`,"agentBuilder.installPlugin.clickApproveToInstall":`Click "Approve" to install this Skill`,"agentBuilder.installPlugin.connectedAndEnabled":`Connected and enabled`,"agentBuilder.installPlugin.connectionFailed":`Connection failed. Retry, or check authorization and network settings.`,"agentBuilder.installPlugin.installFailed":`Installation failed. Retry, or view details and try again.`,"agentBuilder.installPlugin.installPlugin":`Install Skill`,"agentBuilder.installPlugin.installToEnable":`Install to enable this Skill for the Agent (you can do it later)`,"agentBuilder.installPlugin.installedAndEnabled":`Installed and enabled`,"agentBuilder.installPlugin.requiresAuth":`Requires authorization. Click "Approve" to connect`,"agentBuilder.installPlugin.retry":`Retry`,"agentBuilder.title":`Agent Builder`,"agentBuilder.welcome":`Tell me your use case.
171
171
 
172
172
  Writing, coding, or data analysis—anything works. You own the goal and standards; I’ll break it down into collaborative, runnable Agents.`,"agentConfigError.retry":`Retry`,"agentConfigError.title":`Failed to load agent settings`,agentDefaultMessage:`Hi, I’m **{{name}}**. One sentence is enough.
173
173
 
package/dist/index.js CHANGED
@@ -9957,6 +9957,11 @@ var init_upload = __esmMin((() => {
9957
9957
  */
9958
9958
  ratio: number$1().optional(),
9959
9959
  /**
9960
+ * base64 ThumbHash of the image, recorded for images so consumers can paint a
9961
+ * blurred placeholder before the file loads
9962
+ */
9963
+ thumbhash: string().optional(),
9964
+ /**
9960
9965
  * intrinsic image width in pixels, recorded for images
9961
9966
  */
9962
9967
  width: number$1().optional()
package/man/man1/lh.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Code generated by `npm run man:generate`; DO NOT EDIT.
2
2
  .\" Manual command details come from the Commander command tree.
3
- .TH LH 1 "" "@lobehub/cli 0.0.205" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.207" "User Commands"
4
4
  .SH NAME
5
5
  lh \- LobeHub CLI \- manage and connect to LobeHub services
6
6
  .SH SYNOPSIS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/cli",
3
- "version": "0.0.205",
3
+ "version": "0.0.207",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/lobehub/lobehub",
@@ -83,5 +83,5 @@
83
83
  "access": "public",
84
84
  "registry": "https://registry.npmjs.org"
85
85
  },
86
- "gitHead": "4fb98730703100bfd3faac851a6d0eac09666812"
86
+ "gitHead": "2d1bf9b34312f5bcc06a275ac1e9d3dcabd743cb"
87
87
  }