@forge/cli 11.3.0-next.5 → 11.3.0-next.8-experimental-900adc2

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 CHANGED
@@ -1,5 +1,73 @@
1
1
  # @forge/cli
2
2
 
3
+ ## 11.3.0-next.8-experimental-900adc2
4
+
5
+ ### Minor Changes
6
+
7
+ - d156658: Switch the `forge create` flow to select product context first
8
+
9
+ ### Patch Changes
10
+
11
+ - 2cdac63: forge install should list all scopes
12
+ - 9d231e9: switch the `forge create` cross-context flow to use the new `app.contexts` manifest format
13
+ - 0aad197: Change product wording to context
14
+ - 999a9d0: Update error messages for deployment
15
+ - 210360b: Refactor text functions for easier read and maintenance
16
+ - b4cee28: Fix uninstall message
17
+ - Updated dependencies [2cdac63]
18
+ - Updated dependencies [9d231e9]
19
+ - Updated dependencies [0aad197]
20
+ - Updated dependencies [999a9d0]
21
+ - Updated dependencies [94e48b9]
22
+ - Updated dependencies [d156658]
23
+ - Updated dependencies [b503084]
24
+ - Updated dependencies [210360b]
25
+ - Updated dependencies [a7db2e6]
26
+ - Updated dependencies [64daaa5]
27
+ - Updated dependencies [3a703de]
28
+ - Updated dependencies [003b1ed]
29
+ - @forge/cli-shared@6.8.0-next.8-experimental-900adc2
30
+ - @forge/manifest@8.9.0-next.3-experimental-900adc2
31
+ - @forge/bundler@4.21.1-next.8-experimental-900adc2
32
+ - @forge/lint@5.7.3-next.8-experimental-900adc2
33
+ - @forge/tunnel@5.10.1-next.8-experimental-900adc2
34
+
35
+ ## 11.3.0-next.8
36
+
37
+ ### Patch Changes
38
+
39
+ - 0aad197: Change product wording to context
40
+ - Updated dependencies [0aad197]
41
+ - @forge/cli-shared@6.8.0-next.8
42
+ - @forge/bundler@4.21.1-next.8
43
+ - @forge/lint@5.7.3-next.8
44
+ - @forge/tunnel@5.10.1-next.8
45
+
46
+ ## 11.3.0-next.7
47
+
48
+ ### Patch Changes
49
+
50
+ - 9d231e9: switch the `forge create` cross-context flow to use the new `app.contexts` manifest format
51
+ - Updated dependencies [9d231e9]
52
+ - Updated dependencies [b503084]
53
+ - @forge/cli-shared@6.8.0-next.7
54
+ - @forge/manifest@8.9.0-next.3
55
+ - @forge/bundler@4.21.1-next.7
56
+ - @forge/lint@5.7.3-next.7
57
+ - @forge/tunnel@5.10.1-next.7
58
+
59
+ ## 11.3.0-next.6
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [a7db2e6]
64
+ - Updated dependencies [003b1ed]
65
+ - @forge/cli-shared@6.8.0-next.6
66
+ - @forge/manifest@8.9.0-next.2
67
+ - @forge/bundler@4.21.1-next.6
68
+ - @forge/lint@5.7.3-next.6
69
+ - @forge/tunnel@5.10.1-next.6
70
+
3
71
  ## 11.3.0-next.5
4
72
 
5
73
  ### Patch Changes
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "11.3.0-next.5",
3
+ "version": "11.3.0-next.8-experimental-900adc2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@forge/cli",
9
- "version": "11.3.0-next.5",
9
+ "version": "11.3.0-next.8-experimental-900adc2",
10
10
  "hasInstallScript": true,
11
11
  "license": "SEE LICENSE IN LICENSE.txt",
12
12
  "dependencies": {
13
- "@forge/bundler": "4.21.1-next.5",
14
- "@forge/cli-shared": "6.8.0-next.5",
13
+ "@forge/bundler": "4.21.1-next.8-experimental-900adc2",
14
+ "@forge/cli-shared": "6.8.0-next.8-experimental-900adc2",
15
15
  "@forge/egress": "1.4.0",
16
16
  "@forge/i18n": "0.0.4",
17
- "@forge/lint": "5.7.3-next.5",
18
- "@forge/manifest": "8.9.0-next.1",
17
+ "@forge/lint": "5.7.3-next.8-experimental-900adc2",
18
+ "@forge/manifest": "8.9.0-next.3-experimental-900adc2",
19
19
  "@forge/runtime": "5.10.7",
20
- "@forge/tunnel": "5.10.1-next.5",
20
+ "@forge/tunnel": "5.10.1-next.8-experimental-900adc2",
21
21
  "@forge/util": "1.4.8",
22
22
  "@sentry/node": "7.106.0",
23
23
  "ajv": "^8.12.0",
@@ -834,9 +834,9 @@
834
834
  "license": "SEE LICENSE IN LICENSE.txt"
835
835
  },
836
836
  "node_modules/@forge/bundler": {
837
- "version": "4.21.1-next.5",
838
- "resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.21.1-next.5.tgz",
839
- "integrity": "sha512-1cXqw/5mY953wVXHIotI1kYJdc+14VU3ze211CPN5osANQpoeL2nMpni7lN8fAx0dXNKKOeNz1FUaELnFqwaiQ==",
837
+ "version": "4.21.1-next.8-experimental-900adc2",
838
+ "resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.21.1-next.8-experimental-900adc2.tgz",
839
+ "integrity": "sha512-EVXOXMJTv2syue4CyOWmBpHZJn2MNGsRkZc0asi+V3wTJyEwSonfp+Sp44NuKIxny/+bhqe80OKNStgVYDYxHg==",
840
840
  "license": "SEE LICENSE IN LICENSE.txt",
841
841
  "dependencies": {
842
842
  "@babel/core": "^7.24.0",
@@ -848,10 +848,10 @@
848
848
  "@babel/preset-typescript": "^7.23.3",
849
849
  "@forge/api": "5.1.1",
850
850
  "@forge/babel-plugin-transform-ui": "1.1.21",
851
- "@forge/cli-shared": "6.8.0-next.5",
851
+ "@forge/cli-shared": "6.8.0-next.8-experimental-900adc2",
852
852
  "@forge/i18n": "0.0.4",
853
- "@forge/lint": "5.7.3-next.5",
854
- "@forge/manifest": "8.9.0-next.1",
853
+ "@forge/lint": "5.7.3-next.8-experimental-900adc2",
854
+ "@forge/manifest": "8.9.0-next.3-experimental-900adc2",
855
855
  "@forge/util": "1.4.8",
856
856
  "assert": "^2.1.0",
857
857
  "babel-loader": "^8.3.0",
@@ -919,13 +919,13 @@
919
919
  "license": "SEE LICENSE IN LICENSE.txt"
920
920
  },
921
921
  "node_modules/@forge/cli-shared": {
922
- "version": "6.8.0-next.5",
923
- "resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-6.8.0-next.5.tgz",
924
- "integrity": "sha512-U1wI35oDMTlQUwquXk61rb262hmw1gsYK4cV31d+Z8Pb3D4HPEU0ZRzyG8uxMCn4ftyBLv4viDwZhWmTdgih0A==",
922
+ "version": "6.8.0-next.8-experimental-900adc2",
923
+ "resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-6.8.0-next.8-experimental-900adc2.tgz",
924
+ "integrity": "sha512-FS9K6B6BUnKBOY70LD1JaOSwqU9w4si7eThpQMZ6n7+ZQi/M23oJlMjuL3VhuwdI/6jDwhyoSlj5IWxNEtKG9g==",
925
925
  "license": "SEE LICENSE IN LICENSE.txt",
926
926
  "dependencies": {
927
927
  "@forge/i18n": "0.0.4",
928
- "@forge/manifest": "8.9.0-next.1",
928
+ "@forge/manifest": "8.9.0-next.3-experimental-900adc2",
929
929
  "@forge/util": "1.4.8",
930
930
  "@sentry/node": "7.106.0",
931
931
  "adm-zip": "^0.5.10",
@@ -958,9 +958,9 @@
958
958
  }
959
959
  },
960
960
  "node_modules/@forge/csp": {
961
- "version": "3.6.2",
962
- "resolved": "https://registry.npmjs.org/@forge/csp/-/csp-3.6.2.tgz",
963
- "integrity": "sha512-G6KVTiiZe1O/tpuSz6WgM8qgiRqf+E6GQeQDnmPlQlaGmur8qrKA2wHWmZtSgV3PuDt1Vts/ISCPa9mQtohIVw==",
961
+ "version": "3.6.2-experimental-900adc2",
962
+ "resolved": "https://registry.npmjs.org/@forge/csp/-/csp-3.6.2-experimental-900adc2.tgz",
963
+ "integrity": "sha512-3meak/LUOU5ChKMRuW1CY8UJYVMjrOjzOu+3sOMbojY/1ogfZ5vRQa4vb0DON3JYoUQ0wAD9cXNWbwGya6JHiQ==",
964
964
  "license": "SEE LICENSE IN LICENSE.txt",
965
965
  "dependencies": {
966
966
  "cheerio": "^0.22.0",
@@ -986,15 +986,15 @@
986
986
  }
987
987
  },
988
988
  "node_modules/@forge/lint": {
989
- "version": "5.7.3-next.5",
990
- "resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.7.3-next.5.tgz",
991
- "integrity": "sha512-h4VRmmPNMn5JFgfbAuwTyzWW4Ozp13AEZyfcKSZq8TqJKsvKzgWuV8e2N2miJBB/gQtKOFhdR3prs7LdNIpEtQ==",
989
+ "version": "5.7.3-next.8-experimental-900adc2",
990
+ "resolved": "https://registry.npmjs.org/@forge/lint/-/lint-5.7.3-next.8-experimental-900adc2.tgz",
991
+ "integrity": "sha512-THzZoDTyEVYzwmwHyNTB9ewoVBSzD350/Wpyatlg87uGJg/1eK08JysazMQw3QBJOj0+UyxV/EYSKl/jNg3Vsg==",
992
992
  "license": "SEE LICENSE IN LICENSE.txt",
993
993
  "dependencies": {
994
- "@forge/cli-shared": "6.8.0-next.5",
995
- "@forge/csp": "3.6.2",
994
+ "@forge/cli-shared": "6.8.0-next.8-experimental-900adc2",
995
+ "@forge/csp": "3.6.2-experimental-900adc2",
996
996
  "@forge/egress": "1.4.0",
997
- "@forge/manifest": "8.9.0-next.1",
997
+ "@forge/manifest": "8.9.0-next.3-experimental-900adc2",
998
998
  "@typescript-eslint/typescript-estree": "^5.62.0",
999
999
  "array.prototype.flatmap": "^1.3.2",
1000
1000
  "atlassian-openapi": "^1.0.18",
@@ -1003,9 +1003,9 @@
1003
1003
  }
1004
1004
  },
1005
1005
  "node_modules/@forge/manifest": {
1006
- "version": "8.9.0-next.1",
1007
- "resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-8.9.0-next.1.tgz",
1008
- "integrity": "sha512-mjUw0RwwIpcVtDF+oO7gzP6kWTo9Lc70RM+RBsQEJ2ZR/Gwh8cNgeH6KPx57i/BI4oTq0QNfHpOwW4q7kRjj9A==",
1006
+ "version": "8.9.0-next.3-experimental-900adc2",
1007
+ "resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-8.9.0-next.3-experimental-900adc2.tgz",
1008
+ "integrity": "sha512-8/ufLvQz6DzBs03vmr9Ycvxgnt0m5oy7fybdTL5YfQxCTHuyJ1ZjKArqigdwi2XXjE3kcYJYVzI8ukQo794P1Q==",
1009
1009
  "license": "SEE LICENSE IN LICENSE.txt",
1010
1010
  "dependencies": {
1011
1011
  "@forge/i18n": "0.0.4",
@@ -1036,14 +1036,14 @@
1036
1036
  }
1037
1037
  },
1038
1038
  "node_modules/@forge/tunnel": {
1039
- "version": "5.10.1-next.5",
1040
- "resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.10.1-next.5.tgz",
1041
- "integrity": "sha512-k4TmtFWsDuU5kQuYNrD2Wmjl9AFrBEfkoHsWoPggElK/FzjFhqK36KdUw079FCrwdMOouo8oKkxQX+B61rFcLw==",
1039
+ "version": "5.10.1-next.8-experimental-900adc2",
1040
+ "resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-5.10.1-next.8-experimental-900adc2.tgz",
1041
+ "integrity": "sha512-FyqDlfaFd3pC8A9xD5s9J40cvpH5bNjtNJ/NnD84oDuEsMEmaOLdVgtruEj7Cj0GiK6y0GDw9wAzBVxuaGjilA==",
1042
1042
  "license": "SEE LICENSE IN LICENSE.txt",
1043
1043
  "dependencies": {
1044
- "@forge/bundler": "4.21.1-next.5",
1045
- "@forge/cli-shared": "6.8.0-next.5",
1046
- "@forge/csp": "3.6.2",
1044
+ "@forge/bundler": "4.21.1-next.8-experimental-900adc2",
1045
+ "@forge/cli-shared": "6.8.0-next.8-experimental-900adc2",
1046
+ "@forge/csp": "3.6.2-experimental-900adc2",
1047
1047
  "@forge/runtime": "5.10.7",
1048
1048
  "chokidar": "^3.6.0",
1049
1049
  "cloudflared": "^0.7.0",
@@ -189,7 +189,7 @@ class Command {
189
189
  contextOption() {
190
190
  const supportedProductsService = this.supportedProductsService;
191
191
  return this.option('-s, --site [site]', cli_shared_1.Text.optionSite)
192
- .option('-p, --product [product]', cli_shared_1.Text.optionProduct(supportedProductsService.getSupportedProducts()))
192
+ .option('-p, --product [context]', cli_shared_1.Text.optionProduct(supportedProductsService.getSupportedProducts()))
193
193
  .precondition(async (...args) => {
194
194
  const { site, product } = last(args);
195
195
  return validateContext({ supportedProductsService, site, product });
@@ -46,7 +46,7 @@ const registerListInstallationsCommand = ({ cmd, ui, services: { installationsSe
46
46
  ['id', 'Installation ID'],
47
47
  ['environment', 'Environment'],
48
48
  ['site', 'Site'],
49
- ['product', hasSecondaryInstallations ? 'Product(s)' : 'Product'],
49
+ ['product', hasSecondaryInstallations ? 'Context(s)' : 'Context'],
50
50
  ['majorVersion', 'Major Version']
51
51
  ], installations.map(({ id, environmentKey, product, secondaryProducts, site, version: { isLatest, version } }) => ({
52
52
  id,
@@ -90,7 +90,7 @@ const registerUninstallCommand = (deps) => {
90
90
  else {
91
91
  const filteredInstallations = installations.filter((install) => install.product !== 'identity' && install.product !== 'jira-servicedesk');
92
92
  const options = (0, uninstall_command_helpers_1.getMultiChoiceOptionsForUninstall)(filteredInstallations);
93
- const selectedSitesIndexes = await ui.promptForTable(cli_shared_1.Text.uninstall.interactive.desc, cli_shared_1.Text.uninstall.interactive.progressInfo, ['Environment', 'Site', 'Product'], options);
93
+ const selectedSitesIndexes = await ui.promptForTable(cli_shared_1.Text.uninstall.interactive.desc, cli_shared_1.Text.uninstall.interactive.progressInfo, ['Environment', 'Site', 'Context'], options);
94
94
  const [firstUninstall, secondUninstall] = (0, uninstall_command_helpers_1.getInstallationsFromSelection)(options, selectedSitesIndexes, filteredInstallations);
95
95
  const selectedSites = new Set(firstUninstall.map(({ site }) => site).concat(secondUninstall.map(({ site }) => site)));
96
96
  const remainingApps = options
@@ -16,7 +16,7 @@ function validateInstallationId(installationId) {
16
16
  exports.validateInstallationId = validateInstallationId;
17
17
  async function selectSingleInstallation(ui, installations, installationTablePrompt, installationTableOverview) {
18
18
  const hasSecondaryInstallations = installations.some(({ secondaryProducts }) => secondaryProducts?.length);
19
- const installationIndex = await ui.promptForSingleChoiceTable(installationTablePrompt, installationTableOverview, ['Environment', 'Site', hasSecondaryInstallations ? 'Product(s)' : 'Product', 'Major Version'], installations.map(({ id, environmentKey, product, secondaryProducts, site, version }) => ({
19
+ const installationIndex = await ui.promptForSingleChoiceTable(installationTablePrompt, installationTableOverview, ['Environment', 'Site', hasSecondaryInstallations ? 'Context(s)' : 'Context', 'Major Version'], installations.map(({ id, environmentKey, product, secondaryProducts, site, version }) => ({
20
20
  names: [
21
21
  (0, cli_shared_1.environmentToOption)(environmentKey),
22
22
  site,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "11.3.0-next.5",
3
+ "version": "11.3.0-next.8-experimental-900adc2",
4
4
  "description": "A command line interface for managing Atlassian-hosted apps",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -18,13 +18,13 @@
18
18
  "postinstall": "node -e \"fs.existsSync('./out/bin/postinstall.js') && require('./out/bin/postinstall.js')\""
19
19
  },
20
20
  "dependencies": {
21
- "@forge/bundler": "4.21.1-next.5",
22
- "@forge/cli-shared": "6.8.0-next.5",
21
+ "@forge/bundler": "4.21.1-next.8-experimental-900adc2",
22
+ "@forge/cli-shared": "6.8.0-next.8-experimental-900adc2",
23
23
  "@forge/egress": "1.4.0",
24
- "@forge/lint": "5.7.3-next.5",
25
- "@forge/manifest": "8.9.0-next.1",
24
+ "@forge/lint": "5.7.3-next.8-experimental-900adc2",
25
+ "@forge/manifest": "8.9.0-next.3-experimental-900adc2",
26
26
  "@forge/runtime": "5.10.7",
27
- "@forge/tunnel": "5.10.1-next.5",
27
+ "@forge/tunnel": "5.10.1-next.8-experimental-900adc2",
28
28
  "@forge/util": "1.4.8",
29
29
  "@sentry/node": "7.106.0",
30
30
  "@forge/i18n": "0.0.4",