import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";import{r as n}from"./DOqzs8kl2.js";var r=e(t(),1),i=`device-id`,a=null;function o(){if(a!==null)return a;let e=(0,r.join)(n(),i);if((0,r.existsSync)(e))try{let t=(0,r.readFileSync)(e,`utf-8`).trim();if(t.length>0)return a=t,t}catch{}let t=(0,r.randomUUID)();try{let n=(0,r.dirname)(e);(0,r.existsSync)(n)||(0,r.mkdirSync)(n,{recursive:!0});let i=`${e}.tmp.${process.pid}`;(0,r.writeFileSync)(i,t,{mode:384}),(0,r.renameSync)(i,e)}catch{}return a=t,t}var s=`https://api.kimi.com/coding`,c=`kimi-k2-coding`;function l(){return{"X-Msh-Platform":`cleo`,"X-Msh-Version":`1`,"X-Msh-Device-Name":`cleo-cli`,"X-Msh-Device-Model":`cleo`,"X-Msh-Os-Version":process.version,"X-Msh-Device-Id":o()}}function u(e){return e.startsWith(`sk-kimi-`)}var d={name:`kimi-code`,displayName:`Kimi Code (Moonshot)`,authTypes:[`api_key`,`oauth`],baseUrl:s,defaultModel:c,aliases:[`kimi`,`moonshot-coding`,`kimi-coding`],defaultHeaders:l(),envVars:[`KIMI_CODE_API_KEY`,`KIMI_API_KEY`],buildApiKwargsExtras(){return{reasoning_effort:`high`}}};export{u as n,d as r,l as t};