npm package diff
Package: @forge/cli-shared
Versions: 6.7.0-next.9-experimental-4c15b3a - 6.7.0-next.10
File: package/out/ui/text.js
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -62,9 +62,11 @@
`\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)}.` +
`\n`,
outdatedNodeVersion: (compatibleNodeVersion, currentNodeVersion) => fatalError(`Unsupported Node.js version. The CLI requires Node.js ${compatibleNodeVersion}, but you're using Node.js ${currentNodeVersion}.`),
missingProductNameValue: 'Product parameter requires a product name. Rerun the command with a valid product name.',
- invalidProduct: 'Invalid product. Rerun the command with a valid product.',
+ invalidContext: (validContexts) => `Invalid context. Rerun ${chalk_1.default.bold('forge install')} with ${validContexts.length > 0
+ ? `one of the following valid contexts: ${validContexts.join(', ')}.`
+ : 'a valid context.'}.`,
missingSiteUrlValue: 'Site parameter requires a site URL. Rerun the command with a valid site URL.',
invalidSite: 'The site you entered is not an Atlassian site. Rerun the command with the URL to an Atlassian site to install the app.',
invalidWorkspace: 'The workspace you entered is not a valid workspace. Rerun the command with the URL to a valid workspace to install the app.',
invalidInstallationContext: 'Could not find an installation for the provided context',
@@ -96,9 +98,9 @@
countSize: (maxSizeOfUsersWithAccess) => `User limit exceeded. The --users-with-access option allows a maximum of ${maxSizeOfUsersWithAccess} users.`,
licenseModeRequired: '--license-modes option is required when specifying --users-with-access option'
},
multipleMatchingInstallations: 'Multiple matching installations found for the provided context when only one was expected',
- partialInstallation: (failedProductInstallations) => `Failed to install the app for the following products: ${failedProductInstallations.join(', ')}.`
+ partialInstallation: (failedProductInstallations) => `Failed to install into the following contexts: ${failedProductInstallations.join(', ')}. Run ${chalk_1.default.bold('forge install')} again to reattempt this installation.`
},
warning: {
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)}.`,
plaintextCredentialsMigrated: 'The credentials found in plaintext have been migrated to your local keychain.',
@@ -692,8 +694,11 @@
egressURL: {
error: (message) => {
return `Invalid Egress permissions: ${message}\nLearn more at https://developer.atlassian.com/forge-content-security-and-egress-controls`;
}
+ },
+ crossContext: {
+ error: `Unable to deploy a cross-context app to an environment with an existing installation in a context that is not the required context. Run ${chalk_1.default.bold('forge uninstall')} to uninstall your app from optional contexts in this environment before retrying ${chalk_1.default.bold('forge deploy')}.`
}
},
install: {
cmd: {
@@ -731,9 +736,9 @@
success: {
banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now installed in ${product} on ${buildTerminalLink(site)}`
},
error: {
- activationIdMissing: (url, product) => `ActivationId not found for URL ${url} and product ${product}. Make sure the product on site ${url} is active`,
+ activationIdMissing: (url, context) => `Context is not activated on ${url}. Enable ${context} in your suite or contact your administrator for assistance.`,
invalidAtlassianSite: (url) => `The URL you entered doesn't belong to an Atlassian site: ` +
`\n${url.toString()} ` +
`\n\nRun the command using a different URL.`,
invalidWorkspace: (url) => `The URL you entered is not a valid workspace: ` +