@lobehub/cli 0.0.224 → 0.0.225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acceptance-report.html +1 -1
- package/dist/index.js +92 -266
- package/man/man1/lh.1 +1 -1
- package/package.json +2 -2
|
@@ -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=Mx,c=!oS.jitless,l=c&&cSe.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?qCe([],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)}}),RS=eS(`$ZodUnion`,(e,t)=>{jS.init(e,t),qx(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),qx(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),qx(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)))}),qx(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=>Ex(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=>JCe(t,r,e,i)):JCe(o,r,e,i)}}),Bwe=eS(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,RS.init(e,t);let n=e._zod.parse;qx(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)||Dx(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=Ox(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=Tx(()=>YCe(t));e._zod.parse=(i,a)=>{let o=i.value;if(!Mx(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)}}),Vwe=eS(`$ZodIntersection`,(e,t)=>{jS.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])=>XCe(e,t,n)):XCe(e,i,a)}}),Hwe=eS(`$ZodRecord`,(e,t)=>{jS.init(e,t);let n=oS.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Nx(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=>Vx(e,i,tS())),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(...zx(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...zx(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`&&yS.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=>Vx(e,i,tS())),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(...zx(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...zx(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}}),Uwe=eS(`$ZodEnum`,(e,t)=>{jS.init(e,t);let n=Cx(t.entries),r=new Set(n);e._zod.values=r,qx(e,`pattern`,e=>{let t=Cx(e.def.entries).filter(e=>lSe.has(typeof e));return RegExp(t.length?`^(${t.map(e=>Px(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}}),Wwe=eS(`$ZodLiteral`,(e,t)=>{jS.init(e,t);let n=new Set(t.values);e._zod.values=n,qx(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?Px(e):e?Px(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}}),Gwe=eS(`$ZodTransform`,(e,t)=>{jS.init(e,t),e._zod.optin=`optional`,oS.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new aS(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 iS;return n.value=i,n}}),zS=eS(`$ZodOptional`,(e,t)=>{jS.init(e,t),qx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,qx(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),qx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Ex(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=>ZCe(e,t)):ZCe(e,r)}return t.innerType._zod.run(e,n)}}),Kwe=eS(`$ZodExactOptional`,(e,t)=>{zS.init(e,t),qx(e,`values`,e=>e.def.innerType._zod.values),qx(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),qwe=eS(`$ZodNullable`,(e,t)=>{jS.init(e,t),qx(e,`optin`,e=>e.def.innerType._zod.optin),qx(e,`optout`,e=>e.def.innerType._zod.optout),qx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Ex(t.source)}|null)$`):void 0}),qx(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)}),Jwe=eS(`$ZodDefault`,(e,t)=>{jS.init(e,t),e._zod.optin=`defaulted`,qx(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=>QCe(e,t)):QCe(r,t)}}),Ywe=eS(`$ZodPrefault`,(e,t)=>{jS.init(e,t),e._zod.optin=`defaulted`,qx(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))}),Xwe=eS(`$ZodNonOptional`,(e,t)=>{jS.init(e,t),qx(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=>$Ce(t,e)):$Ce(i,e)}}),Zwe=eS(`$ZodCatch`,(e,t)=>{jS.init(e,t),qx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),qx(e,`optout`,e=>e.def.innerType._zod.optout),qx(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=>ewe(e,r,t,n)):ewe(e,r,t,n)}}),BS=eS(`$ZodPipe`,(e,t)=>{jS.init(e,t),qx(e,`values`,e=>e.def.in._zod.values),qx(e,`optin`,e=>e.def.in._zod.optin),qx(e,`optout`,e=>e.def.out._zod.optout),qx(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=>AS(e,t.in,n)):AS(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>AS(e,t.out,n)):AS(r,t.out,n)}}),Qwe=eS(`$ZodPreprocess`,(e,t)=>{BS.init(e,t)}),$we=eS(`$ZodReadonly`,(e,t)=>{jS.init(e,t),qx(e,`propValues`,e=>e.def.innerType._zod.propValues),qx(e,`values`,e=>e.def.innerType._zod.values),qx(e,`optin`,e=>e.def.innerType?._zod?.optin),qx(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(twe):twe(r)}}),eTe=eS(`$ZodLazy`,(e,t)=>{jS.init(e,t),Fxe(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),qx(e,`pattern`,e=>e.innerType?._zod?.pattern),qx(e,`propValues`,e=>e.innerType?._zod?.propValues),qx(e,`optin`,e=>e.innerType?._zod?.optin??void 0),qx(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),tTe=eS(`$ZodCustom`,(e,t)=>{xS.init(e,t),jS.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=>nwe(t,n,r,e));nwe(i,n,r,e)}})}));function nTe(e){return typeof e==`object`&&!!e}function HS(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function US(e,t,n){let r=KS.get(e);if(r!==void 0)return r?YS:qS;if(t.has(e))return YS;t.add(e);let i=qS,a=e=>{if(i!==YS&&e?._zod){let r=US(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=qS;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?JS:o.value?._zod?US(o.value,t,n):qS;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=Ox(c);s(e?o(e,!0):JS),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?US(r,t,!1):JS);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),rTe(e,i)}function rTe(e,t){return t!==JS&&KS.set(e,t===YS),t}function iTe(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function aTe(){return cTe}function oTe(e,t){let n=e[WS]?.backEdges;return n!==void 0&&nTe(t)&&n.has(t)}var sTe,WS,GS,KS,qS,JS,YS,XS,ZS,cTe,lTe=o((()=>{$x(),sTe=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},WS=`~memo`,GS=[],KS=new WeakMap,qS=0,JS=1,YS=2,ZS=[],cTe={alloc(e,t,n){let r=XS;if(!r)return n;XS=void 0;let i={value:n,issues:null};return r.set(t.value,i),ZS.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`&&oTe(n,e.value))throw new sTe;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=US(e,new Set,!1);if(i===qS)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===YS||r?n=!0:r=!0}let l=s.value;if(!nTe(l))return t(s,c);let u=c[WS];u||(u={buckets:new WeakMap,backEdges:void 0},c[WS]=u);let d;i===c?d=a:(d=iTe(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(...HS(f.issues)):(s.memo=!0,u.backEdges??=new WeakSet,u.backEdges.add(f.value)),s;XS=d;let p=ZS.length,m=t(s,c);XS=void 0;let h=ZS.length>p?ZS.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?HS(e.issues):GS),e)):(h&&(h.issues=m.issues.length?HS(m.issues):GS),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}}}));function uTe(){return{localeError:dTe()}}var dTe,QS=o((()=>{$x(),dTe=()=>{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(eSe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Hxe(e.values[0])}`:`Invalid option: expected one of ${Mxe(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`:``}: ${Mxe(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 fTe(){return new mTe}var pTe,mTe,$S,eC=o((()=>{mTe=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)}},(pTe=globalThis).__zod_globalRegistry??(pTe.__zod_globalRegistry=fTe()),$S=globalThis.__zod_globalRegistry})),hTe=o((()=>{}));function gTe(e){return e.checks&&=[...e.checks],e}function _Te(e,t){return new e(gTe({type:`string`,...Ix(t)}))}function vTe(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Ix(t)})}function yTe(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Ix(t)})}function bTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Ix(t)})}function xTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Ix(t)})}function STe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Ix(t)})}function CTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Ix(t)})}function wTe(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Ix(t)})}function TTe(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Ix(t)})}function ETe(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Ix(t)})}function DTe(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Ix(t)})}function OTe(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Ix(t)})}function kTe(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Ix(t)})}function ATe(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Ix(t)})}function jTe(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Ix(t)})}function MTe(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Ix(t)})}function NTe(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Ix(t)})}function PTe(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Ix(t)})}function FTe(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Ix(t)})}function ITe(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Ix(t)})}function LTe(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Ix(t)})}function RTe(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Ix(t)})}function zTe(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Ix(t)})}function BTe(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Ix(t)})}function VTe(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Ix(t)})}function HTe(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Ix(t)})}function UTe(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Ix(t)})}function WTe(e,t){return new e(gTe({type:`number`,checks:[],...Ix(t)}))}function GTe(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Ix(t)})}function KTe(e,t){return new e({type:`boolean`,...Ix(t)})}function qTe(e,t){return new e({type:`undefined`,...Ix(t)})}function JTe(e,t){return new e({type:`null`,...Ix(t)})}function YTe(e){return new e({type:`any`})}function XTe(e){return new e({type:`unknown`})}function ZTe(e,t){return new e({type:`never`,...Ix(t)})}function QTe(e,t){return new e({type:`date`,coerce:!0,...Ix(t)})}function $Te(e,t){return new wS({check:`less_than`,...Ix(t),value:e,inclusive:!1})}function tC(e,t){return new wS({check:`less_than`,...Ix(t),value:e,inclusive:!0})}function eEe(e,t){return new TS({check:`greater_than`,...Ix(t),value:e,inclusive:!1})}function nC(e,t){return new TS({check:`greater_than`,...Ix(t),value:e,inclusive:!0})}function tEe(e,t){return new gCe({check:`multiple_of`,...Ix(t),value:e})}function nEe(e,t){return new vCe({check:`max_length`,...Ix(t),maximum:e})}function rC(e,t){return new yCe({check:`min_length`,...Ix(t),minimum:e})}function rEe(e,t){return new bCe({check:`length_equals`,...Ix(t),length:e})}function iEe(e,t){return new xCe({check:`string_format`,format:`regex`,...Ix(t),pattern:e})}function aEe(e){return new SCe({check:`string_format`,format:`lowercase`,...Ix(e)})}function oEe(e){return new CCe({check:`string_format`,format:`uppercase`,...Ix(e)})}function sEe(e,t){return new wCe({check:`string_format`,format:`includes`,...Ix(t),includes:e})}function cEe(e,t){return new TCe({check:`string_format`,format:`starts_with`,...Ix(t),prefix:e})}function lEe(e,t){return new ECe({check:`string_format`,format:`ends_with`,...Ix(t),suffix:e})}function iC(e){return new DCe({check:`overwrite`,tx:e})}function uEe(e){return iC(t=>t.normalize(e))}function dEe(){return iC(e=>e.trim())}function fEe(){return iC(e=>e.toLowerCase())}function pEe(){return iC(e=>e.toUpperCase())}function mEe(){return iC(e=>Bxe(e))}function hEe(e,t,n){return new e({type:`array`,element:t,...Ix(n)})}function gEe(e,t,n){let r=Ix(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function _Ee(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Ix(n)})}function vEe(e,t){let n=yEe(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Wx(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(Wx(r))}},e(t.value,t)),t);return n}function yEe(e,t){let n=new xS({check:`custom`,...Ix(t)});return n._zod.check=e,n}var bEe=o((()=>{DS(),$x()}));function aC(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&Dx(e,t,n[t]);return e}function xEe(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??$S,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 oC(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 sC(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,sC(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&aC(o.schema,c),t.io===`input`&&lC(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 SEe(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function CEe(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}/${SEe(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+SEe(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 wEe(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;wEe(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 TEe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function cC(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!uC.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]??TEe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}Dx(n,r,e.length===1?e[0]:cC(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=TEe(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 EEe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of uC)if(t in e)return;let n=t.filter(e=>dC.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=cC(t);else{let e=n[0],i=dC.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=>cC([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,aC(e,r))}function DEe(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)):aC(i,s),aC(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())wEe(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)??[])EEe(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)}aC(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,Dx(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:fC(t,`input`,e.processors),output:fC(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function lC(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 lC(r.element,n);if(r.type===`set`)return lC(r.valueType,n);if(r.type===`lazy`)return lC(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 lC(r.innerType,n);if(r.type===`intersection`)return lC(r.left,n)||lC(r.right,n);if(r.type===`record`||r.type===`map`)return lC(r.keyType,n)||lC(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:lC(r.in,n)||lC(r.out,n);if(r.type===`object`){for(let e in r.shape)if(lC(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(lC(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(lC(e,n))return!0;return!!(r.rest&&lC(r.rest,n))}return!1}var uC,dC,OEe,fC,pC=o((()=>{eC(),$x(),uC=new Set([`type`,`properties`,`required`,`additionalProperties`]),dC=[`oneOf`,`anyOf`],OEe=(e,t={})=>n=>{let r=xEe({...n,processors:t});return sC(e,r),CEe(r,e),DEe(r,e)},fC=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=xEe({...i??{},target:a,io:t,processors:n});return sC(e,o),CEe(o,e),DEe(o,e)}}));function mC(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)jEe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&_C(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&_C(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&vC(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&vC(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&bC(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&SC(t,i.mime);for(let e of i.patterns??[])xC(t,e);return t}function hC(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?hC(t.out):t.type===`catch`?hC(t.innerType):e._zod.optin}function gC(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=gC(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=>gC(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`)?yS:uCe).source),p):p}function kEe(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 OC.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=gC(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 AEe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(oC(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),kC):JSON.parse(o)}var _C,vC,yC,bC,xC,SC,CC,wC,TC,EC,jEe,MEe,NEe,DC,PEe,FEe,IEe,LEe,REe,zEe,BEe,VEe,HEe,UEe,WEe,GEe,KEe,qEe,JEe,YEe,XEe,OC,ZEe,QEe,$Ee,kC,eDe,tDe,nDe,rDe,iDe,AC,aDe,jC=o((()=>{bS(),VS(),pC(),$x(),_C=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},vC=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},yC=(e,t)=>{_C(e,`minimum`,t),vC(e,`maximum`,t)},bC=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},xC=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},SC=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},CC=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},wC=(e,t)=>_C(e,`minimum`,t.minimum),TC=(e,t)=>vC(e,`maximum`,t.maximum),EC=e=>(t,n)=>{CC(t,n.format);let[r,i]=e[n.format];_C(t,`minimum`,r),vC(t,`maximum`,i)},jEe={greater_than:(e,t)=>_C(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>vC(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>bC(e,t.value),number_format:EC(Xx),bigint_format:EC(uSe),min_length:wC,max_length:TC,length_equals:(e,t)=>yC(e,t.length),min_size:wC,max_size:TC,size_equals:(e,t)=>yC(e,t.size),string_format:(e,t)=>{CC(e,t.format),t.pattern&&xC(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)=>SC(e,t.mime)},MEe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},NEe=new Map([[FS,iCe],[IS,aCe]]),DC=e=>NEe.get(e)??e,PEe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=mC(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=MEe[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(DC);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}))])}},FEe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=mC(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)):oC(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}))])}},IEe=(e,t,n,r)=>{n.type=`boolean`},LEe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},REe=(e,t,n,r)=>{oC(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},zEe=(e,t,n,r)=>{n.not={}},BEe=(e,t,n,r)=>{},VEe=(e,t,n,r)=>{},HEe=(e,t,n,r)=>{oC(e,t,n,r,`Date cannot be represented in JSON Schema`)},UEe=(e,t,n,r)=>{let i=e._zod.def,a=Cx(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},WEe=(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(oC(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(oC(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},GEe=(e,t,n,r)=>{oC(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},KEe=(e,t,n,r)=>{oC(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},qEe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=mC(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=sC(a.element,t,{...r,path:[...r.path,`items`]})},JEe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&oC(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Dx(i.properties,e,sC(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`?hC(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=sC(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},YEe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>sC(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},XEe=(e,t,n,r)=>{let i=e._zod.def,a=sC(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=sC(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)},OC=new WeakMap,ZEe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=mC(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=sC(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Dx(i.patternProperties,DC(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=sC(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=OC.get(t);n||(n=[],OC.set(t,n),t.deferred.push(()=>kEe(t))),n.push(e)}i.additionalProperties=sC(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&hC(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))}},QEe=(e,t,n,r)=>{let i=e._zod.def,a=sC(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`}]},$Ee=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},kC=Symbol(),eDe=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=AEe(i.defaultValue,e,t,n,r);o!==kC&&(n.default=o)},tDe=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=AEe(i.defaultValue,e,t,n,r);o!==kC&&(n._prefault=o)},nDe=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{oC(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},rDe=(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;sC(o,t,r);let s=t.seen.get(e);s.ref=o},iDe=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},AC=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},aDe=(e,t,n,r)=>{let i=e._zod.innerType;sC(i,t,r);let a=t.seen.get(e);a.ref=i}})),MC=o((()=>{sS(),RSe(),CSe(),VS(),lTe(),DS(),jCe(),$x(),bS(),QS(),eC(),kCe(),hTe(),bEe(),pC(),jC(),pC()})),NC=o((()=>{MC()}));function PC(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 FC,oDe,IC,sDe=o((()=>{MC(),$x(),FC=new WeakSet([Object.prototype,Error.prototype]),oDe=(e,t)=>{SSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);FC.has(n)||(FC.add(n),PC(n,`format`,e=>t=>bSe(e,t)),PC(n,`flatten`,e=>t=>ySe(e,t)),PC(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,wx,2)}),PC(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,wx,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},IC=eS(`ZodError`,oDe,void 0,{Parent:Error})})),cDe,lDe,uDe,dDe,fDe,pDe,mDe,hDe,gDe,_De,vDe,yDe,bDe=o((()=>{MC(),sDe(),cDe=fS(IC),lDe=pS(IC),uDe=mS(IC),dDe=hS(IC),fDe=ASe(IC),pDe=jSe(IC),mDe=MSe(IC),hDe=NSe(IC),gDe=PSe(IC),_De=FSe(IC),vDe=ISe(IC),yDe=LSe(IC)}));function xDe(){oS.localeError||tS(uTe())}function LC(){oS.memoizer||tS({memoizer:aTe()})}function H(e){return _Te(VDe,e)}function RC(e){return WTe(rw,e)}function SDe(e){return GTe(lOe,e)}function zC(e){return KTe(uOe,e)}function CDe(e){return qTe(dOe,e)}function wDe(e){return JTe(fOe,e)}function BC(){return YTe(pOe)}function VC(){return XTe(mOe)}function TDe(e){return ZTe(hOe,e)}function HC(e,t){return hEe(_Oe,e,t)}function UC(e,t){return new iw({type:`object`,shape:e??{},...Ix(t)})}function EDe(e,t){return new iw({type:`object`,shape:e,catchall:TDe(),...Ix(t)})}function WC(e,t){return new aw({type:`union`,options:e,...Ix(t)})}function GC(e,t,n){return new vOe({type:`union`,options:t,discriminator:e,...Ix(n)})}function DDe(e,t){return new yOe({type:`intersection`,left:e,right:t})}function KC(e,t,n){return!t||!t._zod?new ow({type:`record`,keyType:H(),valueType:e,...Ix(t)}):new ow({type:`record`,keyType:e,valueType:t,...Ix(n)})}function qC(e,t){return new sw({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Ix(t)})}function JC(e,t){return new sw({type:`enum`,entries:e,...Ix(t)})}function YC(e,t){return new bOe({type:`literal`,values:Array.isArray(e)?e:[e],...Ix(t)})}function ODe(e){return new xOe({type:`transform`,transform:e})}function kDe(e){return new cw({type:`optional`,innerType:e})}function ADe(e){return new lw({type:`optional`,innerType:e})}function jDe(e){return new SOe({type:`nullable`,innerType:e})}function MDe(e,t){return new COe({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Vxe(t)}})}function NDe(e,t){return new wOe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Vxe(t)}})}function PDe(e,t){return new uw({type:`nonoptional`,innerType:e,...Ix(t)})}function FDe(e,t){return new TOe({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:oSe(t)})}function IDe(e,t){return new dw({type:`pipe`,in:e,out:t})}function LDe(e){return new DOe({type:`readonly`,innerType:e})}function RDe(e){return new OOe({type:`lazy`,getter:e})}function XC(e,t){return gEe(fw,e??(()=>!0),t)}function zDe(e,t={}){return _Ee(fw,e,t)}function BDe(e,t){return vEe(e,t)}function ZC(e,t){return new EOe({type:`pipe`,in:ODe(e),out:t})}var QC,$C,VDe,ew,tw,HDe,UDe,WDe,GDe,KDe,nw,qDe,JDe,YDe,XDe,ZDe,QDe,$De,eOe,tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,rw,lOe,uOe,dOe,fOe,pOe,mOe,hOe,gOe,_Oe,iw,aw,vOe,yOe,ow,sw,bOe,xOe,cw,lw,SOe,COe,wOe,uw,TOe,dw,EOe,DOe,OOe,fw,pw=o((()=>{MC(),jC(),pC(),QS(),NC(),bDe(),QC=eS(`ZodType`,(e,t)=>(xDe(),jS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(jx(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 Fx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(zDe(e,t))},superRefine(e,t){return this.check(BDe(e,t))},overwrite(e){return this.check(iC(e))},optional(){return kDe(this)},exactOptional(){return ADe(this)},nullable(){return jDe(this)},nullish(){return kDe(jDe(this))},nonoptional(e){return PDe(this,e)},array(){return HC(this)},or(e){return WC([this,e])},and(e){return DDe(this,e)},transform(e){return IDe(this,ODe(e))},default(e){return MDe(this,e)},prefault(e){return NDe(this,e)},catch(e){return FDe(this,e)},pipe(e){return IDe(this,e)},readonly(){return LDe(this)},describe(e){let t=this.clone();return $S.add(t,{description:e}),t},meta(...e){if(e.length===0)return $S.get(this);let t=this.clone();return $S.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 nSe(this,`~standard`,{...NCe(this),jsonSchema:{input:fC(this,`input`),output:fC(this,`output`)}})},set"~standard"(e){Gx(this,`~standard`,e)},parse:function e(t,n){return cDe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await lDe(this,t,n,{callee:e})},safeParse(e,t){return uDe(this,e,t)},async safeParseAsync(e,t){return dDe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Gx(this,`spa`,e)},validate(e,t){return OSe(this,e,t)},validateAsync(e,t){return kSe(this,e,t)},encode:function e(t,n){return fDe(this,t,n,{callee:e})},decode:function e(t,n){return pDe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await mDe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await hDe(this,t,n,{callee:e})},safeEncode(e,t){return gDe(this,e,t)},safeDecode(e,t){return _De(this,e,t)},async safeEncodeAsync(e,t){return vDe(this,e,t)},async safeDecodeAsync(e,t){return yDe(this,e,t)},toJSONSchema(e){return OEe(this,{})(e)},get description(){return $S.get(this)?.description},get _def(){return this._zod.def}}),$C=eS(`_ZodString`,(e,t)=>{NS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PEe(e,t,n,r)},Kx({format:e=>mC(e).format??null,minLength:e=>mC(e).minimum??null,maxLength:e=>mC(e).maximum??null},{regex(...e){return this.check(iEe(...e))},includes(...e){return this.check(sEe(...e))},startsWith(...e){return this.check(cEe(...e))},endsWith(...e){return this.check(lEe(...e))},min(...e){return this.check(rC(...e))},max(...e){return this.check(nEe(...e))},length(...e){return this.check(rEe(...e))},nonempty(...e){return this.check(rC(1,...e))},lowercase(e){return this.check(aEe(e))},uppercase(e){return this.check(oEe(e))},trim(){return this.check(dEe())},normalize(...e){return this.check(uEe(...e))},toLowerCase(){return this.check(fEe())},toUpperCase(){return this.check(pEe())},slugify(){return this.check(mEe())}})),VDe=eS(`ZodString`,(e,t)=>{NS.init(e,t),$C.init(e,t)},{email(e){return this.check(vTe(GDe,e))},url(e){return this.check(wTe(qDe,e))},jwt(e){return this.check(zTe(cOe,e))},emoji(e){return this.check(TTe(JDe,e))},guid(e){return this.check(yTe(KDe,e))},uuid(e){return this.check(bTe(nw,e))},uuidv4(e){return this.check(xTe(nw,e))},uuidv6(e){return this.check(STe(nw,e))},uuidv7(e){return this.check(CTe(nw,e))},nanoid(e){return this.check(ETe(YDe,e))},cuid(e){return this.check(DTe(XDe,e))},cuid2(e){return this.check(OTe(ZDe,e))},ulid(e){return this.check(kTe(QDe,e))},base64(e){return this.check(ITe(aOe,e))},base64url(e){return this.check(LTe(oOe,e))},xid(e){return this.check(ATe($De,e))},ksuid(e){return this.check(jTe(eOe,e))},ipv4(e){return this.check(MTe(tOe,e))},ipv6(e){return this.check(NTe(nOe,e))},cidrv4(e){return this.check(PTe(rOe,e))},cidrv6(e){return this.check(FTe(iOe,e))},e164(e){return this.check(RTe(sOe,e))},datetime(e){return this.check(BTe(tw,e))},date(e){return this.check(VTe(HDe,e))},time(e){return this.check(HTe(UDe,e))},duration(e){return this.check(UTe(WDe,e))}}),ew=eS(`ZodStringFormat`,(e,t)=>{PS.init(e,t),$C.init(e,t)}),tw=eS(`ZodISODateTime`,(e,t)=>{hwe.init(e,t),ew.init(e,t)}),HDe=eS(`ZodISODate`,(e,t)=>{gwe.init(e,t),ew.init(e,t)}),UDe=eS(`ZodISOTime`,(e,t)=>{_we.init(e,t),ew.init(e,t)}),WDe=eS(`ZodISODuration`,(e,t)=>{vwe.init(e,t),ew.init(e,t)}),GDe=eS(`ZodEmail`,(e,t)=>{awe.init(e,t),ew.init(e,t)}),KDe=eS(`ZodGUID`,(e,t)=>{rwe.init(e,t),ew.init(e,t)}),nw=eS(`ZodUUID`,(e,t)=>{iwe.init(e,t),ew.init(e,t)}),qDe=eS(`ZodURL`,(e,t)=>{swe.init(e,t),ew.init(e,t)}),JDe=eS(`ZodEmoji`,(e,t)=>{cwe.init(e,t),ew.init(e,t)}),YDe=eS(`ZodNanoID`,(e,t)=>{lwe.init(e,t),ew.init(e,t)}),XDe=eS(`ZodCUID`,(e,t)=>{uwe.init(e,t),ew.init(e,t)}),ZDe=eS(`ZodCUID2`,(e,t)=>{dwe.init(e,t),ew.init(e,t)}),QDe=eS(`ZodULID`,(e,t)=>{fwe.init(e,t),ew.init(e,t)}),$De=eS(`ZodXID`,(e,t)=>{pwe.init(e,t),ew.init(e,t)}),eOe=eS(`ZodKSUID`,(e,t)=>{mwe.init(e,t),ew.init(e,t)}),tOe=eS(`ZodIPv4`,(e,t)=>{ywe.init(e,t),ew.init(e,t)}),nOe=eS(`ZodIPv6`,(e,t)=>{xwe.init(e,t),ew.init(e,t)}),rOe=eS(`ZodCIDRv4`,(e,t)=>{Swe.init(e,t),ew.init(e,t)}),iOe=eS(`ZodCIDRv6`,(e,t)=>{Cwe.init(e,t),ew.init(e,t)}),aOe=eS(`ZodBase64`,(e,t)=>{wwe.init(e,t),ew.init(e,t)}),oOe=eS(`ZodBase64URL`,(e,t)=>{Twe.init(e,t),ew.init(e,t)}),sOe=eS(`ZodE164`,(e,t)=>{Ewe.init(e,t),ew.init(e,t)}),cOe=eS(`ZodJWT`,(e,t)=>{Dwe.init(e,t),ew.init(e,t)}),rw=eS(`ZodNumber`,(e,t)=>{LS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FEe(e,t,n,r),e.isFinite=!0},Kx({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=mC(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=mC(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=mC(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>mC(e).format??null},{gt(e,t){return this.check(eEe(e,t))},gte(e,t){return this.check(nC(e,t))},min(e,t){return this.check(nC(e,t))},lt(e,t){return this.check($Te(e,t))},lte(e,t){return this.check(tC(e,t))},max(e,t){return this.check(tC(e,t))},int(e){return this.check(SDe(e))},safe(e){return this.check(SDe(e))},positive(e){return this.check(eEe(0,e))},nonnegative(e){return this.check(nC(0,e))},negative(e){return this.check($Te(0,e))},nonpositive(e){return this.check(tC(0,e))},multipleOf(e,t){return this.check(tEe(e,t))},step(e,t){return this.check(tEe(e,t))},finite(){return this}})),lOe=eS(`ZodNumberFormat`,(e,t)=>{Owe.init(e,t),rw.init(e,t)}),uOe=eS(`ZodBoolean`,(e,t)=>{kwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IEe(e,t,n,r)}),dOe=eS(`ZodUndefined`,(e,t)=>{Awe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>REe(e,t,n,r)}),fOe=eS(`ZodNull`,(e,t)=>{jwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LEe(e,t,n,r)}),pOe=eS(`ZodAny`,(e,t)=>{Mwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BEe(e,t,n,r)}),mOe=eS(`ZodUnknown`,(e,t)=>{Nwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VEe(e,t,n,r)}),hOe=eS(`ZodNever`,(e,t)=>{Pwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zEe(e,t,n,r)}),gOe=eS(`ZodDate`,(e,t)=>{Fwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HEe(e,t,n,r),e.min=(t,n)=>e.check(nC(t,n)),e.max=(t,n)=>e.check(tC(t,n))},Kx({minDate:e=>{let{minimum:t}=mC(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=mC(e);return t?new Date(t):null}},{})),_Oe=eS(`ZodArray`,(e,t)=>{LC(),Iwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qEe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(rC(e,t))},nonempty(e){return this.check(rC(1,e))},max(e,t){return this.check(nEe(e,t))},length(e,t){return this.check(rEe(e,t))},unwrap(){return this.element}}),iw=eS(`ZodObject`,(e,t)=>{LC(),zwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JEe(e,t,n,r),aSe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return qC(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(jx(this._zod.def,{catchall:e}))},passthrough(){return this.clone(jx(this._zod.def,{catchall:VC()}))},loose(){return this.clone(jx(this._zod.def,{catchall:VC()}))},strict(){return this.clone(jx(this._zod.def,{catchall:TDe()}))},strip(){return this.clone(jx(this._zod.def,{catchall:void 0}))},extend(e){return Kxe(this,e)},safeExtend(e){return Jxe(this,e)},merge(e){return Yxe(this,e)},pick(e){return Wxe(this,e)},omit(e){return Gxe(this,e)},partial(...e){return Xxe(cw,this,e[0])},exactPartial(...e){return Xxe(lw,this,e[0],`exactPartial`)},required(...e){return Zxe(uw,this,e[0])}}),aw=eS(`ZodUnion`,(e,t)=>{RS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YEe(e,t,n,r),e.options=t.options}),vOe=eS(`ZodDiscriminatedUnion`,(e,t)=>{aw.init(e,t),Bwe.init(e,t)}),yOe=eS(`ZodIntersection`,(e,t)=>{Vwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XEe(e,t,n,r)}),ow=eS(`ZodRecord`,(e,t)=>{LC(),Hwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZEe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),sw=eS(`ZodEnum`,(e,t)=>{Uwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UEe(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 sw({...t,checks:[],...Ix(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 sw({...t,checks:[],...Ix(r),entries:i})}}),bOe=eS(`ZodLiteral`,(e,t)=>{Wwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WEe(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]}})}),xOe=eS(`ZodTransform`,(e,t)=>{LC(),Gwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KEe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new aS(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Wx(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(Wx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),cw=eS(`ZodOptional`,(e,t)=>{zS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),lw=eS(`ZodExactOptional`,(e,t)=>{Kwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),SOe=eS(`ZodNullable`,(e,t)=>{qwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),COe=eS(`ZodDefault`,(e,t)=>{Jwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),wOe=eS(`ZodPrefault`,(e,t)=>{Ywe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),uw=eS(`ZodNonOptional`,(e,t)=>{Xwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$Ee(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),TOe=eS(`ZodCatch`,(e,t)=>{Zwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),dw=eS(`ZodPipe`,(e,t)=>{BS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rDe(e,t,n,r),e.in=t.in,e.out=t.out}),EOe=eS(`ZodPreprocess`,(e,t)=>{dw.init(e,t),Qwe.init(e,t)}),DOe=eS(`ZodReadonly`,(e,t)=>{$we.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),OOe=eS(`ZodLazy`,(e,t)=>{eTe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),fw=eS(`ZodCustom`,(e,t)=>{tTe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GEe(e,t,n,r)})})),kOe,AOe=o((()=>{MC(),kOe||={}}));function jOe(e){return BTe(tw,e)}var MOe=o((()=>{MC(),pw()}));function mw(e){return QTe(gOe,e)}var NOe=o((()=>{MC(),pw()})),POe=o((()=>{MC(),pw(),NC(),sDe(),bDe(),AOe(),jC(),eC(),$x(),NC(),MOe(),pw(),VS(),QS(),NOe()})),hw=o((()=>{POe(),POe()})),gw,_w,vw,yw,FOe,bw,xw=o((()=>{hw(),gw=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],_w=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:gw,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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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`}],vw=_w.map(({type:e})=>e),qC(vw),yw=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],FOe=qC([...vw,...yw.map(({type:e})=>e)]),bw=[{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`}]})),Sw,Cw,ww,IOe,Tw,Ew,Dw,Ow,LOe,ROe,zOe,BOe,VOe,HOe,kw,UOe,Aw,WOe,GOe,KOe,qOe,JOe,YOe,XOe,ZOe,QOe,$Oe,eke,tke,nke,jw,Mw,rke,ike,ake,oke,ske,cke,Nw,Pw,lke,Fw,uke=o((()=>{jxe(),Sw=`default`,Cw=[`low`,`medium`,`high`,`ultra`],ww=[`low`,`medium`,`high`,`xhigh`,`max`],IOe=[`low`,`medium`,`high`,`xhigh`,`max`],Tw=[`low`,`medium`,`high`,`xhigh`],Ew=[`--effort`,`--reasoning-effort`],Dw=[`low`,`medium`,`high`,`xhigh`],Ow=[...Dw,`max`,`ultra`],LOe=`model_reasoning_effort`,ROe=[`low`,`high`,`max`],zOe=[`high`,`max`],BOe=[...Dw,`max`],VOe=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],HOe=[`gpt-6-astra`,`gpt-5.6-luna`],kw=[`low`,`medium`,`high`,`xhigh`,`max`],UOe=`--reasoning-effort`,Aw=[`low`,`medium`,`high`,`xhigh`,`max`],WOe=`--reasoning-effort`,GOe=`service_tier`,KOe=[`fast`,`priority`],qOe=e=>!!e&&Cw.includes(e),JOe=e=>!!e&&ww.includes(e),YOe=e=>!!e&&Ow.includes(e),XOe=e=>!!e&&Tw.includes(e),ZOe=e=>!!e&&kw.includes(e),QOe=e=>!!e&&Aw.includes(e),$Oe=e=>!!e&&KOe.includes(e),eke=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?ROe:e===`glm-5.2`?zOe:VOe.includes(e)?Ow:HOe.includes(e)?BOe:Dw,tke=e=>{let t=(yx(e?.args,`--mode`)??e?.mode)?.trim();return qOe(t)?t:Sw},nke=[`-m`,`--model`],jw=e=>{let t=(yx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:Sw},Mw=e=>{let t=(yx(e?.args,`--effort`)??e?.effort)?.trim();return JOe(t)?t:Sw},rke=e=>{let t=(bx(e?.args,nke)??Sx(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:Sw},ike=e=>{let t=(Sx(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return YOe(t)?t:Sw},ake=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:$Oe(t)?`fast`:Sw},oke=e=>{let t=(bx(e?.args,Ew)??e?.effort)?.trim();return XOe(t)?t:Sw},ske=e=>{let t=(yx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return ZOe(t)?t:Sw},cke=e=>{let t=(yx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return QOe(t)?t:Sw},Nw=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:Sw},Pw={flags:[`-m`,`--model`],kind:`flag`},lke={antigravity:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:(e,t)=>t?t.find(t=>t.id===e)?.effortLevels??[]:IOe,resolve:Mw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:jw,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:Cw,resolve:tke}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>ww,resolve:Mw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:jw,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>ww,resolve:Mw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:jw,source:`catalog`}},codex:{effort:{encodings:[{key:LOe,kind:`config`}],levels:eke,resolve:ike},model:{encodings:[Pw,{key:`model`,kind:`config`}],resolve:rke,source:`catalog`},speed:{encodings:[{key:GOe,kind:`config`}],resolve:ake}},copilot:{effort:{encodings:[{flags:[WOe],kind:`flag`}],levels:()=>Aw,resolve:cke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Nw,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Nw,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:Nw,source:`catalog`}},droid:{model:{encodings:[],resolve:Nw,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Nw,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:Ew,kind:`flag`}],levels:()=>Tw,resolve:oke},model:{encodings:[Pw],resolve:Nw,source:`catalog`}},"kimi-code":{model:{encodings:[Pw],resolve:Nw,source:`catalog`}},opencode:{model:{encodings:[Pw],resolve:Nw,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:Nw,source:`catalog`}},qoder:{effort:{encodings:[{flags:[UOe],kind:`flag`}],levels:()=>kw,resolve:ske},model:{encodings:[Pw],resolve:Nw,source:`catalog`}},trae:{model:{encodings:[],resolve:Nw,source:`catalog`}}},Fw=e=>lke[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),Fw(`copilot`),Fw(`grok-build`),Fw(`kimi-code`),Fw(`opencode`),Fw(`pi`),Fw(`qoder`)})),dke=o((()=>{})),fke=o((()=>{xw(),dke(),new Set([..._w.map(({type:e})=>e),...yw.map(({type:e})=>e),...bw.map(({type:e})=>e)])})),pke=o((()=>{})),mke=o((()=>{})),hke,gke,_ke,vke,yke=o((()=>{hw(),hke=UC({workingDirectory:H().optional()}),gke=UC({memory:UC({effort:qC([`low`,`medium`,`high`]).optional(),enabled:zC().optional(),toolPermission:qC([`read-only`,`read-write`]).optional()}).optional()}),_ke=UC({selfIteration:UC({enabled:zC().optional()}).optional()}),vke=UC({codexMaxReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:qC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:qC([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:qC([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:zC().optional(),disableGatewayMode:zC().optional(),effort:qC([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:zC().optional(),enableAgentMode:zC().optional(),toolMode:qC([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:zC().optional(),enableCompressHistory:zC().optional(),enableContextCompression:zC().optional(),enableFollowUpChips:zC().optional(),enableHistoryCount:zC().optional(),enableMaxTokens:zC().optional(),enableReasoning:zC().optional(),enableReasoningEffort:zC().optional(),enableStreaming:zC().optional(),enableStaleToolResultTrim:zC().optional(),gpt5ReasoningEffort:qC([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:qC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:qC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:qC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:qC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:qC([`high`,`max`]).optional(),glm5_3ReasoningEffort:qC([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:qC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:qC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:qC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:qC([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:qC([`high`,`xhigh`]).optional(),historyCount:RC().optional(),imageAspectRatio:H().optional(),imageAspectRatio2:H().optional(),imageResolution:qC([`1K`,`2K`,`4K`]).optional(),imageResolution2:qC([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:qC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:hke.optional(),preserveThinking:zC().optional(),reasoningBudgetToken:RC().optional(),reasoningBudgetToken32k:RC().optional(),reasoningBudgetToken80k:RC().optional(),reasoningEffort:qC([`low`,`medium`,`high`]).optional(),reasoningMode:qC([`standard`,`pro`]).optional(),searchFCModel:UC({model:H(),provider:H()}).optional(),searchMode:qC([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:qC([`low`,`high`]).optional(),skillActivateMode:qC([`auto`,`manual`]).optional(),textVerbosity:qC([`low`,`medium`,`high`]).optional(),thinking:qC([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:RC().optional(),thinkingLevel:qC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:qC([`low`,`high`]).optional(),thinkingLevel3:qC([`low`,`medium`,`high`]).optional(),thinkingLevel4:qC([`minimal`,`high`]).optional(),thinkingLevel5:qC([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:RC().default(25e3),topicGroupMode:qC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:zC().optional(),useModelBuiltinSearch:zC().optional()}).merge(gke).merge(_ke)})),bke=o((()=>{})),xke=o((()=>{})),Iw,Lw,Rw,zw,Ske,Cke,wke,Tke,Eke,Bw,Dke,Oke=o((()=>{Iw=`LobeHub Cloud`,Lw=`LobeHub`,Rw=`Lobe AI`,zw=`LobeHub`,Ske={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},Cke={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`},wke={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},Tke={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},Eke=`lobehub`,Bw=`© ${new Date().getFullYear()} ${zw}`,Dke=`${Bw}. All rights reserved.`})),kke,Ake,jke,Vw,Hw,Uw,Ww,Mke,Nke,Pke,Fke,Ike,Lke,Rke,zke,Bke,Vke,Hke,Uke,Wke,Gke,Kke=o((()=>{kke=`jev-1.14.0`,Ake=`typesafe`,jke=`openai`,Vw=`deepseek-v4-flash`,Hw=`deepseek`,Uw=`gpt-5.6-luna`,Ww=`openai`,Mke=`decision`,Nke=`gpt-6-luna:decision`,Pke=`openai`,Fke=`gpt-4o-mini-transcribe`,Ike=`openai`,Lke=`gemini-3-flash-preview`,Rke=`google`,zke=`gemini-3.8-flash`,Bke=`google`,Vke=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],Hke=`glm-5.3-flash`,Uke=`zhipu`,Wke=`deepseek-flash`,Gke=`deepseek`})),qke,Jke=o((()=>{qke=[]})),Yke,Xke=o((()=>{Yke=`chat_preview`})),Zke=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>Qke,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>Tke,BRANDING_INBOX_TITLE:()=>Rw,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>Lw,BRANDING_PROVIDER:()=>Eke,BRANDING_URL:()=>Ske,BUSINESS_OIDC_CLIENTS:()=>qke,COPYRIGHT:()=>Bw,COPYRIGHT_FULL:()=>Dke,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>Vke,DEFAULT_ASR_MODEL:()=>Fke,DEFAULT_ASR_PROVIDER:()=>Ike,DEFAULT_BOT_WAKE_ENGINE:()=>Mke,DEFAULT_BOT_WAKE_MODEL:()=>Nke,DEFAULT_BOT_WAKE_PROVIDER:()=>Pke,DEFAULT_CHANNEL_ROUTING_MODEL:()=>kke,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>Ake,DEFAULT_EMBEDDING_PROVIDER:()=>jke,DEFAULT_MINI_MODEL:()=>Uw,DEFAULT_MINI_PROVIDER:()=>Ww,DEFAULT_MODEL:()=>Vw,DEFAULT_ONBOARDING_MODEL:()=>Lke,DEFAULT_ONBOARDING_PROVIDER:()=>Rke,DEFAULT_PROVIDER:()=>Hw,DEFAULT_REVIEW_PREDICT_MODEL:()=>zke,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>Bke,DEFAULT_VERIFY_MODEL:()=>Hke,DEFAULT_VERIFY_PLAN_MODEL:()=>Wke,DEFAULT_VERIFY_PLAN_PROVIDER:()=>Gke,DEFAULT_VERIFY_PROVIDER:()=>Uke,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>wke,LOBE_CHAT_CLOUD:()=>Iw,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>$ke,ORG_NAME:()=>zw,SOCIAL_URL:()=>Cke,UTM_SOURCE:()=>Yke,isOfficialProvider:()=>eAe}),Qke,$ke,eAe,Gw=o((()=>{Oke(),Oke(),Kke(),Jke(),Xke(),Qke=`sk-lh-`,$ke=`The official provider cannot be disabled.`,eAe=e=>!1})),tAe=o((()=>{Gw()})),nAe=o((()=>{})),rAe=o((()=>{})),iAe,aAe,oAe=o((()=>{hw(),iAe=qC([`pinned`,`auto`,`disabled`]),aAe=WC([H(),UC({builtinOverride:YC(!0).optional(),identifier:H(),mode:iAe.optional()})])})),sAe=o((()=>{hw(),yke(),oAe(),UC({agencyConfig:XC().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:vke.optional(),description:H().nullish(),editorData:VC().optional(),fewShots:VC().optional(),marketIdentifier:H().nullish(),metadata:KC(H(),VC()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:HC(H()).optional(),params:KC(H(),VC()).optional(),plugins:HC(aAe).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:HC(H()).optional(),title:H().nullish(),tts:XC().optional(),virtual:zC().nullish(),visibility:qC([`private`,`public`]).optional()})})),cAe=o((()=>{})),lAe=o((()=>{})),uAe=o((()=>{})),dAe=o((()=>{})),fAe=o((()=>{})),pAe=o((()=>{fke(),pke(),mke(),yke(),bke(),xke(),tAe(),jxe(),xw(),nAe(),rAe(),uke(),sAe(),cAe(),oAe(),lAe(),uAe(),dAe(),fAe()})),mAe,hAe=o((()=>{mAe=[`mail`,`wallet`,`service`],[...mAe]})),gAe=o((()=>{})),_Ae=o((()=>{})),vAe,Kw,yAe=o((()=>{hw(),vAe=UC({ciStatus:qC([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:zC().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:RC(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),Kw=UC({environmentId:H().max(255).optional(),git:UC({activeWorktree:H().optional(),autoCreated:zC().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:zC().optional(),github:UC({extraPullRequestCount:RC().optional(),pullRequest:vAe.nullable().optional(),pullRequestStatus:qC([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:zC().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:UC({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:qC([`git`,`github`]).optional(),sessionPath:H().optional()})})),qw=o((()=>{yAe()})),Jw,Yw=o((()=>{Jw=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),bAe=o((()=>{})),xAe=o((()=>{})),SAe=o((()=>{})),CAe=o((()=>{hw(),qw(),Yw(),bAe(),xAe(),SAe(),UC({heteroPermissionMode:qC(Jw).optional(),heteroPlanMode:zC().optional(),repos:HC(H()).optional(),sandboxDrive:qC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:zC().optional(),sandboxTemporary:zC().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:Kw.optional()})})),wAe,TAe=o((()=>{hw(),wAe=UC({allowDM:zC().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:HC(H()).optional(),personal:zC().optional(),revealDM:zC().optional(),systemPrompt:H().optional()}),UC({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:wAe.nullish(),content:H().nullish(),description:H().nullish(),editorData:KC(H(),BC()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:zC().nullish(),title:H().nullish(),visibility:qC([`private`,`public`]).optional()})})),EAe,DAe,OAe,kAe=o((()=>{hw(),EAe=qC([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),DAe=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),OAe=EDe({allowedEnvVars:HC(H().regex(/^[A-Z_]\w*$/i)).optional(),body:KC(H(),VC()).optional(),delivery:qC([`fetch`,`qstash`]).optional(),eventFields:HC(H()).optional(),fallback:qC([`fetch`,`none`]).optional(),headers:KC(H(),H()).optional(),onError:qC([`continue`,`block`]).optional(),responseHandling:qC([`ignore`,`toolCall`]).optional(),timeout:RC().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`})}),EDe({id:H(),matcher:DAe.optional(),type:EAe,webhook:OAe}).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`})})})),AAe=o((()=>{hw(),GC(`decision`,[UC({decision:YC(`allow`)}),UC({decision:YC(`deny`),reason:H().optional()})])})),jAe=o((()=>{})),MAe,NAe=o((()=>{MAe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(MAe)})),PAe=o((()=>{})),FAe=o((()=>{})),IAe,LAe,RAe,zAe=o((()=>{IAe={messages:`msg`,threads:`thd`,topics:`tpc`},LAe=`[0-9a-zA-Z]{8,32}`,RAe=e=>RegExp(`^${IAe[e]}_${LAe}$`)})),Xw,BAe,VAe,HAe=o((()=>{hw(),Xw=UC({attribution:qC([`user`,`provider`,`harness`,`system`]).optional(),body:BC().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:zC().optional(),httpStatus:RC().optional(),isFallback:zC().optional(),message:H().optional(),numericId:RC().optional(),retryable:zC().optional(),severity:qC([`info`,`warning`,`error`,`critical`]).optional(),type:WC([H(),RC()])}),BAe=UC({content:HC(KC(H(),VC())).optional(),encrypted_content:H().nullish(),id:H(),status:qC([`in_progress`,`completed`,`incomplete`]).optional(),summary:HC(UC({text:H(),type:YC(`summary_text`)})),type:YC(`reasoning`)}).passthrough(),VAe=UC({content:H().optional(),duration:RC().optional(),isMultimodal:zC().optional(),responseItems:HC(BAe).optional(),signature:H().optional()})})),UAe,WAe=o((()=>{UAe=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}({})})),Zw,GAe,KAe=o((()=>{hw(),Zw=RC().catch(0),GAe=UC({bySource:UC({content:Zw,fileContext:Zw,reasoning:Zw,thoughtSignature:Zw,toolCallId:Zw,toolCalls:Zw,toolDefinition:Zw}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:YC(`tokenx`).catch(`tokenx`),messageCount:Zw,system:Zw,total:Zw})})),qAe,JAe,Qw,YAe,XAe,ZAe,QAe,$Ae,$w,eT=o((()=>{hw(),qAe=qC([`markdown`,`text`,`xml`]),JAe=UC({endLine:RC().optional(),startLine:RC()}),Qw=UC({content:H(),format:qAe.optional(),id:H(),lineRange:JAe.optional(),preview:H().optional(),title:H().optional()}),YAe=Qw.extend({anchor:UC({endNodeId:H(),endOffset:RC(),startNodeId:H(),startOffset:RC()}).optional(),pageId:H(),source:YC(`page`),xml:H().optional()}),XAe=Qw.extend({filePath:H(),language:H().optional(),side:qC([`additions`,`context`,`deletions`]).optional(),source:YC(`code`),workingDirectory:H().optional()}),ZAe=Qw.extend({source:YC(`text`)}),QAe=Qw.extend({element:UC({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:YC(`element`)}),$Ae=Qw.extend({identifier:H(),source:YC(`mcpApp`)}),$w=GC(`source`,[YAe,XAe,ZAe,QAe,$Ae])})),tT,nT=o((()=>{hw(),eT(),tT=Qw.omit({lineRange:!0}).extend({anchor:UC({endNodeId:H(),endOffset:RC(),startNodeId:H(),startOffset:RC()}).optional(),startLine:RC().optional(),endLine:RC().optional(),pageId:H(),xml:H().optional()})})),eje,tje,rT,nje,rje,ije,aje,oje,sje,cje,lje,uje,dje,fje,pje,iT,mje,hje=o((()=>{hw(),WAe(),KAe(),eT(),nT(),eje=WC([UC({action:qC([`create`,`update`,`delete`]),changeType:qC([`created`,`updated`]).optional(),targets:HC(UC({taskId:H().optional(),taskIdentifier:H().optional()})),type:YC(`task`)}),UC({args:KC(H(),VC()).optional(),data:VC(),provider:H(),toolName:H(),type:YC(`skill`)}),UC({action:YC(`register`),document:UC({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:qC([`created`,`updated`]),toolName:H()}),type:YC(`document`)}),UC({action:YC(`delete`),document:UC({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:YC(`document`)}),UC({action:YC(`register`),canvas:UC({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:UC({entry:H(),fileCount:RC(),manifestKey:H(),runtimeMajor:RC(),totalSize:RC()})}),type:YC(`canvas`)})]),tje=UC({apiName:qC([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:KC(H(),VC()),capturedAt:H(),content:H().nullable(),error:VC().optional(),identifier:YC(`lobe-local-system`),result:VC().optional(),snapshotId:H(),state:VC().optional(),success:zC(),toolCallId:H()}),rT=UC({inputCachedTokens:RC().optional(),inputCacheMissTokens:RC().optional(),inputWriteCacheTokens:RC().optional(),inputCachedTextTokens:RC().optional(),inputCachedImageTokens:RC().optional(),inputCachedAudioTokens:RC().optional(),inputCachedVideoTokens:RC().optional(),inputTextTokens:RC().optional(),inputImageTokens:RC().optional(),inputAudioTokens:RC().optional(),inputVideoTokens:RC().optional(),inputCitationTokens:RC().optional(),inputToolTokens:RC().optional(),inputCharacters:RC().optional(),outputTextTokens:RC().optional(),outputImageTokens:RC().optional(),outputAudioTokens:RC().optional(),outputReasoningTokens:RC().optional(),outputVideoTokens:RC().optional(),acceptedPredictionTokens:RC().optional(),rejectedPredictionTokens:RC().optional(),totalInputTokens:RC().optional(),totalOutputTokens:RC().optional(),totalTokens:RC().optional(),cost:RC().optional(),credits:RC().optional()}),nje=UC({tps:RC().optional(),ttft:RC().optional(),duration:RC().optional(),latency:RC().optional()}),rje=UC({emoji:H(),count:RC(),users:HC(H())}),ije=UC({sequence:RC().optional(),sourceToolCallId:H(),sourceToolName:H(),type:qC([`tool-stdout`,`tool-callback`,`task-completion`])}),aje=UC({identifier:H()}),oje=UC({agentId:H().optional(),name:H(),status:qC([`completed`,`error`]),threadId:H()}),sje=UC({identifier:H(),reason:qC([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),cje=UC({rootOperationId:H().min(1),userMessageId:H().optional()}),lje=UC({kind:qC([`callAgent`]),visibility:YC(`internal`)}),uje=UC({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:RC().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),dje=UC({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),fje=UC({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),pje=rT.merge(nje).extend({botSender:fje.optional(),externalOrigin:dje.optional(),agentDispatch:lje.optional(),agentSender:uje.optional(),collapsed:zC().optional(),contextAccounting:GAe.optional(),contextSelections:HC($w).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:RC().int().positive().optional(),inspectExpanded:zC().optional(),isMultimodal:zC().optional(),isSupervisor:zC().optional(),localSystemToolSnapshots:HC(tje).optional(),mcpAppSource:aje.optional(),operationId:H().min(1).optional(),orchestrationRole:qC([`supervisor`,`member`]).optional(),pageSelections:HC(tT).optional(),performance:nje.optional(),reactions:HC(rje).optional(),scope:H().optional(),selectedSkillIds:HC(H()).optional(),selectedToolIds:HC(H()).optional(),signal:ije.optional(),steer:zC().optional(),subAgentCallback:oje.optional(),subAgentId:H().optional(),taskCallback:sje.optional(),toolExecutionTimeMs:RC().optional(),toolResultSuccess:zC().optional(),toolResultStop:zC().optional(),toolWorkRegistration:eje.optional(),trigger:JC(UAe).optional(),verifyOperationId:H().optional(),verifyRound:RC().optional(),work:cje.optional(),usage:rT.optional()}),iT=pje.omit({agentSender:!0}),mje=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),gje,_je=o((()=>{hw(),hje(),gje=pje.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),UC({editorData:KC(H(),VC()).optional(),metadata:gje.optional()}),Object.keys(gje.shape)})),vje,yje=o((()=>{hw(),vje=UC({alt:H(),height:RC().optional(),id:H(),mimeType:H().optional(),ratio:RC().optional(),url:H(),width:RC().optional()})})),bje=o((()=>{})),xje,Sje,Cje,wje=o((()=>{hw(),xje=UC({batchId:H().optional(),itemIndex:RC().int().nonnegative().optional(),operationId:H().optional(),runtimeType:qC([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:zC().optional(),resolutionRequestId:H().optional(),skipped:zC().optional(),stepIndex:RC().int().nonnegative().optional(),status:qC([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),Sje=UC({function:UC({arguments:H(),name:H()}),id:H(),type:H()}),Cje=UC({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:xje.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),Tje=o((()=>{})),Eje=o((()=>{})),aT=o((()=>{HAe(),_je(),KAe(),eT(),yje(),bje(),hje(),nT(),wje(),Tje(),Eje()})),Dje,Oje=o((()=>{hw(),Dje=UC({id:H(),similarity:RC()}),UC({id:H(),value:UC({fileChunks:HC(Dje),ragQueryId:H().optional()})})})),kje,Aje,jje=o((()=>{hw(),HAe(),wje(),Oje(),aT(),nT(),kje=qC([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),Aje=UC({apiName:H(),arguments:H(),identifier:H(),type:H()}),UC({role:kje,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:Aje.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:HC(H()).optional(),error:Xw.nullish(),traceId:H().optional(),fileChunks:HC(Dje).optional()}).passthrough(),UC({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:xje.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:BC().optional(),error:BC().optional(),clientId:H().optional(),userId:H().optional()})})),Mje,Nje=o((()=>{hw(),Mje=UC({action:qC([`create`,`update`,`delete`]),agentEditable:zC().optional(),resourceType:qC([`document`,`task`])})})),oT,Pje,Fje,Ije,Lje,Rje,zje=o((()=>{hw(),oT=qC([`never`,`required`,`always`]),Pje=WC([H(),UC({pattern:H(),type:qC([`exact`,`prefix`,`wildcard`,`regex`])})]),Fje=UC({match:KC(H(),Pje).optional(),policy:oT}),Ije=WC([oT,HC(Fje)]),UC({action:qC([`approve`,`reject`,`select`]),data:UC({remember:zC().optional(),selected:WC([H(),HC(H())]).optional()}).optional()}),UC({allowList:HC(H()).optional(),approvalMode:qC([`auto-run`,`allow-list`,`manual`,`headless`])}),Lje=UC({description:H(),match:KC(H(),Pje),policy:oT.optional()}),Rje=HC(Lje),UC({config:Ije.optional(),confirmedHistory:HC(H()).optional(),securityBlacklist:Rje.optional(),toolArgs:KC(H(),BC()).optional(),toolKey:H().optional()})})),Bje=o((()=>{})),sT,Vje,Hje,Uje,cT,Wje,Gje=o((()=>{hw(),Nje(),zje(),Bje(),Nje(),sT=UC({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:HC(H()).optional(),title:H()}),Vje=qC([`collapsed`,`expand`,`alwaysExpand`]),Hje=UC({default:oT.optional(),policy:oT.optional(),type:H()}),Uje=WC([Ije,UC({dynamic:Hje})]),cT=UC({defaultTimeoutMs:RC().int().positive().optional(),description:H(),humanIntervention:Uje.optional(),name:H(),ordered:zC().optional(),parameters:KC(H(),BC()),renderDisplayControl:Vje.optional(),serializeBy:H().optional(),url:H().optional(),work:Mje.optional()}),Wje=UC({api:HC(cT),deviceClients:HC(qC([`cli`,`desktop`])).optional(),executors:HC(qC([`client`,`server`])).optional(),humanIntervention:Uje.optional(),identifier:H(),meta:sT,systemRole:H(),type:YC(`builtin`).optional()}),UC({discoverable:zC().optional(),hidden:zC().optional(),identifier:H(),manifest:Wje,type:YC(`builtin`)})})),Kje=o((()=>{})),qje=o((()=>{})),Jje,Yje=o((()=>{hw(),Gje(),Jje=UC({properties:KC(H(),BC()),required:HC(H()).optional(),type:YC(`object`)}),UC({$schema:H().optional(),api:HC(cT),connector:UC({id:H(),identifier:H()}).optional(),connectorLinks:UC({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:HC(UC({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:HC(cT).optional(),mcpModelOnlyTools:HC(H()).optional(),meta:sT,openapi:H().optional(),settings:Jje.optional(),systemRole:H().optional(),type:qC([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:UC({height:RC().optional(),mode:qC([`iframe`,`module`]).optional(),url:H(),width:RC().optional()}).optional(),version:H().optional()})})),Xje=o((()=>{})),Zje=o((()=>{})),Qje,$je=o((()=>{hw(),Qje=UC({description:H().optional(),name:H(),parameters:UC({additionalProperties:zC().optional(),properties:KC(H(),BC()),required:HC(H()).optional(),type:YC(`object`)})})})),eMe=o((()=>{Gje(),Kje(),qje(),zje(),Yje(),Xje(),Zje(),$je()})),lT,tMe,nMe,uT,rMe,dT,iMe,fT,pT,mT,aMe,oMe,sMe,hT,cMe,lMe,uMe,dMe,gT,fMe,pMe=o((()=>{hw(),lT=1e6,tMe=2e3,nMe=2e3,uT=12e3,rMe=UC({kind:YC(`writing`)}).strict(),dT=UC({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:zC()}).strict(),iMe=UC({errors:HC(dT).max(16),evidenceCount:RC().int().nonnegative().max(lT),failedCount:RC().int().nonnegative().max(lT),succeededCount:RC().int().nonnegative().max(lT)}).strict(),iMe.omit({errors:!0}).strip(),fT=e=>H().trim().min(1).max(e),pT=fT(256),mT=fT(tMe),aMe=UC({content:fT(uT),reasoning:mT,tagline:pT}).strict(),oMe=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}},sMe=ZC(oMe,UC({description:mT,rank:RC().int().min(0).max(100),title:pT}).strict()),hT=e=>HC(sMe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),cMe=UC({composition:UC({identities:hT(6),interests:hT(8),lifeStyle:hT(6),social:hT(6),working:hT(6)}).strict(),personaProposal:aMe,profile:UC({domains:HC(pT).max(8),description:mT,name:pT,pronoun:pT,roles:HC(pT).max(8),summary:mT,tagline:pT}).strict()}).strict(),UC({analysis:cMe,detailedPersona:aMe.optional(),diagnostics:iMe,feedbackRevision:RC().int().nonnegative().max(lT).default(0),generationRevision:RC().int().nonnegative().max(lT).default(0),kind:YC(`proposal`),providers:HC(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),lMe=UC({content:H().trim().min(1).max(nMe),createdAt:H(),revision:RC().int().positive().max(lT)}).strict(),uMe=UC({revision:RC().int().nonnegative().max(lT),turns:HC(lMe).max(16)}).strict(),dMe=UC({completedAt:H().optional(),errors:HC(dT).max(16),failedCount:RC().int().nonnegative().max(lT),revision:RC().int().nonnegative().max(lT),status:qC([`pending`,`running`,`completed`,`failed`]),succeededCount:RC().int().nonnegative().max(lT)}).strict(),gT={detailed:GC(`status`,[UC({status:YC(`running`),updatedAt:H()}).strict(),UC({status:YC(`completed`),updatedAt:H()}).strict(),UC({error:dT,status:YC(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:RC().int().nonnegative().max(lT).default(0),generationRevision:RC().int().nonnegative().max(lT).default(0),sourceFingerprint:H(),updatedAt:H()},fMe=GC(`status`,[UC({...gT,resultMessageId:H().optional(),status:YC(`running`)}).strict(),UC({...gT,resultMessageId:H(),status:YC(`completed`)}).strict(),UC({...gT,error:dT,resultMessageId:H().optional(),status:YC(`failed`)}).strict()]),UC({confirmedAt:H().optional(),feedback:uMe.default({revision:0,turns:[]}),generationRevision:RC().int().nonnegative().max(lT).default(0),id:H(),sources:KC(H().max(64),dMe),writing:fMe.optional()}).strict()})),_T,mMe,hMe=o((()=>{hw(),pMe(),_T={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},mMe=UC({clientMode:zC().optional(),completedAt:H().optional(),duration:RC().optional(),error:BC().optional(),model:H().optional(),onboardingUnderstanding:rMe.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:RC().optional(),totalLlmCalls:RC().optional(),totalMessages:RC().optional(),totalTokens:RC().optional(),totalSteps:RC().optional(),totalToolCalls:RC().optional()}),UC({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:mMe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:qC([_T.Continuation,_T.Eval,_T.Standalone,_T.Isolation])})})),gMe,_Me,vT,vMe,yT,yMe,bMe=o((()=>{hw(),zAe(),aT(),jje(),eMe(),hMe(),gMe=UC({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:qC([_T.Continuation,_T.Standalone,_T.Isolation])}),_Me=UC({content:H(),metadata:iT.optional(),plugin:UC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:qC([`assistant`,`tool`]),tool_call_id:H().optional(),tools:HC(Cje).optional()}),vT=e=>H().regex(RAe(e)).optional(),UC({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:UC({agentId:H().optional(),id:vT(`messages`),metadata:KC(H(),VC()).optional().transform(mje),model:H().optional(),provider:H().optional()}),newThread:gMe.optional(),newTopic:UC({id:vT(`topics`),metadata:XC().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:HC(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:HC(_Me).optional(),newUserMessage:UC({content:H(),contextSelections:HC($w).optional(),editorData:KC(H(),VC()).optional(),files:HC(H()).optional(),id:vT(`messages`),metadata:iT.optional(),pageSelections:HC(tT).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:UC({excludeStatuses:HC(H()).optional(),excludeTriggers:HC(H()).optional(),includeTriggers:HC(H()).optional(),onlyMine:zC().optional()}).optional(),topicPageSize:RC().int().min(1).max(100).optional(),topicId:H().optional()}),vMe=UC({description:H().optional(),name:H(),schema:UC({$defs:BC().optional(),additionalProperties:zC().optional(),properties:KC(H(),BC()),required:HC(H()).optional(),type:YC(`object`)}),strict:zC().optional()}),UC({metadata:KC(H(),VC()).optional(),messages:HC(BC()),model:H(),provider:H(),schema:vMe.optional(),tools:HC(UC({function:Qje,type:YC(`function`)})).optional(),tracing:UC({tracingId:H().uuid().optional()}).catchall(VC()).optional()}),yT=WC([H(),HC(VC()),KC(H(),VC())]),yMe=GC(`type`,[UC({criteria:UC({false:yT,true:yT}).optional(),instructions:yT,type:YC(`boolean`)}),UC({criteria:KC(H(),yT.nullable()),instructions:yT,type:YC(`choice`)}),UC({criteria:HC(yT).min(1),instructions:yT,type:YC(`score`)})]),UC({metadata:KC(H(),VC()).optional(),model:H(),provider:H(),questions:KC(H(),yMe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:yT,tracing:UC({tracingId:H().uuid().optional()}).catchall(VC()).optional()})})),xMe=o((()=>{hw()})),SMe=o((()=>{})),CMe=o((()=>{})),wMe=o((()=>{})),TMe=o((()=>{})),EMe=o((()=>{})),DMe,OMe=o((()=>{xw(),DMe=bw.map(({type:e})=>e),[...FOe.options,...DMe]})),kMe=o((()=>{})),AMe=o((()=>{})),jMe=o((()=>{})),MMe=o((()=>{})),NMe=o((()=>{MMe()})),PMe=o((()=>{})),FMe=o((()=>{})),IMe=o((()=>{})),LMe=o((()=>{})),RMe=o((()=>{})),zMe=o((()=>{})),BMe=o((()=>{})),VMe=o((()=>{})),HMe=o((()=>{hw(),UC({connected:zC(),cpuCount:RC().int().min(1).max(4096),cpuPercent:RC().min(0).max(100).nullable(),diskTotalBytes:RC().int().min(0).nullish(),diskUsedBytes:RC().int().min(0).nullish(),load1:RC().min(0).nullable(),load5:RC().min(0).nullable(),load15:RC().min(0).nullable(),memoryTotalBytes:RC().int().min(0),memoryUsedBytes:RC().int().min(0),observedAt:RC().int().min(0)})})),UMe=o((()=>{})),WMe=o((()=>{})),GMe=o((()=>{})),KMe=o((()=>{})),qMe=o((()=>{})),JMe=o((()=>{})),YMe=o((()=>{})),XMe=o((()=>{})),ZMe=o((()=>{UMe(),WMe(),GMe(),KMe(),qMe(),JMe(),YMe(),XMe()})),QMe=o((()=>{hw(),UC({shareId:H(),topicId:H(),visitorUserId:H()})})),$Me=o((()=>{})),eNe=o((()=>{})),tNe=o((()=>{QMe(),$Me(),eNe()})),nNe=o((()=>{})),rNe=o((()=>{})),iNe=o((()=>{})),aNe=o((()=>{})),oNe=o((()=>{})),sNe=o((()=>{})),cNe=o((()=>{})),lNe=o((()=>{})),uNe=o((()=>{})),dNe=o((()=>{hw(),UC({ideal:H().optional(),question:H(),referenceFiles:H().or(HC(H())).optional()}),UC({description:H().optional(),knowledgeBaseId:H(),name:H()})})),fNe=o((()=>{})),pNe=o((()=>{})),mNe=o((()=>{})),hNe=o((()=>{hw(),UC({ideal:H().optional(),question:H(),referenceFiles:H().or(HC(H())).optional()}),UC({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),gNe=o((()=>{})),_Ne=o((()=>{})),vNe=o((()=>{})),yNe,bNe=o((()=>{hw(),Gje(),yNe=UC({api:HC(cT.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:sT,systemRole:H().optional(),type:qC([`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`),KC(H().min(1).max(255),yNe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),xNe=o((()=>{aNe(),oNe(),sNe(),cNe(),lNe(),uNe(),dNe(),fNe(),pNe(),mNe(),hNe(),gNe(),_Ne(),vNe(),bNe()})),SNe=o((()=>{})),CNe=o((()=>{})),wNe=o((()=>{})),bT,TNe,ENe=o((()=>{bT={InvalidAccessCode:`InvalidAccessCode`,FreePlanLimit:`FreePlanLimit`,SubscriptionPlanLimit:`SubscriptionPlanLimit`,InsufficientBudgetForModel:`InsufficientBudgetForModel`,WorkspaceFrozenByAdmin:`WorkspaceFrozenByAdmin`,WorkspaceFrozenByRiskControl:`WorkspaceFrozenByRiskControl`,WorkspaceModelRestricted:`WorkspaceModelRestricted`,WorkspaceSubscriptionInactive:`WorkspaceSubscriptionInactive`,ShareMessageLimitExceeded:`ShareMessageLimitExceeded`,ShareSpendLimitExceeded:`ShareSpendLimitExceeded`,SharePromptTooLong:`SharePromptTooLong`,ShareHeterogeneousAgentUnsupported:`ShareHeterogeneousAgentUnsupported`,ShareHeteroDeviceUnavailable:`ShareHeteroDeviceUnavailable`,ChannelAttachmentUnavailable:`ChannelAttachmentUnavailable`,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},TNe=[bT.RemoteServerOffline,bT.RemoteServerTimeout,bT.RemoteServerDNSFailed,bT.RemoteServerConnectionRefused,bT.RemoteServerCertInvalid,bT.RemoteServerUnreachable],new Set(TNe)})),DNe,ONe,kNe=o((()=>{hw(),DNe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),ONe=100,UC({category:H().optional(),filesOnly:zC().optional(),includeContentPreview:zC().optional(),knowledgeBaseId:H().optional(),limit:RC().int().positive().max(ONe).default(50),offset:RC().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:zC().default(!1),sortType:qC([`desc`,`asc`]).optional(),sorter:qC([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:JC(DNe).optional(),visibility:qC([`private`,`public`]).optional()})})),ANe,jNe=o((()=>{hw(),ANe=UC({shareId:H(),visitorUserId:H()}),UC({agentShare:ANe.optional(),date:H(),dirname:H(),filename:H(),height:RC().optional(),path:H(),ratio:RC().optional(),thumbhash:H().optional(),width:RC().optional()}),UC({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:BC().optional(),name:H(),size:RC(),source:H().optional(),url:H().optional()})})),MNe,NNe=o((()=>{kNe(),jNe(),MNe=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(MNe))})),PNe=o((()=>{})),FNe,INe,LNe,RNe,xT,zNe,BNe,VNe,HNe,UNe=o((()=>{hw(),FNe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],INe=[`agentEmoji`,`agentName`,`fullName`],LNe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],RNe=[`agent_identity`,`user_identity`,`discovery`,`summary`],xT=H().trim().transform(e=>e.length>0?e:void 0).optional(),zNe=HC(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),qC(FNe),BNe=qC(INe),VNe=qC(LNe),UC({agentEmoji:xT,agentName:xT,customInterests:zNe,fullName:xT,interests:zNe}).strict(),HNe=qC(RNe),UC({discoveryUserMessageCount:RC().optional(),finished:zC(),missingStructuredFields:HC(BNe),phase:HNe,remainingDiscoveryExchanges:RC().optional(),topicId:H().optional(),version:RC()}).strict(),UC({activeTopicId:H().optional(),discoveryStartUserMessageCount:RC().optional(),finishedAt:H().optional(),version:RC()}).strict(),UC({node:VNe,patch:UC({}).passthrough()}).strict()})),WNe,GNe,KNe=o((()=>{hw(),UNe(),WNe=WC([UC({kind:YC(`onboarding`),phase:HNe}),UC({kind:YC(`chat`)})]),GNe=UC({model:H().min(1),provider:H().min(1)}),UC({hint:WNe.optional(),modelConfig:GNe,threadId:H().optional(),topicId:H().min(1)})})),qNe=o((()=>{})),JNe=o((()=>{})),YNe=o((()=>{})),XNe=o((()=>{})),ST,ZNe,QNe,$Ne,ePe,tPe,nPe,rPe,iPe,aPe=o((()=>{hw(),ST=HC(H().trim().min(1)).max(200),ZNe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),QNe=ZC(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||ZNe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),$Ne=[`dead_end`,`superseded`,`retry`],ePe=2e3,tPe=UC({kind:qC($Ne),lesson:H().trim().min(1).max(ePe),nodeIds:ST.min(1),reason:H().trim().min(1).max(ePe),title:H().trim().min(1).max(200)}).strict(),nPe=UC({detours:HC(tPe).max(20).default([]),findingIds:ST.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:ST.default([]),title:H().trim().min(1).max(200),workVersionIds:ST.default([])}).strict(),rPe=UC({nodeIds:ST.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),iPe=UC({edgeIds:ST.default([]),nodeIds:ST.min(1)}).strict(),UC({chapters:HC(nPe).min(1).max(30),deliverableWorkId:QNe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:iPe.optional(),nextSteps:HC(rPe).max(20).default([])}).strict()})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{})),lPe=o((()=>{})),uPe,dPe,fPe,pPe=o((()=>{hw(),uPe=UC({apiName:H(),arguments:H(),id:H(),identifier:H(),type:YC(`default`)}),dPe=UC({clientId:H(),content:H(),createdAt:H().optional(),metadata:KC(H(),BC()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:UC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:KC(H(),BC()).optional(),provider:H().optional(),reasoning:UC({content:H()}).passthrough().optional(),role:qC([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:HC(uPe).optional(),usage:KC(H(),BC()).optional()}),fPe=UC({clientId:H(),messages:HC(dPe),sourceMessageClientId:H().optional(),status:qC([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:qC([`continuation`,`standalone`,`isolation`])}),UC({messages:HC(dPe),metadata:KC(H(),BC()).optional(),sessionId:H(),source:qC([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:HC(fPe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),mPe=o((()=>{})),hPe=o((()=>{})),gPe=o((()=>{})),_Pe=o((()=>{})),vPe,yPe=o((()=>{vPe=[`triage`,`backlog`,`unstarted`,`started`],[...vPe]})),bPe=o((()=>{})),xPe=o((()=>{})),SPe=o((()=>{})),CPe=o((()=>{})),wPe,TPe,EPe=o((()=>{hw(),wPe=UC({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),TPe=UC({citations:HC(UC({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:HC(wPe).optional(),imageSearchQueries:HC(H()).optional(),searchQueries:HC(H()).optional()})})),DPe=o((()=>{hw(),EPe(),aT(),UC({content:H().optional(),editorData:KC(H(),BC()).nullish(),error:Xw.nullish(),imageList:HC(vje).optional(),metadata:iT.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:VAe.optional(),role:H().optional(),search:TPe.nullish(),toolCalls:HC(Sje).optional(),tools:HC(Cje).nullish(),traceId:H().optional(),usage:rT.optional()}).passthrough()})),OPe=o((()=>{CPe(),DPe()})),kPe=o((()=>{})),APe=o((()=>{})),jPe=o((()=>{})),MPe=o((()=>{})),NPe=o((()=>{kPe(),APe(),jPe(),jje(),Oje(),MPe()})),PPe=o((()=>{aT(),OPe(),NPe()})),FPe=o((()=>{hw(),UC({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:HC(H()).optional(),title:H().optional()})})),IPe=o((()=>{})),LPe=o((()=>{})),RPe,zPe=o((()=>{hw(),RPe=UC({accessToken:H().optional(),token:H().optional(),type:qC([`none`,`bearer`,`oauth2`])}).optional(),UC({auth:RPe,headers:KC(H(),H()).optional(),identifier:H(),metadata:UC({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),BPe=o((()=>{})),VPe=o((()=>{zPe(),BPe()})),HPe=o((()=>{})),UPe=o((()=>{hw(),UC({fileIds:HC(H()).optional(),knowledgeIds:HC(H()).optional(),query:H(),topK:RC().optional()})})),WPe=o((()=>{})),GPe=o((()=>{})),KPe=o((()=>{})),qPe=o((()=>{})),JPe=o((()=>{})),YPe=o((()=>{})),XPe=o((()=>{})),ZPe,QPe=o((()=>{ZPe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),$Pe=o((()=>{XPe(),QPe()})),eFe,tFe,nFe=o((()=>{eFe=`NO_REPLY`,tFe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${eFe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(tFe)})),rFe,iFe=o((()=>{hw(),rFe=UC({name:H(),url:H().url().optional()}),UC({author:WC([H(),rFe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:HC(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),aFe=o((()=>{})),oFe=o((()=>{})),sFe=o((()=>{})),cFe,lFe=o((()=>{cFe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],cFe[0]})),CT,uFe=o((()=>{CT=1440*60*1e3,30*CT,90*CT,7*CT})),dFe=o((()=>{oFe(),sFe(),lFe(),uFe()})),fFe=o((()=>{})),wT,pFe,mFe,hFe,gFe,_Fe,vFe,yFe=o((()=>{hw(),wT=qC([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),UC({serverDefaultHeterogeneousProfiles:HC(H().min(1)).optional()}).passthrough(),pFe=UC({audio:zC().optional(),functionCall:zC().optional(),imageOutput:zC().optional(),reasoning:zC().optional(),search:zC().optional(),video:zC().optional(),vision:zC().optional()}),mFe=UC({codexMaxReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:qC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:qC([`none`,`high`,`max`]).optional(),effort:qC([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:qC([`high`,`max`]).optional(),glm5_3ReasoningEffort:qC([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:qC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:qC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:qC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:qC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:qC([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:qC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:qC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:qC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:qC([`low`,`high`,`max`]).optional(),opus47Effort:qC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:qC([`low`,`medium`,`high`]).optional(),reasoningMode:qC([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:qC([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:qC([`low`,`high`]).optional(),thinkingLevel:qC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:qC([`low`,`high`]).optional(),thinkingLevel3:qC([`low`,`medium`,`high`]).optional(),thinkingLevel4:qC([`minimal`,`high`]).optional(),thinkingLevel5:qC([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(mFe.shape),hFe=qC(`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(`.`)),gFe=qC([`tool`,`params`,`internal`]),_Fe=qC([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),vFe=UC({disabledParams:HC(_Fe).optional(),extendParams:HC(hFe).optional(),searchImpl:gFe.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),UC({abilities:pFe.optional(),contextWindowTokens:RC().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:vFe.optional(),type:wT.optional()}),UC({abilities:pFe.optional(),config:UC({deploymentName:H().optional()}).optional(),contextWindowTokens:RC().nullish(),displayName:H().nullish(),settings:vFe.optional(),type:wT.optional()}),UC({enabled:zC(),id:H(),providerId:H(),source:qC([`builtin`,`custom`,`remote`]).optional(),type:wT.optional()})})),bFe,TT,xFe,SFe,CFe,wFe,TFe,EFe,DFe=o((()=>{yFe(),hw(),qw(),Yw(),bFe=UC({claimedAt:H(),expiresAt:H(),id:H()}),TT=UC({claim:bFe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),xFe=TT.extend({failedAssistantMessageId:H(),kind:YC(`resume_after_rate_limit`),rateLimit:UC({rateLimitType:H().optional(),resetsAt:RC().optional()}).optional(),resume:UC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:YC(`heterogeneous_agent`),userMessageId:H()}),SFe=TT.extend({kind:YC(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),UC({baseBranch:H().min(1).max(1024).optional(),deviceId:H().min(1).max(256),path:H().min(1).max(4096),repoType:qC([`git`,`github`]),sourcePath:H().min(1).max(4096)}),CFe=TT.extend({error:H().optional(),kind:YC(`worktree_start`),operationId:H(),retryable:zC().optional(),userMessageId:H(),waitingForDevice:zC().optional()}),wFe=GC(`kind`,[xFe,SFe,CFe]),UC({claim:bFe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:CDe().optional(),rateLimit:UC({rateLimitType:H().optional(),resetsAt:RC().optional()}).optional(),reason:YC(`rate_limit`),resume:UC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:YC(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),TFe=UC({boundDeviceId:H().optional(),heteroEffort:XC(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:KC(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:KC(H(),H()).optional(),heteroPermissionMode:qC(Jw).optional(),heteroPermissionModeFallback:qC([`outdatedCli`,`root`]).nullable().optional(),heteroPlanMode:zC().optional(),codexPlanDecision:UC({dismissed:zC(),itemId:H().min(1)}).nullable().optional(),heteroSpeed:qC([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:UC({comment:H().max(500).optional(),rating:qC([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:UC({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:UC({categoryHints:HC(H()),installedAgentIds:HC(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:HC(H()).optional(),skipReason:H().optional(),skippedAgentIds:HC(H()).optional(),status:qC([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:HC(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:qC([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:RC().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:mFe.optional(),repos:HC(H()).optional(),runningOperation:wDe().optional(),taskCallbackReservation:UC({messageId:H(),reservedAt:H()}).nullable().optional(),sandboxDrive:qC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxWorkingDirectory:H().max(1024).optional(),scheduledRun:wFe.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:Kw.optional()}),TFe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),EFe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],qC(EFe)})),OFe=o((()=>{fFe(),hMe(),DFe()})),kFe=o((()=>{})),AFe=o((()=>{})),jFe=o((()=>{hw(),UC({currentStep:RC().min(1).max(7).optional(),finishedAt:H().optional(),version:RC()})})),MFe=o((()=>{})),NFe,PFe,FFe=o((()=>{hw(),NFe=UC({checked:zC(),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:HC(UC({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(),PFe=UC({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:zC()}).strict(),UC({completedAt:H().optional(),createdTaskIds:KC(H().max(128),H().max(512)),errors:HC(PFe).max(16),id:H().min(1).max(512),providerIds:HC(H().min(1).max(128)).max(16),recommendations:HC(NFe).max(48),sourceFingerprint:H().min(1).max(2048),status:qC([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),IFe,LFe,RFe,zFe,BFe=o((()=>{hw(),IFe=UC({docsMerged:zC().optional(),moveSettingsToAvatar:zC().optional(),topic:zC().optional(),uploadFileInKnowledgeBase:zC().optional()}),LFe=UC({enableAgentIdentity:zC().optional(),enableAgentGraphConfig:zC().optional(),enableArtifactDeployment:zC().optional(),enablePageCollab:zC().optional(),enableClaudeCodeSdk:zC().optional(),enableCodexAppServer:zC().optional(),enableDesktopSplitView:zC().optional(),enableHeteroSessionImport:zC().optional(),enableGroupChat:zC().optional(),enableImessage:zC().optional(),enableInputMarkdown:zC().optional(),enableMessageTextSelectionActions:zC().optional(),enableIntegrations:zC().optional(),enableOAuthApps:zC().optional(),enableProjects:zC().optional(),enableSelfLearning:zC().optional(),enableTaskVerify:zC().optional(),enableEvalCapture:zC().optional(),enableTopicBugReport:zC().optional(),enableGoals:zC().optional(),enableTopicAcceptance:zC().optional(),enableDeviceTunnel:zC().optional()}),RFe=UC({acceptOnMerge:zC().optional(),commentOnPrivateRepositories:zC().optional(),commentOnPublicRepositories:zC().optional(),wakeOnCiFailure:zC().optional(),wakeOnReview:zC().optional()}),zFe=UC({github:RFe.optional()}),UC({provider:H(),providerAccountId:H()}),UC({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:IFe.optional(),hideSyncAlert:zC().optional(),integration:zFe.optional(),lab:LFe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:qC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:HC(H()).optional(),sidebarHiddenGroupIds:HC(H()).optional(),terminalFontFamily:H().optional(),telemetry:zC().nullable(),topicGroupMode:qC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:zC().optional(),topicSortBy:qC([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:zC().optional(),workspace:UC({order:HC(H()).optional()}).optional()}).partial()})),VFe=o((()=>{})),HFe=o((()=>{})),UFe=o((()=>{})),WFe=o((()=>{})),GFe=o((()=>{})),KFe=o((()=>{})),qFe=o((()=>{})),JFe=o((()=>{})),YFe,ET,XFe=o((()=>{hw(),YFe=KC(H(),KC(H(),zC())),ET=UC({enabled:zC().optional(),items:YFe.optional()}).strict(),UC({content:UC({scheduledTaskSummary:zC().optional()}).strict().optional(),email:ET.optional(),im:ET.extend({platforms:KC(H(),ET.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:ET.optional(),push:ET.optional()}).strict()})),ZFe=o((()=>{})),QFe=o((()=>{})),$Fe=o((()=>{})),eIe=o((()=>{})),tIe=o((()=>{hw(),VFe(),HFe(),UFe(),WFe(),GFe(),KFe(),qFe(),JFe(),XFe(),ZFe(),QFe(),$Fe(),eIe(),UC({defaultAgent:BC().optional(),general:BC().optional(),hotkey:BC().optional(),image:BC().optional(),keyVaults:BC().optional(),languageModel:BC().optional(),market:BC().optional(),memory:BC().optional(),notification:BC().optional(),systemAgent:BC().optional(),tool:BC().optional(),tts:BC().optional()}).passthrough().partial()})),nIe=o((()=>{UNe(),jFe(),MFe(),FFe(),BFe(),tIe()})),rIe=o((()=>{})),iIe=o((()=>{})),aIe=o((()=>{})),oIe=o((()=>{})),sIe,cIe=o((()=>{hw(),sIe=qC([`personal`,`professional`,`demographic`]),UC({description:H().optional(),episodicDate:H().optional(),extractedLabels:HC(H()).optional(),labels:KC(H(),BC()).optional(),relationship:H().optional(),role:H().optional(),type:sIe.optional(),userMemoryId:H().optional()}),UC({description:H().optional(),episodicDate:H().optional(),extractedLabels:HC(H()).optional(),labels:KC(H(),BC()).optional(),relationship:H().optional(),role:H().optional(),type:sIe.optional()})})),lIe,uIe,dIe=o((()=>{lIe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(lIe),uIe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(uIe)})),fIe=o((()=>{})),pIe=o((()=>{})),mIe,hIe,gIe,DT,_Ie,vIe,yIe,bIe=o((()=>{mIe=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(mIe),hIe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(hIe),gIe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(gIe),DT=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(DT),_Ie=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(_Ie),vIe=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(vIe),yIe=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(yIe)})),xIe=o((()=>{})),OT,kT,SIe,CIe,wIe,TIe,EIe,DIe,OIe,kIe,AIe,jIe,MIe,NIe=o((()=>{hw(),bIe(),OT=ZC(e=>typeof e==`string`?[e]:e,HC(H().trim().min(1))),kT=e=>ZC(e=>typeof e==`string`?[e]:e,HC(e)),SIe=qC([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),CIe=UC({activities:RC().int().min(0).optional(),contexts:RC().int().min(0).optional(),experiences:RC().int().min(0).optional(),identities:RC().int().min(0).optional(),preferences:RC().int().min(0).optional()}),wIe=UC({end:mw().optional(),field:SIe.optional(),start:mw().optional()}),TIe=qC([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),EIe=UC({date:mw(),selector:YC(`day`)}),DIe=UC({month:RC().int().min(1).max(12),selector:YC(`month`),year:RC().int().min(1970).max(9999)}),OIe=UC({end:mw().optional(),selector:YC(`range`),start:mw().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),kIe=UC({selector:YC(`year`),year:RC().int().min(1970).max(9999)}),AIe=qC([`today`,`yesterday`]),jIe=RDe(()=>WC([UC({selector:TIe}),EIe,DIe,UC({anchor:WC([AIe,jIe]),offsetDays:RC().int(),selector:YC(`relativeDay`)}),OIe,kIe])),UC({categories:OT.optional(),effort:qC([`low`,`medium`,`high`]).optional(),labels:OT.optional(),layers:kT(JC(DT)).optional(),queries:OT.optional(),relationships:OT.optional(),status:OT.optional(),tags:OT.optional(),timeIntent:jIe.optional(),timeRange:wIe.optional(),topK:CIe.optional(),types:OT.optional()}),MIe=qC([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),UC({include:kT(MIe).optional(),layers:HC(JC(DT)).optional(),limit:RC().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:wIe.optional()})})),PIe=o((()=>{})),FIe=o((()=>{rIe(),iIe(),aIe(),oIe(),cIe(),dIe(),fIe(),pIe(),bIe(),xIe(),NIe(),PIe()})),IIe=o((()=>{})),LIe=o((()=>{})),RIe=o((()=>{LIe()})),zIe=o((()=>{})),BIe=o((()=>{})),VIe=o((()=>{zIe(),BIe()})),HIe,UIe=o((()=>{HIe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(HIe).flatMap(([e,t])=>t.map(t=>[t,e])))})),WIe=o((()=>{})),GIe=o((()=>{hw(),UC({start:RC().finite().nonnegative()}).strict()})),KIe=o((()=>{hw(),UC({preconditions:HC(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:HC(UC({id:H().min(1),name:H().min(1),description:H().optional(),resource:UC({type:qC([`file`,`document`]),id:H().min(1)}).optional(),data:KC(H(),VC()).optional()})).max(100).optional(),steps:HC(UC({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:HC(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`]})})})),AT,qIe,JIe=o((()=>{hw(),AT=UC({height:RC().finite(),width:RC().finite(),x:RC().finite(),y:RC().finite()}),qIe=UC({commit:H().max(200).optional(),context:KC(H().max(100),WC([H().max(500),RC(),zC()])).optional(),env:UC({consoleErrors:HC(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:qC([`change`,`comment`]),region:AT.optional(),regionRefs:HC(UC({box:AT,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:UC({x:RC().finite(),y:RC().finite()}),targets:HC(UC({code:UC({chain:HC(UC({file:H().max(500).optional(),line:RC().int().optional(),name:H().max(200)})).max(5),column:RC().int(),file:H().max(500),line:RC().int()}).optional(),label:H().max(200),rect:AT,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:YC(1),viewport:UC({dpr:RC().positive(),height:RC().finite(),width:RC().finite()})}),UC({anchor:qIe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:UC({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`}),UC({note:H().trim().max(2e3).optional(),verdict:qC([`accept`,`send_back`])})})),YIe,jT,MT,NT,XIe,ZIe,QIe,$Ie,eLe,tLe,nLe,rLe=o((()=>{hw(),JIe(),YIe=[`region`,`element`,`sketch`],jT=RC().finite(),MT=UC({height:jT,width:jT,x:jT,y:jT}),NT=qIe.shape,XIe=RDe(()=>UC({children:HC(XIe).max(50),rect:MT,type:qC([`avatar`,`button`,`card`,`image`,`input`,`text`])})),ZIe=UC({commit:NT.commit,context:NT.context,env:NT.env}),QIe=UC({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),$Ie=UC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:ZIe.optional(),kind:qC(YIe),pageMeta:QIe.optional(),rectDocument:MT,rectViewport:MT,regionRefs:NT.regionRefs,regions:HC(MT).max(6).optional(),routeKey:H().max(500),scroll:UC({x:jT,y:jT}),sketch:HC(XIe).max(50).optional(),targets:NT.targets.optional(),url:H().url().max(2e3),viewport:UC({dpr:RC().positive(),height:jT,width:jT})}),eLe=64*1024,tLe=UC({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),$Ie.extend({screenshot:tLe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=eLe,{message:`Mark is too large`}),UC({content:H().trim().min(1).max(4e3).optional(),rectDocument:MT.optional(),rectViewport:MT.optional(),regionRefs:NT.regionRefs,regions:HC(MT).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),UC({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),nLe=[`pass`,`not_fixed`],UC({reason:H().trim().max(2e3).optional(),verdict:qC(nLe)}),UC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),iLe,aLe,PT,oLe,sLe,cLe,FT,IT,lLe,uLe,dLe=o((()=>{hw(),iLe=[`journey`,`options`,`references`,`other`],aLe=[`html`,`image`,`video`,`decision`],PT=H(),oLe=RC().finite(),sLe=RC().finite().positive(),UC({hash:H().min(1).nullable(),kind:YC(`file`),path:H().min(1)}),cLe=UC({kind:YC(`file`),path:H().min(1)}),FT=H().min(1).optional(),IT=H().min(1),lLe={expected:PT.optional(),groupId:IT.optional(),h:sLe.optional(),pageId:IT.optional(),recommended:zC().optional(),roundId:IT.optional(),source:cLe.optional(),title:PT,type:qC(aLe).optional(),w:sLe.optional(),x:oLe,y:oLe},uLe={desc:PT.optional(),kind:qC(iLe),pageId:IT.optional(),title:PT},GC(`type`,[UC({page:UC({name:PT.min(1)}),ref:FT,type:YC(`addPage`)}),UC({id:IT,patch:UC({name:PT.min(1)}),type:YC(`updatePage`)}),UC({id:IT,type:YC(`removePage`)}),UC({ref:FT,round:UC({batchId:IT.optional(),pageId:IT.optional(),title:PT.min(1)}),type:YC(`addRound`)}),UC({id:IT,patch:UC({title:PT.min(1)}),type:YC(`updateRound`)}),UC({group:UC(uLe),ref:FT,type:YC(`addGroup`)}),UC({id:IT,patch:UC({desc:PT,kind:qC(iLe),title:PT}).partial(),type:YC(`updateGroup`)}),UC({id:IT,type:YC(`removeGroup`)}),UC({board:UC(lLe),ref:FT,type:YC(`addBoard`)}),UC({id:IT,patch:UC({...lLe,groupId:IT.nullable(),roundId:IT.nullable()}).omit({pageId:!0,type:!0}).partial(),type:YC(`updateBoard`)}),UC({id:IT,type:YC(`removeBoard`)}),UC({edge:UC({condition:PT.optional(),from:IT,isDefault:zC().optional(),label:PT.optional(),to:IT}),ref:FT,type:YC(`addEdge`)}),UC({id:IT,type:YC(`removeEdge`)}),UC({boardId:IT,expected:PT,type:YC(`setCheck`)})])})),LT,RT,fLe,pLe,mLe=o((()=>{hw(),LT={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},RT=H().min(1).max(LT.maxPathLength+2),fLe=WC([UC({content:H(),path:RT}).strict(),UC({fileRef:H().min(1),path:RT}).strict(),UC({base64:H().min(1),path:RT}).strict(),UC({path:RT,uploaded:YC(!0)}).strict(),UC({fromCanvas:UC({canvasId:H().min(1),version:RC().int().positive().optional()}).strict(),path:RT}).strict()]),HC(UC({path:RT,size:RC().int().nonnegative()}).strict()).min(1).max(LT.maxFiles),pLe=UC({newText:H(),oldText:H().min(1),path:RT}).strict(),UC({deletes:HC(RT).max(LT.maxFiles).optional(),edits:HC(pLe).max(200).optional(),writes:HC(fLe).max(LT.maxFiles).optional()}).strict()})),hLe=o((()=>{})),gLe=o((()=>{})),_Le=o((()=>{})),vLe=o((()=>{})),yLe=o((()=>{})),bLe=o((()=>{})),xLe,SLe,CLe,wLe,TLe,ELe,DLe,OLe,kLe,ALe=o((()=>{hw(),xLe=[`new`,`reuse`],SLe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,CLe=UC({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),wLe=UC({arguments:KC(H(),VC()),delivery:CLe.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),TLe=UC({cursor:H().nullable().optional(),deliveryStatus:UC({active:zC().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:RC().nonnegative().optional(),throttled:zC().optional()}).optional(),refreshBefore:jOe({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:zC().optional()}).strict(),ELe=UC({scheme:YC(`standard_webhooks`)}).strict(),DLe=UC({autoApprove:zC(),delivery:CLe.optional(),identifier:H().regex(SLe).optional(),topicMode:qC(xLe),topicId:H().min(1).optional()}).strict(),OLe=UC({}).strict(),kLe=UC({scheme:YC(`bearer_token`)}).strict(),GC(`kind`,[UC({kind:YC(`mcp_events`),config:wLe,state:TLe,verification:ELe}),UC({kind:YC(`generic`),config:DLe,state:OLe,verification:kLe})])})),jLe=o((()=>{})),MLe=o((()=>{})),NLe=o((()=>{})),PLe=o((()=>{})),FLe=o((()=>{})),ILe=o((()=>{})),LLe=o((()=>{})),RLe=o((()=>{ILe(),LLe()})),zLe=o((()=>{})),BLe=o((()=>{})),VLe=o((()=>{pAe(),hAe(),gAe(),_Ae(),CAe(),TAe(),kAe(),AAe(),jAe(),NAe(),PAe(),FAe(),bMe(),xMe(),SMe(),CMe(),wMe(),TMe(),EMe(),OMe(),kMe(),AMe(),jMe(),NMe(),PMe(),FMe(),IMe(),LMe(),RMe(),zMe(),qw(),BMe(),VMe(),HMe(),ZMe(),tNe(),nNe(),rNe(),zAe(),iNe(),xNe(),SNe(),CNe(),wNe(),ENe(),NNe(),PNe(),KNe(),qNe(),JNe(),YNe(),XNe(),aPe(),oPe(),sPe(),cPe(),lPe(),pPe(),mPe(),hPe(),gPe(),_Pe(),yPe(),bPe(),xPe(),SPe(),PPe(),FPe(),IPe(),LPe(),VPe(),HPe(),UPe(),WPe(),GPe(),KPe(),qPe(),EPe(),JPe(),YPe(),$Pe(),nFe(),iFe(),aFe(),dFe(),eMe(),OFe(),kFe(),AFe(),pMe(),nIe(),FIe(),IIe(),RIe(),VIe(),UIe(),WIe(),GIe(),KIe(),JIe(),rLe(),WAe(),dLe(),mLe(),hLe(),gLe(),_Le(),vLe(),Yw(),bLe(),ALe(),jLe(),MLe(),NLe(),PLe(),FLe(),RLe(),pMe(),FIe(),zLe(),yLe(),BLe()})),HLe=o((()=>{})),ULe,zT,WLe=o((()=>{ULe=[`*`,`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(ULe),zT=(e,t)=>({read:e,write:t}),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,null),zT(`knowledge:read`,`knowledge:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,null),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`model:read`,`model:write`),zT(`model:read`,`model:write`),zT(`chat:read`,null),zT(`chat:read`,`chat:write`),zT(`knowledge:read`,`knowledge:write`),zT(`model:read`,`model:write`),zT(`agent:read`,null),zT(`knowledge:read`,`knowledge:write`),zT(`knowledge:read`,`knowledge:write`),zT(`knowledge:read`,`knowledge:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`user:read`,`user:write`),zT(`file:read`,`file:write`),zT(`file:read`,`file:write`),zT(`chat:read`,`chat:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`chat:read`,`chat:write`),zT(`knowledge:read`,`knowledge:write`),zT(`knowledge:read`,`knowledge:write`),zT(`agent:read`,`agent:write`),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`agent:read`,`agent:write`),zT(`knowledge:read`,`knowledge:write`),zT(`user:read`,`user:write`),zT(`chat:read`,`chat:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`chat:read`,null),zT(`chat:read`,null),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`file:read`,`file:write`),zT(`usage:read`,null),zT(`user:read`,`user:write`),zT(`user:read`,`user:write`),zT(`user:read`,`user:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,null),zT(`agent:read`,`agent:write`),zT(`workspace:read`,`workspace:write`),zT(`workspace:read`,null),zT(`workspace:read`,null),zT(`workspace:read`,`workspace:write`)})),BT,GLe=o((()=>{BT=1024*1024,10*BT,10*BT,10*BT,10*BT,50*BT,50*BT,20*BT,5*BT,20*BT,2*BT,100*BT})),KLe=o((()=>{}));function qLe(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=XLe.test(e[0]);JLe.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(YLe,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(YLe,`$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 VT(...e){return qLe(Array.from(Array.isArray(e[0])?e[0]:e))}var JLe,YLe,XLe,ZLe=o((()=>{JLe=RegExp(`^[^/:\\d][^/:]*:/*$`),YLe=RegExp(`^([^/:\\d][^/:]*):/*`),XLe=/^[^/:]+:\d+(?:[/?#]|$)/})),QLe,HT,$Le,eRe,UT,WT,tRe,nRe,rRe,iRe,aRe,oRe,sRe=o((()=>{ZLe(),QLe=`https://app.lobehub.com`,HT=`https://lobehub.com`,$Le=HT,eRe=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},UT=`https://github.com/lobehub/lobehub`,VT(UT,`issues/new/choose`),WT=VT(HT,`/docs`),tRe=VT(WT,`/usage`),nRe=VT(WT,`/self-hosting`),VT(nRe,`/server-database`),`${WT}`,VT(tRe,`/plugins/development`),VT(nRe,`/advanced/upstream-sync`),VT(HT,`blog`),VT(UT,`issues/new/choose`),VT(HT,`/privacy`),VT(HT,`/terms`),rRe=`https://github.com/lobehub/lobe-chat-agents`,VT(rRe,`issues/new`),iRe=(e,t)=>`/agent/${e}`,aRe=(e,t,n)=>VT(`/agent`,e,t),oRe=(e,t)=>VT(`/group`,e,t),VT(UT,`releases`),VT(HT,`changelog`),VT(HT,`/downloads`),VT(HT,`/mobile`)})),cRe=o((()=>{sRe()})),lRe=o((()=>{cRe()})),GT,KT=o((()=>{GT=e=>`https://icons.duckduckgo.com/ip3/${e}.ico`})),uRe,dRe=o((()=>{KT(),uRe=[{auth:`oauth`,author:`AgentMail`,category:`automation`,description:`Give agents their own email inboxes to send and receive mail`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`zapier.com`),identifier:`zapier`,label:`Zapier`,url:`https://mcp.zapier.com/api/mcp/mcp`}]})),fRe,pRe=o((()=>{KT(),fRe=[{auth:`oauth`,author:`Algolia`,category:`coding`,description:`Manage Algolia indices, records and search settings`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`wpvibe.ai`),identifier:`wpvibe`,label:`WPVibe`,url:`https://mcp.wpvibe.ai/mcp`}]})),mRe,hRe=o((()=>{KT(),mRe=[{auth:`oauth`,author:`2Chat`,category:`communication`,description:`Send WhatsApp, SMS and voice messages from your 2Chat numbers`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`restream.io`),identifier:`restream`,label:`Restream`,url:`https://mcp.restream.io/mcp`}]})),gRe,_Re=o((()=>{KT(),gRe=[{auth:`oauth`,author:`Adobe Analytics`,category:`data`,description:`Pull Adobe Analytics reports, metrics and segments`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`windsor.ai`),identifier:`windsor`,label:`Windsor.ai`,url:`https://mcp.windsor.ai`}]})),vRe,yRe=o((()=>{KT(),vRe=[{auth:`oauth`,author:`21st`,category:`design`,description:`Find React UI components and add them to your project`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`sunra.ai`),identifier:`sunra`,label:`Sunra`,url:`https://mcp.sunra.ai`},{auth:`oauth`,author:`VideoGen`,category:`design`,description:`Create videos with VideoGen`,icon:GT(`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:GT(`webflow.com`),identifier:`webflow`,label:`Webflow`,url:`https://mcp.webflow.com/mcp`}]})),bRe,xRe=o((()=>{KT(),bRe=[{auth:`oauth`,author:`Coda`,category:`documents`,description:`Read and update Coda docs and tables`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`wordpress.com`),identifier:`wordpress`,label:`WordPress.com`,url:`https://public-api.wordpress.com/wpcom/v2/mcp/v1`}]})),SRe,CRe=o((()=>{KT(),SRe=[{auth:`none`,author:`1inch`,category:`finance`,description:`Look up 1inch swap API docs and SDK examples`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`ynab.com`),identifier:`ynab`,label:`YNAB`,url:`https://api.ynab.com/mcp`}]})),wRe,TRe=o((()=>{KT(),wRe=[{auth:`oauth`,author:`Tessie`,category:`other`,description:`Check Tesla vehicle status and data through Tessie`,icon:GT(`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:GT(`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:GT(`withings.com`),identifier:`withings`,label:`Withings`,url:`https://mcp.withings.com/mcp`}]})),ERe,DRe=o((()=>{KT(),ERe=[{auth:`oauth`,author:`Akiflow`,category:`productivity`,description:`Plan tasks and time blocks in Akiflow`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`typeform.com`),identifier:`typeform`,label:`Typeform`,url:`https://api.typeform.com/mcp`}]})),ORe,kRe=o((()=>{KT(),ORe=[{auth:`oauth`,author:`Ahrefs`,category:`research`,description:`Pull SEO metrics, backlinks and keyword data from Ahrefs`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`tavily.com`),identifier:`tavily`,label:`Tavily`,url:`https://mcp.tavily.com/mcp`},{auth:`oauth`,author:`TranscriptAPI`,category:`research`,description:`Fetch YouTube video transcripts`,icon:GT(`transcriptapi.com`),identifier:`transcriptapi`,label:`TranscriptAPI`,url:`https://transcriptapi.com/mcp`},{auth:`oauth`,author:`Ubersuggest`,category:`research`,description:`Research SEO keywords with Ubersuggest`,icon:GT(`ubersuggest.com`),identifier:`ubersuggest`,label:`Ubersuggest`,url:`https://ubersuggest-mcp.neilpatelapi.com/mcp`}]})),ARe,jRe=o((()=>{KT(),ARe=[{auth:`none`,author:`Affinity`,category:`sales`,description:`Look up relationships, deals and notes in Affinity`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`workable.com`),identifier:`workable`,label:`Workable`,url:`https://mcp.workable.com/mcp`}]})),MRe=o((()=>{dRe(),pRe(),hRe(),_Re(),yRe(),xRe(),CRe(),TRe(),DRe(),kRe(),jRe(),[...ERe,...mRe,...bRe,...ARe,...fRe,...gRe,...ORe,...vRe,...uRe,...SRe,...wRe]})),NRe=o((()=>{MRe()})),PRe=o((()=>{})),FRe,qT,IRe,LRe,RRe=o((()=>{FRe=e=>e.join(`+`),qT={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},IRe=[{electronAccelerator:`Alt+Shift+Space`,id:qT.QuickComposer,uiKeys:FRe([`alt`,`shift`,`space`])},{electronAccelerator:``,id:qT.QuickChat,uiKeys:``},{electronAccelerator:``,id:qT.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:qT.OpenSettings,nonEditable:!0,uiKeys:FRe([`mod`,`comma`])}],LRe=IRe.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),IRe.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),zRe=o((()=>{RRe(),LRe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),BRe,VRe,HRe,URe=o((()=>{Gw(),BRe={},VRe=Rw,HRe=`/avatars/lobe-ai.png`})),JT=o((()=>{Gw()})),WRe,GRe,KRe,qRe,JRe=o((()=>{Gw(),URe(),JT(),WRe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},GRe={model:Vw,provider:Hw},KRe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:GRe,searchMode:`auto`,selfIteration:{enabled:!1}},qRe={chatConfig:KRe,model:Vw,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:Hw,systemRole:``,tts:WRe}})),YRe=o((()=>{})),XRe=o((()=>{})),ZRe,QRe,$Re,eze,tze,nze,rze,ize,aze,oze,sze,cze,lze,uze,dze,fze,pze,mze=o((()=>{ZRe=`@lobehub/lobehub`,QRe=`2.3.4`,$Re=`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.`,eze=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],tze=`https://github.com/lobehub/lobehub`,nze={url:`https://github.com/lobehub/lobehub/issues/new/choose`},rze={type:`git`,url:`https://github.com/lobehub/lobehub.git`},ize=`LobeHub <i@lobehub.com>`,aze=[`./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`],oze=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],sze={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`},cze={"@types/react":`19.2.13`,"baseline-browser-mapping":`2.10.31`,"better-auth":`1.7.16`,"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`},lze=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.7.16","@better-auth/passkey":"1.7.16","@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.7.16","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"}`),uze={"@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`},dze=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,fze={access:`public`,registry:`https://registry.npmjs.org`},pze={name:ZRe,version:QRe,description:$Re,keywords:eze,homepage:tze,bugs:nze,repository:rze,license:`MIT`,author:ize,sideEffects:aze,workspaces:oze,scripts:sze,"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:cze,dependencies:lze,devDependencies:uze,packageManager:dze,publishConfig:fze}})),YT,XT,ZT=o((()=>{Gw(),mze(),YT=pze.version,XT=Lw!==`LobeHub`})),QT,$T,eE,tE,nE,hze,gze=o((()=>{ZT(),QT=e=>e.join(`+`),$T={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`},eE={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`},tE={Conversation:`conversation`,Essential:`essential`},nE={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},hze=[{group:tE.Essential,id:eE.CommandPalette,keys:QT([$T.Mod,`k`]),scopes:[nE.Global]},{group:tE.Essential,id:eE.Search,keys:QT([$T.Mod,`j`]),scopes:[nE.Global]},{group:tE.Essential,id:eE.SwitchAgent,keys:QT([$T.Ctrl,$T.Number]),nonEditable:!0,scopes:[nE.Global]},{group:tE.Essential,id:eE.SwitchTab,keys:QT([$T.Mod,$T.Number]),nonEditable:!0,scopes:[nE.Global]},{group:tE.Essential,id:eE.NextTab,keys:QT([$T.Ctrl,$T.Tab]),nonEditable:!0,scopes:[nE.Global]},{group:tE.Essential,id:eE.PrevTab,keys:QT([$T.Ctrl,$T.Shift,$T.Tab]),nonEditable:!0,scopes:[nE.Global]},{group:tE.Essential,id:eE.NavigateToChat,keys:QT([$T.Ctrl,$T.Shift,$T.Backquote]),scopes:[nE.Global]},{group:tE.Essential,id:eE.ToggleLeftPanel,keys:QT([$T.Mod,$T.BracketLeft]),scopes:[nE.Global]},{group:tE.Essential,id:eE.ToggleRightPanel,keys:QT([$T.Mod,$T.BracketRight]),scopes:[nE.Global]},{group:tE.Essential,id:eE.OpenHotkeyHelper,keys:QT([$T.Ctrl,$T.Shift,$T.QuestionMark]),scopes:[nE.Global]},{group:tE.Essential,id:eE.ToggleFavorite,keys:QT([$T.Alt,`f`]),scopes:[nE.Global]},{group:tE.Essential,id:eE.OpenTaskFilter,keys:`f`,scopes:[nE.Global]},{group:tE.Conversation,id:eE.FindInTopic,keys:QT([$T.Mod,`f`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.ToggleTerminalPanel,keys:QT([$T.Ctrl,$T.Backquote]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.OpenChatSettings,keys:QT([$T.Alt,$T.Comma]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.RegenerateMessage,keys:QT([$T.Alt,`r`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.DeleteLastMessage,keys:QT([$T.Alt,`d`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.DeleteAndRegenerateMessage,keys:QT([$T.Alt,$T.Shift,`r`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.SaveTopic,keys:QT([$T.Alt,`n`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.EditMessage,keys:QT([$T.Alt,$T.LeftDoubleClick]),nonEditable:!0,scopes:[nE.Chat]},{group:tE.Essential,id:eE.SaveDocument,keys:QT([$T.Mod,`s`]),scopes:[nE.Files]}]})),_ze=o((()=>{gze(),hze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),vze=o((()=>{})),yze=o((()=>{Gw(),JT()})),bze=o((()=>{})),xze=o((()=>{})),Sze,rE,Cze=o((()=>{Gw(),yze(),JT(),Sze={model:Vw,provider:Hw},rE={model:Uw,provider:Ww},rE.model,rE.provider,rE.model,rE.provider,rE.model,rE.provider,{...Sze},Reflect.get(Zke,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(Zke,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),wze=o((()=>{})),Tze=o((()=>{})),iE=o((()=>{JRe(),YRe(),XRe(),_ze(),vze(),yze(),JT(),bze(),xze(),Cze(),wze(),Tze()})),Eze=o((()=>{iE(),new Date().toISOString()})),Dze=o((()=>{})),Oze=o((()=>{Object.freeze([])})),kze=o((()=>{})),Aze,jze,Mze,Nze=o((()=>{Aze=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],jze=2*1024*1024*1024-1,`${jze}`,Mze=64*1024*1024,`${Mze}`,[...Aze]})),Pze,Fze=o((()=>{Gw(),`${Lw}`,Pze=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(Pze)})),Ize,Lze=o((()=>{Ize=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(Ize)})),Rze=o((()=>{})),zze=o((()=>{})),Bze=o((()=>{})),Vze=o((()=>{})),Hze=o((()=>{})),Uze=o((()=>{})),Wze,Gze=o((()=>{mc(),Wze=(e,t)=>Qee({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),Kze,qze,Jze=o((()=>{URe(),iE(),Gze(),Kze=`agent`,qze={config:qRe,createdAt:new Date,id:``,meta:BRe,model:qRe.model,type:Kze,updatedAt:new Date},Wze(qze,{id:`inbox`,meta:{avatar:HRe}})})),Yze=o((()=>{})),Xze=o((()=>{})),Zze=o((()=>{})),Qze=o((()=>{})),$ze=o((()=>{})),eBe=o((()=>{})),tBe=o((()=>{})),nBe=o((()=>{})),rBe,iBe,aBe=o((()=>{Gw(),iE(),rBe={activities:3,contexts:0,experiences:0,preferences:3},iBe={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...rBe}},iBe.high.contexts})),oBe=o((()=>{})),sBe=o((()=>{})),aE=o((()=>{gxe(),vxe(),yxe(),Exe(),HLe(),WLe(),GLe(),KLe(),lRe(),NRe(),PRe(),zRe(),RRe(),Eze(),Dze(),Oze(),kze(),Nze(),Fze(),Lze(),Rze(),zze(),cRe(),Bze(),URe(),MRe(),Vze(),Hze(),Uze(),Jze(),iE(),Yze(),Xze(),Zze(),Qze(),$ze(),eBe(),tBe(),sRe(),nBe(),aBe(),ZT(),oBe(),sBe()}));aE();var oE=[[`LobeHub Cloud`,Iw,`LobeHub Cloud`],[`LobeHub`,Lw,`LobeHub`],[`LobeChat`,Lw,`LobeHub`],[`Lobe AI`,VRe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),cBe=new Map(oE),lBe=`Lobe`,uBe=oE.length?RegExp(`(?<!@)(${oE.map(([e])=>e).join(`|`)})`,`g`):void 0,dBe=oE.length>0,fBe=`brandStrings`,pBe=e=>!uBe||!e.includes(lBe)?e:e.replaceAll(uBe,e=>cBe.get(e)??e),mBe={name:fBe,process:e=>typeof e==`string`?pBe(e):e,type:`postProcessor`},hBe=dBe?{postProcess:[fBe]}:{},gBe=e=>dBe?e.use(mBe):e,_Be=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},vBe=c({default:()=>yBe}),yBe,bBe=o((()=>{yBe={"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 wEe(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;wEe(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 TEe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function cC(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!uC.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]??TEe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}Dx(n,r,e.length===1?e[0]:cC(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=TEe(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 EEe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of uC)if(t in e)return;let n=t.filter(e=>dC.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=cC(t);else{let e=n[0],i=dC.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=>cC([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,aC(e,r))}function DEe(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)):aC(i,s),aC(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())wEe(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)??[])EEe(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)}aC(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,Dx(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:fC(t,`input`,e.processors),output:fC(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function lC(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 lC(r.element,n);if(r.type===`set`)return lC(r.valueType,n);if(r.type===`lazy`)return lC(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 lC(r.innerType,n);if(r.type===`intersection`)return lC(r.left,n)||lC(r.right,n);if(r.type===`record`||r.type===`map`)return lC(r.keyType,n)||lC(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:lC(r.in,n)||lC(r.out,n);if(r.type===`object`){for(let e in r.shape)if(lC(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(lC(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(lC(e,n))return!0;return!!(r.rest&&lC(r.rest,n))}return!1}var uC,dC,OEe,fC,pC=o((()=>{eC(),$x(),uC=new Set([`type`,`properties`,`required`,`additionalProperties`]),dC=[`oneOf`,`anyOf`],OEe=(e,t={})=>n=>{let r=xEe({...n,processors:t});return sC(e,r),CEe(r,e),DEe(r,e)},fC=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=xEe({...i??{},target:a,io:t,processors:n});return sC(e,o),CEe(o,e),DEe(o,e)}}));function mC(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)jEe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&_C(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&_C(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&vC(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&vC(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&bC(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&SC(t,i.mime);for(let e of i.patterns??[])xC(t,e);return t}function hC(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?hC(t.out):t.type===`catch`?hC(t.innerType):e._zod.optin}function gC(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=gC(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=>gC(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`)?yS:uCe).source),p):p}function kEe(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 OC.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=gC(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 AEe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(oC(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),kC):JSON.parse(o)}var _C,vC,yC,bC,xC,SC,CC,wC,TC,EC,jEe,MEe,NEe,DC,PEe,FEe,IEe,LEe,REe,zEe,BEe,VEe,HEe,UEe,WEe,GEe,KEe,qEe,JEe,YEe,XEe,OC,ZEe,QEe,$Ee,kC,eDe,tDe,nDe,rDe,iDe,AC,aDe,jC=o((()=>{bS(),VS(),pC(),$x(),_C=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},vC=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},yC=(e,t)=>{_C(e,`minimum`,t),vC(e,`maximum`,t)},bC=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},xC=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},SC=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},CC=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},wC=(e,t)=>_C(e,`minimum`,t.minimum),TC=(e,t)=>vC(e,`maximum`,t.maximum),EC=e=>(t,n)=>{CC(t,n.format);let[r,i]=e[n.format];_C(t,`minimum`,r),vC(t,`maximum`,i)},jEe={greater_than:(e,t)=>_C(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>vC(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>bC(e,t.value),number_format:EC(Xx),bigint_format:EC(uSe),min_length:wC,max_length:TC,length_equals:(e,t)=>yC(e,t.length),min_size:wC,max_size:TC,size_equals:(e,t)=>yC(e,t.size),string_format:(e,t)=>{CC(e,t.format),t.pattern&&xC(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)=>SC(e,t.mime)},MEe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},NEe=new Map([[FS,iCe],[IS,aCe]]),DC=e=>NEe.get(e)??e,PEe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=mC(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=MEe[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(DC);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}))])}},FEe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=mC(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)):oC(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}))])}},IEe=(e,t,n,r)=>{n.type=`boolean`},LEe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},REe=(e,t,n,r)=>{oC(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},zEe=(e,t,n,r)=>{n.not={}},BEe=(e,t,n,r)=>{},VEe=(e,t,n,r)=>{},HEe=(e,t,n,r)=>{oC(e,t,n,r,`Date cannot be represented in JSON Schema`)},UEe=(e,t,n,r)=>{let i=e._zod.def,a=Cx(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},WEe=(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(oC(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(oC(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},GEe=(e,t,n,r)=>{oC(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},KEe=(e,t,n,r)=>{oC(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},qEe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=mC(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=sC(a.element,t,{...r,path:[...r.path,`items`]})},JEe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&oC(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Dx(i.properties,e,sC(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`?hC(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=sC(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},YEe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>sC(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},XEe=(e,t,n,r)=>{let i=e._zod.def,a=sC(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=sC(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)},OC=new WeakMap,ZEe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=mC(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=sC(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Dx(i.patternProperties,DC(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=sC(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=OC.get(t);n||(n=[],OC.set(t,n),t.deferred.push(()=>kEe(t))),n.push(e)}i.additionalProperties=sC(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&hC(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))}},QEe=(e,t,n,r)=>{let i=e._zod.def,a=sC(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`}]},$Ee=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},kC=Symbol(),eDe=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=AEe(i.defaultValue,e,t,n,r);o!==kC&&(n.default=o)},tDe=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=AEe(i.defaultValue,e,t,n,r);o!==kC&&(n._prefault=o)},nDe=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{oC(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},rDe=(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;sC(o,t,r);let s=t.seen.get(e);s.ref=o},iDe=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},AC=(e,t,n,r)=>{let i=e._zod.def;sC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},aDe=(e,t,n,r)=>{let i=e._zod.innerType;sC(i,t,r);let a=t.seen.get(e);a.ref=i}})),MC=o((()=>{sS(),RSe(),CSe(),VS(),lTe(),DS(),jCe(),$x(),bS(),QS(),eC(),kCe(),hTe(),bEe(),pC(),jC(),pC()})),NC=o((()=>{MC()}));function PC(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 FC,oDe,IC,sDe=o((()=>{MC(),$x(),FC=new WeakSet([Object.prototype,Error.prototype]),oDe=(e,t)=>{SSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);FC.has(n)||(FC.add(n),PC(n,`format`,e=>t=>bSe(e,t)),PC(n,`flatten`,e=>t=>ySe(e,t)),PC(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,wx,2)}),PC(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,wx,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},IC=eS(`ZodError`,oDe,void 0,{Parent:Error})})),cDe,lDe,uDe,dDe,fDe,pDe,mDe,hDe,gDe,_De,vDe,yDe,bDe=o((()=>{MC(),sDe(),cDe=fS(IC),lDe=pS(IC),uDe=mS(IC),dDe=hS(IC),fDe=ASe(IC),pDe=jSe(IC),mDe=MSe(IC),hDe=NSe(IC),gDe=PSe(IC),_De=FSe(IC),vDe=ISe(IC),yDe=LSe(IC)}));function xDe(){oS.localeError||tS(uTe())}function LC(){oS.memoizer||tS({memoizer:aTe()})}function H(e){return _Te(VDe,e)}function RC(e){return WTe(rw,e)}function SDe(e){return GTe(lOe,e)}function zC(e){return KTe(uOe,e)}function CDe(e){return qTe(dOe,e)}function wDe(e){return JTe(fOe,e)}function BC(){return YTe(pOe)}function VC(){return XTe(mOe)}function TDe(e){return ZTe(hOe,e)}function HC(e,t){return hEe(_Oe,e,t)}function UC(e,t){return new iw({type:`object`,shape:e??{},...Ix(t)})}function EDe(e,t){return new iw({type:`object`,shape:e,catchall:TDe(),...Ix(t)})}function WC(e,t){return new aw({type:`union`,options:e,...Ix(t)})}function GC(e,t,n){return new vOe({type:`union`,options:t,discriminator:e,...Ix(n)})}function DDe(e,t){return new yOe({type:`intersection`,left:e,right:t})}function KC(e,t,n){return!t||!t._zod?new ow({type:`record`,keyType:H(),valueType:e,...Ix(t)}):new ow({type:`record`,keyType:e,valueType:t,...Ix(n)})}function qC(e,t){return new sw({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Ix(t)})}function JC(e,t){return new sw({type:`enum`,entries:e,...Ix(t)})}function YC(e,t){return new bOe({type:`literal`,values:Array.isArray(e)?e:[e],...Ix(t)})}function ODe(e){return new xOe({type:`transform`,transform:e})}function kDe(e){return new cw({type:`optional`,innerType:e})}function ADe(e){return new lw({type:`optional`,innerType:e})}function jDe(e){return new SOe({type:`nullable`,innerType:e})}function MDe(e,t){return new COe({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Vxe(t)}})}function NDe(e,t){return new wOe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Vxe(t)}})}function PDe(e,t){return new uw({type:`nonoptional`,innerType:e,...Ix(t)})}function FDe(e,t){return new TOe({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:oSe(t)})}function IDe(e,t){return new dw({type:`pipe`,in:e,out:t})}function LDe(e){return new DOe({type:`readonly`,innerType:e})}function RDe(e){return new OOe({type:`lazy`,getter:e})}function XC(e,t){return gEe(fw,e??(()=>!0),t)}function zDe(e,t={}){return _Ee(fw,e,t)}function BDe(e,t){return vEe(e,t)}function ZC(e,t){return new EOe({type:`pipe`,in:ODe(e),out:t})}var QC,$C,VDe,ew,tw,HDe,UDe,WDe,GDe,KDe,nw,qDe,JDe,YDe,XDe,ZDe,QDe,$De,eOe,tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,rw,lOe,uOe,dOe,fOe,pOe,mOe,hOe,gOe,_Oe,iw,aw,vOe,yOe,ow,sw,bOe,xOe,cw,lw,SOe,COe,wOe,uw,TOe,dw,EOe,DOe,OOe,fw,pw=o((()=>{MC(),jC(),pC(),QS(),NC(),bDe(),QC=eS(`ZodType`,(e,t)=>(xDe(),jS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(jx(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 Fx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(zDe(e,t))},superRefine(e,t){return this.check(BDe(e,t))},overwrite(e){return this.check(iC(e))},optional(){return kDe(this)},exactOptional(){return ADe(this)},nullable(){return jDe(this)},nullish(){return kDe(jDe(this))},nonoptional(e){return PDe(this,e)},array(){return HC(this)},or(e){return WC([this,e])},and(e){return DDe(this,e)},transform(e){return IDe(this,ODe(e))},default(e){return MDe(this,e)},prefault(e){return NDe(this,e)},catch(e){return FDe(this,e)},pipe(e){return IDe(this,e)},readonly(){return LDe(this)},describe(e){let t=this.clone();return $S.add(t,{description:e}),t},meta(...e){if(e.length===0)return $S.get(this);let t=this.clone();return $S.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 nSe(this,`~standard`,{...NCe(this),jsonSchema:{input:fC(this,`input`),output:fC(this,`output`)}})},set"~standard"(e){Gx(this,`~standard`,e)},parse:function e(t,n){return cDe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await lDe(this,t,n,{callee:e})},safeParse(e,t){return uDe(this,e,t)},async safeParseAsync(e,t){return dDe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Gx(this,`spa`,e)},validate(e,t){return OSe(this,e,t)},validateAsync(e,t){return kSe(this,e,t)},encode:function e(t,n){return fDe(this,t,n,{callee:e})},decode:function e(t,n){return pDe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await mDe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await hDe(this,t,n,{callee:e})},safeEncode(e,t){return gDe(this,e,t)},safeDecode(e,t){return _De(this,e,t)},async safeEncodeAsync(e,t){return vDe(this,e,t)},async safeDecodeAsync(e,t){return yDe(this,e,t)},toJSONSchema(e){return OEe(this,{})(e)},get description(){return $S.get(this)?.description},get _def(){return this._zod.def}}),$C=eS(`_ZodString`,(e,t)=>{NS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PEe(e,t,n,r)},Kx({format:e=>mC(e).format??null,minLength:e=>mC(e).minimum??null,maxLength:e=>mC(e).maximum??null},{regex(...e){return this.check(iEe(...e))},includes(...e){return this.check(sEe(...e))},startsWith(...e){return this.check(cEe(...e))},endsWith(...e){return this.check(lEe(...e))},min(...e){return this.check(rC(...e))},max(...e){return this.check(nEe(...e))},length(...e){return this.check(rEe(...e))},nonempty(...e){return this.check(rC(1,...e))},lowercase(e){return this.check(aEe(e))},uppercase(e){return this.check(oEe(e))},trim(){return this.check(dEe())},normalize(...e){return this.check(uEe(...e))},toLowerCase(){return this.check(fEe())},toUpperCase(){return this.check(pEe())},slugify(){return this.check(mEe())}})),VDe=eS(`ZodString`,(e,t)=>{NS.init(e,t),$C.init(e,t)},{email(e){return this.check(vTe(GDe,e))},url(e){return this.check(wTe(qDe,e))},jwt(e){return this.check(zTe(cOe,e))},emoji(e){return this.check(TTe(JDe,e))},guid(e){return this.check(yTe(KDe,e))},uuid(e){return this.check(bTe(nw,e))},uuidv4(e){return this.check(xTe(nw,e))},uuidv6(e){return this.check(STe(nw,e))},uuidv7(e){return this.check(CTe(nw,e))},nanoid(e){return this.check(ETe(YDe,e))},cuid(e){return this.check(DTe(XDe,e))},cuid2(e){return this.check(OTe(ZDe,e))},ulid(e){return this.check(kTe(QDe,e))},base64(e){return this.check(ITe(aOe,e))},base64url(e){return this.check(LTe(oOe,e))},xid(e){return this.check(ATe($De,e))},ksuid(e){return this.check(jTe(eOe,e))},ipv4(e){return this.check(MTe(tOe,e))},ipv6(e){return this.check(NTe(nOe,e))},cidrv4(e){return this.check(PTe(rOe,e))},cidrv6(e){return this.check(FTe(iOe,e))},e164(e){return this.check(RTe(sOe,e))},datetime(e){return this.check(BTe(tw,e))},date(e){return this.check(VTe(HDe,e))},time(e){return this.check(HTe(UDe,e))},duration(e){return this.check(UTe(WDe,e))}}),ew=eS(`ZodStringFormat`,(e,t)=>{PS.init(e,t),$C.init(e,t)}),tw=eS(`ZodISODateTime`,(e,t)=>{hwe.init(e,t),ew.init(e,t)}),HDe=eS(`ZodISODate`,(e,t)=>{gwe.init(e,t),ew.init(e,t)}),UDe=eS(`ZodISOTime`,(e,t)=>{_we.init(e,t),ew.init(e,t)}),WDe=eS(`ZodISODuration`,(e,t)=>{vwe.init(e,t),ew.init(e,t)}),GDe=eS(`ZodEmail`,(e,t)=>{awe.init(e,t),ew.init(e,t)}),KDe=eS(`ZodGUID`,(e,t)=>{rwe.init(e,t),ew.init(e,t)}),nw=eS(`ZodUUID`,(e,t)=>{iwe.init(e,t),ew.init(e,t)}),qDe=eS(`ZodURL`,(e,t)=>{swe.init(e,t),ew.init(e,t)}),JDe=eS(`ZodEmoji`,(e,t)=>{cwe.init(e,t),ew.init(e,t)}),YDe=eS(`ZodNanoID`,(e,t)=>{lwe.init(e,t),ew.init(e,t)}),XDe=eS(`ZodCUID`,(e,t)=>{uwe.init(e,t),ew.init(e,t)}),ZDe=eS(`ZodCUID2`,(e,t)=>{dwe.init(e,t),ew.init(e,t)}),QDe=eS(`ZodULID`,(e,t)=>{fwe.init(e,t),ew.init(e,t)}),$De=eS(`ZodXID`,(e,t)=>{pwe.init(e,t),ew.init(e,t)}),eOe=eS(`ZodKSUID`,(e,t)=>{mwe.init(e,t),ew.init(e,t)}),tOe=eS(`ZodIPv4`,(e,t)=>{ywe.init(e,t),ew.init(e,t)}),nOe=eS(`ZodIPv6`,(e,t)=>{xwe.init(e,t),ew.init(e,t)}),rOe=eS(`ZodCIDRv4`,(e,t)=>{Swe.init(e,t),ew.init(e,t)}),iOe=eS(`ZodCIDRv6`,(e,t)=>{Cwe.init(e,t),ew.init(e,t)}),aOe=eS(`ZodBase64`,(e,t)=>{wwe.init(e,t),ew.init(e,t)}),oOe=eS(`ZodBase64URL`,(e,t)=>{Twe.init(e,t),ew.init(e,t)}),sOe=eS(`ZodE164`,(e,t)=>{Ewe.init(e,t),ew.init(e,t)}),cOe=eS(`ZodJWT`,(e,t)=>{Dwe.init(e,t),ew.init(e,t)}),rw=eS(`ZodNumber`,(e,t)=>{LS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FEe(e,t,n,r),e.isFinite=!0},Kx({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=mC(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=mC(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=mC(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>mC(e).format??null},{gt(e,t){return this.check(eEe(e,t))},gte(e,t){return this.check(nC(e,t))},min(e,t){return this.check(nC(e,t))},lt(e,t){return this.check($Te(e,t))},lte(e,t){return this.check(tC(e,t))},max(e,t){return this.check(tC(e,t))},int(e){return this.check(SDe(e))},safe(e){return this.check(SDe(e))},positive(e){return this.check(eEe(0,e))},nonnegative(e){return this.check(nC(0,e))},negative(e){return this.check($Te(0,e))},nonpositive(e){return this.check(tC(0,e))},multipleOf(e,t){return this.check(tEe(e,t))},step(e,t){return this.check(tEe(e,t))},finite(){return this}})),lOe=eS(`ZodNumberFormat`,(e,t)=>{Owe.init(e,t),rw.init(e,t)}),uOe=eS(`ZodBoolean`,(e,t)=>{kwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IEe(e,t,n,r)}),dOe=eS(`ZodUndefined`,(e,t)=>{Awe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>REe(e,t,n,r)}),fOe=eS(`ZodNull`,(e,t)=>{jwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LEe(e,t,n,r)}),pOe=eS(`ZodAny`,(e,t)=>{Mwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BEe(e,t,n,r)}),mOe=eS(`ZodUnknown`,(e,t)=>{Nwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VEe(e,t,n,r)}),hOe=eS(`ZodNever`,(e,t)=>{Pwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zEe(e,t,n,r)}),gOe=eS(`ZodDate`,(e,t)=>{Fwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HEe(e,t,n,r),e.min=(t,n)=>e.check(nC(t,n)),e.max=(t,n)=>e.check(tC(t,n))},Kx({minDate:e=>{let{minimum:t}=mC(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=mC(e);return t?new Date(t):null}},{})),_Oe=eS(`ZodArray`,(e,t)=>{LC(),Iwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qEe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(rC(e,t))},nonempty(e){return this.check(rC(1,e))},max(e,t){return this.check(nEe(e,t))},length(e,t){return this.check(rEe(e,t))},unwrap(){return this.element}}),iw=eS(`ZodObject`,(e,t)=>{LC(),zwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JEe(e,t,n,r),aSe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return qC(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(jx(this._zod.def,{catchall:e}))},passthrough(){return this.clone(jx(this._zod.def,{catchall:VC()}))},loose(){return this.clone(jx(this._zod.def,{catchall:VC()}))},strict(){return this.clone(jx(this._zod.def,{catchall:TDe()}))},strip(){return this.clone(jx(this._zod.def,{catchall:void 0}))},extend(e){return Kxe(this,e)},safeExtend(e){return Jxe(this,e)},merge(e){return Yxe(this,e)},pick(e){return Wxe(this,e)},omit(e){return Gxe(this,e)},partial(...e){return Xxe(cw,this,e[0])},exactPartial(...e){return Xxe(lw,this,e[0],`exactPartial`)},required(...e){return Zxe(uw,this,e[0])}}),aw=eS(`ZodUnion`,(e,t)=>{RS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YEe(e,t,n,r),e.options=t.options}),vOe=eS(`ZodDiscriminatedUnion`,(e,t)=>{aw.init(e,t),Bwe.init(e,t)}),yOe=eS(`ZodIntersection`,(e,t)=>{Vwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XEe(e,t,n,r)}),ow=eS(`ZodRecord`,(e,t)=>{LC(),Hwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZEe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),sw=eS(`ZodEnum`,(e,t)=>{Uwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UEe(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 sw({...t,checks:[],...Ix(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 sw({...t,checks:[],...Ix(r),entries:i})}}),bOe=eS(`ZodLiteral`,(e,t)=>{Wwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WEe(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]}})}),xOe=eS(`ZodTransform`,(e,t)=>{LC(),Gwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KEe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new aS(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Wx(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(Wx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),cw=eS(`ZodOptional`,(e,t)=>{zS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),lw=eS(`ZodExactOptional`,(e,t)=>{Kwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),SOe=eS(`ZodNullable`,(e,t)=>{qwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),COe=eS(`ZodDefault`,(e,t)=>{Jwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),wOe=eS(`ZodPrefault`,(e,t)=>{Ywe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),uw=eS(`ZodNonOptional`,(e,t)=>{Xwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$Ee(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),TOe=eS(`ZodCatch`,(e,t)=>{Zwe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),dw=eS(`ZodPipe`,(e,t)=>{BS.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rDe(e,t,n,r),e.in=t.in,e.out=t.out}),EOe=eS(`ZodPreprocess`,(e,t)=>{dw.init(e,t),Qwe.init(e,t)}),DOe=eS(`ZodReadonly`,(e,t)=>{$we.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),OOe=eS(`ZodLazy`,(e,t)=>{eTe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),fw=eS(`ZodCustom`,(e,t)=>{tTe.init(e,t),QC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GEe(e,t,n,r)})})),kOe,AOe=o((()=>{MC(),kOe||={}}));function jOe(e){return BTe(tw,e)}var MOe=o((()=>{MC(),pw()}));function mw(e){return QTe(gOe,e)}var NOe=o((()=>{MC(),pw()})),POe=o((()=>{MC(),pw(),NC(),sDe(),bDe(),AOe(),jC(),eC(),$x(),NC(),MOe(),pw(),VS(),QS(),NOe()})),hw=o((()=>{POe(),POe()})),gw,_w,vw,yw,FOe,bw,xw=o((()=>{hw(),gw=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],_w=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:gw,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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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:[...gw,`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`}],vw=_w.map(({type:e})=>e),qC(vw),yw=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],FOe=qC([...vw,...yw.map(({type:e})=>e)]),bw=[{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`}]})),Sw,Cw,ww,IOe,Tw,Ew,Dw,Ow,LOe,ROe,zOe,BOe,VOe,HOe,kw,UOe,Aw,WOe,GOe,KOe,qOe,JOe,YOe,XOe,ZOe,QOe,$Oe,eke,tke,nke,jw,Mw,rke,ike,ake,oke,ske,cke,Nw,Pw,lke,Fw,uke=o((()=>{jxe(),Sw=`default`,Cw=[`low`,`medium`,`high`,`ultra`],ww=[`low`,`medium`,`high`,`xhigh`,`max`],IOe=[`low`,`medium`,`high`,`xhigh`,`max`],Tw=[`low`,`medium`,`high`,`xhigh`],Ew=[`--effort`,`--reasoning-effort`],Dw=[`low`,`medium`,`high`,`xhigh`],Ow=[...Dw,`max`,`ultra`],LOe=`model_reasoning_effort`,ROe=[`low`,`high`,`max`],zOe=[`high`,`max`],BOe=[...Dw,`max`],VOe=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],HOe=[`gpt-6-astra`,`gpt-5.6-luna`],kw=[`low`,`medium`,`high`,`xhigh`,`max`],UOe=`--reasoning-effort`,Aw=[`low`,`medium`,`high`,`xhigh`,`max`],WOe=`--reasoning-effort`,GOe=`service_tier`,KOe=[`fast`,`priority`],qOe=e=>!!e&&Cw.includes(e),JOe=e=>!!e&&ww.includes(e),YOe=e=>!!e&&Ow.includes(e),XOe=e=>!!e&&Tw.includes(e),ZOe=e=>!!e&&kw.includes(e),QOe=e=>!!e&&Aw.includes(e),$Oe=e=>!!e&&KOe.includes(e),eke=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?ROe:e===`glm-5.2`?zOe:VOe.includes(e)?Ow:HOe.includes(e)?BOe:Dw,tke=e=>{let t=(yx(e?.args,`--mode`)??e?.mode)?.trim();return qOe(t)?t:Sw},nke=[`-m`,`--model`],jw=e=>{let t=(yx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:Sw},Mw=e=>{let t=(yx(e?.args,`--effort`)??e?.effort)?.trim();return JOe(t)?t:Sw},rke=e=>{let t=(bx(e?.args,nke)??Sx(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:Sw},ike=e=>{let t=(Sx(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return YOe(t)?t:Sw},ake=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:$Oe(t)?`fast`:Sw},oke=e=>{let t=(bx(e?.args,Ew)??e?.effort)?.trim();return XOe(t)?t:Sw},ske=e=>{let t=(yx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return ZOe(t)?t:Sw},cke=e=>{let t=(yx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return QOe(t)?t:Sw},Nw=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:Sw},Pw={flags:[`-m`,`--model`],kind:`flag`},lke={antigravity:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:(e,t)=>t?t.find(t=>t.id===e)?.effortLevels??[]:IOe,resolve:Mw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:jw,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:Cw,resolve:tke}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>ww,resolve:Mw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:jw,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>ww,resolve:Mw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:jw,source:`catalog`}},codex:{effort:{encodings:[{key:LOe,kind:`config`}],levels:eke,resolve:ike},model:{encodings:[Pw,{key:`model`,kind:`config`}],resolve:rke,source:`catalog`},speed:{encodings:[{key:GOe,kind:`config`}],resolve:ake}},copilot:{effort:{encodings:[{flags:[WOe],kind:`flag`}],levels:()=>Aw,resolve:cke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Nw,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Nw,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:Nw,source:`catalog`}},droid:{model:{encodings:[],resolve:Nw,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Nw,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:Ew,kind:`flag`}],levels:()=>Tw,resolve:oke},model:{encodings:[Pw],resolve:Nw,source:`catalog`}},"kimi-code":{model:{encodings:[Pw],resolve:Nw,source:`catalog`}},opencode:{model:{encodings:[Pw],resolve:Nw,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:Nw,source:`catalog`}},qoder:{effort:{encodings:[{flags:[UOe],kind:`flag`}],levels:()=>kw,resolve:ske},model:{encodings:[Pw],resolve:Nw,source:`catalog`}},trae:{model:{encodings:[],resolve:Nw,source:`catalog`}}},Fw=e=>lke[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),Fw(`copilot`),Fw(`grok-build`),Fw(`kimi-code`),Fw(`opencode`),Fw(`pi`),Fw(`qoder`)})),dke=o((()=>{})),fke=o((()=>{xw(),dke(),new Set([..._w.map(({type:e})=>e),...yw.map(({type:e})=>e),...bw.map(({type:e})=>e)])})),pke=o((()=>{})),mke=o((()=>{})),hke,gke,_ke,vke,yke=o((()=>{hw(),hke=UC({workingDirectory:H().optional()}),gke=UC({memory:UC({effort:qC([`low`,`medium`,`high`]).optional(),enabled:zC().optional(),toolPermission:qC([`read-only`,`read-write`]).optional()}).optional()}),_ke=UC({selfIteration:UC({enabled:zC().optional()}).optional()}),vke=UC({codexMaxReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:qC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:qC([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:qC([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:zC().optional(),disableGatewayMode:zC().optional(),effort:qC([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:zC().optional(),enableAgentMode:zC().optional(),toolMode:qC([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:zC().optional(),enableCompressHistory:zC().optional(),enableContextCompression:zC().optional(),enableFollowUpChips:zC().optional(),enableHistoryCount:zC().optional(),enableMaxTokens:zC().optional(),enableReasoning:zC().optional(),enableReasoningEffort:zC().optional(),enableStreaming:zC().optional(),enableStaleToolResultTrim:zC().optional(),gpt5ReasoningEffort:qC([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:qC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:qC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:qC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:qC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:qC([`high`,`max`]).optional(),glm5_3ReasoningEffort:qC([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:qC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:qC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:qC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:qC([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:qC([`high`,`xhigh`]).optional(),historyCount:RC().optional(),imageAspectRatio:H().optional(),imageAspectRatio2:H().optional(),imageResolution:qC([`1K`,`2K`,`4K`]).optional(),imageResolution2:qC([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:qC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:hke.optional(),preserveThinking:zC().optional(),reasoningBudgetToken:RC().optional(),reasoningBudgetToken32k:RC().optional(),reasoningBudgetToken80k:RC().optional(),reasoningEffort:qC([`low`,`medium`,`high`]).optional(),reasoningMode:qC([`standard`,`pro`]).optional(),searchFCModel:UC({model:H(),provider:H()}).optional(),searchMode:qC([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:qC([`low`,`high`]).optional(),skillActivateMode:qC([`auto`,`manual`]).optional(),textVerbosity:qC([`low`,`medium`,`high`]).optional(),thinking:qC([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:RC().optional(),thinkingLevel:qC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:qC([`low`,`high`]).optional(),thinkingLevel3:qC([`low`,`medium`,`high`]).optional(),thinkingLevel4:qC([`minimal`,`high`]).optional(),thinkingLevel5:qC([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:RC().default(25e3),topicGroupMode:qC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:zC().optional(),useModelBuiltinSearch:zC().optional()}).merge(gke).merge(_ke)})),bke=o((()=>{})),xke=o((()=>{})),Iw,Lw,Rw,zw,Ske,Cke,wke,Tke,Eke,Bw,Dke,Oke=o((()=>{Iw=`LobeHub Cloud`,Lw=`LobeHub`,Rw=`Lobe AI`,zw=`LobeHub`,Ske={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},Cke={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`},wke={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},Tke={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},Eke=`lobehub`,Bw=`© ${new Date().getFullYear()} ${zw}`,Dke=`${Bw}. All rights reserved.`})),kke,Ake,jke,Vw,Hw,Uw,Ww,Mke,Nke,Pke,Fke,Ike,Lke,Rke,zke,Bke,Vke,Hke,Uke,Wke,Gke,Kke=o((()=>{kke=`jev-1.14.0`,Ake=`typesafe`,jke=`openai`,Vw=`deepseek-v4-flash`,Hw=`deepseek`,Uw=`gpt-5.6-luna`,Ww=`openai`,Mke=`decision`,Nke=`gpt-6-luna:decision`,Pke=`openai`,Fke=`gpt-4o-mini-transcribe`,Ike=`openai`,Lke=`gemini-3-flash-preview`,Rke=`google`,zke=`gemini-3.8-flash`,Bke=`google`,Vke=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],Hke=`glm-5.3-flash`,Uke=`zhipu`,Wke=`deepseek-flash`,Gke=`deepseek`})),qke,Jke=o((()=>{qke=[]})),Yke,Xke=o((()=>{Yke=`chat_preview`})),Zke=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>Qke,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>Tke,BRANDING_INBOX_TITLE:()=>Rw,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>Lw,BRANDING_PROVIDER:()=>Eke,BRANDING_URL:()=>Ske,BUSINESS_OIDC_CLIENTS:()=>qke,COPYRIGHT:()=>Bw,COPYRIGHT_FULL:()=>Dke,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>Vke,DEFAULT_ASR_MODEL:()=>Fke,DEFAULT_ASR_PROVIDER:()=>Ike,DEFAULT_BOT_WAKE_ENGINE:()=>Mke,DEFAULT_BOT_WAKE_MODEL:()=>Nke,DEFAULT_BOT_WAKE_PROVIDER:()=>Pke,DEFAULT_CHANNEL_ROUTING_MODEL:()=>kke,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>Ake,DEFAULT_EMBEDDING_PROVIDER:()=>jke,DEFAULT_MINI_MODEL:()=>Uw,DEFAULT_MINI_PROVIDER:()=>Ww,DEFAULT_MODEL:()=>Vw,DEFAULT_ONBOARDING_MODEL:()=>Lke,DEFAULT_ONBOARDING_PROVIDER:()=>Rke,DEFAULT_PROVIDER:()=>Hw,DEFAULT_REVIEW_PREDICT_MODEL:()=>zke,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>Bke,DEFAULT_VERIFY_MODEL:()=>Hke,DEFAULT_VERIFY_PLAN_MODEL:()=>Wke,DEFAULT_VERIFY_PLAN_PROVIDER:()=>Gke,DEFAULT_VERIFY_PROVIDER:()=>Uke,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>wke,LOBE_CHAT_CLOUD:()=>Iw,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>$ke,ORG_NAME:()=>zw,SOCIAL_URL:()=>Cke,UTM_SOURCE:()=>Yke,isOfficialProvider:()=>eAe}),Qke,$ke,eAe,Gw=o((()=>{Oke(),Oke(),Kke(),Jke(),Xke(),Qke=`sk-lh-`,$ke=`The official provider cannot be disabled.`,eAe=e=>!1})),tAe=o((()=>{Gw()})),nAe=o((()=>{})),rAe=o((()=>{})),iAe,aAe,oAe=o((()=>{hw(),iAe=qC([`pinned`,`auto`,`disabled`]),aAe=WC([H(),UC({builtinOverride:YC(!0).optional(),identifier:H(),mode:iAe.optional()})])})),sAe=o((()=>{hw(),yke(),oAe(),UC({agencyConfig:XC().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:vke.optional(),description:H().nullish(),editorData:VC().optional(),fewShots:VC().optional(),marketIdentifier:H().nullish(),metadata:KC(H(),VC()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:HC(H()).optional(),params:KC(H(),VC()).optional(),plugins:HC(aAe).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:HC(H()).optional(),title:H().nullish(),tts:XC().optional(),virtual:zC().nullish(),visibility:qC([`private`,`public`]).optional()})})),cAe=o((()=>{})),lAe=o((()=>{})),uAe=o((()=>{})),dAe=o((()=>{})),fAe=o((()=>{})),pAe=o((()=>{fke(),pke(),mke(),yke(),bke(),xke(),tAe(),jxe(),xw(),nAe(),rAe(),uke(),sAe(),cAe(),oAe(),lAe(),uAe(),dAe(),fAe()})),mAe,hAe=o((()=>{mAe=[`mail`,`wallet`,`service`],[...mAe]})),gAe=o((()=>{})),_Ae=o((()=>{})),vAe,Kw,yAe=o((()=>{hw(),vAe=UC({ciStatus:qC([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:zC().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:RC(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),Kw=UC({environmentId:H().max(255).optional(),git:UC({activeWorktree:H().optional(),autoCreated:zC().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:zC().optional(),github:UC({extraPullRequestCount:RC().optional(),pullRequest:vAe.nullable().optional(),pullRequestStatus:qC([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:zC().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:UC({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:qC([`git`,`github`]).optional(),sessionPath:H().optional()})})),qw=o((()=>{yAe()})),Jw,Yw=o((()=>{Jw=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),bAe=o((()=>{})),xAe=o((()=>{})),SAe=o((()=>{})),CAe=o((()=>{hw(),qw(),Yw(),bAe(),xAe(),SAe(),UC({heteroPermissionMode:qC(Jw).optional(),heteroPlanMode:zC().optional(),repos:HC(H()).optional(),sandboxDrive:qC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:zC().optional(),sandboxTemporary:zC().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:Kw.optional()})})),wAe,TAe=o((()=>{hw(),wAe=UC({allowDM:zC().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:HC(H()).optional(),personal:zC().optional(),revealDM:zC().optional(),systemPrompt:H().optional()}),UC({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:wAe.nullish(),content:H().nullish(),description:H().nullish(),editorData:KC(H(),BC()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:zC().nullish(),title:H().nullish(),visibility:qC([`private`,`public`]).optional()})})),EAe,DAe,OAe,kAe=o((()=>{hw(),EAe=qC([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),DAe=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),OAe=EDe({allowedEnvVars:HC(H().regex(/^[A-Z_]\w*$/i)).optional(),body:KC(H(),VC()).optional(),delivery:qC([`fetch`,`qstash`]).optional(),eventFields:HC(H()).optional(),fallback:qC([`fetch`,`none`]).optional(),headers:KC(H(),H()).optional(),onError:qC([`continue`,`block`]).optional(),responseHandling:qC([`ignore`,`toolCall`]).optional(),timeout:RC().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`})}),EDe({id:H(),matcher:DAe.optional(),type:EAe,webhook:OAe}).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`})})})),AAe=o((()=>{hw(),GC(`decision`,[UC({decision:YC(`allow`)}),UC({decision:YC(`deny`),reason:H().optional()})])})),jAe=o((()=>{})),MAe,NAe=o((()=>{MAe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(MAe)})),PAe=o((()=>{})),FAe=o((()=>{})),IAe,LAe,RAe,zAe=o((()=>{IAe={messages:`msg`,threads:`thd`,topics:`tpc`},LAe=`[0-9a-zA-Z]{8,32}`,RAe=e=>RegExp(`^${IAe[e]}_${LAe}$`)})),Xw,BAe,VAe,HAe=o((()=>{hw(),Xw=UC({attribution:qC([`user`,`provider`,`harness`,`system`]).optional(),body:BC().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:zC().optional(),httpStatus:RC().optional(),isFallback:zC().optional(),message:H().optional(),numericId:RC().optional(),retryable:zC().optional(),severity:qC([`info`,`warning`,`error`,`critical`]).optional(),type:WC([H(),RC()])}),BAe=UC({content:HC(KC(H(),VC())).optional(),encrypted_content:H().nullish(),id:H(),status:qC([`in_progress`,`completed`,`incomplete`]).optional(),summary:HC(UC({text:H(),type:YC(`summary_text`)})),type:YC(`reasoning`)}).passthrough(),VAe=UC({content:H().optional(),duration:RC().optional(),isMultimodal:zC().optional(),responseItems:HC(BAe).optional(),signature:H().optional()})})),UAe,WAe=o((()=>{UAe=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}({})})),Zw,GAe,KAe=o((()=>{hw(),Zw=RC().catch(0),GAe=UC({bySource:UC({content:Zw,fileContext:Zw,reasoning:Zw,thoughtSignature:Zw,toolCallId:Zw,toolCalls:Zw,toolDefinition:Zw}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:YC(`tokenx`).catch(`tokenx`),messageCount:Zw,system:Zw,total:Zw})})),qAe,JAe,Qw,YAe,XAe,ZAe,QAe,$Ae,$w,eT=o((()=>{hw(),qAe=qC([`markdown`,`text`,`xml`]),JAe=UC({endLine:RC().optional(),startLine:RC()}),Qw=UC({content:H(),format:qAe.optional(),id:H(),lineRange:JAe.optional(),preview:H().optional(),title:H().optional()}),YAe=Qw.extend({anchor:UC({endNodeId:H(),endOffset:RC(),startNodeId:H(),startOffset:RC()}).optional(),pageId:H(),source:YC(`page`),xml:H().optional()}),XAe=Qw.extend({filePath:H(),language:H().optional(),side:qC([`additions`,`context`,`deletions`]).optional(),source:YC(`code`),workingDirectory:H().optional()}),ZAe=Qw.extend({source:YC(`text`)}),QAe=Qw.extend({element:UC({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:YC(`element`)}),$Ae=Qw.extend({identifier:H(),source:YC(`mcpApp`)}),$w=GC(`source`,[YAe,XAe,ZAe,QAe,$Ae])})),tT,nT=o((()=>{hw(),eT(),tT=Qw.omit({lineRange:!0}).extend({anchor:UC({endNodeId:H(),endOffset:RC(),startNodeId:H(),startOffset:RC()}).optional(),startLine:RC().optional(),endLine:RC().optional(),pageId:H(),xml:H().optional()})})),eje,tje,rT,nje,rje,ije,aje,oje,sje,cje,lje,uje,dje,fje,pje,iT,mje,hje=o((()=>{hw(),WAe(),KAe(),eT(),nT(),eje=WC([UC({action:qC([`create`,`update`,`delete`]),changeType:qC([`created`,`updated`]).optional(),targets:HC(UC({taskId:H().optional(),taskIdentifier:H().optional()})),type:YC(`task`)}),UC({args:KC(H(),VC()).optional(),data:VC(),provider:H(),toolName:H(),type:YC(`skill`)}),UC({action:YC(`register`),document:UC({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:qC([`created`,`updated`]),toolName:H()}),type:YC(`document`)}),UC({action:YC(`delete`),document:UC({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:YC(`document`)}),UC({action:YC(`register`),canvas:UC({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:UC({entry:H(),fileCount:RC(),manifestKey:H(),runtimeMajor:RC(),totalSize:RC()})}),type:YC(`canvas`)})]),tje=UC({apiName:qC([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:KC(H(),VC()),capturedAt:H(),content:H().nullable(),error:VC().optional(),identifier:YC(`lobe-local-system`),result:VC().optional(),snapshotId:H(),state:VC().optional(),success:zC(),toolCallId:H()}),rT=UC({inputCachedTokens:RC().optional(),inputCacheMissTokens:RC().optional(),inputWriteCacheTokens:RC().optional(),inputCachedTextTokens:RC().optional(),inputCachedImageTokens:RC().optional(),inputCachedAudioTokens:RC().optional(),inputCachedVideoTokens:RC().optional(),inputTextTokens:RC().optional(),inputImageTokens:RC().optional(),inputAudioTokens:RC().optional(),inputVideoTokens:RC().optional(),inputCitationTokens:RC().optional(),inputToolTokens:RC().optional(),inputCharacters:RC().optional(),outputTextTokens:RC().optional(),outputImageTokens:RC().optional(),outputAudioTokens:RC().optional(),outputReasoningTokens:RC().optional(),outputVideoTokens:RC().optional(),acceptedPredictionTokens:RC().optional(),rejectedPredictionTokens:RC().optional(),totalInputTokens:RC().optional(),totalOutputTokens:RC().optional(),totalTokens:RC().optional(),cost:RC().optional(),credits:RC().optional()}),nje=UC({tps:RC().optional(),ttft:RC().optional(),duration:RC().optional(),latency:RC().optional()}),rje=UC({emoji:H(),count:RC(),users:HC(H())}),ije=UC({sequence:RC().optional(),sourceToolCallId:H(),sourceToolName:H(),type:qC([`tool-stdout`,`tool-callback`,`task-completion`])}),aje=UC({identifier:H()}),oje=UC({agentId:H().optional(),name:H(),status:qC([`completed`,`error`]),threadId:H()}),sje=UC({identifier:H(),reason:qC([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),cje=UC({rootOperationId:H().min(1),userMessageId:H().optional()}),lje=UC({kind:qC([`callAgent`]),visibility:YC(`internal`)}),uje=UC({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:RC().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),dje=UC({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),fje=UC({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),pje=rT.merge(nje).extend({botSender:fje.optional(),externalOrigin:dje.optional(),agentDispatch:lje.optional(),agentSender:uje.optional(),collapsed:zC().optional(),contextAccounting:GAe.optional(),contextSelections:HC($w).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:RC().int().positive().optional(),inspectExpanded:zC().optional(),isMultimodal:zC().optional(),isSupervisor:zC().optional(),localSystemToolSnapshots:HC(tje).optional(),mcpAppSource:aje.optional(),operationId:H().min(1).optional(),orchestrationRole:qC([`supervisor`,`member`]).optional(),pageSelections:HC(tT).optional(),performance:nje.optional(),reactions:HC(rje).optional(),scope:H().optional(),selectedSkillIds:HC(H()).optional(),selectedToolIds:HC(H()).optional(),signal:ije.optional(),steer:zC().optional(),subAgentCallback:oje.optional(),subAgentId:H().optional(),taskCallback:sje.optional(),toolExecutionTimeMs:RC().optional(),toolResultSuccess:zC().optional(),toolResultStop:zC().optional(),toolWorkRegistration:eje.optional(),trigger:JC(UAe).optional(),verifyOperationId:H().optional(),verifyRound:RC().optional(),work:cje.optional(),usage:rT.optional()}),iT=pje.omit({agentSender:!0}),mje=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),gje,_je=o((()=>{hw(),hje(),gje=pje.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),UC({editorData:KC(H(),VC()).optional(),metadata:gje.optional()}),Object.keys(gje.shape)})),vje,yje=o((()=>{hw(),vje=UC({alt:H(),height:RC().optional(),id:H(),mimeType:H().optional(),ratio:RC().optional(),url:H(),width:RC().optional()})})),bje=o((()=>{})),xje,Sje,Cje,wje=o((()=>{hw(),xje=UC({batchId:H().optional(),itemIndex:RC().int().nonnegative().optional(),operationId:H().optional(),runtimeType:qC([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:zC().optional(),resolutionRequestId:H().optional(),skipped:zC().optional(),stepIndex:RC().int().nonnegative().optional(),status:qC([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),Sje=UC({function:UC({arguments:H(),name:H()}),id:H(),type:H()}),Cje=UC({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:xje.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),Tje=o((()=>{})),Eje=o((()=>{})),aT=o((()=>{HAe(),_je(),KAe(),eT(),yje(),bje(),hje(),nT(),wje(),Tje(),Eje()})),Dje,Oje=o((()=>{hw(),Dje=UC({id:H(),similarity:RC()}),UC({id:H(),value:UC({fileChunks:HC(Dje),ragQueryId:H().optional()})})})),kje,Aje,jje=o((()=>{hw(),HAe(),wje(),Oje(),aT(),nT(),kje=qC([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),Aje=UC({apiName:H(),arguments:H(),identifier:H(),type:H()}),UC({role:kje,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:Aje.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:HC(H()).optional(),error:Xw.nullish(),traceId:H().optional(),fileChunks:HC(Dje).optional()}).passthrough(),UC({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:xje.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:BC().optional(),error:BC().optional(),clientId:H().optional(),userId:H().optional()})})),Mje,Nje=o((()=>{hw(),Mje=UC({action:qC([`create`,`update`,`delete`]),agentEditable:zC().optional(),resourceType:qC([`document`,`task`])})})),oT,Pje,Fje,Ije,Lje,Rje,zje=o((()=>{hw(),oT=qC([`never`,`required`,`always`]),Pje=WC([H(),UC({pattern:H(),type:qC([`exact`,`prefix`,`wildcard`,`regex`])})]),Fje=UC({match:KC(H(),Pje).optional(),policy:oT}),Ije=WC([oT,HC(Fje)]),UC({action:qC([`approve`,`reject`,`select`]),data:UC({remember:zC().optional(),selected:WC([H(),HC(H())]).optional()}).optional()}),UC({allowList:HC(H()).optional(),approvalMode:qC([`auto-run`,`allow-list`,`manual`,`headless`])}),Lje=UC({description:H(),match:KC(H(),Pje),policy:oT.optional()}),Rje=HC(Lje),UC({config:Ije.optional(),confirmedHistory:HC(H()).optional(),securityBlacklist:Rje.optional(),toolArgs:KC(H(),BC()).optional(),toolKey:H().optional()})})),Bje=o((()=>{})),sT,Vje,Hje,Uje,cT,Wje,Gje=o((()=>{hw(),Nje(),zje(),Bje(),Nje(),sT=UC({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:HC(H()).optional(),title:H()}),Vje=qC([`collapsed`,`expand`,`alwaysExpand`]),Hje=UC({default:oT.optional(),policy:oT.optional(),type:H()}),Uje=WC([Ije,UC({dynamic:Hje})]),cT=UC({defaultTimeoutMs:RC().int().positive().optional(),description:H(),humanIntervention:Uje.optional(),name:H(),ordered:zC().optional(),parameters:KC(H(),BC()),renderDisplayControl:Vje.optional(),serializeBy:H().optional(),url:H().optional(),work:Mje.optional()}),Wje=UC({api:HC(cT),deviceClients:HC(qC([`cli`,`desktop`])).optional(),executors:HC(qC([`client`,`server`])).optional(),humanIntervention:Uje.optional(),identifier:H(),meta:sT,systemRole:H(),type:YC(`builtin`).optional()}),UC({discoverable:zC().optional(),hidden:zC().optional(),identifier:H(),manifest:Wje,type:YC(`builtin`)})})),Kje=o((()=>{})),qje=o((()=>{})),Jje,Yje=o((()=>{hw(),Gje(),Jje=UC({properties:KC(H(),BC()),required:HC(H()).optional(),type:YC(`object`)}),UC({$schema:H().optional(),api:HC(cT),connector:UC({id:H(),identifier:H()}).optional(),connectorLinks:UC({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:HC(UC({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:HC(cT).optional(),mcpModelOnlyTools:HC(H()).optional(),meta:sT,openapi:H().optional(),settings:Jje.optional(),systemRole:H().optional(),type:qC([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:UC({height:RC().optional(),mode:qC([`iframe`,`module`]).optional(),url:H(),width:RC().optional()}).optional(),version:H().optional()})})),Xje=o((()=>{})),Zje=o((()=>{})),Qje,$je=o((()=>{hw(),Qje=UC({description:H().optional(),name:H(),parameters:UC({additionalProperties:zC().optional(),properties:KC(H(),BC()),required:HC(H()).optional(),type:YC(`object`)})})})),eMe=o((()=>{Gje(),Kje(),qje(),zje(),Yje(),Xje(),Zje(),$je()})),lT,tMe,nMe,uT,rMe,dT,iMe,fT,pT,mT,aMe,oMe,sMe,hT,cMe,lMe,uMe,dMe,gT,fMe,pMe=o((()=>{hw(),lT=1e6,tMe=2e3,nMe=2e3,uT=12e3,rMe=UC({kind:YC(`writing`)}).strict(),dT=UC({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:zC()}).strict(),iMe=UC({errors:HC(dT).max(16),evidenceCount:RC().int().nonnegative().max(lT),failedCount:RC().int().nonnegative().max(lT),succeededCount:RC().int().nonnegative().max(lT)}).strict(),iMe.omit({errors:!0}).strip(),fT=e=>H().trim().min(1).max(e),pT=fT(256),mT=fT(tMe),aMe=UC({content:fT(uT),reasoning:mT,tagline:pT}).strict(),oMe=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}},sMe=ZC(oMe,UC({description:mT,rank:RC().int().min(0).max(100),title:pT}).strict()),hT=e=>HC(sMe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),cMe=UC({composition:UC({identities:hT(6),interests:hT(8),lifeStyle:hT(6),social:hT(6),working:hT(6)}).strict(),personaProposal:aMe,profile:UC({domains:HC(pT).max(8),description:mT,name:pT,pronoun:pT,roles:HC(pT).max(8),summary:mT,tagline:pT}).strict()}).strict(),UC({analysis:cMe,detailedPersona:aMe.optional(),diagnostics:iMe,feedbackRevision:RC().int().nonnegative().max(lT).default(0),generationRevision:RC().int().nonnegative().max(lT).default(0),kind:YC(`proposal`),providers:HC(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),lMe=UC({content:H().trim().min(1).max(nMe),createdAt:H(),revision:RC().int().positive().max(lT)}).strict(),uMe=UC({revision:RC().int().nonnegative().max(lT),turns:HC(lMe).max(16)}).strict(),dMe=UC({completedAt:H().optional(),errors:HC(dT).max(16),failedCount:RC().int().nonnegative().max(lT),revision:RC().int().nonnegative().max(lT),status:qC([`pending`,`running`,`completed`,`failed`]),succeededCount:RC().int().nonnegative().max(lT)}).strict(),gT={detailed:GC(`status`,[UC({status:YC(`running`),updatedAt:H()}).strict(),UC({status:YC(`completed`),updatedAt:H()}).strict(),UC({error:dT,status:YC(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:RC().int().nonnegative().max(lT).default(0),generationRevision:RC().int().nonnegative().max(lT).default(0),sourceFingerprint:H(),updatedAt:H()},fMe=GC(`status`,[UC({...gT,resultMessageId:H().optional(),status:YC(`running`)}).strict(),UC({...gT,resultMessageId:H(),status:YC(`completed`)}).strict(),UC({...gT,error:dT,resultMessageId:H().optional(),status:YC(`failed`)}).strict()]),UC({confirmedAt:H().optional(),feedback:uMe.default({revision:0,turns:[]}),generationRevision:RC().int().nonnegative().max(lT).default(0),id:H(),sources:KC(H().max(64),dMe),writing:fMe.optional()}).strict()})),_T,mMe,hMe=o((()=>{hw(),pMe(),_T={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},mMe=UC({clientMode:zC().optional(),completedAt:H().optional(),duration:RC().optional(),error:BC().optional(),model:H().optional(),onboardingUnderstanding:rMe.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:RC().optional(),totalLlmCalls:RC().optional(),totalMessages:RC().optional(),totalTokens:RC().optional(),totalSteps:RC().optional(),totalToolCalls:RC().optional()}),UC({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:mMe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:qC([_T.Continuation,_T.Eval,_T.Standalone,_T.Isolation])})})),gMe,_Me,vT,vMe,yT,yMe,bMe=o((()=>{hw(),zAe(),aT(),jje(),eMe(),hMe(),gMe=UC({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:qC([_T.Continuation,_T.Standalone,_T.Isolation])}),_Me=UC({content:H(),metadata:iT.optional(),plugin:UC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:qC([`assistant`,`tool`]),tool_call_id:H().optional(),tools:HC(Cje).optional()}),vT=e=>H().regex(RAe(e)).optional(),UC({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:UC({agentId:H().optional(),id:vT(`messages`),metadata:KC(H(),VC()).optional().transform(mje),model:H().optional(),provider:H().optional()}),newThread:gMe.optional(),newTopic:UC({id:vT(`topics`),metadata:XC().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:HC(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:HC(_Me).optional(),newUserMessage:UC({content:H(),contextSelections:HC($w).optional(),editorData:KC(H(),VC()).optional(),files:HC(H()).optional(),id:vT(`messages`),metadata:iT.optional(),pageSelections:HC(tT).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:UC({excludeStatuses:HC(H()).optional(),excludeTriggers:HC(H()).optional(),includeTriggers:HC(H()).optional(),onlyMine:zC().optional()}).optional(),topicPageSize:RC().int().min(1).max(100).optional(),topicId:H().optional()}),vMe=UC({description:H().optional(),name:H(),schema:UC({$defs:BC().optional(),additionalProperties:zC().optional(),properties:KC(H(),BC()),required:HC(H()).optional(),type:YC(`object`)}),strict:zC().optional()}),UC({metadata:KC(H(),VC()).optional(),messages:HC(BC()),model:H(),provider:H(),schema:vMe.optional(),tools:HC(UC({function:Qje,type:YC(`function`)})).optional(),tracing:UC({tracingId:H().uuid().optional()}).catchall(VC()).optional()}),yT=WC([H(),HC(VC()),KC(H(),VC())]),yMe=GC(`type`,[UC({criteria:UC({false:yT,true:yT}).optional(),instructions:yT,type:YC(`boolean`)}),UC({criteria:KC(H(),yT.nullable()),instructions:yT,type:YC(`choice`)}),UC({criteria:HC(yT).min(1),instructions:yT,type:YC(`score`)})]),UC({metadata:KC(H(),VC()).optional(),model:H(),provider:H(),questions:KC(H(),yMe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:yT,tracing:UC({tracingId:H().uuid().optional()}).catchall(VC()).optional()})})),xMe=o((()=>{hw()})),SMe=o((()=>{})),CMe=o((()=>{})),wMe=o((()=>{})),TMe=o((()=>{})),EMe=o((()=>{})),DMe,OMe=o((()=>{xw(),DMe=bw.map(({type:e})=>e),[...FOe.options,...DMe]})),kMe=o((()=>{})),AMe=o((()=>{})),jMe=o((()=>{})),MMe=o((()=>{})),NMe=o((()=>{MMe()})),PMe=o((()=>{})),FMe=o((()=>{})),IMe=o((()=>{})),LMe=o((()=>{})),RMe=o((()=>{})),zMe=o((()=>{})),BMe=o((()=>{})),VMe=o((()=>{})),HMe=o((()=>{hw(),UC({connected:zC(),cpuCount:RC().int().min(1).max(4096),cpuPercent:RC().min(0).max(100).nullable(),diskTotalBytes:RC().int().min(0).nullish(),diskUsedBytes:RC().int().min(0).nullish(),load1:RC().min(0).nullable(),load5:RC().min(0).nullable(),load15:RC().min(0).nullable(),memoryTotalBytes:RC().int().min(0),memoryUsedBytes:RC().int().min(0),observedAt:RC().int().min(0)})})),UMe=o((()=>{})),WMe=o((()=>{})),GMe=o((()=>{})),KMe=o((()=>{})),qMe=o((()=>{})),JMe=o((()=>{})),YMe=o((()=>{})),XMe=o((()=>{})),ZMe=o((()=>{UMe(),WMe(),GMe(),KMe(),qMe(),JMe(),YMe(),XMe()})),QMe=o((()=>{hw(),UC({shareId:H(),topicId:H(),visitorUserId:H()})})),$Me=o((()=>{})),eNe=o((()=>{})),tNe=o((()=>{QMe(),$Me(),eNe()})),nNe=o((()=>{})),rNe=o((()=>{})),iNe=o((()=>{})),aNe=o((()=>{})),oNe=o((()=>{})),sNe=o((()=>{})),cNe=o((()=>{})),lNe=o((()=>{})),uNe=o((()=>{})),dNe=o((()=>{hw(),UC({ideal:H().optional(),question:H(),referenceFiles:H().or(HC(H())).optional()}),UC({description:H().optional(),knowledgeBaseId:H(),name:H()})})),fNe=o((()=>{})),pNe=o((()=>{})),mNe=o((()=>{})),hNe=o((()=>{hw(),UC({ideal:H().optional(),question:H(),referenceFiles:H().or(HC(H())).optional()}),UC({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),gNe=o((()=>{})),_Ne=o((()=>{})),vNe=o((()=>{})),yNe,bNe=o((()=>{hw(),Gje(),yNe=UC({api:HC(cT.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:sT,systemRole:H().optional(),type:qC([`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`),KC(H().min(1).max(255),yNe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),xNe=o((()=>{aNe(),oNe(),sNe(),cNe(),lNe(),uNe(),dNe(),fNe(),pNe(),mNe(),hNe(),gNe(),_Ne(),vNe(),bNe()})),SNe=o((()=>{})),CNe=o((()=>{})),wNe=o((()=>{})),bT,TNe,ENe=o((()=>{bT={InvalidAccessCode:`InvalidAccessCode`,FreePlanLimit:`FreePlanLimit`,SubscriptionPlanLimit:`SubscriptionPlanLimit`,InsufficientBudgetForModel:`InsufficientBudgetForModel`,WorkspaceFrozenByAdmin:`WorkspaceFrozenByAdmin`,WorkspaceFrozenByRiskControl:`WorkspaceFrozenByRiskControl`,WorkspaceModelRestricted:`WorkspaceModelRestricted`,WorkspaceSubscriptionInactive:`WorkspaceSubscriptionInactive`,ShareMessageLimitExceeded:`ShareMessageLimitExceeded`,ShareSpendLimitExceeded:`ShareSpendLimitExceeded`,SharePromptTooLong:`SharePromptTooLong`,ShareHeterogeneousAgentUnsupported:`ShareHeterogeneousAgentUnsupported`,ShareHeteroDeviceUnavailable:`ShareHeteroDeviceUnavailable`,ChannelAttachmentUnavailable:`ChannelAttachmentUnavailable`,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},TNe=[bT.RemoteServerOffline,bT.RemoteServerTimeout,bT.RemoteServerDNSFailed,bT.RemoteServerConnectionRefused,bT.RemoteServerCertInvalid,bT.RemoteServerUnreachable],new Set(TNe)})),DNe,ONe,kNe=o((()=>{hw(),DNe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),ONe=100,UC({category:H().optional(),filesOnly:zC().optional(),includeContentPreview:zC().optional(),knowledgeBaseId:H().optional(),limit:RC().int().positive().max(ONe).default(50),offset:RC().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:zC().default(!1),sortType:qC([`desc`,`asc`]).optional(),sorter:qC([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:JC(DNe).optional(),visibility:qC([`private`,`public`]).optional()})})),ANe,jNe=o((()=>{hw(),ANe=UC({shareId:H(),visitorUserId:H()}),UC({agentShare:ANe.optional(),date:H(),dirname:H(),filename:H(),height:RC().optional(),path:H(),ratio:RC().optional(),thumbhash:H().optional(),width:RC().optional()}),UC({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:BC().optional(),name:H(),size:RC(),source:H().optional(),url:H().optional()})})),MNe,NNe=o((()=>{kNe(),jNe(),MNe=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(MNe))})),PNe=o((()=>{})),FNe,INe,LNe,RNe,xT,zNe,BNe,VNe,HNe,UNe=o((()=>{hw(),FNe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],INe=[`agentEmoji`,`agentName`,`fullName`],LNe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],RNe=[`agent_identity`,`user_identity`,`discovery`,`summary`],xT=H().trim().transform(e=>e.length>0?e:void 0).optional(),zNe=HC(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),qC(FNe),BNe=qC(INe),VNe=qC(LNe),UC({agentEmoji:xT,agentName:xT,customInterests:zNe,fullName:xT,interests:zNe}).strict(),HNe=qC(RNe),UC({discoveryUserMessageCount:RC().optional(),finished:zC(),missingStructuredFields:HC(BNe),phase:HNe,remainingDiscoveryExchanges:RC().optional(),topicId:H().optional(),version:RC()}).strict(),UC({activeTopicId:H().optional(),discoveryStartUserMessageCount:RC().optional(),finishedAt:H().optional(),version:RC()}).strict(),UC({node:VNe,patch:UC({}).passthrough()}).strict()})),WNe,GNe,KNe=o((()=>{hw(),UNe(),WNe=WC([UC({kind:YC(`onboarding`),phase:HNe}),UC({kind:YC(`chat`)})]),GNe=UC({model:H().min(1),provider:H().min(1)}),UC({hint:WNe.optional(),modelConfig:GNe,threadId:H().optional(),topicId:H().min(1)})})),qNe=o((()=>{})),JNe=o((()=>{})),YNe=o((()=>{})),XNe=o((()=>{})),ST,ZNe,QNe,$Ne,ePe,tPe,nPe,rPe,iPe,aPe=o((()=>{hw(),ST=HC(H().trim().min(1)).max(200),ZNe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),QNe=ZC(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||ZNe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),$Ne=[`dead_end`,`superseded`,`retry`],ePe=2e3,tPe=UC({kind:qC($Ne),lesson:H().trim().min(1).max(ePe),nodeIds:ST.min(1),reason:H().trim().min(1).max(ePe),title:H().trim().min(1).max(200)}).strict(),nPe=UC({detours:HC(tPe).max(20).default([]),findingIds:ST.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:ST.default([]),title:H().trim().min(1).max(200),workVersionIds:ST.default([])}).strict(),rPe=UC({nodeIds:ST.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),iPe=UC({edgeIds:ST.default([]),nodeIds:ST.min(1)}).strict(),UC({chapters:HC(nPe).min(1).max(30),deliverableWorkId:QNe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:iPe.optional(),nextSteps:HC(rPe).max(20).default([])}).strict()})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{})),lPe=o((()=>{})),uPe,dPe,fPe,pPe=o((()=>{hw(),uPe=UC({apiName:H(),arguments:H(),id:H(),identifier:H(),type:YC(`default`)}),dPe=UC({clientId:H(),content:H(),createdAt:H().optional(),metadata:KC(H(),BC()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:UC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:KC(H(),BC()).optional(),provider:H().optional(),reasoning:UC({content:H()}).passthrough().optional(),role:qC([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:HC(uPe).optional(),usage:KC(H(),BC()).optional()}),fPe=UC({clientId:H(),messages:HC(dPe),sourceMessageClientId:H().optional(),status:qC([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:qC([`continuation`,`standalone`,`isolation`])}),UC({messages:HC(dPe),metadata:KC(H(),BC()).optional(),sessionId:H(),source:qC([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:HC(fPe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),mPe=o((()=>{})),hPe=o((()=>{})),gPe=o((()=>{})),_Pe=o((()=>{})),vPe,yPe=o((()=>{vPe=[`triage`,`backlog`,`unstarted`,`started`],[...vPe]})),bPe=o((()=>{})),xPe=o((()=>{})),SPe=o((()=>{})),CPe=o((()=>{})),wPe,TPe,EPe=o((()=>{hw(),wPe=UC({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),TPe=UC({citations:HC(UC({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:HC(wPe).optional(),imageSearchQueries:HC(H()).optional(),searchQueries:HC(H()).optional()})})),DPe=o((()=>{hw(),EPe(),aT(),UC({content:H().optional(),editorData:KC(H(),BC()).nullish(),error:Xw.nullish(),imageList:HC(vje).optional(),metadata:iT.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:VAe.optional(),role:H().optional(),search:TPe.nullish(),toolCalls:HC(Sje).optional(),tools:HC(Cje).nullish(),traceId:H().optional(),usage:rT.optional()}).passthrough()})),OPe=o((()=>{CPe(),DPe()})),kPe=o((()=>{})),APe=o((()=>{})),jPe=o((()=>{})),MPe=o((()=>{})),NPe=o((()=>{kPe(),APe(),jPe(),jje(),Oje(),MPe()})),PPe=o((()=>{aT(),OPe(),NPe()})),FPe=o((()=>{hw(),UC({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:HC(H()).optional(),title:H().optional()})})),IPe=o((()=>{})),LPe=o((()=>{})),RPe,zPe=o((()=>{hw(),RPe=UC({accessToken:H().optional(),token:H().optional(),type:qC([`none`,`bearer`,`oauth2`])}).optional(),UC({auth:RPe,headers:KC(H(),H()).optional(),identifier:H(),metadata:UC({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),BPe=o((()=>{})),VPe=o((()=>{zPe(),BPe()})),HPe=o((()=>{})),UPe=o((()=>{hw(),UC({fileIds:HC(H()).optional(),knowledgeIds:HC(H()).optional(),query:H(),topK:RC().optional()})})),WPe=o((()=>{})),GPe=o((()=>{})),KPe=o((()=>{})),qPe=o((()=>{})),JPe=o((()=>{})),YPe=o((()=>{})),XPe=o((()=>{})),ZPe,QPe=o((()=>{ZPe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),$Pe=o((()=>{XPe(),QPe()})),eFe,tFe,nFe=o((()=>{eFe=`NO_REPLY`,tFe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${eFe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(tFe)})),rFe,iFe=o((()=>{hw(),rFe=UC({name:H(),url:H().url().optional()}),UC({author:WC([H(),rFe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:HC(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),aFe=o((()=>{})),oFe=o((()=>{})),sFe=o((()=>{})),cFe,lFe=o((()=>{cFe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],cFe[0]})),CT,uFe=o((()=>{CT=1440*60*1e3,30*CT,90*CT,7*CT})),dFe=o((()=>{oFe(),sFe(),lFe(),uFe()})),fFe=o((()=>{})),wT,pFe,mFe,hFe,gFe,_Fe,vFe,yFe=o((()=>{hw(),wT=qC([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),UC({serverDefaultHeterogeneousProfiles:HC(H().min(1)).optional()}).passthrough(),pFe=UC({audio:zC().optional(),functionCall:zC().optional(),imageOutput:zC().optional(),reasoning:zC().optional(),search:zC().optional(),video:zC().optional(),vision:zC().optional()}),mFe=UC({codexMaxReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:qC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:qC([`none`,`high`,`max`]).optional(),effort:qC([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:qC([`high`,`max`]).optional(),glm5_3ReasoningEffort:qC([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:qC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:qC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:qC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:qC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:qC([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:qC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:qC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:qC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:qC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:qC([`low`,`high`,`max`]).optional(),opus47Effort:qC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:qC([`low`,`medium`,`high`]).optional(),reasoningMode:qC([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:qC([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:qC([`low`,`high`]).optional(),thinkingLevel:qC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:qC([`low`,`high`]).optional(),thinkingLevel3:qC([`low`,`medium`,`high`]).optional(),thinkingLevel4:qC([`minimal`,`high`]).optional(),thinkingLevel5:qC([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(mFe.shape),hFe=qC(`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(`.`)),gFe=qC([`tool`,`params`,`internal`]),_Fe=qC([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),vFe=UC({disabledParams:HC(_Fe).optional(),extendParams:HC(hFe).optional(),searchImpl:gFe.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),UC({abilities:pFe.optional(),contextWindowTokens:RC().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:vFe.optional(),type:wT.optional()}),UC({abilities:pFe.optional(),config:UC({deploymentName:H().optional()}).optional(),contextWindowTokens:RC().nullish(),displayName:H().nullish(),settings:vFe.optional(),type:wT.optional()}),UC({enabled:zC(),id:H(),providerId:H(),source:qC([`builtin`,`custom`,`remote`]).optional(),type:wT.optional()})})),bFe,TT,xFe,SFe,CFe,wFe,TFe,EFe,DFe=o((()=>{yFe(),hw(),qw(),Yw(),bFe=UC({claimedAt:H(),expiresAt:H(),id:H()}),TT=UC({claim:bFe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),xFe=TT.extend({failedAssistantMessageId:H(),kind:YC(`resume_after_rate_limit`),rateLimit:UC({rateLimitType:H().optional(),resetsAt:RC().optional()}).optional(),resume:UC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:YC(`heterogeneous_agent`),userMessageId:H()}),SFe=TT.extend({kind:YC(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),UC({baseBranch:H().min(1).max(1024).optional(),deviceId:H().min(1).max(256),path:H().min(1).max(4096),repoType:qC([`git`,`github`]),sourcePath:H().min(1).max(4096)}),CFe=TT.extend({error:H().optional(),kind:YC(`worktree_start`),operationId:H(),retryable:zC().optional(),userMessageId:H(),waitingForDevice:zC().optional()}),wFe=GC(`kind`,[xFe,SFe,CFe]),UC({claim:bFe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:CDe().optional(),rateLimit:UC({rateLimitType:H().optional(),resetsAt:RC().optional()}).optional(),reason:YC(`rate_limit`),resume:UC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:YC(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),TFe=UC({boundDeviceId:H().optional(),heteroEffort:XC(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:KC(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:KC(H(),H()).optional(),heteroPermissionMode:qC(Jw).optional(),heteroPermissionModeFallback:qC([`outdatedCli`,`root`]).nullable().optional(),heteroPlanMode:zC().optional(),codexPlanDecision:UC({dismissed:zC(),itemId:H().min(1)}).nullable().optional(),heteroSpeed:qC([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:UC({comment:H().max(500).optional(),rating:qC([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:UC({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:UC({categoryHints:HC(H()),installedAgentIds:HC(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:HC(H()).optional(),skipReason:H().optional(),skippedAgentIds:HC(H()).optional(),status:qC([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:HC(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:qC([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:RC().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:mFe.optional(),repos:HC(H()).optional(),runningOperation:wDe().optional(),taskCallbackReservation:UC({messageId:H(),reservedAt:H()}).nullable().optional(),sandboxDrive:qC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxWorkingDirectory:H().max(1024).optional(),scheduledRun:wFe.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:Kw.optional()}),TFe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),EFe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],qC(EFe)})),OFe=o((()=>{fFe(),hMe(),DFe()})),kFe=o((()=>{})),AFe=o((()=>{})),jFe=o((()=>{hw(),UC({currentStep:RC().min(1).max(7).optional(),finishedAt:H().optional(),version:RC()})})),MFe=o((()=>{})),NFe,PFe,FFe=o((()=>{hw(),NFe=UC({checked:zC(),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:HC(UC({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(),PFe=UC({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:zC()}).strict(),UC({completedAt:H().optional(),createdTaskIds:KC(H().max(128),H().max(512)),errors:HC(PFe).max(16),id:H().min(1).max(512),providerIds:HC(H().min(1).max(128)).max(16),recommendations:HC(NFe).max(48),sourceFingerprint:H().min(1).max(2048),status:qC([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),IFe,LFe,RFe,zFe,BFe=o((()=>{hw(),IFe=UC({docsMerged:zC().optional(),moveSettingsToAvatar:zC().optional(),topic:zC().optional(),uploadFileInKnowledgeBase:zC().optional()}),LFe=UC({enableAgentIdentity:zC().optional(),enableAgentGraphConfig:zC().optional(),enableArtifactDeployment:zC().optional(),enablePageCollab:zC().optional(),enableClaudeCodeSdk:zC().optional(),enableCodexAppServer:zC().optional(),enableDesktopSplitView:zC().optional(),enableHeteroSessionImport:zC().optional(),enableGroupChat:zC().optional(),enableImessage:zC().optional(),enableInputMarkdown:zC().optional(),enableMessageTextSelectionActions:zC().optional(),enableIntegrations:zC().optional(),enableOAuthApps:zC().optional(),enableProjects:zC().optional(),enableSelfLearning:zC().optional(),enableTaskVerify:zC().optional(),enableEvalCapture:zC().optional(),enableTopicBugReport:zC().optional(),enableGoals:zC().optional(),enableTopicAcceptance:zC().optional(),enableDeviceTunnel:zC().optional()}),RFe=UC({acceptOnMerge:zC().optional(),commentOnPrivateRepositories:zC().optional(),commentOnPublicRepositories:zC().optional(),wakeOnCiFailure:zC().optional(),wakeOnReview:zC().optional()}),zFe=UC({github:RFe.optional()}),UC({provider:H(),providerAccountId:H()}),UC({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:IFe.optional(),hideSyncAlert:zC().optional(),integration:zFe.optional(),lab:LFe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:qC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:HC(H()).optional(),sidebarHiddenGroupIds:HC(H()).optional(),terminalFontFamily:H().optional(),telemetry:zC().nullable(),topicGroupMode:qC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:zC().optional(),topicSortBy:qC([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:zC().optional(),workspace:UC({order:HC(H()).optional()}).optional()}).partial()})),VFe=o((()=>{})),HFe=o((()=>{})),UFe=o((()=>{})),WFe=o((()=>{})),GFe=o((()=>{})),KFe=o((()=>{})),qFe=o((()=>{})),JFe=o((()=>{})),YFe,ET,XFe=o((()=>{hw(),YFe=KC(H(),KC(H(),zC())),ET=UC({enabled:zC().optional(),items:YFe.optional()}).strict(),UC({content:UC({scheduledTaskSummary:zC().optional()}).strict().optional(),email:ET.optional(),im:ET.extend({platforms:KC(H(),ET.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:ET.optional(),push:ET.optional()}).strict()})),ZFe=o((()=>{})),QFe=o((()=>{})),$Fe=o((()=>{})),eIe=o((()=>{})),tIe=o((()=>{hw(),VFe(),HFe(),UFe(),WFe(),GFe(),KFe(),qFe(),JFe(),XFe(),ZFe(),QFe(),$Fe(),eIe(),UC({defaultAgent:BC().optional(),general:BC().optional(),hotkey:BC().optional(),image:BC().optional(),keyVaults:BC().optional(),languageModel:BC().optional(),market:BC().optional(),memory:BC().optional(),notification:BC().optional(),systemAgent:BC().optional(),tool:BC().optional(),tts:BC().optional()}).passthrough().partial()})),nIe=o((()=>{UNe(),jFe(),MFe(),FFe(),BFe(),tIe()})),rIe=o((()=>{})),iIe=o((()=>{})),aIe=o((()=>{})),oIe=o((()=>{})),sIe,cIe=o((()=>{hw(),sIe=qC([`personal`,`professional`,`demographic`]),UC({description:H().optional(),episodicDate:H().optional(),extractedLabels:HC(H()).optional(),labels:KC(H(),BC()).optional(),relationship:H().optional(),role:H().optional(),type:sIe.optional(),userMemoryId:H().optional()}),UC({description:H().optional(),episodicDate:H().optional(),extractedLabels:HC(H()).optional(),labels:KC(H(),BC()).optional(),relationship:H().optional(),role:H().optional(),type:sIe.optional()})})),lIe,uIe,dIe=o((()=>{lIe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(lIe),uIe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(uIe)})),fIe=o((()=>{})),pIe=o((()=>{})),mIe,hIe,gIe,DT,_Ie,vIe,yIe,bIe=o((()=>{mIe=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(mIe),hIe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(hIe),gIe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(gIe),DT=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(DT),_Ie=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(_Ie),vIe=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(vIe),yIe=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(yIe)})),xIe=o((()=>{})),OT,kT,SIe,CIe,wIe,TIe,EIe,DIe,OIe,kIe,AIe,jIe,MIe,NIe=o((()=>{hw(),bIe(),OT=ZC(e=>typeof e==`string`?[e]:e,HC(H().trim().min(1))),kT=e=>ZC(e=>typeof e==`string`?[e]:e,HC(e)),SIe=qC([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),CIe=UC({activities:RC().int().min(0).optional(),contexts:RC().int().min(0).optional(),experiences:RC().int().min(0).optional(),identities:RC().int().min(0).optional(),preferences:RC().int().min(0).optional()}),wIe=UC({end:mw().optional(),field:SIe.optional(),start:mw().optional()}),TIe=qC([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),EIe=UC({date:mw(),selector:YC(`day`)}),DIe=UC({month:RC().int().min(1).max(12),selector:YC(`month`),year:RC().int().min(1970).max(9999)}),OIe=UC({end:mw().optional(),selector:YC(`range`),start:mw().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),kIe=UC({selector:YC(`year`),year:RC().int().min(1970).max(9999)}),AIe=qC([`today`,`yesterday`]),jIe=RDe(()=>WC([UC({selector:TIe}),EIe,DIe,UC({anchor:WC([AIe,jIe]),offsetDays:RC().int(),selector:YC(`relativeDay`)}),OIe,kIe])),UC({categories:OT.optional(),effort:qC([`low`,`medium`,`high`]).optional(),labels:OT.optional(),layers:kT(JC(DT)).optional(),queries:OT.optional(),relationships:OT.optional(),status:OT.optional(),tags:OT.optional(),timeIntent:jIe.optional(),timeRange:wIe.optional(),topK:CIe.optional(),types:OT.optional()}),MIe=qC([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),UC({include:kT(MIe).optional(),layers:HC(JC(DT)).optional(),limit:RC().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:wIe.optional()})})),PIe=o((()=>{})),FIe=o((()=>{rIe(),iIe(),aIe(),oIe(),cIe(),dIe(),fIe(),pIe(),bIe(),xIe(),NIe(),PIe()})),IIe=o((()=>{})),LIe=o((()=>{})),RIe=o((()=>{LIe()})),zIe=o((()=>{})),BIe=o((()=>{})),VIe=o((()=>{zIe(),BIe()})),HIe,UIe=o((()=>{HIe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(HIe).flatMap(([e,t])=>t.map(t=>[t,e])))})),WIe=o((()=>{})),GIe=o((()=>{hw(),UC({start:RC().finite().nonnegative()}).strict()})),KIe=o((()=>{hw(),UC({preconditions:HC(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:HC(UC({id:H().min(1),name:H().min(1),description:H().optional(),resource:UC({type:qC([`file`,`document`]),id:H().min(1)}).optional(),data:KC(H(),VC()).optional()})).max(100).optional(),steps:HC(UC({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:HC(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`]})})})),AT,qIe,JIe=o((()=>{hw(),AT=UC({height:RC().finite(),width:RC().finite(),x:RC().finite(),y:RC().finite()}),qIe=UC({commit:H().max(200).optional(),context:KC(H().max(100),WC([H().max(500),RC(),zC()])).optional(),env:UC({consoleErrors:HC(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:qC([`change`,`comment`]),region:AT.optional(),regionRefs:HC(UC({box:AT,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:UC({x:RC().finite(),y:RC().finite()}),targets:HC(UC({code:UC({chain:HC(UC({file:H().max(500).optional(),line:RC().int().optional(),name:H().max(200)})).max(5),column:RC().int(),file:H().max(500),line:RC().int()}).optional(),label:H().max(200),rect:AT,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:YC(1),viewport:UC({dpr:RC().positive(),height:RC().finite(),width:RC().finite()})}),UC({anchor:qIe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:UC({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`}),UC({note:H().trim().max(2e3).optional(),verdict:qC([`accept`,`send_back`])})})),YIe,jT,MT,NT,XIe,ZIe,QIe,$Ie,eLe,tLe,nLe,rLe=o((()=>{hw(),JIe(),YIe=[`region`,`element`,`sketch`],jT=RC().finite(),MT=UC({height:jT,width:jT,x:jT,y:jT}),NT=qIe.shape,XIe=RDe(()=>UC({children:HC(XIe).max(50),rect:MT,type:qC([`avatar`,`button`,`card`,`image`,`input`,`text`])})),ZIe=UC({commit:NT.commit,context:NT.context,env:NT.env}),QIe=UC({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),$Ie=UC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:ZIe.optional(),kind:qC(YIe),pageMeta:QIe.optional(),rectDocument:MT,rectViewport:MT,regionRefs:NT.regionRefs,regions:HC(MT).max(6).optional(),routeKey:H().max(500),scroll:UC({x:jT,y:jT}),sketch:HC(XIe).max(50).optional(),targets:NT.targets.optional(),url:H().url().max(2e3),viewport:UC({dpr:RC().positive(),height:jT,width:jT})}),eLe=64*1024,tLe=UC({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),$Ie.extend({screenshot:tLe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=eLe,{message:`Mark is too large`}),UC({content:H().trim().min(1).max(4e3).optional(),rectDocument:MT.optional(),rectViewport:MT.optional(),regionRefs:NT.regionRefs,regions:HC(MT).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),UC({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),nLe=[`pass`,`not_fixed`],UC({reason:H().trim().max(2e3).optional(),verdict:qC(nLe)}),UC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),iLe,aLe,PT,oLe,sLe,cLe,FT,IT,lLe,uLe,dLe=o((()=>{hw(),iLe=[`journey`,`options`,`references`,`other`],aLe=[`html`,`image`,`video`,`decision`],PT=H(),oLe=RC().finite(),sLe=RC().finite().positive(),UC({hash:H().min(1).nullable(),kind:YC(`file`),path:H().min(1)}),cLe=UC({kind:YC(`file`),path:H().min(1)}),FT=H().min(1).optional(),IT=H().min(1),lLe={expected:PT.optional(),groupId:IT.optional(),h:sLe.optional(),pageId:IT.optional(),recommended:zC().optional(),roundId:IT.optional(),source:cLe.optional(),title:PT,type:qC(aLe).optional(),w:sLe.optional(),x:oLe,y:oLe},uLe={desc:PT.optional(),kind:qC(iLe),pageId:IT.optional(),title:PT},GC(`type`,[UC({page:UC({name:PT.min(1)}),ref:FT,type:YC(`addPage`)}),UC({id:IT,patch:UC({name:PT.min(1)}),type:YC(`updatePage`)}),UC({id:IT,type:YC(`removePage`)}),UC({ref:FT,round:UC({batchId:IT.optional(),pageId:IT.optional(),title:PT.min(1)}),type:YC(`addRound`)}),UC({id:IT,patch:UC({title:PT.min(1)}),type:YC(`updateRound`)}),UC({group:UC(uLe),ref:FT,type:YC(`addGroup`)}),UC({id:IT,patch:UC({desc:PT,kind:qC(iLe),title:PT}).partial(),type:YC(`updateGroup`)}),UC({id:IT,type:YC(`removeGroup`)}),UC({board:UC(lLe),ref:FT,type:YC(`addBoard`)}),UC({id:IT,patch:UC({...lLe,groupId:IT.nullable(),roundId:IT.nullable()}).omit({pageId:!0,type:!0}).partial(),type:YC(`updateBoard`)}),UC({id:IT,type:YC(`removeBoard`)}),UC({edge:UC({condition:PT.optional(),from:IT,isDefault:zC().optional(),label:PT.optional(),to:IT}),ref:FT,type:YC(`addEdge`)}),UC({id:IT,type:YC(`removeEdge`)}),UC({boardId:IT,expected:PT,type:YC(`setCheck`)})])})),LT,RT,fLe,pLe,mLe=o((()=>{hw(),LT={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},RT=H().min(1).max(LT.maxPathLength+2),fLe=WC([UC({content:H(),path:RT}).strict(),UC({fileRef:H().min(1),path:RT}).strict(),UC({base64:H().min(1),path:RT}).strict(),UC({path:RT,uploaded:YC(!0)}).strict(),UC({fromCanvas:UC({canvasId:H().min(1),version:RC().int().positive().optional()}).strict(),path:RT}).strict()]),HC(UC({path:RT,size:RC().int().nonnegative()}).strict()).min(1).max(LT.maxFiles),pLe=UC({newText:H(),oldText:H().min(1),path:RT}).strict(),UC({deletes:HC(RT).max(LT.maxFiles).optional(),edits:HC(pLe).max(200).optional(),writes:HC(fLe).max(LT.maxFiles).optional()}).strict()})),hLe=o((()=>{})),gLe=o((()=>{})),_Le=o((()=>{})),vLe=o((()=>{})),yLe=o((()=>{})),bLe=o((()=>{})),xLe,SLe,CLe,wLe,TLe,ELe,DLe,OLe,kLe,ALe=o((()=>{hw(),xLe=[`new`,`reuse`],SLe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,CLe=UC({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),wLe=UC({arguments:KC(H(),VC()),delivery:CLe.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),TLe=UC({cursor:H().nullable().optional(),deliveryStatus:UC({active:zC().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:RC().nonnegative().optional(),throttled:zC().optional()}).optional(),refreshBefore:jOe({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:zC().optional()}).strict(),ELe=UC({scheme:YC(`standard_webhooks`)}).strict(),DLe=UC({autoApprove:zC(),delivery:CLe.optional(),identifier:H().regex(SLe).optional(),topicMode:qC(xLe),topicId:H().min(1).optional()}).strict(),OLe=UC({}).strict(),kLe=UC({scheme:YC(`bearer_token`)}).strict(),GC(`kind`,[UC({kind:YC(`mcp_events`),config:wLe,state:TLe,verification:ELe}),UC({kind:YC(`generic`),config:DLe,state:OLe,verification:kLe})])})),jLe=o((()=>{})),MLe=o((()=>{})),NLe=o((()=>{})),PLe=o((()=>{})),FLe=o((()=>{})),ILe=o((()=>{})),LLe=o((()=>{})),RLe=o((()=>{ILe(),LLe()})),zLe=o((()=>{})),BLe=o((()=>{})),VLe=o((()=>{pAe(),hAe(),gAe(),_Ae(),CAe(),TAe(),kAe(),AAe(),jAe(),NAe(),PAe(),FAe(),bMe(),xMe(),SMe(),CMe(),wMe(),TMe(),EMe(),OMe(),kMe(),AMe(),jMe(),NMe(),PMe(),FMe(),IMe(),LMe(),RMe(),zMe(),qw(),BMe(),VMe(),HMe(),ZMe(),tNe(),nNe(),rNe(),zAe(),iNe(),xNe(),SNe(),CNe(),wNe(),ENe(),NNe(),PNe(),KNe(),qNe(),JNe(),YNe(),XNe(),aPe(),oPe(),sPe(),cPe(),lPe(),pPe(),mPe(),hPe(),gPe(),_Pe(),yPe(),bPe(),xPe(),SPe(),PPe(),FPe(),IPe(),LPe(),VPe(),HPe(),UPe(),WPe(),GPe(),KPe(),qPe(),EPe(),JPe(),YPe(),$Pe(),nFe(),iFe(),aFe(),dFe(),eMe(),OFe(),kFe(),AFe(),pMe(),nIe(),FIe(),IIe(),RIe(),VIe(),UIe(),WIe(),GIe(),KIe(),JIe(),rLe(),WAe(),dLe(),mLe(),hLe(),gLe(),_Le(),vLe(),Yw(),bLe(),ALe(),jLe(),MLe(),NLe(),PLe(),FLe(),RLe(),pMe(),FIe(),zLe(),yLe(),BLe()})),HLe=o((()=>{})),ULe,zT,WLe=o((()=>{ULe=[`*`,`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(ULe),zT=(e,t)=>({read:e,write:t}),zT(`acceptance:read`,`acceptance:write`),zT(`acceptance:read`,`acceptance:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,null),zT(`knowledge:read`,`knowledge:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,null),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`trace:read`,null),zT(`agent:read`,`agent:write`),zT(`model:read`,`model:write`),zT(`model:read`,`model:write`),zT(`chat:read`,null),zT(`chat:read`,`chat:write`),zT(`knowledge:read`,`knowledge:write`),zT(`model:read`,`model:write`),zT(`agent:read`,null),zT(null,null),zT(`knowledge:read`,`knowledge:write`),zT(`knowledge:read`,`knowledge:write`),zT(`knowledge:read`,`knowledge:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`user:read`,`user:write`),zT(`file:read`,`file:write`),zT(`file:read`,`file:write`),zT(`chat:read`,`chat:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`chat:read`,`chat:write`),zT(`knowledge:read`,`knowledge:write`),zT(`knowledge:read`,`knowledge:write`),zT(`agent:read`,`agent:write`),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`agent:read`,`agent:write`),zT(`knowledge:read`,`knowledge:write`),zT(`user:read`,`user:write`),zT(`chat:read`,`chat:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`chat:read`,null),zT(`chat:read`,null),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`agent:read`,`agent:write`),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`chat:read`,`chat:write`),zT(`file:read`,`file:write`),zT(`usage:read`,null),zT(`user:read`,`user:write`),zT(`user:read`,`user:write`),zT(`user:read`,`user:write`),zT(`agent:read`,`agent:write`),zT(`acceptance:read`,`acceptance:write`),zT(`agent:read`,null),zT(`agent:read`,`agent:write`),zT(`workspace:read`,`workspace:write`),zT(`workspace:read`,null),zT(`workspace:read`,null),zT(`workspace:read`,`workspace:write`)})),BT,GLe=o((()=>{BT=1024*1024,10*BT,10*BT,10*BT,10*BT,50*BT,50*BT,20*BT,5*BT,20*BT,2*BT,100*BT})),KLe=o((()=>{}));function qLe(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=XLe.test(e[0]);JLe.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(YLe,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(YLe,`$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 VT(...e){return qLe(Array.from(Array.isArray(e[0])?e[0]:e))}var JLe,YLe,XLe,ZLe=o((()=>{JLe=RegExp(`^[^/:\\d][^/:]*:/*$`),YLe=RegExp(`^([^/:\\d][^/:]*):/*`),XLe=/^[^/:]+:\d+(?:[/?#]|$)/})),QLe,HT,$Le,eRe,UT,WT,tRe,nRe,rRe,iRe,aRe,oRe,sRe=o((()=>{ZLe(),QLe=`https://app.lobehub.com`,HT=`https://lobehub.com`,$Le=HT,eRe=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},UT=`https://github.com/lobehub/lobehub`,VT(UT,`issues/new/choose`),WT=VT(HT,`/docs`),tRe=VT(WT,`/usage`),nRe=VT(WT,`/self-hosting`),VT(nRe,`/server-database`),`${WT}`,VT(tRe,`/plugins/development`),VT(nRe,`/advanced/upstream-sync`),VT(HT,`blog`),VT(UT,`issues/new/choose`),VT(HT,`/privacy`),VT(HT,`/terms`),rRe=`https://github.com/lobehub/lobe-chat-agents`,VT(rRe,`issues/new`),iRe=(e,t)=>`/agent/${e}`,aRe=(e,t,n)=>VT(`/agent`,e,t),oRe=(e,t)=>VT(`/group`,e,t),VT(UT,`releases`),VT(HT,`changelog`),VT(HT,`/downloads`),VT(HT,`/mobile`)})),cRe=o((()=>{sRe()})),lRe=o((()=>{cRe()})),GT,KT=o((()=>{GT=e=>`https://icons.duckduckgo.com/ip3/${e}.ico`})),uRe,dRe=o((()=>{KT(),uRe=[{auth:`oauth`,author:`AgentMail`,category:`automation`,description:`Give agents their own email inboxes to send and receive mail`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`zapier.com`),identifier:`zapier`,label:`Zapier`,url:`https://mcp.zapier.com/api/mcp/mcp`}]})),fRe,pRe=o((()=>{KT(),fRe=[{auth:`oauth`,author:`Algolia`,category:`coding`,description:`Manage Algolia indices, records and search settings`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`wpvibe.ai`),identifier:`wpvibe`,label:`WPVibe`,url:`https://mcp.wpvibe.ai/mcp`}]})),mRe,hRe=o((()=>{KT(),mRe=[{auth:`oauth`,author:`2Chat`,category:`communication`,description:`Send WhatsApp, SMS and voice messages from your 2Chat numbers`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`restream.io`),identifier:`restream`,label:`Restream`,url:`https://mcp.restream.io/mcp`}]})),gRe,_Re=o((()=>{KT(),gRe=[{auth:`oauth`,author:`Adobe Analytics`,category:`data`,description:`Pull Adobe Analytics reports, metrics and segments`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`windsor.ai`),identifier:`windsor`,label:`Windsor.ai`,url:`https://mcp.windsor.ai`}]})),vRe,yRe=o((()=>{KT(),vRe=[{auth:`oauth`,author:`21st`,category:`design`,description:`Find React UI components and add them to your project`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`sunra.ai`),identifier:`sunra`,label:`Sunra`,url:`https://mcp.sunra.ai`},{auth:`oauth`,author:`VideoGen`,category:`design`,description:`Create videos with VideoGen`,icon:GT(`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:GT(`webflow.com`),identifier:`webflow`,label:`Webflow`,url:`https://mcp.webflow.com/mcp`}]})),bRe,xRe=o((()=>{KT(),bRe=[{auth:`oauth`,author:`Coda`,category:`documents`,description:`Read and update Coda docs and tables`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`wordpress.com`),identifier:`wordpress`,label:`WordPress.com`,url:`https://public-api.wordpress.com/wpcom/v2/mcp/v1`}]})),SRe,CRe=o((()=>{KT(),SRe=[{auth:`none`,author:`1inch`,category:`finance`,description:`Look up 1inch swap API docs and SDK examples`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`ynab.com`),identifier:`ynab`,label:`YNAB`,url:`https://api.ynab.com/mcp`}]})),wRe,TRe=o((()=>{KT(),wRe=[{auth:`oauth`,author:`Tessie`,category:`other`,description:`Check Tesla vehicle status and data through Tessie`,icon:GT(`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:GT(`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:GT(`withings.com`),identifier:`withings`,label:`Withings`,url:`https://mcp.withings.com/mcp`}]})),ERe,DRe=o((()=>{KT(),ERe=[{auth:`oauth`,author:`Akiflow`,category:`productivity`,description:`Plan tasks and time blocks in Akiflow`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`typeform.com`),identifier:`typeform`,label:`Typeform`,url:`https://api.typeform.com/mcp`}]})),ORe,kRe=o((()=>{KT(),ORe=[{auth:`oauth`,author:`Ahrefs`,category:`research`,description:`Pull SEO metrics, backlinks and keyword data from Ahrefs`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`tavily.com`),identifier:`tavily`,label:`Tavily`,url:`https://mcp.tavily.com/mcp`},{auth:`oauth`,author:`TranscriptAPI`,category:`research`,description:`Fetch YouTube video transcripts`,icon:GT(`transcriptapi.com`),identifier:`transcriptapi`,label:`TranscriptAPI`,url:`https://transcriptapi.com/mcp`},{auth:`oauth`,author:`Ubersuggest`,category:`research`,description:`Research SEO keywords with Ubersuggest`,icon:GT(`ubersuggest.com`),identifier:`ubersuggest`,label:`Ubersuggest`,url:`https://ubersuggest-mcp.neilpatelapi.com/mcp`}]})),ARe,jRe=o((()=>{KT(),ARe=[{auth:`none`,author:`Affinity`,category:`sales`,description:`Look up relationships, deals and notes in Affinity`,icon:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`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:GT(`workable.com`),identifier:`workable`,label:`Workable`,url:`https://mcp.workable.com/mcp`}]})),MRe=o((()=>{dRe(),pRe(),hRe(),_Re(),yRe(),xRe(),CRe(),TRe(),DRe(),kRe(),jRe(),[...ERe,...mRe,...bRe,...ARe,...fRe,...gRe,...ORe,...vRe,...uRe,...SRe,...wRe]})),NRe=o((()=>{MRe()})),PRe=o((()=>{})),FRe,qT,IRe,LRe,RRe=o((()=>{FRe=e=>e.join(`+`),qT={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},IRe=[{electronAccelerator:`Alt+Shift+Space`,id:qT.QuickComposer,uiKeys:FRe([`alt`,`shift`,`space`])},{electronAccelerator:``,id:qT.QuickChat,uiKeys:``},{electronAccelerator:``,id:qT.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:qT.OpenSettings,nonEditable:!0,uiKeys:FRe([`mod`,`comma`])}],LRe=IRe.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),IRe.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),zRe=o((()=>{RRe(),LRe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),BRe,VRe,HRe,URe=o((()=>{Gw(),BRe={},VRe=Rw,HRe=`/avatars/lobe-ai.png`})),JT=o((()=>{Gw()})),WRe,GRe,KRe,qRe,JRe=o((()=>{Gw(),URe(),JT(),WRe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},GRe={model:Vw,provider:Hw},KRe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:GRe,searchMode:`auto`,selfIteration:{enabled:!1}},qRe={chatConfig:KRe,model:Vw,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:Hw,systemRole:``,tts:WRe}})),YRe=o((()=>{})),XRe=o((()=>{})),ZRe,QRe,$Re,eze,tze,nze,rze,ize,aze,oze,sze,cze,lze,uze,dze,fze,pze,mze=o((()=>{ZRe=`@lobehub/lobehub`,QRe=`2.3.4`,$Re=`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.`,eze=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],tze=`https://github.com/lobehub/lobehub`,nze={url:`https://github.com/lobehub/lobehub/issues/new/choose`},rze={type:`git`,url:`https://github.com/lobehub/lobehub.git`},ize=`LobeHub <i@lobehub.com>`,aze=[`./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`],oze=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],sze={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`},cze={"@types/react":`19.2.13`,"baseline-browser-mapping":`2.10.31`,"better-auth":`1.7.16`,"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`},lze=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.7.16","@better-auth/passkey":"1.7.16","@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.7.16","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"}`),uze={"@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`},dze=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,fze={access:`public`,registry:`https://registry.npmjs.org`},pze={name:ZRe,version:QRe,description:$Re,keywords:eze,homepage:tze,bugs:nze,repository:rze,license:`MIT`,author:ize,sideEffects:aze,workspaces:oze,scripts:sze,"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:cze,dependencies:lze,devDependencies:uze,packageManager:dze,publishConfig:fze}})),YT,XT,ZT=o((()=>{Gw(),mze(),YT=pze.version,XT=Lw!==`LobeHub`})),QT,$T,eE,tE,nE,hze,gze=o((()=>{ZT(),QT=e=>e.join(`+`),$T={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`},eE={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`},tE={Conversation:`conversation`,Essential:`essential`},nE={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},hze=[{group:tE.Essential,id:eE.CommandPalette,keys:QT([$T.Mod,`k`]),scopes:[nE.Global]},{group:tE.Essential,id:eE.Search,keys:QT([$T.Mod,`j`]),scopes:[nE.Global]},{group:tE.Essential,id:eE.SwitchAgent,keys:QT([$T.Ctrl,$T.Number]),nonEditable:!0,scopes:[nE.Global]},{group:tE.Essential,id:eE.SwitchTab,keys:QT([$T.Mod,$T.Number]),nonEditable:!0,scopes:[nE.Global]},{group:tE.Essential,id:eE.NextTab,keys:QT([$T.Ctrl,$T.Tab]),nonEditable:!0,scopes:[nE.Global]},{group:tE.Essential,id:eE.PrevTab,keys:QT([$T.Ctrl,$T.Shift,$T.Tab]),nonEditable:!0,scopes:[nE.Global]},{group:tE.Essential,id:eE.NavigateToChat,keys:QT([$T.Ctrl,$T.Shift,$T.Backquote]),scopes:[nE.Global]},{group:tE.Essential,id:eE.ToggleLeftPanel,keys:QT([$T.Mod,$T.BracketLeft]),scopes:[nE.Global]},{group:tE.Essential,id:eE.ToggleRightPanel,keys:QT([$T.Mod,$T.BracketRight]),scopes:[nE.Global]},{group:tE.Essential,id:eE.OpenHotkeyHelper,keys:QT([$T.Ctrl,$T.Shift,$T.QuestionMark]),scopes:[nE.Global]},{group:tE.Essential,id:eE.ToggleFavorite,keys:QT([$T.Alt,`f`]),scopes:[nE.Global]},{group:tE.Essential,id:eE.OpenTaskFilter,keys:`f`,scopes:[nE.Global]},{group:tE.Conversation,id:eE.FindInTopic,keys:QT([$T.Mod,`f`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.ToggleTerminalPanel,keys:QT([$T.Ctrl,$T.Backquote]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.OpenChatSettings,keys:QT([$T.Alt,$T.Comma]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.RegenerateMessage,keys:QT([$T.Alt,`r`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.DeleteLastMessage,keys:QT([$T.Alt,`d`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.DeleteAndRegenerateMessage,keys:QT([$T.Alt,$T.Shift,`r`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.SaveTopic,keys:QT([$T.Alt,`n`]),scopes:[nE.Chat]},{group:tE.Conversation,id:eE.EditMessage,keys:QT([$T.Alt,$T.LeftDoubleClick]),nonEditable:!0,scopes:[nE.Chat]},{group:tE.Essential,id:eE.SaveDocument,keys:QT([$T.Mod,`s`]),scopes:[nE.Files]}]})),_ze=o((()=>{gze(),hze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),vze=o((()=>{})),yze=o((()=>{Gw(),JT()})),bze=o((()=>{})),xze=o((()=>{})),Sze,rE,Cze=o((()=>{Gw(),yze(),JT(),Sze={model:Vw,provider:Hw},rE={model:Uw,provider:Ww},rE.model,rE.provider,rE.model,rE.provider,rE.model,rE.provider,{...Sze},Reflect.get(Zke,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(Zke,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),wze=o((()=>{})),Tze=o((()=>{})),iE=o((()=>{JRe(),YRe(),XRe(),_ze(),vze(),yze(),JT(),bze(),xze(),Cze(),wze(),Tze()})),Eze=o((()=>{iE(),new Date().toISOString()})),Dze=o((()=>{})),Oze=o((()=>{Object.freeze([])})),kze=o((()=>{})),Aze,jze,Mze,Nze=o((()=>{Aze=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],jze=2*1024*1024*1024-1,`${jze}`,Mze=64*1024*1024,`${Mze}`,[...Aze]})),Pze,Fze=o((()=>{Gw(),`${Lw}`,Pze=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(Pze)})),Ize,Lze=o((()=>{Ize=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(Ize)})),Rze=o((()=>{})),zze=o((()=>{})),Bze=o((()=>{})),Vze=o((()=>{})),Hze=o((()=>{})),Uze=o((()=>{})),Wze,Gze=o((()=>{mc(),Wze=(e,t)=>Qee({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),Kze,qze,Jze=o((()=>{URe(),iE(),Gze(),Kze=`agent`,qze={config:qRe,createdAt:new Date,id:``,meta:BRe,model:qRe.model,type:Kze,updatedAt:new Date},Wze(qze,{id:`inbox`,meta:{avatar:HRe}})})),Yze=o((()=>{})),Xze=o((()=>{})),Zze=o((()=>{})),Qze=o((()=>{})),$ze=o((()=>{})),eBe=o((()=>{})),tBe=o((()=>{})),nBe=o((()=>{})),rBe,iBe,aBe=o((()=>{Gw(),iE(),rBe={activities:3,contexts:0,experiences:0,preferences:3},iBe={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...rBe}},iBe.high.contexts})),oBe=o((()=>{})),sBe=o((()=>{})),aE=o((()=>{gxe(),vxe(),yxe(),Exe(),HLe(),WLe(),GLe(),KLe(),lRe(),NRe(),PRe(),zRe(),RRe(),Eze(),Dze(),Oze(),kze(),Nze(),Fze(),Lze(),Rze(),zze(),cRe(),Bze(),URe(),MRe(),Vze(),Hze(),Uze(),Jze(),iE(),Yze(),Xze(),Zze(),Qze(),$ze(),eBe(),tBe(),sRe(),nBe(),aBe(),ZT(),oBe(),sBe()}));aE();var oE=[[`LobeHub Cloud`,Iw,`LobeHub Cloud`],[`LobeHub`,Lw,`LobeHub`],[`LobeChat`,Lw,`LobeHub`],[`Lobe AI`,VRe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),cBe=new Map(oE),lBe=`Lobe`,uBe=oE.length?RegExp(`(?<!@)(${oE.map(([e])=>e).join(`|`)})`,`g`):void 0,dBe=oE.length>0,fBe=`brandStrings`,pBe=e=>!uBe||!e.includes(lBe)?e:e.replaceAll(uBe,e=>cBe.get(e)??e),mBe={name:fBe,process:e=>typeof e==`string`?pBe(e):e,type:`postProcessor`},hBe=dBe?{postProcess:[fBe]}:{},gBe=e=>dBe?e.use(mBe):e,_Be=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},vBe=c({default:()=>yBe}),yBe,bBe=o((()=>{yBe={"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
|
|