"use strict";exports.id=264,exports.ids=[264],exports.modules={"./src/commands/about.ts"(e,t,l){l.r(t),l.d(t,{gatherAboutInfo:()=>c,handleAbout:()=>m});var n=l("node:os"),s=l.n(n),a=l("../proto/dist/generated/aiserver/v1/dashboard_pb.js"),o=l("../../../../../../../../../../private/tmp/buildkite-job-019fcd9f-5990-4587-a03d-2002fa32284c/agent-cli-mac-macos-arm64-019fcd9f-5990-4587-a03d-2002fa32284c.ZeeOrv1W/pnpm-virtual-store/chalk@5.6.2/node_modules/chalk/source/index.js"),r=l("./src/console-io.ts"),i=l("./src/state/session.ts"),u=l("./src/utils/terminal-environment.ts"),d=function(e,t,l,n){return new(l||(l=Promise))((function(s,a){function o(e){try{i(n.next(e))}catch(e){a(e)}}function r(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?s(e.value):(t=e.value,t instanceof l?t:new l((function(e){e(t)}))).then(o,r)}i((n=n.apply(e,t||[])).next())}))};function c(e,t,l){return d(this,void 0,void 0,(function*(){var n,o,r,d,c,m,v;const g=null!=="2026.08.04-aaa8809"?"2026.08.04-aaa8809":"unknown",f=t.get(),p=null!==(d=null!==(o=null===(n=f.model)||void 0===n?void 0:n.displayName)&&void 0!==o?o:null===(r=f.model)||void 0===r?void 0:r.modelId)&&void 0!==d?d:"Auto",h=s().platform(),b=s().arch(),q=(0,u.detectTerminalProgram)(),I=(0,u.detectShell)(),R=i.d.getLastParentAgentRequestId();let y=null,A=null;try{const t=yield e.getAccessToken(),n=yield e.getRefreshToken();if(t&&n){try{y=null!==(c=(yield l.getMe(new a.GetMeRequest({}))).email)&&void 0!==c?c:null}catch(e){}try{A=null!==(v=null===(m=(yield l.getPlanInfo(new a.GetPlanInfoRequest({}))).planInfo)||void 0===m?void 0:m.planName)&&void 0!==v?v:null}catch(e){}}}catch(e){}return{cliVersion:g,model:p,subscriptionTier:A,osPlatform:h,osArch:b,userEmail:y,terminalProgram:q,shell:I,lastRequestId:R}}))}function m(e,t,l){return d(this,arguments,void 0,(function*(e,t,l,n={}){var s,a;const i=null!==(s=n.format)&&void 0!==s?s:"text";let u=0;try{const n=yield c(e,t,l);"json"===i?(0,r.OT)(JSON.stringify(n,null,2)):(0,r.OT)(function(e){var t,l;const n=[{label:"CLI Version",value:e.cliVersion},{label:"Model",value:e.model},{label:"Subscription Tier",value:null!==(t=e.subscriptionTier)&&void 0!==t?t:"Unknown"},{label:"OS",value:`${e.osPlatform} (${e.osArch})`},{label:"Terminal",value:e.terminalProgram},{label:"Shell",value:e.shell}];return e.lastRequestId&&n.push({label:"Last Request ID",value:e.lastRequestId}),n.push({label:"User Email",value:null!==(l=e.userEmail)&&void 0!==l?l:"Not logged in"}),`${o.Ay.bold.cyan("About Cursor CLI")}\n\n${n.map((e=>`${o.Ay.dim(e.label.padEnd(20))}${e.value}`)).join("\n")}`}(n))}catch(e){u=1;const t=String(e&&"object"==typeof e&&"message"in e&&null!==(a=e.message)&&void 0!==a?a:e);"json"===i?(0,r.OT)(JSON.stringify({status:"error",message:`Failed to get about info: ${t}`},null,2)):(0,r.p2)(o.Ay.red(`Failed to get about info: ${t}`))}finally{process.exit(u)}}))}},"./src/state/session.ts"(e,t,l){l.d(t,{d:()=>s});const n=Object.seal({lastRequestId:null,lastParentAgentRequestId:null}),s=Object.seal({recordLastRequest(e){n.lastRequestId=e},recordLastParentAgentRequest(e){n.lastParentAgentRequestId=e},recordRequestFromMiddleware(e){n.lastRequestId=e.requestId,e.inner.header.get("x-parent-request-id")||(n.lastParentAgentRequestId=e.requestId)},getLastRequestId:()=>n.lastRequestId,getLastParentAgentRequestId:()=>n.lastParentAgentRequestId,clearLastRequest(){n.lastRequestId=null,n.lastParentAgentRequestId=null}})}};