@forge/cli-shared 8.8.1-next.5-experimental-ab371ba → 8.8.1-next.7
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.
- package/CHANGELOG.md +8 -14
- package/out/graphql/graphql-types.d.ts +10 -0
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/ui/text.d.ts +6 -5
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +16 -9
- package/package.json +3 -3
package/out/ui/text.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const Text: {
|
|
|
29
29
|
invalidWorkspace: string;
|
|
30
30
|
invalidInstallationContext: string;
|
|
31
31
|
invalidTokenInKeytar: string;
|
|
32
|
+
invalidUpgradeTarget: string;
|
|
32
33
|
invalidTokenInEnv: (instructionsUrl: string, emailVar: string, tokenVar: string) => string;
|
|
33
34
|
promptInputRequired: string;
|
|
34
35
|
noExecutableFile: string;
|
|
@@ -77,7 +78,7 @@ export declare const Text: {
|
|
|
77
78
|
promptWorkspace: string;
|
|
78
79
|
};
|
|
79
80
|
upgradeContext: {
|
|
80
|
-
overview: string;
|
|
81
|
+
overview: (isCodeUpgrade: boolean, version?: string, isLatest?: boolean) => string;
|
|
81
82
|
promptInstallation: string;
|
|
82
83
|
};
|
|
83
84
|
optionSite: string;
|
|
@@ -737,7 +738,6 @@ export declare const Text: {
|
|
|
737
738
|
permissionsDeniedInstructions: (requestId: string, appId: string) => string;
|
|
738
739
|
appendRequestIdToErrorMessage: (message: string | undefined, requestId: string) => string;
|
|
739
740
|
majorVersionNotFound: string;
|
|
740
|
-
majorVersionAndUpgrade: string;
|
|
741
741
|
};
|
|
742
742
|
failedAll: (site: URL, environment: string) => string;
|
|
743
743
|
security: {
|
|
@@ -772,12 +772,12 @@ export declare const Text: {
|
|
|
772
772
|
end: (displayTick: boolean) => string;
|
|
773
773
|
error: string;
|
|
774
774
|
};
|
|
775
|
-
listScopes: (scopes: ListScope[]) => string;
|
|
776
|
-
listEgressAddresses: (egressAddresses: string[]) => string;
|
|
775
|
+
listScopes: (scopes: ListScope[], isCodeUpgrade: boolean) => string;
|
|
776
|
+
listEgressAddresses: (egressAddresses: string[], isCodeUpgrade: boolean) => string;
|
|
777
777
|
permissionsMismatch: (environment: string) => string;
|
|
778
778
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
|
779
779
|
success: {
|
|
780
|
-
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string) => string;
|
|
780
|
+
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string, isLatest?: boolean, version?: string, isCodeUpgrade?: boolean) => string;
|
|
781
781
|
};
|
|
782
782
|
alreadyUpdated: {
|
|
783
783
|
spinnerSite: string;
|
|
@@ -786,6 +786,7 @@ export declare const Text: {
|
|
|
786
786
|
};
|
|
787
787
|
error: {
|
|
788
788
|
serverSideInstallationError: (message: string) => string;
|
|
789
|
+
decoupledStateNotEnabled: (requestId?: string) => string;
|
|
789
790
|
};
|
|
790
791
|
};
|
|
791
792
|
installList: {
|
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAsBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE;AAKD,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAAsD,CAAC;AAoDjG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|
@@ -74,6 +74,7 @@ exports.Text = {
|
|
|
74
74
|
invalidWorkspace: 'The workspace you entered is not a valid workspace. Rerun the command with the URL to a valid workspace to install the app.',
|
|
75
75
|
invalidInstallationContext: 'Could not find an installation for the provided Atlassian app',
|
|
76
76
|
invalidTokenInKeytar: `Your API token is no longer valid. Run ${forge('login')} to reset your login credentials.`,
|
|
77
|
+
invalidUpgradeTarget: 'You must specify either "all" or "code" as the upgrade target.',
|
|
77
78
|
invalidTokenInEnv: (instructionsUrl, emailVar, tokenVar) => `The API token on your machine is no longer valid.` +
|
|
78
79
|
`\n 1) Get a new API token: ${instructionsUrl}` +
|
|
79
80
|
`\n 2) Set your email and the token to ${emailVar} and ${tokenVar} environment variables.`,
|
|
@@ -127,7 +128,13 @@ exports.Text = {
|
|
|
127
128
|
promptWorkspace: 'Enter the workspace URL:'
|
|
128
129
|
},
|
|
129
130
|
upgradeContext: {
|
|
130
|
-
overview:
|
|
131
|
+
overview: (isCodeUpgrade, version, isLatest) => {
|
|
132
|
+
const upgradeType = isCodeUpgrade ? 'code' : 'code and scopes';
|
|
133
|
+
if (version && !isLatest) {
|
|
134
|
+
return `To upgrade your app to use the ${upgradeType} from version ${version}, select it from the list.\n${ctrlC}`;
|
|
135
|
+
}
|
|
136
|
+
return `To upgrade your app to use the latest ${upgradeType}, select it from the list.\n${ctrlC}`;
|
|
137
|
+
},
|
|
131
138
|
promptInstallation: 'Select the site or workspace to upgrade:'
|
|
132
139
|
},
|
|
133
140
|
optionSite: 'site URL (example.atlassian.net)',
|
|
@@ -893,7 +900,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
893
900
|
majorVersionIsNotLatest: (versionToInstall) => `WARNING: You are about to install a previous version of the app. (${versionToInstall})`,
|
|
894
901
|
devAppInstallConfirm: `Are you sure you want to proceed?`,
|
|
895
902
|
optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
|
|
896
|
-
optionUpgrade: 'upgrade an existing installation',
|
|
903
|
+
optionUpgrade: 'upgrade an existing installation (allowed values: all (default), code)',
|
|
897
904
|
optionLicense: 'specify the license value for the app (allowed values: active, standard, advanced, inactive, and trial)',
|
|
898
905
|
optionLicenseModes: 'specify the list of license mode value for the app (allowed values: user-access)',
|
|
899
906
|
optionUsersWithAccess: 'specify the list of Atlassian Account IDs(aaid) for users who have access to the app',
|
|
@@ -932,8 +939,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
932
939
|
'in the developer console and share it with the site admin: ' +
|
|
933
940
|
`https://developer.atlassian.com/console/myapps/${appId}/distribution`,
|
|
934
941
|
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}`,
|
|
935
|
-
majorVersionNotFound: 'The major version you specified does not exist. Check the version number and try again.'
|
|
936
|
-
majorVersionAndUpgrade: 'Cannot use the major version flag with the upgrade flag'
|
|
942
|
+
majorVersionNotFound: 'The major version you specified does not exist. Check the version number and try again.'
|
|
937
943
|
},
|
|
938
944
|
failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed on any Atlassian apps on ${chalk_1.default.bold(site)}.`,
|
|
939
945
|
security: {
|
|
@@ -980,16 +986,16 @@ ${buildTerminalLink(link)}\n`,
|
|
|
980
986
|
end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Upgrade complete!`,
|
|
981
987
|
error: `Upgrade failed`
|
|
982
988
|
},
|
|
983
|
-
listScopes: (scopes) => `Your app will be upgraded with the following additional scopes:\n${scopes
|
|
989
|
+
listScopes: (scopes, isCodeUpgrade) => `Your app will be ${isCodeUpgrade ? 'missing' : 'upgraded with'} the following ${!isCodeUpgrade ? 'additional ' : ''}scopes:\n${scopes
|
|
984
990
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
|
|
985
991
|
.join('\n')}\n`,
|
|
986
|
-
listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
992
|
+
listEgressAddresses: (egressAddresses, isCodeUpgrade) => `Your app will${isCodeUpgrade ? ' not' : ''} exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
987
993
|
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`,
|
|
988
994
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment) => permissionsMismatchInDevelopment
|
|
989
995
|
? 'Are you sure you want to continue upgrading the app?'
|
|
990
996
|
: 'Do you want to continue?',
|
|
991
997
|
success: {
|
|
992
|
-
banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now the latest in ${product} on ${buildTerminalLink(site)}.`
|
|
998
|
+
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)}.`
|
|
993
999
|
},
|
|
994
1000
|
alreadyUpdated: {
|
|
995
1001
|
spinnerSite: 'Site is already at the latest version',
|
|
@@ -997,7 +1003,8 @@ ${buildTerminalLink(link)}\n`,
|
|
|
997
1003
|
banner: (environment, product, site) => `\nYour app in the ${(0, environment_1.environmentToOption)(environment)} environment is at the latest in ${product} on ${buildTerminalLink(site)}.`
|
|
998
1004
|
},
|
|
999
1005
|
error: {
|
|
1000
|
-
serverSideInstallationError: (message) => `Upgrade error: ${message}
|
|
1006
|
+
serverSideInstallationError: (message) => `Upgrade error: ${message}`,
|
|
1007
|
+
decoupledStateNotEnabled: (requestId) => `The specified version is not eligible for a code-only upgrade${requestId ? ` (requestId: ${requestId})` : ''}.`
|
|
1001
1008
|
}
|
|
1002
1009
|
},
|
|
1003
1010
|
installList: {
|
|
@@ -1309,7 +1316,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
1309
1316
|
info: `To view all environments for this app, run ${forge('environments', 'list')}.`
|
|
1310
1317
|
},
|
|
1311
1318
|
seasonalEffects: {
|
|
1312
|
-
description: 'Enable seasonal themes
|
|
1319
|
+
description: 'Enable seasonal themes'
|
|
1313
1320
|
}
|
|
1314
1321
|
},
|
|
1315
1322
|
assistant: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "8.8.1-next.
|
|
3
|
+
"version": "8.8.1-next.7",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "10.8.0-next.5
|
|
16
|
-
"@forge/util": "2.0.1-next.0
|
|
15
|
+
"@forge/manifest": "10.8.0-next.5",
|
|
16
|
+
"@forge/util": "2.0.1-next.0",
|
|
17
17
|
"@forge/i18n": "0.0.7",
|
|
18
18
|
"@sentry/node": "7.106.0",
|
|
19
19
|
"adm-zip": "^0.5.10",
|