@forge/cli 6.5.0-next.6-experimental-58938ba → 6.5.0-next.9
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 +29 -14
- package/npm-shrinkwrap.json +105 -105
- package/out/command-line/controller/prerequisites-controller.d.ts +6 -1
- package/out/command-line/controller/prerequisites-controller.d.ts.map +1 -1
- package/out/command-line/controller/prerequisites-controller.js +9 -1
- package/out/command-line/dependency-injection.d.ts +2 -0
- package/out/command-line/dependency-injection.d.ts.map +1 -1
- package/out/command-line/dependency-injection.js +9 -4
- package/out/command-line/index.d.ts.map +1 -1
- package/out/command-line/index.js +6 -2
- package/out/command-line/register-environment-commands.d.ts +6 -0
- package/out/command-line/register-environment-commands.d.ts.map +1 -0
- package/out/command-line/register-environment-commands.js +35 -0
- package/out/environment/create-environment.d.ts +17 -0
- package/out/environment/create-environment.d.ts.map +1 -0
- package/out/environment/create-environment.js +14 -0
- package/out/environment/graphql-client.d.ts +8 -0
- package/out/environment/graphql-client.d.ts.map +1 -0
- package/out/environment/graphql-client.js +47 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,25 +1,40 @@
|
|
|
1
1
|
# @forge/cli
|
|
2
2
|
|
|
3
|
-
## 6.5.0-next.
|
|
3
|
+
## 6.5.0-next.9
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 1911d76: Added "forge environment create" command
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- @forge/
|
|
11
|
+
- Updated dependencies [1911d76]
|
|
12
|
+
- @forge/cli-shared@3.7.0-next.3
|
|
13
|
+
- @forge/tunnel@3.2.0-next.7
|
|
14
|
+
- @forge/bundler@4.6.0-next.7
|
|
15
|
+
- @forge/lint@3.2.16-next.3
|
|
16
|
+
|
|
17
|
+
## 6.5.0-next.8
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [659107b]
|
|
22
|
+
- @forge/bundler@4.6.0-next.6
|
|
23
|
+
- @forge/tunnel@3.1.2-next.6
|
|
24
|
+
|
|
25
|
+
## 6.5.0-next.7
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 589467c: Bumping dependencies via Renovate:
|
|
30
|
+
|
|
31
|
+
- cross-spawn
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [589467c]
|
|
34
|
+
- @forge/cli-shared@3.6.2-next.2
|
|
35
|
+
- @forge/lint@3.2.16-next.2
|
|
36
|
+
- @forge/bundler@4.6.0-next.5
|
|
37
|
+
- @forge/tunnel@3.1.2-next.5
|
|
23
38
|
|
|
24
39
|
## 6.5.0-next.6
|
|
25
40
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "6.5.0-next.
|
|
3
|
+
"version": "6.5.0-next.9",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@forge/cli",
|
|
9
|
-
"version": "6.5.0-next.
|
|
9
|
+
"version": "6.5.0-next.9",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@forge/bundler": "4.6.0-next.
|
|
14
|
-
"@forge/cli-shared": "3.
|
|
13
|
+
"@forge/bundler": "4.6.0-next.7",
|
|
14
|
+
"@forge/cli-shared": "3.7.0-next.3",
|
|
15
15
|
"@forge/egress": "1.1.2",
|
|
16
|
-
"@forge/lint": "3.2.16-next.
|
|
17
|
-
"@forge/manifest": "4.7.1-next.0
|
|
18
|
-
"@forge/runtime": "4.3.0-next.0
|
|
19
|
-
"@forge/tunnel": "3.
|
|
16
|
+
"@forge/lint": "3.2.16-next.3",
|
|
17
|
+
"@forge/manifest": "4.7.1-next.0",
|
|
18
|
+
"@forge/runtime": "4.3.0-next.0",
|
|
19
|
+
"@forge/tunnel": "3.2.0-next.7",
|
|
20
20
|
"@forge/util": "1.2.1",
|
|
21
21
|
"@sentry/node": "^7.29.0",
|
|
22
22
|
"ajv": "^6.12.6",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"cli-table3": "^0.6.1",
|
|
28
28
|
"command-exists": "^1.2.9",
|
|
29
29
|
"commander": "^7.0.0",
|
|
30
|
-
"cross-spawn": "^7.0.
|
|
30
|
+
"cross-spawn": "^7.0.3",
|
|
31
31
|
"dayjs": "^1.9.7",
|
|
32
32
|
"didyoumean": "^1.2.1",
|
|
33
33
|
"env-paths": "^2.2.0",
|
|
@@ -661,14 +661,14 @@
|
|
|
661
661
|
"integrity": "sha1-zy04vcNKE0vK8QkcQfZhni9nLQA= sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
|
662
662
|
},
|
|
663
663
|
"node_modules/@forge/babel-plugin-transform-ui": {
|
|
664
|
-
"version": "1.1.1
|
|
665
|
-
"resolved": "https://registry.npmjs.org/@forge/babel-plugin-transform-ui/-/babel-plugin-transform-ui-1.1.1
|
|
666
|
-
"integrity": "sha512-
|
|
664
|
+
"version": "1.1.1",
|
|
665
|
+
"resolved": "https://registry.npmjs.org/@forge/babel-plugin-transform-ui/-/babel-plugin-transform-ui-1.1.1.tgz",
|
|
666
|
+
"integrity": "sha512-kBvxvnVcFHq0Tz8NV5LhAeO0Gt0fg6Vt2AxE803ro9MHJ6S/ca7BqRDPnKnROoKZ0gAV2ymr27XvBMEq55wv6g=="
|
|
667
667
|
},
|
|
668
668
|
"node_modules/@forge/bundler": {
|
|
669
|
-
"version": "4.6.0-next.
|
|
670
|
-
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.6.0-next.
|
|
671
|
-
"integrity": "sha512-
|
|
669
|
+
"version": "4.6.0-next.7",
|
|
670
|
+
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.6.0-next.7.tgz",
|
|
671
|
+
"integrity": "sha512-7oeFWoU1/rDK+Fa0dvmUsUqzpVEFtWyJrb5pa6rZ9LUAjWPeHj0O/9FxA+SUPGUfsdxcU8MPd4r4yd+rNuvRBQ==",
|
|
672
672
|
"dependencies": {
|
|
673
673
|
"@babel/core": "^7.16.7",
|
|
674
674
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
@@ -676,11 +676,11 @@
|
|
|
676
676
|
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
677
677
|
"@babel/plugin-transform-react-jsx": "^7.16.7",
|
|
678
678
|
"@babel/preset-typescript": "^7.16.7",
|
|
679
|
-
"@forge/api": "2.12.0-next.
|
|
680
|
-
"@forge/babel-plugin-transform-ui": "1.1.1
|
|
681
|
-
"@forge/cli-shared": "3.
|
|
682
|
-
"@forge/lint": "3.2.16-next.
|
|
683
|
-
"@forge/runtime": "4.3.0-next.0
|
|
679
|
+
"@forge/api": "2.12.0-next.2",
|
|
680
|
+
"@forge/babel-plugin-transform-ui": "1.1.1",
|
|
681
|
+
"@forge/cli-shared": "3.7.0-next.3",
|
|
682
|
+
"@forge/lint": "3.2.16-next.3",
|
|
683
|
+
"@forge/runtime": "4.3.0-next.0",
|
|
684
684
|
"@forge/util": "1.2.1",
|
|
685
685
|
"assert": "^1.1.1",
|
|
686
686
|
"babel-loader": "^8.2.3",
|
|
@@ -716,28 +716,23 @@
|
|
|
716
716
|
}
|
|
717
717
|
},
|
|
718
718
|
"node_modules/@forge/bundler/node_modules/@forge/api": {
|
|
719
|
-
"version": "2.12.0-next.
|
|
720
|
-
"resolved": "https://registry.npmjs.org/@forge/api/-/api-2.12.0-next.
|
|
721
|
-
"integrity": "sha512-
|
|
719
|
+
"version": "2.12.0-next.2",
|
|
720
|
+
"resolved": "https://registry.npmjs.org/@forge/api/-/api-2.12.0-next.2.tgz",
|
|
721
|
+
"integrity": "sha512-R9yVOnc1JMtkd+LnC+3/vBLU6LyXEnoOKQwMw8aE7/78bdoZiBnQVreLyKvKGqeOVhe21xOZym8fceKXlXst9g==",
|
|
722
722
|
"dependencies": {
|
|
723
723
|
"@forge/auth": "0.0.1",
|
|
724
724
|
"@forge/egress": "1.1.2",
|
|
725
|
-
"@forge/storage": "1.3.2
|
|
725
|
+
"@forge/storage": "1.3.2",
|
|
726
726
|
"@types/node-fetch": "^2.5.7",
|
|
727
727
|
"node-fetch": "2.6.7"
|
|
728
728
|
}
|
|
729
729
|
},
|
|
730
|
-
"node_modules/@forge/bundler/node_modules/@forge/storage": {
|
|
731
|
-
"version": "1.3.2-experimental-58938ba",
|
|
732
|
-
"resolved": "https://registry.npmjs.org/@forge/storage/-/storage-1.3.2-experimental-58938ba.tgz",
|
|
733
|
-
"integrity": "sha512-tIKUxGd+dg5PbAMdAHYVNVyXdjDa3cFPZCHsGHLOgOBT/92FSdK2RB9yO5B7B+D2DEXeUh2SEKVprcsob77T2A=="
|
|
734
|
-
},
|
|
735
730
|
"node_modules/@forge/cli-shared": {
|
|
736
|
-
"version": "3.
|
|
737
|
-
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.
|
|
738
|
-
"integrity": "sha512-
|
|
731
|
+
"version": "3.7.0-next.3",
|
|
732
|
+
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.7.0-next.3.tgz",
|
|
733
|
+
"integrity": "sha512-h7abZ0fo57vu0HOCJfitBHCy5HMK+X8GE4VKSG0ZhA5hn4ciVnmmWuo5xGGnT8DjXSRLoanhhZwuIjpVTmyjPw==",
|
|
739
734
|
"dependencies": {
|
|
740
|
-
"@forge/manifest": "4.7.1-next.0
|
|
735
|
+
"@forge/manifest": "4.7.1-next.0",
|
|
741
736
|
"@forge/util": "1.2.1",
|
|
742
737
|
"@sentry/node": "^7.29.0",
|
|
743
738
|
"array.prototype.flatmap": "^1.2.3",
|
|
@@ -746,7 +741,7 @@
|
|
|
746
741
|
"cheerio": "^0.22.0",
|
|
747
742
|
"cli-table3": "^0.6.1",
|
|
748
743
|
"conf": "^6.2.4",
|
|
749
|
-
"cross-spawn": "^7.0.
|
|
744
|
+
"cross-spawn": "^7.0.3",
|
|
750
745
|
"env-paths": "^2.2.0",
|
|
751
746
|
"figures": "^3.2.0",
|
|
752
747
|
"fp-ts": "^2.0.1",
|
|
@@ -771,9 +766,9 @@
|
|
|
771
766
|
}
|
|
772
767
|
},
|
|
773
768
|
"node_modules/@forge/csp": {
|
|
774
|
-
"version": "2.1.1
|
|
775
|
-
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-2.1.1
|
|
776
|
-
"integrity": "sha512-
|
|
769
|
+
"version": "2.1.1",
|
|
770
|
+
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-2.1.1.tgz",
|
|
771
|
+
"integrity": "sha512-Af69CNaZwVSGSlO0lm1Z737QFB9K5NOT6AQxfv4pTx+KeAIGTmP8AgYhKpgDx82IQb2EZeV0IJa9UbiXap8M3A==",
|
|
777
772
|
"dependencies": {
|
|
778
773
|
"cheerio": "^0.22.0",
|
|
779
774
|
"content-security-policy-parser": "^0.3.0"
|
|
@@ -788,23 +783,23 @@
|
|
|
788
783
|
}
|
|
789
784
|
},
|
|
790
785
|
"node_modules/@forge/lint": {
|
|
791
|
-
"version": "3.2.16-next.
|
|
792
|
-
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.2.16-next.
|
|
793
|
-
"integrity": "sha512-
|
|
786
|
+
"version": "3.2.16-next.3",
|
|
787
|
+
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.2.16-next.3.tgz",
|
|
788
|
+
"integrity": "sha512-mRmyAHmwcy3liufbXRFGT6njowhKfFDynS640fXhPtwtbAtzIbbtxQihlMQ/v+qZKOMrfvvfkccd0KLEpd5nSQ==",
|
|
794
789
|
"dependencies": {
|
|
795
|
-
"@forge/cli-shared": "3.
|
|
790
|
+
"@forge/cli-shared": "3.7.0-next.3",
|
|
796
791
|
"@forge/egress": "1.1.2",
|
|
797
|
-
"@forge/manifest": "4.7.1-next.0
|
|
792
|
+
"@forge/manifest": "4.7.1-next.0",
|
|
798
793
|
"@typescript-eslint/typescript-estree": "^5.40.0",
|
|
799
794
|
"atlassian-openapi": "^1.0.13",
|
|
800
|
-
"cross-spawn": "^7.0.
|
|
795
|
+
"cross-spawn": "^7.0.3",
|
|
801
796
|
"node-fetch": "2.6.7"
|
|
802
797
|
}
|
|
803
798
|
},
|
|
804
799
|
"node_modules/@forge/manifest": {
|
|
805
|
-
"version": "4.7.1-next.0
|
|
806
|
-
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.7.1-next.0
|
|
807
|
-
"integrity": "sha512-
|
|
800
|
+
"version": "4.7.1-next.0",
|
|
801
|
+
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.7.1-next.0.tgz",
|
|
802
|
+
"integrity": "sha512-iqloo6xozSfKPjdbal+/xx4iaaC5CknueJNEyblFA99g6bJEnJ2Mrdvnxd8SJI06lYg/eRinpcy3xVrK68IbRg==",
|
|
808
803
|
"dependencies": {
|
|
809
804
|
"@forge/util": "1.2.1",
|
|
810
805
|
"ajv": "^6.12.6",
|
|
@@ -817,9 +812,9 @@
|
|
|
817
812
|
}
|
|
818
813
|
},
|
|
819
814
|
"node_modules/@forge/runtime": {
|
|
820
|
-
"version": "4.3.0-next.0
|
|
821
|
-
"resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-4.3.0-next.0
|
|
822
|
-
"integrity": "sha512-
|
|
815
|
+
"version": "4.3.0-next.0",
|
|
816
|
+
"resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-4.3.0-next.0.tgz",
|
|
817
|
+
"integrity": "sha512-JOiq6j+tvxOqPKrwEHWkPjlxodCbjEcCSUwG/F4nIbLS32Dtpqi+LDkrgnHipIfHY3KA6bYEMxUF/MQuaSs98g==",
|
|
823
818
|
"dependencies": {
|
|
824
819
|
"@forge/util": "1.2.1",
|
|
825
820
|
"fp-ts": "^2.0.1",
|
|
@@ -835,15 +830,20 @@
|
|
|
835
830
|
"node": "^14 || ^16 || ^18"
|
|
836
831
|
}
|
|
837
832
|
},
|
|
833
|
+
"node_modules/@forge/storage": {
|
|
834
|
+
"version": "1.3.2",
|
|
835
|
+
"resolved": "https://registry.npmjs.org/@forge/storage/-/storage-1.3.2.tgz",
|
|
836
|
+
"integrity": "sha512-+VgbIpeN+t+bfpIVUSuJoclkywmdh+pQsnKNjgS+hb/9IiKNSPhtgy1NIhB2rwARREXO7atqH5estbIhzd1lkA=="
|
|
837
|
+
},
|
|
838
838
|
"node_modules/@forge/tunnel": {
|
|
839
|
-
"version": "3.
|
|
840
|
-
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-3.
|
|
841
|
-
"integrity": "sha512-
|
|
842
|
-
"dependencies": {
|
|
843
|
-
"@forge/bundler": "4.6.0-next.
|
|
844
|
-
"@forge/cli-shared": "3.
|
|
845
|
-
"@forge/csp": "2.1.1
|
|
846
|
-
"@forge/runtime": "4.3.0-next.0
|
|
839
|
+
"version": "3.2.0-next.7",
|
|
840
|
+
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-3.2.0-next.7.tgz",
|
|
841
|
+
"integrity": "sha512-TenRi+qTy7WliSunpCKvkJyn0G0e4rVahzz4V5lP/hjITIkNzvyqWWdsyNe6DGMHwiCD6PkNUHjgncmQsu5mQQ==",
|
|
842
|
+
"dependencies": {
|
|
843
|
+
"@forge/bundler": "4.6.0-next.7",
|
|
844
|
+
"@forge/cli-shared": "3.7.0-next.3",
|
|
845
|
+
"@forge/csp": "2.1.1",
|
|
846
|
+
"@forge/runtime": "4.3.0-next.0",
|
|
847
847
|
"express": "^4.17.1",
|
|
848
848
|
"express-intercept": "^0.8.10",
|
|
849
849
|
"http-proxy-middleware": "^1.0.6",
|
|
@@ -9939,14 +9939,14 @@
|
|
|
9939
9939
|
}
|
|
9940
9940
|
},
|
|
9941
9941
|
"@forge/babel-plugin-transform-ui": {
|
|
9942
|
-
"version": "1.1.1
|
|
9943
|
-
"resolved": "https://registry.npmjs.org/@forge/babel-plugin-transform-ui/-/babel-plugin-transform-ui-1.1.1
|
|
9944
|
-
"integrity": "sha512-
|
|
9942
|
+
"version": "1.1.1",
|
|
9943
|
+
"resolved": "https://registry.npmjs.org/@forge/babel-plugin-transform-ui/-/babel-plugin-transform-ui-1.1.1.tgz",
|
|
9944
|
+
"integrity": "sha512-kBvxvnVcFHq0Tz8NV5LhAeO0Gt0fg6Vt2AxE803ro9MHJ6S/ca7BqRDPnKnROoKZ0gAV2ymr27XvBMEq55wv6g=="
|
|
9945
9945
|
},
|
|
9946
9946
|
"@forge/bundler": {
|
|
9947
|
-
"version": "4.6.0-next.
|
|
9948
|
-
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.6.0-next.
|
|
9949
|
-
"integrity": "sha512-
|
|
9947
|
+
"version": "4.6.0-next.7",
|
|
9948
|
+
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.6.0-next.7.tgz",
|
|
9949
|
+
"integrity": "sha512-7oeFWoU1/rDK+Fa0dvmUsUqzpVEFtWyJrb5pa6rZ9LUAjWPeHj0O/9FxA+SUPGUfsdxcU8MPd4r4yd+rNuvRBQ==",
|
|
9950
9950
|
"requires": {
|
|
9951
9951
|
"@babel/core": "^7.16.7",
|
|
9952
9952
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
@@ -9954,11 +9954,11 @@
|
|
|
9954
9954
|
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
9955
9955
|
"@babel/plugin-transform-react-jsx": "^7.16.7",
|
|
9956
9956
|
"@babel/preset-typescript": "^7.16.7",
|
|
9957
|
-
"@forge/api": "2.12.0-next.
|
|
9958
|
-
"@forge/babel-plugin-transform-ui": "1.1.1
|
|
9959
|
-
"@forge/cli-shared": "3.
|
|
9960
|
-
"@forge/lint": "3.2.16-next.
|
|
9961
|
-
"@forge/runtime": "4.3.0-next.0
|
|
9957
|
+
"@forge/api": "2.12.0-next.2",
|
|
9958
|
+
"@forge/babel-plugin-transform-ui": "1.1.1",
|
|
9959
|
+
"@forge/cli-shared": "3.7.0-next.3",
|
|
9960
|
+
"@forge/lint": "3.2.16-next.3",
|
|
9961
|
+
"@forge/runtime": "4.3.0-next.0",
|
|
9962
9962
|
"@forge/util": "1.2.1",
|
|
9963
9963
|
"assert": "^1.1.1",
|
|
9964
9964
|
"babel-loader": "^8.2.3",
|
|
@@ -9991,30 +9991,25 @@
|
|
|
9991
9991
|
},
|
|
9992
9992
|
"dependencies": {
|
|
9993
9993
|
"@forge/api": {
|
|
9994
|
-
"version": "2.12.0-next.
|
|
9995
|
-
"resolved": "https://registry.npmjs.org/@forge/api/-/api-2.12.0-next.
|
|
9996
|
-
"integrity": "sha512-
|
|
9994
|
+
"version": "2.12.0-next.2",
|
|
9995
|
+
"resolved": "https://registry.npmjs.org/@forge/api/-/api-2.12.0-next.2.tgz",
|
|
9996
|
+
"integrity": "sha512-R9yVOnc1JMtkd+LnC+3/vBLU6LyXEnoOKQwMw8aE7/78bdoZiBnQVreLyKvKGqeOVhe21xOZym8fceKXlXst9g==",
|
|
9997
9997
|
"requires": {
|
|
9998
9998
|
"@forge/auth": "0.0.1",
|
|
9999
9999
|
"@forge/egress": "1.1.2",
|
|
10000
|
-
"@forge/storage": "1.3.2
|
|
10000
|
+
"@forge/storage": "1.3.2",
|
|
10001
10001
|
"@types/node-fetch": "^2.5.7",
|
|
10002
10002
|
"node-fetch": "2.6.7"
|
|
10003
10003
|
}
|
|
10004
|
-
},
|
|
10005
|
-
"@forge/storage": {
|
|
10006
|
-
"version": "1.3.2-experimental-58938ba",
|
|
10007
|
-
"resolved": "https://registry.npmjs.org/@forge/storage/-/storage-1.3.2-experimental-58938ba.tgz",
|
|
10008
|
-
"integrity": "sha512-tIKUxGd+dg5PbAMdAHYVNVyXdjDa3cFPZCHsGHLOgOBT/92FSdK2RB9yO5B7B+D2DEXeUh2SEKVprcsob77T2A=="
|
|
10009
10004
|
}
|
|
10010
10005
|
}
|
|
10011
10006
|
},
|
|
10012
10007
|
"@forge/cli-shared": {
|
|
10013
|
-
"version": "3.
|
|
10014
|
-
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.
|
|
10015
|
-
"integrity": "sha512-
|
|
10008
|
+
"version": "3.7.0-next.3",
|
|
10009
|
+
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.7.0-next.3.tgz",
|
|
10010
|
+
"integrity": "sha512-h7abZ0fo57vu0HOCJfitBHCy5HMK+X8GE4VKSG0ZhA5hn4ciVnmmWuo5xGGnT8DjXSRLoanhhZwuIjpVTmyjPw==",
|
|
10016
10011
|
"requires": {
|
|
10017
|
-
"@forge/manifest": "4.7.1-next.0
|
|
10012
|
+
"@forge/manifest": "4.7.1-next.0",
|
|
10018
10013
|
"@forge/util": "1.2.1",
|
|
10019
10014
|
"@sentry/node": "^7.29.0",
|
|
10020
10015
|
"array.prototype.flatmap": "^1.2.3",
|
|
@@ -10023,7 +10018,7 @@
|
|
|
10023
10018
|
"cheerio": "^0.22.0",
|
|
10024
10019
|
"cli-table3": "^0.6.1",
|
|
10025
10020
|
"conf": "^6.2.4",
|
|
10026
|
-
"cross-spawn": "^7.0.
|
|
10021
|
+
"cross-spawn": "^7.0.3",
|
|
10027
10022
|
"env-paths": "^2.2.0",
|
|
10028
10023
|
"figures": "^3.2.0",
|
|
10029
10024
|
"fp-ts": "^2.0.1",
|
|
@@ -10048,9 +10043,9 @@
|
|
|
10048
10043
|
}
|
|
10049
10044
|
},
|
|
10050
10045
|
"@forge/csp": {
|
|
10051
|
-
"version": "2.1.1
|
|
10052
|
-
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-2.1.1
|
|
10053
|
-
"integrity": "sha512-
|
|
10046
|
+
"version": "2.1.1",
|
|
10047
|
+
"resolved": "https://registry.npmjs.org/@forge/csp/-/csp-2.1.1.tgz",
|
|
10048
|
+
"integrity": "sha512-Af69CNaZwVSGSlO0lm1Z737QFB9K5NOT6AQxfv4pTx+KeAIGTmP8AgYhKpgDx82IQb2EZeV0IJa9UbiXap8M3A==",
|
|
10054
10049
|
"requires": {
|
|
10055
10050
|
"cheerio": "^0.22.0",
|
|
10056
10051
|
"content-security-policy-parser": "^0.3.0"
|
|
@@ -10065,23 +10060,23 @@
|
|
|
10065
10060
|
}
|
|
10066
10061
|
},
|
|
10067
10062
|
"@forge/lint": {
|
|
10068
|
-
"version": "3.2.16-next.
|
|
10069
|
-
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.2.16-next.
|
|
10070
|
-
"integrity": "sha512-
|
|
10063
|
+
"version": "3.2.16-next.3",
|
|
10064
|
+
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.2.16-next.3.tgz",
|
|
10065
|
+
"integrity": "sha512-mRmyAHmwcy3liufbXRFGT6njowhKfFDynS640fXhPtwtbAtzIbbtxQihlMQ/v+qZKOMrfvvfkccd0KLEpd5nSQ==",
|
|
10071
10066
|
"requires": {
|
|
10072
|
-
"@forge/cli-shared": "3.
|
|
10067
|
+
"@forge/cli-shared": "3.7.0-next.3",
|
|
10073
10068
|
"@forge/egress": "1.1.2",
|
|
10074
|
-
"@forge/manifest": "4.7.1-next.0
|
|
10069
|
+
"@forge/manifest": "4.7.1-next.0",
|
|
10075
10070
|
"@typescript-eslint/typescript-estree": "^5.40.0",
|
|
10076
10071
|
"atlassian-openapi": "^1.0.13",
|
|
10077
|
-
"cross-spawn": "^7.0.
|
|
10072
|
+
"cross-spawn": "^7.0.3",
|
|
10078
10073
|
"node-fetch": "2.6.7"
|
|
10079
10074
|
}
|
|
10080
10075
|
},
|
|
10081
10076
|
"@forge/manifest": {
|
|
10082
|
-
"version": "4.7.1-next.0
|
|
10083
|
-
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.7.1-next.0
|
|
10084
|
-
"integrity": "sha512-
|
|
10077
|
+
"version": "4.7.1-next.0",
|
|
10078
|
+
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.7.1-next.0.tgz",
|
|
10079
|
+
"integrity": "sha512-iqloo6xozSfKPjdbal+/xx4iaaC5CknueJNEyblFA99g6bJEnJ2Mrdvnxd8SJI06lYg/eRinpcy3xVrK68IbRg==",
|
|
10085
10080
|
"requires": {
|
|
10086
10081
|
"@forge/util": "1.2.1",
|
|
10087
10082
|
"ajv": "^6.12.6",
|
|
@@ -10094,9 +10089,9 @@
|
|
|
10094
10089
|
}
|
|
10095
10090
|
},
|
|
10096
10091
|
"@forge/runtime": {
|
|
10097
|
-
"version": "4.3.0-next.0
|
|
10098
|
-
"resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-4.3.0-next.0
|
|
10099
|
-
"integrity": "sha512-
|
|
10092
|
+
"version": "4.3.0-next.0",
|
|
10093
|
+
"resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-4.3.0-next.0.tgz",
|
|
10094
|
+
"integrity": "sha512-JOiq6j+tvxOqPKrwEHWkPjlxodCbjEcCSUwG/F4nIbLS32Dtpqi+LDkrgnHipIfHY3KA6bYEMxUF/MQuaSs98g==",
|
|
10100
10095
|
"requires": {
|
|
10101
10096
|
"@forge/util": "1.2.1",
|
|
10102
10097
|
"fp-ts": "^2.0.1",
|
|
@@ -10109,15 +10104,20 @@
|
|
|
10109
10104
|
"ws": "^7.1.0"
|
|
10110
10105
|
}
|
|
10111
10106
|
},
|
|
10107
|
+
"@forge/storage": {
|
|
10108
|
+
"version": "1.3.2",
|
|
10109
|
+
"resolved": "https://registry.npmjs.org/@forge/storage/-/storage-1.3.2.tgz",
|
|
10110
|
+
"integrity": "sha512-+VgbIpeN+t+bfpIVUSuJoclkywmdh+pQsnKNjgS+hb/9IiKNSPhtgy1NIhB2rwARREXO7atqH5estbIhzd1lkA=="
|
|
10111
|
+
},
|
|
10112
10112
|
"@forge/tunnel": {
|
|
10113
|
-
"version": "3.
|
|
10114
|
-
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-3.
|
|
10115
|
-
"integrity": "sha512-
|
|
10116
|
-
"requires": {
|
|
10117
|
-
"@forge/bundler": "4.6.0-next.
|
|
10118
|
-
"@forge/cli-shared": "3.
|
|
10119
|
-
"@forge/csp": "2.1.1
|
|
10120
|
-
"@forge/runtime": "4.3.0-next.0
|
|
10113
|
+
"version": "3.2.0-next.7",
|
|
10114
|
+
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-3.2.0-next.7.tgz",
|
|
10115
|
+
"integrity": "sha512-TenRi+qTy7WliSunpCKvkJyn0G0e4rVahzz4V5lP/hjITIkNzvyqWWdsyNe6DGMHwiCD6PkNUHjgncmQsu5mQQ==",
|
|
10116
|
+
"requires": {
|
|
10117
|
+
"@forge/bundler": "4.6.0-next.7",
|
|
10118
|
+
"@forge/cli-shared": "3.7.0-next.3",
|
|
10119
|
+
"@forge/csp": "2.1.1",
|
|
10120
|
+
"@forge/runtime": "4.3.0-next.0",
|
|
10121
10121
|
"express": "^4.17.1",
|
|
10122
10122
|
"express-intercept": "^0.8.10",
|
|
10123
10123
|
"http-proxy-middleware": "^1.0.6",
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { CLIDetails, FeatureFlagReader, Logger } from '@forge/cli-shared';
|
|
2
|
-
|
|
2
|
+
interface FeatureFlagValues {
|
|
3
3
|
muaoEnabled: boolean | null;
|
|
4
|
+
concurrentDevEnabled: boolean | null;
|
|
4
5
|
}
|
|
6
|
+
export declare type PrerequisitesCheckResult = FeatureFlagValues;
|
|
5
7
|
export declare class PrerequisitesController {
|
|
6
8
|
private readonly logger;
|
|
7
9
|
private readonly featureFlags;
|
|
8
10
|
private readonly cliDetails;
|
|
9
11
|
constructor(logger: Logger, featureFlags: FeatureFlagReader, cliDetails: CLIDetails | undefined);
|
|
10
12
|
check(): Promise<PrerequisitesCheckResult>;
|
|
13
|
+
private evaluateFeatureFlags;
|
|
11
14
|
private checkNodeVersion;
|
|
12
15
|
private checkCustomWarning;
|
|
13
16
|
private checkMUAOEnabled;
|
|
17
|
+
private checkConcurrentDevelopmentEnabled;
|
|
14
18
|
}
|
|
19
|
+
export {};
|
|
15
20
|
//# sourceMappingURL=prerequisites-controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prerequisites-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/prerequisites-controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAe,iBAAiB,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAI7F,
|
|
1
|
+
{"version":3,"file":"prerequisites-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/prerequisites-controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAe,iBAAiB,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAI7F,UAAU,iBAAiB;IACzB,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,oBAAoB,EAAE,OAAO,GAAG,IAAI,CAAC;CACtC;AAED,oBAAY,wBAAwB,GAAG,iBAAiB,CAAC;AACzD,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAFV,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,iBAAiB,EAC/B,UAAU,EAAE,UAAU,GAAG,SAAS;IAG/C,KAAK,IAAI,OAAO,CAAC,wBAAwB,CAAC;YAOlC,oBAAoB;YAWpB,gBAAgB;YAgBhB,kBAAkB;YAOlB,gBAAgB;YAIhB,iCAAiC;CAGhD"}
|
|
@@ -14,9 +14,14 @@ class PrerequisitesController {
|
|
|
14
14
|
async check() {
|
|
15
15
|
await this.checkNodeVersion();
|
|
16
16
|
await this.checkCustomWarning();
|
|
17
|
+
return await this.evaluateFeatureFlags();
|
|
18
|
+
}
|
|
19
|
+
async evaluateFeatureFlags() {
|
|
17
20
|
const muaoEnabled = (await this.checkMUAOEnabled()) || process.env.ENABLE_MUAO === 'true';
|
|
21
|
+
const concurrentDevEnabled = (await this.checkConcurrentDevelopmentEnabled()) || process.env.ENABLE_CONCURRENT_DEVELOPMENT === 'true';
|
|
18
22
|
return {
|
|
19
|
-
muaoEnabled
|
|
23
|
+
muaoEnabled,
|
|
24
|
+
concurrentDevEnabled
|
|
20
25
|
};
|
|
21
26
|
}
|
|
22
27
|
async checkNodeVersion() {
|
|
@@ -37,5 +42,8 @@ class PrerequisitesController {
|
|
|
37
42
|
async checkMUAOEnabled() {
|
|
38
43
|
return this.featureFlags.readFlag('forge-cli-enable-muao');
|
|
39
44
|
}
|
|
45
|
+
async checkConcurrentDevelopmentEnabled() {
|
|
46
|
+
return this.featureFlags.readFlag('forge-cli-enable-concurrent-development');
|
|
47
|
+
}
|
|
40
48
|
}
|
|
41
49
|
exports.PrerequisitesController = PrerequisitesController;
|
|
@@ -8,6 +8,7 @@ import { ConfigureProviderCommand } from '../providers/configure-provider';
|
|
|
8
8
|
import { AddContributorCommand } from '../contributors/add-contributor';
|
|
9
9
|
import { ListContributorsCommand } from '../contributors/list-contributors';
|
|
10
10
|
import { RemoveContributorsCommand } from '../contributors/remove-contributors';
|
|
11
|
+
import { CreateEnvironmentCommand } from '../environment/create-environment';
|
|
11
12
|
import { InstallAppSiteCommand } from '../installations/install-app-site';
|
|
12
13
|
import { UninstallAppCommand } from '../installations/uninstall-app';
|
|
13
14
|
import { InstallationService } from '../service/installation-service';
|
|
@@ -48,6 +49,7 @@ export declare const getDependencies: (cliDetails: CLIDetails | undefined) => Pr
|
|
|
48
49
|
addContributorCommand: AddContributorCommand;
|
|
49
50
|
listContributorCommand: ListContributorsCommand;
|
|
50
51
|
removeContributorsCommand: RemoveContributorsCommand;
|
|
52
|
+
createEnvironmentCommand: CreateEnvironmentCommand;
|
|
51
53
|
viewAppLogsCommand: ViewAppLogsCommand;
|
|
52
54
|
getWebTriggerURLCommand: GetWebTriggerURLCommand;
|
|
53
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependency-injection.d.ts","sourceRoot":"","sources":["../../src/command-line/dependency-injection.ts"],"names":[],"mappings":"AAMA,OAAO,EASL,UAAU,EACV,aAAa,EAEb,UAAU,EAGV,gBAAgB,EAGhB,kBAAkB,EAUlB,YAAY,EACZ,aAAa,EAOb,kBAAkB,EAIlB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAc3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAML,0BAA0B,EAG3B,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sDAAsD,CAAC;AAExG,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAIlG,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"dependency-injection.d.ts","sourceRoot":"","sources":["../../src/command-line/dependency-injection.ts"],"names":[],"mappings":"AAMA,OAAO,EASL,UAAU,EACV,aAAa,EAEb,UAAU,EAGV,gBAAgB,EAGhB,kBAAkB,EAUlB,YAAY,EACZ,aAAa,EAOb,kBAAkB,EAIlB,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAc3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAML,0BAA0B,EAG3B,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sDAAsD,CAAC;AAExG,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAIlG,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAGhF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAM7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAIrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAQtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAIzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAG3E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAWlE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAKhF,eAAO,MAAM,eAAe,eAAsB,UAAU,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuSvE,CAAC;AAGF,aAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;AAC3D,oBAAY,YAAY,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC"}
|
|
@@ -21,7 +21,9 @@ const add_contributor_1 = require("../contributors/add-contributor");
|
|
|
21
21
|
const list_contributors_1 = require("../contributors/list-contributors");
|
|
22
22
|
const remove_contributors_1 = require("../contributors/remove-contributors");
|
|
23
23
|
const graphql_client_4 = require("../contributors/graphql-client");
|
|
24
|
-
const
|
|
24
|
+
const create_environment_1 = require("../environment/create-environment");
|
|
25
|
+
const graphql_client_5 = require("../environment/graphql-client");
|
|
26
|
+
const graphql_client_6 = require("../installations/graphql-client");
|
|
25
27
|
const site_translation_1 = require("../installations/site-translation");
|
|
26
28
|
const install_app_site_1 = require("../installations/install-app-site");
|
|
27
29
|
const uninstall_app_1 = require("../installations/uninstall-app");
|
|
@@ -57,7 +59,7 @@ const lint_view_1 = require("./view/lint-view");
|
|
|
57
59
|
const lite_lint_view_1 = require("./view/lite-lint-view");
|
|
58
60
|
const settings_view_1 = require("./view/settings-view");
|
|
59
61
|
const tunnel_view_1 = require("./view/tunnel-view");
|
|
60
|
-
const
|
|
62
|
+
const graphql_client_7 = require("../webtrigger/graphql-client");
|
|
61
63
|
const stubController_1 = require("./controller/stubController");
|
|
62
64
|
const prerequisites_controller_1 = require("./controller/prerequisites-controller");
|
|
63
65
|
const runtime_bundler_1 = require("../deploy/packager/runtime-bundler");
|
|
@@ -118,6 +120,8 @@ const getDependencies = async (cliDetails) => {
|
|
|
118
120
|
const addContributorCommand = new add_contributor_1.AddContributorCommand(contributorClient, assertiveAppConfigReader);
|
|
119
121
|
const listContributorCommand = new list_contributors_1.ListContributorsCommand(contributorClient, assertiveAppConfigReader);
|
|
120
122
|
const removeContributorsCommand = new remove_contributors_1.RemoveContributorsCommand(contributorClient, assertiveAppConfigReader);
|
|
123
|
+
const environmentClient = new graphql_client_5.GraphqlClient(graphQLClient);
|
|
124
|
+
const createEnvironmentCommand = new create_environment_1.CreateEnvironmentCommand(environmentClient, assertiveAppConfigReader);
|
|
121
125
|
const migrationKeysClient = new graphql_client_2.GraphqlClient(graphQLClient);
|
|
122
126
|
const migrationKeysService = new migration_keys_service_1.MigrationKeysService(migrationKeysClient, assertiveAppConfigReader);
|
|
123
127
|
const appEnvironmentClient = new cli_shared_1.AppEnvironmentsGraphqlClient(graphQLClient);
|
|
@@ -127,11 +131,11 @@ const getDependencies = async (cliDetails) => {
|
|
|
127
131
|
const viewAppLogsCommand = new cli_shared_1.ViewAppLogsCommand(assertiveAppConfigReader, appEnvironmentClient, globalEdgeClient, logsClient);
|
|
128
132
|
const bitbucketTranslation = new site_translation_1.BitbucketTranslator();
|
|
129
133
|
const cloudProductTranslation = new site_translation_1.CloudIdTranslator(graphQLClient);
|
|
130
|
-
const installationsClient = new
|
|
134
|
+
const installationsClient = new graphql_client_6.InstallationsGraphqlClient(graphQLClient, cloudProductTranslation, bitbucketTranslation, cli_shared_1.pause);
|
|
131
135
|
const installAppSiteCommand = new install_app_site_1.InstallAppSiteCommand(assertiveAppConfigReader, installationsClient);
|
|
132
136
|
const uninstallAppCommand = new uninstall_app_1.UninstallAppCommand(assertiveAppConfigReader, installationsClient);
|
|
133
137
|
const deployMonitorClient = new deploy_1.DeployMonitorGraphqlClient(graphQLClient);
|
|
134
|
-
const webTriggerGraphqlClient = new
|
|
138
|
+
const webTriggerGraphqlClient = new graphql_client_7.WebTriggerGraphQLClient(graphQLClient);
|
|
135
139
|
const archiverFactory = () => new deploy_1.ZipArchiver(ui);
|
|
136
140
|
const uploaderArtifactClient = new deploy_1.ArtifactGraphQLClient(graphQLClient);
|
|
137
141
|
const triggerDeployClient = new deploy_1.TriggerDeployGraphQLClient(graphQLClient);
|
|
@@ -194,6 +198,7 @@ const getDependencies = async (cliDetails) => {
|
|
|
194
198
|
addContributorCommand,
|
|
195
199
|
listContributorCommand,
|
|
196
200
|
removeContributorsCommand,
|
|
201
|
+
createEnvironmentCommand,
|
|
197
202
|
viewAppLogsCommand,
|
|
198
203
|
getWebTriggerURLCommand
|
|
199
204
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command-line/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command-line/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAmBvE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,QAclD;AAQD,eAAO,MAAM,IAAI,QAAa,QAAQ,IAAI,CAiBzC,CAAC"}
|
|
@@ -18,6 +18,7 @@ const register_feedback_commands_1 = require("./register-feedback-commands");
|
|
|
18
18
|
const register_settings_commands_1 = require("./register-settings-commands");
|
|
19
19
|
const register_providers_commands_1 = require("./register-providers-commands");
|
|
20
20
|
const register_contributors_commands_1 = require("./register-contributors-commands");
|
|
21
|
+
const register_environment_commands_1 = require("./register-environment-commands");
|
|
21
22
|
function registerCommands(deps) {
|
|
22
23
|
(0, register_autocomplete_commands_1.registerCommands)(deps);
|
|
23
24
|
(0, register_authentication_command_1.registerCommands)(deps);
|
|
@@ -44,10 +45,13 @@ const main = async () => {
|
|
|
44
45
|
const deps = await (0, dependency_injection_1.getDependencies)(cliDetails);
|
|
45
46
|
registerCommands(deps);
|
|
46
47
|
registerEvents(deps);
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
48
|
+
const { muaoEnabled, concurrentDevEnabled } = await deps.controllers.prerequisitesController.check();
|
|
49
|
+
if (muaoEnabled) {
|
|
49
50
|
(0, register_contributors_commands_1.registerCommands)(deps);
|
|
50
51
|
}
|
|
52
|
+
if (concurrentDevEnabled) {
|
|
53
|
+
(0, register_environment_commands_1.registerCommands)(deps);
|
|
54
|
+
}
|
|
51
55
|
await deps.cmd.parse(process.argv);
|
|
52
56
|
};
|
|
53
57
|
exports.main = main;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CommandLineUI } from '@forge/cli-shared';
|
|
2
|
+
import { Dependencies } from './dependency-injection';
|
|
3
|
+
import { CreateEnvironmentCommand } from '../environment/create-environment';
|
|
4
|
+
export declare const createEnvironmentHandler: (ui: CommandLineUI, createEnvironmentCommand: CreateEnvironmentCommand, environmentKey?: string) => Promise<void>;
|
|
5
|
+
export declare const registerCommands: (deps: Dependencies) => void;
|
|
6
|
+
//# sourceMappingURL=register-environment-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-environment-commands.d.ts","sourceRoot":"","sources":["../../src/command-line/register-environment-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAQ,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAI7E,eAAO,MAAM,wBAAwB,OAC/B,aAAa,4BACS,wBAAwB,mBACjC,MAAM,kBAmBxB,CAAC;AAiBF,eAAO,MAAM,gBAAgB,SAAU,YAAY,KAAG,IAKrD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerCommands = exports.createEnvironmentHandler = void 0;
|
|
4
|
+
const cli_shared_1 = require("@forge/cli-shared");
|
|
5
|
+
const COMMAND_NAME = 'environment';
|
|
6
|
+
const createEnvironmentHandler = async (ui, createEnvironmentCommand, environmentKey) => {
|
|
7
|
+
ui.info(cli_shared_1.Text.createEnvironment.overview);
|
|
8
|
+
ui.emptyLine();
|
|
9
|
+
if (!environmentKey) {
|
|
10
|
+
environmentKey = await ui.promptForText(cli_shared_1.Text.createEnvironment.promptEnvironmentKey);
|
|
11
|
+
ui.emptyLine();
|
|
12
|
+
}
|
|
13
|
+
const args = { environmentKey };
|
|
14
|
+
await ui.displayProgress(() => createEnvironmentCommand.execute(args), cli_shared_1.Text.createEnvironment.cmd.start, cli_shared_1.Text.createEnvironment.cmd.success(environmentKey));
|
|
15
|
+
ui.emptyLine();
|
|
16
|
+
ui.info(cli_shared_1.Text.createEnvironment.successMessage);
|
|
17
|
+
};
|
|
18
|
+
exports.createEnvironmentHandler = createEnvironmentHandler;
|
|
19
|
+
const registerCreateEnvironmentCommand = (parent, { ui, commands: { createEnvironmentCommand } }) => {
|
|
20
|
+
parent
|
|
21
|
+
.command('create')
|
|
22
|
+
.requireAppId()
|
|
23
|
+
.description(cli_shared_1.Text.createEnvironment.cmd.desc)
|
|
24
|
+
.option('-e, --environment [environment]', cli_shared_1.Text.createEnvironment.optionEnvironmentKey)
|
|
25
|
+
.nonInteractiveOption('--environment')
|
|
26
|
+
.action(async ({ environment }) => {
|
|
27
|
+
await (0, exports.createEnvironmentHandler)(ui, createEnvironmentCommand, environment);
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
const registerCommands = (deps) => {
|
|
31
|
+
const { cmd } = deps;
|
|
32
|
+
const environment = cmd.command(COMMAND_NAME).description(cli_shared_1.Text.environment.desc);
|
|
33
|
+
registerCreateEnvironmentCommand(environment, deps);
|
|
34
|
+
};
|
|
35
|
+
exports.registerCommands = registerCommands;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AppConfigProvider } from '@forge/cli-shared';
|
|
2
|
+
export interface EnvironmentDetails {
|
|
3
|
+
environmentKey: string;
|
|
4
|
+
}
|
|
5
|
+
export interface AppEnvironmentDetails extends EnvironmentDetails {
|
|
6
|
+
appId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CreateEnvironmentClient {
|
|
9
|
+
createEnvironment(details: AppEnvironmentDetails): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
export declare class CreateEnvironmentCommand {
|
|
12
|
+
private readonly client;
|
|
13
|
+
private readonly getAppConfig;
|
|
14
|
+
constructor(client: CreateEnvironmentClient, getAppConfig: AppConfigProvider);
|
|
15
|
+
execute(details: EnvironmentDetails): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=create-environment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-environment.d.ts","sourceRoot":"","sources":["../../src/environment/create-environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE;AAED,qBAAa,wBAAwB;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAA2B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAA9D,MAAM,EAAE,uBAAuB,EAAmB,YAAY,EAAE,iBAAiB;IAEjG,OAAO,CAAC,OAAO,EAAE,kBAAkB;CAOjD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateEnvironmentCommand = void 0;
|
|
4
|
+
class CreateEnvironmentCommand {
|
|
5
|
+
constructor(client, getAppConfig) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
this.getAppConfig = getAppConfig;
|
|
8
|
+
}
|
|
9
|
+
async execute(details) {
|
|
10
|
+
const { id: appId } = await this.getAppConfig();
|
|
11
|
+
await this.client.createEnvironment(Object.assign(Object.assign({}, details), { appId }));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.CreateEnvironmentCommand = CreateEnvironmentCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GraphQLClient } from '@forge/cli-shared';
|
|
2
|
+
import { AppEnvironmentDetails, CreateEnvironmentClient } from './create-environment';
|
|
3
|
+
export declare class GraphqlClient implements CreateEnvironmentClient {
|
|
4
|
+
private readonly graphqlClient;
|
|
5
|
+
constructor(graphqlClient: GraphQLClient);
|
|
6
|
+
createEnvironment(details: AppEnvironmentDetails): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=graphql-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/environment/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EAEd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEtF,qBAAa,aAAc,YAAW,uBAAuB;IAC/C,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,iBAAiB,CAAC,OAAO,EAAE,qBAAqB;CA+C9D"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphqlClient = void 0;
|
|
4
|
+
const cli_shared_1 = require("@forge/cli-shared");
|
|
5
|
+
class GraphqlClient {
|
|
6
|
+
constructor(graphqlClient) {
|
|
7
|
+
this.graphqlClient = graphqlClient;
|
|
8
|
+
}
|
|
9
|
+
async createEnvironment(details) {
|
|
10
|
+
const mutation = `
|
|
11
|
+
mutation forge_cli_createEnvironment($input: CreateAppEnvironmentInput!) {
|
|
12
|
+
ecosystem {
|
|
13
|
+
createAppEnvironment(input: $input) {
|
|
14
|
+
success
|
|
15
|
+
errors {
|
|
16
|
+
message
|
|
17
|
+
extensions {
|
|
18
|
+
errorType
|
|
19
|
+
statusCode
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
const { response: { ecosystem: { createAppEnvironment } }, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
27
|
+
input: {
|
|
28
|
+
appAri: details.appId,
|
|
29
|
+
environmentKey: details.environmentKey,
|
|
30
|
+
environmentType: cli_shared_1.AppEnvironmentType.Development
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
if (!createAppEnvironment) {
|
|
34
|
+
throw new cli_shared_1.GraphQlMutationError(`Unable to get a response (requestId: ${requestId || 'unknown'})`, { requestId });
|
|
35
|
+
}
|
|
36
|
+
const { success, errors } = createAppEnvironment;
|
|
37
|
+
const error = (0, cli_shared_1.getError)(errors);
|
|
38
|
+
if (!success) {
|
|
39
|
+
throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
|
40
|
+
requestId,
|
|
41
|
+
code: error.code,
|
|
42
|
+
statusCode: error.statusCode
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.GraphqlClient = GraphqlClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "6.5.0-next.
|
|
3
|
+
"version": "6.5.0-next.9",
|
|
4
4
|
"description": "A command line interface for managing Atlassian-hosted apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"postinstall": "node -e \"process.exitCode = fs.existsSync('./out/bin/postinstall.js')\" || node ./out/bin/postinstall.js"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@forge/bundler": "4.6.0-next.
|
|
22
|
-
"@forge/cli-shared": "3.
|
|
21
|
+
"@forge/bundler": "4.6.0-next.7",
|
|
22
|
+
"@forge/cli-shared": "3.7.0-next.3",
|
|
23
23
|
"@forge/egress": "1.1.2",
|
|
24
|
-
"@forge/lint": "3.2.16-next.
|
|
25
|
-
"@forge/manifest": "4.7.1-next.0
|
|
26
|
-
"@forge/runtime": "4.3.0-next.0
|
|
27
|
-
"@forge/tunnel": "3.
|
|
24
|
+
"@forge/lint": "3.2.16-next.3",
|
|
25
|
+
"@forge/manifest": "4.7.1-next.0",
|
|
26
|
+
"@forge/runtime": "4.3.0-next.0",
|
|
27
|
+
"@forge/tunnel": "3.2.0-next.7",
|
|
28
28
|
"@forge/util": "1.2.1",
|
|
29
29
|
"@sentry/node": "^7.29.0",
|
|
30
30
|
"ajv": "^6.12.6",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"cli-table3": "^0.6.1",
|
|
36
36
|
"command-exists": "^1.2.9",
|
|
37
37
|
"commander": "^7.0.0",
|
|
38
|
-
"cross-spawn": "^7.0.
|
|
38
|
+
"cross-spawn": "^7.0.3",
|
|
39
39
|
"dayjs": "^1.9.7",
|
|
40
40
|
"didyoumean": "^1.2.1",
|
|
41
41
|
"env-paths": "^2.2.0",
|