vercel 64.3.1 → 64.4.0

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.
Files changed (49) hide show
  1. package/dist/chunks/{add-RFCYPSPS.js → add-FRVZLYB5.js} +1 -1
  2. package/dist/chunks/{build-SE3QLNVF.js → build-F5GOX2EV.js} +1 -1
  3. package/dist/chunks/{chunk-KGXW36FQ.js → chunk-6RVMAWKT.js} +1 -1
  4. package/dist/chunks/{chunk-CN3IVZJO.js → chunk-7NNENHGN.js} +1 -1
  5. package/dist/chunks/chunk-BFRDBBSO.js +7 -0
  6. package/dist/chunks/{chunk-26Z4U6G4.js → chunk-DWEDXCBK.js} +1 -1
  7. package/dist/chunks/chunk-NLCTF4EJ.js +14 -0
  8. package/dist/chunks/{chunk-YUYCSDCO.js → chunk-OXAPCSYY.js} +1 -1
  9. package/dist/chunks/{chunk-BTCKMXWW.js → chunk-UQIVF4Q2.js} +1 -1
  10. package/dist/chunks/chunk-XXCWQPAH.js +7 -0
  11. package/dist/chunks/{chunk-VVAZC5IO.js → chunk-ZVTI6BRR.js} +1 -1
  12. package/dist/chunks/{config-6YWGF4CO.js → config-AZ2O2E4R.js} +1 -1
  13. package/dist/chunks/{config-VAOXMKVX.js → config-D22GD5IM.js} +1 -1
  14. package/dist/chunks/{delete-FEUSV3JO.js → delete-4JCBFL7Y.js} +1 -1
  15. package/dist/chunks/{delete-YW2NH7VG.js → delete-UOY7IFZV.js} +1 -1
  16. package/dist/chunks/{disable-KA6PS2CZ.js → disable-Q5BTSVR7.js} +1 -1
  17. package/dist/chunks/{discard-ZNUPAJTQ.js → discard-5LQP6CPX.js} +1 -1
  18. package/dist/chunks/{edit-D7VE55ZF.js → edit-3XGKBSUZ.js} +2 -2
  19. package/dist/chunks/edit-R5X24DJJ.js +8 -0
  20. package/dist/chunks/{enable-Q4OCTJIJ.js → enable-V2IPH6TD.js} +1 -1
  21. package/dist/chunks/{export-UX6JVWOD.js → export-WLJE6AJW.js} +1 -1
  22. package/dist/chunks/{inspect-UPXTGUJQ.js → inspect-DZMXSBMA.js} +1 -1
  23. package/dist/chunks/{inspect-YAMAGNIW.js → inspect-VVYQWFTM.js} +1 -1
  24. package/dist/chunks/{list-FDYB6GHF.js → list-DXOVBT4F.js} +1 -1
  25. package/dist/chunks/{login-XYYNIAMM.js → login-XPUGYRGM.js} +1 -1
  26. package/dist/chunks/{ls-MO3R46TQ.js → ls-PF2XG6UU.js} +1 -1
  27. package/dist/chunks/notifications-WUCV63TE.js +7 -0
  28. package/dist/chunks/{open-YPOEUM3S.js → open-QJE5QER2.js} +1 -1
  29. package/dist/chunks/{publish-CATCXJZG.js → publish-XR24NSTQ.js} +1 -1
  30. package/dist/chunks/{push-KZZE3AQ3.js → push-YOAY5F5X.js} +1 -1
  31. package/dist/chunks/{reorder-XU55LOZ5.js → reorder-TQGSMCBZ.js} +1 -1
  32. package/dist/chunks/{reply-B2XOCSZD.js → reply-G4EVGJQ3.js} +1 -1
  33. package/dist/chunks/{resolve-H4BZ2QI3.js → resolve-SNM6MK5J.js} +1 -1
  34. package/dist/chunks/{restore-AJLS2N6C.js → restore-3NDP224I.js} +1 -1
  35. package/dist/chunks/{rm-ZQUVOC3V.js → rm-REZG7TP4.js} +1 -1
  36. package/dist/chunks/{routes-TCMUHSJF.js → routes-LK2HUGAK.js} +1 -1
  37. package/dist/chunks/{rules-SVLVB6YB.js → rules-XSLHADBV.js} +1 -1
  38. package/dist/commands/deploy/index.js +11 -11
  39. package/dist/commands/env/index.js +1 -1
  40. package/dist/commands/link/index.js +1 -1
  41. package/dist/commands-bulk.js +27 -26
  42. package/dist/index.js +1 -1
  43. package/dist/version.mjs +1 -1
  44. package/package.json +19 -19
  45. package/dist/chunks/chunk-2FHICLHJ.js +0 -7
  46. package/dist/chunks/chunk-H7CRPXOA.js +0 -14
  47. package/dist/chunks/chunk-ZE53XHAY.js +0 -7
  48. package/dist/chunks/edit-YTYYBVZN.js +0 -8
  49. package/dist/chunks/notifications-TDSFYYNB.js +0 -7
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{help}from"./chunks/chunk-GWB27IAS.js";import{checkTelemetryStatus,earlyGetConfig,exitWithUnexpectedError,getDirectBuildFallbackAttributes,getSentry,handleUnexpectedError,installProcessGuards,isOutputDebugEnabled,registerUnexpectedErrorHandlers,reportError}from"./chunks/chunk-FLBI6DY2.js";import{BUILD_LABEL}from"./chunks/chunk-WKZ6JSGZ.js";import{RootTelemetryClient,box,canAutoUpdate,executeAutomaticUpgrade,executeUpgrade,handleCommandTypo,hasAutoUpdatePreference,printCommandHelp,printGroupHelp,printUnknownCommand,require_xdg_app_paths,scheduleNativeAutoUpdate,setAutoUpdate,tokensAfterCommand}from"./chunks/chunk-26Z4U6G4.js";import{matchesCliApiTag}from"./chunks/chunk-GLJH35MJ.js";import{getUpdateCommand}from"./chunks/chunk-MMPQC2N6.js";import"./chunks/chunk-MZLQY2EQ.js";import"./chunks/chunk-U56NHYAH.js";import"./chunks/chunk-2EYYB6YN.js";import{require_semver}from"./chunks/chunk-BPUANOGW.js";import"./chunks/chunk-3E364MJE.js";import"./chunks/chunk-7EJQLVWX.js";import{Client,TEAM_NOT_CHOSEN,isValidAccessToken}from"./chunks/chunk-6HOVHRWJ.js";import"./chunks/chunk-O4FDRZ22.js";import"./chunks/chunk-T3GQAMBJ.js";import"./chunks/chunk-P2O5DOYE.js";import"./chunks/chunk-25565AGS.js";import{commands,commandsStructs,executionsListSubcommand,schedulesCommand}from"./chunks/chunk-H7CRPXOA.js";import"./chunks/chunk-ZBDLYNUF.js";import"./chunks/chunk-J6O6JW2K.js";import"./chunks/chunk-2FHICLHJ.js";import"./chunks/chunk-2UMWTCY7.js";import"./chunks/chunk-Q5ZGA2RO.js";import"./chunks/chunk-UGMTKOTN.js";import"./chunks/chunk-BTCKMXWW.js";import"./chunks/chunk-ITKS32PG.js";import"./chunks/chunk-CN3IVZJO.js";import"./chunks/chunk-Y24OSBXP.js";import"./chunks/chunk-GVVIFYQE.js";import"./chunks/chunk-W3TGCMRW.js";import"./chunks/chunk-B4YYOSPY.js";import"./chunks/chunk-LD5U73LA.js";import"./chunks/chunk-VRWLNWNE.js";import"./chunks/chunk-TPVAPVQC.js";import"./chunks/chunk-JALVF3C2.js";import"./chunks/chunk-FBYA6LLM.js";import"./chunks/chunk-CMKLX4DC.js";import{getTeams}from"./chunks/chunk-EVQJ7SCV.js";import"./chunks/chunk-SCV7XEEO.js";import{param}from"./chunks/chunk-3G3FQYMW.js";import"./chunks/chunk-UCAE5Z5L.js";import"./chunks/chunk-H3KYG32S.js";import"./chunks/chunk-773GOZIR.js";import{printError}from"./chunks/chunk-QAETJRKX.js";import"./chunks/chunk-67GZ5REA.js";import"./chunks/chunk-BS32OUOC.js";import{shouldPrintVersionBanner,wantsMachineReadableOutput}from"./chunks/chunk-D4MW3RDW.js";import{forgetCachedTeamSlug,getAuthConfigFilePath,getConfigFilePath,highlight,isAppPrincipalEnabled,readAuthConfigFile,readConfigFile,resolveAppTokenScope,writeToConfigFile}from"./chunks/chunk-IIC2A4YN.js";import{TelemetryEventStore}from"./chunks/chunk-KUGXOLL7.js";import{getGlobalPathConfig}from"./chunks/chunk-MV4WHUIC.js";import"./chunks/chunk-VKXEOL4K.js";import"./chunks/chunk-MXTC4ZAQ.js";import{isNativeBinaryInstall}from"./chunks/chunk-NWGBDBZI.js";import{require_cli_config}from"./chunks/chunk-4SAVH3H7.js";import"./chunks/chunk-ZS2WS4AM.js";import"./chunks/chunk-AOWWC6WZ.js";import{setFetchDispatcher}from"./chunks/chunk-MY4MONOH.js";import{parseArguments,require_arg}from"./chunks/chunk-ELDHGU6N.js";import{AGENT_REASON,AGENT_STATUS,isHelpInvocation,shouldEmitNonInteractiveCommandError,trackAgentCommandOutcome}from"./chunks/chunk-BAT6SDBJ.js";import{arg_common_default,getFlagsSpecification}from"./chunks/chunk-MI7W4QMV.js";import{getLinkFromDir,getLinkedProjectIdSync,getVercelDirectory,hasLocalProjectLink,require_lib}from"./chunks/chunk-U3NQZJQ4.js";import"./chunks/chunk-ROPQIBWJ.js";import"./chunks/chunk-VKPZP4LC.js";import{humanizePath}from"./chunks/chunk-PPCFQQSU.js";import"./chunks/chunk-IJCCFLCQ.js";import{getUser}from"./chunks/chunk-ZQME5XUJ.js";import{getTeamByIdOrSlug}from"./chunks/chunk-2VBFQZ72.js";import{APIError,CantFindConfig,CantParseJSONFile}from"./chunks/chunk-XSDAUM4F.js";import{cmd,getCommandNamePlain,getTitleName}from"./chunks/chunk-JESNVRVR.js";import{UNCLASSIFIED_ERROR_CODE,cliErrorFromUnknown,output_manager_default,recordCliError,recordCliErrorFromOutput,require_build_utils,takeCliError}from"./chunks/chunk-M774HRX5.js";import{require_dist}from"./chunks/chunk-RM3ZDRYE.js";import{pkg_default}from"./chunks/chunk-OO572JUC.js";import"./chunks/chunk-D3AHZ5LI.js";import"./chunks/chunk-2GHZGOWT.js";import"./chunks/chunk-YHPPP3SF.js";import{require_source}from"./chunks/chunk-NB2WLB3J.js";import"./chunks/chunk-ISWW3DKF.js";import"./chunks/chunk-BRQUZ5NC.js";import{__commonJS,__require,__toESM}from"./chunks/chunk-BZENIQ7N.js";var require_fetch_dist_tags=__commonJS({"src/util/get-latest-version/fetch-dist-tags.cjs"(exports,module){"use strict";var https=__require("https");function fetchDistTags2(name,options){let timeout=options&&options.timeout||3e3,agent=new https.Agent({keepAlive:!0,maxSockets:15}),headers={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},url=`https://registry.npmjs.org/-/package/${name}/dist-tags`;return new Promise(resolve2=>{let timer=setTimeout(()=>{req.destroy(),resolve2(void 0)},timeout),req=https.get(url,{agent,headers},res=>{let buf="";res.on("data",chunk=>{buf+=chunk}),res.on("end",()=>{clearTimeout(timer);try{if(res.statusCode&&res.statusCode>=400){resolve2(void 0);return}resolve2(JSON.parse(buf))}catch{resolve2(void 0)}})});req.on("error",()=>{clearTimeout(timer),resolve2(void 0)})})}module.exports={fetchDistTags:fetchDistTags2}}});var import_error_utils=__toESM(require_dist(),1),import_fs_extra2=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1),import_semver2=__toESM(require_semver(),1);import{join as join2,resolve}from"path";import{existsSync as existsSync2}from"fs";var import_semver=__toESM(require_semver(),1),import_xdg_app_paths=__toESM(require_xdg_app_paths(),1),import_fs_extra=__toESM(require_lib(),1);import{dirname,parse as parsePath,resolve as resolvePath}from"path";import{spawn}from"child_process";var import_fetch_dist_tags=__toESM(require_fetch_dist_tags(),1);function getLatestVersion({cacheDir=(0,import_xdg_app_paths.default)("com.vercel.cli").cache(),distTag="latest",notifyInterval=1e3*60*60*24*3,pkg,updateCheckInterval=1e3*60*60*24,consumeNotification=!0}){if(!pkg||typeof pkg!="object"||!pkg.name||typeof pkg.name!="string")throw new TypeError("Expected package to be an object with a package name");let cacheFile=resolvePath(cacheDir,"package-updates",`${pkg.name}-${distTag}.json`),cache;try{cache=(0,import_fs_extra.readJSONSync)(cacheFile)}catch(err){err.code!=="ENOENT"&&output_manager_default?.debug(`Error reading latest package cache file: ${err}`)}if((!cache||!cache.expireAt||cache.expireAt<=Date.now())&&spawnWorker({cacheFile,distTag,name:pkg.name,updateCheckInterval}),cache){let shouldNotify=!cache.notifyAt||cache.notifyAt<=Date.now(),updateAvailable=!1;if(cache.version&&pkg.version&&(updateAvailable=import_semver.default.lt(pkg.version,cache.version)),shouldNotify&&updateAvailable)return consumeNotification&&(cache.notifyAt=Date.now()+notifyInterval,(0,import_fs_extra.outputJSONSync)(cacheFile,cache)),cache.version}}function spawnWorker(payload){let dir=dirname(__filename),script=resolvePath(dir,"dist","get-latest-worker.cjs"),{root}=parsePath(dir);for(;!(0,import_fs_extra.existsSync)(script);){if(dir=dirname(dir),dir===root){output_manager_default?.debug("Failed to find the get latest worker script!");return}script=resolvePath(dir,"dist","get-latest-worker.cjs")}output_manager_default?.debug(`Spawning ${script}`);let args=[script];output_manager_default?.debugEnabled&&args.push("--debug");let worker=spawn(process.execPath,args,{stdio:["inherit","inherit","inherit","ipc"],windowsHide:!0}),workerReadyTimer=setTimeout(()=>worker.kill(),2e3),onClose=code=>{output_manager_default?.debug(`Get latest worker exited (code ${code})`)};worker.on("close",onClose),worker.on("error",err=>{output_manager_default?.log(`Failed to spawn get latest worker: ${err.stack}`)}),worker.once("message",()=>{clearTimeout(workerReadyTimer),worker.removeListener("close",onClose),worker.send(payload),worker.unref()})}async function fetchLatestVersion({name,distTag="latest",timeout=3e3}){return(await(0,import_fetch_dist_tags.fetchDistTags)(name,{timeout}))?.[distTag]}function updateLatestVersionCache({cacheDir=(0,import_xdg_app_paths.default)("com.vercel.cli").cache(),distTag="latest",name,version,updateCheckInterval=1e3*60*60*24}){let cacheFile=resolvePath(cacheDir,"package-updates",`${name}-${distTag}.json`),notifyAt;try{notifyAt=(0,import_fs_extra.readJSONSync)(cacheFile)?.notifyAt}catch{}(0,import_fs_extra.outputJSONSync)(cacheFile,{expireAt:Date.now()+updateCheckInterval,notifyAt,version})}import{URL}from"url";var SUBCOMMANDS_WITHOUT_TOKEN=["login","logout","signup","help","init","build","builders","changelog","pricing","deploy","sandbox","telemetry","upgrade","version","skills","agent","whoami"];var import_arg=__toESM(require_arg(),1);var flagsSpecification={...getFlagsSpecification([...schedulesCommand.options,...schedulesCommand.subcommands.flatMap(command=>command.options),...executionsListSubcommand.options]),"--local":Boolean,"-L":"--local","--changelog":Boolean};function parseSchedulesArguments(argv){let parsed=parseArguments(argv.slice(2),flagsSpecification);return{...parsed,args:[...argv.slice(0,2),...parsed.args]}}function isSchedulesCommand(argv){try{let{_:args}=(0,import_arg.default)({...arg_common_default(),...flagsSpecification},{argv:argv.slice(2),stopAtPositional:!0});return args[0]==="schedules"||args[0]==="help"&&args[1]==="schedules"}catch{return!1}}function isLocalSchedulesCommand(argv){try{let{args,flags}=parseSchedulesArguments(argv);return(args[2]==="schedules"||args[2]==="help"&&args[3]==="schedules")&&flags["--local"]===!0}catch{return!1}}function getSchedulesErrorContext(argv){let spec={...arg_common_default(),...flagsSpecification},local=!1,nonInteractive;for(let i=2;i<argv.length;i++){let token=argv[i];if(token==="--")break;if(!token.startsWith("-")||token==="-")continue;let options=token.startsWith("--")?[token]:[...token.slice(1)].map(letter=>`-${letter}`);for(let j=0;j<options.length;j++){let[option,value]=options[j].split(/=(.*)/,2),name=typeof spec[option]=="string"?spec[option]:option,handler=spec[name];if(!handler)break;if(handler!==Boolean){if(j<options.length-1)break;let next=argv[i+1];value===void 0&&next!==void 0&&(!next.startsWith("-")||next==="-"||handler===Number&&/^-?\d*(\.(?=\d))?\d*$/.test(next))&&i++;continue}if(name==="--local"&&(local=!0),name==="--non-interactive"){let separateFalse=value===void 0&&argv[i+1]==="false";value==="false"||separateFalse?(nonInteractive=!1,separateFalse&&i++):nonInteractive!==!1&&(nonInteractive=!0)}}}return{local,nonInteractive}}function getCachedScopeTeamId(config,scope){return config.cachedTeamIds?.[scope]}function setCachedScopeTeamId(client2,scope,teamId,persistedTeamId){if(getCachedScopeTeamId(client2.config,scope)===teamId)return;let config=client2.config;config.cachedTeamIds={...config.cachedTeamIds,[scope]:teamId},writeToConfigFile({...config,currentTeam:persistedTeamId})}function attempt(fn){try{return fn()}catch{return}}function createRunTelemetry({isAgent,telemetry,store,getClient,getConfigIdentity,getProjectId}){let runEndTracked=!1,saveStarted=!1,trackFailedRunError=(exitCode,client2)=>{let details=takeCliError();!isAgent||exitCode===0&&!details?.reportOnSuccess||isHelpInvocation(client2?.argv??process.argv)||(telemetry.trackErrorStatus(details?.status),telemetry.trackErrorCode(details?.code??UNCLASSIFIED_ERROR_CODE),telemetry.trackErrorSlug(details?.slug),telemetry.trackErrorAction(details?.action),telemetry.trackErrorServerMessage(details?.serverMessage))},trackRunEnd=exitCode=>{if(runEndTracked)return;runEndTracked=!0;let client2=getClient();trackFailedRunError(exitCode,client2),client2&&trackAgentCommandOutcome(client2,exitCode)};return{trackRunEnd,markSaveStarted:()=>{saveStarted=!0},get saveStarted(){return saveStarted},flushOnExit:exitCode=>{if(saveStarted)return;saveStarted=!0,attempt(()=>trackRunEnd(exitCode));let client2=getClient(),identity=attempt(getConfigIdentity);attempt(()=>store.updateTeamId(client2?.config.currentTeam??identity?.teamId)),attempt(()=>store.updateUserId(client2?.authConfig.userId??identity?.userId));let projectId=attempt(getProjectId);projectId&&store.updateProjectId(projectId),attempt(()=>telemetry.trackProjectId(store.currentProjectId)),attempt(()=>store.save({detach:!0}).catch(()=>{}))}}}function captureStdoutErrors(stream){let write=stream.write;return stream.write=function(chunk,...rest){return recordCliErrorFromOutput(chunk),Reflect.apply(write,this,[chunk,...rest])},()=>{stream.write=write}}var import_cli_config=__toESM(require_cli_config(),1);var RELEASE_NOTES_URL="https://vercel.com/docs/cli/release-notes";function getReleaseNotesUrl(version){return`${RELEASE_NOTES_URL}#vercel@${version}`}async function runUpdateMaintenance(exitCode,update){try{return await update()}catch(error){return output_manager_default.stopSpinner(),output_manager_default.debug(`Post-command update failed; preserving exit code ${exitCode??0}: ${error instanceof Error?error.message:String(error)}`),exitCode}}function shouldStartUserLookupForTelemetry({authConfig,hasTelemetryUserId}){return!hasTelemetryUserId&&!authConfig.userId&&isValidAccessToken(authConfig)}import{readFileSync}from"node:fs";import{homedir}from"node:os";import{join}from"node:path";var ACTIVE_SESSION_MARKER_PATH=join(homedir(),".config","vercel-plugin","active-session.json"),SEMVERISH_RE=/^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/;function isRecord(value){return typeof value=="object"&&value!==null}function readVercelPluginActiveSessionMarker(opts={}){let filePath=opts.filePath??ACTIVE_SESSION_MARKER_PATH,now=opts.now?.()??Date.now();try{let marker=JSON.parse(readFileSync(filePath,"utf-8"));return!isRecord(marker)||marker.schema!==1||marker.active!==!0||typeof marker.expiresAt!="number"||marker.expiresAt<=now||typeof marker.pluginVersion!="string"||!SEMVERISH_RE.test(marker.pluginVersion)?null:{pluginVersion:marker.pluginVersion}}catch{return null}}var BETA_COMMANDS=new Set(["budget","budgets","crons","daemons","kms","schedules"]);var BASIC_COMMANDS=new Set(["build","cache","deploy","dev","env","git","help","init","inspect","install","integration","integration-resource","link","list","login","logout","open","promote","pull","redeploy","rollback","signup","switch"]),MAX_LISTED_ALIAS_LENGTH=3,DEFAULT_COMMAND="deploy",HELP_ROW={names:["help"],description:"Show help for a command",basic:!0,default:!1};function summarize(description){let firstLine=description.trim().split(`
7
+ import{help}from"./chunks/chunk-GWB27IAS.js";import{checkTelemetryStatus,earlyGetConfig,exitWithUnexpectedError,getDirectBuildFallbackAttributes,getSentry,handleUnexpectedError,installProcessGuards,isOutputDebugEnabled,registerUnexpectedErrorHandlers,reportError}from"./chunks/chunk-FLBI6DY2.js";import{BUILD_LABEL}from"./chunks/chunk-WKZ6JSGZ.js";import{RootTelemetryClient,box,canAutoUpdate,executeAutomaticUpgrade,executeUpgrade,handleCommandTypo,hasAutoUpdatePreference,printCommandHelp,printGroupHelp,printUnknownCommand,require_xdg_app_paths,scheduleNativeAutoUpdate,setAutoUpdate,tokensAfterCommand}from"./chunks/chunk-DWEDXCBK.js";import{matchesCliApiTag}from"./chunks/chunk-GLJH35MJ.js";import{getUpdateCommand}from"./chunks/chunk-MMPQC2N6.js";import"./chunks/chunk-MZLQY2EQ.js";import"./chunks/chunk-U56NHYAH.js";import"./chunks/chunk-2EYYB6YN.js";import{require_semver}from"./chunks/chunk-BPUANOGW.js";import"./chunks/chunk-3E364MJE.js";import"./chunks/chunk-7EJQLVWX.js";import{Client,TEAM_NOT_CHOSEN,isValidAccessToken}from"./chunks/chunk-6HOVHRWJ.js";import"./chunks/chunk-O4FDRZ22.js";import"./chunks/chunk-T3GQAMBJ.js";import"./chunks/chunk-P2O5DOYE.js";import"./chunks/chunk-25565AGS.js";import{commands,commandsStructs,executionsListSubcommand,schedulesCommand}from"./chunks/chunk-NLCTF4EJ.js";import"./chunks/chunk-ZBDLYNUF.js";import"./chunks/chunk-J6O6JW2K.js";import"./chunks/chunk-BFRDBBSO.js";import"./chunks/chunk-2UMWTCY7.js";import"./chunks/chunk-Q5ZGA2RO.js";import"./chunks/chunk-UGMTKOTN.js";import"./chunks/chunk-UQIVF4Q2.js";import"./chunks/chunk-ITKS32PG.js";import"./chunks/chunk-7NNENHGN.js";import"./chunks/chunk-Y24OSBXP.js";import"./chunks/chunk-GVVIFYQE.js";import"./chunks/chunk-W3TGCMRW.js";import"./chunks/chunk-B4YYOSPY.js";import"./chunks/chunk-LD5U73LA.js";import"./chunks/chunk-VRWLNWNE.js";import"./chunks/chunk-TPVAPVQC.js";import"./chunks/chunk-JALVF3C2.js";import"./chunks/chunk-FBYA6LLM.js";import"./chunks/chunk-CMKLX4DC.js";import{getTeams}from"./chunks/chunk-EVQJ7SCV.js";import"./chunks/chunk-SCV7XEEO.js";import{param}from"./chunks/chunk-3G3FQYMW.js";import"./chunks/chunk-UCAE5Z5L.js";import"./chunks/chunk-H3KYG32S.js";import"./chunks/chunk-773GOZIR.js";import{printError}from"./chunks/chunk-QAETJRKX.js";import"./chunks/chunk-67GZ5REA.js";import"./chunks/chunk-BS32OUOC.js";import{shouldPrintVersionBanner,wantsMachineReadableOutput}from"./chunks/chunk-D4MW3RDW.js";import{forgetCachedTeamSlug,getAuthConfigFilePath,getConfigFilePath,highlight,isAppPrincipalEnabled,readAuthConfigFile,readConfigFile,resolveAppTokenScope,writeToConfigFile}from"./chunks/chunk-IIC2A4YN.js";import{TelemetryEventStore}from"./chunks/chunk-KUGXOLL7.js";import{getGlobalPathConfig}from"./chunks/chunk-MV4WHUIC.js";import"./chunks/chunk-VKXEOL4K.js";import"./chunks/chunk-MXTC4ZAQ.js";import{isNativeBinaryInstall}from"./chunks/chunk-NWGBDBZI.js";import{require_cli_config}from"./chunks/chunk-4SAVH3H7.js";import"./chunks/chunk-ZS2WS4AM.js";import"./chunks/chunk-AOWWC6WZ.js";import{setFetchDispatcher}from"./chunks/chunk-MY4MONOH.js";import{parseArguments,require_arg}from"./chunks/chunk-ELDHGU6N.js";import{AGENT_REASON,AGENT_STATUS,isHelpInvocation,shouldEmitNonInteractiveCommandError,trackAgentCommandOutcome}from"./chunks/chunk-BAT6SDBJ.js";import{arg_common_default,getFlagsSpecification}from"./chunks/chunk-MI7W4QMV.js";import{getLinkFromDir,getLinkedProjectIdSync,getVercelDirectory,hasLocalProjectLink,require_lib}from"./chunks/chunk-U3NQZJQ4.js";import"./chunks/chunk-ROPQIBWJ.js";import"./chunks/chunk-VKPZP4LC.js";import{humanizePath}from"./chunks/chunk-PPCFQQSU.js";import"./chunks/chunk-IJCCFLCQ.js";import{getUser}from"./chunks/chunk-ZQME5XUJ.js";import{getTeamByIdOrSlug}from"./chunks/chunk-2VBFQZ72.js";import{APIError,CantFindConfig,CantParseJSONFile}from"./chunks/chunk-XSDAUM4F.js";import{cmd,getCommandNamePlain,getTitleName}from"./chunks/chunk-JESNVRVR.js";import{UNCLASSIFIED_ERROR_CODE,cliErrorFromUnknown,output_manager_default,recordCliError,recordCliErrorFromOutput,require_build_utils,takeCliError}from"./chunks/chunk-M774HRX5.js";import{require_dist}from"./chunks/chunk-RM3ZDRYE.js";import{pkg_default}from"./chunks/chunk-OO572JUC.js";import"./chunks/chunk-D3AHZ5LI.js";import"./chunks/chunk-2GHZGOWT.js";import"./chunks/chunk-YHPPP3SF.js";import{require_source}from"./chunks/chunk-NB2WLB3J.js";import"./chunks/chunk-ISWW3DKF.js";import"./chunks/chunk-BRQUZ5NC.js";import{__commonJS,__require,__toESM}from"./chunks/chunk-BZENIQ7N.js";var require_fetch_dist_tags=__commonJS({"src/util/get-latest-version/fetch-dist-tags.cjs"(exports,module){"use strict";var https=__require("https");function fetchDistTags2(name,options){let timeout=options&&options.timeout||3e3,agent=new https.Agent({keepAlive:!0,maxSockets:15}),headers={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},url=`https://registry.npmjs.org/-/package/${name}/dist-tags`;return new Promise(resolve2=>{let timer=setTimeout(()=>{req.destroy(),resolve2(void 0)},timeout),req=https.get(url,{agent,headers},res=>{let buf="";res.on("data",chunk=>{buf+=chunk}),res.on("end",()=>{clearTimeout(timer);try{if(res.statusCode&&res.statusCode>=400){resolve2(void 0);return}resolve2(JSON.parse(buf))}catch{resolve2(void 0)}})});req.on("error",()=>{clearTimeout(timer),resolve2(void 0)})})}module.exports={fetchDistTags:fetchDistTags2}}});var import_error_utils=__toESM(require_dist(),1),import_fs_extra2=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1),import_semver2=__toESM(require_semver(),1);import{join as join2,resolve}from"path";import{existsSync as existsSync2}from"fs";var import_semver=__toESM(require_semver(),1),import_xdg_app_paths=__toESM(require_xdg_app_paths(),1),import_fs_extra=__toESM(require_lib(),1);import{dirname,parse as parsePath,resolve as resolvePath}from"path";import{spawn}from"child_process";var import_fetch_dist_tags=__toESM(require_fetch_dist_tags(),1);function getLatestVersion({cacheDir=(0,import_xdg_app_paths.default)("com.vercel.cli").cache(),distTag="latest",notifyInterval=1e3*60*60*24*3,pkg,updateCheckInterval=1e3*60*60*24,consumeNotification=!0}){if(!pkg||typeof pkg!="object"||!pkg.name||typeof pkg.name!="string")throw new TypeError("Expected package to be an object with a package name");let cacheFile=resolvePath(cacheDir,"package-updates",`${pkg.name}-${distTag}.json`),cache;try{cache=(0,import_fs_extra.readJSONSync)(cacheFile)}catch(err){err.code!=="ENOENT"&&output_manager_default?.debug(`Error reading latest package cache file: ${err}`)}if((!cache||!cache.expireAt||cache.expireAt<=Date.now())&&spawnWorker({cacheFile,distTag,name:pkg.name,updateCheckInterval}),cache){let shouldNotify=!cache.notifyAt||cache.notifyAt<=Date.now(),updateAvailable=!1;if(cache.version&&pkg.version&&(updateAvailable=import_semver.default.lt(pkg.version,cache.version)),shouldNotify&&updateAvailable)return consumeNotification&&(cache.notifyAt=Date.now()+notifyInterval,(0,import_fs_extra.outputJSONSync)(cacheFile,cache)),cache.version}}function spawnWorker(payload){let dir=dirname(__filename),script=resolvePath(dir,"dist","get-latest-worker.cjs"),{root}=parsePath(dir);for(;!(0,import_fs_extra.existsSync)(script);){if(dir=dirname(dir),dir===root){output_manager_default?.debug("Failed to find the get latest worker script!");return}script=resolvePath(dir,"dist","get-latest-worker.cjs")}output_manager_default?.debug(`Spawning ${script}`);let args=[script];output_manager_default?.debugEnabled&&args.push("--debug");let worker=spawn(process.execPath,args,{stdio:["inherit","inherit","inherit","ipc"],windowsHide:!0}),workerReadyTimer=setTimeout(()=>worker.kill(),2e3),onClose=code=>{output_manager_default?.debug(`Get latest worker exited (code ${code})`)};worker.on("close",onClose),worker.on("error",err=>{output_manager_default?.log(`Failed to spawn get latest worker: ${err.stack}`)}),worker.once("message",()=>{clearTimeout(workerReadyTimer),worker.removeListener("close",onClose),worker.send(payload),worker.unref()})}async function fetchLatestVersion({name,distTag="latest",timeout=3e3}){return(await(0,import_fetch_dist_tags.fetchDistTags)(name,{timeout}))?.[distTag]}function updateLatestVersionCache({cacheDir=(0,import_xdg_app_paths.default)("com.vercel.cli").cache(),distTag="latest",name,version,updateCheckInterval=1e3*60*60*24}){let cacheFile=resolvePath(cacheDir,"package-updates",`${name}-${distTag}.json`),notifyAt;try{notifyAt=(0,import_fs_extra.readJSONSync)(cacheFile)?.notifyAt}catch{}(0,import_fs_extra.outputJSONSync)(cacheFile,{expireAt:Date.now()+updateCheckInterval,notifyAt,version})}import{URL}from"url";var SUBCOMMANDS_WITHOUT_TOKEN=["login","logout","signup","help","init","build","builders","changelog","pricing","deploy","sandbox","telemetry","upgrade","version","skills","agent","whoami"];var import_arg=__toESM(require_arg(),1);var flagsSpecification={...getFlagsSpecification([...schedulesCommand.options,...schedulesCommand.subcommands.flatMap(command=>command.options),...executionsListSubcommand.options]),"--local":Boolean,"-L":"--local","--changelog":Boolean};function parseSchedulesArguments(argv){let parsed=parseArguments(argv.slice(2),flagsSpecification);return{...parsed,args:[...argv.slice(0,2),...parsed.args]}}function isSchedulesCommand(argv){try{let{_:args}=(0,import_arg.default)({...arg_common_default(),...flagsSpecification},{argv:argv.slice(2),stopAtPositional:!0});return args[0]==="schedules"||args[0]==="help"&&args[1]==="schedules"}catch{return!1}}function isLocalSchedulesCommand(argv){try{let{args,flags}=parseSchedulesArguments(argv);return(args[2]==="schedules"||args[2]==="help"&&args[3]==="schedules")&&flags["--local"]===!0}catch{return!1}}function getSchedulesErrorContext(argv){let spec={...arg_common_default(),...flagsSpecification},local=!1,nonInteractive;for(let i=2;i<argv.length;i++){let token=argv[i];if(token==="--")break;if(!token.startsWith("-")||token==="-")continue;let options=token.startsWith("--")?[token]:[...token.slice(1)].map(letter=>`-${letter}`);for(let j=0;j<options.length;j++){let[option,value]=options[j].split(/=(.*)/,2),name=typeof spec[option]=="string"?spec[option]:option,handler=spec[name];if(!handler)break;if(handler!==Boolean){if(j<options.length-1)break;let next=argv[i+1];value===void 0&&next!==void 0&&(!next.startsWith("-")||next==="-"||handler===Number&&/^-?\d*(\.(?=\d))?\d*$/.test(next))&&i++;continue}if(name==="--local"&&(local=!0),name==="--non-interactive"){let separateFalse=value===void 0&&argv[i+1]==="false";value==="false"||separateFalse?(nonInteractive=!1,separateFalse&&i++):nonInteractive!==!1&&(nonInteractive=!0)}}}return{local,nonInteractive}}function getCachedScopeTeamId(config,scope){return config.cachedTeamIds?.[scope]}function setCachedScopeTeamId(client2,scope,teamId,persistedTeamId){if(getCachedScopeTeamId(client2.config,scope)===teamId)return;let config=client2.config;config.cachedTeamIds={...config.cachedTeamIds,[scope]:teamId},writeToConfigFile({...config,currentTeam:persistedTeamId})}function attempt(fn){try{return fn()}catch{return}}function createRunTelemetry({isAgent,telemetry,store,getClient,getConfigIdentity,getProjectId}){let runEndTracked=!1,saveStarted=!1,trackFailedRunError=(exitCode,client2)=>{let details=takeCliError();!isAgent||exitCode===0&&!details?.reportOnSuccess||isHelpInvocation(client2?.argv??process.argv)||(telemetry.trackErrorStatus(details?.status),telemetry.trackErrorCode(details?.code??UNCLASSIFIED_ERROR_CODE),telemetry.trackErrorSlug(details?.slug),telemetry.trackErrorAction(details?.action),telemetry.trackErrorServerMessage(details?.serverMessage))},trackRunEnd=exitCode=>{if(runEndTracked)return;runEndTracked=!0;let client2=getClient();trackFailedRunError(exitCode,client2),client2&&trackAgentCommandOutcome(client2,exitCode)};return{trackRunEnd,markSaveStarted:()=>{saveStarted=!0},get saveStarted(){return saveStarted},flushOnExit:exitCode=>{if(saveStarted)return;saveStarted=!0,attempt(()=>trackRunEnd(exitCode));let client2=getClient(),identity=attempt(getConfigIdentity);attempt(()=>store.updateTeamId(client2?.config.currentTeam??identity?.teamId)),attempt(()=>store.updateUserId(client2?.authConfig.userId??identity?.userId));let projectId=attempt(getProjectId);projectId&&store.updateProjectId(projectId),attempt(()=>telemetry.trackProjectId(store.currentProjectId)),attempt(()=>store.save({detach:!0}).catch(()=>{}))}}}function captureStdoutErrors(stream){let write=stream.write;return stream.write=function(chunk,...rest){return recordCliErrorFromOutput(chunk),Reflect.apply(write,this,[chunk,...rest])},()=>{stream.write=write}}var import_cli_config=__toESM(require_cli_config(),1);var RELEASE_NOTES_URL="https://vercel.com/docs/cli/release-notes";function getReleaseNotesUrl(version){return`${RELEASE_NOTES_URL}#vercel@${version}`}async function runUpdateMaintenance(exitCode,update){try{return await update()}catch(error){return output_manager_default.stopSpinner(),output_manager_default.debug(`Post-command update failed; preserving exit code ${exitCode??0}: ${error instanceof Error?error.message:String(error)}`),exitCode}}function shouldStartUserLookupForTelemetry({authConfig,hasTelemetryUserId}){return!hasTelemetryUserId&&!authConfig.userId&&isValidAccessToken(authConfig)}import{readFileSync}from"node:fs";import{homedir}from"node:os";import{join}from"node:path";var ACTIVE_SESSION_MARKER_PATH=join(homedir(),".config","vercel-plugin","active-session.json"),SEMVERISH_RE=/^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/;function isRecord(value){return typeof value=="object"&&value!==null}function readVercelPluginActiveSessionMarker(opts={}){let filePath=opts.filePath??ACTIVE_SESSION_MARKER_PATH,now=opts.now?.()??Date.now();try{let marker=JSON.parse(readFileSync(filePath,"utf-8"));return!isRecord(marker)||marker.schema!==1||marker.active!==!0||typeof marker.expiresAt!="number"||marker.expiresAt<=now||typeof marker.pluginVersion!="string"||!SEMVERISH_RE.test(marker.pluginVersion)?null:{pluginVersion:marker.pluginVersion}}catch{return null}}var BETA_COMMANDS=new Set(["budget","budgets","crons","daemons","kms","schedules"]);var BASIC_COMMANDS=new Set(["build","cache","deploy","dev","env","git","help","init","inspect","install","integration","integration-resource","link","list","login","logout","open","promote","pull","redeploy","rollback","signup","switch"]),MAX_LISTED_ALIAS_LENGTH=3,DEFAULT_COMMAND="deploy",HELP_ROW={names:["help"],description:"Show help for a command",basic:!0,default:!1};function summarize(description){let firstLine=description.trim().split(`
8
8
  `)[0],sentenceEnd=/[^.]\.(\s|$)/.exec(firstLine);return(sentenceEnd?firstLine.slice(0,sentenceEnd.index+1):firstLine).replace(/\.$/,"")}function getRootHelpCommands(commands2){let rows=[HELP_ROW];for(let command of commands2){if(!("description"in command)||command.hidden)continue;let shortAliases=command.aliases.filter(alias=>alias.length<=MAX_LISTED_ALIAS_LENGTH),description=summarize(command.description);BETA_COMMANDS.has(command.name)&&(description+=" [beta]"),rows.push({names:[...shortAliases,command.name],description,basic:BASIC_COMMANDS.has(command.name),default:command.name===DEFAULT_COMMAND});for(let alias of command.aliases){let subcommand=command.subcommands?.find(candidate=>candidate.name===alias&&!candidate.hidden);subcommand&&rows.push({names:[alias],description:summarize(subcommand.description),basic:BASIC_COMMANDS.has(alias),default:!1})}}return rows.sort((a,b)=>a.default!==b.default?a.default?-1:1:a.names[a.names.length-1].localeCompare(b.names[b.names.length-1]))}function checkGuidanceStatus({config}){process.env.FF_GUIDANCE_MODE&&(process.env.CI||process.env.VERCEL_GUIDANCE_DISABLED||config.guidance||(output_manager_default.note("The Vercel CLI can suggest common follow-up commands and steps to help guide new users."),output_manager_default.log("You can disable this feature by running:"),output_manager_default.log("vercel guidance disable"),output_manager_default.log("or by setting VERCEL_GUIDANCE_DISABLED=1"),config.guidance={enabled:!0},writeToConfigFile(config)))}import{determineAgent}from"@vercel/detect-agent";var import_build_utils=__toESM(require_build_utils(),1);import{mkdir,writeFile}from"fs/promises";try{process.cwd()}catch(err){(0,import_error_utils.isError)(err)&&err.message.includes("uv_cwd")&&(console.error("Error: The current working directory does not exist."),process.exit(1))}var VERCEL_DIR=getGlobalPathConfig(),VERCEL_CONFIG_PATH=getConfigFilePath(),VERCEL_AUTH_CONFIG_PATH=getAuthConfigFilePath(),GLOBAL_COMMANDS=new Set(["help"]);function hasProxyConfig(){return["HTTP_PROXY","HTTPS_PROXY","http_proxy","https_proxy","ALL_PROXY","all_proxy"].some(v=>process.env[v])}installProcessGuards();var client,resolvedCommandForUpdate;registerUnexpectedErrorHandlers(()=>client);process.env.CLAUDECODE&&process.stderr.write(`<claude-code-hint v="1" type="plugin" value="vercel@claude-plugins-official" />
9
9
  `);var IS_LOCAL_SCHEDULES_COMMAND=isLocalSchedulesCommand(process.argv),SHOULD_CHECK_FOR_UPDATES=!IS_LOCAL_SCHEDULES_COMMAND&&!process.env.NO_UPDATE_NOTIFIER&&!process.env.VERCEL,{isTTY}=process.stdout,apiUrl="https://api.vercel.com",InMemoryReporter=class{constructor(){this.events=[]}report(event){this.events.push(event)}},main=async()=>{let traceReporter=new InMemoryReporter,rootSpan=new import_build_utils.Span({name:"vc.cli",reporter:traceReporter,attrs:getDirectBuildFallbackAttributes()}),isTelemetryFlushCommand=process.argv[2]==="telemetry"&&process.argv[3]==="flush";process.env.FORCE_TTY==="1"&&(isTTY=!0,process.stdout.isTTY=!0,process.stdin.isTTY=!0);let parseInitialArgs=()=>IS_LOCAL_SCHEDULES_COMMAND||isSchedulesCommand(process.argv)?parseSchedulesArguments(process.argv):parseArguments(process.argv,{"--version":Boolean,"-v":"--version","--changelog":Boolean,"--non-interactive":Boolean},{permissive:!0}),emitSchedulesArgumentError=async message=>{if(isSchedulesCommand(process.argv)){let context=getSchedulesErrorContext(process.argv);if(context.nonInteractive??((await determineAgent()).isAgent&&process.stdin?.isTTY!==!0))return process.stdout.write(`${JSON.stringify({status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:getCommandNamePlain(`schedules${context.local?" --local":""} --help`),when:"Review the supported schedules options"}]},null,2)}
10
10
  `),!0}return!1},parsedArgs;try{parsedArgs=parseInitialArgs();let isDebugging=isOutputDebugEnabled(parsedArgs.flags["--debug"]),isNoColor=parsedArgs.flags["--no-color"];output_manager_default.initialize({debug:isDebugging,noColor:isNoColor})}catch(err){return await emitSchedulesArgumentError(err instanceof Error?err.message:String(err))||printError(err),2}if(IS_LOCAL_SCHEDULES_COMMAND&&(parsedArgs.flags["--token"]!==void 0||parsedArgs.flags["--scope"]!==void 0||parsedArgs.flags["--team"]!==void 0)){let message="Can't combine `--local` with `--token`, `--scope`, or `--team`. Remove the cloud options to manage local schedules.";return await emitSchedulesArgumentError(message)||output_manager_default.fatal(message),2}let localConfigPath=parsedArgs.flags["--local-config"],localConfig=await earlyGetConfig(localConfigPath);if(localConfig instanceof CantParseJSONFile)return output_manager_default.error(`Couldn't parse JSON file ${localConfig.meta.file}.`),1;if(localConfig instanceof CantFindConfig){if(localConfigPath)return output_manager_default.error(`Couldn't find a project configuration file at
package/dist/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const version = "64.3.1";
1
+ export const version = "64.4.0";
2
2
  export const buildLabel = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "64.3.1",
3
+ "version": "64.4.0",
4
4
  "type": "module",
5
5
  "preferGlobal": true,
6
6
  "license": "Apache-2.0",
@@ -35,30 +35,30 @@
35
35
  "undici": "5.29.0",
36
36
  "uuid": "14.0.1",
37
37
  "zod": "4.1.11",
38
+ "@vercel/backends": "19.0.2",
38
39
  "@vercel/build-utils": "14.21.2",
39
40
  "@vercel/cli-auth": "0.3.10",
40
- "@vercel/backends": "19.0.2",
41
41
  "@vercel/cli-config": "0.3.1",
42
+ "@vercel/elysia": "19.0.2",
42
43
  "@vercel/container": "19.1.2",
43
44
  "@vercel/detect-agent": "1.2.7",
44
45
  "@vercel/express": "19.0.2",
45
- "@vercel/elysia": "19.0.2",
46
46
  "@vercel/fastify": "19.0.2",
47
47
  "@vercel/go": "22.0.2",
48
48
  "@vercel/h3": "19.0.2",
49
49
  "@vercel/hono": "19.0.2",
50
+ "@vercel/hydrogen": "20.0.2",
50
51
  "@vercel/nestjs": "19.0.2",
51
- "@vercel/next": "23.0.2",
52
- "@vercel/node": "24.0.2",
53
- "@vercel/python": "25.1.2",
54
52
  "@vercel/koa": "19.0.2",
53
+ "@vercel/next": "23.0.2",
55
54
  "@vercel/python-analysis": "0.15.0",
55
+ "@vercel/redwood": "21.0.2",
56
56
  "@vercel/remix-builder": "24.0.2",
57
57
  "@vercel/ruby": "21.0.2",
58
58
  "@vercel/rust": "20.0.2",
59
59
  "@vercel/static-build": "21.0.2",
60
- "@vercel/hydrogen": "20.0.2",
61
- "@vercel/redwood": "21.0.2"
60
+ "@vercel/node": "24.0.2",
61
+ "@vercel/python": "25.1.2"
62
62
  },
63
63
  "builders": {
64
64
  "@vercel/backends": "19.0.2",
@@ -208,26 +208,26 @@
208
208
  "xdg-app-paths": "5.1.0",
209
209
  "yauzl-promise": "2.1.3",
210
210
  "@vercel-internals/builder-orchestration": "1.0.22",
211
- "@vercel-internals/cli-builder-integration": "1.0.25",
212
211
  "@vercel-internals/constants": "1.0.4",
213
- "@vercel-internals/get-package-json": "1.0.0",
212
+ "@vercel-internals/cli-builder-integration": "1.0.25",
214
213
  "@vercel-internals/local-schedules": "0.0.4",
215
214
  "@vercel-internals/service-topology": "1.0.20",
215
+ "@vercel-internals/get-package-json": "1.0.0",
216
216
  "@vercel-internals/types": "3.0.25",
217
+ "@vercel-internals/runtimes": "1.1.17",
217
218
  "@vercel/client": "18.8.6",
218
219
  "@vercel/error-utils": "2.2.1",
219
- "@vercel/routing-utils": "6.6.0",
220
- "@vercel-internals/runtimes": "1.1.17",
220
+ "@vercel/frameworks": "3.35.0",
221
221
  "@vercel/fs-detectors": "7.9.9",
222
- "@vercel/frameworks": "3.35.0"
222
+ "@vercel/routing-utils": "6.6.0"
223
223
  },
224
224
  "optionalDependencies": {
225
- "@vercel/vc-native-darwin-arm64": "64.3.1",
226
- "@vercel/vc-native-darwin-x64": "64.3.1",
227
- "@vercel/vc-native-linux-arm64": "64.3.1",
228
- "@vercel/vc-native-linux-x64": "64.3.1",
229
- "@vercel/vc-native-win32-arm64": "64.3.1",
230
- "@vercel/vc-native-win32-x64": "64.3.1"
225
+ "@vercel/vc-native-darwin-arm64": "64.4.0",
226
+ "@vercel/vc-native-darwin-x64": "64.4.0",
227
+ "@vercel/vc-native-linux-arm64": "64.4.0",
228
+ "@vercel/vc-native-linux-x64": "64.4.0",
229
+ "@vercel/vc-native-win32-arm64": "64.4.0",
230
+ "@vercel/vc-native-win32-x64": "64.4.0"
231
231
  },
232
232
  "scripts": {
233
233
  "test": "node scripts/test.mjs --run",
@@ -1,7 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{imageAggregateCommand}from"./chunk-2UMWTCY7.js";import{permissionsAggregateCommand}from"./chunk-Q5ZGA2RO.js";import{tagsAggregateCommand}from"./chunk-UGMTKOTN.js";import{formatOption,jsonOption,limitOption,projectOption,yesOption}from"./chunk-MI7W4QMV.js";import{packageName}from"./chunk-JESNVRVR.js";var projectScopeOption={...projectOption,shorthand:"p",description:"Project name or ID (defaults to the linked project)."},nextOption={name:"next",shorthand:null,type:String,deprecated:!1,description:"Continue from a previous response",argument:"CURSOR"},cursorOption={name:"cursor",shorthand:"c",type:String,deprecated:!0,description:"Cursor from a previous page to continue listing from",argument:"STRING"},platformOption={name:"platform",shorthand:null,type:String,deprecated:!1,description:"Target platform for the build (defaults to linux/amd64).",argument:"PLATFORM"},pushOption={name:"push",shorthand:null,type:Boolean,deprecated:!1,description:"Push the image after building. With Docker this builds and pushes in one step (Buildx enables zstd compression); Podman and Buildah build, then push with zstd compression."},publicOption={name:"public",shorthand:null,type:String,deprecated:!1,description:"Set the repository visibility: `true` for public, `false` for private.",argument:"BOOLEAN",choices:["true","false"]},listSubcommand={name:"ls",aliases:["list"],description:"List container registry repositories for a project",arguments:[],options:[projectScopeOption,limitOption,nextOption,cursorOption,formatOption,jsonOption],examples:[{name:"List repositories in the linked project",value:`${packageName} vcr ls`},{name:"List repositories for a specific project as JSON",value:`${packageName} vcr ls --project my-app --json`}]},inspectSubcommand={name:"inspect",aliases:["get"],description:"Show details for a single repository",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Inspect a repository by name",value:`${packageName} vcr inspect my-repository`}]},addSubcommand={name:"create",aliases:["add"],description:"Create a container registry repository",arguments:[{name:"name",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Create a repository",value:`${packageName} vcr create my-repository`}]},configSubcommand={name:"config",aliases:[],description:"Configure a container registry repository, such as the repository's visibility",arguments:[{name:"repository",required:!0}],options:[publicOption,projectScopeOption,formatOption,jsonOption],examples:[{name:"Make a repository public",value:`${packageName} vcr config my-repository --public true`},{name:"Make a repository private",value:`${packageName} vcr config my-repository --public false`}]},removeSubcommand={name:"rm",aliases:["remove","delete"],description:"Delete a container registry repository",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,yesOption,formatOption,jsonOption],examples:[{name:"Delete a repository",value:`${packageName} vcr rm my-repository`},{name:"Delete a repository without the confirmation prompt",value:`${packageName} vcr rm my-repository --yes`}]},loginSubcommand={name:"login",aliases:[],description:"Authenticate a container tool (docker, podman, or buildah) with the Vercel Container Registry",arguments:[{name:"engine",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Log in with Docker",value:`${packageName} vcr login docker`},{name:"Log in with Podman",value:`${packageName} vcr login podman`},{name:"Log in with Buildah",value:`${packageName} vcr login buildah`},{name:"Log in for a specific project",value:`${packageName} vcr login docker --project my-app`}]},buildSubcommand={name:"build",aliases:[],description:"Build a container image tagged for the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",arguments:[{name:"engine",required:!0},{name:"path",required:!1},{name:"name",required:!1}],options:[projectScopeOption,platformOption,pushOption],examples:[{name:"Build the current directory into the linked project (repository defaults to the project name, tag to latest)",value:`${packageName} vcr build docker`},{name:"Build and push in one step (Docker Buildx enables zstd compression)",value:`${packageName} vcr build docker --push`},{name:"Build a specific context path with a repository and tag",value:`${packageName} vcr build docker ./app my-api:1.2.3`},{name:"Pass extra flags through to the container tool",value:`${packageName} vcr build docker . -- --no-cache --build-arg KEY=value`}]},pushSubcommand={name:"push",aliases:[],description:"Push a container image to the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",arguments:[{name:"engine",required:!0},{name:"name",required:!1}],options:[projectScopeOption],examples:[{name:"Push the linked project image (repository defaults to the project name, tag to latest)",value:`${packageName} vcr push docker`},{name:"Push a specific repository and tag",value:`${packageName} vcr push docker my-api:1.2.3`}]},vcrCommand={name:"vcr",aliases:[],description:"Manage Vercel Container Registry repositories and images (see `vcr image`).",arguments:[],subcommands:[listSubcommand,inspectSubcommand,addSubcommand,configSubcommand,removeSubcommand,loginSubcommand,buildSubcommand,pushSubcommand,tagsAggregateCommand,imageAggregateCommand,permissionsAggregateCommand],options:[],examples:[{name:"List repositories in the linked project",value:`${packageName} vcr ls`},{name:"Create a repository",value:`${packageName} vcr create my-app`},{name:"List images in a repository",value:`${packageName} vcr image ls my-app`}]};export{listSubcommand,inspectSubcommand,addSubcommand,configSubcommand,removeSubcommand,loginSubcommand,buildSubcommand,pushSubcommand,vcrCommand};