@lichao0223/lobehub-cli 0.0.95 → 0.0.97

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=ix,c=!Cx.jitless,l=c&&BSe.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?Rwe([],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)}}),ITe=yx(`$ZodUnion`,(e,t)=>{zx.init(e,t),gx(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),gx(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),gx(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)))}),gx(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=>iSe(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=>zwe(t,r,e,i)):zwe(o,r,e,i)}}),LTe=yx(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,ITe.init(e,t);let n=e._zod.parse;gx(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)||ex(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=sSe(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=$b(()=>Bwe(t));e._zod.parse=(i,a)=>{let o=i.value;if(!ix(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)}}),RTe=yx(`$ZodIntersection`,(e,t)=>{zx.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Hwe(e,t,n)):Hwe(e,i,a)}}),zTe=yx(`$ZodRecord`,(e,t)=>{zx.init(e,t);let n=Cx.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!ax(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=>px(e,i,bx())),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(...dx(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...dx(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`&&jx.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=>px(e,i,bx())),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(...dx(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...dx(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}}),BTe=yx(`$ZodEnum`,(e,t)=>{zx.init(e,t);let n=eSe(t.entries),r=new Set(n);e._zod.values=r,gx(e,`pattern`,e=>{let t=eSe(e.def.entries).filter(e=>VSe.has(typeof e));return RegExp(t.length?`^(${t.map(e=>ox(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}}),VTe=yx(`$ZodLiteral`,(e,t)=>{zx.init(e,t);let n=new Set(t.values);e._zod.values=n,gx(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?ox(e):e?ox(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}}),HTe=yx(`$ZodTransform`,(e,t)=>{zx.init(e,t),e._zod.optin=`optional`,Cx.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ZSe(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 Sx;return n.value=i,n}}),UTe=yx(`$ZodOptional`,(e,t)=>{zx.init(e,t),gx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,gx(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),gx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${iSe(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=>Uwe(e,t)):Uwe(e,r)}return t.innerType._zod.run(e,n)}}),WTe=yx(`$ZodExactOptional`,(e,t)=>{UTe.init(e,t),gx(e,`values`,e=>e.def.innerType._zod.values),gx(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),GTe=yx(`$ZodNullable`,(e,t)=>{zx.init(e,t),gx(e,`optin`,e=>e.def.innerType._zod.optin),gx(e,`optout`,e=>e.def.innerType._zod.optout),gx(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${iSe(t.source)}|null)$`):void 0}),gx(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)}),KTe=yx(`$ZodDefault`,(e,t)=>{zx.init(e,t),e._zod.optin=`defaulted`,gx(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=>Wwe(e,t)):Wwe(r,t)}}),qTe=yx(`$ZodPrefault`,(e,t)=>{zx.init(e,t),e._zod.optin=`defaulted`,gx(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))}),JTe=yx(`$ZodNonOptional`,(e,t)=>{zx.init(e,t),gx(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=>Gwe(t,e)):Gwe(i,e)}}),YTe=yx(`$ZodCatch`,(e,t)=>{zx.init(e,t),gx(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),gx(e,`optout`,e=>e.def.innerType._zod.optout),gx(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=>Kwe(e,r,t,n)):Kwe(e,r,t,n)}}),XTe=yx(`$ZodPipe`,(e,t)=>{zx.init(e,t),gx(e,`values`,e=>e.def.in._zod.values),gx(e,`optin`,e=>e.def.in._zod.optin),gx(e,`optout`,e=>e.def.out._zod.optout),gx(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=>Rx(e,t.in,n)):Rx(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Rx(e,t.out,n)):Rx(r,t.out,n)}}),ZTe=yx(`$ZodPreprocess`,(e,t)=>{XTe.init(e,t)}),QTe=yx(`$ZodReadonly`,(e,t)=>{zx.init(e,t),gx(e,`propValues`,e=>e.def.innerType._zod.propValues),gx(e,`values`,e=>e.def.innerType._zod.values),gx(e,`optin`,e=>e.def.innerType?._zod?.optin),gx(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(qwe):qwe(r)}}),$Te=yx(`$ZodLazy`,(e,t)=>{zx.init(e,t),oSe(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),gx(e,`pattern`,e=>e.innerType?._zod?.pattern),gx(e,`propValues`,e=>e.innerType?._zod?.propValues),gx(e,`optin`,e=>e.innerType?._zod?.optin??void 0),gx(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),eEe=yx(`$ZodCustom`,(e,t)=>{Nx.init(e,t),zx.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=>Jwe(t,n,r,e));Jwe(i,n,r,e)}})}));function nEe(e){return typeof e==`object`&&!!e}function rEe(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function Ux(e,t,n){let r=uEe.get(e);if(r!==void 0)return r?qx:Gx;if(t.has(e))return qx;t.add(e);let i=Gx,a=e=>{if(i!==qx&&e?._zod){let r=Ux(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=Gx;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?Kx:o.value?._zod?Ux(o.value,t,n):Gx;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=sSe(c);s(e?o(e,!0):Kx),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?Ux(r,t,!1):Kx);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),iEe(e,i)}function iEe(e,t){return t!==Kx&&uEe.set(e,t===qx),t}function aEe(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function oEe(){return dEe}function sEe(e,t){let n=e[Wx]?.backEdges;return n!==void 0&&nEe(t)&&n.has(t)}var cEe,Wx,lEe,uEe,Gx,Kx,qx,Jx,Yx,dEe,fEe=o((()=>{vx(),cEe=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},Wx=`~memo`,lEe=[],uEe=new WeakMap,Gx=0,Kx=1,qx=2,Yx=[],dEe={alloc(e,t,n){let r=Jx;if(!r)return n;Jx=void 0;let i={value:n,issues:null};return r.set(t.value,i),Yx.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`&&sEe(n,e.value))throw new cEe;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=Ux(e,new Set,!1);if(i===Gx)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===qx||r?n=!0:r=!0}let l=s.value;if(!nEe(l))return t(s,c);let u=c[Wx];u||(u={buckets:new WeakMap,backEdges:void 0},c[Wx]=u);let d;i===c?d=a:(d=aEe(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(...rEe(f.issues)):(s.memo=!0,u.backEdges??=new WeakSet,u.backEdges.add(f.value)),s;Jx=d;let p=Yx.length,m=t(s,c);Jx=void 0;let h=Yx.length>p?Yx.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?rEe(e.issues):lEe),e)):(h&&(h.issues=m.issues.length?rEe(m.issues):lEe),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}}}));function pEe(){return{localeError:mEe()}}var mEe,hEe=o((()=>{vx(),mEe=()=>{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(kSe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${mSe(e.values[0])}`:`Invalid option: expected one of ${tSe(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`:``}: ${tSe(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 gEe(){return new vEe}var _Ee,vEe,Xx,yEe=o((()=>{vEe=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)}},(_Ee=globalThis).__zod_globalRegistry??(_Ee.__zod_globalRegistry=gEe()),Xx=globalThis.__zod_globalRegistry})),bEe=o((()=>{}));function xEe(e){return e.checks&&=[...e.checks],e}function SEe(e,t){return new e(xEe({type:`string`,...cx(t)}))}function CEe(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...cx(t)})}function wEe(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...cx(t)})}function TEe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...cx(t)})}function EEe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...cx(t)})}function DEe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...cx(t)})}function OEe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...cx(t)})}function kEe(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...cx(t)})}function AEe(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...cx(t)})}function jEe(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...cx(t)})}function MEe(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...cx(t)})}function NEe(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...cx(t)})}function PEe(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...cx(t)})}function FEe(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...cx(t)})}function IEe(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...cx(t)})}function LEe(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...cx(t)})}function REe(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...cx(t)})}function zEe(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...cx(t)})}function BEe(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...cx(t)})}function VEe(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...cx(t)})}function HEe(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...cx(t)})}function UEe(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...cx(t)})}function WEe(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...cx(t)})}function GEe(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...cx(t)})}function KEe(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...cx(t)})}function qEe(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...cx(t)})}function JEe(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...cx(t)})}function YEe(e,t){return new e(xEe({type:`number`,checks:[],...cx(t)}))}function XEe(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...cx(t)})}function ZEe(e,t){return new e({type:`boolean`,...cx(t)})}function QEe(e,t){return new e({type:`undefined`,...cx(t)})}function $Ee(e,t){return new e({type:`null`,...cx(t)})}function eDe(e){return new e({type:`any`})}function tDe(e){return new e({type:`unknown`})}function nDe(e,t){return new e({type:`never`,...cx(t)})}function rDe(e,t){return new e({type:`date`,coerce:!0,...cx(t)})}function iDe(e,t){return new rwe({check:`less_than`,...cx(t),value:e,inclusive:!1})}function Zx(e,t){return new rwe({check:`less_than`,...cx(t),value:e,inclusive:!0})}function aDe(e,t){return new iwe({check:`greater_than`,...cx(t),value:e,inclusive:!1})}function Qx(e,t){return new iwe({check:`greater_than`,...cx(t),value:e,inclusive:!0})}function oDe(e,t){return new awe({check:`multiple_of`,...cx(t),value:e})}function sDe(e,t){return new swe({check:`max_length`,...cx(t),maximum:e})}function $x(e,t){return new cwe({check:`min_length`,...cx(t),minimum:e})}function cDe(e,t){return new lwe({check:`length_equals`,...cx(t),length:e})}function lDe(e,t){return new uwe({check:`string_format`,format:`regex`,...cx(t),pattern:e})}function uDe(e){return new dwe({check:`string_format`,format:`lowercase`,...cx(e)})}function dDe(e){return new fwe({check:`string_format`,format:`uppercase`,...cx(e)})}function fDe(e,t){return new pwe({check:`string_format`,format:`includes`,...cx(t),includes:e})}function pDe(e,t){return new mwe({check:`string_format`,format:`starts_with`,...cx(t),prefix:e})}function mDe(e,t){return new hwe({check:`string_format`,format:`ends_with`,...cx(t),suffix:e})}function eS(e){return new gwe({check:`overwrite`,tx:e})}function hDe(e){return eS(t=>t.normalize(e))}function gDe(){return eS(e=>e.trim())}function _De(){return eS(e=>e.toLowerCase())}function vDe(){return eS(e=>e.toUpperCase())}function yDe(){return eS(e=>fSe(e))}function bDe(e,t,n){return new e({type:`array`,element:t,...cx(n)})}function xDe(e,t,n){let r=cx(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function SDe(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...cx(n)})}function CDe(e,t){let n=wDe(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(mx(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(mx(r))}},e(t.value,t)),t);return n}function wDe(e,t){let n=new Nx({check:`custom`,...cx(t)});return n._zod.check=e,n}var TDe=o((()=>{_we(),vx()}));function tS(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&ex(e,t,n[t]);return e}function EDe(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??Xx,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 nS(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 rS(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,rS(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&tS(o.schema,c),t.io===`input`&&iS(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 DDe(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function ODe(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}/${DDe(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+DDe(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 kDe(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;kDe(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 ADe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function jDe(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!PDe.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]??ADe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}ex(n,r,e.length===1?e[0]:jDe(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=ADe(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 MDe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of PDe)if(t in e)return;let n=t.filter(e=>FDe.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=jDe(t);else{let e=n[0],i=FDe.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=>jDe([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,tS(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)):tS(i,s),tS(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())kDe(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)??[])MDe(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}tS(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,ex(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:aS(t,`input`,e.processors),output:aS(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function iS(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 iS(r.element,n);if(r.type===`set`)return iS(r.valueType,n);if(r.type===`lazy`)return iS(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 iS(r.innerType,n);if(r.type===`intersection`)return iS(r.left,n)||iS(r.right,n);if(r.type===`record`||r.type===`map`)return iS(r.keyType,n)||iS(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:iS(r.in,n)||iS(r.out,n);if(r.type===`object`){for(let e in r.shape)if(iS(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(iS(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(iS(e,n))return!0;return!!(r.rest&&iS(r.rest,n))}return!1}var PDe,FDe,IDe,aS,oS=o((()=>{yEe(),vx(),PDe=new Set([`type`,`properties`,`required`,`additionalProperties`]),FDe=[`oneOf`,`anyOf`],IDe=(e,t={})=>n=>{let r=EDe({...n,processors:t});return rS(e,r),ODe(r,e),NDe(r,e)},aS=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=EDe({...i??{},target:a,io:t,processors:n});return rS(e,o),ODe(o,e),NDe(o,e)}}));function sS(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)JDe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&lS(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&lS(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&uS(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&uS(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&VDe(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&UDe(t,i.mime);for(let e of i.patterns??[])HDe(t,e);return t}function cS(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?cS(t.out):t.type===`catch`?cS(t.innerType):e._zod.optin}function LDe(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=LDe(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>LDe(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?jx:ZCe).source),p):p}function RDe(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 dS.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=LDe(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}function zDe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(nS(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),fS):JSON.parse(o)}var lS,uS,BDe,VDe,HDe,UDe,WDe,GDe,KDe,qDe,JDe,YDe,XDe,ZDe,QDe,$De,eOe,tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,uOe,dOe,fOe,pOe,mOe,dS,hOe,gOe,_Oe,fS,vOe,yOe,bOe,xOe,SOe,COe,wOe,TOe=o((()=>{Mx(),tEe(),oS(),vx(),lS=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},uS=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},BDe=(e,t)=>{lS(e,`minimum`,t),uS(e,`maximum`,t)},VDe=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},HDe=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},UDe=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},WDe=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},GDe=(e,t)=>lS(e,`minimum`,t.minimum),KDe=(e,t)=>uS(e,`maximum`,t.maximum),qDe=e=>(t,n)=>{WDe(t,n.format);let[r,i]=e[n.format];lS(t,`minimum`,r),uS(t,`maximum`,i)},JDe={greater_than:(e,t)=>lS(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>uS(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>VDe(e,t.value),number_format:qDe(HSe),bigint_format:qDe(USe),min_length:GDe,max_length:KDe,length_equals:(e,t)=>BDe(e,t.length),min_size:GDe,max_size:KDe,size_equals:(e,t)=>BDe(e,t.size),string_format:(e,t)=>{WDe(e,t.format),t.pattern&&HDe(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)=>UDe(e,t.mime)},YDe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},XDe=new Map([[_Te,WCe],[Hx,GCe]]),ZDe=e=>XDe.get(e)??e,QDe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=sS(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=YDe[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(ZDe);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}))])}},$De=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=sS(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)):nS(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}))])}},eOe=(e,t,n,r)=>{n.type=`boolean`},tOe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},nOe=(e,t,n,r)=>{nS(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},rOe=(e,t,n,r)=>{n.not={}},iOe=(e,t,n,r)=>{},aOe=(e,t,n,r)=>{},oOe=(e,t,n,r)=>{nS(e,t,n,r,`Date cannot be represented in JSON Schema`)},sOe=(e,t,n,r)=>{let i=e._zod.def,a=eSe(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},cOe=(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(nS(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(nS(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},lOe=(e,t,n,r)=>{nS(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},uOe=(e,t,n,r)=>{nS(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},dOe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=sS(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=rS(a.element,t,{...r,path:[...r.path,`items`]})},fOe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&nS(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)ex(i.properties,e,rS(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`?cS(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=rS(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},pOe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>rS(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},mOe=(e,t,n,r)=>{let i=e._zod.def,a=rS(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=rS(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)},dS=new WeakMap,hOe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=sS(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=rS(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)ex(i.patternProperties,ZDe(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=rS(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=dS.get(t);n||(n=[],dS.set(t,n),t.deferred.push(()=>RDe(t))),n.push(e)}i.additionalProperties=rS(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&cS(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))}},gOe=(e,t,n,r)=>{let i=e._zod.def,a=rS(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`}]},_Oe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},fS=Symbol(),vOe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=zDe(i.defaultValue,e,t,n,r);o!==fS&&(n.default=o)},yOe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=zDe(i.defaultValue,e,t,n,r);o!==fS&&(n._prefault=o)},bOe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{nS(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},xOe=(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;rS(o,t,r);let s=t.seen.get(e);s.ref=o},SOe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},COe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},wOe=(e,t,n,r)=>{let i=e._zod.innerType;rS(i,t,r);let a=t.seen.get(e);a.ref=i}})),pS=o((()=>{wx(),SCe(),sCe(),tEe(),fEe(),_we(),xwe(),vx(),Mx(),hEe(),yEe(),ywe(),bEe(),TDe(),oS(),TOe(),oS()})),EOe=o((()=>{pS()}));function mS(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 DOe,OOe,hS,kOe=o((()=>{pS(),vx(),DOe=new WeakSet([Object.prototype,Error.prototype]),OOe=(e,t)=>{oCe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);DOe.has(n)||(DOe.add(n),mS(n,`format`,e=>t=>nCe(e,t)),mS(n,`flatten`,e=>t=>tCe(e,t)),mS(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,nSe,2)}),mS(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,nSe,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},hS=yx(`ZodError`,OOe,void 0,{Parent:Error})})),AOe,jOe,MOe,NOe,POe,FOe,IOe,LOe,ROe,zOe,BOe,VOe,HOe=o((()=>{pS(),kOe(),AOe=Dx(hS),jOe=Ox(hS),MOe=kx(hS),NOe=Ax(hS),POe=mCe(hS),FOe=hCe(hS),IOe=gCe(hS),LOe=_Ce(hS),ROe=vCe(hS),zOe=yCe(hS),BOe=bCe(hS),VOe=xCe(hS)}));function UOe(){Cx.localeError||bx(pEe())}function gS(){Cx.memoizer||bx({memoizer:oEe()})}function V(e){return SEe(uke,e)}function _S(e){return YEe(Nke,e)}function WOe(e){return XEe(Pke,e)}function vS(e){return ZEe(Fke,e)}function GOe(e){return QEe(Ike,e)}function KOe(e){return $Ee(Lke,e)}function yS(){return eDe(Rke)}function bS(){return tDe(zke)}function qOe(e){return nDe(Bke,e)}function xS(e,t){return bDe(Hke,e,t)}function SS(e,t){return new Uke({type:`object`,shape:e??{},...cx(t)})}function JOe(e,t){return new Uke({type:`object`,shape:e,catchall:qOe(),...cx(t)})}function CS(e,t){return new Wke({type:`union`,options:e,...cx(t)})}function wS(e,t,n){return new Gke({type:`union`,options:t,discriminator:e,...cx(n)})}function YOe(e,t){return new Kke({type:`intersection`,left:e,right:t})}function TS(e,t,n){return!t||!t._zod?new qke({type:`record`,keyType:V(),valueType:e,...cx(t)}):new qke({type:`record`,keyType:e,valueType:t,...cx(n)})}function ES(e,t){return new PS({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...cx(t)})}function DS(e,t){return new PS({type:`enum`,entries:e,...cx(t)})}function OS(e,t){return new Jke({type:`literal`,values:Array.isArray(e)?e:[e],...cx(t)})}function XOe(e){return new Yke({type:`transform`,transform:e})}function ZOe(e){return new Xke({type:`optional`,innerType:e})}function QOe(e){return new Zke({type:`optional`,innerType:e})}function $Oe(e){return new Qke({type:`nullable`,innerType:e})}function eke(e,t){return new $ke({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():pSe(t)}})}function tke(e,t){return new eAe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():pSe(t)}})}function nke(e,t){return new tAe({type:`nonoptional`,innerType:e,...cx(t)})}function rke(e,t){return new nAe({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:ISe(t)})}function ike(e,t){return new rAe({type:`pipe`,in:e,out:t})}function ake(e){return new aAe({type:`readonly`,innerType:e})}function oke(e){return new oAe({type:`lazy`,getter:e})}function kS(e,t){return xDe(sAe,e??(()=>!0),t)}function ske(e,t={}){return SDe(sAe,e,t)}function cke(e,t){return CDe(e,t)}function AS(e,t){return new iAe({type:`pipe`,in:XOe(e),out:t})}var jS,lke,uke,MS,dke,fke,pke,mke,hke,gke,NS,_ke,vke,yke,bke,xke,Ske,Cke,wke,Tke,Eke,Dke,Oke,kke,Ake,jke,Mke,Nke,Pke,Fke,Ike,Lke,Rke,zke,Bke,Vke,Hke,Uke,Wke,Gke,Kke,qke,PS,Jke,Yke,Xke,Zke,Qke,$ke,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,FS=o((()=>{pS(),TOe(),oS(),hEe(),EOe(),HOe(),jS=yx(`ZodType`,(e,t)=>(UOe(),zx.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(rx(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 sx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(ske(e,t))},superRefine(e,t){return this.check(cke(e,t))},overwrite(e){return this.check(eS(e))},optional(){return ZOe(this)},exactOptional(){return QOe(this)},nullable(){return $Oe(this)},nullish(){return ZOe($Oe(this))},nonoptional(e){return nke(this,e)},array(){return xS(this)},or(e){return CS([this,e])},and(e){return YOe(this,e)},transform(e){return ike(this,XOe(e))},default(e){return eke(this,e)},prefault(e){return tke(this,e)},catch(e){return rke(this,e)},pipe(e){return ike(this,e)},readonly(){return ake(this)},describe(e){let t=this.clone();return Xx.add(t,{description:e}),t},meta(...e){if(e.length===0)return Xx.get(this);let t=this.clone();return Xx.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 jSe(this,`~standard`,{...Cwe(this),jsonSchema:{input:aS(this,`input`),output:aS(this,`output`)}})},set"~standard"(e){hx(this,`~standard`,e)},parse:function e(t,n){return AOe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await jOe(this,t,n,{callee:e})},safeParse(e,t){return MOe(this,e,t)},async safeParseAsync(e,t){return NOe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){hx(this,`spa`,e)},validate(e,t){return fCe(this,e,t)},validateAsync(e,t){return pCe(this,e,t)},encode:function e(t,n){return POe(this,t,n,{callee:e})},decode:function e(t,n){return FOe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await IOe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await LOe(this,t,n,{callee:e})},safeEncode(e,t){return ROe(this,e,t)},safeDecode(e,t){return zOe(this,e,t)},async safeEncodeAsync(e,t){return BOe(this,e,t)},async safeDecodeAsync(e,t){return VOe(this,e,t)},toJSONSchema(e){return IDe(this,{})(e)},get description(){return Xx.get(this)?.description},get _def(){return this._zod.def}}),lke=yx(`_ZodString`,(e,t)=>{Bx.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QDe(e,t,n,r)},MSe({format:e=>sS(e).format??null,minLength:e=>sS(e).minimum??null,maxLength:e=>sS(e).maximum??null},{regex(...e){return this.check(lDe(...e))},includes(...e){return this.check(fDe(...e))},startsWith(...e){return this.check(pDe(...e))},endsWith(...e){return this.check(mDe(...e))},min(...e){return this.check($x(...e))},max(...e){return this.check(sDe(...e))},length(...e){return this.check(cDe(...e))},nonempty(...e){return this.check($x(1,...e))},lowercase(e){return this.check(uDe(e))},uppercase(e){return this.check(dDe(e))},trim(){return this.check(gDe())},normalize(...e){return this.check(hDe(...e))},toLowerCase(){return this.check(_De())},toUpperCase(){return this.check(vDe())},slugify(){return this.check(yDe())}})),uke=yx(`ZodString`,(e,t)=>{Bx.init(e,t),lke.init(e,t)},{email(e){return this.check(CEe(hke,e))},url(e){return this.check(kEe(_ke,e))},jwt(e){return this.check(WEe(Mke,e))},emoji(e){return this.check(AEe(vke,e))},guid(e){return this.check(wEe(gke,e))},uuid(e){return this.check(TEe(NS,e))},uuidv4(e){return this.check(EEe(NS,e))},uuidv6(e){return this.check(DEe(NS,e))},uuidv7(e){return this.check(OEe(NS,e))},nanoid(e){return this.check(jEe(yke,e))},cuid(e){return this.check(MEe(bke,e))},cuid2(e){return this.check(NEe(xke,e))},ulid(e){return this.check(PEe(Ske,e))},base64(e){return this.check(VEe(kke,e))},base64url(e){return this.check(HEe(Ake,e))},xid(e){return this.check(FEe(Cke,e))},ksuid(e){return this.check(IEe(wke,e))},ipv4(e){return this.check(LEe(Tke,e))},ipv6(e){return this.check(REe(Eke,e))},cidrv4(e){return this.check(zEe(Dke,e))},cidrv6(e){return this.check(BEe(Oke,e))},e164(e){return this.check(UEe(jke,e))},datetime(e){return this.check(GEe(dke,e))},date(e){return this.check(KEe(fke,e))},time(e){return this.check(qEe(pke,e))},duration(e){return this.check(JEe(mke,e))}}),MS=yx(`ZodStringFormat`,(e,t)=>{Vx.init(e,t),lke.init(e,t)}),dke=yx(`ZodISODateTime`,(e,t)=>{cTe.init(e,t),MS.init(e,t)}),fke=yx(`ZodISODate`,(e,t)=>{lTe.init(e,t),MS.init(e,t)}),pke=yx(`ZodISOTime`,(e,t)=>{uTe.init(e,t),MS.init(e,t)}),mke=yx(`ZodISODuration`,(e,t)=>{dTe.init(e,t),MS.init(e,t)}),hke=yx(`ZodEmail`,(e,t)=>{Qwe.init(e,t),MS.init(e,t)}),gke=yx(`ZodGUID`,(e,t)=>{Xwe.init(e,t),MS.init(e,t)}),NS=yx(`ZodUUID`,(e,t)=>{Zwe.init(e,t),MS.init(e,t)}),_ke=yx(`ZodURL`,(e,t)=>{eTe.init(e,t),MS.init(e,t)}),vke=yx(`ZodEmoji`,(e,t)=>{tTe.init(e,t),MS.init(e,t)}),yke=yx(`ZodNanoID`,(e,t)=>{nTe.init(e,t),MS.init(e,t)}),bke=yx(`ZodCUID`,(e,t)=>{rTe.init(e,t),MS.init(e,t)}),xke=yx(`ZodCUID2`,(e,t)=>{iTe.init(e,t),MS.init(e,t)}),Ske=yx(`ZodULID`,(e,t)=>{aTe.init(e,t),MS.init(e,t)}),Cke=yx(`ZodXID`,(e,t)=>{oTe.init(e,t),MS.init(e,t)}),wke=yx(`ZodKSUID`,(e,t)=>{sTe.init(e,t),MS.init(e,t)}),Tke=yx(`ZodIPv4`,(e,t)=>{fTe.init(e,t),MS.init(e,t)}),Eke=yx(`ZodIPv6`,(e,t)=>{mTe.init(e,t),MS.init(e,t)}),Dke=yx(`ZodCIDRv4`,(e,t)=>{hTe.init(e,t),MS.init(e,t)}),Oke=yx(`ZodCIDRv6`,(e,t)=>{gTe.init(e,t),MS.init(e,t)}),kke=yx(`ZodBase64`,(e,t)=>{vTe.init(e,t),MS.init(e,t)}),Ake=yx(`ZodBase64URL`,(e,t)=>{yTe.init(e,t),MS.init(e,t)}),jke=yx(`ZodE164`,(e,t)=>{bTe.init(e,t),MS.init(e,t)}),Mke=yx(`ZodJWT`,(e,t)=>{xTe.init(e,t),MS.init(e,t)}),Nke=yx(`ZodNumber`,(e,t)=>{STe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$De(e,t,n,r),e.isFinite=!0},MSe({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=sS(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=sS(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=sS(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>sS(e).format??null},{gt(e,t){return this.check(aDe(e,t))},gte(e,t){return this.check(Qx(e,t))},min(e,t){return this.check(Qx(e,t))},lt(e,t){return this.check(iDe(e,t))},lte(e,t){return this.check(Zx(e,t))},max(e,t){return this.check(Zx(e,t))},int(e){return this.check(WOe(e))},safe(e){return this.check(WOe(e))},positive(e){return this.check(aDe(0,e))},nonnegative(e){return this.check(Qx(0,e))},negative(e){return this.check(iDe(0,e))},nonpositive(e){return this.check(Zx(0,e))},multipleOf(e,t){return this.check(oDe(e,t))},step(e,t){return this.check(oDe(e,t))},finite(){return this}})),Pke=yx(`ZodNumberFormat`,(e,t)=>{CTe.init(e,t),Nke.init(e,t)}),Fke=yx(`ZodBoolean`,(e,t)=>{wTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eOe(e,t,n,r)}),Ike=yx(`ZodUndefined`,(e,t)=>{TTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nOe(e,t,n,r)}),Lke=yx(`ZodNull`,(e,t)=>{ETe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tOe(e,t,n,r)}),Rke=yx(`ZodAny`,(e,t)=>{DTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iOe(e,t,n,r)}),zke=yx(`ZodUnknown`,(e,t)=>{OTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aOe(e,t,n,r)}),Bke=yx(`ZodNever`,(e,t)=>{kTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rOe(e,t,n,r)}),Vke=yx(`ZodDate`,(e,t)=>{ATe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oOe(e,t,n,r),e.min=(t,n)=>e.check(Qx(t,n)),e.max=(t,n)=>e.check(Zx(t,n))},MSe({minDate:e=>{let{minimum:t}=sS(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=sS(e);return t?new Date(t):null}},{})),Hke=yx(`ZodArray`,(e,t)=>{gS(),MTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dOe(e,t,n,r),e.element=t.element},{min(e,t){return this.check($x(e,t))},nonempty(e){return this.check($x(1,e))},max(e,t){return this.check(sDe(e,t))},length(e,t){return this.check(cDe(e,t))},unwrap(){return this.element}}),Uke=yx(`ZodObject`,(e,t)=>{gS(),FTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fOe(e,t,n,r),FSe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return ES(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(rx(this._zod.def,{catchall:e}))},passthrough(){return this.clone(rx(this._zod.def,{catchall:bS()}))},loose(){return this.clone(rx(this._zod.def,{catchall:bS()}))},strict(){return this.clone(rx(this._zod.def,{catchall:qOe()}))},strip(){return this.clone(rx(this._zod.def,{catchall:void 0}))},extend(e){return vSe(this,e)},safeExtend(e){return bSe(this,e)},merge(e){return xSe(this,e)},pick(e){return gSe(this,e)},omit(e){return _Se(this,e)},partial(...e){return SSe(Xke,this,e[0])},exactPartial(...e){return SSe(Zke,this,e[0],`exactPartial`)},required(...e){return CSe(tAe,this,e[0])}}),Wke=yx(`ZodUnion`,(e,t)=>{ITe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pOe(e,t,n,r),e.options=t.options}),Gke=yx(`ZodDiscriminatedUnion`,(e,t)=>{Wke.init(e,t),LTe.init(e,t)}),Kke=yx(`ZodIntersection`,(e,t)=>{RTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mOe(e,t,n,r)}),qke=yx(`ZodRecord`,(e,t)=>{gS(),zTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hOe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),PS=yx(`ZodEnum`,(e,t)=>{BTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sOe(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 PS({...t,checks:[],...cx(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 PS({...t,checks:[],...cx(r),entries:i})}}),Jke=yx(`ZodLiteral`,(e,t)=>{VTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cOe(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]}})}),Yke=yx(`ZodTransform`,(e,t)=>{gS(),HTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uOe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ZSe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(mx(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(mx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),Xke=yx(`ZodOptional`,(e,t)=>{UTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>COe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Zke=yx(`ZodExactOptional`,(e,t)=>{WTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>COe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Qke=yx(`ZodNullable`,(e,t)=>{GTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),$ke=yx(`ZodDefault`,(e,t)=>{KTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),eAe=yx(`ZodPrefault`,(e,t)=>{qTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),tAe=yx(`ZodNonOptional`,(e,t)=>{JTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_Oe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),nAe=yx(`ZodCatch`,(e,t)=>{YTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),rAe=yx(`ZodPipe`,(e,t)=>{XTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xOe(e,t,n,r),e.in=t.in,e.out=t.out}),iAe=yx(`ZodPreprocess`,(e,t)=>{rAe.init(e,t),ZTe.init(e,t)}),aAe=yx(`ZodReadonly`,(e,t)=>{QTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),oAe=yx(`ZodLazy`,(e,t)=>{$Te.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wOe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),sAe=yx(`ZodCustom`,(e,t)=>{eEe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lOe(e,t,n,r)})})),cAe,lAe=o((()=>{pS(),cAe||={}}));function uAe(e){return GEe(dke,e)}var dAe=o((()=>{pS(),FS()}));function IS(e){return rDe(Vke,e)}var fAe=o((()=>{pS(),FS()})),pAe=o((()=>{pS(),FS(),EOe(),kOe(),HOe(),lAe(),TOe(),yEe(),vx(),EOe(),dAe(),FS(),tEe(),hEe(),fAe()})),LS=o((()=>{pAe(),pAe()})),RS,mAe,hAe,gAe,_Ae,vAe,yAe=o((()=>{LS(),RS=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],mAe=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:RS,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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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`}],hAe=mAe.map(({type:e})=>e),ES(hAe),gAe=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],_Ae=ES([...hAe,...gAe.map(({type:e})=>e)]),vAe=[{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`}]})),zS,bAe,BS,xAe,SAe,VS,CAe,wAe,TAe,EAe,DAe,OAe,kAe,AAe,jAe,MAe,NAe,PAe,FAe,IAe,LAe,RAe,zAe,BAe,VAe,HAe,UAe,WAe,GAe,KAe,qAe,JAe,YAe,XAe,ZAe,QAe,$Ae,HS,US,eje,WS,tje=o((()=>{$xe(),zS=`default`,bAe=[`low`,`medium`,`high`,`ultra`],BS=[`low`,`medium`,`high`,`xhigh`,`max`],xAe=[`low`,`medium`,`high`,`xhigh`],SAe=[`--effort`,`--reasoning-effort`],VS=[`low`,`medium`,`high`,`xhigh`],CAe=[...VS,`max`,`ultra`],wAe=`model_reasoning_effort`,TAe=[`low`,`high`,`max`],EAe=[`high`,`max`],DAe=[...VS,`max`],OAe=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],kAe=[`gpt-6-astra`,`gpt-5.6-luna`],AAe=[`low`,`medium`,`high`,`xhigh`,`max`],jAe=`--reasoning-effort`,MAe=[`low`,`medium`,`high`,`xhigh`,`max`],NAe=`--reasoning-effort`,PAe=`service_tier`,FAe=[`fast`,`priority`],IAe=e=>!!e&&bAe.includes(e),LAe=e=>!!e&&BS.includes(e),RAe=e=>!!e&&CAe.includes(e),zAe=e=>!!e&&xAe.includes(e),BAe=e=>!!e&&AAe.includes(e),VAe=e=>!!e&&MAe.includes(e),HAe=e=>!!e&&FAe.includes(e),UAe=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?TAe:e===`glm-5.2`?EAe:OAe.includes(e)?CAe:kAe.includes(e)?DAe:VS,WAe=e=>{let t=(Zb(e?.args,`--mode`)??e?.mode)?.trim();return IAe(t)?t:zS},GAe=[`-m`,`--model`],KAe=e=>{let t=(Zb(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:zS},qAe=e=>{let t=(Zb(e?.args,`--effort`)??e?.effort)?.trim();return LAe(t)?t:zS},JAe=e=>{let t=(qxe(e?.args,GAe)??Qb(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:zS},YAe=e=>{let t=(Qb(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return RAe(t)?t:zS},XAe=e=>{let t=(Qb(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Qb(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:HAe(t)?`fast`:zS},ZAe=e=>{let t=(qxe(e?.args,SAe)??e?.effort)?.trim();return zAe(t)?t:zS},QAe=e=>{let t=(Zb(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return BAe(t)?t:zS},$Ae=e=>{let t=(Zb(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return VAe(t)?t:zS},HS=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:zS},US={flags:[`-m`,`--model`],kind:`flag`},eje={antigravity:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:HS,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:bAe,resolve:WAe}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>BS,resolve:qAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:KAe,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>BS,resolve:qAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:KAe,source:`catalog`}},codex:{effort:{encodings:[{key:wAe,kind:`config`}],levels:UAe,resolve:YAe},model:{encodings:[US,{key:`model`,kind:`config`}],resolve:JAe,source:`catalog`},speed:{encodings:[{key:PAe,kind:`config`}],resolve:XAe}},copilot:{effort:{encodings:[{flags:[NAe],kind:`flag`}],levels:()=>MAe,resolve:$Ae},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:HS,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:HS,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:HS,source:`catalog`}},droid:{model:{encodings:[],resolve:HS,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:HS,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:SAe,kind:`flag`}],levels:()=>xAe,resolve:ZAe},model:{encodings:[US],resolve:HS,source:`catalog`}},"kimi-code":{model:{encodings:[US],resolve:HS,source:`catalog`}},opencode:{model:{encodings:[US],resolve:HS,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:HS,source:`catalog`}},qoder:{effort:{encodings:[{flags:[jAe],kind:`flag`}],levels:()=>AAe,resolve:QAe},model:{encodings:[US],resolve:HS,source:`catalog`}},trae:{model:{encodings:[],resolve:HS,source:`catalog`}}},WS=e=>eje[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),WS(`copilot`),WS(`grok-build`),WS(`kimi-code`),WS(`opencode`),WS(`pi`),WS(`qoder`)})),nje=o((()=>{})),rje=o((()=>{yAe(),nje(),new Set([...mAe.map(({type:e})=>e),...gAe.map(({type:e})=>e),...vAe.map(({type:e})=>e)])})),ije=o((()=>{})),aje=o((()=>{})),oje,sje,cje,lje,uje=o((()=>{LS(),oje=SS({workingDirectory:V().optional()}),sje=SS({memory:SS({effort:ES([`low`,`medium`,`high`]).optional(),enabled:vS().optional(),toolPermission:ES([`read-only`,`read-write`]).optional()}).optional()}),cje=SS({selfIteration:SS({enabled:vS().optional()}).optional()}),lje=SS({codexMaxReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:ES([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:ES([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:ES([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:vS().optional(),disableGatewayMode:vS().optional(),effort:ES([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:vS().optional(),enableAgentMode:vS().optional(),toolMode:ES([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:vS().optional(),enableCompressHistory:vS().optional(),enableContextCompression:vS().optional(),enableFollowUpChips:vS().optional(),enableHistoryCount:vS().optional(),enableMaxTokens:vS().optional(),enableReasoning:vS().optional(),enableReasoningEffort:vS().optional(),enableStreaming:vS().optional(),enableStaleToolResultTrim:vS().optional(),gpt5ReasoningEffort:ES([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:ES([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:ES([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:ES([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:ES([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:ES([`high`,`max`]).optional(),glm5_3ReasoningEffort:ES([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:ES([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:ES([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:ES([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:ES([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:ES([`high`,`xhigh`]).optional(),historyCount:_S().optional(),imageAspectRatio:V().optional(),imageAspectRatio2:V().optional(),imageResolution:ES([`1K`,`2K`,`4K`]).optional(),imageResolution2:ES([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:ES([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:oje.optional(),preserveThinking:vS().optional(),reasoningBudgetToken:_S().optional(),reasoningBudgetToken32k:_S().optional(),reasoningBudgetToken80k:_S().optional(),reasoningEffort:ES([`low`,`medium`,`high`]).optional(),reasoningMode:ES([`standard`,`pro`]).optional(),searchFCModel:SS({model:V(),provider:V()}).optional(),searchMode:ES([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:ES([`low`,`high`]).optional(),skillActivateMode:ES([`auto`,`manual`]).optional(),textVerbosity:ES([`low`,`medium`,`high`]).optional(),thinking:ES([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:_S().optional(),thinkingLevel:ES([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:ES([`low`,`high`]).optional(),thinkingLevel3:ES([`low`,`medium`,`high`]).optional(),thinkingLevel4:ES([`minimal`,`high`]).optional(),thinkingLevel5:ES([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:_S().default(25e3),topicGroupMode:ES([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:vS().optional(),useModelBuiltinSearch:vS().optional()}).merge(sje).merge(cje)})),dje=o((()=>{})),fje=o((()=>{})),pje,GS,mje,hje,gje,_je,vje,yje,bje,xje,Sje,Cje=o((()=>{pje=`LobeHub Cloud`,GS=`LobeHub`,mje=`Lobe AI`,hje=`LobeHub`,gje={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},_je={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`},vje={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},yje={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},bje=`lobehub`,xje=`© ${new Date().getFullYear()} ${hje}`,Sje=`${xje}. All rights reserved.`})),wje,Tje,Eje,KS,qS,Dje,Oje,kje,Aje,jje,Mje,Nje,Pje,Fje,Ije,Lje,Rje,zje,Bje,Vje,Hje,Uje=o((()=>{wje=`jev-1.14.0`,Tje=`typesafe`,Eje=`openai`,KS=`deepseek-v4-flash`,qS=`deepseek`,Dje=`gpt-5.6-luna`,Oje=`openai`,kje=`decision`,Aje=`gpt-6-luna:decision`,jje=`openai`,Mje=`gpt-4o-mini-transcribe`,Nje=`openai`,Pje=`gemini-3-flash-preview`,Fje=`google`,Ije=`gemini-3.8-flash`,Lje=`google`,Rje=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],zje=`glm-5.3-flash`,Bje=`zhipu`,Vje=`deepseek-flash`,Hje=`deepseek`})),Wje,Gje=o((()=>{Wje=[]})),Kje,qje=o((()=>{Kje=`chat_preview`})),Jje=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>Yje,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>yje,BRANDING_INBOX_TITLE:()=>mje,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>GS,BRANDING_PROVIDER:()=>bje,BRANDING_URL:()=>gje,BUSINESS_OIDC_CLIENTS:()=>Wje,COPYRIGHT:()=>xje,COPYRIGHT_FULL:()=>Sje,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>Rje,DEFAULT_ASR_MODEL:()=>Mje,DEFAULT_ASR_PROVIDER:()=>Nje,DEFAULT_BOT_WAKE_ENGINE:()=>kje,DEFAULT_BOT_WAKE_MODEL:()=>Aje,DEFAULT_BOT_WAKE_PROVIDER:()=>jje,DEFAULT_CHANNEL_ROUTING_MODEL:()=>wje,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>Tje,DEFAULT_EMBEDDING_PROVIDER:()=>Eje,DEFAULT_MINI_MODEL:()=>Dje,DEFAULT_MINI_PROVIDER:()=>Oje,DEFAULT_MODEL:()=>KS,DEFAULT_ONBOARDING_MODEL:()=>Pje,DEFAULT_ONBOARDING_PROVIDER:()=>Fje,DEFAULT_PROVIDER:()=>qS,DEFAULT_REVIEW_PREDICT_MODEL:()=>Ije,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>Lje,DEFAULT_VERIFY_MODEL:()=>zje,DEFAULT_VERIFY_PLAN_MODEL:()=>Vje,DEFAULT_VERIFY_PLAN_PROVIDER:()=>Hje,DEFAULT_VERIFY_PROVIDER:()=>Bje,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>vje,LOBE_CHAT_CLOUD:()=>pje,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>Xje,ORG_NAME:()=>hje,SOCIAL_URL:()=>_je,UTM_SOURCE:()=>Kje,isOfficialProvider:()=>Zje}),Yje,Xje,Zje,JS=o((()=>{Cje(),Cje(),Uje(),Gje(),qje(),Yje=`sk-lh-`,Xje=`The official provider cannot be disabled.`,Zje=e=>!1})),Qje=o((()=>{JS()})),$je=o((()=>{})),eMe=o((()=>{})),tMe,nMe,rMe=o((()=>{LS(),tMe=ES([`pinned`,`auto`,`disabled`]),nMe=CS([V(),SS({identifier:V(),mode:tMe.optional()})])})),iMe=o((()=>{LS(),uje(),rMe(),SS({agencyConfig:kS().optional(),avatar:V().nullish(),backgroundColor:V().nullish(),chatConfig:lje.optional(),description:V().nullish(),editorData:bS().optional(),fewShots:bS().optional(),marketIdentifier:V().nullish(),metadata:TS(V(),bS()).nullish(),model:V().nullish(),name:V().nullish(),openingMessage:V().nullish(),openingQuestions:xS(V()).optional(),params:TS(V(),bS()).optional(),plugins:xS(nMe).optional(),provider:V().nullish(),sessionGroupId:V().nullish(),systemRole:V().nullish(),tags:xS(V()).optional(),title:V().nullish(),tts:kS().optional(),virtual:vS().nullish(),visibility:ES([`private`,`public`]).optional()})})),aMe=o((()=>{})),oMe=o((()=>{})),sMe=o((()=>{})),cMe=o((()=>{})),lMe=o((()=>{})),uMe=o((()=>{rje(),ije(),aje(),uje(),dje(),fje(),Qje(),$xe(),yAe(),$je(),eMe(),tje(),iMe(),aMe(),rMe(),oMe(),sMe(),cMe(),lMe()})),dMe,fMe=o((()=>{dMe=[`mail`,`wallet`,`service`],[...dMe]})),pMe=o((()=>{})),mMe=o((()=>{})),hMe,gMe,_Me=o((()=>{LS(),hMe=SS({ciStatus:ES([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:V().optional(),headRepoFullName:V().optional(),isDraft:vS().optional(),mergeable:V().optional(),mergeStateStatus:V().optional(),mergedAt:V().nullable().optional(),number:_S(),reviewDecision:V().optional(),state:V(),title:V(),url:V()}),gMe=SS({environmentId:V().max(255).optional(),git:SS({activeWorktree:V().optional(),autoCreated:vS().optional(),autoCreatedAt:V().optional(),branch:V().optional(),detached:vS().optional(),github:SS({extraPullRequestCount:_S().optional(),pullRequest:hMe.nullable().optional(),pullRequestStatus:ES([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:vS().optional(),ownBranch:V().optional(),ownerNonce:V().max(64).optional(),ownerToken:V().max(128).optional(),upstream:SS({branch:V(),remote:V()}).optional()}).optional(),path:V(),repoType:ES([`git`,`github`]).optional(),sessionPath:V().optional()})})),vMe=o((()=>{_Me()})),yMe,bMe=o((()=>{yMe=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),xMe=o((()=>{})),SMe=o((()=>{})),CMe=o((()=>{})),wMe=o((()=>{LS(),vMe(),bMe(),xMe(),SMe(),CMe(),SS({heteroPermissionMode:ES(yMe).optional(),repos:xS(V()).optional(),sandboxDrive:ES([`personal`,`public`]).optional(),sandboxEnvironmentId:V().max(255).optional(),sandboxInstanceId:V().optional(),sandboxSeeded:vS().optional(),sandboxTemporary:vS().optional(),sandboxWorkingDirectory:V().max(1024).optional(),workingDirectory:V().optional(),workingDirectoryConfig:gMe.optional()})})),TMe,EMe=o((()=>{LS(),TMe=SS({allowDM:vS().optional(),forkedFromIdentifier:V().optional(),openingMessage:V().optional(),openingQuestions:xS(V()).optional(),personal:vS().optional(),revealDM:vS().optional(),systemPrompt:V().optional()}),SS({avatar:V().nullish(),backgroundColor:V().nullish(),clientId:V().nullish(),config:TMe.nullish(),content:V().nullish(),description:V().nullish(),editorData:TS(V(),yS()).nullish(),groupId:V().nullish(),id:V().optional(),marketIdentifier:V().nullish(),pinned:vS().nullish(),title:V().nullish(),visibility:ES([`private`,`public`]).optional()})})),DMe,OMe,kMe,AMe=o((()=>{LS(),DMe=ES([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),OMe=V().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),kMe=JOe({allowedEnvVars:xS(V().regex(/^[A-Z_]\w*$/i)).optional(),body:TS(V(),bS()).optional(),delivery:ES([`fetch`,`qstash`]).optional(),eventFields:xS(V()).optional(),fallback:ES([`fetch`,`none`]).optional(),headers:TS(V(),V()).optional(),onError:ES([`continue`,`block`]).optional(),responseHandling:ES([`ignore`,`toolCall`]).optional(),timeout:_S().positive().max(2147483.647).optional(),url:V().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`})}),JOe({id:V(),matcher:OMe.optional(),type:DMe,webhook:kMe}).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`})})})),jMe=o((()=>{LS(),wS(`decision`,[SS({decision:OS(`allow`)}),SS({decision:OS(`deny`),reason:V().optional()})])})),MMe=o((()=>{})),NMe,PMe=o((()=>{NMe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(NMe)})),FMe=o((()=>{})),IMe=o((()=>{})),LMe,RMe,zMe,BMe=o((()=>{LMe={messages:`msg`,threads:`thd`,topics:`tpc`},RMe=`[0-9a-zA-Z]{8,32}`,zMe=e=>RegExp(`^${LMe[e]}_${RMe}$`)})),VMe,HMe,UMe,WMe=o((()=>{LS(),VMe=SS({attribution:ES([`user`,`provider`,`harness`,`system`]).optional(),body:yS().optional(),errorRef:V().optional(),category:V().optional(),countAsFailure:vS().optional(),httpStatus:_S().optional(),isFallback:vS().optional(),message:V().optional(),numericId:_S().optional(),retryable:vS().optional(),severity:ES([`info`,`warning`,`error`,`critical`]).optional(),type:CS([V(),_S()])}),HMe=SS({content:xS(TS(V(),bS())).optional(),encrypted_content:V().nullish(),id:V(),status:ES([`in_progress`,`completed`,`incomplete`]).optional(),summary:xS(SS({text:V(),type:OS(`summary_text`)})),type:OS(`reasoning`)}).passthrough(),UMe=SS({content:V().optional(),duration:_S().optional(),isMultimodal:vS().optional(),responseItems:xS(HMe).optional(),signature:V().optional()})})),GMe,KMe=o((()=>{GMe=function(e){return e.AgentMeta=`agent_meta`,e.AgentShare=`agent_share`,e.AgentSignal=`agent_signal`,e.Api=`api`,e.Asr=`asr`,e.Bot=`bot`,e.BuilderSuggestion=`builder_suggestion`,e.Chat=`chat`,e.Cli=`cli`,e.ContextCompression=`context_compression`,e.Cron=`cron`,e.Eval=`eval`,e.Expertise=`expertise`,e.FileEmbedding=`file_embedding`,e.FollowUp=`follow_up`,e.GenerationTopicTitle=`generation_topic_title`,e.Goal=`goal`,e.HistorySummary=`history_summary`,e.Image=`image`,e.Inbox=`inbox`,e.InputCompletion=`input_completion`,e.McpEvent=`mcp_event`,e.Memory=`memory`,e.MultimodalAnalysis=`multimodal_analysis`,e.Music=`music`,e.Notify=`notify`,e.Onboarding=`onboarding`,e.Openapi=`openapi`,e.PromptRewrite=`prompt_rewrite`,e.ProviderCheck=`provider_check`,e.Scheduled=`scheduled`,e.Scm=`scm`,e.SemanticSearch=`semantic_search`,e.SignupEmailLLMReview=`signup_email_llm_review`,e.Task=`task`,e.TaskCallback=`task_callback`,e.ThreadTitle=`thread_title`,e.Topic=`topic`,e.TopicAnalysis=`topic_analysis`,e.TopicSummary=`topic_summary`,e.TopicTitle=`topic_title`,e.Translate=`translate`,e.Tts=`tts`,e.Verify=`verify`,e.Video=`video`,e.Webhook=`webhook`,e}({})})),YS,qMe,JMe=o((()=>{LS(),YS=_S().catch(0),qMe=SS({bySource:SS({content:YS,fileContext:YS,reasoning:YS,thoughtSignature:YS,toolCallId:YS,toolCalls:YS,toolDefinition:YS}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:OS(`tokenx`).catch(`tokenx`),messageCount:YS,system:YS,total:YS})})),YMe,XMe,XS,ZMe,QMe,$Me,eNe,tNe,nNe,rNe=o((()=>{LS(),YMe=ES([`markdown`,`text`,`xml`]),XMe=SS({endLine:_S().optional(),startLine:_S()}),XS=SS({content:V(),format:YMe.optional(),id:V(),lineRange:XMe.optional(),preview:V().optional(),title:V().optional()}),ZMe=XS.extend({anchor:SS({endNodeId:V(),endOffset:_S(),startNodeId:V(),startOffset:_S()}).optional(),pageId:V(),source:OS(`page`),xml:V().optional()}),QMe=XS.extend({filePath:V(),language:V().optional(),side:ES([`additions`,`context`,`deletions`]).optional(),source:OS(`code`),workingDirectory:V().optional()}),$Me=XS.extend({source:OS(`text`)}),eNe=XS.extend({element:SS({pageTitle:V().optional(),selector:V(),tag:V(),thumbnailUrl:V().optional(),url:V().optional()}),source:OS(`element`)}),tNe=XS.extend({identifier:V(),source:OS(`mcpApp`)}),nNe=wS(`source`,[ZMe,QMe,$Me,eNe,tNe])})),iNe,aNe=o((()=>{LS(),rNe(),iNe=XS.omit({lineRange:!0}).extend({anchor:SS({endNodeId:V(),endOffset:_S(),startNodeId:V(),startOffset:_S()}).optional(),startLine:_S().optional(),endLine:_S().optional(),pageId:V(),xml:V().optional()})})),oNe,sNe,ZS,cNe,lNe,uNe,dNe,fNe,pNe,mNe,hNe,gNe,_Ne,vNe,yNe,QS,bNe,xNe=o((()=>{LS(),KMe(),JMe(),rNe(),aNe(),oNe=CS([SS({action:ES([`create`,`update`,`delete`]),changeType:ES([`created`,`updated`]).optional(),targets:xS(SS({taskId:V().optional(),taskIdentifier:V().optional()})),type:OS(`task`)}),SS({args:TS(V(),bS()).optional(),data:bS(),provider:V(),toolName:V(),type:OS(`skill`)}),SS({action:OS(`register`),document:SS({agentDocumentId:V().nullish(),agentId:V().nullish(),description:V().nullish(),documentId:V(),changeType:ES([`created`,`updated`]),toolName:V()}),type:OS(`document`)}),SS({action:OS(`delete`),document:SS({agentDocumentId:V().nullish(),agentId:V().nullish(),documentId:V()}),type:OS(`document`)}),SS({action:OS(`register`),canvas:SS({canvasId:V(),description:V().nullish(),title:V(),toolName:V(),metadata:SS({entry:V(),fileCount:_S(),manifestKey:V(),runtimeMajor:_S(),totalSize:_S()})}),type:OS(`canvas`)})]),sNe=SS({apiName:ES([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:TS(V(),bS()),capturedAt:V(),content:V().nullable(),error:bS().optional(),identifier:OS(`lobe-local-system`),result:bS().optional(),snapshotId:V(),state:bS().optional(),success:vS(),toolCallId:V()}),ZS=SS({inputCachedTokens:_S().optional(),inputCacheMissTokens:_S().optional(),inputWriteCacheTokens:_S().optional(),inputCachedTextTokens:_S().optional(),inputCachedImageTokens:_S().optional(),inputCachedAudioTokens:_S().optional(),inputCachedVideoTokens:_S().optional(),inputTextTokens:_S().optional(),inputImageTokens:_S().optional(),inputAudioTokens:_S().optional(),inputVideoTokens:_S().optional(),inputCitationTokens:_S().optional(),inputToolTokens:_S().optional(),inputCharacters:_S().optional(),outputTextTokens:_S().optional(),outputImageTokens:_S().optional(),outputAudioTokens:_S().optional(),outputReasoningTokens:_S().optional(),outputVideoTokens:_S().optional(),acceptedPredictionTokens:_S().optional(),rejectedPredictionTokens:_S().optional(),totalInputTokens:_S().optional(),totalOutputTokens:_S().optional(),totalTokens:_S().optional(),cost:_S().optional(),credits:_S().optional()}),cNe=SS({tps:_S().optional(),ttft:_S().optional(),duration:_S().optional(),latency:_S().optional()}),lNe=SS({emoji:V(),count:_S(),users:xS(V())}),uNe=SS({sequence:_S().optional(),sourceToolCallId:V(),sourceToolName:V(),type:ES([`tool-stdout`,`tool-callback`,`task-completion`])}),dNe=SS({identifier:V()}),fNe=SS({agentId:V().optional(),name:V(),status:ES([`completed`,`error`]),threadId:V()}),pNe=SS({identifier:V(),reason:ES([`done`,`error`,`interrupted`]),taskId:V(),topicId:V().optional()}),mNe=SS({rootOperationId:V().min(1),userMessageId:V().optional()}),hNe=SS({kind:ES([`callAgent`]),visibility:OS(`internal`)}),gNe=SS({agentId:V(),avatar:V().optional(),chatGroupId:V().optional(),hop:_S().int().positive().optional(),name:V().optional(),threadId:V().optional(),title:V().optional(),topicAgentId:V().optional(),topicId:V().optional(),topicTitle:V().optional()}),_Ne=SS({kind:V(),label:V(),provider:V(),resourceId:V().optional(),url:V().optional()}),vNe=SS({avatar:V().optional(),fullName:V().optional(),id:V(),platform:V(),username:V().optional()}),yNe=ZS.merge(cNe).extend({botSender:vNe.optional(),externalOrigin:_Ne.optional(),agentDispatch:hNe.optional(),agentSender:gNe.optional(),collapsed:vS().optional(),contextAccounting:qMe.optional(),contextSelections:xS(nNe).optional(),heteroMessageId:V().optional(),codexTurnId:V().optional(),heteroSessionId:V().optional(),heterogeneousToolStateOperationId:V().optional(),heterogeneousToolStateSeq:_S().int().positive().optional(),inspectExpanded:vS().optional(),isMultimodal:vS().optional(),isSupervisor:vS().optional(),localSystemToolSnapshots:xS(sNe).optional(),mcpAppSource:dNe.optional(),operationId:V().min(1).optional(),orchestrationRole:ES([`supervisor`,`member`]).optional(),pageSelections:xS(iNe).optional(),performance:cNe.optional(),reactions:xS(lNe).optional(),scope:V().optional(),selectedSkillIds:xS(V()).optional(),signal:uNe.optional(),steer:vS().optional(),subAgentCallback:fNe.optional(),subAgentId:V().optional(),taskCallback:pNe.optional(),toolExecutionTimeMs:_S().optional(),toolResultSuccess:vS().optional(),toolResultStop:vS().optional(),toolWorkRegistration:oNe.optional(),trigger:DS(GMe).optional(),verifyOperationId:V().optional(),verifyRound:_S().optional(),work:mNe.optional(),usage:ZS.optional()}),QS=yNe.omit({agentSender:!0}),bNe=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),SNe,CNe=o((()=>{LS(),xNe(),SNe=yNe.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),SS({editorData:TS(V(),bS()).optional(),metadata:SNe.optional()}),Object.keys(SNe.shape)})),wNe,TNe=o((()=>{LS(),wNe=SS({alt:V(),height:_S().optional(),id:V(),mimeType:V().optional(),ratio:_S().optional(),url:V(),width:_S().optional()})})),ENe=o((()=>{})),DNe,ONe,kNe,ANe=o((()=>{LS(),DNe=SS({batchId:V().optional(),itemIndex:_S().int().nonnegative().optional(),operationId:V().optional(),runtimeType:ES([`client`,`server`]).optional(),rejectedReason:V().optional(),resolving:vS().optional(),resolutionRequestId:V().optional(),skipped:vS().optional(),stepIndex:_S().int().nonnegative().optional(),status:ES([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),ONe=SS({function:SS({arguments:V(),name:V()}),id:V(),type:V()}),kNe=SS({apiName:V(),arguments:V(),id:V(),identifier:V(),intervention:DNe.optional(),result_msg_id:V().optional(),thoughtSignature:V().optional(),type:V()})})),jNe=o((()=>{})),MNe=o((()=>{})),$S=o((()=>{WMe(),CNe(),JMe(),rNe(),TNe(),ENe(),xNe(),aNe(),ANe(),jNe(),MNe()})),NNe,PNe=o((()=>{LS(),NNe=SS({id:V(),similarity:_S()}),SS({id:V(),value:SS({fileChunks:xS(NNe),ragQueryId:V().optional()})})})),FNe,INe,LNe=o((()=>{LS(),WMe(),ANe(),PNe(),$S(),aNe(),FNe=ES([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),INe=SS({apiName:V(),arguments:V(),identifier:V(),type:V()}),SS({role:FNe,content:V(),id:V().optional(),agentId:V().optional(),sessionId:V().nullish(),tool_call_id:V().optional(),plugin:INe.optional(),parentId:V().optional(),groupId:V().nullish(),topicId:V().nullish(),threadId:V().nullish(),targetId:V().nullish(),model:V().nullish(),provider:V().nullish(),files:xS(V()).optional(),error:VMe.nullish(),traceId:V().optional(),fileChunks:xS(NNe).optional()}).passthrough(),SS({id:V().optional(),toolCallId:V().optional(),type:V().optional(),intervention:DNe.optional(),apiName:V().optional(),arguments:V().optional(),identifier:V().optional(),state:yS().optional(),error:yS().optional(),clientId:V().optional(),userId:V().optional()})})),eC,RNe,zNe,BNe,VNe,HNe,UNe=o((()=>{LS(),eC=ES([`never`,`required`,`always`]),RNe=CS([V(),SS({pattern:V(),type:ES([`exact`,`prefix`,`wildcard`,`regex`])})]),zNe=SS({match:TS(V(),RNe).optional(),policy:eC}),BNe=CS([eC,xS(zNe)]),SS({action:ES([`approve`,`reject`,`select`]),data:SS({remember:vS().optional(),selected:CS([V(),xS(V())]).optional()}).optional()}),SS({allowList:xS(V()).optional(),approvalMode:ES([`auto-run`,`allow-list`,`manual`,`headless`])}),VNe=SS({description:V(),match:TS(V(),RNe),policy:eC.optional()}),HNe=xS(VNe),SS({config:BNe.optional(),confirmedHistory:xS(V()).optional(),securityBlacklist:HNe.optional(),toolArgs:TS(V(),yS()).optional(),toolKey:V().optional()})})),WNe=o((()=>{})),tC,GNe,KNe,qNe,JNe,nC,YNe,XNe=o((()=>{LS(),UNe(),WNe(),tC=SS({avatar:V().optional(),description:V().optional(),readme:V().optional(),tags:xS(V()).optional(),title:V()}),GNe=ES([`collapsed`,`expand`,`alwaysExpand`]),KNe=SS({default:eC.optional(),policy:eC.optional(),type:V()}),qNe=CS([BNe,SS({dynamic:KNe})]),JNe=SS({action:ES([`create`,`update`,`delete`]),resourceType:ES([`document`,`task`])}),nC=SS({defaultTimeoutMs:_S().int().positive().optional(),description:V(),humanIntervention:qNe.optional(),name:V(),ordered:vS().optional(),parameters:TS(V(),yS()),renderDisplayControl:GNe.optional(),serializeBy:V().optional(),url:V().optional(),work:JNe.optional()}),YNe=SS({api:xS(nC),deviceClients:xS(ES([`cli`,`desktop`])).optional(),executors:xS(ES([`client`,`server`])).optional(),humanIntervention:qNe.optional(),identifier:V(),meta:tC,systemRole:V(),type:OS(`builtin`).optional()}),SS({discoverable:vS().optional(),hidden:vS().optional(),identifier:V(),manifest:YNe,type:OS(`builtin`)})})),ZNe=o((()=>{})),QNe=o((()=>{})),$Ne,ePe=o((()=>{LS(),XNe(),$Ne=SS({properties:TS(V(),yS()),required:xS(V()).optional(),type:OS(`object`)}),SS({$schema:V().optional(),api:xS(nC),connector:SS({id:V(),identifier:V()}).optional(),connectorLinks:SS({connectorId:V(),param:V()}).optional(),author:V().optional(),createdAt:V().optional(),gateway:V().optional(),homepage:V().optional(),identifier:V(),mcpAppEntrypoints:xS(SS({toolName:V(),title:V(),icon:V().optional()})).optional(),mcpAppOnlyApi:xS(nC).optional(),mcpModelOnlyTools:xS(V()).optional(),meta:tC,openapi:V().optional(),settings:$Ne.optional(),systemRole:V().optional(),type:ES([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:SS({height:_S().optional(),mode:ES([`iframe`,`module`]).optional(),url:V(),width:_S().optional()}).optional(),version:V().optional()})})),tPe=o((()=>{})),nPe=o((()=>{})),rPe,iPe=o((()=>{LS(),rPe=SS({description:V().optional(),name:V(),parameters:SS({additionalProperties:vS().optional(),properties:TS(V(),yS()),required:xS(V()).optional(),type:OS(`object`)})})})),aPe=o((()=>{XNe(),ZNe(),QNe(),UNe(),ePe(),tPe(),nPe(),iPe()})),rC,oPe,sPe,iC,cPe,aC,lPe,oC,sC,cC,uPe,dPe,fPe,lC,pPe,mPe,hPe,gPe,uC,_Pe,vPe=o((()=>{LS(),rC=1e6,oPe=2e3,sPe=2e3,iC=12e3,cPe=SS({kind:OS(`writing`)}).strict(),aC=SS({code:V().max(64),message:V(),operation:V().max(64),provider:V().max(64),retryable:vS()}).strict(),lPe=SS({errors:xS(aC).max(16),evidenceCount:_S().int().nonnegative().max(rC),failedCount:_S().int().nonnegative().max(rC),succeededCount:_S().int().nonnegative().max(rC)}).strict(),lPe.omit({errors:!0}).strip(),oC=e=>V().trim().min(1).max(e),sC=oC(256),cC=oC(oPe),uPe=SS({content:oC(iC),reasoning:cC,tagline:sC}).strict(),dPe=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}},fPe=AS(dPe,SS({description:cC,rank:_S().int().min(0).max(100),title:sC}).strict()),lC=e=>xS(fPe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),pPe=SS({composition:SS({identities:lC(6),interests:lC(8),lifeStyle:lC(6),social:lC(6),working:lC(6)}).strict(),personaProposal:uPe,profile:SS({domains:xS(sC).max(8),description:cC,name:sC,pronoun:sC,roles:xS(sC).max(8),summary:cC,tagline:sC}).strict()}).strict(),SS({analysis:pPe,detailedPersona:uPe.optional(),diagnostics:lPe,feedbackRevision:_S().int().nonnegative().max(rC).default(0),generationRevision:_S().int().nonnegative().max(rC).default(0),kind:OS(`proposal`),providers:xS(V().max(64)),resultId:V(),sourceFingerprint:V()}).strict(),mPe=SS({content:V().trim().min(1).max(sPe),createdAt:V(),revision:_S().int().positive().max(rC)}).strict(),hPe=SS({revision:_S().int().nonnegative().max(rC),turns:xS(mPe).max(16)}).strict(),gPe=SS({completedAt:V().optional(),errors:xS(aC).max(16),failedCount:_S().int().nonnegative().max(rC),revision:_S().int().nonnegative().max(rC),status:ES([`pending`,`running`,`completed`,`failed`]),succeededCount:_S().int().nonnegative().max(rC)}).strict(),uC={detailed:wS(`status`,[SS({status:OS(`running`),updatedAt:V()}).strict(),SS({status:OS(`completed`),updatedAt:V()}).strict(),SS({error:aC,status:OS(`failed`),updatedAt:V()}).strict()]).optional(),feedbackRevision:_S().int().nonnegative().max(rC).default(0),generationRevision:_S().int().nonnegative().max(rC).default(0),sourceFingerprint:V(),updatedAt:V()},_Pe=wS(`status`,[SS({...uC,resultMessageId:V().optional(),status:OS(`running`)}).strict(),SS({...uC,resultMessageId:V(),status:OS(`completed`)}).strict(),SS({...uC,error:aC,resultMessageId:V().optional(),status:OS(`failed`)}).strict()]),SS({confirmedAt:V().optional(),feedback:hPe.default({revision:0,turns:[]}),generationRevision:_S().int().nonnegative().max(rC).default(0),id:V(),sources:TS(V().max(64),gPe),writing:_Pe.optional()}).strict()})),dC,yPe,bPe=o((()=>{LS(),vPe(),dC={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},yPe=SS({clientMode:vS().optional(),completedAt:V().optional(),duration:_S().optional(),error:yS().optional(),model:V().optional(),onboardingUnderstanding:cPe.optional(),operationId:V().optional(),sourceToolCallId:V().optional(),startedAt:V().optional(),subagentType:V().optional(),totalCost:_S().optional(),totalLlmCalls:_S().optional(),totalMessages:_S().optional(),totalTokens:_S().optional(),totalSteps:_S().optional(),totalToolCalls:_S().optional()}),SS({agentId:V().optional(),groupId:V().optional(),id:V().optional(),metadata:yPe.optional(),parentThreadId:V().optional(),sourceMessageId:V().optional(),title:V().optional(),topicId:V(),type:ES([dC.Continuation,dC.Eval,dC.Standalone,dC.Isolation])})})),xPe,SPe,fC,CPe,pC,wPe,TPe=o((()=>{LS(),BMe(),$S(),LNe(),aPe(),bPe(),xPe=SS({parentThreadId:V().optional(),sourceMessageId:V().optional(),title:V().optional(),type:ES([dC.Continuation,dC.Standalone,dC.Isolation])}),SPe=SS({content:V(),metadata:QS.optional(),plugin:SS({apiName:V(),arguments:V(),identifier:V(),type:V()}).optional(),role:ES([`assistant`,`tool`]),tool_call_id:V().optional(),tools:xS(kNe).optional()}),fC=e=>V().regex(zMe(e)).optional(),SS({agentId:V().optional(),groupId:V().optional(),newAssistantMessage:SS({agentId:V().optional(),id:fC(`messages`),metadata:TS(V(),bS()).optional().transform(bNe),model:V().optional(),provider:V().optional()}),newThread:xPe.optional(),newTopic:SS({id:fC(`topics`),metadata:kS().optional(),model:V().optional(),projectId:V().optional(),provider:V().optional(),title:V().optional(),topicMessageIds:xS(V()).optional(),trigger:V().optional()}).optional(),preloadMessages:xS(SPe).optional(),newUserMessage:SS({content:V(),contextSelections:xS(nNe).optional(),editorData:TS(V(),bS()).optional(),files:xS(V()).optional(),id:fC(`messages`),metadata:QS.optional(),pageSelections:xS(iNe).optional(),parentId:V().optional()}),sessionId:V().optional(),threadId:V().optional(),topicFilter:SS({excludeStatuses:xS(V()).optional(),excludeTriggers:xS(V()).optional(),includeTriggers:xS(V()).optional(),onlyMine:vS().optional()}).optional(),topicPageSize:_S().int().min(1).max(100).optional(),topicId:V().optional()}),CPe=SS({description:V().optional(),name:V(),schema:SS({$defs:yS().optional(),additionalProperties:vS().optional(),properties:TS(V(),yS()),required:xS(V()).optional(),type:OS(`object`)}),strict:vS().optional()}),SS({metadata:TS(V(),bS()).optional(),messages:xS(yS()),model:V(),provider:V(),schema:CPe.optional(),tools:xS(SS({function:rPe,type:OS(`function`)})).optional(),tracing:SS({tracingId:V().uuid().optional()}).catchall(bS()).optional()}),pC=CS([V(),xS(bS()),TS(V(),bS())]),wPe=wS(`type`,[SS({criteria:SS({false:pC,true:pC}).optional(),instructions:pC,type:OS(`boolean`)}),SS({criteria:TS(V(),pC.nullable()),instructions:pC,type:OS(`choice`)}),SS({criteria:xS(pC).min(1),instructions:pC,type:OS(`score`)})]),SS({metadata:TS(V(),bS()).optional(),model:V(),provider:V(),questions:TS(V(),wPe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:pC,tracing:SS({tracingId:V().uuid().optional()}).catchall(bS()).optional()})})),EPe=o((()=>{LS()})),DPe=o((()=>{})),OPe=o((()=>{})),kPe=o((()=>{})),APe=o((()=>{})),jPe=o((()=>{})),MPe,NPe=o((()=>{yAe(),MPe=vAe.map(({type:e})=>e),[..._Ae.options,...MPe]})),PPe=o((()=>{})),FPe=o((()=>{PPe()})),IPe=o((()=>{})),LPe=o((()=>{})),RPe=o((()=>{})),zPe=o((()=>{})),BPe=o((()=>{})),VPe=o((()=>{})),HPe=o((()=>{})),UPe=o((()=>{})),WPe=o((()=>{LS(),SS({connected:vS(),cpuCount:_S().int().min(1).max(4096),cpuPercent:_S().min(0).max(100).nullable(),diskTotalBytes:_S().int().min(0).nullish(),diskUsedBytes:_S().int().min(0).nullish(),load1:_S().min(0).nullable(),load5:_S().min(0).nullable(),load15:_S().min(0).nullable(),memoryTotalBytes:_S().int().min(0),memoryUsedBytes:_S().int().min(0),observedAt:_S().int().min(0)})})),GPe=o((()=>{})),KPe=o((()=>{})),qPe=o((()=>{})),JPe=o((()=>{})),YPe=o((()=>{})),XPe=o((()=>{})),ZPe=o((()=>{})),QPe=o((()=>{})),$Pe=o((()=>{GPe(),KPe(),qPe(),JPe(),YPe(),XPe(),ZPe(),QPe()})),eFe=o((()=>{LS(),SS({shareId:V(),topicId:V(),visitorUserId:V()})})),tFe=o((()=>{})),nFe=o((()=>{})),rFe=o((()=>{eFe(),tFe(),nFe()})),iFe=o((()=>{})),aFe=o((()=>{})),oFe=o((()=>{})),sFe=o((()=>{})),cFe=o((()=>{})),lFe=o((()=>{})),uFe=o((()=>{})),dFe=o((()=>{})),fFe=o((()=>{})),pFe=o((()=>{LS(),SS({ideal:V().optional(),question:V(),referenceFiles:V().or(xS(V())).optional()}),SS({description:V().optional(),knowledgeBaseId:V(),name:V()})})),mFe=o((()=>{})),hFe=o((()=>{})),gFe=o((()=>{})),_Fe=o((()=>{LS(),SS({ideal:V().optional(),question:V(),referenceFiles:V().or(xS(V())).optional()}),SS({datasetId:V(),description:V().optional(),knowledgeBaseId:V(),name:V()})})),vFe=o((()=>{})),yFe=o((()=>{})),bFe=o((()=>{})),xFe,SFe=o((()=>{LS(),XNe(),xFe=SS({api:xS(nC.pick({name:!0,description:!0,parameters:!0}).strict().refine(e=>!e.name.includes(`____`),`Tool names cannot contain the routing separator`)).min(1),identifier:V().min(1).max(255).refine(e=>!e.includes(`____`),`Tool identifiers cannot contain the routing separator`),meta:tC,systemRole:V().optional(),type:ES([`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`),TS(V().min(1).max(255),xFe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),CFe=o((()=>{sFe(),cFe(),lFe(),uFe(),dFe(),fFe(),pFe(),mFe(),hFe(),gFe(),_Fe(),vFe(),yFe(),bFe(),SFe()})),wFe=o((()=>{})),TFe=o((()=>{})),EFe=o((()=>{})),mC,DFe,OFe=o((()=>{mC={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},DFe=[mC.RemoteServerOffline,mC.RemoteServerTimeout,mC.RemoteServerDNSFailed,mC.RemoteServerConnectionRefused,mC.RemoteServerCertInvalid,mC.RemoteServerUnreachable],new Set(DFe)})),kFe,AFe,jFe=o((()=>{LS(),kFe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),AFe=100,SS({category:V().optional(),filesOnly:vS().optional(),includeContentPreview:vS().optional(),knowledgeBaseId:V().optional(),limit:_S().int().positive().max(AFe).default(50),offset:_S().int().min(0).default(0),parentId:V().nullish(),q:V().nullish(),showFilesInKnowledgeBase:vS().default(!1),sortType:ES([`desc`,`asc`]).optional(),sorter:ES([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:DS(kFe).optional(),visibility:ES([`private`,`public`]).optional()})})),MFe,NFe=o((()=>{LS(),MFe=SS({shareId:V(),visitorUserId:V()}),SS({agentShare:MFe.optional(),date:V(),dirname:V(),filename:V(),height:_S().optional(),path:V(),ratio:_S().optional(),width:_S().optional()}),SS({fileType:V(),hash:V().optional(),knowledgeBaseId:V().optional(),metadata:yS().optional(),name:V(),size:_S(),source:V().optional(),url:V().optional()})})),PFe,FFe=o((()=>{jFe(),NFe(),PFe=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(PFe))})),IFe=o((()=>{})),LFe,RFe,zFe,BFe,hC,VFe,HFe,UFe,WFe,GFe=o((()=>{LS(),LFe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],RFe=[`agentEmoji`,`agentName`,`fullName`],zFe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],BFe=[`agent_identity`,`user_identity`,`discovery`,`summary`],hC=V().trim().transform(e=>e.length>0?e:void 0).optional(),VFe=xS(V()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),ES(LFe),HFe=ES(RFe),UFe=ES(zFe),SS({agentEmoji:hC,agentName:hC,customInterests:VFe,fullName:hC,interests:VFe}).strict(),WFe=ES(BFe),SS({discoveryUserMessageCount:_S().optional(),finished:vS(),missingStructuredFields:xS(HFe),phase:WFe,remainingDiscoveryExchanges:_S().optional(),topicId:V().optional(),version:_S()}).strict(),SS({activeTopicId:V().optional(),discoveryStartUserMessageCount:_S().optional(),finishedAt:V().optional(),version:_S()}).strict(),SS({node:UFe,patch:SS({}).passthrough()}).strict()})),KFe,qFe,JFe=o((()=>{LS(),GFe(),KFe=CS([SS({kind:OS(`onboarding`),phase:WFe}),SS({kind:OS(`chat`)})]),qFe=SS({model:V().min(1),provider:V().min(1)}),SS({hint:KFe.optional(),modelConfig:qFe,threadId:V().optional(),topicId:V().min(1)})})),YFe=o((()=>{})),XFe=o((()=>{})),ZFe=o((()=>{})),QFe=o((()=>{})),gC,$Fe,eIe,tIe,nIe,rIe,iIe,aIe,oIe,sIe=o((()=>{LS(),gC=xS(V().trim().min(1)).max(200),$Fe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),eIe=AS(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||$Fe.has(t.toLowerCase())))return t},V().trim().min(1).optional()),tIe=[`dead_end`,`superseded`,`retry`],nIe=2e3,rIe=SS({kind:ES(tIe),lesson:V().trim().min(1).max(nIe),nodeIds:gC.min(1),reason:V().trim().min(1).max(nIe),title:V().trim().min(1).max(200)}).strict(),iIe=SS({detours:xS(rIe).max(20).default([]),findingIds:gC.default([]),narrative:V().trim().min(1).max(8e3),nodeIds:gC.default([]),title:V().trim().min(1).max(200),workVersionIds:gC.default([])}).strict(),aIe=SS({nodeIds:gC.optional(),reason:V().trim().min(1).max(2e3),title:V().trim().min(1).max(200)}).strict(),oIe=SS({edgeIds:gC.default([]),nodeIds:gC.min(1)}).strict(),SS({chapters:xS(iIe).min(1).max(30),deliverableWorkId:eIe,graphCursor:V().trim().min(1),headline:V().trim().min(1).max(500),mainline:oIe.optional(),nextSteps:xS(aIe).max(20).default([])}).strict()})),cIe=o((()=>{})),lIe=o((()=>{})),uIe=o((()=>{})),dIe=o((()=>{})),fIe,pIe,mIe,hIe=o((()=>{LS(),fIe=SS({apiName:V(),arguments:V(),id:V(),identifier:V(),type:OS(`default`)}),pIe=SS({clientId:V(),content:V(),createdAt:V().optional(),metadata:TS(V(),yS()).optional(),model:V().optional(),parentClientId:V().nullish(),plugin:SS({apiName:V(),arguments:V(),identifier:V(),type:V()}).optional(),pluginState:TS(V(),yS()).optional(),provider:V().optional(),reasoning:SS({content:V()}).passthrough().optional(),role:ES([`user`,`assistant`,`tool`]),toolCallId:V().optional(),tools:xS(fIe).optional(),usage:TS(V(),yS()).optional()}),mIe=SS({clientId:V(),messages:xS(pIe),sourceMessageClientId:V().optional(),status:ES([`active`,`completed`,`failed`]).optional(),title:V().optional(),type:ES([`continuation`,`standalone`,`isolation`])}),SS({messages:xS(pIe),metadata:TS(V(),yS()).optional(),sessionId:V(),source:ES([`claude-code`,`codex`]),sourceEndAt:V().optional(),threads:xS(mIe).optional(),title:V().optional(),topicClientId:V(),workingDirectory:V().optional()})})),gIe=o((()=>{})),_Ie=o((()=>{})),vIe=o((()=>{})),yIe=o((()=>{})),bIe,xIe=o((()=>{bIe=[`triage`,`backlog`,`unstarted`,`started`],[...bIe]})),SIe=o((()=>{})),CIe=o((()=>{})),wIe=o((()=>{})),TIe=o((()=>{})),EIe,DIe,OIe=o((()=>{LS(),EIe=SS({domain:V().optional(),imageUri:V().optional(),sourceUri:V().optional(),title:V().optional()}),DIe=SS({citations:xS(SS({favicon:V().optional(),id:V().optional(),title:V().optional(),url:V()})).optional(),imageResults:xS(EIe).optional(),imageSearchQueries:xS(V()).optional(),searchQueries:xS(V()).optional()})})),kIe=o((()=>{LS(),OIe(),$S(),SS({content:V().optional(),editorData:TS(V(),yS()).nullish(),error:VMe.nullish(),imageList:xS(wNe).optional(),metadata:QS.optional(),model:V().optional(),observationId:V().optional(),provider:V().optional(),reasoning:UMe.optional(),role:V().optional(),search:DIe.nullish(),toolCalls:xS(ONe).optional(),tools:xS(kNe).nullish(),traceId:V().optional(),usage:ZS.optional()}).passthrough()})),AIe=o((()=>{TIe(),kIe()})),jIe=o((()=>{})),MIe=o((()=>{})),NIe=o((()=>{})),PIe=o((()=>{})),FIe=o((()=>{jIe(),MIe(),NIe(),LNe(),PNe(),PIe()})),IIe=o((()=>{$S(),AIe(),FIe()})),LIe=o((()=>{LS(),SS({avatar:V().optional(),backgroundColor:V().optional(),description:V().optional(),marketIdentifier:V().optional(),name:V().optional(),tags:xS(V()).optional(),title:V().optional()})})),RIe=o((()=>{})),zIe=o((()=>{})),BIe,VIe=o((()=>{LS(),BIe=SS({accessToken:V().optional(),token:V().optional(),type:ES([`none`,`bearer`,`oauth2`])}).optional(),SS({auth:BIe,headers:TS(V(),V()).optional(),identifier:V(),metadata:SS({avatar:V().optional(),description:V().optional()}).optional(),url:V().url()})})),HIe=o((()=>{})),UIe=o((()=>{VIe(),HIe()})),WIe=o((()=>{})),GIe=o((()=>{LS(),SS({fileIds:xS(V()).optional(),knowledgeIds:xS(V()).optional(),query:V(),topK:_S().optional()})})),KIe=o((()=>{})),qIe=o((()=>{})),JIe=o((()=>{})),YIe=o((()=>{})),XIe=o((()=>{})),ZIe=o((()=>{})),QIe=o((()=>{})),$Ie,eLe=o((()=>{$Ie=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),tLe=o((()=>{QIe(),eLe()})),nLe,rLe,iLe=o((()=>{nLe=`NO_REPLY`,rLe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${nLe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(rLe)})),aLe,oLe=o((()=>{LS(),aLe=SS({name:V(),url:V().url().optional()}),SS({author:CS([V(),aLe]).optional(),description:V().min(1,`Skill description is required`),license:V().optional(),name:V().min(1,`Skill name is required`),permissions:xS(V()).optional(),repository:V().url().optional(),sourceUrl:V().url().optional(),version:V().optional()}).passthrough()})),sLe=o((()=>{})),cLe=o((()=>{})),lLe=o((()=>{})),uLe,dLe=o((()=>{uLe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],uLe[0]})),_C,fLe=o((()=>{_C=1440*60*1e3,30*_C,90*_C,7*_C})),pLe=o((()=>{cLe(),lLe(),dLe(),fLe()})),mLe=o((()=>{})),vC,hLe,gLe,_Le,vLe,yLe,bLe,xLe=o((()=>{LS(),vC=ES([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),SS({serverDefaultHeterogeneousProfiles:xS(V().min(1)).optional()}).passthrough(),hLe=SS({audio:vS().optional(),functionCall:vS().optional(),imageOutput:vS().optional(),reasoning:vS().optional(),search:vS().optional(),video:vS().optional(),vision:vS().optional()}),gLe=SS({codexMaxReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:ES([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:ES([`none`,`high`,`max`]).optional(),effort:ES([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:ES([`high`,`max`]).optional(),glm5_3ReasoningEffort:ES([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:ES([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:ES([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:ES([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:ES([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:ES([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:ES([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:ES([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:ES([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:ES([`low`,`high`,`max`]).optional(),opus47Effort:ES([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:ES([`low`,`medium`,`high`]).optional(),reasoningMode:ES([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:ES([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:ES([`low`,`high`]).optional(),thinkingLevel:ES([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:ES([`low`,`high`]).optional(),thinkingLevel3:ES([`low`,`medium`,`high`]).optional(),thinkingLevel4:ES([`minimal`,`high`]).optional(),thinkingLevel5:ES([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(gLe.shape),_Le=ES(`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(`.`)),vLe=ES([`tool`,`params`,`internal`]),yLe=ES([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),bLe=SS({disabledParams:xS(yLe).optional(),extendParams:xS(_Le).optional(),searchImpl:vLe.optional(),searchProvider:V().optional(),ttsVoice:V().optional()}),SS({abilities:hLe.optional(),contextWindowTokens:_S().optional(),displayName:V().optional(),id:V(),providerId:V(),releasedAt:V().optional(),settings:bLe.optional(),type:vC.optional()}),SS({abilities:hLe.optional(),config:SS({deploymentName:V().optional()}).optional(),contextWindowTokens:_S().nullish(),displayName:V().nullish(),settings:bLe.optional(),type:vC.optional()}),SS({enabled:vS(),id:V(),providerId:V(),source:ES([`builtin`,`custom`,`remote`]).optional(),type:vC.optional()})})),SLe,yC,CLe,wLe,TLe,ELe,DLe,OLe,kLe=o((()=>{xLe(),LS(),vMe(),bMe(),SLe=SS({claimedAt:V(),expiresAt:V(),id:V()}),yC=SS({claim:SLe.optional(),createdAt:V(),runAt:V().datetime(),updatedAt:V()}),CLe=yC.extend({failedAssistantMessageId:V(),kind:OS(`resume_after_rate_limit`),rateLimit:SS({rateLimitType:V().optional(),resetsAt:_S().optional()}).optional(),resume:SS({sessionId:V().optional(),workingDirectory:V().optional()}).optional(),source:OS(`heterogeneous_agent`),userMessageId:V()}),wLe=yC.extend({kind:OS(`delayed_start`),model:V().optional(),provider:V().optional(),userMessageId:V()}),SS({baseBranch:V().min(1).max(1024).optional(),deviceId:V().min(1).max(256),path:V().min(1).max(4096),repoType:ES([`git`,`github`]),sourcePath:V().min(1).max(4096)}),TLe=yC.extend({error:V().optional(),kind:OS(`worktree_start`),operationId:V(),retryable:vS().optional(),userMessageId:V(),waitingForDevice:vS().optional()}),ELe=wS(`kind`,[CLe,wLe,TLe]),SS({claim:SLe.optional(),createdAt:V(),failedAssistantMessageId:V(),kind:GOe().optional(),rateLimit:SS({rateLimitType:V().optional(),resetsAt:_S().optional()}).optional(),reason:OS(`rate_limit`),resume:SS({sessionId:V().optional(),workingDirectory:V().optional()}).optional(),source:OS(`heterogeneous_agent`),updatedAt:V(),userMessageId:V()}),DLe=SS({boundDeviceId:V().optional(),heteroEffort:kS(e=>typeof e==`string`).optional(),heteroSessionBindingKey:V().optional(),heteroSessionBindingKeyByWorkingDirectory:TS(V(),V()).optional(),heteroSessionId:V().optional(),heteroSessionIdByWorkingDirectory:TS(V(),V()).optional(),heteroPermissionMode:ES(yMe).optional(),heteroPermissionModeFallback:ES([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:ES([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:V().optional(),onboardingFeedback:SS({comment:V().max(500).optional(),rating:ES([`good`,`bad`]),submittedAt:V()}).optional(),onboardingSession:SS({agentIdentityCompletedAt:V().optional(),agentMarketplacePick:SS({categoryHints:xS(V()),installedAgentIds:xS(V()).optional(),requestId:V(),resolvedAt:V(),selectedTemplateIds:xS(V()).optional(),skipReason:V().optional(),skippedAgentIds:xS(V()).optional(),status:ES([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:V().optional(),finalAgentNames:xS(V()).optional(),finishedAt:V().optional(),lastActiveAt:V().optional(),phase:ES([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:V().optional(),userIdentityCompletedAt:V().optional(),version:_S().optional()}).optional(),provider:V().optional(),lastSettledOperationId:V().optional(),reasoningConfig:gLe.optional(),repos:xS(V()).optional(),runningOperation:KOe().optional(),taskCallbackReservation:SS({messageId:V(),reservedAt:V()}).nullable().optional(),sandboxDrive:ES([`personal`,`public`]).optional(),sandboxEnvironmentId:V().max(255).optional(),sandboxInstanceId:V().optional(),sandboxWorkingDirectory:V().max(1024).optional(),scheduledRun:ELe.nullish(),workingDirectory:V().optional(),workingDirectoryConfig:gMe.optional()}),DLe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),OLe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],ES(OLe)})),ALe=o((()=>{mLe(),bPe(),kLe()})),jLe=o((()=>{})),MLe=o((()=>{})),NLe=o((()=>{LS(),SS({currentStep:_S().min(1).max(7).optional(),finishedAt:V().optional(),version:_S()})})),PLe=o((()=>{})),FLe,ILe,LLe=o((()=>{LS(),FLe=SS({checked:vS(),id:V().min(1).max(128),instruction:V().trim().min(1).max(4e3),providerId:V().trim().min(1).max(128),reason:V().trim().min(1).max(1e3),sources:xS(SS({subject:V().trim().min(1).max(500).optional(),title:V().trim().min(1).max(500).optional(),type:V().trim().min(1).max(128),url:V().trim().min(1).max(2048)}).strict()).min(1).max(16),title:V().trim().min(1).max(200)}).strict(),ILe=SS({code:V().min(1).max(128),providerId:V().min(1).max(128),retryable:vS()}).strict(),SS({completedAt:V().optional(),createdTaskIds:TS(V().max(128),V().max(512)),errors:xS(ILe).max(16),id:V().min(1).max(512),providerIds:xS(V().min(1).max(128)).max(16),recommendations:xS(FLe).max(48),sourceFingerprint:V().min(1).max(2048),status:ES([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:V()}).strict()})),RLe,zLe,BLe,VLe,HLe=o((()=>{LS(),RLe=SS({docsMerged:vS().optional(),moveSettingsToAvatar:vS().optional(),topic:vS().optional(),uploadFileInKnowledgeBase:vS().optional()}),zLe=SS({enableBetterCodingExperience:vS().optional(),enableAgentIdentity:vS().optional(),enableAgentGraphConfig:vS().optional(),enableArtifactDeployment:vS().optional(),enablePageCollab:vS().optional(),enableClaudeCodeSdk:vS().optional(),enableCodexAppServer:vS().optional(),enableDesktopSplitView:vS().optional(),enableHeteroSessionImport:vS().optional(),enableGroupChat:vS().optional(),enableImessage:vS().optional(),enableInputMarkdown:vS().optional(),enableMessageTextSelectionActions:vS().optional(),enableIntegrations:vS().optional(),enableOAuthApps:vS().optional(),enableProjects:vS().optional(),enableSelfLearning:vS().optional(),enableTaskVerify:vS().optional(),enableEvalCapture:vS().optional(),enableTopicBugReport:vS().optional(),enableGoals:vS().optional(),enableTopicAcceptance:vS().optional(),enableDeviceTunnel:vS().optional()}),BLe=SS({acceptOnMerge:vS().optional(),commentOnPrivateRepositories:vS().optional(),commentOnPublicRepositories:vS().optional(),wakeOnCiFailure:vS().optional(),wakeOnReview:vS().optional()}),VLe=SS({github:BLe.optional()}),SS({provider:V(),providerAccountId:V()}),SS({defaultOpenInApp:V().optional(),fontFamily:V().optional(),guide:RLe.optional(),hideSyncAlert:vS().optional(),integration:VLe.optional(),lab:zLe.optional(),lastWorkspaceId:V().nullish(),projectTopicGroupMode:ES([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:xS(V()).optional(),sidebarHiddenGroupIds:xS(V()).optional(),terminalFontFamily:V().optional(),telemetry:vS().nullable(),topicGroupMode:ES([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:vS().optional(),topicSortBy:ES([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:vS().optional(),workspace:SS({order:xS(V()).optional()}).optional()}).partial()})),ULe=o((()=>{})),WLe=o((()=>{})),GLe=o((()=>{})),KLe=o((()=>{})),qLe=o((()=>{})),JLe=o((()=>{})),YLe=o((()=>{})),XLe=o((()=>{})),ZLe,bC,QLe=o((()=>{LS(),ZLe=TS(V(),TS(V(),vS())),bC=SS({enabled:vS().optional(),items:ZLe.optional()}).strict(),SS({content:SS({scheduledTaskSummary:vS().optional()}).strict().optional(),email:bC.optional(),im:bC.extend({platforms:TS(V(),bC.extend({tenantId:V().optional()}).strict()).optional()}).strict().optional(),inbox:bC.optional(),push:bC.optional()}).strict()})),$Le=o((()=>{})),eRe=o((()=>{})),tRe=o((()=>{})),nRe=o((()=>{})),rRe=o((()=>{LS(),ULe(),WLe(),GLe(),KLe(),qLe(),JLe(),YLe(),XLe(),QLe(),$Le(),eRe(),tRe(),nRe(),SS({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()})),iRe=o((()=>{GFe(),NLe(),PLe(),LLe(),HLe(),rRe()})),aRe=o((()=>{})),oRe=o((()=>{})),sRe=o((()=>{})),cRe=o((()=>{})),lRe,uRe=o((()=>{LS(),lRe=ES([`personal`,`professional`,`demographic`]),SS({description:V().optional(),episodicDate:V().optional(),extractedLabels:xS(V()).optional(),labels:TS(V(),yS()).optional(),relationship:V().optional(),role:V().optional(),type:lRe.optional(),userMemoryId:V().optional()}),SS({description:V().optional(),episodicDate:V().optional(),extractedLabels:xS(V()).optional(),labels:TS(V(),yS()).optional(),relationship:V().optional(),role:V().optional(),type:lRe.optional()})})),dRe,fRe,pRe=o((()=>{dRe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(dRe),fRe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(fRe)})),mRe=o((()=>{})),hRe=o((()=>{})),gRe,_Re,vRe,xC,yRe,bRe,xRe,SRe=o((()=>{gRe=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(gRe),_Re=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(_Re),vRe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(vRe),xC=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(xC),yRe=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(yRe),bRe=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(bRe),xRe=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(xRe)})),CRe=o((()=>{})),SC,wRe,TRe,ERe,DRe,ORe,kRe,ARe,jRe,MRe,NRe,PRe,FRe,IRe=o((()=>{LS(),SRe(),SC=AS(e=>typeof e==`string`?[e]:e,xS(V().trim().min(1))),wRe=e=>AS(e=>typeof e==`string`?[e]:e,xS(e)),TRe=ES([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),ERe=SS({activities:_S().int().min(0).optional(),contexts:_S().int().min(0).optional(),experiences:_S().int().min(0).optional(),identities:_S().int().min(0).optional(),preferences:_S().int().min(0).optional()}),DRe=SS({end:IS().optional(),field:TRe.optional(),start:IS().optional()}),ORe=ES([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),kRe=SS({date:IS(),selector:OS(`day`)}),ARe=SS({month:_S().int().min(1).max(12),selector:OS(`month`),year:_S().int().min(1970).max(9999)}),jRe=SS({end:IS().optional(),selector:OS(`range`),start:IS().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),MRe=SS({selector:OS(`year`),year:_S().int().min(1970).max(9999)}),NRe=ES([`today`,`yesterday`]),PRe=oke(()=>CS([SS({selector:ORe}),kRe,ARe,SS({anchor:CS([NRe,PRe]),offsetDays:_S().int(),selector:OS(`relativeDay`)}),jRe,MRe])),SS({categories:SC.optional(),effort:ES([`low`,`medium`,`high`]).optional(),labels:SC.optional(),layers:wRe(DS(xC)).optional(),queries:SC.optional(),relationships:SC.optional(),status:SC.optional(),tags:SC.optional(),timeIntent:PRe.optional(),timeRange:DRe.optional(),topK:ERe.optional(),types:SC.optional()}),FRe=ES([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),SS({include:wRe(FRe).optional(),layers:xS(DS(xC)).optional(),limit:_S().int().min(1).max(100).optional(),q:V().trim().optional(),timeRange:DRe.optional()})})),LRe=o((()=>{})),RRe=o((()=>{aRe(),oRe(),sRe(),cRe(),uRe(),pRe(),mRe(),hRe(),SRe(),CRe(),IRe(),LRe()})),zRe=o((()=>{})),BRe=o((()=>{})),VRe=o((()=>{BRe()})),HRe=o((()=>{})),URe=o((()=>{})),WRe=o((()=>{HRe(),URe()})),GRe,KRe=o((()=>{GRe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(GRe).flatMap(([e,t])=>t.map(t=>[t,e])))})),qRe=o((()=>{})),JRe=o((()=>{LS(),SS({start:_S().finite().nonnegative()}).strict()})),YRe=o((()=>{LS(),SS({preconditions:xS(V().max(4e3)).max(100).optional(),expected:V().max(2e4).optional(),fixtures:xS(SS({id:V().min(1),name:V().min(1),description:V().optional(),resource:SS({type:ES([`file`,`document`]),id:V().min(1)}).optional(),data:TS(V(),bS()).optional()})).max(100).optional(),steps:xS(SS({id:V().min(1),instruction:V().min(1),expected:V().optional(),fixtureIds:xS(V()).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`]})})})),CC,XRe,ZRe=o((()=>{LS(),CC=SS({height:_S().finite(),width:_S().finite(),x:_S().finite(),y:_S().finite()}),XRe=SS({commit:V().max(200).optional(),context:TS(V().max(100),CS([V().max(500),_S(),vS()])).optional(),env:SS({consoleErrors:xS(V().max(2e3)).max(10),userAgent:V().max(500)}).optional(),intent:ES([`change`,`comment`]),region:CC.optional(),regionRefs:xS(SS({box:CC,selector:V().max(2e3),text:V().max(200).optional()}).nullable()).max(6).optional(),route:V().max(500).optional(),scroll:SS({x:_S().finite(),y:_S().finite()}),targets:xS(SS({code:SS({chain:xS(SS({file:V().max(500).optional(),line:_S().int().optional(),name:V().max(200)})).max(5),column:_S().int(),file:V().max(500),line:_S().int()}).optional(),label:V().max(200),rect:CC,selector:V().max(2e3),text:V().max(200).optional()})).max(8),title:V().max(300).optional(),url:V().url().max(2e3),v:OS(1),viewport:SS({dpr:_S().positive(),height:_S().finite(),width:_S().finite()})}),SS({anchor:XRe.optional(),clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3),parentId:V().trim().min(1).max(64).optional(),screenshot:SS({dataUrl:V().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`}),SS({note:V().trim().max(2e3).optional(),verdict:ES([`accept`,`send_back`])})})),QRe,wC,TC,EC,$Re,eze,tze,nze,rze,ize,aze,oze=o((()=>{LS(),ZRe(),QRe=[`region`,`element`,`sketch`],wC=_S().finite(),TC=SS({height:wC,width:wC,x:wC,y:wC}),EC=XRe.shape,$Re=oke(()=>SS({children:xS($Re).max(50),rect:TC,type:ES([`avatar`,`button`,`card`,`image`,`input`,`text`])})),eze=SS({commit:EC.commit,context:EC.context,env:EC.env}),tze=SS({description:V().max(500).optional(),favicon:V().max(2e3).optional(),lang:V().max(35).optional(),title:V().max(300).optional()}),nze=SS({clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3),context:eze.optional(),kind:ES(QRe),pageMeta:tze.optional(),rectDocument:TC,rectViewport:TC,regionRefs:EC.regionRefs,regions:xS(TC).max(6).optional(),routeKey:V().max(500),scroll:SS({x:wC,y:wC}),sketch:xS($Re).max(50).optional(),targets:EC.targets.optional(),url:V().url().max(2e3),viewport:SS({dpr:_S().positive(),height:wC,width:wC})}),rze=64*1024,ize=SS({dataUrl:V().regex(/^data:image\/(jpeg|webp);base64,/)}),nze.extend({screenshot:ize.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=rze,{message:`Mark is too large`}),SS({content:V().trim().min(1).max(4e3).optional(),rectDocument:TC.optional(),rectViewport:TC.optional(),regionRefs:EC.regionRefs,regions:xS(TC).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),SS({agentId:V().trim().min(1).max(255).optional(),feedback:V().trim().max(4e3).optional()}),aze=[`pass`,`not_fixed`],SS({reason:V().trim().max(2e3).optional(),verdict:ES(aze)}),SS({clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3)})})),sze=o((()=>{})),cze=o((()=>{})),lze=o((()=>{})),uze,dze,fze,pze,mze,hze,gze,_ze,vze,yze=o((()=>{LS(),uze=[`new`,`reuse`],dze=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,fze=SS({channelId:V().min(1),threadId:V().min(1).optional()}).strict(),pze=SS({arguments:TS(V(),bS()),delivery:fze.optional(),eventName:V().min(1),linkId:V().min(1).optional()}).strict(),mze=SS({cursor:V().nullable().optional(),deliveryStatus:SS({active:vS().optional(),failedSince:V().optional(),lastDeliveryAt:V().optional(),lastError:V().nullable().optional(),retryAfterMs:_S().nonnegative().optional(),throttled:vS().optional()}).optional(),refreshBefore:uAe({offset:!0}).nullable().optional(),remoteSubscriptionId:V().optional(),truncated:vS().optional()}).strict(),hze=SS({scheme:OS(`standard_webhooks`)}).strict(),gze=SS({autoApprove:vS(),delivery:fze.optional(),identifier:V().regex(dze).optional(),topicMode:ES(uze),topicId:V().min(1).optional()}).strict(),_ze=SS({}).strict(),vze=SS({scheme:OS(`bearer_token`)}).strict(),wS(`kind`,[SS({kind:OS(`mcp_events`),config:pze,state:mze,verification:hze}),SS({kind:OS(`generic`),config:gze,state:_ze,verification:vze})])})),bze=o((()=>{})),xze=o((()=>{})),Sze=o((()=>{})),Cze=o((()=>{})),wze=o((()=>{})),Tze=o((()=>{})),Eze=o((()=>{})),Dze=o((()=>{})),Oze=o((()=>{Eze(),Dze()})),kze=o((()=>{})),Aze=o((()=>{})),jze=o((()=>{})),Mze=o((()=>{uMe(),fMe(),pMe(),mMe(),wMe(),EMe(),AMe(),jMe(),MMe(),PMe(),FMe(),IMe(),TPe(),EPe(),DPe(),OPe(),kPe(),APe(),jPe(),NPe(),FPe(),IPe(),LPe(),RPe(),zPe(),BPe(),VPe(),vMe(),HPe(),UPe(),WPe(),$Pe(),rFe(),iFe(),aFe(),BMe(),oFe(),CFe(),wFe(),TFe(),EFe(),OFe(),FFe(),IFe(),JFe(),YFe(),XFe(),ZFe(),QFe(),sIe(),cIe(),lIe(),uIe(),dIe(),hIe(),gIe(),_Ie(),vIe(),yIe(),xIe(),SIe(),CIe(),wIe(),IIe(),LIe(),RIe(),zIe(),UIe(),WIe(),GIe(),KIe(),qIe(),JIe(),YIe(),OIe(),XIe(),ZIe(),tLe(),iLe(),oLe(),sLe(),pLe(),aPe(),ALe(),jLe(),MLe(),vPe(),iRe(),RRe(),zRe(),VRe(),WRe(),KRe(),qRe(),JRe(),YRe(),ZRe(),oze(),KMe(),sze(),cze(),lze(),bMe(),yze(),bze(),xze(),Sze(),Cze(),wze(),Tze(),Oze(),vPe(),RRe(),kze(),Aze(),jze()})),Nze=o((()=>{})),Pze,DC,Fze=o((()=>{Pze=[`*`,`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(Pze),DC=(e,t)=>({read:e,write:t}),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,null),DC(`knowledge:read`,`knowledge:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,null),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`model:read`,`model:write`),DC(`model:read`,`model:write`),DC(`chat:read`,null),DC(`chat:read`,`chat:write`),DC(`knowledge:read`,`knowledge:write`),DC(`model:read`,`model:write`),DC(`agent:read`,null),DC(`knowledge:read`,`knowledge:write`),DC(`knowledge:read`,`knowledge:write`),DC(`knowledge:read`,`knowledge:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`user:read`,`user:write`),DC(`file:read`,`file:write`),DC(`file:read`,`file:write`),DC(`chat:read`,`chat:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`chat:read`,`chat:write`),DC(`knowledge:read`,`knowledge:write`),DC(`knowledge:read`,`knowledge:write`),DC(`agent:read`,`agent:write`),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`agent:read`,`agent:write`),DC(`knowledge:read`,`knowledge:write`),DC(`user:read`,`user:write`),DC(`chat:read`,`chat:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`chat:read`,null),DC(`chat:read`,null),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`file:read`,`file:write`),DC(`usage:read`,null),DC(`user:read`,`user:write`),DC(`user:read`,`user:write`),DC(`user:read`,`user:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,null),DC(`agent:read`,`agent:write`),DC(`workspace:read`,`workspace:write`),DC(`workspace:read`,null),DC(`workspace:read`,null),DC(`workspace:read`,`workspace:write`)})),OC,Ize=o((()=>{OC=1024*1024,10*OC,10*OC,10*OC,10*OC,50*OC,50*OC,20*OC,5*OC,20*OC,2*OC,100*OC})),Lze=o((()=>{}));function Rze(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=Vze.test(e[0]);zze.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(Bze,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(Bze,`$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 kC(...e){return Rze(Array.from(Array.isArray(e[0])?e[0]:e))}var zze,Bze,Vze,Hze=o((()=>{zze=RegExp(`^[^/:\\d][^/:]*:/*$`),Bze=RegExp(`^([^/:\\d][^/:]*):/*`),Vze=/^[^/:]+:\d+(?:[/?#]|$)/})),Uze,AC,Wze,Gze,jC,MC,Kze,qze,Jze,Yze,Xze,Zze,Qze=o((()=>{Hze(),Uze=`https://app.lobehub.com`,AC=`https://lobehub.com`,Wze=AC,Gze=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},jC=`https://github.com/lobehub/lobehub`,kC(jC,`issues/new/choose`),MC=kC(AC,`/docs`),Kze=kC(MC,`/usage`),qze=kC(MC,`/self-hosting`),kC(qze,`/server-database`),`${MC}`,kC(Kze,`/plugins/development`),kC(qze,`/advanced/upstream-sync`),kC(AC,`blog`),kC(jC,`issues/new/choose`),kC(AC,`/privacy`),kC(AC,`/terms`),Jze=`https://github.com/lobehub/lobe-chat-agents`,kC(Jze,`issues/new`),Yze=(e,t)=>`/agent/${e}`,Xze=(e,t,n)=>kC(`/agent`,e,t),Zze=(e,t)=>kC(`/group`,e,t),kC(jC,`releases`),kC(AC,`changelog`),kC(AC,`/downloads`),kC(AC,`/mobile`)})),$ze=o((()=>{Qze()})),eBe=o((()=>{$ze()})),tBe=o((()=>{})),nBe,NC,rBe,iBe,aBe=o((()=>{nBe=e=>e.join(`+`),NC={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},rBe=[{electronAccelerator:`Alt+Shift+Space`,id:NC.QuickComposer,uiKeys:nBe([`alt`,`shift`,`space`])},{electronAccelerator:``,id:NC.QuickChat,uiKeys:``},{electronAccelerator:``,id:NC.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:NC.OpenSettings,nonEditable:!0,uiKeys:nBe([`mod`,`comma`])}],iBe=rBe.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),rBe.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),oBe=o((()=>{aBe(),iBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),sBe,cBe,lBe,uBe=o((()=>{JS(),sBe={},cBe=mje,lBe=`/avatars/lobe-ai.png`})),PC=o((()=>{JS()})),dBe,fBe,pBe,mBe,hBe=o((()=>{JS(),uBe(),PC(),dBe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},fBe={model:KS,provider:qS},pBe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:fBe,searchMode:`auto`,selfIteration:{enabled:!1}},mBe={chatConfig:pBe,model:KS,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:qS,systemRole:``,tts:dBe}})),gBe=o((()=>{})),_Be=o((()=>{})),vBe,yBe,bBe,xBe,SBe,CBe,wBe,TBe,EBe,DBe,OBe,kBe,ABe,jBe,MBe,NBe,PBe,FBe=o((()=>{vBe=`@lobehub/lobehub`,yBe=`2.3.4`,bBe=`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.`,xBe=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],SBe=`https://github.com/lobehub/lobehub`,CBe={url:`https://github.com/lobehub/lobehub/issues/new/choose`},wBe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},TBe=`LobeHub <i@lobehub.com>`,EBe=[`./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`],DBe=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],OBe={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: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`},kBe={"@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`},ABe=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-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-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"}`),jBe={"@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`},MBe=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,NBe={access:`public`,registry:`https://registry.npmjs.org`},PBe={name:vBe,version:yBe,description:bBe,keywords:xBe,homepage:SBe,bugs:CBe,repository:wBe,license:`MIT`,author:TBe,sideEffects:EBe,workspaces:DBe,scripts:OBe,"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:kBe,dependencies:ABe,devDependencies:jBe,packageManager:MBe,publishConfig:NBe}})),FC,IC,LC=o((()=>{JS(),FBe(),FC=PBe.version,IC=GS!==`LobeHub`})),RC,zC,BC,VC,HC,IBe,LBe=o((()=>{LC(),RC=e=>e.join(`+`),zC={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`},BC={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`},VC={Conversation:`conversation`,Essential:`essential`},HC={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},IBe=[{group:VC.Essential,id:BC.CommandPalette,keys:RC([zC.Mod,`k`]),scopes:[HC.Global]},{group:VC.Essential,id:BC.Search,keys:RC([zC.Mod,`j`]),scopes:[HC.Global]},{group:VC.Essential,id:BC.SwitchAgent,keys:RC([zC.Ctrl,zC.Number]),nonEditable:!0,scopes:[HC.Global]},{group:VC.Essential,id:BC.SwitchTab,keys:RC([zC.Mod,zC.Number]),nonEditable:!0,scopes:[HC.Global]},{group:VC.Essential,id:BC.NextTab,keys:RC([zC.Ctrl,zC.Tab]),nonEditable:!0,scopes:[HC.Global]},{group:VC.Essential,id:BC.PrevTab,keys:RC([zC.Ctrl,zC.Shift,zC.Tab]),nonEditable:!0,scopes:[HC.Global]},{group:VC.Essential,id:BC.NavigateToChat,keys:RC([zC.Ctrl,zC.Shift,zC.Backquote]),scopes:[HC.Global]},{group:VC.Essential,id:BC.ToggleLeftPanel,keys:RC([zC.Mod,zC.BracketLeft]),scopes:[HC.Global]},{group:VC.Essential,id:BC.ToggleRightPanel,keys:RC([zC.Mod,zC.BracketRight]),scopes:[HC.Global]},{group:VC.Essential,id:BC.OpenHotkeyHelper,keys:RC([zC.Ctrl,zC.Shift,zC.QuestionMark]),scopes:[HC.Global]},{group:VC.Essential,id:BC.ToggleFavorite,keys:RC([zC.Alt,`f`]),scopes:[HC.Global]},{group:VC.Essential,id:BC.OpenTaskFilter,keys:`f`,scopes:[HC.Global]},{group:VC.Conversation,id:BC.FindInTopic,keys:RC([zC.Mod,`f`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.ToggleTerminalPanel,keys:RC([zC.Ctrl,zC.Backquote]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.OpenChatSettings,keys:RC([zC.Alt,zC.Comma]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.RegenerateMessage,keys:RC([zC.Alt,`r`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.DeleteLastMessage,keys:RC([zC.Alt,`d`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.DeleteAndRegenerateMessage,keys:RC([zC.Alt,zC.Shift,`r`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.SaveTopic,keys:RC([zC.Alt,`n`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.EditMessage,keys:RC([zC.Alt,zC.LeftDoubleClick]),nonEditable:!0,scopes:[HC.Chat]},{group:VC.Essential,id:BC.SaveDocument,keys:RC([zC.Mod,`s`]),scopes:[HC.Files]}]})),RBe=o((()=>{LBe(),IBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),zBe=o((()=>{})),BBe=o((()=>{JS(),PC()})),VBe=o((()=>{})),HBe=o((()=>{})),UBe,UC,WBe=o((()=>{JS(),BBe(),PC(),UBe={model:KS,provider:qS},UC={model:Dje,provider:Oje},UC.model,UC.provider,UC.model,UC.provider,UC.model,UC.provider,{...UBe},Reflect.get(Jje,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(Jje,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),GBe=o((()=>{})),KBe=o((()=>{})),WC=o((()=>{hBe(),gBe(),_Be(),RBe(),zBe(),BBe(),PC(),VBe(),HBe(),WBe(),GBe(),KBe()})),qBe=o((()=>{WC(),new Date().toISOString()})),JBe=o((()=>{})),YBe=o((()=>{Object.freeze([])})),XBe=o((()=>{})),ZBe,QBe,$Be,eVe=o((()=>{ZBe=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],QBe=2*1024*1024*1024-1,`${QBe}`,$Be=64*1024*1024,`${$Be}`,[...ZBe]})),tVe,nVe=o((()=>{JS(),`${GS}`,tVe=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(tVe)})),rVe,iVe=o((()=>{rVe=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(rVe)})),aVe=o((()=>{})),oVe=o((()=>{})),sVe=o((()=>{})),cVe=o((()=>{})),lVe=o((()=>{})),uVe=o((()=>{})),dVe,fVe=o((()=>{$n(),dVe=(e,t)=>dn({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),pVe,mVe,hVe=o((()=>{uBe(),WC(),fVe(),pVe=`agent`,mVe={config:mBe,createdAt:new Date,id:``,meta:sBe,model:mBe.model,type:pVe,updatedAt:new Date},dVe(mVe,{id:`inbox`,meta:{avatar:lBe}})})),gVe=o((()=>{})),_Ve=o((()=>{})),vVe=o((()=>{})),yVe=o((()=>{})),bVe=o((()=>{})),xVe=o((()=>{})),SVe=o((()=>{})),CVe=o((()=>{})),wVe,TVe,EVe=o((()=>{JS(),WC(),wVe={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:{...wVe}},TVe.high.contexts})),DVe=o((()=>{})),OVe=o((()=>{})),GC=o((()=>{Pxe(),Ixe(),Lxe(),Gxe(),Nze(),Fze(),Ize(),Lze(),eBe(),tBe(),oBe(),aBe(),qBe(),JBe(),YBe(),XBe(),eVe(),nVe(),iVe(),aVe(),oVe(),$ze(),sVe(),uBe(),cVe(),lVe(),uVe(),hVe(),WC(),gVe(),_Ve(),vVe(),yVe(),bVe(),xVe(),SVe(),Qze(),CVe(),EVe(),LC(),DVe(),OVe()}));GC();var KC=[[`LobeHub Cloud`,pje,`LobeHub Cloud`],[`LobeHub`,GS,`LobeHub`],[`LobeChat`,GS,`LobeHub`],[`Lobe AI`,cBe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),kVe=new Map(KC),AVe=`Lobe`,jVe=KC.length?RegExp(`(?<!@)(${KC.map(([e])=>e).join(`|`)})`,`g`):void 0,MVe=KC.length>0,NVe=`brandStrings`,PVe=e=>!jVe||!e.includes(AVe)?e:e.replaceAll(jVe,e=>kVe.get(e)??e),FVe={name:NVe,process:e=>typeof e==`string`?PVe(e):e,type:`postProcessor`},IVe=MVe?{postProcess:[NVe]}:{},LVe=e=>MVe?e.use(FVe):e,RVe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},zVe=c({default:()=>BVe}),BVe,VVe=o((()=>{BVe={"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 kDe(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;kDe(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 ADe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function jDe(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!PDe.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]??ADe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}ex(n,r,e.length===1?e[0]:jDe(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=ADe(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 MDe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of PDe)if(t in e)return;let n=t.filter(e=>FDe.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=jDe(t);else{let e=n[0],i=FDe.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=>jDe([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,tS(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)):tS(i,s),tS(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())kDe(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)??[])MDe(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}tS(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,ex(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:aS(t,`input`,e.processors),output:aS(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function iS(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 iS(r.element,n);if(r.type===`set`)return iS(r.valueType,n);if(r.type===`lazy`)return iS(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 iS(r.innerType,n);if(r.type===`intersection`)return iS(r.left,n)||iS(r.right,n);if(r.type===`record`||r.type===`map`)return iS(r.keyType,n)||iS(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:iS(r.in,n)||iS(r.out,n);if(r.type===`object`){for(let e in r.shape)if(iS(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(iS(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(iS(e,n))return!0;return!!(r.rest&&iS(r.rest,n))}return!1}var PDe,FDe,IDe,aS,oS=o((()=>{yEe(),vx(),PDe=new Set([`type`,`properties`,`required`,`additionalProperties`]),FDe=[`oneOf`,`anyOf`],IDe=(e,t={})=>n=>{let r=EDe({...n,processors:t});return rS(e,r),ODe(r,e),NDe(r,e)},aS=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=EDe({...i??{},target:a,io:t,processors:n});return rS(e,o),ODe(o,e),NDe(o,e)}}));function sS(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)JDe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&lS(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&lS(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&uS(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&uS(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&VDe(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&UDe(t,i.mime);for(let e of i.patterns??[])HDe(t,e);return t}function cS(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?cS(t.out):t.type===`catch`?cS(t.innerType):e._zod.optin}function LDe(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=LDe(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>LDe(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?jx:ZCe).source),p):p}function RDe(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 dS.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=LDe(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}function zDe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(nS(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),fS):JSON.parse(o)}var lS,uS,BDe,VDe,HDe,UDe,WDe,GDe,KDe,qDe,JDe,YDe,XDe,ZDe,QDe,$De,eOe,tOe,nOe,rOe,iOe,aOe,oOe,sOe,cOe,lOe,uOe,dOe,fOe,pOe,mOe,dS,hOe,gOe,_Oe,fS,vOe,yOe,bOe,xOe,SOe,COe,wOe,TOe=o((()=>{Mx(),tEe(),oS(),vx(),lS=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},uS=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},BDe=(e,t)=>{lS(e,`minimum`,t),uS(e,`maximum`,t)},VDe=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},HDe=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},UDe=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},WDe=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},GDe=(e,t)=>lS(e,`minimum`,t.minimum),KDe=(e,t)=>uS(e,`maximum`,t.maximum),qDe=e=>(t,n)=>{WDe(t,n.format);let[r,i]=e[n.format];lS(t,`minimum`,r),uS(t,`maximum`,i)},JDe={greater_than:(e,t)=>lS(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>uS(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>VDe(e,t.value),number_format:qDe(HSe),bigint_format:qDe(USe),min_length:GDe,max_length:KDe,length_equals:(e,t)=>BDe(e,t.length),min_size:GDe,max_size:KDe,size_equals:(e,t)=>BDe(e,t.size),string_format:(e,t)=>{WDe(e,t.format),t.pattern&&HDe(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)=>UDe(e,t.mime)},YDe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},XDe=new Map([[_Te,WCe],[Hx,GCe]]),ZDe=e=>XDe.get(e)??e,QDe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=sS(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=YDe[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(ZDe);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}))])}},$De=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=sS(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)):nS(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}))])}},eOe=(e,t,n,r)=>{n.type=`boolean`},tOe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},nOe=(e,t,n,r)=>{nS(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},rOe=(e,t,n,r)=>{n.not={}},iOe=(e,t,n,r)=>{},aOe=(e,t,n,r)=>{},oOe=(e,t,n,r)=>{nS(e,t,n,r,`Date cannot be represented in JSON Schema`)},sOe=(e,t,n,r)=>{let i=e._zod.def,a=eSe(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},cOe=(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(nS(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(nS(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},lOe=(e,t,n,r)=>{nS(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},uOe=(e,t,n,r)=>{nS(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},dOe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=sS(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=rS(a.element,t,{...r,path:[...r.path,`items`]})},fOe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&nS(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)ex(i.properties,e,rS(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`?cS(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=rS(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},pOe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>rS(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},mOe=(e,t,n,r)=>{let i=e._zod.def,a=rS(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=rS(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)},dS=new WeakMap,hOe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=sS(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=rS(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)ex(i.patternProperties,ZDe(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=rS(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=dS.get(t);n||(n=[],dS.set(t,n),t.deferred.push(()=>RDe(t))),n.push(e)}i.additionalProperties=rS(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&cS(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))}},gOe=(e,t,n,r)=>{let i=e._zod.def,a=rS(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`}]},_Oe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},fS=Symbol(),vOe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=zDe(i.defaultValue,e,t,n,r);o!==fS&&(n.default=o)},yOe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=zDe(i.defaultValue,e,t,n,r);o!==fS&&(n._prefault=o)},bOe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{nS(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},xOe=(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;rS(o,t,r);let s=t.seen.get(e);s.ref=o},SOe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},COe=(e,t,n,r)=>{let i=e._zod.def;rS(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},wOe=(e,t,n,r)=>{let i=e._zod.innerType;rS(i,t,r);let a=t.seen.get(e);a.ref=i}})),pS=o((()=>{wx(),SCe(),sCe(),tEe(),fEe(),_we(),xwe(),vx(),Mx(),hEe(),yEe(),ywe(),bEe(),TDe(),oS(),TOe(),oS()})),EOe=o((()=>{pS()}));function mS(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 DOe,OOe,hS,kOe=o((()=>{pS(),vx(),DOe=new WeakSet([Object.prototype,Error.prototype]),OOe=(e,t)=>{oCe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);DOe.has(n)||(DOe.add(n),mS(n,`format`,e=>t=>nCe(e,t)),mS(n,`flatten`,e=>t=>tCe(e,t)),mS(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,nSe,2)}),mS(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,nSe,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},hS=yx(`ZodError`,OOe,void 0,{Parent:Error})})),AOe,jOe,MOe,NOe,POe,FOe,IOe,LOe,ROe,zOe,BOe,VOe,HOe=o((()=>{pS(),kOe(),AOe=Dx(hS),jOe=Ox(hS),MOe=kx(hS),NOe=Ax(hS),POe=mCe(hS),FOe=hCe(hS),IOe=gCe(hS),LOe=_Ce(hS),ROe=vCe(hS),zOe=yCe(hS),BOe=bCe(hS),VOe=xCe(hS)}));function UOe(){Cx.localeError||bx(pEe())}function gS(){Cx.memoizer||bx({memoizer:oEe()})}function V(e){return SEe(uke,e)}function _S(e){return YEe(Nke,e)}function WOe(e){return XEe(Pke,e)}function vS(e){return ZEe(Fke,e)}function GOe(e){return QEe(Ike,e)}function KOe(e){return $Ee(Lke,e)}function yS(){return eDe(Rke)}function bS(){return tDe(zke)}function qOe(e){return nDe(Bke,e)}function xS(e,t){return bDe(Hke,e,t)}function SS(e,t){return new Uke({type:`object`,shape:e??{},...cx(t)})}function JOe(e,t){return new Uke({type:`object`,shape:e,catchall:qOe(),...cx(t)})}function CS(e,t){return new Wke({type:`union`,options:e,...cx(t)})}function wS(e,t,n){return new Gke({type:`union`,options:t,discriminator:e,...cx(n)})}function YOe(e,t){return new Kke({type:`intersection`,left:e,right:t})}function TS(e,t,n){return!t||!t._zod?new qke({type:`record`,keyType:V(),valueType:e,...cx(t)}):new qke({type:`record`,keyType:e,valueType:t,...cx(n)})}function ES(e,t){return new PS({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...cx(t)})}function DS(e,t){return new PS({type:`enum`,entries:e,...cx(t)})}function OS(e,t){return new Jke({type:`literal`,values:Array.isArray(e)?e:[e],...cx(t)})}function XOe(e){return new Yke({type:`transform`,transform:e})}function ZOe(e){return new Xke({type:`optional`,innerType:e})}function QOe(e){return new Zke({type:`optional`,innerType:e})}function $Oe(e){return new Qke({type:`nullable`,innerType:e})}function eke(e,t){return new $ke({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():pSe(t)}})}function tke(e,t){return new eAe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():pSe(t)}})}function nke(e,t){return new tAe({type:`nonoptional`,innerType:e,...cx(t)})}function rke(e,t){return new nAe({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:ISe(t)})}function ike(e,t){return new rAe({type:`pipe`,in:e,out:t})}function ake(e){return new aAe({type:`readonly`,innerType:e})}function oke(e){return new oAe({type:`lazy`,getter:e})}function kS(e,t){return xDe(sAe,e??(()=>!0),t)}function ske(e,t={}){return SDe(sAe,e,t)}function cke(e,t){return CDe(e,t)}function AS(e,t){return new iAe({type:`pipe`,in:XOe(e),out:t})}var jS,lke,uke,MS,dke,fke,pke,mke,hke,gke,NS,_ke,vke,yke,bke,xke,Ske,Cke,wke,Tke,Eke,Dke,Oke,kke,Ake,jke,Mke,Nke,Pke,Fke,Ike,Lke,Rke,zke,Bke,Vke,Hke,Uke,Wke,Gke,Kke,qke,PS,Jke,Yke,Xke,Zke,Qke,$ke,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,FS=o((()=>{pS(),TOe(),oS(),hEe(),EOe(),HOe(),jS=yx(`ZodType`,(e,t)=>(UOe(),zx.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(rx(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 sx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(ske(e,t))},superRefine(e,t){return this.check(cke(e,t))},overwrite(e){return this.check(eS(e))},optional(){return ZOe(this)},exactOptional(){return QOe(this)},nullable(){return $Oe(this)},nullish(){return ZOe($Oe(this))},nonoptional(e){return nke(this,e)},array(){return xS(this)},or(e){return CS([this,e])},and(e){return YOe(this,e)},transform(e){return ike(this,XOe(e))},default(e){return eke(this,e)},prefault(e){return tke(this,e)},catch(e){return rke(this,e)},pipe(e){return ike(this,e)},readonly(){return ake(this)},describe(e){let t=this.clone();return Xx.add(t,{description:e}),t},meta(...e){if(e.length===0)return Xx.get(this);let t=this.clone();return Xx.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 jSe(this,`~standard`,{...Cwe(this),jsonSchema:{input:aS(this,`input`),output:aS(this,`output`)}})},set"~standard"(e){hx(this,`~standard`,e)},parse:function e(t,n){return AOe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await jOe(this,t,n,{callee:e})},safeParse(e,t){return MOe(this,e,t)},async safeParseAsync(e,t){return NOe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){hx(this,`spa`,e)},validate(e,t){return fCe(this,e,t)},validateAsync(e,t){return pCe(this,e,t)},encode:function e(t,n){return POe(this,t,n,{callee:e})},decode:function e(t,n){return FOe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await IOe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await LOe(this,t,n,{callee:e})},safeEncode(e,t){return ROe(this,e,t)},safeDecode(e,t){return zOe(this,e,t)},async safeEncodeAsync(e,t){return BOe(this,e,t)},async safeDecodeAsync(e,t){return VOe(this,e,t)},toJSONSchema(e){return IDe(this,{})(e)},get description(){return Xx.get(this)?.description},get _def(){return this._zod.def}}),lke=yx(`_ZodString`,(e,t)=>{Bx.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QDe(e,t,n,r)},MSe({format:e=>sS(e).format??null,minLength:e=>sS(e).minimum??null,maxLength:e=>sS(e).maximum??null},{regex(...e){return this.check(lDe(...e))},includes(...e){return this.check(fDe(...e))},startsWith(...e){return this.check(pDe(...e))},endsWith(...e){return this.check(mDe(...e))},min(...e){return this.check($x(...e))},max(...e){return this.check(sDe(...e))},length(...e){return this.check(cDe(...e))},nonempty(...e){return this.check($x(1,...e))},lowercase(e){return this.check(uDe(e))},uppercase(e){return this.check(dDe(e))},trim(){return this.check(gDe())},normalize(...e){return this.check(hDe(...e))},toLowerCase(){return this.check(_De())},toUpperCase(){return this.check(vDe())},slugify(){return this.check(yDe())}})),uke=yx(`ZodString`,(e,t)=>{Bx.init(e,t),lke.init(e,t)},{email(e){return this.check(CEe(hke,e))},url(e){return this.check(kEe(_ke,e))},jwt(e){return this.check(WEe(Mke,e))},emoji(e){return this.check(AEe(vke,e))},guid(e){return this.check(wEe(gke,e))},uuid(e){return this.check(TEe(NS,e))},uuidv4(e){return this.check(EEe(NS,e))},uuidv6(e){return this.check(DEe(NS,e))},uuidv7(e){return this.check(OEe(NS,e))},nanoid(e){return this.check(jEe(yke,e))},cuid(e){return this.check(MEe(bke,e))},cuid2(e){return this.check(NEe(xke,e))},ulid(e){return this.check(PEe(Ske,e))},base64(e){return this.check(VEe(kke,e))},base64url(e){return this.check(HEe(Ake,e))},xid(e){return this.check(FEe(Cke,e))},ksuid(e){return this.check(IEe(wke,e))},ipv4(e){return this.check(LEe(Tke,e))},ipv6(e){return this.check(REe(Eke,e))},cidrv4(e){return this.check(zEe(Dke,e))},cidrv6(e){return this.check(BEe(Oke,e))},e164(e){return this.check(UEe(jke,e))},datetime(e){return this.check(GEe(dke,e))},date(e){return this.check(KEe(fke,e))},time(e){return this.check(qEe(pke,e))},duration(e){return this.check(JEe(mke,e))}}),MS=yx(`ZodStringFormat`,(e,t)=>{Vx.init(e,t),lke.init(e,t)}),dke=yx(`ZodISODateTime`,(e,t)=>{cTe.init(e,t),MS.init(e,t)}),fke=yx(`ZodISODate`,(e,t)=>{lTe.init(e,t),MS.init(e,t)}),pke=yx(`ZodISOTime`,(e,t)=>{uTe.init(e,t),MS.init(e,t)}),mke=yx(`ZodISODuration`,(e,t)=>{dTe.init(e,t),MS.init(e,t)}),hke=yx(`ZodEmail`,(e,t)=>{Qwe.init(e,t),MS.init(e,t)}),gke=yx(`ZodGUID`,(e,t)=>{Xwe.init(e,t),MS.init(e,t)}),NS=yx(`ZodUUID`,(e,t)=>{Zwe.init(e,t),MS.init(e,t)}),_ke=yx(`ZodURL`,(e,t)=>{eTe.init(e,t),MS.init(e,t)}),vke=yx(`ZodEmoji`,(e,t)=>{tTe.init(e,t),MS.init(e,t)}),yke=yx(`ZodNanoID`,(e,t)=>{nTe.init(e,t),MS.init(e,t)}),bke=yx(`ZodCUID`,(e,t)=>{rTe.init(e,t),MS.init(e,t)}),xke=yx(`ZodCUID2`,(e,t)=>{iTe.init(e,t),MS.init(e,t)}),Ske=yx(`ZodULID`,(e,t)=>{aTe.init(e,t),MS.init(e,t)}),Cke=yx(`ZodXID`,(e,t)=>{oTe.init(e,t),MS.init(e,t)}),wke=yx(`ZodKSUID`,(e,t)=>{sTe.init(e,t),MS.init(e,t)}),Tke=yx(`ZodIPv4`,(e,t)=>{fTe.init(e,t),MS.init(e,t)}),Eke=yx(`ZodIPv6`,(e,t)=>{mTe.init(e,t),MS.init(e,t)}),Dke=yx(`ZodCIDRv4`,(e,t)=>{hTe.init(e,t),MS.init(e,t)}),Oke=yx(`ZodCIDRv6`,(e,t)=>{gTe.init(e,t),MS.init(e,t)}),kke=yx(`ZodBase64`,(e,t)=>{vTe.init(e,t),MS.init(e,t)}),Ake=yx(`ZodBase64URL`,(e,t)=>{yTe.init(e,t),MS.init(e,t)}),jke=yx(`ZodE164`,(e,t)=>{bTe.init(e,t),MS.init(e,t)}),Mke=yx(`ZodJWT`,(e,t)=>{xTe.init(e,t),MS.init(e,t)}),Nke=yx(`ZodNumber`,(e,t)=>{STe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$De(e,t,n,r),e.isFinite=!0},MSe({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=sS(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=sS(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=sS(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>sS(e).format??null},{gt(e,t){return this.check(aDe(e,t))},gte(e,t){return this.check(Qx(e,t))},min(e,t){return this.check(Qx(e,t))},lt(e,t){return this.check(iDe(e,t))},lte(e,t){return this.check(Zx(e,t))},max(e,t){return this.check(Zx(e,t))},int(e){return this.check(WOe(e))},safe(e){return this.check(WOe(e))},positive(e){return this.check(aDe(0,e))},nonnegative(e){return this.check(Qx(0,e))},negative(e){return this.check(iDe(0,e))},nonpositive(e){return this.check(Zx(0,e))},multipleOf(e,t){return this.check(oDe(e,t))},step(e,t){return this.check(oDe(e,t))},finite(){return this}})),Pke=yx(`ZodNumberFormat`,(e,t)=>{CTe.init(e,t),Nke.init(e,t)}),Fke=yx(`ZodBoolean`,(e,t)=>{wTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eOe(e,t,n,r)}),Ike=yx(`ZodUndefined`,(e,t)=>{TTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nOe(e,t,n,r)}),Lke=yx(`ZodNull`,(e,t)=>{ETe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tOe(e,t,n,r)}),Rke=yx(`ZodAny`,(e,t)=>{DTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iOe(e,t,n,r)}),zke=yx(`ZodUnknown`,(e,t)=>{OTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aOe(e,t,n,r)}),Bke=yx(`ZodNever`,(e,t)=>{kTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rOe(e,t,n,r)}),Vke=yx(`ZodDate`,(e,t)=>{ATe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oOe(e,t,n,r),e.min=(t,n)=>e.check(Qx(t,n)),e.max=(t,n)=>e.check(Zx(t,n))},MSe({minDate:e=>{let{minimum:t}=sS(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=sS(e);return t?new Date(t):null}},{})),Hke=yx(`ZodArray`,(e,t)=>{gS(),MTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dOe(e,t,n,r),e.element=t.element},{min(e,t){return this.check($x(e,t))},nonempty(e){return this.check($x(1,e))},max(e,t){return this.check(sDe(e,t))},length(e,t){return this.check(cDe(e,t))},unwrap(){return this.element}}),Uke=yx(`ZodObject`,(e,t)=>{gS(),FTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fOe(e,t,n,r),FSe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return ES(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(rx(this._zod.def,{catchall:e}))},passthrough(){return this.clone(rx(this._zod.def,{catchall:bS()}))},loose(){return this.clone(rx(this._zod.def,{catchall:bS()}))},strict(){return this.clone(rx(this._zod.def,{catchall:qOe()}))},strip(){return this.clone(rx(this._zod.def,{catchall:void 0}))},extend(e){return vSe(this,e)},safeExtend(e){return bSe(this,e)},merge(e){return xSe(this,e)},pick(e){return gSe(this,e)},omit(e){return _Se(this,e)},partial(...e){return SSe(Xke,this,e[0])},exactPartial(...e){return SSe(Zke,this,e[0],`exactPartial`)},required(...e){return CSe(tAe,this,e[0])}}),Wke=yx(`ZodUnion`,(e,t)=>{ITe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pOe(e,t,n,r),e.options=t.options}),Gke=yx(`ZodDiscriminatedUnion`,(e,t)=>{Wke.init(e,t),LTe.init(e,t)}),Kke=yx(`ZodIntersection`,(e,t)=>{RTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mOe(e,t,n,r)}),qke=yx(`ZodRecord`,(e,t)=>{gS(),zTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hOe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),PS=yx(`ZodEnum`,(e,t)=>{BTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sOe(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 PS({...t,checks:[],...cx(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 PS({...t,checks:[],...cx(r),entries:i})}}),Jke=yx(`ZodLiteral`,(e,t)=>{VTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cOe(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]}})}),Yke=yx(`ZodTransform`,(e,t)=>{gS(),HTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uOe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ZSe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(mx(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(mx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),Xke=yx(`ZodOptional`,(e,t)=>{UTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>COe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Zke=yx(`ZodExactOptional`,(e,t)=>{WTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>COe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Qke=yx(`ZodNullable`,(e,t)=>{GTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),$ke=yx(`ZodDefault`,(e,t)=>{KTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),eAe=yx(`ZodPrefault`,(e,t)=>{qTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),tAe=yx(`ZodNonOptional`,(e,t)=>{JTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_Oe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),nAe=yx(`ZodCatch`,(e,t)=>{YTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),rAe=yx(`ZodPipe`,(e,t)=>{XTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xOe(e,t,n,r),e.in=t.in,e.out=t.out}),iAe=yx(`ZodPreprocess`,(e,t)=>{rAe.init(e,t),ZTe.init(e,t)}),aAe=yx(`ZodReadonly`,(e,t)=>{QTe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>SOe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),oAe=yx(`ZodLazy`,(e,t)=>{$Te.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wOe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),sAe=yx(`ZodCustom`,(e,t)=>{eEe.init(e,t),jS.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lOe(e,t,n,r)})})),cAe,lAe=o((()=>{pS(),cAe||={}}));function uAe(e){return GEe(dke,e)}var dAe=o((()=>{pS(),FS()}));function IS(e){return rDe(Vke,e)}var fAe=o((()=>{pS(),FS()})),pAe=o((()=>{pS(),FS(),EOe(),kOe(),HOe(),lAe(),TOe(),yEe(),vx(),EOe(),dAe(),FS(),tEe(),hEe(),fAe()})),LS=o((()=>{pAe(),pAe()})),RS,mAe,hAe,gAe,_Ae,vAe,yAe=o((()=>{LS(),RS=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],mAe=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:RS,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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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:[...RS,`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`}],hAe=mAe.map(({type:e})=>e),ES(hAe),gAe=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],_Ae=ES([...hAe,...gAe.map(({type:e})=>e)]),vAe=[{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`}]})),zS,bAe,BS,xAe,SAe,VS,CAe,wAe,TAe,EAe,DAe,OAe,kAe,AAe,jAe,MAe,NAe,PAe,FAe,IAe,LAe,RAe,zAe,BAe,VAe,HAe,UAe,WAe,GAe,KAe,qAe,JAe,YAe,XAe,ZAe,QAe,$Ae,HS,US,eje,WS,tje=o((()=>{$xe(),zS=`default`,bAe=[`low`,`medium`,`high`,`ultra`],BS=[`low`,`medium`,`high`,`xhigh`,`max`],xAe=[`low`,`medium`,`high`,`xhigh`],SAe=[`--effort`,`--reasoning-effort`],VS=[`low`,`medium`,`high`,`xhigh`],CAe=[...VS,`max`,`ultra`],wAe=`model_reasoning_effort`,TAe=[`low`,`high`,`max`],EAe=[`high`,`max`],DAe=[...VS,`max`],OAe=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],kAe=[`gpt-6-astra`,`gpt-5.6-luna`],AAe=[`low`,`medium`,`high`,`xhigh`,`max`],jAe=`--reasoning-effort`,MAe=[`low`,`medium`,`high`,`xhigh`,`max`],NAe=`--reasoning-effort`,PAe=`service_tier`,FAe=[`fast`,`priority`],IAe=e=>!!e&&bAe.includes(e),LAe=e=>!!e&&BS.includes(e),RAe=e=>!!e&&CAe.includes(e),zAe=e=>!!e&&xAe.includes(e),BAe=e=>!!e&&AAe.includes(e),VAe=e=>!!e&&MAe.includes(e),HAe=e=>!!e&&FAe.includes(e),UAe=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?TAe:e===`glm-5.2`?EAe:OAe.includes(e)?CAe:kAe.includes(e)?DAe:VS,WAe=e=>{let t=(Zb(e?.args,`--mode`)??e?.mode)?.trim();return IAe(t)?t:zS},GAe=[`-m`,`--model`],KAe=e=>{let t=(Zb(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:zS},qAe=e=>{let t=(Zb(e?.args,`--effort`)??e?.effort)?.trim();return LAe(t)?t:zS},JAe=e=>{let t=(qxe(e?.args,GAe)??Qb(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:zS},YAe=e=>{let t=(Qb(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return RAe(t)?t:zS},XAe=e=>{let t=(Qb(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Qb(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:HAe(t)?`fast`:zS},ZAe=e=>{let t=(qxe(e?.args,SAe)??e?.effort)?.trim();return zAe(t)?t:zS},QAe=e=>{let t=(Zb(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return BAe(t)?t:zS},$Ae=e=>{let t=(Zb(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return VAe(t)?t:zS},HS=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:zS},US={flags:[`-m`,`--model`],kind:`flag`},eje={antigravity:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:HS,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:bAe,resolve:WAe}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>BS,resolve:qAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:KAe,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>BS,resolve:qAe},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:KAe,source:`catalog`}},codex:{effort:{encodings:[{key:wAe,kind:`config`}],levels:UAe,resolve:YAe},model:{encodings:[US,{key:`model`,kind:`config`}],resolve:JAe,source:`catalog`},speed:{encodings:[{key:PAe,kind:`config`}],resolve:XAe}},copilot:{effort:{encodings:[{flags:[NAe],kind:`flag`}],levels:()=>MAe,resolve:$Ae},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:HS,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:HS,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:HS,source:`catalog`}},droid:{model:{encodings:[],resolve:HS,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:HS,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:SAe,kind:`flag`}],levels:()=>xAe,resolve:ZAe},model:{encodings:[US],resolve:HS,source:`catalog`}},"kimi-code":{model:{encodings:[US],resolve:HS,source:`catalog`}},opencode:{model:{encodings:[US],resolve:HS,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:HS,source:`catalog`}},qoder:{effort:{encodings:[{flags:[jAe],kind:`flag`}],levels:()=>AAe,resolve:QAe},model:{encodings:[US],resolve:HS,source:`catalog`}},trae:{model:{encodings:[],resolve:HS,source:`catalog`}}},WS=e=>eje[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),WS(`copilot`),WS(`grok-build`),WS(`kimi-code`),WS(`opencode`),WS(`pi`),WS(`qoder`)})),nje=o((()=>{})),rje=o((()=>{yAe(),nje(),new Set([...mAe.map(({type:e})=>e),...gAe.map(({type:e})=>e),...vAe.map(({type:e})=>e)])})),ije=o((()=>{})),aje=o((()=>{})),oje,sje,cje,lje,uje=o((()=>{LS(),oje=SS({workingDirectory:V().optional()}),sje=SS({memory:SS({effort:ES([`low`,`medium`,`high`]).optional(),enabled:vS().optional(),toolPermission:ES([`read-only`,`read-write`]).optional()}).optional()}),cje=SS({selfIteration:SS({enabled:vS().optional()}).optional()}),lje=SS({codexMaxReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:ES([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:ES([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:ES([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:vS().optional(),disableGatewayMode:vS().optional(),effort:ES([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:vS().optional(),enableAgentMode:vS().optional(),toolMode:ES([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:vS().optional(),enableCompressHistory:vS().optional(),enableContextCompression:vS().optional(),enableFollowUpChips:vS().optional(),enableHistoryCount:vS().optional(),enableMaxTokens:vS().optional(),enableReasoning:vS().optional(),enableReasoningEffort:vS().optional(),enableStreaming:vS().optional(),enableStaleToolResultTrim:vS().optional(),gpt5ReasoningEffort:ES([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:ES([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:ES([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:ES([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:ES([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:ES([`high`,`max`]).optional(),glm5_3ReasoningEffort:ES([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:ES([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:ES([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:ES([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:ES([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:ES([`high`,`xhigh`]).optional(),historyCount:_S().optional(),imageAspectRatio:V().optional(),imageAspectRatio2:V().optional(),imageResolution:ES([`1K`,`2K`,`4K`]).optional(),imageResolution2:ES([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:ES([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:oje.optional(),preserveThinking:vS().optional(),reasoningBudgetToken:_S().optional(),reasoningBudgetToken32k:_S().optional(),reasoningBudgetToken80k:_S().optional(),reasoningEffort:ES([`low`,`medium`,`high`]).optional(),reasoningMode:ES([`standard`,`pro`]).optional(),searchFCModel:SS({model:V(),provider:V()}).optional(),searchMode:ES([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:ES([`low`,`high`]).optional(),skillActivateMode:ES([`auto`,`manual`]).optional(),textVerbosity:ES([`low`,`medium`,`high`]).optional(),thinking:ES([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:_S().optional(),thinkingLevel:ES([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:ES([`low`,`high`]).optional(),thinkingLevel3:ES([`low`,`medium`,`high`]).optional(),thinkingLevel4:ES([`minimal`,`high`]).optional(),thinkingLevel5:ES([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:_S().default(25e3),topicGroupMode:ES([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:vS().optional(),useModelBuiltinSearch:vS().optional()}).merge(sje).merge(cje)})),dje=o((()=>{})),fje=o((()=>{})),pje,GS,mje,hje,gje,_je,vje,yje,bje,xje,Sje,Cje=o((()=>{pje=`LobeHub Cloud`,GS=`LobeHub`,mje=`Lobe AI`,hje=`LobeHub`,gje={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},_je={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`},vje={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},yje={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},bje=`lobehub`,xje=`© ${new Date().getFullYear()} ${hje}`,Sje=`${xje}. All rights reserved.`})),wje,Tje,Eje,KS,qS,Dje,Oje,kje,Aje,jje,Mje,Nje,Pje,Fje,Ije,Lje,Rje,zje,Bje,Vje,Hje,Uje=o((()=>{wje=`jev-1.14.0`,Tje=`typesafe`,Eje=`openai`,KS=`deepseek-v4-flash`,qS=`deepseek`,Dje=`gpt-5.6-luna`,Oje=`openai`,kje=`decision`,Aje=`gpt-6-luna:decision`,jje=`openai`,Mje=`gpt-4o-mini-transcribe`,Nje=`openai`,Pje=`gemini-3-flash-preview`,Fje=`google`,Ije=`gemini-3.8-flash`,Lje=`google`,Rje=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],zje=`glm-5.3-flash`,Bje=`zhipu`,Vje=`deepseek-flash`,Hje=`deepseek`})),Wje,Gje=o((()=>{Wje=[]})),Kje,qje=o((()=>{Kje=`chat_preview`})),Jje=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>Yje,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>yje,BRANDING_INBOX_TITLE:()=>mje,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>GS,BRANDING_PROVIDER:()=>bje,BRANDING_URL:()=>gje,BUSINESS_OIDC_CLIENTS:()=>Wje,COPYRIGHT:()=>xje,COPYRIGHT_FULL:()=>Sje,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>Rje,DEFAULT_ASR_MODEL:()=>Mje,DEFAULT_ASR_PROVIDER:()=>Nje,DEFAULT_BOT_WAKE_ENGINE:()=>kje,DEFAULT_BOT_WAKE_MODEL:()=>Aje,DEFAULT_BOT_WAKE_PROVIDER:()=>jje,DEFAULT_CHANNEL_ROUTING_MODEL:()=>wje,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>Tje,DEFAULT_EMBEDDING_PROVIDER:()=>Eje,DEFAULT_MINI_MODEL:()=>Dje,DEFAULT_MINI_PROVIDER:()=>Oje,DEFAULT_MODEL:()=>KS,DEFAULT_ONBOARDING_MODEL:()=>Pje,DEFAULT_ONBOARDING_PROVIDER:()=>Fje,DEFAULT_PROVIDER:()=>qS,DEFAULT_REVIEW_PREDICT_MODEL:()=>Ije,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>Lje,DEFAULT_VERIFY_MODEL:()=>zje,DEFAULT_VERIFY_PLAN_MODEL:()=>Vje,DEFAULT_VERIFY_PLAN_PROVIDER:()=>Hje,DEFAULT_VERIFY_PROVIDER:()=>Bje,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>vje,LOBE_CHAT_CLOUD:()=>pje,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>Xje,ORG_NAME:()=>hje,SOCIAL_URL:()=>_je,UTM_SOURCE:()=>Kje,isOfficialProvider:()=>Zje}),Yje,Xje,Zje,JS=o((()=>{Cje(),Cje(),Uje(),Gje(),qje(),Yje=`sk-lh-`,Xje=`The official provider cannot be disabled.`,Zje=e=>!1})),Qje=o((()=>{JS()})),$je=o((()=>{})),eMe=o((()=>{})),tMe,nMe,rMe=o((()=>{LS(),tMe=ES([`pinned`,`auto`,`disabled`]),nMe=CS([V(),SS({builtinOverride:OS(!0).optional(),identifier:V(),mode:tMe.optional()})])})),iMe=o((()=>{LS(),uje(),rMe(),SS({agencyConfig:kS().optional(),avatar:V().nullish(),backgroundColor:V().nullish(),chatConfig:lje.optional(),description:V().nullish(),editorData:bS().optional(),fewShots:bS().optional(),marketIdentifier:V().nullish(),metadata:TS(V(),bS()).nullish(),model:V().nullish(),name:V().nullish(),openingMessage:V().nullish(),openingQuestions:xS(V()).optional(),params:TS(V(),bS()).optional(),plugins:xS(nMe).optional(),provider:V().nullish(),sessionGroupId:V().nullish(),systemRole:V().nullish(),tags:xS(V()).optional(),title:V().nullish(),tts:kS().optional(),virtual:vS().nullish(),visibility:ES([`private`,`public`]).optional()})})),aMe=o((()=>{})),oMe=o((()=>{})),sMe=o((()=>{})),cMe=o((()=>{})),lMe=o((()=>{})),uMe=o((()=>{rje(),ije(),aje(),uje(),dje(),fje(),Qje(),$xe(),yAe(),$je(),eMe(),tje(),iMe(),aMe(),rMe(),oMe(),sMe(),cMe(),lMe()})),dMe,fMe=o((()=>{dMe=[`mail`,`wallet`,`service`],[...dMe]})),pMe=o((()=>{})),mMe=o((()=>{})),hMe,gMe,_Me=o((()=>{LS(),hMe=SS({ciStatus:ES([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:V().optional(),headRepoFullName:V().optional(),isDraft:vS().optional(),mergeable:V().optional(),mergeStateStatus:V().optional(),mergedAt:V().nullable().optional(),number:_S(),reviewDecision:V().optional(),state:V(),title:V(),url:V()}),gMe=SS({environmentId:V().max(255).optional(),git:SS({activeWorktree:V().optional(),autoCreated:vS().optional(),autoCreatedAt:V().optional(),branch:V().optional(),detached:vS().optional(),github:SS({extraPullRequestCount:_S().optional(),pullRequest:hMe.nullable().optional(),pullRequestStatus:ES([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:vS().optional(),ownBranch:V().optional(),ownerNonce:V().max(64).optional(),ownerToken:V().max(128).optional(),upstream:SS({branch:V(),remote:V()}).optional()}).optional(),path:V(),repoType:ES([`git`,`github`]).optional(),sessionPath:V().optional()})})),vMe=o((()=>{_Me()})),yMe,bMe=o((()=>{yMe=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),xMe=o((()=>{})),SMe=o((()=>{})),CMe=o((()=>{})),wMe=o((()=>{LS(),vMe(),bMe(),xMe(),SMe(),CMe(),SS({heteroPermissionMode:ES(yMe).optional(),repos:xS(V()).optional(),sandboxDrive:ES([`personal`,`public`]).optional(),sandboxEnvironmentId:V().max(255).optional(),sandboxInstanceId:V().optional(),sandboxSeeded:vS().optional(),sandboxTemporary:vS().optional(),sandboxWorkingDirectory:V().max(1024).optional(),workingDirectory:V().optional(),workingDirectoryConfig:gMe.optional()})})),TMe,EMe=o((()=>{LS(),TMe=SS({allowDM:vS().optional(),forkedFromIdentifier:V().optional(),openingMessage:V().optional(),openingQuestions:xS(V()).optional(),personal:vS().optional(),revealDM:vS().optional(),systemPrompt:V().optional()}),SS({avatar:V().nullish(),backgroundColor:V().nullish(),clientId:V().nullish(),config:TMe.nullish(),content:V().nullish(),description:V().nullish(),editorData:TS(V(),yS()).nullish(),groupId:V().nullish(),id:V().optional(),marketIdentifier:V().nullish(),pinned:vS().nullish(),title:V().nullish(),visibility:ES([`private`,`public`]).optional()})})),DMe,OMe,kMe,AMe=o((()=>{LS(),DMe=ES([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),OMe=V().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),kMe=JOe({allowedEnvVars:xS(V().regex(/^[A-Z_]\w*$/i)).optional(),body:TS(V(),bS()).optional(),delivery:ES([`fetch`,`qstash`]).optional(),eventFields:xS(V()).optional(),fallback:ES([`fetch`,`none`]).optional(),headers:TS(V(),V()).optional(),onError:ES([`continue`,`block`]).optional(),responseHandling:ES([`ignore`,`toolCall`]).optional(),timeout:_S().positive().max(2147483.647).optional(),url:V().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`})}),JOe({id:V(),matcher:OMe.optional(),type:DMe,webhook:kMe}).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`})})})),jMe=o((()=>{LS(),wS(`decision`,[SS({decision:OS(`allow`)}),SS({decision:OS(`deny`),reason:V().optional()})])})),MMe=o((()=>{})),NMe,PMe=o((()=>{NMe=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(NMe)})),FMe=o((()=>{})),IMe=o((()=>{})),LMe,RMe,zMe,BMe=o((()=>{LMe={messages:`msg`,threads:`thd`,topics:`tpc`},RMe=`[0-9a-zA-Z]{8,32}`,zMe=e=>RegExp(`^${LMe[e]}_${RMe}$`)})),VMe,HMe,UMe,WMe=o((()=>{LS(),VMe=SS({attribution:ES([`user`,`provider`,`harness`,`system`]).optional(),body:yS().optional(),errorRef:V().optional(),category:V().optional(),countAsFailure:vS().optional(),httpStatus:_S().optional(),isFallback:vS().optional(),message:V().optional(),numericId:_S().optional(),retryable:vS().optional(),severity:ES([`info`,`warning`,`error`,`critical`]).optional(),type:CS([V(),_S()])}),HMe=SS({content:xS(TS(V(),bS())).optional(),encrypted_content:V().nullish(),id:V(),status:ES([`in_progress`,`completed`,`incomplete`]).optional(),summary:xS(SS({text:V(),type:OS(`summary_text`)})),type:OS(`reasoning`)}).passthrough(),UMe=SS({content:V().optional(),duration:_S().optional(),isMultimodal:vS().optional(),responseItems:xS(HMe).optional(),signature:V().optional()})})),GMe,KMe=o((()=>{GMe=function(e){return e.AgentMeta=`agent_meta`,e.AgentShare=`agent_share`,e.AgentSignal=`agent_signal`,e.Api=`api`,e.Asr=`asr`,e.Bot=`bot`,e.BuilderSuggestion=`builder_suggestion`,e.Chat=`chat`,e.Cli=`cli`,e.ContextCompression=`context_compression`,e.Cron=`cron`,e.Eval=`eval`,e.Expertise=`expertise`,e.FileEmbedding=`file_embedding`,e.FollowUp=`follow_up`,e.GenerationTopicTitle=`generation_topic_title`,e.Goal=`goal`,e.HistorySummary=`history_summary`,e.Image=`image`,e.Inbox=`inbox`,e.InputCompletion=`input_completion`,e.McpEvent=`mcp_event`,e.Memory=`memory`,e.MultimodalAnalysis=`multimodal_analysis`,e.Music=`music`,e.Notify=`notify`,e.Onboarding=`onboarding`,e.Openapi=`openapi`,e.PromptRewrite=`prompt_rewrite`,e.ProviderCheck=`provider_check`,e.Scheduled=`scheduled`,e.Scm=`scm`,e.SemanticSearch=`semantic_search`,e.SignupEmailLLMReview=`signup_email_llm_review`,e.Task=`task`,e.TaskCallback=`task_callback`,e.ThreadTitle=`thread_title`,e.Topic=`topic`,e.TopicAnalysis=`topic_analysis`,e.TopicSummary=`topic_summary`,e.TopicTitle=`topic_title`,e.Translate=`translate`,e.Tts=`tts`,e.Verify=`verify`,e.Video=`video`,e.Webhook=`webhook`,e}({})})),YS,qMe,JMe=o((()=>{LS(),YS=_S().catch(0),qMe=SS({bySource:SS({content:YS,fileContext:YS,reasoning:YS,thoughtSignature:YS,toolCallId:YS,toolCalls:YS,toolDefinition:YS}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:OS(`tokenx`).catch(`tokenx`),messageCount:YS,system:YS,total:YS})})),YMe,XMe,XS,ZMe,QMe,$Me,eNe,tNe,nNe,rNe=o((()=>{LS(),YMe=ES([`markdown`,`text`,`xml`]),XMe=SS({endLine:_S().optional(),startLine:_S()}),XS=SS({content:V(),format:YMe.optional(),id:V(),lineRange:XMe.optional(),preview:V().optional(),title:V().optional()}),ZMe=XS.extend({anchor:SS({endNodeId:V(),endOffset:_S(),startNodeId:V(),startOffset:_S()}).optional(),pageId:V(),source:OS(`page`),xml:V().optional()}),QMe=XS.extend({filePath:V(),language:V().optional(),side:ES([`additions`,`context`,`deletions`]).optional(),source:OS(`code`),workingDirectory:V().optional()}),$Me=XS.extend({source:OS(`text`)}),eNe=XS.extend({element:SS({pageTitle:V().optional(),selector:V(),tag:V(),thumbnailUrl:V().optional(),url:V().optional()}),source:OS(`element`)}),tNe=XS.extend({identifier:V(),source:OS(`mcpApp`)}),nNe=wS(`source`,[ZMe,QMe,$Me,eNe,tNe])})),iNe,aNe=o((()=>{LS(),rNe(),iNe=XS.omit({lineRange:!0}).extend({anchor:SS({endNodeId:V(),endOffset:_S(),startNodeId:V(),startOffset:_S()}).optional(),startLine:_S().optional(),endLine:_S().optional(),pageId:V(),xml:V().optional()})})),oNe,sNe,ZS,cNe,lNe,uNe,dNe,fNe,pNe,mNe,hNe,gNe,_Ne,vNe,yNe,QS,bNe,xNe=o((()=>{LS(),KMe(),JMe(),rNe(),aNe(),oNe=CS([SS({action:ES([`create`,`update`,`delete`]),changeType:ES([`created`,`updated`]).optional(),targets:xS(SS({taskId:V().optional(),taskIdentifier:V().optional()})),type:OS(`task`)}),SS({args:TS(V(),bS()).optional(),data:bS(),provider:V(),toolName:V(),type:OS(`skill`)}),SS({action:OS(`register`),document:SS({agentDocumentId:V().nullish(),agentId:V().nullish(),description:V().nullish(),documentId:V(),changeType:ES([`created`,`updated`]),toolName:V()}),type:OS(`document`)}),SS({action:OS(`delete`),document:SS({agentDocumentId:V().nullish(),agentId:V().nullish(),documentId:V()}),type:OS(`document`)}),SS({action:OS(`register`),canvas:SS({canvasId:V(),description:V().nullish(),title:V(),toolName:V(),metadata:SS({entry:V(),fileCount:_S(),manifestKey:V(),runtimeMajor:_S(),totalSize:_S()})}),type:OS(`canvas`)})]),sNe=SS({apiName:ES([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:TS(V(),bS()),capturedAt:V(),content:V().nullable(),error:bS().optional(),identifier:OS(`lobe-local-system`),result:bS().optional(),snapshotId:V(),state:bS().optional(),success:vS(),toolCallId:V()}),ZS=SS({inputCachedTokens:_S().optional(),inputCacheMissTokens:_S().optional(),inputWriteCacheTokens:_S().optional(),inputCachedTextTokens:_S().optional(),inputCachedImageTokens:_S().optional(),inputCachedAudioTokens:_S().optional(),inputCachedVideoTokens:_S().optional(),inputTextTokens:_S().optional(),inputImageTokens:_S().optional(),inputAudioTokens:_S().optional(),inputVideoTokens:_S().optional(),inputCitationTokens:_S().optional(),inputToolTokens:_S().optional(),inputCharacters:_S().optional(),outputTextTokens:_S().optional(),outputImageTokens:_S().optional(),outputAudioTokens:_S().optional(),outputReasoningTokens:_S().optional(),outputVideoTokens:_S().optional(),acceptedPredictionTokens:_S().optional(),rejectedPredictionTokens:_S().optional(),totalInputTokens:_S().optional(),totalOutputTokens:_S().optional(),totalTokens:_S().optional(),cost:_S().optional(),credits:_S().optional()}),cNe=SS({tps:_S().optional(),ttft:_S().optional(),duration:_S().optional(),latency:_S().optional()}),lNe=SS({emoji:V(),count:_S(),users:xS(V())}),uNe=SS({sequence:_S().optional(),sourceToolCallId:V(),sourceToolName:V(),type:ES([`tool-stdout`,`tool-callback`,`task-completion`])}),dNe=SS({identifier:V()}),fNe=SS({agentId:V().optional(),name:V(),status:ES([`completed`,`error`]),threadId:V()}),pNe=SS({identifier:V(),reason:ES([`done`,`error`,`interrupted`]),taskId:V(),topicId:V().optional()}),mNe=SS({rootOperationId:V().min(1),userMessageId:V().optional()}),hNe=SS({kind:ES([`callAgent`]),visibility:OS(`internal`)}),gNe=SS({agentId:V(),avatar:V().optional(),chatGroupId:V().optional(),hop:_S().int().positive().optional(),name:V().optional(),threadId:V().optional(),title:V().optional(),topicAgentId:V().optional(),topicId:V().optional(),topicTitle:V().optional()}),_Ne=SS({kind:V(),label:V(),provider:V(),resourceId:V().optional(),url:V().optional()}),vNe=SS({avatar:V().optional(),fullName:V().optional(),id:V(),platform:V(),username:V().optional()}),yNe=ZS.merge(cNe).extend({botSender:vNe.optional(),externalOrigin:_Ne.optional(),agentDispatch:hNe.optional(),agentSender:gNe.optional(),collapsed:vS().optional(),contextAccounting:qMe.optional(),contextSelections:xS(nNe).optional(),heteroMessageId:V().optional(),codexTurnId:V().optional(),heteroSessionId:V().optional(),heterogeneousToolStateOperationId:V().optional(),heterogeneousToolStateSeq:_S().int().positive().optional(),inspectExpanded:vS().optional(),isMultimodal:vS().optional(),isSupervisor:vS().optional(),localSystemToolSnapshots:xS(sNe).optional(),mcpAppSource:dNe.optional(),operationId:V().min(1).optional(),orchestrationRole:ES([`supervisor`,`member`]).optional(),pageSelections:xS(iNe).optional(),performance:cNe.optional(),reactions:xS(lNe).optional(),scope:V().optional(),selectedSkillIds:xS(V()).optional(),signal:uNe.optional(),steer:vS().optional(),subAgentCallback:fNe.optional(),subAgentId:V().optional(),taskCallback:pNe.optional(),toolExecutionTimeMs:_S().optional(),toolResultSuccess:vS().optional(),toolResultStop:vS().optional(),toolWorkRegistration:oNe.optional(),trigger:DS(GMe).optional(),verifyOperationId:V().optional(),verifyRound:_S().optional(),work:mNe.optional(),usage:ZS.optional()}),QS=yNe.omit({agentSender:!0}),bNe=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),SNe,CNe=o((()=>{LS(),xNe(),SNe=yNe.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),SS({editorData:TS(V(),bS()).optional(),metadata:SNe.optional()}),Object.keys(SNe.shape)})),wNe,TNe=o((()=>{LS(),wNe=SS({alt:V(),height:_S().optional(),id:V(),mimeType:V().optional(),ratio:_S().optional(),url:V(),width:_S().optional()})})),ENe=o((()=>{})),DNe,ONe,kNe,ANe=o((()=>{LS(),DNe=SS({batchId:V().optional(),itemIndex:_S().int().nonnegative().optional(),operationId:V().optional(),runtimeType:ES([`client`,`server`]).optional(),rejectedReason:V().optional(),resolving:vS().optional(),resolutionRequestId:V().optional(),skipped:vS().optional(),stepIndex:_S().int().nonnegative().optional(),status:ES([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),ONe=SS({function:SS({arguments:V(),name:V()}),id:V(),type:V()}),kNe=SS({apiName:V(),arguments:V(),id:V(),identifier:V(),intervention:DNe.optional(),result_msg_id:V().optional(),thoughtSignature:V().optional(),type:V()})})),jNe=o((()=>{})),MNe=o((()=>{})),$S=o((()=>{WMe(),CNe(),JMe(),rNe(),TNe(),ENe(),xNe(),aNe(),ANe(),jNe(),MNe()})),NNe,PNe=o((()=>{LS(),NNe=SS({id:V(),similarity:_S()}),SS({id:V(),value:SS({fileChunks:xS(NNe),ragQueryId:V().optional()})})})),FNe,INe,LNe=o((()=>{LS(),WMe(),ANe(),PNe(),$S(),aNe(),FNe=ES([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),INe=SS({apiName:V(),arguments:V(),identifier:V(),type:V()}),SS({role:FNe,content:V(),id:V().optional(),agentId:V().optional(),sessionId:V().nullish(),tool_call_id:V().optional(),plugin:INe.optional(),parentId:V().optional(),groupId:V().nullish(),topicId:V().nullish(),threadId:V().nullish(),targetId:V().nullish(),model:V().nullish(),provider:V().nullish(),files:xS(V()).optional(),error:VMe.nullish(),traceId:V().optional(),fileChunks:xS(NNe).optional()}).passthrough(),SS({id:V().optional(),toolCallId:V().optional(),type:V().optional(),intervention:DNe.optional(),apiName:V().optional(),arguments:V().optional(),identifier:V().optional(),state:yS().optional(),error:yS().optional(),clientId:V().optional(),userId:V().optional()})})),eC,RNe,zNe,BNe,VNe,HNe,UNe=o((()=>{LS(),eC=ES([`never`,`required`,`always`]),RNe=CS([V(),SS({pattern:V(),type:ES([`exact`,`prefix`,`wildcard`,`regex`])})]),zNe=SS({match:TS(V(),RNe).optional(),policy:eC}),BNe=CS([eC,xS(zNe)]),SS({action:ES([`approve`,`reject`,`select`]),data:SS({remember:vS().optional(),selected:CS([V(),xS(V())]).optional()}).optional()}),SS({allowList:xS(V()).optional(),approvalMode:ES([`auto-run`,`allow-list`,`manual`,`headless`])}),VNe=SS({description:V(),match:TS(V(),RNe),policy:eC.optional()}),HNe=xS(VNe),SS({config:BNe.optional(),confirmedHistory:xS(V()).optional(),securityBlacklist:HNe.optional(),toolArgs:TS(V(),yS()).optional(),toolKey:V().optional()})})),WNe=o((()=>{})),tC,GNe,KNe,qNe,JNe,nC,YNe,XNe=o((()=>{LS(),UNe(),WNe(),tC=SS({avatar:V().optional(),description:V().optional(),readme:V().optional(),tags:xS(V()).optional(),title:V()}),GNe=ES([`collapsed`,`expand`,`alwaysExpand`]),KNe=SS({default:eC.optional(),policy:eC.optional(),type:V()}),qNe=CS([BNe,SS({dynamic:KNe})]),JNe=SS({action:ES([`create`,`update`,`delete`]),resourceType:ES([`document`,`task`])}),nC=SS({defaultTimeoutMs:_S().int().positive().optional(),description:V(),humanIntervention:qNe.optional(),name:V(),ordered:vS().optional(),parameters:TS(V(),yS()),renderDisplayControl:GNe.optional(),serializeBy:V().optional(),url:V().optional(),work:JNe.optional()}),YNe=SS({api:xS(nC),deviceClients:xS(ES([`cli`,`desktop`])).optional(),executors:xS(ES([`client`,`server`])).optional(),humanIntervention:qNe.optional(),identifier:V(),meta:tC,systemRole:V(),type:OS(`builtin`).optional()}),SS({discoverable:vS().optional(),hidden:vS().optional(),identifier:V(),manifest:YNe,type:OS(`builtin`)})})),ZNe=o((()=>{})),QNe=o((()=>{})),$Ne,ePe=o((()=>{LS(),XNe(),$Ne=SS({properties:TS(V(),yS()),required:xS(V()).optional(),type:OS(`object`)}),SS({$schema:V().optional(),api:xS(nC),connector:SS({id:V(),identifier:V()}).optional(),connectorLinks:SS({connectorId:V(),param:V()}).optional(),author:V().optional(),createdAt:V().optional(),gateway:V().optional(),homepage:V().optional(),identifier:V(),mcpAppEntrypoints:xS(SS({toolName:V(),title:V(),icon:V().optional()})).optional(),mcpAppOnlyApi:xS(nC).optional(),mcpModelOnlyTools:xS(V()).optional(),meta:tC,openapi:V().optional(),settings:$Ne.optional(),systemRole:V().optional(),type:ES([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:SS({height:_S().optional(),mode:ES([`iframe`,`module`]).optional(),url:V(),width:_S().optional()}).optional(),version:V().optional()})})),tPe=o((()=>{})),nPe=o((()=>{})),rPe,iPe=o((()=>{LS(),rPe=SS({description:V().optional(),name:V(),parameters:SS({additionalProperties:vS().optional(),properties:TS(V(),yS()),required:xS(V()).optional(),type:OS(`object`)})})})),aPe=o((()=>{XNe(),ZNe(),QNe(),UNe(),ePe(),tPe(),nPe(),iPe()})),rC,oPe,sPe,iC,cPe,aC,lPe,oC,sC,cC,uPe,dPe,fPe,lC,pPe,mPe,hPe,gPe,uC,_Pe,vPe=o((()=>{LS(),rC=1e6,oPe=2e3,sPe=2e3,iC=12e3,cPe=SS({kind:OS(`writing`)}).strict(),aC=SS({code:V().max(64),message:V(),operation:V().max(64),provider:V().max(64),retryable:vS()}).strict(),lPe=SS({errors:xS(aC).max(16),evidenceCount:_S().int().nonnegative().max(rC),failedCount:_S().int().nonnegative().max(rC),succeededCount:_S().int().nonnegative().max(rC)}).strict(),lPe.omit({errors:!0}).strip(),oC=e=>V().trim().min(1).max(e),sC=oC(256),cC=oC(oPe),uPe=SS({content:oC(iC),reasoning:cC,tagline:sC}).strict(),dPe=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}},fPe=AS(dPe,SS({description:cC,rank:_S().int().min(0).max(100),title:sC}).strict()),lC=e=>xS(fPe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),pPe=SS({composition:SS({identities:lC(6),interests:lC(8),lifeStyle:lC(6),social:lC(6),working:lC(6)}).strict(),personaProposal:uPe,profile:SS({domains:xS(sC).max(8),description:cC,name:sC,pronoun:sC,roles:xS(sC).max(8),summary:cC,tagline:sC}).strict()}).strict(),SS({analysis:pPe,detailedPersona:uPe.optional(),diagnostics:lPe,feedbackRevision:_S().int().nonnegative().max(rC).default(0),generationRevision:_S().int().nonnegative().max(rC).default(0),kind:OS(`proposal`),providers:xS(V().max(64)),resultId:V(),sourceFingerprint:V()}).strict(),mPe=SS({content:V().trim().min(1).max(sPe),createdAt:V(),revision:_S().int().positive().max(rC)}).strict(),hPe=SS({revision:_S().int().nonnegative().max(rC),turns:xS(mPe).max(16)}).strict(),gPe=SS({completedAt:V().optional(),errors:xS(aC).max(16),failedCount:_S().int().nonnegative().max(rC),revision:_S().int().nonnegative().max(rC),status:ES([`pending`,`running`,`completed`,`failed`]),succeededCount:_S().int().nonnegative().max(rC)}).strict(),uC={detailed:wS(`status`,[SS({status:OS(`running`),updatedAt:V()}).strict(),SS({status:OS(`completed`),updatedAt:V()}).strict(),SS({error:aC,status:OS(`failed`),updatedAt:V()}).strict()]).optional(),feedbackRevision:_S().int().nonnegative().max(rC).default(0),generationRevision:_S().int().nonnegative().max(rC).default(0),sourceFingerprint:V(),updatedAt:V()},_Pe=wS(`status`,[SS({...uC,resultMessageId:V().optional(),status:OS(`running`)}).strict(),SS({...uC,resultMessageId:V(),status:OS(`completed`)}).strict(),SS({...uC,error:aC,resultMessageId:V().optional(),status:OS(`failed`)}).strict()]),SS({confirmedAt:V().optional(),feedback:hPe.default({revision:0,turns:[]}),generationRevision:_S().int().nonnegative().max(rC).default(0),id:V(),sources:TS(V().max(64),gPe),writing:_Pe.optional()}).strict()})),dC,yPe,bPe=o((()=>{LS(),vPe(),dC={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},yPe=SS({clientMode:vS().optional(),completedAt:V().optional(),duration:_S().optional(),error:yS().optional(),model:V().optional(),onboardingUnderstanding:cPe.optional(),operationId:V().optional(),sourceToolCallId:V().optional(),startedAt:V().optional(),subagentType:V().optional(),totalCost:_S().optional(),totalLlmCalls:_S().optional(),totalMessages:_S().optional(),totalTokens:_S().optional(),totalSteps:_S().optional(),totalToolCalls:_S().optional()}),SS({agentId:V().optional(),groupId:V().optional(),id:V().optional(),metadata:yPe.optional(),parentThreadId:V().optional(),sourceMessageId:V().optional(),title:V().optional(),topicId:V(),type:ES([dC.Continuation,dC.Eval,dC.Standalone,dC.Isolation])})})),xPe,SPe,fC,CPe,pC,wPe,TPe=o((()=>{LS(),BMe(),$S(),LNe(),aPe(),bPe(),xPe=SS({parentThreadId:V().optional(),sourceMessageId:V().optional(),title:V().optional(),type:ES([dC.Continuation,dC.Standalone,dC.Isolation])}),SPe=SS({content:V(),metadata:QS.optional(),plugin:SS({apiName:V(),arguments:V(),identifier:V(),type:V()}).optional(),role:ES([`assistant`,`tool`]),tool_call_id:V().optional(),tools:xS(kNe).optional()}),fC=e=>V().regex(zMe(e)).optional(),SS({agentId:V().optional(),groupId:V().optional(),newAssistantMessage:SS({agentId:V().optional(),id:fC(`messages`),metadata:TS(V(),bS()).optional().transform(bNe),model:V().optional(),provider:V().optional()}),newThread:xPe.optional(),newTopic:SS({id:fC(`topics`),metadata:kS().optional(),model:V().optional(),projectId:V().optional(),provider:V().optional(),title:V().optional(),topicMessageIds:xS(V()).optional(),trigger:V().optional()}).optional(),preloadMessages:xS(SPe).optional(),newUserMessage:SS({content:V(),contextSelections:xS(nNe).optional(),editorData:TS(V(),bS()).optional(),files:xS(V()).optional(),id:fC(`messages`),metadata:QS.optional(),pageSelections:xS(iNe).optional(),parentId:V().optional()}),sessionId:V().optional(),threadId:V().optional(),topicFilter:SS({excludeStatuses:xS(V()).optional(),excludeTriggers:xS(V()).optional(),includeTriggers:xS(V()).optional(),onlyMine:vS().optional()}).optional(),topicPageSize:_S().int().min(1).max(100).optional(),topicId:V().optional()}),CPe=SS({description:V().optional(),name:V(),schema:SS({$defs:yS().optional(),additionalProperties:vS().optional(),properties:TS(V(),yS()),required:xS(V()).optional(),type:OS(`object`)}),strict:vS().optional()}),SS({metadata:TS(V(),bS()).optional(),messages:xS(yS()),model:V(),provider:V(),schema:CPe.optional(),tools:xS(SS({function:rPe,type:OS(`function`)})).optional(),tracing:SS({tracingId:V().uuid().optional()}).catchall(bS()).optional()}),pC=CS([V(),xS(bS()),TS(V(),bS())]),wPe=wS(`type`,[SS({criteria:SS({false:pC,true:pC}).optional(),instructions:pC,type:OS(`boolean`)}),SS({criteria:TS(V(),pC.nullable()),instructions:pC,type:OS(`choice`)}),SS({criteria:xS(pC).min(1),instructions:pC,type:OS(`score`)})]),SS({metadata:TS(V(),bS()).optional(),model:V(),provider:V(),questions:TS(V(),wPe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:pC,tracing:SS({tracingId:V().uuid().optional()}).catchall(bS()).optional()})})),EPe=o((()=>{LS()})),DPe=o((()=>{})),OPe=o((()=>{})),kPe=o((()=>{})),APe=o((()=>{})),jPe=o((()=>{})),MPe,NPe=o((()=>{yAe(),MPe=vAe.map(({type:e})=>e),[..._Ae.options,...MPe]})),PPe=o((()=>{})),FPe=o((()=>{PPe()})),IPe=o((()=>{})),LPe=o((()=>{})),RPe=o((()=>{})),zPe=o((()=>{})),BPe=o((()=>{})),VPe=o((()=>{})),HPe=o((()=>{})),UPe=o((()=>{})),WPe=o((()=>{LS(),SS({connected:vS(),cpuCount:_S().int().min(1).max(4096),cpuPercent:_S().min(0).max(100).nullable(),diskTotalBytes:_S().int().min(0).nullish(),diskUsedBytes:_S().int().min(0).nullish(),load1:_S().min(0).nullable(),load5:_S().min(0).nullable(),load15:_S().min(0).nullable(),memoryTotalBytes:_S().int().min(0),memoryUsedBytes:_S().int().min(0),observedAt:_S().int().min(0)})})),GPe=o((()=>{})),KPe=o((()=>{})),qPe=o((()=>{})),JPe=o((()=>{})),YPe=o((()=>{})),XPe=o((()=>{})),ZPe=o((()=>{})),QPe=o((()=>{})),$Pe=o((()=>{GPe(),KPe(),qPe(),JPe(),YPe(),XPe(),ZPe(),QPe()})),eFe=o((()=>{LS(),SS({shareId:V(),topicId:V(),visitorUserId:V()})})),tFe=o((()=>{})),nFe=o((()=>{})),rFe=o((()=>{eFe(),tFe(),nFe()})),iFe=o((()=>{})),aFe=o((()=>{})),oFe=o((()=>{})),sFe=o((()=>{})),cFe=o((()=>{})),lFe=o((()=>{})),uFe=o((()=>{})),dFe=o((()=>{})),fFe=o((()=>{})),pFe=o((()=>{LS(),SS({ideal:V().optional(),question:V(),referenceFiles:V().or(xS(V())).optional()}),SS({description:V().optional(),knowledgeBaseId:V(),name:V()})})),mFe=o((()=>{})),hFe=o((()=>{})),gFe=o((()=>{})),_Fe=o((()=>{LS(),SS({ideal:V().optional(),question:V(),referenceFiles:V().or(xS(V())).optional()}),SS({datasetId:V(),description:V().optional(),knowledgeBaseId:V(),name:V()})})),vFe=o((()=>{})),yFe=o((()=>{})),bFe=o((()=>{})),xFe,SFe=o((()=>{LS(),XNe(),xFe=SS({api:xS(nC.pick({name:!0,description:!0,parameters:!0}).strict().refine(e=>!e.name.includes(`____`),`Tool names cannot contain the routing separator`)).min(1),identifier:V().min(1).max(255).refine(e=>!e.includes(`____`),`Tool identifiers cannot contain the routing separator`),meta:tC,systemRole:V().optional(),type:ES([`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`),TS(V().min(1).max(255),xFe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),CFe=o((()=>{sFe(),cFe(),lFe(),uFe(),dFe(),fFe(),pFe(),mFe(),hFe(),gFe(),_Fe(),vFe(),yFe(),bFe(),SFe()})),wFe=o((()=>{})),TFe=o((()=>{})),EFe=o((()=>{})),mC,DFe,OFe=o((()=>{mC={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},DFe=[mC.RemoteServerOffline,mC.RemoteServerTimeout,mC.RemoteServerDNSFailed,mC.RemoteServerConnectionRefused,mC.RemoteServerCertInvalid,mC.RemoteServerUnreachable],new Set(DFe)})),kFe,AFe,jFe=o((()=>{LS(),kFe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),AFe=100,SS({category:V().optional(),filesOnly:vS().optional(),includeContentPreview:vS().optional(),knowledgeBaseId:V().optional(),limit:_S().int().positive().max(AFe).default(50),offset:_S().int().min(0).default(0),parentId:V().nullish(),q:V().nullish(),showFilesInKnowledgeBase:vS().default(!1),sortType:ES([`desc`,`asc`]).optional(),sorter:ES([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:DS(kFe).optional(),visibility:ES([`private`,`public`]).optional()})})),MFe,NFe=o((()=>{LS(),MFe=SS({shareId:V(),visitorUserId:V()}),SS({agentShare:MFe.optional(),date:V(),dirname:V(),filename:V(),height:_S().optional(),path:V(),ratio:_S().optional(),width:_S().optional()}),SS({fileType:V(),hash:V().optional(),knowledgeBaseId:V().optional(),metadata:yS().optional(),name:V(),size:_S(),source:V().optional(),url:V().optional()})})),PFe,FFe=o((()=>{jFe(),NFe(),PFe=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(PFe))})),IFe=o((()=>{})),LFe,RFe,zFe,BFe,hC,VFe,HFe,UFe,WFe,GFe=o((()=>{LS(),LFe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],RFe=[`agentEmoji`,`agentName`,`fullName`],zFe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],BFe=[`agent_identity`,`user_identity`,`discovery`,`summary`],hC=V().trim().transform(e=>e.length>0?e:void 0).optional(),VFe=xS(V()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),ES(LFe),HFe=ES(RFe),UFe=ES(zFe),SS({agentEmoji:hC,agentName:hC,customInterests:VFe,fullName:hC,interests:VFe}).strict(),WFe=ES(BFe),SS({discoveryUserMessageCount:_S().optional(),finished:vS(),missingStructuredFields:xS(HFe),phase:WFe,remainingDiscoveryExchanges:_S().optional(),topicId:V().optional(),version:_S()}).strict(),SS({activeTopicId:V().optional(),discoveryStartUserMessageCount:_S().optional(),finishedAt:V().optional(),version:_S()}).strict(),SS({node:UFe,patch:SS({}).passthrough()}).strict()})),KFe,qFe,JFe=o((()=>{LS(),GFe(),KFe=CS([SS({kind:OS(`onboarding`),phase:WFe}),SS({kind:OS(`chat`)})]),qFe=SS({model:V().min(1),provider:V().min(1)}),SS({hint:KFe.optional(),modelConfig:qFe,threadId:V().optional(),topicId:V().min(1)})})),YFe=o((()=>{})),XFe=o((()=>{})),ZFe=o((()=>{})),QFe=o((()=>{})),gC,$Fe,eIe,tIe,nIe,rIe,iIe,aIe,oIe,sIe=o((()=>{LS(),gC=xS(V().trim().min(1)).max(200),$Fe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),eIe=AS(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||$Fe.has(t.toLowerCase())))return t},V().trim().min(1).optional()),tIe=[`dead_end`,`superseded`,`retry`],nIe=2e3,rIe=SS({kind:ES(tIe),lesson:V().trim().min(1).max(nIe),nodeIds:gC.min(1),reason:V().trim().min(1).max(nIe),title:V().trim().min(1).max(200)}).strict(),iIe=SS({detours:xS(rIe).max(20).default([]),findingIds:gC.default([]),narrative:V().trim().min(1).max(8e3),nodeIds:gC.default([]),title:V().trim().min(1).max(200),workVersionIds:gC.default([])}).strict(),aIe=SS({nodeIds:gC.optional(),reason:V().trim().min(1).max(2e3),title:V().trim().min(1).max(200)}).strict(),oIe=SS({edgeIds:gC.default([]),nodeIds:gC.min(1)}).strict(),SS({chapters:xS(iIe).min(1).max(30),deliverableWorkId:eIe,graphCursor:V().trim().min(1),headline:V().trim().min(1).max(500),mainline:oIe.optional(),nextSteps:xS(aIe).max(20).default([])}).strict()})),cIe=o((()=>{})),lIe=o((()=>{})),uIe=o((()=>{})),dIe=o((()=>{})),fIe,pIe,mIe,hIe=o((()=>{LS(),fIe=SS({apiName:V(),arguments:V(),id:V(),identifier:V(),type:OS(`default`)}),pIe=SS({clientId:V(),content:V(),createdAt:V().optional(),metadata:TS(V(),yS()).optional(),model:V().optional(),parentClientId:V().nullish(),plugin:SS({apiName:V(),arguments:V(),identifier:V(),type:V()}).optional(),pluginState:TS(V(),yS()).optional(),provider:V().optional(),reasoning:SS({content:V()}).passthrough().optional(),role:ES([`user`,`assistant`,`tool`]),toolCallId:V().optional(),tools:xS(fIe).optional(),usage:TS(V(),yS()).optional()}),mIe=SS({clientId:V(),messages:xS(pIe),sourceMessageClientId:V().optional(),status:ES([`active`,`completed`,`failed`]).optional(),title:V().optional(),type:ES([`continuation`,`standalone`,`isolation`])}),SS({messages:xS(pIe),metadata:TS(V(),yS()).optional(),sessionId:V(),source:ES([`claude-code`,`codex`]),sourceEndAt:V().optional(),threads:xS(mIe).optional(),title:V().optional(),topicClientId:V(),workingDirectory:V().optional()})})),gIe=o((()=>{})),_Ie=o((()=>{})),vIe=o((()=>{})),yIe=o((()=>{})),bIe,xIe=o((()=>{bIe=[`triage`,`backlog`,`unstarted`,`started`],[...bIe]})),SIe=o((()=>{})),CIe=o((()=>{})),wIe=o((()=>{})),TIe=o((()=>{})),EIe,DIe,OIe=o((()=>{LS(),EIe=SS({domain:V().optional(),imageUri:V().optional(),sourceUri:V().optional(),title:V().optional()}),DIe=SS({citations:xS(SS({favicon:V().optional(),id:V().optional(),title:V().optional(),url:V()})).optional(),imageResults:xS(EIe).optional(),imageSearchQueries:xS(V()).optional(),searchQueries:xS(V()).optional()})})),kIe=o((()=>{LS(),OIe(),$S(),SS({content:V().optional(),editorData:TS(V(),yS()).nullish(),error:VMe.nullish(),imageList:xS(wNe).optional(),metadata:QS.optional(),model:V().optional(),observationId:V().optional(),provider:V().optional(),reasoning:UMe.optional(),role:V().optional(),search:DIe.nullish(),toolCalls:xS(ONe).optional(),tools:xS(kNe).nullish(),traceId:V().optional(),usage:ZS.optional()}).passthrough()})),AIe=o((()=>{TIe(),kIe()})),jIe=o((()=>{})),MIe=o((()=>{})),NIe=o((()=>{})),PIe=o((()=>{})),FIe=o((()=>{jIe(),MIe(),NIe(),LNe(),PNe(),PIe()})),IIe=o((()=>{$S(),AIe(),FIe()})),LIe=o((()=>{LS(),SS({avatar:V().optional(),backgroundColor:V().optional(),description:V().optional(),marketIdentifier:V().optional(),name:V().optional(),tags:xS(V()).optional(),title:V().optional()})})),RIe=o((()=>{})),zIe=o((()=>{})),BIe,VIe=o((()=>{LS(),BIe=SS({accessToken:V().optional(),token:V().optional(),type:ES([`none`,`bearer`,`oauth2`])}).optional(),SS({auth:BIe,headers:TS(V(),V()).optional(),identifier:V(),metadata:SS({avatar:V().optional(),description:V().optional()}).optional(),url:V().url()})})),HIe=o((()=>{})),UIe=o((()=>{VIe(),HIe()})),WIe=o((()=>{})),GIe=o((()=>{LS(),SS({fileIds:xS(V()).optional(),knowledgeIds:xS(V()).optional(),query:V(),topK:_S().optional()})})),KIe=o((()=>{})),qIe=o((()=>{})),JIe=o((()=>{})),YIe=o((()=>{})),XIe=o((()=>{})),ZIe=o((()=>{})),QIe=o((()=>{})),$Ie,eLe=o((()=>{$Ie=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),tLe=o((()=>{QIe(),eLe()})),nLe,rLe,iLe=o((()=>{nLe=`NO_REPLY`,rLe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${nLe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(rLe)})),aLe,oLe=o((()=>{LS(),aLe=SS({name:V(),url:V().url().optional()}),SS({author:CS([V(),aLe]).optional(),description:V().min(1,`Skill description is required`),license:V().optional(),name:V().min(1,`Skill name is required`),permissions:xS(V()).optional(),repository:V().url().optional(),sourceUrl:V().url().optional(),version:V().optional()}).passthrough()})),sLe=o((()=>{})),cLe=o((()=>{})),lLe=o((()=>{})),uLe,dLe=o((()=>{uLe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],uLe[0]})),_C,fLe=o((()=>{_C=1440*60*1e3,30*_C,90*_C,7*_C})),pLe=o((()=>{cLe(),lLe(),dLe(),fLe()})),mLe=o((()=>{})),vC,hLe,gLe,_Le,vLe,yLe,bLe,xLe=o((()=>{LS(),vC=ES([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),SS({serverDefaultHeterogeneousProfiles:xS(V().min(1)).optional()}).passthrough(),hLe=SS({audio:vS().optional(),functionCall:vS().optional(),imageOutput:vS().optional(),reasoning:vS().optional(),search:vS().optional(),video:vS().optional(),vision:vS().optional()}),gLe=SS({codexMaxReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:ES([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:ES([`none`,`high`,`max`]).optional(),effort:ES([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:ES([`high`,`max`]).optional(),glm5_3ReasoningEffort:ES([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:ES([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:ES([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:ES([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:ES([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:ES([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:ES([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:ES([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:ES([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:ES([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:ES([`low`,`high`,`max`]).optional(),opus47Effort:ES([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:ES([`low`,`medium`,`high`]).optional(),reasoningMode:ES([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:ES([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:ES([`low`,`high`]).optional(),thinkingLevel:ES([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:ES([`low`,`high`]).optional(),thinkingLevel3:ES([`low`,`medium`,`high`]).optional(),thinkingLevel4:ES([`minimal`,`high`]).optional(),thinkingLevel5:ES([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(gLe.shape),_Le=ES(`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(`.`)),vLe=ES([`tool`,`params`,`internal`]),yLe=ES([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),bLe=SS({disabledParams:xS(yLe).optional(),extendParams:xS(_Le).optional(),searchImpl:vLe.optional(),searchProvider:V().optional(),ttsVoice:V().optional()}),SS({abilities:hLe.optional(),contextWindowTokens:_S().optional(),displayName:V().optional(),id:V(),providerId:V(),releasedAt:V().optional(),settings:bLe.optional(),type:vC.optional()}),SS({abilities:hLe.optional(),config:SS({deploymentName:V().optional()}).optional(),contextWindowTokens:_S().nullish(),displayName:V().nullish(),settings:bLe.optional(),type:vC.optional()}),SS({enabled:vS(),id:V(),providerId:V(),source:ES([`builtin`,`custom`,`remote`]).optional(),type:vC.optional()})})),SLe,yC,CLe,wLe,TLe,ELe,DLe,OLe,kLe=o((()=>{xLe(),LS(),vMe(),bMe(),SLe=SS({claimedAt:V(),expiresAt:V(),id:V()}),yC=SS({claim:SLe.optional(),createdAt:V(),runAt:V().datetime(),updatedAt:V()}),CLe=yC.extend({failedAssistantMessageId:V(),kind:OS(`resume_after_rate_limit`),rateLimit:SS({rateLimitType:V().optional(),resetsAt:_S().optional()}).optional(),resume:SS({sessionId:V().optional(),workingDirectory:V().optional()}).optional(),source:OS(`heterogeneous_agent`),userMessageId:V()}),wLe=yC.extend({kind:OS(`delayed_start`),model:V().optional(),provider:V().optional(),userMessageId:V()}),SS({baseBranch:V().min(1).max(1024).optional(),deviceId:V().min(1).max(256),path:V().min(1).max(4096),repoType:ES([`git`,`github`]),sourcePath:V().min(1).max(4096)}),TLe=yC.extend({error:V().optional(),kind:OS(`worktree_start`),operationId:V(),retryable:vS().optional(),userMessageId:V(),waitingForDevice:vS().optional()}),ELe=wS(`kind`,[CLe,wLe,TLe]),SS({claim:SLe.optional(),createdAt:V(),failedAssistantMessageId:V(),kind:GOe().optional(),rateLimit:SS({rateLimitType:V().optional(),resetsAt:_S().optional()}).optional(),reason:OS(`rate_limit`),resume:SS({sessionId:V().optional(),workingDirectory:V().optional()}).optional(),source:OS(`heterogeneous_agent`),updatedAt:V(),userMessageId:V()}),DLe=SS({boundDeviceId:V().optional(),heteroEffort:kS(e=>typeof e==`string`).optional(),heteroSessionBindingKey:V().optional(),heteroSessionBindingKeyByWorkingDirectory:TS(V(),V()).optional(),heteroSessionId:V().optional(),heteroSessionIdByWorkingDirectory:TS(V(),V()).optional(),heteroPermissionMode:ES(yMe).optional(),heteroPermissionModeFallback:ES([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:ES([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:V().optional(),onboardingFeedback:SS({comment:V().max(500).optional(),rating:ES([`good`,`bad`]),submittedAt:V()}).optional(),onboardingSession:SS({agentIdentityCompletedAt:V().optional(),agentMarketplacePick:SS({categoryHints:xS(V()),installedAgentIds:xS(V()).optional(),requestId:V(),resolvedAt:V(),selectedTemplateIds:xS(V()).optional(),skipReason:V().optional(),skippedAgentIds:xS(V()).optional(),status:ES([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:V().optional(),finalAgentNames:xS(V()).optional(),finishedAt:V().optional(),lastActiveAt:V().optional(),phase:ES([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:V().optional(),userIdentityCompletedAt:V().optional(),version:_S().optional()}).optional(),provider:V().optional(),lastSettledOperationId:V().optional(),reasoningConfig:gLe.optional(),repos:xS(V()).optional(),runningOperation:KOe().optional(),taskCallbackReservation:SS({messageId:V(),reservedAt:V()}).nullable().optional(),sandboxDrive:ES([`personal`,`public`]).optional(),sandboxEnvironmentId:V().max(255).optional(),sandboxInstanceId:V().optional(),sandboxWorkingDirectory:V().max(1024).optional(),scheduledRun:ELe.nullish(),workingDirectory:V().optional(),workingDirectoryConfig:gMe.optional()}),DLe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),OLe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],ES(OLe)})),ALe=o((()=>{mLe(),bPe(),kLe()})),jLe=o((()=>{})),MLe=o((()=>{})),NLe=o((()=>{LS(),SS({currentStep:_S().min(1).max(7).optional(),finishedAt:V().optional(),version:_S()})})),PLe=o((()=>{})),FLe,ILe,LLe=o((()=>{LS(),FLe=SS({checked:vS(),id:V().min(1).max(128),instruction:V().trim().min(1).max(4e3),providerId:V().trim().min(1).max(128),reason:V().trim().min(1).max(1e3),sources:xS(SS({subject:V().trim().min(1).max(500).optional(),title:V().trim().min(1).max(500).optional(),type:V().trim().min(1).max(128),url:V().trim().min(1).max(2048)}).strict()).min(1).max(16),title:V().trim().min(1).max(200)}).strict(),ILe=SS({code:V().min(1).max(128),providerId:V().min(1).max(128),retryable:vS()}).strict(),SS({completedAt:V().optional(),createdTaskIds:TS(V().max(128),V().max(512)),errors:xS(ILe).max(16),id:V().min(1).max(512),providerIds:xS(V().min(1).max(128)).max(16),recommendations:xS(FLe).max(48),sourceFingerprint:V().min(1).max(2048),status:ES([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:V()}).strict()})),RLe,zLe,BLe,VLe,HLe=o((()=>{LS(),RLe=SS({docsMerged:vS().optional(),moveSettingsToAvatar:vS().optional(),topic:vS().optional(),uploadFileInKnowledgeBase:vS().optional()}),zLe=SS({enableBetterCodingExperience:vS().optional(),enableAgentIdentity:vS().optional(),enableAgentGraphConfig:vS().optional(),enableArtifactDeployment:vS().optional(),enablePageCollab:vS().optional(),enableClaudeCodeSdk:vS().optional(),enableCodexAppServer:vS().optional(),enableDesktopSplitView:vS().optional(),enableHeteroSessionImport:vS().optional(),enableGroupChat:vS().optional(),enableImessage:vS().optional(),enableInputMarkdown:vS().optional(),enableMessageTextSelectionActions:vS().optional(),enableIntegrations:vS().optional(),enableOAuthApps:vS().optional(),enableProjects:vS().optional(),enableSelfLearning:vS().optional(),enableTaskVerify:vS().optional(),enableEvalCapture:vS().optional(),enableTopicBugReport:vS().optional(),enableGoals:vS().optional(),enableTopicAcceptance:vS().optional(),enableDeviceTunnel:vS().optional()}),BLe=SS({acceptOnMerge:vS().optional(),commentOnPrivateRepositories:vS().optional(),commentOnPublicRepositories:vS().optional(),wakeOnCiFailure:vS().optional(),wakeOnReview:vS().optional()}),VLe=SS({github:BLe.optional()}),SS({provider:V(),providerAccountId:V()}),SS({defaultOpenInApp:V().optional(),fontFamily:V().optional(),guide:RLe.optional(),hideSyncAlert:vS().optional(),integration:VLe.optional(),lab:zLe.optional(),lastWorkspaceId:V().nullish(),projectTopicGroupMode:ES([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:xS(V()).optional(),sidebarHiddenGroupIds:xS(V()).optional(),terminalFontFamily:V().optional(),telemetry:vS().nullable(),topicGroupMode:ES([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:vS().optional(),topicSortBy:ES([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:vS().optional(),workspace:SS({order:xS(V()).optional()}).optional()}).partial()})),ULe=o((()=>{})),WLe=o((()=>{})),GLe=o((()=>{})),KLe=o((()=>{})),qLe=o((()=>{})),JLe=o((()=>{})),YLe=o((()=>{})),XLe=o((()=>{})),ZLe,bC,QLe=o((()=>{LS(),ZLe=TS(V(),TS(V(),vS())),bC=SS({enabled:vS().optional(),items:ZLe.optional()}).strict(),SS({content:SS({scheduledTaskSummary:vS().optional()}).strict().optional(),email:bC.optional(),im:bC.extend({platforms:TS(V(),bC.extend({tenantId:V().optional()}).strict()).optional()}).strict().optional(),inbox:bC.optional(),push:bC.optional()}).strict()})),$Le=o((()=>{})),eRe=o((()=>{})),tRe=o((()=>{})),nRe=o((()=>{})),rRe=o((()=>{LS(),ULe(),WLe(),GLe(),KLe(),qLe(),JLe(),YLe(),XLe(),QLe(),$Le(),eRe(),tRe(),nRe(),SS({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()})),iRe=o((()=>{GFe(),NLe(),PLe(),LLe(),HLe(),rRe()})),aRe=o((()=>{})),oRe=o((()=>{})),sRe=o((()=>{})),cRe=o((()=>{})),lRe,uRe=o((()=>{LS(),lRe=ES([`personal`,`professional`,`demographic`]),SS({description:V().optional(),episodicDate:V().optional(),extractedLabels:xS(V()).optional(),labels:TS(V(),yS()).optional(),relationship:V().optional(),role:V().optional(),type:lRe.optional(),userMemoryId:V().optional()}),SS({description:V().optional(),episodicDate:V().optional(),extractedLabels:xS(V()).optional(),labels:TS(V(),yS()).optional(),relationship:V().optional(),role:V().optional(),type:lRe.optional()})})),dRe,fRe,pRe=o((()=>{dRe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(dRe),fRe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(fRe)})),mRe=o((()=>{})),hRe=o((()=>{})),gRe,_Re,vRe,xC,yRe,bRe,xRe,SRe=o((()=>{gRe=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(gRe),_Re=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(_Re),vRe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(vRe),xC=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(xC),yRe=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(yRe),bRe=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(bRe),xRe=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(xRe)})),CRe=o((()=>{})),SC,wRe,TRe,ERe,DRe,ORe,kRe,ARe,jRe,MRe,NRe,PRe,FRe,IRe=o((()=>{LS(),SRe(),SC=AS(e=>typeof e==`string`?[e]:e,xS(V().trim().min(1))),wRe=e=>AS(e=>typeof e==`string`?[e]:e,xS(e)),TRe=ES([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),ERe=SS({activities:_S().int().min(0).optional(),contexts:_S().int().min(0).optional(),experiences:_S().int().min(0).optional(),identities:_S().int().min(0).optional(),preferences:_S().int().min(0).optional()}),DRe=SS({end:IS().optional(),field:TRe.optional(),start:IS().optional()}),ORe=ES([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),kRe=SS({date:IS(),selector:OS(`day`)}),ARe=SS({month:_S().int().min(1).max(12),selector:OS(`month`),year:_S().int().min(1970).max(9999)}),jRe=SS({end:IS().optional(),selector:OS(`range`),start:IS().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),MRe=SS({selector:OS(`year`),year:_S().int().min(1970).max(9999)}),NRe=ES([`today`,`yesterday`]),PRe=oke(()=>CS([SS({selector:ORe}),kRe,ARe,SS({anchor:CS([NRe,PRe]),offsetDays:_S().int(),selector:OS(`relativeDay`)}),jRe,MRe])),SS({categories:SC.optional(),effort:ES([`low`,`medium`,`high`]).optional(),labels:SC.optional(),layers:wRe(DS(xC)).optional(),queries:SC.optional(),relationships:SC.optional(),status:SC.optional(),tags:SC.optional(),timeIntent:PRe.optional(),timeRange:DRe.optional(),topK:ERe.optional(),types:SC.optional()}),FRe=ES([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),SS({include:wRe(FRe).optional(),layers:xS(DS(xC)).optional(),limit:_S().int().min(1).max(100).optional(),q:V().trim().optional(),timeRange:DRe.optional()})})),LRe=o((()=>{})),RRe=o((()=>{aRe(),oRe(),sRe(),cRe(),uRe(),pRe(),mRe(),hRe(),SRe(),CRe(),IRe(),LRe()})),zRe=o((()=>{})),BRe=o((()=>{})),VRe=o((()=>{BRe()})),HRe=o((()=>{})),URe=o((()=>{})),WRe=o((()=>{HRe(),URe()})),GRe,KRe=o((()=>{GRe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(GRe).flatMap(([e,t])=>t.map(t=>[t,e])))})),qRe=o((()=>{})),JRe=o((()=>{LS(),SS({start:_S().finite().nonnegative()}).strict()})),YRe=o((()=>{LS(),SS({preconditions:xS(V().max(4e3)).max(100).optional(),expected:V().max(2e4).optional(),fixtures:xS(SS({id:V().min(1),name:V().min(1),description:V().optional(),resource:SS({type:ES([`file`,`document`]),id:V().min(1)}).optional(),data:TS(V(),bS()).optional()})).max(100).optional(),steps:xS(SS({id:V().min(1),instruction:V().min(1),expected:V().optional(),fixtureIds:xS(V()).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`]})})})),CC,XRe,ZRe=o((()=>{LS(),CC=SS({height:_S().finite(),width:_S().finite(),x:_S().finite(),y:_S().finite()}),XRe=SS({commit:V().max(200).optional(),context:TS(V().max(100),CS([V().max(500),_S(),vS()])).optional(),env:SS({consoleErrors:xS(V().max(2e3)).max(10),userAgent:V().max(500)}).optional(),intent:ES([`change`,`comment`]),region:CC.optional(),regionRefs:xS(SS({box:CC,selector:V().max(2e3),text:V().max(200).optional()}).nullable()).max(6).optional(),route:V().max(500).optional(),scroll:SS({x:_S().finite(),y:_S().finite()}),targets:xS(SS({code:SS({chain:xS(SS({file:V().max(500).optional(),line:_S().int().optional(),name:V().max(200)})).max(5),column:_S().int(),file:V().max(500),line:_S().int()}).optional(),label:V().max(200),rect:CC,selector:V().max(2e3),text:V().max(200).optional()})).max(8),title:V().max(300).optional(),url:V().url().max(2e3),v:OS(1),viewport:SS({dpr:_S().positive(),height:_S().finite(),width:_S().finite()})}),SS({anchor:XRe.optional(),clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3),parentId:V().trim().min(1).max(64).optional(),screenshot:SS({dataUrl:V().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`}),SS({note:V().trim().max(2e3).optional(),verdict:ES([`accept`,`send_back`])})})),QRe,wC,TC,EC,$Re,eze,tze,nze,rze,ize,aze,oze=o((()=>{LS(),ZRe(),QRe=[`region`,`element`,`sketch`],wC=_S().finite(),TC=SS({height:wC,width:wC,x:wC,y:wC}),EC=XRe.shape,$Re=oke(()=>SS({children:xS($Re).max(50),rect:TC,type:ES([`avatar`,`button`,`card`,`image`,`input`,`text`])})),eze=SS({commit:EC.commit,context:EC.context,env:EC.env}),tze=SS({description:V().max(500).optional(),favicon:V().max(2e3).optional(),lang:V().max(35).optional(),title:V().max(300).optional()}),nze=SS({clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3),context:eze.optional(),kind:ES(QRe),pageMeta:tze.optional(),rectDocument:TC,rectViewport:TC,regionRefs:EC.regionRefs,regions:xS(TC).max(6).optional(),routeKey:V().max(500),scroll:SS({x:wC,y:wC}),sketch:xS($Re).max(50).optional(),targets:EC.targets.optional(),url:V().url().max(2e3),viewport:SS({dpr:_S().positive(),height:wC,width:wC})}),rze=64*1024,ize=SS({dataUrl:V().regex(/^data:image\/(jpeg|webp);base64,/)}),nze.extend({screenshot:ize.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=rze,{message:`Mark is too large`}),SS({content:V().trim().min(1).max(4e3).optional(),rectDocument:TC.optional(),rectViewport:TC.optional(),regionRefs:EC.regionRefs,regions:xS(TC).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),SS({agentId:V().trim().min(1).max(255).optional(),feedback:V().trim().max(4e3).optional()}),aze=[`pass`,`not_fixed`],SS({reason:V().trim().max(2e3).optional(),verdict:ES(aze)}),SS({clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3)})})),sze=o((()=>{})),cze=o((()=>{})),lze=o((()=>{})),uze,dze,fze,pze,mze,hze,gze,_ze,vze,yze=o((()=>{LS(),uze=[`new`,`reuse`],dze=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,fze=SS({channelId:V().min(1),threadId:V().min(1).optional()}).strict(),pze=SS({arguments:TS(V(),bS()),delivery:fze.optional(),eventName:V().min(1),linkId:V().min(1).optional()}).strict(),mze=SS({cursor:V().nullable().optional(),deliveryStatus:SS({active:vS().optional(),failedSince:V().optional(),lastDeliveryAt:V().optional(),lastError:V().nullable().optional(),retryAfterMs:_S().nonnegative().optional(),throttled:vS().optional()}).optional(),refreshBefore:uAe({offset:!0}).nullable().optional(),remoteSubscriptionId:V().optional(),truncated:vS().optional()}).strict(),hze=SS({scheme:OS(`standard_webhooks`)}).strict(),gze=SS({autoApprove:vS(),delivery:fze.optional(),identifier:V().regex(dze).optional(),topicMode:ES(uze),topicId:V().min(1).optional()}).strict(),_ze=SS({}).strict(),vze=SS({scheme:OS(`bearer_token`)}).strict(),wS(`kind`,[SS({kind:OS(`mcp_events`),config:pze,state:mze,verification:hze}),SS({kind:OS(`generic`),config:gze,state:_ze,verification:vze})])})),bze=o((()=>{})),xze=o((()=>{})),Sze=o((()=>{})),Cze=o((()=>{})),wze=o((()=>{})),Tze=o((()=>{})),Eze=o((()=>{})),Dze=o((()=>{})),Oze=o((()=>{Eze(),Dze()})),kze=o((()=>{})),Aze=o((()=>{})),jze=o((()=>{})),Mze=o((()=>{uMe(),fMe(),pMe(),mMe(),wMe(),EMe(),AMe(),jMe(),MMe(),PMe(),FMe(),IMe(),TPe(),EPe(),DPe(),OPe(),kPe(),APe(),jPe(),NPe(),FPe(),IPe(),LPe(),RPe(),zPe(),BPe(),VPe(),vMe(),HPe(),UPe(),WPe(),$Pe(),rFe(),iFe(),aFe(),BMe(),oFe(),CFe(),wFe(),TFe(),EFe(),OFe(),FFe(),IFe(),JFe(),YFe(),XFe(),ZFe(),QFe(),sIe(),cIe(),lIe(),uIe(),dIe(),hIe(),gIe(),_Ie(),vIe(),yIe(),xIe(),SIe(),CIe(),wIe(),IIe(),LIe(),RIe(),zIe(),UIe(),WIe(),GIe(),KIe(),qIe(),JIe(),YIe(),OIe(),XIe(),ZIe(),tLe(),iLe(),oLe(),sLe(),pLe(),aPe(),ALe(),jLe(),MLe(),vPe(),iRe(),RRe(),zRe(),VRe(),WRe(),KRe(),qRe(),JRe(),YRe(),ZRe(),oze(),KMe(),sze(),cze(),lze(),bMe(),yze(),bze(),xze(),Sze(),Cze(),wze(),Tze(),Oze(),vPe(),RRe(),kze(),Aze(),jze()})),Nze=o((()=>{})),Pze,DC,Fze=o((()=>{Pze=[`*`,`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(Pze),DC=(e,t)=>({read:e,write:t}),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,null),DC(`knowledge:read`,`knowledge:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,null),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`model:read`,`model:write`),DC(`model:read`,`model:write`),DC(`chat:read`,null),DC(`chat:read`,`chat:write`),DC(`knowledge:read`,`knowledge:write`),DC(`model:read`,`model:write`),DC(`agent:read`,null),DC(`knowledge:read`,`knowledge:write`),DC(`knowledge:read`,`knowledge:write`),DC(`knowledge:read`,`knowledge:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`user:read`,`user:write`),DC(`file:read`,`file:write`),DC(`file:read`,`file:write`),DC(`chat:read`,`chat:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`chat:read`,`chat:write`),DC(`knowledge:read`,`knowledge:write`),DC(`knowledge:read`,`knowledge:write`),DC(`agent:read`,`agent:write`),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`agent:read`,`agent:write`),DC(`knowledge:read`,`knowledge:write`),DC(`user:read`,`user:write`),DC(`chat:read`,`chat:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`chat:read`,null),DC(`chat:read`,null),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,`agent:write`),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`chat:read`,`chat:write`),DC(`file:read`,`file:write`),DC(`usage:read`,null),DC(`user:read`,`user:write`),DC(`user:read`,`user:write`),DC(`user:read`,`user:write`),DC(`agent:read`,`agent:write`),DC(`agent:read`,null),DC(`agent:read`,`agent:write`),DC(`workspace:read`,`workspace:write`),DC(`workspace:read`,null),DC(`workspace:read`,null),DC(`workspace:read`,`workspace:write`)})),OC,Ize=o((()=>{OC=1024*1024,10*OC,10*OC,10*OC,10*OC,50*OC,50*OC,20*OC,5*OC,20*OC,2*OC,100*OC})),Lze=o((()=>{}));function Rze(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=Vze.test(e[0]);zze.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(Bze,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(Bze,`$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 kC(...e){return Rze(Array.from(Array.isArray(e[0])?e[0]:e))}var zze,Bze,Vze,Hze=o((()=>{zze=RegExp(`^[^/:\\d][^/:]*:/*$`),Bze=RegExp(`^([^/:\\d][^/:]*):/*`),Vze=/^[^/:]+:\d+(?:[/?#]|$)/})),Uze,AC,Wze,Gze,jC,MC,Kze,qze,Jze,Yze,Xze,Zze,Qze=o((()=>{Hze(),Uze=`https://app.lobehub.com`,AC=`https://lobehub.com`,Wze=AC,Gze=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},jC=`https://github.com/lobehub/lobehub`,kC(jC,`issues/new/choose`),MC=kC(AC,`/docs`),Kze=kC(MC,`/usage`),qze=kC(MC,`/self-hosting`),kC(qze,`/server-database`),`${MC}`,kC(Kze,`/plugins/development`),kC(qze,`/advanced/upstream-sync`),kC(AC,`blog`),kC(jC,`issues/new/choose`),kC(AC,`/privacy`),kC(AC,`/terms`),Jze=`https://github.com/lobehub/lobe-chat-agents`,kC(Jze,`issues/new`),Yze=(e,t)=>`/agent/${e}`,Xze=(e,t,n)=>kC(`/agent`,e,t),Zze=(e,t)=>kC(`/group`,e,t),kC(jC,`releases`),kC(AC,`changelog`),kC(AC,`/downloads`),kC(AC,`/mobile`)})),$ze=o((()=>{Qze()})),eBe=o((()=>{$ze()})),tBe=o((()=>{})),nBe,NC,rBe,iBe,aBe=o((()=>{nBe=e=>e.join(`+`),NC={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},rBe=[{electronAccelerator:`Alt+Shift+Space`,id:NC.QuickComposer,uiKeys:nBe([`alt`,`shift`,`space`])},{electronAccelerator:``,id:NC.QuickChat,uiKeys:``},{electronAccelerator:``,id:NC.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:NC.OpenSettings,nonEditable:!0,uiKeys:nBe([`mod`,`comma`])}],iBe=rBe.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),rBe.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),oBe=o((()=>{aBe(),iBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),sBe,cBe,lBe,uBe=o((()=>{JS(),sBe={},cBe=mje,lBe=`/avatars/lobe-ai.png`})),PC=o((()=>{JS()})),dBe,fBe,pBe,mBe,hBe=o((()=>{JS(),uBe(),PC(),dBe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},fBe={model:KS,provider:qS},pBe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:fBe,searchMode:`auto`,selfIteration:{enabled:!1}},mBe={chatConfig:pBe,model:KS,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:qS,systemRole:``,tts:dBe}})),gBe=o((()=>{})),_Be=o((()=>{})),vBe,yBe,bBe,xBe,SBe,CBe,wBe,TBe,EBe,DBe,OBe,kBe,ABe,jBe,MBe,NBe,PBe,FBe=o((()=>{vBe=`@lobehub/lobehub`,yBe=`2.3.4`,bBe=`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.`,xBe=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],SBe=`https://github.com/lobehub/lobehub`,CBe={url:`https://github.com/lobehub/lobehub/issues/new/choose`},wBe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},TBe=`LobeHub <i@lobehub.com>`,EBe=[`./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`],DBe=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],OBe={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: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`},kBe={"@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`},ABe=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-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-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"}`),jBe={"@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`},MBe=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,NBe={access:`public`,registry:`https://registry.npmjs.org`},PBe={name:vBe,version:yBe,description:bBe,keywords:xBe,homepage:SBe,bugs:CBe,repository:wBe,license:`MIT`,author:TBe,sideEffects:EBe,workspaces:DBe,scripts:OBe,"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:kBe,dependencies:ABe,devDependencies:jBe,packageManager:MBe,publishConfig:NBe}})),FC,IC,LC=o((()=>{JS(),FBe(),FC=PBe.version,IC=GS!==`LobeHub`})),RC,zC,BC,VC,HC,IBe,LBe=o((()=>{LC(),RC=e=>e.join(`+`),zC={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`},BC={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`},VC={Conversation:`conversation`,Essential:`essential`},HC={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},IBe=[{group:VC.Essential,id:BC.CommandPalette,keys:RC([zC.Mod,`k`]),scopes:[HC.Global]},{group:VC.Essential,id:BC.Search,keys:RC([zC.Mod,`j`]),scopes:[HC.Global]},{group:VC.Essential,id:BC.SwitchAgent,keys:RC([zC.Ctrl,zC.Number]),nonEditable:!0,scopes:[HC.Global]},{group:VC.Essential,id:BC.SwitchTab,keys:RC([zC.Mod,zC.Number]),nonEditable:!0,scopes:[HC.Global]},{group:VC.Essential,id:BC.NextTab,keys:RC([zC.Ctrl,zC.Tab]),nonEditable:!0,scopes:[HC.Global]},{group:VC.Essential,id:BC.PrevTab,keys:RC([zC.Ctrl,zC.Shift,zC.Tab]),nonEditable:!0,scopes:[HC.Global]},{group:VC.Essential,id:BC.NavigateToChat,keys:RC([zC.Ctrl,zC.Shift,zC.Backquote]),scopes:[HC.Global]},{group:VC.Essential,id:BC.ToggleLeftPanel,keys:RC([zC.Mod,zC.BracketLeft]),scopes:[HC.Global]},{group:VC.Essential,id:BC.ToggleRightPanel,keys:RC([zC.Mod,zC.BracketRight]),scopes:[HC.Global]},{group:VC.Essential,id:BC.OpenHotkeyHelper,keys:RC([zC.Ctrl,zC.Shift,zC.QuestionMark]),scopes:[HC.Global]},{group:VC.Essential,id:BC.ToggleFavorite,keys:RC([zC.Alt,`f`]),scopes:[HC.Global]},{group:VC.Essential,id:BC.OpenTaskFilter,keys:`f`,scopes:[HC.Global]},{group:VC.Conversation,id:BC.FindInTopic,keys:RC([zC.Mod,`f`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.ToggleTerminalPanel,keys:RC([zC.Ctrl,zC.Backquote]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.OpenChatSettings,keys:RC([zC.Alt,zC.Comma]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.RegenerateMessage,keys:RC([zC.Alt,`r`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.DeleteLastMessage,keys:RC([zC.Alt,`d`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.DeleteAndRegenerateMessage,keys:RC([zC.Alt,zC.Shift,`r`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.SaveTopic,keys:RC([zC.Alt,`n`]),scopes:[HC.Chat]},{group:VC.Conversation,id:BC.EditMessage,keys:RC([zC.Alt,zC.LeftDoubleClick]),nonEditable:!0,scopes:[HC.Chat]},{group:VC.Essential,id:BC.SaveDocument,keys:RC([zC.Mod,`s`]),scopes:[HC.Files]}]})),RBe=o((()=>{LBe(),IBe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),zBe=o((()=>{})),BBe=o((()=>{JS(),PC()})),VBe=o((()=>{})),HBe=o((()=>{})),UBe,UC,WBe=o((()=>{JS(),BBe(),PC(),UBe={model:KS,provider:qS},UC={model:Dje,provider:Oje},UC.model,UC.provider,UC.model,UC.provider,UC.model,UC.provider,{...UBe},Reflect.get(Jje,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(Jje,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),GBe=o((()=>{})),KBe=o((()=>{})),WC=o((()=>{hBe(),gBe(),_Be(),RBe(),zBe(),BBe(),PC(),VBe(),HBe(),WBe(),GBe(),KBe()})),qBe=o((()=>{WC(),new Date().toISOString()})),JBe=o((()=>{})),YBe=o((()=>{Object.freeze([])})),XBe=o((()=>{})),ZBe,QBe,$Be,eVe=o((()=>{ZBe=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],QBe=2*1024*1024*1024-1,`${QBe}`,$Be=64*1024*1024,`${$Be}`,[...ZBe]})),tVe,nVe=o((()=>{JS(),`${GS}`,tVe=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(tVe)})),rVe,iVe=o((()=>{rVe=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(rVe)})),aVe=o((()=>{})),oVe=o((()=>{})),sVe=o((()=>{})),cVe=o((()=>{})),lVe=o((()=>{})),uVe=o((()=>{})),dVe,fVe=o((()=>{$n(),dVe=(e,t)=>dn({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),pVe,mVe,hVe=o((()=>{uBe(),WC(),fVe(),pVe=`agent`,mVe={config:mBe,createdAt:new Date,id:``,meta:sBe,model:mBe.model,type:pVe,updatedAt:new Date},dVe(mVe,{id:`inbox`,meta:{avatar:lBe}})})),gVe=o((()=>{})),_Ve=o((()=>{})),vVe=o((()=>{})),yVe=o((()=>{})),bVe=o((()=>{})),xVe=o((()=>{})),SVe=o((()=>{})),CVe=o((()=>{})),wVe,TVe,EVe=o((()=>{JS(),WC(),wVe={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:{...wVe}},TVe.high.contexts})),DVe=o((()=>{})),OVe=o((()=>{})),GC=o((()=>{Pxe(),Ixe(),Lxe(),Gxe(),Nze(),Fze(),Ize(),Lze(),eBe(),tBe(),oBe(),aBe(),qBe(),JBe(),YBe(),XBe(),eVe(),nVe(),iVe(),aVe(),oVe(),$ze(),sVe(),uBe(),cVe(),lVe(),uVe(),hVe(),WC(),gVe(),_Ve(),vVe(),yVe(),bVe(),xVe(),SVe(),Qze(),CVe(),EVe(),LC(),DVe(),OVe()}));GC();var KC=[[`LobeHub Cloud`,pje,`LobeHub Cloud`],[`LobeHub`,GS,`LobeHub`],[`LobeChat`,GS,`LobeHub`],[`Lobe AI`,cBe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),kVe=new Map(KC),AVe=`Lobe`,jVe=KC.length?RegExp(`(?<!@)(${KC.map(([e])=>e).join(`|`)})`,`g`):void 0,MVe=KC.length>0,NVe=`brandStrings`,PVe=e=>!jVe||!e.includes(AVe)?e:e.replaceAll(jVe,e=>kVe.get(e)??e),FVe={name:NVe,process:e=>typeof e==`string`?PVe(e):e,type:`postProcessor`},IVe=MVe?{postProcess:[NVe]}:{},LVe=e=>MVe?e.use(FVe):e,RVe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},zVe=c({default:()=>BVe}),BVe,VVe=o((()=>{BVe={"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
@@ -7788,6 +7788,7 @@ var init_pluginConfig = __esmMin((() => {
7788
7788
  "disabled"
7789
7789
  ]);
7790
7790
  AgentPluginEntrySchema = union([string(), object$1({
7791
+ builtinOverride: literal(true).optional(),
7791
7792
  identifier: string(),
7792
7793
  mode: AgentPluginModeSchema.optional()
7793
7794
  })]);
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 "" "@lichao0223/lobehub\-cli 0.0.95" "User Commands"
3
+ .TH LH 1 "" "@lichao0223/lobehub\-cli 0.0.97" "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": "@lichao0223/lobehub-cli",
3
- "version": "0.0.95",
3
+ "version": "0.0.97",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/lichao0223/lobehub",
@@ -83,5 +83,5 @@
83
83
  "access": "public",
84
84
  "registry": "https://registry.npmjs.org"
85
85
  },
86
- "gitHead": "838cdf1159237108abfde93ba0be85ddbe84c1ba"
86
+ "gitHead": "c5e2f55f02cee5ea28b54558140d4bcb67a88f28"
87
87
  }