@unieai/code 0.0.13 → 0.0.14

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.
@@ -25841,8 +25841,8 @@ Now that this skill is invoked, you have access to Chrome browser automation too
25841
25841
 
25842
25842
  IMPORTANT: Start by calling mcp__claude-in-chrome__tabs_context_mcp to get information about the user's current browser tabs.
25843
25843
  `;var So=z(()=>{Sm();Xo();ma();ue();Em=Co.map((n)=>`mcp__claude-in-chrome__${n.name}`)});Wi();zm();eh();Ht();Xh();Jr();import{Command as cg,InvalidArgumentError as dg,Option as T}from"@commander-js/extra-typings";import x from"chalk";import{readFileSync as Ja}from"fs";import ug from"lodash-es/mapValues.js";import pg from"lodash-es/pickBy.js";import ft from"lodash-es/uniqBy.js";Wi();Ye();ae();Ye();Ye();lr();Mu();tr();rr();import _u from"lodash-es/memoize.js";Ht();pn();var Oi=!1;function Fi(){if(Oi)return;if(Oi=!0,B(process.env.CLAUDE_CODE_USE_BEDROCK)||B(process.env.CLAUDE_CODE_USE_VERTEX)||B(process.env.CLAUDE_CODE_USE_FOUNDRY)||B(process.env.CLAUDE_CODE_USE_AZURE_OPENAI))return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDE_CODE_CLIENT_CERT||process.env.CLAUDE_CODE_CLIENT_KEY)return;let n=process.env.ANTHROPIC_BASE_URL||mn().BASE_API_URL;fetch(n,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}ae();$e();Q();function Li(){if(process.env.NODE_EXTRA_CA_CERTS)return;let n=xu();if(n)process.env.NODE_EXTRA_CA_CERTS=n,h(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${n}`)}function xu(){try{let e=L()?.env,i=Z("userSettings")?.env;h(`CA certs: Config fallback - globalEnv keys: ${e?Object.keys(e).join(","):"none"}, settingsEnv keys: ${i?Object.keys(i).join(","):"none"}`);let o=i?.NODE_EXTRA_CA_CERTS||e?.NODE_EXTRA_CA_CERTS;if(o)h(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${o}`);return o}catch(n){h(`CA certs: Config fallback failed: ${n}`,{level:"error"});return}}Gi();ae();$e();Ru();$i();Nu();pn();En();Kt();Du();Lu();Pu();Fu();Ou();Iu();var zt=!1,pr=_u(async()=>{let n=Date.now();ce("info","init_started"),v("init_function_start");try{let e=Date.now();ji(),ce("info","init_configs_enabled",{duration_ms:Date.now()-e}),v("init_configs_enabled");let a=Date.now();if(ur(),Li(),ce("info","init_safe_env_vars_applied",{duration_ms:Date.now()-a}),v("init_safe_env_vars_applied"),Qi(),v("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-1kwwcqdn.js"),import("./growthbook-4hx0kbpq.js")]).then(([l,u])=>{l.initialize1PEventLogging(),u.onGrowthBookRefresh(()=>{l.reinitialize1PEventLoggingIfConfigChanged()})}),v("init_after_1p_event_logging"),Ui(),v("init_after_oauth_populate"),Ki(),v("init_after_jetbrains_detection"),Yi(),jt())ar();if(nr())er();v("init_after_remote_settings_check"),Ji();let i=Date.now();h("[init] configureGlobalMTLS starting"),Hi(),ce("info","init_mtls_configured",{duration_ms:Date.now()-i}),h("[init] configureGlobalMTLS complete");let o=Date.now();if(h("[init] configureGlobalAgents starting"),zi(),ce("info","init_proxy_configured",{duration_ms:Date.now()-o}),h("[init] configureGlobalAgents complete"),v("init_network_configured"),Fi(),B(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:l,getUpstreamProxyEnv:u}=await import("./upstreamproxy-34wva0r5.js"),{registerUpstreamProxyEnvFn:p}=await import("./subprocessEnv-b12dkzky.js");p(u),await l()}catch(l){h(`[init] upstreamproxy init failed: ${l instanceof Error?l.message:String(l)}; continuing without proxy`,{level:"warn"})}if(Vi(),Sn(or),Sn(async()=>{let{cleanupSessionTeams:l}=await import("./teamHelpers-rxt9rvmd.js");await l()}),cr()){let l=Date.now();await dr(),ce("info","init_scratchpad_created",{duration_ms:Date.now()-l})}ce("info","init_completed",{duration_ms:Date.now()-n}),v("init_function_end")}catch(e){if(e instanceof qi){if(Ve()){process.stderr.write(`Configuration error in ${e.filePath}: ${e.message}
25844
- `),He(1);return}return import("./InvalidConfigDialog-6spqsgmr.js").then((a)=>a.showInvalidConfigDialog({error:e}))}else throw e}});function Kn(){if(jt()){if(Ve()&&sr())Ut().catch((n)=>{h(`[3P telemetry] Eager telemetry init failed (beta tracing): ${H(n)}`,{level:"error"})});h("[3P telemetry] Waiting for remote managed settings before telemetry init"),ir().then(async()=>{h("[3P telemetry] Remote managed settings loaded, initializing telemetry"),Ne(),await Ut()}).catch((n)=>{h(`[3P telemetry] Telemetry init failed (remote settings path): ${H(n)}`,{level:"error"})})}else Ut().catch((n)=>{h(`[3P telemetry] Telemetry init failed: ${H(n)}`,{level:"error"})})}async function Ut(){if(zt)return;zt=!0;try{await Bu()}catch(n){throw zt=!1,n}}async function Bu(){let{initializeTelemetry:n}=await import("./instrumentation-5jjvsvke.js"),e=await n();if(e)_i(e,(i,o)=>{let l=e?.createCounter(i,o);return{add(u,p={}){let r={...Zi(),...p};l?.add(u,r)}}}),Bi()?.add(1)}tg();import{jsxDEV as mr}from"react/jsx-dev-runtime";async function xn(n,e,a,i){let{App:o}=await import("./App-ncpmz34p.js"),{REPL:l}=await import("./REPL-qyytrhe5.js");await i(n,mr(o,{...e,children:mr(l,{...a},void 0,!1,void 0,this)},void 0,!1,void 0,this))}oa();Jn();Ht();ae();$e();Wu();Qt();hn();jn();Gu();qu();import hr from"axios";import gr from"lodash-es/isEqual.js";import{z as Oe}from"zod";var $u=ze(()=>Oe.object({client_data:Oe.record(Oe.unknown()).nullish(),additional_model_options:Oe.array(Oe.object({model:Oe.string(),name:Oe.string(),description:Oe.string()}).transform(({model:n,name:e,description:a})=>({value:n,label:e,description:a}))).nullish()}));async function Vu(){if(yr())return h("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(Fe()!=="firstParty")return h("[Bootstrap] Skipped: 3P provider"),null;let n=br();if(!(Jt()?.accessToken&&Zt())&&!n)return h("[Bootstrap] Skipped: no usable OAuth or API key"),null;let a=`${mn().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await wr(async()=>{let i=Jt()?.accessToken,o;if(i&&Zt())o={Authorization:`Bearer ${i}`,"anthropic-beta":fr};else if(n)o={"x-api-key":n};else return h("[Bootstrap] No auth available on retry, aborting"),null;h("[Bootstrap] Fetching");let l=await hr.get(a,{headers:{"Content-Type":"application/json","User-Agent":vr(),...o},timeout:5000}),u=$u().safeParse(l.data);if(!u.success)return h(`[Bootstrap] Response failed validation: ${u.error.message}`),null;return h("[Bootstrap] Fetch ok"),u.data})}catch(i){throw h(`[Bootstrap] Fetch failed: ${hr.isAxiosError(i)?i.response?.status??i.code:"unknown"}`),i}}async function kr(){try{let n=await Vu();if(!n)return;let e=n.client_data??null,a=n.additional_model_options??[],i=L();if(gr(i.clientDataCache,e)&&gr(i.additionalModelOptionsCache,a)){h("[Bootstrap] Cache unchanged, skipping write");return}h("[Bootstrap] Cache updated, persisting to disk"),_((o)=>({...o,clientDataCache:e,additionalModelOptionsCache:a}))}catch(n){V(n)}}Gh();rg();ah();tr();rr();Ch();Kh();Ih();ih();Gm();Jn();ae();lh();fh();jm();js();Cr();Qr();Eh();uh();Pn();oe();$e();pn();Cr();var Yu=1000,Zn=new Map;var Hu=[/MaxListenersExceededWarning.*AbortSignal/,/MaxListenersExceededWarning.*EventTarget/];function zu(n){let e=`${n.name}: ${n.message}`;return Hu.some((a)=>a.test(e))}var Qn=null;function Tr(){let n=process.listeners("warning");if(Qn&&n.includes(Qn))return;if(!1)process.removeAllListeners("warning");Qn=(a)=>{try{let i=`${a.name}: ${a.message.slice(0,50)}`,o=Zn.get(i)||0;if(Zn.has(i)||Zn.size<Yu)Zn.set(i,o+1);let l=zu(a);if(f("tengu_node_warning",{is_internal:l?1:0,occurrence_count:o+1,classname:a.name,...process.env.USER_TYPE==="ant"&&{message:a.message}}),B(process.env.CLAUDE_DEBUG))h(`${l?"[Internal Warning]":"[Warning]"} ${a.toString()}`,{level:"warn"})}catch{}},process.on("warning",Qn)}zh();th();oa();oe();oh();Ye();Po();import{resolve as On}from"path";function Uu(n){if(n.type==="prompt")return n.disableNonInteractive!==!0;if(n.type==="local")return n.supportsNonInteractive;return n.supportsNonInteractive===!0}function Xr(n){return n.filter(Uu)}oe();Kt();Ye();import{appendFileSync as up}from"fs";Jr();op();ia();oa();cp();oe();Q();ju();xr();import{c as Ju}from"react/compiler-runtime";Er();import{c as Ku}from"react/compiler-runtime";import{jsxDEV as Ar}from"react/jsx-dev-runtime";function tt(){let n=Ku(1),e;if(n[0]===Symbol.for("react.memo_cache_sentinel"))e=Ar(nt,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",Ar(Sr,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),n[0]=e;else e=n[0];return e}import{jsxDEV as ea}from"react/jsx-dev-runtime";function Rr(n){let e=Ju(13),{serverName:a,onDone:i}=n,o;if(e[0]!==i||e[1]!==a)o=function(A){f("tengu_mcp_dialog_choice",{choice:A});e:switch(A){case"yes":case"yes_all":{let D=(Le()||{}).enabledMcpjsonServers||[];if(!D.includes(a))N("localSettings",{enabledMcpjsonServers:[...D,a]});if(A==="yes_all")N("localSettings",{enableAllProjectMcpServers:!0});i();break e}case"no":{let D=(Le()||{}).disabledMcpjsonServers||[];if(!D.includes(a))N("localSettings",{disabledMcpjsonServers:[...D,a]});i()}}},e[0]=i,e[1]=a,e[2]=o;else o=e[2];let l=o,u=`New MCP server found in .mcp.json: ${a}`,p;if(e[3]!==l)p=()=>l("no"),e[3]=l,e[4]=p;else p=e[4];let y;if(e[5]===Symbol.for("react.memo_cache_sentinel"))y=ea(tt,{},void 0,!1,void 0,this),e[5]=y;else y=e[5];let r;if(e[6]===Symbol.for("react.memo_cache_sentinel"))r=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],e[6]=r;else r=e[6];let t;if(e[7]!==l)t=ea(Ir,{options:r,onChange:(b)=>l(b),onCancel:()=>l("no")},void 0,!1,void 0,this),e[7]=l,e[8]=t;else t=e[8];let c;if(e[9]!==u||e[10]!==p||e[11]!==t)c=ea(at,{title:u,color:"warning",onCancel:p,children:[y,t]},void 0,!0,void 0,this),e[9]=u,e[10]=p,e[11]=t,e[12]=c;else c=e[12];return c}oe();Er();Q();Qu();np();ep();xr();Zu();import{c as tp}from"react/compiler-runtime";import ap from"lodash-es/partition.js";import{jsxDEV as Se,Fragment as rp}from"react/jsx-dev-runtime";function Or(n){let e=tp(21),{serverNames:a,onDone:i}=n,o;if(e[0]!==i||e[1]!==a)o=function(G){let ye=Le()||{},ie=ye.enabledMcpjsonServers||[],De=ye.disabledMcpjsonServers||[],[Xe,Ie]=ap(a,(he)=>G.includes(he));if(f("tengu_mcp_multidialog_choice",{approved:Xe.length,rejected:Ie.length}),Xe.length>0){let he=[...new Set([...ie,...Xe])];N("localSettings",{enabledMcpjsonServers:he})}if(Ie.length>0){let he=[...new Set([...De,...Ie])];N("localSettings",{disabledMcpjsonServers:he})}i()},e[0]=i,e[1]=a,e[2]=o;else o=e[2];let l=o,u;if(e[3]!==i||e[4]!==a)u=()=>{let G=(Le()||{}).disabledMcpjsonServers||[],ye=[...new Set([...G,...a])];N("localSettings",{disabledMcpjsonServers:ye}),i()},e[3]=i,e[4]=a,e[5]=u;else u=e[5];let p=u,y=`${a.length} new MCP servers found in .mcp.json`,r;if(e[6]===Symbol.for("react.memo_cache_sentinel"))r=Se(tt,{},void 0,!1,void 0,this),e[6]=r;else r=e[6];let t;if(e[7]!==a)t=a.map(ip),e[7]=a,e[8]=t;else t=e[8];let c;if(e[9]!==p||e[10]!==l||e[11]!==a||e[12]!==t)c=Se(Nr,{options:t,defaultValue:a,onSubmit:l,onCancel:p,hideIndexes:!0},void 0,!1,void 0,this),e[9]=p,e[10]=l,e[11]=a,e[12]=t,e[13]=c;else c=e[13];let b;if(e[14]!==p||e[15]!==y||e[16]!==c)b=Se(at,{title:y,subtitle:"Select any you wish to enable.",color:"warning",onCancel:p,hideInputGuide:!0,children:[r,c]},void 0,!0,void 0,this),e[14]=p,e[15]=y,e[16]=c,e[17]=b;else b=e[17];let A;if(e[18]===Symbol.for("react.memo_cache_sentinel"))A=Se(Dr,{paddingX:1,children:Se(nt,{dimColor:!0,italic:!0,children:Se(Mr,{children:[Se(na,{shortcut:"Space",action:"select"},void 0,!1,void 0,this),Se(na,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),Se(Pr,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),e[18]=A;else A=e[18];let P;if(e[19]!==b)P=Se(rp,{children:[b,A]},void 0,!0,void 0,this),e[19]=b,e[20]=P;else P=e[20];return P}function ip(n){return{label:n,value:n}}ia();_r();ta();aa();import{jsxDEV as gn}from"react/jsx-dev-runtime";async function Br(n){let{servers:e}=Fr("project"),a=Object.keys(e).filter((i)=>Lr(i)==="pending");if(a.length===0)return;await new Promise((i)=>{let o=()=>void i();if(a.length===1&&a[0]!==void 0){let l=a[0];n.render(gn(In,{children:gn(Ue,{children:gn(Rr,{serverName:l,onDone:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this))}else n.render(gn(In,{children:gn(Ue,{children:gn(Or,{serverNames:a,onDone:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this))})}_r();sp();lp();ae();ae();$e();pn();class ra{frameDurations=[];firstRenderTime;lastRenderTime;record(n){let e=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=e;this.lastRenderTime=e,this.frameDurations.push(n)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let n=this.lastRenderTime-this.firstRenderTime;if(n<=0)return;let a=this.frameDurations.length/(n/1000),i=this.frameDurations.slice().sort((p,y)=>y-p),o=Math.max(0,Math.ceil(i.length*0.01)-1),l=i[o],u=l>0?1000/l:0;return{averageFps:Math.round(a*100)/100,low1PctFps:Math.round(u*100)/100}}}Qr();dp();Q();import{jsxDEV as ke}from"react/jsx-dev-runtime";function pp(){_((n)=>({...n,hasCompletedOnboarding:!0,lastOnboardingVersion:MACRO.VERSION}))}function mp(n,e){return new Promise((a)=>{let i=(o)=>void a(o);n.render(e(i))})}async function Ee(n,e,a){return hp(n,e,{color:"error",beforeExit:a})}async function hp(n,e,a){let{Text:i}=await import("./ink-9n8bszp5.js"),o=a?.color,l=a?.exitCode??1;n.render(o?ke(i,{color:o,children:e},void 0,!1,void 0,this):ke(i,{children:e},void 0,!1,void 0,this)),n.unmount(),await a?.beforeExit?.(),process.exit(l)}function we(n,e,a){return mp(n,(i)=>ke(In,{onChangeAppState:a?.onChangeAppState,children:ke(Ue,{children:e(i)},void 0,!1,void 0,this)},void 0,!1,void 0,this))}async function Ke(n,e){n.render(e),la(),await n.waitUntilExit(),await Ce(0)}async function as(n,e,a,i,o,l){if(B(!1)||process.env.IS_DEMO)return!1;let u=L(),p=!1;if(!u.theme||!u.hasCompletedOnboarding){p=!0;let{Onboarding:y}=await import("./Onboarding-j1m69bqm.js");await we(n,(r)=>ke(y,{onDone:()=>{pp(),r()}},void 0,!1,void 0,this),{onChangeAppState:Rn})}if(!B(process.env.CLAUBBIT)){if(!rt()){let{TrustDialog:r}=await import("./TrustDialog-xtn3kq0n.js");await we(n,(t)=>ke(r,{commands:i,onDone:t},void 0,!1,void 0,this))}qr(!0),Yr(),Vr(),fn();let{errors:y}=es();if(y.length===0)await Br(n);if(await jr()){let r=Kr(await Ur(!0)),{ClaudeMdExternalIncludesDialog:t}=await import("./ClaudeMdExternalIncludesDialog-rrsfavte.js");await we(n,(c)=>ke(t,{onDone:c,isStandaloneDialog:!0,externalIncludes:r},void 0,!1,void 0,this))}}if(ts(),Ne(),setImmediate(()=>Kn()),await Zr()){let{GroveDialog:y}=await import("./Grove-rf9xhe2e.js");if(await we(n,(t)=>ke(y,{showIfAlreadyViewed:!1,location:p?"onboarding":"policy_update_modal",onDone:t},void 0,!1,void 0,this))==="escape")return f("tengu_grove_policy_exited",{}),He(0),!1}if(process.env.ANTHROPIC_API_KEY&&!Wr()){let y=$r(process.env.ANTHROPIC_API_KEY);if(Hr(y)==="new"){let{ApproveApiKey:t}=await import("./ApproveApiKey-fqzjf1j3.js");await we(n,(c)=>ke(t,{customApiKeyTruncated:y,onDone:c},void 0,!1,void 0,this),{onChangeAppState:Rn})}}if((e==="bypassPermissions"||a)&&!it()){let{BypassPermissionsModeDialog:y}=await import("./BypassPermissionsModeDialog-3ksmd8pp.js");await we(n,(r)=>ke(y,{onAccept:r},void 0,!1,void 0,this))}if(o&&!L().hasCompletedClaudeInChromeOnboarding){let{ClaudeInChromeOnboarding:y}=await import("./ClaudeInChromeOnboarding-ckjppjhr.js");await we(n,(r)=>ke(y,{onDone:r},void 0,!1,void 0,this))}return p}function is(n){let e=0,a=Dn(n);if(a.stdin)f("tengu_stdin_interactive",{});let i=new ra,o=ns();Gr(o);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>i.getMetrics(),stats:o,renderOptions:{...a,onFrame:(u)=>{if(i.record(u.durationMs),o.observe("frame_duration_ms",u.durationMs),l&&u.phases){let p=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
25845
- `;up(l,p)}if(zr())return;for(let p of u.flickers){if(p.reason==="resize")continue;let y=Date.now();if(y-e<1000)f("tengu_flicker",{desiredHeight:p.desiredHeight,actualHeight:p.availableHeight,reason:p.reason});e=y}}}}}ia();import{jsxDEV as yn}from"react/jsx-dev-runtime";async function rs(n,e){let{InvalidSettingsDialog:a}=await import("./InvalidSettingsDialog-m6y6esgz.js");return we(n,(i)=>yn(a,{settingsErrors:e.settingsErrors,onContinue:i,onExit:e.onExit},void 0,!1,void 0,this))}async function ss(n){let{TeleportResumeWrapper:e}=await import("./TeleportResumeWrapper-48dsm503.js");return we(n,(a)=>yn(e,{onComplete:a,onCancel:()=>a(null),source:"cliArg"},void 0,!1,void 0,this))}async function os(n,e){let{TeleportRepoMismatchDialog:a}=await import("./TeleportRepoMismatchDialog-01v6e2qz.js");return we(n,(i)=>yn(a,{targetRepo:e.targetRepo,initialPaths:e.initialPaths,onSelectPath:i,onCancel:()=>i(null)},void 0,!1,void 0,this))}async function ls(n,e,a,i){let[o,{ResumeConversation:l},{App:u}]=await Promise.all([a,import("./ResumeConversation-wfhd5xb2.js"),import("./App-ncpmz34p.js")]);await Ke(n,yn(u,{getFpsMetrics:e.getFpsMetrics,stats:e.stats,initialState:e.initialState,children:yn(Ue,{children:yn(l,{...i,worktreePaths:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this))}ch();function cs(){}bh();Kc();ma();function Eo(){if((hs(),K(ms)).registerUpdateConfigSkill(),(Ts(),K(Cs)).registerKeybindingsSkill(),(Fs(),K(Os)).registerVerifySkill(),($s(),K(Ws)).registerDebugSkill(),(zs(),K(Hs)).registerLoremIpsumSkill(),(Zs(),K(Js)).registerSkillifySkill(),(no(),K(eo)).registerRememberSkill(),(io(),K(ao)).registerSimplifySkill(),(mo(),K(po)).registerBatchSkill(),(go(),K(ho)).registerStuckSkill(),(yo(),K(fo)).registerTasteSkills(),(vo(),K(bo)).registerFinanceSkills(),(ko(),K(wo)).registerBrowserHarnessSkills(),bn())(So(),K(Ao)).registerClaudeInChromeSkill()}yh();Rh();Xo();ma();Zm();Bh();Gs();Rm();pa();pn();ig();pa();Dm();import{execa as Pm}from"execa";async function Io(){if(!await xo("gh"))return"not_installed";let{exitCode:e}=await Pm("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return e===0?"authenticated":"not_authenticated"}Wm();hn();Ca();Km();Ym();rl();Zh();Qh();eg();Vh();hh();ph();_h();sg();Um();Q();Lm();Dh();Lh();Po();oe();Mm();async function Mo(n,e){let a=await Do(n),i=Ro(e);for(let o of a){if(o.type!=="prompt")continue;f("tengu_skill_loaded",{_PROTO_skill_name:o.name,skill_source:o.source,skill_loaded_from:o.loadedFrom,skill_budget:i,...o.kind&&{skill_kind:o.kind}})}}qh();xh();import{Option as Om}from"@commander-js/extra-typings";oe();Nm();ta();aa();ya();pn();Pn();function _o(n){n.command("add <name> <commandOrUrl> [args...]").description(`Add an MCP server to Claude Code.
25844
+ `),He(1);return}return import("./InvalidConfigDialog-6spqsgmr.js").then((a)=>a.showInvalidConfigDialog({error:e}))}else throw e}});function Kn(){if(jt()){if(Ve()&&sr())Ut().catch((n)=>{h(`[3P telemetry] Eager telemetry init failed (beta tracing): ${H(n)}`,{level:"error"})});h("[3P telemetry] Waiting for remote managed settings before telemetry init"),ir().then(async()=>{h("[3P telemetry] Remote managed settings loaded, initializing telemetry"),Ne(),await Ut()}).catch((n)=>{h(`[3P telemetry] Telemetry init failed (remote settings path): ${H(n)}`,{level:"error"})})}else Ut().catch((n)=>{h(`[3P telemetry] Telemetry init failed: ${H(n)}`,{level:"error"})})}async function Ut(){if(zt)return;zt=!0;try{await Bu()}catch(n){throw zt=!1,n}}async function Bu(){let{initializeTelemetry:n}=await import("./instrumentation-5jjvsvke.js"),e=await n();if(e)_i(e,(i,o)=>{let l=e?.createCounter(i,o);return{add(u,p={}){let r={...Zi(),...p};l?.add(u,r)}}}),Bi()?.add(1)}tg();import{jsxDEV as mr}from"react/jsx-dev-runtime";async function xn(n,e,a,i){let{App:o}=await import("./App-ncpmz34p.js"),{REPL:l}=await import("./REPL-bpg86z4h.js");await i(n,mr(o,{...e,children:mr(l,{...a},void 0,!1,void 0,this)},void 0,!1,void 0,this))}oa();Jn();Ht();ae();$e();Wu();Qt();hn();jn();Gu();qu();import hr from"axios";import gr from"lodash-es/isEqual.js";import{z as Oe}from"zod";var $u=ze(()=>Oe.object({client_data:Oe.record(Oe.unknown()).nullish(),additional_model_options:Oe.array(Oe.object({model:Oe.string(),name:Oe.string(),description:Oe.string()}).transform(({model:n,name:e,description:a})=>({value:n,label:e,description:a}))).nullish()}));async function Vu(){if(yr())return h("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(Fe()!=="firstParty")return h("[Bootstrap] Skipped: 3P provider"),null;let n=br();if(!(Jt()?.accessToken&&Zt())&&!n)return h("[Bootstrap] Skipped: no usable OAuth or API key"),null;let a=`${mn().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await wr(async()=>{let i=Jt()?.accessToken,o;if(i&&Zt())o={Authorization:`Bearer ${i}`,"anthropic-beta":fr};else if(n)o={"x-api-key":n};else return h("[Bootstrap] No auth available on retry, aborting"),null;h("[Bootstrap] Fetching");let l=await hr.get(a,{headers:{"Content-Type":"application/json","User-Agent":vr(),...o},timeout:5000}),u=$u().safeParse(l.data);if(!u.success)return h(`[Bootstrap] Response failed validation: ${u.error.message}`),null;return h("[Bootstrap] Fetch ok"),u.data})}catch(i){throw h(`[Bootstrap] Fetch failed: ${hr.isAxiosError(i)?i.response?.status??i.code:"unknown"}`),i}}async function kr(){try{let n=await Vu();if(!n)return;let e=n.client_data??null,a=n.additional_model_options??[],i=L();if(gr(i.clientDataCache,e)&&gr(i.additionalModelOptionsCache,a)){h("[Bootstrap] Cache unchanged, skipping write");return}h("[Bootstrap] Cache updated, persisting to disk"),_((o)=>({...o,clientDataCache:e,additionalModelOptionsCache:a}))}catch(n){V(n)}}Gh();rg();ah();tr();rr();Ch();Kh();Ih();ih();Gm();Jn();ae();lh();fh();jm();js();Cr();Qr();Eh();uh();Pn();oe();$e();pn();Cr();var Yu=1000,Zn=new Map;var Hu=[/MaxListenersExceededWarning.*AbortSignal/,/MaxListenersExceededWarning.*EventTarget/];function zu(n){let e=`${n.name}: ${n.message}`;return Hu.some((a)=>a.test(e))}var Qn=null;function Tr(){let n=process.listeners("warning");if(Qn&&n.includes(Qn))return;if(!1)process.removeAllListeners("warning");Qn=(a)=>{try{let i=`${a.name}: ${a.message.slice(0,50)}`,o=Zn.get(i)||0;if(Zn.has(i)||Zn.size<Yu)Zn.set(i,o+1);let l=zu(a);if(f("tengu_node_warning",{is_internal:l?1:0,occurrence_count:o+1,classname:a.name,...process.env.USER_TYPE==="ant"&&{message:a.message}}),B(process.env.CLAUDE_DEBUG))h(`${l?"[Internal Warning]":"[Warning]"} ${a.toString()}`,{level:"warn"})}catch{}},process.on("warning",Qn)}zh();th();oa();oe();oh();Ye();Po();import{resolve as On}from"path";function Uu(n){if(n.type==="prompt")return n.disableNonInteractive!==!0;if(n.type==="local")return n.supportsNonInteractive;return n.supportsNonInteractive===!0}function Xr(n){return n.filter(Uu)}oe();Kt();Ye();import{appendFileSync as up}from"fs";Jr();op();ia();oa();cp();oe();Q();ju();xr();import{c as Ju}from"react/compiler-runtime";Er();import{c as Ku}from"react/compiler-runtime";import{jsxDEV as Ar}from"react/jsx-dev-runtime";function tt(){let n=Ku(1),e;if(n[0]===Symbol.for("react.memo_cache_sentinel"))e=Ar(nt,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",Ar(Sr,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),n[0]=e;else e=n[0];return e}import{jsxDEV as ea}from"react/jsx-dev-runtime";function Rr(n){let e=Ju(13),{serverName:a,onDone:i}=n,o;if(e[0]!==i||e[1]!==a)o=function(A){f("tengu_mcp_dialog_choice",{choice:A});e:switch(A){case"yes":case"yes_all":{let D=(Le()||{}).enabledMcpjsonServers||[];if(!D.includes(a))N("localSettings",{enabledMcpjsonServers:[...D,a]});if(A==="yes_all")N("localSettings",{enableAllProjectMcpServers:!0});i();break e}case"no":{let D=(Le()||{}).disabledMcpjsonServers||[];if(!D.includes(a))N("localSettings",{disabledMcpjsonServers:[...D,a]});i()}}},e[0]=i,e[1]=a,e[2]=o;else o=e[2];let l=o,u=`New MCP server found in .mcp.json: ${a}`,p;if(e[3]!==l)p=()=>l("no"),e[3]=l,e[4]=p;else p=e[4];let y;if(e[5]===Symbol.for("react.memo_cache_sentinel"))y=ea(tt,{},void 0,!1,void 0,this),e[5]=y;else y=e[5];let r;if(e[6]===Symbol.for("react.memo_cache_sentinel"))r=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],e[6]=r;else r=e[6];let t;if(e[7]!==l)t=ea(Ir,{options:r,onChange:(b)=>l(b),onCancel:()=>l("no")},void 0,!1,void 0,this),e[7]=l,e[8]=t;else t=e[8];let c;if(e[9]!==u||e[10]!==p||e[11]!==t)c=ea(at,{title:u,color:"warning",onCancel:p,children:[y,t]},void 0,!0,void 0,this),e[9]=u,e[10]=p,e[11]=t,e[12]=c;else c=e[12];return c}oe();Er();Q();Qu();np();ep();xr();Zu();import{c as tp}from"react/compiler-runtime";import ap from"lodash-es/partition.js";import{jsxDEV as Se,Fragment as rp}from"react/jsx-dev-runtime";function Or(n){let e=tp(21),{serverNames:a,onDone:i}=n,o;if(e[0]!==i||e[1]!==a)o=function(G){let ye=Le()||{},ie=ye.enabledMcpjsonServers||[],De=ye.disabledMcpjsonServers||[],[Xe,Ie]=ap(a,(he)=>G.includes(he));if(f("tengu_mcp_multidialog_choice",{approved:Xe.length,rejected:Ie.length}),Xe.length>0){let he=[...new Set([...ie,...Xe])];N("localSettings",{enabledMcpjsonServers:he})}if(Ie.length>0){let he=[...new Set([...De,...Ie])];N("localSettings",{disabledMcpjsonServers:he})}i()},e[0]=i,e[1]=a,e[2]=o;else o=e[2];let l=o,u;if(e[3]!==i||e[4]!==a)u=()=>{let G=(Le()||{}).disabledMcpjsonServers||[],ye=[...new Set([...G,...a])];N("localSettings",{disabledMcpjsonServers:ye}),i()},e[3]=i,e[4]=a,e[5]=u;else u=e[5];let p=u,y=`${a.length} new MCP servers found in .mcp.json`,r;if(e[6]===Symbol.for("react.memo_cache_sentinel"))r=Se(tt,{},void 0,!1,void 0,this),e[6]=r;else r=e[6];let t;if(e[7]!==a)t=a.map(ip),e[7]=a,e[8]=t;else t=e[8];let c;if(e[9]!==p||e[10]!==l||e[11]!==a||e[12]!==t)c=Se(Nr,{options:t,defaultValue:a,onSubmit:l,onCancel:p,hideIndexes:!0},void 0,!1,void 0,this),e[9]=p,e[10]=l,e[11]=a,e[12]=t,e[13]=c;else c=e[13];let b;if(e[14]!==p||e[15]!==y||e[16]!==c)b=Se(at,{title:y,subtitle:"Select any you wish to enable.",color:"warning",onCancel:p,hideInputGuide:!0,children:[r,c]},void 0,!0,void 0,this),e[14]=p,e[15]=y,e[16]=c,e[17]=b;else b=e[17];let A;if(e[18]===Symbol.for("react.memo_cache_sentinel"))A=Se(Dr,{paddingX:1,children:Se(nt,{dimColor:!0,italic:!0,children:Se(Mr,{children:[Se(na,{shortcut:"Space",action:"select"},void 0,!1,void 0,this),Se(na,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),Se(Pr,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),e[18]=A;else A=e[18];let P;if(e[19]!==b)P=Se(rp,{children:[b,A]},void 0,!0,void 0,this),e[19]=b,e[20]=P;else P=e[20];return P}function ip(n){return{label:n,value:n}}ia();_r();ta();aa();import{jsxDEV as gn}from"react/jsx-dev-runtime";async function Br(n){let{servers:e}=Fr("project"),a=Object.keys(e).filter((i)=>Lr(i)==="pending");if(a.length===0)return;await new Promise((i)=>{let o=()=>void i();if(a.length===1&&a[0]!==void 0){let l=a[0];n.render(gn(In,{children:gn(Ue,{children:gn(Rr,{serverName:l,onDone:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this))}else n.render(gn(In,{children:gn(Ue,{children:gn(Or,{serverNames:a,onDone:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this))})}_r();sp();lp();ae();ae();$e();pn();class ra{frameDurations=[];firstRenderTime;lastRenderTime;record(n){let e=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=e;this.lastRenderTime=e,this.frameDurations.push(n)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let n=this.lastRenderTime-this.firstRenderTime;if(n<=0)return;let a=this.frameDurations.length/(n/1000),i=this.frameDurations.slice().sort((p,y)=>y-p),o=Math.max(0,Math.ceil(i.length*0.01)-1),l=i[o],u=l>0?1000/l:0;return{averageFps:Math.round(a*100)/100,low1PctFps:Math.round(u*100)/100}}}Qr();dp();Q();import{jsxDEV as ke}from"react/jsx-dev-runtime";function pp(){_((n)=>({...n,hasCompletedOnboarding:!0,lastOnboardingVersion:MACRO.VERSION}))}function mp(n,e){return new Promise((a)=>{let i=(o)=>void a(o);n.render(e(i))})}async function Ee(n,e,a){return hp(n,e,{color:"error",beforeExit:a})}async function hp(n,e,a){let{Text:i}=await import("./ink-9n8bszp5.js"),o=a?.color,l=a?.exitCode??1;n.render(o?ke(i,{color:o,children:e},void 0,!1,void 0,this):ke(i,{children:e},void 0,!1,void 0,this)),n.unmount(),await a?.beforeExit?.(),process.exit(l)}function we(n,e,a){return mp(n,(i)=>ke(In,{onChangeAppState:a?.onChangeAppState,children:ke(Ue,{children:e(i)},void 0,!1,void 0,this)},void 0,!1,void 0,this))}async function Ke(n,e){n.render(e),la(),await n.waitUntilExit(),await Ce(0)}async function as(n,e,a,i,o,l){if(B(!1)||process.env.IS_DEMO)return!1;let u=L(),p=!1;if(!u.theme||!u.hasCompletedOnboarding){p=!0;let{Onboarding:y}=await import("./Onboarding-j1m69bqm.js");await we(n,(r)=>ke(y,{onDone:()=>{pp(),r()}},void 0,!1,void 0,this),{onChangeAppState:Rn})}if(!B(process.env.CLAUBBIT)){if(!rt()){let{TrustDialog:r}=await import("./TrustDialog-xtn3kq0n.js");await we(n,(t)=>ke(r,{commands:i,onDone:t},void 0,!1,void 0,this))}qr(!0),Yr(),Vr(),fn();let{errors:y}=es();if(y.length===0)await Br(n);if(await jr()){let r=Kr(await Ur(!0)),{ClaudeMdExternalIncludesDialog:t}=await import("./ClaudeMdExternalIncludesDialog-rrsfavte.js");await we(n,(c)=>ke(t,{onDone:c,isStandaloneDialog:!0,externalIncludes:r},void 0,!1,void 0,this))}}if(ts(),Ne(),setImmediate(()=>Kn()),await Zr()){let{GroveDialog:y}=await import("./Grove-rf9xhe2e.js");if(await we(n,(t)=>ke(y,{showIfAlreadyViewed:!1,location:p?"onboarding":"policy_update_modal",onDone:t},void 0,!1,void 0,this))==="escape")return f("tengu_grove_policy_exited",{}),He(0),!1}if(process.env.ANTHROPIC_API_KEY&&!Wr()){let y=$r(process.env.ANTHROPIC_API_KEY);if(Hr(y)==="new"){let{ApproveApiKey:t}=await import("./ApproveApiKey-fqzjf1j3.js");await we(n,(c)=>ke(t,{customApiKeyTruncated:y,onDone:c},void 0,!1,void 0,this),{onChangeAppState:Rn})}}if((e==="bypassPermissions"||a)&&!it()){let{BypassPermissionsModeDialog:y}=await import("./BypassPermissionsModeDialog-3ksmd8pp.js");await we(n,(r)=>ke(y,{onAccept:r},void 0,!1,void 0,this))}if(o&&!L().hasCompletedClaudeInChromeOnboarding){let{ClaudeInChromeOnboarding:y}=await import("./ClaudeInChromeOnboarding-ckjppjhr.js");await we(n,(r)=>ke(y,{onDone:r},void 0,!1,void 0,this))}return p}function is(n){let e=0,a=Dn(n);if(a.stdin)f("tengu_stdin_interactive",{});let i=new ra,o=ns();Gr(o);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>i.getMetrics(),stats:o,renderOptions:{...a,onFrame:(u)=>{if(i.record(u.durationMs),o.observe("frame_duration_ms",u.durationMs),l&&u.phases){let p=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
25845
+ `;up(l,p)}if(zr())return;for(let p of u.flickers){if(p.reason==="resize")continue;let y=Date.now();if(y-e<1000)f("tengu_flicker",{desiredHeight:p.desiredHeight,actualHeight:p.availableHeight,reason:p.reason});e=y}}}}}ia();import{jsxDEV as yn}from"react/jsx-dev-runtime";async function rs(n,e){let{InvalidSettingsDialog:a}=await import("./InvalidSettingsDialog-m6y6esgz.js");return we(n,(i)=>yn(a,{settingsErrors:e.settingsErrors,onContinue:i,onExit:e.onExit},void 0,!1,void 0,this))}async function ss(n){let{TeleportResumeWrapper:e}=await import("./TeleportResumeWrapper-48dsm503.js");return we(n,(a)=>yn(e,{onComplete:a,onCancel:()=>a(null),source:"cliArg"},void 0,!1,void 0,this))}async function os(n,e){let{TeleportRepoMismatchDialog:a}=await import("./TeleportRepoMismatchDialog-01v6e2qz.js");return we(n,(i)=>yn(a,{targetRepo:e.targetRepo,initialPaths:e.initialPaths,onSelectPath:i,onCancel:()=>i(null)},void 0,!1,void 0,this))}async function ls(n,e,a,i){let[o,{ResumeConversation:l},{App:u}]=await Promise.all([a,import("./ResumeConversation-ymc529y6.js"),import("./App-ncpmz34p.js")]);await Ke(n,yn(u,{getFpsMetrics:e.getFpsMetrics,stats:e.stats,initialState:e.initialState,children:yn(Ue,{children:yn(l,{...i,worktreePaths:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this))}ch();function cs(){}bh();Kc();ma();function Eo(){if((hs(),K(ms)).registerUpdateConfigSkill(),(Ts(),K(Cs)).registerKeybindingsSkill(),(Fs(),K(Os)).registerVerifySkill(),($s(),K(Ws)).registerDebugSkill(),(zs(),K(Hs)).registerLoremIpsumSkill(),(Zs(),K(Js)).registerSkillifySkill(),(no(),K(eo)).registerRememberSkill(),(io(),K(ao)).registerSimplifySkill(),(mo(),K(po)).registerBatchSkill(),(go(),K(ho)).registerStuckSkill(),(yo(),K(fo)).registerTasteSkills(),(vo(),K(bo)).registerFinanceSkills(),(ko(),K(wo)).registerBrowserHarnessSkills(),bn())(So(),K(Ao)).registerClaudeInChromeSkill()}yh();Rh();Xo();ma();Zm();Bh();Gs();Rm();pa();pn();ig();pa();Dm();import{execa as Pm}from"execa";async function Io(){if(!await xo("gh"))return"not_installed";let{exitCode:e}=await Pm("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return e===0?"authenticated":"not_authenticated"}Wm();hn();Ca();Km();Ym();rl();Zh();Qh();eg();Vh();hh();ph();_h();sg();Um();Q();Lm();Dh();Lh();Po();oe();Mm();async function Mo(n,e){let a=await Do(n),i=Ro(e);for(let o of a){if(o.type!=="prompt")continue;f("tengu_skill_loaded",{_PROTO_skill_name:o.name,skill_source:o.source,skill_loaded_from:o.loadedFrom,skill_budget:i,...o.kind&&{skill_kind:o.kind}})}}qh();xh();import{Option as Om}from"@commander-js/extra-typings";oe();Nm();ta();aa();ya();pn();Pn();function _o(n){n.command("add <name> <commandOrUrl> [args...]").description(`Add an MCP server to Claude Code.
25846
25846
 
25847
25847
  Examples:
25848
25848
  # Add HTTP server:
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ida as A}from"./chunks/cli-qwx84m9c.js";process.env.COREPACK_ENABLE_AUTO_PIN="0";if(process.env.CLAUDE_CODE_REMOTE==="true"){let q=process.env.NODE_OPTIONS||"";process.env.NODE_OPTIONS=q?`${q} --max-old-space-size=8192`:"--max-old-space-size=8192"}async function Q(){let q=process.argv.slice(2);if(q.length===1&&(q[0]==="--version"||q[0]==="-v"||q[0]==="-V")){console.log(`${MACRO.VERSION} (UnieAI Code)`);return}let{profileCheckpoint:B}=await import("./chunks/startupProfiler-wmf8nvfd.js");if(B("cli_entry"),process.argv[2]==="--claude-in-chrome-mcp"){B("cli_claude_in_chrome_mcp_path");let{runClaudeInChromeMcpServer:z}=await import("./chunks/mcpServer-f90a93nt.js");await z();return}else if(process.argv[2]==="--chrome-native-host"){B("cli_chrome_native_host_path");let{runChromeNativeHost:z}=await import("./chunks/chromeNativeHost-jsntnc29.js");await z();return}else if(process.argv[2]==="--computer-use-mcp"){B("cli_computer_use_mcp_path");let{runComputerUseMcpServer:z}=await import("./chunks/mcpServer-v1dy489g.js");await z();return}if(!1)switch(q[0]){case"ps":case"logs":case"attach":case"kill":default:}if((q.includes("--tmux")||q.includes("--tmux=classic"))&&(q.includes("-w")||q.includes("--worktree")||q.some((z)=>z.startsWith("--worktree=")))){B("cli_tmux_worktree_fast_path");let{enableConfigs:z}=await import("./chunks/config-txzzncm9.js");z();let{isWorktreeModeEnabled:F}=await import("./chunks/worktreeModeEnabled-8ndm5yfs.js");if(F()){let{execIntoTmuxWorktree:J}=await import("./chunks/worktree-xjxz4ndt.js"),G=await J(q);if(G.handled)return;if(G.error){let{exitWithError:K}=await import("./chunks/process-n5355p53.js");K(G.error)}}}if(q.length===1&&(q[0]==="--update"||q[0]==="--upgrade"))process.argv=[process.argv[0],process.argv[1],"update"];if(q.includes("--bare"))process.env.CLAUDE_CODE_SIMPLE="1";let{startCapturingEarlyInput:L}=await import("./chunks/earlyInput-e8zh4d2d.js");L(),B("cli_before_main_import");let{main:O}=await import("./chunks/main-07p6q3f9.js");B("cli_after_main_import"),await O(),B("cli_after_main_complete")}Q();
2
+ import{ida as A}from"./chunks/cli-qwx84m9c.js";process.env.COREPACK_ENABLE_AUTO_PIN="0";if(process.env.CLAUDE_CODE_REMOTE==="true"){let q=process.env.NODE_OPTIONS||"";process.env.NODE_OPTIONS=q?`${q} --max-old-space-size=8192`:"--max-old-space-size=8192"}async function Q(){let q=process.argv.slice(2);if(q.length===1&&(q[0]==="--version"||q[0]==="-v"||q[0]==="-V")){console.log(`${MACRO.VERSION} (UnieAI Code)`);return}let{profileCheckpoint:B}=await import("./chunks/startupProfiler-wmf8nvfd.js");if(B("cli_entry"),process.argv[2]==="--claude-in-chrome-mcp"){B("cli_claude_in_chrome_mcp_path");let{runClaudeInChromeMcpServer:z}=await import("./chunks/mcpServer-f90a93nt.js");await z();return}else if(process.argv[2]==="--chrome-native-host"){B("cli_chrome_native_host_path");let{runChromeNativeHost:z}=await import("./chunks/chromeNativeHost-jsntnc29.js");await z();return}else if(process.argv[2]==="--computer-use-mcp"){B("cli_computer_use_mcp_path");let{runComputerUseMcpServer:z}=await import("./chunks/mcpServer-v1dy489g.js");await z();return}if(!1)switch(q[0]){case"ps":case"logs":case"attach":case"kill":default:}if((q.includes("--tmux")||q.includes("--tmux=classic"))&&(q.includes("-w")||q.includes("--worktree")||q.some((z)=>z.startsWith("--worktree=")))){B("cli_tmux_worktree_fast_path");let{enableConfigs:z}=await import("./chunks/config-txzzncm9.js");z();let{isWorktreeModeEnabled:F}=await import("./chunks/worktreeModeEnabled-8ndm5yfs.js");if(F()){let{execIntoTmuxWorktree:J}=await import("./chunks/worktree-xjxz4ndt.js"),G=await J(q);if(G.handled)return;if(G.error){let{exitWithError:K}=await import("./chunks/process-n5355p53.js");K(G.error)}}}if(q.length===1&&(q[0]==="--update"||q[0]==="--upgrade"))process.argv=[process.argv[0],process.argv[1],"update"];if(q.includes("--bare"))process.env.CLAUDE_CODE_SIMPLE="1";let{startCapturingEarlyInput:L}=await import("./chunks/earlyInput-e8zh4d2d.js");L(),B("cli_before_main_import");let{main:O}=await import("./chunks/main-6h6y0rzf.js");B("cli_after_main_import"),await O(),B("cli_after_main_complete")}Q();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unieai/code",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"