@lobehub/cli 0.0.154 → 0.0.156

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=Px,c=!$x.jitless,l=c&&lSe.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?swe([],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)}}),aTe=Yx(`$ZodUnion`,(e,t)=>{hS.init(e,t),Kx(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),Kx(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Kx(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)))}),Kx(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=>Dxe(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=>cwe(t,r,e,i)):cwe(o,r,e,i)}}),oTe=Yx(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,aTe.init(e,t);let n=e._zod.parse;Kx(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)||Ax(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=Axe(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=kx(()=>lwe(t));e._zod.parse=(i,a)=>{let o=i.value;if(!Px(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)}}),sTe=Yx(`$ZodIntersection`,(e,t)=>{hS.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])=>dwe(e,t,n)):dwe(e,i,a)}}),cTe=Yx(`$ZodRecord`,(e,t)=>{hS.init(e,t);let n=$x.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Fx(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=>Ux(e,i,Xx())),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(...Vx(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...Vx(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`&&sS.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=>Ux(e,i,Xx())),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(...Vx(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...Vx(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}}),lTe=Yx(`$ZodEnum`,(e,t)=>{hS.init(e,t);let n=Cxe(t.entries),r=new Set(n);e._zod.values=r,Kx(e,`pattern`,e=>{let t=Cxe(e.def.entries).filter(e=>uSe.has(typeof e));return RegExp(t.length?`^(${t.map(e=>Ix(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}}),uTe=Yx(`$ZodLiteral`,(e,t)=>{hS.init(e,t);let n=new Set(t.values);e._zod.values=n,Kx(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?Ix(e):e?Ix(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}}),dTe=Yx(`$ZodTransform`,(e,t)=>{hS.init(e,t),e._zod.optin=`optional`,$x.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new bSe(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 Qx;return n.value=i,n}}),fTe=Yx(`$ZodOptional`,(e,t)=>{hS.init(e,t),Kx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,Kx(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),Kx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Dxe(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=>fwe(e,t)):fwe(e,r)}return t.innerType._zod.run(e,n)}}),pTe=Yx(`$ZodExactOptional`,(e,t)=>{fTe.init(e,t),Kx(e,`values`,e=>e.def.innerType._zod.values),Kx(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),mTe=Yx(`$ZodNullable`,(e,t)=>{hS.init(e,t),Kx(e,`optin`,e=>e.def.innerType._zod.optin),Kx(e,`optout`,e=>e.def.innerType._zod.optout),Kx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${Dxe(t.source)}|null)$`):void 0}),Kx(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)}),hTe=Yx(`$ZodDefault`,(e,t)=>{hS.init(e,t),e._zod.optin=`defaulted`,Kx(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=>pwe(e,t)):pwe(r,t)}}),gTe=Yx(`$ZodPrefault`,(e,t)=>{hS.init(e,t),e._zod.optin=`defaulted`,Kx(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))}),_Te=Yx(`$ZodNonOptional`,(e,t)=>{hS.init(e,t),Kx(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=>mwe(t,e)):mwe(i,e)}}),vTe=Yx(`$ZodCatch`,(e,t)=>{hS.init(e,t),Kx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),Kx(e,`optout`,e=>e.def.innerType._zod.optout),Kx(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=>hwe(e,r,t,n)):hwe(e,r,t,n)}}),yTe=Yx(`$ZodPipe`,(e,t)=>{hS.init(e,t),Kx(e,`values`,e=>e.def.in._zod.values),Kx(e,`optin`,e=>e.def.in._zod.optin),Kx(e,`optout`,e=>e.def.out._zod.optout),Kx(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=>mS(e,t.in,n)):mS(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>mS(e,t.out,n)):mS(r,t.out,n)}}),bTe=Yx(`$ZodPreprocess`,(e,t)=>{yTe.init(e,t)}),xTe=Yx(`$ZodReadonly`,(e,t)=>{hS.init(e,t),Kx(e,`propValues`,e=>e.def.innerType._zod.propValues),Kx(e,`values`,e=>e.def.innerType._zod.values),Kx(e,`optin`,e=>e.def.innerType?._zod?.optin),Kx(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(gwe):gwe(r)}}),STe=Yx(`$ZodLazy`,(e,t)=>{hS.init(e,t),kxe(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),Kx(e,`pattern`,e=>e.innerType?._zod?.pattern),Kx(e,`propValues`,e=>e.innerType?._zod?.propValues),Kx(e,`optin`,e=>e.innerType?._zod?.optin??void 0),Kx(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),CTe=Yx(`$ZodCustom`,(e,t)=>{lS.init(e,t),hS.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=>_we(t,n,r,e));_we(i,n,r,e)}})}));function TTe(e){return typeof e==`object`&&!!e}function ETe(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function yS(e,t,n){let r=NTe.get(e);if(r!==void 0)return r?CS:xS;if(t.has(e))return CS;t.add(e);let i=xS,a=e=>{if(i!==CS&&e?._zod){let r=yS(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=xS;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?SS:o.value?._zod?yS(o.value,t,n):xS;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=Axe(c);s(e?o(e,!0):SS),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?yS(r,t,!1):SS);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),DTe(e,i)}function DTe(e,t){return t!==SS&&NTe.set(e,t===CS),t}function OTe(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function kTe(){return PTe}function ATe(e,t){let n=e[bS]?.backEdges;return n!==void 0&&TTe(t)&&n.has(t)}var jTe,bS,MTe,NTe,xS,SS,CS,wS,TS,PTe,FTe=o((()=>{Jx(),jTe=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},bS=`~memo`,MTe=[],NTe=new WeakMap,xS=0,SS=1,CS=2,TS=[],PTe={alloc(e,t,n){let r=wS;if(!r)return n;wS=void 0;let i={value:n,issues:null};return r.set(t.value,i),TS.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`&&ATe(n,e.value))throw new jTe;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=yS(e,new Set,!1);if(i===xS)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===CS||r?n=!0:r=!0}let l=s.value;if(!TTe(l))return t(s,c);let u=c[bS];u||(u={buckets:new WeakMap,backEdges:void 0},c[bS]=u);let d;i===c?d=a:(d=OTe(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(...ETe(f.issues)):(s.memo=!0,u.backEdges??=new WeakSet,u.backEdges.add(f.value)),s;wS=d;let p=TS.length,m=t(s,c);wS=void 0;let h=TS.length>p?TS.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?ETe(e.issues):MTe),e)):(h&&(h.issues=m.issues.length?ETe(m.issues):MTe),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}}}));function ITe(){return{localeError:LTe()}}var LTe,RTe=o((()=>{Jx(),LTe=()=>{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(Qxe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Lxe(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 zTe(){return new VTe}var BTe,VTe,ES,HTe=o((()=>{VTe=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)}},(BTe=globalThis).__zod_globalRegistry??(BTe.__zod_globalRegistry=zTe()),ES=globalThis.__zod_globalRegistry})),UTe=o((()=>{}));function WTe(e){return e.checks&&=[...e.checks],e}function GTe(e,t){return new e(WTe({type:`string`,...Rx(t)}))}function KTe(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Rx(t)})}function qTe(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Rx(t)})}function JTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Rx(t)})}function YTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Rx(t)})}function XTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Rx(t)})}function ZTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Rx(t)})}function QTe(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Rx(t)})}function $Te(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Rx(t)})}function eEe(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Rx(t)})}function tEe(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Rx(t)})}function nEe(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Rx(t)})}function rEe(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Rx(t)})}function iEe(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Rx(t)})}function aEe(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Rx(t)})}function oEe(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Rx(t)})}function sEe(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Rx(t)})}function cEe(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Rx(t)})}function lEe(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Rx(t)})}function uEe(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Rx(t)})}function dEe(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Rx(t)})}function fEe(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Rx(t)})}function pEe(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Rx(t)})}function mEe(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Rx(t)})}function hEe(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Rx(t)})}function gEe(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Rx(t)})}function _Ee(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Rx(t)})}function vEe(e,t){return new e(WTe({type:`number`,checks:[],...Rx(t)}))}function yEe(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Rx(t)})}function bEe(e,t){return new e({type:`boolean`,...Rx(t)})}function xEe(e,t){return new e({type:`undefined`,...Rx(t)})}function SEe(e,t){return new e({type:`null`,...Rx(t)})}function CEe(e){return new e({type:`any`})}function wEe(e){return new e({type:`unknown`})}function TEe(e,t){return new e({type:`never`,...Rx(t)})}function EEe(e,t){return new e({type:`date`,coerce:!0,...Rx(t)})}function DEe(e,t){return new ECe({check:`less_than`,...Rx(t),value:e,inclusive:!1})}function DS(e,t){return new ECe({check:`less_than`,...Rx(t),value:e,inclusive:!0})}function OEe(e,t){return new DCe({check:`greater_than`,...Rx(t),value:e,inclusive:!1})}function OS(e,t){return new DCe({check:`greater_than`,...Rx(t),value:e,inclusive:!0})}function kEe(e,t){return new OCe({check:`multiple_of`,...Rx(t),value:e})}function AEe(e,t){return new ACe({check:`max_length`,...Rx(t),maximum:e})}function kS(e,t){return new jCe({check:`min_length`,...Rx(t),minimum:e})}function jEe(e,t){return new MCe({check:`length_equals`,...Rx(t),length:e})}function MEe(e,t){return new NCe({check:`string_format`,format:`regex`,...Rx(t),pattern:e})}function NEe(e){return new PCe({check:`string_format`,format:`lowercase`,...Rx(e)})}function PEe(e){return new FCe({check:`string_format`,format:`uppercase`,...Rx(e)})}function FEe(e,t){return new ICe({check:`string_format`,format:`includes`,...Rx(t),includes:e})}function IEe(e,t){return new LCe({check:`string_format`,format:`starts_with`,...Rx(t),prefix:e})}function LEe(e,t){return new RCe({check:`string_format`,format:`ends_with`,...Rx(t),suffix:e})}function AS(e){return new zCe({check:`overwrite`,tx:e})}function REe(e){return AS(t=>t.normalize(e))}function zEe(){return AS(e=>e.trim())}function BEe(){return AS(e=>e.toLowerCase())}function VEe(){return AS(e=>e.toUpperCase())}function HEe(){return AS(e=>Fxe(e))}function UEe(e,t,n){return new e({type:`array`,element:t,...Rx(n)})}function WEe(e,t,n){let r=Rx(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function GEe(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Rx(n)})}function KEe(e,t){let n=qEe(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Wx(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Wx(r))}},e(t.value,t)),t);return n}function qEe(e,t){let n=new lS({check:`custom`,...Rx(t)});return n._zod.check=e,n}var JEe=o((()=>{BCe(),Jx()}));function jS(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&Ax(e,t,n[t]);return e}function YEe(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??ES,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 MS(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 NS(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,NS(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&jS(o.schema,c),t.io===`input`&&PS(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 XEe(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function ZEe(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}/${XEe(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+XEe(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 QEe(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;QEe(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 eDe(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!rDe.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))}Ax(n,r,e.length===1?e[0]:eDe(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 tDe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of rDe)if(t in e)return;let n=t.filter(e=>iDe.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=eDe(t);else{let e=n[0],i=iDe.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=>eDe([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,jS(e,r))}function nDe(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)):jS(i,s),jS(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())QEe(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)??[])tDe(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)}jS(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,Ax(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:FS(t,`input`,e.processors),output:FS(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function PS(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 PS(r.element,n);if(r.type===`set`)return PS(r.valueType,n);if(r.type===`lazy`)return PS(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 PS(r.innerType,n);if(r.type===`intersection`)return PS(r.left,n)||PS(r.right,n);if(r.type===`record`||r.type===`map`)return PS(r.keyType,n)||PS(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:PS(r.in,n)||PS(r.out,n);if(r.type===`object`){for(let e in r.shape)if(PS(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(PS(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(PS(e,n))return!0;return!!(r.rest&&PS(r.rest,n))}return!1}var rDe,iDe,aDe,FS,IS=o((()=>{HTe(),Jx(),rDe=new Set([`type`,`properties`,`required`,`additionalProperties`]),iDe=[`oneOf`,`anyOf`],aDe=(e,t={})=>n=>{let r=YEe({...n,processors:t});return NS(e,r),ZEe(r,e),nDe(r,e)},FS=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=YEe({...i??{},target:a,io:t,processors:n});return NS(e,o),ZEe(o,e),nDe(o,e)}}));function LS(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)_De[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&zS(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&zS(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&BS(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&BS(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&uDe(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&fDe(t,i.mime);for(let e of i.patterns??[])dDe(t,e);return t}function RS(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?RS(t.out):t.type===`catch`?RS(t.innerType):e._zod.optin}function oDe(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=oDe(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=>oDe(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`)?sS:bCe).source),p):p}function sDe(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 VS.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=oDe(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 cDe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(MS(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),HS):JSON.parse(o)}var zS,BS,lDe,uDe,dDe,fDe,pDe,mDe,hDe,gDe,_De,vDe,yDe,bDe,xDe,SDe,CDe,wDe,TDe,EDe,DDe,ODe,kDe,ADe,jDe,MDe,NDe,PDe,FDe,IDe,LDe,VS,RDe,zDe,BDe,HS,VDe,HDe,UDe,WDe,GDe,KDe,qDe,JDe=o((()=>{cS(),wTe(),IS(),Jx(),zS=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},BS=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},lDe=(e,t)=>{zS(e,`minimum`,t),BS(e,`maximum`,t)},uDe=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},dDe=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},fDe=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},pDe=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},mDe=(e,t)=>zS(e,`minimum`,t.minimum),hDe=(e,t)=>BS(e,`maximum`,t.maximum),gDe=e=>(t,n)=>{pDe(t,n.format);let[r,i]=e[n.format];zS(t,`minimum`,r),BS(t,`maximum`,i)},_De={greater_than:(e,t)=>zS(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>BS(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>uDe(e,t.value),number_format:gDe(dSe),bigint_format:gDe(fSe),min_length:mDe,max_length:hDe,length_equals:(e,t)=>lDe(e,t.length),min_size:mDe,max_size:hDe,size_equals:(e,t)=>lDe(e,t.size),string_format:(e,t)=>{pDe(e,t.format),t.pattern&&dDe(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)=>fDe(e,t.mime)},vDe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},yDe=new Map([[Bwe,pCe],[vS,mCe]]),bDe=e=>yDe.get(e)??e,xDe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=LS(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=vDe[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(bDe);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}))])}},SDe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=LS(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)):MS(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}))])}},CDe=(e,t,n,r)=>{n.type=`boolean`},wDe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},TDe=(e,t,n,r)=>{MS(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},EDe=(e,t,n,r)=>{n.not={}},DDe=(e,t,n,r)=>{},ODe=(e,t,n,r)=>{},kDe=(e,t,n,r)=>{MS(e,t,n,r,`Date cannot be represented in JSON Schema`)},ADe=(e,t,n,r)=>{let i=e._zod.def,a=Cxe(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},jDe=(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(MS(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(MS(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},MDe=(e,t,n,r)=>{MS(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},NDe=(e,t,n,r)=>{MS(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},PDe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=LS(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=NS(a.element,t,{...r,path:[...r.path,`items`]})},FDe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&MS(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Ax(i.properties,e,NS(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`?RS(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=NS(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},IDe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>NS(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},LDe=(e,t,n,r)=>{let i=e._zod.def,a=NS(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=NS(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)},VS=new WeakMap,RDe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=LS(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=NS(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Ax(i.patternProperties,bDe(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=NS(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=VS.get(t);n||(n=[],VS.set(t,n),t.deferred.push(()=>sDe(t))),n.push(e)}i.additionalProperties=NS(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&RS(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))}},zDe=(e,t,n,r)=>{let i=e._zod.def,a=NS(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`}]},BDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},HS=Symbol(),VDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=cDe(i.defaultValue,e,t,n,r);o!==HS&&(n.default=o)},HDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=cDe(i.defaultValue,e,t,n,r);o!==HS&&(n._prefault=o)},UDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{MS(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},WDe=(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;NS(o,t,r);let s=t.seen.get(e);s.ref=o},GDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},KDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},qDe=(e,t,n,r)=>{let i=e._zod.innerType;NS(i,t,r);let a=t.seen.get(e);a.ref=i}})),US=o((()=>{eS(),GSe(),ASe(),wTe(),FTe(),BCe(),WCe(),Jx(),cS(),RTe(),HTe(),HCe(),UTe(),JEe(),IS(),JDe(),IS()})),YDe=o((()=>{US()}));function WS(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 XDe,ZDe,GS,QDe=o((()=>{US(),Jx(),XDe=new WeakSet([Object.prototype,Error.prototype]),ZDe=(e,t)=>{kSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);XDe.has(n)||(XDe.add(n),WS(n,`format`,e=>t=>TSe(e,t)),WS(n,`flatten`,e=>t=>wSe(e,t)),WS(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Txe,2)}),WS(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Txe,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},GS=Yx(`ZodError`,ZDe,void 0,{Parent:Error})})),$De,eOe,tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,uOe,dOe=o((()=>{US(),QDe(),$De=rS(GS),eOe=iS(GS),tOe=aS(GS),nOe=oS(GS),rOe=LSe(GS),iOe=RSe(GS),aOe=zSe(GS),oOe=BSe(GS),sOe=VSe(GS),cOe=HSe(GS),lOe=USe(GS),uOe=WSe(GS)}));function fOe(){$x.localeError||Xx(ITe())}function KS(){$x.memoizer||Xx({memoizer:kTe()})}function H(e){return GTe(NOe,e)}function qS(e){return vEe(nke,e)}function pOe(e){return yEe(rke,e)}function JS(e){return bEe(ike,e)}function mOe(e){return xEe(ake,e)}function hOe(e){return SEe(oke,e)}function YS(){return CEe(ske)}function XS(){return wEe(cke)}function gOe(e){return TEe(lke,e)}function ZS(e,t){return UEe(dke,e,t)}function QS(e,t){return new fke({type:`object`,shape:e??{},...Rx(t)})}function _Oe(e,t){return new fke({type:`object`,shape:e,catchall:gOe(),...Rx(t)})}function $S(e,t){return new pke({type:`union`,options:e,...Rx(t)})}function eC(e,t,n){return new mke({type:`union`,options:t,discriminator:e,...Rx(n)})}function vOe(e,t){return new hke({type:`intersection`,left:e,right:t})}function tC(e,t,n){return!t||!t._zod?new gke({type:`record`,keyType:H(),valueType:e,...Rx(t)}):new gke({type:`record`,keyType:e,valueType:t,...Rx(n)})}function nC(e,t){return new uC({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Rx(t)})}function rC(e,t){return new uC({type:`enum`,entries:e,...Rx(t)})}function iC(e,t){return new _ke({type:`literal`,values:Array.isArray(e)?e:[e],...Rx(t)})}function yOe(e){return new vke({type:`transform`,transform:e})}function bOe(e){return new yke({type:`optional`,innerType:e})}function xOe(e){return new bke({type:`optional`,innerType:e})}function SOe(e){return new xke({type:`nullable`,innerType:e})}function COe(e,t){return new Ske({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ixe(t)}})}function wOe(e,t){return new Cke({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ixe(t)}})}function TOe(e,t){return new wke({type:`nonoptional`,innerType:e,...Rx(t)})}function EOe(e,t){return new Tke({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:aSe(t)})}function DOe(e,t){return new Eke({type:`pipe`,in:e,out:t})}function OOe(e){return new Oke({type:`readonly`,innerType:e})}function kOe(e){return new kke({type:`lazy`,getter:e})}function aC(e,t){return WEe(Ake,e??(()=>!0),t)}function AOe(e,t={}){return GEe(Ake,e,t)}function jOe(e,t){return KEe(e,t)}function oC(e,t){return new Dke({type:`pipe`,in:yOe(e),out:t})}var sC,MOe,NOe,cC,POe,FOe,IOe,LOe,ROe,zOe,lC,BOe,VOe,HOe,UOe,WOe,GOe,KOe,qOe,JOe,YOe,XOe,ZOe,QOe,$Oe,eke,tke,nke,rke,ike,ake,oke,ske,cke,lke,uke,dke,fke,pke,mke,hke,gke,uC,_ke,vke,yke,bke,xke,Ske,Cke,wke,Tke,Eke,Dke,Oke,kke,Ake,dC=o((()=>{US(),JDe(),IS(),RTe(),YDe(),dOe(),sC=Yx(`ZodType`,(e,t)=>(fOe(),hS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Nx(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 Lx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(AOe(e,t))},superRefine(e,t){return this.check(jOe(e,t))},overwrite(e){return this.check(AS(e))},optional(){return bOe(this)},exactOptional(){return xOe(this)},nullable(){return SOe(this)},nullish(){return bOe(SOe(this))},nonoptional(e){return TOe(this,e)},array(){return ZS(this)},or(e){return $S([this,e])},and(e){return vOe(this,e)},transform(e){return DOe(this,yOe(e))},default(e){return COe(this,e)},prefault(e){return wOe(this,e)},catch(e){return EOe(this,e)},pipe(e){return DOe(this,e)},readonly(){return OOe(this)},describe(e){let t=this.clone();return ES.add(t,{description:e}),t},meta(...e){if(e.length===0)return ES.get(this);let t=this.clone();return ES.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 eSe(this,`~standard`,{...KCe(this),jsonSchema:{input:FS(this,`input`),output:FS(this,`output`)}})},set"~standard"(e){Gx(this,`~standard`,e)},parse:function e(t,n){return $De(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await eOe(this,t,n,{callee:e})},safeParse(e,t){return tOe(this,e,t)},async safeParseAsync(e,t){return nOe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Gx(this,`spa`,e)},validate(e,t){return FSe(this,e,t)},validateAsync(e,t){return ISe(this,e,t)},encode:function e(t,n){return rOe(this,t,n,{callee:e})},decode:function e(t,n){return iOe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await aOe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await oOe(this,t,n,{callee:e})},safeEncode(e,t){return sOe(this,e,t)},safeDecode(e,t){return cOe(this,e,t)},async safeEncodeAsync(e,t){return lOe(this,e,t)},async safeDecodeAsync(e,t){return uOe(this,e,t)},toJSONSchema(e){return aDe(this,{})(e)},get description(){return ES.get(this)?.description},get _def(){return this._zod.def}}),MOe=Yx(`_ZodString`,(e,t)=>{gS.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xDe(e,t,n,r)},tSe({format:e=>LS(e).format??null,minLength:e=>LS(e).minimum??null,maxLength:e=>LS(e).maximum??null},{regex(...e){return this.check(MEe(...e))},includes(...e){return this.check(FEe(...e))},startsWith(...e){return this.check(IEe(...e))},endsWith(...e){return this.check(LEe(...e))},min(...e){return this.check(kS(...e))},max(...e){return this.check(AEe(...e))},length(...e){return this.check(jEe(...e))},nonempty(...e){return this.check(kS(1,...e))},lowercase(e){return this.check(NEe(e))},uppercase(e){return this.check(PEe(e))},trim(){return this.check(zEe())},normalize(...e){return this.check(REe(...e))},toLowerCase(){return this.check(BEe())},toUpperCase(){return this.check(VEe())},slugify(){return this.check(HEe())}})),NOe=Yx(`ZodString`,(e,t)=>{gS.init(e,t),MOe.init(e,t)},{email(e){return this.check(KTe(ROe,e))},url(e){return this.check(QTe(BOe,e))},jwt(e){return this.check(pEe(tke,e))},emoji(e){return this.check($Te(VOe,e))},guid(e){return this.check(qTe(zOe,e))},uuid(e){return this.check(JTe(lC,e))},uuidv4(e){return this.check(YTe(lC,e))},uuidv6(e){return this.check(XTe(lC,e))},uuidv7(e){return this.check(ZTe(lC,e))},nanoid(e){return this.check(eEe(HOe,e))},cuid(e){return this.check(tEe(UOe,e))},cuid2(e){return this.check(nEe(WOe,e))},ulid(e){return this.check(rEe(GOe,e))},base64(e){return this.check(uEe(QOe,e))},base64url(e){return this.check(dEe($Oe,e))},xid(e){return this.check(iEe(KOe,e))},ksuid(e){return this.check(aEe(qOe,e))},ipv4(e){return this.check(oEe(JOe,e))},ipv6(e){return this.check(sEe(YOe,e))},cidrv4(e){return this.check(cEe(XOe,e))},cidrv6(e){return this.check(lEe(ZOe,e))},e164(e){return this.check(fEe(eke,e))},datetime(e){return this.check(mEe(POe,e))},date(e){return this.check(hEe(FOe,e))},time(e){return this.check(gEe(IOe,e))},duration(e){return this.check(_Ee(LOe,e))}}),cC=Yx(`ZodStringFormat`,(e,t)=>{_S.init(e,t),MOe.init(e,t)}),POe=Yx(`ZodISODateTime`,(e,t)=>{jwe.init(e,t),cC.init(e,t)}),FOe=Yx(`ZodISODate`,(e,t)=>{Mwe.init(e,t),cC.init(e,t)}),IOe=Yx(`ZodISOTime`,(e,t)=>{Nwe.init(e,t),cC.init(e,t)}),LOe=Yx(`ZodISODuration`,(e,t)=>{Pwe.init(e,t),cC.init(e,t)}),ROe=Yx(`ZodEmail`,(e,t)=>{xwe.init(e,t),cC.init(e,t)}),zOe=Yx(`ZodGUID`,(e,t)=>{ywe.init(e,t),cC.init(e,t)}),lC=Yx(`ZodUUID`,(e,t)=>{bwe.init(e,t),cC.init(e,t)}),BOe=Yx(`ZodURL`,(e,t)=>{Cwe.init(e,t),cC.init(e,t)}),VOe=Yx(`ZodEmoji`,(e,t)=>{wwe.init(e,t),cC.init(e,t)}),HOe=Yx(`ZodNanoID`,(e,t)=>{Twe.init(e,t),cC.init(e,t)}),UOe=Yx(`ZodCUID`,(e,t)=>{Ewe.init(e,t),cC.init(e,t)}),WOe=Yx(`ZodCUID2`,(e,t)=>{Dwe.init(e,t),cC.init(e,t)}),GOe=Yx(`ZodULID`,(e,t)=>{Owe.init(e,t),cC.init(e,t)}),KOe=Yx(`ZodXID`,(e,t)=>{kwe.init(e,t),cC.init(e,t)}),qOe=Yx(`ZodKSUID`,(e,t)=>{Awe.init(e,t),cC.init(e,t)}),JOe=Yx(`ZodIPv4`,(e,t)=>{Fwe.init(e,t),cC.init(e,t)}),YOe=Yx(`ZodIPv6`,(e,t)=>{Lwe.init(e,t),cC.init(e,t)}),XOe=Yx(`ZodCIDRv4`,(e,t)=>{Rwe.init(e,t),cC.init(e,t)}),ZOe=Yx(`ZodCIDRv6`,(e,t)=>{zwe.init(e,t),cC.init(e,t)}),QOe=Yx(`ZodBase64`,(e,t)=>{Vwe.init(e,t),cC.init(e,t)}),$Oe=Yx(`ZodBase64URL`,(e,t)=>{Hwe.init(e,t),cC.init(e,t)}),eke=Yx(`ZodE164`,(e,t)=>{Uwe.init(e,t),cC.init(e,t)}),tke=Yx(`ZodJWT`,(e,t)=>{Wwe.init(e,t),cC.init(e,t)}),nke=Yx(`ZodNumber`,(e,t)=>{Gwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SDe(e,t,n,r),e.isFinite=!0},tSe({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=LS(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=LS(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=LS(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>LS(e).format??null},{gt(e,t){return this.check(OEe(e,t))},gte(e,t){return this.check(OS(e,t))},min(e,t){return this.check(OS(e,t))},lt(e,t){return this.check(DEe(e,t))},lte(e,t){return this.check(DS(e,t))},max(e,t){return this.check(DS(e,t))},int(e){return this.check(pOe(e))},safe(e){return this.check(pOe(e))},positive(e){return this.check(OEe(0,e))},nonnegative(e){return this.check(OS(0,e))},negative(e){return this.check(DEe(0,e))},nonpositive(e){return this.check(DS(0,e))},multipleOf(e,t){return this.check(kEe(e,t))},step(e,t){return this.check(kEe(e,t))},finite(){return this}})),rke=Yx(`ZodNumberFormat`,(e,t)=>{Kwe.init(e,t),nke.init(e,t)}),ike=Yx(`ZodBoolean`,(e,t)=>{qwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>CDe(e,t,n,r)}),ake=Yx(`ZodUndefined`,(e,t)=>{Jwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>TDe(e,t,n,r)}),oke=Yx(`ZodNull`,(e,t)=>{Ywe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wDe(e,t,n,r)}),ske=Yx(`ZodAny`,(e,t)=>{Xwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>DDe(e,t,n,r)}),cke=Yx(`ZodUnknown`,(e,t)=>{Zwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ODe(e,t,n,r)}),lke=Yx(`ZodNever`,(e,t)=>{Qwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>EDe(e,t,n,r)}),uke=Yx(`ZodDate`,(e,t)=>{$we.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kDe(e,t,n,r),e.min=(t,n)=>e.check(OS(t,n)),e.max=(t,n)=>e.check(DS(t,n))},tSe({minDate:e=>{let{minimum:t}=LS(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=LS(e);return t?new Date(t):null}},{})),dke=Yx(`ZodArray`,(e,t)=>{KS(),tTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PDe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(kS(e,t))},nonempty(e){return this.check(kS(1,e))},max(e,t){return this.check(AEe(e,t))},length(e,t){return this.check(jEe(e,t))},unwrap(){return this.element}}),fke=Yx(`ZodObject`,(e,t)=>{KS(),iTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FDe(e,t,n,r),iSe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return nC(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Nx(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Nx(this._zod.def,{catchall:XS()}))},loose(){return this.clone(Nx(this._zod.def,{catchall:XS()}))},strict(){return this.clone(Nx(this._zod.def,{catchall:gOe()}))},strip(){return this.clone(Nx(this._zod.def,{catchall:void 0}))},extend(e){return Vxe(this,e)},safeExtend(e){return Uxe(this,e)},merge(e){return Wxe(this,e)},pick(e){return zxe(this,e)},omit(e){return Bxe(this,e)},partial(...e){return Gxe(yke,this,e[0])},exactPartial(...e){return Gxe(bke,this,e[0],`exactPartial`)},required(...e){return Kxe(wke,this,e[0])}}),pke=Yx(`ZodUnion`,(e,t)=>{aTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IDe(e,t,n,r),e.options=t.options}),mke=Yx(`ZodDiscriminatedUnion`,(e,t)=>{pke.init(e,t),oTe.init(e,t)}),hke=Yx(`ZodIntersection`,(e,t)=>{sTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LDe(e,t,n,r)}),gke=Yx(`ZodRecord`,(e,t)=>{KS(),cTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RDe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),uC=Yx(`ZodEnum`,(e,t)=>{lTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ADe(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 uC({...t,checks:[],...Rx(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 uC({...t,checks:[],...Rx(r),entries:i})}}),_ke=Yx(`ZodLiteral`,(e,t)=>{uTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jDe(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]}})}),vke=Yx(`ZodTransform`,(e,t)=>{KS(),dTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NDe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new bSe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Wx(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Wx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),yke=Yx(`ZodOptional`,(e,t)=>{fTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),bke=Yx(`ZodExactOptional`,(e,t)=>{pTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),xke=Yx(`ZodNullable`,(e,t)=>{mTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ske=Yx(`ZodDefault`,(e,t)=>{hTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Cke=Yx(`ZodPrefault`,(e,t)=>{gTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),wke=Yx(`ZodNonOptional`,(e,t)=>{_Te.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Tke=Yx(`ZodCatch`,(e,t)=>{vTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Eke=Yx(`ZodPipe`,(e,t)=>{yTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WDe(e,t,n,r),e.in=t.in,e.out=t.out}),Dke=Yx(`ZodPreprocess`,(e,t)=>{Eke.init(e,t),bTe.init(e,t)}),Oke=Yx(`ZodReadonly`,(e,t)=>{xTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),kke=Yx(`ZodLazy`,(e,t)=>{STe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),Ake=Yx(`ZodCustom`,(e,t)=>{CTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>MDe(e,t,n,r)})})),jke,Mke=o((()=>{US(),jke||={}}));function Nke(e){return mEe(POe,e)}var Pke=o((()=>{US(),dC()}));function fC(e){return EEe(uke,e)}var Fke=o((()=>{US(),dC()})),Ike=o((()=>{US(),dC(),YDe(),QDe(),dOe(),Mke(),JDe(),HTe(),Jx(),YDe(),Pke(),dC(),wTe(),RTe(),Fke()})),pC=o((()=>{Ike(),Ike()})),mC,Lke,Rke,zke,Bke,Vke,Hke=o((()=>{pC(),mC=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],Lke=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:mC,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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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`}],Rke=Lke.map(({type:e})=>e),nC(Rke),zke=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],Bke=nC([...Rke,...zke.map(({type:e})=>e)]),Vke=[{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`}]})),hC,Uke,gC,Wke,Gke,_C,Kke,qke,Jke,Yke,Xke,Zke,Qke,$ke,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,cAe,lAe,uAe,dAe,fAe,pAe,mAe,hAe,gAe,_Ae,vAe,yAe,bAe,xAe,SAe,vC,yC,CAe,bC,wAe=o((()=>{Sxe(),hC=`default`,Uke=[`low`,`medium`,`high`,`ultra`],gC=[`low`,`medium`,`high`,`xhigh`,`max`],Wke=[`low`,`medium`,`high`,`xhigh`],Gke=[`--effort`,`--reasoning-effort`],_C=[`low`,`medium`,`high`,`xhigh`],Kke=[..._C,`max`,`ultra`],qke=`model_reasoning_effort`,Jke=[`low`,`high`,`max`],Yke=[`high`,`max`],Xke=[..._C,`max`],Zke=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],Qke=[`gpt-6-astra`,`gpt-5.6-luna`],$ke=[`low`,`medium`,`high`,`xhigh`,`max`],eAe=`--reasoning-effort`,tAe=[`low`,`medium`,`high`,`xhigh`,`max`],nAe=`--reasoning-effort`,rAe=`service_tier`,iAe=[`fast`,`priority`],aAe=e=>!!e&&Uke.includes(e),oAe=e=>!!e&&gC.includes(e),sAe=e=>!!e&&Kke.includes(e),cAe=e=>!!e&&Wke.includes(e),lAe=e=>!!e&&$ke.includes(e),uAe=e=>!!e&&tAe.includes(e),dAe=e=>!!e&&iAe.includes(e),fAe=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?Jke:e===`glm-5.2`?Yke:Zke.includes(e)?Kke:Qke.includes(e)?Xke:_C,pAe=e=>{let t=(Dx(e?.args,`--mode`)??e?.mode)?.trim();return aAe(t)?t:hC},mAe=[`-m`,`--model`],hAe=e=>{let t=(Dx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:hC},gAe=e=>{let t=(Dx(e?.args,`--effort`)??e?.effort)?.trim();return oAe(t)?t:hC},_Ae=e=>{let t=(gxe(e?.args,mAe)??Ox(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:hC},vAe=e=>{let t=(Ox(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return sAe(t)?t:hC},yAe=e=>{let t=(Ox(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Ox(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:dAe(t)?`fast`:hC},bAe=e=>{let t=(gxe(e?.args,Gke)??e?.effort)?.trim();return cAe(t)?t:hC},xAe=e=>{let t=(Dx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return lAe(t)?t:hC},SAe=e=>{let t=(Dx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return uAe(t)?t:hC},vC=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:hC},yC={flags:[`-m`,`--model`],kind:`flag`},CAe={antigravity:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:vC,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:Uke,resolve:pAe}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>gC,resolve:gAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hAe,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>gC,resolve:gAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hAe,source:`catalog`}},codex:{effort:{encodings:[{key:qke,kind:`config`}],levels:fAe,resolve:vAe},model:{encodings:[yC,{key:`model`,kind:`config`}],resolve:_Ae,source:`catalog`},speed:{encodings:[{key:rAe,kind:`config`}],resolve:yAe}},copilot:{effort:{encodings:[{flags:[nAe],kind:`flag`}],levels:()=>tAe,resolve:SAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:vC,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:vC,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:vC,source:`catalog`}},droid:{model:{encodings:[],resolve:vC,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:vC,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:Gke,kind:`flag`}],levels:()=>Wke,resolve:bAe},model:{encodings:[yC],resolve:vC,source:`catalog`}},"kimi-code":{model:{encodings:[yC],resolve:vC,source:`catalog`}},opencode:{model:{encodings:[yC],resolve:vC,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:vC,source:`catalog`}},qoder:{effort:{encodings:[{flags:[eAe],kind:`flag`}],levels:()=>$ke,resolve:xAe},model:{encodings:[yC],resolve:vC,source:`catalog`}},trae:{model:{encodings:[],resolve:vC,source:`catalog`}}},bC=e=>CAe[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),bC(`copilot`),bC(`grok-build`),bC(`kimi-code`),bC(`opencode`),bC(`pi`),bC(`qoder`)})),TAe=o((()=>{})),EAe=o((()=>{Hke(),TAe(),new Set([...Lke.map(({type:e})=>e),...zke.map(({type:e})=>e),...Vke.map(({type:e})=>e)])})),DAe=o((()=>{})),OAe=o((()=>{})),kAe,AAe,jAe,MAe,NAe=o((()=>{pC(),kAe=QS({workingDirectory:H().optional()}),AAe=QS({memory:QS({effort:nC([`low`,`medium`,`high`]).optional(),enabled:JS().optional(),toolPermission:nC([`read-only`,`read-write`]).optional()}).optional()}),jAe=QS({selfIteration:QS({enabled:JS().optional()}).optional()}),MAe=QS({codexMaxReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:nC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:nC([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:nC([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:JS().optional(),disableGatewayMode:JS().optional(),effort:nC([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:JS().optional(),enableAgentMode:JS().optional(),toolMode:nC([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:JS().optional(),enableCompressHistory:JS().optional(),enableContextCompression:JS().optional(),enableFollowUpChips:JS().optional(),enableHistoryCount:JS().optional(),enableMaxTokens:JS().optional(),enableReasoning:JS().optional(),enableReasoningEffort:JS().optional(),enableStreaming:JS().optional(),enableStaleToolResultTrim:JS().optional(),gpt5ReasoningEffort:nC([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:nC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:nC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:nC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:nC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:nC([`high`,`max`]).optional(),glm5_3ReasoningEffort:nC([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:nC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:nC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:nC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:nC([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:nC([`high`,`xhigh`]).optional(),historyCount:qS().optional(),imageAspectRatio:H().optional(),imageAspectRatio2:H().optional(),imageResolution:nC([`1K`,`2K`,`4K`]).optional(),imageResolution2:nC([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:nC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:kAe.optional(),preserveThinking:JS().optional(),reasoningBudgetToken:qS().optional(),reasoningBudgetToken32k:qS().optional(),reasoningBudgetToken80k:qS().optional(),reasoningEffort:nC([`low`,`medium`,`high`]).optional(),reasoningMode:nC([`standard`,`pro`]).optional(),searchFCModel:QS({model:H(),provider:H()}).optional(),searchMode:nC([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:nC([`low`,`high`]).optional(),skillActivateMode:nC([`auto`,`manual`]).optional(),textVerbosity:nC([`low`,`medium`,`high`]).optional(),thinking:nC([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:qS().optional(),thinkingLevel:nC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:nC([`low`,`high`]).optional(),thinkingLevel3:nC([`low`,`medium`,`high`]).optional(),thinkingLevel4:nC([`minimal`,`high`]).optional(),thinkingLevel5:nC([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:qS().default(25e3),topicGroupMode:nC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:JS().optional(),useModelBuiltinSearch:JS().optional()}).merge(AAe).merge(jAe)})),PAe=o((()=>{})),FAe=o((()=>{})),IAe,xC,LAe,RAe,zAe,BAe,VAe,HAe,UAe,WAe,GAe,KAe=o((()=>{IAe=`LobeHub Cloud`,xC=`LobeHub`,LAe=`Lobe AI`,RAe=`LobeHub`,zAe={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},BAe={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`},VAe={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},HAe={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},UAe=`lobehub`,WAe=`© ${new Date().getFullYear()} ${RAe}`,GAe=`${WAe}. All rights reserved.`})),qAe,JAe,YAe,SC,CC,XAe,ZAe,QAe,$Ae,eje,tje,nje,rje,ije,aje,oje,sje,cje,lje,uje,dje,fje=o((()=>{qAe=`jev-1.14.0`,JAe=`typesafe`,YAe=`openai`,SC=`deepseek-v4-flash`,CC=`deepseek`,XAe=`gpt-5.6-luna`,ZAe=`openai`,QAe=`decision`,$Ae=`gpt-6-luna:decision`,eje=`openai`,tje=`gpt-4o-mini-transcribe`,nje=`openai`,rje=`gemini-3-flash-preview`,ije=`google`,aje=`gemini-3.8-flash`,oje=`google`,sje=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],cje=`glm-5.3-flash`,lje=`zhipu`,uje=`deepseek-flash`,dje=`deepseek`})),pje,mje=o((()=>{pje=[]})),hje,gje=o((()=>{hje=`chat_preview`})),_je=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>vje,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>HAe,BRANDING_INBOX_TITLE:()=>LAe,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>xC,BRANDING_PROVIDER:()=>UAe,BRANDING_URL:()=>zAe,BUSINESS_OIDC_CLIENTS:()=>pje,COPYRIGHT:()=>WAe,COPYRIGHT_FULL:()=>GAe,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>sje,DEFAULT_ASR_MODEL:()=>tje,DEFAULT_ASR_PROVIDER:()=>nje,DEFAULT_BOT_WAKE_ENGINE:()=>QAe,DEFAULT_BOT_WAKE_MODEL:()=>$Ae,DEFAULT_BOT_WAKE_PROVIDER:()=>eje,DEFAULT_CHANNEL_ROUTING_MODEL:()=>qAe,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>JAe,DEFAULT_EMBEDDING_PROVIDER:()=>YAe,DEFAULT_MINI_MODEL:()=>XAe,DEFAULT_MINI_PROVIDER:()=>ZAe,DEFAULT_MODEL:()=>SC,DEFAULT_ONBOARDING_MODEL:()=>rje,DEFAULT_ONBOARDING_PROVIDER:()=>ije,DEFAULT_PROVIDER:()=>CC,DEFAULT_REVIEW_PREDICT_MODEL:()=>aje,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>oje,DEFAULT_VERIFY_MODEL:()=>cje,DEFAULT_VERIFY_PLAN_MODEL:()=>uje,DEFAULT_VERIFY_PLAN_PROVIDER:()=>dje,DEFAULT_VERIFY_PROVIDER:()=>lje,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>VAe,LOBE_CHAT_CLOUD:()=>IAe,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>yje,ORG_NAME:()=>RAe,SOCIAL_URL:()=>BAe,UTM_SOURCE:()=>hje,isOfficialProvider:()=>bje}),vje,yje,bje,wC=o((()=>{KAe(),KAe(),fje(),mje(),gje(),vje=`sk-lh-`,yje=`The official provider cannot be disabled.`,bje=e=>!1})),xje=o((()=>{wC()})),Sje=o((()=>{})),Cje=o((()=>{})),wje,Tje,Eje=o((()=>{pC(),wje=nC([`pinned`,`auto`,`disabled`]),Tje=$S([H(),QS({builtinOverride:iC(!0).optional(),identifier:H(),mode:wje.optional()})])})),Dje=o((()=>{pC(),NAe(),Eje(),QS({agencyConfig:aC().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:MAe.optional(),description:H().nullish(),editorData:XS().optional(),fewShots:XS().optional(),marketIdentifier:H().nullish(),metadata:tC(H(),XS()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:ZS(H()).optional(),params:tC(H(),XS()).optional(),plugins:ZS(Tje).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:ZS(H()).optional(),title:H().nullish(),tts:aC().optional(),virtual:JS().nullish(),visibility:nC([`private`,`public`]).optional()})})),Oje=o((()=>{})),kje=o((()=>{})),Aje=o((()=>{})),jje=o((()=>{})),Mje=o((()=>{})),Nje=o((()=>{EAe(),DAe(),OAe(),NAe(),PAe(),FAe(),xje(),Sxe(),Hke(),Sje(),Cje(),wAe(),Dje(),Oje(),Eje(),kje(),Aje(),jje(),Mje()})),Pje,Fje=o((()=>{Pje=[`mail`,`wallet`,`service`],[...Pje]})),Ije=o((()=>{})),Lje=o((()=>{})),Rje,zje,Bje=o((()=>{pC(),Rje=QS({ciStatus:nC([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:JS().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:qS(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),zje=QS({environmentId:H().max(255).optional(),git:QS({activeWorktree:H().optional(),autoCreated:JS().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:JS().optional(),github:QS({extraPullRequestCount:qS().optional(),pullRequest:Rje.nullable().optional(),pullRequestStatus:nC([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:JS().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:QS({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:nC([`git`,`github`]).optional(),sessionPath:H().optional()})})),Vje=o((()=>{Bje()})),Hje,Uje=o((()=>{Hje=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),Wje=o((()=>{})),Gje=o((()=>{})),Kje=o((()=>{})),qje=o((()=>{pC(),Vje(),Uje(),Wje(),Gje(),Kje(),QS({heteroPermissionMode:nC(Hje).optional(),repos:ZS(H()).optional(),sandboxDrive:nC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:JS().optional(),sandboxTemporary:JS().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:zje.optional()})})),Jje,Yje=o((()=>{pC(),Jje=QS({allowDM:JS().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:ZS(H()).optional(),personal:JS().optional(),revealDM:JS().optional(),systemPrompt:H().optional()}),QS({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:Jje.nullish(),content:H().nullish(),description:H().nullish(),editorData:tC(H(),YS()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:JS().nullish(),title:H().nullish(),visibility:nC([`private`,`public`]).optional()})})),Xje,Zje,Qje,$je=o((()=>{pC(),Xje=nC([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),Zje=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),Qje=_Oe({allowedEnvVars:ZS(H().regex(/^[A-Z_]\w*$/i)).optional(),body:tC(H(),XS()).optional(),delivery:nC([`fetch`,`qstash`]).optional(),eventFields:ZS(H()).optional(),fallback:nC([`fetch`,`none`]).optional(),headers:tC(H(),H()).optional(),onError:nC([`continue`,`block`]).optional(),responseHandling:nC([`ignore`,`toolCall`]).optional(),timeout:qS().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`})}),_Oe({id:H(),matcher:Zje.optional(),type:Xje,webhook:Qje}).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`})})})),eMe=o((()=>{pC(),eC(`decision`,[QS({decision:iC(`allow`)}),QS({decision:iC(`deny`),reason:H().optional()})])})),tMe=o((()=>{})),nMe,rMe=o((()=>{nMe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(nMe)})),iMe=o((()=>{})),aMe=o((()=>{})),oMe,sMe,cMe,lMe=o((()=>{oMe={messages:`msg`,threads:`thd`,topics:`tpc`},sMe=`[0-9a-zA-Z]{8,32}`,cMe=e=>RegExp(`^${oMe[e]}_${sMe}$`)})),uMe,dMe,fMe,pMe=o((()=>{pC(),uMe=QS({attribution:nC([`user`,`provider`,`harness`,`system`]).optional(),body:YS().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:JS().optional(),httpStatus:qS().optional(),isFallback:JS().optional(),message:H().optional(),numericId:qS().optional(),retryable:JS().optional(),severity:nC([`info`,`warning`,`error`,`critical`]).optional(),type:$S([H(),qS()])}),dMe=QS({content:ZS(tC(H(),XS())).optional(),encrypted_content:H().nullish(),id:H(),status:nC([`in_progress`,`completed`,`incomplete`]).optional(),summary:ZS(QS({text:H(),type:iC(`summary_text`)})),type:iC(`reasoning`)}).passthrough(),fMe=QS({content:H().optional(),duration:qS().optional(),isMultimodal:JS().optional(),responseItems:ZS(dMe).optional(),signature:H().optional()})})),mMe,hMe=o((()=>{mMe=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}({})})),TC,gMe,_Me=o((()=>{pC(),TC=qS().catch(0),gMe=QS({bySource:QS({content:TC,fileContext:TC,reasoning:TC,thoughtSignature:TC,toolCallId:TC,toolCalls:TC,toolDefinition:TC}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:iC(`tokenx`).catch(`tokenx`),messageCount:TC,system:TC,total:TC})})),vMe,yMe,EC,bMe,xMe,SMe,CMe,wMe,TMe,EMe=o((()=>{pC(),vMe=nC([`markdown`,`text`,`xml`]),yMe=QS({endLine:qS().optional(),startLine:qS()}),EC=QS({content:H(),format:vMe.optional(),id:H(),lineRange:yMe.optional(),preview:H().optional(),title:H().optional()}),bMe=EC.extend({anchor:QS({endNodeId:H(),endOffset:qS(),startNodeId:H(),startOffset:qS()}).optional(),pageId:H(),source:iC(`page`),xml:H().optional()}),xMe=EC.extend({filePath:H(),language:H().optional(),side:nC([`additions`,`context`,`deletions`]).optional(),source:iC(`code`),workingDirectory:H().optional()}),SMe=EC.extend({source:iC(`text`)}),CMe=EC.extend({element:QS({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:iC(`element`)}),wMe=EC.extend({identifier:H(),source:iC(`mcpApp`)}),TMe=eC(`source`,[bMe,xMe,SMe,CMe,wMe])})),DMe,OMe=o((()=>{pC(),EMe(),DMe=EC.omit({lineRange:!0}).extend({anchor:QS({endNodeId:H(),endOffset:qS(),startNodeId:H(),startOffset:qS()}).optional(),startLine:qS().optional(),endLine:qS().optional(),pageId:H(),xml:H().optional()})})),kMe,AMe,DC,jMe,MMe,NMe,PMe,FMe,IMe,LMe,RMe,zMe,BMe,VMe,HMe,OC,UMe,WMe=o((()=>{pC(),hMe(),_Me(),EMe(),OMe(),kMe=$S([QS({action:nC([`create`,`update`,`delete`]),changeType:nC([`created`,`updated`]).optional(),targets:ZS(QS({taskId:H().optional(),taskIdentifier:H().optional()})),type:iC(`task`)}),QS({args:tC(H(),XS()).optional(),data:XS(),provider:H(),toolName:H(),type:iC(`skill`)}),QS({action:iC(`register`),document:QS({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:nC([`created`,`updated`]),toolName:H()}),type:iC(`document`)}),QS({action:iC(`delete`),document:QS({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:iC(`document`)}),QS({action:iC(`register`),canvas:QS({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:QS({entry:H(),fileCount:qS(),manifestKey:H(),runtimeMajor:qS(),totalSize:qS()})}),type:iC(`canvas`)})]),AMe=QS({apiName:nC([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:tC(H(),XS()),capturedAt:H(),content:H().nullable(),error:XS().optional(),identifier:iC(`lobe-local-system`),result:XS().optional(),snapshotId:H(),state:XS().optional(),success:JS(),toolCallId:H()}),DC=QS({inputCachedTokens:qS().optional(),inputCacheMissTokens:qS().optional(),inputWriteCacheTokens:qS().optional(),inputCachedTextTokens:qS().optional(),inputCachedImageTokens:qS().optional(),inputCachedAudioTokens:qS().optional(),inputCachedVideoTokens:qS().optional(),inputTextTokens:qS().optional(),inputImageTokens:qS().optional(),inputAudioTokens:qS().optional(),inputVideoTokens:qS().optional(),inputCitationTokens:qS().optional(),inputToolTokens:qS().optional(),inputCharacters:qS().optional(),outputTextTokens:qS().optional(),outputImageTokens:qS().optional(),outputAudioTokens:qS().optional(),outputReasoningTokens:qS().optional(),outputVideoTokens:qS().optional(),acceptedPredictionTokens:qS().optional(),rejectedPredictionTokens:qS().optional(),totalInputTokens:qS().optional(),totalOutputTokens:qS().optional(),totalTokens:qS().optional(),cost:qS().optional(),credits:qS().optional()}),jMe=QS({tps:qS().optional(),ttft:qS().optional(),duration:qS().optional(),latency:qS().optional()}),MMe=QS({emoji:H(),count:qS(),users:ZS(H())}),NMe=QS({sequence:qS().optional(),sourceToolCallId:H(),sourceToolName:H(),type:nC([`tool-stdout`,`tool-callback`,`task-completion`])}),PMe=QS({identifier:H()}),FMe=QS({agentId:H().optional(),name:H(),status:nC([`completed`,`error`]),threadId:H()}),IMe=QS({identifier:H(),reason:nC([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),LMe=QS({rootOperationId:H().min(1),userMessageId:H().optional()}),RMe=QS({kind:nC([`callAgent`]),visibility:iC(`internal`)}),zMe=QS({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:qS().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),BMe=QS({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),VMe=QS({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),HMe=DC.merge(jMe).extend({botSender:VMe.optional(),externalOrigin:BMe.optional(),agentDispatch:RMe.optional(),agentSender:zMe.optional(),collapsed:JS().optional(),contextAccounting:gMe.optional(),contextSelections:ZS(TMe).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:qS().int().positive().optional(),inspectExpanded:JS().optional(),isMultimodal:JS().optional(),isSupervisor:JS().optional(),localSystemToolSnapshots:ZS(AMe).optional(),mcpAppSource:PMe.optional(),operationId:H().min(1).optional(),orchestrationRole:nC([`supervisor`,`member`]).optional(),pageSelections:ZS(DMe).optional(),performance:jMe.optional(),reactions:ZS(MMe).optional(),scope:H().optional(),selectedSkillIds:ZS(H()).optional(),signal:NMe.optional(),steer:JS().optional(),subAgentCallback:FMe.optional(),subAgentId:H().optional(),taskCallback:IMe.optional(),toolExecutionTimeMs:qS().optional(),toolResultSuccess:JS().optional(),toolResultStop:JS().optional(),toolWorkRegistration:kMe.optional(),trigger:rC(mMe).optional(),verifyOperationId:H().optional(),verifyRound:qS().optional(),work:LMe.optional(),usage:DC.optional()}),OC=HMe.omit({agentSender:!0}),UMe=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),GMe,KMe=o((()=>{pC(),WMe(),GMe=HMe.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),QS({editorData:tC(H(),XS()).optional(),metadata:GMe.optional()}),Object.keys(GMe.shape)})),qMe,JMe=o((()=>{pC(),qMe=QS({alt:H(),height:qS().optional(),id:H(),mimeType:H().optional(),ratio:qS().optional(),url:H(),width:qS().optional()})})),YMe=o((()=>{})),XMe,ZMe,QMe,$Me=o((()=>{pC(),XMe=QS({batchId:H().optional(),itemIndex:qS().int().nonnegative().optional(),operationId:H().optional(),runtimeType:nC([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:JS().optional(),resolutionRequestId:H().optional(),skipped:JS().optional(),stepIndex:qS().int().nonnegative().optional(),status:nC([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),ZMe=QS({function:QS({arguments:H(),name:H()}),id:H(),type:H()}),QMe=QS({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:XMe.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),eNe=o((()=>{})),tNe=o((()=>{})),kC=o((()=>{pMe(),KMe(),_Me(),EMe(),JMe(),YMe(),WMe(),OMe(),$Me(),eNe(),tNe()})),nNe,rNe=o((()=>{pC(),nNe=QS({id:H(),similarity:qS()}),QS({id:H(),value:QS({fileChunks:ZS(nNe),ragQueryId:H().optional()})})})),iNe,aNe,oNe=o((()=>{pC(),pMe(),$Me(),rNe(),kC(),OMe(),iNe=nC([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),aNe=QS({apiName:H(),arguments:H(),identifier:H(),type:H()}),QS({role:iNe,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:aNe.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:ZS(H()).optional(),error:uMe.nullish(),traceId:H().optional(),fileChunks:ZS(nNe).optional()}).passthrough(),QS({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:XMe.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:YS().optional(),error:YS().optional(),clientId:H().optional(),userId:H().optional()})})),sNe,cNe=o((()=>{pC(),sNe=QS({action:nC([`create`,`update`,`delete`]),agentEditable:JS().optional(),resourceType:nC([`document`,`task`])})})),AC,lNe,uNe,dNe,fNe,pNe,mNe=o((()=>{pC(),AC=nC([`never`,`required`,`always`]),lNe=$S([H(),QS({pattern:H(),type:nC([`exact`,`prefix`,`wildcard`,`regex`])})]),uNe=QS({match:tC(H(),lNe).optional(),policy:AC}),dNe=$S([AC,ZS(uNe)]),QS({action:nC([`approve`,`reject`,`select`]),data:QS({remember:JS().optional(),selected:$S([H(),ZS(H())]).optional()}).optional()}),QS({allowList:ZS(H()).optional(),approvalMode:nC([`auto-run`,`allow-list`,`manual`,`headless`])}),fNe=QS({description:H(),match:tC(H(),lNe),policy:AC.optional()}),pNe=ZS(fNe),QS({config:dNe.optional(),confirmedHistory:ZS(H()).optional(),securityBlacklist:pNe.optional(),toolArgs:tC(H(),YS()).optional(),toolKey:H().optional()})})),hNe=o((()=>{})),jC,gNe,_Ne,vNe,MC,yNe,bNe=o((()=>{pC(),cNe(),mNe(),hNe(),cNe(),jC=QS({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:ZS(H()).optional(),title:H()}),gNe=nC([`collapsed`,`expand`,`alwaysExpand`]),_Ne=QS({default:AC.optional(),policy:AC.optional(),type:H()}),vNe=$S([dNe,QS({dynamic:_Ne})]),MC=QS({defaultTimeoutMs:qS().int().positive().optional(),description:H(),humanIntervention:vNe.optional(),name:H(),ordered:JS().optional(),parameters:tC(H(),YS()),renderDisplayControl:gNe.optional(),serializeBy:H().optional(),url:H().optional(),work:sNe.optional()}),yNe=QS({api:ZS(MC),deviceClients:ZS(nC([`cli`,`desktop`])).optional(),executors:ZS(nC([`client`,`server`])).optional(),humanIntervention:vNe.optional(),identifier:H(),meta:jC,systemRole:H(),type:iC(`builtin`).optional()}),QS({discoverable:JS().optional(),hidden:JS().optional(),identifier:H(),manifest:yNe,type:iC(`builtin`)})})),xNe=o((()=>{})),SNe=o((()=>{})),CNe,wNe=o((()=>{pC(),bNe(),CNe=QS({properties:tC(H(),YS()),required:ZS(H()).optional(),type:iC(`object`)}),QS({$schema:H().optional(),api:ZS(MC),connector:QS({id:H(),identifier:H()}).optional(),connectorLinks:QS({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:ZS(QS({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:ZS(MC).optional(),mcpModelOnlyTools:ZS(H()).optional(),meta:jC,openapi:H().optional(),settings:CNe.optional(),systemRole:H().optional(),type:nC([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:QS({height:qS().optional(),mode:nC([`iframe`,`module`]).optional(),url:H(),width:qS().optional()}).optional(),version:H().optional()})})),TNe=o((()=>{})),ENe=o((()=>{})),DNe,ONe=o((()=>{pC(),DNe=QS({description:H().optional(),name:H(),parameters:QS({additionalProperties:JS().optional(),properties:tC(H(),YS()),required:ZS(H()).optional(),type:iC(`object`)})})})),kNe=o((()=>{bNe(),xNe(),SNe(),mNe(),wNe(),TNe(),ENe(),ONe()})),NC,ANe,jNe,PC,MNe,FC,NNe,IC,LC,RC,zC,PNe,FNe,BC,INe,LNe,RNe,zNe,VC,BNe,VNe=o((()=>{pC(),NC=1e6,ANe=2e3,jNe=2e3,PC=12e3,MNe=QS({kind:iC(`writing`)}).strict(),FC=QS({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:JS()}).strict(),NNe=QS({errors:ZS(FC).max(16),evidenceCount:qS().int().nonnegative().max(NC),failedCount:qS().int().nonnegative().max(NC),succeededCount:qS().int().nonnegative().max(NC)}).strict(),NNe.omit({errors:!0}).strip(),IC=e=>H().trim().min(1).max(e),LC=IC(256),RC=IC(ANe),zC=QS({content:IC(PC),reasoning:RC,tagline:LC}).strict(),PNe=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}},FNe=oC(PNe,QS({description:RC,rank:qS().int().min(0).max(100),title:LC}).strict()),BC=e=>ZS(FNe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),INe=QS({composition:QS({identities:BC(6),interests:BC(8),lifeStyle:BC(6),social:BC(6),working:BC(6)}).strict(),personaProposal:zC,profile:QS({domains:ZS(LC).max(8),description:RC,name:LC,pronoun:LC,roles:ZS(LC).max(8),summary:RC,tagline:LC}).strict()}).strict(),QS({analysis:INe,detailedPersona:zC.optional(),diagnostics:NNe,feedbackRevision:qS().int().nonnegative().max(NC).default(0),generationRevision:qS().int().nonnegative().max(NC).default(0),kind:iC(`proposal`),providers:ZS(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),LNe=QS({content:H().trim().min(1).max(jNe),createdAt:H(),revision:qS().int().positive().max(NC)}).strict(),RNe=QS({revision:qS().int().nonnegative().max(NC),turns:ZS(LNe).max(16)}).strict(),zNe=QS({completedAt:H().optional(),errors:ZS(FC).max(16),failedCount:qS().int().nonnegative().max(NC),revision:qS().int().nonnegative().max(NC),status:nC([`pending`,`running`,`completed`,`failed`]),succeededCount:qS().int().nonnegative().max(NC)}).strict(),VC={detailed:eC(`status`,[QS({status:iC(`running`),updatedAt:H()}).strict(),QS({status:iC(`completed`),updatedAt:H()}).strict(),QS({error:FC,status:iC(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:qS().int().nonnegative().max(NC).default(0),generationRevision:qS().int().nonnegative().max(NC).default(0),sourceFingerprint:H(),updatedAt:H()},BNe=eC(`status`,[QS({...VC,resultMessageId:H().optional(),status:iC(`running`)}).strict(),QS({...VC,resultMessageId:H(),status:iC(`completed`)}).strict(),QS({...VC,error:FC,resultMessageId:H().optional(),status:iC(`failed`)}).strict()]),QS({confirmedAt:H().optional(),feedback:RNe.default({revision:0,turns:[]}),generationRevision:qS().int().nonnegative().max(NC).default(0),id:H(),sources:tC(H().max(64),zNe),writing:BNe.optional()}).strict()})),HC,HNe,UNe=o((()=>{pC(),VNe(),HC={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},HNe=QS({clientMode:JS().optional(),completedAt:H().optional(),duration:qS().optional(),error:YS().optional(),model:H().optional(),onboardingUnderstanding:MNe.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:qS().optional(),totalLlmCalls:qS().optional(),totalMessages:qS().optional(),totalTokens:qS().optional(),totalSteps:qS().optional(),totalToolCalls:qS().optional()}),QS({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:HNe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:nC([HC.Continuation,HC.Eval,HC.Standalone,HC.Isolation])})})),WNe,GNe,UC,KNe,WC,qNe,JNe=o((()=>{pC(),lMe(),kC(),oNe(),kNe(),UNe(),WNe=QS({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:nC([HC.Continuation,HC.Standalone,HC.Isolation])}),GNe=QS({content:H(),metadata:OC.optional(),plugin:QS({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:nC([`assistant`,`tool`]),tool_call_id:H().optional(),tools:ZS(QMe).optional()}),UC=e=>H().regex(cMe(e)).optional(),QS({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:QS({agentId:H().optional(),id:UC(`messages`),metadata:tC(H(),XS()).optional().transform(UMe),model:H().optional(),provider:H().optional()}),newThread:WNe.optional(),newTopic:QS({id:UC(`topics`),metadata:aC().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:ZS(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:ZS(GNe).optional(),newUserMessage:QS({content:H(),contextSelections:ZS(TMe).optional(),editorData:tC(H(),XS()).optional(),files:ZS(H()).optional(),id:UC(`messages`),metadata:OC.optional(),pageSelections:ZS(DMe).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:QS({excludeStatuses:ZS(H()).optional(),excludeTriggers:ZS(H()).optional(),includeTriggers:ZS(H()).optional(),onlyMine:JS().optional()}).optional(),topicPageSize:qS().int().min(1).max(100).optional(),topicId:H().optional()}),KNe=QS({description:H().optional(),name:H(),schema:QS({$defs:YS().optional(),additionalProperties:JS().optional(),properties:tC(H(),YS()),required:ZS(H()).optional(),type:iC(`object`)}),strict:JS().optional()}),QS({metadata:tC(H(),XS()).optional(),messages:ZS(YS()),model:H(),provider:H(),schema:KNe.optional(),tools:ZS(QS({function:DNe,type:iC(`function`)})).optional(),tracing:QS({tracingId:H().uuid().optional()}).catchall(XS()).optional()}),WC=$S([H(),ZS(XS()),tC(H(),XS())]),qNe=eC(`type`,[QS({criteria:QS({false:WC,true:WC}).optional(),instructions:WC,type:iC(`boolean`)}),QS({criteria:tC(H(),WC.nullable()),instructions:WC,type:iC(`choice`)}),QS({criteria:ZS(WC).min(1),instructions:WC,type:iC(`score`)})]),QS({metadata:tC(H(),XS()).optional(),model:H(),provider:H(),questions:tC(H(),qNe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:WC,tracing:QS({tracingId:H().uuid().optional()}).catchall(XS()).optional()})})),YNe=o((()=>{pC()})),XNe=o((()=>{})),ZNe=o((()=>{})),QNe=o((()=>{})),$Ne=o((()=>{})),ePe=o((()=>{})),tPe,nPe=o((()=>{Hke(),tPe=Vke.map(({type:e})=>e),[...Bke.options,...tPe]})),rPe=o((()=>{})),iPe=o((()=>{rPe()})),aPe=o((()=>{})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{})),lPe=o((()=>{})),uPe=o((()=>{})),dPe=o((()=>{})),fPe=o((()=>{})),pPe=o((()=>{pC(),QS({connected:JS(),cpuCount:qS().int().min(1).max(4096),cpuPercent:qS().min(0).max(100).nullable(),diskTotalBytes:qS().int().min(0).nullish(),diskUsedBytes:qS().int().min(0).nullish(),load1:qS().min(0).nullable(),load5:qS().min(0).nullable(),load15:qS().min(0).nullable(),memoryTotalBytes:qS().int().min(0),memoryUsedBytes:qS().int().min(0),observedAt:qS().int().min(0)})})),mPe=o((()=>{})),hPe=o((()=>{})),gPe=o((()=>{})),_Pe=o((()=>{})),vPe=o((()=>{})),yPe=o((()=>{})),bPe=o((()=>{})),xPe=o((()=>{})),SPe=o((()=>{mPe(),hPe(),gPe(),_Pe(),vPe(),yPe(),bPe(),xPe()})),CPe=o((()=>{pC(),QS({shareId:H(),topicId:H(),visitorUserId:H()})})),wPe=o((()=>{})),TPe=o((()=>{})),EPe=o((()=>{CPe(),wPe(),TPe()})),DPe=o((()=>{})),OPe=o((()=>{})),kPe=o((()=>{})),APe=o((()=>{})),jPe=o((()=>{})),MPe=o((()=>{})),NPe=o((()=>{})),PPe=o((()=>{})),FPe=o((()=>{})),IPe=o((()=>{pC(),QS({ideal:H().optional(),question:H(),referenceFiles:H().or(ZS(H())).optional()}),QS({description:H().optional(),knowledgeBaseId:H(),name:H()})})),LPe=o((()=>{})),RPe=o((()=>{})),zPe=o((()=>{})),BPe=o((()=>{pC(),QS({ideal:H().optional(),question:H(),referenceFiles:H().or(ZS(H())).optional()}),QS({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),VPe=o((()=>{})),HPe=o((()=>{})),UPe=o((()=>{})),WPe,GPe=o((()=>{pC(),bNe(),WPe=QS({api:ZS(MC.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:jC,systemRole:H().optional(),type:nC([`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`),tC(H().min(1).max(255),WPe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),KPe=o((()=>{APe(),jPe(),MPe(),NPe(),PPe(),FPe(),IPe(),LPe(),RPe(),zPe(),BPe(),VPe(),HPe(),UPe(),GPe()})),qPe=o((()=>{})),JPe=o((()=>{})),YPe=o((()=>{})),GC,XPe,ZPe=o((()=>{GC={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},XPe=[GC.RemoteServerOffline,GC.RemoteServerTimeout,GC.RemoteServerDNSFailed,GC.RemoteServerConnectionRefused,GC.RemoteServerCertInvalid,GC.RemoteServerUnreachable],new Set(XPe)})),QPe,$Pe,eFe=o((()=>{pC(),QPe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),$Pe=100,QS({category:H().optional(),filesOnly:JS().optional(),includeContentPreview:JS().optional(),knowledgeBaseId:H().optional(),limit:qS().int().positive().max($Pe).default(50),offset:qS().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:JS().default(!1),sortType:nC([`desc`,`asc`]).optional(),sorter:nC([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:rC(QPe).optional(),visibility:nC([`private`,`public`]).optional()})})),tFe,nFe=o((()=>{pC(),tFe=QS({shareId:H(),visitorUserId:H()}),QS({agentShare:tFe.optional(),date:H(),dirname:H(),filename:H(),height:qS().optional(),path:H(),ratio:qS().optional(),width:qS().optional()}),QS({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:YS().optional(),name:H(),size:qS(),source:H().optional(),url:H().optional()})})),rFe,iFe=o((()=>{eFe(),nFe(),rFe=function(e){return e.Acceptance=`acceptance`,e.AgentDocument=`agent-document`,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(rFe))})),aFe=o((()=>{})),oFe,sFe,cFe,lFe,KC,uFe,dFe,fFe,pFe,mFe=o((()=>{pC(),oFe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],sFe=[`agentEmoji`,`agentName`,`fullName`],cFe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],lFe=[`agent_identity`,`user_identity`,`discovery`,`summary`],KC=H().trim().transform(e=>e.length>0?e:void 0).optional(),uFe=ZS(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),nC(oFe),dFe=nC(sFe),fFe=nC(cFe),QS({agentEmoji:KC,agentName:KC,customInterests:uFe,fullName:KC,interests:uFe}).strict(),pFe=nC(lFe),QS({discoveryUserMessageCount:qS().optional(),finished:JS(),missingStructuredFields:ZS(dFe),phase:pFe,remainingDiscoveryExchanges:qS().optional(),topicId:H().optional(),version:qS()}).strict(),QS({activeTopicId:H().optional(),discoveryStartUserMessageCount:qS().optional(),finishedAt:H().optional(),version:qS()}).strict(),QS({node:fFe,patch:QS({}).passthrough()}).strict()})),hFe,gFe,_Fe=o((()=>{pC(),mFe(),hFe=$S([QS({kind:iC(`onboarding`),phase:pFe}),QS({kind:iC(`chat`)})]),gFe=QS({model:H().min(1),provider:H().min(1)}),QS({hint:hFe.optional(),modelConfig:gFe,threadId:H().optional(),topicId:H().min(1)})})),vFe=o((()=>{})),yFe=o((()=>{})),bFe=o((()=>{})),xFe=o((()=>{})),qC,SFe,CFe,wFe,TFe,EFe,DFe,OFe,kFe,AFe=o((()=>{pC(),qC=ZS(H().trim().min(1)).max(200),SFe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),CFe=oC(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||SFe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),wFe=[`dead_end`,`superseded`,`retry`],TFe=2e3,EFe=QS({kind:nC(wFe),lesson:H().trim().min(1).max(TFe),nodeIds:qC.min(1),reason:H().trim().min(1).max(TFe),title:H().trim().min(1).max(200)}).strict(),DFe=QS({detours:ZS(EFe).max(20).default([]),findingIds:qC.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:qC.default([]),title:H().trim().min(1).max(200),workVersionIds:qC.default([])}).strict(),OFe=QS({nodeIds:qC.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),kFe=QS({edgeIds:qC.default([]),nodeIds:qC.min(1)}).strict(),QS({chapters:ZS(DFe).min(1).max(30),deliverableWorkId:CFe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:kFe.optional(),nextSteps:ZS(OFe).max(20).default([])}).strict()})),jFe=o((()=>{})),MFe=o((()=>{})),NFe=o((()=>{})),PFe=o((()=>{})),FFe,IFe,LFe,RFe=o((()=>{pC(),FFe=QS({apiName:H(),arguments:H(),id:H(),identifier:H(),type:iC(`default`)}),IFe=QS({clientId:H(),content:H(),createdAt:H().optional(),metadata:tC(H(),YS()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:QS({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:tC(H(),YS()).optional(),provider:H().optional(),reasoning:QS({content:H()}).passthrough().optional(),role:nC([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:ZS(FFe).optional(),usage:tC(H(),YS()).optional()}),LFe=QS({clientId:H(),messages:ZS(IFe),sourceMessageClientId:H().optional(),status:nC([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:nC([`continuation`,`standalone`,`isolation`])}),QS({messages:ZS(IFe),metadata:tC(H(),YS()).optional(),sessionId:H(),source:nC([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:ZS(LFe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),zFe=o((()=>{})),BFe=o((()=>{})),VFe=o((()=>{})),HFe=o((()=>{})),UFe,WFe=o((()=>{UFe=[`triage`,`backlog`,`unstarted`,`started`],[...UFe]})),GFe=o((()=>{})),KFe=o((()=>{})),qFe=o((()=>{})),JFe=o((()=>{})),YFe,XFe,ZFe=o((()=>{pC(),YFe=QS({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),XFe=QS({citations:ZS(QS({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:ZS(YFe).optional(),imageSearchQueries:ZS(H()).optional(),searchQueries:ZS(H()).optional()})})),QFe=o((()=>{pC(),ZFe(),kC(),QS({content:H().optional(),editorData:tC(H(),YS()).nullish(),error:uMe.nullish(),imageList:ZS(qMe).optional(),metadata:OC.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:fMe.optional(),role:H().optional(),search:XFe.nullish(),toolCalls:ZS(ZMe).optional(),tools:ZS(QMe).nullish(),traceId:H().optional(),usage:DC.optional()}).passthrough()})),$Fe=o((()=>{JFe(),QFe()})),eIe=o((()=>{})),tIe=o((()=>{})),nIe=o((()=>{})),rIe=o((()=>{})),iIe=o((()=>{eIe(),tIe(),nIe(),oNe(),rNe(),rIe()})),aIe=o((()=>{kC(),$Fe(),iIe()})),oIe=o((()=>{pC(),QS({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:ZS(H()).optional(),title:H().optional()})})),sIe=o((()=>{})),cIe=o((()=>{})),lIe,uIe=o((()=>{pC(),lIe=QS({accessToken:H().optional(),token:H().optional(),type:nC([`none`,`bearer`,`oauth2`])}).optional(),QS({auth:lIe,headers:tC(H(),H()).optional(),identifier:H(),metadata:QS({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),dIe=o((()=>{})),fIe=o((()=>{uIe(),dIe()})),pIe=o((()=>{})),mIe=o((()=>{pC(),QS({fileIds:ZS(H()).optional(),knowledgeIds:ZS(H()).optional(),query:H(),topK:qS().optional()})})),hIe=o((()=>{})),gIe=o((()=>{})),_Ie=o((()=>{})),vIe=o((()=>{})),yIe=o((()=>{})),bIe=o((()=>{})),xIe=o((()=>{})),SIe,CIe=o((()=>{SIe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),wIe=o((()=>{xIe(),CIe()})),TIe,EIe,DIe=o((()=>{TIe=`NO_REPLY`,EIe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${TIe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(EIe)})),OIe,kIe=o((()=>{pC(),OIe=QS({name:H(),url:H().url().optional()}),QS({author:$S([H(),OIe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:ZS(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),AIe=o((()=>{})),jIe=o((()=>{})),MIe=o((()=>{})),NIe,PIe=o((()=>{NIe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],NIe[0]})),JC,FIe=o((()=>{JC=1440*60*1e3,30*JC,90*JC,7*JC})),IIe=o((()=>{jIe(),MIe(),PIe(),FIe()})),LIe=o((()=>{})),YC,RIe,zIe,BIe,VIe,HIe,UIe,WIe=o((()=>{pC(),YC=nC([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),QS({serverDefaultHeterogeneousProfiles:ZS(H().min(1)).optional()}).passthrough(),RIe=QS({audio:JS().optional(),functionCall:JS().optional(),imageOutput:JS().optional(),reasoning:JS().optional(),search:JS().optional(),video:JS().optional(),vision:JS().optional()}),zIe=QS({codexMaxReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:nC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:nC([`none`,`high`,`max`]).optional(),effort:nC([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:nC([`high`,`max`]).optional(),glm5_3ReasoningEffort:nC([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:nC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:nC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:nC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:nC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:nC([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:nC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:nC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:nC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:nC([`low`,`high`,`max`]).optional(),opus47Effort:nC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:nC([`low`,`medium`,`high`]).optional(),reasoningMode:nC([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:nC([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:nC([`low`,`high`]).optional(),thinkingLevel:nC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:nC([`low`,`high`]).optional(),thinkingLevel3:nC([`low`,`medium`,`high`]).optional(),thinkingLevel4:nC([`minimal`,`high`]).optional(),thinkingLevel5:nC([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(zIe.shape),BIe=nC(`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(`.`)),VIe=nC([`tool`,`params`,`internal`]),HIe=nC([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),UIe=QS({disabledParams:ZS(HIe).optional(),extendParams:ZS(BIe).optional(),searchImpl:VIe.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),QS({abilities:RIe.optional(),contextWindowTokens:qS().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:UIe.optional(),type:YC.optional()}),QS({abilities:RIe.optional(),config:QS({deploymentName:H().optional()}).optional(),contextWindowTokens:qS().nullish(),displayName:H().nullish(),settings:UIe.optional(),type:YC.optional()}),QS({enabled:JS(),id:H(),providerId:H(),source:nC([`builtin`,`custom`,`remote`]).optional(),type:YC.optional()})})),GIe,XC,KIe,qIe,JIe,YIe,XIe,ZIe,QIe=o((()=>{WIe(),pC(),Vje(),Uje(),GIe=QS({claimedAt:H(),expiresAt:H(),id:H()}),XC=QS({claim:GIe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),KIe=XC.extend({failedAssistantMessageId:H(),kind:iC(`resume_after_rate_limit`),rateLimit:QS({rateLimitType:H().optional(),resetsAt:qS().optional()}).optional(),resume:QS({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:iC(`heterogeneous_agent`),userMessageId:H()}),qIe=XC.extend({kind:iC(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),QS({baseBranch:H().min(1).max(1024).optional(),deviceId:H().min(1).max(256),path:H().min(1).max(4096),repoType:nC([`git`,`github`]),sourcePath:H().min(1).max(4096)}),JIe=XC.extend({error:H().optional(),kind:iC(`worktree_start`),operationId:H(),retryable:JS().optional(),userMessageId:H(),waitingForDevice:JS().optional()}),YIe=eC(`kind`,[KIe,qIe,JIe]),QS({claim:GIe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:mOe().optional(),rateLimit:QS({rateLimitType:H().optional(),resetsAt:qS().optional()}).optional(),reason:iC(`rate_limit`),resume:QS({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:iC(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),XIe=QS({boundDeviceId:H().optional(),heteroEffort:aC(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:tC(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:tC(H(),H()).optional(),heteroPermissionMode:nC(Hje).optional(),heteroPermissionModeFallback:nC([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:nC([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:QS({comment:H().max(500).optional(),rating:nC([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:QS({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:QS({categoryHints:ZS(H()),installedAgentIds:ZS(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:ZS(H()).optional(),skipReason:H().optional(),skippedAgentIds:ZS(H()).optional(),status:nC([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:ZS(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:nC([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:qS().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:zIe.optional(),repos:ZS(H()).optional(),runningOperation:hOe().optional(),taskCallbackReservation:QS({messageId:H(),reservedAt:H()}).nullable().optional(),sandboxDrive:nC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxWorkingDirectory:H().max(1024).optional(),scheduledRun:YIe.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:zje.optional()}),XIe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),ZIe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],nC(ZIe)})),$Ie=o((()=>{LIe(),UNe(),QIe()})),eLe=o((()=>{})),tLe=o((()=>{})),nLe=o((()=>{pC(),QS({currentStep:qS().min(1).max(7).optional(),finishedAt:H().optional(),version:qS()})})),rLe=o((()=>{})),iLe,aLe,oLe=o((()=>{pC(),iLe=QS({checked:JS(),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:ZS(QS({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(),aLe=QS({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:JS()}).strict(),QS({completedAt:H().optional(),createdTaskIds:tC(H().max(128),H().max(512)),errors:ZS(aLe).max(16),id:H().min(1).max(512),providerIds:ZS(H().min(1).max(128)).max(16),recommendations:ZS(iLe).max(48),sourceFingerprint:H().min(1).max(2048),status:nC([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),sLe,cLe,lLe,uLe,dLe=o((()=>{pC(),sLe=QS({docsMerged:JS().optional(),moveSettingsToAvatar:JS().optional(),topic:JS().optional(),uploadFileInKnowledgeBase:JS().optional()}),cLe=QS({enableBetterCodingExperience:JS().optional(),enableAgentIdentity:JS().optional(),enableAgentGraphConfig:JS().optional(),enableArtifactDeployment:JS().optional(),enablePageCollab:JS().optional(),enableClaudeCodeSdk:JS().optional(),enableCodexAppServer:JS().optional(),enableDesktopSplitView:JS().optional(),enableHeteroSessionImport:JS().optional(),enableGroupChat:JS().optional(),enableImessage:JS().optional(),enableInputMarkdown:JS().optional(),enableMessageTextSelectionActions:JS().optional(),enableIntegrations:JS().optional(),enableOAuthApps:JS().optional(),enableProjects:JS().optional(),enableSelfLearning:JS().optional(),enableTaskVerify:JS().optional(),enableEvalCapture:JS().optional(),enableTopicBugReport:JS().optional(),enableGoals:JS().optional(),enableTopicAcceptance:JS().optional(),enableDeviceTunnel:JS().optional()}),lLe=QS({acceptOnMerge:JS().optional(),commentOnPrivateRepositories:JS().optional(),commentOnPublicRepositories:JS().optional(),wakeOnCiFailure:JS().optional(),wakeOnReview:JS().optional()}),uLe=QS({github:lLe.optional()}),QS({provider:H(),providerAccountId:H()}),QS({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:sLe.optional(),hideSyncAlert:JS().optional(),integration:uLe.optional(),lab:cLe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:nC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:ZS(H()).optional(),sidebarHiddenGroupIds:ZS(H()).optional(),terminalFontFamily:H().optional(),telemetry:JS().nullable(),topicGroupMode:nC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:JS().optional(),topicSortBy:nC([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:JS().optional(),workspace:QS({order:ZS(H()).optional()}).optional()}).partial()})),fLe=o((()=>{})),pLe=o((()=>{})),mLe=o((()=>{})),hLe=o((()=>{})),gLe=o((()=>{})),_Le=o((()=>{})),vLe=o((()=>{})),yLe=o((()=>{})),bLe,ZC,xLe=o((()=>{pC(),bLe=tC(H(),tC(H(),JS())),ZC=QS({enabled:JS().optional(),items:bLe.optional()}).strict(),QS({content:QS({scheduledTaskSummary:JS().optional()}).strict().optional(),email:ZC.optional(),im:ZC.extend({platforms:tC(H(),ZC.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:ZC.optional(),push:ZC.optional()}).strict()})),SLe=o((()=>{})),CLe=o((()=>{})),wLe=o((()=>{})),TLe=o((()=>{})),ELe=o((()=>{pC(),fLe(),pLe(),mLe(),hLe(),gLe(),_Le(),vLe(),yLe(),xLe(),SLe(),CLe(),wLe(),TLe(),QS({defaultAgent:YS().optional(),general:YS().optional(),hotkey:YS().optional(),image:YS().optional(),keyVaults:YS().optional(),languageModel:YS().optional(),market:YS().optional(),memory:YS().optional(),notification:YS().optional(),systemAgent:YS().optional(),tool:YS().optional(),tts:YS().optional()}).passthrough().partial()})),DLe=o((()=>{mFe(),nLe(),rLe(),oLe(),dLe(),ELe()})),OLe=o((()=>{})),kLe=o((()=>{})),ALe=o((()=>{})),jLe=o((()=>{})),MLe,NLe=o((()=>{pC(),MLe=nC([`personal`,`professional`,`demographic`]),QS({description:H().optional(),episodicDate:H().optional(),extractedLabels:ZS(H()).optional(),labels:tC(H(),YS()).optional(),relationship:H().optional(),role:H().optional(),type:MLe.optional(),userMemoryId:H().optional()}),QS({description:H().optional(),episodicDate:H().optional(),extractedLabels:ZS(H()).optional(),labels:tC(H(),YS()).optional(),relationship:H().optional(),role:H().optional(),type:MLe.optional()})})),PLe,FLe,ILe=o((()=>{PLe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(PLe),FLe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(FLe)})),LLe=o((()=>{})),RLe=o((()=>{})),zLe,BLe,VLe,QC,HLe,ULe,WLe,GLe=o((()=>{zLe=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(zLe),BLe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(BLe),VLe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(VLe),QC=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(QC),HLe=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(HLe),ULe=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(ULe),WLe=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(WLe)})),KLe=o((()=>{})),$C,qLe,JLe,YLe,XLe,ZLe,QLe,$Le,eRe,tRe,nRe,rRe,iRe,aRe=o((()=>{pC(),GLe(),$C=oC(e=>typeof e==`string`?[e]:e,ZS(H().trim().min(1))),qLe=e=>oC(e=>typeof e==`string`?[e]:e,ZS(e)),JLe=nC([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),YLe=QS({activities:qS().int().min(0).optional(),contexts:qS().int().min(0).optional(),experiences:qS().int().min(0).optional(),identities:qS().int().min(0).optional(),preferences:qS().int().min(0).optional()}),XLe=QS({end:fC().optional(),field:JLe.optional(),start:fC().optional()}),ZLe=nC([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),QLe=QS({date:fC(),selector:iC(`day`)}),$Le=QS({month:qS().int().min(1).max(12),selector:iC(`month`),year:qS().int().min(1970).max(9999)}),eRe=QS({end:fC().optional(),selector:iC(`range`),start:fC().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),tRe=QS({selector:iC(`year`),year:qS().int().min(1970).max(9999)}),nRe=nC([`today`,`yesterday`]),rRe=kOe(()=>$S([QS({selector:ZLe}),QLe,$Le,QS({anchor:$S([nRe,rRe]),offsetDays:qS().int(),selector:iC(`relativeDay`)}),eRe,tRe])),QS({categories:$C.optional(),effort:nC([`low`,`medium`,`high`]).optional(),labels:$C.optional(),layers:qLe(rC(QC)).optional(),queries:$C.optional(),relationships:$C.optional(),status:$C.optional(),tags:$C.optional(),timeIntent:rRe.optional(),timeRange:XLe.optional(),topK:YLe.optional(),types:$C.optional()}),iRe=nC([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),QS({include:qLe(iRe).optional(),layers:ZS(rC(QC)).optional(),limit:qS().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:XLe.optional()})})),oRe=o((()=>{})),sRe=o((()=>{OLe(),kLe(),ALe(),jLe(),NLe(),ILe(),LLe(),RLe(),GLe(),KLe(),aRe(),oRe()})),cRe=o((()=>{})),lRe=o((()=>{})),uRe=o((()=>{lRe()})),dRe=o((()=>{})),fRe=o((()=>{})),pRe=o((()=>{dRe(),fRe()})),mRe,hRe=o((()=>{mRe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(mRe).flatMap(([e,t])=>t.map(t=>[t,e])))})),gRe=o((()=>{})),_Re=o((()=>{pC(),QS({start:qS().finite().nonnegative()}).strict()})),vRe=o((()=>{pC(),QS({preconditions:ZS(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:ZS(QS({id:H().min(1),name:H().min(1),description:H().optional(),resource:QS({type:nC([`file`,`document`]),id:H().min(1)}).optional(),data:tC(H(),XS()).optional()})).max(100).optional(),steps:ZS(QS({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:ZS(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`]})})})),ew,yRe,bRe=o((()=>{pC(),ew=QS({height:qS().finite(),width:qS().finite(),x:qS().finite(),y:qS().finite()}),yRe=QS({commit:H().max(200).optional(),context:tC(H().max(100),$S([H().max(500),qS(),JS()])).optional(),env:QS({consoleErrors:ZS(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:nC([`change`,`comment`]),region:ew.optional(),regionRefs:ZS(QS({box:ew,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:QS({x:qS().finite(),y:qS().finite()}),targets:ZS(QS({code:QS({chain:ZS(QS({file:H().max(500).optional(),line:qS().int().optional(),name:H().max(200)})).max(5),column:qS().int(),file:H().max(500),line:qS().int()}).optional(),label:H().max(200),rect:ew,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:iC(1),viewport:QS({dpr:qS().positive(),height:qS().finite(),width:qS().finite()})}),QS({anchor:yRe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:QS({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`}),QS({note:H().trim().max(2e3).optional(),verdict:nC([`accept`,`send_back`])})})),xRe,tw,nw,rw,iw,SRe,CRe,wRe,TRe,ERe,DRe,ORe=o((()=>{pC(),bRe(),xRe=[`region`,`element`,`sketch`],tw=qS().finite(),nw=QS({height:tw,width:tw,x:tw,y:tw}),rw=yRe.shape,iw=kOe(()=>QS({children:ZS(iw).max(50),rect:nw,type:nC([`avatar`,`button`,`card`,`image`,`input`,`text`])})),SRe=QS({commit:rw.commit,context:rw.context,env:rw.env}),CRe=QS({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),wRe=QS({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:SRe.optional(),kind:nC(xRe),pageMeta:CRe.optional(),rectDocument:nw,rectViewport:nw,regionRefs:rw.regionRefs,regions:ZS(nw).max(6).optional(),routeKey:H().max(500),scroll:QS({x:tw,y:tw}),sketch:ZS(iw).max(50).optional(),targets:rw.targets.optional(),url:H().url().max(2e3),viewport:QS({dpr:qS().positive(),height:tw,width:tw})}),TRe=64*1024,ERe=QS({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),wRe.extend({screenshot:ERe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=TRe,{message:`Mark is too large`}),QS({content:H().trim().min(1).max(4e3).optional(),rectDocument:nw.optional(),rectViewport:nw.optional(),regionRefs:rw.regionRefs,regions:ZS(nw).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),QS({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),DRe=[`pass`,`not_fixed`],QS({reason:H().trim().max(2e3).optional(),verdict:nC(DRe)}),QS({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),aw,kRe,ow,sw,cw,ARe,lw,uw,jRe,MRe,NRe=o((()=>{pC(),aw=[`journey`,`options`,`references`,`other`],kRe=[`html`,`image`,`video`,`decision`],ow=H(),sw=qS().finite(),cw=qS().finite().positive(),QS({hash:H().min(1).nullable(),kind:iC(`file`),path:H().min(1)}),ARe=QS({kind:iC(`file`),path:H().min(1)}),lw=H().min(1).optional(),uw=H().min(1),jRe={expected:ow.optional(),groupId:uw.optional(),h:cw.optional(),pageId:uw.optional(),recommended:JS().optional(),roundId:uw.optional(),source:ARe.optional(),title:ow,type:nC(kRe).optional(),w:cw.optional(),x:sw,y:sw},MRe={desc:ow.optional(),kind:nC(aw),pageId:uw.optional(),title:ow},eC(`type`,[QS({page:QS({name:ow.min(1)}),ref:lw,type:iC(`addPage`)}),QS({id:uw,patch:QS({name:ow.min(1)}),type:iC(`updatePage`)}),QS({id:uw,type:iC(`removePage`)}),QS({ref:lw,round:QS({batchId:uw.optional(),pageId:uw.optional(),title:ow.min(1)}),type:iC(`addRound`)}),QS({id:uw,patch:QS({title:ow.min(1)}),type:iC(`updateRound`)}),QS({group:QS(MRe),ref:lw,type:iC(`addGroup`)}),QS({id:uw,patch:QS({desc:ow,kind:nC(aw),title:ow}).partial(),type:iC(`updateGroup`)}),QS({id:uw,type:iC(`removeGroup`)}),QS({board:QS(jRe),ref:lw,type:iC(`addBoard`)}),QS({id:uw,patch:QS({...jRe,groupId:uw.nullable(),roundId:uw.nullable()}).omit({pageId:!0,type:!0}).partial(),type:iC(`updateBoard`)}),QS({id:uw,type:iC(`removeBoard`)}),QS({edge:QS({condition:ow.optional(),from:uw,isDefault:JS().optional(),label:ow.optional(),to:uw}),ref:lw,type:iC(`addEdge`)}),QS({id:uw,type:iC(`removeEdge`)}),QS({boardId:uw,expected:ow,type:iC(`setCheck`)})])})),dw,fw,PRe,FRe,IRe=o((()=>{pC(),dw={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},fw=H().min(1).max(dw.maxPathLength+2),PRe=$S([QS({content:H(),path:fw}).strict(),QS({fileRef:H().min(1),path:fw}).strict(),QS({base64:H().min(1),path:fw}).strict(),QS({path:fw,uploaded:iC(!0)}).strict(),QS({fromCanvas:QS({canvasId:H().min(1),version:qS().int().positive().optional()}).strict(),path:fw}).strict()]),ZS(QS({path:fw,size:qS().int().nonnegative()}).strict()).min(1).max(dw.maxFiles),FRe=QS({newText:H(),oldText:H().min(1),path:fw}).strict(),QS({deletes:ZS(fw).max(dw.maxFiles).optional(),edits:ZS(FRe).max(200).optional(),writes:ZS(PRe).max(dw.maxFiles).optional()}).strict()})),LRe=o((()=>{})),RRe=o((()=>{})),zRe=o((()=>{})),BRe=o((()=>{})),VRe,HRe,URe,WRe,GRe,KRe,qRe,JRe,YRe,XRe=o((()=>{pC(),VRe=[`new`,`reuse`],HRe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,URe=QS({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),WRe=QS({arguments:tC(H(),XS()),delivery:URe.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),GRe=QS({cursor:H().nullable().optional(),deliveryStatus:QS({active:JS().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:qS().nonnegative().optional(),throttled:JS().optional()}).optional(),refreshBefore:Nke({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:JS().optional()}).strict(),KRe=QS({scheme:iC(`standard_webhooks`)}).strict(),qRe=QS({autoApprove:JS(),delivery:URe.optional(),identifier:H().regex(HRe).optional(),topicMode:nC(VRe),topicId:H().min(1).optional()}).strict(),JRe=QS({}).strict(),YRe=QS({scheme:iC(`bearer_token`)}).strict(),eC(`kind`,[QS({kind:iC(`mcp_events`),config:WRe,state:GRe,verification:KRe}),QS({kind:iC(`generic`),config:qRe,state:JRe,verification:YRe})])})),ZRe=o((()=>{})),QRe=o((()=>{})),$Re=o((()=>{})),eze=o((()=>{})),tze=o((()=>{})),nze=o((()=>{})),rze=o((()=>{})),ize=o((()=>{nze(),rze()})),aze=o((()=>{})),oze=o((()=>{})),sze=o((()=>{})),cze=o((()=>{Nje(),Fje(),Ije(),Lje(),qje(),Yje(),$je(),eMe(),tMe(),rMe(),iMe(),aMe(),JNe(),YNe(),XNe(),ZNe(),QNe(),$Ne(),ePe(),nPe(),iPe(),aPe(),oPe(),sPe(),cPe(),lPe(),uPe(),Vje(),dPe(),fPe(),pPe(),SPe(),EPe(),DPe(),OPe(),lMe(),kPe(),KPe(),qPe(),JPe(),YPe(),ZPe(),iFe(),aFe(),_Fe(),vFe(),yFe(),bFe(),xFe(),AFe(),jFe(),MFe(),NFe(),PFe(),RFe(),zFe(),BFe(),VFe(),HFe(),WFe(),GFe(),KFe(),qFe(),aIe(),oIe(),sIe(),cIe(),fIe(),pIe(),mIe(),hIe(),gIe(),_Ie(),vIe(),ZFe(),yIe(),bIe(),wIe(),DIe(),kIe(),AIe(),IIe(),kNe(),$Ie(),eLe(),tLe(),VNe(),DLe(),sRe(),cRe(),uRe(),pRe(),hRe(),gRe(),_Re(),vRe(),bRe(),ORe(),hMe(),NRe(),IRe(),LRe(),RRe(),zRe(),BRe(),Uje(),XRe(),ZRe(),QRe(),$Re(),eze(),tze(),ize(),VNe(),sRe(),aze(),oze(),sze()})),lze=o((()=>{})),uze,pw,dze=o((()=>{uze=[`*`,`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(uze),pw=(e,t)=>({read:e,write:t}),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,null),pw(`knowledge:read`,`knowledge:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,null),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`model:read`,`model:write`),pw(`model:read`,`model:write`),pw(`chat:read`,null),pw(`chat:read`,`chat:write`),pw(`knowledge:read`,`knowledge:write`),pw(`model:read`,`model:write`),pw(`agent:read`,null),pw(`knowledge:read`,`knowledge:write`),pw(`knowledge:read`,`knowledge:write`),pw(`knowledge:read`,`knowledge:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`user:read`,`user:write`),pw(`file:read`,`file:write`),pw(`file:read`,`file:write`),pw(`chat:read`,`chat:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`chat:read`,`chat:write`),pw(`knowledge:read`,`knowledge:write`),pw(`knowledge:read`,`knowledge:write`),pw(`agent:read`,`agent:write`),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`agent:read`,`agent:write`),pw(`knowledge:read`,`knowledge:write`),pw(`user:read`,`user:write`),pw(`chat:read`,`chat:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`chat:read`,null),pw(`chat:read`,null),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`file:read`,`file:write`),pw(`usage:read`,null),pw(`user:read`,`user:write`),pw(`user:read`,`user:write`),pw(`user:read`,`user:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,null),pw(`agent:read`,`agent:write`),pw(`workspace:read`,`workspace:write`),pw(`workspace:read`,null),pw(`workspace:read`,null),pw(`workspace:read`,`workspace:write`)})),mw,fze=o((()=>{mw=1024*1024,10*mw,10*mw,10*mw,10*mw,50*mw,50*mw,20*mw,5*mw,20*mw,2*mw,100*mw})),pze=o((()=>{}));function mze(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=_ze.test(e[0]);hze.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(gze,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(gze,`$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 hw(...e){return mze(Array.from(Array.isArray(e[0])?e[0]:e))}var hze,gze,_ze,vze=o((()=>{hze=RegExp(`^[^/:\\d][^/:]*:/*$`),gze=RegExp(`^([^/:\\d][^/:]*):/*`),_ze=/^[^/:]+:\d+(?:[/?#]|$)/})),yze,gw,bze,xze,_w,vw,Sze,Cze,wze,Tze,Eze,Dze,Oze=o((()=>{vze(),yze=`https://app.lobehub.com`,gw=`https://lobehub.com`,bze=gw,xze=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},_w=`https://github.com/lobehub/lobehub`,hw(_w,`issues/new/choose`),vw=hw(gw,`/docs`),Sze=hw(vw,`/usage`),Cze=hw(vw,`/self-hosting`),hw(Cze,`/server-database`),`${vw}`,hw(Sze,`/plugins/development`),hw(Cze,`/advanced/upstream-sync`),hw(gw,`blog`),hw(_w,`issues/new/choose`),hw(gw,`/privacy`),hw(gw,`/terms`),wze=`https://github.com/lobehub/lobe-chat-agents`,hw(wze,`issues/new`),Tze=(e,t)=>`/agent/${e}`,Eze=(e,t,n)=>hw(`/agent`,e,t),Dze=(e,t)=>hw(`/group`,e,t),hw(_w,`releases`),hw(gw,`changelog`),hw(gw,`/downloads`),hw(gw,`/mobile`)})),kze=o((()=>{Oze()})),Aze=o((()=>{kze()})),jze=o((()=>{})),Mze,yw,Nze,Pze,Fze=o((()=>{Mze=e=>e.join(`+`),yw={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},Nze=[{electronAccelerator:`Alt+Shift+Space`,id:yw.QuickComposer,uiKeys:Mze([`alt`,`shift`,`space`])},{electronAccelerator:``,id:yw.QuickChat,uiKeys:``},{electronAccelerator:``,id:yw.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:yw.OpenSettings,nonEditable:!0,uiKeys:Mze([`mod`,`comma`])}],Pze=Nze.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),Nze.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),Ize=o((()=>{Fze(),Pze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),Lze,Rze,zze,Bze=o((()=>{wC(),Lze={},Rze=LAe,zze=`/avatars/lobe-ai.png`})),bw=o((()=>{wC()})),Vze,Hze,Uze,Wze,Gze=o((()=>{wC(),Bze(),bw(),Vze={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},Hze={model:SC,provider:CC},Uze={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:Hze,searchMode:`auto`,selfIteration:{enabled:!1}},Wze={chatConfig:Uze,model:SC,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:CC,systemRole:``,tts:Vze}})),Kze=o((()=>{})),qze=o((()=>{})),Jze,Yze,Xze,Zze,Qze,$ze,eBe,tBe,nBe,rBe,iBe,aBe,oBe,sBe,cBe,lBe,uBe,dBe=o((()=>{Jze=`@lobehub/lobehub`,Yze=`2.3.4`,Xze=`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.`,Zze=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],Qze=`https://github.com/lobehub/lobehub`,$ze={url:`https://github.com/lobehub/lobehub/issues/new/choose`},eBe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},tBe=`LobeHub <i@lobehub.com>`,nBe=[`./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`],rBe=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],iBe={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`},aBe={"@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`},oBe=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.16.1","@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"}`),sBe={"@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`},cBe=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,lBe={access:`public`,registry:`https://registry.npmjs.org`},uBe={name:Jze,version:Yze,description:Xze,keywords:Zze,homepage:Qze,bugs:$ze,repository:eBe,license:`MIT`,author:tBe,sideEffects:nBe,workspaces:rBe,scripts:iBe,"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:aBe,dependencies:oBe,devDependencies:sBe,packageManager:cBe,publishConfig:lBe}})),xw,Sw,Cw=o((()=>{wC(),dBe(),xw=uBe.version,Sw=xC!==`LobeHub`})),ww,Tw,Ew,Dw,Ow,fBe,pBe=o((()=>{Cw(),ww=e=>e.join(`+`),Tw={Alt:`alt`,Backquote:`backquote`,Backslash:`backslash`,Backspace:`backspace`,BracketLeft:`bracketleft`,BracketRight:`bracketright`,Comma:`comma`,Ctrl:`ctrl`,Down:`down`,Enter:`enter`,Equal:`equal`,Esc:`esc`,Left:`left`,LeftClick:`left-click`,LeftDoubleClick:`left-double-click`,Meta:`meta`,MiddleClick:`middle-click`,Minus:`minus`,Mod:`mod`,Number:`1-9`,Period:`period`,Plus:`equal`,QuestionMark:`slash`,Quote:`quote`,Right:`right`,RightClick:`right-click`,RightDoubleClick:`right-double-click`,Semicolon:`semicolon`,Shift:`shift`,Slash:`slash`,Space:`space`,Tab:`tab`,Up:`up`,Zero:`0`},Ew={CommandPalette:`commandPalette`,DeleteAndRegenerateMessage:`deleteAndRegenerateMessage`,DeleteLastMessage:`deleteLastMessage`,EditMessage:`editMessage`,FindInTopic:`findInTopic`,NavigateToChat:`navigateToChat`,NextTab:`nextTab`,OpenChatSettings:`openChatSettings`,PrevTab:`prevTab`,OpenHotkeyHelper:`openHotkeyHelper`,OpenTaskFilter:`openTaskFilter`,RegenerateMessage:`regenerateMessage`,SaveDocument:`saveDocument`,SaveTopic:`saveTopic`,Search:`search`,ShowApp:`showApp`,SwitchAgent:`switchAgent`,SwitchTab:`switchTab`,ToggleFavorite:`toggleFavorite`,ToggleLeftPanel:`toggleLeftPanel`,ToggleRightPanel:`toggleRightPanel`,ToggleTerminalPanel:`toggleTerminalPanel`},Dw={Conversation:`conversation`,Essential:`essential`},Ow={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},fBe=[{group:Dw.Essential,id:Ew.CommandPalette,keys:ww([Tw.Mod,`k`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.Search,keys:ww([Tw.Mod,`j`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.SwitchAgent,keys:ww([Tw.Ctrl,Tw.Number]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.SwitchTab,keys:ww([Tw.Mod,Tw.Number]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.NextTab,keys:ww([Tw.Ctrl,Tw.Tab]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.PrevTab,keys:ww([Tw.Ctrl,Tw.Shift,Tw.Tab]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.NavigateToChat,keys:ww([Tw.Ctrl,Tw.Shift,Tw.Backquote]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleLeftPanel,keys:ww([Tw.Mod,Tw.BracketLeft]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleRightPanel,keys:ww([Tw.Mod,Tw.BracketRight]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.OpenHotkeyHelper,keys:ww([Tw.Ctrl,Tw.Shift,Tw.QuestionMark]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleFavorite,keys:ww([Tw.Alt,`f`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.OpenTaskFilter,keys:`f`,scopes:[Ow.Global]},{group:Dw.Conversation,id:Ew.FindInTopic,keys:ww([Tw.Mod,`f`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.ToggleTerminalPanel,keys:ww([Tw.Ctrl,Tw.Backquote]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.OpenChatSettings,keys:ww([Tw.Alt,Tw.Comma]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.RegenerateMessage,keys:ww([Tw.Alt,`r`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.DeleteLastMessage,keys:ww([Tw.Alt,`d`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.DeleteAndRegenerateMessage,keys:ww([Tw.Alt,Tw.Shift,`r`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.SaveTopic,keys:ww([Tw.Alt,`n`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.EditMessage,keys:ww([Tw.Alt,Tw.LeftDoubleClick]),nonEditable:!0,scopes:[Ow.Chat]},{group:Dw.Essential,id:Ew.SaveDocument,keys:ww([Tw.Mod,`s`]),scopes:[Ow.Files]}]})),mBe=o((()=>{pBe(),fBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),hBe=o((()=>{})),gBe=o((()=>{wC(),bw()})),_Be=o((()=>{})),vBe=o((()=>{})),yBe,kw,bBe=o((()=>{wC(),gBe(),bw(),yBe={model:SC,provider:CC},kw={model:XAe,provider:ZAe},kw.model,kw.provider,kw.model,kw.provider,kw.model,kw.provider,{...yBe},Reflect.get(_je,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(_je,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),xBe=o((()=>{})),SBe=o((()=>{})),Aw=o((()=>{Gze(),Kze(),qze(),mBe(),hBe(),gBe(),bw(),_Be(),vBe(),bBe(),xBe(),SBe()})),CBe=o((()=>{Aw(),new Date().toISOString()})),wBe=o((()=>{})),TBe=o((()=>{Object.freeze([])})),EBe=o((()=>{})),DBe,OBe,kBe,ABe=o((()=>{DBe=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],OBe=2*1024*1024*1024-1,`${OBe}`,kBe=64*1024*1024,`${kBe}`,[...DBe]})),jBe,MBe=o((()=>{wC(),`${xC}`,jBe=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(jBe)})),NBe,PBe=o((()=>{NBe=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(NBe)})),FBe=o((()=>{})),IBe=o((()=>{})),LBe=o((()=>{})),RBe=o((()=>{})),zBe=o((()=>{})),BBe=o((()=>{})),VBe,HBe=o((()=>{ac(),VBe=(e,t)=>os({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),UBe,WBe,GBe=o((()=>{Bze(),Aw(),HBe(),UBe=`agent`,WBe={config:Wze,createdAt:new Date,id:``,meta:Lze,model:Wze.model,type:UBe,updatedAt:new Date},VBe(WBe,{id:`inbox`,meta:{avatar:zze}})})),KBe=o((()=>{})),qBe=o((()=>{})),JBe=o((()=>{})),YBe=o((()=>{})),XBe=o((()=>{})),ZBe=o((()=>{})),QBe=o((()=>{})),$Be=o((()=>{})),eVe,tVe,nVe=o((()=>{wC(),Aw(),eVe={activities:3,contexts:0,experiences:0,preferences:3},tVe={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...eVe}},tVe.high.contexts})),rVe=o((()=>{})),iVe=o((()=>{})),jw=o((()=>{rxe(),axe(),oxe(),mxe(),lze(),dze(),fze(),pze(),Aze(),jze(),Ize(),Fze(),CBe(),wBe(),TBe(),EBe(),ABe(),MBe(),PBe(),FBe(),IBe(),kze(),LBe(),Bze(),RBe(),zBe(),BBe(),GBe(),Aw(),KBe(),qBe(),JBe(),YBe(),XBe(),ZBe(),QBe(),Oze(),$Be(),nVe(),Cw(),rVe(),iVe()}));jw();var Mw=[[`LobeHub Cloud`,IAe,`LobeHub Cloud`],[`LobeHub`,xC,`LobeHub`],[`LobeChat`,xC,`LobeHub`],[`Lobe AI`,Rze,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),aVe=new Map(Mw),oVe=`Lobe`,sVe=Mw.length?RegExp(`(?<!@)(${Mw.map(([e])=>e).join(`|`)})`,`g`):void 0,cVe=Mw.length>0,lVe=`brandStrings`,uVe=e=>!sVe||!e.includes(oVe)?e:e.replaceAll(sVe,e=>aVe.get(e)??e),dVe={name:lVe,process:e=>typeof e==`string`?uVe(e):e,type:`postProcessor`},fVe=cVe?{postProcess:[lVe]}:{},pVe=e=>cVe?e.use(dVe):e,mVe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},hVe=c({default:()=>gVe}),gVe,_Ve=o((()=>{gVe={"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":`Run agy in a terminal to sign in, then refresh.`,"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 QEe(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;QEe(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 eDe(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!rDe.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))}Ax(n,r,e.length===1?e[0]:eDe(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 tDe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of rDe)if(t in e)return;let n=t.filter(e=>iDe.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=eDe(t);else{let e=n[0],i=iDe.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=>eDe([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,jS(e,r))}function nDe(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)):jS(i,s),jS(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())QEe(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)??[])tDe(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)}jS(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,Ax(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:FS(t,`input`,e.processors),output:FS(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function PS(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 PS(r.element,n);if(r.type===`set`)return PS(r.valueType,n);if(r.type===`lazy`)return PS(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 PS(r.innerType,n);if(r.type===`intersection`)return PS(r.left,n)||PS(r.right,n);if(r.type===`record`||r.type===`map`)return PS(r.keyType,n)||PS(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:PS(r.in,n)||PS(r.out,n);if(r.type===`object`){for(let e in r.shape)if(PS(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(PS(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(PS(e,n))return!0;return!!(r.rest&&PS(r.rest,n))}return!1}var rDe,iDe,aDe,FS,IS=o((()=>{HTe(),Jx(),rDe=new Set([`type`,`properties`,`required`,`additionalProperties`]),iDe=[`oneOf`,`anyOf`],aDe=(e,t={})=>n=>{let r=YEe({...n,processors:t});return NS(e,r),ZEe(r,e),nDe(r,e)},FS=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=YEe({...i??{},target:a,io:t,processors:n});return NS(e,o),ZEe(o,e),nDe(o,e)}}));function LS(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)_De[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&zS(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&zS(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&BS(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&BS(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&uDe(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&fDe(t,i.mime);for(let e of i.patterns??[])dDe(t,e);return t}function RS(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?RS(t.out):t.type===`catch`?RS(t.innerType):e._zod.optin}function oDe(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=oDe(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=>oDe(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`)?sS:bCe).source),p):p}function sDe(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 VS.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=oDe(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 cDe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(MS(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),HS):JSON.parse(o)}var zS,BS,lDe,uDe,dDe,fDe,pDe,mDe,hDe,gDe,_De,vDe,yDe,bDe,xDe,SDe,CDe,wDe,TDe,EDe,DDe,ODe,kDe,ADe,jDe,MDe,NDe,PDe,FDe,IDe,LDe,VS,RDe,zDe,BDe,HS,VDe,HDe,UDe,WDe,GDe,KDe,qDe,JDe=o((()=>{cS(),wTe(),IS(),Jx(),zS=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},BS=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},lDe=(e,t)=>{zS(e,`minimum`,t),BS(e,`maximum`,t)},uDe=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},dDe=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},fDe=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},pDe=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},mDe=(e,t)=>zS(e,`minimum`,t.minimum),hDe=(e,t)=>BS(e,`maximum`,t.maximum),gDe=e=>(t,n)=>{pDe(t,n.format);let[r,i]=e[n.format];zS(t,`minimum`,r),BS(t,`maximum`,i)},_De={greater_than:(e,t)=>zS(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>BS(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>uDe(e,t.value),number_format:gDe(dSe),bigint_format:gDe(fSe),min_length:mDe,max_length:hDe,length_equals:(e,t)=>lDe(e,t.length),min_size:mDe,max_size:hDe,size_equals:(e,t)=>lDe(e,t.size),string_format:(e,t)=>{pDe(e,t.format),t.pattern&&dDe(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)=>fDe(e,t.mime)},vDe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},yDe=new Map([[Bwe,pCe],[vS,mCe]]),bDe=e=>yDe.get(e)??e,xDe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=LS(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=vDe[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(bDe);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}))])}},SDe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=LS(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)):MS(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}))])}},CDe=(e,t,n,r)=>{n.type=`boolean`},wDe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},TDe=(e,t,n,r)=>{MS(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},EDe=(e,t,n,r)=>{n.not={}},DDe=(e,t,n,r)=>{},ODe=(e,t,n,r)=>{},kDe=(e,t,n,r)=>{MS(e,t,n,r,`Date cannot be represented in JSON Schema`)},ADe=(e,t,n,r)=>{let i=e._zod.def,a=Cxe(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},jDe=(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(MS(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(MS(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},MDe=(e,t,n,r)=>{MS(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},NDe=(e,t,n,r)=>{MS(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},PDe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=LS(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=NS(a.element,t,{...r,path:[...r.path,`items`]})},FDe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&MS(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Ax(i.properties,e,NS(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`?RS(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=NS(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},IDe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>NS(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},LDe=(e,t,n,r)=>{let i=e._zod.def,a=NS(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=NS(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)},VS=new WeakMap,RDe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=LS(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=NS(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Ax(i.patternProperties,bDe(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=NS(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=VS.get(t);n||(n=[],VS.set(t,n),t.deferred.push(()=>sDe(t))),n.push(e)}i.additionalProperties=NS(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&RS(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))}},zDe=(e,t,n,r)=>{let i=e._zod.def,a=NS(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`}]},BDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},HS=Symbol(),VDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=cDe(i.defaultValue,e,t,n,r);o!==HS&&(n.default=o)},HDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=cDe(i.defaultValue,e,t,n,r);o!==HS&&(n._prefault=o)},UDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{MS(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},WDe=(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;NS(o,t,r);let s=t.seen.get(e);s.ref=o},GDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},KDe=(e,t,n,r)=>{let i=e._zod.def;NS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},qDe=(e,t,n,r)=>{let i=e._zod.innerType;NS(i,t,r);let a=t.seen.get(e);a.ref=i}})),US=o((()=>{eS(),GSe(),ASe(),wTe(),FTe(),BCe(),WCe(),Jx(),cS(),RTe(),HTe(),HCe(),UTe(),JEe(),IS(),JDe(),IS()})),YDe=o((()=>{US()}));function WS(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 XDe,ZDe,GS,QDe=o((()=>{US(),Jx(),XDe=new WeakSet([Object.prototype,Error.prototype]),ZDe=(e,t)=>{kSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);XDe.has(n)||(XDe.add(n),WS(n,`format`,e=>t=>TSe(e,t)),WS(n,`flatten`,e=>t=>wSe(e,t)),WS(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Txe,2)}),WS(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Txe,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},GS=Yx(`ZodError`,ZDe,void 0,{Parent:Error})})),$De,eOe,tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,uOe,dOe=o((()=>{US(),QDe(),$De=rS(GS),eOe=iS(GS),tOe=aS(GS),nOe=oS(GS),rOe=LSe(GS),iOe=RSe(GS),aOe=zSe(GS),oOe=BSe(GS),sOe=VSe(GS),cOe=HSe(GS),lOe=USe(GS),uOe=WSe(GS)}));function fOe(){$x.localeError||Xx(ITe())}function KS(){$x.memoizer||Xx({memoizer:kTe()})}function H(e){return GTe(NOe,e)}function qS(e){return vEe(nke,e)}function pOe(e){return yEe(rke,e)}function JS(e){return bEe(ike,e)}function mOe(e){return xEe(ake,e)}function hOe(e){return SEe(oke,e)}function YS(){return CEe(ske)}function XS(){return wEe(cke)}function gOe(e){return TEe(lke,e)}function ZS(e,t){return UEe(dke,e,t)}function QS(e,t){return new fke({type:`object`,shape:e??{},...Rx(t)})}function _Oe(e,t){return new fke({type:`object`,shape:e,catchall:gOe(),...Rx(t)})}function $S(e,t){return new pke({type:`union`,options:e,...Rx(t)})}function eC(e,t,n){return new mke({type:`union`,options:t,discriminator:e,...Rx(n)})}function vOe(e,t){return new hke({type:`intersection`,left:e,right:t})}function tC(e,t,n){return!t||!t._zod?new gke({type:`record`,keyType:H(),valueType:e,...Rx(t)}):new gke({type:`record`,keyType:e,valueType:t,...Rx(n)})}function nC(e,t){return new uC({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Rx(t)})}function rC(e,t){return new uC({type:`enum`,entries:e,...Rx(t)})}function iC(e,t){return new _ke({type:`literal`,values:Array.isArray(e)?e:[e],...Rx(t)})}function yOe(e){return new vke({type:`transform`,transform:e})}function bOe(e){return new yke({type:`optional`,innerType:e})}function xOe(e){return new bke({type:`optional`,innerType:e})}function SOe(e){return new xke({type:`nullable`,innerType:e})}function COe(e,t){return new Ske({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ixe(t)}})}function wOe(e,t){return new Cke({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ixe(t)}})}function TOe(e,t){return new wke({type:`nonoptional`,innerType:e,...Rx(t)})}function EOe(e,t){return new Tke({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:aSe(t)})}function DOe(e,t){return new Eke({type:`pipe`,in:e,out:t})}function OOe(e){return new Oke({type:`readonly`,innerType:e})}function kOe(e){return new kke({type:`lazy`,getter:e})}function aC(e,t){return WEe(Ake,e??(()=>!0),t)}function AOe(e,t={}){return GEe(Ake,e,t)}function jOe(e,t){return KEe(e,t)}function oC(e,t){return new Dke({type:`pipe`,in:yOe(e),out:t})}var sC,MOe,NOe,cC,POe,FOe,IOe,LOe,ROe,zOe,lC,BOe,VOe,HOe,UOe,WOe,GOe,KOe,qOe,JOe,YOe,XOe,ZOe,QOe,$Oe,eke,tke,nke,rke,ike,ake,oke,ske,cke,lke,uke,dke,fke,pke,mke,hke,gke,uC,_ke,vke,yke,bke,xke,Ske,Cke,wke,Tke,Eke,Dke,Oke,kke,Ake,dC=o((()=>{US(),JDe(),IS(),RTe(),YDe(),dOe(),sC=Yx(`ZodType`,(e,t)=>(fOe(),hS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Nx(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 Lx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(AOe(e,t))},superRefine(e,t){return this.check(jOe(e,t))},overwrite(e){return this.check(AS(e))},optional(){return bOe(this)},exactOptional(){return xOe(this)},nullable(){return SOe(this)},nullish(){return bOe(SOe(this))},nonoptional(e){return TOe(this,e)},array(){return ZS(this)},or(e){return $S([this,e])},and(e){return vOe(this,e)},transform(e){return DOe(this,yOe(e))},default(e){return COe(this,e)},prefault(e){return wOe(this,e)},catch(e){return EOe(this,e)},pipe(e){return DOe(this,e)},readonly(){return OOe(this)},describe(e){let t=this.clone();return ES.add(t,{description:e}),t},meta(...e){if(e.length===0)return ES.get(this);let t=this.clone();return ES.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 eSe(this,`~standard`,{...KCe(this),jsonSchema:{input:FS(this,`input`),output:FS(this,`output`)}})},set"~standard"(e){Gx(this,`~standard`,e)},parse:function e(t,n){return $De(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await eOe(this,t,n,{callee:e})},safeParse(e,t){return tOe(this,e,t)},async safeParseAsync(e,t){return nOe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Gx(this,`spa`,e)},validate(e,t){return FSe(this,e,t)},validateAsync(e,t){return ISe(this,e,t)},encode:function e(t,n){return rOe(this,t,n,{callee:e})},decode:function e(t,n){return iOe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await aOe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await oOe(this,t,n,{callee:e})},safeEncode(e,t){return sOe(this,e,t)},safeDecode(e,t){return cOe(this,e,t)},async safeEncodeAsync(e,t){return lOe(this,e,t)},async safeDecodeAsync(e,t){return uOe(this,e,t)},toJSONSchema(e){return aDe(this,{})(e)},get description(){return ES.get(this)?.description},get _def(){return this._zod.def}}),MOe=Yx(`_ZodString`,(e,t)=>{gS.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xDe(e,t,n,r)},tSe({format:e=>LS(e).format??null,minLength:e=>LS(e).minimum??null,maxLength:e=>LS(e).maximum??null},{regex(...e){return this.check(MEe(...e))},includes(...e){return this.check(FEe(...e))},startsWith(...e){return this.check(IEe(...e))},endsWith(...e){return this.check(LEe(...e))},min(...e){return this.check(kS(...e))},max(...e){return this.check(AEe(...e))},length(...e){return this.check(jEe(...e))},nonempty(...e){return this.check(kS(1,...e))},lowercase(e){return this.check(NEe(e))},uppercase(e){return this.check(PEe(e))},trim(){return this.check(zEe())},normalize(...e){return this.check(REe(...e))},toLowerCase(){return this.check(BEe())},toUpperCase(){return this.check(VEe())},slugify(){return this.check(HEe())}})),NOe=Yx(`ZodString`,(e,t)=>{gS.init(e,t),MOe.init(e,t)},{email(e){return this.check(KTe(ROe,e))},url(e){return this.check(QTe(BOe,e))},jwt(e){return this.check(pEe(tke,e))},emoji(e){return this.check($Te(VOe,e))},guid(e){return this.check(qTe(zOe,e))},uuid(e){return this.check(JTe(lC,e))},uuidv4(e){return this.check(YTe(lC,e))},uuidv6(e){return this.check(XTe(lC,e))},uuidv7(e){return this.check(ZTe(lC,e))},nanoid(e){return this.check(eEe(HOe,e))},cuid(e){return this.check(tEe(UOe,e))},cuid2(e){return this.check(nEe(WOe,e))},ulid(e){return this.check(rEe(GOe,e))},base64(e){return this.check(uEe(QOe,e))},base64url(e){return this.check(dEe($Oe,e))},xid(e){return this.check(iEe(KOe,e))},ksuid(e){return this.check(aEe(qOe,e))},ipv4(e){return this.check(oEe(JOe,e))},ipv6(e){return this.check(sEe(YOe,e))},cidrv4(e){return this.check(cEe(XOe,e))},cidrv6(e){return this.check(lEe(ZOe,e))},e164(e){return this.check(fEe(eke,e))},datetime(e){return this.check(mEe(POe,e))},date(e){return this.check(hEe(FOe,e))},time(e){return this.check(gEe(IOe,e))},duration(e){return this.check(_Ee(LOe,e))}}),cC=Yx(`ZodStringFormat`,(e,t)=>{_S.init(e,t),MOe.init(e,t)}),POe=Yx(`ZodISODateTime`,(e,t)=>{jwe.init(e,t),cC.init(e,t)}),FOe=Yx(`ZodISODate`,(e,t)=>{Mwe.init(e,t),cC.init(e,t)}),IOe=Yx(`ZodISOTime`,(e,t)=>{Nwe.init(e,t),cC.init(e,t)}),LOe=Yx(`ZodISODuration`,(e,t)=>{Pwe.init(e,t),cC.init(e,t)}),ROe=Yx(`ZodEmail`,(e,t)=>{xwe.init(e,t),cC.init(e,t)}),zOe=Yx(`ZodGUID`,(e,t)=>{ywe.init(e,t),cC.init(e,t)}),lC=Yx(`ZodUUID`,(e,t)=>{bwe.init(e,t),cC.init(e,t)}),BOe=Yx(`ZodURL`,(e,t)=>{Cwe.init(e,t),cC.init(e,t)}),VOe=Yx(`ZodEmoji`,(e,t)=>{wwe.init(e,t),cC.init(e,t)}),HOe=Yx(`ZodNanoID`,(e,t)=>{Twe.init(e,t),cC.init(e,t)}),UOe=Yx(`ZodCUID`,(e,t)=>{Ewe.init(e,t),cC.init(e,t)}),WOe=Yx(`ZodCUID2`,(e,t)=>{Dwe.init(e,t),cC.init(e,t)}),GOe=Yx(`ZodULID`,(e,t)=>{Owe.init(e,t),cC.init(e,t)}),KOe=Yx(`ZodXID`,(e,t)=>{kwe.init(e,t),cC.init(e,t)}),qOe=Yx(`ZodKSUID`,(e,t)=>{Awe.init(e,t),cC.init(e,t)}),JOe=Yx(`ZodIPv4`,(e,t)=>{Fwe.init(e,t),cC.init(e,t)}),YOe=Yx(`ZodIPv6`,(e,t)=>{Lwe.init(e,t),cC.init(e,t)}),XOe=Yx(`ZodCIDRv4`,(e,t)=>{Rwe.init(e,t),cC.init(e,t)}),ZOe=Yx(`ZodCIDRv6`,(e,t)=>{zwe.init(e,t),cC.init(e,t)}),QOe=Yx(`ZodBase64`,(e,t)=>{Vwe.init(e,t),cC.init(e,t)}),$Oe=Yx(`ZodBase64URL`,(e,t)=>{Hwe.init(e,t),cC.init(e,t)}),eke=Yx(`ZodE164`,(e,t)=>{Uwe.init(e,t),cC.init(e,t)}),tke=Yx(`ZodJWT`,(e,t)=>{Wwe.init(e,t),cC.init(e,t)}),nke=Yx(`ZodNumber`,(e,t)=>{Gwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SDe(e,t,n,r),e.isFinite=!0},tSe({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=LS(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=LS(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=LS(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>LS(e).format??null},{gt(e,t){return this.check(OEe(e,t))},gte(e,t){return this.check(OS(e,t))},min(e,t){return this.check(OS(e,t))},lt(e,t){return this.check(DEe(e,t))},lte(e,t){return this.check(DS(e,t))},max(e,t){return this.check(DS(e,t))},int(e){return this.check(pOe(e))},safe(e){return this.check(pOe(e))},positive(e){return this.check(OEe(0,e))},nonnegative(e){return this.check(OS(0,e))},negative(e){return this.check(DEe(0,e))},nonpositive(e){return this.check(DS(0,e))},multipleOf(e,t){return this.check(kEe(e,t))},step(e,t){return this.check(kEe(e,t))},finite(){return this}})),rke=Yx(`ZodNumberFormat`,(e,t)=>{Kwe.init(e,t),nke.init(e,t)}),ike=Yx(`ZodBoolean`,(e,t)=>{qwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>CDe(e,t,n,r)}),ake=Yx(`ZodUndefined`,(e,t)=>{Jwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>TDe(e,t,n,r)}),oke=Yx(`ZodNull`,(e,t)=>{Ywe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wDe(e,t,n,r)}),ske=Yx(`ZodAny`,(e,t)=>{Xwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>DDe(e,t,n,r)}),cke=Yx(`ZodUnknown`,(e,t)=>{Zwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ODe(e,t,n,r)}),lke=Yx(`ZodNever`,(e,t)=>{Qwe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>EDe(e,t,n,r)}),uke=Yx(`ZodDate`,(e,t)=>{$we.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kDe(e,t,n,r),e.min=(t,n)=>e.check(OS(t,n)),e.max=(t,n)=>e.check(DS(t,n))},tSe({minDate:e=>{let{minimum:t}=LS(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=LS(e);return t?new Date(t):null}},{})),dke=Yx(`ZodArray`,(e,t)=>{KS(),tTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PDe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(kS(e,t))},nonempty(e){return this.check(kS(1,e))},max(e,t){return this.check(AEe(e,t))},length(e,t){return this.check(jEe(e,t))},unwrap(){return this.element}}),fke=Yx(`ZodObject`,(e,t)=>{KS(),iTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FDe(e,t,n,r),iSe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return nC(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Nx(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Nx(this._zod.def,{catchall:XS()}))},loose(){return this.clone(Nx(this._zod.def,{catchall:XS()}))},strict(){return this.clone(Nx(this._zod.def,{catchall:gOe()}))},strip(){return this.clone(Nx(this._zod.def,{catchall:void 0}))},extend(e){return Vxe(this,e)},safeExtend(e){return Uxe(this,e)},merge(e){return Wxe(this,e)},pick(e){return zxe(this,e)},omit(e){return Bxe(this,e)},partial(...e){return Gxe(yke,this,e[0])},exactPartial(...e){return Gxe(bke,this,e[0],`exactPartial`)},required(...e){return Kxe(wke,this,e[0])}}),pke=Yx(`ZodUnion`,(e,t)=>{aTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IDe(e,t,n,r),e.options=t.options}),mke=Yx(`ZodDiscriminatedUnion`,(e,t)=>{pke.init(e,t),oTe.init(e,t)}),hke=Yx(`ZodIntersection`,(e,t)=>{sTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LDe(e,t,n,r)}),gke=Yx(`ZodRecord`,(e,t)=>{KS(),cTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RDe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),uC=Yx(`ZodEnum`,(e,t)=>{lTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ADe(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 uC({...t,checks:[],...Rx(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 uC({...t,checks:[],...Rx(r),entries:i})}}),_ke=Yx(`ZodLiteral`,(e,t)=>{uTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jDe(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]}})}),vke=Yx(`ZodTransform`,(e,t)=>{KS(),dTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NDe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new bSe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Wx(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Wx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),yke=Yx(`ZodOptional`,(e,t)=>{fTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),bke=Yx(`ZodExactOptional`,(e,t)=>{pTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),xke=Yx(`ZodNullable`,(e,t)=>{mTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ske=Yx(`ZodDefault`,(e,t)=>{hTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Cke=Yx(`ZodPrefault`,(e,t)=>{gTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),wke=Yx(`ZodNonOptional`,(e,t)=>{_Te.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Tke=Yx(`ZodCatch`,(e,t)=>{vTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Eke=Yx(`ZodPipe`,(e,t)=>{yTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WDe(e,t,n,r),e.in=t.in,e.out=t.out}),Dke=Yx(`ZodPreprocess`,(e,t)=>{Eke.init(e,t),bTe.init(e,t)}),Oke=Yx(`ZodReadonly`,(e,t)=>{xTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GDe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),kke=Yx(`ZodLazy`,(e,t)=>{STe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),Ake=Yx(`ZodCustom`,(e,t)=>{CTe.init(e,t),sC.init(e,t),e._zod.processJSONSchema=(t,n,r)=>MDe(e,t,n,r)})})),jke,Mke=o((()=>{US(),jke||={}}));function Nke(e){return mEe(POe,e)}var Pke=o((()=>{US(),dC()}));function fC(e){return EEe(uke,e)}var Fke=o((()=>{US(),dC()})),Ike=o((()=>{US(),dC(),YDe(),QDe(),dOe(),Mke(),JDe(),HTe(),Jx(),YDe(),Pke(),dC(),wTe(),RTe(),Fke()})),pC=o((()=>{Ike(),Ike()})),mC,Lke,Rke,zke,Bke,Vke,Hke=o((()=>{pC(),mC=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],Lke=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:mC,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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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:[...mC,`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`}],Rke=Lke.map(({type:e})=>e),nC(Rke),zke=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],Bke=nC([...Rke,...zke.map(({type:e})=>e)]),Vke=[{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`}]})),hC,Uke,gC,Wke,Gke,_C,Kke,qke,Jke,Yke,Xke,Zke,Qke,$ke,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,cAe,lAe,uAe,dAe,fAe,pAe,mAe,hAe,gAe,_Ae,vAe,yAe,bAe,xAe,SAe,vC,yC,CAe,bC,wAe=o((()=>{Sxe(),hC=`default`,Uke=[`low`,`medium`,`high`,`ultra`],gC=[`low`,`medium`,`high`,`xhigh`,`max`],Wke=[`low`,`medium`,`high`,`xhigh`],Gke=[`--effort`,`--reasoning-effort`],_C=[`low`,`medium`,`high`,`xhigh`],Kke=[..._C,`max`,`ultra`],qke=`model_reasoning_effort`,Jke=[`low`,`high`,`max`],Yke=[`high`,`max`],Xke=[..._C,`max`],Zke=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],Qke=[`gpt-6-astra`,`gpt-5.6-luna`],$ke=[`low`,`medium`,`high`,`xhigh`,`max`],eAe=`--reasoning-effort`,tAe=[`low`,`medium`,`high`,`xhigh`,`max`],nAe=`--reasoning-effort`,rAe=`service_tier`,iAe=[`fast`,`priority`],aAe=e=>!!e&&Uke.includes(e),oAe=e=>!!e&&gC.includes(e),sAe=e=>!!e&&Kke.includes(e),cAe=e=>!!e&&Wke.includes(e),lAe=e=>!!e&&$ke.includes(e),uAe=e=>!!e&&tAe.includes(e),dAe=e=>!!e&&iAe.includes(e),fAe=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?Jke:e===`glm-5.2`?Yke:Zke.includes(e)?Kke:Qke.includes(e)?Xke:_C,pAe=e=>{let t=(Dx(e?.args,`--mode`)??e?.mode)?.trim();return aAe(t)?t:hC},mAe=[`-m`,`--model`],hAe=e=>{let t=(Dx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:hC},gAe=e=>{let t=(Dx(e?.args,`--effort`)??e?.effort)?.trim();return oAe(t)?t:hC},_Ae=e=>{let t=(gxe(e?.args,mAe)??Ox(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:hC},vAe=e=>{let t=(Ox(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return sAe(t)?t:hC},yAe=e=>{let t=(Ox(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Ox(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:dAe(t)?`fast`:hC},bAe=e=>{let t=(gxe(e?.args,Gke)??e?.effort)?.trim();return cAe(t)?t:hC},xAe=e=>{let t=(Dx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return lAe(t)?t:hC},SAe=e=>{let t=(Dx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return uAe(t)?t:hC},vC=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:hC},yC={flags:[`-m`,`--model`],kind:`flag`},CAe={antigravity:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:vC,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:Uke,resolve:pAe}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>gC,resolve:gAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hAe,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>gC,resolve:gAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hAe,source:`catalog`}},codex:{effort:{encodings:[{key:qke,kind:`config`}],levels:fAe,resolve:vAe},model:{encodings:[yC,{key:`model`,kind:`config`}],resolve:_Ae,source:`catalog`},speed:{encodings:[{key:rAe,kind:`config`}],resolve:yAe}},copilot:{effort:{encodings:[{flags:[nAe],kind:`flag`}],levels:()=>tAe,resolve:SAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:vC,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:vC,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:vC,source:`catalog`}},droid:{model:{encodings:[],resolve:vC,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:vC,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:Gke,kind:`flag`}],levels:()=>Wke,resolve:bAe},model:{encodings:[yC],resolve:vC,source:`catalog`}},"kimi-code":{model:{encodings:[yC],resolve:vC,source:`catalog`}},opencode:{model:{encodings:[yC],resolve:vC,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:vC,source:`catalog`}},qoder:{effort:{encodings:[{flags:[eAe],kind:`flag`}],levels:()=>$ke,resolve:xAe},model:{encodings:[yC],resolve:vC,source:`catalog`}},trae:{model:{encodings:[],resolve:vC,source:`catalog`}}},bC=e=>CAe[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),bC(`copilot`),bC(`grok-build`),bC(`kimi-code`),bC(`opencode`),bC(`pi`),bC(`qoder`)})),TAe=o((()=>{})),EAe=o((()=>{Hke(),TAe(),new Set([...Lke.map(({type:e})=>e),...zke.map(({type:e})=>e),...Vke.map(({type:e})=>e)])})),DAe=o((()=>{})),OAe=o((()=>{})),kAe,AAe,jAe,MAe,NAe=o((()=>{pC(),kAe=QS({workingDirectory:H().optional()}),AAe=QS({memory:QS({effort:nC([`low`,`medium`,`high`]).optional(),enabled:JS().optional(),toolPermission:nC([`read-only`,`read-write`]).optional()}).optional()}),jAe=QS({selfIteration:QS({enabled:JS().optional()}).optional()}),MAe=QS({codexMaxReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:nC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:nC([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:nC([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:JS().optional(),disableGatewayMode:JS().optional(),effort:nC([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:JS().optional(),enableAgentMode:JS().optional(),toolMode:nC([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:JS().optional(),enableCompressHistory:JS().optional(),enableContextCompression:JS().optional(),enableFollowUpChips:JS().optional(),enableHistoryCount:JS().optional(),enableMaxTokens:JS().optional(),enableReasoning:JS().optional(),enableReasoningEffort:JS().optional(),enableStreaming:JS().optional(),enableStaleToolResultTrim:JS().optional(),gpt5ReasoningEffort:nC([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:nC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:nC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:nC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:nC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:nC([`high`,`max`]).optional(),glm5_3ReasoningEffort:nC([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:nC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:nC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:nC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:nC([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:nC([`high`,`xhigh`]).optional(),historyCount:qS().optional(),imageAspectRatio:H().optional(),imageAspectRatio2:H().optional(),imageResolution:nC([`1K`,`2K`,`4K`]).optional(),imageResolution2:nC([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:nC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:kAe.optional(),preserveThinking:JS().optional(),reasoningBudgetToken:qS().optional(),reasoningBudgetToken32k:qS().optional(),reasoningBudgetToken80k:qS().optional(),reasoningEffort:nC([`low`,`medium`,`high`]).optional(),reasoningMode:nC([`standard`,`pro`]).optional(),searchFCModel:QS({model:H(),provider:H()}).optional(),searchMode:nC([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:nC([`low`,`high`]).optional(),skillActivateMode:nC([`auto`,`manual`]).optional(),textVerbosity:nC([`low`,`medium`,`high`]).optional(),thinking:nC([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:qS().optional(),thinkingLevel:nC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:nC([`low`,`high`]).optional(),thinkingLevel3:nC([`low`,`medium`,`high`]).optional(),thinkingLevel4:nC([`minimal`,`high`]).optional(),thinkingLevel5:nC([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:qS().default(25e3),topicGroupMode:nC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:JS().optional(),useModelBuiltinSearch:JS().optional()}).merge(AAe).merge(jAe)})),PAe=o((()=>{})),FAe=o((()=>{})),IAe,xC,LAe,RAe,zAe,BAe,VAe,HAe,UAe,WAe,GAe,KAe=o((()=>{IAe=`LobeHub Cloud`,xC=`LobeHub`,LAe=`Lobe AI`,RAe=`LobeHub`,zAe={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},BAe={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`},VAe={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},HAe={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},UAe=`lobehub`,WAe=`© ${new Date().getFullYear()} ${RAe}`,GAe=`${WAe}. All rights reserved.`})),qAe,JAe,YAe,SC,CC,XAe,ZAe,QAe,$Ae,eje,tje,nje,rje,ije,aje,oje,sje,cje,lje,uje,dje,fje=o((()=>{qAe=`jev-1.14.0`,JAe=`typesafe`,YAe=`openai`,SC=`deepseek-v4-flash`,CC=`deepseek`,XAe=`gpt-5.6-luna`,ZAe=`openai`,QAe=`decision`,$Ae=`gpt-6-luna:decision`,eje=`openai`,tje=`gpt-4o-mini-transcribe`,nje=`openai`,rje=`gemini-3-flash-preview`,ije=`google`,aje=`gemini-3.8-flash`,oje=`google`,sje=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],cje=`glm-5.3-flash`,lje=`zhipu`,uje=`deepseek-flash`,dje=`deepseek`})),pje,mje=o((()=>{pje=[]})),hje,gje=o((()=>{hje=`chat_preview`})),_je=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>vje,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>HAe,BRANDING_INBOX_TITLE:()=>LAe,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>xC,BRANDING_PROVIDER:()=>UAe,BRANDING_URL:()=>zAe,BUSINESS_OIDC_CLIENTS:()=>pje,COPYRIGHT:()=>WAe,COPYRIGHT_FULL:()=>GAe,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>sje,DEFAULT_ASR_MODEL:()=>tje,DEFAULT_ASR_PROVIDER:()=>nje,DEFAULT_BOT_WAKE_ENGINE:()=>QAe,DEFAULT_BOT_WAKE_MODEL:()=>$Ae,DEFAULT_BOT_WAKE_PROVIDER:()=>eje,DEFAULT_CHANNEL_ROUTING_MODEL:()=>qAe,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>JAe,DEFAULT_EMBEDDING_PROVIDER:()=>YAe,DEFAULT_MINI_MODEL:()=>XAe,DEFAULT_MINI_PROVIDER:()=>ZAe,DEFAULT_MODEL:()=>SC,DEFAULT_ONBOARDING_MODEL:()=>rje,DEFAULT_ONBOARDING_PROVIDER:()=>ije,DEFAULT_PROVIDER:()=>CC,DEFAULT_REVIEW_PREDICT_MODEL:()=>aje,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>oje,DEFAULT_VERIFY_MODEL:()=>cje,DEFAULT_VERIFY_PLAN_MODEL:()=>uje,DEFAULT_VERIFY_PLAN_PROVIDER:()=>dje,DEFAULT_VERIFY_PROVIDER:()=>lje,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>VAe,LOBE_CHAT_CLOUD:()=>IAe,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>yje,ORG_NAME:()=>RAe,SOCIAL_URL:()=>BAe,UTM_SOURCE:()=>hje,isOfficialProvider:()=>bje}),vje,yje,bje,wC=o((()=>{KAe(),KAe(),fje(),mje(),gje(),vje=`sk-lh-`,yje=`The official provider cannot be disabled.`,bje=e=>!1})),xje=o((()=>{wC()})),Sje=o((()=>{})),Cje=o((()=>{})),wje,Tje,Eje=o((()=>{pC(),wje=nC([`pinned`,`auto`,`disabled`]),Tje=$S([H(),QS({builtinOverride:iC(!0).optional(),identifier:H(),mode:wje.optional()})])})),Dje=o((()=>{pC(),NAe(),Eje(),QS({agencyConfig:aC().optional(),avatar:H().nullish(),backgroundColor:H().nullish(),chatConfig:MAe.optional(),description:H().nullish(),editorData:XS().optional(),fewShots:XS().optional(),marketIdentifier:H().nullish(),metadata:tC(H(),XS()).nullish(),model:H().nullish(),name:H().nullish(),openingMessage:H().nullish(),openingQuestions:ZS(H()).optional(),params:tC(H(),XS()).optional(),plugins:ZS(Tje).optional(),provider:H().nullish(),sessionGroupId:H().nullish(),systemRole:H().nullish(),tags:ZS(H()).optional(),title:H().nullish(),tts:aC().optional(),virtual:JS().nullish(),visibility:nC([`private`,`public`]).optional()})})),Oje=o((()=>{})),kje=o((()=>{})),Aje=o((()=>{})),jje=o((()=>{})),Mje=o((()=>{})),Nje=o((()=>{EAe(),DAe(),OAe(),NAe(),PAe(),FAe(),xje(),Sxe(),Hke(),Sje(),Cje(),wAe(),Dje(),Oje(),Eje(),kje(),Aje(),jje(),Mje()})),Pje,Fje=o((()=>{Pje=[`mail`,`wallet`,`service`],[...Pje]})),Ije=o((()=>{})),Lje=o((()=>{})),Rje,zje,Bje=o((()=>{pC(),Rje=QS({ciStatus:nC([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:H().optional(),headRepoFullName:H().optional(),isDraft:JS().optional(),mergeable:H().optional(),mergeStateStatus:H().optional(),mergedAt:H().nullable().optional(),number:qS(),reviewDecision:H().optional(),state:H(),title:H(),url:H()}),zje=QS({environmentId:H().max(255).optional(),git:QS({activeWorktree:H().optional(),autoCreated:JS().optional(),autoCreatedAt:H().optional(),branch:H().optional(),detached:JS().optional(),github:QS({extraPullRequestCount:qS().optional(),pullRequest:Rje.nullable().optional(),pullRequestStatus:nC([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:JS().optional(),ownBranch:H().optional(),ownerNonce:H().max(64).optional(),ownerToken:H().max(128).optional(),upstream:QS({branch:H(),remote:H()}).optional()}).optional(),path:H(),repoType:nC([`git`,`github`]).optional(),sessionPath:H().optional()})})),Vje=o((()=>{Bje()})),Hje,Uje=o((()=>{Hje=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),Wje=o((()=>{})),Gje=o((()=>{})),Kje=o((()=>{})),qje=o((()=>{pC(),Vje(),Uje(),Wje(),Gje(),Kje(),QS({heteroPermissionMode:nC(Hje).optional(),repos:ZS(H()).optional(),sandboxDrive:nC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxSeeded:JS().optional(),sandboxTemporary:JS().optional(),sandboxWorkingDirectory:H().max(1024).optional(),workingDirectory:H().optional(),workingDirectoryConfig:zje.optional()})})),Jje,Yje=o((()=>{pC(),Jje=QS({allowDM:JS().optional(),forkedFromIdentifier:H().optional(),openingMessage:H().optional(),openingQuestions:ZS(H()).optional(),personal:JS().optional(),revealDM:JS().optional(),systemPrompt:H().optional()}),QS({avatar:H().nullish(),backgroundColor:H().nullish(),clientId:H().nullish(),config:Jje.nullish(),content:H().nullish(),description:H().nullish(),editorData:tC(H(),YS()).nullish(),groupId:H().nullish(),id:H().optional(),marketIdentifier:H().nullish(),pinned:JS().nullish(),title:H().nullish(),visibility:nC([`private`,`public`]).optional()})})),Xje,Zje,Qje,$je=o((()=>{pC(),Xje=nC([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),Zje=H().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),Qje=_Oe({allowedEnvVars:ZS(H().regex(/^[A-Z_]\w*$/i)).optional(),body:tC(H(),XS()).optional(),delivery:nC([`fetch`,`qstash`]).optional(),eventFields:ZS(H()).optional(),fallback:nC([`fetch`,`none`]).optional(),headers:tC(H(),H()).optional(),onError:nC([`continue`,`block`]).optional(),responseHandling:nC([`ignore`,`toolCall`]).optional(),timeout:qS().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`})}),_Oe({id:H(),matcher:Zje.optional(),type:Xje,webhook:Qje}).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`})})})),eMe=o((()=>{pC(),eC(`decision`,[QS({decision:iC(`allow`)}),QS({decision:iC(`deny`),reason:H().optional()})])})),tMe=o((()=>{})),nMe,rMe=o((()=>{nMe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(nMe)})),iMe=o((()=>{})),aMe=o((()=>{})),oMe,sMe,cMe,lMe=o((()=>{oMe={messages:`msg`,threads:`thd`,topics:`tpc`},sMe=`[0-9a-zA-Z]{8,32}`,cMe=e=>RegExp(`^${oMe[e]}_${sMe}$`)})),uMe,dMe,fMe,pMe=o((()=>{pC(),uMe=QS({attribution:nC([`user`,`provider`,`harness`,`system`]).optional(),body:YS().optional(),errorRef:H().optional(),category:H().optional(),countAsFailure:JS().optional(),httpStatus:qS().optional(),isFallback:JS().optional(),message:H().optional(),numericId:qS().optional(),retryable:JS().optional(),severity:nC([`info`,`warning`,`error`,`critical`]).optional(),type:$S([H(),qS()])}),dMe=QS({content:ZS(tC(H(),XS())).optional(),encrypted_content:H().nullish(),id:H(),status:nC([`in_progress`,`completed`,`incomplete`]).optional(),summary:ZS(QS({text:H(),type:iC(`summary_text`)})),type:iC(`reasoning`)}).passthrough(),fMe=QS({content:H().optional(),duration:qS().optional(),isMultimodal:JS().optional(),responseItems:ZS(dMe).optional(),signature:H().optional()})})),mMe,hMe=o((()=>{mMe=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}({})})),TC,gMe,_Me=o((()=>{pC(),TC=qS().catch(0),gMe=QS({bySource:QS({content:TC,fileContext:TC,reasoning:TC,thoughtSignature:TC,toolCallId:TC,toolCalls:TC,toolDefinition:TC}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:iC(`tokenx`).catch(`tokenx`),messageCount:TC,system:TC,total:TC})})),vMe,yMe,EC,bMe,xMe,SMe,CMe,wMe,TMe,EMe=o((()=>{pC(),vMe=nC([`markdown`,`text`,`xml`]),yMe=QS({endLine:qS().optional(),startLine:qS()}),EC=QS({content:H(),format:vMe.optional(),id:H(),lineRange:yMe.optional(),preview:H().optional(),title:H().optional()}),bMe=EC.extend({anchor:QS({endNodeId:H(),endOffset:qS(),startNodeId:H(),startOffset:qS()}).optional(),pageId:H(),source:iC(`page`),xml:H().optional()}),xMe=EC.extend({filePath:H(),language:H().optional(),side:nC([`additions`,`context`,`deletions`]).optional(),source:iC(`code`),workingDirectory:H().optional()}),SMe=EC.extend({source:iC(`text`)}),CMe=EC.extend({element:QS({pageTitle:H().optional(),selector:H(),tag:H(),thumbnailUrl:H().optional(),url:H().optional()}),source:iC(`element`)}),wMe=EC.extend({identifier:H(),source:iC(`mcpApp`)}),TMe=eC(`source`,[bMe,xMe,SMe,CMe,wMe])})),DMe,OMe=o((()=>{pC(),EMe(),DMe=EC.omit({lineRange:!0}).extend({anchor:QS({endNodeId:H(),endOffset:qS(),startNodeId:H(),startOffset:qS()}).optional(),startLine:qS().optional(),endLine:qS().optional(),pageId:H(),xml:H().optional()})})),kMe,AMe,DC,jMe,MMe,NMe,PMe,FMe,IMe,LMe,RMe,zMe,BMe,VMe,HMe,OC,UMe,WMe=o((()=>{pC(),hMe(),_Me(),EMe(),OMe(),kMe=$S([QS({action:nC([`create`,`update`,`delete`]),changeType:nC([`created`,`updated`]).optional(),targets:ZS(QS({taskId:H().optional(),taskIdentifier:H().optional()})),type:iC(`task`)}),QS({args:tC(H(),XS()).optional(),data:XS(),provider:H(),toolName:H(),type:iC(`skill`)}),QS({action:iC(`register`),document:QS({agentDocumentId:H().nullish(),agentId:H().nullish(),description:H().nullish(),documentId:H(),changeType:nC([`created`,`updated`]),toolName:H()}),type:iC(`document`)}),QS({action:iC(`delete`),document:QS({agentDocumentId:H().nullish(),agentId:H().nullish(),documentId:H()}),type:iC(`document`)}),QS({action:iC(`register`),canvas:QS({canvasId:H(),description:H().nullish(),title:H(),toolName:H(),metadata:QS({entry:H(),fileCount:qS(),manifestKey:H(),runtimeMajor:qS(),totalSize:qS()})}),type:iC(`canvas`)})]),AMe=QS({apiName:nC([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:tC(H(),XS()),capturedAt:H(),content:H().nullable(),error:XS().optional(),identifier:iC(`lobe-local-system`),result:XS().optional(),snapshotId:H(),state:XS().optional(),success:JS(),toolCallId:H()}),DC=QS({inputCachedTokens:qS().optional(),inputCacheMissTokens:qS().optional(),inputWriteCacheTokens:qS().optional(),inputCachedTextTokens:qS().optional(),inputCachedImageTokens:qS().optional(),inputCachedAudioTokens:qS().optional(),inputCachedVideoTokens:qS().optional(),inputTextTokens:qS().optional(),inputImageTokens:qS().optional(),inputAudioTokens:qS().optional(),inputVideoTokens:qS().optional(),inputCitationTokens:qS().optional(),inputToolTokens:qS().optional(),inputCharacters:qS().optional(),outputTextTokens:qS().optional(),outputImageTokens:qS().optional(),outputAudioTokens:qS().optional(),outputReasoningTokens:qS().optional(),outputVideoTokens:qS().optional(),acceptedPredictionTokens:qS().optional(),rejectedPredictionTokens:qS().optional(),totalInputTokens:qS().optional(),totalOutputTokens:qS().optional(),totalTokens:qS().optional(),cost:qS().optional(),credits:qS().optional()}),jMe=QS({tps:qS().optional(),ttft:qS().optional(),duration:qS().optional(),latency:qS().optional()}),MMe=QS({emoji:H(),count:qS(),users:ZS(H())}),NMe=QS({sequence:qS().optional(),sourceToolCallId:H(),sourceToolName:H(),type:nC([`tool-stdout`,`tool-callback`,`task-completion`])}),PMe=QS({identifier:H()}),FMe=QS({agentId:H().optional(),name:H(),status:nC([`completed`,`error`]),threadId:H()}),IMe=QS({identifier:H(),reason:nC([`done`,`error`,`interrupted`]),taskId:H(),topicId:H().optional()}),LMe=QS({rootOperationId:H().min(1),userMessageId:H().optional()}),RMe=QS({kind:nC([`callAgent`]),visibility:iC(`internal`)}),zMe=QS({agentId:H(),avatar:H().optional(),chatGroupId:H().optional(),hop:qS().int().positive().optional(),name:H().optional(),threadId:H().optional(),title:H().optional(),topicAgentId:H().optional(),topicId:H().optional(),topicTitle:H().optional()}),BMe=QS({kind:H(),label:H(),provider:H(),resourceId:H().optional(),url:H().optional()}),VMe=QS({avatar:H().optional(),fullName:H().optional(),id:H(),platform:H(),username:H().optional()}),HMe=DC.merge(jMe).extend({botSender:VMe.optional(),externalOrigin:BMe.optional(),agentDispatch:RMe.optional(),agentSender:zMe.optional(),collapsed:JS().optional(),contextAccounting:gMe.optional(),contextSelections:ZS(TMe).optional(),heteroMessageId:H().optional(),codexTurnId:H().optional(),heteroSessionId:H().optional(),heterogeneousToolStateOperationId:H().optional(),heterogeneousToolStateSeq:qS().int().positive().optional(),inspectExpanded:JS().optional(),isMultimodal:JS().optional(),isSupervisor:JS().optional(),localSystemToolSnapshots:ZS(AMe).optional(),mcpAppSource:PMe.optional(),operationId:H().min(1).optional(),orchestrationRole:nC([`supervisor`,`member`]).optional(),pageSelections:ZS(DMe).optional(),performance:jMe.optional(),reactions:ZS(MMe).optional(),scope:H().optional(),selectedSkillIds:ZS(H()).optional(),signal:NMe.optional(),steer:JS().optional(),subAgentCallback:FMe.optional(),subAgentId:H().optional(),taskCallback:IMe.optional(),toolExecutionTimeMs:qS().optional(),toolResultSuccess:JS().optional(),toolResultStop:JS().optional(),toolWorkRegistration:kMe.optional(),trigger:rC(mMe).optional(),verifyOperationId:H().optional(),verifyRound:qS().optional(),work:LMe.optional(),usage:DC.optional()}),OC=HMe.omit({agentSender:!0}),UMe=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),GMe,KMe=o((()=>{pC(),WMe(),GMe=HMe.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),QS({editorData:tC(H(),XS()).optional(),metadata:GMe.optional()}),Object.keys(GMe.shape)})),qMe,JMe=o((()=>{pC(),qMe=QS({alt:H(),height:qS().optional(),id:H(),mimeType:H().optional(),ratio:qS().optional(),url:H(),width:qS().optional()})})),YMe=o((()=>{})),XMe,ZMe,QMe,$Me=o((()=>{pC(),XMe=QS({batchId:H().optional(),itemIndex:qS().int().nonnegative().optional(),operationId:H().optional(),runtimeType:nC([`client`,`server`]).optional(),rejectedReason:H().optional(),resolving:JS().optional(),resolutionRequestId:H().optional(),skipped:JS().optional(),stepIndex:qS().int().nonnegative().optional(),status:nC([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),ZMe=QS({function:QS({arguments:H(),name:H()}),id:H(),type:H()}),QMe=QS({apiName:H(),arguments:H(),id:H(),identifier:H(),intervention:XMe.optional(),result_msg_id:H().optional(),thoughtSignature:H().optional(),type:H()})})),eNe=o((()=>{})),tNe=o((()=>{})),kC=o((()=>{pMe(),KMe(),_Me(),EMe(),JMe(),YMe(),WMe(),OMe(),$Me(),eNe(),tNe()})),nNe,rNe=o((()=>{pC(),nNe=QS({id:H(),similarity:qS()}),QS({id:H(),value:QS({fileChunks:ZS(nNe),ragQueryId:H().optional()})})})),iNe,aNe,oNe=o((()=>{pC(),pMe(),$Me(),rNe(),kC(),OMe(),iNe=nC([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),aNe=QS({apiName:H(),arguments:H(),identifier:H(),type:H()}),QS({role:iNe,content:H(),id:H().optional(),agentId:H().optional(),sessionId:H().nullish(),tool_call_id:H().optional(),plugin:aNe.optional(),parentId:H().optional(),groupId:H().nullish(),topicId:H().nullish(),threadId:H().nullish(),targetId:H().nullish(),model:H().nullish(),provider:H().nullish(),files:ZS(H()).optional(),error:uMe.nullish(),traceId:H().optional(),fileChunks:ZS(nNe).optional()}).passthrough(),QS({id:H().optional(),toolCallId:H().optional(),type:H().optional(),intervention:XMe.optional(),apiName:H().optional(),arguments:H().optional(),identifier:H().optional(),state:YS().optional(),error:YS().optional(),clientId:H().optional(),userId:H().optional()})})),sNe,cNe=o((()=>{pC(),sNe=QS({action:nC([`create`,`update`,`delete`]),agentEditable:JS().optional(),resourceType:nC([`document`,`task`])})})),AC,lNe,uNe,dNe,fNe,pNe,mNe=o((()=>{pC(),AC=nC([`never`,`required`,`always`]),lNe=$S([H(),QS({pattern:H(),type:nC([`exact`,`prefix`,`wildcard`,`regex`])})]),uNe=QS({match:tC(H(),lNe).optional(),policy:AC}),dNe=$S([AC,ZS(uNe)]),QS({action:nC([`approve`,`reject`,`select`]),data:QS({remember:JS().optional(),selected:$S([H(),ZS(H())]).optional()}).optional()}),QS({allowList:ZS(H()).optional(),approvalMode:nC([`auto-run`,`allow-list`,`manual`,`headless`])}),fNe=QS({description:H(),match:tC(H(),lNe),policy:AC.optional()}),pNe=ZS(fNe),QS({config:dNe.optional(),confirmedHistory:ZS(H()).optional(),securityBlacklist:pNe.optional(),toolArgs:tC(H(),YS()).optional(),toolKey:H().optional()})})),hNe=o((()=>{})),jC,gNe,_Ne,vNe,MC,yNe,bNe=o((()=>{pC(),cNe(),mNe(),hNe(),cNe(),jC=QS({avatar:H().optional(),description:H().optional(),readme:H().optional(),tags:ZS(H()).optional(),title:H()}),gNe=nC([`collapsed`,`expand`,`alwaysExpand`]),_Ne=QS({default:AC.optional(),policy:AC.optional(),type:H()}),vNe=$S([dNe,QS({dynamic:_Ne})]),MC=QS({defaultTimeoutMs:qS().int().positive().optional(),description:H(),humanIntervention:vNe.optional(),name:H(),ordered:JS().optional(),parameters:tC(H(),YS()),renderDisplayControl:gNe.optional(),serializeBy:H().optional(),url:H().optional(),work:sNe.optional()}),yNe=QS({api:ZS(MC),deviceClients:ZS(nC([`cli`,`desktop`])).optional(),executors:ZS(nC([`client`,`server`])).optional(),humanIntervention:vNe.optional(),identifier:H(),meta:jC,systemRole:H(),type:iC(`builtin`).optional()}),QS({discoverable:JS().optional(),hidden:JS().optional(),identifier:H(),manifest:yNe,type:iC(`builtin`)})})),xNe=o((()=>{})),SNe=o((()=>{})),CNe,wNe=o((()=>{pC(),bNe(),CNe=QS({properties:tC(H(),YS()),required:ZS(H()).optional(),type:iC(`object`)}),QS({$schema:H().optional(),api:ZS(MC),connector:QS({id:H(),identifier:H()}).optional(),connectorLinks:QS({connectorId:H(),param:H()}).optional(),author:H().optional(),createdAt:H().optional(),gateway:H().optional(),homepage:H().optional(),identifier:H(),mcpAppEntrypoints:ZS(QS({toolName:H(),title:H(),icon:H().optional()})).optional(),mcpAppOnlyApi:ZS(MC).optional(),mcpModelOnlyTools:ZS(H()).optional(),meta:jC,openapi:H().optional(),settings:CNe.optional(),systemRole:H().optional(),type:nC([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:QS({height:qS().optional(),mode:nC([`iframe`,`module`]).optional(),url:H(),width:qS().optional()}).optional(),version:H().optional()})})),TNe=o((()=>{})),ENe=o((()=>{})),DNe,ONe=o((()=>{pC(),DNe=QS({description:H().optional(),name:H(),parameters:QS({additionalProperties:JS().optional(),properties:tC(H(),YS()),required:ZS(H()).optional(),type:iC(`object`)})})})),kNe=o((()=>{bNe(),xNe(),SNe(),mNe(),wNe(),TNe(),ENe(),ONe()})),NC,ANe,jNe,PC,MNe,FC,NNe,IC,LC,RC,zC,PNe,FNe,BC,INe,LNe,RNe,zNe,VC,BNe,VNe=o((()=>{pC(),NC=1e6,ANe=2e3,jNe=2e3,PC=12e3,MNe=QS({kind:iC(`writing`)}).strict(),FC=QS({code:H().max(64),message:H(),operation:H().max(64),provider:H().max(64),retryable:JS()}).strict(),NNe=QS({errors:ZS(FC).max(16),evidenceCount:qS().int().nonnegative().max(NC),failedCount:qS().int().nonnegative().max(NC),succeededCount:qS().int().nonnegative().max(NC)}).strict(),NNe.omit({errors:!0}).strip(),IC=e=>H().trim().min(1).max(e),LC=IC(256),RC=IC(ANe),zC=QS({content:IC(PC),reasoning:RC,tagline:LC}).strict(),PNe=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}},FNe=oC(PNe,QS({description:RC,rank:qS().int().min(0).max(100),title:LC}).strict()),BC=e=>ZS(FNe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),INe=QS({composition:QS({identities:BC(6),interests:BC(8),lifeStyle:BC(6),social:BC(6),working:BC(6)}).strict(),personaProposal:zC,profile:QS({domains:ZS(LC).max(8),description:RC,name:LC,pronoun:LC,roles:ZS(LC).max(8),summary:RC,tagline:LC}).strict()}).strict(),QS({analysis:INe,detailedPersona:zC.optional(),diagnostics:NNe,feedbackRevision:qS().int().nonnegative().max(NC).default(0),generationRevision:qS().int().nonnegative().max(NC).default(0),kind:iC(`proposal`),providers:ZS(H().max(64)),resultId:H(),sourceFingerprint:H()}).strict(),LNe=QS({content:H().trim().min(1).max(jNe),createdAt:H(),revision:qS().int().positive().max(NC)}).strict(),RNe=QS({revision:qS().int().nonnegative().max(NC),turns:ZS(LNe).max(16)}).strict(),zNe=QS({completedAt:H().optional(),errors:ZS(FC).max(16),failedCount:qS().int().nonnegative().max(NC),revision:qS().int().nonnegative().max(NC),status:nC([`pending`,`running`,`completed`,`failed`]),succeededCount:qS().int().nonnegative().max(NC)}).strict(),VC={detailed:eC(`status`,[QS({status:iC(`running`),updatedAt:H()}).strict(),QS({status:iC(`completed`),updatedAt:H()}).strict(),QS({error:FC,status:iC(`failed`),updatedAt:H()}).strict()]).optional(),feedbackRevision:qS().int().nonnegative().max(NC).default(0),generationRevision:qS().int().nonnegative().max(NC).default(0),sourceFingerprint:H(),updatedAt:H()},BNe=eC(`status`,[QS({...VC,resultMessageId:H().optional(),status:iC(`running`)}).strict(),QS({...VC,resultMessageId:H(),status:iC(`completed`)}).strict(),QS({...VC,error:FC,resultMessageId:H().optional(),status:iC(`failed`)}).strict()]),QS({confirmedAt:H().optional(),feedback:RNe.default({revision:0,turns:[]}),generationRevision:qS().int().nonnegative().max(NC).default(0),id:H(),sources:tC(H().max(64),zNe),writing:BNe.optional()}).strict()})),HC,HNe,UNe=o((()=>{pC(),VNe(),HC={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},HNe=QS({clientMode:JS().optional(),completedAt:H().optional(),duration:qS().optional(),error:YS().optional(),model:H().optional(),onboardingUnderstanding:MNe.optional(),operationId:H().optional(),sourceToolCallId:H().optional(),startedAt:H().optional(),subagentType:H().optional(),totalCost:qS().optional(),totalLlmCalls:qS().optional(),totalMessages:qS().optional(),totalTokens:qS().optional(),totalSteps:qS().optional(),totalToolCalls:qS().optional()}),QS({agentId:H().optional(),groupId:H().optional(),id:H().optional(),metadata:HNe.optional(),parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),topicId:H(),type:nC([HC.Continuation,HC.Eval,HC.Standalone,HC.Isolation])})})),WNe,GNe,UC,KNe,WC,qNe,JNe=o((()=>{pC(),lMe(),kC(),oNe(),kNe(),UNe(),WNe=QS({parentThreadId:H().optional(),sourceMessageId:H().optional(),title:H().optional(),type:nC([HC.Continuation,HC.Standalone,HC.Isolation])}),GNe=QS({content:H(),metadata:OC.optional(),plugin:QS({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),role:nC([`assistant`,`tool`]),tool_call_id:H().optional(),tools:ZS(QMe).optional()}),UC=e=>H().regex(cMe(e)).optional(),QS({agentId:H().optional(),groupId:H().optional(),newAssistantMessage:QS({agentId:H().optional(),id:UC(`messages`),metadata:tC(H(),XS()).optional().transform(UMe),model:H().optional(),provider:H().optional()}),newThread:WNe.optional(),newTopic:QS({id:UC(`topics`),metadata:aC().optional(),model:H().optional(),projectId:H().optional(),provider:H().optional(),title:H().optional(),topicMessageIds:ZS(H()).optional(),trigger:H().optional()}).optional(),preloadMessages:ZS(GNe).optional(),newUserMessage:QS({content:H(),contextSelections:ZS(TMe).optional(),editorData:tC(H(),XS()).optional(),files:ZS(H()).optional(),id:UC(`messages`),metadata:OC.optional(),pageSelections:ZS(DMe).optional(),parentId:H().optional()}),sessionId:H().optional(),threadId:H().optional(),topicFilter:QS({excludeStatuses:ZS(H()).optional(),excludeTriggers:ZS(H()).optional(),includeTriggers:ZS(H()).optional(),onlyMine:JS().optional()}).optional(),topicPageSize:qS().int().min(1).max(100).optional(),topicId:H().optional()}),KNe=QS({description:H().optional(),name:H(),schema:QS({$defs:YS().optional(),additionalProperties:JS().optional(),properties:tC(H(),YS()),required:ZS(H()).optional(),type:iC(`object`)}),strict:JS().optional()}),QS({metadata:tC(H(),XS()).optional(),messages:ZS(YS()),model:H(),provider:H(),schema:KNe.optional(),tools:ZS(QS({function:DNe,type:iC(`function`)})).optional(),tracing:QS({tracingId:H().uuid().optional()}).catchall(XS()).optional()}),WC=$S([H(),ZS(XS()),tC(H(),XS())]),qNe=eC(`type`,[QS({criteria:QS({false:WC,true:WC}).optional(),instructions:WC,type:iC(`boolean`)}),QS({criteria:tC(H(),WC.nullable()),instructions:WC,type:iC(`choice`)}),QS({criteria:ZS(WC).min(1),instructions:WC,type:iC(`score`)})]),QS({metadata:tC(H(),XS()).optional(),model:H(),provider:H(),questions:tC(H(),qNe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:WC,tracing:QS({tracingId:H().uuid().optional()}).catchall(XS()).optional()})})),YNe=o((()=>{pC()})),XNe=o((()=>{})),ZNe=o((()=>{})),QNe=o((()=>{})),$Ne=o((()=>{})),ePe=o((()=>{})),tPe,nPe=o((()=>{Hke(),tPe=Vke.map(({type:e})=>e),[...Bke.options,...tPe]})),rPe=o((()=>{})),iPe=o((()=>{rPe()})),aPe=o((()=>{})),oPe=o((()=>{})),sPe=o((()=>{})),cPe=o((()=>{})),lPe=o((()=>{})),uPe=o((()=>{})),dPe=o((()=>{})),fPe=o((()=>{})),pPe=o((()=>{pC(),QS({connected:JS(),cpuCount:qS().int().min(1).max(4096),cpuPercent:qS().min(0).max(100).nullable(),diskTotalBytes:qS().int().min(0).nullish(),diskUsedBytes:qS().int().min(0).nullish(),load1:qS().min(0).nullable(),load5:qS().min(0).nullable(),load15:qS().min(0).nullable(),memoryTotalBytes:qS().int().min(0),memoryUsedBytes:qS().int().min(0),observedAt:qS().int().min(0)})})),mPe=o((()=>{})),hPe=o((()=>{})),gPe=o((()=>{})),_Pe=o((()=>{})),vPe=o((()=>{})),yPe=o((()=>{})),bPe=o((()=>{})),xPe=o((()=>{})),SPe=o((()=>{mPe(),hPe(),gPe(),_Pe(),vPe(),yPe(),bPe(),xPe()})),CPe=o((()=>{pC(),QS({shareId:H(),topicId:H(),visitorUserId:H()})})),wPe=o((()=>{})),TPe=o((()=>{})),EPe=o((()=>{CPe(),wPe(),TPe()})),DPe=o((()=>{})),OPe=o((()=>{})),kPe=o((()=>{})),APe=o((()=>{})),jPe=o((()=>{})),MPe=o((()=>{})),NPe=o((()=>{})),PPe=o((()=>{})),FPe=o((()=>{})),IPe=o((()=>{pC(),QS({ideal:H().optional(),question:H(),referenceFiles:H().or(ZS(H())).optional()}),QS({description:H().optional(),knowledgeBaseId:H(),name:H()})})),LPe=o((()=>{})),RPe=o((()=>{})),zPe=o((()=>{})),BPe=o((()=>{pC(),QS({ideal:H().optional(),question:H(),referenceFiles:H().or(ZS(H())).optional()}),QS({datasetId:H(),description:H().optional(),knowledgeBaseId:H(),name:H()})})),VPe=o((()=>{})),HPe=o((()=>{})),UPe=o((()=>{})),WPe,GPe=o((()=>{pC(),bNe(),WPe=QS({api:ZS(MC.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:jC,systemRole:H().optional(),type:nC([`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`),tC(H().min(1).max(255),WPe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),KPe=o((()=>{APe(),jPe(),MPe(),NPe(),PPe(),FPe(),IPe(),LPe(),RPe(),zPe(),BPe(),VPe(),HPe(),UPe(),GPe()})),qPe=o((()=>{})),JPe=o((()=>{})),YPe=o((()=>{})),GC,XPe,ZPe=o((()=>{GC={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},XPe=[GC.RemoteServerOffline,GC.RemoteServerTimeout,GC.RemoteServerDNSFailed,GC.RemoteServerConnectionRefused,GC.RemoteServerCertInvalid,GC.RemoteServerUnreachable],new Set(XPe)})),QPe,$Pe,eFe=o((()=>{pC(),QPe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),$Pe=100,QS({category:H().optional(),filesOnly:JS().optional(),includeContentPreview:JS().optional(),knowledgeBaseId:H().optional(),limit:qS().int().positive().max($Pe).default(50),offset:qS().int().min(0).default(0),parentId:H().nullish(),q:H().nullish(),showFilesInKnowledgeBase:JS().default(!1),sortType:nC([`desc`,`asc`]).optional(),sorter:nC([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:rC(QPe).optional(),visibility:nC([`private`,`public`]).optional()})})),tFe,nFe=o((()=>{pC(),tFe=QS({shareId:H(),visitorUserId:H()}),QS({agentShare:tFe.optional(),date:H(),dirname:H(),filename:H(),height:qS().optional(),path:H(),ratio:qS().optional(),width:qS().optional()}),QS({fileType:H(),hash:H().optional(),knowledgeBaseId:H().optional(),metadata:YS().optional(),name:H(),size:qS(),source:H().optional(),url:H().optional()})})),rFe,iFe=o((()=>{eFe(),nFe(),rFe=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(rFe))})),aFe=o((()=>{})),oFe,sFe,cFe,lFe,KC,uFe,dFe,fFe,pFe,mFe=o((()=>{pC(),oFe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],sFe=[`agentEmoji`,`agentName`,`fullName`],cFe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],lFe=[`agent_identity`,`user_identity`,`discovery`,`summary`],KC=H().trim().transform(e=>e.length>0?e:void 0).optional(),uFe=ZS(H()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),nC(oFe),dFe=nC(sFe),fFe=nC(cFe),QS({agentEmoji:KC,agentName:KC,customInterests:uFe,fullName:KC,interests:uFe}).strict(),pFe=nC(lFe),QS({discoveryUserMessageCount:qS().optional(),finished:JS(),missingStructuredFields:ZS(dFe),phase:pFe,remainingDiscoveryExchanges:qS().optional(),topicId:H().optional(),version:qS()}).strict(),QS({activeTopicId:H().optional(),discoveryStartUserMessageCount:qS().optional(),finishedAt:H().optional(),version:qS()}).strict(),QS({node:fFe,patch:QS({}).passthrough()}).strict()})),hFe,gFe,_Fe=o((()=>{pC(),mFe(),hFe=$S([QS({kind:iC(`onboarding`),phase:pFe}),QS({kind:iC(`chat`)})]),gFe=QS({model:H().min(1),provider:H().min(1)}),QS({hint:hFe.optional(),modelConfig:gFe,threadId:H().optional(),topicId:H().min(1)})})),vFe=o((()=>{})),yFe=o((()=>{})),bFe=o((()=>{})),xFe=o((()=>{})),qC,SFe,CFe,wFe,TFe,EFe,DFe,OFe,kFe,AFe=o((()=>{pC(),qC=ZS(H().trim().min(1)).max(200),SFe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),CFe=oC(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||SFe.has(t.toLowerCase())))return t},H().trim().min(1).optional()),wFe=[`dead_end`,`superseded`,`retry`],TFe=2e3,EFe=QS({kind:nC(wFe),lesson:H().trim().min(1).max(TFe),nodeIds:qC.min(1),reason:H().trim().min(1).max(TFe),title:H().trim().min(1).max(200)}).strict(),DFe=QS({detours:ZS(EFe).max(20).default([]),findingIds:qC.default([]),narrative:H().trim().min(1).max(8e3),nodeIds:qC.default([]),title:H().trim().min(1).max(200),workVersionIds:qC.default([])}).strict(),OFe=QS({nodeIds:qC.optional(),reason:H().trim().min(1).max(2e3),title:H().trim().min(1).max(200)}).strict(),kFe=QS({edgeIds:qC.default([]),nodeIds:qC.min(1)}).strict(),QS({chapters:ZS(DFe).min(1).max(30),deliverableWorkId:CFe,graphCursor:H().trim().min(1),headline:H().trim().min(1).max(500),mainline:kFe.optional(),nextSteps:ZS(OFe).max(20).default([])}).strict()})),jFe=o((()=>{})),MFe=o((()=>{})),NFe=o((()=>{})),PFe=o((()=>{})),FFe,IFe,LFe,RFe=o((()=>{pC(),FFe=QS({apiName:H(),arguments:H(),id:H(),identifier:H(),type:iC(`default`)}),IFe=QS({clientId:H(),content:H(),createdAt:H().optional(),metadata:tC(H(),YS()).optional(),model:H().optional(),parentClientId:H().nullish(),plugin:QS({apiName:H(),arguments:H(),identifier:H(),type:H()}).optional(),pluginState:tC(H(),YS()).optional(),provider:H().optional(),reasoning:QS({content:H()}).passthrough().optional(),role:nC([`user`,`assistant`,`tool`]),toolCallId:H().optional(),tools:ZS(FFe).optional(),usage:tC(H(),YS()).optional()}),LFe=QS({clientId:H(),messages:ZS(IFe),sourceMessageClientId:H().optional(),status:nC([`active`,`completed`,`failed`]).optional(),title:H().optional(),type:nC([`continuation`,`standalone`,`isolation`])}),QS({messages:ZS(IFe),metadata:tC(H(),YS()).optional(),sessionId:H(),source:nC([`claude-code`,`codex`]),sourceEndAt:H().optional(),threads:ZS(LFe).optional(),title:H().optional(),topicClientId:H(),workingDirectory:H().optional()})})),zFe=o((()=>{})),BFe=o((()=>{})),VFe=o((()=>{})),HFe=o((()=>{})),UFe,WFe=o((()=>{UFe=[`triage`,`backlog`,`unstarted`,`started`],[...UFe]})),GFe=o((()=>{})),KFe=o((()=>{})),qFe=o((()=>{})),JFe=o((()=>{})),YFe,XFe,ZFe=o((()=>{pC(),YFe=QS({domain:H().optional(),imageUri:H().optional(),sourceUri:H().optional(),title:H().optional()}),XFe=QS({citations:ZS(QS({favicon:H().optional(),id:H().optional(),title:H().optional(),url:H()})).optional(),imageResults:ZS(YFe).optional(),imageSearchQueries:ZS(H()).optional(),searchQueries:ZS(H()).optional()})})),QFe=o((()=>{pC(),ZFe(),kC(),QS({content:H().optional(),editorData:tC(H(),YS()).nullish(),error:uMe.nullish(),imageList:ZS(qMe).optional(),metadata:OC.optional(),model:H().optional(),observationId:H().optional(),provider:H().optional(),reasoning:fMe.optional(),role:H().optional(),search:XFe.nullish(),toolCalls:ZS(ZMe).optional(),tools:ZS(QMe).nullish(),traceId:H().optional(),usage:DC.optional()}).passthrough()})),$Fe=o((()=>{JFe(),QFe()})),eIe=o((()=>{})),tIe=o((()=>{})),nIe=o((()=>{})),rIe=o((()=>{})),iIe=o((()=>{eIe(),tIe(),nIe(),oNe(),rNe(),rIe()})),aIe=o((()=>{kC(),$Fe(),iIe()})),oIe=o((()=>{pC(),QS({avatar:H().optional(),backgroundColor:H().optional(),description:H().optional(),marketIdentifier:H().optional(),name:H().optional(),tags:ZS(H()).optional(),title:H().optional()})})),sIe=o((()=>{})),cIe=o((()=>{})),lIe,uIe=o((()=>{pC(),lIe=QS({accessToken:H().optional(),token:H().optional(),type:nC([`none`,`bearer`,`oauth2`])}).optional(),QS({auth:lIe,headers:tC(H(),H()).optional(),identifier:H(),metadata:QS({avatar:H().optional(),description:H().optional()}).optional(),url:H().url()})})),dIe=o((()=>{})),fIe=o((()=>{uIe(),dIe()})),pIe=o((()=>{})),mIe=o((()=>{pC(),QS({fileIds:ZS(H()).optional(),knowledgeIds:ZS(H()).optional(),query:H(),topK:qS().optional()})})),hIe=o((()=>{})),gIe=o((()=>{})),_Ie=o((()=>{})),vIe=o((()=>{})),yIe=o((()=>{})),bIe=o((()=>{})),xIe=o((()=>{})),SIe,CIe=o((()=>{SIe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),wIe=o((()=>{xIe(),CIe()})),TIe,EIe,DIe=o((()=>{TIe=`NO_REPLY`,EIe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${TIe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(EIe)})),OIe,kIe=o((()=>{pC(),OIe=QS({name:H(),url:H().url().optional()}),QS({author:$S([H(),OIe]).optional(),description:H().min(1,`Skill description is required`),license:H().optional(),name:H().min(1,`Skill name is required`),permissions:ZS(H()).optional(),repository:H().url().optional(),sourceUrl:H().url().optional(),version:H().optional()}).passthrough()})),AIe=o((()=>{})),jIe=o((()=>{})),MIe=o((()=>{})),NIe,PIe=o((()=>{NIe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],NIe[0]})),JC,FIe=o((()=>{JC=1440*60*1e3,30*JC,90*JC,7*JC})),IIe=o((()=>{jIe(),MIe(),PIe(),FIe()})),LIe=o((()=>{})),YC,RIe,zIe,BIe,VIe,HIe,UIe,WIe=o((()=>{pC(),YC=nC([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),QS({serverDefaultHeterogeneousProfiles:ZS(H().min(1)).optional()}).passthrough(),RIe=QS({audio:JS().optional(),functionCall:JS().optional(),imageOutput:JS().optional(),reasoning:JS().optional(),search:JS().optional(),video:JS().optional(),vision:JS().optional()}),zIe=QS({codexMaxReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:nC([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:nC([`none`,`high`,`max`]).optional(),effort:nC([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:nC([`high`,`max`]).optional(),glm5_3ReasoningEffort:nC([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:nC([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:nC([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:nC([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:nC([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:nC([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:nC([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:nC([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:nC([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:nC([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:nC([`low`,`high`,`max`]).optional(),opus47Effort:nC([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:nC([`low`,`medium`,`high`]).optional(),reasoningMode:nC([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:nC([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:nC([`low`,`high`]).optional(),thinkingLevel:nC([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:nC([`low`,`high`]).optional(),thinkingLevel3:nC([`low`,`medium`,`high`]).optional(),thinkingLevel4:nC([`minimal`,`high`]).optional(),thinkingLevel5:nC([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(zIe.shape),BIe=nC(`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(`.`)),VIe=nC([`tool`,`params`,`internal`]),HIe=nC([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),UIe=QS({disabledParams:ZS(HIe).optional(),extendParams:ZS(BIe).optional(),searchImpl:VIe.optional(),searchProvider:H().optional(),ttsVoice:H().optional()}),QS({abilities:RIe.optional(),contextWindowTokens:qS().optional(),displayName:H().optional(),id:H(),providerId:H(),releasedAt:H().optional(),settings:UIe.optional(),type:YC.optional()}),QS({abilities:RIe.optional(),config:QS({deploymentName:H().optional()}).optional(),contextWindowTokens:qS().nullish(),displayName:H().nullish(),settings:UIe.optional(),type:YC.optional()}),QS({enabled:JS(),id:H(),providerId:H(),source:nC([`builtin`,`custom`,`remote`]).optional(),type:YC.optional()})})),GIe,XC,KIe,qIe,JIe,YIe,XIe,ZIe,QIe=o((()=>{WIe(),pC(),Vje(),Uje(),GIe=QS({claimedAt:H(),expiresAt:H(),id:H()}),XC=QS({claim:GIe.optional(),createdAt:H(),runAt:H().datetime(),updatedAt:H()}),KIe=XC.extend({failedAssistantMessageId:H(),kind:iC(`resume_after_rate_limit`),rateLimit:QS({rateLimitType:H().optional(),resetsAt:qS().optional()}).optional(),resume:QS({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:iC(`heterogeneous_agent`),userMessageId:H()}),qIe=XC.extend({kind:iC(`delayed_start`),model:H().optional(),provider:H().optional(),userMessageId:H()}),QS({baseBranch:H().min(1).max(1024).optional(),deviceId:H().min(1).max(256),path:H().min(1).max(4096),repoType:nC([`git`,`github`]),sourcePath:H().min(1).max(4096)}),JIe=XC.extend({error:H().optional(),kind:iC(`worktree_start`),operationId:H(),retryable:JS().optional(),userMessageId:H(),waitingForDevice:JS().optional()}),YIe=eC(`kind`,[KIe,qIe,JIe]),QS({claim:GIe.optional(),createdAt:H(),failedAssistantMessageId:H(),kind:mOe().optional(),rateLimit:QS({rateLimitType:H().optional(),resetsAt:qS().optional()}).optional(),reason:iC(`rate_limit`),resume:QS({sessionId:H().optional(),workingDirectory:H().optional()}).optional(),source:iC(`heterogeneous_agent`),updatedAt:H(),userMessageId:H()}),XIe=QS({boundDeviceId:H().optional(),heteroEffort:aC(e=>typeof e==`string`).optional(),heteroSessionBindingKey:H().optional(),heteroSessionBindingKeyByWorkingDirectory:tC(H(),H()).optional(),heteroSessionId:H().optional(),heteroSessionIdByWorkingDirectory:tC(H(),H()).optional(),heteroPermissionMode:nC(Hje).optional(),heteroPermissionModeFallback:nC([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:nC([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:H().optional(),onboardingFeedback:QS({comment:H().max(500).optional(),rating:nC([`good`,`bad`]),submittedAt:H()}).optional(),onboardingSession:QS({agentIdentityCompletedAt:H().optional(),agentMarketplacePick:QS({categoryHints:ZS(H()),installedAgentIds:ZS(H()).optional(),requestId:H(),resolvedAt:H(),selectedTemplateIds:ZS(H()).optional(),skipReason:H().optional(),skippedAgentIds:ZS(H()).optional(),status:nC([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:H().optional(),finalAgentNames:ZS(H()).optional(),finishedAt:H().optional(),lastActiveAt:H().optional(),phase:nC([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:H().optional(),userIdentityCompletedAt:H().optional(),version:qS().optional()}).optional(),provider:H().optional(),lastSettledOperationId:H().optional(),reasoningConfig:zIe.optional(),repos:ZS(H()).optional(),runningOperation:hOe().optional(),taskCallbackReservation:QS({messageId:H(),reservedAt:H()}).nullable().optional(),sandboxDrive:nC([`personal`,`public`]).optional(),sandboxEnvironmentId:H().max(255).optional(),sandboxInstanceId:H().optional(),sandboxWorkingDirectory:H().max(1024).optional(),scheduledRun:YIe.nullish(),workingDirectory:H().optional(),workingDirectoryConfig:zje.optional()}),XIe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),ZIe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],nC(ZIe)})),$Ie=o((()=>{LIe(),UNe(),QIe()})),eLe=o((()=>{})),tLe=o((()=>{})),nLe=o((()=>{pC(),QS({currentStep:qS().min(1).max(7).optional(),finishedAt:H().optional(),version:qS()})})),rLe=o((()=>{})),iLe,aLe,oLe=o((()=>{pC(),iLe=QS({checked:JS(),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:ZS(QS({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(),aLe=QS({code:H().min(1).max(128),providerId:H().min(1).max(128),retryable:JS()}).strict(),QS({completedAt:H().optional(),createdTaskIds:tC(H().max(128),H().max(512)),errors:ZS(aLe).max(16),id:H().min(1).max(512),providerIds:ZS(H().min(1).max(128)).max(16),recommendations:ZS(iLe).max(48),sourceFingerprint:H().min(1).max(2048),status:nC([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:H()}).strict()})),sLe,cLe,lLe,uLe,dLe=o((()=>{pC(),sLe=QS({docsMerged:JS().optional(),moveSettingsToAvatar:JS().optional(),topic:JS().optional(),uploadFileInKnowledgeBase:JS().optional()}),cLe=QS({enableBetterCodingExperience:JS().optional(),enableAgentIdentity:JS().optional(),enableAgentGraphConfig:JS().optional(),enableArtifactDeployment:JS().optional(),enablePageCollab:JS().optional(),enableClaudeCodeSdk:JS().optional(),enableCodexAppServer:JS().optional(),enableDesktopSplitView:JS().optional(),enableHeteroSessionImport:JS().optional(),enableGroupChat:JS().optional(),enableImessage:JS().optional(),enableInputMarkdown:JS().optional(),enableMessageTextSelectionActions:JS().optional(),enableIntegrations:JS().optional(),enableOAuthApps:JS().optional(),enableProjects:JS().optional(),enableSelfLearning:JS().optional(),enableTaskVerify:JS().optional(),enableEvalCapture:JS().optional(),enableTopicBugReport:JS().optional(),enableGoals:JS().optional(),enableTopicAcceptance:JS().optional(),enableDeviceTunnel:JS().optional()}),lLe=QS({acceptOnMerge:JS().optional(),commentOnPrivateRepositories:JS().optional(),commentOnPublicRepositories:JS().optional(),wakeOnCiFailure:JS().optional(),wakeOnReview:JS().optional()}),uLe=QS({github:lLe.optional()}),QS({provider:H(),providerAccountId:H()}),QS({defaultOpenInApp:H().optional(),fontFamily:H().optional(),guide:sLe.optional(),hideSyncAlert:JS().optional(),integration:uLe.optional(),lab:cLe.optional(),lastWorkspaceId:H().nullish(),projectTopicGroupMode:nC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:ZS(H()).optional(),sidebarHiddenGroupIds:ZS(H()).optional(),terminalFontFamily:H().optional(),telemetry:JS().nullable(),topicGroupMode:nC([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:JS().optional(),topicSortBy:nC([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:JS().optional(),workspace:QS({order:ZS(H()).optional()}).optional()}).partial()})),fLe=o((()=>{})),pLe=o((()=>{})),mLe=o((()=>{})),hLe=o((()=>{})),gLe=o((()=>{})),_Le=o((()=>{})),vLe=o((()=>{})),yLe=o((()=>{})),bLe,ZC,xLe=o((()=>{pC(),bLe=tC(H(),tC(H(),JS())),ZC=QS({enabled:JS().optional(),items:bLe.optional()}).strict(),QS({content:QS({scheduledTaskSummary:JS().optional()}).strict().optional(),email:ZC.optional(),im:ZC.extend({platforms:tC(H(),ZC.extend({tenantId:H().optional()}).strict()).optional()}).strict().optional(),inbox:ZC.optional(),push:ZC.optional()}).strict()})),SLe=o((()=>{})),CLe=o((()=>{})),wLe=o((()=>{})),TLe=o((()=>{})),ELe=o((()=>{pC(),fLe(),pLe(),mLe(),hLe(),gLe(),_Le(),vLe(),yLe(),xLe(),SLe(),CLe(),wLe(),TLe(),QS({defaultAgent:YS().optional(),general:YS().optional(),hotkey:YS().optional(),image:YS().optional(),keyVaults:YS().optional(),languageModel:YS().optional(),market:YS().optional(),memory:YS().optional(),notification:YS().optional(),systemAgent:YS().optional(),tool:YS().optional(),tts:YS().optional()}).passthrough().partial()})),DLe=o((()=>{mFe(),nLe(),rLe(),oLe(),dLe(),ELe()})),OLe=o((()=>{})),kLe=o((()=>{})),ALe=o((()=>{})),jLe=o((()=>{})),MLe,NLe=o((()=>{pC(),MLe=nC([`personal`,`professional`,`demographic`]),QS({description:H().optional(),episodicDate:H().optional(),extractedLabels:ZS(H()).optional(),labels:tC(H(),YS()).optional(),relationship:H().optional(),role:H().optional(),type:MLe.optional(),userMemoryId:H().optional()}),QS({description:H().optional(),episodicDate:H().optional(),extractedLabels:ZS(H()).optional(),labels:tC(H(),YS()).optional(),relationship:H().optional(),role:H().optional(),type:MLe.optional()})})),PLe,FLe,ILe=o((()=>{PLe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(PLe),FLe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(FLe)})),LLe=o((()=>{})),RLe=o((()=>{})),zLe,BLe,VLe,QC,HLe,ULe,WLe,GLe=o((()=>{zLe=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(zLe),BLe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(BLe),VLe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(VLe),QC=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(QC),HLe=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(HLe),ULe=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(ULe),WLe=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(WLe)})),KLe=o((()=>{})),$C,qLe,JLe,YLe,XLe,ZLe,QLe,$Le,eRe,tRe,nRe,rRe,iRe,aRe=o((()=>{pC(),GLe(),$C=oC(e=>typeof e==`string`?[e]:e,ZS(H().trim().min(1))),qLe=e=>oC(e=>typeof e==`string`?[e]:e,ZS(e)),JLe=nC([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),YLe=QS({activities:qS().int().min(0).optional(),contexts:qS().int().min(0).optional(),experiences:qS().int().min(0).optional(),identities:qS().int().min(0).optional(),preferences:qS().int().min(0).optional()}),XLe=QS({end:fC().optional(),field:JLe.optional(),start:fC().optional()}),ZLe=nC([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),QLe=QS({date:fC(),selector:iC(`day`)}),$Le=QS({month:qS().int().min(1).max(12),selector:iC(`month`),year:qS().int().min(1970).max(9999)}),eRe=QS({end:fC().optional(),selector:iC(`range`),start:fC().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),tRe=QS({selector:iC(`year`),year:qS().int().min(1970).max(9999)}),nRe=nC([`today`,`yesterday`]),rRe=kOe(()=>$S([QS({selector:ZLe}),QLe,$Le,QS({anchor:$S([nRe,rRe]),offsetDays:qS().int(),selector:iC(`relativeDay`)}),eRe,tRe])),QS({categories:$C.optional(),effort:nC([`low`,`medium`,`high`]).optional(),labels:$C.optional(),layers:qLe(rC(QC)).optional(),queries:$C.optional(),relationships:$C.optional(),status:$C.optional(),tags:$C.optional(),timeIntent:rRe.optional(),timeRange:XLe.optional(),topK:YLe.optional(),types:$C.optional()}),iRe=nC([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),QS({include:qLe(iRe).optional(),layers:ZS(rC(QC)).optional(),limit:qS().int().min(1).max(100).optional(),q:H().trim().optional(),timeRange:XLe.optional()})})),oRe=o((()=>{})),sRe=o((()=>{OLe(),kLe(),ALe(),jLe(),NLe(),ILe(),LLe(),RLe(),GLe(),KLe(),aRe(),oRe()})),cRe=o((()=>{})),lRe=o((()=>{})),uRe=o((()=>{lRe()})),dRe=o((()=>{})),fRe=o((()=>{})),pRe=o((()=>{dRe(),fRe()})),mRe,hRe=o((()=>{mRe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(mRe).flatMap(([e,t])=>t.map(t=>[t,e])))})),gRe=o((()=>{})),_Re=o((()=>{pC(),QS({start:qS().finite().nonnegative()}).strict()})),vRe=o((()=>{pC(),QS({preconditions:ZS(H().max(4e3)).max(100).optional(),expected:H().max(2e4).optional(),fixtures:ZS(QS({id:H().min(1),name:H().min(1),description:H().optional(),resource:QS({type:nC([`file`,`document`]),id:H().min(1)}).optional(),data:tC(H(),XS()).optional()})).max(100).optional(),steps:ZS(QS({id:H().min(1),instruction:H().min(1),expected:H().optional(),fixtureIds:ZS(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`]})})})),ew,yRe,bRe=o((()=>{pC(),ew=QS({height:qS().finite(),width:qS().finite(),x:qS().finite(),y:qS().finite()}),yRe=QS({commit:H().max(200).optional(),context:tC(H().max(100),$S([H().max(500),qS(),JS()])).optional(),env:QS({consoleErrors:ZS(H().max(2e3)).max(10),userAgent:H().max(500)}).optional(),intent:nC([`change`,`comment`]),region:ew.optional(),regionRefs:ZS(QS({box:ew,selector:H().max(2e3),text:H().max(200).optional()}).nullable()).max(6).optional(),route:H().max(500).optional(),scroll:QS({x:qS().finite(),y:qS().finite()}),targets:ZS(QS({code:QS({chain:ZS(QS({file:H().max(500).optional(),line:qS().int().optional(),name:H().max(200)})).max(5),column:qS().int(),file:H().max(500),line:qS().int()}).optional(),label:H().max(200),rect:ew,selector:H().max(2e3),text:H().max(200).optional()})).max(8),title:H().max(300).optional(),url:H().url().max(2e3),v:iC(1),viewport:QS({dpr:qS().positive(),height:qS().finite(),width:qS().finite()})}),QS({anchor:yRe.optional(),clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),parentId:H().trim().min(1).max(64).optional(),screenshot:QS({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`}),QS({note:H().trim().max(2e3).optional(),verdict:nC([`accept`,`send_back`])})})),xRe,tw,nw,rw,iw,SRe,CRe,wRe,TRe,ERe,DRe,ORe=o((()=>{pC(),bRe(),xRe=[`region`,`element`,`sketch`],tw=qS().finite(),nw=QS({height:tw,width:tw,x:tw,y:tw}),rw=yRe.shape,iw=kOe(()=>QS({children:ZS(iw).max(50),rect:nw,type:nC([`avatar`,`button`,`card`,`image`,`input`,`text`])})),SRe=QS({commit:rw.commit,context:rw.context,env:rw.env}),CRe=QS({description:H().max(500).optional(),favicon:H().max(2e3).optional(),lang:H().max(35).optional(),title:H().max(300).optional()}),wRe=QS({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3),context:SRe.optional(),kind:nC(xRe),pageMeta:CRe.optional(),rectDocument:nw,rectViewport:nw,regionRefs:rw.regionRefs,regions:ZS(nw).max(6).optional(),routeKey:H().max(500),scroll:QS({x:tw,y:tw}),sketch:ZS(iw).max(50).optional(),targets:rw.targets.optional(),url:H().url().max(2e3),viewport:QS({dpr:qS().positive(),height:tw,width:tw})}),TRe=64*1024,ERe=QS({dataUrl:H().regex(/^data:image\/(jpeg|webp);base64,/)}),wRe.extend({screenshot:ERe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=TRe,{message:`Mark is too large`}),QS({content:H().trim().min(1).max(4e3).optional(),rectDocument:nw.optional(),rectViewport:nw.optional(),regionRefs:rw.regionRefs,regions:ZS(nw).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),QS({agentId:H().trim().min(1).max(255).optional(),feedback:H().trim().max(4e3).optional()}),DRe=[`pass`,`not_fixed`],QS({reason:H().trim().max(2e3).optional(),verdict:nC(DRe)}),QS({clientId:H().trim().min(1).max(255),content:H().trim().min(1).max(4e3)})})),aw,kRe,ow,sw,cw,ARe,lw,uw,jRe,MRe,NRe=o((()=>{pC(),aw=[`journey`,`options`,`references`,`other`],kRe=[`html`,`image`,`video`,`decision`],ow=H(),sw=qS().finite(),cw=qS().finite().positive(),QS({hash:H().min(1).nullable(),kind:iC(`file`),path:H().min(1)}),ARe=QS({kind:iC(`file`),path:H().min(1)}),lw=H().min(1).optional(),uw=H().min(1),jRe={expected:ow.optional(),groupId:uw.optional(),h:cw.optional(),pageId:uw.optional(),recommended:JS().optional(),roundId:uw.optional(),source:ARe.optional(),title:ow,type:nC(kRe).optional(),w:cw.optional(),x:sw,y:sw},MRe={desc:ow.optional(),kind:nC(aw),pageId:uw.optional(),title:ow},eC(`type`,[QS({page:QS({name:ow.min(1)}),ref:lw,type:iC(`addPage`)}),QS({id:uw,patch:QS({name:ow.min(1)}),type:iC(`updatePage`)}),QS({id:uw,type:iC(`removePage`)}),QS({ref:lw,round:QS({batchId:uw.optional(),pageId:uw.optional(),title:ow.min(1)}),type:iC(`addRound`)}),QS({id:uw,patch:QS({title:ow.min(1)}),type:iC(`updateRound`)}),QS({group:QS(MRe),ref:lw,type:iC(`addGroup`)}),QS({id:uw,patch:QS({desc:ow,kind:nC(aw),title:ow}).partial(),type:iC(`updateGroup`)}),QS({id:uw,type:iC(`removeGroup`)}),QS({board:QS(jRe),ref:lw,type:iC(`addBoard`)}),QS({id:uw,patch:QS({...jRe,groupId:uw.nullable(),roundId:uw.nullable()}).omit({pageId:!0,type:!0}).partial(),type:iC(`updateBoard`)}),QS({id:uw,type:iC(`removeBoard`)}),QS({edge:QS({condition:ow.optional(),from:uw,isDefault:JS().optional(),label:ow.optional(),to:uw}),ref:lw,type:iC(`addEdge`)}),QS({id:uw,type:iC(`removeEdge`)}),QS({boardId:uw,expected:ow,type:iC(`setCheck`)})])})),dw,fw,PRe,FRe,IRe=o((()=>{pC(),dw={maxFiles:500,maxImageBytes:10*1024*1024,maxPathLength:200,maxTextFileBytes:512*1024,maxTotalBytes:50*1024*1024},fw=H().min(1).max(dw.maxPathLength+2),PRe=$S([QS({content:H(),path:fw}).strict(),QS({fileRef:H().min(1),path:fw}).strict(),QS({base64:H().min(1),path:fw}).strict(),QS({path:fw,uploaded:iC(!0)}).strict(),QS({fromCanvas:QS({canvasId:H().min(1),version:qS().int().positive().optional()}).strict(),path:fw}).strict()]),ZS(QS({path:fw,size:qS().int().nonnegative()}).strict()).min(1).max(dw.maxFiles),FRe=QS({newText:H(),oldText:H().min(1),path:fw}).strict(),QS({deletes:ZS(fw).max(dw.maxFiles).optional(),edits:ZS(FRe).max(200).optional(),writes:ZS(PRe).max(dw.maxFiles).optional()}).strict()})),LRe=o((()=>{})),RRe=o((()=>{})),zRe=o((()=>{})),BRe=o((()=>{})),VRe,HRe,URe,WRe,GRe,KRe,qRe,JRe,YRe,XRe=o((()=>{pC(),VRe=[`new`,`reuse`],HRe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,URe=QS({channelId:H().min(1),threadId:H().min(1).optional()}).strict(),WRe=QS({arguments:tC(H(),XS()),delivery:URe.optional(),eventName:H().min(1),linkId:H().min(1).optional()}).strict(),GRe=QS({cursor:H().nullable().optional(),deliveryStatus:QS({active:JS().optional(),failedSince:H().optional(),lastDeliveryAt:H().optional(),lastError:H().nullable().optional(),retryAfterMs:qS().nonnegative().optional(),throttled:JS().optional()}).optional(),refreshBefore:Nke({offset:!0}).nullable().optional(),remoteSubscriptionId:H().optional(),truncated:JS().optional()}).strict(),KRe=QS({scheme:iC(`standard_webhooks`)}).strict(),qRe=QS({autoApprove:JS(),delivery:URe.optional(),identifier:H().regex(HRe).optional(),topicMode:nC(VRe),topicId:H().min(1).optional()}).strict(),JRe=QS({}).strict(),YRe=QS({scheme:iC(`bearer_token`)}).strict(),eC(`kind`,[QS({kind:iC(`mcp_events`),config:WRe,state:GRe,verification:KRe}),QS({kind:iC(`generic`),config:qRe,state:JRe,verification:YRe})])})),ZRe=o((()=>{})),QRe=o((()=>{})),$Re=o((()=>{})),eze=o((()=>{})),tze=o((()=>{})),nze=o((()=>{})),rze=o((()=>{})),ize=o((()=>{nze(),rze()})),aze=o((()=>{})),oze=o((()=>{})),sze=o((()=>{})),cze=o((()=>{Nje(),Fje(),Ije(),Lje(),qje(),Yje(),$je(),eMe(),tMe(),rMe(),iMe(),aMe(),JNe(),YNe(),XNe(),ZNe(),QNe(),$Ne(),ePe(),nPe(),iPe(),aPe(),oPe(),sPe(),cPe(),lPe(),uPe(),Vje(),dPe(),fPe(),pPe(),SPe(),EPe(),DPe(),OPe(),lMe(),kPe(),KPe(),qPe(),JPe(),YPe(),ZPe(),iFe(),aFe(),_Fe(),vFe(),yFe(),bFe(),xFe(),AFe(),jFe(),MFe(),NFe(),PFe(),RFe(),zFe(),BFe(),VFe(),HFe(),WFe(),GFe(),KFe(),qFe(),aIe(),oIe(),sIe(),cIe(),fIe(),pIe(),mIe(),hIe(),gIe(),_Ie(),vIe(),ZFe(),yIe(),bIe(),wIe(),DIe(),kIe(),AIe(),IIe(),kNe(),$Ie(),eLe(),tLe(),VNe(),DLe(),sRe(),cRe(),uRe(),pRe(),hRe(),gRe(),_Re(),vRe(),bRe(),ORe(),hMe(),NRe(),IRe(),LRe(),RRe(),zRe(),BRe(),Uje(),XRe(),ZRe(),QRe(),$Re(),eze(),tze(),ize(),VNe(),sRe(),aze(),oze(),sze()})),lze=o((()=>{})),uze,pw,dze=o((()=>{uze=[`*`,`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(uze),pw=(e,t)=>({read:e,write:t}),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,null),pw(`knowledge:read`,`knowledge:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,null),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`model:read`,`model:write`),pw(`model:read`,`model:write`),pw(`chat:read`,null),pw(`chat:read`,`chat:write`),pw(`knowledge:read`,`knowledge:write`),pw(`model:read`,`model:write`),pw(`agent:read`,null),pw(`knowledge:read`,`knowledge:write`),pw(`knowledge:read`,`knowledge:write`),pw(`knowledge:read`,`knowledge:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`user:read`,`user:write`),pw(`file:read`,`file:write`),pw(`file:read`,`file:write`),pw(`chat:read`,`chat:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`chat:read`,`chat:write`),pw(`knowledge:read`,`knowledge:write`),pw(`knowledge:read`,`knowledge:write`),pw(`agent:read`,`agent:write`),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`agent:read`,`agent:write`),pw(`knowledge:read`,`knowledge:write`),pw(`user:read`,`user:write`),pw(`chat:read`,`chat:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`chat:read`,null),pw(`chat:read`,null),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,`agent:write`),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`chat:read`,`chat:write`),pw(`file:read`,`file:write`),pw(`usage:read`,null),pw(`user:read`,`user:write`),pw(`user:read`,`user:write`),pw(`user:read`,`user:write`),pw(`agent:read`,`agent:write`),pw(`agent:read`,null),pw(`agent:read`,`agent:write`),pw(`workspace:read`,`workspace:write`),pw(`workspace:read`,null),pw(`workspace:read`,null),pw(`workspace:read`,`workspace:write`)})),mw,fze=o((()=>{mw=1024*1024,10*mw,10*mw,10*mw,10*mw,50*mw,50*mw,20*mw,5*mw,20*mw,2*mw,100*mw})),pze=o((()=>{}));function mze(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=_ze.test(e[0]);hze.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(gze,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(gze,`$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 hw(...e){return mze(Array.from(Array.isArray(e[0])?e[0]:e))}var hze,gze,_ze,vze=o((()=>{hze=RegExp(`^[^/:\\d][^/:]*:/*$`),gze=RegExp(`^([^/:\\d][^/:]*):/*`),_ze=/^[^/:]+:\d+(?:[/?#]|$)/})),yze,gw,bze,xze,_w,vw,Sze,Cze,wze,Tze,Eze,Dze,Oze=o((()=>{vze(),yze=`https://app.lobehub.com`,gw=`https://lobehub.com`,bze=gw,xze=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},_w=`https://github.com/lobehub/lobehub`,hw(_w,`issues/new/choose`),vw=hw(gw,`/docs`),Sze=hw(vw,`/usage`),Cze=hw(vw,`/self-hosting`),hw(Cze,`/server-database`),`${vw}`,hw(Sze,`/plugins/development`),hw(Cze,`/advanced/upstream-sync`),hw(gw,`blog`),hw(_w,`issues/new/choose`),hw(gw,`/privacy`),hw(gw,`/terms`),wze=`https://github.com/lobehub/lobe-chat-agents`,hw(wze,`issues/new`),Tze=(e,t)=>`/agent/${e}`,Eze=(e,t,n)=>hw(`/agent`,e,t),Dze=(e,t)=>hw(`/group`,e,t),hw(_w,`releases`),hw(gw,`changelog`),hw(gw,`/downloads`),hw(gw,`/mobile`)})),kze=o((()=>{Oze()})),Aze=o((()=>{kze()})),jze=o((()=>{})),Mze,yw,Nze,Pze,Fze=o((()=>{Mze=e=>e.join(`+`),yw={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},Nze=[{electronAccelerator:`Alt+Shift+Space`,id:yw.QuickComposer,uiKeys:Mze([`alt`,`shift`,`space`])},{electronAccelerator:``,id:yw.QuickChat,uiKeys:``},{electronAccelerator:``,id:yw.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:yw.OpenSettings,nonEditable:!0,uiKeys:Mze([`mod`,`comma`])}],Pze=Nze.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),Nze.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),Ize=o((()=>{Fze(),Pze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),Lze,Rze,zze,Bze=o((()=>{wC(),Lze={},Rze=LAe,zze=`/avatars/lobe-ai.png`})),bw=o((()=>{wC()})),Vze,Hze,Uze,Wze,Gze=o((()=>{wC(),Bze(),bw(),Vze={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},Hze={model:SC,provider:CC},Uze={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:Hze,searchMode:`auto`,selfIteration:{enabled:!1}},Wze={chatConfig:Uze,model:SC,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:CC,systemRole:``,tts:Vze}})),Kze=o((()=>{})),qze=o((()=>{})),Jze,Yze,Xze,Zze,Qze,$ze,eBe,tBe,nBe,rBe,iBe,aBe,oBe,sBe,cBe,lBe,uBe,dBe=o((()=>{Jze=`@lobehub/lobehub`,Yze=`2.3.4`,Xze=`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.`,Zze=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],Qze=`https://github.com/lobehub/lobehub`,$ze={url:`https://github.com/lobehub/lobehub/issues/new/choose`},eBe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},tBe=`LobeHub <i@lobehub.com>`,nBe=[`./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`],rBe=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],iBe={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`},aBe={"@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`},oBe=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.16.1","@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"}`),sBe={"@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`},cBe=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,lBe={access:`public`,registry:`https://registry.npmjs.org`},uBe={name:Jze,version:Yze,description:Xze,keywords:Zze,homepage:Qze,bugs:$ze,repository:eBe,license:`MIT`,author:tBe,sideEffects:nBe,workspaces:rBe,scripts:iBe,"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:aBe,dependencies:oBe,devDependencies:sBe,packageManager:cBe,publishConfig:lBe}})),xw,Sw,Cw=o((()=>{wC(),dBe(),xw=uBe.version,Sw=xC!==`LobeHub`})),ww,Tw,Ew,Dw,Ow,fBe,pBe=o((()=>{Cw(),ww=e=>e.join(`+`),Tw={Alt:`alt`,Backquote:`backquote`,Backslash:`backslash`,Backspace:`backspace`,BracketLeft:`bracketleft`,BracketRight:`bracketright`,Comma:`comma`,Ctrl:`ctrl`,Down:`down`,Enter:`enter`,Equal:`equal`,Esc:`esc`,Left:`left`,LeftClick:`left-click`,LeftDoubleClick:`left-double-click`,Meta:`meta`,MiddleClick:`middle-click`,Minus:`minus`,Mod:`mod`,Number:`1-9`,Period:`period`,Plus:`equal`,QuestionMark:`slash`,Quote:`quote`,Right:`right`,RightClick:`right-click`,RightDoubleClick:`right-double-click`,Semicolon:`semicolon`,Shift:`shift`,Slash:`slash`,Space:`space`,Tab:`tab`,Up:`up`,Zero:`0`},Ew={CommandPalette:`commandPalette`,DeleteAndRegenerateMessage:`deleteAndRegenerateMessage`,DeleteLastMessage:`deleteLastMessage`,EditMessage:`editMessage`,FindInTopic:`findInTopic`,NavigateToChat:`navigateToChat`,NextTab:`nextTab`,OpenChatSettings:`openChatSettings`,PrevTab:`prevTab`,OpenHotkeyHelper:`openHotkeyHelper`,OpenTaskFilter:`openTaskFilter`,RegenerateMessage:`regenerateMessage`,SaveDocument:`saveDocument`,SaveTopic:`saveTopic`,Search:`search`,ShowApp:`showApp`,SwitchAgent:`switchAgent`,SwitchTab:`switchTab`,ToggleFavorite:`toggleFavorite`,ToggleLeftPanel:`toggleLeftPanel`,ToggleRightPanel:`toggleRightPanel`,ToggleTerminalPanel:`toggleTerminalPanel`},Dw={Conversation:`conversation`,Essential:`essential`},Ow={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},fBe=[{group:Dw.Essential,id:Ew.CommandPalette,keys:ww([Tw.Mod,`k`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.Search,keys:ww([Tw.Mod,`j`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.SwitchAgent,keys:ww([Tw.Ctrl,Tw.Number]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.SwitchTab,keys:ww([Tw.Mod,Tw.Number]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.NextTab,keys:ww([Tw.Ctrl,Tw.Tab]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.PrevTab,keys:ww([Tw.Ctrl,Tw.Shift,Tw.Tab]),nonEditable:!0,scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.NavigateToChat,keys:ww([Tw.Ctrl,Tw.Shift,Tw.Backquote]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleLeftPanel,keys:ww([Tw.Mod,Tw.BracketLeft]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleRightPanel,keys:ww([Tw.Mod,Tw.BracketRight]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.OpenHotkeyHelper,keys:ww([Tw.Ctrl,Tw.Shift,Tw.QuestionMark]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.ToggleFavorite,keys:ww([Tw.Alt,`f`]),scopes:[Ow.Global]},{group:Dw.Essential,id:Ew.OpenTaskFilter,keys:`f`,scopes:[Ow.Global]},{group:Dw.Conversation,id:Ew.FindInTopic,keys:ww([Tw.Mod,`f`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.ToggleTerminalPanel,keys:ww([Tw.Ctrl,Tw.Backquote]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.OpenChatSettings,keys:ww([Tw.Alt,Tw.Comma]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.RegenerateMessage,keys:ww([Tw.Alt,`r`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.DeleteLastMessage,keys:ww([Tw.Alt,`d`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.DeleteAndRegenerateMessage,keys:ww([Tw.Alt,Tw.Shift,`r`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.SaveTopic,keys:ww([Tw.Alt,`n`]),scopes:[Ow.Chat]},{group:Dw.Conversation,id:Ew.EditMessage,keys:ww([Tw.Alt,Tw.LeftDoubleClick]),nonEditable:!0,scopes:[Ow.Chat]},{group:Dw.Essential,id:Ew.SaveDocument,keys:ww([Tw.Mod,`s`]),scopes:[Ow.Files]}]})),mBe=o((()=>{pBe(),fBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),hBe=o((()=>{})),gBe=o((()=>{wC(),bw()})),_Be=o((()=>{})),vBe=o((()=>{})),yBe,kw,bBe=o((()=>{wC(),gBe(),bw(),yBe={model:SC,provider:CC},kw={model:XAe,provider:ZAe},kw.model,kw.provider,kw.model,kw.provider,kw.model,kw.provider,{...yBe},Reflect.get(_je,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(_je,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),xBe=o((()=>{})),SBe=o((()=>{})),Aw=o((()=>{Gze(),Kze(),qze(),mBe(),hBe(),gBe(),bw(),_Be(),vBe(),bBe(),xBe(),SBe()})),CBe=o((()=>{Aw(),new Date().toISOString()})),wBe=o((()=>{})),TBe=o((()=>{Object.freeze([])})),EBe=o((()=>{})),DBe,OBe,kBe,ABe=o((()=>{DBe=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],OBe=2*1024*1024*1024-1,`${OBe}`,kBe=64*1024*1024,`${kBe}`,[...DBe]})),jBe,MBe=o((()=>{wC(),`${xC}`,jBe=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(jBe)})),NBe,PBe=o((()=>{NBe=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(NBe)})),FBe=o((()=>{})),IBe=o((()=>{})),LBe=o((()=>{})),RBe=o((()=>{})),zBe=o((()=>{})),BBe=o((()=>{})),VBe,HBe=o((()=>{ac(),VBe=(e,t)=>os({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),UBe,WBe,GBe=o((()=>{Bze(),Aw(),HBe(),UBe=`agent`,WBe={config:Wze,createdAt:new Date,id:``,meta:Lze,model:Wze.model,type:UBe,updatedAt:new Date},VBe(WBe,{id:`inbox`,meta:{avatar:zze}})})),KBe=o((()=>{})),qBe=o((()=>{})),JBe=o((()=>{})),YBe=o((()=>{})),XBe=o((()=>{})),ZBe=o((()=>{})),QBe=o((()=>{})),$Be=o((()=>{})),eVe,tVe,nVe=o((()=>{wC(),Aw(),eVe={activities:3,contexts:0,experiences:0,preferences:3},tVe={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...eVe}},tVe.high.contexts})),rVe=o((()=>{})),iVe=o((()=>{})),jw=o((()=>{rxe(),axe(),oxe(),mxe(),lze(),dze(),fze(),pze(),Aze(),jze(),Ize(),Fze(),CBe(),wBe(),TBe(),EBe(),ABe(),MBe(),PBe(),FBe(),IBe(),kze(),LBe(),Bze(),RBe(),zBe(),BBe(),GBe(),Aw(),KBe(),qBe(),JBe(),YBe(),XBe(),ZBe(),QBe(),Oze(),$Be(),nVe(),Cw(),rVe(),iVe()}));jw();var Mw=[[`LobeHub Cloud`,IAe,`LobeHub Cloud`],[`LobeHub`,xC,`LobeHub`],[`LobeChat`,xC,`LobeHub`],[`Lobe AI`,Rze,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),aVe=new Map(Mw),oVe=`Lobe`,sVe=Mw.length?RegExp(`(?<!@)(${Mw.map(([e])=>e).join(`|`)})`,`g`):void 0,cVe=Mw.length>0,lVe=`brandStrings`,uVe=e=>!sVe||!e.includes(oVe)?e:e.replaceAll(sVe,e=>aVe.get(e)??e),dVe={name:lVe,process:e=>typeof e==`string`?uVe(e):e,type:`postProcessor`},fVe=cVe?{postProcess:[lVe]}:{},pVe=e=>cVe?e.use(dVe):e,mVe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},hVe=c({default:()=>gVe}),gVe,_Ve=o((()=>{gVe={"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":`Run agy in a terminal to sign in, then refresh.`,"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
@@ -10016,6 +10016,8 @@ var init_files = __esmMin((() => {
10016
10016
  FileSource["Acceptance"] = "acceptance";
10017
10017
  /** Original upload owned by an agent's document tree rather than the resource library. */
10018
10018
  FileSource["AgentDocument"] = "agent-document";
10019
+ /** A file in an artboard's folder; counted toward storage, owned by the artboard. */
10020
+ FileSource["Artboard"] = "artboard";
10019
10021
  FileSource["Canvas"] = "canvas";
10020
10022
  /** Attachment sent in a public agent's conversation; shared with the conversation, not the library. */
10021
10023
  FileSource["ChatAttachment"] = "chat-attachment";
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.154" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.156" "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.154",
3
+ "version": "0.0.156",
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": "861773018cf365ba16d0e179b2d944eb01d0f430"
86
+ "gitHead": "f2027f536547c63f6a188effc79d2bcb48c0d90d"
87
87
  }