@forge/cli-shared 10.0.0-next.12 → 10.0.0-next.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/out/app-logs/graphql-client.d.ts +2 -2
  3. package/out/app-logs/graphql-client.d.ts.map +1 -1
  4. package/out/app-logs/graphql-client.js +9 -17
  5. package/out/app-logs/index.d.ts +2 -2
  6. package/out/app-logs/index.d.ts.map +1 -1
  7. package/out/app-logs/index.js +2 -5
  8. package/out/app-logs/view-logs.d.ts +4 -4
  9. package/out/app-logs/view-logs.d.ts.map +1 -1
  10. package/out/app-logs/view-logs.js +8 -12
  11. package/out/apps/app-config.d.ts +2 -2
  12. package/out/apps/app-config.d.ts.map +1 -1
  13. package/out/apps/app-config.js +13 -20
  14. package/out/apps/create-an-app.d.ts +4 -4
  15. package/out/apps/create-an-app.d.ts.map +1 -1
  16. package/out/apps/create-an-app.js +6 -11
  17. package/out/apps/create-app-graphql-client.d.ts +2 -2
  18. package/out/apps/create-app-graphql-client.d.ts.map +1 -1
  19. package/out/apps/create-app-graphql-client.js +9 -14
  20. package/out/apps/get-app-owner.d.ts +4 -4
  21. package/out/apps/get-app-owner.d.ts.map +1 -1
  22. package/out/apps/get-app-owner.js +8 -13
  23. package/out/apps/index.d.ts +9 -9
  24. package/out/apps/index.d.ts.map +1 -1
  25. package/out/apps/index.js +9 -12
  26. package/out/apps/package-installer.d.ts +1 -1
  27. package/out/apps/package-installer.d.ts.map +1 -1
  28. package/out/apps/package-installer.js +9 -14
  29. package/out/apps/register-app.d.ts +4 -4
  30. package/out/apps/register-app.d.ts.map +1 -1
  31. package/out/apps/register-app.js +9 -13
  32. package/out/apps/sites.js +1 -4
  33. package/out/apps/template-module.js +27 -33
  34. package/out/apps/template.d.ts +3 -3
  35. package/out/apps/template.d.ts.map +1 -1
  36. package/out/apps/template.js +36 -47
  37. package/out/ari/ari.js +48 -63
  38. package/out/ari/index.d.ts +1 -1
  39. package/out/ari/index.d.ts.map +1 -1
  40. package/out/ari/index.js +1 -4
  41. package/out/auth/authenticator.js +2 -6
  42. package/out/auth/index.d.ts +3 -3
  43. package/out/auth/index.d.ts.map +1 -1
  44. package/out/auth/index.js +3 -6
  45. package/out/auth/instruction.js +3 -6
  46. package/out/auth/personal/credential-store.d.ts +20 -26
  47. package/out/auth/personal/credential-store.d.ts.map +1 -1
  48. package/out/auth/personal/credential-store.js +219 -141
  49. package/out/auth/personal/index.d.ts +6 -6
  50. package/out/auth/personal/index.d.ts.map +1 -1
  51. package/out/auth/personal/index.js +6 -9
  52. package/out/auth/personal/login.d.ts +3 -3
  53. package/out/auth/personal/login.d.ts.map +1 -1
  54. package/out/auth/personal/login.js +1 -5
  55. package/out/auth/personal/logout.d.ts +1 -1
  56. package/out/auth/personal/logout.d.ts.map +1 -1
  57. package/out/auth/personal/logout.js +1 -5
  58. package/out/auth/personal/me-graphql-client.d.ts +3 -3
  59. package/out/auth/personal/me-graphql-client.d.ts.map +1 -1
  60. package/out/auth/personal/me-graphql-client.js +7 -12
  61. package/out/auth/personal/token-authenticator.d.ts +3 -3
  62. package/out/auth/personal/token-authenticator.d.ts.map +1 -1
  63. package/out/auth/personal/token-authenticator.js +10 -14
  64. package/out/auth/personal/user-repository.d.ts +4 -4
  65. package/out/auth/personal/user-repository.d.ts.map +1 -1
  66. package/out/auth/personal/user-repository.js +5 -9
  67. package/out/cache/cached-conf.d.ts.map +1 -1
  68. package/out/cache/cached-conf.js +5 -10
  69. package/out/cache/index.d.ts +1 -1
  70. package/out/cache/index.d.ts.map +1 -1
  71. package/out/cache/index.js +1 -4
  72. package/out/config/config-codec-types.js +1 -2
  73. package/out/config/config-file-section-reader.d.ts +3 -3
  74. package/out/config/config-file-section-reader.d.ts.map +1 -1
  75. package/out/config/config-file-section-reader.js +4 -10
  76. package/out/config/config-file-section-writer.d.ts +3 -3
  77. package/out/config/config-file-section-writer.d.ts.map +1 -1
  78. package/out/config/config-file-section-writer.js +2 -7
  79. package/out/config/config-file.d.ts +3 -3
  80. package/out/config/config-file.d.ts.map +1 -1
  81. package/out/config/config-file.js +40 -49
  82. package/out/config/config-section.js +4 -11
  83. package/out/config/config.d.ts +1 -1
  84. package/out/config/config.d.ts.map +1 -1
  85. package/out/config/config.js +7 -13
  86. package/out/config/index.d.ts +6 -6
  87. package/out/config/index.d.ts.map +1 -1
  88. package/out/config/index.js +6 -9
  89. package/out/file-system/archiver.d.ts +2 -2
  90. package/out/file-system/archiver.d.ts.map +1 -1
  91. package/out/file-system/archiver.js +20 -29
  92. package/out/file-system/file-system-reader.d.ts.map +1 -1
  93. package/out/file-system/file-system-reader.js +21 -26
  94. package/out/file-system/file-system-writer.js +5 -10
  95. package/out/file-system/index.d.ts +5 -5
  96. package/out/file-system/index.d.ts.map +1 -1
  97. package/out/file-system/index.js +5 -8
  98. package/out/file-system/util.js +1 -4
  99. package/out/file-system/zip-accessor.js +3 -8
  100. package/out/graphql/app-environment-graphql-client.d.ts +2 -2
  101. package/out/graphql/app-environment-graphql-client.d.ts.map +1 -1
  102. package/out/graphql/app-environment-graphql-client.js +10 -16
  103. package/out/graphql/app-oauth-client-id-graphql-client.d.ts +1 -1
  104. package/out/graphql/app-oauth-client-id-graphql-client.d.ts.map +1 -1
  105. package/out/graphql/app-oauth-client-id-graphql-client.js +6 -10
  106. package/out/graphql/debugging-graphql-runner.d.ts +2 -2
  107. package/out/graphql/debugging-graphql-runner.d.ts.map +1 -1
  108. package/out/graphql/debugging-graphql-runner.js +5 -10
  109. package/out/graphql/gateway.js +15 -23
  110. package/out/graphql/get-mutation-error.js +4 -8
  111. package/out/graphql/gql/gql.d.ts +82 -82
  112. package/out/graphql/gql/gql.d.ts.map +1 -1
  113. package/out/graphql/gql/gql.js +2 -6
  114. package/out/graphql/gql/graphql.d.ts +4 -0
  115. package/out/graphql/gql/graphql.d.ts.map +1 -1
  116. package/out/graphql/gql/graphql.js +83 -88
  117. package/out/graphql/gql/index.d.ts +1 -1
  118. package/out/graphql/gql/index.d.ts.map +1 -1
  119. package/out/graphql/gql/index.js +1 -4
  120. package/out/graphql/graphql-client.js +1 -2
  121. package/out/graphql/graphql-domain-types.d.ts +1 -1
  122. package/out/graphql/graphql-domain-types.d.ts.map +1 -1
  123. package/out/graphql/graphql-domain-types.js +1 -2
  124. package/out/graphql/graphql-runtime-enums.js +16 -19
  125. package/out/graphql/index.d.ts +12 -12
  126. package/out/graphql/index.d.ts.map +1 -1
  127. package/out/graphql/index.js +12 -17
  128. package/out/graphql/minimal-graphql-runner.d.ts +4 -4
  129. package/out/graphql/minimal-graphql-runner.d.ts.map +1 -1
  130. package/out/graphql/minimal-graphql-runner.js +31 -40
  131. package/out/graphql/mutation-aware-graphql-client.d.ts +2 -2
  132. package/out/graphql/mutation-aware-graphql-client.d.ts.map +1 -1
  133. package/out/graphql/mutation-aware-graphql-client.js +4 -10
  134. package/out/graphql/path-based-graphql-client-resolver.d.ts +1 -1
  135. package/out/graphql/path-based-graphql-client-resolver.d.ts.map +1 -1
  136. package/out/graphql/path-based-graphql-client-resolver.js +3 -7
  137. package/out/http-client/feedback-post-client.js +1 -5
  138. package/out/http-client/file-uploader.d.ts +1 -1
  139. package/out/http-client/file-uploader.d.ts.map +1 -1
  140. package/out/http-client/file-uploader.js +11 -18
  141. package/out/http-client/global-edge-http-client.js +8 -14
  142. package/out/http-client/index.d.ts +5 -5
  143. package/out/http-client/index.d.ts.map +1 -1
  144. package/out/http-client/index.js +5 -8
  145. package/out/http-client/node-request.js +10 -16
  146. package/out/http-client/trace.js +1 -4
  147. package/out/index.d.ts +13 -13
  148. package/out/index.d.ts.map +1 -1
  149. package/out/index.js +13 -16
  150. package/out/service/bridge-script-service.js +5 -9
  151. package/out/service/i18n-resource-bundling-service.js +24 -30
  152. package/out/service/iframe-resizer-script-service.js +5 -9
  153. package/out/service/index.d.ts +5 -5
  154. package/out/service/index.d.ts.map +1 -1
  155. package/out/service/index.js +5 -8
  156. package/out/service/statsig-service.d.ts +1 -1
  157. package/out/service/statsig-service.d.ts.map +1 -1
  158. package/out/service/statsig-service.js +9 -15
  159. package/out/service/supported-products-service.d.ts +2 -2
  160. package/out/service/supported-products-service.d.ts.map +1 -1
  161. package/out/service/supported-products-service.js +13 -18
  162. package/out/shared/assertUnreachable.js +1 -4
  163. package/out/shared/assistant-cli.d.ts +1 -1
  164. package/out/shared/assistant-cli.d.ts.map +1 -1
  165. package/out/shared/assistant-cli.js +15 -24
  166. package/out/shared/cli-details.js +6 -11
  167. package/out/shared/developer-console.js +12 -18
  168. package/out/shared/directories.js +4 -8
  169. package/out/shared/environment.d.ts +1 -1
  170. package/out/shared/environment.d.ts.map +1 -1
  171. package/out/shared/environment.js +19 -25
  172. package/out/shared/error-handling.d.ts +1 -1
  173. package/out/shared/error-handling.d.ts.map +1 -1
  174. package/out/shared/error-handling.js +24 -44
  175. package/out/shared/forge-cli-attribution.js +6 -11
  176. package/out/shared/index.d.ts +13 -13
  177. package/out/shared/index.d.ts.map +1 -1
  178. package/out/shared/index.js +13 -16
  179. package/out/shared/installations.js +1 -4
  180. package/out/shared/pause.js +1 -5
  181. package/out/shared/product.d.ts.map +1 -1
  182. package/out/shared/product.js +5 -10
  183. package/out/shared/read-app-config-files.d.ts +1 -1
  184. package/out/shared/read-app-config-files.d.ts.map +1 -1
  185. package/out/shared/read-app-config-files.js +6 -12
  186. package/out/shared/runner-signals.js +1 -5
  187. package/out/shared/test.d.ts +1 -1
  188. package/out/shared/test.d.ts.map +1 -1
  189. package/out/shared/test.js +24 -29
  190. package/out/tunnel/docker-compose-lifecycle.d.ts +3 -3
  191. package/out/tunnel/docker-compose-lifecycle.d.ts.map +1 -1
  192. package/out/tunnel/docker-compose-lifecycle.js +53 -70
  193. package/out/tunnel/index.d.ts +2 -2
  194. package/out/tunnel/index.d.ts.map +1 -1
  195. package/out/tunnel/index.js +2 -5
  196. package/out/tunnel/tunnel-options.js +13 -18
  197. package/out/ui/command-line-ui.d.ts +2 -2
  198. package/out/ui/command-line-ui.d.ts.map +1 -1
  199. package/out/ui/command-line-ui.js +53 -58
  200. package/out/ui/hint-rotation.d.ts +2 -2
  201. package/out/ui/hint-rotation.d.ts.map +1 -1
  202. package/out/ui/hint-rotation.js +2 -6
  203. package/out/ui/index.d.ts +8 -8
  204. package/out/ui/index.d.ts.map +1 -1
  205. package/out/ui/index.js +8 -11
  206. package/out/ui/log-color.js +16 -20
  207. package/out/ui/log-symbols.js +10 -13
  208. package/out/ui/logger.js +2 -6
  209. package/out/ui/multiple-table-prompt.d.ts +1 -1
  210. package/out/ui/multiple-table-prompt.d.ts.map +1 -1
  211. package/out/ui/multiple-table-prompt.js +13 -20
  212. package/out/ui/runtime-log.js +12 -16
  213. package/out/ui/single-table-prompt.d.ts +1 -1
  214. package/out/ui/single-table-prompt.d.ts.map +1 -1
  215. package/out/ui/single-table-prompt.js +12 -19
  216. package/out/ui/table-prompt.d.ts +1 -1
  217. package/out/ui/table-prompt.d.ts.map +1 -1
  218. package/out/ui/table-prompt.js +11 -16
  219. package/out/ui/table.d.ts.map +1 -1
  220. package/out/ui/table.js +4 -7
  221. package/out/ui/text.d.ts +4 -13
  222. package/out/ui/text.d.ts.map +1 -1
  223. package/out/ui/text.js +213 -242
  224. package/out/ui/ui.d.ts +2 -2
  225. package/out/ui/ui.d.ts.map +1 -1
  226. package/out/ui/ui.js +1 -2
  227. package/package.json +2 -2
package/out/ui/text.js CHANGED
@@ -1,20 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Text = exports.capitalise = void 0;
4
- exports.itemList = itemList;
5
- const tslib_1 = require("tslib");
6
- const manifest_1 = require("@forge/manifest");
7
- const case_1 = require("case");
8
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
9
- const semver_1 = require("semver");
10
- const terminal_link_1 = tslib_1.__importDefault(require("terminal-link"));
11
- const graphql_runtime_enums_1 = require("../graphql/graphql-runtime-enums");
12
- const cli_details_1 = require("../shared/cli-details");
13
- const environment_1 = require("../shared/environment");
14
- const developer_console_1 = require("../shared/developer-console");
15
- const installations_1 = require("../shared/installations");
16
- const log_color_1 = require("./log-color");
17
- const log_symbols_1 = tslib_1.__importDefault(require("./log-symbols"));
1
+ import { MANIFEST_FILE } from '@forge/manifest';
2
+ import Case from 'case';
3
+ import chalk from 'chalk';
4
+ import { major } from 'semver';
5
+ import terminalLink from 'terminal-link';
6
+ import { AppEnvironmentType, AppPlacementType, AppVersionDeploymentStatus, AppVersionDeploymentStep } from '../graphql/graphql-runtime-enums.js';
7
+ import { FORGE_CLI_PACKAGE } from '../shared/cli-details.js';
8
+ import { DEFAULT_ENVIRONMENT_KEY, DEFAULT_ENVIRONMENT_OPTION, environmentToOption } from '../shared/environment.js';
9
+ import { getDevConsoleUrl } from '../shared/developer-console.js';
10
+ import { MAX_BATCH_UNINSTALLS } from '../shared/installations.js';
11
+ import { LogColor } from './log-color.js';
12
+ import logSymbols from './log-symbols.js';
18
13
  const ctrlC = 'Press Ctrl+C to cancel.';
19
14
  const encryptedValue = '****';
20
15
  var FrontendLogSourceDisplay;
@@ -23,33 +18,28 @@ var FrontendLogSourceDisplay;
23
18
  FrontendLogSourceDisplay["UNCAUGHT_EXCEPTION"] = "uncaught exception";
24
19
  FrontendLogSourceDisplay["UNHANDLED_REJECTION"] = "unhandled rejection";
25
20
  })(FrontendLogSourceDisplay || (FrontendLogSourceDisplay = {}));
26
- const greenTick = `${chalk_1.default.bold(chalk_1.default.green('✔'))}`;
27
- const buildTerminalLink = (text) => (0, terminal_link_1.default)(chalk_1.default.bold(text), text, { fallback: () => chalk_1.default.underline.bold(text) });
28
- const buildTerminalLabeledLink = (label, link) => (0, terminal_link_1.default)(chalk_1.default.bold(label), link, { fallback: () => chalk_1.default.underline.bold(label) });
21
+ const greenTick = `${chalk.bold(chalk.green('✔'))}`;
22
+ const buildTerminalLink = (text) => terminalLink(chalk.bold(text), text, { fallback: () => chalk.underline.bold(text) });
23
+ const buildTerminalLabeledLink = (label, link) => terminalLink(chalk.bold(label), link, { fallback: () => chalk.underline.bold(label) });
29
24
  const go = (link) => buildTerminalLink(`https://go.atlassian.com/${link}`);
30
25
  const gettingStartedDACLink = go('dac/platform/forge/getting-started/#log-in-with-an-atlassian-api-token');
31
- const command = (...args) => chalk_1.default.bold(args.join(' '));
26
+ const command = (...args) => chalk.bold(args.join(' '));
32
27
  const forge = (...args) => command('forge', ...args);
33
- const deployCommand = (subcommand, envKey, majorVersion) => forge(`deploy ${subcommand}`, '-e', (0, environment_1.environmentToOption)(envKey), ...(majorVersion ? ['-v', String(majorVersion)] : []));
28
+ const deployCommand = (subcommand, envKey, majorVersion) => forge(`deploy ${subcommand}`, '-e', environmentToOption(envKey), ...(majorVersion ? ['-v', String(majorVersion)] : []));
34
29
  const deployedDetails = (appName, envKey, envType, buildTag, numApprovals) => {
35
30
  const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
36
31
  const approvalsText = numApprovals && numApprovals > 0
37
32
  ? ` with ${numApprovals} ${numApprovals === 1 ? 'approval' : 'approvals'} acknowledged`
38
33
  : '';
39
- return `${appName}${buildTagText} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment${approvalsText}.`;
34
+ return `${appName}${buildTagText} to the ${Text.env.displayEnvironment(envKey, envType)} environment${approvalsText}.`;
40
35
  };
41
- const autoSpaceSentences = (...sentences) => sentences
42
- .filter((sentence) => sentence.length > 0)
43
- .join(' ');
44
- function itemList(items, indent) {
36
+ export function itemList(items, indent) {
45
37
  return items.map((item) => `${indent ?? ' '}- ${item}`).join(`\n${indent ?? ''}`);
46
38
  }
47
- const fatalError = (message) => chalk_1.default.bold(chalk_1.default.red(message));
39
+ const fatalError = (message) => chalk.bold(chalk.red(message));
48
40
  const approveRuleDescription = 'list of validation rules to approve';
49
- const keytarAccessErrorBase = (message) => `Keytar error detected: ${message}`;
50
- const capitalise = (word) => word.charAt(0).toUpperCase() + word.slice(1);
51
- exports.capitalise = capitalise;
52
- const getLintMessage = (line, column, message, level, colourFunction, reference) => `${chalk_1.default.dim(`${line}:${column}`.padEnd(7))} ${colourFunction(level.padEnd(8))} ${message} ${chalk_1.default.dim(reference)}\n`;
41
+ export const capitalise = (word) => word.charAt(0).toUpperCase() + word.slice(1);
42
+ const getLintMessage = (line, column, message, level, colourFunction, reference) => `${chalk.dim(`${line}:${column}`.padEnd(7))} ${colourFunction(level.padEnd(8))} ${message} ${chalk.dim(reference)}\n`;
53
43
  const checkLintTotalPlurals = (numErrors, numWarnings, numApprovals, numFixableErrors, numFixableWarnings) => ({
54
44
  pluralCheckedErrors: `${numErrors} ${numErrors === 1 ? 'error' : 'errors'}`,
55
45
  pluralCheckedWarnings: `${numWarnings} ${numWarnings === 1 ? 'warning' : 'warnings'}`,
@@ -58,47 +48,31 @@ const checkLintTotalPlurals = (numErrors, numWarnings, numApprovals, numFixableE
58
48
  pluralCheckedFixableErrors: `${numFixableErrors} ${numFixableErrors === 1 ? 'error' : 'errors'}`,
59
49
  pluralCheckedFixableWarnings: `${numFixableWarnings} ${numFixableWarnings === 1 ? 'warning' : 'warnings'}`
60
50
  });
61
- const platformKeytarRecommendations = () => {
62
- switch (process.platform) {
63
- case 'darwin':
64
- return 'Ensure you enable access to the macOS keychain when prompted.';
65
- case 'linux':
66
- return `Ensure you have ${chalk_1.default.bold('libsecret')} installed.`;
67
- default:
68
- return '';
69
- }
70
- };
71
51
  const globalTargetLocation = ({ unit, org }) => unit && org
72
- ? `in unit ${chalk_1.default.bold(unit)} in organization ${chalk_1.default.bold(org)}`
52
+ ? `in unit ${chalk.bold(unit)} in organization ${chalk.bold(org)}`
73
53
  : unit
74
- ? `in unit ${chalk_1.default.bold(unit)}`
75
- : `in organization ${chalk_1.default.bold(org ?? '')}`;
76
- exports.Text = {
54
+ ? `in unit ${chalk.bold(unit)}`
55
+ : `in organization ${chalk.bold(org ?? '')}`;
56
+ export const Text = {
77
57
  buildTerminalLink,
78
58
  go,
79
59
  error: {
80
- noKeytar: autoSpaceSentences(`The CLI couldn't securely store your login credentials in a local keychain.`, platformKeytarRecommendations(), `If a local keychain is not available, use environment variables before trying again. See ${gettingStartedDACLink} for more.`),
81
- noTokenStored: `Not logged in. If a local keychain is available, run ${forge('login')}, otherwise set environment variables before trying again. See ${gettingStartedDACLink} for more.`,
82
- keytarAccessError: {
83
- other: (message) => keytarAccessErrorBase(message),
84
- mac: (message) => keytarAccessErrorBase(message) +
85
- `\nSomething went wrong while accessing Keychain Access. Try locking and unlocking the login keychain.`,
86
- linux: (message) => keytarAccessErrorBase(message) + `\nSomething went wrong while accessing Secret Service API.`,
87
- windows: (message) => keytarAccessErrorBase(message) + `\nSomething went wrong while accessing Credentials Vault.`
88
- },
60
+ noTokenStored: `Not logged in. Run ${forge('login')}, or set the FORGE_EMAIL and FORGE_API_TOKEN environment variables before trying again. See ${gettingStartedDACLink} for more.`,
61
+ credentialsFilePermissions: `The CLI couldn't securely store your login credentials in the local credentials file. ` +
62
+ `Set the FORGE_EMAIL and FORGE_API_TOKEN environment variables instead. See ${gettingStartedDACLink} for more.`,
89
63
  outdatedCLIVersion: (installed, latest) => `Warning: Your version of Forge CLI is out of date. We recommend you update to the latest version to get the latest features and bug fixes.` +
90
- `\nRun ${command('npm', 'install', '-g', `${cli_details_1.FORGE_CLI_PACKAGE}@latest`)} to update from version ${chalk_1.default.bold(installed)} to ${chalk_1.default.bold(latest)}.` +
64
+ `\nRun ${command('npm', 'install', '-g', `${FORGE_CLI_PACKAGE}@latest`)} to update from version ${chalk.bold(installed)} to ${chalk.bold(latest)}.` +
91
65
  `\n`,
92
66
  outdatedNodeVersion: (compatibleNodeVersion, currentNodeVersion) => fatalError(`Unsupported Node.js version. The CLI requires Node.js ${compatibleNodeVersion}, but you're using Node.js ${currentNodeVersion}.`),
93
67
  missingProductNameValue: 'Parameter requires an Atlassian app name. Rerun the command with a valid Atlassian app name.',
94
- invalidContext: (validContexts) => `Invalid Atlassian app. Rerun ${chalk_1.default.bold('forge install')} with ${validContexts.length > 0
68
+ invalidContext: (validContexts) => `Invalid Atlassian app. Rerun ${chalk.bold('forge install')} with ${validContexts.length > 0
95
69
  ? `one of the following valid Atlassian apps: ${validContexts.join(', ')}`
96
70
  : 'a valid Atlassian app'}.`,
97
71
  missingSiteUrlValue: 'Site parameter requires a site URL. Rerun the command with a valid site URL.',
98
72
  invalidSite: 'The site you entered is not an Atlassian site. Rerun the command with the URL to an Atlassian site to install the app.',
99
73
  invalidWorkspace: 'The workspace you entered is not a valid workspace. Rerun the command with the URL to a valid workspace to install the app.',
100
74
  invalidInstallationContext: 'Could not find an installation for the provided Atlassian app',
101
- invalidTokenInKeytar: `Your API token is no longer valid. Run ${forge('login')} to reset your login credentials.`,
75
+ invalidTokenInCredentialFile: `Your API token is no longer valid. Run ${forge('login')} to reset your login credentials.`,
102
76
  invalidUpgradeTarget: 'You must specify either "all" or "code" as the upgrade target.',
103
77
  invalidTokenInEnv: (instructionsUrl, emailVar, tokenVar) => `The API token on your machine is no longer valid.` +
104
78
  `\n 1) Get a new API token: ${instructionsUrl}` +
@@ -126,21 +100,18 @@ exports.Text = {
126
100
  countSize: (maxSizeOfUsersWithAccess) => `User limit exceeded. The --users-with-access option allows a maximum of ${maxSizeOfUsersWithAccess} users.`
127
101
  },
128
102
  multipleMatchingInstallations: 'Multiple matching installations found for the provided Atlassian app when only one was expected',
129
- partialInstallation: (failedProductInstallations) => `Failed to install into the following Atlassian apps: ${failedProductInstallations.join(', ')}. Run ${chalk_1.default.bold('forge install')} again to reattempt this installation.`,
103
+ partialInstallation: (failedProductInstallations) => `Failed to install into the following Atlassian apps: ${failedProductInstallations.join(', ')}. Run ${chalk.bold('forge install')} again to reattempt this installation.`,
130
104
  invalidServicePort: (serviceKey) => `Invalid tunnel port value for service ${serviceKey}. The 'tunnel:port' must be an integer between 1024 and 49152. Update your manifest.yml and try again. See ${buildTerminalLink('https://developer.atlassian.com/platform/forge/containers-reference/ref-manifest/#tunnel')} for more information.`,
131
- environmentIsNotDefined: (envKey) => `Environment with name ${envKey} not defined. Create this environment with ${chalk_1.default.bold(`forge environments create -e ${envKey}`)} before proceeding.`
105
+ environmentIsNotDefined: (envKey) => `Environment with name ${envKey} not defined. Create this environment with ${chalk.bold(`forge environments create -e ${envKey}`)} before proceeding.`
132
106
  },
133
107
  warning: {
134
- plaintextCredentialsFound: (url) => `Your credentials were stored in plaintext by a previous version of the Forge CLI. For additional security, revoke your existing API token by visting this URL ${buildTerminalLink(url)}.`,
135
- plaintextCredentialsMigrated: 'The credentials found in plaintext have been migrated to your local keychain.',
136
- plaintextCredentialsNotMigrated: autoSpaceSentences(`The CLI couldn't securely store your login credentials in a local keychain.`, platformKeytarRecommendations(), `If a local keychain is not available, use environment variables instead. See ${gettingStartedDACLink} for more information.`),
137
- unsupportedNodeVersion: (_userNodeVersion, supportedNodeVersions) => log_color_1.LogColor.warn(`Warning: Forge CLI supports Node.js ${supportedNodeVersions}.` +
108
+ unsupportedNodeVersion: (_userNodeVersion, supportedNodeVersions) => LogColor.warn(`Warning: Forge CLI supports Node.js ${supportedNodeVersions}.` +
138
109
  `\nUnsupported Node.js versions are not guaranteed to work correctly.\n`),
139
110
  deprecation: {
140
111
  uikit: (modules) => {
141
- return `${chalk_1.default.bold('Warning')}: Your app is currently using deprecated UI Kit 1 modules: ${modules.join(', ')}. ${chalk_1.default.bold('UI Kit 1')} has been deprecated on February 28, 2025. Please refer to the ${(0, terminal_link_1.default)('documentation', 'https://developer.atlassian.com/platform/forge/ui-kit/upgrade-to-ui-kit-latest/#upgrade-from-ui-kit-1-to-ui-kit-latest-version')} to upgrade your modules.`;
112
+ return `${chalk.bold('Warning')}: Your app is currently using deprecated UI Kit 1 modules: ${modules.join(', ')}. ${chalk.bold('UI Kit 1')} has been deprecated on February 28, 2025. Please refer to the ${terminalLink('documentation', 'https://developer.atlassian.com/platform/forge/ui-kit/upgrade-to-ui-kit-latest/#upgrade-from-ui-kit-1-to-ui-kit-latest-version')} to upgrade your modules.`;
142
113
  },
143
- fullPage: (modules) => `${chalk_1.default.bold('Warning')}: Your app is currently using deprecated modules: ${modules.join(', ')}. Please use ${chalk_1.default.bold('global:fullPage')} instead.`
114
+ fullPage: (modules) => `${chalk.bold('Warning')}: Your app is currently using deprecated modules: ${modules.join(', ')}. Please use ${chalk.bold('global:fullPage')} instead.`
144
115
  },
145
116
  statsigFetchFailed: (type) => `Failed to fetch Forge ${type}. Some preview features may be unavailable. Rerun the command to retry.`
146
117
  },
@@ -153,7 +124,7 @@ exports.Text = {
153
124
  overviewWorkspace: '\nEnter your workspace. For example, bitbucket.org/your-workspace\n',
154
125
  promptSite: 'Enter the site URL:',
155
126
  promptWorkspace: 'Enter the workspace URL:',
156
- noSiteHint: `${chalk_1.default.green(`You don't have an active demo site. Run`)} ${forge('site', 'provision')} ${chalk_1.default.green(`to create a free demo site for development and testing, then install to it with`)} ${forge('install', '--demo-site')}${chalk_1.default.green('.')}\n`
127
+ noSiteHint: `${chalk.green(`You don't have an active demo site. Run`)} ${forge('site', 'provision')} ${chalk.green(`to create a free demo site for development and testing, then install to it with`)} ${forge('install', '--demo-site')}${chalk.green('.')}\n`
157
128
  },
158
129
  upgradeContext: {
159
130
  overview: (isCodeUpgrade, version, isLatest) => {
@@ -182,7 +153,7 @@ exports.Text = {
182
153
  response: (result, requestId) => `◀️ GraphQL\nRequest ID: ${requestId || 'unknown'}\nResult: ${result}`,
183
154
  error: 'Server error',
184
155
  outdatedClientVersion: `Your version of Forge CLI is no longer supported.` +
185
- `\nRun ${command('npm', 'uninstall', '-g', cli_details_1.FORGE_CLI_PACKAGE)} followed by ${command('npm', 'install', '-g', cli_details_1.FORGE_CLI_PACKAGE)} to update to the latest version.` +
156
+ `\nRun ${command('npm', 'uninstall', '-g', FORGE_CLI_PACKAGE)} followed by ${command('npm', 'install', '-g', FORGE_CLI_PACKAGE)} to update to the latest version.` +
186
157
  `\n`,
187
158
  insufficientScopes: (instructionsUrl) => `You need a token with the right authorisation scopes to access this field. To create a new token with the required scopes, visit: ${buildTerminalLink(instructionsUrl)}`
188
159
  },
@@ -217,7 +188,7 @@ exports.Text = {
217
188
  confirmInstalling: "This appends a line to your shell's config file. Would you like to continue?",
218
189
  installing: 'Installing autocomplete. Restart your shell when installation is completed.',
219
190
  uninstalling: 'Uninstalling autocomplete.',
220
- postinstall: `\n${chalk_1.default.cyan('ℹ')} To install autocompletion for Forge, run ${forge('autocomplete', 'install')}.\n`,
191
+ postinstall: `\n${chalk.cyan('ℹ')} To install autocompletion for Forge, run ${forge('autocomplete', 'install')}.\n`,
221
192
  error: {
222
193
  badArg: (arg) => `${arg ? `Invalid argument detected: "${arg}"` : 'Missing argument'}. Expected: "install" or "uninstall".`,
223
194
  unsupportedShell: 'Unsupported shell detected. Autocomplete functionality is only available on bash, fish, and zsh shells.',
@@ -250,7 +221,7 @@ exports.Text = {
250
221
  },
251
222
  error: {
252
223
  personalCredentialsEnv: (emailKey, apiTokenKey) => `We couldn't get your Atlassian account information. Check the ${emailKey} and ${apiTokenKey} environment variables.`,
253
- personalCredentialsKeytar: `We couldn't get your Atlassian account information. You may need to run ${forge('login')} to log in again.`
224
+ personalCredentialsFile: `We couldn't get your Atlassian account information. You may need to run ${forge('login')} to log in again.`
254
225
  }
255
226
  },
256
227
  feedback: {
@@ -279,11 +250,11 @@ What do you like or don't like about Forge? Share your feedback below or press C
279
250
  startPersonal: 'Creating personal app...',
280
251
  success: (appName) => `Created ${appName}`,
281
252
  successDetails: (directory, validEnvironmentOptions) => `\nYour app is ready to work on, deploy, and install. We created ${validEnvironmentOptions.length} environments you can deploy to: ${validEnvironmentOptions
282
- .map(environment_1.environmentToOption)
283
- .join(', ')}.\n\nChange to directory ${chalk_1.default.bold(directory)} to see your app files.\n`
253
+ .map(environmentToOption)
254
+ .join(', ')}.\n\nChange to directory ${chalk.bold(directory)} to see your app files.\n`
284
255
  },
285
- intro: (givenDirectory) => `Creating an app in directory ${chalk_1.default.bold(givenDirectory)}.\n`,
286
- introWithCurrentDirectory: (currentDirectory) => `Creating an app in your current directory:\n\n ${chalk_1.default.bold(currentDirectory)}\n`,
256
+ intro: (givenDirectory) => `Creating an app in directory ${chalk.bold(givenDirectory)}.\n`,
257
+ introWithCurrentDirectory: (currentDirectory) => `Creating an app in your current directory:\n\n ${chalk.bold(currentDirectory)}\n`,
287
258
  optionTemplate: 'specify the template to use',
288
259
  optionDirectory: 'specify the directory to create (uses the app name by default)',
289
260
  optionSpace: `specify the Developer Space id to use (see your Developer Spaces by running ${forge('developer-spaces', 'list')})`,
@@ -356,7 +327,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
356
327
  }
357
328
  },
358
329
  contributors: {
359
- consoleHint: (appId) => `Building with a team? Add contributors to your app from the Developer Console: ${buildTerminalLink((0, developer_console_1.getDevConsoleUrl)('appContributors', appId, {
330
+ consoleHint: (appId) => `Building with a team? Add contributors to your app from the Developer Console: ${buildTerminalLink(getDevConsoleUrl('appContributors', appId, {
360
331
  utmCampaign: 'app-create'
361
332
  }))}\n`
362
333
  }
@@ -396,13 +367,13 @@ What do you like or don't like about Forge? Share your feedback below or press C
396
367
  selectedNotFound: 'Selected Developer Space not found'
397
368
  },
398
369
  appEnforcementsWarnings: {
399
- appNotAssignedToDeveloperSpaceWarning: `${chalk_1.default.bold('Warning:')} This app is not assigned to a Developer Space. ${buildTerminalLabeledLink('Assign it now', 'https://developer.atlassian.com/platform/forge/developer-space/developer-space-apps/')} to avoid ${buildTerminalLabeledLink('functionality limits', 'https://developer.atlassian.com/platform/forge/developer-space/create-developer-space/#developer-space-setup-and-app-limits')}.\n`,
370
+ appNotAssignedToDeveloperSpaceWarning: `${chalk.bold('Warning:')} This app is not assigned to a Developer Space. ${buildTerminalLabeledLink('Assign it now', 'https://developer.atlassian.com/platform/forge/developer-space/developer-space-apps/')} to avoid ${buildTerminalLabeledLink('functionality limits', 'https://developer.atlassian.com/platform/forge/developer-space/create-developer-space/#developer-space-setup-and-app-limits')}.\n`,
400
371
  developerSpaceSetupIncomplete: (command) => {
401
372
  void command;
402
- return `${chalk_1.default.bold('Warning:')} Marketplace admin action required: Complete the ${buildTerminalLabeledLink('Developer Space setup', 'https://developer.atlassian.com/platform/forge/developer-space/create-developer-space/#who-can-create-a-developer-space')} to avoid ${buildTerminalLabeledLink('functionality limits', 'https://developer.atlassian.com/platform/forge/developer-space/create-developer-space/#developer-space-setup-and-app-limits')}.\n`;
373
+ return `${chalk.bold('Warning:')} Marketplace admin action required: Complete the ${buildTerminalLabeledLink('Developer Space setup', 'https://developer.atlassian.com/platform/forge/developer-space/create-developer-space/#who-can-create-a-developer-space')} to avoid ${buildTerminalLabeledLink('functionality limits', 'https://developer.atlassian.com/platform/forge/developer-space/create-developer-space/#developer-space-setup-and-app-limits')}.\n`;
403
374
  },
404
- developerSpaceSetupIncompleteLink: (developerSpaceId) => chalk_1.default.yellow(`Share this link with a Marketplace admin so they can finish setup:\n` +
405
- ` - Developer Space: ${buildTerminalLink((0, developer_console_1.getDevConsoleUrl)('developerSpace', developerSpaceId))}`)
375
+ developerSpaceSetupIncompleteLink: (developerSpaceId) => chalk.yellow(`Share this link with a Marketplace admin so they can finish setup:\n` +
376
+ ` - Developer Space: ${buildTerminalLink(getDevConsoleUrl('developerSpace', developerSpaceId))}`)
406
377
  },
407
378
  terms: {
408
379
  agreement: 'Please review the following agreement before continuing:\n',
@@ -412,7 +383,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
412
383
  privacy: ` - Privacy Policy: ${buildTerminalLink('https://www.atlassian.com/legal/privacy-policy')}`,
413
384
  pricing: ` - Pricing: ${buildTerminalLink('https://developer.atlassian.com/platform/forge/forge-platform-pricing/')}`
414
385
  },
415
- pricing: (appName) => `\nIf ${chalk_1.default.cyan(appName)} exceeds the free usage allowance, I agree to be charged monthly for any excess usage based the then-current price above threshold.\n${exports.Text.devSpace.terms.links.pricing}`,
386
+ pricing: (appName) => `\nIf ${chalk.cyan(appName)} exceeds the free usage allowance, I agree to be charged monthly for any excess usage based the then-current price above threshold.\n${Text.devSpace.terms.links.pricing}`,
416
387
  acceptPrompt: 'Do you accept?',
417
388
  accepted: (command) => `\n${greenTick} Terms accepted. Continuing with app ${command}...`,
418
389
  notAcceptedError: 'You must accept the terms and conditions'
@@ -464,7 +435,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
464
435
  start: `Registering app...`,
465
436
  success: (appName) => `Registered ${appName}`,
466
437
  successDetails: (validEnvironmentOptions) => `\nYour app is ready to work on, deploy, and install. We created ${validEnvironmentOptions.length} environments you can deploy to: ${validEnvironmentOptions
467
- .map(environment_1.environmentToOption)
438
+ .map(environmentToOption)
468
439
  .join(', ')}.\n\nUse ${forge('deploy')} to deploy your app to an environment.`
469
440
  },
470
441
  confirmQuestion: 'Are you sure you want to overwrite the existing app details?'
@@ -483,22 +454,22 @@ What do you like or don't like about Forge? Share your feedback below or press C
483
454
  env: {
484
455
  option: `specify the environment (see your default environment by running ${forge('settings', 'list')})`,
485
456
  invalid: 'Invalid environment name',
486
- developmentOnly: (envKey) => `${(0, environment_1.environmentToOption)(envKey)} cannot be set as default environment. Only development environments can be used.`,
457
+ developmentOnly: (envKey) => `${environmentToOption(envKey)} cannot be set as default environment. Only development environments can be used.`,
487
458
  error: {
488
459
  appOwnerNotExist: 'Missing app owner details',
489
460
  appNotExist: `Your app could not be found. Make sure the app details in the manifest.yml file are correct before trying again.`,
490
- envNotExist: (envKey) => `Environment ${chalk_1.default.bold((0, environment_1.environmentToOption)(envKey))} does not exist. Check the environment name and try again.`
461
+ envNotExist: (envKey) => `Environment ${chalk.bold(environmentToOption(envKey))} does not exist. Check the environment name and try again.`
491
462
  },
492
463
  displayEnvironment: (envKey, envType) => {
493
- if (envType === graphql_runtime_enums_1.AppEnvironmentType.Development &&
494
- envKey !== environment_1.DEFAULT_ENVIRONMENT_KEY &&
495
- envKey !== environment_1.DEFAULT_ENVIRONMENT_OPTION) {
496
- return `${chalk_1.default.gray('DEV')} ${(0, environment_1.environmentToOption)(envKey)}`;
464
+ if (envType === AppEnvironmentType.Development &&
465
+ envKey !== DEFAULT_ENVIRONMENT_KEY &&
466
+ envKey !== DEFAULT_ENVIRONMENT_OPTION) {
467
+ return `${chalk.gray('DEV')} ${environmentToOption(envKey)}`;
497
468
  }
498
- return (0, environment_1.environmentToOption)(envKey);
469
+ return environmentToOption(envKey);
499
470
  },
500
471
  warn: {
501
- envWillBeCreated: (envKey) => `${chalk_1.default.bold('Warning:')} Environment ${chalk_1.default.bold((0, environment_1.environmentToOption)(envKey))} does not exist. If you continue, this development environment will be created for you.`
472
+ envWillBeCreated: (envKey) => `${chalk.bold('Warning:')} Environment ${chalk.bold(environmentToOption(envKey))} does not exist. If you continue, this development environment will be created for you.`
502
473
  },
503
474
  confirm: 'Do you want to continue?'
504
475
  },
@@ -506,10 +477,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
506
477
  info: 'You do not have a default development environment set. This is required to run commands without specifying an environment. Make sure not to use sensitive information when naming your default development environment.',
507
478
  prompt: 'Enter a name for your default development environment:',
508
479
  notSetNonInteractive: `No environment was given and you don't have a default development environment. Pass --environment, or set a default with ${forge('settings', 'set', 'default-environment', '<environment>')}.`,
509
- warn: `${chalk_1.default.bold('Warning:')} A development environment with this name already exists. If you continue, you may be using the same environment as another contributor.`,
480
+ warn: `${chalk.bold('Warning:')} A development environment with this name already exists. If you continue, you may be using the same environment as another contributor.`,
510
481
  confirm: 'Do you want to continue?',
511
- setSuccess: (envKey, envType) => `${exports.Text.env.displayEnvironment(envKey, envType)} has been set as your default development environment`,
512
- createAndSetSuccess: (envKey, envType) => `${exports.Text.env.displayEnvironment(envKey, envType)} has been created and set as your default development environment`,
482
+ setSuccess: (envKey, envType) => `${Text.env.displayEnvironment(envKey, envType)} has been set as your default development environment`,
483
+ createAndSetSuccess: (envKey, envType) => `${Text.env.displayEnvironment(envKey, envType)} has been created and set as your default development environment`,
513
484
  settingsInfo: `You can change your default development environment later by running ${forge('settings', 'set')}.`
514
485
  },
515
486
  varsSet: {
@@ -520,7 +491,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
520
491
  deployTip: (environmentOption) => 'Tip: Changes to environment variables will not apply to existing deployments. ' +
521
492
  `Please run ${environmentOption ? forge('deploy', '-e', environmentOption) : forge('deploy')} for your changes to take effect.`
522
493
  },
523
- overview: (environment, environmentType) => `Setting the value of a variable in the ${exports.Text.env.displayEnvironment(environment, environmentType)} environment.`,
494
+ overview: (environment, environmentType) => `Setting the value of a variable in the ${Text.env.displayEnvironment(environment, environmentType)} environment.`,
524
495
  encryptInfo: 'Encrypting a variable means that the value will not be shown in the terminal.',
525
496
  promptEncrypt: `Select if you want the value encrypted:`,
526
497
  keyInfo: 'Use a new key to create a variable, or use an existing key to override a variable.',
@@ -533,16 +504,16 @@ What do you like or don't like about Forge? Share your feedback below or press C
533
504
  varsUnset: {
534
505
  cmd: {
535
506
  desc: 'remove an environment variable',
536
- start: (environment, envType) => `Unsetting the variable in the ${exports.Text.env.displayEnvironment(environment, envType)} environment.`,
507
+ start: (environment, envType) => `Unsetting the variable in the ${Text.env.displayEnvironment(environment, envType)} environment.`,
537
508
  success: (key) => `\n${greenTick} ${key} variable removed.`
538
509
  }
539
510
  },
540
511
  varsList: {
541
512
  hint: `\nRun ${forge('variables', 'list')} to see your environment variables.\n`,
542
513
  cmd: 'list the environment variables',
543
- empty: (environment, envType) => `There are no variables in the ${exports.Text.env.displayEnvironment(environment, envType)} environment.\n\nUse ${forge('variables', 'set')} to create a variable.\n`,
514
+ empty: (environment, envType) => `There are no variables in the ${Text.env.displayEnvironment(environment, envType)} environment.\n\nUse ${forge('variables', 'set')} to create a variable.\n`,
544
515
  encryptedValue,
545
- overview: (environment, envType) => `Showing variables from the ${exports.Text.env.displayEnvironment(environment, envType)} environment:\n`,
516
+ overview: (environment, envType) => `Showing variables from the ${Text.env.displayEnvironment(environment, envType)} environment:\n`,
546
517
  postfix: `\nNote, the values of encrypted variables are shown as ${encryptedValue}.\n`
547
518
  },
548
519
  providers: {
@@ -554,7 +525,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
554
525
  start: 'Configuring provider credentials...',
555
526
  success: 'oauth provider credentials configuration is finished.'
556
527
  },
557
- overview: (environment) => `Configuring provider in the ${(0, environment_1.environmentToOption)(environment)} environment.`,
528
+ overview: (environment) => `Configuring provider in the ${environmentToOption(environment)} environment.`,
558
529
  providerKeyInfo: 'Use a provider key from the list for configuration.',
559
530
  noProviders: "Count't find providers in the manifest file. Add one.",
560
531
  promptProviderKey: 'Select provider to configure:',
@@ -570,7 +541,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
570
541
  cmd: {
571
542
  desc: 'create a new development environment',
572
543
  start: 'Creating environment...',
573
- success: (envKey, envType) => `Created ${exports.Text.env.displayEnvironment(envKey, envType)}`
544
+ success: (envKey, envType) => `Created ${Text.env.displayEnvironment(envKey, envType)}`
574
545
  },
575
546
  overview: 'Create a new development environment.',
576
547
  promptEnvironmentKey: 'Enter a name for your environment:',
@@ -596,12 +567,12 @@ What do you like or don't like about Forge? Share your feedback below or press C
596
567
  prompt: 'Select development environment:',
597
568
  confirmationInfo: 'You are deleting the following environment(s):',
598
569
  promptConfirmation: 'Do you want to continue?',
599
- individualSuccessMessage: (envKey, envType) => `${log_symbols_1.default.info} ${exports.Text.env.displayEnvironment(envKey, envType)} deleted successfully.`,
570
+ individualSuccessMessage: (envKey, envType) => `${logSymbols.info} ${Text.env.displayEnvironment(envKey, envType)} deleted successfully.`,
600
571
  successMessage: 'Environment(s) deleted.',
601
572
  optionEnvironmentKey: 'specify the environment to delete',
602
- warningMessage: `${chalk_1.default.bold('Warning:')} When deleting a development environment, you may impact in progress deployments or tunnels.`,
573
+ warningMessage: `${chalk.bold('Warning:')} When deleting a development environment, you may impact in progress deployments or tunnels.`,
603
574
  noEnvironmentMessage: 'There are no development environments to delete.',
604
- hasInstallationError: (envKey) => `${(0, environment_1.environmentToOption)(envKey)} cannot be deleted because the environment is installed on a site. You can show all the current installations of your app by running ${forge('install', 'list')}.`
575
+ hasInstallationError: (envKey) => `${environmentToOption(envKey)} cannot be deleted because the environment is installed on a site. You can show all the current installations of your app by running ${forge('install', 'list')}.`
605
576
  },
606
577
  storage: {
607
578
  cmd: {
@@ -651,8 +622,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
651
622
  start: 'Checking eligibility...',
652
623
  end: 'Checking eligibility...',
653
624
  status: {
654
- notEligible: (envKey, envType, version, reason) => `${log_symbols_1.default.info} The version of your app [${version}] that's deployed to [${exports.Text.env.displayEnvironment(envKey, envType)}] is not eligible for the Runs on Atlassian program.\n${log_color_1.LogColor.warn(itemList(reason))}`,
655
- eligible: (envKey, envType, version) => `${log_symbols_1.default.info} The version of your app [${version}] that's deployed to [${exports.Text.env.displayEnvironment(envKey, envType)}] is eligible for the Runs on Atlassian program.`
625
+ notEligible: (envKey, envType, version, reason) => `${logSymbols.info} The version of your app [${version}] that's deployed to [${Text.env.displayEnvironment(envKey, envType)}] is not eligible for the Runs on Atlassian program.\n${LogColor.warn(itemList(reason))}`,
626
+ eligible: (envKey, envType, version) => `${logSymbols.info} The version of your app [${version}] that's deployed to [${Text.env.displayEnvironment(envKey, envType)}] is eligible for the Runs on Atlassian program.`
656
627
  },
657
628
  rule: {
658
629
  conversion: (rule) => {
@@ -711,12 +682,12 @@ What do you like or don't like about Forge? Share your feedback below or press C
711
682
  end: 'Comparing app versions...',
712
683
  details: {
713
684
  banner: (input) => {
714
- const env1Display = exports.Text.env.displayEnvironment(input.env1Key, input.env1Type);
715
- const env2Display = input.env2Key && input.env2Type ? exports.Text.env.displayEnvironment(input.env2Key, input.env2Type) : '';
685
+ const env1Display = Text.env.displayEnvironment(input.env1Key, input.env1Type);
686
+ const env2Display = input.env2Key && input.env2Type ? Text.env.displayEnvironment(input.env2Key, input.env2Type) : '';
716
687
  if (env2Display) {
717
- return `${log_symbols_1.default.info} Comparison between app versions [${chalk_1.default.bold(input.version1)} in ${env1Display}] and [${chalk_1.default.bold(input.version2)} in ${env2Display}] is shown below:`;
688
+ return `${logSymbols.info} Comparison between app versions [${chalk.bold(input.version1)} in ${env1Display}] and [${chalk.bold(input.version2)} in ${env2Display}] is shown below:`;
718
689
  }
719
- return `${log_symbols_1.default.info} Comparison between app versions [${chalk_1.default.bold(input.version1)} and ${chalk_1.default.bold(input.version2)}] in [${env1Display}] is shown below:`;
690
+ return `${logSymbols.info} Comparison between app versions [${chalk.bold(input.version1)} and ${chalk.bold(input.version2)}] in [${env1Display}] is shown below:`;
720
691
  }
721
692
  }
722
693
  },
@@ -748,8 +719,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
748
719
  end: 'Getting app version details...',
749
720
  details: {
750
721
  banner: (envKey, envType, version) => {
751
- const envDisplay = exports.Text.env.displayEnvironment(envKey, envType);
752
- return `${log_symbols_1.default.info} App [${version}] in [${envDisplay}] includes the following:`;
722
+ const envDisplay = Text.env.displayEnvironment(envKey, envType);
723
+ return `${logSymbols.info} App [${version}] in [${envDisplay}] includes the following:`;
753
724
  },
754
725
  prompt: {
755
726
  options: {
@@ -804,8 +775,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
804
775
  end: 'Getting app version list...',
805
776
  details: {
806
777
  banner: (envKey, envType, versions) => {
807
- const envDisplay = exports.Text.env.displayEnvironment(envKey, envType);
808
- return `${log_symbols_1.default.info} Details of a total of [${versions} major versions] in [${envDisplay}] can be seen below:`;
778
+ const envDisplay = Text.env.displayEnvironment(envKey, envType);
779
+ return `${logSymbols.info} Details of a total of [${versions} major versions] in [${envDisplay}] can be seen below:`;
809
780
  }
810
781
  }
811
782
  },
@@ -843,9 +814,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
843
814
  appVersionRolloutSuccess(appRolloutVersionId) {
844
815
  return `Your upgrade has been queued with upgrade ID ${appRolloutVersionId}. To view that status of your update please use the \`forge version bulk-upgrade list\` command.`;
845
816
  },
846
- limitWarningUserLimit: (expectedRemaining, totalEligible, userLimit) => `${chalk_1.default.yellow('Warning:')} Due to the limit you specified (${userLimit}), ${expectedRemaining} out of the eligible ${totalEligible} upgrades will remain unprocessed.`,
847
- limitWarningAdjustedLimit: (expectedRemaining, totalEligible, userLimit, appliedLimit) => `${chalk_1.default.yellow('Warning:')} The limit you supplied (${userLimit}) could not be honored and a limit of ${appliedLimit} has been applied. Due to this limit ${expectedRemaining} out of the eligible ${totalEligible} upgrades will remain unprocessed.`,
848
- limitWarningSystemLimit: (expectedRemaining, totalEligible, systemLimit) => `${chalk_1.default.yellow('Warning:')} The number of eligible installations exceeded the per-workflow maximum (${systemLimit}). Due to this maximum ${expectedRemaining} out of the eligible ${totalEligible} upgrades will remain unprocessed.`,
817
+ limitWarningUserLimit: (expectedRemaining, totalEligible, userLimit) => `${chalk.yellow('Warning:')} Due to the limit you specified (${userLimit}), ${expectedRemaining} out of the eligible ${totalEligible} upgrades will remain unprocessed.`,
818
+ limitWarningAdjustedLimit: (expectedRemaining, totalEligible, userLimit, appliedLimit) => `${chalk.yellow('Warning:')} The limit you supplied (${userLimit}) could not be honored and a limit of ${appliedLimit} has been applied. Due to this limit ${expectedRemaining} out of the eligible ${totalEligible} upgrades will remain unprocessed.`,
819
+ limitWarningSystemLimit: (expectedRemaining, totalEligible, systemLimit) => `${chalk.yellow('Warning:')} The number of eligible installations exceeded the per-workflow maximum (${systemLimit}). Due to this maximum ${expectedRemaining} out of the eligible ${totalEligible} upgrades will remain unprocessed.`,
849
820
  limitWarningFollowUp: 'These unprocessed installations can be processed by starting a new workflow after the completion of this one.',
850
821
  warningMessage: (sourceVersionId, targetVersionId, installations, limit, enforcedSystemLimit, userProvidedLimit) => {
851
822
  const effectiveInstallations = limit !== undefined && limit < (installations || 0) ? limit : installations;
@@ -854,7 +825,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
854
825
  if (enforcedSystemLimit !== undefined && userProvidedLimit !== undefined) {
855
826
  limitNote = `. Provided limit (${userProvidedLimit}) not honored due to system limit`;
856
827
  }
857
- return `${chalk_1.default.bold('Warning:')} You are planning to move ${effectiveInstallations} ${installationText} from version ${sourceVersionId} to version ${targetVersionId}${limitNote}.`;
828
+ return `${chalk.bold('Warning:')} You are planning to move ${effectiveInstallations} ${installationText} from version ${sourceVersionId} to version ${targetVersionId}${limitNote}.`;
858
829
  },
859
830
  promptConfirmation: 'Do you want to continue?',
860
831
  promptLimit: (installations) => `How many installations to upgrade? (${installations} eligible):`,
@@ -889,10 +860,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
889
860
  details: {
890
861
  banner: (envKey, envType, updates) => {
891
862
  if (!envType) {
892
- return `${log_symbols_1.default.info} Details of a total of [${updates} updates] can be seen below. Records may not be available indefinitely.`;
863
+ return `${logSymbols.info} Details of a total of [${updates} updates] can be seen below. Records may not be available indefinitely.`;
893
864
  }
894
- const envDisplay = exports.Text.env.displayEnvironment(envKey, envType);
895
- return `${log_symbols_1.default.info} Details of a total of [${updates} updates] in [${envDisplay}] can be seen below. Records may not be available indefinitely.`;
865
+ const envDisplay = Text.env.displayEnvironment(envKey, envType);
866
+ return `${logSymbols.info} Details of a total of [${updates} updates] in [${envDisplay}] can be seen below. Records may not be available indefinitely.`;
896
867
  }
897
868
  }
898
869
  },
@@ -916,7 +887,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
916
887
  appVersionRolloutCancelSuccess(appRolloutVersionId) {
917
888
  return `Your upgrade with upgrade ID ${appRolloutVersionId} has been cancelled.`;
918
889
  },
919
- warningMessage: (appRolloutVersionId, sourceVersionId, targetVersionId, installationComplete, totalInstallations) => `${chalk_1.default.bold('Warning:')} You are planning to cancel the upgrade with upgrade ID ${appRolloutVersionId} from version ${sourceVersionId} to version ${targetVersionId} that is in progress. ${installationComplete} of ${totalInstallations} installations have already been upgraded.`,
890
+ warningMessage: (appRolloutVersionId, sourceVersionId, targetVersionId, installationComplete, totalInstallations) => `${chalk.bold('Warning:')} You are planning to cancel the upgrade with upgrade ID ${appRolloutVersionId} from version ${sourceVersionId} to version ${targetVersionId} that is in progress. ${installationComplete} of ${totalInstallations} installations have already been upgraded.`,
920
891
  promptConfirmation: 'Do you want to continue?'
921
892
  }
922
893
  }
@@ -940,7 +911,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
940
911
  const limitNote = limit === undefined
941
912
  ? ''
942
913
  : ` The rollout will stop after ${limit} ${limit === 1 ? 'installation' : 'installations'}.`;
943
- return `${chalk_1.default.bold('Warning:')} You are about to roll out the latest version of your app to installations in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.${limitNote}`;
914
+ return `${chalk.bold('Warning:')} You are about to roll out the latest version of your app to installations in the ${Text.env.displayEnvironment(envKey, envType)} environment.${limitNote}`;
944
915
  },
945
916
  promptConfirmation: 'Do you want to continue?',
946
917
  cancelled: 'Rollout cancelled.',
@@ -979,7 +950,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
979
950
  }
980
951
  },
981
952
  manifestVariables: {
982
- error: log_color_1.LogColor.error(`Error: Manifest environment variables are not supported for builds. Please remove the environment variables from your manifest.yml before rerunning ${forge('build')}.\n`)
953
+ error: LogColor.error(`Error: Manifest environment variables are not supported for builds. Please remove the environment variables from your manifest.yml before rerunning ${forge('build')}.\n`)
983
954
  }
984
955
  },
985
956
  buildDeploy: {
@@ -987,10 +958,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
987
958
  description: 'save application bundle for inspection'
988
959
  },
989
960
  taskLint: {
990
- lintError: (cmd) => log_color_1.LogColor.error(`Error: The ${cmd} failed due to errors in the app code. Fix the errors before rerunning ${forge(cmd)}, or run ${forge(cmd, '--no-verify')} to skip the linter.\n`),
961
+ lintError: (cmd) => LogColor.error(`Error: The ${cmd} failed due to errors in the app code. Fix the errors before rerunning ${forge(cmd)}, or run ${forge(cmd, '--no-verify')} to skip the linter.\n`),
991
962
  lintWarning: (numWarnings) => {
992
963
  const { pluralCheckedTotal } = checkLintTotalPlurals(0, numWarnings, 0, 0, 0);
993
- return log_color_1.LogColor.warn(`${pluralCheckedTotal} found. Run ${forge('lint')} to review the warnings.`);
964
+ return LogColor.warn(`${pluralCheckedTotal} found. Run ${forge('lint')} to review the warnings.`);
994
965
  }
995
966
  }
996
967
  },
@@ -999,43 +970,43 @@ What do you like or don't like about Forge? Share your feedback below or press C
999
970
  desc: 'deploy your app to an environment',
1000
971
  start1: (envKey, envType, buildTag) => {
1001
972
  const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
1002
- return `Deploying your app${buildTagText} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.\n${ctrlC}\n`;
973
+ return `Deploying your app${buildTagText} to the ${Text.env.displayEnvironment(envKey, envType)} environment.\n${ctrlC}\n`;
1003
974
  },
1004
975
  start2: (appName, envKey, envType, buildTag) => {
1005
976
  const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
1006
- return `Deploying ${appName}${buildTagText} to ${exports.Text.env.displayEnvironment(envKey, envType)}...`;
977
+ return `Deploying ${appName}${buildTagText} to ${Text.env.displayEnvironment(envKey, envType)}...`;
1007
978
  },
1008
979
  success: 'Deployed\n',
1009
980
  successDetails: (appName, envKey, envType, buildTag, numApprovals) => `Deployed ${deployedDetails(appName, envKey, envType, buildTag, numApprovals)}`,
1010
981
  artifactUploaded: 'App artifact uploaded\n',
1011
982
  artifactUploadedDetails: (appName, envKey, envType, buildTag, numApprovals) => `Uploaded ${deployedDetails(appName, envKey, envType, buildTag, numApprovals)}`,
1012
- placementsDeployingInBackground: (envKey, majorVersion) => `${log_symbols_1.default.info} Deployment is running in the background. New deployments to this environment are blocked until it finishes.\nRun ${deployCommand('status', envKey, majorVersion)} to check for updates.`,
983
+ placementsDeployingInBackground: (envKey, majorVersion) => `${logSymbols.info} Deployment is running in the background. New deployments to this environment are blocked until it finishes.\nRun ${deployCommand('status', envKey, majorVersion)} to check for updates.`,
1013
984
  distributePageLink: (appId) => `To install on a site that you're an admin of, run ${forge('install')}.\n` +
1014
985
  'To install on any other site, generate an installation link in the developer console and share it with the site admin: ' +
1015
- buildTerminalLink((0, developer_console_1.getDevConsoleUrl)('appDistribution', appId))
986
+ buildTerminalLink(getDevConsoleUrl('appDistribution', appId))
1016
987
  },
1017
988
  taskLint: {
1018
- lintError: log_color_1.LogColor.error(`Error: The deploy failed due to errors in the app code. Fix the errors before rerunning ${forge('deploy')}, or run ${forge('deploy', '--no-verify')} to skip the linter.\n`),
989
+ lintError: LogColor.error(`Error: The deploy failed due to errors in the app code. Fix the errors before rerunning ${forge('deploy')}, or run ${forge('deploy', '--no-verify')} to skip the linter.\n`),
1019
990
  lintWarning: (numWarnings) => {
1020
991
  const { pluralCheckedTotal } = checkLintTotalPlurals(0, numWarnings, 0, 0, 0);
1021
- return log_color_1.LogColor.warn(`${pluralCheckedTotal} found. Run ${forge('lint')} to review the warnings.`);
992
+ return LogColor.warn(`${pluralCheckedTotal} found. Run ${forge('lint')} to review the warnings.`);
1022
993
  },
1023
994
  lintApproval: (numApprovals, ruleNames) => {
1024
995
  const { pluralCheckedApprovals } = checkLintTotalPlurals(0, 0, numApprovals, 0, 0);
1025
996
  const rulesArg = ruleNames && ruleNames.length > 0 ? ruleNames.join(' ') : '[ruleName]';
1026
- return log_color_1.LogColor.approval(`The deploy failed due to ${pluralCheckedApprovals} requested. Run ${forge('deploy', `--approve ${rulesArg}`)} to acknowledge and proceed.\n`);
997
+ return LogColor.approval(`The deploy failed due to ${pluralCheckedApprovals} requested. Run ${forge('deploy', `--approve ${rulesArg}`)} to acknowledge and proceed.\n`);
1027
998
  },
1028
- lintErrorsWithApprovals: log_color_1.LogColor.error(`Fix the error above before approving deployment rules.\n`)
999
+ lintErrorsWithApprovals: LogColor.error(`Fix the error above before approving deployment rules.\n`)
1029
1000
  },
1030
1001
  hasNoAppInstallationsForEnv: {
1031
- hasNoAppInstallationsForEnvError: log_color_1.LogColor.error(`Error: The deployment failed due to errors while trying to determine if the app has any installations for the deployed environment.`)
1002
+ hasNoAppInstallationsForEnvError: LogColor.error(`Error: The deployment failed due to errors while trying to determine if the app has any installations for the deployed environment.`)
1032
1003
  },
1033
1004
  environmentKey: {
1034
- missingEnvironmentKeyError: log_color_1.LogColor.error('Environment must be specified when deploying your app.')
1005
+ missingEnvironmentKeyError: LogColor.error('Environment must be specified when deploying your app.')
1035
1006
  },
1036
1007
  majorVersion: {
1037
1008
  description: 'specify a major version to update (Preview)',
1038
- warning: (majorVersion) => `${chalk_1.default.bold('Warning:')} You\'re about to deploy changes to major version ${majorVersion} of your app. All sites using version ${majorVersion} will automatically apply these changes.\n`,
1009
+ warning: (majorVersion) => `${chalk.bold('Warning:')} You\'re about to deploy changes to major version ${majorVersion} of your app. All sites using version ${majorVersion} will automatically apply these changes.\n`,
1039
1010
  confirm: `Continue?`,
1040
1011
  invalidMajorVersionError: 'Invalid major version number'
1041
1012
  },
@@ -1052,19 +1023,19 @@ What do you like or don't like about Forge? Share your feedback below or press C
1052
1023
  continueChange: `Do you wish to continue with changing the Connect key?`,
1053
1024
  continueDelete: `Do you wish to continue with deleting the Connect key?`,
1054
1025
  mpacAppConnectKeyChangeAnalyticsError: 'Cannot change app.connect.key for an app with an Atlassian Marketplace listing.',
1055
- mpacAppConnectKeyChangeError: (mpacAppKey, connectKey) => log_color_1.LogColor.error(`Cannot change the app.connect.key from \'${mpacAppKey}\' to \'${connectKey}\'. The app's Connect key must match the Atlassian Marketplace key.\n`),
1056
- connectKeyChangeWarning: (environment, migrationKey, connectKey) => `WARNING: Changing the app.connect.key in ${(0, environment_1.environmentToOption)(environment)} from \'${migrationKey}\' to \'${connectKey}\' affects features using the Connect key as an identifier. ` +
1026
+ mpacAppConnectKeyChangeError: (mpacAppKey, connectKey) => LogColor.error(`Cannot change the app.connect.key from \'${mpacAppKey}\' to \'${connectKey}\'. The app's Connect key must match the Atlassian Marketplace key.\n`),
1027
+ connectKeyChangeWarning: (environment, migrationKey, connectKey) => `WARNING: Changing the app.connect.key in ${environmentToOption(environment)} from \'${migrationKey}\' to \'${connectKey}\' affects features using the Connect key as an identifier. ` +
1057
1028
  `\nLearn more about the impact of this change at ${go('forge-connect-key-changes')}.\n`,
1058
- connectKeyDeleteWarning: (environment) => `WARNING: You're about to delete the app.connect.key of the app in ${(0, environment_1.environmentToOption)(environment)}. ` +
1029
+ connectKeyDeleteWarning: (environment) => `WARNING: You're about to delete the app.connect.key of the app in ${environmentToOption(environment)}. ` +
1059
1030
  `\nIf you proceed, non-Forge Connect installations using the Connect key will no longer be replaced by future Forge installations of the app, and will co-exist. ` +
1060
1031
  `\nLearn more at ${go('forge-connect-key-deletion')}.\n`,
1061
- connectKeyMutationInProductionError: (migrationKey, connectKey) => log_color_1.LogColor.error(`Cannot change the app.connect.key from \'${migrationKey}\' to \'${connectKey}\'. The app's Connect key cannot be mutated in production after deployment.\n`),
1032
+ connectKeyMutationInProductionError: (migrationKey, connectKey) => LogColor.error(`Cannot change the app.connect.key from \'${migrationKey}\' to \'${connectKey}\'. The app's Connect key cannot be mutated in production after deployment.\n`),
1062
1033
  connectKeyMutationInProductionAnalyticsError: 'Cannot mutate app.connect.key for an app in production.'
1063
1034
  },
1064
1035
  taskPackage: {
1065
1036
  title: 'Packaging app files',
1066
1037
  packageBundledFiles: 'Packaging bundled files',
1067
- inspectOutputPath: (inspectDirectory) => `Application bundle has been copied to ${chalk_1.default.bold(inspectDirectory)} for inspection`,
1038
+ inspectOutputPath: (inspectDirectory) => `Application bundle has been copied to ${chalk.bold(inspectDirectory)} for inspection`,
1068
1039
  packageFile: (fileName, filePath) => `File added to archive: ${fileName || '.'}${filePath ? `, from ${filePath}` : ''}`,
1069
1040
  archiveCreated: (archivePath) => `Archive created: ${archivePath}`,
1070
1041
  invalidArchivePath: (fileName) => `Invalid archive path "${fileName}"`
@@ -1109,14 +1080,14 @@ What do you like or don't like about Forge? Share your feedback below or press C
1109
1080
  marketplaceApp: (developerSpaceId) => `Deployment blocked - This app's Developer Space setup is incomplete.\n\n` +
1110
1081
  `Your Marketplace admin must complete the Developer Space setup to unblock deployment for this app and prevent further app limitations.\n\n` +
1111
1082
  `What to do: Share this setup link with your Marketplace admin:\n` +
1112
- buildTerminalLink((0, developer_console_1.getDevConsoleUrl)('developerSpace', developerSpaceId))
1083
+ buildTerminalLink(getDevConsoleUrl('developerSpace', developerSpaceId))
1113
1084
  },
1114
1085
  outdatedInstallations: `We've detected new scopes or egress URLs in your app.\n` +
1115
1086
  `Run ${forge('install', '--upgrade')} and restart your tunnel to put them into effect.`,
1116
- postDeploymentChecksFailed: chalk_1.default.yellow(`We could not run some final checks, however your deployment still succeeded. Contact support if this issue persists.`),
1117
- postDeploymentRoaEligibilityFailure: (appVersion, envKey, envType) => `${log_symbols_1.default.info} The version of your app [${appVersion}] that was just deployed to [${exports.Text.env.displayEnvironment(envKey, envType)}] is not eligible for the Runs on Atlassian program. Run ${forge('eligibility')} to know more.\n\nTo know more about Runs on Atlassian, go to ${go('runs-on-atlassian')}.`,
1118
- postDeploymentRoaEligibilitySuccess: (appVersion, envKey, envType) => `${log_symbols_1.default.info} The version of your app [${appVersion}] that was just deployed to [${exports.Text.env.displayEnvironment(envKey, envType)}] is eligible for the Runs on Atlassian program.\n\nTo know more about Runs on Atlassian, go to ${go('runs-on-atlassian')}.`,
1119
- listIndexes: (environment) => `Run ${forge('storage', 'entities', 'indexes', 'list', '-e', (0, environment_1.environmentToOption)(environment))} to check the status of the indexes.`,
1087
+ postDeploymentChecksFailed: chalk.yellow(`We could not run some final checks, however your deployment still succeeded. Contact support if this issue persists.`),
1088
+ postDeploymentRoaEligibilityFailure: (appVersion, envKey, envType) => `${logSymbols.info} The version of your app [${appVersion}] that was just deployed to [${Text.env.displayEnvironment(envKey, envType)}] is not eligible for the Runs on Atlassian program. Run ${forge('eligibility')} to know more.\n\nTo know more about Runs on Atlassian, go to ${go('runs-on-atlassian')}.`,
1089
+ postDeploymentRoaEligibilitySuccess: (appVersion, envKey, envType) => `${logSymbols.info} The version of your app [${appVersion}] that was just deployed to [${Text.env.displayEnvironment(envKey, envType)}] is eligible for the Runs on Atlassian program.\n\nTo know more about Runs on Atlassian, go to ${go('runs-on-atlassian')}.`,
1090
+ listIndexes: (environment) => `Run ${forge('storage', 'entities', 'indexes', 'list', '-e', environmentToOption(environment))} to check the status of the indexes.`,
1120
1091
  reindexingInProgress: {
1121
1092
  continueDeployment: 'Reindexing is currently in progress. Are you sure you want to deploy?',
1122
1093
  successfulDeployment: 'Deployment successful. Please note - indexing currently in progress.'
@@ -1127,8 +1098,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
1127
1098
  }
1128
1099
  },
1129
1100
  crossContext: {
1130
- enableError: `Unable to deploy an app to an environment with an existing installation in an Atlassian app that is not the required Atlassian app.\nRun ${chalk_1.default.bold('forge uninstall')} to uninstall your app from any non-required Atlassian apps in this environment before retrying ${chalk_1.default.bold('forge deploy')}.`,
1131
- modifyError: `Unable to modify the required Atlassian app for an environment with existing installations.\nRun ${chalk_1.default.bold('forge uninstall')} to uninstall your app from all Atlassian apps in this environment before retrying ${chalk_1.default.bold('forge deploy')}.`
1101
+ enableError: `Unable to deploy an app to an environment with an existing installation in an Atlassian app that is not the required Atlassian app.\nRun ${chalk.bold('forge uninstall')} to uninstall your app from any non-required Atlassian apps in this environment before retrying ${chalk.bold('forge deploy')}.`,
1102
+ modifyError: `Unable to modify the required Atlassian app for an environment with existing installations.\nRun ${chalk.bold('forge uninstall')} to uninstall your app from all Atlassian apps in this environment before retrying ${chalk.bold('forge deploy')}.`
1132
1103
  }
1133
1104
  },
1134
1105
  install: {
@@ -1136,18 +1107,18 @@ What do you like or don't like about Forge? Share your feedback below or press C
1136
1107
  description: 'manage app installations',
1137
1108
  start: (envKey, envType, product) => {
1138
1109
  const productText = product ? `in ${product} ` : '';
1139
- return `Installing your app ${productText}on to ${exports.Text.env.displayEnvironment(envKey, envType)}...`;
1110
+ return `Installing your app ${productText}on to ${Text.env.displayEnvironment(envKey, envType)}...`;
1140
1111
  },
1141
1112
  end: (displayTick, product) => `${displayTick ? greenTick + ' ' : ''}Install in ${product} complete!`
1142
1113
  },
1143
1114
  booleanToScope: (isLatest) => (isLatest ? `(Latest)` : `(Out-of-date)`),
1144
- alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into ${chalk_1.default.bold(product)}.`,
1145
- installingToRequiredProduct: (product) => `\nYour app will be installed into ${chalk_1.default.bold(product)}. Once this is done, you can install your app into any other Atlassian apps.\n`,
1146
- installingToOptionalProduct: (product) => `\nThis app will be installed into ${chalk_1.default.bold(product)}.\n`,
1115
+ alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into ${chalk.bold(product)}.`,
1116
+ installingToRequiredProduct: (product) => `\nYour app will be installed into ${chalk.bold(product)}. Once this is done, you can install your app into any other Atlassian apps.\n`,
1117
+ installingToOptionalProduct: (product) => `\nThis app will be installed into ${chalk.bold(product)}.\n`,
1147
1118
  installConfirmation: (product, site) => `Installing your app onto ${product} on ${site}.\n${ctrlC}\n`,
1148
1119
  bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
1149
1120
  bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
1150
- devAppInstallWarning: `${chalk_1.default.bold('WARNING:')} You are about to install a development app to a production site. If you do not intend to test your app, we strongly recommend that you deploy your app to production and install the production version instead.`,
1121
+ devAppInstallWarning: `${chalk.bold('WARNING:')} You are about to install a development app to a production site. If you do not intend to test your app, we strongly recommend that you deploy your app to production and install the production version instead.`,
1151
1122
  majorVersionIsNotLatest: (versionToInstall) => `WARNING: You are about to install a previous version of the app. (${versionToInstall})`,
1152
1123
  devAppInstallConfirm: `Are you sure you want to proceed?`,
1153
1124
  optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
@@ -1161,10 +1132,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
1161
1132
  .map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
1162
1133
  .join('\n')}\n`,
1163
1134
  listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map(({ address }) => `- ${address}`).join('\n')}\n`,
1164
- permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${(0, environment_1.environmentToOption)(environment)}. Try running ${forge('deploy', '-e', (0, environment_1.environmentToOption)(environment))} before installing.\n`,
1135
+ permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${environmentToOption(environment)}. Try running ${forge('deploy', '-e', environmentToOption(environment))} before installing.\n`,
1165
1136
  multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment) => `\nWe detected your app requires scopes across multiple Atlassian apps.\nRun ${forge('install')} for each of the following:\n${itemList([
1166
- ...productsToUpgrade.map((product) => forge('install', '--upgrade', '-p', (0, case_1.capital)(product), '-s', site, '-e', (0, environment_1.environmentToOption)(environment))),
1167
- ...productsToInstall.map((product) => forge('install', '-p', (0, case_1.capital)(product), '-s', site, '-e', (0, environment_1.environmentToOption)(environment)))
1137
+ ...productsToUpgrade.map((product) => forge('install', '--upgrade', '-p', Case.capital(product), '-s', site, '-e', environmentToOption(environment))),
1138
+ ...productsToInstall.map((product) => forge('install', '-p', Case.capital(product), '-s', site, '-e', environmentToOption(environment)))
1168
1139
  ])}`,
1169
1140
  promptForPermissionsConfirmation: (permissionsMismatchInDevelopment) => permissionsMismatchInDevelopment
1170
1141
  ? 'Are you sure you want to continue installing the app?'
@@ -1172,7 +1143,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
1172
1143
  installationLimitWarning: 'Warning: Site exceeds recommended app limit\n' +
1173
1144
  'This site has more than 100 apps installed. Exceeding this limit may cause future installations to fail.',
1174
1145
  success: {
1175
- banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now installed in ${product} on ${buildTerminalLink(site)}. You can install the app into other Atlassian apps by running the ${chalk_1.default.bold('forge install')} command again.`,
1146
+ banner: (envKey, envType, product, site) => `Your app in the ${Text.env.displayEnvironment(envKey, envType)} environment is now installed in ${product} on ${buildTerminalLink(site)}. You can install the app into other Atlassian apps by running the ${chalk.bold('forge install')} command again.`,
1176
1147
  deeplinks: (links) => {
1177
1148
  if (links.length === 1) {
1178
1149
  return `\nCheck it out here: ${buildTerminalLink(links[0].url)}`;
@@ -1194,13 +1165,13 @@ What do you like or don't like about Forge? Share your feedback below or press C
1194
1165
  url: (url) => `Site URL is invalid: ${url}`,
1195
1166
  site: (url) => `Site is invalid: ${url}`,
1196
1167
  alreadyInstalledError: `Installation error: App is already installed.\nIf you're trying to upgrade your app, use the ${forge('install', '--upgrade')} command.`,
1197
- alreadyInstalledErrorWithMajorVersion: (envKey, envType) => `The app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is already installed on this site. Uninstall the app before trying again.`,
1168
+ alreadyInstalledErrorWithMajorVersion: (envKey, envType) => `The app in the ${Text.env.displayEnvironment(envKey, envType)} environment is already installed on this site. Uninstall the app before trying again.`,
1198
1169
  serverSideInstallationError: (message) => `Installation error: ${message}`,
1199
- noDeploymentFound: (environment) => `Forge apps must be deployed before installation. Deploy your app by running ${forge('deploy', '-e', (0, environment_1.environmentToOption)(environment))}.`,
1170
+ noDeploymentFound: (environment) => `Forge apps must be deployed before installation. Deploy your app by running ${forge('deploy', '-e', environmentToOption(environment))}.`,
1200
1171
  permissionsDeniedInstructions: (requestId, appId) => `Insufficient permissions to install app (requestId: ${requestId})` +
1201
1172
  '\n\nTo install the app on this site, generate an installation link ' +
1202
1173
  'in the developer console and share it with the site admin: ' +
1203
- buildTerminalLink((0, developer_console_1.getDevConsoleUrl)('appDistribution', appId)),
1174
+ buildTerminalLink(getDevConsoleUrl('appDistribution', appId)),
1204
1175
  appendRequestIdToErrorMessage: (message, requestId) => `${message} For more help on this issue, please reach out to support (${buildTerminalLink('https://developer.atlassian.com/support')}) and provide them the following request ID: ${requestId}`,
1205
1176
  majorVersionNotFound: 'The major version you specified does not exist. Check the version number and try again.',
1206
1177
  installationLimitReached: 'Installation error: The target site already has the maximum number of apps installed. To install this app there, uninstall any unused apps first.',
@@ -1211,9 +1182,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
1211
1182
  debug: {
1212
1183
  ccpEntitlementQueryFailed: `Non-essential request failed. Continuing installation.`
1213
1184
  },
1214
- failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed on any Atlassian apps on ${chalk_1.default.bold(site)}.`,
1185
+ failedAll: (site, environment) => `Your app in ${environmentToOption(environment)} was not installed on any Atlassian apps on ${chalk.bold(site)}.`,
1215
1186
  security: {
1216
- banner: (site) => `\n${chalk_1.default.gray('=== ')}Security questions\n
1187
+ banner: (site) => `\n${chalk.gray('=== ')}Security questions\n
1217
1188
  Forge apps installed on ${site} must comply with our corporate security guidelines.
1218
1189
  Read the guidelines on the page below before answering the required security questions:
1219
1190
  ${buildTerminalLink('https://hello.atlassian.net/wiki/x/iIC1Hg')}\n`,
@@ -1224,7 +1195,7 @@ ${buildTerminalLink('https://hello.atlassian.net/wiki/x/iIC1Hg')}\n`,
1224
1195
  'Does the app make administrative changes to Atlassian products or services?'
1225
1196
  ],
1226
1197
  notTrustedApp: {
1227
- warn: (site) => `\nYou answered ${chalk_1.default.bold('yes')} to one or more of the questions. Corporate security needs to review your app before you install it on ${site}.\n`,
1198
+ warn: (site) => `\nYou answered ${chalk.bold('yes')} to one or more of the questions. Corporate security needs to review your app before you install it on ${site}.\n`,
1228
1199
  confirmApproval: `Has corporate security approved your app?`,
1229
1200
  corpSecurityHelpdesk: `\nCreate a legal ticket to request an app review here:\n
1230
1201
  ${buildTerminalLink('https://jira.sec.internal.atlassian.com/servicedesk/customer/portal/8/create/88')}
@@ -1233,7 +1204,7 @@ When corporate security has approved the app, you can proceed with the installat
1233
1204
  }
1234
1205
  },
1235
1206
  authorization: {
1236
- banner: `\n${chalk_1.default.gray('=== ')}Authorize your app\n`,
1207
+ banner: `\n${chalk.gray('=== ')}Authorize your app\n`,
1237
1208
  link: (link) => `Follow the prompts at this URL to authorize your app:
1238
1209
  ${buildTerminalLink(link)}\n`,
1239
1210
  openBrowser: `Press any key to open the URL in your default browser.`
@@ -1255,9 +1226,9 @@ ${buildTerminalLink(link)}\n`,
1255
1226
  promptUnitUpgrade: 'Select the unit to upgrade:',
1256
1227
  unitUpgradeOverview: 'To upgrade your app to the latest code and scopes, select a unit installation from the list.',
1257
1228
  unitUpgradeTableHeaders: ['Environment', 'Unit', 'Atlassian apps', 'Major Version'],
1258
- installSuccess: (environment, target) => `Your app in the ${(0, environment_1.environmentToOption)(environment)} environment is installed ${globalTargetLocation(target)}.`,
1229
+ installSuccess: (environment, target) => `Your app in the ${environmentToOption(environment)} environment is installed ${globalTargetLocation(target)}.`,
1259
1230
  alreadyInstalled: (target) => `Your app is already installed ${globalTargetLocation(target)}.`,
1260
- upgradeSuccess: (environment, target) => `Your app in the ${(0, environment_1.environmentToOption)(environment)} environment is upgraded ${globalTargetLocation(target)}.`,
1231
+ upgradeSuccess: (environment, target) => `Your app in the ${environmentToOption(environment)} environment is upgraded ${globalTargetLocation(target)}.`,
1261
1232
  promptConnect: 'Do you want to connect the app to other Atlassian apps or platform tools?',
1262
1233
  promptConnectAnother: 'Do you want to connect the app to another Atlassian app or platform tool?',
1263
1234
  promptContinueConnect: 'Do you want to continue connecting the app?',
@@ -1266,13 +1237,13 @@ ${buildTerminalLink(link)}\n`,
1266
1237
  promptSiteUrl: 'Enter the site URL:',
1267
1238
  enterWorkspaceOverview: 'Enter the Bitbucket workspace you want to connect your app to (for example, https://bitbucket.org/my-workspace/ or my-workspace).',
1268
1239
  promptWorkspace: 'Enter the workspace:',
1269
- connectConfirmationSite: (product) => `Connecting your app to ${chalk_1.default.bold(product)} in an Atlassian site.\n${ctrlC}\n`,
1270
- connectConfirmationWorkspace: (product) => `Connecting your app to ${chalk_1.default.bold(product)} in a Bitbucket workspace.\n${ctrlC}\n`,
1240
+ connectConfirmationSite: (product) => `Connecting your app to ${chalk.bold(product)} in an Atlassian site.\n${ctrlC}\n`,
1241
+ connectConfirmationWorkspace: (product) => `Connecting your app to ${chalk.bold(product)} in a Bitbucket workspace.\n${ctrlC}\n`,
1271
1242
  connect: {
1272
1243
  start: 'Connecting',
1273
1244
  end: 'Connection complete!'
1274
1245
  },
1275
- connectionSuccess: (environment, product, site) => `Your app in the ${(0, environment_1.environmentToOption)(environment)} environment is connected to ${chalk_1.default.bold(product)} in ${chalk_1.default.bold(site)}. You can install the app in other Atlassian apps by running the ${forge('install')} command again.`,
1246
+ connectionSuccess: (environment, product, site) => `Your app in the ${environmentToOption(environment)} environment is connected to ${chalk.bold(product)} in ${chalk.bold(site)}. You can install the app in other Atlassian apps by running the ${forge('install')} command again.`,
1276
1247
  optionUnit: 'the unit id to install the global app into',
1277
1248
  error: {
1278
1249
  identityRequestFailed: (status) => `Failed to fetch your organizations and units from the Identity API (status ${status}).`,
@@ -1302,7 +1273,7 @@ ${buildTerminalLink(link)}\n`,
1302
1273
  bannerSite: `\nUpgrading your app on the Atlassian site.\n`,
1303
1274
  bannerWorkspace: `\nUpgrading your app on the selected workspace.\n`,
1304
1275
  cmd: {
1305
- start: (envKey, envType) => `Upgrading your app in ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
1276
+ start: (envKey, envType) => `Upgrading your app in ${Text.env.displayEnvironment(envKey, envType)}...`,
1306
1277
  end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Upgrade complete!`,
1307
1278
  error: `Upgrade failed`
1308
1279
  },
@@ -1310,22 +1281,22 @@ ${buildTerminalLink(link)}\n`,
1310
1281
  .map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
1311
1282
  .join('\n')}\n`,
1312
1283
  listEgressAddresses: (egressAddresses, isCodeUpgrade) => `Your app will${isCodeUpgrade ? ' not' : ' be upgraded and additionally'} exchange data with the following urls:\n${egressAddresses.map(({ address }) => `- ${address}`).join('\n')}\n`,
1313
- permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${(0, environment_1.environmentToOption)(environment)}. Try running ${forge('deploy', '-e', (0, environment_1.environmentToOption)(environment))} before upgrading.\n`,
1284
+ permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${environmentToOption(environment)}. Try running ${forge('deploy', '-e', environmentToOption(environment))} before upgrading.\n`,
1314
1285
  promptForPermissionsConfirmation: (permissionsMismatchInDevelopment) => permissionsMismatchInDevelopment
1315
1286
  ? 'Are you sure you want to continue upgrading the app?'
1316
1287
  : 'Do you want to continue?',
1317
1288
  success: {
1318
- banner: (envKey, envType, product, site, isLatest = true, version, isCodeUpgrade = false) => `Your app${isCodeUpgrade ? "'s code" : ''} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now ${version && !isLatest ? `version ${version}` : 'the latest'} in ${product} on ${buildTerminalLink(site)}.`
1289
+ banner: (envKey, envType, product, site, isLatest = true, version, isCodeUpgrade = false) => `Your app${isCodeUpgrade ? "'s code" : ''} in the ${Text.env.displayEnvironment(envKey, envType)} environment is now ${version && !isLatest ? `version ${version}` : 'the latest'} in ${product} on ${buildTerminalLink(site)}.`
1319
1290
  },
1320
1291
  alreadyUpdated: {
1321
1292
  spinnerSite: 'Site is already at the latest version',
1322
1293
  spinnerWorkspace: 'Workspace is already at the latest version',
1323
- banner: (environment, product, site) => `\nYour app in the ${(0, environment_1.environmentToOption)(environment)} environment is at the latest in ${product} on ${buildTerminalLink(site)}.`
1294
+ banner: (environment, product, site) => `\nYour app in the ${environmentToOption(environment)} environment is at the latest in ${product} on ${buildTerminalLink(site)}.`
1324
1295
  },
1325
1296
  error: {
1326
1297
  reason: {
1327
1298
  hasVersionDecreaseErrorReason: (targetVersion, currentVersion) => `The permissions version (${currentVersion}) cannot be greater than the app's code version (${targetVersion}). Ensure that you are not downgrading your app's code version after upgrading permissions.`,
1328
- missingAppManagedPermissionsErrorReason: (targetVersion) => `The major version (${targetVersion}) you are upgrading to does not support using permissions from a different version. Ensure you have permission enforcement set as ${chalk_1.default.bold('app-managed')} in the manifest.yml file.`,
1299
+ missingAppManagedPermissionsErrorReason: (targetVersion) => `The major version (${targetVersion}) you are upgrading to does not support using permissions from a different version. Ensure you have permission enforcement set as ${chalk.bold('app-managed')} in the manifest.yml file.`,
1329
1300
  decoupledStateNotEnabledErrorReason: () => `The specified version is not eligible for a code-only upgrade.`
1330
1301
  },
1331
1302
  serverSideInstallationError: (message) => `Upgrade error: ${message}`,
@@ -1335,7 +1306,7 @@ ${buildTerminalLink(link)}\n`,
1335
1306
  installList: {
1336
1307
  cmd: 'list app installations',
1337
1308
  header: `\nShowing all the current installations and connections for your app.`,
1338
- footer: (appId) => `\nView the full list in the developer console: ${buildTerminalLink((0, developer_console_1.getDevConsoleUrl)('appInstallations', appId))}`,
1309
+ footer: (appId) => `\nView the full list in the developer console: ${buildTerminalLink(getDevConsoleUrl('appInstallations', appId))}`,
1339
1310
  noResourceId: 'Unknown site with no resource ID',
1340
1311
  noCloudId: 'Unknown workspace with no cloud ID',
1341
1312
  noResourceIdInWorkspace: 'Unknown workspace with no resource ID',
@@ -1363,15 +1334,15 @@ ${buildTerminalLink(link)}\n`,
1363
1334
  deployStatus: {
1364
1335
  cmd: 'show the placement deployment status of an app version in an environment',
1365
1336
  majorVersionOption: 'specify the major version to show (defaults to the latest deployed version)',
1366
- banner: (envKey, envType, version) => `${log_symbols_1.default.info} Environment: ${exports.Text.env.displayEnvironment(envKey, envType)} (Version: ${(0, semver_1.major)(version)})`,
1337
+ banner: (envKey, envType, version) => `${logSymbols.info} Environment: ${Text.env.displayEnvironment(envKey, envType)} (Version: ${major(version)})`,
1367
1338
  artifactUploaded: (createdAt, buildTag) => {
1368
1339
  const buildTagText = buildTag ? ` from build with tag ${buildTag}` : '';
1369
- return `${log_symbols_1.default.success} App artifact uploaded${buildTagText} at ${createdAt}`;
1340
+ return `${logSymbols.success} App artifact uploaded${buildTagText} at ${createdAt}`;
1370
1341
  },
1371
1342
  overall: {
1372
- succeeded: (succeeded, total) => `${log_symbols_1.default.success} Deployment succeeded (${succeeded}/${total} placements)`,
1373
- failed: (succeeded, total) => `${log_symbols_1.default.error} Deployment failed (${succeeded}/${total} placements succeeded)`,
1374
- inProgress: (succeeded, total, inProgress) => `${log_symbols_1.default.info} Deployment still in progress (${succeeded}/${total} placements succeeded, ${inProgress} in progress)`
1343
+ succeeded: (succeeded, total) => `${logSymbols.success} Deployment succeeded (${succeeded}/${total} placements)`,
1344
+ failed: (succeeded, total) => `${logSymbols.error} Deployment failed (${succeeded}/${total} placements succeeded)`,
1345
+ inProgress: (succeeded, total, inProgress) => `${logSymbols.info} Deployment still in progress (${succeeded}/${total} placements succeeded, ${inProgress} in progress)`
1375
1346
  },
1376
1347
  checkAgain: (envKey, majorVersion) => `Run ${deployCommand('status', envKey, majorVersion)} again to check for updates.`,
1377
1348
  retryHint: (envKey, majorVersion) => `Run ${deployCommand('retry', envKey, majorVersion)} to retry the failed placements.`,
@@ -1383,47 +1354,47 @@ ${buildTerminalLink(link)}\n`,
1383
1354
  lastUpdated: 'Last updated'
1384
1355
  },
1385
1356
  placementTypeLabel: (placementType) => ({
1386
- [graphql_runtime_enums_1.AppPlacementType.Region]: 'Region',
1387
- [graphql_runtime_enums_1.AppPlacementType.CustomerDataPlane]: 'Customer data plane',
1388
- [graphql_runtime_enums_1.AppPlacementType.IsolationContext]: 'Isolation context'
1357
+ [AppPlacementType.Region]: 'Region',
1358
+ [AppPlacementType.CustomerDataPlane]: 'Customer data plane',
1359
+ [AppPlacementType.IsolationContext]: 'Isolation context'
1389
1360
  })[placementType] ?? placementType,
1390
1361
  groupLabel: (placementTypeLabel, succeeded, total) => `${placementTypeLabel} (${succeeded}/${total})`,
1391
1362
  statusLabel: (status) => ({
1392
- [graphql_runtime_enums_1.AppVersionDeploymentStatus.Succeeded]: chalk_1.default.green('Succeeded'),
1393
- [graphql_runtime_enums_1.AppVersionDeploymentStatus.Failed]: chalk_1.default.red('Failed'),
1394
- [graphql_runtime_enums_1.AppVersionDeploymentStatus.InProgress]: chalk_1.default.yellow('In progress')
1363
+ [AppVersionDeploymentStatus.Succeeded]: chalk.green('Succeeded'),
1364
+ [AppVersionDeploymentStatus.Failed]: chalk.red('Failed'),
1365
+ [AppVersionDeploymentStatus.InProgress]: chalk.yellow('In progress')
1395
1366
  })[status] ?? status,
1396
1367
  stepLabel: (step) => ({
1397
- [graphql_runtime_enums_1.AppVersionDeploymentStep.Artifact]: 'Artifact',
1398
- [graphql_runtime_enums_1.AppVersionDeploymentStep.Function]: 'Function',
1399
- [graphql_runtime_enums_1.AppVersionDeploymentStep.Containers]: 'Containers',
1400
- [graphql_runtime_enums_1.AppVersionDeploymentStep.HostedResources]: 'Hosted resources',
1401
- [graphql_runtime_enums_1.AppVersionDeploymentStep.CustomScopes]: 'Custom scopes',
1402
- [graphql_runtime_enums_1.AppVersionDeploymentStep.OauthClient]: 'OAuth client',
1403
- [graphql_runtime_enums_1.AppVersionDeploymentStep.ScheduledTriggers]: 'Scheduled triggers'
1368
+ [AppVersionDeploymentStep.Artifact]: 'Artifact',
1369
+ [AppVersionDeploymentStep.Function]: 'Function',
1370
+ [AppVersionDeploymentStep.Containers]: 'Containers',
1371
+ [AppVersionDeploymentStep.HostedResources]: 'Hosted resources',
1372
+ [AppVersionDeploymentStep.CustomScopes]: 'Custom scopes',
1373
+ [AppVersionDeploymentStep.OauthClient]: 'OAuth client',
1374
+ [AppVersionDeploymentStep.ScheduledTriggers]: 'Scheduled triggers'
1404
1375
  })[step] ?? step,
1405
1376
  noPlacements: `No placements found for this version. Placements are added when your app is installed.\nRun ${forge('install')} to install your app.`,
1406
- noVersion: (envKey, envType) => `No deployed version found in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment. Run ${forge('deploy')} to deploy your app first.`,
1407
- noStatus: (version, envKey, envType) => `No deployment status is available for version ${(0, semver_1.major)(version)} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment yet.`
1377
+ noVersion: (envKey, envType) => `No deployed version found in the ${Text.env.displayEnvironment(envKey, envType)} environment. Run ${forge('deploy')} to deploy your app first.`,
1378
+ noStatus: (version, envKey, envType) => `No deployment status is available for version ${major(version)} in the ${Text.env.displayEnvironment(envKey, envType)} environment yet.`
1408
1379
  },
1409
1380
  deployRetry: {
1410
1381
  cmd: 'retry the failed placements of an existing app version deployment in an environment, without a new deployment',
1411
1382
  majorVersionOption: 'specify the major version to retry (defaults to the latest deployed version)',
1412
1383
  placementOption: 'placement IDs to retry, separated by spaces (defaults to every failed placement)',
1413
- started: (started, total) => `${log_symbols_1.default.success} Retry started for ${started}/${total} failed placements`,
1384
+ started: (started, total) => `${logSymbols.success} Retry started for ${started}/${total} failed placements`,
1414
1385
  failed: (started, total) => total
1415
- ? `${log_symbols_1.default.error} Retry could not be started for all failed placements (${started}/${total} started)`
1416
- : `${log_symbols_1.default.error} Retry could not be started.`,
1386
+ ? `${logSymbols.error} Retry could not be started for all failed placements (${started}/${total} started)`
1387
+ : `${logSymbols.error} Retry could not be started.`,
1417
1388
  unknownFailure: 'A placement could not be retried.',
1418
1389
  rejectedByGateway: (message, requestId) => `${message ?? 'Unable to retry the deployment.'} (requestId: ${requestId || 'unknown'})`,
1419
1390
  showingSelected: 'Showing only placements selected for retry.',
1420
- retryRemaining: (envKey, majorVersion) => `${log_symbols_1.default.info} Run ${deployCommand('retry', envKey, majorVersion)} to retry the remaining failed placements.`,
1421
- nothingRetried: (envKey, majorVersion) => `${log_symbols_1.default.info} No placements were retried. Run ${deployCommand('status', envKey, majorVersion)} to check the deployment status.`,
1422
- runningInBackground: (envKey, majorVersion) => `${log_symbols_1.default.info} Deployment is running in the background. Run ${deployCommand('status', envKey, majorVersion)} to check for updates.`,
1423
- rejected: (envKey, envType, version, majorVersion, message) => `Unable to retry the deployment of version ${(0, semver_1.major)(version)} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment${message ? `: ${message}` : '.'}\nRun ${deployCommand('status', envKey, majorVersion)} to check the deployment status.`,
1391
+ retryRemaining: (envKey, majorVersion) => `${logSymbols.info} Run ${deployCommand('retry', envKey, majorVersion)} to retry the remaining failed placements.`,
1392
+ nothingRetried: (envKey, majorVersion) => `${logSymbols.info} No placements were retried. Run ${deployCommand('status', envKey, majorVersion)} to check the deployment status.`,
1393
+ runningInBackground: (envKey, majorVersion) => `${logSymbols.info} Deployment is running in the background. Run ${deployCommand('status', envKey, majorVersion)} to check for updates.`,
1394
+ rejected: (envKey, envType, version, majorVersion, message) => `Unable to retry the deployment of version ${major(version)} in the ${Text.env.displayEnvironment(envKey, envType)} environment${message ? `: ${message}` : '.'}\nRun ${deployCommand('status', envKey, majorVersion)} to check the deployment status.`,
1424
1395
  nothingToRetry: (envKey, envType, version, majorVersion, requestedPlacements = false) => `${requestedPlacements
1425
- ? `None of the requested placements have failed for version ${(0, semver_1.major)(version)} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.`
1426
- : `No failed placements found for version ${(0, semver_1.major)(version)} in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.`} Nothing was retried. Run ${deployCommand('status', envKey, majorVersion)} to check the deployment status.`
1396
+ ? `None of the requested placements have failed for version ${major(version)} in the ${Text.env.displayEnvironment(envKey, envType)} environment.`
1397
+ : `No failed placements found for version ${major(version)} in the ${Text.env.displayEnvironment(envKey, envType)} environment.`} Nothing was retried. Run ${deployCommand('status', envKey, majorVersion)} to check the deployment status.`
1427
1398
  },
1428
1399
  tunnel: {
1429
1400
  cmd: 'start a tunnel to connect your local code with the app running in the development environment',
@@ -1432,7 +1403,7 @@ ${buildTerminalLink(link)}\n`,
1432
1403
  debuggerHost: 'host to bind the Node runtime debuggers to, default is 127.0.0.1',
1433
1404
  functionHandlers: 'list of function handlers declared on manifest to debug, separated by space. This option must be specified if debug mode is enabled. It is only used for Node runtime debugger',
1434
1405
  preamble: 'Tunnel redirects requests you make to your local machine. This occurs for any Atlassian site where your app is installed in the specific development environment. You will not see requests from other users.',
1435
- startingTunnel: (environmentKey, envType) => `Tunnelling to: ${exports.Text.env.displayEnvironment(environmentKey, envType)}`,
1406
+ startingTunnel: (environmentKey, envType) => `Tunnelling to: ${Text.env.displayEnvironment(environmentKey, envType)}`,
1436
1407
  startedServer: (port) => `Listening for requests on local port ${port}...`,
1437
1408
  selfManagedTunnel: (tunnelUrl, port) => `Warning: You are currently using a self-managed tunnel. Please bind your tunnel (${tunnelUrl}) to the local host on port ${port}.`,
1438
1409
  startedTunnel: (tunnelUrl) => `Started tunnel at address: ${tunnelUrl}.`,
@@ -1441,10 +1412,10 @@ ${buildTerminalLink(link)}\n`,
1441
1412
  tunnelStatusChange: (status) => `Tunnel connection status changed: ${status}.`,
1442
1413
  authenticatingDocker: `Authenticating and starting docker containers...`,
1443
1414
  startingContainerService: (serviceKey) => `Starting containers for service: ${serviceKey}`,
1444
- functionHandlersMustBeDefined: `${chalk_1.default.bold('--debugFunctionHandlers')} flag must be defined in debug mode.`,
1445
- debugArgumentNameMismatch: (arg) => `Arguments of ${chalk_1.default.bold('--debugFunctionHandlers')}, namely '${arg}', must be function handlers defined in the manifest.`,
1446
- invalidDebugStartingPortNumber: (port) => `${chalk_1.default.bold('--debugStartingPort')} ${port} must be a valid port number.`,
1447
- invalidDebugHost: (host) => `${chalk_1.default.bold('--debugHost')} ${host} must be a valid IPv4 or IPv6 address.`,
1415
+ functionHandlersMustBeDefined: `${chalk.bold('--debugFunctionHandlers')} flag must be defined in debug mode.`,
1416
+ debugArgumentNameMismatch: (arg) => `Arguments of ${chalk.bold('--debugFunctionHandlers')}, namely '${arg}', must be function handlers defined in the manifest.`,
1417
+ invalidDebugStartingPortNumber: (port) => `${chalk.bold('--debugStartingPort')} ${port} must be a valid port number.`,
1418
+ invalidDebugHost: (host) => `${chalk.bold('--debugHost')} ${host} must be a valid IPv4 or IPv6 address.`,
1448
1419
  unableToAuthenticateDocker: (errCode) => `Docker authentication process exited with code: ${errCode}.`,
1449
1420
  unableToPullProxySidecarImage: (errMessage) => `Unable to pull the proxy sidecar image. Make sure to run 'forge containers docker-login' first. Full error: ${errMessage}`,
1450
1421
  unableToStartDockerComposeStack: (errMessage) => `Cannot start Docker Compose stack. This usually happens when Docker isn't running or the provided manifest config is incorrect (e.g. configured Docker image doesn't exist). To fix this: Start a Docker engine, ensure the manifest config is correct, then retry the command. Full error: ${errMessage}`,
@@ -1456,7 +1427,7 @@ ${buildTerminalLink(link)}\n`,
1456
1427
  invocationTimeout: (timeout) => `Function result will not be returned to the Forge platform, as the function did not complete within ${timeout} seconds. In invocations outside tunnel, functions that exceed the time limit are terminated.`,
1457
1428
  customUI: {
1458
1429
  fileServed: (filename, resourceKey) => `Serving file ${filename} for resource ${resourceKey}`,
1459
- fileProxied: (filename, resourceKey, tunnelPort) => `Received proxy request. ${exports.Text.tunnel.customUI.fileServed(filename, resourceKey)} from specified address http://localhost:${tunnelPort}`,
1430
+ fileProxied: (filename, resourceKey, tunnelPort) => `Received proxy request. ${Text.tunnel.customUI.fileServed(filename, resourceKey)} from specified address http://localhost:${tunnelPort}`,
1460
1431
  warning: {
1461
1432
  cspViolation: (localUrl, violation) => `CSP violation detected for '${violation}' while serving content at ${localUrl}\nFor an app to share data with external resources or use custom CSP, follow the steps in: ${go('forge-content-security-and-egress-controls')}\n`
1462
1433
  }
@@ -1465,8 +1436,8 @@ ${buildTerminalLink(link)}\n`,
1465
1436
  invoke: (req, port) => `Proxying request to service ${req.method} http://${req.host}:${port}${req.path}`,
1466
1437
  error: (cause) => `Failed to proxy request: ${cause}`
1467
1438
  },
1468
- preBundleTask: (title) => `${log_color_1.LogColor.trace('===')} ${title}`,
1469
- lintFailed: chalk_1.default.red(`${chalk_1.default.bold('Error:')} Linting failed due to errors in the app code.`),
1439
+ preBundleTask: (title) => `${LogColor.trace('===')} ${title}`,
1440
+ lintFailed: chalk.red(`${chalk.bold('Error:')} Linting failed due to errors in the app code.`),
1470
1441
  bundlingHeader: 'Bundling code...',
1471
1442
  bundlingSucceeded: 'App code bundled.',
1472
1443
  resourcesBundlingSucceeded: `${greenTick} Resources bundled.`,
@@ -1482,7 +1453,7 @@ ${buildTerminalLink(link)}\n`,
1482
1453
  handler: {
1483
1454
  notFound: (handler) => `Function with handler "${handler}" was not found`
1484
1455
  },
1485
- manifestChangeDetected: `Changes to ${manifest_1.MANIFEST_FILE} have been detected. You will need to deploy your forge app to apply these changes.`,
1456
+ manifestChangeDetected: `Changes to ${MANIFEST_FILE} have been detected. You will need to deploy your forge app to apply these changes.`,
1486
1457
  dockerNotInstalled: (dockerDownloadLink) => 'Cannot find Docker. This command requires Docker to run your app locally. ' +
1487
1458
  `Get Docker at the following URL before rerunning the command:\n\n${dockerDownloadLink}`,
1488
1459
  dockerDaemonNotRunning: (err, isVerbose) => `Docker is not running. This command requires Docker to run your app locally. Open Docker before rerunning the command.` +
@@ -1492,7 +1463,7 @@ ${buildTerminalLink(link)}\n`,
1492
1463
  cloudflaredExit: (code) => code
1493
1464
  ? `Cloudflared exited. Rerunning the command with --verbose may give more details.`
1494
1465
  : `Cloudflared exited with code: ${code}. Rerunning the command with --verbose may give more details.`,
1495
- cloudflaredUnavailableError: `Please check for any network restrictions that may be blocking the ${chalk_1.default.bold('cloudflared')} package installation, and then reinstall the Forge CLI.\n` +
1466
+ cloudflaredUnavailableError: `Please check for any network restrictions that may be blocking the ${chalk.bold('cloudflared')} package installation, and then reinstall the Forge CLI.\n` +
1496
1467
  `See ${buildTerminalLink('https://developer.atlassian.com/platform/forge/enterprise/use-forge-cli-on-corporate-network/#use-the-forge-cli-on-a-corporate-network')}. \n` +
1497
1468
  'Alternatively, you can install cloudflared on your machine.',
1498
1469
  invalidSelfManagedTunnelUrl: (url) => `Invalid self-managed tunnel URL: ${url}.`,
@@ -1522,24 +1493,24 @@ ${buildTerminalLink(link)}\n`,
1522
1493
  desc: 'Select where to uninstall the app:',
1523
1494
  progressInfo: `To uninstall your app from a site or workspace, select it from the list.\nSelect a connection to remove just that link.\nPress Ctrl+C to cancel.`,
1524
1495
  columns: ['Installation ID', 'Environment', 'Installed in', 'Connected to', 'Version', 'Status'],
1525
- done: `\n${log_symbols_1.default.success} Apps uninstalled`,
1496
+ done: `\n${logSymbols.success} Apps uninstalled`,
1526
1497
  confirmOptionalContexts: (scope = 'site') => `This will uninstall the app from all Atlassian apps and platform tools in this ${scope}. Are you sure you want to continue?`,
1527
1498
  confirmAllInstallations: 'This will uninstall the app from the listed contexts. Are you sure you want to continue?'
1528
1499
  },
1529
1500
  info: 'Uninstalling...',
1530
1501
  done: ({ product, domain, environment, isMulti, installedInUnit, unitId, hadConnections }) => installedInUnit
1531
- ? `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled the app${unitId ? ` from unit ${unitId}` : ''}${hadConnections ? ' and unlinked from all connections' : ''}.`
1502
+ ? `${isMulti ? logSymbols.info : logSymbols.success} Uninstalled the app${unitId ? ` from unit ${unitId}` : ''}${hadConnections ? ' and unlinked from all connections' : ''}.`
1532
1503
  : product === 'Ecosystem'
1533
- ? `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled.`
1534
- : `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}.`,
1504
+ ? `${isMulti ? logSymbols.info : logSymbols.success} Uninstalled.`
1505
+ : `${isMulti ? logSymbols.info : logSymbols.success} Uninstalled from the ${environmentToOption(environment)} environment in ${product} on ${buildTerminalLink(domain)}.`,
1535
1506
  failed: ({ product, domain, environment, installedInUnit, unitId }) => installedInUnit
1536
1507
  ? `Failed to uninstall the app${unitId ? ` from unit ${unitId}` : ''}. Try rerunning the command, or ask for help if you continue to see this error.`
1537
1508
  : product === 'Ecosystem'
1538
1509
  ? `Failed to uninstall the app. Try rerunning the command, or ask for help if you continue to see this error.`
1539
- : `Failed to uninstall the app from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}. Try rerunning the command, or ask for help if you continue to see this error.`,
1510
+ : `Failed to uninstall the app from the ${environmentToOption(environment)} environment in ${product} on ${buildTerminalLink(domain)}. Try rerunning the command, or ask for help if you continue to see this error.`,
1540
1511
  missingUninstallTask: `Cannot uninstall the app: something went wrong with starting the uninstall task.`,
1541
- uninstallBatchBanner: (remainingInstallations) => log_color_1.LogColor.warn(`${log_symbols_1.default.info} ${chalk_1.default.bold(`Batch uninstallations are limited to ${installations_1.MAX_BATCH_UNINSTALLS} per request and there ${remainingInstallations > 1 ? `are ${remainingInstallations} installations` : 'is 1 installation'} remaining. Run the command multiple times to perform more uninstallations`)}`),
1542
- uninstallBatchProductionError: `${log_symbols_1.default.error} ${chalk_1.default.bold('Batch uninstallations are not supported in production environments.')}`
1512
+ uninstallBatchBanner: (remainingInstallations) => LogColor.warn(`${logSymbols.info} ${chalk.bold(`Batch uninstallations are limited to ${MAX_BATCH_UNINSTALLS} per request and there ${remainingInstallations > 1 ? `are ${remainingInstallations} installations` : 'is 1 installation'} remaining. Run the command multiple times to perform more uninstallations`)}`),
1513
+ uninstallBatchProductionError: `${logSymbols.error} ${chalk.bold('Batch uninstallations are not supported in production environments.')}`
1543
1514
  },
1544
1515
  webtrigger: {
1545
1516
  cmd: 'manage webtriggers',
@@ -1567,7 +1538,7 @@ ${buildTerminalLink(link)}\n`,
1567
1538
  tablePreMessage: '\nShowing all webtrigger URLs:',
1568
1539
  noWebtriggerURLs: 'No webtrigger URLs created.',
1569
1540
  overviewInstallationTable: `\nListing web trigger URLs by an app installation.\n\nPress Ctrl+C to cancel.\n`,
1570
- listUrlsForKey: (key) => `\nShowing all webtrigger URLs for module ${chalk_1.default.bold(key)}:`
1541
+ listUrlsForKey: (key) => `\nShowing all webtrigger URLs for module ${chalk.bold(key)}:`
1571
1542
  },
1572
1543
  delete: {
1573
1544
  cmd: 'delete a webtrigger URL',
@@ -1634,32 +1605,32 @@ ${buildTerminalLink(link)}\n`,
1634
1605
  running: `Running ${forge('lint')}...`,
1635
1606
  noProblems: 'No issues found.',
1636
1607
  teamworkGraphScopes: 'Teamwork Graph API usage detected, but no graph scopes are declared in your manifest. To resolve this, review https://go.atlassian.com/forge-permissions and add the required scopes to your manifest.',
1637
- approvalRequired: chalk_1.default.cyan(` Approval required, fixable with ${forge('deploy', '--approve <ruleName..>')}.`),
1638
- noFixableProblem: chalk_1.default.red(` Issue found is not automatically fixable with ${forge('lint')}.`),
1639
- noFixableProblems: chalk_1.default.red(` Issues found are not automatically fixable with ${forge('lint')}.`),
1640
- filename: chalk_1.default.underline,
1608
+ approvalRequired: chalk.cyan(` Approval required, fixable with ${forge('deploy', '--approve <ruleName..>')}.`),
1609
+ noFixableProblem: chalk.red(` Issue found is not automatically fixable with ${forge('lint')}.`),
1610
+ noFixableProblems: chalk.red(` Issues found are not automatically fixable with ${forge('lint')}.`),
1611
+ filename: chalk.underline,
1641
1612
  errorMissingManifest: `Missing manifest`,
1642
1613
  errorInvalidManifest: `Invalid manifest`,
1643
- linterFailed: (linterClass, failure) => chalk_1.default.yellow(`${chalk_1.default.bold('Warning:')} Could not perform some linting actions for ${chalk_1.default.bold(linterClass)} due to unhandled error "${failure}".\n`),
1614
+ linterFailed: (linterClass, failure) => chalk.yellow(`${chalk.bold('Warning:')} Could not perform some linting actions for ${chalk.bold(linterClass)} due to unhandled error "${failure}".\n`),
1644
1615
  fixed: (numFixableErrors, numFixableWarnings) => {
1645
1616
  const { pluralCheckedFixableErrors, pluralCheckedFixableWarnings } = checkLintTotalPlurals(0, 0, 0, numFixableErrors, numFixableWarnings);
1646
1617
  return `${greenTick} Fixed ${pluralCheckedFixableErrors} and ${pluralCheckedFixableWarnings}`;
1647
1618
  },
1648
1619
  fixFollowUp: `Run ${forge('lint')} to review outstanding errors and warnings`,
1649
- error: (line, column, message, reference) => getLintMessage(line, column, message, 'error', log_color_1.LogColor.error, reference),
1620
+ error: (line, column, message, reference) => getLintMessage(line, column, message, 'error', LogColor.error, reference),
1650
1621
  summary: (numErrors, numWarnings, numApprovals, numFixableErrors, numFixableWarnings) => {
1651
1622
  const { pluralCheckedErrors, pluralCheckedWarnings, pluralCheckedApprovals, pluralCheckedTotal } = checkLintTotalPlurals(numErrors, numWarnings, numApprovals, numFixableErrors, numFixableWarnings);
1652
- const colourFunction = numErrors ? log_color_1.LogColor.error : numWarnings ? log_color_1.LogColor.warn : log_color_1.LogColor.approval;
1623
+ const colourFunction = numErrors ? LogColor.error : numWarnings ? LogColor.warn : LogColor.approval;
1653
1624
  const warningCharacter = numErrors ? 'X' : '⚠';
1654
1625
  return colourFunction(`${warningCharacter} ${pluralCheckedTotal} (${pluralCheckedErrors}, ${pluralCheckedWarnings}, ${pluralCheckedApprovals})`);
1655
1626
  },
1656
1627
  fixSummary: (numErrors, numFixableErrors, numFixableWarnings) => {
1657
1628
  const { pluralCheckedFixableErrors, pluralCheckedFixableWarnings } = checkLintTotalPlurals(0, 0, 0, numFixableErrors, numFixableWarnings);
1658
- const colourFunction = numErrors ? log_color_1.LogColor.error : log_color_1.LogColor.warn;
1629
+ const colourFunction = numErrors ? LogColor.error : LogColor.warn;
1659
1630
  return colourFunction(` Run ${forge('lint', '--fix')} to automatically fix ${pluralCheckedFixableErrors} and ${pluralCheckedFixableWarnings}.\n`);
1660
1631
  },
1661
- warning: (line, column, message, reference) => getLintMessage(line, column, message, 'warning', log_color_1.LogColor.warn, reference),
1662
- approval: (line, column, message, reference) => getLintMessage(line, column, message, 'approval', log_color_1.LogColor.approval, reference)
1632
+ warning: (line, column, message, reference) => getLintMessage(line, column, message, 'warning', LogColor.warn, reference),
1633
+ approval: (line, column, message, reference) => getLintMessage(line, column, message, 'approval', LogColor.approval, reference)
1663
1634
  },
1664
1635
  repositories: {
1665
1636
  cmd: {
@@ -1731,7 +1702,7 @@ ${buildTerminalLink(link)}\n`,
1731
1702
  interactive: {
1732
1703
  desc: 'Select container to delete:',
1733
1704
  progressInfo: `To delete a container, select it from the list.\nPress Ctrl+C to cancel.`,
1734
- noContainersFound: `This app does not have any containers.\nRun ${chalk_1.default.bold('forge containers create')} to create a container for your app.`
1705
+ noContainersFound: `This app does not have any containers.\nRun ${chalk.bold('forge containers create')} to create a container for your app.`
1735
1706
  },
1736
1707
  deletingContainer: (key) => `Deleting container definition with key '${key}'.`,
1737
1708
  warning: 'Deleting container is irreversible and will delete all images associated with it.',
@@ -1769,7 +1740,7 @@ ${buildTerminalLink(link)}\n`,
1769
1740
  cmd: {
1770
1741
  desc: "display information about the deployed app's containers and services"
1771
1742
  },
1772
- specifyPlacement: (placement) => `Placement: ${chalk_1.default.bold(placement)}`,
1743
+ specifyPlacement: (placement) => `Placement: ${chalk.bold(placement)}`,
1773
1744
  fetchingServices: 'Fetching deployed services',
1774
1745
  fetchingContainers: 'Fetching deployed service containers',
1775
1746
  services: {
@@ -1779,7 +1750,7 @@ ${buildTerminalLink(link)}\n`,
1779
1750
  watchOption: 'watch for changes to selected services'
1780
1751
  },
1781
1752
  overview: 'Showing service information.',
1782
- specificService: (serviceKey, environment) => `Showing service: ${chalk_1.default.bold(serviceKey)} deployed in the '${environment}' environment.`,
1753
+ specificService: (serviceKey, environment) => `Showing service: ${chalk.bold(serviceKey)} deployed in the '${environment}' environment.`,
1783
1754
  allServices: (environment) => `Showing all services defined and deployed in the '${environment}' environment:`,
1784
1755
  noServicesFound: (environment) => `No services found in the '${environment}' environment.`
1785
1756
  },
@@ -1798,9 +1769,9 @@ ${buildTerminalLink(link)}\n`,
1798
1769
  specifiedServiceNotFound: (service, environment) => `No service '${service}' found in the '${environment}' environment.`,
1799
1770
  specifiedContainerNotFound: (service, container, environment) => `No container '${container}' found for the service '${service}' in the '${environment}' environment.`,
1800
1771
  noContainersFoundForService: (service, environment) => `No containers found for the service '${service}' in the '${environment}' environment.`,
1801
- specificContainer: (containerKey) => `Container: ${chalk_1.default.bold(containerKey)}`,
1772
+ specificContainer: (containerKey) => `Container: ${chalk.bold(containerKey)}`,
1802
1773
  noInstancesFoundForContainer: (containerKey, service, environment) => `No instances found for the container '${containerKey}' for the service '${service}' in the '${environment}' environment.`,
1803
- specifyImageRepository: (imageRepo) => `Image repository: ${chalk_1.default.bold(imageRepo)}`
1774
+ specifyImageRepository: (imageRepo) => `Image repository: ${chalk.bold(imageRepo)}`
1804
1775
  }
1805
1776
  },
1806
1777
  stub: {
@@ -1808,12 +1779,12 @@ ${buildTerminalLink(link)}\n`,
1808
1779
  },
1809
1780
  customPrompts: {
1810
1781
  table: {
1811
- promptMessage: (message) => `${chalk_1.default.green('?')} ${message}`,
1812
- headerMessage: (message, singleOption) => `${chalk_1.default.bold(message)} ${chalk_1.default.dim(singleOption ? ' (Use the Enter key to select)' : ' (Use the spacebar to select multiple)')}`
1782
+ promptMessage: (message) => `${chalk.green('?')} ${message}`,
1783
+ headerMessage: (message, singleOption) => `${chalk.bold(message)} ${chalk.dim(singleOption ? ' (Use the Enter key to select)' : ' (Use the spacebar to select multiple)')}`
1813
1784
  },
1814
1785
  singleSelectionTable: {
1815
- doneHeaderMessage: (message) => `${chalk_1.default.bold(message)}`,
1816
- decorateSelected: (site) => `${chalk_1.default.cyan(site)}`
1786
+ doneHeaderMessage: (message) => `${chalk.bold(message)}`,
1787
+ decorateSelected: (site) => `${chalk.cyan(site)}`
1817
1788
  }
1818
1789
  },
1819
1790
  variables: {
@@ -1822,7 +1793,7 @@ ${buildTerminalLink(link)}\n`,
1822
1793
  settings: {
1823
1794
  description: 'manage Forge CLI settings',
1824
1795
  analytics: {
1825
- banner: `We are continuously working to improve the developer experience in Forge. CLI usage helps us do just that. Select ${chalk_1.default.bold('yes')} below to agree to our collection of analytics data through our tools. You can use ${forge('settings')} to manage your settings at any time.`,
1796
+ banner: `We are continuously working to improve the developer experience in Forge. CLI usage helps us do just that. Select ${chalk.bold('yes')} below to agree to our collection of analytics data through our tools. You can use ${forge('settings')} to manage your settings at any time.`,
1826
1797
  promptMessage: 'Allow Forge to collect CLI usage and error reporting information?'
1827
1798
  },
1828
1799
  set: {
@@ -1852,7 +1823,7 @@ ${buildTerminalLink(link)}\n`,
1852
1823
  },
1853
1824
  customEffects: {
1854
1825
  description: 'Enable custom spinner effects',
1855
- setupError: chalk_1.default.yellow('Failed to fetch custom spinner config. Custom spinner effects can be disabled via forge settings')
1826
+ setupError: chalk.yellow('Failed to fetch custom spinner config. Custom spinner effects can be disabled via forge settings')
1856
1827
  },
1857
1828
  proxy: {
1858
1829
  description: 'Configure proxy for all Forge CLI network requests',
@@ -1936,7 +1907,7 @@ When errors occur during Forge command execution, error details will be sent to
1936
1907
  pipeIn: (secretName) => `Pipe the ${secretName} in on stdin.`,
1937
1908
  passFlagAndPipeIn: (readFlag, secretName) => `Pass ${readFlag} and pipe the ${secretName} in on stdin.`,
1938
1909
  flagAndArgv: (readFlag, argvOption) => `Use either ${readFlag} or ${argvOption}, not both.`,
1939
- argvDeprecated: (argvOption, readFlag) => `${chalk_1.default.bold('Warning')}: ${argvOption} is deprecated, because a value passed as an argument is visible in the process list and shell history. Use ${readFlag} and pipe the value in on stdin instead.`
1910
+ argvDeprecated: (argvOption, readFlag) => `${chalk.bold('Warning')}: ${argvOption} is deprecated, because a value passed as an argument is visible in the process list and shell history. Use ${readFlag} and pipe the value in on stdin instead.`
1940
1911
  },
1941
1912
  customScopes: {
1942
1913
  deploy: {