@lobehub/cli 0.0.146 → 0.0.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -167,7 +167,7 @@ Error generating stack: `+e.message+`
167
167
 
168
168
  `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=Lx,c=!fS.jitless,l=c&&tSe.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?VCe([],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)}}),WS=oS(`$ZodUnion`,(e,t)=>{LS.init(e,t),$x(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),$x(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),$x(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)))}),$x(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>jx(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>HCe(t,r,e,i)):HCe(o,r,e,i)}}),Fwe=oS(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,WS.init(e,t);let n=e._zod.parse;$x(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||Mx(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=Nx(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=Ax(()=>UCe(t));e._zod.parse=(i,a)=>{let o=i.value;if(!Lx(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),Iwe=oS(`$ZodIntersection`,(e,t)=>{LS.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>WCe(e,t,n)):WCe(e,i,a)}}),Lwe=oS(`$ZodRecord`,(e,t)=>{LS.init(e,t);let n=fS.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Rx(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>qx(e,i,sS())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...Wx(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...Wx(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e))if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e);l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&TS.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>qx(e,i,sS())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...Wx(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...Wx(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),Rwe=oS(`$ZodEnum`,(e,t)=>{LS.init(e,t);let n=Ox(t.entries),r=new Set(n);e._zod.values=r,$x(e,`pattern`,e=>{let t=Ox(e.def.entries).filter(e=>nSe.has(typeof e));return RegExp(t.length?`^(${t.map(e=>zx(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),zwe=oS(`$ZodLiteral`,(e,t)=>{LS.init(e,t);let n=new Set(t.values);e._zod.values=n,$x(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?zx(e):e?zx(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Bwe=oS(`$ZodTransform`,(e,t)=>{LS.init(e,t),e._zod.optin=`optional`,fS.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new dS(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 uS;return n.value=i,n}}),GS=oS(`$ZodOptional`,(e,t)=>{LS.init(e,t),$x(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,$x(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),$x(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${jx(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>GCe(e,t)):GCe(e,r)}return t.innerType._zod.run(e,n)}}),Vwe=oS(`$ZodExactOptional`,(e,t)=>{GS.init(e,t),$x(e,`values`,e=>e.def.innerType._zod.values),$x(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Hwe=oS(`$ZodNullable`,(e,t)=>{LS.init(e,t),$x(e,`optin`,e=>e.def.innerType._zod.optin),$x(e,`optout`,e=>e.def.innerType._zod.optout),$x(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${jx(t.source)}|null)$`):void 0}),$x(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)}),Uwe=oS(`$ZodDefault`,(e,t)=>{LS.init(e,t),e._zod.optin=`defaulted`,$x(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=>KCe(e,t)):KCe(r,t)}}),Wwe=oS(`$ZodPrefault`,(e,t)=>{LS.init(e,t),e._zod.optin=`defaulted`,$x(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))}),Gwe=oS(`$ZodNonOptional`,(e,t)=>{LS.init(e,t),$x(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=>qCe(t,e)):qCe(i,e)}}),Kwe=oS(`$ZodCatch`,(e,t)=>{LS.init(e,t),$x(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),$x(e,`optout`,e=>e.def.innerType._zod.optout),$x(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=>JCe(e,r,t,n)):JCe(e,r,t,n)}}),KS=oS(`$ZodPipe`,(e,t)=>{LS.init(e,t),$x(e,`values`,e=>e.def.in._zod.values),$x(e,`optin`,e=>e.def.in._zod.optin),$x(e,`optout`,e=>e.def.out._zod.optout),$x(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=>IS(e,t.in,n)):IS(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>IS(e,t.out,n)):IS(r,t.out,n)}}),qwe=oS(`$ZodPreprocess`,(e,t)=>{KS.init(e,t)}),Jwe=oS(`$ZodReadonly`,(e,t)=>{LS.init(e,t),$x(e,`propValues`,e=>e.def.innerType._zod.propValues),$x(e,`values`,e=>e.def.innerType._zod.values),$x(e,`optin`,e=>e.def.innerType?._zod?.optin),$x(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(YCe):YCe(r)}}),Ywe=oS(`$ZodLazy`,(e,t)=>{LS.init(e,t),Oxe(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),$x(e,`pattern`,e=>e.innerType?._zod?.pattern),$x(e,`propValues`,e=>e.innerType?._zod?.propValues),$x(e,`optin`,e=>e.innerType?._zod?.optin??void 0),$x(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Xwe=oS(`$ZodCustom`,(e,t)=>{DS.init(e,t),LS.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>XCe(t,n,r,e));XCe(i,n,r,e)}})}));function Zwe(e){return typeof e==`object`&&!!e}function JS(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function YS(e,t,n){let r=QS.get(e);if(r!==void 0)return r?tC:$S;if(t.has(e))return tC;t.add(e);let i=$S,a=e=>{if(i!==tC&&e?._zod){let r=YS(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=$S;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?eC:o.value?._zod?YS(o.value,t,n):$S;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=Nx(c);s(e?o(e,!0):eC),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?YS(r,t,!1):eC);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),Qwe(e,i)}function Qwe(e,t){return t!==eC&&QS.set(e,t===tC),t}function $we(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function eTe(){return rTe}function tTe(e,t){let n=e[XS]?.backEdges;return n!==void 0&&Zwe(t)&&n.has(t)}var nTe,XS,ZS,QS,$S,eC,tC,nC,rC,rTe,iTe=o((()=>{aS(),nTe=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},XS=`~memo`,ZS=[],QS=new WeakMap,$S=0,eC=1,tC=2,rC=[],rTe={alloc(e,t,n){let r=nC;if(!r)return n;nC=void 0;let i={value:n,issues:null};return r.set(t.value,i),rC.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`&&tTe(n,e.value))throw new nTe;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=YS(e,new Set,!1);if(i===$S)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===tC||r?n=!0:r=!0}let l=s.value;if(!Zwe(l))return t(s,c);let u=c[XS];u||(u={buckets:new WeakMap,backEdges:void 0},c[XS]=u);let d;i===c?d=a:(d=$we(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(...JS(f.issues)):(s.memo=!0,u.backEdges??=new WeakSet,u.backEdges.add(f.value)),s;nC=d;let p=rC.length,m=t(s,c);nC=void 0;let h=rC.length>p?rC.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?JS(e.issues):ZS),e)):(h&&(h.issues=m.issues.length?JS(m.issues):ZS),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}}}));function aTe(){return{localeError:oTe()}}var oTe,iC=o((()=>{aS(),oTe=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(qxe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Fxe(e.values[0])}`:`Invalid option: expected one of ${Txe(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`:``}: ${Txe(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 sTe(){return new lTe}var cTe,lTe,aC,oC=o((()=>{lTe=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)}},(cTe=globalThis).__zod_globalRegistry??(cTe.__zod_globalRegistry=sTe()),aC=globalThis.__zod_globalRegistry})),uTe=o((()=>{}));function dTe(e){return e.checks&&=[...e.checks],e}function fTe(e,t){return new e(dTe({type:`string`,...Vx(t)}))}function pTe(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Vx(t)})}function mTe(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Vx(t)})}function hTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Vx(t)})}function gTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Vx(t)})}function _Te(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Vx(t)})}function vTe(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Vx(t)})}function yTe(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Vx(t)})}function bTe(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Vx(t)})}function xTe(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Vx(t)})}function STe(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Vx(t)})}function CTe(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Vx(t)})}function wTe(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Vx(t)})}function TTe(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Vx(t)})}function ETe(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Vx(t)})}function DTe(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Vx(t)})}function OTe(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Vx(t)})}function kTe(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Vx(t)})}function ATe(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Vx(t)})}function jTe(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Vx(t)})}function MTe(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Vx(t)})}function NTe(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Vx(t)})}function PTe(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Vx(t)})}function FTe(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Vx(t)})}function ITe(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Vx(t)})}function LTe(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Vx(t)})}function RTe(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Vx(t)})}function zTe(e,t){return new e(dTe({type:`number`,checks:[],...Vx(t)}))}function BTe(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Vx(t)})}function VTe(e,t){return new e({type:`boolean`,...Vx(t)})}function HTe(e,t){return new e({type:`undefined`,...Vx(t)})}function UTe(e,t){return new e({type:`null`,...Vx(t)})}function WTe(e){return new e({type:`any`})}function GTe(e){return new e({type:`unknown`})}function KTe(e,t){return new e({type:`never`,...Vx(t)})}function qTe(e,t){return new e({type:`date`,coerce:!0,...Vx(t)})}function JTe(e,t){return new AS({check:`less_than`,...Vx(t),value:e,inclusive:!1})}function sC(e,t){return new AS({check:`less_than`,...Vx(t),value:e,inclusive:!0})}function YTe(e,t){return new jS({check:`greater_than`,...Vx(t),value:e,inclusive:!1})}function cC(e,t){return new jS({check:`greater_than`,...Vx(t),value:e,inclusive:!0})}function XTe(e,t){return new lCe({check:`multiple_of`,...Vx(t),value:e})}function ZTe(e,t){return new dCe({check:`max_length`,...Vx(t),maximum:e})}function lC(e,t){return new fCe({check:`min_length`,...Vx(t),minimum:e})}function QTe(e,t){return new pCe({check:`length_equals`,...Vx(t),length:e})}function $Te(e,t){return new mCe({check:`string_format`,format:`regex`,...Vx(t),pattern:e})}function eEe(e){return new hCe({check:`string_format`,format:`lowercase`,...Vx(e)})}function tEe(e){return new gCe({check:`string_format`,format:`uppercase`,...Vx(e)})}function nEe(e,t){return new _Ce({check:`string_format`,format:`includes`,...Vx(t),includes:e})}function rEe(e,t){return new vCe({check:`string_format`,format:`starts_with`,...Vx(t),prefix:e})}function iEe(e,t){return new yCe({check:`string_format`,format:`ends_with`,...Vx(t),suffix:e})}function uC(e){return new bCe({check:`overwrite`,tx:e})}function aEe(e){return uC(t=>t.normalize(e))}function oEe(){return uC(e=>e.trim())}function sEe(){return uC(e=>e.toLowerCase())}function cEe(){return uC(e=>e.toUpperCase())}function lEe(){return uC(e=>Nxe(e))}function uEe(e,t,n){return new e({type:`array`,element:t,...Vx(n)})}function dEe(e,t,n){let r=Vx(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function fEe(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Vx(n)})}function pEe(e,t){let n=mEe(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Xx(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(Xx(r))}},e(t.value,t)),t);return n}function mEe(e,t){let n=new DS({check:`custom`,...Vx(t)});return n._zod.check=e,n}var hEe=o((()=>{NS(),aS()}));function dC(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&Mx(e,t,n[t]);return e}function gEe(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??aC,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 fC(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 pC(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,pC(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&dC(o.schema,c),t.io===`input`&&hC(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function _Ee(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function vEe(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${_Ee(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+_Ee(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
169
169
 
170
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function yEe(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;yEe(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 bEe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function mC(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!gC.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]??bEe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}Mx(n,r,e.length===1?e[0]:mC(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=bEe(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 xEe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of gC)if(t in e)return;let n=t.filter(e=>_C.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=mC(t);else{let e=n[0],i=_C.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=>mC([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,dC(e,r))}function SEe(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)):dC(i,s),dC(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())yEe(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)??[])xEe(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)}dC(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,Mx(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:vC(t,`input`,e.processors),output:vC(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function hC(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 hC(r.element,n);if(r.type===`set`)return hC(r.valueType,n);if(r.type===`lazy`)return hC(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 hC(r.innerType,n);if(r.type===`intersection`)return hC(r.left,n)||hC(r.right,n);if(r.type===`record`||r.type===`map`)return hC(r.keyType,n)||hC(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:hC(r.in,n)||hC(r.out,n);if(r.type===`object`){for(let e in r.shape)if(hC(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(hC(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(hC(e,n))return!0;return!!(r.rest&&hC(r.rest,n))}return!1}var gC,_C,CEe,vC,yC=o((()=>{oC(),aS(),gC=new Set([`type`,`properties`,`required`,`additionalProperties`]),_C=[`oneOf`,`anyOf`],CEe=(e,t={})=>n=>{let r=gEe({...n,processors:t});return pC(e,r),vEe(r,e),SEe(r,e)},vC=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=gEe({...i??{},target:a,io:t,processors:n});return pC(e,o),vEe(o,e),SEe(o,e)}}));function bC(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)EEe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&CC(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&CC(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&wC(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&wC(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&EC(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&OC(t,i.mime);for(let e of i.patterns??[])DC(t,e);return t}function xC(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?xC(t.out):t.type===`catch`?xC(t.innerType):e._zod.optin}function SC(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=SC(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=>SC(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?TS:rCe).source),p):p}function wEe(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 PC.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=SC(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 TEe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(fC(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),FC):JSON.parse(o)}var CC,wC,TC,EC,DC,OC,kC,AC,jC,MC,EEe,DEe,OEe,NC,kEe,AEe,jEe,MEe,NEe,PEe,FEe,IEe,LEe,REe,zEe,BEe,VEe,HEe,UEe,WEe,GEe,PC,KEe,qEe,JEe,FC,YEe,XEe,ZEe,QEe,$Ee,IC,eDe,LC=o((()=>{ES(),qS(),yC(),aS(),CC=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},wC=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},TC=(e,t)=>{CC(e,`minimum`,t),wC(e,`maximum`,t)},EC=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},DC=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},OC=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},kC=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},AC=(e,t)=>CC(e,`minimum`,t.minimum),jC=(e,t)=>wC(e,`maximum`,t.maximum),MC=e=>(t,n)=>{kC(t,n.format);let[r,i]=e[n.format];CC(t,`minimum`,r),wC(t,`maximum`,i)},EEe={greater_than:(e,t)=>CC(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>wC(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>EC(e,t.value),number_format:MC(nS),bigint_format:MC(rSe),min_length:AC,max_length:jC,length_equals:(e,t)=>TC(e,t.length),min_size:AC,max_size:jC,size_equals:(e,t)=>TC(e,t.size),string_format:(e,t)=>{kC(e,t.format),t.pattern&&DC(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)=>OC(e,t.mime)},DEe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},OEe=new Map([[VS,ZSe],[HS,QSe]]),NC=e=>OEe.get(e)??e,kEe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=bC(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=DEe[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(NC);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}))])}},AEe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=bC(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)):fC(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}))])}},jEe=(e,t,n,r)=>{n.type=`boolean`},MEe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},NEe=(e,t,n,r)=>{fC(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},PEe=(e,t,n,r)=>{n.not={}},FEe=(e,t,n,r)=>{},IEe=(e,t,n,r)=>{},LEe=(e,t,n,r)=>{fC(e,t,n,r,`Date cannot be represented in JSON Schema`)},REe=(e,t,n,r)=>{let i=e._zod.def,a=Ox(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},zEe=(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(fC(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(fC(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},BEe=(e,t,n,r)=>{fC(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},VEe=(e,t,n,r)=>{fC(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},HEe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=bC(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=pC(a.element,t,{...r,path:[...r.path,`items`]})},UEe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&fC(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Mx(i.properties,e,pC(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`?xC(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=pC(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},WEe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>pC(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},GEe=(e,t,n,r)=>{let i=e._zod.def,a=pC(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=pC(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)},PC=new WeakMap,KEe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=bC(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=pC(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Mx(i.patternProperties,NC(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=pC(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=PC.get(t);n||(n=[],PC.set(t,n),t.deferred.push(()=>wEe(t))),n.push(e)}i.additionalProperties=pC(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&xC(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},qEe=(e,t,n,r)=>{let i=e._zod.def,a=pC(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`}]},JEe=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},FC=Symbol(),YEe=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=TEe(i.defaultValue,e,t,n,r);o!==FC&&(n.default=o)},XEe=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=TEe(i.defaultValue,e,t,n,r);o!==FC&&(n._prefault=o)},ZEe=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{fC(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},QEe=(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;pC(o,t,r);let s=t.seen.get(e);s.ref=o},$Ee=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},IC=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},eDe=(e,t,n,r)=>{let i=e._zod.innerType;pC(i,t,r);let a=t.seen.get(e);a.ref=i}})),RC=o((()=>{pS(),jSe(),gSe(),qS(),iTe(),NS(),wCe(),aS(),ES(),iC(),oC(),SCe(),uTe(),hEe(),yC(),LC(),yC()})),zC=o((()=>{RC()}));function BC(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 VC,tDe,HC,nDe=o((()=>{RC(),aS(),VC=new WeakSet([Object.prototype,Error.prototype]),tDe=(e,t)=>{hSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);VC.has(n)||(VC.add(n),BC(n,`format`,e=>t=>pSe(e,t)),BC(n,`flatten`,e=>t=>fSe(e,t)),BC(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,kx,2)}),BC(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,kx,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},HC=oS(`ZodError`,tDe,void 0,{Parent:Error})})),rDe,iDe,aDe,oDe,sDe,cDe,lDe,uDe,dDe,fDe,pDe,mDe,hDe=o((()=>{RC(),nDe(),rDe=vS(HC),iDe=yS(HC),aDe=bS(HC),oDe=xS(HC),sDe=CSe(HC),cDe=wSe(HC),lDe=TSe(HC),uDe=ESe(HC),dDe=DSe(HC),fDe=OSe(HC),pDe=kSe(HC),mDe=ASe(HC)}));function gDe(){fS.localeError||sS(aTe())}function UC(){fS.memoizer||sS({memoizer:eTe()})}function V(e){return fTe(LDe,e)}function WC(e){return zTe(oOe,e)}function _De(e){return BTe(sOe,e)}function GC(e){return VTe(cOe,e)}function vDe(e){return HTe(lOe,e)}function yDe(e){return UTe(uOe,e)}function KC(){return WTe(dOe)}function qC(){return GTe(fOe)}function bDe(e){return KTe(pOe,e)}function JC(e,t){return uEe(hOe,e,t)}function YC(e,t){return new gOe({type:`object`,shape:e??{},...Vx(t)})}function xDe(e,t){return new gOe({type:`object`,shape:e,catchall:bDe(),...Vx(t)})}function XC(e,t){return new _Oe({type:`union`,options:e,...Vx(t)})}function ZC(e,t,n){return new vOe({type:`union`,options:t,discriminator:e,...Vx(n)})}function SDe(e,t){return new yOe({type:`intersection`,left:e,right:t})}function QC(e,t,n){return!t||!t._zod?new bOe({type:`record`,keyType:V(),valueType:e,...Vx(t)}):new bOe({type:`record`,keyType:e,valueType:t,...Vx(n)})}function $C(e,t){return new sw({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Vx(t)})}function ew(e,t){return new sw({type:`enum`,entries:e,...Vx(t)})}function tw(e,t){return new xOe({type:`literal`,values:Array.isArray(e)?e:[e],...Vx(t)})}function CDe(e){return new SOe({type:`transform`,transform:e})}function wDe(e){return new COe({type:`optional`,innerType:e})}function TDe(e){return new wOe({type:`optional`,innerType:e})}function EDe(e){return new TOe({type:`nullable`,innerType:e})}function DDe(e,t){return new EOe({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Pxe(t)}})}function ODe(e,t){return new DOe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Pxe(t)}})}function kDe(e,t){return new OOe({type:`nonoptional`,innerType:e,...Vx(t)})}function ADe(e,t){return new kOe({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:$xe(t)})}function jDe(e,t){return new AOe({type:`pipe`,in:e,out:t})}function MDe(e){return new MOe({type:`readonly`,innerType:e})}function NDe(e){return new NOe({type:`lazy`,getter:e})}function nw(e,t){return dEe(POe,e??(()=>!0),t)}function PDe(e,t={}){return fEe(POe,e,t)}function FDe(e,t){return pEe(e,t)}function rw(e,t){return new jOe({type:`pipe`,in:CDe(e),out:t})}var iw,IDe,LDe,aw,RDe,zDe,BDe,VDe,HDe,UDe,ow,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,hOe,gOe,_Oe,vOe,yOe,bOe,sw,xOe,SOe,COe,wOe,TOe,EOe,DOe,OOe,kOe,AOe,jOe,MOe,NOe,POe,cw=o((()=>{RC(),LC(),yC(),iC(),zC(),hDe(),iw=oS(`ZodType`,(e,t)=>(gDe(),LS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Ix(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Bx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(PDe(e,t))},superRefine(e,t){return this.check(FDe(e,t))},overwrite(e){return this.check(uC(e))},optional(){return wDe(this)},exactOptional(){return TDe(this)},nullable(){return EDe(this)},nullish(){return wDe(EDe(this))},nonoptional(e){return kDe(this,e)},array(){return JC(this)},or(e){return XC([this,e])},and(e){return SDe(this,e)},transform(e){return jDe(this,CDe(e))},default(e){return DDe(this,e)},prefault(e){return ODe(this,e)},catch(e){return ADe(this,e)},pipe(e){return jDe(this,e)},readonly(){return MDe(this)},describe(e){let t=this.clone();return aC.add(t,{description:e}),t},meta(...e){if(e.length===0)return aC.get(this);let t=this.clone();return aC.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 Yxe(this,`~standard`,{...ECe(this),jsonSchema:{input:vC(this,`input`),output:vC(this,`output`)}})},set"~standard"(e){Zx(this,`~standard`,e)},parse:function e(t,n){return rDe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await iDe(this,t,n,{callee:e})},safeParse(e,t){return aDe(this,e,t)},async safeParseAsync(e,t){return oDe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Zx(this,`spa`,e)},validate(e,t){return xSe(this,e,t)},validateAsync(e,t){return SSe(this,e,t)},encode:function e(t,n){return sDe(this,t,n,{callee:e})},decode:function e(t,n){return cDe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await lDe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await uDe(this,t,n,{callee:e})},safeEncode(e,t){return dDe(this,e,t)},safeDecode(e,t){return fDe(this,e,t)},async safeEncodeAsync(e,t){return pDe(this,e,t)},async safeDecodeAsync(e,t){return mDe(this,e,t)},toJSONSchema(e){return CEe(this,{})(e)},get description(){return aC.get(this)?.description},get _def(){return this._zod.def}}),IDe=oS(`_ZodString`,(e,t)=>{zS.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kEe(e,t,n,r)},Qx({format:e=>bC(e).format??null,minLength:e=>bC(e).minimum??null,maxLength:e=>bC(e).maximum??null},{regex(...e){return this.check($Te(...e))},includes(...e){return this.check(nEe(...e))},startsWith(...e){return this.check(rEe(...e))},endsWith(...e){return this.check(iEe(...e))},min(...e){return this.check(lC(...e))},max(...e){return this.check(ZTe(...e))},length(...e){return this.check(QTe(...e))},nonempty(...e){return this.check(lC(1,...e))},lowercase(e){return this.check(eEe(e))},uppercase(e){return this.check(tEe(e))},trim(){return this.check(oEe())},normalize(...e){return this.check(aEe(...e))},toLowerCase(){return this.check(sEe())},toUpperCase(){return this.check(cEe())},slugify(){return this.check(lEe())}})),LDe=oS(`ZodString`,(e,t)=>{zS.init(e,t),IDe.init(e,t)},{email(e){return this.check(pTe(HDe,e))},url(e){return this.check(yTe(WDe,e))},jwt(e){return this.check(PTe(aOe,e))},emoji(e){return this.check(bTe(GDe,e))},guid(e){return this.check(mTe(UDe,e))},uuid(e){return this.check(hTe(ow,e))},uuidv4(e){return this.check(gTe(ow,e))},uuidv6(e){return this.check(_Te(ow,e))},uuidv7(e){return this.check(vTe(ow,e))},nanoid(e){return this.check(xTe(KDe,e))},cuid(e){return this.check(STe(qDe,e))},cuid2(e){return this.check(CTe(JDe,e))},ulid(e){return this.check(wTe(YDe,e))},base64(e){return this.check(jTe(nOe,e))},base64url(e){return this.check(MTe(rOe,e))},xid(e){return this.check(TTe(XDe,e))},ksuid(e){return this.check(ETe(ZDe,e))},ipv4(e){return this.check(DTe(QDe,e))},ipv6(e){return this.check(OTe($De,e))},cidrv4(e){return this.check(kTe(eOe,e))},cidrv6(e){return this.check(ATe(tOe,e))},e164(e){return this.check(NTe(iOe,e))},datetime(e){return this.check(FTe(RDe,e))},date(e){return this.check(ITe(zDe,e))},time(e){return this.check(LTe(BDe,e))},duration(e){return this.check(RTe(VDe,e))}}),aw=oS(`ZodStringFormat`,(e,t)=>{BS.init(e,t),IDe.init(e,t)}),RDe=oS(`ZodISODateTime`,(e,t)=>{lwe.init(e,t),aw.init(e,t)}),zDe=oS(`ZodISODate`,(e,t)=>{uwe.init(e,t),aw.init(e,t)}),BDe=oS(`ZodISOTime`,(e,t)=>{dwe.init(e,t),aw.init(e,t)}),VDe=oS(`ZodISODuration`,(e,t)=>{fwe.init(e,t),aw.init(e,t)}),HDe=oS(`ZodEmail`,(e,t)=>{$Ce.init(e,t),aw.init(e,t)}),UDe=oS(`ZodGUID`,(e,t)=>{ZCe.init(e,t),aw.init(e,t)}),ow=oS(`ZodUUID`,(e,t)=>{QCe.init(e,t),aw.init(e,t)}),WDe=oS(`ZodURL`,(e,t)=>{twe.init(e,t),aw.init(e,t)}),GDe=oS(`ZodEmoji`,(e,t)=>{nwe.init(e,t),aw.init(e,t)}),KDe=oS(`ZodNanoID`,(e,t)=>{rwe.init(e,t),aw.init(e,t)}),qDe=oS(`ZodCUID`,(e,t)=>{iwe.init(e,t),aw.init(e,t)}),JDe=oS(`ZodCUID2`,(e,t)=>{awe.init(e,t),aw.init(e,t)}),YDe=oS(`ZodULID`,(e,t)=>{owe.init(e,t),aw.init(e,t)}),XDe=oS(`ZodXID`,(e,t)=>{swe.init(e,t),aw.init(e,t)}),ZDe=oS(`ZodKSUID`,(e,t)=>{cwe.init(e,t),aw.init(e,t)}),QDe=oS(`ZodIPv4`,(e,t)=>{pwe.init(e,t),aw.init(e,t)}),$De=oS(`ZodIPv6`,(e,t)=>{hwe.init(e,t),aw.init(e,t)}),eOe=oS(`ZodCIDRv4`,(e,t)=>{gwe.init(e,t),aw.init(e,t)}),tOe=oS(`ZodCIDRv6`,(e,t)=>{_we.init(e,t),aw.init(e,t)}),nOe=oS(`ZodBase64`,(e,t)=>{vwe.init(e,t),aw.init(e,t)}),rOe=oS(`ZodBase64URL`,(e,t)=>{ywe.init(e,t),aw.init(e,t)}),iOe=oS(`ZodE164`,(e,t)=>{bwe.init(e,t),aw.init(e,t)}),aOe=oS(`ZodJWT`,(e,t)=>{xwe.init(e,t),aw.init(e,t)}),oOe=oS(`ZodNumber`,(e,t)=>{US.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AEe(e,t,n,r),e.isFinite=!0},Qx({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=bC(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=bC(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=bC(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>bC(e).format??null},{gt(e,t){return this.check(YTe(e,t))},gte(e,t){return this.check(cC(e,t))},min(e,t){return this.check(cC(e,t))},lt(e,t){return this.check(JTe(e,t))},lte(e,t){return this.check(sC(e,t))},max(e,t){return this.check(sC(e,t))},int(e){return this.check(_De(e))},safe(e){return this.check(_De(e))},positive(e){return this.check(YTe(0,e))},nonnegative(e){return this.check(cC(0,e))},negative(e){return this.check(JTe(0,e))},nonpositive(e){return this.check(sC(0,e))},multipleOf(e,t){return this.check(XTe(e,t))},step(e,t){return this.check(XTe(e,t))},finite(){return this}})),sOe=oS(`ZodNumberFormat`,(e,t)=>{Swe.init(e,t),oOe.init(e,t)}),cOe=oS(`ZodBoolean`,(e,t)=>{Cwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jEe(e,t,n,r)}),lOe=oS(`ZodUndefined`,(e,t)=>{wwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NEe(e,t,n,r)}),uOe=oS(`ZodNull`,(e,t)=>{Twe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>MEe(e,t,n,r)}),dOe=oS(`ZodAny`,(e,t)=>{Ewe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FEe(e,t,n,r)}),fOe=oS(`ZodUnknown`,(e,t)=>{Dwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IEe(e,t,n,r)}),pOe=oS(`ZodNever`,(e,t)=>{Owe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PEe(e,t,n,r)}),mOe=oS(`ZodDate`,(e,t)=>{kwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LEe(e,t,n,r),e.min=(t,n)=>e.check(cC(t,n)),e.max=(t,n)=>e.check(sC(t,n))},Qx({minDate:e=>{let{minimum:t}=bC(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=bC(e);return t?new Date(t):null}},{})),hOe=oS(`ZodArray`,(e,t)=>{UC(),jwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HEe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(lC(e,t))},nonempty(e){return this.check(lC(1,e))},max(e,t){return this.check(ZTe(e,t))},length(e,t){return this.check(QTe(e,t))},unwrap(){return this.element}}),gOe=oS(`ZodObject`,(e,t)=>{UC(),Pwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UEe(e,t,n,r),Qxe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return $C(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Ix(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Ix(this._zod.def,{catchall:qC()}))},loose(){return this.clone(Ix(this._zod.def,{catchall:qC()}))},strict(){return this.clone(Ix(this._zod.def,{catchall:bDe()}))},strip(){return this.clone(Ix(this._zod.def,{catchall:void 0}))},extend(e){return zxe(this,e)},safeExtend(e){return Vxe(this,e)},merge(e){return Hxe(this,e)},pick(e){return Lxe(this,e)},omit(e){return Rxe(this,e)},partial(...e){return Uxe(COe,this,e[0])},exactPartial(...e){return Uxe(wOe,this,e[0],`exactPartial`)},required(...e){return Wxe(OOe,this,e[0])}}),_Oe=oS(`ZodUnion`,(e,t)=>{WS.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WEe(e,t,n,r),e.options=t.options}),vOe=oS(`ZodDiscriminatedUnion`,(e,t)=>{_Oe.init(e,t),Fwe.init(e,t)}),yOe=oS(`ZodIntersection`,(e,t)=>{Iwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GEe(e,t,n,r)}),bOe=oS(`ZodRecord`,(e,t)=>{UC(),Lwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KEe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),sw=oS(`ZodEnum`,(e,t)=>{Rwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>REe(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new sw({...t,checks:[],...Vx(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new sw({...t,checks:[],...Vx(r),entries:i})}}),xOe=oS(`ZodLiteral`,(e,t)=>{zwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zEe(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]}})}),SOe=oS(`ZodTransform`,(e,t)=>{UC(),Bwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VEe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new dS(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Xx(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(Xx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),COe=oS(`ZodOptional`,(e,t)=>{GS.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),wOe=oS(`ZodExactOptional`,(e,t)=>{Vwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),TOe=oS(`ZodNullable`,(e,t)=>{Hwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),EOe=oS(`ZodDefault`,(e,t)=>{Uwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),DOe=oS(`ZodPrefault`,(e,t)=>{Wwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),OOe=oS(`ZodNonOptional`,(e,t)=>{Gwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),kOe=oS(`ZodCatch`,(e,t)=>{Kwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),AOe=oS(`ZodPipe`,(e,t)=>{KS.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QEe(e,t,n,r),e.in=t.in,e.out=t.out}),jOe=oS(`ZodPreprocess`,(e,t)=>{AOe.init(e,t),qwe.init(e,t)}),MOe=oS(`ZodReadonly`,(e,t)=>{Jwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$Ee(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),NOe=oS(`ZodLazy`,(e,t)=>{Ywe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),POe=oS(`ZodCustom`,(e,t)=>{Xwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BEe(e,t,n,r)})})),FOe,IOe=o((()=>{RC(),FOe||={}}));function LOe(e){return FTe(RDe,e)}var ROe=o((()=>{RC(),cw()}));function lw(e){return qTe(mOe,e)}var zOe=o((()=>{RC(),cw()})),BOe=o((()=>{RC(),cw(),zC(),nDe(),hDe(),IOe(),LC(),oC(),aS(),zC(),ROe(),cw(),qS(),iC(),zOe()})),uw=o((()=>{BOe(),BOe()})),dw,VOe,HOe,UOe,WOe,GOe,KOe=o((()=>{uw(),dw=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],VOe=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:dw,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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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`}],HOe=VOe.map(({type:e})=>e),$C(HOe),UOe=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],WOe=$C([...HOe,...UOe.map(({type:e})=>e)]),GOe=[{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`}]})),fw,qOe,pw,JOe,YOe,mw,XOe,ZOe,QOe,$Oe,eke,tke,nke,rke,ike,ake,oke,ske,cke,lke,uke,dke,fke,pke,mke,hke,gke,_ke,vke,yke,bke,xke,Ske,Cke,wke,Tke,Eke,hw,gw,Dke,_w,Oke=o((()=>{wxe(),fw=`default`,qOe=[`low`,`medium`,`high`,`ultra`],pw=[`low`,`medium`,`high`,`xhigh`,`max`],JOe=[`low`,`medium`,`high`,`xhigh`],YOe=[`--effort`,`--reasoning-effort`],mw=[`low`,`medium`,`high`,`xhigh`],XOe=[...mw,`max`,`ultra`],ZOe=`model_reasoning_effort`,QOe=[`low`,`high`,`max`],$Oe=[`high`,`max`],eke=[...mw,`max`],tke=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],nke=[`gpt-6-astra`,`gpt-5.6-luna`],rke=[`low`,`medium`,`high`,`xhigh`,`max`],ike=`--reasoning-effort`,ake=[`low`,`medium`,`high`,`xhigh`,`max`],oke=`--reasoning-effort`,ske=`service_tier`,cke=[`fast`,`priority`],lke=e=>!!e&&qOe.includes(e),uke=e=>!!e&&pw.includes(e),dke=e=>!!e&&XOe.includes(e),fke=e=>!!e&&JOe.includes(e),pke=e=>!!e&&rke.includes(e),mke=e=>!!e&&ake.includes(e),hke=e=>!!e&&cke.includes(e),gke=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?QOe:e===`glm-5.2`?$Oe:tke.includes(e)?XOe:nke.includes(e)?eke:mw,_ke=e=>{let t=(wx(e?.args,`--mode`)??e?.mode)?.trim();return lke(t)?t:fw},vke=[`-m`,`--model`],yke=e=>{let t=(wx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:fw},bke=e=>{let t=(wx(e?.args,`--effort`)??e?.effort)?.trim();return uke(t)?t:fw},xke=e=>{let t=(Tx(e?.args,vke)??Dx(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:fw},Ske=e=>{let t=(Dx(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return dke(t)?t:fw},Cke=e=>{let t=(Dx(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Dx(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:hke(t)?`fast`:fw},wke=e=>{let t=(Tx(e?.args,YOe)??e?.effort)?.trim();return fke(t)?t:fw},Tke=e=>{let t=(wx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return pke(t)?t:fw},Eke=e=>{let t=(wx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return mke(t)?t:fw},hw=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:fw},gw={flags:[`-m`,`--model`],kind:`flag`},Dke={antigravity:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hw,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:qOe,resolve:_ke}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>pw,resolve:bke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:yke,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>pw,resolve:bke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:yke,source:`catalog`}},codex:{effort:{encodings:[{key:ZOe,kind:`config`}],levels:gke,resolve:Ske},model:{encodings:[gw,{key:`model`,kind:`config`}],resolve:xke,source:`catalog`},speed:{encodings:[{key:ske,kind:`config`}],resolve:Cke}},copilot:{effort:{encodings:[{flags:[oke],kind:`flag`}],levels:()=>ake,resolve:Eke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hw,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hw,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:hw,source:`catalog`}},droid:{model:{encodings:[],resolve:hw,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hw,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:YOe,kind:`flag`}],levels:()=>JOe,resolve:wke},model:{encodings:[gw],resolve:hw,source:`catalog`}},"kimi-code":{model:{encodings:[gw],resolve:hw,source:`catalog`}},opencode:{model:{encodings:[gw],resolve:hw,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:hw,source:`catalog`}},qoder:{effort:{encodings:[{flags:[ike],kind:`flag`}],levels:()=>rke,resolve:Tke},model:{encodings:[gw],resolve:hw,source:`catalog`}},trae:{model:{encodings:[],resolve:hw,source:`catalog`}}},_w=e=>Dke[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),_w(`copilot`),_w(`grok-build`),_w(`kimi-code`),_w(`opencode`),_w(`pi`),_w(`qoder`)})),kke=o((()=>{})),Ake=o((()=>{KOe(),kke(),new Set([...VOe.map(({type:e})=>e),...UOe.map(({type:e})=>e),...GOe.map(({type:e})=>e)])})),jke=o((()=>{})),Mke=o((()=>{})),Nke,Pke,Fke,Ike,Lke=o((()=>{uw(),Nke=YC({workingDirectory:V().optional()}),Pke=YC({memory:YC({effort:$C([`low`,`medium`,`high`]).optional(),enabled:GC().optional(),toolPermission:$C([`read-only`,`read-write`]).optional()}).optional()}),Fke=YC({selfIteration:YC({enabled:GC().optional()}).optional()}),Ike=YC({codexMaxReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:$C([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:$C([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:$C([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:GC().optional(),disableGatewayMode:GC().optional(),effort:$C([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:GC().optional(),enableAgentMode:GC().optional(),toolMode:$C([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:GC().optional(),enableCompressHistory:GC().optional(),enableContextCompression:GC().optional(),enableFollowUpChips:GC().optional(),enableHistoryCount:GC().optional(),enableMaxTokens:GC().optional(),enableReasoning:GC().optional(),enableReasoningEffort:GC().optional(),enableStreaming:GC().optional(),enableStaleToolResultTrim:GC().optional(),gpt5ReasoningEffort:$C([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:$C([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:$C([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:$C([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:$C([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:$C([`high`,`max`]).optional(),glm5_3ReasoningEffort:$C([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:$C([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:$C([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:$C([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:$C([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:$C([`high`,`xhigh`]).optional(),historyCount:WC().optional(),imageAspectRatio:V().optional(),imageAspectRatio2:V().optional(),imageResolution:$C([`1K`,`2K`,`4K`]).optional(),imageResolution2:$C([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:$C([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:Nke.optional(),preserveThinking:GC().optional(),reasoningBudgetToken:WC().optional(),reasoningBudgetToken32k:WC().optional(),reasoningBudgetToken80k:WC().optional(),reasoningEffort:$C([`low`,`medium`,`high`]).optional(),reasoningMode:$C([`standard`,`pro`]).optional(),searchFCModel:YC({model:V(),provider:V()}).optional(),searchMode:$C([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:$C([`low`,`high`]).optional(),skillActivateMode:$C([`auto`,`manual`]).optional(),textVerbosity:$C([`low`,`medium`,`high`]).optional(),thinking:$C([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:WC().optional(),thinkingLevel:$C([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:$C([`low`,`high`]).optional(),thinkingLevel3:$C([`low`,`medium`,`high`]).optional(),thinkingLevel4:$C([`minimal`,`high`]).optional(),thinkingLevel5:$C([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:WC().default(25e3),topicGroupMode:$C([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:GC().optional(),useModelBuiltinSearch:GC().optional()}).merge(Pke).merge(Fke)})),Rke=o((()=>{})),zke=o((()=>{})),Bke,vw,Vke,Hke,Uke,Wke,Gke,Kke,qke,Jke,Yke,Xke=o((()=>{Bke=`LobeHub Cloud`,vw=`LobeHub`,Vke=`Lobe AI`,Hke=`LobeHub`,Uke={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},Wke={discord:`https://discord.gg/AYFPHvv2jT`,github:`https://github.com/lobehub`,medium:`https://medium.com/@lobehub`,x:`https://x.com/lobehub`,youtube:`https://www.youtube.com/@lobehub`},Gke={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},Kke={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},qke=`lobehub`,Jke=`© ${new Date().getFullYear()} ${Hke}`,Yke=`${Jke}. All rights reserved.`})),Zke,Qke,$ke,yw,bw,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,cAe,lAe,uAe,dAe,fAe,pAe,mAe,hAe,gAe=o((()=>{Zke=`jev-1.14.0`,Qke=`typesafe`,$ke=`openai`,yw=`deepseek-v4-flash`,bw=`deepseek`,eAe=`gpt-5.6-luna`,tAe=`openai`,nAe=`decision`,rAe=`gpt-6-luna:decision`,iAe=`openai`,aAe=`gpt-4o-mini-transcribe`,oAe=`openai`,sAe=`gemini-3-flash-preview`,cAe=`google`,lAe=`gemini-3.8-flash`,uAe=`google`,dAe=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],fAe=`glm-5.3-flash`,pAe=`zhipu`,mAe=`deepseek-flash`,hAe=`deepseek`})),_Ae,vAe=o((()=>{_Ae=[]})),yAe,bAe=o((()=>{yAe=`chat_preview`})),xAe=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>SAe,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>Kke,BRANDING_INBOX_TITLE:()=>Vke,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>vw,BRANDING_PROVIDER:()=>qke,BRANDING_URL:()=>Uke,BUSINESS_OIDC_CLIENTS:()=>_Ae,COPYRIGHT:()=>Jke,COPYRIGHT_FULL:()=>Yke,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>dAe,DEFAULT_ASR_MODEL:()=>aAe,DEFAULT_ASR_PROVIDER:()=>oAe,DEFAULT_BOT_WAKE_ENGINE:()=>nAe,DEFAULT_BOT_WAKE_MODEL:()=>rAe,DEFAULT_BOT_WAKE_PROVIDER:()=>iAe,DEFAULT_CHANNEL_ROUTING_MODEL:()=>Zke,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>Qke,DEFAULT_EMBEDDING_PROVIDER:()=>$ke,DEFAULT_MINI_MODEL:()=>eAe,DEFAULT_MINI_PROVIDER:()=>tAe,DEFAULT_MODEL:()=>yw,DEFAULT_ONBOARDING_MODEL:()=>sAe,DEFAULT_ONBOARDING_PROVIDER:()=>cAe,DEFAULT_PROVIDER:()=>bw,DEFAULT_REVIEW_PREDICT_MODEL:()=>lAe,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>uAe,DEFAULT_VERIFY_MODEL:()=>fAe,DEFAULT_VERIFY_PLAN_MODEL:()=>mAe,DEFAULT_VERIFY_PLAN_PROVIDER:()=>hAe,DEFAULT_VERIFY_PROVIDER:()=>pAe,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>Gke,LOBE_CHAT_CLOUD:()=>Bke,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>CAe,ORG_NAME:()=>Hke,SOCIAL_URL:()=>Wke,UTM_SOURCE:()=>yAe,isOfficialProvider:()=>wAe}),SAe,CAe,wAe,xw=o((()=>{Xke(),Xke(),gAe(),vAe(),bAe(),SAe=`sk-lh-`,CAe=`The official provider cannot be disabled.`,wAe=e=>!1})),TAe=o((()=>{xw()})),EAe=o((()=>{})),DAe=o((()=>{})),OAe,kAe,AAe=o((()=>{uw(),OAe=$C([`pinned`,`auto`,`disabled`]),kAe=XC([V(),YC({identifier:V(),mode:OAe.optional()})])})),jAe=o((()=>{uw(),Lke(),AAe(),YC({agencyConfig:nw().optional(),avatar:V().nullish(),backgroundColor:V().nullish(),chatConfig:Ike.optional(),description:V().nullish(),editorData:qC().optional(),fewShots:qC().optional(),marketIdentifier:V().nullish(),metadata:QC(V(),qC()).nullish(),model:V().nullish(),name:V().nullish(),openingMessage:V().nullish(),openingQuestions:JC(V()).optional(),params:QC(V(),qC()).optional(),plugins:JC(kAe).optional(),provider:V().nullish(),sessionGroupId:V().nullish(),systemRole:V().nullish(),tags:JC(V()).optional(),title:V().nullish(),tts:nw().optional(),virtual:GC().nullish(),visibility:$C([`private`,`public`]).optional()})})),MAe=o((()=>{})),NAe=o((()=>{})),PAe=o((()=>{})),FAe=o((()=>{})),IAe=o((()=>{})),LAe=o((()=>{Ake(),jke(),Mke(),Lke(),Rke(),zke(),TAe(),wxe(),KOe(),EAe(),DAe(),Oke(),jAe(),MAe(),AAe(),NAe(),PAe(),FAe(),IAe()})),RAe,zAe=o((()=>{RAe=[`mail`,`wallet`,`service`],[...RAe]})),BAe=o((()=>{})),VAe=o((()=>{})),HAe,UAe,WAe=o((()=>{uw(),HAe=YC({ciStatus:$C([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:V().optional(),headRepoFullName:V().optional(),isDraft:GC().optional(),mergeable:V().optional(),mergeStateStatus:V().optional(),mergedAt:V().nullable().optional(),number:WC(),reviewDecision:V().optional(),state:V(),title:V(),url:V()}),UAe=YC({environmentId:V().max(255).optional(),git:YC({activeWorktree:V().optional(),autoCreated:GC().optional(),autoCreatedAt:V().optional(),branch:V().optional(),detached:GC().optional(),github:YC({extraPullRequestCount:WC().optional(),pullRequest:HAe.nullable().optional(),pullRequestStatus:$C([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:GC().optional(),ownBranch:V().optional(),ownerNonce:V().max(64).optional(),ownerToken:V().max(128).optional(),upstream:YC({branch:V(),remote:V()}).optional()}).optional(),path:V(),repoType:$C([`git`,`github`]).optional(),sessionPath:V().optional()})})),GAe=o((()=>{WAe()})),KAe,qAe=o((()=>{KAe=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),JAe=o((()=>{})),YAe=o((()=>{})),XAe=o((()=>{})),ZAe=o((()=>{uw(),GAe(),qAe(),JAe(),YAe(),XAe(),YC({heteroPermissionMode:$C(KAe).optional(),repos:JC(V()).optional(),sandboxDrive:$C([`personal`,`public`]).optional(),sandboxEnvironmentId:V().max(255).optional(),sandboxInstanceId:V().optional(),sandboxSeeded:GC().optional(),sandboxTemporary:GC().optional(),sandboxWorkingDirectory:V().max(1024).optional(),workingDirectory:V().optional(),workingDirectoryConfig:UAe.optional()})})),QAe,$Ae=o((()=>{uw(),QAe=YC({allowDM:GC().optional(),forkedFromIdentifier:V().optional(),openingMessage:V().optional(),openingQuestions:JC(V()).optional(),personal:GC().optional(),revealDM:GC().optional(),systemPrompt:V().optional()}),YC({avatar:V().nullish(),backgroundColor:V().nullish(),clientId:V().nullish(),config:QAe.nullish(),content:V().nullish(),description:V().nullish(),editorData:QC(V(),KC()).nullish(),groupId:V().nullish(),id:V().optional(),marketIdentifier:V().nullish(),pinned:GC().nullish(),title:V().nullish(),visibility:$C([`private`,`public`]).optional()})})),eje,tje,nje,rje=o((()=>{uw(),eje=$C([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),tje=V().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),nje=xDe({allowedEnvVars:JC(V().regex(/^[A-Z_]\w*$/i)).optional(),body:QC(V(),qC()).optional(),delivery:$C([`fetch`,`qstash`]).optional(),eventFields:JC(V()).optional(),fallback:$C([`fetch`,`none`]).optional(),headers:QC(V(),V()).optional(),onError:$C([`continue`,`block`]).optional(),responseHandling:$C([`ignore`,`toolCall`]).optional(),timeout:WC().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`})}),xDe({id:V(),matcher:tje.optional(),type:eje,webhook:nje}).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`})})})),ije=o((()=>{uw(),ZC(`decision`,[YC({decision:tw(`allow`)}),YC({decision:tw(`deny`),reason:V().optional()})])})),aje=o((()=>{})),oje,sje=o((()=>{oje=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(oje)})),cje=o((()=>{})),lje=o((()=>{})),uje,dje,fje,pje=o((()=>{uje={messages:`msg`,threads:`thd`,topics:`tpc`},dje=`[0-9a-zA-Z]{8,32}`,fje=e=>RegExp(`^${uje[e]}_${dje}$`)})),mje,hje,gje,_je=o((()=>{uw(),mje=YC({attribution:$C([`user`,`provider`,`harness`,`system`]).optional(),body:KC().optional(),errorRef:V().optional(),category:V().optional(),countAsFailure:GC().optional(),httpStatus:WC().optional(),isFallback:GC().optional(),message:V().optional(),numericId:WC().optional(),retryable:GC().optional(),severity:$C([`info`,`warning`,`error`,`critical`]).optional(),type:XC([V(),WC()])}),hje=YC({content:JC(QC(V(),qC())).optional(),encrypted_content:V().nullish(),id:V(),status:$C([`in_progress`,`completed`,`incomplete`]).optional(),summary:JC(YC({text:V(),type:tw(`summary_text`)})),type:tw(`reasoning`)}).passthrough(),gje=YC({content:V().optional(),duration:WC().optional(),isMultimodal:GC().optional(),responseItems:JC(hje).optional(),signature:V().optional()})})),vje,yje=o((()=>{vje=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}({})})),Sw,bje,xje=o((()=>{uw(),Sw=WC().catch(0),bje=YC({bySource:YC({content:Sw,fileContext:Sw,reasoning:Sw,thoughtSignature:Sw,toolCallId:Sw,toolCalls:Sw,toolDefinition:Sw}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:tw(`tokenx`).catch(`tokenx`),messageCount:Sw,system:Sw,total:Sw})})),Sje,Cje,Cw,wje,Tje,Eje,Dje,Oje,kje,Aje=o((()=>{uw(),Sje=$C([`markdown`,`text`,`xml`]),Cje=YC({endLine:WC().optional(),startLine:WC()}),Cw=YC({content:V(),format:Sje.optional(),id:V(),lineRange:Cje.optional(),preview:V().optional(),title:V().optional()}),wje=Cw.extend({anchor:YC({endNodeId:V(),endOffset:WC(),startNodeId:V(),startOffset:WC()}).optional(),pageId:V(),source:tw(`page`),xml:V().optional()}),Tje=Cw.extend({filePath:V(),language:V().optional(),side:$C([`additions`,`context`,`deletions`]).optional(),source:tw(`code`),workingDirectory:V().optional()}),Eje=Cw.extend({source:tw(`text`)}),Dje=Cw.extend({element:YC({pageTitle:V().optional(),selector:V(),tag:V(),thumbnailUrl:V().optional(),url:V().optional()}),source:tw(`element`)}),Oje=Cw.extend({identifier:V(),source:tw(`mcpApp`)}),kje=ZC(`source`,[wje,Tje,Eje,Dje,Oje])})),jje,Mje=o((()=>{uw(),Aje(),jje=Cw.omit({lineRange:!0}).extend({anchor:YC({endNodeId:V(),endOffset:WC(),startNodeId:V(),startOffset:WC()}).optional(),startLine:WC().optional(),endLine:WC().optional(),pageId:V(),xml:V().optional()})})),Nje,Pje,ww,Fje,Ije,Lje,Rje,zje,Bje,Vje,Hje,Uje,Wje,Gje,Kje,Tw,qje,Jje=o((()=>{uw(),yje(),xje(),Aje(),Mje(),Nje=XC([YC({action:$C([`create`,`update`,`delete`]),changeType:$C([`created`,`updated`]).optional(),targets:JC(YC({taskId:V().optional(),taskIdentifier:V().optional()})),type:tw(`task`)}),YC({args:QC(V(),qC()).optional(),data:qC(),provider:V(),toolName:V(),type:tw(`skill`)}),YC({action:tw(`register`),document:YC({agentDocumentId:V().nullish(),agentId:V().nullish(),description:V().nullish(),documentId:V(),changeType:$C([`created`,`updated`]),toolName:V()}),type:tw(`document`)}),YC({action:tw(`delete`),document:YC({agentDocumentId:V().nullish(),agentId:V().nullish(),documentId:V()}),type:tw(`document`)}),YC({action:tw(`register`),canvas:YC({canvasId:V(),description:V().nullish(),title:V(),toolName:V(),metadata:YC({entry:V(),fileCount:WC(),manifestKey:V(),runtimeMajor:WC(),totalSize:WC()})}),type:tw(`canvas`)})]),Pje=YC({apiName:$C([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:QC(V(),qC()),capturedAt:V(),content:V().nullable(),error:qC().optional(),identifier:tw(`lobe-local-system`),result:qC().optional(),snapshotId:V(),state:qC().optional(),success:GC(),toolCallId:V()}),ww=YC({inputCachedTokens:WC().optional(),inputCacheMissTokens:WC().optional(),inputWriteCacheTokens:WC().optional(),inputCachedTextTokens:WC().optional(),inputCachedImageTokens:WC().optional(),inputCachedAudioTokens:WC().optional(),inputCachedVideoTokens:WC().optional(),inputTextTokens:WC().optional(),inputImageTokens:WC().optional(),inputAudioTokens:WC().optional(),inputVideoTokens:WC().optional(),inputCitationTokens:WC().optional(),inputToolTokens:WC().optional(),inputCharacters:WC().optional(),outputTextTokens:WC().optional(),outputImageTokens:WC().optional(),outputAudioTokens:WC().optional(),outputReasoningTokens:WC().optional(),outputVideoTokens:WC().optional(),acceptedPredictionTokens:WC().optional(),rejectedPredictionTokens:WC().optional(),totalInputTokens:WC().optional(),totalOutputTokens:WC().optional(),totalTokens:WC().optional(),cost:WC().optional(),credits:WC().optional()}),Fje=YC({tps:WC().optional(),ttft:WC().optional(),duration:WC().optional(),latency:WC().optional()}),Ije=YC({emoji:V(),count:WC(),users:JC(V())}),Lje=YC({sequence:WC().optional(),sourceToolCallId:V(),sourceToolName:V(),type:$C([`tool-stdout`,`tool-callback`,`task-completion`])}),Rje=YC({identifier:V()}),zje=YC({agentId:V().optional(),name:V(),status:$C([`completed`,`error`]),threadId:V()}),Bje=YC({identifier:V(),reason:$C([`done`,`error`,`interrupted`]),taskId:V(),topicId:V().optional()}),Vje=YC({rootOperationId:V().min(1),userMessageId:V().optional()}),Hje=YC({kind:$C([`callAgent`]),visibility:tw(`internal`)}),Uje=YC({agentId:V(),avatar:V().optional(),chatGroupId:V().optional(),hop:WC().int().positive().optional(),name:V().optional(),threadId:V().optional(),title:V().optional(),topicAgentId:V().optional(),topicId:V().optional(),topicTitle:V().optional()}),Wje=YC({kind:V(),label:V(),provider:V(),resourceId:V().optional(),url:V().optional()}),Gje=YC({avatar:V().optional(),fullName:V().optional(),id:V(),platform:V(),username:V().optional()}),Kje=ww.merge(Fje).extend({botSender:Gje.optional(),externalOrigin:Wje.optional(),agentDispatch:Hje.optional(),agentSender:Uje.optional(),collapsed:GC().optional(),contextAccounting:bje.optional(),contextSelections:JC(kje).optional(),heteroMessageId:V().optional(),codexTurnId:V().optional(),heteroSessionId:V().optional(),heterogeneousToolStateOperationId:V().optional(),heterogeneousToolStateSeq:WC().int().positive().optional(),inspectExpanded:GC().optional(),isMultimodal:GC().optional(),isSupervisor:GC().optional(),localSystemToolSnapshots:JC(Pje).optional(),mcpAppSource:Rje.optional(),operationId:V().min(1).optional(),orchestrationRole:$C([`supervisor`,`member`]).optional(),pageSelections:JC(jje).optional(),performance:Fje.optional(),reactions:JC(Ije).optional(),scope:V().optional(),selectedSkillIds:JC(V()).optional(),signal:Lje.optional(),steer:GC().optional(),subAgentCallback:zje.optional(),subAgentId:V().optional(),taskCallback:Bje.optional(),toolExecutionTimeMs:WC().optional(),toolResultSuccess:GC().optional(),toolResultStop:GC().optional(),toolWorkRegistration:Nje.optional(),trigger:ew(vje).optional(),verifyOperationId:V().optional(),verifyRound:WC().optional(),work:Vje.optional(),usage:ww.optional()}),Tw=Kje.omit({agentSender:!0}),qje=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),Yje,Xje=o((()=>{uw(),Jje(),Yje=Kje.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),YC({editorData:QC(V(),qC()).optional(),metadata:Yje.optional()}),Object.keys(Yje.shape)})),Zje,Qje=o((()=>{uw(),Zje=YC({alt:V(),height:WC().optional(),id:V(),mimeType:V().optional(),ratio:WC().optional(),url:V(),width:WC().optional()})})),$je=o((()=>{})),eMe,tMe,nMe,rMe=o((()=>{uw(),eMe=YC({batchId:V().optional(),itemIndex:WC().int().nonnegative().optional(),operationId:V().optional(),runtimeType:$C([`client`,`server`]).optional(),rejectedReason:V().optional(),resolving:GC().optional(),resolutionRequestId:V().optional(),skipped:GC().optional(),stepIndex:WC().int().nonnegative().optional(),status:$C([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),tMe=YC({function:YC({arguments:V(),name:V()}),id:V(),type:V()}),nMe=YC({apiName:V(),arguments:V(),id:V(),identifier:V(),intervention:eMe.optional(),result_msg_id:V().optional(),thoughtSignature:V().optional(),type:V()})})),iMe=o((()=>{})),aMe=o((()=>{})),Ew=o((()=>{_je(),Xje(),xje(),Aje(),Qje(),$je(),Jje(),Mje(),rMe(),iMe(),aMe()})),oMe,sMe=o((()=>{uw(),oMe=YC({id:V(),similarity:WC()}),YC({id:V(),value:YC({fileChunks:JC(oMe),ragQueryId:V().optional()})})})),cMe,lMe,uMe=o((()=>{uw(),_je(),rMe(),sMe(),Ew(),Mje(),cMe=$C([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),lMe=YC({apiName:V(),arguments:V(),identifier:V(),type:V()}),YC({role:cMe,content:V(),id:V().optional(),agentId:V().optional(),sessionId:V().nullish(),tool_call_id:V().optional(),plugin:lMe.optional(),parentId:V().optional(),groupId:V().nullish(),topicId:V().nullish(),threadId:V().nullish(),targetId:V().nullish(),model:V().nullish(),provider:V().nullish(),files:JC(V()).optional(),error:mje.nullish(),traceId:V().optional(),fileChunks:JC(oMe).optional()}).passthrough(),YC({id:V().optional(),toolCallId:V().optional(),type:V().optional(),intervention:eMe.optional(),apiName:V().optional(),arguments:V().optional(),identifier:V().optional(),state:KC().optional(),error:KC().optional(),clientId:V().optional(),userId:V().optional()})})),Dw,dMe,fMe,pMe,mMe,hMe,gMe=o((()=>{uw(),Dw=$C([`never`,`required`,`always`]),dMe=XC([V(),YC({pattern:V(),type:$C([`exact`,`prefix`,`wildcard`,`regex`])})]),fMe=YC({match:QC(V(),dMe).optional(),policy:Dw}),pMe=XC([Dw,JC(fMe)]),YC({action:$C([`approve`,`reject`,`select`]),data:YC({remember:GC().optional(),selected:XC([V(),JC(V())]).optional()}).optional()}),YC({allowList:JC(V()).optional(),approvalMode:$C([`auto-run`,`allow-list`,`manual`,`headless`])}),mMe=YC({description:V(),match:QC(V(),dMe),policy:Dw.optional()}),hMe=JC(mMe),YC({config:pMe.optional(),confirmedHistory:JC(V()).optional(),securityBlacklist:hMe.optional(),toolArgs:QC(V(),KC()).optional(),toolKey:V().optional()})})),_Me=o((()=>{})),Ow,vMe,yMe,bMe,xMe,kw,SMe,CMe=o((()=>{uw(),gMe(),_Me(),Ow=YC({avatar:V().optional(),description:V().optional(),readme:V().optional(),tags:JC(V()).optional(),title:V()}),vMe=$C([`collapsed`,`expand`,`alwaysExpand`]),yMe=YC({default:Dw.optional(),policy:Dw.optional(),type:V()}),bMe=XC([pMe,YC({dynamic:yMe})]),xMe=YC({action:$C([`create`,`update`,`delete`]),resourceType:$C([`document`,`task`])}),kw=YC({defaultTimeoutMs:WC().int().positive().optional(),description:V(),humanIntervention:bMe.optional(),name:V(),ordered:GC().optional(),parameters:QC(V(),KC()),renderDisplayControl:vMe.optional(),serializeBy:V().optional(),url:V().optional(),work:xMe.optional()}),SMe=YC({api:JC(kw),deviceClients:JC($C([`cli`,`desktop`])).optional(),executors:JC($C([`client`,`server`])).optional(),humanIntervention:bMe.optional(),identifier:V(),meta:Ow,systemRole:V(),type:tw(`builtin`).optional()}),YC({discoverable:GC().optional(),hidden:GC().optional(),identifier:V(),manifest:SMe,type:tw(`builtin`)})})),wMe=o((()=>{})),TMe=o((()=>{})),EMe,DMe=o((()=>{uw(),CMe(),EMe=YC({properties:QC(V(),KC()),required:JC(V()).optional(),type:tw(`object`)}),YC({$schema:V().optional(),api:JC(kw),connector:YC({id:V(),identifier:V()}).optional(),connectorLinks:YC({connectorId:V(),param:V()}).optional(),author:V().optional(),createdAt:V().optional(),gateway:V().optional(),homepage:V().optional(),identifier:V(),mcpAppEntrypoints:JC(YC({toolName:V(),title:V(),icon:V().optional()})).optional(),mcpAppOnlyApi:JC(kw).optional(),mcpModelOnlyTools:JC(V()).optional(),meta:Ow,openapi:V().optional(),settings:EMe.optional(),systemRole:V().optional(),type:$C([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:YC({height:WC().optional(),mode:$C([`iframe`,`module`]).optional(),url:V(),width:WC().optional()}).optional(),version:V().optional()})})),OMe=o((()=>{})),kMe=o((()=>{})),AMe,jMe=o((()=>{uw(),AMe=YC({description:V().optional(),name:V(),parameters:YC({additionalProperties:GC().optional(),properties:QC(V(),KC()),required:JC(V()).optional(),type:tw(`object`)})})})),MMe=o((()=>{CMe(),wMe(),TMe(),gMe(),DMe(),OMe(),kMe(),jMe()})),Aw,NMe,PMe,jw,FMe,Mw,IMe,Nw,Pw,Fw,LMe,RMe,zMe,Iw,BMe,VMe,HMe,UMe,Lw,WMe,GMe=o((()=>{uw(),Aw=1e6,NMe=2e3,PMe=2e3,jw=12e3,FMe=YC({kind:tw(`writing`)}).strict(),Mw=YC({code:V().max(64),message:V(),operation:V().max(64),provider:V().max(64),retryable:GC()}).strict(),IMe=YC({errors:JC(Mw).max(16),evidenceCount:WC().int().nonnegative().max(Aw),failedCount:WC().int().nonnegative().max(Aw),succeededCount:WC().int().nonnegative().max(Aw)}).strict(),IMe.omit({errors:!0}).strip(),Nw=e=>V().trim().min(1).max(e),Pw=Nw(256),Fw=Nw(NMe),LMe=YC({content:Nw(jw),reasoning:Fw,tagline:Pw}).strict(),RMe=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}},zMe=rw(RMe,YC({description:Fw,rank:WC().int().min(0).max(100),title:Pw}).strict()),Iw=e=>JC(zMe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),BMe=YC({composition:YC({identities:Iw(6),interests:Iw(8),lifeStyle:Iw(6),social:Iw(6),working:Iw(6)}).strict(),personaProposal:LMe,profile:YC({domains:JC(Pw).max(8),description:Fw,name:Pw,pronoun:Pw,roles:JC(Pw).max(8),summary:Fw,tagline:Pw}).strict()}).strict(),YC({analysis:BMe,detailedPersona:LMe.optional(),diagnostics:IMe,feedbackRevision:WC().int().nonnegative().max(Aw).default(0),generationRevision:WC().int().nonnegative().max(Aw).default(0),kind:tw(`proposal`),providers:JC(V().max(64)),resultId:V(),sourceFingerprint:V()}).strict(),VMe=YC({content:V().trim().min(1).max(PMe),createdAt:V(),revision:WC().int().positive().max(Aw)}).strict(),HMe=YC({revision:WC().int().nonnegative().max(Aw),turns:JC(VMe).max(16)}).strict(),UMe=YC({completedAt:V().optional(),errors:JC(Mw).max(16),failedCount:WC().int().nonnegative().max(Aw),revision:WC().int().nonnegative().max(Aw),status:$C([`pending`,`running`,`completed`,`failed`]),succeededCount:WC().int().nonnegative().max(Aw)}).strict(),Lw={detailed:ZC(`status`,[YC({status:tw(`running`),updatedAt:V()}).strict(),YC({status:tw(`completed`),updatedAt:V()}).strict(),YC({error:Mw,status:tw(`failed`),updatedAt:V()}).strict()]).optional(),feedbackRevision:WC().int().nonnegative().max(Aw).default(0),generationRevision:WC().int().nonnegative().max(Aw).default(0),sourceFingerprint:V(),updatedAt:V()},WMe=ZC(`status`,[YC({...Lw,resultMessageId:V().optional(),status:tw(`running`)}).strict(),YC({...Lw,resultMessageId:V(),status:tw(`completed`)}).strict(),YC({...Lw,error:Mw,resultMessageId:V().optional(),status:tw(`failed`)}).strict()]),YC({confirmedAt:V().optional(),feedback:HMe.default({revision:0,turns:[]}),generationRevision:WC().int().nonnegative().max(Aw).default(0),id:V(),sources:QC(V().max(64),UMe),writing:WMe.optional()}).strict()})),Rw,KMe,qMe=o((()=>{uw(),GMe(),Rw={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},KMe=YC({clientMode:GC().optional(),completedAt:V().optional(),duration:WC().optional(),error:KC().optional(),model:V().optional(),onboardingUnderstanding:FMe.optional(),operationId:V().optional(),sourceToolCallId:V().optional(),startedAt:V().optional(),subagentType:V().optional(),totalCost:WC().optional(),totalLlmCalls:WC().optional(),totalMessages:WC().optional(),totalTokens:WC().optional(),totalSteps:WC().optional(),totalToolCalls:WC().optional()}),YC({agentId:V().optional(),groupId:V().optional(),id:V().optional(),metadata:KMe.optional(),parentThreadId:V().optional(),sourceMessageId:V().optional(),title:V().optional(),topicId:V(),type:$C([Rw.Continuation,Rw.Eval,Rw.Standalone,Rw.Isolation])})})),JMe,YMe,zw,XMe,Bw,ZMe,QMe=o((()=>{uw(),pje(),Ew(),uMe(),MMe(),qMe(),JMe=YC({parentThreadId:V().optional(),sourceMessageId:V().optional(),title:V().optional(),type:$C([Rw.Continuation,Rw.Standalone,Rw.Isolation])}),YMe=YC({content:V(),metadata:Tw.optional(),plugin:YC({apiName:V(),arguments:V(),identifier:V(),type:V()}).optional(),role:$C([`assistant`,`tool`]),tool_call_id:V().optional(),tools:JC(nMe).optional()}),zw=e=>V().regex(fje(e)).optional(),YC({agentId:V().optional(),groupId:V().optional(),newAssistantMessage:YC({agentId:V().optional(),id:zw(`messages`),metadata:QC(V(),qC()).optional().transform(qje),model:V().optional(),provider:V().optional()}),newThread:JMe.optional(),newTopic:YC({id:zw(`topics`),metadata:nw().optional(),model:V().optional(),projectId:V().optional(),provider:V().optional(),title:V().optional(),topicMessageIds:JC(V()).optional(),trigger:V().optional()}).optional(),preloadMessages:JC(YMe).optional(),newUserMessage:YC({content:V(),contextSelections:JC(kje).optional(),editorData:QC(V(),qC()).optional(),files:JC(V()).optional(),id:zw(`messages`),metadata:Tw.optional(),pageSelections:JC(jje).optional(),parentId:V().optional()}),sessionId:V().optional(),threadId:V().optional(),topicFilter:YC({excludeStatuses:JC(V()).optional(),excludeTriggers:JC(V()).optional(),includeTriggers:JC(V()).optional(),onlyMine:GC().optional()}).optional(),topicPageSize:WC().int().min(1).max(100).optional(),topicId:V().optional()}),XMe=YC({description:V().optional(),name:V(),schema:YC({$defs:KC().optional(),additionalProperties:GC().optional(),properties:QC(V(),KC()),required:JC(V()).optional(),type:tw(`object`)}),strict:GC().optional()}),YC({metadata:QC(V(),qC()).optional(),messages:JC(KC()),model:V(),provider:V(),schema:XMe.optional(),tools:JC(YC({function:AMe,type:tw(`function`)})).optional(),tracing:YC({tracingId:V().uuid().optional()}).catchall(qC()).optional()}),Bw=XC([V(),JC(qC()),QC(V(),qC())]),ZMe=ZC(`type`,[YC({criteria:YC({false:Bw,true:Bw}).optional(),instructions:Bw,type:tw(`boolean`)}),YC({criteria:QC(V(),Bw.nullable()),instructions:Bw,type:tw(`choice`)}),YC({criteria:JC(Bw).min(1),instructions:Bw,type:tw(`score`)})]),YC({metadata:QC(V(),qC()).optional(),model:V(),provider:V(),questions:QC(V(),ZMe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:Bw,tracing:YC({tracingId:V().uuid().optional()}).catchall(qC()).optional()})})),$Me=o((()=>{uw()})),eNe=o((()=>{})),tNe=o((()=>{})),nNe=o((()=>{})),rNe=o((()=>{})),iNe=o((()=>{})),aNe,oNe=o((()=>{KOe(),aNe=GOe.map(({type:e})=>e),[...WOe.options,...aNe]})),sNe=o((()=>{})),cNe=o((()=>{sNe()})),lNe=o((()=>{})),uNe=o((()=>{})),dNe=o((()=>{})),fNe=o((()=>{})),pNe=o((()=>{})),mNe=o((()=>{})),hNe=o((()=>{})),gNe=o((()=>{})),_Ne=o((()=>{uw(),YC({connected:GC(),cpuCount:WC().int().min(1).max(4096),cpuPercent:WC().min(0).max(100).nullable(),diskTotalBytes:WC().int().min(0).nullish(),diskUsedBytes:WC().int().min(0).nullish(),load1:WC().min(0).nullable(),load5:WC().min(0).nullable(),load15:WC().min(0).nullable(),memoryTotalBytes:WC().int().min(0),memoryUsedBytes:WC().int().min(0),observedAt:WC().int().min(0)})})),vNe=o((()=>{})),yNe=o((()=>{})),bNe=o((()=>{})),xNe=o((()=>{})),SNe=o((()=>{})),CNe=o((()=>{})),wNe=o((()=>{})),TNe=o((()=>{})),ENe=o((()=>{vNe(),yNe(),bNe(),xNe(),SNe(),CNe(),wNe(),TNe()})),DNe=o((()=>{uw(),YC({shareId:V(),topicId:V(),visitorUserId:V()})})),ONe=o((()=>{})),kNe=o((()=>{})),ANe=o((()=>{DNe(),ONe(),kNe()})),jNe=o((()=>{})),MNe=o((()=>{})),NNe=o((()=>{})),PNe=o((()=>{})),FNe=o((()=>{})),INe=o((()=>{})),LNe=o((()=>{})),RNe=o((()=>{})),zNe=o((()=>{})),BNe=o((()=>{uw(),YC({ideal:V().optional(),question:V(),referenceFiles:V().or(JC(V())).optional()}),YC({description:V().optional(),knowledgeBaseId:V(),name:V()})})),VNe=o((()=>{})),HNe=o((()=>{})),UNe=o((()=>{})),WNe=o((()=>{uw(),YC({ideal:V().optional(),question:V(),referenceFiles:V().or(JC(V())).optional()}),YC({datasetId:V(),description:V().optional(),knowledgeBaseId:V(),name:V()})})),GNe=o((()=>{})),KNe=o((()=>{})),qNe=o((()=>{})),JNe,YNe=o((()=>{uw(),CMe(),JNe=YC({api:JC(kw.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:Ow,systemRole:V().optional(),type:$C([`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`),QC(V().min(1).max(255),JNe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),XNe=o((()=>{PNe(),FNe(),INe(),LNe(),RNe(),zNe(),BNe(),VNe(),HNe(),UNe(),WNe(),GNe(),KNe(),qNe(),YNe()})),ZNe=o((()=>{})),QNe=o((()=>{})),$Ne=o((()=>{})),Vw,ePe,tPe=o((()=>{Vw={InvalidAccessCode:`InvalidAccessCode`,FreePlanLimit:`FreePlanLimit`,SubscriptionPlanLimit:`SubscriptionPlanLimit`,InsufficientBudgetForModel:`InsufficientBudgetForModel`,WorkspaceFrozenByAdmin:`WorkspaceFrozenByAdmin`,WorkspaceFrozenByRiskControl:`WorkspaceFrozenByRiskControl`,WorkspaceSubscriptionInactive:`WorkspaceSubscriptionInactive`,ShareMessageLimitExceeded:`ShareMessageLimitExceeded`,ShareSpendLimitExceeded:`ShareSpendLimitExceeded`,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},ePe=[Vw.RemoteServerOffline,Vw.RemoteServerTimeout,Vw.RemoteServerDNSFailed,Vw.RemoteServerConnectionRefused,Vw.RemoteServerCertInvalid,Vw.RemoteServerUnreachable],new Set(ePe)})),nPe,rPe,iPe=o((()=>{uw(),nPe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),rPe=100,YC({category:V().optional(),filesOnly:GC().optional(),includeContentPreview:GC().optional(),knowledgeBaseId:V().optional(),limit:WC().int().positive().max(rPe).default(50),offset:WC().int().min(0).default(0),parentId:V().nullish(),q:V().nullish(),showFilesInKnowledgeBase:GC().default(!1),sortType:$C([`desc`,`asc`]).optional(),sorter:$C([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:ew(nPe).optional(),visibility:$C([`private`,`public`]).optional()})})),aPe,oPe=o((()=>{uw(),aPe=YC({shareId:V(),visitorUserId:V()}),YC({agentShare:aPe.optional(),date:V(),dirname:V(),filename:V(),height:WC().optional(),path:V(),ratio:WC().optional(),width:WC().optional()}),YC({fileType:V(),hash:V().optional(),knowledgeBaseId:V().optional(),metadata:KC().optional(),name:V(),size:WC(),source:V().optional(),url:V().optional()})})),sPe,cPe=o((()=>{iPe(),oPe(),sPe=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(sPe))})),lPe=o((()=>{})),uPe,dPe,fPe,pPe,Hw,mPe,hPe,gPe,_Pe,vPe=o((()=>{uw(),uPe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],dPe=[`agentEmoji`,`agentName`,`fullName`],fPe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],pPe=[`agent_identity`,`user_identity`,`discovery`,`summary`],Hw=V().trim().transform(e=>e.length>0?e:void 0).optional(),mPe=JC(V()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),$C(uPe),hPe=$C(dPe),gPe=$C(fPe),YC({agentEmoji:Hw,agentName:Hw,customInterests:mPe,fullName:Hw,interests:mPe}).strict(),_Pe=$C(pPe),YC({discoveryUserMessageCount:WC().optional(),finished:GC(),missingStructuredFields:JC(hPe),phase:_Pe,remainingDiscoveryExchanges:WC().optional(),topicId:V().optional(),version:WC()}).strict(),YC({activeTopicId:V().optional(),discoveryStartUserMessageCount:WC().optional(),finishedAt:V().optional(),version:WC()}).strict(),YC({node:gPe,patch:YC({}).passthrough()}).strict()})),yPe,bPe,xPe=o((()=>{uw(),vPe(),yPe=XC([YC({kind:tw(`onboarding`),phase:_Pe}),YC({kind:tw(`chat`)})]),bPe=YC({model:V().min(1),provider:V().min(1)}),YC({hint:yPe.optional(),modelConfig:bPe,threadId:V().optional(),topicId:V().min(1)})})),SPe=o((()=>{})),CPe=o((()=>{})),wPe=o((()=>{})),TPe=o((()=>{})),Uw,EPe,DPe,OPe,kPe,APe,jPe,MPe,NPe,PPe=o((()=>{uw(),Uw=JC(V().trim().min(1)).max(200),EPe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),DPe=rw(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||EPe.has(t.toLowerCase())))return t},V().trim().min(1).optional()),OPe=[`dead_end`,`superseded`,`retry`],kPe=2e3,APe=YC({kind:$C(OPe),lesson:V().trim().min(1).max(kPe),nodeIds:Uw.min(1),reason:V().trim().min(1).max(kPe),title:V().trim().min(1).max(200)}).strict(),jPe=YC({detours:JC(APe).max(20).default([]),findingIds:Uw.default([]),narrative:V().trim().min(1).max(8e3),nodeIds:Uw.default([]),title:V().trim().min(1).max(200),workVersionIds:Uw.default([])}).strict(),MPe=YC({nodeIds:Uw.optional(),reason:V().trim().min(1).max(2e3),title:V().trim().min(1).max(200)}).strict(),NPe=YC({edgeIds:Uw.default([]),nodeIds:Uw.min(1)}).strict(),YC({chapters:JC(jPe).min(1).max(30),deliverableWorkId:DPe,graphCursor:V().trim().min(1),headline:V().trim().min(1).max(500),mainline:NPe.optional(),nextSteps:JC(MPe).max(20).default([])}).strict()})),FPe=o((()=>{})),IPe=o((()=>{})),LPe=o((()=>{})),RPe=o((()=>{})),zPe,BPe,VPe,HPe=o((()=>{uw(),zPe=YC({apiName:V(),arguments:V(),id:V(),identifier:V(),type:tw(`default`)}),BPe=YC({clientId:V(),content:V(),createdAt:V().optional(),metadata:QC(V(),KC()).optional(),model:V().optional(),parentClientId:V().nullish(),plugin:YC({apiName:V(),arguments:V(),identifier:V(),type:V()}).optional(),pluginState:QC(V(),KC()).optional(),provider:V().optional(),reasoning:YC({content:V()}).passthrough().optional(),role:$C([`user`,`assistant`,`tool`]),toolCallId:V().optional(),tools:JC(zPe).optional(),usage:QC(V(),KC()).optional()}),VPe=YC({clientId:V(),messages:JC(BPe),sourceMessageClientId:V().optional(),status:$C([`active`,`completed`,`failed`]).optional(),title:V().optional(),type:$C([`continuation`,`standalone`,`isolation`])}),YC({messages:JC(BPe),metadata:QC(V(),KC()).optional(),sessionId:V(),source:$C([`claude-code`,`codex`]),sourceEndAt:V().optional(),threads:JC(VPe).optional(),title:V().optional(),topicClientId:V(),workingDirectory:V().optional()})})),UPe=o((()=>{})),WPe=o((()=>{})),GPe=o((()=>{})),KPe=o((()=>{})),qPe,JPe=o((()=>{qPe=[`triage`,`backlog`,`unstarted`,`started`],[...qPe]})),YPe=o((()=>{})),XPe=o((()=>{})),ZPe=o((()=>{})),QPe=o((()=>{})),$Pe,eFe,tFe=o((()=>{uw(),$Pe=YC({domain:V().optional(),imageUri:V().optional(),sourceUri:V().optional(),title:V().optional()}),eFe=YC({citations:JC(YC({favicon:V().optional(),id:V().optional(),title:V().optional(),url:V()})).optional(),imageResults:JC($Pe).optional(),imageSearchQueries:JC(V()).optional(),searchQueries:JC(V()).optional()})})),nFe=o((()=>{uw(),tFe(),Ew(),YC({content:V().optional(),editorData:QC(V(),KC()).nullish(),error:mje.nullish(),imageList:JC(Zje).optional(),metadata:Tw.optional(),model:V().optional(),observationId:V().optional(),provider:V().optional(),reasoning:gje.optional(),role:V().optional(),search:eFe.nullish(),toolCalls:JC(tMe).optional(),tools:JC(nMe).nullish(),traceId:V().optional(),usage:ww.optional()}).passthrough()})),rFe=o((()=>{QPe(),nFe()})),iFe=o((()=>{})),aFe=o((()=>{})),oFe=o((()=>{})),sFe=o((()=>{})),cFe=o((()=>{iFe(),aFe(),oFe(),uMe(),sMe(),sFe()})),lFe=o((()=>{Ew(),rFe(),cFe()})),uFe=o((()=>{uw(),YC({avatar:V().optional(),backgroundColor:V().optional(),description:V().optional(),marketIdentifier:V().optional(),name:V().optional(),tags:JC(V()).optional(),title:V().optional()})})),dFe=o((()=>{})),fFe=o((()=>{})),pFe,mFe=o((()=>{uw(),pFe=YC({accessToken:V().optional(),token:V().optional(),type:$C([`none`,`bearer`,`oauth2`])}).optional(),YC({auth:pFe,headers:QC(V(),V()).optional(),identifier:V(),metadata:YC({avatar:V().optional(),description:V().optional()}).optional(),url:V().url()})})),hFe=o((()=>{})),gFe=o((()=>{mFe(),hFe()})),_Fe=o((()=>{})),vFe=o((()=>{uw(),YC({fileIds:JC(V()).optional(),knowledgeIds:JC(V()).optional(),query:V(),topK:WC().optional()})})),yFe=o((()=>{})),bFe=o((()=>{})),xFe=o((()=>{})),SFe=o((()=>{})),CFe=o((()=>{})),wFe=o((()=>{})),TFe=o((()=>{})),EFe,DFe=o((()=>{EFe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),OFe=o((()=>{TFe(),DFe()})),kFe,AFe,jFe=o((()=>{kFe=`NO_REPLY`,AFe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${kFe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(AFe)})),MFe,NFe=o((()=>{uw(),MFe=YC({name:V(),url:V().url().optional()}),YC({author:XC([V(),MFe]).optional(),description:V().min(1,`Skill description is required`),license:V().optional(),name:V().min(1,`Skill name is required`),permissions:JC(V()).optional(),repository:V().url().optional(),sourceUrl:V().url().optional(),version:V().optional()}).passthrough()})),PFe=o((()=>{})),FFe=o((()=>{})),IFe=o((()=>{})),LFe,RFe=o((()=>{LFe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],LFe[0]})),Ww,zFe=o((()=>{Ww=1440*60*1e3,30*Ww,90*Ww,7*Ww})),BFe=o((()=>{FFe(),IFe(),RFe(),zFe()})),VFe=o((()=>{})),Gw,HFe,UFe,WFe,GFe,KFe,qFe,JFe=o((()=>{uw(),Gw=$C([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),YC({serverDefaultHeterogeneousProfiles:JC(V().min(1)).optional()}).passthrough(),HFe=YC({audio:GC().optional(),functionCall:GC().optional(),imageOutput:GC().optional(),reasoning:GC().optional(),search:GC().optional(),video:GC().optional(),vision:GC().optional()}),UFe=YC({codexMaxReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:$C([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:$C([`none`,`high`,`max`]).optional(),effort:$C([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:$C([`high`,`max`]).optional(),glm5_3ReasoningEffort:$C([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:$C([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:$C([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:$C([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:$C([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:$C([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:$C([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:$C([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:$C([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:$C([`low`,`high`,`max`]).optional(),opus47Effort:$C([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:$C([`low`,`medium`,`high`]).optional(),reasoningMode:$C([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:$C([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:$C([`low`,`high`]).optional(),thinkingLevel:$C([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:$C([`low`,`high`]).optional(),thinkingLevel3:$C([`low`,`medium`,`high`]).optional(),thinkingLevel4:$C([`minimal`,`high`]).optional(),thinkingLevel5:$C([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(UFe.shape),WFe=$C(`reasoningBudgetToken.reasoningBudgetToken32k.reasoningBudgetToken80k.enableReasoning.preserveThinking.enableAdaptiveThinking.disableContextCaching.effort.deepseekV4GAReasoningEffort.deepseekV4ReasoningEffort.qwen38ReasoningEffort.reasoningEffort.reasoningMode.gpt5ReasoningEffort.gpt5_1ReasoningEffort.gpt5_2ReasoningEffort.gpt5_2ProReasoningEffort.gpt5_6ReasoningEffort.gpt6ReasoningEffort.glm5_2ReasoningEffort.glm5_3ReasoningEffort.grok4_20ReasoningEffort.grok4_3ReasoningEffort.grok4_5ReasoningEffort.grok4_6ReasoningEffort.grok4_7ReasoningEffort.hy3ReasoningEffort.kimiK3ReasoningEffort.ring2_6ReasoningEffort.codexMaxReasoningEffort.opus47Effort.step3_5ReasoningEffort.textVerbosity.thinking.thinkingBudget.thinkingLevel.thinkingLevel2.thinkingLevel3.thinkingLevel4.thinkingLevel5.imageAspectRatio.imageAspectRatio2.imageResolution.imageResolution2.urlContext`.split(`.`)),GFe=$C([`tool`,`params`,`internal`]),KFe=$C([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),qFe=YC({disabledParams:JC(KFe).optional(),extendParams:JC(WFe).optional(),searchImpl:GFe.optional(),searchProvider:V().optional(),ttsVoice:V().optional()}),YC({abilities:HFe.optional(),contextWindowTokens:WC().optional(),displayName:V().optional(),id:V(),providerId:V(),releasedAt:V().optional(),settings:qFe.optional(),type:Gw.optional()}),YC({abilities:HFe.optional(),config:YC({deploymentName:V().optional()}).optional(),contextWindowTokens:WC().nullish(),displayName:V().nullish(),settings:qFe.optional(),type:Gw.optional()}),YC({enabled:GC(),id:V(),providerId:V(),source:$C([`builtin`,`custom`,`remote`]).optional(),type:Gw.optional()})})),YFe,Kw,XFe,ZFe,QFe,$Fe,eIe,tIe,nIe=o((()=>{JFe(),uw(),GAe(),qAe(),YFe=YC({claimedAt:V(),expiresAt:V(),id:V()}),Kw=YC({claim:YFe.optional(),createdAt:V(),runAt:V().datetime(),updatedAt:V()}),XFe=Kw.extend({failedAssistantMessageId:V(),kind:tw(`resume_after_rate_limit`),rateLimit:YC({rateLimitType:V().optional(),resetsAt:WC().optional()}).optional(),resume:YC({sessionId:V().optional(),workingDirectory:V().optional()}).optional(),source:tw(`heterogeneous_agent`),userMessageId:V()}),ZFe=Kw.extend({kind:tw(`delayed_start`),model:V().optional(),provider:V().optional(),userMessageId:V()}),YC({baseBranch:V().min(1).max(1024).optional(),deviceId:V().min(1).max(256),path:V().min(1).max(4096),repoType:$C([`git`,`github`]),sourcePath:V().min(1).max(4096)}),QFe=Kw.extend({error:V().optional(),kind:tw(`worktree_start`),operationId:V(),retryable:GC().optional(),userMessageId:V(),waitingForDevice:GC().optional()}),$Fe=ZC(`kind`,[XFe,ZFe,QFe]),YC({claim:YFe.optional(),createdAt:V(),failedAssistantMessageId:V(),kind:vDe().optional(),rateLimit:YC({rateLimitType:V().optional(),resetsAt:WC().optional()}).optional(),reason:tw(`rate_limit`),resume:YC({sessionId:V().optional(),workingDirectory:V().optional()}).optional(),source:tw(`heterogeneous_agent`),updatedAt:V(),userMessageId:V()}),eIe=YC({boundDeviceId:V().optional(),heteroEffort:nw(e=>typeof e==`string`).optional(),heteroSessionBindingKey:V().optional(),heteroSessionBindingKeyByWorkingDirectory:QC(V(),V()).optional(),heteroSessionId:V().optional(),heteroSessionIdByWorkingDirectory:QC(V(),V()).optional(),heteroPermissionMode:$C(KAe).optional(),heteroPermissionModeFallback:$C([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:$C([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:V().optional(),onboardingFeedback:YC({comment:V().max(500).optional(),rating:$C([`good`,`bad`]),submittedAt:V()}).optional(),onboardingSession:YC({agentIdentityCompletedAt:V().optional(),agentMarketplacePick:YC({categoryHints:JC(V()),installedAgentIds:JC(V()).optional(),requestId:V(),resolvedAt:V(),selectedTemplateIds:JC(V()).optional(),skipReason:V().optional(),skippedAgentIds:JC(V()).optional(),status:$C([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:V().optional(),finalAgentNames:JC(V()).optional(),finishedAt:V().optional(),lastActiveAt:V().optional(),phase:$C([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:V().optional(),userIdentityCompletedAt:V().optional(),version:WC().optional()}).optional(),provider:V().optional(),lastSettledOperationId:V().optional(),reasoningConfig:UFe.optional(),repos:JC(V()).optional(),runningOperation:yDe().optional(),taskCallbackReservation:YC({messageId:V(),reservedAt:V()}).nullable().optional(),sandboxDrive:$C([`personal`,`public`]).optional(),sandboxEnvironmentId:V().max(255).optional(),sandboxInstanceId:V().optional(),sandboxWorkingDirectory:V().max(1024).optional(),scheduledRun:$Fe.nullish(),workingDirectory:V().optional(),workingDirectoryConfig:UAe.optional()}),eIe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),tIe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],$C(tIe)})),rIe=o((()=>{VFe(),qMe(),nIe()})),iIe=o((()=>{})),aIe=o((()=>{})),oIe=o((()=>{uw(),YC({currentStep:WC().min(1).max(7).optional(),finishedAt:V().optional(),version:WC()})})),sIe=o((()=>{})),cIe,lIe,uIe=o((()=>{uw(),cIe=YC({checked:GC(),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:JC(YC({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(),lIe=YC({code:V().min(1).max(128),providerId:V().min(1).max(128),retryable:GC()}).strict(),YC({completedAt:V().optional(),createdTaskIds:QC(V().max(128),V().max(512)),errors:JC(lIe).max(16),id:V().min(1).max(512),providerIds:JC(V().min(1).max(128)).max(16),recommendations:JC(cIe).max(48),sourceFingerprint:V().min(1).max(2048),status:$C([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:V()}).strict()})),dIe,fIe,pIe,mIe,hIe=o((()=>{uw(),dIe=YC({docsMerged:GC().optional(),moveSettingsToAvatar:GC().optional(),topic:GC().optional(),uploadFileInKnowledgeBase:GC().optional()}),fIe=YC({enableBetterCodingExperience:GC().optional(),enableAgentIdentity:GC().optional(),enableAgentGraphConfig:GC().optional(),enableArtifactDeployment:GC().optional(),enablePageCollab:GC().optional(),enableClaudeCodeSdk:GC().optional(),enableCodexAppServer:GC().optional(),enableDesktopSplitView:GC().optional(),enableHeteroSessionImport:GC().optional(),enableGroupChat:GC().optional(),enableImessage:GC().optional(),enableInputMarkdown:GC().optional(),enableMessageTextSelectionActions:GC().optional(),enableIntegrations:GC().optional(),enableOAuthApps:GC().optional(),enableProjects:GC().optional(),enableSelfLearning:GC().optional(),enableTaskVerify:GC().optional(),enableEvalCapture:GC().optional(),enableTopicBugReport:GC().optional(),enableGoals:GC().optional(),enableTopicAcceptance:GC().optional(),enableDeviceTunnel:GC().optional()}),pIe=YC({acceptOnMerge:GC().optional(),commentOnPrivateRepositories:GC().optional(),commentOnPublicRepositories:GC().optional(),wakeOnCiFailure:GC().optional(),wakeOnReview:GC().optional()}),mIe=YC({github:pIe.optional()}),YC({provider:V(),providerAccountId:V()}),YC({defaultOpenInApp:V().optional(),fontFamily:V().optional(),guide:dIe.optional(),hideSyncAlert:GC().optional(),integration:mIe.optional(),lab:fIe.optional(),lastWorkspaceId:V().nullish(),projectTopicGroupMode:$C([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:JC(V()).optional(),sidebarHiddenGroupIds:JC(V()).optional(),terminalFontFamily:V().optional(),telemetry:GC().nullable(),topicGroupMode:$C([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:GC().optional(),topicSortBy:$C([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:GC().optional(),workspace:YC({order:JC(V()).optional()}).optional()}).partial()})),gIe=o((()=>{})),_Ie=o((()=>{})),vIe=o((()=>{})),yIe=o((()=>{})),bIe=o((()=>{})),xIe=o((()=>{})),SIe=o((()=>{})),CIe=o((()=>{})),wIe,qw,TIe=o((()=>{uw(),wIe=QC(V(),QC(V(),GC())),qw=YC({enabled:GC().optional(),items:wIe.optional()}).strict(),YC({content:YC({scheduledTaskSummary:GC().optional()}).strict().optional(),email:qw.optional(),im:qw.extend({platforms:QC(V(),qw.extend({tenantId:V().optional()}).strict()).optional()}).strict().optional(),inbox:qw.optional(),push:qw.optional()}).strict()})),EIe=o((()=>{})),DIe=o((()=>{})),OIe=o((()=>{})),kIe=o((()=>{})),AIe=o((()=>{uw(),gIe(),_Ie(),vIe(),yIe(),bIe(),xIe(),SIe(),CIe(),TIe(),EIe(),DIe(),OIe(),kIe(),YC({defaultAgent:KC().optional(),general:KC().optional(),hotkey:KC().optional(),image:KC().optional(),keyVaults:KC().optional(),languageModel:KC().optional(),market:KC().optional(),memory:KC().optional(),notification:KC().optional(),systemAgent:KC().optional(),tool:KC().optional(),tts:KC().optional()}).passthrough().partial()})),jIe=o((()=>{vPe(),oIe(),sIe(),uIe(),hIe(),AIe()})),MIe=o((()=>{})),NIe=o((()=>{})),PIe=o((()=>{})),FIe=o((()=>{})),IIe,LIe=o((()=>{uw(),IIe=$C([`personal`,`professional`,`demographic`]),YC({description:V().optional(),episodicDate:V().optional(),extractedLabels:JC(V()).optional(),labels:QC(V(),KC()).optional(),relationship:V().optional(),role:V().optional(),type:IIe.optional(),userMemoryId:V().optional()}),YC({description:V().optional(),episodicDate:V().optional(),extractedLabels:JC(V()).optional(),labels:QC(V(),KC()).optional(),relationship:V().optional(),role:V().optional(),type:IIe.optional()})})),RIe,zIe,BIe=o((()=>{RIe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(RIe),zIe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(zIe)})),VIe=o((()=>{})),HIe=o((()=>{})),UIe,WIe,GIe,Jw,KIe,qIe,JIe,YIe=o((()=>{UIe=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(UIe),WIe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(WIe),GIe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(GIe),Jw=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(Jw),KIe=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(KIe),qIe=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(qIe),JIe=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(JIe)})),XIe=o((()=>{})),Yw,ZIe,QIe,$Ie,eLe,tLe,nLe,rLe,iLe,aLe,oLe,sLe,cLe,lLe=o((()=>{uw(),YIe(),Yw=rw(e=>typeof e==`string`?[e]:e,JC(V().trim().min(1))),ZIe=e=>rw(e=>typeof e==`string`?[e]:e,JC(e)),QIe=$C([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),$Ie=YC({activities:WC().int().min(0).optional(),contexts:WC().int().min(0).optional(),experiences:WC().int().min(0).optional(),identities:WC().int().min(0).optional(),preferences:WC().int().min(0).optional()}),eLe=YC({end:lw().optional(),field:QIe.optional(),start:lw().optional()}),tLe=$C([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),nLe=YC({date:lw(),selector:tw(`day`)}),rLe=YC({month:WC().int().min(1).max(12),selector:tw(`month`),year:WC().int().min(1970).max(9999)}),iLe=YC({end:lw().optional(),selector:tw(`range`),start:lw().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),aLe=YC({selector:tw(`year`),year:WC().int().min(1970).max(9999)}),oLe=$C([`today`,`yesterday`]),sLe=NDe(()=>XC([YC({selector:tLe}),nLe,rLe,YC({anchor:XC([oLe,sLe]),offsetDays:WC().int(),selector:tw(`relativeDay`)}),iLe,aLe])),YC({categories:Yw.optional(),effort:$C([`low`,`medium`,`high`]).optional(),labels:Yw.optional(),layers:ZIe(ew(Jw)).optional(),queries:Yw.optional(),relationships:Yw.optional(),status:Yw.optional(),tags:Yw.optional(),timeIntent:sLe.optional(),timeRange:eLe.optional(),topK:$Ie.optional(),types:Yw.optional()}),cLe=$C([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),YC({include:ZIe(cLe).optional(),layers:JC(ew(Jw)).optional(),limit:WC().int().min(1).max(100).optional(),q:V().trim().optional(),timeRange:eLe.optional()})})),uLe=o((()=>{})),dLe=o((()=>{MIe(),NIe(),PIe(),FIe(),LIe(),BIe(),VIe(),HIe(),YIe(),XIe(),lLe(),uLe()})),fLe=o((()=>{})),pLe=o((()=>{})),mLe=o((()=>{pLe()})),hLe=o((()=>{})),gLe=o((()=>{})),_Le=o((()=>{hLe(),gLe()})),vLe,yLe=o((()=>{vLe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(vLe).flatMap(([e,t])=>t.map(t=>[t,e])))})),bLe=o((()=>{})),xLe=o((()=>{uw(),YC({start:WC().finite().nonnegative()}).strict()})),SLe=o((()=>{uw(),YC({preconditions:JC(V().max(4e3)).max(100).optional(),expected:V().max(2e4).optional(),fixtures:JC(YC({id:V().min(1),name:V().min(1),description:V().optional(),resource:YC({type:$C([`file`,`document`]),id:V().min(1)}).optional(),data:QC(V(),qC()).optional()})).max(100).optional(),steps:JC(YC({id:V().min(1),instruction:V().min(1),expected:V().optional(),fixtureIds:JC(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`]})})})),Xw,CLe,wLe=o((()=>{uw(),Xw=YC({height:WC().finite(),width:WC().finite(),x:WC().finite(),y:WC().finite()}),CLe=YC({commit:V().max(200).optional(),context:QC(V().max(100),XC([V().max(500),WC(),GC()])).optional(),env:YC({consoleErrors:JC(V().max(2e3)).max(10),userAgent:V().max(500)}).optional(),intent:$C([`change`,`comment`]),region:Xw.optional(),regionRefs:JC(YC({box:Xw,selector:V().max(2e3),text:V().max(200).optional()}).nullable()).max(6).optional(),route:V().max(500).optional(),scroll:YC({x:WC().finite(),y:WC().finite()}),targets:JC(YC({code:YC({chain:JC(YC({file:V().max(500).optional(),line:WC().int().optional(),name:V().max(200)})).max(5),column:WC().int(),file:V().max(500),line:WC().int()}).optional(),label:V().max(200),rect:Xw,selector:V().max(2e3),text:V().max(200).optional()})).max(8),title:V().max(300).optional(),url:V().url().max(2e3),v:tw(1),viewport:YC({dpr:WC().positive(),height:WC().finite(),width:WC().finite()})}),YC({anchor:CLe.optional(),clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3),parentId:V().trim().min(1).max(64).optional(),screenshot:YC({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`}),YC({note:V().trim().max(2e3).optional(),verdict:$C([`accept`,`send_back`])})})),TLe,Zw,Qw,$w,ELe,DLe,OLe,kLe,ALe,jLe,MLe,NLe=o((()=>{uw(),wLe(),TLe=[`region`,`element`,`sketch`],Zw=WC().finite(),Qw=YC({height:Zw,width:Zw,x:Zw,y:Zw}),$w=CLe.shape,ELe=NDe(()=>YC({children:JC(ELe).max(50),rect:Qw,type:$C([`avatar`,`button`,`card`,`image`,`input`,`text`])})),DLe=YC({commit:$w.commit,context:$w.context,env:$w.env}),OLe=YC({description:V().max(500).optional(),favicon:V().max(2e3).optional(),lang:V().max(35).optional(),title:V().max(300).optional()}),kLe=YC({clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3),context:DLe.optional(),kind:$C(TLe),pageMeta:OLe.optional(),rectDocument:Qw,rectViewport:Qw,regionRefs:$w.regionRefs,regions:JC(Qw).max(6).optional(),routeKey:V().max(500),scroll:YC({x:Zw,y:Zw}),sketch:JC(ELe).max(50).optional(),targets:$w.targets.optional(),url:V().url().max(2e3),viewport:YC({dpr:WC().positive(),height:Zw,width:Zw})}),ALe=64*1024,jLe=YC({dataUrl:V().regex(/^data:image\/(jpeg|webp);base64,/)}),kLe.extend({screenshot:jLe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=ALe,{message:`Mark is too large`}),YC({content:V().trim().min(1).max(4e3).optional(),rectDocument:Qw.optional(),rectViewport:Qw.optional(),regionRefs:$w.regionRefs,regions:JC(Qw).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),YC({agentId:V().trim().min(1).max(255).optional(),feedback:V().trim().max(4e3).optional()}),MLe=[`pass`,`not_fixed`],YC({reason:V().trim().max(2e3).optional(),verdict:$C(MLe)}),YC({clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3)})})),PLe=o((()=>{})),FLe=o((()=>{})),ILe=o((()=>{})),LLe,RLe,zLe,BLe,VLe,HLe,ULe,WLe,GLe,KLe=o((()=>{uw(),LLe=[`new`,`reuse`],RLe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,zLe=YC({channelId:V().min(1),threadId:V().min(1).optional()}).strict(),BLe=YC({arguments:QC(V(),qC()),delivery:zLe.optional(),eventName:V().min(1),linkId:V().min(1).optional()}).strict(),VLe=YC({cursor:V().nullable().optional(),deliveryStatus:YC({active:GC().optional(),failedSince:V().optional(),lastDeliveryAt:V().optional(),lastError:V().nullable().optional(),retryAfterMs:WC().nonnegative().optional(),throttled:GC().optional()}).optional(),refreshBefore:LOe({offset:!0}).nullable().optional(),remoteSubscriptionId:V().optional(),truncated:GC().optional()}).strict(),HLe=YC({scheme:tw(`standard_webhooks`)}).strict(),ULe=YC({autoApprove:GC(),delivery:zLe.optional(),identifier:V().regex(RLe).optional(),topicMode:$C(LLe),topicId:V().min(1).optional()}).strict(),WLe=YC({}).strict(),GLe=YC({scheme:tw(`bearer_token`)}).strict(),ZC(`kind`,[YC({kind:tw(`mcp_events`),config:BLe,state:VLe,verification:HLe}),YC({kind:tw(`generic`),config:ULe,state:WLe,verification:GLe})])})),qLe=o((()=>{})),JLe=o((()=>{})),YLe=o((()=>{})),XLe=o((()=>{})),ZLe=o((()=>{})),QLe=o((()=>{})),$Le=o((()=>{})),eRe=o((()=>{QLe(),$Le()})),tRe=o((()=>{})),nRe=o((()=>{})),rRe=o((()=>{})),iRe=o((()=>{LAe(),zAe(),BAe(),VAe(),ZAe(),$Ae(),rje(),ije(),aje(),sje(),cje(),lje(),QMe(),$Me(),eNe(),tNe(),nNe(),rNe(),iNe(),oNe(),cNe(),lNe(),uNe(),dNe(),fNe(),pNe(),mNe(),GAe(),hNe(),gNe(),_Ne(),ENe(),ANe(),jNe(),MNe(),pje(),NNe(),XNe(),ZNe(),QNe(),$Ne(),tPe(),cPe(),lPe(),xPe(),SPe(),CPe(),wPe(),TPe(),PPe(),FPe(),IPe(),LPe(),RPe(),HPe(),UPe(),WPe(),GPe(),KPe(),JPe(),YPe(),XPe(),ZPe(),lFe(),uFe(),dFe(),fFe(),gFe(),_Fe(),vFe(),yFe(),bFe(),xFe(),SFe(),tFe(),CFe(),wFe(),OFe(),jFe(),NFe(),PFe(),BFe(),MMe(),rIe(),iIe(),aIe(),GMe(),jIe(),dLe(),fLe(),mLe(),_Le(),yLe(),bLe(),xLe(),SLe(),wLe(),NLe(),yje(),PLe(),FLe(),ILe(),qAe(),KLe(),qLe(),JLe(),YLe(),XLe(),ZLe(),eRe(),GMe(),dLe(),tRe(),nRe(),rRe()})),aRe=o((()=>{})),oRe,eT,sRe=o((()=>{oRe=[`*`,`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(oRe),eT=(e,t)=>({read:e,write:t}),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,null),eT(`knowledge:read`,`knowledge:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,null),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`model:read`,`model:write`),eT(`model:read`,`model:write`),eT(`chat:read`,null),eT(`chat:read`,`chat:write`),eT(`knowledge:read`,`knowledge:write`),eT(`model:read`,`model:write`),eT(`agent:read`,null),eT(`knowledge:read`,`knowledge:write`),eT(`knowledge:read`,`knowledge:write`),eT(`knowledge:read`,`knowledge:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`user:read`,`user:write`),eT(`file:read`,`file:write`),eT(`file:read`,`file:write`),eT(`chat:read`,`chat:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`chat:read`,`chat:write`),eT(`knowledge:read`,`knowledge:write`),eT(`knowledge:read`,`knowledge:write`),eT(`agent:read`,`agent:write`),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`agent:read`,`agent:write`),eT(`knowledge:read`,`knowledge:write`),eT(`user:read`,`user:write`),eT(`chat:read`,`chat:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`chat:read`,null),eT(`chat:read`,null),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`file:read`,`file:write`),eT(`usage:read`,null),eT(`user:read`,`user:write`),eT(`user:read`,`user:write`),eT(`user:read`,`user:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,null),eT(`agent:read`,`agent:write`),eT(`workspace:read`,`workspace:write`),eT(`workspace:read`,null),eT(`workspace:read`,null),eT(`workspace:read`,`workspace:write`)})),tT,cRe=o((()=>{tT=1024*1024,10*tT,10*tT,10*tT,10*tT,50*tT,50*tT,20*tT,5*tT,20*tT,2*tT,100*tT})),lRe=o((()=>{}));function uRe(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=pRe.test(e[0]);dRe.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(fRe,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(fRe,`$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 nT(...e){return uRe(Array.from(Array.isArray(e[0])?e[0]:e))}var dRe,fRe,pRe,mRe=o((()=>{dRe=RegExp(`^[^/:\\d][^/:]*:/*$`),fRe=RegExp(`^([^/:\\d][^/:]*):/*`),pRe=/^[^/:]+:\d+(?:[/?#]|$)/})),hRe,rT,gRe,_Re,iT,aT,vRe,yRe,bRe,xRe,SRe,CRe,wRe=o((()=>{mRe(),hRe=`https://app.lobehub.com`,rT=`https://lobehub.com`,gRe=rT,_Re=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},iT=`https://github.com/lobehub/lobehub`,nT(iT,`issues/new/choose`),aT=nT(rT,`/docs`),vRe=nT(aT,`/usage`),yRe=nT(aT,`/self-hosting`),nT(yRe,`/server-database`),`${aT}`,nT(vRe,`/plugins/development`),nT(yRe,`/advanced/upstream-sync`),nT(rT,`blog`),nT(iT,`issues/new/choose`),nT(rT,`/privacy`),nT(rT,`/terms`),bRe=`https://github.com/lobehub/lobe-chat-agents`,nT(bRe,`issues/new`),xRe=(e,t)=>`/agent/${e}`,SRe=(e,t,n)=>nT(`/agent`,e,t),CRe=(e,t)=>nT(`/group`,e,t),nT(iT,`releases`),nT(rT,`changelog`),nT(rT,`/downloads`),nT(rT,`/mobile`)})),TRe=o((()=>{wRe()})),ERe=o((()=>{TRe()})),DRe=o((()=>{})),ORe,oT,kRe,ARe,jRe=o((()=>{ORe=e=>e.join(`+`),oT={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},kRe=[{electronAccelerator:`Alt+Shift+Space`,id:oT.QuickComposer,uiKeys:ORe([`alt`,`shift`,`space`])},{electronAccelerator:``,id:oT.QuickChat,uiKeys:``},{electronAccelerator:``,id:oT.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:oT.OpenSettings,nonEditable:!0,uiKeys:ORe([`mod`,`comma`])}],ARe=kRe.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),kRe.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),MRe=o((()=>{jRe(),ARe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),NRe,PRe,FRe,IRe=o((()=>{xw(),NRe={},PRe=Vke,FRe=`/avatars/lobe-ai.png`})),sT=o((()=>{xw()})),LRe,RRe,zRe,BRe,VRe=o((()=>{xw(),IRe(),sT(),LRe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},RRe={model:yw,provider:bw},zRe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:RRe,searchMode:`auto`,selfIteration:{enabled:!1}},BRe={chatConfig:zRe,model:yw,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:bw,systemRole:``,tts:LRe}})),HRe=o((()=>{})),URe=o((()=>{})),WRe,GRe,KRe,qRe,JRe,YRe,XRe,ZRe,QRe,$Re,eze,tze,nze,rze,ize,aze,oze,sze=o((()=>{WRe=`@lobehub/lobehub`,GRe=`2.3.4`,KRe=`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.`,qRe=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],JRe=`https://github.com/lobehub/lobehub`,YRe={url:`https://github.com/lobehub/lobehub/issues/new/choose`},XRe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},ZRe=`LobeHub <i@lobehub.com>`,QRe=[`./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`],$Re=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],eze={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`},tze={"@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`},nze=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"}`),rze={"@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`},ize=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,aze={access:`public`,registry:`https://registry.npmjs.org`},oze={name:WRe,version:GRe,description:KRe,keywords:qRe,homepage:JRe,bugs:YRe,repository:XRe,license:`MIT`,author:ZRe,sideEffects:QRe,workspaces:$Re,scripts:eze,"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:tze,dependencies:nze,devDependencies:rze,packageManager:ize,publishConfig:aze}})),cT,lT,uT=o((()=>{xw(),sze(),cT=oze.version,lT=vw!==`LobeHub`})),dT,fT,pT,mT,hT,cze,lze=o((()=>{uT(),dT=e=>e.join(`+`),fT={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`},pT={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`},mT={Conversation:`conversation`,Essential:`essential`},hT={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},cze=[{group:mT.Essential,id:pT.CommandPalette,keys:dT([fT.Mod,`k`]),scopes:[hT.Global]},{group:mT.Essential,id:pT.Search,keys:dT([fT.Mod,`j`]),scopes:[hT.Global]},{group:mT.Essential,id:pT.SwitchAgent,keys:dT([fT.Ctrl,fT.Number]),nonEditable:!0,scopes:[hT.Global]},{group:mT.Essential,id:pT.SwitchTab,keys:dT([fT.Mod,fT.Number]),nonEditable:!0,scopes:[hT.Global]},{group:mT.Essential,id:pT.NextTab,keys:dT([fT.Ctrl,fT.Tab]),nonEditable:!0,scopes:[hT.Global]},{group:mT.Essential,id:pT.PrevTab,keys:dT([fT.Ctrl,fT.Shift,fT.Tab]),nonEditable:!0,scopes:[hT.Global]},{group:mT.Essential,id:pT.NavigateToChat,keys:dT([fT.Ctrl,fT.Shift,fT.Backquote]),scopes:[hT.Global]},{group:mT.Essential,id:pT.ToggleLeftPanel,keys:dT([fT.Mod,fT.BracketLeft]),scopes:[hT.Global]},{group:mT.Essential,id:pT.ToggleRightPanel,keys:dT([fT.Mod,fT.BracketRight]),scopes:[hT.Global]},{group:mT.Essential,id:pT.OpenHotkeyHelper,keys:dT([fT.Ctrl,fT.Shift,fT.QuestionMark]),scopes:[hT.Global]},{group:mT.Essential,id:pT.ToggleFavorite,keys:dT([fT.Alt,`f`]),scopes:[hT.Global]},{group:mT.Essential,id:pT.OpenTaskFilter,keys:`f`,scopes:[hT.Global]},{group:mT.Conversation,id:pT.FindInTopic,keys:dT([fT.Mod,`f`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.ToggleTerminalPanel,keys:dT([fT.Ctrl,fT.Backquote]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.OpenChatSettings,keys:dT([fT.Alt,fT.Comma]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.RegenerateMessage,keys:dT([fT.Alt,`r`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.DeleteLastMessage,keys:dT([fT.Alt,`d`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.DeleteAndRegenerateMessage,keys:dT([fT.Alt,fT.Shift,`r`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.SaveTopic,keys:dT([fT.Alt,`n`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.EditMessage,keys:dT([fT.Alt,fT.LeftDoubleClick]),nonEditable:!0,scopes:[hT.Chat]},{group:mT.Essential,id:pT.SaveDocument,keys:dT([fT.Mod,`s`]),scopes:[hT.Files]}]})),uze=o((()=>{lze(),cze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),dze=o((()=>{})),fze=o((()=>{xw(),sT()})),pze=o((()=>{})),mze=o((()=>{})),hze,gT,gze=o((()=>{xw(),fze(),sT(),hze={model:yw,provider:bw},gT={model:eAe,provider:tAe},gT.model,gT.provider,gT.model,gT.provider,gT.model,gT.provider,{...hze},Reflect.get(xAe,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(xAe,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),_ze=o((()=>{})),vze=o((()=>{})),_T=o((()=>{VRe(),HRe(),URe(),uze(),dze(),fze(),sT(),pze(),mze(),gze(),_ze(),vze()})),yze=o((()=>{_T(),new Date().toISOString()})),bze=o((()=>{})),xze=o((()=>{Object.freeze([])})),Sze=o((()=>{})),Cze,wze,Tze,Eze=o((()=>{Cze=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],wze=2*1024*1024*1024-1,`${wze}`,Tze=64*1024*1024,`${Tze}`,[...Cze]})),Dze,Oze=o((()=>{xw(),`${vw}`,Dze=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(Dze)})),kze,Aze=o((()=>{kze=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(kze)})),jze=o((()=>{})),Mze=o((()=>{})),Nze=o((()=>{})),Pze=o((()=>{})),Fze=o((()=>{})),Ize=o((()=>{})),Lze,Rze=o((()=>{cr(),Lze=(e,t)=>pn({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),zze,Bze,Vze=o((()=>{IRe(),_T(),Rze(),zze=`agent`,Bze={config:BRe,createdAt:new Date,id:``,meta:NRe,model:BRe.model,type:zze,updatedAt:new Date},Lze(Bze,{id:`inbox`,meta:{avatar:FRe}})})),Hze=o((()=>{})),Uze=o((()=>{})),Wze=o((()=>{})),Gze=o((()=>{})),Kze=o((()=>{})),qze=o((()=>{})),Jze=o((()=>{})),Yze=o((()=>{})),Xze,Zze,Qze=o((()=>{xw(),_T(),Xze={activities:3,contexts:0,experiences:0,preferences:3},Zze={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...Xze}},Zze.high.contexts})),$ze=o((()=>{})),eBe=o((()=>{})),vT=o((()=>{lxe(),dxe(),fxe(),yxe(),aRe(),sRe(),cRe(),lRe(),ERe(),DRe(),MRe(),jRe(),yze(),bze(),xze(),Sze(),Eze(),Oze(),Aze(),jze(),Mze(),TRe(),Nze(),IRe(),Pze(),Fze(),Ize(),Vze(),_T(),Hze(),Uze(),Wze(),Gze(),Kze(),qze(),Jze(),wRe(),Yze(),Qze(),uT(),$ze(),eBe()}));vT();var yT=[[`LobeHub Cloud`,Bke,`LobeHub Cloud`],[`LobeHub`,vw,`LobeHub`],[`LobeChat`,vw,`LobeHub`],[`Lobe AI`,PRe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),tBe=new Map(yT),nBe=`Lobe`,rBe=yT.length?RegExp(`(?<!@)(${yT.map(([e])=>e).join(`|`)})`,`g`):void 0,iBe=yT.length>0,aBe=`brandStrings`,oBe=e=>!rBe||!e.includes(nBe)?e:e.replaceAll(rBe,e=>tBe.get(e)??e),sBe={name:aBe,process:e=>typeof e==`string`?oBe(e):e,type:`postProcessor`},cBe=iBe?{postProcess:[aBe]}:{},lBe=e=>iBe?e.use(sBe):e,uBe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},dBe=c({default:()=>fBe}),fBe,pBe=o((()=>{fBe={"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 yEe(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;yEe(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 bEe(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function mC(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!gC.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]??bEe(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}Mx(n,r,e.length===1?e[0]:mC(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=bEe(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 xEe(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of gC)if(t in e)return;let n=t.filter(e=>_C.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=mC(t);else{let e=n[0],i=_C.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=>mC([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,dC(e,r))}function SEe(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)):dC(i,s),dC(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())yEe(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)??[])xEe(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)}dC(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,Mx(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:vC(t,`input`,e.processors),output:vC(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function hC(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 hC(r.element,n);if(r.type===`set`)return hC(r.valueType,n);if(r.type===`lazy`)return hC(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 hC(r.innerType,n);if(r.type===`intersection`)return hC(r.left,n)||hC(r.right,n);if(r.type===`record`||r.type===`map`)return hC(r.keyType,n)||hC(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:hC(r.in,n)||hC(r.out,n);if(r.type===`object`){for(let e in r.shape)if(hC(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(hC(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(hC(e,n))return!0;return!!(r.rest&&hC(r.rest,n))}return!1}var gC,_C,CEe,vC,yC=o((()=>{oC(),aS(),gC=new Set([`type`,`properties`,`required`,`additionalProperties`]),_C=[`oneOf`,`anyOf`],CEe=(e,t={})=>n=>{let r=gEe({...n,processors:t});return pC(e,r),vEe(r,e),SEe(r,e)},vC=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=gEe({...i??{},target:a,io:t,processors:n});return pC(e,o),vEe(o,e),SEe(o,e)}}));function bC(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)EEe[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&CC(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&CC(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&wC(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&wC(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&EC(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&OC(t,i.mime);for(let e of i.patterns??[])DC(t,e);return t}function xC(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?xC(t.out):t.type===`catch`?xC(t.innerType):e._zod.optin}function SC(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=SC(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=>SC(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?TS:rCe).source),p):p}function wEe(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 PC.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=SC(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 TEe(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(fC(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),FC):JSON.parse(o)}var CC,wC,TC,EC,DC,OC,kC,AC,jC,MC,EEe,DEe,OEe,NC,kEe,AEe,jEe,MEe,NEe,PEe,FEe,IEe,LEe,REe,zEe,BEe,VEe,HEe,UEe,WEe,GEe,PC,KEe,qEe,JEe,FC,YEe,XEe,ZEe,QEe,$Ee,IC,eDe,LC=o((()=>{ES(),qS(),yC(),aS(),CC=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},wC=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},TC=(e,t)=>{CC(e,`minimum`,t),wC(e,`maximum`,t)},EC=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},DC=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},OC=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},kC=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},AC=(e,t)=>CC(e,`minimum`,t.minimum),jC=(e,t)=>wC(e,`maximum`,t.maximum),MC=e=>(t,n)=>{kC(t,n.format);let[r,i]=e[n.format];CC(t,`minimum`,r),wC(t,`maximum`,i)},EEe={greater_than:(e,t)=>CC(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>wC(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>EC(e,t.value),number_format:MC(nS),bigint_format:MC(rSe),min_length:AC,max_length:jC,length_equals:(e,t)=>TC(e,t.length),min_size:AC,max_size:jC,size_equals:(e,t)=>TC(e,t.size),string_format:(e,t)=>{kC(e,t.format),t.pattern&&DC(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)=>OC(e,t.mime)},DEe={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},OEe=new Map([[VS,ZSe],[HS,QSe]]),NC=e=>OEe.get(e)??e,kEe=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=bC(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=DEe[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(NC);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}))])}},AEe=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=bC(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)):fC(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}))])}},jEe=(e,t,n,r)=>{n.type=`boolean`},MEe=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},NEe=(e,t,n,r)=>{fC(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},PEe=(e,t,n,r)=>{n.not={}},FEe=(e,t,n,r)=>{},IEe=(e,t,n,r)=>{},LEe=(e,t,n,r)=>{fC(e,t,n,r,`Date cannot be represented in JSON Schema`)},REe=(e,t,n,r)=>{let i=e._zod.def,a=Ox(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},zEe=(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(fC(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(fC(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},BEe=(e,t,n,r)=>{fC(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},VEe=(e,t,n,r)=>{fC(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},HEe=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=bC(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=pC(a.element,t,{...r,path:[...r.path,`items`]})},UEe=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&fC(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Mx(i.properties,e,pC(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`?xC(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=pC(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},WEe=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>pC(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},GEe=(e,t,n,r)=>{let i=e._zod.def,a=pC(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=pC(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)},PC=new WeakMap,KEe=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=bC(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=pC(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)Mx(i.patternProperties,NC(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=pC(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=PC.get(t);n||(n=[],PC.set(t,n),t.deferred.push(()=>wEe(t))),n.push(e)}i.additionalProperties=pC(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&xC(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},qEe=(e,t,n,r)=>{let i=e._zod.def,a=pC(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`}]},JEe=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},FC=Symbol(),YEe=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=TEe(i.defaultValue,e,t,n,r);o!==FC&&(n.default=o)},XEe=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=TEe(i.defaultValue,e,t,n,r);o!==FC&&(n._prefault=o)},ZEe=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{fC(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},QEe=(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;pC(o,t,r);let s=t.seen.get(e);s.ref=o},$Ee=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},IC=(e,t,n,r)=>{let i=e._zod.def;pC(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},eDe=(e,t,n,r)=>{let i=e._zod.innerType;pC(i,t,r);let a=t.seen.get(e);a.ref=i}})),RC=o((()=>{pS(),jSe(),gSe(),qS(),iTe(),NS(),wCe(),aS(),ES(),iC(),oC(),SCe(),uTe(),hEe(),yC(),LC(),yC()})),zC=o((()=>{RC()}));function BC(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 VC,tDe,HC,nDe=o((()=>{RC(),aS(),VC=new WeakSet([Object.prototype,Error.prototype]),tDe=(e,t)=>{hSe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);VC.has(n)||(VC.add(n),BC(n,`format`,e=>t=>pSe(e,t)),BC(n,`flatten`,e=>t=>fSe(e,t)),BC(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,kx,2)}),BC(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,kx,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},HC=oS(`ZodError`,tDe,void 0,{Parent:Error})})),rDe,iDe,aDe,oDe,sDe,cDe,lDe,uDe,dDe,fDe,pDe,mDe,hDe=o((()=>{RC(),nDe(),rDe=vS(HC),iDe=yS(HC),aDe=bS(HC),oDe=xS(HC),sDe=CSe(HC),cDe=wSe(HC),lDe=TSe(HC),uDe=ESe(HC),dDe=DSe(HC),fDe=OSe(HC),pDe=kSe(HC),mDe=ASe(HC)}));function gDe(){fS.localeError||sS(aTe())}function UC(){fS.memoizer||sS({memoizer:eTe()})}function V(e){return fTe(LDe,e)}function WC(e){return zTe(oOe,e)}function _De(e){return BTe(sOe,e)}function GC(e){return VTe(cOe,e)}function vDe(e){return HTe(lOe,e)}function yDe(e){return UTe(uOe,e)}function KC(){return WTe(dOe)}function qC(){return GTe(fOe)}function bDe(e){return KTe(pOe,e)}function JC(e,t){return uEe(hOe,e,t)}function YC(e,t){return new gOe({type:`object`,shape:e??{},...Vx(t)})}function xDe(e,t){return new gOe({type:`object`,shape:e,catchall:bDe(),...Vx(t)})}function XC(e,t){return new _Oe({type:`union`,options:e,...Vx(t)})}function ZC(e,t,n){return new vOe({type:`union`,options:t,discriminator:e,...Vx(n)})}function SDe(e,t){return new yOe({type:`intersection`,left:e,right:t})}function QC(e,t,n){return!t||!t._zod?new bOe({type:`record`,keyType:V(),valueType:e,...Vx(t)}):new bOe({type:`record`,keyType:e,valueType:t,...Vx(n)})}function $C(e,t){return new sw({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Vx(t)})}function ew(e,t){return new sw({type:`enum`,entries:e,...Vx(t)})}function tw(e,t){return new xOe({type:`literal`,values:Array.isArray(e)?e:[e],...Vx(t)})}function CDe(e){return new SOe({type:`transform`,transform:e})}function wDe(e){return new COe({type:`optional`,innerType:e})}function TDe(e){return new wOe({type:`optional`,innerType:e})}function EDe(e){return new TOe({type:`nullable`,innerType:e})}function DDe(e,t){return new EOe({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Pxe(t)}})}function ODe(e,t){return new DOe({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Pxe(t)}})}function kDe(e,t){return new OOe({type:`nonoptional`,innerType:e,...Vx(t)})}function ADe(e,t){return new kOe({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:$xe(t)})}function jDe(e,t){return new AOe({type:`pipe`,in:e,out:t})}function MDe(e){return new MOe({type:`readonly`,innerType:e})}function NDe(e){return new NOe({type:`lazy`,getter:e})}function nw(e,t){return dEe(POe,e??(()=>!0),t)}function PDe(e,t={}){return fEe(POe,e,t)}function FDe(e,t){return pEe(e,t)}function rw(e,t){return new jOe({type:`pipe`,in:CDe(e),out:t})}var iw,IDe,LDe,aw,RDe,zDe,BDe,VDe,HDe,UDe,ow,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,hOe,gOe,_Oe,vOe,yOe,bOe,sw,xOe,SOe,COe,wOe,TOe,EOe,DOe,OOe,kOe,AOe,jOe,MOe,NOe,POe,cw=o((()=>{RC(),LC(),yC(),iC(),zC(),hDe(),iw=oS(`ZodType`,(e,t)=>(gDe(),LS.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Ix(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Bx(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(PDe(e,t))},superRefine(e,t){return this.check(FDe(e,t))},overwrite(e){return this.check(uC(e))},optional(){return wDe(this)},exactOptional(){return TDe(this)},nullable(){return EDe(this)},nullish(){return wDe(EDe(this))},nonoptional(e){return kDe(this,e)},array(){return JC(this)},or(e){return XC([this,e])},and(e){return SDe(this,e)},transform(e){return jDe(this,CDe(e))},default(e){return DDe(this,e)},prefault(e){return ODe(this,e)},catch(e){return ADe(this,e)},pipe(e){return jDe(this,e)},readonly(){return MDe(this)},describe(e){let t=this.clone();return aC.add(t,{description:e}),t},meta(...e){if(e.length===0)return aC.get(this);let t=this.clone();return aC.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 Yxe(this,`~standard`,{...ECe(this),jsonSchema:{input:vC(this,`input`),output:vC(this,`output`)}})},set"~standard"(e){Zx(this,`~standard`,e)},parse:function e(t,n){return rDe(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await iDe(this,t,n,{callee:e})},safeParse(e,t){return aDe(this,e,t)},async safeParseAsync(e,t){return oDe(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Zx(this,`spa`,e)},validate(e,t){return xSe(this,e,t)},validateAsync(e,t){return SSe(this,e,t)},encode:function e(t,n){return sDe(this,t,n,{callee:e})},decode:function e(t,n){return cDe(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await lDe(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await uDe(this,t,n,{callee:e})},safeEncode(e,t){return dDe(this,e,t)},safeDecode(e,t){return fDe(this,e,t)},async safeEncodeAsync(e,t){return pDe(this,e,t)},async safeDecodeAsync(e,t){return mDe(this,e,t)},toJSONSchema(e){return CEe(this,{})(e)},get description(){return aC.get(this)?.description},get _def(){return this._zod.def}}),IDe=oS(`_ZodString`,(e,t)=>{zS.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kEe(e,t,n,r)},Qx({format:e=>bC(e).format??null,minLength:e=>bC(e).minimum??null,maxLength:e=>bC(e).maximum??null},{regex(...e){return this.check($Te(...e))},includes(...e){return this.check(nEe(...e))},startsWith(...e){return this.check(rEe(...e))},endsWith(...e){return this.check(iEe(...e))},min(...e){return this.check(lC(...e))},max(...e){return this.check(ZTe(...e))},length(...e){return this.check(QTe(...e))},nonempty(...e){return this.check(lC(1,...e))},lowercase(e){return this.check(eEe(e))},uppercase(e){return this.check(tEe(e))},trim(){return this.check(oEe())},normalize(...e){return this.check(aEe(...e))},toLowerCase(){return this.check(sEe())},toUpperCase(){return this.check(cEe())},slugify(){return this.check(lEe())}})),LDe=oS(`ZodString`,(e,t)=>{zS.init(e,t),IDe.init(e,t)},{email(e){return this.check(pTe(HDe,e))},url(e){return this.check(yTe(WDe,e))},jwt(e){return this.check(PTe(aOe,e))},emoji(e){return this.check(bTe(GDe,e))},guid(e){return this.check(mTe(UDe,e))},uuid(e){return this.check(hTe(ow,e))},uuidv4(e){return this.check(gTe(ow,e))},uuidv6(e){return this.check(_Te(ow,e))},uuidv7(e){return this.check(vTe(ow,e))},nanoid(e){return this.check(xTe(KDe,e))},cuid(e){return this.check(STe(qDe,e))},cuid2(e){return this.check(CTe(JDe,e))},ulid(e){return this.check(wTe(YDe,e))},base64(e){return this.check(jTe(nOe,e))},base64url(e){return this.check(MTe(rOe,e))},xid(e){return this.check(TTe(XDe,e))},ksuid(e){return this.check(ETe(ZDe,e))},ipv4(e){return this.check(DTe(QDe,e))},ipv6(e){return this.check(OTe($De,e))},cidrv4(e){return this.check(kTe(eOe,e))},cidrv6(e){return this.check(ATe(tOe,e))},e164(e){return this.check(NTe(iOe,e))},datetime(e){return this.check(FTe(RDe,e))},date(e){return this.check(ITe(zDe,e))},time(e){return this.check(LTe(BDe,e))},duration(e){return this.check(RTe(VDe,e))}}),aw=oS(`ZodStringFormat`,(e,t)=>{BS.init(e,t),IDe.init(e,t)}),RDe=oS(`ZodISODateTime`,(e,t)=>{lwe.init(e,t),aw.init(e,t)}),zDe=oS(`ZodISODate`,(e,t)=>{uwe.init(e,t),aw.init(e,t)}),BDe=oS(`ZodISOTime`,(e,t)=>{dwe.init(e,t),aw.init(e,t)}),VDe=oS(`ZodISODuration`,(e,t)=>{fwe.init(e,t),aw.init(e,t)}),HDe=oS(`ZodEmail`,(e,t)=>{$Ce.init(e,t),aw.init(e,t)}),UDe=oS(`ZodGUID`,(e,t)=>{ZCe.init(e,t),aw.init(e,t)}),ow=oS(`ZodUUID`,(e,t)=>{QCe.init(e,t),aw.init(e,t)}),WDe=oS(`ZodURL`,(e,t)=>{twe.init(e,t),aw.init(e,t)}),GDe=oS(`ZodEmoji`,(e,t)=>{nwe.init(e,t),aw.init(e,t)}),KDe=oS(`ZodNanoID`,(e,t)=>{rwe.init(e,t),aw.init(e,t)}),qDe=oS(`ZodCUID`,(e,t)=>{iwe.init(e,t),aw.init(e,t)}),JDe=oS(`ZodCUID2`,(e,t)=>{awe.init(e,t),aw.init(e,t)}),YDe=oS(`ZodULID`,(e,t)=>{owe.init(e,t),aw.init(e,t)}),XDe=oS(`ZodXID`,(e,t)=>{swe.init(e,t),aw.init(e,t)}),ZDe=oS(`ZodKSUID`,(e,t)=>{cwe.init(e,t),aw.init(e,t)}),QDe=oS(`ZodIPv4`,(e,t)=>{pwe.init(e,t),aw.init(e,t)}),$De=oS(`ZodIPv6`,(e,t)=>{hwe.init(e,t),aw.init(e,t)}),eOe=oS(`ZodCIDRv4`,(e,t)=>{gwe.init(e,t),aw.init(e,t)}),tOe=oS(`ZodCIDRv6`,(e,t)=>{_we.init(e,t),aw.init(e,t)}),nOe=oS(`ZodBase64`,(e,t)=>{vwe.init(e,t),aw.init(e,t)}),rOe=oS(`ZodBase64URL`,(e,t)=>{ywe.init(e,t),aw.init(e,t)}),iOe=oS(`ZodE164`,(e,t)=>{bwe.init(e,t),aw.init(e,t)}),aOe=oS(`ZodJWT`,(e,t)=>{xwe.init(e,t),aw.init(e,t)}),oOe=oS(`ZodNumber`,(e,t)=>{US.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>AEe(e,t,n,r),e.isFinite=!0},Qx({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=bC(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=bC(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=bC(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>bC(e).format??null},{gt(e,t){return this.check(YTe(e,t))},gte(e,t){return this.check(cC(e,t))},min(e,t){return this.check(cC(e,t))},lt(e,t){return this.check(JTe(e,t))},lte(e,t){return this.check(sC(e,t))},max(e,t){return this.check(sC(e,t))},int(e){return this.check(_De(e))},safe(e){return this.check(_De(e))},positive(e){return this.check(YTe(0,e))},nonnegative(e){return this.check(cC(0,e))},negative(e){return this.check(JTe(0,e))},nonpositive(e){return this.check(sC(0,e))},multipleOf(e,t){return this.check(XTe(e,t))},step(e,t){return this.check(XTe(e,t))},finite(){return this}})),sOe=oS(`ZodNumberFormat`,(e,t)=>{Swe.init(e,t),oOe.init(e,t)}),cOe=oS(`ZodBoolean`,(e,t)=>{Cwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jEe(e,t,n,r)}),lOe=oS(`ZodUndefined`,(e,t)=>{wwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NEe(e,t,n,r)}),uOe=oS(`ZodNull`,(e,t)=>{Twe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>MEe(e,t,n,r)}),dOe=oS(`ZodAny`,(e,t)=>{Ewe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FEe(e,t,n,r)}),fOe=oS(`ZodUnknown`,(e,t)=>{Dwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IEe(e,t,n,r)}),pOe=oS(`ZodNever`,(e,t)=>{Owe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PEe(e,t,n,r)}),mOe=oS(`ZodDate`,(e,t)=>{kwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LEe(e,t,n,r),e.min=(t,n)=>e.check(cC(t,n)),e.max=(t,n)=>e.check(sC(t,n))},Qx({minDate:e=>{let{minimum:t}=bC(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=bC(e);return t?new Date(t):null}},{})),hOe=oS(`ZodArray`,(e,t)=>{UC(),jwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>HEe(e,t,n,r),e.element=t.element},{min(e,t){return this.check(lC(e,t))},nonempty(e){return this.check(lC(1,e))},max(e,t){return this.check(ZTe(e,t))},length(e,t){return this.check(QTe(e,t))},unwrap(){return this.element}}),gOe=oS(`ZodObject`,(e,t)=>{UC(),Pwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UEe(e,t,n,r),Qxe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return $C(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Ix(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Ix(this._zod.def,{catchall:qC()}))},loose(){return this.clone(Ix(this._zod.def,{catchall:qC()}))},strict(){return this.clone(Ix(this._zod.def,{catchall:bDe()}))},strip(){return this.clone(Ix(this._zod.def,{catchall:void 0}))},extend(e){return zxe(this,e)},safeExtend(e){return Vxe(this,e)},merge(e){return Hxe(this,e)},pick(e){return Lxe(this,e)},omit(e){return Rxe(this,e)},partial(...e){return Uxe(COe,this,e[0])},exactPartial(...e){return Uxe(wOe,this,e[0],`exactPartial`)},required(...e){return Wxe(OOe,this,e[0])}}),_Oe=oS(`ZodUnion`,(e,t)=>{WS.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WEe(e,t,n,r),e.options=t.options}),vOe=oS(`ZodDiscriminatedUnion`,(e,t)=>{_Oe.init(e,t),Fwe.init(e,t)}),yOe=oS(`ZodIntersection`,(e,t)=>{Iwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GEe(e,t,n,r)}),bOe=oS(`ZodRecord`,(e,t)=>{UC(),Lwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KEe(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),sw=oS(`ZodEnum`,(e,t)=>{Rwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>REe(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new sw({...t,checks:[],...Vx(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new sw({...t,checks:[],...Vx(r),entries:i})}}),xOe=oS(`ZodLiteral`,(e,t)=>{zwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zEe(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]}})}),SOe=oS(`ZodTransform`,(e,t)=>{UC(),Bwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>VEe(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new dS(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Xx(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(Xx(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),COe=oS(`ZodOptional`,(e,t)=>{GS.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),wOe=oS(`ZodExactOptional`,(e,t)=>{Vwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IC(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),TOe=oS(`ZodNullable`,(e,t)=>{Hwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),EOe=oS(`ZodDefault`,(e,t)=>{Uwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>YEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),DOe=oS(`ZodPrefault`,(e,t)=>{Wwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>XEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),OOe=oS(`ZodNonOptional`,(e,t)=>{Gwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),kOe=oS(`ZodCatch`,(e,t)=>{Kwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ZEe(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),AOe=oS(`ZodPipe`,(e,t)=>{KS.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>QEe(e,t,n,r),e.in=t.in,e.out=t.out}),jOe=oS(`ZodPreprocess`,(e,t)=>{AOe.init(e,t),qwe.init(e,t)}),MOe=oS(`ZodReadonly`,(e,t)=>{Jwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$Ee(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),NOe=oS(`ZodLazy`,(e,t)=>{Ywe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eDe(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),POe=oS(`ZodCustom`,(e,t)=>{Xwe.init(e,t),iw.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BEe(e,t,n,r)})})),FOe,IOe=o((()=>{RC(),FOe||={}}));function LOe(e){return FTe(RDe,e)}var ROe=o((()=>{RC(),cw()}));function lw(e){return qTe(mOe,e)}var zOe=o((()=>{RC(),cw()})),BOe=o((()=>{RC(),cw(),zC(),nDe(),hDe(),IOe(),LC(),oC(),aS(),zC(),ROe(),cw(),qS(),iC(),zOe()})),uw=o((()=>{BOe(),BOe()})),dw,VOe,HOe,UOe,WOe,GOe,KOe=o((()=>{uw(),dw=[`failed to authenticate`,`invalid authentication credentials`,`authentication[_ ]error`,`not authenticated`,`\\bunauthorized\\b`,`\\b401\\b`,`no api key found`,`no models available`],VOe=[{auth:{docsUrl:`https://antigravity.google/docs/cli/install/`,errorMessage:"Antigravity could not authenticate. Run `agy` and sign in, then retry.",patterns:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:dw,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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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:[...dw,`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`}],HOe=VOe.map(({type:e})=>e),$C(HOe),UOe=[{defaultCommand:`dsh`,defaultModel:`deepseek-v4-flash`,defaultTopicGroupMode:`byProject`,iconId:`DeepSeek`,kind:`local-runtime`,title:`DeepSeek Harness`,type:`deepseek-harness`}],WOe=$C([...HOe,...UOe.map(({type:e})=>e)]),GOe=[{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`}]})),fw,qOe,pw,JOe,YOe,mw,XOe,ZOe,QOe,$Oe,eke,tke,nke,rke,ike,ake,oke,ske,cke,lke,uke,dke,fke,pke,mke,hke,gke,_ke,vke,yke,bke,xke,Ske,Cke,wke,Tke,Eke,hw,gw,Dke,_w,Oke=o((()=>{wxe(),fw=`default`,qOe=[`low`,`medium`,`high`,`ultra`],pw=[`low`,`medium`,`high`,`xhigh`,`max`],JOe=[`low`,`medium`,`high`,`xhigh`],YOe=[`--effort`,`--reasoning-effort`],mw=[`low`,`medium`,`high`,`xhigh`],XOe=[...mw,`max`,`ultra`],ZOe=`model_reasoning_effort`,QOe=[`low`,`high`,`max`],$Oe=[`high`,`max`],eke=[...mw,`max`],tke=[`gpt-5.6`,`gpt-5.6-sol`,`gpt-5.6-terra`],nke=[`gpt-6-astra`,`gpt-5.6-luna`],rke=[`low`,`medium`,`high`,`xhigh`,`max`],ike=`--reasoning-effort`,ake=[`low`,`medium`,`high`,`xhigh`,`max`],oke=`--reasoning-effort`,ske=`service_tier`,cke=[`fast`,`priority`],lke=e=>!!e&&qOe.includes(e),uke=e=>!!e&&pw.includes(e),dke=e=>!!e&&XOe.includes(e),fke=e=>!!e&&JOe.includes(e),pke=e=>!!e&&rke.includes(e),mke=e=>!!e&&ake.includes(e),hke=e=>!!e&&cke.includes(e),gke=e=>e===`deepseek-v4-flash`||e===`deepseek-v4-pro`?QOe:e===`glm-5.2`?$Oe:tke.includes(e)?XOe:nke.includes(e)?eke:mw,_ke=e=>{let t=(wx(e?.args,`--mode`)??e?.mode)?.trim();return lke(t)?t:fw},vke=[`-m`,`--model`],yke=e=>{let t=(wx(e?.args,`--model`)??e?.model)?.trim();return t&&t!=="default"?t:fw},bke=e=>{let t=(wx(e?.args,`--effort`)??e?.effort)?.trim();return uke(t)?t:fw},xke=e=>{let t=(Tx(e?.args,vke)??Dx(e?.args,`model`)??e?.model)?.trim();return t&&t!=="default"?t:fw},Ske=e=>{let t=(Dx(e?.args,`model_reasoning_effort`)??e?.effort)?.trim();return dke(t)?t:fw},Cke=e=>{let t=(Dx(e?.args,`service_tier`)??e?.speed)?.trim();return t==="default"&&Dx(e?.args,`service_tier`)!==void 0?`normal`:t===`normal`||t===`ultrafast`?t:hke(t)?`fast`:fw},wke=e=>{let t=(Tx(e?.args,YOe)??e?.effort)?.trim();return fke(t)?t:fw},Tke=e=>{let t=(wx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return pke(t)?t:fw},Eke=e=>{let t=(wx(e?.args,`--reasoning-effort`)??e?.effort)?.trim();return mke(t)?t:fw},hw=e=>{let t=e?.model?.trim();return t&&t!=="default"?t:fw},gw={flags:[`-m`,`--model`],kind:`flag`},Dke={antigravity:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hw,source:`catalog`}},amp:{mode:{encodings:[{flags:[`--mode`],kind:`flag`}],levels:qOe,resolve:_ke}},"claude-code":{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>pw,resolve:bke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:yke,source:`static`}},codebuddy:{effort:{encodings:[{flags:[`--effort`],kind:`flag`}],levels:()=>pw,resolve:bke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:yke,source:`catalog`}},codex:{effort:{encodings:[{key:ZOe,kind:`config`}],levels:gke,resolve:Ske},model:{encodings:[gw,{key:`model`,kind:`config`}],resolve:xke,source:`catalog`},speed:{encodings:[{key:ske,kind:`config`}],resolve:Cke}},copilot:{effort:{encodings:[{flags:[oke],kind:`flag`}],levels:()=>ake,resolve:Eke},model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hw,source:`catalog`}},cursor:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hw,source:`catalog`}},"deepseek-harness":{model:{encodings:[],resolve:hw,source:`catalog`}},droid:{model:{encodings:[],resolve:hw,source:`catalog`}},devin:{model:{encodings:[{flags:[`--model`],kind:`flag`}],resolve:hw,source:`catalog`}},"grok-build":{effort:{encodings:[{flags:YOe,kind:`flag`}],levels:()=>JOe,resolve:wke},model:{encodings:[gw],resolve:hw,source:`catalog`}},"kimi-code":{model:{encodings:[gw],resolve:hw,source:`catalog`}},opencode:{model:{encodings:[gw],resolve:hw,source:`catalog`}},pi:{model:{encodings:[{flags:[`--model`],kind:`flag`}],extraStripFlags:[`--provider`],resolve:hw,source:`catalog`}},qoder:{effort:{encodings:[{flags:[ike],kind:`flag`}],levels:()=>rke,resolve:Tke},model:{encodings:[gw],resolve:hw,source:`catalog`}},trae:{model:{encodings:[],resolve:hw,source:`catalog`}}},_w=e=>Dke[e].model.encodings.flatMap(e=>e.kind===`flag`?e.flags:[]),_w(`copilot`),_w(`grok-build`),_w(`kimi-code`),_w(`opencode`),_w(`pi`),_w(`qoder`)})),kke=o((()=>{})),Ake=o((()=>{KOe(),kke(),new Set([...VOe.map(({type:e})=>e),...UOe.map(({type:e})=>e),...GOe.map(({type:e})=>e)])})),jke=o((()=>{})),Mke=o((()=>{})),Nke,Pke,Fke,Ike,Lke=o((()=>{uw(),Nke=YC({workingDirectory:V().optional()}),Pke=YC({memory:YC({effort:$C([`low`,`medium`,`high`]).optional(),enabled:GC().optional(),toolPermission:$C([`read-only`,`read-write`]).optional()}).optional()}),Fke=YC({selfIteration:YC({enabled:GC().optional()}).optional()}),Ike=YC({codexMaxReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:$C([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:$C([`none`,`high`,`max`]).optional(),qwen38ReasoningEffort:$C([`none`,`low`,`medium`,`xhigh`]).optional(),disableContextCaching:GC().optional(),disableGatewayMode:GC().optional(),effort:$C([`low`,`medium`,`high`,`max`]).optional(),enableAdaptiveThinking:GC().optional(),enableAgentMode:GC().optional(),toolMode:$C([`agent`,`chat`,`custom`]).optional(),enableAutoScrollOnStreaming:GC().optional(),enableCompressHistory:GC().optional(),enableContextCompression:GC().optional(),enableFollowUpChips:GC().optional(),enableHistoryCount:GC().optional(),enableMaxTokens:GC().optional(),enableReasoning:GC().optional(),enableReasoningEffort:GC().optional(),enableStreaming:GC().optional(),enableStaleToolResultTrim:GC().optional(),gpt5ReasoningEffort:$C([`minimal`,`low`,`medium`,`high`]).optional(),gpt5_1ReasoningEffort:$C([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:$C([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:$C([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:$C([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt6ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),glm5_2ReasoningEffort:$C([`high`,`max`]).optional(),glm5_3ReasoningEffort:$C([`low`,`high`,`max`]).optional(),grok4_20ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_3ReasoningEffort:$C([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:$C([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:$C([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:$C([`low`,`high`,`max`]).optional(),ring2_6ReasoningEffort:$C([`high`,`xhigh`]).optional(),historyCount:WC().optional(),imageAspectRatio:V().optional(),imageAspectRatio2:V().optional(),imageResolution:$C([`1K`,`2K`,`4K`]).optional(),imageResolution2:$C([`512`,`1K`,`2K`,`4K`]).optional(),opus47Effort:$C([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),runtimeEnv:Nke.optional(),preserveThinking:GC().optional(),reasoningBudgetToken:WC().optional(),reasoningBudgetToken32k:WC().optional(),reasoningBudgetToken80k:WC().optional(),reasoningEffort:$C([`low`,`medium`,`high`]).optional(),reasoningMode:$C([`standard`,`pro`]).optional(),searchFCModel:YC({model:V(),provider:V()}).optional(),searchMode:$C([`off`,`on`,`auto`]).optional(),step3_5ReasoningEffort:$C([`low`,`high`]).optional(),skillActivateMode:$C([`auto`,`manual`]).optional(),textVerbosity:$C([`low`,`medium`,`high`]).optional(),thinking:$C([`disabled`,`auto`,`enabled`]).optional(),thinkingBudget:WC().optional(),thinkingLevel:$C([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:$C([`low`,`high`]).optional(),thinkingLevel3:$C([`low`,`medium`,`high`]).optional(),thinkingLevel4:$C([`minimal`,`high`]).optional(),thinkingLevel5:$C([`low`,`medium`,`high`,`xhigh`]).optional(),toolResultMaxLength:WC().default(25e3),topicGroupMode:$C([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),urlContext:GC().optional(),useModelBuiltinSearch:GC().optional()}).merge(Pke).merge(Fke)})),Rke=o((()=>{})),zke=o((()=>{})),Bke,vw,Vke,Hke,Uke,Wke,Gke,Kke,qke,Jke,Yke,Xke=o((()=>{Bke=`LobeHub Cloud`,vw=`LobeHub`,Vke=`Lobe AI`,Hke=`LobeHub`,Uke={help:void 0,privacy:void 0,subscription:`https://app.lobehub.com/settings/plans`,support:void 0,terms:void 0},Wke={discord:`https://discord.gg/AYFPHvv2jT`,github:`https://github.com/lobehub`,medium:`https://medium.com/@lobehub`,x:`https://x.com/lobehub`,youtube:`https://www.youtube.com/@lobehub`},Gke={importFromNotionGuide:`https://hub-apac-1.lobeobjects.space/assets/notion.mp4`},Kke={business:`hello@lobehub.com`,replyTo:void 0,support:`support@lobehub.com`},qke=`lobehub`,Jke=`© ${new Date().getFullYear()} ${Hke}`,Yke=`${Jke}. All rights reserved.`})),Zke,Qke,$ke,yw,bw,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,cAe,lAe,uAe,dAe,fAe,pAe,mAe,hAe,gAe=o((()=>{Zke=`jev-1.14.0`,Qke=`typesafe`,$ke=`openai`,yw=`deepseek-v4-flash`,bw=`deepseek`,eAe=`gpt-5.6-luna`,tAe=`openai`,nAe=`decision`,rAe=`gpt-6-luna:decision`,iAe=`openai`,aAe=`gpt-4o-mini-transcribe`,oAe=`openai`,sAe=`gemini-3-flash-preview`,cAe=`google`,lAe=`gemini-3.8-flash`,uAe=`google`,dAe=[{model:`claude-sonnet-5`,provider:`anthropic`},{model:`gemini-3.8-flash`,provider:`google`},{model:`deepseek-v4-flash`,provider:`deepseek`}],fAe=`glm-5.3-flash`,pAe=`zhipu`,mAe=`deepseek-flash`,hAe=`deepseek`})),_Ae,vAe=o((()=>{_Ae=[]})),yAe,bAe=o((()=>{yAe=`chat_preview`})),xAe=c({AGENT_ONBOARDING_ENABLED:()=>!1,API_KEY_PREFIX:()=>SAe,APPLE_APP_STORE_ID:()=>``,BRANDING_EMAIL:()=>Kke,BRANDING_INBOX_TITLE:()=>Vke,BRANDING_LOGO_URL:()=>``,BRANDING_NAME:()=>vw,BRANDING_PROVIDER:()=>qke,BRANDING_URL:()=>Uke,BUSINESS_OIDC_CLIENTS:()=>_Ae,COPYRIGHT:()=>Jke,COPYRIGHT_FULL:()=>Yke,DEFAULT_ACCEPTANCE_DISPUTE_PANEL:()=>dAe,DEFAULT_ASR_MODEL:()=>aAe,DEFAULT_ASR_PROVIDER:()=>oAe,DEFAULT_BOT_WAKE_ENGINE:()=>nAe,DEFAULT_BOT_WAKE_MODEL:()=>rAe,DEFAULT_BOT_WAKE_PROVIDER:()=>iAe,DEFAULT_CHANNEL_ROUTING_MODEL:()=>Zke,DEFAULT_CHANNEL_ROUTING_PROVIDER:()=>Qke,DEFAULT_EMBEDDING_PROVIDER:()=>$ke,DEFAULT_MINI_MODEL:()=>eAe,DEFAULT_MINI_PROVIDER:()=>tAe,DEFAULT_MODEL:()=>yw,DEFAULT_ONBOARDING_MODEL:()=>sAe,DEFAULT_ONBOARDING_PROVIDER:()=>cAe,DEFAULT_PROVIDER:()=>bw,DEFAULT_REVIEW_PREDICT_MODEL:()=>lAe,DEFAULT_REVIEW_PREDICT_PROVIDER:()=>uAe,DEFAULT_VERIFY_MODEL:()=>fAe,DEFAULT_VERIFY_PLAN_MODEL:()=>mAe,DEFAULT_VERIFY_PLAN_PROVIDER:()=>hAe,DEFAULT_VERIFY_PROVIDER:()=>pAe,ENABLE_BUSINESS_FEATURES:()=>!1,ENABLE_TOOL_CHANNEL_SETTINGS:()=>!0,FILE_URL:()=>Gke,LOBE_CHAT_CLOUD:()=>Bke,OFFICIAL_PROVIDER_DISABLE_ERROR:()=>CAe,ORG_NAME:()=>Hke,SOCIAL_URL:()=>Wke,UTM_SOURCE:()=>yAe,isOfficialProvider:()=>wAe}),SAe,CAe,wAe,xw=o((()=>{Xke(),Xke(),gAe(),vAe(),bAe(),SAe=`sk-lh-`,CAe=`The official provider cannot be disabled.`,wAe=e=>!1})),TAe=o((()=>{xw()})),EAe=o((()=>{})),DAe=o((()=>{})),OAe,kAe,AAe=o((()=>{uw(),OAe=$C([`pinned`,`auto`,`disabled`]),kAe=XC([V(),YC({identifier:V(),mode:OAe.optional()})])})),jAe=o((()=>{uw(),Lke(),AAe(),YC({agencyConfig:nw().optional(),avatar:V().nullish(),backgroundColor:V().nullish(),chatConfig:Ike.optional(),description:V().nullish(),editorData:qC().optional(),fewShots:qC().optional(),marketIdentifier:V().nullish(),metadata:QC(V(),qC()).nullish(),model:V().nullish(),name:V().nullish(),openingMessage:V().nullish(),openingQuestions:JC(V()).optional(),params:QC(V(),qC()).optional(),plugins:JC(kAe).optional(),provider:V().nullish(),sessionGroupId:V().nullish(),systemRole:V().nullish(),tags:JC(V()).optional(),title:V().nullish(),tts:nw().optional(),virtual:GC().nullish(),visibility:$C([`private`,`public`]).optional()})})),MAe=o((()=>{})),NAe=o((()=>{})),PAe=o((()=>{})),FAe=o((()=>{})),IAe=o((()=>{})),LAe=o((()=>{Ake(),jke(),Mke(),Lke(),Rke(),zke(),TAe(),wxe(),KOe(),EAe(),DAe(),Oke(),jAe(),MAe(),AAe(),NAe(),PAe(),FAe(),IAe()})),RAe,zAe=o((()=>{RAe=[`mail`,`wallet`,`service`],[...RAe]})),BAe=o((()=>{})),VAe=o((()=>{})),HAe,UAe,WAe=o((()=>{uw(),HAe=YC({ciStatus:$C([`failure`,`pending`,`success`,`unknown`]).optional(),headRefName:V().optional(),headRepoFullName:V().optional(),isDraft:GC().optional(),mergeable:V().optional(),mergeStateStatus:V().optional(),mergedAt:V().nullable().optional(),number:WC(),reviewDecision:V().optional(),state:V(),title:V(),url:V()}),UAe=YC({environmentId:V().max(255).optional(),git:YC({activeWorktree:V().optional(),autoCreated:GC().optional(),autoCreatedAt:V().optional(),branch:V().optional(),detached:GC().optional(),github:YC({extraPullRequestCount:WC().optional(),pullRequest:HAe.nullable().optional(),pullRequestStatus:$C([`error`,`gh-missing`,`ok`]).optional()}).optional(),isWorktree:GC().optional(),ownBranch:V().optional(),ownerNonce:V().max(64).optional(),ownerToken:V().max(128).optional(),upstream:YC({branch:V(),remote:V()}).optional()}).optional(),path:V(),repoType:$C([`git`,`github`]).optional(),sessionPath:V().optional()})})),GAe=o((()=>{WAe()})),KAe,qAe=o((()=>{KAe=[`default`,`acceptEdits`,`auto`,`plan`,`bypassPermissions`]})),JAe=o((()=>{})),YAe=o((()=>{})),XAe=o((()=>{})),ZAe=o((()=>{uw(),GAe(),qAe(),JAe(),YAe(),XAe(),YC({heteroPermissionMode:$C(KAe).optional(),repos:JC(V()).optional(),sandboxDrive:$C([`personal`,`public`]).optional(),sandboxEnvironmentId:V().max(255).optional(),sandboxInstanceId:V().optional(),sandboxSeeded:GC().optional(),sandboxTemporary:GC().optional(),sandboxWorkingDirectory:V().max(1024).optional(),workingDirectory:V().optional(),workingDirectoryConfig:UAe.optional()})})),QAe,$Ae=o((()=>{uw(),QAe=YC({allowDM:GC().optional(),forkedFromIdentifier:V().optional(),openingMessage:V().optional(),openingQuestions:JC(V()).optional(),personal:GC().optional(),revealDM:GC().optional(),systemPrompt:V().optional()}),YC({avatar:V().nullish(),backgroundColor:V().nullish(),clientId:V().nullish(),config:QAe.nullish(),content:V().nullish(),description:V().nullish(),editorData:QC(V(),KC()).nullish(),groupId:V().nullish(),id:V().optional(),marketIdentifier:V().nullish(),pinned:GC().nullish(),title:V().nullish(),visibility:$C([`private`,`public`]).optional()})})),eje,tje,nje,rje=o((()=>{uw(),eje=$C([`beforeStep`,`afterStep`,`onComplete`,`onError`,`beforeToolCall`,`afterToolCall`,`onToolCallError`,`beforeHumanIntervention`,`afterHumanIntervention`,`onStopByHumanIntervention`,`beforeCompact`,`afterCompact`,`onCompactError`,`beforeCallAgent`,`afterCallAgent`,`onCallAgentError`]),tje=V().refine(e=>{if(!e||e===`*`)return!0;try{return new RegExp(e),!0}catch{return!1}},`Invalid hook matcher regular expression`),nje=xDe({allowedEnvVars:JC(V().regex(/^[A-Z_]\w*$/i)).optional(),body:QC(V(),qC()).optional(),delivery:$C([`fetch`,`qstash`]).optional(),eventFields:JC(V()).optional(),fallback:$C([`fetch`,`none`]).optional(),headers:QC(V(),V()).optional(),onError:$C([`continue`,`block`]).optional(),responseHandling:$C([`ignore`,`toolCall`]).optional(),timeout:WC().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`})}),xDe({id:V(),matcher:tje.optional(),type:eje,webhook:nje}).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`})})})),ije=o((()=>{uw(),ZC(`decision`,[YC({decision:tw(`allow`)}),YC({decision:tw(`deny`),reason:V().optional()})])})),aje=o((()=>{})),oje,sje=o((()=>{oje=[`idle`,`running`,`waiting_for_async_tool`,`waiting_for_client`,`waiting_for_human`],new Set(oje)})),cje=o((()=>{})),lje=o((()=>{})),uje,dje,fje,pje=o((()=>{uje={messages:`msg`,threads:`thd`,topics:`tpc`},dje=`[0-9a-zA-Z]{8,32}`,fje=e=>RegExp(`^${uje[e]}_${dje}$`)})),mje,hje,gje,_je=o((()=>{uw(),mje=YC({attribution:$C([`user`,`provider`,`harness`,`system`]).optional(),body:KC().optional(),errorRef:V().optional(),category:V().optional(),countAsFailure:GC().optional(),httpStatus:WC().optional(),isFallback:GC().optional(),message:V().optional(),numericId:WC().optional(),retryable:GC().optional(),severity:$C([`info`,`warning`,`error`,`critical`]).optional(),type:XC([V(),WC()])}),hje=YC({content:JC(QC(V(),qC())).optional(),encrypted_content:V().nullish(),id:V(),status:$C([`in_progress`,`completed`,`incomplete`]).optional(),summary:JC(YC({text:V(),type:tw(`summary_text`)})),type:tw(`reasoning`)}).passthrough(),gje=YC({content:V().optional(),duration:WC().optional(),isMultimodal:GC().optional(),responseItems:JC(hje).optional(),signature:V().optional()})})),vje,yje=o((()=>{vje=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}({})})),Sw,bje,xje=o((()=>{uw(),Sw=WC().catch(0),bje=YC({bySource:YC({content:Sw,fileContext:Sw,reasoning:Sw,thoughtSignature:Sw,toolCallId:Sw,toolCalls:Sw,toolDefinition:Sw}).catch({content:0,fileContext:0,reasoning:0,thoughtSignature:0,toolCallId:0,toolCalls:0,toolDefinition:0}),estimator:tw(`tokenx`).catch(`tokenx`),messageCount:Sw,system:Sw,total:Sw})})),Sje,Cje,Cw,wje,Tje,Eje,Dje,Oje,kje,Aje=o((()=>{uw(),Sje=$C([`markdown`,`text`,`xml`]),Cje=YC({endLine:WC().optional(),startLine:WC()}),Cw=YC({content:V(),format:Sje.optional(),id:V(),lineRange:Cje.optional(),preview:V().optional(),title:V().optional()}),wje=Cw.extend({anchor:YC({endNodeId:V(),endOffset:WC(),startNodeId:V(),startOffset:WC()}).optional(),pageId:V(),source:tw(`page`),xml:V().optional()}),Tje=Cw.extend({filePath:V(),language:V().optional(),side:$C([`additions`,`context`,`deletions`]).optional(),source:tw(`code`),workingDirectory:V().optional()}),Eje=Cw.extend({source:tw(`text`)}),Dje=Cw.extend({element:YC({pageTitle:V().optional(),selector:V(),tag:V(),thumbnailUrl:V().optional(),url:V().optional()}),source:tw(`element`)}),Oje=Cw.extend({identifier:V(),source:tw(`mcpApp`)}),kje=ZC(`source`,[wje,Tje,Eje,Dje,Oje])})),jje,Mje=o((()=>{uw(),Aje(),jje=Cw.omit({lineRange:!0}).extend({anchor:YC({endNodeId:V(),endOffset:WC(),startNodeId:V(),startOffset:WC()}).optional(),startLine:WC().optional(),endLine:WC().optional(),pageId:V(),xml:V().optional()})})),Nje,Pje,ww,Fje,Ije,Lje,Rje,zje,Bje,Vje,Hje,Uje,Wje,Gje,Kje,Tw,qje,Jje=o((()=>{uw(),yje(),xje(),Aje(),Mje(),Nje=XC([YC({action:$C([`create`,`update`,`delete`]),changeType:$C([`created`,`updated`]).optional(),targets:JC(YC({taskId:V().optional(),taskIdentifier:V().optional()})),type:tw(`task`)}),YC({args:QC(V(),qC()).optional(),data:qC(),provider:V(),toolName:V(),type:tw(`skill`)}),YC({action:tw(`register`),document:YC({agentDocumentId:V().nullish(),agentId:V().nullish(),description:V().nullish(),documentId:V(),changeType:$C([`created`,`updated`]),toolName:V()}),type:tw(`document`)}),YC({action:tw(`delete`),document:YC({agentDocumentId:V().nullish(),agentId:V().nullish(),documentId:V()}),type:tw(`document`)}),YC({action:tw(`register`),canvas:YC({canvasId:V(),description:V().nullish(),title:V(),toolName:V(),metadata:YC({entry:V(),fileCount:WC(),manifestKey:V(),runtimeMajor:WC(),totalSize:WC()})}),type:tw(`canvas`)})]),Pje=YC({apiName:$C([`readFile`,`listFiles`,`readLocalFile`,`listLocalFiles`]),arguments:QC(V(),qC()),capturedAt:V(),content:V().nullable(),error:qC().optional(),identifier:tw(`lobe-local-system`),result:qC().optional(),snapshotId:V(),state:qC().optional(),success:GC(),toolCallId:V()}),ww=YC({inputCachedTokens:WC().optional(),inputCacheMissTokens:WC().optional(),inputWriteCacheTokens:WC().optional(),inputCachedTextTokens:WC().optional(),inputCachedImageTokens:WC().optional(),inputCachedAudioTokens:WC().optional(),inputCachedVideoTokens:WC().optional(),inputTextTokens:WC().optional(),inputImageTokens:WC().optional(),inputAudioTokens:WC().optional(),inputVideoTokens:WC().optional(),inputCitationTokens:WC().optional(),inputToolTokens:WC().optional(),inputCharacters:WC().optional(),outputTextTokens:WC().optional(),outputImageTokens:WC().optional(),outputAudioTokens:WC().optional(),outputReasoningTokens:WC().optional(),outputVideoTokens:WC().optional(),acceptedPredictionTokens:WC().optional(),rejectedPredictionTokens:WC().optional(),totalInputTokens:WC().optional(),totalOutputTokens:WC().optional(),totalTokens:WC().optional(),cost:WC().optional(),credits:WC().optional()}),Fje=YC({tps:WC().optional(),ttft:WC().optional(),duration:WC().optional(),latency:WC().optional()}),Ije=YC({emoji:V(),count:WC(),users:JC(V())}),Lje=YC({sequence:WC().optional(),sourceToolCallId:V(),sourceToolName:V(),type:$C([`tool-stdout`,`tool-callback`,`task-completion`])}),Rje=YC({identifier:V()}),zje=YC({agentId:V().optional(),name:V(),status:$C([`completed`,`error`]),threadId:V()}),Bje=YC({identifier:V(),reason:$C([`done`,`error`,`interrupted`]),taskId:V(),topicId:V().optional()}),Vje=YC({rootOperationId:V().min(1),userMessageId:V().optional()}),Hje=YC({kind:$C([`callAgent`]),visibility:tw(`internal`)}),Uje=YC({agentId:V(),avatar:V().optional(),chatGroupId:V().optional(),hop:WC().int().positive().optional(),name:V().optional(),threadId:V().optional(),title:V().optional(),topicAgentId:V().optional(),topicId:V().optional(),topicTitle:V().optional()}),Wje=YC({kind:V(),label:V(),provider:V(),resourceId:V().optional(),url:V().optional()}),Gje=YC({avatar:V().optional(),fullName:V().optional(),id:V(),platform:V(),username:V().optional()}),Kje=ww.merge(Fje).extend({botSender:Gje.optional(),externalOrigin:Wje.optional(),agentDispatch:Hje.optional(),agentSender:Uje.optional(),collapsed:GC().optional(),contextAccounting:bje.optional(),contextSelections:JC(kje).optional(),heteroMessageId:V().optional(),codexTurnId:V().optional(),heteroSessionId:V().optional(),heterogeneousToolStateOperationId:V().optional(),heterogeneousToolStateSeq:WC().int().positive().optional(),inspectExpanded:GC().optional(),isMultimodal:GC().optional(),isSupervisor:GC().optional(),localSystemToolSnapshots:JC(Pje).optional(),mcpAppSource:Rje.optional(),operationId:V().min(1).optional(),orchestrationRole:$C([`supervisor`,`member`]).optional(),pageSelections:JC(jje).optional(),performance:Fje.optional(),reactions:JC(Ije).optional(),scope:V().optional(),selectedSkillIds:JC(V()).optional(),signal:Lje.optional(),steer:GC().optional(),subAgentCallback:zje.optional(),subAgentId:V().optional(),taskCallback:Bje.optional(),toolExecutionTimeMs:WC().optional(),toolResultSuccess:GC().optional(),toolResultStop:GC().optional(),toolWorkRegistration:Nje.optional(),trigger:ew(vje).optional(),verifyOperationId:V().optional(),verifyRound:WC().optional(),work:Vje.optional(),usage:ww.optional()}),Tw=Kje.omit({agentSender:!0}),qje=e=>{if(!e||typeof e!=`object`||!(`agentSender`in e))return e;let{agentSender:t,...n}=e;return n}})),Yje,Xje=o((()=>{uw(),Jje(),Yje=Kje.pick({contextSelections:!0,localSystemToolSnapshots:!0,mcpAppSource:!0,pageSelections:!0}),YC({editorData:QC(V(),qC()).optional(),metadata:Yje.optional()}),Object.keys(Yje.shape)})),Zje,Qje=o((()=>{uw(),Zje=YC({alt:V(),height:WC().optional(),id:V(),mimeType:V().optional(),ratio:WC().optional(),url:V(),width:WC().optional()})})),$je=o((()=>{})),eMe,tMe,nMe,rMe=o((()=>{uw(),eMe=YC({batchId:V().optional(),itemIndex:WC().int().nonnegative().optional(),operationId:V().optional(),runtimeType:$C([`client`,`server`]).optional(),rejectedReason:V().optional(),resolving:GC().optional(),resolutionRequestId:V().optional(),skipped:GC().optional(),stepIndex:WC().int().nonnegative().optional(),status:$C([`pending`,`approved`,`rejected`,`aborted`,`none`]).optional()}),tMe=YC({function:YC({arguments:V(),name:V()}),id:V(),type:V()}),nMe=YC({apiName:V(),arguments:V(),id:V(),identifier:V(),intervention:eMe.optional(),result_msg_id:V().optional(),thoughtSignature:V().optional(),type:V()})})),iMe=o((()=>{})),aMe=o((()=>{})),Ew=o((()=>{_je(),Xje(),xje(),Aje(),Qje(),$je(),Jje(),Mje(),rMe(),iMe(),aMe()})),oMe,sMe=o((()=>{uw(),oMe=YC({id:V(),similarity:WC()}),YC({id:V(),value:YC({fileChunks:JC(oMe),ragQueryId:V().optional()})})})),cMe,lMe,uMe=o((()=>{uw(),_je(),rMe(),sMe(),Ew(),Mje(),cMe=$C([`user`,`assistant`,`tool`,`task`,`supervisor`,`taskCallback`]),lMe=YC({apiName:V(),arguments:V(),identifier:V(),type:V()}),YC({role:cMe,content:V(),id:V().optional(),agentId:V().optional(),sessionId:V().nullish(),tool_call_id:V().optional(),plugin:lMe.optional(),parentId:V().optional(),groupId:V().nullish(),topicId:V().nullish(),threadId:V().nullish(),targetId:V().nullish(),model:V().nullish(),provider:V().nullish(),files:JC(V()).optional(),error:mje.nullish(),traceId:V().optional(),fileChunks:JC(oMe).optional()}).passthrough(),YC({id:V().optional(),toolCallId:V().optional(),type:V().optional(),intervention:eMe.optional(),apiName:V().optional(),arguments:V().optional(),identifier:V().optional(),state:KC().optional(),error:KC().optional(),clientId:V().optional(),userId:V().optional()})})),Dw,dMe,fMe,pMe,mMe,hMe,gMe=o((()=>{uw(),Dw=$C([`never`,`required`,`always`]),dMe=XC([V(),YC({pattern:V(),type:$C([`exact`,`prefix`,`wildcard`,`regex`])})]),fMe=YC({match:QC(V(),dMe).optional(),policy:Dw}),pMe=XC([Dw,JC(fMe)]),YC({action:$C([`approve`,`reject`,`select`]),data:YC({remember:GC().optional(),selected:XC([V(),JC(V())]).optional()}).optional()}),YC({allowList:JC(V()).optional(),approvalMode:$C([`auto-run`,`allow-list`,`manual`,`headless`])}),mMe=YC({description:V(),match:QC(V(),dMe),policy:Dw.optional()}),hMe=JC(mMe),YC({config:pMe.optional(),confirmedHistory:JC(V()).optional(),securityBlacklist:hMe.optional(),toolArgs:QC(V(),KC()).optional(),toolKey:V().optional()})})),_Me=o((()=>{})),Ow,vMe,yMe,bMe,xMe,kw,SMe,CMe=o((()=>{uw(),gMe(),_Me(),Ow=YC({avatar:V().optional(),description:V().optional(),readme:V().optional(),tags:JC(V()).optional(),title:V()}),vMe=$C([`collapsed`,`expand`,`alwaysExpand`]),yMe=YC({default:Dw.optional(),policy:Dw.optional(),type:V()}),bMe=XC([pMe,YC({dynamic:yMe})]),xMe=YC({action:$C([`create`,`update`,`delete`]),resourceType:$C([`document`,`task`])}),kw=YC({defaultTimeoutMs:WC().int().positive().optional(),description:V(),humanIntervention:bMe.optional(),name:V(),ordered:GC().optional(),parameters:QC(V(),KC()),renderDisplayControl:vMe.optional(),serializeBy:V().optional(),url:V().optional(),work:xMe.optional()}),SMe=YC({api:JC(kw),deviceClients:JC($C([`cli`,`desktop`])).optional(),executors:JC($C([`client`,`server`])).optional(),humanIntervention:bMe.optional(),identifier:V(),meta:Ow,systemRole:V(),type:tw(`builtin`).optional()}),YC({discoverable:GC().optional(),hidden:GC().optional(),identifier:V(),manifest:SMe,type:tw(`builtin`)})})),wMe=o((()=>{})),TMe=o((()=>{})),EMe,DMe=o((()=>{uw(),CMe(),EMe=YC({properties:QC(V(),KC()),required:JC(V()).optional(),type:tw(`object`)}),YC({$schema:V().optional(),api:JC(kw),connector:YC({id:V(),identifier:V()}).optional(),connectorLinks:YC({connectorId:V(),param:V()}).optional(),author:V().optional(),createdAt:V().optional(),gateway:V().optional(),homepage:V().optional(),identifier:V(),mcpAppEntrypoints:JC(YC({toolName:V(),title:V(),icon:V().optional()})).optional(),mcpAppOnlyApi:JC(kw).optional(),mcpModelOnlyTools:JC(V()).optional(),meta:Ow,openapi:V().optional(),settings:EMe.optional(),systemRole:V().optional(),type:$C([`default`,`standalone`,`markdown`,`builtin`,`mcp`]).optional(),ui:YC({height:WC().optional(),mode:$C([`iframe`,`module`]).optional(),url:V(),width:WC().optional()}).optional(),version:V().optional()})})),OMe=o((()=>{})),kMe=o((()=>{})),AMe,jMe=o((()=>{uw(),AMe=YC({description:V().optional(),name:V(),parameters:YC({additionalProperties:GC().optional(),properties:QC(V(),KC()),required:JC(V()).optional(),type:tw(`object`)})})})),MMe=o((()=>{CMe(),wMe(),TMe(),gMe(),DMe(),OMe(),kMe(),jMe()})),Aw,NMe,PMe,jw,FMe,Mw,IMe,Nw,Pw,Fw,LMe,RMe,zMe,Iw,BMe,VMe,HMe,UMe,Lw,WMe,GMe=o((()=>{uw(),Aw=1e6,NMe=2e3,PMe=2e3,jw=12e3,FMe=YC({kind:tw(`writing`)}).strict(),Mw=YC({code:V().max(64),message:V(),operation:V().max(64),provider:V().max(64),retryable:GC()}).strict(),IMe=YC({errors:JC(Mw).max(16),evidenceCount:WC().int().nonnegative().max(Aw),failedCount:WC().int().nonnegative().max(Aw),succeededCount:WC().int().nonnegative().max(Aw)}).strict(),IMe.omit({errors:!0}).strip(),Nw=e=>V().trim().min(1).max(e),Pw=Nw(256),Fw=Nw(NMe),LMe=YC({content:Nw(jw),reasoning:Fw,tagline:Pw}).strict(),RMe=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}},zMe=rw(RMe,YC({description:Fw,rank:WC().int().min(0).max(100),title:Pw}).strict()),Iw=e=>JC(zMe).max(e).transform(e=>e.toSorted((e,t)=>t.rank-e.rank)),BMe=YC({composition:YC({identities:Iw(6),interests:Iw(8),lifeStyle:Iw(6),social:Iw(6),working:Iw(6)}).strict(),personaProposal:LMe,profile:YC({domains:JC(Pw).max(8),description:Fw,name:Pw,pronoun:Pw,roles:JC(Pw).max(8),summary:Fw,tagline:Pw}).strict()}).strict(),YC({analysis:BMe,detailedPersona:LMe.optional(),diagnostics:IMe,feedbackRevision:WC().int().nonnegative().max(Aw).default(0),generationRevision:WC().int().nonnegative().max(Aw).default(0),kind:tw(`proposal`),providers:JC(V().max(64)),resultId:V(),sourceFingerprint:V()}).strict(),VMe=YC({content:V().trim().min(1).max(PMe),createdAt:V(),revision:WC().int().positive().max(Aw)}).strict(),HMe=YC({revision:WC().int().nonnegative().max(Aw),turns:JC(VMe).max(16)}).strict(),UMe=YC({completedAt:V().optional(),errors:JC(Mw).max(16),failedCount:WC().int().nonnegative().max(Aw),revision:WC().int().nonnegative().max(Aw),status:$C([`pending`,`running`,`completed`,`failed`]),succeededCount:WC().int().nonnegative().max(Aw)}).strict(),Lw={detailed:ZC(`status`,[YC({status:tw(`running`),updatedAt:V()}).strict(),YC({status:tw(`completed`),updatedAt:V()}).strict(),YC({error:Mw,status:tw(`failed`),updatedAt:V()}).strict()]).optional(),feedbackRevision:WC().int().nonnegative().max(Aw).default(0),generationRevision:WC().int().nonnegative().max(Aw).default(0),sourceFingerprint:V(),updatedAt:V()},WMe=ZC(`status`,[YC({...Lw,resultMessageId:V().optional(),status:tw(`running`)}).strict(),YC({...Lw,resultMessageId:V(),status:tw(`completed`)}).strict(),YC({...Lw,error:Mw,resultMessageId:V().optional(),status:tw(`failed`)}).strict()]),YC({confirmedAt:V().optional(),feedback:HMe.default({revision:0,turns:[]}),generationRevision:WC().int().nonnegative().max(Aw).default(0),id:V(),sources:QC(V().max(64),UMe),writing:WMe.optional()}).strict()})),Rw,KMe,qMe=o((()=>{uw(),GMe(),Rw={Continuation:`continuation`,Eval:`eval`,Isolation:`isolation`,Standalone:`standalone`},KMe=YC({clientMode:GC().optional(),completedAt:V().optional(),duration:WC().optional(),error:KC().optional(),model:V().optional(),onboardingUnderstanding:FMe.optional(),operationId:V().optional(),sourceToolCallId:V().optional(),startedAt:V().optional(),subagentType:V().optional(),totalCost:WC().optional(),totalLlmCalls:WC().optional(),totalMessages:WC().optional(),totalTokens:WC().optional(),totalSteps:WC().optional(),totalToolCalls:WC().optional()}),YC({agentId:V().optional(),groupId:V().optional(),id:V().optional(),metadata:KMe.optional(),parentThreadId:V().optional(),sourceMessageId:V().optional(),title:V().optional(),topicId:V(),type:$C([Rw.Continuation,Rw.Eval,Rw.Standalone,Rw.Isolation])})})),JMe,YMe,zw,XMe,Bw,ZMe,QMe=o((()=>{uw(),pje(),Ew(),uMe(),MMe(),qMe(),JMe=YC({parentThreadId:V().optional(),sourceMessageId:V().optional(),title:V().optional(),type:$C([Rw.Continuation,Rw.Standalone,Rw.Isolation])}),YMe=YC({content:V(),metadata:Tw.optional(),plugin:YC({apiName:V(),arguments:V(),identifier:V(),type:V()}).optional(),role:$C([`assistant`,`tool`]),tool_call_id:V().optional(),tools:JC(nMe).optional()}),zw=e=>V().regex(fje(e)).optional(),YC({agentId:V().optional(),groupId:V().optional(),newAssistantMessage:YC({agentId:V().optional(),id:zw(`messages`),metadata:QC(V(),qC()).optional().transform(qje),model:V().optional(),provider:V().optional()}),newThread:JMe.optional(),newTopic:YC({id:zw(`topics`),metadata:nw().optional(),model:V().optional(),projectId:V().optional(),provider:V().optional(),title:V().optional(),topicMessageIds:JC(V()).optional(),trigger:V().optional()}).optional(),preloadMessages:JC(YMe).optional(),newUserMessage:YC({content:V(),contextSelections:JC(kje).optional(),editorData:QC(V(),qC()).optional(),files:JC(V()).optional(),id:zw(`messages`),metadata:Tw.optional(),pageSelections:JC(jje).optional(),parentId:V().optional()}),sessionId:V().optional(),threadId:V().optional(),topicFilter:YC({excludeStatuses:JC(V()).optional(),excludeTriggers:JC(V()).optional(),includeTriggers:JC(V()).optional(),onlyMine:GC().optional()}).optional(),topicPageSize:WC().int().min(1).max(100).optional(),topicId:V().optional()}),XMe=YC({description:V().optional(),name:V(),schema:YC({$defs:KC().optional(),additionalProperties:GC().optional(),properties:QC(V(),KC()),required:JC(V()).optional(),type:tw(`object`)}),strict:GC().optional()}),YC({metadata:QC(V(),qC()).optional(),messages:JC(KC()),model:V(),provider:V(),schema:XMe.optional(),tools:JC(YC({function:AMe,type:tw(`function`)})).optional(),tracing:YC({tracingId:V().uuid().optional()}).catchall(qC()).optional()}),Bw=XC([V(),JC(qC()),QC(V(),qC())]),ZMe=ZC(`type`,[YC({criteria:YC({false:Bw,true:Bw}).optional(),instructions:Bw,type:tw(`boolean`)}),YC({criteria:QC(V(),Bw.nullable()),instructions:Bw,type:tw(`choice`)}),YC({criteria:JC(Bw).min(1),instructions:Bw,type:tw(`score`)})]),YC({metadata:QC(V(),qC()).optional(),model:V(),provider:V(),questions:QC(V(),ZMe).refine(e=>Object.keys(e).length>0,{message:`A decision request needs at least one question`}),state:Bw,tracing:YC({tracingId:V().uuid().optional()}).catchall(qC()).optional()})})),$Me=o((()=>{uw()})),eNe=o((()=>{})),tNe=o((()=>{})),nNe=o((()=>{})),rNe=o((()=>{})),iNe=o((()=>{})),aNe,oNe=o((()=>{KOe(),aNe=GOe.map(({type:e})=>e),[...WOe.options,...aNe]})),sNe=o((()=>{})),cNe=o((()=>{sNe()})),lNe=o((()=>{})),uNe=o((()=>{})),dNe=o((()=>{})),fNe=o((()=>{})),pNe=o((()=>{})),mNe=o((()=>{})),hNe=o((()=>{})),gNe=o((()=>{})),_Ne=o((()=>{uw(),YC({connected:GC(),cpuCount:WC().int().min(1).max(4096),cpuPercent:WC().min(0).max(100).nullable(),diskTotalBytes:WC().int().min(0).nullish(),diskUsedBytes:WC().int().min(0).nullish(),load1:WC().min(0).nullable(),load5:WC().min(0).nullable(),load15:WC().min(0).nullable(),memoryTotalBytes:WC().int().min(0),memoryUsedBytes:WC().int().min(0),observedAt:WC().int().min(0)})})),vNe=o((()=>{})),yNe=o((()=>{})),bNe=o((()=>{})),xNe=o((()=>{})),SNe=o((()=>{})),CNe=o((()=>{})),wNe=o((()=>{})),TNe=o((()=>{})),ENe=o((()=>{vNe(),yNe(),bNe(),xNe(),SNe(),CNe(),wNe(),TNe()})),DNe=o((()=>{uw(),YC({shareId:V(),topicId:V(),visitorUserId:V()})})),ONe=o((()=>{})),kNe=o((()=>{})),ANe=o((()=>{DNe(),ONe(),kNe()})),jNe=o((()=>{})),MNe=o((()=>{})),NNe=o((()=>{})),PNe=o((()=>{})),FNe=o((()=>{})),INe=o((()=>{})),LNe=o((()=>{})),RNe=o((()=>{})),zNe=o((()=>{})),BNe=o((()=>{uw(),YC({ideal:V().optional(),question:V(),referenceFiles:V().or(JC(V())).optional()}),YC({description:V().optional(),knowledgeBaseId:V(),name:V()})})),VNe=o((()=>{})),HNe=o((()=>{})),UNe=o((()=>{})),WNe=o((()=>{uw(),YC({ideal:V().optional(),question:V(),referenceFiles:V().or(JC(V())).optional()}),YC({datasetId:V(),description:V().optional(),knowledgeBaseId:V(),name:V()})})),GNe=o((()=>{})),KNe=o((()=>{})),qNe=o((()=>{})),JNe,YNe=o((()=>{uw(),CMe(),JNe=YC({api:JC(kw.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:Ow,systemRole:V().optional(),type:$C([`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`),QC(V().min(1).max(255),JNe).refine(e=>Object.entries(e).every(([e,t])=>e===t.identifier),`Tool contract keys must match their identifiers`)})),XNe=o((()=>{PNe(),FNe(),INe(),LNe(),RNe(),zNe(),BNe(),VNe(),HNe(),UNe(),WNe(),GNe(),KNe(),qNe(),YNe()})),ZNe=o((()=>{})),QNe=o((()=>{})),$Ne=o((()=>{})),Vw,ePe,tPe=o((()=>{Vw={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},ePe=[Vw.RemoteServerOffline,Vw.RemoteServerTimeout,Vw.RemoteServerDNSFailed,Vw.RemoteServerConnectionRefused,Vw.RemoteServerCertInvalid,Vw.RemoteServerUnreachable],new Set(ePe)})),nPe,rPe,iPe=o((()=>{uw(),nPe=function(e){return e.Acceptance=`acceptance`,e.All=`all`,e.Generated=`generated`,e.Uploaded=`uploaded`,e}({}),rPe=100,YC({category:V().optional(),filesOnly:GC().optional(),includeContentPreview:GC().optional(),knowledgeBaseId:V().optional(),limit:WC().int().positive().max(rPe).default(50),offset:WC().int().min(0).default(0),parentId:V().nullish(),q:V().nullish(),showFilesInKnowledgeBase:GC().default(!1),sortType:$C([`desc`,`asc`]).optional(),sorter:$C([`custom`,`name`,`createdAt`,`size`,`updatedAt`]).optional(),sourceFilter:ew(nPe).optional(),visibility:$C([`private`,`public`]).optional()})})),aPe,oPe=o((()=>{uw(),aPe=YC({shareId:V(),visitorUserId:V()}),YC({agentShare:aPe.optional(),date:V(),dirname:V(),filename:V(),height:WC().optional(),path:V(),ratio:WC().optional(),width:WC().optional()}),YC({fileType:V(),hash:V().optional(),knowledgeBaseId:V().optional(),metadata:KC().optional(),name:V(),size:WC(),source:V().optional(),url:V().optional()})})),sPe,cPe=o((()=>{iPe(),oPe(),sPe=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(sPe))})),lPe=o((()=>{})),uPe,dPe,fPe,pPe,Hw,mPe,hPe,gPe,_Pe,vPe=o((()=>{uw(),uPe=[`agentEmoji`,`agentName`,`fullName`,`interests`,`customInterests`],dPe=[`agentEmoji`,`agentName`,`fullName`],fPe=[`agentIdentity`,`userIdentity`,`workStyle`,`workContext`,`painPoints`,`summary`],pPe=[`agent_identity`,`user_identity`,`discovery`,`summary`],Hw=V().trim().transform(e=>e.length>0?e:void 0).optional(),mPe=JC(V()).transform(e=>{let t=e.map(e=>e.trim()).filter(e=>e.length>0);return t.length>0?t:void 0}).optional(),$C(uPe),hPe=$C(dPe),gPe=$C(fPe),YC({agentEmoji:Hw,agentName:Hw,customInterests:mPe,fullName:Hw,interests:mPe}).strict(),_Pe=$C(pPe),YC({discoveryUserMessageCount:WC().optional(),finished:GC(),missingStructuredFields:JC(hPe),phase:_Pe,remainingDiscoveryExchanges:WC().optional(),topicId:V().optional(),version:WC()}).strict(),YC({activeTopicId:V().optional(),discoveryStartUserMessageCount:WC().optional(),finishedAt:V().optional(),version:WC()}).strict(),YC({node:gPe,patch:YC({}).passthrough()}).strict()})),yPe,bPe,xPe=o((()=>{uw(),vPe(),yPe=XC([YC({kind:tw(`onboarding`),phase:_Pe}),YC({kind:tw(`chat`)})]),bPe=YC({model:V().min(1),provider:V().min(1)}),YC({hint:yPe.optional(),modelConfig:bPe,threadId:V().optional(),topicId:V().min(1)})})),SPe=o((()=>{})),CPe=o((()=>{})),wPe=o((()=>{})),TPe=o((()=>{})),Uw,EPe,DPe,OPe,kPe,APe,jPe,MPe,NPe,PPe=o((()=>{uw(),Uw=JC(V().trim().min(1)).max(200),EPe=new Set([``,`-`,`—`,`n/a`,`na`,`nil`,`none`,`null`,`undefined`]),DPe=rw(e=>{if(e==null)return;if(typeof e!=`string`)return e;let t=e.trim();if(!(t===``||EPe.has(t.toLowerCase())))return t},V().trim().min(1).optional()),OPe=[`dead_end`,`superseded`,`retry`],kPe=2e3,APe=YC({kind:$C(OPe),lesson:V().trim().min(1).max(kPe),nodeIds:Uw.min(1),reason:V().trim().min(1).max(kPe),title:V().trim().min(1).max(200)}).strict(),jPe=YC({detours:JC(APe).max(20).default([]),findingIds:Uw.default([]),narrative:V().trim().min(1).max(8e3),nodeIds:Uw.default([]),title:V().trim().min(1).max(200),workVersionIds:Uw.default([])}).strict(),MPe=YC({nodeIds:Uw.optional(),reason:V().trim().min(1).max(2e3),title:V().trim().min(1).max(200)}).strict(),NPe=YC({edgeIds:Uw.default([]),nodeIds:Uw.min(1)}).strict(),YC({chapters:JC(jPe).min(1).max(30),deliverableWorkId:DPe,graphCursor:V().trim().min(1),headline:V().trim().min(1).max(500),mainline:NPe.optional(),nextSteps:JC(MPe).max(20).default([])}).strict()})),FPe=o((()=>{})),IPe=o((()=>{})),LPe=o((()=>{})),RPe=o((()=>{})),zPe,BPe,VPe,HPe=o((()=>{uw(),zPe=YC({apiName:V(),arguments:V(),id:V(),identifier:V(),type:tw(`default`)}),BPe=YC({clientId:V(),content:V(),createdAt:V().optional(),metadata:QC(V(),KC()).optional(),model:V().optional(),parentClientId:V().nullish(),plugin:YC({apiName:V(),arguments:V(),identifier:V(),type:V()}).optional(),pluginState:QC(V(),KC()).optional(),provider:V().optional(),reasoning:YC({content:V()}).passthrough().optional(),role:$C([`user`,`assistant`,`tool`]),toolCallId:V().optional(),tools:JC(zPe).optional(),usage:QC(V(),KC()).optional()}),VPe=YC({clientId:V(),messages:JC(BPe),sourceMessageClientId:V().optional(),status:$C([`active`,`completed`,`failed`]).optional(),title:V().optional(),type:$C([`continuation`,`standalone`,`isolation`])}),YC({messages:JC(BPe),metadata:QC(V(),KC()).optional(),sessionId:V(),source:$C([`claude-code`,`codex`]),sourceEndAt:V().optional(),threads:JC(VPe).optional(),title:V().optional(),topicClientId:V(),workingDirectory:V().optional()})})),UPe=o((()=>{})),WPe=o((()=>{})),GPe=o((()=>{})),KPe=o((()=>{})),qPe,JPe=o((()=>{qPe=[`triage`,`backlog`,`unstarted`,`started`],[...qPe]})),YPe=o((()=>{})),XPe=o((()=>{})),ZPe=o((()=>{})),QPe=o((()=>{})),$Pe,eFe,tFe=o((()=>{uw(),$Pe=YC({domain:V().optional(),imageUri:V().optional(),sourceUri:V().optional(),title:V().optional()}),eFe=YC({citations:JC(YC({favicon:V().optional(),id:V().optional(),title:V().optional(),url:V()})).optional(),imageResults:JC($Pe).optional(),imageSearchQueries:JC(V()).optional(),searchQueries:JC(V()).optional()})})),nFe=o((()=>{uw(),tFe(),Ew(),YC({content:V().optional(),editorData:QC(V(),KC()).nullish(),error:mje.nullish(),imageList:JC(Zje).optional(),metadata:Tw.optional(),model:V().optional(),observationId:V().optional(),provider:V().optional(),reasoning:gje.optional(),role:V().optional(),search:eFe.nullish(),toolCalls:JC(tMe).optional(),tools:JC(nMe).nullish(),traceId:V().optional(),usage:ww.optional()}).passthrough()})),rFe=o((()=>{QPe(),nFe()})),iFe=o((()=>{})),aFe=o((()=>{})),oFe=o((()=>{})),sFe=o((()=>{})),cFe=o((()=>{iFe(),aFe(),oFe(),uMe(),sMe(),sFe()})),lFe=o((()=>{Ew(),rFe(),cFe()})),uFe=o((()=>{uw(),YC({avatar:V().optional(),backgroundColor:V().optional(),description:V().optional(),marketIdentifier:V().optional(),name:V().optional(),tags:JC(V()).optional(),title:V().optional()})})),dFe=o((()=>{})),fFe=o((()=>{})),pFe,mFe=o((()=>{uw(),pFe=YC({accessToken:V().optional(),token:V().optional(),type:$C([`none`,`bearer`,`oauth2`])}).optional(),YC({auth:pFe,headers:QC(V(),V()).optional(),identifier:V(),metadata:YC({avatar:V().optional(),description:V().optional()}).optional(),url:V().url()})})),hFe=o((()=>{})),gFe=o((()=>{mFe(),hFe()})),_Fe=o((()=>{})),vFe=o((()=>{uw(),YC({fileIds:JC(V()).optional(),knowledgeIds:JC(V()).optional(),query:V(),topK:WC().optional()})})),yFe=o((()=>{})),bFe=o((()=>{})),xFe=o((()=>{})),SFe=o((()=>{})),CFe=o((()=>{})),wFe=o((()=>{})),TFe=o((()=>{})),EFe,DFe=o((()=>{EFe=function(e){return e.Default=`default`,e.Pinned=`pinned`,e}({})})),OFe=o((()=>{TFe(),DFe()})),kFe,AFe,jFe=o((()=>{kFe=`NO_REPLY`,AFe=[`not_addressed`,`off_topic`,`nothing_to_add`,`duplicate`,`already_handled`,`stand_down`,`unspecified`,`empty_completion`],new RegExp(String.raw`^[\s\x60[(]*${kFe}(?:\s*[::]\s*([a-z_]+))?[\s\x60\])]*[.。]?$`,`i`),new Set(AFe)})),MFe,NFe=o((()=>{uw(),MFe=YC({name:V(),url:V().url().optional()}),YC({author:XC([V(),MFe]).optional(),description:V().min(1,`Skill description is required`),license:V().optional(),name:V().min(1,`Skill name is required`),permissions:JC(V()).optional(),repository:V().url().optional(),sourceUrl:V().url().optional(),version:V().optional()}).passthrough()})),PFe=o((()=>{})),FFe=o((()=>{})),IFe=o((()=>{})),LFe,RFe=o((()=>{LFe=[`#95A2B3`,`#5E6AD2`,`#26B5CE`,`#4CB782`,`#F2C94C`,`#F2994A`,`#EB5757`,`#BB87FC`],LFe[0]})),Ww,zFe=o((()=>{Ww=1440*60*1e3,30*Ww,90*Ww,7*Ww})),BFe=o((()=>{FFe(),IFe(),RFe(),zFe()})),VFe=o((()=>{})),Gw,HFe,UFe,WFe,GFe,KFe,qFe,JFe=o((()=>{uw(),Gw=$C([`chat`,`embedding`,`tts`,`asr`,`image`,`video`,`text2music`,`realtime`,`decision`]),YC({serverDefaultHeterogeneousProfiles:JC(V().min(1)).optional()}).passthrough(),HFe=YC({audio:GC().optional(),functionCall:GC().optional(),imageOutput:GC().optional(),reasoning:GC().optional(),search:GC().optional(),video:GC().optional(),vision:GC().optional()}),UFe=YC({codexMaxReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),deepseekV4GAReasoningEffort:$C([`none`,`low`,`high`,`max`]).optional(),deepseekV4ReasoningEffort:$C([`none`,`high`,`max`]).optional(),effort:$C([`low`,`medium`,`high`,`max`]).optional(),glm5_2ReasoningEffort:$C([`high`,`max`]).optional(),glm5_3ReasoningEffort:$C([`low`,`high`,`max`]).optional(),gpt5_1ReasoningEffort:$C([`none`,`low`,`medium`,`high`]).optional(),gpt5_2ProReasoningEffort:$C([`medium`,`high`,`xhigh`]).optional(),gpt5_2ReasoningEffort:$C([`none`,`low`,`medium`,`high`,`xhigh`]).optional(),gpt5_6ReasoningEffort:$C([`none`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),gpt5ReasoningEffort:$C([`minimal`,`low`,`medium`,`high`]).optional(),gpt6ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),grok4_3ReasoningEffort:$C([`none`,`low`,`medium`,`high`]).optional(),grok4_5ReasoningEffort:$C([`low`,`medium`,`high`]).optional(),grok4_6ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_7ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),grok4_20ReasoningEffort:$C([`low`,`medium`,`high`,`xhigh`]).optional(),hy3ReasoningEffort:$C([`no_think`,`low`,`high`]).optional(),kimiK3ReasoningEffort:$C([`low`,`high`,`max`]).optional(),opus47Effort:$C([`low`,`medium`,`high`,`xhigh`,`max`]).optional(),reasoningEffort:$C([`low`,`medium`,`high`]).optional(),reasoningMode:$C([`standard`,`pro`]).optional(),ring2_6ReasoningEffort:$C([`high`,`xhigh`]).optional(),step3_5ReasoningEffort:$C([`low`,`high`]).optional(),thinkingLevel:$C([`minimal`,`low`,`medium`,`high`]).optional(),thinkingLevel2:$C([`low`,`high`]).optional(),thinkingLevel3:$C([`low`,`medium`,`high`]).optional(),thinkingLevel4:$C([`minimal`,`high`]).optional(),thinkingLevel5:$C([`low`,`medium`,`high`,`xhigh`]).optional()}),Object.keys(UFe.shape),WFe=$C(`reasoningBudgetToken.reasoningBudgetToken32k.reasoningBudgetToken80k.enableReasoning.preserveThinking.enableAdaptiveThinking.disableContextCaching.effort.deepseekV4GAReasoningEffort.deepseekV4ReasoningEffort.qwen38ReasoningEffort.reasoningEffort.reasoningMode.gpt5ReasoningEffort.gpt5_1ReasoningEffort.gpt5_2ReasoningEffort.gpt5_2ProReasoningEffort.gpt5_6ReasoningEffort.gpt6ReasoningEffort.glm5_2ReasoningEffort.glm5_3ReasoningEffort.grok4_20ReasoningEffort.grok4_3ReasoningEffort.grok4_5ReasoningEffort.grok4_6ReasoningEffort.grok4_7ReasoningEffort.hy3ReasoningEffort.kimiK3ReasoningEffort.ring2_6ReasoningEffort.codexMaxReasoningEffort.opus47Effort.step3_5ReasoningEffort.textVerbosity.thinking.thinkingBudget.thinkingLevel.thinkingLevel2.thinkingLevel3.thinkingLevel4.thinkingLevel5.imageAspectRatio.imageAspectRatio2.imageResolution.imageResolution2.urlContext`.split(`.`)),GFe=$C([`tool`,`params`,`internal`]),KFe=$C([`temperature`,`top_p`,`frequency_penalty`,`presence_penalty`]),qFe=YC({disabledParams:JC(KFe).optional(),extendParams:JC(WFe).optional(),searchImpl:GFe.optional(),searchProvider:V().optional(),ttsVoice:V().optional()}),YC({abilities:HFe.optional(),contextWindowTokens:WC().optional(),displayName:V().optional(),id:V(),providerId:V(),releasedAt:V().optional(),settings:qFe.optional(),type:Gw.optional()}),YC({abilities:HFe.optional(),config:YC({deploymentName:V().optional()}).optional(),contextWindowTokens:WC().nullish(),displayName:V().nullish(),settings:qFe.optional(),type:Gw.optional()}),YC({enabled:GC(),id:V(),providerId:V(),source:$C([`builtin`,`custom`,`remote`]).optional(),type:Gw.optional()})})),YFe,Kw,XFe,ZFe,QFe,$Fe,eIe,tIe,nIe=o((()=>{JFe(),uw(),GAe(),qAe(),YFe=YC({claimedAt:V(),expiresAt:V(),id:V()}),Kw=YC({claim:YFe.optional(),createdAt:V(),runAt:V().datetime(),updatedAt:V()}),XFe=Kw.extend({failedAssistantMessageId:V(),kind:tw(`resume_after_rate_limit`),rateLimit:YC({rateLimitType:V().optional(),resetsAt:WC().optional()}).optional(),resume:YC({sessionId:V().optional(),workingDirectory:V().optional()}).optional(),source:tw(`heterogeneous_agent`),userMessageId:V()}),ZFe=Kw.extend({kind:tw(`delayed_start`),model:V().optional(),provider:V().optional(),userMessageId:V()}),YC({baseBranch:V().min(1).max(1024).optional(),deviceId:V().min(1).max(256),path:V().min(1).max(4096),repoType:$C([`git`,`github`]),sourcePath:V().min(1).max(4096)}),QFe=Kw.extend({error:V().optional(),kind:tw(`worktree_start`),operationId:V(),retryable:GC().optional(),userMessageId:V(),waitingForDevice:GC().optional()}),$Fe=ZC(`kind`,[XFe,ZFe,QFe]),YC({claim:YFe.optional(),createdAt:V(),failedAssistantMessageId:V(),kind:vDe().optional(),rateLimit:YC({rateLimitType:V().optional(),resetsAt:WC().optional()}).optional(),reason:tw(`rate_limit`),resume:YC({sessionId:V().optional(),workingDirectory:V().optional()}).optional(),source:tw(`heterogeneous_agent`),updatedAt:V(),userMessageId:V()}),eIe=YC({boundDeviceId:V().optional(),heteroEffort:nw(e=>typeof e==`string`).optional(),heteroSessionBindingKey:V().optional(),heteroSessionBindingKeyByWorkingDirectory:QC(V(),V()).optional(),heteroSessionId:V().optional(),heteroSessionIdByWorkingDirectory:QC(V(),V()).optional(),heteroPermissionMode:$C(KAe).optional(),heteroPermissionModeFallback:$C([`outdatedCli`,`root`]).nullable().optional(),heteroSpeed:$C([`default`,`normal`,`fast`,`ultrafast`]).optional(),model:V().optional(),onboardingFeedback:YC({comment:V().max(500).optional(),rating:$C([`good`,`bad`]),submittedAt:V()}).optional(),onboardingSession:YC({agentIdentityCompletedAt:V().optional(),agentMarketplacePick:YC({categoryHints:JC(V()),installedAgentIds:JC(V()).optional(),requestId:V(),resolvedAt:V(),selectedTemplateIds:JC(V()).optional(),skipReason:V().optional(),skippedAgentIds:JC(V()).optional(),status:$C([`cancelled`,`skipped`,`submitted`])}).optional(),discoveryCompletedAt:V().optional(),finalAgentNames:JC(V()).optional(),finishedAt:V().optional(),lastActiveAt:V().optional(),phase:$C([`agent_identity`,`user_identity`,`discovery`,`summary`]).optional(),startedAt:V().optional(),userIdentityCompletedAt:V().optional(),version:WC().optional()}).optional(),provider:V().optional(),lastSettledOperationId:V().optional(),reasoningConfig:UFe.optional(),repos:JC(V()).optional(),runningOperation:yDe().optional(),taskCallbackReservation:YC({messageId:V(),reservedAt:V()}).nullable().optional(),sandboxDrive:$C([`personal`,`public`]).optional(),sandboxEnvironmentId:V().max(255).optional(),sandboxInstanceId:V().optional(),sandboxWorkingDirectory:V().max(1024).optional(),scheduledRun:$Fe.nullish(),workingDirectory:V().optional(),workingDirectoryConfig:UAe.optional()}),eIe.pick({heteroEffort:!0,heteroSpeed:!0,reasoningConfig:!0}),tIe=[`active`,`running`,`waitingForHuman`,`scheduled`,`failed`,`completed`,`archived`,`unread`],$C(tIe)})),rIe=o((()=>{VFe(),qMe(),nIe()})),iIe=o((()=>{})),aIe=o((()=>{})),oIe=o((()=>{uw(),YC({currentStep:WC().min(1).max(7).optional(),finishedAt:V().optional(),version:WC()})})),sIe=o((()=>{})),cIe,lIe,uIe=o((()=>{uw(),cIe=YC({checked:GC(),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:JC(YC({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(),lIe=YC({code:V().min(1).max(128),providerId:V().min(1).max(128),retryable:GC()}).strict(),YC({completedAt:V().optional(),createdTaskIds:QC(V().max(128),V().max(512)),errors:JC(lIe).max(16),id:V().min(1).max(512),providerIds:JC(V().min(1).max(128)).max(16),recommendations:JC(cIe).max(48),sourceFingerprint:V().min(1).max(2048),status:$C([`pending`,`processing`,`completed`,`partial`,`failed`]),updatedAt:V()}).strict()})),dIe,fIe,pIe,mIe,hIe=o((()=>{uw(),dIe=YC({docsMerged:GC().optional(),moveSettingsToAvatar:GC().optional(),topic:GC().optional(),uploadFileInKnowledgeBase:GC().optional()}),fIe=YC({enableBetterCodingExperience:GC().optional(),enableAgentIdentity:GC().optional(),enableAgentGraphConfig:GC().optional(),enableArtifactDeployment:GC().optional(),enablePageCollab:GC().optional(),enableClaudeCodeSdk:GC().optional(),enableCodexAppServer:GC().optional(),enableDesktopSplitView:GC().optional(),enableHeteroSessionImport:GC().optional(),enableGroupChat:GC().optional(),enableImessage:GC().optional(),enableInputMarkdown:GC().optional(),enableMessageTextSelectionActions:GC().optional(),enableIntegrations:GC().optional(),enableOAuthApps:GC().optional(),enableProjects:GC().optional(),enableSelfLearning:GC().optional(),enableTaskVerify:GC().optional(),enableEvalCapture:GC().optional(),enableTopicBugReport:GC().optional(),enableGoals:GC().optional(),enableTopicAcceptance:GC().optional(),enableDeviceTunnel:GC().optional()}),pIe=YC({acceptOnMerge:GC().optional(),commentOnPrivateRepositories:GC().optional(),commentOnPublicRepositories:GC().optional(),wakeOnCiFailure:GC().optional(),wakeOnReview:GC().optional()}),mIe=YC({github:pIe.optional()}),YC({provider:V(),providerAccountId:V()}),YC({defaultOpenInApp:V().optional(),fontFamily:V().optional(),guide:dIe.optional(),hideSyncAlert:GC().optional(),integration:mIe.optional(),lab:fIe.optional(),lastWorkspaceId:V().nullish(),projectTopicGroupMode:$C([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),sidebarHiddenAgentIds:JC(V()).optional(),sidebarHiddenGroupIds:JC(V()).optional(),terminalFontFamily:V().optional(),telemetry:GC().nullable(),topicGroupMode:$C([`byTime`,`byProject`,`flat`,`byStatus`,`byAgent`,`byDevice`]).optional(),topicIncludeCompleted:GC().optional(),topicSortBy:$C([`createdAt`,`updatedAt`]).optional(),useCmdEnterToSend:GC().optional(),workspace:YC({order:JC(V()).optional()}).optional()}).partial()})),gIe=o((()=>{})),_Ie=o((()=>{})),vIe=o((()=>{})),yIe=o((()=>{})),bIe=o((()=>{})),xIe=o((()=>{})),SIe=o((()=>{})),CIe=o((()=>{})),wIe,qw,TIe=o((()=>{uw(),wIe=QC(V(),QC(V(),GC())),qw=YC({enabled:GC().optional(),items:wIe.optional()}).strict(),YC({content:YC({scheduledTaskSummary:GC().optional()}).strict().optional(),email:qw.optional(),im:qw.extend({platforms:QC(V(),qw.extend({tenantId:V().optional()}).strict()).optional()}).strict().optional(),inbox:qw.optional(),push:qw.optional()}).strict()})),EIe=o((()=>{})),DIe=o((()=>{})),OIe=o((()=>{})),kIe=o((()=>{})),AIe=o((()=>{uw(),gIe(),_Ie(),vIe(),yIe(),bIe(),xIe(),SIe(),CIe(),TIe(),EIe(),DIe(),OIe(),kIe(),YC({defaultAgent:KC().optional(),general:KC().optional(),hotkey:KC().optional(),image:KC().optional(),keyVaults:KC().optional(),languageModel:KC().optional(),market:KC().optional(),memory:KC().optional(),notification:KC().optional(),systemAgent:KC().optional(),tool:KC().optional(),tts:KC().optional()}).passthrough().partial()})),jIe=o((()=>{vPe(),oIe(),sIe(),uIe(),hIe(),AIe()})),MIe=o((()=>{})),NIe=o((()=>{})),PIe=o((()=>{})),FIe=o((()=>{})),IIe,LIe=o((()=>{uw(),IIe=$C([`personal`,`professional`,`demographic`]),YC({description:V().optional(),episodicDate:V().optional(),extractedLabels:JC(V()).optional(),labels:QC(V(),KC()).optional(),relationship:V().optional(),role:V().optional(),type:IIe.optional(),userMemoryId:V().optional()}),YC({description:V().optional(),episodicDate:V().optional(),extractedLabels:JC(V()).optional(),labels:QC(V(),KC()).optional(),relationship:V().optional(),role:V().optional(),type:IIe.optional()})})),RIe,zIe,BIe=o((()=>{RIe=function(e){return e.Application=`application`,e.Item=`item`,e.Knowledge=`knowledge`,e.Other=`other`,e.Person=`person`,e.Place=`place`,e}({}),Object.values(RIe),zIe=function(e){return e.Item=`item`,e.Other=`other`,e.Person=`person`,e.Pet=`pet`,e}({}),Object.values(zIe)})),VIe=o((()=>{})),HIe=o((()=>{})),UIe,WIe,GIe,Jw,KIe,qIe,JIe,YIe=o((()=>{UIe=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(UIe),WIe=function(e){return e.Merge=`merge`,e.Replace=`replace`,e}({}),Object.values(WIe),GIe=function(e){return e.Demographic=`demographic`,e.Personal=`personal`,e.Professional=`professional`,e}({}),Object.values(GIe),Jw=function(e){return e.Activity=`activity`,e.Context=`context`,e.Experience=`experience`,e.Identity=`identity`,e.Preference=`preference`,e}({}),Object.values(Jw),KIe=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(KIe),qIe=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(qIe),JIe=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(JIe)})),XIe=o((()=>{})),Yw,ZIe,QIe,$Ie,eLe,tLe,nLe,rLe,iLe,aLe,oLe,sLe,cLe,lLe=o((()=>{uw(),YIe(),Yw=rw(e=>typeof e==`string`?[e]:e,JC(V().trim().min(1))),ZIe=e=>rw(e=>typeof e==`string`?[e]:e,JC(e)),QIe=$C([`capturedAt`,`createdAt`,`endsAt`,`episodicDate`,`startsAt`,`updatedAt`]),$Ie=YC({activities:WC().int().min(0).optional(),contexts:WC().int().min(0).optional(),experiences:WC().int().min(0).optional(),identities:WC().int().min(0).optional(),preferences:WC().int().min(0).optional()}),eLe=YC({end:lw().optional(),field:QIe.optional(),start:lw().optional()}),tLe=$C([`currentMonth`,`currentWeek`,`currentYear`,`lastMonth`,`lastWeek`,`lastWeekdays`,`lastWeekend`,`lastYear`,`today`,`yesterday`]),nLe=YC({date:lw(),selector:tw(`day`)}),rLe=YC({month:WC().int().min(1).max(12),selector:tw(`month`),year:WC().int().min(1970).max(9999)}),iLe=YC({end:lw().optional(),selector:tw(`range`),start:lw().optional()}).refine(e=>!!(e.start||e.end),{message:`range selector requires start or end`,path:[`start`]}),aLe=YC({selector:tw(`year`),year:WC().int().min(1970).max(9999)}),oLe=$C([`today`,`yesterday`]),sLe=NDe(()=>XC([YC({selector:tLe}),nLe,rLe,YC({anchor:XC([oLe,sLe]),offsetDays:WC().int(),selector:tw(`relativeDay`)}),iLe,aLe])),YC({categories:Yw.optional(),effort:$C([`low`,`medium`,`high`]).optional(),labels:Yw.optional(),layers:ZIe(ew(Jw)).optional(),queries:Yw.optional(),relationships:Yw.optional(),status:Yw.optional(),tags:Yw.optional(),timeIntent:sLe.optional(),timeRange:eLe.optional(),topK:$Ie.optional(),types:Yw.optional()}),cLe=$C([`categories`,`labels`,`relationships`,`roles`,`statuses`,`tags`,`types`]),YC({include:ZIe(cLe).optional(),layers:JC(ew(Jw)).optional(),limit:WC().int().min(1).max(100).optional(),q:V().trim().optional(),timeRange:eLe.optional()})})),uLe=o((()=>{})),dLe=o((()=>{MIe(),NIe(),PIe(),FIe(),LIe(),BIe(),VIe(),HIe(),YIe(),XIe(),lLe(),uLe()})),fLe=o((()=>{})),pLe=o((()=>{})),mLe=o((()=>{pLe()})),hLe=o((()=>{})),gLe=o((()=>{})),_Le=o((()=>{hLe(),gLe()})),vLe,yLe=o((()=>{vLe={github:[`github_issue`,`github_pull_request`],linear:[`linear_document`,`linear_issue`]},new Map(Object.entries(vLe).flatMap(([e,t])=>t.map(t=>[t,e])))})),bLe=o((()=>{})),xLe=o((()=>{uw(),YC({start:WC().finite().nonnegative()}).strict()})),SLe=o((()=>{uw(),YC({preconditions:JC(V().max(4e3)).max(100).optional(),expected:V().max(2e4).optional(),fixtures:JC(YC({id:V().min(1),name:V().min(1),description:V().optional(),resource:YC({type:$C([`file`,`document`]),id:V().min(1)}).optional(),data:QC(V(),qC()).optional()})).max(100).optional(),steps:JC(YC({id:V().min(1),instruction:V().min(1),expected:V().optional(),fixtureIds:JC(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`]})})})),Xw,CLe,wLe=o((()=>{uw(),Xw=YC({height:WC().finite(),width:WC().finite(),x:WC().finite(),y:WC().finite()}),CLe=YC({commit:V().max(200).optional(),context:QC(V().max(100),XC([V().max(500),WC(),GC()])).optional(),env:YC({consoleErrors:JC(V().max(2e3)).max(10),userAgent:V().max(500)}).optional(),intent:$C([`change`,`comment`]),region:Xw.optional(),regionRefs:JC(YC({box:Xw,selector:V().max(2e3),text:V().max(200).optional()}).nullable()).max(6).optional(),route:V().max(500).optional(),scroll:YC({x:WC().finite(),y:WC().finite()}),targets:JC(YC({code:YC({chain:JC(YC({file:V().max(500).optional(),line:WC().int().optional(),name:V().max(200)})).max(5),column:WC().int(),file:V().max(500),line:WC().int()}).optional(),label:V().max(200),rect:Xw,selector:V().max(2e3),text:V().max(200).optional()})).max(8),title:V().max(300).optional(),url:V().url().max(2e3),v:tw(1),viewport:YC({dpr:WC().positive(),height:WC().finite(),width:WC().finite()})}),YC({anchor:CLe.optional(),clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3),parentId:V().trim().min(1).max(64).optional(),screenshot:YC({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`}),YC({note:V().trim().max(2e3).optional(),verdict:$C([`accept`,`send_back`])})})),TLe,Zw,Qw,$w,ELe,DLe,OLe,kLe,ALe,jLe,MLe,NLe=o((()=>{uw(),wLe(),TLe=[`region`,`element`,`sketch`],Zw=WC().finite(),Qw=YC({height:Zw,width:Zw,x:Zw,y:Zw}),$w=CLe.shape,ELe=NDe(()=>YC({children:JC(ELe).max(50),rect:Qw,type:$C([`avatar`,`button`,`card`,`image`,`input`,`text`])})),DLe=YC({commit:$w.commit,context:$w.context,env:$w.env}),OLe=YC({description:V().max(500).optional(),favicon:V().max(2e3).optional(),lang:V().max(35).optional(),title:V().max(300).optional()}),kLe=YC({clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3),context:DLe.optional(),kind:$C(TLe),pageMeta:OLe.optional(),rectDocument:Qw,rectViewport:Qw,regionRefs:$w.regionRefs,regions:JC(Qw).max(6).optional(),routeKey:V().max(500),scroll:YC({x:Zw,y:Zw}),sketch:JC(ELe).max(50).optional(),targets:$w.targets.optional(),url:V().url().max(2e3),viewport:YC({dpr:WC().positive(),height:Zw,width:Zw})}),ALe=64*1024,jLe=YC({dataUrl:V().regex(/^data:image\/(jpeg|webp);base64,/)}),kLe.extend({screenshot:jLe.optional()}).refine(({screenshot:e,...t})=>JSON.stringify(t).length<=ALe,{message:`Mark is too large`}),YC({content:V().trim().min(1).max(4e3).optional(),rectDocument:Qw.optional(),rectViewport:Qw.optional(),regionRefs:$w.regionRefs,regions:JC(Qw).max(6).optional()}).refine(e=>Object.values(e).some(e=>e!==void 0),{message:`Nothing to update`}),YC({agentId:V().trim().min(1).max(255).optional(),feedback:V().trim().max(4e3).optional()}),MLe=[`pass`,`not_fixed`],YC({reason:V().trim().max(2e3).optional(),verdict:$C(MLe)}),YC({clientId:V().trim().min(1).max(255),content:V().trim().min(1).max(4e3)})})),PLe=o((()=>{})),FLe=o((()=>{})),ILe=o((()=>{})),LLe,RLe,zLe,BLe,VLe,HLe,ULe,WLe,GLe,KLe=o((()=>{uw(),LLe=[`new`,`reuse`],RLe=/^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/,zLe=YC({channelId:V().min(1),threadId:V().min(1).optional()}).strict(),BLe=YC({arguments:QC(V(),qC()),delivery:zLe.optional(),eventName:V().min(1),linkId:V().min(1).optional()}).strict(),VLe=YC({cursor:V().nullable().optional(),deliveryStatus:YC({active:GC().optional(),failedSince:V().optional(),lastDeliveryAt:V().optional(),lastError:V().nullable().optional(),retryAfterMs:WC().nonnegative().optional(),throttled:GC().optional()}).optional(),refreshBefore:LOe({offset:!0}).nullable().optional(),remoteSubscriptionId:V().optional(),truncated:GC().optional()}).strict(),HLe=YC({scheme:tw(`standard_webhooks`)}).strict(),ULe=YC({autoApprove:GC(),delivery:zLe.optional(),identifier:V().regex(RLe).optional(),topicMode:$C(LLe),topicId:V().min(1).optional()}).strict(),WLe=YC({}).strict(),GLe=YC({scheme:tw(`bearer_token`)}).strict(),ZC(`kind`,[YC({kind:tw(`mcp_events`),config:BLe,state:VLe,verification:HLe}),YC({kind:tw(`generic`),config:ULe,state:WLe,verification:GLe})])})),qLe=o((()=>{})),JLe=o((()=>{})),YLe=o((()=>{})),XLe=o((()=>{})),ZLe=o((()=>{})),QLe=o((()=>{})),$Le=o((()=>{})),eRe=o((()=>{QLe(),$Le()})),tRe=o((()=>{})),nRe=o((()=>{})),rRe=o((()=>{})),iRe=o((()=>{LAe(),zAe(),BAe(),VAe(),ZAe(),$Ae(),rje(),ije(),aje(),sje(),cje(),lje(),QMe(),$Me(),eNe(),tNe(),nNe(),rNe(),iNe(),oNe(),cNe(),lNe(),uNe(),dNe(),fNe(),pNe(),mNe(),GAe(),hNe(),gNe(),_Ne(),ENe(),ANe(),jNe(),MNe(),pje(),NNe(),XNe(),ZNe(),QNe(),$Ne(),tPe(),cPe(),lPe(),xPe(),SPe(),CPe(),wPe(),TPe(),PPe(),FPe(),IPe(),LPe(),RPe(),HPe(),UPe(),WPe(),GPe(),KPe(),JPe(),YPe(),XPe(),ZPe(),lFe(),uFe(),dFe(),fFe(),gFe(),_Fe(),vFe(),yFe(),bFe(),xFe(),SFe(),tFe(),CFe(),wFe(),OFe(),jFe(),NFe(),PFe(),BFe(),MMe(),rIe(),iIe(),aIe(),GMe(),jIe(),dLe(),fLe(),mLe(),_Le(),yLe(),bLe(),xLe(),SLe(),wLe(),NLe(),yje(),PLe(),FLe(),ILe(),qAe(),KLe(),qLe(),JLe(),YLe(),XLe(),ZLe(),eRe(),GMe(),dLe(),tRe(),nRe(),rRe()})),aRe=o((()=>{})),oRe,eT,sRe=o((()=>{oRe=[`*`,`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(oRe),eT=(e,t)=>({read:e,write:t}),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,null),eT(`knowledge:read`,`knowledge:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,null),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`model:read`,`model:write`),eT(`model:read`,`model:write`),eT(`chat:read`,null),eT(`chat:read`,`chat:write`),eT(`knowledge:read`,`knowledge:write`),eT(`model:read`,`model:write`),eT(`agent:read`,null),eT(`knowledge:read`,`knowledge:write`),eT(`knowledge:read`,`knowledge:write`),eT(`knowledge:read`,`knowledge:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`user:read`,`user:write`),eT(`file:read`,`file:write`),eT(`file:read`,`file:write`),eT(`chat:read`,`chat:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`chat:read`,`chat:write`),eT(`knowledge:read`,`knowledge:write`),eT(`knowledge:read`,`knowledge:write`),eT(`agent:read`,`agent:write`),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`agent:read`,`agent:write`),eT(`knowledge:read`,`knowledge:write`),eT(`user:read`,`user:write`),eT(`chat:read`,`chat:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`chat:read`,null),eT(`chat:read`,null),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,`agent:write`),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`chat:read`,`chat:write`),eT(`file:read`,`file:write`),eT(`usage:read`,null),eT(`user:read`,`user:write`),eT(`user:read`,`user:write`),eT(`user:read`,`user:write`),eT(`agent:read`,`agent:write`),eT(`agent:read`,null),eT(`agent:read`,`agent:write`),eT(`workspace:read`,`workspace:write`),eT(`workspace:read`,null),eT(`workspace:read`,null),eT(`workspace:read`,`workspace:write`)})),tT,cRe=o((()=>{tT=1024*1024,10*tT,10*tT,10*tT,10*tT,50*tT,50*tT,20*tT,5*tT,20*tT,2*tT,100*tT})),lRe=o((()=>{}));function uRe(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=pRe.test(e[0]);dRe.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(fRe,`$1:///`):!r&&!e[0].match(/^\[.*:.*\]/)&&(e[0]=e[0].replace(fRe,`$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 nT(...e){return uRe(Array.from(Array.isArray(e[0])?e[0]:e))}var dRe,fRe,pRe,mRe=o((()=>{dRe=RegExp(`^[^/:\\d][^/:]*:/*$`),fRe=RegExp(`^([^/:\\d][^/:]*):/*`),pRe=/^[^/:]+:\d+(?:[/?#]|$)/})),hRe,rT,gRe,_Re,iT,aT,vRe,yRe,bRe,xRe,SRe,CRe,wRe=o((()=>{mRe(),hRe=`https://app.lobehub.com`,rT=`https://lobehub.com`,gRe=rT,_Re=e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return t===`lobehub.com`||t.endsWith(`.lobehub.com`)}catch{return!1}},iT=`https://github.com/lobehub/lobehub`,nT(iT,`issues/new/choose`),aT=nT(rT,`/docs`),vRe=nT(aT,`/usage`),yRe=nT(aT,`/self-hosting`),nT(yRe,`/server-database`),`${aT}`,nT(vRe,`/plugins/development`),nT(yRe,`/advanced/upstream-sync`),nT(rT,`blog`),nT(iT,`issues/new/choose`),nT(rT,`/privacy`),nT(rT,`/terms`),bRe=`https://github.com/lobehub/lobe-chat-agents`,nT(bRe,`issues/new`),xRe=(e,t)=>`/agent/${e}`,SRe=(e,t,n)=>nT(`/agent`,e,t),CRe=(e,t)=>nT(`/group`,e,t),nT(iT,`releases`),nT(rT,`changelog`),nT(rT,`/downloads`),nT(rT,`/mobile`)})),TRe=o((()=>{wRe()})),ERe=o((()=>{TRe()})),DRe=o((()=>{})),ORe,oT,kRe,ARe,jRe=o((()=>{ORe=e=>e.join(`+`),oT={OpenSettings:`openSettings`,QuickChat:`quickChat`,QuickComposer:`quickComposer`,ShowApp:`showApp`},kRe=[{electronAccelerator:`Alt+Shift+Space`,id:oT.QuickComposer,uiKeys:ORe([`alt`,`shift`,`space`])},{electronAccelerator:``,id:oT.QuickChat,uiKeys:``},{electronAccelerator:``,id:oT.ShowApp,uiKeys:``},{electronAccelerator:`CommandOrControl+,`,id:oT.OpenSettings,nonEditable:!0,uiKeys:ORe([`mod`,`comma`])}],ARe=kRe.map(e=>({id:e.id,keys:e.uiKeys,...e.nonEditable?{nonEditable:!0}:{}})),kRe.reduce((e,t)=>(e[t.id]=t.electronAccelerator,e),{})})),MRe=o((()=>{jRe(),ARe.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),NRe,PRe,FRe,IRe=o((()=>{xw(),NRe={},PRe=Vke,FRe=`/avatars/lobe-ai.png`})),sT=o((()=>{xw()})),LRe,RRe,zRe,BRe,VRe=o((()=>{xw(),IRe(),sT(),LRe={showAllLocaleVoice:!1,ttsService:`openai`,voice:{openai:`alloy`}},RRe={model:yw,provider:bw},zRe={enableAgentMode:!0,enableCompressHistory:!0,enableContextCompression:!0,enableFollowUpChips:!1,enableHistoryCount:!1,enableStaleToolResultTrim:!0,enableStreaming:!0,historyCount:20,reasoningBudgetToken:1024,searchFCModel:RRe,searchMode:`auto`,selfIteration:{enabled:!1}},BRe={chatConfig:zRe,model:yw,openingQuestions:[],params:{frequency_penalty:0,presence_penalty:0,temperature:1,top_p:1},plugins:[],provider:bw,systemRole:``,tts:LRe}})),HRe=o((()=>{})),URe=o((()=>{})),WRe,GRe,KRe,qRe,JRe,YRe,XRe,ZRe,QRe,$Re,eze,tze,nze,rze,ize,aze,oze,sze=o((()=>{WRe=`@lobehub/lobehub`,GRe=`2.3.4`,KRe=`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.`,qRe=[`framework`,`chatbot`,`chatgpt`,`nextjs`,`vercel-ai`,`openai`,`azure-openai`,`visual-model`,`tts`,`stt`],JRe=`https://github.com/lobehub/lobehub`,YRe={url:`https://github.com/lobehub/lobehub/issues/new/choose`},XRe={type:`git`,url:`https://github.com/lobehub/lobehub.git`},ZRe=`LobeHub <i@lobehub.com>`,QRe=[`./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`],$Re=[`packages/*`,`packages/business/*`,`e2e`,`apps/desktop/src/main`,`apps/share`,`apps/workbench`],eze={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`},tze={"@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`},nze=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"}`),rze={"@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`},ize=`pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c`,aze={access:`public`,registry:`https://registry.npmjs.org`},oze={name:WRe,version:GRe,description:KRe,keywords:qRe,homepage:JRe,bugs:YRe,repository:XRe,license:`MIT`,author:ZRe,sideEffects:QRe,workspaces:$Re,scripts:eze,"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:tze,dependencies:nze,devDependencies:rze,packageManager:ize,publishConfig:aze}})),cT,lT,uT=o((()=>{xw(),sze(),cT=oze.version,lT=vw!==`LobeHub`})),dT,fT,pT,mT,hT,cze,lze=o((()=>{uT(),dT=e=>e.join(`+`),fT={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`},pT={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`},mT={Conversation:`conversation`,Essential:`essential`},hT={Chat:`chat`,Files:`files`,Global:`global`,Image:`image`},cze=[{group:mT.Essential,id:pT.CommandPalette,keys:dT([fT.Mod,`k`]),scopes:[hT.Global]},{group:mT.Essential,id:pT.Search,keys:dT([fT.Mod,`j`]),scopes:[hT.Global]},{group:mT.Essential,id:pT.SwitchAgent,keys:dT([fT.Ctrl,fT.Number]),nonEditable:!0,scopes:[hT.Global]},{group:mT.Essential,id:pT.SwitchTab,keys:dT([fT.Mod,fT.Number]),nonEditable:!0,scopes:[hT.Global]},{group:mT.Essential,id:pT.NextTab,keys:dT([fT.Ctrl,fT.Tab]),nonEditable:!0,scopes:[hT.Global]},{group:mT.Essential,id:pT.PrevTab,keys:dT([fT.Ctrl,fT.Shift,fT.Tab]),nonEditable:!0,scopes:[hT.Global]},{group:mT.Essential,id:pT.NavigateToChat,keys:dT([fT.Ctrl,fT.Shift,fT.Backquote]),scopes:[hT.Global]},{group:mT.Essential,id:pT.ToggleLeftPanel,keys:dT([fT.Mod,fT.BracketLeft]),scopes:[hT.Global]},{group:mT.Essential,id:pT.ToggleRightPanel,keys:dT([fT.Mod,fT.BracketRight]),scopes:[hT.Global]},{group:mT.Essential,id:pT.OpenHotkeyHelper,keys:dT([fT.Ctrl,fT.Shift,fT.QuestionMark]),scopes:[hT.Global]},{group:mT.Essential,id:pT.ToggleFavorite,keys:dT([fT.Alt,`f`]),scopes:[hT.Global]},{group:mT.Essential,id:pT.OpenTaskFilter,keys:`f`,scopes:[hT.Global]},{group:mT.Conversation,id:pT.FindInTopic,keys:dT([fT.Mod,`f`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.ToggleTerminalPanel,keys:dT([fT.Ctrl,fT.Backquote]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.OpenChatSettings,keys:dT([fT.Alt,fT.Comma]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.RegenerateMessage,keys:dT([fT.Alt,`r`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.DeleteLastMessage,keys:dT([fT.Alt,`d`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.DeleteAndRegenerateMessage,keys:dT([fT.Alt,fT.Shift,`r`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.SaveTopic,keys:dT([fT.Alt,`n`]),scopes:[hT.Chat]},{group:mT.Conversation,id:pT.EditMessage,keys:dT([fT.Alt,fT.LeftDoubleClick]),nonEditable:!0,scopes:[hT.Chat]},{group:mT.Essential,id:pT.SaveDocument,keys:dT([fT.Mod,`s`]),scopes:[hT.Files]}]})),uze=o((()=>{lze(),cze.reduce((e,t)=>(e[t.id]=t.keys,e),{})})),dze=o((()=>{})),fze=o((()=>{xw(),sT()})),pze=o((()=>{})),mze=o((()=>{})),hze,gT,gze=o((()=>{xw(),fze(),sT(),hze={model:yw,provider:bw},gT={model:eAe,provider:tAe},gT.model,gT.provider,gT.model,gT.provider,gT.model,gT.provider,{...hze},Reflect.get(xAe,`DEFAULT_CHANNEL_ROUTING_MODEL`),Reflect.get(xAe,`DEFAULT_CHANNEL_ROUTING_PROVIDER`)})),_ze=o((()=>{})),vze=o((()=>{})),_T=o((()=>{VRe(),HRe(),URe(),uze(),dze(),fze(),sT(),pze(),mze(),gze(),_ze(),vze()})),yze=o((()=>{_T(),new Date().toISOString()})),bze=o((()=>{})),xze=o((()=>{Object.freeze([])})),Sze=o((()=>{})),Cze,wze,Tze,Eze=o((()=>{Cze=[`.DS_Store`,`Thumbs.db`,`desktop.ini`,`.localized`,`ehthumbs.db`,`ehthumbs_vista.db`,`$RECYCLE.BIN`,`System Volume Information`,`.Spotlight-V100`,`.fseventsd`,`.Trashes`],wze=2*1024*1024*1024-1,`${wze}`,Tze=64*1024*1024,`${Tze}`,[...Cze]})),Dze,Oze=o((()=>{xw(),`${vw}`,Dze=[`amp`,`claude-code`,`codebuddy`,`codex`,`cursor`,`kimi-code`,`opencode`,`pi`,`qoder`],new Set(Dze)})),kze,Aze=o((()=>{kze=[`writing`,`coding`,`design`,`education`,`business`,`marketing`,`product`,`sales`,`operations`,`hr`,`finance-legal`,`creator`,`investing`,`parenting`,`health`,`hobbies`,`personal`],new Set(kze)})),jze=o((()=>{})),Mze=o((()=>{})),Nze=o((()=>{})),Pze=o((()=>{})),Fze=o((()=>{})),Ize=o((()=>{})),Lze,Rze=o((()=>{cr(),Lze=(e,t)=>pn({},e,t,(e,t)=>{if(Array.isArray(e))return t})})),zze,Bze,Vze=o((()=>{IRe(),_T(),Rze(),zze=`agent`,Bze={config:BRe,createdAt:new Date,id:``,meta:NRe,model:BRe.model,type:zze,updatedAt:new Date},Lze(Bze,{id:`inbox`,meta:{avatar:FRe}})})),Hze=o((()=>{})),Uze=o((()=>{})),Wze=o((()=>{})),Gze=o((()=>{})),Kze=o((()=>{})),qze=o((()=>{})),Jze=o((()=>{})),Yze=o((()=>{})),Xze,Zze,Qze=o((()=>{xw(),_T(),Xze={activities:3,contexts:0,experiences:0,preferences:3},Zze={high:{activities:6,contexts:4,experiences:4,preferences:6},low:{activities:2,contexts:0,experiences:0,preferences:2},medium:{...Xze}},Zze.high.contexts})),$ze=o((()=>{})),eBe=o((()=>{})),vT=o((()=>{lxe(),dxe(),fxe(),yxe(),aRe(),sRe(),cRe(),lRe(),ERe(),DRe(),MRe(),jRe(),yze(),bze(),xze(),Sze(),Eze(),Oze(),Aze(),jze(),Mze(),TRe(),Nze(),IRe(),Pze(),Fze(),Ize(),Vze(),_T(),Hze(),Uze(),Wze(),Gze(),Kze(),qze(),Jze(),wRe(),Yze(),Qze(),uT(),$ze(),eBe()}));vT();var yT=[[`LobeHub Cloud`,Bke,`LobeHub Cloud`],[`LobeHub`,vw,`LobeHub`],[`LobeChat`,vw,`LobeHub`],[`Lobe AI`,PRe,`Lobe AI`]].filter(([,e,t])=>e!==t).map(([e,t])=>[e,t]),tBe=new Map(yT),nBe=`Lobe`,rBe=yT.length?RegExp(`(?<!@)(${yT.map(([e])=>e).join(`|`)})`,`g`):void 0,iBe=yT.length>0,aBe=`brandStrings`,oBe=e=>!rBe||!e.includes(nBe)?e:e.replaceAll(rBe,e=>tBe.get(e)??e),sBe={name:aBe,process:e=>typeof e==`string`?oBe(e):e,type:`postProcessor`},cBe=iBe?{postProcess:[aBe]}:{},lBe=e=>iBe?e.use(sBe):e,uBe=e=>{if(!e||typeof e!=`object`)return e;let t=e;return`default`in t?t.default??e:e},dBe=c({default:()=>fBe}),fBe,pBe=o((()=>{fBe={"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