@hubspot/cli 7.7.21-experimental.1 → 7.7.23-experimental.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 (568) hide show
  1. package/api/__tests__/migrate.test.js +27 -29
  2. package/api/migrate.js +14 -22
  3. package/bin/cli.js +92 -97
  4. package/bin/hs +2 -2
  5. package/bin/hscms +2 -2
  6. package/bin/silenceErrors.js +1 -2
  7. package/commands/__tests__/account.test.js +29 -34
  8. package/commands/__tests__/auth.test.js +11 -16
  9. package/commands/__tests__/cms.test.js +15 -20
  10. package/commands/__tests__/config.test.js +14 -19
  11. package/commands/__tests__/create.test.js +10 -15
  12. package/commands/__tests__/customObject.test.js +14 -19
  13. package/commands/__tests__/doctor.test.js +43 -48
  14. package/commands/__tests__/feedback.test.js +7 -45
  15. package/commands/__tests__/fetch.test.js +29 -28
  16. package/commands/__tests__/filemanager.test.js +14 -19
  17. package/commands/__tests__/function.test.js +16 -21
  18. package/commands/__tests__/getStarted.test.js +45 -50
  19. package/commands/__tests__/hubdb.test.js +17 -22
  20. package/commands/__tests__/init.test.js +12 -17
  21. package/commands/__tests__/lint.test.js +13 -18
  22. package/commands/__tests__/list.test.js +18 -23
  23. package/commands/__tests__/logs.test.js +28 -27
  24. package/commands/__tests__/mcp.test.js +14 -19
  25. package/commands/__tests__/mv.test.js +14 -52
  26. package/commands/__tests__/open.test.js +13 -51
  27. package/commands/__tests__/project.test.js +44 -49
  28. package/commands/__tests__/remove.test.js +13 -51
  29. package/commands/__tests__/sandbox.test.js +14 -19
  30. package/commands/__tests__/secret.test.js +16 -21
  31. package/commands/__tests__/testAccount.test.js +16 -21
  32. package/commands/__tests__/theme.test.js +15 -20
  33. package/commands/account/__tests__/auth.test.js +11 -16
  34. package/commands/account/__tests__/clean.test.js +12 -17
  35. package/commands/account/__tests__/createOverride.test.js +10 -15
  36. package/commands/account/__tests__/info.test.js +11 -16
  37. package/commands/account/__tests__/list.test.js +11 -16
  38. package/commands/account/__tests__/remove.test.js +13 -18
  39. package/commands/account/__tests__/removeOverride.js +8 -13
  40. package/commands/account/__tests__/rename.test.js +15 -20
  41. package/commands/account/__tests__/use.test.js +10 -15
  42. package/commands/account/auth.d.ts +1 -1
  43. package/commands/account/auth.js +65 -67
  44. package/commands/account/clean.d.ts +1 -1
  45. package/commands/account/clean.js +55 -60
  46. package/commands/account/createOverride.d.ts +1 -1
  47. package/commands/account/createOverride.js +52 -57
  48. package/commands/account/info.d.ts +1 -1
  49. package/commands/account/info.js +33 -35
  50. package/commands/account/list.d.ts +1 -1
  51. package/commands/account/list.js +43 -45
  52. package/commands/account/remove.d.ts +1 -1
  53. package/commands/account/remove.js +37 -42
  54. package/commands/account/removeOverride.d.ts +1 -1
  55. package/commands/account/removeOverride.js +38 -43
  56. package/commands/account/rename.d.ts +1 -1
  57. package/commands/account/rename.js +18 -20
  58. package/commands/account/use.d.ts +1 -1
  59. package/commands/account/use.js +29 -31
  60. package/commands/account.d.ts +1 -1
  61. package/commands/account.js +23 -28
  62. package/commands/app/__tests__/migrate.test.js +29 -34
  63. package/commands/app/migrate.d.ts +2 -2
  64. package/commands/app/migrate.js +40 -43
  65. package/commands/app/secret/__tests__/add.test.js +6 -11
  66. package/commands/app/secret/__tests__/delete.test.js +6 -11
  67. package/commands/app/secret/__tests__/list.test.js +6 -11
  68. package/commands/app/secret/__tests__/update.test.js +6 -11
  69. package/commands/app/secret/add.d.ts +1 -1
  70. package/commands/app/secret/add.js +28 -30
  71. package/commands/app/secret/delete.d.ts +1 -1
  72. package/commands/app/secret/delete.js +34 -36
  73. package/commands/app/secret/list.d.ts +1 -1
  74. package/commands/app/secret/list.js +25 -27
  75. package/commands/app/secret/update.d.ts +1 -1
  76. package/commands/app/secret/update.js +32 -34
  77. package/commands/app/secret.d.ts +1 -1
  78. package/commands/app/secret.js +12 -17
  79. package/commands/app.d.ts +1 -1
  80. package/commands/app.js +6 -16
  81. package/commands/auth.d.ts +1 -1
  82. package/commands/auth.js +70 -72
  83. package/commands/cms/convertFields.d.ts +1 -1
  84. package/commands/cms/convertFields.js +34 -39
  85. package/commands/cms/getReactModule.d.ts +1 -1
  86. package/commands/cms/getReactModule.js +32 -37
  87. package/commands/cms/lighthouseScore.d.ts +1 -1
  88. package/commands/cms/lighthouseScore.js +67 -72
  89. package/commands/cms.d.ts +1 -1
  90. package/commands/cms.js +11 -16
  91. package/commands/completion.d.ts +1 -1
  92. package/commands/completion.js +10 -15
  93. package/commands/config/migrate.d.ts +1 -1
  94. package/commands/config/migrate.js +27 -32
  95. package/commands/config/set.d.ts +2 -1
  96. package/commands/config/set.js +40 -32
  97. package/commands/config.d.ts +1 -1
  98. package/commands/config.js +8 -13
  99. package/commands/create/api-sample.d.ts +1 -1
  100. package/commands/create/api-sample.js +28 -33
  101. package/commands/create/app.d.ts +1 -1
  102. package/commands/create/app.js +3 -5
  103. package/commands/create/function.d.ts +1 -1
  104. package/commands/create/function.js +9 -11
  105. package/commands/create/index.d.ts +1 -1
  106. package/commands/create/index.js +19 -24
  107. package/commands/create/module.d.ts +1 -1
  108. package/commands/create/module.js +12 -14
  109. package/commands/create/react-app.d.ts +1 -1
  110. package/commands/create/react-app.js +3 -5
  111. package/commands/create/template.d.ts +1 -1
  112. package/commands/create/template.js +12 -14
  113. package/commands/create/vue-app.d.ts +1 -1
  114. package/commands/create/vue-app.js +3 -5
  115. package/commands/create/webpack-serverless.d.ts +1 -1
  116. package/commands/create/webpack-serverless.js +3 -5
  117. package/commands/create/website-theme.d.ts +1 -1
  118. package/commands/create/website-theme.js +5 -7
  119. package/commands/create.d.ts +2 -2
  120. package/commands/create.js +30 -35
  121. package/commands/customObject/__tests__/create.test.js +13 -18
  122. package/commands/customObject/__tests__/schema.test.js +18 -23
  123. package/commands/customObject/create.d.ts +1 -1
  124. package/commands/customObject/create.js +28 -30
  125. package/commands/customObject/schema/__tests__/create.test.js +13 -18
  126. package/commands/customObject/schema/__tests__/delete.test.js +13 -18
  127. package/commands/customObject/schema/__tests__/fetch-all.test.js +13 -18
  128. package/commands/customObject/schema/__tests__/fetch.test.js +13 -18
  129. package/commands/customObject/schema/__tests__/list.test.js +13 -18
  130. package/commands/customObject/schema/__tests__/update.test.js +13 -18
  131. package/commands/customObject/schema/create.d.ts +1 -1
  132. package/commands/customObject/schema/create.js +28 -30
  133. package/commands/customObject/schema/delete.d.ts +1 -1
  134. package/commands/customObject/schema/delete.js +24 -26
  135. package/commands/customObject/schema/fetch-all.d.ts +1 -1
  136. package/commands/customObject/schema/fetch-all.js +22 -24
  137. package/commands/customObject/schema/fetch.d.ts +1 -1
  138. package/commands/customObject/schema/fetch.js +24 -26
  139. package/commands/customObject/schema/list.d.ts +1 -1
  140. package/commands/customObject/schema/list.js +13 -15
  141. package/commands/customObject/schema/update.d.ts +1 -1
  142. package/commands/customObject/schema/update.js +32 -34
  143. package/commands/customObject/schema.d.ts +1 -1
  144. package/commands/customObject/schema.js +17 -22
  145. package/commands/customObject.d.ts +1 -1
  146. package/commands/customObject.js +13 -18
  147. package/commands/doctor.d.ts +1 -1
  148. package/commands/doctor.js +28 -33
  149. package/commands/feedback.d.ts +1 -1
  150. package/commands/feedback.js +19 -24
  151. package/commands/fetch.d.ts +1 -1
  152. package/commands/fetch.js +28 -30
  153. package/commands/filemanager/__tests__/fetch.test.js +17 -22
  154. package/commands/filemanager/__tests__/upload.test.js +15 -20
  155. package/commands/filemanager/fetch.d.ts +1 -1
  156. package/commands/filemanager/fetch.js +23 -25
  157. package/commands/filemanager/upload.d.ts +1 -1
  158. package/commands/filemanager/upload.js +39 -44
  159. package/commands/filemanager.d.ts +1 -1
  160. package/commands/filemanager.js +8 -13
  161. package/commands/function/deploy.d.ts +1 -1
  162. package/commands/function/deploy.js +35 -40
  163. package/commands/function/list.d.ts +1 -1
  164. package/commands/function/list.js +24 -29
  165. package/commands/function/server.d.ts +1 -1
  166. package/commands/function/server.js +15 -17
  167. package/commands/function.d.ts +1 -1
  168. package/commands/function.js +12 -18
  169. package/commands/getStarted.d.ts +1 -1
  170. package/commands/getStarted.js +119 -125
  171. package/commands/hubdb/__tests__/clear.test.js +13 -18
  172. package/commands/hubdb/__tests__/create.test.js +13 -18
  173. package/commands/hubdb/__tests__/delete.test.js +13 -18
  174. package/commands/hubdb/__tests__/fetch.test.js +13 -18
  175. package/commands/hubdb/__tests__/list.test.js +23 -28
  176. package/commands/hubdb/clear.d.ts +1 -1
  177. package/commands/hubdb/clear.js +20 -22
  178. package/commands/hubdb/create.d.ts +1 -1
  179. package/commands/hubdb/create.js +30 -35
  180. package/commands/hubdb/delete.d.ts +1 -1
  181. package/commands/hubdb/delete.js +24 -26
  182. package/commands/hubdb/fetch.d.ts +1 -1
  183. package/commands/hubdb/fetch.js +17 -19
  184. package/commands/hubdb/list.d.ts +1 -1
  185. package/commands/hubdb/list.js +33 -35
  186. package/commands/hubdb.d.ts +1 -1
  187. package/commands/hubdb.js +18 -24
  188. package/commands/init.d.ts +1 -1
  189. package/commands/init.js +83 -88
  190. package/commands/lint.d.ts +1 -1
  191. package/commands/lint.js +24 -26
  192. package/commands/list.d.ts +1 -1
  193. package/commands/list.js +32 -37
  194. package/commands/logs.d.ts +1 -1
  195. package/commands/logs.js +35 -37
  196. package/commands/mcp/__tests__/setup.test.js +7 -12
  197. package/commands/mcp/__tests__/start.test.js +7 -12
  198. package/commands/mcp/setup.d.ts +1 -1
  199. package/commands/mcp/setup.js +17 -19
  200. package/commands/mcp/start.d.ts +1 -1
  201. package/commands/mcp/start.js +29 -34
  202. package/commands/mcp.d.ts +1 -1
  203. package/commands/mcp.js +7 -12
  204. package/commands/module/marketplace-validate.d.ts +1 -1
  205. package/commands/module/marketplace-validate.js +21 -26
  206. package/commands/module.d.ts +1 -1
  207. package/commands/module.js +7 -13
  208. package/commands/mv.d.ts +1 -1
  209. package/commands/mv.js +20 -22
  210. package/commands/open.d.ts +1 -1
  211. package/commands/open.js +19 -21
  212. package/commands/project/__tests__/add.test.js +10 -15
  213. package/commands/project/__tests__/create.test.js +14 -19
  214. package/commands/project/__tests__/deploy.test.js +96 -134
  215. package/commands/project/__tests__/devUnifiedFlow.test.js +133 -139
  216. package/commands/project/__tests__/download.test.js +14 -19
  217. package/commands/project/__tests__/installDeps.test.js +32 -70
  218. package/commands/project/__tests__/listBuilds.test.js +14 -19
  219. package/commands/project/__tests__/logs.test.js +56 -94
  220. package/commands/project/__tests__/migrate.test.js +25 -30
  221. package/commands/project/__tests__/migrateApp.test.js +17 -22
  222. package/commands/project/__tests__/open.test.js +16 -21
  223. package/commands/project/__tests__/profile.test.js +14 -19
  224. package/commands/project/__tests__/upload.test.js +18 -23
  225. package/commands/project/__tests__/watch.test.js +14 -19
  226. package/commands/project/add.d.ts +1 -1
  227. package/commands/project/add.js +34 -36
  228. package/commands/project/cloneApp.d.ts +1 -1
  229. package/commands/project/cloneApp.js +67 -72
  230. package/commands/project/create.d.ts +2 -2
  231. package/commands/project/create.js +63 -68
  232. package/commands/project/deploy.d.ts +1 -1
  233. package/commands/project/deploy.js +67 -69
  234. package/commands/project/dev/deprecatedFlow.d.ts +2 -2
  235. package/commands/project/dev/deprecatedFlow.js +52 -58
  236. package/commands/project/dev/index.d.ts +1 -1
  237. package/commands/project/dev/index.js +44 -47
  238. package/commands/project/dev/unifiedFlow.d.ts +3 -3
  239. package/commands/project/dev/unifiedFlow.js +62 -68
  240. package/commands/project/download.d.ts +1 -1
  241. package/commands/project/download.js +35 -40
  242. package/commands/project/installDeps.d.ts +1 -1
  243. package/commands/project/installDeps.js +29 -34
  244. package/commands/project/listBuilds.d.ts +1 -1
  245. package/commands/project/listBuilds.js +40 -45
  246. package/commands/project/logs.d.ts +1 -1
  247. package/commands/project/logs.js +52 -54
  248. package/commands/project/migrate.d.ts +1 -1
  249. package/commands/project/migrate.js +24 -26
  250. package/commands/project/migrateApp.d.ts +2 -2
  251. package/commands/project/migrateApp.js +18 -20
  252. package/commands/project/open.d.ts +1 -1
  253. package/commands/project/open.js +25 -30
  254. package/commands/project/profile/add.d.ts +1 -1
  255. package/commands/project/profile/add.js +68 -73
  256. package/commands/project/profile/delete.d.ts +1 -1
  257. package/commands/project/profile/delete.js +51 -56
  258. package/commands/project/profile.d.ts +1 -1
  259. package/commands/project/profile.js +9 -14
  260. package/commands/project/upload.d.ts +1 -1
  261. package/commands/project/upload.js +50 -55
  262. package/commands/project/validate.d.ts +1 -1
  263. package/commands/project/validate.js +35 -40
  264. package/commands/project/watch.d.ts +1 -1
  265. package/commands/project/watch.js +59 -61
  266. package/commands/project.d.ts +1 -1
  267. package/commands/project.js +38 -43
  268. package/commands/remove.d.ts +1 -1
  269. package/commands/remove.js +15 -17
  270. package/commands/sandbox/__tests__/create.test.js +15 -20
  271. package/commands/sandbox/__tests__/delete.test.js +15 -20
  272. package/commands/sandbox/create.d.ts +1 -1
  273. package/commands/sandbox/create.js +67 -69
  274. package/commands/sandbox/delete.d.ts +1 -1
  275. package/commands/sandbox/delete.js +94 -96
  276. package/commands/sandbox.d.ts +1 -1
  277. package/commands/sandbox.js +9 -14
  278. package/commands/secret/__tests__/addSecret.test.js +13 -18
  279. package/commands/secret/__tests__/deleteSecret.test.js +13 -18
  280. package/commands/secret/__tests__/listSecret.test.js +13 -18
  281. package/commands/secret/__tests__/updateSecret.test.js +13 -18
  282. package/commands/secret/addSecret.d.ts +1 -1
  283. package/commands/secret/addSecret.js +26 -28
  284. package/commands/secret/deleteSecret.d.ts +1 -1
  285. package/commands/secret/deleteSecret.js +27 -29
  286. package/commands/secret/listSecret.d.ts +1 -1
  287. package/commands/secret/listSecret.js +19 -21
  288. package/commands/secret/updateSecret.d.ts +1 -1
  289. package/commands/secret/updateSecret.js +25 -27
  290. package/commands/secret.d.ts +1 -1
  291. package/commands/secret.js +13 -18
  292. package/commands/testAccount/__tests__/create.test.js +17 -22
  293. package/commands/testAccount/__tests__/createConfig.test.js +6 -11
  294. package/commands/testAccount/__tests__/delete.test.js +15 -20
  295. package/commands/testAccount/create.d.ts +1 -1
  296. package/commands/testAccount/create.js +45 -53
  297. package/commands/testAccount/createConfig.d.ts +1 -1
  298. package/commands/testAccount/createConfig.js +36 -41
  299. package/commands/testAccount/delete.d.ts +1 -1
  300. package/commands/testAccount/delete.js +17 -19
  301. package/commands/testAccount.d.ts +1 -1
  302. package/commands/testAccount.js +10 -15
  303. package/commands/theme/__tests__/generate-selectors.test.js +7 -12
  304. package/commands/theme/__tests__/marketplace-validate.test.js +14 -19
  305. package/commands/theme/__tests__/preview.test.js +12 -17
  306. package/commands/theme/generate-selectors.d.ts +1 -1
  307. package/commands/theme/generate-selectors.js +23 -28
  308. package/commands/theme/marketplace-validate.d.ts +1 -1
  309. package/commands/theme/marketplace-validate.js +19 -24
  310. package/commands/theme/preview.d.ts +1 -1
  311. package/commands/theme/preview.js +60 -65
  312. package/commands/theme.d.ts +1 -1
  313. package/commands/theme.js +11 -16
  314. package/commands/upload.d.ts +1 -1
  315. package/commands/upload.js +77 -82
  316. package/commands/watch.d.ts +1 -1
  317. package/commands/watch.js +45 -51
  318. package/lang/en.d.ts +10 -23
  319. package/lang/en.js +380 -399
  320. package/lib/__tests__/accountTypes.test.js +20 -22
  321. package/lib/__tests__/buildAccount.test.js +28 -63
  322. package/lib/__tests__/commonOpts.test.js +20 -22
  323. package/lib/__tests__/dependencyManagement.test.js +46 -51
  324. package/lib/__tests__/developerTestAccounts.test.js +27 -62
  325. package/lib/__tests__/hasFeature.test.js +6 -8
  326. package/lib/__tests__/npm.test.js +15 -20
  327. package/lib/__tests__/oauth.test.js +23 -28
  328. package/lib/__tests__/parsing.test.js +18 -20
  329. package/lib/__tests__/polling.test.js +24 -26
  330. package/lib/__tests__/process.test.js +14 -19
  331. package/lib/__tests__/projectProfiles.test.js +34 -39
  332. package/lib/__tests__/sandboxSync.test.js +30 -35
  333. package/lib/__tests__/sandboxes.test.js +29 -31
  334. package/lib/__tests__/serverlessLogs.test.js +8 -13
  335. package/lib/__tests__/usageTracking.test.js +33 -34
  336. package/lib/__tests__/validation.test.js +18 -20
  337. package/lib/__tests__/yargsUtils.test.js +17 -41
  338. package/lib/accountTypes.js +24 -34
  339. package/lib/app/__tests__/migrate.test.js +94 -99
  340. package/lib/app/__tests__/migrate_legacy.test.js +29 -31
  341. package/lib/app/migrate.d.ts +3 -3
  342. package/lib/app/migrate.js +127 -145
  343. package/lib/app/migrate_legacy.d.ts +1 -1
  344. package/lib/app/migrate_legacy.js +72 -78
  345. package/lib/app/urls.js +5 -9
  346. package/lib/buildAccount.d.ts +1 -1
  347. package/lib/buildAccount.js +71 -80
  348. package/lib/commonOpts.d.ts +1 -1
  349. package/lib/commonOpts.js +42 -59
  350. package/lib/configMigrate.js +34 -38
  351. package/lib/configOptions.d.ts +5 -0
  352. package/lib/configOptions.js +44 -40
  353. package/lib/constants.d.ts +4 -0
  354. package/lib/constants.js +35 -34
  355. package/lib/customObject.js +2 -6
  356. package/lib/dependencyManagement.js +37 -45
  357. package/lib/developerTestAccounts.d.ts +1 -1
  358. package/lib/developerTestAccounts.js +34 -39
  359. package/lib/doctor/Diagnosis.d.ts +1 -1
  360. package/lib/doctor/Diagnosis.js +25 -29
  361. package/lib/doctor/DiagnosticInfoBuilder.d.ts +1 -1
  362. package/lib/doctor/DiagnosticInfoBuilder.js +30 -37
  363. package/lib/doctor/Doctor.d.ts +1 -1
  364. package/lib/doctor/Doctor.js +94 -101
  365. package/lib/doctor/__tests__/Diagnosis.test.js +9 -14
  366. package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.js +29 -34
  367. package/lib/doctor/__tests__/Doctor.test.js +24 -26
  368. package/lib/enums/exitCodes.js +1 -4
  369. package/lib/errorHandlers/index.js +32 -41
  370. package/lib/errorHandlers/suppressError.d.ts +1 -1
  371. package/lib/errorHandlers/suppressError.js +28 -31
  372. package/lib/filesystem.js +8 -15
  373. package/lib/generateSelectors.js +18 -29
  374. package/lib/hasFeature.d.ts +1 -1
  375. package/lib/hasFeature.js +3 -6
  376. package/lib/interpolation.js +11 -18
  377. package/lib/lang.d.ts +1 -1
  378. package/lib/lang.js +22 -27
  379. package/lib/links.js +16 -24
  380. package/lib/marketplaceValidate.js +29 -39
  381. package/lib/mcp/setup.js +70 -82
  382. package/lib/middleware/__test__/configMiddleware.test.js +20 -55
  383. package/lib/middleware/__test__/gitMiddleware.test.js +7 -42
  384. package/lib/middleware/__test__/notificationsMiddleware.test.js +2 -4
  385. package/lib/middleware/__test__/requestMiddleware.test.js +6 -11
  386. package/lib/middleware/__test__/utils.test.js +9 -11
  387. package/lib/middleware/__test__/yargsChecksMiddleware.test.js +9 -44
  388. package/lib/middleware/autoUpdateMiddleware.js +33 -40
  389. package/lib/middleware/configMiddleware.js +36 -42
  390. package/lib/middleware/fireAlarmMiddleware.js +12 -18
  391. package/lib/middleware/gitMiddleware.js +5 -8
  392. package/lib/middleware/notificationsMiddleware.js +16 -23
  393. package/lib/middleware/requestMiddleware.js +4 -10
  394. package/lib/middleware/utils.js +1 -4
  395. package/lib/middleware/yargsChecksMiddleware.js +10 -13
  396. package/lib/npm.js +14 -23
  397. package/lib/oauth.js +29 -35
  398. package/lib/parsing.js +3 -6
  399. package/lib/polling.js +11 -15
  400. package/lib/process.js +11 -19
  401. package/lib/projectProfiles.d.ts +2 -2
  402. package/lib/projectProfiles.js +32 -42
  403. package/lib/projects/ProjectLogsManager.js +18 -21
  404. package/lib/projects/__tests__/AppDevModeInterface.test.js +140 -145
  405. package/lib/projects/__tests__/LocalDevProcess.test.js +68 -73
  406. package/lib/projects/__tests__/LocalDevWebsocketServer.test.js +32 -37
  407. package/lib/projects/__tests__/ProjectLogsManager.test.js +56 -58
  408. package/lib/projects/__tests__/buildAndDeploy.test.js +7 -9
  409. package/lib/projects/__tests__/components.test.js +9 -14
  410. package/lib/projects/__tests__/projects.test.js +35 -40
  411. package/lib/projects/__tests__/structure.test.js +43 -81
  412. package/lib/projects/add/__tests__/legacyAddComponent.test.js +26 -28
  413. package/lib/projects/add/__tests__/v3AddComponent.test.js +25 -30
  414. package/lib/projects/add/legacyAddComponent.d.ts +1 -1
  415. package/lib/projects/add/legacyAddComponent.js +24 -30
  416. package/lib/projects/add/v3AddComponent.d.ts +1 -1
  417. package/lib/projects/add/v3AddComponent.js +36 -42
  418. package/lib/projects/buildAndDeploy.d.ts +1 -1
  419. package/lib/projects/buildAndDeploy.js +88 -97
  420. package/lib/projects/components.js +19 -25
  421. package/lib/projects/config.d.ts +1 -1
  422. package/lib/projects/config.js +32 -41
  423. package/lib/projects/create/__tests__/legacy.test.js +22 -57
  424. package/lib/projects/create/__tests__/v3.test.js +5 -7
  425. package/lib/projects/create/index.d.ts +3 -3
  426. package/lib/projects/create/index.js +19 -22
  427. package/lib/projects/create/legacy.d.ts +1 -1
  428. package/lib/projects/create/legacy.js +25 -31
  429. package/lib/projects/create/v3.d.ts +3 -3
  430. package/lib/projects/create/v3.js +49 -59
  431. package/lib/projects/ensureProjectExists.js +31 -37
  432. package/lib/projects/localDev/AppDevModeInterface.d.ts +3 -3
  433. package/lib/projects/localDev/AppDevModeInterface.js +58 -60
  434. package/lib/projects/localDev/DevServerManager.d.ts +1 -1
  435. package/lib/projects/localDev/DevServerManager.js +22 -24
  436. package/lib/projects/localDev/DevServerManagerV2.d.ts +2 -2
  437. package/lib/projects/localDev/DevServerManagerV2.js +15 -20
  438. package/lib/projects/localDev/LocalDevLogger.d.ts +1 -1
  439. package/lib/projects/localDev/LocalDevLogger.js +68 -64
  440. package/lib/projects/localDev/LocalDevManager.d.ts +1 -1
  441. package/lib/projects/localDev/LocalDevManager.js +106 -111
  442. package/lib/projects/localDev/LocalDevProcess.d.ts +5 -4
  443. package/lib/projects/localDev/LocalDevProcess.js +37 -30
  444. package/lib/projects/localDev/LocalDevState.d.ts +3 -3
  445. package/lib/projects/localDev/LocalDevState.js +3 -5
  446. package/lib/projects/localDev/LocalDevWatcher.d.ts +1 -1
  447. package/lib/projects/localDev/LocalDevWatcher.js +6 -11
  448. package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +1 -1
  449. package/lib/projects/localDev/LocalDevWebsocketServer.js +29 -27
  450. package/lib/projects/localDev/helpers.d.ts +3 -3
  451. package/lib/projects/localDev/helpers.js +156 -174
  452. package/lib/projects/structure.d.ts +4 -4
  453. package/lib/projects/structure.js +32 -78
  454. package/lib/projects/ui.js +10 -13
  455. package/lib/projects/upload.d.ts +2 -3
  456. package/lib/projects/upload.js +55 -65
  457. package/lib/projects/urls.d.ts +1 -1
  458. package/lib/projects/urls.js +15 -25
  459. package/lib/projects/watch.d.ts +1 -1
  460. package/lib/projects/watch.js +48 -54
  461. package/lib/prompts/__tests__/downloadProjectPrompt.test.js +9 -11
  462. package/lib/prompts/__tests__/projectsLogsPrompt.test.js +11 -16
  463. package/lib/prompts/accountNamePrompt.d.ts +1 -1
  464. package/lib/prompts/accountNamePrompt.js +26 -31
  465. package/lib/prompts/accountsPrompt.js +12 -15
  466. package/lib/prompts/cmsFieldPrompt.js +13 -19
  467. package/lib/prompts/createApiSamplePrompt.d.ts +1 -1
  468. package/lib/prompts/createApiSamplePrompt.js +9 -12
  469. package/lib/prompts/createDeveloperTestAccountConfigPrompt.d.ts +1 -1
  470. package/lib/prompts/createDeveloperTestAccountConfigPrompt.js +23 -26
  471. package/lib/prompts/createFunctionPrompt.js +17 -20
  472. package/lib/prompts/createModulePrompt.js +12 -15
  473. package/lib/prompts/createTemplatePrompt.js +5 -8
  474. package/lib/prompts/downloadProjectPrompt.js +17 -20
  475. package/lib/prompts/installAppPrompt.js +19 -26
  476. package/lib/prompts/personalAccessKeyPrompt.d.ts +2 -2
  477. package/lib/prompts/personalAccessKeyPrompt.js +40 -47
  478. package/lib/prompts/previewPrompt.js +15 -22
  479. package/lib/prompts/projectAddPrompt.d.ts +1 -1
  480. package/lib/prompts/projectAddPrompt.js +14 -18
  481. package/lib/prompts/projectDevTargetAccountPrompt.d.ts +1 -1
  482. package/lib/prompts/projectDevTargetAccountPrompt.js +48 -54
  483. package/lib/prompts/projectNameAndDestPrompt.d.ts +1 -1
  484. package/lib/prompts/projectNameAndDestPrompt.js +22 -29
  485. package/lib/prompts/projectNamePrompt.js +11 -14
  486. package/lib/prompts/projectsLogsPrompt.js +5 -8
  487. package/lib/prompts/promptUtils.d.ts +1 -1
  488. package/lib/prompts/promptUtils.js +17 -24
  489. package/lib/prompts/sandboxesPrompt.d.ts +1 -1
  490. package/lib/prompts/sandboxesPrompt.js +26 -30
  491. package/lib/prompts/secretPrompt.js +10 -15
  492. package/lib/prompts/selectAppPrompt.js +11 -14
  493. package/lib/prompts/selectHubDBTablePrompt.js +24 -30
  494. package/lib/prompts/selectProjectTemplatePrompt.d.ts +1 -1
  495. package/lib/prompts/selectProjectTemplatePrompt.js +10 -13
  496. package/lib/prompts/selectPublicAppForMigrationPrompt.js +22 -25
  497. package/lib/prompts/setAsDefaultAccountPrompt.js +13 -16
  498. package/lib/prompts/uploadPrompt.js +11 -17
  499. package/lib/sandboxSync.d.ts +1 -1
  500. package/lib/sandboxSync.js +58 -65
  501. package/lib/sandboxes.d.ts +1 -1
  502. package/lib/sandboxes.js +68 -76
  503. package/lib/schema.js +13 -20
  504. package/lib/serverlessLogs.js +45 -52
  505. package/lib/testUtils.js +4 -8
  506. package/lib/ui/SpinniesManager.d.ts +1 -1
  507. package/lib/ui/SpinniesManager.js +29 -34
  508. package/lib/ui/boxen.js +11 -14
  509. package/lib/ui/git.js +14 -20
  510. package/lib/ui/index.js +55 -73
  511. package/lib/ui/logger.js +10 -13
  512. package/lib/ui/serverlessFunctionLogs.js +14 -20
  513. package/lib/ui/spinniesUtils.js +24 -39
  514. package/lib/ui/supportHyperlinks.js +3 -6
  515. package/lib/ui/supportsColor.js +11 -17
  516. package/lib/ui/table.js +6 -13
  517. package/lib/upload.js +15 -21
  518. package/lib/usageTracking.js +35 -44
  519. package/lib/utils/hasFlag.js +2 -8
  520. package/lib/validation.js +48 -87
  521. package/lib/yargsUtils.d.ts +2 -1
  522. package/lib/yargsUtils.js +19 -16
  523. package/mcp-server/server.js +6 -8
  524. package/mcp-server/tools/index.js +13 -16
  525. package/mcp-server/tools/project/AddFeatureToProject.d.ts +1 -1
  526. package/mcp-server/tools/project/AddFeatureToProject.js +35 -39
  527. package/mcp-server/tools/project/CreateProjectTool.d.ts +1 -1
  528. package/mcp-server/tools/project/CreateProjectTool.js +46 -50
  529. package/mcp-server/tools/project/DeployProject.d.ts +1 -1
  530. package/mcp-server/tools/project/DeployProject.js +18 -22
  531. package/mcp-server/tools/project/GuidedWalkthroughTool.d.ts +1 -1
  532. package/mcp-server/tools/project/GuidedWalkthroughTool.js +21 -25
  533. package/mcp-server/tools/project/UploadProjectTools.d.ts +1 -1
  534. package/mcp-server/tools/project/UploadProjectTools.js +12 -19
  535. package/mcp-server/tools/project/ValidateProjectTool.d.ts +1 -1
  536. package/mcp-server/tools/project/ValidateProjectTool.js +13 -17
  537. package/mcp-server/tools/project/__tests__/AddFeatureToProject.test.js +12 -14
  538. package/mcp-server/tools/project/__tests__/CreateProjectTool.test.js +13 -15
  539. package/mcp-server/tools/project/__tests__/DeployProject.test.js +6 -8
  540. package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.js +4 -6
  541. package/mcp-server/tools/project/__tests__/UploadProjectTools.test.js +4 -6
  542. package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.js +4 -6
  543. package/mcp-server/tools/project/constants.js +3 -9
  544. package/mcp-server/types.js +1 -5
  545. package/mcp-server/utils/__tests__/command.test.js +9 -11
  546. package/mcp-server/utils/__tests__/project.test.js +12 -17
  547. package/mcp-server/utils/command.d.ts +1 -1
  548. package/mcp-server/utils/command.js +4 -11
  549. package/mcp-server/utils/content.d.ts +1 -1
  550. package/mcp-server/utils/content.js +2 -6
  551. package/mcp-server/utils/project.js +8 -14
  552. package/mcp-server/utils/toolUsageTracking.js +11 -14
  553. package/package.json +15 -11
  554. package/types/Cms.d.ts +1 -1
  555. package/types/Cms.js +1 -2
  556. package/types/LocalDev.d.ts +4 -4
  557. package/types/LocalDev.js +1 -2
  558. package/types/ProjectComponents.d.ts +2 -2
  559. package/types/ProjectComponents.js +1 -2
  560. package/types/Projects.d.ts +1 -1
  561. package/types/Projects.js +2 -5
  562. package/types/Prompts.js +1 -2
  563. package/types/Sandboxes.js +1 -2
  564. package/types/Yargs.js +1 -2
  565. package/commands/app/__tests__/install.test.d.ts +0 -1
  566. package/commands/app/__tests__/install.test.js +0 -52
  567. package/commands/app/install.d.ts +0 -8
  568. package/commands/app/install.js +0 -127
package/lang/en.js CHANGED
@@ -1,18 +1,12 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.lib = exports.commands = void 0;
7
- const chalk_1 = __importDefault(require("chalk"));
8
- const projects_1 = require("@hubspot/local-dev-lib/constants/projects");
9
- const auth_1 = require("@hubspot/local-dev-lib/constants/auth");
10
- const config_1 = require("@hubspot/local-dev-lib/constants/config");
11
- const ui_1 = require("../lib/ui");
12
- const urls_1 = require("../lib/projects/urls");
13
- const constants_1 = require("../lib/constants");
14
- const v3_1 = require("../lib/projects/create/v3");
15
- exports.commands = {
1
+ import chalk from 'chalk';
2
+ import { PLATFORM_VERSIONS } from '@hubspot/local-dev-lib/constants/projects';
3
+ import { PERSONAL_ACCESS_KEY_AUTH_METHOD } from '@hubspot/local-dev-lib/constants/auth';
4
+ import { ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME, GLOBAL_CONFIG_PATH, DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME, } from '@hubspot/local-dev-lib/constants/config';
5
+ import { uiAccountDescription, uiBetaTag, uiCommandReference, uiLink, UI_COLORS, } from '../lib/ui/index.js';
6
+ import { getProjectDetailUrl, getProjectSettingsUrl, getLocalDevUiUrl, } from '../lib/projects/urls.js';
7
+ import { PROJECT_CONFIG_FILE } from '../lib/constants.js';
8
+ import { PROJECT_WITH_APP } from '../lib/projects/create/v3.js';
9
+ export const commands = {
16
10
  generalErrors: {
17
11
  srcIsProject: (src, command) => `"${src}" is in a project folder. Did you mean "hs project ${command}"?`,
18
12
  handleDeprecatedEnvVariables: {
@@ -52,12 +46,12 @@ exports.commands = {
52
46
  },
53
47
  uploadProject: 'Would you like to upload your project to HubSpot now?',
54
48
  projectCreated: {
55
- title: chalk_1.default.bold('Next steps:'),
56
- description: `Let's prepare and upload your project to HubSpot.\nYou can use ${(0, ui_1.uiCommandReference)('hs project install-deps')} to ${chalk_1.default.bold('install dependencies')} and ${(0, ui_1.uiCommandReference)('hs project upload')} to ${chalk_1.default.bold('upload')} your project.`,
49
+ title: chalk.bold('Next steps:'),
50
+ description: `Let's prepare and upload your project to HubSpot.\nYou can use ${uiCommandReference('hs project install-deps')} to ${chalk.bold('install dependencies')} and ${uiCommandReference('hs project upload')} to ${chalk.bold('upload')} your project.`,
57
51
  },
58
52
  },
59
53
  logs: {
60
- appSelected: `We'll create a new project with a sample app for you.\nProjects are what you can use to create apps, themes, and more at HubSpot.\nUsually you'll use the ${(0, ui_1.uiCommandReference)('hs project create')} command, but we'll go ahead and make one now.`,
54
+ appSelected: `We'll create a new project with a sample app for you.\nProjects are what you can use to create apps, themes, and more at HubSpot.\nUsually you'll use the ${uiCommandReference('hs project create')} command, but we'll go ahead and make one now.`,
61
55
  dependenciesInstalled: 'Dependencies installed successfully.',
62
56
  uploadingProject: 'Uploading your project to HubSpot...',
63
57
  uploadSuccess: 'Project uploaded successfully!',
@@ -80,26 +74,26 @@ exports.commands = {
80
74
  subcommands: {
81
75
  auth: {
82
76
  describe: 'Configure authentication for your HubSpot account.',
83
- verboseDescribe: `Configure authentication for a HubSpot account. This will create or update the global config file at ${config_1.GLOBAL_CONFIG_PATH} that stores your account information.\n\nThe authentication method is ${chalk_1.default.bold(auth_1.PERSONAL_ACCESS_KEY_AUTH_METHOD.value)}, which is an access token tied to a specific user account.\n\nGlobal configuration replaces ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME}, and you will be prompted to migrate your existing config if one exists.`,
77
+ verboseDescribe: `Configure authentication for a HubSpot account. This will create or update the global config file at ${GLOBAL_CONFIG_PATH} that stores your account information.\n\nThe authentication method is ${chalk.bold(PERSONAL_ACCESS_KEY_AUTH_METHOD.value)}, which is an access token tied to a specific user account.\n\nGlobal configuration replaces ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME}, and you will be prompted to migrate your existing config if one exists.`,
84
78
  options: {
85
79
  account: 'HubSpot account to authenticate',
86
80
  personalAccessKey: 'Enter existing personal access key',
87
81
  },
88
82
  errors: {
89
83
  failedToUpdateConfig: 'Failed to update the configuration file. Please try again.',
90
- migrationNotConfirmed: `Did not migrate your configuration file. Run ${(0, ui_1.uiCommandReference)('hs auth')} to update your existing config, or use ${(0, ui_1.uiCommandReference)('hs config migrate')} to switch to the new global configuration.`,
91
- mergeNotConfirmed: `Did not merge configuration files. When you are ready to merge the deprecated config file with the global config file, run ${(0, ui_1.uiCommandReference)('hs config migrate')}.`,
84
+ migrationNotConfirmed: `Did not migrate your configuration file. Run ${uiCommandReference('hs auth')} to update your existing config, or use ${uiCommandReference('hs config migrate')} to switch to the new global configuration.`,
85
+ mergeNotConfirmed: `Did not merge configuration files. When you are ready to merge the deprecated config file with the global config file, run ${uiCommandReference('hs config migrate')}.`,
92
86
  },
93
87
  success: {
94
88
  configFileCreated: (configPath) => `Created config file "${configPath}"`,
95
- configFileUpdated: (accountId) => `Connected account ${(0, ui_1.uiAccountDescription)(accountId)} and set it as the default account`,
89
+ configFileUpdated: (accountId) => `Connected account ${uiAccountDescription(accountId)} and set it as the default account`,
96
90
  },
97
91
  },
98
92
  list: {
99
- accounts: `${chalk_1.default.bold('Accounts')}:`,
100
- defaultAccount: (account) => `${chalk_1.default.bold('Default account')}: ${account}`,
93
+ accounts: `${chalk.bold('Accounts')}:`,
94
+ defaultAccount: (account) => `${chalk.bold('Default account')}: ${account}`,
101
95
  describe: 'List names of accounts defined in config.',
102
- configPath: (configPath) => `${chalk_1.default.bold('Config path')}: ${configPath}`,
96
+ configPath: (configPath) => `${chalk.bold('Config path')}: ${configPath}`,
103
97
  labels: {
104
98
  accountId: 'Account ID',
105
99
  authType: 'Auth Type',
@@ -166,7 +160,7 @@ exports.commands = {
166
160
  },
167
161
  },
168
162
  info: {
169
- accountId: (accountId) => `${chalk_1.default.bold('Account ID')}: ${accountId}`,
163
+ accountId: (accountId) => `${chalk.bold('Account ID')}: ${accountId}`,
170
164
  describe: 'Print information about the default account, or about the account specified with the "account" option.',
171
165
  errors: {
172
166
  notUsingPersonalAccessKey: 'This command currently only supports fetching scopes for the personal access key auth type.',
@@ -176,8 +170,8 @@ exports.commands = {
176
170
  idBased: 'Print information for the account with accountId equal to "1234567"',
177
171
  nameBased: 'Print information for the account in the config with name equal to "MyAccount"',
178
172
  },
179
- name: (name) => `${chalk_1.default.bold('Account name')}: ${name}`,
180
- scopeGroups: `${chalk_1.default.bold('Scopes available')}:`,
173
+ name: (name) => `${chalk.bold('Account name')}: ${name}`,
174
+ scopeGroups: `${chalk.bold('Scopes available')}:`,
181
175
  },
182
176
  clean: {
183
177
  describe: 'Check for inactive accounts and removes them from the CLI config.',
@@ -199,10 +193,10 @@ exports.commands = {
199
193
  },
200
194
  auth: {
201
195
  describe: 'Configure authentication for your HubSpot account.',
202
- verboseDescribe: (configName, authMethod) => `Configure authentication for a HubSpot account. This will update the ${configName} file that stores your account information.\n\nThe recommended authentication method is ${chalk_1.default.bold(authMethod)}, which uses an access token tied to a specific user account.`,
196
+ verboseDescribe: (configName, authMethod) => `Configure authentication for a HubSpot account. This will update the ${configName} file that stores your account information.\n\nThe recommended authentication method is ${chalk.bold(authMethod)}, which uses an access token tied to a specific user account.`,
203
197
  errors: {
204
198
  invalidAccountIdProvided: `--account must be a number.`,
205
- globalConfigFileExists: (accountAuthCommand) => `You are using our new global configuration for account management, which is not compatible with this command. Please use ${(0, ui_1.uiCommandReference)(accountAuthCommand)} instead.`,
199
+ globalConfigFileExists: (accountAuthCommand) => `You are using our new global configuration for account management, which is not compatible with this command. Please use ${uiCommandReference(accountAuthCommand)} instead.`,
206
200
  noConfigFileFound: 'No config file was found. To create a new config file, use the "hs init" command.',
207
201
  unsupportedAuthType: (type, supportedProtocols) => `Unsupported auth type: ${type}. The only supported authentication protocols are ${supportedProtocols}.`,
208
202
  },
@@ -226,18 +220,18 @@ exports.commands = {
226
220
  describe: 'Commands for managing the CLI config file.',
227
221
  subcommands: {
228
222
  migrate: {
229
- describe: `Migrate from the deprecated ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${config_1.GLOBAL_CONFIG_PATH}.`,
230
- verboseDescribe: `This command will create or update the global configuration file in your root directory. It will archive the current config as ${config_1.ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME}.`,
223
+ describe: `Migrate from the deprecated ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${GLOBAL_CONFIG_PATH}.`,
224
+ verboseDescribe: `This command will create or update the global configuration file in your root directory. It will archive the current config as ${ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME}.`,
231
225
  errors: {
232
- noConfigToMigrate: `No ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} was found. There is nothing to migrate.`,
226
+ noConfigToMigrate: `No ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} was found. There is nothing to migrate.`,
233
227
  configNotFound: (configPath) => `A configuration file at ${configPath} could not be found. Please try again with a valid file path.`,
234
228
  },
235
229
  options: {
236
230
  force: 'Bypass prompts and overwrite any conflicting values in the global config with the deprecated config values.',
237
231
  },
238
232
  examples: {
239
- default: `Migrate from the deprecated ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${config_1.GLOBAL_CONFIG_PATH}`,
240
- configFlag: `Migrate a specific config file (specified with the config flag) to the new global config file at ${config_1.GLOBAL_CONFIG_PATH}`,
233
+ default: `Migrate from the deprecated ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${GLOBAL_CONFIG_PATH}`,
234
+ configFlag: `Migrate a specific config file (specified with the config flag) to the new global config file at ${GLOBAL_CONFIG_PATH}`,
241
235
  },
242
236
  },
243
237
  set: {
@@ -259,6 +253,9 @@ exports.commands = {
259
253
  allowAutoUpdates: {
260
254
  describe: 'Enable or disable auto updates',
261
255
  },
256
+ autoOpenBrowser: {
257
+ describe: 'Enable or disable automatic opening of the browser',
258
+ },
262
259
  },
263
260
  },
264
261
  },
@@ -324,7 +321,7 @@ exports.commands = {
324
321
  create: {
325
322
  describe: (supportedAssetTypes) => `Create HubSpot sample apps and CMS assets. Supported assets are ${supportedAssetTypes}.`,
326
323
  errors: {
327
- deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the ${(0, ui_1.uiCommandReference)(newCommand)}" command instead. Then when prompted select "${type}".`,
324
+ deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the ${uiCommandReference(newCommand)}" command instead. Then when prompted select "${type}".`,
328
325
  unsupportedAssetType: (assetType, supportedAssetTypes) => `The asset type ${assetType} is not supported. Supported asset types are ${supportedAssetTypes}.`,
329
326
  unusablePath: (path) => `The "${path}" is not a usable path to a directory.`,
330
327
  },
@@ -366,7 +363,7 @@ exports.commands = {
366
363
  },
367
364
  },
368
365
  customObject: {
369
- betaMessage: `${chalk_1.default.bold('[BETA]')} The Custom Object CLI is currently in beta and is subject to change.`,
366
+ betaMessage: `${chalk.bold('[BETA]')} The Custom Object CLI is currently in beta and is subject to change.`,
370
367
  describe: 'Commands for managing custom objects.',
371
368
  seeMoreLink: 'View our docs to find out more.',
372
369
  subcommands: {
@@ -518,9 +515,9 @@ exports.commands = {
518
515
  },
519
516
  errors: {
520
517
  generatingDiagnosis: 'Error generating diagnosis',
521
- unableToWriteOutputFile: (file, errorMessage) => `Unable to write output to ${chalk_1.default.bold(file)}, ${errorMessage}`,
518
+ unableToWriteOutputFile: (file, errorMessage) => `Unable to write output to ${chalk.bold(file)}, ${errorMessage}`,
522
519
  },
523
- outputWritten: (filename) => `Output written to ${chalk_1.default.bold(filename)}`,
520
+ outputWritten: (filename) => `Output written to ${chalk.bold(filename)}`,
524
521
  },
525
522
  fetch: {
526
523
  describe: 'Fetch a file, directory or module from HubSpot and write to a path on your computer.',
@@ -730,7 +727,7 @@ exports.commands = {
730
727
  },
731
728
  },
732
729
  list: {
733
- tables: `${chalk_1.default.bold('Tables')}:`,
730
+ tables: `${chalk.bold('Tables')}:`,
734
731
  describe: 'List HubDB tables.',
735
732
  labels: {
736
733
  label: 'Label',
@@ -744,13 +741,13 @@ exports.commands = {
744
741
  tablesDisplayed: (displayed, total, truncated) => `Displaying ${displayed} of ${total} tables${truncated
745
742
  ? `, the remaining ${truncated} tables were not displayed.`
746
743
  : '.'}`,
747
- viewTablesLink: (baseUrl, accountId) => (0, ui_1.uiLink)('Manage tables in HubSpot', `${baseUrl}/hubdb/${accountId}`),
744
+ viewTablesLink: (baseUrl, accountId) => uiLink('Manage tables in HubSpot', `${baseUrl}/hubdb/${accountId}`),
748
745
  },
749
746
  },
750
747
  },
751
748
  init: {
752
749
  describe: 'Create a CLI config file and configure authentication for your HubSpot account.',
753
- verboseDescribe: (configName, command, authMethod) => `Configure authentication for a HubSpot account. This will create a ${configName} file to store your account information. To configure authentication for additional accounts, run ${command}.\n\nThe recommended authentication method is ${chalk_1.default.bold(authMethod)}, which uses an access token tied to a specific user account.`,
750
+ verboseDescribe: (configName, command, authMethod) => `Configure authentication for a HubSpot account. This will create a ${configName} file to store your account information. To configure authentication for additional accounts, run ${command}.\n\nThe recommended authentication method is ${chalk.bold(authMethod)}, which uses an access token tied to a specific user account.`,
754
751
  options: {
755
752
  authType: {
756
753
  describe: 'Authentication mechanism',
@@ -774,7 +771,7 @@ exports.commands = {
774
771
  invalidAccountIdProvided: `--account must be a number.`,
775
772
  configFileExists: (configPath) => `The config file ${configPath} already exists.`,
776
773
  bothConfigFilesNotAllowed: (path) => `Unable to create config file, because there is an existing one at "${path}". To create a new config file, delete the existing one and try again.`,
777
- globalConfigFileExists: `You are using our new global configuration for account management, which is not compatible with this command. Please use ${(0, ui_1.uiCommandReference)('hs account auth')} instead.`,
774
+ globalConfigFileExists: `You are using our new global configuration for account management, which is not compatible with this command. Please use ${uiCommandReference('hs account auth')} instead.`,
778
775
  },
779
776
  },
780
777
  lint: {
@@ -841,10 +838,10 @@ exports.commands = {
841
838
  client: 'Target applications to configure',
842
839
  docsSearch: 'Should the docs search mcp server be installed',
843
840
  },
844
- success: (derivedTargets) => `You can now use the HubSpot CLI MCP Server in ${derivedTargets.join(', ')}. ${chalk_1.default.bold('You may need to restart these tools to apply the changes')}.`,
841
+ success: (derivedTargets) => `You can now use the HubSpot CLI MCP Server in ${derivedTargets.join(', ')}. ${chalk.bold('You may need to restart these tools to apply the changes')}.`,
845
842
  errors: {
846
843
  needsNode20: `This feature requires node >=20`,
847
- errorParsingJsonFIle: (filename, errorMessage) => `Unable to update ${chalk_1.default.bold(filename)} due to invalid JSON: ${errorMessage}`,
844
+ errorParsingJsonFIle: (filename, errorMessage) => `Unable to update ${chalk.bold(filename)} due to invalid JSON: ${errorMessage}`,
848
845
  },
849
846
  spinners: {
850
847
  failedToConfigure: 'Failed to configure the HubSpot mcp server.',
@@ -905,15 +902,15 @@ exports.commands = {
905
902
  project: {
906
903
  profile: {
907
904
  describe: 'Commands for managing project profiles',
908
- verboseDescribe: `Commands for managing project profiles\n\nProfiles are stored at the root of your project's source directory and they make configuration dynamic. Use them to couple specialized configurations of your project to specific HubSpot accounts.\n\nRun ${(0, ui_1.uiCommandReference)('hs project profile add')} to get started!`,
905
+ verboseDescribe: `Commands for managing project profiles\n\nProfiles are stored at the root of your project's source directory and they make configuration dynamic. Use them to couple specialized configurations of your project to specific HubSpot accounts.\n\nRun ${uiCommandReference('hs project profile add')} to get started!`,
909
906
  add: {
910
907
  describe: 'Add a new project profile',
911
- verboseDescribe: `Add a new project profile\n\nProfiles enable you to reference variables in your component configuration files. Use the syntax ${chalk_1.default.bold('\${VARIABLE_NAME}')} to reference profile variables in your component configuration files. Then target the profile using the ${(0, ui_1.uiCommandReference)('--profile')} flag when you upload your project.`,
908
+ verboseDescribe: `Add a new project profile\n\nProfiles enable you to reference variables in your component configuration files. Use the syntax ${chalk.bold('\${VARIABLE_NAME}')} to reference profile variables in your component configuration files. Then target the profile using the ${uiCommandReference('--profile')} flag when you upload your project.`,
912
909
  example: 'Add a new project profile named hsprofile.qa.json',
913
910
  logs: {
914
- copyExistingProfile: (profileName) => `Found an existing profile. We can copy the variables from ${chalk_1.default.bold(profileName)} into your new profile.`,
911
+ copyExistingProfile: (profileName) => `Found an existing profile. We can copy the variables from ${chalk.bold(profileName)} into your new profile.`,
915
912
  copyExistingProfiles: 'We can copy the variables from one of your existing profiles into your new profile.',
916
- profileAdded: (profileName) => `Project profile ${chalk_1.default.bold(profileName)} was successfully added`,
913
+ profileAdded: (profileName) => `Project profile ${chalk.bold(profileName)} was successfully added`,
917
914
  },
918
915
  prompts: {
919
916
  namePrompt: 'Enter a name for the new project profile: ',
@@ -924,14 +921,14 @@ exports.commands = {
924
921
  invalidProfileName: 'Profile name cannot contain special characters or spaces',
925
922
  },
926
923
  warnings: {
927
- duplicateTargetAccount: (targetAccountId) => `The account ${(0, ui_1.uiAccountDescription)(targetAccountId)} is being used in an existing profile. Make sure to edit your project's name between uploads if you do not want to overwrite the existing project in this account.`,
924
+ duplicateTargetAccount: (targetAccountId) => `The account ${uiAccountDescription(targetAccountId)} is being used in an existing profile. Make sure to edit your project's name between uploads if you do not want to overwrite the existing project in this account.`,
928
925
  },
929
926
  errors: {
930
927
  noProjectConfig: 'No project config found. Please run this command from a project directory.',
931
- profileExists: (profileName) => `Profile ${chalk_1.default.bold(profileName)} already exists. Please choose a different name.`,
928
+ profileExists: (profileName) => `Profile ${chalk.bold(profileName)} already exists. Please choose a different name.`,
932
929
  invalidTargetAccount: 'Target account is not configured in the CLI',
933
930
  noAccountsConfigured: 'No accounts configured in the CLI',
934
- failedToLoadProfile: (profileName) => `Unable to copy variables. Failed to load profile ${chalk_1.default.bold(profileName)}`,
931
+ failedToLoadProfile: (profileName) => `Unable to copy variables. Failed to load profile ${chalk.bold(profileName)}`,
935
932
  failedToCreateProfile: 'Failed to create profile',
936
933
  },
937
934
  positionals: {
@@ -945,22 +942,22 @@ exports.commands = {
945
942
  describe: 'Delete an existing project profile',
946
943
  example: 'Delete a project profile named hsprofile.qa.json',
947
944
  logs: {
948
- profileDeleted: (profileName) => `Project profile ${chalk_1.default.bold(profileName)} was successfully deleted`,
949
- deletedProject: (accountId) => `Successfully deleted the project from ${(0, ui_1.uiAccountDescription)(accountId)}`,
950
- didNotDeleteProject: (accountId) => `Did not delete the project from ${(0, ui_1.uiAccountDescription)(accountId)}`,
945
+ profileDeleted: (profileName) => `Project profile ${chalk.bold(profileName)} was successfully deleted`,
946
+ deletedProject: (accountId) => `Successfully deleted the project from ${uiAccountDescription(accountId)}`,
947
+ didNotDeleteProject: (accountId) => `Did not delete the project from ${uiAccountDescription(accountId)}`,
951
948
  },
952
949
  debug: {
953
- failedToLoadProfile: (profileName) => `Failed to load profile ${chalk_1.default.bold(profileName)}`,
950
+ failedToLoadProfile: (profileName) => `Failed to load profile ${chalk.bold(profileName)}`,
954
951
  },
955
952
  prompts: {
956
953
  deleteProfilePrompt: 'Select a profile to delete from your project',
957
- deleteProjectPrompt: (accountId) => `Would you like to delete this project from ${(0, ui_1.uiAccountDescription)(accountId)}?`,
954
+ deleteProjectPrompt: (accountId) => `Would you like to delete this project from ${uiAccountDescription(accountId)}?`,
958
955
  },
959
956
  errors: {
960
957
  noProjectConfig: 'No project config found. Please run this command from a project directory.',
961
- noProfileFound: (profileName) => `No profile with filename ${chalk_1.default.bold(profileName)} found in your project.`,
958
+ noProfileFound: (profileName) => `No profile with filename ${chalk.bold(profileName)} found in your project.`,
962
959
  noProfilesFound: 'No profiles found in your project.',
963
- failedToDeleteProfile: (profileName) => `Unable to delete profile ${chalk_1.default.bold(profileName)}. Please try again.`,
960
+ failedToDeleteProfile: (profileName) => `Unable to delete profile ${chalk.bold(profileName)}. Please try again.`,
964
961
  },
965
962
  positionals: {
966
963
  name: 'The name of the project profile',
@@ -974,15 +971,15 @@ exports.commands = {
974
971
  placeholderAccountSelection: 'Using default account as target account (for now)',
975
972
  learnMoreLocalDevServer: 'Learn more about the projects local dev server',
976
973
  accountTypeInformation: 'Testing in a developer test account is strongly recommended, but you can use a sandbox account if your plan allows you to create one.',
977
- learnMoreMessage: `\nVisit our ${(0, ui_1.uiLink)('docs on Developer Test and Sandbox accounts', 'https://developers.hubspot.com/docs/getting-started/account-types')} to learn more.`,
974
+ learnMoreMessage: `\nVisit our ${uiLink('docs on Developer Test and Sandbox accounts', 'https://developers.hubspot.com/docs/getting-started/account-types')} to learn more.`,
978
975
  },
979
976
  errors: {
980
977
  noProjectConfig: 'No project detected. Please run this command again from a project directory.',
981
- noAccount: (accountId) => `An error occurred while reading account ${(0, ui_1.uiAccountDescription)(accountId)} from your config. Run ${(0, ui_1.uiCommandReference)('hs auth')} to re-auth this account.`,
982
- noAccountsInConfig: (authCommand) => `No accounts found in your config. Run ${chalk_1.default.bold(authCommand)} to configure a HubSpot account with the CLI.`,
978
+ noAccount: (accountId) => `An error occurred while reading account ${uiAccountDescription(accountId)} from your config. Run ${uiCommandReference('hs auth')} to re-auth this account.`,
979
+ noAccountsInConfig: (authCommand) => `No accounts found in your config. Run ${chalk.bold(authCommand)} to configure a HubSpot account with the CLI.`,
983
980
  invalidProjectComponents: 'Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development.',
984
- noRunnableComponents: `No supported components were found in this project. Run ${(0, ui_1.uiCommandReference)('hs project add')} to see a list of available components and add one to your project.`,
985
- accountNotCombined: `\nLocal development of unified apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using ${(0, ui_1.uiCommandReference)('hs account use')}.`,
981
+ noRunnableComponents: `No supported components were found in this project. Run ${uiCommandReference('hs project add')} to see a list of available components and add one to your project.`,
982
+ accountNotCombined: `\nLocal development of unified apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using ${uiCommandReference('hs account use')}.`,
986
983
  unsupportedAccountFlagLegacy: 'The --projectAccount and --testingAccount flags are not supported for projects with platform versions earlier than 2025.2.',
987
984
  unsupportedAccountFlagV3: 'The --account flag is is not supported supported for projects with platform versions 2025.2 and newer. Use --testingAccount and --projectAccount flags to specify accounts to use for local dev',
988
985
  },
@@ -1004,8 +1001,8 @@ exports.commands = {
1004
1001
  cannotNestProjects: (projectDir) => `A project already exists at ${projectDir}. Projects cannot be nested within other projects. Please choose a different destination and try again.`,
1005
1002
  },
1006
1003
  logs: {
1007
- success: (projectName, projectDest) => `\nProject ${chalk_1.default.bold(projectName)} was successfully created in ${projectDest}`,
1008
- welcomeMessage: `\n${chalk_1.default.bold('Welcome to HubSpot Developer Projects!')}`,
1004
+ success: (projectName, projectDest) => `\nProject ${chalk.bold(projectName)} was successfully created in ${projectDest}`,
1005
+ welcomeMessage: `\n${chalk.bold('Welcome to HubSpot Developer Projects!')}`,
1009
1006
  },
1010
1007
  prompts: {
1011
1008
  parentComponents: '[--project-base] What would you like in your project?',
@@ -1042,7 +1039,7 @@ exports.commands = {
1042
1039
  describe: 'Authentication model for the application.',
1043
1040
  },
1044
1041
  features: {
1045
- describe: `Features to include in the project. Only valid if project-base is ${v3_1.PROJECT_WITH_APP}`,
1042
+ describe: `Features to include in the project. Only valid if project-base is ${PROJECT_WITH_APP}`,
1046
1043
  },
1047
1044
  },
1048
1045
  },
@@ -1068,17 +1065,17 @@ exports.commands = {
1068
1065
  },
1069
1066
  deprecationWarning: (oldCommand, newCommand) => `The ${oldCommand} command is deprecated and will be removed. Use ${newCommand} going forward.`,
1070
1067
  migrationStatus: {
1071
- inProgress: () => `Converting app configuration to ${chalk_1.default.bold('public-app.json')} component definition ...`,
1072
- success: () => `${chalk_1.default.bold('Your app was converted and build #1 is deployed')}`,
1068
+ inProgress: () => `Converting app configuration to ${chalk.bold('public-app.json')} component definition ...`,
1069
+ success: () => `${chalk.bold('Your app was converted and build #1 is deployed')}`,
1073
1070
  done: () => 'Converting app configuration to public-app.json component definition ... DONE',
1074
1071
  failure: () => 'Converting app configuration to public-app.json component definition ... FAILED',
1075
1072
  },
1076
1073
  warning: {
1077
- title: () => `${chalk_1.default.bold('You are about to migrate an app to the projects framework')}`,
1078
- projectConversion: () => `${chalk_1.default.bold('The selected app will be converted to a project component.')}`,
1079
- appConfig: () => `All supported app configuration will be moved to the ${chalk_1.default.bold('public-app.json')} component definition file. Future updates to those features must be made through the project build and deploy pipeline, not the developer account UI.`,
1074
+ title: () => `${chalk.bold('You are about to migrate an app to the projects framework')}`,
1075
+ projectConversion: () => `${chalk.bold('The selected app will be converted to a project component.')}`,
1076
+ appConfig: () => `All supported app configuration will be moved to the ${chalk.bold('public-app.json')} component definition file. Future updates to those features must be made through the project build and deploy pipeline, not the developer account UI.`,
1080
1077
  buildAndDeploy: 'This will create a new project with a single app component and immediately build and deploy it to your developer account (build #1).',
1081
- existingApps: () => `${chalk_1.default.bold('This will not affect existing app users or installs.')}`,
1078
+ existingApps: () => `${chalk.bold('This will not affect existing app users or installs.')}`,
1082
1079
  copyApp: 'We strongly recommend making a copy of your app to test this process in a development app before replacing production.',
1083
1080
  },
1084
1081
  migrationInterrupted: '\nThe command is terminated, but app migration is still in progress. Please check your account to ensure that the project and associated app have been created successfully.',
@@ -1109,13 +1106,13 @@ exports.commands = {
1109
1106
  },
1110
1107
  },
1111
1108
  cloneStatus: {
1112
- inProgress: () => `Cloning app configuration to ${chalk_1.default.bold('public-app.json')} component definition ...`,
1109
+ inProgress: () => `Cloning app configuration to ${chalk.bold('public-app.json')} component definition ...`,
1113
1110
  done: 'Cloning app configuration to public-app.json component definition ... DONE',
1114
1111
  success: (dest) => `Your cloned project was created in ${dest}`,
1115
1112
  failure: 'Cloning app configuration to public-app.json component definition ... FAILED',
1116
1113
  },
1117
1114
  errors: {
1118
- invalidAccountTypeTitle: () => `${chalk_1.default.bold('Developer account not targeted')}`,
1115
+ invalidAccountTypeTitle: () => `${chalk.bold('Developer account not targeted')}`,
1119
1116
  invalidAccountTypeDescription: (useCommand, authCommand) => `Only public apps created in a developer account can be converted to a project component. Select a connected developer account with ${useCommand} or ${authCommand} and try again.`,
1120
1117
  couldNotWriteConfigPath: (configPath) => `Failed to write project config at ${configPath}`,
1121
1118
  },
@@ -1139,7 +1136,7 @@ exports.commands = {
1139
1136
  describe: 'Which features to include with the application.',
1140
1137
  },
1141
1138
  },
1142
- creatingComponent: (projectName) => `\nAdding a new app feature to ${chalk_1.default.bold(projectName)}\n`,
1139
+ creatingComponent: (projectName) => `\nAdding a new app feature to ${chalk.bold(projectName)}\n`,
1143
1140
  success: (componentName, multiple = false) => `${componentName || 'An app'} ${multiple ? 'were' : 'was'} successfully added to your ${componentName ? 'app' : 'project'}.`,
1144
1141
  error: {
1145
1142
  failedToDownloadComponent: 'Failed to download project. Please try again later.',
@@ -1165,10 +1162,10 @@ exports.commands = {
1165
1162
  deploy: 'Deploy error: an unknown error occurred.',
1166
1163
  noBuilds: 'Deploy error: no builds for this project were found.',
1167
1164
  noBuildId: 'You must specify a build to deploy',
1168
- projectNotFound: (accountId, projectName) => `The project ${chalk_1.default.bold(projectName)} does not exist in account ${(0, ui_1.uiAccountDescription)(accountId)}. Run ${(0, ui_1.uiCommandReference)('hs project upload')} to upload your project files to HubSpot.`,
1169
- buildIdDoesNotExist: (accountId, buildId, projectName) => `Build ${buildId} does not exist for project ${chalk_1.default.bold(projectName)}. ${(0, ui_1.uiLink)('View project builds in HubSpot', (0, urls_1.getProjectDetailUrl)(projectName, accountId))}`,
1170
- buildAlreadyDeployed: (accountId, buildId, projectName) => `Build ${buildId} is already deployed. ${(0, ui_1.uiLink)('View project builds in HubSpot', (0, urls_1.getProjectDetailUrl)(projectName, accountId))}`,
1171
- deployContainsRemovals: (componentName) => `- This deploy would remove the ${chalk_1.default.bold(componentName)} component. To proceed, run the deploy command with the ${(0, ui_1.uiCommandReference)('--force')} flag`,
1165
+ projectNotFound: (accountId, projectName) => `The project ${chalk.bold(projectName)} does not exist in account ${uiAccountDescription(accountId)}. Run ${uiCommandReference('hs project upload')} to upload your project files to HubSpot.`,
1166
+ buildIdDoesNotExist: (accountId, buildId, projectName) => `Build ${buildId} does not exist for project ${chalk.bold(projectName)}. ${uiLink('View project builds in HubSpot', getProjectDetailUrl(projectName, accountId))}`,
1167
+ buildAlreadyDeployed: (accountId, buildId, projectName) => `Build ${buildId} is already deployed. ${uiLink('View project builds in HubSpot', getProjectDetailUrl(projectName, accountId))}`,
1168
+ deployContainsRemovals: (componentName) => `- This deploy would remove the ${chalk.bold(componentName)} component. To proceed, run the deploy command with the ${uiCommandReference('--force')} flag`,
1172
1169
  },
1173
1170
  examples: {
1174
1171
  default: 'Deploy the latest build of the current project',
@@ -1210,7 +1207,7 @@ exports.commands = {
1210
1207
  noProjectConfig: 'No project detected. Run this command again from a project directory.',
1211
1208
  failedToFetchProjectDetails: 'There was an error fetching project details',
1212
1209
  noFunctionsLinkText: 'Visit developer docs',
1213
- noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${(0, ui_1.uiCommandReference)('hs project logs --help')} to learn more about logs\n\t- ${(0, ui_1.uiLink)('Visit developer docs', 'https://developers.hubspot.com/docs/platform/serverless-functions')} to learn more about serverless functions`,
1210
+ noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${uiCommandReference('hs project logs --help')} to learn more about logs\n\t- ${uiLink('Visit developer docs', 'https://developers.hubspot.com/docs/platform/serverless-functions')} to learn more about serverless functions`,
1214
1211
  noFunctionWithName: (name) => `No function with name "${name}"`,
1215
1212
  functionNotDeployed: (name) => `The function with name "${name}" is not deployed`,
1216
1213
  projectLogsManagerNotInitialized: 'Function called on ProjectLogsManager before initialization',
@@ -1263,7 +1260,7 @@ exports.commands = {
1263
1260
  autoDeployDisabled: (deployCommand) => `Automatic deploys are disabled for this project. Run ${deployCommand} to deploy this build.`,
1264
1261
  },
1265
1262
  errors: {
1266
- projectLockedError: () => `Your project is locked. This may mean that another user is running the ${chalk_1.default.bold('`hs project dev`')} command for this project. If this is you, unlock the project in Projects UI.`,
1263
+ projectLockedError: () => `Your project is locked. This may mean that another user is running the ${chalk.bold('`hs project dev`')} command for this project. If this is you, unlock the project in Projects UI.`,
1267
1264
  },
1268
1265
  options: {
1269
1266
  forceCreate: {
@@ -1281,7 +1278,7 @@ exports.commands = {
1281
1278
  },
1282
1279
  logs: {
1283
1280
  processExited: 'Stopping watcher...',
1284
- watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${(0, ui_1.uiCommandReference)('hs project watch')}.`,
1281
+ watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${uiCommandReference('hs project watch')}.`,
1285
1282
  resuming: 'Resuming watcher...',
1286
1283
  uploadSucceeded: (remotePath, filePath) => `Uploaded file "${filePath}" to "${remotePath}"`,
1287
1284
  deleteFileSucceeded: (remotePath) => `Deleted file "${remotePath}"`,
@@ -1305,7 +1302,7 @@ exports.commands = {
1305
1302
  },
1306
1303
  errors: {
1307
1304
  projectConfigNotFound: 'No project config found. Please ensure that you are in a project directory.',
1308
- projectLockedError: `Your project is locked. This may mean that another user is running the ${chalk_1.default.bold(`hs project dev`)} command for this project. If this is you, unlock the project in Projects UI.`,
1305
+ projectLockedError: `Your project is locked. This may mean that another user is running the ${chalk.bold(`hs project dev`)} command for this project. If this is you, unlock the project in Projects UI.`,
1309
1306
  uploadFailed: (remotePath, filePath) => `Failed to upload file "${filePath}" to "${remotePath}"`,
1310
1307
  deleteFileFailed: (remotePath) => `Failed to delete file "${remotePath}"`,
1311
1308
  deleteFolderFailed: (remotePath) => `Failed to delete folder "${remotePath}"`,
@@ -1322,7 +1319,7 @@ exports.commands = {
1322
1319
  },
1323
1320
  errors: {
1324
1321
  downloadFailed: 'Something went wrong downloading the project',
1325
- projectNotFound: (projectName, accountId) => `Your project ${chalk_1.default.bold(projectName)} could not be found in ${accountId}`,
1322
+ projectNotFound: (projectName, accountId) => `Your project ${chalk.bold(projectName)} could not be found in ${accountId}`,
1326
1323
  },
1327
1324
  warnings: {
1328
1325
  cannotDownloadWithinProject: 'Cancelling project download. Please run the command again outside the context of an existing project.',
@@ -1354,8 +1351,8 @@ exports.commands = {
1354
1351
  feedback: {
1355
1352
  describe: 'Leave feedback or file a bug report.',
1356
1353
  openPrompt: 'Open the feedback form in your browser?',
1357
- success: (url) => `We opened ${(0, ui_1.uiLink)('the developer feedback form', url)} in your browser.`,
1358
- error: (url) => `Navigate to ${(0, ui_1.uiLink)('the developer feedback form', url)} to leave feedback.`,
1354
+ success: (url) => `We opened ${uiLink('the developer feedback form', url)} in your browser.`,
1355
+ error: (url) => `Navigate to ${uiLink('the developer feedback form', url)} to leave feedback.`,
1359
1356
  },
1360
1357
  installDeps: {
1361
1358
  help: {
@@ -1371,7 +1368,7 @@ exports.commands = {
1371
1368
  installingDependenciesFailed: (directory) => `Installing dependencies for ${directory} failed`,
1372
1369
  noProjectConfig: 'No project detected. Run this command from a project directory.',
1373
1370
  noPackageJsonInProject: (projectName, link) => `No dependencies to install. The project ${projectName} folder might be missing component or subcomponent files. ${link}`,
1374
- packageManagerNotInstalled: (packageManager, link) => `This command depends on ${packageManager}, install ${chalk_1.default.bold(link)}`,
1371
+ packageManagerNotInstalled: (packageManager, link) => `This command depends on ${packageManager}, install ${chalk.bold(link)}`,
1375
1372
  },
1376
1373
  validate: {
1377
1374
  describe: 'Validate the project before uploading',
@@ -1390,9 +1387,9 @@ exports.commands = {
1390
1387
  },
1391
1388
  remove: {
1392
1389
  describe: 'Delete a file or folder from the HubSpot CMS.',
1393
- deleted: (path, accountId) => `Deleted "${path}" from account ${(0, ui_1.uiAccountDescription)(accountId)}`,
1390
+ deleted: (path, accountId) => `Deleted "${path}" from account ${uiAccountDescription(accountId)}`,
1394
1391
  errors: {
1395
- deleteFailed: (path, accountId) => `Deleting "${path}" from account ${(0, ui_1.uiAccountDescription)(accountId)} failed`,
1392
+ deleteFailed: (path, accountId) => `Deleting "${path}" from account ${uiAccountDescription(accountId)} failed`,
1396
1393
  },
1397
1394
  positionals: {
1398
1395
  path: 'Remote hubspot path',
@@ -1404,39 +1401,39 @@ exports.commands = {
1404
1401
  create: {
1405
1402
  developer: {
1406
1403
  loading: {
1407
- add: (accountName) => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
1408
- fail: (accountName) => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
1409
- succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
1404
+ add: (accountName) => `Creating developer sandbox ${chalk.bold(accountName)}`,
1405
+ fail: (accountName) => `Failed to create a developer sandbox ${chalk.bold(accountName)}.`,
1406
+ succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
1410
1407
  },
1411
1408
  success: {
1412
1409
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
1413
1410
  },
1414
1411
  failure: {
1415
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1416
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
1417
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
1412
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1413
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
1414
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk.bold('hs accounts use')}.`,
1418
1415
  scopes: {
1419
1416
  message: "The personal access key you provided doesn't include developer sandbox permissions.",
1420
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1417
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1421
1418
  },
1422
1419
  },
1423
1420
  },
1424
1421
  standard: {
1425
1422
  loading: {
1426
- add: (accountName) => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
1427
- fail: (accountName) => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
1428
- succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
1423
+ add: (accountName) => `Creating standard sandbox ${chalk.bold(accountName)}`,
1424
+ fail: (accountName) => `Failed to create a standard sandbox ${chalk.bold(accountName)}.`,
1425
+ succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
1429
1426
  },
1430
1427
  success: {
1431
1428
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
1432
1429
  },
1433
1430
  failure: {
1434
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1435
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
1436
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
1431
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1432
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
1433
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk.bold('hs accounts use')}.`,
1437
1434
  scopes: {
1438
1435
  message: "The personal access key you provided doesn't include standard sandbox permissions.",
1439
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1436
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1440
1437
  },
1441
1438
  },
1442
1439
  },
@@ -1450,8 +1447,8 @@ exports.commands = {
1450
1447
  examples: {
1451
1448
  default: 'Deletes the sandbox account named MySandboxAccount.',
1452
1449
  },
1453
- confirm: (account) => `Delete sandbox ${chalk_1.default.bold(account)}? All data for this sandbox will be permanently deleted.`,
1454
- defaultAccountWarning: (account) => `The sandbox ${chalk_1.default.bold(account)} is currently set as the default account.`,
1450
+ confirm: (account) => `Delete sandbox ${chalk.bold(account)}? All data for this sandbox will be permanently deleted.`,
1451
+ defaultAccountWarning: (account) => `The sandbox ${chalk.bold(account)} is currently set as the default account.`,
1455
1452
  success: {
1456
1453
  delete: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully.`,
1457
1454
  deleteDefault: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully and removed as the default account.`,
@@ -1463,9 +1460,9 @@ exports.commands = {
1463
1460
  noSandboxAccounts: (authCommand) => `There are no sandboxes connected to the CLI. To add a sandbox, run ${authCommand}.`,
1464
1461
  noSandboxAccountId: "This sandbox can't be deleted from the CLI because we could not find the associated sandbox account.",
1465
1462
  noParentAccount: (authCommand) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${authCommand} and add the parent account.`,
1466
- objectNotFound: (account) => `Sandbox ${chalk_1.default.bold(account)} may have been deleted through the UI. The account has been removed from the config.`,
1467
- noParentPortalAvailable: (command, url) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${command}. You can also delete the sandbox from the HubSpot management tool: ${chalk_1.default.bold(url)}.`,
1468
- invalidKey: (account, authCommand) => `Your personal access key for account ${chalk_1.default.bold(account)} is inactive. To re-authenticate, please run ${authCommand}.`,
1463
+ objectNotFound: (account) => `Sandbox ${chalk.bold(account)} may have been deleted through the UI. The account has been removed from the config.`,
1464
+ noParentPortalAvailable: (command, url) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${command}. You can also delete the sandbox from the HubSpot management tool: ${chalk.bold(url)}.`,
1465
+ invalidKey: (account, authCommand) => `Your personal access key for account ${chalk.bold(account)} is inactive. To re-authenticate, please run ${authCommand}.`,
1469
1466
  },
1470
1467
  options: {
1471
1468
  force: {
@@ -1479,18 +1476,18 @@ exports.commands = {
1479
1476
  },
1480
1477
  sync: {
1481
1478
  loading: {
1482
- add: (accountName) => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
1483
- fail: (accountName) => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
1484
- succeed: (accountName) => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
1479
+ add: (accountName) => `Syncing sandbox ${chalk.bold(accountName)}`,
1480
+ fail: (accountName) => `Failed to sync sandbox ${chalk.bold(accountName)}.`,
1481
+ succeed: (accountName) => `Successfully synced sandbox ${chalk.bold(accountName)}.`,
1485
1482
  },
1486
1483
  success: {
1487
1484
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
1488
1485
  },
1489
1486
  failure: {
1490
- invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1487
+ invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1491
1488
  scopes: {
1492
1489
  message: "The personal access key you provided doesn't include sandbox sync permissions.",
1493
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1490
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1494
1491
  },
1495
1492
  },
1496
1493
  },
@@ -1498,28 +1495,6 @@ exports.commands = {
1498
1495
  app: {
1499
1496
  describe: 'Commands for managing apps.',
1500
1497
  subcommands: {
1501
- install: {
1502
- describe: 'Install an OAuth app into a test account.',
1503
- options: {
1504
- appUid: 'The uid of the app to install',
1505
- projectName: 'The name of the project that contains the app',
1506
- },
1507
- positionals: {
1508
- testAccountId: 'The id of the test account to install the app into',
1509
- },
1510
- errors: {
1511
- mustSpecifyProjectName: `You must specify a project name. Use the ${(0, ui_1.uiCommandReference)('--project-name')} flag to specify the project name or run this command from within a project directory.`,
1512
- noAppUidFound: `No app uid found. Please specify the app uid with the ${(0, ui_1.uiCommandReference)('--app-uid')} flag or run this command from within a project that contains an app.`,
1513
- appMustBeOauth: 'This command only supports installing oauth apps. Please specify an app with oauth auth type.',
1514
- },
1515
- polling: {
1516
- start: 'Installing app...',
1517
- success: 'App installed successfully',
1518
- failure: 'App installation failed',
1519
- error: 'Error installing app',
1520
- },
1521
- example: 'Install the app with uid my-app-uid from the project named "my-project" into the target account with id 1234567890',
1522
- },
1523
1498
  secret: {
1524
1499
  describe: 'Commands for managing secrets.',
1525
1500
  subcommands: {
@@ -1529,7 +1504,7 @@ exports.commands = {
1529
1504
  name: 'Name of the secret',
1530
1505
  },
1531
1506
  errors: {
1532
- noApps: `Please create a new app to add an app secret. Use ${(0, ui_1.uiCommandReference)('hs project create')} to create a new project and begin the app creation process.`,
1507
+ noApps: `Please create a new app to add an app secret. Use ${uiCommandReference('hs project create')} to create a new project and begin the app creation process.`,
1533
1508
  },
1534
1509
  options: {
1535
1510
  app: 'The app id to set the secret for',
@@ -1746,7 +1721,7 @@ exports.commands = {
1746
1721
  invalidPath: (path) => `The path "${path}" is not a path to a file or folder`,
1747
1722
  uploadFailed: (src, dest) => `Uploading file "${src}" to "${dest}" failed`,
1748
1723
  someFilesFailed: (dest) => `One or more files failed to upload to "${dest}" in the Design Manager`,
1749
- deleteFailed: (path, accountId) => `Deleting "${path}" from account ${(0, ui_1.uiAccountDescription)(accountId)} failed`,
1724
+ deleteFailed: (path, accountId) => `Deleting "${path}" from account ${uiAccountDescription(accountId)} failed`,
1750
1725
  },
1751
1726
  options: {
1752
1727
  options: 'Options to pass to javascript fields files',
@@ -1761,19 +1736,19 @@ exports.commands = {
1761
1736
  dest: 'Path in HubSpot Design Tools, can be a net new path.',
1762
1737
  },
1763
1738
  success: {
1764
- fileUploaded: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the Design Manager of account ${(0, ui_1.uiAccountDescription)(accountId)}`,
1739
+ fileUploaded: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the Design Manager of account ${uiAccountDescription(accountId)}`,
1765
1740
  uploadComplete: (dest) => `Uploading files to "${dest}" in the Design Manager is complete`,
1766
1741
  },
1767
- uploading: (src, dest, accountId) => `Uploading files from "${src}" to "${dest}" in the Design Manager of account ${(0, ui_1.uiAccountDescription)(accountId)}`,
1742
+ uploading: (src, dest, accountId) => `Uploading files from "${src}" to "${dest}" in the Design Manager of account ${uiAccountDescription(accountId)}`,
1768
1743
  notUploaded: (src) => `There was an error processing "${src}". The file has not been uploaded.`,
1769
- cleaning: (filePath, accountId) => `Removing "${filePath}" from account ${(0, ui_1.uiAccountDescription)(accountId)} and uploading local...`,
1770
- confirmCleanUpload: (filePath, accountId) => `You are about to delete the directory "${filePath}" and its contents on HubSpot account ${(0, ui_1.uiAccountDescription)(accountId)} before uploading. This will also clear the global content associated with any global partial templates and modules. Are you sure you want to do this?`,
1744
+ cleaning: (filePath, accountId) => `Removing "${filePath}" from account ${uiAccountDescription(accountId)} and uploading local...`,
1745
+ confirmCleanUpload: (filePath, accountId) => `You are about to delete the directory "${filePath}" and its contents on HubSpot account ${uiAccountDescription(accountId)} before uploading. This will also clear the global content associated with any global partial templates and modules. Are you sure you want to do this?`,
1771
1746
  },
1772
1747
  watch: {
1773
1748
  describe: 'Watch a directory on your computer for changes and upload the changed files to the HubSpot CMS.',
1774
1749
  errors: {
1775
- folderFailed: (src, dest, accountId) => `Initial uploading of folder "${src}" to "${dest}" in account ${(0, ui_1.uiAccountDescription)(accountId)} had failures`,
1776
- fileFailed: (file, dest, accountId) => `Upload of file "${file}" to "${dest}" in account ${(0, ui_1.uiAccountDescription)(accountId)} failed`,
1750
+ folderFailed: (src, dest, accountId) => `Initial uploading of folder "${src}" to "${dest}" in account ${uiAccountDescription(accountId)} had failures`,
1751
+ fileFailed: (file, dest, accountId) => `Upload of file "${file}" to "${dest}" in account ${uiAccountDescription(accountId)} failed`,
1777
1752
  destinationRequired: 'A destination directory needs to be passed',
1778
1753
  invalidPath: (path) => `The "${path}" is not a path to a directory`,
1779
1754
  },
@@ -1791,9 +1766,9 @@ exports.commands = {
1791
1766
  dest: 'Path in HubSpot Design Tools. Can be a net new path',
1792
1767
  },
1793
1768
  warnings: {
1794
- disableInitial: `Passing the "${chalk_1.default.bold('--disable-initial')}" option is no longer necessary. Running "${(0, ui_1.uiCommandReference)('hs watch')}" no longer uploads the watched directory by default.`,
1795
- initialUpload: `To upload the directory run "${(0, ui_1.uiCommandReference)('hs upload')}" beforehand or add the "${chalk_1.default.bold('--initial-upload')}" option when running "${(0, ui_1.uiCommandReference)('hs watch')}".`,
1796
- notUploaded: (path) => `The "${(0, ui_1.uiCommandReference)('hs watch')}" command no longer uploads the watched directory when started. The directory "${path}" was not uploaded.`,
1769
+ disableInitial: `Passing the "${chalk.bold('--disable-initial')}" option is no longer necessary. Running "${uiCommandReference('hs watch')}" no longer uploads the watched directory by default.`,
1770
+ initialUpload: `To upload the directory run "${uiCommandReference('hs upload')}" beforehand or add the "${chalk.bold('--initial-upload')}" option when running "${uiCommandReference('hs watch')}".`,
1771
+ notUploaded: (path) => `The "${uiCommandReference('hs watch')}" command no longer uploads the watched directory when started. The directory "${path}" was not uploaded.`,
1797
1772
  },
1798
1773
  },
1799
1774
  convertFields: {
@@ -1822,13 +1797,13 @@ exports.commands = {
1822
1797
  createFromConfigOption: 'Create test account from config file',
1823
1798
  createFromScratchOption: 'Create test account from scratch',
1824
1799
  errors: {
1825
- configFileNotFound: (configPath) => `No test account config file exists at ${configPath}. Create a test account config file with the ${(0, ui_1.uiCommandReference)('hs test-account create-config')} command.`,
1800
+ configFileNotFound: (configPath) => `No test account config file exists at ${configPath}. Create a test account config file with the ${uiCommandReference('hs test-account create-config')} command.`,
1826
1801
  configFileParseFailed: (configPath) => `Failed to parse test account config file at ${configPath}`,
1827
1802
  },
1828
1803
  polling: {
1829
- start: (testAccountName) => `Creating test account "${chalk_1.default.bold(testAccountName)}"...`,
1804
+ start: (testAccountName) => `Creating test account "${chalk.bold(testAccountName)}"...`,
1830
1805
  syncing: 'Test account created! Syncing account data... (may take a few minutes - you can exit and the sync will continue)',
1831
- success: (testAccountName, testAccountId) => `Test account "${chalk_1.default.bold(testAccountName)}" successfully created with id: ${chalk_1.default.bold(testAccountId)}`,
1806
+ success: (testAccountName, testAccountId) => `Test account "${chalk.bold(testAccountName)}" successfully created with id: ${chalk.bold(testAccountId)}`,
1832
1807
  createFailure: 'Failed to create test account.',
1833
1808
  },
1834
1809
  options: {
@@ -1873,35 +1848,35 @@ exports.commands = {
1873
1848
  secrets: {
1874
1849
  add: {
1875
1850
  loading: {
1876
- add: (secretName) => `Adding secret ${chalk_1.default.bold(secretName)}`,
1877
- fail: (secretName) => `Failed to add secret ${chalk_1.default.bold(secretName)}.`,
1878
- succeed: (secretName) => `Successfully added secret ${chalk_1.default.bold(secretName)}.`,
1851
+ add: (secretName) => `Adding secret ${chalk.bold(secretName)}`,
1852
+ fail: (secretName) => `Failed to add secret ${chalk.bold(secretName)}.`,
1853
+ succeed: (secretName) => `Successfully added secret ${chalk.bold(secretName)}.`,
1879
1854
  },
1880
1855
  success: {
1881
1856
  configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
1882
1857
  },
1883
1858
  failure: {
1884
- invalidUser: (secretName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(secretName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1859
+ invalidUser: (secretName, parentAccountName) => `Couldn't add ${chalk.bold(secretName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1885
1860
  scopes: {
1886
1861
  message: "The personal access key you provided doesn't include secrets permissions.",
1887
- instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1862
+ instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1888
1863
  },
1889
1864
  },
1890
1865
  },
1891
1866
  delete: {
1892
1867
  loading: {
1893
- add: (secretName) => `Deleting secret ${chalk_1.default.bold(secretName)}`,
1894
- fail: (secretName) => `Failed to delete secret ${chalk_1.default.bold(secretName)}.`,
1895
- succeed: (secretName) => `Successfully deleted secret ${chalk_1.default.bold(secretName)}.`,
1868
+ add: (secretName) => `Deleting secret ${chalk.bold(secretName)}`,
1869
+ fail: (secretName) => `Failed to delete secret ${chalk.bold(secretName)}.`,
1870
+ succeed: (secretName) => `Successfully deleted secret ${chalk.bold(secretName)}.`,
1896
1871
  },
1897
1872
  success: {
1898
1873
  configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
1899
1874
  },
1900
1875
  failure: {
1901
- invalidUser: (secretName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(secretName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1876
+ invalidUser: (secretName, parentAccountName) => `Couldn't delete ${chalk.bold(secretName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1902
1877
  scopes: {
1903
1878
  message: "The personal access key you provided doesn't include secrets permissions.",
1904
- instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1879
+ instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1905
1880
  },
1906
1881
  },
1907
1882
  },
@@ -1915,10 +1890,10 @@ exports.commands = {
1915
1890
  configFileUpdated: (authType) => `Secrets updated using "${authType}"`,
1916
1891
  },
1917
1892
  failure: {
1918
- invalidUser: (parentAccountName) => `Couldn't list secrets because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1893
+ invalidUser: (parentAccountName) => `Couldn't list secrets because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1919
1894
  scopes: {
1920
1895
  message: "The personal access key you provided doesn't include secrets permissions.",
1921
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1896
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1922
1897
  },
1923
1898
  },
1924
1899
  },
@@ -1926,35 +1901,35 @@ exports.commands = {
1926
1901
  serverless: {
1927
1902
  add: {
1928
1903
  loading: {
1929
- add: (functionName) => `Adding serverless function ${chalk_1.default.bold(functionName)}`,
1930
- fail: (functionName) => `Failed to add serverless function ${chalk_1.default.bold(functionName)}.`,
1931
- succeed: (functionName) => `Successfully added serverless function ${chalk_1.default.bold(functionName)}.`,
1904
+ add: (functionName) => `Adding serverless function ${chalk.bold(functionName)}`,
1905
+ fail: (functionName) => `Failed to add serverless function ${chalk.bold(functionName)}.`,
1906
+ succeed: (functionName) => `Successfully added serverless function ${chalk.bold(functionName)}.`,
1932
1907
  },
1933
1908
  success: {
1934
1909
  configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
1935
1910
  },
1936
1911
  failure: {
1937
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1912
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1938
1913
  scopes: {
1939
1914
  message: "The personal access key you provided doesn't include serverless function permissions.",
1940
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1915
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1941
1916
  },
1942
1917
  },
1943
1918
  },
1944
1919
  delete: {
1945
1920
  loading: {
1946
- add: (functionName) => `Deleting serverless function ${chalk_1.default.bold(functionName)}`,
1947
- fail: (functionName) => `Failed to delete serverless function ${chalk_1.default.bold(functionName)}.`,
1948
- succeed: (functionName) => `Successfully deleted serverless function ${chalk_1.default.bold(functionName)}.`,
1921
+ add: (functionName) => `Deleting serverless function ${chalk.bold(functionName)}`,
1922
+ fail: (functionName) => `Failed to delete serverless function ${chalk.bold(functionName)}.`,
1923
+ succeed: (functionName) => `Successfully deleted serverless function ${chalk.bold(functionName)}.`,
1949
1924
  },
1950
1925
  success: {
1951
1926
  configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
1952
1927
  },
1953
1928
  failure: {
1954
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1929
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1955
1930
  scopes: {
1956
1931
  message: "The personal access key you provided doesn't include serverless function permissions.",
1957
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1932
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1958
1933
  },
1959
1934
  },
1960
1935
  },
@@ -1968,10 +1943,10 @@ exports.commands = {
1968
1943
  configFileUpdated: (authType) => `Serverless functions updated using "${authType}"`,
1969
1944
  },
1970
1945
  failure: {
1971
- invalidUser: (parentAccountName) => `Couldn't list serverless functions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1946
+ invalidUser: (parentAccountName) => `Couldn't list serverless functions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1972
1947
  scopes: {
1973
1948
  message: "The personal access key you provided doesn't include serverless function permissions.",
1974
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1949
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1975
1950
  },
1976
1951
  },
1977
1952
  },
@@ -1979,35 +1954,35 @@ exports.commands = {
1979
1954
  serverlessFunctionLogs: {
1980
1955
  add: {
1981
1956
  loading: {
1982
- add: (functionName) => `Adding serverless function logs ${chalk_1.default.bold(functionName)}`,
1983
- fail: (functionName) => `Failed to add serverless function logs ${chalk_1.default.bold(functionName)}.`,
1984
- succeed: (functionName) => `Successfully added serverless function logs ${chalk_1.default.bold(functionName)}.`,
1957
+ add: (functionName) => `Adding serverless function logs ${chalk.bold(functionName)}`,
1958
+ fail: (functionName) => `Failed to add serverless function logs ${chalk.bold(functionName)}.`,
1959
+ succeed: (functionName) => `Successfully added serverless function logs ${chalk.bold(functionName)}.`,
1985
1960
  },
1986
1961
  success: {
1987
1962
  configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
1988
1963
  },
1989
1964
  failure: {
1990
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1965
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1991
1966
  scopes: {
1992
1967
  message: "The personal access key you provided doesn't include serverless function log permissions.",
1993
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1968
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1994
1969
  },
1995
1970
  },
1996
1971
  },
1997
1972
  delete: {
1998
1973
  loading: {
1999
- add: (functionName) => `Deleting serverless function logs ${chalk_1.default.bold(functionName)}`,
2000
- fail: (functionName) => `Failed to delete serverless function logs ${chalk_1.default.bold(functionName)}.`,
2001
- succeed: (functionName) => `Successfully deleted serverless function logs ${chalk_1.default.bold(functionName)}.`,
1974
+ add: (functionName) => `Deleting serverless function logs ${chalk.bold(functionName)}`,
1975
+ fail: (functionName) => `Failed to delete serverless function logs ${chalk.bold(functionName)}.`,
1976
+ succeed: (functionName) => `Successfully deleted serverless function logs ${chalk.bold(functionName)}.`,
2002
1977
  },
2003
1978
  success: {
2004
1979
  configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
2005
1980
  },
2006
1981
  failure: {
2007
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1982
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2008
1983
  scopes: {
2009
1984
  message: "The personal access key you provided doesn't include serverless function log permissions.",
2010
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1985
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2011
1986
  },
2012
1987
  },
2013
1988
  },
@@ -2021,10 +1996,10 @@ exports.commands = {
2021
1996
  configFileUpdated: (authType) => `Serverless function logs updated using "${authType}"`,
2022
1997
  },
2023
1998
  failure: {
2024
- invalidUser: (parentAccountName) => `Couldn't list serverless function logs because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1999
+ invalidUser: (parentAccountName) => `Couldn't list serverless function logs because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2025
2000
  scopes: {
2026
2001
  message: "The personal access key you provided doesn't include serverless function log permissions.",
2027
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2002
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2028
2003
  },
2029
2004
  },
2030
2005
  },
@@ -2032,35 +2007,35 @@ exports.commands = {
2032
2007
  serverlessFunctionMetrics: {
2033
2008
  add: {
2034
2009
  loading: {
2035
- add: (functionName) => `Adding serverless function metrics ${chalk_1.default.bold(functionName)}`,
2036
- fail: (functionName) => `Failed to add serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2037
- succeed: (functionName) => `Successfully added serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2010
+ add: (functionName) => `Adding serverless function metrics ${chalk.bold(functionName)}`,
2011
+ fail: (functionName) => `Failed to add serverless function metrics ${chalk.bold(functionName)}.`,
2012
+ succeed: (functionName) => `Successfully added serverless function metrics ${chalk.bold(functionName)}.`,
2038
2013
  },
2039
2014
  success: {
2040
2015
  configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
2041
2016
  },
2042
2017
  failure: {
2043
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2018
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2044
2019
  scopes: {
2045
2020
  message: "The personal access key you provided doesn't include serverless function metric permissions.",
2046
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2021
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2047
2022
  },
2048
2023
  },
2049
2024
  },
2050
2025
  delete: {
2051
2026
  loading: {
2052
- add: (functionName) => `Deleting serverless function metrics ${chalk_1.default.bold(functionName)}`,
2053
- fail: (functionName) => `Failed to delete serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2054
- succeed: (functionName) => `Successfully deleted serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2027
+ add: (functionName) => `Deleting serverless function metrics ${chalk.bold(functionName)}`,
2028
+ fail: (functionName) => `Failed to delete serverless function metrics ${chalk.bold(functionName)}.`,
2029
+ succeed: (functionName) => `Successfully deleted serverless function metrics ${chalk.bold(functionName)}.`,
2055
2030
  },
2056
2031
  success: {
2057
2032
  configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
2058
2033
  },
2059
2034
  failure: {
2060
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2035
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2061
2036
  scopes: {
2062
2037
  message: "The personal access key you provided doesn't include serverless function metric permissions.",
2063
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2038
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2064
2039
  },
2065
2040
  },
2066
2041
  },
@@ -2074,10 +2049,10 @@ exports.commands = {
2074
2049
  configFileUpdated: (authType) => `Serverless function metrics updated using "${authType}"`,
2075
2050
  },
2076
2051
  failure: {
2077
- invalidUser: (parentAccountName) => `Couldn't list serverless function metrics because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2052
+ invalidUser: (parentAccountName) => `Couldn't list serverless function metrics because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2078
2053
  scopes: {
2079
2054
  message: "The personal access key you provided doesn't include serverless function metric permissions.",
2080
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2055
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2081
2056
  },
2082
2057
  },
2083
2058
  },
@@ -2085,35 +2060,35 @@ exports.commands = {
2085
2060
  serverlessFunctionSettings: {
2086
2061
  add: {
2087
2062
  loading: {
2088
- add: (functionName) => `Adding serverless function settings ${chalk_1.default.bold(functionName)}`,
2089
- fail: (functionName) => `Failed to add serverless function settings ${chalk_1.default.bold(functionName)}.`,
2090
- succeed: (functionName) => `Successfully added serverless function settings ${chalk_1.default.bold(functionName)}.`,
2063
+ add: (functionName) => `Adding serverless function settings ${chalk.bold(functionName)}`,
2064
+ fail: (functionName) => `Failed to add serverless function settings ${chalk.bold(functionName)}.`,
2065
+ succeed: (functionName) => `Successfully added serverless function settings ${chalk.bold(functionName)}.`,
2091
2066
  },
2092
2067
  success: {
2093
2068
  configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
2094
2069
  },
2095
2070
  failure: {
2096
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2071
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2097
2072
  scopes: {
2098
2073
  message: "The personal access key you provided doesn't include serverless function setting permissions.",
2099
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2074
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2100
2075
  },
2101
2076
  },
2102
2077
  },
2103
2078
  delete: {
2104
2079
  loading: {
2105
- add: (functionName) => `Deleting serverless function settings ${chalk_1.default.bold(functionName)}`,
2106
- fail: (functionName) => `Failed to delete serverless function settings ${chalk_1.default.bold(functionName)}.`,
2107
- succeed: (functionName) => `Successfully deleted serverless function settings ${chalk_1.default.bold(functionName)}.`,
2080
+ add: (functionName) => `Deleting serverless function settings ${chalk.bold(functionName)}`,
2081
+ fail: (functionName) => `Failed to delete serverless function settings ${chalk.bold(functionName)}.`,
2082
+ succeed: (functionName) => `Successfully deleted serverless function settings ${chalk.bold(functionName)}.`,
2108
2083
  },
2109
2084
  success: {
2110
2085
  configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
2111
2086
  },
2112
2087
  failure: {
2113
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2088
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2114
2089
  scopes: {
2115
2090
  message: "The personal access key you provided doesn't include serverless function setting permissions.",
2116
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2091
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2117
2092
  },
2118
2093
  },
2119
2094
  },
@@ -2127,10 +2102,10 @@ exports.commands = {
2127
2102
  configFileUpdated: (authType) => `Serverless function settings updated using "${authType}"`,
2128
2103
  },
2129
2104
  failure: {
2130
- invalidUser: (parentAccountName) => `Couldn't list serverless function settings because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2105
+ invalidUser: (parentAccountName) => `Couldn't list serverless function settings because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2131
2106
  scopes: {
2132
2107
  message: "The personal access key you provided doesn't include serverless function setting permissions.",
2133
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2108
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2134
2109
  },
2135
2110
  },
2136
2111
  },
@@ -2138,35 +2113,35 @@ exports.commands = {
2138
2113
  serverlessFunctionVersions: {
2139
2114
  add: {
2140
2115
  loading: {
2141
- add: (functionName) => `Adding serverless function versions ${chalk_1.default.bold(functionName)}`,
2142
- fail: (functionName) => `Failed to add serverless function versions ${chalk_1.default.bold(functionName)}.`,
2143
- succeed: (functionName) => `Successfully added serverless function versions ${chalk_1.default.bold(functionName)}.`,
2116
+ add: (functionName) => `Adding serverless function versions ${chalk.bold(functionName)}`,
2117
+ fail: (functionName) => `Failed to add serverless function versions ${chalk.bold(functionName)}.`,
2118
+ succeed: (functionName) => `Successfully added serverless function versions ${chalk.bold(functionName)}.`,
2144
2119
  },
2145
2120
  success: {
2146
2121
  configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
2147
2122
  },
2148
2123
  failure: {
2149
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2124
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2150
2125
  scopes: {
2151
2126
  message: "The personal access key you provided doesn't include serverless function version permissions.",
2152
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2127
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2153
2128
  },
2154
2129
  },
2155
2130
  },
2156
2131
  delete: {
2157
2132
  loading: {
2158
- add: (functionName) => `Deleting serverless function versions ${chalk_1.default.bold(functionName)}`,
2159
- fail: (functionName) => `Failed to delete serverless function versions ${chalk_1.default.bold(functionName)}.`,
2160
- succeed: (functionName) => `Successfully deleted serverless function versions ${chalk_1.default.bold(functionName)}.`,
2133
+ add: (functionName) => `Deleting serverless function versions ${chalk.bold(functionName)}`,
2134
+ fail: (functionName) => `Failed to delete serverless function versions ${chalk.bold(functionName)}.`,
2135
+ succeed: (functionName) => `Successfully deleted serverless function versions ${chalk.bold(functionName)}.`,
2161
2136
  },
2162
2137
  success: {
2163
2138
  configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
2164
2139
  },
2165
2140
  failure: {
2166
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2141
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2167
2142
  scopes: {
2168
2143
  message: "The personal access key you provided doesn't include serverless function version permissions.",
2169
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2144
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2170
2145
  },
2171
2146
  },
2172
2147
  },
@@ -2180,10 +2155,10 @@ exports.commands = {
2180
2155
  configFileUpdated: (authType) => `Serverless function versions updated using "${authType}"`,
2181
2156
  },
2182
2157
  failure: {
2183
- invalidUser: (parentAccountName) => `Couldn't list serverless function versions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2158
+ invalidUser: (parentAccountName) => `Couldn't list serverless function versions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2184
2159
  scopes: {
2185
2160
  message: "The personal access key you provided doesn't include serverless function version permissions.",
2186
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2161
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2187
2162
  },
2188
2163
  },
2189
2164
  },
@@ -2191,35 +2166,35 @@ exports.commands = {
2191
2166
  serverlessFunctionWebhooks: {
2192
2167
  add: {
2193
2168
  loading: {
2194
- add: (functionName) => `Adding serverless function webhooks ${chalk_1.default.bold(functionName)}`,
2195
- fail: (functionName) => `Failed to add serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2196
- succeed: (functionName) => `Successfully added serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2169
+ add: (functionName) => `Adding serverless function webhooks ${chalk.bold(functionName)}`,
2170
+ fail: (functionName) => `Failed to add serverless function webhooks ${chalk.bold(functionName)}.`,
2171
+ succeed: (functionName) => `Successfully added serverless function webhooks ${chalk.bold(functionName)}.`,
2197
2172
  },
2198
2173
  success: {
2199
2174
  configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
2200
2175
  },
2201
2176
  failure: {
2202
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2177
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2203
2178
  scopes: {
2204
2179
  message: "The personal access key you provided doesn't include serverless function webhook permissions.",
2205
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2180
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2206
2181
  },
2207
2182
  },
2208
2183
  },
2209
2184
  delete: {
2210
2185
  loading: {
2211
- add: (functionName) => `Deleting serverless function webhooks ${chalk_1.default.bold(functionName)}`,
2212
- fail: (functionName) => `Failed to delete serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2213
- succeed: (functionName) => `Successfully deleted serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2186
+ add: (functionName) => `Deleting serverless function webhooks ${chalk.bold(functionName)}`,
2187
+ fail: (functionName) => `Failed to delete serverless function webhooks ${chalk.bold(functionName)}.`,
2188
+ succeed: (functionName) => `Successfully deleted serverless function webhooks ${chalk.bold(functionName)}.`,
2214
2189
  },
2215
2190
  success: {
2216
2191
  configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
2217
2192
  },
2218
2193
  failure: {
2219
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2194
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2220
2195
  scopes: {
2221
2196
  message: "The personal access key you provided doesn't include serverless function webhook permissions.",
2222
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2197
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2223
2198
  },
2224
2199
  },
2225
2200
  },
@@ -2233,10 +2208,10 @@ exports.commands = {
2233
2208
  configFileUpdated: (authType) => `Serverless function webhooks updated using "${authType}"`,
2234
2209
  },
2235
2210
  failure: {
2236
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhooks because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2211
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhooks because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2237
2212
  scopes: {
2238
2213
  message: "The personal access key you provided doesn't include serverless function webhook permissions.",
2239
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2214
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2240
2215
  },
2241
2216
  },
2242
2217
  },
@@ -2244,35 +2219,35 @@ exports.commands = {
2244
2219
  serverlessFunctionWebhookSubscriptions: {
2245
2220
  add: {
2246
2221
  loading: {
2247
- add: (functionName) => `Adding serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
2248
- fail: (functionName) => `Failed to add serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2249
- succeed: (functionName) => `Successfully added serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2222
+ add: (functionName) => `Adding serverless function webhook subscriptions ${chalk.bold(functionName)}`,
2223
+ fail: (functionName) => `Failed to add serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2224
+ succeed: (functionName) => `Successfully added serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2250
2225
  },
2251
2226
  success: {
2252
2227
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
2253
2228
  },
2254
2229
  failure: {
2255
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2230
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2256
2231
  scopes: {
2257
2232
  message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
2258
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2233
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2259
2234
  },
2260
2235
  },
2261
2236
  },
2262
2237
  delete: {
2263
2238
  loading: {
2264
- add: (functionName) => `Deleting serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
2265
- fail: (functionName) => `Failed to delete serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2266
- succeed: (functionName) => `Successfully deleted serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2239
+ add: (functionName) => `Deleting serverless function webhook subscriptions ${chalk.bold(functionName)}`,
2240
+ fail: (functionName) => `Failed to delete serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2241
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2267
2242
  },
2268
2243
  success: {
2269
2244
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
2270
2245
  },
2271
2246
  failure: {
2272
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2247
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2273
2248
  scopes: {
2274
2249
  message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
2275
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2250
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2276
2251
  },
2277
2252
  },
2278
2253
  },
@@ -2286,10 +2261,10 @@ exports.commands = {
2286
2261
  configFileUpdated: (authType) => `Serverless function webhook subscriptions updated using "${authType}"`,
2287
2262
  },
2288
2263
  failure: {
2289
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2264
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2290
2265
  scopes: {
2291
2266
  message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
2292
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2267
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2293
2268
  },
2294
2269
  },
2295
2270
  },
@@ -2297,35 +2272,35 @@ exports.commands = {
2297
2272
  serverlessFunctionWebhookSubscriptionEvents: {
2298
2273
  add: {
2299
2274
  loading: {
2300
- add: (functionName) => `Adding serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
2301
- fail: (functionName) => `Failed to add serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2302
- succeed: (functionName) => `Successfully added serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2275
+ add: (functionName) => `Adding serverless function webhook subscription events ${chalk.bold(functionName)}`,
2276
+ fail: (functionName) => `Failed to add serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2277
+ succeed: (functionName) => `Successfully added serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2303
2278
  },
2304
2279
  success: {
2305
2280
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
2306
2281
  },
2307
2282
  failure: {
2308
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2283
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2309
2284
  scopes: {
2310
2285
  message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
2311
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2286
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2312
2287
  },
2313
2288
  },
2314
2289
  },
2315
2290
  delete: {
2316
2291
  loading: {
2317
- add: (functionName) => `Deleting serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
2318
- fail: (functionName) => `Failed to delete serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2319
- succeed: (functionName) => `Successfully deleted serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2292
+ add: (functionName) => `Deleting serverless function webhook subscription events ${chalk.bold(functionName)}`,
2293
+ fail: (functionName) => `Failed to delete serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2294
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2320
2295
  },
2321
2296
  success: {
2322
2297
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
2323
2298
  },
2324
2299
  failure: {
2325
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2300
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2326
2301
  scopes: {
2327
2302
  message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
2328
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2303
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2329
2304
  },
2330
2305
  },
2331
2306
  },
@@ -2339,10 +2314,10 @@ exports.commands = {
2339
2314
  configFileUpdated: (authType) => `Serverless function webhook subscription events updated using "${authType}"`,
2340
2315
  },
2341
2316
  failure: {
2342
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription events because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2317
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription events because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2343
2318
  scopes: {
2344
2319
  message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
2345
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2320
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2346
2321
  },
2347
2322
  },
2348
2323
  },
@@ -2350,35 +2325,35 @@ exports.commands = {
2350
2325
  serverlessFunctionWebhookSubscriptionEventTypes: {
2351
2326
  add: {
2352
2327
  loading: {
2353
- add: (functionName) => `Adding serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
2354
- fail: (functionName) => `Failed to add serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2355
- succeed: (functionName) => `Successfully added serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2328
+ add: (functionName) => `Adding serverless function webhook subscription event types ${chalk.bold(functionName)}`,
2329
+ fail: (functionName) => `Failed to add serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2330
+ succeed: (functionName) => `Successfully added serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2356
2331
  },
2357
2332
  success: {
2358
2333
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
2359
2334
  },
2360
2335
  failure: {
2361
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2336
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2362
2337
  scopes: {
2363
2338
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
2364
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2339
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2365
2340
  },
2366
2341
  },
2367
2342
  },
2368
2343
  delete: {
2369
2344
  loading: {
2370
- add: (functionName) => `Deleting serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
2371
- fail: (functionName) => `Failed to delete serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2372
- succeed: (functionName) => `Successfully deleted serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2345
+ add: (functionName) => `Deleting serverless function webhook subscription event types ${chalk.bold(functionName)}`,
2346
+ fail: (functionName) => `Failed to delete serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2347
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2373
2348
  },
2374
2349
  success: {
2375
2350
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
2376
2351
  },
2377
2352
  failure: {
2378
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2353
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2379
2354
  scopes: {
2380
2355
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
2381
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2356
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2382
2357
  },
2383
2358
  },
2384
2359
  },
@@ -2392,10 +2367,10 @@ exports.commands = {
2392
2367
  configFileUpdated: (authType) => `Serverless function webhook subscription event types updated using "${authType}"`,
2393
2368
  },
2394
2369
  failure: {
2395
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2370
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2396
2371
  scopes: {
2397
2372
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
2398
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2373
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2399
2374
  },
2400
2375
  },
2401
2376
  },
@@ -2403,35 +2378,35 @@ exports.commands = {
2403
2378
  serverlessFunctionWebhookSubscriptionEventTypeOptions: {
2404
2379
  add: {
2405
2380
  loading: {
2406
- add: (functionName) => `Adding serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
2407
- fail: (functionName) => `Failed to add serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2408
- succeed: (functionName) => `Successfully added serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2381
+ add: (functionName) => `Adding serverless function webhook subscription event type options ${chalk.bold(functionName)}`,
2382
+ fail: (functionName) => `Failed to add serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2383
+ succeed: (functionName) => `Successfully added serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2409
2384
  },
2410
2385
  success: {
2411
2386
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
2412
2387
  },
2413
2388
  failure: {
2414
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2389
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2415
2390
  scopes: {
2416
2391
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
2417
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2392
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2418
2393
  },
2419
2394
  },
2420
2395
  },
2421
2396
  delete: {
2422
2397
  loading: {
2423
- add: (functionName) => `Deleting serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
2424
- fail: (functionName) => `Failed to delete serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2425
- succeed: (functionName) => `Successfully deleted serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2398
+ add: (functionName) => `Deleting serverless function webhook subscription event type options ${chalk.bold(functionName)}`,
2399
+ fail: (functionName) => `Failed to delete serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2400
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2426
2401
  },
2427
2402
  success: {
2428
2403
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
2429
2404
  },
2430
2405
  failure: {
2431
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2406
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2432
2407
  scopes: {
2433
2408
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
2434
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2409
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2435
2410
  },
2436
2411
  },
2437
2412
  },
@@ -2445,16 +2420,16 @@ exports.commands = {
2445
2420
  configFileUpdated: (authType) => `Serverless function webhook subscription event type options updated using "${authType}"`,
2446
2421
  },
2447
2422
  failure: {
2448
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2423
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2449
2424
  scopes: {
2450
2425
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
2451
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2426
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2452
2427
  },
2453
2428
  },
2454
2429
  },
2455
2430
  },
2456
2431
  };
2457
- exports.lib = {
2432
+ export const lib = {
2458
2433
  parsing: {
2459
2434
  unableToParseStringToNumber: 'Unable to parse string to number',
2460
2435
  },
@@ -2470,40 +2445,41 @@ exports.lib = {
2470
2445
  noCompatibleComponents: (serverKey) => `Skipping call to ${serverKey} because there are no compatible components in the project.`,
2471
2446
  },
2472
2447
  LocalDevManager: {
2473
- appNotFound: (accountId, appUid) => `Unable to find app with uid ${appUid} in account ${(0, ui_1.uiAccountDescription)(accountId)}`,
2448
+ appNotFound: (accountId, appUid) => `Unable to find app with uid ${appUid} in account ${uiAccountDescription(accountId)}`,
2474
2449
  failedToInitialize: 'Missing required arguments to initialize Local Dev',
2475
- noDeployedBuild: (projectName, accountIdentifier, uploadCommand) => `Your project ${chalk_1.default.bold(projectName)} exists in ${accountIdentifier}, but has no deployed build. Projects must be successfully deployed to be developed locally. Address any build and deploy errors your project may have, then run ${uploadCommand} to upload and deploy your project.`,
2450
+ noDeployedBuild: (projectName, accountIdentifier, uploadCommand) => `Your project ${chalk.bold(projectName)} exists in ${accountIdentifier}, but has no deployed build. Projects must be successfully deployed to be developed locally. Address any build and deploy errors your project may have, then run ${uploadCommand} to upload and deploy your project.`,
2476
2451
  noComponents: 'There are no components in this project.',
2477
2452
  betaMessage: 'HubSpot projects local development',
2478
- learnMoreLocalDevServer: (0, ui_1.uiLink)('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'),
2479
- running: (projectName, accountIdentifier) => chalk_1.default.hex(ui_1.UI_COLORS.SORBET)(`Running ${chalk_1.default.bold(projectName)} locally on ${accountIdentifier}, waiting for changes ...`),
2480
- quitHelper: `Press ${chalk_1.default.bold('q')} to stop the local dev server`,
2481
- viewProjectLink: (name, accountId) => (0, ui_1.uiLink)('View project in HubSpot', (0, urls_1.getProjectDetailUrl)(name, accountId) || ''),
2482
- viewLocalDevUILink: (accountId) => (0, ui_1.uiLink)('View local dev session in HubSpot', (0, urls_1.getLocalDevUiUrl)(accountId)),
2453
+ learnMoreLocalDevServer: uiLink('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'),
2454
+ running: (projectName, accountIdentifier) => chalk.hex(UI_COLORS.SORBET)(`Running ${chalk.bold(projectName)} locally on ${accountIdentifier}, waiting for changes ...`),
2455
+ quitHelper: `Press ${chalk.bold('q')} to stop the local dev server`,
2456
+ viewProjectLink: (name, accountId) => uiLink('View project in HubSpot', getProjectDetailUrl(name, accountId) || ''),
2457
+ viewLocalDevUILink: (accountId, showWelcomeScreen) => uiLink('View local dev session in HubSpot', getLocalDevUiUrl(accountId, showWelcomeScreen)),
2458
+ localDevUIAutoMessage: (accountId, showWelcomeScreen) => `Opening your ${uiLink('local dev session in HubSpot', getLocalDevUiUrl(accountId, showWelcomeScreen))}...`,
2483
2459
  viewTestAccountLink: 'View developer test account in HubSpot',
2484
2460
  exitingStart: 'Stopping local dev server ...',
2485
2461
  exitingSucceed: 'Successfully exited',
2486
2462
  exitingFail: 'Failed to cleanup before exiting',
2487
- missingUid: `Could not find a uid for the selected app. Confirm that the app config file contains the uid field and re-run ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
2463
+ missingUid: `Could not find a uid for the selected app. Confirm that the app config file contains the uid field and re-run ${uiCommandReference('hs project dev')}.`,
2488
2464
  uploadWarning: {
2489
2465
  appLabel: '[App]',
2490
2466
  uiExtensionLabel: '[UI Extension]',
2491
- missingComponents: (missingComponents) => `Couldn't find the following components in the deployed build for this project: ${chalk_1.default.bold(missingComponents)}. This may cause issues in local development.`,
2492
- defaultWarning: chalk_1.default.bold('Changing project configuration requires a new project build.'),
2493
- defaultPublicAppWarning: (installCount, installText) => `${chalk_1.default.bold('Changing project configuration requires a new project build.')}\n\nThis will affect your public app's ${chalk_1.default.bold(`${installCount} existing ${installText}`)}. If your app has users in production, we strongly recommend creating a copy of this app to test your changes before proceding.`,
2467
+ missingComponents: (missingComponents) => `Couldn't find the following components in the deployed build for this project: ${chalk.bold(missingComponents)}. This may cause issues in local development.`,
2468
+ defaultWarning: chalk.bold('Changing project configuration requires a new project build.'),
2469
+ defaultPublicAppWarning: (installCount, installText) => `${chalk.bold('Changing project configuration requires a new project build.')}\n\nThis will affect your public app's ${chalk.bold(`${installCount} existing ${installText}`)}. If your app has users in production, we strongly recommend creating a copy of this app to test your changes before proceding.`,
2494
2470
  header: (warning) => `${warning} To reflect these changes and continue testing:`,
2495
2471
  instructionsHeader: 'To reflect these changes and continue testing:',
2496
- stopDev: ` * Stop ${(0, ui_1.uiCommandReference)('hs project dev')}`,
2472
+ stopDev: ` * Stop ${uiCommandReference('hs project dev')}`,
2497
2473
  runUpload: (command) => ` * Run ${command}`,
2498
- restartDev: ` * Re-run ${(0, ui_1.uiCommandReference)('hs project dev')}`,
2474
+ restartDev: ` * Re-run ${uiCommandReference('hs project dev')}`,
2499
2475
  pushToGithub: ' * Commit and push your changes to GitHub',
2500
- defaultMarketplaceAppWarning: (installCount, accountText) => `${chalk_1.default.bold('Changing project configuration requires creating a new project build.')}\n\nYour marketplace app is currently installed in ${chalk_1.default.bold(`${installCount} ${accountText}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2476
+ defaultMarketplaceAppWarning: (installCount, accountText) => `${chalk.bold('Changing project configuration requires creating a new project build.')}\n\nYour marketplace app is currently installed in ${chalk.bold(`${installCount} ${accountText}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2501
2477
  },
2502
2478
  activeInstallWarning: {
2503
- installCount: (appName, installCount) => `${chalk_1.default.bold(`The app ${appName} is installed in ${installCount} production ${installCount === 1 ? 'account' : 'accounts'}`)}`,
2479
+ installCount: (appName, installCount) => `${chalk.bold(`The app ${appName} is installed in ${installCount} production ${installCount === 1 ? 'account' : 'accounts'}`)}`,
2504
2480
  explanation: 'Some changes made during local development may need to be synced to HubSpot, which will impact those existing installs. We strongly recommend creating a copy of this app to use instead.',
2505
2481
  confirmation: `You will always be asked to confirm any permanent changes to your app's configuration before uploading them.`,
2506
- confirmationPrompt: `Proceed with local development of this ${chalk_1.default.bold('production')} app?`,
2482
+ confirmationPrompt: `Proceed with local development of this ${chalk.bold('production')} app?`,
2507
2483
  },
2508
2484
  devServer: {
2509
2485
  cleanupError: (message) => `Failed to cleanup local dev server: ${message}`,
@@ -2513,10 +2489,10 @@ exports.lib = {
2513
2489
  },
2514
2490
  },
2515
2491
  AppDevModeInterface: {
2516
- defaultMarketplaceAppWarning: (installCount) => `\n\nYour marketplace app is currently installed in ${chalk_1.default.bold(`${installCount} ${installCount === 1 ? 'account' : 'accounts'}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2492
+ defaultMarketplaceAppWarning: (installCount) => `\n\nYour marketplace app is currently installed in ${chalk.bold(`${installCount} ${installCount === 1 ? 'account' : 'accounts'}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2517
2493
  autoInstallDeclined: 'You must install your app on your target test account to proceed with local development.',
2518
- autoInstallSuccess: (appName, targetTestAccountId) => `Successfully installed app ${appName} on account ${(0, ui_1.uiAccountDescription)(targetTestAccountId)}\n`,
2519
- autoInstallError: (appName, targetTestAccountId) => `Error installing app ${appName} on account ${(0, ui_1.uiAccountDescription)(targetTestAccountId)}. You may still be able to install your app in your browser.`,
2494
+ autoInstallSuccess: (appName, targetTestAccountId) => `Successfully installed app ${appName} on account ${uiAccountDescription(targetTestAccountId)}\n`,
2495
+ autoInstallError: (appName, targetTestAccountId) => `Error installing app ${appName} on account ${uiAccountDescription(targetTestAccountId)}. You may still be able to install your app in your browser.`,
2520
2496
  },
2521
2497
  LocalDevWebsocketServer: {
2522
2498
  errors: {
@@ -2532,29 +2508,29 @@ exports.lib = {
2532
2508
  },
2533
2509
  },
2534
2510
  LocalDevProcess: {
2535
- projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
2511
+ projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${uiCommandReference('hs project dev')}.`,
2536
2512
  uploadInitiated: 'Project upload initiated from Local Dev UI.',
2537
2513
  uploadFailed: 'Project upload failed. To proceed with local development, fix any necessary errors, then re-upload your project.',
2538
2514
  uploadSuccess: 'Project upload completed successfully. Resuming local dev...',
2539
2515
  },
2540
2516
  localDevHelpers: {
2541
2517
  confirmDefaultAccountIsTarget: {
2542
- configError: `An error occurred while reading the default account from your config. Run ${(0, ui_1.uiCommandReference)('hs auth')} to re-auth this account`,
2543
- declineDefaultAccountExplanation: `To develop on a different account, run ${(0, ui_1.uiCommandReference)('hs accounts use')} to change your default account, then re-run ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
2518
+ configError: `An error occurred while reading the default account from your config. Run ${uiCommandReference('hs auth')} to re-auth this account`,
2519
+ declineDefaultAccountExplanation: `To develop on a different account, run ${uiCommandReference('hs accounts use')} to change your default account, then re-run ${uiCommandReference('hs project dev')}.`,
2544
2520
  },
2545
2521
  checkIfDefaultAccountIsSupported: {
2546
- publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${(0, ui_1.uiCommandReference)('hs accounts use')}, or link a new account with ${(0, ui_1.uiCommandReference)('hs auth')}.`,
2547
- privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${(0, ui_1.uiCommandReference)('hs accounts use')}, or link a new account with ${(0, ui_1.uiCommandReference)('hs auth')}.`,
2522
+ publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${uiCommandReference('hs accounts use')}, or link a new account with ${uiCommandReference('hs auth')}.`,
2523
+ privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${uiCommandReference('hs accounts use')}, or link a new account with ${uiCommandReference('hs auth')}.`,
2548
2524
  },
2549
2525
  validateAccountOption: {
2550
- invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an App Developer Account using ${(0, ui_1.uiCommandReference)('hs accounts use')} and run ${(0, ui_1.uiCommandReference)('hs project dev')} to set up a new Developer Test Account.`,
2551
- invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${(0, ui_1.uiCommandReference)('hs accounts use')}.`,
2552
- nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${(0, ui_1.uiCommandReference)('hs accounts use')} before running the command again.`,
2553
- publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${chalk_1.default.bold('developer test accounts')}.`,
2526
+ invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an App Developer Account using ${uiCommandReference('hs accounts use')} and run ${uiCommandReference('hs project dev')} to set up a new Developer Test Account.`,
2527
+ invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${uiCommandReference('hs accounts use')}.`,
2528
+ nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${uiCommandReference('hs accounts use')} before running the command again.`,
2529
+ publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${chalk.bold('developer test accounts')}.`,
2554
2530
  },
2555
2531
  createNewProjectForLocalDev: {
2556
- projectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in the target account ${(0, ui_1.uiAccountDescription)(accountId)}. This command requires the project to exist in the target account.`,
2557
- publicAppProjectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in ${(0, ui_1.uiAccountDescription)(accountId)}, the app developer account associated with your target account. This command requires the project to exist in this app developer account.`,
2532
+ projectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in the target account ${uiAccountDescription(accountId)}. This command requires the project to exist in the target account.`,
2533
+ publicAppProjectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in ${uiAccountDescription(accountId)}, the app developer account associated with your target account. This command requires the project to exist in this app developer account.`,
2558
2534
  createProject: (projectName, accountIdentifier) => `Create new project ${projectName} in ${accountIdentifier}?`,
2559
2535
  choseNotToCreateProject: 'Exiting because this command requires the project to exist in the target account.',
2560
2536
  creatingProject: (projectName, accountIdentifier) => `Creating project ${projectName} in ${accountIdentifier}`,
@@ -2564,49 +2540,49 @@ exports.lib = {
2564
2540
  createInitialBuildForNewProject: {
2565
2541
  initialUploadMessage: 'HubSpot Local Dev Server Startup',
2566
2542
  projectLockedError: 'Your project is locked. This may mean that another user is running the `hs project watch` command for this project. If this is you, unlock the project in Projects UI.',
2567
- genericError: `An error occurred while creating the initial build for this project. Run ${(0, ui_1.uiCommandReference)('hs project upload')} to try again.`,
2543
+ genericError: `An error occurred while creating the initial build for this project. Run ${uiCommandReference('hs project upload')} to try again.`,
2568
2544
  },
2569
2545
  checkIfParentAccountIsAuthed: {
2570
- notAuthedError: (parentAccountId, accountIdentifier) => `To develop this project locally, run ${(0, ui_1.uiCommandReference)(`hs auth --account=${parentAccountId}`)} to authenticate the App Developer Account ${parentAccountId} associated with ${accountIdentifier}.`,
2546
+ notAuthedError: (parentAccountId, accountIdentifier) => `To develop this project locally, run ${uiCommandReference(`hs auth --account=${parentAccountId}`)} to authenticate the App Developer Account ${parentAccountId} associated with ${accountIdentifier}.`,
2571
2547
  },
2572
2548
  selectAccountTypePrompt: {
2573
2549
  message: '[--account] Choose the type of account to test on',
2574
2550
  developerTestAccountOption: 'Test on a developer test account',
2575
2551
  sandboxAccountOption: 'Test on a sandbox account',
2576
2552
  sandboxAccountOptionDisabled: 'Disabled - requires access to sandbox accounts',
2577
- productionAccountOption: `<${chalk_1.default.red('!')} Test on this account ${chalk_1.default.red('!')}>`,
2553
+ productionAccountOption: `<${chalk.red('!')} Test on this account ${chalk.red('!')}>`,
2578
2554
  },
2579
2555
  },
2580
2556
  middleware: {
2581
2557
  updateNotification: {
2582
- notifyTitle: chalk_1.default.bold('Update available'),
2583
- cmsUpdateNotification: (packageName) => `${chalk_1.default.bold('The CMS CLI is now the HubSpot CLI')}\n\nTo upgrade, uninstall ${chalk_1.default.bold(packageName)}\nand then run ${(0, ui_1.uiCommandReference)('{updateCommand}')}`,
2584
- cliUpdateNotification: `HubSpot CLI version ${chalk_1.default.cyan(chalk_1.default.bold('{currentVersion}'))} is outdated.\nRun ${(0, ui_1.uiCommandReference)('{updateCommand}')} to upgrade to version ${chalk_1.default.cyan(chalk_1.default.bold('{latestVersion}'))}`,
2558
+ notifyTitle: chalk.bold('Update available'),
2559
+ cmsUpdateNotification: (packageName) => `${chalk.bold('The CMS CLI is now the HubSpot CLI')}\n\nTo upgrade, uninstall ${chalk.bold(packageName)}\nand then run ${uiCommandReference('{updateCommand}')}`,
2560
+ cliUpdateNotification: `HubSpot CLI version ${chalk.cyan(chalk.bold('{currentVersion}'))} is outdated.\nRun ${uiCommandReference('{updateCommand}')} to upgrade to version ${chalk.cyan(chalk.bold('{latestVersion}'))}`,
2585
2561
  },
2586
2562
  autoUpdateCLI: {
2587
- updateAvailable: (latestVersion) => `There's a new HubSpot CLI version available! Updating to version ${chalk_1.default.bold(latestVersion)}`,
2588
- updateSucceeded: (latestVersion) => `Successfully updated HubSpot CLI to version ${chalk_1.default.bold(latestVersion)}`,
2563
+ updateAvailable: (latestVersion) => `There's a new HubSpot CLI version available! Updating to version ${chalk.bold(latestVersion)}`,
2564
+ updateSucceeded: (latestVersion) => `Successfully updated HubSpot CLI to version ${chalk.bold(latestVersion)}`,
2589
2565
  notInstalledGlobally: 'Cannot auto-update the HubSpot CLI because NPM is not installed globally',
2590
- updateFailed: (latestVersion) => `Failed to update HubSpot CLI to version ${chalk_1.default.bold(latestVersion)}`,
2566
+ updateFailed: (latestVersion) => `Failed to update HubSpot CLI to version ${chalk.bold(latestVersion)}`,
2591
2567
  },
2592
2568
  },
2593
2569
  projectProfiles: {
2594
2570
  logs: {
2595
- usingProfile: (profileName) => `Using profile from ${chalk_1.default.bold(profileName)}`,
2596
- profileTargetAccount: (accountId) => `Targeting ${(0, ui_1.uiAccountDescription)(accountId)}`,
2571
+ usingProfile: (profileName) => `Using profile from ${chalk.bold(profileName)}`,
2572
+ profileTargetAccount: (accountId) => `Targeting ${uiAccountDescription(accountId)}`,
2597
2573
  profileVariables: 'Profile variables',
2598
2574
  },
2599
2575
  exitIfUsingProfiles: {
2600
2576
  errors: {
2601
- noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${(0, ui_1.uiCommandReference)('--profile')} flag.`,
2577
+ noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${uiCommandReference('--profile')} flag.`,
2602
2578
  },
2603
2579
  },
2604
2580
  loadProfile: {
2605
2581
  errors: {
2606
2582
  noProjectConfig: 'No project config found. Please run this command from a project directory.',
2607
- profileNotFound: (profileName) => `Profile ${chalk_1.default.bold(profileName)} not found.`,
2608
- missingAccountId: (profileName) => `Profile ${chalk_1.default.bold(profileName)} is missing an account id.`,
2609
- failedToLoadProfile: (profileName) => `Failed to load profile ${chalk_1.default.bold(profileName)}.`,
2583
+ profileNotFound: (profileName) => `Profile ${chalk.bold(profileName)} not found.`,
2584
+ missingAccountId: (profileName) => `Profile ${chalk.bold(profileName)} is missing an account id.`,
2585
+ failedToLoadProfile: (profileName) => `Failed to load profile ${chalk.bold(profileName)}.`,
2610
2586
  },
2611
2587
  },
2612
2588
  },
@@ -2633,10 +2609,10 @@ exports.lib = {
2633
2609
  nothingAdded: 'No features added.',
2634
2610
  },
2635
2611
  validateProjectConfig: {
2636
- configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${(0, ui_1.uiCommandReference)('hs project create')} to create a new project.`,
2612
+ configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${uiCommandReference('hs project create')} to create a new project.`,
2637
2613
  configMissingFields: 'The project configuration file is missing required fields.',
2638
- srcDirNotFound: (srcDir, projectDir) => `Project source directory ${chalk_1.default.bold(srcDir)} could not be found in ${chalk_1.default.bold(projectDir)}.`,
2639
- srcOutsideProjectDir: (projectConfig, srcDir) => `Invalid value for 'srcDir' in ${projectConfig}: ${chalk_1.default.bold(`srcDir: "${srcDir}"`)}\n\t'srcDir' must be a relative path to a folder under the project root, such as "." or "./src"`,
2614
+ srcDirNotFound: (srcDir, projectDir) => `Project source directory ${chalk.bold(srcDir)} could not be found in ${chalk.bold(projectDir)}.`,
2615
+ srcOutsideProjectDir: (projectConfig, srcDir) => `Invalid value for 'srcDir' in ${projectConfig}: ${chalk.bold(`srcDir: "${srcDir}"`)}\n\t'srcDir' must be a relative path to a folder under the project root, such as "." or "./src"`,
2640
2616
  },
2641
2617
  getProjectConfig: {
2642
2618
  error: 'Could not read from project config',
@@ -2644,15 +2620,15 @@ exports.lib = {
2644
2620
  ensureProjectExists: {
2645
2621
  createPrompt: (projectName, accountIdentifier) => `The project ${projectName} does not exist in ${accountIdentifier}. Would you like to create it?`,
2646
2622
  createPromptUpload: (projectName, accountIdentifier) => `[--forceCreate] The project ${projectName} does not exist in ${accountIdentifier}. Would you like to create it?`,
2647
- createSuccess: (projectName, accountIdentifier) => `New project ${chalk_1.default.bold(projectName)} successfully created in ${chalk_1.default.bold(accountIdentifier)}.`,
2648
- notFound: (projectName, accountIdentifier) => `Your project ${chalk_1.default.bold(projectName)} could not be found in ${chalk_1.default.bold(accountIdentifier)}.`,
2623
+ createSuccess: (projectName, accountIdentifier) => `New project ${chalk.bold(projectName)} successfully created in ${chalk.bold(accountIdentifier)}.`,
2624
+ notFound: (projectName, accountIdentifier) => `Your project ${chalk.bold(projectName)} could not be found in ${chalk.bold(accountIdentifier)}.`,
2649
2625
  },
2650
2626
  pollFetchProject: {
2651
2627
  checkingProject: (accountIdentifier) => `Checking if project exists in ${accountIdentifier}`,
2652
2628
  },
2653
2629
  logFeedbackMessage: {
2654
2630
  feedbackHeader: "We'd love to hear your feedback!",
2655
- feedbackMessage: `How are you liking the new projects and developer tools? \n > Run ${(0, ui_1.uiCommandReference)('hs feedback')} to let us know what you think!\n`,
2631
+ feedbackMessage: `How are you liking the new projects and developer tools? \n > Run ${uiCommandReference('hs feedback')} to let us know what you think!\n`,
2656
2632
  },
2657
2633
  },
2658
2634
  projectBuildAndDeploy: {
@@ -2666,22 +2642,22 @@ exports.lib = {
2666
2642
  },
2667
2643
  pollBuildAutodeployStatusError: (buildId) => `Error fetching autodeploy status for build #${buildId}`,
2668
2644
  pollProjectBuildAndDeploy: {
2669
- buildSucceededAutomaticallyDeploying: (buildId, accountIdentifier) => `Build #${buildId} succeeded. ${chalk_1.default.bold('Automatically deploying')} to ${accountIdentifier}\n`,
2645
+ buildSucceededAutomaticallyDeploying: (buildId, accountIdentifier) => `Build #${buildId} succeeded. ${chalk.bold('Automatically deploying')} to ${accountIdentifier}\n`,
2670
2646
  cleanedUpTempFile: (path) => `Cleaned up temporary file ${path}`,
2671
2647
  viewDeploys: 'view all deploys for this project in HubSpot',
2672
- unableToFindAutodeployStatus: (buildId, viewDeploysLink) => `Unable to find the auto deploy for build #${buildId}. This deploy may have been skipped or blocked due to components being removed. Manually deploy with ${(0, ui_1.uiCommandReference)('hs project deploy')} or ${viewDeploysLink}.`,
2648
+ unableToFindAutodeployStatus: (buildId, viewDeploysLink) => `Unable to find the auto deploy for build #${buildId}. This deploy may have been skipped or blocked due to components being removed. Manually deploy with ${uiCommandReference('hs project deploy')} or ${viewDeploysLink}.`,
2673
2649
  },
2674
2650
  },
2675
2651
  projectUpload: {
2676
- wrongPlatformVersionMetaFiles: `Detected components that require a minimum platform version of ${projects_1.PLATFORM_VERSIONS.v2025_2}. You need to update your platform version in your ${constants_1.PROJECT_CONFIG_FILE} and run ${(0, ui_1.uiCommandReference)('hs project upload')}`,
2652
+ wrongPlatformVersionMetaFiles: `Detected components that require a minimum platform version of ${PLATFORM_VERSIONS.v2025_2}. You need to update your platform version in your ${PROJECT_CONFIG_FILE} and run ${uiCommandReference('hs project upload')}`,
2677
2653
  uploadProjectFiles: {
2678
- add: (projectName, accountIdentifier) => `Uploading ${chalk_1.default.bold(projectName)} project files to ${accountIdentifier}`,
2679
- fail: (projectName, accountIdentifier) => `Failed to upload ${chalk_1.default.bold(projectName)} project files to ${accountIdentifier}`,
2680
- succeed: (projectName, accountIdentifier) => `Uploaded ${chalk_1.default.bold(projectName)} project files to ${accountIdentifier}`,
2654
+ add: (projectName, accountIdentifier) => `Uploading ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
2655
+ fail: (projectName, accountIdentifier) => `Failed to upload ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
2656
+ succeed: (projectName, accountIdentifier) => `Uploaded ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
2681
2657
  buildCreated: (projectName, buildId) => `Project "${projectName}" uploaded and build #${buildId} created`,
2682
2658
  },
2683
2659
  handleProjectUpload: {
2684
- emptySource: (srcDir) => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${(0, ui_1.uiCommandReference)('hs project upload')} to upload them to HubSpot.`,
2660
+ emptySource: (srcDir) => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${uiCommandReference('hs project upload')} to upload them to HubSpot.`,
2685
2661
  compressed: (byteCount) => `Project files compressed: ${byteCount} bytes`,
2686
2662
  compressing: (path) => `Compressing build files to "${path}"`,
2687
2663
  fileFiltered: (filename) => `Ignore rule triggered for "${filename}"`,
@@ -2691,14 +2667,14 @@ exports.lib = {
2691
2667
  failedToLoad: 'Failed to load boxen util.',
2692
2668
  },
2693
2669
  ui: {
2694
- betaTag: chalk_1.default.bold('[BETA]'),
2670
+ betaTag: chalk.bold('[BETA]'),
2695
2671
  betaWarning: {
2696
- header: chalk_1.default.yellow('***************************** WARNING ****************************'),
2697
- footer: chalk_1.default.yellow('******************************************************************'),
2672
+ header: chalk.yellow('***************************** WARNING ****************************'),
2673
+ footer: chalk.yellow('******************************************************************'),
2698
2674
  },
2699
- infoTag: chalk_1.default.bold('[INFO]'),
2700
- deprecatedTag: chalk_1.default.bold('[DEPRECATED]'),
2701
- errorTag: chalk_1.default.bold('[ERROR]'),
2675
+ infoTag: chalk.bold('[INFO]'),
2676
+ deprecatedTag: chalk.bold('[DEPRECATED]'),
2677
+ errorTag: chalk.bold('[ERROR]'),
2702
2678
  deprecatedMessage: (command, url) => `The ${command} command is deprecated and will be disabled soon. ${url}`,
2703
2679
  deprecatedDescription: (message, command, url) => `${message}. The ${command} command is deprecated and will be disabled soon. ${url}`,
2704
2680
  deprecatedUrlText: 'Learn more.',
@@ -2808,6 +2784,11 @@ exports.lib = {
2808
2784
  promptMessage: 'Enter http timeout duration',
2809
2785
  success: (timeout) => `HTTP timeout set to: ${timeout}`,
2810
2786
  },
2787
+ setAutoOpenBrowser: {
2788
+ fieldName: 'auto open browser',
2789
+ enabled: 'Auto opening your browser has been enabled',
2790
+ disabled: 'Auto opening your browser has been disabled',
2791
+ },
2811
2792
  },
2812
2793
  commonOpts: {
2813
2794
  options: {
@@ -2833,13 +2814,13 @@ exports.lib = {
2833
2814
  success: 'Your deprecated config file has been successfully migrated.',
2834
2815
  },
2835
2816
  handleMergeConfigProperties: {
2836
- mergeConflictMessage: (count, propertyList) => `Conflict${count > 1 ? 's' : ''} detected for ${chalk_1.default.bold(propertyList)}.`,
2817
+ mergeConflictMessage: (count, propertyList) => `Conflict${count > 1 ? 's' : ''} detected for ${chalk.bold(propertyList)}.`,
2837
2818
  mergeConfigConflictPrompt: (property, newValue, oldValue) => `Change ${property} from ${newValue} to ${oldValue}?`,
2838
2819
  },
2839
2820
  handleMerge: {
2840
2821
  description: (archivedConfigName) => `We will automatically merge the contents of your deprecated config file into your global configuration file. This will merge the configured accounts and settings into the global config. Then it will archive the deprecated config as ${archivedConfigName} for you to manually cleanup at your convenience.`,
2841
2822
  confirmPrompt: 'Merge the deprecated config into your global config?',
2842
- skippedExistingAccounts: (accountIds) => `The following accounts were not merged because they already exist in the global config:${accountIds.map(id => `\n- ${(0, ui_1.uiAccountDescription)(Number(id))}`).join('')}`,
2823
+ skippedExistingAccounts: (accountIds) => `The following accounts were not merged because they already exist in the global config:${accountIds.map(id => `\n- ${uiAccountDescription(Number(id))}`).join('')}`,
2843
2824
  success: 'Your deprecated config file has been successfully merged with the global config file.',
2844
2825
  },
2845
2826
  },
@@ -2847,17 +2828,17 @@ exports.lib = {
2847
2828
  projectDevTargetAccountPrompt: {
2848
2829
  createNewSandboxOption: '<Test on a new development sandbox>',
2849
2830
  createNewDeveloperTestAccountOption: '<Test on a new developer test account>',
2850
- chooseDefaultAccountOption: () => `<${chalk_1.default.bold('❗')} Test on this production account ${chalk_1.default.bold('❗')}>`,
2831
+ chooseDefaultAccountOption: () => `<${chalk.bold('❗')} Test on this production account ${chalk.bold('❗')}>`,
2851
2832
  promptMessage: (accountType, accountIdentifier) => `[--account] Choose a ${accountType} under ${accountIdentifier} to test with:`,
2852
2833
  sandboxLimit: (limit) => `Your account reached the limit of ${limit} development sandboxes`,
2853
2834
  sandboxLimitWithSuggestion: (limit, authCommand) => `Your account reached the limit of ${limit} development sandboxes. Run ${authCommand} to add an existing one to the config.`,
2854
2835
  developerTestAccountLimit: (limit) => `Your account reached the limit of ${limit} developer test accounts.`,
2855
- confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${chalk_1.default.bold(`${accountName} (${accountType})`)}? (Y/n)`,
2836
+ confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${chalk.bold(`${accountName} (${accountType})`)}? (Y/n)`,
2856
2837
  confirmUseExistingDeveloperTestAccount: (accountName) => `Continue with ${accountName}? This account isn't currently connected to the HubSpot CLI. By continuing, you'll be prompted to generate a personal access key and connect it.`,
2857
2838
  noAccountId: 'No account ID found for the selected account. Please try again.',
2858
2839
  },
2859
2840
  projectLogsPrompt: {
2860
- functionName: (projectName) => `[--function] Select function in ${chalk_1.default.bold(projectName)} project`,
2841
+ functionName: (projectName) => `[--function] Select function in ${chalk.bold(projectName)} project`,
2861
2842
  },
2862
2843
  setAsDefaultAccountPrompt: {
2863
2844
  setAsDefaultAccountMessage: 'Set this account as the default?',
@@ -2990,10 +2971,10 @@ exports.lib = {
2990
2971
  selectAppIdClone: (accountName) => `[--appId] Choose an app under ${accountName} to clone:`,
2991
2972
  errors: {
2992
2973
  noAccountId: 'An account ID is required to select an app.',
2993
- noAppsMigration: () => `${chalk_1.default.bold('No apps to migrate')}`,
2994
- noAppsClone: () => `${chalk_1.default.bold('No apps to clone')}`,
2995
- noAppsMigrationMessage: (accountName) => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be migrated to the projects framework.`,
2996
- noAppsCloneMessage: (accountName) => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be cloned to the projects framework.`,
2974
+ noAppsMigration: () => `${chalk.bold('No apps to migrate')}`,
2975
+ noAppsClone: () => `${chalk.bold('No apps to clone')}`,
2976
+ noAppsMigrationMessage: (accountName) => `The selected developer account ${chalk.bold(accountName)} doesn't have any apps that can be migrated to the projects framework.`,
2977
+ noAppsCloneMessage: (accountName) => `The selected developer account ${chalk.bold(accountName)} doesn't have any apps that can be cloned to the projects framework.`,
2997
2978
  errorFetchingApps: 'There was an error fetching public apps.',
2998
2979
  cannotBeMigrated: 'Cannot be migrated',
2999
2980
  },
@@ -3046,7 +3027,7 @@ exports.lib = {
3046
3027
  enterName: '[--project] Enter project name:',
3047
3028
  errors: {
3048
3029
  invalidName: 'You entered an invalid name. Please try again.',
3049
- projectDoesNotExist: (projectName, accountIdentifier) => `Project ${chalk_1.default.bold(projectName)} could not be found in "${accountIdentifier}"`,
3030
+ projectDoesNotExist: (projectName, accountIdentifier) => `Project ${chalk.bold(projectName)} could not be found in "${accountIdentifier}"`,
3050
3031
  },
3051
3032
  },
3052
3033
  previewPrompt: {
@@ -3064,7 +3045,7 @@ exports.lib = {
3064
3045
  prompt: 'Open HubSpot to install this app?',
3065
3046
  autoPrompt: 'Install this app in your target test account?',
3066
3047
  reinstallPrompt: 'Open HubSpot to reinstall this app?',
3067
- decline: `To continue local development of this app, install it in your target test account and re-run ${chalk_1.default.bold('`hs project dev`')}`,
3048
+ decline: `To continue local development of this app, install it in your target test account and re-run ${chalk.bold('`hs project dev`')}`,
3068
3049
  },
3069
3050
  selectHubDBTablePrompt: {
3070
3051
  selectTable: 'Select a HubDB table:',
@@ -3096,20 +3077,20 @@ exports.lib = {
3096
3077
  developerTestAccount: {
3097
3078
  create: {
3098
3079
  loading: {
3099
- add: (accountName) => `Creating developer test account ${chalk_1.default.bold(accountName)}`,
3100
- fail: (accountName) => `Failed to create a developer test account ${chalk_1.default.bold(accountName)}.`,
3101
- succeed: (accountName, accountId) => `Successfully created a developer test account ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
3080
+ add: (accountName) => `Creating developer test account ${chalk.bold(accountName)}`,
3081
+ fail: (accountName) => `Failed to create a developer test account ${chalk.bold(accountName)}.`,
3082
+ succeed: (accountName, accountId) => `Successfully created a developer test account ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
3102
3083
  },
3103
3084
  success: {
3104
3085
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3105
3086
  },
3106
3087
  failure: {
3107
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3108
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To connect a developer test account to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
3109
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To use an existing developer test account, run ${chalk_1.default.bold('hs accounts use')}.`,
3088
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3089
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To connect a developer test account to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
3090
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To use an existing developer test account, run ${chalk.bold('hs accounts use')}.`,
3110
3091
  scopes: {
3111
3092
  message: "The personal access key you provided doesn't include developer test account permissions.",
3112
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer test account permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3093
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer test account permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3113
3094
  },
3114
3095
  },
3115
3096
  },
@@ -3118,58 +3099,58 @@ exports.lib = {
3118
3099
  create: {
3119
3100
  developer: {
3120
3101
  loading: {
3121
- add: (accountName) => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
3122
- fail: (accountName) => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
3123
- succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
3102
+ add: (accountName) => `Creating developer sandbox ${chalk.bold(accountName)}`,
3103
+ fail: (accountName) => `Failed to create a developer sandbox ${chalk.bold(accountName)}.`,
3104
+ succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
3124
3105
  },
3125
3106
  success: {
3126
3107
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3127
3108
  },
3128
3109
  failure: {
3129
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3130
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
3131
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
3110
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3111
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
3112
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk.bold('hs accounts use')}.`,
3132
3113
  scopes: {
3133
3114
  message: "The personal access key you provided doesn't include developer sandbox permissions.",
3134
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3115
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3135
3116
  },
3136
3117
  generic: 'An error occurred while creating a developer sandbox',
3137
3118
  },
3138
3119
  },
3139
3120
  standard: {
3140
3121
  loading: {
3141
- add: (accountName) => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
3142
- fail: (accountName) => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
3143
- succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
3122
+ add: (accountName) => `Creating standard sandbox ${chalk.bold(accountName)}`,
3123
+ fail: (accountName) => `Failed to create a standard sandbox ${chalk.bold(accountName)}.`,
3124
+ succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
3144
3125
  },
3145
3126
  success: {
3146
3127
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3147
3128
  },
3148
3129
  failure: {
3149
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3150
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
3151
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
3130
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3131
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
3132
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk.bold('hs accounts use')}.`,
3152
3133
  scopes: {
3153
3134
  message: "The personal access key you provided doesn't include standard sandbox permissions.",
3154
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3135
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3155
3136
  },
3156
3137
  },
3157
3138
  },
3158
3139
  },
3159
3140
  sync: {
3160
3141
  loading: {
3161
- add: (accountName) => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
3162
- fail: (accountName) => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
3163
- succeed: (accountName) => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
3142
+ add: (accountName) => `Syncing sandbox ${chalk.bold(accountName)}`,
3143
+ fail: (accountName) => `Failed to sync sandbox ${chalk.bold(accountName)}.`,
3144
+ succeed: (accountName) => `Successfully synced sandbox ${chalk.bold(accountName)}.`,
3164
3145
  },
3165
3146
  success: {
3166
3147
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3167
3148
  },
3168
3149
  failure: {
3169
- invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3150
+ invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3170
3151
  scopes: {
3171
3152
  message: "The personal access key you provided doesn't include sandbox sync permissions.",
3172
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3153
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3173
3154
  },
3174
3155
  },
3175
3156
  },
@@ -3184,9 +3165,9 @@ exports.lib = {
3184
3165
  suppressErrors: {
3185
3166
  platformVersionErrors: {
3186
3167
  header: 'Platform version update required',
3187
- unspecifiedPlatformVersion: (platformVersion) => `Projects with an ${chalk_1.default.bold(platformVersion)} are no longer supported.`,
3188
- platformVersionRetired: (platformVersion) => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are no longer supported.`,
3189
- nonExistentPlatformVersion: (platformVersion) => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are not supported.`,
3168
+ unspecifiedPlatformVersion: (platformVersion) => `Projects with an ${chalk.bold(platformVersion)} are no longer supported.`,
3169
+ platformVersionRetired: (platformVersion) => `Projects with ${chalk.bold(`platformVersion ${platformVersion}`)} are no longer supported.`,
3170
+ nonExistentPlatformVersion: (platformVersion) => `Projects with ${chalk.bold(`platformVersion ${platformVersion}`)} are not supported.`,
3190
3171
  updateProject: 'Please update your project to the latest version and try again.',
3191
3172
  docsLink: 'Projects platform versioning (BETA)',
3192
3173
  betaLink: (docsLink) => `For more info, see ${docsLink}.`,
@@ -3238,13 +3219,13 @@ exports.lib = {
3238
3219
  unableToDetermineSecondaryLink: 'npm HubSpot CLI version history',
3239
3220
  },
3240
3221
  projectDependenciesChecks: {
3241
- missingDependencies: (dir) => `missing dependencies in ${chalk_1.default.bold(dir)}`,
3222
+ missingDependencies: (dir) => `missing dependencies in ${chalk.bold(dir)}`,
3242
3223
  missingDependenciesSecondary: (command) => `Run ${command} to install all project dependencies locally`,
3243
3224
  unableToDetermine: (dir) => `Unable to determine if dependencies are installed ${dir}`,
3244
3225
  success: 'App dependencies are installed and up to date',
3245
3226
  },
3246
3227
  files: {
3247
- invalidJson: (filename) => `invalid JSON in ${chalk_1.default.bold(filename)}`,
3228
+ invalidJson: (filename) => `invalid JSON in ${chalk.bold(filename)}`,
3248
3229
  validJson: 'JSON files valid',
3249
3230
  },
3250
3231
  port: {
@@ -3258,19 +3239,19 @@ exports.lib = {
3258
3239
  },
3259
3240
  cliConfig: {
3260
3241
  header: 'CLI configuration',
3261
- configFileSubHeader: (filename) => `Config File: ${chalk_1.default.bold(filename)}`,
3242
+ configFileSubHeader: (filename) => `Config File: ${chalk.bold(filename)}`,
3262
3243
  defaultAccountSubHeader: (accountDetails) => `Default Account: ${accountDetails}`,
3263
3244
  noConfigFile: 'CLI configuration not found',
3264
3245
  noConfigFileSecondary: (command) => `Run ${command} and follow the prompts to create your CLI configuration file and connect it to your HubSpot account`,
3265
3246
  },
3266
3247
  projectConfig: {
3267
3248
  header: 'Project configuration',
3268
- projectDirSubHeader: (projectDir) => `Project dir: ${chalk_1.default.bold(projectDir)}`,
3269
- projectNameSubHeader: (projectName) => `Project name: ${chalk_1.default.bold(projectName)}`,
3249
+ projectDirSubHeader: (projectDir) => `Project dir: ${chalk.bold(projectDir)}`,
3250
+ projectNameSubHeader: (projectName) => `Project name: ${chalk.bold(projectName)}`,
3270
3251
  },
3271
3252
  counts: {
3272
- errors: (count) => `${chalk_1.default.bold('Errors:')} ${count}`,
3273
- warnings: (count) => `${chalk_1.default.bold('Warning:')} ${count}`,
3253
+ errors: (count) => `${chalk.bold('Errors:')} ${count}`,
3254
+ warnings: (count) => `${chalk.bold('Warning:')} ${count}`,
3274
3255
  },
3275
3256
  },
3276
3257
  },
@@ -3282,11 +3263,11 @@ exports.lib = {
3282
3263
  componentsThatWillNotBeMigrated: (components) => `[NOTE] These features are not yet supported for migration but will be available later: ${components}`,
3283
3264
  sourceContentsMoved: (newLocation) => `The contents of your old source directory have been moved to ${newLocation}, move any required files to the new source directory.`,
3284
3265
  projectMigrationWarningTitle: '⚠️ Important: Migrating to platformVersion 2025.2 is irreversible ⚠️',
3285
- projectMigrationWarning: (0, ui_1.uiBetaTag)(`Running the ${(0, ui_1.uiCommandReference)('hs project migrate')} command will permanently upgrade your project to platformVersion 2025.2. This action cannot be undone. To ensure you have access to your original files, they will be copied to a new directory (archive) for safekeeping.\n\nThis command will guide you through the process, prompting you to enter the required fields and will download the new project source code into your project source directory.`, false),
3266
+ projectMigrationWarning: uiBetaTag(`Running the ${uiCommandReference('hs project migrate')} command will permanently upgrade your project to platformVersion 2025.2. This action cannot be undone. To ensure you have access to your original files, they will be copied to a new directory (archive) for safekeeping.\n\nThis command will guide you through the process, prompting you to enter the required fields and will download the new project source code into your project source directory.`, false),
3286
3267
  errors: {
3287
3268
  project: {
3288
3269
  invalidConfig: 'The project configuration file is invalid. Please check the config file and try again.',
3289
- doesNotExist: (account) => `Project does not exist in ${(0, ui_1.uiAccountDescription)(account)}. Migrations are only supported for existing projects.`,
3270
+ doesNotExist: (account) => `Project does not exist in ${uiAccountDescription(account)}. Migrations are only supported for existing projects.`,
3290
3271
  multipleApps: 'Multiple apps found in project, this is not allowed in 2025.2',
3291
3272
  alreadyExists: (projectName) => `A project with name ${projectName} already exists. Please choose another name.`,
3292
3273
  },
@@ -3294,12 +3275,12 @@ exports.lib = {
3294
3275
  upToDate: 'App is already up to date',
3295
3276
  isPrivateApp: 'Private apps are not currently migratable',
3296
3277
  listedInMarketplace: 'Listed apps are not currently migratable',
3297
- projectConnectedToGitHub: (projectName, accountId) => `The project is linked to a GitHub repository. ${(0, ui_1.uiLink)('Visit the project settings page to unlink it', (0, urls_1.getProjectSettingsUrl)(projectName, accountId))}`,
3298
- partOfProjectAlready: `This app is part of a project, run ${(0, ui_1.uiCommandReference)('hs project migrate')} from the project directory to migrate it`,
3278
+ projectConnectedToGitHub: (projectName, accountId) => `The project is linked to a GitHub repository. ${uiLink('Visit the project settings page to unlink it', getProjectSettingsUrl(projectName, accountId))}`,
3279
+ partOfProjectAlready: `This app is part of a project, run ${uiCommandReference('hs project migrate')} from the project directory to migrate it`,
3299
3280
  generic: (reasonCode) => `Unable to migrate app: ${reasonCode}`,
3300
3281
  },
3301
3282
  noAppsEligible: (accountId, reasons) => `No apps in account ${accountId} are currently migratable${reasons.length ? `\n - ${reasons.join('\n - ')}` : ''}`,
3302
- invalidAccountTypeTitle: `${chalk_1.default.bold('Developer account not targeted')}`,
3283
+ invalidAccountTypeTitle: `${chalk.bold('Developer account not targeted')}`,
3303
3284
  invalidAccountTypeDescription: (useCommand, authCommand) => `Only public apps created in a developer account can be converted to a project component. Select a connected developer account with ${useCommand} or ${authCommand} and try again.`,
3304
3285
  appWithAppIdNotFound: (appId) => `Could not find an app with the id ${appId} `,
3305
3286
  noAppsForProject: (projectName) => `No apps associated with project ${projectName}`,