@lobehub/cli 0.0.180 → 0.0.182

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -167,7 +167,7 @@ Error generating stack: `+e.message+`
167
167
 
168
168
  `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=Lx,c=!dS.jitless,l=c&&eSe.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?zCe([],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)}}),US=aS(`$ZodUnion`,(e,t)=>{IS.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=>jx(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=>BCe(t,r,e,i)):BCe(o,r,e,i)}}),Mwe=aS(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,US.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)||Mx(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=Nx(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=Ax(()=>VCe(t));e._zod.parse=(i,a)=>{let o=i.value;if(!Lx(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)}}),Nwe=aS(`$ZodIntersection`,(e,t)=>{IS.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])=>HCe(e,t,n)):HCe(e,i,a)}}),Pwe=aS(`$ZodRecord`,(e,t)=>{IS.init(e,t);let n=dS.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Rx(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=>Kx(e,i,oS())),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(...Wx(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...Wx(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`&&wS.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=>Kx(e,i,oS())),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(...Wx(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...Wx(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}}),Fwe=aS(`$ZodEnum`,(e,t)=>{IS.init(e,t);let n=Ox(t.entries),r=new Set(n);e._zod.values=r,Qx(e,`pattern`,e=>{let t=Ox(e.def.entries).filter(e=>tSe.has(typeof e));return RegExp(t.length?`^(${t.map(e=>zx(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}}),Iwe=aS(`$ZodLiteral`,(e,t)=>{IS.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`?zx(e):e?zx(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}}),Lwe=aS(`$ZodTransform`,(e,t)=>{IS.init(e,t),e._zod.optin=`optional`,dS.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new uS(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 lS;return n.value=i,n}}),WS=aS(`$ZodOptional`,(e,t)=>{IS.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(`^(${jx(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=>UCe(e,t)):UCe(e,r)}return t.innerType._zod.run(e,n)}}),Rwe=aS(`$ZodExactOptional`,(e,t)=>{WS.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)}),zwe=aS(`$ZodNullable`,(e,t)=>{IS.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(`^(${jx(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)}),Bwe=aS(`$ZodDefault`,(e,t)=>{IS.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=>WCe(e,t)):WCe(r,t)}}),Vwe=aS(`$ZodPrefault`,(e,t)=>{IS.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))}),Hwe=aS(`$ZodNonOptional`,(e,t)=>{IS.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=>GCe(t,e)):GCe(i,e)}}),Uwe=aS(`$ZodCatch`,(e,t)=>{IS.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=>KCe(e,r,t,n)):KCe(e,r,t,n)}}),GS=aS(`$ZodPipe`,(e,t)=>{IS.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=>FS(e,t.in,n)):FS(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>FS(e,t.out,n)):FS(r,t.out,n)}}),Wwe=aS(`$ZodPreprocess`,(e,t)=>{GS.init(e,t)}),Gwe=aS(`$ZodReadonly`,(e,t)=>{IS.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(qCe):qCe(r)}}),Kwe=aS(`$ZodLazy`,(e,t)=>{IS.init(e,t),Dxe(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)}),qwe=aS(`$ZodCustom`,(e,t)=>{ES.init(e,t),IS.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=>JCe(t,n,r,e));JCe(i,n,r,e)}})}));function Jwe(e){return typeof e==`object`&&!!e}function qS(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function JS(e,t,n){let r=ZS.get(e);if(r!==void 0)return r?eC:QS;if(t.has(e))return eC;t.add(e);let i=QS,a=e=>{if(i!==eC&&e?._zod){let r=JS(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?$S:o.value?._zod?JS(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=Nx(c);s(e?o(e,!0):$S),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?JS(r,t,!1):$S);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),Ywe(e,i)}function Ywe(e,t){return t!==$S&&ZS.set(e,t===eC),t}function Xwe(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function Zwe(){return eTe}function Qwe(e,t){let n=e[YS]?.backEdges;return n!==void 0&&Jwe(t)&&n.has(t)}var $we,YS,XS,ZS,QS,$S,eC,tC,nC,eTe,tTe=o((()=>{iS(),$we=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},YS=`~memo`,XS=[],ZS=new WeakMap,QS=0,$S=1,eC=2,nC=[],eTe={alloc(e,t,n){let r=tC;if(!r)return n;tC=void 0;let i={value:n,issues:null};return r.set(t.value,i),nC.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`&&Qwe(n,e.value))throw new $we;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=JS(e,new Set,!1);if(i===QS)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===eC||r?n=!0:r=!0}let l=s.value;if(!Jwe(l))return t(s,c);let u=c[YS];u||(u={buckets:new WeakMap,backEdges:void 0},c[YS]=u);let d;i===c?d=a:(d=Xwe(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(...qS(f.issues)):(s.memo=!0,u.backEdges??=new WeakSet,u.backEdges.add(f.value)),s;tC=d;let p=nC.length,m=t(s,c);tC=void 0;let h=nC.length>p?nC.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?qS(e.issues):XS),e)):(h&&(h.issues=m.issues.length?qS(m.issues):XS),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}}}));function nTe(){return{localeError:rTe()}}var rTe,rC=o((()=>{iS(),rTe=()=>{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(Kxe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Pxe(e.values[0])}`:`Invalid option: expected one of ${wxe(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`:``}: ${wxe(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 iTe(){return new oTe}var aTe,oTe,iC,aC=o((()=>{oTe=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)}},(aTe=globalThis).__zod_globalRegistry??(aTe.__zod_globalRegistry=iTe()),iC=globalThis.__zod_globalRegistry})),sTe=o((()=>{}));function cTe(e){return e.checks&&=[...e.checks],e}function lTe(e,t){return new e(cTe({type:`string`,...Vx(t)}))}function uTe(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Vx(t)})}function dTe(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Vx(t)})}function fTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Vx(t)})}function pTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Vx(t)})}function mTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Vx(t)})}function hTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Vx(t)})}function gTe(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Vx(t)})}function _Te(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Vx(t)})}function vTe(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Vx(t)})}function yTe(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Vx(t)})}function bTe(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Vx(t)})}function xTe(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Vx(t)})}function STe(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Vx(t)})}function CTe(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Vx(t)})}function wTe(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Vx(t)})}function TTe(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Vx(t)})}function ETe(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Vx(t)})}function DTe(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Vx(t)})}function OTe(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Vx(t)})}function kTe(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Vx(t)})}function ATe(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Vx(t)})}function jTe(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Vx(t)})}function MTe(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Vx(t)})}function NTe(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Vx(t)})}function PTe(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Vx(t)})}function FTe(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Vx(t)})}function ITe(e,t){return new e(cTe({type:`number`,checks:[],...Vx(t)}))}function LTe(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Vx(t)})}function RTe(e,t){return new e({type:`boolean`,...Vx(t)})}function zTe(e,t){return new e({type:`undefined`,...Vx(t)})}function BTe(e,t){return new e({type:`null`,...Vx(t)})}function VTe(e){return new e({type:`any`})}function HTe(e){return new e({type:`unknown`})}function UTe(e,t){return new e({type:`never`,...Vx(t)})}function WTe(e,t){return new e({type:`date`,coerce:!0,...Vx(t)})}function GTe(e,t){return new kS({check:`less_than`,...Vx(t),value:e,inclusive:!1})}function oC(e,t){return new kS({check:`less_than`,...Vx(t),value:e,inclusive:!0})}function KTe(e,t){return new AS({check:`greater_than`,...Vx(t),value:e,inclusive:!1})}function sC(e,t){return new AS({check:`greater_than`,...Vx(t),value:e,inclusive:!0})}function qTe(e,t){return new cCe({check:`multiple_of`,...Vx(t),value:e})}function JTe(e,t){return new uCe({check:`max_length`,...Vx(t),maximum:e})}function cC(e,t){return new dCe({check:`min_length`,...Vx(t),minimum:e})}function YTe(e,t){return new fCe({check:`length_equals`,...Vx(t),length:e})}function XTe(e,t){return new pCe({check:`string_format`,format:`regex`,...Vx(t),pattern:e})}function ZTe(e){return new mCe({check:`string_format`,format:`lowercase`,...Vx(e)})}function QTe(e){return new hCe({check:`string_format`,format:`uppercase`,...Vx(e)})}function $Te(e,t){return new gCe({check:`string_format`,format:`includes`,...Vx(t),includes:e})}function eEe(e,t){return new _Ce({check:`string_format`,format:`starts_with`,...Vx(t),prefix:e})}function tEe(e,t){return new vCe({check:`string_format`,format:`ends_with`,...Vx(t),suffix:e})}function lC(e){return new yCe({check:`overwrite`,tx:e})}function nEe(e){return lC(t=>t.normalize(e))}function rEe(){return lC(e=>e.trim())}function iEe(){return lC(e=>e.toLowerCase())}function aEe(){return lC(e=>e.toUpperCase())}function oEe(){return lC(e=>Mxe(e))}function sEe(e,t,n){return new e({type:`array`,element:t,...Vx(n)})}function cEe(e,t,n){let r=Vx(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function lEe(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Vx(n)})}function uEe(e,t){let n=dEe(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Yx(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(Yx(r))}},e(t.value,t)),t);return n}function dEe(e,t){let n=new ES({check:`custom`,...Vx(t)});return n._zod.check=e,n}var fEe=o((()=>{MS(),iS()}));function uC(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&Mx(e,t,n[t]);return e}function pEe(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??iC,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 dC(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 fC(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,fC(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&uC(o.schema,c),t.io===`input`&&mC(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 mEe(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function hEe(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}/${mEe(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+mEe(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 gEe(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;gEe(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 _Ee(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function pC(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!hC.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]??_Ee(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}Mx(n,r,e.length===1?e[0]:pC(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=_Ee(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 vEe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of hC)if(t in e)return;let n=t.filter(e=>gC.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=pC(t);else{let e=n[0],i=gC.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=>pC([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,uC(e,r))}function yEe(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)):uC(i,s),uC(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())gEe(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)??[])vEe(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)}uC(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,Mx(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:_C(t,`input`,e.processors),output:_C(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function mC(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 mC(r.element,n);if(r.type===`set`)return mC(r.valueType,n);if(r.type===`lazy`)return mC(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 mC(r.innerType,n);if(r.type===`intersection`)return mC(r.left,n)||mC(r.right,n);if(r.type===`record`||r.type===`map`)return mC(r.keyType,n)||mC(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:mC(r.in,n)||mC(r.out,n);if(r.type===`object`){for(let e in r.shape)if(mC(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(mC(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(mC(e,n))return!0;return!!(r.rest&&mC(r.rest,n))}return!1}var hC,gC,bEe,_C,vC=o((()=>{aC(),iS(),hC=new Set([`type`,`properties`,`required`,`additionalProperties`]),gC=[`oneOf`,`anyOf`],bEe=(e,t={})=>n=>{let r=pEe({...n,processors:t});return fC(e,r),hEe(r,e),yEe(r,e)},_C=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=pEe({...i??{},target:a,io:t,processors:n});return fC(e,o),hEe(o,e),yEe(o,e)}}));function yC(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)CEe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&SC(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&SC(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&CC(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&CC(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&TC(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&DC(t,i.mime);for(let e of i.patterns??[])EC(t,e);return t}function bC(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?bC(t.out):t.type===`catch`?bC(t.innerType):e._zod.optin}function xC(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=xC(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=>xC(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`)?wS:nCe).source),p):p}function xEe(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 NC.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=xC(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 SEe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(dC(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),PC):JSON.parse(o)}var SC,CC,wC,TC,EC,DC,OC,kC,AC,jC,CEe,wEe,TEe,MC,EEe,DEe,OEe,kEe,AEe,jEe,MEe,NEe,PEe,FEe,IEe,LEe,REe,zEe,BEe,VEe,HEe,NC,UEe,WEe,GEe,PC,KEe,qEe,JEe,YEe,XEe,FC,ZEe,IC=o((()=>{TS(),KS(),vC(),iS(),SC=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},CC=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},wC=(e,t)=>{SC(e,`minimum`,t),CC(e,`maximum`,t)},TC=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},EC=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},DC=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},OC=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},kC=(e,t)=>SC(e,`minimum`,t.minimum),AC=(e,t)=>CC(e,`maximum`,t.maximum),jC=e=>(t,n)=>{OC(t,n.format);let[r,i]=e[n.format];SC(t,`minimum`,r),CC(t,`maximum`,i)},CEe={greater_than:(e,t)=>SC(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>CC(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>TC(e,t.value),number_format:jC(tS),bigint_format:jC(nSe),min_length:kC,max_length:AC,length_equals:(e,t)=>wC(e,t.length),min_size:kC,max_size:AC,size_equals:(e,t)=>wC(e,t.size),string_format:(e,t)=>{OC(e,t.format),t.pattern&&EC(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)=>DC(e,t.mime)},wEe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},TEe=new Map([[BS,XSe],[VS,ZSe]]),MC=e=>TEe.get(e)??e,EEe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=yC(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=wEe[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(MC);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}))])}},DEe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=yC(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)):dC(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}))])}},OEe=(e,t,n,r)=>{n.type=`boolean`},kEe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},AEe=(e,t,n,r)=>{dC(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},jEe=(e,t,n,r)=>{n.not={}},MEe=(e,t,n,r)=>{},NEe=(e,t,n,r)=>{},PEe=(e,t,n,r)=>{dC(e,t,n,r,`Date cannot be represented in JSON Schema`)},FEe=(e,t,n,r)=>{let i=e._zod.def,a=Ox(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},IEe=(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(dC(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(dC(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},LEe=(e,t,n,r)=>{dC(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},REe=(e,t,n,r)=>{dC(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},zEe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=yC(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=fC(a.element,t,{...r,path:[...r.path,`items`]})},BEe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&dC(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Mx(i.properties,e,fC(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`?bC(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=fC(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},VEe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>fC(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},HEe=(e,t,n,r)=>{let i=e._zod.def,a=fC(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=fC(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)},NC=new WeakMap,UEe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=yC(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=fC(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Mx(i.patternProperties,MC(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=fC(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=NC.get(t);n||(n=[],NC.set(t,n),t.deferred.push(()=>xEe(t))),n.push(e)}i.additionalProperties=fC(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&bC(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))}},WEe=(e,t,n,r)=>{let i=e._zod.def,a=fC(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`}]},GEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},PC=Symbol(),KEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=SEe(i.defaultValue,e,t,n,r);o!==PC&&(n.default=o)},qEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=SEe(i.defaultValue,e,t,n,r);o!==PC&&(n._prefault=o)},JEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{dC(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},YEe=(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;fC(o,t,r);let s=t.seen.get(e);s.ref=o},XEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},FC=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ZEe=(e,t,n,r)=>{let i=e._zod.innerType;fC(i,t,r);let a=t.seen.get(e);a.ref=i}})),LC=o((()=>{fS(),ASe(),hSe(),KS(),tTe(),MS(),CCe(),iS(),TS(),rC(),aC(),xCe(),sTe(),fEe(),vC(),IC(),vC()})),RC=o((()=>{LC()}));function zC(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 BC,QEe,VC,$Ee=o((()=>{LC(),iS(),BC=new WeakSet([Object.prototype,Error.prototype]),QEe=(e,t)=>{mSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);BC.has(n)||(BC.add(n),zC(n,`format`,e=>t=>fSe(e,t)),zC(n,`flatten`,e=>t=>dSe(e,t)),zC(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,kx,2)}),zC(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,kx,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},VC=aS(`ZodError`,QEe,void 0,{Parent:Error})})),eDe,tDe,nDe,rDe,iDe,aDe,oDe,sDe,cDe,lDe,uDe,dDe,fDe=o((()=>{LC(),$Ee(),eDe=_S(VC),tDe=vS(VC),nDe=yS(VC),rDe=bS(VC),iDe=SSe(VC),aDe=CSe(VC),oDe=wSe(VC),sDe=TSe(VC),cDe=ESe(VC),lDe=DSe(VC),uDe=OSe(VC),dDe=kSe(VC)}));function pDe(){dS.localeError||oS(nTe())}function HC(){dS.memoizer||oS({memoizer:Zwe()})}function H(e){return lTe(NDe,e)}function UC(e){return ITe(cw,e)}function mDe(e){return LTe(tOe,e)}function WC(e){return RTe(nOe,e)}function hDe(e){return zTe(rOe,e)}function gDe(e){return BTe(iOe,e)}function GC(){return VTe(aOe)}function KC(){return HTe(oOe)}function _De(e){return UTe(sOe,e)}function qC(e,t){return sEe(lOe,e,t)}function JC(e,t){return new lw({type:`object`,shape:e??{},...Vx(t)})}function vDe(e,t){return new lw({type:`object`,shape:e,catchall:_De(),...Vx(t)})}function YC(e,t){return new uw({type:`union`,options:e,...Vx(t)})}function XC(e,t,n){return new uOe({type:`union`,options:t,discriminator:e,...Vx(n)})}function yDe(e,t){return new dOe({type:`intersection`,left:e,right:t})}function ZC(e,t,n){return!t||!t._zod?new dw({type:`record`,keyType:H(),valueType:e,...Vx(t)}):new dw({type:`record`,keyType:e,valueType:t,...Vx(n)})}function QC(e,t){return new fw({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Vx(t)})}function $C(e,t){return new fw({type:`enum`,entries:e,...Vx(t)})}function ew(e,t){return new fOe({type:`literal`,values:Array.isArray(e)?e:[e],...Vx(t)})}function bDe(e){return new pOe({type:`transform`,transform:e})}function xDe(e){return new pw({type:`optional`,innerType:e})}function SDe(e){return new mw({type:`optional`,innerType:e})}function CDe(e){return new mOe({type:`nullable`,innerType:e})}function wDe(e,t){return new hOe({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Nxe(t)}})}function TDe(e,t){return new gOe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Nxe(t)}})}function EDe(e,t){return new hw({type:`nonoptional`,innerType:e,...Vx(t)})}function DDe(e,t){return new _Oe({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Qxe(t)})}function ODe(e,t){return new gw({type:`pipe`,in:e,out:t})}function kDe(e){return new yOe({type:`readonly`,innerType:e})}function ADe(e){return new bOe({type:`lazy`,getter:e})}function tw(e,t){return cEe(_w,e??(()=>!0),t)}function jDe(e,t={}){return lEe(_w,e,t)}function MDe(e,t){return uEe(e,t)}function nw(e,t){return new vOe({type:`pipe`,in:bDe(e),out:t})}var rw,iw,NDe,aw,ow,PDe,FDe,IDe,LDe,RDe,sw,zDe,BDe,VDe,HDe,UDe,WDe,GDe,KDe,qDe,JDe,YDe,XDe,ZDe,QDe,$De,eOe,cw,tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,lw,uw,uOe,dOe,dw,fw,fOe,pOe,pw,mw,mOe,hOe,gOe,hw,_Oe,gw,vOe,yOe,bOe,_w,vw=o((()=>{LC(),IC(),vC(),rC(),RC(),fDe(),rw=aS(`ZodType`,(e,t)=>(pDe(),IS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Ix(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 Bx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(jDe(e,t))},superRefine(e,t){return this.check(MDe(e,t))},overwrite(e){return this.check(lC(e))},optional(){return xDe(this)},exactOptional(){return SDe(this)},nullable(){return CDe(this)},nullish(){return xDe(CDe(this))},nonoptional(e){return EDe(this,e)},array(){return qC(this)},or(e){return YC([this,e])},and(e){return yDe(this,e)},transform(e){return ODe(this,bDe(e))},default(e){return wDe(this,e)},prefault(e){return TDe(this,e)},catch(e){return DDe(this,e)},pipe(e){return ODe(this,e)},readonly(){return kDe(this)},describe(e){let t=this.clone();return iC.add(t,{description:e}),t},meta(...e){if(e.length===0)return iC.get(this);let t=this.clone();return iC.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 Jxe(this,`~standard`,{...TCe(this),jsonSchema:{input:_C(this,`input`),output:_C(this,`output`)}})},set"~standard"(e){Xx(this,`~standard`,e)},parse:function e(t,n){return eDe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await tDe(this,t,n,{callee:e})},safeParse(e,t){return nDe(this,e,t)},async safeParseAsync(e,t){return rDe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Xx(this,`spa`,e)},validate(e,t){return bSe(this,e,t)},validateAsync(e,t){return xSe(this,e,t)},encode:function e(t,n){return iDe(this,t,n,{callee:e})},decode:function e(t,n){return aDe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await oDe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await sDe(this,t,n,{callee:e})},safeEncode(e,t){return cDe(this,e,t)},safeDecode(e,t){return lDe(this,e,t)},async safeEncodeAsync(e,t){return uDe(this,e,t)},async safeDecodeAsync(e,t){return dDe(this,e,t)},toJSONSchema(e){return bEe(this,{})(e)},get description(){return iC.get(this)?.description},get _def(){return this._zod.def}}),iw=aS(`_ZodString`,(e,t)=>{RS.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>EEe(e,t,n,r)},Zx({format:e=>yC(e).format??null,minLength:e=>yC(e).minimum??null,maxLength:e=>yC(e).maximum??null},{regex(...e){return this.check(XTe(...e))},includes(...e){return this.check($Te(...e))},startsWith(...e){return this.check(eEe(...e))},endsWith(...e){return this.check(tEe(...e))},min(...e){return this.check(cC(...e))},max(...e){return this.check(JTe(...e))},length(...e){return this.check(YTe(...e))},nonempty(...e){return this.check(cC(1,...e))},lowercase(e){return this.check(ZTe(e))},uppercase(e){return this.check(QTe(e))},trim(){return this.check(rEe())},normalize(...e){return this.check(nEe(...e))},toLowerCase(){return this.check(iEe())},toUpperCase(){return this.check(aEe())},slugify(){return this.check(oEe())}})),NDe=aS(`ZodString`,(e,t)=>{RS.init(e,t),iw.init(e,t)},{email(e){return this.check(uTe(LDe,e))},url(e){return this.check(gTe(zDe,e))},jwt(e){return this.check(jTe(eOe,e))},emoji(e){return this.check(_Te(BDe,e))},guid(e){return this.check(dTe(RDe,e))},uuid(e){return this.check(fTe(sw,e))},uuidv4(e){return this.check(pTe(sw,e))},uuidv6(e){return this.check(mTe(sw,e))},uuidv7(e){return this.check(hTe(sw,e))},nanoid(e){return this.check(vTe(VDe,e))},cuid(e){return this.check(yTe(HDe,e))},cuid2(e){return this.check(bTe(UDe,e))},ulid(e){return this.check(xTe(WDe,e))},base64(e){return this.check(OTe(ZDe,e))},base64url(e){return this.check(kTe(QDe,e))},xid(e){return this.check(STe(GDe,e))},ksuid(e){return this.check(CTe(KDe,e))},ipv4(e){return this.check(wTe(qDe,e))},ipv6(e){return this.check(TTe(JDe,e))},cidrv4(e){return this.check(ETe(YDe,e))},cidrv6(e){return this.check(DTe(XDe,e))},e164(e){return this.check(ATe($De,e))},datetime(e){return this.check(MTe(ow,e))},date(e){return this.check(NTe(PDe,e))},time(e){return this.check(PTe(FDe,e))},duration(e){return this.check(FTe(IDe,e))}}),aw=aS(`ZodStringFormat`,(e,t)=>{zS.init(e,t),iw.init(e,t)}),ow=aS(`ZodISODateTime`,(e,t)=>{swe.init(e,t),aw.init(e,t)}),PDe=aS(`ZodISODate`,(e,t)=>{cwe.init(e,t),aw.init(e,t)}),FDe=aS(`ZodISOTime`,(e,t)=>{lwe.init(e,t),aw.init(e,t)}),IDe=aS(`ZodISODuration`,(e,t)=>{uwe.init(e,t),aw.init(e,t)}),LDe=aS(`ZodEmail`,(e,t)=>{ZCe.init(e,t),aw.init(e,t)}),RDe=aS(`ZodGUID`,(e,t)=>{YCe.init(e,t),aw.init(e,t)}),sw=aS(`ZodUUID`,(e,t)=>{XCe.init(e,t),aw.init(e,t)}),zDe=aS(`ZodURL`,(e,t)=>{$Ce.init(e,t),aw.init(e,t)}),BDe=aS(`ZodEmoji`,(e,t)=>{ewe.init(e,t),aw.init(e,t)}),VDe=aS(`ZodNanoID`,(e,t)=>{twe.init(e,t),aw.init(e,t)}),HDe=aS(`ZodCUID`,(e,t)=>{nwe.init(e,t),aw.init(e,t)}),UDe=aS(`ZodCUID2`,(e,t)=>{rwe.init(e,t),aw.init(e,t)}),WDe=aS(`ZodULID`,(e,t)=>{iwe.init(e,t),aw.init(e,t)}),GDe=aS(`ZodXID`,(e,t)=>{awe.init(e,t),aw.init(e,t)}),KDe=aS(`ZodKSUID`,(e,t)=>{owe.init(e,t),aw.init(e,t)}),qDe=aS(`ZodIPv4`,(e,t)=>{dwe.init(e,t),aw.init(e,t)}),JDe=aS(`ZodIPv6`,(e,t)=>{pwe.init(e,t),aw.init(e,t)}),YDe=aS(`ZodCIDRv4`,(e,t)=>{mwe.init(e,t),aw.init(e,t)}),XDe=aS(`ZodCIDRv6`,(e,t)=>{hwe.init(e,t),aw.init(e,t)}),ZDe=aS(`ZodBase64`,(e,t)=>{gwe.init(e,t),aw.init(e,t)}),QDe=aS(`ZodBase64URL`,(e,t)=>{_we.init(e,t),aw.init(e,t)}),$De=aS(`ZodE164`,(e,t)=>{vwe.init(e,t),aw.init(e,t)}),eOe=aS(`ZodJWT`,(e,t)=>{ywe.init(e,t),aw.init(e,t)}),cw=aS(`ZodNumber`,(e,t)=>{HS.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>DEe(e,t,n,r),e.isFinite=!0},Zx({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=yC(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=yC(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=yC(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>yC(e).format??null},{gt(e,t){return this.check(KTe(e,t))},gte(e,t){return this.check(sC(e,t))},min(e,t){return this.check(sC(e,t))},lt(e,t){return this.check(GTe(e,t))},lte(e,t){return this.check(oC(e,t))},max(e,t){return this.check(oC(e,t))},int(e){return this.check(mDe(e))},safe(e){return this.check(mDe(e))},positive(e){return this.check(KTe(0,e))},nonnegative(e){return this.check(sC(0,e))},negative(e){return this.check(GTe(0,e))},nonpositive(e){return this.check(oC(0,e))},multipleOf(e,t){return this.check(qTe(e,t))},step(e,t){return this.check(qTe(e,t))},finite(){return this}})),tOe=aS(`ZodNumberFormat`,(e,t)=>{bwe.init(e,t),cw.init(e,t)}),nOe=aS(`ZodBoolean`,(e,t)=>{xwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>OEe(e,t,n,r)}),rOe=aS(`ZodUndefined`,(e,t)=>{Swe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AEe(e,t,n,r)}),iOe=aS(`ZodNull`,(e,t)=>{Cwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kEe(e,t,n,r)}),aOe=aS(`ZodAny`,(e,t)=>{wwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>MEe(e,t,n,r)}),oOe=aS(`ZodUnknown`,(e,t)=>{Twe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NEe(e,t,n,r)}),sOe=aS(`ZodNever`,(e,t)=>{Ewe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jEe(e,t,n,r)}),cOe=aS(`ZodDate`,(e,t)=>{Dwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PEe(e,t,n,r),e.min=(t,n)=>e.check(sC(t,n)),e.max=(t,n)=>e.check(oC(t,n))},Zx({minDate:e=>{let{minimum:t}=yC(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=yC(e);return t?new Date(t):null}},{})),lOe=aS(`ZodArray`,(e,t)=>{HC(),Owe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zEe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(cC(e,t))},nonempty(e){return this.check(cC(1,e))},max(e,t){return this.check(JTe(e,t))},length(e,t){return this.check(YTe(e,t))},unwrap(){return this.element}}),lw=aS(`ZodObject`,(e,t)=>{HC(),jwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BEe(e,t,n,r),Zxe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return QC(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Ix(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Ix(this._zod.def,{catchall:KC()}))},loose(){return this.clone(Ix(this._zod.def,{catchall:KC()}))},strict(){return this.clone(Ix(this._zod.def,{catchall:_De()}))},strip(){return this.clone(Ix(this._zod.def,{catchall:void 0}))},extend(e){return Rxe(this,e)},safeExtend(e){return Bxe(this,e)},merge(e){return Vxe(this,e)},pick(e){return Ixe(this,e)},omit(e){return Lxe(this,e)},partial(...e){return Hxe(pw,this,e[0])},exactPartial(...e){return Hxe(mw,this,e[0],`exactPartial`)},required(...e){return Uxe(hw,this,e[0])}}),uw=aS(`ZodUnion`,(e,t)=>{US.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VEe(e,t,n,r),e.options=t.options}),uOe=aS(`ZodDiscriminatedUnion`,(e,t)=>{uw.init(e,t),Mwe.init(e,t)}),dOe=aS(`ZodIntersection`,(e,t)=>{Nwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HEe(e,t,n,r)}),dw=aS(`ZodRecord`,(e,t)=>{HC(),Pwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UEe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),fw=aS(`ZodEnum`,(e,t)=>{Fwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FEe(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 fw({...t,checks:[],...Vx(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 fw({...t,checks:[],...Vx(r),entries:i})}}),fOe=aS(`ZodLiteral`,(e,t)=>{Iwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IEe(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]}})}),pOe=aS(`ZodTransform`,(e,t)=>{HC(),Lwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>REe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new uS(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Yx(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(Yx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),pw=aS(`ZodOptional`,(e,t)=>{WS.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),mw=aS(`ZodExactOptional`,(e,t)=>{Rwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),mOe=aS(`ZodNullable`,(e,t)=>{zwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),hOe=aS(`ZodDefault`,(e,t)=>{Bwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),gOe=aS(`ZodPrefault`,(e,t)=>{Vwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),hw=aS(`ZodNonOptional`,(e,t)=>{Hwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),_Oe=aS(`ZodCatch`,(e,t)=>{Uwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),gw=aS(`ZodPipe`,(e,t)=>{GS.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YEe(e,t,n,r),e.in=t.in,e.out=t.out}),vOe=aS(`ZodPreprocess`,(e,t)=>{gw.init(e,t),Wwe.init(e,t)}),yOe=aS(`ZodReadonly`,(e,t)=>{Gwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),bOe=aS(`ZodLazy`,(e,t)=>{Kwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZEe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),_w=aS(`ZodCustom`,(e,t)=>{qwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LEe(e,t,n,r)})})),xOe,SOe=o((()=>{LC(),xOe||={}}));function COe(e){return MTe(ow,e)}var wOe=o((()=>{LC(),vw()}));function yw(e){return WTe(cOe,e)}var TOe=o((()=>{LC(),vw()})),EOe=o((()=>{LC(),vw(),RC(),$Ee(),fDe(),SOe(),IC(),aC(),iS(),RC(),wOe(),vw(),KS(),rC(),TOe()})),bw=o((()=>{EOe(),EOe()})),xw,Sw,Cw,ww,DOe,Tw,Ew=o((()=>{bw(),xw=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],Sw=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:xw,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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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`}],Cw=Sw.map(({type:e})=>e),QC(Cw),ww=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],DOe=QC([...Cw,...ww.map(({type:e})=>e)]),Tw=[{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`}]})),Dw,Ow,kw,OOe,Aw,jw,Mw,Nw,kOe,AOe,jOe,MOe,NOe,POe,Pw,FOe,Fw,IOe,LOe,ROe,zOe,BOe,VOe,HOe,UOe,WOe,GOe,KOe,qOe,JOe,Iw,Lw,YOe,XOe,ZOe,QOe,$Oe,eke,Rw,zw,tke,Bw,nke=o((()=>{Cxe(),Dw=`default`,Ow=[`low`,`medium`,`high`,`ultra`],kw=[`low`,`medium`,`high`,`xhigh`,`max`],OOe=[`low`,`medium`,`high`,`xhigh`,`max`],Aw=[`low`,`medium`,`high`,`xhigh`],jw=[`--effort`,`--reasoning-effort`],Mw=[`low`,`medium`,`high`,`xhigh`],Nw=[...Mw,`max`,`ultra`],kOe=`model_reasoning_effort`,AOe=[`low`,`high`,`max`],jOe=[`high`,`max`],MOe=[...Mw,`max`],NOe=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],POe=[`gpt-6-astra`,`gpt-5.6-luna`],Pw=[`low`,`medium`,`high`,`xhigh`,`max`],FOe=`--reasoning-effort`,Fw=[`low`,`medium`,`high`,`xhigh`,`max`],IOe=`--reasoning-effort`,LOe=`service_tier`,ROe=[`fast`,`priority`],zOe=e=>!!e&&Ow.includes(e),BOe=e=>!!e&&kw.includes(e),VOe=e=>!!e&&Nw.includes(e),HOe=e=>!!e&&Aw.includes(e),UOe=e=>!!e&&Pw.includes(e),WOe=e=>!!e&&Fw.includes(e),GOe=e=>!!e&&ROe.includes(e),KOe=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?AOe:e===`glm-5.2`?jOe:NOe.includes(e)?Nw:POe.includes(e)?MOe:Mw,qOe=e=>{let t=(wx(e?.args,`--mode`)??e?.mode)?.trim();return zOe(t)?t:Dw},JOe=[`-m`,`--model`],Iw=e=>{let t=(wx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:Dw},Lw=e=>{let t=(wx(e?.args,`--effort`)??e?.effort)?.trim();return BOe(t)?t:Dw},YOe=e=>{let t=(Tx(e?.args,JOe)??Dx(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:Dw},XOe=e=>{let t=(Dx(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return VOe(t)?t:Dw},ZOe=e=>{let t=(Dx(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Dx(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:GOe(t)?`fast`:Dw},QOe=e=>{let t=(Tx(e?.args,jw)??e?.effort)?.trim();return HOe(t)?t:Dw},$Oe=e=>{let t=(wx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return UOe(t)?t:Dw},eke=e=>{let t=(wx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return WOe(t)?t:Dw},Rw=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:Dw},zw={flags:[`-m`,`--model`],kind:`flag`},tke={antigravity:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:(e,t)=>t?t.find(t=>t.id===e)?.effortLevels??[]:OOe,resolve:Lw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Iw,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:Ow,resolve:qOe}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>kw,resolve:Lw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Iw,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>kw,resolve:Lw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Iw,source:`catalog`}},codex:{effort:{encodings:[{key:kOe,kind:`config`}],levels:KOe,resolve:XOe},model:{encodings:[zw,{key:`model`,kind:`config`}],resolve:YOe,source:`catalog`},speed:{encodings:[{key:LOe,kind:`config`}],resolve:ZOe}},copilot:{effort:{encodings:[{flags:[IOe],kind:`flag`}],levels:()=>Fw,resolve:eke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Rw,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Rw,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:Rw,source:`catalog`}},droid:{model:{encodings:[],resolve:Rw,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Rw,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:jw,kind:`flag`}],levels:()=>Aw,resolve:QOe},model:{encodings:[zw],resolve:Rw,source:`catalog`}},"kimi-code":{model:{encodings:[zw],resolve:Rw,source:`catalog`}},opencode:{model:{encodings:[zw],resolve:Rw,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:Rw,source:`catalog`}},qoder:{effort:{encodings:[{flags:[FOe],kind:`flag`}],levels:()=>Pw,resolve:$Oe},model:{encodings:[zw],resolve:Rw,source:`catalog`}},trae:{model:{encodings:[],resolve:Rw,source:`catalog`}}},Bw=e=>tke[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),Bw(`copilot`),Bw(`grok-build`),Bw(`kimi-code`),Bw(`opencode`),Bw(`pi`),Bw(`qoder`)})),rke=o((()=>{})),ike=o((()=>{Ew(),rke(),new Set([...Sw.map(({type:e})=>e),...ww.map(({type:e})=>e),...Tw.map(({type:e})=>e)])})),ake=o((()=>{})),oke=o((()=>{})),ske,cke,lke,uke,dke=o((()=>{bw(),ske=JC({workingDirectory:H().optional()}),cke=JC({memory:JC({effort:QC([`low`,`medium`,`high`]).optional(),enabled:WC().optional(),toolPermission:QC([`read-only`,`read-write`]).optional()}).optional()}),lke=JC({selfIteration:JC({enabled:WC().optional()}).optional()}),uke=JC({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:WC().optional(),disableGatewayMode:WC().optional(),effort:QC([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:WC().optional(),enableAgentMode:WC().optional(),toolMode:QC([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:WC().optional(),enableCompressHistory:WC().optional(),enableContextCompression:WC().optional(),enableFollowUpChips:WC().optional(),enableHistoryCount:WC().optional(),enableMaxTokens:WC().optional(),enableReasoning:WC().optional(),enableReasoningEffort:WC().optional(),enableStreaming:WC().optional(),enableStaleToolResultTrim:WC().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:UC().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:ske.optional(),preserveThinking:WC().optional(),reasoningBudgetToken:UC().optional(),reasoningBudgetToken32k:UC().optional(),reasoningBudgetToken80k:UC().optional(),reasoningEffort:QC([`low`,`medium`,`high`]).optional(),reasoningMode:QC([`standard`,`pro`]).optional(),searchFCModel:JC({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:UC().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:UC().default(25e3),topicGroupMode:QC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:WC().optional(),useModelBuiltinSearch:WC().optional()}).merge(cke).merge(lke)})),fke=o((()=>{})),pke=o((()=>{})),Vw,Hw,Uw,Ww,mke,hke,gke,_ke,vke,Gw,yke,bke=o((()=>{Vw=`LobeHub Cloud`,Hw=`LobeHub`,Uw=`Lobe AI`,Ww=`LobeHub`,mke={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},hke={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`},gke={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},_ke={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},vke=`lobehub`,Gw=`© ${new Date().getFullYear()} ${Ww}`,yke=`${Gw}. All rights reserved.`})),xke,Ske,Cke,Kw,qw,Jw,Yw,wke,Tke,Eke,Dke,Oke,kke,Ake,jke,Mke,Nke,Pke,Fke,Ike,Lke,Rke=o((()=>{xke=`jev-1.14.0`,Ske=`typesafe`,Cke=`openai`,Kw=`deepseek-v4-flash`,qw=`deepseek`,Jw=`gpt-5.6-luna`,Yw=`openai`,wke=`decision`,Tke=`gpt-6-luna:decision`,Eke=`openai`,Dke=`gpt-4o-mini-transcribe`,Oke=`openai`,kke=`gemini-3-flash-preview`,Ake=`google`,jke=`gemini-3.8-flash`,Mke=`google`,Nke=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],Pke=`glm-5.3-flash`,Fke=`zhipu`,Ike=`deepseek-flash`,Lke=`deepseek`})),zke,Bke=o((()=>{zke=[]})),Vke,Hke=o((()=>{Vke=`chat_preview`})),Uke=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>Wke,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>_ke,BRANDING_INBOX_TITLE:()=>Uw,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>Hw,BRANDING_PROVIDER:()=>vke,BRANDING_URL:()=>mke,BUSINESS_OIDC_CLIENTS:()=>zke,COPYRIGHT:()=>Gw,COPYRIGHT_FULL:()=>yke,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>Nke,DEFAULT_ASR_MODEL:()=>Dke,DEFAULT_ASR_PROVIDER:()=>Oke,DEFAULT_BOT_WAKE_ENGINE:()=>wke,DEFAULT_BOT_WAKE_MODEL:()=>Tke,DEFAULT_BOT_WAKE_PROVIDER:()=>Eke,DEFAULT_CHANNEL_ROUTING_MODEL:()=>xke,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>Ske,DEFAULT_EMBEDDING_PROVIDER:()=>Cke,DEFAULT_MINI_MODEL:()=>Jw,DEFAULT_MINI_PROVIDER:()=>Yw,DEFAULT_MODEL:()=>Kw,DEFAULT_ONBOARDING_MODEL:()=>kke,DEFAULT_ONBOARDING_PROVIDER:()=>Ake,DEFAULT_PROVIDER:()=>qw,DEFAULT_REVIEW_PREDICT_MODEL:()=>jke,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>Mke,DEFAULT_VERIFY_MODEL:()=>Pke,DEFAULT_VERIFY_PLAN_MODEL:()=>Ike,DEFAULT_VERIFY_PLAN_PROVIDER:()=>Lke,DEFAULT_VERIFY_PROVIDER:()=>Fke,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>gke,LOBE_CHAT_CLOUD:()=>Vw,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>Gke,ORG_NAME:()=>Ww,SOCIAL_URL:()=>hke,UTM_SOURCE:()=>Vke,isOfficialProvider:()=>Kke}),Wke,Gke,Kke,Xw=o((()=>{bke(),bke(),Rke(),Bke(),Hke(),Wke=`sk-lh-`,Gke=`The official provider cannot be disabled.`,Kke=e=>!1})),qke=o((()=>{Xw()})),Jke=o((()=>{})),Yke=o((()=>{})),Xke,Zke,Qke=o((()=>{bw(),Xke=QC([`pinned`,`auto`,`disabled`]),Zke=YC([H(),JC({builtinOverride:ew(!0).optional(),identifier:H(),mode:Xke.optional()})])})),$ke=o((()=>{bw(),dke(),Qke(),JC({agencyConfig:tw().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:uke.optional(),description:H().nullish(),editorData:KC().optional(),fewShots:KC().optional(),marketIdentifier:H().nullish(),metadata:ZC(H(),KC()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:qC(H()).optional(),params:ZC(H(),KC()).optional(),plugins:qC(Zke).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:qC(H()).optional(),title:H().nullish(),tts:tw().optional(),virtual:WC().nullish(),visibility:QC([`private`,`public`]).optional()})})),eAe=o((()=>{})),tAe=o((()=>{})),nAe=o((()=>{})),rAe=o((()=>{})),iAe=o((()=>{})),aAe=o((()=>{ike(),ake(),oke(),dke(),fke(),pke(),qke(),Cxe(),Ew(),Jke(),Yke(),nke(),$ke(),eAe(),Qke(),tAe(),nAe(),rAe(),iAe()})),oAe,sAe=o((()=>{oAe=[`mail`,`wallet`,`service`],[...oAe]})),cAe=o((()=>{})),lAe=o((()=>{})),uAe,Zw,dAe=o((()=>{bw(),uAe=JC({ciStatus:QC([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:WC().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:UC(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),Zw=JC({environmentId:H().max(255).optional(),git:JC({activeWorktree:H().optional(),autoCreated:WC().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:WC().optional(),github:JC({extraPullRequestCount:UC().optional(),pullRequest:uAe.nullable().optional(),pullRequestStatus:QC([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:WC().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:JC({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:QC([`git`,`github`]).optional(),sessionPath:H().optional()})})),Qw=o((()=>{dAe()})),$w,eT=o((()=>{$w=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),fAe=o((()=>{})),pAe=o((()=>{})),mAe=o((()=>{})),hAe=o((()=>{bw(),Qw(),eT(),fAe(),pAe(),mAe(),JC({heteroPermissionMode:QC($w).optional(),repos:qC(H()).optional(),sandboxDrive:QC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:WC().optional(),sandboxTemporary:WC().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:Zw.optional()})})),gAe,_Ae=o((()=>{bw(),gAe=JC({allowDM:WC().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:qC(H()).optional(),personal:WC().optional(),revealDM:WC().optional(),systemPrompt:H().optional()}),JC({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:gAe.nullish(),content:H().nullish(),description:H().nullish(),editorData:ZC(H(),GC()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:WC().nullish(),title:H().nullish(),visibility:QC([`private`,`public`]).optional()})})),vAe,yAe,bAe,xAe=o((()=>{bw(),vAe=QC([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),yAe=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),bAe=vDe({allowedEnvVars:qC(H().regex(/^[A-Z_]\w*$/i)).optional(),body:ZC(H(),KC()).optional(),delivery:QC([`fetch`,`qstash`]).optional(),eventFields:qC(H()).optional(),fallback:QC([`fetch`,`none`]).optional(),headers:ZC(H(),H()).optional(),onError:QC([`continue`,`block`]).optional(),responseHandling:QC([`ignore`,`toolCall`]).optional(),timeout:UC().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`})}),vDe({id:H(),matcher:yAe.optional(),type:vAe,webhook:bAe}).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`})})})),SAe=o((()=>{bw(),XC(`decision`,[JC({decision:ew(`allow`)}),JC({decision:ew(`deny`),reason:H().optional()})])})),CAe=o((()=>{})),wAe,TAe=o((()=>{wAe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(wAe)})),EAe=o((()=>{})),DAe=o((()=>{})),OAe,kAe,AAe,jAe=o((()=>{OAe={messages:`msg`,threads:`thd`,topics:`tpc`},kAe=`[0-9a-zA-Z]{8,32}`,AAe=e=>RegExp(`^${OAe[e]}_${kAe}$`)})),tT,MAe,NAe,PAe=o((()=>{bw(),tT=JC({attribution:QC([`user`,`provider`,`harness`,`system`]).optional(),body:GC().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:WC().optional(),httpStatus:UC().optional(),isFallback:WC().optional(),message:H().optional(),numericId:UC().optional(),retryable:WC().optional(),severity:QC([`info`,`warning`,`error`,`critical`]).optional(),type:YC([H(),UC()])}),MAe=JC({content:qC(ZC(H(),KC())).optional(),encrypted_content:H().nullish(),id:H(),status:QC([`in_progress`,`completed`,`incomplete`]).optional(),summary:qC(JC({text:H(),type:ew(`summary_text`)})),type:ew(`reasoning`)}).passthrough(),NAe=JC({content:H().optional(),duration:UC().optional(),isMultimodal:WC().optional(),responseItems:qC(MAe).optional(),signature:H().optional()})})),FAe,IAe=o((()=>{FAe=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}({})})),nT,LAe,RAe=o((()=>{bw(),nT=UC().catch(0),LAe=JC({bySource:JC({content:nT,fileContext:nT,reasoning:nT,thoughtSignature:nT,toolCallId:nT,toolCalls:nT,toolDefinition:nT}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:ew(`tokenx`).catch(`tokenx`),messageCount:nT,system:nT,total:nT})})),zAe,BAe,rT,VAe,HAe,UAe,WAe,GAe,iT,KAe=o((()=>{bw(),zAe=QC([`markdown`,`text`,`xml`]),BAe=JC({endLine:UC().optional(),startLine:UC()}),rT=JC({content:H(),format:zAe.optional(),id:H(),lineRange:BAe.optional(),preview:H().optional(),title:H().optional()}),VAe=rT.extend({anchor:JC({endNodeId:H(),endOffset:UC(),startNodeId:H(),startOffset:UC()}).optional(),pageId:H(),source:ew(`page`),xml:H().optional()}),HAe=rT.extend({filePath:H(),language:H().optional(),side:QC([`additions`,`context`,`deletions`]).optional(),source:ew(`code`),workingDirectory:H().optional()}),UAe=rT.extend({source:ew(`text`)}),WAe=rT.extend({element:JC({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:ew(`element`)}),GAe=rT.extend({identifier:H(),source:ew(`mcpApp`)}),iT=XC(`source`,[VAe,HAe,UAe,WAe,GAe])})),qAe,JAe=o((()=>{bw(),KAe(),qAe=rT.omit({lineRange:!0}).extend({anchor:JC({endNodeId:H(),endOffset:UC(),startNodeId:H(),startOffset:UC()}).optional(),startLine:UC().optional(),endLine:UC().optional(),pageId:H(),xml:H().optional()})})),YAe,XAe,aT,ZAe,QAe,$Ae,eje,tje,nje,rje,ije,aje,oje,sje,cje,oT,lje,uje=o((()=>{bw(),IAe(),RAe(),KAe(),JAe(),YAe=YC([JC({action:QC([`create`,`update`,`delete`]),changeType:QC([`created`,`updated`]).optional(),targets:qC(JC({taskId:H().optional(),taskIdentifier:H().optional()})),type:ew(`task`)}),JC({args:ZC(H(),KC()).optional(),data:KC(),provider:H(),toolName:H(),type:ew(`skill`)}),JC({action:ew(`register`),document:JC({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:QC([`created`,`updated`]),toolName:H()}),type:ew(`document`)}),JC({action:ew(`delete`),document:JC({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:ew(`document`)}),JC({action:ew(`register`),canvas:JC({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:JC({entry:H(),fileCount:UC(),manifestKey:H(),runtimeMajor:UC(),totalSize:UC()})}),type:ew(`canvas`)})]),XAe=JC({apiName:QC([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:ZC(H(),KC()),capturedAt:H(),content:H().nullable(),error:KC().optional(),identifier:ew(`lobe-local-system`),result:KC().optional(),snapshotId:H(),state:KC().optional(),success:WC(),toolCallId:H()}),aT=JC({inputCachedTokens:UC().optional(),inputCacheMissTokens:UC().optional(),inputWriteCacheTokens:UC().optional(),inputCachedTextTokens:UC().optional(),inputCachedImageTokens:UC().optional(),inputCachedAudioTokens:UC().optional(),inputCachedVideoTokens:UC().optional(),inputTextTokens:UC().optional(),inputImageTokens:UC().optional(),inputAudioTokens:UC().optional(),inputVideoTokens:UC().optional(),inputCitationTokens:UC().optional(),inputToolTokens:UC().optional(),inputCharacters:UC().optional(),outputTextTokens:UC().optional(),outputImageTokens:UC().optional(),outputAudioTokens:UC().optional(),outputReasoningTokens:UC().optional(),outputVideoTokens:UC().optional(),acceptedPredictionTokens:UC().optional(),rejectedPredictionTokens:UC().optional(),totalInputTokens:UC().optional(),totalOutputTokens:UC().optional(),totalTokens:UC().optional(),cost:UC().optional(),credits:UC().optional()}),ZAe=JC({tps:UC().optional(),ttft:UC().optional(),duration:UC().optional(),latency:UC().optional()}),QAe=JC({emoji:H(),count:UC(),users:qC(H())}),$Ae=JC({sequence:UC().optional(),sourceToolCallId:H(),sourceToolName:H(),type:QC([`tool-stdout`,`tool-callback`,`task-completion`])}),eje=JC({identifier:H()}),tje=JC({agentId:H().optional(),name:H(),status:QC([`completed`,`error`]),threadId:H()}),nje=JC({identifier:H(),reason:QC([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),rje=JC({rootOperationId:H().min(1),userMessageId:H().optional()}),ije=JC({kind:QC([`callAgent`]),visibility:ew(`internal`)}),aje=JC({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:UC().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),oje=JC({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),sje=JC({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),cje=aT.merge(ZAe).extend({botSender:sje.optional(),externalOrigin:oje.optional(),agentDispatch:ije.optional(),agentSender:aje.optional(),collapsed:WC().optional(),contextAccounting:LAe.optional(),contextSelections:qC(iT).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:UC().int().positive().optional(),inspectExpanded:WC().optional(),isMultimodal:WC().optional(),isSupervisor:WC().optional(),localSystemToolSnapshots:qC(XAe).optional(),mcpAppSource:eje.optional(),operationId:H().min(1).optional(),orchestrationRole:QC([`supervisor`,`member`]).optional(),pageSelections:qC(qAe).optional(),performance:ZAe.optional(),reactions:qC(QAe).optional(),scope:H().optional(),selectedSkillIds:qC(H()).optional(),signal:$Ae.optional(),steer:WC().optional(),subAgentCallback:tje.optional(),subAgentId:H().optional(),taskCallback:nje.optional(),toolExecutionTimeMs:UC().optional(),toolResultSuccess:WC().optional(),toolResultStop:WC().optional(),toolWorkRegistration:YAe.optional(),trigger:$C(FAe).optional(),verifyOperationId:H().optional(),verifyRound:UC().optional(),work:rje.optional(),usage:aT.optional()}),oT=cje.omit({agentSender:!0}),lje=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),dje,fje=o((()=>{bw(),uje(),dje=cje.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),JC({editorData:ZC(H(),KC()).optional(),metadata:dje.optional()}),Object.keys(dje.shape)})),pje,mje=o((()=>{bw(),pje=JC({alt:H(),height:UC().optional(),id:H(),mimeType:H().optional(),ratio:UC().optional(),url:H(),width:UC().optional()})})),hje=o((()=>{})),gje,_je,vje,yje=o((()=>{bw(),gje=JC({batchId:H().optional(),itemIndex:UC().int().nonnegative().optional(),operationId:H().optional(),runtimeType:QC([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:WC().optional(),resolutionRequestId:H().optional(),skipped:WC().optional(),stepIndex:UC().int().nonnegative().optional(),status:QC([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),_je=JC({function:JC({arguments:H(),name:H()}),id:H(),type:H()}),vje=JC({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:gje.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),bje=o((()=>{})),xje=o((()=>{})),sT=o((()=>{PAe(),fje(),RAe(),KAe(),mje(),hje(),uje(),JAe(),yje(),bje(),xje()})),Sje,Cje=o((()=>{bw(),Sje=JC({id:H(),similarity:UC()}),JC({id:H(),value:JC({fileChunks:qC(Sje),ragQueryId:H().optional()})})})),wje,Tje,Eje=o((()=>{bw(),PAe(),yje(),Cje(),sT(),JAe(),wje=QC([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),Tje=JC({apiName:H(),arguments:H(),identifier:H(),type:H()}),JC({role:wje,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:Tje.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:qC(H()).optional(),error:tT.nullish(),traceId:H().optional(),fileChunks:qC(Sje).optional()}).passthrough(),JC({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:gje.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:GC().optional(),error:GC().optional(),clientId:H().optional(),userId:H().optional()})})),Dje,Oje=o((()=>{bw(),Dje=JC({action:QC([`create`,`update`,`delete`]),agentEditable:WC().optional(),resourceType:QC([`document`,`task`])})})),cT,kje,Aje,jje,Mje,Nje,Pje=o((()=>{bw(),cT=QC([`never`,`required`,`always`]),kje=YC([H(),JC({pattern:H(),type:QC([`exact`,`prefix`,`wildcard`,`regex`])})]),Aje=JC({match:ZC(H(),kje).optional(),policy:cT}),jje=YC([cT,qC(Aje)]),JC({action:QC([`approve`,`reject`,`select`]),data:JC({remember:WC().optional(),selected:YC([H(),qC(H())]).optional()}).optional()}),JC({allowList:qC(H()).optional(),approvalMode:QC([`auto-run`,`allow-list`,`manual`,`headless`])}),Mje=JC({description:H(),match:ZC(H(),kje),policy:cT.optional()}),Nje=qC(Mje),JC({config:jje.optional(),confirmedHistory:qC(H()).optional(),securityBlacklist:Nje.optional(),toolArgs:ZC(H(),GC()).optional(),toolKey:H().optional()})})),Fje=o((()=>{})),lT,Ije,Lje,Rje,uT,zje,Bje=o((()=>{bw(),Oje(),Pje(),Fje(),Oje(),lT=JC({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:qC(H()).optional(),title:H()}),Ije=QC([`collapsed`,`expand`,`alwaysExpand`]),Lje=JC({default:cT.optional(),policy:cT.optional(),type:H()}),Rje=YC([jje,JC({dynamic:Lje})]),uT=JC({defaultTimeoutMs:UC().int().positive().optional(),description:H(),humanIntervention:Rje.optional(),name:H(),ordered:WC().optional(),parameters:ZC(H(),GC()),renderDisplayControl:Ije.optional(),serializeBy:H().optional(),url:H().optional(),work:Dje.optional()}),zje=JC({api:qC(uT),deviceClients:qC(QC([`cli`,`desktop`])).optional(),executors:qC(QC([`client`,`server`])).optional(),humanIntervention:Rje.optional(),identifier:H(),meta:lT,systemRole:H(),type:ew(`builtin`).optional()}),JC({discoverable:WC().optional(),hidden:WC().optional(),identifier:H(),manifest:zje,type:ew(`builtin`)})})),Vje=o((()=>{})),Hje=o((()=>{})),Uje,Wje=o((()=>{bw(),Bje(),Uje=JC({properties:ZC(H(),GC()),required:qC(H()).optional(),type:ew(`object`)}),JC({$schema:H().optional(),api:qC(uT),connector:JC({id:H(),identifier:H()}).optional(),connectorLinks:JC({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:qC(JC({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:qC(uT).optional(),mcpModelOnlyTools:qC(H()).optional(),meta:lT,openapi:H().optional(),settings:Uje.optional(),systemRole:H().optional(),type:QC([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:JC({height:UC().optional(),mode:QC([`iframe`,`module`]).optional(),url:H(),width:UC().optional()}).optional(),version:H().optional()})})),Gje=o((()=>{})),Kje=o((()=>{})),qje,Jje=o((()=>{bw(),qje=JC({description:H().optional(),name:H(),parameters:JC({additionalProperties:WC().optional(),properties:ZC(H(),GC()),required:qC(H()).optional(),type:ew(`object`)})})})),Yje=o((()=>{Bje(),Vje(),Hje(),Pje(),Wje(),Gje(),Kje(),Jje()})),dT,Xje,Zje,fT,Qje,pT,$je,mT,hT,gT,eMe,tMe,nMe,_T,rMe,iMe,aMe,oMe,vT,sMe,cMe=o((()=>{bw(),dT=1e6,Xje=2e3,Zje=2e3,fT=12e3,Qje=JC({kind:ew(`writing`)}).strict(),pT=JC({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:WC()}).strict(),$je=JC({errors:qC(pT).max(16),evidenceCount:UC().int().nonnegative().max(dT),failedCount:UC().int().nonnegative().max(dT),succeededCount:UC().int().nonnegative().max(dT)}).strict(),$je.omit({errors:!0}).strip(),mT=e=>H().trim().min(1).max(e),hT=mT(256),gT=mT(Xje),eMe=JC({content:mT(fT),reasoning:gT,tagline:hT}).strict(),tMe=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}},nMe=nw(tMe,JC({description:gT,rank:UC().int().min(0).max(100),title:hT}).strict()),_T=e=>qC(nMe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),rMe=JC({composition:JC({identities:_T(6),interests:_T(8),lifeStyle:_T(6),social:_T(6),working:_T(6)}).strict(),personaProposal:eMe,profile:JC({domains:qC(hT).max(8),description:gT,name:hT,pronoun:hT,roles:qC(hT).max(8),summary:gT,tagline:hT}).strict()}).strict(),JC({analysis:rMe,detailedPersona:eMe.optional(),diagnostics:$je,feedbackRevision:UC().int().nonnegative().max(dT).default(0),generationRevision:UC().int().nonnegative().max(dT).default(0),kind:ew(`proposal`),providers:qC(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),iMe=JC({content:H().trim().min(1).max(Zje),createdAt:H(),revision:UC().int().positive().max(dT)}).strict(),aMe=JC({revision:UC().int().nonnegative().max(dT),turns:qC(iMe).max(16)}).strict(),oMe=JC({completedAt:H().optional(),errors:qC(pT).max(16),failedCount:UC().int().nonnegative().max(dT),revision:UC().int().nonnegative().max(dT),status:QC([`pending`,`running`,`completed`,`failed`]),succeededCount:UC().int().nonnegative().max(dT)}).strict(),vT={detailed:XC(`status`,[JC({status:ew(`running`),updatedAt:H()}).strict(),JC({status:ew(`completed`),updatedAt:H()}).strict(),JC({error:pT,status:ew(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:UC().int().nonnegative().max(dT).default(0),generationRevision:UC().int().nonnegative().max(dT).default(0),sourceFingerprint:H(),updatedAt:H()},sMe=XC(`status`,[JC({...vT,resultMessageId:H().optional(),status:ew(`running`)}).strict(),JC({...vT,resultMessageId:H(),status:ew(`completed`)}).strict(),JC({...vT,error:pT,resultMessageId:H().optional(),status:ew(`failed`)}).strict()]),JC({confirmedAt:H().optional(),feedback:aMe.default({revision:0,turns:[]}),generationRevision:UC().int().nonnegative().max(dT).default(0),id:H(),sources:ZC(H().max(64),oMe),writing:sMe.optional()}).strict()})),yT,lMe,uMe=o((()=>{bw(),cMe(),yT={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},lMe=JC({clientMode:WC().optional(),completedAt:H().optional(),duration:UC().optional(),error:GC().optional(),model:H().optional(),onboardingUnderstanding:Qje.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:UC().optional(),totalLlmCalls:UC().optional(),totalMessages:UC().optional(),totalTokens:UC().optional(),totalSteps:UC().optional(),totalToolCalls:UC().optional()}),JC({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:lMe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:QC([yT.Continuation,yT.Eval,yT.Standalone,yT.Isolation])})})),dMe,fMe,bT,pMe,xT,mMe,hMe=o((()=>{bw(),jAe(),sT(),Eje(),Yje(),uMe(),dMe=JC({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:QC([yT.Continuation,yT.Standalone,yT.Isolation])}),fMe=JC({content:H(),metadata:oT.optional(),plugin:JC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:QC([`assistant`,`tool`]),tool_call_id:H().optional(),tools:qC(vje).optional()}),bT=e=>H().regex(AAe(e)).optional(),JC({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:JC({agentId:H().optional(),id:bT(`messages`),metadata:ZC(H(),KC()).optional().transform(lje),model:H().optional(),provider:H().optional()}),newThread:dMe.optional(),newTopic:JC({id:bT(`topics`),metadata:tw().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:qC(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:qC(fMe).optional(),newUserMessage:JC({content:H(),contextSelections:qC(iT).optional(),editorData:ZC(H(),KC()).optional(),files:qC(H()).optional(),id:bT(`messages`),metadata:oT.optional(),pageSelections:qC(qAe).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:JC({excludeStatuses:qC(H()).optional(),excludeTriggers:qC(H()).optional(),includeTriggers:qC(H()).optional(),onlyMine:WC().optional()}).optional(),topicPageSize:UC().int().min(1).max(100).optional(),topicId:H().optional()}),pMe=JC({description:H().optional(),name:H(),schema:JC({$defs:GC().optional(),additionalProperties:WC().optional(),properties:ZC(H(),GC()),required:qC(H()).optional(),type:ew(`object`)}),strict:WC().optional()}),JC({metadata:ZC(H(),KC()).optional(),messages:qC(GC()),model:H(),provider:H(),schema:pMe.optional(),tools:qC(JC({function:qje,type:ew(`function`)})).optional(),tracing:JC({tracingId:H().uuid().optional()}).catchall(KC()).optional()}),xT=YC([H(),qC(KC()),ZC(H(),KC())]),mMe=XC(`type`,[JC({criteria:JC({false:xT,true:xT}).optional(),instructions:xT,type:ew(`boolean`)}),JC({criteria:ZC(H(),xT.nullable()),instructions:xT,type:ew(`choice`)}),JC({criteria:qC(xT).min(1),instructions:xT,type:ew(`score`)})]),JC({metadata:ZC(H(),KC()).optional(),model:H(),provider:H(),questions:ZC(H(),mMe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:xT,tracing:JC({tracingId:H().uuid().optional()}).catchall(KC()).optional()})})),gMe=o((()=>{bw()})),_Me=o((()=>{})),vMe=o((()=>{})),yMe=o((()=>{})),bMe=o((()=>{})),xMe=o((()=>{})),SMe,CMe=o((()=>{Ew(),SMe=Tw.map(({type:e})=>e),[...DOe.options,...SMe]})),wMe=o((()=>{})),TMe=o((()=>{wMe()})),EMe=o((()=>{})),DMe=o((()=>{})),OMe=o((()=>{})),kMe=o((()=>{})),AMe=o((()=>{})),jMe=o((()=>{})),MMe=o((()=>{})),NMe=o((()=>{})),PMe=o((()=>{bw(),JC({connected:WC(),cpuCount:UC().int().min(1).max(4096),cpuPercent:UC().min(0).max(100).nullable(),diskTotalBytes:UC().int().min(0).nullish(),diskUsedBytes:UC().int().min(0).nullish(),load1:UC().min(0).nullable(),load5:UC().min(0).nullable(),load15:UC().min(0).nullable(),memoryTotalBytes:UC().int().min(0),memoryUsedBytes:UC().int().min(0),observedAt:UC().int().min(0)})})),FMe=o((()=>{})),IMe=o((()=>{})),LMe=o((()=>{})),RMe=o((()=>{})),zMe=o((()=>{})),BMe=o((()=>{})),VMe=o((()=>{})),HMe=o((()=>{})),UMe=o((()=>{FMe(),IMe(),LMe(),RMe(),zMe(),BMe(),VMe(),HMe()})),WMe=o((()=>{bw(),JC({shareId:H(),topicId:H(),visitorUserId:H()})})),GMe=o((()=>{})),KMe=o((()=>{})),qMe=o((()=>{WMe(),GMe(),KMe()})),JMe=o((()=>{})),YMe=o((()=>{})),XMe=o((()=>{})),ZMe=o((()=>{})),QMe=o((()=>{})),$Me=o((()=>{})),eNe=o((()=>{})),tNe=o((()=>{})),nNe=o((()=>{})),rNe=o((()=>{bw(),JC({ideal:H().optional(),question:H(),referenceFiles:H().or(qC(H())).optional()}),JC({description:H().optional(),knowledgeBaseId:H(),name:H()})})),iNe=o((()=>{})),aNe=o((()=>{})),oNe=o((()=>{})),sNe=o((()=>{bw(),JC({ideal:H().optional(),question:H(),referenceFiles:H().or(qC(H())).optional()}),JC({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),cNe=o((()=>{})),lNe=o((()=>{})),uNe=o((()=>{})),dNe,fNe=o((()=>{bw(),Bje(),dNe=JC({api:qC(uT.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:lT,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`),ZC(H().min(1).max(255),dNe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),pNe=o((()=>{ZMe(),QMe(),$Me(),eNe(),tNe(),nNe(),rNe(),iNe(),aNe(),oNe(),sNe(),cNe(),lNe(),uNe(),fNe()})),mNe=o((()=>{})),hNe=o((()=>{})),gNe=o((()=>{})),ST,_Ne,vNe=o((()=>{ST={InvalidAccessCode:`InvalidAccessCode`,FreePlanLimit:`FreePlanLimit`,SubscriptionPlanLimit:`SubscriptionPlanLimit`,InsufficientBudgetForModel:`InsufficientBudgetForModel`,WorkspaceFrozenByAdmin:`WorkspaceFrozenByAdmin`,WorkspaceFrozenByRiskControl:`WorkspaceFrozenByRiskControl`,WorkspaceSubscriptionInactive:`WorkspaceSubscriptionInactive`,ShareMessageLimitExceeded:`ShareMessageLimitExceeded`,ShareSpendLimitExceeded:`ShareSpendLimitExceeded`,SharePromptTooLong:`SharePromptTooLong`,ShareHeterogeneousAgentUnsupported:`ShareHeterogeneousAgentUnsupported`,ShareHeteroDeviceUnavailable:`ShareHeteroDeviceUnavailable`,AgentShareProviderNotSupported:`AgentShareProviderNotSupported`,SupervisorDecisionFailed:`SupervisorDecisionFailed`,AgentConcurrencyLimitExceeded:`AgentConcurrencyLimitExceeded`,InsufficientBudgetForAgentRunFee:`InsufficientBudgetForAgentRunFee`,InvalidUserKey:`InvalidUserKey`,CreateMessageError:`CreateMessageError`,LobeHubModelDeprecated:`LobeHubModelDeprecated`,NoOpenAIAPIKey:`NoOpenAIAPIKey`,OllamaServiceUnavailable:`OllamaServiceUnavailable`,PluginFailToTransformArguments:`PluginFailToTransformArguments`,UnknownChatFetchError:`UnknownChatFetchError`,SystemTimeNotMatchError:`SystemTimeNotMatchError`,ServerAgentRuntimeError:`ServerAgentRuntimeError`,DeviceGatewayNotConfigured:`DeviceGatewayNotConfigured`,DeviceResponseTimeout:`DeviceResponseTimeout`,RemoteServerOffline:`RemoteServerOffline`,RemoteServerTimeout:`RemoteServerTimeout`,RemoteServerDNSFailed:`RemoteServerDNSFailed`,RemoteServerConnectionRefused:`RemoteServerConnectionRefused`,RemoteServerCertInvalid:`RemoteServerCertInvalid`,RemoteServerUnreachable:`RemoteServerUnreachable`,BadRequest:400,Unauthorized:401,Forbidden:403,ContentNotFound:404,MethodNotAllowed:405,TooManyRequests:429,InternalServerError:500,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504},_Ne=[ST.RemoteServerOffline,ST.RemoteServerTimeout,ST.RemoteServerDNSFailed,ST.RemoteServerConnectionRefused,ST.RemoteServerCertInvalid,ST.RemoteServerUnreachable],new Set(_Ne)})),yNe,bNe,xNe=o((()=>{bw(),yNe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),bNe=100,JC({category:H().optional(),filesOnly:WC().optional(),includeContentPreview:WC().optional(),knowledgeBaseId:H().optional(),limit:UC().int().positive().max(bNe).default(50),offset:UC().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:WC().default(!1),sortType:QC([`desc`,`asc`]).optional(),sorter:QC([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:$C(yNe).optional(),visibility:QC([`private`,`public`]).optional()})})),SNe,CNe=o((()=>{bw(),SNe=JC({shareId:H(),visitorUserId:H()}),JC({agentShare:SNe.optional(),date:H(),dirname:H(),filename:H(),height:UC().optional(),path:H(),ratio:UC().optional(),width:UC().optional()}),JC({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:GC().optional(),name:H(),size:UC(),source:H().optional(),url:H().optional()})})),wNe,TNe=o((()=>{xNe(),CNe(),wNe=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(wNe))})),ENe=o((()=>{})),DNe,ONe,kNe,ANe,CT,jNe,MNe,NNe,PNe,FNe=o((()=>{bw(),DNe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],ONe=[`agentEmoji`,`agentName`,`fullName`],kNe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],ANe=[`agent_identity`,`user_identity`,`discovery`,`summary`],CT=H().trim().transform(e=>e.length>0?e:void 0).optional(),jNe=qC(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),QC(DNe),MNe=QC(ONe),NNe=QC(kNe),JC({agentEmoji:CT,agentName:CT,customInterests:jNe,fullName:CT,interests:jNe}).strict(),PNe=QC(ANe),JC({discoveryUserMessageCount:UC().optional(),finished:WC(),missingStructuredFields:qC(MNe),phase:PNe,remainingDiscoveryExchanges:UC().optional(),topicId:H().optional(),version:UC()}).strict(),JC({activeTopicId:H().optional(),discoveryStartUserMessageCount:UC().optional(),finishedAt:H().optional(),version:UC()}).strict(),JC({node:NNe,patch:JC({}).passthrough()}).strict()})),INe,LNe,RNe=o((()=>{bw(),FNe(),INe=YC([JC({kind:ew(`onboarding`),phase:PNe}),JC({kind:ew(`chat`)})]),LNe=JC({model:H().min(1),provider:H().min(1)}),JC({hint:INe.optional(),modelConfig:LNe,threadId:H().optional(),topicId:H().min(1)})})),zNe=o((()=>{})),BNe=o((()=>{})),VNe=o((()=>{})),HNe=o((()=>{})),wT,UNe,WNe,GNe,KNe,qNe,JNe,YNe,XNe,ZNe=o((()=>{bw(),wT=qC(H().trim().min(1)).max(200),UNe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),WNe=nw(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||UNe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),GNe=[`dead_end`,`superseded`,`retry`],KNe=2e3,qNe=JC({kind:QC(GNe),lesson:H().trim().min(1).max(KNe),nodeIds:wT.min(1),reason:H().trim().min(1).max(KNe),title:H().trim().min(1).max(200)}).strict(),JNe=JC({detours:qC(qNe).max(20).default([]),findingIds:wT.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:wT.default([]),title:H().trim().min(1).max(200),workVersionIds:wT.default([])}).strict(),YNe=JC({nodeIds:wT.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),XNe=JC({edgeIds:wT.default([]),nodeIds:wT.min(1)}).strict(),JC({chapters:qC(JNe).min(1).max(30),deliverableWorkId:WNe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:XNe.optional(),nextSteps:qC(YNe).max(20).default([])}).strict()})),QNe=o((()=>{})),$Ne=o((()=>{})),ePe=o((()=>{})),tPe=o((()=>{})),nPe,rPe,iPe,aPe=o((()=>{bw(),nPe=JC({apiName:H(),arguments:H(),id:H(),identifier:H(),type:ew(`default`)}),rPe=JC({clientId:H(),content:H(),createdAt:H().optional(),metadata:ZC(H(),GC()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:JC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:ZC(H(),GC()).optional(),provider:H().optional(),reasoning:JC({content:H()}).passthrough().optional(),role:QC([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:qC(nPe).optional(),usage:ZC(H(),GC()).optional()}),iPe=JC({clientId:H(),messages:qC(rPe),sourceMessageClientId:H().optional(),status:QC([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:QC([`continuation`,`standalone`,`isolation`])}),JC({messages:qC(rPe),metadata:ZC(H(),GC()).optional(),sessionId:H(),source:QC([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:qC(iPe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{})),lPe=o((()=>{})),uPe,dPe=o((()=>{uPe=[`triage`,`backlog`,`unstarted`,`started`],[...uPe]})),fPe=o((()=>{})),pPe=o((()=>{})),mPe=o((()=>{})),hPe=o((()=>{})),gPe,_Pe,vPe=o((()=>{bw(),gPe=JC({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),_Pe=JC({citations:qC(JC({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:qC(gPe).optional(),imageSearchQueries:qC(H()).optional(),searchQueries:qC(H()).optional()})})),yPe=o((()=>{bw(),vPe(),sT(),JC({content:H().optional(),editorData:ZC(H(),GC()).nullish(),error:tT.nullish(),imageList:qC(pje).optional(),metadata:oT.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:NAe.optional(),role:H().optional(),search:_Pe.nullish(),toolCalls:qC(_je).optional(),tools:qC(vje).nullish(),traceId:H().optional(),usage:aT.optional()}).passthrough()})),bPe=o((()=>{hPe(),yPe()})),xPe=o((()=>{})),SPe=o((()=>{})),CPe=o((()=>{})),wPe=o((()=>{})),TPe=o((()=>{xPe(),SPe(),CPe(),Eje(),Cje(),wPe()})),EPe=o((()=>{sT(),bPe(),TPe()})),DPe=o((()=>{bw(),JC({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:qC(H()).optional(),title:H().optional()})})),OPe=o((()=>{})),kPe=o((()=>{})),APe,jPe=o((()=>{bw(),APe=JC({accessToken:H().optional(),token:H().optional(),type:QC([`none`,`bearer`,`oauth2`])}).optional(),JC({auth:APe,headers:ZC(H(),H()).optional(),identifier:H(),metadata:JC({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),MPe=o((()=>{})),NPe=o((()=>{jPe(),MPe()})),PPe=o((()=>{})),FPe=o((()=>{bw(),JC({fileIds:qC(H()).optional(),knowledgeIds:qC(H()).optional(),query:H(),topK:UC().optional()})})),IPe=o((()=>{})),LPe=o((()=>{})),RPe=o((()=>{})),zPe=o((()=>{})),BPe=o((()=>{})),VPe=o((()=>{})),HPe=o((()=>{})),UPe,WPe=o((()=>{UPe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),GPe=o((()=>{HPe(),WPe()})),KPe,qPe,JPe=o((()=>{KPe=`NO_REPLY`,qPe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${KPe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(qPe)})),YPe,XPe=o((()=>{bw(),YPe=JC({name:H(),url:H().url().optional()}),JC({author:YC([H(),YPe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:qC(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),ZPe=o((()=>{})),QPe=o((()=>{})),$Pe=o((()=>{})),eFe,tFe=o((()=>{eFe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],eFe[0]})),TT,nFe=o((()=>{TT=1440*60*1e3,30*TT,90*TT,7*TT})),rFe=o((()=>{QPe(),$Pe(),tFe(),nFe()})),iFe=o((()=>{})),ET,aFe,oFe,sFe,cFe,lFe,uFe,dFe=o((()=>{bw(),ET=QC([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),JC({serverDefaultHeterogeneousProfiles:qC(H().min(1)).optional()}).passthrough(),aFe=JC({audio:WC().optional(),functionCall:WC().optional(),imageOutput:WC().optional(),reasoning:WC().optional(),search:WC().optional(),video:WC().optional(),vision:WC().optional()}),oFe=JC({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(oFe.shape),sFe=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(`.`)),cFe=QC([`tool`,`params`,`internal`]),lFe=QC([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),uFe=JC({disabledParams:qC(lFe).optional(),extendParams:qC(sFe).optional(),searchImpl:cFe.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),JC({abilities:aFe.optional(),contextWindowTokens:UC().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:uFe.optional(),type:ET.optional()}),JC({abilities:aFe.optional(),config:JC({deploymentName:H().optional()}).optional(),contextWindowTokens:UC().nullish(),displayName:H().nullish(),settings:uFe.optional(),type:ET.optional()}),JC({enabled:WC(),id:H(),providerId:H(),source:QC([`builtin`,`custom`,`remote`]).optional(),type:ET.optional()})})),fFe,DT,pFe,mFe,hFe,gFe,_Fe,vFe,yFe=o((()=>{dFe(),bw(),Qw(),eT(),fFe=JC({claimedAt:H(),expiresAt:H(),id:H()}),DT=JC({claim:fFe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),pFe=DT.extend({failedAssistantMessageId:H(),kind:ew(`resume_after_rate_limit`),rateLimit:JC({rateLimitType:H().optional(),resetsAt:UC().optional()}).optional(),resume:JC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:ew(`heterogeneous_agent`),userMessageId:H()}),mFe=DT.extend({kind:ew(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),JC({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)}),hFe=DT.extend({error:H().optional(),kind:ew(`worktree_start`),operationId:H(),retryable:WC().optional(),userMessageId:H(),waitingForDevice:WC().optional()}),gFe=XC(`kind`,[pFe,mFe,hFe]),JC({claim:fFe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:hDe().optional(),rateLimit:JC({rateLimitType:H().optional(),resetsAt:UC().optional()}).optional(),reason:ew(`rate_limit`),resume:JC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:ew(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),_Fe=JC({boundDeviceId:H().optional(),heteroEffort:tw(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:ZC(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:ZC(H(),H()).optional(),heteroPermissionMode:QC($w).optional(),heteroPermissionModeFallback:QC([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:QC([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:JC({comment:H().max(500).optional(),rating:QC([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:JC({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:JC({categoryHints:qC(H()),installedAgentIds:qC(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:qC(H()).optional(),skipReason:H().optional(),skippedAgentIds:qC(H()).optional(),status:QC([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:qC(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:QC([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:UC().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:oFe.optional(),repos:qC(H()).optional(),runningOperation:gDe().optional(),taskCallbackReservation:JC({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:gFe.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:Zw.optional()}),_Fe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),vFe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],QC(vFe)})),bFe=o((()=>{iFe(),uMe(),yFe()})),xFe=o((()=>{})),SFe=o((()=>{})),CFe=o((()=>{bw(),JC({currentStep:UC().min(1).max(7).optional(),finishedAt:H().optional(),version:UC()})})),wFe=o((()=>{})),TFe,EFe,DFe=o((()=>{bw(),TFe=JC({checked:WC(),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:qC(JC({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(),EFe=JC({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:WC()}).strict(),JC({completedAt:H().optional(),createdTaskIds:ZC(H().max(128),H().max(512)),errors:qC(EFe).max(16),id:H().min(1).max(512),providerIds:qC(H().min(1).max(128)).max(16),recommendations:qC(TFe).max(48),sourceFingerprint:H().min(1).max(2048),status:QC([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),OFe,kFe,AFe,jFe,MFe=o((()=>{bw(),OFe=JC({docsMerged:WC().optional(),moveSettingsToAvatar:WC().optional(),topic:WC().optional(),uploadFileInKnowledgeBase:WC().optional()}),kFe=JC({enableBetterCodingExperience:WC().optional(),enableAgentIdentity:WC().optional(),enableAgentGraphConfig:WC().optional(),enableArtifactDeployment:WC().optional(),enablePageCollab:WC().optional(),enableClaudeCodeSdk:WC().optional(),enableCodexAppServer:WC().optional(),enableDesktopSplitView:WC().optional(),enableHeteroSessionImport:WC().optional(),enableGroupChat:WC().optional(),enableImessage:WC().optional(),enableInputMarkdown:WC().optional(),enableMessageTextSelectionActions:WC().optional(),enableIntegrations:WC().optional(),enableOAuthApps:WC().optional(),enableProjects:WC().optional(),enableSelfLearning:WC().optional(),enableTaskVerify:WC().optional(),enableEvalCapture:WC().optional(),enableTopicBugReport:WC().optional(),enableGoals:WC().optional(),enableTopicAcceptance:WC().optional(),enableDeviceTunnel:WC().optional()}),AFe=JC({acceptOnMerge:WC().optional(),commentOnPrivateRepositories:WC().optional(),commentOnPublicRepositories:WC().optional(),wakeOnCiFailure:WC().optional(),wakeOnReview:WC().optional()}),jFe=JC({github:AFe.optional()}),JC({provider:H(),providerAccountId:H()}),JC({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:OFe.optional(),hideSyncAlert:WC().optional(),integration:jFe.optional(),lab:kFe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:QC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:qC(H()).optional(),sidebarHiddenGroupIds:qC(H()).optional(),terminalFontFamily:H().optional(),telemetry:WC().nullable(),topicGroupMode:QC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:WC().optional(),topicSortBy:QC([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:WC().optional(),workspace:JC({order:qC(H()).optional()}).optional()}).partial()})),NFe=o((()=>{})),PFe=o((()=>{})),FFe=o((()=>{})),IFe=o((()=>{})),LFe=o((()=>{})),RFe=o((()=>{})),zFe=o((()=>{})),BFe=o((()=>{})),VFe,OT,HFe=o((()=>{bw(),VFe=ZC(H(),ZC(H(),WC())),OT=JC({enabled:WC().optional(),items:VFe.optional()}).strict(),JC({content:JC({scheduledTaskSummary:WC().optional()}).strict().optional(),email:OT.optional(),im:OT.extend({platforms:ZC(H(),OT.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:OT.optional(),push:OT.optional()}).strict()})),UFe=o((()=>{})),WFe=o((()=>{})),GFe=o((()=>{})),KFe=o((()=>{})),qFe=o((()=>{bw(),NFe(),PFe(),FFe(),IFe(),LFe(),RFe(),zFe(),BFe(),HFe(),UFe(),WFe(),GFe(),KFe(),JC({defaultAgent:GC().optional(),general:GC().optional(),hotkey:GC().optional(),image:GC().optional(),keyVaults:GC().optional(),languageModel:GC().optional(),market:GC().optional(),memory:GC().optional(),notification:GC().optional(),systemAgent:GC().optional(),tool:GC().optional(),tts:GC().optional()}).passthrough().partial()})),JFe=o((()=>{FNe(),CFe(),wFe(),DFe(),MFe(),qFe()})),YFe=o((()=>{})),XFe=o((()=>{})),ZFe=o((()=>{})),QFe=o((()=>{})),$Fe,eIe=o((()=>{bw(),$Fe=QC([`personal`,`professional`,`demographic`]),JC({description:H().optional(),episodicDate:H().optional(),extractedLabels:qC(H()).optional(),labels:ZC(H(),GC()).optional(),relationship:H().optional(),role:H().optional(),type:$Fe.optional(),userMemoryId:H().optional()}),JC({description:H().optional(),episodicDate:H().optional(),extractedLabels:qC(H()).optional(),labels:ZC(H(),GC()).optional(),relationship:H().optional(),role:H().optional(),type:$Fe.optional()})})),tIe,nIe,rIe=o((()=>{tIe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(tIe),nIe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(nIe)})),iIe=o((()=>{})),aIe=o((()=>{})),oIe,sIe,cIe,kT,lIe,uIe,dIe,fIe=o((()=>{oIe=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(oIe),sIe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(sIe),cIe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(cIe),kT=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(kT),lIe=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(lIe),uIe=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(uIe),dIe=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(dIe)})),pIe=o((()=>{})),AT,jT,mIe,hIe,gIe,_Ie,vIe,yIe,bIe,xIe,SIe,CIe,wIe,TIe=o((()=>{bw(),fIe(),AT=nw(e=>typeof e==`string`?[e]:e,qC(H().trim().min(1))),jT=e=>nw(e=>typeof e==`string`?[e]:e,qC(e)),mIe=QC([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),hIe=JC({activities:UC().int().min(0).optional(),contexts:UC().int().min(0).optional(),experiences:UC().int().min(0).optional(),identities:UC().int().min(0).optional(),preferences:UC().int().min(0).optional()}),gIe=JC({end:yw().optional(),field:mIe.optional(),start:yw().optional()}),_Ie=QC([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),vIe=JC({date:yw(),selector:ew(`day`)}),yIe=JC({month:UC().int().min(1).max(12),selector:ew(`month`),year:UC().int().min(1970).max(9999)}),bIe=JC({end:yw().optional(),selector:ew(`range`),start:yw().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),xIe=JC({selector:ew(`year`),year:UC().int().min(1970).max(9999)}),SIe=QC([`today`,`yesterday`]),CIe=ADe(()=>YC([JC({selector:_Ie}),vIe,yIe,JC({anchor:YC([SIe,CIe]),offsetDays:UC().int(),selector:ew(`relativeDay`)}),bIe,xIe])),JC({categories:AT.optional(),effort:QC([`low`,`medium`,`high`]).optional(),labels:AT.optional(),layers:jT($C(kT)).optional(),queries:AT.optional(),relationships:AT.optional(),status:AT.optional(),tags:AT.optional(),timeIntent:CIe.optional(),timeRange:gIe.optional(),topK:hIe.optional(),types:AT.optional()}),wIe=QC([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),JC({include:jT(wIe).optional(),layers:qC($C(kT)).optional(),limit:UC().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:gIe.optional()})})),EIe=o((()=>{})),DIe=o((()=>{YFe(),XFe(),ZFe(),QFe(),eIe(),rIe(),iIe(),aIe(),fIe(),pIe(),TIe(),EIe()})),OIe=o((()=>{})),kIe=o((()=>{})),AIe=o((()=>{kIe()})),jIe=o((()=>{})),MIe=o((()=>{})),NIe=o((()=>{jIe(),MIe()})),PIe,FIe=o((()=>{PIe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(PIe).flatMap(([e,t])=>t.map(t=>[t,e])))})),IIe=o((()=>{})),LIe=o((()=>{bw(),JC({start:UC().finite().nonnegative()}).strict()})),RIe=o((()=>{bw(),JC({preconditions:qC(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:qC(JC({id:H().min(1),name:H().min(1),description:H().optional(),resource:JC({type:QC([`file`,`document`]),id:H().min(1)}).optional(),data:ZC(H(),KC()).optional()})).max(100).optional(),steps:qC(JC({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:qC(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`]})})})),MT,zIe,BIe=o((()=>{bw(),MT=JC({height:UC().finite(),width:UC().finite(),x:UC().finite(),y:UC().finite()}),zIe=JC({commit:H().max(200).optional(),context:ZC(H().max(100),YC([H().max(500),UC(),WC()])).optional(),env:JC({consoleErrors:qC(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:QC([`change`,`comment`]),region:MT.optional(),regionRefs:qC(JC({box:MT,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:JC({x:UC().finite(),y:UC().finite()}),targets:qC(JC({code:JC({chain:qC(JC({file:H().max(500).optional(),line:UC().int().optional(),name:H().max(200)})).max(5),column:UC().int(),file:H().max(500),line:UC().int()}).optional(),label:H().max(200),rect:MT,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:ew(1),viewport:JC({dpr:UC().positive(),height:UC().finite(),width:UC().finite()})}),JC({anchor:zIe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:JC({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`}),JC({note:H().trim().max(2e3).optional(),verdict:QC([`accept`,`send_back`])})})),VIe,NT,PT,FT,HIe,UIe,WIe,GIe,KIe,qIe,JIe,YIe=o((()=>{bw(),BIe(),VIe=[`region`,`element`,`sketch`],NT=UC().finite(),PT=JC({height:NT,width:NT,x:NT,y:NT}),FT=zIe.shape,HIe=ADe(()=>JC({children:qC(HIe).max(50),rect:PT,type:QC([`avatar`,`button`,`card`,`image`,`input`,`text`])})),UIe=JC({commit:FT.commit,context:FT.context,env:FT.env}),WIe=JC({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),GIe=JC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:UIe.optional(),kind:QC(VIe),pageMeta:WIe.optional(),rectDocument:PT,rectViewport:PT,regionRefs:FT.regionRefs,regions:qC(PT).max(6).optional(),routeKey:H().max(500),scroll:JC({x:NT,y:NT}),sketch:qC(HIe).max(50).optional(),targets:FT.targets.optional(),url:H().url().max(2e3),viewport:JC({dpr:UC().positive(),height:NT,width:NT})}),KIe=64*1024,qIe=JC({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),GIe.extend({screenshot:qIe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=KIe,{message:`Mark is too large`}),JC({content:H().trim().min(1).max(4e3).optional(),rectDocument:PT.optional(),rectViewport:PT.optional(),regionRefs:FT.regionRefs,regions:qC(PT).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),JC({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),JIe=[`pass`,`not_fixed`],JC({reason:H().trim().max(2e3).optional(),verdict:QC(JIe)}),JC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),XIe,ZIe,IT,QIe,$Ie,eLe,LT,RT,tLe,nLe,rLe=o((()=>{bw(),XIe=[`journey`,`options`,`references`,`other`],ZIe=[`html`,`image`,`video`,`decision`],IT=H(),QIe=UC().finite(),$Ie=UC().finite().positive(),JC({hash:H().min(1).nullable(),kind:ew(`file`),path:H().min(1)}),eLe=JC({kind:ew(`file`),path:H().min(1)}),LT=H().min(1).optional(),RT=H().min(1),tLe={expected:IT.optional(),groupId:RT.optional(),h:$Ie.optional(),pageId:RT.optional(),recommended:WC().optional(),roundId:RT.optional(),source:eLe.optional(),title:IT,type:QC(ZIe).optional(),w:$Ie.optional(),x:QIe,y:QIe},nLe={desc:IT.optional(),kind:QC(XIe),pageId:RT.optional(),title:IT},XC(`type`,[JC({page:JC({name:IT.min(1)}),ref:LT,type:ew(`addPage`)}),JC({id:RT,patch:JC({name:IT.min(1)}),type:ew(`updatePage`)}),JC({id:RT,type:ew(`removePage`)}),JC({ref:LT,round:JC({batchId:RT.optional(),pageId:RT.optional(),title:IT.min(1)}),type:ew(`addRound`)}),JC({id:RT,patch:JC({title:IT.min(1)}),type:ew(`updateRound`)}),JC({group:JC(nLe),ref:LT,type:ew(`addGroup`)}),JC({id:RT,patch:JC({desc:IT,kind:QC(XIe),title:IT}).partial(),type:ew(`updateGroup`)}),JC({id:RT,type:ew(`removeGroup`)}),JC({board:JC(tLe),ref:LT,type:ew(`addBoard`)}),JC({id:RT,patch:JC({...tLe,groupId:RT.nullable(),roundId:RT.nullable()}).omit({pageId:!0,type:!0}).partial(),type:ew(`updateBoard`)}),JC({id:RT,type:ew(`removeBoard`)}),JC({edge:JC({condition:IT.optional(),from:RT,isDefault:WC().optional(),label:IT.optional(),to:RT}),ref:LT,type:ew(`addEdge`)}),JC({id:RT,type:ew(`removeEdge`)}),JC({boardId:RT,expected:IT,type:ew(`setCheck`)})])})),zT,BT,iLe,aLe,oLe=o((()=>{bw(),zT={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},BT=H().min(1).max(zT.maxPathLength+2),iLe=YC([JC({content:H(),path:BT}).strict(),JC({fileRef:H().min(1),path:BT}).strict(),JC({base64:H().min(1),path:BT}).strict(),JC({path:BT,uploaded:ew(!0)}).strict(),JC({fromCanvas:JC({canvasId:H().min(1),version:UC().int().positive().optional()}).strict(),path:BT}).strict()]),qC(JC({path:BT,size:UC().int().nonnegative()}).strict()).min(1).max(zT.maxFiles),aLe=JC({newText:H(),oldText:H().min(1),path:BT}).strict(),JC({deletes:qC(BT).max(zT.maxFiles).optional(),edits:qC(aLe).max(200).optional(),writes:qC(iLe).max(zT.maxFiles).optional()}).strict()})),sLe=o((()=>{})),cLe=o((()=>{})),lLe=o((()=>{})),uLe=o((()=>{})),dLe,fLe,pLe,mLe,hLe,gLe,_Le,vLe,yLe,bLe=o((()=>{bw(),dLe=[`new`,`reuse`],fLe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,pLe=JC({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),mLe=JC({arguments:ZC(H(),KC()),delivery:pLe.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),hLe=JC({cursor:H().nullable().optional(),deliveryStatus:JC({active:WC().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:UC().nonnegative().optional(),throttled:WC().optional()}).optional(),refreshBefore:COe({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:WC().optional()}).strict(),gLe=JC({scheme:ew(`standard_webhooks`)}).strict(),_Le=JC({autoApprove:WC(),delivery:pLe.optional(),identifier:H().regex(fLe).optional(),topicMode:QC(dLe),topicId:H().min(1).optional()}).strict(),vLe=JC({}).strict(),yLe=JC({scheme:ew(`bearer_token`)}).strict(),XC(`kind`,[JC({kind:ew(`mcp_events`),config:mLe,state:hLe,verification:gLe}),JC({kind:ew(`generic`),config:_Le,state:vLe,verification:yLe})])})),xLe=o((()=>{})),SLe=o((()=>{})),CLe=o((()=>{})),wLe=o((()=>{})),TLe=o((()=>{})),ELe=o((()=>{})),DLe=o((()=>{})),OLe=o((()=>{ELe(),DLe()})),kLe=o((()=>{})),ALe=o((()=>{})),jLe=o((()=>{})),MLe=o((()=>{aAe(),sAe(),cAe(),lAe(),hAe(),_Ae(),xAe(),SAe(),CAe(),TAe(),EAe(),DAe(),hMe(),gMe(),_Me(),vMe(),yMe(),bMe(),xMe(),CMe(),TMe(),EMe(),DMe(),OMe(),kMe(),AMe(),jMe(),Qw(),MMe(),NMe(),PMe(),UMe(),qMe(),JMe(),YMe(),jAe(),XMe(),pNe(),mNe(),hNe(),gNe(),vNe(),TNe(),ENe(),RNe(),zNe(),BNe(),VNe(),HNe(),ZNe(),QNe(),$Ne(),ePe(),tPe(),aPe(),oPe(),sPe(),cPe(),lPe(),dPe(),fPe(),pPe(),mPe(),EPe(),DPe(),OPe(),kPe(),NPe(),PPe(),FPe(),IPe(),LPe(),RPe(),zPe(),vPe(),BPe(),VPe(),GPe(),JPe(),XPe(),ZPe(),rFe(),Yje(),bFe(),xFe(),SFe(),cMe(),JFe(),DIe(),OIe(),AIe(),NIe(),FIe(),IIe(),LIe(),RIe(),BIe(),YIe(),IAe(),rLe(),oLe(),sLe(),cLe(),lLe(),uLe(),eT(),bLe(),xLe(),SLe(),CLe(),wLe(),TLe(),OLe(),cMe(),DIe(),kLe(),ALe(),jLe()})),NLe=o((()=>{})),PLe,VT,FLe=o((()=>{PLe=[`*`,`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`,`mcp:read`,`mcp:write`,`usage:read`,`workspace:read`,`workspace:write`,`user:read`,`user:write`],new Set(PLe),VT=(e,t)=>({read:e,write:t}),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,null),VT(`knowledge:read`,`knowledge:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,null),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`model:read`,`model:write`),VT(`model:read`,`model:write`),VT(`chat:read`,null),VT(`chat:read`,`chat:write`),VT(`knowledge:read`,`knowledge:write`),VT(`model:read`,`model:write`),VT(`agent:read`,null),VT(`knowledge:read`,`knowledge:write`),VT(`knowledge:read`,`knowledge:write`),VT(`knowledge:read`,`knowledge:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`user:read`,`user:write`),VT(`file:read`,`file:write`),VT(`file:read`,`file:write`),VT(`chat:read`,`chat:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`chat:read`,`chat:write`),VT(`knowledge:read`,`knowledge:write`),VT(`knowledge:read`,`knowledge:write`),VT(`agent:read`,`agent:write`),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`agent:read`,`agent:write`),VT(`knowledge:read`,`knowledge:write`),VT(`user:read`,`user:write`),VT(`chat:read`,`chat:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`chat:read`,null),VT(`chat:read`,null),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`file:read`,`file:write`),VT(`usage:read`,null),VT(`user:read`,`user:write`),VT(`user:read`,`user:write`),VT(`user:read`,`user:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,null),VT(`agent:read`,`agent:write`),VT(`workspace:read`,`workspace:write`),VT(`workspace:read`,null),VT(`workspace:read`,null),VT(`workspace:read`,`workspace:write`)})),HT,ILe=o((()=>{HT=1024*1024,10*HT,10*HT,10*HT,10*HT,50*HT,50*HT,20*HT,5*HT,20*HT,2*HT,100*HT})),LLe=o((()=>{}));function RLe(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=VLe.test(e[0]);zLe.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(BLe,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(BLe,`$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 UT(...e){return RLe(Array.from(Array.isArray(e[0])?e[0]:e))}var zLe,BLe,VLe,HLe=o((()=>{zLe=RegExp(`^[^/:\\d][^/:]*:/*$`),BLe=RegExp(`^([^/:\\d][^/:]*):/*`),VLe=/^[^/:]+:\d+(?:[/?#]|$)/})),ULe,WT,WLe,GLe,GT,KT,KLe,qLe,JLe,YLe,XLe,ZLe,QLe=o((()=>{HLe(),ULe=`https://app.lobehub.com`,WT=`https://lobehub.com`,WLe=WT,GLe=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},GT=`https://github.com/lobehub/lobehub`,UT(GT,`issues/new/choose`),KT=UT(WT,`/docs`),KLe=UT(KT,`/usage`),qLe=UT(KT,`/self-hosting`),UT(qLe,`/server-database`),`${KT}`,UT(KLe,`/plugins/development`),UT(qLe,`/advanced/upstream-sync`),UT(WT,`blog`),UT(GT,`issues/new/choose`),UT(WT,`/privacy`),UT(WT,`/terms`),JLe=`https://github.com/lobehub/lobe-chat-agents`,UT(JLe,`issues/new`),YLe=(e,t)=>`/agent/${e}`,XLe=(e,t,n)=>UT(`/agent`,e,t),ZLe=(e,t)=>UT(`/group`,e,t),UT(GT,`releases`),UT(WT,`changelog`),UT(WT,`/downloads`),UT(WT,`/mobile`)})),$Le=o((()=>{QLe()})),eRe=o((()=>{$Le()})),tRe=o((()=>{})),nRe,qT,rRe,iRe,aRe=o((()=>{nRe=e=>e.join(`+`),qT={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},rRe=[{electronAccelerator:`Alt+Shift+Space`,id:qT.QuickComposer,uiKeys:nRe([`alt`,`shift`,`space`])},{electronAccelerator:``,id:qT.QuickChat,uiKeys:``},{electronAccelerator:``,id:qT.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:qT.OpenSettings,nonEditable:!0,uiKeys:nRe([`mod`,`comma`])}],iRe=rRe.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),rRe.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),oRe=o((()=>{aRe(),iRe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),sRe,cRe,lRe,uRe=o((()=>{Xw(),sRe={},cRe=Uw,lRe=`/avatars/lobe-ai.png`})),JT=o((()=>{Xw()})),dRe,fRe,pRe,mRe,hRe=o((()=>{Xw(),uRe(),JT(),dRe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},fRe={model:Kw,provider:qw},pRe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:fRe,searchMode:`auto`,selfIteration:{enabled:!1}},mRe={chatConfig:pRe,model:Kw,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:qw,systemRole:``,tts:dRe}})),gRe=o((()=>{})),_Re=o((()=>{})),vRe,yRe,bRe,xRe,SRe,CRe,wRe,TRe,ERe,DRe,ORe,kRe,ARe,jRe,MRe,NRe,PRe,FRe=o((()=>{vRe=`@lobehub/lobehub`,yRe=`2.3.4`,bRe=`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.`,xRe=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],SRe=`https://github.com/lobehub/lobehub`,CRe={url:`https://github.com/lobehub/lobehub/issues/new/choose`},wRe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},TRe=`LobeHub <i@lobehub.com>`,ERe=[`./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`],DRe=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],ORe={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`},kRe={"@types/react":`19.2.13`,"baseline-browser-mapping":`2.10.31`,"better-auth":`1.6.33`,"drizzle-orm":`^0.45.2`,"fast-xml-parser":`5.4.2`,lexical:`0.42.0`,"pdfjs-dist":`5.4.530`,"stylelint-config-clean-order":`7.0.0`},ARe=JSON.parse(`{"@aiden0z/pptx-renderer":"^1.2.4","@anthropic-ai/sdk":"^0.73.0","@atlaskit/pragmatic-drag-and-drop":"^1.8.1","@atlaskit/pragmatic-drag-and-drop-hitbox":"^1.2.0","@aws-sdk/client-bedrock-runtime":"^3.1107.0","@aws-sdk/client-s3":"~3.932.0","@aws-sdk/s3-request-presigner":"~3.932.0","@azure-rest/ai-inference":"1.0.0-beta.5","@azure/core-auth":"^1.11.0","@better-auth/expo":"1.6.33","@better-auth/passkey":"1.6.33","@cfworker/json-schema":"^4.1.1","@chat-adapter/discord":"~4.38.0","@chat-adapter/slack":"~4.38.0","@chat-adapter/state-ioredis":"~4.38.0","@chat-adapter/telegram":"~4.38.0","@codemirror/streamparser":"^6.0.0","@codesandbox/sandpack-react":"^2.20.0","@composio/core":"^0.10.0","@discordjs/rest":"^2.6.3","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emoji-mart/data":"^1.2.1","@emoji-mart/react":"^1.1.1","@emotion/react":"^11.14.0","@fal-ai/client":"^1.10.1","@floating-ui/react":"^0.27.20","@formkit/auto-animate":"^0.9.0","@google/genai":"^2.24.0","@henrygd/queue":"^1.2.0","@huggingface/inference":"^4.13.25","@icons-pack/react-simple-icons":"^13.15.1","@khmyznikov/pwa-install":"0.3.9","@larksuiteoapi/node-sdk":"^1.73.0","@lexical/list":"0.42.0","@lexical/rich-text":"0.42.0","@lexical/utils":"^0.42.0","@lobechat/agent-address-linq":"workspace:*","@lobechat/agent-address-mail":"workspace:*","@lobechat/agent-gateway-client":"workspace:*","@lobechat/agent-mock":"workspace:*","@lobechat/agent-runtime":"workspace:*","@lobechat/agent-signal":"workspace:*","@lobechat/agent-templates":"workspace:*","@lobechat/artifact-template":"workspace:*","@lobechat/builtin-agents":"workspace:*","@lobechat/builtin-skills":"workspace:*","@lobechat/builtin-tool-acceptance-evidence":"workspace:*","@lobechat/builtin-tool-activator":"workspace:*","@lobechat/builtin-tool-agent-account":"workspace:*","@lobechat/builtin-tool-agent-builder":"workspace:*","@lobechat/builtin-tool-agent-documents":"workspace:*","@lobechat/builtin-tool-agent-management":"workspace:*","@lobechat/builtin-tool-agent-signal":"workspace:*","@lobechat/builtin-tool-artboard":"workspace:*","@lobechat/builtin-tool-attachments":"workspace:*","@lobechat/builtin-tool-auv":"workspace:*","@lobechat/builtin-tool-brief":"workspace:*","@lobechat/builtin-tool-browser":"workspace:*","@lobechat/builtin-tool-calculator":"workspace:*","@lobechat/builtin-tool-canvas":"workspace:*","@lobechat/builtin-tool-channel":"workspace:*","@lobechat/builtin-tool-claude-code":"workspace:*","@lobechat/builtin-tool-cloud-sandbox":"workspace:*","@lobechat/builtin-tool-creds":"workspace:*","@lobechat/builtin-tool-dashboard":"workspace:*","@lobechat/builtin-tool-goal":"workspace:*","@lobechat/builtin-tool-group-agent-builder":"workspace:*","@lobechat/builtin-tool-group-management":"workspace:*","@lobechat/builtin-tool-image-generation":"workspace:*","@lobechat/builtin-tool-knowledge-base":"workspace:*","@lobechat/builtin-tool-lobe-agent":"workspace:*","@lobechat/builtin-tool-local-system":"workspace:*","@lobechat/builtin-tool-mcp-events":"workspace:*","@lobechat/builtin-tool-memory":"workspace:*","@lobechat/builtin-tool-message":"workspace:*","@lobechat/builtin-tool-notebook":"workspace:*","@lobechat/builtin-tool-page-agent":"workspace:*","@lobechat/builtin-tool-remote-device":"workspace:*","@lobechat/builtin-tool-self-iteration":"workspace:*","@lobechat/builtin-tool-skill-maintainer":"workspace:*","@lobechat/builtin-tool-skill-store":"workspace:*","@lobechat/builtin-tool-skills":"workspace:*","@lobechat/builtin-tool-task":"workspace:*","@lobechat/builtin-tool-user-interaction":"workspace:*","@lobechat/builtin-tool-verify":"workspace:*","@lobechat/builtin-tool-video-generation":"workspace:*","@lobechat/builtin-tool-web-browsing":"workspace:*","@lobechat/builtin-tool-web-onboarding":"workspace:*","@lobechat/builtin-tool-webhook":"workspace:*","@lobechat/builtin-tool-work":"workspace:*","@lobechat/builtin-tools":"workspace:*","@lobechat/business-config":"workspace:*","@lobechat/business-const":"workspace:*","@lobechat/business-knowledge":"workspace:*","@lobechat/business-model-bank":"workspace:*","@lobechat/business-model-runtime":"workspace:*","@lobechat/canvas":"workspace:*","@lobechat/chat-adapter-dingtalk":"workspace:*","@lobechat/chat-adapter-feishu":"workspace:*","@lobechat/chat-adapter-imessage":"workspace:*","@lobechat/chat-adapter-line":"workspace:*","@lobechat/chat-adapter-qq":"workspace:*","@lobechat/chat-adapter-wechat":"workspace:*","@lobechat/chat-adapter-wecom":"workspace:*","@lobechat/config":"workspace:*","@lobechat/connector-data":"workspace:*","@lobechat/const":"workspace:*","@lobechat/context-engine":"workspace:*","@lobechat/conversation-flow":"workspace:*","@lobechat/database":"workspace:*","@lobechat/desktop-bridge":"workspace:*","@lobechat/device-control":"workspace:*","@lobechat/device-gateway-client":"workspace:*","@lobechat/edge-config":"workspace:*","@lobechat/editor-runtime":"workspace:*","@lobechat/electron-client-ipc":"workspace:*","@lobechat/electron-server-ipc":"workspace:*","@lobechat/env":"workspace:*","@lobechat/eval-dataset-parser":"workspace:*","@lobechat/eval-rubric":"workspace:*","@lobechat/fetch-sse":"workspace:*","@lobechat/file-loaders":"workspace:*","@lobechat/heterogeneous-agents":"workspace:*","@lobechat/html-artifact":"workspace:*","@lobechat/llm-generation-tracing":"workspace:*","@lobechat/local-file-shell":"workspace:*","@lobechat/markdown-patch":"workspace:*","@lobechat/mecha":"workspace:*","@lobechat/memory-user-memory":"workspace:*","@lobechat/model-runtime":"workspace:*","@lobechat/observability-otel":"workspace:*","@lobechat/openapi":"workspace:*","@lobechat/prompts":"workspace:*","@lobechat/python-interpreter":"workspace:*","@lobechat/shared-tool-ui":"workspace:*","@lobechat/ssrf-safe-fetch":"workspace:*","@lobechat/tool-runtime":"workspace:*","@lobechat/tool-view-model":"workspace:*","@lobechat/utils":"workspace:*","@lobechat/web-crawler":"workspace:*","@lobechat/widget-spec":"workspace:*","@lobehub/analytics":"^1.6.4","@lobehub/charts":"^6.0.0","@lobehub/desktop-ipc-typings":"workspace:*","@lobehub/editor":"7.2.1","@lobehub/icons":"^6.15.2","@lobehub/market-sdk":"0.46.0","@lobehub/tts":"^6.1.0","@lobehub/ui":"^6.18.0","@modelcontextprotocol/client":"~2.4.0","@modelcontextprotocol/ext-apps":"^2.0.3","@neondatabase/serverless":"^1.1.0","@next/third-parties":"^16.3.0","@opentelemetry/auto-instrumentations-node":"^0.76.0","@opentelemetry/exporter-jaeger":"^2.10.0","@opentelemetry/resources":"^2.10.0","@opentelemetry/sdk-metrics":"^2.10.0","@opentelemetry/winston-transport":"^0.28.0","@pierre/trees":"1.0.0-beta.3","@react-pdf/renderer":"4.3.2","@react-three/drei":"^10.7.8","@react-three/fiber":"^9.7.0","@saintno/comfyui-sdk":"^0.2.53","@stylexjs/stylex":"0.19.1","@t3-oss/env-core":"^0.13.11","@t3-oss/env-nextjs":"^0.13.11","@tanstack/react-query":"^5.101.4","@trpc/client":"^11.18.0","@trpc/next":"^11.18.0","@trpc/react-query":"^11.18.0","@trpc/server":"^11.18.0","@upstash/qstash":"2.12.0","@upstash/workflow":"^0.2.23","@vercel/analytics":"^1.6.1","@vercel/edge-config":"^1.5.1","@vercel/functions":"^3.9.2","@vercel/speed-insights":"^1.3.1","@virtuoso.dev/masonry":"^1.4.3","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/addon-webgl":"^0.18.0","@xterm/xterm":"^5.5.0","@xyflow/react":"^12.11.5","@zumer/snapdom":"^2.24.10","ahooks":"^3.9.7","async-retry":"^1.3.3","bcryptjs":"^3.0.3","better-auth":"1.6.33","brotli-wasm":"^3.0.1","buffer.js":"npm:buffer@^6.0.3","chat":"~4.38.0","chroma-js":"^3.3.0","class-variance-authority":"^0.7.1","cmdk":"^1.1.1","cookie":"^1.1.1","countries-and-timezones":"^3.10.0","d3-dsv":"^3.0.1","dayjs":"^1.11.21","debug":"^4.4.3","diff":"^8.0.4","discord-api-types":"^0.38.53","docx-preview":"^0.4.0","drizzle-orm":"^0.45.2","drizzle-zod":"^0.8.3","entities":"^8.1.0","epub2":"^3.0.2","es-toolkit":"^1.50.0","exceljs":"^4.4.0","expo-server-sdk":"^6.1.0","fast-deep-equal":"^3.1.3","fflate":"^0.8.3","ffmpeg-static":"^5.3.0","file-type":"^21.3.4","fuse.js":"^7.5.0","gray-matter":"^4.0.3","hono":"^4.13.1","html-to-text":"^9.0.5","i18next":"^25.10.10","i18next-browser-languagedetector":"^8.2.1","i18next-resources-to-backend":"^1.2.3","immer":"^11.1.16","ioredis":"^5.11.1","jose":"^6.2.8","js-sha256":"^0.11.1","jsondiffpatch":"^0.7.6","jsonl-parse-stringify":"^1.0.3","keygrip":"^1.1.0","langfuse":"^3.38.20","langfuse-core":"^3.38.20","lexical":"0.42.0","local-replica":"^0.1.1","lucide-react":"^1.31.0","mammoth":"^1.12.1","marked":"^17.0.6","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"}`),jRe={"@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`},MRe=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,NRe={access:`public`,registry:`https://registry.npmjs.org`},PRe={name:vRe,version:yRe,description:bRe,keywords:xRe,homepage:SRe,bugs:CRe,repository:wRe,license:`MIT`,author:TRe,sideEffects:ERe,workspaces:DRe,scripts:ORe,"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:kRe,dependencies:ARe,devDependencies:jRe,packageManager:MRe,publishConfig:NRe}})),YT,XT,ZT=o((()=>{Xw(),FRe(),YT=PRe.version,XT=Hw!==`LobeHub`})),QT,$T,eE,tE,nE,IRe,LRe=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`},IRe=[{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]}]})),RRe=o((()=>{LRe(),IRe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),zRe=o((()=>{})),BRe=o((()=>{Xw(),JT()})),VRe=o((()=>{})),HRe=o((()=>{})),URe,rE,WRe=o((()=>{Xw(),BRe(),JT(),URe={model:Kw,provider:qw},rE={model:Jw,provider:Yw},rE.model,rE.provider,rE.model,rE.provider,rE.model,rE.provider,{...URe},Reflect.get(Uke,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(Uke,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),GRe=o((()=>{})),KRe=o((()=>{})),iE=o((()=>{hRe(),gRe(),_Re(),RRe(),zRe(),BRe(),JT(),VRe(),HRe(),WRe(),GRe(),KRe()})),qRe=o((()=>{iE(),new Date().toISOString()})),JRe=o((()=>{})),YRe=o((()=>{Object.freeze([])})),XRe=o((()=>{})),ZRe,QRe,$Re,eze=o((()=>{ZRe=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],QRe=2*1024*1024*1024-1,`${QRe}`,$Re=64*1024*1024,`${$Re}`,[...ZRe]})),tze,nze=o((()=>{Xw(),`${Hw}`,tze=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(tze)})),rze,ize=o((()=>{rze=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(rze)})),aze=o((()=>{})),oze=o((()=>{})),sze=o((()=>{})),cze=o((()=>{})),lze=o((()=>{})),uze=o((()=>{})),dze,fze=o((()=>{uc(),dze=(e,t)=>fs({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),pze,mze,hze=o((()=>{uRe(),iE(),fze(),pze=`agent`,mze={config:mRe,createdAt:new Date,id:``,meta:sRe,model:mRe.model,type:pze,updatedAt:new Date},dze(mze,{id:`inbox`,meta:{avatar:lRe}})})),gze=o((()=>{})),_ze=o((()=>{})),vze=o((()=>{})),yze=o((()=>{})),bze=o((()=>{})),xze=o((()=>{})),Sze=o((()=>{})),Cze=o((()=>{})),wze,Tze,Eze=o((()=>{Xw(),iE(),wze={activities:3,contexts:0,experiences:0,preferences:3},Tze={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...wze}},Tze.high.contexts})),Dze=o((()=>{})),Oze=o((()=>{})),aE=o((()=>{cxe(),uxe(),dxe(),vxe(),NLe(),FLe(),ILe(),LLe(),eRe(),tRe(),oRe(),aRe(),qRe(),JRe(),YRe(),XRe(),eze(),nze(),ize(),aze(),oze(),$Le(),sze(),uRe(),cze(),lze(),uze(),hze(),iE(),gze(),_ze(),vze(),yze(),bze(),xze(),Sze(),QLe(),Cze(),Eze(),ZT(),Dze(),Oze()}));aE();var oE=[[`LobeHub Cloud`,Vw,`LobeHub Cloud`],[`LobeHub`,Hw,`LobeHub`],[`LobeChat`,Hw,`LobeHub`],[`Lobe AI`,cRe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),kze=new Map(oE),Aze=`Lobe`,jze=oE.length?RegExp(`(?<!@)(${oE.map(([e])=>e).join(`|`)})`,`g`):void 0,Mze=oE.length>0,Nze=`brandStrings`,Pze=e=>!jze||!e.includes(Aze)?e:e.replaceAll(jze,e=>kze.get(e)??e),Fze={name:Nze,process:e=>typeof e==`string`?Pze(e):e,type:`postProcessor`},Ize=Mze?{postProcess:[Nze]}:{},Lze=e=>Mze?e.use(Fze):e,Rze=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},zze=c({default:()=>Bze}),Bze,Vze=o((()=>{Bze={"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 gEe(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;gEe(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 _Ee(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function pC(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!hC.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]??_Ee(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}Mx(n,r,e.length===1?e[0]:pC(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=_Ee(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 vEe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of hC)if(t in e)return;let n=t.filter(e=>gC.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=pC(t);else{let e=n[0],i=gC.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=>pC([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,uC(e,r))}function yEe(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)):uC(i,s),uC(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())gEe(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)??[])vEe(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)}uC(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,Mx(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:_C(t,`input`,e.processors),output:_C(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function mC(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 mC(r.element,n);if(r.type===`set`)return mC(r.valueType,n);if(r.type===`lazy`)return mC(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 mC(r.innerType,n);if(r.type===`intersection`)return mC(r.left,n)||mC(r.right,n);if(r.type===`record`||r.type===`map`)return mC(r.keyType,n)||mC(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:mC(r.in,n)||mC(r.out,n);if(r.type===`object`){for(let e in r.shape)if(mC(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(mC(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(mC(e,n))return!0;return!!(r.rest&&mC(r.rest,n))}return!1}var hC,gC,bEe,_C,vC=o((()=>{aC(),iS(),hC=new Set([`type`,`properties`,`required`,`additionalProperties`]),gC=[`oneOf`,`anyOf`],bEe=(e,t={})=>n=>{let r=pEe({...n,processors:t});return fC(e,r),hEe(r,e),yEe(r,e)},_C=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=pEe({...i??{},target:a,io:t,processors:n});return fC(e,o),hEe(o,e),yEe(o,e)}}));function yC(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)CEe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&SC(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&SC(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&CC(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&CC(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&TC(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&DC(t,i.mime);for(let e of i.patterns??[])EC(t,e);return t}function bC(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?bC(t.out):t.type===`catch`?bC(t.innerType):e._zod.optin}function xC(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=xC(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=>xC(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`)?wS:nCe).source),p):p}function xEe(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 NC.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=xC(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 SEe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(dC(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),PC):JSON.parse(o)}var SC,CC,wC,TC,EC,DC,OC,kC,AC,jC,CEe,wEe,TEe,MC,EEe,DEe,OEe,kEe,AEe,jEe,MEe,NEe,PEe,FEe,IEe,LEe,REe,zEe,BEe,VEe,HEe,NC,UEe,WEe,GEe,PC,KEe,qEe,JEe,YEe,XEe,FC,ZEe,IC=o((()=>{TS(),KS(),vC(),iS(),SC=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},CC=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},wC=(e,t)=>{SC(e,`minimum`,t),CC(e,`maximum`,t)},TC=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},EC=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},DC=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},OC=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},kC=(e,t)=>SC(e,`minimum`,t.minimum),AC=(e,t)=>CC(e,`maximum`,t.maximum),jC=e=>(t,n)=>{OC(t,n.format);let[r,i]=e[n.format];SC(t,`minimum`,r),CC(t,`maximum`,i)},CEe={greater_than:(e,t)=>SC(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>CC(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>TC(e,t.value),number_format:jC(tS),bigint_format:jC(nSe),min_length:kC,max_length:AC,length_equals:(e,t)=>wC(e,t.length),min_size:kC,max_size:AC,size_equals:(e,t)=>wC(e,t.size),string_format:(e,t)=>{OC(e,t.format),t.pattern&&EC(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)=>DC(e,t.mime)},wEe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},TEe=new Map([[BS,XSe],[VS,ZSe]]),MC=e=>TEe.get(e)??e,EEe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=yC(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=wEe[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(MC);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}))])}},DEe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=yC(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)):dC(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}))])}},OEe=(e,t,n,r)=>{n.type=`boolean`},kEe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},AEe=(e,t,n,r)=>{dC(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},jEe=(e,t,n,r)=>{n.not={}},MEe=(e,t,n,r)=>{},NEe=(e,t,n,r)=>{},PEe=(e,t,n,r)=>{dC(e,t,n,r,`Date cannot be represented in JSON Schema`)},FEe=(e,t,n,r)=>{let i=e._zod.def,a=Ox(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},IEe=(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(dC(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(dC(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},LEe=(e,t,n,r)=>{dC(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},REe=(e,t,n,r)=>{dC(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},zEe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=yC(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=fC(a.element,t,{...r,path:[...r.path,`items`]})},BEe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&dC(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Mx(i.properties,e,fC(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`?bC(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=fC(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},VEe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>fC(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},HEe=(e,t,n,r)=>{let i=e._zod.def,a=fC(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=fC(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)},NC=new WeakMap,UEe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=yC(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=fC(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Mx(i.patternProperties,MC(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=fC(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=NC.get(t);n||(n=[],NC.set(t,n),t.deferred.push(()=>xEe(t))),n.push(e)}i.additionalProperties=fC(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&bC(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))}},WEe=(e,t,n,r)=>{let i=e._zod.def,a=fC(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`}]},GEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},PC=Symbol(),KEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=SEe(i.defaultValue,e,t,n,r);o!==PC&&(n.default=o)},qEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=SEe(i.defaultValue,e,t,n,r);o!==PC&&(n._prefault=o)},JEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{dC(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},YEe=(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;fC(o,t,r);let s=t.seen.get(e);s.ref=o},XEe=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},FC=(e,t,n,r)=>{let i=e._zod.def;fC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ZEe=(e,t,n,r)=>{let i=e._zod.innerType;fC(i,t,r);let a=t.seen.get(e);a.ref=i}})),LC=o((()=>{fS(),ASe(),hSe(),KS(),tTe(),MS(),CCe(),iS(),TS(),rC(),aC(),xCe(),sTe(),fEe(),vC(),IC(),vC()})),RC=o((()=>{LC()}));function zC(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 BC,QEe,VC,$Ee=o((()=>{LC(),iS(),BC=new WeakSet([Object.prototype,Error.prototype]),QEe=(e,t)=>{mSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);BC.has(n)||(BC.add(n),zC(n,`format`,e=>t=>fSe(e,t)),zC(n,`flatten`,e=>t=>dSe(e,t)),zC(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,kx,2)}),zC(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,kx,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},VC=aS(`ZodError`,QEe,void 0,{Parent:Error})})),eDe,tDe,nDe,rDe,iDe,aDe,oDe,sDe,cDe,lDe,uDe,dDe,fDe=o((()=>{LC(),$Ee(),eDe=_S(VC),tDe=vS(VC),nDe=yS(VC),rDe=bS(VC),iDe=SSe(VC),aDe=CSe(VC),oDe=wSe(VC),sDe=TSe(VC),cDe=ESe(VC),lDe=DSe(VC),uDe=OSe(VC),dDe=kSe(VC)}));function pDe(){dS.localeError||oS(nTe())}function HC(){dS.memoizer||oS({memoizer:Zwe()})}function H(e){return lTe(NDe,e)}function UC(e){return ITe(cw,e)}function mDe(e){return LTe(tOe,e)}function WC(e){return RTe(nOe,e)}function hDe(e){return zTe(rOe,e)}function gDe(e){return BTe(iOe,e)}function GC(){return VTe(aOe)}function KC(){return HTe(oOe)}function _De(e){return UTe(sOe,e)}function qC(e,t){return sEe(lOe,e,t)}function JC(e,t){return new lw({type:`object`,shape:e??{},...Vx(t)})}function vDe(e,t){return new lw({type:`object`,shape:e,catchall:_De(),...Vx(t)})}function YC(e,t){return new uw({type:`union`,options:e,...Vx(t)})}function XC(e,t,n){return new uOe({type:`union`,options:t,discriminator:e,...Vx(n)})}function yDe(e,t){return new dOe({type:`intersection`,left:e,right:t})}function ZC(e,t,n){return!t||!t._zod?new dw({type:`record`,keyType:H(),valueType:e,...Vx(t)}):new dw({type:`record`,keyType:e,valueType:t,...Vx(n)})}function QC(e,t){return new fw({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Vx(t)})}function $C(e,t){return new fw({type:`enum`,entries:e,...Vx(t)})}function ew(e,t){return new fOe({type:`literal`,values:Array.isArray(e)?e:[e],...Vx(t)})}function bDe(e){return new pOe({type:`transform`,transform:e})}function xDe(e){return new pw({type:`optional`,innerType:e})}function SDe(e){return new mw({type:`optional`,innerType:e})}function CDe(e){return new mOe({type:`nullable`,innerType:e})}function wDe(e,t){return new hOe({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Nxe(t)}})}function TDe(e,t){return new gOe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Nxe(t)}})}function EDe(e,t){return new hw({type:`nonoptional`,innerType:e,...Vx(t)})}function DDe(e,t){return new _Oe({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Qxe(t)})}function ODe(e,t){return new gw({type:`pipe`,in:e,out:t})}function kDe(e){return new yOe({type:`readonly`,innerType:e})}function ADe(e){return new bOe({type:`lazy`,getter:e})}function tw(e,t){return cEe(_w,e??(()=>!0),t)}function jDe(e,t={}){return lEe(_w,e,t)}function MDe(e,t){return uEe(e,t)}function nw(e,t){return new vOe({type:`pipe`,in:bDe(e),out:t})}var rw,iw,NDe,aw,ow,PDe,FDe,IDe,LDe,RDe,sw,zDe,BDe,VDe,HDe,UDe,WDe,GDe,KDe,qDe,JDe,YDe,XDe,ZDe,QDe,$De,eOe,cw,tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,lw,uw,uOe,dOe,dw,fw,fOe,pOe,pw,mw,mOe,hOe,gOe,hw,_Oe,gw,vOe,yOe,bOe,_w,vw=o((()=>{LC(),IC(),vC(),rC(),RC(),fDe(),rw=aS(`ZodType`,(e,t)=>(pDe(),IS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Ix(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 Bx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(jDe(e,t))},superRefine(e,t){return this.check(MDe(e,t))},overwrite(e){return this.check(lC(e))},optional(){return xDe(this)},exactOptional(){return SDe(this)},nullable(){return CDe(this)},nullish(){return xDe(CDe(this))},nonoptional(e){return EDe(this,e)},array(){return qC(this)},or(e){return YC([this,e])},and(e){return yDe(this,e)},transform(e){return ODe(this,bDe(e))},default(e){return wDe(this,e)},prefault(e){return TDe(this,e)},catch(e){return DDe(this,e)},pipe(e){return ODe(this,e)},readonly(){return kDe(this)},describe(e){let t=this.clone();return iC.add(t,{description:e}),t},meta(...e){if(e.length===0)return iC.get(this);let t=this.clone();return iC.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 Jxe(this,`~standard`,{...TCe(this),jsonSchema:{input:_C(this,`input`),output:_C(this,`output`)}})},set"~standard"(e){Xx(this,`~standard`,e)},parse:function e(t,n){return eDe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await tDe(this,t,n,{callee:e})},safeParse(e,t){return nDe(this,e,t)},async safeParseAsync(e,t){return rDe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Xx(this,`spa`,e)},validate(e,t){return bSe(this,e,t)},validateAsync(e,t){return xSe(this,e,t)},encode:function e(t,n){return iDe(this,t,n,{callee:e})},decode:function e(t,n){return aDe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await oDe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await sDe(this,t,n,{callee:e})},safeEncode(e,t){return cDe(this,e,t)},safeDecode(e,t){return lDe(this,e,t)},async safeEncodeAsync(e,t){return uDe(this,e,t)},async safeDecodeAsync(e,t){return dDe(this,e,t)},toJSONSchema(e){return bEe(this,{})(e)},get description(){return iC.get(this)?.description},get _def(){return this._zod.def}}),iw=aS(`_ZodString`,(e,t)=>{RS.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>EEe(e,t,n,r)},Zx({format:e=>yC(e).format??null,minLength:e=>yC(e).minimum??null,maxLength:e=>yC(e).maximum??null},{regex(...e){return this.check(XTe(...e))},includes(...e){return this.check($Te(...e))},startsWith(...e){return this.check(eEe(...e))},endsWith(...e){return this.check(tEe(...e))},min(...e){return this.check(cC(...e))},max(...e){return this.check(JTe(...e))},length(...e){return this.check(YTe(...e))},nonempty(...e){return this.check(cC(1,...e))},lowercase(e){return this.check(ZTe(e))},uppercase(e){return this.check(QTe(e))},trim(){return this.check(rEe())},normalize(...e){return this.check(nEe(...e))},toLowerCase(){return this.check(iEe())},toUpperCase(){return this.check(aEe())},slugify(){return this.check(oEe())}})),NDe=aS(`ZodString`,(e,t)=>{RS.init(e,t),iw.init(e,t)},{email(e){return this.check(uTe(LDe,e))},url(e){return this.check(gTe(zDe,e))},jwt(e){return this.check(jTe(eOe,e))},emoji(e){return this.check(_Te(BDe,e))},guid(e){return this.check(dTe(RDe,e))},uuid(e){return this.check(fTe(sw,e))},uuidv4(e){return this.check(pTe(sw,e))},uuidv6(e){return this.check(mTe(sw,e))},uuidv7(e){return this.check(hTe(sw,e))},nanoid(e){return this.check(vTe(VDe,e))},cuid(e){return this.check(yTe(HDe,e))},cuid2(e){return this.check(bTe(UDe,e))},ulid(e){return this.check(xTe(WDe,e))},base64(e){return this.check(OTe(ZDe,e))},base64url(e){return this.check(kTe(QDe,e))},xid(e){return this.check(STe(GDe,e))},ksuid(e){return this.check(CTe(KDe,e))},ipv4(e){return this.check(wTe(qDe,e))},ipv6(e){return this.check(TTe(JDe,e))},cidrv4(e){return this.check(ETe(YDe,e))},cidrv6(e){return this.check(DTe(XDe,e))},e164(e){return this.check(ATe($De,e))},datetime(e){return this.check(MTe(ow,e))},date(e){return this.check(NTe(PDe,e))},time(e){return this.check(PTe(FDe,e))},duration(e){return this.check(FTe(IDe,e))}}),aw=aS(`ZodStringFormat`,(e,t)=>{zS.init(e,t),iw.init(e,t)}),ow=aS(`ZodISODateTime`,(e,t)=>{swe.init(e,t),aw.init(e,t)}),PDe=aS(`ZodISODate`,(e,t)=>{cwe.init(e,t),aw.init(e,t)}),FDe=aS(`ZodISOTime`,(e,t)=>{lwe.init(e,t),aw.init(e,t)}),IDe=aS(`ZodISODuration`,(e,t)=>{uwe.init(e,t),aw.init(e,t)}),LDe=aS(`ZodEmail`,(e,t)=>{ZCe.init(e,t),aw.init(e,t)}),RDe=aS(`ZodGUID`,(e,t)=>{YCe.init(e,t),aw.init(e,t)}),sw=aS(`ZodUUID`,(e,t)=>{XCe.init(e,t),aw.init(e,t)}),zDe=aS(`ZodURL`,(e,t)=>{$Ce.init(e,t),aw.init(e,t)}),BDe=aS(`ZodEmoji`,(e,t)=>{ewe.init(e,t),aw.init(e,t)}),VDe=aS(`ZodNanoID`,(e,t)=>{twe.init(e,t),aw.init(e,t)}),HDe=aS(`ZodCUID`,(e,t)=>{nwe.init(e,t),aw.init(e,t)}),UDe=aS(`ZodCUID2`,(e,t)=>{rwe.init(e,t),aw.init(e,t)}),WDe=aS(`ZodULID`,(e,t)=>{iwe.init(e,t),aw.init(e,t)}),GDe=aS(`ZodXID`,(e,t)=>{awe.init(e,t),aw.init(e,t)}),KDe=aS(`ZodKSUID`,(e,t)=>{owe.init(e,t),aw.init(e,t)}),qDe=aS(`ZodIPv4`,(e,t)=>{dwe.init(e,t),aw.init(e,t)}),JDe=aS(`ZodIPv6`,(e,t)=>{pwe.init(e,t),aw.init(e,t)}),YDe=aS(`ZodCIDRv4`,(e,t)=>{mwe.init(e,t),aw.init(e,t)}),XDe=aS(`ZodCIDRv6`,(e,t)=>{hwe.init(e,t),aw.init(e,t)}),ZDe=aS(`ZodBase64`,(e,t)=>{gwe.init(e,t),aw.init(e,t)}),QDe=aS(`ZodBase64URL`,(e,t)=>{_we.init(e,t),aw.init(e,t)}),$De=aS(`ZodE164`,(e,t)=>{vwe.init(e,t),aw.init(e,t)}),eOe=aS(`ZodJWT`,(e,t)=>{ywe.init(e,t),aw.init(e,t)}),cw=aS(`ZodNumber`,(e,t)=>{HS.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>DEe(e,t,n,r),e.isFinite=!0},Zx({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=yC(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=yC(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=yC(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>yC(e).format??null},{gt(e,t){return this.check(KTe(e,t))},gte(e,t){return this.check(sC(e,t))},min(e,t){return this.check(sC(e,t))},lt(e,t){return this.check(GTe(e,t))},lte(e,t){return this.check(oC(e,t))},max(e,t){return this.check(oC(e,t))},int(e){return this.check(mDe(e))},safe(e){return this.check(mDe(e))},positive(e){return this.check(KTe(0,e))},nonnegative(e){return this.check(sC(0,e))},negative(e){return this.check(GTe(0,e))},nonpositive(e){return this.check(oC(0,e))},multipleOf(e,t){return this.check(qTe(e,t))},step(e,t){return this.check(qTe(e,t))},finite(){return this}})),tOe=aS(`ZodNumberFormat`,(e,t)=>{bwe.init(e,t),cw.init(e,t)}),nOe=aS(`ZodBoolean`,(e,t)=>{xwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>OEe(e,t,n,r)}),rOe=aS(`ZodUndefined`,(e,t)=>{Swe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AEe(e,t,n,r)}),iOe=aS(`ZodNull`,(e,t)=>{Cwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kEe(e,t,n,r)}),aOe=aS(`ZodAny`,(e,t)=>{wwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>MEe(e,t,n,r)}),oOe=aS(`ZodUnknown`,(e,t)=>{Twe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NEe(e,t,n,r)}),sOe=aS(`ZodNever`,(e,t)=>{Ewe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jEe(e,t,n,r)}),cOe=aS(`ZodDate`,(e,t)=>{Dwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PEe(e,t,n,r),e.min=(t,n)=>e.check(sC(t,n)),e.max=(t,n)=>e.check(oC(t,n))},Zx({minDate:e=>{let{minimum:t}=yC(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=yC(e);return t?new Date(t):null}},{})),lOe=aS(`ZodArray`,(e,t)=>{HC(),Owe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zEe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(cC(e,t))},nonempty(e){return this.check(cC(1,e))},max(e,t){return this.check(JTe(e,t))},length(e,t){return this.check(YTe(e,t))},unwrap(){return this.element}}),lw=aS(`ZodObject`,(e,t)=>{HC(),jwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BEe(e,t,n,r),Zxe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return QC(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Ix(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Ix(this._zod.def,{catchall:KC()}))},loose(){return this.clone(Ix(this._zod.def,{catchall:KC()}))},strict(){return this.clone(Ix(this._zod.def,{catchall:_De()}))},strip(){return this.clone(Ix(this._zod.def,{catchall:void 0}))},extend(e){return Rxe(this,e)},safeExtend(e){return Bxe(this,e)},merge(e){return Vxe(this,e)},pick(e){return Ixe(this,e)},omit(e){return Lxe(this,e)},partial(...e){return Hxe(pw,this,e[0])},exactPartial(...e){return Hxe(mw,this,e[0],`exactPartial`)},required(...e){return Uxe(hw,this,e[0])}}),uw=aS(`ZodUnion`,(e,t)=>{US.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VEe(e,t,n,r),e.options=t.options}),uOe=aS(`ZodDiscriminatedUnion`,(e,t)=>{uw.init(e,t),Mwe.init(e,t)}),dOe=aS(`ZodIntersection`,(e,t)=>{Nwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HEe(e,t,n,r)}),dw=aS(`ZodRecord`,(e,t)=>{HC(),Pwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UEe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),fw=aS(`ZodEnum`,(e,t)=>{Fwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FEe(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 fw({...t,checks:[],...Vx(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 fw({...t,checks:[],...Vx(r),entries:i})}}),fOe=aS(`ZodLiteral`,(e,t)=>{Iwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IEe(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]}})}),pOe=aS(`ZodTransform`,(e,t)=>{HC(),Lwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>REe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new uS(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Yx(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(Yx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),pw=aS(`ZodOptional`,(e,t)=>{WS.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),mw=aS(`ZodExactOptional`,(e,t)=>{Rwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),mOe=aS(`ZodNullable`,(e,t)=>{zwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),hOe=aS(`ZodDefault`,(e,t)=>{Bwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),gOe=aS(`ZodPrefault`,(e,t)=>{Vwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),hw=aS(`ZodNonOptional`,(e,t)=>{Hwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),_Oe=aS(`ZodCatch`,(e,t)=>{Uwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),gw=aS(`ZodPipe`,(e,t)=>{GS.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YEe(e,t,n,r),e.in=t.in,e.out=t.out}),vOe=aS(`ZodPreprocess`,(e,t)=>{gw.init(e,t),Wwe.init(e,t)}),yOe=aS(`ZodReadonly`,(e,t)=>{Gwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),bOe=aS(`ZodLazy`,(e,t)=>{Kwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZEe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),_w=aS(`ZodCustom`,(e,t)=>{qwe.init(e,t),rw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LEe(e,t,n,r)})})),xOe,SOe=o((()=>{LC(),xOe||={}}));function COe(e){return MTe(ow,e)}var wOe=o((()=>{LC(),vw()}));function yw(e){return WTe(cOe,e)}var TOe=o((()=>{LC(),vw()})),EOe=o((()=>{LC(),vw(),RC(),$Ee(),fDe(),SOe(),IC(),aC(),iS(),RC(),wOe(),vw(),KS(),rC(),TOe()})),bw=o((()=>{EOe(),EOe()})),xw,Sw,Cw,ww,DOe,Tw,Ew=o((()=>{bw(),xw=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],Sw=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:xw,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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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:[...xw,`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`}],Cw=Sw.map(({type:e})=>e),QC(Cw),ww=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],DOe=QC([...Cw,...ww.map(({type:e})=>e)]),Tw=[{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`}]})),Dw,Ow,kw,OOe,Aw,jw,Mw,Nw,kOe,AOe,jOe,MOe,NOe,POe,Pw,FOe,Fw,IOe,LOe,ROe,zOe,BOe,VOe,HOe,UOe,WOe,GOe,KOe,qOe,JOe,Iw,Lw,YOe,XOe,ZOe,QOe,$Oe,eke,Rw,zw,tke,Bw,nke=o((()=>{Cxe(),Dw=`default`,Ow=[`low`,`medium`,`high`,`ultra`],kw=[`low`,`medium`,`high`,`xhigh`,`max`],OOe=[`low`,`medium`,`high`,`xhigh`,`max`],Aw=[`low`,`medium`,`high`,`xhigh`],jw=[`--effort`,`--reasoning-effort`],Mw=[`low`,`medium`,`high`,`xhigh`],Nw=[...Mw,`max`,`ultra`],kOe=`model_reasoning_effort`,AOe=[`low`,`high`,`max`],jOe=[`high`,`max`],MOe=[...Mw,`max`],NOe=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],POe=[`gpt-6-astra`,`gpt-5.6-luna`],Pw=[`low`,`medium`,`high`,`xhigh`,`max`],FOe=`--reasoning-effort`,Fw=[`low`,`medium`,`high`,`xhigh`,`max`],IOe=`--reasoning-effort`,LOe=`service_tier`,ROe=[`fast`,`priority`],zOe=e=>!!e&&Ow.includes(e),BOe=e=>!!e&&kw.includes(e),VOe=e=>!!e&&Nw.includes(e),HOe=e=>!!e&&Aw.includes(e),UOe=e=>!!e&&Pw.includes(e),WOe=e=>!!e&&Fw.includes(e),GOe=e=>!!e&&ROe.includes(e),KOe=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?AOe:e===`glm-5.2`?jOe:NOe.includes(e)?Nw:POe.includes(e)?MOe:Mw,qOe=e=>{let t=(wx(e?.args,`--mode`)??e?.mode)?.trim();return zOe(t)?t:Dw},JOe=[`-m`,`--model`],Iw=e=>{let t=(wx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:Dw},Lw=e=>{let t=(wx(e?.args,`--effort`)??e?.effort)?.trim();return BOe(t)?t:Dw},YOe=e=>{let t=(Tx(e?.args,JOe)??Dx(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:Dw},XOe=e=>{let t=(Dx(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return VOe(t)?t:Dw},ZOe=e=>{let t=(Dx(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Dx(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:GOe(t)?`fast`:Dw},QOe=e=>{let t=(Tx(e?.args,jw)??e?.effort)?.trim();return HOe(t)?t:Dw},$Oe=e=>{let t=(wx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return UOe(t)?t:Dw},eke=e=>{let t=(wx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return WOe(t)?t:Dw},Rw=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:Dw},zw={flags:[`-m`,`--model`],kind:`flag`},tke={antigravity:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:(e,t)=>t?t.find(t=>t.id===e)?.effortLevels??[]:OOe,resolve:Lw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Iw,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:Ow,resolve:qOe}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>kw,resolve:Lw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Iw,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>kw,resolve:Lw},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Iw,source:`catalog`}},codex:{effort:{encodings:[{key:kOe,kind:`config`}],levels:KOe,resolve:XOe},model:{encodings:[zw,{key:`model`,kind:`config`}],resolve:YOe,source:`catalog`},speed:{encodings:[{key:LOe,kind:`config`}],resolve:ZOe}},copilot:{effort:{encodings:[{flags:[IOe],kind:`flag`}],levels:()=>Fw,resolve:eke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Rw,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Rw,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:Rw,source:`catalog`}},droid:{model:{encodings:[],resolve:Rw,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:Rw,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:jw,kind:`flag`}],levels:()=>Aw,resolve:QOe},model:{encodings:[zw],resolve:Rw,source:`catalog`}},"kimi-code":{model:{encodings:[zw],resolve:Rw,source:`catalog`}},opencode:{model:{encodings:[zw],resolve:Rw,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:Rw,source:`catalog`}},qoder:{effort:{encodings:[{flags:[FOe],kind:`flag`}],levels:()=>Pw,resolve:$Oe},model:{encodings:[zw],resolve:Rw,source:`catalog`}},trae:{model:{encodings:[],resolve:Rw,source:`catalog`}}},Bw=e=>tke[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),Bw(`copilot`),Bw(`grok-build`),Bw(`kimi-code`),Bw(`opencode`),Bw(`pi`),Bw(`qoder`)})),rke=o((()=>{})),ike=o((()=>{Ew(),rke(),new Set([...Sw.map(({type:e})=>e),...ww.map(({type:e})=>e),...Tw.map(({type:e})=>e)])})),ake=o((()=>{})),oke=o((()=>{})),ske,cke,lke,uke,dke=o((()=>{bw(),ske=JC({workingDirectory:H().optional()}),cke=JC({memory:JC({effort:QC([`low`,`medium`,`high`]).optional(),enabled:WC().optional(),toolPermission:QC([`read-only`,`read-write`]).optional()}).optional()}),lke=JC({selfIteration:JC({enabled:WC().optional()}).optional()}),uke=JC({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:WC().optional(),disableGatewayMode:WC().optional(),effort:QC([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:WC().optional(),enableAgentMode:WC().optional(),toolMode:QC([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:WC().optional(),enableCompressHistory:WC().optional(),enableContextCompression:WC().optional(),enableFollowUpChips:WC().optional(),enableHistoryCount:WC().optional(),enableMaxTokens:WC().optional(),enableReasoning:WC().optional(),enableReasoningEffort:WC().optional(),enableStreaming:WC().optional(),enableStaleToolResultTrim:WC().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:UC().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:ske.optional(),preserveThinking:WC().optional(),reasoningBudgetToken:UC().optional(),reasoningBudgetToken32k:UC().optional(),reasoningBudgetToken80k:UC().optional(),reasoningEffort:QC([`low`,`medium`,`high`]).optional(),reasoningMode:QC([`standard`,`pro`]).optional(),searchFCModel:JC({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:UC().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:UC().default(25e3),topicGroupMode:QC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:WC().optional(),useModelBuiltinSearch:WC().optional()}).merge(cke).merge(lke)})),fke=o((()=>{})),pke=o((()=>{})),Vw,Hw,Uw,Ww,mke,hke,gke,_ke,vke,Gw,yke,bke=o((()=>{Vw=`LobeHub Cloud`,Hw=`LobeHub`,Uw=`Lobe AI`,Ww=`LobeHub`,mke={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},hke={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`},gke={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},_ke={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},vke=`lobehub`,Gw=`© ${new Date().getFullYear()} ${Ww}`,yke=`${Gw}. All rights reserved.`})),xke,Ske,Cke,Kw,qw,Jw,Yw,wke,Tke,Eke,Dke,Oke,kke,Ake,jke,Mke,Nke,Pke,Fke,Ike,Lke,Rke=o((()=>{xke=`jev-1.14.0`,Ske=`typesafe`,Cke=`openai`,Kw=`deepseek-v4-flash`,qw=`deepseek`,Jw=`gpt-5.6-luna`,Yw=`openai`,wke=`decision`,Tke=`gpt-6-luna:decision`,Eke=`openai`,Dke=`gpt-4o-mini-transcribe`,Oke=`openai`,kke=`gemini-3-flash-preview`,Ake=`google`,jke=`gemini-3.8-flash`,Mke=`google`,Nke=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],Pke=`glm-5.3-flash`,Fke=`zhipu`,Ike=`deepseek-flash`,Lke=`deepseek`})),zke,Bke=o((()=>{zke=[]})),Vke,Hke=o((()=>{Vke=`chat_preview`})),Uke=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>Wke,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>_ke,BRANDING_INBOX_TITLE:()=>Uw,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>Hw,BRANDING_PROVIDER:()=>vke,BRANDING_URL:()=>mke,BUSINESS_OIDC_CLIENTS:()=>zke,COPYRIGHT:()=>Gw,COPYRIGHT_FULL:()=>yke,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>Nke,DEFAULT_ASR_MODEL:()=>Dke,DEFAULT_ASR_PROVIDER:()=>Oke,DEFAULT_BOT_WAKE_ENGINE:()=>wke,DEFAULT_BOT_WAKE_MODEL:()=>Tke,DEFAULT_BOT_WAKE_PROVIDER:()=>Eke,DEFAULT_CHANNEL_ROUTING_MODEL:()=>xke,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>Ske,DEFAULT_EMBEDDING_PROVIDER:()=>Cke,DEFAULT_MINI_MODEL:()=>Jw,DEFAULT_MINI_PROVIDER:()=>Yw,DEFAULT_MODEL:()=>Kw,DEFAULT_ONBOARDING_MODEL:()=>kke,DEFAULT_ONBOARDING_PROVIDER:()=>Ake,DEFAULT_PROVIDER:()=>qw,DEFAULT_REVIEW_PREDICT_MODEL:()=>jke,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>Mke,DEFAULT_VERIFY_MODEL:()=>Pke,DEFAULT_VERIFY_PLAN_MODEL:()=>Ike,DEFAULT_VERIFY_PLAN_PROVIDER:()=>Lke,DEFAULT_VERIFY_PROVIDER:()=>Fke,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>gke,LOBE_CHAT_CLOUD:()=>Vw,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>Gke,ORG_NAME:()=>Ww,SOCIAL_URL:()=>hke,UTM_SOURCE:()=>Vke,isOfficialProvider:()=>Kke}),Wke,Gke,Kke,Xw=o((()=>{bke(),bke(),Rke(),Bke(),Hke(),Wke=`sk-lh-`,Gke=`The official provider cannot be disabled.`,Kke=e=>!1})),qke=o((()=>{Xw()})),Jke=o((()=>{})),Yke=o((()=>{})),Xke,Zke,Qke=o((()=>{bw(),Xke=QC([`pinned`,`auto`,`disabled`]),Zke=YC([H(),JC({builtinOverride:ew(!0).optional(),identifier:H(),mode:Xke.optional()})])})),$ke=o((()=>{bw(),dke(),Qke(),JC({agencyConfig:tw().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:uke.optional(),description:H().nullish(),editorData:KC().optional(),fewShots:KC().optional(),marketIdentifier:H().nullish(),metadata:ZC(H(),KC()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:qC(H()).optional(),params:ZC(H(),KC()).optional(),plugins:qC(Zke).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:qC(H()).optional(),title:H().nullish(),tts:tw().optional(),virtual:WC().nullish(),visibility:QC([`private`,`public`]).optional()})})),eAe=o((()=>{})),tAe=o((()=>{})),nAe=o((()=>{})),rAe=o((()=>{})),iAe=o((()=>{})),aAe=o((()=>{ike(),ake(),oke(),dke(),fke(),pke(),qke(),Cxe(),Ew(),Jke(),Yke(),nke(),$ke(),eAe(),Qke(),tAe(),nAe(),rAe(),iAe()})),oAe,sAe=o((()=>{oAe=[`mail`,`wallet`,`service`],[...oAe]})),cAe=o((()=>{})),lAe=o((()=>{})),uAe,Zw,dAe=o((()=>{bw(),uAe=JC({ciStatus:QC([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:WC().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:UC(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),Zw=JC({environmentId:H().max(255).optional(),git:JC({activeWorktree:H().optional(),autoCreated:WC().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:WC().optional(),github:JC({extraPullRequestCount:UC().optional(),pullRequest:uAe.nullable().optional(),pullRequestStatus:QC([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:WC().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:JC({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:QC([`git`,`github`]).optional(),sessionPath:H().optional()})})),Qw=o((()=>{dAe()})),$w,eT=o((()=>{$w=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),fAe=o((()=>{})),pAe=o((()=>{})),mAe=o((()=>{})),hAe=o((()=>{bw(),Qw(),eT(),fAe(),pAe(),mAe(),JC({heteroPermissionMode:QC($w).optional(),repos:qC(H()).optional(),sandboxDrive:QC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:WC().optional(),sandboxTemporary:WC().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:Zw.optional()})})),gAe,_Ae=o((()=>{bw(),gAe=JC({allowDM:WC().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:qC(H()).optional(),personal:WC().optional(),revealDM:WC().optional(),systemPrompt:H().optional()}),JC({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:gAe.nullish(),content:H().nullish(),description:H().nullish(),editorData:ZC(H(),GC()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:WC().nullish(),title:H().nullish(),visibility:QC([`private`,`public`]).optional()})})),vAe,yAe,bAe,xAe=o((()=>{bw(),vAe=QC([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),yAe=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),bAe=vDe({allowedEnvVars:qC(H().regex(/^[A-Z_]\w*$/i)).optional(),body:ZC(H(),KC()).optional(),delivery:QC([`fetch`,`qstash`]).optional(),eventFields:qC(H()).optional(),fallback:QC([`fetch`,`none`]).optional(),headers:ZC(H(),H()).optional(),onError:QC([`continue`,`block`]).optional(),responseHandling:QC([`ignore`,`toolCall`]).optional(),timeout:UC().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`})}),vDe({id:H(),matcher:yAe.optional(),type:vAe,webhook:bAe}).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`})})})),SAe=o((()=>{bw(),XC(`decision`,[JC({decision:ew(`allow`)}),JC({decision:ew(`deny`),reason:H().optional()})])})),CAe=o((()=>{})),wAe,TAe=o((()=>{wAe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(wAe)})),EAe=o((()=>{})),DAe=o((()=>{})),OAe,kAe,AAe,jAe=o((()=>{OAe={messages:`msg`,threads:`thd`,topics:`tpc`},kAe=`[0-9a-zA-Z]{8,32}`,AAe=e=>RegExp(`^${OAe[e]}_${kAe}$`)})),tT,MAe,NAe,PAe=o((()=>{bw(),tT=JC({attribution:QC([`user`,`provider`,`harness`,`system`]).optional(),body:GC().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:WC().optional(),httpStatus:UC().optional(),isFallback:WC().optional(),message:H().optional(),numericId:UC().optional(),retryable:WC().optional(),severity:QC([`info`,`warning`,`error`,`critical`]).optional(),type:YC([H(),UC()])}),MAe=JC({content:qC(ZC(H(),KC())).optional(),encrypted_content:H().nullish(),id:H(),status:QC([`in_progress`,`completed`,`incomplete`]).optional(),summary:qC(JC({text:H(),type:ew(`summary_text`)})),type:ew(`reasoning`)}).passthrough(),NAe=JC({content:H().optional(),duration:UC().optional(),isMultimodal:WC().optional(),responseItems:qC(MAe).optional(),signature:H().optional()})})),FAe,IAe=o((()=>{FAe=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}({})})),nT,LAe,RAe=o((()=>{bw(),nT=UC().catch(0),LAe=JC({bySource:JC({content:nT,fileContext:nT,reasoning:nT,thoughtSignature:nT,toolCallId:nT,toolCalls:nT,toolDefinition:nT}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:ew(`tokenx`).catch(`tokenx`),messageCount:nT,system:nT,total:nT})})),zAe,BAe,rT,VAe,HAe,UAe,WAe,GAe,iT,KAe=o((()=>{bw(),zAe=QC([`markdown`,`text`,`xml`]),BAe=JC({endLine:UC().optional(),startLine:UC()}),rT=JC({content:H(),format:zAe.optional(),id:H(),lineRange:BAe.optional(),preview:H().optional(),title:H().optional()}),VAe=rT.extend({anchor:JC({endNodeId:H(),endOffset:UC(),startNodeId:H(),startOffset:UC()}).optional(),pageId:H(),source:ew(`page`),xml:H().optional()}),HAe=rT.extend({filePath:H(),language:H().optional(),side:QC([`additions`,`context`,`deletions`]).optional(),source:ew(`code`),workingDirectory:H().optional()}),UAe=rT.extend({source:ew(`text`)}),WAe=rT.extend({element:JC({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:ew(`element`)}),GAe=rT.extend({identifier:H(),source:ew(`mcpApp`)}),iT=XC(`source`,[VAe,HAe,UAe,WAe,GAe])})),qAe,JAe=o((()=>{bw(),KAe(),qAe=rT.omit({lineRange:!0}).extend({anchor:JC({endNodeId:H(),endOffset:UC(),startNodeId:H(),startOffset:UC()}).optional(),startLine:UC().optional(),endLine:UC().optional(),pageId:H(),xml:H().optional()})})),YAe,XAe,aT,ZAe,QAe,$Ae,eje,tje,nje,rje,ije,aje,oje,sje,cje,oT,lje,uje=o((()=>{bw(),IAe(),RAe(),KAe(),JAe(),YAe=YC([JC({action:QC([`create`,`update`,`delete`]),changeType:QC([`created`,`updated`]).optional(),targets:qC(JC({taskId:H().optional(),taskIdentifier:H().optional()})),type:ew(`task`)}),JC({args:ZC(H(),KC()).optional(),data:KC(),provider:H(),toolName:H(),type:ew(`skill`)}),JC({action:ew(`register`),document:JC({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:QC([`created`,`updated`]),toolName:H()}),type:ew(`document`)}),JC({action:ew(`delete`),document:JC({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:ew(`document`)}),JC({action:ew(`register`),canvas:JC({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:JC({entry:H(),fileCount:UC(),manifestKey:H(),runtimeMajor:UC(),totalSize:UC()})}),type:ew(`canvas`)})]),XAe=JC({apiName:QC([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:ZC(H(),KC()),capturedAt:H(),content:H().nullable(),error:KC().optional(),identifier:ew(`lobe-local-system`),result:KC().optional(),snapshotId:H(),state:KC().optional(),success:WC(),toolCallId:H()}),aT=JC({inputCachedTokens:UC().optional(),inputCacheMissTokens:UC().optional(),inputWriteCacheTokens:UC().optional(),inputCachedTextTokens:UC().optional(),inputCachedImageTokens:UC().optional(),inputCachedAudioTokens:UC().optional(),inputCachedVideoTokens:UC().optional(),inputTextTokens:UC().optional(),inputImageTokens:UC().optional(),inputAudioTokens:UC().optional(),inputVideoTokens:UC().optional(),inputCitationTokens:UC().optional(),inputToolTokens:UC().optional(),inputCharacters:UC().optional(),outputTextTokens:UC().optional(),outputImageTokens:UC().optional(),outputAudioTokens:UC().optional(),outputReasoningTokens:UC().optional(),outputVideoTokens:UC().optional(),acceptedPredictionTokens:UC().optional(),rejectedPredictionTokens:UC().optional(),totalInputTokens:UC().optional(),totalOutputTokens:UC().optional(),totalTokens:UC().optional(),cost:UC().optional(),credits:UC().optional()}),ZAe=JC({tps:UC().optional(),ttft:UC().optional(),duration:UC().optional(),latency:UC().optional()}),QAe=JC({emoji:H(),count:UC(),users:qC(H())}),$Ae=JC({sequence:UC().optional(),sourceToolCallId:H(),sourceToolName:H(),type:QC([`tool-stdout`,`tool-callback`,`task-completion`])}),eje=JC({identifier:H()}),tje=JC({agentId:H().optional(),name:H(),status:QC([`completed`,`error`]),threadId:H()}),nje=JC({identifier:H(),reason:QC([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),rje=JC({rootOperationId:H().min(1),userMessageId:H().optional()}),ije=JC({kind:QC([`callAgent`]),visibility:ew(`internal`)}),aje=JC({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:UC().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),oje=JC({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),sje=JC({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),cje=aT.merge(ZAe).extend({botSender:sje.optional(),externalOrigin:oje.optional(),agentDispatch:ije.optional(),agentSender:aje.optional(),collapsed:WC().optional(),contextAccounting:LAe.optional(),contextSelections:qC(iT).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:UC().int().positive().optional(),inspectExpanded:WC().optional(),isMultimodal:WC().optional(),isSupervisor:WC().optional(),localSystemToolSnapshots:qC(XAe).optional(),mcpAppSource:eje.optional(),operationId:H().min(1).optional(),orchestrationRole:QC([`supervisor`,`member`]).optional(),pageSelections:qC(qAe).optional(),performance:ZAe.optional(),reactions:qC(QAe).optional(),scope:H().optional(),selectedSkillIds:qC(H()).optional(),signal:$Ae.optional(),steer:WC().optional(),subAgentCallback:tje.optional(),subAgentId:H().optional(),taskCallback:nje.optional(),toolExecutionTimeMs:UC().optional(),toolResultSuccess:WC().optional(),toolResultStop:WC().optional(),toolWorkRegistration:YAe.optional(),trigger:$C(FAe).optional(),verifyOperationId:H().optional(),verifyRound:UC().optional(),work:rje.optional(),usage:aT.optional()}),oT=cje.omit({agentSender:!0}),lje=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),dje,fje=o((()=>{bw(),uje(),dje=cje.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),JC({editorData:ZC(H(),KC()).optional(),metadata:dje.optional()}),Object.keys(dje.shape)})),pje,mje=o((()=>{bw(),pje=JC({alt:H(),height:UC().optional(),id:H(),mimeType:H().optional(),ratio:UC().optional(),url:H(),width:UC().optional()})})),hje=o((()=>{})),gje,_je,vje,yje=o((()=>{bw(),gje=JC({batchId:H().optional(),itemIndex:UC().int().nonnegative().optional(),operationId:H().optional(),runtimeType:QC([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:WC().optional(),resolutionRequestId:H().optional(),skipped:WC().optional(),stepIndex:UC().int().nonnegative().optional(),status:QC([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),_je=JC({function:JC({arguments:H(),name:H()}),id:H(),type:H()}),vje=JC({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:gje.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),bje=o((()=>{})),xje=o((()=>{})),sT=o((()=>{PAe(),fje(),RAe(),KAe(),mje(),hje(),uje(),JAe(),yje(),bje(),xje()})),Sje,Cje=o((()=>{bw(),Sje=JC({id:H(),similarity:UC()}),JC({id:H(),value:JC({fileChunks:qC(Sje),ragQueryId:H().optional()})})})),wje,Tje,Eje=o((()=>{bw(),PAe(),yje(),Cje(),sT(),JAe(),wje=QC([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),Tje=JC({apiName:H(),arguments:H(),identifier:H(),type:H()}),JC({role:wje,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:Tje.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:qC(H()).optional(),error:tT.nullish(),traceId:H().optional(),fileChunks:qC(Sje).optional()}).passthrough(),JC({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:gje.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:GC().optional(),error:GC().optional(),clientId:H().optional(),userId:H().optional()})})),Dje,Oje=o((()=>{bw(),Dje=JC({action:QC([`create`,`update`,`delete`]),agentEditable:WC().optional(),resourceType:QC([`document`,`task`])})})),cT,kje,Aje,jje,Mje,Nje,Pje=o((()=>{bw(),cT=QC([`never`,`required`,`always`]),kje=YC([H(),JC({pattern:H(),type:QC([`exact`,`prefix`,`wildcard`,`regex`])})]),Aje=JC({match:ZC(H(),kje).optional(),policy:cT}),jje=YC([cT,qC(Aje)]),JC({action:QC([`approve`,`reject`,`select`]),data:JC({remember:WC().optional(),selected:YC([H(),qC(H())]).optional()}).optional()}),JC({allowList:qC(H()).optional(),approvalMode:QC([`auto-run`,`allow-list`,`manual`,`headless`])}),Mje=JC({description:H(),match:ZC(H(),kje),policy:cT.optional()}),Nje=qC(Mje),JC({config:jje.optional(),confirmedHistory:qC(H()).optional(),securityBlacklist:Nje.optional(),toolArgs:ZC(H(),GC()).optional(),toolKey:H().optional()})})),Fje=o((()=>{})),lT,Ije,Lje,Rje,uT,zje,Bje=o((()=>{bw(),Oje(),Pje(),Fje(),Oje(),lT=JC({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:qC(H()).optional(),title:H()}),Ije=QC([`collapsed`,`expand`,`alwaysExpand`]),Lje=JC({default:cT.optional(),policy:cT.optional(),type:H()}),Rje=YC([jje,JC({dynamic:Lje})]),uT=JC({defaultTimeoutMs:UC().int().positive().optional(),description:H(),humanIntervention:Rje.optional(),name:H(),ordered:WC().optional(),parameters:ZC(H(),GC()),renderDisplayControl:Ije.optional(),serializeBy:H().optional(),url:H().optional(),work:Dje.optional()}),zje=JC({api:qC(uT),deviceClients:qC(QC([`cli`,`desktop`])).optional(),executors:qC(QC([`client`,`server`])).optional(),humanIntervention:Rje.optional(),identifier:H(),meta:lT,systemRole:H(),type:ew(`builtin`).optional()}),JC({discoverable:WC().optional(),hidden:WC().optional(),identifier:H(),manifest:zje,type:ew(`builtin`)})})),Vje=o((()=>{})),Hje=o((()=>{})),Uje,Wje=o((()=>{bw(),Bje(),Uje=JC({properties:ZC(H(),GC()),required:qC(H()).optional(),type:ew(`object`)}),JC({$schema:H().optional(),api:qC(uT),connector:JC({id:H(),identifier:H()}).optional(),connectorLinks:JC({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:qC(JC({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:qC(uT).optional(),mcpModelOnlyTools:qC(H()).optional(),meta:lT,openapi:H().optional(),settings:Uje.optional(),systemRole:H().optional(),type:QC([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:JC({height:UC().optional(),mode:QC([`iframe`,`module`]).optional(),url:H(),width:UC().optional()}).optional(),version:H().optional()})})),Gje=o((()=>{})),Kje=o((()=>{})),qje,Jje=o((()=>{bw(),qje=JC({description:H().optional(),name:H(),parameters:JC({additionalProperties:WC().optional(),properties:ZC(H(),GC()),required:qC(H()).optional(),type:ew(`object`)})})})),Yje=o((()=>{Bje(),Vje(),Hje(),Pje(),Wje(),Gje(),Kje(),Jje()})),dT,Xje,Zje,fT,Qje,pT,$je,mT,hT,gT,eMe,tMe,nMe,_T,rMe,iMe,aMe,oMe,vT,sMe,cMe=o((()=>{bw(),dT=1e6,Xje=2e3,Zje=2e3,fT=12e3,Qje=JC({kind:ew(`writing`)}).strict(),pT=JC({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:WC()}).strict(),$je=JC({errors:qC(pT).max(16),evidenceCount:UC().int().nonnegative().max(dT),failedCount:UC().int().nonnegative().max(dT),succeededCount:UC().int().nonnegative().max(dT)}).strict(),$je.omit({errors:!0}).strip(),mT=e=>H().trim().min(1).max(e),hT=mT(256),gT=mT(Xje),eMe=JC({content:mT(fT),reasoning:gT,tagline:hT}).strict(),tMe=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}},nMe=nw(tMe,JC({description:gT,rank:UC().int().min(0).max(100),title:hT}).strict()),_T=e=>qC(nMe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),rMe=JC({composition:JC({identities:_T(6),interests:_T(8),lifeStyle:_T(6),social:_T(6),working:_T(6)}).strict(),personaProposal:eMe,profile:JC({domains:qC(hT).max(8),description:gT,name:hT,pronoun:hT,roles:qC(hT).max(8),summary:gT,tagline:hT}).strict()}).strict(),JC({analysis:rMe,detailedPersona:eMe.optional(),diagnostics:$je,feedbackRevision:UC().int().nonnegative().max(dT).default(0),generationRevision:UC().int().nonnegative().max(dT).default(0),kind:ew(`proposal`),providers:qC(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),iMe=JC({content:H().trim().min(1).max(Zje),createdAt:H(),revision:UC().int().positive().max(dT)}).strict(),aMe=JC({revision:UC().int().nonnegative().max(dT),turns:qC(iMe).max(16)}).strict(),oMe=JC({completedAt:H().optional(),errors:qC(pT).max(16),failedCount:UC().int().nonnegative().max(dT),revision:UC().int().nonnegative().max(dT),status:QC([`pending`,`running`,`completed`,`failed`]),succeededCount:UC().int().nonnegative().max(dT)}).strict(),vT={detailed:XC(`status`,[JC({status:ew(`running`),updatedAt:H()}).strict(),JC({status:ew(`completed`),updatedAt:H()}).strict(),JC({error:pT,status:ew(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:UC().int().nonnegative().max(dT).default(0),generationRevision:UC().int().nonnegative().max(dT).default(0),sourceFingerprint:H(),updatedAt:H()},sMe=XC(`status`,[JC({...vT,resultMessageId:H().optional(),status:ew(`running`)}).strict(),JC({...vT,resultMessageId:H(),status:ew(`completed`)}).strict(),JC({...vT,error:pT,resultMessageId:H().optional(),status:ew(`failed`)}).strict()]),JC({confirmedAt:H().optional(),feedback:aMe.default({revision:0,turns:[]}),generationRevision:UC().int().nonnegative().max(dT).default(0),id:H(),sources:ZC(H().max(64),oMe),writing:sMe.optional()}).strict()})),yT,lMe,uMe=o((()=>{bw(),cMe(),yT={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},lMe=JC({clientMode:WC().optional(),completedAt:H().optional(),duration:UC().optional(),error:GC().optional(),model:H().optional(),onboardingUnderstanding:Qje.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:UC().optional(),totalLlmCalls:UC().optional(),totalMessages:UC().optional(),totalTokens:UC().optional(),totalSteps:UC().optional(),totalToolCalls:UC().optional()}),JC({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:lMe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:QC([yT.Continuation,yT.Eval,yT.Standalone,yT.Isolation])})})),dMe,fMe,bT,pMe,xT,mMe,hMe=o((()=>{bw(),jAe(),sT(),Eje(),Yje(),uMe(),dMe=JC({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:QC([yT.Continuation,yT.Standalone,yT.Isolation])}),fMe=JC({content:H(),metadata:oT.optional(),plugin:JC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:QC([`assistant`,`tool`]),tool_call_id:H().optional(),tools:qC(vje).optional()}),bT=e=>H().regex(AAe(e)).optional(),JC({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:JC({agentId:H().optional(),id:bT(`messages`),metadata:ZC(H(),KC()).optional().transform(lje),model:H().optional(),provider:H().optional()}),newThread:dMe.optional(),newTopic:JC({id:bT(`topics`),metadata:tw().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:qC(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:qC(fMe).optional(),newUserMessage:JC({content:H(),contextSelections:qC(iT).optional(),editorData:ZC(H(),KC()).optional(),files:qC(H()).optional(),id:bT(`messages`),metadata:oT.optional(),pageSelections:qC(qAe).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:JC({excludeStatuses:qC(H()).optional(),excludeTriggers:qC(H()).optional(),includeTriggers:qC(H()).optional(),onlyMine:WC().optional()}).optional(),topicPageSize:UC().int().min(1).max(100).optional(),topicId:H().optional()}),pMe=JC({description:H().optional(),name:H(),schema:JC({$defs:GC().optional(),additionalProperties:WC().optional(),properties:ZC(H(),GC()),required:qC(H()).optional(),type:ew(`object`)}),strict:WC().optional()}),JC({metadata:ZC(H(),KC()).optional(),messages:qC(GC()),model:H(),provider:H(),schema:pMe.optional(),tools:qC(JC({function:qje,type:ew(`function`)})).optional(),tracing:JC({tracingId:H().uuid().optional()}).catchall(KC()).optional()}),xT=YC([H(),qC(KC()),ZC(H(),KC())]),mMe=XC(`type`,[JC({criteria:JC({false:xT,true:xT}).optional(),instructions:xT,type:ew(`boolean`)}),JC({criteria:ZC(H(),xT.nullable()),instructions:xT,type:ew(`choice`)}),JC({criteria:qC(xT).min(1),instructions:xT,type:ew(`score`)})]),JC({metadata:ZC(H(),KC()).optional(),model:H(),provider:H(),questions:ZC(H(),mMe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:xT,tracing:JC({tracingId:H().uuid().optional()}).catchall(KC()).optional()})})),gMe=o((()=>{bw()})),_Me=o((()=>{})),vMe=o((()=>{})),yMe=o((()=>{})),bMe=o((()=>{})),xMe=o((()=>{})),SMe,CMe=o((()=>{Ew(),SMe=Tw.map(({type:e})=>e),[...DOe.options,...SMe]})),wMe=o((()=>{})),TMe=o((()=>{wMe()})),EMe=o((()=>{})),DMe=o((()=>{})),OMe=o((()=>{})),kMe=o((()=>{})),AMe=o((()=>{})),jMe=o((()=>{})),MMe=o((()=>{})),NMe=o((()=>{})),PMe=o((()=>{bw(),JC({connected:WC(),cpuCount:UC().int().min(1).max(4096),cpuPercent:UC().min(0).max(100).nullable(),diskTotalBytes:UC().int().min(0).nullish(),diskUsedBytes:UC().int().min(0).nullish(),load1:UC().min(0).nullable(),load5:UC().min(0).nullable(),load15:UC().min(0).nullable(),memoryTotalBytes:UC().int().min(0),memoryUsedBytes:UC().int().min(0),observedAt:UC().int().min(0)})})),FMe=o((()=>{})),IMe=o((()=>{})),LMe=o((()=>{})),RMe=o((()=>{})),zMe=o((()=>{})),BMe=o((()=>{})),VMe=o((()=>{})),HMe=o((()=>{})),UMe=o((()=>{FMe(),IMe(),LMe(),RMe(),zMe(),BMe(),VMe(),HMe()})),WMe=o((()=>{bw(),JC({shareId:H(),topicId:H(),visitorUserId:H()})})),GMe=o((()=>{})),KMe=o((()=>{})),qMe=o((()=>{WMe(),GMe(),KMe()})),JMe=o((()=>{})),YMe=o((()=>{})),XMe=o((()=>{})),ZMe=o((()=>{})),QMe=o((()=>{})),$Me=o((()=>{})),eNe=o((()=>{})),tNe=o((()=>{})),nNe=o((()=>{})),rNe=o((()=>{bw(),JC({ideal:H().optional(),question:H(),referenceFiles:H().or(qC(H())).optional()}),JC({description:H().optional(),knowledgeBaseId:H(),name:H()})})),iNe=o((()=>{})),aNe=o((()=>{})),oNe=o((()=>{})),sNe=o((()=>{bw(),JC({ideal:H().optional(),question:H(),referenceFiles:H().or(qC(H())).optional()}),JC({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),cNe=o((()=>{})),lNe=o((()=>{})),uNe=o((()=>{})),dNe,fNe=o((()=>{bw(),Bje(),dNe=JC({api:qC(uT.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:lT,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`),ZC(H().min(1).max(255),dNe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),pNe=o((()=>{ZMe(),QMe(),$Me(),eNe(),tNe(),nNe(),rNe(),iNe(),aNe(),oNe(),sNe(),cNe(),lNe(),uNe(),fNe()})),mNe=o((()=>{})),hNe=o((()=>{})),gNe=o((()=>{})),ST,_Ne,vNe=o((()=>{ST={InvalidAccessCode:`InvalidAccessCode`,FreePlanLimit:`FreePlanLimit`,SubscriptionPlanLimit:`SubscriptionPlanLimit`,InsufficientBudgetForModel:`InsufficientBudgetForModel`,WorkspaceFrozenByAdmin:`WorkspaceFrozenByAdmin`,WorkspaceFrozenByRiskControl:`WorkspaceFrozenByRiskControl`,WorkspaceSubscriptionInactive:`WorkspaceSubscriptionInactive`,ShareMessageLimitExceeded:`ShareMessageLimitExceeded`,ShareSpendLimitExceeded:`ShareSpendLimitExceeded`,SharePromptTooLong:`SharePromptTooLong`,ShareHeterogeneousAgentUnsupported:`ShareHeterogeneousAgentUnsupported`,ShareHeteroDeviceUnavailable:`ShareHeteroDeviceUnavailable`,AgentShareProviderNotSupported:`AgentShareProviderNotSupported`,SupervisorDecisionFailed:`SupervisorDecisionFailed`,AgentConcurrencyLimitExceeded:`AgentConcurrencyLimitExceeded`,InsufficientBudgetForAgentRunFee:`InsufficientBudgetForAgentRunFee`,InvalidUserKey:`InvalidUserKey`,CreateMessageError:`CreateMessageError`,LobeHubModelDeprecated:`LobeHubModelDeprecated`,NoOpenAIAPIKey:`NoOpenAIAPIKey`,OllamaServiceUnavailable:`OllamaServiceUnavailable`,PluginFailToTransformArguments:`PluginFailToTransformArguments`,UnknownChatFetchError:`UnknownChatFetchError`,SystemTimeNotMatchError:`SystemTimeNotMatchError`,ServerAgentRuntimeError:`ServerAgentRuntimeError`,DeviceGatewayNotConfigured:`DeviceGatewayNotConfigured`,DeviceResponseTimeout:`DeviceResponseTimeout`,RemoteServerOffline:`RemoteServerOffline`,RemoteServerTimeout:`RemoteServerTimeout`,RemoteServerDNSFailed:`RemoteServerDNSFailed`,RemoteServerConnectionRefused:`RemoteServerConnectionRefused`,RemoteServerCertInvalid:`RemoteServerCertInvalid`,RemoteServerUnreachable:`RemoteServerUnreachable`,BadRequest:400,Unauthorized:401,Forbidden:403,ContentNotFound:404,MethodNotAllowed:405,TooManyRequests:429,InternalServerError:500,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504},_Ne=[ST.RemoteServerOffline,ST.RemoteServerTimeout,ST.RemoteServerDNSFailed,ST.RemoteServerConnectionRefused,ST.RemoteServerCertInvalid,ST.RemoteServerUnreachable],new Set(_Ne)})),yNe,bNe,xNe=o((()=>{bw(),yNe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),bNe=100,JC({category:H().optional(),filesOnly:WC().optional(),includeContentPreview:WC().optional(),knowledgeBaseId:H().optional(),limit:UC().int().positive().max(bNe).default(50),offset:UC().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:WC().default(!1),sortType:QC([`desc`,`asc`]).optional(),sorter:QC([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:$C(yNe).optional(),visibility:QC([`private`,`public`]).optional()})})),SNe,CNe=o((()=>{bw(),SNe=JC({shareId:H(),visitorUserId:H()}),JC({agentShare:SNe.optional(),date:H(),dirname:H(),filename:H(),height:UC().optional(),path:H(),ratio:UC().optional(),width:UC().optional()}),JC({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:GC().optional(),name:H(),size:UC(),source:H().optional(),url:H().optional()})})),wNe,TNe=o((()=>{xNe(),CNe(),wNe=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(wNe))})),ENe=o((()=>{})),DNe,ONe,kNe,ANe,CT,jNe,MNe,NNe,PNe,FNe=o((()=>{bw(),DNe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],ONe=[`agentEmoji`,`agentName`,`fullName`],kNe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],ANe=[`agent_identity`,`user_identity`,`discovery`,`summary`],CT=H().trim().transform(e=>e.length>0?e:void 0).optional(),jNe=qC(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),QC(DNe),MNe=QC(ONe),NNe=QC(kNe),JC({agentEmoji:CT,agentName:CT,customInterests:jNe,fullName:CT,interests:jNe}).strict(),PNe=QC(ANe),JC({discoveryUserMessageCount:UC().optional(),finished:WC(),missingStructuredFields:qC(MNe),phase:PNe,remainingDiscoveryExchanges:UC().optional(),topicId:H().optional(),version:UC()}).strict(),JC({activeTopicId:H().optional(),discoveryStartUserMessageCount:UC().optional(),finishedAt:H().optional(),version:UC()}).strict(),JC({node:NNe,patch:JC({}).passthrough()}).strict()})),INe,LNe,RNe=o((()=>{bw(),FNe(),INe=YC([JC({kind:ew(`onboarding`),phase:PNe}),JC({kind:ew(`chat`)})]),LNe=JC({model:H().min(1),provider:H().min(1)}),JC({hint:INe.optional(),modelConfig:LNe,threadId:H().optional(),topicId:H().min(1)})})),zNe=o((()=>{})),BNe=o((()=>{})),VNe=o((()=>{})),HNe=o((()=>{})),wT,UNe,WNe,GNe,KNe,qNe,JNe,YNe,XNe,ZNe=o((()=>{bw(),wT=qC(H().trim().min(1)).max(200),UNe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),WNe=nw(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||UNe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),GNe=[`dead_end`,`superseded`,`retry`],KNe=2e3,qNe=JC({kind:QC(GNe),lesson:H().trim().min(1).max(KNe),nodeIds:wT.min(1),reason:H().trim().min(1).max(KNe),title:H().trim().min(1).max(200)}).strict(),JNe=JC({detours:qC(qNe).max(20).default([]),findingIds:wT.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:wT.default([]),title:H().trim().min(1).max(200),workVersionIds:wT.default([])}).strict(),YNe=JC({nodeIds:wT.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),XNe=JC({edgeIds:wT.default([]),nodeIds:wT.min(1)}).strict(),JC({chapters:qC(JNe).min(1).max(30),deliverableWorkId:WNe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:XNe.optional(),nextSteps:qC(YNe).max(20).default([])}).strict()})),QNe=o((()=>{})),$Ne=o((()=>{})),ePe=o((()=>{})),tPe=o((()=>{})),nPe,rPe,iPe,aPe=o((()=>{bw(),nPe=JC({apiName:H(),arguments:H(),id:H(),identifier:H(),type:ew(`default`)}),rPe=JC({clientId:H(),content:H(),createdAt:H().optional(),metadata:ZC(H(),GC()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:JC({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:ZC(H(),GC()).optional(),provider:H().optional(),reasoning:JC({content:H()}).passthrough().optional(),role:QC([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:qC(nPe).optional(),usage:ZC(H(),GC()).optional()}),iPe=JC({clientId:H(),messages:qC(rPe),sourceMessageClientId:H().optional(),status:QC([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:QC([`continuation`,`standalone`,`isolation`])}),JC({messages:qC(rPe),metadata:ZC(H(),GC()).optional(),sessionId:H(),source:QC([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:qC(iPe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{})),lPe=o((()=>{})),uPe,dPe=o((()=>{uPe=[`triage`,`backlog`,`unstarted`,`started`],[...uPe]})),fPe=o((()=>{})),pPe=o((()=>{})),mPe=o((()=>{})),hPe=o((()=>{})),gPe,_Pe,vPe=o((()=>{bw(),gPe=JC({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),_Pe=JC({citations:qC(JC({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:qC(gPe).optional(),imageSearchQueries:qC(H()).optional(),searchQueries:qC(H()).optional()})})),yPe=o((()=>{bw(),vPe(),sT(),JC({content:H().optional(),editorData:ZC(H(),GC()).nullish(),error:tT.nullish(),imageList:qC(pje).optional(),metadata:oT.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:NAe.optional(),role:H().optional(),search:_Pe.nullish(),toolCalls:qC(_je).optional(),tools:qC(vje).nullish(),traceId:H().optional(),usage:aT.optional()}).passthrough()})),bPe=o((()=>{hPe(),yPe()})),xPe=o((()=>{})),SPe=o((()=>{})),CPe=o((()=>{})),wPe=o((()=>{})),TPe=o((()=>{xPe(),SPe(),CPe(),Eje(),Cje(),wPe()})),EPe=o((()=>{sT(),bPe(),TPe()})),DPe=o((()=>{bw(),JC({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:qC(H()).optional(),title:H().optional()})})),OPe=o((()=>{})),kPe=o((()=>{})),APe,jPe=o((()=>{bw(),APe=JC({accessToken:H().optional(),token:H().optional(),type:QC([`none`,`bearer`,`oauth2`])}).optional(),JC({auth:APe,headers:ZC(H(),H()).optional(),identifier:H(),metadata:JC({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),MPe=o((()=>{})),NPe=o((()=>{jPe(),MPe()})),PPe=o((()=>{})),FPe=o((()=>{bw(),JC({fileIds:qC(H()).optional(),knowledgeIds:qC(H()).optional(),query:H(),topK:UC().optional()})})),IPe=o((()=>{})),LPe=o((()=>{})),RPe=o((()=>{})),zPe=o((()=>{})),BPe=o((()=>{})),VPe=o((()=>{})),HPe=o((()=>{})),UPe,WPe=o((()=>{UPe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),GPe=o((()=>{HPe(),WPe()})),KPe,qPe,JPe=o((()=>{KPe=`NO_REPLY`,qPe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${KPe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(qPe)})),YPe,XPe=o((()=>{bw(),YPe=JC({name:H(),url:H().url().optional()}),JC({author:YC([H(),YPe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:qC(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),ZPe=o((()=>{})),QPe=o((()=>{})),$Pe=o((()=>{})),eFe,tFe=o((()=>{eFe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],eFe[0]})),TT,nFe=o((()=>{TT=1440*60*1e3,30*TT,90*TT,7*TT})),rFe=o((()=>{QPe(),$Pe(),tFe(),nFe()})),iFe=o((()=>{})),ET,aFe,oFe,sFe,cFe,lFe,uFe,dFe=o((()=>{bw(),ET=QC([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),JC({serverDefaultHeterogeneousProfiles:qC(H().min(1)).optional()}).passthrough(),aFe=JC({audio:WC().optional(),functionCall:WC().optional(),imageOutput:WC().optional(),reasoning:WC().optional(),search:WC().optional(),video:WC().optional(),vision:WC().optional()}),oFe=JC({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(oFe.shape),sFe=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(`.`)),cFe=QC([`tool`,`params`,`internal`]),lFe=QC([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),uFe=JC({disabledParams:qC(lFe).optional(),extendParams:qC(sFe).optional(),searchImpl:cFe.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),JC({abilities:aFe.optional(),contextWindowTokens:UC().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:uFe.optional(),type:ET.optional()}),JC({abilities:aFe.optional(),config:JC({deploymentName:H().optional()}).optional(),contextWindowTokens:UC().nullish(),displayName:H().nullish(),settings:uFe.optional(),type:ET.optional()}),JC({enabled:WC(),id:H(),providerId:H(),source:QC([`builtin`,`custom`,`remote`]).optional(),type:ET.optional()})})),fFe,DT,pFe,mFe,hFe,gFe,_Fe,vFe,yFe=o((()=>{dFe(),bw(),Qw(),eT(),fFe=JC({claimedAt:H(),expiresAt:H(),id:H()}),DT=JC({claim:fFe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),pFe=DT.extend({failedAssistantMessageId:H(),kind:ew(`resume_after_rate_limit`),rateLimit:JC({rateLimitType:H().optional(),resetsAt:UC().optional()}).optional(),resume:JC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:ew(`heterogeneous_agent`),userMessageId:H()}),mFe=DT.extend({kind:ew(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),JC({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)}),hFe=DT.extend({error:H().optional(),kind:ew(`worktree_start`),operationId:H(),retryable:WC().optional(),userMessageId:H(),waitingForDevice:WC().optional()}),gFe=XC(`kind`,[pFe,mFe,hFe]),JC({claim:fFe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:hDe().optional(),rateLimit:JC({rateLimitType:H().optional(),resetsAt:UC().optional()}).optional(),reason:ew(`rate_limit`),resume:JC({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:ew(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),_Fe=JC({boundDeviceId:H().optional(),heteroEffort:tw(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:ZC(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:ZC(H(),H()).optional(),heteroPermissionMode:QC($w).optional(),heteroPermissionModeFallback:QC([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:QC([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:JC({comment:H().max(500).optional(),rating:QC([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:JC({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:JC({categoryHints:qC(H()),installedAgentIds:qC(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:qC(H()).optional(),skipReason:H().optional(),skippedAgentIds:qC(H()).optional(),status:QC([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:qC(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:QC([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:UC().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:oFe.optional(),repos:qC(H()).optional(),runningOperation:gDe().optional(),taskCallbackReservation:JC({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:gFe.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:Zw.optional()}),_Fe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),vFe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],QC(vFe)})),bFe=o((()=>{iFe(),uMe(),yFe()})),xFe=o((()=>{})),SFe=o((()=>{})),CFe=o((()=>{bw(),JC({currentStep:UC().min(1).max(7).optional(),finishedAt:H().optional(),version:UC()})})),wFe=o((()=>{})),TFe,EFe,DFe=o((()=>{bw(),TFe=JC({checked:WC(),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:qC(JC({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(),EFe=JC({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:WC()}).strict(),JC({completedAt:H().optional(),createdTaskIds:ZC(H().max(128),H().max(512)),errors:qC(EFe).max(16),id:H().min(1).max(512),providerIds:qC(H().min(1).max(128)).max(16),recommendations:qC(TFe).max(48),sourceFingerprint:H().min(1).max(2048),status:QC([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),OFe,kFe,AFe,jFe,MFe=o((()=>{bw(),OFe=JC({docsMerged:WC().optional(),moveSettingsToAvatar:WC().optional(),topic:WC().optional(),uploadFileInKnowledgeBase:WC().optional()}),kFe=JC({enableBetterCodingExperience:WC().optional(),enableAgentIdentity:WC().optional(),enableAgentGraphConfig:WC().optional(),enableArtifactDeployment:WC().optional(),enablePageCollab:WC().optional(),enableClaudeCodeSdk:WC().optional(),enableCodexAppServer:WC().optional(),enableDesktopSplitView:WC().optional(),enableHeteroSessionImport:WC().optional(),enableGroupChat:WC().optional(),enableImessage:WC().optional(),enableInputMarkdown:WC().optional(),enableMessageTextSelectionActions:WC().optional(),enableIntegrations:WC().optional(),enableOAuthApps:WC().optional(),enableProjects:WC().optional(),enableSelfLearning:WC().optional(),enableTaskVerify:WC().optional(),enableEvalCapture:WC().optional(),enableTopicBugReport:WC().optional(),enableGoals:WC().optional(),enableTopicAcceptance:WC().optional(),enableDeviceTunnel:WC().optional()}),AFe=JC({acceptOnMerge:WC().optional(),commentOnPrivateRepositories:WC().optional(),commentOnPublicRepositories:WC().optional(),wakeOnCiFailure:WC().optional(),wakeOnReview:WC().optional()}),jFe=JC({github:AFe.optional()}),JC({provider:H(),providerAccountId:H()}),JC({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:OFe.optional(),hideSyncAlert:WC().optional(),integration:jFe.optional(),lab:kFe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:QC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:qC(H()).optional(),sidebarHiddenGroupIds:qC(H()).optional(),terminalFontFamily:H().optional(),telemetry:WC().nullable(),topicGroupMode:QC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:WC().optional(),topicSortBy:QC([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:WC().optional(),workspace:JC({order:qC(H()).optional()}).optional()}).partial()})),NFe=o((()=>{})),PFe=o((()=>{})),FFe=o((()=>{})),IFe=o((()=>{})),LFe=o((()=>{})),RFe=o((()=>{})),zFe=o((()=>{})),BFe=o((()=>{})),VFe,OT,HFe=o((()=>{bw(),VFe=ZC(H(),ZC(H(),WC())),OT=JC({enabled:WC().optional(),items:VFe.optional()}).strict(),JC({content:JC({scheduledTaskSummary:WC().optional()}).strict().optional(),email:OT.optional(),im:OT.extend({platforms:ZC(H(),OT.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:OT.optional(),push:OT.optional()}).strict()})),UFe=o((()=>{})),WFe=o((()=>{})),GFe=o((()=>{})),KFe=o((()=>{})),qFe=o((()=>{bw(),NFe(),PFe(),FFe(),IFe(),LFe(),RFe(),zFe(),BFe(),HFe(),UFe(),WFe(),GFe(),KFe(),JC({defaultAgent:GC().optional(),general:GC().optional(),hotkey:GC().optional(),image:GC().optional(),keyVaults:GC().optional(),languageModel:GC().optional(),market:GC().optional(),memory:GC().optional(),notification:GC().optional(),systemAgent:GC().optional(),tool:GC().optional(),tts:GC().optional()}).passthrough().partial()})),JFe=o((()=>{FNe(),CFe(),wFe(),DFe(),MFe(),qFe()})),YFe=o((()=>{})),XFe=o((()=>{})),ZFe=o((()=>{})),QFe=o((()=>{})),$Fe,eIe=o((()=>{bw(),$Fe=QC([`personal`,`professional`,`demographic`]),JC({description:H().optional(),episodicDate:H().optional(),extractedLabels:qC(H()).optional(),labels:ZC(H(),GC()).optional(),relationship:H().optional(),role:H().optional(),type:$Fe.optional(),userMemoryId:H().optional()}),JC({description:H().optional(),episodicDate:H().optional(),extractedLabels:qC(H()).optional(),labels:ZC(H(),GC()).optional(),relationship:H().optional(),role:H().optional(),type:$Fe.optional()})})),tIe,nIe,rIe=o((()=>{tIe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(tIe),nIe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(nIe)})),iIe=o((()=>{})),aIe=o((()=>{})),oIe,sIe,cIe,kT,lIe,uIe,dIe,fIe=o((()=>{oIe=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(oIe),sIe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(sIe),cIe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(cIe),kT=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(kT),lIe=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(lIe),uIe=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(uIe),dIe=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(dIe)})),pIe=o((()=>{})),AT,jT,mIe,hIe,gIe,_Ie,vIe,yIe,bIe,xIe,SIe,CIe,wIe,TIe=o((()=>{bw(),fIe(),AT=nw(e=>typeof e==`string`?[e]:e,qC(H().trim().min(1))),jT=e=>nw(e=>typeof e==`string`?[e]:e,qC(e)),mIe=QC([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),hIe=JC({activities:UC().int().min(0).optional(),contexts:UC().int().min(0).optional(),experiences:UC().int().min(0).optional(),identities:UC().int().min(0).optional(),preferences:UC().int().min(0).optional()}),gIe=JC({end:yw().optional(),field:mIe.optional(),start:yw().optional()}),_Ie=QC([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),vIe=JC({date:yw(),selector:ew(`day`)}),yIe=JC({month:UC().int().min(1).max(12),selector:ew(`month`),year:UC().int().min(1970).max(9999)}),bIe=JC({end:yw().optional(),selector:ew(`range`),start:yw().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),xIe=JC({selector:ew(`year`),year:UC().int().min(1970).max(9999)}),SIe=QC([`today`,`yesterday`]),CIe=ADe(()=>YC([JC({selector:_Ie}),vIe,yIe,JC({anchor:YC([SIe,CIe]),offsetDays:UC().int(),selector:ew(`relativeDay`)}),bIe,xIe])),JC({categories:AT.optional(),effort:QC([`low`,`medium`,`high`]).optional(),labels:AT.optional(),layers:jT($C(kT)).optional(),queries:AT.optional(),relationships:AT.optional(),status:AT.optional(),tags:AT.optional(),timeIntent:CIe.optional(),timeRange:gIe.optional(),topK:hIe.optional(),types:AT.optional()}),wIe=QC([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),JC({include:jT(wIe).optional(),layers:qC($C(kT)).optional(),limit:UC().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:gIe.optional()})})),EIe=o((()=>{})),DIe=o((()=>{YFe(),XFe(),ZFe(),QFe(),eIe(),rIe(),iIe(),aIe(),fIe(),pIe(),TIe(),EIe()})),OIe=o((()=>{})),kIe=o((()=>{})),AIe=o((()=>{kIe()})),jIe=o((()=>{})),MIe=o((()=>{})),NIe=o((()=>{jIe(),MIe()})),PIe,FIe=o((()=>{PIe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(PIe).flatMap(([e,t])=>t.map(t=>[t,e])))})),IIe=o((()=>{})),LIe=o((()=>{bw(),JC({start:UC().finite().nonnegative()}).strict()})),RIe=o((()=>{bw(),JC({preconditions:qC(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:qC(JC({id:H().min(1),name:H().min(1),description:H().optional(),resource:JC({type:QC([`file`,`document`]),id:H().min(1)}).optional(),data:ZC(H(),KC()).optional()})).max(100).optional(),steps:qC(JC({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:qC(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`]})})})),MT,zIe,BIe=o((()=>{bw(),MT=JC({height:UC().finite(),width:UC().finite(),x:UC().finite(),y:UC().finite()}),zIe=JC({commit:H().max(200).optional(),context:ZC(H().max(100),YC([H().max(500),UC(),WC()])).optional(),env:JC({consoleErrors:qC(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:QC([`change`,`comment`]),region:MT.optional(),regionRefs:qC(JC({box:MT,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:JC({x:UC().finite(),y:UC().finite()}),targets:qC(JC({code:JC({chain:qC(JC({file:H().max(500).optional(),line:UC().int().optional(),name:H().max(200)})).max(5),column:UC().int(),file:H().max(500),line:UC().int()}).optional(),label:H().max(200),rect:MT,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:ew(1),viewport:JC({dpr:UC().positive(),height:UC().finite(),width:UC().finite()})}),JC({anchor:zIe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:JC({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`}),JC({note:H().trim().max(2e3).optional(),verdict:QC([`accept`,`send_back`])})})),VIe,NT,PT,FT,HIe,UIe,WIe,GIe,KIe,qIe,JIe,YIe=o((()=>{bw(),BIe(),VIe=[`region`,`element`,`sketch`],NT=UC().finite(),PT=JC({height:NT,width:NT,x:NT,y:NT}),FT=zIe.shape,HIe=ADe(()=>JC({children:qC(HIe).max(50),rect:PT,type:QC([`avatar`,`button`,`card`,`image`,`input`,`text`])})),UIe=JC({commit:FT.commit,context:FT.context,env:FT.env}),WIe=JC({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),GIe=JC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:UIe.optional(),kind:QC(VIe),pageMeta:WIe.optional(),rectDocument:PT,rectViewport:PT,regionRefs:FT.regionRefs,regions:qC(PT).max(6).optional(),routeKey:H().max(500),scroll:JC({x:NT,y:NT}),sketch:qC(HIe).max(50).optional(),targets:FT.targets.optional(),url:H().url().max(2e3),viewport:JC({dpr:UC().positive(),height:NT,width:NT})}),KIe=64*1024,qIe=JC({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),GIe.extend({screenshot:qIe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=KIe,{message:`Mark is too large`}),JC({content:H().trim().min(1).max(4e3).optional(),rectDocument:PT.optional(),rectViewport:PT.optional(),regionRefs:FT.regionRefs,regions:qC(PT).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),JC({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),JIe=[`pass`,`not_fixed`],JC({reason:H().trim().max(2e3).optional(),verdict:QC(JIe)}),JC({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),XIe,ZIe,IT,QIe,$Ie,eLe,LT,RT,tLe,nLe,rLe=o((()=>{bw(),XIe=[`journey`,`options`,`references`,`other`],ZIe=[`html`,`image`,`video`,`decision`],IT=H(),QIe=UC().finite(),$Ie=UC().finite().positive(),JC({hash:H().min(1).nullable(),kind:ew(`file`),path:H().min(1)}),eLe=JC({kind:ew(`file`),path:H().min(1)}),LT=H().min(1).optional(),RT=H().min(1),tLe={expected:IT.optional(),groupId:RT.optional(),h:$Ie.optional(),pageId:RT.optional(),recommended:WC().optional(),roundId:RT.optional(),source:eLe.optional(),title:IT,type:QC(ZIe).optional(),w:$Ie.optional(),x:QIe,y:QIe},nLe={desc:IT.optional(),kind:QC(XIe),pageId:RT.optional(),title:IT},XC(`type`,[JC({page:JC({name:IT.min(1)}),ref:LT,type:ew(`addPage`)}),JC({id:RT,patch:JC({name:IT.min(1)}),type:ew(`updatePage`)}),JC({id:RT,type:ew(`removePage`)}),JC({ref:LT,round:JC({batchId:RT.optional(),pageId:RT.optional(),title:IT.min(1)}),type:ew(`addRound`)}),JC({id:RT,patch:JC({title:IT.min(1)}),type:ew(`updateRound`)}),JC({group:JC(nLe),ref:LT,type:ew(`addGroup`)}),JC({id:RT,patch:JC({desc:IT,kind:QC(XIe),title:IT}).partial(),type:ew(`updateGroup`)}),JC({id:RT,type:ew(`removeGroup`)}),JC({board:JC(tLe),ref:LT,type:ew(`addBoard`)}),JC({id:RT,patch:JC({...tLe,groupId:RT.nullable(),roundId:RT.nullable()}).omit({pageId:!0,type:!0}).partial(),type:ew(`updateBoard`)}),JC({id:RT,type:ew(`removeBoard`)}),JC({edge:JC({condition:IT.optional(),from:RT,isDefault:WC().optional(),label:IT.optional(),to:RT}),ref:LT,type:ew(`addEdge`)}),JC({id:RT,type:ew(`removeEdge`)}),JC({boardId:RT,expected:IT,type:ew(`setCheck`)})])})),zT,BT,iLe,aLe,oLe=o((()=>{bw(),zT={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},BT=H().min(1).max(zT.maxPathLength+2),iLe=YC([JC({content:H(),path:BT}).strict(),JC({fileRef:H().min(1),path:BT}).strict(),JC({base64:H().min(1),path:BT}).strict(),JC({path:BT,uploaded:ew(!0)}).strict(),JC({fromCanvas:JC({canvasId:H().min(1),version:UC().int().positive().optional()}).strict(),path:BT}).strict()]),qC(JC({path:BT,size:UC().int().nonnegative()}).strict()).min(1).max(zT.maxFiles),aLe=JC({newText:H(),oldText:H().min(1),path:BT}).strict(),JC({deletes:qC(BT).max(zT.maxFiles).optional(),edits:qC(aLe).max(200).optional(),writes:qC(iLe).max(zT.maxFiles).optional()}).strict()})),sLe=o((()=>{})),cLe=o((()=>{})),lLe=o((()=>{})),uLe=o((()=>{})),dLe,fLe,pLe,mLe,hLe,gLe,_Le,vLe,yLe,bLe=o((()=>{bw(),dLe=[`new`,`reuse`],fLe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,pLe=JC({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),mLe=JC({arguments:ZC(H(),KC()),delivery:pLe.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),hLe=JC({cursor:H().nullable().optional(),deliveryStatus:JC({active:WC().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:UC().nonnegative().optional(),throttled:WC().optional()}).optional(),refreshBefore:COe({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:WC().optional()}).strict(),gLe=JC({scheme:ew(`standard_webhooks`)}).strict(),_Le=JC({autoApprove:WC(),delivery:pLe.optional(),identifier:H().regex(fLe).optional(),topicMode:QC(dLe),topicId:H().min(1).optional()}).strict(),vLe=JC({}).strict(),yLe=JC({scheme:ew(`bearer_token`)}).strict(),XC(`kind`,[JC({kind:ew(`mcp_events`),config:mLe,state:hLe,verification:gLe}),JC({kind:ew(`generic`),config:_Le,state:vLe,verification:yLe})])})),xLe=o((()=>{})),SLe=o((()=>{})),CLe=o((()=>{})),wLe=o((()=>{})),TLe=o((()=>{})),ELe=o((()=>{})),DLe=o((()=>{})),OLe=o((()=>{ELe(),DLe()})),kLe=o((()=>{})),ALe=o((()=>{})),jLe=o((()=>{})),MLe=o((()=>{aAe(),sAe(),cAe(),lAe(),hAe(),_Ae(),xAe(),SAe(),CAe(),TAe(),EAe(),DAe(),hMe(),gMe(),_Me(),vMe(),yMe(),bMe(),xMe(),CMe(),TMe(),EMe(),DMe(),OMe(),kMe(),AMe(),jMe(),Qw(),MMe(),NMe(),PMe(),UMe(),qMe(),JMe(),YMe(),jAe(),XMe(),pNe(),mNe(),hNe(),gNe(),vNe(),TNe(),ENe(),RNe(),zNe(),BNe(),VNe(),HNe(),ZNe(),QNe(),$Ne(),ePe(),tPe(),aPe(),oPe(),sPe(),cPe(),lPe(),dPe(),fPe(),pPe(),mPe(),EPe(),DPe(),OPe(),kPe(),NPe(),PPe(),FPe(),IPe(),LPe(),RPe(),zPe(),vPe(),BPe(),VPe(),GPe(),JPe(),XPe(),ZPe(),rFe(),Yje(),bFe(),xFe(),SFe(),cMe(),JFe(),DIe(),OIe(),AIe(),NIe(),FIe(),IIe(),LIe(),RIe(),BIe(),YIe(),IAe(),rLe(),oLe(),sLe(),cLe(),lLe(),uLe(),eT(),bLe(),xLe(),SLe(),CLe(),wLe(),TLe(),OLe(),cMe(),DIe(),kLe(),ALe(),jLe()})),NLe=o((()=>{})),PLe,VT,FLe=o((()=>{PLe=[`*`,`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(PLe),VT=(e,t)=>({read:e,write:t}),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,null),VT(`knowledge:read`,`knowledge:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,null),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`model:read`,`model:write`),VT(`model:read`,`model:write`),VT(`chat:read`,null),VT(`chat:read`,`chat:write`),VT(`knowledge:read`,`knowledge:write`),VT(`model:read`,`model:write`),VT(`agent:read`,null),VT(`knowledge:read`,`knowledge:write`),VT(`knowledge:read`,`knowledge:write`),VT(`knowledge:read`,`knowledge:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`user:read`,`user:write`),VT(`file:read`,`file:write`),VT(`file:read`,`file:write`),VT(`chat:read`,`chat:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`chat:read`,`chat:write`),VT(`knowledge:read`,`knowledge:write`),VT(`knowledge:read`,`knowledge:write`),VT(`agent:read`,`agent:write`),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`agent:read`,`agent:write`),VT(`knowledge:read`,`knowledge:write`),VT(`user:read`,`user:write`),VT(`chat:read`,`chat:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`chat:read`,null),VT(`chat:read`,null),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,`agent:write`),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`chat:read`,`chat:write`),VT(`file:read`,`file:write`),VT(`usage:read`,null),VT(`user:read`,`user:write`),VT(`user:read`,`user:write`),VT(`user:read`,`user:write`),VT(`agent:read`,`agent:write`),VT(`agent:read`,null),VT(`agent:read`,`agent:write`),VT(`workspace:read`,`workspace:write`),VT(`workspace:read`,null),VT(`workspace:read`,null),VT(`workspace:read`,`workspace:write`)})),HT,ILe=o((()=>{HT=1024*1024,10*HT,10*HT,10*HT,10*HT,50*HT,50*HT,20*HT,5*HT,20*HT,2*HT,100*HT})),LLe=o((()=>{}));function RLe(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=VLe.test(e[0]);zLe.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(BLe,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(BLe,`$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 UT(...e){return RLe(Array.from(Array.isArray(e[0])?e[0]:e))}var zLe,BLe,VLe,HLe=o((()=>{zLe=RegExp(`^[^/:\\d][^/:]*:/*$`),BLe=RegExp(`^([^/:\\d][^/:]*):/*`),VLe=/^[^/:]+:\d+(?:[/?#]|$)/})),ULe,WT,WLe,GLe,GT,KT,KLe,qLe,JLe,YLe,XLe,ZLe,QLe=o((()=>{HLe(),ULe=`https://app.lobehub.com`,WT=`https://lobehub.com`,WLe=WT,GLe=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},GT=`https://github.com/lobehub/lobehub`,UT(GT,`issues/new/choose`),KT=UT(WT,`/docs`),KLe=UT(KT,`/usage`),qLe=UT(KT,`/self-hosting`),UT(qLe,`/server-database`),`${KT}`,UT(KLe,`/plugins/development`),UT(qLe,`/advanced/upstream-sync`),UT(WT,`blog`),UT(GT,`issues/new/choose`),UT(WT,`/privacy`),UT(WT,`/terms`),JLe=`https://github.com/lobehub/lobe-chat-agents`,UT(JLe,`issues/new`),YLe=(e,t)=>`/agent/${e}`,XLe=(e,t,n)=>UT(`/agent`,e,t),ZLe=(e,t)=>UT(`/group`,e,t),UT(GT,`releases`),UT(WT,`changelog`),UT(WT,`/downloads`),UT(WT,`/mobile`)})),$Le=o((()=>{QLe()})),eRe=o((()=>{$Le()})),tRe=o((()=>{})),nRe,qT,rRe,iRe,aRe=o((()=>{nRe=e=>e.join(`+`),qT={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},rRe=[{electronAccelerator:`Alt+Shift+Space`,id:qT.QuickComposer,uiKeys:nRe([`alt`,`shift`,`space`])},{electronAccelerator:``,id:qT.QuickChat,uiKeys:``},{electronAccelerator:``,id:qT.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:qT.OpenSettings,nonEditable:!0,uiKeys:nRe([`mod`,`comma`])}],iRe=rRe.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),rRe.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),oRe=o((()=>{aRe(),iRe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),sRe,cRe,lRe,uRe=o((()=>{Xw(),sRe={},cRe=Uw,lRe=`/avatars/lobe-ai.png`})),JT=o((()=>{Xw()})),dRe,fRe,pRe,mRe,hRe=o((()=>{Xw(),uRe(),JT(),dRe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},fRe={model:Kw,provider:qw},pRe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:fRe,searchMode:`auto`,selfIteration:{enabled:!1}},mRe={chatConfig:pRe,model:Kw,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:qw,systemRole:``,tts:dRe}})),gRe=o((()=>{})),_Re=o((()=>{})),vRe,yRe,bRe,xRe,SRe,CRe,wRe,TRe,ERe,DRe,ORe,kRe,ARe,jRe,MRe,NRe,PRe,FRe=o((()=>{vRe=`@lobehub/lobehub`,yRe=`2.3.4`,bRe=`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.`,xRe=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],SRe=`https://github.com/lobehub/lobehub`,CRe={url:`https://github.com/lobehub/lobehub/issues/new/choose`},wRe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},TRe=`LobeHub <i@lobehub.com>`,ERe=[`./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`],DRe=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],ORe={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`},kRe={"@types/react":`19.2.13`,"baseline-browser-mapping":`2.10.31`,"better-auth":`1.6.33`,"drizzle-orm":`^0.45.2`,"fast-xml-parser":`5.4.2`,lexical:`0.42.0`,"pdfjs-dist":`5.4.530`,"stylelint-config-clean-order":`7.0.0`},ARe=JSON.parse(`{"@aiden0z/pptx-renderer":"^1.2.4","@anthropic-ai/sdk":"^0.73.0","@atlaskit/pragmatic-drag-and-drop":"^1.8.1","@atlaskit/pragmatic-drag-and-drop-hitbox":"^1.2.0","@aws-sdk/client-bedrock-runtime":"^3.1107.0","@aws-sdk/client-s3":"~3.932.0","@aws-sdk/s3-request-presigner":"~3.932.0","@azure-rest/ai-inference":"1.0.0-beta.5","@azure/core-auth":"^1.11.0","@better-auth/expo":"1.6.33","@better-auth/passkey":"1.6.33","@cfworker/json-schema":"^4.1.1","@chat-adapter/discord":"~4.38.0","@chat-adapter/slack":"~4.38.0","@chat-adapter/state-ioredis":"~4.38.0","@chat-adapter/telegram":"~4.38.0","@codemirror/streamparser":"^6.0.0","@codesandbox/sandpack-react":"^2.20.0","@composio/core":"^0.10.0","@discordjs/rest":"^2.6.3","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@emoji-mart/data":"^1.2.1","@emoji-mart/react":"^1.1.1","@emotion/react":"^11.14.0","@fal-ai/client":"^1.10.1","@floating-ui/react":"^0.27.20","@formkit/auto-animate":"^0.9.0","@google/genai":"^2.24.0","@henrygd/queue":"^1.2.0","@huggingface/inference":"^4.13.25","@icons-pack/react-simple-icons":"^13.15.1","@khmyznikov/pwa-install":"0.3.9","@larksuiteoapi/node-sdk":"^1.73.0","@lexical/list":"0.42.0","@lexical/rich-text":"0.42.0","@lexical/utils":"^0.42.0","@lobechat/agent-address-linq":"workspace:*","@lobechat/agent-address-mail":"workspace:*","@lobechat/agent-gateway-client":"workspace:*","@lobechat/agent-mock":"workspace:*","@lobechat/agent-runtime":"workspace:*","@lobechat/agent-signal":"workspace:*","@lobechat/agent-templates":"workspace:*","@lobechat/artifact-template":"workspace:*","@lobechat/builtin-agents":"workspace:*","@lobechat/builtin-skills":"workspace:*","@lobechat/builtin-tool-acceptance-evidence":"workspace:*","@lobechat/builtin-tool-activator":"workspace:*","@lobechat/builtin-tool-agent-account":"workspace:*","@lobechat/builtin-tool-agent-builder":"workspace:*","@lobechat/builtin-tool-agent-documents":"workspace:*","@lobechat/builtin-tool-agent-management":"workspace:*","@lobechat/builtin-tool-agent-signal":"workspace:*","@lobechat/builtin-tool-artboard":"workspace:*","@lobechat/builtin-tool-attachments":"workspace:*","@lobechat/builtin-tool-auv":"workspace:*","@lobechat/builtin-tool-brief":"workspace:*","@lobechat/builtin-tool-browser":"workspace:*","@lobechat/builtin-tool-calculator":"workspace:*","@lobechat/builtin-tool-canvas":"workspace:*","@lobechat/builtin-tool-channel":"workspace:*","@lobechat/builtin-tool-claude-code":"workspace:*","@lobechat/builtin-tool-cloud-sandbox":"workspace:*","@lobechat/builtin-tool-creds":"workspace:*","@lobechat/builtin-tool-dashboard":"workspace:*","@lobechat/builtin-tool-goal":"workspace:*","@lobechat/builtin-tool-group-agent-builder":"workspace:*","@lobechat/builtin-tool-group-management":"workspace:*","@lobechat/builtin-tool-image-generation":"workspace:*","@lobechat/builtin-tool-knowledge-base":"workspace:*","@lobechat/builtin-tool-lobe-agent":"workspace:*","@lobechat/builtin-tool-local-system":"workspace:*","@lobechat/builtin-tool-mcp-events":"workspace:*","@lobechat/builtin-tool-memory":"workspace:*","@lobechat/builtin-tool-message":"workspace:*","@lobechat/builtin-tool-notebook":"workspace:*","@lobechat/builtin-tool-page-agent":"workspace:*","@lobechat/builtin-tool-remote-device":"workspace:*","@lobechat/builtin-tool-self-iteration":"workspace:*","@lobechat/builtin-tool-skill-maintainer":"workspace:*","@lobechat/builtin-tool-skill-store":"workspace:*","@lobechat/builtin-tool-skills":"workspace:*","@lobechat/builtin-tool-task":"workspace:*","@lobechat/builtin-tool-user-interaction":"workspace:*","@lobechat/builtin-tool-verify":"workspace:*","@lobechat/builtin-tool-video-generation":"workspace:*","@lobechat/builtin-tool-web-browsing":"workspace:*","@lobechat/builtin-tool-web-onboarding":"workspace:*","@lobechat/builtin-tool-webhook":"workspace:*","@lobechat/builtin-tool-work":"workspace:*","@lobechat/builtin-tools":"workspace:*","@lobechat/business-config":"workspace:*","@lobechat/business-const":"workspace:*","@lobechat/business-knowledge":"workspace:*","@lobechat/business-model-bank":"workspace:*","@lobechat/business-model-runtime":"workspace:*","@lobechat/canvas":"workspace:*","@lobechat/chat-adapter-dingtalk":"workspace:*","@lobechat/chat-adapter-feishu":"workspace:*","@lobechat/chat-adapter-imessage":"workspace:*","@lobechat/chat-adapter-line":"workspace:*","@lobechat/chat-adapter-qq":"workspace:*","@lobechat/chat-adapter-wechat":"workspace:*","@lobechat/chat-adapter-wecom":"workspace:*","@lobechat/config":"workspace:*","@lobechat/connector-data":"workspace:*","@lobechat/const":"workspace:*","@lobechat/context-engine":"workspace:*","@lobechat/conversation-flow":"workspace:*","@lobechat/database":"workspace:*","@lobechat/desktop-bridge":"workspace:*","@lobechat/device-control":"workspace:*","@lobechat/device-gateway-client":"workspace:*","@lobechat/edge-config":"workspace:*","@lobechat/editor-runtime":"workspace:*","@lobechat/electron-client-ipc":"workspace:*","@lobechat/electron-server-ipc":"workspace:*","@lobechat/env":"workspace:*","@lobechat/eval-dataset-parser":"workspace:*","@lobechat/eval-rubric":"workspace:*","@lobechat/fetch-sse":"workspace:*","@lobechat/file-loaders":"workspace:*","@lobechat/heterogeneous-agents":"workspace:*","@lobechat/html-artifact":"workspace:*","@lobechat/llm-generation-tracing":"workspace:*","@lobechat/local-file-shell":"workspace:*","@lobechat/markdown-patch":"workspace:*","@lobechat/mecha":"workspace:*","@lobechat/memory-user-memory":"workspace:*","@lobechat/model-runtime":"workspace:*","@lobechat/observability-otel":"workspace:*","@lobechat/openapi":"workspace:*","@lobechat/prompts":"workspace:*","@lobechat/python-interpreter":"workspace:*","@lobechat/shared-tool-ui":"workspace:*","@lobechat/ssrf-safe-fetch":"workspace:*","@lobechat/tool-runtime":"workspace:*","@lobechat/tool-view-model":"workspace:*","@lobechat/utils":"workspace:*","@lobechat/web-crawler":"workspace:*","@lobechat/widget-spec":"workspace:*","@lobehub/analytics":"^1.6.4","@lobehub/charts":"^6.0.0","@lobehub/desktop-ipc-typings":"workspace:*","@lobehub/editor":"7.2.1","@lobehub/icons":"^6.15.2","@lobehub/market-sdk":"0.46.0","@lobehub/tts":"^6.1.0","@lobehub/ui":"^6.18.0","@modelcontextprotocol/client":"~2.4.0","@modelcontextprotocol/ext-apps":"^2.0.3","@neondatabase/serverless":"^1.1.0","@next/third-parties":"^16.3.0","@opentelemetry/auto-instrumentations-node":"^0.76.0","@opentelemetry/exporter-jaeger":"^2.10.0","@opentelemetry/resources":"^2.10.0","@opentelemetry/sdk-metrics":"^2.10.0","@opentelemetry/winston-transport":"^0.28.0","@pierre/trees":"1.0.0-beta.3","@react-pdf/renderer":"4.3.2","@react-three/drei":"^10.7.8","@react-three/fiber":"^9.7.0","@saintno/comfyui-sdk":"^0.2.53","@stylexjs/stylex":"0.19.1","@t3-oss/env-core":"^0.13.11","@t3-oss/env-nextjs":"^0.13.11","@tanstack/react-query":"^5.101.4","@trpc/client":"^11.18.0","@trpc/next":"^11.18.0","@trpc/react-query":"^11.18.0","@trpc/server":"^11.18.0","@upstash/qstash":"2.12.0","@upstash/workflow":"^0.2.23","@vercel/analytics":"^1.6.1","@vercel/edge-config":"^1.5.1","@vercel/functions":"^3.9.2","@vercel/speed-insights":"^1.3.1","@virtuoso.dev/masonry":"^1.4.3","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/addon-webgl":"^0.18.0","@xterm/xterm":"^5.5.0","@xyflow/react":"^12.11.5","@zumer/snapdom":"^2.24.10","ahooks":"^3.9.7","async-retry":"^1.3.3","bcryptjs":"^3.0.3","better-auth":"1.6.33","brotli-wasm":"^3.0.1","buffer.js":"npm:buffer@^6.0.3","chat":"~4.38.0","chroma-js":"^3.3.0","class-variance-authority":"^0.7.1","cmdk":"^1.1.1","cookie":"^1.1.1","countries-and-timezones":"^3.10.0","d3-dsv":"^3.0.1","dayjs":"^1.11.21","debug":"^4.4.3","diff":"^8.0.4","discord-api-types":"^0.38.53","docx-preview":"^0.4.0","drizzle-orm":"^0.45.2","drizzle-zod":"^0.8.3","entities":"^8.1.0","epub2":"^3.0.2","es-toolkit":"^1.50.0","exceljs":"^4.4.0","expo-server-sdk":"^6.1.0","fast-deep-equal":"^3.1.3","fflate":"^0.8.3","ffmpeg-static":"^5.3.0","file-type":"^21.3.4","fuse.js":"^7.5.0","gray-matter":"^4.0.3","hono":"^4.13.1","html-to-text":"^9.0.5","i18next":"^25.10.10","i18next-browser-languagedetector":"^8.2.1","i18next-resources-to-backend":"^1.2.3","immer":"^11.1.16","ioredis":"^5.11.1","jose":"^6.2.8","js-sha256":"^0.11.1","jsondiffpatch":"^0.7.6","jsonl-parse-stringify":"^1.0.3","keygrip":"^1.1.0","langfuse":"^3.38.20","langfuse-core":"^3.38.20","lexical":"0.42.0","local-replica":"^0.1.1","lucide-react":"^1.31.0","mammoth":"^1.12.1","marked":"^17.0.6","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"}`),jRe={"@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`},MRe=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,NRe={access:`public`,registry:`https://registry.npmjs.org`},PRe={name:vRe,version:yRe,description:bRe,keywords:xRe,homepage:SRe,bugs:CRe,repository:wRe,license:`MIT`,author:TRe,sideEffects:ERe,workspaces:DRe,scripts:ORe,"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:kRe,dependencies:ARe,devDependencies:jRe,packageManager:MRe,publishConfig:NRe}})),YT,XT,ZT=o((()=>{Xw(),FRe(),YT=PRe.version,XT=Hw!==`LobeHub`})),QT,$T,eE,tE,nE,IRe,LRe=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`},IRe=[{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]}]})),RRe=o((()=>{LRe(),IRe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),zRe=o((()=>{})),BRe=o((()=>{Xw(),JT()})),VRe=o((()=>{})),HRe=o((()=>{})),URe,rE,WRe=o((()=>{Xw(),BRe(),JT(),URe={model:Kw,provider:qw},rE={model:Jw,provider:Yw},rE.model,rE.provider,rE.model,rE.provider,rE.model,rE.provider,{...URe},Reflect.get(Uke,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(Uke,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),GRe=o((()=>{})),KRe=o((()=>{})),iE=o((()=>{hRe(),gRe(),_Re(),RRe(),zRe(),BRe(),JT(),VRe(),HRe(),WRe(),GRe(),KRe()})),qRe=o((()=>{iE(),new Date().toISOString()})),JRe=o((()=>{})),YRe=o((()=>{Object.freeze([])})),XRe=o((()=>{})),ZRe,QRe,$Re,eze=o((()=>{ZRe=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],QRe=2*1024*1024*1024-1,`${QRe}`,$Re=64*1024*1024,`${$Re}`,[...ZRe]})),tze,nze=o((()=>{Xw(),`${Hw}`,tze=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(tze)})),rze,ize=o((()=>{rze=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(rze)})),aze=o((()=>{})),oze=o((()=>{})),sze=o((()=>{})),cze=o((()=>{})),lze=o((()=>{})),uze=o((()=>{})),dze,fze=o((()=>{uc(),dze=(e,t)=>fs({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),pze,mze,hze=o((()=>{uRe(),iE(),fze(),pze=`agent`,mze={config:mRe,createdAt:new Date,id:``,meta:sRe,model:mRe.model,type:pze,updatedAt:new Date},dze(mze,{id:`inbox`,meta:{avatar:lRe}})})),gze=o((()=>{})),_ze=o((()=>{})),vze=o((()=>{})),yze=o((()=>{})),bze=o((()=>{})),xze=o((()=>{})),Sze=o((()=>{})),Cze=o((()=>{})),wze,Tze,Eze=o((()=>{Xw(),iE(),wze={activities:3,contexts:0,experiences:0,preferences:3},Tze={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...wze}},Tze.high.contexts})),Dze=o((()=>{})),Oze=o((()=>{})),aE=o((()=>{cxe(),uxe(),dxe(),vxe(),NLe(),FLe(),ILe(),LLe(),eRe(),tRe(),oRe(),aRe(),qRe(),JRe(),YRe(),XRe(),eze(),nze(),ize(),aze(),oze(),$Le(),sze(),uRe(),cze(),lze(),uze(),hze(),iE(),gze(),_ze(),vze(),yze(),bze(),xze(),Sze(),QLe(),Cze(),Eze(),ZT(),Dze(),Oze()}));aE();var oE=[[`LobeHub Cloud`,Vw,`LobeHub Cloud`],[`LobeHub`,Hw,`LobeHub`],[`LobeChat`,Hw,`LobeHub`],[`Lobe AI`,cRe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),kze=new Map(oE),Aze=`Lobe`,jze=oE.length?RegExp(`(?<!@)(${oE.map(([e])=>e).join(`|`)})`,`g`):void 0,Mze=oE.length>0,Nze=`brandStrings`,Pze=e=>!jze||!e.includes(Aze)?e:e.replaceAll(jze,e=>kze.get(e)??e),Fze={name:Nze,process:e=>typeof e==`string`?Pze(e):e,type:`postProcessor`},Ize=Mze?{postProcess:[Nze]}:{},Lze=e=>Mze?e.use(Fze):e,Rze=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},zze=c({default:()=>Bze}),Bze,Vze=o((()=>{Bze={"directMention.progress.elapsed":`{{time}}`,"directMention.progress.running":`Running`,"directMention.progress.thinking":`Thinking…`,"directMention.progress.usingTool":`Using {{name}}…`,"directMention.progress.viewFullRecord":`View full record`,"sharePage.app.linkCopied":`Link copied`,"heteroAgent.antigravityQuota.title":`Antigravity quota`,"heteroAgent.antigravityQuota.tooltip":`View Antigravity model quotas`,"heteroAgent.antigravityQuota.fiveHour":`5 hours`,"heteroAgent.antigravityQuota.remainingAmount":`{{amount}} remaining`,"heteroAgent.antigravityQuota.unknown":`Unknown`,"heteroAgent.antigravityQuota.disabled":`Unavailable`,"heteroAgent.antigravityQuota.resetUnconfirmed":`Reset time reached. Refresh to check the latest quota.`,"heteroAgent.antigravityQuota.stale":`Showing the last query. Refresh to confirm current quota.`,"heteroAgent.antigravityQuota.authRequired":`Sign in with agy on the execution device, then try again.`,"heteroAgent.antigravityQuota.cliNotFound":`Antigravity CLI was not found on this device. Install agy, then refresh.`,"heteroAgent.antigravityQuota.unsupported":`Update agy to a version that supports structured quota queries, then refresh.`,"heteroAgent.antigravityQuota.timeout":`The quota query timed out. Check the device connection and try again.`,"heteroAgent.antigravityQuota.error":`Could not query Antigravity quota. Check the device and try again.`,"sharePage.app.open":`Open app`,"sharePage.app.help":`Trouble opening the app?`,"sharePage.app.helpDescription":`If this browser prevents opening the app, use its menu to open this page in your system browser. You can also keep reading here.`,"sharePage.app.browserGuide.dismiss":`Got it`,"sharePage.app.browserGuide.stepMenu":`Tap ··· in the top-right corner`,"sharePage.app.browserGuide.stepOpen":`Choose “Open in Browser” or a similar option`,"sharePage.app.browserGuide.title.dingtalk":`DingTalk can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.qq":`QQ can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.wechat":`WeChat can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.browserGuide.title.weibo":`Weibo can’t open the app directly. Open this page in your browser to continue.`,"sharePage.app.fallback.desc":`You may not have the LobeHub app yet, or this browser blocked the jump.`,"sharePage.app.fallback.dismiss":`Keep reading`,"sharePage.app.fallback.download":`Get the app`,"sharePage.app.fallback.title":`App didn’t open?`,newAntigravityAgent:`Add Antigravity`,"backgroundActivity.alertDesc":`{{name}} is using {{memory}} of memory and {{cpu}} CPU.`,"backgroundActivity.cpu":`CPU`,"backgroundActivity.details":`View details`,"backgroundActivity.empty":`No background activity`,"backgroundActivity.emptyDesc":`Dev servers, shells, and agents started from conversations appear here while they run.`,"backgroundActivity.highUsage":`High resource usage`,"backgroundActivity.memory":`Memory`,"backgroundActivity.processCount_one":`{{count}} process`,"backgroundActivity.processCount_other":`{{count}} processes`,"backgroundActivity.retry":`Retry`,"backgroundActivity.shared":`Shared / unassigned`,"backgroundActivity.stop":`Stop`,"backgroundActivity.stopFailed":`Could not stop this activity. Try again.`,"backgroundActivity.title":`Background activity`,"backgroundActivity.topic":`Conversation`,"backgroundActivity.unavailable":`Resource data is unavailable. Displayed values may be out of date.`,"heteroAgent.claudeQuota.accountNotSignedIn":`The Claude Code account {{account}} isn't signed in on this device. Sign in to it from Manage accounts, or switch to another account.`,"heteroAgent.claudeQuota.accountResolveFailed":`Couldn't look up this Claude Code account's login on this device. Try again, or switch to another account.`,"heteroAgent.claudeQuota.manage.add":`Add account`,"heteroAgent.claudeQuota.manage.addHintDesktop":`Each account signs in on this device; runs use the account you pick.`,"heteroAgent.claudeQuota.manage.loginFailed":`Sign-in didn't finish. Try again.`,"heteroAgent.claudeQuota.manage.loginSuccess":`Signed in as {{account}}`,"heteroAgent.claudeQuota.manage.loginWaiting":`Finish signing in in your browser…`,"heteroAgent.claudeQuota.manage.notSignedIn":`Not signed in on this device`,"heteroAgent.claudeQuota.manage.notSignedInOnDevice":`That account isn't signed in on this device yet. Sign in there first.`,"heteroAgent.claudeQuota.manage.switchFailed":`Couldn't switch the account. Try again.`,"heteroAgent.claudeQuota.manage.signIn":`Sign in`,"heteroAgent.claudeQuota.noRunnableAccount":`None of the Claude Code accounts in this agent's rotation are signed in on this device. Sign one in from Manage accounts, or add a signed-in account to the rotation.`,"processExplorer.copyPid":`Copy PID`,"processExplorer.filter":`Filter`,"processExplorer.live":`Live · updates every 2 s`,"processExplorer.name":`Name`,"processExplorer.processes":`Processes`,"processExplorer.gpu":`GPU`,"processExplorer.main":`Main process`,"processExplorer.pid":`PID`,"processExplorer.title":`Process Explorer`,"processExplorer.updated":`Updated {{time}}`,"processExplorer.utility":`Utility`,"processExplorer.window":`Window`,"response.contentSafetyNotice":`This reply was limited for content safety reasons. If this happens often, you may temporarily lose access to this model.`,"goalBatch.cell.accepted":`Accepted`,"goalBatch.cell.backlog":`Not run`,"goalBatch.cell.done":`Done`,"goalBatch.cell.human":`Needs you`,"goalBatch.cell.reopened":`Reopened in v{{revision}}`,"goalBatch.cell.runIn":`Runs in v{{revision}}`,"goalBatch.cell.running":`Running`,"goalBatch.cell.stale":`Superseded`,"goalBatch.cell.tooltip":`Wave {{wave}} · item {{index}} · {{title}} · {{state}}`,"goalBatch.enter":`Open`,"goalBatch.planPanel.compare":`Compare versions`,"goalBatch.planPanel.compareTitle":`Compare plan versions`,"goalBatch.planPanel.forked":`A forked plan: it starts again from the batch’s original outline instead of revising the previous version`,"goalBatch.planPanel.latest":`v{{revision}} · latest`,"goalBatch.planPanel.same":`Same as v{{base}}`,"goalBatch.probes.attemptNext":`Next run`,"goalBatch.probes.attemptOf":`Run {{current}} / {{total}}`,"goalBatch.probes.attemptPrevious":`Previous run`,"goalBatch.probes.cell.backlog":`Not started`,"goalBatch.probes.cell.done":`Done`,"goalBatch.probes.cell.human":`Needs you`,"goalBatch.probes.cell.running":`In progress`,"goalBatch.probes.cell.stale":`Superseded`,"goalBatch.gateCheck.axes_covered":`The trials covered every declared variant`,"goalBatch.gateCheck.count":`{{count}} / {{total}}`,"goalBatch.gateCheck.no_open_decision":`No decision in the batch is waiting on a person`,"goalBatch.gateCheck.plan_written":`The batch plan is written`,"goalBatch.gateCheck.uncovered":`Not covered: {{values}}`,"goalBatch.gateCheck.interventions_accounted":`Every person’s intervention was accounted for`,"goalBatch.gateCheck.reverified":`The delivered units passed the retro’s criteria`,"goalBatch.retro.added":`{{count}} new`,"goalBatch.retro.changes":`{{count}} steps changed`,"goalBatch.retro.criteria":`{{block}} blocking · {{warn}} advisory`,"goalBatch.retro.hint":`What the execution ran into, kept in two layers: experience goes into the plan skill every unit loads, criteria go into the verifier every unit is judged on. The gate opens only after the retro.`,"goalBatch.retro.interventionsShort":`{{accounted}}/{{total}} accounted`,"goalBatch.retro.loosened":`{{count}} loosened, needs you`,"goalBatch.retro.mark.blocked":`Unaccounted`,"goalBatch.retro.mark.done":`Exp v{{skill}} · Crit v{{verifier}}`,"goalBatch.retro.mark.pending":`Retro owed`,"goalBatch.retro.mark.pendingHint":`This wave finished; its retro has not run yet`,"goalBatch.retro.mark.running":`In retro`,"goalBatch.retro.skill":`Experience · plan skill v{{version}}`,"goalBatch.retro.status.blocked":`Interventions not accounted for`,"goalBatch.retro.status.done":`Retro done`,"goalBatch.retro.status.running":`In retro`,"goalBatch.retro.summary.interventions":`{{accounted}}/{{total}} interventions accounted for`,"goalBatch.retro.summary.reverify":`Re-verified {{passed}}/{{total}}`,"goalBatch.retro.summary.skill":`Plan skill v{{version}}: {{count}} steps changed`,"goalBatch.retro.summary.verifier":`Verifier v{{version}}: {{added}} added, {{loosened}} loosened`,"goalBatch.retro.title":`Retro · cold start`,"goalBatch.retro.titleWave":`Retro · wave {{wave}} sent back`,"goalBatch.retro.verifier":`Criteria · verifier v{{version}}`,"goalBatch.gateCheck.units_settled":`Every unit this round finished`,"goalBatch.gateCheck.units_succeeded":`Every unit this round ran through on its own — none failed or was sent back`,"goalBatch.gatePanel.learned":`What this gate taught`,"goalBatch.gatePanel.learnedHint":`Written into the plan every later unit loads, and added to the acceptance each of them must pass.`,"goalBatch.gatePanel.checks":`Checks`,"goalBatch.gatePanel.checksAt":`Verdict {{index}} · {{time}}`,"goalBatch.gatePanel.checksPlanned":`Not judged yet — these will be checked`,"goalBatch.gatePanel.question":`Revise the plan and re-probe, or fork a fresh one for the units that broke?`,"goalBatch.gatePanel.releaseQuestion":`Every check passed. Review the deliveries and the plan — release the next wave, or send the plan back to revise?`,"goalBatch.gatePanel.history":`Verdicts`,"goalBatch.gatePanel.history.blocked":`Held: {{checks}}`,"goalBatch.gatePanel.history.empty":`No verdict yet`,"goalBatch.gatePanel.history.released":`Released wave {{wave}} ({{count}} units)`,"goalBatch.gatePanel.history.unrecorded":`Judged before verdicts were recorded — no detail kept`,"goalBatch.gatePanel.history.unit":`“{{title}}” failed its own check — the batch was held at once`,"goalBatch.gatePanel.next.checking":`Every unit finished — judged on the coordinator’s next step`,"goalBatch.gatePanel.next.human":`Waiting on you: revise the plan, or fork a fresh one for the units that broke`,"goalBatch.gatePanel.next.release":`Waiting on you: review the deliveries and the plan, then release the next wave or revise the plan`,"goalBatch.gatePanel.next.locked":`Judged automatically once this round’s {{count}} units finish`,"goalBatch.gatePanel.next.passed":`Released wave {{wave}} ({{count}} units) — judged again once it finishes`,"goalBatch.gatePanel.next.passedDone":`The whole roster is released`,"goalBatch.gatePanel.next.distilling":`The main Agent is updating the plan from what the probes ran into — judged once it is done`,"goalBatch.gatePanel.next.revising":`The main Agent is rewriting the plan from your correction`,"goalBatch.gatePanel.next.rejected":`Reopened as v{{revision}} on your decision`,"goalBatch.gatePanel.verdict":`Verdict`,"goalBatch.gate.checkCount":`{{count}} checks`,"goalBatch.gate.hintSection.execution":`Execution`,"goalBatch.gate.hintSection.retro":`Retro & criteria`,"goalBatch.gate.hintTitle":`Checked before the rest are released:`,"goalBatch.gate.status.checking":`Judging`,"goalBatch.gate.status.human":`Needs your decision`,"goalBatch.gate.status.locked":`Not judged`,"goalBatch.gate.status.passed":`Passed`,"goalBatch.gate.status.rejected":`Sent back`,"goalBatch.gate.title":`Release gate`,"goalBatch.gate.titleRound":`Release gate · v{{revision}}`,"goalBatch.overviewCount":`Total: {{count}} batches · {{nodes}} nodes`,"goalBatch.probes.hint":`{{count}} representative units run first — the most different ones and the hardest. The rest are released only once every one of them runs through automatically and you approve the release.`,"goalBatch.probes.status.done":`Trials done`,"goalBatch.probes.status.pending":`Not started`,"goalBatch.probes.status.running":`Trials running`,"goalBatch.probes.title":`Cold start · trials`,"goalBatch.probes.rowLabel":`Trials`,"goalBatch.redispatch.foot":`{{count}} units · on v{{revision}}`,"goalBatch.redispatch.fromProbe":`Reopened from trial {{index}}`,"goalBatch.redispatch.fromRound":`Reopened from v{{revision}}`,"goalBatch.redispatch.fromWave":`Reopened from wave {{wave}}, item {{index}}`,"goalBatch.redispatch.title":`Waves · v{{revision}}`,"goalBatch.redispatch.labelRound":`v{{revision}}`,"goalBatch.redispatch.reopenedRow":`Reopened`,"goalBatch.round.foot":`{{count}} units`,"goalBatch.round.reviseEdge":`Sent back · revise`,"goalBatch.round.title":`Round {{revision}}`,"goalBatch.status.done":`All done`,"goalBatch.status.held":`Waiting for your release`,"goalBatch.status.human":`{{count}} need you`,"goalBatch.status.pending":`Not started`,"goalBatch.status.running":`In progress`,"goalBatch.status.stale":`{{count}} superseded`,"goalBatch.skill.forked":`Plan skill v{{revision}} · new class`,"goalBatch.skill.title":`Plan skill v{{revision}}`,"goalBatch.template.forked":`Plan v{{revision}} · new class`,"goalBatch.template.title":`Plan v{{revision}}`,"goalBatch.templatePlain":`Batch plan`,"goalBatch.title":`Repeated batch`,"goalBatch.waves.foot":`{{count}} units / {{waves}} waves`,"goalBatch.waves.row":`W{{number}}`,"goalBatch.waves.title":`Waves`,"goalExperiment.continuedFrom":`Continued exploration`,"goalExperiment.drill":`Explore inside`,"goalExperiment.drillNamed":`Explore inside: {{title}}`,"goalExperiment.location":`Exploration location`,"goalExperiment.expandScope":`Expand this view`,"goalExperiment.collapseScope":`Collapse this view`,"goalExperiment.emptyGraph":`This experiment has no internal nodes yet.`,"goalExperiment.overviewCount":`Total: {{count}} experiments · {{nodes}} nodes`,"goalExperiment.expandAll":`Expand all`,"goalExperiment.collapseAll":`Collapse all`,"goalExperiment.collapseNamed":`Collapse experiment: {{title}}`,"goalExperiment.projectedRelation":`{{relation}} (internal link)`,"goalExperiment.baseline":`Starting experiment · no parent experiment`,"goalExperiment.noResult":`No result has been recorded for this experiment yet.`,"goalExperiment.number":`Experiment #{{number}}`,"goalExperiment.execution":`Execution history`,"goalExperiment.delivery":`View delivery`,"goalExperiment.answers":`Candidate answer`,"goalExperiment.root":`All exploration`,"goalExperiment.inspect":`Experiment details`,"goalExperiment.members":`{{count}} nodes`,"goalExperiment.enter":`Expand in this graph`,"goalExperiment.status.proposed":`Not started`,"goalExperiment.status.active":`Exploring`,"goalExperiment.status.waiting":`Waiting for a decision`,"goalExperiment.status.resolved":`Work completed`,"goalExperiment.status.rejected":`Rejected`,"goalExperiment.status.retired":`Retired`,"goalExperiment.acceptance":`View verification`,"goalExperiment.result":`Experiment results`,"goalExperiment.lineage":`Experiment lineage`,"goalExperiment.parentLink":`From #{{number}} · {{title}}`,"goalExperiment.childLink":`Continued as #{{number}} · {{title}}`,"goalExperiment.instruction":`What this experiment tests`,"goalExperiment.inputs":`Pinned input versions ({{count}})`,"goalExperiment.inputHint":`These are version references recorded when the experiment was created. Execution history contains the actual dispatched input.`,"goalExperiment.unavailableInput":`Referenced work is unavailable`,"ModelSwitch.title":`Model`,active:`Active`,"audioPlayer.download":`Download audio`,"audioPlayer.pause":`Pause audio`,"audioPlayer.play":`Play audio`,"audioPlayer.seek":`Seek audio`,"agentBuilder.installPlugin.authRequired":`Cloud MCP requires sign-in to continue`,"agentBuilder.installPlugin.cancel":`Cancel`,"agentBuilder.installPlugin.clickApproveToConnect":`Click "Approve" to connect and authorize this Integration`,"agentBuilder.installPlugin.clickApproveToInstall":`Click "Approve" to install this Skill`,"agentBuilder.installPlugin.connectedAndEnabled":`Connected and enabled`,"agentBuilder.installPlugin.connectionFailed":`Connection failed. Retry, or check authorization and network settings.`,"agentBuilder.installPlugin.installFailed":`Installation failed. Retry, or view details and try again.`,"agentBuilder.installPlugin.installPlugin":`Install Skill`,"agentBuilder.installPlugin.installToEnable":`Install to enable this Skill for the Agent (you can do it later)`,"agentBuilder.installPlugin.installedAndEnabled":`Installed and enabled`,"agentBuilder.installPlugin.requiresAuth":`Requires authorization. Click "Approve" to connect`,"agentBuilder.installPlugin.retry":`Retry`,"agentBuilder.title":`Agent Builder`,"agentBuilder.welcome":`Tell me your use case.
171
171
 
172
172
  Writing, coding, or data analysis—anything works. You own the goal and standards; I’ll break it down into collaborative, runnable Agents.`,"agentConfigError.retry":`Retry`,"agentConfigError.title":`Failed to load agent settings`,agentDefaultMessage:`Hi, I’m **{{name}}**. One sentence is enough.
173
173
 
package/dist/index.js CHANGED
@@ -18403,6 +18403,8 @@ const API_KEY_FULL_ACCESS_SCOPE = "*";
18403
18403
  /**
18404
18404
  * The selectable scope catalog. `model:invoke` is its own tier because it is
18405
18405
  * the one that burns money (chat/completions, image, video, music, asr).
18406
+ * On the public REST API, text / JSON / image / video generation, speech and
18407
+ * transcription spend credits under `generation:write` instead.
18406
18408
  *
18407
18409
  * Deliberately absent (a restricted key can never obtain them):
18408
18410
  * - `api_key:*` — keys must not mint keys (self-provisioning)
@@ -18425,6 +18427,8 @@ const API_KEY_SCOPES = [
18425
18427
  "file:write",
18426
18428
  "knowledge:read",
18427
18429
  "knowledge:write",
18430
+ "generation:read",
18431
+ "generation:write",
18428
18432
  "mcp:read",
18429
18433
  "mcp:write",
18430
18434
  "usage:read",
@@ -24423,7 +24427,7 @@ const GOMS_KLM_TIMING_SECONDS = {
24423
24427
  };
24424
24428
 
24425
24429
  //#endregion
24426
- //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
24430
+ //#region node_modules/.pnpm/@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
24427
24431
  /**
24428
24432
  * Creates an observable. `subscribe` runs for each subscriber, and can
24429
24433
  * return a function that cleans up when it unsubscribes.
@@ -24649,7 +24653,7 @@ function observableToAsyncIterable(observable, signal) {
24649
24653
  }
24650
24654
 
24651
24655
  //#endregion
24652
- //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-BjUZYMQq.mjs
24656
+ //#region node_modules/.pnpm/@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-BjUZYMQq.mjs
24653
24657
  /**
24654
24658
  * Shares one subscription to the source between all subscribers. It
24655
24659
  * starts with the first subscriber and ends when the last unsubscribes.
@@ -24775,7 +24779,7 @@ function behaviorSubject(initialValue) {
24775
24779
  }
24776
24780
 
24777
24781
  //#endregion
24778
- //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/splitLink-PFsRy7Mf.mjs
24782
+ //#region node_modules/.pnpm/@trpc+client@11.29.7_@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/splitLink-PFsRy7Mf.mjs
24779
24783
  /** @internal */
24780
24784
  function createChain(opts) {
24781
24785
  return observable$1((observer) => {
@@ -24794,7 +24798,7 @@ function createChain(opts) {
24794
24798
  }
24795
24799
 
24796
24800
  //#endregion
24797
- //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/objectSpread2-pyA4QVO4.mjs
24801
+ //#region node_modules/.pnpm/@trpc+client@11.29.7_@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/objectSpread2-pyA4QVO4.mjs
24798
24802
  function _typeof$1(o) {
24799
24803
  "@babel/helpers - typeof";
24800
24804
  return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -24848,7 +24852,7 @@ function _objectSpread2$1(e) {
24848
24852
  }
24849
24853
 
24850
24854
  //#endregion
24851
- //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/codes-BCsCCyMj.mjs
24855
+ //#region node_modules/.pnpm/@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/codes-BCsCCyMj.mjs
24852
24856
  /**
24853
24857
  * Check that value is object
24854
24858
  * @internal
@@ -24911,7 +24915,7 @@ const retryableRpcCodes = [
24911
24915
  ];
24912
24916
 
24913
24917
  //#endregion
24914
- //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/getErrorShape-CVrl8_-w.mjs
24918
+ //#region node_modules/.pnpm/@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/getErrorShape-CVrl8_-w.mjs
24915
24919
  const noop$4 = () => {};
24916
24920
  const freezeIfAvailable = (obj) => {
24917
24921
  if (Object.freeze) Object.freeze(obj);
@@ -25016,7 +25020,7 @@ function _objectSpread2(e) {
25016
25020
  }
25017
25021
 
25018
25022
  //#endregion
25019
- //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/asyncGeneratorDelegate-Bmz6asKS.mjs
25023
+ //#region node_modules/.pnpm/@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/asyncGeneratorDelegate-Bmz6asKS.mjs
25020
25024
  /** @internal */
25021
25025
  function transformResultInner(response, transformer) {
25022
25026
  if ("error" in response) {
@@ -25122,7 +25126,7 @@ AsyncGenerator$1.prototype["function" == typeof Symbol && Symbol.asyncIterator |
25122
25126
  };
25123
25127
 
25124
25128
  //#endregion
25125
- //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/TRPCClientError-DE6-fd1n.mjs
25129
+ //#region node_modules/.pnpm/@trpc+client@11.29.7_@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/TRPCClientError-DE6-fd1n.mjs
25126
25130
  /**
25127
25131
  * Whether a value is a `TRPCClientError`, typed for a router or procedure.
25128
25132
  * @see https://trpc.io/docs/client/vanilla/error-handling#catching-a-thrown-error
@@ -25178,7 +25182,7 @@ var TRPCClientError = class TRPCClientError extends Error {
25178
25182
  };
25179
25183
 
25180
25184
  //#endregion
25181
- //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/unstable-internals.mjs
25185
+ //#region node_modules/.pnpm/@trpc+client@11.29.7_@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/unstable-internals.mjs
25182
25186
  /**
25183
25187
  * @internal
25184
25188
  */
@@ -25205,7 +25209,7 @@ function getTransformer(transformer) {
25205
25209
  }
25206
25210
 
25207
25211
  //#endregion
25208
- //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpUtils-CtMuyl9j.mjs
25212
+ //#region node_modules/.pnpm/@trpc+client@11.29.7_@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpUtils-CtMuyl9j.mjs
25209
25213
  const isFunction$1 = (fn) => typeof fn === "function";
25210
25214
  /**
25211
25215
  * The `fetch` to use: `customFetchImpl` if given, or else the global one.
@@ -25341,7 +25345,7 @@ async function httpRequest(opts) {
25341
25345
  }
25342
25346
 
25343
25347
  //#endregion
25344
- //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpLink-B4UwXApa.mjs
25348
+ //#region node_modules/.pnpm/@trpc+client@11.29.7_@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpLink-B4UwXApa.mjs
25345
25349
  /** Whether an input is binary: a `Uint8Array`, `Blob` or `File`. */
25346
25350
  function isOctetType(input) {
25347
25351
  return input instanceof Uint8Array || input instanceof Blob;
@@ -25434,7 +25438,7 @@ function httpLink(opts) {
25434
25438
  }
25435
25439
 
25436
25440
  //#endregion
25437
- //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/wsLink-DYx-NUSN.mjs
25441
+ //#region node_modules/.pnpm/@trpc+client@11.29.7_@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/wsLink-DYx-NUSN.mjs
25438
25442
  /**
25439
25443
  * Get the result of a value or function that returns a value
25440
25444
  * It also optionally accepts typesafe arguments for the function
@@ -25624,7 +25628,7 @@ var WsConnection = class WsConnection {
25624
25628
  _defineProperty$1(WsConnection, "connectCount", 0);
25625
25629
 
25626
25630
  //#endregion
25627
- //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/index.mjs
25631
+ //#region node_modules/.pnpm/@trpc+client@11.29.7_@trpc+server@11.29.7_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/index.mjs
25628
25632
  const observerKeys = [
25629
25633
  "onStarted",
25630
25634
  "onData",
@@ -26908,7 +26912,7 @@ const cliVersion = pkg.version;
26908
26912
  const cliNodeEngine = pkg.engines?.node;
26909
26913
 
26910
26914
  //#endregion
26911
- //#region ../../node_modules/.pnpm/@trpc+server@11.29.5_@types+aws-lambda@8.10.164_@types+express@5.0.6_@types+ws@8.18.2_n_d0ee0c058429d0f6dbf2db4bfd1f1e09/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
26915
+ //#region ../../node_modules/.pnpm/@trpc+server@11.29.7_@types+aws-lambda@8.10.164_@types+express@5.0.6_@types+ws@8.18.2_n_4a5bbc7e05a0f03e83d6e27192082686/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
26912
26916
  /**
26913
26917
  * Creates an observable. `subscribe` runs for each subscriber, and can
26914
26918
  * return a function that cleans up when it unsubscribes.
package/man/man1/lh.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Code generated by `npm run man:generate`; DO NOT EDIT.
2
2
  .\" Manual command details come from the Commander command tree.
3
- .TH LH 1 "" "@lobehub/cli 0.0.180" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.182" "User Commands"
4
4
  .SH NAME
5
5
  lh \- LobeHub CLI \- manage and connect to LobeHub services
6
6
  .SH SYNOPSIS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/cli",
3
- "version": "0.0.180",
3
+ "version": "0.0.182",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/lobehub/lobehub",
@@ -83,5 +83,5 @@
83
83
  "access": "public",
84
84
  "registry": "https://registry.npmjs.org"
85
85
  },
86
- "gitHead": "c45b8e68c9389f52afe4ee956729fa2c723d7c30"
86
+ "gitHead": "b03764a3fe9acf5885e5e82dded7487202441304"
87
87
  }